Merge pull request #4645 from georgerennie/george/btor_undef_array_init

write_btor: only initialize array with const value when it is fully def
This commit is contained in:
Jannis Harder 2024-11-11 16:18:57 +01:00 committed by GitHub
commit 014cb531aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -832,7 +832,10 @@ struct BtorWorker
}
}
if (constword)
// If not fully defined, undef bits should be able to take a
// different value for each address so we can't initialise from
// one value (and btor2parser doesn't like it)
if (constword && firstword.is_fully_def())
{
if (verbose)
btorf("; initval = %s\n", log_signal(firstword));