Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Inline trivial function.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 6 Mar 2021 13:02:02 +0000 (14:02 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 7 Mar 2021 14:37:07 +0000 (15:37 +0100)
src/mc/checker/SimcallObserver.cpp
src/mc/checker/SimcallObserver.hpp

index 93b92ab..78a62d9 100644 (file)
@@ -46,11 +46,6 @@ int RandomSimcall::get_max_consider() const
   return max_ - min_ + 1;
 }
 
-int RandomSimcall::get_value() const
-{
-  return next_value_;
-}
-
 std::string MutexUnlockSimcall::to_string(int time_considered) const
 {
   return SimcallObserver::to_string(time_considered) + "Mutex UNLOCK";
index a611f16..0c6abc7 100644 (file)
@@ -63,7 +63,7 @@ public:
   void prepare(int times_considered) override;
   std::string to_string(int times_considered) const override;
   std::string dot_label() const override;
-  int get_value() const;
+  int get_value() const { return next_value_; }
 };
 
 class MutexUnlockSimcall : public SimcallObserver {