All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opalj.br.instructions.ComparisonInstruction.scala Maven / Gradle / Ivy

The newest version!
/* BSD 2-Clause License - see OPAL/LICENSE for details. */
package org.opalj
package br
package instructions

/**
 * An instruction that compares two primitive values.
 *
 * @author Michael Eichberg
 */
abstract class ComparisonInstruction extends AlwaysSucceedingStackBasedBinaryArithmeticInstruction {

    final def jvmExceptions: List[ObjectType] = Nil

    final def mayThrowExceptions: Boolean = false

    final def stackSlotsChange: Int = {
        // take two 2 values and push one int value
        -2 * computationalType.operandSize + 1
    }

    final def isShiftInstruction: Boolean = false

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy