formalff: Fix -ff2anyinit assertion error for fine FFs

This commit is contained in:
Jannis Harder 2022-11-30 18:59:55 +01:00
parent ce708122a5
commit 551ca7f97f
1 changed files with 2 additions and 0 deletions

View File

@ -529,12 +529,14 @@ struct FormalFfPass : public Pass {
if ((int)bits.size() == ff.val_init.size()) {
// This check is only to make the private names more helpful for debugging
ff.is_anyinit = true;
ff.is_fine = false;
emit = true;
break;
}
auto slice = ff.slice(bits);
slice.is_anyinit = is_anyinit;
slice.is_fine = false;
slice.emit();
}
}