CodyzeDfaOrderEvaluator
class CodyzeDfaOrderEvaluator(val context: EvaluationContext, val hashToMethod: Map<String, String>, dfa: DFA, consideredBases: Set<Node>, nodeToRelevantMethod: Map<Node, Set<String>>, thisPositionOfNode: Map<Node, Int> = mapOf(), consideredResetNodes: Set<Node>, eliminateUnreachableCode: Boolean = true) : DFAOrderEvaluator(source)
Codyze-specific implementation of the DFAOrderEvaluator. Its main purpose is to collect the findings in case of violations to the order.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
open override fun actionMissingTransitionForNode(node: Node, fsm: DFA, interproceduralFlow: Boolean)
Collects a finding if the node makes an operation which violates the desired order.
Link copied to clipboard
open override fun actionNonAcceptingTermination(base: String, fsm: DFA, interproceduralFlow: Boolean)
Collects the finding in the AnalysisContext because the DFA finished analyzing the function but the base did not terminate in an accepting state (i.e., some operations are missing).
Link copied to clipboard
Link copied to clipboard