You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
282 B
Python
17 lines
282 B
Python
5 years ago
|
#!/usr/bin/python3
|
||
|
|
||
|
import re
|
||
|
import fileinput
|
||
|
|
||
|
r = re.compile("REG ([0-9A-F]+)");
|
||
|
|
||
|
regs = list()
|
||
|
|
||
|
for line in fileinput.input():
|
||
|
m = r.search(line)
|
||
|
if m:
|
||
|
regs.append(int(m.group(1), 16))
|
||
|
#print("%016X"% int(m.group(1), 16))
|
||
|
|
||
|
print("%x" % hash(tuple(regs)))
|