This file is indexed.

/usr/share/mozart/doc/fdt/node14.html is in mozart-doc 1.4.0-8ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
2
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>3.1 Format of Scripts</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node13.html">- Up -</A></TD><TD><A href="node15.html#section.problem.money">Next &gt;&gt;</A></TD></TR></TABLE><DIV id="section.problem.script"><H2><A name="section.problem.script">3.1 Format of Scripts</A></H2><P> In Oz, a script takes the form of a procedure </P><BLOCKQUOTE class="code"><CODE><SPAN class="keyword">proc</SPAN><SPAN class="variablename">&nbsp;</SPAN>{<SPAN class="functionname">Script</SPAN>&nbsp;Root}<BR>&nbsp;&nbsp;&nbsp;%%&nbsp;<SPAN class="comment">declare&nbsp;variables<BR></SPAN><SPAN class="keyword">in</SPAN>&nbsp;<BR>&nbsp;&nbsp;&nbsp;%%&nbsp;<SPAN class="comment">post&nbsp;constraints<BR></SPAN>&nbsp;&nbsp;&nbsp;%%&nbsp;<SPAN class="comment">specify&nbsp;distribution&nbsp;strategy<BR></SPAN><SPAN class="keyword">end</SPAN></CODE></BLOCKQUOTE><P> The procedure declares the variables needed, posts the constraints modeling the problem, and specifies the distribution strategy.</P><P>The argument <CODE>Root</CODE> stands for the solutions of the problem to be solved. If the solutions of a problem are given by more than one variable, say <CODE>X</CODE>, <CODE>Y</CODE>, and <CODE>Z</CODE>, we may simply combine these variables into one record by posting a constraint like </P><BLOCKQUOTE class="code"><CODE>Root&nbsp;=&nbsp;solution(x:X&nbsp;y:Y&nbsp;z:Z)</CODE></BLOCKQUOTE><P> The procedure </P><BLOCKQUOTE class="code"><CODE>{SearchAll&nbsp;Script&nbsp;?Solutions}</CODE></BLOCKQUOTE><P> will run the script <CODE>Script</CODE> until the entire search tree is explored and return the list of the solutions found. </P><P>The procedure </P><BLOCKQUOTE class="code"><CODE>{SearchOne&nbsp;Script&nbsp;?Solutions}</CODE></BLOCKQUOTE><P> will run the script <CODE>Script</CODE> until the first solution is found. If a solution is found, it is returned as the single element of a list; otherwise, the empty list is returned.</P></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node13.html">- Up -</A></TD><TD><A href="node15.html#section.problem.money">Next &gt;&gt;</A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.ps.uni-sb.de/~schulte/">Christian&nbsp;Schulte</A> and&nbsp;<A href="http://www.ps.uni-sb.de/~smolka/">Gert&nbsp;Smolka</A><BR><SPAN class="version">Version 1.4.0 (20110908185330)</SPAN></ADDRESS></BODY></HTML>