; LLVM IR from upupming/algorithm :: AdvancedLevel_C++/1033. To Fill or Not to Fill (25)  (main)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<station, std::allocator<station>>::_Vector_impl" }
%"struct.std::_Vector_base<station, std::allocator<station>>::_Vector_impl" = type { %"struct.std::_Vector_base<station, std::allocator<station>>::_Vector_impl_data" }
%"struct.std::_Vector_base<station, std::allocator<station>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%struct.station = type { double, double }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z4cmp17stationS_(double, double, double, double) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %struct.station, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  %24 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #8
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  %27 = sext i32 %26 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #8
  call void @_ZNSaI7stationEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  invoke void @_ZNSt6vectorI7stationSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %27, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %28 unwind label %38

28:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorI7stationED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  %29 = getelementptr inbounds %struct.station, ptr %10, i32 0, i32 0
  store double 0.000000e+00, ptr %29, align 8, !tbaa !9
  %30 = getelementptr inbounds %struct.station, ptr %10, i32 0, i32 1
  %31 = load double, ptr %3, align 8, !tbaa !12
  store double %31, ptr %30, align 8, !tbaa !13
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 %10, i64 16, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %53, %28
  %34 = load i32, ptr %11, align 4, !tbaa !5
  %35 = load i32, ptr %5, align 4, !tbaa !5
  %36 = icmp sle i32 %34, %35
  br i1 %36, label %42, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %60

38:                                               ; preds = %0
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %8, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %9, align 4
  call void @_ZNSt15__new_allocatorI7stationED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #8
  br label %235

42:                                               ; preds = %33
  %43 = load i32, ptr %11, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %44) #8
  %46 = getelementptr inbounds %struct.station, ptr %45, i32 0, i32 0
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %48) #8
  %50 = getelementptr inbounds %struct.station, ptr %49, i32 0, i32 1
  %51 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %46, ptr noundef %50)
          to label %52 unwind label %56

52:                                               ; preds = %42
  br label %53

53:                                               ; preds = %52
  %54 = load i32, ptr %11, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %11, align 4, !tbaa !5
  br label %33, !llvm.loop !15

56:                                               ; preds = %42
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %8, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %234

60:                                               ; preds = %37
  %61 = call ptr @_ZNSt6vectorI7stationSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %62 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %61, ptr %62, align 8
  %63 = call ptr @_ZNSt6vectorI7stationSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  %64 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %63, ptr %64, align 8
  %65 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8
  %67 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP7stationSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %66, ptr %68, ptr noundef @_Z4cmp17stationS_)
          to label %69 unwind label %77

69:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store double 0.000000e+00, ptr %14, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  store double 0.000000e+00, ptr %15, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  store double 0.000000e+00, ptr %16, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store double 0.000000e+00, ptr %17, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  store double 0.000000e+00, ptr %18, align 8, !tbaa !12
  %70 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #8
  %71 = getelementptr inbounds %struct.station, ptr %70, i32 0, i32 1
  %72 = load double, ptr %71, align 8, !tbaa !13
  %73 = fcmp une double %72, 0.000000e+00
  br i1 %73, label %74, label %85

74:                                               ; preds = %69
  %75 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2)
          to label %76 unwind label %81

76:                                               ; preds = %74
  store i32 0, ptr %1, align 4
  store i32 1, ptr %19, align 4
  br label %231

77:                                               ; preds = %60
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %8, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %9, align 4
  br label %234

81:                                               ; preds = %227, %74
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %8, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %9, align 4
  br label %233

85:                                               ; preds = %69
  %86 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 0) #8
  %87 = getelementptr inbounds %struct.station, ptr %86, i32 0, i32 0
  %88 = load double, ptr %87, align 8, !tbaa !9
  store double %88, ptr %16, align 8, !tbaa !12
  br label %89

89:                                               ; preds = %85
  br label %90

90:                                               ; preds = %226, %89
  %91 = load double, ptr %14, align 8, !tbaa !12
  %92 = load double, ptr %3, align 8, !tbaa !12
  %93 = fcmp olt double %91, %92
  br i1 %93, label %94, label %227

94:                                               ; preds = %90
  %95 = load double, ptr %14, align 8, !tbaa !12
  %96 = load double, ptr %2, align 8, !tbaa !12
  %97 = load double, ptr %4, align 8, !tbaa !12
  %98 = call double @llvm.fmuladd.f64(double %96, double %97, double %95)
  store double %98, ptr %15, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  store double 0.000000e+00, ptr %20, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  store double 0x4197D783FC000000, ptr %21, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 1, ptr %23, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %177, %94
  %100 = load i32, ptr %23, align 4, !tbaa !5
  %101 = load i32, ptr %5, align 4, !tbaa !5
  %102 = icmp sle i32 %100, %101
  br i1 %102, label %103, label %111

103:                                              ; preds = %99
  %104 = load i32, ptr %23, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %105) #8
  %107 = getelementptr inbounds %struct.station, ptr %106, i32 0, i32 1
  %108 = load double, ptr %107, align 8, !tbaa !13
  %109 = load double, ptr %15, align 8, !tbaa !12
  %110 = fcmp ole double %108, %109
  br label %111

111:                                              ; preds = %103, %99
  %112 = phi i1 [ false, %99 ], [ %110, %103 ]
  br i1 %112, label %114, label %113

113:                                              ; preds = %111
  store i32 7, ptr %19, align 4
  br label %180

114:                                              ; preds = %111
  %115 = load i32, ptr %23, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %116) #8
  %118 = getelementptr inbounds %struct.station, ptr %117, i32 0, i32 1
  %119 = load double, ptr %118, align 8, !tbaa !13
  %120 = load double, ptr %14, align 8, !tbaa !12
  %121 = fcmp ole double %119, %120
  br i1 %121, label %122, label %123

122:                                              ; preds = %114
  br label %177

123:                                              ; preds = %114
  %124 = load i32, ptr %23, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %125) #8
  %127 = getelementptr inbounds %struct.station, ptr %126, i32 0, i32 0
  %128 = load double, ptr %127, align 8, !tbaa !9
  %129 = load double, ptr %16, align 8, !tbaa !12
  %130 = fcmp olt double %128, %129
  br i1 %130, label %131, label %157

131:                                              ; preds = %123
  %132 = load i32, ptr %23, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %133) #8
  %135 = getelementptr inbounds %struct.station, ptr %134, i32 0, i32 1
  %136 = load double, ptr %135, align 8, !tbaa !13
  %137 = load double, ptr %14, align 8, !tbaa !12
  %138 = fsub double %136, %137
  %139 = load double, ptr %18, align 8, !tbaa !12
  %140 = fsub double %138, %139
  %141 = load double, ptr %16, align 8, !tbaa !12
  %142 = fmul double %140, %141
  %143 = load double, ptr %4, align 8, !tbaa !12
  %144 = fdiv double %142, %143
  %145 = load double, ptr %17, align 8, !tbaa !12
  %146 = fadd double %145, %144
  store double %146, ptr %17, align 8, !tbaa !12
  store double 0.000000e+00, ptr %18, align 8, !tbaa !12
  %147 = load i32, ptr %23, align 4, !tbaa !5
  %148 = sext i32 %147 to i64
  %149 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %148) #8
  %150 = getelementptr inbounds %struct.station, ptr %149, i32 0, i32 0
  %151 = load double, ptr %150, align 8, !tbaa !9
  store double %151, ptr %16, align 8, !tbaa !12
  %152 = load i32, ptr %23, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %153) #8
  %155 = getelementptr inbounds %struct.station, ptr %154, i32 0, i32 1
  %156 = load double, ptr %155, align 8, !tbaa !13
  store double %156, ptr %14, align 8, !tbaa !12
  store i32 1, ptr %22, align 4, !tbaa !5
  store i32 7, ptr %19, align 4
  br label %180

157:                                              ; preds = %123
  %158 = load i32, ptr %23, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %159) #8
  %161 = getelementptr inbounds %struct.station, ptr %160, i32 0, i32 0
  %162 = load double, ptr %161, align 8, !tbaa !9
  %163 = load double, ptr %21, align 8, !tbaa !12
  %164 = fcmp olt double %162, %163
  br i1 %164, label %165, label %176

165:                                              ; preds = %157
  %166 = load i32, ptr %23, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %167) #8
  %169 = getelementptr inbounds %struct.station, ptr %168, i32 0, i32 0
  %170 = load double, ptr %169, align 8, !tbaa !9
  store double %170, ptr %21, align 8, !tbaa !12
  %171 = load i32, ptr %23, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %172) #8
  %174 = getelementptr inbounds %struct.station, ptr %173, i32 0, i32 1
  %175 = load double, ptr %174, align 8, !tbaa !13
  store double %175, ptr %20, align 8, !tbaa !12
  br label %176

176:                                              ; preds = %165, %157
  br label %177

177:                                              ; preds = %176, %122
  %178 = load i32, ptr %23, align 4, !tbaa !5
  %179 = add nsw i32 %178, 1
  store i32 %179, ptr %23, align 4, !tbaa !5
  br label %99, !llvm.loop !17

180:                                              ; preds = %131, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %181

181:                                              ; preds = %180
  %182 = load i32, ptr %22, align 4, !tbaa !5
  %183 = icmp eq i32 %182, 0
  br i1 %183, label %184, label %205

184:                                              ; preds = %181
  %185 = load double, ptr %21, align 8, !tbaa !12
  %186 = fcmp une double %185, 0x4197D783FC000000
  br i1 %186, label %187, label %205

187:                                              ; preds = %184
  %188 = load double, ptr %16, align 8, !tbaa !12
  %189 = load double, ptr %2, align 8, !tbaa !12
  %190 = load double, ptr %18, align 8, !tbaa !12
  %191 = load double, ptr %4, align 8, !tbaa !12
  %192 = fdiv double %190, %191
  %193 = fsub double %189, %192
  %194 = load double, ptr %17, align 8, !tbaa !12
  %195 = call double @llvm.fmuladd.f64(double %188, double %193, double %194)
  store double %195, ptr %17, align 8, !tbaa !12
  %196 = load double, ptr %2, align 8, !tbaa !12
  %197 = load double, ptr %4, align 8, !tbaa !12
  %198 = load double, ptr %20, align 8, !tbaa !12
  %199 = load double, ptr %14, align 8, !tbaa !12
  %200 = fsub double %198, %199
  %201 = fneg double %200
  %202 = call double @llvm.fmuladd.f64(double %196, double %197, double %201)
  store double %202, ptr %18, align 8, !tbaa !12
  %203 = load double, ptr %21, align 8, !tbaa !12
  store double %203, ptr %16, align 8, !tbaa !12
  %204 = load double, ptr %20, align 8, !tbaa !12
  store double %204, ptr %14, align 8, !tbaa !12
  br label %205

205:                                              ; preds = %187, %184, %181
  %206 = load i32, ptr %22, align 4, !tbaa !5
  %207 = icmp eq i32 %206, 0
  br i1 %207, label %208, label %223

208:                                              ; preds = %205
  %209 = load double, ptr %21, align 8, !tbaa !12
  %210 = fcmp oeq double %209, 0x4197D783FC000000
  br i1 %210, label %211, label %223

211:                                              ; preds = %208
  %212 = load double, ptr %2, align 8, !tbaa !12
  %213 = load double, ptr %4, align 8, !tbaa !12
  %214 = load double, ptr %14, align 8, !tbaa !12
  %215 = call double @llvm.fmuladd.f64(double %212, double %213, double %214)
  store double %215, ptr %14, align 8, !tbaa !12
  %216 = load double, ptr %14, align 8, !tbaa !12
  %217 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3, double noundef %216)
          to label %218 unwind label %219

218:                                              ; preds = %211
  store i32 0, ptr %1, align 4
  store i32 1, ptr %19, align 4
  br label %224

219:                                              ; preds = %211
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %8, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %233

223:                                              ; preds = %208, %205
  store i32 0, ptr %19, align 4
  br label %224

224:                                              ; preds = %223, %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  %225 = load i32, ptr %19, align 4
  switch i32 %225, label %231 [
    i32 0, label %226
  ]

226:                                              ; preds = %224
  br label %90, !llvm.loop !18

227:                                              ; preds = %90
  %228 = load double, ptr %17, align 8, !tbaa !12
  %229 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4, double noundef %228)
          to label %230 unwind label %81

230:                                              ; preds = %227
  store i32 0, ptr %1, align 4
  store i32 1, ptr %19, align 4
  br label %231

231:                                              ; preds = %230, %224, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @_ZNSt6vectorI7stationSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #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 8, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  %232 = load i32, ptr %1, align 4
  ret i32 %232

233:                                              ; preds = %219, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %234

234:                                              ; preds = %233, %77, %56
  call void @_ZNSt6vectorI7stationSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #8
  br label %235

235:                                              ; preds = %234, %38
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #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 8, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  br label %236

236:                                              ; preds = %235
  %237 = load ptr, ptr %8, align 8
  %238 = load i32, ptr %9, align 4
  %239 = insertvalue { ptr, i32 } poison, ptr %237, 0
  %240 = insertvalue { ptr, i32 } %239, i32 %238, 1
  resume { ptr, i32 } %240
}

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI7stationSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #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) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP7stationSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr, ptr, ptr noundef) #6

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

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

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI7stationED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 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 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS7station", !11, i64 0, !11, i64 8}
!11 = !{!"double", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 8}
!14 = !{i64 0, i64 8, !12, i64 8, i64 8, !12}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


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

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<station, std::allocator<station>>::_Vector_impl" }
%"struct.std::_Vector_base<station, std::allocator<station>>::_Vector_impl" = type { %"struct.std::_Vector_base<station, std::allocator<station>>::_Vector_impl_data" }
%"struct.std::_Vector_base<station, std::allocator<station>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z4cmp17stationS_(double, double, double, double) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca double, align 8
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  %8 = load i32, ptr %4, align 4, !tbaa !5
  %9 = add nsw i32 %8, 1
  %10 = sext i32 %9 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @_ZNSaI7stationEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  invoke void @_ZNSt6vectorI7stationSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %10, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %11 unwind label %17

11:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorI7stationED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  %12 = load double, ptr %2, align 8, !tbaa !9
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #7
  store double 0.000000e+00, ptr %13, align 8, !tbaa !9
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %13, i64 8
  store double %12, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !9
  %14 = load i32, ptr %4, align 4, !tbaa !5
  %.not94 = icmp slt i32 %14, 1
  br i1 %.not94, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %11
  %15 = call ptr @_ZNSt6vectorI7stationSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  %16 = call ptr @_ZNSt6vectorI7stationSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP7stationSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr %15, ptr %16, ptr noundef nonnull @_Z4cmp17stationS_)
          to label %25 unwind label %32

17:                                               ; preds = %0
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI7stationED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br label %105

.lr.ph:                                           ; preds = %11, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %11 ]
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv) #7
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv) #7
  %21 = getelementptr inbounds i8, ptr %20, i64 8
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %19, ptr noundef nonnull %21)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %.not.not = icmp slt i64 %indvars.iv, %24
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

25:                                               ; preds = %._crit_edge
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #7
  %27 = getelementptr inbounds i8, ptr %26, i64 8
  %28 = load double, ptr %27, align 8, !tbaa !13
  %29 = fcmp une double %28, 0.000000e+00
  br i1 %29, label %30, label %34

30:                                               ; preds = %25
  %31 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %104

32:                                               ; preds = %._crit_edge
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI7stationSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  br label %105

34:                                               ; preds = %25
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 0) #7
  %36 = load double, ptr %2, align 8, !tbaa !9
  %37 = fcmp ogt double %36, 0.000000e+00
  br i1 %37, label %.lr.ph111, label %._crit_edge112

.lr.ph111:                                        ; preds = %34
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = icmp slt i32 %38, 1
  br i1 %39, label %.thread85, label %.lr.ph111.split.preheader

.lr.ph111.split.preheader:                        ; preds = %.lr.ph111
  %40 = load double, ptr %35, align 8, !tbaa !15
  br label %.lr.ph111.split

.lr.ph111.split:                                  ; preds = %.lr.ph111.split.preheader, %100
  %.052109 = phi double [ %.283, %100 ], [ 0.000000e+00, %.lr.ph111.split.preheader ]
  %.054108 = phi double [ %.25682, %100 ], [ 0.000000e+00, %.lr.ph111.split.preheader ]
  %.057107 = phi double [ %.25981, %100 ], [ %40, %.lr.ph111.split.preheader ]
  %.060106 = phi double [ %.3, %100 ], [ 0.000000e+00, %.lr.ph111.split.preheader ]
  %41 = load double, ptr %1, align 8, !tbaa !9
  %42 = load double, ptr %3, align 8, !tbaa !9
  %43 = call double @llvm.fmuladd.f64(double %41, double %42, double %.060106)
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %.not7096 = icmp slt i32 %44, 1
  br i1 %.not7096, label %.thread85, label %.lr.ph101

.lr.ph101:                                        ; preds = %.lr.ph111.split, %81
  %indvars.iv117 = phi i64 [ %indvars.iv.next118, %81 ], [ 1, %.lr.ph111.split ]
  %.04898 = phi double [ %.1, %81 ], [ 0x4197D783FC000000, %.lr.ph111.split ]
  %.04997 = phi double [ %.150, %81 ], [ 0.000000e+00, %.lr.ph111.split ]
  %45 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv117) #7
  %46 = getelementptr inbounds i8, ptr %45, i64 8
  %47 = load double, ptr %46, align 8, !tbaa !13
  %48 = fcmp ugt double %47, %43
  br i1 %48, label %.critedge, label %49

49:                                               ; preds = %.lr.ph101
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv117) #7
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = load double, ptr %51, align 8, !tbaa !13
  %53 = fcmp ugt double %52, %.060106
  br i1 %53, label %54, label %81

54:                                               ; preds = %49
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv117) #7
  %56 = load double, ptr %55, align 8, !tbaa !15
  %57 = fcmp olt double %56, %.057107
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv117) #7
  br i1 %57, label %.thread, label %72

.thread:                                          ; preds = %54
  %59 = getelementptr inbounds i8, ptr %58, i64 8
  %60 = load double, ptr %59, align 8, !tbaa !13
  %61 = fsub double %60, %.060106
  %62 = fsub double %61, %.052109
  %63 = fmul double %.057107, %62
  %64 = load double, ptr %3, align 8, !tbaa !9
  %65 = fdiv double %63, %64
  %66 = fadd double %.054108, %65
  %67 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv117) #7
  %68 = load double, ptr %67, align 8, !tbaa !15
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv117) #7
  %70 = getelementptr inbounds i8, ptr %69, i64 8
  %71 = load double, ptr %70, align 8, !tbaa !13
  br label %100

72:                                               ; preds = %54
  %73 = load double, ptr %58, align 8, !tbaa !15
  %74 = fcmp olt double %73, %.04898
  br i1 %74, label %75, label %81

75:                                               ; preds = %72
  %76 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv117) #7
  %77 = load double, ptr %76, align 8, !tbaa !15
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %indvars.iv117) #7
  %79 = getelementptr inbounds i8, ptr %78, i64 8
  %80 = load double, ptr %79, align 8, !tbaa !13
  br label %81

81:                                               ; preds = %72, %75, %49
  %.150 = phi double [ %.04997, %49 ], [ %80, %75 ], [ %.04997, %72 ]
  %.1 = phi double [ %.04898, %49 ], [ %77, %75 ], [ %.04898, %72 ]
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %.not70.not = icmp slt i64 %indvars.iv117, %83
  br i1 %.not70.not, label %.lr.ph101, label %.critedge, !llvm.loop !16

.critedge:                                        ; preds = %81, %.lr.ph101
  %.049.lcssa = phi double [ %.150, %81 ], [ %.04997, %.lr.ph101 ]
  %.048.lcssa = phi double [ %.1, %81 ], [ %.04898, %.lr.ph101 ]
  %84 = fcmp une double %.048.lcssa, 0x4197D783FC000000
  br i1 %84, label %85, label %94

85:                                               ; preds = %.critedge
  %86 = load double, ptr %1, align 8, !tbaa !9
  %87 = load double, ptr %3, align 8, !tbaa !9
  %88 = fdiv double %.052109, %87
  %89 = fsub double %86, %88
  %90 = call double @llvm.fmuladd.f64(double %.057107, double %89, double %.054108)
  %91 = fsub double %.049.lcssa, %.060106
  %92 = fneg double %91
  %93 = call double @llvm.fmuladd.f64(double %86, double %87, double %92)
  br label %94

94:                                               ; preds = %85, %.critedge
  %.262 = phi double [ %.049.lcssa, %85 ], [ %.060106, %.critedge ]
  %.259 = phi double [ %.048.lcssa, %85 ], [ %.057107, %.critedge ]
  %.256 = phi double [ %90, %85 ], [ %.054108, %.critedge ]
  %.2 = phi double [ %93, %85 ], [ %.052109, %.critedge ]
  %95 = fcmp oeq double %.048.lcssa, 0x4197D783FC000000
  br i1 %95, label %.thread85, label %100

.thread85:                                        ; preds = %.lr.ph111.split, %94, %.lr.ph111
  %.us-phi = phi double [ 0.000000e+00, %.lr.ph111 ], [ %.060106, %.lr.ph111.split ], [ %.262, %94 ]
  %96 = load double, ptr %1, align 8, !tbaa !9
  %97 = load double, ptr %3, align 8, !tbaa !9
  %98 = call double @llvm.fmuladd.f64(double %96, double %97, double %.us-phi)
  %99 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, double noundef %98)
  br label %104

100:                                              ; preds = %.thread, %94
  %.283 = phi double [ %.2, %94 ], [ 0.000000e+00, %.thread ]
  %.25682 = phi double [ %.256, %94 ], [ %66, %.thread ]
  %.25981 = phi double [ %.259, %94 ], [ %68, %.thread ]
  %.3 = phi double [ %.262, %94 ], [ %71, %.thread ]
  %101 = load double, ptr %2, align 8, !tbaa !9
  %102 = fcmp olt double %.3, %101
  br i1 %102, label %.lr.ph111.split, label %._crit_edge112, !llvm.loop !17

._crit_edge112:                                   ; preds = %100, %34
  %.054.lcssa = phi double [ 0.000000e+00, %34 ], [ %.25682, %100 ]
  %103 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, double noundef %.054.lcssa)
  br label %104

104:                                              ; preds = %.thread85, %._crit_edge112, %30
  call void @_ZNSt6vectorI7stationSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  ret i32 0

105:                                              ; preds = %32, %17
  %.pn = phi { ptr, i32 } [ %33, %32 ], [ %18, %17 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI7stationSaIS0_EEC2EmRKS1_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

; 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI7stationSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIP7stationSt6vectorIS2_SaIS2_EEEEPFbS2_S2_EEvT_SA_T0_(ptr, ptr, ptr noundef) local_unnamed_addr #5

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI7stationED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #0 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 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nofree 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTS7station", !10, i64 0, !10, i64 8}
!15 = !{!14, !10, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unswitch.partial.disable"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass