Skip to Content.
Sympa Menu

k-user - [[K-user] ] nondeterministic behaviors

k-user AT lists.cs.illinois.edu

Subject: K-user mailing list

List archive

[[K-user] ] nondeterministic behaviors


Chronological Thread 
  • From: 钱璟 <qjq793437528 AT 163.com>
  • To: "k-user AT lists.cs.illinois.edu" <k-user AT lists.cs.illinois.edu>
  • Subject: [[K-user] ] nondeterministic behaviors
  • Date: Wed, 7 Jun 2017 13:23:06 +0800 (CST)

Hello Sir
I tried to study about the nondeterministic behaviors in k.
for example : i defined two rules to the symbol "+" as below
rule I1 + I2 => I1 +Int I2
rule I1 + I2 => I1 * Int I2
i expect that random match and rewrite one rule during the execution.however
it doesn't work.
with the command krun --search ,there is the only one solution rather than
the expected situation.


the test example program is
int a, b;
a= 100;
b=2;
a= b+2;

the result is that there is the only solution , the rule in the first place
was be matched and applied .

what's wrong about my definition or something else ?

thanks for your help in advance




Archive powered by MHonArc 2.6.19.

Top of Page