6 int main(int argc
, char *argv
[])
8 isl_ctx
*ctx
= isl_ctx_alloc();
9 PDG
*pdg
= get_pdg(ctx
, "testscalar");
11 pdg::access
*access
= NULL
;
13 assert(pdg
->nodes
.size() == 1);
14 for (int i
= 0; i
< pdg
->nodes
[0]->statement
->accesses
.size(); ++i
) {
15 if (!pdg
->nodes
[0]->statement
->accesses
[i
]->array
)
18 access
= pdg
->nodes
[0]->statement
->accesses
[i
];
20 assert(n_access
== 1);
21 assert(access
->type
== pdg::access::write
);
22 assert(access
->map
->input() == 0);
23 assert(access
->map
->output() == 0);