Skip to content

Commit

Permalink
boolector: Add API checks to fun/array models.
Browse files Browse the repository at this point in the history
  • Loading branch information
mpreiner committed Jan 9, 2020
1 parent 4f3f93b commit 4a3d82c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/boolector.c
Original file line number Diff line number Diff line change
Expand Up @@ -4202,7 +4202,8 @@ boolector_free_array_assignment (Btor *btor,

funass =
btor_ass_get_fun ((const char **) indices, (const char **) values, size);
(void) funass;
BTOR_ABORT (size != funass->size,
"wrong size given, expected %u, but got %u", funass->size, size);
#ifndef NDEBUG
char **cindices, **cvalues;
cindices = funass->cloned_indices;
Expand Down Expand Up @@ -4285,7 +4286,8 @@ boolector_free_uf_assignment (Btor *btor,
BTOR_ABORT (!size && values, "non zero 'values' but 'size == 0'");
funass =
btor_ass_get_fun ((const char **) args, (const char **) values, size);
(void) funass;
BTOR_ABORT (size != funass->size,
"wrong size given, expected %u, but got %u", funass->size, size);
#ifndef NDEBUG
char **cargs, **cvalues;
cargs = funass->cloned_indices;
Expand Down

0 comments on commit 4a3d82c

Please sign in to comment.