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]

[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.

[src]

Create a Vec of every RefFunctionLocation for this function.

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

[src]

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.

[src]

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

[src]

Return a mutable reference to a Block in this Function

[src]

Return a Vec of all Block in this Function

[src]

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

[src]

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

[src]

Return a vec of all Edge in this Function

[src]

Return the ControlFlowGraph for this Function.

[src]

Return a mutable reference to the ControlFlowGraph for this Function.

[src]

Return the name of this Function.

[src]

Set this Function's name.

[src]

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

[src]

Trait Implementations

impl Clone for Function
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Function
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for Function
[src]

impl Hash for Function
[src]

[src]

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

1.3.0
[src]

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

impl Ord for Function
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialEq for Function
[src]

[src]

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

[src]

This method tests for !=.

impl PartialOrd for Function
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations

impl Send for Function

impl Sync for Function