compiler/ast/nimsets

  Source   Edit

this unit handles Nim sets; it implements symbolic sets

Procs

proc cardSet(conf: ConfigRef; a: PNode): BiggestInt {.
    ...raises: [Exception, ERecoverableError], tags: [RootEffect].}
  Source   Edit
proc complement(conf: ConfigRef; a: PNode): PNode {.
    ...raises: [Exception, ERecoverableError], tags: [RootEffect].}
  Source   Edit
proc containsSets(conf: ConfigRef; a, b: PNode): bool {.
    ...raises: [Exception, ERecoverableError], tags: [RootEffect].}
  Source   Edit
proc deduplicate(conf: ConfigRef; a: PNode): PNode {.
    ...raises: [Exception, ERecoverableError], tags: [RootEffect].}
  Source   Edit
proc diffSets(conf: ConfigRef; a, b: PNode): PNode {.
    ...raises: [Exception, ERecoverableError], tags: [RootEffect].}
  Source   Edit
proc emptyRange(a, b: PNode): bool {....raises: [ERecoverableError], tags: [].}
  Source   Edit
proc equalSets(conf: ConfigRef; a, b: PNode): bool {.
    ...raises: [Exception, ERecoverableError], tags: [RootEffect].}
  Source   Edit
proc inclTreeSet(result: var TBitSetView; conf: ConfigRef; s: PNode) {.
    ...raises: [Exception, ERecoverableError], tags: [RootEffect].}
Includes all elements from tree-set s into result   Source   Edit
proc inSet(s: PNode; elem: PNode): bool {....raises: [ERecoverableError], tags: [].}
  Source   Edit
proc intersectSets(conf: ConfigRef; a, b: PNode): PNode {.
    ...raises: [Exception, ERecoverableError], tags: [RootEffect].}
  Source   Edit
proc overlap(a, b: PNode): bool {....raises: [ERecoverableError], tags: [].}
  Source   Edit
proc setHasRange(s: PNode): bool {....raises: [], tags: [].}
  Source   Edit
proc someInSet(s: PNode; a, b: PNode): bool {....raises: [ERecoverableError],
    tags: [].}
  Source   Edit
proc symdiffSets(conf: ConfigRef; a, b: PNode): PNode {.
    ...raises: [Exception, ERecoverableError], tags: [RootEffect].}
  Source   Edit
proc toBitSet(conf: ConfigRef; s: PNode): TBitSet {.
    ...raises: [Exception, ERecoverableError], tags: [RootEffect].}
Creates a bit set from tree-set s   Source   Edit
proc toTreeSet(conf: ConfigRef; s: TBitSetView; settype: PType; info: TLineInfo): PNode {.
    ...raises: [], tags: [].}
  Source   Edit
proc unionSets(conf: ConfigRef; a, b: PNode): PNode {.
    ...raises: [Exception, ERecoverableError], tags: [RootEffect].}
  Source   Edit