Class NativeCall

    • Constructor Detail

      • NativeCall

        public NativeCall​(CFG cfg,
                          CodeLocation location,
                          Call.CallType callType,
                          java.lang.String qualifier,
                          java.lang.String targetName,
                          java.util.Collection<NativeCFG> targets,
                          Expression... parameters)
        Builds the native call, happening at the given location in the program. The EvaluationOrder of the parameter is LeftToRightEvaluation. The static type of this call is the common supertype of the return types of all targets.
        Parameters:
        cfg - the cfg that this expression belongs to
        location - the location where this expression is defined within the program
        callType - the call type of this call
        qualifier - the optional qualifier of the call (can be null or empty - see Call.getFullTargetName() for more info)
        targetName - the qualified name of the static target of this call
        targets - the NativeCFGs that are targeted by this CFG call
        parameters - the parameters of this call
      • NativeCall

        public NativeCall​(CFG cfg,
                          CodeLocation location,
                          Call.CallType callType,
                          java.lang.String qualifier,
                          java.lang.String targetName,
                          EvaluationOrder order,
                          java.util.Collection<NativeCFG> targets,
                          Expression... parameters)
        Builds the native call, happening at the given location in the program. The static type of this call is the common supertype of the return types of all targets.
        Parameters:
        cfg - the cfg that this expression belongs to
        location - the location where this expression is defined within the program
        callType - the call type of this call
        qualifier - the optional qualifier of the call (can be null or empty - see Call.getFullTargetName() for more info)
        targetName - the qualified name of the static target of this call
        order - the evaluation order of the sub-expressions
        targets - the NativeCFGs that are targeted by this CFG call
        parameters - the parameters of this call
      • NativeCall

        public NativeCall​(UnresolvedCall source,
                          java.util.Collection<NativeCFG> targets)
        Creates a native call as the resolved version of the given source call, copying all its data.
        Parameters:
        source - the unresolved call to copy
        targets - the NativeCFGs that the call has been resolved against
    • Method Detail

      • getTargetedConstructs

        public java.util.Collection<NativeCFG> getTargetedConstructs()
        Yields the NativeCFGs that are targeted by this native call.
        Returns:
        the target NativeCFGs
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Call
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class Call
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Call
      • forwardSemanticsAux

        public <A extends AbstractState<A>> AnalysisState<A> forwardSemanticsAux​(InterproceduralAnalysis<A> interprocedural,
                                                                                 AnalysisState<A> state,
                                                                                 ExpressionSet[] params,
                                                                                 StatementStore<A> expressions)
                                                                          throws SemanticException
        Description copied from class: NaryExpression
        Computes the forward semantics of the expression, after the semantics of all sub-expressions have been computed. Meta variables from the sub-expressions will be forgotten after this call returns.
        Specified by:
        forwardSemanticsAux in class NaryExpression
        Type Parameters:
        A - the type of AbstractState
        Parameters:
        interprocedural - the interprocedural analysis of the program to analyze
        state - the state where the expression is to be evaluated
        params - the symbolic expressions representing the computed values of the sub-expressions of this expression
        expressions - the cache where analysis states of intermediate expressions are stored and that can be accessed to query for post-states of parameters expressions
        Returns:
        the AnalysisState representing the abstract result of the execution of this expression
        Throws:
        SemanticException - if something goes wrong during the computation