mycallgraph

package
v0.0.0-...-3f344d0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Recursive_count_down int

Functions

func Can_inst_happen_before_inst

func Can_inst_happen_before_inst(inst1, inst2 ssa.Instruction) bool

func Initialize

func Initialize(Max_countdown int)

Types

type Call_node

type Call_node struct {
	Fn       *ssa.Function
	Layer    int
	Call_map map[ssa.Instruction][]*Call_node // we use []*Call_node here, because an inst
	// may call to different callees if interface or closure is involved
	Called_map map[ssa.Instruction]*Call_node
}

func New_Call_node

func New_Call_node(fn *ssa.Function, layer int) *Call_node

func (*Call_node) Fill_call_map_after_init

func (cn *Call_node) Fill_call_map_after_init(max_layer int)

(layer_count_down + cn.layer) is a const number

Jump to

Keyboard shortcuts

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