; LLVM IR from CLASS-SZ/class_sz :: class-sz/source (primordial)

; 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.perturbs = type { i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i32, i32, i32, i32, double, i32, i32, [100 x double], [100 x double], i32, i32, i32, i32, i32, double, i32, i32, [30 x double], double, double, double, ptr, ptr, i32, i16, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, 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, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, double, double, ptr, i32, double, double, double, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, [8000 x i8], [8000 x i8], [8000 x i8], i32, i32, i32, [30 x ptr], [30 x ptr], [30 x ptr], [30 x i32], [30 x i32], [30 x i32], i16, [2048 x i8] }
%struct.primordial = type { double, i32, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, double, double, double, double, double, double, double, double, double, double, double, i32, double, i32, ptr, double, double, double, double, double, double, double, double, double, double, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, i16, [2048 x i8] }

@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [10 x i8], align 1
@__func__.primordial_indices = external hidden unnamed_addr constant [19 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [27 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 void @class_protect_sprintf(ptr noundef, 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 i32 @primordial_indices(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca [2048 x i8], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [2048 x i8], align 16
  %12 = alloca i32, align 4
  %13 = alloca [2048 x i8], align 16
  %14 = alloca i32, align 4
  %15 = alloca [2048 x i8], align 16
  %16 = alloca i32, align 4
  %17 = alloca [2048 x i8], align 16
  %18 = alloca i32, align 4
  %19 = alloca [2048 x i8], align 16
  %20 = alloca i32, align 4
  %21 = alloca [2048 x i8], align 16
  %22 = alloca i32, align 4
  %23 = alloca [2048 x i8], align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.perturbs, ptr %24, i32 0, i32 59
  %26 = load i32, ptr %25, align 8, !tbaa !9
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.primordial, ptr %27, i32 0, i32 77
  store i32 %26, ptr %28, align 8, !tbaa !14
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.perturbs, ptr %29, i32 0, i32 59
  %31 = load i32, ptr %30, align 8, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = mul i64 %32, 8
  %34 = call noalias ptr @malloc(i64 noundef %33) #5
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.primordial, ptr %35, i32 0, i32 82
  store ptr %34, ptr %36, align 8, !tbaa !16
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.primordial, ptr %37, i32 0, i32 82
  %39 = load ptr, ptr %38, align 8, !tbaa !16
  %40 = icmp eq ptr %39, null
  br i1 %40, label %41, label %54

41:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.perturbs, ptr %42, i32 0, i32 59
  %44 = load i32, ptr %43, align 8, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = mul i64 %45, 8
  %47 = trunc i64 %46 to i32
  store i32 %47, ptr %7, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %8) #4
  %48 = getelementptr inbounds [2048 x i8], ptr %8, i64 0, i64 0
  %49 = load i32, ptr %7, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %48, ptr noundef @.str.52, ptr noundef @.str.53, i32 noundef %49)
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.primordial, ptr %50, i32 0, i32 106
  %52 = getelementptr inbounds [2048 x i8], ptr %51, i64 0, i64 0
  %53 = getelementptr inbounds [2048 x i8], ptr %8, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %52, ptr noundef @.str.3, ptr noundef @__func__.primordial_indices, i32 noundef 609, ptr noundef %53)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %8) #4
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %348

54:                                               ; preds = %2
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.perturbs, ptr %55, i32 0, i32 59
  %57 = load i32, ptr %56, align 8, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = mul i64 %58, 8
  %60 = call noalias ptr @malloc(i64 noundef %59) #5
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.primordial, ptr %61, i32 0, i32 83
  store ptr %60, ptr %62, align 8, !tbaa !18
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.primordial, ptr %63, i32 0, i32 83
  %65 = load ptr, ptr %64, align 8, !tbaa !18
  %66 = icmp eq ptr %65, null
  br i1 %66, label %67, label %80

67:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.perturbs, ptr %68, i32 0, i32 59
  %70 = load i32, ptr %69, align 8, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = mul i64 %71, 8
  %73 = trunc i64 %72 to i32
  store i32 %73, ptr %10, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %11) #4
  %74 = getelementptr inbounds [2048 x i8], ptr %11, i64 0, i64 0
  %75 = load i32, ptr %10, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %74, ptr noundef @.str.52, ptr noundef @.str.54, i32 noundef %75)
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.primordial, ptr %76, i32 0, i32 106
  %78 = getelementptr inbounds [2048 x i8], ptr %77, i64 0, i64 0
  %79 = getelementptr inbounds [2048 x i8], ptr %11, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %78, ptr noundef @.str.3, ptr noundef @__func__.primordial_indices, i32 noundef 611, ptr noundef %79)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %11) #4
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %348

80:                                               ; preds = %54
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.perturbs, ptr %81, i32 0, i32 59
  %83 = load i32, ptr %82, align 8, !tbaa !9
  %84 = sext i32 %83 to i64
  %85 = mul i64 %84, 8
  %86 = call noalias ptr @malloc(i64 noundef %85) #5
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.primordial, ptr %87, i32 0, i32 78
  store ptr %86, ptr %88, align 8, !tbaa !19
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.primordial, ptr %89, i32 0, i32 78
  %91 = load ptr, ptr %90, align 8, !tbaa !19
  %92 = icmp eq ptr %91, null
  br i1 %92, label %93, label %106

93:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.perturbs, ptr %94, i32 0, i32 59
  %96 = load i32, ptr %95, align 8, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = mul i64 %97, 8
  %99 = trunc i64 %98 to i32
  store i32 %99, ptr %12, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %13) #4
  %100 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  %101 = load i32, ptr %12, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %100, ptr noundef @.str.52, ptr noundef @.str.55, i32 noundef %101)
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.primordial, ptr %102, i32 0, i32 106
  %104 = getelementptr inbounds [2048 x i8], ptr %103, i64 0, i64 0
  %105 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %104, ptr noundef @.str.3, ptr noundef @__func__.primordial_indices, i32 noundef 613, ptr noundef %105)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %13) #4
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %348

106:                                              ; preds = %80
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.perturbs, ptr %107, i32 0, i32 59
  %109 = load i32, ptr %108, align 8, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = mul i64 %110, 8
  %112 = call noalias ptr @malloc(i64 noundef %111) #5
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.primordial, ptr %113, i32 0, i32 79
  store ptr %112, ptr %114, align 8, !tbaa !20
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.primordial, ptr %115, i32 0, i32 79
  %117 = load ptr, ptr %116, align 8, !tbaa !20
  %118 = icmp eq ptr %117, null
  br i1 %118, label %119, label %132

119:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.perturbs, ptr %120, i32 0, i32 59
  %122 = load i32, ptr %121, align 8, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = mul i64 %123, 8
  %125 = trunc i64 %124 to i32
  store i32 %125, ptr %14, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %15) #4
  %126 = getelementptr inbounds [2048 x i8], ptr %15, i64 0, i64 0
  %127 = load i32, ptr %14, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %126, ptr noundef @.str.52, ptr noundef @.str.56, i32 noundef %127)
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.primordial, ptr %128, i32 0, i32 106
  %130 = getelementptr inbounds [2048 x i8], ptr %129, i64 0, i64 0
  %131 = getelementptr inbounds [2048 x i8], ptr %15, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %130, ptr noundef @.str.3, ptr noundef @__func__.primordial_indices, i32 noundef 615, ptr noundef %131)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %15) #4
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %348

132:                                              ; preds = %106
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.primordial, ptr %133, i32 0, i32 77
  %135 = load i32, ptr %134, align 8, !tbaa !14
  %136 = sext i32 %135 to i64
  %137 = mul i64 %136, 8
  %138 = call noalias ptr @malloc(i64 noundef %137) #5
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.primordial, ptr %139, i32 0, i32 84
  store ptr %138, ptr %140, align 8, !tbaa !21
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.primordial, ptr %141, i32 0, i32 84
  %143 = load ptr, ptr %142, align 8, !tbaa !21
  %144 = icmp eq ptr %143, null
  br i1 %144, label %145, label %158

145:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.primordial, ptr %146, i32 0, i32 77
  %148 = load i32, ptr %147, align 8, !tbaa !14
  %149 = sext i32 %148 to i64
  %150 = mul i64 %149, 8
  %151 = trunc i64 %150 to i32
  store i32 %151, ptr %16, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %17) #4
  %152 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  %153 = load i32, ptr %16, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %152, ptr noundef @.str.52, ptr noundef @.str.57, i32 noundef %153)
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.primordial, ptr %154, i32 0, i32 106
  %156 = getelementptr inbounds [2048 x i8], ptr %155, i64 0, i64 0
  %157 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %156, ptr noundef @.str.3, ptr noundef @__func__.primordial_indices, i32 noundef 617, ptr noundef %157)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %17) #4
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %348

158:                                              ; preds = %132
  store i32 0, ptr %6, align 4, !tbaa !17
  br label %159

159:                                              ; preds = %344, %158
  %160 = load i32, ptr %6, align 4, !tbaa !17
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.perturbs, ptr %161, i32 0, i32 59
  %163 = load i32, ptr %162, align 8, !tbaa !9
  %164 = icmp slt i32 %160, %163
  br i1 %164, label %165, label %347

165:                                              ; preds = %159
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.perturbs, ptr %166, i32 0, i32 66
  %168 = load ptr, ptr %167, align 8, !tbaa !22
  %169 = load i32, ptr %6, align 4, !tbaa !17
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds i32, ptr %168, i64 %170
  %172 = load i32, ptr %171, align 4, !tbaa !17
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.primordial, ptr %173, i32 0, i32 78
  %175 = load ptr, ptr %174, align 8, !tbaa !19
  %176 = load i32, ptr %6, align 4, !tbaa !17
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds i32, ptr %175, i64 %177
  store i32 %172, ptr %178, align 4, !tbaa !17
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.primordial, ptr %179, i32 0, i32 78
  %181 = load ptr, ptr %180, align 8, !tbaa !19
  %182 = load i32, ptr %6, align 4, !tbaa !17
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds i32, ptr %181, i64 %183
  %185 = load i32, ptr %184, align 4, !tbaa !17
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.primordial, ptr %186, i32 0, i32 78
  %188 = load ptr, ptr %187, align 8, !tbaa !19
  %189 = load i32, ptr %6, align 4, !tbaa !17
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds i32, ptr %188, i64 %190
  %192 = load i32, ptr %191, align 4, !tbaa !17
  %193 = add nsw i32 %192, 1
  %194 = mul nsw i32 %185, %193
  %195 = sdiv i32 %194, 2
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.primordial, ptr %196, i32 0, i32 79
  %198 = load ptr, ptr %197, align 8, !tbaa !20
  %199 = load i32, ptr %6, align 4, !tbaa !17
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds i32, ptr %198, i64 %200
  store i32 %195, ptr %201, align 4, !tbaa !17
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.primordial, ptr %202, i32 0, i32 80
  %204 = load i32, ptr %203, align 8, !tbaa !23
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.primordial, ptr %205, i32 0, i32 79
  %207 = load ptr, ptr %206, align 8, !tbaa !20
  %208 = load i32, ptr %6, align 4, !tbaa !17
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds i32, ptr %207, i64 %209
  %211 = load i32, ptr %210, align 4, !tbaa !17
  %212 = mul nsw i32 %204, %211
  %213 = sext i32 %212 to i64
  %214 = mul i64 %213, 8
  %215 = call noalias ptr @malloc(i64 noundef %214) #5
  %216 = load ptr, ptr %5, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.primordial, ptr %216, i32 0, i32 82
  %218 = load ptr, ptr %217, align 8, !tbaa !16
  %219 = load i32, ptr %6, align 4, !tbaa !17
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds ptr, ptr %218, i64 %220
  store ptr %215, ptr %221, align 8, !tbaa !5
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.primordial, ptr %222, i32 0, i32 82
  %224 = load ptr, ptr %223, align 8, !tbaa !16
  %225 = load i32, ptr %6, align 4, !tbaa !17
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds ptr, ptr %224, i64 %226
  %228 = load ptr, ptr %227, align 8, !tbaa !5
  %229 = icmp eq ptr %228, null
  br i1 %229, label %230, label %251

230:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.primordial, ptr %231, i32 0, i32 80
  %233 = load i32, ptr %232, align 8, !tbaa !23
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.primordial, ptr %234, i32 0, i32 79
  %236 = load ptr, ptr %235, align 8, !tbaa !20
  %237 = load i32, ptr %6, align 4, !tbaa !17
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds i32, ptr %236, i64 %238
  %240 = load i32, ptr %239, align 4, !tbaa !17
  %241 = mul nsw i32 %233, %240
  %242 = sext i32 %241 to i64
  %243 = mul i64 %242, 8
  %244 = trunc i64 %243 to i32
  store i32 %244, ptr %18, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %19) #4
  %245 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  %246 = load i32, ptr %18, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %245, ptr noundef @.str.52, ptr noundef @.str.58, i32 noundef %246)
  %247 = load ptr, ptr %5, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.primordial, ptr %247, i32 0, i32 106
  %249 = getelementptr inbounds [2048 x i8], ptr %248, i64 0, i64 0
  %250 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %249, ptr noundef @.str.3, ptr noundef @__func__.primordial_indices, i32 noundef 627, ptr noundef %250)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %19) #4
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %348

251:                                              ; preds = %165
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.primordial, ptr %252, i32 0, i32 80
  %254 = load i32, ptr %253, align 8, !tbaa !23
  %255 = load ptr, ptr %5, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.primordial, ptr %255, i32 0, i32 79
  %257 = load ptr, ptr %256, align 8, !tbaa !20
  %258 = load i32, ptr %6, align 4, !tbaa !17
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds i32, ptr %257, i64 %259
  %261 = load i32, ptr %260, align 4, !tbaa !17
  %262 = mul nsw i32 %254, %261
  %263 = sext i32 %262 to i64
  %264 = mul i64 %263, 8
  %265 = call noalias ptr @malloc(i64 noundef %264) #5
  %266 = load ptr, ptr %5, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.primordial, ptr %266, i32 0, i32 83
  %268 = load ptr, ptr %267, align 8, !tbaa !18
  %269 = load i32, ptr %6, align 4, !tbaa !17
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds ptr, ptr %268, i64 %270
  store ptr %265, ptr %271, align 8, !tbaa !5
  %272 = load ptr, ptr %5, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.primordial, ptr %272, i32 0, i32 83
  %274 = load ptr, ptr %273, align 8, !tbaa !18
  %275 = load i32, ptr %6, align 4, !tbaa !17
  %276 = sext i32 %275 to i64
  %277 = getelementptr inbounds ptr, ptr %274, i64 %276
  %278 = load ptr, ptr %277, align 8, !tbaa !5
  %279 = icmp eq ptr %278, null
  br i1 %279, label %280, label %301

280:                                              ; preds = %251
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %281 = load ptr, ptr %5, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.primordial, ptr %281, i32 0, i32 80
  %283 = load i32, ptr %282, align 8, !tbaa !23
  %284 = load ptr, ptr %5, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.primordial, ptr %284, i32 0, i32 79
  %286 = load ptr, ptr %285, align 8, !tbaa !20
  %287 = load i32, ptr %6, align 4, !tbaa !17
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds i32, ptr %286, i64 %288
  %290 = load i32, ptr %289, align 4, !tbaa !17
  %291 = mul nsw i32 %283, %290
  %292 = sext i32 %291 to i64
  %293 = mul i64 %292, 8
  %294 = trunc i64 %293 to i32
  store i32 %294, ptr %20, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %21) #4
  %295 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  %296 = load i32, ptr %20, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %295, ptr noundef @.str.52, ptr noundef @.str.59, i32 noundef %296)
  %297 = load ptr, ptr %5, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.primordial, ptr %297, i32 0, i32 106
  %299 = getelementptr inbounds [2048 x i8], ptr %298, i64 0, i64 0
  %300 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %299, ptr noundef @.str.3, ptr noundef @__func__.primordial_indices, i32 noundef 631, ptr noundef %300)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %21) #4
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  br label %348

301:                                              ; preds = %251
  %302 = load ptr, ptr %5, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.primordial, ptr %302, i32 0, i32 79
  %304 = load ptr, ptr %303, align 8, !tbaa !20
  %305 = load i32, ptr %6, align 4, !tbaa !17
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds i32, ptr %304, i64 %306
  %308 = load i32, ptr %307, align 4, !tbaa !17
  %309 = sext i32 %308 to i64
  %310 = mul i64 %309, 2
  %311 = call noalias ptr @malloc(i64 noundef %310) #5
  %312 = load ptr, ptr %5, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.primordial, ptr %312, i32 0, i32 84
  %314 = load ptr, ptr %313, align 8, !tbaa !21
  %315 = load i32, ptr %6, align 4, !tbaa !17
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds ptr, ptr %314, i64 %316
  store ptr %311, ptr %317, align 8, !tbaa !5
  %318 = load ptr, ptr %5, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.primordial, ptr %318, i32 0, i32 84
  %320 = load ptr, ptr %319, align 8, !tbaa !21
  %321 = load i32, ptr %6, align 4, !tbaa !17
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds ptr, ptr %320, i64 %322
  %324 = load ptr, ptr %323, align 8, !tbaa !5
  %325 = icmp eq ptr %324, null
  br i1 %325, label %326, label %343

326:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %327 = load ptr, ptr %5, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.primordial, ptr %327, i32 0, i32 79
  %329 = load ptr, ptr %328, align 8, !tbaa !20
  %330 = load i32, ptr %6, align 4, !tbaa !17
  %331 = sext i32 %330 to i64
  %332 = getelementptr inbounds i32, ptr %329, i64 %331
  %333 = load i32, ptr %332, align 4, !tbaa !17
  %334 = sext i32 %333 to i64
  %335 = mul i64 %334, 2
  %336 = trunc i64 %335 to i32
  store i32 %336, ptr %22, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 2048, ptr %23) #4
  %337 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  %338 = load i32, ptr %22, align 4, !tbaa !17
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %337, ptr noundef @.str.52, ptr noundef @.str.60, i32 noundef %338)
  %339 = load ptr, ptr %5, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.primordial, ptr %339, i32 0, i32 106
  %341 = getelementptr inbounds [2048 x i8], ptr %340, i64 0, i64 0
  %342 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %341, ptr noundef @.str.3, ptr noundef @__func__.primordial_indices, i32 noundef 635, ptr noundef %342)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %23) #4
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %348

343:                                              ; preds = %301
  br label %344

344:                                              ; preds = %343
  %345 = load i32, ptr %6, align 4, !tbaa !17
  %346 = add nsw i32 %345, 1
  store i32 %346, ptr %6, align 4, !tbaa !17
  br label %159, !llvm.loop !24

347:                                              ; preds = %159
  store i32 0, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %348

348:                                              ; preds = %347, %326, %280, %230, %145, %119, %93, %67, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %349 = load i32, ptr %3, align 4
  ret i32 %349
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

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 allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

!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, !12, i64 2040}
!10 = !{!"perturbs", !11, i64 0, !11, i64 2, !11, i64 4, !11, i64 6, !11, i64 8, !11, i64 10, !11, i64 12, !11, i64 14, !11, i64 16, !11, i64 18, !11, i64 20, !12, i64 24, !11, i64 28, !11, i64 30, !11, i64 32, !11, i64 34, !11, i64 36, !11, i64 38, !11, i64 40, !11, i64 42, !11, i64 44, !11, i64 46, !11, i64 48, !11, i64 50, !11, i64 52, !11, i64 54, !11, i64 56, !11, i64 58, !11, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !13, i64 80, !12, i64 88, !12, i64 92, !7, i64 96, !7, i64 896, !12, i64 1696, !12, i64 1700, !12, i64 1704, !12, i64 1708, !12, i64 1712, !13, i64 1720, !12, i64 1728, !12, i64 1732, !7, i64 1736, !13, i64 1976, !13, i64 1984, !13, i64 1992, !6, i64 2000, !6, i64 2008, !12, i64 2016, !11, i64 2020, !11, i64 2022, !12, i64 2024, !12, i64 2028, !12, i64 2032, !12, i64 2036, !12, i64 2040, !12, i64 2044, !12, i64 2048, !12, i64 2052, !12, i64 2056, !12, i64 2060, !12, i64 2064, !6, i64 2072, !11, i64 2080, !11, i64 2082, !11, i64 2084, !11, i64 2086, !11, i64 2088, !11, i64 2090, !11, i64 2092, !11, i64 2094, !11, i64 2096, !11, i64 2098, !11, i64 2100, !11, i64 2102, !11, i64 2104, !11, i64 2106, !11, i64 2108, !11, i64 2110, !11, i64 2112, !11, i64 2114, !11, i64 2116, !11, i64 2118, !11, i64 2120, !11, i64 2122, !11, i64 2124, !11, i64 2126, !11, i64 2128, !11, i64 2130, !11, i64 2132, !11, i64 2134, !11, i64 2136, !11, i64 2138, !11, i64 2140, !11, i64 2142, !11, i64 2144, !11, i64 2146, !11, i64 2148, !11, i64 2150, !11, i64 2152, !11, i64 2154, !11, i64 2156, !11, i64 2158, !12, i64 2160, !12, i64 2164, !12, i64 2168, !12, i64 2172, !12, i64 2176, !12, i64 2180, !12, i64 2184, !12, i64 2188, !12, i64 2192, !12, i64 2196, !12, i64 2200, !12, i64 2204, !12, i64 2208, !12, i64 2212, !12, i64 2216, !12, i64 2220, !12, i64 2224, !12, i64 2228, !12, i64 2232, !12, i64 2236, !12, i64 2240, !12, i64 2244, !12, i64 2248, !12, i64 2252, !12, i64 2256, !12, i64 2260, !12, i64 2264, !12, i64 2268, !12, i64 2272, !12, i64 2276, !12, i64 2280, !12, i64 2284, !12, i64 2288, !12, i64 2292, !12, i64 2296, !12, i64 2300, !12, i64 2304, !12, i64 2308, !12, i64 2312, !12, i64 2316, !12, i64 2320, !12, i64 2324, !12, i64 2328, !12, i64 2332, !6, i64 2336, !6, i64 2344, !6, i64 2352, !6, i64 2360, !6, i64 2368, !13, i64 2376, !13, i64 2384, !6, i64 2392, !12, i64 2400, !13, i64 2408, !13, i64 2416, !13, i64 2424, !6, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !12, i64 2480, !6, i64 2488, !6, i64 2496, !6, i64 2504, !7, i64 2512, !7, i64 10512, !7, i64 18512, !12, i64 26512, !12, i64 26516, !12, i64 26520, !7, i64 26528, !7, i64 26768, !7, i64 27008, !7, i64 27248, !7, i64 27368, !7, i64 27488, !11, i64 27608, !7, i64 27610}
!11 = !{!"short", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !12, i64 616}
!15 = !{!"primordial", !13, i64 0, !12, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !13, i64 120, !13, i64 128, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !13, i64 168, !13, i64 176, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !13, i64 224, !13, i64 232, !13, i64 240, !13, i64 248, !13, i64 256, !13, i64 264, !13, i64 272, !13, i64 280, !13, i64 288, !13, i64 296, !13, i64 304, !13, i64 312, !13, i64 320, !13, i64 328, !13, i64 336, !13, i64 344, !13, i64 352, !13, i64 360, !13, i64 368, !13, i64 376, !13, i64 384, !13, i64 392, !13, i64 400, !12, i64 408, !13, i64 416, !13, i64 424, !13, i64 432, !13, i64 440, !13, i64 448, !13, i64 456, !13, i64 464, !13, i64 472, !13, i64 480, !13, i64 488, !13, i64 496, !12, i64 504, !13, i64 512, !12, i64 520, !6, i64 528, !13, i64 536, !13, i64 544, !13, i64 552, !13, i64 560, !13, i64 568, !13, i64 576, !13, i64 584, !13, i64 592, !13, i64 600, !13, i64 608, !12, i64 616, !6, i64 624, !6, i64 632, !12, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !12, i64 704, !12, i64 708, !12, i64 712, !12, i64 716, !12, i64 720, !12, i64 724, !12, i64 728, !12, i64 732, !12, i64 736, !12, i64 740, !12, i64 744, !12, i64 748, !12, i64 752, !13, i64 760, !13, i64 768, !13, i64 776, !13, i64 784, !11, i64 792, !7, i64 794}
!16 = !{!15, !6, i64 656}
!17 = !{!12, !12, i64 0}
!18 = !{!15, !6, i64 664}
!19 = !{!15, !6, i64 624}
!20 = !{!15, !6, i64 632}
!21 = !{!15, !6, i64 672}
!22 = !{!10, !6, i64 2072}
!23 = !{!15, !12, i64 640}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


; 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.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [10 x i8], align 1
@__func__.primordial_indices = external hidden unnamed_addr constant [19 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [27 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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

; 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
define dso_local range(i32 0, 2) i32 @primordial_indices(ptr nocapture noundef readonly %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca [2048 x i8], align 16
  %4 = alloca [2048 x i8], align 16
  %5 = alloca [2048 x i8], align 16
  %6 = alloca [2048 x i8], align 16
  %7 = alloca [2048 x i8], align 16
  %8 = alloca [2048 x i8], align 16
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  %11 = getelementptr inbounds i8, ptr %0, i64 2040
  %12 = load i32, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %1, i64 616
  store i32 %12, ptr %13, align 8, !tbaa !13
  %14 = sext i32 %12 to i64
  %15 = shl nsw i64 %14, 3
  %16 = tail call noalias ptr @malloc(i64 noundef %15) #4
  %17 = getelementptr inbounds i8, ptr %1, i64 656
  store ptr %16, ptr %17, align 8, !tbaa !15
  %18 = icmp eq ptr %16, null
  br i1 %18, label %19, label %22

19:                                               ; preds = %2
  %20 = shl i32 %12, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %3) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %3, ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.53, i32 noundef %20) #5
  %21 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %21, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_indices, i32 noundef 609, ptr noundef nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %3) #5
  br label %.loopexit

22:                                               ; preds = %2
  %23 = tail call noalias ptr @malloc(i64 noundef %15) #4
  %24 = getelementptr inbounds i8, ptr %1, i64 664
  store ptr %23, ptr %24, align 8, !tbaa !16
  %25 = icmp eq ptr %23, null
  br i1 %25, label %26, label %29

26:                                               ; preds = %22
  %27 = shl i32 %12, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %4) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.54, i32 noundef %27) #5
  %28 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %28, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_indices, i32 noundef 611, ptr noundef nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %4) #5
  br label %.loopexit

29:                                               ; preds = %22
  %30 = tail call noalias ptr @malloc(i64 noundef %15) #4
  %31 = getelementptr inbounds i8, ptr %1, i64 624
  store ptr %30, ptr %31, align 8, !tbaa !17
  %32 = icmp eq ptr %30, null
  br i1 %32, label %33, label %36

33:                                               ; preds = %29
  %34 = shl i32 %12, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %5) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %5, ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.55, i32 noundef %34) #5
  %35 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %35, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_indices, i32 noundef 613, ptr noundef nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %5) #5
  br label %.loopexit

36:                                               ; preds = %29
  %37 = tail call noalias ptr @malloc(i64 noundef %15) #4
  %38 = getelementptr inbounds i8, ptr %1, i64 632
  store ptr %37, ptr %38, align 8, !tbaa !18
  %39 = icmp eq ptr %37, null
  br i1 %39, label %40, label %43

40:                                               ; preds = %36
  %41 = shl i32 %12, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %6) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %6, ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.56, i32 noundef %41) #5
  %42 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %42, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_indices, i32 noundef 615, ptr noundef nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %6) #5
  br label %.loopexit

43:                                               ; preds = %36
  %44 = tail call noalias ptr @malloc(i64 noundef %15) #4
  %45 = getelementptr inbounds i8, ptr %1, i64 672
  store ptr %44, ptr %45, align 8, !tbaa !19
  %46 = icmp eq ptr %44, null
  br i1 %46, label %50, label %.preheader

.preheader:                                       ; preds = %43
  %47 = icmp sgt i32 %12, 0
  br i1 %47, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader
  %48 = getelementptr inbounds i8, ptr %0, i64 2072
  %49 = getelementptr inbounds i8, ptr %1, i64 640
  br label %57

50:                                               ; preds = %43
  %51 = shl i32 %12, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %7) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.57, i32 noundef %51) #5
  %52 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %52, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_indices, i32 noundef 617, ptr noundef nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #5
  br label %.loopexit

53:                                               ; preds = %104
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %54 = load i32, ptr %11, align 8, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = icmp slt i64 %indvars.iv.next, %55
  br i1 %56, label %57, label %.loopexit, !llvm.loop !20

57:                                               ; preds = %.lr.ph, %53
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %53 ]
  %58 = load ptr, ptr %48, align 8, !tbaa !22
  %59 = getelementptr inbounds i32, ptr %58, i64 %indvars.iv
  %60 = load i32, ptr %59, align 4, !tbaa !23
  %61 = load ptr, ptr %31, align 8, !tbaa !17
  %62 = getelementptr inbounds i32, ptr %61, i64 %indvars.iv
  store i32 %60, ptr %62, align 4, !tbaa !23
  %63 = add nsw i32 %60, 1
  %64 = mul nsw i32 %63, %60
  %65 = sdiv i32 %64, 2
  %66 = load ptr, ptr %38, align 8, !tbaa !18
  %67 = getelementptr inbounds i32, ptr %66, i64 %indvars.iv
  store i32 %65, ptr %67, align 4, !tbaa !23
  %68 = load i32, ptr %49, align 8, !tbaa !24
  %69 = mul nsw i32 %68, %65
  %70 = sext i32 %69 to i64
  %71 = shl nsw i64 %70, 3
  %72 = tail call noalias ptr @malloc(i64 noundef %71) #4
  %73 = load ptr, ptr %17, align 8, !tbaa !15
  %74 = getelementptr inbounds ptr, ptr %73, i64 %indvars.iv
  store ptr %72, ptr %74, align 8, !tbaa !25
  %75 = load ptr, ptr %17, align 8, !tbaa !15
  %76 = getelementptr inbounds ptr, ptr %75, i64 %indvars.iv
  %77 = load ptr, ptr %76, align 8, !tbaa !25
  %78 = icmp eq ptr %77, null
  %79 = load ptr, ptr %38, align 8, !tbaa !18
  %80 = getelementptr inbounds i32, ptr %79, i64 %indvars.iv
  %81 = load i32, ptr %80, align 4, !tbaa !23
  br i1 %78, label %82, label %86

82:                                               ; preds = %57
  %83 = shl i32 %68, 3
  %84 = mul i32 %83, %81
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.58, i32 noundef %84) #5
  %85 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %85, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_indices, i32 noundef 627, ptr noundef nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #5
  br label %.loopexit

86:                                               ; preds = %57
  %87 = mul nsw i32 %81, %68
  %88 = sext i32 %87 to i64
  %89 = shl nsw i64 %88, 3
  %90 = tail call noalias ptr @malloc(i64 noundef %89) #4
  %91 = load ptr, ptr %24, align 8, !tbaa !16
  %92 = getelementptr inbounds ptr, ptr %91, i64 %indvars.iv
  store ptr %90, ptr %92, align 8, !tbaa !25
  %93 = load ptr, ptr %24, align 8, !tbaa !16
  %94 = getelementptr inbounds ptr, ptr %93, i64 %indvars.iv
  %95 = load ptr, ptr %94, align 8, !tbaa !25
  %96 = icmp eq ptr %95, null
  %97 = load ptr, ptr %38, align 8, !tbaa !18
  %98 = getelementptr inbounds i32, ptr %97, i64 %indvars.iv
  %99 = load i32, ptr %98, align 4, !tbaa !23
  br i1 %96, label %100, label %104

100:                                              ; preds = %86
  %101 = shl i32 %68, 3
  %102 = mul i32 %101, %99
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.59, i32 noundef %102) #5
  %103 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %103, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_indices, i32 noundef 631, ptr noundef nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #5
  br label %.loopexit

104:                                              ; preds = %86
  %105 = sext i32 %99 to i64
  %106 = shl nsw i64 %105, 1
  %107 = tail call noalias ptr @malloc(i64 noundef %106) #4
  %108 = load ptr, ptr %45, align 8, !tbaa !19
  %109 = getelementptr inbounds ptr, ptr %108, i64 %indvars.iv
  store ptr %107, ptr %109, align 8, !tbaa !25
  %110 = load ptr, ptr %45, align 8, !tbaa !19
  %111 = getelementptr inbounds ptr, ptr %110, i64 %indvars.iv
  %112 = load ptr, ptr %111, align 8, !tbaa !25
  %113 = icmp eq ptr %112, null
  br i1 %113, label %114, label %53

114:                                              ; preds = %104
  %115 = load ptr, ptr %38, align 8, !tbaa !18
  %116 = getelementptr inbounds i32, ptr %115, i64 %indvars.iv
  %117 = load i32, ptr %116, align 4, !tbaa !23
  %118 = shl i32 %117, 1
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.60, i32 noundef %118) #5
  %119 = getelementptr inbounds i8, ptr %1, i64 794
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %119, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.primordial_indices, i32 noundef 635, ptr noundef nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #5
  br label %.loopexit

.loopexit:                                        ; preds = %53, %.preheader, %114, %100, %82, %50, %40, %33, %26, %19
  %.0 = phi i32 [ 1, %19 ], [ 1, %26 ], [ 1, %33 ], [ 1, %40 ], [ 1, %50 ], [ 1, %82 ], [ 1, %100 ], [ 1, %114 ], [ 0, %.preheader ], [ 0, %53 ]
  ret i32 %.0
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind allocsize(0) }
attributes #5 = { 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, !10, i64 2040}
!6 = !{!"perturbs", !7, i64 0, !7, i64 2, !7, i64 4, !7, i64 6, !7, i64 8, !7, i64 10, !7, i64 12, !7, i64 14, !7, i64 16, !7, i64 18, !7, i64 20, !10, i64 24, !7, i64 28, !7, i64 30, !7, i64 32, !7, i64 34, !7, i64 36, !7, i64 38, !7, i64 40, !7, i64 42, !7, i64 44, !7, i64 46, !7, i64 48, !7, i64 50, !7, i64 52, !7, i64 54, !7, i64 56, !7, i64 58, !7, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !11, i64 80, !10, i64 88, !10, i64 92, !8, i64 96, !8, i64 896, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !11, i64 1720, !10, i64 1728, !10, i64 1732, !8, i64 1736, !11, i64 1976, !11, i64 1984, !11, i64 1992, !12, i64 2000, !12, i64 2008, !10, i64 2016, !7, i64 2020, !7, i64 2022, !10, i64 2024, !10, i64 2028, !10, i64 2032, !10, i64 2036, !10, i64 2040, !10, i64 2044, !10, i64 2048, !10, i64 2052, !10, i64 2056, !10, i64 2060, !10, i64 2064, !12, i64 2072, !7, i64 2080, !7, i64 2082, !7, i64 2084, !7, i64 2086, !7, i64 2088, !7, i64 2090, !7, i64 2092, !7, i64 2094, !7, i64 2096, !7, i64 2098, !7, i64 2100, !7, i64 2102, !7, i64 2104, !7, i64 2106, !7, i64 2108, !7, i64 2110, !7, i64 2112, !7, i64 2114, !7, i64 2116, !7, i64 2118, !7, i64 2120, !7, i64 2122, !7, i64 2124, !7, i64 2126, !7, i64 2128, !7, i64 2130, !7, i64 2132, !7, i64 2134, !7, i64 2136, !7, i64 2138, !7, i64 2140, !7, i64 2142, !7, i64 2144, !7, i64 2146, !7, i64 2148, !7, i64 2150, !7, i64 2152, !7, i64 2154, !7, i64 2156, !7, i64 2158, !10, i64 2160, !10, i64 2164, !10, i64 2168, !10, i64 2172, !10, i64 2176, !10, i64 2180, !10, i64 2184, !10, i64 2188, !10, i64 2192, !10, i64 2196, !10, i64 2200, !10, i64 2204, !10, i64 2208, !10, i64 2212, !10, i64 2216, !10, i64 2220, !10, i64 2224, !10, i64 2228, !10, i64 2232, !10, i64 2236, !10, i64 2240, !10, i64 2244, !10, i64 2248, !10, i64 2252, !10, i64 2256, !10, i64 2260, !10, i64 2264, !10, i64 2268, !10, i64 2272, !10, i64 2276, !10, i64 2280, !10, i64 2284, !10, i64 2288, !10, i64 2292, !10, i64 2296, !10, i64 2300, !10, i64 2304, !10, i64 2308, !10, i64 2312, !10, i64 2316, !10, i64 2320, !10, i64 2324, !10, i64 2328, !10, i64 2332, !12, i64 2336, !12, i64 2344, !12, i64 2352, !12, i64 2360, !12, i64 2368, !11, i64 2376, !11, i64 2384, !12, i64 2392, !10, i64 2400, !11, i64 2408, !11, i64 2416, !11, i64 2424, !12, i64 2432, !12, i64 2440, !12, i64 2448, !12, i64 2456, !12, i64 2464, !12, i64 2472, !10, i64 2480, !12, i64 2488, !12, i64 2496, !12, i64 2504, !8, i64 2512, !8, i64 10512, !8, i64 18512, !10, i64 26512, !10, i64 26516, !10, i64 26520, !8, i64 26528, !8, i64 26768, !8, i64 27008, !8, i64 27248, !8, i64 27368, !8, i64 27488, !7, i64 27608, !8, i64 27610}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !10, i64 616}
!14 = !{!"primordial", !11, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !11, i64 280, !11, i64 288, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !11, i64 360, !11, i64 368, !11, i64 376, !11, i64 384, !11, i64 392, !11, i64 400, !10, i64 408, !11, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !10, i64 504, !11, i64 512, !10, i64 520, !12, i64 528, !11, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !11, i64 576, !11, i64 584, !11, i64 592, !11, i64 600, !11, i64 608, !10, i64 616, !12, i64 624, !12, i64 632, !10, i64 640, !12, i64 648, !12, i64 656, !12, i64 664, !12, i64 672, !12, i64 680, !12, i64 688, !12, i64 696, !10, i64 704, !10, i64 708, !10, i64 712, !10, i64 716, !10, i64 720, !10, i64 724, !10, i64 728, !10, i64 732, !10, i64 736, !10, i64 740, !10, i64 744, !10, i64 748, !10, i64 752, !11, i64 760, !11, i64 768, !11, i64 776, !11, i64 784, !7, i64 792, !8, i64 794}
!15 = !{!14, !12, i64 656}
!16 = !{!14, !12, i64 664}
!17 = !{!14, !12, i64 624}
!18 = !{!14, !12, i64 632}
!19 = !{!14, !12, i64 672}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!6, !12, i64 2072}
!23 = !{!10, !10, i64 0}
!24 = !{!14, !10, i64 640}
!25 = !{!12, !12, i64 0}


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