[CN] iterating over multidimensional arrays in inconvenient order is difficult #361
Labels
cn
enhancement
New feature or request
language
Related to design of the CN language
resource reasoning
Related to reasources in specs
This is probably related to #357 and #320.
The idea of this code is to convert the nested arrays to a single array over all indices, use the each predicates to recover multidimensional array indexing, and express the block/owned predicates on the multidimensional arrays as directly as possible. The loops have a lot of invariants but they are just walking the array in the inconvenient order.
That state looks like this (one step before the last):
Requested resource
Available resources
Terms
Constraints
Substituting in the known value of O_i0 the Owned predicate matches and the Block predicate is empty, but instead there is another step and the Owned predicate is gone but it's still requested. This might just be a problem with
mod_uf
(used due to #231) but I'm also not clear on why it just vanished without satisfying the request.The text was updated successfully, but these errors were encountered: