; LLVM IR from gbmhunter/MFixedPoint :: example (ReadmeExample)

; 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.mn::MFixedPoint::FpS" = type <{ i32, i8, [3 x i8] }>
%"class.mn::MFixedPoint::FpF" = type { i32 }
%"class.mn::MFixedPoint::FpF.0" = type { i32 }
%"class.mn::MFixedPoint::FpF.1" = type { i64 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.mn::MFixedPoint::FpS", align 4
  %3 = alloca %"class.mn::MFixedPoint::FpS", align 4
  %4 = alloca %"class.mn::MFixedPoint::FpS", align 4
  %5 = alloca %"class.mn::MFixedPoint::FpS", align 4
  %6 = alloca %"class.mn::MFixedPoint::FpS", align 4
  %7 = alloca %"class.mn::MFixedPoint::FpS", align 4
  %8 = alloca %"class.mn::MFixedPoint::FpS", align 4
  %9 = alloca %"class.mn::MFixedPoint::FpS", align 4
  %10 = alloca %"class.mn::MFixedPoint::FpS", align 4
  %11 = alloca %"class.mn::MFixedPoint::FpS", align 4
  %12 = alloca %"class.mn::MFixedPoint::FpS", align 4
  %13 = alloca %"class.mn::MFixedPoint::FpS", align 4
  %14 = alloca %"class.mn::MFixedPoint::FpF", align 4
  %15 = alloca %"class.mn::MFixedPoint::FpF", align 4
  %16 = alloca %"class.mn::MFixedPoint::FpF", align 4
  %17 = alloca %"class.mn::MFixedPoint::FpF", align 4
  %18 = alloca %"class.mn::MFixedPoint::FpF", align 4
  %19 = alloca %"class.mn::MFixedPoint::FpF.0", align 4
  %20 = alloca %"class.mn::MFixedPoint::FpF.1", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  call void @_ZN2mn11MFixedPoint3FpSIilEC2Edh(ptr noundef nonnull align 4 dereferenceable(5) %2, double noundef 1.223000e+01, i8 noundef zeroext 12)
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %22 = call noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5) %2)
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %21, double noundef %22)
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @_ZN2mn11MFixedPoint3FpSIilEC2Edh(ptr noundef nonnull align 4 dereferenceable(5) %3, double noundef 5.120000e+00, i8 noundef zeroext 16)
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  %26 = call noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5) %3)
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %25, double noundef %26)
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %29 = 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)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !5
  %30 = load i64, ptr %5, align 4
  %31 = call i64 @_ZNK2mn11MFixedPoint3FpSIilEplES2_(ptr noundef nonnull align 4 dereferenceable(5) %2, i64 %30)
  %32 = trunc i64 %31 to i40
  store i40 %32, ptr %4, align 4
  %33 = call noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5) %4)
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %29, double noundef %33)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %36 = 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)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !5
  %37 = load i64, ptr %7, align 4
  %38 = call i64 @_ZNK2mn11MFixedPoint3FpSIilEmiES2_(ptr noundef nonnull align 4 dereferenceable(5) %2, i64 %37)
  %39 = trunc i64 %38 to i40
  store i40 %39, ptr %6, align 4
  %40 = call noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5) %6)
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %36, double noundef %40)
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !5
  %44 = load i64, ptr %9, align 4
  %45 = call i64 @_ZNK2mn11MFixedPoint3FpSIilEmlES2_(ptr noundef nonnull align 4 dereferenceable(5) %2, i64 %44)
  %46 = trunc i64 %45 to i40
  store i40 %46, ptr %8, align 4
  %47 = call noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5) %8)
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %43, double noundef %47)
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !5
  %51 = load i64, ptr %11, align 4
  %52 = call i64 @_ZNK2mn11MFixedPoint3FpSIilEdvES2_(ptr noundef nonnull align 4 dereferenceable(5) %2, i64 %51)
  %53 = trunc i64 %52 to i40
  store i40 %53, ptr %10, align 4
  %54 = call noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5) %10)
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %50, double noundef %54)
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %3, i64 8, i1 false), !tbaa.struct !5
  %58 = load i64, ptr %13, align 4
  %59 = call i64 @_ZNK2mn11MFixedPoint3FpSIilErmES2_(ptr noundef nonnull align 4 dereferenceable(5) %2, i64 %58)
  %60 = trunc i64 %59 to i40
  store i40 %60, ptr %12, align 4
  %61 = call noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5) %12)
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %57, double noundef %61)
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @_ZN2mn11MFixedPoint3FpFIilLh8EEC2Ed(ptr noundef nonnull align 4 dereferenceable(4) %14, double noundef 3.200000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @_ZN2mn11MFixedPoint3FpFIilLh8EEC2Ed(ptr noundef nonnull align 4 dereferenceable(4) %15, double noundef 6.000000e-01)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %64 = call i32 @_ZNK2mn11MFixedPoint3FpFIilLh8EEplERKS2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %65 = getelementptr inbounds %"class.mn::MFixedPoint::FpF", ptr %16, i32 0, i32 0
  store i32 %64, ptr %65, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %15, i64 4, i1 false), !tbaa.struct !11
  %66 = getelementptr inbounds %"class.mn::MFixedPoint::FpF", ptr %18, i32 0, i32 0
  %67 = load i32, ptr %66, align 4
  %68 = call i32 @_ZNK2mn11MFixedPoint3FpFIilLh8EEmlIilLh8EEES2_NS1_IT_T0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(4) %14, i32 %67)
  %69 = getelementptr inbounds %"class.mn::MFixedPoint::FpF", ptr %17, i32 0, i32 0
  store i32 %68, ptr %69, align 4
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %71 = call noundef double @_ZN2mn11MFixedPoint3FpFIilLh8EEcvdEv(ptr noundef nonnull align 4 dereferenceable(4) %17)
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %70, double noundef %71)
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @_ZN2mn11MFixedPoint3FpFIilLh20EEC2Ed(ptr noundef nonnull align 4 dereferenceable(4) %19, double noundef 7.500000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @_ZN2mn11MFixedPoint3FpFIllLh48EEC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %20, double noundef 4.586760e+00)
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  ret i32 0
}

; 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 void @_ZN2mn11MFixedPoint3FpSIilEC2Edh(ptr noundef nonnull align 4 dereferenceable(5), double noundef, i8 noundef zeroext) unnamed_addr #2 align 2

; 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) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5)) #4 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 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)) #3

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK2mn11MFixedPoint3FpSIilEplES2_(ptr noundef nonnull align 4 dereferenceable(5), i64) #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK2mn11MFixedPoint3FpSIilEmiES2_(ptr noundef nonnull align 4 dereferenceable(5), i64) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK2mn11MFixedPoint3FpSIilEmlES2_(ptr noundef nonnull align 4 dereferenceable(5), i64) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK2mn11MFixedPoint3FpSIilEdvES2_(ptr noundef nonnull align 4 dereferenceable(5), i64) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK2mn11MFixedPoint3FpSIilErmES2_(ptr noundef nonnull align 4 dereferenceable(5), i64) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2mn11MFixedPoint3FpFIilLh8EEC2Ed(ptr noundef nonnull align 4 dereferenceable(4), double noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK2mn11MFixedPoint3FpFIilLh8EEplERKS2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK2mn11MFixedPoint3FpFIilLh8EEmlIilLh8EEES2_NS1_IT_T0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(4), i32) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN2mn11MFixedPoint3FpFIilLh8EEcvdEv(ptr noundef nonnull align 4 dereferenceable(4)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2mn11MFixedPoint3FpFIilLh20EEC2Ed(ptr noundef nonnull align 4 dereferenceable(4), double noundef) unnamed_addr #2 align 2

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

attributes #0 = { mustprogress norecurse 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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{i64 0, i64 4, !6, i64 4, i64 1, !10}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!8, !8, i64 0}
!11 = !{i64 0, i64 4, !6}


; 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.mn::MFixedPoint::FpS" = type <{ i32, i8, [3 x i8] }>
%"class.mn::MFixedPoint::FpF" = type { i32 }
%"class.mn::MFixedPoint::FpF.0" = type { i32 }
%"class.mn::MFixedPoint::FpF.1" = type { i64 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [37 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca %"class.mn::MFixedPoint::FpS", align 4
  %2 = alloca %"class.mn::MFixedPoint::FpS", align 8
  %3 = alloca %"class.mn::MFixedPoint::FpS", align 8
  %4 = alloca %"class.mn::MFixedPoint::FpS", align 8
  %5 = alloca %"class.mn::MFixedPoint::FpS", align 8
  %6 = alloca %"class.mn::MFixedPoint::FpS", align 8
  %7 = alloca %"class.mn::MFixedPoint::FpS", align 8
  %8 = alloca %"class.mn::MFixedPoint::FpF", align 4
  %9 = alloca %"class.mn::MFixedPoint::FpF", align 4
  %10 = alloca %"class.mn::MFixedPoint::FpF", align 4
  %11 = alloca %"class.mn::MFixedPoint::FpF.0", align 4
  %12 = alloca %"class.mn::MFixedPoint::FpF.1", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  call void @_ZN2mn11MFixedPoint3FpSIilEC2Edh(ptr noundef nonnull align 4 dereferenceable(5) %1, double noundef 1.223000e+01, i8 noundef zeroext 12)
  %13 = 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)
  %14 = call noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5) %1)
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %13, double noundef %14)
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @_ZN2mn11MFixedPoint3FpSIilEC2Edh(ptr noundef nonnull align 4 dereferenceable(5) %2, double noundef 5.120000e+00, i8 noundef zeroext 16)
  %17 = 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.1)
  %18 = call noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5) %2)
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %17, double noundef %18)
  %20 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %21 = 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)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %.sroa.06.0.copyload = load i64, ptr %2, align 8
  %22 = call i64 @_ZNK2mn11MFixedPoint3FpSIilEplES2_(ptr noundef nonnull align 4 dereferenceable(5) %1, i64 %.sroa.06.0.copyload)
  %23 = trunc i64 %22 to i40
  store i40 %23, ptr %3, align 8
  %24 = call noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5) %3)
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %21, double noundef %24)
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  %27 = 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)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  %.sroa.05.0.copyload = load i64, ptr %2, align 8
  %28 = call i64 @_ZNK2mn11MFixedPoint3FpSIilEmiES2_(ptr noundef nonnull align 4 dereferenceable(5) %1, i64 %.sroa.05.0.copyload)
  %29 = trunc i64 %28 to i40
  store i40 %29, ptr %4, align 8
  %30 = call noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5) %4)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %27, double noundef %30)
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %33 = 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.4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %.sroa.04.0.copyload = load i64, ptr %2, align 8
  %34 = call i64 @_ZNK2mn11MFixedPoint3FpSIilEmlES2_(ptr noundef nonnull align 4 dereferenceable(5) %1, i64 %.sroa.04.0.copyload)
  %35 = trunc i64 %34 to i40
  store i40 %35, ptr %5, align 8
  %36 = call noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5) %5)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %33, double noundef %36)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %39 = 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.5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %.sroa.03.0.copyload = load i64, ptr %2, align 8
  %40 = call i64 @_ZNK2mn11MFixedPoint3FpSIilEdvES2_(ptr noundef nonnull align 4 dereferenceable(5) %1, i64 %.sroa.03.0.copyload)
  %41 = trunc i64 %40 to i40
  store i40 %41, ptr %6, align 8
  %42 = call noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5) %6)
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %39, double noundef %42)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  %45 = 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.6)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %.sroa.02.0.copyload = load i64, ptr %2, align 8
  %46 = call i64 @_ZNK2mn11MFixedPoint3FpSIilErmES2_(ptr noundef nonnull align 4 dereferenceable(5) %1, i64 %.sroa.02.0.copyload)
  %47 = trunc i64 %46 to i40
  store i40 %47, ptr %7, align 8
  %48 = call noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5) %7)
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %45, double noundef %48)
  %50 = 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_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  call void @_ZN2mn11MFixedPoint3FpFIilLh8EEC2Ed(ptr noundef nonnull align 4 dereferenceable(4) %8, double noundef 3.200000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  call void @_ZN2mn11MFixedPoint3FpFIilLh8EEC2Ed(ptr noundef nonnull align 4 dereferenceable(4) %9, double noundef 6.000000e-01)
  %51 = call i32 @_ZNK2mn11MFixedPoint3FpFIilLh8EEplERKS2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  %.sroa.0.0.copyload = load i32, ptr %9, align 4, !tbaa !5
  %52 = call i32 @_ZNK2mn11MFixedPoint3FpFIilLh8EEmlIilLh8EEES2_NS1_IT_T0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(4) %8, i32 %.sroa.0.0.copyload)
  store i32 %52, ptr %10, align 4
  %53 = 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.7)
  %54 = call noundef double @_ZN2mn11MFixedPoint3FpFIilLh8EEcvdEv(ptr noundef nonnull align 4 dereferenceable(4) %10)
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %53, double noundef %54)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  call void @_ZN2mn11MFixedPoint3FpFIilLh20EEC2Ed(ptr noundef nonnull align 4 dereferenceable(4) %11, double noundef 7.500000e+00)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  call void @_ZN2mn11MFixedPoint3FpFIllLh48EEC2Ed(ptr noundef nonnull align 8 dereferenceable(8) %12, double noundef 4.586760e+00)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret i32 0
}

; 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 void @_ZN2mn11MFixedPoint3FpSIilEC2Edh(ptr noundef nonnull align 4 dereferenceable(5), double noundef, i8 noundef zeroext) unnamed_addr #2 align 2

; 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 #3

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK2mn11MFixedPoint3FpSIilEcvdEv(ptr noundef nonnull align 4 dereferenceable(5)) local_unnamed_addr #4 align 2

; 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 #4 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)) #3

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK2mn11MFixedPoint3FpSIilEplES2_(ptr noundef nonnull align 4 dereferenceable(5), i64) local_unnamed_addr #4 align 2

; 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 uwtable
declare dso_local i64 @_ZNK2mn11MFixedPoint3FpSIilEmiES2_(ptr noundef nonnull align 4 dereferenceable(5), i64) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK2mn11MFixedPoint3FpSIilEmlES2_(ptr noundef nonnull align 4 dereferenceable(5), i64) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK2mn11MFixedPoint3FpSIilEdvES2_(ptr noundef nonnull align 4 dereferenceable(5), i64) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZNK2mn11MFixedPoint3FpSIilErmES2_(ptr noundef nonnull align 4 dereferenceable(5), i64) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2mn11MFixedPoint3FpFIilLh8EEC2Ed(ptr noundef nonnull align 4 dereferenceable(4), double noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK2mn11MFixedPoint3FpFIilLh8EEplERKS2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i32 @_ZNK2mn11MFixedPoint3FpFIilLh8EEmlIilLh8EEES2_NS1_IT_T0_XT1_EEE(ptr noundef nonnull align 4 dereferenceable(4), i32) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN2mn11MFixedPoint3FpFIilLh8EEcvdEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2mn11MFixedPoint3FpFIilLh20EEC2Ed(ptr noundef nonnull align 4 dereferenceable(4), double noundef) unnamed_addr #2 align 2

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

attributes #0 = { mustprogress norecurse 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 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 = { 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 #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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass