-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTLFormulaTRUE.cpp
More file actions
47 lines (33 loc) · 810 Bytes
/
Copy pathTLFormulaTRUE.cpp
File metadata and controls
47 lines (33 loc) · 810 Bytes
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
/*
* File: TLFormulaTRUE.cc
* Project: QUEST
* Author: Marc Diefenbruch, Axel M Hirche
* Date: (C) 1997, 1998 University of Essen, Germany
*/
#include "TLFormulaTRUE.h"
#include "TLFormulaFALSE.h"
#if _TL_INLINING_ == 0
#include "TLFormulaTRUE.inl.h"
#endif
#if _SC_DMALLOC
#include <dmalloc.h>
#endif
TLFormulaTRUE::~TLFormulaTRUE (void)
{
/* empty */
}
TLFormula* TLFormulaTRUE::GetCopy (void) const
{
return new TLFormulaTRUE();
}
TLFormula* TLFormulaTRUE::Rewrite (void) const
{
return new TLFormulaTRUE(); // No need for rewriting.
}
TLFormula* TLFormulaTRUE::PushNegations (SCBoolean doIt) const
{
if (doIt)
return new TLFormulaFALSE(); // true becomes false - life is a lie, you know...
else
return new TLFormulaTRUE();
}