Skip to Content.
Sympa Menu

k-user - [K-user] k local rewrite could not be eliminated here.

k-user AT lists.cs.illinois.edu

Subject: K-user mailing list

List archive

[K-user] k local rewrite could not be eliminated here.


Chronological Thread 
  • 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




Archive powered by MHonArc 2.6.16.

Top of Page