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

Pyk crash when accessing kompiled definition #4475

Open
Baltoli opened this issue Jun 24, 2024 · 0 comments
Open

Pyk crash when accessing kompiled definition #4475

Baltoli opened this issue Jun 24, 2024 · 0 comments

Comments

@Baltoli
Copy link
Contributor

Baltoli commented Jun 24, 2024

A user on Discord reports a crash in Pyk:

module PROGRAM-SYNTAX
    syntax Exp

    syntax Stmt ::= 
        "start" Exp "middle" Exp "end"    [seqstrict(1, 2)] 
    
    syntax KResult

endmodule

module PROGRAM
    imports PROGRAM-SYNTAX

endmodule
from pyk.ktool.kprove  import KProve
from pyk.ktool.kompile import HaskellKompile, KompileArgs
from pathlib           import Path

source_dir   = '/home/alex/repos_from2024/k/kprover/records/'
main_file    = source_dir + '/program.k'
kompiled_dir = source_dir + '/program-kompile2/'

base_args    = KompileArgs(main_file = main_file)
kompile      = HaskellKompile(base_args=base_args)    
kompile_res  = kompile.__call__(output_dir=kompiled_dir)

kprove = KProve(Path(kompiled_dir))
kprove.definition

I haven't triaged this at all; not sure what's happening.

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