k-legacy icon indicating copy to clipboard operation
k-legacy copied to clipboard

rule keeps getting applied but has no effect

Open kheradmand opened this issue 7 years ago • 0 comments

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.

kheradmand avatar Oct 24 '17 03:10 kheradmand