diff options
| author | Ralf Jung <post@ralfj.de> | 2025-09-18 19:40:26 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-18 19:40:26 +0000 |
| commit | 045e5e3586375db8464c5cf88e4ea89fbcefe60f (patch) | |
| tree | 90eb6a0a5fd40d7c4d5391b9d695a1dc60d2bd97 /src/tools/miri/genmc-sys/cpp/include/MiriInterface.hpp | |
| parent | 19b9676a7f88216363f8a0812a71c60d1f072b29 (diff) | |
| parent | 00bfe9ce6ed3d21b39a40309974dda5c19dc6fb0 (diff) | |
| download | rust-045e5e3586375db8464c5cf88e4ea89fbcefe60f.tar.gz rust-045e5e3586375db8464c5cf88e4ea89fbcefe60f.zip | |
Merge pull request #4583 from Patrick-6/miri-genmc-estimation
Add GenMC estimation mode.
Diffstat (limited to 'src/tools/miri/genmc-sys/cpp/include/MiriInterface.hpp')
| -rw-r--r-- | src/tools/miri/genmc-sys/cpp/include/MiriInterface.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tools/miri/genmc-sys/cpp/include/MiriInterface.hpp b/src/tools/miri/genmc-sys/cpp/include/MiriInterface.hpp index 662eb0e173c..444c9375319 100644 --- a/src/tools/miri/genmc-sys/cpp/include/MiriInterface.hpp +++ b/src/tools/miri/genmc-sys/cpp/include/MiriInterface.hpp @@ -31,6 +31,7 @@ enum class LogLevel : std::uint8_t; struct GenmcScalar; struct SchedulingResult; +struct EstimationResult; struct LoadResult; struct StoreResult; struct ReadModifyWriteResult; @@ -66,7 +67,7 @@ struct MiriGenmcShim : private GenMCDriver { /// `logLevel`, causing a data race. The safest way to use these functions is to call /// `set_log_level_raw` once, and only then start creating handles. There should not be any /// other (safe) way to create a `MiriGenmcShim`. - /* unsafe */ static auto create_handle(const GenmcParams& params) + /* unsafe */ static auto create_handle(const GenmcParams& params, bool estimation_mode) -> std::unique_ptr<MiriGenmcShim>; virtual ~MiriGenmcShim() {} @@ -183,6 +184,11 @@ struct MiriGenmcShim : private GenMCDriver { return nullptr; } + /**** Printing and estimation mode functionality. ****/ + + /// Get the results of a run in estimation mode. + auto get_estimation_results() const -> EstimationResult; + private: /** Increment the event index in the given thread by 1 and return the new event. */ [[nodiscard]] inline auto inc_pos(ThreadId tid) -> Event { |
