Skip to content

Commit 65bf78e

Browse files
Fix ghost global initinfo construction
1 parent 604ea39 commit 65bf78e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/witness/yamlWitness.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ let init () =
458458
match parse_type variable.type_, parse_init variable.initial.value with
459459
| Some typ, Some init ->
460460
let v = makeGlobalVar variable.name typ in
461-
let g = GVar (v, {init = SingleInit init}, locUnknown) in
461+
let g = GVar (v, {init = Some (SingleInit init)}, locUnknown) in
462462
file.globals <- g :: file.globals
463463
| _ ->
464464
M.error_noloc ~category:Witness "failed to instrument ghost variable declaration: %s" variable.name

0 commit comments

Comments
 (0)