Open mariari opened 2 years ago
This has further issues, as even code like
(defcircuit array-from-data-check-consts ((output (array int 10)))
(def ((bar (to-array 36)))
(prld:+ (prld:check 5 (int 32))
(prld:get bar 0))))
causes issues, as we lack the size information in the hole slot.
Due to this, we can't actually infer the array type, as when we recompute the array type, it will always be an unknown int type. If we had holes which had application, we could submit this back as an equation given the extra hole size in the to-array
case
With the advent of #22 I've left some holes, namely:
These holes make it so the user has to give the type of an array when allocating it. If we can omit that information, and get it here then we can have the type of the array be inferred (though length can not be).