This file is indexed.

/usr/share/mozart/examples/fd/srat.oz 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
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
%%%
%%% Authors:
%%%   Gert Smolka <smolka@ps.uni-sb.de>
%%%
%%% Copyright:
%%%   Gert Smolka, 1998
%%%
%%% Last change:
%%%   $Date: 1999-01-18 22:56:07 +0100 (Mon, 18 Jan 1999) $ by $Author: schulte $
%%%   $Revision: 10513 $
%%%
%%% This file is part of Mozart, an implementation
%%% of Oz 3
%%%    http://www.mozart-oz.org
%%%
%%% See the file "LICENSE" or
%%%    http://www.mozart-oz.org/LICENSE.html
%%% for information on usage and redistribution
%%% of this file, and for a DISCLAIMER OF ALL
%%% WARRANTIES.
%%%

declare
proc {SRAT Q}
   proc {Vector V}  
      {FD.tuple v 10 0#1 V} 
   end
   proc {Sum V S}  
      {FD.decl S} 
      {FD.sum V '=:' S} 
   end
   proc {Assert I [U V W X Y]}  
      A.I=U  B.I=V  C.I=W  D.I=X  E.I=Y 
   end
   A      = {Vector}              B    = {Vector}
   C      = {Vector}              D    = {Vector}        E    = {Vector}
   SumA   = {Sum A}               SumB = {Sum B}         SumC = {Sum C}  
   SumD   = {Sum D}               SumE = {Sum E}
   SumAE  = {Sum [SumA SumE]}     
   SumBCD = {Sum [SumB SumC SumD]}
in
   {FD.tuple q 10 1#5 Q}
   {For 1 10 1
    proc {$ I} {Assert I [Q.I=:1  Q.I=:2  Q.I=:3  Q.I=:4  Q.I=:5]} end}
   %% 1
   {Assert 1 [ B.2
	       {FD.conj B.3 (B.2=:0)}
	       {FD.conj B.4 (B.2+B.3=:0)}
	       {FD.conj B.5 (B.2+B.3+B.4=:0)}
	       {FD.conj B.6 (B.2+B.3+B.4+B.5=:0)} ]}
   %% 2
   {Assert 2 [Q.2=:Q.3  Q.3=:Q.4  Q.4=:Q.5  Q.5=:Q.6  Q.6=:Q.7]}
   Q.1\=:Q.2  Q.7\=:Q.8  Q.8\=:Q.9  Q.9\=:Q.10
   %% 3
   {Assert 3 [Q.1=:Q.3  Q.2=:Q.3  Q.4=:Q.3  Q.7=:Q.3  Q.6=:Q.3]}
   %% 4
   {FD.element Q.4 [0 1 2 3 4] SumA}
   %% 5
   {Assert 5 [Q.10=:Q.5  Q.9=:Q.5  Q.8=:Q.5  Q.7=:Q.5  Q.6=:Q.5]}
   %% 6
   {Assert 6 [SumA=:SumB  SumA=:SumC  SumA=:SumD  SumA=:SumE  _]}
   %% 7
   {FD.element Q.7 [4 3 2 1 0] {FD.decl}={FD.distance Q.7 Q.8 '=:'}}
   %% 8
   {FD.element Q.8 [2 3 4 5 6] SumAE}
   %% 9
   {Assert 9 [ SumBCD::[2 3 5 7]  SumBCD::[1 2 6]     SumBCD::[0 1 4 9]
	       SumBCD::[0 1 8]    SumBCD::[0 5 10] ]}
   %% 10
   skip
   {FD.distribute ff Q}
end

{ExploreAll SRAT}