-
Notifications
You must be signed in to change notification settings - Fork 1
/
TLFormulaV_OPER.cpp
55 lines (41 loc) · 1.14 KB
/
TLFormulaV_OPER.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
/*
* File: TLFormulaV_OPER.cc
* Project: QUEST
* Author: Marc Diefenbruch, Axel M. Hirche
* Date: (C) 1997, 1998 University of Essen, Germany
*/
#include "TLFormulaV_OPER.h"
#include "TLFormulaUNTIL.h"
#if _TL_INLINING_ == 0
#include "TLFormulaV_OPER.inl.h"
#endif
#if _SC_DMALLOC
#include <dmalloc.h>
#endif
TLFormulaV_OPER::~TLFormulaV_OPER (void)
{
/* void */
}
TLFormula* TLFormulaV_OPER::GetCopy (void) const
{
return new TLFormulaV_OPER (this);
}
TLFormula* TLFormulaV_OPER::Rewrite (void) const
{
return new TLFormulaV_OPER (leftOperand->Rewrite(),
rightOperand->Rewrite());
// a V b <==> (b W (a && b))
}
TLFormula* TLFormulaV_OPER::PushNegations (SCBoolean doIt) const
{
if (doIt)
return new TLFormulaUNTIL (leftOperand->PushNegations(doIt),
rightOperand->PushNegations(doIt));
else
return new TLFormulaV_OPER (leftOperand->PushNegations(doIt),
rightOperand->PushNegations(doIt));
}
SCNatural TLFormulaV_OPER::GetPrecedenceLevel (void) const
{
return PREC_LEVEL_1;
}