step-examples/12-1c-syntax/Ls054.stp
Sources
- Pattern-mined from ricosjp/ruststep data.rs::subsuper_record (`many0` allows empty) (Apache-2.0/MIT — pattern only, no bytes copied)
- ISO 10303-21 §11 (combined/complex entity instances)
Description
A complex (subsuper / combined-entity) instance is written as a parenthesized list of simple records, e.g. `#1=(A(...)B(...))`. A `many0`-style parser accepts an EMPTY list `()`, i.e. a complex instance with ZERO constituent records. A complex instance must combine at least one (really at least two) simple records; the empty form is meaningless. Distinct from Ls013 (`PRODUCT()` — keyword present, no attributes): here there is no keyword at all, just `()`. The empty complex `#1` is reachable (referenced as a GEOMETRIC_SET item), so a parser must process it rather than skip dead code.
Reproducer recipe
`#1=(); #2=CARTESIAN_POINT('p',(0.,0.,0.)); #3=GEOMETRIC_SET('gs',(#1,#2));` — `#1` is an empty complex instance referenced by `#3`.
Expected kernel behavior
Reject the empty complex instance; the lexer may accept `()` as a zero-record list, but the semantic layer must reject "0 constituent records, expected >=1".
Notes
**See also**: Ls013. **OCC behavior**: OCC loads the file and produces no shape (empty). Re-audit (2026-07-18, empty-claim re-audit): the only model-root geometry is a `GEOMETRIC_SET` referencing a `CARTESIAN_POINT`, which has no shape-representation root and OCC transfers to no shape even when well-formed (confirmed by a matching well-formed control — loads empty); the declared Part-21 syntax defect cannot manifest as lost geometry (base and clean both empty). Toy/placeholder topology, not a defect-driven data-loss; not a proven kernel bug. Synonyms: "empty subsuper instance", "complex entity with no records", "keyword-less empty parens instance", "zero-record combined entity", "STEP empty complex #1=()". Provenance tier: bytes-only. Expected validation is provisional (best-guess) pending oracle rebaseline — the live occt/gmsh oracle is not run here (platform divergence); nightly CI reconciles.
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'#1=();')matches(rb'#\d+=\(\)\s*;')
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/* Ls054: empty complex (subsuper) instance with zero constituent records; a complex / combined-entity instance is a parenthesized list of simple records, but the fixture writes #1=() with an EMPTY list; a many0-style parser accepts the empty form even though a complex instance must combine at least one (really at least two) simple records; the empty complex #1 is reachable â referenced as a GEOMETRIC_SET item; distinct from Ls013 (PRODUCT() has a keyword and no attributes); here there is no keyword at all, just (); expected kernel behavior: reject an empty complex instance; the lexer may accept () as a zero-record list but the semantic layer must reject; see also Ls013; synonyms: empty subsuper instance, complex entity with no records, keyword-less empty parens instance, zero-record combined entity, STEP empty complex #1=(); the empty complex instance is the defect carrier */ 3HEADER; 4FILE_DESCRIPTION(('Ls054'),'2;1'); 5FILE_NAME('Ls054.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9/* Defect: a subsuper (complex) instance with ZERO constituent simple 10 records. A complex instance must combine >=1 (really >=2) records. */ 11#1=(); 12#2=CARTESIAN_POINT('p',(0.,0.,0.)); 13/* #1 (empty complex) is reachable: referenced as a GEOMETRIC_SET item. */ 14#3=GEOMETRIC_SET('gs',(#1,#2)); 15ENDSEC; 16END-ISO-10303-21;