handleBinaryOperator

fun handleBinaryOperator(instr: LLVMValueRef, op: String, unsigned: Boolean, unordered: Boolean = false): Expression

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

It expects the llvm-instruction in instr and the operator in op. The argument unsigned indicates if the operands have to be treated as unsigned integer values. In this case, a cast expression is used to ensure that the information is represented in the graph. The argument unordered indicates if a floating-point comparison needs to be ored with a check to whether the value is unordered (i.e., NAN).