Skip to content

Commit

Permalink
Fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
titomeister committed Nov 14, 2023
1 parent e428c6b commit edb6e0f
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions skema/program_analysis/CAST2FN/ann_cast/to_gromet_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,25 +437,26 @@ def handle_primitive_function(
tgt=len(parent_gromet_fn.pof),
),
)
else:
var_env = self.symtab_variables()
parent_gromet_fn.pif = insert_gromet_object(
parent_gromet_fn.pif, GrometPort(box=inline_bf_loc)
)
arg_name = get_left_side_name(arg)
if arg_name not in var_env["local"] and arg_name not in var_env["args"]:
parent_gromet_fn.opi = insert_gromet_object(
parent_gromet_fn.opi, GrometPort(box=len(parent_gromet_fn.b))
)
parent_gromet_fn.wfopi = insert_gromet_object(
parent_gromet_fn.wfopi,
GrometWire(
src=len(parent_gromet_fn.pif),
tgt=len(parent_gromet_fn.opi),
),
)
else:
self.wire_from_var_env(arg_name, parent_gromet_fn)
# else:
# var_env = self.symtab_variables()
# parent_gromet_fn.pif = insert_gromet_object(
# parent_gromet_fn.pif, GrometPort(box=inline_bf_loc)
# )
# arg_name = get_left_side_name(arg)
# if arg_name not in var_env["local"] and arg_name not in var_env["args"] and arg_name not in var_env["global"]:
# print("HI")
# parent_gromet_fn.opi = insert_gromet_object(
# parent_gromet_fn.opi, GrometPort(box=len(parent_gromet_fn.b))
# )
# parent_gromet_fn.wfopi = insert_gromet_object(
# parent_gromet_fn.wfopi,
# GrometWire(
# src=len(parent_gromet_fn.pif),
# tgt=len(parent_gromet_fn.opi),
# ),
# )
# else:
# self.wire_from_var_env(arg_name, parent_gromet_fn)
return inline_bf_loc
else:
# Create the Expression FN and its box function
Expand Down

0 comments on commit edb6e0f

Please sign in to comment.