; LLVM IR from Aryansh-S/USACO :: USACO/2007/Dec/Old Silver (Now Gold) (buildingroads)

; 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.std::pair.0" = type { double, double }
%struct.Prim = type { %"class.std::priority_queue", [1005 x i8], [1005 x i32], [1005 x double], [1005 x %"class.std::vector"] }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"struct.std::pair" = type { i32, i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@adj = external dso_local global [1005 x [1005 x double]], align 16
@pts = external dso_local global [1005 x %"struct.std::pair.0"], align 16
@p = external dso_local global %struct.Prim, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"struct.std::pair", align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::pair.0", align 8
  %10 = alloca %"struct.std::pair.0", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %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 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %19, ptr noundef null)
  %21 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %22 = call noalias ptr @fopen(ptr noundef @.str.2, ptr noundef @.str.3)
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %29

24:                                               ; preds = %0
  %25 = load ptr, ptr @stdin, align 8, !tbaa !8
  %26 = call ptr @freopen(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %25)
  %27 = load ptr, ptr @stdout, align 8, !tbaa !8
  %28 = call ptr @freopen(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %27)
  br label %29

29:                                               ; preds = %24, %0
  %30 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %31 = getelementptr i8, ptr %30, i64 -24
  %32 = load i64, ptr %31, align 8
  %33 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %32
  %34 = call noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %33, i64 noundef 2)
  %35 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %36 = getelementptr i8, ptr %35, i64 -24
  %37 = load i64, ptr %36, align 8
  %38 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %37
  %39 = call noundef i32 @_ZNSt8ios_base4setfESt13_Ios_FmtflagsS0_(ptr noundef nonnull align 8 dereferenceable(216) %38, i32 noundef 4, i32 noundef 260)
  call void @_Z2inIiJiEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) @n, ptr noundef nonnull align 4 dereferenceable(4) @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %40 = load i32, ptr @n, align 4, !tbaa !11
  %41 = icmp sgt i32 0, %40
  %42 = zext i1 %41 to i32
  %43 = sub nsw i32 0, %42
  store i32 %43, ptr %2, align 4, !tbaa !11
  br label %44

44:                                               ; preds = %59, %29
  %45 = load i32, ptr %2, align 4, !tbaa !11
  %46 = load i32, ptr @n, align 4, !tbaa !11
  %47 = load i32, ptr @n, align 4, !tbaa !11
  %48 = icmp sgt i32 0, %47
  %49 = zext i1 %48 to i32
  %50 = sub nsw i32 %46, %49
  %51 = icmp ne i32 %45, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %66

53:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @_Z2inIiJiEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %54 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i64 %54, ptr %5, align 4
  %55 = load i32, ptr %2, align 4, !tbaa !11
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [1005 x %"struct.std::pair.0"], ptr @pts, i64 0, i64 %56
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIddEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRdOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 4 dereferenceable(8) %5)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %59

59:                                               ; preds = %53
  %60 = load i32, ptr @n, align 4, !tbaa !11
  %61 = icmp sgt i32 0, %60
  %62 = zext i1 %61 to i64
  %63 = select i1 %61, i32 -1, i32 1
  %64 = load i32, ptr %2, align 4, !tbaa !11
  %65 = add nsw i32 %64, %63
  store i32 %65, ptr %2, align 4, !tbaa !11
  br label %44, !llvm.loop !13

66:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %67 = load i32, ptr @n, align 4, !tbaa !11
  %68 = icmp sgt i32 0, %67
  %69 = zext i1 %68 to i32
  %70 = sub nsw i32 0, %69
  store i32 %70, ptr %6, align 4, !tbaa !11
  br label %71

71:                                               ; preds = %124, %66
  %72 = load i32, ptr %6, align 4, !tbaa !11
  %73 = load i32, ptr @n, align 4, !tbaa !11
  %74 = load i32, ptr @n, align 4, !tbaa !11
  %75 = icmp sgt i32 0, %74
  %76 = zext i1 %75 to i32
  %77 = sub nsw i32 %73, %76
  %78 = icmp ne i32 %72, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %71
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %131

80:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %81 = load i32, ptr @n, align 4, !tbaa !11
  %82 = icmp sgt i32 0, %81
  %83 = zext i1 %82 to i32
  %84 = sub nsw i32 0, %83
  store i32 %84, ptr %8, align 4, !tbaa !11
  br label %85

85:                                               ; preds = %116, %80
  %86 = load i32, ptr %8, align 4, !tbaa !11
  %87 = load i32, ptr @n, align 4, !tbaa !11
  %88 = load i32, ptr @n, align 4, !tbaa !11
  %89 = icmp sgt i32 0, %88
  %90 = zext i1 %89 to i32
  %91 = sub nsw i32 %87, %90
  %92 = icmp ne i32 %86, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %85
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %123

94:                                               ; preds = %85
  %95 = load i32, ptr %6, align 4, !tbaa !11
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [1005 x %"struct.std::pair.0"], ptr @pts, i64 0, i64 %96
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %9, ptr align 16 %97, i64 16, i1 false)
  %98 = load i32, ptr %8, align 4, !tbaa !11
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [1005 x %"struct.std::pair.0"], ptr @pts, i64 0, i64 %99
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 16 %100, i64 16, i1 false)
  %101 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 0
  %102 = load double, ptr %101, align 8
  %103 = getelementptr inbounds { double, double }, ptr %9, i32 0, i32 1
  %104 = load double, ptr %103, align 8
  %105 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %106 = load double, ptr %105, align 8
  %107 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %108 = load double, ptr %107, align 8
  %109 = call noundef double @_Z4distSt4pairIddES0_(double %102, double %104, double %106, double %108)
  %110 = load i32, ptr %6, align 4, !tbaa !11
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [1005 x [1005 x double]], ptr @adj, i64 0, i64 %111
  %113 = load i32, ptr %8, align 4, !tbaa !11
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [1005 x double], ptr %112, i64 0, i64 %114
  store double %109, ptr %115, align 8, !tbaa !15
  br label %116

116:                                              ; preds = %94
  %117 = load i32, ptr @n, align 4, !tbaa !11
  %118 = icmp sgt i32 0, %117
  %119 = zext i1 %118 to i64
  %120 = select i1 %118, i32 -1, i32 1
  %121 = load i32, ptr %8, align 4, !tbaa !11
  %122 = add nsw i32 %121, %120
  store i32 %122, ptr %8, align 4, !tbaa !11
  br label %85, !llvm.loop !17

123:                                              ; preds = %93
  br label %124

124:                                              ; preds = %123
  %125 = load i32, ptr @n, align 4, !tbaa !11
  %126 = icmp sgt i32 0, %125
  %127 = zext i1 %126 to i64
  %128 = select i1 %126, i32 -1, i32 1
  %129 = load i32, ptr %6, align 4, !tbaa !11
  %130 = add nsw i32 %129, %128
  store i32 %130, ptr %6, align 4, !tbaa !11
  br label %71, !llvm.loop !18

131:                                              ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %132 = load i32, ptr @m, align 4, !tbaa !11
  %133 = icmp sgt i32 0, %132
  %134 = zext i1 %133 to i32
  %135 = sub nsw i32 0, %134
  store i32 %135, ptr %11, align 4, !tbaa !11
  br label %136

136:                                              ; preds = %162, %131
  %137 = load i32, ptr %11, align 4, !tbaa !11
  %138 = load i32, ptr @m, align 4, !tbaa !11
  %139 = load i32, ptr @m, align 4, !tbaa !11
  %140 = icmp sgt i32 0, %139
  %141 = zext i1 %140 to i32
  %142 = sub nsw i32 %138, %141
  %143 = icmp ne i32 %137, %142
  br i1 %143, label %145, label %144

144:                                              ; preds = %136
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %169

145:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @_Z2inIiJiEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %146 = load i32, ptr %12, align 4, !tbaa !11
  %147 = add nsw i32 %146, -1
  store i32 %147, ptr %12, align 4, !tbaa !11
  %148 = load i32, ptr %13, align 4, !tbaa !11
  %149 = add nsw i32 %148, -1
  store i32 %149, ptr %13, align 4, !tbaa !11
  %150 = load i32, ptr %13, align 4, !tbaa !11
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [1005 x [1005 x double]], ptr @adj, i64 0, i64 %151
  %153 = load i32, ptr %12, align 4, !tbaa !11
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [1005 x double], ptr %152, i64 0, i64 %154
  store double 0.000000e+00, ptr %155, align 8, !tbaa !15
  %156 = load i32, ptr %12, align 4, !tbaa !11
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [1005 x [1005 x double]], ptr @adj, i64 0, i64 %157
  %159 = load i32, ptr %13, align 4, !tbaa !11
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [1005 x double], ptr %158, i64 0, i64 %160
  store double 0.000000e+00, ptr %161, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %162

162:                                              ; preds = %145
  %163 = load i32, ptr @m, align 4, !tbaa !11
  %164 = icmp sgt i32 0, %163
  %165 = zext i1 %164 to i64
  %166 = select i1 %164, i32 -1, i32 1
  %167 = load i32, ptr %11, align 4, !tbaa !11
  %168 = add nsw i32 %167, %166
  store i32 %168, ptr %11, align 4, !tbaa !11
  br label %136, !llvm.loop !19

169:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %170 = load i32, ptr @n, align 4, !tbaa !11
  %171 = icmp sgt i32 0, %170
  %172 = zext i1 %171 to i32
  %173 = sub nsw i32 0, %172
  store i32 %173, ptr %14, align 4, !tbaa !11
  br label %174

174:                                              ; preds = %215, %169
  %175 = load i32, ptr %14, align 4, !tbaa !11
  %176 = load i32, ptr @n, align 4, !tbaa !11
  %177 = load i32, ptr @n, align 4, !tbaa !11
  %178 = icmp sgt i32 0, %177
  %179 = zext i1 %178 to i32
  %180 = sub nsw i32 %176, %179
  %181 = icmp ne i32 %175, %180
  br i1 %181, label %183, label %182

182:                                              ; preds = %174
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %222

183:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %184 = load i32, ptr @n, align 4, !tbaa !11
  %185 = icmp sgt i32 0, %184
  %186 = zext i1 %185 to i32
  %187 = sub nsw i32 0, %186
  store i32 %187, ptr %15, align 4, !tbaa !11
  br label %188

188:                                              ; preds = %207, %183
  %189 = load i32, ptr %15, align 4, !tbaa !11
  %190 = load i32, ptr @n, align 4, !tbaa !11
  %191 = load i32, ptr @n, align 4, !tbaa !11
  %192 = icmp sgt i32 0, %191
  %193 = zext i1 %192 to i32
  %194 = sub nsw i32 %190, %193
  %195 = icmp ne i32 %189, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %188
  store i32 17, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %214

197:                                              ; preds = %188
  %198 = load i32, ptr %14, align 4, !tbaa !11
  %199 = load i32, ptr %15, align 4, !tbaa !11
  %200 = load i32, ptr %14, align 4, !tbaa !11
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [1005 x [1005 x double]], ptr @adj, i64 0, i64 %201
  %203 = load i32, ptr %15, align 4, !tbaa !11
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [1005 x double], ptr %202, i64 0, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !15
  call void @_ZN4PrimIdLi1005EE4add_Eiid(ptr noundef nonnull align 8 dereferenceable(37224) @p, i32 noundef %198, i32 noundef %199, double noundef %206)
  br label %207

207:                                              ; preds = %197
  %208 = load i32, ptr @n, align 4, !tbaa !11
  %209 = icmp sgt i32 0, %208
  %210 = zext i1 %209 to i64
  %211 = select i1 %209, i32 -1, i32 1
  %212 = load i32, ptr %15, align 4, !tbaa !11
  %213 = add nsw i32 %212, %211
  store i32 %213, ptr %15, align 4, !tbaa !11
  br label %188, !llvm.loop !20

214:                                              ; preds = %196
  br label %215

215:                                              ; preds = %214
  %216 = load i32, ptr @n, align 4, !tbaa !11
  %217 = icmp sgt i32 0, %216
  %218 = zext i1 %217 to i64
  %219 = select i1 %217, i32 -1, i32 1
  %220 = load i32, ptr %14, align 4, !tbaa !11
  %221 = add nsw i32 %220, %219
  store i32 %221, ptr %14, align 4, !tbaa !11
  br label %174, !llvm.loop !21

222:                                              ; preds = %182
  call void @_ZN4PrimIdLi1005EE3updEi(ptr noundef nonnull align 8 dereferenceable(37224) @p, i32 noundef 0)
  %223 = call noundef double @_ZN4PrimIdLi1005EE3sumEv(ptr noundef nonnull align 8 dereferenceable(37224) @p)
  call void @_Z3outIdEvT_(double noundef %223)
  ret i32 0
}

; 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 zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #2

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2inIiJiEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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

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

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

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

; 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: mustprogress uwtable
declare dso_local void @_ZN4PrimIdLi1005EE4add_Eiid(ptr noundef nonnull align 8 dereferenceable(37224), i32 noundef, i32 noundef, double noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4PrimIdLi1005EE3updEi(ptr noundef nonnull align 8 dereferenceable(37224), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3outIdEvT_(double noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4PrimIdLi1005EE3sumEv(ptr noundef nonnull align 8 dereferenceable(37224)) #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 = { "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 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !10, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}


; 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.std::pair.0" = type { double, double }
%struct.Prim = type { %"class.std::priority_queue", [1005 x i8], [1005 x i32], [1005 x double], [1005 x %"class.std::vector"] }
%"class.std::priority_queue" = type <{ %"class.std::vector", [8 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<double, int>, std::allocator<std::pair<double, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"struct.std::pair" = type { i32, i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@adj = external dso_local local_unnamed_addr global [1005 x [1005 x double]], align 16
@pts = external dso_local global [1005 x %"struct.std::pair.0"], align 16
@p = external dso_local global %struct.Prim, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z4distSt4pairIddES0_(double, double, double, double) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"struct.std::pair", align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %7 = getelementptr i8, ptr %6, i64 -24
  %8 = load i64, ptr %7, align 8
  %9 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %8
  %10 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %9, ptr noundef null)
  %11 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %12 = tail call noalias ptr @fopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3)
  %.not = icmp eq ptr %12, null
  br i1 %.not, label %18, label %13

13:                                               ; preds = %0
  %14 = load ptr, ptr @stdin, align 8, !tbaa !8
  %15 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %14)
  %16 = load ptr, ptr @stdout, align 8, !tbaa !8
  %17 = tail call ptr @freopen(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef %16)
  br label %18

18:                                               ; preds = %13, %0
  %19 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %20 = getelementptr i8, ptr %19, i64 -24
  %21 = load i64, ptr %20, align 8
  %22 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %21
  %23 = tail call noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %22, i64 noundef 2)
  %24 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %25 = getelementptr i8, ptr %24, i64 -24
  %26 = load i64, ptr %25, align 8
  %27 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %26
  %28 = tail call noundef i32 @_ZNSt8ios_base4setfESt13_Ios_FmtflagsS0_(ptr noundef nonnull align 8 dereferenceable(216) %27, i32 noundef 4, i32 noundef 260)
  tail call void @_Z2inIiJiEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) @n, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %29 = load i32, ptr @n, align 4, !tbaa !11
  %.lobit.neg = ashr i32 %29, 31
  %30 = add nuw nsw i32 %.lobit.neg, %29
  %.not2854 = icmp eq i32 %29, 0
  br i1 %.not2854, label %.preheader51, label %.lr.ph

.preheader51:                                     ; preds = %.lr.ph, %18
  %.pre-phi = phi i32 [ %30, %18 ], [ %39, %.lr.ph ]
  %.lobit.neg4461.pre-phi = phi i32 [ 0, %18 ], [ %.lobit.neg30, %.lr.ph ]
  %31 = phi i32 [ 0, %18 ], [ %36, %.lr.ph ]
  %.not3162 = icmp eq i32 %.lobit.neg4461.pre-phi, %.pre-phi
  br i1 %.not3162, label %._crit_edge65, label %.preheader50

.lr.ph:                                           ; preds = %18, %.lr.ph
  %.02555 = phi i32 [ %38, %.lr.ph ], [ %.lobit.neg, %18 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  call void @_Z2inIiJiEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %32 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  store i64 %32, ptr %3, align 8
  %33 = sext i32 %.02555 to i64
  %34 = getelementptr inbounds [1005 x %"struct.std::pair.0"], ptr @pts, i64 0, i64 %33
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt4pairIddEaSIiiEENSt9enable_ifIXsr6__and_ISt13is_assignableIRdOT_ES3_IS4_OT0_EEE5valueERS0_E4typeEOS_IS5_S8_E(ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %36 = load i32, ptr @n, align 4, !tbaa !11
  %.inv49 = icmp sgt i32 %36, -1
  %37 = select i1 %.inv49, i32 1, i32 -1
  %38 = add nsw i32 %37, %.02555
  %.lobit.neg30 = ashr i32 %36, 31
  %39 = add i32 %.lobit.neg30, %36
  %.not28 = icmp eq i32 %38, %39
  br i1 %.not28, label %.preheader51, label %.lr.ph, !llvm.loop !13

.preheader50:                                     ; preds = %.preheader51, %._crit_edge
  %40 = phi i32 [ %46, %._crit_edge ], [ %31, %.preheader51 ]
  %.lobit.neg4464 = phi i32 [ %.lobit.neg44.pre-phi, %._crit_edge ], [ %.lobit.neg4461.pre-phi, %.preheader51 ]
  %.02663 = phi i32 [ %48, %._crit_edge ], [ %.lobit.neg4461.pre-phi, %.preheader51 ]
  %.lobit.neg4556 = ashr i32 %40, 31
  %41 = add i32 %.lobit.neg4556, %40
  %.not4657 = icmp eq i32 %.lobit.neg4464, %41
  br i1 %.not4657, label %._crit_edge, label %.lr.ph59

.lr.ph59:                                         ; preds = %.preheader50
  %42 = sext i32 %.02663 to i64
  %43 = getelementptr inbounds [1005 x %"struct.std::pair.0"], ptr @pts, i64 0, i64 %42
  %.sroa.211.0..sroa_idx = getelementptr inbounds i8, ptr %43, i64 8
  br label %49

._crit_edge65:                                    ; preds = %._crit_edge, %.preheader51
  %44 = phi i32 [ %31, %.preheader51 ], [ %46, %._crit_edge ]
  %45 = load i32, ptr @m, align 4, !tbaa !11
  %.not3467 = icmp eq i32 %45, 0
  br i1 %.not3467, label %._crit_edge71, label %.lr.ph70.preheader

.lr.ph70.preheader:                               ; preds = %._crit_edge65
  %.lobit32.neg = ashr i32 %45, 31
  br label %.lr.ph70

._crit_edge:                                      ; preds = %49, %.preheader50
  %.pre-phi87 = phi i32 [ %41, %.preheader50 ], [ %57, %49 ]
  %.lobit.neg44.pre-phi = phi i32 [ %.lobit.neg4556, %.preheader50 ], [ %.lobit.neg45, %49 ]
  %46 = phi i32 [ %40, %.preheader50 ], [ %54, %49 ]
  %.inv47 = icmp sgt i32 %46, -1
  %47 = select i1 %.inv47, i32 1, i32 -1
  %48 = add nsw i32 %47, %.02663
  %.not31 = icmp eq i32 %48, %.pre-phi87
  br i1 %.not31, label %._crit_edge65, label %.preheader50, !llvm.loop !15

49:                                               ; preds = %.lr.ph59, %49
  %.02758 = phi i32 [ %.lobit.neg4464, %.lr.ph59 ], [ %56, %49 ]
  %.sroa.010.0.copyload = load double, ptr %43, align 16
  %.sroa.211.0.copyload = load double, ptr %.sroa.211.0..sroa_idx, align 8
  %50 = sext i32 %.02758 to i64
  %51 = getelementptr inbounds [1005 x %"struct.std::pair.0"], ptr @pts, i64 0, i64 %50
  %.sroa.0.0.copyload = load double, ptr %51, align 16
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %51, i64 8
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8
  %52 = call noundef double @_Z4distSt4pairIddES0_(double %.sroa.010.0.copyload, double %.sroa.211.0.copyload, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  %53 = getelementptr inbounds [1005 x [1005 x double]], ptr @adj, i64 0, i64 %42, i64 %50
  store double %52, ptr %53, align 8, !tbaa !16
  %54 = load i32, ptr @n, align 4, !tbaa !11
  %.inv48 = icmp sgt i32 %54, -1
  %55 = select i1 %.inv48, i32 1, i32 -1
  %56 = add nsw i32 %55, %.02758
  %.lobit.neg45 = ashr i32 %54, 31
  %57 = add i32 %.lobit.neg45, %54
  %.not46 = icmp eq i32 %56, %57
  br i1 %.not46, label %._crit_edge, label %49, !llvm.loop !18

._crit_edge71.loopexit:                           ; preds = %.lr.ph70
  %.pre = load i32, ptr @n, align 4, !tbaa !11
  br label %._crit_edge71

._crit_edge71:                                    ; preds = %._crit_edge71.loopexit, %._crit_edge65
  %58 = phi i32 [ %.pre, %._crit_edge71.loopexit ], [ %44, %._crit_edge65 ]
  %.not3779 = icmp eq i32 %58, 0
  br i1 %.not3779, label %._crit_edge82, label %.preheader.preheader

.preheader.preheader:                             ; preds = %._crit_edge71
  %.lobit35.neg = ashr i32 %58, 31
  br label %.preheader

.lr.ph70:                                         ; preds = %.lr.ph70.preheader, %.lr.ph70
  %.02468 = phi i32 [ %69, %.lr.ph70 ], [ %.lobit32.neg, %.lr.ph70.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  call void @_Z2inIiJiEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %59 = load i32, ptr %4, align 4, !tbaa !11
  %60 = add nsw i32 %59, -1
  %61 = load i32, ptr %5, align 4, !tbaa !11
  %62 = add nsw i32 %61, -1
  %63 = sext i32 %62 to i64
  %64 = sext i32 %60 to i64
  %65 = getelementptr inbounds [1005 x [1005 x double]], ptr @adj, i64 0, i64 %63, i64 %64
  store double 0.000000e+00, ptr %65, align 8, !tbaa !16
  %66 = getelementptr inbounds [1005 x [1005 x double]], ptr @adj, i64 0, i64 %64, i64 %63
  store double 0.000000e+00, ptr %66, align 8, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  %67 = load i32, ptr @m, align 4, !tbaa !11
  %.inv42 = icmp sgt i32 %67, -1
  %68 = select i1 %.inv42, i32 1, i32 -1
  %69 = add nsw i32 %68, %.02468
  %.lobit33.neg = ashr i32 %67, 31
  %70 = add i32 %.lobit33.neg, %67
  %.not34 = icmp eq i32 %69, %70
  br i1 %.not34, label %._crit_edge71.loopexit, label %.lr.ph70, !llvm.loop !19

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge76
  %71 = phi i32 [ %75, %._crit_edge76 ], [ %58, %.preheader.preheader ]
  %.lobit36.neg3881 = phi i32 [ %.lobit36.neg38.pre-phi, %._crit_edge76 ], [ %.lobit35.neg, %.preheader.preheader ]
  %.02380 = phi i32 [ %77, %._crit_edge76 ], [ %.lobit35.neg, %.preheader.preheader ]
  %.lobit39.neg72 = ashr i32 %71, 31
  %72 = add i32 %.lobit39.neg72, %71
  %.not4073 = icmp eq i32 %.lobit36.neg3881, %72
  br i1 %.not4073, label %._crit_edge76, label %.lr.ph75

.lr.ph75:                                         ; preds = %.preheader
  %73 = sext i32 %.02380 to i64
  br label %78

._crit_edge82:                                    ; preds = %._crit_edge76, %._crit_edge71
  call void @_ZN4PrimIdLi1005EE3updEi(ptr noundef nonnull align 8 dereferenceable(37224) @p, i32 noundef 0)
  %74 = call noundef double @_ZN4PrimIdLi1005EE3sumEv(ptr noundef nonnull align 8 dereferenceable(37224) @p)
  call void @_Z3outIdEvT_(double noundef %74)
  ret i32 0

._crit_edge76:                                    ; preds = %78, %.preheader
  %.pre-phi86 = phi i32 [ %72, %.preheader ], [ %85, %78 ]
  %.lobit36.neg38.pre-phi = phi i32 [ %.lobit39.neg72, %.preheader ], [ %.lobit39.neg, %78 ]
  %75 = phi i32 [ %71, %.preheader ], [ %82, %78 ]
  %.inv = icmp sgt i32 %75, -1
  %76 = select i1 %.inv, i32 1, i32 -1
  %77 = add nsw i32 %76, %.02380
  %.not37 = icmp eq i32 %77, %.pre-phi86
  br i1 %.not37, label %._crit_edge82, label %.preheader, !llvm.loop !20

78:                                               ; preds = %.lr.ph75, %78
  %.074 = phi i32 [ %.lobit36.neg3881, %.lr.ph75 ], [ %84, %78 ]
  %79 = sext i32 %.074 to i64
  %80 = getelementptr inbounds [1005 x [1005 x double]], ptr @adj, i64 0, i64 %73, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !16
  call void @_ZN4PrimIdLi1005EE4add_Eiid(ptr noundef nonnull align 8 dereferenceable(37224) @p, i32 noundef %.02380, i32 noundef %.074, double noundef %81)
  %82 = load i32, ptr @n, align 4, !tbaa !11
  %.inv41 = icmp sgt i32 %82, -1
  %83 = select i1 %.inv41, i32 1, i32 -1
  %84 = add nsw i32 %83, %.074
  %.lobit39.neg = ashr i32 %82, 31
  %85 = add i32 %.lobit39.neg, %82
  %.not40 = icmp eq i32 %84, %85
  br i1 %.not40, label %._crit_edge76, label %78, !llvm.loop !21
}

; 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 zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #3

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNSt8ios_base4setfESt13_Ios_FmtflagsS0_(ptr noundef nonnull align 8 dereferenceable(216), i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z2inIiJiEEvRT_DpRT0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4PrimIdLi1005EE4add_Eiid(ptr noundef nonnull align 8 dereferenceable(37224), i32 noundef, i32 noundef, double noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4PrimIdLi1005EE3updEi(ptr noundef nonnull align 8 dereferenceable(37224), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3outIdEvT_(double noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN4PrimIdLi1005EE3sumEv(ptr noundef nonnull align 8 dereferenceable(37224)) local_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 = { "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 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !10, i64 0}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}


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