Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Franck Pommereau
/
zinc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Franck Pommereau
2017-12-04 11:37:36 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8c6b046e9491f733ea5920ec9dbfc3fc75a470f8
8c6b046e
1 parent
21516c04
fixed states count + type in CoffeeScript
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
3 deletions
libs/js/main.coffee
libs/js/main.js
libs/js/main.js.map
zinc/compil/coffee/codegen.py
libs/js/main.coffee
View file @
8c6b046
...
...
@@ -5,7 +5,7 @@ statespace = (init, addsucc, print_states, print_succs, print_dead) ->
i
=
init
()
i
.
id
=
0
todo
=
new
sets
.
Queue
(
i
)
seen
=
new
sets
.
Set
()
seen
=
new
sets
.
Set
(
i
)
dead
=
0
while
not
todo
.
empty
()
state
=
todo
.
get
()
...
...
libs/js/main.js
View file @
8c6b046
...
...
@@ -11,7 +11,7 @@
i
=
init
();
i
.
id
=
0
;
todo
=
new
sets
.
Queue
(
i
);
seen
=
new
sets
.
Set
();
seen
=
new
sets
.
Set
(
i
);
dead
=
0
;
while
(
!
todo
.
empty
())
{
state
=
todo
.
get
();
...
...
libs/js/main.js.map
View file @
8c6b046
This diff is collapsed. Click to expand it.
zinc/compil/coffee/codegen.py
View file @
8c6b046
...
...
@@ -174,7 +174,7 @@ class CodeGenerator (ast.CodeGenerator) :
if
not
hasattr
(
node
.
CTX
,
"testvar"
)
:
node
.
CTX
.
testvar
=
node
.
NAMES
.
fresh
(
base
=
"test"
,
add
=
True
)
self
.
_marking
(
node
.
CTX
.
testvar
,
node
.
test
,
node
.
BLAME
)
self
.
fill
(
"if
%
s.ge
t
(
%
s)"
%
(
node
.
old
,
node
.
CTX
.
testvar
))
self
.
fill
(
"if
%
s.ge
q
(
%
s)"
%
(
node
.
old
,
node
.
CTX
.
testvar
))
indent
=
1
elif
node
.
sub
:
subtest
=
True
...
...
Please
register
or
login
to post a comment