6 #include <boost/scoped_ptr.hpp> 
   15 using namespace osl::eval;
 
   20   cerr << 
"Usage: " << prog << 
" table1 table2" 
   33 int main(
int argc, 
char **argv)
 
   35   const char *program_name = argv[0];
 
   36   bool error_flag = 
false;
 
   37   const char *filename1 = 0;
 
   38   const char *filename2 = 0;
 
   43   while ((c = getopt(argc, argv, 
"vh")) != EOF)
 
   47     default:    error_flag = 
true;
 
   53   if (error_flag || (argc < 2))
 
   58   boost::scoped_ptr<PiecePairRawTable> table1(
new PiecePairRawTable());
 
   59   table1->loadFromBinaryFile(filename1);
 
   60   boost::scoped_ptr<PiecePairRawTable> table2(
new PiecePairRawTable());
 
   61   table2->loadFromBinaryFile(filename2);
 
   63   for (
unsigned int i=0; i<PiecePairRawTable::maxPairIndex; ++i)
 
   65     const int val1 = table1->value(i);
 
   66     const int val2 = table2->value(i);
 
   70       PiecePairRawTable::meltIndex(i, i1, i2);
 
   73       PiecePairRawTable::meltIndex(i1, pos1, ptypeo1);
 
   74       PiecePairRawTable::meltIndex(i2, pos2, ptypeo2);
 
   75       show(std::cout, pos1, ptypeo1);
 
   77       show(std::cout, pos2, ptypeo2);
 
   78       std::cout << 
" : " << val1 << 
" != " << val2 << 
"\n";