- changed title to Aggregate bodies transformed incorrectly into prolog
Aggregate bodies transformed incorrectly into prolog
Currently aggregates are not handled correctly. A conjunction in the body of the aggregate is supposed to be transformed into a seperate predicate, but this is not formed.
Comments (3)
-
-
reporter - changed status to resolved
Fixed XSB for aggregates that contain free variables
In XSB this means that the variable has to be bound before the aggregate is calculated. This is done in the compiler by adding the free variables of the AggTerm to the instantiated variables of the resulting (Prolog) AggregateTerm. When building this AggregateTerm into clauses, the 'instantiated variables' are made sure to be bound by first calling their sort predicate.
This fixes bug
#363→ <<cset 35f0e730393e>>
-
Fixed XSB for aggregates that contain free variables
In XSB this means that the variable has to be bound before the aggregate is calculated. This is done in the compiler by adding the free variables of the AggTerm to the instantiated variables of the resulting (Prolog) AggregateTerm. When building this AggregateTerm into clauses, the 'instantiated variables' are made sure to be bound by first calling their sort predicate.
This fixes bug
#363→ <<cset 69b641cc0a46>>
- Log in to comment