fixes for concurrency regressions
git-svn-id: svn+ssh://svn.cprover.org/srv/svn/cbmc/trunk@2690 6afb6bc1-c8e4-404c-8f48-9ae832c5b171
This commit is contained in:
parent
f165f4aee3
commit
ee05f16ecc
|
@ -4,9 +4,9 @@ int main()
|
|||
{
|
||||
__CPROVER_ASYNC_1: global=2;
|
||||
|
||||
__CPROVER_ATOMIC_BEGIN();
|
||||
__CPROVER_atomic_begin();
|
||||
global=1;
|
||||
// no interleaving here
|
||||
assert(global==1);
|
||||
__CPROVER_ATOMIC_END();
|
||||
__CPROVER_atomic_end();
|
||||
}
|
||||
|
|
|
@ -6,9 +6,9 @@ int main()
|
|||
|
||||
__CPROVER_ASYNC_1: assert(global==1);
|
||||
|
||||
__CPROVER_ATOMIC_BEGIN();
|
||||
__CPROVER_atomic_begin();
|
||||
global=2;
|
||||
// no interleaving here
|
||||
global=1;
|
||||
__CPROVER_ATOMIC_END();
|
||||
__CPROVER_atomic_end();
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
CORE
|
||||
main.c
|
||||
|
||||
--error-label ERROR
|
||||
^EXIT=0$
|
||||
^SIGNAL=0$
|
||||
^VERIFICATION SUCCESSFUL$
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
CORE
|
||||
main.c
|
||||
|
||||
--error-label ERROR
|
||||
^EXIT=10$
|
||||
^SIGNAL=0$
|
||||
^VERIFICATION FAILED$
|
||||
|
|
Loading…
Reference in New Issue