; LLVM IR from fast-pack/FastPFOR :: src/benchbitpacking.ll (ZN11FastPForLib12unpack_tightEPKjPjj)

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

@.str = external hidden unnamed_addr constant [27 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

; 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

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11FastPForLib12unpack_tightEPKjPjj(ptr noalias noundef %0, ptr noalias noundef %1, i32 noundef %2) #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %10 = load i32, ptr %6, align 4, !tbaa !9
  switch i32 %10, label %121 [
    i32 0, label %11
    i32 1, label %25
    i32 2, label %28
    i32 3, label %31
    i32 4, label %34
    i32 5, label %37
    i32 6, label %40
    i32 7, label %43
    i32 8, label %46
    i32 9, label %49
    i32 10, label %52
    i32 11, label %55
    i32 12, label %58
    i32 13, label %61
    i32 14, label %64
    i32 15, label %67
    i32 16, label %70
    i32 17, label %73
    i32 18, label %76
    i32 19, label %79
    i32 20, label %82
    i32 21, label %85
    i32 22, label %88
    i32 23, label %91
    i32 24, label %94
    i32 25, label %97
    i32 26, label %100
    i32 27, label %103
    i32 28, label %106
    i32 29, label %109
    i32 30, label %112
    i32 31, label %115
    i32 32, label %118
  ]

11:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %12

12:                                               ; preds = %21, %11
  %13 = load i32, ptr %7, align 4, !tbaa !9
  %14 = icmp ult i32 %13, 32
  br i1 %14, label %16, label %15

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

16:                                               ; preds = %12
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = load i32, ptr %7, align 4, !tbaa !9
  %19 = zext i32 %18 to i64
  %20 = getelementptr inbounds i32, ptr %17, i64 %19
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %16
  %22 = load i32, ptr %7, align 4, !tbaa !9
  %23 = add i32 %22, 1
  store i32 %23, ptr %7, align 4, !tbaa !9
  br label %12, !llvm.loop !11

24:                                               ; preds = %15
  br label %128

25:                                               ; preds = %3
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj1ELb1EEEvPKjPj(ptr noundef %26, ptr noundef %27)
  br label %128

28:                                               ; preds = %3
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj2ELb1EEEvPKjPj(ptr noundef %29, ptr noundef %30)
  br label %128

31:                                               ; preds = %3
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj3ELb1EEEvPKjPj(ptr noundef %32, ptr noundef %33)
  br label %128

34:                                               ; preds = %3
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj4ELb1EEEvPKjPj(ptr noundef %35, ptr noundef %36)
  br label %128

37:                                               ; preds = %3
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj5ELb1EEEvPKjPj(ptr noundef %38, ptr noundef %39)
  br label %128

40:                                               ; preds = %3
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj6ELb1EEEvPKjPj(ptr noundef %41, ptr noundef %42)
  br label %128

43:                                               ; preds = %3
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj7ELb1EEEvPKjPj(ptr noundef %44, ptr noundef %45)
  br label %128

46:                                               ; preds = %3
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj8ELb1EEEvPKjPj(ptr noundef %47, ptr noundef %48)
  br label %128

49:                                               ; preds = %3
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj9ELb1EEEvPKjPj(ptr noundef %50, ptr noundef %51)
  br label %128

52:                                               ; preds = %3
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj10ELb1EEEvPKjPj(ptr noundef %53, ptr noundef %54)
  br label %128

55:                                               ; preds = %3
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj11ELb1EEEvPKjPj(ptr noundef %56, ptr noundef %57)
  br label %128

58:                                               ; preds = %3
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj12ELb1EEEvPKjPj(ptr noundef %59, ptr noundef %60)
  br label %128

61:                                               ; preds = %3
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj13ELb1EEEvPKjPj(ptr noundef %62, ptr noundef %63)
  br label %128

64:                                               ; preds = %3
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj14ELb1EEEvPKjPj(ptr noundef %65, ptr noundef %66)
  br label %128

67:                                               ; preds = %3
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj15ELb1EEEvPKjPj(ptr noundef %68, ptr noundef %69)
  br label %128

70:                                               ; preds = %3
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj16ELb1EEEvPKjPj(ptr noundef %71, ptr noundef %72)
  br label %128

73:                                               ; preds = %3
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj17ELb1EEEvPKjPj(ptr noundef %74, ptr noundef %75)
  br label %128

76:                                               ; preds = %3
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj18ELb1EEEvPKjPj(ptr noundef %77, ptr noundef %78)
  br label %128

79:                                               ; preds = %3
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj19ELb1EEEvPKjPj(ptr noundef %80, ptr noundef %81)
  br label %128

82:                                               ; preds = %3
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj20ELb1EEEvPKjPj(ptr noundef %83, ptr noundef %84)
  br label %128

85:                                               ; preds = %3
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj21ELb1EEEvPKjPj(ptr noundef %86, ptr noundef %87)
  br label %128

88:                                               ; preds = %3
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj22ELb1EEEvPKjPj(ptr noundef %89, ptr noundef %90)
  br label %128

91:                                               ; preds = %3
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj23ELb1EEEvPKjPj(ptr noundef %92, ptr noundef %93)
  br label %128

94:                                               ; preds = %3
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj24ELb1EEEvPKjPj(ptr noundef %95, ptr noundef %96)
  br label %128

97:                                               ; preds = %3
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj25ELb1EEEvPKjPj(ptr noundef %98, ptr noundef %99)
  br label %128

100:                                              ; preds = %3
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj26ELb1EEEvPKjPj(ptr noundef %101, ptr noundef %102)
  br label %128

103:                                              ; preds = %3
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj27ELb1EEEvPKjPj(ptr noundef %104, ptr noundef %105)
  br label %128

106:                                              ; preds = %3
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj28ELb1EEEvPKjPj(ptr noundef %107, ptr noundef %108)
  br label %128

109:                                              ; preds = %3
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj29ELb1EEEvPKjPj(ptr noundef %110, ptr noundef %111)
  br label %128

112:                                              ; preds = %3
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj30ELb1EEEvPKjPj(ptr noundef %113, ptr noundef %114)
  br label %128

115:                                              ; preds = %3
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj31ELb1EEEvPKjPj(ptr noundef %116, ptr noundef %117)
  br label %128

118:                                              ; preds = %3
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN11FastPForLib14__unpack_tightILj32ELb1EEEvPKjPj(ptr noundef %119, ptr noundef %120)
  br label %128

121:                                              ; preds = %3
  %122 = call ptr @__cxa_allocate_exception(i64 16) #5
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %122, ptr noundef @.str)
          to label %123 unwind label %124

123:                                              ; preds = %121
  call void @__cxa_throw(ptr %122, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #6
  unreachable

124:                                              ; preds = %121
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %8, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %9, align 4
  call void @__cxa_free_exception(ptr %122) #5
  br label %129

128:                                              ; preds = %118, %115, %112, %109, %106, %103, %100, %97, %94, %91, %88, %85, %82, %79, %76, %73, %70, %67, %64, %61, %58, %55, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %24
  ret void

129:                                              ; preds = %124
  %130 = load ptr, ptr %8, align 8
  %131 = load i32, ptr %9, align 4
  %132 = insertvalue { ptr, i32 } poison, ptr %130, 0
  %133 = insertvalue { ptr, i32 } %132, i32 %131, 1
  resume { ptr, i32 } %133
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj1ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj2ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj3ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj4ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj5ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj6ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj7ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj8ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj9ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj10ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj11ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj12ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj13ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj14ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj15ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj16ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj17ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj18ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj19ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj20ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj21ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj22ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj23ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj24ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj25ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj26ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj27ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj28ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj29ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj30ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj31ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj32ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) #4

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

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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

@.str = external hidden unnamed_addr constant [27 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef) unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11FastPForLib12unpack_tightEPKjPjj(ptr noalias noundef %0, ptr noalias noundef %1, i32 noundef %2) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  switch i32 %2, label %36 [
    i32 0, label %.preheader.preheader
    i32 1, label %4
    i32 2, label %5
    i32 3, label %6
    i32 4, label %7
    i32 5, label %8
    i32 6, label %9
    i32 7, label %10
    i32 8, label %11
    i32 9, label %12
    i32 10, label %13
    i32 11, label %14
    i32 12, label %15
    i32 13, label %16
    i32 14, label %17
    i32 15, label %18
    i32 16, label %19
    i32 17, label %20
    i32 18, label %21
    i32 19, label %22
    i32 20, label %23
    i32 21, label %24
    i32 22, label %25
    i32 23, label %26
    i32 24, label %27
    i32 25, label %28
    i32 26, label %29
    i32 27, label %30
    i32 28, label %31
    i32 29, label %32
    i32 30, label %33
    i32 31, label %34
    i32 32, label %35
  ]

.preheader.preheader:                             ; preds = %3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(128) %1, i8 0, i64 128, i1 false), !tbaa !5
  br label %.loopexit

4:                                                ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj1ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

5:                                                ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj2ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

6:                                                ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj3ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

7:                                                ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj4ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

8:                                                ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj5ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

9:                                                ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj6ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

10:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj7ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

11:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj8ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

12:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj9ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

13:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj10ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

14:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj11ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

15:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj12ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

16:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj13ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

17:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj14ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

18:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj15ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

19:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj16ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

20:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj17ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

21:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj18ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

22:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj19ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

23:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj20ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

24:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj21ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

25:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj22ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

26:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj23ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

27:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj24ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

28:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj25ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

29:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj26ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

30:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj27ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

31:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj28ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

32:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj29ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

33:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj30ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

34:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj31ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

35:                                               ; preds = %3
  tail call void @_ZN11FastPForLib14__unpack_tightILj32ELb1EEEvPKjPj(ptr noundef %0, ptr noundef %1)
  br label %.loopexit

36:                                               ; preds = %3
  %37 = tail call ptr @__cxa_allocate_exception(i64 16) #5
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull @.str)
          to label %38 unwind label %39

38:                                               ; preds = %36
  tail call void @__cxa_throw(ptr nonnull %37, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #6
  unreachable

39:                                               ; preds = %36
  %40 = landingpad { ptr, i32 }
          cleanup
  tail call void @__cxa_free_exception(ptr %37) #5
  resume { ptr, i32 } %40

.loopexit:                                        ; preds = %.preheader.preheader, %35, %34, %33, %32, %31, %30, %29, %28, %27, %26, %25, %24, %23, %22, %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj1ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj2ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj3ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj4ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj5ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj6ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj7ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj8ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj9ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj10ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj11ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj12ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj13ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj14ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj15ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj16ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj17ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj18ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj19ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj20ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj21ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj22ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj23ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj24ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj25ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj26ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj27ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj28ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj29ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj30ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj31ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11FastPForLib14__unpack_tightILj32ELb1EEEvPKjPj(ptr noalias noundef, ptr noalias noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass,TailCallElimPass