Support constraint_mode (#5338)

This commit is contained in:
Krzysztof Bieganski
2024-08-21 06:16:44 -04:00
committed by GitHub
parent 13e0fc7c27
commit 930f35acc9
16 changed files with 495 additions and 253 deletions
+3 -2
View File
@@ -80,8 +80,9 @@ private:
bool local = false;
bool prot = false;
if (!defp) {
// rand_mode() handled in V3Randomize
UASSERT_OBJ(nodep->name() == "rand_mode", nodep, "Only rand_mode() can have no def");
// rand_mode() / constraint_mode() handled in V3Randomize
UASSERT_OBJ(nodep->name() == "rand_mode" || nodep->name() == "constraint_mode", nodep,
"Only rand_mode() and constraint_mode() can have no def");
return;
}
if (const auto varp = VN_CAST(defp, Var)) {