mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-19 20:33:39 +00:00
Using log_assert() instead of assert()
This commit is contained in:
parent
d86a25f145
commit
7bd2d1064f
52 changed files with 236 additions and 251 deletions
|
@ -23,7 +23,6 @@
|
|||
#include "kernel/log.h"
|
||||
#include "kernel/celltypes.h"
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <set>
|
||||
|
||||
|
@ -227,7 +226,7 @@ static void rmunused_module_signals(RTLIL::Module *module, bool purge_mode, bool
|
|||
if (!used_signals.check_any(s2) && wire->port_id == 0 && !wire->get_bool_attribute("\\keep")) {
|
||||
maybe_del_wires.push_back(wire);
|
||||
} else {
|
||||
assert(SIZE(s1) == SIZE(s2));
|
||||
log_assert(SIZE(s1) == SIZE(s2));
|
||||
RTLIL::SigSig new_conn;
|
||||
for (int i = 0; i < SIZE(s1); i++)
|
||||
if (s1[i] != s2[i]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue