summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-12-29 16:47:20 +0100
committerJulian Andres Klode <jak@debian.org>2026-01-05 21:20:24 +0000
commitf02f90021c255ef3aa578e00758cbc62e7fc82dd (patch)
tree4ed410eef782a0ff023062aa6aa18b5f1a43ae46 /apt-pkg
parentf8dd5ea23c6a7fccf643329c50ae1f11f48b1a09 (diff)
solver3: Add a strange assertion
I do not know why I don't hit this
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/solver3.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/solver3.cc b/apt-pkg/solver3.cc
index b7ad45f27..9313b433d 100644
--- a/apt-pkg/solver3.cc
+++ b/apt-pkg/solver3.cc
@@ -343,6 +343,8 @@ bool Solver::Assume(Lit lit, const Clause *reason)
bool Solver::Enqueue(Lit lit, const Clause *reason)
{
+ assert(not lit.empty());
+
auto &state = (*this)[lit.var()];
auto assignment = lit.sign() ? LiftedBool::False : LiftedBool::True;