9 int main(int argc
, char * argv
[])
12 isl_ctx
*ctx
= isl_ctx_alloc();
13 pdg
= PDG::Load(stdin
, ctx
);
26 for (int i
= 0; i
< 2; ++i
)
27 for (int j
= 0; j
< 2; ++j
)
28 for (int k
= 0; k
< 2; ++k
)
31 for (int i
= 0; i
< pdg
->dependences
.size(); ++i
) {
32 pdg::dependence
*dep
= pdg
->dependences
[i
];
33 if (dep
->type
== pdg::dependence::uninitialized
)
36 if (dep
->type
== pdg::dependence::pn_part
) {
40 if (dep
->type
== pdg::dependence::pn_wire
) {
45 channel
[dep
->reordering
][dep
->multiplicity
][dep
->from
!= dep
->to
]++;
46 if (dep
->from
== dep
->to
&& dep
->size
&& !strcmp(dep
->size
->s
->c_str(), "1"))
49 printf("%d = %d + (%d = ((%d + %d) + %d) + (%d + %d) + (%d + %d) + (%d + %d))\n",
50 channels
, wires
, non_wires
,
51 registers
, channel
[0][0][0]-registers
, channel
[0][0][1],
52 channel
[0][1][0], channel
[0][1][1],
53 channel
[1][0][0], channel
[1][0][1],
54 channel
[1][1][0], channel
[1][1][1]);