![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A utility to convert state space dump created by patched tlaplus TLC in TLA toolbox to graphviz dot format.
Clone github model
git clone https://github.com/jarjuk/tla2dot
and change the working directory
cd tla2dot
The tool uses Ruby 2, and to have the required Gems installed run
bundle install
The example below uses TLA model in files DieHard.tla
, and
DieHard.cfg
under directory model
.
Set up an environment variable CP
to poinnt the patched
tla2tools.jar
found in directory java
export CP=$(pwd)/java/org.lamport.tlatools-1.0.1-SNAPSHOT.jar
Run TLA model, and generate a dump file
../examples/DieHard-patched.dump
using the command
(cd model; java -cp $CP tlc2.TLC -dump ../examples/DieHard-patched.dump DieHard)
The patched TLC command adds fingerprint and transition information to the dump file. For example, to show the difference of non-patched dump file, and the patched dump file use the command
diff examples/DieHard-orig.dump examples/DieHard-patched.dump
and observe diff output starting
1c1
< State 1:
---
> State 1/1721042995228635026:
5c5
< State 2:
---
> State 2/8981770525750446274:
9c9,11
< State 3:
---
> Transition 1721042995228635026 --> 8981770525750446274
>
> State 3/-7007095103426876375:
13c15,27
< State 4:
---
> Transition 1721042995228635026 --> -7007095103426876375
>
> Transition 1721042995228635026 --> 1721042995228635026
>
> Transition 1721042995228635026 --> 1721042995228635026
To create a dot file for a patched state-dump in
examples/customer1-patched.dump
, run
bin/tla2dot.rb graph examples/DieHard-patched.dump >tmp/dump.dot
and to convert it to a svg picture, run
dot -T svg tmp/dump.dot >tmp/dump.svg
Command graph
accepts optionally a list of variables to show in
state nodes. For example, to show model variables big,small
in the
DieHard example, use the command
bin/tla2dot.rb graph examples/DieHard-patched.dump big,small >tmp/dump.dot
State identity may be included a pseudo variable ID
:
bin/tla2dot.rb graph examples/DieHard-patched.dump ID,big,small >tmp/dump.dot
and all variables can be included in the graph using value TRUE
for
the variable list
bin/tla2dot.rb graph examples/DieHard-patched.dump TRUE >tmp/dump.dot
Add following the lines to Gemfile
source 'https://rubygems.org'
gem 'tla2dot'
and run
bundle install
To validate that installation was successful, and to get help on using
tla2dot.rb
run
bundle exec tla2dot.rb help
See RELEASES
MIT
FAQs
Unknown package
We found that tla2dot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.