summaryrefslogtreecommitdiff
path: root/src/expr/term_context.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-09-17 21:06:44 -0500
committerGitHub <noreply@github.com>2020-09-17 21:06:44 -0500
commitcb438c1aca9e205359313f2e661fef910e1132b6 (patch)
treec13f405d9065846619fcc8e1008bfa3433542a13 /src/expr/term_context.h
parent6341581d4b6797e8a9169a2ad88638987da255a4 (diff)
(proof-new) Rewrites involving operators in term conversion proof generator (#5072)
In some cases, e.g. witness form conversion, we require traversing to operators in term conversion proofs. This updates the term conversion generator to support (term-context-sensitive) rewrites involving operators using HO_CONG. This requires updating the term context utilities with support for operators.
Diffstat (limited to 'src/expr/term_context.h')
-rw-r--r--src/expr/term_context.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/expr/term_context.h b/src/expr/term_context.h
index 87f91f2df..0c51dd493 100644
--- a/src/expr/term_context.h
+++ b/src/expr/term_context.h
@@ -48,6 +48,11 @@ class TermContext
* is the term context identifier of t.
*/
virtual uint32_t computeValue(TNode t, uint32_t tval, size_t index) const = 0;
+ /**
+ * Returns the term context identifier of the operator of t, where tval
+ * is the term context identifier of t.
+ */
+ virtual uint32_t computeValueOp(TNode t, uint32_t tval) const;
};
/**
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback