ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
format.h
Go to the documentation of this file.
1#ifndef _format_h_INCLUDED
2#define _format_h_INCLUDED
3
4#include "utilities.h"
5
6#include <stdbool.h>
7#include <stdint.h>
8
9#include "global.h"
11
12#define NUM_FORMAT_STRINGS 16
13#define FORMAT_STRING_SIZE 128
14
15typedef struct kormat kormat;
16
21
23
24char const *kissat_format_bytes (kormat *, uint64_t bytes);
25char const *kissat_format_count (kormat *, uint64_t);
26char const *kissat_format_ordinal (kormat *, uint64_t);
27char const *kissat_format_signs (kormat *, unsigned size, word);
28char const *kissat_format_time (kormat *, double seconds);
29char const *kissat_format_value (kormat *, bool boolean, int value);
30
31#define FORMAT_BYTES(BYTES) kissat_format_bytes (&solver->format, BYTES)
32
33#define FORMAT_COUNT(WORD) kissat_format_count (&solver->format, WORD)
34
35#define FORMAT_ORDINAL(WORD) kissat_format_ordinal (&solver->format, WORD)
36
37#define FORMAT_SIGNS(SIZE, SIGNS) \
38 kissat_format_signs (&solver->format, SIZE, SIGNS)
39
40#define FORMAT_TIME(SECONDS) kissat_format_time (&solver->format, SECONDS)
41
42#define FORMAT_VALUE(BOOLEAN, VALUE) \
43 kissat_format_value (&solver->format, BOOLEAN, VALUE)
44
46
47#endif
#define ABC_NAMESPACE_HEADER_END
#define ABC_NAMESPACE_HEADER_START
NAMESPACES ///.
ABC_NAMESPACE_IMPL_START typedef signed char value
char const * kissat_format_signs(kormat *, unsigned size, word)
Definition format.c:111
char const * kissat_format_ordinal(kormat *, uint64_t)
Definition format.c:123
char const * kissat_format_value(kormat *, bool boolean, int value)
Definition format.c:41
char const * kissat_format_time(kormat *, double seconds)
Definition format.c:75
char const * kissat_format_bytes(kormat *, uint64_t bytes)
Definition format.c:59
char const * kissat_format_count(kormat *, uint64_t)
Definition format.c:35
#define NUM_FORMAT_STRINGS
Definition format.h:12
char * kissat_next_format_string(kormat *)
Definition format.c:12
#define FORMAT_STRING_SIZE
Definition format.h:13
unsigned __int64 word
DECLARATIONS ///.
Definition kitPerm.c:36
unsigned pos
Definition format.h:18
char str[NUM_FORMAT_STRINGS][FORMAT_STRING_SIZE]
Definition format.h:19