Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[K-Bug] <pyk coverage runerror> #4664

Open
6 tasks
nn020701 opened this issue Oct 17, 2024 · 0 comments
Open
6 tasks

[K-Bug] <pyk coverage runerror> #4664

nn020701 opened this issue Oct 17, 2024 · 0 comments

Comments

@nn020701
Copy link

What component is the issue in?

None

Which command

  • kompile
  • kast
  • krun
  • kprove
  • kprovex
  • ksearch

What K Version?

v7.1.151

Operating System

Linux

K Definitions (If Possible)

No response

Steps to Reproduce

kompile main.k --coverage --emit-json
krun adder.generic.mlir --definition main-kompiled
pyk coverage ../main-kompiled/ 833780_coverage.txt

Traceback (most recent call last):
  File "/home/zjh/proj/cym-circt-semantics/.venv/bin/pyk", line 8, in <module>
    sys.exit(main())
  File "/home/zjh/proj/cym-circt-semantics/.venv/lib/python3.10/site-packages/pyk/__main__.py", line 98, in main
    execute(options)
  File "/home/zjh/proj/cym-circt-semantics/.venv/lib/python3.10/site-packages/pyk/__main__.py", line 394, in exec_coverage
    definition = remove_source_map(read_kast_definition(kompiled_dir / 'compiled.json'))
  File "/home/zjh/proj/cym-circt-semantics/.venv/lib/python3.10/site-packages/pyk/kast/manip.py", line 567, in remove_source_map
    return on_attributes(definition, lambda att: att.drop_source())
  File "/home/zjh/proj/cym-circt-semantics/.venv/lib/python3.10/site-packages/pyk/kast/manip.py", line 503, in on_attributes
    return kast.let(modules=modules)  # type: ignore
TypeError: KDefinition.let() got an unexpected keyword argument 'modules'

Expected Results

coverage success

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant