-
Notifications
You must be signed in to change notification settings - Fork 1
/
TLFormulaIMPLIES.cpp
59 lines (42 loc) · 1.06 KB
/
TLFormulaIMPLIES.cpp
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
/*
* File: TLFormulaIMPLIES.cc
* Project: QUEST
* Author: Marc Diefenbruch, Axel M. Hirche
* Date: (C) 1997, 1998 University of Essen, Germany
*/
#include "TLFormulaIMPLIES.h"
#include "TLFormulaOR.h"
#include "TLFormulaNOT.h"
#if _SC_DMALLOC
#include <dmalloc.h>
#endif
#if _TL_INLINING_ == 0
#include "TLFormulaIMPLIES.inl.h"
#endif
TLFormulaIMPLIES::~TLFormulaIMPLIES (void)
{
/* void */
}
TLFormula* TLFormulaIMPLIES::GetCopy (void) const
{
return new TLFormulaIMPLIES (this);
}
TLFormula* TLFormulaIMPLIES::Rewrite (void) const
{
TLFormulaNOT* tmpLeft = new TLFormulaNOT (leftOperand->Rewrite(),
true);
TLFormula* tmpRight = rightOperand->Rewrite();
assert (tmpLeft);
assert (tmpRight);
return new TLFormulaOR (tmpLeft,
tmpRight);
}
TLFormula* TLFormulaIMPLIES::PushNegations (SCBoolean) const
{
TLAssert (false, "Operator IMPLIES not allowed here.");
return NULL;
}
SCNatural TLFormulaIMPLIES::GetPrecedenceLevel (void) const
{
return PREC_LEVEL_1;
}