Ls035 — Boolean attribute given `.U.` (LOGICAL UNKNOWN at BOOLEAN slot)

§12.1c enumeration token form

P1 — silent data loss

syntax

Sources

Description

`EDGE_CURVE.same_sense` is a BOOLEAN (`.T.`/`.F.`). Passing `.U.` (the LOGICAL UNKNOWN value) at this slot conflates LOGICAL with BOOLEAN. Some readers default to `true`, leaving an uninitialised bool that produces non-deterministic edge direction (regression on gcc 4.9 noted in OCCT 0029944).

Reproducer recipe

`EDGE_CURVE('',#12,#13,#14,.U.);` — `.U.` in the BOOLEAN `same_sense` slot.

Expected kernel behavior

Reject the value (or default to `.T.` with an explicit warning); never leave the BOOLEAN uninitialised.

Notes

**See also**: Ad044, Ls034, Ls049, Ls050. Synonyms: "dot-U at BOOLEAN slot", "LOGICAL value in BOOLEAN attribute", "same_sense given .U.", "STEP boolean given UNKNOWN", "uninitialised bool from .U.".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

Ad044, Ls034, Ls049, Ls050

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1/* Ls035 - Boolean attribute given .U. (LOGICAL UNKNOWN at BOOLEAN slot)
2   ----------------------------------------------------------------------
3   Catalog section : §12.1c enumeration token form
4   Sources         : Q053, G028
5   See also        : Ad044, Ls034, Ls049, Ls050
6   ----------------------------------------------------------------------
7   Defect
8     EDGE_CURVE.same_sense is BOOLEAN (.T./.F. only). Passing .U.
9     (LOGICAL UNKNOWN) conflates LOGICAL with BOOLEAN. Some readers
10     default to true, leaving an uninitialised bool; non-deterministic
11     edge direction results. OCCT 0029944 (gcc 4.9 regression).
12   Expected behavior
13     Reject .U. at a BOOLEAN slot; or default to .T. with explicit warning;
14     never leave the BOOLEAN uninitialised.
15   ----------------------------------------------------------------------
16*/
17ISO-10303-21;
18HEADER;
19FILE_DESCRIPTION(('Ls035 - .U. LOGICAL UNKNOWN in BOOLEAN same_sense slot'),'2;1');
20FILE_NAME('Ls035.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: .U. in the same_sense BOOLEAN slot of EDGE_CURVE */
33#8=EDGE_CURVE('',#6,#7,#5,.U.);
34ENDSEC;
35END-ISO-10303-21;