Skip to content
Snippets Groups Projects
Commit e6268907 authored by crides's avatar crides
Browse files

change 'controller' name to 'decisionLogic'

parent f8cc189b
No related branches found
No related tags found
1 merge request!9Tutorial
......@@ -304,9 +304,9 @@ class ControllerIR:
@staticmethod
def from_env(env):
top = env.scopes[0].v
if 'controller' not in top or not isinstance(top['controller'], Lambda):
if 'decisionLogic' not in top or not isinstance(top['decisionLogic'], Lambda):
raise TypeError("can't find controller")
controller = top['controller']
controller = top['decisionLogic']
asserts = [(a.cond, a.label if a.label != None else f"<assert {i}>", merge_conds(a.pre)) for i, a in enumerate(controller.asserts)]
asserts_veri = [Assert(Env.trans_args(copy.deepcopy(c), True), l, Env.trans_args(copy.deepcopy(p), True)) for c, l, p in asserts]
for a in asserts_veri:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment