diff options
Diffstat (limited to 'Solvers/Alloy-Solver/hu.bme.mit.inf.dlsreasoner.alloy.reasoner/queries/hu/bme/mit/inf/dlsreasoner/alloy/reasoner/queries/signatureQueries.vql')
-rw-r--r-- | Solvers/Alloy-Solver/hu.bme.mit.inf.dlsreasoner.alloy.reasoner/queries/hu/bme/mit/inf/dlsreasoner/alloy/reasoner/queries/signatureQueries.vql | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Solvers/Alloy-Solver/hu.bme.mit.inf.dlsreasoner.alloy.reasoner/queries/hu/bme/mit/inf/dlsreasoner/alloy/reasoner/queries/signatureQueries.vql b/Solvers/Alloy-Solver/hu.bme.mit.inf.dlsreasoner.alloy.reasoner/queries/hu/bme/mit/inf/dlsreasoner/alloy/reasoner/queries/signatureQueries.vql new file mode 100644 index 00000000..a020953c --- /dev/null +++ b/Solvers/Alloy-Solver/hu.bme.mit.inf.dlsreasoner.alloy.reasoner/queries/hu/bme/mit/inf/dlsreasoner/alloy/reasoner/queries/signatureQueries.vql | |||
@@ -0,0 +1,17 @@ | |||
1 | package hu.bme.mit.inf.dlsreasoner.alloy.reasoner.queries | ||
2 | |||
3 | import epackage "http://www.bme.hu/mit/inf/dslreasoner/AlloyLanguage" | ||
4 | |||
5 | pattern directSubset(x: ALSSignatureDeclaration, y: ALSSignatureDeclaration) { | ||
6 | ALSSignatureBody.declarations(b,y); | ||
7 | ALSSignatureBody.supertype(b,x); | ||
8 | } or { | ||
9 | ALSSignatureBody.declarations(b,y); | ||
10 | ALSSignatureBody.superset(b,x); | ||
11 | } | ||
12 | |||
13 | pattern subset(x: ALSSignatureDeclaration, y: ALSSignatureDeclaration) { | ||
14 | x == y; | ||
15 | } or { | ||
16 | find directSubset+(x,y); | ||
17 | } | ||