; LLVM IR from IlyaGrebnov/libbsc :: bsc.ll (Z13ProcessSwitchPc)

; 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"

@paramBlockSize = external dso_local global i32, align 4
@paramBlockSorter = external dso_local global i32, align 4
@paramCoder = external dso_local global i32, align 4
@paramSortingContexts = external dso_local global i32, align 4
@paramEnableCUDA = external dso_local global i32, align 4
@paramEnableSegmentation = external dso_local global i32, align 4
@paramEnableReordering = external dso_local global i32, align 4
@paramEnableLZP = external dso_local global i32, align 4
@paramLZPHashSize = external dso_local global i32, align 4
@paramLZPMinLen = external dso_local global i32, align 4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9ShowUsagev() #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z13ProcessSwitchPc(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = load i8, ptr %7, align 1, !tbaa !9
  %9 = sext i8 %8 to i32
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %11, label %12

11:                                               ; preds = %1
  call void @_Z9ShowUsagev()
  br label %12

12:                                               ; preds = %11, %1
  br label %13

13:                                               ; preds = %164, %12
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = load i8, ptr %14, align 1, !tbaa !9
  %16 = sext i8 %15 to i32
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %18, label %165

18:                                               ; preds = %13
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i32 1
  store ptr %20, ptr %2, align 8, !tbaa !5
  %21 = load i8, ptr %19, align 1, !tbaa !9
  %22 = sext i8 %21 to i32
  switch i32 %22, label %163 [
    i32 98, label %23
    i32 109, label %56
    i32 99, label %85
    i32 101, label %95
    i32 72, label %105
    i32 77, label %132
    i32 108, label %159
    i32 115, label %160
    i32 114, label %161
    i32 112, label %162
  ]

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %24, ptr %3, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %37, %23
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = load i8, ptr %26, align 1, !tbaa !9
  %28 = sext i8 %27 to i32
  %29 = icmp sge i32 %28, 48
  br i1 %29, label %30, label %35

30:                                               ; preds = %25
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = load i8, ptr %31, align 1, !tbaa !9
  %33 = sext i8 %32 to i32
  %34 = icmp sle i32 %33, 57
  br label %35

35:                                               ; preds = %30, %25
  %36 = phi i1 [ false, %25 ], [ %34, %30 ]
  br i1 %36, label %37, label %40

37:                                               ; preds = %35
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i32 1
  store ptr %39, ptr %2, align 8, !tbaa !5
  br label %25, !llvm.loop !10

40:                                               ; preds = %35
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = call i32 @atoi(ptr noundef %41) #4
  store i32 %42, ptr @paramBlockSize, align 4, !tbaa !12
  %43 = load i32, ptr @paramBlockSize, align 4, !tbaa !12
  %44 = icmp slt i32 %43, 10000
  br i1 %44, label %45, label %48

45:                                               ; preds = %40
  %46 = load i32, ptr @paramBlockSize, align 4, !tbaa !12
  %47 = mul nsw i32 %46, 1048576
  store i32 %47, ptr @paramBlockSize, align 4, !tbaa !12
  br label %48

48:                                               ; preds = %45, %40
  %49 = load i32, ptr @paramBlockSize, align 4, !tbaa !12
  %50 = icmp slt i32 %49, 10000
  br i1 %50, label %54, label %51

51:                                               ; preds = %48
  %52 = load i32, ptr @paramBlockSize, align 4, !tbaa !12
  %53 = icmp sgt i32 %52, 2146435072
  br i1 %53, label %54, label %55

54:                                               ; preds = %51, %48
  call void @_Z9ShowUsagev()
  br label %55

55:                                               ; preds = %54, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  br label %164

56:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %57 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %57, ptr %4, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %70, %56
  %59 = load ptr, ptr %2, align 8, !tbaa !5
  %60 = load i8, ptr %59, align 1, !tbaa !9
  %61 = sext i8 %60 to i32
  %62 = icmp sge i32 %61, 48
  br i1 %62, label %63, label %68

63:                                               ; preds = %58
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = load i8, ptr %64, align 1, !tbaa !9
  %66 = sext i8 %65 to i32
  %67 = icmp sle i32 %66, 57
  br label %68

68:                                               ; preds = %63, %58
  %69 = phi i1 [ false, %58 ], [ %67, %63 ]
  br i1 %69, label %70, label %73

70:                                               ; preds = %68
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %71, i32 1
  store ptr %72, ptr %2, align 8, !tbaa !5
  br label %58, !llvm.loop !14

73:                                               ; preds = %68
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = call i32 @atoi(ptr noundef %74) #4
  switch i32 %75, label %83 [
    i32 0, label %76
    i32 3, label %77
    i32 4, label %78
    i32 5, label %79
    i32 6, label %80
    i32 7, label %81
    i32 8, label %82
  ]

76:                                               ; preds = %73
  store i32 1, ptr @paramBlockSorter, align 4, !tbaa !12
  br label %84

77:                                               ; preds = %73
  store i32 3, ptr @paramBlockSorter, align 4, !tbaa !12
  br label %84

78:                                               ; preds = %73
  store i32 4, ptr @paramBlockSorter, align 4, !tbaa !12
  br label %84

79:                                               ; preds = %73
  store i32 5, ptr @paramBlockSorter, align 4, !tbaa !12
  br label %84

80:                                               ; preds = %73
  store i32 6, ptr @paramBlockSorter, align 4, !tbaa !12
  br label %84

81:                                               ; preds = %73
  store i32 7, ptr @paramBlockSorter, align 4, !tbaa !12
  store i32 1, ptr @paramEnableCUDA, align 4, !tbaa !12
  br label %84

82:                                               ; preds = %73
  store i32 8, ptr @paramBlockSorter, align 4, !tbaa !12
  store i32 1, ptr @paramEnableCUDA, align 4, !tbaa !12
  br label %84

83:                                               ; preds = %73
  call void @_Z9ShowUsagev()
  br label %84

84:                                               ; preds = %83, %82, %81, %80, %79, %78, %77, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  br label %164

85:                                               ; preds = %18
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i32 1
  store ptr %87, ptr %2, align 8, !tbaa !5
  %88 = load i8, ptr %86, align 1, !tbaa !9
  %89 = sext i8 %88 to i32
  switch i32 %89, label %93 [
    i32 102, label %90
    i32 112, label %91
    i32 97, label %92
  ]

90:                                               ; preds = %85
  store i32 1, ptr @paramSortingContexts, align 4, !tbaa !12
  br label %94

91:                                               ; preds = %85
  store i32 2, ptr @paramSortingContexts, align 4, !tbaa !12
  br label %94

92:                                               ; preds = %85
  store i32 3, ptr @paramSortingContexts, align 4, !tbaa !12
  br label %94

93:                                               ; preds = %85
  call void @_Z9ShowUsagev()
  br label %94

94:                                               ; preds = %93, %92, %91, %90
  br label %164

95:                                               ; preds = %18
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %96, i32 1
  store ptr %97, ptr %2, align 8, !tbaa !5
  %98 = load i8, ptr %96, align 1, !tbaa !9
  %99 = sext i8 %98 to i32
  switch i32 %99, label %103 [
    i32 48, label %100
    i32 49, label %101
    i32 50, label %102
  ]

100:                                              ; preds = %95
  store i32 3, ptr @paramCoder, align 4, !tbaa !12
  br label %104

101:                                              ; preds = %95
  store i32 1, ptr @paramCoder, align 4, !tbaa !12
  br label %104

102:                                              ; preds = %95
  store i32 2, ptr @paramCoder, align 4, !tbaa !12
  br label %104

103:                                              ; preds = %95
  call void @_Z9ShowUsagev()
  br label %104

104:                                              ; preds = %103, %102, %101, %100
  br label %164

105:                                              ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %106 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %106, ptr %5, align 8, !tbaa !5
  br label %107

107:                                              ; preds = %119, %105
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  %109 = load i8, ptr %108, align 1, !tbaa !9
  %110 = sext i8 %109 to i32
  %111 = icmp sge i32 %110, 48
  br i1 %111, label %112, label %117

112:                                              ; preds = %107
  %113 = load ptr, ptr %2, align 8, !tbaa !5
  %114 = load i8, ptr %113, align 1, !tbaa !9
  %115 = sext i8 %114 to i32
  %116 = icmp sle i32 %115, 57
  br label %117

117:                                              ; preds = %112, %107
  %118 = phi i1 [ false, %107 ], [ %116, %112 ]
  br i1 %118, label %119, label %122

119:                                              ; preds = %117
  %120 = load ptr, ptr %2, align 8, !tbaa !5
  %121 = getelementptr inbounds i8, ptr %120, i32 1
  store ptr %121, ptr %2, align 8, !tbaa !5
  br label %107, !llvm.loop !15

122:                                              ; preds = %117
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = call i32 @atoi(ptr noundef %123) #4
  store i32 %124, ptr @paramLZPHashSize, align 4, !tbaa !12
  %125 = load i32, ptr @paramLZPHashSize, align 4, !tbaa !12
  %126 = icmp slt i32 %125, 10
  br i1 %126, label %130, label %127

127:                                              ; preds = %122
  %128 = load i32, ptr @paramLZPHashSize, align 4, !tbaa !12
  %129 = icmp sgt i32 %128, 28
  br i1 %129, label %130, label %131

130:                                              ; preds = %127, %122
  call void @_Z9ShowUsagev()
  br label %131

131:                                              ; preds = %130, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  br label %164

132:                                              ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %133 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %133, ptr %6, align 8, !tbaa !5
  br label %134

134:                                              ; preds = %146, %132
  %135 = load ptr, ptr %2, align 8, !tbaa !5
  %136 = load i8, ptr %135, align 1, !tbaa !9
  %137 = sext i8 %136 to i32
  %138 = icmp sge i32 %137, 48
  br i1 %138, label %139, label %144

139:                                              ; preds = %134
  %140 = load ptr, ptr %2, align 8, !tbaa !5
  %141 = load i8, ptr %140, align 1, !tbaa !9
  %142 = sext i8 %141 to i32
  %143 = icmp sle i32 %142, 57
  br label %144

144:                                              ; preds = %139, %134
  %145 = phi i1 [ false, %134 ], [ %143, %139 ]
  br i1 %145, label %146, label %149

146:                                              ; preds = %144
  %147 = load ptr, ptr %2, align 8, !tbaa !5
  %148 = getelementptr inbounds i8, ptr %147, i32 1
  store ptr %148, ptr %2, align 8, !tbaa !5
  br label %134, !llvm.loop !16

149:                                              ; preds = %144
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = call i32 @atoi(ptr noundef %150) #4
  store i32 %151, ptr @paramLZPMinLen, align 4, !tbaa !12
  %152 = load i32, ptr @paramLZPMinLen, align 4, !tbaa !12
  %153 = icmp slt i32 %152, 4
  br i1 %153, label %157, label %154

154:                                              ; preds = %149
  %155 = load i32, ptr @paramLZPMinLen, align 4, !tbaa !12
  %156 = icmp sgt i32 %155, 255
  br i1 %156, label %157, label %158

157:                                              ; preds = %154, %149
  call void @_Z9ShowUsagev()
  br label %158

158:                                              ; preds = %157, %154
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  br label %164

159:                                              ; preds = %18
  store i32 1, ptr @paramEnableLZP, align 4, !tbaa !12
  br label %164

160:                                              ; preds = %18
  store i32 1, ptr @paramEnableSegmentation, align 4, !tbaa !12
  br label %164

161:                                              ; preds = %18
  store i32 1, ptr @paramEnableReordering, align 4, !tbaa !12
  br label %164

162:                                              ; preds = %18
  store i32 0, ptr @paramEnableReordering, align 4, !tbaa !12
  store i32 0, ptr @paramEnableSegmentation, align 4, !tbaa !12
  store i32 0, ptr @paramEnableLZP, align 4, !tbaa !12
  br label %164

163:                                              ; preds = %18
  call void @_Z9ShowUsagev()
  br label %164

164:                                              ; preds = %163, %162, %161, %160, %159, %158, %131, %104, %94, %84, %55
  br label %13, !llvm.loop !17

165:                                              ; preds = %13
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint mustprogress nounwind willreturn memory(read) 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 = { nounwind }
attributes #4 = { nounwind willreturn memory(read) }

!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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}


; 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"

@paramBlockSize = external dso_local local_unnamed_addr global i32, align 4
@paramBlockSorter = external dso_local local_unnamed_addr global i32, align 4
@paramCoder = external dso_local local_unnamed_addr global i32, align 4
@paramSortingContexts = external dso_local local_unnamed_addr global i32, align 4
@paramEnableCUDA = external dso_local local_unnamed_addr global i32, align 4
@paramEnableSegmentation = external dso_local local_unnamed_addr global i32, align 4
@paramEnableReordering = external dso_local local_unnamed_addr global i32, align 4
@paramEnableLZP = external dso_local local_unnamed_addr global i32, align 4
@paramLZPHashSize = external dso_local local_unnamed_addr global i32, align 4
@paramLZPMinLen = external dso_local local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z9ShowUsagev() local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z13ProcessSwitchPc(ptr nocapture noundef readonly %0) local_unnamed_addr #0 {
  %2 = load i8, ptr %0, align 1, !tbaa !5
  %3 = icmp eq i8 %2, 0
  br i1 %3, label %4, label %.lr.ph.preheader

4:                                                ; preds = %1
  tail call void @_Z9ShowUsagev()
  %.pre = load i8, ptr %0, align 1, !tbaa !5
  %.not49 = icmp eq i8 %.pre, 0
  br i1 %.not49, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %1, %4
  %.ph = phi i8 [ %2, %1 ], [ %.pre, %4 ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %58
  %5 = phi i8 [ %59, %58 ], [ %.ph, %.lr.ph.preheader ]
  %.050 = phi ptr [ %.5, %58 ], [ %0, %.lr.ph.preheader ]
  %6 = getelementptr inbounds i8, ptr %.050, i64 1
  switch i8 %5, label %57 [
    i8 98, label %.preheader
    i8 109, label %.preheader46
    i8 99, label %27
    i8 101, label %34
    i8 72, label %.preheader47
    i8 77, label %.preheader48
    i8 108, label %53
    i8 115, label %54
    i8 114, label %55
    i8 112, label %56
  ]

.preheader:                                       ; preds = %.lr.ph, %.preheader
  %.1 = phi ptr [ %9, %.preheader ], [ %6, %.lr.ph ]
  %7 = load i8, ptr %.1, align 1, !tbaa !5
  %8 = add i8 %7, -48
  %or.cond42 = icmp ult i8 %8, 10
  %9 = getelementptr inbounds i8, ptr %.1, i64 1
  br i1 %or.cond42, label %.preheader, label %.critedge, !llvm.loop !8

.critedge:                                        ; preds = %.preheader
  %10 = tail call i32 @atoi(ptr nocapture noundef %6) #2
  %11 = icmp slt i32 %10, 10000
  %12 = shl nsw i32 %10, 20
  %spec.select = select i1 %11, i32 %12, i32 %10
  store i32 %spec.select, ptr @paramBlockSize, align 4, !tbaa !10
  %13 = add i32 %spec.select, -2146435073
  %or.cond = icmp ult i32 %13, -2146425073
  br i1 %or.cond, label %14, label %58

14:                                               ; preds = %.critedge
  tail call void @_Z9ShowUsagev()
  br label %58

.preheader46:                                     ; preds = %.lr.ph, %.preheader46
  %.2 = phi ptr [ %17, %.preheader46 ], [ %6, %.lr.ph ]
  %15 = load i8, ptr %.2, align 1, !tbaa !5
  %16 = add i8 %15, -48
  %or.cond43 = icmp ult i8 %16, 10
  %17 = getelementptr inbounds i8, ptr %.2, i64 1
  br i1 %or.cond43, label %.preheader46, label %.critedge3, !llvm.loop !12

.critedge3:                                       ; preds = %.preheader46
  %18 = tail call i32 @atoi(ptr nocapture noundef %6) #2
  switch i32 %18, label %26 [
    i32 0, label %19
    i32 3, label %20
    i32 4, label %21
    i32 5, label %22
    i32 6, label %23
    i32 7, label %24
    i32 8, label %25
  ]

19:                                               ; preds = %.critedge3
  store i32 1, ptr @paramBlockSorter, align 4, !tbaa !10
  br label %58

20:                                               ; preds = %.critedge3
  store i32 3, ptr @paramBlockSorter, align 4, !tbaa !10
  br label %58

21:                                               ; preds = %.critedge3
  store i32 4, ptr @paramBlockSorter, align 4, !tbaa !10
  br label %58

22:                                               ; preds = %.critedge3
  store i32 5, ptr @paramBlockSorter, align 4, !tbaa !10
  br label %58

23:                                               ; preds = %.critedge3
  store i32 6, ptr @paramBlockSorter, align 4, !tbaa !10
  br label %58

24:                                               ; preds = %.critedge3
  store i32 7, ptr @paramBlockSorter, align 4, !tbaa !10
  store i32 1, ptr @paramEnableCUDA, align 4, !tbaa !10
  br label %58

25:                                               ; preds = %.critedge3
  store i32 8, ptr @paramBlockSorter, align 4, !tbaa !10
  store i32 1, ptr @paramEnableCUDA, align 4, !tbaa !10
  br label %58

26:                                               ; preds = %.critedge3
  tail call void @_Z9ShowUsagev()
  br label %58

27:                                               ; preds = %.lr.ph
  %28 = getelementptr inbounds i8, ptr %.050, i64 2
  %29 = load i8, ptr %6, align 1, !tbaa !5
  switch i8 %29, label %33 [
    i8 102, label %30
    i8 112, label %31
    i8 97, label %32
  ]

30:                                               ; preds = %27
  store i32 1, ptr @paramSortingContexts, align 4, !tbaa !10
  br label %58

31:                                               ; preds = %27
  store i32 2, ptr @paramSortingContexts, align 4, !tbaa !10
  br label %58

32:                                               ; preds = %27
  store i32 3, ptr @paramSortingContexts, align 4, !tbaa !10
  br label %58

33:                                               ; preds = %27
  tail call void @_Z9ShowUsagev()
  br label %58

34:                                               ; preds = %.lr.ph
  %35 = getelementptr inbounds i8, ptr %.050, i64 2
  %36 = load i8, ptr %6, align 1, !tbaa !5
  switch i8 %36, label %40 [
    i8 48, label %37
    i8 49, label %38
    i8 50, label %39
  ]

37:                                               ; preds = %34
  store i32 3, ptr @paramCoder, align 4, !tbaa !10
  br label %58

38:                                               ; preds = %34
  store i32 1, ptr @paramCoder, align 4, !tbaa !10
  br label %58

39:                                               ; preds = %34
  store i32 2, ptr @paramCoder, align 4, !tbaa !10
  br label %58

40:                                               ; preds = %34
  tail call void @_Z9ShowUsagev()
  br label %58

.preheader47:                                     ; preds = %.lr.ph, %.preheader47
  %.3 = phi ptr [ %43, %.preheader47 ], [ %6, %.lr.ph ]
  %41 = load i8, ptr %.3, align 1, !tbaa !5
  %42 = add i8 %41, -48
  %or.cond44 = icmp ult i8 %42, 10
  %43 = getelementptr inbounds i8, ptr %.3, i64 1
  br i1 %or.cond44, label %.preheader47, label %.critedge5, !llvm.loop !13

.critedge5:                                       ; preds = %.preheader47
  %44 = tail call i32 @atoi(ptr nocapture noundef %6) #2
  store i32 %44, ptr @paramLZPHashSize, align 4, !tbaa !10
  %45 = add i32 %44, -29
  %or.cond7 = icmp ult i32 %45, -19
  br i1 %or.cond7, label %46, label %58

46:                                               ; preds = %.critedge5
  tail call void @_Z9ShowUsagev()
  br label %58

.preheader48:                                     ; preds = %.lr.ph, %.preheader48
  %.4 = phi ptr [ %49, %.preheader48 ], [ %6, %.lr.ph ]
  %47 = load i8, ptr %.4, align 1, !tbaa !5
  %48 = add i8 %47, -48
  %or.cond45 = icmp ult i8 %48, 10
  %49 = getelementptr inbounds i8, ptr %.4, i64 1
  br i1 %or.cond45, label %.preheader48, label %.critedge9, !llvm.loop !14

.critedge9:                                       ; preds = %.preheader48
  %50 = tail call i32 @atoi(ptr nocapture noundef %6) #2
  store i32 %50, ptr @paramLZPMinLen, align 4, !tbaa !10
  %51 = add i32 %50, -256
  %or.cond11 = icmp ult i32 %51, -252
  br i1 %or.cond11, label %52, label %58

52:                                               ; preds = %.critedge9
  tail call void @_Z9ShowUsagev()
  br label %58

53:                                               ; preds = %.lr.ph
  store i32 1, ptr @paramEnableLZP, align 4, !tbaa !10
  br label %58

54:                                               ; preds = %.lr.ph
  store i32 1, ptr @paramEnableSegmentation, align 4, !tbaa !10
  br label %58

55:                                               ; preds = %.lr.ph
  store i32 1, ptr @paramEnableReordering, align 4, !tbaa !10
  br label %58

56:                                               ; preds = %.lr.ph
  store i32 0, ptr @paramEnableReordering, align 4, !tbaa !10
  store i32 0, ptr @paramEnableSegmentation, align 4, !tbaa !10
  store i32 0, ptr @paramEnableLZP, align 4, !tbaa !10
  br label %58

57:                                               ; preds = %.lr.ph
  tail call void @_Z9ShowUsagev()
  br label %58

58:                                               ; preds = %52, %.critedge9, %46, %.critedge5, %19, %20, %21, %22, %23, %24, %25, %26, %14, %.critedge, %37, %38, %39, %40, %30, %31, %32, %33, %57, %56, %55, %54, %53
  %.5 = phi ptr [ %6, %57 ], [ %6, %56 ], [ %6, %55 ], [ %6, %54 ], [ %6, %53 ], [ %35, %40 ], [ %35, %39 ], [ %35, %38 ], [ %35, %37 ], [ %28, %33 ], [ %28, %32 ], [ %28, %31 ], [ %28, %30 ], [ %.1, %.critedge ], [ %.1, %14 ], [ %.2, %26 ], [ %.2, %25 ], [ %.2, %24 ], [ %.2, %23 ], [ %.2, %22 ], [ %.2, %21 ], [ %.2, %20 ], [ %.2, %19 ], [ %.3, %.critedge5 ], [ %.3, %46 ], [ %.4, %.critedge9 ], [ %.4, %52 ]
  %59 = load i8, ptr %.5, align 1, !tbaa !5
  %.not = icmp eq i8 %59, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %58, %4
  ret void
}

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #1

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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 = { nounwind willreturn memory(read) }

!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 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !6, i64 0}
!12 = distinct !{!12, !9}
!13 = distinct !{!13, !9}
!14 = distinct !{!14, !9}
!15 = distinct !{!15, !9}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass