Debug instantiations output (#4739)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Tue, 14 Jul 2020 06:41:24 +0000 (01:41 -0500)
committerGitHub <noreply@github.com>
Tue, 14 Jul 2020 06:41:24 +0000 (23:41 -0700)
commit1cd3c3c5dad84093aa6b2db164798c8fff473fec
tree2cb4fe22f3ca9c97cf93c77aa50c5d08b30dc7d0
parent34043bdcd93860969cfd9e87c683340175c640b9
Debug instantiations output (#4739)

This prints # instantiations per round (during solving) for each quantified formula with `--debug-inst`, giving output like this:
```
(num-instantiations myQuant1 1)
(num-instantiations myQuant2 1)
unsat
```

It also changes the default value of print-inst-full to match the behavior of unsat-cores vs unsat-cores-full (by default, nameless quantifiers are ignored).

It fixes an issue with qid, where mkVar was accidentally used instead of mkConst, leading to assertion failures in debug.  Marking major since this fixes debug regress1.
src/options/quantifiers_options.toml
src/parser/smt2/Smt2.g
src/theory/quantifiers/instantiate.cpp
src/theory/quantifiers/instantiate.h
src/theory/quantifiers_engine.cpp
test/regress/CMakeLists.txt
test/regress/regress1/quantifiers/dump-inst-i.smt2
test/regress/regress1/quantifiers/dump-inst-proof.smt2
test/regress/regress1/quantifiers/dump-inst.smt2
test/regress/regress1/quantifiers/qid-debug-inst.smt2 [new file with mode: 0644]