Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fuzzing] wasm2c integration #2772
[fuzzing] wasm2c integration #2772
Changes from 127 commits
225e383
9bbef19
cb0637f
8d47a6c
3d849ef
9302a8c
e430048
eab9225
ab7b31c
acdf1b5
7f0feab
d5c6347
5d0fe4c
c863d12
f68b197
33f7c29
b89815f
594fb6b
09ccac9
ddde0f0
091213f
225c852
93eb265
b1e0da7
d006b8b
d243cf6
0659b54
cd42dc7
30ab1f0
91dd33c
2008363
66c39c5
bfee084
e1266c5
1b6683b
cc14e69
96afbad
0247207
d8e3a69
70f6124
06ffa35
afb1990
94192aa
3e2af17
48ce612
7bb358b
7d6e545
abf1709
d0d9005
22a1934
85b9a39
33212c9
fd71421
1d2cf75
89f829a
d5f6fde
a6b64a1
f56102a
45ce956
72e7597
5d07e34
d947ed4
65e31e3
2da1a85
e09ca94
2a82b4b
cc0d759
3235411
16f0264
6379f47
26e0fb3
9c8f498
6051c47
764a328
dce9c46
09abf7b
de84768
b24b2e2
f2aad14
6c529d6
c603bff
5040e0a
788948b
7f51bfe
5970c7e
56e2e76
0538fd0
73006a4
28a4193
59f1e0c
e1e45b0
575ec16
712b614
12ef3f2
d6d995b
b2bfa3c
95ee6c8
e30a42c
1d00799
aa0ab6d
cc36b4b
4eefb67
63b7477
ca11613
ad60120
f89f0dc
1db10c8
8d02b2c
7bc435c
524bd32
f711379
84ee869
2ff63f9
a780987
67d25de
b2d7b32
561dd26
d55a7b1
b1558e6
99f7c0f
8ac8042
ba396ee
983e037
16ca12b
34b82e0
001ecc9
66c98ee
69d93a0
f417436
f204459
7e47ee9
c32f148
4c076d4
7909e6e
a7b643c
f7d1510
c8df1a4
119e399
32ede3a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems simpler to me to keep track of the used vms by making each element of
results
a tuple of a vm and its fixed output) rather than inserting holes intoresults
. I think a list comprehension for this would be nice.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed to use tuples, but am not quite sure where you wanted a list comprehension?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why generating this wrapper makes sense as part of wasm-opt. It seems like a separate function to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be a new tool I suppose, but we have 3 wrapper generators now (spec, js, wasm2c), and it's convenient to run them from wasm-opt so you can emit the wrapper as you generate the fuzz code, in a single invocation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk, it seems similar to a lot of other auxiliary functionality in wasm-opt like the fuzzing stuff or the JS wrappers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see, there is a precedent here. In that case that fine for now.
But maybe as a followup this should be a separate tool? So you would
wasm-opt
and thenwasm-generate-fuzz-wrapper -type=wasm2c
or something less clunky than that.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, maybe that's better. Another option would be to make all 3 of those be passes.