1 /********************* */
4 ** Top contributors (to current version):
6 ** This file is part of the CVC4 project.
7 ** Copyright (c) 2009-2019 by the authors listed in the file AUTHORS
8 ** in the top-level source directory) and their institutional affiliations.
9 ** All rights reserved. See the file COPYING in the top-level source
10 ** directory for licensing information.\endverbatim
12 ** \brief Debugging things.
16 ** These are low-level assertions! Generally you should use
17 ** CVC4::Assert() instead (they throw an exception!). See
21 #include "cvc4_private.h"
28 #ifdef CVC4_ASSERTIONS
29 // the __builtin_expect() helps us if assert is built-in or a macro
30 # define cvc4assert(x) assert(__builtin_expect( ( x ), true ))
32 // TODO: use a compiler annotation when assertions are off ?
33 // (to improve optimization)
34 # define cvc4assert(x) /*__builtin_expect( ( x ), true )*/
35 #endif /* CVC4_ASSERTIONS */
37 #endif /* CVC4__DEBUG_H */