k-user AT lists.cs.illinois.edu
Subject: K-user mailing list
List archive
- From: Omar Duhaiby <3omarz AT gmail.com>
- To: Dwight Guth <dwight.guth AT gmail.com>
- Cc: "k-user AT cs.uiuc.edu" <k-user AT cs.uiuc.edu>, "Musab A. AlTurki" <musab AT kfupm.edu.sa>
- Subject: Re: [K-user] Substitution module causes warning on kompile
- Date: Wed, 5 Nov 2014 00:46:28 +0300
- List-archive: <http://lists.cs.uiuc.edu/pipermail/k-user/>
- List-id: <k-user.cs.uiuc.edu>
I was just testing it, and it's working. It was my mistake. I used the old syntax for lists, so the value was not substituted. It was something like
<k> E => E [V/X] </k><values> ListItem(V:Val) => .List ...</values>
and it worked. So thank you.
On Tue, Nov 4, 2014 at 12:18 AM, Dwight Guth <dwight.guth AT gmail.com> wrote:
Hi Omar,
I apologize, it seems our wires have gotten crossed and Radu misunderstood the nature of your problem. There is indeed an ambiguity in this line in the code which we will correct in the near future.
You said even when you added the relevant parentheses, substitution did not occur. Can you please provide me with a more complete example detailing what you mean? What I need to debug this issue is to be able to know a small K definition and a term containing the substitution operator for which you obtain an incorrect result when you rewrite the term. As far as I am aware, substitution should be working as long as you disambiguate the way that you just did, so if that is not the case I would like to know the details so that we can investigate the issue.On Mon, Nov 3, 2014 at 2:15 PM, Omar Duhaiby <3omarz AT gmail.com> wrote:_______________________________________________That made the warning disappear, but substitution is still not happening. I just updated from version I-don't-know-which to 3.5. Substitution was working before. I already found an alternative to using substitution for my case, but I just thought I should report this.It gives two possibilities and arbitrarily chooses the first. So I added parenthesis to the second line making it:Hello,I'm using K version 3.5. When I kompile, I get a warning regarding an ambiguity in the following rule at line 264 in substitution.k:
rule #substitutePlain(K:K, M:Map) => #substitutePlainList(K, M)
when isId(K) =/=K true orElseBool K in keys(M) =/=K true
when (isId(K) =/=K true) orElseBool (K in keys(M) =/=K true)Thank youOmar Alzuhaibi
k-user mailing list
k-user AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/k-user
- [K-user] Substitution module causes warning on kompile, Omar Duhaiby, 11/03/2014
- Re: [K-user] Substitution module causes warning on kompile, Radu Mereuta, 11/03/2014
- Re: [K-user] Substitution module causes warning on kompile, Dwight Guth, 11/03/2014
- Re: [K-user] Substitution module causes warning on kompile, Omar Duhaiby, 11/04/2014
Archive powered by MHonArc 2.6.16.