Type error has occured : Translation capacity exceeded

后端 未结 1 1462
粉色の甜心
粉色の甜心 2021-01-22 13:33

When I run my example i have the following type error :

Translation capacity exceeded.
In this scope, universe contains 21 atoms
and relations of arity 8 cannot          


        
相关标签:
1条回答
  • 2021-01-22 14:09

    You can find the explanation in Section 5 in this paper

    http://people.csail.mit.edu/aleks/website/papers/icse11-squander.pdf

    Here is a quote from it

    To represent a relation r of arity k, Kodkod allocates a matrix of size nk, where n is the number of atoms in the universe. For performance reasons, Kodkod uses a single sequential array indexed by a Java integer, and so the size of the matrix is limited to the largest integer values in Java (Integer.MAX_VALUE).

    In your case, 218 (37822859361) is greater than Integer.MAX_VALUE (231-1 = 2147483647).

    0 讨论(0)
提交回复
热议问题