Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Include INVALID instruction #4055

Merged
merged 2 commits into from
Apr 24, 2017
Merged

Include INVALID instruction #4055

merged 2 commits into from
Apr 24, 2017

Conversation

axic
Copy link
Member

@axic axic commented Apr 23, 2017

Fixes #4053.

@codecov-io
Copy link

codecov-io commented Apr 23, 2017

Codecov Report

Merging #4055 into develop will decrease coverage by 0.08%.
The diff coverage is 100%.

@@             Coverage Diff             @@
##           develop    #4055      +/-   ##
===========================================
- Coverage    65.72%   65.64%   -0.09%     
===========================================
  Files          307      307              
  Lines        22733    22733              
===========================================
- Hits         14941    14922      -19     
- Misses        7792     7811      +19
Impacted Files Coverage Δ
libevm/VM.cpp 94.31% <ø> (ø) ⬆️
libevmcore/Instruction.h 100% <ø> (ø) ⬆️
libevmcore/Instruction.cpp 38.46% <ø> (ø) ⬆️
libevm/VMOpt.cpp 87.23% <100%> (ø) ⬆️
test/tools/fuzzTesting/fuzzHelper.cpp 30.88% <0%> (-6.38%) ⬇️
libp2p/Host.cpp 72.36% <0%> (-1.06%) ⬇️
libp2p/Common.cpp 52% <0%> (-0.8%) ⬇️

Copy link
Member

@chfast chfast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, but I would like @gcolvin to check it as well.

@chfast chfast requested a review from gcolvin April 23, 2017 18:09
{ Instruction::SUICIDE, { "SUICIDE", 0, 1, 0, true, Tier::Special } },

// these are generated by the interpreter - should never be in user code
{ Instruction::PUSHC, { "PUSHC", 2, 0 , 1, false, Tier::VeryLow } },
{ Instruction::JUMPC, { "JUMPC", 0, 1, 0, true, Tier::Mid } },
{ Instruction::JUMPCI, { "JUMPCI", 0, 1, 0, true, Tier::High } },
{ Instruction::STOP, { "BAD", 0, 0, 0, true, Tier::Zero } },
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to have been broken all the time. (STOP vs BAD)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, names should match.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh - misread, but yes, broken all along.

@gcolvin gcolvin merged commit a66128a into develop Apr 24, 2017
@axic axic deleted the invalid-instruction branch April 24, 2017 17:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants