-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
176 lines (120 loc) · 3.98 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
imlsof2:
PYTHONPATH=~/experiments/gcc_py_introspector/ python3 gcc/tree/runimtest2.py ../lsof
schema:
python schema.py
testload2:
PYTHONPATH=~/experiments/gcc_py_introspector/ python3 gcc/tree/load_pickle.py Nodes.nodes.pickle
identifier:
#python3 -mcProfile -s cumulative gcc/tree/reader.py tests/empty.tu
PYTHONPATH=~/experiments/gcc_py_introspector/ python3 -m memory_profiler ./test.py tests/identifier.tu
testemptyfull:
#python3 -mcProfile -s cumulative gcc/tree/reader.py tests/empty.tu
#PYTHONPATH=~/experiments/gcc_py_introspector/ python3 gcc/tree/reader.py tests/empty.tu
PYTHONPATH=~/experiments/gcc_py_introspector/ python3 -m memory_profiler ./test.py tests/empty.tu
testemptyfullprofile:
#python3 -mcProfile -s cumulative gcc/tree/reader.py tests/empty.tu
PYTHONPATH=~/experiments/gcc_py_introspector/ python3 -mcProfile -s tottime gcc/tree/reader.py tests/empty_part.tu
#tests/empty.tu
testempty:
python3 gcc/tree/reader.py tests/empty_part.tu debug
testload:
python3 gcc/tree/load_pickle.py tests/empty.tu.nodes.pickle
testp2:
python3 gcc/tree/reader.py tests/phaseII.tu
rerunall:
python3 reruntest.py ./tests2
testsave:
python3 gcc/tree/reader.py tests/save_expr.tu
testcons:
python3 gcc/tree/reader.py tests/constructor.tu
python3 gcc/tree/load_pickle.py
lsof:
python3 gcc/tree/runtest.py ../lsof
imlsof:
python3 gcc/tree/runimtest.py ../lsof
runall:
python3 runtest.py ./tests
testfield:
python3 gcc/tree/reader.py tests/bitfield.tu
python3 gcc/tree/load_pickle.py
testlsof:
python3 gcc/tree/reader.py ../lsof/main.c.001t.tu
python3 gcc/tree/load_pickle.py
testid:
python3 gcc/tree/reader.py tests/test_id.tu
testnote:
python3 gcc/tree/reader.py tests/test_note.tu
testfunc2:
python3 gcc/tree/reader.py tests/funcdecl2.tu
testfunc:
python3 gcc/tree/reader.py tests/funcdecl1.tu
testchain:
python3 gcc/tree/reader.py tests/test_chain.tu
recurse_all :
python3 query_function_example_python_all.py
translate :
python3 translate_to_python.py
pairs :
python3 pairs.py
quine:
python3 quine.py
recurse:
python3 query_function_example_python.py
recurse3:
python3 query_function_example_direct.py
# query the database and produce the data/body2.py
recurse2:
python3 query_function_example.py
types:
python3 query_types.py
query :
python3 queryviz.py > /var/www/html/sparql/introspector/graphs/example.dot
dot /var/www/html/sparql/introspector/graphs/example.dot -Tpng -o /var/www/html/sparql/introspector/graphs/example.png
# read in the TU create the data file in produce rdf files, after this you need to load them into the database and then run some queries
testbash1:
python3 gcc/tree/reader.py /home/jamesmikedupont/bash/build/test1.tu
testbash:
python3 gcc/tree/reader.py /home/jamesmikedupont/bash/build/eval.c.001t.tu
cp output.xml b99f78e7d415e80d1590/
cp output.xml /tmp/
sudo /etc/init.d/tomcat8 stop
rm /var/lib/tomcat8/data/*
sudo /etc/init.d/tomcat8 start
qual:
python3 gcc/tree/reader.py tests/test_one_qual.tu x
op01:
python3 gcc/tree/reader.py tests/op_0_1.tu d
op0:
python3 gcc/tree/reader.py tests/op_0.tu
tuaddr :
python3 gcc/tree/reader.py tests/addr_expr.tu
tu7 :
python3 gcc/tree/reader.py tests/report1.tu
tu8 :
python3 gcc/tree/reader.py tests/testmissing4.tu
tu6 :
python3 gcc/tree/reader.py tests/testmissing4.tu
tu5 :
python3 gcc/tree/reader.py tests/testmissing3.tu
tu4 :
python3 gcc/tree/reader.py tests/testmissing2.tu
tu3 :
python3 gcc/tree/reader.py tests/testmissing.tu
tu1 :
python3 gcc/tree/reader.py tests/testqual.tu
tu :
python3 gcc/tree/reader.py tests/test.tu
FILES=tu.py tuparser.py tuast.py gcc/tree/reader.py
auto2:
~/.local/bin/autopep8 -v -a -a -a -a -i $(FILES)
auto :
~/.local/bin/pep8ify -v -w $(FILES)
fixlines:
~/.local/bin/autopep8 -v --select=E501 --max-line-length=78 -i -a -a -a -a $(FILES)
lint :
~/.local/bin/pyflakes $(FILES)
~/.local/bin/pylint --rcfile=.pylintrc $(FILES)
test100:
python3 gcc/tree/reader.py tests/test100.tu
test102:
python3 gcc/tree/reader.py tests/test102.tu