Skip to content

Commit

Permalink
Merge pull request #211 from goblint/sync-side
Browse files Browse the repository at this point in the history
Remove `sideg` list from `sync` return value
  • Loading branch information
sim642 authored May 10, 2021
2 parents cc5fbe9 + 431e22b commit 4d68fc3
Show file tree
Hide file tree
Showing 9 changed files with 143 additions and 144 deletions.
6 changes: 3 additions & 3 deletions src/analyses/base.ml
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ struct
* State functions
**************************************************************************)

let sync' reason ctx: D.t * glob_diff =
let sync' reason ctx: D.t =
let multi =
match reason with
| `Init
Expand All @@ -328,12 +328,12 @@ struct
ThreadFlag.is_multi ctx.ask
in
if M.tracing then M.tracel "sync" "sync multi=%B earlyglobs=%B\n" multi !GU.earlyglobs;
if !GU.earlyglobs || multi then Priv.sync ctx.ask ctx.global ctx.local reason else (ctx.local,[])
if !GU.earlyglobs || multi then Priv.sync ctx.ask ctx.global ctx.sideg ctx.local reason else ctx.local

let sync ctx reason = sync' (reason :> [`Normal | `Join | `Return | `Init | `Thread]) ctx

let publish_all ctx reason =
List.iter (fun ((x,d)) -> ctx.sideg x d) (snd (sync' reason ctx))
ignore (sync' reason ctx)

let get_var (a: Q.ask) (gs: glob_fun) (st: store) (x: varinfo): value =
if (!GU.earlyglobs || ThreadFlag.is_multi a) && is_global a x then
Expand Down
Loading

0 comments on commit 4d68fc3

Please sign in to comment.