Mercurial > lcfOS
comparison python/ppci/irmach.py @ 366:39bf68bf1891
Fix sample tests and deterministic build
author | Windel Bouwman |
---|---|
date | Fri, 21 Mar 2014 09:43:01 +0100 |
parents | 3bb7dcfe5529 |
children | 5d03c10fe19d |
comparison
equal
deleted
inserted
replaced
365:98ff43cfdd36 | 366:39bf68bf1891 |
---|---|
38 self.dst = tuple(dst) | 38 self.dst = tuple(dst) |
39 self.jumps = tuple(jumps) | 39 self.jumps = tuple(jumps) |
40 self.others = tuple(others) | 40 self.others = tuple(others) |
41 self.ismove = ismove | 41 self.ismove = ismove |
42 | 42 |
43 def __gt__(self, other): | |
44 """ To make the class fit for sorting """ | |
45 return str(self) > str(other) | |
46 | |
43 def __repr__(self): | 47 def __repr__(self): |
44 """ Substitutes source, dst and labels in the string """ | 48 """ Substitutes source, dst and labels in the string """ |
45 if isinstance(self.assem, Instruction): | 49 if isinstance(self.assem, Instruction): |
46 x = str(self.assem) | 50 x = str(self.assem) |
47 else: | 51 else: |