; LLVM IR from tangjz/acm-icpc :: projecteuler/610.ll/Z3dfsNSt7 (cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi)

; 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] }

@__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num = external hidden unnamed_addr constant [7 x i32], align 16
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7min_repB5cxx11i(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) #0

; 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: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef %0, i32 noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca [7 x i32], align 16
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca i1, align 1
  %17 = alloca i1, align 1
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca i1, align 1
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca i1, align 1
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 7, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 28, ptr %6) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, i64 28, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store ptr @.str.14, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 7, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %42, %2
  %25 = load i32, ptr %9, align 4, !tbaa !9
  %26 = icmp slt i32 %25, 7
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %45

28:                                               ; preds = %24
  %29 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #7
  %30 = load i8, ptr %29, align 1, !tbaa !11
  %31 = sext i8 %30 to i32
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = load i32, ptr %9, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds i8, ptr %32, i64 %34
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %37 = sext i8 %36 to i32
  %38 = icmp eq i32 %31, %37
  br i1 %38, label %39, label %41

39:                                               ; preds = %28
  %40 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %40, ptr %8, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %39, %28
  br label %42

42:                                               ; preds = %41
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %9, align 4, !tbaa !9
  br label %24, !llvm.loop !12

45:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 1, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %46 = load i32, ptr %4, align 4, !tbaa !9
  %47 = sitofp i32 %46 to double
  store double %47, ptr %11, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %142, %45
  %49 = load i32, ptr %12, align 4, !tbaa !9
  %50 = icmp slt i32 %49, 7
  br i1 %50, label %52, label %51

51:                                               ; preds = %48
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %146

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %53 = load i32, ptr %4, align 4, !tbaa !9
  %54 = load i32, ptr %12, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [7 x i32], ptr %6, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %58 = add nsw i32 %53, %57
  store i32 %58, ptr %14, align 4, !tbaa !9
  %59 = load i32, ptr %8, align 4, !tbaa !9
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %62, label %80

62:                                               ; preds = %52
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = and i32 %63, 1
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %71, label %66

66:                                               ; preds = %62
  %67 = load i32, ptr %8, align 4, !tbaa !9
  %68 = add nsw i32 %67, 2
  %69 = load i32, ptr %12, align 4, !tbaa !9
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %71, label %72

71:                                               ; preds = %66, %62
  store i32 7, ptr %13, align 4
  br label %139

72:                                               ; preds = %66
  %73 = load i32, ptr %8, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [7 x i32], ptr %6, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !9
  %77 = shl i32 %76, 1
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = sub nsw i32 %78, %77
  store i32 %79, ptr %14, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %72, %52
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = getelementptr inbounds [7 x i32], ptr %6, i64 0, i64 6
  %83 = load i32, ptr %82, align 8, !tbaa !9
  %84 = icmp slt i32 %81, %83
  store i1 false, ptr %16, align 1
  store i1 false, ptr %17, align 1
  store i1 false, ptr %19, align 1
  store i1 false, ptr %22, align 1
  br i1 %84, label %85, label %94

85:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #7
  store i1 true, ptr %16, align 1
  %86 = load i32, ptr %14, align 4, !tbaa !9
  call void @_Z7min_repB5cxx11i(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, i32 noundef %86)
  store i1 true, ptr %17, align 1
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #7
  store i1 true, ptr %19, align 1
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i8, ptr %87, i64 %89
  %91 = load i8, ptr %90, align 1, !tbaa !11
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %18, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %91)
          to label %92 unwind label %121

92:                                               ; preds = %85
  store i1 true, ptr %22, align 1
  %93 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  br label %94

94:                                               ; preds = %92, %80
  %95 = phi i1 [ false, %80 ], [ %93, %92 ]
  %96 = load i1, ptr %22, align 1
  br i1 %96, label %97, label %98

97:                                               ; preds = %94
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  br label %98

98:                                               ; preds = %97, %94
  %99 = load i1, ptr %19, align 1
  br i1 %99, label %100, label %101

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

101:                                              ; preds = %100, %98
  %102 = load i1, ptr %17, align 1
  br i1 %102, label %103, label %104

103:                                              ; preds = %101
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %104

104:                                              ; preds = %103, %101
  %105 = load i1, ptr %16, align 1
  br i1 %105, label %106, label %107

106:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %107

107:                                              ; preds = %106, %104
  br i1 %95, label %108, label %138

108:                                              ; preds = %107
  %109 = load i32, ptr %10, align 4, !tbaa !9
  %110 = add nsw i32 %109, 7
  store i32 %110, ptr %10, align 4, !tbaa !9
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds i8, ptr %111, i64 %113
  %115 = load i8, ptr %114, align 1, !tbaa !11
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %115)
  %116 = load i32, ptr %14, align 4, !tbaa !9
  %117 = invoke noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef %23, i32 noundef %116)
          to label %118 unwind label %134

118:                                              ; preds = %108
  %119 = load double, ptr %11, align 8, !tbaa !14
  %120 = call double @llvm.fmuladd.f64(double 7.000000e+00, double %117, double %119)
  store double %120, ptr %11, align 8, !tbaa !14
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  br label %138

121:                                              ; preds = %85
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %20, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %21, align 4
  %125 = load i1, ptr %19, align 1
  br i1 %125, label %126, label %127

126:                                              ; preds = %121
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  br label %127

127:                                              ; preds = %126, %121
  %128 = load i1, ptr %17, align 1
  br i1 %128, label %129, label %130

129:                                              ; preds = %127
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  br label %130

130:                                              ; preds = %129, %127
  %131 = load i1, ptr %16, align 1
  br i1 %131, label %132, label %133

132:                                              ; preds = %130
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %133

133:                                              ; preds = %132, %130
  br label %145

134:                                              ; preds = %108
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %20, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %21, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  br label %145

138:                                              ; preds = %118, %107
  store i32 0, ptr %13, align 4
  br label %139

139:                                              ; preds = %138, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %140 = load i32, ptr %13, align 4
  switch i32 %140, label %157 [
    i32 0, label %141
    i32 7, label %142
  ]

141:                                              ; preds = %139
  br label %142

142:                                              ; preds = %141, %139
  %143 = load i32, ptr %12, align 4, !tbaa !9
  %144 = add nsw i32 %143, 1
  store i32 %144, ptr %12, align 4, !tbaa !9
  br label %48, !llvm.loop !16

145:                                              ; preds = %134, %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 28, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %152

146:                                              ; preds = %51
  %147 = load i32, ptr %10, align 4, !tbaa !9
  %148 = sitofp i32 %147 to double
  %149 = load double, ptr %11, align 8, !tbaa !14
  %150 = fdiv double %149, %148
  store double %150, ptr %11, align 8, !tbaa !14
  %151 = load double, ptr %11, align 8, !tbaa !14
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 28, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  ret double %151

152:                                              ; preds = %145
  %153 = load ptr, ptr %20, align 8
  %154 = load i32, ptr %21, align 4
  %155 = insertvalue { ptr, i32 } poison, ptr %153, 0
  %156 = insertvalue { ptr, i32 } %155, i32 %154, 1
  resume { ptr, i32 } %156

157:                                              ; preds = %139
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

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

@__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num = external hidden unnamed_addr constant [7 x i32], align 16
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7min_repB5cxx11i(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) local_unnamed_addr #0

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull %0, i32 noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  %7 = load i8, ptr %6, align 1, !tbaa !5
  %8 = load i8, ptr @.str.14, align 1, !tbaa !5
  %9 = icmp eq i8 %7, %8
  %.fr = freeze i1 %9
  %spec.select = select i1 %.fr, i32 0, i32 7
  %10 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  %11 = load i8, ptr %10, align 1, !tbaa !5
  %12 = load i8, ptr getelementptr inbounds (i8, ptr @.str.14, i64 1), align 1, !tbaa !5
  %13 = icmp eq i8 %11, %12
  %.fr77 = freeze i1 %13
  %spec.select.1 = select i1 %.fr77, i32 1, i32 %spec.select
  %14 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  %15 = load i8, ptr %14, align 1, !tbaa !5
  %16 = load i8, ptr getelementptr inbounds (i8, ptr @.str.14, i64 2), align 1, !tbaa !5
  %17 = icmp eq i8 %15, %16
  %.fr78 = freeze i1 %17
  %spec.select.2 = select i1 %.fr78, i32 2, i32 %spec.select.1
  %18 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  %19 = load i8, ptr %18, align 1, !tbaa !5
  %20 = load i8, ptr getelementptr inbounds (i8, ptr @.str.14, i64 3), align 1, !tbaa !5
  %21 = icmp eq i8 %19, %20
  %.fr79 = freeze i1 %21
  %spec.select.3 = select i1 %.fr79, i32 3, i32 %spec.select.2
  %22 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  %23 = load i8, ptr %22, align 1, !tbaa !5
  %24 = load i8, ptr getelementptr inbounds (i8, ptr @.str.14, i64 4), align 1, !tbaa !5
  %25 = icmp eq i8 %23, %24
  %.fr80 = freeze i1 %25
  %spec.select.4 = select i1 %.fr80, i32 4, i32 %spec.select.3
  %26 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  %27 = load i8, ptr %26, align 1, !tbaa !5
  %28 = load i8, ptr getelementptr inbounds (i8, ptr @.str.14, i64 5), align 1, !tbaa !5
  %29 = icmp eq i8 %27, %28
  %.fr81 = freeze i1 %29
  %spec.select.5 = select i1 %.fr81, i32 5, i32 %spec.select.4
  %30 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv(ptr noundef nonnull align 8 dereferenceable(32) %0) #6
  %31 = load i8, ptr %30, align 1, !tbaa !5
  %32 = load i8, ptr getelementptr inbounds (i8, ptr @.str.14, i64 6), align 1, !tbaa !5
  %33 = icmp eq i8 %31, %32
  %spec.select.6 = select i1 %33, i32 6, i32 %spec.select.5
  %spec.select.fr.6 = freeze i32 %spec.select.6
  %34 = sitofp i32 %1 to double
  %35 = and i32 %spec.select.fr.6, 1
  %.not.not = icmp eq i32 %35, 0
  %36 = sext i32 %spec.select.fr.6 to i64
  %37 = getelementptr inbounds [7 x i32], ptr @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, i64 0, i64 %36
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, i64 24), align 8
  br i1 %.not.not, label %.split, label %.split.us.preheader

.split.us.preheader:                              ; preds = %2
  %39 = load i32, ptr @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, align 16, !tbaa !8
  %40 = add nsw i32 %39, %1
  %41 = icmp sgt i32 %spec.select.fr.6, -1
  %42 = icmp slt i32 %40, %38
  %or.cond = select i1 %41, i1 %42, i1 false
  br i1 %or.cond, label %43, label %.critedge54.thread.us

43:                                               ; preds = %.split.us.preheader
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_Z7min_repB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i32 noundef %40)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %8)
          to label %.critedge54.us unwind label %.split65.us

.critedge54.us:                                   ; preds = %43
  %44 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %44, label %45, label %.critedge54.thread.us

45:                                               ; preds = %.critedge54.us
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %8)
  %46 = invoke noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull %5, i32 noundef %40)
          to label %47 unwind label %.split67.us

47:                                               ; preds = %45
  %48 = call double @llvm.fmuladd.f64(double %46, double 7.000000e+00, double %34)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %.critedge54.thread.us

.critedge54.thread.us:                            ; preds = %.split.us.preheader, %47, %.critedge54.us
  %.247.us = phi i32 [ 8, %47 ], [ 1, %.critedge54.us ], [ 1, %.split.us.preheader ]
  %.2.us = phi double [ %48, %47 ], [ %34, %.critedge54.us ], [ %34, %.split.us.preheader ]
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, i64 4), align 4, !tbaa !8
  %50 = add nsw i32 %49, %1
  %51 = icmp sgt i32 %spec.select.fr.6, 0
  %52 = icmp slt i32 %50, %38
  %or.cond.1 = select i1 %51, i1 %52, i1 false
  br i1 %or.cond.1, label %53, label %.critedge54.thread.us.1

53:                                               ; preds = %.critedge54.thread.us
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_Z7min_repB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i32 noundef %50)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %12)
          to label %.critedge54.us.1 unwind label %.split65.us

.critedge54.us.1:                                 ; preds = %53
  %54 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %54, label %55, label %.critedge54.thread.us.1

55:                                               ; preds = %.critedge54.us.1
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %12)
  %56 = invoke noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull %5, i32 noundef %50)
          to label %57 unwind label %.split67.us

57:                                               ; preds = %55
  %58 = add nuw nsw i32 %.247.us, 7
  %59 = call double @llvm.fmuladd.f64(double %56, double 7.000000e+00, double %.2.us)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %.critedge54.thread.us.1

.critedge54.thread.us.1:                          ; preds = %57, %.critedge54.us.1, %.critedge54.thread.us
  %.247.us.1 = phi i32 [ %58, %57 ], [ %.247.us, %.critedge54.us.1 ], [ %.247.us, %.critedge54.thread.us ]
  %.2.us.1 = phi double [ %59, %57 ], [ %.2.us, %.critedge54.us.1 ], [ %.2.us, %.critedge54.thread.us ]
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, i64 8), align 8, !tbaa !8
  %61 = add nsw i32 %60, %1
  %62 = icmp sgt i32 %spec.select.fr.6, 1
  %63 = icmp slt i32 %61, %38
  %or.cond.2 = select i1 %62, i1 %63, i1 false
  br i1 %or.cond.2, label %64, label %.critedge54.thread.us.2

64:                                               ; preds = %.critedge54.thread.us.1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_Z7min_repB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i32 noundef %61)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %16)
          to label %.critedge54.us.2 unwind label %.split65.us

.critedge54.us.2:                                 ; preds = %64
  %65 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %65, label %66, label %.critedge54.thread.us.2

66:                                               ; preds = %.critedge54.us.2
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %16)
  %67 = invoke noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull %5, i32 noundef %61)
          to label %68 unwind label %.split67.us

68:                                               ; preds = %66
  %69 = add nuw nsw i32 %.247.us.1, 7
  %70 = call double @llvm.fmuladd.f64(double %67, double 7.000000e+00, double %.2.us.1)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %.critedge54.thread.us.2

.critedge54.thread.us.2:                          ; preds = %68, %.critedge54.us.2, %.critedge54.thread.us.1
  %.247.us.2 = phi i32 [ %69, %68 ], [ %.247.us.1, %.critedge54.us.2 ], [ %.247.us.1, %.critedge54.thread.us.1 ]
  %.2.us.2 = phi double [ %70, %68 ], [ %.2.us.1, %.critedge54.us.2 ], [ %.2.us.1, %.critedge54.thread.us.1 ]
  %71 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, i64 12), align 4, !tbaa !8
  %72 = add nsw i32 %71, %1
  %73 = icmp sgt i32 %spec.select.fr.6, 2
  %74 = icmp slt i32 %72, %38
  %or.cond.3 = select i1 %73, i1 %74, i1 false
  br i1 %or.cond.3, label %75, label %.critedge54.thread.us.3

75:                                               ; preds = %.critedge54.thread.us.2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_Z7min_repB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i32 noundef %72)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %20)
          to label %.critedge54.us.3 unwind label %.split65.us

.critedge54.us.3:                                 ; preds = %75
  %76 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %76, label %77, label %.critedge54.thread.us.3

77:                                               ; preds = %.critedge54.us.3
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %20)
  %78 = invoke noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull %5, i32 noundef %72)
          to label %79 unwind label %.split67.us

79:                                               ; preds = %77
  %80 = add nuw nsw i32 %.247.us.2, 7
  %81 = call double @llvm.fmuladd.f64(double %78, double 7.000000e+00, double %.2.us.2)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %.critedge54.thread.us.3

.critedge54.thread.us.3:                          ; preds = %79, %.critedge54.us.3, %.critedge54.thread.us.2
  %.247.us.3 = phi i32 [ %80, %79 ], [ %.247.us.2, %.critedge54.us.3 ], [ %.247.us.2, %.critedge54.thread.us.2 ]
  %.2.us.3 = phi double [ %81, %79 ], [ %.2.us.2, %.critedge54.us.3 ], [ %.2.us.2, %.critedge54.thread.us.2 ]
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, i64 16), align 16, !tbaa !8
  %83 = add nsw i32 %82, %1
  %84 = icmp sgt i32 %spec.select.fr.6, 3
  %85 = icmp slt i32 %83, %38
  %or.cond.4 = select i1 %84, i1 %85, i1 false
  br i1 %or.cond.4, label %86, label %.critedge54.thread.us.4

86:                                               ; preds = %.critedge54.thread.us.3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_Z7min_repB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i32 noundef %83)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %24)
          to label %.critedge54.us.4 unwind label %.split65.us

.critedge54.us.4:                                 ; preds = %86
  %87 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %87, label %88, label %.critedge54.thread.us.4

88:                                               ; preds = %.critedge54.us.4
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %24)
  %89 = invoke noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull %5, i32 noundef %83)
          to label %90 unwind label %.split67.us

90:                                               ; preds = %88
  %91 = add nuw nsw i32 %.247.us.3, 7
  %92 = call double @llvm.fmuladd.f64(double %89, double 7.000000e+00, double %.2.us.3)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %.critedge54.thread.us.4

.critedge54.thread.us.4:                          ; preds = %90, %.critedge54.us.4, %.critedge54.thread.us.3
  %.247.us.4 = phi i32 [ %91, %90 ], [ %.247.us.3, %.critedge54.us.4 ], [ %.247.us.3, %.critedge54.thread.us.3 ]
  %.2.us.4 = phi double [ %92, %90 ], [ %.2.us.3, %.critedge54.us.4 ], [ %.2.us.3, %.critedge54.thread.us.3 ]
  %93 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, i64 20), align 4, !tbaa !8
  %94 = add nsw i32 %93, %1
  %95 = icmp sgt i32 %spec.select.fr.6, 4
  %96 = icmp slt i32 %94, %38
  %or.cond.5 = select i1 %95, i1 %96, i1 false
  br i1 %or.cond.5, label %97, label %.critedge54.thread.us.5

97:                                               ; preds = %.critedge54.thread.us.4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_Z7min_repB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i32 noundef %94)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %28)
          to label %.critedge54.us.5 unwind label %.split65.us

.critedge54.us.5:                                 ; preds = %97
  %98 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %98, label %99, label %.critedge54.thread.us.5

99:                                               ; preds = %.critedge54.us.5
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %28)
  %100 = invoke noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull %5, i32 noundef %94)
          to label %101 unwind label %.split67.us

101:                                              ; preds = %99
  %102 = add nuw nsw i32 %.247.us.4, 7
  %103 = call double @llvm.fmuladd.f64(double %100, double 7.000000e+00, double %.2.us.4)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %.critedge54.thread.us.5

.critedge54.thread.us.5:                          ; preds = %101, %.critedge54.us.5, %.critedge54.thread.us.4
  %.247.us.5 = phi i32 [ %102, %101 ], [ %.247.us.4, %.critedge54.us.5 ], [ %.247.us.4, %.critedge54.thread.us.4 ]
  %.2.us.5 = phi double [ %103, %101 ], [ %.2.us.4, %.critedge54.us.5 ], [ %.2.us.4, %.critedge54.thread.us.4 ]
  %104 = add nsw i32 %38, %1
  %105 = icmp sgt i32 %spec.select.fr.6, 5
  %106 = icmp slt i32 %1, 0
  %or.cond.6 = and i1 %105, %106
  br i1 %or.cond.6, label %107, label %.split70.us

107:                                              ; preds = %.critedge54.thread.us.5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_Z7min_repB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i32 noundef %104)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %32)
          to label %.critedge54.us.6 unwind label %.split65.us

.critedge54.us.6:                                 ; preds = %107
  %108 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %108, label %109, label %.split70.us

109:                                              ; preds = %.critedge54.us.6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %32)
  %110 = invoke noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull %5, i32 noundef %104)
          to label %111 unwind label %.split67.us

111:                                              ; preds = %109
  %112 = add nuw nsw i32 %.247.us.5, 7
  %113 = call double @llvm.fmuladd.f64(double %110, double 7.000000e+00, double %.2.us.5)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %.split70.us

.split65.us:                                      ; preds = %107, %97, %86, %75, %64, %53, %43
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %137

.split67.us:                                      ; preds = %109, %99, %88, %77, %66, %55, %45
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %139

.split70.us:                                      ; preds = %238, %244, %.critedge54.6, %251, %.critedge54.thread.us.5, %.critedge54.us.6, %111
  %.us-phi71 = phi i32 [ %112, %111 ], [ %.247.us.5, %.critedge54.us.6 ], [ %.247.us.5, %.critedge54.thread.us.5 ], [ %.247.5, %238 ], [ %252, %251 ], [ %.247.5, %.critedge54.6 ], [ %.247.5, %244 ]
  %.us-phi72 = phi double [ %113, %111 ], [ %.2.us.5, %.critedge54.us.6 ], [ %.2.us.5, %.critedge54.thread.us.5 ], [ %.2.5, %238 ], [ %253, %251 ], [ %.2.5, %.critedge54.6 ], [ %.2.5, %244 ]
  %116 = sitofp i32 %.us-phi71 to double
  %117 = fdiv double %.us-phi72, %116
  ret double %117

.split:                                           ; preds = %2
  %118 = load i32, ptr @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, align 16, !tbaa !8
  %119 = add nsw i32 %118, %1
  %120 = icmp slt i32 %spec.select.fr.6, 0
  br i1 %120, label %121, label %127

121:                                              ; preds = %.split
  %122 = icmp slt i32 %spec.select.fr.6, -2
  br i1 %122, label %.critedge54.thread, label %123

123:                                              ; preds = %121
  %124 = load i32, ptr %37, align 4, !tbaa !8
  %125 = shl i32 %124, 1
  %126 = sub nsw i32 %119, %125
  br label %127

127:                                              ; preds = %123, %.split
  %.042 = phi i32 [ %126, %123 ], [ %119, %.split ]
  %128 = icmp slt i32 %.042, %38
  br i1 %128, label %129, label %.critedge54.thread

129:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_Z7min_repB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i32 noundef %.042)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  %130 = load i8, ptr @.str.14, align 1, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %130)
          to label %.critedge54 unwind label %.split65

.critedge54:                                      ; preds = %129
  %131 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %131, label %132, label %.critedge54.thread

132:                                              ; preds = %.critedge54
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %130)
  %133 = invoke noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull %5, i32 noundef %.042)
          to label %134 unwind label %.split67

134:                                              ; preds = %132
  %135 = call double @llvm.fmuladd.f64(double %133, double 7.000000e+00, double %34)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %.critedge54.thread

.split65:                                         ; preds = %246, %227, %208, %189, %170, %151, %129
  %136 = landingpad { ptr, i32 }
          cleanup
  br label %137

137:                                              ; preds = %.split65.us, %.split65
  %.us-phi = phi { ptr, i32 } [ %136, %.split65 ], [ %114, %.split65.us ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br label %254

.split67:                                         ; preds = %249, %230, %211, %192, %173, %154, %132
  %138 = landingpad { ptr, i32 }
          cleanup
  br label %139

139:                                              ; preds = %.split67.us, %.split67
  %.us-phi68 = phi { ptr, i32 } [ %138, %.split67 ], [ %115, %.split67.us ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %254

.critedge54.thread:                               ; preds = %127, %.critedge54, %134, %121
  %.247 = phi i32 [ 1, %121 ], [ 8, %134 ], [ 1, %.critedge54 ], [ 1, %127 ]
  %.2 = phi double [ %34, %121 ], [ %135, %134 ], [ %34, %.critedge54 ], [ %34, %127 ]
  %140 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, i64 4), align 4, !tbaa !8
  %141 = add nsw i32 %140, %1
  %142 = icmp slt i32 %spec.select.fr.6, 1
  br i1 %142, label %143, label %149

143:                                              ; preds = %.critedge54.thread
  %144 = icmp slt i32 %spec.select.fr.6, -1
  br i1 %144, label %.critedge54.thread.1, label %145

145:                                              ; preds = %143
  %146 = load i32, ptr %37, align 4, !tbaa !8
  %147 = shl i32 %146, 1
  %148 = sub nsw i32 %141, %147
  br label %149

149:                                              ; preds = %145, %.critedge54.thread
  %.042.1 = phi i32 [ %148, %145 ], [ %141, %.critedge54.thread ]
  %150 = icmp slt i32 %.042.1, %38
  br i1 %150, label %151, label %.critedge54.thread.1

151:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_Z7min_repB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i32 noundef %.042.1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  %152 = load i8, ptr getelementptr inbounds (i8, ptr @.str.14, i64 1), align 1, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %152)
          to label %.critedge54.1 unwind label %.split65

.critedge54.1:                                    ; preds = %151
  %153 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %153, label %154, label %.critedge54.thread.1

154:                                              ; preds = %.critedge54.1
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %152)
  %155 = invoke noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull %5, i32 noundef %.042.1)
          to label %156 unwind label %.split67

156:                                              ; preds = %154
  %157 = add nuw nsw i32 %.247, 7
  %158 = call double @llvm.fmuladd.f64(double %155, double 7.000000e+00, double %.2)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %.critedge54.thread.1

.critedge54.thread.1:                             ; preds = %156, %.critedge54.1, %149, %143
  %.247.1 = phi i32 [ %.247, %143 ], [ %157, %156 ], [ %.247, %.critedge54.1 ], [ %.247, %149 ]
  %.2.1 = phi double [ %.2, %143 ], [ %158, %156 ], [ %.2, %.critedge54.1 ], [ %.2, %149 ]
  %159 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, i64 8), align 8, !tbaa !8
  %160 = add nsw i32 %159, %1
  %161 = icmp slt i32 %spec.select.fr.6, 2
  br i1 %161, label %162, label %168

162:                                              ; preds = %.critedge54.thread.1
  %163 = icmp slt i32 %spec.select.fr.6, 0
  br i1 %163, label %.critedge54.thread.2, label %164

164:                                              ; preds = %162
  %165 = load i32, ptr %37, align 4, !tbaa !8
  %166 = shl i32 %165, 1
  %167 = sub nsw i32 %160, %166
  br label %168

168:                                              ; preds = %164, %.critedge54.thread.1
  %.042.2 = phi i32 [ %167, %164 ], [ %160, %.critedge54.thread.1 ]
  %169 = icmp slt i32 %.042.2, %38
  br i1 %169, label %170, label %.critedge54.thread.2

170:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_Z7min_repB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i32 noundef %.042.2)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  %171 = load i8, ptr getelementptr inbounds (i8, ptr @.str.14, i64 2), align 1, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %171)
          to label %.critedge54.2 unwind label %.split65

.critedge54.2:                                    ; preds = %170
  %172 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %172, label %173, label %.critedge54.thread.2

173:                                              ; preds = %.critedge54.2
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %171)
  %174 = invoke noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull %5, i32 noundef %.042.2)
          to label %175 unwind label %.split67

175:                                              ; preds = %173
  %176 = add nsw i32 %.247.1, 7
  %177 = call double @llvm.fmuladd.f64(double %174, double 7.000000e+00, double %.2.1)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %.critedge54.thread.2

.critedge54.thread.2:                             ; preds = %175, %.critedge54.2, %168, %162
  %.247.2 = phi i32 [ %.247.1, %162 ], [ %176, %175 ], [ %.247.1, %.critedge54.2 ], [ %.247.1, %168 ]
  %.2.2 = phi double [ %.2.1, %162 ], [ %177, %175 ], [ %.2.1, %.critedge54.2 ], [ %.2.1, %168 ]
  %178 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, i64 12), align 4, !tbaa !8
  %179 = add nsw i32 %178, %1
  %180 = icmp slt i32 %spec.select.fr.6, 3
  br i1 %180, label %181, label %187

181:                                              ; preds = %.critedge54.thread.2
  %182 = icmp slt i32 %spec.select.fr.6, 1
  br i1 %182, label %.critedge54.thread.3, label %183

183:                                              ; preds = %181
  %184 = load i32, ptr %37, align 4, !tbaa !8
  %185 = shl i32 %184, 1
  %186 = sub nsw i32 %179, %185
  br label %187

187:                                              ; preds = %183, %.critedge54.thread.2
  %.042.3 = phi i32 [ %186, %183 ], [ %179, %.critedge54.thread.2 ]
  %188 = icmp slt i32 %.042.3, %38
  br i1 %188, label %189, label %.critedge54.thread.3

189:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_Z7min_repB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i32 noundef %.042.3)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  %190 = load i8, ptr getelementptr inbounds (i8, ptr @.str.14, i64 3), align 1, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %190)
          to label %.critedge54.3 unwind label %.split65

.critedge54.3:                                    ; preds = %189
  %191 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %191, label %192, label %.critedge54.thread.3

192:                                              ; preds = %.critedge54.3
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %190)
  %193 = invoke noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull %5, i32 noundef %.042.3)
          to label %194 unwind label %.split67

194:                                              ; preds = %192
  %195 = add nsw i32 %.247.2, 7
  %196 = call double @llvm.fmuladd.f64(double %193, double 7.000000e+00, double %.2.2)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %.critedge54.thread.3

.critedge54.thread.3:                             ; preds = %194, %.critedge54.3, %187, %181
  %.247.3 = phi i32 [ %.247.2, %181 ], [ %195, %194 ], [ %.247.2, %.critedge54.3 ], [ %.247.2, %187 ]
  %.2.3 = phi double [ %.2.2, %181 ], [ %196, %194 ], [ %.2.2, %.critedge54.3 ], [ %.2.2, %187 ]
  %197 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, i64 16), align 16, !tbaa !8
  %198 = add nsw i32 %197, %1
  %199 = icmp slt i32 %spec.select.fr.6, 4
  br i1 %199, label %200, label %206

200:                                              ; preds = %.critedge54.thread.3
  %201 = icmp slt i32 %spec.select.fr.6, 2
  br i1 %201, label %.critedge54.thread.4, label %202

202:                                              ; preds = %200
  %203 = load i32, ptr %37, align 4, !tbaa !8
  %204 = shl i32 %203, 1
  %205 = sub nsw i32 %198, %204
  br label %206

206:                                              ; preds = %202, %.critedge54.thread.3
  %.042.4 = phi i32 [ %205, %202 ], [ %198, %.critedge54.thread.3 ]
  %207 = icmp slt i32 %.042.4, %38
  br i1 %207, label %208, label %.critedge54.thread.4

208:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_Z7min_repB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i32 noundef %.042.4)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  %209 = load i8, ptr getelementptr inbounds (i8, ptr @.str.14, i64 4), align 1, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %209)
          to label %.critedge54.4 unwind label %.split65

.critedge54.4:                                    ; preds = %208
  %210 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %210, label %211, label %.critedge54.thread.4

211:                                              ; preds = %.critedge54.4
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %209)
  %212 = invoke noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull %5, i32 noundef %.042.4)
          to label %213 unwind label %.split67

213:                                              ; preds = %211
  %214 = add nsw i32 %.247.3, 7
  %215 = call double @llvm.fmuladd.f64(double %212, double 7.000000e+00, double %.2.3)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %.critedge54.thread.4

.critedge54.thread.4:                             ; preds = %213, %.critedge54.4, %206, %200
  %.247.4 = phi i32 [ %.247.3, %200 ], [ %214, %213 ], [ %.247.3, %.critedge54.4 ], [ %.247.3, %206 ]
  %.2.4 = phi double [ %.2.3, %200 ], [ %215, %213 ], [ %.2.3, %.critedge54.4 ], [ %.2.3, %206 ]
  %216 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, i64 20), align 4, !tbaa !8
  %217 = add nsw i32 %216, %1
  %218 = icmp slt i32 %spec.select.fr.6, 5
  br i1 %218, label %219, label %225

219:                                              ; preds = %.critedge54.thread.4
  %220 = icmp slt i32 %spec.select.fr.6, 3
  br i1 %220, label %.critedge54.thread.5, label %221

221:                                              ; preds = %219
  %222 = load i32, ptr %37, align 4, !tbaa !8
  %223 = shl i32 %222, 1
  %224 = sub nsw i32 %217, %223
  br label %225

225:                                              ; preds = %221, %.critedge54.thread.4
  %.042.5 = phi i32 [ %224, %221 ], [ %217, %.critedge54.thread.4 ]
  %226 = icmp slt i32 %.042.5, %38
  br i1 %226, label %227, label %.critedge54.thread.5

227:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_Z7min_repB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i32 noundef %.042.5)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  %228 = load i8, ptr getelementptr inbounds (i8, ptr @.str.14, i64 5), align 1, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %228)
          to label %.critedge54.5 unwind label %.split65

.critedge54.5:                                    ; preds = %227
  %229 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %229, label %230, label %.critedge54.thread.5

230:                                              ; preds = %.critedge54.5
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %228)
  %231 = invoke noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull %5, i32 noundef %.042.5)
          to label %232 unwind label %.split67

232:                                              ; preds = %230
  %233 = add nsw i32 %.247.4, 7
  %234 = call double @llvm.fmuladd.f64(double %231, double 7.000000e+00, double %.2.4)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %.critedge54.thread.5

.critedge54.thread.5:                             ; preds = %232, %.critedge54.5, %225, %219
  %.247.5 = phi i32 [ %.247.4, %219 ], [ %233, %232 ], [ %.247.4, %.critedge54.5 ], [ %.247.4, %225 ]
  %.2.5 = phi double [ %.2.4, %219 ], [ %234, %232 ], [ %.2.4, %.critedge54.5 ], [ %.2.4, %225 ]
  %235 = load i32, ptr getelementptr inbounds (i8, ptr @__const._Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi.num, i64 24), align 8, !tbaa !8
  %236 = add nsw i32 %235, %1
  %237 = icmp slt i32 %spec.select.fr.6, 6
  br i1 %237, label %238, label %244

238:                                              ; preds = %.critedge54.thread.5
  %239 = icmp slt i32 %spec.select.fr.6, 4
  br i1 %239, label %.split70.us, label %240

240:                                              ; preds = %238
  %241 = load i32, ptr %37, align 4, !tbaa !8
  %242 = shl i32 %241, 1
  %243 = sub nsw i32 %236, %242
  br label %244

244:                                              ; preds = %240, %.critedge54.thread.5
  %.042.6 = phi i32 [ %243, %240 ], [ %236, %.critedge54.thread.5 ]
  %245 = icmp slt i32 %.042.6, %38
  br i1 %245, label %246, label %.split70.us

246:                                              ; preds = %244
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #6
  call void @_Z7min_repB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, i32 noundef %.042.6)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  %247 = load i8, ptr getelementptr inbounds (i8, ptr @.str.14, i64 6), align 1, !tbaa !5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %247)
          to label %.critedge54.6 unwind label %.split65

.critedge54.6:                                    ; preds = %246
  %248 = call noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #6
  br i1 %248, label %249, label %.split70.us

249:                                              ; preds = %.critedge54.6
  call void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_S5_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i8 noundef signext %247)
  %250 = invoke noundef double @_Z3dfsNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr noundef nonnull %5, i32 noundef %.042.6)
          to label %251 unwind label %.split67

251:                                              ; preds = %249
  %252 = add nsw i32 %.247.5, 7
  %253 = call double @llvm.fmuladd.f64(double %250, double 7.000000e+00, double %.2.5)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %.split70.us

254:                                              ; preds = %137, %139
  %.pn = phi { ptr, i32 } [ %.us-phi68, %139 ], [ %.us-phi, %137 ]
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #5

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" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}


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