Skip to content

Commit 46aeea4

Browse files
committed
Some minor fixes
1 parent 77b43ea commit 46aeea4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/goto-symex/symex_assign.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void goto_symext::symex_assign(
3838
if(statement==ID_function_call)
3939
{
4040
DATA_INVARIANT(
41-
!side_effect_expr.operands().empty()
41+
!side_effect_expr.operands().empty(),
4242
"function call stamement expects non-empty list of side effects");
4343

4444
if(side_effect_expr.op0().id()!=ID_symbol)

src/goto-symex/symex_start_thread.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ void goto_symext::symex_start_thread(statet &state)
1818
if(state.guard.is_false())
1919
return;
2020

21-
// we don't allow spawning threads out of atomic sections
22-
// this would require amendments to ordering constraints
23-
INVARIANT(state.atomic_section_id==0,
24-
"start_thread in atomic section detected");
21+
INVARIANT(state.atomic_section_id == 0,
22+
"spawning threads out of atomic sections is not allowed; "
23+
"this would require amendments to ordering constraints");
2524

2625
// record this
2726
target.spawn(state.guard.as_expr(), state.source);

0 commit comments

Comments
 (0)