OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """ | 6 """ |
7 Generate all acceptable sequences from acyclic DFA, run objdump and | 7 Generate all acceptable sequences from acyclic DFA, run objdump and |
8 decoder on them and compare results. | 8 decoder on them and compare results. |
9 """ | 9 """ |
10 | 10 |
11 import itertools | 11 import itertools |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 total = 0 | 271 total = 0 |
272 for prefix, count in results: | 272 for prefix, count in results: |
273 print prefix | 273 print prefix |
274 total += count | 274 total += count |
275 | 275 |
276 print total, 'instructions were processed' | 276 print total, 'instructions were processed' |
277 | 277 |
278 | 278 |
279 if __name__ == '__main__': | 279 if __name__ == '__main__': |
280 main() | 280 main() |
OLD | NEW |