Struct falcon::il::Function[][src]

pub struct Function { /* fields omitted */ }

A function for Falcon IL. Provides location and context in a Program to a ControlFlowGraph.

Methods

impl Function
[src]

Create a new Function

Parameters

  • address - The address where we recovered this function.
  • control_flow_graph - A ControlFlowGraph capturing the semantics of this function.

Create a Vec of every RefFunctionLocation for this function.

Convenient for analyses where we need to check every location in a function

Get the address of this Function.

The address returned will be the address set when this Function was created, which should be the virtual address where this Function was found.

Return a Block from this Function's ControlFlowGraph by index.

Return a mutable reference to a Block in this Function

Return a Vec of all Block in this Function

Return a Vec of mutable references to all Block in this Function

Return an Edge from this Function's ControlFlowGraph by index.

Return a vec of all Edge in this Function

Return the ControlFlowGraph for this Function.

Return a mutable reference to the ControlFlowGraph for this Function.

Return the name of this Function.

Set this Function's name.

Return the index of this Function. A Function will have an index if it is added to a Program.

Trait Implementations

impl Clone for Function
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Function
[src]

Formats the value using the given formatter. Read more

impl Hash for Function
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for Function
[src]

impl PartialEq for Function
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Function

impl Sync for Function