functions

package
Version: v0.0.1-2020.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStub

func IsStub(fn *ir.Function) bool

IsStub reports whether a function is a stub. A function is considered a stub if it has no instructions or if all it does is return a constant value.

func Terminates

func Terminates(fn *ir.Function) bool

Terminates reports whether fn is supposed to return, that is if it has at least one theoretic path that returns from the function. Explicit panics do not count as terminating.

Types

type Loop

type Loop struct{ *ir.BlockSet }

func FindLoops

func FindLoops(fn *ir.Function) []Loop

Jump to

Keyboard shortcuts

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