; LLVM IR from sphexa-org/sphexa :: main/src/analytical_solutions/sedov_solution (sedov_solution)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13SedovSolution5qromoESt8functionIFddEEdddRdS0_IFvmS2_ddS3_EE(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %5) #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca [15 x double], align 16
  %18 = alloca [15 x double], align 16
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::function", align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca double, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store double %1, ptr %8, align 8, !tbaa !9
  store double %2, ptr %9, align 8, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  store i64 14, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  store i64 15, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  store i64 5, ptr %15, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  store i64 4, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 120, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr %18) #6
  %25 = getelementptr inbounds [15 x double], ptr %18, i64 0, i64 0
  store double 1.000000e+00, ptr %25, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  store i64 0, ptr %19, align 8, !tbaa !11
  br label %26

26:                                               ; preds = %79, %6
  %27 = load i64, ptr %19, align 8, !tbaa !11
  %28 = icmp ult i64 %27, 14
  br i1 %28, label %30, label %29

29:                                               ; preds = %26
  store i32 2, ptr %20, align 4
  br label %82

30:                                               ; preds = %26
  %31 = load i64, ptr %19, align 8, !tbaa !11
  %32 = add i64 %31, 1
  call void @_ZNSt8functionIFddEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %21, ptr noundef nonnull align 8 dereferenceable(32) %0)
  %33 = load double, ptr %8, align 8, !tbaa !9
  %34 = load double, ptr %9, align 8, !tbaa !9
  %35 = load i64, ptr %19, align 8, !tbaa !11
  %36 = getelementptr inbounds [15 x double], ptr %17, i64 0, i64 %35
  invoke void @_ZNKSt8functionIFvmS_IFddEEddRdEEclEmS1_ddS2_(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %32, ptr noundef %21, double noundef %33, double noundef %34, ptr noundef nonnull align 8 dereferenceable(8) %36)
          to label %37 unwind label %57

37:                                               ; preds = %30
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  %38 = load i64, ptr %19, align 8, !tbaa !11
  %39 = icmp uge i64 %38, 4
  br i1 %39, label %40, label %65

40:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %41 = load i64, ptr %19, align 8, !tbaa !11
  %42 = sub i64 %41, 4
  %43 = getelementptr inbounds [15 x double], ptr %18, i64 0, i64 %42
  %44 = load i64, ptr %19, align 8, !tbaa !11
  %45 = sub i64 %44, 4
  %46 = getelementptr inbounds [15 x double], ptr %17, i64 0, i64 %45
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN13SedovSolution6polintEPdS0_mdRdS1_(ptr noundef %43, ptr noundef %46, i64 noundef 5, double noundef 0.000000e+00, ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull align 8 dereferenceable(8) %24)
  %48 = load double, ptr %24, align 8, !tbaa !9
  %49 = call noundef double @_ZSt3absd(double noundef %48)
  %50 = load double, ptr %10, align 8, !tbaa !9
  %51 = load ptr, ptr %11, align 8, !tbaa !5
  %52 = load double, ptr %51, align 8, !tbaa !9
  %53 = call noundef double @_ZSt3absd(double noundef %52)
  %54 = fmul double %50, %53
  %55 = fcmp ole double %49, %54
  br i1 %55, label %56, label %61

56:                                               ; preds = %40
  store i32 1, ptr %20, align 4
  br label %62

57:                                               ; preds = %30
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %22, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %23, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  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
  br label %88

61:                                               ; preds = %40
  store i32 0, ptr %20, align 4
  br label %62

62:                                               ; preds = %61, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  %63 = load i32, ptr %20, align 4
  switch i32 %63, label %82 [
    i32 0, label %64
  ]

64:                                               ; preds = %62
  br label %65

65:                                               ; preds = %64, %37
  %66 = load i64, ptr %19, align 8, !tbaa !11
  %67 = getelementptr inbounds [15 x double], ptr %17, i64 0, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !9
  %69 = load i64, ptr %19, align 8, !tbaa !11
  %70 = add i64 %69, 1
  %71 = getelementptr inbounds [15 x double], ptr %17, i64 0, i64 %70
  store double %68, ptr %71, align 8, !tbaa !9
  %72 = load i64, ptr %19, align 8, !tbaa !11
  %73 = getelementptr inbounds [15 x double], ptr %18, i64 0, i64 %72
  %74 = load double, ptr %73, align 8, !tbaa !9
  %75 = fdiv double %74, 9.000000e+00
  %76 = load i64, ptr %19, align 8, !tbaa !11
  %77 = add i64 %76, 1
  %78 = getelementptr inbounds [15 x double], ptr %18, i64 0, i64 %77
  store double %75, ptr %78, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %65
  %80 = load i64, ptr %19, align 8, !tbaa !11
  %81 = add i64 %80, 1
  store i64 %81, ptr %19, align 8, !tbaa !11
  br label %26, !llvm.loop !13

82:                                               ; preds = %62, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  %83 = load i32, ptr %20, align 4
  switch i32 %83, label %87 [
    i32 2, label %84
  ]

84:                                               ; preds = %82
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @exit(i32 noundef -1) #7
  unreachable

87:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 120, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  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
  ret void

88:                                               ; preds = %57
  %89 = load ptr, ptr %22, align 8
  %90 = load i32, ptr %23, align 4
  %91 = insertvalue { ptr, i32 } poison, ptr %89, 0
  %92 = insertvalue { ptr, i32 } %91, i32 %90, 1
  resume { ptr, i32 } %92
}

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt8functionIFddEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13SedovSolution6polintEPdS0_mdRdS1_(ptr noundef, ptr noundef, i64 noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvmS_IFddEEddRdEEclEmS1_ddS2_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, ptr noundef, double noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 #2 = { 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 #3 = { noreturn 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 = { 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 = { 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 }
attributes #7 = { noreturn 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, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [31 x i8], align 1

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13SedovSolution5qromoESt8functionIFddEEdddRdS0_IFvmS2_ddS3_EE(ptr noundef nonnull %0, double noundef %1, double noundef %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %5) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
.peel.begin:
  %6 = alloca [15 x double], align 16
  %7 = alloca [15 x double], align 16
  %8 = alloca %"class.std::function", align 8
  %9 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %7) #6
  store double 1.000000e+00, ptr %7, align 16, !tbaa !5
  call void @_ZNSt8functionIFddEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %0)
  invoke void @_ZNKSt8functionIFvmS_IFddEEddRdEEclEmS1_ddS2_(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef 1, ptr noundef nonnull %8, double noundef %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %.peel.next unwind label %.loopexit.split-lp

.peel.next:                                       ; preds = %.peel.begin
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  %.pre = load double, ptr %6, align 16, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %6, i64 8
  store double %.pre, ptr %10, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %7, i64 8
  store double 0x3FBC71C71C71C71C, ptr %11, align 8, !tbaa !5
  call void @_ZNSt8functionIFddEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %0)
  invoke void @_ZNKSt8functionIFvmS_IFddEEddRdEEclEmS1_ddS2_(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef 2, ptr noundef nonnull %8, double noundef %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %.peel.next22 unwind label %.loopexit.split-lp

.peel.next22:                                     ; preds = %.peel.next
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  %.pre36 = load double, ptr %11, align 8, !tbaa !5
  %.pre35 = load double, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %6, i64 16
  store double %.pre35, ptr %12, align 16, !tbaa !5
  %13 = fdiv double %.pre36, 9.000000e+00
  %14 = getelementptr inbounds i8, ptr %7, i64 16
  store double %13, ptr %14, align 16, !tbaa !5
  call void @_ZNSt8functionIFddEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %0)
  invoke void @_ZNKSt8functionIFvmS_IFddEEddRdEEclEmS1_ddS2_(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef 3, ptr noundef nonnull %8, double noundef %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %.peel.next24 unwind label %.loopexit.split-lp

.peel.next24:                                     ; preds = %.peel.next22
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  %.pre42 = load double, ptr %14, align 16, !tbaa !5
  %.pre41 = load double, ptr %12, align 16, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %6, i64 24
  store double %.pre41, ptr %15, align 8, !tbaa !5
  %16 = fdiv double %.pre42, 9.000000e+00
  %17 = getelementptr inbounds i8, ptr %7, i64 24
  store double %16, ptr %17, align 8, !tbaa !5
  call void @_ZNSt8functionIFddEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %0)
  invoke void @_ZNKSt8functionIFvmS_IFddEEddRdEEclEmS1_ddS2_(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef 4, ptr noundef nonnull %8, double noundef %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %.peel.next26 unwind label %.loopexit.split-lp

.peel.next26:                                     ; preds = %.peel.next24
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  %.pre48 = load double, ptr %17, align 8, !tbaa !5
  %.pre47 = load double, ptr %15, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %6, i64 32
  store double %.pre47, ptr %18, align 16, !tbaa !5
  %19 = fdiv double %.pre48, 9.000000e+00
  %20 = getelementptr inbounds i8, ptr %7, i64 32
  store double %19, ptr %20, align 16, !tbaa !5
  br label %21

21:                                               ; preds = %.peel.next26, %35
  %.021 = phi i64 [ 4, %.peel.next26 ], [ %22, %35 ]
  %22 = add nuw nsw i64 %.021, 1
  call void @_ZNSt8functionIFddEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %0)
  %23 = getelementptr inbounds [15 x double], ptr %6, i64 0, i64 %.021
  invoke void @_ZNKSt8functionIFvmS_IFddEEddRdEEclEmS1_ddS2_(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %22, ptr noundef nonnull %8, double noundef %1, double noundef %2, ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %24 unwind label %.loopexit

24:                                               ; preds = %21
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %25 = add nsw i64 %.021, -4
  %26 = getelementptr inbounds [15 x double], ptr %7, i64 0, i64 %25
  %27 = getelementptr inbounds [15 x double], ptr %6, i64 0, i64 %25
  call void @_ZN13SedovSolution6polintEPdS0_mdRdS1_(ptr noundef nonnull %26, ptr noundef nonnull %27, i64 noundef 5, double noundef 0.000000e+00, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %28 = load double, ptr %9, align 8, !tbaa !5
  %29 = call noundef double @_ZSt3absd(double noundef %28)
  %30 = load double, ptr %4, align 8, !tbaa !5
  %31 = call noundef double @_ZSt3absd(double noundef %30)
  %32 = fmul double %31, %3
  %33 = fcmp ugt double %29, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  br i1 %33, label %35, label %.loopexit29

.loopexit:                                        ; preds = %21
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %34

.loopexit.split-lp:                               ; preds = %.peel.begin, %.peel.next, %.peel.next22, %.peel.next24
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %34

34:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %6) #6
  resume { ptr, i32 } %lpad.phi

35:                                               ; preds = %24
  %36 = load double, ptr %23, align 8, !tbaa !5
  %37 = getelementptr inbounds [15 x double], ptr %6, i64 0, i64 %22
  store double %36, ptr %37, align 8, !tbaa !5
  %38 = getelementptr inbounds [15 x double], ptr %7, i64 0, i64 %.021
  %39 = load double, ptr %38, align 8, !tbaa !5
  %40 = fdiv double %39, 9.000000e+00
  %41 = getelementptr inbounds [15 x double], ptr %7, i64 0, i64 %22
  store double %40, ptr %41, align 8, !tbaa !5
  %exitcond = icmp eq i64 %22, 14
  br i1 %exitcond, label %.critedge, label %21, !llvm.loop !9

.critedge:                                        ; preds = %35
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %42, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @exit(i32 noundef -1) #7
  unreachable

.loopexit29:                                      ; preds = %24
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %6) #6
  ret void
}

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt8functionIFddEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13SedovSolution6polintEPdS0_mdRdS1_(ptr noundef, ptr noundef, i64 noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvmS_IFddEEddRdEEclEmS1_ddS2_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, ptr noundef, double noundef, double noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 #2 = { 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 #3 = { noreturn 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 = { 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 = { 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 }
attributes #7 = { noreturn 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.peeled.count", i32 4}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopFullUnrollPass,LoopRotatePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass