Replace assert with error message
authorEddie Hung <eddie@fpgeh.com>
Fri, 21 Jun 2019 22:45:51 +0000 (15:45 -0700)
committerEddie Hung <eddie@fpgeh.com>
Fri, 21 Jun 2019 22:45:51 +0000 (15:45 -0700)
backends/aiger/xaiger.cc

index 637c54ff91d291df4c7245c59b5715e8207c07d9..110d727de7e06e2a0934b6227534d4b2359951bc 100644 (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()) {