This commit is contained in:
Artur Meski
2018-12-02 20:22:57 +00:00
parent c8e02156b9
commit 215015df57
4 changed files with 18 additions and 7 deletions

View File

@@ -94,9 +94,9 @@ bool StateConstr::isFalse(void) const
if (oper == STC_TF && tf == false)
return true;
if (oper == STC_NOT && arg[0]->oper == STC_TF && arg[0]->tf == true)
if (oper == STC_NOT && arg[0]->isTrue())
return true;
return false;
}
@@ -105,7 +105,7 @@ bool StateConstr::isTrue(void) const
if (oper == STC_TF && tf == true)
return true;
if (oper == STC_NOT && arg[0]->oper == STC_TF && arg[0]->tf == false)
if (oper == STC_NOT && arg[0]->isFalse())
return true;
return false;