mirror of
https://github.com/Z3Prover/z3
synced 2025-08-11 13:40:52 +00:00
make get_vars populate all indices with sorts even if variable does not occur in rule. This makes the use of get_vars less prone to callers having to double check for null pointers
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
72fe197bda
commit
4957e71408
8 changed files with 16 additions and 21 deletions
|
@ -87,7 +87,7 @@ namespace datalog {
|
|||
else {
|
||||
if (m_next_var == 0) {
|
||||
ptr_vector<sort> vars;
|
||||
r.get_vars(vars);
|
||||
r.get_vars(m, vars);
|
||||
m_next_var = vars.size() + 1;
|
||||
}
|
||||
v = m.mk_var(m_next_var, m.get_sort(e));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue