The machine kernel. It represents finite control with an ordered tuple of input, stack, counter, queue and tape stores, and one checked model, compiler and breadth-first search serve the machine kinds, including the one-counter automaton. The procedure and syntax packages build on it.
MachineDraft.check, MachineDraft.issues, MachineDraft.issuesSummary)compiledMachine compiles a machine once for each budget tree, so many runs of one model share it. (compileMachine, compiledMachine, search, prepareSearch)searchWithoutTrace runs the same search and records no frames, for a caller that needs only the outcome and the path. A PrefixSearch serves a machine whose memory behind the input is a stack or a queue. It keeps the configurations that remain after each prefix of the words that it has read, so a word that continues a read prefix charges only the configurations that the prefix did not reach. (searchWithoutTrace, PrefixSearch)noteEdit records in an artifact cache that one machine is another with some transitions changed. compiledMachine then compiles the edit over the pools of the earlier machine and reuses the compiled edge of every unchanged transition, and prefixSearchOf starts from the prefix nodes of the earlier machine that no changed control reaches. (noteEdit, prefixSearchOf)replayPath)conflicts)configurationGraph)finiteMemoryToFinite)
Its decline codes distinguish a general LBA, a reachable left move, an uncertified tape window and an unavailable tape algorithm. A decline proves no claim about regularity. (FiniteReductionIssueCode)reachableControls, certifiedEmpty)isRealTime checks that every transition consumes an input symbol. isHeightDeterministic recognizes the sufficient case where every transition consumes a symbol and all transitions for each symbol have the same change in stack height. Runs on the same input prefix then start at the same height and add the same changes, so their heights agree. The test can decline other height-deterministic machines.isFiniteTurn recognizes the sufficient case where every reachable strongly connected control component has height-changing edges of at most one sign. A control path visits each component at most once, so its height changes direction at most twice the number of controls. Ignoring stack guards can make the test decline another finite-turn machine.compatibleActionGraph)MachineDraft.addState, MachineDraft.renameState, MachineDraft.deleteState, MachineDraft.deleteStates, MachineDraft.setStart, MachineDraft.setAccepting, MachineDraft.setRejecting, MachineDraft.addTransition, MachineDraft.deleteTransition, MachineDraft.deleteTransitions, MachineDraft.setEdgeTransitions, MachineDraft.addSymbols, MachineDraft.removeSymbol, MachineDraft.transitionsUsing)MachineDraft.usedSymbols, MachineDraft.undeclaredSymbols, MachineDraft.unusedSymbols, MachineDraft.fixedSymbols, MachineDraft.declareUsedSymbols)fundMachineCompilation)widen)MachineDraft. A checked machine carries a brand. (MachineDraft, Machine, MachineKind)PRESETS, StoreKind, KindPreset)CompiledMachine, CompiledEdge)STORES, hasStore, StorePools, StoreStep, PreparedStore)Run, SearchConfiguration, SearchFrame)BalancedAutomaton, VisibleAlphabet, visibleRoles)ActionGraph, CompatibleActionGraph, ActionGraphState)MachineDraft.dump, dumpCompiled, dumpActionGraph, dumpBalancedAutomaton)reservedTerminalIssue, reservedTerminalIssueDecoder)machineDecoder, machineOfDecoder, anyMachineDecoder, machineDraftDecoder, machineDraftOfDecoder, anyMachineDraftDecoder, machineStateDecoder, transitionDecoder, storeSpecDecoder, storeOperationDecoder, storeViewDecoder, machineIssueDecoder, storeIssueDecoder, conflictDecoder, searchConfigurationDecoder, searchFrameDecoder, controlAcceptanceDecoder, headMoveDecoder, inputOperationDecoder, inputSpecDecoder, inputViewDecoder, leftBoundedTapeSpecDecoder, machineIssueCodeDecoder, machineKindDecoder, machineTargetDecoder, markedTapeSpecDecoder, operationTargetDecoder, queueOperationDecoder, queueSpecDecoder, queueViewDecoder, runStatusDecoder, stackOperationDecoder, stackSpecDecoder, stackViewDecoder, stateIdDecoder, stateIndexDecoder, storeFinalDecoder, storeKindDecoder, storeTargetDecoder, tapeBoundsDecoder, tapeOperationDecoder, tapeSpecDecoder, tapeSymbolDecoder, tapeViewDecoder, transitionIdDecoder)ActionGraphIssueCode, ControlAcceptance, DeterminismPolicy, FiniteMethod, FiniteReductionIssueCode, HeadMove, LabelLayout, MachineIssueCode, ReservedTerminalCode, RunStatus, StoreFinal, SymbolSlotKind, TapeBounds, VisibleRole)stateIndex, isInputOperation)