step-examples/12-11-adversarial/Ad078.stp
Sources
- 08-occt-gitlog.md G016 (Mantis 0025167)
- 03-occt-tests.md R049
Description
NAUO can refer to either `PRODUCT_DEFINITION` or `PRODUCT_DEFINITION_SHAPE`; schema-strict reader rejected the latter, while permissive reader cast across vtables.
Reproducer recipe
NAUO referencing PDS instead of PD.
Expected kernel behavior
Warn and accept PDS child; resolve PDS→PD silently with warn. Do not reject.
Notes
**See also**: Ad030.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
count_entity_def(b'NEXT_ASSEMBLY_USAGE_OCCURRENCE') >= 1 and contains(b'PRODUCT_DEFINITION_SHAPE')contains(b'NEXT_ASSEMBLY_USAGE_OCCURRENCE')
Tier-3 assertions
load == "ok"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Ad078: type-confusion: NAUO child slot references PRODUCT_DEFINITION_SHAPE instead of PRODUCT_DEFINITION; schema-strict reader rejects, permissive reader casts across vtables; kernel must warn and resolve PDSâPD silently; Mantis 0025167 (G016); R049; See also Ad030; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Ad078'),'2;1'); 5FILE_NAME('Ad078.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 10#2=GEOMETRIC_CURVE_SET('',(#1)); 11#3=PRODUCT('part_a','part_a','',()); 12#4=PRODUCT_DEFINITION_FORMATION('','',#3); 13#5=PRODUCT_DEFINITION('parent','',#4,#9003); 14#6=PRODUCT('part_b','part_b','',()); 15#7=PRODUCT_DEFINITION_FORMATION('','',#6); 16#8=PRODUCT_DEFINITION('child_pd','',#7,#9003); 17#9=PRODUCT_DEFINITION_SHAPE('','',#8); 18#10=NEXT_ASSEMBLY_USAGE_OCCURRENCE('nauo_mistype','','',#5,#9,$); 19ENDSEC; 20END-ISO-10303-21;