Skip to content

Commit

Permalink
Be more open!
Browse files Browse the repository at this point in the history
  • Loading branch information
KuechA committed Oct 24, 2023
1 parent 83da818 commit be51961
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ open class ControlFlowSensitiveDFGPass(ctx: TranslationContext) : TranslationUni
* It further determines unnecessary implicit return statement which are added by some frontends
* even if every path reaching this point already contains a return statement.
*/
protected fun transfer(
protected open fun transfer(
currentEdge: PropertyEdge<Node>,
state: State<Node, Set<Node>>,
worklist: Worklist<PropertyEdge<Node>, Node, Set<Node>>
Expand Down Expand Up @@ -338,7 +338,7 @@ open class ControlFlowSensitiveDFGPass(ctx: TranslationContext) : TranslationUni
lastStatement.removeNextDFG(node)
}

private fun unwrapReference(node: Node?): Reference? {
protected fun unwrapReference(node: Node?): Reference? {
return if (node is Reference) node
else if (node is UnaryOperator && (node.operatorCode == "*" || node.operatorCode == "&"))
unwrapReference(node.input)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ import org.slf4j.LoggerFactory
*/
@RegisterExtraPass(DynamicInvokeResolver::class)
@RegisterExtraPass(CXXExtraPass::class)
class CXXLanguageFrontend(language: Language<CXXLanguageFrontend>, ctx: TranslationContext) :
open class CXXLanguageFrontend(language: Language<CXXLanguageFrontend>, ctx: TranslationContext) :
LanguageFrontend<IASTNode, IASTTypeId>(language, ctx) {

/**
Expand Down

0 comments on commit be51961

Please sign in to comment.