Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KuechA committed Dec 17, 2024
1 parent 92533e6 commit b80db86
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ abstract class Declaration : Node() {
* Each Declaration allocates new memory, AKA a new address, so we create a new MemoryAddress
* node
*/
lateinit var memoryAddress: MemoryAddress
open lateinit var memoryAddress: MemoryAddress

fun memoryAddressIsInitialized() = ::memoryAddress.isInitialized
}
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,11 @@ class PointsToPass(ctx: TranslationContext) : EOGStarterPass(ctx, orderDependenc
when (param) {
is ParameterDeclaration ->
// Dereference the parameter
doubleState.getValues(currentNode.arguments[param.argumentIndex])
if (param.argumentIndex < currentNode.arguments.size) {
doubleState.getValues(
currentNode.arguments[param.argumentIndex]
)
} else null
else -> null
}
val sources = mutableSetOf<Node>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ open class SymbolResolver(ctx: TranslationContext) : ComponentPass(ctx) {
}
}

protected fun handleCallExpression(call: CallExpression) {
protected open fun handleCallExpression(call: CallExpression) {
// Some local variables for easier smart casting
val callee = call.callee
val language = call.language
Expand Down

0 comments on commit b80db86

Please sign in to comment.