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

@_ZN13SedovSolution7gam_intE = external dso_local global double, align 8

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

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

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

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

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 #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13SedovSolution7midpowlEmSt8functionIFddEEddRd(i64 noundef %0, ptr noundef %1, double noundef %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca %"class.std::function", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca i64, align 8
  %24 = alloca %"class.std::function", align 8
  %25 = alloca %"class.std::function", align 8
  store i64 %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !9
  store double %2, ptr %8, align 8, !tbaa !11
  store double %3, ptr %9, align 8, !tbaa !11
  store ptr %4, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %26 = load double, ptr %9, align 8, !tbaa !11
  %27 = load double, ptr %8, align 8, !tbaa !11
  %28 = fsub double %26, %27
  %29 = load double, ptr @_ZN13SedovSolution7gam_intE, align 8, !tbaa !11
  %30 = fsub double 1.000000e+00, %29
  %31 = call double @pow(double noundef %28, double noundef %30) #6
  store double %31, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  store double 0.000000e+00, ptr %12, align 8, !tbaa !11
  %32 = load i64, ptr %6, align 8, !tbaa !5
  %33 = icmp eq i64 %32, 1
  br i1 %33, label %34, label %52

34:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %35 = load double, ptr %12, align 8, !tbaa !11
  %36 = load double, ptr %11, align 8, !tbaa !11
  %37 = fadd double %35, %36
  %38 = fmul double 5.000000e-01, %37
  store double %38, ptr %13, align 8, !tbaa !11
  %39 = load double, ptr %11, align 8, !tbaa !11
  %40 = load double, ptr %12, align 8, !tbaa !11
  %41 = fsub double %39, %40
  call void @_ZNSt8functionIFddEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %42 = load double, ptr %13, align 8, !tbaa !11
  %43 = load double, ptr %8, align 8, !tbaa !11
  %44 = invoke noundef double @_ZN13SedovSolution12midpowl_funcESt8functionIFddEEdd(ptr noundef %14, double noundef %42, double noundef %43)
          to label %45 unwind label %48

45:                                               ; preds = %34
  %46 = fmul double %41, %44
  %47 = load ptr, ptr %10, align 8, !tbaa !9
  store double %46, ptr %47, align 8, !tbaa !11
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %119

48:                                               ; preds = %34
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %15, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %16, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %120

52:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %53 = load i64, ptr %6, align 8, !tbaa !5
  %54 = sub i64 %53, 2
  %55 = call noundef double @_ZSt3powIimEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef 3, i64 noundef %54)
  %56 = fptoui double %55 to i64
  store i64 %56, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %57 = load i64, ptr %17, align 8, !tbaa !5
  %58 = uitofp i64 %57 to double
  store double %58, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %59 = load double, ptr %11, align 8, !tbaa !11
  %60 = load double, ptr %12, align 8, !tbaa !11
  %61 = fsub double %59, %60
  %62 = load double, ptr %18, align 8, !tbaa !11
  %63 = fmul double 3.000000e+00, %62
  %64 = fdiv double %61, %63
  store double %64, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %65 = load double, ptr %19, align 8, !tbaa !11
  %66 = fmul double 2.000000e+00, %65
  store double %66, ptr %20, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  store double 0.000000e+00, ptr %21, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %67 = load double, ptr %12, align 8, !tbaa !11
  %68 = load double, ptr %19, align 8, !tbaa !11
  %69 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %68, double %67)
  store double %69, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  store i64 0, ptr %23, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %94, %52
  %71 = load i64, ptr %23, align 8, !tbaa !5
  %72 = load i64, ptr %17, align 8, !tbaa !5
  %73 = icmp ult i64 %71, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %106

75:                                               ; preds = %70
  %76 = load double, ptr %21, align 8, !tbaa !11
  call void @_ZNSt8functionIFddEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %77 = load double, ptr %22, align 8, !tbaa !11
  %78 = load double, ptr %8, align 8, !tbaa !11
  %79 = invoke noundef double @_ZN13SedovSolution12midpowl_funcESt8functionIFddEEdd(ptr noundef %24, double noundef %77, double noundef %78)
          to label %80 unwind label %97

80:                                               ; preds = %75
  %81 = fadd double %76, %79
  store double %81, ptr %21, align 8, !tbaa !11
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  %82 = load double, ptr %22, align 8, !tbaa !11
  %83 = load double, ptr %20, align 8, !tbaa !11
  %84 = fadd double %82, %83
  store double %84, ptr %22, align 8, !tbaa !11
  %85 = load double, ptr %21, align 8, !tbaa !11
  call void @_ZNSt8functionIFddEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %86 = load double, ptr %22, align 8, !tbaa !11
  %87 = load double, ptr %8, align 8, !tbaa !11
  %88 = invoke noundef double @_ZN13SedovSolution12midpowl_funcESt8functionIFddEEdd(ptr noundef %25, double noundef %86, double noundef %87)
          to label %89 unwind label %101

89:                                               ; preds = %80
  %90 = fadd double %85, %88
  store double %90, ptr %21, align 8, !tbaa !11
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  %91 = load double, ptr %22, align 8, !tbaa !11
  %92 = load double, ptr %19, align 8, !tbaa !11
  %93 = fadd double %91, %92
  store double %93, ptr %22, align 8, !tbaa !11
  br label %94

94:                                               ; preds = %89
  %95 = load i64, ptr %23, align 8, !tbaa !5
  %96 = add i64 %95, 1
  store i64 %96, ptr %23, align 8, !tbaa !5
  br label %70, !llvm.loop !13

97:                                               ; preds = %75
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %15, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %16, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #6
  br label %105

101:                                              ; preds = %80
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %15, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %16, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #6
  br label %105

105:                                              ; preds = %101, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %120

106:                                              ; preds = %74
  %107 = load ptr, ptr %10, align 8, !tbaa !9
  %108 = load double, ptr %107, align 8, !tbaa !11
  %109 = load double, ptr %11, align 8, !tbaa !11
  %110 = load double, ptr %12, align 8, !tbaa !11
  %111 = fsub double %109, %110
  %112 = load double, ptr %21, align 8, !tbaa !11
  %113 = fmul double %111, %112
  %114 = load double, ptr %18, align 8, !tbaa !11
  %115 = fdiv double %113, %114
  %116 = fadd double %108, %115
  %117 = fdiv double %116, 3.000000e+00
  %118 = load ptr, ptr %10, align 8, !tbaa !9
  store double %117, ptr %118, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %119

119:                                              ; preds = %106, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  ret void

120:                                              ; preds = %105, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %121

121:                                              ; preds = %120
  %122 = load ptr, ptr %15, align 8
  %123 = load i32, ptr %16, align 4
  %124 = insertvalue { ptr, i32 } poison, ptr %122, 0
  %125 = insertvalue { ptr, i32 } %124, i32 %123, 1
  resume { ptr, i32 } %125
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN13SedovSolution12midpowl_funcESt8functionIFddEEdd(ptr noundef, double noundef, double noundef) #4 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 #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { 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 #3 = { 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 #4 = { 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 #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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !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::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 } }

@_ZN13SedovSolution7gam_intE = external dso_local local_unnamed_addr global double, align 8

; 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

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 #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13SedovSolution7midpowlEmSt8functionIFddEEddRd(i64 noundef %0, ptr noundef %1, double noundef %2, double noundef %3, ptr nocapture noundef nonnull align 8 dereferenceable(8) %4) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::function", align 8
  %7 = alloca %"class.std::function", align 8
  %8 = alloca %"class.std::function", align 8
  %9 = fsub double %3, %2
  %10 = load double, ptr @_ZN13SedovSolution7gam_intE, align 8, !tbaa !5
  %11 = fsub double 1.000000e+00, %10
  %12 = tail call double @pow(double noundef %9, double noundef %11) #5
  %13 = icmp eq i64 %0, 1
  br i1 %13, label %14, label %22

14:                                               ; preds = %5
  %15 = fadd double %12, 0.000000e+00
  %16 = fmul double %15, 5.000000e-01
  call void @_ZNSt8functionIFddEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %17 = invoke noundef double @_ZN13SedovSolution12midpowl_funcESt8functionIFddEEdd(ptr noundef nonnull %6, double noundef %16, double noundef %2)
          to label %18 unwind label %20

18:                                               ; preds = %14
  %19 = fmul double %12, %17
  store double %19, ptr %4, align 8, !tbaa !5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  br label %49

20:                                               ; preds = %14
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %50

22:                                               ; preds = %5
  %23 = add i64 %0, -2
  %24 = tail call noundef double @_ZSt3powIimEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(i32 noundef 3, i64 noundef %23)
  %25 = fptoui double %24 to i64
  %26 = uitofp i64 %25 to double
  %27 = fmul double %26, 3.000000e+00
  %28 = fdiv double %12, %27
  %29 = fmul double %28, 2.000000e+00
  %.not = icmp eq i64 %25, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %22
  %30 = tail call double @llvm.fmuladd.f64(double %28, double 5.000000e-01, double 0.000000e+00)
  br label %.lr.ph

._crit_edge:                                      ; preds = %40, %22
  %.039.lcssa = phi double [ 0.000000e+00, %22 ], [ %42, %40 ]
  %31 = load double, ptr %4, align 8, !tbaa !5
  %32 = fmul double %12, %.039.lcssa
  %33 = fdiv double %32, %26
  %34 = fadd double %33, %31
  %35 = fdiv double %34, 3.000000e+00
  store double %35, ptr %4, align 8, !tbaa !5
  br label %49

.lr.ph:                                           ; preds = %.lr.ph.preheader, %40
  %.051 = phi i64 [ %44, %40 ], [ 0, %.lr.ph.preheader ]
  %.03850 = phi double [ %43, %40 ], [ %30, %.lr.ph.preheader ]
  %.03949 = phi double [ %42, %40 ], [ 0.000000e+00, %.lr.ph.preheader ]
  call void @_ZNSt8functionIFddEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %36 = invoke noundef double @_ZN13SedovSolution12midpowl_funcESt8functionIFddEEdd(ptr noundef nonnull %7, double noundef %.03850, double noundef %2)
          to label %37 unwind label %45

37:                                               ; preds = %.lr.ph
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  %38 = fadd double %29, %.03850
  call void @_ZNSt8functionIFddEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %1)
  %39 = invoke noundef double @_ZN13SedovSolution12midpowl_funcESt8functionIFddEEdd(ptr noundef nonnull %8, double noundef %38, double noundef %2)
          to label %40 unwind label %47

40:                                               ; preds = %37
  %41 = fadd double %.03949, %36
  %42 = fadd double %41, %39
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  %43 = fadd double %28, %38
  %44 = add nuw i64 %.051, 1
  %exitcond.not = icmp eq i64 %44, %25
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

45:                                               ; preds = %.lr.ph
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %50

47:                                               ; preds = %37
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %50

49:                                               ; preds = %._crit_edge, %18
  ret void

50:                                               ; preds = %45, %47, %20
  %.sink = phi ptr [ %7, %45 ], [ %8, %47 ], [ %6, %20 ]
  %.pn45 = phi { ptr, i32 } [ %46, %45 ], [ %48, %47 ], [ %21, %20 ]
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %.sink) #5
  resume { ptr, i32 } %.pn45
}

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN13SedovSolution12midpowl_funcESt8functionIFddEEdd(ptr noundef, double noundef, double noundef) local_unnamed_addr #3 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 #3 align 2

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 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 = { 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 #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, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass