; 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] }

@.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
@.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
@__func__.nonlinear_sigma_at_z = external hidden unnamed_addr constant [21 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [89 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

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

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

34:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %35 = load ptr, ptr %10, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.nonlinear, ptr %35, i32 0, i32 19
  %37 = load i32, ptr %36, align 4, !tbaa !13
  %38 = sext i32 %37 to i64
  %39 = mul i64 %38, 8
  %40 = trunc i64 %39 to i32
  store i32 %40, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2048, ptr %19) #5
  %41 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  %42 = load i32, ptr %18, align 4, !tbaa !11
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %41, ptr noundef @.str.15, ptr noundef @.str.43, i32 noundef %42)
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.nonlinear, ptr %43, i32 0, i32 45
  %45 = getelementptr inbounds [2048 x i8], ptr %44, i64 0, i64 0
  %46 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %45, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_sigma_at_z, i32 noundef 2497, ptr noundef %46)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %19) #5
  store i32 1, ptr %8, align 4
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %133

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

56:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.nonlinear, ptr %57, i32 0, i32 19
  %59 = load i32, ptr %58, align 4, !tbaa !13
  %60 = sext i32 %59 to i64
  %61 = mul i64 %60, 8
  %62 = trunc i64 %61 to i32
  store i32 %62, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 2048, ptr %22) #5
  %63 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  %64 = load i32, ptr %21, align 4, !tbaa !11
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %63, ptr noundef @.str.15, ptr noundef @.str.44, i32 noundef %64)
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.nonlinear, ptr %65, i32 0, i32 45
  %67 = getelementptr inbounds [2048 x i8], ptr %66, i64 0, i64 0
  %68 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %67, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_sigma_at_z, i32 noundef 2498, ptr noundef %68)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %22) #5
  store i32 1, ptr %8, align 4
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %133

69:                                               ; preds = %47
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = load ptr, ptr %10, align 8, !tbaa !5
  %72 = load double, ptr %12, align 8, !tbaa !9
  %73 = load i32, ptr %13, align 4, !tbaa !11
  %74 = load ptr, ptr %16, align 8, !tbaa !5
  %75 = call i32 @nonlinear_pk_at_z(ptr noundef %70, ptr noundef %71, i32 noundef 1, i32 noundef 0, double noundef %72, i32 noundef %73, ptr noundef %74, ptr noundef null)
  %76 = icmp eq i32 %75, 1
  br i1 %76, label %77, label %86

77:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 2048, ptr %23) #5
  %78 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.nonlinear, ptr %79, i32 0, i32 45
  %81 = getelementptr inbounds [2048 x i8], ptr %80, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %78, ptr noundef @.str.4, ptr noundef @.str.45, ptr noundef %81)
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.nonlinear, ptr %82, i32 0, i32 45
  %84 = getelementptr inbounds [2048 x i8], ptr %83, i64 0, i64 0
  %85 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %84, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_sigma_at_z, i32 noundef 2511, ptr noundef %85)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %23) #5
  store i32 1, ptr %8, align 4
  store i32 1, ptr %20, align 4
  br label %133

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

100:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #5
  %101 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.nonlinear, ptr %102, i32 0, i32 45
  %104 = getelementptr inbounds [2048 x i8], ptr %103, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %101, ptr noundef @.str.4, ptr noundef @.str.46, ptr noundef %104)
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.nonlinear, ptr %105, i32 0, i32 45
  %107 = getelementptr inbounds [2048 x i8], ptr %106, i64 0, i64 0
  %108 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %107, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_sigma_at_z, i32 noundef 2523, ptr noundef %108)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #5
  store i32 1, ptr %8, align 4
  store i32 1, ptr %20, align 4
  br label %133

109:                                              ; preds = %86
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = load double, ptr %11, align 8, !tbaa !9
  %112 = load ptr, ptr %16, align 8, !tbaa !5
  %113 = load ptr, ptr %17, align 8, !tbaa !5
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.nonlinear, ptr %114, i32 0, i32 19
  %116 = load i32, ptr %115, align 4, !tbaa !13
  %117 = load double, ptr %14, align 8, !tbaa !9
  %118 = load ptr, ptr %15, align 8, !tbaa !5
  %119 = call i32 @nonlinear_sigmas(ptr noundef %110, double noundef %111, ptr noundef %112, ptr noundef %113, i32 noundef %116, double noundef %117, i32 noundef 0, ptr noundef %118)
  %120 = icmp eq i32 %119, 1
  br i1 %120, label %121, label %130

121:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 2048, ptr %25) #5
  %122 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.nonlinear, ptr %123, i32 0, i32 45
  %125 = getelementptr inbounds [2048 x i8], ptr %124, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %122, ptr noundef @.str.4, ptr noundef @.str.123, ptr noundef %125)
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.nonlinear, ptr %126, i32 0, i32 45
  %128 = getelementptr inbounds [2048 x i8], ptr %127, i64 0, i64 0
  %129 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %128, ptr noundef @.str.3, ptr noundef @__func__.nonlinear_sigma_at_z, i32 noundef 2536, ptr noundef %129)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %25) #5
  store i32 1, ptr %8, align 4
  store i32 1, ptr %20, align 4
  br label %133

130:                                              ; preds = %109
  %131 = load ptr, ptr %16, align 8, !tbaa !5
  call void @free(ptr noundef %131) #5
  %132 = load ptr, ptr %17, align 8, !tbaa !5
  call void @free(ptr noundef %132) #5
  store i32 0, ptr %8, align 4
  store i32 1, ptr %20, align 4
  br label %133

133:                                              ; preds = %130, %121, %100, %77, %56, %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  %134 = load i32, ptr %8, align 4
  ret i32 %134
}

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}


; 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
@.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
@__func__.nonlinear_sigma_at_z = external hidden unnamed_addr constant [21 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [89 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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @nonlinear_sigma_at_z(ptr noundef %0, ptr noundef %1, double noundef %2, double noundef %3, i32 noundef %4, double noundef %5, ptr noundef %6) local_unnamed_addr #0 {
  %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 92
  %14 = load i32, ptr %13, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = shl nsw i64 %15, 3
  %17 = tail call noalias ptr @malloc(i64 noundef %16) #5
  %18 = icmp eq ptr %17, null
  br i1 %18, label %19, label %22

19:                                               ; preds = %7
  %20 = shl i32 %14, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.15, ptr noundef nonnull @.str.43, i32 noundef %20) #6
  %21 = getelementptr inbounds i8, ptr %1, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %21, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_sigma_at_z, i32 noundef 2497, ptr noundef nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #6
  br label %47

22:                                               ; preds = %7
  %23 = tail call noalias ptr @malloc(i64 noundef %16) #5
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %28

25:                                               ; preds = %22
  %26 = shl i32 %14, 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.44, i32 noundef %26) #6
  %27 = getelementptr inbounds i8, ptr %1, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %27, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_sigma_at_z, i32 noundef 2498, ptr noundef nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #6
  br label %47

28:                                               ; preds = %22
  %29 = tail call i32 @nonlinear_pk_at_z(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 1, i32 noundef 0, double noundef %3, i32 noundef %4, ptr noundef nonnull %17, ptr noundef null)
  %30 = icmp eq i32 %29, 1
  br i1 %30, label %31, label %33

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #6
  %32 = getelementptr inbounds i8, ptr %1, i64 266
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.45, ptr noundef nonnull %32) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %32, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_sigma_at_z, i32 noundef 2511, ptr noundef nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #6
  br label %47

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

40:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.46, ptr noundef nonnull %37) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %37, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_sigma_at_z, i32 noundef 2523, ptr noundef nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #6
  br label %47

41:                                               ; preds = %33
  %42 = load i32, ptr %13, align 4, !tbaa !5
  %43 = tail call i32 @nonlinear_sigmas(ptr noundef nonnull %1, double noundef %2, ptr noundef nonnull %17, ptr noundef nonnull %23, i32 noundef %42, double noundef %5, i32 noundef 0, ptr noundef %6)
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %46

45:                                               ; preds = %41
  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.123, ptr noundef nonnull %37) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %37, ptr noundef nonnull @.str.3, ptr noundef nonnull @__func__.nonlinear_sigma_at_z, i32 noundef 2536, ptr noundef nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #6
  br label %47

46:                                               ; preds = %41
  tail call void @free(ptr noundef nonnull %17) #6
  tail call void @free(ptr noundef nonnull %23) #6
  br label %47

47:                                               ; preds = %46, %45, %40, %31, %25, %19
  %.0 = phi i32 [ 1, %19 ], [ 1, %25 ], [ 1, %31 ], [ 1, %40 ], [ 1, %45 ], [ 0, %46 ]
  ret i32 %.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}


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