Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shen, Siran
wacc
Commits
1c79fba8
Commit
1c79fba8
authored
Mar 17, 2021
by
Tom Zhao
Browse files
xz1919: hotfix: resolved an issue where divZero.wacc in runtimeErr will not pass
parent
9fe58573
Changes
1
Show whitespace changes
Inline
Side-by-side
src/utils/Utils.java
View file @
1c79fba8
...
...
@@ -110,8 +110,8 @@ public class Utils {
Binop
.
MUL
,
((
x
,
y
)
->
arithmeticWithCheck
(
x
,
y
,
Math:
:
multiplyExact
)),
Binop
.
BITAND
,
((
x
,
y
)
->
y
==
0
?
null
:
new
IntegerNode
(
x
&
y
,
AssemblyArchitecture
.
ARMv6
)),
Binop
.
BITOR
,
((
x
,
y
)
->
y
==
0
?
null
:
new
IntegerNode
(
x
|
y
,
AssemblyArchitecture
.
ARMv6
)),
Binop
.
DIV
,
((
x
,
y
)
->
new
IntegerNode
(
x
/
y
,
AssemblyArchitecture
.
ARMv6
)),
Binop
.
MOD
,
((
x
,
y
)
->
new
IntegerNode
(
x
%
y
,
AssemblyArchitecture
.
ARMv6
))
Binop
.
DIV
,
((
x
,
y
)
->
y
==
0
?
null
:
new
IntegerNode
(
x
/
y
,
AssemblyArchitecture
.
ARMv6
)),
Binop
.
MOD
,
((
x
,
y
)
->
y
==
0
?
null
:
new
IntegerNode
(
x
%
y
,
AssemblyArchitecture
.
ARMv6
))
);
public
static
final
Map
<
Binop
,
BiFunction
<
Integer
,
Integer
,
Boolean
>>
cmpMap
=
Map
.
of
(
...
...
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