Skip to content

Commit

Permalink
fix(chore): changed predicate name in static alg
Browse files Browse the repository at this point in the history
  • Loading branch information
ainnoot committed Jun 18, 2024
1 parent e79561d commit 781eb4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ltlf2asp/solve/encodings/solve_static.lp
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Search %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#const b=0.
#const a=0.
{ last_instant(T): T=a..b-1 } = 1.
time(0..T) :- last_instant(T).
{ last_state(T): T=a..b-1 } = 1.
time(0..T) :- last_state(T).
{ trace(T,X): atomic(_,X) } :- time(T).
:- root(X), not holds(0, X).

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Atomic Formula %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
holds(T, X) :- atomic(X, A), time(T), trace(T, A).
holds(T, X) :- last(X), last_instant(T).
holds(T, X) :- last(X), last_state(T).
holds(T, X) :- true(X), time(T).

%%%%%%%%%%%%%%%%%%%%%%%%%%%% Propositional Formula %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand All @@ -22,7 +22,7 @@ holds(T, X) :- until(X, LHS, RHS), holds(T, RHS).
holds(T, X) :- until(X, LHS, RHS), holds(T, LHS), holds(T+1, X).
holds(T, X) :- release(X, LHS, RHS), holds(T,RHS), holds(T,LHS).
holds(T, X) :- release(X, LHS, RHS), holds(T,RHS), holds(T+1, X).
holds(T, X) :- release(X, LHS, RHS), holds(T,RHS), last_instant(T).
holds(T, X) :- release(X, LHS, RHS), holds(T,RHS), last_state(T).

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Output projection %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#show.
Expand Down

0 comments on commit 781eb4d

Please sign in to comment.