X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fng_paramodulation%2Findex.ml;h=3c203d3a7131e7ce1d2411f950975a29c19d9753;hb=ea8676df3c47428157d0d544ec63c320ffa204be;hp=ca30c9b504ef126f72620205c5f2b586e949783c;hpb=6b0a195b180e3526af7b55771b2df7b10acd7c30;p=helm.git diff --git a/helm/software/components/ng_paramodulation/index.ml b/helm/software/components/ng_paramodulation/index.ml index ca30c9b50..3c203d3a7 100644 --- a/helm/software/components/ng_paramodulation/index.ml +++ b/helm/software/components/ng_paramodulation/index.ml @@ -79,4 +79,20 @@ module Index(B : Terms.Blob) = struct type dataset = ClauseSet.t = Make(FotermIndexable)(ClauseSet) + let index_unit_clause t = function + | (_,Terms.Equation (l,_,_,Terms.Gt),_,_) as c -> + DT.index t l (Terms.Left2Right, c) + | (_,Terms.Equation (_,r,_,Terms.Lt),_,_) as c -> + DT.index t r (Terms.Right2Left, c) + | (_,Terms.Equation (l,r,_,Terms.Incomparable),_,_) as c -> + DT.index + (DT.index t l (Terms.Left2Right, c)) + r (Terms.Right2Left, c) + | (_,Terms.Equation (_,r,_,Terms.Eq),_,_) -> assert false + | (_,Terms.Predicate p,_,_) as c -> + DT.index t p (Terms.Nodir, c) + ;; + + type active_set = B.t Terms.unit_clause list * DT.t + end