; LLVM IR from kylewray/nova :: src/mdp/algorithms (ssp_lao_star_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"

%"struct.nova::NovaMDP" = type { i32, i32, i32, float, i32, float, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.nova::NovaSSPLAOStarCPU" = type { ptr, i32, ptr, ptr }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4nova31ssp_lao_star_bellman_update_cpuEjjjPKiPKfS3_jPfPj(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4nova28ssp_lao_star_is_expanded_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4nova27ssp_lao_star_is_visited_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4nova30ssp_lao_star_reset_visited_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUE(ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4nova29ssp_lao_star_mark_visited_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef, ptr noundef, i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4nova24ssp_lao_star_is_goal_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef, ptr noundef, i32 noundef) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4nova27ssp_lao_star_stack_push_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjPjj(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef, i32 noundef) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN4nova23ssp_lao_star_expand_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERj(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !9
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4nova30ssp_lao_star_reset_visited_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUE(ptr noundef %15, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store ptr null, ptr %8, align 8, !tbaa !5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4nova29ssp_lao_star_stack_create_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjRPj(ptr noundef %17, ptr noundef %18, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %22, i32 0, i32 6
  %24 = load i32, ptr %23, align 8, !tbaa !11
  call void @_ZN4nova27ssp_lao_star_stack_push_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjPjj(ptr noundef %19, ptr noundef %20, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef %21, i32 noundef %24)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store ptr null, ptr %10, align 8, !tbaa !5
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4nova29ssp_lao_star_stack_create_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjRPj(ptr noundef %25, ptr noundef %26, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  br label %27

27:                                               ; preds = %94, %92, %3
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %95

30:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !9
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4nova26ssp_lao_star_stack_pop_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjPjS5_(ptr noundef %31, ptr noundef %32, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef %33, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = load i32, ptr %11, align 4, !tbaa !9
  %37 = call noundef zeroext i1 @_ZN4nova27ssp_lao_star_is_visited_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef %34, ptr noundef %35, i32 noundef %36)
  br i1 %37, label %38, label %39

38:                                               ; preds = %30
  store i32 2, ptr %12, align 4
  br label %92, !llvm.loop !14

39:                                               ; preds = %30
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = load i32, ptr %11, align 4, !tbaa !9
  call void @_ZN4nova29ssp_lao_star_mark_visited_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef %40, ptr noundef %41, i32 noundef %42)
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = load i32, ptr %11, align 4, !tbaa !9
  call void @_ZN4nova27ssp_lao_star_stack_push_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjPjj(ptr noundef %43, ptr noundef %44, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef %45, i32 noundef %46)
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = call noundef zeroext i1 @_ZN4nova24ssp_lao_star_is_goal_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef %47, ptr noundef %48, i32 noundef %49)
  br i1 %50, label %51, label %52

51:                                               ; preds = %39
  store i32 2, ptr %12, align 4
  br label %92, !llvm.loop !14

52:                                               ; preds = %39
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = call noundef zeroext i1 @_ZN4nova28ssp_lao_star_is_expanded_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef %53, ptr noundef %54, i32 noundef %55)
  br i1 %56, label %86, label %57

57:                                               ; preds = %52
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = add i32 %59, 1
  store i32 %60, ptr %58, align 4, !tbaa !9
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %61, i32 0, i32 0
  %63 = load i32, ptr %62, align 8, !tbaa !16
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %64, i32 0, i32 1
  %66 = load i32, ptr %65, align 4, !tbaa !17
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %67, i32 0, i32 2
  %69 = load i32, ptr %68, align 8, !tbaa !18
  %70 = load ptr, ptr %4, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %70, i32 0, i32 9
  %72 = load ptr, ptr %71, align 8, !tbaa !19
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %73, i32 0, i32 10
  %75 = load ptr, ptr %74, align 8, !tbaa !20
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %76, i32 0, i32 11
  %78 = load ptr, ptr %77, align 8, !tbaa !21
  %79 = load i32, ptr %11, align 4, !tbaa !9
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.nova::NovaSSPLAOStarCPU", ptr %80, i32 0, i32 2
  %82 = load ptr, ptr %81, align 8, !tbaa !22
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.nova::NovaSSPLAOStarCPU", ptr %83, i32 0, i32 3
  %85 = load ptr, ptr %84, align 8, !tbaa !24
  call void @_ZN4nova31ssp_lao_star_bellman_update_cpuEjjjPKiPKfS3_jPfPj(i32 noundef %63, i32 noundef %66, i32 noundef %69, ptr noundef %72, ptr noundef %75, ptr noundef %78, i32 noundef %79, ptr noundef %82, ptr noundef %85)
  br label %91

86:                                               ; preds = %52
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = load ptr, ptr %5, align 8, !tbaa !5
  %89 = load ptr, ptr %8, align 8, !tbaa !5
  %90 = load i32, ptr %11, align 4, !tbaa !9
  call void @_ZN4nova38ssp_lao_star_stack_push_successors_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjPjj(ptr noundef %87, ptr noundef %88, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef %89, i32 noundef %90)
  br label %91

91:                                               ; preds = %86, %57
  store i32 0, ptr %12, align 4
  br label %92

92:                                               ; preds = %91, %51, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  %93 = load i32, ptr %12, align 4
  switch i32 %93, label %137 [
    i32 0, label %94
    i32 2, label %27
  ]

94:                                               ; preds = %92
  br label %27, !llvm.loop !14

95:                                               ; preds = %27
  br label %96

96:                                               ; preds = %99, %95
  %97 = load i32, ptr %9, align 4, !tbaa !9
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %128

99:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !9
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN4nova26ssp_lao_star_stack_pop_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjPjS5_(ptr noundef %100, ptr noundef %101, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef %102, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %103, i32 0, i32 0
  %105 = load i32, ptr %104, align 8, !tbaa !16
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %106, i32 0, i32 1
  %108 = load i32, ptr %107, align 4, !tbaa !17
  %109 = load ptr, ptr %4, align 8, !tbaa !5
  %110 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %109, i32 0, i32 2
  %111 = load i32, ptr %110, align 8, !tbaa !18
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %112, i32 0, i32 9
  %114 = load ptr, ptr %113, align 8, !tbaa !19
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %115, i32 0, i32 10
  %117 = load ptr, ptr %116, align 8, !tbaa !20
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.nova::NovaMDP", ptr %118, i32 0, i32 11
  %120 = load ptr, ptr %119, align 8, !tbaa !21
  %121 = load i32, ptr %13, align 4, !tbaa !9
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %"struct.nova::NovaSSPLAOStarCPU", ptr %122, i32 0, i32 2
  %124 = load ptr, ptr %123, align 8, !tbaa !22
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  %126 = getelementptr inbounds %"struct.nova::NovaSSPLAOStarCPU", ptr %125, i32 0, i32 3
  %127 = load ptr, ptr %126, align 8, !tbaa !24
  call void @_ZN4nova31ssp_lao_star_bellman_update_cpuEjjjPKiPKfS3_jPfPj(i32 noundef %105, i32 noundef %108, i32 noundef %111, ptr noundef %114, ptr noundef %117, ptr noundef %120, i32 noundef %121, ptr noundef %124, ptr noundef %127)
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %96, !llvm.loop !25

128:                                              ; preds = %96
  %129 = load ptr, ptr %5, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.nova::NovaSSPLAOStarCPU", ptr %129, i32 0, i32 1
  %131 = load i32, ptr %130, align 8, !tbaa !26
  %132 = add i32 %131, 1
  store i32 %132, ptr %130, align 8, !tbaa !26
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4nova30ssp_lao_star_stack_destroy_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjRPj(ptr noundef %133, ptr noundef %134, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN4nova30ssp_lao_star_stack_destroy_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjRPj(ptr noundef %135, ptr noundef %136, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  unreachable

137:                                              ; preds = %92
  unreachable
}

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 24}
!12 = !{!"_ZTSN4nova7NovaMDPE", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 12, !10, i64 16, !13, i64 20, !10, 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}
!13 = !{!"float", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!12, !10, i64 0}
!17 = !{!12, !10, i64 4}
!18 = !{!12, !10, i64 8}
!19 = !{!12, !6, i64 40}
!20 = !{!12, !6, i64 48}
!21 = !{!12, !6, i64 56}
!22 = !{!23, !6, i64 16}
!23 = !{!"_ZTSN4nova17NovaSSPLAOStarCPUE", !6, i64 0, !10, i64 8, !6, i64 16, !6, i64 24}
!24 = !{!23, !6, i64 24}
!25 = distinct !{!25, !15}
!26 = !{!23, !10, i64 8}


; 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"

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4nova31ssp_lao_star_bellman_update_cpuEjjjPKiPKfS3_jPfPj(i32 noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4nova28ssp_lao_star_is_expanded_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4nova27ssp_lao_star_is_visited_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4nova30ssp_lao_star_reset_visited_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUE(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4nova29ssp_lao_star_mark_visited_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4nova24ssp_lao_star_is_goal_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: mustprogress noreturn uwtable
define dso_local noundef i32 @_ZN4nova23ssp_lao_star_expand_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERj(ptr noundef %0, ptr noundef %1, ptr nocapture noundef nonnull align 4 dereferenceable(4) %2) local_unnamed_addr #3 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 0, ptr %2, align 4, !tbaa !5
  tail call void @_ZN4nova30ssp_lao_star_reset_visited_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUE(ptr noundef %0, ptr noundef %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  store ptr null, ptr %5, align 8, !tbaa !9
  call void @_ZN4nova29ssp_lao_star_stack_create_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjRPj(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %10 = load ptr, ptr %5, align 8, !tbaa !9
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  %12 = load i32, ptr %11, align 8, !tbaa !11
  call void @_ZN4nova27ssp_lao_star_stack_push_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjPjj(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef %10, i32 noundef %12)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  store ptr null, ptr %7, align 8, !tbaa !9
  call void @_ZN4nova29ssp_lao_star_stack_create_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjRPj(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %13 = load i32, ptr %4, align 4, !tbaa !5
  %.not49 = icmp eq i32 %13, 0
  br i1 %.not49, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %14 = getelementptr inbounds i8, ptr %0, i64 4
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = getelementptr inbounds i8, ptr %0, i64 40
  %17 = getelementptr inbounds i8, ptr %0, i64 48
  %18 = getelementptr inbounds i8, ptr %0, i64 56
  %19 = getelementptr inbounds i8, ptr %1, i64 16
  %20 = getelementptr inbounds i8, ptr %1, i64 24
  br label %29

.preheader:                                       ; preds = %57, %3
  %21 = load i32, ptr %6, align 4, !tbaa !5
  %.not4850 = icmp eq i32 %21, 0
  br i1 %.not4850, label %._crit_edge, label %.lr.ph51

.lr.ph51:                                         ; preds = %.preheader
  %22 = getelementptr inbounds i8, ptr %0, i64 4
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = getelementptr inbounds i8, ptr %0, i64 40
  %25 = getelementptr inbounds i8, ptr %0, i64 48
  %26 = getelementptr inbounds i8, ptr %0, i64 56
  %27 = getelementptr inbounds i8, ptr %1, i64 16
  %28 = getelementptr inbounds i8, ptr %1, i64 24
  br label %59

29:                                               ; preds = %.lr.ph, %57
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  store i32 0, ptr %8, align 4, !tbaa !5
  %30 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN4nova26ssp_lao_star_stack_pop_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjPjS5_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef %30, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %31 = load i32, ptr %8, align 4, !tbaa !5
  %32 = call noundef zeroext i1 @_ZN4nova27ssp_lao_star_is_visited_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef %0, ptr noundef %1, i32 noundef %31)
  br i1 %32, label %57, label %33, !llvm.loop !14

33:                                               ; preds = %29
  %34 = load i32, ptr %8, align 4, !tbaa !5
  call void @_ZN4nova29ssp_lao_star_mark_visited_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef %0, ptr noundef %1, i32 noundef %34)
  %35 = load ptr, ptr %7, align 8, !tbaa !9
  %36 = load i32, ptr %8, align 4, !tbaa !5
  call void @_ZN4nova27ssp_lao_star_stack_push_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjPjj(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef %35, i32 noundef %36)
  %37 = load i32, ptr %8, align 4, !tbaa !5
  %38 = call noundef zeroext i1 @_ZN4nova24ssp_lao_star_is_goal_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef %0, ptr noundef %1, i32 noundef %37)
  br i1 %38, label %57, label %39, !llvm.loop !14

39:                                               ; preds = %33
  %40 = load i32, ptr %8, align 4, !tbaa !5
  %41 = call noundef zeroext i1 @_ZN4nova28ssp_lao_star_is_expanded_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUEj(ptr noundef %0, ptr noundef %1, i32 noundef %40)
  br i1 %41, label %54, label %42

42:                                               ; preds = %39
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = add i32 %43, 1
  store i32 %44, ptr %2, align 4, !tbaa !5
  %45 = load i32, ptr %0, align 8, !tbaa !16
  %46 = load i32, ptr %14, align 4, !tbaa !17
  %47 = load i32, ptr %15, align 8, !tbaa !18
  %48 = load ptr, ptr %16, align 8, !tbaa !19
  %49 = load ptr, ptr %17, align 8, !tbaa !20
  %50 = load ptr, ptr %18, align 8, !tbaa !21
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = load ptr, ptr %19, align 8, !tbaa !22
  %53 = load ptr, ptr %20, align 8, !tbaa !24
  call void @_ZN4nova31ssp_lao_star_bellman_update_cpuEjjjPKiPKfS3_jPfPj(i32 noundef %45, i32 noundef %46, i32 noundef %47, ptr noundef %48, ptr noundef %49, ptr noundef %50, i32 noundef %51, ptr noundef %52, ptr noundef %53)
  br label %57

54:                                               ; preds = %39
  %55 = load ptr, ptr %5, align 8, !tbaa !9
  %56 = load i32, ptr %8, align 4, !tbaa !5
  call void @_ZN4nova38ssp_lao_star_stack_push_successors_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjPjj(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef %55, i32 noundef %56)
  br label %57

57:                                               ; preds = %42, %54, %33, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %.not = icmp eq i32 %58, 0
  br i1 %.not, label %.preheader, label %29

59:                                               ; preds = %.lr.ph51, %59
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  store i32 0, ptr %9, align 4, !tbaa !5
  %60 = load ptr, ptr %7, align 8, !tbaa !9
  call void @_ZN4nova26ssp_lao_star_stack_pop_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjPjS5_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef %60, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %61 = load i32, ptr %0, align 8, !tbaa !16
  %62 = load i32, ptr %22, align 4, !tbaa !17
  %63 = load i32, ptr %23, align 8, !tbaa !18
  %64 = load ptr, ptr %24, align 8, !tbaa !19
  %65 = load ptr, ptr %25, align 8, !tbaa !20
  %66 = load ptr, ptr %26, align 8, !tbaa !21
  %67 = load i32, ptr %9, align 4, !tbaa !5
  %68 = load ptr, ptr %27, align 8, !tbaa !22
  %69 = load ptr, ptr %28, align 8, !tbaa !24
  call void @_ZN4nova31ssp_lao_star_bellman_update_cpuEjjjPKiPKfS3_jPfPj(i32 noundef %61, i32 noundef %62, i32 noundef %63, ptr noundef %64, ptr noundef %65, ptr noundef %66, i32 noundef %67, ptr noundef %68, ptr noundef %69)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  %70 = load i32, ptr %6, align 4, !tbaa !5
  %.not48 = icmp eq i32 %70, 0
  br i1 %.not48, label %._crit_edge, label %59, !llvm.loop !25

._crit_edge:                                      ; preds = %59, %.preheader
  %71 = getelementptr inbounds i8, ptr %1, i64 8
  %72 = load i32, ptr %71, align 8, !tbaa !26
  %73 = add i32 %72, 1
  store i32 %73, ptr %71, align 8, !tbaa !26
  call void @_ZN4nova30ssp_lao_star_stack_destroy_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjRPj(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @_ZN4nova30ssp_lao_star_stack_destroy_cpuEPKNS_7NovaMDPEPNS_17NovaSSPLAOStarCPUERjRPj(ptr noundef %0, ptr noundef %1, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  unreachable
}

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

!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 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !6, i64 24}
!12 = !{!"_ZTSN4nova7NovaMDPE", !6, i64 0, !6, i64 4, !6, i64 8, !13, i64 12, !6, i64 16, !13, i64 20, !6, i64 24, !6, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88}
!13 = !{!"float", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!12, !6, i64 0}
!17 = !{!12, !6, i64 4}
!18 = !{!12, !6, i64 8}
!19 = !{!12, !10, i64 40}
!20 = !{!12, !10, i64 48}
!21 = !{!12, !10, i64 56}
!22 = !{!23, !10, i64 16}
!23 = !{!"_ZTSN4nova17NovaSSPLAOStarCPUE", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 24}
!24 = !{!23, !10, i64 24}
!25 = distinct !{!25, !15}
!26 = !{!23, !6, i64 8}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass