k-user AT lists.cs.illinois.edu
Subject: K-user mailing list
List archive
- From: Patrick Meredith <pmeredit AT gmail.com>
- To: Robby Findler <robby AT eecs.northwestern.edu>
- Cc: "k-user AT cs.uiuc.edu" <k-user AT cs.uiuc.edu>
- Subject: Re: [K-user] k local rewrite could not be eliminated here.
- Date: Tue, 16 Oct 2012 20:29:00 -0500
- List-archive: <http://lists.cs.uiuc.edu/pipermail/k-user/>
- List-id: <k-user.cs.uiuc.edu>
Your new rule is saying that there is somehow a <k> cell outside of the <threads> cell, and then inferring that there must be two <threads> cells.
-Patrick
--
-Patrick
On Tue, Oct 16, 2012 at 8:27 PM, Robby Findler <robby AT eecs.northwestern.edu> wrote:
Okay guys, thanks. I think I simplified too much. What is happening now?
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>
<threads> (. => <thread> <k> S </k> </thread>) ...</threads>ellipses,"right")),_=>_(_`(_`)('spawn_,S:K),_`(_`)('skip,.List`{K`})),k),
endmodule
Error: Cell <C> appears multiple times at the top level but its multipliciy
does not allow that. Check the initial configuration for the definition
matches the rule.
Term: <_>_</_>(__(C,_=_(ellipses,"both")),<_>_</_>(__(threads,_=_(ellipses,
"both")),<_>_</_>(__(thread,_=_(ellipses,"both")),<_>_</_>(__(k,_=_(
thread),threads),C)
Context:
Location: /Users/robby/git/robby/395-2012/imp.k:17:3:18:68
Compilation phase: CONTEXT-TRANSFORMERS
_______________________________________________
k-user mailing list
k-user AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/k-user
-Patrick
- [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.