Skip to content

Commit

Permalink
adding test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachJHansen authored and teiesti committed Aug 28, 2024
1 parent d42e72a commit 8d932a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/translating/tau_star.rs
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,8 @@ mod tests {
("{p}.", "#true and not not p -> p."),
("{p(5)}.", "forall V1 (V1 = 5 and #true and not not p(V1) -> p(V1))."),
("p. q.", "#true -> p. #true -> q."),
("{ra(X,a)} :- ta(X). ra(5,a).", "forall V1 V2 X (V1 = X and V2 = a and exists Z (Z = X and ta(Z)) and not not ra(V1, V2) -> ra(V1, V2)). forall V1 V2 (V1 = 5 and V2 = a and #true -> ra(V1, V2)).")
("{ra(X,a)} :- ta(X). ra(5,a).", "forall V1 V2 X (V1 = X and V2 = a and exists Z (Z = X and ta(Z)) and not not ra(V1, V2) -> ra(V1, V2)). forall V1 V2 (V1 = 5 and V2 = a and #true -> ra(V1, V2))."),
("p(X/2) :- X=4.", "forall V1 X (exists I$i J$i Q$i R$i (I$i = J$i * Q$i + R$i and (I$i = X and J$i = 2) and (J$i != 0 and R$i >= 0 and R$i < J$i) and V1 = Q$i) and exists Z Z1 (Z = X and Z1 = 4 and Z = Z1) -> p(V1))."),
] {
let left = tau_star(src.parse().unwrap());
let right = target.parse().unwrap();
Expand Down

0 comments on commit 8d932a6

Please sign in to comment.