Skip to content
GitLab
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
d710410e
Commit
d710410e
authored
Jun 11, 2020
by
Guy Watson
Browse files
Change probabilities back to roughly what they were before testing and bugs
parent
c49b6ea4
Changes
1
Hide whitespace changes
Inline
Side-by-side
wasmlike/wasmlike.rkt
View file @
d710410e
...
...
@@ -77,11 +77,9 @@
#:prop
choice-weight
20
#:prop
may-be-generated
#f
]
[
Testop
Expr
([
expr
:
Expr
])
;;Testops take one operand but return a boolean (i32)
#:prop
choice-weight
50
#:prop
may-be-generated
#f
]
[
Addition
Binop
()
#:prop
choice-weight
50
]
[
Addition
Binop
()]
[
Subtraction
Binop
()]
[
Multiplication
Binop
()]
[
Division
Binop
([
sign
=
(
choose-random-sign
)])]
;;These signs only matter for ints, not floats
...
...
@@ -147,14 +145,14 @@
[
alignment
=
(
random
4
)])
#:prop
choice-weight
3
]
[
LocalGet
Expr
([
index
])
#:prop
choice-weight
0
]
;;todo Change these over to the xsmith reference system once random reference increases are implemented by William
#:prop
choice-weight
5
]
;;todo Change these over to the xsmith reference system once random reference increases are implemented by William
[
LocalSet
Expr
([
val
:
Expr
]
[
index
]
[
expr
:
Expr
])
#:prop
choice-weight
0
]
#:prop
choice-weight
5
]
[
LocalTee
Expr
([
val
:
Expr
]
[
index
])
#:prop
choice-weight
0
]
#:prop
choice-weight
5
]
[
GlobalDeclaration
#f
([
name
]
[
type
]
[
initialvalue
:
Literal
])
...
...
@@ -187,7 +185,7 @@
[
ForLoop
Expr
([
initial
:
Literal
]
[
loopvar
:
GlobalSet
]
[
loopbody
:
Expr
])
#:prop
choice-weight
3
0
]
#:prop
choice-weight
1
0
]
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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