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

@.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.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [7 x i8], align 1
@__func__.nonlinear_sigmas_at_z = external hidden unnamed_addr constant [22 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [103 x i8], align 1

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @nonlinear_sigmas_at_z(ptr noundef %0, ptr noundef %1, ptr noundef %2, double noundef %3, double noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7) #0 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca [2048 x i8], align 16
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca [2048 x i8], align 16
  %25 = alloca [2048 x i8], align 16
  %26 = alloca [2048 x i8], align 16
  %27 = alloca [2048 x i8], align 16
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store double %3, ptr %13, align 8, !tbaa !9
  store double %4, ptr %14, align 8, !tbaa !9
  store i32 %5, ptr %15, align 4, !tbaa !11
  store i32 %6, ptr %16, align 4, !tbaa !11
  store ptr %7, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %28 = load ptr, ptr %12, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.nonlinear, ptr %28, i32 0, i32 19
  %30 = load i32, ptr %29, align 4, !tbaa !13
  %31 = sext i32 %30 to i64
  %32 = mul i64 %31, 8
  %33 = call noalias ptr @malloc(i64 noundef %32) #6
  store ptr %33, ptr %18, align 8, !tbaa !5
  %34 = load ptr, ptr %18, align 8, !tbaa !5
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %49

36:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %37 = load ptr, ptr %12, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.nonlinear, ptr %37, i32 0, i32 19
  %39 = load i32, ptr %38, align 4, !tbaa !13
  %40 = sext i32 %39 to i64
  %41 = mul i64 %40, 8
  %42 = trunc i64 %41 to i32
  store i32 %42, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2048, ptr %21) #5
  %43 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  %44 = load i32, ptr %20, align 4, !tbaa !11
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %43, ptr noundef @.str.15, ptr noundef @.str.43, i32 noundef %44)
  %45 = load ptr, ptr %12, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.nonlinear, ptr %45, i32 0, i32 45
  %47 = getelementptr inbounds [2048 x i8], ptr %46, i64 0, i64 0
  %48 = getelementptr inbounds [2048 x i8], ptr %21, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %47, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_sigmas_at_z, i32 noundef 1055, ptr noundef %48)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %21) #5
  store i32 1, ptr %9, align 4
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %138

49:                                               ; preds = %8
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.nonlinear, ptr %50, i32 0, i32 19
  %52 = load i32, ptr %51, align 4, !tbaa !13
  %53 = sext i32 %52 to i64
  %54 = mul i64 %53, 8
  %55 = call noalias ptr @malloc(i64 noundef %54) #6
  store ptr %55, ptr %19, align 8, !tbaa !5
  %56 = load ptr, ptr %19, align 8, !tbaa !5
  %57 = icmp eq ptr %56, null
  br i1 %57, label %58, label %71

58:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.nonlinear, ptr %59, i32 0, i32 19
  %61 = load i32, ptr %60, align 4, !tbaa !13
  %62 = sext i32 %61 to i64
  %63 = mul i64 %62, 8
  %64 = trunc i64 %63 to i32
  store i32 %64, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #5
  %65 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  %66 = load i32, ptr %23, align 4, !tbaa !11
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %65, ptr noundef @.str.15, ptr noundef @.str.44, i32 noundef %66)
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.nonlinear, ptr %67, i32 0, i32 45
  %69 = getelementptr inbounds [2048 x i8], ptr %68, i64 0, i64 0
  %70 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %69, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_sigmas_at_z, i32 noundef 1056, ptr noundef %70)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #5
  store i32 1, ptr %9, align 4
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %138

71:                                               ; preds = %49
  %72 = load ptr, ptr %11, align 8, !tbaa !5
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = load double, ptr %14, align 8, !tbaa !9
  %75 = load i32, ptr %15, align 4, !tbaa !11
  %76 = load ptr, ptr %18, align 8, !tbaa !5
  %77 = call i32 @nonlinear_pk_at_z(ptr noundef %72, ptr noundef %73, i32 noundef 1, i32 noundef 0, double noundef %74, i32 noundef %75, ptr noundef %76, ptr noundef null)
  %78 = icmp eq i32 %77, 1
  br i1 %78, label %79, label %88

79:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 2048, ptr %25) #5
  %80 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  %81 = load ptr, ptr %12, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.nonlinear, ptr %81, i32 0, i32 45
  %83 = getelementptr inbounds [2048 x i8], ptr %82, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %80, ptr noundef @.str.4, ptr noundef @.str.45, ptr noundef %83)
  %84 = load ptr, ptr %12, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.nonlinear, ptr %84, i32 0, i32 45
  %86 = getelementptr inbounds [2048 x i8], ptr %85, i64 0, i64 0
  %87 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %86, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_sigmas_at_z, i32 noundef 1069, ptr noundef %87)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %25) #5
  store i32 1, ptr %9, align 4
  store i32 1, ptr %22, align 4
  br label %138

88:                                               ; preds = %71
  %89 = load ptr, ptr %12, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.nonlinear, ptr %89, i32 0, i32 21
  %91 = load ptr, ptr %90, align 8, !tbaa !16
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.nonlinear, ptr %92, i32 0, i32 19
  %94 = load i32, ptr %93, align 4, !tbaa !13
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.nonlinear, ptr %97, i32 0, i32 45
  %99 = getelementptr inbounds [2048 x i8], ptr %98, i64 0, i64 0
  %100 = call i32 @array_spline_table_columns(ptr noundef %91, i32 noundef %94, ptr noundef %95, i32 noundef 1, ptr noundef %96, i16 noundef signext 1, ptr noundef %99)
  %101 = icmp eq i32 %100, 1
  br i1 %101, label %102, label %111

102:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 2048, ptr %26) #5
  %103 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.nonlinear, ptr %104, i32 0, i32 45
  %106 = getelementptr inbounds [2048 x i8], ptr %105, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %103, ptr noundef @.str.4, ptr noundef @.str.46, ptr noundef %106)
  %107 = load ptr, ptr %12, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.nonlinear, ptr %107, i32 0, i32 45
  %109 = getelementptr inbounds [2048 x i8], ptr %108, i64 0, i64 0
  %110 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %109, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_sigmas_at_z, i32 noundef 1081, ptr noundef %110)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %26) #5
  store i32 1, ptr %9, align 4
  store i32 1, ptr %22, align 4
  br label %138

111:                                              ; preds = %88
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = load double, ptr %13, align 8, !tbaa !9
  %114 = load ptr, ptr %18, align 8, !tbaa !5
  %115 = load ptr, ptr %19, align 8, !tbaa !5
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.nonlinear, ptr %116, i32 0, i32 19
  %118 = load i32, ptr %117, align 4, !tbaa !13
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.precision, ptr %119, i32 0, i32 151
  %121 = load double, ptr %120, align 8, !tbaa !17
  %122 = load i32, ptr %16, align 4, !tbaa !11
  %123 = load ptr, ptr %17, align 8, !tbaa !5
  %124 = call i32 @nonlinear_sigmas(ptr noundef %112, double noundef %113, ptr noundef %114, ptr noundef %115, i32 noundef %118, double noundef %121, i32 noundef %122, ptr noundef %123)
  %125 = icmp eq i32 %124, 1
  br i1 %125, label %126, label %135

126:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 2048, ptr %27) #5
  %127 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.nonlinear, ptr %128, i32 0, i32 45
  %130 = getelementptr inbounds [2048 x i8], ptr %129, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %127, ptr noundef @.str.4, ptr noundef @.str.47, ptr noundef %130)
  %131 = load ptr, ptr %12, 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
  %134 = getelementptr inbounds [2048 x i8], ptr %27, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %133, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_sigmas_at_z, i32 noundef 1094, ptr noundef %134)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %27) #5
  store i32 1, ptr %9, align 4
  store i32 1, ptr %22, align 4
  br label %138

135:                                              ; preds = %111
  %136 = load ptr, ptr %18, align 8, !tbaa !5
  call void @free(ptr noundef %136) #5
  %137 = load ptr, ptr %19, align 8, !tbaa !5
  call void @free(ptr noundef %137) #5
  store i32 0, ptr %9, align 4
  store i32 1, ptr %22, align 4
  br label %138

138:                                              ; preds = %135, %126, %102, %79, %58, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  %139 = load i32, ptr %9, align 4
  ret i32 %139
}

declare i32 @array_spline_table_columns(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i16 noundef signext, ptr noundef) #2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 92}
!14 = !{!"nonlinear", !12, i64 0, !12, i64 4, !12, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !15, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !6, i64 56, !15, i64 64, !15, i64 66, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !12, i64 84, !15, i64 88, !12, i64 92, !6, i64 96, !6, i64 104, !6, i64 112, !12, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !12, i64 184, !12, i64 188, !6, i64 192, !6, i64 200, !6, i64 208, !12, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !12, i64 232, !6, i64 240, !6, i64 248, !6, i64 256, !15, i64 264, !7, i64 266}
!15 = !{!"short", !7, i64 0}
!16 = !{!14, !6, i64 104}
!17 = !{!18, !10, i64 2160}
!18 = !{!"precision", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !7, i64 104, !10, i64 360, !12, i64 368, !10, i64 376, !12, i64 384, !12, i64 388, !10, i64 392, !12, i64 400, !10, i64 408, !12, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !10, i64 512, !10, i64 520, !10, i64 528, !10, i64 536, !10, i64 544, !10, i64 552, !10, i64 560, !10, i64 568, !10, i64 576, !10, i64 584, !10, i64 592, !10, i64 600, !10, i64 608, !10, i64 616, !12, i64 624, !7, i64 628, !7, i64 884, !7, i64 1140, !10, i64 1400, !10, i64 1408, !10, i64 1416, !10, i64 1424, !10, i64 1432, !10, i64 1440, !10, i64 1448, !10, i64 1456, !10, i64 1464, !10, i64 1472, !10, i64 1480, !10, i64 1488, !10, i64 1496, !10, i64 1504, !10, i64 1512, !10, i64 1520, !12, i64 1528, !10, i64 1536, !10, i64 1544, !12, i64 1552, !12, i64 1556, !12, i64 1560, !12, i64 1564, !12, i64 1568, !12, i64 1572, !12, i64 1576, !12, i64 1580, !10, i64 1584, !10, i64 1592, !10, i64 1600, !10, i64 1608, !10, i64 1616, !10, i64 1624, !10, i64 1632, !10, i64 1640, !12, i64 1648, !10, i64 1656, !10, i64 1664, !12, i64 1672, !10, i64 1680, !10, i64 1688, !12, i64 1696, !10, i64 1704, !12, i64 1712, !10, i64 1720, !10, i64 1728, !12, i64 1736, !10, i64 1744, !10, i64 1752, !10, i64 1760, !12, i64 1768, !10, i64 1776, !10, i64 1784, !10, i64 1792, !10, i64 1800, !10, i64 1808, !12, i64 1816, !10, i64 1824, !10, i64 1832, !10, i64 1840, !10, i64 1848, !10, i64 1856, !10, i64 1864, !10, i64 1872, !12, i64 1880, !10, i64 1888, !10, i64 1896, !10, i64 1904, !10, i64 1912, !10, i64 1920, !10, i64 1928, !10, i64 1936, !10, i64 1944, !10, i64 1952, !10, i64 1960, !10, i64 1968, !10, i64 1976, !10, i64 1984, !10, i64 1992, !10, i64 2000, !10, i64 2008, !10, i64 2016, !10, i64 2024, !10, i64 2032, !10, i64 2040, !10, i64 2048, !10, i64 2056, !10, i64 2064, !10, i64 2072, !10, i64 2080, !10, i64 2088, !10, i64 2096, !10, i64 2104, !10, i64 2112, !10, i64 2120, !10, i64 2128, !10, i64 2136, !10, i64 2144, !10, i64 2152, !10, i64 2160, !10, i64 2168, !10, i64 2176, !10, i64 2184, !10, i64 2192, !10, i64 2200, !10, i64 2208, !10, i64 2216, !10, i64 2224, !10, i64 2232, !10, i64 2240, !10, i64 2248, !12, i64 2256, !10, i64 2264, !10, i64 2272, !10, i64 2280, !10, i64 2288, !12, i64 2296, !10, i64 2304, !10, i64 2312, !12, i64 2320, !12, i64 2324, !12, i64 2328, !10, i64 2336, !10, i64 2344, !7, i64 2352}


; 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.15 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [7 x i8], align 1
@__func__.nonlinear_sigmas_at_z = external hidden unnamed_addr constant [22 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [103 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @nonlinear_sigmas_at_z(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2, double noundef %3, double noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7) local_unnamed_addr #0 {
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  %11 = alloca [2048 x i8], align 16
  %12 = alloca [2048 x i8], align 16
  %13 = alloca [2048 x i8], align 16
  %14 = getelementptr inbounds i8, ptr %2, i64 92
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = shl nsw i64 %16, 3
  %18 = tail call noalias ptr @malloc(i64 noundef %17) #5
  %19 = icmp eq ptr %18, null
  br i1 %19, label %20, label %23

20:                                               ; preds = %8
  %21 = shl i32 %15, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.43, i32 noundef %21) #6
  %22 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %22, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_sigmas_at_z, i32 noundef 1055, ptr noundef nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #6
  br label %50

23:                                               ; preds = %8
  %24 = tail call noalias ptr @malloc(i64 noundef %17) #5
  %25 = icmp eq ptr %24, null
  br i1 %25, label %26, label %29

26:                                               ; preds = %23
  %27 = shl i32 %15, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.44, i32 noundef %27) #6
  %28 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %28, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_sigmas_at_z, i32 noundef 1056, ptr noundef nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #6
  br label %50

29:                                               ; preds = %23
  %30 = tail call i32 @nonlinear_pk_at_z(ptr noundef %1, ptr noundef nonnull %2, i32 noundef 1, i32 noundef 0, double noundef %4, i32 noundef %5, ptr noundef nonnull %18, ptr noundef null)
  %31 = icmp eq i32 %30, 1
  br i1 %31, label %32, label %34

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #6
  %33 = getelementptr inbounds i8, ptr %2, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.45, ptr noundef nonnull %33) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %33, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_sigmas_at_z, i32 noundef 1069, ptr noundef nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #6
  br label %50

34:                                               ; preds = %29
  %35 = getelementptr inbounds i8, ptr %2, i64 104
  %36 = load ptr, ptr %35, align 8, !tbaa !13
  %37 = load i32, ptr %14, align 4, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %2, i64 266
  %39 = tail call i32 @array_spline_table_columns(ptr noundef %36, i32 noundef %37, ptr noundef nonnull %18, i32 noundef 1, ptr noundef nonnull %24, i16 noundef signext 1, ptr noundef nonnull %38) #6
  %40 = icmp eq i32 %39, 1
  br i1 %40, label %41, label %42

41:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.46, ptr noundef nonnull %38) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %38, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_sigmas_at_z, i32 noundef 1081, ptr noundef nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #6
  br label %50

42:                                               ; preds = %34
  %43 = load i32, ptr %14, align 4, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %0, i64 2160
  %45 = load double, ptr %44, align 8, !tbaa !14
  %46 = tail call i32 @nonlinear_sigmas(ptr noundef nonnull %2, double noundef %3, ptr noundef nonnull %18, ptr noundef nonnull %24, i32 noundef %43, double noundef %45, i32 noundef %6, ptr noundef %7)
  %47 = icmp eq i32 %46, 1
  br i1 %47, label %48, label %49

48:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.47, ptr noundef nonnull %38) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %38, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_sigmas_at_z, i32 noundef 1094, ptr noundef nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #6
  br label %50

49:                                               ; preds = %42
  tail call void @free(ptr noundef nonnull %18) #6
  tail call void @free(ptr noundef nonnull %24) #6
  br label %50

50:                                               ; preds = %49, %48, %41, %32, %26, %20
  %.0 = phi i32 [ 1, %20 ], [ 1, %26 ], [ 1, %32 ], [ 1, %41 ], [ 1, %48 ], [ 0, %49 ]
  ret i32 %.0
}

declare i32 @array_spline_table_columns(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i16 noundef signext, ptr noundef) local_unnamed_addr #2

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind allocsize(0) }
attributes #6 = { 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 92}
!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 = !{!6, !12, i64 104}
!14 = !{!15, !10, i64 2160}
!15 = !{!"precision", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !8, i64 104, !10, i64 360, !7, i64 368, !10, i64 376, !7, i64 384, !7, i64 388, !10, i64 392, !7, i64 400, !10, i64 408, !7, i64 416, !10, i64 424, !10, i64 432, !10, i64 440, !10, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !10, i64 512, !10, i64 520, !10, i64 528, !10, i64 536, !10, i64 544, !10, i64 552, !10, i64 560, !10, i64 568, !10, i64 576, !10, i64 584, !10, i64 592, !10, i64 600, !10, i64 608, !10, i64 616, !7, i64 624, !8, i64 628, !8, i64 884, !8, i64 1140, !10, i64 1400, !10, i64 1408, !10, i64 1416, !10, i64 1424, !10, i64 1432, !10, i64 1440, !10, i64 1448, !10, i64 1456, !10, i64 1464, !10, i64 1472, !10, i64 1480, !10, i64 1488, !10, i64 1496, !10, i64 1504, !10, i64 1512, !10, i64 1520, !7, i64 1528, !10, i64 1536, !10, i64 1544, !7, i64 1552, !7, i64 1556, !7, i64 1560, !7, i64 1564, !7, i64 1568, !7, i64 1572, !7, i64 1576, !7, i64 1580, !10, i64 1584, !10, i64 1592, !10, i64 1600, !10, i64 1608, !10, i64 1616, !10, i64 1624, !10, i64 1632, !10, i64 1640, !7, i64 1648, !10, i64 1656, !10, i64 1664, !7, i64 1672, !10, i64 1680, !10, i64 1688, !7, i64 1696, !10, i64 1704, !7, i64 1712, !10, i64 1720, !10, i64 1728, !7, i64 1736, !10, i64 1744, !10, i64 1752, !10, i64 1760, !7, i64 1768, !10, i64 1776, !10, i64 1784, !10, i64 1792, !10, i64 1800, !10, i64 1808, !7, i64 1816, !10, i64 1824, !10, i64 1832, !10, i64 1840, !10, i64 1848, !10, i64 1856, !10, i64 1864, !10, i64 1872, !7, i64 1880, !10, i64 1888, !10, i64 1896, !10, i64 1904, !10, i64 1912, !10, i64 1920, !10, i64 1928, !10, i64 1936, !10, i64 1944, !10, i64 1952, !10, i64 1960, !10, i64 1968, !10, i64 1976, !10, i64 1984, !10, i64 1992, !10, i64 2000, !10, i64 2008, !10, i64 2016, !10, i64 2024, !10, i64 2032, !10, i64 2040, !10, i64 2048, !10, i64 2056, !10, i64 2064, !10, i64 2072, !10, i64 2080, !10, i64 2088, !10, i64 2096, !10, i64 2104, !10, i64 2112, !10, i64 2120, !10, i64 2128, !10, i64 2136, !10, i64 2144, !10, i64 2152, !10, i64 2160, !10, i64 2168, !10, i64 2176, !10, i64 2184, !10, i64 2192, !10, i64 2200, !10, i64 2208, !10, i64 2216, !10, i64 2224, !10, i64 2232, !10, i64 2240, !10, i64 2248, !7, i64 2256, !10, i64 2264, !10, i64 2272, !10, i64 2280, !10, i64 2288, !7, i64 2296, !10, i64 2304, !10, i64 2312, !7, i64 2320, !7, i64 2324, !7, i64 2328, !10, i64 2336, !10, i64 2344, !8, i64 2352}


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