Skip to content

Commit

Permalink
Add new constant kinds to is_value
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanoKobalamyne committed Oct 6, 2023
1 parent 2038490 commit 5e08c3d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions cvc5/src/cvc5_term.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,15 @@ bool Cvc5Term::is_value() const
// checking all possible const types for future-proofing
// not all these sorts are even supported at this time
::cvc5::Kind k = term.getKind();
return ((k == ::cvc5::Kind::CONST_BOOLEAN) || (k == ::cvc5::Kind::CONST_BITVECTOR)
|| (k == ::cvc5::Kind::CONST_RATIONAL) || (k == ::cvc5::Kind::CONST_FLOATINGPOINT)
|| (k == ::cvc5::Kind::CONST_ROUNDINGMODE) || (k == ::cvc5::Kind::CONST_STRING)
return ((k == ::cvc5::Kind::CONST_BOOLEAN)
|| (k == ::cvc5::Kind::CONST_BITVECTOR)
|| (k == ::cvc5::Kind::CONST_RATIONAL)
|| (k == ::cvc5::Kind::CONST_INTEGER)
|| (k == ::cvc5::Kind::CONST_FINITE_FIELD)
|| (k == ::cvc5::Kind::CONST_FLOATINGPOINT)
|| (k == ::cvc5::Kind::CONST_ROUNDINGMODE)
|| (k == ::cvc5::Kind::CONST_STRING)
|| (k == ::cvc5::Kind::CONST_SEQUENCE)
|| (k == ::cvc5::Kind::CONST_ARRAY));
}

Expand Down

0 comments on commit 5e08c3d

Please sign in to comment.