Skip to content

Commit

Permalink
Fix equality operator precondition in Cyber_Compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
Maumagnaguagno committed May 12, 2024
1 parent 7923be0 commit 03116e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compilers/Cyber_Compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def compile_domain(domain_name, problem_name, operators, methods, predicates, st
elsif predicates[pre] or state.include?(pre) then define_operators << "\n if(#{applicable(pre, terms, predicates, arity)}) return false;"
end
}
define_operators << "\n return if #{equality.join(' || ')}" unless equality.empty?
define_operators << "\n if(#{equality.join(' || ')}) return false;" unless equality.empty?
unless effect_add.empty? and effect_del.empty?
define_operators << "\n new_state();"
apply('erase', effect_del, define_operators, duplicated = {}, arity)
Expand Down

0 comments on commit 03116e6

Please sign in to comment.