m2isar.metamodel.utils.function_throws

Tranformation functions to determine whether a function throws an exception.

Classes

FunctionThrowsVisitor

Visitor that determines whether behavior expression trees can throw exceptions.

Functions

cast_to_throws(→ m2isar.metamodel.arch.FunctionThrows)

Cast unknown throws values into FunctionThrows for robust visitor dispatch.

Module Contents

class FunctionThrowsVisitor[source]

Bases: m2isar.metamodel.utils.ExprVisitor.ExprVisitor

Inheritance diagram of m2isar.metamodel.utils.function_throws.FunctionThrowsVisitor

Visitor that determines whether behavior expression trees can throw exceptions.

abstract generate(expr: m2isar.metamodel.behav.BaseNode, context=None)[source]
_(expr: m2isar.metamodel.behav.Operation, context)[source]
cast_to_throws(throws: Any) m2isar.metamodel.arch.FunctionThrows[source]

Cast unknown throws values into FunctionThrows for robust visitor dispatch.