From 6297d3763d100055ad1d7cb8e39a8212d4df8229 Mon Sep 17 00:00:00 2001 From: Alain Dargelas Date: Thu, 14 Nov 2024 16:36:12 -0800 Subject: [PATCH] Warnings --- passes/cmds/reconstructbusses.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/passes/cmds/reconstructbusses.cc b/passes/cmds/reconstructbusses.cc index bffd7fbbe..5747800af 100644 --- a/passes/cmds/reconstructbusses.cc +++ b/passes/cmds/reconstructbusses.cc @@ -49,6 +49,8 @@ struct ReconstructBusses : public ScriptPass { } } if (!valid_index) { + log_warning("Invalid net name %s\n", prefix.c_str()); + log_flush(); continue; } @@ -62,9 +64,12 @@ struct ReconstructBusses : public ScriptPass { break; } } - if (end == prefix.begin()) + if (end == prefix.begin()) { // Last _ didn't mean there was another _ + log_warning("Invalid net name %s\n", prefix.c_str()); + log_flush(); continue; + } std::string no_bitblast_prefix; std::copy(prefix.begin(), end, std::back_inserter(no_bitblast_prefix)); wire_groups[no_bitblast_prefix].push_back(wire);