Skip to content

Commit

Permalink
test/core: add labs(3) implementation for TIS analyzer
Browse files Browse the repository at this point in the history
While the ACSL specification for the function prototype is present,
the actual implementation is missing. Not sure why?
  • Loading branch information
martanne committed Oct 25, 2020
1 parent 39c3bdd commit 9e6e3fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/tap.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ time_t time(time_t *p)
return value;
}

long labs(long v)
{
return v > 0 ? v : -v;
}

#else
#include <ccan/tap/tap.h>
#define TIS_INTERPRETER 0
Expand Down

0 comments on commit 9e6e3fc

Please sign in to comment.