; LLVM IR from MIT-SPARK/Kimera-VIO :: third_party/triangle/src (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.osub = type { ptr, i32 }
%struct.otri = type { ptr, i32 }
%struct.mesh = type { %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, [4096 x ptr], [4096 x ptr], [4096 x i32], i32, ptr, float, float, float, float, float, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.otri }
%struct.memorypool = type { ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i64, i64, i32, i32 }

@.str.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [47 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

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

; 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
define dso_local void @printsubseg(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %struct.osub, align 8
  %8 = alloca %struct.otri, align 8
  %9 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %10 = load ptr, ptr %6, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.osub, ptr %10, i32 0, i32 0
  %12 = load ptr, ptr %11, align 8, !tbaa !9
  %13 = ptrtoint ptr %12 to i64
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.osub, ptr %14, i32 0, i32 1
  %16 = load i32, ptr %15, align 8, !tbaa !12
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.osub, ptr %17, i32 0, i32 0
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = getelementptr inbounds ptr, ptr %19, i64 8
  %21 = load i32, ptr %20, align 4, !tbaa !13
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str.27, i64 noundef %13, i32 noundef %16, i32 noundef %21)
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.osub, ptr %23, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = getelementptr inbounds ptr, ptr %25, i64 0
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = ptrtoint ptr %27 to i64
  %29 = and i64 %28, 1
  %30 = trunc i64 %29 to i32
  %31 = getelementptr inbounds %struct.osub, ptr %7, i32 0, i32 1
  store i32 %30, ptr %31, align 8, !tbaa !12
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.osub, ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = getelementptr inbounds ptr, ptr %34, i64 0
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  %37 = ptrtoint ptr %36 to i64
  %38 = and i64 %37, -4
  %39 = inttoptr i64 %38 to ptr
  %40 = getelementptr inbounds %struct.osub, ptr %7, i32 0, i32 0
  store ptr %39, ptr %40, align 8, !tbaa !9
  %41 = getelementptr inbounds %struct.osub, ptr %7, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.mesh, ptr %43, i32 0, i32 50
  %45 = load ptr, ptr %44, align 8, !tbaa !14
  %46 = icmp eq ptr %42, %45
  br i1 %46, label %47, label %49

47:                                               ; preds = %3
  %48 = call i32 (ptr, ...) @printf(ptr noundef @.str.28)
  br label %56

49:                                               ; preds = %3
  %50 = getelementptr inbounds %struct.osub, ptr %7, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !9
  %52 = ptrtoint ptr %51 to i64
  %53 = getelementptr inbounds %struct.osub, ptr %7, i32 0, i32 1
  %54 = load i32, ptr %53, align 8, !tbaa !12
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i64 noundef %52, i32 noundef %54)
  br label %56

56:                                               ; preds = %49, %47
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.osub, ptr %57, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = getelementptr inbounds ptr, ptr %59, i64 1
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = ptrtoint ptr %61 to i64
  %63 = and i64 %62, 1
  %64 = trunc i64 %63 to i32
  %65 = getelementptr inbounds %struct.osub, ptr %7, i32 0, i32 1
  store i32 %64, ptr %65, align 8, !tbaa !12
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.osub, ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  %69 = getelementptr inbounds ptr, ptr %68, i64 1
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %71 = ptrtoint ptr %70 to i64
  %72 = and i64 %71, -4
  %73 = inttoptr i64 %72 to ptr
  %74 = getelementptr inbounds %struct.osub, ptr %7, i32 0, i32 0
  store ptr %73, ptr %74, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct.osub, ptr %7, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.mesh, ptr %77, i32 0, i32 50
  %79 = load ptr, ptr %78, align 8, !tbaa !14
  %80 = icmp eq ptr %76, %79
  br i1 %80, label %81, label %83

81:                                               ; preds = %56
  %82 = call i32 (ptr, ...) @printf(ptr noundef @.str.29)
  br label %90

83:                                               ; preds = %56
  %84 = getelementptr inbounds %struct.osub, ptr %7, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !9
  %86 = ptrtoint ptr %85 to i64
  %87 = getelementptr inbounds %struct.osub, ptr %7, i32 0, i32 1
  %88 = load i32, ptr %87, align 8, !tbaa !12
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str.14, i64 noundef %86, i32 noundef %88)
  br label %90

90:                                               ; preds = %83, %81
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.osub, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !9
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.osub, ptr %94, i32 0, i32 1
  %96 = load i32, ptr %95, align 8, !tbaa !12
  %97 = add nsw i32 2, %96
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds ptr, ptr %93, i64 %98
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  store ptr %100, ptr %9, align 8, !tbaa !5
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = icmp eq ptr %101, null
  br i1 %102, label %103, label %109

103:                                              ; preds = %90
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.osub, ptr %104, i32 0, i32 1
  %106 = load i32, ptr %105, align 8, !tbaa !12
  %107 = add nsw i32 2, %106
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.17, i32 noundef %107)
  br label %125

109:                                              ; preds = %90
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.osub, ptr %110, i32 0, i32 1
  %112 = load i32, ptr %111, align 8, !tbaa !12
  %113 = add nsw i32 2, %112
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  %115 = ptrtoint ptr %114 to i64
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = getelementptr inbounds float, ptr %116, i64 0
  %118 = load float, ptr %117, align 4, !tbaa !20
  %119 = fpext float %118 to double
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = getelementptr inbounds float, ptr %120, i64 1
  %122 = load float, ptr %121, align 4, !tbaa !20
  %123 = fpext float %122 to double
  %124 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, i32 noundef %113, i64 noundef %115, double noundef %119, double noundef %123)
  br label %125

125:                                              ; preds = %109, %103
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.osub, ptr %126, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8, !tbaa !9
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.osub, ptr %129, i32 0, i32 1
  %131 = load i32, ptr %130, align 8, !tbaa !12
  %132 = sub nsw i32 3, %131
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds ptr, ptr %128, i64 %133
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  store ptr %135, ptr %9, align 8, !tbaa !5
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = icmp eq ptr %136, null
  br i1 %137, label %138, label %144

138:                                              ; preds = %125
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.osub, ptr %139, i32 0, i32 1
  %141 = load i32, ptr %140, align 8, !tbaa !12
  %142 = sub nsw i32 3, %141
  %143 = call i32 (ptr, ...) @printf(ptr noundef @.str.19, i32 noundef %142)
  br label %160

144:                                              ; preds = %125
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.osub, ptr %145, i32 0, i32 1
  %147 = load i32, ptr %146, align 8, !tbaa !12
  %148 = sub nsw i32 3, %147
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = ptrtoint ptr %149 to i64
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = getelementptr inbounds float, ptr %151, i64 0
  %153 = load float, ptr %152, align 4, !tbaa !20
  %154 = fpext float %153 to double
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = getelementptr inbounds float, ptr %155, i64 1
  %157 = load float, ptr %156, align 4, !tbaa !20
  %158 = fpext float %157 to double
  %159 = call i32 (ptr, ...) @printf(ptr noundef @.str.20, i32 noundef %148, i64 noundef %150, double noundef %154, double noundef %158)
  br label %160

160:                                              ; preds = %144, %138
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.osub, ptr %161, i32 0, i32 0
  %163 = load ptr, ptr %162, align 8, !tbaa !9
  %164 = getelementptr inbounds ptr, ptr %163, i64 6
  %165 = load ptr, ptr %164, align 8, !tbaa !5
  %166 = ptrtoint ptr %165 to i64
  %167 = and i64 %166, 3
  %168 = trunc i64 %167 to i32
  %169 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 1
  store i32 %168, ptr %169, align 8, !tbaa !21
  %170 = load ptr, ptr %6, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.osub, ptr %170, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8, !tbaa !9
  %173 = getelementptr inbounds ptr, ptr %172, i64 6
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = ptrtoint ptr %174 to i64
  %176 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 1
  %177 = load i32, ptr %176, align 8, !tbaa !21
  %178 = sext i32 %177 to i64
  %179 = xor i64 %175, %178
  %180 = inttoptr i64 %179 to ptr
  %181 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 0
  store ptr %180, ptr %181, align 8, !tbaa !22
  %182 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 0
  %183 = load ptr, ptr %182, align 8, !tbaa !22
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.mesh, ptr %184, i32 0, i32 48
  %186 = load ptr, ptr %185, align 8, !tbaa !23
  %187 = icmp eq ptr %183, %186
  br i1 %187, label %188, label %190

188:                                              ; preds = %160
  %189 = call i32 (ptr, ...) @printf(ptr noundef @.str.30)
  br label %197

190:                                              ; preds = %160
  %191 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 0
  %192 = load ptr, ptr %191, align 8, !tbaa !22
  %193 = ptrtoint ptr %192 to i64
  %194 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 1
  %195 = load i32, ptr %194, align 8, !tbaa !21
  %196 = call i32 (ptr, ...) @printf(ptr noundef @.str.23, i64 noundef %193, i32 noundef %195)
  br label %197

197:                                              ; preds = %190, %188
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.osub, ptr %198, i32 0, i32 0
  %200 = load ptr, ptr %199, align 8, !tbaa !9
  %201 = getelementptr inbounds ptr, ptr %200, i64 7
  %202 = load ptr, ptr %201, align 8, !tbaa !5
  %203 = ptrtoint ptr %202 to i64
  %204 = and i64 %203, 3
  %205 = trunc i64 %204 to i32
  %206 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 1
  store i32 %205, ptr %206, align 8, !tbaa !21
  %207 = load ptr, ptr %6, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.osub, ptr %207, i32 0, i32 0
  %209 = load ptr, ptr %208, align 8, !tbaa !9
  %210 = getelementptr inbounds ptr, ptr %209, i64 7
  %211 = load ptr, ptr %210, align 8, !tbaa !5
  %212 = ptrtoint ptr %211 to i64
  %213 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 1
  %214 = load i32, ptr %213, align 8, !tbaa !21
  %215 = sext i32 %214 to i64
  %216 = xor i64 %212, %215
  %217 = inttoptr i64 %216 to ptr
  %218 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 0
  store ptr %217, ptr %218, align 8, !tbaa !22
  %219 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 0
  %220 = load ptr, ptr %219, align 8, !tbaa !22
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.mesh, ptr %221, i32 0, i32 48
  %223 = load ptr, ptr %222, align 8, !tbaa !23
  %224 = icmp eq ptr %220, %223
  br i1 %224, label %225, label %227

225:                                              ; preds = %197
  %226 = call i32 (ptr, ...) @printf(ptr noundef @.str.31)
  br label %234

227:                                              ; preds = %197
  %228 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 0
  %229 = load ptr, ptr %228, align 8, !tbaa !22
  %230 = ptrtoint ptr %229 to i64
  %231 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 1
  %232 = load i32, ptr %231, align 8, !tbaa !21
  %233 = call i32 (ptr, ...) @printf(ptr noundef @.str.24, i64 noundef %230, i32 noundef %232)
  br label %234

234:                                              ; preds = %227, %225
  %235 = load ptr, ptr %6, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.osub, ptr %235, i32 0, i32 0
  %237 = load ptr, ptr %236, align 8, !tbaa !9
  %238 = load ptr, ptr %6, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.osub, ptr %238, i32 0, i32 1
  %240 = load i32, ptr %239, align 8, !tbaa !12
  %241 = add nsw i32 4, %240
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds ptr, ptr %237, i64 %242
  %244 = load ptr, ptr %243, align 8, !tbaa !5
  store ptr %244, ptr %9, align 8, !tbaa !5
  %245 = load ptr, ptr %9, align 8, !tbaa !5
  %246 = icmp eq ptr %245, null
  br i1 %246, label %247, label %253

247:                                              ; preds = %234
  %248 = load ptr, ptr %6, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.osub, ptr %248, i32 0, i32 1
  %250 = load i32, ptr %249, align 8, !tbaa !12
  %251 = add nsw i32 4, %250
  %252 = call i32 (ptr, ...) @printf(ptr noundef @.str.32, i32 noundef %251)
  br label %269

253:                                              ; preds = %234
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.osub, ptr %254, i32 0, i32 1
  %256 = load i32, ptr %255, align 8, !tbaa !12
  %257 = add nsw i32 4, %256
  %258 = load ptr, ptr %9, align 8, !tbaa !5
  %259 = ptrtoint ptr %258 to i64
  %260 = load ptr, ptr %9, align 8, !tbaa !5
  %261 = getelementptr inbounds float, ptr %260, i64 0
  %262 = load float, ptr %261, align 4, !tbaa !20
  %263 = fpext float %262 to double
  %264 = load ptr, ptr %9, align 8, !tbaa !5
  %265 = getelementptr inbounds float, ptr %264, i64 1
  %266 = load float, ptr %265, align 4, !tbaa !20
  %267 = fpext float %266 to double
  %268 = call i32 (ptr, ...) @printf(ptr noundef @.str.33, i32 noundef %257, i64 noundef %259, double noundef %263, double noundef %267)
  br label %269

269:                                              ; preds = %253, %247
  %270 = load ptr, ptr %6, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.osub, ptr %270, i32 0, i32 0
  %272 = load ptr, ptr %271, align 8, !tbaa !9
  %273 = load ptr, ptr %6, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.osub, ptr %273, i32 0, i32 1
  %275 = load i32, ptr %274, align 8, !tbaa !12
  %276 = sub nsw i32 5, %275
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds ptr, ptr %272, i64 %277
  %279 = load ptr, ptr %278, align 8, !tbaa !5
  store ptr %279, ptr %9, align 8, !tbaa !5
  %280 = load ptr, ptr %9, align 8, !tbaa !5
  %281 = icmp eq ptr %280, null
  br i1 %281, label %282, label %288

282:                                              ; preds = %269
  %283 = load ptr, ptr %6, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.osub, ptr %283, i32 0, i32 1
  %285 = load i32, ptr %284, align 8, !tbaa !12
  %286 = sub nsw i32 5, %285
  %287 = call i32 (ptr, ...) @printf(ptr noundef @.str.34, i32 noundef %286)
  br label %304

288:                                              ; preds = %269
  %289 = load ptr, ptr %6, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.osub, ptr %289, i32 0, i32 1
  %291 = load i32, ptr %290, align 8, !tbaa !12
  %292 = sub nsw i32 5, %291
  %293 = load ptr, ptr %9, align 8, !tbaa !5
  %294 = ptrtoint ptr %293 to i64
  %295 = load ptr, ptr %9, align 8, !tbaa !5
  %296 = getelementptr inbounds float, ptr %295, i64 0
  %297 = load float, ptr %296, align 4, !tbaa !20
  %298 = fpext float %297 to double
  %299 = load ptr, ptr %9, align 8, !tbaa !5
  %300 = getelementptr inbounds float, ptr %299, i64 1
  %301 = load float, ptr %300, align 4, !tbaa !20
  %302 = fpext float %301 to double
  %303 = call i32 (ptr, ...) @printf(ptr noundef @.str.35, i32 noundef %292, i64 noundef %294, double noundef %298, double noundef %302)
  br label %304

304:                                              ; preds = %288, %282
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { 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, !6, i64 0}
!10 = !{!"osub", !6, i64 0, !11, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !6, i64 82856}
!15 = !{!"mesh", !16, i64 0, !16, i64 88, !16, i64 176, !16, i64 264, !16, i64 352, !16, i64 440, !16, i64 528, !16, i64 616, !7, i64 704, !7, i64 33472, !7, i64 66240, !11, i64 82624, !6, i64 82632, !18, i64 82640, !18, i64 82644, !18, i64 82648, !18, i64 82652, !18, i64 82656, !11, i64 82660, !11, i64 82664, !11, i64 82668, !11, i64 82672, !11, i64 82676, !11, i64 82680, !17, i64 82688, !11, i64 82696, !11, i64 82700, !11, i64 82704, !17, i64 82712, !11, i64 82720, !11, i64 82724, !11, i64 82728, !11, i64 82732, !11, i64 82736, !11, i64 82740, !11, i64 82744, !11, i64 82748, !11, i64 82752, !17, i64 82760, !17, i64 82768, !17, i64 82776, !17, i64 82784, !17, i64 82792, !17, i64 82800, !17, i64 82808, !6, i64 82816, !6, i64 82824, !6, i64 82832, !6, i64 82840, !6, i64 82848, !6, i64 82856, !6, i64 82864, !19, i64 82872}
!16 = !{!"memorypool", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !17, i64 64, !17, i64 72, !11, i64 80, !11, i64 84}
!17 = !{!"long", !7, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = !{!"otri", !6, i64 0, !11, i64 8}
!20 = !{!18, !18, i64 0}
!21 = !{!19, !11, i64 8}
!22 = !{!19, !6, i64 0}
!23 = !{!15, !6, i64 82840}


; 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.12 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [47 x i8], align 1

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

; Function Attrs: nofree nounwind uwtable
define dso_local void @printsubseg(ptr nocapture noundef readonly %0, ptr nocapture noundef readnone %1, ptr nocapture noundef readonly %2) local_unnamed_addr #1 {
  %4 = load ptr, ptr %2, align 8, !tbaa !5
  %5 = ptrtoint ptr %4 to i64
  %6 = getelementptr inbounds i8, ptr %2, i64 8
  %7 = load i32, ptr %6, align 8, !tbaa !11
  %8 = getelementptr inbounds i8, ptr %4, i64 64
  %9 = load i32, ptr %8, align 4, !tbaa !12
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27, i64 noundef %5, i32 noundef %7, i32 noundef %9)
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = load ptr, ptr %11, align 8, !tbaa !13
  %13 = ptrtoint ptr %12 to i64
  %14 = and i64 %13, -4
  %15 = inttoptr i64 %14 to ptr
  %16 = getelementptr inbounds i8, ptr %0, i64 82856
  %17 = load ptr, ptr %16, align 8, !tbaa !14
  %18 = icmp eq ptr %17, %15
  br i1 %18, label %19, label %21

19:                                               ; preds = %3
  %20 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.28)
  br label %25

21:                                               ; preds = %3
  %22 = trunc i64 %13 to i32
  %23 = and i32 %22, 1
  %24 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i64 noundef %14, i32 noundef %23)
  br label %25

25:                                               ; preds = %21, %19
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 8
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = ptrtoint ptr %28 to i64
  %30 = and i64 %29, -4
  %31 = inttoptr i64 %30 to ptr
  %32 = load ptr, ptr %16, align 8, !tbaa !14
  %33 = icmp eq ptr %32, %31
  br i1 %33, label %34, label %36

34:                                               ; preds = %25
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.29)
  br label %40

36:                                               ; preds = %25
  %37 = trunc i64 %29 to i32
  %38 = and i32 %37, 1
  %39 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14, i64 noundef %30, i32 noundef %38)
  br label %40

40:                                               ; preds = %36, %34
  %41 = load ptr, ptr %2, align 8, !tbaa !5
  %42 = load i32, ptr %6, align 8, !tbaa !11
  %43 = add nsw i32 %42, 2
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds ptr, ptr %41, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !13
  %47 = icmp eq ptr %46, null
  br i1 %47, label %48, label %50

48:                                               ; preds = %40
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17, i32 noundef %43)
  br label %58

50:                                               ; preds = %40
  %51 = ptrtoint ptr %46 to i64
  %52 = load float, ptr %46, align 4, !tbaa !20
  %53 = fpext float %52 to double
  %54 = getelementptr inbounds i8, ptr %46, i64 4
  %55 = load float, ptr %54, align 4, !tbaa !20
  %56 = fpext float %55 to double
  %57 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, i32 noundef %43, i64 noundef %51, double noundef %53, double noundef %56)
  br label %58

58:                                               ; preds = %50, %48
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = load i32, ptr %6, align 8, !tbaa !11
  %61 = sub nsw i32 3, %60
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds ptr, ptr %59, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !13
  %65 = icmp eq ptr %64, null
  br i1 %65, label %66, label %68

66:                                               ; preds = %58
  %67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19, i32 noundef %61)
  br label %76

68:                                               ; preds = %58
  %69 = ptrtoint ptr %64 to i64
  %70 = load float, ptr %64, align 4, !tbaa !20
  %71 = fpext float %70 to double
  %72 = getelementptr inbounds i8, ptr %64, i64 4
  %73 = load float, ptr %72, align 4, !tbaa !20
  %74 = fpext float %73 to double
  %75 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20, i32 noundef %61, i64 noundef %69, double noundef %71, double noundef %74)
  br label %76

76:                                               ; preds = %68, %66
  %77 = load ptr, ptr %2, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i64 48
  %79 = load ptr, ptr %78, align 8, !tbaa !13
  %80 = ptrtoint ptr %79 to i64
  %81 = and i64 %80, -4
  %82 = inttoptr i64 %81 to ptr
  %83 = getelementptr inbounds i8, ptr %0, i64 82840
  %84 = load ptr, ptr %83, align 8, !tbaa !21
  %85 = icmp eq ptr %84, %82
  br i1 %85, label %86, label %88

86:                                               ; preds = %76
  %87 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.30)
  br label %92

88:                                               ; preds = %76
  %89 = trunc i64 %80 to i32
  %90 = and i32 %89, 3
  %91 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23, i64 noundef %81, i32 noundef %90)
  br label %92

92:                                               ; preds = %88, %86
  %93 = load ptr, ptr %2, align 8, !tbaa !5
  %94 = getelementptr inbounds i8, ptr %93, i64 56
  %95 = load ptr, ptr %94, align 8, !tbaa !13
  %96 = ptrtoint ptr %95 to i64
  %97 = and i64 %96, -4
  %98 = inttoptr i64 %97 to ptr
  %99 = load ptr, ptr %83, align 8, !tbaa !21
  %100 = icmp eq ptr %99, %98
  br i1 %100, label %101, label %103

101:                                              ; preds = %92
  %102 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.31)
  br label %107

103:                                              ; preds = %92
  %104 = trunc i64 %96 to i32
  %105 = and i32 %104, 3
  %106 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24, i64 noundef %97, i32 noundef %105)
  br label %107

107:                                              ; preds = %103, %101
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  %109 = load i32, ptr %6, align 8, !tbaa !11
  %110 = add nsw i32 %109, 4
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds ptr, ptr %108, i64 %111
  %113 = load ptr, ptr %112, align 8, !tbaa !13
  %114 = icmp eq ptr %113, null
  br i1 %114, label %115, label %117

115:                                              ; preds = %107
  %116 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.32, i32 noundef %110)
  br label %125

117:                                              ; preds = %107
  %118 = ptrtoint ptr %113 to i64
  %119 = load float, ptr %113, align 4, !tbaa !20
  %120 = fpext float %119 to double
  %121 = getelementptr inbounds i8, ptr %113, i64 4
  %122 = load float, ptr %121, align 4, !tbaa !20
  %123 = fpext float %122 to double
  %124 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.33, i32 noundef %110, i64 noundef %118, double noundef %120, double noundef %123)
  br label %125

125:                                              ; preds = %117, %115
  %126 = load ptr, ptr %2, align 8, !tbaa !5
  %127 = load i32, ptr %6, align 8, !tbaa !11
  %128 = sub nsw i32 5, %127
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds ptr, ptr %126, i64 %129
  %131 = load ptr, ptr %130, align 8, !tbaa !13
  %132 = icmp eq ptr %131, null
  br i1 %132, label %133, label %135

133:                                              ; preds = %125
  %134 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34, i32 noundef %128)
  br label %143

135:                                              ; preds = %125
  %136 = ptrtoint ptr %131 to i64
  %137 = load float, ptr %131, align 4, !tbaa !20
  %138 = fpext float %137 to double
  %139 = getelementptr inbounds i8, ptr %131, i64 4
  %140 = load float, ptr %139, align 4, !tbaa !20
  %141 = fpext float %140 to double
  %142 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.35, i32 noundef %128, i64 noundef %136, double noundef %138, double noundef %141)
  br label %143

143:                                              ; preds = %135, %133
  ret void
}

attributes #0 = { 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 #1 = { nofree 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" }

!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, !7, i64 0}
!6 = !{!"osub", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = !{!10, !10, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 82856}
!15 = !{!"mesh", !16, i64 0, !16, i64 88, !16, i64 176, !16, i64 264, !16, i64 352, !16, i64 440, !16, i64 528, !16, i64 616, !8, i64 704, !8, i64 33472, !8, i64 66240, !10, i64 82624, !7, i64 82632, !18, i64 82640, !18, i64 82644, !18, i64 82648, !18, i64 82652, !18, i64 82656, !10, i64 82660, !10, i64 82664, !10, i64 82668, !10, i64 82672, !10, i64 82676, !10, i64 82680, !17, i64 82688, !10, i64 82696, !10, i64 82700, !10, i64 82704, !17, i64 82712, !10, i64 82720, !10, i64 82724, !10, i64 82728, !10, i64 82732, !10, i64 82736, !10, i64 82740, !10, i64 82744, !10, i64 82748, !10, i64 82752, !17, i64 82760, !17, i64 82768, !17, i64 82776, !17, i64 82784, !17, i64 82792, !17, i64 82800, !17, i64 82808, !7, i64 82816, !7, i64 82824, !7, i64 82832, !7, i64 82840, !7, i64 82848, !7, i64 82856, !7, i64 82864, !19, i64 82872}
!16 = !{!"memorypool", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !17, i64 64, !17, i64 72, !10, i64 80, !10, i64 84}
!17 = !{!"long", !8, i64 0}
!18 = !{!"float", !8, i64 0}
!19 = !{!"otri", !7, i64 0, !10, i64 8}
!20 = !{!18, !18, i64 0}
!21 = !{!15, !7, i64 82840}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,TailCallElimPass