We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3fa83ca + c9d31c3 commit d3ee4ebCopy full SHA for d3ee4eb
backends/smt2/smt2.cc
@@ -773,7 +773,7 @@ struct Smt2Worker
773
int arrayid = idcounter++;
774
memarrays[mem] = arrayid;
775
776
- int abits = ceil_log2(mem->size);
+ int abits = max(1, ceil_log2(mem->size));
777
778
bool has_sync_wr = false;
779
bool has_async_wr = false;
@@ -1220,7 +1220,7 @@ struct Smt2Worker
1220
{
1221
int arrayid = memarrays.at(mem);
1222
1223
- int abits = ceil_log2(mem->size);;
1224
1225
1226
0 commit comments