; LLVM IR from Izaron/ACM-ICPC :: Google Code Jam/2017/Round 1B/stable_neighbors.ll (Z5vosstiiii)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_Z3lalB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z2dpiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5vosstiiii(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !5
  %9 = load i32, ptr %6, align 4, !tbaa !5
  %10 = load i32, ptr %7, align 4, !tbaa !5
  %11 = add nsw i32 %9, %10
  %12 = load i32, ptr %8, align 4, !tbaa !5
  %13 = add nsw i32 %11, %12
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %16

15:                                               ; preds = %4
  br label %73

16:                                               ; preds = %4
  %17 = load i32, ptr %5, align 4, !tbaa !5
  %18 = icmp ne i32 %17, 0
  br i1 %18, label %19, label %35

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

22:                                               ; preds = %19
  %23 = load i32, ptr %6, align 4, !tbaa !5
  %24 = sub nsw i32 %23, 1
  %25 = load i32, ptr %7, align 4, !tbaa !5
  %26 = load i32, ptr %8, align 4, !tbaa !5
  %27 = call noundef zeroext i1 @_Z2dpiiii(i32 noundef 0, i32 noundef %24, i32 noundef %25, i32 noundef %26)
  br i1 %27, label %28, label %34

28:                                               ; preds = %22
  %29 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3lalB5cxx11, ptr noundef @.str)
  %30 = load i32, ptr %6, align 4, !tbaa !5
  %31 = sub nsw i32 %30, 1
  %32 = load i32, ptr %7, align 4, !tbaa !5
  %33 = load i32, ptr %8, align 4, !tbaa !5
  call void @_Z5vosstiiii(i32 noundef 0, i32 noundef %31, i32 noundef %32, i32 noundef %33)
  br label %73

34:                                               ; preds = %22
  br label %35

35:                                               ; preds = %34, %19, %16
  %36 = load i32, ptr %5, align 4, !tbaa !5
  %37 = icmp ne i32 %36, 1
  br i1 %37, label %38, label %54

38:                                               ; preds = %35
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %41, label %54

41:                                               ; preds = %38
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %43 = load i32, ptr %7, align 4, !tbaa !5
  %44 = sub nsw i32 %43, 1
  %45 = load i32, ptr %8, align 4, !tbaa !5
  %46 = call noundef zeroext i1 @_Z2dpiiii(i32 noundef 1, i32 noundef %42, i32 noundef %44, i32 noundef %45)
  br i1 %46, label %47, label %53

47:                                               ; preds = %41
  %48 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3lalB5cxx11, ptr noundef @.str.2)
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = sub nsw i32 %50, 1
  %52 = load i32, ptr %8, align 4, !tbaa !5
  call void @_Z5vosstiiii(i32 noundef 1, i32 noundef %49, i32 noundef %51, i32 noundef %52)
  br label %73

53:                                               ; preds = %41
  br label %54

54:                                               ; preds = %53, %38, %35
  %55 = load i32, ptr %5, align 4, !tbaa !5
  %56 = icmp ne i32 %55, 2
  br i1 %56, label %57, label %73

57:                                               ; preds = %54
  %58 = load i32, ptr %8, align 4, !tbaa !5
  %59 = icmp sgt i32 %58, 0
  br i1 %59, label %60, label %73

60:                                               ; preds = %57
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = load i32, ptr %7, align 4, !tbaa !5
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = sub nsw i32 %63, 1
  %65 = call noundef zeroext i1 @_Z2dpiiii(i32 noundef 2, i32 noundef %61, i32 noundef %62, i32 noundef %64)
  br i1 %65, label %66, label %72

66:                                               ; preds = %60
  %67 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3lalB5cxx11, ptr noundef @.str.3)
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = load i32, ptr %7, align 4, !tbaa !5
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = sub nsw i32 %70, 1
  call void @_Z5vosstiiii(i32 noundef 2, i32 noundef %68, i32 noundef %69, i32 noundef %71)
  br label %73

72:                                               ; preds = %60
  br label %73

73:                                               ; preds = %72, %66, %57, %54, %47, %28, %15
  ret void
}

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #0 align 2

attributes #0 = { 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" }

!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"}


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_Z3lalB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z2dpiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5vosstiiii(i32 noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = add nsw i32 %2, %1
  %6 = sub i32 0, %3
  %7 = icmp eq i32 %5, %6
  br i1 %7, label %tailrecurse.outer37._crit_edge, label %.lr.ph.lr.ph

.lr.ph.lr.ph:                                     ; preds = %4, %.split102.us
  %8 = phi i32 [ %84, %.split102.us ], [ %5, %4 ]
  %.tr36.ph157 = phi i32 [ %.us-phi131, %.split102.us ], [ %3, %4 ]
  %.tr35.ph156 = phi i32 [ %.tr35.ph3992.us288, %.split102.us ], [ %2, %4 ]
  %.tr34.ph155 = phi i32 [ %10, %.split102.us ], [ %1, %4 ]
  %.tr.ph154 = phi i32 [ 0, %.split102.us ], [ %0, %4 ]
  %9 = icmp sgt i32 %.tr34.ph155, 0
  %10 = add i32 %.tr34.ph155, -1
  br i1 %9, label %.lr.ph.us.peel, label %.lr.ph.peel

.lr.ph.us.peel:                                   ; preds = %.lr.ph.lr.ph
  %11 = icmp sgt i32 %.tr35.ph156, 0
  %12 = add i32 %.tr35.ph156, -1
  %cond.peel.peel = icmp eq i32 %.tr.ph154, 0
  br i1 %11, label %.lr.ph.split.us100.split.preheader.peel, label %.lr.ph.split.us100.split.us

.lr.ph.split.us100.split.preheader.peel:          ; preds = %.lr.ph.us.peel
  br i1 %cond.peel.peel, label %16, label %13

13:                                               ; preds = %.lr.ph.split.us100.split.preheader.peel
  %14 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 0, i32 noundef %10, i32 noundef %.tr35.ph156, i32 noundef %.tr36.ph157)
  br i1 %14, label %.split102.us, label %15

15:                                               ; preds = %13
  %.not159.peel.peel = icmp eq i32 %.tr.ph154, 1
  br i1 %.not159.peel.peel, label %18, label %16

16:                                               ; preds = %15, %.lr.ph.split.us100.split.preheader.peel
  %17 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 1, i32 noundef %.tr34.ph155, i32 noundef %12, i32 noundef %.tr36.ph157)
  br i1 %17, label %.split.us98.peel, label %18

18:                                               ; preds = %16, %15
  %19 = icmp ne i32 %.tr.ph154, 2
  %20 = icmp sgt i32 %.tr36.ph157, 0
  %or.cond5.us96.peel.peel = and i1 %19, %20
  br i1 %or.cond5.us96.peel.peel, label %21, label %tailrecurse.outer37._crit_edge

21:                                               ; preds = %18
  %22 = add nsw i32 %.tr36.ph157, -1
  %23 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 2, i32 noundef %.tr34.ph155, i32 noundef %.tr35.ph156, i32 noundef %22)
  br i1 %23, label %tailrecurse.us97.peel.peel, label %tailrecurse.outer37._crit_edge

tailrecurse.us97.peel.peel:                       ; preds = %21
  %24 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3lalB5cxx11, ptr noundef nonnull @.str.3)
  %25 = sub nsw i32 1, %.tr36.ph157
  %26 = icmp eq i32 %8, %25
  br i1 %26, label %tailrecurse.outer37._crit_edge, label %.lr.ph.split.us100.split.peel

.lr.ph.split.us100.split.peel:                    ; preds = %tailrecurse.us97.peel.peel
  %27 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 0, i32 noundef %10, i32 noundef %.tr35.ph156, i32 noundef %22)
  br i1 %27, label %.split102.us, label %28

28:                                               ; preds = %.lr.ph.split.us100.split.peel
  %29 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 1, i32 noundef %.tr34.ph155, i32 noundef %12, i32 noundef %22)
  br i1 %29, label %.split.us98.peel, label %tailrecurse.outer37._crit_edge

.split.us98.peel:                                 ; preds = %28, %16
  %.tr3646.us94.lcssa176.peel = phi i32 [ %.tr36.ph157, %16 ], [ %22, %28 ]
  %30 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3lalB5cxx11, ptr noundef nonnull @.str.2)
  %31 = add nsw i32 %12, %.tr34.ph155
  %32 = sub i32 0, %.tr3646.us94.lcssa176.peel
  %33 = icmp eq i32 %31, %32
  br i1 %33, label %tailrecurse.outer37._crit_edge, label %.lr.ph.us

.lr.ph.peel:                                      ; preds = %.lr.ph.lr.ph
  %34 = icmp sgt i32 %.tr35.ph156, 0
  %35 = add i32 %.tr35.ph156, -1
  br i1 %34, label %.lr.ph.split.us.split.preheader.peel, label %.lr.ph.split.us.split.us

.lr.ph.split.us.split.preheader.peel:             ; preds = %.lr.ph.peel
  %.not.peel.peel = icmp eq i32 %.tr.ph154, 1
  br i1 %.not.peel.peel, label %38, label %36

36:                                               ; preds = %.lr.ph.split.us.split.preheader.peel
  %37 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 1, i32 noundef %.tr34.ph155, i32 noundef %35, i32 noundef %.tr36.ph157)
  br i1 %37, label %.split.us.peel, label %38

38:                                               ; preds = %36, %.lr.ph.split.us.split.preheader.peel
  %39 = icmp ne i32 %.tr.ph154, 2
  %40 = icmp sgt i32 %.tr36.ph157, 0
  %or.cond5.us.peel.peel = and i1 %39, %40
  br i1 %or.cond5.us.peel.peel, label %41, label %tailrecurse.outer37._crit_edge

41:                                               ; preds = %38
  %42 = add nsw i32 %.tr36.ph157, -1
  %43 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 2, i32 noundef %.tr34.ph155, i32 noundef %.tr35.ph156, i32 noundef %42)
  br i1 %43, label %tailrecurse.us.peel.peel, label %tailrecurse.outer37._crit_edge

tailrecurse.us.peel.peel:                         ; preds = %41
  %44 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3lalB5cxx11, ptr noundef nonnull @.str.3)
  %45 = sub nsw i32 1, %.tr36.ph157
  %46 = icmp eq i32 %8, %45
  br i1 %46, label %tailrecurse.outer37._crit_edge, label %.lr.ph.split.us.split.peel

.lr.ph.split.us.split.peel:                       ; preds = %tailrecurse.us.peel.peel
  %47 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 1, i32 noundef %.tr34.ph155, i32 noundef %35, i32 noundef %42)
  br i1 %47, label %.split.us.peel, label %tailrecurse.outer37._crit_edge

.split.us.peel:                                   ; preds = %.lr.ph.split.us.split.peel, %36
  %.tr3646.us.lcssa.peel = phi i32 [ %.tr36.ph157, %36 ], [ %42, %.lr.ph.split.us.split.peel ]
  %48 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3lalB5cxx11, ptr noundef nonnull @.str.2)
  %49 = add nsw i32 %35, %.tr34.ph155
  %50 = sub i32 0, %.tr3646.us.lcssa.peel
  %51 = icmp eq i32 %49, %50
  br i1 %51, label %tailrecurse.outer37._crit_edge, label %.lr.ph

.lr.ph.us:                                        ; preds = %.split.us98.peel, %.split.us98
  %52 = phi i32 [ %68, %.split.us98 ], [ %31, %.split.us98.peel ]
  %.tr36.ph4093.us = phi i32 [ %59, %.split.us98 ], [ %.tr3646.us94.lcssa176.peel, %.split.us98.peel ]
  %.tr35.ph3992.us = phi i32 [ %54, %.split.us98 ], [ %12, %.split.us98.peel ]
  %53 = icmp sgt i32 %.tr35.ph3992.us, 0
  %54 = add i32 %.tr35.ph3992.us, -1
  br i1 %53, label %.lr.ph.split.us100.split.preheader, label %.lr.ph.split.us100.split.us

.lr.ph.split.us100.split.preheader:               ; preds = %.lr.ph.us
  %55 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 0, i32 noundef %10, i32 noundef %.tr35.ph3992.us, i32 noundef %.tr36.ph4093.us)
  br i1 %55, label %.split102.us, label %56

56:                                               ; preds = %.lr.ph.split.us100.split.preheader
  %57 = icmp sgt i32 %.tr36.ph4093.us, 0
  br i1 %57, label %58, label %tailrecurse.outer37._crit_edge

58:                                               ; preds = %56
  %59 = add nsw i32 %.tr36.ph4093.us, -1
  %60 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 2, i32 noundef %.tr34.ph155, i32 noundef %.tr35.ph3992.us, i32 noundef %59)
  br i1 %60, label %tailrecurse.us97.peel, label %tailrecurse.outer37._crit_edge

tailrecurse.us97.peel:                            ; preds = %58
  %61 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3lalB5cxx11, ptr noundef nonnull @.str.3)
  %62 = sub nsw i32 1, %.tr36.ph4093.us
  %63 = icmp eq i32 %52, %62
  br i1 %63, label %tailrecurse.outer37._crit_edge, label %.lr.ph.split.us100.split

.lr.ph.split.us100.split:                         ; preds = %tailrecurse.us97.peel
  %64 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 0, i32 noundef %10, i32 noundef %.tr35.ph3992.us, i32 noundef %59)
  br i1 %64, label %.split102.us, label %65

65:                                               ; preds = %.lr.ph.split.us100.split
  %66 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 1, i32 noundef %.tr34.ph155, i32 noundef %54, i32 noundef %59)
  br i1 %66, label %.split.us98, label %tailrecurse.outer37._crit_edge

.split.us98:                                      ; preds = %65
  %67 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3lalB5cxx11, ptr noundef nonnull @.str.2)
  %68 = add nsw i32 %54, %.tr34.ph155
  %69 = sub i32 0, %59
  %70 = icmp eq i32 %68, %69
  br i1 %70, label %tailrecurse.outer37._crit_edge, label %.lr.ph.us, !llvm.loop !5

.lr.ph.split.us100.split.us:                      ; preds = %.lr.ph.us, %.lr.ph.us.peel
  %.lcssa = phi i32 [ %8, %.lr.ph.us.peel ], [ %52, %.lr.ph.us ]
  %.tr36.ph4093.us.lcssa = phi i32 [ %.tr36.ph157, %.lr.ph.us.peel ], [ %.tr36.ph4093.us, %.lr.ph.us ]
  %.tr35.ph3992.us.lcssa = phi i32 [ %.tr35.ph156, %.lr.ph.us.peel ], [ %.tr35.ph3992.us, %.lr.ph.us ]
  %.tr.ph3891.us.lcssa = phi i32 [ %.tr.ph154, %.lr.ph.us.peel ], [ 1, %.lr.ph.us ]
  %cond.peel.lcssa = phi i1 [ %cond.peel.peel, %.lr.ph.us.peel ], [ false, %.lr.ph.us ]
  br i1 %cond.peel.lcssa, label %73, label %71

71:                                               ; preds = %.lr.ph.split.us100.split.us
  %72 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 0, i32 noundef %10, i32 noundef %.tr35.ph3992.us.lcssa, i32 noundef %.tr36.ph4093.us.lcssa)
  br i1 %72, label %.split102.us, label %73

73:                                               ; preds = %71, %.lr.ph.split.us100.split.us
  %74 = icmp ne i32 %.tr.ph3891.us.lcssa, 2
  %75 = icmp sgt i32 %.tr36.ph4093.us.lcssa, 0
  %or.cond5.us96.us.peel = and i1 %74, %75
  br i1 %or.cond5.us96.us.peel, label %76, label %tailrecurse.outer37._crit_edge

76:                                               ; preds = %73
  %77 = add nsw i32 %.tr36.ph4093.us.lcssa, -1
  %78 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 2, i32 noundef %.tr34.ph155, i32 noundef %.tr35.ph3992.us.lcssa, i32 noundef %77)
  br i1 %78, label %tailrecurse.us97.us.peel, label %tailrecurse.outer37._crit_edge

tailrecurse.us97.us.peel:                         ; preds = %76
  %79 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3lalB5cxx11, ptr noundef nonnull @.str.3)
  %80 = sub nsw i32 1, %.tr36.ph4093.us.lcssa
  %81 = icmp eq i32 %.lcssa, %80
  br i1 %81, label %tailrecurse.outer37._crit_edge, label %.peel.next

.peel.next:                                       ; preds = %tailrecurse.us97.us.peel
  %82 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 0, i32 noundef %10, i32 noundef %.tr35.ph3992.us.lcssa, i32 noundef %77)
  br i1 %82, label %.split102.us, label %tailrecurse.outer37._crit_edge

.split102.us:                                     ; preds = %13, %.lr.ph.split.us100.split.peel, %.lr.ph.split.us100.split, %.lr.ph.split.us100.split.preheader, %71, %.peel.next
  %.tr35.ph3992.us288 = phi i32 [ %.tr35.ph3992.us.lcssa, %71 ], [ %.tr35.ph3992.us.lcssa, %.peel.next ], [ %.tr35.ph156, %13 ], [ %.tr35.ph156, %.lr.ph.split.us100.split.peel ], [ %.tr35.ph3992.us, %.lr.ph.split.us100.split ], [ %.tr35.ph3992.us, %.lr.ph.split.us100.split.preheader ]
  %.us-phi131 = phi i32 [ %.tr36.ph4093.us.lcssa, %71 ], [ %77, %.peel.next ], [ %.tr36.ph157, %13 ], [ %22, %.lr.ph.split.us100.split.peel ], [ %59, %.lr.ph.split.us100.split ], [ %.tr36.ph4093.us, %.lr.ph.split.us100.split.preheader ]
  %83 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3lalB5cxx11, ptr noundef nonnull @.str)
  %84 = add nsw i32 %.tr35.ph3992.us288, %10
  %85 = sub i32 0, %.us-phi131
  %86 = icmp eq i32 %84, %85
  br i1 %86, label %tailrecurse.outer37._crit_edge, label %.lr.ph.lr.ph

.lr.ph:                                           ; preds = %.split.us.peel, %.split.us
  %87 = phi i32 [ %105, %.split.us ], [ %49, %.split.us.peel ]
  %.tr36.ph4093 = phi i32 [ %92, %.split.us ], [ %.tr3646.us.lcssa.peel, %.split.us.peel ]
  %.tr35.ph3992 = phi i32 [ %89, %.split.us ], [ %35, %.split.us.peel ]
  %88 = icmp sgt i32 %.tr35.ph3992, 0
  %89 = add i32 %.tr35.ph3992, -1
  br i1 %88, label %.lr.ph.split.us.split.preheader, label %.lr.ph.split.us.split.us

.lr.ph.split.us.split.preheader:                  ; preds = %.lr.ph
  %90 = icmp sgt i32 %.tr36.ph4093, 0
  br i1 %90, label %91, label %tailrecurse.outer37._crit_edge

91:                                               ; preds = %.lr.ph.split.us.split.preheader
  %92 = add nsw i32 %.tr36.ph4093, -1
  %93 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 2, i32 noundef %.tr34.ph155, i32 noundef %.tr35.ph3992, i32 noundef %92)
  br i1 %93, label %tailrecurse.us.peel, label %tailrecurse.outer37._crit_edge

tailrecurse.us.peel:                              ; preds = %91
  %94 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3lalB5cxx11, ptr noundef nonnull @.str.3)
  %95 = sub nsw i32 1, %.tr36.ph4093
  %96 = icmp eq i32 %87, %95
  br i1 %96, label %tailrecurse.outer37._crit_edge, label %.lr.ph.split.us.split

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph, %.lr.ph.peel
  %.tr36.ph4093.lcssa = phi i32 [ %.tr36.ph157, %.lr.ph.peel ], [ %.tr36.ph4093, %.lr.ph ]
  %.tr35.ph3992.lcssa = phi i32 [ %.tr35.ph156, %.lr.ph.peel ], [ %.tr35.ph3992, %.lr.ph ]
  %.tr.ph3891.lcssa = phi i32 [ %.tr.ph154, %.lr.ph.peel ], [ 1, %.lr.ph ]
  %97 = icmp ne i32 %.tr.ph3891.lcssa, 2
  %98 = icmp sgt i32 %.tr36.ph4093.lcssa, 0
  %or.cond5.us.us.peel = and i1 %97, %98
  br i1 %or.cond5.us.us.peel, label %99, label %tailrecurse.outer37._crit_edge

99:                                               ; preds = %.lr.ph.split.us.split.us
  %100 = add nsw i32 %.tr36.ph4093.lcssa, -1
  %101 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 2, i32 noundef %.tr34.ph155, i32 noundef %.tr35.ph3992.lcssa, i32 noundef %100)
  br i1 %101, label %tailrecurse.us.us.peel, label %tailrecurse.outer37._crit_edge

tailrecurse.us.us.peel:                           ; preds = %99
  %102 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3lalB5cxx11, ptr noundef nonnull @.str.3)
  br label %tailrecurse.outer37._crit_edge

.lr.ph.split.us.split:                            ; preds = %tailrecurse.us.peel
  %103 = tail call noundef zeroext i1 @_Z2dpiiii(i32 noundef 1, i32 noundef %.tr34.ph155, i32 noundef %89, i32 noundef %92)
  br i1 %103, label %.split.us, label %tailrecurse.outer37._crit_edge

.split.us:                                        ; preds = %.lr.ph.split.us.split
  %104 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) @_Z3lalB5cxx11, ptr noundef nonnull @.str.2)
  %105 = add nsw i32 %89, %.tr34.ph155
  %106 = sub i32 0, %92
  %107 = icmp eq i32 %105, %106
  br i1 %107, label %tailrecurse.outer37._crit_edge, label %.lr.ph, !llvm.loop !7

tailrecurse.outer37._crit_edge:                   ; preds = %.split102.us, %.peel.next, %73, %76, %tailrecurse.us97.us.peel, %.split.us98, %65, %56, %58, %tailrecurse.us97.peel, %18, %21, %tailrecurse.us97.peel.peel, %28, %.split.us98.peel, %38, %41, %tailrecurse.us.peel.peel, %.lr.ph.split.us.split.peel, %.split.us.peel, %.split.us, %.lr.ph.split.us.split, %.lr.ph.split.us.split.preheader, %91, %tailrecurse.us.peel, %tailrecurse.us.us.peel, %.lr.ph.split.us.split.us, %99, %4
  ret void
}

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

attributes #0 = { 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" }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.peeled.count", i32 1}
!7 = distinct !{!7, !6}


; Effective O3 passes: ADCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass