[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlaplus] Why does adding a new step collapse my model to a single state?



Hello,

I tried to reproduce your problem. Copying the module from your GitHub site and commenting out the second call of HandleRequest, TLC indeed generates 383 distinct states. With the second call, it generates 1419 distinct states (still for 3 data centers). I haven't tried to understand what the specification is about, but I'm afraid I cannot help you any further at this point.

Regards,
Stephan


> On 29 Mar 2019, at 02:11, Xavier Shay <hello@xxxxxxxxxxxxxx> wrote:
> 
> Hello!
> I'm a brand new TLA+ user. I've written a spec for a simple payments system: https://github.com/xaviershay/tla-sandbox/blob/master/payments.tla
> 
> This works! Hooray! It has 383 distinct states for 3 DCs. I'm now trying to modify it to allow for the case where a server "double handles" a request from a client by simply repeating the HandleRequest macro: 
> https://github.com/xaviershay/tla-sandbox/pull/1/files
> 
> The model now passes ... but it only has a single distinct state, so I'm pretty sure it's wrong. I can't come up with any hypotheses as to why this would happen. I used a similar approach in the Sync process and it worked fine there. (I get the same result using either to optionally run the repeated handler).
> 
> Any suggestions for fixes or further debugging welcome.
> 
> Apologies for not providing a more minimal case, but I don't yet know which aspects of my spec are relevant :(
> 
> Thanks,
> Xavier
> 
> -- 
> You received this message because you are subscribed to the Google Groups "tlaplus" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
> To post to this group, send email to tlaplus@xxxxxxxxxxxxxxxx.
> Visit this group at https://groups.google.com/group/tlaplus.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to tlaplus@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/tlaplus.
For more options, visit https://groups.google.com/d/optout.