valgraph

package module
v0.0.0-...-e83d6d9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 3 Imported by: 0

README

valgraph

This repository is experimental. It may be breaked and may have many bugs.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEdge

func AddEdge(from *Node, site ssa.Instruction, to *Node)

Types

type Edge

type Edge struct {
	From *Node
	Site ssa.Instruction
	To   *Node
}

func (Edge) Description

func (e Edge) Description() string

func (Edge) Pos

func (e Edge) Pos() token.Pos

func (Edge) String

func (e Edge) String() string

type Graph

type Graph struct {
	Nodes map[ssa.Value]*Node
}

func New

func New() *Graph

func (*Graph) CreateNode

func (g *Graph) CreateNode(v ssa.Value) *Node

type Node

type Node struct {
	ID    int
	Value ssa.Value
	In    []*Edge
	Out   []*Edge
}

func (*Node) String

func (n *Node) String() string

Directories

Path Synopsis
passes

Jump to

Keyboard shortcuts

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