13 struct isl_arg options_arg
[] = {
14 ISL_ARG_ARG(struct options
, scop1
, "scop1", NULL
)
15 ISL_ARG_ARG(struct options
, scop2
, "scop2", NULL
)
19 ISL_ARG_DEF(options
, struct options
, options_arg
)
21 /* Given two YAML descriptions of pet_scops, check whether they
22 * represent equivalent scops.
23 * If so, return 0. Otherwise, return 1.
25 int main(int argc
, char **argv
)
28 struct options
*options
;
29 struct pet_scop
*scop1
, *scop2
;
33 options
= options_new_with_defaults();
35 argc
= options_parse(options
, argc
, argv
, ISL_ARG_ALL
);
36 ctx
= isl_ctx_alloc_with_options(options_arg
, options
);
38 file1
= fopen(options
->scop1
, "r");
40 file2
= fopen(options
->scop2
, "r");
43 scop1
= pet_scop_parse(ctx
, file1
);
44 scop2
= pet_scop_parse(ctx
, file2
);
46 equal
= pet_scop_is_equal(scop1
, scop2
);