6#include <yaml-cpp/yaml.h>
25 fill_columns(
const std::string &src_path, std::vector<waypoint> &waypoints);
32 const std::string &source_path,
33 const std::string &original_path,
34 const std::vector<invariant> &invariants);
41 const std::string &source_path,
42 const std::string &original_path,
43 const std::vector<waypoint> &waypoints);
46 static invariant parse_invariant(
const YAML::Node &node);
49 static waypoint parse_waypoint(
const YAML::Node &node);
50 static waypoint::Type waypoint_type_from_string(
const std::string &s);
Definition witnesses.h:80
Type
Definition witnesses.h:83
Action
Definition waypoint.h:24
Type
Definition waypoint.h:14
Definition yaml_parser.h:9
static bool get_target_waypoint(const std::string &path, waypoint &out)
Returns true and sets out to the target waypoint if the witness has one; otherwise returns false.
Definition yaml_parser.cpp:220
static std::string build_injected_source(const std::string &source_path, const std::string &original_path, const std::vector< invariant > &invariants)
Definition yaml_parser.cpp:397
static std::string build_violation_witness_source(const std::string &source_path, const std::string &original_path, const std::vector< waypoint > &waypoints)
Definition yaml_parser.cpp:341
static void fill_columns(const std::string &src_path, std::vector< waypoint > &waypoints)
Fills in missing column numbers for waypoints that need it by scanning the source file at src_path.
Definition yaml_parser.cpp:229
static std::vector< invariant > read_invariants(const std::string &path)
Definition yaml_parser.cpp:7
static std::vector< waypoint > & get_waypoints(const std::string &path)
Returns a mutable reference into the shared parse cache for path.
Definition yaml_parser.cpp:154