; 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.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, double, double, double, double, double, 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.897 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.899 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.902 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.903 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.904 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.905 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.908 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.909 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.912 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.913 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.914 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.915 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.916 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.917 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.918 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.919 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.920 = 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

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

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

; 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.912, 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.913)
  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.897, 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.914)
  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.899, 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.902, i32 noundef %107)
  br label %123

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 double, ptr %116, i64 0
  %118 = load double, ptr %117, align 8, !tbaa !20
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds double, ptr %119, i64 1
  %121 = load double, ptr %120, align 8, !tbaa !20
  %122 = call i32 (ptr, ...) @printf(ptr noundef @.str.903, i32 noundef %113, i64 noundef %115, double noundef %118, double noundef %121)
  br label %123

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

136:                                              ; preds = %123
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.osub, ptr %137, i32 0, i32 1
  %139 = load i32, ptr %138, align 8, !tbaa !12
  %140 = sub nsw i32 3, %139
  %141 = call i32 (ptr, ...) @printf(ptr noundef @.str.904, i32 noundef %140)
  br label %156

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

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

184:                                              ; preds = %156
  %185 = call i32 (ptr, ...) @printf(ptr noundef @.str.915)
  br label %193

186:                                              ; preds = %156
  %187 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 0
  %188 = load ptr, ptr %187, align 8, !tbaa !22
  %189 = ptrtoint ptr %188 to i64
  %190 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 1
  %191 = load i32, ptr %190, align 8, !tbaa !21
  %192 = call i32 (ptr, ...) @printf(ptr noundef @.str.908, i64 noundef %189, i32 noundef %191)
  br label %193

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

221:                                              ; preds = %193
  %222 = call i32 (ptr, ...) @printf(ptr noundef @.str.916)
  br label %230

223:                                              ; preds = %193
  %224 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 0
  %225 = load ptr, ptr %224, align 8, !tbaa !22
  %226 = ptrtoint ptr %225 to i64
  %227 = getelementptr inbounds %struct.otri, ptr %8, i32 0, i32 1
  %228 = load i32, ptr %227, align 8, !tbaa !21
  %229 = call i32 (ptr, ...) @printf(ptr noundef @.str.909, i64 noundef %226, i32 noundef %228)
  br label %230

230:                                              ; preds = %223, %221
  %231 = load ptr, ptr %6, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.osub, ptr %231, i32 0, i32 0
  %233 = load ptr, ptr %232, align 8, !tbaa !9
  %234 = load ptr, ptr %6, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.osub, ptr %234, i32 0, i32 1
  %236 = load i32, ptr %235, align 8, !tbaa !12
  %237 = add nsw i32 4, %236
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds ptr, ptr %233, i64 %238
  %240 = load ptr, ptr %239, align 8, !tbaa !5
  store ptr %240, ptr %9, align 8, !tbaa !5
  %241 = load ptr, ptr %9, align 8, !tbaa !5
  %242 = icmp eq ptr %241, null
  br i1 %242, label %243, label %249

243:                                              ; preds = %230
  %244 = load ptr, ptr %6, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.osub, ptr %244, i32 0, i32 1
  %246 = load i32, ptr %245, align 8, !tbaa !12
  %247 = add nsw i32 4, %246
  %248 = call i32 (ptr, ...) @printf(ptr noundef @.str.917, i32 noundef %247)
  br label %263

249:                                              ; preds = %230
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.osub, ptr %250, i32 0, i32 1
  %252 = load i32, ptr %251, align 8, !tbaa !12
  %253 = add nsw i32 4, %252
  %254 = load ptr, ptr %9, align 8, !tbaa !5
  %255 = ptrtoint ptr %254 to i64
  %256 = load ptr, ptr %9, align 8, !tbaa !5
  %257 = getelementptr inbounds double, ptr %256, i64 0
  %258 = load double, ptr %257, align 8, !tbaa !20
  %259 = load ptr, ptr %9, align 8, !tbaa !5
  %260 = getelementptr inbounds double, ptr %259, i64 1
  %261 = load double, ptr %260, align 8, !tbaa !20
  %262 = call i32 (ptr, ...) @printf(ptr noundef @.str.918, i32 noundef %253, i64 noundef %255, double noundef %258, double noundef %261)
  br label %263

263:                                              ; preds = %249, %243
  %264 = load ptr, ptr %6, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.osub, ptr %264, i32 0, i32 0
  %266 = load ptr, ptr %265, align 8, !tbaa !9
  %267 = load ptr, ptr %6, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.osub, ptr %267, i32 0, i32 1
  %269 = load i32, ptr %268, align 8, !tbaa !12
  %270 = sub nsw i32 5, %269
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds ptr, ptr %266, i64 %271
  %273 = load ptr, ptr %272, align 8, !tbaa !5
  store ptr %273, ptr %9, align 8, !tbaa !5
  %274 = load ptr, ptr %9, align 8, !tbaa !5
  %275 = icmp eq ptr %274, null
  br i1 %275, label %276, label %282

276:                                              ; preds = %263
  %277 = load ptr, ptr %6, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.osub, ptr %277, i32 0, i32 1
  %279 = load i32, ptr %278, align 8, !tbaa !12
  %280 = sub nsw i32 5, %279
  %281 = call i32 (ptr, ...) @printf(ptr noundef @.str.919, i32 noundef %280)
  br label %296

282:                                              ; preds = %263
  %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 = load ptr, ptr %9, align 8, !tbaa !5
  %288 = ptrtoint ptr %287 to i64
  %289 = load ptr, ptr %9, align 8, !tbaa !5
  %290 = getelementptr inbounds double, ptr %289, i64 0
  %291 = load double, ptr %290, align 8, !tbaa !20
  %292 = load ptr, ptr %9, align 8, !tbaa !5
  %293 = getelementptr inbounds double, ptr %292, i64 1
  %294 = load double, ptr %293, align 8, !tbaa !20
  %295 = call i32 (ptr, ...) @printf(ptr noundef @.str.920, i32 noundef %286, i64 noundef %288, double noundef %291, double noundef %294)
  br label %296

296:                                              ; preds = %282, %276
  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 82872}
!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 82648, !18, i64 82656, !18, i64 82664, !18, i64 82672, !11, i64 82680, !11, i64 82684, !11, i64 82688, !11, i64 82692, !11, i64 82696, !11, i64 82700, !17, i64 82704, !11, i64 82712, !11, i64 82716, !11, i64 82720, !17, i64 82728, !11, i64 82736, !11, i64 82740, !11, i64 82744, !11, i64 82748, !11, i64 82752, !11, i64 82756, !11, i64 82760, !11, i64 82764, !11, i64 82768, !17, i64 82776, !17, i64 82784, !17, i64 82792, !17, i64 82800, !17, i64 82808, !17, i64 82816, !17, i64 82824, !6, i64 82832, !6, i64 82840, !6, i64 82848, !6, i64 82856, !6, i64 82864, !6, i64 82872, !6, i64 82880, !19, i64 82888}
!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 = !{!"double", !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 82856}


; 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.897 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.899 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.902 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.903 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.904 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.905 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.908 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.909 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.912 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.913 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.914 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.915 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.916 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.917 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.918 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.919 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.920 = 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.912, 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 82872
  %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.913)
  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.897, 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.914)
  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.899, 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.902, i32 noundef %43)
  br label %56

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

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

64:                                               ; preds = %56
  %65 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.904, i32 noundef %59)
  br label %72

66:                                               ; preds = %56
  %67 = ptrtoint ptr %62 to i64
  %68 = load double, ptr %62, align 8, !tbaa !20
  %69 = getelementptr inbounds i8, ptr %62, i64 8
  %70 = load double, ptr %69, align 8, !tbaa !20
  %71 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.905, i32 noundef %59, i64 noundef %67, double noundef %68, double noundef %70)
  br label %72

72:                                               ; preds = %66, %64
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %73, i64 48
  %75 = load ptr, ptr %74, align 8, !tbaa !13
  %76 = ptrtoint ptr %75 to i64
  %77 = and i64 %76, -4
  %78 = inttoptr i64 %77 to ptr
  %79 = getelementptr inbounds i8, ptr %0, i64 82856
  %80 = load ptr, ptr %79, align 8, !tbaa !21
  %81 = icmp eq ptr %80, %78
  br i1 %81, label %82, label %84

82:                                               ; preds = %72
  %83 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.915)
  br label %88

84:                                               ; preds = %72
  %85 = trunc i64 %76 to i32
  %86 = and i32 %85, 3
  %87 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.908, i64 noundef %77, i32 noundef %86)
  br label %88

88:                                               ; preds = %84, %82
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 56
  %91 = load ptr, ptr %90, align 8, !tbaa !13
  %92 = ptrtoint ptr %91 to i64
  %93 = and i64 %92, -4
  %94 = inttoptr i64 %93 to ptr
  %95 = load ptr, ptr %79, align 8, !tbaa !21
  %96 = icmp eq ptr %95, %94
  br i1 %96, label %97, label %99

97:                                               ; preds = %88
  %98 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.916)
  br label %103

99:                                               ; preds = %88
  %100 = trunc i64 %92 to i32
  %101 = and i32 %100, 3
  %102 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.909, i64 noundef %93, i32 noundef %101)
  br label %103

103:                                              ; preds = %99, %97
  %104 = load ptr, ptr %2, align 8, !tbaa !5
  %105 = load i32, ptr %6, align 8, !tbaa !11
  %106 = add nsw i32 %105, 4
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds ptr, ptr %104, i64 %107
  %109 = load ptr, ptr %108, align 8, !tbaa !13
  %110 = icmp eq ptr %109, null
  br i1 %110, label %111, label %113

111:                                              ; preds = %103
  %112 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.917, i32 noundef %106)
  br label %119

113:                                              ; preds = %103
  %114 = ptrtoint ptr %109 to i64
  %115 = load double, ptr %109, align 8, !tbaa !20
  %116 = getelementptr inbounds i8, ptr %109, i64 8
  %117 = load double, ptr %116, align 8, !tbaa !20
  %118 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.918, i32 noundef %106, i64 noundef %114, double noundef %115, double noundef %117)
  br label %119

119:                                              ; preds = %113, %111
  %120 = load ptr, ptr %2, align 8, !tbaa !5
  %121 = load i32, ptr %6, align 8, !tbaa !11
  %122 = sub nsw i32 5, %121
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds ptr, ptr %120, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !13
  %126 = icmp eq ptr %125, null
  br i1 %126, label %127, label %129

127:                                              ; preds = %119
  %128 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.919, i32 noundef %122)
  br label %135

129:                                              ; preds = %119
  %130 = ptrtoint ptr %125 to i64
  %131 = load double, ptr %125, align 8, !tbaa !20
  %132 = getelementptr inbounds i8, ptr %125, i64 8
  %133 = load double, ptr %132, align 8, !tbaa !20
  %134 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.920, i32 noundef %122, i64 noundef %130, double noundef %131, double noundef %133)
  br label %135

135:                                              ; preds = %129, %127
  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 82872}
!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 82648, !18, i64 82656, !18, i64 82664, !18, i64 82672, !10, i64 82680, !10, i64 82684, !10, i64 82688, !10, i64 82692, !10, i64 82696, !10, i64 82700, !17, i64 82704, !10, i64 82712, !10, i64 82716, !10, i64 82720, !17, i64 82728, !10, i64 82736, !10, i64 82740, !10, i64 82744, !10, i64 82748, !10, i64 82752, !10, i64 82756, !10, i64 82760, !10, i64 82764, !10, i64 82768, !17, i64 82776, !17, i64 82784, !17, i64 82792, !17, i64 82800, !17, i64 82808, !17, i64 82816, !17, i64 82824, !7, i64 82832, !7, i64 82840, !7, i64 82848, !7, i64 82856, !7, i64 82864, !7, i64 82872, !7, i64 82880, !19, i64 82888}
!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 = !{!"double", !8, i64 0}
!19 = !{!"otri", !7, i64 0, !10, i64 8}
!20 = !{!18, !18, i64 0}
!21 = !{!15, !7, i64 82856}


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