Ls050 — Boolean attribute given long-form `.UNKNOWN.`

§12.1c enumeration token form

P1 — silent data loss

syntax

Sources

Description

`EDGE_CURVE.same_sense` is a BOOLEAN (`.T.`/`.F.`). Passing `.UNKNOWN.` (the long-form LOGICAL three-state value) is structurally identical to `.U.` but uses the long token, exercising readers that special-case `.U.` while accepting `.UNKNOWN.` through a different parser path.

Reproducer recipe

`EDGE_CURVE('',#12,#13,#14,.UNKNOWN.);`

Expected kernel behavior

Reject the value at the BOOLEAN slot; never leave the bool uninitialised.

Notes

**See also**: Ad044, Ls034, Ls035, Ls049. Synonyms: "STEP boolean given .UNKNOWN.", "long-form UNKNOWN at BOOLEAN slot", "LOGICAL UNKNOWN long form", "STEP same_sense .UNKNOWN.", "three-state value at BOOLEAN attribute". Provenance tier: bytes-only (Q5 full-corpus 2026-07-01).

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Provenance tier

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

Byte assertions

Tier-3 assertions

Cross-references

Ad044, Ls034, Ls035, Ls049

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1/* Ls050 - Boolean attribute given long-form .UNKNOWN.
2   ----------------------------------------------------------------------
3   Catalog section : §12.1c enumeration token form
4   Sources         : Q053, G028
5   See also        : Ad044, Ls034, Ls035, Ls049
6   ----------------------------------------------------------------------
7   Defect
8     EDGE_CURVE.same_sense is a BOOLEAN (.T./.F. only). Passing
9     .UNKNOWN. (the long-form LOGICAL three-state value) is structurally
10     identical to .U. but uses the long token, exercising readers that
11     special-case .U. while accepting .UNKNOWN. through a different
12     parser path. BOOLEAN slots do not admit a three-state LOGICAL.
13   Expected behavior
14     Reject the value at the BOOLEAN slot; never leave the bool uninitialised.
15   ----------------------------------------------------------------------
16*/
17ISO-10303-21;
18HEADER;
19FILE_DESCRIPTION(('Ls050 - EDGE_CURVE same_sense given long-form .UNKNOWN.'),'2;1');
20FILE_NAME('Ls050.stp','2026-06-20T00:00:00',('auto-generated'),(''),
21  'auto-generated','','');
22FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
23ENDSEC;
24DATA;
25#1=CARTESIAN_POINT('p1',(0.,0.,0.));
26#2=CARTESIAN_POINT('p2',(1.,0.,0.));
27#3=DIRECTION('dir',(1.,0.,0.));
28#4=VECTOR('v',#3,1.);
29#5=LINE('l',#1,#4);
30#6=VERTEX_POINT('v1',#1);
31#7=VERTEX_POINT('v2',#2);
32/* Defect: .UNKNOWN. (LOGICAL long-form) at the same_sense BOOLEAN slot */
33/* Correct form would be: #8=EDGE_CURVE('',#6,#7,#5,.T.); */
34#8=EDGE_CURVE('',#6,#7,#5,.UNKNOWN.);
35ENDSEC;
36END-ISO-10303-21;