From: Brian Norris Date: Sat, 1 Jun 2013 23:08:16 +0000 (-0700) Subject: README: add bit on MODEL_ASSERT() macro X-Git-Url: http://plrg.eecs.uci.edu/git/?p=cdsspec-compiler.git;a=commitdiff_plain;h=074f97c4bb71c6d9851daec95eae14cf1c3bab25;ds=inline README: add bit on MODEL_ASSERT() macro --- diff --git a/README b/README index e4a85bd..3064ce6 100644 --- a/README +++ b/README @@ -136,6 +136,11 @@ including and utilizing the appropriate functions (store_{8,16,32,64}() and load_{8,16,32,64}()) for loading/storing data from/to non-atomic shared memory. +CDSChecker can also check boolean assertions in your test programs. Just +include and use the MODEL_ASSERT() macro in your test program. +CDSChecker will report a bug in any possible execution in which the argument to +MODEL_ASSERT() evaluates to false (that is, 0). + Test programs should be compiled against our shared library (libmodel.so) using the headers in the include/ directory. Then the shared library must be made available to the dynamic linker, using the LD_LIBRARY_PATH environment