// File: /workspace/github_c_makefile_star2_O2/wjmelements[P]evm/tst/evm.c
// Function: test_shl
void test_shl() {
    evmInit();

    address_t from = AddressFromHex42("0x4a6f6B9fF1fc974096f9063a45Fd12bD5B928AD1");
    uint64_t gas = 0x13540;
    val_t value;
    data_t input;

    // 5f60031b595260035f1b5952613377601d1b5952601d6133771b5952595ff3
    op_t program[] = {
        PUSH0, PUSH1, 3, SHL, MSIZE, MSTORE,
        PUSH1, 3, PUSH0, SHL, MSIZE, MSTORE,
        PUSH2, 0x33, 0x77, PUSH1, 29, SHL, MSIZE, MSTORE,
        PUSH1, 29, PUSH2, 0x33, 0x77, SHL, MSIZE, MSTORE,
        MSIZE, PUSH0, RETURN
    };

    input.content = program;
    input.size = sizeof(program);

    result_t result = txCreate(from, gas, value, input);

    op_t expected[] = {
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x6e, 0xe0, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    };
    assert(result.returnData.size == sizeof(expected));
    assert(memcmp(result.returnData.content, expected, sizeof(expected)) == 0);
    assert(result.gasRemaining == 0);

    evmFinalize();
}

// Assembly:
pushq %rbx
subq $0x130, %rsp            # imm = 0x130
xorl %eax, %eax
callq 0xaa8d
leaq 0xb8(%rsp), %rbx
movq %rbx, %rdi
callq 0x332c
movups 0x10990(%rip), %xmm0    # 0x1411f
leaq 0x110(%rsp), %r8
movups %xmm0, 0xf(%r8)
movaps 0x1096d(%rip), %xmm0    # 0x14110
movaps %xmm0, (%r8)
movl 0x10(%rbx), %eax
movl %eax, 0x10(%rsp)
movups (%rbx), %xmm0
movups %xmm0, (%rsp)
leaq 0xd0(%rsp), %rbx
leaq 0xac(%rsp), %rdx
pushq $0x1f
popq %rcx
movl $0x13540, %esi          # imm = 0x13540
movq %rbx, %rdi
callq 0xb68f
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x90(%rsp)
movaps %xmm0, 0x80(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movb $0x3, 0x5f(%rsp)
movw $0x6e06, 0x7a(%rsp)     # imm = 0x6E06
movb $-0x20, 0x7c(%rsp)
cmpq $0x80, (%rbx)
jne 0x3856
movq 0xd8(%rsp), %rdi
leaq 0x20(%rsp), %rsi
movl $0x80, %edx
callq 0x30d0
testl %eax, %eax
jne 0x3875
cmpq $0x0, 0x100(%rsp)
jne 0x3894
xorl %eax, %eax
callq 0xada8
addq $0x130, %rsp            # imm = 0x130
popq %rbx
retq
leaq 0xdacc(%rip), %rdi      # 0x11329
leaq 0xd7ec(%rip), %rsi      # 0x11050
leaq 0xdae9(%rip), %rcx      # 0x11354
movl $0x9a, %edx
callq 0x3040
leaq 0xdae8(%rip), %rdi      # 0x11364
leaq 0xd7cd(%rip), %rsi      # 0x11050
leaq 0xdaca(%rip), %rcx      # 0x11354
movl $0x9b, %edx
callq 0x3040
leaq 0xd87a(%rip), %rdi      # 0x11115
leaq 0xd7ae(%rip), %rsi      # 0x11050
leaq 0xdaab(%rip), %rcx      # 0x11354
movl $0x9c, %edx
callq 0x3040