; LLVM IR from Izaron/ACM-ICPC :: Russian Olympiad in Informatics/Final Stage 2015/repair.ll (Z4findv)

; 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::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>, std::allocator<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>>>::_Vector_impl" }
%"struct.std::_Vector_base<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>, std::allocator<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>>>::_Vector_impl" = type { %"struct.std::_Vector_base<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>, std::allocator<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>, std::allocator<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }

@pos = external dso_local global %"class.std::vector", align 8
@to_right = external dso_local global %"class.std::vector.8", align 8
@to_left = external dso_local global %"class.std::vector.8", align 8
@to_up = external dso_local global %"class.std::vector.8", align 8
@to_down = external dso_local global %"class.std::vector.8", align 8
@as = external dso_local global %"struct.std::pair", align 4
@bs = external dso_local global %"struct.std::pair", align 4

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN10__gnu_pbds4treeIiNS0_9null_typeESt4lessIiENS0_11rb_tree_tagENS0_33tree_order_statistics_node_updateESaIcEEESaIS8_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; 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) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z13get_in_boundsRN10__gnu_pbds4treeIiNS_9null_typeESt4lessIiENS_11rb_tree_tagENS_33tree_order_statistics_node_updateESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z4findv() #3 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.std::pair", align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  %3 = load i32, ptr @as, align 4, !tbaa !9
  %4 = sub nsw i32 %3, 1
  %5 = sext i32 %4 to i64
  %6 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN10__gnu_pbds4treeIiNS0_9null_typeESt4lessIiENS0_11rb_tree_tagENS0_33tree_order_statistics_node_updateESaIcEEESaIS8_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @to_right, i64 noundef %5) #4
  %7 = load i32, ptr getelementptr inbounds (%"struct.std::pair", ptr @as, i32 0, i32 1), align 4, !tbaa !11
  %8 = load i32, ptr getelementptr inbounds (%"struct.std::pair", ptr @bs, i32 0, i32 1), align 4, !tbaa !11
  %9 = call noundef i32 @_Z13get_in_boundsRN10__gnu_pbds4treeIiNS_9null_typeESt4lessIiENS_11rb_tree_tagENS_33tree_order_statistics_node_updateESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef %7, i32 noundef %8)
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %11 = add nsw i32 %10, %9
  store i32 %11, ptr %1, align 4, !tbaa !5
  %12 = load i32, ptr @bs, align 4, !tbaa !9
  %13 = add nsw i32 %12, 1
  %14 = sext i32 %13 to i64
  %15 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN10__gnu_pbds4treeIiNS0_9null_typeESt4lessIiENS0_11rb_tree_tagENS0_33tree_order_statistics_node_updateESaIcEEESaIS8_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @to_left, i64 noundef %14) #4
  %16 = load i32, ptr getelementptr inbounds (%"struct.std::pair", ptr @as, i32 0, i32 1), align 4, !tbaa !11
  %17 = load i32, ptr getelementptr inbounds (%"struct.std::pair", ptr @bs, i32 0, i32 1), align 4, !tbaa !11
  %18 = call noundef i32 @_Z13get_in_boundsRN10__gnu_pbds4treeIiNS_9null_typeESt4lessIiENS_11rb_tree_tagENS_33tree_order_statistics_node_updateESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(32) %15, i32 noundef %16, i32 noundef %17)
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %20 = add nsw i32 %19, %18
  store i32 %20, ptr %1, align 4, !tbaa !5
  %21 = load i32, ptr getelementptr inbounds (%"struct.std::pair", ptr @as, i32 0, i32 1), align 4, !tbaa !11
  %22 = sub nsw i32 %21, 1
  %23 = sext i32 %22 to i64
  %24 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN10__gnu_pbds4treeIiNS0_9null_typeESt4lessIiENS0_11rb_tree_tagENS0_33tree_order_statistics_node_updateESaIcEEESaIS8_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @to_down, i64 noundef %23) #4
  %25 = load i32, ptr @as, align 4, !tbaa !9
  %26 = load i32, ptr @bs, align 4, !tbaa !9
  %27 = call noundef i32 @_Z13get_in_boundsRN10__gnu_pbds4treeIiNS_9null_typeESt4lessIiENS_11rb_tree_tagENS_33tree_order_statistics_node_updateESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(32) %24, i32 noundef %25, i32 noundef %26)
  %28 = load i32, ptr %1, align 4, !tbaa !5
  %29 = add nsw i32 %28, %27
  store i32 %29, ptr %1, align 4, !tbaa !5
  %30 = load i32, ptr getelementptr inbounds (%"struct.std::pair", ptr @bs, i32 0, i32 1), align 4, !tbaa !11
  %31 = add nsw i32 %30, 1
  %32 = sext i32 %31 to i64
  %33 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN10__gnu_pbds4treeIiNS0_9null_typeESt4lessIiENS0_11rb_tree_tagENS0_33tree_order_statistics_node_updateESaIcEEESaIS8_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @to_up, i64 noundef %32) #4
  %34 = load i32, ptr @as, align 4, !tbaa !9
  %35 = load i32, ptr @bs, align 4, !tbaa !9
  %36 = call noundef i32 @_Z13get_in_boundsRN10__gnu_pbds4treeIiNS_9null_typeESt4lessIiENS_11rb_tree_tagENS_33tree_order_statistics_node_updateESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(32) %33, i32 noundef %34, i32 noundef %35)
  %37 = load i32, ptr %1, align 4, !tbaa !5
  %38 = add nsw i32 %37, %36
  store i32 %38, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  %39 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @pos, i64 noundef 0) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 %39, i64 8, i1 false)
  %40 = getelementptr inbounds %"struct.std::pair", ptr %2, i32 0, i32 0
  %41 = load i32, ptr %40, align 4, !tbaa !9
  %42 = load i32, ptr @as, align 4, !tbaa !9
  %43 = icmp sge i32 %41, %42
  br i1 %43, label %44, label %62

44:                                               ; preds = %0
  %45 = getelementptr inbounds %"struct.std::pair", ptr %2, i32 0, i32 0
  %46 = load i32, ptr %45, align 4, !tbaa !9
  %47 = load i32, ptr @bs, align 4, !tbaa !9
  %48 = icmp sle i32 %46, %47
  br i1 %48, label %49, label %62

49:                                               ; preds = %44
  %50 = getelementptr inbounds %"struct.std::pair", ptr %2, i32 0, i32 1
  %51 = load i32, ptr %50, align 4, !tbaa !11
  %52 = load i32, ptr getelementptr inbounds (%"struct.std::pair", ptr @as, i32 0, i32 1), align 4, !tbaa !11
  %53 = icmp sge i32 %51, %52
  br i1 %53, label %54, label %62

54:                                               ; preds = %49
  %55 = getelementptr inbounds %"struct.std::pair", ptr %2, i32 0, i32 1
  %56 = load i32, ptr %55, align 4, !tbaa !11
  %57 = load i32, ptr getelementptr inbounds (%"struct.std::pair", ptr @bs, i32 0, i32 1), align 4, !tbaa !11
  %58 = icmp sle i32 %56, %57
  br i1 %58, label %59, label %62

59:                                               ; preds = %54
  %60 = load i32, ptr %1, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %1, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %59, %54, %49, %44, %0
  %63 = load i32, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret i32 %63
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSSt4pairIiiE", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 4}


; 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::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>, std::allocator<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>>>::_Vector_impl" }
%"struct.std::_Vector_base<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>, std::allocator<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>>>::_Vector_impl" = type { %"struct.std::_Vector_base<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>, std::allocator<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>, std::allocator<__gnu_pbds::tree<int, __gnu_pbds::null_type, std::less<int>, __gnu_pbds::rb_tree_tag, __gnu_pbds::tree_order_statistics_node_update>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }

@pos = external dso_local global %"class.std::vector", align 8
@to_right = external dso_local global %"class.std::vector.8", align 8
@to_left = external dso_local global %"class.std::vector.8", align 8
@to_up = external dso_local global %"class.std::vector.8", align 8
@to_down = external dso_local global %"class.std::vector.8", align 8
@as = external dso_local local_unnamed_addr global %"struct.std::pair", align 4
@bs = external dso_local local_unnamed_addr global %"struct.std::pair", align 4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z13get_in_boundsRN10__gnu_pbds4treeIiNS_9null_typeESt4lessIiENS_11rb_tree_tagENS_33tree_order_statistics_node_updateESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z4findv() local_unnamed_addr #1 {
  %1 = load i32, ptr @as, align 4, !tbaa !5
  %2 = add nsw i32 %1, -1
  %3 = sext i32 %2 to i64
  %4 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN10__gnu_pbds4treeIiNS0_9null_typeESt4lessIiENS0_11rb_tree_tagENS0_33tree_order_statistics_node_updateESaIcEEESaIS8_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @to_right, i64 noundef %3) #2
  %5 = load i32, ptr getelementptr inbounds (i8, ptr @as, i64 4), align 4, !tbaa !10
  %6 = load i32, ptr getelementptr inbounds (i8, ptr @bs, i64 4), align 4, !tbaa !10
  %7 = tail call noundef i32 @_Z13get_in_boundsRN10__gnu_pbds4treeIiNS_9null_typeESt4lessIiENS_11rb_tree_tagENS_33tree_order_statistics_node_updateESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(32) %4, i32 noundef %5, i32 noundef %6)
  %8 = load i32, ptr @bs, align 4, !tbaa !5
  %9 = add nsw i32 %8, 1
  %10 = sext i32 %9 to i64
  %11 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN10__gnu_pbds4treeIiNS0_9null_typeESt4lessIiENS0_11rb_tree_tagENS0_33tree_order_statistics_node_updateESaIcEEESaIS8_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @to_left, i64 noundef %10) #2
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @as, i64 4), align 4, !tbaa !10
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @bs, i64 4), align 4, !tbaa !10
  %14 = tail call noundef i32 @_Z13get_in_boundsRN10__gnu_pbds4treeIiNS_9null_typeESt4lessIiENS_11rb_tree_tagENS_33tree_order_statistics_node_updateESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(32) %11, i32 noundef %12, i32 noundef %13)
  %15 = add nsw i32 %14, %7
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @as, i64 4), align 4, !tbaa !10
  %17 = add nsw i32 %16, -1
  %18 = sext i32 %17 to i64
  %19 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN10__gnu_pbds4treeIiNS0_9null_typeESt4lessIiENS0_11rb_tree_tagENS0_33tree_order_statistics_node_updateESaIcEEESaIS8_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @to_down, i64 noundef %18) #2
  %20 = load i32, ptr @as, align 4, !tbaa !5
  %21 = load i32, ptr @bs, align 4, !tbaa !5
  %22 = tail call noundef i32 @_Z13get_in_boundsRN10__gnu_pbds4treeIiNS_9null_typeESt4lessIiENS_11rb_tree_tagENS_33tree_order_statistics_node_updateESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(32) %19, i32 noundef %20, i32 noundef %21)
  %23 = add nsw i32 %15, %22
  %24 = load i32, ptr getelementptr inbounds (i8, ptr @bs, i64 4), align 4, !tbaa !10
  %25 = add nsw i32 %24, 1
  %26 = sext i32 %25 to i64
  %27 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt6vectorIN10__gnu_pbds4treeIiNS0_9null_typeESt4lessIiENS0_11rb_tree_tagENS0_33tree_order_statistics_node_updateESaIcEEESaIS8_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @to_up, i64 noundef %26) #2
  %28 = load i32, ptr @as, align 4, !tbaa !5
  %29 = load i32, ptr @bs, align 4, !tbaa !5
  %30 = tail call noundef i32 @_Z13get_in_boundsRN10__gnu_pbds4treeIiNS_9null_typeESt4lessIiENS_11rb_tree_tagENS_33tree_order_statistics_node_updateESaIcEEEii(ptr noundef nonnull align 8 dereferenceable(32) %27, i32 noundef %28, i32 noundef %29)
  %31 = add nsw i32 %23, %30
  %32 = tail call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @pos, i64 noundef 0) #2
  %33 = load <2 x i32>, ptr %32, align 4
  %34 = load <2 x i32>, ptr @as, align 4
  %35 = load <2 x i32>, ptr @bs, align 4
  %36 = shufflevector <2 x i32> %33, <2 x i32> %34, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %37 = shufflevector <2 x i32> %35, <2 x i32> %33, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
  %38 = icmp sle <4 x i32> %36, %37
  %39 = freeze <4 x i1> %38
  %40 = bitcast <4 x i1> %39 to i4
  %41 = icmp eq i4 %40, -1
  %42 = zext i1 %41 to i32
  %.0 = add nsw i32 %31, %42
  ret i32 %.0
}

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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSSt4pairIiiE", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}


; Effective O3 passes: EarlyCSEPass,GlobalDCEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass