; LLVM IR from albertobsd/keyhunt :: secp256k1/IntMod.ll (ZN3Int13ModMulK1orderEPS_)

; 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.Int = type { %union.anon }
%union.anon = type { [5 x i64] }

@_ZL4_R2o = external hidden global %class.Int, align 8
@_ZL2_O = external hidden global ptr, align 8
@_ZL5MM64o = external hidden global i64, align 8

declare void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0

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

declare void @_ZN3Int3SubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) #0

declare noundef zeroext i1 @_ZN3Int10IsPositiveEv(ptr noundef nonnull align 8 dereferenceable(40)) #0

declare void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN3Int4AddCEPS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Int11AddAndShiftEPS_S0_m(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL8imm_umulPmmS_(ptr noundef, i64 noundef, ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Int13ModMulK1orderEPS_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1) #5 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %class.Int, align 8
  %6 = alloca %class.Int, align 8
  %7 = alloca %class.Int, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #6
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %5)
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #6
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %6)
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #6
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %7)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %class.Int, ptr %13, i32 0, i32 0
  %15 = getelementptr inbounds [5 x i64], ptr %14, i64 0, i64 0
  %16 = getelementptr inbounds %class.Int, ptr %12, i32 0, i32 0
  %17 = getelementptr inbounds [5 x i64], ptr %16, i64 0, i64 0
  %18 = load i64, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds %class.Int, ptr %6, i32 0, i32 0
  %20 = getelementptr inbounds [5 x i64], ptr %19, i64 0, i64 0
  call void @_ZL8imm_umulPmmS_(ptr noundef %15, i64 noundef %18, ptr noundef %20)
  %21 = getelementptr inbounds %class.Int, ptr %6, i32 0, i32 0
  %22 = getelementptr inbounds [5 x i64], ptr %21, i64 0, i64 0
  %23 = load i64, ptr %22, align 8, !tbaa !9
  %24 = load i64, ptr @_ZL5MM64o, align 8, !tbaa !10
  %25 = mul i64 %23, %24
  store i64 %25, ptr %8, align 8, !tbaa !10
  %26 = load ptr, ptr @_ZL2_O, align 8, !tbaa !5
  %27 = getelementptr inbounds %class.Int, ptr %26, i32 0, i32 0
  %28 = getelementptr inbounds [5 x i64], ptr %27, i64 0, i64 0
  %29 = load i64, ptr %8, align 8, !tbaa !10
  %30 = getelementptr inbounds %class.Int, ptr %7, i32 0, i32 0
  %31 = getelementptr inbounds [5 x i64], ptr %30, i64 0, i64 0
  call void @_ZL8imm_umulPmmS_(ptr noundef %28, i64 noundef %29, ptr noundef %31)
  %32 = call noundef i64 @_ZN3Int4AddCEPS_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef %7)
  store i64 %32, ptr %9, align 8, !tbaa !10
  %33 = getelementptr inbounds %class.Int, ptr %5, i32 0, i32 0
  %34 = getelementptr inbounds [5 x i64], ptr %33, i64 0, i64 0
  %35 = getelementptr inbounds %class.Int, ptr %6, i32 0, i32 0
  %36 = getelementptr inbounds [5 x i64], ptr %35, i64 0, i64 0
  %37 = getelementptr inbounds i64, ptr %36, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %37, i64 32, i1 false)
  %38 = load i64, ptr %9, align 8, !tbaa !10
  %39 = getelementptr inbounds %class.Int, ptr %5, i32 0, i32 0
  %40 = getelementptr inbounds [5 x i64], ptr %39, i64 0, i64 4
  store i64 %38, ptr %40, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 1, ptr %10, align 4, !tbaa !12
  br label %41

41:                                               ; preds = %73, %2
  %42 = load i32, ptr %10, align 4, !tbaa !12
  %43 = icmp slt i32 %42, 4
  br i1 %43, label %45, label %44

44:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %76

45:                                               ; preds = %41
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %class.Int, ptr %46, i32 0, i32 0
  %48 = getelementptr inbounds [5 x i64], ptr %47, i64 0, i64 0
  %49 = getelementptr inbounds %class.Int, ptr %12, i32 0, i32 0
  %50 = load i32, ptr %10, align 4, !tbaa !12
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [5 x i64], ptr %49, i64 0, i64 %51
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %54 = getelementptr inbounds %class.Int, ptr %6, i32 0, i32 0
  %55 = getelementptr inbounds [5 x i64], ptr %54, i64 0, i64 0
  call void @_ZL8imm_umulPmmS_(ptr noundef %48, i64 noundef %53, ptr noundef %55)
  %56 = getelementptr inbounds %class.Int, ptr %6, i32 0, i32 0
  %57 = getelementptr inbounds [5 x i64], ptr %56, i64 0, i64 0
  %58 = load i64, ptr %57, align 8, !tbaa !9
  %59 = getelementptr inbounds %class.Int, ptr %5, i32 0, i32 0
  %60 = getelementptr inbounds [5 x i64], ptr %59, i64 0, i64 0
  %61 = load i64, ptr %60, align 8, !tbaa !9
  %62 = add i64 %58, %61
  %63 = load i64, ptr @_ZL5MM64o, align 8, !tbaa !10
  %64 = mul i64 %62, %63
  store i64 %64, ptr %8, align 8, !tbaa !10
  %65 = load ptr, ptr @_ZL2_O, align 8, !tbaa !5
  %66 = getelementptr inbounds %class.Int, ptr %65, i32 0, i32 0
  %67 = getelementptr inbounds [5 x i64], ptr %66, i64 0, i64 0
  %68 = load i64, ptr %8, align 8, !tbaa !10
  %69 = getelementptr inbounds %class.Int, ptr %7, i32 0, i32 0
  %70 = getelementptr inbounds [5 x i64], ptr %69, i64 0, i64 0
  call void @_ZL8imm_umulPmmS_(ptr noundef %67, i64 noundef %68, ptr noundef %70)
  %71 = call noundef i64 @_ZN3Int4AddCEPS_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef %7)
  store i64 %71, ptr %9, align 8, !tbaa !10
  %72 = load i64, ptr %9, align 8, !tbaa !10
  call void @_ZN3Int11AddAndShiftEPS_S0_m(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef %5, ptr noundef %6, i64 noundef %72)
  br label %73

73:                                               ; preds = %45
  %74 = load i32, ptr %10, align 4, !tbaa !12
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %10, align 4, !tbaa !12
  br label %41, !llvm.loop !14

76:                                               ; preds = %44
  %77 = load ptr, ptr @_ZL2_O, align 8, !tbaa !5
  call void @_ZN3Int3SubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %5, ptr noundef %77)
  %78 = call noundef zeroext i1 @_ZN3Int10IsPositiveEv(ptr noundef nonnull align 8 dereferenceable(40) %7)
  br i1 %78, label %79, label %80

79:                                               ; preds = %76
  call void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef %7)
  br label %81

80:                                               ; preds = %76
  call void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef %5)
  br label %81

81:                                               ; preds = %80, %79
  %82 = getelementptr inbounds %class.Int, ptr %12, i32 0, i32 0
  %83 = getelementptr inbounds [5 x i64], ptr %82, i64 0, i64 0
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = getelementptr inbounds %class.Int, ptr %6, i32 0, i32 0
  %86 = getelementptr inbounds [5 x i64], ptr %85, i64 0, i64 0
  call void @_ZL8imm_umulPmmS_(ptr noundef @_ZL4_R2o, i64 noundef %84, ptr noundef %86)
  %87 = getelementptr inbounds %class.Int, ptr %6, i32 0, i32 0
  %88 = getelementptr inbounds [5 x i64], ptr %87, i64 0, i64 0
  %89 = load i64, ptr %88, align 8, !tbaa !9
  %90 = load i64, ptr @_ZL5MM64o, align 8, !tbaa !10
  %91 = mul i64 %89, %90
  store i64 %91, ptr %8, align 8, !tbaa !10
  %92 = load ptr, ptr @_ZL2_O, align 8, !tbaa !5
  %93 = getelementptr inbounds %class.Int, ptr %92, i32 0, i32 0
  %94 = getelementptr inbounds [5 x i64], ptr %93, i64 0, i64 0
  %95 = load i64, ptr %8, align 8, !tbaa !10
  %96 = getelementptr inbounds %class.Int, ptr %7, i32 0, i32 0
  %97 = getelementptr inbounds [5 x i64], ptr %96, i64 0, i64 0
  call void @_ZL8imm_umulPmmS_(ptr noundef %94, i64 noundef %95, ptr noundef %97)
  %98 = call noundef i64 @_ZN3Int4AddCEPS_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef %7)
  store i64 %98, ptr %9, align 8, !tbaa !10
  %99 = getelementptr inbounds %class.Int, ptr %5, i32 0, i32 0
  %100 = getelementptr inbounds [5 x i64], ptr %99, i64 0, i64 0
  %101 = getelementptr inbounds %class.Int, ptr %6, i32 0, i32 0
  %102 = getelementptr inbounds [5 x i64], ptr %101, i64 0, i64 0
  %103 = getelementptr inbounds i64, ptr %102, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %100, ptr align 8 %103, i64 32, i1 false)
  %104 = load i64, ptr %9, align 8, !tbaa !10
  %105 = getelementptr inbounds %class.Int, ptr %5, i32 0, i32 0
  %106 = getelementptr inbounds [5 x i64], ptr %105, i64 0, i64 4
  store i64 %104, ptr %106, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 1, ptr %11, align 4, !tbaa !12
  br label %107

107:                                              ; preds = %136, %81
  %108 = load i32, ptr %11, align 4, !tbaa !12
  %109 = icmp slt i32 %108, 4
  br i1 %109, label %111, label %110

110:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %139

111:                                              ; preds = %107
  %112 = getelementptr inbounds %class.Int, ptr %12, i32 0, i32 0
  %113 = load i32, ptr %11, align 4, !tbaa !12
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [5 x i64], ptr %112, i64 0, i64 %114
  %116 = load i64, ptr %115, align 8, !tbaa !9
  %117 = getelementptr inbounds %class.Int, ptr %6, i32 0, i32 0
  %118 = getelementptr inbounds [5 x i64], ptr %117, i64 0, i64 0
  call void @_ZL8imm_umulPmmS_(ptr noundef @_ZL4_R2o, i64 noundef %116, ptr noundef %118)
  %119 = getelementptr inbounds %class.Int, ptr %6, i32 0, i32 0
  %120 = getelementptr inbounds [5 x i64], ptr %119, i64 0, i64 0
  %121 = load i64, ptr %120, align 8, !tbaa !9
  %122 = getelementptr inbounds %class.Int, ptr %5, i32 0, i32 0
  %123 = getelementptr inbounds [5 x i64], ptr %122, i64 0, i64 0
  %124 = load i64, ptr %123, align 8, !tbaa !9
  %125 = add i64 %121, %124
  %126 = load i64, ptr @_ZL5MM64o, align 8, !tbaa !10
  %127 = mul i64 %125, %126
  store i64 %127, ptr %8, align 8, !tbaa !10
  %128 = load ptr, ptr @_ZL2_O, align 8, !tbaa !5
  %129 = getelementptr inbounds %class.Int, ptr %128, i32 0, i32 0
  %130 = getelementptr inbounds [5 x i64], ptr %129, i64 0, i64 0
  %131 = load i64, ptr %8, align 8, !tbaa !10
  %132 = getelementptr inbounds %class.Int, ptr %7, i32 0, i32 0
  %133 = getelementptr inbounds [5 x i64], ptr %132, i64 0, i64 0
  call void @_ZL8imm_umulPmmS_(ptr noundef %130, i64 noundef %131, ptr noundef %133)
  %134 = call noundef i64 @_ZN3Int4AddCEPS_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef %7)
  store i64 %134, ptr %9, align 8, !tbaa !10
  %135 = load i64, ptr %9, align 8, !tbaa !10
  call void @_ZN3Int11AddAndShiftEPS_S0_m(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef %5, ptr noundef %6, i64 noundef %135)
  br label %136

136:                                              ; preds = %111
  %137 = load i32, ptr %11, align 4, !tbaa !12
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %11, align 4, !tbaa !12
  br label %107, !llvm.loop !16

139:                                              ; preds = %110
  %140 = load ptr, ptr @_ZL2_O, align 8, !tbaa !5
  call void @_ZN3Int3SubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef %5, ptr noundef %140)
  %141 = call noundef zeroext i1 @_ZN3Int10IsPositiveEv(ptr noundef nonnull align 8 dereferenceable(40) %7)
  br i1 %141, label %142, label %143

142:                                              ; preds = %139
  call void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef %7)
  br label %144

143:                                              ; preds = %139
  call void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef %5)
  br label %144

144:                                              ; preds = %143, %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #6
  ret void
}

attributes #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


; 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.Int = type { %union.anon }
%union.anon = type { [5 x i64] }

@_ZL4_R2o = external hidden global %class.Int, align 8
@_ZL2_O = external hidden local_unnamed_addr global ptr, align 8
@_ZL5MM64o = external hidden local_unnamed_addr global i64, align 8

declare void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #0

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

declare void @_ZN3Int3SubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN3Int10IsPositiveEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0

declare void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) local_unnamed_addr #0

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZN3Int4AddCEPS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Int11AddAndShiftEPS_S0_m(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL8imm_umulPmmS_(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress 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) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Int13ModMulK1orderEPS_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1) local_unnamed_addr #5 align 2 {
  %3 = alloca %class.Int, align 8
  %4 = alloca %class.Int, align 8
  %5 = alloca %class.Int, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #6
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %3)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #6
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %4)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @_ZN3IntC1Ev(ptr noundef nonnull align 8 dereferenceable(40) %5)
  %6 = load i64, ptr %0, align 8, !tbaa !5
  call void @_ZL8imm_umulPmmS_(ptr noundef %1, i64 noundef %6, ptr noundef nonnull %4)
  %7 = load i64, ptr %4, align 8, !tbaa !5
  %8 = load i64, ptr @_ZL5MM64o, align 8, !tbaa !8
  %9 = mul i64 %8, %7
  %10 = load ptr, ptr @_ZL2_O, align 8, !tbaa !10
  call void @_ZL8imm_umulPmmS_(ptr noundef %10, i64 noundef %9, ptr noundef nonnull %5)
  %11 = call noundef i64 @_ZN3Int4AddCEPS_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull %5)
  %12 = getelementptr inbounds i8, ptr %4, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %12, i64 32, i1 false)
  %13 = getelementptr inbounds i8, ptr %3, i64 32
  store i64 %11, ptr %13, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = load i64, ptr %14, align 8, !tbaa !5
  call void @_ZL8imm_umulPmmS_(ptr noundef %1, i64 noundef %15, ptr noundef nonnull %4)
  %16 = load i64, ptr %4, align 8, !tbaa !5
  %17 = load i64, ptr %3, align 8, !tbaa !5
  %18 = add i64 %17, %16
  %19 = load i64, ptr @_ZL5MM64o, align 8, !tbaa !8
  %20 = mul i64 %18, %19
  %21 = load ptr, ptr @_ZL2_O, align 8, !tbaa !10
  call void @_ZL8imm_umulPmmS_(ptr noundef %21, i64 noundef %20, ptr noundef nonnull %5)
  %22 = call noundef i64 @_ZN3Int4AddCEPS_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull %5)
  call void @_ZN3Int11AddAndShiftEPS_S0_m(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %3, ptr noundef nonnull %4, i64 noundef %22)
  %23 = getelementptr inbounds i8, ptr %0, i64 16
  %24 = load i64, ptr %23, align 8, !tbaa !5
  call void @_ZL8imm_umulPmmS_(ptr noundef %1, i64 noundef %24, ptr noundef nonnull %4)
  %25 = load i64, ptr %4, align 8, !tbaa !5
  %26 = load i64, ptr %3, align 8, !tbaa !5
  %27 = add i64 %26, %25
  %28 = load i64, ptr @_ZL5MM64o, align 8, !tbaa !8
  %29 = mul i64 %27, %28
  %30 = load ptr, ptr @_ZL2_O, align 8, !tbaa !10
  call void @_ZL8imm_umulPmmS_(ptr noundef %30, i64 noundef %29, ptr noundef nonnull %5)
  %31 = call noundef i64 @_ZN3Int4AddCEPS_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull %5)
  call void @_ZN3Int11AddAndShiftEPS_S0_m(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %3, ptr noundef nonnull %4, i64 noundef %31)
  %32 = getelementptr inbounds i8, ptr %0, i64 24
  %33 = load i64, ptr %32, align 8, !tbaa !5
  call void @_ZL8imm_umulPmmS_(ptr noundef %1, i64 noundef %33, ptr noundef nonnull %4)
  %34 = load i64, ptr %4, align 8, !tbaa !5
  %35 = load i64, ptr %3, align 8, !tbaa !5
  %36 = add i64 %35, %34
  %37 = load i64, ptr @_ZL5MM64o, align 8, !tbaa !8
  %38 = mul i64 %36, %37
  %39 = load ptr, ptr @_ZL2_O, align 8, !tbaa !10
  call void @_ZL8imm_umulPmmS_(ptr noundef %39, i64 noundef %38, ptr noundef nonnull %5)
  %40 = call noundef i64 @_ZN3Int4AddCEPS_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull %5)
  call void @_ZN3Int11AddAndShiftEPS_S0_m(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %3, ptr noundef nonnull %4, i64 noundef %40)
  %41 = load ptr, ptr @_ZL2_O, align 8, !tbaa !10
  call void @_ZN3Int3SubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull %3, ptr noundef %41)
  %42 = call noundef zeroext i1 @_ZN3Int10IsPositiveEv(ptr noundef nonnull align 8 dereferenceable(40) %5)
  %. = select i1 %42, ptr %5, ptr %3
  call void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %.)
  %43 = load i64, ptr %0, align 8, !tbaa !5
  call void @_ZL8imm_umulPmmS_(ptr noundef nonnull @_ZL4_R2o, i64 noundef %43, ptr noundef nonnull %4)
  %44 = load i64, ptr %4, align 8, !tbaa !5
  %45 = load i64, ptr @_ZL5MM64o, align 8, !tbaa !8
  %46 = mul i64 %45, %44
  %47 = load ptr, ptr @_ZL2_O, align 8, !tbaa !10
  call void @_ZL8imm_umulPmmS_(ptr noundef %47, i64 noundef %46, ptr noundef nonnull %5)
  %48 = call noundef i64 @_ZN3Int4AddCEPS_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull %5)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %12, i64 32, i1 false)
  store i64 %48, ptr %13, align 8, !tbaa !5
  %49 = load i64, ptr %14, align 8, !tbaa !5
  call void @_ZL8imm_umulPmmS_(ptr noundef nonnull @_ZL4_R2o, i64 noundef %49, ptr noundef nonnull %4)
  %50 = load i64, ptr %4, align 8, !tbaa !5
  %51 = load i64, ptr %3, align 8, !tbaa !5
  %52 = add i64 %51, %50
  %53 = load i64, ptr @_ZL5MM64o, align 8, !tbaa !8
  %54 = mul i64 %52, %53
  %55 = load ptr, ptr @_ZL2_O, align 8, !tbaa !10
  call void @_ZL8imm_umulPmmS_(ptr noundef %55, i64 noundef %54, ptr noundef nonnull %5)
  %56 = call noundef i64 @_ZN3Int4AddCEPS_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull %5)
  call void @_ZN3Int11AddAndShiftEPS_S0_m(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %3, ptr noundef nonnull %4, i64 noundef %56)
  %57 = load i64, ptr %23, align 8, !tbaa !5
  call void @_ZL8imm_umulPmmS_(ptr noundef nonnull @_ZL4_R2o, i64 noundef %57, ptr noundef nonnull %4)
  %58 = load i64, ptr %4, align 8, !tbaa !5
  %59 = load i64, ptr %3, align 8, !tbaa !5
  %60 = add i64 %59, %58
  %61 = load i64, ptr @_ZL5MM64o, align 8, !tbaa !8
  %62 = mul i64 %60, %61
  %63 = load ptr, ptr @_ZL2_O, align 8, !tbaa !10
  call void @_ZL8imm_umulPmmS_(ptr noundef %63, i64 noundef %62, ptr noundef nonnull %5)
  %64 = call noundef i64 @_ZN3Int4AddCEPS_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull %5)
  call void @_ZN3Int11AddAndShiftEPS_S0_m(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %3, ptr noundef nonnull %4, i64 noundef %64)
  %65 = load i64, ptr %32, align 8, !tbaa !5
  call void @_ZL8imm_umulPmmS_(ptr noundef nonnull @_ZL4_R2o, i64 noundef %65, ptr noundef nonnull %4)
  %66 = load i64, ptr %4, align 8, !tbaa !5
  %67 = load i64, ptr %3, align 8, !tbaa !5
  %68 = add i64 %67, %66
  %69 = load i64, ptr @_ZL5MM64o, align 8, !tbaa !8
  %70 = mul i64 %68, %69
  %71 = load ptr, ptr @_ZL2_O, align 8, !tbaa !10
  call void @_ZL8imm_umulPmmS_(ptr noundef %71, i64 noundef %70, ptr noundef nonnull %5)
  %72 = call noundef i64 @_ZN3Int4AddCEPS_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull %5)
  call void @_ZN3Int11AddAndShiftEPS_S0_m(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull %3, ptr noundef nonnull %4, i64 noundef %72)
  %73 = load ptr, ptr @_ZL2_O, align 8, !tbaa !10
  call void @_ZN3Int3SubEPS_S0_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull %3, ptr noundef %73)
  %74 = call noundef zeroext i1 @_ZN3Int10IsPositiveEv(ptr noundef nonnull align 8 dereferenceable(40) %5)
  %.sink21 = select i1 %74, ptr %5, ptr %3
  call void @_ZN3Int3SetEPS_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef nonnull %.sink21)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #6
  ret void
}

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,ReassociatePass,SROAPass,SimplifyCFGPass