Edit and publish Alloy article

This commit is contained in:
2023-06-04 21:56:45 -07:00
parent 8a2e91e65e
commit 250884c7bc
2 changed files with 45 additions and 26 deletions

View File

@@ -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 {