// File: /workspace/github_c_makefile_star2_O3/wjmelements[P]evm/tst/evm.c
// Function: test_callEmpty
void test_callEmpty() {
    // 70a082310000000000000000000000004a6f6b9ff1fc974096f9063a45fd12bd5b928ad1
    evmInit();
    op_t callData[] = {
        0x70, 0xa0, 0x82, 0x31,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
        0x4a, 0x6f, 0x6b, 0x9f, 0xf1,
        0xfc, 0x97, 0x40, 0x96, 0xf9,
        0x06, 0x3a, 0x45, 0xfd, 0x12,
        0xbd, 0x5b, 0x92, 0x8a, 0xd1,
    };
    address_t from = AddressFromHex42("0x4a6f6B9fF1fc974096f9063a45Fd12bD5B928AD1");
    address_t to = AddressFromHex42("0x4a6f6B9fF1fc974096f9063a45Fd12bD5B928AD1");
    uint64_t gas = 21432;
    val_t value;
    value[0] = 0;
    value[1] = 0;
    value[2] = 0;
    data_t input;
    input.content = callData;
    input.size = sizeof(callData);

    result_t result = txCall(from, gas, to, value, input, NULL);
    evmFinalize();

    assert(UPPER(UPPER(result.status)) == 0);
    assert(LOWER(UPPER(result.status)) == 0);
    assert(UPPER(LOWER(result.status)) == 0);
    assert(LOWER(LOWER(result.status)) == 1);
    assert(result.returnData.size == 0);
    assert(result.gasRemaining == 0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
xorl %eax, %eax
callq 0xca4d
movaps 0x11fe9(%rip), %xmm0    # 0x183e0
movaps %xmm0, 0x70(%rsp)
movaps 0x11fcd(%rip), %xmm0    # 0x183d0
movaps %xmm0, 0x60(%rsp)
movl $0xd18a925b, 0x80(%rsp) # imm = 0xD18A925B
movq $-0x2, %r12
leaq 0x48(%rsp), %r13
leaq 0xdc4a(%rip), %r14      # 0x14070
movq 0x17bcb(%rip), %r15     # 0x1dff8
leaq 0x10ca9(%rip), %rbx     # 0x170dd
movzbl 0x4(%r12,%r14), %ecx
leal -0x30(%rcx), %ebp
cmpb $0xa, %bpl
jb 0x645b
leal -0x61(%rcx), %eax
cmpb $0x5, %al
ja 0x644f
addb $-0x57, %cl
jmp 0x6459
leal -0x41(%rcx), %eax
cmpb $0x5, %al
ja 0x649a
addb $-0x37, %cl
movl %ecx, %ebp
movzbl 0x5(%r12,%r14), %ecx
leal -0x30(%rcx), %eax
cmpb $0xa, %al
jb 0x6480
leal -0x61(%rcx), %eax
cmpb $0x5, %al
ja 0x6474
addb $-0x57, %cl
jmp 0x647e
leal -0x41(%rcx), %eax
cmpb $0x5, %al
ja 0x64ae
addb $-0x37, %cl
movl %ecx, %eax
shlb $0x4, %bpl
addb %al, %bpl
movb %bpl, (%r13)
addq $0x2, %r12
incq %r13
cmpq $0x26, %r12
jb 0x6434
jmp 0x64c1
movq (%r15), %rdi
movq %rbx, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0x30a0
movb $-0x1, %bpl
jmp 0x645b
movq (%r15), %rdi
movq %rbx, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0x30a0
movb $-0x1, %al
jmp 0x6480
movq $-0x2, %r12
leaq 0x30(%rsp), %r13
leaq 0x10c09(%rip), %rbx     # 0x170dd
movzbl 0x4(%r12,%r14), %ecx
leal -0x30(%rcx), %ebp
cmpb $0xa, %bpl
jb 0x64fb
leal -0x61(%rcx), %eax
cmpb $0x5, %al
ja 0x64ef
addb $-0x57, %cl
jmp 0x64f9
leal -0x41(%rcx), %eax
cmpb $0x5, %al
ja 0x653a
addb $-0x37, %cl
movl %ecx, %ebp
movzbl 0x5(%r12,%r14), %ecx
leal -0x30(%rcx), %eax
cmpb $0xa, %al
jb 0x6520
leal -0x61(%rcx), %eax
cmpb $0x5, %al
ja 0x6514
addb $-0x57, %cl
jmp 0x651e
leal -0x41(%rcx), %eax
cmpb $0x5, %al
ja 0x654e
addb $-0x37, %cl
movl %ecx, %eax
shlb $0x4, %bpl
addb %al, %bpl
movb %bpl, (%r13)
addq $0x2, %r12
incq %r13
cmpq $0x26, %r12
jb 0x64d4
jmp 0x6561
movq (%r15), %rdi
movq %rbx, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0x30a0
movb $-0x1, %bpl
jmp 0x64fb
movq (%r15), %rdi
movq %rbx, %rsi
movl %ecx, %edx
xorl %eax, %eax
callq 0x30a0
movb $-0x1, %al
jmp 0x6520
leaq 0xcc(%rsp), %rdx
movq $0x0, (%rdx)
movl $0x0, 0x8(%rdx)
movl 0x40(%rsp), %eax
movl %eax, 0x28(%rsp)
movups 0x30(%rsp), %xmm0
movups %xmm0, 0x18(%rsp)
movl 0x58(%rsp), %eax
movl %eax, 0x10(%rsp)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rsp)
leaq 0x88(%rsp), %rbx
leaq 0x60(%rsp), %r8
movl $0x53b8, %esi           # imm = 0x53B8
movl $0x24, %ecx
movq %rbx, %rdi
xorl %r9d, %r9d
callq 0xd126
xorl %eax, %eax
callq 0xcd49
cmpq $0x0, 0x10(%rbx)
jne 0x661f
cmpq $0x0, 0xa0(%rsp)
jne 0x663e
cmpq $0x0, 0xa8(%rsp)
jne 0x665d
cmpq $0x1, 0xb0(%rsp)
jne 0x667c
cmpq $0x0, 0x88(%rsp)
jne 0x669b
cmpq $0x0, 0xb8(%rsp)
jne 0x66ba
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xda75(%rip), %rdi      # 0x1409b
leaq 0xda8f(%rip), %rsi      # 0x140bc
leaq 0xe181(%rip), %rcx      # 0x147b5
movl $0x3a2, %edx            # imm = 0x3A2
callq 0x3040
leaq 0xdfb5(%rip), %rdi      # 0x145fa
leaq 0xda70(%rip), %rsi      # 0x140bc
leaq 0xe162(%rip), %rcx      # 0x147b5
movl $0x3a3, %edx            # imm = 0x3A3
callq 0x3040
leaq 0xdf75(%rip), %rdi      # 0x145d9
leaq 0xda51(%rip), %rsi      # 0x140bc
leaq 0xe143(%rip), %rcx      # 0x147b5
movl $0x3a4, %edx            # imm = 0x3A4
callq 0x3040
leaq 0xe148(%rip), %rdi      # 0x147cb
leaq 0xda32(%rip), %rsi      # 0x140bc
leaq 0xe124(%rip), %rcx      # 0x147b5
movl $0x3a5, %edx            # imm = 0x3A5
callq 0x3040
leaq 0xdac3(%rip), %rdi      # 0x14165
leaq 0xda13(%rip), %rsi      # 0x140bc
leaq 0xe105(%rip), %rcx      # 0x147b5
movl $0x3a6, %edx            # imm = 0x3A6
callq 0x3040
leaq 0xdac0(%rip), %rdi      # 0x14181
leaq 0xd9f4(%rip), %rsi      # 0x140bc
leaq 0xe0e6(%rip), %rcx      # 0x147b5
movl $0x3a7, %edx            # imm = 0x3A7
callq 0x3040