Important: Change --assert to be the default; use --no-assert for legacy behavior and faster runtimes.

This commit is contained in:
Wilson Snyder
2025-07-03 19:36:28 -04:00
parent 1cd65e90bd
commit f77af4e6f6
14 changed files with 44 additions and 31 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ class AssertVisitor final : public VNVisitor {
switch (directiveType) {
case VAssertDirectiveType::INTRINSIC: return new AstConst{fl, AstConst::BitTrue{}};
case VAssertDirectiveType::VIOLATION_CASE: {
if (v3Global.opt.assertCaseOn()) {
if (v3Global.opt.assertCase()) {
return new AstCExpr{fl, "vlSymsp->_vm_contextp__->assertOn()", 1};
}
// If assertions are off, have constant propagation rip them out later