Skip to content

Spilling in CHR gives parsing error #419

Description

@FissoreD
func f -> int.

func zero -> int.
zero 0.

constraint f {
  rule (f X) <=> ({zero} = X).
}

The code above gives a spilling parsing error:
Anomaly: File "xxx", line 7, column 18, characters 76-82: Everything should have already been spilled

If I change the code into:

constraint f {
  rule (f X) <=> (zero Spill, Spill = X).
}

it works

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions