chriseth
55a719a79c
Merge pull request #1462 from ethereum/fix-incorrect-assertion
...
codegen: assertion did not assert non-nullness
2016-12-01 15:14:31 +01:00
chriseth
1367aef83b
Merge pull request #1461 from ethereum/reference-not-pointer
...
test: replace a pointer argument by a reference
2016-12-01 15:13:32 +01:00
chriseth
267ac70889
Merge pull request #1460 from ethereum/unused-total
...
libevmasm: remove an unused variable `total`
2016-12-01 15:12:28 +01:00
chriseth
2f9a91a034
Merge pull request #1463 from ethereum/duplicate-assignment
...
codegen: this commit removes one of duplicate assignments
2016-12-01 15:11:35 +01:00
chriseth
9db14ce673
Merge pull request #1458 from federicobond/r-literals
...
Use more R string literals in tests
2016-12-01 15:03:27 +01:00
Alex Beregszaszi
0cd6394735
Merge pull request #1455 from ethereum/doc-number-literal-format
...
docs: describe the form of number literals
2016-12-01 11:53:30 +00:00
chriseth
83a0ad73ce
Merge pull request #1313 from ethereum/lll-strict-parser
...
LLL: stricter parser
2016-12-01 12:41:43 +01:00
chriseth
5d1d81d270
Merge pull request #1454 from ethereum/end-of-comment
...
parser: recognize an end of comment of the form `**/`
2016-12-01 12:40:52 +01:00
Yoichi Hirai
422140f603
test: more precise expectation about the error for assigning into storage in inline assembly
2016-12-01 12:27:27 +01:00
Yoichi Hirai
1e791f30aa
codegen: this commit removes one of duplicate assignments
2016-12-01 12:03:25 +01:00
Yoichi Hirai
e29047b24d
codegen: assertion did not assert non-nullness
...
This commit strengthens an assertion so that it makes sure that a pointer is not null.
Moreover, `isLocalVariable(variable)` is now positively asserted, following the error message.
2016-12-01 11:58:34 +01:00
Yoichi Hirai
dd0bd57d67
test: change retrieveFunctionBySignature to take a constant reference rather than a pointer
...
The function `retrieveFunctionBySignature` expected the argument to be a non-null pointer.
This commit makes this assumption more explicit.
2016-12-01 11:53:06 +01:00
Yoichi Hirai
77bad18648
libevmasm: remove an unused variable total
2016-12-01 11:31:58 +01:00
Yoichi Hirai
3e8a017d42
docs: describe the form of number literals
...
This is a part of #1390
2016-12-01 10:59:42 +01:00
Alex Beregszaszi
67f274f66c
Merge pull request #1459 from federicobond/fix-typo
...
Fix typos (existant -> existent)
2016-12-01 09:43:45 +00:00
Federico Bond
29e304d3bc
Fix typos (existant -> existent)
2016-12-01 01:29:30 -03:00
Federico Bond
6ce41b566d
Use more R string literals in tests
2016-12-01 00:50:15 -03:00
Alex Beregszaszi
610027cd26
Test that contracts separated by comments are compiled
2016-11-30 23:54:02 +00:00
Yoichi Hirai
eaab712944
parser: recognize an end of comment of the form **/
at the end of a multi-line doc comment
...
This fixes #1433
2016-11-30 17:28:07 +01:00
Alex Beregszaszi
4cecedcb49
LLL: update tests with the strict parser
2016-11-30 16:17:58 +00:00
Alex Beregszaszi
b1add657b7
LLL: throw exceptions on invalid symbols
2016-11-30 16:17:50 +00:00
Alex Beregszaszi
99b803cbcb
LLL: () requires at least one parameter
2016-11-30 16:17:50 +00:00
Alex Beregszaszi
a8696c6d8e
LLL: do not accept '0x' as 0
2016-11-30 16:17:50 +00:00
Alex Beregszaszi
ac357d1225
Merge pull request #1442 from ethereum/lll-testing
...
LLL: introduce testing framework
2016-11-30 15:46:20 +00:00
Alex Beregszaszi
53d4433484
LLL: simplify error handling in parseLLL
2016-11-30 15:06:13 +00:00
chriseth
6ae6c70cde
Merge pull request #1449 from ethereum/doc-grammar
...
Include the grammar verbatim in the documentation
2016-11-30 16:01:37 +01:00
chriseth
e43a8ebc28
Merge pull request #1345 from ethereum/optimiser-rules
...
More optimiser rules
2016-11-30 14:26:01 +01:00
Alex Beregszaszi
2962426d53
Include the grammar verbatim in the documentation
2016-11-30 12:20:13 +00:00
Alex Beregszaszi
9a6a5f219b
Fix sub-0 optimiser test
2016-11-30 11:51:00 +00:00
Yoichi Hirai
df4b405f9c
Add more optimization rules
2016-11-30 11:16:43 +00:00
chriseth
4ff89dda1d
Update SolidityOptimizer.cpp
2016-11-30 11:16:43 +00:00
Alex Beregszaszi
8d0b80f944
Add test for SUB with 0 optimisation
2016-11-30 11:16:43 +00:00
Alex Beregszaszi
3fdef92911
Replace XOR with self with 0
2016-11-30 11:16:43 +00:00
Alex Beregszaszi
b8bba66220
Replace XOR/ISZERO with EQ
2016-11-30 11:16:43 +00:00
Alex Beregszaszi
25160bfc26
Add optimiser rule for SUB with 0
2016-11-30 11:16:43 +00:00
Alex Beregszaszi
d82eac3fed
LLL: parseLLL to be less greedy catching exceptions
2016-11-29 22:04:51 +00:00
Alex Beregszaszi
25c5dd48de
Rename testSolidityAgainstCpp* to testContractAgainstCpp*
2016-11-29 21:54:28 +00:00
Alex Beregszaszi
0f1d0304ee
LLLExecutionFramework doesn't support contractName/libraryAddresses
2016-11-29 21:54:28 +00:00
Alex Beregszaszi
94cae63390
Add callFallback to ExectionFramework
2016-11-29 21:54:28 +00:00
Alex Beregszaszi
85ebe4e5c4
LLL: check for return value in LLL smoke test
2016-11-29 21:54:27 +00:00
Alex Beregszaszi
e26466b729
LLL: add end-to-end tests
2016-11-29 21:54:27 +00:00
Alex Beregszaszi
d83dd59178
Move ExecutionFramework to the dev::test namespace
2016-11-29 21:54:27 +00:00
Alex Beregszaszi
a226db7338
Split out Solidity-specific part of ExecutionFramework
2016-11-29 21:54:27 +00:00
Alex Beregszaszi
4af30cc518
Add test/liblll to cmake
2016-11-29 21:54:27 +00:00
Alex Beregszaszi
69eb0ab5e3
LLL: add parser tests
2016-11-29 21:42:22 +00:00
Alex Beregszaszi
3ec0bb5bfa
LLL: parseLLL to return empty string on failure
2016-11-29 21:42:22 +00:00
chriseth
f70f8cf06a
Merge pull request #1445 from ethereum/doc-testing
...
Explain how to run soltest
2016-11-29 18:15:49 +01:00
chriseth
071cbc4a9d
Merge pull request #1446 from ethereum/utf8-validate
...
Improve UTF8 validate
2016-11-29 15:14:10 +01:00
Alex Beregszaszi
a9e92cb686
Rename dev::validate to dev::validateUTF8
2016-11-28 22:28:21 +00:00
Alex Beregszaszi
c01426efec
Make position optional in dev::validate
2016-11-28 22:27:55 +00:00