; LLVM IR from gem5/gem5 :: ext/systemc/src/sysc/datatypes/fx/scfx_pow10.ll (ZN5sc_dt10scfx_pow10clEi)

; 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.sc_dt::scfx_rep" = type <{ %"class.sc_dt::scfx_mant", i32, i32, i32, i32, i32, i8, [3 x i8] }>
%"class.sc_dt::scfx_mant" = type <{ ptr, i32, [4 x i8] }>

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37)) unnamed_addr #0 align 2

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

declare void @_ZN5sc_dt8scfx_repC1Ed(ptr noundef nonnull align 8 dereferenceable(37), double noundef) unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_repaSERKS0_(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(37)) #3 align 2

; 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
define dso_local void @_ZN5sc_dt10scfx_pow10clEi(ptr dead_on_unwind noalias writable sret(%"class.sc_dt::scfx_rep") align 8 %0, ptr noundef nonnull align 8 dereferenceable(2560) %1, i32 noundef %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i1, align 1
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i1, align 1
  %14 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %15 = load ptr, ptr %5, align 8
  %16 = load i32, ptr %6, align 4, !tbaa !9
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %19

18:                                               ; preds = %3
  call void @_ZN5sc_dt8scfx_repC1Ed(ptr noundef nonnull align 8 dereferenceable(37) %0, double noundef 1.000000e+00)
  br label %106

19:                                               ; preds = %3
  %20 = load i32, ptr %6, align 4, !tbaa !9
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %22, label %63

22:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %23 = load i32, ptr %6, align 4, !tbaa !9
  %24 = sext i32 %23 to i64
  %25 = call noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %24)
  store i32 %25, ptr %7, align 4, !tbaa !9
  store i1 false, ptr %8, align 1
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = call noundef ptr @_ZN5sc_dt10scfx_pow103posEi(ptr noundef nonnull align 8 dereferenceable(2560) %15, i32 noundef %26)
  call void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(37) %27)
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %59

30:                                               ; preds = %22
  br label %31

31:                                               ; preds = %57, %30
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = add nsw i32 %32, -1
  store i32 %33, ptr %7, align 4, !tbaa !9
  %34 = icmp sge i32 %33, 0
  br i1 %34, label %35, label %58

35:                                               ; preds = %31
  %36 = load i32, ptr %7, align 4, !tbaa !9
  %37 = shl i32 1, %36
  %38 = load i32, ptr %6, align 4, !tbaa !9
  %39 = and i32 %37, %38
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %57

41:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %42 = load i32, ptr %7, align 4, !tbaa !9
  %43 = invoke noundef ptr @_ZN5sc_dt10scfx_pow103posEi(ptr noundef nonnull align 8 dereferenceable(2560) %15, i32 noundef %42)
          to label %44 unwind label %53

44:                                               ; preds = %41
  %45 = invoke noundef ptr @_ZN5sc_dt13mult_scfx_repERKNS_8scfx_repES2_i(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(37) %43, i32 noundef 1024)
          to label %46 unwind label %53

46:                                               ; preds = %44
  store ptr %45, ptr %9, align 8, !tbaa !5
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN5sc_dt8scfx_repaSERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(37) %47)
          to label %48 unwind label %53

48:                                               ; preds = %46
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = icmp eq ptr %49, null
  br i1 %50, label %52, label %51

51:                                               ; preds = %48
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %49) #6
  call void @_ZN5sc_dt8scfx_repdlEPvm(ptr noundef %49, i64 noundef 40) #6
  br label %52

52:                                               ; preds = %51, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %57

53:                                               ; preds = %46, %44, %41
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %10, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %0) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %107

57:                                               ; preds = %52, %35
  br label %31, !llvm.loop !11

58:                                               ; preds = %31
  br label %59

59:                                               ; preds = %58, %22
  store i1 true, ptr %8, align 1
  %60 = load i1, ptr %8, align 1
  br i1 %60, label %62, label %61

61:                                               ; preds = %59
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %0) #6
  br label %62

62:                                               ; preds = %61, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %106

63:                                               ; preds = %19
  %64 = load i32, ptr %6, align 4, !tbaa !9
  %65 = sub nsw i32 0, %64
  store i32 %65, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %66 = load i32, ptr %6, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = call noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %67)
  store i32 %68, ptr %12, align 4, !tbaa !9
  store i1 false, ptr %13, align 1
  %69 = load i32, ptr %12, align 4, !tbaa !9
  %70 = call noundef ptr @_ZN5sc_dt10scfx_pow103negEi(ptr noundef nonnull align 8 dereferenceable(2560) %15, i32 noundef %69)
  call void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(37) %70)
  %71 = load i32, ptr %12, align 4, !tbaa !9
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %73, label %102

73:                                               ; preds = %63
  br label %74

74:                                               ; preds = %100, %73
  %75 = load i32, ptr %12, align 4, !tbaa !9
  %76 = add nsw i32 %75, -1
  store i32 %76, ptr %12, align 4, !tbaa !9
  %77 = icmp sge i32 %76, 0
  br i1 %77, label %78, label %101

78:                                               ; preds = %74
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = shl i32 1, %79
  %81 = load i32, ptr %6, align 4, !tbaa !9
  %82 = and i32 %80, %81
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %84, label %100

84:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %85 = load i32, ptr %12, align 4, !tbaa !9
  %86 = invoke noundef ptr @_ZN5sc_dt10scfx_pow103negEi(ptr noundef nonnull align 8 dereferenceable(2560) %15, i32 noundef %85)
          to label %87 unwind label %96

87:                                               ; preds = %84
  %88 = invoke noundef ptr @_ZN5sc_dt13mult_scfx_repERKNS_8scfx_repES2_i(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(37) %86, i32 noundef 1024)
          to label %89 unwind label %96

89:                                               ; preds = %87
  store ptr %88, ptr %14, align 8, !tbaa !5
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN5sc_dt8scfx_repaSERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(37) %90)
          to label %91 unwind label %96

91:                                               ; preds = %89
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = icmp eq ptr %92, null
  br i1 %93, label %95, label %94

94:                                               ; preds = %91
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %92) #6
  call void @_ZN5sc_dt8scfx_repdlEPvm(ptr noundef %92, i64 noundef 40) #6
  br label %95

95:                                               ; preds = %94, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %100

96:                                               ; preds = %89, %87, %84
  %97 = landingpad { ptr, i32 }
          cleanup
  %98 = extractvalue { ptr, i32 } %97, 0
  store ptr %98, ptr %10, align 8
  %99 = extractvalue { ptr, i32 } %97, 1
  store i32 %99, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %0) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %107

100:                                              ; preds = %95, %78
  br label %74, !llvm.loop !13

101:                                              ; preds = %74
  br label %102

102:                                              ; preds = %101, %63
  store i1 true, ptr %13, align 1
  %103 = load i1, ptr %13, align 1
  br i1 %103, label %105, label %104

104:                                              ; preds = %102
  call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %0) #6
  br label %105

105:                                              ; preds = %104, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %106

106:                                              ; preds = %105, %62, %18
  ret void

107:                                              ; preds = %96, %53
  %108 = load ptr, ptr %10, align 8
  %109 = load i32, ptr %11, align 4
  %110 = insertvalue { ptr, i32 } poison, ptr %108, 0
  %111 = insertvalue { ptr, i32 } %110, i32 %109, 1
  resume { ptr, i32 } %111
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef) #0

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

declare void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(37)) unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN5sc_dt13mult_scfx_repERKNS_8scfx_repES2_i(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) #3

; Function Attrs: nounwind
declare void @_ZN5sc_dt8scfx_repdlEPvm(ptr noundef, i64 noundef) #5

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

attributes #0 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; 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.sc_dt::scfx_rep" = type <{ %"class.sc_dt::scfx_mant", i32, i32, i32, i32, i32, i8, [3 x i8] }>
%"class.sc_dt::scfx_mant" = type <{ ptr, i32, [4 x i8] }>

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37)) unnamed_addr #0 align 2

declare void @_ZN5sc_dt8scfx_repC1Ed(ptr noundef nonnull align 8 dereferenceable(37), double noundef) unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5sc_dt8scfx_repaSERKS0_(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5sc_dt10scfx_pow10clEi(ptr dead_on_unwind noalias writable sret(%"class.sc_dt::scfx_rep") align 8 %0, ptr noundef nonnull align 8 dereferenceable(2560) %1, i32 noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = icmp eq i32 %2, 0
  br i1 %4, label %5, label %6

5:                                                ; preds = %3
  tail call void @_ZN5sc_dt8scfx_repC1Ed(ptr noundef nonnull align 8 dereferenceable(37) %0, double noundef 1.000000e+00)
  br label %.loopexit

6:                                                ; preds = %3
  %7 = icmp sgt i32 %2, 0
  br i1 %7, label %8, label %26

8:                                                ; preds = %6
  %9 = zext nneg i32 %2 to i64
  %10 = tail call noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %9)
  %11 = tail call noundef ptr @_ZN5sc_dt10scfx_pow103posEi(ptr noundef nonnull align 8 dereferenceable(2560) %1, i32 noundef %10)
  tail call void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(37) %11)
  %12 = icmp sgt i32 %10, 0
  br i1 %12, label %.lr.ph39, label %.loopexit

.lr.ph39:                                         ; preds = %8, %24
  %.in43 = phi i32 [ %13, %24 ], [ %10, %8 ]
  %13 = add nsw i32 %.in43, -1
  %14 = shl nuw i32 1, %13
  %15 = and i32 %14, %2
  %.not35 = icmp eq i32 %15, 0
  br i1 %.not35, label %24, label %16

16:                                               ; preds = %.lr.ph39
  %17 = invoke noundef ptr @_ZN5sc_dt10scfx_pow103posEi(ptr noundef nonnull align 8 dereferenceable(2560) %1, i32 noundef %13)
          to label %18 unwind label %22

18:                                               ; preds = %16
  %19 = invoke noundef ptr @_ZN5sc_dt13mult_scfx_repERKNS_8scfx_repES2_i(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(37) %17, i32 noundef 1024)
          to label %20 unwind label %22

20:                                               ; preds = %18
  invoke void @_ZN5sc_dt8scfx_repaSERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(37) %19)
          to label %21 unwind label %22

21:                                               ; preds = %20
  tail call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %19) #5
  tail call void @_ZN5sc_dt8scfx_repdlEPvm(ptr noundef nonnull %19, i64 noundef 40) #5
  br label %24

22:                                               ; preds = %20, %18, %16
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %45

24:                                               ; preds = %21, %.lr.ph39
  %25 = icmp ugt i32 %.in43, 1
  br i1 %25, label %.lr.ph39, label %.loopexit, !llvm.loop !5

26:                                               ; preds = %6
  %27 = sub nsw i32 0, %2
  %28 = zext nneg i32 %27 to i64
  %29 = tail call noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef %28)
  %30 = tail call noundef ptr @_ZN5sc_dt10scfx_pow103negEi(ptr noundef nonnull align 8 dereferenceable(2560) %1, i32 noundef %29)
  tail call void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(37) %30)
  %31 = icmp sgt i32 %29, 0
  br i1 %31, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %26, %43
  %.in = phi i32 [ %32, %43 ], [ %29, %26 ]
  %32 = add nsw i32 %.in, -1
  %33 = shl nuw i32 1, %32
  %34 = and i32 %33, %27
  %.not33 = icmp eq i32 %34, 0
  br i1 %.not33, label %43, label %35

35:                                               ; preds = %.lr.ph
  %36 = invoke noundef ptr @_ZN5sc_dt10scfx_pow103negEi(ptr noundef nonnull align 8 dereferenceable(2560) %1, i32 noundef %32)
          to label %37 unwind label %41

37:                                               ; preds = %35
  %38 = invoke noundef ptr @_ZN5sc_dt13mult_scfx_repERKNS_8scfx_repES2_i(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(37) %36, i32 noundef 1024)
          to label %39 unwind label %41

39:                                               ; preds = %37
  invoke void @_ZN5sc_dt8scfx_repaSERKS0_(ptr noundef nonnull align 8 dereferenceable(37) %0, ptr noundef nonnull align 8 dereferenceable(37) %38)
          to label %40 unwind label %41

40:                                               ; preds = %39
  tail call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %38) #5
  tail call void @_ZN5sc_dt8scfx_repdlEPvm(ptr noundef nonnull %38, i64 noundef 40) #5
  br label %43

41:                                               ; preds = %39, %37, %35
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %45

43:                                               ; preds = %40, %.lr.ph
  %44 = icmp ugt i32 %.in, 1
  br i1 %44, label %.lr.ph, label %.loopexit, !llvm.loop !7

.loopexit:                                        ; preds = %43, %24, %26, %8, %5
  ret void

45:                                               ; preds = %41, %22
  %.pn = phi { ptr, i32 } [ %23, %22 ], [ %42, %41 ]
  tail call void @_ZN5sc_dt8scfx_repD2Ev(ptr noundef nonnull align 8 dereferenceable(37) %0) #5
  resume { ptr, i32 } %.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN5sc_dt13scfx_find_msbEm(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5sc_dt10scfx_pow103posEi(ptr noundef nonnull align 8 dereferenceable(2560), i32 noundef) local_unnamed_addr #3 align 2

declare void @_ZN5sc_dt8scfx_repC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(37)) unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN5sc_dt13mult_scfx_repERKNS_8scfx_repES2_i(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(37), i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare void @_ZN5sc_dt8scfx_repdlEPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN5sc_dt10scfx_pow103negEi(ptr noundef nonnull align 8 dereferenceable(2560), i32 noundef) local_unnamed_addr #3 align 2

attributes #0 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 = { 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 #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 }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


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