Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack overflow error in transitiveDeps #49

Open
mattdf opened this issue Jan 25, 2022 · 0 comments
Open

Stack overflow error in transitiveDeps #49

mattdf opened this issue Jan 25, 2022 · 0 comments

Comments

@mattdf
Copy link

mattdf commented Jan 25, 2022

In the latest version of Alloy, attempting to use metafacility via the following code:

sig A {
   x: Int,
   y: Int,
   z: Int
}

pred eq[a1, a2 : A] { all f:A$.fields | a1.(f.value)=a2.(f.value) }

pred show {
   eq[A, A]
}

run show

Cause a stack overflow error in Pardinus:

java.lang.StackOverflowError
	at java.util.HashMap.putVal(HashMap.java:629)
	at java.util.HashMap.put(HashMap.java:612)
	at java.util.HashSet.add(HashSet.java:220)
	at java.util.AbstractCollection.addAll(AbstractCollection.java:344)
	at java.util.HashSet.<init>(HashSet.java:120)
	at kodkod.instance.PardinusBounds$SymbolicStructures.transitiveDeps(PardinusBounds.java:800)
	at kodkod.instance.PardinusBounds$SymbolicStructures.transitiveDeps(PardinusBounds.java:805)
	at kodkod.instance.PardinusBounds$SymbolicStructures.transitiveDeps(PardinusBounds.java:805)
	at kodkod.instance.PardinusBounds$SymbolicStructures.transitiveDeps(PardinusBounds.java:805)
	at kodkod.instance.PardinusBounds$SymbolicStructures.transitiveDeps(PardinusBounds.java:805)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant