Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Understanding the bmc-depth bottleneck #4658

Open
PetarMax opened this issue Oct 9, 2024 · 0 comments
Open

Understanding the bmc-depth bottleneck #4658

PetarMax opened this issue Oct 9, 2024 · 0 comments

Comments

@PetarMax
Copy link
Contributor

PetarMax commented Oct 9, 2024

In real-world proofs that use bmc-depth and are sufficiently large (1000+ nodes), there is a massive slowdown introduced by the associated computations, to the point that a Kontrol proof that passes without bmc-depth in ~1h45m does not finish after more than a day with bmc-depth activated. The manifestation of this, at least on my machine and with 6 parallel threads, is a python process that is constantly at 100% and a kore-rpc-booster process that is way below its maximal throughput. The reasons for this could be:

  • the computation of shortest_path when understanding the next steps, which needs to traverse the KCFG and does not appear to rely on dynamic programming and may be forcing thread synchronisation:
    shortest_path: list[KCFG.Node] = []
  • the computation of same_loop, which extracts and examines cells in a CTerm, which could be costly:
    if self.kcfg_explore.kcfg_semantics.same_loop(node.cterm, step.node.cterm):
@PetarMax PetarMax changed the title Understanding the bmc_depth bottleneck Understanding the bmc-depth bottleneck Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant