diff options
author | Jason Gross <jgross@mit.edu> | 2017-08-09 11:08:15 -0400 |
---|---|---|
committer | Jason Gross <jgross@mit.edu> | 2017-08-09 11:08:15 -0400 |
commit | 11d945deb7a1815f980934e023f322163d0d6843 (patch) | |
tree | d7ae977b8765c9ec9f3137c7ef301deb7bd040a7 /etc | |
parent | 210e483657de23132c322874efc608bc6a2c0625 (diff) |
Fix wip
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/compile-by-zinc/compile-to-zinc.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/compile-by-zinc/compile-to-zinc.py b/etc/compile-by-zinc/compile-to-zinc.py index 0b91ae073..8d5b7733f 100755 --- a/etc/compile-by-zinc/compile-to-zinc.py +++ b/etc/compile-by-zinc/compile-to-zinc.py @@ -353,7 +353,7 @@ def make_assign_locations_to_instructions_cumulatively(data): ret += 'constraint alldifferent(output_locations);\n' return ret - def make_dependencies_old(input_data): + def make_dependencies(input_data): var_names = get_var_names(input_data) ret = '' for line in input_data['lines']: @@ -366,14 +366,14 @@ def make_assign_locations_to_instructions_cumulatively(data): ret += '\n' return ret - def make_dependencies(input_data): + def make_dependencies_new(input_data): var_names = get_var_names(input_data) ret = '' ret += 'array[INSTRUCTIONS,INSTRUCTIONS] of var 0..1: depends_on;\n' dependencies = {} - for line in input_data['lines']: - dependencies[line['out']] = tuple(arg for arg in line['args'] - if arg in var_names and arg[0] not in '0123456789') + #for line in input_data['lines']: + # dependencies[line['out']] = tuple(arg for arg in line['args'] + # if arg in var_names and arg[0] not in '0123456789') # HERE |