2021-07-12 10:05:26 +00:00
|
|
|
// something else
|
|
|
|
/*-- another unrelated comment --*/
|
|
|
|
/// @use-src 3: "abc.sol" , 2: "def.sol"
|
|
|
|
object "a" {
|
|
|
|
code {
|
|
|
|
/// @src 3:0:2
|
|
|
|
datacopy(0, dataoffset("sub"), datasize("sub"))
|
|
|
|
return(0,
|
|
|
|
/** @src 2:5:6 */
|
|
|
|
datasize("sub")
|
|
|
|
)
|
|
|
|
}
|
2021-08-31 15:22:13 +00:00
|
|
|
/// @use-src 3: "abc.sol" , 2: "def.sol"
|
2021-07-12 10:05:26 +00:00
|
|
|
object "sub" {
|
|
|
|
code {
|
|
|
|
/// @src 2:70:72
|
|
|
|
sstore(0, dataoffset("sub"))
|
|
|
|
/**
|
|
|
|
* @something else
|
|
|
|
* @src 3:2:5
|
|
|
|
*/
|
|
|
|
mstore(
|
|
|
|
0,
|
|
|
|
datasize("data1")
|
|
|
|
/// @src 3:90:2
|
|
|
|
)
|
|
|
|
}
|
|
|
|
data "data1" "Hello, World!"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
|
|
|
// Assembly:
|
|
|
|
// /* "abc.sol":0:2 */
|
|
|
|
// codecopy(0x00, dataOffset(sub_0), dataSize(sub_0))
|
|
|
|
// /* "def.sol":5:6 */
|
|
|
|
// dataSize(sub_0)
|
|
|
|
// /* "abc.sol":0:2 */
|
|
|
|
// 0x00
|
|
|
|
// return
|
|
|
|
// stop
|
|
|
|
//
|
|
|
|
// sub_0: assembly {
|
|
|
|
// /* "def.sol":70:72 */
|
|
|
|
// 0x00
|
|
|
|
// dup1
|
|
|
|
// sstore
|
|
|
|
// /* "abc.sol":2:5 */
|
|
|
|
// mstore(0x00, 0x0d)
|
|
|
|
// stop
|
|
|
|
// data_acaf3289d7b601cbd114fb36c4d29c85bbfd5e133f14cb355c3fd8d99367964f 48656c6c6f2c20576f726c6421
|
|
|
|
// }
|
2023-04-26 11:03:17 +00:00
|
|
|
// Bytecode: 6008600b5f3960085ff3fe5f8055600d5f52fe
|
|
|
|
// Opcodes: PUSH1 0x8 PUSH1 0xB PUSH0 CODECOPY PUSH1 0x8 PUSH0 RETURN INVALID PUSH0 DUP1 SSTORE PUSH1 0xD PUSH0 MSTORE INVALID
|
2021-07-12 10:05:26 +00:00
|
|
|
// SourceMappings: 0:2::-:0;;;;5:1;0:2;
|