Skip to Content.
Sympa Menu

k-user - Re: [K-user] multiple fresh Ints in one rule

k-user AT lists.cs.illinois.edu

Subject: K-user mailing list

List archive

Re: [K-user] multiple fresh Ints in one rule


Chronological Thread 
  • From: "Rosu, Grigore" <grosu AT illinois.edu>
  • To: Omar Duhaiby <3omarz AT gmail.com>, "k-user AT cs.uiuc.edu" <k-user AT cs.uiuc.edu>
  • Cc: "Musab A. AlTurki" <musab AT kfupm.edu.sa>
  • Subject: Re: [K-user] multiple fresh Ints in one rule
  • Date: Fri, 7 Nov 2014 18:13:26 +0000
  • Accept-language: en-US
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/k-user/>
  • List-id: <k-user.cs.uiuc.edu>

To me it looks like a bug in our current implementation of ! variables, but I deffer the question to those who implemented this functionality.  Traian, Andrei?

Thank you for reporting such problems, Omar.

Grigore

p.s.  BTW, when you sense a bug, please feel free to report it as a github issue at https://github.com/kframework/k/issues. Some developers watch that issue list more carefully than the k-user list (additionally, nothing gets lost or forgotten there). 
 

From: k-user-bounces AT cs.uiuc.edu [k-user-bounces AT cs.uiuc.edu] on behalf of Omar Duhaiby [3omarz AT gmail.com]
Sent: Friday, November 07, 2014 11:51 AM
To: k-user AT cs.uiuc.edu
Cc: Musab A. AlTurki
Subject: Re: [K-user] multiple fresh Ints in one rule

Hello. Can someone help me with this?

On Nov 6, 2014 12:55 PM, "Omar Duhaiby" <3omarz AT gmail.com> wrote:
I didn't have a problem in the older version using the fresh function, but now using '!' like the following example gives the same value twice:

rule <k> iWantChildren </k>
(. => <thread> <tid> !NewId1:Int </tid> </thread>
        <thread> <tid> !NewId2:Int </tid> </thread>
)

this makes two threads with the same value. How should I do it?

Thank you
Omar Alzuhaibi



Archive powered by MHonArc 2.6.16.

Top of Page