fn cut_to_allowed_bytecode_size(bytes: &[u8]) -> &[u8] {
        let mut words = bytes.len() / 32;
        assert!(words > 0, "bytecode is empty");

        if words & 1 == 0 {
            words -= 1;
        }
        &bytes[..32 * words]
    }
Bytecodes must consist of an odd number of 32 byte words.
This function "fixes" bytecodes of wrong length by cutting off their end.
core/tests/vm-benchmark/src/lib.rs