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

Invalid_argument exception: index out of bounds #151

Open
senniraf opened this issue Jun 23, 2023 · 3 comments
Open

Invalid_argument exception: index out of bounds #151

senniraf opened this issue Jun 23, 2023 · 3 comments
Labels

Comments

@senniraf
Copy link

Hi,

I tried to synthesize parameters for the property and PTA in this .zip archive. I get the following error:

 ***************************************************************
 *  IMITATOR 3.2 "Cheese Blueberries"                          *
 *                                                             *
 *                                       Étienne André et al.  *
 *                                                2009 - 2021  *
 *                          LSV, ENS de Cachan & CNRS, France  *
 *                   LIPN, Université Paris 13 & CNRS, France  *
 *  Université de Lorraine, CNRS, Inria, LORIA, Nancy, France  *
 *                                            www.imitator.fr  *
 *                                                             *
 *                                         Build: ?????/?????  *
 *                        Build date: 2021-11-10 12:40:59 UTC  *
 ***************************************************************
 This model is an L/U-PTA:
 - lower-bound parameters {rho_a_geq_2}
 - upper-bound parameters {rho_d_leq_2, rho_c_leq_1}
 Model: `/relaxer/res/models/Double-Path-3-relax.imi`
 Algorithm: safety synthesis
 Merging technique of [AFS13] enabled.
 Starting running algorithm AG…
 
 Computing post^1 from 1 state.
 *** ERROR: `Invalid_argument` exception: `index out of bounds`
 Please (politely) insult the developers.
 *** ERROR: IMITATOR aborted (after 0.002 second)

I'm using the official docker image from docker hub (imitator/imitator:latest). This is also my first time using imitator, so there might be something wrong with the PTA or property file (although I got no syntax errors).

@DylanMarinho
Copy link
Collaborator

Dear @senniraf ,

In the property file, you are using the clock x. However, a clock cannot be used in a discrete expression (cf. user manual): only discrete and location predicates are allowed.

I suggest you to modify the model to create a location unreach reachable from A when x>7 and perform your analysis on this new location: if unreach is reachable, A was reachable with x>7.

I enclose you the two files with this modification (but I encourage you to check that this is what you were expecting):
Double-Path-3-relax.imiprop.txt
Double-Path-3-relax.imi.txt

@senniraf
Copy link
Author

Thanks for the support. It works now!

Best,
Raffael

@etienneandre
Copy link
Collaborator

Thank you Raffael for your interest, and our apologies for not answering earlier! (and many thanks Dylan for answering)
I confirm Dylan's diagnosis and solution.

However, I reopen the issue as the "please insult the developers" error message means there is a bug here, that we need to fix.
Thanks a lot for raising this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants