; LLVM IR from VastoLorde95/Competitive-Programming :: CodeChef/LONG/MARCH15/STRSUB (a)

; 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] }
%"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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@i = external dso_local global i32, align 4
@j = external dso_local global i32, align 4
@cnt1 = external dso_local global i32, align 4
@cnt2 = external dso_local global i32, align 4
@lo = external dso_local global i32, align 4
@hi = external dso_local global i32, align 4
@mid = external dso_local global i32, align 4
@far = external dso_local global [100010 x i64], align 16
@sum = external dso_local global [100010 x i64], align 16
@l = external dso_local global i64, align 8
@r = external dso_local global i64, align 8
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %5

5:                                                ; preds = %176, %0
  %6 = load i32, ptr @t, align 4, !tbaa !5
  %7 = add nsw i32 %6, -1
  store i32 %7, ptr @t, align 4, !tbaa !5
  %8 = icmp ne i32 %6, 0
  br i1 %8, label %9, label %177

9:                                                ; preds = %5
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @n, ptr noundef @k, ptr noundef @q)
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  call void @llvm.lifetime.start.p0(i64 32, ptr %2) #6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %2, i8 noundef signext 97, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  %12 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %2) #6
  store i32 1, ptr @j, align 4, !tbaa !5
  store i32 0, ptr @cnt1, align 4, !tbaa !5
  store i32 0, ptr @cnt2, align 4, !tbaa !5
  store i64 0, ptr @far, align 16, !tbaa !9
  %13 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 1)
  %14 = load i8, ptr %13, align 1, !tbaa !11
  %15 = sext i8 %14 to i32
  %16 = icmp eq i32 %15, 48
  br i1 %16, label %17, label %20

17:                                               ; preds = %9
  %18 = load i32, ptr @cnt1, align 4, !tbaa !5
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr @cnt1, align 4, !tbaa !5
  br label %23

20:                                               ; preds = %9
  %21 = load i32, ptr @cnt2, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr @cnt2, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %20, %17
  store i32 1, ptr @i, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %83, %23
  %25 = load i32, ptr @i, align 4, !tbaa !5
  %26 = load i32, ptr @n, align 4, !tbaa !5
  %27 = icmp sle i32 %25, %26
  br i1 %27, label %28, label %86

28:                                               ; preds = %24
  br label %29

29:                                               ; preds = %63, %28
  %30 = load i32, ptr @j, align 4, !tbaa !5
  %31 = load i32, ptr @n, align 4, !tbaa !5
  %32 = icmp sle i32 %30, %31
  br i1 %32, label %33, label %41

33:                                               ; preds = %29
  %34 = load i32, ptr @cnt1, align 4, !tbaa !5
  %35 = load i32, ptr @k, align 4, !tbaa !5
  %36 = icmp sle i32 %34, %35
  br i1 %36, label %37, label %41

37:                                               ; preds = %33
  %38 = load i32, ptr @cnt2, align 4, !tbaa !5
  %39 = load i32, ptr @k, align 4, !tbaa !5
  %40 = icmp sle i32 %38, %39
  br label %41

41:                                               ; preds = %37, %33, %29
  %42 = phi i1 [ false, %33 ], [ false, %29 ], [ %40, %37 ]
  br i1 %42, label %43, label %64

43:                                               ; preds = %41
  %44 = load i32, ptr @j, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr @j, align 4, !tbaa !5
  %46 = load i32, ptr @j, align 4, !tbaa !5
  %47 = load i32, ptr @n, align 4, !tbaa !5
  %48 = icmp sgt i32 %46, %47
  br i1 %48, label %49, label %50

49:                                               ; preds = %43
  br label %64

50:                                               ; preds = %43
  %51 = load i32, ptr @j, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %52)
  %54 = load i8, ptr %53, align 1, !tbaa !11
  %55 = sext i8 %54 to i32
  %56 = icmp eq i32 %55, 48
  br i1 %56, label %57, label %60

57:                                               ; preds = %50
  %58 = load i32, ptr @cnt1, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr @cnt1, align 4, !tbaa !5
  br label %63

60:                                               ; preds = %50
  %61 = load i32, ptr @cnt2, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr @cnt2, align 4, !tbaa !5
  br label %63

63:                                               ; preds = %60, %57
  br label %29, !llvm.loop !12

64:                                               ; preds = %49, %41
  %65 = load i32, ptr @j, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = load i32, ptr @i, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [100010 x i64], ptr @far, i64 0, i64 %68
  store i64 %66, ptr %69, align 8, !tbaa !9
  %70 = load i32, ptr @i, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %71)
  %73 = load i8, ptr %72, align 1, !tbaa !11
  %74 = sext i8 %73 to i32
  %75 = icmp eq i32 %74, 48
  br i1 %75, label %76, label %79

76:                                               ; preds = %64
  %77 = load i32, ptr @cnt1, align 4, !tbaa !5
  %78 = sub nsw i32 %77, 1
  store i32 %78, ptr @cnt1, align 4, !tbaa !5
  br label %82

79:                                               ; preds = %64
  %80 = load i32, ptr @cnt2, align 4, !tbaa !5
  %81 = sub nsw i32 %80, 1
  store i32 %81, ptr @cnt2, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %79, %76
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr @i, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr @i, align 4, !tbaa !5
  br label %24, !llvm.loop !14

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

87:                                               ; preds = %106, %86
  %88 = load i32, ptr %3, align 4, !tbaa !5
  %89 = load i32, ptr @n, align 4, !tbaa !5
  %90 = icmp sle i32 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %109

92:                                               ; preds = %87
  %93 = load i32, ptr %3, align 4, !tbaa !5
  %94 = sub nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %95
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = load i32, ptr %3, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [100010 x i64], ptr @far, i64 0, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !9
  %102 = add nsw i64 %97, %101
  %103 = load i32, ptr %3, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %104
  store i64 %102, ptr %105, align 8, !tbaa !9
  br label %106

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

109:                                              ; preds = %91
  br label %110

110:                                              ; preds = %144, %109
  %111 = load i32, ptr @q, align 4, !tbaa !5
  %112 = add nsw i32 %111, -1
  store i32 %112, ptr @q, align 4, !tbaa !5
  %113 = icmp ne i32 %111, 0
  br i1 %113, label %114, label %176

114:                                              ; preds = %110
  %115 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @l)
  %116 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %115, ptr noundef nonnull align 8 dereferenceable(8) @r)
  %117 = load i64, ptr @l, align 8, !tbaa !9
  %118 = sub nsw i64 %117, 1
  %119 = trunc i64 %118 to i32
  store i32 %119, ptr @lo, align 4, !tbaa !5
  %120 = load i64, ptr @r, align 8, !tbaa !9
  %121 = add nsw i64 %120, 1
  %122 = trunc i64 %121 to i32
  store i32 %122, ptr @hi, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %143, %114
  %124 = load i32, ptr @hi, align 4, !tbaa !5
  %125 = load i32, ptr @lo, align 4, !tbaa !5
  %126 = sub nsw i32 %124, %125
  %127 = icmp sgt i32 %126, 1
  br i1 %127, label %128, label %144

128:                                              ; preds = %123
  %129 = load i32, ptr @lo, align 4, !tbaa !5
  %130 = load i32, ptr @hi, align 4, !tbaa !5
  %131 = add nsw i32 %129, %130
  %132 = ashr i32 %131, 1
  store i32 %132, ptr @mid, align 4, !tbaa !5
  %133 = load i32, ptr @mid, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [100010 x i64], ptr @far, i64 0, i64 %134
  %136 = load i64, ptr %135, align 8, !tbaa !9
  %137 = load i64, ptr @r, align 8, !tbaa !9
  %138 = icmp sle i64 %136, %137
  br i1 %138, label %139, label %141

139:                                              ; preds = %128
  %140 = load i32, ptr @mid, align 4, !tbaa !5
  store i32 %140, ptr @lo, align 4, !tbaa !5
  br label %143

141:                                              ; preds = %128
  %142 = load i32, ptr @mid, align 4, !tbaa !5
  store i32 %142, ptr @hi, align 4, !tbaa !5
  br label %143

143:                                              ; preds = %141, %139
  br label %123, !llvm.loop !16

144:                                              ; preds = %123
  %145 = load i32, ptr @lo, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %146
  %148 = load i64, ptr %147, align 8, !tbaa !9
  %149 = load i64, ptr @l, align 8, !tbaa !9
  %150 = sub nsw i64 %149, 1
  %151 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %150
  %152 = load i64, ptr %151, align 8, !tbaa !9
  %153 = sub nsw i64 %148, %152
  %154 = load i64, ptr @r, align 8, !tbaa !9
  %155 = load i32, ptr @lo, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = sub nsw i64 %154, %156
  %158 = load i64, ptr @r, align 8, !tbaa !9
  %159 = add nsw i64 %158, 1
  %160 = mul nsw i64 %157, %159
  %161 = add nsw i64 %153, %160
  %162 = load i64, ptr @r, align 8, !tbaa !9
  %163 = load i64, ptr @r, align 8, !tbaa !9
  %164 = add nsw i64 %163, 1
  %165 = mul nsw i64 %162, %164
  %166 = sdiv i64 %165, 2
  %167 = load i64, ptr @l, align 8, !tbaa !9
  %168 = load i64, ptr @l, align 8, !tbaa !9
  %169 = sub nsw i64 %168, 1
  %170 = mul nsw i64 %167, %169
  %171 = sdiv i64 %170, 2
  %172 = sub nsw i64 %166, %171
  %173 = sub nsw i64 %161, %172
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %173)
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %174, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %110, !llvm.loop !17

176:                                              ; preds = %110
  br label %5, !llvm.loop !18

177:                                              ; preds = %5
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i8 noundef signext, ptr noundef nonnull align 8 dereferenceable(32)) #4

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

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

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

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

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

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

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


; 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] }
%"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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@i = external dso_local local_unnamed_addr global i32, align 4
@j = external dso_local local_unnamed_addr global i32, align 4
@cnt1 = external dso_local local_unnamed_addr global i32, align 4
@cnt2 = external dso_local local_unnamed_addr global i32, align 4
@lo = external dso_local local_unnamed_addr global i32, align 4
@hi = external dso_local local_unnamed_addr global i32, align 4
@mid = external dso_local local_unnamed_addr global i32, align 4
@far = external dso_local local_unnamed_addr global [100010 x i64], align 16
@sum = external dso_local local_unnamed_addr global [100010 x i64], align 16
@l = external dso_local global i64, align 8
@r = external dso_local global i64, align 8
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #0 align 2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %3 = load i32, ptr @t, align 4, !tbaa !5
  %4 = add nsw i32 %3, -1
  store i32 %4, ptr @t, align 4, !tbaa !5
  %.not35 = icmp eq i32 %3, 0
  br i1 %.not35, label %._crit_edge38, label %.lr.ph37

.loopexit:                                        ; preds = %94, %.preheader18
  %5 = load i32, ptr @t, align 4, !tbaa !5
  %6 = add nsw i32 %5, -1
  store i32 %6, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %._crit_edge38, label %.lr.ph37, !llvm.loop !9

.lr.ph37:                                         ; preds = %0, %.loopexit
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @n, ptr noundef nonnull @k, ptr noundef nonnull @q)
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #7
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %1, i8 noundef signext 97, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  %9 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  store i32 1, ptr @j, align 4, !tbaa !5
  store i32 0, ptr @cnt1, align 4, !tbaa !5
  store i32 0, ptr @cnt2, align 4, !tbaa !5
  store i64 0, ptr @far, align 16, !tbaa !11
  %10 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef 1)
  %11 = load i8, ptr %10, align 1, !tbaa !13
  %12 = icmp eq i8 %11, 48
  %cnt1.cnt2 = select i1 %12, ptr @cnt1, ptr @cnt2
  %13 = load i32, ptr %cnt1.cnt2, align 4, !tbaa !5
  %14 = add nsw i32 %13, 1
  store i32 %14, ptr %cnt1.cnt2, align 4, !tbaa !5
  store i32 1, ptr @i, align 4, !tbaa !5
  %15 = load i32, ptr @n, align 4, !tbaa !5
  %.not823 = icmp slt i32 %15, 1
  br i1 %.not823, label %._crit_edge.thread, label %.preheader

._crit_edge.thread:                               ; preds = %.lr.ph37
  store i64 0, ptr @sum, align 16, !tbaa !11
  br label %.preheader18

.preheader:                                       ; preds = %.lr.ph37, %.critedge
  %16 = phi i32 [ %47, %.critedge ], [ 1, %.lr.ph37 ]
  %17 = phi i32 [ %48, %.critedge ], [ %15, %.lr.ph37 ]
  %18 = load i32, ptr @j, align 4, !tbaa !5
  %.not1420 = icmp sgt i32 %18, %17
  br i1 %.not1420, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %26
  %19 = phi i32 [ %34, %26 ], [ %17, %.preheader ]
  %20 = phi i32 [ %33, %26 ], [ %18, %.preheader ]
  %21 = load i32, ptr @cnt1, align 4, !tbaa !5
  %22 = load i32, ptr @k, align 4, !tbaa !5
  %.not15 = icmp sgt i32 %21, %22
  %23 = load i32, ptr @cnt2, align 4
  %.not16 = icmp sgt i32 %23, %22
  %or.cond = select i1 %.not15, i1 true, i1 %.not16
  br i1 %or.cond, label %.critedge.loopexit, label %24

24:                                               ; preds = %.lr.ph
  %25 = add nsw i32 %20, 1
  store i32 %25, ptr @j, align 4, !tbaa !5
  %.not17 = icmp slt i32 %20, %19
  br i1 %.not17, label %26, label %.critedge.loopexit

26:                                               ; preds = %24
  %27 = sext i32 %25 to i64
  %28 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %27)
  %29 = load i8, ptr %28, align 1, !tbaa !13
  %30 = icmp eq i8 %29, 48
  %cnt1.cnt254 = select i1 %30, ptr @cnt1, ptr @cnt2
  %31 = load i32, ptr %cnt1.cnt254, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %cnt1.cnt254, align 4, !tbaa !5
  %33 = load i32, ptr @j, align 4, !tbaa !5
  %34 = load i32, ptr @n, align 4, !tbaa !5
  %.not14 = icmp sgt i32 %33, %34
  br i1 %.not14, label %.critedge.loopexit, label %.lr.ph, !llvm.loop !14

.critedge.loopexit:                               ; preds = %.lr.ph, %26, %24
  %35 = phi i32 [ %20, %.lr.ph ], [ %33, %26 ], [ %25, %24 ]
  %.pre = load i32, ptr @i, align 4, !tbaa !5
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %.preheader
  %36 = phi i32 [ %.pre, %.critedge.loopexit ], [ %16, %.preheader ]
  %37 = phi i32 [ %35, %.critedge.loopexit ], [ %18, %.preheader ]
  %38 = sext i32 %37 to i64
  %39 = sext i32 %36 to i64
  %40 = getelementptr inbounds [100010 x i64], ptr @far, i64 0, i64 %39
  store i64 %38, ptr %40, align 8, !tbaa !11
  %41 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %39)
  %42 = load i8, ptr %41, align 1, !tbaa !13
  %43 = icmp eq i8 %42, 48
  %cnt1.cnt255 = select i1 %43, ptr @cnt1, ptr @cnt2
  %44 = load i32, ptr %cnt1.cnt255, align 4, !tbaa !5
  %45 = add nsw i32 %44, -1
  store i32 %45, ptr %cnt1.cnt255, align 4, !tbaa !5
  %46 = load i32, ptr @i, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr @i, align 4, !tbaa !5
  %48 = load i32, ptr @n, align 4, !tbaa !5
  %.not8.not = icmp slt i32 %46, %48
  br i1 %.not8.not, label %.preheader, label %._crit_edge, !llvm.loop !15

._crit_edge:                                      ; preds = %.critedge
  store i64 0, ptr @sum, align 16, !tbaa !11
  %.not924 = icmp slt i32 %48, 1
  br i1 %.not924, label %.preheader18, label %.lr.ph27.preheader

.lr.ph27.preheader:                               ; preds = %._crit_edge
  %49 = zext nneg i32 %48 to i64
  %xtraiter = and i64 %49, 3
  %50 = icmp ult i32 %48, 4
  br i1 %50, label %.preheader18.loopexit.unr-lcssa, label %.lr.ph27.preheader.new

.lr.ph27.preheader.new:                           ; preds = %.lr.ph27.preheader
  %unroll_iter = and i64 %49, 2147483644
  br label %.lr.ph27

.preheader18.loopexit.unr-lcssa:                  ; preds = %.lr.ph27, %.lr.ph27.preheader
  %.unr = phi i64 [ 0, %.lr.ph27.preheader ], [ %73, %.lr.ph27 ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph27.preheader ], [ %indvars.iv.next.3, %.lr.ph27 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader18, label %.lr.ph27.epil

.lr.ph27.epil:                                    ; preds = %.preheader18.loopexit.unr-lcssa, %.lr.ph27.epil
  %51 = phi i64 [ %54, %.lr.ph27.epil ], [ %.unr, %.preheader18.loopexit.unr-lcssa ]
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph27.epil ], [ %indvars.iv.unr, %.preheader18.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph27.epil ], [ 0, %.preheader18.loopexit.unr-lcssa ]
  %52 = getelementptr inbounds [100010 x i64], ptr @far, i64 0, i64 %indvars.iv.epil
  %53 = load i64, ptr %52, align 8, !tbaa !11
  %54 = add nsw i64 %53, %51
  %55 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %indvars.iv.epil
  store i64 %54, ptr %55, align 8, !tbaa !11
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader18, label %.lr.ph27.epil, !llvm.loop !16

.preheader18:                                     ; preds = %.preheader18.loopexit.unr-lcssa, %.lr.ph27.epil, %._crit_edge.thread, %._crit_edge
  %56 = load i32, ptr @q, align 4, !tbaa !5
  %57 = add nsw i32 %56, -1
  store i32 %57, ptr @q, align 4, !tbaa !5
  %.not1033 = icmp eq i32 %56, 0
  br i1 %.not1033, label %.loopexit, label %.lr.ph34

.lr.ph27:                                         ; preds = %.lr.ph27, %.lr.ph27.preheader.new
  %58 = phi i64 [ 0, %.lr.ph27.preheader.new ], [ %73, %.lr.ph27 ]
  %indvars.iv = phi i64 [ 1, %.lr.ph27.preheader.new ], [ %indvars.iv.next.3, %.lr.ph27 ]
  %niter = phi i64 [ 0, %.lr.ph27.preheader.new ], [ %niter.next.3, %.lr.ph27 ]
  %59 = getelementptr inbounds [100010 x i64], ptr @far, i64 0, i64 %indvars.iv
  %60 = load i64, ptr %59, align 8, !tbaa !11
  %61 = add nsw i64 %60, %58
  %62 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %indvars.iv
  store i64 %61, ptr %62, align 8, !tbaa !11
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %63 = getelementptr inbounds [100010 x i64], ptr @far, i64 0, i64 %indvars.iv.next
  %64 = load i64, ptr %63, align 8, !tbaa !11
  %65 = add nsw i64 %64, %61
  %66 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %indvars.iv.next
  store i64 %65, ptr %66, align 8, !tbaa !11
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %67 = getelementptr inbounds [100010 x i64], ptr @far, i64 0, i64 %indvars.iv.next.1
  %68 = load i64, ptr %67, align 8, !tbaa !11
  %69 = add nsw i64 %68, %65
  %70 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %indvars.iv.next.1
  store i64 %69, ptr %70, align 8, !tbaa !11
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %71 = getelementptr inbounds [100010 x i64], ptr @far, i64 0, i64 %indvars.iv.next.2
  %72 = load i64, ptr %71, align 8, !tbaa !11
  %73 = add nsw i64 %72, %69
  %74 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %indvars.iv.next.2
  store i64 %73, ptr %74, align 8, !tbaa !11
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader18.loopexit.unr-lcssa, label %.lr.ph27, !llvm.loop !18

.lr.ph34:                                         ; preds = %.preheader18, %94
  %75 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @l)
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef nonnull align 8 dereferenceable(8) @r)
  %77 = load i64, ptr @l, align 8, !tbaa !11
  %78 = trunc i64 %77 to i32
  %79 = add i32 %78, -1
  store i32 %79, ptr @lo, align 4, !tbaa !5
  %80 = load i64, ptr @r, align 8, !tbaa !11
  %81 = trunc i64 %80 to i32
  %82 = add i32 %81, 1
  store i32 %82, ptr @hi, align 4, !tbaa !5
  %83 = sub nsw i32 %82, %79
  %84 = icmp sgt i32 %83, 1
  br i1 %84, label %.lr.ph29, label %94

.lr.ph29:                                         ; preds = %.lr.ph34, %.lr.ph29
  %85 = phi i32 [ %.56, %.lr.ph29 ], [ %82, %.lr.ph34 ]
  %86 = phi i32 [ %., %.lr.ph29 ], [ %79, %.lr.ph34 ]
  %87 = add nsw i32 %86, %85
  %88 = ashr i32 %87, 1
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [100010 x i64], ptr @far, i64 0, i64 %89
  %91 = load i64, ptr %90, align 8, !tbaa !11
  %.not13 = icmp sgt i64 %91, %80
  %hi.lo = select i1 %.not13, ptr @hi, ptr @lo
  %. = select i1 %.not13, i32 %86, i32 %88
  %.56 = select i1 %.not13, i32 %88, i32 %85
  store i32 %88, ptr %hi.lo, align 4, !tbaa !5
  %92 = sub nsw i32 %.56, %.
  %93 = icmp sgt i32 %92, 1
  br i1 %93, label %.lr.ph29, label %._crit_edge30, !llvm.loop !19

._crit_edge30:                                    ; preds = %.lr.ph29
  store i32 %88, ptr @mid, align 4, !tbaa !5
  br label %94

94:                                               ; preds = %._crit_edge30, %.lr.ph34
  %.lcssa19 = phi i32 [ %., %._crit_edge30 ], [ %79, %.lr.ph34 ]
  %95 = sext i32 %.lcssa19 to i64
  %96 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %95
  %97 = load i64, ptr %96, align 8, !tbaa !11
  %98 = add nsw i64 %77, -1
  %99 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %98
  %100 = load i64, ptr %99, align 8, !tbaa !11
  %101 = sub nsw i64 %80, %95
  %102 = add nsw i64 %80, 1
  %103 = mul nsw i64 %101, %102
  %104 = mul nsw i64 %102, %80
  %.neg11 = sdiv i64 %104, -2
  %105 = mul nsw i64 %98, %77
  %.neg.neg = sdiv i64 %105, 2
  %106 = add nsw i64 %.neg11, %.neg.neg
  %107 = add i64 %106, %103
  %.neg12 = add i64 %107, %97
  %108 = sub i64 %.neg12, %100
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %108)
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %111 = load i32, ptr @q, align 4, !tbaa !5
  %112 = add nsw i32 %111, -1
  store i32 %112, ptr @q, align 4, !tbaa !5
  %.not10 = icmp eq i32 %111, 0
  br i1 %.not10, label %.loopexit, label %.lr.ph34, !llvm.loop !20

._crit_edge38:                                    ; preds = %.loopexit, %0
  ret i32 0
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EES5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i8 noundef signext, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

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

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

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

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

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

; 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 #5 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)) #6

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nofree 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 #3 = { "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 nosync 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 = { 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 #7 = { 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 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10}
!20 = distinct !{!20, !10}


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