util

package
v0.0.0-...-f39ad0c Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: GPL-2.0 Imports: 11 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecoupleTypeMethods

func DecoupleTypeMethods(m map[string]bool) map[string]map[string]bool

func GetBaseType

func GetBaseType(v ssa.Value) types.Type

func GetEntryInsts

func GetEntryInsts(fn *ssa.Function) []ssa.Instruction

according to the annotation of ssa.Function, a function only has one normal entry BB and one optional recover BB. There is no need to analyze the recover BB. No BB can reach it and it reaches no BB

func GetExitInsts

func GetExitInsts(fn *ssa.Function) []ssa.Instruction

func GetFirstInst

func GetFirstInst(bb *ssa.BasicBlock) ssa.Instruction

func GetIIndexBB

func GetIIndexBB(II ssa.Instruction) int

func GetLastInst

func GetLastInst(bb *ssa.BasicBlock) ssa.Instruction

func GetPrevInsts

func GetPrevInsts(inputInst ssa.Instruction) []ssa.Instruction

func GetStructPointerMapping

func GetStructPointerMapping()

func GetSuccInsts

func GetSuccInsts(inputInst ssa.Instruction) []ssa.Instruction

func GetTypeMethods

func GetTypeMethods(t types.Type, m map[string]bool, mVisited map[types.Type]bool)

func GetValueName

func GetValueName(v ssa.Value) string

func IsFirstDefer

func IsFirstDefer(ii ssa.Instruction) bool

func IsFnBegin

func IsFnBegin(ii ssa.Instruction) bool

func IsFnEnd

func IsFnEnd(ii ssa.Instruction) bool

func IsInstCallFatal

func IsInstCallFatal(inst ssa.Instruction) bool

func IsInstInVec

func IsInstInVec(inst ssa.Instruction, vec []ssa.Instruction) bool

func PrintTypeMethods

func PrintTypeMethods(m map[string]map[string]bool)

func ReadFileLine

func ReadFileLine(filename string, n int) (string, error)

func SplitStr2Map

func SplitStr2Map(strTarget string, strSep string) map[string]bool

func VecFnForVecInst

func VecFnForVecInst(vecInst []ssa.Instruction) []*ssa.Function

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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