15 {w.lit_nat(Idx::bitwidth2size(32)), w.lit_nat(params.size()), w.tuple(params)});
28 DefArray types(inits.
size(), [&](
size_t i) { return inits[i]->type(); });
29 return w.app(
fn_for(w, types), {begin, end, step, w.tuple(inits), body, brk});
Helper class to retrieve Infer::arg if present.
A container-like wrapper for an array.
The World represents the whole program and manages creation of Thorin nodes (Defs).
const Def * fn_for(World &w, Defs params)
const Def * op_for(World &w, Ref begin, Ref end, Ref step, Defs inits, Ref body, Ref brk)
Returns a fully applied affine_for axiom.