Spinroot

A forum for Spin users

You are not logged in.

#1 2013-04-14 11:31:26

HJW
Member
Registered: 2012-03-28
Posts: 9

Strange error (inline text too long)

Hi,

I have problems during syntax check.

Output of iSpin is:

"inline text is too long near "connect2.pml" child process ended abnormaly"

What is the maximum length of an inline command? I put most of my models functionality in big in inlines that calls other inlines sinceit is used in several places in the model. Didn't know that would cause a problem

Last edited by HJW (2013-04-14 17:25:18)

Offline

#2 2013-04-14 22:39:53

spinroot
forum
Registered: 2010-11-18
Posts: 695
Website

Re: Strange error (inline text too long)

The maximum length of an inline is 64K (65536 characters).

Offline

#3 2013-04-15 10:20:14

HJW
Member
Registered: 2012-03-28
Posts: 9

Re: Strange error (inline text too long)

Thanks you for the answer.

Is the 64K limit for each single inline, for all inlines in the code, for all inline calls by a process or all calls by all processes?

While I have some rather long inlines, I doubt they exceed that limit (I'll check ith though).
One of them is a recursive depth first search though. I tried to limit the depth of the recursion in praxis, in theory it can go quite deep.

Offline

#4 2013-04-15 15:58:36

spinroot
forum
Registered: 2010-11-18
Posts: 695
Website

Re: Strange error (inline text too long)

the limit is per inline definition

Offline

#5 2013-04-15 16:53:56

HJW
Member
Registered: 2012-03-28
Posts: 9

Re: Strange error (inline text too long)

In that case it must be the inline recursively calling itself since the largest definition is only about 1500 characters. Thanks. I'll see if I can find a way around that.

Offline

Board footer

Powered by FluxBB