Encoding switch on ordered universes with binary decision diagrams
Abstract
Various embodiments herein include one or more of systems, methods, software, and/or data structures to implement a multi-way branch statement in a computer programming language. The multi-way branch statement may include a plurality of case labels each having a non-primitive data type (e.g., strings) and being associated with a block of code to be executed dependent upon a control variable that also has a non-primitive data type. The implementation may include encoding the case labels for the multi-way branch statement as a binary decision diagram (BDD), such as a zero-suppressed binary decision diagram (ZDD), wherein the control variable for the multi-way branch statement may be compared with the case labels by stepping through the BDD. The BDD may include identifiers that provide information regarding which of the case labels is matched by the control variable, such that an appropriate code block may be executed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for providing a multi-way branch statement having one or more case labels, the method comprising: encoding the case labels as a binary decision diagram (BDD) created from a family of sets; generating one or more identifiers for each unique code block associated with one or more case labels in the multi-way branch statement, each identifier being associated with a path of the BDD that exclusively encodes case labels associated with the unique code block identified by the identifier; storing the BDD and the identifiers in a data storage; receiving a control variable
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (8)
Non-Patent Literature (1)
- Knuth, Donald E., "A Draft of Section 7.1.4: Binary Decision Diagrams" The Art of Computer Programming, vol. 4, Pre-Fascicle 1B, Addison-Wesley, Dec. 22, 2008.