CapacityExceededException when reading a very large instance using A4SolutionReader

做~自己de王妃 提交于 2019-12-02 05:44:51

问题


I made a program which allows to build instances conforming to a certain model and allowing to save those in an xml file following the Alloy standards.

To get the A4Solution objects corresponding to those instances, I then read those xml files using the A4SolutionReader.read method. This worked great, until I stumbled upon a rather big instances, which, when read, causes the following Exception:

Caused by: kodkod.engine.CapacityExceededException: Arity too large (4) for a universe of size 880

I would understand that the analyser would complain when performing an analysis with a huge scope, but here the instance is already provided, so what justifies this exception? and is there another way to get an A4Solution object from my xml file without having this issue ?

来源:https://stackoverflow.com/questions/35703242/capacityexceededexception-when-reading-a-very-large-instance-using-a4solutionrea

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!