aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2021-04-17 14:50:03 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2021-04-17 14:50:51 +0200
commit15806a1f68178a278c7a297b163d5692fe71cbf2 (patch)
treeb2fdbb4fbd4fde1e274747f6dcf8c7770a0af66b
parent2e3c2464ca3522fe0a6dfc93ea36c88cbe7bf117 (diff)
downloadsparse-15806a1f68178a278c7a297b163d5692fe71cbf2.tar.gz
scheck: predefine __SYMBOLIC_CHECKER__
It can be useful to use the same testcase for the symbolic checker and normal sparse (or test-linearize) processing. So, there must be a mean to somehow ignore the assertions used for the symbolic checker when it's not used (since these are otherwise not known to sparse). Resolve this by adding a predefine, __SYMBOLIC_CHECKER__, to the symbolic checker. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--scheck.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scheck.c b/scheck.c
index 6752b9d9..754fe76f 100644
--- a/scheck.c
+++ b/scheck.c
@@ -352,6 +352,7 @@ int main(int argc, char **argv)
sparse_initialize(argc, argv, &filelist);
declare_builtins(0, builtins_scheck);
+ predefine_strong("__SYMBOLIC_CHECKER__");
// Expand, linearize and check.
FOR_EACH_PTR(filelist, file) {