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

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [49 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 @_ZN13SedovSolution6polintEPdS0_mdRdS1_(ptr noundef %0, ptr noundef %1, i64 noundef %2, double noundef %3, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #2 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca [20 x double], align 16
  %15 = alloca [20 x double], align 16
  %16 = alloca i64, align 8
  %17 = alloca double, align 8
  %18 = alloca i64, align 8
  %19 = alloca double, align 8
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i64 %2, ptr %9, align 8, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !11
  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) #5
  store i64 20, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 160, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i64 0, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %27 = load double, ptr %10, align 8, !tbaa !11
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds double, ptr %28, i64 0
  %30 = load double, ptr %29, align 8, !tbaa !11
  %31 = fsub double %27, %30
  %32 = call noundef double @_ZSt3absd(double noundef %31)
  store double %32, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store i64 0, ptr %18, align 8, !tbaa !9
  br label %33

33:                                               ; preds = %65, %6
  %34 = load i64, ptr %18, align 8, !tbaa !9
  %35 = load i64, ptr %9, align 8, !tbaa !9
  %36 = icmp ult i64 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %68

38:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %39 = load double, ptr %10, align 8, !tbaa !11
  %40 = load ptr, ptr %7, align 8, !tbaa !5
  %41 = load i64, ptr %18, align 8, !tbaa !9
  %42 = getelementptr inbounds double, ptr %40, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !11
  %44 = fsub double %39, %43
  %45 = call noundef double @_ZSt3absd(double noundef %44)
  store double %45, ptr %19, align 8, !tbaa !11
  %46 = load double, ptr %19, align 8, !tbaa !11
  %47 = load double, ptr %17, align 8, !tbaa !11
  %48 = fcmp olt double %46, %47
  br i1 %48, label %49, label %52

49:                                               ; preds = %38
  %50 = load i64, ptr %18, align 8, !tbaa !9
  store i64 %50, ptr %16, align 8, !tbaa !9
  %51 = load double, ptr %19, align 8, !tbaa !11
  store double %51, ptr %17, align 8, !tbaa !11
  br label %52

52:                                               ; preds = %49, %38
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = load i64, ptr %18, align 8, !tbaa !9
  %55 = getelementptr inbounds double, ptr %53, i64 %54
  %56 = load double, ptr %55, align 8, !tbaa !11
  %57 = load i64, ptr %18, align 8, !tbaa !9
  %58 = getelementptr inbounds [20 x double], ptr %14, i64 0, i64 %57
  store double %56, ptr %58, align 8, !tbaa !11
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load i64, ptr %18, align 8, !tbaa !9
  %61 = getelementptr inbounds double, ptr %59, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !11
  %63 = load i64, ptr %18, align 8, !tbaa !9
  %64 = getelementptr inbounds [20 x double], ptr %15, i64 0, i64 %63
  store double %62, ptr %64, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %65

65:                                               ; preds = %52
  %66 = load i64, ptr %18, align 8, !tbaa !9
  %67 = add i64 %66, 1
  store i64 %67, ptr %18, align 8, !tbaa !9
  br label %33, !llvm.loop !13

68:                                               ; preds = %37
  %69 = load ptr, ptr %8, align 8, !tbaa !5
  %70 = load i64, ptr %16, align 8, !tbaa !9
  %71 = getelementptr inbounds double, ptr %69, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !11
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  store double %72, ptr %73, align 8, !tbaa !11
  %74 = load i64, ptr %16, align 8, !tbaa !9
  %75 = sub i64 %74, 1
  store i64 %75, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store i64 0, ptr %20, align 8, !tbaa !9
  br label %76

76:                                               ; preds = %169, %68
  %77 = load i64, ptr %20, align 8, !tbaa !9
  %78 = load i64, ptr %9, align 8, !tbaa !9
  %79 = sub i64 %78, 1
  %80 = icmp ult i64 %77, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %76
  store i32 5, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %172

82:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %83

83:                                               ; preds = %137, %82
  %84 = load i64, ptr %22, align 8, !tbaa !9
  %85 = load i64, ptr %9, align 8, !tbaa !9
  %86 = load i64, ptr %20, align 8, !tbaa !9
  %87 = sub i64 %85, %86
  %88 = sub i64 %87, 1
  %89 = icmp ult i64 %84, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %83
  store i32 8, ptr %21, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %140

91:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load i64, ptr %22, align 8, !tbaa !9
  %94 = getelementptr inbounds double, ptr %92, i64 %93
  %95 = load double, ptr %94, align 8, !tbaa !11
  %96 = load double, ptr %10, align 8, !tbaa !11
  %97 = fsub double %95, %96
  store double %97, ptr %23, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = load i64, ptr %22, align 8, !tbaa !9
  %100 = load i64, ptr %20, align 8, !tbaa !9
  %101 = add i64 %99, %100
  %102 = add i64 %101, 1
  %103 = getelementptr inbounds double, ptr %98, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !11
  %105 = load double, ptr %10, align 8, !tbaa !11
  %106 = fsub double %104, %105
  store double %106, ptr %24, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %107 = load i64, ptr %22, align 8, !tbaa !9
  %108 = add i64 %107, 1
  %109 = getelementptr inbounds [20 x double], ptr %14, i64 0, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !11
  %111 = load i64, ptr %22, align 8, !tbaa !9
  %112 = getelementptr inbounds [20 x double], ptr %15, i64 0, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !11
  %114 = fsub double %110, %113
  store double %114, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %115 = load double, ptr %23, align 8, !tbaa !11
  %116 = load double, ptr %24, align 8, !tbaa !11
  %117 = fsub double %115, %116
  store double %117, ptr %26, align 8, !tbaa !11
  %118 = load double, ptr %26, align 8, !tbaa !11
  %119 = fcmp oeq double %118, 0.000000e+00
  br i1 %119, label %120, label %123

120:                                              ; preds = %91
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %121, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @exit(i32 noundef -1) #6
  unreachable

123:                                              ; preds = %91
  %124 = load double, ptr %25, align 8, !tbaa !11
  %125 = load double, ptr %26, align 8, !tbaa !11
  %126 = fdiv double %124, %125
  store double %126, ptr %26, align 8, !tbaa !11
  %127 = load double, ptr %24, align 8, !tbaa !11
  %128 = load double, ptr %26, align 8, !tbaa !11
  %129 = fmul double %127, %128
  %130 = load i64, ptr %22, align 8, !tbaa !9
  %131 = getelementptr inbounds [20 x double], ptr %15, i64 0, i64 %130
  store double %129, ptr %131, align 8, !tbaa !11
  %132 = load double, ptr %23, align 8, !tbaa !11
  %133 = load double, ptr %26, align 8, !tbaa !11
  %134 = fmul double %132, %133
  %135 = load i64, ptr %22, align 8, !tbaa !9
  %136 = getelementptr inbounds [20 x double], ptr %14, i64 0, i64 %135
  store double %134, ptr %136, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %137

137:                                              ; preds = %123
  %138 = load i64, ptr %22, align 8, !tbaa !9
  %139 = add i64 %138, 1
  store i64 %139, ptr %22, align 8, !tbaa !9
  br label %83, !llvm.loop !15

140:                                              ; preds = %90
  %141 = load i64, ptr %16, align 8, !tbaa !9
  %142 = add i64 %141, 1
  %143 = mul i64 2, %142
  %144 = load i64, ptr %9, align 8, !tbaa !9
  %145 = load i64, ptr %20, align 8, !tbaa !9
  %146 = sub i64 %144, %145
  %147 = sub i64 %146, 1
  %148 = icmp ult i64 %143, %147
  br i1 %148, label %149, label %155

149:                                              ; preds = %140
  %150 = load i64, ptr %16, align 8, !tbaa !9
  %151 = add i64 %150, 1
  %152 = getelementptr inbounds [20 x double], ptr %14, i64 0, i64 %151
  %153 = load double, ptr %152, align 8, !tbaa !11
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  store double %153, ptr %154, align 8, !tbaa !11
  br label %162

155:                                              ; preds = %140
  %156 = load i64, ptr %16, align 8, !tbaa !9
  %157 = getelementptr inbounds [20 x double], ptr %15, i64 0, i64 %156
  %158 = load double, ptr %157, align 8, !tbaa !11
  %159 = load ptr, ptr %12, align 8, !tbaa !5
  store double %158, ptr %159, align 8, !tbaa !11
  %160 = load i64, ptr %16, align 8, !tbaa !9
  %161 = sub i64 %160, 1
  store i64 %161, ptr %16, align 8, !tbaa !9
  br label %162

162:                                              ; preds = %155, %149
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = load double, ptr %163, align 8, !tbaa !11
  %165 = load ptr, ptr %12, align 8, !tbaa !5
  %166 = load double, ptr %165, align 8, !tbaa !11
  %167 = fadd double %164, %166
  %168 = load ptr, ptr %11, align 8, !tbaa !5
  store double %167, ptr %168, align 8, !tbaa !11
  br label %169

169:                                              ; preds = %162
  %170 = load i64, ptr %20, align 8, !tbaa !9
  %171 = add i64 %170, 1
  store i64 %171, ptr %20, align 8, !tbaa !9
  br label %76, !llvm.loop !16

172:                                              ; preds = %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  ret void
}

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 = { nounwind }
attributes #6 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}


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

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [49 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 @_ZN13SedovSolution6polintEPdS0_mdRdS1_(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i64 noundef %2, double noundef %3, ptr nocapture noundef nonnull align 8 dereferenceable(8) %4, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %5) local_unnamed_addr #2 align 2 {
  %7 = alloca [20 x double], align 16
  %8 = alloca [20 x double], align 16
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %8) #5
  %9 = load double, ptr %0, align 8, !tbaa !5
  %10 = fsub double %3, %9
  %11 = tail call noundef double @_ZSt3absd(double noundef %10)
  %.not = icmp eq i64 %2, 0
  br i1 %.not, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %6
  %12 = load double, ptr %1, align 8, !tbaa !5
  store double %12, ptr %4, align 8, !tbaa !5
  br label %.preheader.preheader

._crit_edge:                                      ; preds = %.lr.ph
  %13 = getelementptr inbounds double, ptr %1, i64 %.1
  %14 = load double, ptr %13, align 8, !tbaa !5
  store double %14, ptr %4, align 8, !tbaa !5
  %15 = add i64 %2, -1
  %.not79 = icmp eq i64 %15, 0
  br i1 %.not79, label %._crit_edge78, label %.preheader.preheader

.preheader.preheader:                             ; preds = %._crit_edge.thread, %._crit_edge
  %16 = phi i64 [ -1, %._crit_edge.thread ], [ %15, %._crit_edge ]
  %.0.lcssa84 = phi i64 [ 0, %._crit_edge.thread ], [ %.1, %._crit_edge ]
  %17 = add i64 %.0.lcssa84, -1
  br label %.preheader

.lr.ph:                                           ; preds = %6, %.lr.ph
  %.071 = phi i64 [ %.1, %.lr.ph ], [ 0, %6 ]
  %.05970 = phi double [ %.160, %.lr.ph ], [ %11, %6 ]
  %.06169 = phi i64 [ %27, %.lr.ph ], [ 0, %6 ]
  %18 = getelementptr inbounds double, ptr %0, i64 %.06169
  %19 = load double, ptr %18, align 8, !tbaa !5
  %20 = fsub double %3, %19
  %21 = tail call noundef double @_ZSt3absd(double noundef %20)
  %22 = fcmp olt double %21, %.05970
  %.160 = select i1 %22, double %21, double %.05970
  %.1 = select i1 %22, i64 %.06169, i64 %.071
  %23 = getelementptr inbounds double, ptr %1, i64 %.06169
  %24 = load double, ptr %23, align 8, !tbaa !5
  %25 = getelementptr inbounds [20 x double], ptr %7, i64 0, i64 %.06169
  store double %24, ptr %25, align 8, !tbaa !5
  %26 = getelementptr inbounds [20 x double], ptr %8, i64 0, i64 %.06169
  store double %24, ptr %26, align 8, !tbaa !5
  %27 = add nuw i64 %.06169, 1
  %exitcond.not = icmp eq i64 %27, %2
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge74
  %.277 = phi i64 [ %.3, %._crit_edge74 ], [ %17, %.preheader.preheader ]
  %.06376 = phi i64 [ %38, %._crit_edge74 ], [ 0, %.preheader.preheader ]
  %28 = xor i64 %.06376, -1
  %29 = add i64 %28, %2
  %.not80 = icmp eq i64 %29, 0
  br i1 %.not80, label %._crit_edge74, label %.lr.ph73

._crit_edge78:                                    ; preds = %._crit_edge74, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %7) #5
  ret void

._crit_edge74:                                    ; preds = %51, %.preheader
  %30 = add i64 %.277, 1
  %31 = shl i64 %30, 1
  %32 = icmp uge i64 %31, %29
  %33 = getelementptr inbounds [20 x double], ptr %7, i64 0, i64 %30
  %34 = getelementptr inbounds [20 x double], ptr %8, i64 0, i64 %.277
  %.sink.in = select i1 %32, ptr %34, ptr %33
  %35 = sext i1 %32 to i64
  %.3 = add i64 %.277, %35
  %.sink = load double, ptr %.sink.in, align 8, !tbaa !5
  store double %.sink, ptr %5, align 8
  %36 = load double, ptr %4, align 8, !tbaa !5
  %37 = fadd double %36, %.sink
  store double %37, ptr %4, align 8, !tbaa !5
  %38 = add nuw i64 %.06376, 1
  %exitcond81.not = icmp eq i64 %38, %16
  br i1 %exitcond81.not, label %._crit_edge78, label %.preheader, !llvm.loop !11

.lr.ph73:                                         ; preds = %.preheader, %51
  %.06272 = phi i64 [ %52, %51 ], [ 0, %.preheader ]
  %39 = getelementptr inbounds double, ptr %0, i64 %.06272
  %40 = load double, ptr %39, align 8, !tbaa !5
  %41 = fsub double %40, %3
  %42 = getelementptr double, ptr %39, i64 %.06376
  %43 = getelementptr i8, ptr %42, i64 8
  %44 = load double, ptr %43, align 8, !tbaa !5
  %45 = fsub double %44, %3
  %46 = fsub double %41, %45
  %47 = fcmp oeq double %46, 0.000000e+00
  br i1 %47, label %48, label %51

48:                                               ; preds = %.lr.ph73
  %49 = tail 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.2)
  %50 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  tail call void @exit(i32 noundef -1) #6
  unreachable

51:                                               ; preds = %.lr.ph73
  %52 = add nuw i64 %.06272, 1
  %53 = getelementptr inbounds [20 x double], ptr %7, i64 0, i64 %52
  %54 = load double, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds [20 x double], ptr %8, i64 0, i64 %.06272
  %56 = load double, ptr %55, align 8, !tbaa !5
  %57 = fsub double %54, %56
  %58 = fdiv double %57, %46
  %59 = fmul double %45, %58
  store double %59, ptr %55, align 8, !tbaa !5
  %60 = fmul double %41, %58
  %61 = getelementptr inbounds [20 x double], ptr %7, i64 0, i64 %.06272
  store double %60, ptr %61, align 8, !tbaa !5
  %62 = icmp ult i64 %52, %29
  br i1 %62, label %.lr.ph73, label %._crit_edge74, !llvm.loop !12
}

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 = { nounwind }
attributes #6 = { 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}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


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