; LLVM IR from ETH3D/dataset-pipeline :: thirdparty/cork/cork/isct (triangle)

; 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.behavior = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8] }

@.str.1071 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1072 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1073 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.1074 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.1075 = external hidden unnamed_addr constant [63 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @triexit(i32 noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @trimalloc(i32 noundef) #1

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

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

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

declare i32 @fclose(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @readline(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @findfield(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @readholes(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #1 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca [1024 x i8], align 16
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 1024, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %23 = getelementptr inbounds [1024 x i8], ptr %19, i64 0, i64 0
  %24 = load ptr, ptr %11, align 8, !tbaa !5
  %25 = load ptr, ptr %12, align 8, !tbaa !5
  %26 = call ptr @readline(ptr noundef %23, ptr noundef %24, ptr noundef %25)
  store ptr %26, ptr %20, align 8, !tbaa !5
  %27 = load ptr, ptr %20, align 8, !tbaa !5
  %28 = call i64 @strtol(ptr noundef %27, ptr noundef %20, i32 noundef 0) #4
  %29 = trunc i64 %28 to i32
  %30 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %29, ptr %30, align 4, !tbaa !9
  %31 = load ptr, ptr %14, align 8, !tbaa !5
  %32 = load i32, ptr %31, align 4, !tbaa !9
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %34, label %102

34:                                               ; preds = %8
  %35 = load ptr, ptr %14, align 8, !tbaa !5
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = mul nsw i32 2, %36
  %38 = mul nsw i32 %37, 8
  %39 = call ptr @trimalloc(i32 noundef %38)
  store ptr %39, ptr %17, align 8, !tbaa !5
  %40 = load ptr, ptr %17, align 8, !tbaa !5
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %40, ptr %41, align 8, !tbaa !5
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %98, %34
  %43 = load i32, ptr %22, align 4, !tbaa !9
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = mul nsw i32 2, %45
  %47 = icmp slt i32 %43, %46
  br i1 %47, label %48, label %101

48:                                               ; preds = %42
  %49 = getelementptr inbounds [1024 x i8], ptr %19, i64 0, i64 0
  %50 = load ptr, ptr %11, align 8, !tbaa !5
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = call ptr @readline(ptr noundef %49, ptr noundef %50, ptr noundef %51)
  store ptr %52, ptr %20, align 8, !tbaa !5
  %53 = load ptr, ptr %20, align 8, !tbaa !5
  %54 = call ptr @findfield(ptr noundef %53)
  store ptr %54, ptr %20, align 8, !tbaa !5
  %55 = load ptr, ptr %20, align 8, !tbaa !5
  %56 = load i8, ptr %55, align 1, !tbaa !11
  %57 = sext i8 %56 to i32
  %58 = icmp eq i32 %57, 0
  br i1 %58, label %59, label %67

59:                                               ; preds = %48
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.behavior, ptr %60, i32 0, i32 10
  %62 = load i32, ptr %61, align 8, !tbaa !12
  %63 = load i32, ptr %22, align 4, !tbaa !9
  %64 = ashr i32 %63, 1
  %65 = add nsw i32 %62, %64
  %66 = call i32 (ptr, ...) @printf(ptr noundef @.str.1071, i32 noundef %65)
  call void @triexit(i32 noundef 1)
  br label %74

67:                                               ; preds = %48
  %68 = load ptr, ptr %20, align 8, !tbaa !5
  %69 = call double @strtod(ptr noundef %68, ptr noundef %20) #4
  %70 = load ptr, ptr %17, align 8, !tbaa !5
  %71 = load i32, ptr %22, align 4, !tbaa !9
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds double, ptr %70, i64 %72
  store double %69, ptr %73, align 8, !tbaa !15
  br label %74

74:                                               ; preds = %67, %59
  %75 = load ptr, ptr %20, align 8, !tbaa !5
  %76 = call ptr @findfield(ptr noundef %75)
  store ptr %76, ptr %20, align 8, !tbaa !5
  %77 = load ptr, ptr %20, align 8, !tbaa !5
  %78 = load i8, ptr %77, align 1, !tbaa !11
  %79 = sext i8 %78 to i32
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %81, label %89

81:                                               ; preds = %74
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.behavior, ptr %82, i32 0, i32 10
  %84 = load i32, ptr %83, align 8, !tbaa !12
  %85 = load i32, ptr %22, align 4, !tbaa !9
  %86 = ashr i32 %85, 1
  %87 = add nsw i32 %84, %86
  %88 = call i32 (ptr, ...) @printf(ptr noundef @.str.1072, i32 noundef %87)
  call void @triexit(i32 noundef 1)
  br label %97

89:                                               ; preds = %74
  %90 = load ptr, ptr %20, align 8, !tbaa !5
  %91 = call double @strtod(ptr noundef %90, ptr noundef %20) #4
  %92 = load ptr, ptr %17, align 8, !tbaa !5
  %93 = load i32, ptr %22, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds double, ptr %92, i64 %95
  store double %91, ptr %96, align 8, !tbaa !15
  br label %97

97:                                               ; preds = %89, %81
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %22, align 4, !tbaa !9
  %100 = add nsw i32 %99, 2
  store i32 %100, ptr %22, align 4, !tbaa !9
  br label %42, !llvm.loop !16

101:                                              ; preds = %42
  br label %104

102:                                              ; preds = %8
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %103, align 8, !tbaa !5
  br label %104

104:                                              ; preds = %102, %101
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.behavior, ptr %105, i32 0, i32 6
  %107 = load i32, ptr %106, align 8, !tbaa !18
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %114, label %109

109:                                              ; preds = %104
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.behavior, ptr %110, i32 0, i32 3
  %112 = load i32, ptr %111, align 4, !tbaa !19
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %247

114:                                              ; preds = %109, %104
  %115 = load ptr, ptr %10, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.behavior, ptr %115, i32 0, i32 1
  %117 = load i32, ptr %116, align 4, !tbaa !20
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %247, label %119

119:                                              ; preds = %114
  %120 = getelementptr inbounds [1024 x i8], ptr %19, i64 0, i64 0
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = call ptr @readline(ptr noundef %120, ptr noundef %121, ptr noundef %122)
  store ptr %123, ptr %20, align 8, !tbaa !5
  %124 = load ptr, ptr %20, align 8, !tbaa !5
  %125 = call i64 @strtol(ptr noundef %124, ptr noundef %20, i32 noundef 0) #4
  %126 = trunc i64 %125 to i32
  %127 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 %126, ptr %127, align 4, !tbaa !9
  %128 = load ptr, ptr %16, align 8, !tbaa !5
  %129 = load i32, ptr %128, align 4, !tbaa !9
  %130 = icmp sgt i32 %129, 0
  br i1 %130, label %131, label %246

131:                                              ; preds = %119
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = mul nsw i32 4, %133
  %135 = mul nsw i32 %134, 8
  %136 = call ptr @trimalloc(i32 noundef %135)
  store ptr %136, ptr %18, align 8, !tbaa !5
  %137 = load ptr, ptr %18, align 8, !tbaa !5
  %138 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %137, ptr %138, align 8, !tbaa !5
  store i32 0, ptr %21, align 4, !tbaa !9
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %139

139:                                              ; preds = %242, %131
  %140 = load i32, ptr %22, align 4, !tbaa !9
  %141 = load ptr, ptr %16, align 8, !tbaa !5
  %142 = load i32, ptr %141, align 4, !tbaa !9
  %143 = icmp slt i32 %140, %142
  br i1 %143, label %144, label %245

144:                                              ; preds = %139
  %145 = getelementptr inbounds [1024 x i8], ptr %19, i64 0, i64 0
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  %148 = call ptr @readline(ptr noundef %145, ptr noundef %146, ptr noundef %147)
  store ptr %148, ptr %20, align 8, !tbaa !5
  %149 = load ptr, ptr %20, align 8, !tbaa !5
  %150 = call ptr @findfield(ptr noundef %149)
  store ptr %150, ptr %20, align 8, !tbaa !5
  %151 = load ptr, ptr %20, align 8, !tbaa !5
  %152 = load i8, ptr %151, align 1, !tbaa !11
  %153 = sext i8 %152 to i32
  %154 = icmp eq i32 %153, 0
  br i1 %154, label %155, label %162

155:                                              ; preds = %144
  %156 = load ptr, ptr %10, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.behavior, ptr %156, i32 0, i32 10
  %158 = load i32, ptr %157, align 8, !tbaa !12
  %159 = load i32, ptr %22, align 4, !tbaa !9
  %160 = add nsw i32 %158, %159
  %161 = call i32 (ptr, ...) @printf(ptr noundef @.str.1073, i32 noundef %160)
  call void @triexit(i32 noundef 1)
  br label %170

162:                                              ; preds = %144
  %163 = load ptr, ptr %20, align 8, !tbaa !5
  %164 = call double @strtod(ptr noundef %163, ptr noundef %20) #4
  %165 = load ptr, ptr %18, align 8, !tbaa !5
  %166 = load i32, ptr %21, align 4, !tbaa !9
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %21, align 4, !tbaa !9
  %168 = sext i32 %166 to i64
  %169 = getelementptr inbounds double, ptr %165, i64 %168
  store double %164, ptr %169, align 8, !tbaa !15
  br label %170

170:                                              ; preds = %162, %155
  %171 = load ptr, ptr %20, align 8, !tbaa !5
  %172 = call ptr @findfield(ptr noundef %171)
  store ptr %172, ptr %20, align 8, !tbaa !5
  %173 = load ptr, ptr %20, align 8, !tbaa !5
  %174 = load i8, ptr %173, align 1, !tbaa !11
  %175 = sext i8 %174 to i32
  %176 = icmp eq i32 %175, 0
  br i1 %176, label %177, label %184

177:                                              ; preds = %170
  %178 = load ptr, ptr %10, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.behavior, ptr %178, i32 0, i32 10
  %180 = load i32, ptr %179, align 8, !tbaa !12
  %181 = load i32, ptr %22, align 4, !tbaa !9
  %182 = add nsw i32 %180, %181
  %183 = call i32 (ptr, ...) @printf(ptr noundef @.str.1074, i32 noundef %182)
  call void @triexit(i32 noundef 1)
  br label %192

184:                                              ; preds = %170
  %185 = load ptr, ptr %20, align 8, !tbaa !5
  %186 = call double @strtod(ptr noundef %185, ptr noundef %20) #4
  %187 = load ptr, ptr %18, align 8, !tbaa !5
  %188 = load i32, ptr %21, align 4, !tbaa !9
  %189 = add nsw i32 %188, 1
  store i32 %189, ptr %21, align 4, !tbaa !9
  %190 = sext i32 %188 to i64
  %191 = getelementptr inbounds double, ptr %187, i64 %190
  store double %186, ptr %191, align 8, !tbaa !15
  br label %192

192:                                              ; preds = %184, %177
  %193 = load ptr, ptr %20, align 8, !tbaa !5
  %194 = call ptr @findfield(ptr noundef %193)
  store ptr %194, ptr %20, align 8, !tbaa !5
  %195 = load ptr, ptr %20, align 8, !tbaa !5
  %196 = load i8, ptr %195, align 1, !tbaa !11
  %197 = sext i8 %196 to i32
  %198 = icmp eq i32 %197, 0
  br i1 %198, label %199, label %206

199:                                              ; preds = %192
  %200 = load ptr, ptr %10, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.behavior, ptr %200, i32 0, i32 10
  %202 = load i32, ptr %201, align 8, !tbaa !12
  %203 = load i32, ptr %22, align 4, !tbaa !9
  %204 = add nsw i32 %202, %203
  %205 = call i32 (ptr, ...) @printf(ptr noundef @.str.1075, i32 noundef %204)
  call void @triexit(i32 noundef 1)
  br label %214

206:                                              ; preds = %192
  %207 = load ptr, ptr %20, align 8, !tbaa !5
  %208 = call double @strtod(ptr noundef %207, ptr noundef %20) #4
  %209 = load ptr, ptr %18, align 8, !tbaa !5
  %210 = load i32, ptr %21, align 4, !tbaa !9
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %21, align 4, !tbaa !9
  %212 = sext i32 %210 to i64
  %213 = getelementptr inbounds double, ptr %209, i64 %212
  store double %208, ptr %213, align 8, !tbaa !15
  br label %214

214:                                              ; preds = %206, %199
  %215 = load ptr, ptr %20, align 8, !tbaa !5
  %216 = call ptr @findfield(ptr noundef %215)
  store ptr %216, ptr %20, align 8, !tbaa !5
  %217 = load ptr, ptr %20, align 8, !tbaa !5
  %218 = load i8, ptr %217, align 1, !tbaa !11
  %219 = sext i8 %218 to i32
  %220 = icmp eq i32 %219, 0
  br i1 %220, label %221, label %232

221:                                              ; preds = %214
  %222 = load ptr, ptr %18, align 8, !tbaa !5
  %223 = load i32, ptr %21, align 4, !tbaa !9
  %224 = sub nsw i32 %223, 1
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds double, ptr %222, i64 %225
  %227 = load double, ptr %226, align 8, !tbaa !15
  %228 = load ptr, ptr %18, align 8, !tbaa !5
  %229 = load i32, ptr %21, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds double, ptr %228, i64 %230
  store double %227, ptr %231, align 8, !tbaa !15
  br label %239

232:                                              ; preds = %214
  %233 = load ptr, ptr %20, align 8, !tbaa !5
  %234 = call double @strtod(ptr noundef %233, ptr noundef %20) #4
  %235 = load ptr, ptr %18, align 8, !tbaa !5
  %236 = load i32, ptr %21, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds double, ptr %235, i64 %237
  store double %234, ptr %238, align 8, !tbaa !15
  br label %239

239:                                              ; preds = %232, %221
  %240 = load i32, ptr %21, align 4, !tbaa !9
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %21, align 4, !tbaa !9
  br label %242

242:                                              ; preds = %239
  %243 = load i32, ptr %22, align 4, !tbaa !9
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %22, align 4, !tbaa !9
  br label %139, !llvm.loop !21

245:                                              ; preds = %139
  br label %246

246:                                              ; preds = %245, %119
  br label %250

247:                                              ; preds = %114, %109
  %248 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %248, align 4, !tbaa !9
  %249 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr null, ptr %249, align 8, !tbaa !5
  br label %250

250:                                              ; preds = %247, %246
  %251 = load ptr, ptr %11, align 8, !tbaa !5
  %252 = call i32 @fclose(ptr noundef %251)
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 1024, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 40}
!13 = !{!"behavior", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !7, i64 168, !7, i64 2216, !7, i64 4264, !7, i64 6312, !7, i64 8360, !7, i64 10408, !7, i64 12456, !7, i64 14504, !7, i64 16552, !7, i64 18600, !7, i64 20648, !7, i64 22696}
!14 = !{!"double", !7, i64 0}
!15 = !{!14, !14, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!13, !10, i64 24}
!19 = !{!13, !10, i64 12}
!20 = !{!13, !10, i64 4}
!21 = distinct !{!21, !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"

@.str.1071 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1072 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1073 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.1074 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.1075 = external hidden unnamed_addr constant [63 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @triexit(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @trimalloc(i32 noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @readline(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @findfield(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @readholes(ptr nocapture noundef readnone %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef %5, ptr nocapture noundef writeonly %6, ptr nocapture noundef %7) local_unnamed_addr #1 {
  %9 = alloca [1024 x i8], align 16
  %10 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %11 = call ptr @readline(ptr noundef nonnull %9, ptr noundef %2, ptr noundef %3)
  store ptr %11, ptr %10, align 8, !tbaa !5
  %12 = call i64 @strtol(ptr noundef %11, ptr noundef nonnull %10, i32 noundef 0) #4
  %13 = trunc i64 %12 to i32
  store i32 %13, ptr %5, align 4, !tbaa !9
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %15, label %55

15:                                               ; preds = %8
  %16 = shl nsw i32 %13, 4
  %17 = call ptr @trimalloc(i32 noundef %16)
  store ptr %17, ptr %4, align 8, !tbaa !5
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = icmp sgt i32 %18, 0
  br i1 %19, label %.lr.ph, label %.loopexit63

.lr.ph:                                           ; preds = %15
  %20 = getelementptr inbounds i8, ptr %1, i64 40
  br label %21

21:                                               ; preds = %.lr.ph, %50
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %50 ]
  %22 = call ptr @readline(ptr noundef nonnull %9, ptr noundef %2, ptr noundef %3)
  %23 = call ptr @findfield(ptr noundef %22)
  store ptr %23, ptr %10, align 8, !tbaa !5
  %24 = load i8, ptr %23, align 1, !tbaa !11
  %25 = icmp eq i8 %24, 0
  br i1 %25, label %26, label %32

26:                                               ; preds = %21
  %27 = load i32, ptr %20, align 8, !tbaa !12
  %28 = lshr exact i64 %indvars.iv, 1
  %29 = trunc nuw nsw i64 %28 to i32
  %30 = add nsw i32 %27, %29
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1071, i32 noundef %30)
  call void @triexit(i32 noundef 1)
  br label %35

32:                                               ; preds = %21
  %33 = call double @strtod(ptr noundef nonnull %23, ptr noundef nonnull %10) #4
  %34 = getelementptr inbounds double, ptr %17, i64 %indvars.iv
  store double %33, ptr %34, align 8, !tbaa !15
  %.pre = load ptr, ptr %10, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %32, %26
  %36 = phi ptr [ %.pre, %32 ], [ %23, %26 ]
  %37 = call ptr @findfield(ptr noundef %36)
  store ptr %37, ptr %10, align 8, !tbaa !5
  %38 = load i8, ptr %37, align 1, !tbaa !11
  %39 = icmp eq i8 %38, 0
  br i1 %39, label %40, label %46

40:                                               ; preds = %35
  %41 = load i32, ptr %20, align 8, !tbaa !12
  %42 = lshr exact i64 %indvars.iv, 1
  %43 = trunc nuw nsw i64 %42 to i32
  %44 = add nsw i32 %41, %43
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1072, i32 noundef %44)
  call void @triexit(i32 noundef 1)
  br label %50

46:                                               ; preds = %35
  %47 = call double @strtod(ptr noundef nonnull %37, ptr noundef nonnull %10) #4
  %48 = or disjoint i64 %indvars.iv, 1
  %49 = getelementptr inbounds double, ptr %17, i64 %48
  store double %47, ptr %49, align 8, !tbaa !15
  br label %50

50:                                               ; preds = %40, %46
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
  %51 = load i32, ptr %5, align 4, !tbaa !9
  %52 = shl nsw i32 %51, 1
  %53 = sext i32 %52 to i64
  %54 = icmp slt i64 %indvars.iv.next, %53
  br i1 %54, label %21, label %.loopexit63, !llvm.loop !16

55:                                               ; preds = %8
  store ptr null, ptr %4, align 8, !tbaa !5
  br label %.loopexit63

.loopexit63:                                      ; preds = %50, %15, %55
  %56 = getelementptr inbounds i8, ptr %1, i64 24
  %57 = load i32, ptr %56, align 8, !tbaa !18
  %.not = icmp eq i32 %57, 0
  br i1 %.not, label %58, label %61

58:                                               ; preds = %.loopexit63
  %59 = getelementptr inbounds i8, ptr %1, i64 12
  %60 = load i32, ptr %59, align 4, !tbaa !19
  %.not61 = icmp eq i32 %60, 0
  br i1 %.not61, label %136, label %61

61:                                               ; preds = %58, %.loopexit63
  %62 = getelementptr inbounds i8, ptr %1, i64 4
  %63 = load i32, ptr %62, align 4, !tbaa !20
  %.not62 = icmp eq i32 %63, 0
  br i1 %.not62, label %64, label %136

64:                                               ; preds = %61
  %65 = call ptr @readline(ptr noundef nonnull %9, ptr noundef %2, ptr noundef %3)
  store ptr %65, ptr %10, align 8, !tbaa !5
  %66 = call i64 @strtol(ptr noundef %65, ptr noundef nonnull %10, i32 noundef 0) #4
  %67 = trunc i64 %66 to i32
  store i32 %67, ptr %7, align 4, !tbaa !9
  %68 = icmp sgt i32 %67, 0
  br i1 %68, label %69, label %.loopexit

69:                                               ; preds = %64
  %70 = shl nsw i32 %67, 5
  %71 = call ptr @trimalloc(i32 noundef %70)
  store ptr %71, ptr %6, align 8, !tbaa !5
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = icmp sgt i32 %72, 0
  br i1 %73, label %.lr.ph67, label %.loopexit

.lr.ph67:                                         ; preds = %69
  %74 = getelementptr inbounds i8, ptr %1, i64 40
  br label %75

75:                                               ; preds = %.lr.ph67, %131
  %.166 = phi i32 [ 0, %.lr.ph67 ], [ %133, %131 ]
  %.05765 = phi i32 [ 0, %.lr.ph67 ], [ %132, %131 ]
  %76 = call ptr @readline(ptr noundef nonnull %9, ptr noundef %2, ptr noundef %3)
  %77 = call ptr @findfield(ptr noundef %76)
  store ptr %77, ptr %10, align 8, !tbaa !5
  %78 = load i8, ptr %77, align 1, !tbaa !11
  %79 = icmp eq i8 %78, 0
  br i1 %79, label %80, label %84

80:                                               ; preds = %75
  %81 = load i32, ptr %74, align 8, !tbaa !12
  %82 = add nsw i32 %81, %.166
  %83 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1073, i32 noundef %82)
  call void @triexit(i32 noundef 1)
  br label %89

84:                                               ; preds = %75
  %85 = call double @strtod(ptr noundef nonnull %77, ptr noundef nonnull %10) #4
  %86 = add nsw i32 %.05765, 1
  %87 = sext i32 %.05765 to i64
  %88 = getelementptr inbounds double, ptr %71, i64 %87
  store double %85, ptr %88, align 8, !tbaa !15
  %.pre69 = load ptr, ptr %10, align 8, !tbaa !5
  br label %89

89:                                               ; preds = %84, %80
  %90 = phi ptr [ %77, %80 ], [ %.pre69, %84 ]
  %.158 = phi i32 [ %.05765, %80 ], [ %86, %84 ]
  %91 = call ptr @findfield(ptr noundef %90)
  store ptr %91, ptr %10, align 8, !tbaa !5
  %92 = load i8, ptr %91, align 1, !tbaa !11
  %93 = icmp eq i8 %92, 0
  br i1 %93, label %94, label %98

94:                                               ; preds = %89
  %95 = load i32, ptr %74, align 8, !tbaa !12
  %96 = add nsw i32 %95, %.166
  %97 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1074, i32 noundef %96)
  call void @triexit(i32 noundef 1)
  br label %103

98:                                               ; preds = %89
  %99 = call double @strtod(ptr noundef nonnull %91, ptr noundef nonnull %10) #4
  %100 = add nsw i32 %.158, 1
  %101 = sext i32 %.158 to i64
  %102 = getelementptr inbounds double, ptr %71, i64 %101
  store double %99, ptr %102, align 8, !tbaa !15
  %.pre70 = load ptr, ptr %10, align 8, !tbaa !5
  br label %103

103:                                              ; preds = %98, %94
  %104 = phi ptr [ %91, %94 ], [ %.pre70, %98 ]
  %.2 = phi i32 [ %.158, %94 ], [ %100, %98 ]
  %105 = call ptr @findfield(ptr noundef %104)
  store ptr %105, ptr %10, align 8, !tbaa !5
  %106 = load i8, ptr %105, align 1, !tbaa !11
  %107 = icmp eq i8 %106, 0
  br i1 %107, label %108, label %112

108:                                              ; preds = %103
  %109 = load i32, ptr %74, align 8, !tbaa !12
  %110 = add nsw i32 %109, %.166
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1075, i32 noundef %110)
  call void @triexit(i32 noundef 1)
  br label %117

112:                                              ; preds = %103
  %113 = call double @strtod(ptr noundef nonnull %105, ptr noundef nonnull %10) #4
  %114 = add nsw i32 %.2, 1
  %115 = sext i32 %.2 to i64
  %116 = getelementptr inbounds double, ptr %71, i64 %115
  store double %113, ptr %116, align 8, !tbaa !15
  %.pre71 = load ptr, ptr %10, align 8, !tbaa !5
  br label %117

117:                                              ; preds = %112, %108
  %118 = phi ptr [ %105, %108 ], [ %.pre71, %112 ]
  %.3 = phi i32 [ %.2, %108 ], [ %114, %112 ]
  %119 = call ptr @findfield(ptr noundef %118)
  store ptr %119, ptr %10, align 8, !tbaa !5
  %120 = load i8, ptr %119, align 1, !tbaa !11
  %121 = icmp eq i8 %120, 0
  br i1 %121, label %122, label %127

122:                                              ; preds = %117
  %123 = sext i32 %.3 to i64
  %124 = getelementptr double, ptr %71, i64 %123
  %125 = getelementptr i8, ptr %124, i64 -8
  %126 = load double, ptr %125, align 8, !tbaa !15
  store double %126, ptr %124, align 8, !tbaa !15
  br label %131

127:                                              ; preds = %117
  %128 = call double @strtod(ptr noundef nonnull %119, ptr noundef nonnull %10) #4
  %129 = sext i32 %.3 to i64
  %130 = getelementptr inbounds double, ptr %71, i64 %129
  store double %128, ptr %130, align 8, !tbaa !15
  br label %131

131:                                              ; preds = %127, %122
  %132 = add nsw i32 %.3, 1
  %133 = add nuw nsw i32 %.166, 1
  %134 = load i32, ptr %7, align 4, !tbaa !9
  %135 = icmp slt i32 %133, %134
  br i1 %135, label %75, label %.loopexit, !llvm.loop !21

136:                                              ; preds = %61, %58
  store i32 0, ptr %7, align 4, !tbaa !9
  store ptr null, ptr %6, align 8, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %131, %69, %64, %136
  %137 = call i32 @fclose(ptr noundef %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %9) #4
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { mustprogress nofree nounwind willreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 40}
!13 = !{!"behavior", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !7, i64 168, !7, i64 2216, !7, i64 4264, !7, i64 6312, !7, i64 8360, !7, i64 10408, !7, i64 12456, !7, i64 14504, !7, i64 16552, !7, i64 18600, !7, i64 20648, !7, i64 22696}
!14 = !{!"double", !7, i64 0}
!15 = !{!14, !14, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!13, !10, i64 24}
!19 = !{!13, !10, i64 12}
!20 = !{!13, !10, i64 4}
!21 = distinct !{!21, !17}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass