Skip to content

Commit

Permalink
Added metadata where it was missing
Browse files Browse the repository at this point in the history
  • Loading branch information
leventeBajczi committed Nov 4, 2024
1 parent c5fc837 commit 19ff8fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class CLibraryFunctionsPass : ProcedurePass {

else -> error("Unsupported library function ${invokeLabel.name}")
}
XcfaEdge(it.source, target, SequenceLabel(labels))
XcfaEdge(it.source, target, SequenceLabel(labels), metadata)
.splitIf { label ->
label is FenceLabel && label.labels.any { l -> l.startsWith("start_cond_wait") }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class MallocFunctionPass(val parseContext: ParseContext) : ProcedurePass {
invokeLabel.metadata,
)
val assign2 = AssignStmtLabel(ret, cast(mallocVar.ref, ret.type))
builder.addEdge(XcfaEdge(e.source, e.target, SequenceLabel(listOf(assign1, assign2))))
builder.addEdge(XcfaEdge(e.source, e.target, SequenceLabel(listOf(assign1, assign2)), e.metadata))
} else {
builder.addEdge(e)
}
Expand Down

0 comments on commit 19ff8fe

Please sign in to comment.