a new reasoner in the C runtime. It supports tabling which makes it decideable for propositional logic. dependent types and high-order types are not supported yet. The generation is still in decreasing probability order

This commit is contained in:
kr.angelov
2013-01-07 12:50:32 +00:00
parent cade578d04
commit 2c169406fc
5 changed files with 250 additions and 146 deletions

View File

@@ -131,11 +131,6 @@ struct PgfFunDecl {
extern GU_DECLARE_TYPE(PgfFunDecl, struct);
struct PgfCatFun {
double prob;
PgfCId fun;
};
typedef GuMap PgfMetaChildMap;
extern GU_DECLARE_TYPE(PgfMetaChildMap, GuMap);
@@ -147,8 +142,7 @@ struct PgfCat {
prob_t meta_token_prob;
PgfMetaChildMap* meta_child_probs;
GuLength n_functions;
PgfCatFun functions[]; // XXX: resolve to PgfFunDecl*?
GuBuf* functions; // -->PgfFunDecl
};