Generalize front-end checks to check for shadowed variables (#7634)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Thu, 11 Nov 2021 21:39:37 +0000 (15:39 -0600)
committerGitHub <noreply@github.com>
Thu, 11 Nov 2021 21:39:37 +0000 (21:39 +0000)
commit7867526e7070de52db36b1a2988d31ebadecf8b0
tree82a5915695c85ca86c85d8c1d9f5f173e173317b
parent698ac133984800d12f072f6cdcab3196c3656e6e
Generalize front-end checks to check for shadowed variables (#7634)

When using the API, we currently check for free variables in assertions and in terms passed to get-value.

We also require checking for variable shadowing.

This generalizes the utility method so that both free variables and shadowed variables are checked and reported to the user.
src/api/cpp/cvc5.cpp
src/expr/node_algorithm.cpp
src/expr/node_algorithm.h
src/smt/assertions.cpp