aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2020-10-25 10:57:33 +0100
committerMarc André Tanner <mat@brain-dump.org>2020-10-25 10:58:09 +0100
commit9e6e3fca54a3f9ee52d976e6dc021425c96d2515 (patch)
tree6a9ef1a406a98489a587eb09d903c00031d431b2
parent39c3bdd36248298c86989691f7a74dad7d3a1ace (diff)
downloadvis-9e6e3fca54a3f9ee52d976e6dc021425c96d2515.tar.gz
vis-9e6e3fca54a3f9ee52d976e6dc021425c96d2515.tar.xz
test/core: add labs(3) implementation for TIS analyzer
While the ACSL specification for the function prototype is present, the actual implementation is missing. Not sure why?
-rw-r--r--core/tap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/tap.h b/core/tap.h
index 390eb6f..b8a7213 100644
--- a/core/tap.h
+++ b/core/tap.h
@@ -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