sosy-lab / java-smt

JavaSMT - Unified Java API for SMT solvers.
Apache License 2.0
187 stars 45 forks source link

Improve Documentation of Non-Trivial Operations #403

Open baierd opened 1 month ago

baierd commented 1 month ago

Some operations in SMTLib2, for example Integer modulo() and BV smodulo() (signed modulo), behave differently. Our documentation does not reflect this properly or fails to explain the differences in a well-understandable way. Additionally, we could update the documentation of some operations that are not well understandable. We should take a closer look at our public API documentation and update it accordingly.

Examples:

PhilippWendler commented 1 month ago

As one example of what I see that could be improved, I looked at the current JavaDoc of Integer modulo: https://github.com/sosy-lab/java-smt/blob/fed0e55e44243a26cc0ca00b90d6835aef6e5d55/src/org/sosy_lab/java_smt/api/IntegerFormulaManager.java#L29-L46

My thoughts: