Skip to content

Commit

Permalink
Merge pull request #4645 from georgerennie/george/btor_undef_array_init
Browse files Browse the repository at this point in the history
write_btor: only initialize array with const value when it is fully def
  • Loading branch information
jix authored Nov 11, 2024
2 parents 261b447 + 6ab3931 commit 014cb53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backends/btor/btor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 014cb53

Please sign in to comment.