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

; 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.background = type { double, double, double, double, double, double, double, i32, double, double, double, double, i16, double, double, double, double, double, double, double, double, double, i16, double, double, ptr, i32, i32, double, i32, ptr, ptr, double, ptr, double, ptr, double, ptr, double, ptr, ptr, ptr, double, double, double, double, i32, ptr, double, double, double, double, double, double, double, double, double, double, double, 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, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, i16, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i16, i16, i16, i16, i16, i16, [2048 x i8], i16, [2048 x i8] }
%struct.precision = type { double, double, double, double, double, double, double, double, double, double, double, double, double, [256 x i8], double, i32, double, i32, i32, double, i32, 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, i32, [256 x i8], [256 x i8], [256 x i8], double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, double, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, double, double, double, i32, double, double, i32, double, double, i32, double, i32, double, double, i32, double, double, double, i32, double, double, double, double, double, i32, double, double, double, double, double, double, 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, i32, double, double, double, double, i32, double, double, i32, i32, i32, double, double, [2048 x i8] }
%struct.thermo = type { double, i32, i32, i32, double, double, i16, i16, double, double, double, double, i32, ptr, ptr, double, i32, ptr, ptr, double, i32, ptr, ptr, double, i16, double, double, double, double, double, double, double, double, double, double, double, 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, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i16, i16, i16, [2048 x i8] }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [208 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [57 x i8], align 1
@__func__.perturb_init = external hidden unnamed_addr constant [13 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [93 x i8], align 1
@stdout = external global ptr, align 8
@.str.80 = external hidden unnamed_addr constant [441 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [242 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [178 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [207 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [154 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [229 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [822 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [269 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 allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @perturb_init(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #4 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca i32, align 4
  %24 = alloca [2048 x i8], align 16
  %25 = alloca [2048 x i8], align 16
  %26 = alloca [2048 x i8], align 16
  %27 = alloca [2048 x i8], align 16
  %28 = alloca [2048 x i8], align 16
  %29 = alloca [2048 x i8], align 16
  %30 = alloca [2048 x i8], align 16
  %31 = alloca [2048 x i8], align 16
  %32 = alloca [2048 x i8], align 16
  %33 = alloca [2048 x i8], align 16
  %34 = alloca [2048 x i8], align 16
  %35 = alloca [2048 x i8], align 16
  %36 = alloca [2048 x i8], align 16
  %37 = alloca [2048 x i8], align 16
  %38 = alloca [2048 x i8], align 16
  %39 = alloca [2048 x i8], align 16
  %40 = alloca [2048 x i8], align 16
  %41 = alloca [2048 x i8], align 16
  %42 = alloca [2048 x i8], align 16
  %43 = alloca [2048 x i8], align 16
  %44 = alloca [2048 x i8], align 16
  %45 = alloca [2048 x i8], align 16
  %46 = alloca [2048 x i8], align 16
  %47 = alloca [2048 x i8], align 16
  %48 = alloca [2048 x i8], align 16
  %49 = alloca [2048 x i8], align 16
  %50 = alloca [2048 x i8], align 16
  %51 = alloca [2048 x i8], align 16
  %52 = alloca [2048 x i8], align 16
  %53 = alloca [2048 x i8], align 16
  %54 = alloca [2048 x i8], align 16
  %55 = alloca i32, align 4
  %56 = alloca [2048 x i8], align 16
  %57 = alloca i32, align 4
  %58 = alloca [2048 x i8], align 16
  %59 = alloca [2048 x i8], align 16
  %60 = alloca [2048 x i8], align 16
  %61 = alloca [2048 x i8], align 16
  %62 = alloca [2048 x i8], align 16
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 1, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.perturbs, ptr %63, i32 0, i32 0
  %65 = load i16, ptr %64, align 8, !tbaa !11
  %66 = sext i16 %65 to i32
  %67 = icmp eq i32 %66, 0
  br i1 %67, label %68, label %77

68:                                               ; preds = %4
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.perturbs, ptr %69, i32 0, i32 185
  %71 = load i16, ptr %70, align 8, !tbaa !15
  %72 = sext i16 %71 to i32
  %73 = icmp sgt i32 %72, 0
  br i1 %73, label %74, label %76

74:                                               ; preds = %68
  %75 = call i32 (ptr, ...) @printf(ptr noundef @.str.66)
  br label %76

76:                                               ; preds = %74, %68
  store i32 0, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

77:                                               ; preds = %4
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.perturbs, ptr %78, i32 0, i32 185
  %80 = load i16, ptr %79, align 8, !tbaa !15
  %81 = sext i16 %80 to i32
  %82 = icmp sgt i32 %81, 0
  br i1 %82, label %83, label %85

83:                                               ; preds = %77
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.67)
  br label %85

85:                                               ; preds = %83, %77
  br label %86

86:                                               ; preds = %85
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.perturbs, ptr %87, i32 0, i32 55
  %89 = load i32, ptr %88, align 8, !tbaa !16
  %90 = icmp eq i32 %89, 1
  br i1 %90, label %91, label %105

91:                                               ; preds = %86
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.background, ptr %92, i32 0, i32 119
  %94 = load i16, ptr %93, align 4, !tbaa !17
  %95 = sext i16 %94 to i32
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %105

97:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #6
  %98 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %98, ptr noundef @.str.68)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %25) #6
  %99 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  %100 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %99, ptr noundef @.str.7, ptr noundef @.str.69, ptr noundef %100)
  %101 = load ptr, ptr %9, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.perturbs, ptr %101, i32 0, i32 186
  %103 = getelementptr inbounds [2048 x i8], ptr %102, i64 0, i64 0
  %104 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %103, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 516, ptr noundef %104)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

105:                                              ; preds = %91, %86
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.precision, ptr %106, i32 0, i32 68
  %108 = load i32, ptr %107, align 8, !tbaa !19
  %109 = icmp slt i32 %108, 0
  br i1 %109, label %115, label %110

110:                                              ; preds = %105
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.precision, ptr %111, i32 0, i32 68
  %113 = load i32, ptr %112, align 8, !tbaa !19
  %114 = icmp sgt i32 %113, 5
  br i1 %114, label %115, label %126

115:                                              ; preds = %110, %105
  call void @llvm.lifetime.start.p0(i64 2048, ptr %26) #6
  %116 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.precision, ptr %117, i32 0, i32 68
  %119 = load i32, ptr %118, align 8, !tbaa !19
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %116, ptr noundef @.str.70, i32 noundef %119)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %27) #6
  %120 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  %121 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %120, ptr noundef @.str.7, ptr noundef @.str.71, ptr noundef %121)
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.perturbs, ptr %122, i32 0, i32 186
  %124 = getelementptr inbounds [2048 x i8], ptr %123, i64 0, i64 0
  %125 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %124, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 521, ptr noundef %125)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %26) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

126:                                              ; preds = %110
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.precision, ptr %127, i32 0, i32 87
  %129 = load i32, ptr %128, align 8, !tbaa !21
  %130 = icmp slt i32 %129, 0
  br i1 %130, label %136, label %131

131:                                              ; preds = %126
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.precision, ptr %132, i32 0, i32 87
  %134 = load i32, ptr %133, align 8, !tbaa !21
  %135 = icmp sgt i32 %134, 3
  br i1 %135, label %136, label %147

136:                                              ; preds = %131, %126
  call void @llvm.lifetime.start.p0(i64 2048, ptr %28) #6
  %137 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.precision, ptr %138, i32 0, i32 87
  %140 = load i32, ptr %139, align 8, !tbaa !21
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %137, ptr noundef @.str.72, i32 noundef %140)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %29) #6
  %141 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  %142 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %141, ptr noundef @.str.7, ptr noundef @.str.73, ptr noundef %142)
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.perturbs, ptr %143, i32 0, i32 186
  %145 = getelementptr inbounds [2048 x i8], ptr %144, i64 0, i64 0
  %146 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %145, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 526, ptr noundef %146)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %28) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

147:                                              ; preds = %131
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.background, ptr %148, i32 0, i32 127
  %150 = load i16, ptr %149, align 4, !tbaa !22
  %151 = sext i16 %150 to i32
  %152 = icmp eq i32 %151, 1
  br i1 %152, label %153, label %175

153:                                              ; preds = %147
  %154 = load ptr, ptr %6, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.precision, ptr %154, i32 0, i32 90
  %156 = load i32, ptr %155, align 8, !tbaa !23
  %157 = icmp slt i32 %156, 0
  br i1 %157, label %163, label %158

158:                                              ; preds = %153
  %159 = load ptr, ptr %6, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.precision, ptr %159, i32 0, i32 90
  %161 = load i32, ptr %160, align 8, !tbaa !23
  %162 = icmp sgt i32 %161, 1
  br i1 %162, label %163, label %174

163:                                              ; preds = %158, %153
  call void @llvm.lifetime.start.p0(i64 2048, ptr %30) #6
  %164 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.precision, ptr %165, i32 0, i32 90
  %167 = load i32, ptr %166, align 8, !tbaa !23
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %164, ptr noundef @.str.74, i32 noundef %167)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %31) #6
  %168 = getelementptr inbounds [2048 x i8], ptr %31, i64 0, i64 0
  %169 = getelementptr inbounds [2048 x i8], ptr %30, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %168, ptr noundef @.str.7, ptr noundef @.str.75, ptr noundef %169)
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.perturbs, ptr %170, i32 0, i32 186
  %172 = getelementptr inbounds [2048 x i8], ptr %171, i64 0, i64 0
  %173 = getelementptr inbounds [2048 x i8], ptr %31, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %172, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 532, ptr noundef %173)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %30) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

174:                                              ; preds = %158
  br label %175

175:                                              ; preds = %174, %147
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.background, ptr %176, i32 0, i32 126
  %178 = load i16, ptr %177, align 2, !tbaa !24
  %179 = sext i16 %178 to i32
  %180 = icmp eq i32 %179, 1
  br i1 %180, label %181, label %203

181:                                              ; preds = %175
  %182 = load ptr, ptr %6, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.precision, ptr %182, i32 0, i32 93
  %184 = load i32, ptr %183, align 8, !tbaa !25
  %185 = icmp slt i32 %184, 0
  br i1 %185, label %191, label %186

186:                                              ; preds = %181
  %187 = load ptr, ptr %6, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.precision, ptr %187, i32 0, i32 93
  %189 = load i32, ptr %188, align 8, !tbaa !25
  %190 = icmp sgt i32 %189, 3
  br i1 %190, label %191, label %202

191:                                              ; preds = %186, %181
  call void @llvm.lifetime.start.p0(i64 2048, ptr %32) #6
  %192 = getelementptr inbounds [2048 x i8], ptr %32, i64 0, i64 0
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.precision, ptr %193, i32 0, i32 93
  %195 = load i32, ptr %194, align 8, !tbaa !25
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %192, ptr noundef @.str.76, i32 noundef %195)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %33) #6
  %196 = getelementptr inbounds [2048 x i8], ptr %33, i64 0, i64 0
  %197 = getelementptr inbounds [2048 x i8], ptr %32, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %196, ptr noundef @.str.7, ptr noundef @.str.77, ptr noundef %197)
  %198 = load ptr, ptr %9, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.perturbs, ptr %198, i32 0, i32 186
  %200 = getelementptr inbounds [2048 x i8], ptr %199, i64 0, i64 0
  %201 = getelementptr inbounds [2048 x i8], ptr %33, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %200, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 540, ptr noundef %201)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %32) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

202:                                              ; preds = %186
  br label %203

203:                                              ; preds = %202, %175
  %204 = load ptr, ptr %7, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.background, ptr %204, i32 0, i32 123
  %206 = load i16, ptr %205, align 4, !tbaa !26
  %207 = sext i16 %206 to i32
  %208 = icmp eq i32 %207, 1
  br i1 %208, label %209, label %247

209:                                              ; preds = %203
  %210 = load ptr, ptr %6, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.precision, ptr %210, i32 0, i32 95
  %212 = load i32, ptr %211, align 8, !tbaa !27
  %213 = icmp slt i32 %212, 0
  br i1 %213, label %219, label %214

214:                                              ; preds = %209
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.precision, ptr %215, i32 0, i32 95
  %217 = load i32, ptr %216, align 8, !tbaa !27
  %218 = icmp sgt i32 %217, 3
  br i1 %218, label %219, label %230

219:                                              ; preds = %214, %209
  call void @llvm.lifetime.start.p0(i64 2048, ptr %34) #6
  %220 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.precision, ptr %221, i32 0, i32 95
  %223 = load i32, ptr %222, align 8, !tbaa !27
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %220, ptr noundef @.str.78, i32 noundef %223)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %35) #6
  %224 = getelementptr inbounds [2048 x i8], ptr %35, i64 0, i64 0
  %225 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %224, ptr noundef @.str.7, ptr noundef @.str.79, ptr noundef %225)
  %226 = load ptr, ptr %9, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.perturbs, ptr %226, i32 0, i32 186
  %228 = getelementptr inbounds [2048 x i8], ptr %227, i64 0, i64 0
  %229 = getelementptr inbounds [2048 x i8], ptr %35, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %228, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 548, ptr noundef %229)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %34) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

230:                                              ; preds = %214
  %231 = load ptr, ptr %9, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.perturbs, ptr %231, i32 0, i32 25
  %233 = load i16, ptr %232, align 2, !tbaa !28
  %234 = sext i16 %233 to i32
  %235 = icmp eq i32 %234, 1
  br i1 %235, label %236, label %246

236:                                              ; preds = %230
  %237 = load ptr, ptr %9, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.perturbs, ptr %237, i32 0, i32 185
  %239 = load i16, ptr %238, align 8, !tbaa !15
  %240 = sext i16 %239 to i32
  %241 = icmp sgt i32 %240, 0
  br i1 %241, label %242, label %245

242:                                              ; preds = %236
  %243 = load ptr, ptr @stdout, align 8, !tbaa !5
  %244 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef @.str.80) #6
  br label %245

245:                                              ; preds = %242, %236
  br label %246

246:                                              ; preds = %245, %230
  br label %247

247:                                              ; preds = %246, %203
  %248 = load ptr, ptr %7, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.background, ptr %248, i32 0, i32 125
  %250 = load i16, ptr %249, align 8, !tbaa !29
  %251 = sext i16 %250 to i32
  %252 = icmp eq i32 %251, 1
  br i1 %252, label %253, label %331

253:                                              ; preds = %247
  %254 = load ptr, ptr %7, align 8, !tbaa !5
  %255 = call i32 @background_w_fld(ptr noundef %254, double noundef 0.000000e+00, ptr noundef %15, ptr noundef %17, ptr noundef %18)
  %256 = icmp eq i32 %255, 1
  br i1 %256, label %257, label %266

257:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 2048, ptr %36) #6
  %258 = getelementptr inbounds [2048 x i8], ptr %36, i64 0, i64 0
  %259 = load ptr, ptr %7, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.background, ptr %259, i32 0, i32 149
  %261 = getelementptr inbounds [2048 x i8], ptr %260, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %258, ptr noundef @.str, ptr noundef @.str.81, ptr noundef %261)
  %262 = load ptr, ptr %9, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.perturbs, ptr %262, i32 0, i32 186
  %264 = getelementptr inbounds [2048 x i8], ptr %263, i64 0, i64 0
  %265 = getelementptr inbounds [2048 x i8], ptr %36, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %264, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 561, ptr noundef %265)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %36) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

266:                                              ; preds = %253
  %267 = load ptr, ptr %7, align 8, !tbaa !5
  %268 = load ptr, ptr %7, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.background, ptr %268, i32 0, i32 58
  %270 = load double, ptr %269, align 8, !tbaa !30
  %271 = call i32 @background_w_fld(ptr noundef %267, double noundef %270, ptr noundef %16, ptr noundef %17, ptr noundef %18)
  %272 = icmp eq i32 %271, 1
  br i1 %272, label %273, label %282

273:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 2048, ptr %37) #6
  %274 = getelementptr inbounds [2048 x i8], ptr %37, i64 0, i64 0
  %275 = load ptr, ptr %7, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.background, ptr %275, i32 0, i32 149
  %277 = getelementptr inbounds [2048 x i8], ptr %276, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %274, ptr noundef @.str, ptr noundef @.str.82, ptr noundef %277)
  %278 = load ptr, ptr %9, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.perturbs, ptr %278, i32 0, i32 186
  %280 = getelementptr inbounds [2048 x i8], ptr %279, i64 0, i64 0
  %281 = getelementptr inbounds [2048 x i8], ptr %37, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %280, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 562, ptr noundef %281)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %37) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

282:                                              ; preds = %266
  %283 = load double, ptr %15, align 8, !tbaa !31
  %284 = fcmp oge double %283, 0.000000e+00
  br i1 %284, label %285, label %294

285:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 2048, ptr %38) #6
  %286 = getelementptr inbounds [2048 x i8], ptr %38, i64 0, i64 0
  %287 = load double, ptr %15, align 8, !tbaa !31
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %286, ptr noundef @.str.83, double noundef %287)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %39) #6
  %288 = getelementptr inbounds [2048 x i8], ptr %39, i64 0, i64 0
  %289 = getelementptr inbounds [2048 x i8], ptr %38, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %288, ptr noundef @.str.7, ptr noundef @.str.84, ptr noundef %289)
  %290 = load ptr, ptr %9, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.perturbs, ptr %290, i32 0, i32 186
  %292 = getelementptr inbounds [2048 x i8], ptr %291, i64 0, i64 0
  %293 = getelementptr inbounds [2048 x i8], ptr %39, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %292, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 566, ptr noundef %293)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %38) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

294:                                              ; preds = %282
  %295 = load ptr, ptr %7, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.background, ptr %295, i32 0, i32 12
  %297 = load i16, ptr %296, align 8, !tbaa !32
  %298 = sext i16 %297 to i32
  %299 = icmp eq i32 %298, 0
  br i1 %299, label %300, label %330

300:                                              ; preds = %294
  %301 = load double, ptr %15, align 8, !tbaa !31
  %302 = fadd double %301, 1.000000e+00
  %303 = load double, ptr %16, align 8, !tbaa !31
  %304 = fadd double %303, 1.000000e+00
  %305 = fmul double %302, %304
  %306 = fcmp ole double %305, 0.000000e+00
  br i1 %306, label %307, label %315

307:                                              ; preds = %300
  call void @llvm.lifetime.start.p0(i64 2048, ptr %40) #6
  %308 = getelementptr inbounds [2048 x i8], ptr %40, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %308, ptr noundef @.str.85)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %41) #6
  %309 = getelementptr inbounds [2048 x i8], ptr %41, i64 0, i64 0
  %310 = getelementptr inbounds [2048 x i8], ptr %40, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %309, ptr noundef @.str.7, ptr noundef @.str.86, ptr noundef %310)
  %311 = load ptr, ptr %9, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.perturbs, ptr %311, i32 0, i32 186
  %313 = getelementptr inbounds [2048 x i8], ptr %312, i64 0, i64 0
  %314 = getelementptr inbounds [2048 x i8], ptr %41, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %313, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 572, ptr noundef %314)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %40) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

315:                                              ; preds = %300
  %316 = load double, ptr %16, align 8, !tbaa !31
  %317 = fcmp oeq double %316, -1.000000e+00
  br i1 %317, label %318, label %329

318:                                              ; preds = %315
  %319 = load double, ptr %17, align 8, !tbaa !31
  %320 = fcmp oeq double %319, 0.000000e+00
  br i1 %320, label %321, label %329

321:                                              ; preds = %318
  call void @llvm.lifetime.start.p0(i64 2048, ptr %42) #6
  %322 = getelementptr inbounds [2048 x i8], ptr %42, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %322, ptr noundef @.str.87)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %43) #6
  %323 = getelementptr inbounds [2048 x i8], ptr %43, i64 0, i64 0
  %324 = getelementptr inbounds [2048 x i8], ptr %42, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %323, ptr noundef @.str.7, ptr noundef @.str.88, ptr noundef %324)
  %325 = load ptr, ptr %9, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.perturbs, ptr %325, i32 0, i32 186
  %327 = getelementptr inbounds [2048 x i8], ptr %326, i64 0, i64 0
  %328 = getelementptr inbounds [2048 x i8], ptr %43, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %327, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 577, ptr noundef %328)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %42) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

329:                                              ; preds = %318, %315
  br label %330

330:                                              ; preds = %329, %294
  br label %331

331:                                              ; preds = %330, %247
  %332 = load ptr, ptr %7, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.background, ptr %332, i32 0, i32 120
  %334 = load i16, ptr %333, align 2, !tbaa !33
  %335 = sext i16 %334 to i32
  %336 = icmp eq i32 %335, 1
  br i1 %336, label %337, label %370

337:                                              ; preds = %331
  %338 = load ptr, ptr %9, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.perturbs, ptr %338, i32 0, i32 7
  %340 = load i16, ptr %339, align 2, !tbaa !34
  %341 = sext i16 %340 to i32
  %342 = icmp eq i32 %341, 1
  br i1 %342, label %361, label %343

343:                                              ; preds = %337
  %344 = load ptr, ptr %9, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.perturbs, ptr %344, i32 0, i32 6
  %346 = load i16, ptr %345, align 4, !tbaa !35
  %347 = sext i16 %346 to i32
  %348 = icmp eq i32 %347, 1
  br i1 %348, label %361, label %349

349:                                              ; preds = %343
  %350 = load ptr, ptr %9, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.perturbs, ptr %350, i32 0, i32 8
  %352 = load i16, ptr %351, align 8, !tbaa !36
  %353 = sext i16 %352 to i32
  %354 = icmp eq i32 %353, 1
  br i1 %354, label %361, label %355

355:                                              ; preds = %349
  %356 = load ptr, ptr %9, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.perturbs, ptr %356, i32 0, i32 9
  %358 = load i16, ptr %357, align 2, !tbaa !37
  %359 = sext i16 %358 to i32
  %360 = icmp eq i32 %359, 1
  br i1 %360, label %361, label %369

361:                                              ; preds = %355, %349, %343, %337
  call void @llvm.lifetime.start.p0(i64 2048, ptr %44) #6
  %362 = getelementptr inbounds [2048 x i8], ptr %44, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %362, ptr noundef @.str.89)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %45) #6
  %363 = getelementptr inbounds [2048 x i8], ptr %45, i64 0, i64 0
  %364 = getelementptr inbounds [2048 x i8], ptr %44, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %363, ptr noundef @.str.7, ptr noundef @.str.90, ptr noundef %364)
  %365 = load ptr, ptr %9, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.perturbs, ptr %365, i32 0, i32 186
  %367 = getelementptr inbounds [2048 x i8], ptr %366, i64 0, i64 0
  %368 = getelementptr inbounds [2048 x i8], ptr %45, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %367, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 587, ptr noundef %368)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %44) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

369:                                              ; preds = %355
  br label %370

370:                                              ; preds = %369, %331
  %371 = load ptr, ptr %9, align 8, !tbaa !5
  %372 = getelementptr inbounds %struct.perturbs, ptr %371, i32 0, i32 3
  %373 = load i16, ptr %372, align 2, !tbaa !38
  %374 = sext i16 %373 to i32
  %375 = icmp eq i32 %374, 1
  br i1 %375, label %376, label %384

376:                                              ; preds = %370
  call void @llvm.lifetime.start.p0(i64 2048, ptr %46) #6
  %377 = getelementptr inbounds [2048 x i8], ptr %46, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %377, ptr noundef @.str.91)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %47) #6
  %378 = getelementptr inbounds [2048 x i8], ptr %47, i64 0, i64 0
  %379 = getelementptr inbounds [2048 x i8], ptr %46, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %378, ptr noundef @.str.7, ptr noundef @.str.92, ptr noundef %379)
  %380 = load ptr, ptr %9, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.perturbs, ptr %380, i32 0, i32 186
  %382 = getelementptr inbounds [2048 x i8], ptr %381, i64 0, i64 0
  %383 = getelementptr inbounds [2048 x i8], ptr %47, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %382, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 593, ptr noundef %383)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %46) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

384:                                              ; preds = %370
  %385 = load ptr, ptr %9, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.perturbs, ptr %385, i32 0, i32 9
  %387 = load i16, ptr %386, align 2, !tbaa !37
  %388 = sext i16 %387 to i32
  %389 = icmp eq i32 %388, 1
  br i1 %389, label %390, label %398

390:                                              ; preds = %384
  %391 = load ptr, ptr %9, align 8, !tbaa !5
  %392 = getelementptr inbounds %struct.perturbs, ptr %391, i32 0, i32 185
  %393 = load i16, ptr %392, align 8, !tbaa !15
  %394 = sext i16 %393 to i32
  %395 = icmp sgt i32 %394, 0
  br i1 %395, label %396, label %398

396:                                              ; preds = %390
  %397 = call i32 (ptr, ...) @printf(ptr noundef @.str.93)
  br label %398

398:                                              ; preds = %396, %390, %384
  %399 = load ptr, ptr %9, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.perturbs, ptr %399, i32 0, i32 4
  %401 = load i16, ptr %400, align 8, !tbaa !39
  %402 = sext i16 %401 to i32
  %403 = icmp eq i32 %402, 1
  br i1 %403, label %404, label %448

404:                                              ; preds = %398
  %405 = load ptr, ptr %9, align 8, !tbaa !5
  %406 = getelementptr inbounds %struct.perturbs, ptr %405, i32 0, i32 12
  store i16 0, ptr %406, align 4, !tbaa !40
  %407 = load ptr, ptr %9, align 8, !tbaa !5
  %408 = getelementptr inbounds %struct.perturbs, ptr %407, i32 0, i32 13
  store i16 0, ptr %408, align 2, !tbaa !41
  %409 = load ptr, ptr %9, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.perturbs, ptr %409, i32 0, i32 11
  %411 = load i32, ptr %410, align 8, !tbaa !42
  switch i32 %411, label %447 [
    i32 0, label %447
    i32 1, label %412
    i32 2, label %428
  ]

412:                                              ; preds = %404
  %413 = load ptr, ptr %7, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.background, ptr %413, i32 0, i32 126
  %415 = load i16, ptr %414, align 2, !tbaa !24
  %416 = sext i16 %415 to i32
  %417 = icmp eq i32 %416, 1
  br i1 %417, label %424, label %418

418:                                              ; preds = %412
  %419 = load ptr, ptr %7, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.background, ptr %419, i32 0, i32 123
  %421 = load i16, ptr %420, align 4, !tbaa !26
  %422 = sext i16 %421 to i32
  %423 = icmp eq i32 %422, 1
  br i1 %423, label %424, label %427

424:                                              ; preds = %418, %412
  %425 = load ptr, ptr %9, align 8, !tbaa !5
  %426 = getelementptr inbounds %struct.perturbs, ptr %425, i32 0, i32 12
  store i16 1, ptr %426, align 4, !tbaa !40
  br label %427

427:                                              ; preds = %424, %418
  br label %447

428:                                              ; preds = %404
  %429 = load ptr, ptr %7, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.background, ptr %429, i32 0, i32 126
  %431 = load i16, ptr %430, align 2, !tbaa !24
  %432 = sext i16 %431 to i32
  %433 = icmp eq i32 %432, 1
  br i1 %433, label %434, label %437

434:                                              ; preds = %428
  %435 = load ptr, ptr %9, align 8, !tbaa !5
  %436 = getelementptr inbounds %struct.perturbs, ptr %435, i32 0, i32 12
  store i16 1, ptr %436, align 4, !tbaa !40
  br label %437

437:                                              ; preds = %434, %428
  %438 = load ptr, ptr %7, align 8, !tbaa !5
  %439 = getelementptr inbounds %struct.background, ptr %438, i32 0, i32 123
  %440 = load i16, ptr %439, align 4, !tbaa !26
  %441 = sext i16 %440 to i32
  %442 = icmp eq i32 %441, 1
  br i1 %442, label %443, label %446

443:                                              ; preds = %437
  %444 = load ptr, ptr %9, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct.perturbs, ptr %444, i32 0, i32 13
  store i16 1, ptr %445, align 2, !tbaa !41
  br label %446

446:                                              ; preds = %443, %437
  br label %447

447:                                              ; preds = %446, %427, %404, %404
  br label %448

448:                                              ; preds = %447, %398
  %449 = load ptr, ptr %6, align 8, !tbaa !5
  %450 = load ptr, ptr %7, align 8, !tbaa !5
  %451 = load ptr, ptr %8, align 8, !tbaa !5
  %452 = load ptr, ptr %9, align 8, !tbaa !5
  %453 = call i32 @perturb_indices(ptr noundef %449, ptr noundef %450, ptr noundef %451, ptr noundef %452)
  %454 = icmp eq i32 %453, 1
  br i1 %454, label %455, label %464

455:                                              ; preds = %448
  call void @llvm.lifetime.start.p0(i64 2048, ptr %48) #6
  %456 = getelementptr inbounds [2048 x i8], ptr %48, i64 0, i64 0
  %457 = load ptr, ptr %9, align 8, !tbaa !5
  %458 = getelementptr inbounds %struct.perturbs, ptr %457, i32 0, i32 186
  %459 = getelementptr inbounds [2048 x i8], ptr %458, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %456, ptr noundef @.str, ptr noundef @.str.94, ptr noundef %459)
  %460 = load ptr, ptr %9, align 8, !tbaa !5
  %461 = getelementptr inbounds %struct.perturbs, ptr %460, i32 0, i32 186
  %462 = getelementptr inbounds [2048 x i8], ptr %461, i64 0, i64 0
  %463 = getelementptr inbounds [2048 x i8], ptr %48, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %462, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 646, ptr noundef %463)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %48) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

464:                                              ; preds = %448
  %465 = load ptr, ptr %9, align 8, !tbaa !5
  %466 = getelementptr inbounds %struct.perturbs, ptr %465, i32 0, i32 49
  %467 = load double, ptr %466, align 8, !tbaa !43
  %468 = load ptr, ptr %8, align 8, !tbaa !5
  %469 = getelementptr inbounds %struct.thermo, ptr %468, i32 0, i32 66
  %470 = load double, ptr %469, align 8, !tbaa !44
  %471 = fcmp ogt double %467, %470
  br i1 %471, label %472, label %513

472:                                              ; preds = %464
  %473 = load ptr, ptr %9, align 8, !tbaa !5
  %474 = getelementptr inbounds %struct.perturbs, ptr %473, i32 0, i32 53
  %475 = load i16, ptr %474, align 4, !tbaa !46
  %476 = sext i16 %475 to i32
  %477 = icmp eq i32 %476, 1
  br i1 %477, label %478, label %492

478:                                              ; preds = %472
  call void @llvm.lifetime.start.p0(i64 2048, ptr %49) #6
  %479 = getelementptr inbounds [2048 x i8], ptr %49, i64 0, i64 0
  %480 = load ptr, ptr %9, align 8, !tbaa !5
  %481 = getelementptr inbounds %struct.perturbs, ptr %480, i32 0, i32 49
  %482 = load double, ptr %481, align 8, !tbaa !43
  %483 = load ptr, ptr %8, align 8, !tbaa !5
  %484 = getelementptr inbounds %struct.thermo, ptr %483, i32 0, i32 66
  %485 = load double, ptr %484, align 8, !tbaa !44
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %479, ptr noundef @.str.95, double noundef %482, double noundef %485)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %50) #6
  %486 = getelementptr inbounds [2048 x i8], ptr %50, i64 0, i64 0
  %487 = getelementptr inbounds [2048 x i8], ptr %49, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %486, ptr noundef @.str.7, ptr noundef @.str.96, ptr noundef %487)
  %488 = load ptr, ptr %9, align 8, !tbaa !5
  %489 = getelementptr inbounds %struct.perturbs, ptr %488, i32 0, i32 186
  %490 = getelementptr inbounds [2048 x i8], ptr %489, i64 0, i64 0
  %491 = getelementptr inbounds [2048 x i8], ptr %50, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %490, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 655, ptr noundef %491)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %50) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %49) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

492:                                              ; preds = %472
  %493 = load ptr, ptr %9, align 8, !tbaa !5
  %494 = getelementptr inbounds %struct.perturbs, ptr %493, i32 0, i32 69
  %495 = load i16, ptr %494, align 4, !tbaa !47
  %496 = sext i16 %495 to i32
  %497 = icmp eq i32 %496, 1
  br i1 %497, label %498, label %512

498:                                              ; preds = %492
  call void @llvm.lifetime.start.p0(i64 2048, ptr %51) #6
  %499 = getelementptr inbounds [2048 x i8], ptr %51, i64 0, i64 0
  %500 = load ptr, ptr %9, align 8, !tbaa !5
  %501 = getelementptr inbounds %struct.perturbs, ptr %500, i32 0, i32 49
  %502 = load double, ptr %501, align 8, !tbaa !43
  %503 = load ptr, ptr %8, align 8, !tbaa !5
  %504 = getelementptr inbounds %struct.thermo, ptr %503, i32 0, i32 66
  %505 = load double, ptr %504, align 8, !tbaa !44
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %499, ptr noundef @.str.97, double noundef %502, double noundef %505)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %52) #6
  %506 = getelementptr inbounds [2048 x i8], ptr %52, i64 0, i64 0
  %507 = getelementptr inbounds [2048 x i8], ptr %51, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %506, ptr noundef @.str.7, ptr noundef @.str.98, ptr noundef %507)
  %508 = load ptr, ptr %9, align 8, !tbaa !5
  %509 = getelementptr inbounds %struct.perturbs, ptr %508, i32 0, i32 186
  %510 = getelementptr inbounds [2048 x i8], ptr %509, i64 0, i64 0
  %511 = getelementptr inbounds [2048 x i8], ptr %52, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %510, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 661, ptr noundef %511)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %51) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

512:                                              ; preds = %492
  br label %513

513:                                              ; preds = %512, %464
  %514 = load ptr, ptr %6, align 8, !tbaa !5
  %515 = load ptr, ptr %7, align 8, !tbaa !5
  %516 = load ptr, ptr %8, align 8, !tbaa !5
  %517 = load ptr, ptr %9, align 8, !tbaa !5
  %518 = call i32 @perturb_timesampling_for_sources(ptr noundef %514, ptr noundef %515, ptr noundef %516, ptr noundef %517)
  %519 = icmp eq i32 %518, 1
  br i1 %519, label %520, label %529

520:                                              ; preds = %513
  call void @llvm.lifetime.start.p0(i64 2048, ptr %53) #6
  %521 = getelementptr inbounds [2048 x i8], ptr %53, i64 0, i64 0
  %522 = load ptr, ptr %9, align 8, !tbaa !5
  %523 = getelementptr inbounds %struct.perturbs, ptr %522, i32 0, i32 186
  %524 = getelementptr inbounds [2048 x i8], ptr %523, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %521, ptr noundef @.str, ptr noundef @.str.99, ptr noundef %524)
  %525 = load ptr, ptr %9, align 8, !tbaa !5
  %526 = getelementptr inbounds %struct.perturbs, ptr %525, i32 0, i32 186
  %527 = getelementptr inbounds [2048 x i8], ptr %526, i64 0, i64 0
  %528 = getelementptr inbounds [2048 x i8], ptr %53, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %527, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 675, ptr noundef %528)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %53) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

529:                                              ; preds = %513
  %530 = load ptr, ptr %7, align 8, !tbaa !5
  %531 = load ptr, ptr %9, align 8, !tbaa !5
  %532 = call i32 @perturb_prepare_k_output(ptr noundef %530, ptr noundef %531)
  %533 = icmp eq i32 %532, 1
  br i1 %533, label %534, label %543

534:                                              ; preds = %529
  call void @llvm.lifetime.start.p0(i64 2048, ptr %54) #6
  %535 = getelementptr inbounds [2048 x i8], ptr %54, i64 0, i64 0
  %536 = load ptr, ptr %9, align 8, !tbaa !5
  %537 = getelementptr inbounds %struct.perturbs, ptr %536, i32 0, i32 186
  %538 = getelementptr inbounds [2048 x i8], ptr %537, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %535, ptr noundef @.str, ptr noundef @.str.100, ptr noundef %538)
  %539 = load ptr, ptr %9, align 8, !tbaa !5
  %540 = getelementptr inbounds %struct.perturbs, ptr %539, i32 0, i32 186
  %541 = getelementptr inbounds [2048 x i8], ptr %540, i64 0, i64 0
  %542 = getelementptr inbounds [2048 x i8], ptr %54, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %541, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 681, ptr noundef %542)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %54) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

543:                                              ; preds = %529
  %544 = load i32, ptr %19, align 4, !tbaa !9
  %545 = sext i32 %544 to i64
  %546 = mul i64 %545, 8
  %547 = call noalias ptr @malloc(i64 noundef %546) #7
  store ptr %547, ptr %14, align 8, !tbaa !5
  %548 = load ptr, ptr %14, align 8, !tbaa !5
  %549 = icmp eq ptr %548, null
  br i1 %549, label %550, label %561

550:                                              ; preds = %543
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #6
  %551 = load i32, ptr %19, align 4, !tbaa !9
  %552 = sext i32 %551 to i64
  %553 = mul i64 %552, 8
  %554 = trunc i64 %553 to i32
  store i32 %554, ptr %55, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %56) #6
  %555 = getelementptr inbounds [2048 x i8], ptr %56, i64 0, i64 0
  %556 = load i32, ptr %55, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %555, ptr noundef @.str.4, ptr noundef @.str.101, i32 noundef %556)
  %557 = load ptr, ptr %9, align 8, !tbaa !5
  %558 = getelementptr inbounds %struct.perturbs, ptr %557, i32 0, i32 186
  %559 = getelementptr inbounds [2048 x i8], ptr %558, i64 0, i64 0
  %560 = getelementptr inbounds [2048 x i8], ptr %56, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %559, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 693, ptr noundef %560)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %56) #6
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #6
  br label %963

561:                                              ; preds = %543
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %562

562:                                              ; preds = %833, %561
  %563 = load i32, ptr %10, align 4, !tbaa !9
  %564 = load ptr, ptr %9, align 8, !tbaa !5
  %565 = getelementptr inbounds %struct.perturbs, ptr %564, i32 0, i32 59
  %566 = load i32, ptr %565, align 8, !tbaa !48
  %567 = icmp slt i32 %563, %566
  br i1 %567, label %568, label %836

568:                                              ; preds = %562
  %569 = load ptr, ptr %9, align 8, !tbaa !5
  %570 = getelementptr inbounds %struct.perturbs, ptr %569, i32 0, i32 185
  %571 = load i16, ptr %570, align 8, !tbaa !15
  %572 = sext i16 %571 to i32
  %573 = icmp sgt i32 %572, 1
  br i1 %573, label %574, label %581

574:                                              ; preds = %568
  %575 = load i32, ptr %10, align 4, !tbaa !9
  %576 = add nsw i32 %575, 1
  %577 = load ptr, ptr %9, align 8, !tbaa !5
  %578 = getelementptr inbounds %struct.perturbs, ptr %577, i32 0, i32 59
  %579 = load i32, ptr %578, align 8, !tbaa !48
  %580 = call i32 (ptr, ...) @printf(ptr noundef @.str.102, i32 noundef %576, i32 noundef %579)
  br label %581

581:                                              ; preds = %574, %568
  store i32 0, ptr %21, align 4, !tbaa !9
  store i64 392, ptr %22, align 8, !tbaa !49
  %582 = load ptr, ptr %14, align 8, !tbaa !5
  %583 = load i32, ptr %20, align 4, !tbaa !9
  %584 = sext i32 %583 to i64
  %585 = getelementptr inbounds ptr, ptr %582, i64 %584
  store ptr null, ptr %585, align 8, !tbaa !5
  %586 = load i32, ptr %21, align 4, !tbaa !9
  %587 = icmp eq i32 %586, 0
  br i1 %587, label %588, label %611

588:                                              ; preds = %581
  %589 = load i64, ptr %22, align 8, !tbaa !49
  %590 = call noalias ptr @malloc(i64 noundef %589) #7
  %591 = load ptr, ptr %14, align 8, !tbaa !5
  %592 = load i32, ptr %20, align 4, !tbaa !9
  %593 = sext i32 %592 to i64
  %594 = getelementptr inbounds ptr, ptr %591, i64 %593
  store ptr %590, ptr %594, align 8, !tbaa !5
  %595 = load ptr, ptr %14, align 8, !tbaa !5
  %596 = load i32, ptr %20, align 4, !tbaa !9
  %597 = sext i32 %596 to i64
  %598 = getelementptr inbounds ptr, ptr %595, i64 %597
  %599 = load ptr, ptr %598, align 8, !tbaa !5
  %600 = icmp eq ptr %599, null
  br i1 %600, label %601, label %610

601:                                              ; preds = %588
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #6
  %602 = load i64, ptr %22, align 8, !tbaa !49
  %603 = trunc i64 %602 to i32
  store i32 %603, ptr %57, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %58) #6
  %604 = getelementptr inbounds [2048 x i8], ptr %58, i64 0, i64 0
  %605 = load i32, ptr %57, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %604, ptr noundef @.str.4, ptr noundef @.str.103, i32 noundef %605)
  %606 = load ptr, ptr %9, align 8, !tbaa !5
  %607 = getelementptr inbounds %struct.perturbs, ptr %606, i32 0, i32 186
  %608 = getelementptr inbounds [2048 x i8], ptr %607, i64 0, i64 0
  %609 = getelementptr inbounds [2048 x i8], ptr %58, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %608, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 719, ptr noundef %609)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %58) #6
  store i32 1, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #6
  br label %610

610:                                              ; preds = %601, %588
  br label %611

611:                                              ; preds = %610, %581
  %612 = load i32, ptr %21, align 4, !tbaa !9
  %613 = icmp eq i32 %612, 0
  br i1 %613, label %614, label %637

614:                                              ; preds = %611
  %615 = load ptr, ptr %6, align 8, !tbaa !5
  %616 = load ptr, ptr %7, align 8, !tbaa !5
  %617 = load ptr, ptr %8, align 8, !tbaa !5
  %618 = load ptr, ptr %9, align 8, !tbaa !5
  %619 = load i32, ptr %10, align 4, !tbaa !9
  %620 = load ptr, ptr %14, align 8, !tbaa !5
  %621 = load i32, ptr %20, align 4, !tbaa !9
  %622 = sext i32 %621 to i64
  %623 = getelementptr inbounds ptr, ptr %620, i64 %622
  %624 = load ptr, ptr %623, align 8, !tbaa !5
  %625 = call i32 @perturb_workspace_init(ptr noundef %615, ptr noundef %616, ptr noundef %617, ptr noundef %618, i32 noundef %619, ptr noundef %624)
  %626 = icmp eq i32 %625, 1
  br i1 %626, label %627, label %636

627:                                              ; preds = %614
  call void @llvm.lifetime.start.p0(i64 2048, ptr %59) #6
  %628 = getelementptr inbounds [2048 x i8], ptr %59, i64 0, i64 0
  %629 = load ptr, ptr %9, align 8, !tbaa !5
  %630 = getelementptr inbounds %struct.perturbs, ptr %629, i32 0, i32 186
  %631 = getelementptr inbounds [2048 x i8], ptr %630, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %628, ptr noundef @.str, ptr noundef @.str.104, ptr noundef %631)
  %632 = load ptr, ptr %9, align 8, !tbaa !5
  %633 = getelementptr inbounds %struct.perturbs, ptr %632, i32 0, i32 186
  %634 = getelementptr inbounds [2048 x i8], ptr %633, i64 0, i64 0
  %635 = getelementptr inbounds [2048 x i8], ptr %59, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %634, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 730, ptr noundef %635)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %59) #6
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %636

636:                                              ; preds = %627, %614
  br label %637

637:                                              ; preds = %636, %611
  %638 = load i32, ptr %21, align 4, !tbaa !9
  %639 = icmp eq i32 %638, 1
  br i1 %639, label %640, label %641

640:                                              ; preds = %637
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

641:                                              ; preds = %637
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %642

642:                                              ; preds = %802, %641
  %643 = load i32, ptr %11, align 4, !tbaa !9
  %644 = load ptr, ptr %9, align 8, !tbaa !5
  %645 = getelementptr inbounds %struct.perturbs, ptr %644, i32 0, i32 66
  %646 = load ptr, ptr %645, align 8, !tbaa !51
  %647 = load i32, ptr %10, align 4, !tbaa !9
  %648 = sext i32 %647 to i64
  %649 = getelementptr inbounds i32, ptr %646, i64 %648
  %650 = load i32, ptr %649, align 4, !tbaa !9
  %651 = icmp slt i32 %643, %650
  br i1 %651, label %652, label %805

652:                                              ; preds = %642
  %653 = load ptr, ptr %9, align 8, !tbaa !5
  %654 = getelementptr inbounds %struct.perturbs, ptr %653, i32 0, i32 185
  %655 = load i16, ptr %654, align 8, !tbaa !15
  %656 = sext i16 %655 to i32
  %657 = icmp sgt i32 %656, 1
  br i1 %657, label %658, label %677

658:                                              ; preds = %652
  %659 = load i32, ptr %11, align 4, !tbaa !9
  %660 = add nsw i32 %659, 1
  %661 = load ptr, ptr %9, align 8, !tbaa !5
  %662 = getelementptr inbounds %struct.perturbs, ptr %661, i32 0, i32 66
  %663 = load ptr, ptr %662, align 8, !tbaa !51
  %664 = load i32, ptr %10, align 4, !tbaa !9
  %665 = sext i32 %664 to i64
  %666 = getelementptr inbounds i32, ptr %663, i64 %665
  %667 = load i32, ptr %666, align 4, !tbaa !9
  %668 = call i32 (ptr, ...) @printf(ptr noundef @.str.105, i32 noundef %660, i32 noundef %667)
  %669 = load ptr, ptr %9, align 8, !tbaa !5
  %670 = getelementptr inbounds %struct.perturbs, ptr %669, i32 0, i32 154
  %671 = load ptr, ptr %670, align 8, !tbaa !52
  %672 = load i32, ptr %10, align 4, !tbaa !9
  %673 = sext i32 %672 to i64
  %674 = getelementptr inbounds i32, ptr %671, i64 %673
  %675 = load i32, ptr %674, align 4, !tbaa !9
  %676 = call i32 (ptr, ...) @printf(ptr noundef @.str.106, i32 noundef %675)
  br label %677

677:                                              ; preds = %658, %652
  store i32 0, ptr %21, align 4, !tbaa !9
  %678 = load ptr, ptr %9, align 8, !tbaa !5
  %679 = getelementptr inbounds %struct.perturbs, ptr %678, i32 0, i32 154
  %680 = load ptr, ptr %679, align 8, !tbaa !52
  %681 = load i32, ptr %10, align 4, !tbaa !9
  %682 = sext i32 %681 to i64
  %683 = getelementptr inbounds i32, ptr %680, i64 %682
  %684 = load i32, ptr %683, align 4, !tbaa !9
  %685 = sub nsw i32 %684, 1
  store i32 %685, ptr %12, align 4, !tbaa !9
  br label %686

686:                                              ; preds = %794, %677
  %687 = load i32, ptr %12, align 4, !tbaa !9
  %688 = icmp sge i32 %687, 0
  br i1 %688, label %689, label %797

689:                                              ; preds = %686
  %690 = load ptr, ptr %9, align 8, !tbaa !5
  %691 = getelementptr inbounds %struct.perturbs, ptr %690, i32 0, i32 185
  %692 = load i16, ptr %691, align 8, !tbaa !15
  %693 = sext i16 %692 to i32
  %694 = icmp sgt i32 %693, 2
  br i1 %694, label %695, label %765

695:                                              ; preds = %689
  %696 = load i32, ptr %21, align 4, !tbaa !9
  %697 = icmp eq i32 %696, 0
  br i1 %697, label %698, label %765

698:                                              ; preds = %695
  %699 = load ptr, ptr %9, align 8, !tbaa !5
  %700 = getelementptr inbounds %struct.perturbs, ptr %699, i32 0, i32 155
  %701 = load ptr, ptr %700, align 8, !tbaa !53
  %702 = load i32, ptr %10, align 4, !tbaa !9
  %703 = sext i32 %702 to i64
  %704 = getelementptr inbounds ptr, ptr %701, i64 %703
  %705 = load ptr, ptr %704, align 8, !tbaa !5
  %706 = load i32, ptr %12, align 4, !tbaa !9
  %707 = sext i32 %706 to i64
  %708 = getelementptr inbounds double, ptr %705, i64 %707
  %709 = load double, ptr %708, align 8, !tbaa !31
  %710 = load i32, ptr %12, align 4, !tbaa !9
  %711 = add nsw i32 %710, 1
  %712 = load ptr, ptr %9, align 8, !tbaa !5
  %713 = getelementptr inbounds %struct.perturbs, ptr %712, i32 0, i32 154
  %714 = load ptr, ptr %713, align 8, !tbaa !52
  %715 = load i32, ptr %10, align 4, !tbaa !9
  %716 = sext i32 %715 to i64
  %717 = getelementptr inbounds i32, ptr %714, i64 %716
  %718 = load i32, ptr %717, align 4, !tbaa !9
  %719 = call i32 (ptr, ...) @printf(ptr noundef @.str.107, double noundef %709, i32 noundef %711, i32 noundef %718)
  %720 = load ptr, ptr %7, align 8, !tbaa !5
  %721 = getelementptr inbounds %struct.background, ptr %720, i32 0, i32 46
  %722 = load i32, ptr %721, align 8, !tbaa !54
  %723 = icmp ne i32 %722, 0
  br i1 %723, label %724, label %763

724:                                              ; preds = %698
  %725 = load ptr, ptr %9, align 8, !tbaa !5
  %726 = getelementptr inbounds %struct.perturbs, ptr %725, i32 0, i32 155
  %727 = load ptr, ptr %726, align 8, !tbaa !53
  %728 = load i32, ptr %10, align 4, !tbaa !9
  %729 = sext i32 %728 to i64
  %730 = getelementptr inbounds ptr, ptr %727, i64 %729
  %731 = load ptr, ptr %730, align 8, !tbaa !5
  %732 = load i32, ptr %12, align 4, !tbaa !9
  %733 = sext i32 %732 to i64
  %734 = getelementptr inbounds double, ptr %731, i64 %733
  %735 = load double, ptr %734, align 8, !tbaa !31
  %736 = load ptr, ptr %9, align 8, !tbaa !5
  %737 = getelementptr inbounds %struct.perturbs, ptr %736, i32 0, i32 155
  %738 = load ptr, ptr %737, align 8, !tbaa !53
  %739 = load i32, ptr %10, align 4, !tbaa !9
  %740 = sext i32 %739 to i64
  %741 = getelementptr inbounds ptr, ptr %738, i64 %740
  %742 = load ptr, ptr %741, align 8, !tbaa !5
  %743 = load i32, ptr %12, align 4, !tbaa !9
  %744 = sext i32 %743 to i64
  %745 = getelementptr inbounds double, ptr %742, i64 %744
  %746 = load double, ptr %745, align 8, !tbaa !31
  %747 = load ptr, ptr %7, align 8, !tbaa !5
  %748 = getelementptr inbounds %struct.background, ptr %747, i32 0, i32 45
  %749 = load double, ptr %748, align 8, !tbaa !55
  %750 = call double @llvm.fmuladd.f64(double %735, double %746, double %749)
  %751 = call double @sqrt(double noundef %750) #6
  %752 = load ptr, ptr %7, align 8, !tbaa !5
  %753 = getelementptr inbounds %struct.background, ptr %752, i32 0, i32 46
  %754 = load i32, ptr %753, align 8, !tbaa !54
  %755 = sitofp i32 %754 to double
  %756 = load ptr, ptr %7, align 8, !tbaa !5
  %757 = getelementptr inbounds %struct.background, ptr %756, i32 0, i32 45
  %758 = load double, ptr %757, align 8, !tbaa !55
  %759 = fmul double %755, %758
  %760 = call double @sqrt(double noundef %759) #6
  %761 = fdiv double %751, %760
  %762 = call i32 (ptr, ...) @printf(ptr noundef @.str.108, double noundef %761)
  br label %763

763:                                              ; preds = %724, %698
  %764 = call i32 (ptr, ...) @printf(ptr noundef @.str.109)
  br label %765

765:                                              ; preds = %763, %695, %689
  %766 = load i32, ptr %21, align 4, !tbaa !9
  %767 = icmp eq i32 %766, 0
  br i1 %767, label %768, label %793

768:                                              ; preds = %765
  %769 = load ptr, ptr %6, align 8, !tbaa !5
  %770 = load ptr, ptr %7, align 8, !tbaa !5
  %771 = load ptr, ptr %8, align 8, !tbaa !5
  %772 = load ptr, ptr %9, align 8, !tbaa !5
  %773 = load i32, ptr %10, align 4, !tbaa !9
  %774 = load i32, ptr %11, align 4, !tbaa !9
  %775 = load i32, ptr %12, align 4, !tbaa !9
  %776 = load ptr, ptr %14, align 8, !tbaa !5
  %777 = load i32, ptr %20, align 4, !tbaa !9
  %778 = sext i32 %777 to i64
  %779 = getelementptr inbounds ptr, ptr %776, i64 %778
  %780 = load ptr, ptr %779, align 8, !tbaa !5
  %781 = call i32 @perturb_solve(ptr noundef %769, ptr noundef %770, ptr noundef %771, ptr noundef %772, i32 noundef %773, i32 noundef %774, i32 noundef %775, ptr noundef %780)
  %782 = icmp eq i32 %781, 1
  br i1 %782, label %783, label %792

783:                                              ; preds = %768
  call void @llvm.lifetime.start.p0(i64 2048, ptr %60) #6
  %784 = getelementptr inbounds [2048 x i8], ptr %60, i64 0, i64 0
  %785 = load ptr, ptr %9, align 8, !tbaa !5
  %786 = getelementptr inbounds %struct.perturbs, ptr %785, i32 0, i32 186
  %787 = getelementptr inbounds [2048 x i8], ptr %786, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %784, ptr noundef @.str, ptr noundef @.str.110, ptr noundef %787)
  %788 = load ptr, ptr %9, align 8, !tbaa !5
  %789 = getelementptr inbounds %struct.perturbs, ptr %788, i32 0, i32 186
  %790 = getelementptr inbounds [2048 x i8], ptr %789, i64 0, i64 0
  %791 = getelementptr inbounds [2048 x i8], ptr %60, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %790, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 785, ptr noundef %791)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %60) #6
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %792

792:                                              ; preds = %783, %768
  br label %793

793:                                              ; preds = %792, %765
  br label %794

794:                                              ; preds = %793
  %795 = load i32, ptr %12, align 4, !tbaa !9
  %796 = add nsw i32 %795, -1
  store i32 %796, ptr %12, align 4, !tbaa !9
  br label %686, !llvm.loop !56

797:                                              ; preds = %686
  %798 = load i32, ptr %21, align 4, !tbaa !9
  %799 = icmp eq i32 %798, 1
  br i1 %799, label %800, label %801

800:                                              ; preds = %797
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

801:                                              ; preds = %797
  br label %802

802:                                              ; preds = %801
  %803 = load i32, ptr %11, align 4, !tbaa !9
  %804 = add nsw i32 %803, 1
  store i32 %804, ptr %11, align 4, !tbaa !9
  br label %642, !llvm.loop !58

805:                                              ; preds = %642
  store i32 0, ptr %21, align 4, !tbaa !9
  %806 = load i32, ptr %21, align 4, !tbaa !9
  %807 = icmp eq i32 %806, 0
  br i1 %807, label %808, label %828

808:                                              ; preds = %805
  %809 = load ptr, ptr %9, align 8, !tbaa !5
  %810 = load i32, ptr %10, align 4, !tbaa !9
  %811 = load ptr, ptr %14, align 8, !tbaa !5
  %812 = load i32, ptr %20, align 4, !tbaa !9
  %813 = sext i32 %812 to i64
  %814 = getelementptr inbounds ptr, ptr %811, i64 %813
  %815 = load ptr, ptr %814, align 8, !tbaa !5
  %816 = call i32 @perturb_workspace_free(ptr noundef %809, i32 noundef %810, ptr noundef %815)
  %817 = icmp eq i32 %816, 1
  br i1 %817, label %818, label %827

818:                                              ; preds = %808
  call void @llvm.lifetime.start.p0(i64 2048, ptr %61) #6
  %819 = getelementptr inbounds [2048 x i8], ptr %61, i64 0, i64 0
  %820 = load ptr, ptr %9, align 8, !tbaa !5
  %821 = getelementptr inbounds %struct.perturbs, ptr %820, i32 0, i32 186
  %822 = getelementptr inbounds [2048 x i8], ptr %821, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %819, ptr noundef @.str, ptr noundef @.str.111, ptr noundef %822)
  %823 = load ptr, ptr %9, align 8, !tbaa !5
  %824 = getelementptr inbounds %struct.perturbs, ptr %823, i32 0, i32 186
  %825 = getelementptr inbounds [2048 x i8], ptr %824, i64 0, i64 0
  %826 = getelementptr inbounds [2048 x i8], ptr %61, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %825, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 824, ptr noundef %826)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %61) #6
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %827

827:                                              ; preds = %818, %808
  br label %828

828:                                              ; preds = %827, %805
  %829 = load i32, ptr %21, align 4, !tbaa !9
  %830 = icmp eq i32 %829, 1
  br i1 %830, label %831, label %832

831:                                              ; preds = %828
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

832:                                              ; preds = %828
  br label %833

833:                                              ; preds = %832
  %834 = load i32, ptr %10, align 4, !tbaa !9
  %835 = add nsw i32 %834, 1
  store i32 %835, ptr %10, align 4, !tbaa !9
  br label %562, !llvm.loop !59

836:                                              ; preds = %562
  %837 = load ptr, ptr %14, align 8, !tbaa !5
  call void @free(ptr noundef %837) #6
  %838 = load ptr, ptr %9, align 8, !tbaa !5
  %839 = getelementptr inbounds %struct.perturbs, ptr %838, i32 0, i32 169
  %840 = load i32, ptr %839, align 8, !tbaa !60
  %841 = icmp sgt i32 %840, 1
  br i1 %841, label %842, label %962

842:                                              ; preds = %836
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %843

843:                                              ; preds = %958, %842
  %844 = load i32, ptr %10, align 4, !tbaa !9
  %845 = load ptr, ptr %9, align 8, !tbaa !5
  %846 = getelementptr inbounds %struct.perturbs, ptr %845, i32 0, i32 59
  %847 = load i32, ptr %846, align 8, !tbaa !48
  %848 = icmp slt i32 %844, %847
  br i1 %848, label %849, label %961

849:                                              ; preds = %843
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %850

850:                                              ; preds = %954, %849
  %851 = load i32, ptr %11, align 4, !tbaa !9
  %852 = load ptr, ptr %9, align 8, !tbaa !5
  %853 = getelementptr inbounds %struct.perturbs, ptr %852, i32 0, i32 66
  %854 = load ptr, ptr %853, align 8, !tbaa !51
  %855 = load i32, ptr %10, align 4, !tbaa !9
  %856 = sext i32 %855 to i64
  %857 = getelementptr inbounds i32, ptr %854, i64 %856
  %858 = load i32, ptr %857, align 4, !tbaa !9
  %859 = icmp slt i32 %851, %858
  br i1 %859, label %860, label %957

860:                                              ; preds = %850
  store i32 0, ptr %21, align 4, !tbaa !9
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %861

861:                                              ; preds = %946, %860
  %862 = load i32, ptr %13, align 4, !tbaa !9
  %863 = load ptr, ptr %9, align 8, !tbaa !5
  %864 = getelementptr inbounds %struct.perturbs, ptr %863, i32 0, i32 151
  %865 = load ptr, ptr %864, align 8, !tbaa !61
  %866 = load i32, ptr %10, align 4, !tbaa !9
  %867 = sext i32 %866 to i64
  %868 = getelementptr inbounds i32, ptr %865, i64 %867
  %869 = load i32, ptr %868, align 4, !tbaa !9
  %870 = icmp slt i32 %862, %869
  br i1 %870, label %871, label %949

871:                                              ; preds = %861
  %872 = load i32, ptr %21, align 4, !tbaa !9
  %873 = icmp eq i32 %872, 0
  br i1 %873, label %874, label %945

874:                                              ; preds = %871
  %875 = load ptr, ptr %9, align 8, !tbaa !5
  %876 = getelementptr inbounds %struct.perturbs, ptr %875, i32 0, i32 168
  %877 = load ptr, ptr %876, align 8, !tbaa !62
  %878 = load ptr, ptr %9, align 8, !tbaa !5
  %879 = getelementptr inbounds %struct.perturbs, ptr %878, i32 0, i32 169
  %880 = load i32, ptr %879, align 8, !tbaa !60
  %881 = load ptr, ptr %9, align 8, !tbaa !5
  %882 = getelementptr inbounds %struct.perturbs, ptr %881, i32 0, i32 170
  %883 = load ptr, ptr %882, align 8, !tbaa !63
  %884 = load i32, ptr %10, align 4, !tbaa !9
  %885 = sext i32 %884 to i64
  %886 = getelementptr inbounds ptr, ptr %883, i64 %885
  %887 = load ptr, ptr %886, align 8, !tbaa !5
  %888 = load i32, ptr %11, align 4, !tbaa !9
  %889 = load ptr, ptr %9, align 8, !tbaa !5
  %890 = getelementptr inbounds %struct.perturbs, ptr %889, i32 0, i32 151
  %891 = load ptr, ptr %890, align 8, !tbaa !61
  %892 = load i32, ptr %10, align 4, !tbaa !9
  %893 = sext i32 %892 to i64
  %894 = getelementptr inbounds i32, ptr %891, i64 %893
  %895 = load i32, ptr %894, align 4, !tbaa !9
  %896 = mul nsw i32 %888, %895
  %897 = load i32, ptr %13, align 4, !tbaa !9
  %898 = add nsw i32 %896, %897
  %899 = sext i32 %898 to i64
  %900 = getelementptr inbounds ptr, ptr %887, i64 %899
  %901 = load ptr, ptr %900, align 8, !tbaa !5
  %902 = load ptr, ptr %9, align 8, !tbaa !5
  %903 = getelementptr inbounds %struct.perturbs, ptr %902, i32 0, i32 154
  %904 = load ptr, ptr %903, align 8, !tbaa !52
  %905 = load i32, ptr %10, align 4, !tbaa !9
  %906 = sext i32 %905 to i64
  %907 = getelementptr inbounds i32, ptr %904, i64 %906
  %908 = load i32, ptr %907, align 4, !tbaa !9
  %909 = load ptr, ptr %9, align 8, !tbaa !5
  %910 = getelementptr inbounds %struct.perturbs, ptr %909, i32 0, i32 171
  %911 = load ptr, ptr %910, align 8, !tbaa !64
  %912 = load i32, ptr %10, align 4, !tbaa !9
  %913 = sext i32 %912 to i64
  %914 = getelementptr inbounds ptr, ptr %911, i64 %913
  %915 = load ptr, ptr %914, align 8, !tbaa !5
  %916 = load i32, ptr %11, align 4, !tbaa !9
  %917 = load ptr, ptr %9, align 8, !tbaa !5
  %918 = getelementptr inbounds %struct.perturbs, ptr %917, i32 0, i32 151
  %919 = load ptr, ptr %918, align 8, !tbaa !61
  %920 = load i32, ptr %10, align 4, !tbaa !9
  %921 = sext i32 %920 to i64
  %922 = getelementptr inbounds i32, ptr %919, i64 %921
  %923 = load i32, ptr %922, align 4, !tbaa !9
  %924 = mul nsw i32 %916, %923
  %925 = load i32, ptr %13, align 4, !tbaa !9
  %926 = add nsw i32 %924, %925
  %927 = sext i32 %926 to i64
  %928 = getelementptr inbounds ptr, ptr %915, i64 %927
  %929 = load ptr, ptr %928, align 8, !tbaa !5
  %930 = load ptr, ptr %9, align 8, !tbaa !5
  %931 = getelementptr inbounds %struct.perturbs, ptr %930, i32 0, i32 186
  %932 = getelementptr inbounds [2048 x i8], ptr %931, i64 0, i64 0
  %933 = call i32 @array_spline_table_lines(ptr noundef %877, i32 noundef %880, ptr noundef %901, i32 noundef %908, ptr noundef %929, i16 noundef signext 1, ptr noundef %932)
  %934 = icmp eq i32 %933, 1
  br i1 %934, label %935, label %944

935:                                              ; preds = %874
  call void @llvm.lifetime.start.p0(i64 2048, ptr %62) #6
  %936 = getelementptr inbounds [2048 x i8], ptr %62, i64 0, i64 0
  %937 = load ptr, ptr %9, align 8, !tbaa !5
  %938 = getelementptr inbounds %struct.perturbs, ptr %937, i32 0, i32 186
  %939 = getelementptr inbounds [2048 x i8], ptr %938, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %936, ptr noundef @.str, ptr noundef @.str.112, ptr noundef %939)
  %940 = load ptr, ptr %9, align 8, !tbaa !5
  %941 = getelementptr inbounds %struct.perturbs, ptr %940, i32 0, i32 186
  %942 = getelementptr inbounds [2048 x i8], ptr %941, i64 0, i64 0
  %943 = getelementptr inbounds [2048 x i8], ptr %62, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %942, ptr noundef @.str.2, ptr noundef @__func__.perturb_init, i32 noundef 863, ptr noundef %943)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %62) #6
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %944

944:                                              ; preds = %935, %874
  br label %945

945:                                              ; preds = %944, %871
  br label %946

946:                                              ; preds = %945
  %947 = load i32, ptr %13, align 4, !tbaa !9
  %948 = add nsw i32 %947, 1
  store i32 %948, ptr %13, align 4, !tbaa !9
  br label %861, !llvm.loop !65

949:                                              ; preds = %861
  %950 = load i32, ptr %21, align 4, !tbaa !9
  %951 = icmp eq i32 %950, 1
  br i1 %951, label %952, label %953

952:                                              ; preds = %949
  store i32 1, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

953:                                              ; preds = %949
  br label %954

954:                                              ; preds = %953
  %955 = load i32, ptr %11, align 4, !tbaa !9
  %956 = add nsw i32 %955, 1
  store i32 %956, ptr %11, align 4, !tbaa !9
  br label %850, !llvm.loop !66

957:                                              ; preds = %850
  br label %958

958:                                              ; preds = %957
  %959 = load i32, ptr %10, align 4, !tbaa !9
  %960 = add nsw i32 %959, 1
  store i32 %960, ptr %10, align 4, !tbaa !9
  br label %843, !llvm.loop !67

961:                                              ; preds = %843
  br label %962

962:                                              ; preds = %961, %836
  store i32 0, ptr %5, align 4
  store i32 1, ptr %23, align 4
  br label %963

963:                                              ; preds = %962, %952, %831, %800, %640, %550, %534, %520, %498, %478, %455, %376, %361, %321, %307, %285, %273, %257, %219, %191, %163, %136, %115, %97, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %964 = load i32, ptr %5, align 4
  ret i32 %964
}

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

declare i32 @background_w_fld(ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @perturb_indices(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @perturb_timesampling_for_sources(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @perturb_prepare_k_output(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @perturb_workspace_init(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

; Function Attrs: nounwind uwtable
declare dso_local i32 @perturb_solve(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @perturb_workspace_free(ptr noundef, i32 noundef, ptr noundef) #4

declare i32 @array_spline_table_lines(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i16 noundef signext, ptr noundef) #1

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 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 #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"perturbs", !13, i64 0, !13, i64 2, !13, i64 4, !13, i64 6, !13, i64 8, !13, i64 10, !13, i64 12, !13, i64 14, !13, i64 16, !13, i64 18, !13, i64 20, !10, i64 24, !13, i64 28, !13, i64 30, !13, i64 32, !13, i64 34, !13, i64 36, !13, i64 38, !13, i64 40, !13, i64 42, !13, i64 44, !13, i64 46, !13, i64 48, !13, i64 50, !13, i64 52, !13, i64 54, !13, i64 56, !13, i64 58, !13, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !14, i64 80, !10, i64 88, !10, i64 92, !7, i64 96, !7, i64 896, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !14, i64 1720, !10, i64 1728, !10, i64 1732, !7, i64 1736, !14, i64 1976, !14, i64 1984, !14, i64 1992, !6, i64 2000, !6, i64 2008, !10, i64 2016, !13, i64 2020, !13, 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, !6, i64 2072, !13, i64 2080, !13, i64 2082, !13, i64 2084, !13, i64 2086, !13, i64 2088, !13, i64 2090, !13, i64 2092, !13, i64 2094, !13, i64 2096, !13, i64 2098, !13, i64 2100, !13, i64 2102, !13, i64 2104, !13, i64 2106, !13, i64 2108, !13, i64 2110, !13, i64 2112, !13, i64 2114, !13, i64 2116, !13, i64 2118, !13, i64 2120, !13, i64 2122, !13, i64 2124, !13, i64 2126, !13, i64 2128, !13, i64 2130, !13, i64 2132, !13, i64 2134, !13, i64 2136, !13, i64 2138, !13, i64 2140, !13, i64 2142, !13, i64 2144, !13, i64 2146, !13, i64 2148, !13, i64 2150, !13, i64 2152, !13, i64 2154, !13, i64 2156, !13, 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, !6, i64 2336, !6, i64 2344, !6, i64 2352, !6, i64 2360, !6, i64 2368, !14, i64 2376, !14, i64 2384, !6, i64 2392, !10, i64 2400, !14, i64 2408, !14, i64 2416, !14, i64 2424, !6, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !10, i64 2480, !6, i64 2488, !6, i64 2496, !6, i64 2504, !7, i64 2512, !7, i64 10512, !7, i64 18512, !10, i64 26512, !10, i64 26516, !10, i64 26520, !7, i64 26528, !7, i64 26768, !7, i64 27008, !7, i64 27248, !7, i64 27368, !7, i64 27488, !13, i64 27608, !7, i64 27610}
!13 = !{!"short", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!12, !13, i64 27608}
!16 = !{!12, !10, i64 2024}
!17 = !{!18, !13, i64 724}
!18 = !{!"background", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !10, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !13, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !14, i64 152, !14, i64 160, !14, i64 168, !13, i64 176, !14, i64 184, !14, i64 192, !6, i64 200, !10, i64 208, !10, i64 212, !14, i64 216, !10, i64 224, !6, i64 232, !6, i64 240, !14, i64 248, !6, i64 256, !14, i64 264, !6, i64 272, !14, i64 280, !6, i64 288, !14, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !14, i64 328, !14, i64 336, !14, i64 344, !14, i64 352, !10, i64 360, !6, i64 368, !14, i64 376, !14, i64 384, !14, i64 392, !14, i64 400, !14, i64 408, !14, i64 416, !14, i64 424, !14, i64 432, !14, i64 440, !14, i64 448, !14, i64 456, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !10, i64 548, !10, i64 552, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !10, i64 592, !10, i64 596, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !10, i64 616, !10, i64 620, !10, i64 624, !10, i64 628, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !10, i64 672, !10, i64 676, !10, i64 680, !10, i64 684, !10, i64 688, !10, i64 692, !10, i64 696, !10, i64 700, !10, i64 704, !10, i64 708, !10, i64 712, !10, i64 716, !10, i64 720, !13, i64 724, !13, i64 726, !13, i64 728, !13, i64 730, !13, i64 732, !13, i64 734, !13, i64 736, !13, i64 738, !13, i64 740, !13, i64 742, !13, i64 744, !6, i64 752, !6, i64 760, !6, i64 768, !6, i64 776, !6, i64 784, !6, i64 792, !6, i64 800, !6, i64 808, !6, i64 816, !6, i64 824, !6, i64 832, !13, i64 840, !13, i64 842, !13, i64 844, !13, i64 846, !13, i64 848, !13, i64 850, !7, i64 852, !13, i64 2900, !7, i64 2902}
!19 = !{!20, !10, i64 1528}
!20 = !{!"precision", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !7, i64 104, !14, i64 360, !10, i64 368, !14, i64 376, !10, i64 384, !10, i64 388, !14, i64 392, !10, i64 400, !14, i64 408, !10, i64 416, !14, i64 424, !14, i64 432, !14, i64 440, !14, i64 448, !14, i64 456, !14, i64 464, !14, i64 472, !14, i64 480, !14, i64 488, !14, i64 496, !14, i64 504, !14, i64 512, !14, i64 520, !14, i64 528, !14, i64 536, !14, i64 544, !14, i64 552, !14, i64 560, !14, i64 568, !14, i64 576, !14, i64 584, !14, i64 592, !14, i64 600, !14, i64 608, !14, i64 616, !10, i64 624, !7, i64 628, !7, i64 884, !7, i64 1140, !14, i64 1400, !14, i64 1408, !14, i64 1416, !14, i64 1424, !14, i64 1432, !14, i64 1440, !14, i64 1448, !14, i64 1456, !14, i64 1464, !14, i64 1472, !14, i64 1480, !14, i64 1488, !14, i64 1496, !14, i64 1504, !14, i64 1512, !14, i64 1520, !10, i64 1528, !14, i64 1536, !14, i64 1544, !10, i64 1552, !10, i64 1556, !10, i64 1560, !10, i64 1564, !10, i64 1568, !10, i64 1572, !10, i64 1576, !10, i64 1580, !14, i64 1584, !14, i64 1592, !14, i64 1600, !14, i64 1608, !14, i64 1616, !14, i64 1624, !14, i64 1632, !14, i64 1640, !10, i64 1648, !14, i64 1656, !14, i64 1664, !10, i64 1672, !14, i64 1680, !14, i64 1688, !10, i64 1696, !14, i64 1704, !10, i64 1712, !14, i64 1720, !14, i64 1728, !10, i64 1736, !14, i64 1744, !14, i64 1752, !14, i64 1760, !10, i64 1768, !14, i64 1776, !14, i64 1784, !14, i64 1792, !14, i64 1800, !14, i64 1808, !10, i64 1816, !14, i64 1824, !14, i64 1832, !14, i64 1840, !14, i64 1848, !14, i64 1856, !14, i64 1864, !14, i64 1872, !10, i64 1880, !14, i64 1888, !14, i64 1896, !14, i64 1904, !14, i64 1912, !14, i64 1920, !14, i64 1928, !14, i64 1936, !14, i64 1944, !14, i64 1952, !14, i64 1960, !14, i64 1968, !14, i64 1976, !14, i64 1984, !14, i64 1992, !14, i64 2000, !14, i64 2008, !14, i64 2016, !14, i64 2024, !14, i64 2032, !14, i64 2040, !14, i64 2048, !14, i64 2056, !14, i64 2064, !14, i64 2072, !14, i64 2080, !14, i64 2088, !14, i64 2096, !14, i64 2104, !14, i64 2112, !14, i64 2120, !14, i64 2128, !14, i64 2136, !14, i64 2144, !14, i64 2152, !14, i64 2160, !14, i64 2168, !14, i64 2176, !14, i64 2184, !14, i64 2192, !14, i64 2200, !14, i64 2208, !14, i64 2216, !14, i64 2224, !14, i64 2232, !14, i64 2240, !14, i64 2248, !10, i64 2256, !14, i64 2264, !14, i64 2272, !14, i64 2280, !14, i64 2288, !10, i64 2296, !14, i64 2304, !14, i64 2312, !10, i64 2320, !10, i64 2324, !10, i64 2328, !14, i64 2336, !14, i64 2344, !7, i64 2352}
!21 = !{!20, !10, i64 1648}
!22 = !{!18, !13, i64 740}
!23 = !{!20, !10, i64 1672}
!24 = !{!18, !13, i64 738}
!25 = !{!20, !10, i64 1696}
!26 = !{!18, !13, i64 732}
!27 = !{!20, !10, i64 1712}
!28 = !{!12, !13, i64 54}
!29 = !{!18, !13, i64 736}
!30 = !{!18, !14, i64 456}
!31 = !{!14, !14, i64 0}
!32 = !{!18, !13, i64 96}
!33 = !{!18, !13, i64 726}
!34 = !{!12, !13, i64 14}
!35 = !{!12, !13, i64 12}
!36 = !{!12, !13, i64 16}
!37 = !{!12, !13, i64 18}
!38 = !{!12, !13, i64 6}
!39 = !{!12, !13, i64 8}
!40 = !{!12, !13, i64 28}
!41 = !{!12, !13, i64 30}
!42 = !{!12, !10, i64 24}
!43 = !{!12, !14, i64 1992}
!44 = !{!45, !14, i64 408}
!45 = !{!"thermo", !14, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !14, i64 24, !14, i64 32, !13, i64 40, !13, i64 42, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !10, i64 80, !6, i64 88, !6, i64 96, !14, i64 104, !10, i64 112, !6, i64 120, !6, i64 128, !14, i64 136, !10, i64 144, !6, i64 152, !6, i64 160, !14, i64 168, !13, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !14, i64 224, !14, i64 232, !14, i64 240, !14, i64 248, !14, i64 256, !14, i64 264, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !14, i64 408, !14, i64 416, !14, i64 424, !14, i64 432, !14, i64 440, !14, i64 448, !14, i64 456, !14, i64 464, !14, i64 472, !14, i64 480, !14, i64 488, !14, i64 496, !14, i64 504, !14, i64 512, !14, i64 520, !14, i64 528, !14, i64 536, !14, i64 544, !14, i64 552, !14, i64 560, !14, i64 568, !14, i64 576, !14, i64 584, !14, i64 592, !13, i64 600, !13, i64 602, !13, i64 604, !7, i64 606}
!46 = !{!12, !13, i64 2020}
!47 = !{!12, !13, i64 2084}
!48 = !{!12, !10, i64 2040}
!49 = !{!50, !50, i64 0}
!50 = !{!"long", !7, i64 0}
!51 = !{!12, !6, i64 2072}
!52 = !{!12, !6, i64 2360}
!53 = !{!12, !6, i64 2368}
!54 = !{!18, !10, i64 360}
!55 = !{!18, !14, i64 352}
!56 = distinct !{!56, !57}
!57 = !{!"llvm.loop.mustprogress"}
!58 = distinct !{!58, !57}
!59 = distinct !{!59, !57}
!60 = !{!12, !10, i64 2480}
!61 = !{!12, !6, i64 2336}
!62 = !{!12, !6, i64 2472}
!63 = !{!12, !6, i64 2488}
!64 = !{!12, !6, i64 2496}
!65 = distinct !{!65, !57}
!66 = distinct !{!66, !57}
!67 = distinct !{!67, !57}


; 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 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [208 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [57 x i8], align 1
@__func__.perturb_init = external hidden unnamed_addr constant [13 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [107 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [93 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.80 = external hidden unnamed_addr constant [441 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [242 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [178 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [207 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.92 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.93 = external hidden unnamed_addr constant [154 x i8], align 1
@.str.94 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [229 x i8], align 1
@.str.96 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [822 x i8], align 1
@.str.98 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [269 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: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @perturb_init(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #3 {
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  %11 = alloca [2048 x i8], align 16
  %12 = alloca [2048 x i8], align 16
  %13 = alloca [2048 x i8], align 16
  %14 = alloca [2048 x i8], align 16
  %15 = alloca [2048 x i8], align 16
  %16 = alloca [2048 x i8], align 16
  %17 = alloca [2048 x i8], align 16
  %18 = alloca [2048 x i8], align 16
  %19 = alloca [2048 x i8], align 16
  %20 = alloca [2048 x i8], align 16
  %21 = alloca [2048 x i8], align 16
  %22 = alloca [2048 x i8], align 16
  %23 = alloca [2048 x i8], align 16
  %24 = alloca [2048 x i8], align 16
  %25 = alloca [2048 x i8], align 16
  %26 = alloca [2048 x i8], align 16
  %27 = alloca [2048 x i8], align 16
  %28 = alloca [2048 x i8], align 16
  %29 = alloca [2048 x i8], align 16
  %30 = alloca [2048 x i8], align 16
  %31 = alloca [2048 x i8], align 16
  %32 = alloca [2048 x i8], align 16
  %33 = alloca [2048 x i8], align 16
  %34 = alloca [2048 x i8], align 16
  %35 = alloca [2048 x i8], align 16
  %36 = alloca [2048 x i8], align 16
  %37 = alloca [2048 x i8], align 16
  %38 = alloca [2048 x i8], align 16
  %39 = alloca [2048 x i8], align 16
  %40 = alloca [2048 x i8], align 16
  %41 = alloca [2048 x i8], align 16
  %42 = alloca [2048 x i8], align 16
  %43 = alloca [2048 x i8], align 16
  %44 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %45 = load i16, ptr %3, align 8, !tbaa !5
  %46 = icmp eq i16 %45, 0
  %47 = getelementptr inbounds i8, ptr %3, i64 27608
  %48 = load i16, ptr %47, align 8, !tbaa !13
  %49 = icmp sgt i16 %48, 0
  br i1 %46, label %50, label %53

50:                                               ; preds = %4
  br i1 %49, label %51, label %.critedge237

51:                                               ; preds = %50
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.66)
  br label %.critedge237

53:                                               ; preds = %4
  br i1 %49, label %54, label %56

54:                                               ; preds = %53
  %55 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.67)
  br label %56

56:                                               ; preds = %53, %54
  %57 = getelementptr inbounds i8, ptr %3, i64 2024
  %58 = load i32, ptr %57, align 8, !tbaa !14
  %59 = icmp eq i32 %58, 1
  br i1 %59, label %60, label %66

60:                                               ; preds = %56
  %61 = getelementptr inbounds i8, ptr %1, i64 724
  %62 = load i16, ptr %61, align 4, !tbaa !15
  %63 = icmp eq i16 %62, 0
  br i1 %63, label %64, label %66

64:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.68) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.69, ptr noundef nonnull %9) #7
  %65 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %65, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 516, ptr noundef nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #7
  br label %.critedge237

66:                                               ; preds = %60, %56
  %67 = getelementptr inbounds i8, ptr %0, i64 1528
  %68 = load i32, ptr %67, align 8, !tbaa !17
  %or.cond231 = icmp ugt i32 %68, 5
  br i1 %or.cond231, label %69, label %71

69:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.70, i32 noundef %68) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.71, ptr noundef nonnull %11) #7
  %70 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %70, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 521, ptr noundef nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #7
  br label %.critedge237

71:                                               ; preds = %66
  %72 = getelementptr inbounds i8, ptr %0, i64 1648
  %73 = load i32, ptr %72, align 8, !tbaa !19
  %or.cond232 = icmp ugt i32 %73, 3
  br i1 %or.cond232, label %74, label %76

74:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str.72, i32 noundef %73) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.73, ptr noundef nonnull %13) #7
  %75 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %75, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 526, ptr noundef nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #7
  br label %.critedge237

76:                                               ; preds = %71
  %77 = getelementptr inbounds i8, ptr %1, i64 740
  %78 = load i16, ptr %77, align 4, !tbaa !20
  %79 = icmp eq i16 %78, 1
  br i1 %79, label %80, label %85

80:                                               ; preds = %76
  %81 = getelementptr inbounds i8, ptr %0, i64 1672
  %82 = load i32, ptr %81, align 8, !tbaa !21
  %or.cond233 = icmp ugt i32 %82, 1
  br i1 %or.cond233, label %83, label %85

83:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %15) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str.74, i32 noundef %82) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %16) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %16, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.75, ptr noundef nonnull %15) #7
  %84 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %84, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 532, ptr noundef nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #7
  br label %.critedge237

85:                                               ; preds = %80, %76
  %86 = getelementptr inbounds i8, ptr %1, i64 738
  %87 = load i16, ptr %86, align 2, !tbaa !22
  %88 = icmp eq i16 %87, 1
  br i1 %88, label %89, label %94

89:                                               ; preds = %85
  %90 = getelementptr inbounds i8, ptr %0, i64 1696
  %91 = load i32, ptr %90, align 8, !tbaa !23
  %or.cond234 = icmp ugt i32 %91, 3
  br i1 %or.cond234, label %92, label %94

92:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %17) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %17, ptr noundef nonnull @.str.76, i32 noundef %91) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %18) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.77, ptr noundef nonnull %17) #7
  %93 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %93, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 540, ptr noundef nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %18) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %17) #7
  br label %.critedge237

94:                                               ; preds = %89, %85
  %95 = getelementptr inbounds i8, ptr %1, i64 732
  %96 = load i16, ptr %95, align 4, !tbaa !24
  %97 = icmp eq i16 %96, 1
  br i1 %97, label %98, label %113

98:                                               ; preds = %94
  %99 = getelementptr inbounds i8, ptr %0, i64 1712
  %100 = load i32, ptr %99, align 8, !tbaa !25
  %or.cond235 = icmp ugt i32 %100, 3
  br i1 %or.cond235, label %101, label %103

101:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %19) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %19, ptr noundef nonnull @.str.78, i32 noundef %100) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %20) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %20, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.79, ptr noundef nonnull %19) #7
  %102 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %102, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 548, ptr noundef nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %19) #7
  br label %.critedge237

103:                                              ; preds = %98
  %104 = getelementptr inbounds i8, ptr %3, i64 54
  %105 = load i16, ptr %104, align 2, !tbaa !26
  %106 = icmp eq i16 %105, 1
  br i1 %106, label %107, label %113

107:                                              ; preds = %103
  %108 = load i16, ptr %47, align 8, !tbaa !13
  %109 = icmp sgt i16 %108, 0
  br i1 %109, label %110, label %113

110:                                              ; preds = %107
  %111 = load ptr, ptr @stdout, align 8, !tbaa !27
  %112 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %111, ptr noundef nonnull @.str.80) #7
  br label %113

113:                                              ; preds = %103, %110, %107, %94
  %114 = getelementptr inbounds i8, ptr %1, i64 736
  %115 = load i16, ptr %114, align 8, !tbaa !28
  %116 = icmp eq i16 %115, 1
  br i1 %116, label %117, label %154

117:                                              ; preds = %113
  %118 = call i32 @background_w_fld(ptr noundef nonnull %1, double noundef 0.000000e+00, ptr noundef nonnull %5, ptr noundef nonnull %7, ptr noundef nonnull %8) #7
  %119 = icmp eq i32 %118, 1
  br i1 %119, label %120, label %123

120:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %21) #7
  %121 = getelementptr inbounds i8, ptr %1, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %21, ptr noundef nonnull @.str, ptr noundef nonnull @.str.81, ptr noundef nonnull %121) #7
  %122 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %122, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 561, ptr noundef nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %21) #7
  br label %.critedge237

123:                                              ; preds = %117
  %124 = getelementptr inbounds i8, ptr %1, i64 456
  %125 = load double, ptr %124, align 8, !tbaa !29
  %126 = call i32 @background_w_fld(ptr noundef nonnull %1, double noundef %125, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8) #7
  %127 = icmp eq i32 %126, 1
  br i1 %127, label %128, label %131

128:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %22) #7
  %129 = getelementptr inbounds i8, ptr %1, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.82, ptr noundef nonnull %129) #7
  %130 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %130, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 562, ptr noundef nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %22) #7
  br label %.critedge237

131:                                              ; preds = %123
  %132 = load double, ptr %5, align 8, !tbaa !30
  %133 = fcmp ult double %132, 0.000000e+00
  br i1 %133, label %136, label %134

134:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %23) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %23, ptr noundef nonnull @.str.83, double noundef %132) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %24) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %24, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.84, ptr noundef nonnull %23) #7
  %135 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %135, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 566, ptr noundef nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %23) #7
  br label %.critedge237

136:                                              ; preds = %131
  %137 = getelementptr inbounds i8, ptr %1, i64 96
  %138 = load i16, ptr %137, align 8, !tbaa !31
  %139 = icmp eq i16 %138, 0
  br i1 %139, label %140, label %154

140:                                              ; preds = %136
  %141 = fadd double %132, 1.000000e+00
  %142 = load double, ptr %6, align 8, !tbaa !30
  %143 = fadd double %142, 1.000000e+00
  %144 = fmul double %141, %143
  %145 = fcmp ugt double %144, 0.000000e+00
  br i1 %145, label %148, label %146

146:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %25) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %25, ptr noundef nonnull @.str.85) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %26) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %26, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.86, ptr noundef nonnull %25) #7
  %147 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %147, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 572, ptr noundef nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %25) #7
  br label %.critedge237

148:                                              ; preds = %140
  %149 = fcmp oeq double %142, -1.000000e+00
  %150 = load double, ptr %7, align 8
  %151 = fcmp oeq double %150, 0.000000e+00
  %or.cond = select i1 %149, i1 %151, i1 false
  br i1 %or.cond, label %152, label %154

152:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %27) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %27, ptr noundef nonnull @.str.87) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %28) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %28, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.88, ptr noundef nonnull %27) #7
  %153 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %153, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 577, ptr noundef nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %28) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %27) #7
  br label %.critedge237

154:                                              ; preds = %136, %148, %113
  %155 = getelementptr inbounds i8, ptr %1, i64 726
  %156 = load i16, ptr %155, align 2, !tbaa !32
  %157 = icmp eq i16 %156, 1
  br i1 %157, label %158, label %176

158:                                              ; preds = %154
  %159 = getelementptr inbounds i8, ptr %3, i64 14
  %160 = load i16, ptr %159, align 2, !tbaa !33
  %161 = icmp eq i16 %160, 1
  br i1 %161, label %174, label %162

162:                                              ; preds = %158
  %163 = getelementptr inbounds i8, ptr %3, i64 12
  %164 = load i16, ptr %163, align 4, !tbaa !34
  %165 = icmp eq i16 %164, 1
  br i1 %165, label %174, label %166

166:                                              ; preds = %162
  %167 = getelementptr inbounds i8, ptr %3, i64 16
  %168 = load i16, ptr %167, align 8, !tbaa !35
  %169 = icmp eq i16 %168, 1
  br i1 %169, label %174, label %170

170:                                              ; preds = %166
  %171 = getelementptr inbounds i8, ptr %3, i64 18
  %172 = load i16, ptr %171, align 2, !tbaa !36
  %173 = icmp eq i16 %172, 1
  br i1 %173, label %174, label %176

174:                                              ; preds = %170, %166, %162, %158
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %29) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %29, ptr noundef nonnull @.str.89) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %30) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %30, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.90, ptr noundef nonnull %29) #7
  %175 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %175, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 587, ptr noundef nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %30) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %29) #7
  br label %.critedge237

176:                                              ; preds = %170, %154
  %177 = getelementptr inbounds i8, ptr %3, i64 6
  %178 = load i16, ptr %177, align 2, !tbaa !37
  %179 = icmp eq i16 %178, 1
  br i1 %179, label %180, label %182

180:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %31) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %31, ptr noundef nonnull @.str.91) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %32) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %32, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.92, ptr noundef nonnull %31) #7
  %181 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %181, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 593, ptr noundef nonnull %32) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %32) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %31) #7
  br label %.critedge237

182:                                              ; preds = %176
  %183 = getelementptr inbounds i8, ptr %3, i64 18
  %184 = load i16, ptr %183, align 2, !tbaa !36
  %185 = icmp eq i16 %184, 1
  br i1 %185, label %186, label %191

186:                                              ; preds = %182
  %187 = load i16, ptr %47, align 8, !tbaa !13
  %188 = icmp sgt i16 %187, 0
  br i1 %188, label %189, label %191

189:                                              ; preds = %186
  %190 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.93)
  br label %191

191:                                              ; preds = %189, %186, %182
  %192 = getelementptr inbounds i8, ptr %3, i64 8
  %193 = load i16, ptr %192, align 8, !tbaa !38
  %194 = icmp eq i16 %193, 1
  br i1 %194, label %195, label %215

195:                                              ; preds = %191
  %196 = getelementptr inbounds i8, ptr %3, i64 28
  store i16 0, ptr %196, align 4, !tbaa !39
  %197 = getelementptr inbounds i8, ptr %3, i64 30
  store i16 0, ptr %197, align 2, !tbaa !40
  %198 = getelementptr inbounds i8, ptr %3, i64 24
  %199 = load i32, ptr %198, align 8, !tbaa !41
  switch i32 %199, label %215 [
    i32 2, label %207
    i32 1, label %200
  ]

200:                                              ; preds = %195
  %201 = load i16, ptr %86, align 2, !tbaa !22
  %202 = icmp eq i16 %201, 1
  br i1 %202, label %206, label %203

203:                                              ; preds = %200
  %204 = load i16, ptr %95, align 4, !tbaa !24
  %205 = icmp eq i16 %204, 1
  br i1 %205, label %206, label %215

206:                                              ; preds = %203, %200
  store i16 1, ptr %196, align 4, !tbaa !39
  br label %215

207:                                              ; preds = %195
  %208 = load i16, ptr %86, align 2, !tbaa !22
  %209 = icmp eq i16 %208, 1
  br i1 %209, label %210, label %211

210:                                              ; preds = %207
  store i16 1, ptr %196, align 4, !tbaa !39
  br label %211

211:                                              ; preds = %210, %207
  %212 = load i16, ptr %95, align 4, !tbaa !24
  %213 = icmp eq i16 %212, 1
  br i1 %213, label %214, label %215

214:                                              ; preds = %211
  store i16 1, ptr %197, align 2, !tbaa !40
  br label %215

215:                                              ; preds = %195, %206, %203, %214, %211, %191
  %216 = call i32 @perturb_indices(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3)
  %217 = icmp eq i32 %216, 1
  br i1 %217, label %218, label %220

218:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %33) #7
  %219 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %33, ptr noundef nonnull @.str, ptr noundef nonnull @.str.94, ptr noundef nonnull %219) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %219, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 646, ptr noundef nonnull %33) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %33) #7
  br label %.critedge237

220:                                              ; preds = %215
  %221 = getelementptr inbounds i8, ptr %3, i64 1992
  %222 = load double, ptr %221, align 8, !tbaa !42
  %223 = getelementptr inbounds i8, ptr %2, i64 408
  %224 = load double, ptr %223, align 8, !tbaa !43
  %225 = fcmp ogt double %222, %224
  br i1 %225, label %226, label %238

226:                                              ; preds = %220
  %227 = getelementptr inbounds i8, ptr %3, i64 2020
  %228 = load i16, ptr %227, align 4, !tbaa !45
  %229 = icmp eq i16 %228, 1
  br i1 %229, label %230, label %232

230:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %34) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %34, ptr noundef nonnull @.str.95, double noundef %222, double noundef %224) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %35) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %35, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.96, ptr noundef nonnull %34) #7
  %231 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %231, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 655, ptr noundef nonnull %35) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %35) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %34) #7
  br label %.critedge237

232:                                              ; preds = %226
  %233 = getelementptr inbounds i8, ptr %3, i64 2084
  %234 = load i16, ptr %233, align 4, !tbaa !46
  %235 = icmp eq i16 %234, 1
  br i1 %235, label %236, label %238

236:                                              ; preds = %232
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %36) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %36, ptr noundef nonnull @.str.97, double noundef %222, double noundef %224) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %37) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %37, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.98, ptr noundef nonnull %36) #7
  %237 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %237, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 661, ptr noundef nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %37) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %36) #7
  br label %.critedge237

238:                                              ; preds = %232, %220
  %239 = call i32 @perturb_timesampling_for_sources(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3)
  %240 = icmp eq i32 %239, 1
  br i1 %240, label %241, label %243

241:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %38) #7
  %242 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %38, ptr noundef nonnull @.str, ptr noundef nonnull @.str.99, ptr noundef nonnull %242) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %242, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 675, ptr noundef nonnull %38) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %38) #7
  br label %.critedge237

243:                                              ; preds = %238
  %244 = call i32 @perturb_prepare_k_output(ptr noundef nonnull %1, ptr noundef nonnull %3)
  %245 = icmp eq i32 %244, 1
  br i1 %245, label %255, label %.preheader245

.preheader245:                                    ; preds = %243
  %246 = getelementptr inbounds i8, ptr %3, i64 2040
  %247 = load i32, ptr %246, align 8, !tbaa !47
  %248 = icmp sgt i32 %247, 0
  br i1 %248, label %.lr.ph258, label %._crit_edge259

.lr.ph258:                                        ; preds = %.preheader245
  %249 = getelementptr inbounds i8, ptr %3, i64 2072
  %250 = getelementptr inbounds i8, ptr %3, i64 2360
  %251 = getelementptr inbounds i8, ptr %3, i64 2368
  %252 = getelementptr inbounds i8, ptr %1, i64 360
  %253 = getelementptr inbounds i8, ptr %1, i64 352
  %254 = getelementptr inbounds i8, ptr %3, i64 27610
  br label %261

255:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %39) #7
  %256 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %39, ptr noundef nonnull @.str, ptr noundef nonnull @.str.100, ptr noundef nonnull %256) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %256, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 681, ptr noundef nonnull %39) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %39) #7
  br label %.critedge237

257:                                              ; preds = %.critedge239
  %indvars.iv.next273 = add nuw nsw i64 %indvars.iv272, 1
  %258 = load i32, ptr %246, align 8, !tbaa !47
  %259 = sext i32 %258 to i64
  %260 = icmp slt i64 %indvars.iv.next273, %259
  br i1 %260, label %261, label %._crit_edge259, !llvm.loop !48

261:                                              ; preds = %.lr.ph258, %257
  %indvars.iv272 = phi i64 [ 0, %.lr.ph258 ], [ %indvars.iv.next273, %257 ]
  %262 = phi i32 [ %247, %.lr.ph258 ], [ %258, %257 ]
  %263 = load i16, ptr %47, align 8, !tbaa !13
  %264 = icmp sgt i16 %263, 1
  br i1 %264, label %265, label %269

265:                                              ; preds = %261
  %266 = trunc i64 %indvars.iv272 to i32
  %267 = add i32 %266, 1
  %268 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.102, i32 noundef %267, i32 noundef %262)
  br label %269

269:                                              ; preds = %265, %261
  %270 = call noalias dereferenceable_or_null(392) ptr @malloc(i64 noundef 392) #8
  %.not = icmp eq ptr %270, null
  br i1 %.not, label %271, label %.critedge

271:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %40) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %40, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.103, i32 noundef 392) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %254, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 719, ptr noundef nonnull %40) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %40) #7
  br label %.critedge237

.critedge:                                        ; preds = %269
  %272 = trunc nuw nsw i64 %indvars.iv272 to i32
  %273 = call i32 @perturb_workspace_init(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, i32 noundef %272, ptr noundef nonnull %270)
  %274 = icmp eq i32 %273, 1
  br i1 %274, label %279, label %.preheader243

.preheader243:                                    ; preds = %.critedge
  %275 = load ptr, ptr %249, align 8, !tbaa !50
  %276 = getelementptr inbounds i32, ptr %275, i64 %indvars.iv272
  %277 = load i32, ptr %276, align 4, !tbaa !51
  %278 = icmp sgt i32 %277, 0
  br i1 %278, label %.lr.ph255, label %.critedge239

279:                                              ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %41) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %41, ptr noundef nonnull @.str, ptr noundef nonnull @.str.104, ptr noundef nonnull %254) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %254, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 730, ptr noundef nonnull %41) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %41) #7
  br label %.critedge237

._crit_edge.thread:                               ; preds = %295, %._crit_edge
  %280 = add nuw nsw i32 %.0214254, 1
  %281 = load ptr, ptr %249, align 8, !tbaa !50
  %282 = getelementptr inbounds i32, ptr %281, i64 %indvars.iv272
  %283 = load i32, ptr %282, align 4, !tbaa !51
  %284 = icmp slt i32 %280, %283
  br i1 %284, label %.lr.ph255, label %.critedge239, !llvm.loop !52

.lr.ph255:                                        ; preds = %.preheader243, %._crit_edge.thread
  %285 = phi i32 [ %283, %._crit_edge.thread ], [ %277, %.preheader243 ]
  %.0214254 = phi i32 [ %280, %._crit_edge.thread ], [ 0, %.preheader243 ]
  %286 = load i16, ptr %47, align 8, !tbaa !13
  %287 = icmp sgt i16 %286, 1
  br i1 %287, label %288, label %295

288:                                              ; preds = %.lr.ph255
  %289 = add nuw nsw i32 %.0214254, 1
  %290 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.105, i32 noundef %289, i32 noundef %285)
  %291 = load ptr, ptr %250, align 8, !tbaa !53
  %292 = getelementptr inbounds i32, ptr %291, i64 %indvars.iv272
  %293 = load i32, ptr %292, align 4, !tbaa !51
  %294 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.106, i32 noundef %293)
  br label %295

295:                                              ; preds = %288, %.lr.ph255
  %296 = load ptr, ptr %250, align 8, !tbaa !53
  %297 = getelementptr inbounds i32, ptr %296, i64 %indvars.iv272
  %298 = load i32, ptr %297, align 4, !tbaa !51
  %299 = icmp sgt i32 %298, 0
  br i1 %299, label %.lr.ph.preheader, label %._crit_edge.thread

.lr.ph.preheader:                                 ; preds = %295
  %300 = zext nneg i32 %298 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %339
  %indvars.iv = phi i64 [ %300, %.lr.ph.preheader ], [ %indvars.iv.next, %339 ]
  %.2252 = phi i32 [ 0, %.lr.ph.preheader ], [ %.3, %339 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %301 = load i16, ptr %47, align 8, !tbaa !13
  %302 = icmp sgt i16 %301, 2
  %303 = icmp eq i32 %.2252, 0
  %or.cond3 = and i1 %303, %302
  br i1 %or.cond3, label %304, label %333

304:                                              ; preds = %.lr.ph
  %305 = load ptr, ptr %251, align 8, !tbaa !54
  %306 = getelementptr inbounds ptr, ptr %305, i64 %indvars.iv272
  %307 = load ptr, ptr %306, align 8, !tbaa !27
  %308 = getelementptr inbounds double, ptr %307, i64 %indvars.iv.next
  %309 = load double, ptr %308, align 8, !tbaa !30
  %310 = load ptr, ptr %250, align 8, !tbaa !53
  %311 = getelementptr inbounds i32, ptr %310, i64 %indvars.iv272
  %312 = load i32, ptr %311, align 4, !tbaa !51
  %313 = trunc nuw nsw i64 %indvars.iv to i32
  %314 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.107, double noundef %309, i32 noundef %313, i32 noundef %312)
  %315 = load i32, ptr %252, align 8, !tbaa !55
  %.not230 = icmp eq i32 %315, 0
  br i1 %.not230, label %.thread, label %316

316:                                              ; preds = %304
  %317 = load ptr, ptr %251, align 8, !tbaa !54
  %318 = getelementptr inbounds ptr, ptr %317, i64 %indvars.iv272
  %319 = load ptr, ptr %318, align 8, !tbaa !27
  %320 = getelementptr inbounds double, ptr %319, i64 %indvars.iv.next
  %321 = load double, ptr %320, align 8, !tbaa !30
  %322 = load double, ptr %253, align 8, !tbaa !56
  %323 = call double @llvm.fmuladd.f64(double %321, double %321, double %322)
  %324 = call double @sqrt(double noundef %323) #7
  %325 = load i32, ptr %252, align 8, !tbaa !55
  %326 = sitofp i32 %325 to double
  %327 = load double, ptr %253, align 8, !tbaa !56
  %328 = fmul double %327, %326
  %329 = call double @sqrt(double noundef %328) #7
  %330 = fdiv double %324, %329
  %331 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.108, double noundef %330)
  br label %.thread

.thread:                                          ; preds = %304, %316
  %332 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.109)
  br label %334

333:                                              ; preds = %.lr.ph
  br i1 %303, label %334, label %339

334:                                              ; preds = %.thread, %333
  %335 = trunc nuw nsw i64 %indvars.iv.next to i32
  %336 = call i32 @perturb_solve(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %272, i32 noundef %.0214254, i32 noundef %335, ptr noundef nonnull %270)
  %337 = icmp eq i32 %336, 1
  br i1 %337, label %338, label %339

338:                                              ; preds = %334
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %42) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %42, ptr noundef nonnull @.str, ptr noundef nonnull @.str.110, ptr noundef nonnull %254) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %254, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 785, ptr noundef nonnull %42) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %42) #7
  br label %339

339:                                              ; preds = %333, %338, %334
  %340 = phi i1 [ true, %338 ], [ false, %334 ], [ true, %333 ]
  %.3 = phi i32 [ 1, %338 ], [ 0, %334 ], [ 1, %333 ]
  %341 = icmp ugt i64 %indvars.iv, 1
  br i1 %341, label %.lr.ph, label %._crit_edge, !llvm.loop !57

._crit_edge:                                      ; preds = %339
  br i1 %340, label %.critedge237, label %._crit_edge.thread

.critedge239:                                     ; preds = %._crit_edge.thread, %.preheader243
  %342 = call i32 @perturb_workspace_free(ptr noundef nonnull %3, i32 noundef %272, ptr noundef nonnull %270)
  %343 = icmp eq i32 %342, 1
  br i1 %343, label %344, label %257

344:                                              ; preds = %.critedge239
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %43) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %43, ptr noundef nonnull @.str, ptr noundef nonnull @.str.111, ptr noundef nonnull %254) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %254, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 824, ptr noundef nonnull %43) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %43) #7
  br label %.critedge237

._crit_edge259:                                   ; preds = %257, %.preheader245
  %345 = phi i32 [ %247, %.preheader245 ], [ %258, %257 ]
  %346 = getelementptr inbounds i8, ptr %3, i64 2480
  %347 = load i32, ptr %346, align 8, !tbaa !58
  %348 = icmp sgt i32 %347, 1
  %349 = icmp sgt i32 %345, 0
  %or.cond285 = and i1 %348, %349
  br i1 %or.cond285, label %.preheader240.lr.ph, label %.critedge237

.preheader240.lr.ph:                              ; preds = %._crit_edge259
  %350 = getelementptr inbounds i8, ptr %3, i64 2072
  %351 = getelementptr inbounds i8, ptr %3, i64 2336
  %352 = getelementptr inbounds i8, ptr %3, i64 2472
  %353 = getelementptr inbounds i8, ptr %3, i64 2488
  %354 = getelementptr inbounds i8, ptr %3, i64 2360
  %355 = getelementptr inbounds i8, ptr %3, i64 2496
  %356 = getelementptr inbounds i8, ptr %3, i64 27610
  %.pre = load ptr, ptr %350, align 8, !tbaa !50
  br label %.preheader240

.preheader240:                                    ; preds = %.preheader240.lr.ph, %._crit_edge266
  %357 = phi i32 [ %345, %.preheader240.lr.ph ], [ %407, %._crit_edge266 ]
  %358 = phi ptr [ %.pre, %.preheader240.lr.ph ], [ %408, %._crit_edge266 ]
  %indvars.iv275 = phi i64 [ 0, %.preheader240.lr.ph ], [ %indvars.iv.next276, %._crit_edge266 ]
  %359 = getelementptr inbounds i32, ptr %358, i64 %indvars.iv275
  %360 = load i32, ptr %359, align 4, !tbaa !51
  %361 = icmp sgt i32 %360, 0
  br i1 %361, label %.preheader.lr.ph, label %._crit_edge266

.preheader.lr.ph:                                 ; preds = %.preheader240
  %362 = load ptr, ptr %351, align 8, !tbaa !59
  %363 = getelementptr inbounds i32, ptr %362, i64 %indvars.iv275
  %364 = load i32, ptr %363, align 4, !tbaa !51
  %365 = icmp sgt i32 %364, 0
  br i1 %365, label %.preheader, label %._crit_edge266

._crit_edge263.thread:                            ; preds = %.preheader, %._crit_edge263
  %366 = phi ptr [ %403, %._crit_edge263 ], [ %372, %.preheader ]
  %367 = add nuw nsw i32 %.1215265, 1
  %368 = load ptr, ptr %350, align 8, !tbaa !50
  %369 = getelementptr inbounds i32, ptr %368, i64 %indvars.iv275
  %370 = load i32, ptr %369, align 4, !tbaa !51
  %371 = icmp slt i32 %367, %370
  br i1 %371, label %.preheader, label %._crit_edge266.loopexit, !llvm.loop !60

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge263.thread
  %372 = phi ptr [ %366, %._crit_edge263.thread ], [ %362, %.preheader.lr.ph ]
  %.1215265 = phi i32 [ %367, %._crit_edge263.thread ], [ 0, %.preheader.lr.ph ]
  %373 = getelementptr inbounds i32, ptr %372, i64 %indvars.iv275
  %374 = load i32, ptr %373, align 4, !tbaa !51
  %375 = icmp sgt i32 %374, 0
  br i1 %375, label %.lr.ph262, label %._crit_edge263.thread

.lr.ph262:                                        ; preds = %.preheader, %400
  %376 = phi i32 [ %405, %400 ], [ %374, %.preheader ]
  %.5261 = phi i32 [ %.6, %400 ], [ 0, %.preheader ]
  %.0219260 = phi i32 [ %402, %400 ], [ 0, %.preheader ]
  %377 = icmp eq i32 %.5261, 0
  br i1 %377, label %378, label %400

378:                                              ; preds = %.lr.ph262
  %379 = load ptr, ptr %352, align 8, !tbaa !62
  %380 = load i32, ptr %346, align 8, !tbaa !58
  %381 = load ptr, ptr %353, align 8, !tbaa !63
  %382 = getelementptr inbounds ptr, ptr %381, i64 %indvars.iv275
  %383 = load ptr, ptr %382, align 8, !tbaa !27
  %384 = mul nsw i32 %376, %.1215265
  %385 = add nsw i32 %384, %.0219260
  %386 = sext i32 %385 to i64
  %387 = getelementptr inbounds ptr, ptr %383, i64 %386
  %388 = load ptr, ptr %387, align 8, !tbaa !27
  %389 = load ptr, ptr %354, align 8, !tbaa !53
  %390 = getelementptr inbounds i32, ptr %389, i64 %indvars.iv275
  %391 = load i32, ptr %390, align 4, !tbaa !51
  %392 = load ptr, ptr %355, align 8, !tbaa !64
  %393 = getelementptr inbounds ptr, ptr %392, i64 %indvars.iv275
  %394 = load ptr, ptr %393, align 8, !tbaa !27
  %395 = getelementptr inbounds ptr, ptr %394, i64 %386
  %396 = load ptr, ptr %395, align 8, !tbaa !27
  %397 = call i32 @array_spline_table_lines(ptr noundef %379, i32 noundef %380, ptr noundef %388, i32 noundef %391, ptr noundef %396, i16 noundef signext 1, ptr noundef nonnull %356) #7
  %398 = icmp eq i32 %397, 1
  br i1 %398, label %399, label %400

399:                                              ; preds = %378
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %44) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %44, ptr noundef nonnull @.str, ptr noundef nonnull @.str.112, ptr noundef nonnull %356) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %356, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_init, i32 noundef 863, ptr noundef nonnull %44) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %44) #7
  br label %400

400:                                              ; preds = %.lr.ph262, %399, %378
  %401 = phi i1 [ true, %399 ], [ false, %378 ], [ true, %.lr.ph262 ]
  %.6 = phi i32 [ 1, %399 ], [ 0, %378 ], [ 1, %.lr.ph262 ]
  %402 = add nuw nsw i32 %.0219260, 1
  %403 = load ptr, ptr %351, align 8, !tbaa !59
  %404 = getelementptr inbounds i32, ptr %403, i64 %indvars.iv275
  %405 = load i32, ptr %404, align 4, !tbaa !51
  %406 = icmp slt i32 %402, %405
  br i1 %406, label %.lr.ph262, label %._crit_edge263, !llvm.loop !65

._crit_edge263:                                   ; preds = %400
  br i1 %401, label %.critedge237, label %._crit_edge263.thread

._crit_edge266.loopexit:                          ; preds = %._crit_edge263.thread
  %.pre278 = load i32, ptr %246, align 8, !tbaa !47
  br label %._crit_edge266

._crit_edge266:                                   ; preds = %.preheader.lr.ph, %._crit_edge266.loopexit, %.preheader240
  %407 = phi i32 [ %.pre278, %._crit_edge266.loopexit ], [ %357, %.preheader240 ], [ %357, %.preheader.lr.ph ]
  %408 = phi ptr [ %368, %._crit_edge266.loopexit ], [ %358, %.preheader240 ], [ %358, %.preheader.lr.ph ]
  %indvars.iv.next276 = add nuw nsw i64 %indvars.iv275, 1
  %409 = sext i32 %407 to i64
  %410 = icmp slt i64 %indvars.iv.next276, %409
  br i1 %410, label %.preheader240, label %.critedge237, !llvm.loop !66

.critedge237:                                     ; preds = %._crit_edge, %._crit_edge266, %._crit_edge263, %344, %279, %271, %._crit_edge259, %50, %51, %255, %241, %236, %230, %218, %180, %174, %152, %146, %134, %128, %120, %101, %92, %83, %74, %69, %64
  %.0 = phi i32 [ 1, %64 ], [ 1, %69 ], [ 1, %74 ], [ 1, %83 ], [ 1, %92 ], [ 1, %101 ], [ 1, %120 ], [ 1, %128 ], [ 1, %134 ], [ 1, %146 ], [ 1, %152 ], [ 1, %174 ], [ 1, %180 ], [ 1, %218 ], [ 1, %230 ], [ 1, %236 ], [ 1, %241 ], [ 1, %255 ], [ 0, %51 ], [ 0, %50 ], [ 1, %344 ], [ 0, %._crit_edge259 ], [ 1, %271 ], [ 1, %279 ], [ 1, %._crit_edge263 ], [ 0, %._crit_edge266 ], [ 1, %._crit_edge ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  ret i32 %.0
}

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

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

declare i32 @background_w_fld(ptr noundef, double noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @perturb_indices(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @perturb_timesampling_for_sources(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @perturb_prepare_k_output(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @perturb_workspace_init(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

; Function Attrs: nounwind uwtable
declare dso_local i32 @perturb_solve(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local i32 @perturb_workspace_free(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

declare i32 @array_spline_table_lines(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i16 noundef signext, ptr noundef) local_unnamed_addr #1

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 = { 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 #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { 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, !7, i64 0}
!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 = !{!6, !7, i64 27608}
!14 = !{!6, !10, i64 2024}
!15 = !{!16, !7, i64 724}
!16 = !{!"background", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !10, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !7, 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, !7, i64 176, !11, i64 184, !11, i64 192, !12, i64 200, !10, i64 208, !10, i64 212, !11, i64 216, !10, i64 224, !12, i64 232, !12, i64 240, !11, i64 248, !12, i64 256, !11, i64 264, !12, i64 272, !11, i64 280, !12, i64 288, !11, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !10, i64 360, !12, i64 368, !11, i64 376, !11, i64 384, !11, i64 392, !11, i64 400, !11, i64 408, !11, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !10, i64 548, !10, i64 552, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !10, i64 592, !10, i64 596, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !10, i64 616, !10, i64 620, !10, i64 624, !10, i64 628, !12, i64 632, !12, i64 640, !12, i64 648, !12, i64 656, !12, i64 664, !10, i64 672, !10, i64 676, !10, i64 680, !10, i64 684, !10, i64 688, !10, i64 692, !10, i64 696, !10, i64 700, !10, i64 704, !10, i64 708, !10, i64 712, !10, i64 716, !10, i64 720, !7, i64 724, !7, i64 726, !7, i64 728, !7, i64 730, !7, i64 732, !7, i64 734, !7, i64 736, !7, i64 738, !7, i64 740, !7, i64 742, !7, i64 744, !12, i64 752, !12, i64 760, !12, i64 768, !12, i64 776, !12, i64 784, !12, i64 792, !12, i64 800, !12, i64 808, !12, i64 816, !12, i64 824, !12, i64 832, !7, i64 840, !7, i64 842, !7, i64 844, !7, i64 846, !7, i64 848, !7, i64 850, !8, i64 852, !7, i64 2900, !8, i64 2902}
!17 = !{!18, !10, i64 1528}
!18 = !{!"precision", !11, i64 0, !11, 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, !8, i64 104, !11, i64 360, !10, i64 368, !11, i64 376, !10, i64 384, !10, i64 388, !11, i64 392, !10, i64 400, !11, i64 408, !10, 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, !11, i64 504, !11, i64 512, !11, i64 520, !11, 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, !11, i64 616, !10, i64 624, !8, i64 628, !8, i64 884, !8, i64 1140, !11, i64 1400, !11, i64 1408, !11, i64 1416, !11, i64 1424, !11, i64 1432, !11, i64 1440, !11, i64 1448, !11, i64 1456, !11, i64 1464, !11, i64 1472, !11, i64 1480, !11, i64 1488, !11, i64 1496, !11, i64 1504, !11, i64 1512, !11, i64 1520, !10, i64 1528, !11, i64 1536, !11, i64 1544, !10, i64 1552, !10, i64 1556, !10, i64 1560, !10, i64 1564, !10, i64 1568, !10, i64 1572, !10, i64 1576, !10, i64 1580, !11, i64 1584, !11, i64 1592, !11, i64 1600, !11, i64 1608, !11, i64 1616, !11, i64 1624, !11, i64 1632, !11, i64 1640, !10, i64 1648, !11, i64 1656, !11, i64 1664, !10, i64 1672, !11, i64 1680, !11, i64 1688, !10, i64 1696, !11, i64 1704, !10, i64 1712, !11, i64 1720, !11, i64 1728, !10, i64 1736, !11, i64 1744, !11, i64 1752, !11, i64 1760, !10, i64 1768, !11, i64 1776, !11, i64 1784, !11, i64 1792, !11, i64 1800, !11, i64 1808, !10, i64 1816, !11, i64 1824, !11, i64 1832, !11, i64 1840, !11, i64 1848, !11, i64 1856, !11, i64 1864, !11, i64 1872, !10, i64 1880, !11, i64 1888, !11, i64 1896, !11, i64 1904, !11, i64 1912, !11, i64 1920, !11, i64 1928, !11, i64 1936, !11, i64 1944, !11, i64 1952, !11, i64 1960, !11, i64 1968, !11, i64 1976, !11, i64 1984, !11, i64 1992, !11, i64 2000, !11, i64 2008, !11, i64 2016, !11, i64 2024, !11, i64 2032, !11, i64 2040, !11, i64 2048, !11, i64 2056, !11, i64 2064, !11, i64 2072, !11, i64 2080, !11, i64 2088, !11, i64 2096, !11, i64 2104, !11, i64 2112, !11, i64 2120, !11, i64 2128, !11, i64 2136, !11, i64 2144, !11, i64 2152, !11, i64 2160, !11, i64 2168, !11, i64 2176, !11, i64 2184, !11, i64 2192, !11, i64 2200, !11, i64 2208, !11, i64 2216, !11, i64 2224, !11, i64 2232, !11, i64 2240, !11, i64 2248, !10, i64 2256, !11, i64 2264, !11, i64 2272, !11, i64 2280, !11, i64 2288, !10, i64 2296, !11, i64 2304, !11, i64 2312, !10, i64 2320, !10, i64 2324, !10, i64 2328, !11, i64 2336, !11, i64 2344, !8, i64 2352}
!19 = !{!18, !10, i64 1648}
!20 = !{!16, !7, i64 740}
!21 = !{!18, !10, i64 1672}
!22 = !{!16, !7, i64 738}
!23 = !{!18, !10, i64 1696}
!24 = !{!16, !7, i64 732}
!25 = !{!18, !10, i64 1712}
!26 = !{!6, !7, i64 54}
!27 = !{!12, !12, i64 0}
!28 = !{!16, !7, i64 736}
!29 = !{!16, !11, i64 456}
!30 = !{!11, !11, i64 0}
!31 = !{!16, !7, i64 96}
!32 = !{!16, !7, i64 726}
!33 = !{!6, !7, i64 14}
!34 = !{!6, !7, i64 12}
!35 = !{!6, !7, i64 16}
!36 = !{!6, !7, i64 18}
!37 = !{!6, !7, i64 6}
!38 = !{!6, !7, i64 8}
!39 = !{!6, !7, i64 28}
!40 = !{!6, !7, i64 30}
!41 = !{!6, !10, i64 24}
!42 = !{!6, !11, i64 1992}
!43 = !{!44, !11, i64 408}
!44 = !{!"thermo", !11, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !11, i64 24, !11, i64 32, !7, i64 40, !7, i64 42, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !10, i64 80, !12, i64 88, !12, i64 96, !11, i64 104, !10, i64 112, !12, i64 120, !12, i64 128, !11, i64 136, !10, i64 144, !12, i64 152, !12, i64 160, !11, i64 168, !7, 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, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !12, i64 384, !12, i64 392, !12, i64 400, !11, 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, !11, i64 504, !11, i64 512, !11, i64 520, !11, 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, !7, i64 600, !7, i64 602, !7, i64 604, !8, i64 606}
!45 = !{!6, !7, i64 2020}
!46 = !{!6, !7, i64 2084}
!47 = !{!6, !10, i64 2040}
!48 = distinct !{!48, !49}
!49 = !{!"llvm.loop.mustprogress"}
!50 = !{!6, !12, i64 2072}
!51 = !{!10, !10, i64 0}
!52 = distinct !{!52, !49}
!53 = !{!6, !12, i64 2360}
!54 = !{!6, !12, i64 2368}
!55 = !{!16, !10, i64 360}
!56 = !{!16, !11, i64 352}
!57 = distinct !{!57, !49}
!58 = !{!6, !10, i64 2480}
!59 = !{!6, !12, i64 2336}
!60 = distinct !{!60, !49, !61}
!61 = !{!"llvm.loop.unswitch.partial.disable"}
!62 = !{!6, !12, i64 2472}
!63 = !{!6, !12, i64 2488}
!64 = !{!6, !12, i64 2496}
!65 = distinct !{!65, !49}
!66 = distinct !{!66, !49}


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