k-user AT lists.cs.illinois.edu
Subject: K-user mailing list
List archive
- From: Dwight Guth <dwight.guth AT runtimeverification.com>
- To: Eric Huber <echuber2 AT illinois.edu>
- Cc: k-user AT lists.cs.illinois.edu
- Subject: Re: [[K-user] ] Effects of concatenating K Maps, freshness operator
- Date: Mon, 2 May 2016 07:26:49 -0500
Hi,
If you use the _Map_ klabel to concatenate two maps together, and they contain keys that have different values, this is an error. Users who want to combine maps in this fashion should specify which map overwrites the value of the other when keys are shared by using the updateMap klabel.syntax Id ::= freshId(Int) [freshGenerator, function]
rule freshId(I:Int) => String2Id("_" +String Int2String(I))
On Sun, May 1, 2016 at 7:09 PM, Eric Huber <echuber2 AT illinois.edu> wrote:
Hi, I am just wondering what exactly happens when you concatenate K
Map built-ins. It seems that concatenating a new mapping to an
existing Map hides any existing mapping with the same key, but does it
make a difference if the concatenation is done with the "new" mapping
on the left or right of the other Map?
Also, when the "!" operator is used to generate an identifier with
freshness constraints, what determines the range of identifiers for
which the freshness is guaranteed?
Thanks,
Eric Huber
- [[K-user] ] Effects of concatenating K Maps, freshness operator, Eric Huber, 05/01/2016
- Re: [[K-user] ] Effects of concatenating K Maps, freshness operator, Dwight Guth, 05/02/2016
Archive powered by MHonArc 2.6.16.