; LLVM IR from USDA-ARS-ACSL/MAIZSIM :: Crop source/leaf.ll (ZN5CLeaf15calc_dimensionsEP12CDevelopment)

; 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.TInitInfo = type { [255 x i8], [255 x i8], i32, i32, double, double, double, double, i32, i32, i32, double, i32, double, i8, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }
%class.CLeaf = type { %class.COrgan, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, 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, i8, double, double, double, double, double, double, double, double, double, double, double, double, double }
%class.COrgan = type { ptr, double, double, %struct.TInitInfo, ptr, ptr, double, double, double, double, double, double, double, double, double }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5CLeaf15calc_dimensionsEP12CDevelopment(ptr noundef nonnull align 8 dereferenceable(1256) %0, ptr noundef %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca %struct.TInitInfo, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store double 2.400000e+01, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = call noundef i32 @_ZN12CDevelopment15get_totalLeavesEv(ptr noundef nonnull align 8 dereferenceable(1352) %20)
  %22 = sitofp i32 %21 to double
  store double %22, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %23 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 40
  %24 = load double, ptr %23, align 8, !tbaa !11
  %25 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 40
  %26 = load double, ptr %25, align 8, !tbaa !11
  %27 = load double, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 752, ptr %8) #6
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN12CDevelopment12get_initInfoEv(ptr dead_on_unwind writable sret(%struct.TInitInfo) align 8 %8, ptr noundef nonnull align 8 dereferenceable(1352) %28)
  %29 = getelementptr inbounds %struct.TInitInfo, ptr %8, i32 0, i32 3
  %30 = load i32, ptr %29, align 4, !tbaa !17
  %31 = sitofp i32 %30 to double
  %32 = fsub double %27, %31
  %33 = fmul double 2.400000e+01, %32
  %34 = call double @llvm.fmuladd.f64(double %24, double %26, double %33)
  %35 = call double @sqrt(double noundef %34) #6
  call void @llvm.lifetime.end.p0(i64 752, ptr %8) #6
  store double %35, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %36 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 8
  %37 = load i32, ptr %36, align 8, !tbaa !18
  store i32 %37, ptr %12, align 4, !tbaa !19
  %38 = load double, ptr %6, align 8, !tbaa !9
  %39 = call double @llvm.fmuladd.f64(double 3.300000e-01, double %38, double 5.930000e+00)
  store double %39, ptr %11, align 8, !tbaa !9
  %40 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 52
  %41 = load double, ptr %40, align 8, !tbaa !20
  %42 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 54
  %43 = load double, ptr %42, align 8, !tbaa !21
  %44 = load double, ptr %6, align 8, !tbaa !9
  %45 = call double @llvm.fmuladd.f64(double %43, double %44, double %41)
  store double %45, ptr %9, align 8, !tbaa !9
  %46 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 53
  %47 = load double, ptr %46, align 8, !tbaa !22
  %48 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 55
  %49 = load double, ptr %48, align 8, !tbaa !23
  %50 = load double, ptr %6, align 8, !tbaa !9
  %51 = call double @llvm.fmuladd.f64(double %49, double %50, double %47)
  store double %51, ptr %10, align 8, !tbaa !9
  %52 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 8
  %53 = load i32, ptr %52, align 8, !tbaa !18
  %54 = load double, ptr %11, align 8, !tbaa !9
  %55 = fptosi double %54 to i32
  %56 = icmp sgt i32 %53, %55
  br i1 %56, label %57, label %61

57:                                               ; preds = %2
  %58 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 8
  %59 = load i32, ptr %58, align 8, !tbaa !18
  %60 = sub nsw i32 %59, 1
  store i32 %60, ptr %12, align 4, !tbaa !19
  br label %61

61:                                               ; preds = %57, %2
  %62 = load double, ptr %7, align 8, !tbaa !9
  %63 = load double, ptr %9, align 8, !tbaa !9
  %64 = fdiv double %63, 2.000000e+00
  %65 = load i32, ptr %12, align 4, !tbaa !19
  %66 = sitofp i32 %65 to double
  %67 = load double, ptr %11, align 8, !tbaa !9
  %68 = fdiv double %66, %67
  %69 = fsub double %68, 1.000000e+00
  %70 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %69, i32 noundef 2)
  %71 = load double, ptr %10, align 8, !tbaa !9
  %72 = fdiv double %71, 2.000000e+00
  %73 = load i32, ptr %12, align 4, !tbaa !19
  %74 = sitofp i32 %73 to double
  %75 = load double, ptr %11, align 8, !tbaa !9
  %76 = fdiv double %74, %75
  %77 = fsub double %76, 1.000000e+00
  %78 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %77, i32 noundef 3)
  %79 = fmul double %72, %78
  %80 = call double @llvm.fmuladd.f64(double %64, double %70, double %79)
  %81 = call double @exp(double noundef %80) #6
  %82 = fmul double %62, %81
  %83 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 38
  store double %82, ptr %83, align 8, !tbaa !24
  %84 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 38
  %85 = load double, ptr %84, align 8, !tbaa !24
  %86 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 32
  %87 = load double, ptr %86, align 8, !tbaa !25
  %88 = fdiv double %85, %87
  %89 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 29
  store double %88, ptr %89, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %90 = load double, ptr %7, align 8, !tbaa !9
  %91 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 47
  %92 = load double, ptr %91, align 8, !tbaa !27
  %93 = fmul double %90, %92
  store double %93, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %94 = load double, ptr %7, align 8, !tbaa !9
  %95 = load double, ptr %13, align 8, !tbaa !9
  %96 = fmul double %94, %95
  %97 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 48
  %98 = load double, ptr %97, align 8, !tbaa !28
  %99 = fmul double %96, %98
  store double %99, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store double 5.000000e-01, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store double 1.000000e+00, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %100 = load double, ptr %6, align 8, !tbaa !9
  %101 = call double @llvm.fmuladd.f64(double 4.700000e-02, double %100, double -1.170000e+00)
  %102 = call double @exp(double noundef %101) #6
  store double %102, ptr %18, align 8, !tbaa !9
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %103)
  %105 = load double, ptr %104, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  store double %105, ptr %15, align 8, !tbaa !9
  %106 = load double, ptr %15, align 8, !tbaa !9
  %107 = load double, ptr %14, align 8, !tbaa !9
  %108 = fmul double %106, %107
  %109 = load double, ptr %9, align 8, !tbaa !9
  %110 = load i32, ptr %12, align 4, !tbaa !19
  %111 = sitofp i32 %110 to double
  %112 = load double, ptr %11, align 8, !tbaa !9
  %113 = fdiv double %111, %112
  %114 = fsub double %113, 1.000000e+00
  %115 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %114, i32 noundef 2)
  %116 = load double, ptr %10, align 8, !tbaa !9
  %117 = load i32, ptr %12, align 4, !tbaa !19
  %118 = sitofp i32 %117 to double
  %119 = load double, ptr %11, align 8, !tbaa !9
  %120 = fdiv double %118, %119
  %121 = fsub double %120, 1.000000e+00
  %122 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %121, i32 noundef 3)
  %123 = fmul double %116, %122
  %124 = call double @llvm.fmuladd.f64(double %109, double %115, double %123)
  %125 = call double @exp(double noundef %124) #6
  %126 = fmul double %108, %125
  %127 = getelementptr inbounds %class.CLeaf, ptr %19, i32 0, i32 12
  store double %126, ptr %127, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN12CDevelopment15get_totalLeavesEv(ptr noundef nonnull align 8 dereferenceable(1352)) #2 align 2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12CDevelopment12get_initInfoEv(ptr dead_on_unwind noalias writable sret(%struct.TInitInfo) align 8, ptr noundef nonnull align 8 dereferenceable(1352)) #2 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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

; Function Attrs: nounwind
declare double @exp(double noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5

attributes #0 = { mustprogress 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 = { mustprogress 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 "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !10, i64 1112}
!12 = !{!"_ZTS5CLeaf", !13, i64 0, !16, i64 864, !16, i64 865, !16, i64 866, !16, i64 867, !16, i64 868, !16, i64 869, !16, i64 870, !15, i64 872, !15, i64 876, !15, i64 880, !15, i64 884, !10, i64 888, !10, i64 896, !10, i64 904, !10, i64 912, !10, i64 920, !10, i64 928, !10, i64 936, !10, i64 944, !10, i64 952, !10, i64 960, !10, i64 968, !10, i64 976, !10, i64 984, !10, i64 992, !10, i64 1000, !10, i64 1008, !10, i64 1016, !10, i64 1024, !10, i64 1032, !10, i64 1040, !10, i64 1048, !10, i64 1056, !10, i64 1064, !10, i64 1072, !10, i64 1080, !10, i64 1088, !10, i64 1096, !10, i64 1104, !10, i64 1112, !10, i64 1120, !10, i64 1128, !10, i64 1136, !16, i64 1144, !10, i64 1152, !10, i64 1160, !10, i64 1168, !10, i64 1176, !10, i64 1184, !10, i64 1192, !10, i64 1200, !10, i64 1208, !10, i64 1216, !10, i64 1224, !10, i64 1232, !10, i64 1240, !10, i64 1248}
!13 = !{!"_ZTS6COrgan", !10, i64 8, !10, i64 16, !14, i64 24, !6, i64 776, !6, i64 784, !10, i64 792, !10, i64 800, !10, i64 808, !10, i64 816, !10, i64 824, !10, i64 832, !10, i64 840, !10, i64 848, !10, i64 856}
!14 = !{!"_ZTS9TInitInfo", !7, i64 0, !7, i64 255, !15, i64 512, !15, i64 516, !10, i64 520, !10, i64 528, !10, i64 536, !10, i64 544, !15, i64 552, !15, i64 556, !15, i64 560, !10, i64 568, !15, i64 576, !10, i64 584, !16, i64 592, !10, i64 600, !10, i64 608, !10, i64 616, !10, i64 624, !10, i64 632, !10, i64 640, !10, i64 648, !10, i64 656, !10, i64 664, !10, i64 672, !10, i64 680, !10, i64 688, !10, i64 696, !10, i64 704, !10, i64 712, !10, i64 720, !10, i64 728, !10, i64 736, !10, i64 744}
!15 = !{!"int", !7, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!14, !15, i64 516}
!18 = !{!12, !15, i64 872}
!19 = !{!15, !15, i64 0}
!20 = !{!12, !10, i64 1208}
!21 = !{!12, !10, i64 1224}
!22 = !{!12, !10, i64 1216}
!23 = !{!12, !10, i64 1232}
!24 = !{!12, !10, i64 1096}
!25 = !{!12, !10, i64 1048}
!26 = !{!12, !10, i64 1024}
!27 = !{!12, !10, i64 1168}
!28 = !{!12, !10, i64 1176}
!29 = !{!12, !10, i64 888}


; 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"

%struct.TInitInfo = type { [255 x i8], [255 x i8], i32, i32, double, double, double, double, i32, i32, i32, double, i32, double, i8, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double }

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN5CLeaf15calc_dimensionsEP12CDevelopment(ptr nocapture noundef nonnull align 8 dereferenceable(1256) %0, ptr noundef nonnull %1) local_unnamed_addr #0 align 2 {
  %3 = alloca %struct.TInitInfo, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = tail call noundef i32 @_ZN12CDevelopment15get_totalLeavesEv(ptr noundef nonnull align 8 dereferenceable(1352) %1)
  %8 = sitofp i32 %7 to double
  %9 = getelementptr inbounds i8, ptr %0, i64 1112
  %10 = load double, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 752, ptr nonnull %3) #5
  call void @_ZN12CDevelopment12get_initInfoEv(ptr dead_on_unwind nonnull writable sret(%struct.TInitInfo) align 8 %3, ptr noundef nonnull align 8 dereferenceable(1352) %1)
  %11 = getelementptr inbounds i8, ptr %3, i64 516
  %12 = load i32, ptr %11, align 4, !tbaa !15
  %13 = sitofp i32 %12 to double
  %14 = fsub double %8, %13
  %15 = fmul double %14, 2.400000e+01
  %16 = call double @llvm.fmuladd.f64(double %10, double %10, double %15)
  %17 = call double @sqrt(double noundef %16) #5
  call void @llvm.lifetime.end.p0(i64 752, ptr nonnull %3) #5
  %18 = getelementptr inbounds i8, ptr %0, i64 872
  %19 = load i32, ptr %18, align 8, !tbaa !16
  %20 = call double @llvm.fmuladd.f64(double %8, double 3.300000e-01, double 5.930000e+00)
  %21 = getelementptr inbounds i8, ptr %0, i64 1208
  %22 = load double, ptr %21, align 8, !tbaa !17
  %23 = getelementptr inbounds i8, ptr %0, i64 1224
  %24 = load double, ptr %23, align 8, !tbaa !18
  %25 = getelementptr inbounds i8, ptr %0, i64 1216
  %26 = load double, ptr %25, align 8, !tbaa !19
  %27 = getelementptr inbounds i8, ptr %0, i64 1232
  %28 = load double, ptr %27, align 8, !tbaa !20
  %29 = fptosi double %20 to i32
  %30 = icmp sgt i32 %19, %29
  %31 = sext i1 %30 to i32
  %spec.select = add nsw i32 %19, %31
  %32 = call double @llvm.fmuladd.f64(double %28, double %8, double %26)
  %33 = call double @llvm.fmuladd.f64(double %24, double %8, double %22)
  %34 = fmul double %33, 5.000000e-01
  %35 = sitofp i32 %spec.select to double
  %36 = fdiv double %35, %20
  %37 = fadd double %36, -1.000000e+00
  %38 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %37, i32 noundef 2)
  %39 = fmul double %32, 5.000000e-01
  %40 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %37, i32 noundef 3)
  %41 = fmul double %39, %40
  %42 = call double @llvm.fmuladd.f64(double %34, double %38, double %41)
  %43 = call double @exp(double noundef %42) #5
  %44 = fmul double %17, %43
  %45 = getelementptr inbounds i8, ptr %0, i64 1096
  store double %44, ptr %45, align 8, !tbaa !21
  %46 = getelementptr inbounds i8, ptr %0, i64 1048
  %47 = load double, ptr %46, align 8, !tbaa !22
  %48 = fdiv double %44, %47
  %49 = getelementptr inbounds i8, ptr %0, i64 1024
  store double %48, ptr %49, align 8, !tbaa !23
  %50 = getelementptr inbounds i8, ptr %0, i64 1168
  %51 = load double, ptr %50, align 8, !tbaa !24
  %52 = fmul double %17, %51
  %53 = fmul double %17, %52
  %54 = getelementptr inbounds i8, ptr %0, i64 1176
  %55 = load double, ptr %54, align 8, !tbaa !25
  %56 = fmul double %55, %53
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  store double 5.000000e-01, ptr %4, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store double 1.000000e+00, ptr %5, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %57 = call double @llvm.fmuladd.f64(double %8, double 4.700000e-02, double -1.170000e+00)
  %58 = call double @exp(double noundef %57) #5
  store double %58, ptr %6, align 8, !tbaa !26
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %59)
  %61 = load double, ptr %60, align 8, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %62 = fmul double %56, %61
  %63 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %37, i32 noundef 2)
  %64 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %37, i32 noundef 3)
  %65 = fmul double %32, %64
  %66 = call double @llvm.fmuladd.f64(double %33, double %63, double %65)
  %67 = call double @exp(double noundef %66) #5
  %68 = fmul double %62, %67
  %69 = getelementptr inbounds i8, ptr %0, i64 888
  store double %68, ptr %69, align 8, !tbaa !27
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN12CDevelopment15get_totalLeavesEv(ptr noundef nonnull align 8 dereferenceable(1352)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN12CDevelopment12get_initInfoEv(ptr dead_on_unwind noalias writable sret(%struct.TInitInfo) align 8, ptr noundef nonnull align 8 dereferenceable(1352)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; 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 memory(write)
declare double @exp(double noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

attributes #0 = { mustprogress 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 = { mustprogress nofree nounwind willreturn memory(write) "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!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, !8, i64 1112}
!6 = !{!"_ZTS5CLeaf", !7, i64 0, !13, i64 864, !13, i64 865, !13, i64 866, !13, i64 867, !13, i64 868, !13, i64 869, !13, i64 870, !12, i64 872, !12, i64 876, !12, i64 880, !12, i64 884, !8, i64 888, !8, i64 896, !8, i64 904, !8, i64 912, !8, i64 920, !8, i64 928, !8, i64 936, !8, i64 944, !8, i64 952, !8, i64 960, !8, i64 968, !8, i64 976, !8, i64 984, !8, i64 992, !8, i64 1000, !8, i64 1008, !8, i64 1016, !8, i64 1024, !8, i64 1032, !8, i64 1040, !8, i64 1048, !8, i64 1056, !8, i64 1064, !8, i64 1072, !8, i64 1080, !8, i64 1088, !8, i64 1096, !8, i64 1104, !8, i64 1112, !8, i64 1120, !8, i64 1128, !8, i64 1136, !13, i64 1144, !8, i64 1152, !8, i64 1160, !8, i64 1168, !8, i64 1176, !8, i64 1184, !8, i64 1192, !8, i64 1200, !8, i64 1208, !8, i64 1216, !8, i64 1224, !8, i64 1232, !8, i64 1240, !8, i64 1248}
!7 = !{!"_ZTS6COrgan", !8, i64 8, !8, i64 16, !11, i64 24, !14, i64 776, !14, i64 784, !8, i64 792, !8, i64 800, !8, i64 808, !8, i64 816, !8, i64 824, !8, i64 832, !8, i64 840, !8, i64 848, !8, i64 856}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTS9TInitInfo", !9, i64 0, !9, i64 255, !12, i64 512, !12, i64 516, !8, i64 520, !8, i64 528, !8, i64 536, !8, i64 544, !12, i64 552, !12, i64 556, !12, i64 560, !8, i64 568, !12, i64 576, !8, i64 584, !13, i64 592, !8, i64 600, !8, i64 608, !8, i64 616, !8, i64 624, !8, i64 632, !8, i64 640, !8, i64 648, !8, i64 656, !8, i64 664, !8, i64 672, !8, i64 680, !8, i64 688, !8, i64 696, !8, i64 704, !8, i64 712, !8, i64 720, !8, i64 728, !8, i64 736, !8, i64 744}
!12 = !{!"int", !9, i64 0}
!13 = !{!"bool", !9, i64 0}
!14 = !{!"any pointer", !9, i64 0}
!15 = !{!11, !12, i64 516}
!16 = !{!6, !12, i64 872}
!17 = !{!6, !8, i64 1208}
!18 = !{!6, !8, i64 1224}
!19 = !{!6, !8, i64 1216}
!20 = !{!6, !8, i64 1232}
!21 = !{!6, !8, i64 1096}
!22 = !{!6, !8, i64 1048}
!23 = !{!6, !8, i64 1024}
!24 = !{!6, !8, i64 1168}
!25 = !{!6, !8, i64 1176}
!26 = !{!8, !8, i64 0}
!27 = !{!6, !8, i64 888}


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