promise: add is_compatible()
[model-checker.git] / promise.h
index 8ff8c3e319bd5b2f4a4b758be51c8adb7a5dbeb6..8eec87bd4dbf7f32ec3ecdb95b4bf611f5559bf9 100644 (file)
--- a/promise.h
+++ b/promise.h
@@ -41,6 +41,7 @@ class Promise {
        void set_write(const ModelAction *act) { write = act; }
        const ModelAction * get_write() { return write; }
        int get_num_available_threads() { return num_available_threads; }
+       bool is_compatible(const ModelAction *write) const;
 
        void print() const;