forked from bmw-software-engineering/trlc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds tracing for conditional expressions
- Loading branch information
christophkloeffel
committed
Oct 16, 2023
1 parent
da14749
commit 5b0f823
Showing
22 changed files
with
83 additions
and
36 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package Foo | ||
|
||
type T { | ||
x Integer | ||
y Integer | ||
b Boolean | ||
} | ||
|
||
checks T { | ||
(if x then x elsif y > x then y else y) <= x, "potato type" | ||
} |
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 @@ | ||
(if x then x elsif y > x then y else y) <= x, "potato type" | ||
^ rbt-conditional-expression-types/foo.rsl:10: error: expected expression of type Builtin_Boolean, got Builtin_Integer instead | ||
Processed 1 model(s), 0 check(s) and 1 requirement file(s) and found 1 error(s) |
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-conditional-expression-types/foo.rsl:10:8: 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(if x then x elsif y > x then y else y) <= x, "potato type" | ||
^ rbt-conditional-expression-types/foo.rsl:10: error: expected expression of type Builtin_Boolean, got Builtin_Integer instead | ||
Processed 1 model(s), 0 check(s) and 1 requirement file(s) and found 1 error(s) |
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 @@ | ||
(if x then x elsif y > x then y else y) <= x, "potato type" | ||
^ rbt-conditional-expression-types/foo.rsl:10: error: expected expression of type Builtin_Boolean, got Builtin_Integer instead | ||
Processed 1 model(s), 0 check(s) and 1 requirement file(s) and found 1 error(s) |
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,15 @@ | ||
package Foo | ||
|
||
type T { | ||
x Integer | ||
y Integer | ||
z Integer | ||
b Boolean | ||
} | ||
|
||
checks T { | ||
(if b then b else x > 5), "kitten" | ||
(if y > x then x elsif x > y then x else y) < x, "foobar evaluation if" | ||
(if x > y then x elsif y > x then y else z) <= x, "foobar evaluation elsif" | ||
(if x > y then x elsif y == x then y else z) >= x, "potato else" | ||
} |
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,8 @@ | ||
package Foo | ||
|
||
T test_01 { | ||
x = 5 | ||
y = 10 | ||
z = 1 | ||
b = false | ||
} |
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 @@ | ||
T test_01 { | ||
^^^^^^^ rbt-conditional-expression/foo.trlc:3: check error: kitten | ||
T test_01 { | ||
^^^^^^^ rbt-conditional-expression/foo.trlc:3: check error: foobar evaluation if | ||
T test_01 { | ||
^^^^^^^ rbt-conditional-expression/foo.trlc:3: check error: foobar evaluation elsif | ||
T test_01 { | ||
^^^^^^^ rbt-conditional-expression/foo.trlc:3: check error: potato else | ||
Processed 1 model(s), 0 check(s) and 1 requirement file(s) and found 4 error(s) |
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,4 @@ | ||
rbt-conditional-expression/foo.trlc:3:3: trlc check error: kitten | ||
rbt-conditional-expression/foo.trlc:3:3: trlc check error: foobar evaluation if | ||
rbt-conditional-expression/foo.trlc:3:3: trlc check error: foobar evaluation elsif | ||
rbt-conditional-expression/foo.trlc:3:3: trlc check error: potato else |
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 @@ | ||
T test_01 { | ||
^^^^^^^ rbt-conditional-expression/foo.trlc:3: check error: kitten | ||
T test_01 { | ||
^^^^^^^ rbt-conditional-expression/foo.trlc:3: check error: foobar evaluation if | ||
T test_01 { | ||
^^^^^^^ rbt-conditional-expression/foo.trlc:3: check error: foobar evaluation elsif | ||
T test_01 { | ||
^^^^^^^ rbt-conditional-expression/foo.trlc:3: check error: potato else | ||
Processed 1 model(s), 0 check(s) and 1 requirement file(s) and found 4 error(s) |
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 @@ | ||
T test_01 { | ||
^^^^^^^ rbt-conditional-expression/foo.trlc:3: check error: kitten | ||
T test_01 { | ||
^^^^^^^ rbt-conditional-expression/foo.trlc:3: check error: foobar evaluation if | ||
T test_01 { | ||
^^^^^^^ rbt-conditional-expression/foo.trlc:3: check error: foobar evaluation elsif | ||
T test_01 { | ||
^^^^^^^ rbt-conditional-expression/foo.trlc:3: check error: potato else | ||
Processed 1 model(s), 0 check(s) and 1 requirement file(s) and found 4 error(s) |
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,2 @@ | ||
LRM.Conditional_Expression_Evaluation | ||
LRM.Conditional_Expression_Else |
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