k-user AT lists.cs.illinois.edu
Subject: K-user mailing list
List archive
- From: Robby Findler <robby AT eecs.northwestern.edu>
- To: k-user AT cs.uiuc.edu
- Subject: [K-user] k local rewrite could not be eliminated here.
- Date: Tue, 16 Oct 2012 19:59:47 -0500
- List-archive: <http://lists.cs.uiuc.edu/pipermail/k-user/>
- List-id: <k-user.cs.uiuc.edu>
I don't understand the error I'm getting for the program below when I
kompile it. This looks like it should be the same as the spawn in the
imp++ example, but apparently something is different. Am I just doing
something stupid?
Here's the error:
Error: K local rewrite could not be eliminated here. maybe you have a rewrite
within another rewrite?
Term: _=>_(_`(_`)('spawn_,S:K),_`(_`)('skip,.List`{K`}))
Context: -> _~>_ -> <_>_</_> -> __ -> <_>_</_>
Location: /Users/robby/git/robby/395-2012/imp.k:17:3:18:42
Compilation phase: MAKE-K-RULES
Here's the program:
module IMP
syntax Stmt ::= StmtVal
> "spawn" Stmt
syntax StmtVal ::= "skip"
syntax KResult ::= Bool | Int | String | StmtVal
configuration <C color="yellow">
<threads>
<thread multiplicity="*">
<k color="green"> $PGM:K </k>
</thread>
</threads>
</C>
rule <k> (spawn S => skip) ...</k>
. => <thread> <k> S </k> </thread>
endmodule
Thanks,
Robby
- [K-user] k local rewrite could not be eliminated here., Robby Findler, 10/16/2012
- <Possible follow-up(s)>
- Re: [K-user] k local rewrite could not be eliminated here., Patrick Meredith, 10/16/2012
- Re: [K-user] k local rewrite could not be eliminated here., Robby Findler, 10/16/2012
- Re: [K-user] k local rewrite could not be eliminated here., Rosu, Grigore, 10/16/2012
- Re: [K-user] k local rewrite could not be eliminated here., Robby Findler, 10/16/2012
- Message not available
- Re: [K-user] k local rewrite could not be eliminated here., Patrick Meredith, 10/16/2012
- Message not available
- Message not available
- Re: [K-user] k local rewrite could not be eliminated here., Patrick Meredith, 10/16/2012
- Re: [K-user] k local rewrite could not be eliminated here., Robby Findler, 10/16/2012
- Re: [K-user] k local rewrite could not be eliminated here., Rosu, Grigore, 10/16/2012
- Re: [K-user] k local rewrite could not be eliminated here., Patrick Meredith, 10/16/2012
- Message not available
Archive powered by MHonArc 2.6.16.