Skip to content

Commit

Permalink
Merge pull request #3797 from charlottia/one-length-memories
Browse files Browse the repository at this point in the history
  • Loading branch information
jix committed Jun 19, 2023
2 parents 3fa83ca + c9d31c3 commit d3ee4eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backends/smt2/smt2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ struct Smt2Worker
int arrayid = idcounter++;
memarrays[mem] = arrayid;

int abits = ceil_log2(mem->size);
int abits = max(1, ceil_log2(mem->size));

bool has_sync_wr = false;
bool has_async_wr = false;
Expand Down Expand Up @@ -1220,7 +1220,7 @@ struct Smt2Worker
{
int arrayid = memarrays.at(mem);

int abits = ceil_log2(mem->size);;
int abits = max(1, ceil_log2(mem->size));

bool has_sync_wr = false;
bool has_async_wr = false;
Expand Down

0 comments on commit d3ee4eb

Please sign in to comment.