ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
cadical_contract.cpp
Go to the documentation of this file.
1#include "global.h"
2
3#ifndef CADICAL_NCONTRACTS
4
5#include "internal.hpp"
6
8
9namespace CaDiCaL {
10
12
13// See comments in 'contract.hpp'. Ugly hack we keep for now.
14
15void require_solver_pointer_to_be_non_zero (const void *ptr,
16 const char *function_name,
17 const char *file_name) {
18 if (ptr)
19 return;
21 fprintf (stderr,
22 "invalid API usage of '%s' in '%s': "
23 "solver 'this' pointer zero (not initialized)\n",
24 function_name, file_name);
25 fflush (stderr);
26 abort ();
27}
28
29} // namespace CaDiCaL
30
32
33#endif
#define ABC_NAMESPACE_IMPL_START
#define ABC_NAMESPACE_IMPL_END
void fatal_message_start()
VOID_HACK abort()