mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Do not report error when rlimit
This commit is contained in:
parent
cb60c678ce
commit
0223571987
@ -95,9 +95,12 @@ pair<CheckResult, CHCSolverInterface::CexGraph> Z3CHCInterface::query(Expression
|
||||
}
|
||||
// TODO retrieve model / invariants
|
||||
}
|
||||
catch (z3::exception const&)
|
||||
catch (z3::exception const& _err)
|
||||
{
|
||||
result = CheckResult::ERROR;
|
||||
if (_err.msg() == string("max. resource limit exceeded"))
|
||||
result = CheckResult::UNKNOWN;
|
||||
else
|
||||
result = CheckResult::ERROR;
|
||||
cex = {};
|
||||
}
|
||||
|
||||
|
@ -17,5 +17,4 @@ contract C
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 1218: (297-321): Error trying to invoke SMT solver.
|
||||
// Warning 4661: (297-321): Assertion violation happens here.
|
||||
|
@ -18,7 +18,6 @@ contract Der is Base {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 1218: (der:101-109): Error trying to invoke SMT solver.
|
||||
// Warning 6328: (der:113-126): Assertion violation happens here.
|
||||
// Warning 2661: (base:100-103): Overflow (resulting value larger than 2**256 - 1) happens here.
|
||||
// Warning 2661: (der:101-109): Overflow (resulting value larger than 2**256 - 1) happens here.
|
||||
|
@ -14,6 +14,5 @@ contract C
|
||||
// ====
|
||||
// SMTSolvers: z3
|
||||
// ----
|
||||
// Warning 1218: (176-181): Error trying to invoke SMT solver.
|
||||
// Warning 6328: (189-203): Assertion violation happens here.
|
||||
// Warning 2661: (176-181): Overflow (resulting value larger than 2**256 - 1) happens here.
|
||||
|
@ -14,5 +14,4 @@ contract C
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 1218: (176-181): Error trying to invoke SMT solver.
|
||||
// Warning 2661: (176-181): Overflow (resulting value larger than 2**256 - 1) happens here.
|
||||
|
@ -19,7 +19,6 @@ contract LoopFor2 {
|
||||
// ====
|
||||
// SMTSolvers: z3
|
||||
// ----
|
||||
// Warning 1218: (244-249): Error trying to invoke SMT solver.
|
||||
// Warning 6328: (281-301): Assertion violation happens here.
|
||||
// Warning 6328: (305-324): Assertion violation happens here.
|
||||
// Warning 6328: (328-347): Assertion violation happens here.
|
||||
|
@ -23,6 +23,5 @@ contract LoopFor2 {
|
||||
// ====
|
||||
// SMTSolvers: z3
|
||||
// ----
|
||||
// Warning 1218: (237-242): Error trying to invoke SMT solver.
|
||||
// Warning 6328: (362-382): Assertion violation happens here.
|
||||
// Warning 6328: (409-428): Assertion violation happens here.
|
||||
|
@ -21,8 +21,6 @@ contract LoopFor2 {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 1218: (229-234): Error trying to invoke SMT solver.
|
||||
// Warning 1218: (296-316): Error trying to invoke SMT solver.
|
||||
// Warning 6328: (320-339): Assertion violation happens here.
|
||||
// Warning 6328: (343-362): Assertion violation happens here.
|
||||
// Warning 4661: (296-316): Assertion violation happens here.
|
||||
|
@ -9,4 +9,3 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 1218: (174-212): Error trying to invoke SMT solver.
|
||||
|
@ -9,4 +9,3 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 1218: (166-183): Error trying to invoke SMT solver.
|
||||
|
@ -11,5 +11,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 1218: (173-192): Error trying to invoke SMT solver.
|
||||
// Warning 7812: (173-192): Assertion violation might happen here.
|
||||
|
@ -10,5 +10,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 1218: (157-172): Error trying to invoke SMT solver.
|
||||
// Warning 7812: (157-172): Assertion violation might happen here.
|
||||
|
Loading…
Reference in New Issue
Block a user