<s> import autopath <EOL> import sys , py <EOL> from pypy . jit . metainterp . test . oparser import parse , split_logs_into_loops <EOL> from pypy . jit . metainterp . resoperation import rop <EOL> from pypy . rpython . lltypesystem import lltype , llmemory <EOL> def main ( argv ) : <EOL> parts = split_logs_into_loops ( py . path . local ( argv [ <NUM_LIT:0> ] ) . read ( ) ) <EOL> for oplist in parts : <EOL> loop = parse ( oplist , no_namespace = True ) <EOL> num_ops = <NUM_LIT:0> <EOL> num_dmp = <NUM_LIT:0> <EOL> num_guards = <NUM_LIT:0> <EOL> for op in loop . operations : <EOL> if op . opnum == rop . DEBUG_MERGE_POINT : <EOL> num_dmp += <NUM_LIT:1> <EOL> else : <EOL> num_ops += <NUM_LIT:1> <EOL> if op . is_guard ( ) : <EOL> num_guards += <NUM_LIT:1> <EOL> print "<STR_LIT>" % ( num_ops , num_dmp , num_guards ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( sys . argv [ <NUM_LIT:1> : ] ) </s>
