; LLVM IR from tangjz/acm-icpc :: uvalive/7217.ll (Z6chkNegv)

; 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"

@low = external dso_local global i32, align 4
@high = external dso_local global i32, align 4
@b = external dso_local global [5 x i32], align 16
@c = external dso_local global [5 x i32], align 16

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6chkNegv() #3 {
  %1 = alloca i32, align 4
  %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 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @c, i8 0, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  %21 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %22 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5
  %23 = icmp slt i32 %21, %22
  %24 = zext i1 %23 to i64
  %25 = select i1 %23, i32 1, i32 0
  store i32 %25, ptr %2, align 4, !tbaa !5
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [5 x i32], ptr @c, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %28, align 4, !tbaa !5
  %31 = load i32, ptr %1, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %33 = load i32, ptr @high, align 4, !tbaa !5
  %34 = load i32, ptr %1, align 4, !tbaa !5
  %35 = sub nsw i32 %33, %34
  store i32 %35, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %36 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5
  %37 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %38 = sub nsw i32 %36, %37
  store i32 %38, ptr %5, align 4, !tbaa !5
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = ashr i32 %40, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  store i32 %41, ptr %3, align 4, !tbaa !5
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = shl i32 %42, 1
  %44 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %45 = add nsw i32 %44, %43
  store i32 %45, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %46 = load i32, ptr %3, align 4, !tbaa !5
  %47 = shl i32 %46, 1
  %48 = load i32, ptr %1, align 4, !tbaa !5
  %49 = add nsw i32 %48, %47
  store i32 %49, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %50 = load i32, ptr @high, align 4, !tbaa !5
  %51 = load i32, ptr %1, align 4, !tbaa !5
  %52 = sub nsw i32 %50, %51
  store i32 %52, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %53 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @b, i64 0, i64 3), align 4, !tbaa !5
  %54 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 3), align 4, !tbaa !5
  %55 = sub nsw i32 %53, %54
  store i32 %55, ptr %8, align 4, !tbaa !5
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %57 = load i32, ptr %56, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  store i32 %57, ptr %6, align 4, !tbaa !5
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 3), align 4, !tbaa !5
  %60 = add nsw i32 %59, %58
  store i32 %60, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 3), align 4, !tbaa !5
  %61 = load i32, ptr %6, align 4, !tbaa !5
  %62 = load i32, ptr %1, align 4, !tbaa !5
  %63 = add nsw i32 %62, %61
  store i32 %63, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %64 = load i32, ptr %1, align 4, !tbaa !5
  %65 = load i32, ptr @low, align 4, !tbaa !5
  %66 = icmp slt i32 %64, %65
  br i1 %66, label %67, label %87

67:                                               ; preds = %0
  %68 = load i32, ptr @c, align 16, !tbaa !5
  %69 = load i32, ptr @b, align 16, !tbaa !5
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %71, label %87

71:                                               ; preds = %67
  %72 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %73 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5
  %74 = icmp slt i32 %72, %73
  br i1 %74, label %75, label %87

75:                                               ; preds = %71
  %76 = load i32, ptr %1, align 4, !tbaa !5
  %77 = add nsw i32 %76, 2
  %78 = load i32, ptr @high, align 4, !tbaa !5
  %79 = icmp sle i32 %77, %78
  br i1 %79, label %80, label %87

80:                                               ; preds = %75
  %81 = load i32, ptr @c, align 16, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr @c, align 16, !tbaa !5
  %83 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %85 = load i32, ptr %1, align 4, !tbaa !5
  %86 = add nsw i32 %85, 2
  store i32 %86, ptr %1, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %80, %75, %71, %67, %0
  %88 = load i32, ptr %1, align 4, !tbaa !5
  %89 = load i32, ptr @low, align 4, !tbaa !5
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %91, label %114

91:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %92 = load i32, ptr @low, align 4, !tbaa !5
  %93 = load i32, ptr %1, align 4, !tbaa !5
  %94 = sub nsw i32 %92, %93
  %95 = load i32, ptr @low, align 4, !tbaa !5
  %96 = load i32, ptr @high, align 4, !tbaa !5
  %97 = icmp slt i32 %95, %96
  %98 = zext i1 %97 to i32
  %99 = add nsw i32 %94, %98
  store i32 %99, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %100 = load i32, ptr @b, align 16, !tbaa !5
  %101 = load i32, ptr @c, align 16, !tbaa !5
  %102 = sub nsw i32 %100, %101
  store i32 %102, ptr %11, align 4, !tbaa !5
  %103 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = ashr i32 %104, 1
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  store i32 %105, ptr %9, align 4, !tbaa !5
  %106 = load i32, ptr %9, align 4, !tbaa !5
  %107 = shl i32 %106, 1
  %108 = load i32, ptr @c, align 16, !tbaa !5
  %109 = add nsw i32 %108, %107
  store i32 %109, ptr @c, align 16, !tbaa !5
  %110 = load i32, ptr %9, align 4, !tbaa !5
  %111 = shl i32 %110, 1
  %112 = load i32, ptr %1, align 4, !tbaa !5
  %113 = add nsw i32 %112, %111
  store i32 %113, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %114

114:                                              ; preds = %91, %87
  %115 = load i32, ptr %1, align 4, !tbaa !5
  %116 = load i32, ptr @low, align 4, !tbaa !5
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %118, label %133

118:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %119 = load i32, ptr @low, align 4, !tbaa !5
  %120 = load i32, ptr %1, align 4, !tbaa !5
  %121 = sub nsw i32 %119, %120
  store i32 %121, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %122 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @b, i64 0, i64 4), align 16, !tbaa !5
  %123 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 4), align 16, !tbaa !5
  %124 = sub nsw i32 %122, %123
  store i32 %124, ptr %14, align 4, !tbaa !5
  %125 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %126 = load i32, ptr %125, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  store i32 %126, ptr %12, align 4, !tbaa !5
  %127 = load i32, ptr %12, align 4, !tbaa !5
  %128 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 4), align 16, !tbaa !5
  %129 = add nsw i32 %128, %127
  store i32 %129, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 4), align 16, !tbaa !5
  %130 = load i32, ptr %12, align 4, !tbaa !5
  %131 = load i32, ptr %1, align 4, !tbaa !5
  %132 = add nsw i32 %131, %130
  store i32 %132, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %133

133:                                              ; preds = %118, %114
  %134 = load i32, ptr %1, align 4, !tbaa !5
  %135 = load i32, ptr @low, align 4, !tbaa !5
  %136 = icmp slt i32 %134, %135
  br i1 %136, label %137, label %178

137:                                              ; preds = %133
  %138 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 3), align 4, !tbaa !5
  %139 = icmp sgt i32 %138, 0
  br i1 %139, label %140, label %157

140:                                              ; preds = %137
  %141 = load i32, ptr @c, align 16, !tbaa !5
  %142 = load i32, ptr @b, align 16, !tbaa !5
  %143 = icmp slt i32 %141, %142
  br i1 %143, label %144, label %157

144:                                              ; preds = %140
  %145 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %146 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %148, label %157

148:                                              ; preds = %144
  %149 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 4), align 16, !tbaa !5
  %150 = add nsw i32 %149, -1
  store i32 %150, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 4), align 16, !tbaa !5
  %151 = load i32, ptr @c, align 16, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr @c, align 16, !tbaa !5
  %153 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %155 = load i32, ptr %1, align 4, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %1, align 4, !tbaa !5
  br label %157

157:                                              ; preds = %148, %144, %140, %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %158 = load i32, ptr @low, align 4, !tbaa !5
  %159 = load i32, ptr %1, align 4, !tbaa !5
  %160 = sub nsw i32 %158, %159
  store i32 %160, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %161 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5
  %162 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %163 = sub nsw i32 %161, %162
  %164 = ashr i32 %163, 1
  store i32 %164, ptr %17, align 4, !tbaa !5
  %165 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 3), ptr noundef nonnull align 4 dereferenceable(4) %17)
  %166 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(4) %165)
  %167 = load i32, ptr %166, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  store i32 %167, ptr %15, align 4, !tbaa !5
  %168 = load i32, ptr %15, align 4, !tbaa !5
  %169 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 3), align 4, !tbaa !5
  %170 = sub nsw i32 %169, %168
  store i32 %170, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 3), align 4, !tbaa !5
  %171 = load i32, ptr %15, align 4, !tbaa !5
  %172 = shl i32 %171, 1
  %173 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %174 = add nsw i32 %173, %172
  store i32 %174, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %175 = load i32, ptr %15, align 4, !tbaa !5
  %176 = load i32, ptr %1, align 4, !tbaa !5
  %177 = add nsw i32 %176, %175
  store i32 %177, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %178

178:                                              ; preds = %157, %133
  %179 = load i32, ptr %1, align 4, !tbaa !5
  %180 = load i32, ptr @low, align 4, !tbaa !5
  %181 = icmp slt i32 %179, %180
  br i1 %181, label %182, label %223

182:                                              ; preds = %178
  %183 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 4), align 16, !tbaa !5
  %184 = icmp sgt i32 %183, 0
  br i1 %184, label %185, label %202

185:                                              ; preds = %182
  %186 = load i32, ptr @c, align 16, !tbaa !5
  %187 = load i32, ptr @b, align 16, !tbaa !5
  %188 = icmp slt i32 %186, %187
  br i1 %188, label %189, label %202

189:                                              ; preds = %185
  %190 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %191 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5
  %192 = icmp slt i32 %190, %191
  br i1 %192, label %193, label %202

193:                                              ; preds = %189
  %194 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 4), align 16, !tbaa !5
  %195 = add nsw i32 %194, -1
  store i32 %195, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 4), align 16, !tbaa !5
  %196 = load i32, ptr @c, align 16, !tbaa !5
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr @c, align 16, !tbaa !5
  %198 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %200 = load i32, ptr %1, align 4, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %1, align 4, !tbaa !5
  br label %202

202:                                              ; preds = %193, %189, %185, %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %203 = load i32, ptr @low, align 4, !tbaa !5
  %204 = load i32, ptr %1, align 4, !tbaa !5
  %205 = sub nsw i32 %203, %204
  store i32 %205, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %206 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @b, i64 0, i64 1), align 4, !tbaa !5
  %207 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %208 = sub nsw i32 %206, %207
  %209 = ashr i32 %208, 1
  store i32 %209, ptr %20, align 4, !tbaa !5
  %210 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 4), ptr noundef nonnull align 4 dereferenceable(4) %20)
  %211 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %19, ptr noundef nonnull align 4 dereferenceable(4) %210)
  %212 = load i32, ptr %211, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  store i32 %212, ptr %18, align 4, !tbaa !5
  %213 = load i32, ptr %18, align 4, !tbaa !5
  %214 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 4), align 16, !tbaa !5
  %215 = sub nsw i32 %214, %213
  store i32 %215, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 4), align 16, !tbaa !5
  %216 = load i32, ptr %18, align 4, !tbaa !5
  %217 = shl i32 %216, 1
  %218 = load i32, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %219 = add nsw i32 %218, %217
  store i32 %219, ptr getelementptr inbounds ([5 x i32], ptr @c, i64 0, i64 1), align 4, !tbaa !5
  %220 = load i32, ptr %18, align 4, !tbaa !5
  %221 = load i32, ptr %1, align 4, !tbaa !5
  %222 = add nsw i32 %221, %220
  store i32 %222, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %223

223:                                              ; preds = %202, %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret void
}

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

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

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


; 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"

@low = external dso_local local_unnamed_addr global i32, align 4
@high = external dso_local local_unnamed_addr global i32, align 4
@b = external dso_local local_unnamed_addr global [5 x i32], align 16
@c = external dso_local global [5 x i32], align 16

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

; 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
define dso_local void @_Z6chkNegv() local_unnamed_addr #3 {
  %1 = alloca i32, align 4
  %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 i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(20) @c, i8 0, i64 20, i1 false)
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @b, i64 4), align 4, !tbaa !5
  %14 = icmp sgt i32 %13, 0
  %15 = zext i1 %14 to i64
  %16 = getelementptr inbounds [5 x i32], ptr @c, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  %19 = load i32, ptr @high, align 4, !tbaa !5
  %20 = add nsw i32 %19, -1
  store i32 %20, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 4), align 4, !tbaa !5
  %22 = sub nsw i32 %13, %21
  store i32 %22, ptr %2, align 4, !tbaa !5
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %24 = load i32, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  %25 = and i32 %24, -2
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 4), align 4, !tbaa !5
  %27 = add nsw i32 %26, %25
  store i32 %27, ptr getelementptr inbounds (i8, ptr @c, i64 4), align 4, !tbaa !5
  %28 = or i32 %24, 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  %29 = load i32, ptr @high, align 4, !tbaa !5
  %30 = sub nsw i32 %29, %28
  store i32 %30, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @b, i64 12), align 4, !tbaa !5
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 12), align 4, !tbaa !5
  %33 = sub nsw i32 %31, %32
  store i32 %33, ptr %4, align 4, !tbaa !5
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %35 = load i32, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  %36 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 12), align 4, !tbaa !5
  %37 = add nsw i32 %36, %35
  store i32 %37, ptr getelementptr inbounds (i8, ptr @c, i64 12), align 4, !tbaa !5
  %38 = add nsw i32 %35, %28
  %39 = load i32, ptr @low, align 4, !tbaa !5
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %41, label %55

41:                                               ; preds = %0
  %42 = load i32, ptr @c, align 16, !tbaa !5
  %43 = load i32, ptr @b, align 16, !tbaa !5
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %45, label %55

45:                                               ; preds = %41
  %46 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 4), align 4, !tbaa !5
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @b, i64 4), align 4, !tbaa !5
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %49, label %55

49:                                               ; preds = %45
  %50 = add nsw i32 %38, 2
  %51 = load i32, ptr @high, align 4, !tbaa !5
  %.not = icmp sgt i32 %50, %51
  br i1 %.not, label %55, label %52

52:                                               ; preds = %49
  %53 = add nsw i32 %42, 1
  store i32 %53, ptr @c, align 16, !tbaa !5
  %54 = add nsw i32 %46, 1
  store i32 %54, ptr getelementptr inbounds (i8, ptr @c, i64 4), align 4, !tbaa !5
  br label %55

55:                                               ; preds = %52, %49, %45, %41, %0
  %.0 = phi i32 [ %50, %52 ], [ %38, %49 ], [ %38, %45 ], [ %38, %41 ], [ %38, %0 ]
  %56 = icmp slt i32 %.0, %39
  br i1 %56, label %57, label %72

57:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #4
  %58 = sub i32 %39, %.0
  %59 = load i32, ptr @high, align 4, !tbaa !5
  %60 = icmp slt i32 %39, %59
  %61 = zext i1 %60 to i32
  %62 = add nsw i32 %58, %61
  store i32 %62, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %63 = load i32, ptr @b, align 16, !tbaa !5
  %64 = load i32, ptr @c, align 16, !tbaa !5
  %65 = sub nsw i32 %63, %64
  store i32 %65, ptr %6, align 4, !tbaa !5
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %67 = load i32, ptr %66, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #4
  %68 = and i32 %67, -2
  %69 = load i32, ptr @c, align 16, !tbaa !5
  %70 = add nsw i32 %69, %68
  store i32 %70, ptr @c, align 16, !tbaa !5
  %71 = add nsw i32 %68, %.0
  %.pre = load i32, ptr @low, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %57, %55
  %73 = phi i32 [ %.pre, %57 ], [ %39, %55 ]
  %.1 = phi i32 [ %71, %57 ], [ %.0, %55 ]
  %74 = icmp slt i32 %.1, %73
  br i1 %74, label %75, label %85

75:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %76 = sub nsw i32 %73, %.1
  store i32 %76, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  %77 = load i32, ptr getelementptr inbounds (i8, ptr @b, i64 16), align 16, !tbaa !5
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 16), align 16, !tbaa !5
  %79 = sub nsw i32 %77, %78
  store i32 %79, ptr %8, align 4, !tbaa !5
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %81 = load i32, ptr %80, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 16), align 16, !tbaa !5
  %83 = add nsw i32 %82, %81
  store i32 %83, ptr getelementptr inbounds (i8, ptr @c, i64 16), align 16, !tbaa !5
  %84 = add nsw i32 %81, %.1
  %.pre42 = load i32, ptr @low, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %75, %72
  %86 = phi i32 [ %.pre42, %75 ], [ %73, %72 ]
  %.2 = phi i32 [ %84, %75 ], [ %.1, %72 ]
  %87 = icmp slt i32 %.2, %86
  br i1 %87, label %88, label %117

88:                                               ; preds = %85
  %89 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 12), align 4, !tbaa !5
  %90 = icmp sgt i32 %89, 0
  br i1 %90, label %91, label %._crit_edge

._crit_edge:                                      ; preds = %88
  %.pre43 = load i32, ptr getelementptr inbounds (i8, ptr @b, i64 4), align 4, !tbaa !5
  %.pre45 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 4), align 4, !tbaa !5
  br label %102

91:                                               ; preds = %88
  %92 = load i32, ptr @c, align 16, !tbaa !5
  %93 = load i32, ptr @b, align 16, !tbaa !5
  %94 = icmp slt i32 %92, %93
  %.pre44 = load i32, ptr getelementptr inbounds (i8, ptr @b, i64 4), align 4, !tbaa !5
  %.pre46 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 4), align 4, !tbaa !5
  %95 = icmp slt i32 %.pre46, %.pre44
  %or.cond = select i1 %94, i1 %95, i1 false
  br i1 %or.cond, label %96, label %102

96:                                               ; preds = %91
  %97 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 16), align 16, !tbaa !5
  %98 = add nsw i32 %97, -1
  store i32 %98, ptr getelementptr inbounds (i8, ptr @c, i64 16), align 16, !tbaa !5
  %99 = add nsw i32 %92, 1
  store i32 %99, ptr @c, align 16, !tbaa !5
  %100 = add nsw i32 %.pre46, 1
  store i32 %100, ptr getelementptr inbounds (i8, ptr @c, i64 4), align 4, !tbaa !5
  %101 = add nsw i32 %.2, 1
  br label %102

102:                                              ; preds = %._crit_edge, %96, %91
  %103 = phi i32 [ %100, %96 ], [ %.pre46, %91 ], [ %.pre45, %._crit_edge ]
  %104 = phi i32 [ %.pre44, %96 ], [ %.pre44, %91 ], [ %.pre43, %._crit_edge ]
  %.3 = phi i32 [ %101, %96 ], [ %.2, %91 ], [ %.2, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  %105 = sub nsw i32 %86, %.3
  store i32 %105, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  %106 = sub nsw i32 %104, %103
  %107 = ashr i32 %106, 1
  store i32 %107, ptr %10, align 4, !tbaa !5
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @c, i64 12), ptr noundef nonnull align 4 dereferenceable(4) %10)
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %108)
  %110 = load i32, ptr %109, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  %111 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 12), align 4, !tbaa !5
  %112 = sub nsw i32 %111, %110
  store i32 %112, ptr getelementptr inbounds (i8, ptr @c, i64 12), align 4, !tbaa !5
  %113 = shl i32 %110, 1
  %114 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 4), align 4, !tbaa !5
  %115 = add nsw i32 %114, %113
  store i32 %115, ptr getelementptr inbounds (i8, ptr @c, i64 4), align 4, !tbaa !5
  %116 = add nsw i32 %110, %.3
  %.pre47 = load i32, ptr @low, align 4, !tbaa !5
  br label %117

117:                                              ; preds = %102, %85
  %118 = phi i32 [ %.pre47, %102 ], [ %86, %85 ]
  %.4 = phi i32 [ %116, %102 ], [ %.2, %85 ]
  %119 = icmp slt i32 %.4, %118
  br i1 %119, label %120, label %147

120:                                              ; preds = %117
  %121 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 16), align 16, !tbaa !5
  %122 = icmp sgt i32 %121, 0
  br i1 %122, label %123, label %._crit_edge48

._crit_edge48:                                    ; preds = %120
  %.pre49 = load i32, ptr getelementptr inbounds (i8, ptr @b, i64 4), align 4, !tbaa !5
  %.pre51 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 4), align 4, !tbaa !5
  br label %133

123:                                              ; preds = %120
  %124 = load i32, ptr @c, align 16, !tbaa !5
  %125 = load i32, ptr @b, align 16, !tbaa !5
  %126 = icmp slt i32 %124, %125
  %.pre50 = load i32, ptr getelementptr inbounds (i8, ptr @b, i64 4), align 4, !tbaa !5
  %.pre52 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 4), align 4, !tbaa !5
  %127 = icmp slt i32 %.pre52, %.pre50
  %or.cond53 = select i1 %126, i1 %127, i1 false
  br i1 %or.cond53, label %128, label %133

128:                                              ; preds = %123
  %129 = add nsw i32 %121, -1
  store i32 %129, ptr getelementptr inbounds (i8, ptr @c, i64 16), align 16, !tbaa !5
  %130 = add nsw i32 %124, 1
  store i32 %130, ptr @c, align 16, !tbaa !5
  %131 = add nsw i32 %.pre52, 1
  store i32 %131, ptr getelementptr inbounds (i8, ptr @c, i64 4), align 4, !tbaa !5
  %132 = add nsw i32 %.4, 1
  br label %133

133:                                              ; preds = %._crit_edge48, %128, %123
  %134 = phi i32 [ %131, %128 ], [ %.pre52, %123 ], [ %.pre51, %._crit_edge48 ]
  %135 = phi i32 [ %.pre50, %128 ], [ %.pre50, %123 ], [ %.pre49, %._crit_edge48 ]
  %.5 = phi i32 [ %132, %128 ], [ %.4, %123 ], [ %.4, %._crit_edge48 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  %136 = sub nsw i32 %118, %.5
  store i32 %136, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  %137 = sub nsw i32 %135, %134
  %138 = ashr i32 %137, 1
  store i32 %138, ptr %12, align 4, !tbaa !5
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) getelementptr inbounds (i8, ptr @c, i64 16), ptr noundef nonnull align 4 dereferenceable(4) %12)
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %139)
  %141 = load i32, ptr %140, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  %142 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 16), align 16, !tbaa !5
  %143 = sub nsw i32 %142, %141
  store i32 %143, ptr getelementptr inbounds (i8, ptr @c, i64 16), align 16, !tbaa !5
  %144 = shl i32 %141, 1
  %145 = load i32, ptr getelementptr inbounds (i8, ptr @c, i64 4), align 4, !tbaa !5
  %146 = add nsw i32 %145, %144
  store i32 %146, ptr getelementptr inbounds (i8, ptr @c, i64 4), align 4, !tbaa !5
  br label %147

147:                                              ; preds = %133, %117
  ret void
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #3 = { 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"}


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