Skip to content
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.

rule keeps getting applied but has no effect #2352

Open
kheradmand opened this issue Oct 24, 2017 · 0 comments
Open

rule keeps getting applied but has no effect #2352

kheradmand opened this issue Oct 24, 2017 · 0 comments

Comments

@kheradmand
Copy link
Contributor

kheradmand commented Oct 24, 2017

I have a configuration like following:

<T> <k> @resetArrays ( SetItem ( extra ) ) ~>  ... </k>
...
<arrays> extra |-> $array ( 4 , 0 , -1 ) </arrays>

And I have the following rules:

syntax KItem ::= "@resetArrays" "(" Set ")"
rule <k> @resetArrays((SetItem(N:InstanceName) => .Set) _:Set) ... </k>
     <arrays> (N |-> $array(_:Int , (_:Int => 0), (_:Int => -1))) _:Map </arrays>
rule <k> @resetArrays(.Set) => .K ... </k>

The first rule keeps getting applied (forever) but the resulting configuration does not change.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant