~ubuntu-branches/ubuntu/saucy/ladr/saucy

« back to all changes in this revision

Viewing changes to ladr/clash.h.bak

  • Committer: Package Import Robot
  • Author(s): Frank Lichtenheld
  • Date: 2013-05-25 11:43:32 UTC
  • mfrom: (5.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20130525114332-lkzco1dti2hwrf7v
Tags: 0.0.200911a-2
* QA upload.
* Upload to unstable.
* Change maintainer to QA group.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  Copyright (C) 2006, 2007 William McCune
2
 
 
3
 
    This file is part of the LADR Deduction Library.
4
 
 
5
 
    The LADR Deduction Library is free software; you can redistribute it
6
 
    and/or modify it under the terms of the GNU General Public License,
7
 
    version 2.
8
 
 
9
 
    The LADR Deduction Library is distributed in the hope that it will be
10
 
    useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
    GNU General Public License for more details.
13
 
 
14
 
    You should have received a copy of the GNU General Public License
15
 
    along with the LADR Deduction Library; if not, write to the Free Software
16
 
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17
 
*/
18
 
 
19
 
#ifndef TP_CLASH_H
20
 
#define TP_CLASH_H
21
 
 
22
 
#include "mindex.h"
23
 
#include "parautil.h"
24
 
 
25
 
/* INTRODUCTION
26
 
This package deals with clash structures, which are used for
27
 
binary resolution, hyperresolution, and UR-resolution.
28
 
The inference rule sets up a clash list (corresponding
29
 
to the nucleus), and then calls clash() to compute all of the
30
 
resolvents.
31
 
*/
32
 
 
33
 
/* Public definitions */
34
 
 
35
 
typedef struct clash  * Clash;
36
 
 
37
 
struct clash {
38
 
  BOOL       clashable;
39
 
  BOOL       clashed;
40
 
  BOOL       flipped;  /* Is nuc_lit or sat_lit a flipped equality? */
41
 
  Literals   nuc_lit;
42
 
  Context    nuc_subst;
43
 
  Literals   sat_lit;
44
 
  Context    sat_subst;
45
 
  Mindex     mate_index;
46
 
  Mindex_pos mate_pos;
47
 
  Clash      next;
48
 
};
49
 
 
50
 
/* End of public definitions */
51
 
 
52
 
/* Public function prototypes from clash.c */
53
 
 
54
 
void fprint_clash_mem(FILE *fp, BOOL heading);
55
 
 
56
 
void p_clash_mem();
57
 
 
58
 
Clash append_clash(Clash p);
59
 
 
60
 
void  zap_clash(Clash p);
61
 
 
62
 
Literals atom_to_literal(Term atom);
63
 
 
64
 
Literals apply_lit(Literals lit, Context c);
65
 
 
66
 
void clash(Clash c,
67
 
           BOOL (*sat_test) (Literals),
68
 
           Just_type rule,
69
 
           void (*proc_proc) (Topform));
70
 
 
71
 
#endif  /* conditional compilation of whole file */