Pf030 — Schema-EXPRESS WHERE-rule evaluation bomb (billion-laughs analogue)

§12.10 (sub-class: cyclic / dependency-depth)

P2 — spec deviation (no data loss)

performance

Sources

Description

ISO 10303-11 EXPRESS WHERE-rule evaluation can be combinatorially explosive on hand-crafted entity graphs that force re-evaluation across thousands of cross-referenced instances — analogous to XML billion-laughs.

Reproducer recipe

file constructed so each WHERE rule recurses into N peer instances; observe exponential evaluation time.

Expected kernel behavior

Heal and accept: WHERE-rule evaluator memoizes results across repeated invocations; coerce evaluation to sub-quadratic. Must not hang on rule-heavy schemas.

Notes

**See also**: Ad032, Pf010. Provenance tier: runtime-only (Q5 reclassification 2026-07-01).

Expected validation

occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a

Provenance tier

runtime-only — defect not fully embodied in fixture bytes.

Byte assertions

Tier-3 assertions

Cross-references

Ad032, Pf010

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* Pf030: Schema-EXPRESS WHERE-rule evaluation bomb: GEOMETRIC_SET entities cross-reference each other in a 4-level fan-out tree (width 4, depth 4 = 256 atom visits per L4 set); a WHERE rule that walks transitively evaluates O(N^depth) times without memoization; scale to width 10 depth 10 for production billion-laughs; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Pf030'),'2;1');
5FILE_NAME('Pf030.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=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=CARTESIAN_POINT('',(1.0,0.0,0.0));
12#3=CARTESIAN_POINT('',(2.0,0.0,0.0));
13#4=CARTESIAN_POINT('',(3.0,0.0,0.0));
14#5=GEOMETRIC_SET('L1a',(#1,#2,#3,#4));
15#6=GEOMETRIC_SET('L1b',(#1,#2,#3,#4));
16#7=GEOMETRIC_SET('L1c',(#1,#2,#3,#4));
17#8=GEOMETRIC_SET('L1d',(#1,#2,#3,#4));
18#9=GEOMETRIC_SET('L2a',(#5,#6,#7,#8));
19#10=GEOMETRIC_SET('L2b',(#5,#6,#7,#8));
20#11=GEOMETRIC_SET('L2c',(#5,#6,#7,#8));
21#12=GEOMETRIC_SET('L2d',(#5,#6,#7,#8));
22#13=GEOMETRIC_SET('L3a',(#9,#10,#11,#12));
23#14=GEOMETRIC_SET('L3b',(#9,#10,#11,#12));
24#15=GEOMETRIC_SET('L3c',(#9,#10,#11,#12));
25#16=GEOMETRIC_SET('L3d',(#9,#10,#11,#12));
26#17=GEOMETRIC_SET('L4a',(#13,#14,#15,#16));
27#18=GEOMETRIC_SET('L4b',(#13,#14,#15,#16));
28#19=GEOMETRIC_SET('L4c',(#13,#14,#15,#16));
29#20=GEOMETRIC_SET('L4d',(#13,#14,#15,#16));
30#21=GEOMETRIC_CURVE_SET('',(#1));
31#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
32#9051=PRODUCT('Pf030','Pf030','',(#9050));
33#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
34#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
35#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
36#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
37#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
38#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
39#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
40#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
41#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
42#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#21),#9060);
43#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
44ENDSEC;
45END-ISO-10303-21;