graph

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

This file may have been modified by Bytedance Ltd. and/or its affiliates (“Bytedance's Modifications”). All Bytedance's Modifications are Copyright (2022) Bytedance Ltd. and/or its affiliates.

This file may have been modified by Bytedance Ltd. and/or its affiliates (“Bytedance's Modifications”). All Bytedance's Modifications are Copyright (2022) Bytedance Ltd. and/or its affiliates.

Index

Constants

This section is empty.

Variables

View Source
var RepoCalls = &sync.Map{}

Functions

func BuildCallGraph

func BuildCallGraph(function *parsermodel.ProjectFunction, functionName string) *callgraph.Graph

func GetFuncFileName

func GetFuncFileName(f *ssa.Function, prog *ssa.Program) string

func GetFunctionCallGraph

func GetFunctionCallGraph(option atgconstant.Options) (*parsermodel.ProjectFunction, *callgraph.Graph, error)

GetFunctionCallGraph TODO: GetFunctionCallGraph this function was called many times by testcode.go, parser.go. Need to reduce this functions call. Because it can save our running time

func GetPackageFunction

func GetPackageFunction(option atgconstant.Options) (*parsermodel.ProjectFunction, error)

GetPackageFunction gets all functions from the package, the tested function, the constant in the packages

func ParsePackage

func ParsePackage(file string) (program *parsermodel.ProjectProgram, err error)

TODO: optimize this function

func ScanFuncBlocks

func ScanFuncBlocks(bacicBlocks []*ssa.BasicBlock, projectFunction *parsermodel.ProjectFunction, parentNode *callgraph.Node, cg *callgraph.Graph)

Types

This section is empty.

Jump to

Keyboard shortcuts

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