Skip to content

Commit

Permalink
Remove all support for evaluation of functions in predicate arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
ztangent committed Jul 28, 2022
1 parent 3aaf11e commit 13e76e3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/interpreter/abstract/satisfy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ function check(interpreter::AbstractInterpreter,
elseif is_func(term, domain)
evaluate(interpreter, domain, state, term)::Bool
else
term = partialeval(domain, state, term)
term in state.facts
end
return sat
Expand Down
1 change: 0 additions & 1 deletion src/interpreter/concrete/satisfy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ function check(interpreter::ConcreteInterpreter,
elseif is_func(term, domain)
evaluate(interpreter, domain, state, term)::Bool
else
term = partialeval(domain, state, term)
term in state.facts
end
return sat
Expand Down
10 changes: 0 additions & 10 deletions src/interpreter/diff.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,13 @@ end

function add_effect!(diff::GenericDiff,
domain::Domain, state::State, effect::Term)
if effect isa Compound # Evaluated all nested functions
args = Term[a isa Compound ? Const(evaluate(domain, state, a)) : a
for a in effect.args]
effect = Compound(effect.name, args)
end
push!(diff.add, effect)
return diff
end

function del_effect!(diff::GenericDiff,
domain::Domain, state::State, effect::Term)
effect = effect.args[1]
if effect isa Compound # Evaluated all nested functions
args = Term[a isa Compound ? Const(evaluate(domain, state, a)) : a
for a in effect.args]
effect = Compound(effect.name, args)
end
push!(diff.del, effect)
return diff
end
Expand Down

0 comments on commit 13e76e3

Please sign in to comment.