Duh! Remove a very very incorrect left-over flow simplification call.
[smatch.git] / test-linearize.c
blob75826a0ce8471fe446c29c836d260200e96080ee
1 /*
2 * Parse and linearize the tree for testing.
4 * Copyright (C) 2003 Transmeta Corp.
5 * 2003-2004 Linus Torvalds
7 * Licensed under the Open Software License version 1.1
8 */
9 #include <stdarg.h>
10 #include <stdlib.h>
11 #include <stdio.h>
12 #include <string.h>
13 #include <ctype.h>
14 #include <unistd.h>
15 #include <fcntl.h>
17 #include "lib.h"
18 #include "token.h"
19 #include "parse.h"
20 #include "symbol.h"
21 #include "expression.h"
22 #include "linearize.h"
24 static void clean_up_symbols(struct symbol_list *list)
26 struct symbol *sym;
28 FOR_EACH_PTR(list, sym) {
29 struct entrypoint *ep;
31 expand_symbol(sym);
32 ep = linearize_symbol(sym);
33 if (ep)
34 show_entry(ep);
35 } END_FOR_EACH_PTR(sym);
38 int main(int argc, char **argv)
40 clean_up_symbols(sparse(argc, argv));
41 return 0;