Delete dead code.
[oota-llvm.git] / tools / llvm-ar / llvm-ar.cpp
1 //===-- llvm-ar.cpp - LLVM archive librarian utility ----------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // Builds up (relatively) standard unix archive files (.a) containing LLVM
11 // bitcode or other files.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #include "Archive.h"
16 #include "llvm/IR/LLVMContext.h"
17 #include "llvm/IR/Module.h"
18 #include "llvm/Support/CommandLine.h"
19 #include "llvm/Support/FileSystem.h"
20 #include "llvm/Support/Format.h"
21 #include "llvm/Support/ManagedStatic.h"
22 #include "llvm/Support/PrettyStackTrace.h"
23 #include "llvm/Support/Signals.h"
24 #include "llvm/Support/raw_ostream.h"
25 #include <algorithm>
26 #include <cstdlib>
27 #include <fcntl.h>
28 #include <memory>
29
30 #if !defined(_MSC_VER) && !defined(__MINGW32__)
31 #include <unistd.h>
32 #else
33 #include <io.h>
34 #endif
35
36 using namespace llvm;
37
38 // Option for compatibility with AIX, not used but must allow it to be present.
39 static cl::opt<bool>
40 X32Option ("X32_64", cl::Hidden,
41             cl::desc("Ignored option for compatibility with AIX"));
42
43 // llvm-ar operation code and modifier flags. This must come first.
44 static cl::opt<std::string>
45 Options(cl::Positional, cl::Required, cl::desc("{operation}[modifiers]..."));
46
47 // llvm-ar remaining positional arguments.
48 static cl::list<std::string>
49 RestOfArgs(cl::Positional, cl::OneOrMore,
50     cl::desc("[relpos] [count] <archive-file> [members]..."));
51
52 // MoreHelp - Provide additional help output explaining the operations and
53 // modifiers of llvm-ar. This object instructs the CommandLine library
54 // to print the text of the constructor when the --help option is given.
55 static cl::extrahelp MoreHelp(
56   "\nOPERATIONS:\n"
57   "  d[NsS]       - delete file(s) from the archive\n"
58   "  m[abiSs]     - move file(s) in the archive\n"
59   "  p[kN]        - print file(s) found in the archive\n"
60   "  q[ufsS]      - quick append file(s) to the archive\n"
61   "  r[abfiuRsS]  - replace or insert file(s) into the archive\n"
62   "  t            - display contents of archive\n"
63   "  x[No]        - extract file(s) from the archive\n"
64   "\nMODIFIERS (operation specific):\n"
65   "  [a] - put file(s) after [relpos]\n"
66   "  [b] - put file(s) before [relpos] (same as [i])\n"
67   "  [i] - put file(s) before [relpos] (same as [b])\n"
68   "  [N] - use instance [count] of name\n"
69   "  [o] - preserve original dates\n"
70   "  [s] - create an archive index (cf. ranlib)\n"
71   "  [S] - do not build a symbol table\n"
72   "  [u] - update only files newer than archive contents\n"
73   "\nMODIFIERS (generic):\n"
74   "  [c] - do not warn if the library had to be created\n"
75   "  [v] - be verbose about actions taken\n"
76 );
77
78 // This enumeration delineates the kinds of operations on an archive
79 // that are permitted.
80 enum ArchiveOperation {
81   Print,            ///< Print the contents of the archive
82   Delete,           ///< Delete the specified members
83   Move,             ///< Move members to end or as given by {a,b,i} modifiers
84   QuickAppend,      ///< Quickly append to end of archive
85   ReplaceOrInsert,  ///< Replace or Insert members
86   DisplayTable,     ///< Display the table of contents
87   Extract           ///< Extract files back to file system
88 };
89
90 // Modifiers to follow operation to vary behavior
91 bool AddAfter = false;           ///< 'a' modifier
92 bool AddBefore = false;          ///< 'b' modifier
93 bool Create = false;             ///< 'c' modifier
94 bool InsertBefore = false;       ///< 'i' modifier
95 bool UseCount = false;           ///< 'N' modifier
96 bool OriginalDates = false;      ///< 'o' modifier
97 bool SymTable = true;            ///< 's' & 'S' modifiers
98 bool OnlyUpdate = false;         ///< 'u' modifier
99 bool Verbose = false;            ///< 'v' modifier
100
101 // Relative Positional Argument (for insert/move). This variable holds
102 // the name of the archive member to which the 'a', 'b' or 'i' modifier
103 // refers. Only one of 'a', 'b' or 'i' can be specified so we only need
104 // one variable.
105 std::string RelPos;
106
107 // Select which of multiple entries in the archive with the same name should be
108 // used (specified with -N) for the delete and extract operations.
109 int Count = 1;
110
111 // This variable holds the name of the archive file as given on the
112 // command line.
113 std::string ArchiveName;
114
115 // This variable holds the list of member files to proecess, as given
116 // on the command line.
117 std::vector<std::string> Members;
118
119 // This variable holds the (possibly expanded) list of path objects that
120 // correspond to files we will
121 std::set<std::string> Paths;
122
123 // The Archive object to which all the editing operations will be sent.
124 Archive* TheArchive = 0;
125
126 // The name this program was invoked as.
127 static const char *program_name;
128
129 // show_help - Show the error message, the help message and exit.
130 LLVM_ATTRIBUTE_NORETURN static void
131 show_help(const std::string &msg) {
132   errs() << program_name << ": " << msg << "\n\n";
133   cl::PrintHelpMessage();
134   if (TheArchive)
135     delete TheArchive;
136   std::exit(1);
137 }
138
139 // fail - Show the error message and exit.
140 LLVM_ATTRIBUTE_NORETURN static void
141 fail(const std::string &msg) {
142   errs() << program_name << ": " << msg << "\n\n";
143   if (TheArchive)
144     delete TheArchive;
145   std::exit(1);
146 }
147
148 // getRelPos - Extract the member filename from the command line for
149 // the [relpos] argument associated with a, b, and i modifiers
150 void getRelPos() {
151   if(RestOfArgs.size() == 0)
152     show_help("Expected [relpos] for a, b, or i modifier");
153   RelPos = RestOfArgs[0];
154   RestOfArgs.erase(RestOfArgs.begin());
155 }
156
157 // getCount - Extract the [count] argument associated with the N modifier
158 // from the command line and check its value.
159 void getCount() {
160   if(RestOfArgs.size() == 0)
161     show_help("Expected [count] value with N modifier");
162
163   Count = atoi(RestOfArgs[0].c_str());
164   RestOfArgs.erase(RestOfArgs.begin());
165
166   // Non-positive counts are not allowed
167   if (Count < 1)
168     show_help("Invalid [count] value (not a positive integer)");
169 }
170
171 // getArchive - Get the archive file name from the command line
172 void getArchive() {
173   if(RestOfArgs.size() == 0)
174     show_help("An archive name must be specified");
175   ArchiveName = RestOfArgs[0];
176   RestOfArgs.erase(RestOfArgs.begin());
177 }
178
179 // getMembers - Copy over remaining items in RestOfArgs to our Members vector
180 // This is just for clarity.
181 void getMembers() {
182   if(RestOfArgs.size() > 0)
183     Members = std::vector<std::string>(RestOfArgs);
184 }
185
186 // parseCommandLine - Parse the command line options as presented and return the
187 // operation specified. Process all modifiers and check to make sure that
188 // constraints on modifier/operation pairs have not been violated.
189 ArchiveOperation parseCommandLine() {
190
191   // Keep track of number of operations. We can only specify one
192   // per execution.
193   unsigned NumOperations = 0;
194
195   // Keep track of the number of positional modifiers (a,b,i). Only
196   // one can be specified.
197   unsigned NumPositional = 0;
198
199   // Keep track of which operation was requested
200   ArchiveOperation Operation;
201
202   for(unsigned i=0; i<Options.size(); ++i) {
203     switch(Options[i]) {
204     case 'd': ++NumOperations; Operation = Delete; break;
205     case 'm': ++NumOperations; Operation = Move ; break;
206     case 'p': ++NumOperations; Operation = Print; break;
207     case 'q': ++NumOperations; Operation = QuickAppend; break;
208     case 'r': ++NumOperations; Operation = ReplaceOrInsert; break;
209     case 't': ++NumOperations; Operation = DisplayTable; break;
210     case 'x': ++NumOperations; Operation = Extract; break;
211     case 'c': Create = true; break;
212     case 'l': /* accepted but unused */ break;
213     case 'o': OriginalDates = true; break;
214     case 's': break; // Ignore for now.
215     case 'S': break; // Ignore for now.
216     case 'u': OnlyUpdate = true; break;
217     case 'v': Verbose = true; break;
218     case 'a':
219       getRelPos();
220       AddAfter = true;
221       NumPositional++;
222       break;
223     case 'b':
224       getRelPos();
225       AddBefore = true;
226       NumPositional++;
227       break;
228     case 'i':
229       getRelPos();
230       InsertBefore = true;
231       NumPositional++;
232       break;
233     case 'N':
234       getCount();
235       UseCount = true;
236       break;
237     default:
238       cl::PrintHelpMessage();
239     }
240   }
241
242   // At this point, the next thing on the command line must be
243   // the archive name.
244   getArchive();
245
246   // Everything on the command line at this point is a member.
247   getMembers();
248
249   // Perform various checks on the operation/modifier specification
250   // to make sure we are dealing with a legal request.
251   if (NumOperations == 0)
252     show_help("You must specify at least one of the operations");
253   if (NumOperations > 1)
254     show_help("Only one operation may be specified");
255   if (NumPositional > 1)
256     show_help("You may only specify one of a, b, and i modifiers");
257   if (AddAfter || AddBefore || InsertBefore) {
258     if (Operation != Move && Operation != ReplaceOrInsert)
259       show_help("The 'a', 'b' and 'i' modifiers can only be specified with "
260             "the 'm' or 'r' operations");
261   }
262   if (OriginalDates && Operation != Extract)
263     show_help("The 'o' modifier is only applicable to the 'x' operation");
264   if (OnlyUpdate && Operation != ReplaceOrInsert)
265     show_help("The 'u' modifier is only applicable to the 'r' operation");
266   if (Count > 1 && Members.size() > 1)
267     show_help("Only one member name may be specified with the 'N' modifier");
268
269   // Return the parsed operation to the caller
270   return Operation;
271 }
272
273 // buildPaths - Convert the strings in the Members vector to sys::Path objects
274 // and make sure they are valid and exist exist. This check is only needed for
275 // the operations that add/replace files to the archive ('q' and 'r')
276 bool buildPaths(bool checkExistence, std::string* ErrMsg) {
277   for (unsigned i = 0; i < Members.size(); i++) {
278     std::string aPath = Members[i];
279     if (checkExistence) {
280       bool IsDirectory;
281       error_code EC = sys::fs::is_directory(aPath, IsDirectory);
282       if (EC)
283         fail(aPath + ": " + EC.message());
284       if (IsDirectory)
285         fail(aPath + " Is a directory");
286
287       Paths.insert(aPath);
288     } else {
289       Paths.insert(aPath);
290     }
291   }
292   return false;
293 }
294
295 // doPrint - Implements the 'p' operation. This function traverses the archive
296 // looking for members that match the path list. It is careful to uncompress
297 // things that should be and to skip bitcode files unless the 'k' modifier was
298 // given.
299 bool doPrint(std::string* ErrMsg) {
300   if (buildPaths(false, ErrMsg))
301     return true;
302   unsigned countDown = Count;
303   for (Archive::iterator I = TheArchive->begin(), E = TheArchive->end();
304        I != E; ++I ) {
305     if (Paths.empty() ||
306         (std::find(Paths.begin(), Paths.end(), I->getPath()) != Paths.end())) {
307       if (countDown == 1) {
308         const char* data = reinterpret_cast<const char*>(I->getData());
309
310         // Skip things that don't make sense to print
311         if (I->isSVR4SymbolTable() || I->isBSD4SymbolTable())
312           continue;
313
314         if (Verbose)
315           outs() << "Printing " << I->getPath().str() << "\n";
316
317         unsigned len = I->getSize();
318         outs().write(data, len);
319       } else {
320         countDown--;
321       }
322     }
323   }
324   return false;
325 }
326
327 // putMode - utility function for printing out the file mode when the 't'
328 // operation is in verbose mode.
329 void
330 printMode(unsigned mode) {
331   if (mode & 004)
332     outs() << "r";
333   else
334     outs() << "-";
335   if (mode & 002)
336     outs() << "w";
337   else
338     outs() << "-";
339   if (mode & 001)
340     outs() << "x";
341   else
342     outs() << "-";
343 }
344
345 // doDisplayTable - Implement the 't' operation. This function prints out just
346 // the file names of each of the members. However, if verbose mode is requested
347 // ('v' modifier) then the file type, permission mode, user, group, size, and
348 // modification time are also printed.
349 bool
350 doDisplayTable(std::string* ErrMsg) {
351   if (buildPaths(false, ErrMsg))
352     return true;
353   for (Archive::iterator I = TheArchive->begin(), E = TheArchive->end();
354        I != E; ++I ) {
355     if (Paths.empty() ||
356         (std::find(Paths.begin(), Paths.end(), I->getPath()) != Paths.end())) {
357       if (Verbose) {
358         // FIXME: Output should be this format:
359         // Zrw-r--r--  500/ 500    525 Nov  8 17:42 2004 Makefile
360         outs() << " ";
361         unsigned mode = I->getMode();
362         printMode((mode >> 6) & 007);
363         printMode((mode >> 3) & 007);
364         printMode(mode & 007);
365         outs() << " " << format("%4u", I->getUser());
366         outs() << "/" << format("%4u", I->getGroup());
367         outs() << " " << format("%8u", I->getSize());
368         outs() << " " << format("%20s", I->getModTime().str().substr(4).c_str());
369         outs() << " " << I->getPath().str() << "\n";
370       } else {
371         outs() << I->getPath().str() << "\n";
372       }
373     }
374   }
375   return false;
376 }
377
378 // doExtract - Implement the 'x' operation. This function extracts files back to
379 // the file system.
380 bool
381 doExtract(std::string* ErrMsg) {
382   if (buildPaths(false, ErrMsg))
383     return true;
384   for (Archive::iterator I = TheArchive->begin(), E = TheArchive->end();
385        I != E; ++I ) {
386     if (Paths.empty() ||
387         (std::find(Paths.begin(), Paths.end(), I->getPath()) != Paths.end())) {
388
389       // Open up a file stream for writing
390       int OpenFlags = O_TRUNC | O_WRONLY | O_CREAT;
391 #ifdef O_BINARY
392       OpenFlags |= O_BINARY;
393 #endif
394
395       // Retain the original mode.
396       sys::fs::perms Mode = sys::fs::perms(I->getMode());
397
398       int FD = open(I->getPath().str().c_str(), OpenFlags, Mode);
399       if (FD < 0)
400         return true;
401
402       {
403         raw_fd_ostream file(FD, false);
404
405         // Get the data and its length
406         const char* data = reinterpret_cast<const char*>(I->getData());
407         unsigned len = I->getSize();
408
409         // Write the data.
410         file.write(data, len);
411       }
412
413       // If we're supposed to retain the original modification times, etc. do so
414       // now.
415       if (OriginalDates) {
416         error_code EC =
417             sys::fs::setLastModificationAndAccessTime(FD, I->getModTime());
418         if (EC)
419           fail(EC.message());
420       }
421       if (close(FD))
422         return true;
423     }
424   }
425   return false;
426 }
427
428 // doDelete - Implement the delete operation. This function deletes zero or more
429 // members from the archive. Note that if the count is specified, there should
430 // be no more than one path in the Paths list or else this algorithm breaks.
431 // That check is enforced in parseCommandLine (above).
432 bool
433 doDelete(std::string* ErrMsg) {
434   if (buildPaths(false, ErrMsg))
435     return true;
436   if (Paths.empty())
437     return false;
438   unsigned countDown = Count;
439   for (Archive::iterator I = TheArchive->begin(), E = TheArchive->end();
440        I != E; ) {
441     if (std::find(Paths.begin(), Paths.end(), I->getPath()) != Paths.end()) {
442       if (countDown == 1) {
443         Archive::iterator J = I;
444         ++I;
445         TheArchive->erase(J);
446       } else
447         countDown--;
448     } else {
449       ++I;
450     }
451   }
452
453   // We're done editting, reconstruct the archive.
454   if (TheArchive->writeToDisk(ErrMsg))
455     return true;
456   return false;
457 }
458
459 // doMore - Implement the move operation. This function re-arranges just the
460 // order of the archive members so that when the archive is written the move
461 // of the members is accomplished. Note the use of the RelPos variable to
462 // determine where the items should be moved to.
463 bool
464 doMove(std::string* ErrMsg) {
465   if (buildPaths(false, ErrMsg))
466     return true;
467
468   // By default and convention the place to move members to is the end of the
469   // archive.
470   Archive::iterator moveto_spot = TheArchive->end();
471
472   // However, if the relative positioning modifiers were used, we need to scan
473   // the archive to find the member in question. If we don't find it, its no
474   // crime, we just move to the end.
475   if (AddBefore || InsertBefore || AddAfter) {
476     for (Archive::iterator I = TheArchive->begin(), E= TheArchive->end();
477          I != E; ++I ) {
478       if (RelPos == I->getPath().str()) {
479         if (AddAfter) {
480           moveto_spot = I;
481           moveto_spot++;
482         } else {
483           moveto_spot = I;
484         }
485         break;
486       }
487     }
488   }
489
490   // Keep a list of the paths remaining to be moved
491   std::set<std::string> remaining(Paths);
492
493   // Scan the archive again, this time looking for the members to move to the
494   // moveto_spot.
495   for (Archive::iterator I = TheArchive->begin(), E= TheArchive->end();
496        I != E && !remaining.empty(); ++I ) {
497     std::set<std::string>::iterator found =
498       std::find(remaining.begin(),remaining.end(), I->getPath());
499     if (found != remaining.end()) {
500       if (I != moveto_spot)
501         TheArchive->splice(moveto_spot,*TheArchive,I);
502       remaining.erase(found);
503     }
504   }
505
506   // We're done editting, reconstruct the archive.
507   if (TheArchive->writeToDisk(ErrMsg))
508     return true;
509   return false;
510 }
511
512 // doQuickAppend - Implements the 'q' operation. This function just
513 // indiscriminantly adds the members to the archive and rebuilds it.
514 bool
515 doQuickAppend(std::string* ErrMsg) {
516   // Get the list of paths to append.
517   if (buildPaths(true, ErrMsg))
518     return true;
519   if (Paths.empty())
520     return false;
521
522   // Append them quickly.
523   for (std::set<std::string>::iterator PI = Paths.begin(), PE = Paths.end();
524        PI != PE; ++PI) {
525     if (TheArchive->addFileBefore(*PI, TheArchive->end(), ErrMsg))
526       return true;
527   }
528
529   // We're done editting, reconstruct the archive.
530   if (TheArchive->writeToDisk(ErrMsg))
531     return true;
532   return false;
533 }
534
535 // doReplaceOrInsert - Implements the 'r' operation. This function will replace
536 // any existing files or insert new ones into the archive.
537 bool
538 doReplaceOrInsert(std::string* ErrMsg) {
539
540   // Build the list of files to be added/replaced.
541   if (buildPaths(true, ErrMsg))
542     return true;
543   if (Paths.empty())
544     return false;
545
546   // Keep track of the paths that remain to be inserted.
547   std::set<std::string> remaining(Paths);
548
549   // Default the insertion spot to the end of the archive
550   Archive::iterator insert_spot = TheArchive->end();
551
552   // Iterate over the archive contents
553   for (Archive::iterator I = TheArchive->begin(), E = TheArchive->end();
554        I != E && !remaining.empty(); ++I ) {
555
556     // Determine if this archive member matches one of the paths we're trying
557     // to replace.
558
559     std::set<std::string>::iterator found = remaining.end();
560     for (std::set<std::string>::iterator RI = remaining.begin(),
561          RE = remaining.end(); RI != RE; ++RI ) {
562       std::string compare(sys::path::filename(*RI));
563       if (compare == I->getPath().str()) {
564         found = RI;
565         break;
566       }
567     }
568
569     if (found != remaining.end()) {
570       sys::fs::file_status Status;
571       error_code EC = sys::fs::status(*found, Status);
572       if (EC)
573         return true;
574       if (!sys::fs::is_directory(Status)) {
575         if (OnlyUpdate) {
576           // Replace the item only if it is newer.
577           if (Status.getLastModificationTime() > I->getModTime())
578             if (I->replaceWith(*found, ErrMsg))
579               return true;
580         } else {
581           // Replace the item regardless of time stamp
582           if (I->replaceWith(*found, ErrMsg))
583             return true;
584         }
585       } else {
586         // We purposefully ignore directories.
587       }
588
589       // Remove it from our "to do" list
590       remaining.erase(found);
591     }
592
593     // Determine if this is the place where we should insert
594     if ((AddBefore || InsertBefore) && RelPos == I->getPath().str())
595       insert_spot = I;
596     else if (AddAfter && RelPos == I->getPath().str()) {
597       insert_spot = I;
598       insert_spot++;
599     }
600   }
601
602   // If we didn't replace all the members, some will remain and need to be
603   // inserted at the previously computed insert-spot.
604   if (!remaining.empty()) {
605     for (std::set<std::string>::iterator PI = remaining.begin(),
606          PE = remaining.end(); PI != PE; ++PI) {
607       if (TheArchive->addFileBefore(*PI, insert_spot, ErrMsg))
608         return true;
609     }
610   }
611
612   // We're done editting, reconstruct the archive.
613   if (TheArchive->writeToDisk(ErrMsg))
614     return true;
615   return false;
616 }
617
618 bool shouldCreateArchive(ArchiveOperation Op) {
619   switch (Op) {
620   case Print:
621   case Delete:
622   case Move:
623   case DisplayTable:
624   case Extract:
625     return false;
626
627   case QuickAppend:
628   case ReplaceOrInsert:
629     return true;
630   }
631
632   llvm_unreachable("Missing entry in covered switch.");
633 }
634
635 // main - main program for llvm-ar .. see comments in the code
636 int main(int argc, char **argv) {
637   program_name = argv[0];
638   // Print a stack trace if we signal out.
639   sys::PrintStackTraceOnErrorSignal();
640   PrettyStackTraceProgram X(argc, argv);
641   LLVMContext &Context = getGlobalContext();
642   llvm_shutdown_obj Y;  // Call llvm_shutdown() on exit.
643
644   // Have the command line options parsed and handle things
645   // like --help and --version.
646   cl::ParseCommandLineOptions(argc, argv,
647     "LLVM Archiver (llvm-ar)\n\n"
648     "  This program archives bitcode files into single libraries\n"
649   );
650
651   int exitCode = 0;
652
653   // Do our own parsing of the command line because the CommandLine utility
654   // can't handle the grouped positional parameters without a dash.
655   ArchiveOperation Operation = parseCommandLine();
656
657   // Create or open the archive object.
658   if (shouldCreateArchive(Operation) && !llvm::sys::fs::exists(ArchiveName)) {
659     // Produce a warning if we should and we're creating the archive
660     if (!Create)
661       errs() << argv[0] << ": creating " << ArchiveName << "\n";
662     TheArchive = Archive::CreateEmpty(ArchiveName, Context);
663     TheArchive->writeToDisk();
664   }
665
666   if (!TheArchive) {
667     std::string Error;
668     TheArchive = Archive::OpenAndLoad(ArchiveName, Context, &Error);
669     if (TheArchive == 0) {
670       errs() << argv[0] << ": error loading '" << ArchiveName << "': "
671              << Error << "!\n";
672       return 1;
673     }
674   }
675
676   // Make sure we're not fooling ourselves.
677   assert(TheArchive && "Unable to instantiate the archive");
678
679   // Perform the operation
680   std::string ErrMsg;
681   bool haveError = false;
682   switch (Operation) {
683     case Print:           haveError = doPrint(&ErrMsg); break;
684     case Delete:          haveError = doDelete(&ErrMsg); break;
685     case Move:            haveError = doMove(&ErrMsg); break;
686     case QuickAppend:     haveError = doQuickAppend(&ErrMsg); break;
687     case ReplaceOrInsert: haveError = doReplaceOrInsert(&ErrMsg); break;
688     case DisplayTable:    haveError = doDisplayTable(&ErrMsg); break;
689     case Extract:         haveError = doExtract(&ErrMsg); break;
690   }
691   if (haveError) {
692     errs() << argv[0] << ": " << ErrMsg << "\n";
693     return 1;
694   }
695
696   delete TheArchive;
697   TheArchive = 0;
698
699   // Return result code back to operating system.
700   return exitCode;
701 }