summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-09-25 15:09:21 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-09-25 15:09:21 +0200
commit0d4dac662b89bac9624337f851f448516a14f6fc (patch)
treea4fb66f3276ca570a7fa7758a928d64dac375d84 /lib
parent35724ec75c281fc758963db69a1e112d53de687a (diff)
Transition: fix arg_to_param_map semantics
Diffstat (limited to 'lib')
-rwxr-xr-xlib/automata.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/automata.py b/lib/automata.py
index 1715841..3bba65c 100755
--- a/lib/automata.py
+++ b/lib/automata.py
@@ -266,7 +266,7 @@ class Transition:
ret = param_dict.copy()
if self.arg_to_param_map:
for k, v in self.arg_to_param_map.items():
- ret[k] = args[v]
+ ret[v] = args[k]
if self.set_param:
for k, v in self.set_param.items():
ret[k] = v
@@ -482,7 +482,7 @@ class PTA:
arguments.append(argument['name'])
argument_values.append(argument['values'])
if 'parameter' in argument:
- arg_to_param_map[argument['parameter']] = i
+ arg_to_param_map[i] = argument['parameter']
if 'argument_combination' in transition:
kwargs['argument_combination'] = transition['argument_combination']
if 'set_param' in transition: