default_bp.py 402 B

123456789101112
  1. include "primitives.alh"
  2. Boolean function bp_1(reachable_states: Element, mappings: Element, place_names_to_ids: Element):
  3. Element keys
  4. Element node
  5. String msg
  6. keys = dict_keys(reachable_states)
  7. while (read_nr_out(keys) > 0):
  8. node = reachable_states[set_pop(keys)]
  9. if (integer_gt(node[place_names_to_ids["produced"]], 0)):
  10. return True!
  11. return False!