; LLVM IR from ShahjalalShohag/code-library :: Number Theory (Linear Diophantine Equation Three Variables with Nonnegative Solutions)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@.str.1 = external hidden unnamed_addr constant [151 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [15 x i8], align 1

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef { i64, i64 } @_Z2yonnnn(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i128 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef { i64, i64 } @_Z5brutennnn(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i128 noundef) #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i128, align 16
  %8 = alloca i128, align 16
  %9 = alloca i128, align 16
  %10 = alloca i128, align 16
  %11 = alloca i128, align 16
  %12 = alloca i128, align 16
  %13 = alloca i128, align 16
  %14 = alloca i128, align 16
  %15 = alloca i128, align 16
  %16 = alloca i128, align 16
  store i32 0, ptr %1, align 4
  %17 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %18 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %19 = getelementptr i8, ptr %18, i64 -24
  %20 = load i64, ptr %19, align 8
  %21 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %20
  %22 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %21, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !8
  br label %23

23:                                               ; preds = %114, %0
  %24 = load i32, ptr %2, align 4, !tbaa !8
  %25 = icmp sle i32 %24, 5
  br i1 %25, label %27, label %26

26:                                               ; preds = %23
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %117

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 1, ptr %4, align 4, !tbaa !8
  br label %28

28:                                               ; preds = %110, %27
  %29 = load i32, ptr %4, align 4, !tbaa !8
  %30 = icmp sle i32 %29, 5
  br i1 %30, label %32, label %31

31:                                               ; preds = %28
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %113

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 1, ptr %5, align 4, !tbaa !8
  br label %33

33:                                               ; preds = %106, %32
  %34 = load i32, ptr %5, align 4, !tbaa !8
  %35 = icmp sle i32 %34, 5
  br i1 %35, label %37, label %36

36:                                               ; preds = %33
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %109

37:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 1, ptr %6, align 4, !tbaa !8
  br label %38

38:                                               ; preds = %102, %37
  %39 = load i32, ptr %6, align 4, !tbaa !8
  %40 = icmp sle i32 %39, 50
  br i1 %40, label %42, label %41

41:                                               ; preds = %38
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %105

42:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  %43 = load i32, ptr %2, align 4, !tbaa !8
  %44 = sext i32 %43 to i128
  %45 = load i32, ptr %4, align 4, !tbaa !8
  %46 = sext i32 %45 to i128
  %47 = load i32, ptr %5, align 4, !tbaa !8
  %48 = sext i32 %47 to i128
  %49 = load i32, ptr %6, align 4, !tbaa !8
  %50 = sext i32 %49 to i128
  store i128 %44, ptr %8, align 16, !tbaa !11
  %51 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 0
  %52 = load i64, ptr %51, align 16
  %53 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 1
  %54 = load i64, ptr %53, align 8
  store i128 %46, ptr %9, align 16, !tbaa !11
  %55 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %56 = load i64, ptr %55, align 16
  %57 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %58 = load i64, ptr %57, align 8
  store i128 %48, ptr %10, align 16, !tbaa !11
  %59 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %60 = load i64, ptr %59, align 16
  %61 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %62 = load i64, ptr %61, align 8
  %63 = call noundef { i64, i64 } @_Z2yonnnn(i64 noundef %52, i64 noundef %54, i64 noundef %56, i64 noundef %58, i64 noundef %60, i64 noundef %62, i128 noundef %50)
  %64 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %65 = extractvalue { i64, i64 } %63, 0
  store i64 %65, ptr %64, align 16
  %66 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %67 = extractvalue { i64, i64 } %63, 1
  store i64 %67, ptr %66, align 8
  %68 = load i128, ptr %11, align 16, !tbaa !11
  store i128 %68, ptr %7, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %69 = load i32, ptr %2, align 4, !tbaa !8
  %70 = sext i32 %69 to i128
  %71 = load i32, ptr %4, align 4, !tbaa !8
  %72 = sext i32 %71 to i128
  %73 = load i32, ptr %5, align 4, !tbaa !8
  %74 = sext i32 %73 to i128
  %75 = load i32, ptr %6, align 4, !tbaa !8
  %76 = sext i32 %75 to i128
  store i128 %70, ptr %13, align 16, !tbaa !11
  %77 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 0
  %78 = load i64, ptr %77, align 16
  %79 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 1
  %80 = load i64, ptr %79, align 8
  store i128 %72, ptr %14, align 16, !tbaa !11
  %81 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 0
  %82 = load i64, ptr %81, align 16
  %83 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 1
  %84 = load i64, ptr %83, align 8
  store i128 %74, ptr %15, align 16, !tbaa !11
  %85 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 0
  %86 = load i64, ptr %85, align 16
  %87 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 1
  %88 = load i64, ptr %87, align 8
  %89 = call noundef { i64, i64 } @_Z5brutennnn(i64 noundef %78, i64 noundef %80, i64 noundef %82, i64 noundef %84, i64 noundef %86, i64 noundef %88, i128 noundef %76)
  %90 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 0
  %91 = extractvalue { i64, i64 } %89, 0
  store i64 %91, ptr %90, align 16
  %92 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 1
  %93 = extractvalue { i64, i64 } %89, 1
  store i64 %93, ptr %92, align 8
  %94 = load i128, ptr %16, align 16, !tbaa !11
  store i128 %94, ptr %12, align 16, !tbaa !11
  %95 = load i128, ptr %7, align 16, !tbaa !11
  %96 = load i128, ptr %12, align 16, !tbaa !11
  %97 = icmp eq i128 %95, %96
  br i1 %97, label %98, label %99

98:                                               ; preds = %42
  br label %101

99:                                               ; preds = %42
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 97, ptr noundef @__PRETTY_FUNCTION__.main) #7
  unreachable

100:                                              ; No predecessors!
  br label %101

101:                                              ; preds = %100, %98
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %6, align 4, !tbaa !8
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %6, align 4, !tbaa !8
  br label %38, !llvm.loop !13

105:                                              ; preds = %41
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %5, align 4, !tbaa !8
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %5, align 4, !tbaa !8
  br label %33, !llvm.loop !15

109:                                              ; preds = %36
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %4, align 4, !tbaa !8
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %4, align 4, !tbaa !8
  br label %28, !llvm.loop !16

113:                                              ; preds = %31
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %2, align 4, !tbaa !8
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %2, align 4, !tbaa !8
  br label %23, !llvm.loop !17

117:                                              ; preds = %26
  ret i32 0
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #5

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 #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 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 #4 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 }
attributes #7 = { noreturn 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"__int128", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@.str.1 = external hidden unnamed_addr constant [151 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [15 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef { i64, i64 } @_Z2yonnnn(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i128 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef { i64, i64 } @_Z5brutennnn(i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i128 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %2 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %3 = getelementptr i8, ptr %2, i64 -24
  %4 = load i64, ptr %3, align 8
  %5 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %4
  %6 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %5, ptr noundef null)
  br label %.preheader36

.preheader36:                                     ; preds = %0, %8
  %indvars.iv49 = phi i64 [ 1, %0 ], [ %indvars.iv.next50, %8 ]
  br label %.preheader35

7:                                                ; preds = %8
  ret i32 0

.preheader35:                                     ; preds = %.preheader36, %51
  %indvars.iv = phi i64 [ 1, %.preheader36 ], [ %indvars.iv.next, %51 ]
  br label %52

8:                                                ; preds = %51
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
  %exitcond52.not = icmp eq i64 %indvars.iv.next50, 6
  br i1 %exitcond52.not, label %7, label %.preheader36, !llvm.loop !8

9:                                                ; preds = %52
  %10 = add nuw nsw i32 %.03437, 1
  %exitcond.not = icmp eq i32 %10, 51
  br i1 %exitcond.not, label %.preheader.1, label %52, !llvm.loop !10

.preheader.1:                                     ; preds = %9, %19
  %.03437.1 = phi i32 [ %20, %19 ], [ 1, %9 ]
  %11 = zext nneg i32 %.03437.1 to i128
  %12 = tail call noundef { i64, i64 } @_Z2yonnnn(i64 noundef %indvars.iv49, i64 noundef 0, i64 noundef %indvars.iv, i64 noundef 0, i64 noundef 2, i64 noundef 0, i128 noundef %11)
  %13 = extractvalue { i64, i64 } %12, 0
  %14 = extractvalue { i64, i64 } %12, 1
  %.sroa.28.0.insert.ext.1 = zext i64 %14 to i128
  %.sroa.28.0.insert.shift.1 = shl nuw i128 %.sroa.28.0.insert.ext.1, 64
  %.sroa.07.0.insert.ext.1 = zext i64 %13 to i128
  %.sroa.07.0.insert.insert.1 = or disjoint i128 %.sroa.28.0.insert.shift.1, %.sroa.07.0.insert.ext.1
  %15 = tail call noundef { i64, i64 } @_Z5brutennnn(i64 noundef %indvars.iv49, i64 noundef 0, i64 noundef %indvars.iv, i64 noundef 0, i64 noundef 2, i64 noundef 0, i128 noundef %11)
  %16 = extractvalue { i64, i64 } %15, 0
  %17 = extractvalue { i64, i64 } %15, 1
  %.sroa.2.0.insert.ext.1 = zext i64 %17 to i128
  %.sroa.2.0.insert.shift.1 = shl nuw i128 %.sroa.2.0.insert.ext.1, 64
  %.sroa.0.0.insert.ext.1 = zext i64 %16 to i128
  %.sroa.0.0.insert.insert.1 = or disjoint i128 %.sroa.2.0.insert.shift.1, %.sroa.0.0.insert.ext.1
  %18 = icmp eq i128 %.sroa.07.0.insert.insert.1, %.sroa.0.0.insert.insert.1
  br i1 %18, label %19, label %.loopexit

19:                                               ; preds = %.preheader.1
  %20 = add nuw nsw i32 %.03437.1, 1
  %exitcond.1.not = icmp eq i32 %20, 51
  br i1 %exitcond.1.not, label %.preheader.2, label %.preheader.1, !llvm.loop !10

.preheader.2:                                     ; preds = %19, %29
  %.03437.2 = phi i32 [ %30, %29 ], [ 1, %19 ]
  %21 = zext nneg i32 %.03437.2 to i128
  %22 = tail call noundef { i64, i64 } @_Z2yonnnn(i64 noundef %indvars.iv49, i64 noundef 0, i64 noundef %indvars.iv, i64 noundef 0, i64 noundef 3, i64 noundef 0, i128 noundef %21)
  %23 = extractvalue { i64, i64 } %22, 0
  %24 = extractvalue { i64, i64 } %22, 1
  %.sroa.28.0.insert.ext.2 = zext i64 %24 to i128
  %.sroa.28.0.insert.shift.2 = shl nuw i128 %.sroa.28.0.insert.ext.2, 64
  %.sroa.07.0.insert.ext.2 = zext i64 %23 to i128
  %.sroa.07.0.insert.insert.2 = or disjoint i128 %.sroa.28.0.insert.shift.2, %.sroa.07.0.insert.ext.2
  %25 = tail call noundef { i64, i64 } @_Z5brutennnn(i64 noundef %indvars.iv49, i64 noundef 0, i64 noundef %indvars.iv, i64 noundef 0, i64 noundef 3, i64 noundef 0, i128 noundef %21)
  %26 = extractvalue { i64, i64 } %25, 0
  %27 = extractvalue { i64, i64 } %25, 1
  %.sroa.2.0.insert.ext.2 = zext i64 %27 to i128
  %.sroa.2.0.insert.shift.2 = shl nuw i128 %.sroa.2.0.insert.ext.2, 64
  %.sroa.0.0.insert.ext.2 = zext i64 %26 to i128
  %.sroa.0.0.insert.insert.2 = or disjoint i128 %.sroa.2.0.insert.shift.2, %.sroa.0.0.insert.ext.2
  %28 = icmp eq i128 %.sroa.07.0.insert.insert.2, %.sroa.0.0.insert.insert.2
  br i1 %28, label %29, label %.loopexit

29:                                               ; preds = %.preheader.2
  %30 = add nuw nsw i32 %.03437.2, 1
  %exitcond.2.not = icmp eq i32 %30, 51
  br i1 %exitcond.2.not, label %.preheader.3, label %.preheader.2, !llvm.loop !10

.preheader.3:                                     ; preds = %29, %39
  %.03437.3 = phi i32 [ %40, %39 ], [ 1, %29 ]
  %31 = zext nneg i32 %.03437.3 to i128
  %32 = tail call noundef { i64, i64 } @_Z2yonnnn(i64 noundef %indvars.iv49, i64 noundef 0, i64 noundef %indvars.iv, i64 noundef 0, i64 noundef 4, i64 noundef 0, i128 noundef %31)
  %33 = extractvalue { i64, i64 } %32, 0
  %34 = extractvalue { i64, i64 } %32, 1
  %.sroa.28.0.insert.ext.3 = zext i64 %34 to i128
  %.sroa.28.0.insert.shift.3 = shl nuw i128 %.sroa.28.0.insert.ext.3, 64
  %.sroa.07.0.insert.ext.3 = zext i64 %33 to i128
  %.sroa.07.0.insert.insert.3 = or disjoint i128 %.sroa.28.0.insert.shift.3, %.sroa.07.0.insert.ext.3
  %35 = tail call noundef { i64, i64 } @_Z5brutennnn(i64 noundef %indvars.iv49, i64 noundef 0, i64 noundef %indvars.iv, i64 noundef 0, i64 noundef 4, i64 noundef 0, i128 noundef %31)
  %36 = extractvalue { i64, i64 } %35, 0
  %37 = extractvalue { i64, i64 } %35, 1
  %.sroa.2.0.insert.ext.3 = zext i64 %37 to i128
  %.sroa.2.0.insert.shift.3 = shl nuw i128 %.sroa.2.0.insert.ext.3, 64
  %.sroa.0.0.insert.ext.3 = zext i64 %36 to i128
  %.sroa.0.0.insert.insert.3 = or disjoint i128 %.sroa.2.0.insert.shift.3, %.sroa.0.0.insert.ext.3
  %38 = icmp eq i128 %.sroa.07.0.insert.insert.3, %.sroa.0.0.insert.insert.3
  br i1 %38, label %39, label %.loopexit

39:                                               ; preds = %.preheader.3
  %40 = add nuw nsw i32 %.03437.3, 1
  %exitcond.3.not = icmp eq i32 %40, 51
  br i1 %exitcond.3.not, label %.preheader.4, label %.preheader.3, !llvm.loop !10

.preheader.4:                                     ; preds = %39, %49
  %.03437.4 = phi i32 [ %50, %49 ], [ 1, %39 ]
  %41 = zext nneg i32 %.03437.4 to i128
  %42 = tail call noundef { i64, i64 } @_Z2yonnnn(i64 noundef %indvars.iv49, i64 noundef 0, i64 noundef %indvars.iv, i64 noundef 0, i64 noundef 5, i64 noundef 0, i128 noundef %41)
  %43 = extractvalue { i64, i64 } %42, 0
  %44 = extractvalue { i64, i64 } %42, 1
  %.sroa.28.0.insert.ext.4 = zext i64 %44 to i128
  %.sroa.28.0.insert.shift.4 = shl nuw i128 %.sroa.28.0.insert.ext.4, 64
  %.sroa.07.0.insert.ext.4 = zext i64 %43 to i128
  %.sroa.07.0.insert.insert.4 = or disjoint i128 %.sroa.28.0.insert.shift.4, %.sroa.07.0.insert.ext.4
  %45 = tail call noundef { i64, i64 } @_Z5brutennnn(i64 noundef %indvars.iv49, i64 noundef 0, i64 noundef %indvars.iv, i64 noundef 0, i64 noundef 5, i64 noundef 0, i128 noundef %41)
  %46 = extractvalue { i64, i64 } %45, 0
  %47 = extractvalue { i64, i64 } %45, 1
  %.sroa.2.0.insert.ext.4 = zext i64 %47 to i128
  %.sroa.2.0.insert.shift.4 = shl nuw i128 %.sroa.2.0.insert.ext.4, 64
  %.sroa.0.0.insert.ext.4 = zext i64 %46 to i128
  %.sroa.0.0.insert.insert.4 = or disjoint i128 %.sroa.2.0.insert.shift.4, %.sroa.0.0.insert.ext.4
  %48 = icmp eq i128 %.sroa.07.0.insert.insert.4, %.sroa.0.0.insert.insert.4
  br i1 %48, label %49, label %.loopexit

49:                                               ; preds = %.preheader.4
  %50 = add nuw nsw i32 %.03437.4, 1
  %exitcond.4.not = icmp eq i32 %50, 51
  br i1 %exitcond.4.not, label %51, label %.preheader.4, !llvm.loop !10

51:                                               ; preds = %49
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond48.not = icmp eq i64 %indvars.iv.next, 6
  br i1 %exitcond48.not, label %8, label %.preheader35, !llvm.loop !11

52:                                               ; preds = %.preheader35, %9
  %.03437 = phi i32 [ 1, %.preheader35 ], [ %10, %9 ]
  %53 = zext nneg i32 %.03437 to i128
  %54 = tail call noundef { i64, i64 } @_Z2yonnnn(i64 noundef %indvars.iv49, i64 noundef 0, i64 noundef %indvars.iv, i64 noundef 0, i64 noundef 1, i64 noundef 0, i128 noundef %53)
  %55 = extractvalue { i64, i64 } %54, 0
  %56 = extractvalue { i64, i64 } %54, 1
  %.sroa.28.0.insert.ext = zext i64 %56 to i128
  %.sroa.28.0.insert.shift = shl nuw i128 %.sroa.28.0.insert.ext, 64
  %.sroa.07.0.insert.ext = zext i64 %55 to i128
  %.sroa.07.0.insert.insert = or disjoint i128 %.sroa.28.0.insert.shift, %.sroa.07.0.insert.ext
  %57 = tail call noundef { i64, i64 } @_Z5brutennnn(i64 noundef %indvars.iv49, i64 noundef 0, i64 noundef %indvars.iv, i64 noundef 0, i64 noundef 1, i64 noundef 0, i128 noundef %53)
  %58 = extractvalue { i64, i64 } %57, 0
  %59 = extractvalue { i64, i64 } %57, 1
  %.sroa.2.0.insert.ext = zext i64 %59 to i128
  %.sroa.2.0.insert.shift = shl nuw i128 %.sroa.2.0.insert.ext, 64
  %.sroa.0.0.insert.ext = zext i64 %58 to i128
  %.sroa.0.0.insert.insert = or disjoint i128 %.sroa.2.0.insert.shift, %.sroa.0.0.insert.ext
  %60 = icmp eq i128 %.sroa.07.0.insert.insert, %.sroa.0.0.insert.insert
  br i1 %60, label %9, label %.loopexit

.loopexit:                                        ; preds = %52, %.preheader.1, %.preheader.2, %.preheader.3, %.preheader.4
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 97, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #5
  unreachable
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #2 align 2

attributes #0 = { noreturn 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 #1 = { 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 #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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { noreturn 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = distinct !{!11, !9}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass