; 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_signed_types_t = type { i8, i16, i32, i64 }

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @stub_signed_types_pack(ptr noundef %0, ptr noundef %1, i64 noundef %2) #3 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i16, align 2
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  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
  call void @llvm.lifetime.start.p0(i64 2, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  %13 = load i64, ptr %7, align 8, !tbaa !9
  %14 = icmp ult i64 %13, 16
  br i1 %14, label %15, label %16

15:                                               ; preds = %3
  store i32 -22, ptr %4, align 4
  store i32 1, ptr %12, align 4
  br label %202

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

202:                                              ; preds = %16, %15
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 2, ptr %8) #4
  %203 = load i32, ptr %4, align 4
  ret i32 %203
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #3 = { 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 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"stub_signed_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 = !{!13, !13, i64 0}
!18 = !{!12, !14, i64 4}
!19 = !{!14, !14, i64 0}
!20 = !{!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: 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

; Function Attrs: nounwind uwtable
define dso_local range(i32 -22, 17) i32 @stub_signed_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 %85, 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 = tail call zeroext i8 @pack_left_shift_u8(i8 noundef zeroext %6, i8 noundef zeroext 1, i8 noundef zeroext -2)
  %11 = getelementptr inbounds i8, ptr %0, i64 1
  %12 = load i8, ptr %11, align 1, !tbaa !12
  %13 = or i8 %12, %10
  store i8 %13, ptr %11, align 1, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %1, i64 2
  %15 = load i16, ptr %14, align 2, !tbaa !13
  %16 = tail call zeroext i8 @pack_right_shift_u16(i16 noundef zeroext %15, i8 noundef zeroext 15, i8 noundef zeroext 1)
  %17 = load i8, ptr %11, align 1, !tbaa !12
  %18 = or i8 %17, %16
  store i8 %18, ptr %11, align 1, !tbaa !12
  %19 = tail call zeroext i8 @pack_right_shift_u16(i16 noundef zeroext %15, i8 noundef zeroext 7, i8 noundef zeroext -1)
  %20 = getelementptr inbounds i8, ptr %0, i64 2
  %21 = load i8, ptr %20, align 1, !tbaa !12
  %22 = or i8 %21, %19
  store i8 %22, ptr %20, align 1, !tbaa !12
  %23 = tail call zeroext i8 @pack_left_shift_u16(i16 noundef zeroext %15, i8 noundef zeroext 1, i8 noundef zeroext -2)
  %24 = getelementptr inbounds i8, ptr %0, i64 3
  %25 = load i8, ptr %24, align 1, !tbaa !12
  %26 = or i8 %25, %23
  store i8 %26, ptr %24, align 1, !tbaa !12
  %27 = getelementptr inbounds i8, ptr %1, i64 4
  %28 = load i32, ptr %27, align 4, !tbaa !14
  %29 = tail call zeroext i8 @pack_right_shift_u32(i32 noundef %28, i8 noundef zeroext 31, i8 noundef zeroext 1)
  %30 = load i8, ptr %24, align 1, !tbaa !12
  %31 = or i8 %30, %29
  store i8 %31, ptr %24, align 1, !tbaa !12
  %32 = tail call zeroext i8 @pack_right_shift_u32(i32 noundef %28, i8 noundef zeroext 23, i8 noundef zeroext -1)
  %33 = getelementptr inbounds i8, ptr %0, i64 4
  %34 = load i8, ptr %33, align 1, !tbaa !12
  %35 = or i8 %34, %32
  store i8 %35, ptr %33, align 1, !tbaa !12
  %36 = tail call zeroext i8 @pack_right_shift_u32(i32 noundef %28, i8 noundef zeroext 15, i8 noundef zeroext -1)
  %37 = getelementptr inbounds i8, ptr %0, i64 5
  %38 = load i8, ptr %37, align 1, !tbaa !12
  %39 = or i8 %38, %36
  store i8 %39, ptr %37, align 1, !tbaa !12
  %40 = tail call zeroext i8 @pack_right_shift_u32(i32 noundef %28, i8 noundef zeroext 7, i8 noundef zeroext -1)
  %41 = getelementptr inbounds i8, ptr %0, i64 6
  %42 = load i8, ptr %41, align 1, !tbaa !12
  %43 = or i8 %42, %40
  store i8 %43, ptr %41, align 1, !tbaa !12
  %44 = tail call zeroext i8 @pack_left_shift_u32(i32 noundef %28, i8 noundef zeroext 1, i8 noundef zeroext -2)
  %45 = getelementptr inbounds i8, ptr %0, i64 7
  %46 = load i8, ptr %45, align 1, !tbaa !12
  %47 = or i8 %46, %44
  store i8 %47, ptr %45, align 1, !tbaa !12
  %48 = getelementptr inbounds i8, ptr %1, i64 8
  %49 = load i64, ptr %48, align 8, !tbaa !15
  %50 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %49, i8 noundef zeroext 63, i8 noundef zeroext 1)
  %51 = load i8, ptr %45, align 1, !tbaa !12
  %52 = or i8 %51, %50
  store i8 %52, ptr %45, align 1, !tbaa !12
  %53 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %49, i8 noundef zeroext 55, i8 noundef zeroext -1)
  %54 = getelementptr inbounds i8, ptr %0, i64 8
  %55 = load i8, ptr %54, align 1, !tbaa !12
  %56 = or i8 %55, %53
  store i8 %56, ptr %54, align 1, !tbaa !12
  %57 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %49, i8 noundef zeroext 47, i8 noundef zeroext -1)
  %58 = getelementptr inbounds i8, ptr %0, i64 9
  %59 = load i8, ptr %58, align 1, !tbaa !12
  %60 = or i8 %59, %57
  store i8 %60, ptr %58, align 1, !tbaa !12
  %61 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %49, i8 noundef zeroext 39, i8 noundef zeroext -1)
  %62 = getelementptr inbounds i8, ptr %0, i64 10
  %63 = load i8, ptr %62, align 1, !tbaa !12
  %64 = or i8 %63, %61
  store i8 %64, ptr %62, align 1, !tbaa !12
  %65 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %49, i8 noundef zeroext 31, i8 noundef zeroext -1)
  %66 = getelementptr inbounds i8, ptr %0, i64 11
  %67 = load i8, ptr %66, align 1, !tbaa !12
  %68 = or i8 %67, %65
  store i8 %68, ptr %66, align 1, !tbaa !12
  %69 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %49, i8 noundef zeroext 23, i8 noundef zeroext -1)
  %70 = getelementptr inbounds i8, ptr %0, i64 12
  %71 = load i8, ptr %70, align 1, !tbaa !12
  %72 = or i8 %71, %69
  store i8 %72, ptr %70, align 1, !tbaa !12
  %73 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %49, i8 noundef zeroext 15, i8 noundef zeroext -1)
  %74 = getelementptr inbounds i8, ptr %0, i64 13
  %75 = load i8, ptr %74, align 1, !tbaa !12
  %76 = or i8 %75, %73
  store i8 %76, ptr %74, align 1, !tbaa !12
  %77 = tail call zeroext i8 @pack_right_shift_u64(i64 noundef %49, i8 noundef zeroext 7, i8 noundef zeroext -1)
  %78 = getelementptr inbounds i8, ptr %0, i64 14
  %79 = load i8, ptr %78, align 1, !tbaa !12
  %80 = or i8 %79, %77
  store i8 %80, ptr %78, align 1, !tbaa !12
  %81 = tail call zeroext i8 @pack_left_shift_u64(i64 noundef %49, i8 noundef zeroext 1, i8 noundef zeroext -2)
  %82 = getelementptr inbounds i8, ptr %0, i64 15
  %83 = load i8, ptr %82, align 1, !tbaa !12
  %84 = or i8 %83, %81
  store i8 %84, ptr %82, align 1, !tbaa !12
  br label %85

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

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