Sindbad~EG File Manager
/* functions exported by prover.dll */
/*_____________________________________________________________________*/
typedef struct a
{ term prop; /* proposition being assumed */
int line; /* line number at which the assumption was made */
struct a *link; /* link to previous form of this assumption */
} assumption;
typedef int (*eqnsolver)(term,term,term *);
eqnsolver get_solver(void); /* returns the current equation-solver */
/* this function is not exported */
typedef struct
{ assumption **assumptions;
short maxassumptions;
short nextassumption;
term *theorems;
short maxtheorems;
short nexttheorem;
term *history;
unsigned *permhistory; /* values of nextperm as a function of the
line number; used by undo(). This array,
like history, has dimension maxhistory. */
unsigned maxhistory;
/* but currentline is maintained by var.dll */
unsigned long *workspace; /* empty space to use for allocating assumptions */
unsigned long maxworkspace; /* dimension of workspace. An unsigned long
is because when workspace is allocated, this
value is multiplied by sizeof(long), and I don't
want to have to worry about casts, and in the
future this may well grow past 64K anyway. */
unsigned nextworkspace; /* how much workspace is used at present */
eqnsolver solver; /* equation-solving function */
} proverdata;
MEXPORT_PROVER short get_nextassumption(void);
MEXPORT_PROVER void set_nextassumption(short);
MEXPORT_PROVER term get_assumption(int);
MEXPORT_PROVER assumption **get_assumptions(void);
MEXPORT_PROVER void replace_assumption(int, term);
MEXPORT_PROVER int simplify_assumptions(term);
MEXPORT_PROVER term *get_theorems(void);
MEXPORT_PROVER short get_nexttheorem(void);
MEXPORT_PROVER term history(int);
MEXPORT_PROVER void set_history(int,term);
MEXPORT_PROVER term *historyp(int);
MEXPORT_PROVER int immediate(term); /* prover.c; called also in redineq.c */
MEXPORT_PROVER int check(term);
MEXPORT_PROVER term codomain(term);
MEXPORT_PROVER int unwind(term t, term *next);
MEXPORT_PROVER void init_constraints(void);
MEXPORT_PROVER void push_assumption(term, int);
MEXPORT_PROVER void pop_assumption(int);
MEXPORT_PROVER unsigned get_nextperm(void);
MEXPORT_PROVER void reset_nextperm(unsigned);
MEXPORT_PROVER int get_lpt_defnflag(void);
MEXPORT_PROVER void set_lpt_defnflag(int);
MEXPORT_PROVER int get_lpt_binderflag(void);
MEXPORT_PROVER void set_lpt_binderflag(int);
MEXPORT_PROVER void clear_already(term *);
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists