mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
new tests
This commit is contained in:
parent
d70d137898
commit
d8ebc29c55
1
test/cmdlineTests/model_checker_solvers_eld/args
Normal file
1
test/cmdlineTests/model_checker_solvers_eld/args
Normal file
@ -0,0 +1 @@
|
||||
--model-checker-engine chc --model-checker-solvers eld
|
||||
1
test/cmdlineTests/model_checker_solvers_eld/err
Normal file
1
test/cmdlineTests/model_checker_solvers_eld/err
Normal file
@ -0,0 +1 @@
|
||||
Warning: CHC analysis was not possible since Eldarica was the only Horn solver enabled, but it was not found in the system.
|
||||
7
test/cmdlineTests/model_checker_solvers_eld/input.sol
Normal file
7
test/cmdlineTests/model_checker_solvers_eld/input.sol
Normal file
@ -0,0 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity >=0.0;
|
||||
contract test {
|
||||
function f(uint x) public pure {
|
||||
assert(x > 0);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
{
|
||||
"language": "Solidity",
|
||||
"sources":
|
||||
{
|
||||
"A":
|
||||
{
|
||||
"content": "// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.0;\n\ncontract C { function f(uint x) public pure { assert(x > 0); } }"
|
||||
}
|
||||
},
|
||||
"settings":
|
||||
{
|
||||
"modelChecker":
|
||||
{
|
||||
"engine": "chc",
|
||||
"solvers": ["eld"]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
{"errors":[{"component":"general","errorCode":"7267","formattedMessage":"Warning: CHC analysis was not possible since Eldarica was the only Horn solver enabled, but it was not found in the system.
|
||||
|
||||
","message":"CHC analysis was not possible since Eldarica was the only Horn solver enabled, but it was not found in the system.","severity":"warning","type":"Warning"}],"sources":{"A":{"id":0}}}
|
||||
8
test/libsolidity/smtCheckerTests/eldarica/smoke.sol
Normal file
8
test/libsolidity/smtCheckerTests/eldarica/smoke.sol
Normal file
@ -0,0 +1,8 @@
|
||||
contract C {
|
||||
function f(uint x) public pure {
|
||||
assert(x > 0);
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// SMTEngine: chc
|
||||
// SMTSolvers: eld
|
||||
Loading…
Reference in New Issue
Block a user