diff options
Diffstat (limited to 'src/theory/mkrewriter')
-rwxr-xr-x | src/theory/mkrewriter | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/theory/mkrewriter b/src/theory/mkrewriter index 2d8012bfb..084a624f7 100755 --- a/src/theory/mkrewriter +++ b/src/theory/mkrewriter @@ -52,13 +52,13 @@ seen_theory=false seen_theory_builtin=false function theory { - # theory T header + # theory ID T header lineno=${BASH_LINENO[0]} if $seen_theory; then - echo "$kf:$lineno: theory declaration can only appear once" >&2 - exit 1; + echo "$kf:$lineno: error: multiple theories defined in one file !?" >&2 + exit 1 fi # this script doesn't care about the theory class information, but @@ -82,6 +82,20 @@ function theory { theory_id="$1" } +function alternate { + # alternate ID name T header + + lineno=${BASH_LINENO[0]} + + if $seen_theory; then + echo "$kf:$lineno: error: multiple theories defined in one file !?" >&2 + exit 1 + fi + + seen_theory=true + seen_endtheory=true +} + function properties { # properties prop* lineno=${BASH_LINENO[0]} |