replace arrays with variables having actual numbers in their names
Array length known only at runtime? Only one reasonable solution - self-modifying code, and invoking undefined behaviour by assuming the variables are placed contiguously on the stack. Actually, scratch that - lookup is achieved by a sufficiently large switch.. no, that's too readable.. a long list of if/else conditions.. no.. you know what, let's just precompute the program's output for every possible input and just hardcode that. It was throwaway code anyway.