/********************* */ /*! \file debug.h ** \verbatim ** Top contributors (to current version): ** Morgan Deters ** This file is part of the CVC4 project. ** Copyright (c) 2009-2018 by the authors listed in the file AUTHORS ** in the top-level source directory) and their institutional affiliations. ** All rights reserved. See the file COPYING in the top-level source ** directory for licensing information.\endverbatim ** ** \brief Debugging things. ** ** Debugging things. ** ** These are low-level assertions! Generally you should use ** CVC4::Assert() instead (they throw an exception!). See ** util/Assert.h. **/ #include "cvc4_private.h" #ifndef __CVC4__DEBUG_H #define __CVC4__DEBUG_H #include #ifdef CVC4_ASSERTIONS // the __builtin_expect() helps us if assert is built-in or a macro # define cvc4assert(x) assert(__builtin_expect( ( x ), true )) #else // TODO: use a compiler annotation when assertions are off ? // (to improve optimization) # define cvc4assert(x) /*__builtin_expect( ( x ), true )*/ #endif /* CVC4_ASSERTIONS */ #endif /* __CVC4__DEBUG_H */