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

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

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

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @primordial_inflation_hubble(ptr noundef %0, double noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store double %1, ptr %8, align 8, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  %13 = load ptr, ptr %7, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.primordial, ptr %13, i32 0, i32 57
  %15 = load double, ptr %14, align 8, !tbaa !11
  %16 = load double, ptr %8, align 8, !tbaa !9
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.primordial, ptr %17, i32 0, i32 58
  %19 = load double, ptr %18, align 8, !tbaa !15
  %20 = call double @llvm.fmuladd.f64(double %16, double %19, double %15)
  %21 = load double, ptr %8, align 8, !tbaa !9
  %22 = call double @pow(double noundef %21, double noundef 2.000000e+00) #3
  %23 = fdiv double %22, 2.000000e+00
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.primordial, ptr %24, i32 0, i32 59
  %26 = load double, ptr %25, align 8, !tbaa !16
  %27 = call double @llvm.fmuladd.f64(double %23, double %26, double %20)
  %28 = load double, ptr %8, align 8, !tbaa !9
  %29 = call double @pow(double noundef %28, double noundef 3.000000e+00) #3
  %30 = fdiv double %29, 6.000000e+00
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.primordial, ptr %31, i32 0, i32 60
  %33 = load double, ptr %32, align 8, !tbaa !17
  %34 = call double @llvm.fmuladd.f64(double %30, double %33, double %27)
  %35 = load double, ptr %8, align 8, !tbaa !9
  %36 = call double @pow(double noundef %35, double noundef 4.000000e+00) #3
  %37 = fdiv double %36, 2.400000e+01
  %38 = load ptr, ptr %7, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.primordial, ptr %38, i32 0, i32 61
  %40 = load double, ptr %39, align 8, !tbaa !18
  %41 = call double @llvm.fmuladd.f64(double %37, double %40, double %34)
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  store double %41, ptr %42, align 8, !tbaa !9
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.primordial, ptr %43, i32 0, i32 58
  %45 = load double, ptr %44, align 8, !tbaa !15
  %46 = load double, ptr %8, align 8, !tbaa !9
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.primordial, ptr %47, i32 0, i32 59
  %49 = load double, ptr %48, align 8, !tbaa !16
  %50 = call double @llvm.fmuladd.f64(double %46, double %49, double %45)
  %51 = load double, ptr %8, align 8, !tbaa !9
  %52 = call double @pow(double noundef %51, double noundef 2.000000e+00) #3
  %53 = fdiv double %52, 2.000000e+00
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.primordial, ptr %54, i32 0, i32 60
  %56 = load double, ptr %55, align 8, !tbaa !17
  %57 = call double @llvm.fmuladd.f64(double %53, double %56, double %50)
  %58 = load double, ptr %8, align 8, !tbaa !9
  %59 = call double @pow(double noundef %58, double noundef 3.000000e+00) #3
  %60 = fdiv double %59, 6.000000e+00
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.primordial, ptr %61, i32 0, i32 61
  %63 = load double, ptr %62, align 8, !tbaa !18
  %64 = call double @llvm.fmuladd.f64(double %60, double %63, double %57)
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  store double %64, ptr %65, align 8, !tbaa !9
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.primordial, ptr %66, i32 0, i32 59
  %68 = load double, ptr %67, align 8, !tbaa !16
  %69 = load double, ptr %8, align 8, !tbaa !9
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.primordial, ptr %70, i32 0, i32 60
  %72 = load double, ptr %71, align 8, !tbaa !17
  %73 = call double @llvm.fmuladd.f64(double %69, double %72, double %68)
  %74 = load double, ptr %8, align 8, !tbaa !9
  %75 = call double @pow(double noundef %74, double noundef 2.000000e+00) #3
  %76 = fdiv double %75, 2.000000e+00
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.primordial, ptr %77, i32 0, i32 61
  %79 = load double, ptr %78, align 8, !tbaa !18
  %80 = call double @llvm.fmuladd.f64(double %76, double %79, double %73)
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  store double %80, ptr %81, align 8, !tbaa !9
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.primordial, ptr %82, i32 0, i32 60
  %84 = load double, ptr %83, align 8, !tbaa !17
  %85 = load double, ptr %8, align 8, !tbaa !9
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.primordial, ptr %86, i32 0, i32 61
  %88 = load double, ptr %87, align 8, !tbaa !18
  %89 = call double @llvm.fmuladd.f64(double %85, double %88, double %84)
  %90 = load ptr, ptr %12, align 8, !tbaa !5
  store double %89, ptr %90, align 8, !tbaa !9
  ret i32 0
}

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #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, !10, i64 456}
!12 = !{!"primordial", !10, i64 0, !13, 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, !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, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !10, i64 224, !10, i64 232, !10, i64 240, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !10, i64 280, !10, i64 288, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320, !10, i64 328, !10, i64 336, !10, i64 344, !10, i64 352, !10, i64 360, !10, i64 368, !10, i64 376, !10, i64 384, !10, i64 392, !10, i64 400, !13, i64 408, !10, 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, !13, i64 504, !10, i64 512, !13, i64 520, !6, 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, !13, i64 616, !6, i64 624, !6, i64 632, !13, i64 640, !6, i64 648, !6, i64 656, !6, i64 664, !6, i64 672, !6, i64 680, !6, i64 688, !6, i64 696, !13, i64 704, !13, i64 708, !13, i64 712, !13, i64 716, !13, i64 720, !13, i64 724, !13, i64 728, !13, i64 732, !13, i64 736, !13, i64 740, !13, i64 744, !13, i64 748, !13, i64 752, !10, i64 760, !10, i64 768, !10, i64 776, !10, i64 784, !14, i64 792, !7, i64 794}
!13 = !{!"int", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!12, !10, i64 464}
!16 = !{!12, !10, i64 472}
!17 = !{!12, !10, i64 480}
!18 = !{!12, !10, i64 488}


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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write, argmem: readwrite) uwtable
define dso_local noundef i32 @primordial_inflation_hubble(ptr nocapture noundef readonly %0, double noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #2 {
  %7 = getelementptr inbounds i8, ptr %0, i64 456
  %8 = load double, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 464
  %10 = load double, ptr %9, align 8, !tbaa !13
  %11 = tail call double @llvm.fmuladd.f64(double %1, double %10, double %8)
  %square = fmul double %1, %1
  %12 = fmul double %square, 5.000000e-01
  %13 = getelementptr inbounds i8, ptr %0, i64 472
  %14 = load double, ptr %13, align 8, !tbaa !14
  %15 = tail call double @llvm.fmuladd.f64(double %12, double %14, double %11)
  %16 = tail call double @pow(double noundef %1, double noundef 3.000000e+00) #3
  %17 = fdiv double %16, 6.000000e+00
  %18 = getelementptr inbounds i8, ptr %0, i64 480
  %19 = load double, ptr %18, align 8, !tbaa !15
  %20 = tail call double @llvm.fmuladd.f64(double %17, double %19, double %15)
  %21 = tail call double @pow(double noundef %1, double noundef 4.000000e+00) #3
  %22 = fdiv double %21, 2.400000e+01
  %23 = getelementptr inbounds i8, ptr %0, i64 488
  %24 = load double, ptr %23, align 8, !tbaa !16
  %25 = tail call double @llvm.fmuladd.f64(double %22, double %24, double %20)
  store double %25, ptr %2, align 8, !tbaa !17
  %26 = load double, ptr %9, align 8, !tbaa !13
  %27 = load double, ptr %13, align 8, !tbaa !14
  %28 = tail call double @llvm.fmuladd.f64(double %1, double %27, double %26)
  %29 = load double, ptr %18, align 8, !tbaa !15
  %30 = tail call double @llvm.fmuladd.f64(double %12, double %29, double %28)
  %31 = tail call double @pow(double noundef %1, double noundef 3.000000e+00) #3
  %32 = fdiv double %31, 6.000000e+00
  %33 = load double, ptr %23, align 8, !tbaa !16
  %34 = tail call double @llvm.fmuladd.f64(double %32, double %33, double %30)
  store double %34, ptr %3, align 8, !tbaa !17
  %35 = load double, ptr %13, align 8, !tbaa !14
  %36 = load double, ptr %18, align 8, !tbaa !15
  %37 = tail call double @llvm.fmuladd.f64(double %1, double %36, double %35)
  %38 = load double, ptr %23, align 8, !tbaa !16
  %39 = tail call double @llvm.fmuladd.f64(double %12, double %38, double %37)
  store double %39, ptr %4, align 8, !tbaa !17
  %40 = load double, ptr %18, align 8, !tbaa !15
  %41 = load double, ptr %23, align 8, !tbaa !16
  %42 = tail call double @llvm.fmuladd.f64(double %1, double %41, double %40)
  store double %42, ptr %5, align 8, !tbaa !17
  ret i32 0
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { mustprogress nofree nounwind willreturn memory(write, argmem: readwrite) 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 456}
!6 = !{!"primordial", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !7, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !7, i64 232, !7, i64 240, !7, i64 248, !7, i64 256, !7, i64 264, !7, i64 272, !7, i64 280, !7, i64 288, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320, !7, i64 328, !7, i64 336, !7, i64 344, !7, i64 352, !7, i64 360, !7, i64 368, !7, i64 376, !7, i64 384, !7, i64 392, !7, i64 400, !10, i64 408, !7, i64 416, !7, i64 424, !7, i64 432, !7, i64 440, !7, i64 448, !7, i64 456, !7, i64 464, !7, i64 472, !7, i64 480, !7, i64 488, !7, i64 496, !10, i64 504, !7, i64 512, !10, i64 520, !11, i64 528, !7, i64 536, !7, i64 544, !7, i64 552, !7, i64 560, !7, i64 568, !7, i64 576, !7, i64 584, !7, i64 592, !7, i64 600, !7, i64 608, !10, i64 616, !11, i64 624, !11, i64 632, !10, i64 640, !11, i64 648, !11, i64 656, !11, i64 664, !11, i64 672, !11, i64 680, !11, i64 688, !11, i64 696, !10, i64 704, !10, i64 708, !10, i64 712, !10, i64 716, !10, i64 720, !10, i64 724, !10, i64 728, !10, i64 732, !10, i64 736, !10, i64 740, !10, i64 744, !10, i64 748, !10, i64 752, !7, i64 760, !7, i64 768, !7, i64 776, !7, i64 784, !12, i64 792, !8, i64 794}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!6, !7, i64 464}
!14 = !{!6, !7, i64 472}
!15 = !{!6, !7, i64 480}
!16 = !{!6, !7, i64 488}
!17 = !{!7, !7, i64 0}


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