@@ -110,8 +110,8 @@ void dfcc_contract_clauses_codegent::encode_assignable_target_group(
110
110
new_vars = cleaner.clean (condition, dest, language_mode);
111
111
112
112
// Jump target if condition is false
113
- auto goto_instruction = dest.add (
114
- goto_programt::make_incomplete_goto (not_exprt{ condition} , source_location));
113
+ auto goto_instruction = dest.add (goto_programt::make_incomplete_goto (
114
+ boolean_negate ( condition) , source_location));
115
115
116
116
for (const auto &target : group.targets ())
117
117
encode_assignable_target (language_mode, target, dest);
@@ -199,8 +199,8 @@ void dfcc_contract_clauses_codegent::encode_freeable_target_group(
199
199
new_vars = cleaner.clean (condition, dest, language_mode);
200
200
201
201
// Jump target if condition is false
202
- auto goto_instruction = dest.add (
203
- goto_programt::make_incomplete_goto (not_exprt{ condition} , source_location));
202
+ auto goto_instruction = dest.add (goto_programt::make_incomplete_goto (
203
+ boolean_negate ( condition) , source_location));
204
204
205
205
for (const auto &target : group.targets ())
206
206
encode_freeable_target (language_mode, target, dest);
0 commit comments