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
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
/**
 * Copyright 2006 Sandia Corporation.  Under the terms of Contract
 * DE-AC04-94AL85000 with Sandia Coroporation, the U.S. Government
 * retains certain rights in this software.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 */
#include "iRel_Lasso.hpp"

#include "Lasso.hpp"
#include "AssocPair.hpp"
#include "ArrayManager.hpp"

#include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <vector>

const bool debug = false;

void iRel_getErrorType( iRel_Instance instance, int* error_type )<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_geterrortype' is never used.
{
    if( instance == NULL )
        *error_type = iBase_FAILURE;
    else
        *error_type = LASSOI->lastErrorType;
}

void iRel_getDescription( iRel_Instance instance, char* descr, int descr_len )<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
{
    if( instance == NULL )
    {
        strcpy( descr, "iRel_getDescription: Invalid instance" );
    }
    else
    {
        unsigned int len = std::min( strlen( LASSOI->lastErrorDescription ), static_cast< size_t >( descr_len ) );
        strncpy( descr, LASSOI->lastErrorDescription, len );
        descr[len] = '\0';
    }
}

void iRel_create( /* in */ const char* /* options */, iRel_Instance* instance, int* err, const int options_len )<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
{
    if( 0 != options_len )
    {
        *instance = NULL;
        *err      = iBase_NOT_SUPPORTED;
    }

    *instance = new Lasso();
    *err      = iBase_SUCCESS;
}

void iRel_destroy( iRel_Instance instance, int* err )<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
{
    delete LASSOI;
    *err = iBase_SUCCESS;
}

void iRel_createPair( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
                      iBase_Instance iface1,
                      const int ent_or_set1,
                      const int iface_type1,
                      const int irel_status1,
                      iBase_Instance iface2,
                      const int ent_or_set2,
                      const int iface_type2,
                      const int irel_status2,
                      iRel_PairHandle* pair,
                      int* err )
{
    AssocPair* assoc_pair = new AssocPair(
        instance, iface1, static_cast< iRel_RelationType >( ent_or_set1 ), static_cast< iRel_IfaceType >( iface_type1 ),
        static_cast< iRel_RelationStatus >( irel_status1 ), iface2, static_cast< iRel_RelationType >( ent_or_set2 ),
        static_cast< iRel_IfaceType >( iface_type2 ), static_cast< iRel_RelationStatus >( irel_status2 ) );
    LASSOI->insert_pair( assoc_pair );

    *pair = reinterpret_cast< iRel_PairHandle >( assoc_pair );
    RETURN( iBase_SUCCESS );
}

void iRel_getPairInfo( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
                       iRel_PairHandle pair,
                       iBase_Instance* iface1,
                       int* ent_or_set1,
                       int* iface_type1,
                       int* irel_status1,
                       iBase_Instance* iface2,
                       int* ent_or_set2,
                       int* iface_type2,
                       int* irel_status2,
                       int* err )
{
    CHK_PAIR();

    *iface1       = ASSOCPAIRI->iface_instance( 0 );
    *ent_or_set1  = ASSOCPAIRI->relation_type( 0 );
    *iface_type1  = ASSOCPAIRI->iface_type( 0 );
    *irel_status1 = ASSOCPAIRI->relation_status( 0 );
    *iface2       = ASSOCPAIRI->iface_instance( 1 );
    *iface_type2  = ASSOCPAIRI->iface_type( 1 );
    *ent_or_set2  = ASSOCPAIRI->relation_type( 1 );
    *irel_status2 = ASSOCPAIRI->relation_status( 1 );

    RETURN( iBase_SUCCESS );
}

void iRel_changePairType( iRel_Instance instance, iRel_PairHandle pair, int ent_or_set1, int ent_or_set2, int* err )<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
{
    CHK_PAIR();

    CHK_ERROR( ASSOCPAIRI->change_type( 0, static_cast< iRel_RelationType >( ent_or_set1 ) ) );CHK_ERROR( ASSOCPAIRI->change_type( 1, static_cast< iRel_RelationType >( ent_or_set2 ) ) );
}

void iRel_changePairStatus( iRel_Instance instance, iRel_PairHandle pair, int irel_status1, int irel_status2, int* err )<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
{
    CHK_PAIR();

    CHK_ERROR( ASSOCPAIRI->change_status( 0, static_cast< iRel_RelationStatus >( irel_status1 ) ) );CHK_ERROR( ASSOCPAIRI->change_status( 1, static_cast< iRel_RelationStatus >( irel_status2 ) ) );
}

void iRel_destroyPair( iRel_Instance instance, iRel_PairHandle pair, int* err )<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_destroypair' is never used.
{
    CHK_PAIR();

    CHK_ERROR( LASSOI->erase_pair( ASSOCPAIRI ) );
}

void iRel_findPairs( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
                     iBase_Instance iface,
                     iRel_PairHandle** pairs,
                     int* pairs_allocated,
                     int* pairs_size,
                     int* err )
{
    std::vector< AssocPair* > tmp_pairs;
    LASSOI->find_pairs( iface, tmp_pairs );

    ALLOC_CHECK_ARRAY_NOFAIL( pairs, tmp_pairs.size() );
    for( size_t i = 0; i < tmp_pairs.size(); ++i )
    {
        ( *pairs )[i] = reinterpret_cast< iRel_PairHandle >( tmp_pairs[i] );
    }

    RETURN( iBase_SUCCESS );
}

void iRel_setEntEntRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_setententrelation' is never used.
                             iRel_PairHandle pair,
                             iBase_EntityHandle ent1,
                             iBase_EntityHandle ent2,
                             int* err )
{
    CHK_PAIR();CHK_ERROR( ASSOCPAIRI->set_relation( ent1, ent2 ) );
}

void iRel_setEntSetRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
                             iRel_PairHandle pair,
                             iBase_EntityHandle ent1,
                             iBase_EntitySetHandle set2,
                             int* err )
{
    CHK_PAIR();CHK_ERROR( ASSOCPAIRI->set_relation( ent1, set2 ) );
}

void iRel_setSetEntRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_setsetentrelation' is never used.
                             iRel_PairHandle pair,
                             iBase_EntitySetHandle set1,
                             iBase_EntityHandle ent2,
                             int* err )
{
    CHK_PAIR();CHK_ERROR( ASSOCPAIRI->set_relation( set1, ent2 ) );
}

void iRel_setSetSetRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
                             iRel_PairHandle pair,
                             iBase_EntitySetHandle set1,
                             iBase_EntitySetHandle set2,
                             int* err )
{
    CHK_PAIR();CHK_ERROR( ASSOCPAIRI->set_relation( set1, set2 ) );
}

void iRel_setEntArrEntArrRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_setentarrentarrrelation' is never used.
                                   iRel_PairHandle pair,
                                   iBase_EntityHandle* ent_array_1,
                                   int num_entities1,
                                   iBase_EntityHandle* ent_array_2,
                                   int num_entities2,
                                   int* err )
{
    CHK_PAIR();

    if( num_entities1 != num_entities2 )
        ERROR( iBase_INVALID_ENTITY_COUNT, "setEntArrEntArrRelation doesn't support "
                                           "different #'s of entities." );

    int result = iBase_SUCCESS;
    char descr[200];
    for( int i = 0; i < num_entities1; i++ )
    {
        int tmp_result = ASSOCPAIRI->set_relation( ent_array_1[i], ent_array_2[i] );
        if( result == iBase_SUCCESS && tmp_result != iBase_SUCCESS )
        {
            result = tmp_result;
            iRel_getDescription( instance, descr, sizeof( descr ) );<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
        }
    }

    if( result != iBase_SUCCESS ) ERROR( result, descr );
    RETURN( iBase_SUCCESS );
}

void iRel_setEntArrSetArrRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
                                   iRel_PairHandle pair,
                                   iBase_EntityHandle* ent_array_1,
                                   int num_entities1,
                                   iBase_EntitySetHandle* set_array_2,
                                   int num_sets2,
                                   int* err )
{
    CHK_PAIR();

    if( num_entities1 != num_sets2 )
        ERROR( iBase_INVALID_ENTITY_COUNT, "setEntArrSetArrRelation doesn't support "
                                           "different #'s of entities." );

    int result = iBase_SUCCESS;
    char descr[200];
    for( int i = 0; i < num_entities1; i++ )
    {
        int tmp_result = ASSOCPAIRI->set_relation( ent_array_1[i], set_array_2[i] );
        if( result == iBase_SUCCESS && tmp_result != iBase_SUCCESS )
        {
            result = tmp_result;
            iRel_getDescription( instance, descr, sizeof( descr ) );<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
        }
    }

    if( result != iBase_SUCCESS ) ERROR( result, descr );
    RETURN( iBase_SUCCESS );
}

void iRel_setSetArrEntArrRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_setsetarrentarrrelation' is never used.
                                   iRel_PairHandle pair,
                                   iBase_EntitySetHandle* set_array_1,
                                   int num_sets1,
                                   iBase_EntityHandle* ent_array_2,
                                   int num_entities2,
                                   int* err )
{
    CHK_PAIR();

    if( num_sets1 != num_entities2 )
        ERROR( iBase_INVALID_ENTITY_COUNT, "setSetArrEntArrRelation doesn't support "
                                           "different #'s of entities." );

    int result = iBase_SUCCESS;
    char descr[200];
    for( int i = 0; i < num_sets1; i++ )
    {
        int tmp_result = ASSOCPAIRI->set_relation( set_array_1[i], ent_array_2[i] );
        if( result == iBase_SUCCESS && tmp_result != iBase_SUCCESS )
        {
            result = tmp_result;
            iRel_getDescription( instance, descr, sizeof( descr ) );<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
        }
    }

    if( result != iBase_SUCCESS ) ERROR( result, descr );
    RETURN( iBase_SUCCESS );
}

void iRel_setSetArrSetArrRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_setsetarrsetarrrelation' is never used.
                                   iRel_PairHandle pair,
                                   iBase_EntitySetHandle* set_array_1,
                                   int num_sets1,
                                   iBase_EntitySetHandle* set_array_2,
                                   int num_sets2,
                                   int* err )
{
    CHK_PAIR();

    if( num_sets1 != num_sets2 )
        ERROR( iBase_INVALID_ENTITY_COUNT, "setSetArrSetArrRelation doesn't support "
                                           "different #'s of entities." );

    int result = iBase_SUCCESS;
    char descr[200];
    for( int i = 0; i < num_sets1; i++ )
    {
        int tmp_result = ASSOCPAIRI->set_relation( set_array_1[i], set_array_2[i] );
        if( result == iBase_SUCCESS && tmp_result != iBase_SUCCESS )
        {
            result = tmp_result;
            iRel_getDescription( instance, descr, sizeof( descr ) );<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
        }
    }

    if( result != iBase_SUCCESS ) ERROR( result, descr );
    RETURN( iBase_SUCCESS );
}

void iRel_getEntEntRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
                             iRel_PairHandle pair,
                             iBase_EntityHandle ent1,
                             int switch_order,
                             iBase_EntityHandle* ent2,
                             int* err )
{
    CHK_PAIR();

    int iface_no = ( switch_order ? 1 : 0 );CHK_ERROR( ASSOCPAIRI->get_relation( iface_no, &ent1, 1, ent2 ) );
}

void iRel_getEntSetRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_getentsetrelation' is never used.
                             iRel_PairHandle pair,
                             iBase_EntityHandle ent1,
                             int switch_order,
                             iBase_EntitySetHandle* set2,
                             int* err )
{
    CHK_PAIR();

    int iface_no = ( switch_order ? 1 : 0 );CHK_ERROR( ASSOCPAIRI->get_relation( iface_no, &ent1, 1, set2 ) );
}

void iRel_getSetEntRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_getsetentrelation' is never used.
                             iRel_PairHandle pair,
                             iBase_EntitySetHandle set1,
                             int switch_order,
                             iBase_EntityHandle* ent2,
                             int* err )
{
    CHK_PAIR();

    int iface_no = ( switch_order ? 1 : 0 );CHK_ERROR( ASSOCPAIRI->get_relation( iface_no, &set1, 1, ent2 ) );
}

void iRel_getSetSetRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
                             iRel_PairHandle pair,
                             iBase_EntitySetHandle set1,
                             int switch_order,
                             iBase_EntitySetHandle* set2,
                             int* err )
{
    CHK_PAIR();

    int iface_no = ( switch_order ? 1 : 0 );CHK_ERROR( ASSOCPAIRI->get_relation( iface_no, &set1, 1, set2 ) );
}

void iRel_getEntSetIterRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_getentsetiterrelation' is never used.
                                 iRel_PairHandle pair,
                                 iBase_EntityHandle ent1,
                                 int switch_order,
                                 iBase_EntityIterator* entset2,
                                 int* err )
{
    CHK_PAIR();

    int iface_no = ( switch_order ? 1 : 0 );CHK_ERROR( ASSOCPAIRI->get_relation( iface_no, &ent1, 1, entset2 ) );
}

void iRel_getEntArrEntArrRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
                                   iRel_PairHandle pair,
                                   iBase_EntityHandle* ent_array_1,
                                   int ent_array_1_size,
                                   int switch_order,
                                   iBase_EntityHandle** ent_array_2,
                                   int* ent_array_2_allocated,
                                   int* ent_array_2_size,
                                   int* err )
{
    CHK_PAIR();

    int iface_no = ( switch_order ? 1 : 0 );
    ALLOC_CHECK_ARRAY( ent_array_2, ent_array_1_size );CHK_ERROR( ASSOCPAIRI->get_relation( iface_no, ent_array_1, ent_array_1_size, *ent_array_2 ) );

    KEEP_ARRAY( ent_array_2 );
    RETURN( iBase_SUCCESS );
}

void iRel_getEntArrSetArrRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
                                   iRel_PairHandle pair,
                                   iBase_EntityHandle* ent_array_1,
                                   int ent_array_1_size,
                                   int switch_order,
                                   iBase_EntitySetHandle** set_array_2,
                                   int* set_array_2_allocated,
                                   int* set_array_2_size,
                                   int* err )
{
    CHK_PAIR();

    int iface_no = ( switch_order ? 1 : 0 );
    ALLOC_CHECK_ARRAY( set_array_2, ent_array_1_size );CHK_ERROR( ASSOCPAIRI->get_relation( iface_no, ent_array_1, ent_array_1_size, *set_array_2 ) );

    KEEP_ARRAY( set_array_2 );
    RETURN( iBase_SUCCESS );
}

void iRel_getSetArrEntArrRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
                                   iRel_PairHandle pair,
                                   iBase_EntitySetHandle* set_array_1,
                                   int set_array_1_size,
                                   int switch_order,
                                   iBase_EntityHandle** ent_array_2,
                                   int* ent_array_2_allocated,
                                   int* ent_array_2_size,
                                   int* err )
{
    CHK_PAIR();

    int iface_no = ( switch_order ? 1 : 0 );
    ALLOC_CHECK_ARRAY( ent_array_2, set_array_1_size );CHK_ERROR( ASSOCPAIRI->get_relation( iface_no, set_array_1, set_array_1_size, *ent_array_2 ) );

    KEEP_ARRAY( ent_array_2 );
    RETURN( iBase_SUCCESS );
}

void iRel_getSetArrSetArrRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_getsetarrsetarrrelation' is never used.
                                   iRel_PairHandle pair,
                                   iBase_EntitySetHandle* set_array_1,
                                   int set_array_1_size,
                                   int switch_order,
                                   iBase_EntitySetHandle** set_array_2,
                                   int* set_array_2_allocated,
                                   int* set_array_2_size,
                                   int* err )
{
    CHK_PAIR();

    int iface_no = ( switch_order ? 1 : 0 );
    ALLOC_CHECK_ARRAY( set_array_2, set_array_1_size );CHK_ERROR( ASSOCPAIRI->get_relation( iface_no, set_array_1, set_array_1_size, *set_array_2 ) );

    KEEP_ARRAY( set_array_2 );
    RETURN( iBase_SUCCESS );
}

void iRel_getEntArrSetIterArrRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_getentarrsetiterarrrelation' is never used.
                                       iRel_PairHandle pair,
                                       iBase_EntityHandle* ent_array_1,
                                       int ent_array_1_size,
                                       int switch_order,
                                       iBase_EntityIterator** entiter,
                                       int* entiter_allocated,
                                       int* entiter_size,
                                       int* err )
{
    CHK_PAIR();

    int iface_no = ( switch_order ? 1 : 0 );
    ;
    ALLOC_CHECK_ARRAY( entiter, ent_array_1_size );CHK_ERROR( ASSOCPAIRI->get_relation( iface_no, ent_array_1, ent_array_1_size, *entiter ) );

    KEEP_ARRAY( entiter );
    RETURN( iBase_SUCCESS );
}

void iRel_rmvEntRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_rmventrelation' is never used.
                          /*in*/ iRel_PairHandle pair,
                          /*in*/ iBase_EntityHandle ent,
                          /*in*/ int switch_order,
                          /*out*/ int* err )
{
    CHK_PAIR();

    int iface_no = ( switch_order ? 1 : 0 );CHK_ERROR( ASSOCPAIRI->rmv_relation( iface_no, &ent, 1 ) );
}

void iRel_rmvSetRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_rmvsetrelation' is never used.
                          /*in*/ iRel_PairHandle pair,
                          /*in*/ iBase_EntitySetHandle entset,
                          /*in*/ int switch_order,
                          /*out*/ int* err )
{
    CHK_PAIR();

    int iface_no = ( switch_order ? 1 : 0 );CHK_ERROR( ASSOCPAIRI->rmv_relation( iface_no, &entset, 1 ) );
}

void iRel_rmvEntArrRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
                             /*in*/ iRel_PairHandle pair,
                             /*in*/ iBase_EntityHandle* ent_array,
                             /*in*/ int num_ent,
                             /*in*/ int switch_order,
                             /*out*/ int* err )
{
    CHK_PAIR();

    int iface_no = ( switch_order ? 1 : 0 );CHK_ERROR( ASSOCPAIRI->rmv_relation( iface_no, ent_array, num_ent ) );
}

void iRel_rmvSetArrRelation( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_rmvsetarrrelation' is never used.
                             /*in*/ iRel_PairHandle pair,
                             /*in*/ iBase_EntitySetHandle* entset_array,
                             /*in*/ int num_ent,
                             /*in*/ int switch_order,
                             /*out*/ int* err )
{
    CHK_PAIR();

    int iface_no = ( switch_order ? 1 : 0 );CHK_ERROR( ASSOCPAIRI->rmv_relation( iface_no, entset_array, num_ent ) );
}

static int get_gids_and_dims( iRel_PairHandle pair,
                              int iface_no,
                              iBase_EntityHandle* ents,
                              int ents_size,
                              int ent_or_set,
                              std::vector< int >& ents_gids,
                              std::vector< int >& ents_dims )
{
    int result;
    iBase_EntitySetHandle* sets = reinterpret_cast< iBase_EntitySetHandle* >( ents );

    ents_gids.resize( ents_size );
    if( ent_or_set == iRel_ENTITY )
        result = ASSOCPAIRI->get_gids( iface_no, ents, ents_size, &ents_gids[0] );
    else
        result = ASSOCPAIRI->get_gids( iface_no, sets, ents_size, &ents_gids[0] );

    if( iBase_SUCCESS != result && iBase_TAG_NOT_FOUND != result ) return result;

    ents_dims.resize( ents_size, -1 );
    if( ent_or_set == iRel_ENTITY )
    {
        int* ents_dims_ptr  = &ents_dims[0];
        int ents_dims_alloc = ents_dims.size(), ents_dims_size;
        result =
            ASSOCPAIRI->get_ents_dims( iface_no, ents, ents_size, &ents_dims_ptr, &ents_dims_alloc, &ents_dims_size );
    }
    else
    {
        result = ASSOCPAIRI->get_dims( iface_no, sets, ents_size, &ents_dims[0] );
    }

    if( iBase_SUCCESS != result && iBase_TAG_NOT_FOUND != result ) return result;

    return iBase_SUCCESS;
}

static void iRel_inferArrArrRelations( iRel_Instance instance,
                                       iRel_PairHandle pair,
                                       iBase_EntityHandle* ents1,
                                       const int ents1_size,
                                       int ent_or_set1,
                                       iBase_EntityHandle* ents2,
                                       const int ents2_size,
                                       int ent_or_set2,
                                       int* err )
{
    int result;

    std::vector< int > ents_gids, ents_dims;
    std::map< const int, iBase_EntityHandle > ents_gid_map[4];

    get_gids_and_dims( pair, 0, ents1, ents1_size, ent_or_set1, ents_gids, ents_dims );
    for( int i = 0; i < ents1_size; i++ )
    {
        int dim = ents_dims[i];
        if( 0 <= dim && 3 >= dim ) ents_gid_map[dim][ents_gids[i]] = ents1[i];
    }

    get_gids_and_dims( pair, 1, ents2, ents2_size, ent_or_set2, ents_gids, ents_dims );
    for( int i = 0; i < ents2_size; i++ )
    {
        int dim = ents_dims[i];

        // only check entities for which the dimension entry is in a reasonable
        // range
        if( 0 > dim || 3 < dim ) continue;

        // there's a match if there's an entity with that dimension with matching id
        std::map< const int, iBase_EntityHandle >::iterator iter = ents_gid_map[dim].find( ents_gids[i] );

        // if it matches, set the relation tags for those entities
        if( iter != ents_gid_map[dim].end() )
        {
            if( ent_or_set1 == iRel_ENTITY && ent_or_set2 == iRel_ENTITY )
            {
                result = ASSOCPAIRI->set_relation( ( *iter ).second, ents2[i] );
            }
            else if( ent_or_set1 != iRel_ENTITY && ent_or_set2 == iRel_ENTITY )
            {
                result = ASSOCPAIRI->set_relation( (iBase_EntitySetHandle)( *iter ).second, ents2[i] );
            }
            else if( ent_or_set1 == iRel_ENTITY && ent_or_set2 != iRel_ENTITY )
            {
                result = ASSOCPAIRI->set_relation( ( *iter ).second, (iBase_EntitySetHandle)ents2[i] );
            }
            else
            {  // ent_or_set1 != iRel_ENTITY && ent_or_set2 != iRel_ENTITY
                result = ASSOCPAIRI->set_relation( (iBase_EntitySetHandle)( *iter ).second,
                                                   (iBase_EntitySetHandle)ents2[i] );
            }

            CHK_ERROR( result );
        }
    }

    RETURN( iBase_SUCCESS );
}

void iRel_inferEntArrEntArrRelations( iRel_Instance instance,<--- The function 'iRel_inferEntArrEntArrRelations' is never used.
                                      iRel_PairHandle pair,
                                      iBase_EntityHandle* ents1,
                                      const int ents1_size,
                                      iBase_EntityHandle* ents2,
                                      const int ents2_size,
                                      int* err )
{
    iRel_inferArrArrRelations( instance, pair, ents1, ents1_size, 0, ents2, ents2_size, 0, err );
}

void iRel_inferEntArrSetArrRelations( iRel_Instance instance,<--- The function 'iRel_inferEntArrSetArrRelations' is never used.
                                      iRel_PairHandle pair,
                                      iBase_EntityHandle* ents1,
                                      const int ents1_size,
                                      iBase_EntitySetHandle* ents2,
                                      const int ents2_size,
                                      int* err )
{
    iRel_inferArrArrRelations( instance, pair, ents1, ents1_size, 0, (iBase_EntityHandle*)ents2, ents2_size, 1, err );
}

void iRel_inferSetArrEntArrRelations( iRel_Instance instance,<--- The function 'iRel_inferSetArrEntArrRelations' is never used.
                                      iRel_PairHandle pair,
                                      iBase_EntitySetHandle* ents1,
                                      const int ents1_size,
                                      iBase_EntityHandle* ents2,
                                      const int ents2_size,
                                      int* err )
{
    iRel_inferArrArrRelations( instance, pair, (iBase_EntityHandle*)ents1, ents1_size, 1, ents2, ents2_size, 0, err );
}

void iRel_inferSetArrSetArrRelations( iRel_Instance instance,<--- The function 'iRel_inferSetArrSetArrRelations' is never used.
                                      iRel_PairHandle pair,
                                      iBase_EntitySetHandle* ents1,
                                      const int ents1_size,
                                      int /*is_set1*/,
                                      iBase_EntitySetHandle* ents2,
                                      const int ents2_size,
                                      int /*is_set2*/,
                                      int* err )

{
    iRel_inferArrArrRelations( instance, pair, (iBase_EntityHandle*)ents1, ents1_size, 1, (iBase_EntityHandle*)ents2,
                               ents2_size, 1, err );
}

void iRel_inferAllRelations( iRel_Instance instance, iRel_PairHandle pair, int* err )<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
{
    CHK_PAIR();

    // get all entities in those interfaces
    int result;

    iBase_EntityHandle* ents1 = NULL;
    int ents1_alloc           = 0, ents1_size;
    if( ASSOCPAIRI->relation_type( 0 ) != iRel_ENTITY )
        result = ASSOCPAIRI->get_all_sets( 0, (iBase_EntitySetHandle**)&ents1, &ents1_alloc, &ents1_size );
    else
        result = ASSOCPAIRI->get_all_entities( 0, -1, &ents1, &ents1_alloc, &ents1_size );CHK_ERROR( result );

    iBase_EntityHandle* ents2 = NULL;
    int ents2_alloc           = 0, ents2_size;
    if( ASSOCPAIRI->relation_type( 1 ) != iRel_ENTITY )
        result = ASSOCPAIRI->get_all_sets( 1, (iBase_EntitySetHandle**)&ents2, &ents2_alloc, &ents2_size );
    else
        result = ASSOCPAIRI->get_all_entities( 1, -1, &ents2, &ents2_alloc, &ents2_size );CHK_ERROR( result );

    iRel_inferArrArrRelations( instance, pair, ents1, ents1_size, ASSOCPAIRI->relation_type( 0 ), ents2, ents2_size,
                               ASSOCPAIRI->relation_type( 1 ), &result );

    free( ents1 );
    free( ents2 );CHK_ERROR( result );
}

void iRel_inferAllRelationsAndType( iRel_Instance instance, iRel_PairHandle* /*pair*/, int* err )<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_inferallrelationsandtype' is never used.
{
    ERROR( iBase_NOT_SUPPORTED, "Not currently supported." );
}

void iRel_inferEntRelations( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_inferentrelations' is never used.
                             iRel_PairHandle pair,
                             iBase_EntityHandle entity,
                             int iface_no,
                             int* err )
{
    iRel_inferEntArrRelations( instance, pair, &entity, 1, iface_no, err );<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
}

void iRel_inferSetRelations( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- The function 'irel_infersetrelations' is never used.
                             iRel_PairHandle pair,
                             iBase_EntitySetHandle entity,
                             int iface_no,
                             int* err )
{
    iRel_inferSetArrRelations( instance, pair, &entity, 1, iface_no, err );<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
}

static void iRel_inferArrRelations( iRel_Instance instance,
                                    iRel_PairHandle pair,
                                    iBase_EntityHandle* entities,
                                    int entities_size,
                                    bool is_set,
                                    int iface_no,
                                    int* err )
{
    CHK_PAIR();

    if( 0 > iface_no || 1 < iface_no )
    {
        ERROR( iBase_INVALID_ARGUMENT, "Interface number must be 0 or 1" );
    }
    else if( ( is_set && ASSOCPAIRI->relation_type( iface_no ) == iRel_ENTITY ) ||
             ( !is_set && ASSOCPAIRI->relation_type( iface_no ) != iRel_ENTITY ) )
    {
        ERROR( iBase_INVALID_ARGUMENT, "is_set must match entOrSet in call to "
                                       "inferArrRelations" );
    }

    // get all entities in iface2
    int result;
    iBase_EntityHandle* ents1 = entities;
    int ents1_size            = entities_size;
    iBase_EntityHandle* ents2 = NULL;
    int ents2_alloc           = 0, ents2_size;
    if( ASSOCPAIRI->relation_type( 1 - iface_no ) != iRel_ENTITY )
        result = ASSOCPAIRI->get_all_sets( !iface_no, (iBase_EntitySetHandle**)&ents2, &ents2_alloc, &ents2_size );
    else
        result = ASSOCPAIRI->get_all_entities( !iface_no, -1, &ents2, &ents2_alloc, &ents2_size );CHK_ERROR( result );

    // switch so that entity lists always go into inferArrArrRelations in
    // forward order wrt pair
    if( 1 == iface_no )
    {
        std::swap( ents1, ents2 );
        std::swap( ents1_size, ents2_size );
    }

    iRel_inferArrArrRelations( instance, pair, ents1, ents1_size, ASSOCPAIRI->relation_type( 0 ), ents2, ents2_size,
                               ASSOCPAIRI->relation_type( 1 ), &result );

    free( 1 == iface_no ? ents1 : ents2 );

    CHK_ERROR( result );
}

void iRel_inferEntArrRelations( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
                                iRel_PairHandle pair,
                                iBase_EntityHandle* entities,
                                int entities_size,
                                int iface_no,
                                int* err )
{
    iRel_inferArrRelations( instance, pair, entities, entities_size, false, iface_no, err );
}

void iRel_inferSetArrRelations( iRel_Instance instance,<--- Skipping configuration 'MOAB_FC_FUNC' since the value of 'MOAB_FC_FUNC' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.<--- Skipping configuration 'MOAB_FC_FUNC_' since the value of 'MOAB_FC_FUNC_' is unknown. Use -D if you want to check it. You can use -U to skip it explicitly.
                                iRel_PairHandle pair,
                                iBase_EntitySetHandle* entities,
                                int entities_size,
                                int iface_no,
                                int* err )
{
    iRel_inferArrRelations( instance, pair, (iBase_EntityHandle*)entities, entities_size, true, iface_no, err );
}