We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00702e1 commit bcbc0d2Copy full SHA for bcbc0d2
netlist_bitblast/src/BitBlaster.cpp
@@ -39,12 +39,17 @@ namespace BITBLAST {
39
std::string BitBlaster::filterIcarusSDFUnsupportedCharacters(
40
const std::string &st) {
41
std::string result;
42
+ char c_1 = ' ';
43
for (uint32_t i = 0; i < st.size(); i++) {
44
char c = st[i];
- if (c == '.' || c == ':' || c == '/')
45
+ if (c == '\\' && c_1 == '\\') {
46
+ result = result.substr(0, result.size()-1);
47
+ result += "_";
48
+ } else if (c == '.' || c == ':' || c == '/')
49
result += "_";
50
else
51
result += c;
52
+ c_1 = c;
53
}
54
return result;
55
0 commit comments