00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 :- export smcInit/0,smcReInit/0, smrInit/1,
00027 smcAddRule/2,
00028 % smcRetractRule/2,
00029 smcAddFact/1, smcAddBasicRule/2, smcAddChoiceRule/2,
00030 smcAddSemiDefiniteRule/2,
00031 smrAddBasicRule/3,smrAddChoiceRule/3,
00032 smrAddWeightRule/4,smrAddConstraintRule/4,
00033 smcSetCompute/1, smrSetNegCompute/1, smrSetPosCompute/1,
00034 smcCommitProgram/0, smrCommitProgram/0,
00035 smComputeModel/0,
00036 smcExamineModel/1, smcExamineModel/2, smrExamineModel/2, smEnd/0,
00037 print_cache/0.
00038
00039 :- import delete_trie/1, new_trie/1, trie_intern/5, trie_interned/4
00040 from intern.
00041 %:- import '$sm_atomnum'/2, '$sm_fact'/1 from usermod.
00042
00043 :- import t_assert/2 from assert.
00044
00045 :- import '$sm_pos_compute'/1, '$sm_neg_compute'/1 from usermod.
00046
00047 :- import smodelsInit/0, smodelsNumAtoms/1 from xasppkg.
00048 :- import smodelsCheckAtom/2 from xasppkg.
00049 :- import smodelsBeginBasicRule/0,smodelsBeginWeightRule/0 from xasppkg.
00050 :- import smodelsBeginChoiceRule/0, smodelsBeginConstraintRule/0
00051 from xasppkg.
00052 :- import smodelsAddHead/1 from xasppkg.
00053 :- import smodelsAddPosBody/1, smodelsAddWPosBody/2,
00054 smodelsAddNegBody/1, smodelsAddWNegBody/2 from xasppkg.
00055
00056 :- import smodelsSetBody/1, smodelsSetWeight/1 from xasppkg.
00057
00058 :- import smodelsEndRule/0 from xasppkg.
00059 :- import smodelsSetPosCompute/1, smodelsSetNegCompute/1 from xasppkg.
00060 :- import smodelsCommitRules/0 from xasppkg.
00061 :- import smodelsExistsModel/1 from xasppkg.
00062 :- import smodelsClose/0 from xasppkg.
00063
00064 :- import conget/2, conset/2 from machine.
00065 :- import member/2 from basics.
00066 :- import writeln/1 from standard.
00067 :- import (dynamic)/1, retractall/1, assert/1 from assert.
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077