; LLVM IR from boschglobal/dse.network :: dse/network/examples/stub (stub)

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

%struct.stub_unsigned_types_t = type { i8, i16, i32, i64 }

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_left_shift_u8(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_right_shift_u16(i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_left_shift_u16(i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @stub_unsigned_types_pack(ptr noundef %0, ptr noundef %1, i64 noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  %8 = load i64, ptr %7, align 8, !tbaa !9
  %9 = icmp ult i64 %8, 16
  br i1 %9, label %10, label %11

10:                                               ; preds = %3
  store i32 -22, ptr %4, align 4
  br label %223

11:                                               ; preds = %3
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %12, i64 0
  call void @llvm.memset.p0.i64(ptr align 1 %13, i8 0, i64 16, i1 false)
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %14, i32 0, i32 0
  %16 = load i8, ptr %15, align 8, !tbaa !11
  %17 = call zeroext i8 @pack_right_shift_u8(i8 noundef zeroext %16, i8 noundef zeroext 7, i8 noundef zeroext 1)
  %18 = zext i8 %17 to i32
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 0
  %21 = load i8, ptr %20, align 1, !tbaa !15
  %22 = zext i8 %21 to i32
  %23 = or i32 %22, %18
  %24 = trunc i32 %23 to i8
  store i8 %24, ptr %20, align 1, !tbaa !15
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %25, i32 0, i32 0
  %27 = load i8, ptr %26, align 8, !tbaa !11
  %28 = call zeroext i8 @pack_left_shift_u8(i8 noundef zeroext %27, i8 noundef zeroext 1, i8 noundef zeroext -2)
  %29 = zext i8 %28 to i32
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 1
  %32 = load i8, ptr %31, align 1, !tbaa !15
  %33 = zext i8 %32 to i32
  %34 = or i32 %33, %29
  %35 = trunc i32 %34 to i8
  store i8 %35, ptr %31, align 1, !tbaa !15
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %36, i32 0, i32 1
  %38 = load i16, ptr %37, align 2, !tbaa !16
  %39 = call zeroext i8 @pack_right_shift_u16(i16 noundef zeroext %38, i8 noundef zeroext 15, i8 noundef zeroext 1)
  %40 = zext i8 %39 to i32
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 1
  %43 = load i8, ptr %42, align 1, !tbaa !15
  %44 = zext i8 %43 to i32
  %45 = or i32 %44, %40
  %46 = trunc i32 %45 to i8
  store i8 %46, ptr %42, align 1, !tbaa !15
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %47, i32 0, i32 1
  %49 = load i16, ptr %48, align 2, !tbaa !16
  %50 = call zeroext i8 @pack_right_shift_u16(i16 noundef zeroext %49, i8 noundef zeroext 7, i8 noundef zeroext -1)
  %51 = zext i8 %50 to i32
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %52, i64 2
  %54 = load i8, ptr %53, align 1, !tbaa !15
  %55 = zext i8 %54 to i32
  %56 = or i32 %55, %51
  %57 = trunc i32 %56 to i8
  store i8 %57, ptr %53, align 1, !tbaa !15
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %58, i32 0, i32 1
  %60 = load i16, ptr %59, align 2, !tbaa !16
  %61 = call zeroext i8 @pack_left_shift_u16(i16 noundef zeroext %60, i8 noundef zeroext 1, i8 noundef zeroext -2)
  %62 = zext i8 %61 to i32
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds i8, ptr %63, i64 3
  %65 = load i8, ptr %64, align 1, !tbaa !15
  %66 = zext i8 %65 to i32
  %67 = or i32 %66, %62
  %68 = trunc i32 %67 to i8
  store i8 %68, ptr %64, align 1, !tbaa !15
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %69, i32 0, i32 2
  %71 = load i32, ptr %70, align 4, !tbaa !17
  %72 = call zeroext i8 @pack_right_shift_u32(i32 noundef %71, i8 noundef zeroext 31, i8 noundef zeroext 1)
  %73 = zext i8 %72 to i32
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 3
  %76 = load i8, ptr %75, align 1, !tbaa !15
  %77 = zext i8 %76 to i32
  %78 = or i32 %77, %73
  %79 = trunc i32 %78 to i8
  store i8 %79, ptr %75, align 1, !tbaa !15
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %80, i32 0, i32 2
  %82 = load i32, ptr %81, align 4, !tbaa !17
  %83 = call zeroext i8 @pack_right_shift_u32(i32 noundef %82, i8 noundef zeroext 23, i8 noundef zeroext -1)
  %84 = zext i8 %83 to i32
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %85, i64 4
  %87 = load i8, ptr %86, align 1, !tbaa !15
  %88 = zext i8 %87 to i32
  %89 = or i32 %88, %84
  %90 = trunc i32 %89 to i8
  store i8 %90, ptr %86, align 1, !tbaa !15
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %91, i32 0, i32 2
  %93 = load i32, ptr %92, align 4, !tbaa !17
  %94 = call zeroext i8 @pack_right_shift_u32(i32 noundef %93, i8 noundef zeroext 15, i8 noundef zeroext -1)
  %95 = zext i8 %94 to i32
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds i8, ptr %96, i64 5
  %98 = load i8, ptr %97, align 1, !tbaa !15
  %99 = zext i8 %98 to i32
  %100 = or i32 %99, %95
  %101 = trunc i32 %100 to i8
  store i8 %101, ptr %97, align 1, !tbaa !15
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %102, i32 0, i32 2
  %104 = load i32, ptr %103, align 4, !tbaa !17
  %105 = call zeroext i8 @pack_right_shift_u32(i32 noundef %104, i8 noundef zeroext 7, i8 noundef zeroext -1)
  %106 = zext i8 %105 to i32
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds i8, ptr %107, i64 6
  %109 = load i8, ptr %108, align 1, !tbaa !15
  %110 = zext i8 %109 to i32
  %111 = or i32 %110, %106
  %112 = trunc i32 %111 to i8
  store i8 %112, ptr %108, align 1, !tbaa !15
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %113, i32 0, i32 2
  %115 = load i32, ptr %114, align 4, !tbaa !17
  %116 = call zeroext i8 @pack_left_shift_u32(i32 noundef %115, i8 noundef zeroext 1, i8 noundef zeroext -2)
  %117 = zext i8 %116 to i32
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds i8, ptr %118, i64 7
  %120 = load i8, ptr %119, align 1, !tbaa !15
  %121 = zext i8 %120 to i32
  %122 = or i32 %121, %117
  %123 = trunc i32 %122 to i8
  store i8 %123, ptr %119, align 1, !tbaa !15
  %124 = load ptr, ptr %6, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %124, i32 0, i32 3
  %126 = load i64, ptr %125, align 8, !tbaa !18
  %127 = call zeroext i8 @pack_right_shift_u64(i64 noundef %126, i8 noundef zeroext 63, i8 noundef zeroext 1)
  %128 = zext i8 %127 to i32
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds i8, ptr %129, i64 7
  %131 = load i8, ptr %130, align 1, !tbaa !15
  %132 = zext i8 %131 to i32
  %133 = or i32 %132, %128
  %134 = trunc i32 %133 to i8
  store i8 %134, ptr %130, align 1, !tbaa !15
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %135, i32 0, i32 3
  %137 = load i64, ptr %136, align 8, !tbaa !18
  %138 = call zeroext i8 @pack_right_shift_u64(i64 noundef %137, i8 noundef zeroext 55, i8 noundef zeroext -1)
  %139 = zext i8 %138 to i32
  %140 = load ptr, ptr %5, align 8, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %140, i64 8
  %142 = load i8, ptr %141, align 1, !tbaa !15
  %143 = zext i8 %142 to i32
  %144 = or i32 %143, %139
  %145 = trunc i32 %144 to i8
  store i8 %145, ptr %141, align 1, !tbaa !15
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %146, i32 0, i32 3
  %148 = load i64, ptr %147, align 8, !tbaa !18
  %149 = call zeroext i8 @pack_right_shift_u64(i64 noundef %148, i8 noundef zeroext 47, i8 noundef zeroext -1)
  %150 = zext i8 %149 to i32
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = getelementptr inbounds i8, ptr %151, i64 9
  %153 = load i8, ptr %152, align 1, !tbaa !15
  %154 = zext i8 %153 to i32
  %155 = or i32 %154, %150
  %156 = trunc i32 %155 to i8
  store i8 %156, ptr %152, align 1, !tbaa !15
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %157, i32 0, i32 3
  %159 = load i64, ptr %158, align 8, !tbaa !18
  %160 = call zeroext i8 @pack_right_shift_u64(i64 noundef %159, i8 noundef zeroext 39, i8 noundef zeroext -1)
  %161 = zext i8 %160 to i32
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  %163 = getelementptr inbounds i8, ptr %162, i64 10
  %164 = load i8, ptr %163, align 1, !tbaa !15
  %165 = zext i8 %164 to i32
  %166 = or i32 %165, %161
  %167 = trunc i32 %166 to i8
  store i8 %167, ptr %163, align 1, !tbaa !15
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %168, i32 0, i32 3
  %170 = load i64, ptr %169, align 8, !tbaa !18
  %171 = call zeroext i8 @pack_right_shift_u64(i64 noundef %170, i8 noundef zeroext 31, i8 noundef zeroext -1)
  %172 = zext i8 %171 to i32
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = getelementptr inbounds i8, ptr %173, i64 11
  %175 = load i8, ptr %174, align 1, !tbaa !15
  %176 = zext i8 %175 to i32
  %177 = or i32 %176, %172
  %178 = trunc i32 %177 to i8
  store i8 %178, ptr %174, align 1, !tbaa !15
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %179, i32 0, i32 3
  %181 = load i64, ptr %180, align 8, !tbaa !18
  %182 = call zeroext i8 @pack_right_shift_u64(i64 noundef %181, i8 noundef zeroext 23, i8 noundef zeroext -1)
  %183 = zext i8 %182 to i32
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = getelementptr inbounds i8, ptr %184, i64 12
  %186 = load i8, ptr %185, align 1, !tbaa !15
  %187 = zext i8 %186 to i32
  %188 = or i32 %187, %183
  %189 = trunc i32 %188 to i8
  store i8 %189, ptr %185, align 1, !tbaa !15
  %190 = load ptr, ptr %6, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %190, i32 0, i32 3
  %192 = load i64, ptr %191, align 8, !tbaa !18
  %193 = call zeroext i8 @pack_right_shift_u64(i64 noundef %192, i8 noundef zeroext 15, i8 noundef zeroext -1)
  %194 = zext i8 %193 to i32
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds i8, ptr %195, i64 13
  %197 = load i8, ptr %196, align 1, !tbaa !15
  %198 = zext i8 %197 to i32
  %199 = or i32 %198, %194
  %200 = trunc i32 %199 to i8
  store i8 %200, ptr %196, align 1, !tbaa !15
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %201, i32 0, i32 3
  %203 = load i64, ptr %202, align 8, !tbaa !18
  %204 = call zeroext i8 @pack_right_shift_u64(i64 noundef %203, i8 noundef zeroext 7, i8 noundef zeroext -1)
  %205 = zext i8 %204 to i32
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = getelementptr inbounds i8, ptr %206, i64 14
  %208 = load i8, ptr %207, align 1, !tbaa !15
  %209 = zext i8 %208 to i32
  %210 = or i32 %209, %205
  %211 = trunc i32 %210 to i8
  store i8 %211, ptr %207, align 1, !tbaa !15
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.stub_unsigned_types_t, ptr %212, i32 0, i32 3
  %214 = load i64, ptr %213, align 8, !tbaa !18
  %215 = call zeroext i8 @pack_left_shift_u64(i64 noundef %214, i8 noundef zeroext 1, i8 noundef zeroext -2)
  %216 = zext i8 %215 to i32
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  %218 = getelementptr inbounds i8, ptr %217, i64 15
  %219 = load i8, ptr %218, align 1, !tbaa !15
  %220 = zext i8 %219 to i32
  %221 = or i32 %220, %216
  %222 = trunc i32 %221 to i8
  store i8 %222, ptr %218, align 1, !tbaa !15
  store i32 16, ptr %4, align 4
  br label %223

223:                                              ; preds = %11, %10
  %224 = load i32, ptr %4, align 4
  ret i32 %224
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_right_shift_u8(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_right_shift_u32(i32 noundef, i8 noundef zeroext, i8 noundef zeroext) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_left_shift_u32(i32 noundef, i8 noundef zeroext, i8 noundef zeroext) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_right_shift_u64(i64 noundef, i8 noundef zeroext, i8 noundef zeroext) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_left_shift_u64(i64 noundef, i8 noundef zeroext, i8 noundef zeroext) #1

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { inlinehint 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 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" }

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"stub_unsigned_types_t", !7, i64 0, !13, i64 2, !14, i64 4, !10, i64 8}
!13 = !{!"short", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!12, !13, i64 2}
!17 = !{!12, !14, i64 4}
!18 = !{!12, !10, i64 8}


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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_left_shift_u8(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_right_shift_u16(i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_left_shift_u16(i16 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -22, 17) i32 @stub_unsigned_types_pack(ptr nocapture noundef %0, ptr nocapture noundef readonly %1, i64 noundef %2) local_unnamed_addr #2 {
  %4 = icmp ult i64 %2, 16
  br i1 %4, label %100, label %5

5:                                                ; preds = %3
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(16) %0, i8 0, i64 16, i1 false)
  %6 = load i8, ptr %1, align 8, !tbaa !5
  %7 = tail call zeroext i8 @pack_right_shift_u8(i8 noundef zeroext %6, i8 noundef zeroext 7, i8 noundef zeroext 1)
  %8 = load i8, ptr %0, align 1, !tbaa !12
  %9 = or i8 %8, %7
  store i8 %9, ptr %0, align 1, !tbaa !12
  %10 = load i8, ptr %1, align 8, !tbaa !5
  %11 = tail call zeroext i8 @pack_left_shift_u8(i8 noundef zeroext %10, i8 noundef zeroext 1, i8 noundef zeroext -2)
  %12 = getelementptr inbounds i8, ptr %0, i64 1
  %13 = load i8, ptr %12, align 1, !tbaa !12
  %14 = or i8 %13, %11
  store i8 %14, ptr %12, align 1, !tbaa !12
  %15 = getelementptr inbounds i8, ptr %1, i64 2
  %16 = load i16, ptr %15, align 2, !tbaa !13
  %17 = tail call zeroext i8 @pack_right_shift_u16(i16 noundef zeroext %16, i8 noundef zeroext 15, i8 noundef zeroext 1)
  %18 = load i8, ptr %12, align 1, !tbaa !12
  %19 = or i8 %18, %17
  store i8 %19, ptr %12, align 1, !tbaa !12
  %20 = load i16, ptr %15, align 2, !tbaa !13
  %21 = tail call zeroext i8 @pack_right_shift_u16(i16 noundef zeroext %20, i8 noundef zeroext 7, i8 noundef zeroext -1)
  %22 = getelementptr inbounds i8, ptr %0, i64 2
  %23 = load i8, ptr %22, align 1, !tbaa !12
  %24 = or i8 %23, %21
  store i8 %24, ptr %22, align 1, !tbaa !12
  %25 = load i16, ptr %15, align 2, !tbaa !13
  %26 = tail call zeroext i8 @pack_left_shift_u16(i16 noundef zeroext %25, i8 noundef zeroext 1, i8 noundef zeroext -2)
  %27 = getelementptr inbounds i8, ptr %0, i64 3
  %28 = load i8, ptr %27, align 1, !tbaa !12
  %29 = or i8 %28, %26
  store i8 %29, ptr %27, align 1, !tbaa !12
  %30 = getelementptr inbounds i8, ptr %1, i64 4
  %31 = load i32, ptr %30, align 4, !tbaa !14
  %32 = tail call zeroext i8 @pack_right_shift_u32(i32 noundef %31, i8 noundef zeroext 31, i8 noundef zeroext 1)
  %33 = load i8, ptr %27, align 1, !tbaa !12
  %34 = or i8 %33, %32
  store i8 %34, ptr %27, align 1, !tbaa !12
  %35 = load i32, ptr %30, align 4, !tbaa !14
  %36 = tail call zeroext i8 @pack_right_shift_u32(i32 noundef %35, i8 noundef zeroext 23, i8 noundef zeroext -1)
  %37 = getelementptr inbounds i8, ptr %0, i64 4
  %38 = load i8, ptr %37, align 1, !tbaa !12
  %39 = or i8 %38, %36
  store i8 %39, ptr %37, align 1, !tbaa !12
  %40 = load i32, ptr %30, align 4, !tbaa !14
  %41 = tail call zeroext i8 @pack_right_shift_u32(i32 noundef %40, i8 noundef zeroext 15, i8 noundef zeroext -1)
  %42 = getelementptr inbounds i8, ptr %0, i64 5
  %43 = load i8, ptr %42, align 1, !tbaa !12
  %44 = or i8 %43, %41
  store i8 %44, ptr %42, align 1, !tbaa !12
  %45 = load i32, ptr %30, align 4, !tbaa !14
  %46 = tail call zeroext i8 @pack_right_shift_u32(i32 noundef %45, i8 noundef zeroext 7, i8 noundef zeroext -1)
  %47 = getelementptr inbounds i8, ptr %0, i64 6
  %48 = load i8, ptr %47, align 1, !tbaa !12
  %49 = or i8 %48, %46
  store i8 %49, ptr %47, align 1, !tbaa !12
  %50 = load i32, ptr %30, align 4, !tbaa !14
  %51 = tail call zeroext i8 @pack_left_shift_u32(i32 noundef %50, i8 noundef zeroext 1, i8 noundef zeroext -2)
  %52 = getelementptr inbounds i8, ptr %0, i64 7
  %53 = load i8, ptr %52, align 1, !tbaa !12
  %54 = or i8 %53, %51
  store i8 %54, ptr %52, align 1, !tbaa !12
  %55 = getelementptr inbounds i8, ptr %1, i64 8
  %56 = load i64, ptr %55, align 8, !tbaa !15
  %57 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %56, i8 noundef zeroext 63, i8 noundef zeroext 1)
  %58 = load i8, ptr %52, align 1, !tbaa !12
  %59 = or i8 %58, %57
  store i8 %59, ptr %52, align 1, !tbaa !12
  %60 = load i64, ptr %55, align 8, !tbaa !15
  %61 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %60, i8 noundef zeroext 55, i8 noundef zeroext -1)
  %62 = getelementptr inbounds i8, ptr %0, i64 8
  %63 = load i8, ptr %62, align 1, !tbaa !12
  %64 = or i8 %63, %61
  store i8 %64, ptr %62, align 1, !tbaa !12
  %65 = load i64, ptr %55, align 8, !tbaa !15
  %66 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %65, i8 noundef zeroext 47, i8 noundef zeroext -1)
  %67 = getelementptr inbounds i8, ptr %0, i64 9
  %68 = load i8, ptr %67, align 1, !tbaa !12
  %69 = or i8 %68, %66
  store i8 %69, ptr %67, align 1, !tbaa !12
  %70 = load i64, ptr %55, align 8, !tbaa !15
  %71 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %70, i8 noundef zeroext 39, i8 noundef zeroext -1)
  %72 = getelementptr inbounds i8, ptr %0, i64 10
  %73 = load i8, ptr %72, align 1, !tbaa !12
  %74 = or i8 %73, %71
  store i8 %74, ptr %72, align 1, !tbaa !12
  %75 = load i64, ptr %55, align 8, !tbaa !15
  %76 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %75, i8 noundef zeroext 31, i8 noundef zeroext -1)
  %77 = getelementptr inbounds i8, ptr %0, i64 11
  %78 = load i8, ptr %77, align 1, !tbaa !12
  %79 = or i8 %78, %76
  store i8 %79, ptr %77, align 1, !tbaa !12
  %80 = load i64, ptr %55, align 8, !tbaa !15
  %81 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %80, i8 noundef zeroext 23, i8 noundef zeroext -1)
  %82 = getelementptr inbounds i8, ptr %0, i64 12
  %83 = load i8, ptr %82, align 1, !tbaa !12
  %84 = or i8 %83, %81
  store i8 %84, ptr %82, align 1, !tbaa !12
  %85 = load i64, ptr %55, align 8, !tbaa !15
  %86 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %85, i8 noundef zeroext 15, i8 noundef zeroext -1)
  %87 = getelementptr inbounds i8, ptr %0, i64 13
  %88 = load i8, ptr %87, align 1, !tbaa !12
  %89 = or i8 %88, %86
  store i8 %89, ptr %87, align 1, !tbaa !12
  %90 = load i64, ptr %55, align 8, !tbaa !15
  %91 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %90, i8 noundef zeroext 7, i8 noundef zeroext -1)
  %92 = getelementptr inbounds i8, ptr %0, i64 14
  %93 = load i8, ptr %92, align 1, !tbaa !12
  %94 = or i8 %93, %91
  store i8 %94, ptr %92, align 1, !tbaa !12
  %95 = load i64, ptr %55, align 8, !tbaa !15
  %96 = tail call zeroext i8 @pack_left_shift_u64(i64 noundef %95, i8 noundef zeroext 1, i8 noundef zeroext -2)
  %97 = getelementptr inbounds i8, ptr %0, i64 15
  %98 = load i8, ptr %97, align 1, !tbaa !12
  %99 = or i8 %98, %96
  store i8 %99, ptr %97, align 1, !tbaa !12
  br label %100

100:                                              ; preds = %3, %5
  %.0 = phi i32 [ 16, %5 ], [ -22, %3 ]
  ret i32 %.0
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_right_shift_u8(i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_right_shift_u32(i32 noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_left_shift_u32(i32 noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_right_shift_u64(i64 noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i8 @pack_left_shift_u64(i64 noundef, i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #1 = { inlinehint 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 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" }

!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, !7, i64 0}
!6 = !{!"stub_unsigned_types_t", !7, i64 0, !9, i64 2, !10, i64 4, !11, i64 8}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"short", !7, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!"long", !7, i64 0}
!12 = !{!7, !7, i64 0}
!13 = !{!6, !9, i64 2}
!14 = !{!6, !10, i64 4}
!15 = !{!6, !11, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass