; LLVM IR from HarshCasper/NeoAlgo :: C-Plus-Plus/graphs (Prim_Algorithm)

; 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_ostream" = type { ptr, %"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 }

@G = external dso_local global [5 x [5 x i32]], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [5 x i32], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 20, ptr %3) #6
  %10 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %10, i8 0, i64 20, i1 false)
  store i32 0, ptr %2, align 4, !tbaa !5
  %11 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 0
  store i32 1, ptr %11, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %12 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %13 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.1)
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.2)
  %15 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %16

16:                                               ; preds = %80, %0
  %17 = load i32, ptr %2, align 4, !tbaa !5
  %18 = icmp slt i32 %17, 4
  br i1 %18, label %19, label %101

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 9999999, ptr %6, align 4, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %77, %19
  %21 = load i32, ptr %7, align 4, !tbaa !5
  %22 = icmp slt i32 %21, 5
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  store i32 4, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %80

24:                                               ; preds = %20
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %76

30:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %72, %30
  %32 = load i32, ptr %9, align 4, !tbaa !5
  %33 = icmp slt i32 %32, 5
  br i1 %33, label %35, label %34

34:                                               ; preds = %31
  store i32 7, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %75

35:                                               ; preds = %31
  %36 = load i32, ptr %9, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %71, label %41

41:                                               ; preds = %35
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [5 x [5 x i32]], ptr @G, i64 0, i64 %43
  %45 = load i32, ptr %9, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [5 x i32], ptr %44, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = icmp ne i32 %48, 0
  br i1 %49, label %50, label %71

50:                                               ; preds = %41
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %52 = load i32, ptr %7, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [5 x [5 x i32]], ptr @G, i64 0, i64 %53
  %55 = load i32, ptr %9, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [5 x i32], ptr %54, i64 0, i64 %56
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = icmp sgt i32 %51, %58
  br i1 %59, label %60, label %70

60:                                               ; preds = %50
  %61 = load i32, ptr %7, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [5 x [5 x i32]], ptr @G, i64 0, i64 %62
  %64 = load i32, ptr %9, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [5 x i32], ptr %63, i64 0, i64 %65
  %67 = load i32, ptr %66, align 4, !tbaa !5
  store i32 %67, ptr %6, align 4, !tbaa !5
  %68 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %68, ptr %4, align 4, !tbaa !5
  %69 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %69, ptr %5, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %60, %50
  br label %71

71:                                               ; preds = %70, %41, %35
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %9, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %9, align 4, !tbaa !5
  br label %31, !llvm.loop !9

75:                                               ; preds = %34
  br label %76

76:                                               ; preds = %75, %24
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %7, align 4, !tbaa !5
  br label %20, !llvm.loop !11

80:                                               ; preds = %23
  %81 = load i32, ptr %4, align 4, !tbaa !5
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %81)
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef @.str.3)
  %84 = load i32, ptr %5, align 4, !tbaa !5
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %83, i32 noundef %84)
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef @.str.4)
  %87 = load i32, ptr %4, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [5 x [5 x i32]], ptr @G, i64 0, i64 %88
  %90 = load i32, ptr %5, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [5 x i32], ptr %89, i64 0, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !5
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %86, i32 noundef %93)
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %96 = load i32, ptr %5, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [5 x i32], ptr %3, i64 0, i64 %97
  store i32 1, ptr %98, align 4, !tbaa !5
  %99 = load i32, ptr %2, align 4, !tbaa !5
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %16, !llvm.loop !12

101:                                              ; preds = %16
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %102 = load i32, ptr %1, align 4
  ret i32 %102
}

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #5

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


; 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_ostream" = type { ptr, %"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 }

@G = external dso_local local_unnamed_addr global [5 x [5 x i32]], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [5 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %1) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) %1, i8 0, i64 20, i1 false)
  store i32 1, ptr %1, align 16, !tbaa !5
  %2 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %3 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull @.str.1)
  %4 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str.2)
  %5 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %6 = getelementptr inbounds i8, ptr %1, i64 4
  %7 = getelementptr inbounds i8, ptr %1, i64 8
  %8 = getelementptr inbounds i8, ptr %1, i64 12
  %9 = getelementptr inbounds i8, ptr %1, i64 16
  %.phi.trans.insert = getelementptr inbounds i8, ptr %1, i64 4
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = getelementptr inbounds i8, ptr %1, i64 12
  %12 = getelementptr inbounds i8, ptr %1, i64 16
  %.phi.trans.insert77 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = getelementptr inbounds i8, ptr %1, i64 12
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  %.phi.trans.insert79 = getelementptr inbounds i8, ptr %1, i64 12
  %15 = getelementptr inbounds i8, ptr %1, i64 16
  %.phi.trans.insert81 = getelementptr inbounds i8, ptr %1, i64 16
  br label %.preheader37

.preheader37thread-pre-split:                     ; preds = %.loopexit.4
  %.pr = load i32, ptr %1, align 16, !tbaa !5
  br label %.preheader37

.preheader37:                                     ; preds = %.preheader37thread-pre-split, %0
  %16 = phi i32 [ %.pr, %.preheader37thread-pre-split ], [ 1, %0 ]
  %.03346 = phi i32 [ %113, %.preheader37thread-pre-split ], [ 0, %0 ]
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %.loopexit.thread, label %.preheader.1

.preheader.1:                                     ; preds = %.preheader37
  %17 = load i32, ptr %6, align 4, !tbaa !5
  %.not35.1 = icmp eq i32 %17, 0
  br i1 %.not35.1, label %18, label %.preheader.2

18:                                               ; preds = %.preheader.1
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 4), align 4, !tbaa !5
  %.not36.1 = icmp ne i32 %19, 0
  %20 = icmp slt i32 %19, 9999999
  %or.cond.1 = and i1 %.not36.1, %20
  %spec.select = zext i1 %or.cond.1 to i32
  %spec.select112 = select i1 %or.cond.1, i32 %19, i32 9999999
  br label %.preheader.2

.preheader.2:                                     ; preds = %18, %.preheader.1
  %.227.1 = phi i32 [ 0, %.preheader.1 ], [ %spec.select, %18 ]
  %.2.1 = phi i32 [ 9999999, %.preheader.1 ], [ %spec.select112, %18 ]
  %21 = load i32, ptr %7, align 8, !tbaa !5
  %.not35.2 = icmp eq i32 %21, 0
  br i1 %.not35.2, label %22, label %.preheader.3

22:                                               ; preds = %.preheader.2
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 8), align 8, !tbaa !5
  %.not36.2 = icmp ne i32 %23, 0
  %24 = icmp sgt i32 %.2.1, %23
  %or.cond.2 = and i1 %.not36.2, %24
  %spec.select113 = select i1 %or.cond.2, i32 2, i32 %.227.1
  %spec.select114 = select i1 %or.cond.2, i32 %23, i32 %.2.1
  br label %.preheader.3

.preheader.3:                                     ; preds = %22, %.preheader.2
  %.227.2 = phi i32 [ %.227.1, %.preheader.2 ], [ %spec.select113, %22 ]
  %.2.2 = phi i32 [ %.2.1, %.preheader.2 ], [ %spec.select114, %22 ]
  %25 = load i32, ptr %8, align 4, !tbaa !5
  %.not35.3 = icmp eq i32 %25, 0
  br i1 %.not35.3, label %26, label %.preheader.4

26:                                               ; preds = %.preheader.3
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 12), align 4, !tbaa !5
  %.not36.3 = icmp ne i32 %27, 0
  %28 = icmp sgt i32 %.2.2, %27
  %or.cond.3 = and i1 %.not36.3, %28
  %spec.select115 = select i1 %or.cond.3, i32 3, i32 %.227.2
  %spec.select116 = select i1 %or.cond.3, i32 %27, i32 %.2.2
  br label %.preheader.4

.preheader.4:                                     ; preds = %26, %.preheader.3
  %.227.3 = phi i32 [ %.227.2, %.preheader.3 ], [ %spec.select115, %26 ]
  %.2.3 = phi i32 [ %.2.2, %.preheader.3 ], [ %spec.select116, %26 ]
  %29 = load i32, ptr %9, align 16, !tbaa !5
  %.not35.4 = icmp eq i32 %29, 0
  br i1 %.not35.4, label %30, label %.loopexit

30:                                               ; preds = %.preheader.4
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 16), align 16, !tbaa !5
  %.not36.4 = icmp ne i32 %31, 0
  %32 = icmp sgt i32 %.2.3, %31
  %or.cond.4 = and i1 %.not36.4, %32
  %spec.select117 = select i1 %or.cond.4, i32 4, i32 %.227.3
  %spec.select118 = select i1 %or.cond.4, i32 %31, i32 %.2.3
  br label %.loopexit

.loopexit:                                        ; preds = %30, %.preheader.4
  %.328 = phi i32 [ %.227.3, %.preheader.4 ], [ %spec.select117, %30 ]
  %.3 = phi i32 [ %.2.3, %.preheader.4 ], [ %spec.select118, %30 ]
  %.not.1 = icmp eq i32 %17, 0
  br i1 %.not.1, label %.loopexit..loopexit.1_crit_edge, label %.preheader.preheader.1

.loopexit.thread:                                 ; preds = %.preheader37
  %.pre = load i32, ptr %.phi.trans.insert, align 4, !tbaa !5
  %.not.185 = icmp eq i32 %.pre, 0
  br i1 %.not.185, label %.loopexit..loopexit.1_crit_edge, label %.preheader.preheader.1.thread

.loopexit..loopexit.1_crit_edge:                  ; preds = %.loopexit.thread, %.loopexit
  %.389 = phi i32 [ 9999999, %.loopexit.thread ], [ %.3, %.loopexit ]
  %.32887 = phi i32 [ 0, %.loopexit.thread ], [ %.328, %.loopexit ]
  %.pre78 = load i32, ptr %.phi.trans.insert77, align 8, !tbaa !5
  br label %.loopexit.1

.preheader.preheader.1:                           ; preds = %.loopexit
  br i1 %.not, label %.preheader.preheader.1.thread, label %.preheader.2.1

.preheader.preheader.1.thread:                    ; preds = %.loopexit.thread, %.preheader.preheader.1
  %.3288699 = phi i32 [ %.328, %.preheader.preheader.1 ], [ 0, %.loopexit.thread ]
  %.38898 = phi i32 [ %.3, %.preheader.preheader.1 ], [ 9999999, %.loopexit.thread ]
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 20), align 4, !tbaa !5
  %.not36.151 = icmp ne i32 %33, 0
  %34 = icmp sgt i32 %.38898, %33
  %or.cond.152 = and i1 %.not36.151, %34
  br i1 %or.cond.152, label %35, label %.preheader.2.1

35:                                               ; preds = %.preheader.preheader.1.thread
  br label %.preheader.2.1

.preheader.2.1:                                   ; preds = %.preheader.preheader.1, %.preheader.preheader.1.thread, %35
  %.231.153 = phi i32 [ 0, %.preheader.preheader.1 ], [ 1, %35 ], [ 0, %.preheader.preheader.1.thread ]
  %.227.154 = phi i32 [ %.328, %.preheader.preheader.1 ], [ 0, %35 ], [ %.3288699, %.preheader.preheader.1.thread ]
  %.2.155 = phi i32 [ %.3, %.preheader.preheader.1 ], [ %33, %35 ], [ %.38898, %.preheader.preheader.1.thread ]
  %36 = load i32, ptr %10, align 8, !tbaa !5
  %.not35.2.1 = icmp eq i32 %36, 0
  br i1 %.not35.2.1, label %37, label %.preheader.3.1

37:                                               ; preds = %.preheader.2.1
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 28), align 4, !tbaa !5
  %.not36.2.1 = icmp ne i32 %38, 0
  %39 = icmp sgt i32 %.2.155, %38
  %or.cond.2.1 = and i1 %.not36.2.1, %39
  br i1 %or.cond.2.1, label %40, label %.preheader.3.1

40:                                               ; preds = %37
  br label %.preheader.3.1

.preheader.3.1:                                   ; preds = %40, %37, %.preheader.2.1
  %.231.2.1 = phi i32 [ %.231.153, %.preheader.2.1 ], [ 1, %40 ], [ %.231.153, %37 ]
  %.227.2.1 = phi i32 [ %.227.154, %.preheader.2.1 ], [ 2, %40 ], [ %.227.154, %37 ]
  %.2.2.1 = phi i32 [ %.2.155, %.preheader.2.1 ], [ %38, %40 ], [ %.2.155, %37 ]
  %41 = load i32, ptr %11, align 4, !tbaa !5
  %.not35.3.1 = icmp eq i32 %41, 0
  br i1 %.not35.3.1, label %42, label %.preheader.4.1

42:                                               ; preds = %.preheader.3.1
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 32), align 16, !tbaa !5
  %.not36.3.1 = icmp ne i32 %43, 0
  %44 = icmp sgt i32 %.2.2.1, %43
  %or.cond.3.1 = select i1 %.not36.3.1, i1 %44, i1 false
  br i1 %or.cond.3.1, label %45, label %.preheader.4.1

45:                                               ; preds = %42
  br label %.preheader.4.1

.preheader.4.1:                                   ; preds = %45, %42, %.preheader.3.1
  %.231.3.1 = phi i32 [ %.231.2.1, %.preheader.3.1 ], [ 1, %45 ], [ %.231.2.1, %42 ]
  %.227.3.1 = phi i32 [ %.227.2.1, %.preheader.3.1 ], [ 3, %45 ], [ %.227.2.1, %42 ]
  %.2.3.1 = phi i32 [ %.2.2.1, %.preheader.3.1 ], [ %43, %45 ], [ %.2.2.1, %42 ]
  %46 = load i32, ptr %12, align 16, !tbaa !5
  %.not35.4.1 = icmp eq i32 %46, 0
  br i1 %.not35.4.1, label %47, label %.loopexit.1

47:                                               ; preds = %.preheader.4.1
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 36), align 4, !tbaa !5
  %.not36.4.1 = icmp ne i32 %48, 0
  %49 = icmp sgt i32 %.2.3.1, %48
  %or.cond.4.1 = select i1 %.not36.4.1, i1 %49, i1 false
  br i1 %or.cond.4.1, label %50, label %.loopexit.1

50:                                               ; preds = %47
  br label %.loopexit.1

.loopexit.1:                                      ; preds = %.preheader.4.1, %47, %50, %.loopexit..loopexit.1_crit_edge
  %.not.190 = phi i1 [ true, %.loopexit..loopexit.1_crit_edge ], [ false, %50 ], [ false, %47 ], [ false, %.preheader.4.1 ]
  %51 = phi i32 [ %.pre78, %.loopexit..loopexit.1_crit_edge ], [ %36, %50 ], [ %36, %47 ], [ %36, %.preheader.4.1 ]
  %.332.1 = phi i32 [ 0, %.loopexit..loopexit.1_crit_edge ], [ 1, %50 ], [ %.231.3.1, %47 ], [ %.231.3.1, %.preheader.4.1 ]
  %.328.1 = phi i32 [ %.32887, %.loopexit..loopexit.1_crit_edge ], [ 4, %50 ], [ %.227.3.1, %47 ], [ %.227.3.1, %.preheader.4.1 ]
  %.3.1 = phi i32 [ %.389, %.loopexit..loopexit.1_crit_edge ], [ %48, %50 ], [ %.2.3.1, %47 ], [ %.2.3.1, %.preheader.4.1 ]
  %.not.2 = icmp eq i32 %51, 0
  br i1 %.not.2, label %.loopexit.1..loopexit.2_crit_edge, label %.preheader.preheader.2

.loopexit.1..loopexit.2_crit_edge:                ; preds = %.loopexit.1
  %.pre80 = load i32, ptr %.phi.trans.insert79, align 4, !tbaa !5
  br label %.loopexit.2

.preheader.preheader.2:                           ; preds = %.loopexit.1
  br i1 %.not, label %52, label %.preheader.1.2

52:                                               ; preds = %.preheader.preheader.2
  %53 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 40), align 8, !tbaa !5
  %.not36.258 = icmp ne i32 %53, 0
  %54 = icmp sgt i32 %.3.1, %53
  %or.cond.259 = select i1 %.not36.258, i1 %54, i1 false
  br i1 %or.cond.259, label %55, label %.preheader.1.2

55:                                               ; preds = %52
  br label %.preheader.1.2

.preheader.1.2:                                   ; preds = %55, %52, %.preheader.preheader.2
  %.231.260 = phi i32 [ %.332.1, %.preheader.preheader.2 ], [ 2, %55 ], [ %.332.1, %52 ]
  %.227.261 = phi i32 [ %.328.1, %.preheader.preheader.2 ], [ 0, %55 ], [ %.328.1, %52 ]
  %.2.262 = phi i32 [ %.3.1, %.preheader.preheader.2 ], [ %53, %55 ], [ %.3.1, %52 ]
  br i1 %.not.190, label %56, label %.preheader.3.2

56:                                               ; preds = %.preheader.1.2
  %57 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 44), align 4, !tbaa !5
  %.not36.1.2 = icmp ne i32 %57, 0
  %58 = icmp sgt i32 %.2.262, %57
  %or.cond.1.2 = select i1 %.not36.1.2, i1 %58, i1 false
  br i1 %or.cond.1.2, label %59, label %.preheader.3.2

59:                                               ; preds = %56
  br label %.preheader.3.2

.preheader.3.2:                                   ; preds = %.preheader.1.2, %56, %59
  %.231.1.2 = phi i32 [ %.231.260, %.preheader.1.2 ], [ 2, %59 ], [ %.231.260, %56 ]
  %.227.1.2 = phi i32 [ %.227.261, %.preheader.1.2 ], [ 1, %59 ], [ %.227.261, %56 ]
  %.2.1.2 = phi i32 [ %.2.262, %.preheader.1.2 ], [ %57, %59 ], [ %.2.262, %56 ]
  %60 = load i32, ptr %13, align 4, !tbaa !5
  %.not35.3.2 = icmp eq i32 %60, 0
  br i1 %.not35.3.2, label %61, label %.preheader.4.2

61:                                               ; preds = %.preheader.3.2
  %62 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 52), align 4, !tbaa !5
  %.not36.3.2 = icmp ne i32 %62, 0
  %63 = icmp sgt i32 %.2.1.2, %62
  %or.cond.3.2 = select i1 %.not36.3.2, i1 %63, i1 false
  br i1 %or.cond.3.2, label %64, label %.preheader.4.2

64:                                               ; preds = %61
  br label %.preheader.4.2

.preheader.4.2:                                   ; preds = %64, %61, %.preheader.3.2
  %.231.3.2 = phi i32 [ %.231.1.2, %.preheader.3.2 ], [ 2, %64 ], [ %.231.1.2, %61 ]
  %.227.3.2 = phi i32 [ %.227.1.2, %.preheader.3.2 ], [ 3, %64 ], [ %.227.1.2, %61 ]
  %.2.3.2 = phi i32 [ %.2.1.2, %.preheader.3.2 ], [ %62, %64 ], [ %.2.1.2, %61 ]
  %65 = load i32, ptr %14, align 16, !tbaa !5
  %.not35.4.2 = icmp eq i32 %65, 0
  br i1 %.not35.4.2, label %66, label %.loopexit.2

66:                                               ; preds = %.preheader.4.2
  %67 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 56), align 8, !tbaa !5
  %.not36.4.2 = icmp ne i32 %67, 0
  %68 = icmp sgt i32 %.2.3.2, %67
  %or.cond.4.2 = select i1 %.not36.4.2, i1 %68, i1 false
  br i1 %or.cond.4.2, label %69, label %.loopexit.2

69:                                               ; preds = %66
  br label %.loopexit.2

.loopexit.2:                                      ; preds = %.preheader.4.2, %66, %69, %.loopexit.1..loopexit.2_crit_edge
  %70 = phi i32 [ %.pre80, %.loopexit.1..loopexit.2_crit_edge ], [ %60, %69 ], [ %60, %66 ], [ %60, %.preheader.4.2 ]
  %.332.2 = phi i32 [ %.332.1, %.loopexit.1..loopexit.2_crit_edge ], [ 2, %69 ], [ %.231.3.2, %66 ], [ %.231.3.2, %.preheader.4.2 ]
  %.328.2 = phi i32 [ %.328.1, %.loopexit.1..loopexit.2_crit_edge ], [ 4, %69 ], [ %.227.3.2, %66 ], [ %.227.3.2, %.preheader.4.2 ]
  %.3.2 = phi i32 [ %.3.1, %.loopexit.1..loopexit.2_crit_edge ], [ %67, %69 ], [ %.2.3.2, %66 ], [ %.2.3.2, %.preheader.4.2 ]
  %.not.3 = icmp eq i32 %70, 0
  br i1 %.not.3, label %.loopexit.3, label %.preheader.preheader.3

.preheader.preheader.3:                           ; preds = %.loopexit.2
  br i1 %.not, label %71, label %.preheader.1.3

71:                                               ; preds = %.preheader.preheader.3
  %72 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 60), align 4, !tbaa !5
  %.not36.365 = icmp ne i32 %72, 0
  %73 = icmp sgt i32 %.3.2, %72
  %or.cond.366 = select i1 %.not36.365, i1 %73, i1 false
  br i1 %or.cond.366, label %74, label %.preheader.1.3

74:                                               ; preds = %71
  br label %.preheader.1.3

.preheader.1.3:                                   ; preds = %74, %71, %.preheader.preheader.3
  %.231.367 = phi i32 [ %.332.2, %.preheader.preheader.3 ], [ 3, %74 ], [ %.332.2, %71 ]
  %.227.368 = phi i32 [ %.328.2, %.preheader.preheader.3 ], [ 0, %74 ], [ %.328.2, %71 ]
  %.2.369 = phi i32 [ %.3.2, %.preheader.preheader.3 ], [ %72, %74 ], [ %.3.2, %71 ]
  br i1 %.not.190, label %75, label %.preheader.2.3

75:                                               ; preds = %.preheader.1.3
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 64), align 16, !tbaa !5
  %.not36.1.3 = icmp ne i32 %76, 0
  %77 = icmp sgt i32 %.2.369, %76
  %or.cond.1.3 = select i1 %.not36.1.3, i1 %77, i1 false
  br i1 %or.cond.1.3, label %78, label %.preheader.2.3

78:                                               ; preds = %75
  br label %.preheader.2.3

.preheader.2.3:                                   ; preds = %78, %75, %.preheader.1.3
  %.231.1.3 = phi i32 [ %.231.367, %.preheader.1.3 ], [ 3, %78 ], [ %.231.367, %75 ]
  %.227.1.3 = phi i32 [ %.227.368, %.preheader.1.3 ], [ 1, %78 ], [ %.227.368, %75 ]
  %.2.1.3 = phi i32 [ %.2.369, %.preheader.1.3 ], [ %76, %78 ], [ %.2.369, %75 ]
  br i1 %.not.2, label %79, label %.preheader.4.3

79:                                               ; preds = %.preheader.2.3
  %80 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 68), align 4, !tbaa !5
  %.not36.2.3 = icmp ne i32 %80, 0
  %81 = icmp sgt i32 %.2.1.3, %80
  %or.cond.2.3 = select i1 %.not36.2.3, i1 %81, i1 false
  br i1 %or.cond.2.3, label %82, label %.preheader.4.3

82:                                               ; preds = %79
  br label %.preheader.4.3

.preheader.4.3:                                   ; preds = %.preheader.2.3, %79, %82
  %.231.2.3 = phi i32 [ %.231.1.3, %.preheader.2.3 ], [ 3, %82 ], [ %.231.1.3, %79 ]
  %.227.2.3 = phi i32 [ %.227.1.3, %.preheader.2.3 ], [ 2, %82 ], [ %.227.1.3, %79 ]
  %.2.2.3 = phi i32 [ %.2.1.3, %.preheader.2.3 ], [ %80, %82 ], [ %.2.1.3, %79 ]
  %83 = load i32, ptr %15, align 16, !tbaa !5
  %.not35.4.3 = icmp eq i32 %83, 0
  br i1 %.not35.4.3, label %84, label %.preheader.preheader.4

84:                                               ; preds = %.preheader.4.3
  %85 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 76), align 4, !tbaa !5
  %.not36.4.3 = icmp ne i32 %85, 0
  %86 = icmp sgt i32 %.2.2.3, %85
  %or.cond.4.3 = select i1 %.not36.4.3, i1 %86, i1 false
  %spec.select119 = select i1 %or.cond.4.3, i32 3, i32 %.231.2.3
  %spec.select120 = select i1 %or.cond.4.3, i32 4, i32 %.227.2.3
  br label %.loopexit.4

.loopexit.3:                                      ; preds = %.loopexit.2
  %.pre82 = load i32, ptr %.phi.trans.insert81, align 16, !tbaa !5
  %.not.4 = icmp eq i32 %.pre82, 0
  br i1 %.not.4, label %.loopexit.4, label %.preheader.preheader.4

.preheader.preheader.4:                           ; preds = %.preheader.4.3, %.loopexit.3
  %.3.3111 = phi i32 [ %.3.2, %.loopexit.3 ], [ %.2.2.3, %.preheader.4.3 ]
  %.328.3110 = phi i32 [ %.328.2, %.loopexit.3 ], [ %.227.2.3, %.preheader.4.3 ]
  %.332.3109 = phi i32 [ %.332.2, %.loopexit.3 ], [ %.231.2.3, %.preheader.4.3 ]
  br i1 %.not, label %87, label %.preheader.1.4

87:                                               ; preds = %.preheader.preheader.4
  %88 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 80), align 16, !tbaa !5
  %.not36.472 = icmp ne i32 %88, 0
  %89 = icmp sgt i32 %.3.3111, %88
  %or.cond.473 = select i1 %.not36.472, i1 %89, i1 false
  br i1 %or.cond.473, label %90, label %.preheader.1.4

90:                                               ; preds = %87
  br label %.preheader.1.4

.preheader.1.4:                                   ; preds = %90, %87, %.preheader.preheader.4
  %.231.474 = phi i32 [ %.332.3109, %.preheader.preheader.4 ], [ 4, %90 ], [ %.332.3109, %87 ]
  %.227.475 = phi i32 [ %.328.3110, %.preheader.preheader.4 ], [ 0, %90 ], [ %.328.3110, %87 ]
  %.2.476 = phi i32 [ %.3.3111, %.preheader.preheader.4 ], [ %88, %90 ], [ %.3.3111, %87 ]
  br i1 %.not.190, label %91, label %.preheader.2.4

91:                                               ; preds = %.preheader.1.4
  %92 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 84), align 4, !tbaa !5
  %.not36.1.4 = icmp ne i32 %92, 0
  %93 = icmp sgt i32 %.2.476, %92
  %or.cond.1.4 = select i1 %.not36.1.4, i1 %93, i1 false
  br i1 %or.cond.1.4, label %94, label %.preheader.2.4

94:                                               ; preds = %91
  br label %.preheader.2.4

.preheader.2.4:                                   ; preds = %94, %91, %.preheader.1.4
  %.231.1.4 = phi i32 [ %.231.474, %.preheader.1.4 ], [ 4, %94 ], [ %.231.474, %91 ]
  %.227.1.4 = phi i32 [ %.227.475, %.preheader.1.4 ], [ 1, %94 ], [ %.227.475, %91 ]
  %.2.1.4 = phi i32 [ %.2.476, %.preheader.1.4 ], [ %92, %94 ], [ %.2.476, %91 ]
  br i1 %.not.2, label %95, label %.preheader.3.4

95:                                               ; preds = %.preheader.2.4
  %96 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 88), align 8, !tbaa !5
  %.not36.2.4 = icmp ne i32 %96, 0
  %97 = icmp sgt i32 %.2.1.4, %96
  %or.cond.2.4 = select i1 %.not36.2.4, i1 %97, i1 false
  br i1 %or.cond.2.4, label %98, label %.preheader.3.4

98:                                               ; preds = %95
  br label %.preheader.3.4

.preheader.3.4:                                   ; preds = %98, %95, %.preheader.2.4
  %.231.2.4 = phi i32 [ %.231.1.4, %.preheader.2.4 ], [ 4, %98 ], [ %.231.1.4, %95 ]
  %.227.2.4 = phi i32 [ %.227.1.4, %.preheader.2.4 ], [ 2, %98 ], [ %.227.1.4, %95 ]
  %.2.2.4 = phi i32 [ %.2.1.4, %.preheader.2.4 ], [ %96, %98 ], [ %.2.1.4, %95 ]
  br i1 %.not.3, label %99, label %.loopexit.4

99:                                               ; preds = %.preheader.3.4
  %100 = load i32, ptr getelementptr inbounds (i8, ptr @G, i64 92), align 4, !tbaa !5
  %.not36.3.4 = icmp ne i32 %100, 0
  %101 = icmp sgt i32 %.2.2.4, %100
  %or.cond.3.4 = select i1 %.not36.3.4, i1 %101, i1 false
  %spec.select121 = select i1 %or.cond.3.4, i32 4, i32 %.231.2.4
  %spec.select122 = select i1 %or.cond.3.4, i32 3, i32 %.227.2.4
  br label %.loopexit.4

.loopexit.4:                                      ; preds = %99, %84, %.preheader.3.4, %.loopexit.3
  %.332.4 = phi i32 [ %.332.2, %.loopexit.3 ], [ %.231.2.4, %.preheader.3.4 ], [ %spec.select119, %84 ], [ %spec.select121, %99 ]
  %.328.4 = phi i32 [ %.328.2, %.loopexit.3 ], [ %.227.2.4, %.preheader.3.4 ], [ %spec.select120, %84 ], [ %spec.select122, %99 ]
  %102 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.332.4)
  %103 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef nonnull @.str.3)
  %104 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %103, i32 noundef %.328.4)
  %105 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef nonnull @.str.4)
  %106 = zext nneg i32 %.332.4 to i64
  %107 = zext nneg i32 %.328.4 to i64
  %108 = getelementptr inbounds [5 x [5 x i32]], ptr @G, i64 0, i64 %106, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %105, i32 noundef %109)
  %111 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %112 = getelementptr inbounds [5 x i32], ptr %1, i64 0, i64 %107
  store i32 1, ptr %112, align 4, !tbaa !5
  %113 = add nuw nsw i32 %.03346, 1
  %exitcond.not = icmp eq i32 %113, 4
  br i1 %exitcond.not, label %114, label %.preheader37thread-pre-split, !llvm.loop !9

114:                                              ; preds = %.loopexit.4
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %1) #6
  ret i32 0
}

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #5

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass