Skip to content

[Bug] [kompile] - Implicit import of the module BOOL #2564

@amelieled

Description

@amelieled

K Version

$ kompile --version

K version: 5.2.110
Build date: Mon Mar 21 00:10:55 CET 2022

Description

The command kompile lazy.k returns the error:

[Error] Internal: Uncaught exception thrown of type NoSuchElementException.
Please rerun your program with the --debug flag to generate a stack trace, and
file a bug report at https://github.com/runtimeverification/k/issues
(NoSuchElementException: key not found: _andBool_)

Input Files

The file lazy.k is:

module LAZY-SYNTAX
    // imports BOOL
    syntax MyBool ::= "mytrue" | "myfalse"
    syntax BExp ::= MyBool | BExp "myand" BExp [strict(1)]

    syntax KResult ::= MyBool

endmodule

module LAZY
    imports LAZY-SYNTAX

    rule mytrue  myand B2 => B2
    rule myfalse myand _  => myfalse

endmodule

Expected Behavior

The command kompile lazy.k should return nothing.

To fix the problem, you can uncomment the second line (imports BOOL).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions