; 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.perturb_workspace = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, ptr, i32, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, ptr }
%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] }

@.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
@stdout = external global ptr, align 8
@.str.251 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.252 = external hidden unnamed_addr constant [70 x i8], align 1
@__func__.perturb_find_approximation_switches = external hidden unnamed_addr constant [36 x i8], align 1
@.str.255 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.256 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.260 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.261 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.262 = external hidden unnamed_addr constant [151 x i8], align 1
@.str.263 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.264 = external hidden unnamed_addr constant [199 x i8], align 1
@.str.265 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.266 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.267 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.268 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.269 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.270 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.271 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [83 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
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @perturb_find_approximation_switches(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, double noundef %5, ptr noundef %6, double noundef %7, double noundef %8, double noundef %9, i32 noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13) #4 {
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca double, align 8
  %22 = alloca ptr, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca ptr, align 8
  %39 = alloca double, align 8
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca [2048 x i8], align 16
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %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 [2048 x i8], align 16
  %56 = alloca [2048 x i8], align 16
  store ptr %0, ptr %16, align 8, !tbaa !5
  store ptr %1, ptr %17, align 8, !tbaa !5
  store ptr %2, ptr %18, align 8, !tbaa !5
  store ptr %3, ptr %19, align 8, !tbaa !5
  store i32 %4, ptr %20, align 4, !tbaa !9
  store double %5, ptr %21, align 8, !tbaa !11
  store ptr %6, ptr %22, align 8, !tbaa !5
  store double %7, ptr %23, align 8, !tbaa !11
  store double %8, ptr %24, align 8, !tbaa !11
  store double %9, ptr %25, align 8, !tbaa !11
  store i32 %10, ptr %26, align 4, !tbaa !9
  store ptr %11, ptr %27, align 8, !tbaa !5
  store ptr %12, ptr %28, align 8, !tbaa !5
  store ptr %13, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #5
  store double 0.000000e+00, ptr %37, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #5
  %57 = load double, ptr %23, align 8, !tbaa !11
  %58 = load ptr, ptr %28, align 8, !tbaa !5
  %59 = getelementptr inbounds double, ptr %58, i64 0
  store double %57, ptr %59, align 8, !tbaa !11
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  %61 = load ptr, ptr %17, align 8, !tbaa !5
  %62 = load ptr, ptr %18, align 8, !tbaa !5
  %63 = load ptr, ptr %19, align 8, !tbaa !5
  %64 = load i32, ptr %20, align 4, !tbaa !9
  %65 = load double, ptr %21, align 8, !tbaa !11
  %66 = load double, ptr %23, align 8, !tbaa !11
  %67 = load ptr, ptr %22, align 8, !tbaa !5
  %68 = call i32 @perturb_approximations(ptr noundef %60, ptr noundef %61, ptr noundef %62, ptr noundef %63, i32 noundef %64, double noundef %65, double noundef %66, ptr noundef %67)
  %69 = icmp eq i32 %68, 1
  br i1 %69, label %70, label %79

70:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 2048, ptr %42) #5
  %71 = getelementptr inbounds [2048 x i8], ptr %42, i64 0, i64 0
  %72 = load ptr, ptr %19, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.perturbs, ptr %72, i32 0, i32 186
  %74 = getelementptr inbounds [2048 x i8], ptr %73, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %71, ptr noundef @.str, ptr noundef @.str.251, ptr noundef %74)
  %75 = load ptr, ptr %19, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.perturbs, ptr %75, i32 0, i32 186
  %77 = getelementptr inbounds [2048 x i8], ptr %76, i64 0, i64 0
  %78 = getelementptr inbounds [2048 x i8], ptr %42, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %77, ptr noundef @.str.2, ptr noundef @__func__.perturb_find_approximation_switches, i32 noundef 3361, ptr noundef %78)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %42) #5
  store i32 1, ptr %15, align 4
  store i32 1, ptr %43, align 4
  br label %886

79:                                               ; preds = %14
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %100, %79
  %81 = load i32, ptr %30, align 4, !tbaa !9
  %82 = load ptr, ptr %22, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.perturb_workspace, ptr %82, i32 0, i32 55
  %84 = load i32, ptr %83, align 8, !tbaa !13
  %85 = icmp slt i32 %81, %84
  br i1 %85, label %86, label %103

86:                                               ; preds = %80
  %87 = load ptr, ptr %22, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.perturb_workspace, ptr %87, i32 0, i32 56
  %89 = load ptr, ptr %88, align 8, !tbaa !16
  %90 = load i32, ptr %30, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i32, ptr %89, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = load ptr, ptr %29, align 8, !tbaa !5
  %95 = getelementptr inbounds ptr, ptr %94, i64 0
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = load i32, ptr %30, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds i32, ptr %96, i64 %98
  store i32 %93, ptr %99, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %86
  %101 = load i32, ptr %30, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %30, align 4, !tbaa !9
  br label %80, !llvm.loop !17

103:                                              ; preds = %80
  %104 = load i32, ptr %26, align 4, !tbaa !9
  %105 = icmp eq i32 %104, 1
  br i1 %105, label %106, label %110

106:                                              ; preds = %103
  %107 = load double, ptr %24, align 8, !tbaa !11
  %108 = load ptr, ptr %28, align 8, !tbaa !5
  %109 = getelementptr inbounds double, ptr %108, i64 1
  store double %107, ptr %109, align 8, !tbaa !11
  br label %885

110:                                              ; preds = %103
  %111 = load i32, ptr %26, align 4, !tbaa !9
  %112 = sub nsw i32 %111, 1
  %113 = sext i32 %112 to i64
  %114 = mul i64 %113, 8
  %115 = call noalias ptr @malloc(i64 noundef %114) #6
  store ptr %115, ptr %38, align 8, !tbaa !5
  %116 = load ptr, ptr %38, align 8, !tbaa !5
  %117 = icmp eq ptr %116, null
  br i1 %117, label %118, label %130

118:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #5
  %119 = load i32, ptr %26, align 4, !tbaa !9
  %120 = sub nsw i32 %119, 1
  %121 = sext i32 %120 to i64
  %122 = mul i64 %121, 8
  %123 = trunc i64 %122 to i32
  store i32 %123, ptr %44, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %45) #5
  %124 = getelementptr inbounds [2048 x i8], ptr %45, i64 0, i64 0
  %125 = load i32, ptr %44, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %124, ptr noundef @.str.4, ptr noundef @.str.255, i32 noundef %125)
  %126 = load ptr, ptr %19, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.perturbs, ptr %126, i32 0, i32 186
  %128 = getelementptr inbounds [2048 x i8], ptr %127, i64 0, i64 0
  %129 = getelementptr inbounds [2048 x i8], ptr %45, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %128, ptr noundef @.str.2, ptr noundef @__func__.perturb_find_approximation_switches, i32 noundef 3380, ptr noundef %129)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %45) #5
  store i32 1, ptr %15, align 4
  store i32 1, ptr %43, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #5
  br label %886

130:                                              ; preds = %110
  store i32 0, ptr %32, align 4, !tbaa !9
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %231, %130
  %132 = load i32, ptr %30, align 4, !tbaa !9
  %133 = load ptr, ptr %22, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.perturb_workspace, ptr %133, i32 0, i32 55
  %135 = load i32, ptr %134, align 8, !tbaa !13
  %136 = icmp slt i32 %132, %135
  br i1 %136, label %137, label %234

137:                                              ; preds = %131
  %138 = load ptr, ptr %27, align 8, !tbaa !5
  %139 = load i32, ptr %30, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds i32, ptr %138, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !9
  %143 = icmp sgt i32 %142, 1
  br i1 %143, label %144, label %230

144:                                              ; preds = %137
  %145 = load ptr, ptr %27, align 8, !tbaa !5
  %146 = load i32, ptr %30, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds i32, ptr %145, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !9
  %150 = sub nsw i32 %149, 1
  store i32 %150, ptr %33, align 4, !tbaa !9
  %151 = load double, ptr %23, align 8, !tbaa !11
  store double %151, ptr %34, align 8, !tbaa !11
  %152 = load ptr, ptr %29, align 8, !tbaa !5
  %153 = getelementptr inbounds ptr, ptr %152, i64 0
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = load i32, ptr %30, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds i32, ptr %154, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !9
  store i32 %158, ptr %40, align 4, !tbaa !9
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %159

159:                                              ; preds = %226, %144
  %160 = load i32, ptr %31, align 4, !tbaa !9
  %161 = load i32, ptr %33, align 4, !tbaa !9
  %162 = icmp slt i32 %160, %161
  br i1 %162, label %163, label %229

163:                                              ; preds = %159
  %164 = load double, ptr %34, align 8, !tbaa !11
  store double %164, ptr %35, align 8, !tbaa !11
  %165 = load double, ptr %24, align 8, !tbaa !11
  store double %165, ptr %36, align 8, !tbaa !11
  %166 = load double, ptr %35, align 8, !tbaa !11
  %167 = load double, ptr %36, align 8, !tbaa !11
  %168 = fadd double %166, %167
  %169 = fmul double 5.000000e-01, %168
  store double %169, ptr %37, align 8, !tbaa !11
  br label %170

170:                                              ; preds = %212, %163
  %171 = load double, ptr %36, align 8, !tbaa !11
  %172 = load double, ptr %35, align 8, !tbaa !11
  %173 = fsub double %171, %172
  %174 = load double, ptr %25, align 8, !tbaa !11
  %175 = fcmp ogt double %173, %174
  br i1 %175, label %176, label %217

176:                                              ; preds = %170
  %177 = load ptr, ptr %16, align 8, !tbaa !5
  %178 = load ptr, ptr %17, align 8, !tbaa !5
  %179 = load ptr, ptr %18, align 8, !tbaa !5
  %180 = load ptr, ptr %19, align 8, !tbaa !5
  %181 = load i32, ptr %20, align 4, !tbaa !9
  %182 = load double, ptr %21, align 8, !tbaa !11
  %183 = load double, ptr %37, align 8, !tbaa !11
  %184 = load ptr, ptr %22, align 8, !tbaa !5
  %185 = call i32 @perturb_approximations(ptr noundef %177, ptr noundef %178, ptr noundef %179, ptr noundef %180, i32 noundef %181, double noundef %182, double noundef %183, ptr noundef %184)
  %186 = icmp eq i32 %185, 1
  br i1 %186, label %187, label %196

187:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 2048, ptr %46) #5
  %188 = getelementptr inbounds [2048 x i8], ptr %46, i64 0, i64 0
  %189 = load ptr, ptr %19, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.perturbs, ptr %189, i32 0, i32 186
  %191 = getelementptr inbounds [2048 x i8], ptr %190, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %188, ptr noundef @.str, ptr noundef @.str.256, ptr noundef %191)
  %192 = load ptr, ptr %19, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.perturbs, ptr %192, i32 0, i32 186
  %194 = getelementptr inbounds [2048 x i8], ptr %193, i64 0, i64 0
  %195 = getelementptr inbounds [2048 x i8], ptr %46, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %194, ptr noundef @.str.2, ptr noundef @__func__.perturb_find_approximation_switches, i32 noundef 3411, ptr noundef %195)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %46) #5
  store i32 1, ptr %15, align 4
  store i32 1, ptr %43, align 4
  br label %886

196:                                              ; preds = %176
  %197 = load ptr, ptr %22, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.perturb_workspace, ptr %197, i32 0, i32 56
  %199 = load ptr, ptr %198, align 8, !tbaa !16
  %200 = load i32, ptr %30, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds i32, ptr %199, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !9
  %204 = load i32, ptr %40, align 4, !tbaa !9
  %205 = load i32, ptr %31, align 4, !tbaa !9
  %206 = add nsw i32 %204, %205
  %207 = icmp sgt i32 %203, %206
  br i1 %207, label %208, label %210

208:                                              ; preds = %196
  %209 = load double, ptr %37, align 8, !tbaa !11
  store double %209, ptr %36, align 8, !tbaa !11
  br label %212

210:                                              ; preds = %196
  %211 = load double, ptr %37, align 8, !tbaa !11
  store double %211, ptr %35, align 8, !tbaa !11
  br label %212

212:                                              ; preds = %210, %208
  %213 = load double, ptr %35, align 8, !tbaa !11
  %214 = load double, ptr %36, align 8, !tbaa !11
  %215 = fadd double %213, %214
  %216 = fmul double 5.000000e-01, %215
  store double %216, ptr %37, align 8, !tbaa !11
  br label %170, !llvm.loop !19

217:                                              ; preds = %170
  %218 = load double, ptr %37, align 8, !tbaa !11
  %219 = load ptr, ptr %38, align 8, !tbaa !5
  %220 = load i32, ptr %32, align 4, !tbaa !9
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds double, ptr %219, i64 %221
  store double %218, ptr %222, align 8, !tbaa !11
  %223 = load i32, ptr %32, align 4, !tbaa !9
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %32, align 4, !tbaa !9
  %225 = load double, ptr %37, align 8, !tbaa !11
  store double %225, ptr %34, align 8, !tbaa !11
  br label %226

226:                                              ; preds = %217
  %227 = load i32, ptr %31, align 4, !tbaa !9
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %31, align 4, !tbaa !9
  br label %159, !llvm.loop !20

229:                                              ; preds = %159
  br label %230

230:                                              ; preds = %229, %137
  br label %231

231:                                              ; preds = %230
  %232 = load i32, ptr %30, align 4, !tbaa !9
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %30, align 4, !tbaa !9
  br label %131, !llvm.loop !21

234:                                              ; preds = %131
  %235 = load i32, ptr %32, align 4, !tbaa !9
  %236 = load i32, ptr %26, align 4, !tbaa !9
  %237 = sub nsw i32 %236, 1
  %238 = icmp ne i32 %235, %237
  br i1 %238, label %239, label %250

239:                                              ; preds = %234
  call void @llvm.lifetime.start.p0(i64 2048, ptr %47) #5
  %240 = getelementptr inbounds [2048 x i8], ptr %47, i64 0, i64 0
  %241 = load i32, ptr %32, align 4, !tbaa !9
  %242 = load i32, ptr %26, align 4, !tbaa !9
  %243 = sub nsw i32 %242, 1
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %240, ptr noundef @.str.257, i32 noundef %241, i32 noundef %243)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %48) #5
  %244 = getelementptr inbounds [2048 x i8], ptr %48, i64 0, i64 0
  %245 = getelementptr inbounds [2048 x i8], ptr %47, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %244, ptr noundef @.str.7, ptr noundef @.str.258, ptr noundef %245)
  %246 = load ptr, ptr %19, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.perturbs, ptr %246, i32 0, i32 186
  %248 = getelementptr inbounds [2048 x i8], ptr %247, i64 0, i64 0
  %249 = getelementptr inbounds [2048 x i8], ptr %48, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %248, ptr noundef @.str.2, ptr noundef @__func__.perturb_find_approximation_switches, i32 noundef 3436, ptr noundef %249)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %48) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %47) #5
  store i32 1, ptr %15, align 4
  store i32 1, ptr %43, align 4
  br label %886

250:                                              ; preds = %234
  store i32 1, ptr %32, align 4, !tbaa !9
  br label %251

251:                                              ; preds = %293, %250
  %252 = load i32, ptr %32, align 4, !tbaa !9
  %253 = load i32, ptr %26, align 4, !tbaa !9
  %254 = icmp slt i32 %252, %253
  br i1 %254, label %255, label %301

255:                                              ; preds = %251
  %256 = load double, ptr %24, align 8, !tbaa !11
  store double %256, ptr %39, align 8, !tbaa !11
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %257

257:                                              ; preds = %290, %255
  %258 = load i32, ptr %31, align 4, !tbaa !9
  %259 = load i32, ptr %26, align 4, !tbaa !9
  %260 = sub nsw i32 %259, 1
  %261 = icmp slt i32 %258, %260
  br i1 %261, label %262, label %293

262:                                              ; preds = %257
  %263 = load ptr, ptr %38, align 8, !tbaa !5
  %264 = load i32, ptr %31, align 4, !tbaa !9
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds double, ptr %263, i64 %265
  %267 = load double, ptr %266, align 8, !tbaa !11
  %268 = load ptr, ptr %28, align 8, !tbaa !5
  %269 = load i32, ptr %32, align 4, !tbaa !9
  %270 = sub nsw i32 %269, 1
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds double, ptr %268, i64 %271
  %273 = load double, ptr %272, align 8, !tbaa !11
  %274 = fcmp ogt double %267, %273
  br i1 %274, label %275, label %289

275:                                              ; preds = %262
  %276 = load ptr, ptr %38, align 8, !tbaa !5
  %277 = load i32, ptr %31, align 4, !tbaa !9
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds double, ptr %276, i64 %278
  %280 = load double, ptr %279, align 8, !tbaa !11
  %281 = load double, ptr %39, align 8, !tbaa !11
  %282 = fcmp olt double %280, %281
  br i1 %282, label %283, label %289

283:                                              ; preds = %275
  %284 = load ptr, ptr %38, align 8, !tbaa !5
  %285 = load i32, ptr %31, align 4, !tbaa !9
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds double, ptr %284, i64 %286
  %288 = load double, ptr %287, align 8, !tbaa !11
  store double %288, ptr %39, align 8, !tbaa !11
  br label %289

289:                                              ; preds = %283, %275, %262
  br label %290

290:                                              ; preds = %289
  %291 = load i32, ptr %31, align 4, !tbaa !9
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %31, align 4, !tbaa !9
  br label %257, !llvm.loop !22

293:                                              ; preds = %257
  %294 = load double, ptr %39, align 8, !tbaa !11
  %295 = load ptr, ptr %28, align 8, !tbaa !5
  %296 = load i32, ptr %32, align 4, !tbaa !9
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds double, ptr %295, i64 %297
  store double %294, ptr %298, align 8, !tbaa !11
  %299 = load i32, ptr %32, align 4, !tbaa !9
  %300 = add nsw i32 %299, 1
  store i32 %300, ptr %32, align 4, !tbaa !9
  br label %251, !llvm.loop !23

301:                                              ; preds = %251
  %302 = load double, ptr %24, align 8, !tbaa !11
  %303 = load ptr, ptr %28, align 8, !tbaa !5
  %304 = load i32, ptr %32, align 4, !tbaa !9
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds double, ptr %303, i64 %305
  store double %302, ptr %306, align 8, !tbaa !11
  %307 = load i32, ptr %32, align 4, !tbaa !9
  %308 = load i32, ptr %26, align 4, !tbaa !9
  %309 = icmp ne i32 %307, %308
  br i1 %309, label %310, label %318

310:                                              ; preds = %301
  call void @llvm.lifetime.start.p0(i64 2048, ptr %49) #5
  %311 = getelementptr inbounds [2048 x i8], ptr %49, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %311, ptr noundef @.str.259)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %50) #5
  %312 = getelementptr inbounds [2048 x i8], ptr %50, i64 0, i64 0
  %313 = getelementptr inbounds [2048 x i8], ptr %49, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %312, ptr noundef @.str.7, ptr noundef @.str.260, ptr noundef %313)
  %314 = load ptr, ptr %19, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.perturbs, ptr %314, i32 0, i32 186
  %316 = getelementptr inbounds [2048 x i8], ptr %315, i64 0, i64 0
  %317 = getelementptr inbounds [2048 x i8], ptr %50, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %316, ptr noundef @.str.2, ptr noundef @__func__.perturb_find_approximation_switches, i32 noundef 3459, ptr noundef %317)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %50) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %49) #5
  store i32 1, ptr %15, align 4
  store i32 1, ptr %43, align 4
  br label %886

318:                                              ; preds = %301
  store i32 1, ptr %31, align 4, !tbaa !9
  br label %319

319:                                              ; preds = %860, %318
  %320 = load i32, ptr %31, align 4, !tbaa !9
  %321 = load i32, ptr %26, align 4, !tbaa !9
  %322 = icmp slt i32 %320, %321
  br i1 %322, label %323, label %863

323:                                              ; preds = %319
  %324 = load ptr, ptr %16, align 8, !tbaa !5
  %325 = load ptr, ptr %17, align 8, !tbaa !5
  %326 = load ptr, ptr %18, align 8, !tbaa !5
  %327 = load ptr, ptr %19, align 8, !tbaa !5
  %328 = load i32, ptr %20, align 4, !tbaa !9
  %329 = load double, ptr %21, align 8, !tbaa !11
  %330 = load ptr, ptr %28, align 8, !tbaa !5
  %331 = load i32, ptr %31, align 4, !tbaa !9
  %332 = sext i32 %331 to i64
  %333 = getelementptr inbounds double, ptr %330, i64 %332
  %334 = load double, ptr %333, align 8, !tbaa !11
  %335 = load ptr, ptr %28, align 8, !tbaa !5
  %336 = load i32, ptr %31, align 4, !tbaa !9
  %337 = add nsw i32 %336, 1
  %338 = sext i32 %337 to i64
  %339 = getelementptr inbounds double, ptr %335, i64 %338
  %340 = load double, ptr %339, align 8, !tbaa !11
  %341 = fadd double %334, %340
  %342 = fmul double 5.000000e-01, %341
  %343 = load ptr, ptr %22, align 8, !tbaa !5
  %344 = call i32 @perturb_approximations(ptr noundef %324, ptr noundef %325, ptr noundef %326, ptr noundef %327, i32 noundef %328, double noundef %329, double noundef %342, ptr noundef %343)
  %345 = icmp eq i32 %344, 1
  br i1 %345, label %346, label %355

346:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 2048, ptr %51) #5
  %347 = getelementptr inbounds [2048 x i8], ptr %51, i64 0, i64 0
  %348 = load ptr, ptr %19, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.perturbs, ptr %348, i32 0, i32 186
  %350 = getelementptr inbounds [2048 x i8], ptr %349, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %347, ptr noundef @.str, ptr noundef @.str.261, ptr noundef %350)
  %351 = load ptr, ptr %19, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.perturbs, ptr %351, i32 0, i32 186
  %353 = getelementptr inbounds [2048 x i8], ptr %352, i64 0, i64 0
  %354 = getelementptr inbounds [2048 x i8], ptr %51, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %353, ptr noundef @.str.2, ptr noundef @__func__.perturb_find_approximation_switches, i32 noundef 3475, ptr noundef %354)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %51) #5
  store i32 1, ptr %15, align 4
  store i32 1, ptr %43, align 4
  br label %886

355:                                              ; preds = %323
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %356

356:                                              ; preds = %454, %355
  %357 = load i32, ptr %30, align 4, !tbaa !9
  %358 = load ptr, ptr %22, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.perturb_workspace, ptr %358, i32 0, i32 55
  %360 = load i32, ptr %359, align 8, !tbaa !13
  %361 = icmp slt i32 %357, %360
  br i1 %361, label %362, label %457

362:                                              ; preds = %356
  %363 = load ptr, ptr %22, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.perturb_workspace, ptr %363, i32 0, i32 56
  %365 = load ptr, ptr %364, align 8, !tbaa !16
  %366 = load i32, ptr %30, align 4, !tbaa !9
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds i32, ptr %365, i64 %367
  %369 = load i32, ptr %368, align 4, !tbaa !9
  %370 = load ptr, ptr %29, align 8, !tbaa !5
  %371 = load i32, ptr %31, align 4, !tbaa !9
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds ptr, ptr %370, i64 %372
  %374 = load ptr, ptr %373, align 8, !tbaa !5
  %375 = load i32, ptr %30, align 4, !tbaa !9
  %376 = sext i32 %375 to i64
  %377 = getelementptr inbounds i32, ptr %374, i64 %376
  store i32 %369, ptr %377, align 4, !tbaa !9
  %378 = load ptr, ptr %29, align 8, !tbaa !5
  %379 = load i32, ptr %31, align 4, !tbaa !9
  %380 = sext i32 %379 to i64
  %381 = getelementptr inbounds ptr, ptr %378, i64 %380
  %382 = load ptr, ptr %381, align 8, !tbaa !5
  %383 = load i32, ptr %30, align 4, !tbaa !9
  %384 = sext i32 %383 to i64
  %385 = getelementptr inbounds i32, ptr %382, i64 %384
  %386 = load i32, ptr %385, align 4, !tbaa !9
  %387 = load ptr, ptr %29, align 8, !tbaa !5
  %388 = load i32, ptr %31, align 4, !tbaa !9
  %389 = sub nsw i32 %388, 1
  %390 = sext i32 %389 to i64
  %391 = getelementptr inbounds ptr, ptr %387, i64 %390
  %392 = load ptr, ptr %391, align 8, !tbaa !5
  %393 = load i32, ptr %30, align 4, !tbaa !9
  %394 = sext i32 %393 to i64
  %395 = getelementptr inbounds i32, ptr %392, i64 %394
  %396 = load i32, ptr %395, align 4, !tbaa !9
  %397 = icmp slt i32 %386, %396
  br i1 %397, label %398, label %453

398:                                              ; preds = %362
  call void @llvm.lifetime.start.p0(i64 2048, ptr %52) #5
  %399 = getelementptr inbounds [2048 x i8], ptr %52, i64 0, i64 0
  %400 = load i32, ptr %30, align 4, !tbaa !9
  %401 = load ptr, ptr %29, align 8, !tbaa !5
  %402 = load i32, ptr %31, align 4, !tbaa !9
  %403 = sub nsw i32 %402, 1
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds ptr, ptr %401, i64 %404
  %406 = load ptr, ptr %405, align 8, !tbaa !5
  %407 = load i32, ptr %30, align 4, !tbaa !9
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds i32, ptr %406, i64 %408
  %410 = load i32, ptr %409, align 4, !tbaa !9
  %411 = load ptr, ptr %29, align 8, !tbaa !5
  %412 = load i32, ptr %31, align 4, !tbaa !9
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds ptr, ptr %411, i64 %413
  %415 = load ptr, ptr %414, align 8, !tbaa !5
  %416 = load i32, ptr %30, align 4, !tbaa !9
  %417 = sext i32 %416 to i64
  %418 = getelementptr inbounds i32, ptr %415, i64 %417
  %419 = load i32, ptr %418, align 4, !tbaa !9
  %420 = load double, ptr %21, align 8, !tbaa !11
  %421 = load ptr, ptr %28, align 8, !tbaa !5
  %422 = load i32, ptr %31, align 4, !tbaa !9
  %423 = sub nsw i32 %422, 1
  %424 = sext i32 %423 to i64
  %425 = getelementptr inbounds double, ptr %421, i64 %424
  %426 = load double, ptr %425, align 8, !tbaa !11
  %427 = load ptr, ptr %28, align 8, !tbaa !5
  %428 = load i32, ptr %31, align 4, !tbaa !9
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds double, ptr %427, i64 %429
  %431 = load double, ptr %430, align 8, !tbaa !11
  %432 = fadd double %426, %431
  %433 = fmul double 5.000000e-01, %432
  %434 = load ptr, ptr %28, align 8, !tbaa !5
  %435 = load i32, ptr %31, align 4, !tbaa !9
  %436 = sext i32 %435 to i64
  %437 = getelementptr inbounds double, ptr %434, i64 %436
  %438 = load double, ptr %437, align 8, !tbaa !11
  %439 = load ptr, ptr %28, align 8, !tbaa !5
  %440 = load i32, ptr %31, align 4, !tbaa !9
  %441 = add nsw i32 %440, 1
  %442 = sext i32 %441 to i64
  %443 = getelementptr inbounds double, ptr %439, i64 %442
  %444 = load double, ptr %443, align 8, !tbaa !11
  %445 = fadd double %438, %444
  %446 = fmul double 5.000000e-01, %445
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %399, ptr noundef @.str.262, i32 noundef %400, i32 noundef %410, i32 noundef %419, double noundef %420, double noundef %433, double noundef %446)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %53) #5
  %447 = getelementptr inbounds [2048 x i8], ptr %53, i64 0, i64 0
  %448 = getelementptr inbounds [2048 x i8], ptr %52, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %447, ptr noundef @.str.7, ptr noundef @.str.263, ptr noundef %448)
  %449 = load ptr, ptr %19, align 8, !tbaa !5
  %450 = getelementptr inbounds %struct.perturbs, ptr %449, i32 0, i32 186
  %451 = getelementptr inbounds [2048 x i8], ptr %450, i64 0, i64 0
  %452 = getelementptr inbounds [2048 x i8], ptr %53, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %451, ptr noundef @.str.2, ptr noundef @__func__.perturb_find_approximation_switches, i32 noundef 3492, ptr noundef %452)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %53) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %52) #5
  store i32 1, ptr %15, align 4
  store i32 1, ptr %43, align 4
  br label %886

453:                                              ; preds = %362
  br label %454

454:                                              ; preds = %453
  %455 = load i32, ptr %30, align 4, !tbaa !9
  %456 = add nsw i32 %455, 1
  store i32 %456, ptr %30, align 4, !tbaa !9
  br label %356, !llvm.loop !24

457:                                              ; preds = %356
  store i32 0, ptr %41, align 4, !tbaa !9
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %458

458:                                              ; preds = %489, %457
  %459 = load i32, ptr %30, align 4, !tbaa !9
  %460 = load ptr, ptr %22, align 8, !tbaa !5
  %461 = getelementptr inbounds %struct.perturb_workspace, ptr %460, i32 0, i32 55
  %462 = load i32, ptr %461, align 8, !tbaa !13
  %463 = icmp slt i32 %459, %462
  br i1 %463, label %464, label %492

464:                                              ; preds = %458
  %465 = load ptr, ptr %29, align 8, !tbaa !5
  %466 = load i32, ptr %31, align 4, !tbaa !9
  %467 = sext i32 %466 to i64
  %468 = getelementptr inbounds ptr, ptr %465, i64 %467
  %469 = load ptr, ptr %468, align 8, !tbaa !5
  %470 = load i32, ptr %30, align 4, !tbaa !9
  %471 = sext i32 %470 to i64
  %472 = getelementptr inbounds i32, ptr %469, i64 %471
  %473 = load i32, ptr %472, align 4, !tbaa !9
  %474 = load ptr, ptr %29, align 8, !tbaa !5
  %475 = load i32, ptr %31, align 4, !tbaa !9
  %476 = sub nsw i32 %475, 1
  %477 = sext i32 %476 to i64
  %478 = getelementptr inbounds ptr, ptr %474, i64 %477
  %479 = load ptr, ptr %478, align 8, !tbaa !5
  %480 = load i32, ptr %30, align 4, !tbaa !9
  %481 = sext i32 %480 to i64
  %482 = getelementptr inbounds i32, ptr %479, i64 %481
  %483 = load i32, ptr %482, align 4, !tbaa !9
  %484 = icmp ne i32 %473, %483
  br i1 %484, label %485, label %488

485:                                              ; preds = %464
  %486 = load i32, ptr %41, align 4, !tbaa !9
  %487 = add nsw i32 %486, 1
  store i32 %487, ptr %41, align 4, !tbaa !9
  br label %488

488:                                              ; preds = %485, %464
  br label %489

489:                                              ; preds = %488
  %490 = load i32, ptr %30, align 4, !tbaa !9
  %491 = add nsw i32 %490, 1
  store i32 %491, ptr %30, align 4, !tbaa !9
  br label %458, !llvm.loop !25

492:                                              ; preds = %458
  %493 = load i32, ptr %41, align 4, !tbaa !9
  %494 = icmp ne i32 %493, 1
  br i1 %494, label %495, label %510

495:                                              ; preds = %492
  call void @llvm.lifetime.start.p0(i64 2048, ptr %54) #5
  %496 = getelementptr inbounds [2048 x i8], ptr %54, i64 0, i64 0
  %497 = load double, ptr %21, align 8, !tbaa !11
  %498 = load ptr, ptr %28, align 8, !tbaa !5
  %499 = load i32, ptr %31, align 4, !tbaa !9
  %500 = sext i32 %499 to i64
  %501 = getelementptr inbounds double, ptr %498, i64 %500
  %502 = load double, ptr %501, align 8, !tbaa !11
  %503 = load i32, ptr %41, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %496, ptr noundef @.str.264, double noundef %497, double noundef %502, i32 noundef %503)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %55) #5
  %504 = getelementptr inbounds [2048 x i8], ptr %55, i64 0, i64 0
  %505 = getelementptr inbounds [2048 x i8], ptr %54, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %504, ptr noundef @.str.7, ptr noundef @.str.265, ptr noundef %505)
  %506 = load ptr, ptr %19, align 8, !tbaa !5
  %507 = getelementptr inbounds %struct.perturbs, ptr %506, i32 0, i32 186
  %508 = getelementptr inbounds [2048 x i8], ptr %507, i64 0, i64 0
  %509 = getelementptr inbounds [2048 x i8], ptr %55, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %508, ptr noundef @.str.2, ptr noundef @__func__.perturb_find_approximation_switches, i32 noundef 3506, ptr noundef %509)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %55) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %54) #5
  store i32 1, ptr %15, align 4
  store i32 1, ptr %43, align 4
  br label %886

510:                                              ; preds = %492
  %511 = load ptr, ptr %19, align 8, !tbaa !5
  %512 = getelementptr inbounds %struct.perturbs, ptr %511, i32 0, i32 185
  %513 = load i16, ptr %512, align 8, !tbaa !26
  %514 = sext i16 %513 to i32
  %515 = icmp sgt i32 %514, 2
  br i1 %515, label %516, label %859

516:                                              ; preds = %510
  %517 = load ptr, ptr %19, align 8, !tbaa !5
  %518 = getelementptr inbounds %struct.perturbs, ptr %517, i32 0, i32 2
  %519 = load i16, ptr %518, align 4, !tbaa !28
  %520 = sext i16 %519 to i32
  %521 = icmp eq i32 %520, 1
  br i1 %521, label %522, label %773

522:                                              ; preds = %516
  %523 = load i32, ptr %20, align 4, !tbaa !9
  %524 = load ptr, ptr %19, align 8, !tbaa !5
  %525 = getelementptr inbounds %struct.perturbs, ptr %524, i32 0, i32 56
  %526 = load i32, ptr %525, align 4, !tbaa !29
  %527 = icmp eq i32 %523, %526
  br i1 %527, label %528, label %773

528:                                              ; preds = %522
  %529 = load ptr, ptr %29, align 8, !tbaa !5
  %530 = load i32, ptr %31, align 4, !tbaa !9
  %531 = sub nsw i32 %530, 1
  %532 = sext i32 %531 to i64
  %533 = getelementptr inbounds ptr, ptr %529, i64 %532
  %534 = load ptr, ptr %533, align 8, !tbaa !5
  %535 = load ptr, ptr %22, align 8, !tbaa !5
  %536 = getelementptr inbounds %struct.perturb_workspace, ptr %535, i32 0, i32 49
  %537 = load i32, ptr %536, align 8, !tbaa !30
  %538 = sext i32 %537 to i64
  %539 = getelementptr inbounds i32, ptr %534, i64 %538
  %540 = load i32, ptr %539, align 4, !tbaa !9
  %541 = icmp eq i32 %540, 0
  br i1 %541, label %542, label %564

542:                                              ; preds = %528
  %543 = load ptr, ptr %29, align 8, !tbaa !5
  %544 = load i32, ptr %31, align 4, !tbaa !9
  %545 = sext i32 %544 to i64
  %546 = getelementptr inbounds ptr, ptr %543, i64 %545
  %547 = load ptr, ptr %546, align 8, !tbaa !5
  %548 = load ptr, ptr %22, align 8, !tbaa !5
  %549 = getelementptr inbounds %struct.perturb_workspace, ptr %548, i32 0, i32 49
  %550 = load i32, ptr %549, align 8, !tbaa !30
  %551 = sext i32 %550 to i64
  %552 = getelementptr inbounds i32, ptr %547, i64 %551
  %553 = load i32, ptr %552, align 4, !tbaa !9
  %554 = icmp eq i32 %553, 1
  br i1 %554, label %555, label %564

555:                                              ; preds = %542
  %556 = load ptr, ptr @stdout, align 8, !tbaa !5
  %557 = load double, ptr %21, align 8, !tbaa !11
  %558 = load ptr, ptr %28, align 8, !tbaa !5
  %559 = load i32, ptr %31, align 4, !tbaa !9
  %560 = sext i32 %559 to i64
  %561 = getelementptr inbounds double, ptr %558, i64 %560
  %562 = load double, ptr %561, align 8, !tbaa !11
  %563 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %556, ptr noundef @.str.266, double noundef %557, double noundef %562) #5
  br label %564

564:                                              ; preds = %555, %542, %528
  %565 = load ptr, ptr %29, align 8, !tbaa !5
  %566 = load i32, ptr %31, align 4, !tbaa !9
  %567 = sub nsw i32 %566, 1
  %568 = sext i32 %567 to i64
  %569 = getelementptr inbounds ptr, ptr %565, i64 %568
  %570 = load ptr, ptr %569, align 8, !tbaa !5
  %571 = load ptr, ptr %22, align 8, !tbaa !5
  %572 = getelementptr inbounds %struct.perturb_workspace, ptr %571, i32 0, i32 50
  %573 = load i32, ptr %572, align 4, !tbaa !31
  %574 = sext i32 %573 to i64
  %575 = getelementptr inbounds i32, ptr %570, i64 %574
  %576 = load i32, ptr %575, align 4, !tbaa !9
  %577 = icmp eq i32 %576, 0
  br i1 %577, label %578, label %600

578:                                              ; preds = %564
  %579 = load ptr, ptr %29, align 8, !tbaa !5
  %580 = load i32, ptr %31, align 4, !tbaa !9
  %581 = sext i32 %580 to i64
  %582 = getelementptr inbounds ptr, ptr %579, i64 %581
  %583 = load ptr, ptr %582, align 8, !tbaa !5
  %584 = load ptr, ptr %22, align 8, !tbaa !5
  %585 = getelementptr inbounds %struct.perturb_workspace, ptr %584, i32 0, i32 50
  %586 = load i32, ptr %585, align 4, !tbaa !31
  %587 = sext i32 %586 to i64
  %588 = getelementptr inbounds i32, ptr %583, i64 %587
  %589 = load i32, ptr %588, align 4, !tbaa !9
  %590 = icmp eq i32 %589, 1
  br i1 %590, label %591, label %600

591:                                              ; preds = %578
  %592 = load ptr, ptr @stdout, align 8, !tbaa !5
  %593 = load double, ptr %21, align 8, !tbaa !11
  %594 = load ptr, ptr %28, align 8, !tbaa !5
  %595 = load i32, ptr %31, align 4, !tbaa !9
  %596 = sext i32 %595 to i64
  %597 = getelementptr inbounds double, ptr %594, i64 %596
  %598 = load double, ptr %597, align 8, !tbaa !11
  %599 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %592, ptr noundef @.str.267, double noundef %593, double noundef %598) #5
  br label %600

600:                                              ; preds = %591, %578, %564
  %601 = load ptr, ptr %17, align 8, !tbaa !5
  %602 = getelementptr inbounds %struct.background, ptr %601, i32 0, i32 127
  %603 = load i16, ptr %602, align 4, !tbaa !32
  %604 = sext i16 %603 to i32
  %605 = icmp eq i32 %604, 1
  br i1 %605, label %606, label %643

606:                                              ; preds = %600
  %607 = load ptr, ptr %29, align 8, !tbaa !5
  %608 = load i32, ptr %31, align 4, !tbaa !9
  %609 = sub nsw i32 %608, 1
  %610 = sext i32 %609 to i64
  %611 = getelementptr inbounds ptr, ptr %607, i64 %610
  %612 = load ptr, ptr %611, align 8, !tbaa !5
  %613 = load ptr, ptr %22, align 8, !tbaa !5
  %614 = getelementptr inbounds %struct.perturb_workspace, ptr %613, i32 0, i32 52
  %615 = load i32, ptr %614, align 4, !tbaa !34
  %616 = sext i32 %615 to i64
  %617 = getelementptr inbounds i32, ptr %612, i64 %616
  %618 = load i32, ptr %617, align 4, !tbaa !9
  %619 = icmp eq i32 %618, 0
  br i1 %619, label %620, label %642

620:                                              ; preds = %606
  %621 = load ptr, ptr %29, align 8, !tbaa !5
  %622 = load i32, ptr %31, align 4, !tbaa !9
  %623 = sext i32 %622 to i64
  %624 = getelementptr inbounds ptr, ptr %621, i64 %623
  %625 = load ptr, ptr %624, align 8, !tbaa !5
  %626 = load ptr, ptr %22, align 8, !tbaa !5
  %627 = getelementptr inbounds %struct.perturb_workspace, ptr %626, i32 0, i32 52
  %628 = load i32, ptr %627, align 4, !tbaa !34
  %629 = sext i32 %628 to i64
  %630 = getelementptr inbounds i32, ptr %625, i64 %629
  %631 = load i32, ptr %630, align 4, !tbaa !9
  %632 = icmp eq i32 %631, 1
  br i1 %632, label %633, label %642

633:                                              ; preds = %620
  %634 = load ptr, ptr @stdout, align 8, !tbaa !5
  %635 = load double, ptr %21, align 8, !tbaa !11
  %636 = load ptr, ptr %28, align 8, !tbaa !5
  %637 = load i32, ptr %31, align 4, !tbaa !9
  %638 = sext i32 %637 to i64
  %639 = getelementptr inbounds double, ptr %636, i64 %638
  %640 = load double, ptr %639, align 8, !tbaa !11
  %641 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %634, ptr noundef @.str.268, double noundef %635, double noundef %640) #5
  br label %642

642:                                              ; preds = %633, %620, %606
  br label %643

643:                                              ; preds = %642, %600
  %644 = load ptr, ptr %17, align 8, !tbaa !5
  %645 = getelementptr inbounds %struct.background, ptr %644, i32 0, i32 128
  %646 = load i16, ptr %645, align 2, !tbaa !35
  %647 = sext i16 %646 to i32
  %648 = icmp eq i32 %647, 1
  br i1 %648, label %649, label %686

649:                                              ; preds = %643
  %650 = load ptr, ptr %29, align 8, !tbaa !5
  %651 = load i32, ptr %31, align 4, !tbaa !9
  %652 = sub nsw i32 %651, 1
  %653 = sext i32 %652 to i64
  %654 = getelementptr inbounds ptr, ptr %650, i64 %653
  %655 = load ptr, ptr %654, align 8, !tbaa !5
  %656 = load ptr, ptr %22, align 8, !tbaa !5
  %657 = getelementptr inbounds %struct.perturb_workspace, ptr %656, i32 0, i32 51
  %658 = load i32, ptr %657, align 8, !tbaa !36
  %659 = sext i32 %658 to i64
  %660 = getelementptr inbounds i32, ptr %655, i64 %659
  %661 = load i32, ptr %660, align 4, !tbaa !9
  %662 = icmp eq i32 %661, 0
  br i1 %662, label %663, label %685

663:                                              ; preds = %649
  %664 = load ptr, ptr %29, align 8, !tbaa !5
  %665 = load i32, ptr %31, align 4, !tbaa !9
  %666 = sext i32 %665 to i64
  %667 = getelementptr inbounds ptr, ptr %664, i64 %666
  %668 = load ptr, ptr %667, align 8, !tbaa !5
  %669 = load ptr, ptr %22, align 8, !tbaa !5
  %670 = getelementptr inbounds %struct.perturb_workspace, ptr %669, i32 0, i32 51
  %671 = load i32, ptr %670, align 8, !tbaa !36
  %672 = sext i32 %671 to i64
  %673 = getelementptr inbounds i32, ptr %668, i64 %672
  %674 = load i32, ptr %673, align 4, !tbaa !9
  %675 = icmp eq i32 %674, 1
  br i1 %675, label %676, label %685

676:                                              ; preds = %663
  %677 = load ptr, ptr @stdout, align 8, !tbaa !5
  %678 = load double, ptr %21, align 8, !tbaa !11
  %679 = load ptr, ptr %28, align 8, !tbaa !5
  %680 = load i32, ptr %31, align 4, !tbaa !9
  %681 = sext i32 %680 to i64
  %682 = getelementptr inbounds double, ptr %679, i64 %681
  %683 = load double, ptr %682, align 8, !tbaa !11
  %684 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %677, ptr noundef @.str.269, double noundef %678, double noundef %683) #5
  br label %685

685:                                              ; preds = %676, %663, %649
  br label %686

686:                                              ; preds = %685, %643
  %687 = load ptr, ptr %17, align 8, !tbaa !5
  %688 = getelementptr inbounds %struct.background, ptr %687, i32 0, i32 126
  %689 = load i16, ptr %688, align 2, !tbaa !37
  %690 = sext i16 %689 to i32
  %691 = icmp eq i32 %690, 1
  br i1 %691, label %692, label %729

692:                                              ; preds = %686
  %693 = load ptr, ptr %29, align 8, !tbaa !5
  %694 = load i32, ptr %31, align 4, !tbaa !9
  %695 = sub nsw i32 %694, 1
  %696 = sext i32 %695 to i64
  %697 = getelementptr inbounds ptr, ptr %693, i64 %696
  %698 = load ptr, ptr %697, align 8, !tbaa !5
  %699 = load ptr, ptr %22, align 8, !tbaa !5
  %700 = getelementptr inbounds %struct.perturb_workspace, ptr %699, i32 0, i32 53
  %701 = load i32, ptr %700, align 8, !tbaa !38
  %702 = sext i32 %701 to i64
  %703 = getelementptr inbounds i32, ptr %698, i64 %702
  %704 = load i32, ptr %703, align 4, !tbaa !9
  %705 = icmp eq i32 %704, 0
  br i1 %705, label %706, label %728

706:                                              ; preds = %692
  %707 = load ptr, ptr %29, align 8, !tbaa !5
  %708 = load i32, ptr %31, align 4, !tbaa !9
  %709 = sext i32 %708 to i64
  %710 = getelementptr inbounds ptr, ptr %707, i64 %709
  %711 = load ptr, ptr %710, align 8, !tbaa !5
  %712 = load ptr, ptr %22, align 8, !tbaa !5
  %713 = getelementptr inbounds %struct.perturb_workspace, ptr %712, i32 0, i32 53
  %714 = load i32, ptr %713, align 8, !tbaa !38
  %715 = sext i32 %714 to i64
  %716 = getelementptr inbounds i32, ptr %711, i64 %715
  %717 = load i32, ptr %716, align 4, !tbaa !9
  %718 = icmp eq i32 %717, 1
  br i1 %718, label %719, label %728

719:                                              ; preds = %706
  %720 = load ptr, ptr @stdout, align 8, !tbaa !5
  %721 = load double, ptr %21, align 8, !tbaa !11
  %722 = load ptr, ptr %28, align 8, !tbaa !5
  %723 = load i32, ptr %31, align 4, !tbaa !9
  %724 = sext i32 %723 to i64
  %725 = getelementptr inbounds double, ptr %722, i64 %724
  %726 = load double, ptr %725, align 8, !tbaa !11
  %727 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %720, ptr noundef @.str.270, double noundef %721, double noundef %726) #5
  br label %728

728:                                              ; preds = %719, %706, %692
  br label %729

729:                                              ; preds = %728, %686
  %730 = load ptr, ptr %17, align 8, !tbaa !5
  %731 = getelementptr inbounds %struct.background, ptr %730, i32 0, i32 123
  %732 = load i16, ptr %731, align 4, !tbaa !39
  %733 = sext i16 %732 to i32
  %734 = icmp eq i32 %733, 1
  br i1 %734, label %735, label %772

735:                                              ; preds = %729
  %736 = load ptr, ptr %29, align 8, !tbaa !5
  %737 = load i32, ptr %31, align 4, !tbaa !9
  %738 = sub nsw i32 %737, 1
  %739 = sext i32 %738 to i64
  %740 = getelementptr inbounds ptr, ptr %736, i64 %739
  %741 = load ptr, ptr %740, align 8, !tbaa !5
  %742 = load ptr, ptr %22, align 8, !tbaa !5
  %743 = getelementptr inbounds %struct.perturb_workspace, ptr %742, i32 0, i32 54
  %744 = load i32, ptr %743, align 4, !tbaa !40
  %745 = sext i32 %744 to i64
  %746 = getelementptr inbounds i32, ptr %741, i64 %745
  %747 = load i32, ptr %746, align 4, !tbaa !9
  %748 = icmp eq i32 %747, 0
  br i1 %748, label %749, label %771

749:                                              ; preds = %735
  %750 = load ptr, ptr %29, align 8, !tbaa !5
  %751 = load i32, ptr %31, align 4, !tbaa !9
  %752 = sext i32 %751 to i64
  %753 = getelementptr inbounds ptr, ptr %750, i64 %752
  %754 = load ptr, ptr %753, align 8, !tbaa !5
  %755 = load ptr, ptr %22, align 8, !tbaa !5
  %756 = getelementptr inbounds %struct.perturb_workspace, ptr %755, i32 0, i32 54
  %757 = load i32, ptr %756, align 4, !tbaa !40
  %758 = sext i32 %757 to i64
  %759 = getelementptr inbounds i32, ptr %754, i64 %758
  %760 = load i32, ptr %759, align 4, !tbaa !9
  %761 = icmp eq i32 %760, 1
  br i1 %761, label %762, label %771

762:                                              ; preds = %749
  %763 = load ptr, ptr @stdout, align 8, !tbaa !5
  %764 = load double, ptr %21, align 8, !tbaa !11
  %765 = load ptr, ptr %28, align 8, !tbaa !5
  %766 = load i32, ptr %31, align 4, !tbaa !9
  %767 = sext i32 %766 to i64
  %768 = getelementptr inbounds double, ptr %765, i64 %767
  %769 = load double, ptr %768, align 8, !tbaa !11
  %770 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %763, ptr noundef @.str.271, double noundef %764, double noundef %769) #5
  br label %771

771:                                              ; preds = %762, %749, %735
  br label %772

772:                                              ; preds = %771, %729
  br label %773

773:                                              ; preds = %772, %522, %516
  %774 = load ptr, ptr %19, align 8, !tbaa !5
  %775 = getelementptr inbounds %struct.perturbs, ptr %774, i32 0, i32 4
  %776 = load i16, ptr %775, align 8, !tbaa !41
  %777 = sext i16 %776 to i32
  %778 = icmp eq i32 %777, 1
  br i1 %778, label %779, label %858

779:                                              ; preds = %773
  %780 = load i32, ptr %20, align 4, !tbaa !9
  %781 = load ptr, ptr %19, align 8, !tbaa !5
  %782 = getelementptr inbounds %struct.perturbs, ptr %781, i32 0, i32 57
  %783 = load i32, ptr %782, align 8, !tbaa !42
  %784 = icmp eq i32 %780, %783
  br i1 %784, label %785, label %858

785:                                              ; preds = %779
  %786 = load ptr, ptr %29, align 8, !tbaa !5
  %787 = load i32, ptr %31, align 4, !tbaa !9
  %788 = sub nsw i32 %787, 1
  %789 = sext i32 %788 to i64
  %790 = getelementptr inbounds ptr, ptr %786, i64 %789
  %791 = load ptr, ptr %790, align 8, !tbaa !5
  %792 = load ptr, ptr %22, align 8, !tbaa !5
  %793 = getelementptr inbounds %struct.perturb_workspace, ptr %792, i32 0, i32 49
  %794 = load i32, ptr %793, align 8, !tbaa !30
  %795 = sext i32 %794 to i64
  %796 = getelementptr inbounds i32, ptr %791, i64 %795
  %797 = load i32, ptr %796, align 4, !tbaa !9
  %798 = icmp eq i32 %797, 0
  br i1 %798, label %799, label %821

799:                                              ; preds = %785
  %800 = load ptr, ptr %29, align 8, !tbaa !5
  %801 = load i32, ptr %31, align 4, !tbaa !9
  %802 = sext i32 %801 to i64
  %803 = getelementptr inbounds ptr, ptr %800, i64 %802
  %804 = load ptr, ptr %803, align 8, !tbaa !5
  %805 = load ptr, ptr %22, align 8, !tbaa !5
  %806 = getelementptr inbounds %struct.perturb_workspace, ptr %805, i32 0, i32 49
  %807 = load i32, ptr %806, align 8, !tbaa !30
  %808 = sext i32 %807 to i64
  %809 = getelementptr inbounds i32, ptr %804, i64 %808
  %810 = load i32, ptr %809, align 4, !tbaa !9
  %811 = icmp eq i32 %810, 1
  br i1 %811, label %812, label %821

812:                                              ; preds = %799
  %813 = load ptr, ptr @stdout, align 8, !tbaa !5
  %814 = load double, ptr %21, align 8, !tbaa !11
  %815 = load ptr, ptr %28, align 8, !tbaa !5
  %816 = load i32, ptr %31, align 4, !tbaa !9
  %817 = sext i32 %816 to i64
  %818 = getelementptr inbounds double, ptr %815, i64 %817
  %819 = load double, ptr %818, align 8, !tbaa !11
  %820 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %813, ptr noundef @.str.272, double noundef %814, double noundef %819) #5
  br label %821

821:                                              ; preds = %812, %799, %785
  %822 = load ptr, ptr %29, align 8, !tbaa !5
  %823 = load i32, ptr %31, align 4, !tbaa !9
  %824 = sub nsw i32 %823, 1
  %825 = sext i32 %824 to i64
  %826 = getelementptr inbounds ptr, ptr %822, i64 %825
  %827 = load ptr, ptr %826, align 8, !tbaa !5
  %828 = load ptr, ptr %22, align 8, !tbaa !5
  %829 = getelementptr inbounds %struct.perturb_workspace, ptr %828, i32 0, i32 50
  %830 = load i32, ptr %829, align 4, !tbaa !31
  %831 = sext i32 %830 to i64
  %832 = getelementptr inbounds i32, ptr %827, i64 %831
  %833 = load i32, ptr %832, align 4, !tbaa !9
  %834 = icmp eq i32 %833, 0
  br i1 %834, label %835, label %857

835:                                              ; preds = %821
  %836 = load ptr, ptr %29, align 8, !tbaa !5
  %837 = load i32, ptr %31, align 4, !tbaa !9
  %838 = sext i32 %837 to i64
  %839 = getelementptr inbounds ptr, ptr %836, i64 %838
  %840 = load ptr, ptr %839, align 8, !tbaa !5
  %841 = load ptr, ptr %22, align 8, !tbaa !5
  %842 = getelementptr inbounds %struct.perturb_workspace, ptr %841, i32 0, i32 50
  %843 = load i32, ptr %842, align 4, !tbaa !31
  %844 = sext i32 %843 to i64
  %845 = getelementptr inbounds i32, ptr %840, i64 %844
  %846 = load i32, ptr %845, align 4, !tbaa !9
  %847 = icmp eq i32 %846, 1
  br i1 %847, label %848, label %857

848:                                              ; preds = %835
  %849 = load ptr, ptr @stdout, align 8, !tbaa !5
  %850 = load double, ptr %21, align 8, !tbaa !11
  %851 = load ptr, ptr %28, align 8, !tbaa !5
  %852 = load i32, ptr %31, align 4, !tbaa !9
  %853 = sext i32 %852 to i64
  %854 = getelementptr inbounds double, ptr %851, i64 %853
  %855 = load double, ptr %854, align 8, !tbaa !11
  %856 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %849, ptr noundef @.str.273, double noundef %850, double noundef %855) #5
  br label %857

857:                                              ; preds = %848, %835, %821
  br label %858

858:                                              ; preds = %857, %779, %773
  br label %859

859:                                              ; preds = %858, %510
  br label %860

860:                                              ; preds = %859
  %861 = load i32, ptr %31, align 4, !tbaa !9
  %862 = add nsw i32 %861, 1
  store i32 %862, ptr %31, align 4, !tbaa !9
  br label %319, !llvm.loop !43

863:                                              ; preds = %319
  %864 = load ptr, ptr %38, align 8, !tbaa !5
  call void @free(ptr noundef %864) #5
  %865 = load ptr, ptr %16, align 8, !tbaa !5
  %866 = load ptr, ptr %17, align 8, !tbaa !5
  %867 = load ptr, ptr %18, align 8, !tbaa !5
  %868 = load ptr, ptr %19, align 8, !tbaa !5
  %869 = load i32, ptr %20, align 4, !tbaa !9
  %870 = load double, ptr %21, align 8, !tbaa !11
  %871 = load double, ptr %24, align 8, !tbaa !11
  %872 = load ptr, ptr %22, align 8, !tbaa !5
  %873 = call i32 @perturb_approximations(ptr noundef %865, ptr noundef %866, ptr noundef %867, ptr noundef %868, i32 noundef %869, double noundef %870, double noundef %871, ptr noundef %872)
  %874 = icmp eq i32 %873, 1
  br i1 %874, label %875, label %884

875:                                              ; preds = %863
  call void @llvm.lifetime.start.p0(i64 2048, ptr %56) #5
  %876 = getelementptr inbounds [2048 x i8], ptr %56, i64 0, i64 0
  %877 = load ptr, ptr %19, align 8, !tbaa !5
  %878 = getelementptr inbounds %struct.perturbs, ptr %877, i32 0, i32 186
  %879 = getelementptr inbounds [2048 x i8], ptr %878, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %876, ptr noundef @.str, ptr noundef @.str.252, ptr noundef %879)
  %880 = load ptr, ptr %19, align 8, !tbaa !5
  %881 = getelementptr inbounds %struct.perturbs, ptr %880, i32 0, i32 186
  %882 = getelementptr inbounds [2048 x i8], ptr %881, i64 0, i64 0
  %883 = getelementptr inbounds [2048 x i8], ptr %56, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %882, ptr noundef @.str.2, ptr noundef @__func__.perturb_find_approximation_switches, i32 noundef 3573, ptr noundef %883)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %56) #5
  store i32 1, ptr %15, align 4
  store i32 1, ptr %43, align 4
  br label %886

884:                                              ; preds = %863
  br label %885

885:                                              ; preds = %884, %106
  store i32 0, ptr %15, align 4
  store i32 1, ptr %43, align 4
  br label %886

886:                                              ; preds = %885, %875, %495, %398, %346, %310, %239, %187, %118, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  %887 = load i32, ptr %15, align 4
  ret i32 %887
}

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

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 = { nounwind }
attributes #6 = { 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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 360}
!14 = !{!"perturb_workspace", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !12, i64 184, !12, i64 192, !12, i64 200, !12, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !6, i64 312, !10, i64 320, !15, 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, !6, i64 368, !10, i64 376, !6, i64 384}
!15 = !{!"short", !7, i64 0}
!16 = !{!14, !6, i64 368}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = !{!27, !15, i64 27608}
!27 = !{!"perturbs", !15, i64 0, !15, i64 2, !15, i64 4, !15, i64 6, !15, i64 8, !15, i64 10, !15, i64 12, !15, i64 14, !15, i64 16, !15, i64 18, !15, i64 20, !10, i64 24, !15, i64 28, !15, i64 30, !15, i64 32, !15, i64 34, !15, i64 36, !15, i64 38, !15, i64 40, !15, i64 42, !15, i64 44, !15, i64 46, !15, i64 48, !15, i64 50, !15, i64 52, !15, i64 54, !15, i64 56, !15, i64 58, !15, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !12, 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, !12, i64 1720, !10, i64 1728, !10, i64 1732, !7, i64 1736, !12, i64 1976, !12, i64 1984, !12, i64 1992, !6, i64 2000, !6, i64 2008, !10, i64 2016, !15, i64 2020, !15, 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, !15, i64 2080, !15, i64 2082, !15, i64 2084, !15, i64 2086, !15, i64 2088, !15, i64 2090, !15, i64 2092, !15, i64 2094, !15, i64 2096, !15, i64 2098, !15, i64 2100, !15, i64 2102, !15, i64 2104, !15, i64 2106, !15, i64 2108, !15, i64 2110, !15, i64 2112, !15, i64 2114, !15, i64 2116, !15, i64 2118, !15, i64 2120, !15, i64 2122, !15, i64 2124, !15, i64 2126, !15, i64 2128, !15, i64 2130, !15, i64 2132, !15, i64 2134, !15, i64 2136, !15, i64 2138, !15, i64 2140, !15, i64 2142, !15, i64 2144, !15, i64 2146, !15, i64 2148, !15, i64 2150, !15, i64 2152, !15, i64 2154, !15, i64 2156, !15, 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, !12, i64 2376, !12, i64 2384, !6, i64 2392, !10, i64 2400, !12, i64 2408, !12, i64 2416, !12, 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, !15, i64 27608, !7, i64 27610}
!28 = !{!27, !15, i64 4}
!29 = !{!27, !10, i64 2028}
!30 = !{!14, !10, i64 336}
!31 = !{!14, !10, i64 340}
!32 = !{!33, !15, i64 740}
!33 = !{!"background", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !10, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !15, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !15, i64 176, !12, i64 184, !12, i64 192, !6, i64 200, !10, i64 208, !10, i64 212, !12, i64 216, !10, i64 224, !6, i64 232, !6, i64 240, !12, i64 248, !6, i64 256, !12, i64 264, !6, i64 272, !12, i64 280, !6, i64 288, !12, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !12, i64 328, !12, i64 336, !12, i64 344, !12, i64 352, !10, i64 360, !6, i64 368, !12, i64 376, !12, i64 384, !12, i64 392, !12, i64 400, !12, i64 408, !12, i64 416, !12, i64 424, !12, i64 432, !12, i64 440, !12, i64 448, !12, 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, !15, i64 724, !15, i64 726, !15, i64 728, !15, i64 730, !15, i64 732, !15, i64 734, !15, i64 736, !15, i64 738, !15, i64 740, !15, i64 742, !15, 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, !15, i64 840, !15, i64 842, !15, i64 844, !15, i64 846, !15, i64 848, !15, i64 850, !7, i64 852, !15, i64 2900, !7, i64 2902}
!34 = !{!14, !10, i64 348}
!35 = !{!33, !15, i64 742}
!36 = !{!14, !10, i64 344}
!37 = !{!33, !15, i64 738}
!38 = !{!14, !10, i64 352}
!39 = !{!33, !15, i64 732}
!40 = !{!14, !10, i64 356}
!41 = !{!27, !15, i64 8}
!42 = !{!27, !10, i64 2032}
!43 = distinct !{!43, !18}


; 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
@stdout = external local_unnamed_addr global ptr, align 8
@.str.251 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.252 = external hidden unnamed_addr constant [70 x i8], align 1
@__func__.perturb_find_approximation_switches = external hidden unnamed_addr constant [36 x i8], align 1
@.str.255 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.256 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.257 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.258 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.259 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.260 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.261 = external hidden unnamed_addr constant [128 x i8], align 1
@.str.262 = external hidden unnamed_addr constant [151 x i8], align 1
@.str.263 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.264 = external hidden unnamed_addr constant [199 x i8], align 1
@.str.265 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.266 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.267 = external hidden unnamed_addr constant [71 x i8], align 1
@.str.268 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.269 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.270 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.271 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.272 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.273 = external hidden unnamed_addr constant [83 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: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @perturb_find_approximation_switches(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, double noundef %5, ptr noundef %6, double noundef %7, double noundef %8, double noundef %9, i32 noundef %10, ptr nocapture noundef readonly %11, ptr nocapture noundef %12, ptr nocapture noundef readonly %13) local_unnamed_addr #5 {
  %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
  store double %7, ptr %12, align 8, !tbaa !5
  %28 = tail call i32 @perturb_approximations(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, double noundef %5, double noundef %7, ptr noundef %6)
  %29 = icmp eq i32 %28, 1
  br i1 %29, label %36, label %.preheader289

.preheader289:                                    ; preds = %14
  %30 = getelementptr inbounds i8, ptr %6, i64 360
  %31 = load i32, ptr %30, align 8, !tbaa !9
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader289
  %33 = getelementptr inbounds i8, ptr %6, i64 368
  %34 = load ptr, ptr %33, align 8, !tbaa !14
  %35 = load ptr, ptr %13, align 8, !tbaa !15
  br label %38

36:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %15) #7
  %37 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str, ptr noundef nonnull @.str.251, ptr noundef nonnull %37) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %37, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_find_approximation_switches, i32 noundef 3361, ptr noundef nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #7
  br label %361

38:                                               ; preds = %.lr.ph, %38
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %38 ]
  %39 = getelementptr inbounds i32, ptr %34, i64 %indvars.iv
  %40 = load i32, ptr %39, align 4, !tbaa !16
  %41 = getelementptr inbounds i32, ptr %35, i64 %indvars.iv
  store i32 %40, ptr %41, align 4, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %42 = load i32, ptr %30, align 8, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = icmp slt i64 %indvars.iv.next, %43
  br i1 %44, label %38, label %._crit_edge, !llvm.loop !17

._crit_edge:                                      ; preds = %38, %.preheader289
  %45 = phi i32 [ %31, %.preheader289 ], [ %42, %38 ]
  %46 = icmp eq i32 %10, 1
  br i1 %46, label %47, label %49

47:                                               ; preds = %._crit_edge
  %48 = getelementptr inbounds i8, ptr %12, i64 8
  store double %8, ptr %48, align 8, !tbaa !5
  br label %361

49:                                               ; preds = %._crit_edge
  %50 = add nsw i32 %10, -1
  %51 = sext i32 %50 to i64
  %52 = shl nsw i64 %51, 3
  %53 = tail call noalias ptr @malloc(i64 noundef %52) #8
  %54 = icmp eq ptr %53, null
  br i1 %54, label %57, label %.preheader288

.preheader288:                                    ; preds = %49
  %55 = icmp sgt i32 %45, 0
  br i1 %55, label %.lr.ph321, label %._crit_edge322

.lr.ph321:                                        ; preds = %.preheader288
  %56 = getelementptr inbounds i8, ptr %6, i64 368
  br label %60

57:                                               ; preds = %49
  %58 = trunc i64 %52 to i32
  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.4, ptr noundef nonnull @.str.255, i32 noundef %58) #7
  %59 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %59, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_find_approximation_switches, i32 noundef 3380, ptr noundef nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %16) #7
  br label %361

60:                                               ; preds = %.lr.ph321, %.loopexit
  %61 = phi i32 [ %45, %.lr.ph321 ], [ %90, %.loopexit ]
  %indvars.iv372 = phi i64 [ 0, %.lr.ph321 ], [ %indvars.iv.next373, %.loopexit ]
  %.0271319 = phi i32 [ 0, %.lr.ph321 ], [ %.2273, %.loopexit ]
  %62 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv372
  %63 = load i32, ptr %62, align 4, !tbaa !16
  %64 = icmp sgt i32 %63, 1
  br i1 %64, label %.lr.ph317.preheader, label %.loopexit

.lr.ph317.preheader:                              ; preds = %60
  %65 = load ptr, ptr %13, align 8, !tbaa !15
  %66 = getelementptr inbounds i32, ptr %65, i64 %indvars.iv372
  %67 = load i32, ptr %66, align 4, !tbaa !16
  %68 = sext i32 %.0271319 to i64
  %69 = add nsw i32 %63, -2
  br label %.lr.ph317

.lr.ph317:                                        ; preds = %.lr.ph317.preheader, %._crit_edge312
  %indvars.iv369 = phi i64 [ %68, %.lr.ph317.preheader ], [ %indvars.iv.next370, %._crit_edge312 ]
  %.0262315 = phi i32 [ 0, %.lr.ph317.preheader ], [ %88, %._crit_edge312 ]
  %.0270314 = phi double [ %7, %.lr.ph317.preheader ], [ %.0265.lcssa, %._crit_edge312 ]
  %70 = fadd double %.0270314, %8
  %.0265306 = fmul double %70, 5.000000e-01
  %71 = fsub double %8, %.0270314
  %72 = fcmp ogt double %71, %9
  br i1 %72, label %.lr.ph311, label %._crit_edge312

.lr.ph311:                                        ; preds = %.lr.ph317
  %73 = add nsw i32 %.0262315, %67
  br label %74

74:                                               ; preds = %.lr.ph311, %79
  %.0265309 = phi double [ %.0265306, %.lr.ph311 ], [ %.0265, %79 ]
  %.0266308 = phi double [ %8, %.lr.ph311 ], [ %.0265..0266, %79 ]
  %.0268307 = phi double [ %.0270314, %.lr.ph311 ], [ %.0268..0265, %79 ]
  %75 = tail call i32 @perturb_approximations(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, double noundef %5, double noundef %.0265309, ptr noundef %6)
  %76 = icmp eq i32 %75, 1
  br i1 %76, label %77, label %79

77:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %17) #7
  %78 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %17, ptr noundef nonnull @.str, ptr noundef nonnull @.str.256, ptr noundef nonnull %78) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %78, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_find_approximation_switches, i32 noundef 3411, ptr noundef nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %17) #7
  br label %361

79:                                               ; preds = %74
  %80 = load ptr, ptr %56, align 8, !tbaa !14
  %81 = getelementptr inbounds i32, ptr %80, i64 %indvars.iv372
  %82 = load i32, ptr %81, align 4, !tbaa !16
  %83 = icmp sgt i32 %82, %73
  %.0268..0265 = select i1 %83, double %.0268307, double %.0265309
  %.0265..0266 = select i1 %83, double %.0265309, double %.0266308
  %84 = fadd double %.0268..0265, %.0265..0266
  %.0265 = fmul double %84, 5.000000e-01
  %85 = fsub double %.0265..0266, %.0268..0265
  %86 = fcmp ogt double %85, %9
  br i1 %86, label %74, label %._crit_edge312, !llvm.loop !19

._crit_edge312:                                   ; preds = %79, %.lr.ph317
  %.0265.lcssa = phi double [ %.0265306, %.lr.ph317 ], [ %.0265, %79 ]
  %87 = getelementptr inbounds double, ptr %53, i64 %indvars.iv369
  store double %.0265.lcssa, ptr %87, align 8, !tbaa !5
  %indvars.iv.next370 = add nsw i64 %indvars.iv369, 1
  %88 = add nuw nsw i32 %.0262315, 1
  %exitcond.not = icmp eq i32 %.0262315, %69
  br i1 %exitcond.not, label %.loopexit.loopexit, label %.lr.ph317, !llvm.loop !20

.loopexit.loopexit:                               ; preds = %._crit_edge312
  %89 = trunc nsw i64 %indvars.iv.next370 to i32
  %.pre = load i32, ptr %30, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit, %60
  %90 = phi i32 [ %61, %60 ], [ %.pre, %.loopexit.loopexit ]
  %.2273 = phi i32 [ %.0271319, %60 ], [ %89, %.loopexit.loopexit ]
  %indvars.iv.next373 = add nuw nsw i64 %indvars.iv372, 1
  %91 = sext i32 %90 to i64
  %92 = icmp slt i64 %indvars.iv.next373, %91
  br i1 %92, label %60, label %._crit_edge322, !llvm.loop !21

._crit_edge322:                                   ; preds = %.loopexit, %.preheader288
  %.0271.lcssa = phi i32 [ 0, %.preheader288 ], [ %.2273, %.loopexit ]
  %.not = icmp eq i32 %.0271.lcssa, %50
  br i1 %.not, label %.preheader287, label %109

.preheader287:                                    ; preds = %._crit_edge322
  %93 = icmp sgt i32 %10, 1
  br i1 %93, label %.preheader286.us.preheader, label %._crit_edge330

.preheader286.us.preheader:                       ; preds = %.preheader287
  %invariant.gep = getelementptr i8, ptr %12, i64 -8
  %wide.trip.count382 = zext nneg i32 %10 to i64
  %wide.trip.count = zext i32 %50 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %94 = icmp eq i32 %50, 1
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader286.us

.preheader286.us:                                 ; preds = %.preheader286.us.preheader, %._crit_edge327.us
  %indvars.iv379 = phi i64 [ 1, %.preheader286.us.preheader ], [ %indvars.iv.next380, %._crit_edge327.us ]
  %gep.us = getelementptr double, ptr %invariant.gep, i64 %indvars.iv379
  %95 = load double, ptr %gep.us, align 8, !tbaa !5
  br i1 %94, label %._crit_edge327.us.unr-lcssa, label %.preheader286.us.new

.preheader286.us.new:                             ; preds = %.preheader286.us, %.preheader286.us.new
  %indvars.iv375 = phi i64 [ %indvars.iv.next376.1, %.preheader286.us.new ], [ 0, %.preheader286.us ]
  %.0260325.us = phi double [ %.1261.us.1, %.preheader286.us.new ], [ %8, %.preheader286.us ]
  %niter = phi i64 [ %niter.next.1, %.preheader286.us.new ], [ 0, %.preheader286.us ]
  %96 = getelementptr inbounds double, ptr %53, i64 %indvars.iv375
  %97 = load double, ptr %96, align 8, !tbaa !5
  %98 = fcmp ogt double %97, %95
  %99 = fcmp olt double %97, %.0260325.us
  %or.cond.us = select i1 %98, i1 %99, i1 false
  %.1261.us = select i1 %or.cond.us, double %97, double %.0260325.us
  %indvars.iv.next376 = or disjoint i64 %indvars.iv375, 1
  %100 = getelementptr inbounds double, ptr %53, i64 %indvars.iv.next376
  %101 = load double, ptr %100, align 8, !tbaa !5
  %102 = fcmp ogt double %101, %95
  %103 = fcmp olt double %101, %.1261.us
  %or.cond.us.1 = select i1 %102, i1 %103, i1 false
  %.1261.us.1 = select i1 %or.cond.us.1, double %101, double %.1261.us
  %indvars.iv.next376.1 = add nuw nsw i64 %indvars.iv375, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge327.us.unr-lcssa, label %.preheader286.us.new, !llvm.loop !22

._crit_edge327.us.unr-lcssa:                      ; preds = %.preheader286.us.new, %.preheader286.us
  %.1261.us.lcssa.ph = phi double [ poison, %.preheader286.us ], [ %.1261.us.1, %.preheader286.us.new ]
  %indvars.iv375.unr = phi i64 [ 0, %.preheader286.us ], [ %indvars.iv.next376.1, %.preheader286.us.new ]
  %.0260325.us.unr = phi double [ %8, %.preheader286.us ], [ %.1261.us.1, %.preheader286.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge327.us, label %._crit_edge327.us.epilog-lcssa

._crit_edge327.us.epilog-lcssa:                   ; preds = %._crit_edge327.us.unr-lcssa
  %104 = getelementptr inbounds double, ptr %53, i64 %indvars.iv375.unr
  %105 = load double, ptr %104, align 8, !tbaa !5
  %106 = fcmp ogt double %105, %95
  %107 = fcmp olt double %105, %.0260325.us.unr
  %or.cond.us.epil = select i1 %106, i1 %107, i1 false
  %.1261.us.epil = select i1 %or.cond.us.epil, double %105, double %.0260325.us.unr
  br label %._crit_edge327.us

._crit_edge327.us:                                ; preds = %._crit_edge327.us.unr-lcssa, %._crit_edge327.us.epilog-lcssa
  %.1261.us.lcssa = phi double [ %.1261.us.lcssa.ph, %._crit_edge327.us.unr-lcssa ], [ %.1261.us.epil, %._crit_edge327.us.epilog-lcssa ]
  %108 = getelementptr inbounds double, ptr %12, i64 %indvars.iv379
  store double %.1261.us.lcssa, ptr %108, align 8, !tbaa !5
  %indvars.iv.next380 = add nuw nsw i64 %indvars.iv379, 1
  %exitcond383.not = icmp eq i64 %indvars.iv.next380, %wide.trip.count382
  br i1 %exitcond383.not, label %.preheader285, label %.preheader286.us, !llvm.loop !23

109:                                              ; preds = %._crit_edge322
  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.257, i32 noundef %.0271.lcssa, i32 noundef %50) #7
  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.7, ptr noundef nonnull @.str.258, ptr noundef nonnull %18) #7
  %110 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %110, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_find_approximation_switches, i32 noundef 3436, ptr noundef nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %18) #7
  br label %361

._crit_edge330:                                   ; preds = %.preheader287
  %111 = getelementptr inbounds i8, ptr %12, i64 8
  store double %8, ptr %111, align 8, !tbaa !5
  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.259) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %21) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %21, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.260, ptr noundef nonnull %20) #7
  %112 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %112, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_find_approximation_switches, i32 noundef 3459, ptr noundef nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %20) #7
  br label %361

.preheader285:                                    ; preds = %._crit_edge327.us
  %113 = zext nneg i32 %10 to i64
  %114 = getelementptr inbounds double, ptr %12, i64 %113
  store double %8, ptr %114, align 8, !tbaa !5
  br i1 %93, label %.lr.ph346, label %._crit_edge347

.lr.ph346:                                        ; preds = %.preheader285
  %115 = getelementptr inbounds i8, ptr %6, i64 368
  %116 = getelementptr inbounds i8, ptr %3, i64 27608
  %117 = getelementptr inbounds i8, ptr %3, i64 4
  %118 = getelementptr inbounds i8, ptr %3, i64 2028
  %119 = getelementptr inbounds i8, ptr %6, i64 336
  %120 = getelementptr inbounds i8, ptr %6, i64 340
  %121 = getelementptr inbounds i8, ptr %1, i64 740
  %122 = getelementptr inbounds i8, ptr %6, i64 348
  %123 = getelementptr inbounds i8, ptr %1, i64 742
  %124 = getelementptr inbounds i8, ptr %6, i64 344
  %125 = getelementptr inbounds i8, ptr %1, i64 738
  %126 = getelementptr inbounds i8, ptr %6, i64 352
  %127 = getelementptr inbounds i8, ptr %1, i64 732
  %128 = getelementptr inbounds i8, ptr %6, i64 356
  %129 = getelementptr inbounds i8, ptr %3, i64 8
  %130 = getelementptr inbounds i8, ptr %3, i64 2032
  %wide.trip.count395 = zext nneg i32 %10 to i64
  br label %131

131:                                              ; preds = %.lr.ph346, %356
  %indvars.iv392 = phi i64 [ 1, %.lr.ph346 ], [ %indvars.iv.next393, %356 ]
  %132 = getelementptr inbounds double, ptr %12, i64 %indvars.iv392
  %133 = load double, ptr %132, align 8, !tbaa !5
  %indvars.iv.next393 = add nuw nsw i64 %indvars.iv392, 1
  %134 = getelementptr inbounds double, ptr %12, i64 %indvars.iv.next393
  %135 = load double, ptr %134, align 8, !tbaa !5
  %136 = fadd double %133, %135
  %137 = fmul double %136, 5.000000e-01
  %138 = tail call i32 @perturb_approximations(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, double noundef %5, double noundef %137, ptr noundef %6)
  %139 = icmp eq i32 %138, 1
  br i1 %139, label %148, label %.preheader284

.preheader284:                                    ; preds = %131
  %140 = load i32, ptr %30, align 8, !tbaa !9
  %141 = icmp sgt i32 %140, 0
  br i1 %141, label %.lr.ph337, label %._crit_edge342.thread

.lr.ph337:                                        ; preds = %.preheader284
  %142 = load ptr, ptr %115, align 8, !tbaa !14
  %143 = getelementptr inbounds ptr, ptr %13, i64 %indvars.iv392
  %144 = load ptr, ptr %143, align 8, !tbaa !15
  %145 = add nsw i64 %indvars.iv392, -1
  %146 = getelementptr inbounds ptr, ptr %13, i64 %145
  %147 = load ptr, ptr %146, align 8, !tbaa !15
  br label %167

148:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %22) #7
  %149 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.261, ptr noundef nonnull %149) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %149, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_find_approximation_switches, i32 noundef 3475, ptr noundef nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %22) #7
  br label %361

.preheader:                                       ; preds = %186
  %150 = icmp sgt i32 %187, 0
  br i1 %150, label %.lr.ph341, label %._crit_edge342.thread

.lr.ph341:                                        ; preds = %.preheader
  %151 = getelementptr inbounds ptr, ptr %13, i64 %indvars.iv392
  %152 = load ptr, ptr %151, align 8, !tbaa !15
  %153 = getelementptr i8, ptr %151, i64 -8
  %154 = load ptr, ptr %153, align 8, !tbaa !15
  %wide.trip.count390 = zext nneg i32 %187 to i64
  %min.iters.check = icmp ult i32 %187, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph341
  %indvars.iv387.ph = phi i64 [ 0, %.lr.ph341 ], [ %n.vec, %middle.block ]
  %.0257340.ph = phi i32 [ 0, %.lr.ph341 ], [ %166, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph341
  %n.vec = and i64 %wide.trip.count390, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %163, %vector.body ]
  %vec.phi438 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %164, %vector.body ]
  %155 = getelementptr inbounds i32, ptr %152, i64 %index
  %156 = getelementptr inbounds i8, ptr %155, i64 16
  %wide.load = load <4 x i32>, ptr %155, align 4, !tbaa !16
  %wide.load439 = load <4 x i32>, ptr %156, align 4, !tbaa !16
  %157 = getelementptr inbounds i32, ptr %154, i64 %index
  %158 = getelementptr inbounds i8, ptr %157, i64 16
  %wide.load440 = load <4 x i32>, ptr %157, align 4, !tbaa !16
  %wide.load441 = load <4 x i32>, ptr %158, align 4, !tbaa !16
  %159 = icmp ne <4 x i32> %wide.load, %wide.load440
  %160 = icmp ne <4 x i32> %wide.load439, %wide.load441
  %161 = zext <4 x i1> %159 to <4 x i32>
  %162 = zext <4 x i1> %160 to <4 x i32>
  %163 = add <4 x i32> %vec.phi, %161
  %164 = add <4 x i32> %vec.phi438, %162
  %index.next = add nuw i64 %index, 8
  %165 = icmp eq i64 %index.next, %n.vec
  br i1 %165, label %middle.block, label %vector.body, !llvm.loop !24

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %164, %163
  %166 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count390
  br i1 %cmp.n, label %._crit_edge342, label %scalar.ph.preheader

167:                                              ; preds = %.lr.ph337, %186
  %indvars.iv384 = phi i64 [ 0, %.lr.ph337 ], [ %indvars.iv.next385, %186 ]
  %168 = getelementptr inbounds i32, ptr %142, i64 %indvars.iv384
  %169 = load i32, ptr %168, align 4, !tbaa !16
  %170 = getelementptr inbounds i32, ptr %144, i64 %indvars.iv384
  store i32 %169, ptr %170, align 4, !tbaa !16
  %171 = getelementptr inbounds i32, ptr %147, i64 %indvars.iv384
  %172 = load i32, ptr %171, align 4, !tbaa !16
  %173 = icmp slt i32 %169, %172
  br i1 %173, label %174, label %186

174:                                              ; preds = %167
  %175 = getelementptr inbounds double, ptr %12, i64 %indvars.iv.next393
  %176 = trunc nuw nsw i64 %indvars.iv384 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %23) #7
  %177 = getelementptr inbounds double, ptr %12, i64 %145
  %178 = load double, ptr %177, align 8, !tbaa !5
  %179 = load double, ptr %132, align 8, !tbaa !5
  %180 = fadd double %178, %179
  %181 = fmul double %180, 5.000000e-01
  %182 = load double, ptr %175, align 8, !tbaa !5
  %183 = fadd double %179, %182
  %184 = fmul double %183, 5.000000e-01
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %23, ptr noundef nonnull @.str.262, i32 noundef %176, i32 noundef %172, i32 noundef %169, double noundef %5, double noundef %181, double noundef %184) #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.263, ptr noundef nonnull %23) #7
  %185 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %185, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_find_approximation_switches, i32 noundef 3492, 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 %361

186:                                              ; preds = %167
  %indvars.iv.next385 = add nuw nsw i64 %indvars.iv384, 1
  %187 = load i32, ptr %30, align 8, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = icmp slt i64 %indvars.iv.next385, %188
  br i1 %189, label %167, label %.preheader, !llvm.loop !27

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv387 = phi i64 [ %indvars.iv.next388, %scalar.ph ], [ %indvars.iv387.ph, %scalar.ph.preheader ]
  %.0257340 = phi i32 [ %spec.select, %scalar.ph ], [ %.0257340.ph, %scalar.ph.preheader ]
  %190 = getelementptr inbounds i32, ptr %152, i64 %indvars.iv387
  %191 = load i32, ptr %190, align 4, !tbaa !16
  %192 = getelementptr inbounds i32, ptr %154, i64 %indvars.iv387
  %193 = load i32, ptr %192, align 4, !tbaa !16
  %.not283 = icmp ne i32 %191, %193
  %194 = zext i1 %.not283 to i32
  %spec.select = add nuw nsw i32 %.0257340, %194
  %indvars.iv.next388 = add nuw nsw i64 %indvars.iv387, 1
  %exitcond391.not = icmp eq i64 %indvars.iv.next388, %wide.trip.count390
  br i1 %exitcond391.not, label %._crit_edge342, label %scalar.ph, !llvm.loop !28

._crit_edge342:                                   ; preds = %scalar.ph, %middle.block
  %spec.select.lcssa = phi i32 [ %166, %middle.block ], [ %spec.select, %scalar.ph ]
  %.not282 = icmp eq i32 %spec.select.lcssa, 1
  br i1 %.not282, label %197, label %._crit_edge342.thread

._crit_edge342.thread:                            ; preds = %.preheader284, %.preheader, %._crit_edge342
  %.0257.lcssa404 = phi i32 [ %spec.select.lcssa, %._crit_edge342 ], [ 0, %.preheader ], [ 0, %.preheader284 ]
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %25) #7
  %195 = load double, ptr %132, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %25, ptr noundef nonnull @.str.264, double noundef %5, double noundef %195, i32 noundef %.0257.lcssa404) #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.265, ptr noundef nonnull %25) #7
  %196 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %196, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_find_approximation_switches, i32 noundef 3506, 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 %361

197:                                              ; preds = %._crit_edge342
  %198 = load i16, ptr %116, align 8, !tbaa !29
  %199 = icmp sgt i16 %198, 2
  br i1 %199, label %200, label %356

200:                                              ; preds = %197
  %201 = load i16, ptr %117, align 4, !tbaa !31
  %202 = icmp eq i16 %201, 1
  br i1 %202, label %203, label %316

203:                                              ; preds = %200
  %204 = load i32, ptr %118, align 4, !tbaa !32
  %205 = icmp eq i32 %204, %4
  br i1 %205, label %206, label %316

206:                                              ; preds = %203
  %207 = getelementptr ptr, ptr %13, i64 %indvars.iv392
  %208 = getelementptr i8, ptr %207, i64 -8
  %209 = load ptr, ptr %208, align 8, !tbaa !15
  %210 = load i32, ptr %119, align 8, !tbaa !33
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds i32, ptr %209, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !16
  %214 = icmp eq i32 %213, 0
  br i1 %214, label %215, label %224

215:                                              ; preds = %206
  %216 = load ptr, ptr %207, align 8, !tbaa !15
  %217 = getelementptr inbounds i32, ptr %216, i64 %211
  %218 = load i32, ptr %217, align 4, !tbaa !16
  %219 = icmp eq i32 %218, 1
  br i1 %219, label %220, label %224

220:                                              ; preds = %215
  %221 = load ptr, ptr @stdout, align 8, !tbaa !15
  %222 = load double, ptr %132, align 8, !tbaa !5
  %223 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %221, ptr noundef nonnull @.str.266, double noundef %5, double noundef %222) #7
  %.pre397 = load ptr, ptr %208, align 8, !tbaa !15
  br label %224

224:                                              ; preds = %220, %215, %206
  %225 = phi ptr [ %.pre397, %220 ], [ %209, %215 ], [ %209, %206 ]
  %226 = load i32, ptr %120, align 4, !tbaa !34
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds i32, ptr %225, i64 %227
  %229 = load i32, ptr %228, align 4, !tbaa !16
  %230 = icmp eq i32 %229, 0
  br i1 %230, label %231, label %240

231:                                              ; preds = %224
  %232 = load ptr, ptr %207, align 8, !tbaa !15
  %233 = getelementptr inbounds i32, ptr %232, i64 %227
  %234 = load i32, ptr %233, align 4, !tbaa !16
  %235 = icmp eq i32 %234, 1
  br i1 %235, label %236, label %240

236:                                              ; preds = %231
  %237 = load ptr, ptr @stdout, align 8, !tbaa !15
  %238 = load double, ptr %132, align 8, !tbaa !5
  %239 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %237, ptr noundef nonnull @.str.267, double noundef %5, double noundef %238) #7
  br label %240

240:                                              ; preds = %236, %231, %224
  %241 = load i16, ptr %121, align 4, !tbaa !35
  %242 = icmp eq i16 %241, 1
  br i1 %242, label %243, label %259

243:                                              ; preds = %240
  %244 = load ptr, ptr %208, align 8, !tbaa !15
  %245 = load i32, ptr %122, align 4, !tbaa !37
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds i32, ptr %244, i64 %246
  %248 = load i32, ptr %247, align 4, !tbaa !16
  %249 = icmp eq i32 %248, 0
  br i1 %249, label %250, label %259

250:                                              ; preds = %243
  %251 = load ptr, ptr %207, align 8, !tbaa !15
  %252 = getelementptr inbounds i32, ptr %251, i64 %246
  %253 = load i32, ptr %252, align 4, !tbaa !16
  %254 = icmp eq i32 %253, 1
  br i1 %254, label %255, label %259

255:                                              ; preds = %250
  %256 = load ptr, ptr @stdout, align 8, !tbaa !15
  %257 = load double, ptr %132, align 8, !tbaa !5
  %258 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %256, ptr noundef nonnull @.str.268, double noundef %5, double noundef %257) #7
  br label %259

259:                                              ; preds = %243, %250, %255, %240
  %260 = load i16, ptr %123, align 2, !tbaa !38
  %261 = icmp eq i16 %260, 1
  br i1 %261, label %262, label %278

262:                                              ; preds = %259
  %263 = load ptr, ptr %208, align 8, !tbaa !15
  %264 = load i32, ptr %124, align 8, !tbaa !39
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds i32, ptr %263, i64 %265
  %267 = load i32, ptr %266, align 4, !tbaa !16
  %268 = icmp eq i32 %267, 0
  br i1 %268, label %269, label %278

269:                                              ; preds = %262
  %270 = load ptr, ptr %207, align 8, !tbaa !15
  %271 = getelementptr inbounds i32, ptr %270, i64 %265
  %272 = load i32, ptr %271, align 4, !tbaa !16
  %273 = icmp eq i32 %272, 1
  br i1 %273, label %274, label %278

274:                                              ; preds = %269
  %275 = load ptr, ptr @stdout, align 8, !tbaa !15
  %276 = load double, ptr %132, align 8, !tbaa !5
  %277 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %275, ptr noundef nonnull @.str.269, double noundef %5, double noundef %276) #7
  br label %278

278:                                              ; preds = %262, %269, %274, %259
  %279 = load i16, ptr %125, align 2, !tbaa !40
  %280 = icmp eq i16 %279, 1
  br i1 %280, label %281, label %297

281:                                              ; preds = %278
  %282 = load ptr, ptr %208, align 8, !tbaa !15
  %283 = load i32, ptr %126, align 8, !tbaa !41
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds i32, ptr %282, i64 %284
  %286 = load i32, ptr %285, align 4, !tbaa !16
  %287 = icmp eq i32 %286, 0
  br i1 %287, label %288, label %297

288:                                              ; preds = %281
  %289 = load ptr, ptr %207, align 8, !tbaa !15
  %290 = getelementptr inbounds i32, ptr %289, i64 %284
  %291 = load i32, ptr %290, align 4, !tbaa !16
  %292 = icmp eq i32 %291, 1
  br i1 %292, label %293, label %297

293:                                              ; preds = %288
  %294 = load ptr, ptr @stdout, align 8, !tbaa !15
  %295 = load double, ptr %132, align 8, !tbaa !5
  %296 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %294, ptr noundef nonnull @.str.270, double noundef %5, double noundef %295) #7
  br label %297

297:                                              ; preds = %281, %288, %293, %278
  %298 = load i16, ptr %127, align 4, !tbaa !42
  %299 = icmp eq i16 %298, 1
  br i1 %299, label %300, label %316

300:                                              ; preds = %297
  %301 = load ptr, ptr %208, align 8, !tbaa !15
  %302 = load i32, ptr %128, align 4, !tbaa !43
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds i32, ptr %301, i64 %303
  %305 = load i32, ptr %304, align 4, !tbaa !16
  %306 = icmp eq i32 %305, 0
  br i1 %306, label %307, label %316

307:                                              ; preds = %300
  %308 = load ptr, ptr %207, align 8, !tbaa !15
  %309 = getelementptr inbounds i32, ptr %308, i64 %303
  %310 = load i32, ptr %309, align 4, !tbaa !16
  %311 = icmp eq i32 %310, 1
  br i1 %311, label %312, label %316

312:                                              ; preds = %307
  %313 = load ptr, ptr @stdout, align 8, !tbaa !15
  %314 = load double, ptr %132, align 8, !tbaa !5
  %315 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %313, ptr noundef nonnull @.str.271, double noundef %5, double noundef %314) #7
  br label %316

316:                                              ; preds = %297, %312, %307, %300, %203, %200
  %317 = load i16, ptr %129, align 8, !tbaa !44
  %318 = icmp eq i16 %317, 1
  br i1 %318, label %319, label %356

319:                                              ; preds = %316
  %320 = load i32, ptr %130, align 8, !tbaa !45
  %321 = icmp eq i32 %320, %4
  br i1 %321, label %322, label %356

322:                                              ; preds = %319
  %323 = getelementptr ptr, ptr %13, i64 %indvars.iv392
  %324 = getelementptr i8, ptr %323, i64 -8
  %325 = load ptr, ptr %324, align 8, !tbaa !15
  %326 = load i32, ptr %119, align 8, !tbaa !33
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds i32, ptr %325, i64 %327
  %329 = load i32, ptr %328, align 4, !tbaa !16
  %330 = icmp eq i32 %329, 0
  br i1 %330, label %331, label %340

331:                                              ; preds = %322
  %332 = load ptr, ptr %323, align 8, !tbaa !15
  %333 = getelementptr inbounds i32, ptr %332, i64 %327
  %334 = load i32, ptr %333, align 4, !tbaa !16
  %335 = icmp eq i32 %334, 1
  br i1 %335, label %336, label %340

336:                                              ; preds = %331
  %337 = load ptr, ptr @stdout, align 8, !tbaa !15
  %338 = load double, ptr %132, align 8, !tbaa !5
  %339 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %337, ptr noundef nonnull @.str.272, double noundef %5, double noundef %338) #7
  %.pre398 = load ptr, ptr %324, align 8, !tbaa !15
  br label %340

340:                                              ; preds = %336, %331, %322
  %341 = phi ptr [ %.pre398, %336 ], [ %325, %331 ], [ %325, %322 ]
  %342 = load i32, ptr %120, align 4, !tbaa !34
  %343 = sext i32 %342 to i64
  %344 = getelementptr inbounds i32, ptr %341, i64 %343
  %345 = load i32, ptr %344, align 4, !tbaa !16
  %346 = icmp eq i32 %345, 0
  br i1 %346, label %347, label %356

347:                                              ; preds = %340
  %348 = load ptr, ptr %323, align 8, !tbaa !15
  %349 = getelementptr inbounds i32, ptr %348, i64 %343
  %350 = load i32, ptr %349, align 4, !tbaa !16
  %351 = icmp eq i32 %350, 1
  br i1 %351, label %352, label %356

352:                                              ; preds = %347
  %353 = load ptr, ptr @stdout, align 8, !tbaa !15
  %354 = load double, ptr %132, align 8, !tbaa !5
  %355 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %353, ptr noundef nonnull @.str.273, double noundef %5, double noundef %354) #7
  br label %356

356:                                              ; preds = %197, %340, %347, %352, %319, %316
  %exitcond396.not = icmp eq i64 %indvars.iv.next393, %wide.trip.count395
  br i1 %exitcond396.not, label %._crit_edge347, label %131, !llvm.loop !46

._crit_edge347:                                   ; preds = %356, %.preheader285
  tail call void @free(ptr noundef %53) #7
  %357 = tail call i32 @perturb_approximations(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, double noundef %5, double noundef %8, ptr noundef %6)
  %358 = icmp eq i32 %357, 1
  br i1 %358, label %359, label %361

359:                                              ; preds = %._crit_edge347
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %27) #7
  %360 = getelementptr inbounds i8, ptr %3, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %27, ptr noundef nonnull @.str, ptr noundef nonnull @.str.252, ptr noundef nonnull %360) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %360, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_find_approximation_switches, i32 noundef 3573, ptr noundef nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %27) #7
  br label %361

361:                                              ; preds = %47, %._crit_edge347, %359, %._crit_edge342.thread, %174, %148, %._crit_edge330, %109, %77, %57, %36
  %.0 = phi i32 [ 1, %36 ], [ 1, %57 ], [ 1, %77 ], [ 1, %109 ], [ 1, %._crit_edge330 ], [ 1, %148 ], [ 1, %174 ], [ 1, %._crit_edge342.thread ], [ 1, %359 ], [ 0, %._crit_edge347 ], [ 0, %47 ]
  ret i32 %.0
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @perturb_approximations(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, double noundef, double noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #6

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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 #6 = { 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, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 360}
!10 = !{!"perturb_workspace", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !12, i64 216, !12, i64 224, !12, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !6, i64 280, !6, i64 288, !6, i64 296, !6, i64 304, !12, i64 312, !11, i64 320, !13, i64 324, !11, i64 328, !11, i64 332, !11, i64 336, !11, i64 340, !11, i64 344, !11, i64 348, !11, i64 352, !11, i64 356, !11, i64 360, !12, i64 368, !11, i64 376, !12, i64 384}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!10, !12, i64 368}
!15 = !{!12, !12, i64 0}
!16 = !{!11, !11, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18, !25, !26}
!25 = !{!"llvm.loop.isvectorized", i32 1}
!26 = !{!"llvm.loop.unroll.runtime.disable"}
!27 = distinct !{!27, !18}
!28 = distinct !{!28, !18, !26, !25}
!29 = !{!30, !13, i64 27608}
!30 = !{!"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, !11, 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, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !6, i64 80, !11, i64 88, !11, i64 92, !7, i64 96, !7, i64 896, !11, i64 1696, !11, i64 1700, !11, i64 1704, !11, i64 1708, !11, i64 1712, !6, i64 1720, !11, i64 1728, !11, i64 1732, !7, i64 1736, !6, i64 1976, !6, i64 1984, !6, i64 1992, !12, i64 2000, !12, i64 2008, !11, i64 2016, !13, i64 2020, !13, i64 2022, !11, i64 2024, !11, i64 2028, !11, i64 2032, !11, i64 2036, !11, i64 2040, !11, i64 2044, !11, i64 2048, !11, i64 2052, !11, i64 2056, !11, i64 2060, !11, i64 2064, !12, 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, !11, i64 2160, !11, i64 2164, !11, i64 2168, !11, i64 2172, !11, i64 2176, !11, i64 2180, !11, i64 2184, !11, i64 2188, !11, i64 2192, !11, i64 2196, !11, i64 2200, !11, i64 2204, !11, i64 2208, !11, i64 2212, !11, i64 2216, !11, i64 2220, !11, i64 2224, !11, i64 2228, !11, i64 2232, !11, i64 2236, !11, i64 2240, !11, i64 2244, !11, i64 2248, !11, i64 2252, !11, i64 2256, !11, i64 2260, !11, i64 2264, !11, i64 2268, !11, i64 2272, !11, i64 2276, !11, i64 2280, !11, i64 2284, !11, i64 2288, !11, i64 2292, !11, i64 2296, !11, i64 2300, !11, i64 2304, !11, i64 2308, !11, i64 2312, !11, i64 2316, !11, i64 2320, !11, i64 2324, !11, i64 2328, !11, i64 2332, !12, i64 2336, !12, i64 2344, !12, i64 2352, !12, i64 2360, !12, i64 2368, !6, i64 2376, !6, i64 2384, !12, i64 2392, !11, i64 2400, !6, i64 2408, !6, i64 2416, !6, i64 2424, !12, i64 2432, !12, i64 2440, !12, i64 2448, !12, i64 2456, !12, i64 2464, !12, i64 2472, !11, i64 2480, !12, i64 2488, !12, i64 2496, !12, i64 2504, !7, i64 2512, !7, i64 10512, !7, i64 18512, !11, i64 26512, !11, i64 26516, !11, 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}
!31 = !{!30, !13, i64 4}
!32 = !{!30, !11, i64 2028}
!33 = !{!10, !11, i64 336}
!34 = !{!10, !11, i64 340}
!35 = !{!36, !13, i64 740}
!36 = !{!"background", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !13, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !13, i64 176, !6, i64 184, !6, i64 192, !12, i64 200, !11, i64 208, !11, i64 212, !6, i64 216, !11, i64 224, !12, i64 232, !12, i64 240, !6, i64 248, !12, i64 256, !6, i64 264, !12, i64 272, !6, i64 280, !12, i64 288, !6, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !11, i64 360, !12, i64 368, !6, i64 376, !6, i64 384, !6, i64 392, !6, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !11, i64 464, !11, i64 468, !11, i64 472, !11, i64 476, !11, i64 480, !11, i64 484, !11, i64 488, !11, i64 492, !11, i64 496, !11, i64 500, !11, i64 504, !11, i64 508, !11, i64 512, !11, i64 516, !11, i64 520, !11, i64 524, !11, i64 528, !11, i64 532, !11, i64 536, !11, i64 540, !11, i64 544, !11, i64 548, !11, i64 552, !11, i64 556, !11, i64 560, !11, i64 564, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !11, i64 584, !11, i64 588, !11, i64 592, !11, i64 596, !11, i64 600, !11, i64 604, !11, i64 608, !11, i64 612, !11, i64 616, !11, i64 620, !11, i64 624, !11, i64 628, !12, i64 632, !12, i64 640, !12, i64 648, !12, i64 656, !12, i64 664, !11, i64 672, !11, i64 676, !11, i64 680, !11, i64 684, !11, i64 688, !11, i64 692, !11, i64 696, !11, i64 700, !11, i64 704, !11, i64 708, !11, i64 712, !11, i64 716, !11, 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, !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, !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}
!37 = !{!10, !11, i64 348}
!38 = !{!36, !13, i64 742}
!39 = !{!10, !11, i64 344}
!40 = !{!36, !13, i64 738}
!41 = !{!10, !11, i64 352}
!42 = !{!36, !13, i64 732}
!43 = !{!10, !11, i64 356}
!44 = !{!30, !13, i64 8}
!45 = !{!30, !11, i64 2032}
!46 = distinct !{!46, !18}


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