diff --git a/backends/functional/cxx_runtime/sim.h b/backends/functional/cxx_runtime/sim.h index 310927f5b7b..3a398a13a5a 100644 --- a/backends/functional/cxx_runtime/sim.h +++ b/backends/functional/cxx_runtime/sim.h @@ -21,6 +21,7 @@ #define SIM_H #include +#include template using Signal = std::array; @@ -249,7 +250,7 @@ Signal $shl(Signal const& a, Signal const &b) { if(nb >= sizeof(int) * 8 - 1) for(size_t i = sizeof(int) * 8 - 1; i < nb; i++) - log_assert(!b[i]); + assert(!b[i]); size_t amount = as_int(b); Signal ret = $const(0); if(amount < n){ @@ -266,7 +267,7 @@ Signal $shr(Signal const& a, Signal const &b) { if(nb >= sizeof(int) * 8 - 1) for(size_t i = sizeof(int) * 8 - 1; i < nb; i++) - log_assert(!b[i]); + assert(!b[i]); size_t amount = as_int(b); Signal ret; for (size_t i = 0; i < n; i++) { @@ -283,7 +284,7 @@ Signal $asr(Signal const& a, Signal const &b) { if(nb >= sizeof(int) * 8 - 1) for(size_t i = sizeof(int) * 8 - 1; i < nb; i++) - log_assert(!b[i]); + assert(!b[i]); size_t amount = as_int(b); Signal ret; for (size_t i = 0; i < n; i++) { @@ -344,7 +345,7 @@ Signal concat(Signal const& a, Signal const& b) template Signal $zero_extend(Signal const& a) { - log_assert(n >= m); + assert(n >= m); Signal ret; std::copy(a.begin(), a.end(), ret.begin()); for(size_t i = m; i < n; i++) @@ -355,7 +356,7 @@ Signal $zero_extend(Signal const& a) template Signal $sign_extend(Signal const& a) { - log_assert(n >= m); + assert(n >= m); Signal ret; std::copy(a.begin(), a.end(), ret.begin()); for(size_t i = m; i < n; i++)