mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 19:24:21 +00:00
[analyzer] Assert if we ever get an over constrained state.
llvm-svn: 144821
This commit is contained in:
parent
3888aa4beb
commit
4f6c0e0cf6
@ -39,8 +39,11 @@ public:
|
||||
std::pair<const ProgramState*, const ProgramState*>
|
||||
assumeDual(const ProgramState *state, DefinedSVal Cond)
|
||||
{
|
||||
return std::make_pair(assume(state, Cond, true),
|
||||
assume(state, Cond, false));
|
||||
std::pair<const ProgramState*, const ProgramState*> res =
|
||||
std::make_pair(assume(state, Cond, true), assume(state, Cond, false));
|
||||
|
||||
assert(!(!res.first && !res.second) && "System is over constrained.");
|
||||
return res;
|
||||
}
|
||||
|
||||
virtual const llvm::APSInt* getSymVal(const ProgramState *state,
|
||||
|
Loading…
Reference in New Issue
Block a user