Modeling and Verification of Distributed Autonomous Agents Using Logic Programming