File: ccl_clauseinfo.h

package info (click to toggle)
eprover 2.6%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 21,288 kB
  • sloc: ansic: 331,111; csh: 12,026; python: 10,178; awk: 5,825; makefile: 461; sh: 389
file content (73 lines) | stat: -rw-r--r-- 2,541 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*-----------------------------------------------------------------------

File  : ccl_clauseinfo.h

Author: Stephan Schulz (schulz@eprover.org)

Contents

  Datatype and basic functions for storing and handling clause
  information that few clauses carry (probably just input
  clauses). This is not stored in the clause (or formula) data types,
  because it would eat  up to much memory (remember, there are
  millions of clauses)

  Copyright 2004-1017 by the authors.
  This code is released under the GNU General Public Licence and
  the GNU Lesser General Public License.
  See the file COPYING in the main E directory for details..
  Run "eprover -h" for contact information.

Changes


-----------------------------------------------------------------------*/

#ifndef CCL_CLAUSEINFO

#define CCL_CLAUSEINFO

#include <clb_memory.h>
#include <clb_dstrings.h>


/*---------------------------------------------------------------------*/
/*                    Data type declarations                           */
/*---------------------------------------------------------------------*/

typedef struct clause_info_cell
{
   char *name;   /* In the input file, if any */
   char *source; /* File name, if any */
   long line;
   long column;
}ClauseInfoCell, *ClauseInfo_p;



/*---------------------------------------------------------------------*/
/*                Exported Functions and Variables                     */
/*---------------------------------------------------------------------*/

#define ClauseInfoCellAlloc()    (ClauseInfoCell*)SizeMalloc(sizeof(ClauseInfoCell))
#define ClauseInfoCellFree(junk) SizeFree(junk, sizeof(ClauseInfoCell))

ClauseInfo_p ClauseInfoAlloc(char* name, char* source, long line, long column);
#define      ClauseInfoAllocEmpty() ClauseInfoAlloc(NULL, NULL, -1, -1)
void         ClauseInfoFree(ClauseInfo_p info);
void         ClauseSourceInfoPrint(FILE* out, ClauseInfo_p info,
                                   char *inf_lit, char* delim);
#define ClauseSourceInfoPrintTSTP(out, info) \
        ClauseSourceInfoPrint((out), (info), "file", "'")

#define ClauseSourceInfoPrintPCL(out, info) \
        ClauseSourceInfoPrint((out), (info), "initial", "\"")
long    ClauseInfoGetIdNameSpace(ClauseInfo_p info);
long    ClauseInfoGetIdCounter(ClauseInfo_p info);


#endif

/*---------------------------------------------------------------------*/
/*                        End of File                                  */
/*---------------------------------------------------------------------*/