OCamlPro / alt-ergo

OCamlPro public development repository for Alt-Ergo
https://alt-ergo.ocamlpro.com/
Other
126 stars 33 forks source link

long running time with low steps #1123

Closed kanigsson closed 1 week ago

kanigsson commented 2 months ago

Hello,

repr.ae.txt

On the attached reproducer, Alt-Ergo runs for a long time, despite specifying a low steps number:

$ alt-ergo repr.ae --steps-bound=200
... runs for several minutes ...

Probably some code doesn't increment the steps counter?

Halbaroth commented 2 months ago

Thanks for reporting this issue.

It seems there are at least two issues here (and maybe three?):

  1. We don't increment steps in the reasoner of the Arrays theory.
  2. The Arrays theory slows down Alt-Ergo in presence of very long terms, even if the input file doesn't involve terms of this theory, as it's the case for your example.
  3. Alt-Ergo produces huge terms for this input file.
bclement-ocp commented 1 week ago

Fixed by #1126.