-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
[BUG] Function displayed in the counterexample with multiple indices #962
Comments
It gets even more interesting than that:
|
Nice. The important thing is that all copies agree on the value for the key |
@shonfeder, do you like to have a look at this one? It should be something in https://github.com/informalsystems/apalache/blob/unstable/tla-bmcmt/src/main/scala/at/forsyte/apalache/tla/bmcmt/SymbStateDecoder.scala |
I've identified the root cause and am working on a fix. |
See #962 for a report on my understanding of the underlying problem, and my (blocking) question on how we want to approach it. |
Here is a MWE ------------------- MODULE Dup -----------------------
VARIABLES
\* @type: Int -> Int;
someFun
Init == someFun = [x \in {0, 0} |-> 1]
Next == UNCHANGED someFun
Inv == 0 \notin DOMAIN someFun
============================================================ Run with
Producing the counterexample: ---------------------------- MODULE counterexample ----------------------------
EXTENDS Dup
(* Constant initialization state *)
ConstInit == TRUE
(* Initial state *)
State0 == someFun = 0 :> 1 @@ 0 :> 1
(* The following formula holds true in the last state and violates the invariant *)
InvariantViolation == 0 \in DOMAIN someFun
================================================================================
(* Created by Apalache on Thu Nov 25 14:50:13 EST 2021 *)
(* https://github.com/informalsystems/apalache *) |
Description
In the produced TLA+ counterexample a function is displayed with twice the same index
Input specification
See https://github.com/informalsystems/modelator/blob/c9b54c1c4cd753af833ae4a16b626e4d3a5cab94/modelator/tests/integration/tla/IBC_ics02.tla
The command line parameters used to run the tool
Log files
Here are the last few lines of the produced counterexample that contain the erroneous output:
System information
The text was updated successfully, but these errors were encountered: