; LLVM IR from intel/qpl :: sources/c_api/other_operations/crc64.ll (Z13perform_crc64P7qpl_job)

; 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.qpl::ml::other::crc_operation_result_t" = type { i32, i32, i64 }
%struct.qpl_job = type { ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, ptr, i32, i32, i8, i8, i8, i64, i64, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %struct.qpl_aux_data }
%struct.qpl_aux_data = type { ptr, ptr, ptr, ptr, ptr, i32 }

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_Z13perform_crc64P7qpl_job(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.qpl::ml::other::crc_operation_result_t", align 8
  %7 = alloca i8, align 1
  %8 = alloca i8, align 1
  %9 = alloca %"struct.qpl::ml::other::crc_operation_result_t", align 8
  %10 = alloca %"struct.qpl::ml::other::crc_operation_result_t", align 8
  %11 = alloca %"struct.qpl::ml::other::crc_operation_result_t", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = call noundef i32 @_ZN3qpl3job18validate_operationIL13qpl_operation5EEE10qpl_statusPK7qpl_job(ptr noundef %12) #5
  store i32 %13, ptr %4, align 4, !tbaa !9
  %14 = load i32, ptr %4, align 4, !tbaa !9
  %15 = icmp ne i32 %14, 0
  br i1 %15, label %16, label %18

16:                                               ; preds = %1
  %17 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %17, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %108

18:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  call void @_ZN3qpl2ml5other22crc_operation_result_tC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.qpl_job, ptr %19, i32 0, i32 7
  %21 = load i32, ptr %20, align 4, !tbaa !11
  %22 = and i32 %21, 65536
  %23 = icmp ne i32 %22, 0
  %24 = zext i1 %23 to i8
  store i8 %24, ptr %7, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.qpl_job, ptr %25, i32 0, i32 7
  %27 = load i32, ptr %26, align 4, !tbaa !11
  %28 = and i32 %27, 131072
  %29 = icmp ne i32 %28, 0
  %30 = zext i1 %29 to i8
  store i8 %30, ptr %8, align 1, !tbaa !23
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = call noundef zeroext i8 @_ZN3qpl3jobL18get_execution_pathEPK7qpl_job(ptr noundef %31) #5
  switch i8 %32, label %99 [
    i8 0, label %33
    i8 1, label %55
    i8 2, label %77
  ]

33:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.qpl_job, ptr %34, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8, !tbaa !25
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.qpl_job, ptr %37, i32 0, i32 1
  %39 = load i32, ptr %38, align 8, !tbaa !26
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.qpl_job, ptr %40, i32 0, i32 22
  %42 = load i64, ptr %41, align 8, !tbaa !27
  %43 = load i8, ptr %7, align 1, !tbaa !23, !range !28, !noundef !29
  %44 = trunc i8 %43 to i1
  %45 = load i8, ptr %8, align 1, !tbaa !23, !range !28, !noundef !29
  %46 = trunc i8 %45 to i1
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.qpl_job, ptr %47, i32 0, i32 38
  %49 = load i32, ptr %48, align 4, !tbaa !30
  %50 = call { i64, i64 } @_ZN3qpl2ml5other8call_crcILNS0_16execution_path_tE0EEENS1_22crc_operation_result_tEPKhjmbbi(ptr noundef %36, i32 noundef %39, i64 noundef %42, i1 noundef zeroext %44, i1 noundef zeroext %46, i32 noundef %49) #5
  %51 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %52 = extractvalue { i64, i64 } %50, 0
  store i64 %52, ptr %51, align 8
  %53 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %54 = extractvalue { i64, i64 } %50, 1
  store i64 %54, ptr %53, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  br label %99

55:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.qpl_job, ptr %56, i32 0, i32 0
  %58 = load ptr, ptr %57, align 8, !tbaa !25
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.qpl_job, ptr %59, i32 0, i32 1
  %61 = load i32, ptr %60, align 8, !tbaa !26
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.qpl_job, ptr %62, i32 0, i32 22
  %64 = load i64, ptr %63, align 8, !tbaa !27
  %65 = load i8, ptr %7, align 1, !tbaa !23, !range !28, !noundef !29
  %66 = trunc i8 %65 to i1
  %67 = load i8, ptr %8, align 1, !tbaa !23, !range !28, !noundef !29
  %68 = trunc i8 %67 to i1
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.qpl_job, ptr %69, i32 0, i32 38
  %71 = load i32, ptr %70, align 4, !tbaa !30
  %72 = call { i64, i64 } @_ZN3qpl2ml5other8call_crcILNS0_16execution_path_tE1EEENS1_22crc_operation_result_tEPKhjmbbi(ptr noundef %58, i32 noundef %61, i64 noundef %64, i1 noundef zeroext %66, i1 noundef zeroext %68, i32 noundef %71) #5
  %73 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %74 = extractvalue { i64, i64 } %72, 0
  store i64 %74, ptr %73, align 8
  %75 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %76 = extractvalue { i64, i64 } %72, 1
  store i64 %76, ptr %75, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %10, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %99

77:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.qpl_job, ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !25
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.qpl_job, ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 8, !tbaa !26
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.qpl_job, ptr %84, i32 0, i32 22
  %86 = load i64, ptr %85, align 8, !tbaa !27
  %87 = load i8, ptr %7, align 1, !tbaa !23, !range !28, !noundef !29
  %88 = trunc i8 %87 to i1
  %89 = load i8, ptr %8, align 1, !tbaa !23, !range !28, !noundef !29
  %90 = trunc i8 %89 to i1
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.qpl_job, ptr %91, i32 0, i32 38
  %93 = load i32, ptr %92, align 4, !tbaa !30
  %94 = call { i64, i64 } @_ZN3qpl2ml5other8call_crcILNS0_16execution_path_tE2EEENS1_22crc_operation_result_tEPKhjmbbi(ptr noundef %80, i32 noundef %83, i64 noundef %86, i1 noundef zeroext %88, i1 noundef zeroext %90, i32 noundef %93) #5
  %95 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %96 = extractvalue { i64, i64 } %94, 0
  store i64 %96, ptr %95, align 8
  %97 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %98 = extractvalue { i64, i64 } %94, 1
  store i64 %98, ptr %97, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !31
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  br label %99

99:                                               ; preds = %77, %55, %33, %18
  %100 = load ptr, ptr %3, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.qpl::ml::other::crc_operation_result_t", ptr %6, i32 0, i32 2
  %102 = load i64, ptr %101, align 8, !tbaa !34
  call void @_ZN3qpl3jobL10update_crcEP7qpl_jobm(ptr noundef %100, i64 noundef %102) #5
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.qpl::ml::other::crc_operation_result_t", ptr %6, i32 0, i32 1
  %105 = load i32, ptr %104, align 4, !tbaa !36
  call void @_ZN3qpl3jobL19update_input_streamEP7qpl_jobj(ptr noundef %103, i32 noundef %105) #5
  %106 = getelementptr inbounds %"struct.qpl::ml::other::crc_operation_result_t", ptr %6, i32 0, i32 0
  %107 = load i32, ptr %106, align 8, !tbaa !37
  store i32 %107, ptr %2, align 4
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  br label %108

108:                                              ; preds = %99, %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  %109 = load i32, ptr %2, align 4
  ret i32 %109
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3qpl3job18validate_operationIL13qpl_operation5EEE10qpl_statusPK7qpl_job(ptr noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3qpl2ml5other22crc_operation_result_tC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i8 @_ZN3qpl3jobL18get_execution_pathEPK7qpl_job(ptr noundef) #2

; Function Attrs: nounwind
declare { i64, i64 } @_ZN3qpl2ml5other8call_crcILNS0_16execution_path_tE0EEENS1_22crc_operation_result_tEPKhjmbbi(ptr noundef, i32 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i32 noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

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

; Function Attrs: nounwind
declare { i64, i64 } @_ZN3qpl2ml5other8call_crcILNS0_16execution_path_tE1EEENS1_22crc_operation_result_tEPKhjmbbi(ptr noundef, i32 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i32 noundef) #3

; Function Attrs: nounwind
declare { i64, i64 } @_ZN3qpl2ml5other8call_crcILNS0_16execution_path_tE2EEENS1_22crc_operation_result_tEPKhjmbbi(ptr noundef, i32 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i32 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN3qpl3jobL10update_crcEP7qpl_jobm(ptr noundef, i64 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN3qpl3jobL19update_input_streamEP7qpl_jobj(ptr noundef, i32 noundef) #2

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS10qpl_status", !7, i64 0}
!11 = !{!12, !13, i64 36}
!12 = !{!"_ZTS7qpl_job", !6, i64 0, !13, i64 8, !13, i64 12, !6, i64 16, !13, i64 24, !13, i64 28, !14, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !15, i64 52, !16, i64 56, !6, i64 64, !6, i64 72, !17, i64 80, !6, i64 88, !13, i64 96, !13, i64 100, !7, i64 104, !7, i64 105, !7, i64 106, !18, i64 112, !18, i64 120, !6, i64 128, !13, i64 136, !13, i64 140, !13, i64 144, !13, i64 148, !19, i64 152, !13, i64 156, !13, i64 160, !13, i64 164, !13, i64 168, !20, i64 172, !13, i64 176, !13, i64 180, !13, i64 184, !13, i64 188, !21, i64 192}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTS13qpl_operation", !7, i64 0}
!15 = !{!"_ZTS22qpl_compression_levels", !7, i64 0}
!16 = !{!"_ZTS19qpl_statistics_mode", !7, i64 0}
!17 = !{!"_ZTS19qpl_mini_block_size", !7, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!"_ZTS14qpl_out_format", !7, i64 0}
!20 = !{!"_ZTS10qpl_parser", !7, i64 0}
!21 = !{!"_ZTS12qpl_aux_data", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !22, i64 40}
!22 = !{!"_ZTS10qpl_path_t", !7, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{!12, !6, i64 0}
!26 = !{!12, !13, i64 8}
!27 = !{!12, !18, i64 112}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!12, !13, i64 188}
!31 = !{i64 0, i64 4, !32, i64 4, i64 4, !32, i64 8, i64 8, !33}
!32 = !{!13, !13, i64 0}
!33 = !{!18, !18, i64 0}
!34 = !{!35, !18, i64 8}
!35 = !{!"_ZTSN3qpl2ml5other22crc_operation_result_tE", !13, i64 0, !13, i64 4, !18, i64 8}
!36 = !{!35, !13, i64 4}
!37 = !{!35, !13, i64 0}


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

%"struct.qpl::ml::other::crc_operation_result_t" = type { i32, i32, i64 }

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_Z13perform_crc64P7qpl_job(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca %"struct.qpl::ml::other::crc_operation_result_t", align 8
  %3 = tail call noundef i32 @_ZN3qpl3job18validate_operationIL13qpl_operation5EEE10qpl_statusPK7qpl_job(ptr noundef %0) #4
  %.not = icmp eq i32 %3, 0
  br i1 %.not, label %4, label %50

4:                                                ; preds = %1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #4
  call void @_ZN3qpl2ml5other22crc_operation_result_tC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #4
  %5 = getelementptr inbounds i8, ptr %0, i64 36
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = and i32 %6, 65536
  %8 = icmp ne i32 %7, 0
  %9 = and i32 %6, 131072
  %10 = icmp ne i32 %9, 0
  %11 = call noundef zeroext i8 @_ZN3qpl3jobL18get_execution_pathEPK7qpl_job(ptr noundef %0) #4
  switch i8 %11, label %._crit_edge [
    i8 0, label %12
    i8 1, label %23
    i8 2, label %34
  ]

._crit_edge:                                      ; preds = %4
  %.phi.trans.insert = getelementptr inbounds i8, ptr %2, i64 8
  %.pre = load i64, ptr %.phi.trans.insert, align 8, !tbaa !20
  br label %45

12:                                               ; preds = %4
  %13 = load ptr, ptr %0, align 8, !tbaa !22
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = load i32, ptr %14, align 8, !tbaa !23
  %16 = getelementptr inbounds i8, ptr %0, i64 112
  %17 = load i64, ptr %16, align 8, !tbaa !24
  %18 = getelementptr inbounds i8, ptr %0, i64 188
  %19 = load i32, ptr %18, align 4, !tbaa !25
  %20 = call { i64, i64 } @_ZN3qpl2ml5other8call_crcILNS0_16execution_path_tE0EEENS1_22crc_operation_result_tEPKhjmbbi(ptr noundef %13, i32 noundef %15, i64 noundef %17, i1 noundef zeroext %8, i1 noundef zeroext %10, i32 noundef %19) #4
  %21 = extractvalue { i64, i64 } %20, 0
  %22 = extractvalue { i64, i64 } %20, 1
  store i64 %21, ptr %2, align 8
  %.sroa.44.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  store i64 %22, ptr %.sroa.44.0..sroa_idx, align 8, !tbaa !26
  br label %45

23:                                               ; preds = %4
  %24 = load ptr, ptr %0, align 8, !tbaa !22
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  %26 = load i32, ptr %25, align 8, !tbaa !23
  %27 = getelementptr inbounds i8, ptr %0, i64 112
  %28 = load i64, ptr %27, align 8, !tbaa !24
  %29 = getelementptr inbounds i8, ptr %0, i64 188
  %30 = load i32, ptr %29, align 4, !tbaa !25
  %31 = call { i64, i64 } @_ZN3qpl2ml5other8call_crcILNS0_16execution_path_tE1EEENS1_22crc_operation_result_tEPKhjmbbi(ptr noundef %24, i32 noundef %26, i64 noundef %28, i1 noundef zeroext %8, i1 noundef zeroext %10, i32 noundef %30) #4
  %32 = extractvalue { i64, i64 } %31, 0
  %33 = extractvalue { i64, i64 } %31, 1
  store i64 %32, ptr %2, align 8
  %.sroa.42.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  store i64 %33, ptr %.sroa.42.0..sroa_idx, align 8, !tbaa !26
  br label %45

34:                                               ; preds = %4
  %35 = load ptr, ptr %0, align 8, !tbaa !22
  %36 = getelementptr inbounds i8, ptr %0, i64 8
  %37 = load i32, ptr %36, align 8, !tbaa !23
  %38 = getelementptr inbounds i8, ptr %0, i64 112
  %39 = load i64, ptr %38, align 8, !tbaa !24
  %40 = getelementptr inbounds i8, ptr %0, i64 188
  %41 = load i32, ptr %40, align 4, !tbaa !25
  %42 = call { i64, i64 } @_ZN3qpl2ml5other8call_crcILNS0_16execution_path_tE2EEENS1_22crc_operation_result_tEPKhjmbbi(ptr noundef %35, i32 noundef %37, i64 noundef %39, i1 noundef zeroext %8, i1 noundef zeroext %10, i32 noundef %41) #4
  %43 = extractvalue { i64, i64 } %42, 0
  %44 = extractvalue { i64, i64 } %42, 1
  store i64 %43, ptr %2, align 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  store i64 %44, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !26
  br label %45

45:                                               ; preds = %._crit_edge, %34, %23, %12
  %46 = phi i64 [ %.pre, %._crit_edge ], [ %44, %34 ], [ %33, %23 ], [ %22, %12 ]
  call void @_ZN3qpl3jobL10update_crcEP7qpl_jobm(ptr noundef nonnull %0, i64 noundef %46) #4
  %47 = getelementptr inbounds i8, ptr %2, i64 4
  %48 = load i32, ptr %47, align 4, !tbaa !27
  call void @_ZN3qpl3jobL19update_input_streamEP7qpl_jobj(ptr noundef nonnull %0, i32 noundef %48) #4
  %49 = load i32, ptr %2, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #4
  br label %50

50:                                               ; preds = %1, %45
  %.0 = phi i32 [ %49, %45 ], [ %3, %1 ]
  ret i32 %.0
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN3qpl3job18validate_operationIL13qpl_operation5EEE10qpl_statusPK7qpl_job(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3qpl2ml5other22crc_operation_result_tC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i8 @_ZN3qpl3jobL18get_execution_pathEPK7qpl_job(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare { i64, i64 } @_ZN3qpl2ml5other8call_crcILNS0_16execution_path_tE0EEENS1_22crc_operation_result_tEPKhjmbbi(ptr noundef, i32 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind
declare { i64, i64 } @_ZN3qpl2ml5other8call_crcILNS0_16execution_path_tE1EEENS1_22crc_operation_result_tEPKhjmbbi(ptr noundef, i32 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare { i64, i64 } @_ZN3qpl2ml5other8call_crcILNS0_16execution_path_tE2EEENS1_22crc_operation_result_tEPKhjmbbi(ptr noundef, i32 noundef, i64 noundef, i1 noundef zeroext, i1 noundef zeroext, i32 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN3qpl3jobL10update_crcEP7qpl_jobm(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN3qpl3jobL19update_input_streamEP7qpl_jobj(ptr noundef, i32 noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #3 = { 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 #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, !10, i64 36}
!6 = !{!"_ZTS7qpl_job", !7, i64 0, !10, i64 8, !10, i64 12, !7, i64 16, !10, i64 24, !10, i64 28, !11, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !12, i64 52, !13, i64 56, !7, i64 64, !7, i64 72, !14, i64 80, !7, i64 88, !10, i64 96, !10, i64 100, !8, i64 104, !8, i64 105, !8, i64 106, !15, i64 112, !15, i64 120, !7, i64 128, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !16, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !17, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !18, i64 192}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS13qpl_operation", !8, i64 0}
!12 = !{!"_ZTS22qpl_compression_levels", !8, i64 0}
!13 = !{!"_ZTS19qpl_statistics_mode", !8, i64 0}
!14 = !{!"_ZTS19qpl_mini_block_size", !8, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!"_ZTS14qpl_out_format", !8, i64 0}
!17 = !{!"_ZTS10qpl_parser", !8, i64 0}
!18 = !{!"_ZTS12qpl_aux_data", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !19, i64 40}
!19 = !{!"_ZTS10qpl_path_t", !8, i64 0}
!20 = !{!21, !15, i64 8}
!21 = !{!"_ZTSN3qpl2ml5other22crc_operation_result_tE", !10, i64 0, !10, i64 4, !15, i64 8}
!22 = !{!6, !7, i64 0}
!23 = !{!6, !10, i64 8}
!24 = !{!6, !15, i64 112}
!25 = !{!6, !10, i64 188}
!26 = !{!15, !15, i64 0}
!27 = !{!21, !10, i64 4}
!28 = !{!21, !10, i64 0}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass