Skip to content

Commit 44158b1

Browse files
Fix: move has_unplaced_ghost_updates declaration before init() to fix unbound value error
Agent-Logs-Url: https://github.com/goblint/analyzer/sessions/b5589f8b-23a0-4723-bb0b-29d01fe34c54 Co-authored-by: michael-schwarz <13812333+michael-schwarz@users.noreply.github.com>
1 parent 2d6fe5b commit 44158b1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/witness/yamlWitness.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,10 @@ class ghostUpdateVisitor (updates : (string, Cil.instr list) Hashtbl.t) (placed
467467
ChangeDoChildrenPost (s, instrument)
468468
end
469469

470+
(** Set to [true] if any ghost update from [init] could not be placed in the CIL AST.
471+
Checked by [Validator.validate] to prevent a successful validation result. *)
472+
let has_unplaced_ghost_updates = ref false
473+
470474
let init () =
471475
match GobConfig.get_string "witness.yaml.validate" with
472476
| "" -> ()
@@ -627,10 +631,6 @@ struct
627631
include Lattice.Chain (ChainParams)
628632
end
629633

630-
(** Set to [true] if any ghost update from [init] could not be placed in the CIL AST.
631-
Checked by [Validator.validate] to prevent a successful validation result. *)
632-
let has_unplaced_ghost_updates = ref false
633-
634634
(* TODO: record *)
635635
let cnt_confirmed = ref 0
636636
let cnt_unconfirmed = ref 0

0 commit comments

Comments
 (0)