-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
67 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
(exists item in a => item == 7), warning "there is no 7 in a" | ||
^^^^^^ rbt-existential-quantification-semantics/foo.rsl:8: issue: expression is always true [vcg-always-true] | ||
T Kitten { | ||
^^^^^^ rbt-existential-quantification-semantics/foo.trlc:7: check warning: there is no 7 in a | ||
Processed 1 model, 0 checks and 1 requirement file and found 2 warnings | ||
Processed 1 model and 1 requirement file and found 1 warning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
tests-system/rbt-existential-quantification-semantics/output.smtlib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
(exists item in a => item == 7), warning "there is no 7 in a" | ||
^^^^^^ rbt-existential-quantification-semantics/foo.rsl:8: issue: expression is always true [vcg-always-true] | ||
T Kitten { | ||
^^^^^^ rbt-existential-quantification-semantics/foo.trlc:7: check warning: there is no 7 in a | ||
Processed 1 model, 0 checks and 1 requirement file and found 2 warnings | ||
Processed 1 model and 1 requirement file and found 1 warning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(forall a in a => a != 7), warning "No sevens allowed" | ||
^ rbt-quantification-naming-scope/foo.rsl:10: error: shadows Composite_Component a from foo.rsl:4 | ||
Processed 1 model, 0 checks and 0 requirement files and found 1 error | ||
Processed 1 model and 0 requirement files and found 1 error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(forall a in a => a != 7), warning "No sevens allowed" | ||
^ rbt-quantification-naming-scope/foo.rsl:10: error: shadows Composite_Component a from foo.rsl:4 | ||
Processed 1 model, 0 checks and 0 requirement files and found 1 error | ||
Processed 1 model and 0 requirement files and found 1 error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(forall a in a => a != 7), warning "No sevens allowed" | ||
^ rbt-quantification-naming-scope/foo.rsl:10: error: shadows Composite_Component a from foo.rsl:4 | ||
Processed 1 model, 0 checks and 0 requirement files and found 1 error | ||
Processed 1 model and 0 requirement files and found 1 error |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(forall char in a => char != "a"), warning "a should not contain the letter a" | ||
^ rbt-quantification-object-1/foo.rsl:8: error: you can only quantify over arrays | ||
Processed 1 model and 0 requirement files and found 1 error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rbt-quantification-object-1/foo.rsl:8:21: trlc error: you can only quantify over arrays |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(forall char in a => char != "a"), warning "a should not contain the letter a" | ||
^ rbt-quantification-object-1/foo.rsl:8: error: you can only quantify over arrays | ||
Processed 1 model and 0 requirement files and found 1 error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(forall char in a => char != "a"), warning "a should not contain the letter a" | ||
^ rbt-quantification-object-1/foo.rsl:8: error: you can only quantify over arrays | ||
Processed 1 model and 0 requirement files and found 1 error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package Foo | ||
|
||
type Potato { | ||
a String | ||
} | ||
|
||
checks Potato { | ||
(forall char in b => char != "a"), warning "b should not contain the letter a" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(forall char in b => char != "a"), warning "b should not contain the letter a" | ||
^ rbt-quantification-object-2/foo.rsl:8: error: unknown symbol b | ||
Processed 1 model and 0 requirement files and found 1 error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rbt-quantification-object-2/foo.rsl:8:21: trlc error: unknown symbol b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(forall char in b => char != "a"), warning "b should not contain the letter a" | ||
^ rbt-quantification-object-2/foo.rsl:8: error: unknown symbol b | ||
Processed 1 model and 0 requirement files and found 1 error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(forall char in b => char != "a"), warning "b should not contain the letter a" | ||
^ rbt-quantification-object-2/foo.rsl:8: error: unknown symbol b | ||
Processed 1 model and 0 requirement files and found 1 error |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(exists item in a => item == 7), warning "7 is a lucky number", a | ||
^^^^^^ rbt-quantified-expression/foo.rsl:9: issue: expression is always true [vcg-always-true] | ||
Processed 1 model, 0 checks and 1 requirement file and found 1 warning | ||
(forall item in a => 42), warning "All items must be positive", a | ||
^^ rbt-quantified-expression/foo.rsl:10: error: expected expression of type Builtin_Boolean, got Builtin_Integer instead | ||
Processed 1 model and 1 requirement file and found 1 error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rbt-quantified-expression/foo.rsl:10:26: trlc error: expected expression of type Builtin_Boolean, got Builtin_Integer instead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,3 @@ | ||
{ | ||
"Bar": { | ||
"a": [ | ||
1, | ||
2, | ||
3, | ||
7 | ||
] | ||
} | ||
} | ||
Processed 1 model, 0 checks and 1 requirement file and found no issues | ||
(forall item in a => 42), warning "All items must be positive", a | ||
^^ rbt-quantified-expression/foo.rsl:10: error: expected expression of type Builtin_Boolean, got Builtin_Integer instead | ||
Processed 1 model and 1 requirement file and found 1 error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
(exists item in a => item == 7), warning "7 is a lucky number", a | ||
^^^^^^ rbt-quantified-expression/foo.rsl:9: issue: expression is always true [vcg-always-true] | ||
Processed 1 model, 0 checks and 1 requirement file and found 1 warning | ||
(forall item in a => 42), warning "All items must be positive", a | ||
^^ rbt-quantified-expression/foo.rsl:10: error: expected expression of type Builtin_Boolean, got Builtin_Integer instead | ||
Processed 1 model and 1 requirement file and found 1 error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,7 @@ T Bar { | |
T Kitten { | ||
a = [] | ||
} | ||
|
||
T Potato { | ||
a = [-1, 1] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
T Bar { | ||
^^^ rbt-universal-quantification-semantics/foo.trlc:3: check warning: All items must be positive | ||
Processed 1 model, 0 checks and 1 requirement file and found 1 warning | ||
T Potato { | ||
^^^^^^ rbt-universal-quantification-semantics/foo.trlc:11: check warning: All items must be positive | ||
Processed 1 model and 1 requirement file and found 2 warnings |
1 change: 1 addition & 0 deletions
1
tests-system/rbt-universal-quantification-semantics/output.brief
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
rbt-universal-quantification-semantics/foo.trlc:3:3: trlc check warning: All items must be positive | ||
rbt-universal-quantification-semantics/foo.trlc:11:3: trlc check warning: All items must be positive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
tests-system/rbt-universal-quantification-semantics/output.smtlib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
T Bar { | ||
^^^ rbt-universal-quantification-semantics/foo.trlc:3: check warning: All items must be positive | ||
Processed 1 model, 0 checks and 1 requirement file and found 1 warning | ||
T Potato { | ||
^^^^^^ rbt-universal-quantification-semantics/foo.trlc:11: check warning: All items must be positive | ||
Processed 1 model and 1 requirement file and found 2 warnings |