StatementHandler

class StatementHandler(lang: LLVMIRLanguageFrontend) : Handler<Statement, Pointer, LLVMIRLanguageFrontend>

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open fun handle(ctx: Pointer): Statement?
Link copied to clipboard
fun handleBinaryOperator(instr: LLVMValueRef, op: String, unsigned: Boolean, unordered: Boolean = false): Statement

Handles a binary operation and returns either a BinaryOperator, UnaryOperator, CallExpression or a DeclarationStatement.

Link copied to clipboard
fun handleIntegerComparison(instr: LLVMValueRef): Statement

Handles the icmp instruction for comparing integer values.

Link copied to clipboard
fun handlePhi(instr: LLVMValueRef, tu: TranslationUnitDeclaration, flatAST: MutableList<Node>)

Handles the phi instruction. It therefore adds dummy statements to the end of basic blocks where a certain variable is declared and initialized. The original phi instruction is not added to the CPG.

Link copied to clipboard
open override fun <N, S> setCodeAndLocation(cpgNode: N, astNode: S?)

Properties

Link copied to clipboard
Link copied to clipboard
open override val language: Language<LLVMIRLanguageFrontend>
Link copied to clipboard
open override val namespace: Name?
Link copied to clipboard
open override val scope: Scope?