k-user AT lists.cs.illinois.edu
Subject: K-user mailing list
List archive
- From: "Zhang, Yi" <yzhng173 AT illinois.edu>
- To: 钱�Z <qjq793437528 AT 163.com>
- Cc: "k-user AT lists.cs.illinois.edu" <k-user AT lists.cs.illinois.edu>
- Subject: Re: [[K-user] ] nondeterministic behaviors
- Date: Wed, 7 Jun 2017 05:42:58 +0000
- Accept-language: en-US
Basically you need to label the two rules and kompile with --transition
Yi
Yi
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
- [[K-user] ] nondeterministic behaviors, 钱璟, 06/07/2017
- Re: [[K-user] ] nondeterministic behaviors, Zhang, Yi, 06/07/2017
Archive powered by MHonArc 2.6.19.