diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-08-11 21:13:40 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-08-11 21:13:40 -0700 |
commit | 88d5185596a0cc8319658463a31b20644d90dd6b (patch) | |
tree | 106f178d42a54403218f93cae2807d6e67981599 /backends/smt2 | |
parent | 282cc77604a9a855c303869321d4179790b0b64b (diff) | |
parent | c851dc13108021834533094a8a3236da6d9e0161 (diff) | |
download | yosys-88d5185596a0cc8319658463a31b20644d90dd6b.tar.gz yosys-88d5185596a0cc8319658463a31b20644d90dd6b.tar.bz2 yosys-88d5185596a0cc8319658463a31b20644d90dd6b.zip |
Merge remote-tracking branch 'origin/master' into eddie/fix_1262
Diffstat (limited to 'backends/smt2')
-rw-r--r-- | backends/smt2/smt2.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/smt2/smt2.cc b/backends/smt2/smt2.cc index ddd680782..081dcda99 100644 --- a/backends/smt2/smt2.cc +++ b/backends/smt2/smt2.cc @@ -601,7 +601,7 @@ struct Smt2Worker if (cell->type == "$logic_and") return export_reduce(cell, "(and (or A) (or B))", false); if (cell->type == "$logic_or") return export_reduce(cell, "(or A B)", false); - if (cell->type == "$mux" || cell->type == "$pmux") + if (cell->type.in("$mux", "$pmux")) { int width = GetSize(cell->getPort("\\Y")); std::string processed_expr = get_bv(cell->getPort("\\A")); @@ -1476,7 +1476,7 @@ struct Smt2Backend : public Backend { int indent = 0; while (indent < GetSize(line) && (line[indent] == ' ' || line[indent] == '\t')) indent++; - if (line.substr(indent, 2) == "%%") + if (line.compare(indent, 2, "%%") == 0) break; *f << line << std::endl; } |