; LLVM IR from gcp/Leela :: Attributes.ll (ZN14FastAttributes13get_from_moveEP9FastStatei)

; 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.std::pair" = type { i32, i32 }
%"class.std::bitset<10>::reference" = type { ptr, i64 }
%class.FastAttributes = type { i32, %"class.std::bitset" }
%"class.std::bitset" = type { %"struct.std::_Base_bitset" }
%"struct.std::_Base_bitset" = type { i64 }
%class.FastState = type { %class.FullBoard, float, i32, i32, i32, i64, i32, i8, i32, %"class.std::vector.5", %"class.std::vector.10" }
%class.FullBoard = type { %class.FastBoard.base, i64, i64 }
%class.FastBoard.base = type <{ %"struct.std::array", i8, %"struct.std::array.0", %"struct.std::array.0", %"struct.std::array.0", %"struct.std::array.0", %"struct.std::array.1", %"struct.std::array.2", %"struct.std::array.3", %"struct.std::array.4", %"struct.std::array.4", [4 x i8], %"class.std::vector", %"struct.std::array.1", %"struct.std::array.1", i32, i32, i32, i32 }>
%"struct.std::array" = type { [729 x i8] }
%"struct.std::array.0" = type { [730 x i16] }
%"struct.std::array.2" = type { [4 x i32] }
%"struct.std::array.3" = type { [8 x i32] }
%"struct.std::array.4" = type { [2 x i32] }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array.1" = type { [729 x i16] }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<MovewFeatures, std::allocator<MovewFeatures>>::_Vector_impl" }
%"struct.std::_Vector_base<MovewFeatures, std::allocator<MovewFeatures>>::_Vector_impl" = type { %"struct.std::_Vector_base<MovewFeatures, std::allocator<MovewFeatures>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MovewFeatures, std::allocator<MovewFeatures>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, float>, std::allocator<std::pair<int, float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14BaseAttributes13move_distanceESt4pairIiiES1_(i64, i64) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14FastAttributes13get_from_moveEP9FastStatei(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1, i32 noundef %2) #0 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::pair", align 4
  %11 = alloca %"struct.std::pair", align 4
  %12 = alloca %"class.std::bitset<10>::reference", align 8
  %13 = alloca %"class.std::bitset<10>::reference", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::bitset<10>::reference", align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.std::bitset<10>::reference", align 8
  %18 = alloca i8, align 1
  %19 = alloca %"class.std::bitset<10>::reference", align 8
  %20 = alloca float, align 4
  %21 = alloca %"class.std::bitset<10>::reference", align 8
  %22 = alloca %"class.std::bitset<10>::reference", align 8
  %23 = alloca %"class.std::bitset<10>::reference", align 8
  %24 = alloca %"class.std::bitset<10>::reference", align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::bitset<10>::reference", align 8
  %27 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %28 = load ptr, ptr %4, align 8
  %29 = getelementptr inbounds %class.FastAttributes, ptr %28, i32 0, i32 1
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm10EE5resetEv(ptr noundef nonnull align 8 dereferenceable(8) %29) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = call noundef i32 @_ZN9FastState11get_to_moveEv(ptr noundef nonnull align 8 dereferenceable(11160) %31)
  store i32 %32, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = call noundef i32 @_ZN9FastState13get_last_moveEv(ptr noundef nonnull align 8 dereferenceable(11160) %33)
  %35 = icmp sgt i32 %34, 0
  br i1 %35, label %36, label %52

36:                                               ; preds = %3
  %37 = load i32, ptr %6, align 4, !tbaa !9
  %38 = icmp sgt i32 %37, 0
  br i1 %38, label %39, label %52

39:                                               ; preds = %36
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %class.FastState, ptr %40, i32 0, i32 0
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = call noundef i32 @_ZN9FastState13get_last_moveEv(ptr noundef nonnull align 8 dereferenceable(11160) %42)
  %44 = call i64 @_ZNK9FastBoard6get_xyEi(ptr noundef nonnull align 8 dereferenceable(11052) %41, i32 noundef %43)
  store i64 %44, ptr %10, align 4
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %class.FastState, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %6, align 4, !tbaa !9
  %48 = call i64 @_ZNK9FastBoard6get_xyEi(ptr noundef nonnull align 8 dereferenceable(11052) %46, i32 noundef %47)
  store i64 %48, ptr %11, align 4
  %49 = load i64, ptr %10, align 4
  %50 = load i64, ptr %11, align 4
  %51 = call noundef i32 @_ZN14BaseAttributes13move_distanceESt4pairIiiES1_(i64 %49, i64 %50)
  store i32 %51, ptr %9, align 4, !tbaa !9
  br label %53

52:                                               ; preds = %36, %3
  store i32 100, ptr %9, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %52, %39
  %54 = load i32, ptr %9, align 4, !tbaa !9
  %55 = icmp sle i32 %54, 2
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  %56 = getelementptr inbounds %class.FastAttributes, ptr %28, i32 0, i32 1
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %8, align 4, !tbaa !9
  %59 = sext i32 %57 to i64
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<10>::reference") align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %56, i64 noundef %59)
  %60 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %12, i1 noundef zeroext %55) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = icmp eq i32 %61, 3
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  %63 = getelementptr inbounds %class.FastAttributes, ptr %28, i32 0, i32 1
  %64 = load i32, ptr %8, align 4, !tbaa !9
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %8, align 4, !tbaa !9
  %66 = sext i32 %64 to i64
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<10>::reference") align 8 %13, ptr noundef nonnull align 8 dereferenceable(8) %63, i64 noundef %66)
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %13, i1 noundef zeroext %62) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %68 = load i32, ptr %6, align 4, !tbaa !9
  %69 = icmp ne i32 %68, -1
  br i1 %69, label %70, label %76

70:                                               ; preds = %53
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %class.FastState, ptr %71, i32 0, i32 0
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = load i32, ptr %6, align 4, !tbaa !9
  %75 = call noundef i32 @_ZN9FastBoard11saving_sizeEii(ptr noundef nonnull align 8 dereferenceable(11052) %72, i32 noundef %73, i32 noundef %74)
  store i32 %75, ptr %14, align 4, !tbaa !9
  br label %77

76:                                               ; preds = %53
  store i32 -1, ptr %14, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %76, %70
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = icmp sgt i32 %78, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  %80 = getelementptr inbounds %class.FastAttributes, ptr %28, i32 0, i32 1
  %81 = load i32, ptr %8, align 4, !tbaa !9
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %8, align 4, !tbaa !9
  %83 = sext i32 %81 to i64
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<10>::reference") align 8 %15, ptr noundef nonnull align 8 dereferenceable(8) %80, i64 noundef %83)
  %84 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %15, i1 noundef zeroext %79) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %85 = load i32, ptr %6, align 4, !tbaa !9
  %86 = icmp ne i32 %85, -1
  br i1 %86, label %87, label %93

87:                                               ; preds = %77
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = getelementptr inbounds %class.FastState, ptr %88, i32 0, i32 0
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = load i32, ptr %6, align 4, !tbaa !9
  %92 = call noundef i32 @_ZN9FastBoard12capture_sizeEii(ptr noundef nonnull align 8 dereferenceable(11052) %89, i32 noundef %90, i32 noundef %91)
  store i32 %92, ptr %16, align 4, !tbaa !9
  br label %94

93:                                               ; preds = %77
  store i32 -1, ptr %16, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %93, %87
  %95 = load i32, ptr %16, align 4, !tbaa !9
  %96 = icmp sgt i32 %95, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  %97 = getelementptr inbounds %class.FastAttributes, ptr %28, i32 0, i32 1
  %98 = load i32, ptr %8, align 4, !tbaa !9
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %8, align 4, !tbaa !9
  %100 = sext i32 %98 to i64
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<10>::reference") align 8 %17, ptr noundef nonnull align 8 dereferenceable(8) %97, i64 noundef %100)
  %101 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %17, i1 noundef zeroext %96) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #4
  %102 = load i32, ptr %6, align 4, !tbaa !9
  %103 = icmp ne i32 %102, -1
  br i1 %103, label %104, label %111

104:                                              ; preds = %94
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = getelementptr inbounds %class.FastState, ptr %105, i32 0, i32 0
  %107 = load i32, ptr %7, align 4, !tbaa !9
  %108 = load i32, ptr %6, align 4, !tbaa !9
  %109 = call noundef zeroext i1 @_ZN9FastBoard10self_atariEii(ptr noundef nonnull align 8 dereferenceable(11052) %106, i32 noundef %107, i32 noundef %108)
  %110 = zext i1 %109 to i8
  store i8 %110, ptr %18, align 1, !tbaa !11
  br label %112

111:                                              ; preds = %94
  store i8 0, ptr %18, align 1, !tbaa !11
  br label %112

112:                                              ; preds = %111, %104
  %113 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %114 = trunc i8 %113 to i1
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  %115 = getelementptr inbounds %class.FastAttributes, ptr %28, i32 0, i32 1
  %116 = load i32, ptr %8, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %8, align 4, !tbaa !9
  %118 = sext i32 %116 to i64
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<10>::reference") align 8 %19, ptr noundef nonnull align 8 dereferenceable(8) %115, i64 noundef %118)
  %119 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %19, i1 noundef zeroext %114) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %120 = load i32, ptr %6, align 4, !tbaa !9
  %121 = icmp ne i32 %120, -1
  br i1 %121, label %122, label %127

122:                                              ; preds = %112
  %123 = call noundef ptr @_ZN12MCOwnerTable7get_MCOEv()
  %124 = load i32, ptr %7, align 4, !tbaa !9
  %125 = load i32, ptr %6, align 4, !tbaa !9
  %126 = call noundef float @_ZNK12MCOwnerTable12get_blackownEii(ptr noundef nonnull align 8 dereferenceable(5848) %123, i32 noundef %124, i32 noundef %125)
  store float %126, ptr %20, align 4, !tbaa !15
  br label %128

127:                                              ; preds = %112
  store float -1.000000e+00, ptr %20, align 4, !tbaa !15
  br label %128

128:                                              ; preds = %127, %122
  %129 = load float, ptr %20, align 4, !tbaa !15
  %130 = fcmp oge float %129, 0xBF847AE140000000
  br i1 %130, label %131, label %134

131:                                              ; preds = %128
  %132 = load float, ptr %20, align 4, !tbaa !15
  %133 = fcmp olt float %132, 0x3FB99999A0000000
  br label %134

134:                                              ; preds = %131, %128
  %135 = phi i1 [ false, %128 ], [ %133, %131 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  %136 = getelementptr inbounds %class.FastAttributes, ptr %28, i32 0, i32 1
  %137 = load i32, ptr %8, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %8, align 4, !tbaa !9
  %139 = sext i32 %137 to i64
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<10>::reference") align 8 %21, ptr noundef nonnull align 8 dereferenceable(8) %136, i64 noundef %139)
  %140 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %21, i1 noundef zeroext %135) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  %141 = load float, ptr %20, align 4, !tbaa !15
  %142 = fcmp oge float %141, 0x3FB99999A0000000
  br i1 %142, label %143, label %146

143:                                              ; preds = %134
  %144 = load float, ptr %20, align 4, !tbaa !15
  %145 = fcmp olt float %144, 0x3FC99999A0000000
  br label %146

146:                                              ; preds = %143, %134
  %147 = phi i1 [ false, %134 ], [ %145, %143 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %148 = getelementptr inbounds %class.FastAttributes, ptr %28, i32 0, i32 1
  %149 = load i32, ptr %8, align 4, !tbaa !9
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %8, align 4, !tbaa !9
  %151 = sext i32 %149 to i64
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<10>::reference") align 8 %22, ptr noundef nonnull align 8 dereferenceable(8) %148, i64 noundef %151)
  %152 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %22, i1 noundef zeroext %147) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  %153 = load float, ptr %20, align 4, !tbaa !15
  %154 = fcmp oge float %153, 0x3FD99999A0000000
  br i1 %154, label %155, label %158

155:                                              ; preds = %146
  %156 = load float, ptr %20, align 4, !tbaa !15
  %157 = fcmp olt float %156, 0x3FE6666660000000
  br label %158

158:                                              ; preds = %155, %146
  %159 = phi i1 [ false, %146 ], [ %157, %155 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #4
  %160 = getelementptr inbounds %class.FastAttributes, ptr %28, i32 0, i32 1
  %161 = load i32, ptr %8, align 4, !tbaa !9
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %8, align 4, !tbaa !9
  %163 = sext i32 %161 to i64
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<10>::reference") align 8 %23, ptr noundef nonnull align 8 dereferenceable(8) %160, i64 noundef %163)
  %164 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %23, i1 noundef zeroext %159) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %23) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  %165 = load float, ptr %20, align 4, !tbaa !15
  %166 = fcmp oge float %165, 0x3FECCCCCC0000000
  br i1 %166, label %167, label %170

167:                                              ; preds = %158
  %168 = load float, ptr %20, align 4, !tbaa !15
  %169 = fcmp olt float %168, 0x3FF028F5C0000000
  br label %170

170:                                              ; preds = %167, %158
  %171 = phi i1 [ false, %158 ], [ %169, %167 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #4
  %172 = getelementptr inbounds %class.FastAttributes, ptr %28, i32 0, i32 1
  %173 = load i32, ptr %8, align 4, !tbaa !9
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %8, align 4, !tbaa !9
  %175 = sext i32 %173 to i64
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<10>::reference") align 8 %24, ptr noundef nonnull align 8 dereferenceable(8) %172, i64 noundef %175)
  %176 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %24, i1 noundef zeroext %171) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %177 = load i32, ptr %6, align 4, !tbaa !9
  %178 = icmp ne i32 %177, -1
  br i1 %178, label %179, label %185

179:                                              ; preds = %170
  %180 = load ptr, ptr %5, align 8, !tbaa !5
  %181 = getelementptr inbounds %class.FastState, ptr %180, i32 0, i32 0
  %182 = load i32, ptr %7, align 4, !tbaa !9
  %183 = load i32, ptr %6, align 4, !tbaa !9
  %184 = call noundef i32 @_ZN9FastBoard18minimum_elib_countEii(ptr noundef nonnull align 8 dereferenceable(11052) %181, i32 noundef %182, i32 noundef %183)
  store i32 %184, ptr %25, align 4, !tbaa !9
  br label %186

185:                                              ; preds = %170
  store i32 -1, ptr %25, align 4, !tbaa !9
  br label %186

186:                                              ; preds = %185, %179
  %187 = load i32, ptr %25, align 4, !tbaa !9
  %188 = icmp eq i32 %187, 2
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #4
  %189 = getelementptr inbounds %class.FastAttributes, ptr %28, i32 0, i32 1
  %190 = load i32, ptr %8, align 4, !tbaa !9
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %8, align 4, !tbaa !9
  %192 = sext i32 %190 to i64
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind writable sret(%"class.std::bitset<10>::reference") align 8 %26, ptr noundef nonnull align 8 dereferenceable(8) %189, i64 noundef %192)
  %193 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %26, i1 noundef zeroext %188) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %26) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  %194 = load i32, ptr %6, align 4, !tbaa !9
  %195 = icmp ne i32 %194, -1
  br i1 %195, label %196, label %203

196:                                              ; preds = %186
  %197 = load ptr, ptr %5, align 8, !tbaa !5
  %198 = getelementptr inbounds %class.FastState, ptr %197, i32 0, i32 0
  %199 = load i32, ptr %6, align 4, !tbaa !9
  %200 = load i32, ptr %7, align 4, !tbaa !9
  %201 = icmp ne i32 %200, 0
  %202 = call noundef i32 @_ZN9FastBoard20get_pattern3_augmentEib(ptr noundef nonnull align 8 dereferenceable(11052) %198, i32 noundef %199, i1 noundef zeroext %201)
  store i32 %202, ptr %27, align 4, !tbaa !9
  br label %204

203:                                              ; preds = %186
  store i32 65535, ptr %27, align 4, !tbaa !9
  br label %204

204:                                              ; preds = %203, %196
  %205 = load i32, ptr %27, align 4, !tbaa !9
  %206 = getelementptr inbounds %class.FastAttributes, ptr %28, i32 0, i32 0
  store i32 %205, ptr %206, align 8, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret void
}

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

declare noundef i32 @_ZN9FastState11get_to_moveEv(ptr noundef nonnull align 8 dereferenceable(11160)) #3

declare noundef i32 @_ZN9FastState13get_last_moveEv(ptr noundef nonnull align 8 dereferenceable(11160)) #3

declare i64 @_ZNK9FastBoard6get_xyEi(ptr noundef nonnull align 8 dereferenceable(11052), i32 noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset<10>::reference") align 8, ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #2 align 2

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

declare noundef i32 @_ZN9FastBoard11saving_sizeEii(ptr noundef nonnull align 8 dereferenceable(11052), i32 noundef, i32 noundef) #3

declare noundef i32 @_ZN9FastBoard12capture_sizeEii(ptr noundef nonnull align 8 dereferenceable(11052), i32 noundef, i32 noundef) #3

declare noundef zeroext i1 @_ZN9FastBoard10self_atariEii(ptr noundef nonnull align 8 dereferenceable(11052), i32 noundef, i32 noundef) #3

declare noundef ptr @_ZN12MCOwnerTable7get_MCOEv() #3

declare noundef float @_ZNK12MCOwnerTable12get_blackownEii(ptr noundef nonnull align 8 dereferenceable(5848), i32 noundef, i32 noundef) #3

declare noundef i32 @_ZN9FastBoard18minimum_elib_countEii(ptr noundef nonnull align 8 dereferenceable(11052), i32 noundef, i32 noundef) #3

declare noundef i32 @_ZN9FastBoard20get_pattern3_augmentEib(ptr noundef nonnull align 8 dereferenceable(11052), i32 noundef, i1 noundef zeroext) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!18, !10, i64 0}
!18 = !{!"_ZTS14FastAttributes", !10, i64 0, !19, i64 8}
!19 = !{!"_ZTSSt6bitsetILm10EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Base_bitsetILm1EE", !21, i64 0}
!21 = !{!"long", !7, 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"

%"class.std::bitset<10>::reference" = type { ptr, i64 }

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN14BaseAttributes13move_distanceESt4pairIiiES1_(i64, i64) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14FastAttributes13get_from_moveEP9FastStatei(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 align 2 {
  %4 = alloca %"class.std::bitset<10>::reference", align 8
  %5 = alloca %"class.std::bitset<10>::reference", align 8
  %6 = alloca %"class.std::bitset<10>::reference", align 8
  %7 = alloca %"class.std::bitset<10>::reference", align 8
  %8 = alloca %"class.std::bitset<10>::reference", align 8
  %9 = alloca %"class.std::bitset<10>::reference", align 8
  %10 = alloca %"class.std::bitset<10>::reference", align 8
  %11 = alloca %"class.std::bitset<10>::reference", align 8
  %12 = alloca %"class.std::bitset<10>::reference", align 8
  %13 = alloca %"class.std::bitset<10>::reference", align 8
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6bitsetILm10EE5resetEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  %16 = tail call noundef i32 @_ZN9FastState11get_to_moveEv(ptr noundef nonnull align 8 dereferenceable(11160) %1)
  %17 = tail call noundef i32 @_ZN9FastState13get_last_moveEv(ptr noundef nonnull align 8 dereferenceable(11160) %1)
  %18 = icmp sgt i32 %17, 0
  %19 = icmp sgt i32 %2, 0
  %or.cond = and i1 %19, %18
  br i1 %or.cond, label %20, label %25

20:                                               ; preds = %3
  %21 = tail call noundef i32 @_ZN9FastState13get_last_moveEv(ptr noundef nonnull align 8 dereferenceable(11160) %1)
  %22 = tail call i64 @_ZNK9FastBoard6get_xyEi(ptr noundef nonnull align 8 dereferenceable(11052) %1, i32 noundef %21)
  %23 = tail call i64 @_ZNK9FastBoard6get_xyEi(ptr noundef nonnull align 8 dereferenceable(11052) %1, i32 noundef %2)
  %24 = tail call noundef i32 @_ZN14BaseAttributes13move_distanceESt4pairIiiES1_(i64 %22, i64 %23)
  br label %25

25:                                               ; preds = %3, %20
  %.062 = phi i32 [ %24, %20 ], [ 100, %3 ]
  %26 = icmp slt i32 %.062, 3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<10>::reference") align 8 %4, ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 0)
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %4, i1 noundef zeroext %26) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  %28 = icmp eq i32 %.062, 3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<10>::reference") align 8 %5, ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 1)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %5, i1 noundef zeroext %28) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  %.not = icmp eq i32 %2, -1
  br i1 %.not, label %.critedge, label %30

30:                                               ; preds = %25
  %31 = call noundef i32 @_ZN9FastBoard11saving_sizeEii(ptr noundef nonnull align 8 dereferenceable(11052) %1, i32 noundef %16, i32 noundef %2)
  %32 = icmp sgt i32 %31, 0
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<10>::reference") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 2)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %6, i1 noundef zeroext %32) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  %34 = call noundef i32 @_ZN9FastBoard12capture_sizeEii(ptr noundef nonnull align 8 dereferenceable(11052) %1, i32 noundef %16, i32 noundef %2)
  %35 = icmp sgt i32 %34, 0
  br label %37

.critedge:                                        ; preds = %25
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #4
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<10>::reference") align 8 %6, ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 2)
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %6, i1 noundef zeroext false) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #4
  br label %37

37:                                               ; preds = %.critedge, %30
  %.060 = phi i1 [ %35, %30 ], [ false, %.critedge ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<10>::reference") align 8 %7, ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 3)
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %7, i1 noundef zeroext %.060) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  br i1 %.not, label %.critedge67, label %39

39:                                               ; preds = %37
  %40 = call noundef zeroext i1 @_ZN9FastBoard10self_atariEii(ptr noundef nonnull align 8 dereferenceable(11052) %1, i32 noundef %16, i32 noundef %2)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<10>::reference") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 4)
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %8, i1 noundef zeroext %40) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  %42 = call noundef ptr @_ZN12MCOwnerTable7get_MCOEv()
  %43 = call noundef float @_ZNK12MCOwnerTable12get_blackownEii(ptr noundef nonnull align 8 dereferenceable(5848) %42, i32 noundef %16, i32 noundef %2)
  br label %45

.critedge67:                                      ; preds = %37
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #4
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<10>::reference") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 4)
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %8, i1 noundef zeroext false) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  br label %45

45:                                               ; preds = %.critedge67, %39
  %.058 = phi float [ %43, %39 ], [ -1.000000e+00, %.critedge67 ]
  %46 = fcmp oge float %.058, 0xBF847AE140000000
  %47 = fcmp olt float %.058, 0x3FB99999A0000000
  %48 = and i1 %46, %47
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #4
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<10>::reference") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 5)
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %9, i1 noundef zeroext %48) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  %50 = fcmp oge float %.058, 0x3FB99999A0000000
  %51 = fcmp olt float %.058, 0x3FC99999A0000000
  %52 = and i1 %50, %51
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<10>::reference") align 8 %10, ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 6)
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %10, i1 noundef zeroext %52) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  %54 = fcmp oge float %.058, 0x3FD99999A0000000
  %55 = fcmp olt float %.058, 0x3FE6666660000000
  %56 = and i1 %54, %55
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #4
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<10>::reference") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 7)
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %11, i1 noundef zeroext %56) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #4
  %58 = fcmp oge float %.058, 0x3FECCCCCC0000000
  %59 = fcmp olt float %.058, 0x3FF028F5C0000000
  %60 = and i1 %58, %59
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #4
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<10>::reference") align 8 %12, ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 8)
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %12, i1 noundef zeroext %60) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #4
  br i1 %.not, label %.critedge69, label %62

62:                                               ; preds = %45
  %63 = call noundef i32 @_ZN9FastBoard18minimum_elib_countEii(ptr noundef nonnull align 8 dereferenceable(11052) %1, i32 noundef %16, i32 noundef %2)
  %64 = icmp eq i32 %63, 2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #4
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<10>::reference") align 8 %13, ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 9)
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %13, i1 noundef zeroext %64) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #4
  %66 = icmp ne i32 %16, 0
  %67 = call noundef i32 @_ZN9FastBoard20get_pattern3_augmentEib(ptr noundef nonnull align 8 dereferenceable(11052) %1, i32 noundef %2, i1 noundef zeroext %66)
  br label %69

.critedge69:                                      ; preds = %45
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #4
  call void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind nonnull writable sret(%"class.std::bitset<10>::reference") align 8 %13, ptr noundef nonnull align 8 dereferenceable(8) %14, i64 noundef 9)
  %68 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %13, i1 noundef zeroext false) #4
  call void @_ZNSt6bitsetILm10EE9referenceD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #4
  br label %69

69:                                               ; preds = %.critedge69, %62
  %.0 = phi i32 [ %67, %62 ], [ 65535, %.critedge69 ]
  store i32 %.0, ptr %0, align 8, !tbaa !5
  ret void
}

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

declare noundef i32 @_ZN9FastState11get_to_moveEv(ptr noundef nonnull align 8 dereferenceable(11160)) local_unnamed_addr #3

declare noundef i32 @_ZN9FastState13get_last_moveEv(ptr noundef nonnull align 8 dereferenceable(11160)) local_unnamed_addr #3

declare i64 @_ZNK9FastBoard6get_xyEi(ptr noundef nonnull align 8 dereferenceable(11052), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6bitsetILm10EEixEm(ptr dead_on_unwind noalias writable sret(%"class.std::bitset<10>::reference") align 8, ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6bitsetILm10EE9referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #2 align 2

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

declare noundef i32 @_ZN9FastBoard11saving_sizeEii(ptr noundef nonnull align 8 dereferenceable(11052), i32 noundef, i32 noundef) local_unnamed_addr #3

declare noundef i32 @_ZN9FastBoard12capture_sizeEii(ptr noundef nonnull align 8 dereferenceable(11052), i32 noundef, i32 noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN9FastBoard10self_atariEii(ptr noundef nonnull align 8 dereferenceable(11052), i32 noundef, i32 noundef) local_unnamed_addr #3

declare noundef ptr @_ZN12MCOwnerTable7get_MCOEv() local_unnamed_addr #3

declare noundef float @_ZNK12MCOwnerTable12get_blackownEii(ptr noundef nonnull align 8 dereferenceable(5848), i32 noundef, i32 noundef) local_unnamed_addr #3

declare noundef i32 @_ZN9FastBoard18minimum_elib_countEii(ptr noundef nonnull align 8 dereferenceable(11052), i32 noundef, i32 noundef) local_unnamed_addr #3

declare noundef i32 @_ZN9FastBoard20get_pattern3_augmentEib(ptr noundef nonnull align 8 dereferenceable(11052), i32 noundef, i1 noundef zeroext) local_unnamed_addr #3

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


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