; LLVM IR from kazunetakahashi/atcoder :: 201610_12/1106_ARC063/E.ll (Z2oki)

; 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.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<condition, std::allocator<condition>>::_Vector_impl" }
%"struct.std::_Vector_base<condition, std::allocator<condition>>::_Vector_impl" = type { %"struct.std::_Vector_base<condition, std::allocator<condition>>::_Vector_impl_data" }
%"struct.std::_Vector_base<condition, std::allocator<condition>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.condition = type { i32, i32, i8 }
%"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 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }

@X = external dso_local global [100010 x i32], align 16
@C = external dso_local global [100010 x %"class.std::vector.0"], align 16
@D = external dso_local global [100010 x %struct.condition], align 16
@children = external dso_local global [100010 x %"class.std::vector"], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z7ok_condi9condition(i32 noundef, i64, i8) #0

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z2oki(i32 noundef %0) #3 {
  %2 = alloca i1, align 1
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.condition, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %13 = alloca %struct.condition, align 4
  %14 = alloca %struct.condition, align 4
  %15 = alloca { i64, i8 }, align 4
  %16 = alloca %struct.condition, align 4
  %17 = alloca %struct.condition, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i8, align 1
  %21 = alloca ptr, align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %24 = alloca %struct.condition, align 4
  %25 = alloca %struct.condition, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @children, i64 0, i64 %27
  store ptr %28, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %29 = load ptr, ptr %4, align 8, !tbaa !9
  %30 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  %31 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %30, ptr %31, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %32 = load ptr, ptr %4, align 8, !tbaa !9
  %33 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #5
  %34 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %6, i32 0, i32 0
  store ptr %33, ptr %34, align 8
  br label %35

35:                                               ; preds = %79, %1
  %36 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %36, label %38, label %37

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

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %40 = load i32, ptr %39, align 4, !tbaa !5
  store i32 %40, ptr %8, align 4, !tbaa !5
  %41 = load i32, ptr %8, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [100010 x %struct.condition], ptr @D, i64 0, i64 %42
  %44 = getelementptr inbounds %struct.condition, ptr %43, i32 0, i32 0
  %45 = load i32, ptr %44, align 4, !tbaa !11
  %46 = icmp eq i32 %45, 1000000007
  br i1 %46, label %47, label %48

47:                                               ; preds = %38
  store i32 3, ptr %7, align 4
  br label %76

48:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #5
  %49 = load i32, ptr %8, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [100010 x %struct.condition], ptr @D, i64 0, i64 %50
  %52 = getelementptr inbounds %struct.condition, ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 4, !tbaa !11
  %54 = add nsw i32 %53, 1
  %55 = getelementptr inbounds %struct.condition, ptr %9, i32 0, i32 0
  store i32 %54, ptr %55, align 4, !tbaa !11
  %56 = load i32, ptr %8, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [100010 x %struct.condition], ptr @D, i64 0, i64 %57
  %59 = getelementptr inbounds %struct.condition, ptr %58, i32 0, i32 1
  %60 = load i32, ptr %59, align 4, !tbaa !14
  %61 = sub nsw i32 %60, 1
  %62 = getelementptr inbounds %struct.condition, ptr %9, i32 0, i32 1
  store i32 %61, ptr %62, align 4, !tbaa !14
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [100010 x %struct.condition], ptr @D, i64 0, i64 %64
  %66 = getelementptr inbounds %struct.condition, ptr %65, i32 0, i32 2
  %67 = load i8, ptr %66, align 4, !tbaa !15, !range !16, !noundef !17
  %68 = trunc i8 %67 to i1
  %69 = xor i1 %68, true
  %70 = getelementptr inbounds %struct.condition, ptr %9, i32 0, i32 2
  %71 = zext i1 %69 to i8
  store i8 %71, ptr %70, align 4, !tbaa !15
  %72 = load i32, ptr %3, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [100010 x %"class.std::vector.0"], ptr @C, i64 0, i64 %73
  call void @_ZNSt6vectorI9conditionSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #5
  br label %75

75:                                               ; preds = %48
  store i32 0, ptr %7, align 4
  br label %76

76:                                               ; preds = %75, %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %77 = load i32, ptr %7, align 4
  switch i32 %77, label %232 [
    i32 0, label %78
    i32 3, label %79
  ]

78:                                               ; preds = %76
  br label %79

79:                                               ; preds = %78, %76
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  br label %35

81:                                               ; preds = %37
  %82 = load i32, ptr %3, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [100010 x i32], ptr @X, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = icmp ne i32 %85, 1000000007
  br i1 %86, label %87, label %142

87:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %88 = load i32, ptr %3, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [100010 x %"class.std::vector.0"], ptr @C, i64 0, i64 %89
  store ptr %90, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %91 = load ptr, ptr %10, align 8, !tbaa !9
  %92 = call ptr @_ZNSt6vectorI9conditionSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %91) #5
  %93 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %11, i32 0, i32 0
  store ptr %92, ptr %93, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %94 = load ptr, ptr %10, align 8, !tbaa !9
  %95 = call ptr @_ZNSt6vectorI9conditionSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %94) #5
  %96 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %12, i32 0, i32 0
  store ptr %95, ptr %96, align 8
  br label %97

97:                                               ; preds = %116, %87
  %98 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9conditionSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  br i1 %98, label %100, label %99

99:                                               ; preds = %97
  store i32 4, ptr %7, align 4
  br label %118

100:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #5
  %101 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9conditionSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %101, i64 12, i1 false), !tbaa.struct !18
  %102 = load i32, ptr %3, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [100010 x i32], ptr @X, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %13, i64 12, i1 false), !tbaa.struct !18
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %14, i64 12, i1 false)
  %106 = getelementptr inbounds { i64, i8 }, ptr %15, i32 0, i32 0
  %107 = load i64, ptr %106, align 4
  %108 = getelementptr inbounds { i64, i8 }, ptr %15, i32 0, i32 1
  %109 = load i8, ptr %108, align 4
  %110 = call noundef zeroext i1 @_Z7ok_condi9condition(i32 noundef %105, i64 %107, i8 %109)
  br i1 %110, label %112, label %111

111:                                              ; preds = %100
  store i1 false, ptr %2, align 1
  store i32 1, ptr %7, align 4
  br label %113

112:                                              ; preds = %100
  store i32 0, ptr %7, align 4
  br label %113

113:                                              ; preds = %112, %111
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #5
  %114 = load i32, ptr %7, align 4
  switch i32 %114, label %118 [
    i32 0, label %115
  ]

115:                                              ; preds = %113
  br label %116

116:                                              ; preds = %115
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9conditionSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  br label %97

118:                                              ; preds = %113, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %119 = load i32, ptr %7, align 4
  switch i32 %119, label %232 [
    i32 4, label %120
    i32 1, label %230
  ]

120:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #5
  %121 = load i32, ptr %3, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [100010 x i32], ptr @X, i64 0, i64 %122
  %124 = load i32, ptr %123, align 4, !tbaa !5
  %125 = getelementptr inbounds %struct.condition, ptr %16, i32 0, i32 0
  store i32 %124, ptr %125, align 4, !tbaa !11
  %126 = load i32, ptr %3, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [100010 x i32], ptr @X, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !5
  %130 = getelementptr inbounds %struct.condition, ptr %16, i32 0, i32 1
  store i32 %129, ptr %130, align 4, !tbaa !14
  %131 = load i32, ptr %3, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [100010 x i32], ptr @X, i64 0, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = srem i32 %134, 2
  %136 = icmp eq i32 %135, 1
  %137 = getelementptr inbounds %struct.condition, ptr %16, i32 0, i32 2
  %138 = zext i1 %136 to i8
  store i8 %138, ptr %137, align 4, !tbaa !15
  %139 = load i32, ptr %3, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [100010 x %struct.condition], ptr @D, i64 0, i64 %140
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %141, ptr align 4 %16, i64 12, i1 false), !tbaa.struct !18
  store i1 true, ptr %2, align 1
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #5
  br label %230

142:                                              ; preds = %81
  %143 = load i32, ptr %3, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [100010 x %"class.std::vector.0"], ptr @C, i64 0, i64 %144
  %146 = call noundef zeroext i1 @_ZNKSt6vectorI9conditionSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %145) #5
  br i1 %146, label %147, label %154

147:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #5
  %148 = getelementptr inbounds %struct.condition, ptr %17, i32 0, i32 0
  store i32 1000000007, ptr %148, align 4, !tbaa !11
  %149 = getelementptr inbounds %struct.condition, ptr %17, i32 0, i32 1
  store i32 1000000007, ptr %149, align 4, !tbaa !14
  %150 = getelementptr inbounds %struct.condition, ptr %17, i32 0, i32 2
  store i8 1, ptr %150, align 4, !tbaa !15
  %151 = load i32, ptr %3, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [100010 x %struct.condition], ptr @D, i64 0, i64 %152
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %153, ptr align 4 %17, i64 12, i1 false), !tbaa.struct !18
  store i1 true, ptr %2, align 1
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #5
  br label %230

154:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %155 = load i32, ptr %3, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [100010 x %"class.std::vector.0"], ptr @C, i64 0, i64 %156
  %158 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI9conditionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %157, i64 noundef 0) #5
  %159 = getelementptr inbounds %struct.condition, ptr %158, i32 0, i32 0
  %160 = load i32, ptr %159, align 4, !tbaa !11
  store i32 %160, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %161 = load i32, ptr %3, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [100010 x %"class.std::vector.0"], ptr @C, i64 0, i64 %162
  %164 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI9conditionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %163, i64 noundef 0) #5
  %165 = getelementptr inbounds %struct.condition, ptr %164, i32 0, i32 1
  %166 = load i32, ptr %165, align 4, !tbaa !14
  store i32 %166, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #5
  %167 = load i32, ptr %3, align 4, !tbaa !5
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [100010 x %"class.std::vector.0"], ptr @C, i64 0, i64 %168
  %170 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI9conditionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %169, i64 noundef 0) #5
  %171 = getelementptr inbounds %struct.condition, ptr %170, i32 0, i32 2
  %172 = load i8, ptr %171, align 4, !tbaa !15, !range !16, !noundef !17
  %173 = trunc i8 %172 to i1
  %174 = zext i1 %173 to i8
  store i8 %174, ptr %20, align 1, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %175 = load i32, ptr %3, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [100010 x %"class.std::vector.0"], ptr @C, i64 0, i64 %176
  store ptr %177, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %178 = load ptr, ptr %21, align 8, !tbaa !9
  %179 = call ptr @_ZNSt6vectorI9conditionSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %178) #5
  %180 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %22, i32 0, i32 0
  store ptr %179, ptr %180, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %181 = load ptr, ptr %21, align 8, !tbaa !9
  %182 = call ptr @_ZNSt6vectorI9conditionSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %181) #5
  %183 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.5", ptr %23, i32 0, i32 0
  store ptr %182, ptr %183, align 8
  br label %184

184:                                              ; preds = %208, %154
  %185 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9conditionSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #5
  br i1 %185, label %187, label %186

186:                                              ; preds = %184
  store i32 6, ptr %7, align 4
  br label %210

187:                                              ; preds = %184
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #5
  %188 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9conditionSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %188, i64 12, i1 false), !tbaa.struct !18
  %189 = getelementptr inbounds %struct.condition, ptr %24, i32 0, i32 0
  %190 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %189)
  %191 = load i32, ptr %190, align 4, !tbaa !5
  store i32 %191, ptr %18, align 4, !tbaa !5
  %192 = getelementptr inbounds %struct.condition, ptr %24, i32 0, i32 1
  %193 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %192)
  %194 = load i32, ptr %193, align 4, !tbaa !5
  store i32 %194, ptr %19, align 4, !tbaa !5
  %195 = load i8, ptr %20, align 1, !tbaa !19, !range !16, !noundef !17
  %196 = trunc i8 %195 to i1
  %197 = zext i1 %196 to i32
  %198 = getelementptr inbounds %struct.condition, ptr %24, i32 0, i32 2
  %199 = load i8, ptr %198, align 4, !tbaa !15, !range !16, !noundef !17
  %200 = trunc i8 %199 to i1
  %201 = zext i1 %200 to i32
  %202 = icmp ne i32 %197, %201
  br i1 %202, label %203, label %204

203:                                              ; preds = %187
  store i1 false, ptr %2, align 1
  store i32 1, ptr %7, align 4
  br label %205

204:                                              ; preds = %187
  store i32 0, ptr %7, align 4
  br label %205

205:                                              ; preds = %204, %203
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #5
  %206 = load i32, ptr %7, align 4
  switch i32 %206, label %210 [
    i32 0, label %207
  ]

207:                                              ; preds = %205
  br label %208

208:                                              ; preds = %207
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9conditionSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #5
  br label %184

210:                                              ; preds = %205, %186
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  %211 = load i32, ptr %7, align 4
  switch i32 %211, label %229 [
    i32 6, label %212
  ]

212:                                              ; preds = %210
  %213 = load i32, ptr %18, align 4, !tbaa !5
  %214 = load i32, ptr %19, align 4, !tbaa !5
  %215 = icmp slt i32 %213, %214
  br i1 %215, label %216, label %217

216:                                              ; preds = %212
  store i1 false, ptr %2, align 1
  store i32 1, ptr %7, align 4
  br label %229

217:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 12, ptr %25) #5
  %218 = load i32, ptr %18, align 4, !tbaa !5
  %219 = getelementptr inbounds %struct.condition, ptr %25, i32 0, i32 0
  store i32 %218, ptr %219, align 4, !tbaa !11
  %220 = load i32, ptr %19, align 4, !tbaa !5
  %221 = getelementptr inbounds %struct.condition, ptr %25, i32 0, i32 1
  store i32 %220, ptr %221, align 4, !tbaa !14
  %222 = load i8, ptr %20, align 1, !tbaa !19, !range !16, !noundef !17
  %223 = trunc i8 %222 to i1
  %224 = getelementptr inbounds %struct.condition, ptr %25, i32 0, i32 2
  %225 = zext i1 %223 to i8
  store i8 %225, ptr %224, align 4, !tbaa !15
  %226 = load i32, ptr %3, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [100010 x %struct.condition], ptr @D, i64 0, i64 %227
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %228, ptr align 4 %25, i64 12, i1 false), !tbaa.struct !18
  store i1 true, ptr %2, align 1
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #5
  br label %229

229:                                              ; preds = %217, %216, %210
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %230

230:                                              ; preds = %229, %147, %120, %118
  %231 = load i1, ptr %2, align 1
  ret i1 %231

232:                                              ; preds = %118, %76
  unreachable
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI9conditionSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorI9conditionSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS9condition", !6, i64 0, !6, i64 4, !13, i64 8}
!13 = !{!"bool", !7, i64 0}
!14 = !{!12, !6, i64 4}
!15 = !{!12, !13, i64 8}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 1, !19}
!19 = !{!13, !13, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<condition, std::allocator<condition>>::_Vector_impl" }
%"struct.std::_Vector_base<condition, std::allocator<condition>>::_Vector_impl" = type { %"struct.std::_Vector_base<condition, std::allocator<condition>>::_Vector_impl_data" }
%"struct.std::_Vector_base<condition, std::allocator<condition>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.condition = type { i32, i32, i8 }
%"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 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.__gnu_cxx::__normal_iterator.5" = type { ptr }

@X = external dso_local local_unnamed_addr global [100010 x i32], align 16
@C = external dso_local global [100010 x %"class.std::vector.0"], align 16
@D = external dso_local local_unnamed_addr global [100010 x %struct.condition], align 16
@children = external dso_local global [100010 x %"class.std::vector"], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z7ok_condi9condition(i32 noundef, i64, i8) local_unnamed_addr #0

; Function Attrs: mustprogress 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) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z2oki(i32 noundef %0) local_unnamed_addr #3 {
  %2 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %3 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %4 = alloca %struct.condition, align 4
  %5 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.5", align 8
  %11 = alloca %struct.condition, align 4
  %12 = sext i32 %0 to i64
  %13 = getelementptr inbounds [100010 x %"class.std::vector"], ptr @children, i64 0, i64 %12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %14 = tail call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %14, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %15 = tail call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  store ptr %15, ptr %3, align 8
  %16 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br i1 %16, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %17 = getelementptr inbounds i8, ptr %4, i64 4
  %18 = getelementptr inbounds i8, ptr %4, i64 8
  %19 = getelementptr inbounds [100010 x %"class.std::vector.0"], ptr @C, i64 0, i64 %12
  br label %23

._crit_edge:                                      ; preds = %38, %1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %20 = getelementptr inbounds [100010 x i32], ptr @X, i64 0, i64 %12
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %.not = icmp eq i32 %21, 1000000007
  %22 = getelementptr inbounds [100010 x %"class.std::vector.0"], ptr @C, i64 0, i64 %12
  br i1 %.not, label %57, label %41

23:                                               ; preds = %.lr.ph, %38
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [100010 x %struct.condition], ptr @D, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !9
  %29 = icmp eq i32 %28, 1000000007
  br i1 %29, label %38, label %30

30:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #5
  %31 = add nsw i32 %28, 1
  store i32 %31, ptr %4, align 4, !tbaa !9
  %32 = getelementptr inbounds i8, ptr %27, i64 4
  %33 = load i32, ptr %32, align 4, !tbaa !12
  %34 = add nsw i32 %33, -1
  store i32 %34, ptr %17, align 4, !tbaa !12
  %35 = getelementptr inbounds i8, ptr %27, i64 8
  %36 = load i8, ptr %35, align 4, !tbaa !13, !range !14, !noundef !15
  %37 = xor i8 %36, 1
  store i8 %37, ptr %18, align 4, !tbaa !13
  call void @_ZNSt6vectorI9conditionSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 4 dereferenceable(12) %4)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #5
  br label %38

38:                                               ; preds = %23, %30
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #5
  %40 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  br i1 %40, label %23, label %._crit_edge

41:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %42 = call ptr @_ZNSt6vectorI9conditionSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  store ptr %42, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %43 = call ptr @_ZNSt6vectorI9conditionSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  store ptr %43, ptr %6, align 8
  %44 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9conditionSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %44, label %.lr.ph58, label %._crit_edge59

.lr.ph58:                                         ; preds = %41, %48
  %45 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9conditionSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %.sroa.017.0.copyload = load i64, ptr %45, align 4
  %.sroa.418.0..sroa_idx = getelementptr inbounds i8, ptr %45, i64 8
  %.sroa.418.0.copyload = load i8, ptr %.sroa.418.0..sroa_idx, align 4, !tbaa !16
  %46 = load i32, ptr %20, align 4, !tbaa !5
  %47 = call noundef zeroext i1 @_Z7ok_condi9condition(i32 noundef %46, i64 %.sroa.017.0.copyload, i8 %.sroa.418.0.copyload)
  br i1 %47, label %48, label %51

48:                                               ; preds = %.lr.ph58
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9conditionSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #5
  %50 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9conditionSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  br i1 %50, label %.lr.ph58, label %._crit_edge59

51:                                               ; preds = %.lr.ph58
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  br label %92

._crit_edge59:                                    ; preds = %48, %41
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  %52 = load i32, ptr %20, align 4, !tbaa !5
  %53 = and i32 %52, -2147483647
  %54 = icmp eq i32 %53, 1
  %55 = zext i1 %54 to i8
  %56 = getelementptr inbounds [100010 x %struct.condition], ptr @D, i64 0, i64 %12
  store i32 %52, ptr %56, align 4, !tbaa !5
  %.sroa.410.0..sroa_idx = getelementptr inbounds i8, ptr %56, i64 4
  store i32 %52, ptr %.sroa.410.0..sroa_idx, align 4, !tbaa !5
  %.sroa.511.0..sroa_idx = getelementptr inbounds i8, ptr %56, i64 8
  store i8 %55, ptr %.sroa.511.0..sroa_idx, align 4, !tbaa !16
  br label %92

57:                                               ; preds = %._crit_edge
  %58 = call noundef zeroext i1 @_ZNKSt6vectorI9conditionSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  br i1 %58, label %59, label %61

59:                                               ; preds = %57
  %60 = getelementptr inbounds [100010 x %struct.condition], ptr @D, i64 0, i64 %12
  store i32 1000000007, ptr %60, align 4, !tbaa !5
  %.sroa.46.0..sroa_idx = getelementptr inbounds i8, ptr %60, i64 4
  store i32 1000000007, ptr %.sroa.46.0..sroa_idx, align 4, !tbaa !5
  %.sroa.57.0..sroa_idx = getelementptr inbounds i8, ptr %60, i64 8
  store i8 1, ptr %.sroa.57.0..sroa_idx, align 4, !tbaa !16
  br label %92

61:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %62 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI9conditionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef 0) #5
  %63 = load i32, ptr %62, align 4, !tbaa !9
  store i32 %63, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  %64 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI9conditionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef 0) #5
  %65 = getelementptr inbounds i8, ptr %64, i64 4
  %66 = load i32, ptr %65, align 4, !tbaa !12
  store i32 %66, ptr %8, align 4, !tbaa !5
  %67 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI9conditionSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef 0) #5
  %68 = getelementptr inbounds i8, ptr %67, i64 8
  %69 = load i8, ptr %68, align 4, !tbaa !13, !range !14, !noundef !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %70 = call ptr @_ZNSt6vectorI9conditionSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  store ptr %70, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %71 = call ptr @_ZNSt6vectorI9conditionSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #5
  store ptr %71, ptr %10, align 8
  %72 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9conditionSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %72, label %.lr.ph61, label %._crit_edge62

.lr.ph61:                                         ; preds = %61
  %73 = getelementptr inbounds i8, ptr %11, i64 4
  %74 = getelementptr inbounds i8, ptr %11, i64 8
  br label %75

75:                                               ; preds = %.lr.ph61, %82
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  %76 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP9conditionSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 4 dereferenceable(12) %76, i64 12, i1 false), !tbaa.struct !17
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %78 = load i32, ptr %77, align 4, !tbaa !5
  store i32 %78, ptr %7, align 4, !tbaa !5
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %73)
  %80 = load i32, ptr %79, align 4, !tbaa !5
  store i32 %80, ptr %8, align 4, !tbaa !5
  %81 = load i8, ptr %74, align 4, !tbaa !13, !range !14, !noundef !15
  %.not53 = icmp eq i8 %69, %81
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  br i1 %.not53, label %82, label %85

82:                                               ; preds = %75
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIP9conditionSt6vectorIS1_SaIS1_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %84 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP9conditionSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  br i1 %84, label %75, label %._crit_edge62.loopexit

85:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %91

._crit_edge62.loopexit:                           ; preds = %82
  %.pre = load i32, ptr %7, align 4, !tbaa !5
  %.pre63 = load i32, ptr %8, align 4, !tbaa !5
  br label %._crit_edge62

._crit_edge62:                                    ; preds = %._crit_edge62.loopexit, %61
  %86 = phi i32 [ %.pre63, %._crit_edge62.loopexit ], [ %66, %61 ]
  %87 = phi i32 [ %.pre, %._crit_edge62.loopexit ], [ %63, %61 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  %88 = icmp slt i32 %87, %86
  br i1 %88, label %91, label %89

89:                                               ; preds = %._crit_edge62
  %90 = getelementptr inbounds [100010 x %struct.condition], ptr @D, i64 0, i64 %12
  store i32 %87, ptr %90, align 4, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %90, i64 4
  store i32 %86, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %90, i64 8
  store i8 %69, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !16
  br label %91

91:                                               ; preds = %85, %._crit_edge62, %89
  %.6 = phi i1 [ true, %89 ], [ false, %85 ], [ false, %._crit_edge62 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %92

92:                                               ; preds = %51, %91, %59, %._crit_edge59
  %.7 = phi i1 [ false, %51 ], [ true, %._crit_edge59 ], [ true, %59 ], [ %.6, %91 ]
  ret i1 %.7
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI9conditionSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorI9conditionSaIS0_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass