; LLVM IR from ShahjalalShohag/code-library :: Geometry (All Pair Segment Intersection)

; 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.PT = type { x86_fp80, x86_fp80 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl" }
%"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl" = type { %"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl_data" }
%"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.seg = type <{ %struct.PT, %struct.PT, i32, [12 x i8] }>
%"struct.std::pair" = type { i32, i32 }
%"struct.std::_Setprecision" = type { i32 }

@a = external dso_local global [300009 x %struct.PT], align 16
@d = external dso_local global [300009 x %struct.PT], align 16
@per = external dso_local global [300009 x x86_fp80], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [12 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

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

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

declare i32 @__gxx_personality_v0(...)

; 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) #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %struct.PT, align 16
  %10 = alloca %struct.PT, align 16
  %11 = alloca x86_fp80, align 16
  %12 = alloca x86_fp80, align 16
  %13 = alloca i32, align 4
  %14 = alloca x86_fp80, align 16
  %15 = alloca %"class.std::vector", align 8
  %16 = alloca i32, align 4
  %17 = alloca %struct.PT, align 16
  %18 = alloca %struct.PT, align 16
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %struct.seg, align 16
  %22 = alloca %struct.PT, align 16
  %23 = alloca %struct.PT, align 16
  %24 = alloca %"struct.std::pair", align 4
  %25 = alloca x86_fp80, align 16
  %26 = alloca %"struct.std::_Setprecision", align 4
  store i32 0, ptr %1, align 4
  %27 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %28 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %29 = getelementptr i8, ptr %28, i64 -24
  %30 = load i64, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %30
  %32 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %31, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #8
  store i32 0, ptr %3, align 4, !tbaa !8
  br label %34

34:                                               ; preds = %64, %0
  %35 = load i32, ptr %3, align 4, !tbaa !8
  %36 = load i32, ptr %2, align 4, !tbaa !8
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %39, label %38

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

39:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %43, ptr noundef nonnull align 4 dereferenceable(4) %8)
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #8
  %45 = load i32, ptr %4, align 4, !tbaa !8
  %46 = sitofp i32 %45 to x86_fp80
  %47 = load i32, ptr %5, align 4, !tbaa !8
  %48 = sitofp i32 %47 to x86_fp80
  call void @_ZN2PTC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %9, x86_fp80 noundef %46, x86_fp80 noundef %48)
  %49 = load i32, ptr %3, align 4, !tbaa !8
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [300009 x %struct.PT], ptr @a, i64 0, i64 %50
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %51, ptr align 16 %9, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #8
  %52 = load i32, ptr %6, align 4, !tbaa !8
  %53 = sitofp i32 %52 to x86_fp80
  %54 = load i32, ptr %7, align 4, !tbaa !8
  %55 = sitofp i32 %54 to x86_fp80
  call void @_ZN2PTC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %10, x86_fp80 noundef %53, x86_fp80 noundef %55)
  %56 = load i32, ptr %3, align 4, !tbaa !8
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [300009 x %struct.PT], ptr @d, i64 0, i64 %57
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %58, ptr align 16 %10, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #8
  %59 = load i32, ptr %8, align 4, !tbaa !8
  %60 = sitofp i32 %59 to x86_fp80
  %61 = load i32, ptr %3, align 4, !tbaa !8
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [300009 x x86_fp80], ptr @per, i64 0, i64 %62
  store x86_fp80 %60, ptr %63, align 16, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  br label %64

64:                                               ; preds = %39
  %65 = load i32, ptr %3, align 4, !tbaa !8
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %3, align 4, !tbaa !8
  br label %34, !llvm.loop !14

67:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #8
  store x86_fp80 0xK00000000000000000000, ptr %11, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #8
  store x86_fp80 0xK4026E8D4A51000000000, ptr %12, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !8
  br label %68

68:                                               ; preds = %132, %67
  %69 = load x86_fp80, ptr %12, align 16, !tbaa !12
  %70 = load x86_fp80, ptr %11, align 16, !tbaa !12
  %71 = fsub x86_fp80 %69, %70
  %72 = fcmp oge x86_fp80 %71, 0xK3FE7D6BF94D5E57A4000
  br i1 %72, label %73, label %134

73:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  %74 = load x86_fp80, ptr %11, align 16, !tbaa !12
  %75 = load x86_fp80, ptr %12, align 16, !tbaa !12
  %76 = fadd x86_fp80 %74, %75
  %77 = fmul x86_fp80 %76, 0xK3FFE8000000000000000
  store x86_fp80 %77, ptr %14, align 16, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  call void @_ZNSt6vectorI3segSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !8
  br label %78

78:                                               ; preds = %106, %73
  %79 = load i32, ptr %16, align 4, !tbaa !8
  %80 = load i32, ptr %2, align 4, !tbaa !8
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %118

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #8
  %84 = load i32, ptr %16, align 4, !tbaa !8
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [300009 x %struct.PT], ptr @a, i64 0, i64 %85
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #8
  %87 = load i32, ptr %16, align 4, !tbaa !8
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [300009 x %struct.PT], ptr @d, i64 0, i64 %88
  %90 = load x86_fp80, ptr %14, align 16, !tbaa !12
  %91 = load i32, ptr %16, align 4, !tbaa !8
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [300009 x x86_fp80], ptr @per, i64 0, i64 %92
  %94 = load x86_fp80, ptr %93, align 16, !tbaa !12
  %95 = fmul x86_fp80 %90, %94
  invoke void @_ZN2PT8truncateEe(ptr dead_on_unwind writable sret(%struct.PT) align 16 %18, ptr noundef nonnull align 16 dereferenceable(32) %89, x86_fp80 noundef %95)
          to label %96 unwind label %109

96:                                               ; preds = %83
  invoke void @_ZNK2PTplERKS_(ptr dead_on_unwind writable sret(%struct.PT) align 16 %17, ptr noundef nonnull align 16 dereferenceable(32) %86, ptr noundef nonnull align 16 dereferenceable(32) %18)
          to label %97 unwind label %109

97:                                               ; preds = %96
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr %21) #8
  %98 = load i32, ptr %16, align 4, !tbaa !8
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [300009 x %struct.PT], ptr @a, i64 0, i64 %99
  invoke void @_ZN2PTC2ERKS_(ptr noundef nonnull align 16 dereferenceable(32) %22, ptr noundef nonnull align 16 dereferenceable(32) %100)
          to label %101 unwind label %113

101:                                              ; preds = %97
  invoke void @_ZN2PTC2ERKS_(ptr noundef nonnull align 16 dereferenceable(32) %23, ptr noundef nonnull align 16 dereferenceable(32) %17)
          to label %102 unwind label %113

102:                                              ; preds = %101
  %103 = load i32, ptr %16, align 4, !tbaa !8
  invoke void @_ZN3segC2E2PTS0_i(ptr noundef nonnull align 16 dereferenceable(68) %21, ptr noundef %22, ptr noundef %23, i32 noundef %103)
          to label %104 unwind label %113

104:                                              ; preds = %102
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 16 dereferenceable(68) %21)
          to label %105 unwind label %113

105:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  br label %106

106:                                              ; preds = %105
  %107 = load i32, ptr %16, align 4, !tbaa !8
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %16, align 4, !tbaa !8
  br label %78, !llvm.loop !16

109:                                              ; preds = %96, %83
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %19, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #8
  br label %117

113:                                              ; preds = %104, %102, %101, %97
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %19, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 80, ptr %21) #8
  br label %117

117:                                              ; preds = %113, %109
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %133

118:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  %119 = invoke i64 @_Z16any_intersectionRKSt6vectorI3segSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %120 unwind label %126

120:                                              ; preds = %118
  store i64 %119, ptr %24, align 4
  %121 = getelementptr inbounds %"struct.std::pair", ptr %24, i32 0, i32 0
  %122 = load i32, ptr %121, align 4, !tbaa !17
  %123 = icmp ne i32 %122, -1
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br i1 %123, label %124, label %130

124:                                              ; preds = %120
  %125 = load x86_fp80, ptr %14, align 16, !tbaa !12
  store x86_fp80 %125, ptr %12, align 16, !tbaa !12
  store i32 1, ptr %13, align 4, !tbaa !8
  br label %132

126:                                              ; preds = %118
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %19, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %133

130:                                              ; preds = %120
  %131 = load x86_fp80, ptr %14, align 16, !tbaa !12
  store x86_fp80 %131, ptr %11, align 16, !tbaa !12
  br label %132

132:                                              ; preds = %130, %124
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  br label %68, !llvm.loop !19

133:                                              ; preds = %126, %117
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %154

134:                                              ; preds = %68
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #8
  %135 = load x86_fp80, ptr %11, align 16, !tbaa !12
  %136 = load x86_fp80, ptr %12, align 16, !tbaa !12
  %137 = fadd x86_fp80 %135, %136
  %138 = fmul x86_fp80 %137, 0xK3FFE8000000000000000
  store x86_fp80 %138, ptr %25, align 16, !tbaa !12
  %139 = load i32, ptr %13, align 4, !tbaa !8
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %151

141:                                              ; preds = %134
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt5fixedRSt8ios_base)
  %143 = call i32 @_ZSt12setprecisioni(i32 noundef 10)
  %144 = getelementptr inbounds %"struct.std::_Setprecision", ptr %26, i32 0, i32 0
  store i32 %143, ptr %144, align 4
  %145 = getelementptr inbounds %"struct.std::_Setprecision", ptr %26, i32 0, i32 0
  %146 = load i32, ptr %145, align 4
  %147 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %142, i32 %146)
  %148 = load x86_fp80, ptr %25, align 16, !tbaa !12
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) %147, x86_fp80 noundef %148)
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %149, i8 noundef signext 10)
  br label %153

151:                                              ; preds = %134
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  br label %153

153:                                              ; preds = %151, %141
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  ret i32 0

154:                                              ; preds = %133
  %155 = load ptr, ptr %19, align 8
  %156 = load i32, ptr %20, align 4
  %157 = insertvalue { ptr, i32 } poison, ptr %155, 0
  %158 = insertvalue { ptr, i32 } %157, i32 %156, 1
  resume { ptr, i32 } %158
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #5

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2PTplERKS_(ptr dead_on_unwind noalias writable sret(%struct.PT) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2PT8truncateEe(ptr dead_on_unwind noalias writable sret(%struct.PT) align 16, ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(68)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3segC2E2PTS0_i(ptr noundef nonnull align 16 dereferenceable(68), ptr noundef, ptr noundef, i32 noundef) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #6

; 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) #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 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)) #6

; 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 @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8), x86_fp80 noundef) #2 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) #6

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{i64 0, i64 16, !12, i64 16, i64 16, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"long double", !10, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !9, i64 0}
!18 = !{!"_ZTSSt4pairIiiE", !9, i64 0, !9, i64 4}
!19 = distinct !{!19, !15}


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

%struct.PT = type { x86_fp80, x86_fp80 }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl" }
%"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl" = type { %"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl_data" }
%"struct.std::_Vector_base<seg, std::allocator<seg>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.seg = type <{ %struct.PT, %struct.PT, i32, [12 x i8] }>

@a = external dso_local global [300009 x %struct.PT], align 16
@d = external dso_local global [300009 x %struct.PT], align 16
@per = external dso_local local_unnamed_addr global [300009 x x86_fp80], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [12 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

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

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

declare i32 @__gxx_personality_v0(...)

; 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) #3

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.PT, align 16
  %8 = alloca %struct.PT, align 16
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %struct.PT, align 16
  %11 = alloca %struct.PT, align 16
  %12 = alloca %struct.seg, align 16
  %13 = alloca %struct.PT, align 16
  %14 = alloca %struct.PT, align 16
  %15 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %16 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %17 = getelementptr i8, ptr %16, i64 -24
  %18 = load i64, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %18
  %20 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %19, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %22 = load i32, ptr %1, align 4, !tbaa !8
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph, label %.preheader.preheader

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  %29 = load i32, ptr %2, align 4, !tbaa !8
  %30 = sitofp i32 %29 to x86_fp80
  %31 = load i32, ptr %3, align 4, !tbaa !8
  %32 = sitofp i32 %31 to x86_fp80
  call void @_ZN2PTC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %7, x86_fp80 noundef %30, x86_fp80 noundef %32)
  %33 = getelementptr inbounds [300009 x %struct.PT], ptr @a, i64 0, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %33, ptr noundef nonnull align 16 dereferenceable(32) %7, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #8
  %34 = load i32, ptr %4, align 4, !tbaa !8
  %35 = sitofp i32 %34 to x86_fp80
  %36 = load i32, ptr %5, align 4, !tbaa !8
  %37 = sitofp i32 %36 to x86_fp80
  call void @_ZN2PTC2Eee(ptr noundef nonnull align 16 dereferenceable(32) %8, x86_fp80 noundef %35, x86_fp80 noundef %37)
  %38 = getelementptr inbounds [300009 x %struct.PT], ptr @d, i64 0, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %38, ptr noundef nonnull align 16 dereferenceable(32) %8, i64 32, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #8
  %39 = load i32, ptr %6, align 4, !tbaa !8
  %40 = sitofp i32 %39 to x86_fp80
  %41 = getelementptr inbounds [300009 x x86_fp80], ptr @per, i64 0, i64 %indvars.iv
  store x86_fp80 %40, ptr %41, align 16, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %42 = load i32, ptr %1, align 4, !tbaa !8
  %43 = sext i32 %42 to i64
  %44 = icmp slt i64 %indvars.iv.next, %43
  br i1 %44, label %.lr.ph, label %.preheader.preheader, !llvm.loop !14

.preheader.preheader:                             ; preds = %.lr.ph, %0
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %68
  %.02653 = phi x86_fp80 [ %..026, %68 ], [ 0xK00000000000000000000, %.preheader.preheader ]
  %.02752 = phi x86_fp80 [ %.027., %68 ], [ 0xK4026E8D4A51000000000, %.preheader.preheader ]
  %.02951 = phi i32 [ %.029., %68 ], [ 0, %.preheader.preheader ]
  %45 = fadd x86_fp80 %.02752, %.02653
  %46 = fmul x86_fp80 %45, 0xK3FFE8000000000000000
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  call void @_ZNSt6vectorI3segSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %47 = load i32, ptr %1, align 4, !tbaa !8
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %.lr.ph50, label %._crit_edge

._crit_edge:                                      ; preds = %59, %.preheader
  %49 = invoke i64 @_Z16any_intersectionRKSt6vectorI3segSaIS0_EE(ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %68 unwind label %72

.lr.ph50:                                         ; preds = %.preheader, %59
  %indvars.iv55 = phi i64 [ %indvars.iv.next56, %59 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #8
  %50 = getelementptr inbounds [300009 x %struct.PT], ptr @a, i64 0, i64 %indvars.iv55
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #8
  %51 = getelementptr inbounds [300009 x %struct.PT], ptr @d, i64 0, i64 %indvars.iv55
  %52 = getelementptr inbounds [300009 x x86_fp80], ptr @per, i64 0, i64 %indvars.iv55
  %53 = load x86_fp80, ptr %52, align 16, !tbaa !12
  %54 = fmul x86_fp80 %46, %53
  invoke void @_ZN2PT8truncateEe(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 16 %11, ptr noundef nonnull align 16 dereferenceable(32) %51, x86_fp80 noundef %54)
          to label %55 unwind label %63

55:                                               ; preds = %.lr.ph50
  invoke void @_ZNK2PTplERKS_(ptr dead_on_unwind nonnull writable sret(%struct.PT) align 16 %10, ptr noundef nonnull align 16 dereferenceable(32) %50, ptr noundef nonnull align 16 dereferenceable(32) %11)
          to label %56 unwind label %63

56:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %12) #8
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 16 dereferenceable(32) %13, ptr noundef nonnull align 16 dereferenceable(32) %50)
  call void @_ZN2PTC2ERKS_(ptr noundef nonnull align 16 dereferenceable(32) %14, ptr noundef nonnull align 16 dereferenceable(32) %10)
  %57 = trunc nuw nsw i64 %indvars.iv55 to i32
  invoke void @_ZN3segC2E2PTS0_i(ptr noundef nonnull align 16 dereferenceable(68) %12, ptr noundef nonnull %13, ptr noundef nonnull %14, i32 noundef %57)
          to label %58 unwind label %65

58:                                               ; preds = %56
  invoke void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 16 dereferenceable(68) %12)
          to label %59 unwind label %65

59:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %60 = load i32, ptr %1, align 4, !tbaa !8
  %61 = sext i32 %60 to i64
  %62 = icmp slt i64 %indvars.iv.next56, %61
  br i1 %62, label %.lr.ph50, label %._crit_edge, !llvm.loop !16

63:                                               ; preds = %55, %.lr.ph50
  %64 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  br label %67

65:                                               ; preds = %58, %56
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %12) #8
  br label %67

67:                                               ; preds = %65, %63
  %.pn = phi { ptr, i32 } [ %66, %65 ], [ %64, %63 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  br label %74

68:                                               ; preds = %._crit_edge
  %69 = and i64 %49, 4294967295
  %.not36 = icmp eq i64 %69, 4294967295
  %.029. = select i1 %.not36, i32 %.02951, i32 1
  %.027. = select i1 %.not36, x86_fp80 %.02752, x86_fp80 %46
  %..026 = select i1 %.not36, x86_fp80 %46, x86_fp80 %.02653
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  %70 = fsub x86_fp80 %.027., %..026
  %71 = fcmp ult x86_fp80 %70, 0xK3FE7D6BF94D5E57A4000
  br i1 %71, label %75, label %.preheader, !llvm.loop !17

72:                                               ; preds = %._crit_edge
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %74

74:                                               ; preds = %72, %67
  %.pn.pn = phi { ptr, i32 } [ %.pn, %67 ], [ %73, %72 ]
  call void @_ZNSt6vectorI3segSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn.pn

75:                                               ; preds = %68
  %.not = icmp eq i32 %.029., 0
  br i1 %.not, label %84, label %76

76:                                               ; preds = %75
  %77 = fadd x86_fp80 %.027., %..026
  %78 = fmul x86_fp80 %77, 0xK3FFE8000000000000000
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSt8ios_baseS0_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt5fixedRSt8ios_base)
  %80 = call i32 @_ZSt12setprecisioni(i32 noundef 10)
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St13_Setprecision(ptr noundef nonnull align 8 dereferenceable(8) %79, i32 %80)
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8) %81, x86_fp80 noundef %78)
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %82, i8 noundef signext 10)
  br label %86

84:                                               ; preds = %75
  %85 = 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)
  br label %86

86:                                               ; preds = %84, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #5

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK2PTplERKS_(ptr dead_on_unwind noalias writable sret(%struct.PT) align 16, ptr noundef nonnull align 16 dereferenceable(32), ptr noundef nonnull align 16 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2PT8truncateEe(ptr dead_on_unwind noalias writable sret(%struct.PT) align 16, ptr noundef nonnull align 16 dereferenceable(32), x86_fp80 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI3segSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(68)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3segC2E2PTS0_i(ptr noundef nonnull align 16 dereferenceable(68), ptr noundef, ptr noundef, i32 noundef) unnamed_addr #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #6

; 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 #6

; 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 #2 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)) #6

; 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 @_ZNSolsEe(ptr noundef nonnull align 8 dereferenceable(8), x86_fp80 noundef) local_unnamed_addr #2 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 #6

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

!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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{i64 0, i64 16, !12, i64 16, i64 16, !12}
!12 = !{!13, !13, i64 0}
!13 = !{!"long double", !10, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}


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