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

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.331 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.338 = external hidden unnamed_addr constant [15 x i8], align 1
@__func__.perturb_timescale = external hidden unnamed_addr constant [18 x i8], align 1
@.str.339 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.340 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.341 = external hidden unnamed_addr constant [129 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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @perturb_timescale(double noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #2 {
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca [2048 x i8], align 16
  %21 = alloca [2048 x i8], align 16
  %22 = alloca i32, align 4
  %23 = alloca [2048 x i8], align 16
  %24 = alloca [2048 x i8], align 16
  %25 = alloca [2048 x i8], align 16
  %26 = alloca [2048 x i8], align 16
  %27 = alloca [2048 x i8], align 16
  %28 = alloca [2048 x i8], align 16
  store double %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  %29 = load ptr, ptr %7, align 8, !tbaa !9
  store ptr %29, ptr %13, align 8, !tbaa !9
  %30 = load ptr, ptr %13, align 8, !tbaa !9
  %31 = getelementptr inbounds %struct.perturb_parameters_and_workspace, ptr %30, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  store ptr %32, ptr %14, align 8, !tbaa !9
  %33 = load ptr, ptr %13, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct.perturb_parameters_and_workspace, ptr %33, i32 0, i32 2
  %35 = load ptr, ptr %34, align 8, !tbaa !14
  store ptr %35, ptr %15, align 8, !tbaa !9
  %36 = load ptr, ptr %13, align 8, !tbaa !9
  %37 = getelementptr inbounds %struct.perturb_parameters_and_workspace, ptr %36, i32 0, i32 3
  %38 = load ptr, ptr %37, align 8, !tbaa !15
  store ptr %38, ptr %16, align 8, !tbaa !9
  %39 = load ptr, ptr %13, align 8, !tbaa !9
  %40 = getelementptr inbounds %struct.perturb_parameters_and_workspace, ptr %39, i32 0, i32 8
  %41 = load ptr, ptr %40, align 8, !tbaa !16
  store ptr %41, ptr %17, align 8, !tbaa !9
  %42 = load ptr, ptr %17, align 8, !tbaa !9
  %43 = getelementptr inbounds %struct.perturb_workspace, ptr %42, i32 0, i32 11
  %44 = load ptr, ptr %43, align 8, !tbaa !17
  store ptr %44, ptr %18, align 8, !tbaa !9
  %45 = load ptr, ptr %17, align 8, !tbaa !9
  %46 = getelementptr inbounds %struct.perturb_workspace, ptr %45, i32 0, i32 12
  %47 = load ptr, ptr %46, align 8, !tbaa !20
  store ptr %47, ptr %19, align 8, !tbaa !9
  %48 = load ptr, ptr %13, align 8, !tbaa !9
  %49 = getelementptr inbounds %struct.perturb_parameters_and_workspace, ptr %48, i32 0, i32 7
  %50 = load double, ptr %49, align 8, !tbaa !21
  %51 = fcmp oeq double %50, 0.000000e+00
  br i1 %51, label %52, label %60

52:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 2048, ptr %20) #3
  %53 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %53, ptr noundef @.str.157)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %21) #3
  %54 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  %55 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %54, ptr noundef @.str.7, ptr noundef @.str.338, ptr noundef %55)
  %56 = load ptr, ptr %16, align 8, !tbaa !9
  %57 = getelementptr inbounds %struct.perturbs, ptr %56, i32 0, i32 186
  %58 = getelementptr inbounds [2048 x i8], ptr %57, i64 0, i64 0
  %59 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %58, ptr noundef @.str.2, ptr noundef @__func__.perturb_timescale, i32 noundef 6096, ptr noundef %59)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr %20) #3
  store i32 1, ptr %5, align 4
  store i32 1, ptr %22, align 4
  br label %432

60:                                               ; preds = %4
  %61 = load ptr, ptr %13, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.perturb_parameters_and_workspace, ptr %61, i32 0, i32 7
  %63 = load double, ptr %62, align 8, !tbaa !21
  %64 = fdiv double 1.000000e+00, %63
  store double %64, ptr %10, align 8, !tbaa !5
  %65 = load ptr, ptr %14, align 8, !tbaa !9
  %66 = load double, ptr %6, align 8, !tbaa !5
  %67 = load ptr, ptr %14, align 8, !tbaa !9
  %68 = getelementptr inbounds %struct.background, ptr %67, i32 0, i32 142
  %69 = load i16, ptr %68, align 2, !tbaa !22
  %70 = load ptr, ptr %17, align 8, !tbaa !9
  %71 = getelementptr inbounds %struct.perturb_workspace, ptr %70, i32 0, i32 46
  %72 = load i16, ptr %71, align 4, !tbaa !24
  %73 = load ptr, ptr %17, align 8, !tbaa !9
  %74 = getelementptr inbounds %struct.perturb_workspace, ptr %73, i32 0, i32 47
  %75 = load ptr, ptr %18, align 8, !tbaa !9
  %76 = call i32 @background_at_tau(ptr noundef %65, double noundef %66, i16 noundef signext %69, i16 noundef signext %72, ptr noundef %74, ptr noundef %75)
  %77 = icmp eq i32 %76, 1
  br i1 %77, label %78, label %85

78:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 2048, ptr %23) #3
  %79 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  %80 = load ptr, ptr %14, align 8, !tbaa !9
  %81 = getelementptr inbounds %struct.background, ptr %80, i32 0, i32 149
  %82 = getelementptr inbounds [2048 x i8], ptr %81, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %79, ptr noundef @.str, ptr noundef @.str.339, ptr noundef %82)
  %83 = load ptr, ptr %9, align 8, !tbaa !9
  %84 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %83, ptr noundef @.str.2, ptr noundef @__func__.perturb_timescale, i32 noundef 6105, ptr noundef %84)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %23) #3
  store i32 1, ptr %5, align 4
  store i32 1, ptr %22, align 4
  br label %432

85:                                               ; preds = %60
  %86 = load ptr, ptr %18, align 8, !tbaa !9
  %87 = load ptr, ptr %14, align 8, !tbaa !9
  %88 = getelementptr inbounds %struct.background, ptr %87, i32 0, i32 60
  %89 = load i32, ptr %88, align 4, !tbaa !25
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds double, ptr %86, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !5
  %93 = load ptr, ptr %18, align 8, !tbaa !9
  %94 = load ptr, ptr %14, align 8, !tbaa !9
  %95 = getelementptr inbounds %struct.background, ptr %94, i32 0, i32 59
  %96 = load i32, ptr %95, align 8, !tbaa !26
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds double, ptr %93, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !5
  %100 = fmul double %92, %99
  %101 = fcmp oeq double %100, 0.000000e+00
  br i1 %101, label %102, label %108

102:                                              ; preds = %85
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #3
  %103 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %103, ptr noundef @.str.331)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %25) #3
  %104 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  %105 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %104, ptr noundef @.str.7, ptr noundef @.str.340, ptr noundef %105)
  %106 = load ptr, ptr %9, align 8, !tbaa !9
  %107 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %106, ptr noundef @.str.2, ptr noundef @__func__.perturb_timescale, i32 noundef 6109, ptr noundef %107)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #3
  store i32 1, ptr %5, align 4
  store i32 1, ptr %22, align 4
  br label %432

108:                                              ; preds = %85
  %109 = load ptr, ptr %18, align 8, !tbaa !9
  %110 = load ptr, ptr %14, align 8, !tbaa !9
  %111 = getelementptr inbounds %struct.background, ptr %110, i32 0, i32 60
  %112 = load i32, ptr %111, align 4, !tbaa !25
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds double, ptr %109, i64 %113
  %115 = load double, ptr %114, align 8, !tbaa !5
  %116 = load ptr, ptr %18, align 8, !tbaa !9
  %117 = load ptr, ptr %14, align 8, !tbaa !9
  %118 = getelementptr inbounds %struct.background, ptr %117, i32 0, i32 59
  %119 = load i32, ptr %118, align 8, !tbaa !26
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %116, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !5
  %123 = fmul double %115, %122
  %124 = fdiv double 1.000000e+00, %123
  store double %124, ptr %11, align 8, !tbaa !5
  %125 = load ptr, ptr %16, align 8, !tbaa !9
  %126 = getelementptr inbounds %struct.perturbs, ptr %125, i32 0, i32 2
  %127 = load i16, ptr %126, align 4, !tbaa !27
  %128 = sext i16 %127 to i32
  %129 = icmp eq i32 %128, 1
  br i1 %129, label %130, label %241

130:                                              ; preds = %108
  %131 = load ptr, ptr %13, align 8, !tbaa !9
  %132 = getelementptr inbounds %struct.perturb_parameters_and_workspace, ptr %131, i32 0, i32 4
  %133 = load i32, ptr %132, align 8, !tbaa !29
  %134 = load ptr, ptr %16, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.perturbs, ptr %134, i32 0, i32 56
  %136 = load i32, ptr %135, align 4, !tbaa !30
  %137 = icmp eq i32 %133, %136
  br i1 %137, label %138, label %241

138:                                              ; preds = %130
  %139 = load double, ptr %11, align 8, !tbaa !5
  %140 = load ptr, ptr %8, align 8, !tbaa !9
  store double %139, ptr %140, align 8, !tbaa !5
  %141 = load ptr, ptr %17, align 8, !tbaa !9
  %142 = getelementptr inbounds %struct.perturb_workspace, ptr %141, i32 0, i32 56
  %143 = load ptr, ptr %142, align 8, !tbaa !31
  %144 = load ptr, ptr %17, align 8, !tbaa !9
  %145 = getelementptr inbounds %struct.perturb_workspace, ptr %144, i32 0, i32 50
  %146 = load i32, ptr %145, align 4, !tbaa !32
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds i32, ptr %143, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !33
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %157, label %151

151:                                              ; preds = %138
  %152 = load ptr, ptr %14, align 8, !tbaa !9
  %153 = getelementptr inbounds %struct.background, ptr %152, i32 0, i32 123
  %154 = load i16, ptr %153, align 4, !tbaa !34
  %155 = sext i16 %154 to i32
  %156 = icmp eq i32 %155, 1
  br i1 %156, label %157, label %170

157:                                              ; preds = %151, %138
  %158 = load double, ptr %10, align 8, !tbaa !5
  %159 = load ptr, ptr %8, align 8, !tbaa !9
  %160 = load double, ptr %159, align 8, !tbaa !5
  %161 = fcmp olt double %158, %160
  br i1 %161, label %162, label %164

162:                                              ; preds = %157
  %163 = load double, ptr %10, align 8, !tbaa !5
  br label %167

164:                                              ; preds = %157
  %165 = load ptr, ptr %8, align 8, !tbaa !9
  %166 = load double, ptr %165, align 8, !tbaa !5
  br label %167

167:                                              ; preds = %164, %162
  %168 = phi double [ %163, %162 ], [ %166, %164 ]
  %169 = load ptr, ptr %8, align 8, !tbaa !9
  store double %168, ptr %169, align 8, !tbaa !5
  br label %170

170:                                              ; preds = %167, %151
  %171 = load ptr, ptr %17, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.perturb_workspace, ptr %171, i32 0, i32 56
  %173 = load ptr, ptr %172, align 8, !tbaa !31
  %174 = load ptr, ptr %17, align 8, !tbaa !9
  %175 = getelementptr inbounds %struct.perturb_workspace, ptr %174, i32 0, i32 49
  %176 = load i32, ptr %175, align 8, !tbaa !35
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds i32, ptr %173, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !33
  %180 = icmp eq i32 %179, 1
  br i1 %180, label %181, label %240

181:                                              ; preds = %170
  %182 = load ptr, ptr %14, align 8, !tbaa !9
  %183 = load ptr, ptr %15, align 8, !tbaa !9
  %184 = load ptr, ptr %18, align 8, !tbaa !9
  %185 = load ptr, ptr %14, align 8, !tbaa !9
  %186 = getelementptr inbounds %struct.background, ptr %185, i32 0, i32 59
  %187 = load i32, ptr %186, align 8, !tbaa !26
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds double, ptr %184, i64 %188
  %190 = load double, ptr %189, align 8, !tbaa !5
  %191 = fdiv double 1.000000e+00, %190
  %192 = fsub double %191, 1.000000e+00
  %193 = load ptr, ptr %17, align 8, !tbaa !9
  %194 = getelementptr inbounds %struct.perturb_workspace, ptr %193, i32 0, i32 46
  %195 = load i16, ptr %194, align 4, !tbaa !24
  %196 = load ptr, ptr %17, align 8, !tbaa !9
  %197 = getelementptr inbounds %struct.perturb_workspace, ptr %196, i32 0, i32 48
  %198 = load ptr, ptr %18, align 8, !tbaa !9
  %199 = load ptr, ptr %19, align 8, !tbaa !9
  %200 = call i32 @thermodynamics_at_z(ptr noundef %182, ptr noundef %183, double noundef %192, i16 noundef signext %195, ptr noundef %197, ptr noundef %198, ptr noundef %199)
  %201 = icmp eq i32 %200, 1
  br i1 %201, label %202, label %209

202:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 2048, ptr %26) #3
  %203 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  %204 = load ptr, ptr %15, align 8, !tbaa !9
  %205 = getelementptr inbounds %struct.thermo, ptr %204, i32 0, i32 93
  %206 = getelementptr inbounds [2048 x i8], ptr %205, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %203, ptr noundef @.str, ptr noundef @.str.341, ptr noundef %206)
  %207 = load ptr, ptr %9, align 8, !tbaa !9
  %208 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %207, ptr noundef @.str.2, ptr noundef @__func__.perturb_timescale, i32 noundef 6132, ptr noundef %208)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %26) #3
  store i32 1, ptr %5, align 4
  store i32 1, ptr %22, align 4
  br label %432

209:                                              ; preds = %181
  %210 = load ptr, ptr %19, align 8, !tbaa !9
  %211 = load ptr, ptr %15, align 8, !tbaa !9
  %212 = getelementptr inbounds %struct.thermo, ptr %211, i32 0, i32 37
  %213 = load i32, ptr %212, align 4, !tbaa !36
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds double, ptr %210, i64 %214
  %216 = load double, ptr %215, align 8, !tbaa !5
  %217 = fcmp une double %216, 0.000000e+00
  br i1 %217, label %218, label %239

218:                                              ; preds = %209
  %219 = load ptr, ptr %19, align 8, !tbaa !9
  %220 = load ptr, ptr %15, align 8, !tbaa !9
  %221 = getelementptr inbounds %struct.thermo, ptr %220, i32 0, i32 37
  %222 = load i32, ptr %221, align 4, !tbaa !36
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds double, ptr %219, i64 %223
  %225 = load double, ptr %224, align 8, !tbaa !5
  %226 = fdiv double 1.000000e+00, %225
  store double %226, ptr %12, align 8, !tbaa !5
  %227 = load double, ptr %12, align 8, !tbaa !5
  %228 = load ptr, ptr %8, align 8, !tbaa !9
  %229 = load double, ptr %228, align 8, !tbaa !5
  %230 = fcmp olt double %227, %229
  br i1 %230, label %231, label %233

231:                                              ; preds = %218
  %232 = load double, ptr %12, align 8, !tbaa !5
  br label %236

233:                                              ; preds = %218
  %234 = load ptr, ptr %8, align 8, !tbaa !9
  %235 = load double, ptr %234, align 8, !tbaa !5
  br label %236

236:                                              ; preds = %233, %231
  %237 = phi double [ %232, %231 ], [ %235, %233 ]
  %238 = load ptr, ptr %8, align 8, !tbaa !9
  store double %237, ptr %238, align 8, !tbaa !5
  br label %239

239:                                              ; preds = %236, %209
  br label %240

240:                                              ; preds = %239, %170
  br label %241

241:                                              ; preds = %240, %130, %108
  %242 = load ptr, ptr %16, align 8, !tbaa !9
  %243 = getelementptr inbounds %struct.perturbs, ptr %242, i32 0, i32 3
  %244 = load i16, ptr %243, align 2, !tbaa !38
  %245 = sext i16 %244 to i32
  %246 = icmp eq i32 %245, 1
  br i1 %246, label %247, label %336

247:                                              ; preds = %241
  %248 = load ptr, ptr %13, align 8, !tbaa !9
  %249 = getelementptr inbounds %struct.perturb_parameters_and_workspace, ptr %248, i32 0, i32 4
  %250 = load i32, ptr %249, align 8, !tbaa !29
  %251 = load ptr, ptr %16, align 8, !tbaa !9
  %252 = getelementptr inbounds %struct.perturbs, ptr %251, i32 0, i32 58
  %253 = load i32, ptr %252, align 4, !tbaa !39
  %254 = icmp eq i32 %250, %253
  br i1 %254, label %255, label %336

255:                                              ; preds = %247
  %256 = load double, ptr %11, align 8, !tbaa !5
  %257 = load double, ptr %10, align 8, !tbaa !5
  %258 = fcmp olt double %256, %257
  br i1 %258, label %259, label %261

259:                                              ; preds = %255
  %260 = load double, ptr %11, align 8, !tbaa !5
  br label %263

261:                                              ; preds = %255
  %262 = load double, ptr %10, align 8, !tbaa !5
  br label %263

263:                                              ; preds = %261, %259
  %264 = phi double [ %260, %259 ], [ %262, %261 ]
  %265 = load ptr, ptr %8, align 8, !tbaa !9
  store double %264, ptr %265, align 8, !tbaa !5
  %266 = load ptr, ptr %17, align 8, !tbaa !9
  %267 = getelementptr inbounds %struct.perturb_workspace, ptr %266, i32 0, i32 56
  %268 = load ptr, ptr %267, align 8, !tbaa !31
  %269 = load ptr, ptr %17, align 8, !tbaa !9
  %270 = getelementptr inbounds %struct.perturb_workspace, ptr %269, i32 0, i32 49
  %271 = load i32, ptr %270, align 8, !tbaa !35
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds i32, ptr %268, i64 %272
  %274 = load i32, ptr %273, align 4, !tbaa !33
  %275 = icmp eq i32 %274, 1
  br i1 %275, label %276, label %335

276:                                              ; preds = %263
  %277 = load ptr, ptr %14, align 8, !tbaa !9
  %278 = load ptr, ptr %15, align 8, !tbaa !9
  %279 = load ptr, ptr %18, align 8, !tbaa !9
  %280 = load ptr, ptr %14, align 8, !tbaa !9
  %281 = getelementptr inbounds %struct.background, ptr %280, i32 0, i32 59
  %282 = load i32, ptr %281, align 8, !tbaa !26
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds double, ptr %279, i64 %283
  %285 = load double, ptr %284, align 8, !tbaa !5
  %286 = fdiv double 1.000000e+00, %285
  %287 = fsub double %286, 1.000000e+00
  %288 = load ptr, ptr %17, align 8, !tbaa !9
  %289 = getelementptr inbounds %struct.perturb_workspace, ptr %288, i32 0, i32 46
  %290 = load i16, ptr %289, align 4, !tbaa !24
  %291 = load ptr, ptr %17, align 8, !tbaa !9
  %292 = getelementptr inbounds %struct.perturb_workspace, ptr %291, i32 0, i32 48
  %293 = load ptr, ptr %18, align 8, !tbaa !9
  %294 = load ptr, ptr %19, align 8, !tbaa !9
  %295 = call i32 @thermodynamics_at_z(ptr noundef %277, ptr noundef %278, double noundef %287, i16 noundef signext %290, ptr noundef %292, ptr noundef %293, ptr noundef %294)
  %296 = icmp eq i32 %295, 1
  br i1 %296, label %297, label %304

297:                                              ; preds = %276
  call void @llvm.lifetime.start.p0(i64 2048, ptr %27) #3
  %298 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  %299 = load ptr, ptr %15, align 8, !tbaa !9
  %300 = getelementptr inbounds %struct.thermo, ptr %299, i32 0, i32 93
  %301 = getelementptr inbounds [2048 x i8], ptr %300, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %298, ptr noundef @.str, ptr noundef @.str.341, ptr noundef %301)
  %302 = load ptr, ptr %9, align 8, !tbaa !9
  %303 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %302, ptr noundef @.str.2, ptr noundef @__func__.perturb_timescale, i32 noundef 6163, ptr noundef %303)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %27) #3
  store i32 1, ptr %5, align 4
  store i32 1, ptr %22, align 4
  br label %432

304:                                              ; preds = %276
  %305 = load ptr, ptr %19, align 8, !tbaa !9
  %306 = load ptr, ptr %15, align 8, !tbaa !9
  %307 = getelementptr inbounds %struct.thermo, ptr %306, i32 0, i32 37
  %308 = load i32, ptr %307, align 4, !tbaa !36
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds double, ptr %305, i64 %309
  %311 = load double, ptr %310, align 8, !tbaa !5
  %312 = fcmp une double %311, 0.000000e+00
  br i1 %312, label %313, label %334

313:                                              ; preds = %304
  %314 = load ptr, ptr %19, align 8, !tbaa !9
  %315 = load ptr, ptr %15, align 8, !tbaa !9
  %316 = getelementptr inbounds %struct.thermo, ptr %315, i32 0, i32 37
  %317 = load i32, ptr %316, align 4, !tbaa !36
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds double, ptr %314, i64 %318
  %320 = load double, ptr %319, align 8, !tbaa !5
  %321 = fdiv double 1.000000e+00, %320
  store double %321, ptr %12, align 8, !tbaa !5
  %322 = load double, ptr %12, align 8, !tbaa !5
  %323 = load ptr, ptr %8, align 8, !tbaa !9
  %324 = load double, ptr %323, align 8, !tbaa !5
  %325 = fcmp olt double %322, %324
  br i1 %325, label %326, label %328

326:                                              ; preds = %313
  %327 = load double, ptr %12, align 8, !tbaa !5
  br label %331

328:                                              ; preds = %313
  %329 = load ptr, ptr %8, align 8, !tbaa !9
  %330 = load double, ptr %329, align 8, !tbaa !5
  br label %331

331:                                              ; preds = %328, %326
  %332 = phi double [ %327, %326 ], [ %330, %328 ]
  %333 = load ptr, ptr %8, align 8, !tbaa !9
  store double %332, ptr %333, align 8, !tbaa !5
  br label %334

334:                                              ; preds = %331, %304
  br label %335

335:                                              ; preds = %334, %263
  br label %336

336:                                              ; preds = %335, %247, %241
  %337 = load ptr, ptr %16, align 8, !tbaa !9
  %338 = getelementptr inbounds %struct.perturbs, ptr %337, i32 0, i32 4
  %339 = load i16, ptr %338, align 8, !tbaa !40
  %340 = sext i16 %339 to i32
  %341 = icmp eq i32 %340, 1
  br i1 %341, label %342, label %431

342:                                              ; preds = %336
  %343 = load ptr, ptr %13, align 8, !tbaa !9
  %344 = getelementptr inbounds %struct.perturb_parameters_and_workspace, ptr %343, i32 0, i32 4
  %345 = load i32, ptr %344, align 8, !tbaa !29
  %346 = load ptr, ptr %16, align 8, !tbaa !9
  %347 = getelementptr inbounds %struct.perturbs, ptr %346, i32 0, i32 57
  %348 = load i32, ptr %347, align 8, !tbaa !41
  %349 = icmp eq i32 %345, %348
  br i1 %349, label %350, label %431

350:                                              ; preds = %342
  %351 = load double, ptr %11, align 8, !tbaa !5
  %352 = load double, ptr %10, align 8, !tbaa !5
  %353 = fcmp olt double %351, %352
  br i1 %353, label %354, label %356

354:                                              ; preds = %350
  %355 = load double, ptr %11, align 8, !tbaa !5
  br label %358

356:                                              ; preds = %350
  %357 = load double, ptr %10, align 8, !tbaa !5
  br label %358

358:                                              ; preds = %356, %354
  %359 = phi double [ %355, %354 ], [ %357, %356 ]
  %360 = load ptr, ptr %8, align 8, !tbaa !9
  store double %359, ptr %360, align 8, !tbaa !5
  %361 = load ptr, ptr %17, align 8, !tbaa !9
  %362 = getelementptr inbounds %struct.perturb_workspace, ptr %361, i32 0, i32 56
  %363 = load ptr, ptr %362, align 8, !tbaa !31
  %364 = load ptr, ptr %17, align 8, !tbaa !9
  %365 = getelementptr inbounds %struct.perturb_workspace, ptr %364, i32 0, i32 49
  %366 = load i32, ptr %365, align 8, !tbaa !35
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds i32, ptr %363, i64 %367
  %369 = load i32, ptr %368, align 4, !tbaa !33
  %370 = icmp eq i32 %369, 1
  br i1 %370, label %371, label %430

371:                                              ; preds = %358
  %372 = load ptr, ptr %14, align 8, !tbaa !9
  %373 = load ptr, ptr %15, align 8, !tbaa !9
  %374 = load ptr, ptr %18, align 8, !tbaa !9
  %375 = load ptr, ptr %14, align 8, !tbaa !9
  %376 = getelementptr inbounds %struct.background, ptr %375, i32 0, i32 59
  %377 = load i32, ptr %376, align 8, !tbaa !26
  %378 = sext i32 %377 to i64
  %379 = getelementptr inbounds double, ptr %374, i64 %378
  %380 = load double, ptr %379, align 8, !tbaa !5
  %381 = fdiv double 1.000000e+00, %380
  %382 = fsub double %381, 1.000000e+00
  %383 = load ptr, ptr %17, align 8, !tbaa !9
  %384 = getelementptr inbounds %struct.perturb_workspace, ptr %383, i32 0, i32 46
  %385 = load i16, ptr %384, align 4, !tbaa !24
  %386 = load ptr, ptr %17, align 8, !tbaa !9
  %387 = getelementptr inbounds %struct.perturb_workspace, ptr %386, i32 0, i32 48
  %388 = load ptr, ptr %18, align 8, !tbaa !9
  %389 = load ptr, ptr %19, align 8, !tbaa !9
  %390 = call i32 @thermodynamics_at_z(ptr noundef %372, ptr noundef %373, double noundef %382, i16 noundef signext %385, ptr noundef %387, ptr noundef %388, ptr noundef %389)
  %391 = icmp eq i32 %390, 1
  br i1 %391, label %392, label %399

392:                                              ; preds = %371
  call void @llvm.lifetime.start.p0(i64 2048, ptr %28) #3
  %393 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  %394 = load ptr, ptr %15, align 8, !tbaa !9
  %395 = getelementptr inbounds %struct.thermo, ptr %394, i32 0, i32 93
  %396 = getelementptr inbounds [2048 x i8], ptr %395, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %393, ptr noundef @.str, ptr noundef @.str.341, ptr noundef %396)
  %397 = load ptr, ptr %9, align 8, !tbaa !9
  %398 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %397, ptr noundef @.str.2, ptr noundef @__func__.perturb_timescale, i32 noundef 6193, ptr noundef %398)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %28) #3
  store i32 1, ptr %5, align 4
  store i32 1, ptr %22, align 4
  br label %432

399:                                              ; preds = %371
  %400 = load ptr, ptr %19, align 8, !tbaa !9
  %401 = load ptr, ptr %15, align 8, !tbaa !9
  %402 = getelementptr inbounds %struct.thermo, ptr %401, i32 0, i32 37
  %403 = load i32, ptr %402, align 4, !tbaa !36
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds double, ptr %400, i64 %404
  %406 = load double, ptr %405, align 8, !tbaa !5
  %407 = fcmp une double %406, 0.000000e+00
  br i1 %407, label %408, label %429

408:                                              ; preds = %399
  %409 = load ptr, ptr %19, align 8, !tbaa !9
  %410 = load ptr, ptr %15, align 8, !tbaa !9
  %411 = getelementptr inbounds %struct.thermo, ptr %410, i32 0, i32 37
  %412 = load i32, ptr %411, align 4, !tbaa !36
  %413 = sext i32 %412 to i64
  %414 = getelementptr inbounds double, ptr %409, i64 %413
  %415 = load double, ptr %414, align 8, !tbaa !5
  %416 = fdiv double 1.000000e+00, %415
  store double %416, ptr %12, align 8, !tbaa !5
  %417 = load double, ptr %12, align 8, !tbaa !5
  %418 = load ptr, ptr %8, align 8, !tbaa !9
  %419 = load double, ptr %418, align 8, !tbaa !5
  %420 = fcmp olt double %417, %419
  br i1 %420, label %421, label %423

421:                                              ; preds = %408
  %422 = load double, ptr %12, align 8, !tbaa !5
  br label %426

423:                                              ; preds = %408
  %424 = load ptr, ptr %8, align 8, !tbaa !9
  %425 = load double, ptr %424, align 8, !tbaa !5
  br label %426

426:                                              ; preds = %423, %421
  %427 = phi double [ %422, %421 ], [ %425, %423 ]
  %428 = load ptr, ptr %8, align 8, !tbaa !9
  store double %427, ptr %428, align 8, !tbaa !5
  br label %429

429:                                              ; preds = %426, %399
  br label %430

430:                                              ; preds = %429, %358
  br label %431

431:                                              ; preds = %430, %342, %336
  store i32 0, ptr %5, align 4
  store i32 1, ptr %22, align 4
  br label %432

432:                                              ; preds = %431, %392, %297, %202, %102, %78, %52
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  %433 = load i32, ptr %5, align 4
  ret i32 %433
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 8}
!12 = !{!"perturb_parameters_and_workspace", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !13, i64 36, !13, i64 40, !6, i64 48, !10, i64 56}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !10, i64 16}
!15 = !{!12, !10, i64 24}
!16 = !{!12, !10, i64 56}
!17 = !{!18, !10, i64 48}
!18 = !{!"perturb_workspace", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, 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, !10, i64 216, !10, i64 224, !10, 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, !10, i64 312, !13, i64 320, !19, i64 324, !13, i64 328, !13, i64 332, !13, i64 336, !13, i64 340, !13, i64 344, !13, i64 348, !13, i64 352, !13, i64 356, !13, i64 360, !10, i64 368, !13, i64 376, !10, i64 384}
!19 = !{!"short", !7, i64 0}
!20 = !{!18, !10, i64 56}
!21 = !{!12, !6, i64 48}
!22 = !{!23, !19, i64 842}
!23 = !{!"background", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !19, 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, !19, i64 176, !6, i64 184, !6, i64 192, !10, i64 200, !13, i64 208, !13, i64 212, !6, i64 216, !13, i64 224, !10, i64 232, !10, i64 240, !6, i64 248, !10, i64 256, !6, i64 264, !10, i64 272, !6, i64 280, !10, i64 288, !6, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !6, i64 328, !6, i64 336, !6, i64 344, !6, i64 352, !13, i64 360, !10, 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, !13, i64 464, !13, i64 468, !13, i64 472, !13, i64 476, !13, i64 480, !13, i64 484, !13, i64 488, !13, i64 492, !13, i64 496, !13, i64 500, !13, i64 504, !13, i64 508, !13, i64 512, !13, i64 516, !13, i64 520, !13, i64 524, !13, i64 528, !13, i64 532, !13, i64 536, !13, i64 540, !13, i64 544, !13, i64 548, !13, i64 552, !13, i64 556, !13, i64 560, !13, i64 564, !13, i64 568, !13, i64 572, !13, i64 576, !13, i64 580, !13, i64 584, !13, i64 588, !13, i64 592, !13, i64 596, !13, i64 600, !13, i64 604, !13, i64 608, !13, i64 612, !13, i64 616, !13, i64 620, !13, i64 624, !13, i64 628, !10, i64 632, !10, i64 640, !10, i64 648, !10, i64 656, !10, i64 664, !13, i64 672, !13, i64 676, !13, i64 680, !13, i64 684, !13, i64 688, !13, i64 692, !13, i64 696, !13, i64 700, !13, i64 704, !13, i64 708, !13, i64 712, !13, i64 716, !13, i64 720, !19, i64 724, !19, i64 726, !19, i64 728, !19, i64 730, !19, i64 732, !19, i64 734, !19, i64 736, !19, i64 738, !19, i64 740, !19, i64 742, !19, i64 744, !10, i64 752, !10, i64 760, !10, i64 768, !10, i64 776, !10, i64 784, !10, i64 792, !10, i64 800, !10, i64 808, !10, i64 816, !10, i64 824, !10, i64 832, !19, i64 840, !19, i64 842, !19, i64 844, !19, i64 846, !19, i64 848, !19, i64 850, !7, i64 852, !19, i64 2900, !7, i64 2902}
!24 = !{!18, !19, i64 324}
!25 = !{!23, !13, i64 468}
!26 = !{!23, !13, i64 464}
!27 = !{!28, !19, i64 4}
!28 = !{!"perturbs", !19, i64 0, !19, i64 2, !19, i64 4, !19, i64 6, !19, i64 8, !19, i64 10, !19, i64 12, !19, i64 14, !19, i64 16, !19, i64 18, !19, i64 20, !13, i64 24, !19, i64 28, !19, i64 30, !19, i64 32, !19, i64 34, !19, i64 36, !19, i64 38, !19, i64 40, !19, i64 42, !19, i64 44, !19, i64 46, !19, i64 48, !19, i64 50, !19, i64 52, !19, i64 54, !19, i64 56, !19, i64 58, !19, i64 60, !13, i64 64, !13, i64 68, !13, i64 72, !13, i64 76, !6, i64 80, !13, i64 88, !13, i64 92, !7, i64 96, !7, i64 896, !13, i64 1696, !13, i64 1700, !13, i64 1704, !13, i64 1708, !13, i64 1712, !6, i64 1720, !13, i64 1728, !13, i64 1732, !7, i64 1736, !6, i64 1976, !6, i64 1984, !6, i64 1992, !10, i64 2000, !10, i64 2008, !13, i64 2016, !19, i64 2020, !19, i64 2022, !13, i64 2024, !13, i64 2028, !13, i64 2032, !13, i64 2036, !13, i64 2040, !13, i64 2044, !13, i64 2048, !13, i64 2052, !13, i64 2056, !13, i64 2060, !13, i64 2064, !10, i64 2072, !19, i64 2080, !19, i64 2082, !19, i64 2084, !19, i64 2086, !19, i64 2088, !19, i64 2090, !19, i64 2092, !19, i64 2094, !19, i64 2096, !19, i64 2098, !19, i64 2100, !19, i64 2102, !19, i64 2104, !19, i64 2106, !19, i64 2108, !19, i64 2110, !19, i64 2112, !19, i64 2114, !19, i64 2116, !19, i64 2118, !19, i64 2120, !19, i64 2122, !19, i64 2124, !19, i64 2126, !19, i64 2128, !19, i64 2130, !19, i64 2132, !19, i64 2134, !19, i64 2136, !19, i64 2138, !19, i64 2140, !19, i64 2142, !19, i64 2144, !19, i64 2146, !19, i64 2148, !19, i64 2150, !19, i64 2152, !19, i64 2154, !19, i64 2156, !19, i64 2158, !13, i64 2160, !13, i64 2164, !13, i64 2168, !13, i64 2172, !13, i64 2176, !13, i64 2180, !13, i64 2184, !13, i64 2188, !13, i64 2192, !13, i64 2196, !13, i64 2200, !13, i64 2204, !13, i64 2208, !13, i64 2212, !13, i64 2216, !13, i64 2220, !13, i64 2224, !13, i64 2228, !13, i64 2232, !13, i64 2236, !13, i64 2240, !13, i64 2244, !13, i64 2248, !13, i64 2252, !13, i64 2256, !13, i64 2260, !13, i64 2264, !13, i64 2268, !13, i64 2272, !13, i64 2276, !13, i64 2280, !13, i64 2284, !13, i64 2288, !13, i64 2292, !13, i64 2296, !13, i64 2300, !13, i64 2304, !13, i64 2308, !13, i64 2312, !13, i64 2316, !13, i64 2320, !13, i64 2324, !13, i64 2328, !13, i64 2332, !10, i64 2336, !10, i64 2344, !10, i64 2352, !10, i64 2360, !10, i64 2368, !6, i64 2376, !6, i64 2384, !10, i64 2392, !13, i64 2400, !6, i64 2408, !6, i64 2416, !6, i64 2424, !10, i64 2432, !10, i64 2440, !10, i64 2448, !10, i64 2456, !10, i64 2464, !10, i64 2472, !13, i64 2480, !10, i64 2488, !10, i64 2496, !10, i64 2504, !7, i64 2512, !7, i64 10512, !7, i64 18512, !13, i64 26512, !13, i64 26516, !13, i64 26520, !7, i64 26528, !7, i64 26768, !7, i64 27008, !7, i64 27248, !7, i64 27368, !7, i64 27488, !19, i64 27608, !7, i64 27610}
!29 = !{!12, !13, i64 32}
!30 = !{!28, !13, i64 2028}
!31 = !{!18, !10, i64 368}
!32 = !{!18, !13, i64 340}
!33 = !{!13, !13, i64 0}
!34 = !{!23, !19, i64 732}
!35 = !{!18, !13, i64 336}
!36 = !{!37, !13, i64 276}
!37 = !{!"thermo", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !6, i64 24, !6, i64 32, !19, i64 40, !19, i64 42, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !13, i64 80, !10, i64 88, !10, i64 96, !6, i64 104, !13, i64 112, !10, i64 120, !10, i64 128, !6, i64 136, !13, i64 144, !10, i64 152, !10, i64 160, !6, i64 168, !19, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !6, i64 264, !13, i64 272, !13, i64 276, !13, i64 280, !13, i64 284, !13, i64 288, !13, i64 292, !13, i64 296, !13, i64 300, !13, i64 304, !13, i64 308, !13, i64 312, !13, i64 316, !13, i64 320, !13, i64 324, !13, i64 328, !13, i64 332, !13, i64 336, !13, i64 340, !13, i64 344, !13, i64 348, !13, i64 352, !13, i64 356, !13, i64 360, !13, i64 364, !13, i64 368, !13, i64 372, !13, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !6, i64 408, !6, i64 416, !6, i64 424, !6, i64 432, !6, i64 440, !6, i64 448, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !6, i64 504, !6, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !6, i64 592, !19, i64 600, !19, i64 602, !19, i64 604, !7, i64 606}
!38 = !{!28, !19, i64 6}
!39 = !{!28, !13, i64 2036}
!40 = !{!28, !19, i64 8}
!41 = !{!28, !13, i64 2032}


; 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.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.331 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.338 = external hidden unnamed_addr constant [15 x i8], align 1
@__func__.perturb_timescale = external hidden unnamed_addr constant [18 x i8], align 1
@.str.339 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.340 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.341 = external hidden unnamed_addr constant [129 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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @perturb_timescale(double noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef %2, ptr noundef %3) local_unnamed_addr #2 {
  %5 = alloca [2048 x i8], align 16
  %6 = alloca [2048 x i8], align 16
  %7 = alloca [2048 x i8], align 16
  %8 = alloca [2048 x i8], align 16
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  %11 = alloca [2048 x i8], align 16
  %12 = alloca [2048 x i8], align 16
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 16
  %16 = load ptr, ptr %15, align 8, !tbaa !12
  %17 = getelementptr inbounds i8, ptr %1, i64 24
  %18 = load ptr, ptr %17, align 8, !tbaa !13
  %19 = getelementptr inbounds i8, ptr %1, i64 56
  %20 = load ptr, ptr %19, align 8, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %20, i64 48
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = getelementptr inbounds i8, ptr %20, i64 56
  %24 = load ptr, ptr %23, align 8, !tbaa !18
  %25 = getelementptr inbounds i8, ptr %1, i64 48
  %26 = load double, ptr %25, align 8, !tbaa !19
  %27 = fcmp oeq double %26, 0.000000e+00
  br i1 %27, label %28, label %30

28:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %5) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %5, ptr noundef nonnull @.str.157) #3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %6) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %6, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.338, ptr noundef nonnull %5) #3
  %29 = getelementptr inbounds i8, ptr %18, i64 27610
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %29, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_timescale, i32 noundef 6096, ptr noundef nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %5) #3
  br label %199

30:                                               ; preds = %4
  %31 = fdiv double 1.000000e+00, %26
  %32 = getelementptr inbounds i8, ptr %14, i64 842
  %33 = load i16, ptr %32, align 2, !tbaa !20
  %34 = getelementptr inbounds i8, ptr %20, i64 324
  %35 = load i16, ptr %34, align 4, !tbaa !22
  %36 = getelementptr inbounds i8, ptr %20, i64 328
  %37 = tail call i32 @background_at_tau(ptr noundef %14, double noundef %0, i16 noundef signext %33, i16 noundef signext %35, ptr noundef nonnull %36, ptr noundef %22) #3
  %38 = icmp eq i32 %37, 1
  br i1 %38, label %39, label %41

39:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %7) #3
  %40 = getelementptr inbounds i8, ptr %14, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str, ptr noundef nonnull @.str.339, ptr noundef nonnull %40) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %3, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_timescale, i32 noundef 6105, ptr noundef nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #3
  br label %199

41:                                               ; preds = %30
  %42 = getelementptr inbounds i8, ptr %14, i64 468
  %43 = load i32, ptr %42, align 4, !tbaa !23
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds double, ptr %22, i64 %44
  %46 = load double, ptr %45, align 8, !tbaa !24
  %47 = getelementptr inbounds i8, ptr %14, i64 464
  %48 = load i32, ptr %47, align 8, !tbaa !25
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds double, ptr %22, i64 %49
  %51 = load double, ptr %50, align 8, !tbaa !24
  %52 = fmul double %46, %51
  %53 = fcmp oeq double %52, 0.000000e+00
  br i1 %53, label %54, label %55

54:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.331) #3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.340, ptr noundef nonnull %8) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %3, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_timescale, i32 noundef 6109, ptr noundef nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #3
  br label %199

55:                                               ; preds = %41
  %56 = fdiv double 1.000000e+00, %52
  %57 = getelementptr inbounds i8, ptr %18, i64 4
  %58 = load i16, ptr %57, align 4, !tbaa !26
  %59 = icmp eq i16 %58, 1
  br i1 %59, label %60, label %109

60:                                               ; preds = %55
  %61 = getelementptr inbounds i8, ptr %1, i64 32
  %62 = load i32, ptr %61, align 8, !tbaa !28
  %63 = getelementptr inbounds i8, ptr %18, i64 2028
  %64 = load i32, ptr %63, align 4, !tbaa !29
  %65 = icmp eq i32 %62, %64
  br i1 %65, label %66, label %109

66:                                               ; preds = %60
  store double %56, ptr %2, align 8, !tbaa !24
  %67 = getelementptr inbounds i8, ptr %20, i64 368
  %68 = load ptr, ptr %67, align 8, !tbaa !30
  %69 = getelementptr inbounds i8, ptr %20, i64 340
  %70 = load i32, ptr %69, align 4, !tbaa !31
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds i32, ptr %68, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !32
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %79, label %75

75:                                               ; preds = %66
  %76 = getelementptr inbounds i8, ptr %14, i64 732
  %77 = load i16, ptr %76, align 4, !tbaa !33
  %78 = icmp eq i16 %77, 1
  br i1 %78, label %79, label %81

79:                                               ; preds = %75, %66
  %80 = fcmp olt double %31, %56
  %. = select i1 %80, double %31, double %56
  store double %., ptr %2, align 8, !tbaa !24
  br label %81

81:                                               ; preds = %79, %75
  %82 = getelementptr inbounds i8, ptr %20, i64 336
  %83 = load i32, ptr %82, align 8, !tbaa !34
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds i32, ptr %68, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !32
  %87 = icmp eq i32 %86, 1
  br i1 %87, label %88, label %109

88:                                               ; preds = %81
  %89 = load double, ptr %50, align 8, !tbaa !24
  %90 = fdiv double 1.000000e+00, %89
  %91 = fadd double %90, -1.000000e+00
  %92 = load i16, ptr %34, align 4, !tbaa !22
  %93 = getelementptr inbounds i8, ptr %20, i64 332
  %94 = tail call i32 @thermodynamics_at_z(ptr noundef nonnull %14, ptr noundef %16, double noundef %91, i16 noundef signext %92, ptr noundef nonnull %93, ptr noundef nonnull %22, ptr noundef %24) #3
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %96, label %98

96:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #3
  %97 = getelementptr inbounds i8, ptr %16, i64 606
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str, ptr noundef nonnull @.str.341, ptr noundef nonnull %97) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %3, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_timescale, i32 noundef 6132, ptr noundef nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #3
  br label %199

98:                                               ; preds = %88
  %99 = getelementptr inbounds i8, ptr %16, i64 276
  %100 = load i32, ptr %99, align 4, !tbaa !35
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds double, ptr %24, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !24
  %104 = fcmp une double %103, 0.000000e+00
  br i1 %104, label %105, label %109

105:                                              ; preds = %98
  %106 = fdiv double 1.000000e+00, %103
  %107 = load double, ptr %2, align 8, !tbaa !24
  %108 = fcmp olt double %106, %107
  %.132 = select i1 %108, double %106, double %107
  store double %.132, ptr %2, align 8, !tbaa !24
  br label %109

109:                                              ; preds = %81, %105, %98, %60, %55
  %110 = getelementptr inbounds i8, ptr %18, i64 6
  %111 = load i16, ptr %110, align 2, !tbaa !37
  %112 = icmp eq i16 %111, 1
  br i1 %112, label %113, label %154

113:                                              ; preds = %109
  %114 = getelementptr inbounds i8, ptr %1, i64 32
  %115 = load i32, ptr %114, align 8, !tbaa !28
  %116 = getelementptr inbounds i8, ptr %18, i64 2036
  %117 = load i32, ptr %116, align 4, !tbaa !38
  %118 = icmp eq i32 %115, %117
  br i1 %118, label %119, label %154

119:                                              ; preds = %113
  %120 = fcmp olt double %56, %31
  %121 = select i1 %120, double %56, double %31
  store double %121, ptr %2, align 8, !tbaa !24
  %122 = getelementptr inbounds i8, ptr %20, i64 368
  %123 = load ptr, ptr %122, align 8, !tbaa !30
  %124 = getelementptr inbounds i8, ptr %20, i64 336
  %125 = load i32, ptr %124, align 8, !tbaa !34
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i32, ptr %123, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !32
  %129 = icmp eq i32 %128, 1
  br i1 %129, label %130, label %154

130:                                              ; preds = %119
  %131 = load i32, ptr %47, align 8, !tbaa !25
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds double, ptr %22, i64 %132
  %134 = load double, ptr %133, align 8, !tbaa !24
  %135 = fdiv double 1.000000e+00, %134
  %136 = fadd double %135, -1.000000e+00
  %137 = load i16, ptr %34, align 4, !tbaa !22
  %138 = getelementptr inbounds i8, ptr %20, i64 332
  %139 = tail call i32 @thermodynamics_at_z(ptr noundef nonnull %14, ptr noundef %16, double noundef %136, i16 noundef signext %137, ptr noundef nonnull %138, ptr noundef nonnull %22, ptr noundef %24) #3
  %140 = icmp eq i32 %139, 1
  br i1 %140, label %141, label %143

141:                                              ; preds = %130
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #3
  %142 = getelementptr inbounds i8, ptr %16, i64 606
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str, ptr noundef nonnull @.str.341, ptr noundef nonnull %142) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %3, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_timescale, i32 noundef 6163, ptr noundef nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #3
  br label %199

143:                                              ; preds = %130
  %144 = getelementptr inbounds i8, ptr %16, i64 276
  %145 = load i32, ptr %144, align 4, !tbaa !35
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds double, ptr %24, i64 %146
  %148 = load double, ptr %147, align 8, !tbaa !24
  %149 = fcmp une double %148, 0.000000e+00
  br i1 %149, label %150, label %154

150:                                              ; preds = %143
  %151 = fdiv double 1.000000e+00, %148
  %152 = load double, ptr %2, align 8, !tbaa !24
  %153 = fcmp olt double %151, %152
  %.133 = select i1 %153, double %151, double %152
  store double %.133, ptr %2, align 8, !tbaa !24
  br label %154

154:                                              ; preds = %119, %150, %143, %113, %109
  %155 = getelementptr inbounds i8, ptr %18, i64 8
  %156 = load i16, ptr %155, align 8, !tbaa !39
  %157 = icmp eq i16 %156, 1
  br i1 %157, label %158, label %199

158:                                              ; preds = %154
  %159 = getelementptr inbounds i8, ptr %1, i64 32
  %160 = load i32, ptr %159, align 8, !tbaa !28
  %161 = getelementptr inbounds i8, ptr %18, i64 2032
  %162 = load i32, ptr %161, align 8, !tbaa !40
  %163 = icmp eq i32 %160, %162
  br i1 %163, label %164, label %199

164:                                              ; preds = %158
  %165 = fcmp olt double %56, %31
  %166 = select i1 %165, double %56, double %31
  store double %166, ptr %2, align 8, !tbaa !24
  %167 = getelementptr inbounds i8, ptr %20, i64 368
  %168 = load ptr, ptr %167, align 8, !tbaa !30
  %169 = getelementptr inbounds i8, ptr %20, i64 336
  %170 = load i32, ptr %169, align 8, !tbaa !34
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds i32, ptr %168, i64 %171
  %173 = load i32, ptr %172, align 4, !tbaa !32
  %174 = icmp eq i32 %173, 1
  br i1 %174, label %175, label %199

175:                                              ; preds = %164
  %176 = load i32, ptr %47, align 8, !tbaa !25
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds double, ptr %22, i64 %177
  %179 = load double, ptr %178, align 8, !tbaa !24
  %180 = fdiv double 1.000000e+00, %179
  %181 = fadd double %180, -1.000000e+00
  %182 = load i16, ptr %34, align 4, !tbaa !22
  %183 = getelementptr inbounds i8, ptr %20, i64 332
  %184 = tail call i32 @thermodynamics_at_z(ptr noundef nonnull %14, ptr noundef %16, double noundef %181, i16 noundef signext %182, ptr noundef nonnull %183, ptr noundef nonnull %22, ptr noundef %24) #3
  %185 = icmp eq i32 %184, 1
  br i1 %185, label %186, label %188

186:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #3
  %187 = getelementptr inbounds i8, ptr %16, i64 606
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str, ptr noundef nonnull @.str.341, ptr noundef nonnull %187) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %3, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.perturb_timescale, i32 noundef 6193, ptr noundef nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #3
  br label %199

188:                                              ; preds = %175
  %189 = getelementptr inbounds i8, ptr %16, i64 276
  %190 = load i32, ptr %189, align 4, !tbaa !35
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds double, ptr %24, i64 %191
  %193 = load double, ptr %192, align 8, !tbaa !24
  %194 = fcmp une double %193, 0.000000e+00
  br i1 %194, label %195, label %199

195:                                              ; preds = %188
  %196 = fdiv double 1.000000e+00, %193
  %197 = load double, ptr %2, align 8, !tbaa !24
  %198 = fcmp olt double %196, %197
  %.134 = select i1 %198, double %196, double %197
  store double %.134, ptr %2, align 8, !tbaa !24
  br label %199

199:                                              ; preds = %154, %158, %188, %195, %164, %186, %141, %96, %54, %39, %28
  %.0 = phi i32 [ 1, %28 ], [ 1, %39 ], [ 1, %54 ], [ 1, %96 ], [ 1, %141 ], [ 1, %186 ], [ 0, %164 ], [ 0, %195 ], [ 0, %188 ], [ 0, %158 ], [ 0, %154 ]
  ret i32 %.0
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"perturb_parameters_and_workspace", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !11, i64 48, !7, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !7, i64 24}
!14 = !{!6, !7, i64 56}
!15 = !{!16, !7, i64 48}
!16 = !{!"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, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !11, i64 272, !11, i64 280, !11, i64 288, !11, i64 296, !11, i64 304, !7, i64 312, !10, i64 320, !17, 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, !7, i64 368, !10, i64 376, !7, i64 384}
!17 = !{!"short", !8, i64 0}
!18 = !{!16, !7, i64 56}
!19 = !{!6, !11, i64 48}
!20 = !{!21, !17, i64 842}
!21 = !{!"background", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !10, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !17, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !17, i64 176, !11, i64 184, !11, i64 192, !7, i64 200, !10, i64 208, !10, i64 212, !11, i64 216, !10, i64 224, !7, i64 232, !7, i64 240, !11, i64 248, !7, i64 256, !11, i64 264, !7, i64 272, !11, i64 280, !7, i64 288, !11, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !11, i64 328, !11, i64 336, !11, i64 344, !11, i64 352, !10, i64 360, !7, i64 368, !11, i64 376, !11, i64 384, !11, i64 392, !11, i64 400, !11, i64 408, !11, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !10, i64 548, !10, i64 552, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !10, i64 592, !10, i64 596, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !10, i64 616, !10, i64 620, !10, i64 624, !10, i64 628, !7, i64 632, !7, i64 640, !7, i64 648, !7, i64 656, !7, 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, !17, i64 724, !17, i64 726, !17, i64 728, !17, i64 730, !17, i64 732, !17, i64 734, !17, i64 736, !17, i64 738, !17, i64 740, !17, i64 742, !17, i64 744, !7, i64 752, !7, i64 760, !7, i64 768, !7, i64 776, !7, i64 784, !7, i64 792, !7, i64 800, !7, i64 808, !7, i64 816, !7, i64 824, !7, i64 832, !17, i64 840, !17, i64 842, !17, i64 844, !17, i64 846, !17, i64 848, !17, i64 850, !8, i64 852, !17, i64 2900, !8, i64 2902}
!22 = !{!16, !17, i64 324}
!23 = !{!21, !10, i64 468}
!24 = !{!11, !11, i64 0}
!25 = !{!21, !10, i64 464}
!26 = !{!27, !17, i64 4}
!27 = !{!"perturbs", !17, i64 0, !17, i64 2, !17, i64 4, !17, i64 6, !17, i64 8, !17, i64 10, !17, i64 12, !17, i64 14, !17, i64 16, !17, i64 18, !17, i64 20, !10, i64 24, !17, i64 28, !17, i64 30, !17, i64 32, !17, i64 34, !17, i64 36, !17, i64 38, !17, i64 40, !17, i64 42, !17, i64 44, !17, i64 46, !17, i64 48, !17, i64 50, !17, i64 52, !17, i64 54, !17, i64 56, !17, i64 58, !17, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !11, i64 80, !10, i64 88, !10, i64 92, !8, i64 96, !8, i64 896, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !11, i64 1720, !10, i64 1728, !10, i64 1732, !8, i64 1736, !11, i64 1976, !11, i64 1984, !11, i64 1992, !7, i64 2000, !7, i64 2008, !10, i64 2016, !17, i64 2020, !17, 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, !7, i64 2072, !17, i64 2080, !17, i64 2082, !17, i64 2084, !17, i64 2086, !17, i64 2088, !17, i64 2090, !17, i64 2092, !17, i64 2094, !17, i64 2096, !17, i64 2098, !17, i64 2100, !17, i64 2102, !17, i64 2104, !17, i64 2106, !17, i64 2108, !17, i64 2110, !17, i64 2112, !17, i64 2114, !17, i64 2116, !17, i64 2118, !17, i64 2120, !17, i64 2122, !17, i64 2124, !17, i64 2126, !17, i64 2128, !17, i64 2130, !17, i64 2132, !17, i64 2134, !17, i64 2136, !17, i64 2138, !17, i64 2140, !17, i64 2142, !17, i64 2144, !17, i64 2146, !17, i64 2148, !17, i64 2150, !17, i64 2152, !17, i64 2154, !17, i64 2156, !17, 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, !7, i64 2336, !7, i64 2344, !7, i64 2352, !7, i64 2360, !7, i64 2368, !11, i64 2376, !11, i64 2384, !7, i64 2392, !10, i64 2400, !11, i64 2408, !11, i64 2416, !11, i64 2424, !7, i64 2432, !7, i64 2440, !7, i64 2448, !7, i64 2456, !7, i64 2464, !7, i64 2472, !10, i64 2480, !7, i64 2488, !7, i64 2496, !7, i64 2504, !8, i64 2512, !8, i64 10512, !8, i64 18512, !10, i64 26512, !10, i64 26516, !10, i64 26520, !8, i64 26528, !8, i64 26768, !8, i64 27008, !8, i64 27248, !8, i64 27368, !8, i64 27488, !17, i64 27608, !8, i64 27610}
!28 = !{!6, !10, i64 32}
!29 = !{!27, !10, i64 2028}
!30 = !{!16, !7, i64 368}
!31 = !{!16, !10, i64 340}
!32 = !{!10, !10, i64 0}
!33 = !{!21, !17, i64 732}
!34 = !{!16, !10, i64 336}
!35 = !{!36, !10, i64 276}
!36 = !{!"thermo", !11, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !11, i64 24, !11, i64 32, !17, i64 40, !17, i64 42, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !10, i64 80, !7, i64 88, !7, i64 96, !11, i64 104, !10, i64 112, !7, i64 120, !7, i64 128, !11, i64 136, !10, i64 144, !7, i64 152, !7, i64 160, !11, i64 168, !17, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !11, i64 216, !11, i64 224, !11, i64 232, !11, i64 240, !11, i64 248, !11, i64 256, !11, i64 264, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !7, i64 384, !7, i64 392, !7, i64 400, !11, i64 408, !11, i64 416, !11, i64 424, !11, i64 432, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !11, i64 520, !11, i64 528, !11, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !11, i64 576, !11, i64 584, !11, i64 592, !17, i64 600, !17, i64 602, !17, i64 604, !8, i64 606}
!37 = !{!27, !17, i64 6}
!38 = !{!27, !10, i64 2036}
!39 = !{!27, !17, i64 8}
!40 = !{!27, !10, i64 2032}


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