Alloy integer comparison semantics using “Forbid Overflow: Yes”

孤者浪人 提交于 2019-12-08 03:56:27

You already provided all the right answers in your question, so I can only quickly reiterate them

  • the expected behavior (no instance) is the "correct" behavior for that model;
  • version 4.2 has some known bugs regarding handling overflows, so that's the reason it finds an instance (those should be fixed in the latest version, hence correct behavior for this model);
  • under the "wraparound" semantics of integers (overflow detection turned off), there is still no instance, exactly for the reason you described (-3 being treated as -1);
  • the evaluator still has some issues (even in the latest version), so sometimes it will just use the wraparound semantics.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!