; LLVM IR from ardiloot/NonlinearTMM :: NonlinearTMM/src/eigen-3.4.0/unsupported/test/cxx11_tensor_uint128.ll (Z10test_misc2v)

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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Eigen::internal::TensorUInt128" = type { i64, i64 }
%"struct.Eigen::internal::TensorUInt128.10" = type <{ i64, [8 x i8] }>
%"struct.Eigen::internal::static_val" = type { i8 }
%"struct.Eigen::internal::TensorUInt128.9" = type { [8 x i8], i64 }
%"struct.Eigen::internal::TensorUInt128.11" = type { [2 x i8] }
%"struct.Eigen::internal::static_val.12" = type { i8 }
%"struct.Eigen::internal::TensorUInt128.14" = type { [2 x i8] }

@_ZN5EigenL12g_test_stackB5cxx11E = external hidden global %"class.std::vector", align 8
@.str.30 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [38 x i8], align 1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext, ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN5Eigen8internal10static_valILm0EEC2IiEERKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Eigen13test_is_equalImmEEbRKT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10test_misc2v() #4 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"struct.Eigen::internal::TensorUInt128", align 8
  %10 = alloca %"struct.Eigen::internal::TensorUInt128", align 8
  %11 = alloca %"struct.Eigen::internal::TensorUInt128", align 8
  %12 = alloca %"struct.Eigen::internal::TensorUInt128.10", align 8
  %13 = alloca %"struct.Eigen::internal::static_val", align 1
  %14 = alloca i32, align 4
  %15 = alloca %"struct.Eigen::internal::TensorUInt128.9", align 8
  %16 = alloca %"struct.Eigen::internal::TensorUInt128.11", align 1
  %17 = alloca %"struct.Eigen::internal::static_val.12", align 1
  %18 = alloca i32, align 4
  %19 = alloca %"struct.Eigen::internal::static_val", align 1
  %20 = alloca i32, align 4
  %21 = alloca %"struct.Eigen::internal::TensorUInt128.14", align 1
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 1, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store i64 100, ptr %3, align 8, !tbaa !5
  %24 = call noundef i64 @_ZN5Eigen8internal6randomIlEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  store i64 %24, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 0, ptr %4, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %74, %0
  %26 = load i64, ptr %4, align 8, !tbaa !5
  %27 = icmp slt i64 %26, 63
  br i1 %27, label %29, label %28

28:                                               ; preds = %25
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %77

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 1, ptr %6, align 8, !tbaa !5
  br label %30

30:                                               ; preds = %69, %29
  %31 = load i64, ptr %6, align 8, !tbaa !5
  %32 = load i64, ptr %1, align 8, !tbaa !5
  %33 = mul nsw i64 1000000, %32
  %34 = icmp sle i64 %31, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %30
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %73

36:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %37 = load i64, ptr %4, align 8, !tbaa !5
  %38 = add nsw i64 64, %37
  %39 = zext i64 %38 to i128
  %40 = shl i128 1, %39
  %41 = load i64, ptr %6, align 8, !tbaa !5
  %42 = sext i64 %41 to i128
  %43 = udiv i128 %40, %42
  %44 = sub i128 %43, 18446744073709551616
  %45 = add i128 %44, 1
  %46 = trunc i128 %45 to i64
  store i64 %46, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %47 = load i64, ptr %4, align 8, !tbaa !5
  %48 = shl i64 1, %47
  store i64 %48, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %49 = load i64, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @_ZN5Eigen8internal10static_valILm0EEC2IiEERKT_(ptr noundef nonnull align 1 dereferenceable(1) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @_ZN5Eigen8internal13TensorUInt128ImNS0_10static_valILm0EEEEC2EmS3_(ptr noundef nonnull align 8 dereferenceable(9) %12, i64 noundef %49)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  call void @_ZN5Eigen8internal13TensorUInt128INS0_10static_valILm0EEEmEC2IlEERKT_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %50 = call { i64, i64 } @_ZN5Eigen8internaldvImNS0_10static_valILm0EEES3_mEENS0_13TensorUInt128ImmEERKNS4_IT_T0_EERKNS4_IT1_T2_EE(ptr noundef nonnull align 8 dereferenceable(9) %12, ptr noundef nonnull align 8 dereferenceable(16) %15)
  %51 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %52 = extractvalue { i64, i64 } %50, 0
  store i64 %52, ptr %51, align 8
  %53 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %54 = extractvalue { i64, i64 } %50, 1
  store i64 %54, ptr %53, align 8
  call void @llvm.lifetime.start.p0(i64 2, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 1, ptr %18, align 4, !tbaa !9
  call void @_ZN5Eigen8internal10static_valILm1EEC2IiEERKT_(ptr noundef nonnull align 1 dereferenceable(1) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !9
  call void @_ZN5Eigen8internal10static_valILm0EEC2IiEERKT_(ptr noundef nonnull align 1 dereferenceable(1) %19, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @_ZN5Eigen8internal13TensorUInt128INS0_10static_valILm1EEENS2_ILm0EEEEC2ES3_S4_(ptr noundef nonnull align 1 dereferenceable(2) %16)
  %55 = call { i64, i64 } @_ZN5Eigen8internalmiImmNS0_10static_valILm1EEENS2_ILm0EEEEENS0_13TensorUInt128ImmEERKNS5_IT_T0_EERKNS5_IT1_T2_EE(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 1 dereferenceable(2) %16)
  %56 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %57 = extractvalue { i64, i64 } %55, 0
  store i64 %57, ptr %56, align 8
  %58 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %59 = extractvalue { i64, i64 } %55, 1
  store i64 %59, ptr %58, align 8
  call void @llvm.lifetime.start.p0(i64 2, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 1, ptr %22, align 4, !tbaa !9
  call void @_ZN5Eigen8internal13TensorUInt128INS0_10static_valILm0EEENS2_ILm1EEEEC2IiEERKT_(ptr noundef nonnull align 1 dereferenceable(2) %21, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %60 = call { i64, i64 } @_ZN5Eigen8internalplImmNS0_10static_valILm0EEENS2_ILm1EEEEENS0_13TensorUInt128ImmEERKNS5_IT_T0_EERKNS5_IT1_T2_EE(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 1 dereferenceable(2) %21)
  %61 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %62 = extractvalue { i64, i64 } %60, 0
  store i64 %62, ptr %61, align 8
  %63 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %64 = extractvalue { i64, i64 } %60, 1
  store i64 %64, ptr %63, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %65 = call noundef i64 @_ZNK5Eigen8internal13TensorUInt128ImmEcvmEv(ptr noundef nonnull align 8 dereferenceable(16) %9)
  store i64 %65, ptr %23, align 8, !tbaa !5
  %66 = call noundef zeroext i1 @_ZN5Eigen13test_is_equalImmEEbRKT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(8) %7, i1 noundef zeroext true)
  %67 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #6
  %68 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %67) #6
  call void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %66, ptr noundef %68, ptr noundef @.str.30, i32 noundef 140, ptr noundef @.str.32)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %69

69:                                               ; preds = %36
  %70 = load i64, ptr %1, align 8, !tbaa !5
  %71 = load i64, ptr %6, align 8, !tbaa !5
  %72 = add nsw i64 %71, %70
  store i64 %72, ptr %6, align 8, !tbaa !5
  br label %30, !llvm.loop !11

73:                                               ; preds = %35
  br label %74

74:                                               ; preds = %73
  %75 = load i64, ptr %4, align 8, !tbaa !5
  %76 = add nsw i64 %75, 1
  store i64 %76, ptr %4, align 8, !tbaa !5
  br label %25, !llvm.loop !13

77:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN5Eigen8internal6randomIlEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { i64, i64 } @_ZN5Eigen8internalplImmNS0_10static_valILm0EEENS2_ILm1EEEEENS0_13TensorUInt128ImmEERKNS5_IT_T0_EERKNS5_IT1_T2_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(2)) #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { i64, i64 } @_ZN5Eigen8internalmiImmNS0_10static_valILm1EEENS2_ILm0EEEEENS0_13TensorUInt128ImmEERKNS5_IT_T0_EERKNS5_IT1_T2_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(2)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { i64, i64 } @_ZN5Eigen8internaldvImNS0_10static_valILm0EEES3_mEENS0_13TensorUInt128ImmEERKNS4_IT_T0_EERKNS4_IT1_T2_EE(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(16)) #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen8internal13TensorUInt128ImNS0_10static_valILm0EEEEC2EmS3_(ptr noundef nonnull align 8 dereferenceable(9), i64 noundef) unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN5Eigen8internal13TensorUInt128INS0_10static_valILm0EEEmEC2IlEERKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN5Eigen8internal10static_valILm1EEC2IiEERKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen8internal13TensorUInt128INS0_10static_valILm1EEENS2_ILm0EEEEC2ES3_S4_(ptr noundef nonnull align 1 dereferenceable(2)) unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN5Eigen8internal13TensorUInt128INS0_10static_valILm0EEENS2_ILm1EEEEC2IiEERKT_(ptr noundef nonnull align 1 dereferenceable(2), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5Eigen8internal13TensorUInt128ImmEcvmEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline 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 #6 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Eigen::internal::TensorUInt128" = type { i64, i64 }
%"struct.Eigen::internal::TensorUInt128.10" = type <{ i64, [8 x i8] }>
%"struct.Eigen::internal::static_val" = type { i8 }
%"struct.Eigen::internal::TensorUInt128.9" = type { [8 x i8], i64 }
%"struct.Eigen::internal::TensorUInt128.11" = type { [2 x i8] }
%"struct.Eigen::internal::static_val.12" = type { i8 }
%"struct.Eigen::internal::TensorUInt128.14" = type { [2 x i8] }

@_ZN5EigenL12g_test_stackB5cxx11E = external hidden global %"class.std::vector", align 8
@.str.30 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [38 x i8], align 1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext, ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN5Eigen8internal10static_valILm0EEC2IiEERKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN5Eigen13test_is_equalImmEEbRKT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8), i1 noundef zeroext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_Z10test_misc2v() local_unnamed_addr #4 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca %"struct.Eigen::internal::TensorUInt128", align 8
  %6 = alloca %"struct.Eigen::internal::TensorUInt128", align 8
  %7 = alloca %"struct.Eigen::internal::TensorUInt128", align 8
  %8 = alloca %"struct.Eigen::internal::TensorUInt128.10", align 8
  %9 = alloca %"struct.Eigen::internal::static_val", align 1
  %10 = alloca i32, align 4
  %11 = alloca %"struct.Eigen::internal::TensorUInt128.9", align 8
  %12 = alloca %"struct.Eigen::internal::TensorUInt128.11", align 1
  %13 = alloca %"struct.Eigen::internal::static_val.12", align 1
  %14 = alloca i32, align 4
  %15 = alloca %"struct.Eigen::internal::static_val", align 1
  %16 = alloca i32, align 4
  %17 = alloca %"struct.Eigen::internal::TensorUInt128.14", align 1
  %18 = alloca i32, align 4
  %19 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  store i64 1, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  store i64 100, ptr %2, align 8, !tbaa !5
  %20 = call noundef i64 @_ZN5Eigen8internal6randomIlEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  %21 = mul nsw i64 %20, 1000000
  %.not7 = icmp slt i64 %20, 1
  %22 = getelementptr inbounds i8, ptr %7, i64 8
  %23 = getelementptr inbounds i8, ptr %6, i64 8
  %24 = getelementptr inbounds i8, ptr %5, i64 8
  br i1 %.not7, label %.split11.us, label %.lr.ph

.split11.us:                                      ; preds = %._crit_edge, %0
  ret void

.lr.ph:                                           ; preds = %0, %._crit_edge
  %.09 = phi i64 [ %29, %._crit_edge ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  store i64 1, ptr %3, align 8, !tbaa !5
  %25 = or disjoint i64 %.09, 64
  %26 = zext nneg i64 %25 to i128
  %27 = shl nuw i128 1, %26
  %28 = shl nuw nsw i64 1, %.09
  br label %30

._crit_edge:                                      ; preds = %30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %29 = add nuw nsw i64 %.09, 1
  %exitcond.not = icmp eq i64 %29, 63
  br i1 %exitcond.not, label %.split11.us, label %.lr.ph, !llvm.loop !9

30:                                               ; preds = %.lr.ph, %30
  %storemerge8 = phi i64 [ 1, %.lr.ph ], [ %49, %30 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %31 = sext i64 %storemerge8 to i128
  %32 = udiv i128 %27, %31
  %33 = trunc i128 %32 to i64
  %34 = add i64 %33, 1
  store i64 %34, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  store i32 0, ptr %10, align 4, !tbaa !11
  call void @_ZN5Eigen8internal10static_valILm0EEC2IiEERKT_(ptr noundef nonnull align 1 dereferenceable(1) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @_ZN5Eigen8internal13TensorUInt128ImNS0_10static_valILm0EEEEC2EmS3_(ptr noundef nonnull align 8 dereferenceable(9) %8, i64 noundef %28)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  call void @_ZN5Eigen8internal13TensorUInt128INS0_10static_valILm0EEEmEC2IlEERKT_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %35 = call { i64, i64 } @_ZN5Eigen8internaldvImNS0_10static_valILm0EEES3_mEENS0_13TensorUInt128ImmEERKNS4_IT_T0_EERKNS4_IT1_T2_EE(ptr noundef nonnull align 8 dereferenceable(9) %8, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %36 = extractvalue { i64, i64 } %35, 0
  store i64 %36, ptr %7, align 8
  %37 = extractvalue { i64, i64 } %35, 1
  store i64 %37, ptr %22, align 8
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  store i32 1, ptr %14, align 4, !tbaa !11
  call void @_ZN5Eigen8internal10static_valILm1EEC2IiEERKT_(ptr noundef nonnull align 1 dereferenceable(1) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  store i32 0, ptr %16, align 4, !tbaa !11
  call void @_ZN5Eigen8internal10static_valILm0EEC2IiEERKT_(ptr noundef nonnull align 1 dereferenceable(1) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
  call void @_ZN5Eigen8internal13TensorUInt128INS0_10static_valILm1EEENS2_ILm0EEEEC2ES3_S4_(ptr noundef nonnull align 1 dereferenceable(2) %12)
  %38 = call { i64, i64 } @_ZN5Eigen8internalmiImmNS0_10static_valILm1EEENS2_ILm0EEEEENS0_13TensorUInt128ImmEERKNS5_IT_T0_EERKNS5_IT1_T2_EE(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 1 dereferenceable(2) %12)
  %39 = extractvalue { i64, i64 } %38, 0
  store i64 %39, ptr %6, align 8
  %40 = extractvalue { i64, i64 } %38, 1
  store i64 %40, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  store i32 1, ptr %18, align 4, !tbaa !11
  call void @_ZN5Eigen8internal13TensorUInt128INS0_10static_valILm0EEENS2_ILm1EEEEC2IiEERKT_(ptr noundef nonnull align 1 dereferenceable(2) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %41 = call { i64, i64 } @_ZN5Eigen8internalplImmNS0_10static_valILm0EEENS2_ILm1EEEEENS0_13TensorUInt128ImmEERKNS5_IT_T0_EERKNS5_IT1_T2_EE(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 1 dereferenceable(2) %17)
  %42 = extractvalue { i64, i64 } %41, 0
  store i64 %42, ptr %5, align 8
  %43 = extractvalue { i64, i64 } %41, 1
  store i64 %43, ptr %24, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #6
  %44 = call noundef i64 @_ZNK5Eigen8internal13TensorUInt128ImmEcvmEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
  store i64 %44, ptr %19, align 8, !tbaa !5
  %45 = call noundef zeroext i1 @_ZN5Eigen13test_is_equalImmEEbRKT_RKT0_b(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %4, i1 noundef zeroext true)
  %46 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE4backEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN5EigenL12g_test_stackB5cxx11E) #6
  %47 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %46) #6
  call void @_Z11verify_implbPKcS0_iS0_(i1 noundef zeroext %45, ptr noundef %47, ptr noundef nonnull @.str.30, i32 noundef 140, ptr noundef nonnull @.str.32)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %48 = load i64, ptr %3, align 8, !tbaa !5
  %49 = add nsw i64 %48, %20
  store i64 %49, ptr %3, align 8, !tbaa !5
  %.not = icmp sgt i64 %49, %21
  br i1 %.not, label %._crit_edge, label %30, !llvm.loop !13
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZN5Eigen8internal6randomIlEENS0_13random_retvalINS0_36global_math_functions_filtering_baseIT_vE4typeEE4typeERKS4_SA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { i64, i64 } @_ZN5Eigen8internalplImmNS0_10static_valILm0EEENS2_ILm1EEEEENS0_13TensorUInt128ImmEERKNS5_IT_T0_EERKNS5_IT1_T2_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(2)) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { i64, i64 } @_ZN5Eigen8internalmiImmNS0_10static_valILm1EEENS2_ILm0EEEEENS0_13TensorUInt128ImmEERKNS5_IT_T0_EERKNS5_IT1_T2_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(2)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { i64, i64 } @_ZN5Eigen8internaldvImNS0_10static_valILm0EEES3_mEENS0_13TensorUInt128ImmEERKNS4_IT_T0_EERKNS4_IT1_T2_EE(ptr noundef nonnull align 8 dereferenceable(9), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen8internal13TensorUInt128ImNS0_10static_valILm0EEEEC2EmS3_(ptr noundef nonnull align 8 dereferenceable(9), i64 noundef) unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN5Eigen8internal13TensorUInt128INS0_10static_valILm0EEEmEC2IlEERKT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN5Eigen8internal10static_valILm1EEC2IiEERKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN5Eigen8internal13TensorUInt128INS0_10static_valILm1EEENS2_ILm0EEEEC2ES3_S4_(ptr noundef nonnull align 1 dereferenceable(2)) unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN5Eigen8internal13TensorUInt128INS0_10static_valILm0EEENS2_ILm1EEEEC2IiEERKT_(ptr noundef nonnull align 1 dereferenceable(2), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5Eigen8internal13TensorUInt128ImmEcvmEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline 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 #6 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !10}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass