From: Miodrag Milanovic Date: Fri, 22 Apr 2022 11:46:11 +0000 (+0200) Subject: Last sample from input does not represent change X-Git-Tag: yosys-0.17~23^2~3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33f4009bb559eefaabd19b3dde06639889eb1eed;p=yosys.git Last sample from input does not represent change --- diff --git a/passes/sat/sim.cc b/passes/sat/sim.cc index f480168bd..345ca3494 100644 --- a/passes/sat/sim.cc +++ b/passes/sat/sim.cc @@ -1805,8 +1805,9 @@ struct AIWWriter : public OutputWriter std::map current; bool first = true; - for(auto& d : worker->output_data) + for (auto iter = worker->output_data.begin(); iter != std::prev(worker->output_data.end()); ++iter) { + auto& d = *iter; for (auto &data : d.second) { current[data.first] = data.second;