6 adg
*load_adg(isl_ctx
*ctx
, const char *base
)
14 srcdir
= getenv("srcdir");
16 n
= snprintf(path
, sizeof(path
), "%s/inputs/%s_pn_adg.yaml",
18 assert(n
< sizeof(path
));
19 in
= fopen(path
, "r");
22 adg
= adg_parse(ctx
, in
);
29 static void check(isl_ctx
*ctx
, const char *base
)
33 fprintf(stdout
, "%s\n", base
);
37 adg1
= get_adg(ctx
, base
);
38 adg2
= load_adg(ctx
, base
);
41 isl_id_free(adg1
->name
);
42 adg1
->name
= isl_id_copy(adg2
->name
);
43 assert(adg1
->is_equal(adg2
));
47 construct_adg(base
, "--xml");
50 int main(int argc
, char *argv
[])
54 ctx
= isl_ctx_alloc();
56 check(ctx
, "disconnected");
58 check(ctx
, "multi_assignment");
59 check(ctx
, "multi_reuse");
60 check(ctx
, "odd_even");
61 check(ctx
, "test_mod");
64 check(ctx
, "wlan_dec");