1.23
2.0
main
test-branch
|
Last change
on this file since afc300c was 73090b5, checked in by Matthew B. Dwyer <matthewbdwyer@…>, 10 years ago |
|
This commit implements a set of finer distinctions among error states in order to suppress redundant error reports. Errors of a different kind are never equivalent. Currently command line option "-errorStateEquiv" can control the equivalence based on the source location of the error (LOC), the call stacks of the processes (CALLSTACK), and the full trace (FULL). The default is "LOC" which is the prior default.
git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@2805 fb995dde-84ed-4084-dfe6-e5aef3e2452c
|
-
Property mode
set to
100644
|
|
File size:
199 bytes
|
| Line | |
|---|
| 1 | #include <assert.h>
|
|---|
| 2 |
|
|---|
| 3 | #ifdef _CIVL
|
|---|
| 4 |
|
|---|
| 5 | #include <civlc.cvh>
|
|---|
| 6 |
|
|---|
| 7 | $input int x;
|
|---|
| 8 |
|
|---|
| 9 | #else
|
|---|
| 10 |
|
|---|
| 11 | int x = 1;
|
|---|
| 12 |
|
|---|
| 13 | #endif
|
|---|
| 14 |
|
|---|
| 15 | int main() {
|
|---|
| 16 | int y = 1;
|
|---|
| 17 |
|
|---|
| 18 | if (x > 0) {
|
|---|
| 19 | y = 0;
|
|---|
| 20 | }
|
|---|
| 21 |
|
|---|
| 22 | if (x > 0) {
|
|---|
| 23 | assert (y != 0);
|
|---|
| 24 | }
|
|---|
| 25 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.