Edit and publish Alloy article
This commit is contained in:
@@ -62,15 +62,15 @@ sig Symbol {
|
||||
properties: set Property
|
||||
}
|
||||
|
||||
pred flagMatchesPropery[flag: Flag, property: Property] {
|
||||
pred flagMatchesProperty[flag: Flag, property: Property] {
|
||||
(flag = Method and property = PMethod) or
|
||||
(flag = MethodOrField and (property = PMethod or property = PField)) or
|
||||
(flag = Public and property = PPublic)
|
||||
}
|
||||
|
||||
pred bitfieldMatchesProperties[bitfield: Bitfield, symbol: Symbol] {
|
||||
all flag: bitfield.positiveFlags | some property: symbol.properties | flagMatchesPropery[flag, property]
|
||||
all flag: bitfield.negativeFlags | no property: symbol.properties | flagMatchesPropery[flag, property]
|
||||
all flag: bitfield.positiveFlags | some property: symbol.properties | flagMatchesProperty[flag, property]
|
||||
all flag: bitfield.negativeFlags | no property: symbol.properties | flagMatchesProperty[flag, property]
|
||||
}
|
||||
|
||||
bitfieldExists: run {
|
||||
|
||||
Reference in New Issue
Block a user