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]
/
tests
/
mod.cc
blob
a4af61f28192d225447d12bc3a7219c6ac9372dd
1
#include <assert.h>
2
#include
"testlib.h"
3
4
using
pdg
::
PDG
;
5
6
int
main
(
int
argc
,
char
*
argv
[])
7
{
8
isl_ctx
*
ctx
=
isl_ctx_alloc
();
9
construct_pdg
(
"testmod"
);
10
PDG
*
pdg
=
get_pn
(
ctx
,
"testmod"
);
11
12
assert
(
pdg
->
dependences
.
size
() ==
6
);
13
14
pdg
->
free
();
15
delete
pdg
;
16
isl_ctx_free
(
ctx
);
17
18
return
0
;
19
}