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

The fork button misses some traces #48

Closed
jbrubru opened this issue Sep 23, 2020 · 1 comment
Closed

The fork button misses some traces #48

jbrubru opened this issue Sep 23, 2020 · 1 comment
Assignees
Labels
bug Something isn't working iteration
Milestone

Comments

@jbrubru
Copy link

jbrubru commented Sep 23, 2020

The scenario that is described by the second run in the model below ("delete 1 file among 2 files and then empty the trash") cannot be found using fork from an empty run (or from the first run in the model).
The bug is in Electrum 2.1 rc2 and Electrum 2.1 rc1 but not in Electrum 2.0.
//***************************
// Electrum model of a simple file system
var sig File {}
var sig Trash in File {}
pred delete [f: File] {
f not in Trash
Trash' = Trash + f
File' = File
}
pred restore [f: File] {
f in Trash
Trash' = Trash - f
File' = File
}
pred empty {
some Trash
no Trash'
File' = File - Trash
}
pred do_nothing {
File' = File
Trash' = Trash
}
pred restoreEnabled [f:File] {
f in Trash
}
fact Behaviour {
no Trash
always {
(some f: File | delete[f] or restore[f]) or empty or do_nothing
}
}
simplerun: run {some disj f1,f2:File | delete[f1]}
scenario: run {some disj f1,f2:File | delete[f1] and after empty}
//***************************

@nmacedo
Copy link
Member

nmacedo commented Sep 23, 2020

Confirmed.

@nmacedo nmacedo self-assigned this Sep 23, 2020
@nmacedo nmacedo added bug Something isn't working iteration labels Sep 23, 2020
@nmacedo nmacedo added this to the Electrum 2.1 milestone Sep 23, 2020
@nmacedo nmacedo closed this as completed Sep 24, 2020
@nmacedo nmacedo mentioned this issue Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working iteration
Projects
None yet
Development

No branches or pull requests

2 participants