Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wasm-watermarker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nagayama15
wasm-watermarker
Commits
9962536d
Commit
9962536d
authored
Jul 16, 2019
by
nagayama15
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the expression comparator
parent
656d164c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
OperandSwappingWatermarker.cpp
src/kyut/watermarker/OperandSwappingWatermarker.cpp
+8
-8
No files found.
src/kyut/watermarker/OperandSwappingWatermarker.cpp
View file @
9962536d
...
...
@@ -982,7 +982,7 @@ namespace wasm {
return
std
::
minmax
(
*
a
.
left
,
*
a
.
right
)
<
std
::
minmax
(
*
b
.
left
,
*
b
.
right
);
}
bool
operator
<
(
const
wasm
::
Select
&
a
,
const
wasm
::
Select
&
b
)
{
return
std
::
tie
(
a
.
condition
,
*
a
.
ifTrue
,
*
a
.
ifFalse
)
<
std
::
tie
(
b
.
condition
,
*
b
.
ifTrue
,
*
b
.
ifFalse
);
return
std
::
tie
(
*
a
.
condition
,
*
a
.
ifTrue
,
*
a
.
ifFalse
)
<
std
::
tie
(
*
b
.
condition
,
*
b
.
ifTrue
,
*
b
.
ifFalse
);
}
bool
operator
<
(
const
wasm
::
Drop
&
a
,
const
wasm
::
Drop
&
b
)
{
return
*
a
.
value
<
*
b
.
value
;
...
...
@@ -1000,19 +1000,19 @@ namespace wasm {
return
false
;
}
bool
operator
<
(
const
wasm
::
AtomicRMW
&
a
,
const
wasm
::
AtomicRMW
&
b
)
{
return
std
::
tie
(
a
.
op
,
a
.
bytes
,
a
.
offset
,
*
a
.
ptr
,
*
a
.
value
)
<
std
::
tie
(
b
.
op
,
b
.
bytes
,
b
.
offset
,
*
b
.
ptr
,
*
b
.
value
);
return
std
::
tie
(
a
.
op
,
a
.
bytes
,
a
.
offset
.
addr
,
*
a
.
ptr
,
*
a
.
value
)
<
std
::
tie
(
b
.
op
,
b
.
bytes
,
b
.
offset
.
addr
,
*
b
.
ptr
,
*
b
.
value
);
}
bool
operator
<
(
const
wasm
::
AtomicCmpxchg
&
a
,
const
wasm
::
AtomicCmpxchg
&
b
)
{
return
std
::
tie
(
a
.
bytes
,
a
.
offset
,
*
a
.
ptr
,
*
a
.
expected
,
*
a
.
replacement
)
<
std
::
tie
(
b
.
bytes
,
b
.
offset
,
*
b
.
ptr
,
*
b
.
expected
,
*
b
.
replacement
);
return
std
::
tie
(
a
.
bytes
,
a
.
offset
.
addr
,
*
a
.
ptr
,
*
a
.
expected
,
*
a
.
replacement
)
<
std
::
tie
(
b
.
bytes
,
b
.
offset
.
addr
,
*
b
.
ptr
,
*
b
.
expected
,
*
b
.
replacement
);
}
bool
operator
<
(
const
wasm
::
AtomicWait
&
a
,
const
wasm
::
AtomicWait
&
b
)
{
return
std
::
tie
(
a
.
offset
,
*
a
.
ptr
,
*
a
.
expected
,
*
a
.
timeout
,
a
.
expectedType
)
<
std
::
tie
(
b
.
offset
,
*
b
.
ptr
,
*
b
.
expected
,
*
b
.
timeout
,
b
.
expectedType
);
return
std
::
tie
(
a
.
offset
.
addr
,
*
a
.
ptr
,
*
a
.
expected
,
*
a
.
timeout
,
a
.
expectedType
)
<
std
::
tie
(
b
.
offset
.
addr
,
*
b
.
ptr
,
*
b
.
expected
,
*
b
.
timeout
,
b
.
expectedType
);
}
bool
operator
<
(
const
wasm
::
AtomicNotify
&
a
,
const
wasm
::
AtomicNotify
&
b
)
{
return
std
::
tie
(
a
.
offset
,
*
a
.
ptr
,
*
a
.
notifyCount
)
<
std
::
tie
(
b
.
offset
,
*
b
.
ptr
,
*
b
.
notifyCount
);
return
std
::
tie
(
a
.
offset
.
addr
,
*
a
.
ptr
,
*
a
.
notifyCount
)
<
std
::
tie
(
b
.
offset
.
addr
,
*
b
.
ptr
,
*
b
.
notifyCount
);
}
bool
operator
<
(
const
wasm
::
SIMDExtract
&
a
,
const
wasm
::
SIMDExtract
&
b
)
{
return
std
::
tie
(
a
.
op
,
*
a
.
vec
,
a
.
index
)
<
std
::
tie
(
b
.
op
,
*
b
.
vec
,
b
.
index
);
...
...
Write
Preview
Markdown
is supported
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