diff options
Diffstat (limited to 'src/expr/kind_template.h')
-rw-r--r-- | src/expr/kind_template.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/expr/kind_template.h b/src/expr/kind_template.h index fe1e31a7b..973163d62 100644 --- a/src/expr/kind_template.h +++ b/src/expr/kind_template.h @@ -127,6 +127,12 @@ ${theory_enum} THEORY_LAST }; +const TheoryId THEORY_FIRST = static_cast<TheoryId>(0); + +inline TheoryId& operator ++ (TheoryId& id) { + return id = static_cast<TheoryId>(((int)id) + 1); +} + inline std::ostream& operator<<(std::ostream& out, TheoryId theoryId) { switch(theoryId) { ${theory_descriptions} |