Formatting

This commit is contained in:
Artur Meski
2018-12-29 22:07:26 +00:00
parent 53504d6514
commit e4f5b7271e
11 changed files with 93 additions and 72 deletions

View File

@@ -57,10 +57,12 @@ BDD StateConstr::getBDDforContext(const SymRS *srs) const
BDD StateConstr::getBDD(const SymRS *srs, bool encode_context) const
{
if (oper == STC_PV) {
if (encode_context)
if (encode_context) {
return srs->encActStrEntity(proc_name, entity_name);
else
}
else {
return srs->encEntity(proc_name, entity_name);
}
}
else if (oper == STC_TF) {
if (tf) {
@@ -91,22 +93,26 @@ BDD StateConstr::getBDD(const SymRS *srs, bool encode_context) const
bool StateConstr::isFalse(void) const
{
if (oper == STC_TF && tf == false)
if (oper == STC_TF && tf == false) {
return true;
}
if (oper == STC_NOT && arg[0]->isTrue())
if (oper == STC_NOT && arg[0]->isTrue()) {
return true;
}
return false;
}
bool StateConstr::isTrue(void) const
{
if (oper == STC_TF && tf == true)
if (oper == STC_TF && tf == true) {
return true;
}
if (oper == STC_NOT && arg[0]->isFalse())
if (oper == STC_NOT && arg[0]->isFalse()) {
return true;
}
return false;
}