Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b588134

Browse files
author
Leonardo Alt
committed
[SMTChecker] Fix typo in the code (satisifable->satisfiable)
1 parent 55752db commit b588134

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

libsolidity/formal/SMTChecker.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ void SMTChecker::checkCondition(
560560
}
561561
smt::CheckResult result;
562562
vector<string> values;
563-
tie(result, values) = checkSatisifableAndGenerateModel(expressionsToEvaluate);
563+
tie(result, values) = checkSatisfiableAndGenerateModel(expressionsToEvaluate);
564564

565565
string conditionalComment;
566566
if (m_conditionalExecutionHappened)
@@ -607,12 +607,12 @@ void SMTChecker::checkBooleanNotConstant(Expression const& _condition, string co
607607

608608
m_interface->push();
609609
addPathConjoinedExpression(expr(_condition));
610-
auto positiveResult = checkSatisifable();
610+
auto positiveResult = checkSatisfiable();
611611
m_interface->pop();
612612

613613
m_interface->push();
614614
addPathConjoinedExpression(!expr(_condition));
615-
auto negatedResult = checkSatisifable();
615+
auto negatedResult = checkSatisfiable();
616616
m_interface->pop();
617617

618618
if (positiveResult == smt::CheckResult::ERROR || negatedResult == smt::CheckResult::ERROR)
@@ -642,7 +642,7 @@ void SMTChecker::checkBooleanNotConstant(Expression const& _condition, string co
642642
}
643643

644644
pair<smt::CheckResult, vector<string>>
645-
SMTChecker::checkSatisifableAndGenerateModel(vector<smt::Expression> const& _expressionsToEvaluate)
645+
SMTChecker::checkSatisfiableAndGenerateModel(vector<smt::Expression> const& _expressionsToEvaluate)
646646
{
647647
smt::CheckResult result;
648648
vector<string> values;
@@ -672,9 +672,9 @@ SMTChecker::checkSatisifableAndGenerateModel(vector<smt::Expression> const& _exp
672672
return make_pair(result, values);
673673
}
674674

675-
smt::CheckResult SMTChecker::checkSatisifable()
675+
smt::CheckResult SMTChecker::checkSatisfiable()
676676
{
677-
return checkSatisifableAndGenerateModel({}).first;
677+
return checkSatisfiableAndGenerateModel({}).first;
678678
}
679679

680680
void SMTChecker::initializeLocalVariables(FunctionDefinition const& _function)

libsolidity/formal/SMTChecker.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ class SMTChecker: private ASTConstVisitor
100100

101101

102102
std::pair<smt::CheckResult, std::vector<std::string>>
103-
checkSatisifableAndGenerateModel(std::vector<smt::Expression> const& _expressionsToEvaluate);
103+
checkSatisfiableAndGenerateModel(std::vector<smt::Expression> const& _expressionsToEvaluate);
104104

105-
smt::CheckResult checkSatisifable();
105+
smt::CheckResult checkSatisfiable();
106106

107107
void initializeLocalVariables(FunctionDefinition const& _function);
108108
void resetVariables(std::vector<Declaration const*> _variables);

0 commit comments

Comments
 (0)