<commit_before>from xsvm import vm, parser

machine = vm.Processor()
filename = "demos/function_call.s"
parser.load_file_into_memory(machine.memory, filename)

machine.execute_until_halted()<commit_msg>dump register values after executing<commit_after>from xsvm import vm, parser

machine = vm.Processor()
filename = "demos/function_call.s"
parser.load_file_into_memory(machine.memory, filename)

machine.execute_until_halted()

# dump all register values. will do the job for now :)
print machine.register_bank.registers
{'fraction_non_alphanumeric': 0.09213051823416507, 'fraction_numerical': 0.0, 'mean_word_length': 7.030769230769231, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2284217', 'n_tokens_mistral': 161, 'n_tokens_neox': 159, 'n_words': 39}