From 0935197e13cd1b1436042a713a5f2a520a2cbf9e Mon Sep 17 00:00:00 2001 From: kostis Date: Fri, 8 Jun 2007 15:32:39 +0000 Subject: [PATCH] Fixed some things I noticed. git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1898 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- docs/index/article.tex | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/index/article.tex b/docs/index/article.tex index e2d70aa50..d6df77ba5 100644 --- a/docs/index/article.tex +++ b/docs/index/article.tex @@ -1,6 +1,7 @@ %============================================================================== \documentclass{llncs} %------------------------------------------------------------------------------ +\usepackage[latin1]{inputenc} \usepackage{a4wide} \usepackage{float} \usepackage{alltt} @@ -301,11 +302,11 @@ We present an example. Consider the Prolog code shown in Fig.~\ref{fig:carc:facts}. It is a fragment of the machine learning dataset \textit{Carcinogenesis}~\cite{Carcinogenesis@ILP-97}. The five clauses get compiled to the WAM code shown in -Fig.~\ref{fig:carc:clauses}. The first argument indexing indexing code +Fig.~\ref{fig:carc:clauses}. The first argument indexing code that a Prolog compiler generates is shown in Fig.~\ref{fig:carc:index}. This code is typically placed before the code for the clauses and the \switchONconstant instruction is the -entry point of predicate. Note that compared with vanilla WAM this +entry point of the predicate. Note that compared with vanilla WAM this instruction has an extra argument: the register on the value of which we index ($r_1$). This extra argument will allow us to go beyond first argument indexing. Another departure from the WAM is that if @@ -758,7 +759,7 @@ instruction. \label{alg:construction} \begin{enumerate} \item if the current instruction $I$ is a \switchSTAR, \try, \retry, - \trust or \jump, the action is an in the WAM; + \trust or \jump, the action is as in the WAM; \item if the current instruction $I$ is a \jitiSTAR with arguments $r, l$, and $k$ where $r$ is a register then \begin{enumerate} @@ -926,7 +927,7 @@ table thus is killed in several steps: \item Recursively \emph{kill} every child of the current table: if the current table is killed, so are its children. \item Wait until the table is not in use, that is, it is not pointed - to by someone. + to by anywhere. \item Walk the table and release any references it may hold. \item Physically recover space. \end{enumerate}