added API in the C runtime and the Java binding for checking whether a given function is linearizable in a given language. This is used in the Android UI for better vizualizations

This commit is contained in:
kr.angelov
2013-11-27 12:35:11 +00:00
parent eeec31cbab
commit b0a74ddc59
6 changed files with 31 additions and 28 deletions

View File

@@ -158,3 +158,11 @@ pgf_print_name(PgfConcr* concr, PgfCId id)
name = id;
return name;
}
bool
pgf_has_linearization(PgfConcr* concr, PgfCId id)
{
PgfCncOverloadMap* overl_table =
gu_map_get(concr->fun_indices, id, PgfCncOverloadMap*);
return (overl_table != NULL);
}