Overly verbose `INFO` log on subsumption check
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 55/100
Research direction
Start by tracing the INFO messages from pyk.proof.reachability during the subsumption check and pyk.cterm.symbolic during get-model requests, using kontrol prove --verbose to reproduce them. Done means the implication and model terms no longer appear at INFO level, while the high-level step and request messages remain visible and the relevant logging behavior is covered by existing tests if available.
Written by the indexing model from the issue text.
Description
When the prover (e.g. kontrol prove) is ran with --verbose, the log level INFO is forwarded to stderr, which is very useful to see the high-level steps the prover makes.
However, at the subsumption check step, i.e. when preparing an implies request to the server, the prover outputs the whole implication term Kast at INFO level, which clutters the log:
...
INFO 2024-03-19 08:15:36,734 pyk.proof.reachability - Checking subsumption into target state
test%ArithmeticCallTest.test_double_add(uint256,uint256):0: (19, CTerm(config=KApply(label=KLabel(name='<generatedTop>',
params=()), args=(KApply(label=KLabel(name='<foundry>', params=()), args=(KApply(label=KLabel(name='<kevm>', params=()),
args=(KApply(label=KLabel(name='<k>', params=()), args=(KSequence(items=(KApply(label=KLabel(name='#halt_EVM_KItem',
params=( ....
...
Same applies to the get-model requests:
INFO 2024-03-19 08:16:09,730 pyk.kore.rpc - Received response from localhost:44199: 45 - implies
INFO 2024-03-19 08:16:09,852 pyk.cterm.symbolic - Getting model: CTerm(config=KApply(label=KLabel(name='<generatedTop>',
params=()), args=(KApply(label=K ...
Suggestion: output the implication term and the get model term at DEBUG level instead.
- Dominant language
- Python
- Stars
- 591
- Forks
- 163
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from runtimeverification/k
-
runtimeverification/k#4939 · 1 assignee ·
-
Concolic Explorer Open
Difficulty 5/5 Over a week Newbie friendliness 32/100
runtimeverification/k#4937 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
runtimeverification/k#4936 ·
-
type:epic
runtimeverification/k#4934 · 4 comments · 1 assignee ·
-
runtimeverification/k#4924 · 1 assignee ·
All issues in runtimeverification/k
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100