summaryrefslogtreecommitdiff
path: root/src/theory/strings/kinds
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2018-05-07 10:22:27 -0500
committerGitHub <noreply@github.com>2018-05-07 10:22:27 -0500
commitdb43ae511c2103f1e9718a8954e26cf7866d14a8 (patch)
tree3d0654dd38d404bbe31c2bd543a003b351d37336 /src/theory/strings/kinds
parent884ad1a946ad6a04664ef97121ce1cebb5513d40 (diff)
Add support for str.code (#1821)
Diffstat (limited to 'src/theory/strings/kinds')
-rw-r--r--src/theory/strings/kinds2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/theory/strings/kinds b/src/theory/strings/kinds
index 15dd5b423..34237f69e 100644
--- a/src/theory/strings/kinds
+++ b/src/theory/strings/kinds
@@ -24,6 +24,7 @@ operator STRING_PREFIX 2 "string prefixof"
operator STRING_SUFFIX 2 "string suffixof"
operator STRING_ITOS 1 "integer to string"
operator STRING_STOI 1 "string to integer (total function)"
+operator STRING_CODE 1 "string to code, returns the code of the first character of the string if it has length one, -1 otherwise"
#sort CHAR_TYPE \
# Cardinality::INTEGERS \
@@ -103,6 +104,7 @@ typerule STRING_PREFIX ::CVC4::theory::strings::StringPrefixOfTypeRule
typerule STRING_SUFFIX ::CVC4::theory::strings::StringSuffixOfTypeRule
typerule STRING_ITOS ::CVC4::theory::strings::StringIntToStrTypeRule
typerule STRING_STOI ::CVC4::theory::strings::StringStrToIntTypeRule
+typerule STRING_CODE ::CVC4::theory::strings::StringStrToIntTypeRule
typerule STRING_IN_REGEXP ::CVC4::theory::strings::StringInRegExpTypeRule
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback