Add z to param values to avoid conflicts.

This commit is contained in:
Wilson Snyder 2015-11-05 07:00:04 -05:00
parent bf5dee955d
commit c72ee41142

View File

@ -139,7 +139,7 @@ private:
char ch = varp->user4()&255;
string st = cvtToStr(ch);
while (index) {
st += cvtToStr(char((index%26)+'A'));
st += cvtToStr(char((index%25)+'A'));
index /= 26;
}
return st;
@ -162,7 +162,8 @@ private:
else { m_nextValueMap.insert(make_pair(bucket, offset + 1)); }
int num = bucket + offset * BUCKETS;
m_valueMap.insert(make_pair(nodep, num));
return cvtToStr(num);
// 'z' just to make sure we don't collide with a normal non-hashed number
return (string)"z"+cvtToStr(num);
}
}
void relinkPins(VarCloneMap* clonemapp, AstPin* startpinp) {