step-examples/12-8-mixed/M075.stp
Sources
- deduced from AP238 §7 program structure (selective / parallel / if_statement)
Sender
deduced — STEP-NC publisher with broken downstream linking
Description
A `SELECTIVE` (or other control-flow construct: `PARALLEL`, `IF_STATEMENT`) lists branch executables in its `its_elements` list, but one or more of those entity ids are not declared in the file. The branch cannot execute because there is nothing to dispatch to. Bug-reporter language: "STEP-NC selective references unknown branch", "machining program has dangling subroutine reference".
Reproducer recipe
`SELECTIVE('material_branch',(#100,#999,#101,#998),$)` where `#999` and `#998` are not declared.
Expected kernel behavior
detect missing references; reject the program as un-executable or skip the malformed branches and warn.
Notes
Synonyms: "missing subroutine", "STEP-NC dangling executable", "selective branch unresolved", "control-flow target not declared".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Byte assertions
contains(b'SELECTIVE')
Tier-3 assertions
n_faces_total == 1
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M075: SELECTIVE control-flow with unresolved branch executable reference */ 3HEADER; 4FILE_DESCRIPTION(('M075'),'2;1'); 5FILE_NAME('M075.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=EXECUTABLE('exec1','first branch','WORK_INSTRUCTION',(),()); 11#2=SELECTIVE('sel1','control selector','SELECTIVE_BRANCHING',(),(),(#100,#999)); 12#3=CARTESIAN_POINT('',(0.0,0.0,0.0)); 13#4=DIRECTION('',(0.0,0.0,1.0)); 14#5=DIRECTION('',(1.0,0.0,0.0)); 15#6=AXIS2_PLACEMENT_3D('',#3,#4,#5); 16#7=PLANE('',#6); 17#8=CARTESIAN_POINT('',(0.0,0.0,0.0)); 18#9=CARTESIAN_POINT('',(1.0,0.0,0.0)); 19#10=CARTESIAN_POINT('',(1.0,1.0,0.0)); 20#11=CARTESIAN_POINT('',(0.0,1.0,0.0)); 21#12=VERTEX_POINT('',#8); 22#13=VERTEX_POINT('',#9); 23#14=VERTEX_POINT('',#10); 24#15=VERTEX_POINT('',#11); 25#16=DIRECTION('',(1.0,0.0,0.0)); 26#17=VECTOR('',#16,1.0); 27#18=LINE('',#8,#17); 28#19=EDGE_CURVE('',#12,#13,#18,.T.); 29#20=DIRECTION('',(0.0,1.0,0.0)); 30#21=VECTOR('',#20,1.0); 31#22=LINE('',#9,#21); 32#23=EDGE_CURVE('',#13,#14,#22,.T.); 33#24=DIRECTION('',(-1.0,0.0,0.0)); 34#25=VECTOR('',#24,1.0); 35#26=LINE('',#10,#25); 36#27=EDGE_CURVE('',#14,#15,#26,.T.); 37#28=DIRECTION('',(0.0,-1.0,0.0)); 38#29=VECTOR('',#28,1.0); 39#30=LINE('',#11,#29); 40#31=EDGE_CURVE('',#15,#12,#30,.T.); 41#32=ORIENTED_EDGE('',$,$,#19,.T.); 42#33=ORIENTED_EDGE('',$,$,#23,.T.); 43#34=ORIENTED_EDGE('',$,$,#27,.T.); 44#35=ORIENTED_EDGE('',$,$,#31,.T.); 45#36=EDGE_LOOP('',(#32,#33,#34,#35)); 46#37=FACE_OUTER_BOUND('',#36,.T.); 47#38=ADVANCED_FACE('',(#37),#7,.T.); 48#39=OPEN_SHELL('',(#38)); 49#40=SHELL_BASED_SURFACE_MODEL('',(#39)); 50#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 51#9051=PRODUCT('M075','M075','',(#9050)); 52#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 53#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 54#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 55#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 56#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 57#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 58#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 59#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 60#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 61#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#40),#9060); 62#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 63ENDSEC; 64END-ISO-10303-21;