diff options
author | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2012-05-03 20:18:18 +0000 |
---|---|---|
committer | Dejan Jovanović <dejan.jovanovic@gmail.com> | 2012-05-03 20:18:18 +0000 |
commit | 1433806056059339dd16ae8e431feaae23553150 (patch) | |
tree | cf678baa687b1a19e479c28a1c01470bb2f120c7 /src/theory/mktheorytraits | |
parent | 8ef2015de66fc409a2a2958b9452c0c9b1456ee3 (diff) |
Some cleanup starting off from trying to understand the sharing code. Changes include
* fixed term visitor from the bvprop branch
* removed all the warnings from builds -- warnings are there to be noted *NOT* to be used as scribbles
* moved the LogicInfo into the theory constructor
Diffstat (limited to 'src/theory/mktheorytraits')
-rwxr-xr-x | src/theory/mktheorytraits | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/theory/mktheorytraits b/src/theory/mktheorytraits index bccd520f9..2d3b4a43a 100755 --- a/src/theory/mktheorytraits +++ b/src/theory/mktheorytraits @@ -139,20 +139,21 @@ struct TheoryTraits<${theory_id}> { " # warnings about theory content and properties - dir="$(dirname "$kf")/../../" - if [ -e "$dir/$theory_header" ]; then - for function in check propagate staticLearning notifyRestart presolve postsolve; do - if eval "\$theory_has_$function"; then - grep '\<'"$function"' *\((\|;\)' "$dir/$theory_header" | grep -vq '^ */\(/\|\*\)' || - echo "$kf: warning: $theory_class has property \"$function\" in its kinds file but doesn't appear to declare the function" >&2 - else - grep '\<'"$function"' *\((\|;\)' "$dir/$theory_header" | grep -vq '^ */\(/\|\*\)' && - echo "$kf: warning: $theory_class does not have property \"$function\" in its kinds file but appears to declare the function" >&2 - fi - done - else - echo "$me: warning: theory header \"$theory_header\" does not exist or is unreadable" >&2 - fi + # TODO: fix, not corresponding to staticLearning anymore + # dir="$(dirname "$kf")/../../" + # if [ -e "$dir/$theory_header" ]; then + # for function in check propagate staticLearning notifyRestart presolve postsolve; do + # if eval "\$theory_has_$function"; then + # grep '\<'"$function"' *\((\|;\)' "$dir/$theory_header" | grep -vq '^ */\(/\|\*\)' || + # echo "$kf: warning: $theory_class has property \"$function\" in its kinds file but doesn't appear to declare the function" >&2 + # else + # grep '\<'"$function"' *\((\|;\)' "$dir/$theory_header" | grep -vq '^ */\(/\|\*\)' && + # echo "$kf: warning: $theory_class does not have property \"$function\" in its kinds file but appears to declare the function" >&2 + # fi + # done + # else + # echo "$me: warning: theory header \"$theory_header\" does not exist or is unreadable" >&2 + # fi theory_has_check="false" theory_has_propagate="false" |