Octagonal_Shape<T> internal status
|
Type
|
Level
|
MID
|
UID
|
REFS
|
Title
|
Statement
|
Rationale
|
Comment
|
BIBLIOGRAPHY
|
STATUS
|
COMPONENT
|
APPLICABILITY
|
VERIFICATION_METHODS
|
VERIFICATION_CRITERIA
|
SOURCE
|
LANGUAGE
|
VISIBILITY
|
INTERFACE
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
SW_SPEC
|
1 |
|
|
Incoming links from:
2. Octagonal_Shape<T> internal status flag queries and transitions
2. Octagonal_Shape<T> internal status flag queries and transitions
3. Octagonal_Shape<T> internal status consistency predicate
4. Octagonal_Shape<T> internal status signed-keyword export
5. Octagonal_Shape<T> internal status signed-keyword loading and rejection
5 |
The nested Status shall own a finite set of named Boolean flags: empty, strongly_closed. test_zero_dim_univ() shall recognize the zero flag word; that word shall be the default state. It shall be an encoding predicate, not an independent query of the owning object's dimension or numerical payload. The owning object shall supply that context and establish the truth of its cache claims. Copy construction and assignment shall preserve all stored flags in an independent value. Assignment shall return its target and admit self-assignment. Mutating or destroying one copy shall not change another. Destruction shall release the status value without destroying an owning domain or its payload. These value operations shall admit any vector of the declared flags, including transient inconsistent combinations used while updating a representation. Status-only operations shall require live objects and synchronized access
against mutation, but no numerical-library/thread initialization or coefficient
constant stage. Their selected streams shall remain live. They shall not
inspect domain coordinates, reconstruct numerical descriptions or perform
coefficient arithmetic. A domain shall use a consistent status whose claims
agree with its representation; the local check of 🔗 3. Octagonal_Shape |
Cached facts need an independent value and an explicit distinction between status-bit consistency and the truth of claims about a numerical object. |
|
|
|
|
|
Check default/copy/assignment, self-assignment, independent mutation and source destruction over every declared flag vector. Use status-only tests without a numerical initialization owner; inspect payload independence. |
src/Octagonal_Shape_defs.hh; src/Og_Status_idefs.hh; src/Og_Status_inlines.hh; src/Og_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc. |
|
|
Internal nested type Octagonal_Shape<T>::Status in Og_Status_idefs.hh, included through Octagonal_Shape_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions. Status(); Status(const Status&); Status& operator=(const Status&); ~Status(); |
||
|
SW_SPEC
|
2 |
|
|
|
For a declared mask m and current flag word F, the private test_all(m) shall return (F&m) = m, and test_any(m) shall return (F&m) ≠ 0. The empty mask shall therefore match all and match no individual bit. set(m) shall replace F by F|m; reset(m) shall clear exactly the selected bits. Masks shall contain only the declared flags. Tests shall preserve state. Each named test_* shall return its stored bit, except the zero-word
predicate of 🔗 1. Octagonal_Shape Updates shall not generally reconcile other assertions. Transient inconsistent
vectors shall remain available to 🔗 3. Octagonal_Shape |
Representation algorithms need exact local cache updates without implicit numerical recomputation or unrelated changes to known facts. |
|
|
|
|
|
Compare all flag words and declared masks against independent set algebra. Check every named update and query, both zero-reset cases, whole-word empty replacement, and independent copies. |
src/Octagonal_Shape_defs.hh; src/Og_Status_idefs.hh; src/Og_Status_inlines.hh; src/Og_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc. |
|
|
Internal nested type Octagonal_Shape<T>::Status in Og_Status_idefs.hh, included through Octagonal_Shape_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions. bool test_zero_dim_univ() const; void set_zero_dim_univ(); void reset_zero_dim_univ(); bool test_empty() const; void set_empty(); void reset_empty(); bool test_strongly_closed() const; void set_strongly_closed(); void reset_strongly_closed(); // Private primitives; flags_t is the declared unsigned flag-word type. bool test_all(flags_t mask) const; bool test_any(flags_t mask) const; void set(flags_t mask); void reset(flags_t mask); |
||
|
SW_SPEC
|
3 |
|
|
|
OK() shall return true exactly for the zero word, empty-only and strongly-closed-only words. Empty and strong closure shall exclude one another. The closure flag shall refer to the owning shape's selected representation invariant; rounded/bounded bounds need not be exactly tight. The result shall be the same with and without assertions. Invalid combinations
shall return false; assertion builds shall also write a diagnostic to the
current std::cerr. Valid combinations shall not emit that diagnostic.
The query shall preserve the flag word. Stream failures shall follow ordinary
stream rules. This local predicate shall not inspect the domain payload or
certify its ambient dimension, feasibility or cached numerical facts.
The prerequisites of 🔗 1. Octagonal_Shape |
Cache assertions have logical dependencies. Checking their finite Boolean model must remain distinct from checking the numerical representation. |
|
|
|
|
|
Enumerate every flag vector against an independent propositional oracle; check accepted-state counts, source preservation and diagnostic presence in assertion/release builds. Inspect payload independence. |
src/Octagonal_Shape_defs.hh; src/Og_Status_idefs.hh; src/Og_Status_inlines.hh; src/Og_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc. |
|
|
Internal nested type Octagonal_Shape<T>::Status in Og_Status_idefs.hh, included through Octagonal_Shape_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions. bool OK() const; |
||
|
SW_SPEC
|
4 |
|
|
|
ascii_dump(stream) shall write signed keywords in the order ZE EM SC. ZE shall be positive exactly for the zero flag word; each other sign shall equal its stored named bit. One space shall separate successive fields except for two spaces after EM. The record shall end with one trailing space. The exact separators shall follow the default stream formatting; caller-selected width/fill/alignment shall retain ordinary character/string insertion behavior. Export shall preserve the stored flags, including transient inconsistent
vectors, without reconciling claims or inspecting numerical payload.
Partial output, state flags and exceptions shall follow the selected stream.
The prerequisites of 🔗 1. Octagonal_Shape |
Serialized cache claims and diagnostics must retain the actual flag state without triggering domain normalization. |
|
|
|
|
|
Check exact field signs/order/separators over every flag word, stream formatting and source preservation. Exercise returning/throwing output failures and the declared stderr routes, including their flush behavior. |
src/Octagonal_Shape_defs.hh; src/Og_Status_idefs.hh; src/Og_Status_inlines.hh; src/Og_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc. |
|
|
Internal nested type Octagonal_Shape<T>::Status in Og_Status_idefs.hh, included through Octagonal_Shape_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions. void ascii_dump(std::ostream& stream) const; |
||
|
SW_SPEC
|
5 |
|
|
Parents:
|
Incoming link from:
2. Compatible octagonal record loading and failure state
1 |
ascii_load(stream) shall extract exactly the signed keywords of
🔗 4. Octagonal_Shape For parsed zero marker Z and remaining flag word F, success
shall require Z ⇔ (F = 0) and the consistency predicate of
🔗 3. Octagonal_Shape The loader shall retain its preceding word until parsed fields update it.
Successfully parsed fields may already have updated the receiver when a later
field is rejected or throws. Completed invalid flags may remain installed.
Rollback and status consistency after rejection shall not be promised.
The caller shall restore valid status before installing it as domain state.
Stream/resource exceptions shall retain their ordinary propagation and completed
temporary cleanup. The internal get_field parser shall assign its output
Boolean only on a successful signed-keyword match and preserve it on rejection.
Its keyword shall be a live nonnull null-terminated string, and its output
Boolean shall be live and writable.
The prerequisites of 🔗 1. Octagonal_Shape |
The redundant zero marker and the remaining flags must describe one status. Local inconsistency is a recoverable parse rejection in every build mode. |
|
|
|
|
|
Enumerate all flag/ZE pairs against the propositional oracle and preserve all canonical valid records. Load every valid source over every consistent prior state and retain a suffix token. Reject every malformed/truncated field position; exercise width/whitespace settings, returning failures, input exceptions and get_field output preservation. Check the stated partial-state behavior and reject contradictory markers through full public-domain loaders. |
src/Octagonal_Shape_defs.hh; src/Og_Status_idefs.hh; src/Og_Status_inlines.hh; src/Og_Status.cc; tests/statushelpersspec1.cc; tests/statusloadpublic1.cc. |
|
|
Internal nested type Octagonal_Shape<T>::Status in Og_Status_idefs.hh, included through Octagonal_Shape_defs.hh. Names belong to Parma_Polyhedra_Library; member excerpts apply within that nested class. The owning class retains its declared access restrictions. bool ascii_load(std::istream& stream); // Internal helper, in its defining translation unit or implementation namespace: bool get_field(std::istream& stream, const char* keyword, bool& positive); |