91368ea34d1f4f3517a9295a3864d37b17ecad25
[fleet.git] / src / edu / berkeley / fleet / assembler / Parser.java
1 package edu.berkeley.fleet.assembler;
2 import edu.berkeley.fleet.api.*;
3 import edu.berkeley.sbp.*;
4 import edu.berkeley.sbp.chr.*;
5 import edu.berkeley.sbp.misc.*;
6 import edu.berkeley.sbp.meta.*;
7 import edu.berkeley.sbp.util.*;
8 import static edu.berkeley.fleet.util.BitManipulations.*;
9 import edu.berkeley.fleet.two.*;
10 import edu.berkeley.fleet.api.Instruction.Set;
11 import static edu.berkeley.fleet.api.Instruction.*;
12 import static edu.berkeley.fleet.api.Instruction.Set.*;
13 import static edu.berkeley.fleet.api.Predicate.*;
14 import edu.berkeley.fleet.two.*;
15 import static edu.berkeley.fleet.two.FleetTwoFleet.SHIFT;
16 import edu.berkeley.fleet.fpga.*;
17 import edu.berkeley.fleet.interpreter.*;
18 import java.util.*;
19 import java.io.*;
20
21
22 /**
23  *  @author Adam Megacz <megacz@cs.berkeley.edu>
24  */
25 public class Parser {
26
27     private static final BitVector SIGNAL_ZERO = new BitVector(1);
28     private static final BitVector SIGNAL_ONE  = new BitVector(1);
29     static {
30         SIGNAL_ONE.set(0,true);
31     }
32     
33     Parser(Fleet fleet) {
34         expect = new ArrayList<Long>();
35         this.fleet = fleet;
36     }
37
38     //////////////////////////////////////////////////////////////////////////////
39
40     private Fleet fleet;
41     private ArrayList<String> imports = new ArrayList<String>();
42
43     private HashMap<String,Ship> shipMap = new HashMap<String,Ship>();
44
45     // codebags in numerical order
46     private ArrayList<CodeBag> codeBags = new ArrayList<CodeBag>();
47     private HashMap<String,CodeBag> codeBagsByName = new HashMap<String,CodeBag>();
48     
49     private CodeBag getCodeBag(String name) {
50         CodeBag cb = codeBagsByName.get(name);
51         if (cb!=null) return cb;
52         return new CodeBag(name);
53     }
54
55     private static Union grammar;
56     private static synchronized Union getGrammar() throws Exception {
57         if (grammar != null) return grammar;
58         InputStream grammarStream =
59             Parser.class.getClassLoader().getResourceAsStream("edu/berkeley/fleet/assembler/fleet.g");
60         CharParser metaGrammarParser   = new CharParser(GrammarAST.getMetaGrammar());
61         Tree<String> parsedGrammar     = metaGrammarParser.parse(new CharInput(grammarStream)).expand1();
62         grammar                        = GrammarAST.buildFromAST(parsedGrammar, "s", new GrammarAST.ImportResolver() {
63                 public InputStream getImportStream(String importname) { return null; }
64             });
65         return grammar;
66     }
67
68     // FIXME: this ought to be cached via serialization, I think
69     private static CharParser cp = null;
70     Tree<String> parseIt(Reader r) throws Exception {
71         if (cp==null)
72             cp = new CharParser(getGrammar());
73         CharInput ci = new CharInput(r);
74         Forest f = cp.parse(ci);
75         return f.expand1();
76     }
77
78     public Instruction[] parse(Reader r) throws Exception {
79         // this needs to be "code bag zero"
80         CodeBag baseCodeBag = new CodeBag();
81         CodeBag rootCodeBag = new CodeBag();
82         skip = false;
83         Tree<String> parsed = (Tree<String>)parseIt(r);
84         walk(parsed, rootCodeBag);
85
86         // map from arbitrary identifiers to actual addresses
87         int[] codeBagMap = new int[codeBags.size()];
88         int count = 0;
89         for(int i=0; i<codeBags.size(); i++) {
90             CodeBag c = codeBags.get(i);
91             codeBagMap[i] = count;
92             for(Instruction inst : c) {
93                 count++;
94             }
95         }
96
97         // now write for real
98         count = 0;
99         ArrayList<Instruction> ret = new ArrayList<Instruction>();
100         for(int i=0; i<codeBags.size(); i++) {
101             CodeBag c = codeBags.get(i);
102             for(int j=0; j<c.size(); j++) {
103                 Instruction inst = c.get(j);
104                 if (c.isCBD.contains(j)) {
105                     Set old = (Set)inst;
106                     long lit = 0;
107                     lit = FleetTwoFleet.CBD_SIZE.setval(lit, codeBags.get((int)old.immediate).size());
108                     lit = FleetTwoFleet.CBD_OFFSET.setval(lit, codeBagMap[(int)old.immediate]);
109                     inst = new Set(old.dock, false, IgnoreOLC, SetDest.DataLatch, lit);
110                 }
111                 ret.add(inst);
112                 count++;
113             }
114         }
115         long startcbd = 0;
116         for(int i=0; i<codeBags.size(); i++) {
117             if (codeBags.get(i)==rootCodeBag) {
118                 long lit = 0;
119                 lit = FleetTwoFleet.CBD_SIZE.setval(lit, codeBags.get(i).size());
120                 lit = FleetTwoFleet.CBD_OFFSET.setval(lit, codeBagMap[i]);
121                 startcbd = lit;
122             }
123         }
124         if (codeBags.size()<=2)
125             return (Instruction[])ret.toArray(new Instruction[0]);
126         return fixup((Instruction[])ret.toArray(new Instruction[0]), startcbd);
127     }
128
129     private Instruction[] fixup(Instruction[] instructions, long startcbd) {
130         ArrayList<Instruction> ret = new ArrayList<Instruction>();
131         Fleet fpga = fleet;
132
133         Dock inAddrWrite = null;
134         Dock inDataWrite = null;
135         Dock inCBD       = null;
136         Dock out         = null;
137         Dock debugIn     = null;
138         Dock ihorn       = null;
139
140         for(Ship ship : fpga) {
141             if ("Memory".equals(ship.getType()) && ship.getOrdinal()==0) {
142                 inAddrWrite = ship.getDock("inAddrWrite");
143                 inDataWrite = ship.getDock("inDataWrite");
144                 inCBD = ship.getDock("inCBD");
145                 out = ship.getDock("out");
146                 ihorn = out;
147                 //ihorn = ship.getDock("outIhorn");
148             }
149             if ("Debug".equals(ship.getType()) && ship.getOrdinal()==0) {
150                 debugIn = ship.getDock("in");
151             }
152         }
153
154         for(int i=0; i<instructions.length; i++) {
155             long lit = ((FleetTwoFleet)fpga).writeInstruction(instructions[i], out);
156             ret.add(discard(out));
157             ret.add(new Instruction.Shift(inDataWrite, false, IgnoreOLC, new BitVector(fpga.getWordWidth()).set(getField(36, 19, lit))));
158             ret.add(new Instruction.Shift(inDataWrite, false, IgnoreOLC, new BitVector(fpga.getWordWidth()).set(getField(18,  0, lit))));
159             ret.add(deliver(inDataWrite));
160             ret.add(new Instruction.Shift(inAddrWrite, false, IgnoreOLC, new BitVector(fpga.getWordWidth()).set(getField(36, 19, i))));
161             ret.add(new Instruction.Shift(inAddrWrite, false, IgnoreOLC, new BitVector(fpga.getWordWidth()).set(getField(18,  0, i))));
162             ret.add(deliver(inAddrWrite));
163         }
164         ret.add(new Instruction.Shift(inCBD, false, IgnoreOLC, new BitVector(fpga.getWordWidth()).set(getField(36, 19, startcbd))));
165         ret.add(new Instruction.Shift(inCBD, false, IgnoreOLC, new BitVector(fpga.getWordWidth()).set(getField(18,  0, startcbd))));
166         ret.add(wait(inCBD));
167         ret.add(deliver(inCBD));
168         ret.add(sendto(out, out.getPath(inCBD.getDataDestination(),null)));
169
170         int count = (int)FleetTwoFleet.CBD_SIZE.getval(startcbd);
171         // FIXME FIXME FIXME!
172         int MAX_ILC = 31;
173         int num_instrs = 0;
174         while(count > 0) {
175             int num = Math.min(count, MAX_ILC);
176             num_instrs+=2;
177             count -= num;
178             ret.add(new Instruction.Set(ihorn, false, IgnoreOLC, SetDest.InnerLoopCounter, num));
179             ret.add(new Instruction.Move(ihorn, false, IgnoreOLC, false, null,false,true,true,true,true,false));
180         }
181         if (num_instrs > ihorn.getInstructionFifoSize()) throw new RuntimeException();
182
183         return (Instruction[])ret.toArray(new Instruction[0]);
184     }
185
186     /** in the first pass, codebags are assigned "addresses" in arbitrary order */
187     void walk(Tree<String> t, CodeBag cb) {
188
189         String head = t.head();
190         if (head==null) {
191         } else if (head.equals("Program")) {
192             for(Tree<String> tc : t.child(0))
193                 walk(tc, cb);
194             if (t.size()>1)
195                 for(Tree<String> statement : t.child(1))
196                     fillCodeBag(statement, cb);
197    
198         } else if (head.equals("#import")) {
199             // ignored
200
201         } else if (head.equals("#ship")) {
202             String name = name(t.child(0));
203             String type = string(t.child(1));
204             Ship ship = null;
205
206             if (fleet instanceof FleetWithDynamicShips) {
207                 FleetWithDynamicShips dyn = ((FleetWithDynamicShips)fleet);
208                 ship = dyn.createShip(type, name);
209                 if (ship==null)
210                     throw new RuntimeException("couldn't find a ship called \""+type+"\"");
211             } else {
212                 ship = allocateShip(type);
213             }
214             shipMap.put(name, ship);
215
216         } else if (head.equals("#include")) {
217             try {
218                 walk(parseIt(new InputStreamReader(new FileInputStream(string(t.child(0))))), cb);
219             } catch (Exception e) {
220                 throw new RuntimeException(e);
221             }
222             
223         } else if (head.equals("#expect")) {
224             expect.add(number(t.child(0)));
225         } else if (head.equals("#skip")) {
226             skip = true;
227
228         }
229     }
230
231     String string(Tree<String> t) {
232         String ret = "";
233         if (t.head() != null) ret += t.head();
234         for(Tree<String> c : t)
235             ret += string(c);
236         return ret;
237     }
238
239     String stringBody(Tree<String> t) {
240         String ret = "";
241         for(Tree<String> c : t)
242             ret += string(c);
243         return ret;
244     }
245
246     String name(Tree<String> t) {
247         return string(t.child(0))+string(t.child(1));
248     }
249
250     Path path(Dock dock, Tree<String> t) {
251         if (!"Dock".equals(t.head()) && !"Destination".equals(t.head()) && !"ShipSpecificLiteral".equals(t.head())) return null;
252         t = t.child(0);
253         String shipName = name(t.child(0));
254         String portName = name(t.child(1));
255         String subPort = t.size()<3 ? null : name(t.child(2));
256         Ship ship = shipMap.get(shipName);
257         if (ship==null) throw new RuntimeException("no such ship \""+shipName+"\"");
258         Destination ret = null;
259         Dock bb = null;
260         for(Dock b : ship)
261             if (b.getName().equals(portName)) {
262                 bb = b;
263             }
264         if (bb==null)
265             throw new RuntimeException("no such pump \""+portName+"\"");
266         if (subPort==null) subPort="";
267         if (":i".equals(t.head())) return dock.getPath(bb.getInstructionDestination(),SIGNAL_ZERO);
268         if (":1".equals(t.head())) return dock.getPath(bb.getDataDestination(),SIGNAL_ONE);
269         if (":0".equals(t.head())) return dock.getPath(bb.getDataDestination(),SIGNAL_ZERO);
270         return dock.getPath(bb.getDataDestination(),SIGNAL_ZERO);
271     }
272
273     Dock dock(Tree<String> t) {
274         if (!"Dock".equals(t.head()) && !"Destination".equals(t.head()) && !"ShipSpecificLiteral".equals(t.head()))
275             throw new RuntimeException(t+"");
276         String shipName = name(t.child(0));
277         String portName = name(t.child(1));
278         Ship ship = shipMap.get(shipName);
279         if (ship==null) throw new RuntimeException("no such ship \""+shipName+"\"");
280         Dock bb = null;
281         for(Dock b : ship)
282             if (b.getName().equals(portName))
283                 return b;
284         throw new RuntimeException("no such pump \""+portName+"\"");
285     }
286
287     private HashMap<String,Integer> numAllocated = new HashMap<String,Integer>();
288
289     Ship allocateShip(String shipType) {
290         int allocated = 0;
291         if (numAllocated.get(shipType) != null)
292             allocated = numAllocated.get(shipType);
293         numAllocated.put(shipType, allocated+1);
294         for(Iterator<Ship> it = fleet.iterator();
295             it.hasNext();
296             ) {
297             Ship s = it.next();
298             if (s.getType().equals(shipType)) {
299                 if (allocated == 0) return s;
300                 allocated--;
301             }
302         }
303         throw new RuntimeException("no more ships of type \""+shipType+"\"");
304     }
305
306     private long parseSSL(Tree t) {
307         String shipType = name(t.child(0));
308         String portName = name(t.child(1));
309         Ship chosenship = null;
310         for(Ship ship : fleet) {
311             if (ship.getType().equals(shipType)) {
312                 chosenship = ship;
313                 break;
314             }
315         }
316         if (chosenship==null) throw new RuntimeException("no ships of type " + shipType);
317         Dock chosenport = chosenship.getDock(portName);
318         Tree specs = t.child(2);
319         long literal = 0;
320         for(int i=0; i<specs.size(); i++) {
321             Tree tt = specs.child(i);
322             literal |= resolveLiteral(chosenport, stringBody(tt));
323         }
324         return literal;
325     }
326
327     private static long resolveLiteral(Dock dd, String s) {
328         long val = 0;
329         long ret = 0;
330         boolean hasval = false;
331         if (s.indexOf('=') != -1) {
332             val = Long.parseLong(s.substring(s.indexOf('=')+1));
333             s = s.substring(0, s.indexOf('='));
334             hasval = true;
335         }
336         ShipDescription.Constant c = ((FleetTwoDock)dd).getConstant(s);
337         if (c==null) throw new RuntimeException("no constant " + s + " on dock " + dd);
338         ret |= c.setbits;
339         ret &= ~c.clearbits;
340         if (hasval)
341             ret |= ((~(0xffffffffffffffffL << c.numberWidth)) & val) << c.numberOffset;
342         return ret;
343     }
344
345     private static FlagFunction parseFlags(Tree<String> t) {
346         FlagFunction ret = FlagFunction.ZERO;
347         for(int i=0; i<t.size(); i++) {
348             String s = t.child(i).head();
349             if (s.equals("0"))  ret = ret.add(FlagFunction.ZERO);
350             if (s.equals("1"))  ret = ret.add(FlagFunction.ONE);
351             if (s.equals("a"))  ret = ret.add(FlagA);
352             if (s.equals("!a")) ret = ret.add(NotFlagA);
353             if (s.equals("b"))  ret = ret.add(FlagB);
354             if (s.equals("!b")) ret = ret.add(NotFlagB);
355             if (s.equals("c"))  ret = ret.add(FlagC);
356             if (s.equals("!c")) ret = ret.add(NotFlagC);
357         }
358         return ret;
359     }
360
361     private int anoncount = 1;
362     void fillCodeBag(Tree<String> t, CodeBag cb) {
363         if (t.head()==null) return;
364         else if (t.head().equals("CodeBagDef")) {
365             CodeBag cb2 = getCodeBag(name(t.child(0)));
366             for(Tree<String> statement : t.child(1))
367                 fillCodeBag(statement, cb2);
368
369         } else if (t.head().equals("Fiber")) {
370             Dock dock = (Dock)dock(t.child(0));
371             
372             OUTER: for(Tree tt : t.child(1)) {
373                 int count = 1;
374                 Predicate predicate = Default;
375                 boolean looping = false;
376                 boolean interruptible = false;
377                 for(int i=0; i<tt.child(0).size(); i++) {
378                     Tree ttt = tt.child(0).child(i);
379                     if ("[a]".equals(ttt.head()))  predicate = FlagA;
380                     if ("[b]".equals(ttt.head()))  predicate = FlagB;
381                     if ("[c]".equals(ttt.head()))  predicate = FlagC;
382                     if ("[!a]".equals(ttt.head())) predicate = NotFlagA;
383                     if ("[!b]".equals(ttt.head())) predicate = NotFlagB;
384                     if ("[!c]".equals(ttt.head())) predicate = NotFlagC;
385                     if ("[+]".equals(ttt.head()))  predicate = IgnoreOLC;
386                     if ("[I]".equals(ttt.head()))  interruptible = true;
387                     if ("[L]".equals(ttt.head()))  looping = true;
388                 }
389                 tt = tt.child(1);
390                 if ("tail".equals(tt.head()))    {
391                     cb.add(new Tail(dock));
392                     continue;
393                 } else if ("setflags".equals(tt.head()))    {
394                     cb.add(new Set(dock, looping, predicate, parseFlags(tt.child(0)), parseFlags(tt.child(1))));
395                     continue;
396                 } else if ("load".equals(tt.head()) && "loop".equals(tt.child(0).head()))    {
397                     cb.add(new Set(dock, looping, predicate, SetDest.OuterLoopCounter, SetSource.DataLatch));
398                     continue;
399                 } else if ("load".equals(tt.head()) && "repeat".equals(tt.child(0).head()))    {
400                     cb.add(new Set(dock, looping, predicate, SetDest.InnerLoopCounter, SetSource.DataLatch));
401                     continue;
402                 } else if ("*".equals(tt.head()))    {
403                     cb.add(new Set(dock, looping, predicate, SetDest.InnerLoopCounter, SetSource.Infinity));
404                     continue;
405                 } else if ("with".equals(tt.head()) && "loop".equals(tt.child(0).head()))    {
406                     cb.add(new Set(dock, looping, predicate, SetDest.OuterLoopCounter, (number(tt.child(1)))));
407                     continue;
408                 } else if ("with".equals(tt.head()) && "repeat".equals(tt.child(0).head()))    {
409                     cb.add(new Set(dock, looping, predicate, SetDest.InnerLoopCounter, (number(tt.child(1)))));
410                     continue;
411                 } else if ("decrement".equals(tt.head())) {
412                     cb.add(new Set(dock, looping, predicate, SetDest.OuterLoopCounter, SetSource.Decrement));
413                     continue;
414                 } else if ("literal".equals(tt.head())) {
415                     long literal = 0;
416                     if (tt.child(0).head().equals("CodeBagBody")) {
417                         Tree<String> tq = tt;
418                         CodeBag cb2 = getCodeBag("anon"+(anoncount++));
419                         for(Tree<String> statement : tq.child(0))
420                             fillCodeBag(statement, cb2);
421                         cb.add(new Set(dock, looping, predicate, SetDest.DataLatch, (cb2.getFakeAddress())), true);
422                         continue OUTER;
423                     } else if (tt.child(0).head().equals("Name")) {
424                         String refname = name(tt.child(0));
425                         CodeBag cb2 = getCodeBag(refname);
426                         cb.add(new Set(dock, looping, predicate, SetDest.DataLatch, (cb2.getFakeAddress())), true);
427                         continue OUTER;
428                     } else if (tt.child(0).head().equals("[")) {
429                         literal = parseSSL(tt.child(0));
430                     } else {
431                         literal = number(tt.child(0));
432                     }
433                     count = 1;
434                     if ("int".equals(tt.child(1).head())) {
435                         count = (int)number(tt.child(1));
436                     } else if ("forever".equals(tt.child(1).head())) {
437                         count = 0;
438                     }
439
440
441                     if (FleetTwoFleet.isSmallEnoughToFit(literal)) {
442                         cb.add(new Set(dock, looping, predicate, SetDest.DataLatch, (literal)));
443                     } else {
444                         int counter = 0;
445                         while(counter < dock.getShip().getFleet().getWordWidth()) counter += SHIFT.valmaskwidth;
446                         while(counter > 0) {
447                             cb.add(new Shift(dock, looping, predicate,
448                                              new BitVector(dock.getShip().getFleet().getWordWidth())
449                                              .set(getField(counter-1, counter-SHIFT.valmaskwidth, literal))));
450                             counter -= SHIFT.valmaskwidth;
451                         }
452                     }
453                         
454                     continue;
455                 }
456                 Tree ttx = null;
457                 boolean requeue = false;
458                 ttx = tt.child(1).head().equals("Commands") ? tt.child(1) : tt;
459                 if ("int".equals(tt.child(2).head())) {
460                     count = (int)number(tt.child(2));
461                     requeue = true;
462                 } else if ("forever".equals(tt.child(2).head())) {
463                     count = 0;
464                     requeue = true;
465                 }
466                 tt = tt.child(0);
467                 if (tt.head().equals("[*]")) {
468                     cb.add(new Set(dock, looping, predicate, SetDest.InnerLoopCounter, SetSource.Infinity));
469                     //count = 0;
470                     requeue = false;
471                 } else if (tt.head().equals("int")) {
472                     count = (int)number(tt);
473                     requeue = false;
474                 }
475                 boolean tokenIn = false;
476                 boolean dataIn = false;
477                 boolean latch = false;
478                 boolean dataOut = false;
479                 boolean tokenOut = false;
480                 boolean dispatch = false;
481                 boolean localLiteral = false;
482                 boolean ignoreUntilLast = false;
483                 long literal = 0;
484                 Path path = null;
485                 for(int i=0; i<ttx.size(); i++) {
486                     Tree ttt = ttx.child(i);
487                     if      ("wait".equals(ttt.head()))    { tokenIn = true; }
488                     else if ("nop".equals(ttt.head()))     { }
489                     else if ("discard".equals(ttt.head())) { dataIn = true; latch = false; }
490                     else if ("take".equals(ttt.head()))    { dataIn = true; latch = true; }
491                     else if ("recv".equals(ttt.head()))    { dataIn = true; latch = true; }
492                     else if ("collect".equals(ttt.head()))    { dataIn = true; latch = true; }
493                     else if ("recieve".equals(ttt.head()))    { dataIn = true; latch = true; }
494                     else if ("send".equals(ttt.head()))  { dispatch = true; dataOut = true; }
495                     else if ("sendto".equals(ttt.head()))  { dataOut = true; path = path(dock, ttt.child(0)); }
496                     else if ("deliver".equals(ttt.head())) { dataOut = true;  }
497                     else if ("notify".equals(ttt.head()))     { tokenOut = true; path = path(dock, ttt.child(0)); }
498                     else if ("notifyLast".equals(ttt.head()))     { tokenOut = true; ignoreUntilLast = true; path = path(dock, ttt.child(0)); }
499                 }
500                 cb.add(new Move(dock, looping, predicate,
501                                             interruptible, path, tokenIn, dataIn,
502                                             latch, dispatch, dataOut, tokenOut));
503             }
504         }
505     }
506
507     private class CodeBag extends ArrayList<Instruction> {
508         public long address = -1;
509         public final String name;
510         private HashSet<Integer> isCBD = new HashSet<Integer>();
511         public CodeBag() { codeBags.add(this); this.name = "root"; }
512         public CodeBag(String name) { codeBags.add(this); codeBagsByName.put(name, this); this.name = name; }
513         public long getFakeAddress() { return codeBags.indexOf(this); }
514         public boolean equals(Object o) { return this==o; }
515         public void add(Instruction i, boolean isCBD) {
516             if (isCBD) this.isCBD.add(size());
517             add(i);
518         }
519     }
520
521     // hideous hack
522     public static ArrayList<Long> expect;
523     public static boolean         skip;
524
525     private static long number(Tree t) {
526         String ret = "";
527         for(Object c : t.child(2)) ret += ((Tree)c).head();
528         boolean negative = "-".equals(t.child(0).head());
529         ret = ret.trim();
530         long val = 0;
531         if      ("0x".equals(t.child(1).head())) val = Long.parseLong(ret, 16);
532         else if ("0b".equals(t.child(1).head())) val = Long.parseLong(ret, 2);
533         else                                     val = Long.parseLong(ret);
534         if (negative) val = -1L * val;
535         return val;
536     }
537     /**
538      *  This interface marks Fleets which can create ships on the fly, like the fleeterpreter;
539      *  if available, the parser will use this interface to create ships out of #ship definitions.
540      */
541     public static interface FleetWithDynamicShips {
542         public Ship createShip(String shiptype, String shipname);
543     }
544
545     private static Move discard(Dock dock)           { return new Move(dock, false, IgnoreOLC, false, null, false, true,  false, false, false, false); }
546     private static Move deliver(Dock dock)           { return new Move(dock, false, IgnoreOLC, false, null, false, false, false, false, true,  false); }
547     private static Move wait(Dock dock)              { return new Move(dock, false, IgnoreOLC, false, null, true,  false, false, false, false, false); }
548     private static Move sendto(Dock dock, Path path) { return new Move(dock, false, IgnoreOLC, false, path, false, false, false, false, true,  false); }
549 }