Skip to content

Commit

Permalink
added assign_desc ghost block check
Browse files Browse the repository at this point in the history
  • Loading branch information
EkanshdeepGupta committed May 7, 2024
1 parent c09ed90 commit ba8fe2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/backend/checker.ml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
open Smt_solver
open Ast
open Base
open Ast
(* open Ast *)
(* open Frontend *)
open SmtLibAST
open Util
Expand Down
4 changes: 2 additions & 2 deletions lib/frontend/rewrites/rewrites.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1472,8 +1472,8 @@ module AtomicityAnalysis = struct

if is_assign_desc_lhs_ghost then
Rewriter.return stmt
(* else if ghost_block then
Error.error stmt.stmt_loc "Cannot assign to non-ghost variables in a ghost block" *)
else if ghost_block then
Error.error stmt.stmt_loc "Cannot assign to non-ghost variables in a ghost block"
else if List.length assign_desc.assign_lhs > 1 then
let atomicity_state = take_non_atomic_step ~loc atomicity_state in
let* _ = Rewriter.set_user_state atomicity_state in
Expand Down

0 comments on commit ba8fe2a

Please sign in to comment.