From: Marcelina Koƛcielnicka Date: Mon, 22 Feb 2021 21:02:48 +0000 (+0100) Subject: assertpmux: Fix crash on unused $pmux output. X-Git-Tag: working-ls180~75 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4746ffd7b2f5de0bc1f29f35e9044091a3c704e0;p=yosys.git assertpmux: Fix crash on unused $pmux output. Fixes #2595. --- diff --git a/passes/sat/assertpmux.cc b/passes/sat/assertpmux.cc index e9a10465e..f31b78804 100644 --- a/passes/sat/assertpmux.cc +++ b/passes/sat/assertpmux.cc @@ -88,7 +88,7 @@ struct AssertpmuxWorker { SigSpec output; - for (auto muxuser : sigbit_muxusers.at(bit)) + for (auto muxuser : sigbit_muxusers[bit]) { Cell *cell = std::get<0>(muxuser); int portidx = std::get<1>(muxuser); diff --git a/tests/sat/bug2595.ys b/tests/sat/bug2595.ys new file mode 100644 index 000000000..f668fd747 --- /dev/null +++ b/tests/sat/bug2595.ys @@ -0,0 +1,18 @@ +read_ilang <