<?php
use JITFU\Context;
use JITFU\Type;
use JITFU\Signature;
use JITFU\Func;
use JITFU\Value;
use JITFU\Builder;
$context = new Context();
$context->start();
$long = new Type(JIT_TYPE_LONG);
$longs = new Type($long, true);
$signature = new Signature
($long, [$longs, $long]);
$function = new Func($context, $signature);
$n = $function->getParameter(0);
$f = $function->getParameter(1);
$builder = new Builder($function);
/*
long function (long[] $n, $f) {
return $n[$f];
}
*/
$builder->doReturn(