; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/359 Division 1/Problem C/C.ll (Z5checkx)

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

%struct.point = type { i64, i64, i64 }
%struct.inequality = type { %"struct.std::pair", %"struct.std::pair", %"struct.std::pair", %"struct.std::pair" }
%"struct.std::pair" = type { i64, i64 }

@p = external dso_local global [100100 x %struct.point], align 16
@n = external dso_local global i32, align 4
@_ZL3INF = external hidden constant i64, align 8
@__const._Z5checkx.ans = external hidden unnamed_addr constant %struct.point, align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11getSolutionR10inequality(ptr dead_on_unwind noalias writable sret(%struct.point) align 8, ptr noundef nonnull align 8 dereferenceable(64)) #0

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6updateR10inequalityS0_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3divx(i64 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5checkx(ptr dead_on_unwind noalias writable sret(%struct.point) align 8 %0, i64 noundef %1) #0 {
  %3 = alloca i64, align 8
  %4 = alloca %struct.inequality, align 8
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca i64, align 8
  %7 = alloca %struct.inequality, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca %struct.point, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %struct.point, align 8
  store i64 %1, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #5
  call void @_ZN10inequalityC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %4)
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 -3000000000000000000, ptr %6, align 8, !tbaa !5
  %25 = call { i64, i64 } @_ZSt9make_pairIxRKxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) @_ZL3INF)
  %26 = getelementptr inbounds { i64, i64 }, ptr %5, i32 0, i32 0
  %27 = extractvalue { i64, i64 } %25, 0
  store i64 %27, ptr %26, align 8
  %28 = getelementptr inbounds { i64, i64 }, ptr %5, i32 0, i32 1
  %29 = extractvalue { i64, i64 } %25, 1
  store i64 %29, ptr %28, align 8
  %30 = getelementptr inbounds %struct.inequality, ptr %4, i32 0, i32 3
  %31 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %5) #5
  %32 = getelementptr inbounds %struct.inequality, ptr %4, i32 0, i32 2
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %31)
  %34 = getelementptr inbounds %struct.inequality, ptr %4, i32 0, i32 1
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %33)
  %36 = getelementptr inbounds %struct.inequality, ptr %4, i32 0, i32 0
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(16) %35)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #5
  call void @_ZN10inequalityC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %226, %2
  %39 = load i32, ptr %8, align 4, !tbaa !9
  %40 = load i32, ptr @n, align 4, !tbaa !9
  %41 = icmp slt i32 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %229

43:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %44 = load i32, ptr %8, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %45
  %47 = getelementptr inbounds %struct.point, ptr %46, i32 0, i32 0
  %48 = load i64, ptr %47, align 8, !tbaa !11
  %49 = load i32, ptr %8, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %50
  %52 = getelementptr inbounds %struct.point, ptr %51, i32 0, i32 1
  %53 = load i64, ptr %52, align 8, !tbaa !13
  %54 = add nsw i64 %48, %53
  %55 = load i32, ptr %8, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %56
  %58 = getelementptr inbounds %struct.point, ptr %57, i32 0, i32 2
  %59 = load i64, ptr %58, align 8, !tbaa !14
  %60 = add nsw i64 %54, %59
  %61 = load i64, ptr %3, align 8, !tbaa !5
  %62 = sub nsw i64 %60, %61
  store i64 %62, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %64
  %66 = getelementptr inbounds %struct.point, ptr %65, i32 0, i32 0
  %67 = load i64, ptr %66, align 8, !tbaa !11
  %68 = load i32, ptr %8, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %69
  %71 = getelementptr inbounds %struct.point, ptr %70, i32 0, i32 1
  %72 = load i64, ptr %71, align 8, !tbaa !13
  %73 = add nsw i64 %67, %72
  %74 = load i32, ptr %8, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %75
  %77 = getelementptr inbounds %struct.point, ptr %76, i32 0, i32 2
  %78 = load i64, ptr %77, align 8, !tbaa !14
  %79 = add nsw i64 %73, %78
  %80 = load i64, ptr %3, align 8, !tbaa !5
  %81 = add nsw i64 %79, %80
  store i64 %81, ptr %11, align 8, !tbaa !5
  %82 = call { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %83 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %84 = extractvalue { i64, i64 } %82, 0
  store i64 %84, ptr %83, align 8
  %85 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %86 = extractvalue { i64, i64 } %82, 1
  store i64 %86, ptr %85, align 8
  %87 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 3
  %88 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %87, ptr noundef nonnull align 8 dereferenceable(16) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %89 = load i32, ptr %8, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %90
  %92 = getelementptr inbounds %struct.point, ptr %91, i32 0, i32 0
  %93 = load i64, ptr %92, align 8, !tbaa !11
  %94 = sub nsw i64 0, %93
  %95 = load i32, ptr %8, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %96
  %98 = getelementptr inbounds %struct.point, ptr %97, i32 0, i32 1
  %99 = load i64, ptr %98, align 8, !tbaa !13
  %100 = add nsw i64 %94, %99
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %102
  %104 = getelementptr inbounds %struct.point, ptr %103, i32 0, i32 2
  %105 = load i64, ptr %104, align 8, !tbaa !14
  %106 = add nsw i64 %100, %105
  %107 = load i64, ptr %3, align 8, !tbaa !5
  %108 = sub nsw i64 %106, %107
  store i64 %108, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %109 = load i32, ptr %8, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %110
  %112 = getelementptr inbounds %struct.point, ptr %111, i32 0, i32 0
  %113 = load i64, ptr %112, align 8, !tbaa !11
  %114 = sub nsw i64 0, %113
  %115 = load i32, ptr %8, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %116
  %118 = getelementptr inbounds %struct.point, ptr %117, i32 0, i32 1
  %119 = load i64, ptr %118, align 8, !tbaa !13
  %120 = add nsw i64 %114, %119
  %121 = load i32, ptr %8, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %122
  %124 = getelementptr inbounds %struct.point, ptr %123, i32 0, i32 2
  %125 = load i64, ptr %124, align 8, !tbaa !14
  %126 = add nsw i64 %120, %125
  %127 = load i64, ptr %3, align 8, !tbaa !5
  %128 = add nsw i64 %126, %127
  store i64 %128, ptr %14, align 8, !tbaa !5
  %129 = call { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %130 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 0
  %131 = extractvalue { i64, i64 } %129, 0
  store i64 %131, ptr %130, align 8
  %132 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 1
  %133 = extractvalue { i64, i64 } %129, 1
  store i64 %133, ptr %132, align 8
  %134 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 0
  %135 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %134, ptr noundef nonnull align 8 dereferenceable(16) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %136 = load i32, ptr %8, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %137
  %139 = getelementptr inbounds %struct.point, ptr %138, i32 0, i32 0
  %140 = load i64, ptr %139, align 8, !tbaa !11
  %141 = load i32, ptr %8, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %142
  %144 = getelementptr inbounds %struct.point, ptr %143, i32 0, i32 1
  %145 = load i64, ptr %144, align 8, !tbaa !13
  %146 = sub nsw i64 %140, %145
  %147 = load i32, ptr %8, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %148
  %150 = getelementptr inbounds %struct.point, ptr %149, i32 0, i32 2
  %151 = load i64, ptr %150, align 8, !tbaa !14
  %152 = add nsw i64 %146, %151
  %153 = load i64, ptr %3, align 8, !tbaa !5
  %154 = sub nsw i64 %152, %153
  store i64 %154, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %155 = load i32, ptr %8, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %156
  %158 = getelementptr inbounds %struct.point, ptr %157, i32 0, i32 0
  %159 = load i64, ptr %158, align 8, !tbaa !11
  %160 = load i32, ptr %8, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %161
  %163 = getelementptr inbounds %struct.point, ptr %162, i32 0, i32 1
  %164 = load i64, ptr %163, align 8, !tbaa !13
  %165 = sub nsw i64 %159, %164
  %166 = load i32, ptr %8, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %167
  %169 = getelementptr inbounds %struct.point, ptr %168, i32 0, i32 2
  %170 = load i64, ptr %169, align 8, !tbaa !14
  %171 = add nsw i64 %165, %170
  %172 = load i64, ptr %3, align 8, !tbaa !5
  %173 = add nsw i64 %171, %172
  store i64 %173, ptr %17, align 8, !tbaa !5
  %174 = call { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17)
  %175 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 0
  %176 = extractvalue { i64, i64 } %174, 0
  store i64 %176, ptr %175, align 8
  %177 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 1
  %178 = extractvalue { i64, i64 } %174, 1
  store i64 %178, ptr %177, align 8
  %179 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 1
  %180 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %179, ptr noundef nonnull align 8 dereferenceable(16) %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %181 = load i32, ptr %8, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %182
  %184 = getelementptr inbounds %struct.point, ptr %183, i32 0, i32 0
  %185 = load i64, ptr %184, align 8, !tbaa !11
  %186 = load i32, ptr %8, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %187
  %189 = getelementptr inbounds %struct.point, ptr %188, i32 0, i32 1
  %190 = load i64, ptr %189, align 8, !tbaa !13
  %191 = add nsw i64 %185, %190
  %192 = load i32, ptr %8, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %193
  %195 = getelementptr inbounds %struct.point, ptr %194, i32 0, i32 2
  %196 = load i64, ptr %195, align 8, !tbaa !14
  %197 = sub nsw i64 %191, %196
  %198 = load i64, ptr %3, align 8, !tbaa !5
  %199 = sub nsw i64 %197, %198
  store i64 %199, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %200 = load i32, ptr %8, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %201
  %203 = getelementptr inbounds %struct.point, ptr %202, i32 0, i32 0
  %204 = load i64, ptr %203, align 8, !tbaa !11
  %205 = load i32, ptr %8, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %206
  %208 = getelementptr inbounds %struct.point, ptr %207, i32 0, i32 1
  %209 = load i64, ptr %208, align 8, !tbaa !13
  %210 = add nsw i64 %204, %209
  %211 = load i32, ptr %8, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %212
  %214 = getelementptr inbounds %struct.point, ptr %213, i32 0, i32 2
  %215 = load i64, ptr %214, align 8, !tbaa !14
  %216 = sub nsw i64 %210, %215
  %217 = load i64, ptr %3, align 8, !tbaa !5
  %218 = add nsw i64 %216, %217
  store i64 %218, ptr %20, align 8, !tbaa !5
  %219 = call { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %220 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %221 = extractvalue { i64, i64 } %219, 0
  store i64 %221, ptr %220, align 8
  %222 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %223 = extractvalue { i64, i64 } %219, 1
  store i64 %223, ptr %222, align 8
  %224 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 2
  %225 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %224, ptr noundef nonnull align 8 dereferenceable(16) %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @_Z6updateR10inequalityS0_(ptr noundef nonnull align 8 dereferenceable(64) %4, ptr noundef nonnull align 8 dereferenceable(64) %7)
  br label %226

226:                                              ; preds = %43
  %227 = load i32, ptr %8, align 4, !tbaa !9
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %8, align 4, !tbaa !9
  br label %38, !llvm.loop !15

229:                                              ; preds = %42
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 @__const._Z5checkx.ans, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %230

230:                                              ; preds = %346, %229
  %231 = load i32, ptr %22, align 4, !tbaa !9
  %232 = icmp slt i32 %231, 2
  br i1 %232, label %234, label %233

233:                                              ; preds = %230
  store i32 5, ptr %23, align 4
  br label %349

234:                                              ; preds = %230
  %235 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZN10inequalityaSERKS_(ptr noundef nonnull align 8 dereferenceable(64) %7, ptr noundef nonnull align 8 dereferenceable(64) %4)
  %236 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 0
  %237 = getelementptr inbounds %"struct.std::pair", ptr %236, i32 0, i32 0
  %238 = load i64, ptr %237, align 8, !tbaa !17
  %239 = load i32, ptr %22, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  %241 = sub nsw i64 %238, %240
  %242 = add nsw i64 %241, 1
  %243 = call noundef i64 @_Z3divx(i64 noundef %242)
  %244 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 0
  %245 = getelementptr inbounds %"struct.std::pair", ptr %244, i32 0, i32 0
  store i64 %243, ptr %245, align 8, !tbaa !17
  %246 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 1
  %247 = getelementptr inbounds %"struct.std::pair", ptr %246, i32 0, i32 0
  %248 = load i64, ptr %247, align 8, !tbaa !20
  %249 = load i32, ptr %22, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = sub nsw i64 %248, %250
  %252 = add nsw i64 %251, 1
  %253 = call noundef i64 @_Z3divx(i64 noundef %252)
  %254 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 1
  %255 = getelementptr inbounds %"struct.std::pair", ptr %254, i32 0, i32 0
  store i64 %253, ptr %255, align 8, !tbaa !20
  %256 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 2
  %257 = getelementptr inbounds %"struct.std::pair", ptr %256, i32 0, i32 0
  %258 = load i64, ptr %257, align 8, !tbaa !21
  %259 = load i32, ptr %22, align 4, !tbaa !9
  %260 = sext i32 %259 to i64
  %261 = sub nsw i64 %258, %260
  %262 = add nsw i64 %261, 1
  %263 = call noundef i64 @_Z3divx(i64 noundef %262)
  %264 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 2
  %265 = getelementptr inbounds %"struct.std::pair", ptr %264, i32 0, i32 0
  store i64 %263, ptr %265, align 8, !tbaa !21
  %266 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 3
  %267 = getelementptr inbounds %"struct.std::pair", ptr %266, i32 0, i32 0
  %268 = load i64, ptr %267, align 8, !tbaa !22
  %269 = load i32, ptr %22, align 4, !tbaa !9
  %270 = mul nsw i32 3, %269
  %271 = sext i32 %270 to i64
  %272 = sub nsw i64 %268, %271
  %273 = add nsw i64 %272, 1
  %274 = call noundef i64 @_Z3divx(i64 noundef %273)
  %275 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 3
  %276 = getelementptr inbounds %"struct.std::pair", ptr %275, i32 0, i32 0
  store i64 %274, ptr %276, align 8, !tbaa !22
  %277 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 0
  %278 = getelementptr inbounds %"struct.std::pair", ptr %277, i32 0, i32 1
  %279 = load i64, ptr %278, align 8, !tbaa !23
  %280 = load i32, ptr %22, align 4, !tbaa !9
  %281 = sext i32 %280 to i64
  %282 = sub nsw i64 %279, %281
  %283 = call noundef i64 @_Z3divx(i64 noundef %282)
  %284 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 0
  %285 = getelementptr inbounds %"struct.std::pair", ptr %284, i32 0, i32 1
  store i64 %283, ptr %285, align 8, !tbaa !23
  %286 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 1
  %287 = getelementptr inbounds %"struct.std::pair", ptr %286, i32 0, i32 1
  %288 = load i64, ptr %287, align 8, !tbaa !24
  %289 = load i32, ptr %22, align 4, !tbaa !9
  %290 = sext i32 %289 to i64
  %291 = sub nsw i64 %288, %290
  %292 = call noundef i64 @_Z3divx(i64 noundef %291)
  %293 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 1
  %294 = getelementptr inbounds %"struct.std::pair", ptr %293, i32 0, i32 1
  store i64 %292, ptr %294, align 8, !tbaa !24
  %295 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 2
  %296 = getelementptr inbounds %"struct.std::pair", ptr %295, i32 0, i32 1
  %297 = load i64, ptr %296, align 8, !tbaa !25
  %298 = load i32, ptr %22, align 4, !tbaa !9
  %299 = sext i32 %298 to i64
  %300 = sub nsw i64 %297, %299
  %301 = call noundef i64 @_Z3divx(i64 noundef %300)
  %302 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 2
  %303 = getelementptr inbounds %"struct.std::pair", ptr %302, i32 0, i32 1
  store i64 %301, ptr %303, align 8, !tbaa !25
  %304 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 3
  %305 = getelementptr inbounds %"struct.std::pair", ptr %304, i32 0, i32 1
  %306 = load i64, ptr %305, align 8, !tbaa !26
  %307 = load i32, ptr %22, align 4, !tbaa !9
  %308 = mul nsw i32 3, %307
  %309 = sext i32 %308 to i64
  %310 = sub nsw i64 %306, %309
  %311 = call noundef i64 @_Z3divx(i64 noundef %310)
  %312 = getelementptr inbounds %struct.inequality, ptr %7, i32 0, i32 3
  %313 = getelementptr inbounds %"struct.std::pair", ptr %312, i32 0, i32 1
  store i64 %311, ptr %313, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #5
  call void @_Z11getSolutionR10inequality(ptr dead_on_unwind writable sret(%struct.point) align 8 %24, ptr noundef nonnull align 8 dereferenceable(64) %7)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %24, i64 24, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #5
  %314 = getelementptr inbounds %struct.point, ptr %21, i32 0, i32 0
  %315 = load i64, ptr %314, align 8, !tbaa !11
  %316 = icmp ne i64 %315, 3000000000000000000
  br i1 %316, label %317, label %345

317:                                              ; preds = %234
  %318 = getelementptr inbounds %struct.point, ptr %21, i32 0, i32 1
  %319 = load i64, ptr %318, align 8, !tbaa !13
  %320 = getelementptr inbounds %struct.point, ptr %21, i32 0, i32 2
  %321 = load i64, ptr %320, align 8, !tbaa !14
  %322 = add nsw i64 %319, %321
  %323 = load i32, ptr %22, align 4, !tbaa !9
  %324 = sext i32 %323 to i64
  %325 = add nsw i64 %322, %324
  %326 = getelementptr inbounds %struct.point, ptr %0, i32 0, i32 0
  store i64 %325, ptr %326, align 8, !tbaa !11
  %327 = getelementptr inbounds %struct.point, ptr %21, i32 0, i32 0
  %328 = load i64, ptr %327, align 8, !tbaa !11
  %329 = getelementptr inbounds %struct.point, ptr %21, i32 0, i32 2
  %330 = load i64, ptr %329, align 8, !tbaa !14
  %331 = add nsw i64 %328, %330
  %332 = load i32, ptr %22, align 4, !tbaa !9
  %333 = sext i32 %332 to i64
  %334 = add nsw i64 %331, %333
  %335 = getelementptr inbounds %struct.point, ptr %0, i32 0, i32 1
  store i64 %334, ptr %335, align 8, !tbaa !13
  %336 = getelementptr inbounds %struct.point, ptr %21, i32 0, i32 0
  %337 = load i64, ptr %336, align 8, !tbaa !11
  %338 = getelementptr inbounds %struct.point, ptr %21, i32 0, i32 1
  %339 = load i64, ptr %338, align 8, !tbaa !13
  %340 = add nsw i64 %337, %339
  %341 = load i32, ptr %22, align 4, !tbaa !9
  %342 = sext i32 %341 to i64
  %343 = add nsw i64 %340, %342
  %344 = getelementptr inbounds %struct.point, ptr %0, i32 0, i32 2
  store i64 %343, ptr %344, align 8, !tbaa !14
  store i32 1, ptr %23, align 4
  br label %349

345:                                              ; preds = %234
  br label %346

346:                                              ; preds = %345
  %347 = load i32, ptr %22, align 4, !tbaa !9
  %348 = add nsw i32 %347, 1
  store i32 %348, ptr %22, align 4, !tbaa !9
  br label %230, !llvm.loop !28

349:                                              ; preds = %317, %233
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  %350 = load i32, ptr %23, align 4
  switch i32 %350, label %352 [
    i32 5, label %351
  ]

351:                                              ; preds = %349
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 %21, i64 24, i1 false), !tbaa.struct !27
  store i32 1, ptr %23, align 4
  br label %352

352:                                              ; preds = %351, %349
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #5
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10inequalityC2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIxRKxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #0

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

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

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

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


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

%struct.point = type { i64, i64, i64 }
%struct.inequality = type { %"struct.std::pair", %"struct.std::pair", %"struct.std::pair", %"struct.std::pair" }
%"struct.std::pair" = type { i64, i64 }

@p = external dso_local local_unnamed_addr global [100100 x %struct.point], align 16
@n = external dso_local local_unnamed_addr global i32, align 4
@_ZL3INF = external hidden constant i64, align 8

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11getSolutionR10inequality(ptr dead_on_unwind noalias writable sret(%struct.point) align 8, ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6updateR10inequalityS0_(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3divx(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5checkx(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.point) align 8 %0, i64 noundef %1) local_unnamed_addr #0 {
  %3 = alloca %struct.inequality, align 8
  %4 = alloca %"struct.std::pair", align 8
  %5 = alloca i64, align 8
  %6 = alloca %struct.inequality, align 8
  %7 = alloca %"struct.std::pair", align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca %"struct.std::pair", align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca %struct.point, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #4
  call void @_ZN10inequalityC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %3)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  store i64 -3000000000000000000, ptr %5, align 8, !tbaa !5
  %20 = call { i64, i64 } @_ZSt9make_pairIxRKxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) @_ZL3INF)
  %21 = extractvalue { i64, i64 } %20, 0
  store i64 %21, ptr %4, align 8
  %22 = getelementptr inbounds i8, ptr %4, i64 8
  %23 = extractvalue { i64, i64 } %20, 1
  store i64 %23, ptr %22, align 8
  %24 = getelementptr inbounds i8, ptr %3, i64 48
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(16) %4) #4
  %26 = getelementptr inbounds i8, ptr %3, i64 32
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %25)
  %28 = getelementptr inbounds i8, ptr %3, i64 16
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(16) %27)
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 8 dereferenceable(16) %29)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #4
  call void @_ZN10inequalityC2Ev(ptr noundef nonnull align 8 dereferenceable(64) %6)
  %31 = load i32, ptr @n, align 4, !tbaa !9
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %33 = getelementptr inbounds i8, ptr %7, i64 8
  %34 = getelementptr inbounds i8, ptr %6, i64 48
  %35 = getelementptr inbounds i8, ptr %10, i64 8
  %36 = getelementptr inbounds i8, ptr %13, i64 8
  %37 = getelementptr inbounds i8, ptr %6, i64 16
  %38 = getelementptr inbounds i8, ptr %16, i64 8
  %39 = getelementptr inbounds i8, ptr %6, i64 32
  br label %68

._crit_edge:                                      ; preds = %68, %2
  %40 = getelementptr inbounds i8, ptr %6, i64 16
  %41 = getelementptr inbounds i8, ptr %6, i64 32
  %42 = getelementptr inbounds i8, ptr %6, i64 48
  %43 = getelementptr inbounds i8, ptr %6, i64 8
  %44 = getelementptr inbounds i8, ptr %6, i64 24
  %45 = getelementptr inbounds i8, ptr %6, i64 40
  %46 = getelementptr inbounds i8, ptr %6, i64 56
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 8
  %.sroa.10.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 16
  %47 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZN10inequalityaSERKS_(ptr noundef nonnull align 8 dereferenceable(64) %6, ptr noundef nonnull align 8 dereferenceable(64) %3)
  %48 = load i64, ptr %6, align 8, !tbaa !11
  %49 = add i64 %48, 1
  %50 = call noundef i64 @_Z3divx(i64 noundef %49)
  store i64 %50, ptr %6, align 8, !tbaa !11
  %51 = load i64, ptr %40, align 8, !tbaa !14
  %52 = add i64 %51, 1
  %53 = call noundef i64 @_Z3divx(i64 noundef %52)
  store i64 %53, ptr %40, align 8, !tbaa !14
  %54 = load i64, ptr %41, align 8, !tbaa !15
  %55 = add i64 %54, 1
  %56 = call noundef i64 @_Z3divx(i64 noundef %55)
  store i64 %56, ptr %41, align 8, !tbaa !15
  %57 = load i64, ptr %42, align 8, !tbaa !16
  %58 = add i64 %57, 1
  %59 = call noundef i64 @_Z3divx(i64 noundef %58)
  store i64 %59, ptr %42, align 8, !tbaa !16
  %60 = load i64, ptr %43, align 8, !tbaa !17
  %61 = call noundef i64 @_Z3divx(i64 noundef %60)
  store i64 %61, ptr %43, align 8, !tbaa !17
  %62 = load i64, ptr %44, align 8, !tbaa !18
  %63 = call noundef i64 @_Z3divx(i64 noundef %62)
  store i64 %63, ptr %44, align 8, !tbaa !18
  %64 = load i64, ptr %45, align 8, !tbaa !19
  %65 = call noundef i64 @_Z3divx(i64 noundef %64)
  store i64 %65, ptr %45, align 8, !tbaa !19
  %66 = load i64, ptr %46, align 8, !tbaa !20
  %67 = call noundef i64 @_Z3divx(i64 noundef %66)
  store i64 %67, ptr %46, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #4
  call void @_Z11getSolutionR10inequality(ptr dead_on_unwind nonnull writable sret(%struct.point) align 8 %19, ptr noundef nonnull align 8 dereferenceable(64) %6)
  %.sroa.0.0.copyload16 = load i64, ptr %19, align 8, !tbaa !5
  %.sroa.8.0.copyload18 = load i64, ptr %.sroa.8.0..sroa_idx, align 8, !tbaa !5
  %.sroa.10.0.copyload22 = load i64, ptr %.sroa.10.0..sroa_idx, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #4
  %.not = icmp eq i64 %.sroa.0.0.copyload16, 3000000000000000000
  br i1 %.not, label %124, label %148

68:                                               ; preds = %.lr.ph, %68
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %68 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %69 = getelementptr inbounds [100100 x %struct.point], ptr @p, i64 0, i64 %indvars.iv
  %70 = load i64, ptr %69, align 8, !tbaa !21
  %71 = getelementptr inbounds i8, ptr %69, i64 8
  %72 = load i64, ptr %71, align 8, !tbaa !23
  %73 = add nsw i64 %72, %70
  %74 = getelementptr inbounds i8, ptr %69, i64 16
  %75 = load i64, ptr %74, align 8, !tbaa !24
  %76 = add nsw i64 %73, %75
  %77 = sub nsw i64 %76, %1
  store i64 %77, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %78 = add nsw i64 %76, %1
  store i64 %78, ptr %9, align 8, !tbaa !5
  %79 = call { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %80 = extractvalue { i64, i64 } %79, 0
  store i64 %80, ptr %7, align 8
  %81 = extractvalue { i64, i64 } %79, 1
  store i64 %81, ptr %33, align 8
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(16) %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %83 = load i64, ptr %69, align 8, !tbaa !21
  %84 = load i64, ptr %71, align 8, !tbaa !23
  %85 = load i64, ptr %74, align 8, !tbaa !24
  %86 = add i64 %83, %1
  %87 = sub i64 %84, %86
  %88 = add i64 %87, %85
  store i64 %88, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %89 = sub i64 %1, %83
  %90 = add i64 %89, %84
  %91 = add i64 %90, %85
  store i64 %91, ptr %12, align 8, !tbaa !5
  %92 = call { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %93 = extractvalue { i64, i64 } %92, 0
  store i64 %93, ptr %10, align 8
  %94 = extractvalue { i64, i64 } %92, 1
  store i64 %94, ptr %35, align 8
  %95 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(16) %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  %96 = load i64, ptr %69, align 8, !tbaa !21
  %97 = load i64, ptr %71, align 8, !tbaa !23
  %98 = load i64, ptr %74, align 8, !tbaa !24
  %99 = add i64 %97, %1
  %100 = sub i64 %96, %99
  %101 = add i64 %100, %98
  store i64 %101, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  %102 = add i64 %96, %1
  %103 = sub i64 %102, %97
  %104 = add i64 %103, %98
  store i64 %104, ptr %15, align 8, !tbaa !5
  %105 = call { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15)
  %106 = extractvalue { i64, i64 } %105, 0
  store i64 %106, ptr %13, align 8
  %107 = extractvalue { i64, i64 } %105, 1
  store i64 %107, ptr %36, align 8
  %108 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(16) %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  %109 = load i64, ptr %69, align 8, !tbaa !21
  %110 = load i64, ptr %71, align 8, !tbaa !23
  %111 = add nsw i64 %110, %109
  %112 = load i64, ptr %74, align 8, !tbaa !24
  %113 = add i64 %112, %1
  %114 = sub i64 %111, %113
  store i64 %114, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #4
  %115 = sub i64 %1, %112
  %116 = add i64 %115, %111
  store i64 %116, ptr %18, align 8, !tbaa !5
  %117 = call { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %118 = extractvalue { i64, i64 } %117, 0
  store i64 %118, ptr %16, align 8
  %119 = extractvalue { i64, i64 } %117, 1
  store i64 %119, ptr %38, align 8
  %120 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIxxEaSEOS0_(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef nonnull align 8 dereferenceable(16) %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #4
  call void @_Z6updateR10inequalityS0_(ptr noundef nonnull align 8 dereferenceable(64) %3, ptr noundef nonnull align 8 dereferenceable(64) %6)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %121 = load i32, ptr @n, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = icmp slt i64 %indvars.iv.next, %122
  br i1 %123, label %68, label %._crit_edge, !llvm.loop !25

124:                                              ; preds = %._crit_edge
  %125 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZN10inequalityaSERKS_(ptr noundef nonnull align 8 dereferenceable(64) %6, ptr noundef nonnull align 8 dereferenceable(64) %3)
  %126 = load i64, ptr %6, align 8, !tbaa !11
  %127 = call noundef i64 @_Z3divx(i64 noundef %126)
  store i64 %127, ptr %6, align 8, !tbaa !11
  %128 = load i64, ptr %40, align 8, !tbaa !14
  %129 = call noundef i64 @_Z3divx(i64 noundef %128)
  store i64 %129, ptr %40, align 8, !tbaa !14
  %130 = load i64, ptr %41, align 8, !tbaa !15
  %131 = call noundef i64 @_Z3divx(i64 noundef %130)
  store i64 %131, ptr %41, align 8, !tbaa !15
  %132 = load i64, ptr %42, align 8, !tbaa !16
  %133 = add i64 %132, -2
  %134 = call noundef i64 @_Z3divx(i64 noundef %133)
  store i64 %134, ptr %42, align 8, !tbaa !16
  %135 = load i64, ptr %43, align 8, !tbaa !17
  %136 = add nsw i64 %135, -1
  %137 = call noundef i64 @_Z3divx(i64 noundef %136)
  store i64 %137, ptr %43, align 8, !tbaa !17
  %138 = load i64, ptr %44, align 8, !tbaa !18
  %139 = add nsw i64 %138, -1
  %140 = call noundef i64 @_Z3divx(i64 noundef %139)
  store i64 %140, ptr %44, align 8, !tbaa !18
  %141 = load i64, ptr %45, align 8, !tbaa !19
  %142 = add nsw i64 %141, -1
  %143 = call noundef i64 @_Z3divx(i64 noundef %142)
  store i64 %143, ptr %45, align 8, !tbaa !19
  %144 = load i64, ptr %46, align 8, !tbaa !20
  %145 = add nsw i64 %144, -3
  %146 = call noundef i64 @_Z3divx(i64 noundef %145)
  store i64 %146, ptr %46, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #4
  call void @_Z11getSolutionR10inequality(ptr dead_on_unwind nonnull writable sret(%struct.point) align 8 %19, ptr noundef nonnull align 8 dereferenceable(64) %6)
  %.sroa.0.0.copyload16.1 = load i64, ptr %19, align 8, !tbaa !5
  %.sroa.8.0.copyload18.1 = load i64, ptr %.sroa.8.0..sroa_idx, align 8, !tbaa !5
  %.sroa.10.0.copyload22.1 = load i64, ptr %.sroa.10.0..sroa_idx, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #4
  %.not.1 = icmp eq i64 %.sroa.0.0.copyload16.1, 3000000000000000000
  br i1 %.not.1, label %147, label %148

147:                                              ; preds = %124
  store i64 3000000000000000000, ptr %0, align 8, !tbaa !5
  %.sroa.8.0..sroa_idx19 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %.sroa.8.0.copyload18.1, ptr %.sroa.8.0..sroa_idx19, align 8, !tbaa !5
  br label %155

148:                                              ; preds = %124, %._crit_edge
  %.lcssa = phi i64 [ 0, %._crit_edge ], [ 1, %124 ]
  %.sroa.0.0.copyload16.lcssa = phi i64 [ %.sroa.0.0.copyload16, %._crit_edge ], [ %.sroa.0.0.copyload16.1, %124 ]
  %.sroa.8.0.copyload18.lcssa = phi i64 [ %.sroa.8.0.copyload18, %._crit_edge ], [ %.sroa.8.0.copyload18.1, %124 ]
  %.sroa.10.0.copyload22.lcssa = phi i64 [ %.sroa.10.0.copyload22, %._crit_edge ], [ %.sroa.10.0.copyload22.1, %124 ]
  %149 = add i64 %.sroa.8.0.copyload18.lcssa, %.lcssa
  %150 = add i64 %149, %.sroa.10.0.copyload22.lcssa
  store i64 %150, ptr %0, align 8, !tbaa !21
  %151 = add i64 %.sroa.0.0.copyload16.lcssa, %.lcssa
  %152 = add i64 %151, %.sroa.10.0.copyload22.lcssa
  %153 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %152, ptr %153, align 8, !tbaa !23
  %154 = add i64 %151, %.sroa.8.0.copyload18.lcssa
  br label %155

155:                                              ; preds = %148, %147
  %.sink = phi i64 [ %154, %148 ], [ %.sroa.10.0.copyload22.1, %147 ]
  %156 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %.sink, ptr %156, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #4
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10inequalityC2Ev(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIxRKxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS3_INS4_IT0_E4typeEE6__typeEEOS5_OSA_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairIxxESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { 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 #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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS10inequality", !13, i64 0, !13, i64 16, !13, i64 32, !13, i64 48}
!13 = !{!"_ZTSSt4pairIxxE", !6, i64 0, !6, i64 8}
!14 = !{!12, !6, i64 16}
!15 = !{!12, !6, i64 32}
!16 = !{!12, !6, i64 48}
!17 = !{!12, !6, i64 8}
!18 = !{!12, !6, i64 24}
!19 = !{!12, !6, i64 40}
!20 = !{!12, !6, i64 56}
!21 = !{!22, !6, i64 0}
!22 = !{!"_ZTS5point", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!22, !6, i64 8}
!24 = !{!22, !6, i64 16}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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