diff options
| author | azidar | 2015-08-04 12:32:45 -0700 |
|---|---|---|
| committer | azidar | 2015-08-04 12:32:45 -0700 |
| commit | 45a54fadf735742b819590f3209224636e56c715 (patch) | |
| tree | 025d0b33f7e1455d25adbffc2ec7c419e1a2053a /src/main/stanza/ir-utils.stanza | |
| parent | ff6dfecf42560ed2e2eb678adc9ca8d868a472bd (diff) | |
Fixed reading from instance's input ports. Fixed unique naming bug.
Diffstat (limited to 'src/main/stanza/ir-utils.stanza')
| -rw-r--r-- | src/main/stanza/ir-utils.stanza | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/stanza/ir-utils.stanza b/src/main/stanza/ir-utils.stanza index 2fb92407..8cfd1541 100644 --- a/src/main/stanza/ir-utils.stanza +++ b/src/main/stanza/ir-utils.stanza @@ -67,7 +67,11 @@ public defn get-sym-hash (m:InModule,keywords:List<Symbol>) -> HashTable<Symbol, s*[i] == '_' and digits?(substring(s*,i + 1)) match(i*) : (i:False) : - sym-hash[s] = 0 + if key?(sym-hash,s) : + val num = sym-hash[s] + sym-hash[s] = max(num,0) + else : + sym-hash[s] = 0 (i:Int) : val name = to-symbol(substring(s*,0,i)) val digit = to-int(substring(s*,i + 1)) |
