; LLVM IR from kylewray/nova :: src/pomdp/utilities (pomdp_sigma_cpu)

; 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<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { float, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.nova::NovaPOMDP" = type { i32, i32, i32, i32, i32, i32, float, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4nova31pomdp_sigma_pair_comparator_cpuERKSt4pairIfiES3_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #0

; Function Attrs: mustprogress uwtable
define dso_local i32 @pomdp_sigma_cpu(ptr noundef %0, i32 noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %2) #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::pair", align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %19 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %20 = alloca float, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = icmp eq ptr %23, null
  br i1 %24, label %53, label %25

25:                                               ; preds = %3
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %26, i32 0, i32 3
  %28 = load i32, ptr %27, align 4, !tbaa !11
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %53, label %30

30:                                               ; preds = %25
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %31, i32 0, i32 4
  %33 = load i32, ptr %32, align 8, !tbaa !14
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %53, label %35

35:                                               ; preds = %30
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %36, i32 0, i32 5
  %38 = load i32, ptr %37, align 4, !tbaa !15
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %53, label %40

40:                                               ; preds = %35
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %41, i32 0, i32 12
  %43 = load ptr, ptr %42, align 8, !tbaa !16
  %44 = icmp eq ptr %43, null
  br i1 %44, label %53, label %45

45:                                               ; preds = %40
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %46, i32 0, i32 13
  %48 = load ptr, ptr %47, align 8, !tbaa !17
  %49 = icmp eq ptr %48, null
  br i1 %49, label %53, label %50

50:                                               ; preds = %45
  %51 = load i32, ptr %6, align 4, !tbaa !9
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %56

53:                                               ; preds = %50, %45, %40, %35, %30, %25, %3
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef @.str, ptr noundef @.str.1) #8
  store i32 1, ptr %4, align 4
  br label %291

56:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %57, i32 0, i32 4
  %59 = load i32, ptr %58, align 8, !tbaa !14
  %60 = load i32, ptr %6, align 4, !tbaa !9
  %61 = mul i32 %59, %60
  %62 = zext i32 %61 to i64
  %63 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %62, i64 4)
  %64 = extractvalue { i64, i1 } %63, 1
  %65 = extractvalue { i64, i1 } %63, 0
  %66 = select i1 %64, i64 -1, i64 %65
  %67 = call noalias noundef nonnull ptr @_Znam(i64 noundef %66) #9
  store ptr %67, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %68, i32 0, i32 4
  %70 = load i32, ptr %69, align 8, !tbaa !14
  %71 = load i32, ptr %6, align 4, !tbaa !9
  %72 = mul i32 %70, %71
  %73 = zext i32 %72 to i64
  %74 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %73, i64 4)
  %75 = extractvalue { i64, i1 } %74, 1
  %76 = extractvalue { i64, i1 } %74, 0
  %77 = select i1 %75, i64 -1, i64 %76
  %78 = call noalias noundef nonnull ptr @_Znam(i64 noundef %77) #9
  store ptr %78, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %97, %56
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = load i32, ptr %6, align 4, !tbaa !9
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %82, i32 0, i32 0
  %84 = load i32, ptr %83, align 8, !tbaa !18
  %85 = mul i32 %81, %84
  %86 = icmp ult i32 %80, %85
  br i1 %86, label %88, label %87

87:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %100

88:                                               ; preds = %79
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = load i32, ptr %10, align 4, !tbaa !9
  %91 = zext i32 %90 to i64
  %92 = getelementptr inbounds i32, ptr %89, i64 %91
  store i32 -1, ptr %92, align 4, !tbaa !9
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = load i32, ptr %10, align 4, !tbaa !9
  %95 = zext i32 %94 to i64
  %96 = getelementptr inbounds float, ptr %93, i64 %95
  store float 0.000000e+00, ptr %96, align 4, !tbaa !19
  br label %97

97:                                               ; preds = %88
  %98 = load i32, ptr %10, align 4, !tbaa !9
  %99 = add i32 %98, 1
  store i32 %99, ptr %10, align 4, !tbaa !9
  br label %79, !llvm.loop !20

100:                                              ; preds = %87
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  store float 1.000000e+00, ptr %101, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %253, %100
  %103 = load i32, ptr %11, align 4, !tbaa !9
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %104, i32 0, i32 4
  %106 = load i32, ptr %105, align 8, !tbaa !14
  %107 = icmp ult i32 %103, %106
  br i1 %107, label %109, label %108

108:                                              ; preds = %102
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %257

109:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  call void @_ZNSt6vectorISt4pairIfiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %144, %109
  %111 = load i32, ptr %14, align 4, !tbaa !9
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %112, i32 0, i32 5
  %114 = load i32, ptr %113, align 4, !tbaa !15
  %115 = icmp ult i32 %111, %114
  br i1 %115, label %117, label %116

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

117:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %118, i32 0, i32 13
  %120 = load ptr, ptr %119, align 8, !tbaa !17
  %121 = load i32, ptr %11, align 4, !tbaa !9
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %122, i32 0, i32 5
  %124 = load i32, ptr %123, align 4, !tbaa !15
  %125 = mul i32 %121, %124
  %126 = load i32, ptr %14, align 4, !tbaa !9
  %127 = add i32 %125, %126
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds float, ptr %120, i64 %128
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %130, i32 0, i32 12
  %132 = load ptr, ptr %131, align 8, !tbaa !16
  %133 = load i32, ptr %11, align 4, !tbaa !9
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  %135 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %134, i32 0, i32 5
  %136 = load i32, ptr %135, align 4, !tbaa !15
  %137 = mul i32 %133, %136
  %138 = load i32, ptr %14, align 4, !tbaa !9
  %139 = add i32 %137, %138
  %140 = zext i32 %139 to i64
  %141 = getelementptr inbounds i32, ptr %132, i64 %140
  invoke void @_ZNSt4pairIfiEC2IRfRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %15, ptr noundef nonnull align 4 dereferenceable(4) %129, ptr noundef nonnull align 4 dereferenceable(4) %141)
          to label %142 unwind label %147

142:                                              ; preds = %117
  invoke void @_ZNSt6vectorISt4pairIfiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 4 dereferenceable(8) %15)
          to label %143 unwind label %147

143:                                              ; preds = %142
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %14, align 4, !tbaa !9
  %146 = add i32 %145, 1
  store i32 %146, ptr %14, align 4, !tbaa !9
  br label %110, !llvm.loop !22

147:                                              ; preds = %142, %117
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %16, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %256

151:                                              ; preds = %116
  %152 = call ptr @_ZNSt6vectorISt4pairIfiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %153 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  store ptr %152, ptr %153, align 8
  %154 = call ptr @_ZNSt6vectorISt4pairIfiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  %155 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  store ptr %154, ptr %155, align 8
  %156 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %18, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8
  %158 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %19, i32 0, i32 0
  %159 = load ptr, ptr %158, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIfiESt6vectorIS3_SaIS3_EEEEPFbRKS3_SA_EEvT_SD_T0_(ptr %157, ptr %159, ptr noundef @_ZN4nova31pomdp_sigma_pair_comparator_cpuERKSt4pairIfiES3_)
          to label %160 unwind label %166

160:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store float 0.000000e+00, ptr %20, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %161

161:                                              ; preds = %178, %160
  %162 = load i32, ptr %21, align 4, !tbaa !9
  %163 = load i32, ptr %6, align 4, !tbaa !9
  %164 = icmp ult i32 %162, %163
  br i1 %164, label %170, label %165

165:                                              ; preds = %161
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %181

166:                                              ; preds = %151
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %16, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %17, align 4
  br label %256

170:                                              ; preds = %161
  %171 = load i32, ptr %21, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIfiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %172) #8
  %174 = getelementptr inbounds %"struct.std::pair", ptr %173, i32 0, i32 0
  %175 = load float, ptr %174, align 4, !tbaa !23
  %176 = load float, ptr %20, align 4, !tbaa !19
  %177 = fadd float %176, %175
  store float %177, ptr %20, align 4, !tbaa !19
  br label %178

178:                                              ; preds = %170
  %179 = load i32, ptr %21, align 4, !tbaa !9
  %180 = add i32 %179, 1
  store i32 %180, ptr %21, align 4, !tbaa !9
  br label %161, !llvm.loop !25

181:                                              ; preds = %165
  %182 = load float, ptr %20, align 4, !tbaa !19
  %183 = load ptr, ptr %7, align 8, !tbaa !5
  %184 = load float, ptr %183, align 4, !tbaa !19
  %185 = fcmp olt float %182, %184
  br i1 %185, label %186, label %189

186:                                              ; preds = %181
  %187 = load float, ptr %20, align 4, !tbaa !19
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  store float %187, ptr %188, align 4, !tbaa !19
  br label %189

189:                                              ; preds = %186, %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %249, %189
  %191 = load i32, ptr %22, align 4, !tbaa !9
  %192 = load i32, ptr %6, align 4, !tbaa !9
  %193 = icmp ult i32 %191, %192
  br i1 %193, label %195, label %194

194:                                              ; preds = %190
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %252

195:                                              ; preds = %190
  %196 = load i32, ptr %22, align 4, !tbaa !9
  %197 = zext i32 %196 to i64
  %198 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIfiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %197) #8
  %199 = getelementptr inbounds %"struct.std::pair", ptr %198, i32 0, i32 0
  %200 = load float, ptr %199, align 4, !tbaa !23
  %201 = fcmp ogt float %200, 0.000000e+00
  br i1 %201, label %202, label %231

202:                                              ; preds = %195
  %203 = load i32, ptr %22, align 4, !tbaa !9
  %204 = zext i32 %203 to i64
  %205 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIfiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %204) #8
  %206 = getelementptr inbounds %"struct.std::pair", ptr %205, i32 0, i32 0
  %207 = load float, ptr %206, align 4, !tbaa !23
  %208 = load float, ptr %20, align 4, !tbaa !19
  %209 = fdiv float %207, %208
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = load i32, ptr %11, align 4, !tbaa !9
  %212 = load i32, ptr %6, align 4, !tbaa !9
  %213 = mul i32 %211, %212
  %214 = load i32, ptr %22, align 4, !tbaa !9
  %215 = add i32 %213, %214
  %216 = zext i32 %215 to i64
  %217 = getelementptr inbounds float, ptr %210, i64 %216
  store float %209, ptr %217, align 4, !tbaa !19
  %218 = load i32, ptr %22, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIfiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %219) #8
  %221 = getelementptr inbounds %"struct.std::pair", ptr %220, i32 0, i32 1
  %222 = load i32, ptr %221, align 4, !tbaa !26
  %223 = load ptr, ptr %8, align 8, !tbaa !5
  %224 = load i32, ptr %11, align 4, !tbaa !9
  %225 = load i32, ptr %6, align 4, !tbaa !9
  %226 = mul i32 %224, %225
  %227 = load i32, ptr %22, align 4, !tbaa !9
  %228 = add i32 %226, %227
  %229 = zext i32 %228 to i64
  %230 = getelementptr inbounds i32, ptr %223, i64 %229
  store i32 %222, ptr %230, align 4, !tbaa !9
  br label %248

231:                                              ; preds = %195
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  %233 = load i32, ptr %11, align 4, !tbaa !9
  %234 = load i32, ptr %6, align 4, !tbaa !9
  %235 = mul i32 %233, %234
  %236 = load i32, ptr %22, align 4, !tbaa !9
  %237 = add i32 %235, %236
  %238 = zext i32 %237 to i64
  %239 = getelementptr inbounds float, ptr %232, i64 %238
  store float 0.000000e+00, ptr %239, align 4, !tbaa !19
  %240 = load ptr, ptr %8, align 8, !tbaa !5
  %241 = load i32, ptr %11, align 4, !tbaa !9
  %242 = load i32, ptr %6, align 4, !tbaa !9
  %243 = mul i32 %241, %242
  %244 = load i32, ptr %22, align 4, !tbaa !9
  %245 = add i32 %243, %244
  %246 = zext i32 %245 to i64
  %247 = getelementptr inbounds i32, ptr %240, i64 %246
  store i32 -1, ptr %247, align 4, !tbaa !9
  br label %248

248:                                              ; preds = %231, %202
  br label %249

249:                                              ; preds = %248
  %250 = load i32, ptr %22, align 4, !tbaa !9
  %251 = add i32 %250, 1
  store i32 %251, ptr %22, align 4, !tbaa !9
  br label %190, !llvm.loop !27

252:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @_ZNSt6vectorISt4pairIfiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  br label %253

253:                                              ; preds = %252
  %254 = load i32, ptr %11, align 4, !tbaa !9
  %255 = add i32 %254, 1
  store i32 %255, ptr %11, align 4, !tbaa !9
  br label %102, !llvm.loop !28

256:                                              ; preds = %166, %147
  call void @_ZNSt6vectorISt4pairIfiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %293

257:                                              ; preds = %108
  %258 = load ptr, ptr %5, align 8, !tbaa !5
  %259 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %258, i32 0, i32 12
  %260 = load ptr, ptr %259, align 8, !tbaa !16
  %261 = icmp ne ptr %260, null
  br i1 %261, label %262, label %269

262:                                              ; preds = %257
  %263 = load ptr, ptr %5, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %263, i32 0, i32 12
  %265 = load ptr, ptr %264, align 8, !tbaa !16
  %266 = icmp eq ptr %265, null
  br i1 %266, label %268, label %267

267:                                              ; preds = %262
  call void @_ZdaPv(ptr noundef %265) #10
  br label %268

268:                                              ; preds = %267, %262
  br label %269

269:                                              ; preds = %268, %257
  %270 = load ptr, ptr %5, align 8, !tbaa !5
  %271 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %270, i32 0, i32 13
  %272 = load ptr, ptr %271, align 8, !tbaa !17
  %273 = icmp ne ptr %272, null
  br i1 %273, label %274, label %281

274:                                              ; preds = %269
  %275 = load ptr, ptr %5, align 8, !tbaa !5
  %276 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %275, i32 0, i32 13
  %277 = load ptr, ptr %276, align 8, !tbaa !17
  %278 = icmp eq ptr %277, null
  br i1 %278, label %280, label %279

279:                                              ; preds = %274
  call void @_ZdaPv(ptr noundef %277) #10
  br label %280

280:                                              ; preds = %279, %274
  br label %281

281:                                              ; preds = %280, %269
  %282 = load i32, ptr %6, align 4, !tbaa !9
  %283 = load ptr, ptr %5, align 8, !tbaa !5
  %284 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %283, i32 0, i32 5
  store i32 %282, ptr %284, align 4, !tbaa !15
  %285 = load ptr, ptr %8, align 8, !tbaa !5
  %286 = load ptr, ptr %5, align 8, !tbaa !5
  %287 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %286, i32 0, i32 12
  store ptr %285, ptr %287, align 8, !tbaa !16
  %288 = load ptr, ptr %9, align 8, !tbaa !5
  %289 = load ptr, ptr %5, align 8, !tbaa !5
  %290 = getelementptr inbounds %"struct.nova::NovaPOMDP", ptr %289, i32 0, i32 13
  store ptr %288, ptr %290, align 8, !tbaa !17
  store i32 0, ptr %4, align 4
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %291

291:                                              ; preds = %281, %53
  %292 = load i32, ptr %4, align 4
  ret i32 %292

293:                                              ; preds = %256
  %294 = load ptr, ptr %16, align 8
  %295 = load i32, ptr %17, align 4
  %296 = insertvalue { ptr, i32 } poison, ptr %294, 0
  %297 = insertvalue { ptr, i32 } %296, i32 %295, 1
  resume { ptr, i32 } %297
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #5

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #7

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 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 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nobuiltin allocsize(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 = { 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 = { nobuiltin 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 12}
!12 = !{!"_ZTSN4nova9NovaPOMDPE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !13, i64 24, !10, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !10, i64 16}
!15 = !{!12, !10, i64 20}
!16 = !{!12, !6, i64 64}
!17 = !{!12, !6, i64 72}
!18 = !{!12, !10, i64 0}
!19 = !{!13, !13, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!24, !13, i64 0}
!24 = !{!"_ZTSSt4pairIfiE", !13, i64 0, !10, i64 4}
!25 = distinct !{!25, !21}
!26 = !{!24, !10, i64 4}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}


; 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<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<float, int>, std::allocator<std::pair<float, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { float, i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [28 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4nova31pomdp_sigma_pair_comparator_cpuERKSt4pairIfiES3_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #0

; Function Attrs: mustprogress uwtable
define dso_local range(i32 0, 2) i32 @pomdp_sigma_cpu(ptr noundef %0, i32 noundef %1, ptr nocapture noundef nonnull align 4 dereferenceable(4) %2) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca %"struct.std::pair", align 4
  %6 = icmp eq ptr %0, null
  br i1 %6, label %28, label %7

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 12
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %28, label %11

11:                                               ; preds = %7
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  %13 = load i32, ptr %12, align 8, !tbaa !12
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %28, label %15

15:                                               ; preds = %11
  %16 = getelementptr inbounds i8, ptr %0, i64 20
  %17 = load i32, ptr %16, align 4, !tbaa !13
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %28, label %19

19:                                               ; preds = %15
  %20 = getelementptr inbounds i8, ptr %0, i64 64
  %21 = load ptr, ptr %20, align 8, !tbaa !14
  %22 = icmp eq ptr %21, null
  br i1 %22, label %28, label %23

23:                                               ; preds = %19
  %24 = getelementptr inbounds i8, ptr %0, i64 72
  %25 = load ptr, ptr %24, align 8, !tbaa !15
  %26 = icmp eq ptr %25, null
  %27 = icmp eq i32 %1, 0
  %or.cond = or i1 %27, %26
  br i1 %or.cond, label %28, label %31

28:                                               ; preds = %23, %19, %15, %11, %7, %3
  %29 = load ptr, ptr @stderr, align 8, !tbaa !16
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1) #8
  br label %99

31:                                               ; preds = %23
  %32 = mul i32 %13, %1
  %33 = zext i32 %32 to i64
  %34 = shl nuw nsw i64 %33, 2
  %35 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %34) #9
  %36 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %34) #9
  %37 = load i32, ptr %0, align 8, !tbaa !17
  %38 = mul i32 %37, %1
  %.not112 = icmp eq i32 %38, 0
  br i1 %.not112, label %.lr.ph110, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %31
  %39 = zext i32 %38 to i64
  %40 = shl nuw nsw i64 %39, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %35, i8 -1, i64 %40, i1 false), !tbaa !18
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %36, i8 0, i64 %40, i1 false), !tbaa !19
  br label %.lr.ph110

.lr.ph110:                                        ; preds = %31, %.lr.ph.preheader
  store float 1.000000e+00, ptr %2, align 4, !tbaa !19
  %wide.trip.count = zext i32 %1 to i64
  %wide.trip.count122 = zext i32 %1 to i64
  br label %41

._crit_edge111:                                   ; preds = %._crit_edge107
  %.pre = load ptr, ptr %20, align 8, !tbaa !14
  %.not = icmp eq ptr %.pre, null
  br i1 %.not, label %95, label %94

41:                                               ; preds = %.lr.ph110, %._crit_edge107
  %.087108 = phi i32 [ 0, %.lr.ph110 ], [ %68, %._crit_edge107 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #10
  call void @_ZNSt6vectorISt4pairIfiESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  %42 = load i32, ptr %16, align 4, !tbaa !13
  %.not116 = icmp eq i32 %42, 0
  br i1 %.not116, label %._crit_edge99, label %.lr.ph98

._crit_edge99:                                    ; preds = %53, %41
  %43 = call ptr @_ZNSt6vectorISt4pairIfiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  %44 = call ptr @_ZNSt6vectorISt4pairIfiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIfiESt6vectorIS3_SaIS3_EEEEPFbRKS3_SA_EEvT_SD_T0_(ptr %43, ptr %44, ptr noundef nonnull @_ZN4nova31pomdp_sigma_pair_comparator_cpuERKSt4pairIfiES3_)
          to label %.lr.ph102 unwind label %61

.lr.ph98:                                         ; preds = %41, %53
  %45 = phi i32 [ %55, %53 ], [ %42, %41 ]
  %.08696 = phi i32 [ %54, %53 ], [ 0, %41 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #10
  %46 = load ptr, ptr %24, align 8, !tbaa !15
  %47 = mul i32 %45, %.087108
  %48 = add i32 %47, %.08696
  %49 = zext i32 %48 to i64
  %50 = getelementptr inbounds float, ptr %46, i64 %49
  %51 = load ptr, ptr %20, align 8, !tbaa !14
  %52 = getelementptr inbounds i32, ptr %51, i64 %49
  call void @_ZNSt4pairIfiEC2IRfRiTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS5_S6_EEEbE4typeELb1EEEOS5_OS6_(ptr noundef nonnull align 4 dereferenceable(8) %5, ptr noundef nonnull align 4 dereferenceable(4) %50, ptr noundef nonnull align 4 dereferenceable(4) %52)
  invoke void @_ZNSt6vectorISt4pairIfiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(8) %5)
          to label %53 unwind label %57

53:                                               ; preds = %.lr.ph98
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  %54 = add nuw i32 %.08696, 1
  %55 = load i32, ptr %16, align 4, !tbaa !13
  %56 = icmp ult i32 %54, %55
  br i1 %56, label %.lr.ph98, label %._crit_edge99, !llvm.loop !20

57:                                               ; preds = %.lr.ph98
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #10
  br label %93

._crit_edge103:                                   ; preds = %.lr.ph102
  %59 = load float, ptr %2, align 4, !tbaa !19
  %60 = fcmp olt float %65, %59
  br i1 %60, label %66, label %.lr.ph106

61:                                               ; preds = %._crit_edge99
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %93

.lr.ph102:                                        ; preds = %._crit_edge99, %.lr.ph102
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph102 ], [ 0, %._crit_edge99 ]
  %.081100 = phi float [ %65, %.lr.ph102 ], [ 0.000000e+00, %._crit_edge99 ]
  %63 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIfiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #10
  %64 = load float, ptr %63, align 4, !tbaa !22
  %65 = fadd float %.081100, %64
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge103, label %.lr.ph102, !llvm.loop !24

66:                                               ; preds = %._crit_edge103
  store float %65, ptr %2, align 4, !tbaa !19
  br label %.lr.ph106

.lr.ph106:                                        ; preds = %._crit_edge103, %66
  %67 = mul i32 %.087108, %1
  br label %71

._crit_edge107:                                   ; preds = %91
  call void @_ZNSt6vectorISt4pairIfiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #10
  %68 = add nuw i32 %.087108, 1
  %69 = load i32, ptr %12, align 8, !tbaa !12
  %70 = icmp ult i32 %68, %69
  br i1 %70, label %41, label %._crit_edge111, !llvm.loop !25

71:                                               ; preds = %.lr.ph106, %91
  %indvars.iv119 = phi i64 [ 0, %.lr.ph106 ], [ %indvars.iv.next120, %91 ]
  %72 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIfiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv119) #10
  %73 = load float, ptr %72, align 4, !tbaa !22
  %74 = fcmp ogt float %73, 0.000000e+00
  br i1 %74, label %75, label %86

75:                                               ; preds = %71
  %76 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIfiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv119) #10
  %77 = load float, ptr %76, align 4, !tbaa !22
  %78 = fdiv float %77, %65
  %79 = trunc nuw i64 %indvars.iv119 to i32
  %80 = add i32 %67, %79
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds float, ptr %36, i64 %81
  store float %78, ptr %82, align 4, !tbaa !19
  %83 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIfiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv119) #10
  %84 = getelementptr inbounds i8, ptr %83, i64 4
  %85 = load i32, ptr %84, align 4, !tbaa !26
  br label %91

86:                                               ; preds = %71
  %87 = trunc nuw i64 %indvars.iv119 to i32
  %88 = add i32 %67, %87
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds float, ptr %36, i64 %89
  store float 0.000000e+00, ptr %90, align 4, !tbaa !19
  br label %91

91:                                               ; preds = %75, %86
  %.sink125 = phi i64 [ %81, %75 ], [ %89, %86 ]
  %.sink = phi i32 [ %85, %75 ], [ -1, %86 ]
  %92 = getelementptr inbounds i32, ptr %35, i64 %.sink125
  store i32 %.sink, ptr %92, align 4, !tbaa !18
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %exitcond123.not = icmp eq i64 %indvars.iv.next120, %wide.trip.count122
  br i1 %exitcond123.not, label %._crit_edge107, label %71, !llvm.loop !27

93:                                               ; preds = %61, %57
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %62, %61 ]
  call void @_ZNSt6vectorISt4pairIfiESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #10
  resume { ptr, i32 } %.pn

94:                                               ; preds = %._crit_edge111
  call void @_ZdaPv(ptr noundef nonnull %.pre) #11
  br label %95

95:                                               ; preds = %94, %._crit_edge111
  %96 = load ptr, ptr %24, align 8, !tbaa !15
  %.not93 = icmp eq ptr %96, null
  br i1 %.not93, label %98, label %97

97:                                               ; preds = %95
  call void @_ZdaPv(ptr noundef nonnull %96) #11
  br label %98

98:                                               ; preds = %97, %95
  store i32 %1, ptr %16, align 4, !tbaa !13
  store ptr %35, ptr %20, align 8, !tbaa !14
  store ptr %36, ptr %24, align 8, !tbaa !15
  br label %99

99:                                               ; preds = %98, %28
  %.082 = phi i32 [ 1, %28 ], [ 0, %98 ]
  ret i32 %.082
}

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #4

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #6

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #7

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 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 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nobuiltin allocsize(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 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { cold nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { nounwind }
attributes #11 = { builtin 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, !7, i64 12}
!6 = !{!"_ZTSN4nova9NovaPOMDPE", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 28, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !7, i64 20}
!14 = !{!6, !11, i64 64}
!15 = !{!6, !11, i64 72}
!16 = !{!11, !11, i64 0}
!17 = !{!6, !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!10, !10, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!23, !10, i64 0}
!23 = !{!"_ZTSSt4pairIfiE", !10, i64 0, !7, i64 4}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !21}
!26 = !{!23, !7, i64 4}
!27 = distinct !{!27, !21}


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