I have an alloy model in avlTree.als. This model uses integer arithmetic, in particular the plus and minus functions. This model has some statements in it, and I can use them just fine using the graphical interface of the alloy analyzer.
I have another alloy model in test.als. This model imports avlTree (using "open avlTree") and then has some relationship statements in the avlTree model. But when I try to run these statements in the Alloy Analyzer GUI, I get the following message:
A syntax error occurred:
Unable to find the name plus.
And the syntax error link leads me to my avlTree model. It seems that using the integer math model when using avlTree works fine when I run this model myself, but it breaks when I try to import it into another model. Is there a fix for this?
I am running Alloy 4.2.
Sethq source share