web

package
v0.0.0-...-8117d66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NumInput = 1 << NumVar
	NumFunc  = 1 << NumInput
)

Derived constants.

View Source
const EOF = 57349
View Source
const LANDAND = 57351
View Source
const LANDNOT = 57357
View Source
const LGE = 57354
View Source
const LIN = 57348
View Source
const LLE = 57353
View Source
const LLSH = 57355
View Source
const LNE = 57352
View Source
const LNUM = 57346
View Source
const LOROR = 57350
View Source
const LRSH = 57356
View Source
const LVAR = 57347
View Source
const NumVar = 5

Change to compute different answer.

Variables

View Source
var V = literal(0)
View Source
var W = literal(1)
View Source
var X = literal(2)
View Source
var Y = literal(3)
View Source
var Z = literal(4)

Functions

This section is empty.

Types

type ExprLex

type ExprLex string

func (*ExprLex) Error

func (sp *ExprLex) Error(s string)

func (*ExprLex) Lex

func (sp *ExprLex) Lex(yylval *yySymType) int

type Func

type Func uint32

A Func represents a single boolean function. It specifies only the outputs for each input, not a way to compute it.

func (Func) String

func (f Func) String() string

type Info

type Info struct {
	Record
	Size int
}

type MainData

type MainData struct {
	Query  string
	Result template.HTML
	Mem    uint64
}

type Record

type Record struct {
	F, P, Q Func
}

A Record records the Boolean function and its parents for computing it.

type ResultData

type ResultData struct {
	Error   error
	Query   string
	Canon   Func
	Func    Func
	Tree    *Tree
	XorTree *Tree
}

type Savepoint

type Savepoint struct {
	Howto  []Record
	BySize [][]Func
}

A Savepoint records information for starting again later.

type Tree

type Tree struct {
	Op   string
	F    Func
	L, R *Tree
}

func (*Tree) Complexity

func (t *Tree) Complexity() string

func (*Tree) HTML

func (t *Tree) HTML() template.HTML

func (*Tree) String

func (t *Tree) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL