Skip to content

order of arithemtic expression matter #44

@vale1410

Description

@vale1410

following program gives an error message: Fatal error: exception Failure("Error: variable X is unbound in an arithmetical expression when grounding p[X \\+ 1].")

#ground p[1], t[2].                                                                                                                       
p[X+1], p[X] :: #ground q[X]. 

it works correctly if order in the generator is swapped:

#ground p[1], t[2].                                                                                                                       
p[X], p[X+1]  :: #ground q[X]. 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions