step-examples/12-1c-syntax/Ls010.stp
Sources
- T025, Q046, G088, N032
Description
Multiple-inheritance entities are encoded as parts whitespace-separated inside outer parens; `#1=( A() B() C() )`. The external mapping requires alphabetic leaf order; a writer that emits leaves in arbitrary order produces a record that compliant readers should warn about (not reject).
Reproducer recipe
`#10=( CONVERSION_BASED_UNIT('DEG',#9) NAMED_UNIT(*) PLANE_ANGLE_UNIT() );` (well-formed) and the same with leaves reordered, e.g. `#20=( PLANE_ANGLE_UNIT() NAMED_UNIT(*) CONVERSION_BASED_UNIT('DEG',#9) );`.
Expected kernel behavior
Accept space-separated record list; sort internally for dispatch; preserve order on round-trip; warn on non-alphabetic input but do not reject.
Notes
**See also**: Ls047, Ls048. Synonyms: "complex entity leaves out of order", "multiple-inheritance leaves not alphabetic", "STEP complex record wrong order", "leaf order divergent from external mapping", "complex entity ordering error".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
matches(rb'#\d+\s*=\s*\(\s*[A-Z_]+\(')count(b'NAMED_UNIT(*)') >= 1 or contains(b'PLANE_ANGLE_UNIT()')
Tier-3 assertions
shape_null == True
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/* Ls010: Complex entity record with non-alphabetic leaf ordering; ISO 10303-21 external mapping requires alphabetically ordered leaves in multiple-inheritance complex entity records: ( A() B() C() ); a writer that emits leaves in arbitrary order produces a record that compliant readers must warn about; defect 1: well-formed alphabetic order: ( CONVERSION_BASED_UNIT('DEG',#9) NAMED_UNIT(*) PLANE_ANGLE_UNIT() ) â leaves are alphabetic (C before N before P); defect 2: same leaves reordered non-alphabetically: ( PLANE_ANGLE_UNIT() NAMED_UNIT(*) CONVERSION_BASED_UNIT('DEG',#9) ) â P before N before C violates the external-mapping alphabetic requirement; conformant reader must warn on non-alphabetic input but must not reject; sort internally for dispatch; preserve round-trip order; OCC silently accepts with no diagnostic and loads empty result; synonyms: complex entity leaves out of order, multiple-inheritance leaves not alphabetic, STEP complex record wrong order, leaf order divergent from external mapping, complex entity ordering error; GEOMETRIC_CURVE_SET IS NOT used â complex-instance entities are the defect carriers */ 3HEADER; 4FILE_DESCRIPTION(('Ls010'),'2;1'); 5FILE_NAME('Ls010.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9/* Reference SI plane-angle unit for the CONVERSION_BASED_UNIT below. */ 10#9=( NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.) ); 11/* Well-formed: leaves in alphabetic order (C, N, P). */ 12#10=( CONVERSION_BASED_UNIT('DEG',#9) NAMED_UNIT(*) PLANE_ANGLE_UNIT() ); 13/* Defect: same leaves in non-alphabetic order (P, N, C). */ 14/* ISO 10303-21 external mapping requires alphabetic order. */ 15#20=( PLANE_ANGLE_UNIT() NAMED_UNIT(*) CONVERSION_BASED_UNIT('DEG',#9) ); 16ENDSEC; 17END-ISO-10303-21;