ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
build.c File Reference
#include "build.h"
#include "colors.h"
#include "kissat.h"
#include "print.h"
#include <stdio.h>
Include dependency graph for build.c:

Go to the source code of this file.

Macros

#define PREFIX(COLORS)
 
#define NL()
 

Functions

ABC_NAMESPACE_IMPL_START const char * kissat_signature (void)
 
const char * kissat_id (void)
 
const char * kissat_compiler (void)
 
const char ** kissat_copyright (void)
 
const char * kissat_version (void)
 
void kissat_build (const char *prefix)
 
void kissat_banner (const char *prefix, const char *name)
 

Macro Definition Documentation

◆ NL

#define NL ( )
Value:
do { \
fputs ("\n", stdout); \
COLOR (NORMAL); \
} while (0)
#define NORMAL
Definition colors.h:18

Definition at line 32 of file build.c.

32#define NL() \
33 do { \
34 fputs ("\n", stdout); \
35 COLOR (NORMAL); \
36 } while (0)

◆ PREFIX

#define PREFIX ( COLORS)
Value:
do { \
if (prefix) \
fputs (prefix, stdout); \
COLOR (COLORS); \
} while (0)

Definition at line 25 of file build.c.

25#define PREFIX(COLORS) \
26 do { \
27 if (prefix) \
28 fputs (prefix, stdout); \
29 COLOR (COLORS); \
30 } while (0)

Function Documentation

◆ kissat_banner()

void kissat_banner ( const char * prefix,
const char * name )

Definition at line 59 of file build.c.

59 {
60 TERMINAL (stdout, 1);
61 if (!prefix)
62 connected_to_terminal = false;
63
65 printf ("%s", name);
66 NL ();
67
69 NL ();
70
71 for (const char **p = kissat_copyright (), *line; (line = *p); p++) {
73 fputs (line, stdout);
74 NL ();
75 }
76
77 if (prefix) {
78 PREFIX ("");
79 NL ();
80 }
81
82 kissat_build (prefix);
83}
const char ** kissat_copyright(void)
Definition build.c:21
#define NL()
Definition build.c:32
void kissat_build(const char *prefix)
Definition build.c:38
#define PREFIX(COLORS)
Definition build.c:25
#define BOLD
Definition colors.h:14
#define MAGENTA
Definition colors.h:17
#define TERMINAL(F, I)
Definition colors.h:34
Cube * p
Definition exorList.c:222
char * name
Definition main.h:24
Here is the call graph for this function:

◆ kissat_build()

void kissat_build ( const char * prefix)

Definition at line 38 of file build.c.

38 {
39 TERMINAL (stdout, 1);
40 if (!prefix)
41 connected_to_terminal = false;
42
44 if (ID)
45 printf ("Version %s %s", VERSION, ID);
46 else
47 printf ("Version %s", VERSION);
48 NL ();
49
51 printf ("%s", COMPILER);
52 NL ();
53
55 printf ("%s", BUILD);
56 NL ();
57}
#define BUILD
Definition build.h:7
#define ID
Definition build.h:6
#define COMPILER
#define VERSION
Definition espresso.h:367
Here is the caller graph for this function:

◆ kissat_compiler()

const char * kissat_compiler ( void )

Definition at line 14 of file build.c.

14{ return COMPILER; }

◆ kissat_copyright()

const char ** kissat_copyright ( void )

Definition at line 21 of file build.c.

21{ return copyright_lines; }
Here is the caller graph for this function:

◆ kissat_id()

const char * kissat_id ( void )

Definition at line 12 of file build.c.

12{ return ID; }

◆ kissat_signature()

ABC_NAMESPACE_IMPL_START const char * kissat_signature ( void )

Definition at line 10 of file build.c.

10{ return "kissat-" VERSION; }

◆ kissat_version()

const char * kissat_version ( void )

Definition at line 23 of file build.c.

23{ return VERSION; }