Skip to content
Snippets Groups Projects
Commit 95b79dab authored by dgelessus's avatar dgelessus
Browse files

Improve description for EnumerationWarning results

parent f654fd86
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
Expressions can be evaluated. Expressions can be evaluated.
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` prob ``` prob
123 123
``` ```
%% Output %% Output
123 123
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` prob ``` prob
123 + 456 123 + 456
``` ```
%% Output %% Output
579 579
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` prob ``` prob
{1, 2} \/ {5, 6} {1, 2} \/ {5, 6}
``` ```
%% Output %% Output
{1,2,5,6} {1,2,5,6}
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` prob ``` prob
1..5 1..5
``` ```
%% Output %% Output
{1,2,3,4,5} {1,2,3,4,5}
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` prob ``` prob
MAXINT MAXINT
``` ```
%% Output %% Output
3 3
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
Solution variables are displayed. Solution variables are displayed.
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` prob ``` prob
#xx.(xx : NAT1 & xx mod 3 = 0) #xx.(xx : NAT1 & xx mod 3 = 0)
``` ```
%% Output %% Output
TRUE TRUE
Solutions: Solution:
xx = 3 xx = 3
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` prob ``` prob
#xx, yy.(xx > 2 & yy < 5 & xx < yy) #xx, yy.(xx > 2 & yy < 5 & xx < yy)
``` ```
%% Output %% Output
TRUE TRUE
Solutions: Solution:
xx = 3 xx = 3
yy = 4 yy = 4
%% Cell type:markdown id: tags: %% Cell type:markdown id: tags:
Various kinds of evaluation errors are displayed. Various kinds of evaluation errors are displayed.
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` prob ``` prob
unknown unknown
``` ```
%% Output %% Output
Computation not completed: Unknown identifier "unknown" Computation not completed: Unknown identifier "unknown"
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` prob ``` prob
card({x | x > 0 & x mod 2 = 0}) card({x | x > 0 & x mod 2 = 0})
``` ```
%% Output %% Output
[2018-05-11 12:12:54,581, T+4960] "ProB Output Logger for instance 411341bd" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] VIRTUAL TIME-OUT caused by: ### Warning: enumerating x : (all_solutions) : INTEGER : 2:sup ---> 2:3 [2018-05-14 14:17:02,521, T+6108] "ProB Output Logger for instance e93f3d5" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] VIRTUAL TIME-OUT caused by: ### Warning: enumerating x : (all_solutions) : INTEGER : 2:sup ---> 2:3
[2018-05-14 14:17:02,524, T+6111] "ProB Output Logger for instance e93f3d5" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] *** exiting multiple error blocks (2 -> 0) for catch_enumeration_warning_exceptions ***
Enumeration warning occurred UNKNOWN (FALSE with enumeration warning)
[2018-05-11 12:12:54,584, T+4963] "ProB Output Logger for instance 411341bd" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] *** exiting multiple error blocks (2 -> 0) for catch_enumeration_warning_exceptions ***
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` prob ``` prob
2 mod -1 2 mod -1
``` ```
%% Output %% Output
[2018-05-14 14:17:02,617, T+6204] "ProB Output Logger for instance e93f3d5" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] ! A well-definedness error occured !
[2018-05-14 14:17:02,618, T+6205] "ProB Output Logger for instance e93f3d5" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] ! mod not defined for negative numbers: 2 mod-1
[2018-05-14 14:17:02,619, T+6206] "ProB Output Logger for instance e93f3d5" de.prob.cli.ProBInstance.readAndLog(ConsoleListener.java:48): [INFO] ! Line: 1 Column: 0 until 8
NOT-WELL-DEFINED: NOT-WELL-DEFINED:
mod not defined for negative numbers: 2 mod-1 mod not defined for negative numbers: 2 mod-1
### Line: 1, Column: 0 until 8 ### Line: 1, Column: 0 until 8
......
...@@ -126,7 +126,7 @@ public final class ProBKernel extends BaseKernel { ...@@ -126,7 +126,7 @@ public final class ProBKernel extends BaseKernel {
sb.append(result.getReason()); sb.append(result.getReason());
error = true; error = true;
} else if (aer instanceof EnumerationWarning) { } else if (aer instanceof EnumerationWarning) {
sb.append("Enumeration warning occurred"); sb.append("UNKNOWN (FALSE with enumeration warning)");
error = true; error = true;
} else if (aer instanceof EvaluationErrorResult) { } else if (aer instanceof EvaluationErrorResult) {
final EvaluationErrorResult result = (EvaluationErrorResult)aer; final EvaluationErrorResult result = (EvaluationErrorResult)aer;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment