Skip to content
This repository was archived by the owner on Feb 1, 2020. It is now read-only.
This repository was archived by the owner on Feb 1, 2020. It is now read-only.

Strange behavior of proof mode  #2407

@kheradmand

Description

@kheradmand

I am using k-legacy the latest commit. I have the following definition and spec:

module TEST
    syntax Val ::= "@undef" 
    syntax Val ::= NUVal
    syntax NUVal ::=  "@val" "("Int","Int","Bool")"

    configuration
    <T>
        <k> $PGM:Val </k>
    </T>

    rule @val(I:Int,_,_) => I
endmodule


module SPEC
  imports TEST

 rule <k> V:NUVal => I:Int </k>

endmodule

The proof does no go through. However, if I change the rule from rule @val(I:Int,_,_) => I to rule <k> @val(I:Int,_,_) => I </k>
It goes through. In both case, if I give for example @val(1,2,false) as the input to krun it correctly gives me 1 as the output.
I am wondering whether it is a bug or a feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions