Skip to content

Commit b099997

Browse files
committed
feat(crab): use macro to avoid crab infer 0 size allocation
1 parent 78ea93e commit b099997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

seahorn/lib/proof_allocators.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
void *realloc(void *ptr, size_t new_size) { return sea_realloc(ptr, new_size); }
1515

16-
void *bounded_malloc(size_t size) {
16+
void *bounded_malloc_havoc(size_t size) {
1717
#ifdef __CRAB__
1818
assume(size > 1);
1919
#endif
2020
return size == 0 ? NULL : sea_malloc_havoc_safe(size);
2121
}
2222

23-
void *can_fail_malloc(size_t size) {
23+
void *can_fail_malloc_havoc(size_t size) {
2424
#ifdef __CRAB__
2525
assume(size > 1);
2626
#endif

0 commit comments

Comments
 (0)