| 1 |
Congratulations, you now have a new theory of $dir ! |
| 2 |
|
| 3 |
Your next steps will likely be: |
| 4 |
|
| 5 |
* to specify theory constants, types, and operators in your \`kinds' file |
| 6 |
* to add typing rules to theory_$dir_type_rules.h for your operators |
| 7 |
and constants |
| 8 |
* to write code in theory_$dir_rewriter.h to implement a normal form |
| 9 |
for your theory's terms; in particular, you should ensure that you |
| 10 |
rewrite (= X X) to "true" for terms X of your theory's sorts, and |
| 11 |
evaluate any constant terms |
| 12 |
* for any new types that you have introduced, add "mk*Type()" functions to |
| 13 |
the NodeManager and ExprManager in src/expr/node_manager.{h,cpp} and |
| 14 |
src/expr/expr_manager_template.{h,cpp}. You may also want "is*()" testers |
| 15 |
in src/expr/type_node.h and a corresponding Type derived class in |
| 16 |
src/expr/type.h. |
| 17 |
* to write parser rules in src/parser/cvc/Cvc.g to support the CVC input |
| 18 |
language, src/parser/smt/Smt.g to support the (deprecated) SMT-LIBv1 |
| 19 |
language, and src/parser/smt2/Smt2.g to support SMT-LIBv2 |
| 20 |
* to write printer code in |
| 21 |
src/printer/*/*_printer* to support printing |
| 22 |
your theory terms and types in various output languages |
| 23 |
|
| 24 |
and finally: |
| 25 |
|
| 26 |
* to implement a decision procedure for your theory by implementing |
| 27 |
Theory$camel::check() in theory_$dir.cpp. Before writing the actual |
| 28 |
code, you will need : |
| 29 |
|
| 30 |
* to determine which data structures are context dependent and use for |
| 31 |
them context-dependent data structures (context/cd*.h) |
| 32 |
* to choose which work will be done at QUICK_CHECK, STANDARD or at |
| 33 |
FULL_EFFORT. |
| 34 |
|
| 35 |
You'll probably find the Developer's wiki useful: |
| 36 |
|
| 37 |
http://cvc4.cs.stanford.edu/wiki/ |
| 38 |
|
| 39 |
...and the Developer's Guide: |
| 40 |
|
| 41 |
https://github.com/CVC4/CVC4/wiki/Developer-Guide |
| 42 |
|
| 43 |
which contains coding guidelines for the CVC4 project. |
| 44 |
|
| 45 |
Good luck, and please contact [email protected] for assistance |
| 46 |
should you need it! |