mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Merge pull request #5504 from ethereum/smt_fix_emscripten
[SMTChecker] Fix crash when SMTLib2Interface reports unknow for constant checks
This commit is contained in:
		
						commit
						f6d8810103
					
				| @ -889,6 +889,10 @@ void SMTChecker::checkBooleanNotConstant(Expression const& _condition, string co | ||||
| 	{ | ||||
| 		// everything fine.
 | ||||
| 	} | ||||
| 	else if (positiveResult == smt::CheckResult::UNKNOWN || negatedResult == smt::CheckResult::UNKNOWN) | ||||
| 	{ | ||||
| 		// can't do anything.
 | ||||
| 	} | ||||
| 	else if (positiveResult == smt::CheckResult::UNSATISFIABLE && negatedResult == smt::CheckResult::UNSATISFIABLE) | ||||
| 		m_errorReporter.warning(_condition.location(), "Condition unreachable."); | ||||
| 	else | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user