Skip to content
Commit e34dc891 authored by Matt Wala's avatar Matt Wala
Browse files

Fix naming logic.

Previously, get_unique_name() failed to give distinct names to some
distinct input variables because it was passed the wrong
parameters. Furthermore, the same flawed naming logic was duplicated in
multiple places in the code generator.

The task of finding unique names for the Python and Fortran code
generators is moved to a new KeyToUniqueNameMap class. It has a simple
interface to query for names that are guaranteed to be distinct for
distinct input variables.

Bug: #34
parent 5658555f
Loading
Loading
Loading
Loading
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