Comments (2)
{:index 1 :type :invoke, :value [[:append x 8] [:r x []]]}
{:index 2 :type :ok, :value [[:append x 8] [:r x [8]]]}
{:index 3 :type :invoke, :value [[:r x nil]]}
{:index 4 :type :ok, :value [[:r x [1 8]]]}
First of all: provided history is not in EDN format, but file contains an extension .end
. Colon is missed for x
.
Correct history in EDN format is:
{:index 1 :type :invoke, :value [[:append :x 8] [:r :x []]]}
{:index 2 :type :ok, :value [[:append :x 8] [:r :x [8]]]}
{:index 3 :type :invoke, :value [[:r :x nil]]}
{:index 4 :type :ok, :value [[:r :x [1 8]]]}
elle has the same behavior with provided history:
elle_cli.cli=> (require '[elle.list-append :as a])
nil
elle_cli.cli=> (def h [{:index 1 :type :invoke, :value [[:append :x 8] [:r :x []]]} {:index 2 :type :ok, :value [[:append :x 8] [:r :x [8]]]} {:index 3 :type :invoke, :value [[:r :x nil]]} {:index 4 :type :ok, :value [[:r :x [1 8]]]}])
#'elle_cli.cli/h
elle_cli.cli=> (pprint (a/check {:consistency-models [:serializable], :cycle-search-timeout 5000, :directory "out"} h))
{:valid? false,
:anomaly-types (:incompatible-order),
:anomalies {:incompatible-order ({:key :x, :values [[8] [1 8]]})},
:not #{:read-atomic :read-committed},
:also-not
#{:ROLA
:causal-cerone
:consistent-view
:cursor-stability
:forward-consistent-view
:monotonic-atomic-view
:monotonic-snapshot-read
:monotonic-view
:parallel-snapshot-isolation
:prefix
:repeatable-read
:serializable
:snapshot-isolation
:strict-serializable
:strong-session-serializable
:strong-session-snapshot-isolation
:strong-snapshot-isolation
:update-serializable}}
nil
elle_cli.cli=>
So I would address an issue to elle's author or try to look to elle's source code for explanation.
In general, plotting works fine with list-append
history:
sergeyb@pony:~/sources/elle-cli$ java -jar ./target/elle-cli-0.1.3-standalone.jar -m elle-list-append -v -p svg histories/elle/paper-example.json -d .
{"valid?":false,
"anomaly-types":["G-single"],
"anomalies":
{"G-single":
[{"cycle":
[{"index":7,
"type":"ok",
"value":
[["append", 250, 10], ["r", 253, [1, 3, 4]],
["r", 255, [2, 3, 4, 5]], ["append", 256, 3]]},
{"index":3,
"type":"ok",
"value":[["append", 255, 8], ["r", 253, [1, 3, 4]]]},
{"index":5,
"type":"ok",
"value":
[["append", 256, 4], ["r", 255, [2, 3, 4, 5, 8]],
["r", 256, [1, 2, 4]], ["r", 253, [1, 3, 4]]]},
{"index":7,
"type":"ok",
"value":
[["append", 250, 10], ["r", 253, [1, 3, 4]],
["r", 255, [2, 3, 4, 5]], ["append", 256, 3]]}],
"steps":
[{"type":"rw",
"key":255,
"value":5,
"value'":8,
"a-mop-index":2,
"b-mop-index":0},
{"type":"wr",
"key":255,
"value":8,
"a-mop-index":0,
"b-mop-index":1},
{"type":"ww",
"key":256,
"value":4,
"value'":3,
"a-mop-index":0,
"b-mop-index":3}],
"type":"G-single"}]},
"not":["consistent-view"],
"also-not":
["forward-consistent-view", "serializable", "snapshot-isolation",
"strict-serializable", "strong-session-serializable",
"strong-session-snapshot-isolation", "strong-snapshot-isolation",
"update-serializable"]}
sergeyb@pony:~/sources/elle-cli$ stat -t G-single/0.svg
G-single/0.svg 4094 8 81b4 1001 1001 10305 4348219 1 0 0 1652469479 1652469515 1652469515 0 4096
from elle-cli.
Alright, if Elle underneath behaves the same, then I agree this is not an Elle-cli
issue.
from elle-cli.
Related Issues (20)
- Failed to process history for checker elle-list-append
- Print unknown status as a string not Clojure keyword
- Fix publishing workflow
- Trouble in processing some Elle list-append histories HOT 3
- Add checker of comments history
- Add checker of sequential history
- Describe operation generators for models in a README
- Remove checker name in options with models name
- Pass multiple consistency models and anomalies in command line to elle's checkers
- Remove model jepsen-set OR jepsen-set-full HOT 2
- Remove model knossos-register
- Fix jepsen-long-fork model
- Fix jepsen-set model
- `elle-rw-registers` always returns true HOT 2
- Default to headless mode HOT 5
- Exit with non-zero exit code if any history fails verification HOT 3
- not caught exception on running Elle with list-append history HOT 1
- suggestion: a gen command HOT 5
- Native binaries with GraalVM HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elle-cli.