bytecode analysis: enumerating direction in a simple way