; LLVM IR from lzyrapx/Competitive-Programming :: Xiangtan Invitation Contest 2017/1265(F)（离散化+变形LCS）.ll (Z5solvev)

; 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::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::pair" = type <{ %"struct.std::_Rb_tree_const_iterator", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@flag = external dso_local global [202 x [202 x [202 x i32]]], align 16
@sign = external dso_local global [202 x [202 x i32]], align 16
@m = external dso_local global i32, align 4
@cnt = external dso_local global i32, align 4
@kind = external dso_local global i32, align 4
@f = external dso_local global [4 x i64], align 16
@a = external dso_local global [202 x i32], align 16
@z = external dso_local global i32, align 4
@Next = external dso_local global [202 x [202 x i32]], align 16
@se = external dso_local global %"class.std::set", align 8

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3caliii(i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #3 {
  %1 = alloca i64, align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %12 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %13 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %14 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %15 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %16 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %17 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %18 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %19 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %20 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %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 %"struct.std::_Rb_tree_const_iterator", align 8
  %27 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %28 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %29 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %30 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %31 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %32 = call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #5
  %33 = trunc i64 %32 to i32
  store i32 %33, ptr @kind, align 4, !tbaa !5
  %34 = load i32, ptr @z, align 4, !tbaa !5
  store i32 %34, ptr @cnt, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  %35 = load i32, ptr @m, align 4, !tbaa !5
  %36 = load i32, ptr @kind, align 4, !tbaa !5
  %37 = sub nsw i32 %35, %36
  %38 = sext i32 %37 to i64
  store i64 %38, ptr %1, align 8, !tbaa !9
  %39 = load i64, ptr %1, align 8, !tbaa !9
  %40 = mul nsw i64 1, %39
  %41 = load i64, ptr %1, align 8, !tbaa !9
  %42 = mul nsw i64 %40, %41
  %43 = load i64, ptr %1, align 8, !tbaa !9
  %44 = mul nsw i64 %42, %43
  store i64 %44, ptr @f, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %113, %0
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = load i32, ptr @z, align 4, !tbaa !5
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %116

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %109, %50
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = load i32, ptr @z, align 4, !tbaa !5
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %112

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %105, %56
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = load i32, ptr @z, align 4, !tbaa !5
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %108

62:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = load i32, ptr %4, align 4, !tbaa !5
  %65 = load i32, ptr %5, align 4, !tbaa !5
  %66 = call noundef i32 @_Z3caliii(i32 noundef %63, i32 noundef %64, i32 noundef %65)
  store i32 %66, ptr %6, align 4, !tbaa !5
  %67 = load i32, ptr %2, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [202 x [202 x [202 x i32]]], ptr @flag, i64 0, i64 %71
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [202 x [202 x i32]], ptr %72, i64 0, i64 %77
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [202 x i32], ptr %78, i64 0, i64 %83
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %84, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = load i32, ptr %2, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [202 x [202 x [202 x i32]]], ptr @flag, i64 0, i64 %91
  %93 = load i32, ptr %4, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [202 x [202 x i32]], ptr %92, i64 0, i64 %97
  %99 = load i32, ptr %5, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [202 x i32], ptr %98, i64 0, i64 %103
  store i32 %86, ptr %104, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %105

105:                                              ; preds = %62
  %106 = load i32, ptr %5, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %5, align 4, !tbaa !5
  br label %57, !llvm.loop !11

108:                                              ; preds = %61
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %4, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %4, align 4, !tbaa !5
  br label %51, !llvm.loop !13

112:                                              ; preds = %55
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %2, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %2, align 4, !tbaa !5
  br label %45, !llvm.loop !14

116:                                              ; preds = %49
  call void @_ZNSt3setIiSt4lessIiESaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %131, %116
  %118 = load i32, ptr %7, align 4, !tbaa !5
  %119 = load i32, ptr @z, align 4, !tbaa !5
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %134

122:                                              ; preds = %117
  %123 = load i32, ptr %7, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %124
  %126 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @se, ptr noundef nonnull align 4 dereferenceable(4) %125)
  %127 = getelementptr inbounds { ptr, i8 }, ptr %8, i32 0, i32 0
  %128 = extractvalue { ptr, i8 } %126, 0
  store ptr %128, ptr %127, align 8
  %129 = getelementptr inbounds { ptr, i8 }, ptr %8, i32 0, i32 1
  %130 = extractvalue { ptr, i8 } %126, 1
  store i8 %130, ptr %129, align 8
  br label %131

131:                                              ; preds = %122
  %132 = load i32, ptr %7, align 4, !tbaa !5
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %7, align 4, !tbaa !5
  br label %117, !llvm.loop !15

134:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @_ZNSt23_Rb_tree_const_iteratorIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @_ZNSt23_Rb_tree_const_iteratorIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  call void @_ZNSt23_Rb_tree_const_iteratorIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %135 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #5
  %136 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %12, i32 0, i32 0
  store ptr %135, ptr %136, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %12, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %137

137:                                              ; preds = %181, %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %138 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #5
  %139 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %13, i32 0, i32 0
  store ptr %138, ptr %139, align 8
  %140 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br i1 %140, label %141, label %184

141:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %142 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #5
  %143 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %14, i32 0, i32 0
  store ptr %142, ptr %143, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %14, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %144

144:                                              ; preds = %177, %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %145 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #5
  %146 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %15, i32 0, i32 0
  store ptr %145, ptr %146, align 8
  %147 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br i1 %147, label %148, label %180

148:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %149 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #5
  %150 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %16, i32 0, i32 0
  store ptr %149, ptr %150, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %16, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %151

151:                                              ; preds = %173, %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %152 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #5
  %153 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %17, i32 0, i32 0
  store ptr %152, ptr %153, align 8
  %154 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br i1 %154, label %155, label %176

155:                                              ; preds = %151
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [202 x [202 x [202 x i32]]], ptr @flag, i64 0, i64 %158
  %160 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %161 = load i32, ptr %160, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [202 x [202 x i32]], ptr %159, i64 0, i64 %162
  %164 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #5
  %165 = load i32, ptr %164, align 4, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [202 x i32], ptr %163, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [4 x i64], ptr @f, i64 0, i64 %169
  %171 = load i64, ptr %170, align 8, !tbaa !9
  %172 = add nsw i64 %171, 1
  store i64 %172, ptr %170, align 8, !tbaa !9
  br label %173

173:                                              ; preds = %155
  %174 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %11, i32 noundef 0) #5
  %175 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %18, i32 0, i32 0
  store ptr %174, ptr %175, align 8
  br label %151, !llvm.loop !19

176:                                              ; preds = %151
  br label %177

177:                                              ; preds = %176
  %178 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef 0) #5
  %179 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %19, i32 0, i32 0
  store ptr %178, ptr %179, align 8
  br label %144, !llvm.loop !20

180:                                              ; preds = %144
  br label %181

181:                                              ; preds = %180
  %182 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef 0) #5
  %183 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %20, i32 0, i32 0
  store ptr %182, ptr %183, align 8
  br label %137, !llvm.loop !21

184:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !5
  br label %185

185:                                              ; preds = %242, %184
  %186 = load i32, ptr %23, align 4, !tbaa !5
  %187 = load i32, ptr @z, align 4, !tbaa !5
  %188 = icmp slt i32 %186, %187
  br i1 %188, label %190, label %189

189:                                              ; preds = %185
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %245

190:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %191

191:                                              ; preds = %238, %190
  %192 = load i32, ptr %24, align 4, !tbaa !5
  %193 = load i32, ptr @z, align 4, !tbaa !5
  %194 = icmp slt i32 %192, %193
  br i1 %194, label %196, label %195

195:                                              ; preds = %191
  store i32 26, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %241

196:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %197 = load i32, ptr %23, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [202 x [202 x i32]], ptr @Next, i64 0, i64 %198
  %200 = load i32, ptr %24, align 4, !tbaa !5
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %201
  %203 = load i32, ptr %202, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [202 x i32], ptr %199, i64 0, i64 %204
  %206 = load i32, ptr %205, align 4, !tbaa !5
  %207 = load i32, ptr %24, align 4, !tbaa !5
  %208 = icmp eq i32 %206, %207
  br i1 %208, label %209, label %210

209:                                              ; preds = %196
  store i32 2, ptr %25, align 4, !tbaa !5
  br label %211

210:                                              ; preds = %196
  store i32 1, ptr %25, align 4, !tbaa !5
  br label %211

211:                                              ; preds = %210, %209
  %212 = load i32, ptr %23, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %213
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [202 x [202 x i32]], ptr @sign, i64 0, i64 %216
  %218 = load i32, ptr %24, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %219
  %221 = load i32, ptr %220, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [202 x i32], ptr %217, i64 0, i64 %222
  %224 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %223, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = load i32, ptr %23, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %227
  %229 = load i32, ptr %228, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [202 x [202 x i32]], ptr @sign, i64 0, i64 %230
  %232 = load i32, ptr %24, align 4, !tbaa !5
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %233
  %235 = load i32, ptr %234, align 4, !tbaa !5
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [202 x i32], ptr %231, i64 0, i64 %236
  store i32 %225, ptr %237, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %238

238:                                              ; preds = %211
  %239 = load i32, ptr %24, align 4, !tbaa !5
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %24, align 4, !tbaa !5
  br label %191, !llvm.loop !22

241:                                              ; preds = %195
  br label %242

242:                                              ; preds = %241
  %243 = load i32, ptr %23, align 4, !tbaa !5
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %23, align 4, !tbaa !5
  br label %185, !llvm.loop !23

245:                                              ; preds = %189
  store i32 0, ptr %21, align 4, !tbaa !5
  store i32 0, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %246 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #5
  %247 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %26, i32 0, i32 0
  store ptr %246, ptr %247, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 8 %26, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %248

248:                                              ; preds = %281, %245
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #5
  %249 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #5
  %250 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %27, i32 0, i32 0
  store ptr %249, ptr %250, align 8
  %251 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #5
  br i1 %251, label %252, label %284

252:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #5
  %253 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #5
  %254 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %28, i32 0, i32 0
  store ptr %253, ptr %254, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %28, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #5
  br label %255

255:                                              ; preds = %277, %252
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  %256 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #5
  %257 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %29, i32 0, i32 0
  store ptr %256, ptr %257, align 8
  %258 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %29) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br i1 %258, label %259, label %280

259:                                              ; preds = %255
  %260 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  %261 = load i32, ptr %260, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [202 x [202 x i32]], ptr @sign, i64 0, i64 %262
  %264 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #5
  %265 = load i32, ptr %264, align 4, !tbaa !5
  %266 = sext i32 %265 to i64
  %267 = getelementptr inbounds [202 x i32], ptr %263, i64 0, i64 %266
  %268 = load i32, ptr %267, align 4, !tbaa !5
  %269 = icmp eq i32 %268, 2
  br i1 %269, label %270, label %273

270:                                              ; preds = %259
  %271 = load i32, ptr %21, align 4, !tbaa !5
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %21, align 4, !tbaa !5
  br label %276

273:                                              ; preds = %259
  %274 = load i32, ptr %22, align 4, !tbaa !5
  %275 = add nsw i32 %274, 1
  store i32 %275, ptr %22, align 4, !tbaa !5
  br label %276

276:                                              ; preds = %273, %270
  br label %277

277:                                              ; preds = %276
  %278 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %10, i32 noundef 0) #5
  %279 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %30, i32 0, i32 0
  store ptr %278, ptr %279, align 8
  br label %255, !llvm.loop !24

280:                                              ; preds = %255
  br label %281

281:                                              ; preds = %280
  %282 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef 0) #5
  %283 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator", ptr %31, i32 0, i32 0
  store ptr %282, ptr %283, align 8
  br label %248, !llvm.loop !25

284:                                              ; preds = %248
  %285 = load i32, ptr %21, align 4, !tbaa !5
  %286 = sext i32 %285 to i64
  %287 = mul nsw i64 3, %286
  %288 = load i32, ptr @m, align 4, !tbaa !5
  %289 = load i32, ptr @kind, align 4, !tbaa !5
  %290 = sub nsw i32 %288, %289
  %291 = sext i32 %290 to i64
  %292 = mul nsw i64 %287, %291
  %293 = load i64, ptr getelementptr inbounds ([4 x i64], ptr @f, i64 0, i64 2), align 16, !tbaa !9
  %294 = add nsw i64 %293, %292
  store i64 %294, ptr getelementptr inbounds ([4 x i64], ptr @f, i64 0, i64 2), align 16, !tbaa !9
  %295 = load i32, ptr %22, align 4, !tbaa !5
  %296 = sext i32 %295 to i64
  %297 = mul nsw i64 3, %296
  %298 = load i32, ptr @m, align 4, !tbaa !5
  %299 = load i32, ptr @kind, align 4, !tbaa !5
  %300 = sub nsw i32 %298, %299
  %301 = sext i32 %300 to i64
  %302 = mul nsw i64 %297, %301
  %303 = load i64, ptr getelementptr inbounds ([4 x i64], ptr @f, i64 0, i64 1), align 8, !tbaa !9
  %304 = add nsw i64 %303, %302
  store i64 %304, ptr getelementptr inbounds ([4 x i64], ptr @f, i64 0, i64 1), align 8, !tbaa !9
  %305 = load i32, ptr @kind, align 4, !tbaa !5
  %306 = sext i32 %305 to i64
  %307 = mul nsw i64 3, %306
  %308 = load i32, ptr @m, align 4, !tbaa !5
  %309 = load i32, ptr @kind, align 4, !tbaa !5
  %310 = sub nsw i32 %308, %309
  %311 = sext i32 %310 to i64
  %312 = mul nsw i64 %307, %311
  %313 = load i32, ptr @m, align 4, !tbaa !5
  %314 = load i32, ptr @kind, align 4, !tbaa !5
  %315 = sub nsw i32 %313, %314
  %316 = sext i32 %315 to i64
  %317 = mul nsw i64 %312, %316
  %318 = load i64, ptr getelementptr inbounds ([4 x i64], ptr @f, i64 0, i64 1), align 8, !tbaa !9
  %319 = add nsw i64 %318, %317
  store i64 %319, ptr getelementptr inbounds ([4 x i64], ptr @f, i64 0, i64 1), align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret void
}

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

; 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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = !{i64 0, i64 8, !17}
!17 = !{!18, !18, i64 0}
!18 = !{!"any pointer", !7, i64 0}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}


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

%"class.std::set" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<int, int, std::_Identity<int>, std::less<int>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator" = type { ptr }

@flag = external dso_local global [202 x [202 x [202 x i32]]], align 16
@sign = external dso_local global [202 x [202 x i32]], align 16
@m = external dso_local local_unnamed_addr global i32, align 4
@cnt = external dso_local local_unnamed_addr global i32, align 4
@kind = external dso_local local_unnamed_addr global i32, align 4
@f = external dso_local local_unnamed_addr global [4 x i64], align 16
@a = external dso_local global [202 x i32], align 16
@z = external dso_local local_unnamed_addr global i32, align 4
@Next = external dso_local local_unnamed_addr global [202 x [202 x i32]], align 16
@se = external dso_local global %"class.std::set", align 8

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3caliii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %3 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %4 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %5 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %6 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %7 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %10 = alloca %"struct.std::_Rb_tree_const_iterator", align 8
  %11 = tail call noundef i64 @_ZNKSt3setIiSt4lessIiESaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  %12 = trunc i64 %11 to i32
  store i32 %12, ptr @kind, align 4, !tbaa !5
  %13 = load i32, ptr @z, align 4, !tbaa !5
  store i32 %13, ptr @cnt, align 4, !tbaa !5
  %14 = load i32, ptr @m, align 4, !tbaa !5
  %15 = sub nsw i32 %14, %12
  %16 = sext i32 %15 to i64
  %17 = mul nsw i64 %16, %16
  %18 = mul nsw i64 %17, %16
  store i64 %18, ptr @f, align 16, !tbaa !9
  %19 = icmp sgt i32 %13, 0
  br i1 %19, label %.preheader59, label %._crit_edge65

.preheader59:                                     ; preds = %0, %._crit_edge62
  %20 = phi i32 [ %31, %._crit_edge62 ], [ %13, %0 ]
  %indvars.iv103 = phi i64 [ %indvars.iv.next104, %._crit_edge62 ], [ 0, %0 ]
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.preheader58.preheader, label %._crit_edge62

.preheader58.preheader:                           ; preds = %.preheader59
  %22 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %indvars.iv103
  %23 = trunc nuw nsw i64 %indvars.iv103 to i32
  br label %.preheader58

._crit_edge65:                                    ; preds = %._crit_edge62, %0
  call void @_ZNSt3setIiSt4lessIiESaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  %24 = load i32, ptr @z, align 4, !tbaa !5
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %.lr.ph68, label %._crit_edge69

.preheader58:                                     ; preds = %.preheader58.preheader, %._crit_edge
  %26 = phi i32 [ %20, %.preheader58.preheader ], [ %34, %._crit_edge ]
  %27 = phi i32 [ %20, %.preheader58.preheader ], [ %35, %._crit_edge ]
  %indvars.iv100 = phi i64 [ 0, %.preheader58.preheader ], [ %indvars.iv.next101, %._crit_edge ]
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %.lr.ph, label %.preheader58.._crit_edge_crit_edge

.preheader58.._crit_edge_crit_edge:               ; preds = %.preheader58
  %.pre115 = sext i32 %27 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %.preheader58
  %29 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %indvars.iv100
  %30 = trunc nuw nsw i64 %indvars.iv100 to i32
  br label %37

._crit_edge62:                                    ; preds = %._crit_edge, %.preheader59
  %31 = phi i32 [ %20, %.preheader59 ], [ %34, %._crit_edge ]
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %32 = sext i32 %31 to i64
  %33 = icmp slt i64 %indvars.iv.next104, %32
  br i1 %33, label %.preheader59, label %._crit_edge65, !llvm.loop !11

._crit_edge:                                      ; preds = %37, %.preheader58.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre115, %.preheader58.._crit_edge_crit_edge ], [ %58, %37 ]
  %34 = phi i32 [ %26, %.preheader58.._crit_edge_crit_edge ], [ %57, %37 ]
  %35 = phi i32 [ %27, %.preheader58.._crit_edge_crit_edge ], [ %57, %37 ]
  %indvars.iv.next101 = add nuw nsw i64 %indvars.iv100, 1
  %36 = icmp slt i64 %indvars.iv.next101, %.pre-phi
  br i1 %36, label %.preheader58, label %._crit_edge62, !llvm.loop !14

37:                                               ; preds = %.lr.ph, %37
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %37 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  %38 = trunc nuw nsw i64 %indvars.iv to i32
  %39 = call noundef i32 @_Z3caliii(i32 noundef %23, i32 noundef %30, i32 noundef %38)
  store i32 %39, ptr %1, align 4, !tbaa !5
  %40 = load i32, ptr %22, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = load i32, ptr %29, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %indvars.iv
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [202 x [202 x [202 x i32]]], ptr @flag, i64 0, i64 %41, i64 %43, i64 %46
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %47, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = load i32, ptr %22, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = load i32, ptr %29, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = load i32, ptr %44, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [202 x [202 x [202 x i32]]], ptr @flag, i64 0, i64 %51, i64 %53, i64 %55
  store i32 %49, ptr %56, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %57 = load i32, ptr @z, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = icmp slt i64 %indvars.iv.next, %58
  br i1 %59, label %37, label %._crit_edge, !llvm.loop !15

._crit_edge69:                                    ; preds = %.lr.ph68, %._crit_edge65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  call void @_ZNSt23_Rb_tree_const_iteratorIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @_ZNSt23_Rb_tree_const_iteratorIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @_ZNSt23_Rb_tree_const_iteratorIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %60 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  store ptr %60, ptr %2, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %61 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  store ptr %61, ptr %5, align 8
  %62 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br i1 %62, label %.lr.ph77, label %.preheader57

.lr.ph68:                                         ; preds = %._crit_edge65, %.lr.ph68
  %indvars.iv106 = phi i64 [ %indvars.iv.next107, %.lr.ph68 ], [ 0, %._crit_edge65 ]
  %63 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %indvars.iv106
  %64 = call { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48) @se, ptr noundef nonnull align 4 dereferenceable(4) %63)
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %65 = load i32, ptr @z, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = icmp slt i64 %indvars.iv.next107, %66
  br i1 %67, label %.lr.ph68, label %._crit_edge69, !llvm.loop !18

.preheader57:                                     ; preds = %._crit_edge75, %._crit_edge69
  %68 = load i32, ptr @z, align 4, !tbaa !5
  %69 = icmp sgt i32 %68, 0
  br i1 %69, label %.preheader, label %._crit_edge82

.lr.ph77:                                         ; preds = %._crit_edge69, %._crit_edge75
  %70 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  store ptr %70, ptr %3, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %71 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  store ptr %71, ptr %6, align 8
  %72 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br i1 %72, label %.lr.ph74, label %._crit_edge75

.lr.ph74:                                         ; preds = %.lr.ph77, %._crit_edge72
  %73 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  store ptr %73, ptr %4, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %74 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  store ptr %74, ptr %7, align 8
  %75 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br i1 %75, label %.lr.ph71, label %._crit_edge72

.lr.ph71:                                         ; preds = %.lr.ph74, %.lr.ph71
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %80 = load i32, ptr %79, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #4
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [202 x [202 x [202 x i32]]], ptr @flag, i64 0, i64 %78, i64 %81, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [4 x i64], ptr @f, i64 0, i64 %87
  %89 = load i64, ptr %88, align 8, !tbaa !9
  %90 = add nsw i64 %89, 1
  store i64 %90, ptr %88, align 8, !tbaa !9
  %91 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %4, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %92 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  store ptr %92, ptr %7, align 8
  %93 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br i1 %93, label %.lr.ph71, label %._crit_edge72, !llvm.loop !19

._crit_edge72:                                    ; preds = %.lr.ph71, %.lr.ph74
  %94 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %95 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  store ptr %95, ptr %6, align 8
  %96 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br i1 %96, label %.lr.ph74, label %._crit_edge75, !llvm.loop !20

._crit_edge75:                                    ; preds = %._crit_edge72, %.lr.ph77
  %97 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %98 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  store ptr %98, ptr %5, align 8
  %99 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  br i1 %99, label %.lr.ph77, label %.preheader57, !llvm.loop !21

.preheader:                                       ; preds = %.preheader57, %._crit_edge80
  %100 = phi i32 [ %106, %._crit_edge80 ], [ %68, %.preheader57 ]
  %indvars.iv112 = phi i64 [ %indvars.iv.next113, %._crit_edge80 ], [ 0, %.preheader57 ]
  %101 = icmp sgt i32 %100, 0
  br i1 %101, label %.lr.ph79, label %.preheader.._crit_edge80_crit_edge

.preheader.._crit_edge80_crit_edge:               ; preds = %.preheader
  %.pre116 = sext i32 %100 to i64
  br label %._crit_edge80

.lr.ph79:                                         ; preds = %.preheader
  %102 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %indvars.iv112
  %.pre = load i32, ptr %102, align 4, !tbaa !5
  br label %108

._crit_edge82:                                    ; preds = %._crit_edge80, %.preheader57
  %103 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  store ptr %103, ptr %2, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %104 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  store ptr %104, ptr %9, align 8
  %105 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br i1 %105, label %.lr.ph92, label %._crit_edge93

._crit_edge80:                                    ; preds = %108, %.preheader.._crit_edge80_crit_edge
  %.pre-phi117 = phi i64 [ %.pre116, %.preheader.._crit_edge80_crit_edge ], [ %127, %108 ]
  %106 = phi i32 [ %100, %.preheader.._crit_edge80_crit_edge ], [ %126, %108 ]
  %indvars.iv.next113 = add nuw nsw i64 %indvars.iv112, 1
  %107 = icmp slt i64 %indvars.iv.next113, %.pre-phi117
  br i1 %107, label %.preheader, label %._crit_edge82, !llvm.loop !22

108:                                              ; preds = %.lr.ph79, %108
  %109 = phi i32 [ %.pre, %.lr.ph79 ], [ %121, %108 ]
  %indvars.iv109 = phi i64 [ 0, %.lr.ph79 ], [ %indvars.iv.next110, %108 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  %110 = getelementptr inbounds [202 x i32], ptr @a, i64 0, i64 %indvars.iv109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [202 x [202 x i32]], ptr @Next, i64 0, i64 %indvars.iv112, i64 %112
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = zext i32 %114 to i64
  %116 = icmp eq i64 %indvars.iv109, %115
  %. = select i1 %116, i32 2, i32 1
  store i32 %., ptr %8, align 4, !tbaa !5
  %117 = sext i32 %109 to i64
  %118 = getelementptr inbounds [202 x [202 x i32]], ptr @sign, i64 0, i64 %117, i64 %112
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %118, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = load i32, ptr %102, align 4, !tbaa !5
  %122 = sext i32 %121 to i64
  %123 = load i32, ptr %110, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [202 x [202 x i32]], ptr @sign, i64 0, i64 %122, i64 %124
  store i32 %120, ptr %125, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %126 = load i32, ptr @z, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = icmp slt i64 %indvars.iv.next110, %127
  br i1 %128, label %108, label %._crit_edge80, !llvm.loop !23

.lr.ph92:                                         ; preds = %._crit_edge82, %._crit_edge87
  %.05090 = phi i32 [ %.1.lcssa, %._crit_edge87 ], [ 0, %._crit_edge82 ]
  %.05189 = phi i32 [ %.152.lcssa, %._crit_edge87 ], [ 0, %._crit_edge82 ]
  %129 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  store ptr %129, ptr %3, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %130 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  store ptr %130, ptr %10, align 8
  %131 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br i1 %131, label %.lr.ph86, label %._crit_edge87

.lr.ph86:                                         ; preds = %.lr.ph92, %.lr.ph86
  %.184 = phi i32 [ %.2, %.lr.ph86 ], [ %.05090, %.lr.ph92 ]
  %.15283 = phi i32 [ %.253, %.lr.ph86 ], [ %.05189, %.lr.ph92 ]
  %132 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %2) #4
  %133 = load i32, ptr %132, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt23_Rb_tree_const_iteratorIiEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #4
  %136 = load i32, ptr %135, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [202 x [202 x i32]], ptr @sign, i64 0, i64 %134, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = icmp eq i32 %139, 2
  %141 = zext i1 %140 to i32
  %.253 = add nsw i32 %.15283, %141
  %not. = xor i1 %140, true
  %142 = zext i1 %not. to i32
  %.2 = add nsw i32 %.184, %142
  %143 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %144 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  store ptr %144, ptr %10, align 8
  %145 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br i1 %145, label %.lr.ph86, label %._crit_edge87, !llvm.loop !24

._crit_edge87:                                    ; preds = %.lr.ph86, %.lr.ph92
  %.152.lcssa = phi i32 [ %.05189, %.lr.ph92 ], [ %.253, %.lr.ph86 ]
  %.1.lcssa = phi i32 [ %.05090, %.lr.ph92 ], [ %.2, %.lr.ph86 ]
  %146 = call ptr @_ZNSt23_Rb_tree_const_iteratorIiEppEi(ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef 0) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %147 = call ptr @_ZNKSt3setIiSt4lessIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(48) @se) #4
  store ptr %147, ptr %9, align 8
  %148 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorIiES2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  br i1 %148, label %.lr.ph92, label %._crit_edge93.loopexit, !llvm.loop !25

._crit_edge93.loopexit:                           ; preds = %._crit_edge87
  %149 = sext i32 %.152.lcssa to i64
  %150 = sext i32 %.1.lcssa to i64
  br label %._crit_edge93

._crit_edge93:                                    ; preds = %._crit_edge93.loopexit, %._crit_edge82
  %.051.lcssa = phi i64 [ 0, %._crit_edge82 ], [ %149, %._crit_edge93.loopexit ]
  %.050.lcssa = phi i64 [ 0, %._crit_edge82 ], [ %150, %._crit_edge93.loopexit ]
  %151 = load i32, ptr @m, align 4, !tbaa !5
  %152 = load i32, ptr @kind, align 4, !tbaa !5
  %153 = sub nsw i32 %151, %152
  %154 = sext i32 %153 to i64
  %155 = mul nsw i64 %154, 3
  %156 = mul i64 %155, %.051.lcssa
  %157 = load i64, ptr getelementptr inbounds (i8, ptr @f, i64 16), align 16, !tbaa !9
  %158 = add nsw i64 %157, %156
  store i64 %158, ptr getelementptr inbounds (i8, ptr @f, i64 16), align 16, !tbaa !9
  %159 = load i64, ptr getelementptr inbounds (i8, ptr @f, i64 8), align 8, !tbaa !9
  %160 = sext i32 %152 to i64
  %161 = mul nsw i64 %154, %160
  %reass.add55 = add nsw i64 %161, %.050.lcssa
  %reass.mul = mul i64 %155, %reass.add55
  %162 = add i64 %reass.mul, %159
  store i64 %162, ptr getelementptr inbounds (i8, ptr @f, i64 8), align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  ret void
}

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

; 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 #3

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt3setIiSt4lessIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12, !13}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.unswitch.partial.disable"}
!14 = distinct !{!14, !12, !13}
!15 = distinct !{!15, !12}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12, !13}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass