; LLVM IR from bqi343/cp-notebook :: Implementations/content/geometry (13)/Polygons (LineHullTest)

; 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.std::pair" = type { i64, i64 }

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

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

; Function Attrs: 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: mustprogress uwtable
declare dso_local { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64, i64) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64, i64, i64, i64) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z10extrVertexRKSt6vectorISt4pairIxxESaIS1_EES1_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 %1, i64 %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::pair", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca %"struct.std::pair", align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = alloca %"struct.std::pair", align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"struct.std::pair", align 8
  %19 = alloca %"struct.std::pair", align 8
  %20 = alloca %"struct.std::pair", align 8
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca i32, align 4
  %25 = alloca %"struct.std::pair", align 8
  %26 = alloca %"struct.std::pair", align 8
  %27 = alloca %"struct.std::pair", align 8
  %28 = alloca i32, align 4
  %29 = alloca %"struct.std::pair", align 8
  %30 = alloca %"struct.std::pair", align 8
  %31 = alloca %"struct.std::pair", align 8
  %32 = alloca %"struct.std::pair", align 8
  %33 = alloca %"struct.std::pair", align 8
  %34 = alloca %"struct.std::pair", align 8
  %35 = getelementptr inbounds { i64, i64 }, ptr %5, i32 0, i32 0
  store i64 %1, ptr %35, align 8
  %36 = getelementptr inbounds { i64, i64 }, ptr %5, i32 0, i32 1
  store i64 %2, ptr %36, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = call noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #4
  %39 = trunc i64 %38 to i32
  store i32 %39, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %40 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %40, ptr %9, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %5, i64 16, i1 false)
  %41 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %42 = load i64, ptr %41, align 8
  %43 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %44 = load i64, ptr %43, align 8
  %45 = call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %42, i64 %44)
  %46 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %47 = extractvalue { i64, i64 } %45, 0
  store i64 %47, ptr %46, align 8
  %48 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %49 = extractvalue { i64, i64 } %45, 1
  store i64 %49, ptr %48, align 8
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load i32, ptr %7, align 4, !tbaa !9
  %52 = srem i32 1, %51
  %53 = sext i32 %52 to i64
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %53) #4
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = srem i32 0, %56
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %58) #4
  %60 = call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 8 dereferenceable(16) %59)
  %61 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 0
  %62 = extractvalue { i64, i64 } %60, 0
  store i64 %62, ptr %61, align 8
  %63 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 1
  %64 = extractvalue { i64, i64 } %60, 1
  store i64 %64, ptr %63, align 8
  %65 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %66 = load i64, ptr %65, align 8
  %67 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %68 = load i64, ptr %67, align 8
  %69 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 0
  %70 = load i64, ptr %69, align 8
  %71 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 1
  %72 = load i64, ptr %71, align 8
  %73 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64 %66, i64 %68, i64 %70, i64 %72)
  %74 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %73)
  %75 = icmp sge i32 %74, 0
  br i1 %75, label %76, label %115

76:                                               ; preds = %3
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %5, i64 16, i1 false)
  %77 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 0
  %78 = load i64, ptr %77, align 8
  %79 = getelementptr inbounds { i64, i64 }, ptr %14, i32 0, i32 1
  %80 = load i64, ptr %79, align 8
  %81 = call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %78, i64 %80)
  %82 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 0
  %83 = extractvalue { i64, i64 } %81, 0
  store i64 %83, ptr %82, align 8
  %84 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 1
  %85 = extractvalue { i64, i64 } %81, 1
  store i64 %85, ptr %84, align 8
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = load i32, ptr %7, align 4, !tbaa !9
  %88 = srem i32 0, %87
  %89 = sext i32 %88 to i64
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %86, i64 noundef %89) #4
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = load i32, ptr %7, align 4, !tbaa !9
  %93 = add nsw i32 -1, %92
  %94 = load i32, ptr %7, align 4, !tbaa !9
  %95 = srem i32 %93, %94
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %96) #4
  %98 = call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %90, ptr noundef nonnull align 8 dereferenceable(16) %97)
  %99 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 0
  %100 = extractvalue { i64, i64 } %98, 0
  store i64 %100, ptr %99, align 8
  %101 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 1
  %102 = extractvalue { i64, i64 } %98, 1
  store i64 %102, ptr %101, align 8
  %103 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 0
  %104 = load i64, ptr %103, align 8
  %105 = getelementptr inbounds { i64, i64 }, ptr %13, i32 0, i32 1
  %106 = load i64, ptr %105, align 8
  %107 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 0
  %108 = load i64, ptr %107, align 8
  %109 = getelementptr inbounds { i64, i64 }, ptr %15, i32 0, i32 1
  %110 = load i64, ptr %109, align 8
  %111 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64 %104, i64 %106, i64 %108, i64 %110)
  %112 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %111)
  %113 = icmp slt i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %76
  store i32 0, ptr %4, align 4
  store i32 1, ptr %16, align 4
  br label %338

115:                                              ; preds = %76, %3
  br label %116

116:                                              ; preds = %335, %115
  %117 = load i32, ptr %8, align 4, !tbaa !9
  %118 = add nsw i32 %117, 1
  %119 = load i32, ptr %9, align 4, !tbaa !9
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %121, label %336

121:                                              ; preds = %116
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %122 = load i32, ptr %8, align 4, !tbaa !9
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = add nsw i32 %122, %123
  %125 = sdiv i32 %124, 2
  store i32 %125, ptr %17, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %5, i64 16, i1 false)
  %126 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 0
  %127 = load i64, ptr %126, align 8
  %128 = getelementptr inbounds { i64, i64 }, ptr %19, i32 0, i32 1
  %129 = load i64, ptr %128, align 8
  %130 = call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %127, i64 %129)
  %131 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %132 = extractvalue { i64, i64 } %130, 0
  store i64 %132, ptr %131, align 8
  %133 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %134 = extractvalue { i64, i64 } %130, 1
  store i64 %134, ptr %133, align 8
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = load i32, ptr %17, align 4, !tbaa !9
  %137 = add nsw i32 %136, 1
  %138 = load i32, ptr %7, align 4, !tbaa !9
  %139 = srem i32 %137, %138
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %140) #4
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = load i32, ptr %17, align 4, !tbaa !9
  %144 = load i32, ptr %7, align 4, !tbaa !9
  %145 = srem i32 %143, %144
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %142, i64 noundef %146) #4
  %148 = call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %141, ptr noundef nonnull align 8 dereferenceable(16) %147)
  %149 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 0
  %150 = extractvalue { i64, i64 } %148, 0
  store i64 %150, ptr %149, align 8
  %151 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 1
  %152 = extractvalue { i64, i64 } %148, 1
  store i64 %152, ptr %151, align 8
  %153 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 0
  %154 = load i64, ptr %153, align 8
  %155 = getelementptr inbounds { i64, i64 }, ptr %18, i32 0, i32 1
  %156 = load i64, ptr %155, align 8
  %157 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 0
  %158 = load i64, ptr %157, align 8
  %159 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 1
  %160 = load i64, ptr %159, align 8
  %161 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64 %154, i64 %156, i64 %158, i64 %160)
  %162 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %161)
  %163 = icmp sge i32 %162, 0
  br i1 %163, label %164, label %207

164:                                              ; preds = %121
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %5, i64 16, i1 false)
  %165 = getelementptr inbounds { i64, i64 }, ptr %22, i32 0, i32 0
  %166 = load i64, ptr %165, align 8
  %167 = getelementptr inbounds { i64, i64 }, ptr %22, i32 0, i32 1
  %168 = load i64, ptr %167, align 8
  %169 = call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %166, i64 %168)
  %170 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 0
  %171 = extractvalue { i64, i64 } %169, 0
  store i64 %171, ptr %170, align 8
  %172 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 1
  %173 = extractvalue { i64, i64 } %169, 1
  store i64 %173, ptr %172, align 8
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = load i32, ptr %17, align 4, !tbaa !9
  %176 = load i32, ptr %7, align 4, !tbaa !9
  %177 = srem i32 %175, %176
  %178 = sext i32 %177 to i64
  %179 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %174, i64 noundef %178) #4
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = load i32, ptr %17, align 4, !tbaa !9
  %182 = sub nsw i32 %181, 1
  %183 = load i32, ptr %7, align 4, !tbaa !9
  %184 = add nsw i32 %182, %183
  %185 = load i32, ptr %7, align 4, !tbaa !9
  %186 = srem i32 %184, %185
  %187 = sext i32 %186 to i64
  %188 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %187) #4
  %189 = call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %179, ptr noundef nonnull align 8 dereferenceable(16) %188)
  %190 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 0
  %191 = extractvalue { i64, i64 } %189, 0
  store i64 %191, ptr %190, align 8
  %192 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 1
  %193 = extractvalue { i64, i64 } %189, 1
  store i64 %193, ptr %192, align 8
  %194 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 0
  %195 = load i64, ptr %194, align 8
  %196 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 1
  %197 = load i64, ptr %196, align 8
  %198 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 0
  %199 = load i64, ptr %198, align 8
  %200 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 1
  %201 = load i64, ptr %200, align 8
  %202 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64 %195, i64 %197, i64 %199, i64 %201)
  %203 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %202)
  %204 = icmp slt i32 %203, 0
  br i1 %204, label %205, label %207

205:                                              ; preds = %164
  %206 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %206, ptr %4, align 4
  store i32 1, ptr %16, align 4
  br label %333

207:                                              ; preds = %164, %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %5, i64 16, i1 false)
  %208 = getelementptr inbounds { i64, i64 }, ptr %26, i32 0, i32 0
  %209 = load i64, ptr %208, align 8
  %210 = getelementptr inbounds { i64, i64 }, ptr %26, i32 0, i32 1
  %211 = load i64, ptr %210, align 8
  %212 = call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %209, i64 %211)
  %213 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 0
  %214 = extractvalue { i64, i64 } %212, 0
  store i64 %214, ptr %213, align 8
  %215 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 1
  %216 = extractvalue { i64, i64 } %212, 1
  store i64 %216, ptr %215, align 8
  %217 = load ptr, ptr %6, align 8, !tbaa !5
  %218 = load i32, ptr %8, align 4, !tbaa !9
  %219 = add nsw i32 %218, 1
  %220 = load i32, ptr %7, align 4, !tbaa !9
  %221 = srem i32 %219, %220
  %222 = sext i32 %221 to i64
  %223 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %217, i64 noundef %222) #4
  %224 = load ptr, ptr %6, align 8, !tbaa !5
  %225 = load i32, ptr %8, align 4, !tbaa !9
  %226 = load i32, ptr %7, align 4, !tbaa !9
  %227 = srem i32 %225, %226
  %228 = sext i32 %227 to i64
  %229 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %224, i64 noundef %228) #4
  %230 = call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %223, ptr noundef nonnull align 8 dereferenceable(16) %229)
  %231 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 0
  %232 = extractvalue { i64, i64 } %230, 0
  store i64 %232, ptr %231, align 8
  %233 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 1
  %234 = extractvalue { i64, i64 } %230, 1
  store i64 %234, ptr %233, align 8
  %235 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 0
  %236 = load i64, ptr %235, align 8
  %237 = getelementptr inbounds { i64, i64 }, ptr %25, i32 0, i32 1
  %238 = load i64, ptr %237, align 8
  %239 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 0
  %240 = load i64, ptr %239, align 8
  %241 = getelementptr inbounds { i64, i64 }, ptr %27, i32 0, i32 1
  %242 = load i64, ptr %241, align 8
  %243 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64 %236, i64 %238, i64 %240, i64 %242)
  %244 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %243)
  store i32 %244, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %30, ptr align 8 %5, i64 16, i1 false)
  %245 = getelementptr inbounds { i64, i64 }, ptr %30, i32 0, i32 0
  %246 = load i64, ptr %245, align 8
  %247 = getelementptr inbounds { i64, i64 }, ptr %30, i32 0, i32 1
  %248 = load i64, ptr %247, align 8
  %249 = call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %246, i64 %248)
  %250 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 0
  %251 = extractvalue { i64, i64 } %249, 0
  store i64 %251, ptr %250, align 8
  %252 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 1
  %253 = extractvalue { i64, i64 } %249, 1
  store i64 %253, ptr %252, align 8
  %254 = load ptr, ptr %6, align 8, !tbaa !5
  %255 = load i32, ptr %17, align 4, !tbaa !9
  %256 = add nsw i32 %255, 1
  %257 = load i32, ptr %7, align 4, !tbaa !9
  %258 = srem i32 %256, %257
  %259 = sext i32 %258 to i64
  %260 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %254, i64 noundef %259) #4
  %261 = load ptr, ptr %6, align 8, !tbaa !5
  %262 = load i32, ptr %17, align 4, !tbaa !9
  %263 = load i32, ptr %7, align 4, !tbaa !9
  %264 = srem i32 %262, %263
  %265 = sext i32 %264 to i64
  %266 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %261, i64 noundef %265) #4
  %267 = call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %260, ptr noundef nonnull align 8 dereferenceable(16) %266)
  %268 = getelementptr inbounds { i64, i64 }, ptr %31, i32 0, i32 0
  %269 = extractvalue { i64, i64 } %267, 0
  store i64 %269, ptr %268, align 8
  %270 = getelementptr inbounds { i64, i64 }, ptr %31, i32 0, i32 1
  %271 = extractvalue { i64, i64 } %267, 1
  store i64 %271, ptr %270, align 8
  %272 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 0
  %273 = load i64, ptr %272, align 8
  %274 = getelementptr inbounds { i64, i64 }, ptr %29, i32 0, i32 1
  %275 = load i64, ptr %274, align 8
  %276 = getelementptr inbounds { i64, i64 }, ptr %31, i32 0, i32 0
  %277 = load i64, ptr %276, align 8
  %278 = getelementptr inbounds { i64, i64 }, ptr %31, i32 0, i32 1
  %279 = load i64, ptr %278, align 8
  %280 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64 %273, i64 %275, i64 %277, i64 %279)
  %281 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %280)
  store i32 %281, ptr %28, align 4, !tbaa !9
  %282 = load i32, ptr %17, align 4, !tbaa !9
  %283 = load i32, ptr %24, align 4, !tbaa !9
  %284 = load i32, ptr %28, align 4, !tbaa !9
  %285 = icmp slt i32 %283, %284
  br i1 %285, label %329, label %286

286:                                              ; preds = %207
  %287 = load i32, ptr %24, align 4, !tbaa !9
  %288 = load i32, ptr %28, align 4, !tbaa !9
  %289 = icmp eq i32 %287, %288
  br i1 %289, label %290, label %330

290:                                              ; preds = %286
  %291 = load i32, ptr %24, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %33, ptr align 8 %5, i64 16, i1 false)
  %292 = getelementptr inbounds { i64, i64 }, ptr %33, i32 0, i32 0
  %293 = load i64, ptr %292, align 8
  %294 = getelementptr inbounds { i64, i64 }, ptr %33, i32 0, i32 1
  %295 = load i64, ptr %294, align 8
  %296 = call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %293, i64 %295)
  %297 = getelementptr inbounds { i64, i64 }, ptr %32, i32 0, i32 0
  %298 = extractvalue { i64, i64 } %296, 0
  store i64 %298, ptr %297, align 8
  %299 = getelementptr inbounds { i64, i64 }, ptr %32, i32 0, i32 1
  %300 = extractvalue { i64, i64 } %296, 1
  store i64 %300, ptr %299, align 8
  %301 = load ptr, ptr %6, align 8, !tbaa !5
  %302 = load i32, ptr %8, align 4, !tbaa !9
  %303 = load i32, ptr %7, align 4, !tbaa !9
  %304 = srem i32 %302, %303
  %305 = sext i32 %304 to i64
  %306 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %301, i64 noundef %305) #4
  %307 = load ptr, ptr %6, align 8, !tbaa !5
  %308 = load i32, ptr %17, align 4, !tbaa !9
  %309 = load i32, ptr %7, align 4, !tbaa !9
  %310 = srem i32 %308, %309
  %311 = sext i32 %310 to i64
  %312 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %307, i64 noundef %311) #4
  %313 = call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %306, ptr noundef nonnull align 8 dereferenceable(16) %312)
  %314 = getelementptr inbounds { i64, i64 }, ptr %34, i32 0, i32 0
  %315 = extractvalue { i64, i64 } %313, 0
  store i64 %315, ptr %314, align 8
  %316 = getelementptr inbounds { i64, i64 }, ptr %34, i32 0, i32 1
  %317 = extractvalue { i64, i64 } %313, 1
  store i64 %317, ptr %316, align 8
  %318 = getelementptr inbounds { i64, i64 }, ptr %32, i32 0, i32 0
  %319 = load i64, ptr %318, align 8
  %320 = getelementptr inbounds { i64, i64 }, ptr %32, i32 0, i32 1
  %321 = load i64, ptr %320, align 8
  %322 = getelementptr inbounds { i64, i64 }, ptr %34, i32 0, i32 0
  %323 = load i64, ptr %322, align 8
  %324 = getelementptr inbounds { i64, i64 }, ptr %34, i32 0, i32 1
  %325 = load i64, ptr %324, align 8
  %326 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64 %319, i64 %321, i64 %323, i64 %325)
  %327 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %326)
  %328 = icmp eq i32 %291, %327
  br i1 %328, label %329, label %330

329:                                              ; preds = %290, %207
  br label %331

330:                                              ; preds = %290, %286
  br label %331

331:                                              ; preds = %330, %329
  %332 = phi ptr [ %9, %329 ], [ %8, %330 ]
  store i32 %282, ptr %332, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  store i32 0, ptr %16, align 4
  br label %333

333:                                              ; preds = %331, %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  %334 = load i32, ptr %16, align 4
  switch i32 %334, label %338 [
    i32 0, label %335
  ]

335:                                              ; preds = %333
  br label %116, !llvm.loop !11

336:                                              ; preds = %116
  %337 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %337, ptr %4, align 4
  store i32 1, ptr %16, align 4
  br label %338

338:                                              ; preds = %336, %333, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  %339 = load i32, ptr %4, align 4
  ret i32 %339
}

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

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

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

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


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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64, i64) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64, i64, i64, i64) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z10extrVertexRKSt6vectorISt4pairIxxESaIS1_EES1_(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 %1, i64 %2) local_unnamed_addr #1 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = tail call noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %0) #3
  %7 = trunc i64 %6 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4)
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5)
  store i32 %7, ptr %5, align 4, !tbaa !5
  %8 = tail call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %1, i64 %2)
  %9 = extractvalue { i64, i64 } %8, 0
  %10 = extractvalue { i64, i64 } %8, 1
  %11 = srem i32 1, %7
  %12 = zext nneg i32 %11 to i64
  %13 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %12) #3
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #3
  %15 = tail call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %14)
  %16 = extractvalue { i64, i64 } %15, 0
  %17 = extractvalue { i64, i64 } %15, 1
  %18 = tail call noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64 %9, i64 %10, i64 %16, i64 %17)
  %19 = tail call noundef i32 @_Z3sgnIxEiT_(i64 noundef %18)
  %20 = icmp sgt i32 %19, -1
  br i1 %20, label %21, label %37

21:                                               ; preds = %3
  %22 = tail call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %1, i64 %2)
  %23 = extractvalue { i64, i64 } %22, 0
  %24 = extractvalue { i64, i64 } %22, 1
  %25 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef 0) #3
  %26 = add nsw i32 %7, -1
  %27 = srem i32 %26, %7
  %28 = sext i32 %27 to i64
  %29 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %28) #3
  %30 = tail call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %29)
  %31 = extractvalue { i64, i64 } %30, 0
  %32 = extractvalue { i64, i64 } %30, 1
  %33 = tail call noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64 %23, i64 %24, i64 %31, i64 %32)
  %34 = tail call noundef i32 @_Z3sgnIxEiT_(i64 noundef %33)
  %35 = icmp sgt i32 %34, -1
  %36 = icmp sgt i32 %7, 1
  %or.cond = and i1 %35, %36
  br i1 %or.cond, label %.lr.ph, label %.thread

37:                                               ; preds = %3
  %.old = icmp sgt i32 %7, 1
  br i1 %.old, label %.lr.ph, label %.thread

.lr.ph:                                           ; preds = %21, %37
  %38 = add nsw i32 %7, -1
  br label %39

39:                                               ; preds = %.lr.ph, %115
  %.0..0.116 = phi i32 [ %7, %.lr.ph ], [ %.0..0..0..0., %115 ]
  %40 = phi i32 [ 1, %.lr.ph ], [ %117, %115 ]
  %.0..0.56115 = phi i32 [ 0, %.lr.ph ], [ %.0..0..0..0.56, %115 ]
  %41 = add nsw i32 %.0..0.116, %.0..0.56115
  %42 = sdiv i32 %41, 2
  %43 = tail call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %1, i64 %2)
  %44 = extractvalue { i64, i64 } %43, 0
  %45 = extractvalue { i64, i64 } %43, 1
  %46 = add nsw i32 %42, 1
  %47 = srem i32 %46, %7
  %48 = sext i32 %47 to i64
  %49 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %48) #3
  %50 = srem i32 %42, %7
  %51 = sext i32 %50 to i64
  %52 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %51) #3
  %53 = tail call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(16) %52)
  %54 = extractvalue { i64, i64 } %53, 0
  %55 = extractvalue { i64, i64 } %53, 1
  %56 = tail call noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64 %44, i64 %45, i64 %54, i64 %55)
  %57 = tail call noundef i32 @_Z3sgnIxEiT_(i64 noundef %56)
  %58 = icmp sgt i32 %57, -1
  br i1 %58, label %59, label %74

59:                                               ; preds = %39
  %60 = tail call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %1, i64 %2)
  %61 = extractvalue { i64, i64 } %60, 0
  %62 = extractvalue { i64, i64 } %60, 1
  %63 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %51) #3
  %64 = add i32 %38, %42
  %65 = srem i32 %64, %7
  %66 = sext i32 %65 to i64
  %67 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %66) #3
  %68 = tail call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %63, ptr noundef nonnull align 8 dereferenceable(16) %67)
  %69 = extractvalue { i64, i64 } %68, 0
  %70 = extractvalue { i64, i64 } %68, 1
  %71 = tail call noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64 %61, i64 %62, i64 %69, i64 %70)
  %72 = tail call noundef i32 @_Z3sgnIxEiT_(i64 noundef %71)
  %73 = icmp slt i32 %72, 0
  br i1 %73, label %.thread, label %74

74:                                               ; preds = %59, %39
  %75 = tail call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %1, i64 %2)
  %76 = extractvalue { i64, i64 } %75, 0
  %77 = extractvalue { i64, i64 } %75, 1
  %78 = srem i32 %40, %7
  %79 = sext i32 %78 to i64
  %80 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %79) #3
  %81 = srem i32 %.0..0.56115, %7
  %82 = sext i32 %81 to i64
  %83 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %82) #3
  %84 = tail call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %80, ptr noundef nonnull align 8 dereferenceable(16) %83)
  %85 = extractvalue { i64, i64 } %84, 0
  %86 = extractvalue { i64, i64 } %84, 1
  %87 = tail call noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64 %76, i64 %77, i64 %85, i64 %86)
  %88 = tail call noundef i32 @_Z3sgnIxEiT_(i64 noundef %87)
  %89 = tail call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %1, i64 %2)
  %90 = extractvalue { i64, i64 } %89, 0
  %91 = extractvalue { i64, i64 } %89, 1
  %92 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %48) #3
  %93 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %51) #3
  %94 = tail call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %92, ptr noundef nonnull align 8 dereferenceable(16) %93)
  %95 = extractvalue { i64, i64 } %94, 0
  %96 = extractvalue { i64, i64 } %94, 1
  %97 = tail call noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64 %90, i64 %91, i64 %95, i64 %96)
  %98 = tail call noundef i32 @_Z3sgnIxEiT_(i64 noundef %97)
  %99 = icmp slt i32 %88, %98
  br i1 %99, label %115, label %100

100:                                              ; preds = %74
  %101 = icmp eq i32 %88, %98
  br i1 %101, label %102, label %114

102:                                              ; preds = %100
  %103 = tail call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %1, i64 %2)
  %104 = extractvalue { i64, i64 } %103, 0
  %105 = extractvalue { i64, i64 } %103, 1
  %106 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %82) #3
  %107 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %51) #3
  %108 = tail call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %106, ptr noundef nonnull align 8 dereferenceable(16) %107)
  %109 = extractvalue { i64, i64 } %108, 0
  %110 = extractvalue { i64, i64 } %108, 1
  %111 = tail call noundef i64 @_ZN5Point5crossESt4pairIxxES1_(i64 %104, i64 %105, i64 %109, i64 %110)
  %112 = tail call noundef i32 @_Z3sgnIxEiT_(i64 noundef %111)
  %113 = icmp eq i32 %88, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %102, %100
  br label %115

115:                                              ; preds = %114, %102, %74
  %116 = phi ptr [ %4, %114 ], [ %5, %102 ], [ %5, %74 ]
  store i32 %42, ptr %116, align 4, !tbaa !5
  %.0..0..0..0.56 = load i32, ptr %4, align 4, !tbaa !5
  %117 = add nsw i32 %.0..0..0..0.56, 1
  %.0..0..0..0. = load i32, ptr %5, align 4, !tbaa !5
  %118 = icmp slt i32 %117, %.0..0..0..0.
  br i1 %118, label %39, label %.thread, !llvm.loop !9

.thread:                                          ; preds = %115, %59, %37, %21
  %.2 = phi i32 [ 0, %21 ], [ 0, %37 ], [ %.0..0..0..0.56, %115 ], [ %42, %59 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4)
  ret i32 %.2
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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