@@ -644,61 +644,6 @@ struct
644644 {content}
645645end
646646
647- module GhostVariable =
648- struct
649- type t = {
650- variable : string ;
651- scope : string ;
652- type_ : string ;
653- initial : string ;
654- }
655- [@@ deriving eq , ord , hash ]
656-
657- let entry_type = " ghost_variable"
658-
659- let to_yaml' {variable; scope; type_; initial} =
660- [
661- (" variable" , `String variable);
662- (" scope" , `String scope);
663- (" type" , `String type_);
664- (" initial" , `String initial);
665- ]
666-
667- let of_yaml y =
668- let open GobYaml in
669- let + variable = y |> find " variable" >> = to_string
670- and + scope = y |> find " scope" >> = to_string
671- and + type_ = y |> find " type" >> = to_string
672- and + initial = y |> find " initial" >> = to_string in
673- {variable; scope; type_; initial}
674- end
675-
676- module GhostUpdate =
677- struct
678- type t = {
679- variable : string ;
680- expression : string ;
681- location : Location .t ;
682- }
683- [@@ deriving eq , ord , hash ]
684-
685- let entry_type = " ghost_update"
686-
687- let to_yaml' {variable; expression; location} =
688- [
689- (" variable" , `String variable);
690- (" expression" , `String expression);
691- (" location" , Location. to_yaml location);
692- ]
693-
694- let of_yaml y =
695- let open GobYaml in
696- let + variable = y |> find " variable" >> = to_string
697- and + expression = y |> find " expression" >> = to_string
698- and + location = y |> find " location" >> = Location. of_yaml in
699- {variable; expression; location}
700- end
701-
702647module GhostInstrumentation =
703648struct
704649
@@ -831,8 +776,6 @@ struct
831776 | PreconditionLoopInvariantCertificate of PreconditionLoopInvariantCertificate .t
832777 | InvariantSet of InvariantSet .t
833778 | ViolationSequence of ViolationSequence .t
834- | GhostVariable of GhostVariable .t
835- | GhostUpdate of GhostUpdate .t
836779 | GhostInstrumentation of GhostInstrumentation .t
837780 [@@ deriving eq , ord , hash ]
838781
@@ -845,8 +788,6 @@ struct
845788 | PreconditionLoopInvariantCertificate _ -> PreconditionLoopInvariantCertificate. entry_type
846789 | InvariantSet _ -> InvariantSet. entry_type
847790 | ViolationSequence _ -> ViolationSequence. entry_type
848- | GhostVariable _ -> GhostVariable. entry_type
849- | GhostUpdate _ -> GhostUpdate. entry_type
850791 | GhostInstrumentation _ -> GhostInstrumentation. entry_type
851792
852793 let to_yaml' = function
@@ -858,8 +799,6 @@ struct
858799 | PreconditionLoopInvariantCertificate x -> PreconditionLoopInvariantCertificate. to_yaml' x
859800 | InvariantSet x -> InvariantSet. to_yaml' x
860801 | ViolationSequence x -> ViolationSequence. to_yaml' x
861- | GhostVariable x -> GhostVariable. to_yaml' x
862- | GhostUpdate x -> GhostUpdate. to_yaml' x
863802 | GhostInstrumentation x -> GhostInstrumentation. to_yaml' x
864803
865804 let of_yaml y =
@@ -889,12 +828,6 @@ struct
889828 else if entry_type = ViolationSequence. entry_type then
890829 let + x = y |> ViolationSequence. of_yaml in
891830 ViolationSequence x
892- else if entry_type = GhostVariable. entry_type then
893- let + x = y |> GhostVariable. of_yaml in
894- GhostVariable x
895- else if entry_type = GhostUpdate. entry_type then
896- let + x = y |> GhostUpdate. of_yaml in
897- GhostUpdate x
898831 else if entry_type = GhostInstrumentation. entry_type then
899832 let + x = y |> GhostInstrumentation. of_yaml in
900833 GhostInstrumentation x
0 commit comments