edict_generate_tests
Generate structured test cases automatically from Z3-verified contracts, extracting boundary values and counterexamples to create regression tests without manual effort.
Instructions
Auto-generate structured test cases from Z3-verified contracts. For proven contracts, extracts boundary input values and expected outputs from Z3 models. For failing contracts, extracts counterexample inputs as regression tests. Returns an array of GeneratedTest objects — each with function name, input values, expected output, and source (boundary/counterexample). Use this to get free tests from formal specifications without writing them manually.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ast": "<ast>"
},
"name": "edict_generate_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ast | Yes | The Edict program AST (module) — same format as edict_check |