Side effects propagator.

This commit is contained in:
chriseth
2019-08-15 16:30:05 +02:00
parent c047803b80
commit a2a06d0318
5 changed files with 74 additions and 7 deletions
+10
View File
@@ -73,6 +73,16 @@ struct SideEffects
*this = *this + _other;
return *this;
}
bool operator==(SideEffects const& _other) const
{
return
movable == _other.movable &&
sideEffectFree == _other.sideEffectFree &&
sideEffectFreeIfNoMSize == _other.sideEffectFreeIfNoMSize &&
invalidatesStorage == _other.invalidatesStorage &&
invalidatesMemory == _other.invalidatesMemory;
}
};
}