Skip to content

Commit 46b3d4e

Browse files
committed
viv-backend: refactor is_zxor
Signed-off-by: vibhatsu <[email protected]>
1 parent e91ba10 commit 46b3d4e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

capa/features/extractors/viv/helpers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,4 @@ def is_xor(insn: envi.Opcode):
3636

3737

3838
def is_zxor(insn: envi.Opcode):
39-
if is_xor(insn):
40-
return insn.opers[0] == insn.opers[1]
41-
42-
return False
39+
return is_xor(insn) and insn.opers[0] == insn.opers[1]

0 commit comments

Comments
 (0)