; LLVM IR from JiaChangGit/network-packet-classification :: io/input.ll (ZN11InputFile5D10loadRule5DERSt6vectorI6Rule5DSaIS1_EEPKc)

; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.Rule5D = type { i32, i32, %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::array<unsigned int, 2>, std::allocator<std::array<unsigned int, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<unsigned int, 2>, std::allocator<std::array<unsigned int, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<unsigned int, 2>, std::allocator<std::array<unsigned int, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<unsigned int, 2>, std::allocator<std::array<unsigned int, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array" = type { [2 x i32] }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [63 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11InputFile5D10loadRule5DERSt6vectorI6Rule5DSaIS1_EEPKc(ptr noundef nonnull align 1 dereferenceable(1) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef %2) #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca %struct.Rule5D, align 8
  %30 = alloca %"struct.std::array", align 4
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %34 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  store ptr null, ptr %7, align 8, !tbaa !5
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = call noalias ptr @fopen(ptr noundef %35, ptr noundef @.str)
  store ptr %36, ptr %7, align 8, !tbaa !5
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = icmp eq ptr %37, null
  br i1 %38, label %39, label %42

39:                                               ; preds = %3
  %40 = load ptr, ptr @stderr, align 8, !tbaa !5
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.1) #9
  call void @exit(i32 noundef 1) #10
  unreachable

42:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store i32 -1, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %429, %42
  br label %44

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 56, ptr %29) #9
  call void @_ZN6Rule5DC2Ej(ptr noundef nonnull align 8 dereferenceable(56) %29, i32 noundef 5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = invoke i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %45, ptr noundef @.str.2, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27)
          to label %47 unwind label %50

47:                                               ; preds = %44
  %48 = icmp eq i32 %46, -1
  br i1 %48, label %49, label %54

49:                                               ; preds = %47
  store i32 3, ptr %33, align 4
  br label %427

50:                                               ; preds = %419, %378, %343, %194, %44
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %31, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %32, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @_ZN6Rule5DD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br label %431

54:                                               ; preds = %47
  %55 = load i32, ptr %16, align 4, !tbaa !9
  %56 = icmp eq i32 %55, 0
  br i1 %56, label %57, label %60

57:                                               ; preds = %54
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  store i32 0, ptr %58, align 4, !tbaa !9
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 1) #9
  store i32 -1, ptr %59, align 4, !tbaa !9
  br label %201

60:                                               ; preds = %54
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = icmp ugt i32 %61, 0
  br i1 %62, label %63, label %86

63:                                               ; preds = %60
  %64 = load i32, ptr %16, align 4, !tbaa !9
  %65 = icmp ule i32 %64, 8
  br i1 %65, label %66, label %86

66:                                               ; preds = %63
  %67 = load i32, ptr %12, align 4, !tbaa !9
  %68 = shl i32 %67, 24
  store i32 %68, ptr %9, align 4, !tbaa !9
  %69 = load i32, ptr %10, align 4, !tbaa !9
  %70 = load i32, ptr %16, align 4, !tbaa !9
  %71 = lshr i32 %69, %70
  %72 = xor i32 %71, -1
  store i32 %72, ptr %11, align 4, !tbaa !9
  %73 = load i32, ptr %11, align 4, !tbaa !9
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = and i32 %74, %73
  store i32 %75, ptr %9, align 4, !tbaa !9
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  store i32 %76, ptr %77, align 4, !tbaa !9
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = load i32, ptr %16, align 4, !tbaa !9
  %81 = sub i32 32, %80
  %82 = shl i32 1, %81
  %83 = add i32 %79, %82
  %84 = sub i32 %83, 1
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 1) #9
  store i32 %84, ptr %85, align 4, !tbaa !9
  br label %200

86:                                               ; preds = %63, %60
  %87 = load i32, ptr %16, align 4, !tbaa !9
  %88 = icmp ugt i32 %87, 8
  br i1 %88, label %89, label %116

89:                                               ; preds = %86
  %90 = load i32, ptr %16, align 4, !tbaa !9
  %91 = icmp ule i32 %90, 16
  br i1 %91, label %92, label %116

92:                                               ; preds = %89
  %93 = load i32, ptr %12, align 4, !tbaa !9
  %94 = shl i32 %93, 24
  store i32 %94, ptr %9, align 4, !tbaa !9
  %95 = load i32, ptr %13, align 4, !tbaa !9
  %96 = shl i32 %95, 16
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = add i32 %97, %96
  store i32 %98, ptr %9, align 4, !tbaa !9
  %99 = load i32, ptr %10, align 4, !tbaa !9
  %100 = load i32, ptr %16, align 4, !tbaa !9
  %101 = lshr i32 %99, %100
  %102 = xor i32 %101, -1
  store i32 %102, ptr %11, align 4, !tbaa !9
  %103 = load i32, ptr %11, align 4, !tbaa !9
  %104 = load i32, ptr %9, align 4, !tbaa !9
  %105 = and i32 %104, %103
  store i32 %105, ptr %9, align 4, !tbaa !9
  %106 = load i32, ptr %9, align 4, !tbaa !9
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  store i32 %106, ptr %107, align 4, !tbaa !9
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = load i32, ptr %16, align 4, !tbaa !9
  %111 = sub i32 32, %110
  %112 = shl i32 1, %111
  %113 = add i32 %109, %112
  %114 = sub i32 %113, 1
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 1) #9
  store i32 %114, ptr %115, align 4, !tbaa !9
  br label %199

116:                                              ; preds = %89, %86
  %117 = load i32, ptr %16, align 4, !tbaa !9
  %118 = icmp ugt i32 %117, 16
  br i1 %118, label %119, label %150

119:                                              ; preds = %116
  %120 = load i32, ptr %16, align 4, !tbaa !9
  %121 = icmp ule i32 %120, 24
  br i1 %121, label %122, label %150

122:                                              ; preds = %119
  %123 = load i32, ptr %12, align 4, !tbaa !9
  %124 = shl i32 %123, 24
  store i32 %124, ptr %9, align 4, !tbaa !9
  %125 = load i32, ptr %13, align 4, !tbaa !9
  %126 = shl i32 %125, 16
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = add i32 %127, %126
  store i32 %128, ptr %9, align 4, !tbaa !9
  %129 = load i32, ptr %14, align 4, !tbaa !9
  %130 = shl i32 %129, 8
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = add i32 %131, %130
  store i32 %132, ptr %9, align 4, !tbaa !9
  %133 = load i32, ptr %10, align 4, !tbaa !9
  %134 = load i32, ptr %16, align 4, !tbaa !9
  %135 = lshr i32 %133, %134
  %136 = xor i32 %135, -1
  store i32 %136, ptr %11, align 4, !tbaa !9
  %137 = load i32, ptr %11, align 4, !tbaa !9
  %138 = load i32, ptr %9, align 4, !tbaa !9
  %139 = and i32 %138, %137
  store i32 %139, ptr %9, align 4, !tbaa !9
  %140 = load i32, ptr %9, align 4, !tbaa !9
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  store i32 %140, ptr %141, align 4, !tbaa !9
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  %143 = load i32, ptr %142, align 4, !tbaa !9
  %144 = load i32, ptr %16, align 4, !tbaa !9
  %145 = sub i32 32, %144
  %146 = shl i32 1, %145
  %147 = add i32 %143, %146
  %148 = sub i32 %147, 1
  %149 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 1) #9
  store i32 %148, ptr %149, align 4, !tbaa !9
  br label %198

150:                                              ; preds = %119, %116
  %151 = load i32, ptr %16, align 4, !tbaa !9
  %152 = icmp ugt i32 %151, 24
  br i1 %152, label %153, label %194

153:                                              ; preds = %150
  %154 = load i32, ptr %16, align 4, !tbaa !9
  %155 = icmp ule i32 %154, 32
  br i1 %155, label %156, label %194

156:                                              ; preds = %153
  %157 = load i32, ptr %12, align 4, !tbaa !9
  %158 = shl i32 %157, 24
  store i32 %158, ptr %9, align 4, !tbaa !9
  %159 = load i32, ptr %13, align 4, !tbaa !9
  %160 = shl i32 %159, 16
  %161 = load i32, ptr %9, align 4, !tbaa !9
  %162 = add i32 %161, %160
  store i32 %162, ptr %9, align 4, !tbaa !9
  %163 = load i32, ptr %14, align 4, !tbaa !9
  %164 = shl i32 %163, 8
  %165 = load i32, ptr %9, align 4, !tbaa !9
  %166 = add i32 %165, %164
  store i32 %166, ptr %9, align 4, !tbaa !9
  %167 = load i32, ptr %15, align 4, !tbaa !9
  %168 = load i32, ptr %9, align 4, !tbaa !9
  %169 = add i32 %168, %167
  store i32 %169, ptr %9, align 4, !tbaa !9
  %170 = load i32, ptr %16, align 4, !tbaa !9
  %171 = icmp ne i32 %170, 32
  br i1 %171, label %172, label %177

172:                                              ; preds = %156
  %173 = load i32, ptr %10, align 4, !tbaa !9
  %174 = load i32, ptr %16, align 4, !tbaa !9
  %175 = lshr i32 %173, %174
  %176 = xor i32 %175, -1
  br label %179

177:                                              ; preds = %156
  %178 = load i32, ptr %10, align 4, !tbaa !9
  br label %179

179:                                              ; preds = %177, %172
  %180 = phi i32 [ %176, %172 ], [ %178, %177 ]
  store i32 %180, ptr %11, align 4, !tbaa !9
  %181 = load i32, ptr %11, align 4, !tbaa !9
  %182 = load i32, ptr %9, align 4, !tbaa !9
  %183 = and i32 %182, %181
  store i32 %183, ptr %9, align 4, !tbaa !9
  %184 = load i32, ptr %9, align 4, !tbaa !9
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  store i32 %184, ptr %185, align 4, !tbaa !9
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  %187 = load i32, ptr %186, align 4, !tbaa !9
  %188 = load i32, ptr %16, align 4, !tbaa !9
  %189 = sub i32 32, %188
  %190 = shl i32 1, %189
  %191 = add i32 %187, %190
  %192 = sub i32 %191, 1
  %193 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 1) #9
  store i32 %192, ptr %193, align 4, !tbaa !9
  br label %197

194:                                              ; preds = %153, %150
  %195 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.3)
          to label %196 unwind label %50

196:                                              ; preds = %194
  call void @exit(i32 noundef 1) #10
  unreachable

197:                                              ; preds = %179
  br label %198

198:                                              ; preds = %197, %122
  br label %199

199:                                              ; preds = %198, %92
  br label %200

200:                                              ; preds = %199, %66
  br label %201

201:                                              ; preds = %200, %57
  %202 = getelementptr inbounds %struct.Rule5D, ptr %29, i32 0, i32 3
  %203 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5arrayIjLm2EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %202, i64 noundef 0) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %203, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !11
  %204 = load i32, ptr %21, align 4, !tbaa !9
  %205 = icmp eq i32 %204, 0
  br i1 %205, label %206, label %209

206:                                              ; preds = %201
  %207 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  store i32 0, ptr %207, align 4, !tbaa !9
  %208 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 1) #9
  store i32 -1, ptr %208, align 4, !tbaa !9
  br label %350

209:                                              ; preds = %201
  %210 = load i32, ptr %21, align 4, !tbaa !9
  %211 = icmp ugt i32 %210, 0
  br i1 %211, label %212, label %235

212:                                              ; preds = %209
  %213 = load i32, ptr %21, align 4, !tbaa !9
  %214 = icmp ule i32 %213, 8
  br i1 %214, label %215, label %235

215:                                              ; preds = %212
  %216 = load i32, ptr %17, align 4, !tbaa !9
  %217 = shl i32 %216, 24
  store i32 %217, ptr %9, align 4, !tbaa !9
  %218 = load i32, ptr %10, align 4, !tbaa !9
  %219 = load i32, ptr %21, align 4, !tbaa !9
  %220 = lshr i32 %218, %219
  %221 = xor i32 %220, -1
  store i32 %221, ptr %11, align 4, !tbaa !9
  %222 = load i32, ptr %11, align 4, !tbaa !9
  %223 = load i32, ptr %9, align 4, !tbaa !9
  %224 = and i32 %223, %222
  store i32 %224, ptr %9, align 4, !tbaa !9
  %225 = load i32, ptr %9, align 4, !tbaa !9
  %226 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  store i32 %225, ptr %226, align 4, !tbaa !9
  %227 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  %228 = load i32, ptr %227, align 4, !tbaa !9
  %229 = load i32, ptr %21, align 4, !tbaa !9
  %230 = sub i32 32, %229
  %231 = shl i32 1, %230
  %232 = add i32 %228, %231
  %233 = sub i32 %232, 1
  %234 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 1) #9
  store i32 %233, ptr %234, align 4, !tbaa !9
  br label %349

235:                                              ; preds = %212, %209
  %236 = load i32, ptr %21, align 4, !tbaa !9
  %237 = icmp ugt i32 %236, 8
  br i1 %237, label %238, label %265

238:                                              ; preds = %235
  %239 = load i32, ptr %21, align 4, !tbaa !9
  %240 = icmp ule i32 %239, 16
  br i1 %240, label %241, label %265

241:                                              ; preds = %238
  %242 = load i32, ptr %17, align 4, !tbaa !9
  %243 = shl i32 %242, 24
  store i32 %243, ptr %9, align 4, !tbaa !9
  %244 = load i32, ptr %18, align 4, !tbaa !9
  %245 = shl i32 %244, 16
  %246 = load i32, ptr %9, align 4, !tbaa !9
  %247 = add i32 %246, %245
  store i32 %247, ptr %9, align 4, !tbaa !9
  %248 = load i32, ptr %10, align 4, !tbaa !9
  %249 = load i32, ptr %21, align 4, !tbaa !9
  %250 = lshr i32 %248, %249
  %251 = xor i32 %250, -1
  store i32 %251, ptr %11, align 4, !tbaa !9
  %252 = load i32, ptr %11, align 4, !tbaa !9
  %253 = load i32, ptr %9, align 4, !tbaa !9
  %254 = and i32 %253, %252
  store i32 %254, ptr %9, align 4, !tbaa !9
  %255 = load i32, ptr %9, align 4, !tbaa !9
  %256 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  store i32 %255, ptr %256, align 4, !tbaa !9
  %257 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  %258 = load i32, ptr %257, align 4, !tbaa !9
  %259 = load i32, ptr %21, align 4, !tbaa !9
  %260 = sub i32 32, %259
  %261 = shl i32 1, %260
  %262 = add i32 %258, %261
  %263 = sub i32 %262, 1
  %264 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 1) #9
  store i32 %263, ptr %264, align 4, !tbaa !9
  br label %348

265:                                              ; preds = %238, %235
  %266 = load i32, ptr %21, align 4, !tbaa !9
  %267 = icmp ugt i32 %266, 16
  br i1 %267, label %268, label %299

268:                                              ; preds = %265
  %269 = load i32, ptr %21, align 4, !tbaa !9
  %270 = icmp ule i32 %269, 24
  br i1 %270, label %271, label %299

271:                                              ; preds = %268
  %272 = load i32, ptr %17, align 4, !tbaa !9
  %273 = shl i32 %272, 24
  store i32 %273, ptr %9, align 4, !tbaa !9
  %274 = load i32, ptr %18, align 4, !tbaa !9
  %275 = shl i32 %274, 16
  %276 = load i32, ptr %9, align 4, !tbaa !9
  %277 = add i32 %276, %275
  store i32 %277, ptr %9, align 4, !tbaa !9
  %278 = load i32, ptr %19, align 4, !tbaa !9
  %279 = shl i32 %278, 8
  %280 = load i32, ptr %9, align 4, !tbaa !9
  %281 = add i32 %280, %279
  store i32 %281, ptr %9, align 4, !tbaa !9
  %282 = load i32, ptr %10, align 4, !tbaa !9
  %283 = load i32, ptr %21, align 4, !tbaa !9
  %284 = lshr i32 %282, %283
  %285 = xor i32 %284, -1
  store i32 %285, ptr %11, align 4, !tbaa !9
  %286 = load i32, ptr %11, align 4, !tbaa !9
  %287 = load i32, ptr %9, align 4, !tbaa !9
  %288 = and i32 %287, %286
  store i32 %288, ptr %9, align 4, !tbaa !9
  %289 = load i32, ptr %9, align 4, !tbaa !9
  %290 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  store i32 %289, ptr %290, align 4, !tbaa !9
  %291 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  %292 = load i32, ptr %291, align 4, !tbaa !9
  %293 = load i32, ptr %21, align 4, !tbaa !9
  %294 = sub i32 32, %293
  %295 = shl i32 1, %294
  %296 = add i32 %292, %295
  %297 = sub i32 %296, 1
  %298 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 1) #9
  store i32 %297, ptr %298, align 4, !tbaa !9
  br label %347

299:                                              ; preds = %268, %265
  %300 = load i32, ptr %21, align 4, !tbaa !9
  %301 = icmp ugt i32 %300, 24
  br i1 %301, label %302, label %343

302:                                              ; preds = %299
  %303 = load i32, ptr %21, align 4, !tbaa !9
  %304 = icmp ule i32 %303, 32
  br i1 %304, label %305, label %343

305:                                              ; preds = %302
  %306 = load i32, ptr %17, align 4, !tbaa !9
  %307 = shl i32 %306, 24
  store i32 %307, ptr %9, align 4, !tbaa !9
  %308 = load i32, ptr %18, align 4, !tbaa !9
  %309 = shl i32 %308, 16
  %310 = load i32, ptr %9, align 4, !tbaa !9
  %311 = add i32 %310, %309
  store i32 %311, ptr %9, align 4, !tbaa !9
  %312 = load i32, ptr %19, align 4, !tbaa !9
  %313 = shl i32 %312, 8
  %314 = load i32, ptr %9, align 4, !tbaa !9
  %315 = add i32 %314, %313
  store i32 %315, ptr %9, align 4, !tbaa !9
  %316 = load i32, ptr %20, align 4, !tbaa !9
  %317 = load i32, ptr %9, align 4, !tbaa !9
  %318 = add i32 %317, %316
  store i32 %318, ptr %9, align 4, !tbaa !9
  %319 = load i32, ptr %21, align 4, !tbaa !9
  %320 = icmp ne i32 %319, 32
  br i1 %320, label %321, label %326

321:                                              ; preds = %305
  %322 = load i32, ptr %10, align 4, !tbaa !9
  %323 = load i32, ptr %21, align 4, !tbaa !9
  %324 = lshr i32 %322, %323
  %325 = xor i32 %324, -1
  br label %328

326:                                              ; preds = %305
  %327 = load i32, ptr %10, align 4, !tbaa !9
  br label %328

328:                                              ; preds = %326, %321
  %329 = phi i32 [ %325, %321 ], [ %327, %326 ]
  store i32 %329, ptr %11, align 4, !tbaa !9
  %330 = load i32, ptr %11, align 4, !tbaa !9
  %331 = load i32, ptr %9, align 4, !tbaa !9
  %332 = and i32 %331, %330
  store i32 %332, ptr %9, align 4, !tbaa !9
  %333 = load i32, ptr %9, align 4, !tbaa !9
  %334 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  store i32 %333, ptr %334, align 4, !tbaa !9
  %335 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  %336 = load i32, ptr %335, align 4, !tbaa !9
  %337 = load i32, ptr %21, align 4, !tbaa !9
  %338 = sub i32 32, %337
  %339 = shl i32 1, %338
  %340 = add i32 %336, %339
  %341 = sub i32 %340, 1
  %342 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 1) #9
  store i32 %341, ptr %342, align 4, !tbaa !9
  br label %346

343:                                              ; preds = %302, %299
  %344 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.4)
          to label %345 unwind label %50

345:                                              ; preds = %343
  call void @exit(i32 noundef 1) #10
  unreachable

346:                                              ; preds = %328
  br label %347

347:                                              ; preds = %346, %271
  br label %348

348:                                              ; preds = %347, %241
  br label %349

349:                                              ; preds = %348, %215
  br label %350

350:                                              ; preds = %349, %206
  %351 = getelementptr inbounds %struct.Rule5D, ptr %29, i32 0, i32 3
  %352 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5arrayIjLm2EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %351, i64 noundef 1) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %352, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !11
  %353 = load i32, ptr %22, align 4, !tbaa !9
  %354 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  store i32 %353, ptr %354, align 4, !tbaa !9
  %355 = load i32, ptr %23, align 4, !tbaa !9
  %356 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 1) #9
  store i32 %355, ptr %356, align 4, !tbaa !9
  %357 = getelementptr inbounds %struct.Rule5D, ptr %29, i32 0, i32 3
  %358 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5arrayIjLm2EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %357, i64 noundef 2) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %358, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !11
  %359 = load i32, ptr %24, align 4, !tbaa !9
  %360 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  store i32 %359, ptr %360, align 4, !tbaa !9
  %361 = load i32, ptr %25, align 4, !tbaa !9
  %362 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 1) #9
  store i32 %361, ptr %362, align 4, !tbaa !9
  %363 = getelementptr inbounds %struct.Rule5D, ptr %29, i32 0, i32 3
  %364 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5arrayIjLm2EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %363, i64 noundef 3) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %364, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !11
  %365 = load i32, ptr %27, align 4, !tbaa !9
  %366 = icmp eq i32 %365, 255
  br i1 %366, label %367, label %372

367:                                              ; preds = %350
  %368 = load i32, ptr %26, align 4, !tbaa !9
  %369 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  store i32 %368, ptr %369, align 4, !tbaa !9
  %370 = load i32, ptr %26, align 4, !tbaa !9
  %371 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 1) #9
  store i32 %370, ptr %371, align 4, !tbaa !9
  br label %382

372:                                              ; preds = %350
  %373 = load i32, ptr %27, align 4, !tbaa !9
  %374 = icmp eq i32 %373, 0
  br i1 %374, label %375, label %378

375:                                              ; preds = %372
  %376 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 0) #9
  store i32 0, ptr %376, align 4, !tbaa !9
  %377 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %30, i64 noundef 1) #9
  store i32 255, ptr %377, align 4, !tbaa !9
  br label %381

378:                                              ; preds = %372
  %379 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef @.str.5)
          to label %380 unwind label %50

380:                                              ; preds = %378
  call void @exit(i32 noundef 1) #10
  unreachable

381:                                              ; preds = %375
  br label %382

382:                                              ; preds = %381, %367
  %383 = getelementptr inbounds %struct.Rule5D, ptr %29, i32 0, i32 3
  %384 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5arrayIjLm2EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %383, i64 noundef 4) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %384, ptr align 4 %30, i64 8, i1 false), !tbaa.struct !11
  %385 = load i32, ptr %16, align 4, !tbaa !9
  %386 = getelementptr inbounds %struct.Rule5D, ptr %29, i32 0, i32 2
  %387 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %386, i64 noundef 0) #9
  store i32 %385, ptr %387, align 4, !tbaa !9
  %388 = load i32, ptr %21, align 4, !tbaa !9
  %389 = getelementptr inbounds %struct.Rule5D, ptr %29, i32 0, i32 2
  %390 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %389, i64 noundef 1) #9
  store i32 %388, ptr %390, align 4, !tbaa !9
  %391 = load i32, ptr %22, align 4, !tbaa !9
  %392 = load i32, ptr %23, align 4, !tbaa !9
  %393 = icmp eq i32 %391, %392
  br i1 %393, label %394, label %397

394:                                              ; preds = %382
  %395 = getelementptr inbounds %struct.Rule5D, ptr %29, i32 0, i32 2
  %396 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %395, i64 noundef 2) #9
  store i32 0, ptr %396, align 4, !tbaa !9
  br label %400

397:                                              ; preds = %382
  %398 = getelementptr inbounds %struct.Rule5D, ptr %29, i32 0, i32 2
  %399 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %398, i64 noundef 2) #9
  store i32 1, ptr %399, align 4, !tbaa !9
  br label %400

400:                                              ; preds = %397, %394
  %401 = load i32, ptr %24, align 4, !tbaa !9
  %402 = load i32, ptr %25, align 4, !tbaa !9
  %403 = icmp eq i32 %401, %402
  br i1 %403, label %404, label %407

404:                                              ; preds = %400
  %405 = getelementptr inbounds %struct.Rule5D, ptr %29, i32 0, i32 2
  %406 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %405, i64 noundef 3) #9
  store i32 0, ptr %406, align 4, !tbaa !9
  br label %410

407:                                              ; preds = %400
  %408 = getelementptr inbounds %struct.Rule5D, ptr %29, i32 0, i32 2
  %409 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %408, i64 noundef 3) #9
  store i32 1, ptr %409, align 4, !tbaa !9
  br label %410

410:                                              ; preds = %407, %404
  %411 = load i32, ptr %27, align 4, !tbaa !9
  %412 = icmp ne i32 %411, 0
  br i1 %412, label %413, label %416

413:                                              ; preds = %410
  %414 = getelementptr inbounds %struct.Rule5D, ptr %29, i32 0, i32 2
  %415 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %414, i64 noundef 4) #9
  store i32 0, ptr %415, align 4, !tbaa !9
  br label %419

416:                                              ; preds = %410
  %417 = getelementptr inbounds %struct.Rule5D, ptr %29, i32 0, i32 2
  %418 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %417, i64 noundef 4) #9
  store i32 1, ptr %418, align 4, !tbaa !9
  br label %419

419:                                              ; preds = %416, %413
  %420 = load i32, ptr %28, align 4, !tbaa !9
  %421 = add i32 %420, 1
  store i32 %421, ptr %28, align 4, !tbaa !9
  %422 = load i32, ptr %28, align 4, !tbaa !9
  %423 = getelementptr inbounds %struct.Rule5D, ptr %29, i32 0, i32 1
  store i32 %422, ptr %423, align 4, !tbaa !13
  %424 = load ptr, ptr %5, align 8, !tbaa !5
  %425 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI6Rule5DSaIS0_EE12emplace_backIJRS0_EEES4_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %424, ptr noundef nonnull align 8 dereferenceable(56) %29)
          to label %426 unwind label %50

426:                                              ; preds = %419
  store i32 0, ptr %33, align 4
  br label %427

427:                                              ; preds = %426, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @_ZN6Rule5DD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %29) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr %29) #9
  %428 = load i32, ptr %33, align 4
  switch i32 %428, label %436 [
    i32 0, label %429
    i32 3, label %430
  ]

429:                                              ; preds = %427
  br label %43, !llvm.loop !23

430:                                              ; preds = %427
  store i32 1, ptr %33, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  ret void

431:                                              ; preds = %50
  %432 = load ptr, ptr %31, align 8
  %433 = load i32, ptr %32, align 4
  %434 = insertvalue { ptr, i32 } poison, ptr %432, 0
  %435 = insertvalue { ptr, i32 } %434, i32 %433, 1
  resume { ptr, i32 } %435

436:                                              ; preds = %427
  unreachable
}

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Rule5DC2Ej(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) unnamed_addr #0 align 2

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) #2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6

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

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

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

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

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

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { noreturn 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 = !{i64 0, i64 8, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !10, i64 4}
!14 = !{!"_ZTS6Rule5D", !10, i64 0, !10, i64 4, !15, i64 8, !19, i64 32}
!15 = !{!"_ZTSSt6vectorIjSaIjEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTSSt6vectorISt5arrayIjLm2EESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseISt5arrayIjLm2EESaIS1_EE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt5arrayIjLm2EESaIS1_EE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseISt5arrayIjLm2EESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; 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::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.Rule5D = type { i32, i32, %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned int, std::allocator<unsigned int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::array<unsigned int, 2>, std::allocator<std::array<unsigned int, 2>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::array<unsigned int, 2>, std::allocator<std::array<unsigned int, 2>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::array<unsigned int, 2>, std::allocator<std::array<unsigned int, 2>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::array<unsigned int, 2>, std::allocator<std::array<unsigned int, 2>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array" = type { [2 x i32] }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [63 x i8], align 1
@_ZSt4cerr = external global %"class.std::basic_ostream", align 8
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN11InputFile5D10loadRule5DERSt6vectorI6Rule5DSaIS1_EEPKc(ptr nocapture noundef nonnull readnone align 1 dereferenceable(1) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %struct.Rule5D, align 8
  %21 = alloca %"struct.std::array", align 8
  %22 = tail call noalias ptr @fopen(ptr noundef %2, ptr noundef nonnull @.str)
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %27

24:                                               ; preds = %3
  %25 = load ptr, ptr @stderr, align 8, !tbaa !5
  %26 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.1) #8
  tail call void @exit(i32 noundef 1) #9
  unreachable

27:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #10
  %28 = getelementptr inbounds i8, ptr %20, i64 32
  %29 = getelementptr inbounds i8, ptr %20, i64 8
  %30 = getelementptr inbounds i8, ptr %20, i64 4
  br label %31

31:                                               ; preds = %265, %27
  %.070 = phi i32 [ 0, %27 ], [ %263, %265 ]
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %20) #10
  call void @_ZN6Rule5DC2Ej(ptr noundef nonnull align 8 dereferenceable(56) %20, i32 noundef 5)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #10
  %32 = invoke i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %22, ptr noundef nonnull @.str.2, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19)
          to label %33 unwind label %.loopexit

33:                                               ; preds = %31
  %34 = icmp eq i32 %32, -1
  br i1 %34, label %266, label %36

.loopexit:                                        ; preds = %31, %245
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %35

.loopexit.split-lp:                               ; preds = %123, %216, %242
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %35

35:                                               ; preds = %.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #10
  call void @_ZN6Rule5DD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %20) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #10
  resume { ptr, i32 } %lpad.phi

36:                                               ; preds = %33
  %37 = load i32, ptr %8, align 4
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %41

39:                                               ; preds = %36
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  store i32 0, ptr %40, align 4, !tbaa !9
  br label %126

41:                                               ; preds = %36
  %42 = icmp ult i32 %37, 9
  br i1 %42, label %43, label %57

43:                                               ; preds = %41
  %44 = load i32, ptr %4, align 4, !tbaa !9
  %45 = shl i32 %44, 24
  %46 = lshr i32 -1, %37
  %47 = xor i32 %46, -1
  %48 = and i32 %45, %47
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  store i32 %48, ptr %49, align 4, !tbaa !9
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = sub i32 32, %52
  %54 = shl nuw i32 1, %53
  %55 = add i32 %51, -1
  %56 = add i32 %55, %54
  br label %126

57:                                               ; preds = %41
  %58 = icmp ult i32 %37, 17
  br i1 %58, label %59, label %76

59:                                               ; preds = %57
  %60 = load i32, ptr %4, align 4, !tbaa !9
  %61 = shl i32 %60, 24
  %62 = load i32, ptr %5, align 4, !tbaa !9
  %63 = shl i32 %62, 16
  %64 = add i32 %63, %61
  %65 = lshr i32 -1, %37
  %66 = xor i32 %65, -1
  %67 = and i32 %64, %66
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  store i32 %67, ptr %68, align 4, !tbaa !9
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = load i32, ptr %8, align 4, !tbaa !9
  %72 = sub i32 32, %71
  %73 = shl nuw i32 1, %72
  %74 = add i32 %70, -1
  %75 = add i32 %74, %73
  br label %126

76:                                               ; preds = %57
  %77 = icmp ult i32 %37, 25
  br i1 %77, label %78, label %98

78:                                               ; preds = %76
  %79 = load i32, ptr %4, align 4, !tbaa !9
  %80 = shl i32 %79, 24
  %81 = load i32, ptr %5, align 4, !tbaa !9
  %82 = shl i32 %81, 16
  %83 = add i32 %82, %80
  %84 = load i32, ptr %6, align 4, !tbaa !9
  %85 = shl i32 %84, 8
  %86 = add i32 %83, %85
  %87 = lshr i32 -1, %37
  %88 = xor i32 %87, -1
  %89 = and i32 %86, %88
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  store i32 %89, ptr %90, align 4, !tbaa !9
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  %92 = load i32, ptr %91, align 4, !tbaa !9
  %93 = load i32, ptr %8, align 4, !tbaa !9
  %94 = sub i32 32, %93
  %95 = shl nuw i32 1, %94
  %96 = add i32 %92, -1
  %97 = add i32 %96, %95
  br label %126

98:                                               ; preds = %76
  %99 = icmp ult i32 %37, 33
  br i1 %99, label %100, label %123

100:                                              ; preds = %98
  %101 = load i32, ptr %4, align 4, !tbaa !9
  %102 = shl i32 %101, 24
  %103 = load i32, ptr %5, align 4, !tbaa !9
  %104 = shl i32 %103, 16
  %105 = add i32 %104, %102
  %106 = load i32, ptr %6, align 4, !tbaa !9
  %107 = shl i32 %106, 8
  %108 = add i32 %105, %107
  %109 = load i32, ptr %7, align 4, !tbaa !9
  %110 = add i32 %108, %109
  %.not = icmp eq i32 %37, 32
  %111 = lshr i32 -1, %37
  %112 = xor i32 %111, -1
  %113 = select i1 %.not, i32 -1, i32 %112
  %114 = and i32 %110, %113
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  store i32 %114, ptr %115, align 4, !tbaa !9
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = sub i32 32, %118
  %120 = shl nuw i32 1, %119
  %121 = add i32 %117, -1
  %122 = add i32 %121, %120
  br label %126

123:                                              ; preds = %98
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.3)
          to label %125 unwind label %.loopexit.split-lp

125:                                              ; preds = %123
  call void @exit(i32 noundef 1) #9
  unreachable

126:                                              ; preds = %43, %78, %100, %59, %39
  %.sink = phi i32 [ %56, %43 ], [ %97, %78 ], [ %122, %100 ], [ %75, %59 ], [ -1, %39 ]
  %127 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 1) #10
  store i32 %.sink, ptr %127, align 4, !tbaa !9
  %128 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5arrayIjLm2EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 0) #10
  %129 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %129, ptr %128, align 4, !tbaa !11
  %130 = load i32, ptr %13, align 4
  %131 = icmp eq i32 %130, 0
  br i1 %131, label %132, label %134

132:                                              ; preds = %126
  %133 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  store i32 0, ptr %133, align 4, !tbaa !9
  br label %219

134:                                              ; preds = %126
  %135 = icmp ult i32 %130, 9
  br i1 %135, label %136, label %150

136:                                              ; preds = %134
  %137 = load i32, ptr %9, align 4, !tbaa !9
  %138 = shl i32 %137, 24
  %139 = lshr i32 -1, %130
  %140 = xor i32 %139, -1
  %141 = and i32 %138, %140
  %142 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  store i32 %141, ptr %142, align 4, !tbaa !9
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = load i32, ptr %13, align 4, !tbaa !9
  %146 = sub i32 32, %145
  %147 = shl nuw i32 1, %146
  %148 = add i32 %144, -1
  %149 = add i32 %148, %147
  br label %219

150:                                              ; preds = %134
  %151 = icmp ult i32 %130, 17
  br i1 %151, label %152, label %169

152:                                              ; preds = %150
  %153 = load i32, ptr %9, align 4, !tbaa !9
  %154 = shl i32 %153, 24
  %155 = load i32, ptr %10, align 4, !tbaa !9
  %156 = shl i32 %155, 16
  %157 = add i32 %156, %154
  %158 = lshr i32 -1, %130
  %159 = xor i32 %158, -1
  %160 = and i32 %157, %159
  %161 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  store i32 %160, ptr %161, align 4, !tbaa !9
  %162 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  %163 = load i32, ptr %162, align 4, !tbaa !9
  %164 = load i32, ptr %13, align 4, !tbaa !9
  %165 = sub i32 32, %164
  %166 = shl nuw i32 1, %165
  %167 = add i32 %163, -1
  %168 = add i32 %167, %166
  br label %219

169:                                              ; preds = %150
  %170 = icmp ult i32 %130, 25
  br i1 %170, label %171, label %191

171:                                              ; preds = %169
  %172 = load i32, ptr %9, align 4, !tbaa !9
  %173 = shl i32 %172, 24
  %174 = load i32, ptr %10, align 4, !tbaa !9
  %175 = shl i32 %174, 16
  %176 = add i32 %175, %173
  %177 = load i32, ptr %11, align 4, !tbaa !9
  %178 = shl i32 %177, 8
  %179 = add i32 %176, %178
  %180 = lshr i32 -1, %130
  %181 = xor i32 %180, -1
  %182 = and i32 %179, %181
  %183 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  store i32 %182, ptr %183, align 4, !tbaa !9
  %184 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  %185 = load i32, ptr %184, align 4, !tbaa !9
  %186 = load i32, ptr %13, align 4, !tbaa !9
  %187 = sub i32 32, %186
  %188 = shl nuw i32 1, %187
  %189 = add i32 %185, -1
  %190 = add i32 %189, %188
  br label %219

191:                                              ; preds = %169
  %192 = icmp ult i32 %130, 33
  br i1 %192, label %193, label %216

193:                                              ; preds = %191
  %194 = load i32, ptr %9, align 4, !tbaa !9
  %195 = shl i32 %194, 24
  %196 = load i32, ptr %10, align 4, !tbaa !9
  %197 = shl i32 %196, 16
  %198 = add i32 %197, %195
  %199 = load i32, ptr %11, align 4, !tbaa !9
  %200 = shl i32 %199, 8
  %201 = add i32 %198, %200
  %202 = load i32, ptr %12, align 4, !tbaa !9
  %203 = add i32 %201, %202
  %.not75 = icmp eq i32 %130, 32
  %204 = lshr i32 -1, %130
  %205 = xor i32 %204, -1
  %206 = select i1 %.not75, i32 -1, i32 %205
  %207 = and i32 %203, %206
  %208 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  store i32 %207, ptr %208, align 4, !tbaa !9
  %209 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  %210 = load i32, ptr %209, align 4, !tbaa !9
  %211 = load i32, ptr %13, align 4, !tbaa !9
  %212 = sub i32 32, %211
  %213 = shl nuw i32 1, %212
  %214 = add i32 %210, -1
  %215 = add i32 %214, %213
  br label %219

216:                                              ; preds = %191
  %217 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.4)
          to label %218 unwind label %.loopexit.split-lp

218:                                              ; preds = %216
  call void @exit(i32 noundef 1) #9
  unreachable

219:                                              ; preds = %136, %171, %193, %152, %132
  %.sink81 = phi i32 [ %149, %136 ], [ %190, %171 ], [ %215, %193 ], [ %168, %152 ], [ -1, %132 ]
  %220 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 1) #10
  store i32 %.sink81, ptr %220, align 4, !tbaa !9
  %221 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5arrayIjLm2EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 1) #10
  %222 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %222, ptr %221, align 4, !tbaa !11
  %223 = load i32, ptr %14, align 4, !tbaa !9
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  store i32 %223, ptr %224, align 4, !tbaa !9
  %225 = load i32, ptr %15, align 4, !tbaa !9
  %226 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 1) #10
  store i32 %225, ptr %226, align 4, !tbaa !9
  %227 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5arrayIjLm2EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 2) #10
  %228 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %228, ptr %227, align 4, !tbaa !11
  %229 = load i32, ptr %16, align 4, !tbaa !9
  %230 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  store i32 %229, ptr %230, align 4, !tbaa !9
  %231 = load i32, ptr %17, align 4, !tbaa !9
  %232 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 1) #10
  store i32 %231, ptr %232, align 4, !tbaa !9
  %233 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5arrayIjLm2EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 3) #10
  %234 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %234, ptr %233, align 4, !tbaa !11
  %235 = load i32, ptr %19, align 4, !tbaa !9
  switch i32 %235, label %242 [
    i32 255, label %236
    i32 0, label %240
  ]

236:                                              ; preds = %219
  %237 = load i32, ptr %18, align 4, !tbaa !9
  %238 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  store i32 %237, ptr %238, align 4, !tbaa !9
  %239 = load i32, ptr %18, align 4, !tbaa !9
  br label %245

240:                                              ; preds = %219
  %241 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 0) #10
  store i32 0, ptr %241, align 4, !tbaa !9
  br label %245

242:                                              ; preds = %219
  %243 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cerr, ptr noundef nonnull @.str.5)
          to label %244 unwind label %.loopexit.split-lp

244:                                              ; preds = %242
  call void @exit(i32 noundef 1) #9
  unreachable

245:                                              ; preds = %240, %236
  %.sink83 = phi i32 [ 255, %240 ], [ %239, %236 ]
  %246 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIjLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %21, i64 noundef 1) #10
  store i32 %.sink83, ptr %246, align 4, !tbaa !9
  %247 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt5arrayIjLm2EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef 4) #10
  %248 = load i64, ptr %21, align 8, !tbaa !11
  store i64 %248, ptr %247, align 4, !tbaa !11
  %249 = load i32, ptr %8, align 4, !tbaa !9
  %250 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef 0) #10
  store i32 %249, ptr %250, align 4, !tbaa !9
  %251 = load i32, ptr %13, align 4, !tbaa !9
  %252 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef 1) #10
  store i32 %251, ptr %252, align 4, !tbaa !9
  %253 = load i32, ptr %14, align 4, !tbaa !9
  %254 = load i32, ptr %15, align 4, !tbaa !9
  %255 = icmp ne i32 %253, %254
  %. = zext i1 %255 to i32
  %256 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef 2) #10
  store i32 %., ptr %256, align 4, !tbaa !9
  %257 = load i32, ptr %16, align 4, !tbaa !9
  %258 = load i32, ptr %17, align 4, !tbaa !9
  %259 = icmp ne i32 %257, %258
  %.sink87 = zext i1 %259 to i32
  %260 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef 3) #10
  store i32 %.sink87, ptr %260, align 4, !tbaa !9
  %261 = load i32, ptr %19, align 4, !tbaa !9
  %.not76 = icmp eq i32 %261, 0
  %.sink89 = zext i1 %.not76 to i32
  %262 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIjSaIjEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef 4) #10
  store i32 %.sink89, ptr %262, align 4, !tbaa !9
  %263 = add i32 %.070, 1
  store i32 %263, ptr %30, align 4, !tbaa !12
  %264 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZNSt6vectorI6Rule5DSaIS0_EE12emplace_backIJRS0_EEES4_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(56) %20)
          to label %265 unwind label %.loopexit

265:                                              ; preds = %245
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #10
  call void @_ZN6Rule5DD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %20) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %20) #10
  br label %31

266:                                              ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #10
  call void @_ZN6Rule5DD2Ev(ptr noundef nonnull align 8 dereferenceable(56) %20) #10
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %20) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #10
  ret void
}

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Rule5DC2Ej(ptr noundef nonnull align 8 dereferenceable(56), i32 noundef) unnamed_addr #0 align 2

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6

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

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

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

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

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

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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { cold nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { 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 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 4}
!13 = !{!"_ZTS6Rule5D", !10, i64 0, !10, i64 4, !14, i64 8, !18, i64 32}
!14 = !{!"_ZTSSt6vectorIjSaIjEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIjSaIjEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIjSaIjEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorISt5arrayIjLm2EESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseISt5arrayIjLm2EESaIS1_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseISt5arrayIjLm2EESaIS1_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseISt5arrayIjLm2EESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass