ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
error.c File Reference
#include "error.h"
#include "colors.h"
#include "cover.h"
#include <stdarg.h>
#include <stdlib.h>
Include dependency graph for error.c:

Go to the source code of this file.

Functions

void kissat_call_function_instead_of_abort (void(*f)(void))
 
void kissat_abort (void)
 
void kissat_fatal_message_start (void)
 
void kissat_error (const char *fmt,...)
 
void kissat_fatal (const char *fmt,...)
 

Function Documentation

◆ kissat_abort()

void kissat_abort ( void )

Definition at line 19 of file error.c.

20{
21 if (kissat_abort_function)
22 { FLUSH_COVERAGE (); kissat_abort_function (); } // Keep all in this line.
23 else
24 { FLUSH_COVERAGE (); abort (); } // Keep all in this line.
25}
#define FLUSH_COVERAGE()
Definition cover.h:26
VOID_HACK abort()
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kissat_call_function_instead_of_abort()

void kissat_call_function_instead_of_abort ( void(* )(void))

Definition at line 12 of file error.c.

12 {
13 kissat_abort_function = f;
14}
Here is the caller graph for this function:

◆ kissat_error()

void kissat_error ( const char * fmt,
... )

Definition at line 51 of file error.c.

51 {
52 va_list ap;
53 va_start (ap, fmt);
54 vprint_error ("error", fmt, &ap);
55 va_end (ap);
56}

◆ kissat_fatal()

void kissat_fatal ( const char * fmt,
... )

Definition at line 58 of file error.c.

58 {
59 va_list ap;
60 va_start (ap, fmt);
61 vprint_error ("fatal error", fmt, &ap);
62 va_end (ap);
63 kissat_abort ();
64}
void kissat_abort(void)
Definition error.c:19
Here is the call graph for this function:
Here is the caller graph for this function:

◆ kissat_fatal_message_start()

void kissat_fatal_message_start ( void )

Definition at line 40 of file error.c.

40 {
41 typed_error_message_start ("fatal error");
42}
Here is the caller graph for this function: