diff options
| author | Julian Andres Klode <jak@debian.org> | 2025-12-21 21:44:46 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2026-01-05 21:20:24 +0000 |
| commit | 1700acb919ce9c495db4dce4003f73751cc9c1f2 (patch) | |
| tree | 0fc81703e12bb4ce44b6cef5a0afa571e1fe6945 /apt-pkg/solver3.h | |
| parent | 6ae4194b68f04b7724e5f9d3bd19c0b52990ae4f (diff) | |
solver3: Refactor Assume(), Enqueue() from Var to Lit
This simplifies the code _slightly_
Diffstat (limited to 'apt-pkg/solver3.h')
| -rw-r--r-- | apt-pkg/solver3.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/solver3.h b/apt-pkg/solver3.h index 97a833b5c..8310bb1c5 100644 --- a/apt-pkg/solver3.h +++ b/apt-pkg/solver3.h @@ -292,10 +292,10 @@ class Solver Solver(pkgCache &Cache, pkgDepCache::Policy &Policy, EDSP::Request::Flags requestFlags); ~Solver(); - // Assume that the variable is decided as specified. - [[nodiscard]] bool Assume(Var var, bool decision, const Clause *reason = nullptr); + // Assume a literal + [[nodiscard]] bool Assume(Lit lit, const Clause *reason = nullptr); // Enqueue a decision fact - [[nodiscard]] bool Enqueue(Var var, bool decision, const Clause *reason = nullptr); + [[nodiscard]] bool Enqueue(Lit lit, const Clause *reason = nullptr); // \brief Apply the selections from the dep cache to the solver [[nodiscard]] bool FromDepCache(pkgDepCache &depcache); |
