You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Checker.ml, it raises an error for empty EBufCreateL in infer' :
| EBufCreateL (_, es) ->
begin match es with
| [] ->
checker_error env "%a, there is an empty buf create sequence" ploc env.location
| first :: others ->
let t = infer env first in
List.iter (check env t) others;
TArray (t, (K.UInt32, string_of_int (List.length es)))
end
While it is allowed in check':
| EBufCreateL (_, es) ->
let t, _ = assert_buffer env t in
List.iter (check env t) es
I wonder whether there is a reason for this design? Twic, I am trying to translate [T;N] to arr{T data[N];} in eurydice and this checker fails the check on the argument: