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

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

@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [34 x i8], align 1
@__func__.nonlinear_hmcode_sigma8_at_z = external hidden unnamed_addr constant [29 x i8], align 1
@.str.219 = external hidden unnamed_addr constant [124 x i8], align 1
@.str.220 = external hidden unnamed_addr constant [128 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_tau_of_z(ptr noundef, double noundef, ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @nonlinear_hmcode_sigma8_at_z(ptr noundef %0, ptr noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #2 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca [2048 x i8], align 16
  %16 = alloca i32, align 4
  %17 = alloca [2048 x i8], align 16
  %18 = alloca [2048 x i8], align 16
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store double %2, ptr %10, align 8, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = load double, ptr %10, align 8, !tbaa !9
  %21 = call i32 @background_tau_of_z(ptr noundef %19, double noundef %20, ptr noundef %14)
  %22 = icmp eq i32 %21, 1
  br i1 %22, label %23, label %32

23:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 2048, ptr %15) #3
  %24 = getelementptr inbounds [2048 x i8], ptr %15, i64 0, i64 0
  %25 = load ptr, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.background, ptr %25, i32 0, i32 149
  %27 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %24, ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %27)
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.nonlinear, ptr %28, i32 0, i32 45
  %30 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  %31 = getelementptr inbounds [2048 x i8], ptr %15, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %30, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_sigma8_at_z, i32 noundef 4201, ptr noundef %31)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %15) #3
  store i32 1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %145

32:                                               ; preds = %6
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.nonlinear, ptr %33, i32 0, i32 32
  %35 = load i32, ptr %34, align 4, !tbaa !11
  %36 = icmp eq i32 %35, 1
  br i1 %36, label %37, label %50

37:                                               ; preds = %32
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.nonlinear_workspace, ptr %38, i32 0, i32 6
  %40 = load ptr, ptr %39, align 8, !tbaa !15
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.nonlinear, ptr %41, i32 0, i32 13
  %43 = load i32, ptr %42, align 4, !tbaa !17
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds ptr, ptr %40, i64 %44
  %46 = load ptr, ptr %45, align 8, !tbaa !5
  %47 = getelementptr inbounds double, ptr %46, i64 0
  %48 = load double, ptr %47, align 8, !tbaa !9
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  store double %48, ptr %49, align 8, !tbaa !9
  br label %83

50:                                               ; preds = %32
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.nonlinear, ptr %51, i32 0, i32 33
  %53 = load ptr, ptr %52, align 8, !tbaa !18
  %54 = load ptr, ptr %13, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.nonlinear_workspace, ptr %54, i32 0, i32 6
  %56 = load ptr, ptr %55, align 8, !tbaa !15
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.nonlinear, ptr %57, i32 0, i32 13
  %59 = load i32, ptr %58, align 4, !tbaa !17
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds ptr, ptr %56, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.nonlinear, ptr %63, i32 0, i32 32
  %65 = load i32, ptr %64, align 4, !tbaa !11
  %66 = load double, ptr %14, align 8, !tbaa !9
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.nonlinear, ptr %68, i32 0, i32 45
  %70 = getelementptr inbounds [2048 x i8], ptr %69, i64 0, i64 0
  %71 = call i32 @array_interpolate_two(ptr noundef %53, i32 noundef 1, i32 noundef 0, ptr noundef %62, i32 noundef 1, i32 noundef %65, double noundef %66, ptr noundef %67, i32 noundef 1, ptr noundef %70)
  %72 = icmp eq i32 %71, 1
  br i1 %72, label %73, label %82

73:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 2048, ptr %17) #3
  %74 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.nonlinear, ptr %75, i32 0, i32 45
  %77 = getelementptr inbounds [2048 x i8], ptr %76, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %74, ptr noundef @.str.4, ptr noundef @.str.219, ptr noundef %77)
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.nonlinear, ptr %78, i32 0, i32 45
  %80 = getelementptr inbounds [2048 x i8], ptr %79, i64 0, i64 0
  %81 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %80, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_sigma8_at_z, i32 noundef 4218, ptr noundef %81)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %17) #3
  store i32 1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %145

82:                                               ; preds = %50
  br label %83

83:                                               ; preds = %82, %37
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.background, ptr %84, i32 0, i32 123
  %86 = load i16, ptr %85, align 4, !tbaa !19
  %87 = icmp ne i16 %86, 0
  br i1 %87, label %88, label %140

88:                                               ; preds = %83
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.nonlinear, ptr %89, i32 0, i32 32
  %91 = load i32, ptr %90, align 4, !tbaa !11
  %92 = icmp eq i32 %91, 1
  br i1 %92, label %93, label %106

93:                                               ; preds = %88
  %94 = load ptr, ptr %13, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.nonlinear_workspace, ptr %94, i32 0, i32 6
  %96 = load ptr, ptr %95, align 8, !tbaa !15
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.nonlinear, ptr %97, i32 0, i32 14
  %99 = load i32, ptr %98, align 8, !tbaa !21
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %96, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = getelementptr inbounds double, ptr %102, i64 0
  %104 = load double, ptr %103, align 8, !tbaa !9
  %105 = load ptr, ptr %12, align 8, !tbaa !5
  store double %104, ptr %105, align 8, !tbaa !9
  br label %139

106:                                              ; preds = %88
  %107 = load ptr, ptr %9, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.nonlinear, ptr %107, i32 0, i32 33
  %109 = load ptr, ptr %108, align 8, !tbaa !18
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.nonlinear_workspace, ptr %110, i32 0, i32 6
  %112 = load ptr, ptr %111, align 8, !tbaa !15
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.nonlinear, ptr %113, i32 0, i32 14
  %115 = load i32, ptr %114, align 8, !tbaa !21
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds ptr, ptr %112, i64 %116
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.nonlinear, ptr %119, i32 0, i32 32
  %121 = load i32, ptr %120, align 4, !tbaa !11
  %122 = load double, ptr %14, align 8, !tbaa !9
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.nonlinear, ptr %124, i32 0, i32 45
  %126 = getelementptr inbounds [2048 x i8], ptr %125, i64 0, i64 0
  %127 = call i32 @array_interpolate_two(ptr noundef %109, i32 noundef 1, i32 noundef 0, ptr noundef %118, i32 noundef 1, i32 noundef %121, double noundef %122, ptr noundef %123, i32 noundef 1, ptr noundef %126)
  %128 = icmp eq i32 %127, 1
  br i1 %128, label %129, label %138

129:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 2048, ptr %18) #3
  %130 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.nonlinear, ptr %131, i32 0, i32 45
  %133 = getelementptr inbounds [2048 x i8], ptr %132, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %130, ptr noundef @.str.4, ptr noundef @.str.220, ptr noundef %133)
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.nonlinear, ptr %134, i32 0, i32 45
  %136 = getelementptr inbounds [2048 x i8], ptr %135, i64 0, i64 0
  %137 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %136, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_hmcode_sigma8_at_z, i32 noundef 4239, ptr noundef %137)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %18) #3
  store i32 1, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %145

138:                                              ; preds = %106
  br label %139

139:                                              ; preds = %138, %93
  br label %144

140:                                              ; preds = %83
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = load double, ptr %141, align 8, !tbaa !9
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  store double %142, ptr %143, align 8, !tbaa !9
  br label %144

144:                                              ; preds = %140, %139
  store i32 0, ptr %7, align 4
  store i32 1, ptr %16, align 4
  br label %145

145:                                              ; preds = %144, %129, %73, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  %146 = load i32, ptr %7, align 4
  ret i32 %146
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 188}
!12 = !{!"nonlinear", !13, i64 0, !13, i64 4, !13, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !14, i64 40, !13, i64 44, !13, i64 48, !13, i64 52, !6, i64 56, !14, i64 64, !14, i64 66, !13, i64 68, !13, i64 72, !13, i64 76, !13, i64 80, !13, i64 84, !14, i64 88, !13, i64 92, !6, i64 96, !6, i64 104, !6, i64 112, !13, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !13, i64 184, !13, i64 188, !6, i64 192, !6, i64 200, !6, i64 208, !13, i64 216, !13, i64 220, !13, i64 224, !13, i64 228, !13, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !14, i64 264, !7, i64 266}
!13 = !{!"int", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!16, !6, i64 48}
!16 = !{!"nonlinear_workspace", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !10, i64 80}
!17 = !{!12, !13, i64 68}
!18 = !{!12, !6, i64 192}
!19 = !{!20, !14, i64 732}
!20 = !{!"background", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !13, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !14, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !14, i64 176, !10, i64 184, !10, i64 192, !6, i64 200, !13, i64 208, !13, i64 212, !10, i64 216, !13, i64 224, !6, i64 232, !6, i64 240, !10, i64 248, !6, i64 256, !10, i64 264, !6, i64 272, !10, i64 280, !6, i64 288, !10, i64 296, !6, i64 304, !6, i64 312, !6, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !13, i64 360, !6, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, 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, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656, !6, 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, !14, i64 724, !14, i64 726, !14, i64 728, !14, i64 730, !14, i64 732, !14, i64 734, !14, i64 736, !14, i64 738, !14, i64 740, !14, i64 742, !14, 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, !14, i64 840, !14, i64 842, !14, i64 844, !14, i64 846, !14, i64 848, !14, i64 850, !7, i64 852, !14, i64 2900, !7, i64 2902}
!21 = !{!12, !13, i64 72}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [34 x i8], align 1
@__func__.nonlinear_hmcode_sigma8_at_z = external hidden unnamed_addr constant [29 x i8], align 1
@.str.219 = external hidden unnamed_addr constant [124 x i8], align 1
@.str.220 = external hidden unnamed_addr constant [128 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_tau_of_z(ptr noundef, double noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @nonlinear_hmcode_sigma8_at_z(ptr noundef %0, ptr noundef %1, double noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef readonly %5) local_unnamed_addr #2 {
  %7 = alloca double, align 8
  %8 = alloca [2048 x i8], align 16
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %11 = call i32 @background_tau_of_z(ptr noundef %0, double noundef %2, ptr noundef nonnull %7) #3
  %12 = icmp eq i32 %11, 1
  br i1 %12, label %13, label %16

13:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #3
  %14 = getelementptr inbounds i8, ptr %0, i64 2902
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull %14) #3
  %15 = getelementptr inbounds i8, ptr %1, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_sigma8_at_z, i32 noundef 4201, ptr noundef nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #3
  br label %76

16:                                               ; preds = %6
  %17 = getelementptr inbounds i8, ptr %1, i64 188
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = icmp eq i32 %18, 1
  br i1 %19, label %20, label %29

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %5, i64 48
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = getelementptr inbounds i8, ptr %1, i64 68
  %24 = load i32, ptr %23, align 4, !tbaa !15
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds ptr, ptr %22, i64 %25
  %27 = load ptr, ptr %26, align 8, !tbaa !16
  %28 = load double, ptr %27, align 8, !tbaa !17
  store double %28, ptr %3, align 8, !tbaa !17
  br label %44

29:                                               ; preds = %16
  %30 = getelementptr inbounds i8, ptr %1, i64 192
  %31 = load ptr, ptr %30, align 8, !tbaa !18
  %32 = getelementptr inbounds i8, ptr %5, i64 48
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  %34 = getelementptr inbounds i8, ptr %1, i64 68
  %35 = load i32, ptr %34, align 4, !tbaa !15
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds ptr, ptr %33, i64 %36
  %38 = load ptr, ptr %37, align 8, !tbaa !16
  %39 = load double, ptr %7, align 8, !tbaa !17
  %40 = getelementptr inbounds i8, ptr %1, i64 266
  %41 = call i32 @array_interpolate_two(ptr noundef %31, i32 noundef 1, i32 noundef 0, ptr noundef %38, i32 noundef 1, i32 noundef %18, double noundef %39, ptr noundef %3, i32 noundef 1, ptr noundef nonnull %40) #3
  %42 = icmp eq i32 %41, 1
  br i1 %42, label %43, label %44

43:                                               ; preds = %29
  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.4, ptr noundef nonnull @.str.219, ptr noundef nonnull %40) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %40, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_sigma8_at_z, i32 noundef 4218, ptr noundef nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #3
  br label %76

44:                                               ; preds = %29, %20
  %45 = getelementptr inbounds i8, ptr %0, i64 732
  %46 = load i16, ptr %45, align 4, !tbaa !19
  %.not = icmp eq i16 %46, 0
  br i1 %.not, label %74, label %47

47:                                               ; preds = %44
  %48 = load i32, ptr %17, align 4, !tbaa !5
  %49 = icmp eq i32 %48, 1
  br i1 %49, label %50, label %59

50:                                               ; preds = %47
  %51 = getelementptr inbounds i8, ptr %5, i64 48
  %52 = load ptr, ptr %51, align 8, !tbaa !13
  %53 = getelementptr inbounds i8, ptr %1, i64 72
  %54 = load i32, ptr %53, align 8, !tbaa !21
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds ptr, ptr %52, i64 %55
  %57 = load ptr, ptr %56, align 8, !tbaa !16
  %58 = load double, ptr %57, align 8, !tbaa !17
  store double %58, ptr %4, align 8, !tbaa !17
  br label %76

59:                                               ; preds = %47
  %60 = getelementptr inbounds i8, ptr %1, i64 192
  %61 = load ptr, ptr %60, align 8, !tbaa !18
  %62 = getelementptr inbounds i8, ptr %5, i64 48
  %63 = load ptr, ptr %62, align 8, !tbaa !13
  %64 = getelementptr inbounds i8, ptr %1, i64 72
  %65 = load i32, ptr %64, align 8, !tbaa !21
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds ptr, ptr %63, i64 %66
  %68 = load ptr, ptr %67, align 8, !tbaa !16
  %69 = load double, ptr %7, align 8, !tbaa !17
  %70 = getelementptr inbounds i8, ptr %1, i64 266
  %71 = call i32 @array_interpolate_two(ptr noundef %61, i32 noundef 1, i32 noundef 0, ptr noundef %68, i32 noundef 1, i32 noundef %48, double noundef %69, ptr noundef %4, i32 noundef 1, ptr noundef nonnull %70) #3
  %72 = icmp eq i32 %71, 1
  br i1 %72, label %73, label %76

73:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.220, ptr noundef nonnull %70) #3
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %70, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_hmcode_sigma8_at_z, i32 noundef 4239, ptr noundef nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #3
  br label %76

74:                                               ; preds = %44
  %75 = load double, ptr %3, align 8, !tbaa !17
  store double %75, ptr %4, align 8, !tbaa !17
  br label %76

76:                                               ; preds = %74, %59, %50, %73, %43, %13
  %.0 = phi i32 [ 1, %13 ], [ 1, %73 ], [ 1, %43 ], [ 0, %50 ], [ 0, %59 ], [ 0, %74 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  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 188}
!6 = !{!"nonlinear", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !11, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !12, i64 56, !11, i64 64, !11, i64 66, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !11, i64 88, !7, i64 92, !12, i64 96, !12, i64 104, !12, i64 112, !7, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !12, i64 176, !7, i64 184, !7, i64 188, !12, i64 192, !12, i64 200, !12, i64 208, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !11, i64 264, !8, i64 266}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !12, i64 48}
!14 = !{!"nonlinear_workspace", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !10, i64 80}
!15 = !{!6, !7, i64 68}
!16 = !{!12, !12, i64 0}
!17 = !{!10, !10, i64 0}
!18 = !{!6, !12, i64 192}
!19 = !{!20, !11, i64 732}
!20 = !{!"background", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !7, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !11, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !11, i64 176, !10, i64 184, !10, i64 192, !12, i64 200, !7, i64 208, !7, i64 212, !10, i64 216, !7, i64 224, !12, i64 232, !12, i64 240, !10, i64 248, !12, i64 256, !10, i64 264, !12, i64 272, !10, i64 280, !12, i64 288, !10, i64 296, !12, i64 304, !12, i64 312, !12, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !7, i64 360, !12, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !10, i64 408, !10, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456, !7, i64 464, !7, i64 468, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !7, i64 512, !7, i64 516, !7, i64 520, !7, i64 524, !7, i64 528, !7, i64 532, !7, i64 536, !7, i64 540, !7, i64 544, !7, i64 548, !7, i64 552, !7, i64 556, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !7, i64 584, !7, i64 588, !7, i64 592, !7, i64 596, !7, i64 600, !7, i64 604, !7, i64 608, !7, i64 612, !7, i64 616, !7, i64 620, !7, i64 624, !7, i64 628, !12, i64 632, !12, i64 640, !12, i64 648, !12, i64 656, !12, i64 664, !7, i64 672, !7, i64 676, !7, i64 680, !7, i64 684, !7, i64 688, !7, i64 692, !7, i64 696, !7, i64 700, !7, i64 704, !7, i64 708, !7, i64 712, !7, i64 716, !7, i64 720, !11, i64 724, !11, i64 726, !11, i64 728, !11, i64 730, !11, i64 732, !11, i64 734, !11, i64 736, !11, i64 738, !11, i64 740, !11, i64 742, !11, 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, !11, i64 840, !11, i64 842, !11, i64 844, !11, i64 846, !11, i64 848, !11, i64 850, !8, i64 852, !11, i64 2900, !8, i64 2902}
!21 = !{!6, !7, i64 72}


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