diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-09 10:25:44 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-30 19:16:43 +0800 |
commit | 3fdef92911ea1824f7a84ce556fec48e23a314ad (patch) | |
tree | 6880483612eb15e15393434aa93ed1ce38be5232 | |
parent | b8bba6622013a6c0969392a4096a3a7384b8cf62 (diff) | |
download | dexon-solidity-3fdef92911ea1824f7a84ce556fec48e23a314ad.tar dexon-solidity-3fdef92911ea1824f7a84ce556fec48e23a314ad.tar.gz dexon-solidity-3fdef92911ea1824f7a84ce556fec48e23a314ad.tar.bz2 dexon-solidity-3fdef92911ea1824f7a84ce556fec48e23a314ad.tar.lz dexon-solidity-3fdef92911ea1824f7a84ce556fec48e23a314ad.tar.xz dexon-solidity-3fdef92911ea1824f7a84ce556fec48e23a314ad.tar.zst dexon-solidity-3fdef92911ea1824f7a84ce556fec48e23a314ad.zip |
Replace XOR with self with 0
-rw-r--r-- | libevmasm/ExpressionClasses.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libevmasm/ExpressionClasses.cpp b/libevmasm/ExpressionClasses.cpp index 29fb6dbc..bb71be2e 100644 --- a/libevmasm/ExpressionClasses.cpp +++ b/libevmasm/ExpressionClasses.cpp @@ -262,6 +262,7 @@ Rules::Rules() // operations involving an expression and itself {{Instruction::AND, {X, X}}, [=]{ return X; }}, {{Instruction::OR, {X, X}}, [=]{ return X; }}, + {{Instruction::XOR, {X, X}}, [=]{ return u256(0); }}, {{Instruction::SUB, {X, X}}, [=]{ return u256(0); }}, {{Instruction::EQ, {X, X}}, [=]{ return u256(1); }}, {{Instruction::LT, {X, X}}, [=]{ return u256(0); }}, |