File: Ordering_IntOrderTest_Impl.cc

package info (click to toggle)
babel 0.10.2-1
  • links: PTS
  • area: contrib
  • in suites: sarge
  • size: 43,932 kB
  • ctags: 29,707
  • sloc: java: 74,695; ansic: 73,142; cpp: 40,649; sh: 18,411; f90: 10,062; fortran: 6,727; python: 6,406; makefile: 3,866; xml: 118; perl: 48
file content (562 lines) | stat: -rw-r--r-- 17,056 bytes parent folder | download
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
// 
// File:          Ordering_IntOrderTest_Impl.cc
// Symbol:        Ordering.IntOrderTest-v0.1
// Symbol Type:   class
// Babel Version: 0.10.2
// Description:   Server-side implementation for Ordering.IntOrderTest
// 
// WARNING: Automatically generated; only changes within splicers preserved
// 
// babel-version = 0.10.2
// 
#include "Ordering_IntOrderTest_Impl.hh"

#line 14 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
// DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest._includes)
#include "sidl_int_IOR.h"
#include <stdlib.h>

static int32_t
iFunc(const int32_t *ind, const int32_t dim)
{
  int32_t res = 0;
  int32_t i;
  for(i = 0; i < dim ; ++i) {
    res += (i+1)*ind[i];
  }
  return res;
}

static int
incIndex(int32_t ind[], const struct sidl_int__array* A, const int32_t dimen)
{
  int32_t i = 0;
  while (i < dimen) {
    if (++(ind[i]) > sidlUpper(A, i)) {
      ind[i] = sidlLower(A, i);
      ++i;
    }
    else {
      return TRUE;
    }
  }
  /* we're all done */
  return FALSE;
}

static sidl_bool
isIMatrix(const struct sidl_int__array* A)
{
  if (A) {
    const int32_t dimen = sidl_int__array_dimen(A);
    int32_t i;
    int32_t *cindex = (int32_t*)malloc(sizeof(int32_t)*dimen);
    for(i = 0; i < dimen; ++i){
      cindex[i] = sidlLower(A, i);
      if (sidlLower(A,i) > sidlUpper(A,i)) {
        free(cindex);
        return TRUE;
      }
    }
    do {
      if (iFunc(cindex, dimen) != sidl_int__array_get(A, cindex)) {
        free(cindex);
        return FALSE;
      }
    } while (incIndex(cindex, A, dimen));
    free(cindex);
    return TRUE;
  }
  return FALSE;
}

static void
fillIMatrix(struct sidl_int__array* A)
{
  if (A) {
    const int32_t dimen = sidl_int__array_dimen(A);
    int32_t i;
    int32_t *cindex = (int32_t*)malloc(sizeof(int32_t)*dimen);
    for(i = 0; i < dimen; ++i){
      cindex[i] = sidlLower(A, i);
      if (sidlLower(A,i) > sidlUpper(A,i)){
        free(cindex);
        return;
      }
    }
    do {
      sidl_int__array_set(A, cindex, iFunc(cindex, dimen));
    } while (incIndex(cindex, A, dimen));
    free(cindex);
  }
}
// DO-NOT-DELETE splicer.end(Ordering.IntOrderTest._includes)
#line 94 "Ordering_IntOrderTest_Impl.cc"

// user-defined constructor.
void Ordering::IntOrderTest_impl::_ctor() {
#line 96 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest._ctor)
  // add construction details here
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest._ctor)
#line 102 "Ordering_IntOrderTest_Impl.cc"
}

// user-defined destructor.
void Ordering::IntOrderTest_impl::_dtor() {
#line 103 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest._dtor)
  // add destruction details here
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest._dtor)
#line 111 "Ordering_IntOrderTest_Impl.cc"
}

// static class initializer.
void Ordering::IntOrderTest_impl::_load() {
#line 110 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest._load)
  // guaranteed to be called at most once before any other method in this class
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest._load)
#line 120 "Ordering_IntOrderTest_Impl.cc"
}

// user-defined static methods:
/**
 * Create a column-major matrix satisfying condition I.
 */
::sidl::array<int32_t>
Ordering::IntOrderTest_impl::makeColumnIMatrix (
  /* in */ int32_t size,
  /* in */ bool useCreateCol ) 
throw () 
{
#line 125 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.makeColumnIMatrix)
  sidl::array<int32_t> res;
  if (useCreateCol) {
    res = sidl::array<int32_t>::create2dCol(size, size);
  }
  else {
    res = sidl::array<int32_t>::create2dRow(size, size);
  }
  fillIMatrix(res._get_ior());
  return res;
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.makeColumnIMatrix)
#line 145 "Ordering_IntOrderTest_Impl.cc"
}

/**
 * Create a row-major matrix satisfying condition I.
 */
::sidl::array<int32_t>
Ordering::IntOrderTest_impl::makeRowIMatrix (
  /* in */ int32_t size,
  /* in */ bool useCreateRow ) 
throw () 
{
#line 147 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.makeRowIMatrix)
  sidl::array<int32_t> res;
  if (useCreateRow) {
    res = sidl::array<int32_t>::create2dRow(size, size);
  }
  else {
    res = sidl::array<int32_t>::create2dCol(size, size);
  }
  fillIMatrix(res._get_ior());
  return res;
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.makeRowIMatrix)
#line 169 "Ordering_IntOrderTest_Impl.cc"
}

/**
 * Create a 4-D matrix satisfying condition I.  Each dimension has
 * size elements numbers 0 through size-1.
 */
::sidl::array<int32_t>
Ordering::IntOrderTest_impl::makeIMatrix (
  /* in */ int32_t size,
  /* in */ bool useCreateColumn ) 
throw () 
{
#line 170 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.makeIMatrix)
  sidl::array<int32_t> res;
  static const int lower[4] = { 0, 0, 0, 0};
  const int upper[4] = { size - 1, size - 1, size -1, size - 1};
  if (useCreateColumn) {
    res = sidl::array<int32_t>::createCol(4, lower, upper);
  }
  else {
    res = sidl::array<int32_t>::createRow(4, lower, upper);
  }
  fillIMatrix(res._get_ior());
  return res;
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.makeIMatrix)
#line 196 "Ordering_IntOrderTest_Impl.cc"
}

/**
 * Create a column-major matrix satisfying condition I.
 */
void
Ordering::IntOrderTest_impl::createColumnIMatrix (
  /* in */ int32_t size,
  /* in */ bool useCreateCol,
  /* out */ ::sidl::array<int32_t>& res ) 
throw () 
{
#line 195 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.createColumnIMatrix)
  if (useCreateCol){
    res = Ordering::IntOrderTest::makeColumnIMatrix(size, true);
  }
  else {
    res = Ordering::IntOrderTest::makeRowIMatrix(size, true);
  }
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.createColumnIMatrix)
#line 218 "Ordering_IntOrderTest_Impl.cc"
}

/**
 * Create a row-major matrix satisfying condition I.
 */
void
Ordering::IntOrderTest_impl::createRowIMatrix (
  /* in */ int32_t size,
  /* in */ bool useCreateRow,
  /* out */ ::sidl::array<int32_t>& res ) 
throw () 
{
#line 215 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.createRowIMatrix)
  if (useCreateRow){
    res = Ordering::IntOrderTest::makeRowIMatrix(size, true);
  }
  else {
    res = Ordering::IntOrderTest::makeColumnIMatrix(size, true);
  }
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.createRowIMatrix)
#line 240 "Ordering_IntOrderTest_Impl.cc"
}

/**
 * Make sure an array is column-major.  No changes to the dimension or
 * values in a are made.
 */
void
Ordering::IntOrderTest_impl::ensureColumn (
  /* inout */ ::sidl::array<int32_t>& a ) 
throw () 
{
#line 234 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.ensureColumn)
  /* no action required */
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.ensureColumn)
#line 256 "Ordering_IntOrderTest_Impl.cc"
}

/**
 * Make sure an array is row-major.  No changes to the dimension or
 * values in a are made.
 */
void
Ordering::IntOrderTest_impl::ensureRow (
  /* inout */ ::sidl::array<int32_t>& a ) 
throw () 
{
#line 248 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.ensureRow)
  /* no action required */
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.ensureRow)
#line 272 "Ordering_IntOrderTest_Impl.cc"
}

/**
 *  Return <code>true</code> iff the implementation sees
 *  an incoming array satisfying condition I.
 */
bool
Ordering::IntOrderTest_impl::isIMatrixOne (
  /* in */ ::sidl::array<int32_t> A ) 
throw () 
{
#line 262 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.isIMatrixOne)
  return isIMatrix(A._get_ior());
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.isIMatrixOne)
#line 288 "Ordering_IntOrderTest_Impl.cc"
}

/**
 * Return <code>true</code> iff the implementation sees
 * an incoming column-major array satisfying condition I.
 */
bool
Ordering::IntOrderTest_impl::isColumnIMatrixOne (
  /* in */ ::sidl::array<int32_t> A ) 
throw () 
{
#line 276 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.isColumnIMatrixOne)
  return A.isColumnOrder() && isIMatrix(A._get_ior());
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.isColumnIMatrixOne)
#line 304 "Ordering_IntOrderTest_Impl.cc"
}

/**
 * Return <code>true</code> iff the implementation sees
 * an incoming row-major array satisfying condition I.
 */
bool
Ordering::IntOrderTest_impl::isRowIMatrixOne (
  /* in */ ::sidl::array<int32_t> A ) 
throw () 
{
#line 290 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.isRowIMatrixOne)
  bool i = A.isRowOrder();
  bool j = isIMatrix(A._get_ior());
  return (i && j);
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.isRowIMatrixOne)
#line 322 "Ordering_IntOrderTest_Impl.cc"
}

/**
 *  Return <code>true</code> iff the implementation sees
 *  an incoming array satisfying condition I.
 */
bool
Ordering::IntOrderTest_impl::isIMatrixTwo (
  /* in */ ::sidl::array<int32_t> A ) 
throw () 
{
#line 306 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.isIMatrixTwo)
  return isIMatrix(A._get_ior());
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.isIMatrixTwo)
#line 338 "Ordering_IntOrderTest_Impl.cc"
}

/**
 * Return <code>true</code> iff the implementation sees
 * an incoming column-major array satisfying condition I.
 */
bool
Ordering::IntOrderTest_impl::isColumnIMatrixTwo (
  /* in */ ::sidl::array<int32_t> A ) 
throw () 
{
#line 320 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.isColumnIMatrixTwo)
  return A.isColumnOrder() && isIMatrix(A._get_ior());
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.isColumnIMatrixTwo)
#line 354 "Ordering_IntOrderTest_Impl.cc"
}

/**
 * Return <code>true</code> iff the implementation sees
 * an incoming row-major array satisfying condition I.
 */
bool
Ordering::IntOrderTest_impl::isRowIMatrixTwo (
  /* in */ ::sidl::array<int32_t> A ) 
throw () 
{
#line 334 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.isRowIMatrixTwo)
  bool i = A.isRowOrder();
  bool j = isIMatrix(A._get_ior());
  return (i && j);
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.isRowIMatrixTwo)
#line 372 "Ordering_IntOrderTest_Impl.cc"
}

/**
 *  Return <code>true</code> iff the implementation sees
 *  an incoming array satisfying condition I.
 */
bool
Ordering::IntOrderTest_impl::isIMatrixFour (
  /* in */ ::sidl::array<int32_t> A ) 
throw () 
{
#line 350 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.isIMatrixFour)
  return isIMatrix(A._get_ior());
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.isIMatrixFour)
#line 388 "Ordering_IntOrderTest_Impl.cc"
}

/**
 * Return <code>true</code> iff the implementation sees
 * an incoming column-major array satisfying condition I.
 */
bool
Ordering::IntOrderTest_impl::isColumnIMatrixFour (
  /* in */ ::sidl::array<int32_t> A ) 
throw () 
{
#line 364 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.isColumnIMatrixFour)
  return A.isColumnOrder() && isIMatrix(A._get_ior());
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.isColumnIMatrixFour)
#line 404 "Ordering_IntOrderTest_Impl.cc"
}

/**
 * Return <code>true</code> iff the implementation sees
 * an incoming row-major array satisfying condition I.
 */
bool
Ordering::IntOrderTest_impl::isRowIMatrixFour (
  /* in */ ::sidl::array<int32_t> A ) 
throw () 
{
#line 378 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.isRowIMatrixFour)
  return A.isRowOrder() && isIMatrix(A._get_ior());
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.isRowIMatrixFour)
#line 420 "Ordering_IntOrderTest_Impl.cc"
}

/**
 * Return <code>true</code> iff the implementation of slice
 * and smart copy is correct.
 */
bool
Ordering::IntOrderTest_impl::isSliceWorking (
  /* in */ bool useCreateCol ) 
throw () 
{
#line 392 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
  // DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest.isSliceWorking)
  bool res = true;
  const int32_t maxDim = 16;
  const int32_t halfDim = maxDim >> 1;
  sidl::array<int32_t> A, B;
  int32_t ind[2];
  int32_t stride[2] = {2, 2};
  int32_t numElem[2] = {halfDim, halfDim};
  int32_t newIndex[2];
  if (useCreateCol) {
    A = Ordering::IntOrderTest::makeColumnIMatrix(maxDim,false);
  }
  else {
    A = Ordering::IntOrderTest::makeRowIMatrix(maxDim,FALSE);
  }
  B = A.slice(2, numElem, 0, stride);
  if (!(B._not_nil() && B.dimen() == 2)) {
    res = false;
  }
  for(ind[1] = newIndex[1] = 0; newIndex[1] < halfDim; 
      ++newIndex[1], ind[1] += 2) {
    for(ind[0] = newIndex[0] = 0; newIndex[0] < halfDim;
        ++newIndex[0], ind[0] += 2) {
      if ((B.get(newIndex) != iFunc(ind,2)) ||
          (sidlArrayAddr2(B._get_ior(), newIndex[0], newIndex[1]) !=
           sidlArrayAddr2(A._get_ior(), ind[0], ind[1]))) {
        res = false;
      }
    }
  }

  ind[0] = ind[1] = 1;
  newIndex[0] = newIndex[1] = 0;
  B = A.slice(2, numElem, ind, stride, newIndex);
  if (!(B._not_nil() && B.dimen() == 2)) {
    res = false;
  }
  for(newIndex[1] = 0; newIndex[1] < halfDim; 
      ++newIndex[1], ind[1] += 2) {
    for(ind[0] = 1, newIndex[0] = 0; newIndex[0] < halfDim;
        ++newIndex[0], ind[0] += 2) {
      if ((B.get(newIndex) != iFunc(ind,2)) ||
          (sidlArrayAddr2(B._get_ior(), newIndex[0], newIndex[1]) !=
           sidlArrayAddr2(A._get_ior(), ind[0], ind[1]))) {
        res = FALSE;
      }
    }
  }

  ind[0] = ind[1] = 1;
  newIndex[1] = newIndex[0] = 1;
  B= A.slice(2, numElem, ind, stride, newIndex);
  if (!(B._not_nil() && B.dimen() == 2)) {
    res = false;
  }
  for(newIndex[1] = 1; newIndex[1] <= halfDim; 
      ++newIndex[1], ind[1] += 2) {
    for(ind[0] = 1, newIndex[0] = 1; newIndex[0] <= halfDim;
        ++newIndex[0], ind[0] += 2) {
      if ((B.get(newIndex) != iFunc(ind,2)) ||
          (sidlArrayAddr2(B._get_ior(), newIndex[0], newIndex[1]) != 
           sidlArrayAddr2(A._get_ior(), ind[0], ind[1]))){
        res = false;
      }
    }
  }

  numElem[0] = 0;
  numElem[1] = maxDim;
  B = A.slice(1, numElem);
  if (!(B._not_nil() && B.dimen() == 1)) {
    res = false;
  }
  ind[0] = newIndex[0] = 0;
  for(ind[1] = newIndex[1] = 0; newIndex[1] < maxDim; 
      ++newIndex[1], ++ind[1]) {
    if (sidlArrayAddr1(B._get_ior(), newIndex[1]) != 
        sidlArrayAddr2(A._get_ior(), ind[0], ind[1])) {
      res = false;
    }
  }
  
  numElem[0] = maxDim;
  numElem[1] = 0;
  ind[0] = 0;
  ind[1] = 8;
  newIndex[0] = newIndex[1] = 0;
  B = A.slice(1, numElem, ind, NULL, newIndex);
  if (!(B._not_nil() && (B.dimen() == 1))) {
    res = false;
  }
  for(ind[0] = newIndex[0] = 0; newIndex[0] < maxDim; 
      ++newIndex[0], ++ind[0]) {
    if (sidlArrayAddr1(B._get_ior(), newIndex[0]) != 
        sidlArrayAddr2(A._get_ior(), ind[0], ind[1])) {
      res = false;
    }
  }
  
  numElem[0] = maxDim;
  numElem[1] = 0;
  ind[0] = 0;
  ind[1] = 0;
  B = A.slice(1, numElem, ind);
  if (!(B._not_nil() && (B.dimen() == 1))) {
    res = false;
  }
  if (!(Ordering::IntOrderTest::isIMatrixOne(B) &&
        Ordering::IntOrderTest::isColumnIMatrixOne(B) &&
        Ordering::IntOrderTest::isRowIMatrixOne(B))) {
    res = false;
  }
        
  
  if (B._not_nil()) B.deleteRef();
  if (A._not_nil()) A.deleteRef();
  return res;
  // DO-NOT-DELETE splicer.end(Ordering.IntOrderTest.isSliceWorking)
#line 551 "Ordering_IntOrderTest_Impl.cc"
}


// user-defined non-static methods: (none)

#line 515 "../../../../babel/regression/ordering/libCxx/Ordering_IntOrderTest_Impl.cc"
// DO-NOT-DELETE splicer.begin(Ordering.IntOrderTest._misc)
// Put miscellaneous code here
// DO-NOT-DELETE splicer.end(Ordering.IntOrderTest._misc)
#line 561 "Ordering_IntOrderTest_Impl.cc"