; LLVM IR from kobalicek/simdtests :: 3rdparty/real.ll (ZN3lol4cbrtERKNS_4realE)

; 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.lol::real" = type { [16 x i32], i32 }
%union.anon.3 = type { float }

@_ZN3lol4real3R_3E = external dso_local global %"class.lol::real", align 4
@__const._ZN3lol4cbrtERKNS_4realE.u = external hidden unnamed_addr constant %union.anon.3, align 4
@__const._ZN3lol4cbrtERKNS_4realE.v = external hidden unnamed_addr constant %union.anon.3, align 4
@_ZZN3lol4cbrtERKNS_4realEE5third = external hidden global %"class.lol::real", align 4
@_ZGVZN3lol4cbrtERKNS_4realEE5third = external hidden global i64, align 8

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realaSERKS0_(ptr noundef nonnull align 4 dereferenceable(68), ptr noundef nonnull align 4 dereferenceable(68)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3lol4realplERKS0_(ptr dead_on_unwind noalias writable sret(%"class.lol::real") align 4, ptr noundef nonnull align 4 dereferenceable(68), ptr noundef nonnull align 4 dereferenceable(68)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.lol::real") align 4, ptr noundef nonnull align 4 dereferenceable(68), ptr noundef nonnull align 4 dereferenceable(68)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3lol4realdvERKS0_(ptr dead_on_unwind noalias writable sret(%"class.lol::real") align 4, ptr noundef nonnull align 4 dereferenceable(68), ptr noundef nonnull align 4 dereferenceable(68)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3lol2reERKNS_4realE(ptr dead_on_unwind noalias writable sret(%"class.lol::real") align 4, ptr noundef nonnull align 4 dereferenceable(68)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3lol4cbrtERKNS_4realE(ptr dead_on_unwind noalias writable sret(%"class.lol::real") align 4 %0, ptr noundef nonnull align 4 dereferenceable(68) %1) #3 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %union.anon.3, align 4
  %6 = alloca %union.anon.3, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.lol::real", align 4
  %13 = alloca %"class.lol::real", align 4
  %14 = alloca %"class.lol::real", align 4
  %15 = alloca %"class.lol::real", align 4
  %16 = alloca %"class.lol::real", align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %"class.lol::real", ptr %17, i32 0, i32 1
  %19 = load i32, ptr %18, align 4, !tbaa !9
  %20 = shl i32 %19, 1
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %24, label %22

22:                                               ; preds = %2
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3lol4realC1ERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %23)
  br label %95

24:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 @__const._ZN3lol4cbrtERKNS_4realE.u, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @__const._ZN3lol4cbrtERKNS_4realE.v, i64 4, i1 false)
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %"class.lol::real", ptr %25, i32 0, i32 1
  %27 = load i32, ptr %26, align 4, !tbaa !9
  %28 = urem i32 %27, 3
  %29 = shl i32 %28, 23
  %30 = load i32, ptr %6, align 4, !tbaa !12
  %31 = add i32 %30, %29
  store i32 %31, ptr %6, align 4, !tbaa !12
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %"class.lol::real", ptr %32, i32 0, i32 0
  %34 = getelementptr inbounds [16 x i32], ptr %33, i64 0, i64 0
  %35 = load i32, ptr %34, align 4, !tbaa !13
  %36 = lshr i32 %35, 9
  %37 = load i32, ptr %6, align 4, !tbaa !12
  %38 = or i32 %37, %36
  store i32 %38, ptr %6, align 4, !tbaa !12
  %39 = load float, ptr %6, align 4, !tbaa !12
  %40 = call float @powf(float noundef %39, float noundef 0x3FD5555560000000) #5
  store float %40, ptr %6, align 4, !tbaa !12
  call void @_ZN3lol4realC1Ev(ptr noundef nonnull align 4 dereferenceable(68) %0)
  %41 = load i32, ptr %6, align 4, !tbaa !12
  %42 = shl i32 %41, 9
  %43 = getelementptr inbounds %"class.lol::real", ptr %0, i32 0, i32 0
  %44 = getelementptr inbounds [16 x i32], ptr %43, i64 0, i64 0
  store i32 %42, ptr %44, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %"class.lol::real", ptr %45, i32 0, i32 1
  %47 = load i32, ptr %46, align 4, !tbaa !9
  %48 = and i32 %47, -2147483648
  store i32 %48, ptr %7, align 4, !tbaa !13
  %49 = load i32, ptr %7, align 4, !tbaa !13
  %50 = getelementptr inbounds %"class.lol::real", ptr %0, i32 0, i32 1
  store i32 %49, ptr %50, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.lol::real", ptr %51, i32 0, i32 1
  %53 = load i32, ptr %52, align 4, !tbaa !9
  %54 = and i32 %53, 2147483647
  %55 = sub i32 %54, 1073741824
  %56 = add i32 %55, 1
  store i32 %56, ptr %8, align 4, !tbaa !13
  %57 = load i32, ptr %8, align 4, !tbaa !13
  %58 = sdiv i32 %57, 3
  %59 = load i32, ptr %6, align 4, !tbaa !12
  %60 = lshr i32 %59, 23
  %61 = add i32 %58, %60
  %62 = load i32, ptr %5, align 4, !tbaa !12
  %63 = lshr i32 %62, 23
  %64 = sub i32 %61, %63
  store i32 %64, ptr %8, align 4, !tbaa !13
  %65 = load i32, ptr %8, align 4, !tbaa !13
  %66 = add nsw i32 %65, 1073741824
  %67 = sub nsw i32 %66, 1
  %68 = and i32 %67, 2147483647
  %69 = getelementptr inbounds %"class.lol::real", ptr %0, i32 0, i32 1
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = or i32 %70, %68
  store i32 %71, ptr %69, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 1, ptr %9, align 4, !tbaa !13
  br label %72

72:                                               ; preds = %87, %24
  %73 = load i32, ptr %9, align 4, !tbaa !13
  %74 = icmp sle i32 %73, 16
  br i1 %74, label %76, label %75

75:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %94

76:                                               ; preds = %72
  %77 = load atomic i8, ptr @_ZGVZN3lol4cbrtERKNS_4realEE5third acquire, align 8
  %78 = icmp eq i8 %77, 0
  br i1 %78, label %79, label %84, !prof !14

79:                                               ; preds = %76
  %80 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN3lol4cbrtERKNS_4realEE5third) #5
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %84

82:                                               ; preds = %79
  invoke void @_ZN3lol2reERKNS_4realE(ptr dead_on_unwind writable sret(%"class.lol::real") align 4 @_ZZN3lol4cbrtERKNS_4realEE5third, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real3R_3E)
          to label %83 unwind label %90

83:                                               ; preds = %82
  call void @__cxa_guard_release(ptr @_ZGVZN3lol4cbrtERKNS_4realEE5third) #5
  br label %84

84:                                               ; preds = %83, %79, %76
  call void @llvm.lifetime.start.p0(i64 68, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 68, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 68, ptr %14) #5
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 68, ptr %15) #5
  call void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind writable sret(%"class.lol::real") align 4 %15, ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %0)
  call void @_ZNK3lol4realdvERKS0_(ptr dead_on_unwind writable sret(%"class.lol::real") align 4 %14, ptr noundef nonnull align 4 dereferenceable(68) %85, ptr noundef nonnull align 4 dereferenceable(68) %15)
  call void @llvm.lifetime.start.p0(i64 68, ptr %16) #5
  call void @_ZNK3lol4realdvEi(ptr dead_on_unwind writable sret(%"class.lol::real") align 4 %16, ptr noundef nonnull align 4 dereferenceable(68) %0, i32 noundef 2)
  call void @_ZNK3lol4realplERKS0_(ptr dead_on_unwind writable sret(%"class.lol::real") align 4 %13, ptr noundef nonnull align 4 dereferenceable(68) %14, ptr noundef nonnull align 4 dereferenceable(68) %16)
  call void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind writable sret(%"class.lol::real") align 4 %12, ptr noundef nonnull align 4 dereferenceable(68) @_ZZN3lol4cbrtERKNS_4realEE5third, ptr noundef nonnull align 4 dereferenceable(68) %13)
  %86 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realaSERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %12)
  call void @llvm.lifetime.end.p0(i64 68, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 68, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 68, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 68, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 68, ptr %12) #5
  br label %87

87:                                               ; preds = %84
  %88 = load i32, ptr %9, align 4, !tbaa !13
  %89 = mul nsw i32 %88, 2
  store i32 %89, ptr %9, align 4, !tbaa !13
  br label %72, !llvm.loop !15

90:                                               ; preds = %82
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %10, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %11, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZN3lol4cbrtERKNS_4realEE5third) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %96

94:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %95

95:                                               ; preds = %94, %22
  ret void

96:                                               ; preds = %90
  %97 = load ptr, ptr %10, align 8
  %98 = load i32, ptr %11, align 4
  %99 = insertvalue { ptr, i32 } poison, ptr %97, 0
  %100 = insertvalue { ptr, i32 } %99, i32 %98, 1
  resume { ptr, i32 } %100
}

; Function Attrs: nounwind
declare float @powf(float noundef, float noundef) #4

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #5

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #5

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3lol4realdvEi(ptr dead_on_unwind noalias writable sret(%"class.lol::real") align 4, ptr noundef nonnull align 4 dereferenceable(68), i32 noundef) #6 align 2

declare void @_ZN3lol4realC1Ev(ptr)

declare void @_ZN3lol4realC1ERKS0_(ptr, ptr)

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { nounwind }
attributes #6 = { 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" }

!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, !11, i64 64}
!10 = !{!"_ZTSN3lol4realE", !7, i64 0, !11, i64 64}
!11 = !{!"int", !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!"branch_weights", i32 1, i32 1048575}
!15 = distinct !{!15, !16}
!16 = !{!"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.lol::real" = type { [16 x i32], i32 }
%union.anon.3 = type { float }

@_ZN3lol4real3R_3E = external dso_local global %"class.lol::real", align 4
@__const._ZN3lol4cbrtERKNS_4realE.u = external hidden unnamed_addr constant %union.anon.3, align 4
@__const._ZN3lol4cbrtERKNS_4realE.v = external hidden unnamed_addr constant %union.anon.3, align 4
@_ZZN3lol4cbrtERKNS_4realEE5third = external hidden global %"class.lol::real", align 4
@_ZGVZN3lol4cbrtERKNS_4realEE5third = external hidden global i64, align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realaSERKS0_(ptr noundef nonnull align 4 dereferenceable(68), ptr noundef nonnull align 4 dereferenceable(68)) local_unnamed_addr #0 align 2

; 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 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 void @_ZNK3lol4realplERKS0_(ptr dead_on_unwind noalias writable sret(%"class.lol::real") align 4, ptr noundef nonnull align 4 dereferenceable(68), ptr noundef nonnull align 4 dereferenceable(68)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind noalias writable sret(%"class.lol::real") align 4, ptr noundef nonnull align 4 dereferenceable(68), ptr noundef nonnull align 4 dereferenceable(68)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3lol4realdvERKS0_(ptr dead_on_unwind noalias writable sret(%"class.lol::real") align 4, ptr noundef nonnull align 4 dereferenceable(68), ptr noundef nonnull align 4 dereferenceable(68)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3lol2reERKNS_4realE(ptr dead_on_unwind noalias writable sret(%"class.lol::real") align 4, ptr noundef nonnull align 4 dereferenceable(68)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3lol4cbrtERKNS_4realE(ptr dead_on_unwind noalias writable sret(%"class.lol::real") align 4 %0, ptr noundef nonnull align 4 dereferenceable(68) %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.lol::real", align 4
  %4 = alloca %"class.lol::real", align 4
  %5 = alloca %"class.lol::real", align 4
  %6 = alloca %"class.lol::real", align 4
  %7 = alloca %"class.lol::real", align 4
  %8 = getelementptr inbounds i8, ptr %1, i64 64
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %.mask = and i32 %9, 2147483647
  %.not = icmp eq i32 %.mask, 0
  br i1 %.not, label %10, label %11

10:                                               ; preds = %2
  tail call void @_ZN3lol4realC1ERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %1)
  br label %.loopexit

11:                                               ; preds = %2
  %.sroa.09.0.copyload = load i32, ptr @__const._ZN3lol4cbrtERKNS_4realE.u, align 4
  %.sroa.0.0.copyload17 = load i32, ptr @__const._ZN3lol4cbrtERKNS_4realE.v, align 4
  %12 = urem i32 %9, 3
  %13 = shl nuw nsw i32 %12, 23
  %14 = add i32 %.sroa.0.0.copyload17, %13
  %15 = load i32, ptr %1, align 4, !tbaa !10
  %16 = lshr i32 %15, 9
  %17 = or i32 %16, %14
  %18 = bitcast i32 %17 to float
  %19 = tail call float @powf(float noundef %18, float noundef 0x3FD5555560000000) #6
  tail call void @_ZN3lol4realC1Ev(ptr noundef nonnull align 4 dereferenceable(68) %0)
  %20 = bitcast float %19 to i32
  %21 = shl i32 %20, 9
  store i32 %21, ptr %0, align 4, !tbaa !10
  %22 = load i32, ptr %8, align 4, !tbaa !5
  %23 = and i32 %22, -2147483648
  %24 = getelementptr inbounds i8, ptr %0, i64 64
  %25 = and i32 %22, 2147483647
  %26 = add nsw i32 %25, -1073741823
  %27 = sdiv i32 %26, 3
  %28 = lshr i32 %20, 23
  %29 = lshr i32 %.sroa.09.0.copyload, 23
  %30 = xor i32 %29, 1073741823
  %31 = add nuw nsw i32 %30, %28
  %32 = or disjoint i32 %31, %23
  %33 = add i32 %32, %27
  store i32 %33, ptr %24, align 4, !tbaa !5
  %34 = load atomic i8, ptr @_ZGVZN3lol4cbrtERKNS_4realEE5third acquire, align 8
  %35 = icmp eq i8 %34, 0
  br i1 %35, label %36, label %40, !prof !11

36:                                               ; preds = %11
  %37 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN3lol4cbrtERKNS_4realEE5third) #6
  %.not18 = icmp eq i32 %37, 0
  br i1 %.not18, label %40, label %38

38:                                               ; preds = %36
  invoke void @_ZN3lol2reERKNS_4realE(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 @_ZZN3lol4cbrtERKNS_4realEE5third, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real3R_3E)
          to label %39 unwind label %73

39:                                               ; preds = %38
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZN3lol4cbrtERKNS_4realEE5third) #6
  br label %40

40:                                               ; preds = %39, %36, %11
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %6) #6
  call void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %6, ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %0)
  call void @_ZNK3lol4realdvERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %5, ptr noundef nonnull align 4 dereferenceable(68) %1, ptr noundef nonnull align 4 dereferenceable(68) %6)
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %7) #6
  call void @_ZNK3lol4realdvEi(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %7, ptr noundef nonnull align 4 dereferenceable(68) %0, i32 noundef 2)
  call void @_ZNK3lol4realplERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %4, ptr noundef nonnull align 4 dereferenceable(68) %5, ptr noundef nonnull align 4 dereferenceable(68) %7)
  call void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %3, ptr noundef nonnull align 4 dereferenceable(68) @_ZZN3lol4cbrtERKNS_4realEE5third, ptr noundef nonnull align 4 dereferenceable(68) %4)
  %41 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realaSERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %3)
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %3) #6
  %42 = load atomic i8, ptr @_ZGVZN3lol4cbrtERKNS_4realEE5third acquire, align 8
  %43 = icmp eq i8 %42, 0
  br i1 %43, label %44, label %48, !prof !11

44:                                               ; preds = %40
  %45 = call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN3lol4cbrtERKNS_4realEE5third) #6
  %.not18.1 = icmp eq i32 %45, 0
  br i1 %.not18.1, label %48, label %46

46:                                               ; preds = %44
  invoke void @_ZN3lol2reERKNS_4realE(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 @_ZZN3lol4cbrtERKNS_4realEE5third, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real3R_3E)
          to label %47 unwind label %73

47:                                               ; preds = %46
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN3lol4cbrtERKNS_4realEE5third) #6
  br label %48

48:                                               ; preds = %47, %44, %40
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %6) #6
  call void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %6, ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %0)
  call void @_ZNK3lol4realdvERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %5, ptr noundef nonnull align 4 dereferenceable(68) %1, ptr noundef nonnull align 4 dereferenceable(68) %6)
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %7) #6
  call void @_ZNK3lol4realdvEi(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %7, ptr noundef nonnull align 4 dereferenceable(68) %0, i32 noundef 2)
  call void @_ZNK3lol4realplERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %4, ptr noundef nonnull align 4 dereferenceable(68) %5, ptr noundef nonnull align 4 dereferenceable(68) %7)
  call void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %3, ptr noundef nonnull align 4 dereferenceable(68) @_ZZN3lol4cbrtERKNS_4realEE5third, ptr noundef nonnull align 4 dereferenceable(68) %4)
  %49 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realaSERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %3)
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %3) #6
  %50 = load atomic i8, ptr @_ZGVZN3lol4cbrtERKNS_4realEE5third acquire, align 8
  %51 = icmp eq i8 %50, 0
  br i1 %51, label %52, label %56, !prof !11

52:                                               ; preds = %48
  %53 = call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN3lol4cbrtERKNS_4realEE5third) #6
  %.not18.2 = icmp eq i32 %53, 0
  br i1 %.not18.2, label %56, label %54

54:                                               ; preds = %52
  invoke void @_ZN3lol2reERKNS_4realE(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 @_ZZN3lol4cbrtERKNS_4realEE5third, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real3R_3E)
          to label %55 unwind label %73

55:                                               ; preds = %54
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN3lol4cbrtERKNS_4realEE5third) #6
  br label %56

56:                                               ; preds = %55, %52, %48
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %6) #6
  call void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %6, ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %0)
  call void @_ZNK3lol4realdvERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %5, ptr noundef nonnull align 4 dereferenceable(68) %1, ptr noundef nonnull align 4 dereferenceable(68) %6)
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %7) #6
  call void @_ZNK3lol4realdvEi(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %7, ptr noundef nonnull align 4 dereferenceable(68) %0, i32 noundef 2)
  call void @_ZNK3lol4realplERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %4, ptr noundef nonnull align 4 dereferenceable(68) %5, ptr noundef nonnull align 4 dereferenceable(68) %7)
  call void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %3, ptr noundef nonnull align 4 dereferenceable(68) @_ZZN3lol4cbrtERKNS_4realEE5third, ptr noundef nonnull align 4 dereferenceable(68) %4)
  %57 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realaSERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %3)
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %3) #6
  %58 = load atomic i8, ptr @_ZGVZN3lol4cbrtERKNS_4realEE5third acquire, align 8
  %59 = icmp eq i8 %58, 0
  br i1 %59, label %60, label %64, !prof !11

60:                                               ; preds = %56
  %61 = call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN3lol4cbrtERKNS_4realEE5third) #6
  %.not18.3 = icmp eq i32 %61, 0
  br i1 %.not18.3, label %64, label %62

62:                                               ; preds = %60
  invoke void @_ZN3lol2reERKNS_4realE(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 @_ZZN3lol4cbrtERKNS_4realEE5third, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real3R_3E)
          to label %63 unwind label %73

63:                                               ; preds = %62
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN3lol4cbrtERKNS_4realEE5third) #6
  br label %64

64:                                               ; preds = %63, %60, %56
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %6) #6
  call void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %6, ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %0)
  call void @_ZNK3lol4realdvERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %5, ptr noundef nonnull align 4 dereferenceable(68) %1, ptr noundef nonnull align 4 dereferenceable(68) %6)
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %7) #6
  call void @_ZNK3lol4realdvEi(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %7, ptr noundef nonnull align 4 dereferenceable(68) %0, i32 noundef 2)
  call void @_ZNK3lol4realplERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %4, ptr noundef nonnull align 4 dereferenceable(68) %5, ptr noundef nonnull align 4 dereferenceable(68) %7)
  call void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %3, ptr noundef nonnull align 4 dereferenceable(68) @_ZZN3lol4cbrtERKNS_4realEE5third, ptr noundef nonnull align 4 dereferenceable(68) %4)
  %65 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realaSERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %3)
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %3) #6
  %66 = load atomic i8, ptr @_ZGVZN3lol4cbrtERKNS_4realEE5third acquire, align 8
  %67 = icmp eq i8 %66, 0
  br i1 %67, label %68, label %.loopexit.loopexit, !prof !11

68:                                               ; preds = %64
  %69 = call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN3lol4cbrtERKNS_4realEE5third) #6
  %.not18.4 = icmp eq i32 %69, 0
  br i1 %.not18.4, label %.loopexit.loopexit, label %70

70:                                               ; preds = %68
  invoke void @_ZN3lol2reERKNS_4realE(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 @_ZZN3lol4cbrtERKNS_4realEE5third, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real3R_3E)
          to label %71 unwind label %73

71:                                               ; preds = %70
  call void @__cxa_guard_release(ptr nonnull @_ZGVZN3lol4cbrtERKNS_4realEE5third) #6
  br label %.loopexit.loopexit

.loopexit.loopexit:                               ; preds = %71, %68, %64
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %6) #6
  call void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %6, ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %0)
  call void @_ZNK3lol4realdvERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %5, ptr noundef nonnull align 4 dereferenceable(68) %1, ptr noundef nonnull align 4 dereferenceable(68) %6)
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %7) #6
  call void @_ZNK3lol4realdvEi(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %7, ptr noundef nonnull align 4 dereferenceable(68) %0, i32 noundef 2)
  call void @_ZNK3lol4realplERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %4, ptr noundef nonnull align 4 dereferenceable(68) %5, ptr noundef nonnull align 4 dereferenceable(68) %7)
  call void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %3, ptr noundef nonnull align 4 dereferenceable(68) @_ZZN3lol4cbrtERKNS_4realEE5third, ptr noundef nonnull align 4 dereferenceable(68) %4)
  %72 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realaSERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %3)
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %3) #6
  br label %.loopexit

73:                                               ; preds = %70, %62, %54, %46, %38
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_guard_abort(ptr nonnull @_ZGVZN3lol4cbrtERKNS_4realEE5third) #6
  resume { ptr, i32 } %74

.loopexit:                                        ; preds = %.loopexit.loopexit, %10
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare float @powf(float noundef, float noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nounwind
declare void @__cxa_guard_abort(ptr) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3lol4realdvEi(ptr dead_on_unwind noalias writable sret(%"class.lol::real") align 4, ptr noundef nonnull align 4 dereferenceable(68), i32 noundef) local_unnamed_addr #5 align 2

declare void @_ZN3lol4realC1Ev(ptr) local_unnamed_addr

declare void @_ZN3lol4realC1ERKS0_(ptr, ptr) local_unnamed_addr

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass