; LLVM IR from kobalicek/simdtests :: 3rdparty/real.ll (ZN3lol3sinERKNS_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 }

@_ZN3lol4real3R_1E = external dso_local global %"class.lol::real", align 4
@_ZN3lol4real3R_0E = external dso_local global %"class.lol::real", align 4
@_ZN3lol4real4R_PIE = external dso_local global %"class.lol::real", align 4
@_ZN3lol4real6R_PI_2E = external dso_local global %"class.lol::real", align 4

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3lol4realmiERKS0_(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)) #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)) #2 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3lol4realgtERKS0_(ptr noundef nonnull align 4 dereferenceable(68), ptr noundef nonnull align 4 dereferenceable(68)) #2 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3lol4fmodERKNS_4realES2_(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)) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3lol3sinERKNS_4realE(ptr dead_on_unwind noalias writable sret(%"class.lol::real") align 4 %0, ptr noundef nonnull align 4 dereferenceable(68) %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.lol::real", align 4
  %7 = alloca %"class.lol::real", align 4
  %8 = alloca %"class.lol::real", align 4
  %9 = alloca %"class.lol::real", align 4
  %10 = alloca %"class.lol::real", align 4
  %11 = alloca %"class.lol::real", align 4
  %12 = alloca %"class.lol::real", align 4
  %13 = alloca %"class.lol::real", align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.lol::real", align 4
  %16 = alloca i32, align 4
  %17 = alloca %"class.lol::real", align 4
  %18 = alloca %"class.lol::real", align 4
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.lol::real", ptr %19, i32 0, i32 1
  %21 = load i32, ptr %20, align 4, !tbaa !9
  %22 = and i32 %21, -2147483648
  store i32 %22, ptr %5, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 68, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 68, ptr %7) #4
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_ZN3lol4fabsERKNS_4realE(ptr dead_on_unwind writable sret(%"class.lol::real") align 4 %7, ptr noundef nonnull align 4 dereferenceable(68) %23)
  call void @llvm.lifetime.start.p0(i64 68, ptr %8) #4
  call void @_ZNK3lol4realmlEi(ptr dead_on_unwind writable sret(%"class.lol::real") align 4 %8, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real4R_PIE, i32 noundef 2)
  call void @_ZN3lol4fmodERKNS_4realES2_(ptr dead_on_unwind writable sret(%"class.lol::real") align 4 %6, ptr noundef nonnull align 4 dereferenceable(68) %7, ptr noundef nonnull align 4 dereferenceable(68) %8)
  call void @llvm.lifetime.end.p0(i64 68, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 68, ptr %7) #4
  %24 = call noundef zeroext i1 @_ZNK3lol4realgtERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %6, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real4R_PIE)
  br i1 %24, label %25, label %31

25:                                               ; preds = %2
  %26 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realmIERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %6, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real4R_PIE)
  %27 = load i32, ptr %5, align 4, !tbaa !12
  %28 = icmp ne i32 %27, 0
  %29 = xor i1 %28, true
  %30 = zext i1 %29 to i32
  store i32 %30, ptr %5, align 4, !tbaa !12
  br label %31

31:                                               ; preds = %25, %2
  %32 = call noundef zeroext i1 @_ZNK3lol4realgtERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %6, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real6R_PI_2E)
  br i1 %32, label %33, label %35

33:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 68, ptr %9) #4
  call void @_ZNK3lol4realmiERKS0_(ptr dead_on_unwind writable sret(%"class.lol::real") align 4 %9, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real4R_PIE, ptr noundef nonnull align 4 dereferenceable(68) %6)
  %34 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realaSERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %6, ptr noundef nonnull align 4 dereferenceable(68) %9)
  call void @llvm.lifetime.end.p0(i64 68, ptr %9) #4
  br label %35

35:                                               ; preds = %33, %31
  call void @_ZN3lol4realC1ERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real3R_0E)
  call void @llvm.lifetime.start.p0(i64 68, ptr %10) #4
  call void @_ZN3lol4realC1ERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %10, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real3R_1E)
  call void @llvm.lifetime.start.p0(i64 68, ptr %11) #4
  call void @_ZN3lol4realC1ERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %11, ptr noundef nonnull align 4 dereferenceable(68) %6)
  call void @llvm.lifetime.start.p0(i64 68, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 68, ptr %13) #4
  call void @_ZNK3lol4realngEv(ptr dead_on_unwind writable sret(%"class.lol::real") align 4 %13, ptr noundef nonnull align 4 dereferenceable(68) %6)
  call void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind writable sret(%"class.lol::real") align 4 %12, ptr noundef nonnull align 4 dereferenceable(68) %13, ptr noundef nonnull align 4 dereferenceable(68) %6)
  call void @llvm.lifetime.end.p0(i64 68, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 1, ptr %14, align 4, !tbaa !12
  br label %36

36:                                               ; preds = %51, %35
  call void @llvm.lifetime.start.p0(i64 68, ptr %15) #4
  call void @_ZNK3lol4realplERKS0_(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) %11)
  %37 = call noundef zeroext i1 @_ZNK3lol4realeqERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %15, ptr noundef nonnull align 4 dereferenceable(68) %0)
  br i1 %37, label %38, label %39

38:                                               ; preds = %36
  store i32 2, ptr %16, align 4
  br label %49

39:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 68, ptr %17) #4
  %40 = load i32, ptr %14, align 4, !tbaa !12
  %41 = add nsw i32 %40, 1
  %42 = load i32, ptr %14, align 4, !tbaa !12
  %43 = add nsw i32 %42, 2
  %44 = mul nsw i32 %41, %43
  call void @_ZNK3lol4realmlEi(ptr dead_on_unwind writable sret(%"class.lol::real") align 4 %17, ptr noundef nonnull align 4 dereferenceable(68) %15, i32 noundef %44)
  %45 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realaSERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %17)
  call void @llvm.lifetime.end.p0(i64 68, ptr %17) #4
  %46 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realmLERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %11, ptr noundef nonnull align 4 dereferenceable(68) %12)
  %47 = load i32, ptr %14, align 4, !tbaa !12
  %48 = add nsw i32 %47, 2
  store i32 %48, ptr %14, align 4, !tbaa !12
  store i32 0, ptr %16, align 4
  br label %49

49:                                               ; preds = %39, %38
  call void @llvm.lifetime.end.p0(i64 68, ptr %15) #4
  %50 = load i32, ptr %16, align 4
  switch i32 %50, label %62 [
    i32 0, label %51
    i32 2, label %52
  ]

51:                                               ; preds = %49
  br label %36, !llvm.loop !13

52:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 68, ptr %18) #4
  %53 = load i32, ptr %14, align 4, !tbaa !12
  call void @_ZN3lolL9fast_factEi(ptr dead_on_unwind writable sret(%"class.lol::real") align 4 %18, i32 noundef %53)
  %54 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realdVERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %18)
  call void @llvm.lifetime.end.p0(i64 68, ptr %18) #4
  %55 = load i32, ptr %5, align 4, !tbaa !12
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %61

57:                                               ; preds = %52
  %58 = getelementptr inbounds %"class.lol::real", ptr %0, i32 0, i32 1
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = xor i32 %59, -2147483648
  store i32 %60, ptr %58, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %57, %52
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 68, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 68, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 68, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 68, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void

62:                                               ; preds = %49
  unreachable
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3lolL9fast_factEi(ptr dead_on_unwind noalias writable sret(%"class.lol::real") align 4, i32 noundef) #2

declare void @_ZN3lol4realC1ERKS0_(ptr, ptr)

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 = { 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 = { 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 = { 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, !11, i64 64}
!10 = !{!"_ZTSN3lol4realE", !7, i64 0, !11, i64 64}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.lol::real" = type { [16 x i32], i32 }

@_ZN3lol4real3R_1E = external dso_local global %"class.lol::real", align 4
@_ZN3lol4real3R_0E = external dso_local global %"class.lol::real", align 4
@_ZN3lol4real4R_PIE = external dso_local global %"class.lol::real", align 4
@_ZN3lol4real6R_PI_2E = external dso_local global %"class.lol::real", align 4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3lol4realmiERKS0_(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 noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realmIERKS0_(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 noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realdVERKS0_(ptr noundef nonnull align 4 dereferenceable(68), ptr noundef nonnull align 4 dereferenceable(68)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK3lol4realgtERKS0_(ptr noundef nonnull align 4 dereferenceable(68), ptr noundef nonnull align 4 dereferenceable(68)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3lol4fabsERKNS_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
declare dso_local void @_ZN3lol4fmodERKNS_4realES2_(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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3lol3sinERKNS_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 {
  %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 = alloca %"class.lol::real", align 4
  %9 = alloca %"class.lol::real", align 4
  %10 = alloca %"class.lol::real", align 4
  %11 = alloca %"class.lol::real", align 4
  %12 = alloca %"class.lol::real", align 4
  %13 = alloca %"class.lol::real", align 4
  %14 = getelementptr inbounds i8, ptr %1, i64 64
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = and i32 %15, -2147483648
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %4) #4
  call void @_ZN3lol4fabsERKNS_4realE(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %4, ptr noundef nonnull align 4 dereferenceable(68) %1)
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %5) #4
  call void @_ZNK3lol4realmlEi(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %5, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real4R_PIE, i32 noundef 2)
  call void @_ZN3lol4fmodERKNS_4realES2_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %3, ptr noundef nonnull align 4 dereferenceable(68) %4, ptr noundef nonnull align 4 dereferenceable(68) %5)
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %4) #4
  %17 = call noundef zeroext i1 @_ZNK3lol4realgtERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %3, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real4R_PIE)
  br i1 %17, label %18, label %21

18:                                               ; preds = %2
  %19 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realmIERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %3, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real4R_PIE)
  %.not = icmp eq i32 %16, 0
  %20 = zext i1 %.not to i32
  br label %21

21:                                               ; preds = %18, %2
  %.09 = phi i32 [ %20, %18 ], [ %16, %2 ]
  %22 = call noundef zeroext i1 @_ZNK3lol4realgtERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %3, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real6R_PI_2E)
  br i1 %22, label %23, label %25

23:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %6) #4
  call void @_ZNK3lol4realmiERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %6, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real4R_PIE, ptr noundef nonnull align 4 dereferenceable(68) %3)
  %24 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realaSERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %3, ptr noundef nonnull align 4 dereferenceable(68) %6)
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %6) #4
  br label %25

25:                                               ; preds = %23, %21
  call void @_ZN3lol4realC1ERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real3R_0E)
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %7) #4
  call void @_ZN3lol4realC1ERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %7, ptr noundef nonnull align 4 dereferenceable(68) @_ZN3lol4real3R_1E)
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %8) #4
  call void @_ZN3lol4realC1ERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %8, ptr noundef nonnull align 4 dereferenceable(68) %3)
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %10) #4
  call void @_ZNK3lol4realngEv(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %10, ptr noundef nonnull align 4 dereferenceable(68) %3)
  call void @_ZNK3lol4realmlERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %9, ptr noundef nonnull align 4 dereferenceable(68) %10, ptr noundef nonnull align 4 dereferenceable(68) %3)
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %11) #4
  call void @_ZNK3lol4realplERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %11, ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %8)
  %26 = call noundef zeroext i1 @_ZNK3lol4realeqERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %11, ptr noundef nonnull align 4 dereferenceable(68) %0)
  br i1 %26, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %25, %.lr.ph
  %.0815 = phi i32 [ %28, %.lr.ph ], [ 1, %25 ]
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %12) #4
  %27 = add nuw nsw i32 %.0815, 1
  %28 = add nuw nsw i32 %.0815, 2
  %29 = mul nuw nsw i32 %27, %28
  call void @_ZNK3lol4realmlEi(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %12, ptr noundef nonnull align 4 dereferenceable(68) %11, i32 noundef %29)
  %30 = 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 nonnull %12) #4
  %31 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realmLERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %8, ptr noundef nonnull align 4 dereferenceable(68) %9)
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %11) #4
  call void @_ZNK3lol4realplERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %11, ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %8)
  %32 = call noundef zeroext i1 @_ZNK3lol4realeqERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %11, ptr noundef nonnull align 4 dereferenceable(68) %0)
  br i1 %32, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %25
  %.08.lcssa = phi i32 [ 1, %25 ], [ %28, %.lr.ph ]
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 68, ptr nonnull %13) #4
  call void @_ZN3lolL9fast_factEi(ptr dead_on_unwind nonnull writable sret(%"class.lol::real") align 4 %13, i32 noundef %.08.lcssa)
  %33 = call noundef nonnull align 4 dereferenceable(68) ptr @_ZN3lol4realdVERKS0_(ptr noundef nonnull align 4 dereferenceable(68) %0, ptr noundef nonnull align 4 dereferenceable(68) %13)
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %13) #4
  %.not10 = icmp eq i32 %.09, 0
  br i1 %.not10, label %38, label %34

34:                                               ; preds = %._crit_edge
  %35 = getelementptr inbounds i8, ptr %0, i64 64
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = xor i32 %36, -2147483648
  store i32 %37, ptr %35, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %34, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 68, ptr nonnull %3) #4
  ret void
}

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN3lolL9fast_factEi(ptr dead_on_unwind noalias writable sret(%"class.lol::real") align 4, i32 noundef) local_unnamed_addr #2

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 = { 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 = { 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}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass