From 11d945deb7a1815f980934e023f322163d0d6843 Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Wed, 9 Aug 2017 11:08:15 -0400 Subject: Fix wip --- etc/compile-by-zinc/compile-to-zinc.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'etc/compile-by-zinc') 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 -- cgit v1.2.3