; LLVM IR from jgaeddert/liquid-dsp :: src/utility/src (pack_bytes)

; 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 [83 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @liquid_unpack_bytes(ptr noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #2 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  %15 = load i32, ptr %10, align 4, !tbaa !9
  %16 = load i32, ptr %8, align 4, !tbaa !9
  %17 = mul i32 8, %16
  %18 = icmp ult i32 %15, %17
  br i1 %18, label %19, label %21

19:                                               ; preds = %5
  %20 = call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 9, ptr noundef @.str, i32 noundef 231, ptr noundef @.str.6)
  store i32 %20, ptr %6, align 4
  br label %117

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

22:                                               ; preds = %111, %21
  %23 = load i32, ptr %12, align 4, !tbaa !9
  %24 = load i32, ptr %8, align 4, !tbaa !9
  %25 = icmp ult i32 %23, %24
  br i1 %25, label %26, label %114

26:                                               ; preds = %22
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = load i32, ptr %12, align 4, !tbaa !9
  %29 = zext i32 %28 to i64
  %30 = getelementptr inbounds i8, ptr %27, i64 %29
  %31 = load i8, ptr %30, align 1, !tbaa !11
  store i8 %31, ptr %14, align 1, !tbaa !11
  %32 = load i8, ptr %14, align 1, !tbaa !11
  %33 = zext i8 %32 to i32
  %34 = ashr i32 %33, 7
  %35 = and i32 %34, 1
  %36 = trunc i32 %35 to i8
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = load i32, ptr %13, align 4, !tbaa !9
  %39 = add i32 %38, 1
  store i32 %39, ptr %13, align 4, !tbaa !9
  %40 = zext i32 %38 to i64
  %41 = getelementptr inbounds i8, ptr %37, i64 %40
  store i8 %36, ptr %41, align 1, !tbaa !11
  %42 = load i8, ptr %14, align 1, !tbaa !11
  %43 = zext i8 %42 to i32
  %44 = ashr i32 %43, 6
  %45 = and i32 %44, 1
  %46 = trunc i32 %45 to i8
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = load i32, ptr %13, align 4, !tbaa !9
  %49 = add i32 %48, 1
  store i32 %49, ptr %13, align 4, !tbaa !9
  %50 = zext i32 %48 to i64
  %51 = getelementptr inbounds i8, ptr %47, i64 %50
  store i8 %46, ptr %51, align 1, !tbaa !11
  %52 = load i8, ptr %14, align 1, !tbaa !11
  %53 = zext i8 %52 to i32
  %54 = ashr i32 %53, 5
  %55 = and i32 %54, 1
  %56 = trunc i32 %55 to i8
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = add i32 %58, 1
  store i32 %59, ptr %13, align 4, !tbaa !9
  %60 = zext i32 %58 to i64
  %61 = getelementptr inbounds i8, ptr %57, i64 %60
  store i8 %56, ptr %61, align 1, !tbaa !11
  %62 = load i8, ptr %14, align 1, !tbaa !11
  %63 = zext i8 %62 to i32
  %64 = ashr i32 %63, 4
  %65 = and i32 %64, 1
  %66 = trunc i32 %65 to i8
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = load i32, ptr %13, align 4, !tbaa !9
  %69 = add i32 %68, 1
  store i32 %69, ptr %13, align 4, !tbaa !9
  %70 = zext i32 %68 to i64
  %71 = getelementptr inbounds i8, ptr %67, i64 %70
  store i8 %66, ptr %71, align 1, !tbaa !11
  %72 = load i8, ptr %14, align 1, !tbaa !11
  %73 = zext i8 %72 to i32
  %74 = ashr i32 %73, 3
  %75 = and i32 %74, 1
  %76 = trunc i32 %75 to i8
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = load i32, ptr %13, align 4, !tbaa !9
  %79 = add i32 %78, 1
  store i32 %79, ptr %13, align 4, !tbaa !9
  %80 = zext i32 %78 to i64
  %81 = getelementptr inbounds i8, ptr %77, i64 %80
  store i8 %76, ptr %81, align 1, !tbaa !11
  %82 = load i8, ptr %14, align 1, !tbaa !11
  %83 = zext i8 %82 to i32
  %84 = ashr i32 %83, 2
  %85 = and i32 %84, 1
  %86 = trunc i32 %85 to i8
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load i32, ptr %13, align 4, !tbaa !9
  %89 = add i32 %88, 1
  store i32 %89, ptr %13, align 4, !tbaa !9
  %90 = zext i32 %88 to i64
  %91 = getelementptr inbounds i8, ptr %87, i64 %90
  store i8 %86, ptr %91, align 1, !tbaa !11
  %92 = load i8, ptr %14, align 1, !tbaa !11
  %93 = zext i8 %92 to i32
  %94 = ashr i32 %93, 1
  %95 = and i32 %94, 1
  %96 = trunc i32 %95 to i8
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = load i32, ptr %13, align 4, !tbaa !9
  %99 = add i32 %98, 1
  store i32 %99, ptr %13, align 4, !tbaa !9
  %100 = zext i32 %98 to i64
  %101 = getelementptr inbounds i8, ptr %97, i64 %100
  store i8 %96, ptr %101, align 1, !tbaa !11
  %102 = load i8, ptr %14, align 1, !tbaa !11
  %103 = zext i8 %102 to i32
  %104 = and i32 %103, 1
  %105 = trunc i32 %104 to i8
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = load i32, ptr %13, align 4, !tbaa !9
  %108 = add i32 %107, 1
  store i32 %108, ptr %13, align 4, !tbaa !9
  %109 = zext i32 %107 to i64
  %110 = getelementptr inbounds i8, ptr %106, i64 %109
  store i8 %105, ptr %110, align 1, !tbaa !11
  br label %111

111:                                              ; preds = %26
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = add i32 %112, 1
  store i32 %113, ptr %12, align 4, !tbaa !9
  br label %22, !llvm.loop !12

114:                                              ; preds = %22
  %115 = load i32, ptr %13, align 4, !tbaa !9
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 %115, ptr %116, align 4, !tbaa !9
  store i32 0, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %117

117:                                              ; preds = %114, %19
  %118 = load i32, ptr %6, align 4
  ret i32 %118
}

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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/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"}


; 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 [83 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [33 x i8], align 1

declare i32 @liquid_error_fl(i32 noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local i32 @liquid_unpack_bytes(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef writeonly %2, i32 noundef %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #1 {
  %6 = shl i32 %1, 3
  %7 = icmp ugt i32 %6, %3
  br i1 %7, label %65, label %.preheader

.preheader:                                       ; preds = %5
  %.not = icmp eq i32 %1, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %wide.trip.count = zext i32 %1 to i64
  %min.iters.check = icmp ult i32 %1, 176
  br i1 %min.iters.check, label %.lr.ph.preheader69, label %vector.scevcheck

.lr.ph.preheader69:                               ; preds = %middle.block, %vector.memcheck, %vector.scevcheck, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %vector.scevcheck ], [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %.03336.ph = phi i32 [ 0, %vector.memcheck ], [ 0, %vector.scevcheck ], [ 0, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

vector.scevcheck:                                 ; preds = %.lr.ph.preheader
  %8 = add nsw i64 %wide.trip.count, -1
  %9 = icmp ugt i64 %8, 4294967295
  %10 = insertelement <4 x ptr> poison, ptr %2, i64 0
  %11 = shufflevector <4 x ptr> %10, <4 x ptr> poison, <4 x i32> zeroinitializer
  %12 = getelementptr i8, <4 x ptr> %11, <4 x i64> <i64 6, i64 7, i64 5, i64 4>
  %mul.result = shl nsw i64 %8, 3
  %scevgep = getelementptr i8, ptr %2, i64 6
  %13 = getelementptr i8, ptr %scevgep, i64 %mul.result
  %mul.result40 = shl nsw i64 %8, 3
  %scevgep38 = getelementptr i8, ptr %2, i64 7
  %14 = getelementptr i8, ptr %scevgep38, i64 %mul.result40
  %mul.result44 = shl nsw i64 %8, 3
  %scevgep42 = getelementptr i8, ptr %2, i64 5
  %15 = getelementptr i8, ptr %scevgep42, i64 %mul.result44
  %mul.result48 = shl nsw i64 %8, 3
  %scevgep46 = getelementptr i8, ptr %2, i64 4
  %16 = getelementptr i8, ptr %scevgep46, i64 %mul.result48
  %17 = insertelement <2 x ptr> poison, ptr %2, i64 0
  %18 = shufflevector <2 x ptr> %17, <2 x ptr> poison, <2 x i32> zeroinitializer
  %19 = getelementptr i8, <2 x ptr> %18, <2 x i64> <i64 3, i64 2>
  %mul.result52 = shl nsw i64 %8, 3
  %scevgep50 = getelementptr i8, ptr %2, i64 3
  %20 = getelementptr i8, ptr %scevgep50, i64 %mul.result52
  %mul.result56 = shl nsw i64 %8, 3
  %scevgep54 = getelementptr i8, ptr %2, i64 2
  %21 = getelementptr i8, ptr %scevgep54, i64 %mul.result56
  %scevgep58 = getelementptr i8, ptr %2, i64 1
  %mul.result60 = shl nsw i64 %8, 3
  %22 = getelementptr i8, ptr %scevgep58, i64 %mul.result60
  %mul.result63 = shl nsw i64 %8, 3
  %23 = getelementptr i8, ptr %2, i64 %mul.result63
  %24 = insertelement <8 x ptr> poison, ptr %13, i64 0
  %25 = insertelement <8 x ptr> %24, ptr %14, i64 1
  %26 = insertelement <8 x ptr> %25, ptr %15, i64 2
  %27 = insertelement <8 x ptr> %26, ptr %16, i64 3
  %28 = insertelement <8 x ptr> %27, ptr %20, i64 4
  %29 = insertelement <8 x ptr> %28, ptr %21, i64 5
  %30 = insertelement <8 x ptr> %29, ptr %22, i64 6
  %31 = insertelement <8 x ptr> %30, ptr %23, i64 7
  %32 = shufflevector <4 x ptr> %12, <4 x ptr> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison>
  %33 = insertelement <8 x ptr> %32, ptr %2, i64 7
  %34 = shufflevector <2 x ptr> %19, <2 x ptr> poison, <8 x i32> <i32 0, i32 1, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
  %35 = shufflevector <8 x ptr> %33, <8 x ptr> %34, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 8, i32 9, i32 poison, i32 7>
  %36 = insertelement <8 x ptr> %35, ptr %scevgep58, i64 6
  %37 = icmp ult <8 x ptr> %31, %36
  %38 = bitcast <8 x i1> %37 to i8
  %39 = icmp ne i8 %38, 0
  %op.rdx = or i1 %39, %9
  br i1 %op.rdx, label %.lr.ph.preheader69, label %vector.memcheck

vector.memcheck:                                  ; preds = %vector.scevcheck
  %scevgep65 = getelementptr i8, ptr %0, i64 %wide.trip.count
  %40 = shl nuw nsw i64 %wide.trip.count, 3
  %scevgep66 = getelementptr i8, ptr %2, i64 %40
  %bound0 = icmp ugt ptr %scevgep66, %0
  %bound1 = icmp ugt ptr %scevgep65, %2
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph.preheader69, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 4294967280
  %.cast = trunc nuw i64 %n.vec to i32
  %ind.end = shl i32 %.cast, 3
  %invariant.gep = getelementptr i8, ptr %2, i64 -7
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = shl i64 %index, 3
  %41 = getelementptr inbounds i8, ptr %0, i64 %index
  %wide.load = load <16 x i8>, ptr %41, align 1, !tbaa !5, !alias.scope !8, !noalias !11
  %42 = lshr <16 x i8> %wide.load, <i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7, i8 7>
  %43 = lshr <16 x i8> %wide.load, <i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6, i8 6>
  %44 = and <16 x i8> %43, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
  %45 = lshr <16 x i8> %wide.load, <i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5, i8 5>
  %46 = and <16 x i8> %45, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
  %47 = lshr <16 x i8> %wide.load, <i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4, i8 4>
  %48 = and <16 x i8> %47, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
  %49 = lshr <16 x i8> %wide.load, <i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3, i8 3>
  %50 = and <16 x i8> %49, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
  %51 = lshr <16 x i8> %wide.load, <i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2, i8 2>
  %52 = and <16 x i8> %51, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
  %53 = lshr <16 x i8> %wide.load, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
  %54 = and <16 x i8> %53, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
  %55 = and <16 x i8> %wide.load, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
  %56 = and i64 %offset.idx, 4294967168
  %57 = or disjoint i64 %56, 7
  %gep = getelementptr i8, ptr %invariant.gep, i64 %57
  %58 = shufflevector <16 x i8> %42, <16 x i8> %44, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
  %59 = shufflevector <16 x i8> %46, <16 x i8> %48, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
  %60 = shufflevector <16 x i8> %50, <16 x i8> %52, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
  %61 = shufflevector <16 x i8> %54, <16 x i8> %55, <32 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31>
  %62 = shufflevector <32 x i8> %58, <32 x i8> %59, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 49, i32 50, i32 51, i32 52, i32 53, i32 54, i32 55, i32 56, i32 57, i32 58, i32 59, i32 60, i32 61, i32 62, i32 63>
  %63 = shufflevector <32 x i8> %60, <32 x i8> %61, <64 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15, i32 16, i32 17, i32 18, i32 19, i32 20, i32 21, i32 22, i32 23, i32 24, i32 25, i32 26, i32 27, i32 28, i32 29, i32 30, i32 31, i32 32, i32 33, i32 34, i32 35, i32 36, i32 37, i32 38, i32 39, i32 40, i32 41, i32 42, i32 43, i32 44, i32 45, i32 46, i32 47, i32 48, i32 49, i32 50, i32 51, i32 52, i32 53, i32 54, i32 55, i32 56, i32 57, i32 58, i32 59, i32 60, i32 61, i32 62, i32 63>
  %interleaved.vec = shufflevector <64 x i8> %62, <64 x i8> %63, <128 x i32> <i32 0, i32 16, i32 32, i32 48, i32 64, i32 80, i32 96, i32 112, i32 1, i32 17, i32 33, i32 49, i32 65, i32 81, i32 97, i32 113, i32 2, i32 18, i32 34, i32 50, i32 66, i32 82, i32 98, i32 114, i32 3, i32 19, i32 35, i32 51, i32 67, i32 83, i32 99, i32 115, i32 4, i32 20, i32 36, i32 52, i32 68, i32 84, i32 100, i32 116, i32 5, i32 21, i32 37, i32 53, i32 69, i32 85, i32 101, i32 117, i32 6, i32 22, i32 38, i32 54, i32 70, i32 86, i32 102, i32 118, i32 7, i32 23, i32 39, i32 55, i32 71, i32 87, i32 103, i32 119, i32 8, i32 24, i32 40, i32 56, i32 72, i32 88, i32 104, i32 120, i32 9, i32 25, i32 41, i32 57, i32 73, i32 89, i32 105, i32 121, i32 10, i32 26, i32 42, i32 58, i32 74, i32 90, i32 106, i32 122, i32 11, i32 27, i32 43, i32 59, i32 75, i32 91, i32 107, i32 123, i32 12, i32 28, i32 44, i32 60, i32 76, i32 92, i32 108, i32 124, i32 13, i32 29, i32 45, i32 61, i32 77, i32 93, i32 109, i32 125, i32 14, i32 30, i32 46, i32 62, i32 78, i32 94, i32 110, i32 126, i32 15, i32 31, i32 47, i32 63, i32 79, i32 95, i32 111, i32 127>
  store <128 x i8> %interleaved.vec, ptr %gep, align 1, !tbaa !5
  %index.next = add nuw i64 %index, 16
  %64 = icmp eq i64 %index.next, %n.vec
  br i1 %64, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader69

65:                                               ; preds = %5
  %66 = tail call i32 (i32, ptr, i32, ptr, ...) @liquid_error_fl(i32 noundef 9, ptr noundef nonnull @.str, i32 noundef 231, ptr noundef nonnull @.str.6) #2
  br label %107

.lr.ph:                                           ; preds = %.lr.ph.preheader69, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader69 ]
  %.03336 = phi i32 [ %104, %.lr.ph ], [ %.03336.ph, %.lr.ph.preheader69 ]
  %67 = getelementptr inbounds i8, ptr %0, i64 %indvars.iv
  %68 = load i8, ptr %67, align 1, !tbaa !5
  %69 = lshr i8 %68, 7
  %70 = or disjoint i32 %.03336, 1
  %71 = zext i32 %.03336 to i64
  %72 = getelementptr inbounds i8, ptr %2, i64 %71
  store i8 %69, ptr %72, align 1, !tbaa !5
  %73 = lshr i8 %68, 6
  %74 = and i8 %73, 1
  %75 = or disjoint i32 %.03336, 2
  %76 = zext i32 %70 to i64
  %77 = getelementptr inbounds i8, ptr %2, i64 %76
  store i8 %74, ptr %77, align 1, !tbaa !5
  %78 = lshr i8 %68, 5
  %79 = and i8 %78, 1
  %80 = or disjoint i32 %.03336, 3
  %81 = zext i32 %75 to i64
  %82 = getelementptr inbounds i8, ptr %2, i64 %81
  store i8 %79, ptr %82, align 1, !tbaa !5
  %83 = lshr i8 %68, 4
  %84 = and i8 %83, 1
  %85 = or disjoint i32 %.03336, 4
  %86 = zext i32 %80 to i64
  %87 = getelementptr inbounds i8, ptr %2, i64 %86
  store i8 %84, ptr %87, align 1, !tbaa !5
  %88 = lshr i8 %68, 3
  %89 = and i8 %88, 1
  %90 = or disjoint i32 %.03336, 5
  %91 = zext i32 %85 to i64
  %92 = getelementptr inbounds i8, ptr %2, i64 %91
  store i8 %89, ptr %92, align 1, !tbaa !5
  %93 = lshr i8 %68, 2
  %94 = and i8 %93, 1
  %95 = or disjoint i32 %.03336, 6
  %96 = zext i32 %90 to i64
  %97 = getelementptr inbounds i8, ptr %2, i64 %96
  store i8 %94, ptr %97, align 1, !tbaa !5
  %98 = lshr i8 %68, 1
  %99 = and i8 %98, 1
  %100 = or disjoint i32 %.03336, 7
  %101 = zext i32 %95 to i64
  %102 = getelementptr inbounds i8, ptr %2, i64 %101
  store i8 %99, ptr %102, align 1, !tbaa !5
  %103 = and i8 %68, 1
  %104 = add i32 %.03336, 8
  %105 = zext i32 %100 to i64
  %106 = getelementptr inbounds i8, ptr %2, i64 %105
  store i8 %103, ptr %106, align 1, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %.preheader
  %.033.lcssa = phi i32 [ 0, %.preheader ], [ %ind.end, %middle.block ], [ %104, %.lr.ph ]
  store i32 %.033.lcssa, ptr %4, align 4, !tbaa !18
  br label %107

107:                                              ; preds = %._crit_edge, %65
  %.0 = phi i32 [ %66, %65 ], [ 0, %._crit_edge ]
  ret i32 %.0
}

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

!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/C++ TBAA"}
!8 = !{!9}
!9 = distinct !{!9, !10}
!10 = distinct !{!10, !"LVerDomain"}
!11 = !{!12}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !14, !15, !16}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !14, !15}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !6, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass