Replace assert with error message

This commit is contained in:
Eddie Hung 2019-06-21 15:45:51 -07:00
parent 3cf2afc280
commit 6a0fb3035e
1 changed files with 2 additions and 1 deletions

View File

@ -244,7 +244,8 @@ struct XAigerWriter
if (c.second.is_fully_const()) continue;
auto is_input = cell->input(c.first);
auto is_output = cell->output(c.first);
log_assert(is_input || is_output);
if (!is_input && !is_output)
log_error("Connection '%s' on cell '%s' (type '%s') not recognised!\n", log_id(c.first), log_id(cell), log_id(cell->type));
if (is_input) {
for (auto b : c.second.bits()) {