class MyMathPrecompile : precompile {
static method spvm_sum : int ($loop_count : int) {
my $total = 0;
for (my $i = 0; $i < $loop_count; $i++) {
$total += $i;
}
return $total;
}
}