Skip to content

Commit

Permalink
Finished documenting the formalism
Browse files Browse the repository at this point in the history
  • Loading branch information
Cynthia Kop committed Jul 23, 2024
1 parent 3b683b8 commit a7f20b8
Show file tree
Hide file tree
Showing 2 changed files with 517 additions and 154 deletions.
3 changes: 2 additions & 1 deletion app/src/main/java/charlie/trs/Rule.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@ public Type queryType() {

/**
* This returns whether the rule is a constrained rule -- which is the case if the constraint
* is anything other than the value true.
* is anything other than the value true, or if lvar is non-empty.
*/
public boolean isConstrained() {
if (!_lvars.isEmpty()) return true;
Value value = _constraint.toValue();
if (value == null) return true;
return !value.getBool();
Expand Down
Loading

0 comments on commit a7f20b8

Please sign in to comment.