Fix mktheoryrewriter and mktheorytraits for nullaryoperator.
authorajreynol <andrew.j.reynolds@gmail.com>
Wed, 19 Apr 2017 21:29:01 +0000 (16:29 -0500)
committerajreynol <andrew.j.reynolds@gmail.com>
Wed, 19 Apr 2017 21:29:01 +0000 (16:29 -0500)
src/theory/mkrewriter
src/theory/mktheorytraits

index ba623956fb607617af152bd510e599f6e2ff6e23..ea7deb27067508894e8a148e30d691ee4809537c 100755 (executable)
@@ -212,6 +212,12 @@ function constant {
   check_theory_seen
 }
 
+function nullaryoperator {
+  # nullaryoperator K ["comment"]
+  lineno=${BASH_LINENO[0]}
+  check_theory_seen
+}
+
 function check_theory_seen {
   if $seen_endtheory; then
     echo "$kf:$lineno: error: command after \"endtheory\" declaration (endtheory has to be last)" >&2
index 983cfade43e895092ee4df96fe007c25a4e50ea9..15166fc1f557cbc0425416fff85b9190433d4b56 100755 (executable)
@@ -345,6 +345,13 @@ function constant {
   register_kind "$1" 0 "$5"
 }
 
+function nullaryoperator {
+  # nullaryoperator K ["comment"]
+  lineno=${BASH_LINENO[0]}
+  check_theory_seen
+  register_kind "$1" 0 "$2"
+}
+
 function register_sort {
   id=$1
   cardinality=$2