; LLVM IR from wesley-a-leung/Resources :: Tests/C++/geometry/2d/BentleyOttmannFuzzTest.ll (Z5test1v)

; 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_ostream" = type { ptr, %"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 }
%struct.pt = type { x86_fp80, x86_fp80 }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::mersenne_twister_engine" = type { [312 x i64], i64 }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Line = type { %struct.pt, x86_fp80 }
%"class.std::set.17" = type { %"class.std::_Rb_tree.18" }
%"class.std::_Rb_tree.18" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%class.anon.23 = type { ptr }
%"struct.std::pair.24" = type <{ %"struct.std::_Rb_tree_const_iterator.26", i8, [7 x i8] }>
%"struct.std::_Rb_tree_const_iterator.26" = type { ptr }
%"struct.std::_Setprecision" = type { i32 }
%"struct.std::pair" = type { %struct.pt, %struct.pt }
%"struct.std::pair.28" = type { i32, i32 }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [107 x i8], align 1
@__PRETTY_FUNCTION__._Z5test1v = external hidden unnamed_addr constant [13 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #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 noundef i32 @_Z16segSegIntersects2ptS_S_S_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test1v() #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::chrono::time_point", align 8
  %2 = alloca %"class.std::mersenne_twister_engine", align 8
  %3 = alloca i32, align 4
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.2", align 8
  %8 = alloca i32, align 4
  %9 = alloca x86_fp80, align 16
  %10 = alloca x86_fp80, align 16
  %11 = alloca x86_fp80, align 16
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %struct.Line, align 16
  %15 = alloca %struct.pt, align 16
  %16 = alloca %struct.pt, align 16
  %17 = alloca %struct.pt, align 16
  %18 = alloca %struct.pt, align 16
  %19 = alloca %"class.std::set.17", align 8
  %20 = alloca %"class.std::set.17", align 8
  %21 = alloca %class.anon.23, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %struct.pt, align 16
  %25 = alloca %struct.pt, align 16
  %26 = alloca %struct.pt, align 16
  %27 = alloca %struct.pt, align 16
  %28 = alloca %"struct.std::pair.24", align 8
  %29 = alloca ptr, align 8
  %30 = alloca %"struct.std::_Rb_tree_const_iterator.26", align 8
  %31 = alloca %"struct.std::_Rb_tree_const_iterator.26", align 8
  %32 = alloca ptr, align 8
  %33 = alloca %"class.std::chrono::time_point", align 8
  %34 = alloca double, align 8
  %35 = alloca %"class.std::chrono::duration", align 8
  %36 = alloca %"struct.std::_Setprecision", align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #8
  %37 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  %38 = getelementptr inbounds %"class.std::chrono::time_point", ptr %1, i32 0, i32 0
  %39 = getelementptr inbounds %"class.std::chrono::duration", ptr %38, i32 0, i32 0
  store i64 %37, ptr %39, align 8
  call void @llvm.lifetime.start.p0(i64 2504, ptr %2) #8
  call void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504) %2, i64 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 50000, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store i64 0, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %239, %0
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %42 = icmp slt i32 %41, 50000
  br i1 %42, label %44, label %43

43:                                               ; preds = %40
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  br label %244

44:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %136, %44
  %46 = load i32, ptr %8, align 4, !tbaa !5
  %47 = icmp slt i32 %46, 10
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %141

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  br label %50

50:                                               ; preds = %75, %49
  %51 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %52 unwind label %118

52:                                               ; preds = %50
  %53 = urem i64 %51, 21
  %54 = trunc i64 %53 to i32
  %55 = sub nsw i32 %54, 10
  %56 = sitofp i32 %55 to x86_fp80
  store x86_fp80 %56, ptr %9, align 16, !tbaa !11
  %57 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %58 unwind label %118

58:                                               ; preds = %52
  %59 = urem i64 %57, 21
  %60 = trunc i64 %59 to i32
  %61 = sub nsw i32 %60, 10
  %62 = sitofp i32 %61 to x86_fp80
  store x86_fp80 %62, ptr %10, align 16, !tbaa !11
  %63 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %64 unwind label %118

64:                                               ; preds = %58
  %65 = urem i64 %63, 401
  %66 = trunc i64 %65 to i32
  %67 = sub nsw i32 %66, 201
  %68 = sitofp i32 %67 to x86_fp80
  store x86_fp80 %68, ptr %11, align 16, !tbaa !11
  br label %69

69:                                               ; preds = %64
  %70 = load x86_fp80, ptr %9, align 16, !tbaa !11
  %71 = fcmp oeq x86_fp80 %70, 0xK00000000000000000000
  br i1 %71, label %72, label %75

72:                                               ; preds = %69
  %73 = load x86_fp80, ptr %10, align 16, !tbaa !11
  %74 = fcmp oeq x86_fp80 %73, 0xK00000000000000000000
  br label %75

75:                                               ; preds = %72, %69
  %76 = phi i1 [ false, %69 ], [ %74, %72 ]
  br i1 %76, label %50, label %77, !llvm.loop !13

77:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 48, ptr %14) #8
  %78 = load x86_fp80, ptr %9, align 16, !tbaa !11
  %79 = load x86_fp80, ptr %10, align 16, !tbaa !11
  %80 = load x86_fp80, ptr %11, align 16, !tbaa !11
  invoke void @_ZN4LineC2Eeee(ptr noundef nonnull align 16 dereferenceable(48) %14, x86_fp80 noundef %78, x86_fp80 noundef %79, x86_fp80 noundef %80)
          to label %81 unwind label %122

81:                                               ; preds = %77
  br label %82

82:                                               ; preds = %117, %81
  %83 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %84 unwind label %122

84:                                               ; preds = %82
  %85 = urem i64 %83, 2
  %86 = icmp ne i64 %85, 0
  br i1 %86, label %87, label %135

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #8
  %88 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %89 unwind label %126

89:                                               ; preds = %87
  %90 = urem i64 %88, 21
  %91 = trunc i64 %90 to i32
  %92 = sub nsw i32 %91, 10
  %93 = sitofp i32 %92 to x86_fp80
  %94 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %95 unwind label %126

95:                                               ; preds = %89
  %96 = urem i64 %94, 21
  %97 = trunc i64 %96 to i32
  %98 = sub nsw i32 %97, 10
  %99 = sitofp i32 %98 to x86_fp80
  invoke void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %16, x86_fp80 noundef %93, x86_fp80 noundef %99)
          to label %100 unwind label %126

100:                                              ; preds = %95
  invoke void @_ZNK4Line4projE2pt(ptr dead_on_unwind writable sret(%struct.pt) align 16 %15, ptr noundef nonnull align 16 dereferenceable(48) %14, ptr noundef byval(%struct.pt) align 16 %16)
          to label %101 unwind label %126

101:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #8
  %102 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %103 unwind label %130

103:                                              ; preds = %101
  %104 = urem i64 %102, 21
  %105 = trunc i64 %104 to i32
  %106 = sub nsw i32 %105, 10
  %107 = sitofp i32 %106 to x86_fp80
  %108 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %109 unwind label %130

109:                                              ; preds = %103
  %110 = urem i64 %108, 21
  %111 = trunc i64 %110 to i32
  %112 = sub nsw i32 %111, 10
  %113 = sitofp i32 %112 to x86_fp80
  invoke void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %18, x86_fp80 noundef %107, x86_fp80 noundef %113)
          to label %114 unwind label %130

114:                                              ; preds = %109
  invoke void @_ZNK4Line4projE2pt(ptr dead_on_unwind writable sret(%struct.pt) align 16 %17, ptr noundef nonnull align 16 dereferenceable(48) %14, ptr noundef byval(%struct.pt) align 16 %18)
          to label %115 unwind label %130

115:                                              ; preds = %114
  %116 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EE12emplace_backIJRS1_S6_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 16 dereferenceable(32) %15, ptr noundef nonnull align 16 dereferenceable(32) %17)
          to label %117 unwind label %130

117:                                              ; preds = %115
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  br label %82, !llvm.loop !15

118:                                              ; preds = %58, %52, %50
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %12, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %13, align 4
  br label %140

122:                                              ; preds = %82, %77
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %12, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %13, align 4
  br label %139

126:                                              ; preds = %100, %95, %89, %87
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %12, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %13, align 4
  br label %134

130:                                              ; preds = %115, %114, %109, %103, %101
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %12, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  br label %134

134:                                              ; preds = %130, %126
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  br label %139

135:                                              ; preds = %84
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  br label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %8, align 4, !tbaa !5
  %138 = add nsw i32 %137, 1
  store i32 %138, ptr %8, align 4, !tbaa !5
  br label %45, !llvm.loop !16

139:                                              ; preds = %134, %122
  call void @llvm.lifetime.end.p0(i64 48, ptr %14) #8
  br label %140

140:                                              ; preds = %139, %118
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  br label %243

141:                                              ; preds = %48
  call void @llvm.lifetime.start.p0(i64 48, ptr %19) #8
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %20) #8
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #8
  %142 = getelementptr inbounds %class.anon.23, ptr %21, i32 0, i32 0
  store ptr %19, ptr %142, align 8, !tbaa !17
  %143 = getelementptr inbounds %class.anon.23, ptr %21, i32 0, i32 0
  %144 = load ptr, ptr %143, align 8
  invoke void @"_Z14bentleyOttmannIZ5test1vE3$_0EvRKSt6vectorISt4pairI2ptS3_ESaIS4_EET_"(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr %144)
          to label %145 unwind label %152

145:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %146

146:                                              ; preds = %201, %145
  %147 = load i32, ptr %22, align 4, !tbaa !5
  %148 = call noundef i64 @_ZNKSt6vectorISt4pairI2ptS1_ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %149 = trunc i64 %148 to i32
  %150 = icmp slt i32 %147, %149
  br i1 %150, label %156, label %151

151:                                              ; preds = %146
  store i32 12, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %204

152:                                              ; preds = %204, %141
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %12, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %13, align 4
  br label %242

156:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %157 = load i32, ptr %22, align 4, !tbaa !5
  %158 = add nsw i32 %157, 1
  store i32 %158, ptr %23, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %197, %156
  %160 = load i32, ptr %23, align 4, !tbaa !5
  %161 = call noundef i64 @_ZNKSt6vectorISt4pairI2ptS1_ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  %162 = trunc i64 %161 to i32
  %163 = icmp slt i32 %160, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %159
  store i32 15, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %200

165:                                              ; preds = %159
  %166 = load i32, ptr %22, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %167) #8
  %169 = getelementptr inbounds %"struct.std::pair", ptr %168, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %24, ptr align 16 %169, i64 32, i1 false), !tbaa.struct !19
  %170 = load i32, ptr %22, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %171) #8
  %173 = getelementptr inbounds %"struct.std::pair", ptr %172, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %25, ptr align 16 %173, i64 32, i1 false), !tbaa.struct !19
  %174 = load i32, ptr %23, align 4, !tbaa !5
  %175 = sext i32 %174 to i64
  %176 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %175) #8
  %177 = getelementptr inbounds %"struct.std::pair", ptr %176, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %177, i64 32, i1 false), !tbaa.struct !19
  %178 = load i32, ptr %23, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %179) #8
  %181 = getelementptr inbounds %"struct.std::pair", ptr %180, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %181, i64 32, i1 false), !tbaa.struct !19
  %182 = invoke noundef i32 @_Z16segSegIntersects2ptS_S_S_(ptr noundef byval(%struct.pt) align 16 %24, ptr noundef byval(%struct.pt) align 16 %25, ptr noundef byval(%struct.pt) align 16 %26, ptr noundef byval(%struct.pt) align 16 %27)
          to label %183 unwind label %192

183:                                              ; preds = %165
  %184 = icmp ne i32 %182, 0
  br i1 %184, label %185, label %196

185:                                              ; preds = %183
  %186 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE7emplaceIJRiS7_EEES0_ISt23_Rb_tree_const_iteratorIS1_EbEDpOT_(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 4 dereferenceable(4) %22, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %187 unwind label %192

187:                                              ; preds = %185
  %188 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 0
  %189 = extractvalue { ptr, i8 } %186, 0
  store ptr %189, ptr %188, align 8
  %190 = getelementptr inbounds { ptr, i8 }, ptr %28, i32 0, i32 1
  %191 = extractvalue { ptr, i8 } %186, 1
  store i8 %191, ptr %190, align 8
  br label %196

192:                                              ; preds = %185, %165
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %12, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %242

196:                                              ; preds = %187, %183
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %23, align 4, !tbaa !5
  %199 = add nsw i32 %198, 1
  store i32 %199, ptr %23, align 4, !tbaa !5
  br label %159, !llvm.loop !20

200:                                              ; preds = %164
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %22, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %22, align 4, !tbaa !5
  br label %146, !llvm.loop !21

204:                                              ; preds = %151
  %205 = invoke noundef zeroext i1 @_ZSteqISt4pairIiiESt4lessIS1_ESaIS1_EEbRKSt3setIT_T0_T1_ESB_(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef nonnull align 8 dereferenceable(48) %20)
          to label %206 unwind label %152

206:                                              ; preds = %204
  br i1 %205, label %207, label %208

207:                                              ; preds = %206
  br label %210

208:                                              ; preds = %206
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 35, ptr noundef @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

209:                                              ; No predecessors!
  br label %210

210:                                              ; preds = %209, %207
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  store ptr %19, ptr %29, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %211 = load ptr, ptr %29, align 8, !tbaa !17
  %212 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %211) #8
  %213 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.26", ptr %30, i32 0, i32 0
  store ptr %212, ptr %213, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %214 = load ptr, ptr %29, align 8, !tbaa !17
  %215 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %214) #8
  %216 = getelementptr inbounds %"struct.std::_Rb_tree_const_iterator.26", ptr %31, i32 0, i32 0
  store ptr %215, ptr %216, align 8
  br label %217

217:                                              ; preds = %236, %210
  %218 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  br i1 %218, label %220, label %219

219:                                              ; preds = %217
  store i32 18, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %238

220:                                              ; preds = %217
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %221 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  store ptr %221, ptr %32, align 8, !tbaa !17
  %222 = load i64, ptr %4, align 8, !tbaa !9
  %223 = mul nsw i64 31, %222
  %224 = load ptr, ptr %32, align 8, !tbaa !17
  %225 = getelementptr inbounds %"struct.std::pair.28", ptr %224, i32 0, i32 0
  %226 = load i32, ptr %225, align 4, !tbaa !22
  %227 = sext i32 %226 to i64
  %228 = add nsw i64 %223, %227
  store i64 %228, ptr %4, align 8, !tbaa !9
  %229 = load i64, ptr %4, align 8, !tbaa !9
  %230 = mul nsw i64 31, %229
  %231 = load ptr, ptr %32, align 8, !tbaa !17
  %232 = getelementptr inbounds %"struct.std::pair.28", ptr %231, i32 0, i32 1
  %233 = load i32, ptr %232, align 4, !tbaa !24
  %234 = sext i32 %233 to i64
  %235 = add nsw i64 %230, %234
  store i64 %235, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %236

236:                                              ; preds = %220
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  br label %217

238:                                              ; preds = %219
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #8
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #8
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  br label %239

239:                                              ; preds = %238
  %240 = load i32, ptr %5, align 4, !tbaa !5
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %5, align 4, !tbaa !5
  br label %40, !llvm.loop !25

242:                                              ; preds = %192, %152
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #8
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %19) #8
  br label %243

243:                                              ; preds = %242, %140
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 2504, ptr %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #8
  br label %270

244:                                              ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %245 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  %246 = getelementptr inbounds %"class.std::chrono::time_point", ptr %33, i32 0, i32 0
  %247 = getelementptr inbounds %"class.std::chrono::duration", ptr %246, i32 0, i32 0
  store i64 %245, ptr %247, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %248 = call i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %249 = getelementptr inbounds %"class.std::chrono::duration", ptr %35, i32 0, i32 0
  store i64 %248, ptr %249, align 8
  %250 = call noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000000000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %35)
  %251 = sitofp i64 %250 to double
  %252 = fdiv double %251, 1.000000e+09
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  store double %252, ptr %34, align 8, !tbaa !26
  %253 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %254 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %253, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %255, ptr noundef @_ZSt5fixedRSt8ios_base)
  %257 = call i32 @_ZSt12setprecisioni(i32 noundef 3)
  %258 = getelementptr inbounds %"struct.std::_Setprecision", ptr %36, i32 0, i32 0
  store i32 %257, ptr %258, align 4
  %259 = getelementptr inbounds %"struct.std::_Setprecision", ptr %36, i32 0, i32 0
  %260 = load i32, ptr %259, align 4
  %261 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %256, i32 %260)
  %262 = load double, ptr %34, align 8, !tbaa !26
  %263 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %261, double noundef %262)
  %264 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %263, ptr noundef @.str.4)
  %265 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %264, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %266 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
  %267 = load i64, ptr %4, align 8, !tbaa !9
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %266, i64 noundef %267)
  %269 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %268, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 2504, ptr %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #8
  ret void

270:                                              ; preds = %243
  %271 = load ptr, ptr %12, align 8
  %272 = load i32, ptr %13, align 4
  %273 = insertvalue { ptr, i32 } poison, ptr %271, 0
  %274 = insertvalue { ptr, i32 } %273, i32 %272, 1
  resume { ptr, i32 } %274
}

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504), i64 noundef) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4LineC2Eeee(ptr noundef nonnull align 16 dereferenceable(48), x86_fp80 noundef, x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4Line4projE2pt(ptr dead_on_unwind noalias writable sret(%struct.pt) align 16, ptr noundef nonnull align 16 dereferenceable(48), ptr noundef byval(%struct.pt) align 16) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EE12emplace_backIJRS1_S6_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_Z14bentleyOttmannIZ5test1vE3$_0EvRKSt6vectorISt4pairI2ptS3_ESaIS4_EET_"(ptr noundef nonnull align 8 dereferenceable(24), ptr) #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqISt4pairIiiESt4lessIS1_ESaIS1_EEbRKSt3setIT_T0_T1_ESB_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #5

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(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 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

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

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

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

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

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

; 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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) #7

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

; 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

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


; 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_ostream" = type { ptr, %"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 }
%struct.pt = type { x86_fp80, x86_fp80 }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.std::mersenne_twister_engine" = type { [312 x i64], i64 }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<pt, pt>, std::allocator<std::pair<pt, pt>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.Line = type { %struct.pt, x86_fp80 }
%"class.std::set.17" = type { %"class.std::_Rb_tree.18" }
%"class.std::_Rb_tree.18" = type { %"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::pair<int, int>, std::pair<int, int>, std::_Identity<std::pair<int, int>>, std::less<std::pair<int, int>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"struct.std::_Rb_tree_const_iterator.26" = type { ptr }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [107 x i8], align 1
@__PRETTY_FUNCTION__._Z5test1v = external hidden unnamed_addr constant [13 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.2 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: mustprogress 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 noundef i32 @_Z16segSegIntersects2ptS_S_S_(ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16, ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5test1v() local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::chrono::time_point", align 8
  %2 = alloca %"class.std::mersenne_twister_engine", align 8
  %3 = alloca %"class.std::vector.2", align 8
  %4 = alloca %struct.Line, align 16
  %5 = alloca %struct.pt, align 16
  %6 = alloca %struct.pt, align 16
  %7 = alloca %struct.pt, align 16
  %8 = alloca %struct.pt, align 16
  %9 = alloca %"class.std::set.17", align 8
  %10 = alloca %"class.std::set.17", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %struct.pt, align 16
  %14 = alloca %struct.pt, align 16
  %15 = alloca %struct.pt, align 16
  %16 = alloca %"struct.std::_Rb_tree_const_iterator.26", align 8
  %17 = alloca %"struct.std::_Rb_tree_const_iterator.26", align 8
  %18 = alloca %"class.std::chrono::time_point", align 8
  %19 = alloca %"class.std::chrono::duration", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  %20 = tail call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  store i64 %20, ptr %1, align 8
  call void @llvm.lifetime.start.p0(i64 2504, ptr nonnull %2) #8
  call void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504) %2, i64 noundef 0)
  br label %39

21:                                               ; preds = %._crit_edge60
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #8
  %22 = call i64 @_ZNSt6chrono3_V212system_clock3nowEv() #8
  store i64 %22, ptr %18, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %19) #8
  %23 = call i64 @_ZNSt6chronomiINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEES6_EENSt11common_typeIJT0_T1_EE4typeERKNS_10time_pointIT_S8_EERKNSC_ISD_S9_EE(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %1)
  store i64 %23, ptr %19, align 8
  %24 = call noundef i64 @_ZNKSt6chrono8durationIlSt5ratioILl1ELl1000000000EEE5countEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %25 = sitofp i64 %24 to double
  %26 = fdiv double %25, 1.000000e+09
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %19) #8
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
  %31 = call i32 @_ZSt12setprecisioni(i32 noundef 3)
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %30, i32 %31)
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %32, double noundef %26)
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef nonnull @.str.4)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.5)
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %36, i64 noundef %.1.lcssa)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  ret void

39:                                               ; preds = %0, %._crit_edge60
  %.062 = phi i64 [ 0, %0 ], [ %.1.lcssa, %._crit_edge60 ]
  %.02161 = phi i32 [ 0, %0 ], [ %151, %._crit_edge60 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  br label %.preheader38

.preheader38:                                     ; preds = %39, %103
  %.02251 = phi i32 [ 0, %39 ], [ %104, %103 ]
  br label %41

40:                                               ; preds = %103
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #8
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %10) #8
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  invoke void @"_Z14bentleyOttmannIZ5test1vE3$_0EvRKSt6vectorISt4pairI2ptS3_ESaIS4_EET_"(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr nonnull %9)
          to label %106 unwind label %111

41:                                               ; preds = %.preheader38, %50
  %42 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %43 unwind label %96

43:                                               ; preds = %41
  %44 = urem i64 %42, 21
  %45 = trunc nuw nsw i64 %44 to i32
  %46 = add nsw i32 %45, -10
  %47 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %48 unwind label %96

48:                                               ; preds = %43
  %49 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %50 unwind label %96

50:                                               ; preds = %48
  %51 = urem i64 %47, 21
  %52 = trunc nuw nsw i64 %51 to i32
  %53 = add nsw i32 %52, -10
  %54 = icmp eq i32 %46, 0
  %55 = icmp eq i32 %53, 0
  %56 = select i1 %54, i1 %55, i1 false
  br i1 %56, label %41, label %57, !llvm.loop !5

57:                                               ; preds = %50
  %58 = sitofp i32 %46 to x86_fp80
  %59 = sitofp i32 %53 to x86_fp80
  %60 = urem i64 %49, 401
  %61 = trunc nuw nsw i64 %60 to i32
  %62 = add nsw i32 %61, -201
  %63 = sitofp i32 %62 to x86_fp80
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #8
  invoke void @_ZN4LineC2Eeee(ptr noundef nonnull align 16 dereferenceable(48) %4, x86_fp80 noundef %58, x86_fp80 noundef %59, x86_fp80 noundef %63)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %57, %95
  %64 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %65 unwind label %.loopexit

65:                                               ; preds = %.preheader
  %66 = and i64 %64, 1
  %.not32 = icmp eq i64 %66, 0
  br i1 %.not32, label %103, label %67

67:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  %68 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %69 unwind label %98

69:                                               ; preds = %67
  %70 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %71 unwind label %98

71:                                               ; preds = %69
  %72 = urem i64 %68, 21
  %73 = trunc nuw nsw i64 %72 to i32
  %74 = add nsw i32 %73, -10
  %75 = sitofp i32 %74 to x86_fp80
  %76 = urem i64 %70, 21
  %77 = trunc nuw nsw i64 %76 to i32
  %78 = add nsw i32 %77, -10
  %79 = sitofp i32 %78 to x86_fp80
  call void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %6, x86_fp80 noundef %75, x86_fp80 noundef %79)
  invoke void @_ZNK4Line4projE2pt(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %5, ptr noundef nonnull align 16 dereferenceable(48) %4, ptr noundef nonnull byval(%struct.pt) align 16 %6)
          to label %80 unwind label %98

80:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  %81 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %82 unwind label %100

82:                                               ; preds = %80
  %83 = invoke noundef i64 @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEclEv(ptr noundef nonnull align 8 dereferenceable(2504) %2)
          to label %84 unwind label %100

84:                                               ; preds = %82
  %85 = urem i64 %81, 21
  %86 = trunc nuw nsw i64 %85 to i32
  %87 = add nsw i32 %86, -10
  %88 = sitofp i32 %87 to x86_fp80
  %89 = urem i64 %83, 21
  %90 = trunc nuw nsw i64 %89 to i32
  %91 = add nsw i32 %90, -10
  %92 = sitofp i32 %91 to x86_fp80
  call void @_ZN2ptC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %8, x86_fp80 noundef %88, x86_fp80 noundef %92)
  invoke void @_ZNK4Line4projE2pt(ptr dead_on_unwind nonnull writable sret(%struct.pt) align 16 %7, ptr noundef nonnull align 16 dereferenceable(48) %4, ptr noundef nonnull byval(%struct.pt) align 16 %8)
          to label %93 unwind label %100

93:                                               ; preds = %84
  %94 = invoke noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EE12emplace_backIJRS1_S6_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 16 dereferenceable(32) %7)
          to label %95 unwind label %100

95:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  br label %.preheader, !llvm.loop !7

96:                                               ; preds = %48, %43, %41
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %165

.loopexit:                                        ; preds = %.preheader
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %105

.loopexit.split-lp:                               ; preds = %57
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %105

98:                                               ; preds = %71, %69, %67
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %102

100:                                              ; preds = %93, %84, %82, %80
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  br label %102

102:                                              ; preds = %100, %98
  %.pn33 = phi { ptr, i32 } [ %101, %100 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  br label %105

103:                                              ; preds = %65
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #8
  %104 = add nuw nsw i32 %.02251, 1
  %exitcond.not = icmp eq i32 %104, 10
  br i1 %exitcond.not, label %40, label %.preheader38, !llvm.loop !8

105:                                              ; preds = %.loopexit, %.loopexit.split-lp, %102
  %.pn33.pn = phi { ptr, i32 } [ %.pn33, %102 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #8
  br label %165

106:                                              ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  store i32 0, ptr %11, align 4, !tbaa !9
  %107 = call noundef i64 @_ZNKSt6vectorISt4pairI2ptS1_ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %108 = trunc i64 %107 to i32
  %109 = icmp sgt i32 %108, 0
  br i1 %109, label %.lr.ph55, label %._crit_edge56

._crit_edge56:                                    ; preds = %._crit_edge, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  %110 = invoke noundef zeroext i1 @_ZSteqISt4pairIiiESt4lessIS1_ESaIS1_EEbRKSt3setIT_T0_T1_ESB_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %145 unwind label %111

111:                                              ; preds = %._crit_edge56, %40
  %112 = landingpad { ptr, i32 }
          cleanup
  br label %164

.lr.ph55:                                         ; preds = %106, %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  %storemerge30.in52 = load i32, ptr %11, align 4, !tbaa !9
  %storemerge3053 = add nsw i32 %storemerge30.in52, 1
  store i32 %storemerge3053, ptr %12, align 4, !tbaa !9
  %113 = call noundef i64 @_ZNKSt6vectorISt4pairI2ptS1_ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %114 = trunc i64 %113 to i32
  %115 = icmp slt i32 %storemerge3053, %114
  br i1 %115, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %141, %.lr.ph55
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  %116 = load i32, ptr %11, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %11, align 4, !tbaa !9
  %118 = call noundef i64 @_ZNKSt6vectorISt4pairI2ptS1_ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %119 = trunc i64 %118 to i32
  %120 = icmp slt i32 %117, %119
  br i1 %120, label %.lr.ph55, label %._crit_edge56, !llvm.loop !13

.lr.ph:                                           ; preds = %.lr.ph55, %141
  %121 = load i32, ptr %11, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %122) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %13, ptr noundef nonnull align 16 dereferenceable(32) %123, i64 32, i1 false), !tbaa.struct !14
  %124 = load i32, ptr %11, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %125) #8
  %127 = getelementptr inbounds i8, ptr %126, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %14, ptr noundef nonnull align 16 dereferenceable(32) %127, i64 32, i1 false), !tbaa.struct !14
  %128 = load i32, ptr %12, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %129) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %15, ptr noundef nonnull align 16 dereferenceable(32) %130, i64 32, i1 false), !tbaa.struct !14
  %131 = load i32, ptr %12, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %132) #8
  %134 = getelementptr inbounds i8, ptr %133, i64 32
  %135 = invoke noundef i32 @_Z16segSegIntersects2ptS_S_S_(ptr noundef nonnull byval(%struct.pt) align 16 %13, ptr noundef nonnull byval(%struct.pt) align 16 %14, ptr noundef nonnull byval(%struct.pt) align 16 %15, ptr noundef nonnull byval(%struct.pt) align 16 %134)
          to label %136 unwind label %139

136:                                              ; preds = %.lr.ph
  %.not = icmp eq i32 %135, 0
  br i1 %.not, label %141, label %137

137:                                              ; preds = %136
  %138 = invoke { ptr, i8 } @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE7emplaceIJRiS7_EEES0_ISt23_Rb_tree_const_iteratorIS1_EbEDpOT_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
          to label %141 unwind label %139

139:                                              ; preds = %137, %.lr.ph
  %140 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  br label %164

141:                                              ; preds = %137, %136
  %storemerge30.in = load i32, ptr %12, align 4, !tbaa !9
  %storemerge30 = add nsw i32 %storemerge30.in, 1
  store i32 %storemerge30, ptr %12, align 4, !tbaa !9
  %142 = call noundef i64 @_ZNKSt6vectorISt4pairI2ptS1_ESaIS2_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %143 = trunc i64 %142 to i32
  %144 = icmp slt i32 %storemerge30, %143
  br i1 %144, label %.lr.ph, label %._crit_edge, !llvm.loop !17

145:                                              ; preds = %._crit_edge56
  br i1 %110, label %147, label %146

146:                                              ; preds = %145
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 35, ptr noundef nonnull @__PRETTY_FUNCTION__._Z5test1v) #9
  unreachable

147:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  %148 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  store ptr %148, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #8
  %149 = call ptr @_ZNKSt3setISt4pairIiiESt4lessIS1_ESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  store ptr %149, ptr %17, align 8
  %150 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  br i1 %150, label %.lr.ph59, label %._crit_edge60

._crit_edge60:                                    ; preds = %.lr.ph59, %147
  %.1.lcssa = phi i64 [ %.062, %147 ], [ %161, %.lr.ph59 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #8
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #8
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  %151 = add nuw nsw i32 %.02161, 1
  %exitcond66.not = icmp eq i32 %151, 50000
  br i1 %exitcond66.not, label %21, label %39, !llvm.loop !18

.lr.ph59:                                         ; preds = %147, %.lr.ph59
  %.157 = phi i64 [ %161, %.lr.ph59 ], [ %.062, %147 ]
  %152 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %153 = mul nsw i64 %.157, 31
  %154 = load i32, ptr %152, align 4, !tbaa !19
  %155 = sext i32 %154 to i64
  %156 = add nsw i64 %153, %155
  %157 = mul nsw i64 %156, 31
  %158 = getelementptr inbounds i8, ptr %152, i64 4
  %159 = load i32, ptr %158, align 4, !tbaa !21
  %160 = sext i32 %159 to i64
  %161 = add nsw i64 %157, %160
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt23_Rb_tree_const_iteratorISt4pairIiiEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #8
  %163 = call noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #8
  br i1 %163, label %.lr.ph59, label %._crit_edge60

164:                                              ; preds = %139, %111
  %.pn = phi { ptr, i32 } [ %140, %139 ], [ %112, %111 ]
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %10) #8
  call void @_ZNSt3setISt4pairIiiESt4lessIS1_ESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #8
  br label %165

165:                                              ; preds = %96, %105, %164
  %.pn33.pn.pn.pn = phi { ptr, i32 } [ %.pn, %164 ], [ %.pn33.pn, %105 ], [ %97, %96 ]
  call void @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn33.pn.pn.pn
}

; Function Attrs: nounwind
declare i64 @_ZNSt6chrono3_V212system_clock3nowEv() local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504), i64 noundef) unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4LineC2Eeee(ptr noundef nonnull align 16 dereferenceable(48), x86_fp80 noundef, x86_fp80 noundef, x86_fp80 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4Line4projE2pt(ptr dead_on_unwind noalias writable sret(%struct.pt) align 16, ptr noundef nonnull align 16 dereferenceable(48), ptr noundef byval(%struct.pt) align 16) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(64) ptr @_ZNSt6vectorISt4pairI2ptS1_ESaIS2_EE12emplace_backIJRS1_S6_EEERS2_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_Z14bentleyOttmannIZ5test1vE3$_0EvRKSt6vectorISt4pairI2ptS3_ESaIS4_EET_"(ptr noundef nonnull align 8 dereferenceable(24), ptr) local_unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZSteqISt4pairIiiESt4lessIS1_ESaIS1_EEbRKSt3setIT_T0_T1_ESB_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #5

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZStneRKSt23_Rb_tree_const_iteratorISt4pairIiiEES4_(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 4 dereferenceable(8) ptr @_ZNKSt23_Rb_tree_const_iteratorISt4pairIiiEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

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

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

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

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

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

; 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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8), i32) local_unnamed_addr #5

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local i32 @_ZSt12setprecisioni(i32 noundef) local_unnamed_addr #7

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

; 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

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


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