; LLVM IR from lzyrapx/Competitive-Programming :: FZU (2252（贪心）)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@a = external dso_local global [10 x i64], align 16
@b = external dso_local global [10 x i64], align 16
@c = external dso_local global [10 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  br label %29

29:                                               ; preds = %384, %0
  %30 = load i32, ptr %5, align 4, !tbaa !5
  %31 = add nsw i32 %30, -1
  store i32 %31, ptr %5, align 4, !tbaa !5
  %32 = icmp ne i32 %30, 0
  br i1 %32, label %33, label %388

33:                                               ; preds = %29
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @a)
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(8) @b)
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(8) @c)
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %57, %33
  %41 = load i32, ptr %6, align 4, !tbaa !5
  %42 = icmp sle i32 %41, 10
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %60

44:                                               ; preds = %40
  %45 = load i64, ptr @a, align 16, !tbaa !9
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [10 x i64], ptr @a, i64 0, i64 %47
  store i64 %45, ptr %48, align 8, !tbaa !9
  %49 = load i64, ptr @b, align 16, !tbaa !9
  %50 = load i32, ptr %6, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [10 x i64], ptr @b, i64 0, i64 %51
  store i64 %49, ptr %52, align 8, !tbaa !9
  %53 = load i64, ptr @c, align 16, !tbaa !9
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [10 x i64], ptr @c, i64 0, i64 %55
  store i64 %53, ptr %56, align 8, !tbaa !9
  br label %57

57:                                               ; preds = %44
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %6, align 4, !tbaa !5
  br label %40, !llvm.loop !11

60:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 0, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @a, ptr noundef nonnull align 8 dereferenceable(8) @b)
  %62 = load i64, ptr %61, align 8, !tbaa !9
  store i64 %62, ptr %10, align 8, !tbaa !9
  %63 = load i64, ptr %10, align 8, !tbaa !9
  %64 = load i64, ptr %2, align 8, !tbaa !9
  %65 = mul nsw i64 %63, %64
  store i64 %65, ptr %11, align 8, !tbaa !9
  %66 = load i64, ptr @a, align 16, !tbaa !9
  %67 = load i64, ptr %10, align 8, !tbaa !9
  %68 = sub nsw i64 %66, %67
  store i64 %68, ptr @a, align 16, !tbaa !9
  %69 = load i64, ptr @b, align 16, !tbaa !9
  %70 = load i64, ptr %10, align 8, !tbaa !9
  %71 = sub nsw i64 %69, %70
  store i64 %71, ptr @b, align 16, !tbaa !9
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @b, ptr noundef nonnull align 8 dereferenceable(8) @c)
  %73 = load i64, ptr %72, align 8, !tbaa !9
  store i64 %73, ptr %10, align 8, !tbaa !9
  %74 = load i64, ptr %10, align 8, !tbaa !9
  %75 = load i64, ptr %4, align 8, !tbaa !9
  %76 = mul nsw i64 %74, %75
  %77 = load i64, ptr %11, align 8, !tbaa !9
  %78 = add nsw i64 %77, %76
  store i64 %78, ptr %11, align 8, !tbaa !9
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %80 = load i64, ptr %79, align 8, !tbaa !9
  store i64 %80, ptr %7, align 8, !tbaa !9
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 1), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 1))
  %82 = load i64, ptr %81, align 8, !tbaa !9
  store i64 %82, ptr %10, align 8, !tbaa !9
  %83 = load i64, ptr %10, align 8, !tbaa !9
  %84 = load i64, ptr %2, align 8, !tbaa !9
  %85 = mul nsw i64 %83, %84
  store i64 %85, ptr %11, align 8, !tbaa !9
  %86 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 1), align 8, !tbaa !9
  %87 = load i64, ptr %10, align 8, !tbaa !9
  %88 = sub nsw i64 %86, %87
  store i64 %88, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 1), align 8, !tbaa !9
  %89 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 1), align 8, !tbaa !9
  %90 = load i64, ptr %10, align 8, !tbaa !9
  %91 = sub nsw i64 %89, %90
  store i64 %91, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 1), align 8, !tbaa !9
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 1), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 1))
  %93 = load i64, ptr %92, align 8, !tbaa !9
  store i64 %93, ptr %10, align 8, !tbaa !9
  %94 = load i64, ptr %10, align 8, !tbaa !9
  %95 = load i64, ptr %3, align 8, !tbaa !9
  %96 = mul nsw i64 %94, %95
  %97 = load i64, ptr %11, align 8, !tbaa !9
  %98 = add nsw i64 %97, %96
  store i64 %98, ptr %11, align 8, !tbaa !9
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %100 = load i64, ptr %99, align 8, !tbaa !9
  store i64 %100, ptr %7, align 8, !tbaa !9
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 2), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 2))
  %102 = load i64, ptr %101, align 8, !tbaa !9
  store i64 %102, ptr %10, align 8, !tbaa !9
  %103 = load i64, ptr %10, align 8, !tbaa !9
  %104 = load i64, ptr %3, align 8, !tbaa !9
  %105 = mul nsw i64 %103, %104
  store i64 %105, ptr %11, align 8, !tbaa !9
  %106 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 2), align 16, !tbaa !9
  %107 = load i64, ptr %10, align 8, !tbaa !9
  %108 = sub nsw i64 %106, %107
  store i64 %108, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 2), align 16, !tbaa !9
  %109 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 2), align 16, !tbaa !9
  %110 = load i64, ptr %10, align 8, !tbaa !9
  %111 = sub nsw i64 %109, %110
  store i64 %111, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 2), align 16, !tbaa !9
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 2), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 2))
  %113 = load i64, ptr %112, align 8, !tbaa !9
  store i64 %113, ptr %10, align 8, !tbaa !9
  %114 = load i64, ptr %10, align 8, !tbaa !9
  %115 = load i64, ptr %4, align 8, !tbaa !9
  %116 = mul nsw i64 %114, %115
  %117 = load i64, ptr %11, align 8, !tbaa !9
  %118 = add nsw i64 %117, %116
  store i64 %118, ptr %11, align 8, !tbaa !9
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %120 = load i64, ptr %119, align 8, !tbaa !9
  store i64 %120, ptr %7, align 8, !tbaa !9
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 3), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 3))
  %122 = load i64, ptr %121, align 8, !tbaa !9
  store i64 %122, ptr %10, align 8, !tbaa !9
  %123 = load i64, ptr %10, align 8, !tbaa !9
  %124 = load i64, ptr %3, align 8, !tbaa !9
  %125 = mul nsw i64 %123, %124
  store i64 %125, ptr %11, align 8, !tbaa !9
  %126 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 3), align 8, !tbaa !9
  %127 = load i64, ptr %10, align 8, !tbaa !9
  %128 = sub nsw i64 %126, %127
  store i64 %128, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 3), align 8, !tbaa !9
  %129 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 3), align 8, !tbaa !9
  %130 = load i64, ptr %10, align 8, !tbaa !9
  %131 = sub nsw i64 %129, %130
  store i64 %131, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 3), align 8, !tbaa !9
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 3), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 3))
  %133 = load i64, ptr %132, align 8, !tbaa !9
  store i64 %133, ptr %10, align 8, !tbaa !9
  %134 = load i64, ptr %10, align 8, !tbaa !9
  %135 = load i64, ptr %2, align 8, !tbaa !9
  %136 = mul nsw i64 %134, %135
  %137 = load i64, ptr %11, align 8, !tbaa !9
  %138 = add nsw i64 %137, %136
  store i64 %138, ptr %11, align 8, !tbaa !9
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %140 = load i64, ptr %139, align 8, !tbaa !9
  store i64 %140, ptr %7, align 8, !tbaa !9
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 4), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 4))
  %142 = load i64, ptr %141, align 8, !tbaa !9
  store i64 %142, ptr %10, align 8, !tbaa !9
  %143 = load i64, ptr %10, align 8, !tbaa !9
  %144 = load i64, ptr %4, align 8, !tbaa !9
  %145 = mul nsw i64 %143, %144
  store i64 %145, ptr %11, align 8, !tbaa !9
  %146 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 4), align 16, !tbaa !9
  %147 = load i64, ptr %10, align 8, !tbaa !9
  %148 = sub nsw i64 %146, %147
  store i64 %148, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 4), align 16, !tbaa !9
  %149 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 4), align 16, !tbaa !9
  %150 = load i64, ptr %10, align 8, !tbaa !9
  %151 = sub nsw i64 %149, %150
  store i64 %151, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 4), align 16, !tbaa !9
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 4), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 4))
  %153 = load i64, ptr %152, align 8, !tbaa !9
  store i64 %153, ptr %10, align 8, !tbaa !9
  %154 = load i64, ptr %10, align 8, !tbaa !9
  %155 = load i64, ptr %2, align 8, !tbaa !9
  %156 = mul nsw i64 %154, %155
  %157 = load i64, ptr %11, align 8, !tbaa !9
  %158 = add nsw i64 %157, %156
  store i64 %158, ptr %11, align 8, !tbaa !9
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %160 = load i64, ptr %159, align 8, !tbaa !9
  store i64 %160, ptr %7, align 8, !tbaa !9
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 5), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 5))
  %162 = load i64, ptr %161, align 8, !tbaa !9
  store i64 %162, ptr %10, align 8, !tbaa !9
  %163 = load i64, ptr %10, align 8, !tbaa !9
  %164 = load i64, ptr %4, align 8, !tbaa !9
  %165 = mul nsw i64 %163, %164
  store i64 %165, ptr %11, align 8, !tbaa !9
  %166 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 5), align 8, !tbaa !9
  %167 = load i64, ptr %10, align 8, !tbaa !9
  %168 = sub nsw i64 %166, %167
  store i64 %168, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 5), align 8, !tbaa !9
  %169 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 5), align 8, !tbaa !9
  %170 = load i64, ptr %10, align 8, !tbaa !9
  %171 = sub nsw i64 %169, %170
  store i64 %171, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 5), align 8, !tbaa !9
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 5), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 5))
  %173 = load i64, ptr %172, align 8, !tbaa !9
  store i64 %173, ptr %10, align 8, !tbaa !9
  %174 = load i64, ptr %10, align 8, !tbaa !9
  %175 = load i64, ptr %3, align 8, !tbaa !9
  %176 = mul nsw i64 %174, %175
  %177 = load i64, ptr %11, align 8, !tbaa !9
  %178 = add nsw i64 %177, %176
  store i64 %178, ptr %11, align 8, !tbaa !9
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %180 = load i64, ptr %179, align 8, !tbaa !9
  store i64 %180, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %181 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 6), align 16, !tbaa !9
  %182 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 6), align 16, !tbaa !9
  %183 = add nsw i64 %181, %182
  %184 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 6), align 16, !tbaa !9
  %185 = sub nsw i64 %183, %184
  %186 = sdiv i64 %185, 2
  store i64 %186, ptr %13, align 8, !tbaa !9
  %187 = load i64, ptr %13, align 8, !tbaa !9
  %188 = icmp sge i64 %187, 0
  br i1 %188, label %189, label %248

189:                                              ; preds = %60
  %190 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 6), align 16, !tbaa !9
  %191 = load i64, ptr %13, align 8, !tbaa !9
  %192 = icmp sge i64 %190, %191
  br i1 %192, label %193, label %248

193:                                              ; preds = %189
  %194 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 6), align 16, !tbaa !9
  %195 = load i64, ptr %13, align 8, !tbaa !9
  %196 = icmp sge i64 %194, %195
  br i1 %196, label %197, label %248

197:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %198 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 6), align 16, !tbaa !9
  %199 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 6), align 16, !tbaa !9
  %200 = load i64, ptr %13, align 8, !tbaa !9
  %201 = sub nsw i64 %199, %200
  %202 = sub nsw i64 %198, %201
  store i64 %202, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %203 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 6), align 16, !tbaa !9
  %204 = load i64, ptr %13, align 8, !tbaa !9
  %205 = sub nsw i64 %203, %204
  store i64 %205, ptr %15, align 8, !tbaa !9
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %207 = load i64, ptr %206, align 8, !tbaa !9
  store i64 %207, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  %208 = load i64, ptr %13, align 8, !tbaa !9
  %209 = load i64, ptr %2, align 8, !tbaa !9
  %210 = mul nsw i64 %208, %209
  %211 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 6), align 16, !tbaa !9
  %212 = load i64, ptr %13, align 8, !tbaa !9
  %213 = sub nsw i64 %211, %212
  %214 = load i64, ptr %3, align 8, !tbaa !9
  %215 = mul nsw i64 %213, %214
  %216 = add nsw i64 %210, %215
  %217 = load i64, ptr %8, align 8, !tbaa !9
  %218 = load i64, ptr %4, align 8, !tbaa !9
  %219 = mul nsw i64 %217, %218
  %220 = add nsw i64 %216, %219
  store i64 %220, ptr %11, align 8, !tbaa !9
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %222 = load i64, ptr %221, align 8, !tbaa !9
  store i64 %222, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %223 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 6), align 16, !tbaa !9
  %224 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 6), align 16, !tbaa !9
  %225 = load i64, ptr %13, align 8, !tbaa !9
  %226 = sub nsw i64 %224, %225
  %227 = sub nsw i64 %223, %226
  store i64 %227, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %228 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 6), align 16, !tbaa !9
  %229 = load i64, ptr %13, align 8, !tbaa !9
  %230 = sub nsw i64 %228, %229
  store i64 %230, ptr %17, align 8, !tbaa !9
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %232 = load i64, ptr %231, align 8, !tbaa !9
  store i64 %232, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  %233 = load i64, ptr %13, align 8, !tbaa !9
  %234 = load i64, ptr %2, align 8, !tbaa !9
  %235 = mul nsw i64 %233, %234
  %236 = load i64, ptr %9, align 8, !tbaa !9
  %237 = load i64, ptr %3, align 8, !tbaa !9
  %238 = mul nsw i64 %236, %237
  %239 = add nsw i64 %235, %238
  %240 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 6), align 16, !tbaa !9
  %241 = load i64, ptr %13, align 8, !tbaa !9
  %242 = sub nsw i64 %240, %241
  %243 = load i64, ptr %4, align 8, !tbaa !9
  %244 = mul nsw i64 %242, %243
  %245 = add nsw i64 %239, %244
  store i64 %245, ptr %11, align 8, !tbaa !9
  %246 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %247 = load i64, ptr %246, align 8, !tbaa !9
  store i64 %247, ptr %7, align 8, !tbaa !9
  br label %248

248:                                              ; preds = %197, %193, %189, %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %249 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 7), align 8, !tbaa !9
  %250 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 7), align 8, !tbaa !9
  %251 = add nsw i64 %249, %250
  %252 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 7), align 8, !tbaa !9
  %253 = sub nsw i64 %251, %252
  %254 = sdiv i64 %253, 2
  store i64 %254, ptr %18, align 8, !tbaa !9
  %255 = load i64, ptr %18, align 8, !tbaa !9
  %256 = icmp sge i64 %255, 0
  br i1 %256, label %257, label %316

257:                                              ; preds = %248
  %258 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 7), align 8, !tbaa !9
  %259 = load i64, ptr %18, align 8, !tbaa !9
  %260 = icmp sge i64 %258, %259
  br i1 %260, label %261, label %316

261:                                              ; preds = %257
  %262 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 7), align 8, !tbaa !9
  %263 = load i64, ptr %18, align 8, !tbaa !9
  %264 = icmp sge i64 %262, %263
  br i1 %264, label %265, label %316

265:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %266 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 7), align 8, !tbaa !9
  %267 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 7), align 8, !tbaa !9
  %268 = load i64, ptr %18, align 8, !tbaa !9
  %269 = sub nsw i64 %267, %268
  %270 = sub nsw i64 %266, %269
  store i64 %270, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %271 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 7), align 8, !tbaa !9
  %272 = load i64, ptr %18, align 8, !tbaa !9
  %273 = sub nsw i64 %271, %272
  store i64 %273, ptr %20, align 8, !tbaa !9
  %274 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %275 = load i64, ptr %274, align 8, !tbaa !9
  store i64 %275, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  %276 = load i64, ptr %18, align 8, !tbaa !9
  %277 = load i64, ptr %3, align 8, !tbaa !9
  %278 = mul nsw i64 %276, %277
  %279 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 7), align 8, !tbaa !9
  %280 = load i64, ptr %18, align 8, !tbaa !9
  %281 = sub nsw i64 %279, %280
  %282 = load i64, ptr %2, align 8, !tbaa !9
  %283 = mul nsw i64 %281, %282
  %284 = add nsw i64 %278, %283
  %285 = load i64, ptr %8, align 8, !tbaa !9
  %286 = load i64, ptr %4, align 8, !tbaa !9
  %287 = mul nsw i64 %285, %286
  %288 = add nsw i64 %284, %287
  store i64 %288, ptr %11, align 8, !tbaa !9
  %289 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %290 = load i64, ptr %289, align 8, !tbaa !9
  store i64 %290, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %291 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 7), align 8, !tbaa !9
  %292 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 7), align 8, !tbaa !9
  %293 = load i64, ptr %18, align 8, !tbaa !9
  %294 = sub nsw i64 %292, %293
  %295 = sub nsw i64 %291, %294
  store i64 %295, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %296 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 7), align 8, !tbaa !9
  %297 = load i64, ptr %18, align 8, !tbaa !9
  %298 = sub nsw i64 %296, %297
  store i64 %298, ptr %22, align 8, !tbaa !9
  %299 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %300 = load i64, ptr %299, align 8, !tbaa !9
  store i64 %300, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  %301 = load i64, ptr %18, align 8, !tbaa !9
  %302 = load i64, ptr %3, align 8, !tbaa !9
  %303 = mul nsw i64 %301, %302
  %304 = load i64, ptr %9, align 8, !tbaa !9
  %305 = load i64, ptr %2, align 8, !tbaa !9
  %306 = mul nsw i64 %304, %305
  %307 = add nsw i64 %303, %306
  %308 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 7), align 8, !tbaa !9
  %309 = load i64, ptr %18, align 8, !tbaa !9
  %310 = sub nsw i64 %308, %309
  %311 = load i64, ptr %4, align 8, !tbaa !9
  %312 = mul nsw i64 %310, %311
  %313 = add nsw i64 %307, %312
  store i64 %313, ptr %11, align 8, !tbaa !9
  %314 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %315 = load i64, ptr %314, align 8, !tbaa !9
  store i64 %315, ptr %7, align 8, !tbaa !9
  br label %316

316:                                              ; preds = %265, %261, %257, %248
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %317 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 8), align 16, !tbaa !9
  %318 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 8), align 16, !tbaa !9
  %319 = add nsw i64 %317, %318
  %320 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 8), align 16, !tbaa !9
  %321 = sub nsw i64 %319, %320
  %322 = sdiv i64 %321, 2
  store i64 %322, ptr %23, align 8, !tbaa !9
  %323 = load i64, ptr %23, align 8, !tbaa !9
  %324 = icmp sge i64 %323, 0
  br i1 %324, label %325, label %384

325:                                              ; preds = %316
  %326 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 8), align 16, !tbaa !9
  %327 = load i64, ptr %23, align 8, !tbaa !9
  %328 = icmp sge i64 %326, %327
  br i1 %328, label %329, label %384

329:                                              ; preds = %325
  %330 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 8), align 16, !tbaa !9
  %331 = load i64, ptr %23, align 8, !tbaa !9
  %332 = icmp sge i64 %330, %331
  br i1 %332, label %333, label %384

333:                                              ; preds = %329
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %334 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 8), align 16, !tbaa !9
  %335 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 8), align 16, !tbaa !9
  %336 = load i64, ptr %23, align 8, !tbaa !9
  %337 = sub nsw i64 %335, %336
  %338 = sub nsw i64 %334, %337
  store i64 %338, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %339 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 8), align 16, !tbaa !9
  %340 = load i64, ptr %23, align 8, !tbaa !9
  %341 = sub nsw i64 %339, %340
  store i64 %341, ptr %25, align 8, !tbaa !9
  %342 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %343 = load i64, ptr %342, align 8, !tbaa !9
  store i64 %343, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  %344 = load i64, ptr %23, align 8, !tbaa !9
  %345 = load i64, ptr %4, align 8, !tbaa !9
  %346 = mul nsw i64 %344, %345
  %347 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 8), align 16, !tbaa !9
  %348 = load i64, ptr %23, align 8, !tbaa !9
  %349 = sub nsw i64 %347, %348
  %350 = load i64, ptr %2, align 8, !tbaa !9
  %351 = mul nsw i64 %349, %350
  %352 = add nsw i64 %346, %351
  %353 = load i64, ptr %8, align 8, !tbaa !9
  %354 = load i64, ptr %3, align 8, !tbaa !9
  %355 = mul nsw i64 %353, %354
  %356 = add nsw i64 %352, %355
  store i64 %356, ptr %11, align 8, !tbaa !9
  %357 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %358 = load i64, ptr %357, align 8, !tbaa !9
  store i64 %358, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %359 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @a, i64 0, i64 8), align 16, !tbaa !9
  %360 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 8), align 16, !tbaa !9
  %361 = load i64, ptr %23, align 8, !tbaa !9
  %362 = sub nsw i64 %360, %361
  %363 = sub nsw i64 %359, %362
  store i64 %363, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %364 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @b, i64 0, i64 8), align 16, !tbaa !9
  %365 = load i64, ptr %23, align 8, !tbaa !9
  %366 = sub nsw i64 %364, %365
  store i64 %366, ptr %27, align 8, !tbaa !9
  %367 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %368 = load i64, ptr %367, align 8, !tbaa !9
  store i64 %368, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  %369 = load i64, ptr %23, align 8, !tbaa !9
  %370 = load i64, ptr %4, align 8, !tbaa !9
  %371 = mul nsw i64 %369, %370
  %372 = load i64, ptr %9, align 8, !tbaa !9
  %373 = load i64, ptr %2, align 8, !tbaa !9
  %374 = mul nsw i64 %372, %373
  %375 = add nsw i64 %371, %374
  %376 = load i64, ptr getelementptr inbounds ([10 x i64], ptr @c, i64 0, i64 8), align 16, !tbaa !9
  %377 = load i64, ptr %23, align 8, !tbaa !9
  %378 = sub nsw i64 %376, %377
  %379 = load i64, ptr %3, align 8, !tbaa !9
  %380 = mul nsw i64 %378, %379
  %381 = add nsw i64 %375, %380
  store i64 %381, ptr %11, align 8, !tbaa !9
  %382 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %383 = load i64, ptr %382, align 8, !tbaa !9
  store i64 %383, ptr %7, align 8, !tbaa !9
  br label %384

384:                                              ; preds = %333, %329, %325, %316
  %385 = load i64, ptr %7, align 8, !tbaa !9
  %386 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %385)
  %387 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %386, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %29, !llvm.loop !13

388:                                              ; preds = %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  ret i32 0
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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


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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@a = external dso_local global [10 x i64], align 16
@b = external dso_local global [10 x i64], align 16
@c = external dso_local global [10 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %20 = load i32, ptr %4, align 4, !tbaa !5
  %21 = add nsw i32 %20, -1
  store i32 %21, ptr %4, align 4, !tbaa !5
  %.not97 = icmp eq i32 %20, 0
  br i1 %.not97, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %266
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @a)
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) @b)
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(8) @c)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %28 = load i64, ptr @a, align 16, !tbaa !9
  %29 = load i64, ptr @b, align 16, !tbaa !9
  %30 = load i64, ptr @c, align 16, !tbaa !9
  %31 = insertelement <4 x i64> poison, i64 %28, i64 0
  %32 = shufflevector <4 x i64> %31, <4 x i64> poison, <4 x i32> zeroinitializer
  store <4 x i64> %32, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !9
  %33 = insertelement <4 x i64> poison, i64 %29, i64 0
  %34 = shufflevector <4 x i64> %33, <4 x i64> poison, <4 x i32> zeroinitializer
  store <4 x i64> %34, ptr getelementptr inbounds (i8, ptr @b, i64 8), align 8, !tbaa !9
  %35 = insertelement <4 x i64> poison, i64 %30, i64 0
  %36 = shufflevector <4 x i64> %35, <4 x i64> poison, <4 x i32> zeroinitializer
  store <4 x i64> %36, ptr getelementptr inbounds (i8, ptr @c, i64 8), align 8, !tbaa !9
  store <4 x i64> %32, ptr getelementptr inbounds (i8, ptr @a, i64 40), align 8, !tbaa !9
  store <4 x i64> %34, ptr getelementptr inbounds (i8, ptr @b, i64 40), align 8, !tbaa !9
  store <4 x i64> %36, ptr getelementptr inbounds (i8, ptr @c, i64 40), align 8, !tbaa !9
  store i64 %28, ptr getelementptr inbounds (i8, ptr @a, i64 72), align 8, !tbaa !9
  store i64 %29, ptr getelementptr inbounds (i8, ptr @b, i64 72), align 8, !tbaa !9
  store i64 %30, ptr getelementptr inbounds (i8, ptr @c, i64 72), align 8, !tbaa !9
  store i64 %28, ptr getelementptr inbounds (i8, ptr @a, i64 80), align 16, !tbaa !9
  store i64 %29, ptr getelementptr inbounds (i8, ptr @b, i64 80), align 16, !tbaa !9
  store i64 %30, ptr getelementptr inbounds (i8, ptr @c, i64 80), align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  store i64 0, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @a, ptr noundef nonnull align 8 dereferenceable(8) @b)
  %38 = load i64, ptr %37, align 8, !tbaa !9
  %39 = load i64, ptr %1, align 8, !tbaa !9
  %40 = mul nsw i64 %39, %38
  store i64 %40, ptr %6, align 8, !tbaa !9
  %41 = load i64, ptr @a, align 16, !tbaa !9
  %42 = sub nsw i64 %41, %38
  store i64 %42, ptr @a, align 16, !tbaa !9
  %43 = load i64, ptr @b, align 16, !tbaa !9
  %44 = sub nsw i64 %43, %38
  store i64 %44, ptr @b, align 16, !tbaa !9
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) @b, ptr noundef nonnull align 8 dereferenceable(8) @c)
  %46 = load i64, ptr %45, align 8, !tbaa !9
  %47 = load i64, ptr %3, align 8, !tbaa !9
  %48 = mul nsw i64 %47, %46
  %49 = load i64, ptr %6, align 8, !tbaa !9
  %50 = add nsw i64 %49, %48
  store i64 %50, ptr %6, align 8, !tbaa !9
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %52 = load i64, ptr %51, align 8, !tbaa !9
  store i64 %52, ptr %5, align 8, !tbaa !9
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @a, i64 8), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @b, i64 8))
  %54 = load i64, ptr %53, align 8, !tbaa !9
  %55 = load i64, ptr %1, align 8, !tbaa !9
  %56 = mul nsw i64 %55, %54
  store i64 %56, ptr %6, align 8, !tbaa !9
  %57 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !9
  %58 = sub nsw i64 %57, %54
  store i64 %58, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !9
  %59 = load i64, ptr getelementptr inbounds (i8, ptr @b, i64 8), align 8, !tbaa !9
  %60 = sub nsw i64 %59, %54
  store i64 %60, ptr getelementptr inbounds (i8, ptr @b, i64 8), align 8, !tbaa !9
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @a, i64 8), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @c, i64 8))
  %62 = load i64, ptr %61, align 8, !tbaa !9
  %63 = load i64, ptr %2, align 8, !tbaa !9
  %64 = mul nsw i64 %63, %62
  %65 = load i64, ptr %6, align 8, !tbaa !9
  %66 = add nsw i64 %65, %64
  store i64 %66, ptr %6, align 8, !tbaa !9
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %68 = load i64, ptr %67, align 8, !tbaa !9
  store i64 %68, ptr %5, align 8, !tbaa !9
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @a, i64 16), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @c, i64 16))
  %70 = load i64, ptr %69, align 8, !tbaa !9
  %71 = load i64, ptr %2, align 8, !tbaa !9
  %72 = mul nsw i64 %71, %70
  store i64 %72, ptr %6, align 8, !tbaa !9
  %73 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 16), align 16, !tbaa !9
  %74 = sub nsw i64 %73, %70
  store i64 %74, ptr getelementptr inbounds (i8, ptr @a, i64 16), align 16, !tbaa !9
  %75 = load i64, ptr getelementptr inbounds (i8, ptr @c, i64 16), align 16, !tbaa !9
  %76 = sub nsw i64 %75, %70
  store i64 %76, ptr getelementptr inbounds (i8, ptr @c, i64 16), align 16, !tbaa !9
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @b, i64 16), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @c, i64 16))
  %78 = load i64, ptr %77, align 8, !tbaa !9
  %79 = load i64, ptr %3, align 8, !tbaa !9
  %80 = mul nsw i64 %79, %78
  %81 = load i64, ptr %6, align 8, !tbaa !9
  %82 = add nsw i64 %81, %80
  store i64 %82, ptr %6, align 8, !tbaa !9
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %84 = load i64, ptr %83, align 8, !tbaa !9
  store i64 %84, ptr %5, align 8, !tbaa !9
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @a, i64 24), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @c, i64 24))
  %86 = load i64, ptr %85, align 8, !tbaa !9
  %87 = load i64, ptr %2, align 8, !tbaa !9
  %88 = mul nsw i64 %87, %86
  store i64 %88, ptr %6, align 8, !tbaa !9
  %89 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 24), align 8, !tbaa !9
  %90 = sub nsw i64 %89, %86
  store i64 %90, ptr getelementptr inbounds (i8, ptr @a, i64 24), align 8, !tbaa !9
  %91 = load i64, ptr getelementptr inbounds (i8, ptr @c, i64 24), align 8, !tbaa !9
  %92 = sub nsw i64 %91, %86
  store i64 %92, ptr getelementptr inbounds (i8, ptr @c, i64 24), align 8, !tbaa !9
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @b, i64 24), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @a, i64 24))
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = load i64, ptr %1, align 8, !tbaa !9
  %96 = mul nsw i64 %95, %94
  %97 = load i64, ptr %6, align 8, !tbaa !9
  %98 = add nsw i64 %97, %96
  store i64 %98, ptr %6, align 8, !tbaa !9
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %100 = load i64, ptr %99, align 8, !tbaa !9
  store i64 %100, ptr %5, align 8, !tbaa !9
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @c, i64 32), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @b, i64 32))
  %102 = load i64, ptr %101, align 8, !tbaa !9
  %103 = load i64, ptr %3, align 8, !tbaa !9
  %104 = mul nsw i64 %103, %102
  store i64 %104, ptr %6, align 8, !tbaa !9
  %105 = load i64, ptr getelementptr inbounds (i8, ptr @c, i64 32), align 16, !tbaa !9
  %106 = sub nsw i64 %105, %102
  store i64 %106, ptr getelementptr inbounds (i8, ptr @c, i64 32), align 16, !tbaa !9
  %107 = load i64, ptr getelementptr inbounds (i8, ptr @b, i64 32), align 16, !tbaa !9
  %108 = sub nsw i64 %107, %102
  store i64 %108, ptr getelementptr inbounds (i8, ptr @b, i64 32), align 16, !tbaa !9
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @b, i64 32), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @a, i64 32))
  %110 = load i64, ptr %109, align 8, !tbaa !9
  %111 = load i64, ptr %1, align 8, !tbaa !9
  %112 = mul nsw i64 %111, %110
  %113 = load i64, ptr %6, align 8, !tbaa !9
  %114 = add nsw i64 %113, %112
  store i64 %114, ptr %6, align 8, !tbaa !9
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %116 = load i64, ptr %115, align 8, !tbaa !9
  store i64 %116, ptr %5, align 8, !tbaa !9
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @c, i64 40), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @b, i64 40))
  %118 = load i64, ptr %117, align 8, !tbaa !9
  %119 = load i64, ptr %3, align 8, !tbaa !9
  %120 = mul nsw i64 %119, %118
  store i64 %120, ptr %6, align 8, !tbaa !9
  %121 = load i64, ptr getelementptr inbounds (i8, ptr @c, i64 40), align 8, !tbaa !9
  %122 = sub nsw i64 %121, %118
  store i64 %122, ptr getelementptr inbounds (i8, ptr @c, i64 40), align 8, !tbaa !9
  %123 = load i64, ptr getelementptr inbounds (i8, ptr @b, i64 40), align 8, !tbaa !9
  %124 = sub nsw i64 %123, %118
  store i64 %124, ptr getelementptr inbounds (i8, ptr @b, i64 40), align 8, !tbaa !9
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @a, i64 40), ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @c, i64 40))
  %126 = load i64, ptr %125, align 8, !tbaa !9
  %127 = load i64, ptr %2, align 8, !tbaa !9
  %128 = mul nsw i64 %127, %126
  %129 = load i64, ptr %6, align 8, !tbaa !9
  %130 = add nsw i64 %129, %128
  store i64 %130, ptr %6, align 8, !tbaa !9
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %132 = load i64, ptr %131, align 8, !tbaa !9
  store i64 %132, ptr %5, align 8, !tbaa !9
  %133 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 48), align 16, !tbaa !9
  %134 = load i64, ptr getelementptr inbounds (i8, ptr @b, i64 48), align 16, !tbaa !9
  %135 = add nsw i64 %134, %133
  %136 = load i64, ptr getelementptr inbounds (i8, ptr @c, i64 48), align 16, !tbaa !9
  %137 = sub i64 %135, %136
  %138 = sdiv i64 %137, 2
  %139 = icmp slt i64 %137, -1
  %.not71 = icmp slt i64 %133, %138
  %or.cond = or i1 %139, %.not71
  %.not72 = icmp slt i64 %134, %138
  %or.cond82 = or i1 %.not72, %or.cond
  br i1 %or.cond82, label %176, label %140

140:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %.neg = sub i64 %136, %133
  %141 = add i64 %.neg, %138
  store i64 %141, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %142 = sub nsw i64 %134, %138
  store i64 %142, ptr %8, align 8, !tbaa !9
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %144 = load i64, ptr %143, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %145 = load i64, ptr %1, align 8, !tbaa !9
  %146 = mul nsw i64 %145, %138
  %147 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 48), align 16, !tbaa !9
  %148 = sub nsw i64 %147, %138
  %149 = load i64, ptr %2, align 8, !tbaa !9
  %150 = mul nsw i64 %148, %149
  %151 = add nsw i64 %150, %146
  %152 = load i64, ptr %3, align 8, !tbaa !9
  %153 = mul nsw i64 %152, %144
  %154 = add nsw i64 %151, %153
  store i64 %154, ptr %6, align 8, !tbaa !9
  %155 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %156 = load i64, ptr %155, align 8, !tbaa !9
  store i64 %156, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %157 = load i64, ptr getelementptr inbounds (i8, ptr @c, i64 48), align 16, !tbaa !9
  %158 = load i64, ptr getelementptr inbounds (i8, ptr @b, i64 48), align 16, !tbaa !9
  %.neg73 = add i64 %157, %138
  %159 = sub i64 %.neg73, %158
  store i64 %159, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %160 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 48), align 16, !tbaa !9
  %161 = sub nsw i64 %160, %138
  store i64 %161, ptr %10, align 8, !tbaa !9
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %163 = load i64, ptr %162, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  %164 = load i64, ptr %1, align 8, !tbaa !9
  %165 = mul nsw i64 %164, %138
  %166 = load i64, ptr %2, align 8, !tbaa !9
  %167 = mul nsw i64 %166, %163
  %168 = add nsw i64 %167, %165
  %169 = load i64, ptr getelementptr inbounds (i8, ptr @b, i64 48), align 16, !tbaa !9
  %170 = sub nsw i64 %169, %138
  %171 = load i64, ptr %3, align 8, !tbaa !9
  %172 = mul nsw i64 %170, %171
  %173 = add nsw i64 %168, %172
  store i64 %173, ptr %6, align 8, !tbaa !9
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %175 = load i64, ptr %174, align 8, !tbaa !9
  store i64 %175, ptr %5, align 8, !tbaa !9
  br label %176

176:                                              ; preds = %140, %.lr.ph
  %177 = phi i64 [ %175, %140 ], [ %132, %.lr.ph ]
  %178 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 56), align 8, !tbaa !9
  %179 = load i64, ptr getelementptr inbounds (i8, ptr @c, i64 56), align 8, !tbaa !9
  %180 = add nsw i64 %179, %178
  %181 = load i64, ptr getelementptr inbounds (i8, ptr @b, i64 56), align 8, !tbaa !9
  %182 = sub i64 %180, %181
  %183 = sdiv i64 %182, 2
  %184 = icmp slt i64 %182, -1
  %.not74 = icmp slt i64 %178, %183
  %or.cond83 = or i1 %184, %.not74
  %.not75 = icmp slt i64 %179, %183
  %or.cond84 = or i1 %.not75, %or.cond83
  br i1 %or.cond84, label %221, label %185

185:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %.neg76 = sub i64 %181, %178
  %186 = add i64 %.neg76, %183
  store i64 %186, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  %187 = sub nsw i64 %179, %183
  store i64 %187, ptr %12, align 8, !tbaa !9
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %189 = load i64, ptr %188, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  %190 = load i64, ptr %2, align 8, !tbaa !9
  %191 = mul nsw i64 %190, %183
  %192 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 56), align 8, !tbaa !9
  %193 = sub nsw i64 %192, %183
  %194 = load i64, ptr %1, align 8, !tbaa !9
  %195 = mul nsw i64 %193, %194
  %196 = add nsw i64 %195, %191
  %197 = load i64, ptr %3, align 8, !tbaa !9
  %198 = mul nsw i64 %197, %189
  %199 = add nsw i64 %196, %198
  store i64 %199, ptr %6, align 8, !tbaa !9
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %201 = load i64, ptr %200, align 8, !tbaa !9
  store i64 %201, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %202 = load i64, ptr getelementptr inbounds (i8, ptr @b, i64 56), align 8, !tbaa !9
  %203 = load i64, ptr getelementptr inbounds (i8, ptr @c, i64 56), align 8, !tbaa !9
  %.neg77 = add i64 %202, %183
  %204 = sub i64 %.neg77, %203
  store i64 %204, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %205 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 56), align 8, !tbaa !9
  %206 = sub nsw i64 %205, %183
  store i64 %206, ptr %14, align 8, !tbaa !9
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %208 = load i64, ptr %207, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  %209 = load i64, ptr %2, align 8, !tbaa !9
  %210 = mul nsw i64 %209, %183
  %211 = load i64, ptr %1, align 8, !tbaa !9
  %212 = mul nsw i64 %211, %208
  %213 = add nsw i64 %212, %210
  %214 = load i64, ptr getelementptr inbounds (i8, ptr @c, i64 56), align 8, !tbaa !9
  %215 = sub nsw i64 %214, %183
  %216 = load i64, ptr %3, align 8, !tbaa !9
  %217 = mul nsw i64 %215, %216
  %218 = add nsw i64 %213, %217
  store i64 %218, ptr %6, align 8, !tbaa !9
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %220 = load i64, ptr %219, align 8, !tbaa !9
  store i64 %220, ptr %5, align 8, !tbaa !9
  br label %221

221:                                              ; preds = %185, %176
  %222 = phi i64 [ %220, %185 ], [ %177, %176 ]
  %223 = load i64, ptr getelementptr inbounds (i8, ptr @c, i64 64), align 16, !tbaa !9
  %224 = load i64, ptr getelementptr inbounds (i8, ptr @b, i64 64), align 16, !tbaa !9
  %225 = add nsw i64 %224, %223
  %226 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 64), align 16, !tbaa !9
  %227 = sub i64 %225, %226
  %228 = sdiv i64 %227, 2
  %229 = icmp slt i64 %227, -1
  %.not78 = icmp slt i64 %224, %228
  %or.cond85 = or i1 %229, %.not78
  %.not79 = icmp slt i64 %223, %228
  %or.cond86 = or i1 %.not79, %or.cond85
  br i1 %or.cond86, label %266, label %230

230:                                              ; preds = %221
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  %.neg80 = sub i64 %226, %224
  %231 = add i64 %.neg80, %228
  store i64 %231, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %232 = sub nsw i64 %223, %228
  store i64 %232, ptr %16, align 8, !tbaa !9
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
  %234 = load i64, ptr %233, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  %235 = load i64, ptr %3, align 8, !tbaa !9
  %236 = mul nsw i64 %235, %228
  %237 = load i64, ptr getelementptr inbounds (i8, ptr @b, i64 64), align 16, !tbaa !9
  %238 = sub nsw i64 %237, %228
  %239 = load i64, ptr %1, align 8, !tbaa !9
  %240 = mul nsw i64 %238, %239
  %241 = add nsw i64 %240, %236
  %242 = load i64, ptr %2, align 8, !tbaa !9
  %243 = mul nsw i64 %242, %234
  %244 = add nsw i64 %241, %243
  store i64 %244, ptr %6, align 8, !tbaa !9
  %245 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %246 = load i64, ptr %245, align 8, !tbaa !9
  store i64 %246, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #6
  %247 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 64), align 16, !tbaa !9
  %248 = load i64, ptr getelementptr inbounds (i8, ptr @c, i64 64), align 16, !tbaa !9
  %.neg81 = add i64 %247, %228
  %249 = sub i64 %.neg81, %248
  store i64 %249, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #6
  %250 = load i64, ptr getelementptr inbounds (i8, ptr @b, i64 64), align 16, !tbaa !9
  %251 = sub nsw i64 %250, %228
  store i64 %251, ptr %18, align 8, !tbaa !9
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %253 = load i64, ptr %252, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #6
  %254 = load i64, ptr %3, align 8, !tbaa !9
  %255 = mul nsw i64 %254, %228
  %256 = load i64, ptr %1, align 8, !tbaa !9
  %257 = mul nsw i64 %256, %253
  %258 = add nsw i64 %257, %255
  %259 = load i64, ptr getelementptr inbounds (i8, ptr @c, i64 64), align 16, !tbaa !9
  %260 = sub nsw i64 %259, %228
  %261 = load i64, ptr %2, align 8, !tbaa !9
  %262 = mul nsw i64 %260, %261
  %263 = add nsw i64 %258, %262
  store i64 %263, ptr %6, align 8, !tbaa !9
  %264 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %265 = load i64, ptr %264, align 8, !tbaa !9
  store i64 %265, ptr %5, align 8, !tbaa !9
  br label %266

266:                                              ; preds = %230, %221
  %267 = phi i64 [ %265, %230 ], [ %222, %221 ]
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %267)
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %268, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  %270 = load i32, ptr %4, align 4, !tbaa !5
  %271 = add nsw i32 %270, -1
  store i32 %271, ptr %4, align 4, !tbaa !5
  %.not = icmp eq i32 %270, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %266, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass