repo.or.cz
/
ppn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
pn2adg.cc: edge_name: allocate enough space for edge name
[ppn.git]
/
translate.cc
blob
ac0850c58f12f1ed104f8f66b58d76549772c30b
1
#include <isa/yaml.h>
2
#include <isa/pdg.h>
3
#include
"translation.h"
4
5
using
pdg
::
PDG
;
6
7
int
main
(
int
argc
,
char
*
argv
[])
8
{
9
PDG
*
pdg
;
10
isl_ctx
*
ctx
=
isl_ctx_alloc
();
11
pdg
=
PDG
::
Load
(
stdin
,
ctx
);
12
13
common_dimension
(
pdg
);
14
translate
(
pdg
,
false
);
15
16
pdg
->
Dump
();
17
pdg
->
free
();
18
delete
pdg
;
19
isl_ctx_free
(
ctx
);
20
21
return
0
;
22
}