Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xsmith
WebAssembly Sandbox
Commits
26bb63fb
Commit
26bb63fb
authored
Mar 12, 2020
by
Guy Watson
Browse files
Add 'nop'
parent
a648fbfd
Changes
2
Hide whitespace changes
Inline
Side-by-side
wasmlike/instructions.txt
View file @
26bb63fb
...
...
@@ -6,7 +6,7 @@ A list of instructions that need to be or are implemented in Xsmith
Control Instructions
--------------------
[ ] unreachable
[
] nop
[
*
] nop
[*] block
[*] loop
[*] if
...
...
wasmlike/wasmlike.rkt
View file @
26bb63fb
...
...
@@ -50,6 +50,7 @@
#:prop
may-be-generated
#f
]
[
LiteralInt
Expr
([
v
=
(
random
10000
)])
#:prop
choice-weight
3
]
[
Noop
Expr
([
e
:
Expr
])]
[
Binop
Expr
()
#:prop
choice-weight
30
;; default is 10
#:prop
may-be-generated
#f
]
...
...
@@ -183,6 +184,7 @@
(
λ
(
n
t
)
(
hash
'root
(
fresh-type-variable
)))]]
[
LiteralInt
[
int
(
no-child-types
)]]
[
Noop
[
int
(
λ
(
n
t
)
(
hash
'e
int
))]]
[
Binop
[(
fresh-type-variable
int
#|float|#
)
(
λ
(
n
t
)
(
hash
'l
t
...
...
@@ -327,6 +329,9 @@
(
local
,@
(
make-list
(
ast-child
'localcount
n
)
'i32
))
,@
(
render-node
(
ast-child
'root
n
))))]
[
LiteralInt
(
λ
(
n
)
(
list
'i32
.
const
(
ast-child
'v
n
)))]
[
Noop
(
λ
(
n
)
(
append
'
(
nop
)
(
render-node
(
ast-child
'e
n
))))]
[
Binop
(
λ
(
n
)
(
append
(
render-node
(
ast-child
'l
n
))
(
render-node
(
ast-child
'r
n
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment