k-user AT lists.cs.illinois.edu
Subject: K-user mailing list
List archive
- From: samira kherfellah <samira.kherfellah AT gmail.com>
- To: k-user AT cs.uiuc.edu
- Subject: [K-user] boolean variables in k
- Date: Mon, 22 Jul 2013 17:53:01 +0200
- List-archive: <http://lists.cs.uiuc.edu/pipermail/k-user/>
- List-id: <k-user.cs.uiuc.edu>
Hi All;
I have a small problem when handling boolean varibles in k.
I have the following rules:
rule <k> provided E:Exp ; nextstate S:Id ; => nextstate S ; ...</k> when E = true
rule <k> provided E:Exp ; nextstate S:Id ; => . ...</k> when E = false
but at the execution of an example, it never pass in the next state, it hangs in the current state.
If, for example we have:
process A (1) ;
state idle #start ;
task i:= i +2 ;
nextstate wait;
endstate;
state wait ;
provided i < 0;
nextstate ab;
provided i > 0;
nextstate cd;
endstate
state ab ;
...
endstate;
state cd ;
....
endstate;
endprocess;
The writing of the rules is correct? it should add something else to evaluate E?
Thank you all.
Samira
Samira
- [K-user] boolean variables in k, samira kherfellah, 07/22/2013
- Re: [K-user] boolean variables in k, Stefan Ciobaca, 07/22/2013
- <Possible follow-up(s)>
- Re: [K-user] boolean variables in k, samir barchiche, 07/23/2013
- Re: [K-user] boolean variables in k, samira kherfellah, 07/23/2013
Archive powered by MHonArc 2.6.16.