Skip to content

Commit

Permalink
Spor as an xcfa specific algorithm - refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
csanadtelbisz authored Oct 11, 2023
2 parents 5532f72 + 68ade94 commit fdc40cf
Show file tree
Hide file tree
Showing 3 changed files with 215 additions and 293 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,11 @@ import hu.bme.mit.theta.xcfa.analysis.XcfaAction
import hu.bme.mit.theta.xcfa.analysis.XcfaState
import hu.bme.mit.theta.xcfa.model.XCFA

class XcfaAasporLts(xcfa: XCFA,
private val ignoredVarRegistry: MutableMap<Decl<out Type>, MutableSet<ExprState>>) :
class XcfaAasporLts(xcfa: XCFA, private val ignoredVarRegistry: MutableMap<Decl<out Type>, MutableSet<ExprState>>) :
XcfaSporLts(xcfa) {

override fun <P : Prec> getEnabledActionsFor(
state: XcfaState<*>,
exploredActions: Collection<XcfaAction>,
prec: P
): Set<XcfaAction> {
override fun <P : Prec> getEnabledActionsFor(state: XcfaState<*>, exploredActions: Collection<XcfaAction>,
prec: P): Set<XcfaAction> {
// Collecting enabled actions
val allEnabledActions = getAllEnabledActionsFor(state)

Expand Down Expand Up @@ -121,8 +117,8 @@ class XcfaAasporLts(xcfa: XCFA,
return true
}
val usedByPersistentSetAction = getCachedUsedSharedObjects(
getTransitionOf(persistentSetAction))
val influencedSharedObjects = getInfluencedSharedObjects(getTransitionOf(action))
getEdgeOf(persistentSetAction))
val influencedSharedObjects = getInfluencedSharedObjects(getEdgeOf(action))
for (varDecl in influencedSharedObjects) {
if (usedByPersistentSetAction.contains(varDecl)) {
if (varDecl !in prec.usedVars) {
Expand Down
Loading

0 comments on commit fdc40cf

Please sign in to comment.