partition
stringclasses
3 values
func_name
stringlengths
1
134
docstring
stringlengths
1
46.9k
path
stringlengths
4
223
original_string
stringlengths
75
104k
code
stringlengths
75
104k
docstring_tokens
listlengths
1
1.97k
repo
stringlengths
7
55
language
stringclasses
1 value
url
stringlengths
87
315
code_tokens
listlengths
19
28.4k
sha
stringlengths
40
40
valid
X86Cpu.SETE
Sets byte if equal. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETE(cpu, dest): """ Sets byte if equal. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.ZF, 1, 0))
def SETE(cpu, dest): """ Sets byte if equal. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.ZF, 1, 0))
[ "Sets", "byte", "if", "equal", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2666-L2673
[ "def", "SETE", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "cpu", ".", "ZF", ",", "1", ",", "0", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SETGE
Sets byte if greater or equal. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETGE(cpu, dest): """ Sets byte if greater or equal. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.SF == cpu.OF, 1, 0))
def SETGE(cpu, dest): """ Sets byte if greater or equal. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.SF == cpu.OF, 1, 0))
[ "Sets", "byte", "if", "greater", "or", "equal", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2686-L2693
[ "def", "SETGE", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "cpu", ".", "SF", "==", "cpu", ".", "OF", ",", "1", ",", "0", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SETNAE
Sets byte if not above or equal. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETNAE(cpu, dest): """ Sets byte if not above or equal. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.CF, 1, 0))
def SETNAE(cpu, dest): """ Sets byte if not above or equal. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.CF, 1, 0))
[ "Sets", "byte", "if", "not", "above", "or", "equal", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2726-L2733
[ "def", "SETNAE", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "cpu", ".", "CF", ",", "1", ",", "0", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SETNB
Sets byte if not below. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETNB(cpu, dest): """ Sets byte if not below. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.CF == False, 1, 0))
def SETNB(cpu, dest): """ Sets byte if not below. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.CF == False, 1, 0))
[ "Sets", "byte", "if", "not", "below", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2736-L2743
[ "def", "SETNB", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "cpu", ".", "CF", "==", "False", ",", "1", ",", "0", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SETNBE
Sets byte if not below or equal. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETNBE(cpu, dest): """ Sets byte if not below or equal. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, Operators.AND(cpu.CF == False, cpu.ZF == False), 1, 0))
def SETNBE(cpu, dest): """ Sets byte if not below or equal. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, Operators.AND(cpu.CF == False, cpu.ZF == False), 1, 0))
[ "Sets", "byte", "if", "not", "below", "or", "equal", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2746-L2753
[ "def", "SETNBE", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "Operators", ".", "AND", "(", "cpu", ".", "CF", "==", "False", ",", "cpu", ".", "ZF", "==", "False", ")", "...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SETNG
Sets byte if not greater. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETNG(cpu, dest): """ Sets byte if not greater. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, Operators.OR(cpu.ZF, cpu.SF != cpu.OF), 1, 0))
def SETNG(cpu, dest): """ Sets byte if not greater. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, Operators.OR(cpu.ZF, cpu.SF != cpu.OF), 1, 0))
[ "Sets", "byte", "if", "not", "greater", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2776-L2783
[ "def", "SETNG", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "Operators", ".", "OR", "(", "cpu", ".", "ZF", ",", "cpu", ".", "SF", "!=", "cpu", ".", "OF", ")", ",", "1...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SETNLE
Sets byte if not less or equal. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETNLE(cpu, dest): """ Sets byte if not less or equal. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, Operators.AND(cpu.ZF == False, cpu.SF == cpu.OF), 1, 0))
def SETNLE(cpu, dest): """ Sets byte if not less or equal. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, Operators.AND(cpu.ZF == False, cpu.SF == cpu.OF), 1, 0))
[ "Sets", "byte", "if", "not", "less", "or", "equal", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2806-L2813
[ "def", "SETNLE", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "Operators", ".", "AND", "(", "cpu", ".", "ZF", "==", "False", ",", "cpu", ".", "SF", "==", "cpu", ".", "OF...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SETNO
Sets byte if not overflow. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETNO(cpu, dest): """ Sets byte if not overflow. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.OF == False, 1, 0))
def SETNO(cpu, dest): """ Sets byte if not overflow. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.OF == False, 1, 0))
[ "Sets", "byte", "if", "not", "overflow", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2816-L2823
[ "def", "SETNO", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "cpu", ".", "OF", "==", "False", ",", "1", ",", "0", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SETNS
Sets byte if not sign. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETNS(cpu, dest): """ Sets byte if not sign. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.SF == False, 1, 0))
def SETNS(cpu, dest): """ Sets byte if not sign. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.SF == False, 1, 0))
[ "Sets", "byte", "if", "not", "sign", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2836-L2843
[ "def", "SETNS", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "cpu", ".", "SF", "==", "False", ",", "1", ",", "0", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SETNZ
Sets byte if not zero. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETNZ(cpu, dest): """ Sets byte if not zero. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.ZF == False, 1, 0))
def SETNZ(cpu, dest): """ Sets byte if not zero. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.ZF == False, 1, 0))
[ "Sets", "byte", "if", "not", "zero", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2846-L2853
[ "def", "SETNZ", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "cpu", ".", "ZF", "==", "False", ",", "1", ",", "0", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SETO
Sets byte if overflow. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETO(cpu, dest): """ Sets byte if overflow. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.OF, 1, 0))
def SETO(cpu, dest): """ Sets byte if overflow. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.OF, 1, 0))
[ "Sets", "byte", "if", "overflow", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2856-L2863
[ "def", "SETO", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "cpu", ".", "OF", ",", "1", ",", "0", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SETP
Sets byte if parity. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETP(cpu, dest): """ Sets byte if parity. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.PF, 1, 0))
def SETP(cpu, dest): """ Sets byte if parity. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.PF, 1, 0))
[ "Sets", "byte", "if", "parity", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2866-L2873
[ "def", "SETP", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "cpu", ".", "PF", ",", "1", ",", "0", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SETPE
Sets byte if parity even. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETPE(cpu, dest): """ Sets byte if parity even. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.PF, 1, 0))
def SETPE(cpu, dest): """ Sets byte if parity even. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.PF, 1, 0))
[ "Sets", "byte", "if", "parity", "even", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2876-L2883
[ "def", "SETPE", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "cpu", ".", "PF", ",", "1", ",", "0", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SETPO
Sets byte if parity odd. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETPO(cpu, dest): """ Sets byte if parity odd. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.PF == False, 1, 0))
def SETPO(cpu, dest): """ Sets byte if parity odd. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.PF == False, 1, 0))
[ "Sets", "byte", "if", "parity", "odd", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2886-L2893
[ "def", "SETPO", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "cpu", ".", "PF", "==", "False", ",", "1", ",", "0", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SETS
Sets byte if sign. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETS(cpu, dest): """ Sets byte if sign. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.SF, 1, 0))
def SETS(cpu, dest): """ Sets byte if sign. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.SF, 1, 0))
[ "Sets", "byte", "if", "sign", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2896-L2903
[ "def", "SETS", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "cpu", ".", "SF", ",", "1", ",", "0", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SETZ
Sets byte if zero. :param cpu: current CPU. :param dest: destination operand.
manticore/native/cpu/x86.py
def SETZ(cpu, dest): """ Sets byte if zero. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.ZF, 1, 0))
def SETZ(cpu, dest): """ Sets byte if zero. :param cpu: current CPU. :param dest: destination operand. """ dest.write(Operators.ITEBV(dest.size, cpu.ZF, 1, 0))
[ "Sets", "byte", "if", "zero", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2906-L2913
[ "def", "SETZ", "(", "cpu", ",", "dest", ")", ":", "dest", ".", "write", "(", "Operators", ".", "ITEBV", "(", "dest", ".", "size", ",", "cpu", ".", "ZF", ",", "1", ",", "0", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.XCHG
Exchanges register/memory with register. Exchanges the contents of the destination (first) and source (second) operands. The operands can be two general-purpose registers or a register and a memory location. If a memory operand is referenced, the processor's locking protocol is automati...
manticore/native/cpu/x86.py
def XCHG(cpu, dest, src): """ Exchanges register/memory with register. Exchanges the contents of the destination (first) and source (second) operands. The operands can be two general-purpose registers or a register and a memory location. If a memory operand is referenced, the pr...
def XCHG(cpu, dest, src): """ Exchanges register/memory with register. Exchanges the contents of the destination (first) and source (second) operands. The operands can be two general-purpose registers or a register and a memory location. If a memory operand is referenced, the pr...
[ "Exchanges", "register", "/", "memory", "with", "register", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2916-L2941
[ "def", "XCHG", "(", "cpu", ",", "dest", ",", "src", ")", ":", "temp", "=", "dest", ".", "read", "(", ")", "dest", ".", "write", "(", "src", ".", "read", "(", ")", ")", "src", ".", "write", "(", "temp", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.LEAVE
High level procedure exit. Releases the stack frame set up by an earlier ENTER instruction. The LEAVE instruction copies the frame pointer (in the EBP register) into the stack pointer register (ESP), which releases the stack space allocated to the stack frame. The old frame pointer (the...
manticore/native/cpu/x86.py
def LEAVE(cpu): """ High level procedure exit. Releases the stack frame set up by an earlier ENTER instruction. The LEAVE instruction copies the frame pointer (in the EBP register) into the stack pointer register (ESP), which releases the stack space allocated to the sta...
def LEAVE(cpu): """ High level procedure exit. Releases the stack frame set up by an earlier ENTER instruction. The LEAVE instruction copies the frame pointer (in the EBP register) into the stack pointer register (ESP), which releases the stack space allocated to the sta...
[ "High", "level", "procedure", "exit", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2952-L2982
[ "def", "LEAVE", "(", "cpu", ")", ":", "cpu", ".", "STACK", "=", "cpu", ".", "FRAME", "cpu", ".", "FRAME", "=", "cpu", ".", "pop", "(", "cpu", ".", "address_bit_size", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.PUSH
Pushes a value onto the stack. Decrements the stack pointer and then stores the source operand on the top of the stack. :param cpu: current CPU. :param src: source operand.
manticore/native/cpu/x86.py
def PUSH(cpu, src): """ Pushes a value onto the stack. Decrements the stack pointer and then stores the source operand on the top of the stack. :param cpu: current CPU. :param src: source operand. """ # http://stackoverflow.com/questions/11291151/how-push-imm-en...
def PUSH(cpu, src): """ Pushes a value onto the stack. Decrements the stack pointer and then stores the source operand on the top of the stack. :param cpu: current CPU. :param src: source operand. """ # http://stackoverflow.com/questions/11291151/how-push-imm-en...
[ "Pushes", "a", "value", "onto", "the", "stack", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L2998-L3013
[ "def", "PUSH", "(", "cpu", ",", "src", ")", ":", "# http://stackoverflow.com/questions/11291151/how-push-imm-encodes", "size", "=", "src", ".", "size", "v", "=", "src", ".", "read", "(", ")", "if", "size", "!=", "64", "and", "size", "!=", "cpu", ".", "addr...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.POPF
Pops stack into EFLAGS register. :param cpu: current CPU.
manticore/native/cpu/x86.py
def POPF(cpu): """ Pops stack into EFLAGS register. :param cpu: current CPU. """ mask = (0x00000001 | 0x00000004 | 0x00000010 | 0x00000040 | 0x00000080 | 0x00000400 | 0x00000800) ...
def POPF(cpu): """ Pops stack into EFLAGS register. :param cpu: current CPU. """ mask = (0x00000001 | 0x00000004 | 0x00000010 | 0x00000040 | 0x00000080 | 0x00000400 | 0x00000800) ...
[ "Pops", "stack", "into", "EFLAGS", "register", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3016-L3031
[ "def", "POPF", "(", "cpu", ")", ":", "mask", "=", "(", "0x00000001", "|", "0x00000004", "|", "0x00000010", "|", "0x00000040", "|", "0x00000080", "|", "0x00000400", "|", "0x00000800", ")", "val", "=", "cpu", ".", "pop", "(", "16", ")", "eflags_size", "=...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.POPFQ
Pops stack into EFLAGS register. :param cpu: current CPU.
manticore/native/cpu/x86.py
def POPFQ(cpu): """ Pops stack into EFLAGS register. :param cpu: current CPU. """ mask = 0x00000001 | 0x00000004 | 0x00000010 | 0x00000040 | 0x00000080 | 0x00000400 | 0x00000800 cpu.EFLAGS = (cpu.EFLAGS & ~mask) | cpu.pop(64) & mask
def POPFQ(cpu): """ Pops stack into EFLAGS register. :param cpu: current CPU. """ mask = 0x00000001 | 0x00000004 | 0x00000010 | 0x00000040 | 0x00000080 | 0x00000400 | 0x00000800 cpu.EFLAGS = (cpu.EFLAGS & ~mask) | cpu.pop(64) & mask
[ "Pops", "stack", "into", "EFLAGS", "register", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3044-L3051
[ "def", "POPFQ", "(", "cpu", ")", ":", "mask", "=", "0x00000001", "|", "0x00000004", "|", "0x00000010", "|", "0x00000040", "|", "0x00000080", "|", "0x00000400", "|", "0x00000800", "cpu", ".", "EFLAGS", "=", "(", "cpu", ".", "EFLAGS", "&", "~", "mask", "...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.INT
Calls to interrupt procedure. The INT n instruction generates a call to the interrupt or exception handler specified with the destination operand. The INT n instruction is the general mnemonic for executing a software-generated call to an interrupt handler. The INTO instruction is a special ...
manticore/native/cpu/x86.py
def INT(cpu, op0): """ Calls to interrupt procedure. The INT n instruction generates a call to the interrupt or exception handler specified with the destination operand. The INT n instruction is the general mnemonic for executing a software-generated call to an interrupt handle...
def INT(cpu, op0): """ Calls to interrupt procedure. The INT n instruction generates a call to the interrupt or exception handler specified with the destination operand. The INT n instruction is the general mnemonic for executing a software-generated call to an interrupt handle...
[ "Calls", "to", "interrupt", "procedure", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3081-L3097
[ "def", "INT", "(", "cpu", ",", "op0", ")", ":", "if", "op0", ".", "read", "(", ")", "!=", "0x80", ":", "logger", ".", "warning", "(", "\"Unsupported interrupt\"", ")", "raise", "Interruption", "(", "op0", ".", "read", "(", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.CALL
Procedure call. Saves procedure linking information on the stack and branches to the called procedure specified using the target operand. The target operand specifies the address of the first instruction in the called procedure. The operand can be an immediate value, a general-purpose register,...
manticore/native/cpu/x86.py
def CALL(cpu, op0): """ Procedure call. Saves procedure linking information on the stack and branches to the called procedure specified using the target operand. The target operand specifies the address of the first instruction in the called procedure. The operand can be an imme...
def CALL(cpu, op0): """ Procedure call. Saves procedure linking information on the stack and branches to the called procedure specified using the target operand. The target operand specifies the address of the first instruction in the called procedure. The operand can be an imme...
[ "Procedure", "call", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3117-L3131
[ "def", "CALL", "(", "cpu", ",", "op0", ")", ":", "# TODO FIX 64Bit FIX segment", "proc", "=", "op0", ".", "read", "(", ")", "cpu", ".", "push", "(", "cpu", ".", "PC", ",", "cpu", ".", "address_bit_size", ")", "cpu", ".", "PC", "=", "proc" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.RET
Returns from procedure. Transfers program control to a return address located on the top of the stack. The address is usually placed on the stack by a CALL instruction, and the return is made to the instruction that follows the CALL instruction. The optional source operand specifies the...
manticore/native/cpu/x86.py
def RET(cpu, *operands): """ Returns from procedure. Transfers program control to a return address located on the top of the stack. The address is usually placed on the stack by a CALL instruction, and the return is made to the instruction that follows the CALL instruction. ...
def RET(cpu, *operands): """ Returns from procedure. Transfers program control to a return address located on the top of the stack. The address is usually placed on the stack by a CALL instruction, and the return is made to the instruction that follows the CALL instruction. ...
[ "Returns", "from", "procedure", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3134-L3152
[ "def", "RET", "(", "cpu", ",", "*", "operands", ")", ":", "# TODO FIX 64Bit FIX segment", "N", "=", "0", "if", "len", "(", "operands", ")", ">", "0", ":", "N", "=", "operands", "[", "0", "]", ".", "read", "(", ")", "cpu", ".", "PC", "=", "cpu", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JA
Jumps short if above. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JA(cpu, target): """ Jumps short if above. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, Operators.AND(cpu.CF == False, cpu.ZF == False), target.read(), cpu.PC)
def JA(cpu, target): """ Jumps short if above. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, Operators.AND(cpu.CF == False, cpu.ZF == False), target.read(), cpu.PC)
[ "Jumps", "short", "if", "above", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3155-L3162
[ "def", "JA", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "Operators", ".", "AND", "(", "cpu", ".", "CF", "==", "False", ",", "cpu", ".", "ZF", "==", "False", ")"...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JB
Jumps short if below. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JB(cpu, target): """ Jumps short if below. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.CF == True, target.read(), cpu.PC)
def JB(cpu, target): """ Jumps short if below. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.CF == True, target.read(), cpu.PC)
[ "Jumps", "short", "if", "below", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3175-L3182
[ "def", "JB", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "cpu", ".", "CF", "==", "True", ",", "target", ".", "read", "(", ")", ",", "cpu", ".", "PC", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JBE
Jumps short if below or equal. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JBE(cpu, target): """ Jumps short if below or equal. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, Operators.OR(cpu.CF, cpu.ZF), target.read(), cpu.PC)
def JBE(cpu, target): """ Jumps short if below or equal. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, Operators.OR(cpu.CF, cpu.ZF), target.read(), cpu.PC)
[ "Jumps", "short", "if", "below", "or", "equal", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3185-L3192
[ "def", "JBE", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "Operators", ".", "OR", "(", "cpu", ".", "CF", ",", "cpu", ".", "ZF", ")", ",", "target", ".", "read", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JC
Jumps short if carry. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JC(cpu, target): """ Jumps short if carry. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.CF, target.read(), cpu.PC)
def JC(cpu, target): """ Jumps short if carry. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.CF, target.read(), cpu.PC)
[ "Jumps", "short", "if", "carry", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3195-L3202
[ "def", "JC", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "cpu", ".", "CF", ",", "target", ".", "read", "(", ")", ",", "cpu", ".", "PC", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JCXZ
Jumps short if CX register is 0. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JCXZ(cpu, target): """ Jumps short if CX register is 0. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.CX == 0, target.read(), cpu.PC)
def JCXZ(cpu, target): """ Jumps short if CX register is 0. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.CX == 0, target.read(), cpu.PC)
[ "Jumps", "short", "if", "CX", "register", "is", "0", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3205-L3212
[ "def", "JCXZ", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "cpu", ".", "CX", "==", "0", ",", "target", ".", "read", "(", ")", ",", "cpu", ".", "PC", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JECXZ
Jumps short if ECX register is 0. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JECXZ(cpu, target): """ Jumps short if ECX register is 0. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.ECX == 0, target.read(), cpu.PC)
def JECXZ(cpu, target): """ Jumps short if ECX register is 0. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.ECX == 0, target.read(), cpu.PC)
[ "Jumps", "short", "if", "ECX", "register", "is", "0", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3215-L3222
[ "def", "JECXZ", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "cpu", ".", "ECX", "==", "0", ",", "target", ".", "read", "(", ")", ",", "cpu", ".", "PC", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JRCXZ
Jumps short if RCX register is 0. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JRCXZ(cpu, target): """ Jumps short if RCX register is 0. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.RCX == 0, target.read(), cpu.PC)
def JRCXZ(cpu, target): """ Jumps short if RCX register is 0. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.RCX == 0, target.read(), cpu.PC)
[ "Jumps", "short", "if", "RCX", "register", "is", "0", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3225-L3232
[ "def", "JRCXZ", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "cpu", ".", "RCX", "==", "0", ",", "target", ".", "read", "(", ")", ",", "cpu", ".", "PC", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JG
Jumps short if greater. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JG(cpu, target): """ Jumps short if greater. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, Operators.AND(cpu.ZF == False, cpu.SF == cpu.OF), target.read(), cpu.PC)
def JG(cpu, target): """ Jumps short if greater. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, Operators.AND(cpu.ZF == False, cpu.SF == cpu.OF), target.read(), cpu.PC)
[ "Jumps", "short", "if", "greater", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3245-L3252
[ "def", "JG", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "Operators", ".", "AND", "(", "cpu", ".", "ZF", "==", "False", ",", "cpu", ".", "SF", "==", "cpu", ".", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JGE
Jumps short if greater or equal. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JGE(cpu, target): """ Jumps short if greater or equal. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, (cpu.SF == cpu.OF), target.read(), cpu.PC)
def JGE(cpu, target): """ Jumps short if greater or equal. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, (cpu.SF == cpu.OF), target.read(), cpu.PC)
[ "Jumps", "short", "if", "greater", "or", "equal", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3255-L3262
[ "def", "JGE", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "(", "cpu", ".", "SF", "==", "cpu", ".", "OF", ")", ",", "target", ".", "read", "(", ")", ",", "cpu",...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JNB
Jumps short if not below. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JNB(cpu, target): """ Jumps short if not below. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.CF == False, target.read(), cpu.PC)
def JNB(cpu, target): """ Jumps short if not below. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.CF == False, target.read(), cpu.PC)
[ "Jumps", "short", "if", "not", "below", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3305-L3312
[ "def", "JNB", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "cpu", ".", "CF", "==", "False", ",", "target", ".", "read", "(", ")", ",", "cpu", ".", "PC", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JNE
Jumps short if not equal. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JNE(cpu, target): """ Jumps short if not equal. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, False == cpu.ZF, target.read(), cpu.PC)
def JNE(cpu, target): """ Jumps short if not equal. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, False == cpu.ZF, target.read(), cpu.PC)
[ "Jumps", "short", "if", "not", "equal", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3335-L3342
[ "def", "JNE", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "False", "==", "cpu", ".", "ZF", ",", "target", ".", "read", "(", ")", ",", "cpu", ".", "PC", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JNG
Jumps short if not greater. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JNG(cpu, target): """ Jumps short if not greater. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, Operators.OR(cpu.ZF, cpu.SF != cpu.OF), target.read(), cpu.PC)
def JNG(cpu, target): """ Jumps short if not greater. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, Operators.OR(cpu.ZF, cpu.SF != cpu.OF), target.read(), cpu.PC)
[ "Jumps", "short", "if", "not", "greater", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3345-L3352
[ "def", "JNG", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "Operators", ".", "OR", "(", "cpu", ".", "ZF", ",", "cpu", ".", "SF", "!=", "cpu", ".", "OF", ")", ",...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JNO
Jumps short if not overflow. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JNO(cpu, target): """ Jumps short if not overflow. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, False == cpu.OF, target.read(), cpu.PC)
def JNO(cpu, target): """ Jumps short if not overflow. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, False == cpu.OF, target.read(), cpu.PC)
[ "Jumps", "short", "if", "not", "overflow", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3385-L3392
[ "def", "JNO", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "False", "==", "cpu", ".", "OF", ",", "target", ".", "read", "(", ")", ",", "cpu", ".", "PC", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JNP
Jumps short if not parity. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JNP(cpu, target): """ Jumps short if not parity. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, False == cpu.PF, target.read(), cpu.PC)
def JNP(cpu, target): """ Jumps short if not parity. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, False == cpu.PF, target.read(), cpu.PC)
[ "Jumps", "short", "if", "not", "parity", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3395-L3402
[ "def", "JNP", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "False", "==", "cpu", ".", "PF", ",", "target", ".", "read", "(", ")", ",", "cpu", ".", "PC", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JNS
Jumps short if not sign. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JNS(cpu, target): """ Jumps short if not sign. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, False == cpu.SF, target.read(), cpu.PC)
def JNS(cpu, target): """ Jumps short if not sign. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, False == cpu.SF, target.read(), cpu.PC)
[ "Jumps", "short", "if", "not", "sign", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3405-L3412
[ "def", "JNS", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "False", "==", "cpu", ".", "SF", ",", "target", ".", "read", "(", ")", ",", "cpu", ".", "PC", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JO
Jumps short if overflow. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JO(cpu, target): """ Jumps short if overflow. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.OF, target.read(), cpu.PC)
def JO(cpu, target): """ Jumps short if overflow. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.OF, target.read(), cpu.PC)
[ "Jumps", "short", "if", "overflow", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3424-L3431
[ "def", "JO", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "cpu", ".", "OF", ",", "target", ".", "read", "(", ")", ",", "cpu", ".", "PC", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JP
Jumps short if parity. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JP(cpu, target): """ Jumps short if parity. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.PF, target.read(), cpu.PC)
def JP(cpu, target): """ Jumps short if parity. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.PF, target.read(), cpu.PC)
[ "Jumps", "short", "if", "parity", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3434-L3441
[ "def", "JP", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "cpu", ".", "PF", ",", "target", ".", "read", "(", ")", ",", "cpu", ".", "PC", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JS
Jumps short if sign. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JS(cpu, target): """ Jumps short if sign. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.SF, target.read(), cpu.PC)
def JS(cpu, target): """ Jumps short if sign. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.SF, target.read(), cpu.PC)
[ "Jumps", "short", "if", "sign", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3464-L3471
[ "def", "JS", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "cpu", ".", "SF", ",", "target", ".", "read", "(", ")", ",", "cpu", ".", "PC", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.JZ
Jumps short if zero. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def JZ(cpu, target): """ Jumps short if zero. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.ZF, target.read(), cpu.PC)
def JZ(cpu, target): """ Jumps short if zero. :param cpu: current CPU. :param target: destination operand. """ cpu.PC = Operators.ITEBV(cpu.address_bit_size, cpu.ZF, target.read(), cpu.PC)
[ "Jumps", "short", "if", "zero", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3474-L3481
[ "def", "JZ", "(", "cpu", ",", "target", ")", ":", "cpu", ".", "PC", "=", "Operators", ".", "ITEBV", "(", "cpu", ".", "address_bit_size", ",", "cpu", ".", "ZF", ",", "target", ".", "read", "(", ")", ",", "cpu", ".", "PC", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.LJMP
We are just going to ignore the CS selector for now.
manticore/native/cpu/x86.py
def LJMP(cpu, cs_selector, target): """ We are just going to ignore the CS selector for now. """ logger.info("LJMP: Jumping to: %r:%r", cs_selector.read(), target.read()) cpu.CS = cs_selector.read() cpu.PC = target.read()
def LJMP(cpu, cs_selector, target): """ We are just going to ignore the CS selector for now. """ logger.info("LJMP: Jumping to: %r:%r", cs_selector.read(), target.read()) cpu.CS = cs_selector.read() cpu.PC = target.read()
[ "We", "are", "just", "going", "to", "ignore", "the", "CS", "selector", "for", "now", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3497-L3503
[ "def", "LJMP", "(", "cpu", ",", "cs_selector", ",", "target", ")", ":", "logger", ".", "info", "(", "\"LJMP: Jumping to: %r:%r\"", ",", "cs_selector", ".", "read", "(", ")", ",", "target", ".", "read", "(", ")", ")", "cpu", ".", "CS", "=", "cs_selector...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.LOOP
Loops according to ECX counter. Performs a loop operation using the ECX or CX register as a counter. Each time the LOOP instruction is executed, the count register is decremented, then checked for 0. If the count is 0, the loop is terminated and program execution continues with the inst...
manticore/native/cpu/x86.py
def LOOP(cpu, dest): """ Loops according to ECX counter. Performs a loop operation using the ECX or CX register as a counter. Each time the LOOP instruction is executed, the count register is decremented, then checked for 0. If the count is 0, the loop is terminated and program ...
def LOOP(cpu, dest): """ Loops according to ECX counter. Performs a loop operation using the ECX or CX register as a counter. Each time the LOOP instruction is executed, the count register is decremented, then checked for 0. If the count is 0, the loop is terminated and program ...
[ "Loops", "according", "to", "ECX", "counter", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3506-L3543
[ "def", "LOOP", "(", "cpu", ",", "dest", ")", ":", "counter_name", "=", "{", "16", ":", "'CX'", ",", "32", ":", "'ECX'", ",", "64", ":", "'RCX'", "}", "[", "cpu", ".", "address_bit_size", "]", "counter", "=", "cpu", ".", "write_register", "(", "coun...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.LOOPNZ
Loops if ECX counter is nonzero. :param cpu: current CPU. :param target: destination operand.
manticore/native/cpu/x86.py
def LOOPNZ(cpu, target): """ Loops if ECX counter is nonzero. :param cpu: current CPU. :param target: destination operand. """ counter_name = {16: 'CX', 32: 'ECX', 64: 'RCX'}[cpu.address_bit_size] counter = cpu.write_register(counter_name, cpu.read_register(count...
def LOOPNZ(cpu, target): """ Loops if ECX counter is nonzero. :param cpu: current CPU. :param target: destination operand. """ counter_name = {16: 'CX', 32: 'ECX', 64: 'RCX'}[cpu.address_bit_size] counter = cpu.write_register(counter_name, cpu.read_register(count...
[ "Loops", "if", "ECX", "counter", "is", "nonzero", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3545-L3554
[ "def", "LOOPNZ", "(", "cpu", ",", "target", ")", ":", "counter_name", "=", "{", "16", ":", "'CX'", ",", "32", ":", "'ECX'", ",", "64", ":", "'RCX'", "}", "[", "cpu", ".", "address_bit_size", "]", "counter", "=", "cpu", ".", "write_register", "(", "...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.RCL
Rotates through carry left. Shifts (rotates) the bits of the first operand (destination operand) the number of bit positions specified in the second operand (count operand) and stores the result in the destination operand. The destination operand can be a register or a memory location; the coun...
manticore/native/cpu/x86.py
def RCL(cpu, dest, src): """ Rotates through carry left. Shifts (rotates) the bits of the first operand (destination operand) the number of bit positions specified in the second operand (count operand) and stores the result in the destination operand. The destination operand can be ...
def RCL(cpu, dest, src): """ Rotates through carry left. Shifts (rotates) the bits of the first operand (destination operand) the number of bit positions specified in the second operand (count operand) and stores the result in the destination operand. The destination operand can be ...
[ "Rotates", "through", "carry", "left", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3565-L3606
[ "def", "RCL", "(", "cpu", ",", "dest", ",", "src", ")", ":", "OperandSize", "=", "dest", ".", "size", "count", "=", "src", ".", "read", "(", ")", "countMask", "=", "{", "8", ":", "0x1f", ",", "16", ":", "0x1f", ",", "32", ":", "0x1f", ",", "6...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.RCR
Rotates through carry right (RCR). Shifts (rotates) the bits of the first operand (destination operand) the number of bit positions specified in the second operand (count operand) and stores the result in the destination operand. The destination operand can be a register or a memory location; t...
manticore/native/cpu/x86.py
def RCR(cpu, dest, src): """ Rotates through carry right (RCR). Shifts (rotates) the bits of the first operand (destination operand) the number of bit positions specified in the second operand (count operand) and stores the result in the destination operand. The destination operand can ...
def RCR(cpu, dest, src): """ Rotates through carry right (RCR). Shifts (rotates) the bits of the first operand (destination operand) the number of bit positions specified in the second operand (count operand) and stores the result in the destination operand. The destination operand can ...
[ "Rotates", "through", "carry", "right", "(", "RCR", ")", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3609-L3654
[ "def", "RCR", "(", "cpu", ",", "dest", ",", "src", ")", ":", "OperandSize", "=", "dest", ".", "size", "count", "=", "src", ".", "read", "(", ")", "countMask", "=", "{", "8", ":", "0x1f", ",", "16", ":", "0x1f", ",", "32", ":", "0x1f", ",", "6...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.ROL
Rotates left (ROL). Shifts (rotates) the bits of the first operand (destination operand) the number of bit positions specified in the second operand (count operand) and stores the result in the destination operand. The destination operand can be a register or a memory location; the count operan...
manticore/native/cpu/x86.py
def ROL(cpu, dest, src): """ Rotates left (ROL). Shifts (rotates) the bits of the first operand (destination operand) the number of bit positions specified in the second operand (count operand) and stores the result in the destination operand. The destination operand can be a re...
def ROL(cpu, dest, src): """ Rotates left (ROL). Shifts (rotates) the bits of the first operand (destination operand) the number of bit positions specified in the second operand (count operand) and stores the result in the destination operand. The destination operand can be a re...
[ "Rotates", "left", "(", "ROL", ")", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3657-L3688
[ "def", "ROL", "(", "cpu", ",", "dest", ",", "src", ")", ":", "OperandSize", "=", "dest", ".", "size", "count", "=", "src", ".", "read", "(", ")", "countMask", "=", "{", "8", ":", "0x1f", ",", "16", ":", "0x1f", ",", "32", ":", "0x1f", ",", "6...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SAL
The shift arithmetic left. Shifts the bits in the first operand (destination operand) to the left or right by the number of bits specified in the second operand (count operand). Bits shifted beyond the destination operand boundary are first shifted into the CF flag, then discarded. At the end o...
manticore/native/cpu/x86.py
def SAL(cpu, dest, src): """ The shift arithmetic left. Shifts the bits in the first operand (destination operand) to the left or right by the number of bits specified in the second operand (count operand). Bits shifted beyond the destination operand boundary are first shifted into the ...
def SAL(cpu, dest, src): """ The shift arithmetic left. Shifts the bits in the first operand (destination operand) to the left or right by the number of bits specified in the second operand (count operand). Bits shifted beyond the destination operand boundary are first shifted into the ...
[ "The", "shift", "arithmetic", "left", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3727-L3761
[ "def", "SAL", "(", "cpu", ",", "dest", ",", "src", ")", ":", "OperandSize", "=", "dest", ".", "size", "count", "=", "src", ".", "read", "(", ")", "countMask", "=", "{", "8", ":", "0x1f", ",", "16", ":", "0x1f", ",", "32", ":", "0x1f", ",", "6...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SAR
Shift arithmetic right. The shift arithmetic right (SAR) and shift logical right (SHR) instructions shift the bits of the destination operand to the right (toward less significant bit locations). For each shift count, the least significant bit of the destination operand is shifted into the CF f...
manticore/native/cpu/x86.py
def SAR(cpu, dest, src): """ Shift arithmetic right. The shift arithmetic right (SAR) and shift logical right (SHR) instructions shift the bits of the destination operand to the right (toward less significant bit locations). For each shift count, the least significant bit of the destina...
def SAR(cpu, dest, src): """ Shift arithmetic right. The shift arithmetic right (SAR) and shift logical right (SHR) instructions shift the bits of the destination operand to the right (toward less significant bit locations). For each shift count, the least significant bit of the destina...
[ "Shift", "arithmetic", "right", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3776-L3823
[ "def", "SAR", "(", "cpu", ",", "dest", ",", "src", ")", ":", "OperandSize", "=", "dest", ".", "size", "countMask", "=", "{", "8", ":", "0x1f", ",", "16", ":", "0x1f", ",", "32", ":", "0x1f", ",", "64", ":", "0x3f", "}", "[", "OperandSize", "]",...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SHR
Shift logical right. The shift arithmetic right (SAR) and shift logical right (SHR) instructions shift the bits of the destination operand to the right (toward less significant bit locations). For each shift count, the least significant bit of the destination operand is shifted into the...
manticore/native/cpu/x86.py
def SHR(cpu, dest, src): """ Shift logical right. The shift arithmetic right (SAR) and shift logical right (SHR) instructions shift the bits of the destination operand to the right (toward less significant bit locations). For each shift count, the least significant bit o...
def SHR(cpu, dest, src): """ Shift logical right. The shift arithmetic right (SAR) and shift logical right (SHR) instructions shift the bits of the destination operand to the right (toward less significant bit locations). For each shift count, the least significant bit o...
[ "Shift", "logical", "right", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3826-L3863
[ "def", "SHR", "(", "cpu", ",", "dest", ",", "src", ")", ":", "OperandSize", "=", "dest", ".", "size", "count", "=", "Operators", ".", "ZEXTEND", "(", "src", ".", "read", "(", ")", "&", "(", "OperandSize", "-", "1", ")", ",", "OperandSize", ")", "...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SHLD
Double precision shift right. Shifts the first operand (destination operand) to the left the number of bits specified by the third operand (count operand). The second operand (source operand) provides bits to shift in from the right (starting with the least significant bit of the destination op...
manticore/native/cpu/x86.py
def SHLD(cpu, dest, src, count): """ Double precision shift right. Shifts the first operand (destination operand) to the left the number of bits specified by the third operand (count operand). The second operand (source operand) provides bits to shift in from the right (starting with ...
def SHLD(cpu, dest, src, count): """ Double precision shift right. Shifts the first operand (destination operand) to the left the number of bits specified by the third operand (count operand). The second operand (source operand) provides bits to shift in from the right (starting with ...
[ "Double", "precision", "shift", "right", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3918-L3948
[ "def", "SHLD", "(", "cpu", ",", "dest", ",", "src", ",", "count", ")", ":", "OperandSize", "=", "dest", ".", "size", "tempCount", "=", "Operators", ".", "ZEXTEND", "(", "count", ".", "read", "(", ")", ",", "OperandSize", ")", "&", "(", "OperandSize",...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu._getMemoryBit
Calculate address and bit offset given a base address and a bit offset relative to that address (in the form of asm operands)
manticore/native/cpu/x86.py
def _getMemoryBit(cpu, bitbase, bitoffset): """ Calculate address and bit offset given a base address and a bit offset relative to that address (in the form of asm operands) """ assert bitbase.type == 'memory' assert bitbase.size >= bitoffset.size addr = bitbase.address() ...
def _getMemoryBit(cpu, bitbase, bitoffset): """ Calculate address and bit offset given a base address and a bit offset relative to that address (in the form of asm operands) """ assert bitbase.type == 'memory' assert bitbase.size >= bitoffset.size addr = bitbase.address() ...
[ "Calculate", "address", "and", "bit", "offset", "given", "a", "base", "address", "and", "a", "bit", "offset", "relative", "to", "that", "address", "(", "in", "the", "form", "of", "asm", "operands", ")" ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3956-L3968
[ "def", "_getMemoryBit", "(", "cpu", ",", "bitbase", ",", "bitoffset", ")", ":", "assert", "bitbase", ".", "type", "==", "'memory'", "assert", "bitbase", ".", "size", ">=", "bitoffset", ".", "size", "addr", "=", "bitbase", ".", "address", "(", ")", "offt"...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.BSF
Bit scan forward. Searches the source operand (second operand) for the least significant set bit (1 bit). If a least significant 1 bit is found, its bit index is stored in the destination operand (first operand). The source operand can be a register or a memory location; the destination...
manticore/native/cpu/x86.py
def BSF(cpu, dest, src): """ Bit scan forward. Searches the source operand (second operand) for the least significant set bit (1 bit). If a least significant 1 bit is found, its bit index is stored in the destination operand (first operand). The source operand can be a r...
def BSF(cpu, dest, src): """ Bit scan forward. Searches the source operand (second operand) for the least significant set bit (1 bit). If a least significant 1 bit is found, its bit index is stored in the destination operand (first operand). The source operand can be a r...
[ "Bit", "scan", "forward", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L3971-L4009
[ "def", "BSF", "(", "cpu", ",", "dest", ",", "src", ")", ":", "value", "=", "src", ".", "read", "(", ")", "flag", "=", "Operators", ".", "EXTRACT", "(", "value", ",", "0", ",", "1", ")", "==", "1", "res", "=", "0", "for", "pos", "in", "range",...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.BSR
Bit scan reverse. Searches the source operand (second operand) for the most significant set bit (1 bit). If a most significant 1 bit is found, its bit index is stored in the destination operand (first operand). The source operand can be a register or a memory location; the destination o...
manticore/native/cpu/x86.py
def BSR(cpu, dest, src): """ Bit scan reverse. Searches the source operand (second operand) for the most significant set bit (1 bit). If a most significant 1 bit is found, its bit index is stored in the destination operand (first operand). The source operand can be a reg...
def BSR(cpu, dest, src): """ Bit scan reverse. Searches the source operand (second operand) for the most significant set bit (1 bit). If a most significant 1 bit is found, its bit index is stored in the destination operand (first operand). The source operand can be a reg...
[ "Bit", "scan", "reverse", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4012-L4052
[ "def", "BSR", "(", "cpu", ",", "dest", ",", "src", ")", ":", "value", "=", "src", ".", "read", "(", ")", "flag", "=", "Operators", ".", "EXTRACT", "(", "value", ",", "src", ".", "size", "-", "1", ",", "1", ")", "==", "1", "res", "=", "0", "...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.BT
Bit Test. Selects the bit in a bit string (specified with the first operand, called the bit base) at the bit-position designated by the bit offset (specified by the second operand) and stores the value of the bit in the CF flag. The bit base operand can be a register or a memory location; the b...
manticore/native/cpu/x86.py
def BT(cpu, dest, src): """ Bit Test. Selects the bit in a bit string (specified with the first operand, called the bit base) at the bit-position designated by the bit offset (specified by the second operand) and stores the value of the bit in the CF flag. The bit base operand c...
def BT(cpu, dest, src): """ Bit Test. Selects the bit in a bit string (specified with the first operand, called the bit base) at the bit-position designated by the bit offset (specified by the second operand) and stores the value of the bit in the CF flag. The bit base operand c...
[ "Bit", "Test", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4055-L4082
[ "def", "BT", "(", "cpu", ",", "dest", ",", "src", ")", ":", "if", "dest", ".", "type", "==", "'register'", ":", "cpu", ".", "CF", "=", "(", "(", "dest", ".", "read", "(", ")", ">>", "(", "src", ".", "read", "(", ")", "%", "dest", ".", "size...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.BTC
Bit test and complement. Selects the bit in a bit string (specified with the first operand, called the bit base) at the bit-position designated by the bit offset operand (second operand), stores the value of the bit in the CF flag, and complements the selected bit in the bit string. ...
manticore/native/cpu/x86.py
def BTC(cpu, dest, src): """ Bit test and complement. Selects the bit in a bit string (specified with the first operand, called the bit base) at the bit-position designated by the bit offset operand (second operand), stores the value of the bit in the CF flag, and complements ...
def BTC(cpu, dest, src): """ Bit test and complement. Selects the bit in a bit string (specified with the first operand, called the bit base) at the bit-position designated by the bit offset operand (second operand), stores the value of the bit in the CF flag, and complements ...
[ "Bit", "test", "and", "complement", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4085-L4112
[ "def", "BTC", "(", "cpu", ",", "dest", ",", "src", ")", ":", "if", "dest", ".", "type", "==", "'register'", ":", "value", "=", "dest", ".", "read", "(", ")", "pos", "=", "src", ".", "read", "(", ")", "%", "dest", ".", "size", "cpu", ".", "CF"...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.POPCNT
This instruction calculates of number of bits set to 1 in the second operand (source) and returns the count in the first operand (a destination register). Count = 0; For (i=0; i < OperandSize; i++) { IF (SRC[ i] = 1) // i'th bit THEN Count++; FI; ...
manticore/native/cpu/x86.py
def POPCNT(cpu, dest, src): """ This instruction calculates of number of bits set to 1 in the second operand (source) and returns the count in the first operand (a destination register). Count = 0; For (i=0; i < OperandSize; i++) { IF (SRC[ i] = 1) // i'th bit...
def POPCNT(cpu, dest, src): """ This instruction calculates of number of bits set to 1 in the second operand (source) and returns the count in the first operand (a destination register). Count = 0; For (i=0; i < OperandSize; i++) { IF (SRC[ i] = 1) // i'th bit...
[ "This", "instruction", "calculates", "of", "number", "of", "bits", "set", "to", "1", "in", "the", "second", "operand", "(", "source", ")", "and", "returns", "the", "count", "in", "the", "first", "operand", "(", "a", "destination", "register", ")", ".", "...
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4177-L4204
[ "def", "POPCNT", "(", "cpu", ",", "dest", ",", "src", ")", ":", "count", "=", "0", "source", "=", "src", ".", "read", "(", ")", "for", "i", "in", "range", "(", "src", ".", "size", ")", ":", "count", "+=", "Operators", ".", "ITEBV", "(", "dest",...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.CMPS
Compares string operands. Compares the byte, word, double word or quad specified with the first source operand with the byte, word, double or quad word specified with the second source operand and sets the status flags in the EFLAGS register according to the results. Both the source ope...
manticore/native/cpu/x86.py
def CMPS(cpu, dest, src): """ Compares string operands. Compares the byte, word, double word or quad specified with the first source operand with the byte, word, double or quad word specified with the second source operand and sets the status flags in the EFLAGS register accordi...
def CMPS(cpu, dest, src): """ Compares string operands. Compares the byte, word, double word or quad specified with the first source operand with the byte, word, double or quad word specified with the second source operand and sets the status flags in the EFLAGS register accordi...
[ "Compares", "string", "operands", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4263-L4324
[ "def", "CMPS", "(", "cpu", ",", "dest", ",", "src", ")", ":", "src_reg", "=", "{", "8", ":", "'SI'", ",", "32", ":", "'ESI'", ",", "64", ":", "'RSI'", "}", "[", "cpu", ".", "address_bit_size", "]", "dest_reg", "=", "{", "8", ":", "'DI'", ",", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.LODS
Loads string. Loads a byte, word, or doubleword from the source operand into the AL, AX, or EAX register, respectively. The source operand is a memory location, the address of which is read from the DS:ESI or the DS:SI registers (depending on the address-size attribute of the instruction, 32 or...
manticore/native/cpu/x86.py
def LODS(cpu, dest, src): """ Loads string. Loads a byte, word, or doubleword from the source operand into the AL, AX, or EAX register, respectively. The source operand is a memory location, the address of which is read from the DS:ESI or the DS:SI registers (depending on the ad...
def LODS(cpu, dest, src): """ Loads string. Loads a byte, word, or doubleword from the source operand into the AL, AX, or EAX register, respectively. The source operand is a memory location, the address of which is read from the DS:ESI or the DS:SI registers (depending on the ad...
[ "Loads", "string", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4327-L4354
[ "def", "LODS", "(", "cpu", ",", "dest", ",", "src", ")", ":", "src_reg", "=", "{", "8", ":", "'SI'", ",", "32", ":", "'ESI'", ",", "64", ":", "'RSI'", "}", "[", "cpu", ".", "address_bit_size", "]", "base", ",", "_", ",", "ty", "=", "cpu", "."...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.MOVS
Moves data from string to string. Moves the byte, word, or doubleword specified with the second operand (source operand) to the location specified with the first operand (destination operand). Both the source and destination operands are located in memory. The address of the source operand is r...
manticore/native/cpu/x86.py
def MOVS(cpu, dest, src): """ Moves data from string to string. Moves the byte, word, or doubleword specified with the second operand (source operand) to the location specified with the first operand (destination operand). Both the source and destination operands are located in memory. ...
def MOVS(cpu, dest, src): """ Moves data from string to string. Moves the byte, word, or doubleword specified with the second operand (source operand) to the location specified with the first operand (destination operand). Both the source and destination operands are located in memory. ...
[ "Moves", "data", "from", "string", "to", "string", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4357-L4386
[ "def", "MOVS", "(", "cpu", ",", "dest", ",", "src", ")", ":", "base", ",", "size", ",", "ty", "=", "cpu", ".", "get_descriptor", "(", "cpu", ".", "DS", ")", "src_addr", "=", "src", ".", "address", "(", ")", "+", "base", "dest_addr", "=", "dest", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SCAS
Scans String. Compares the byte, word, or double word specified with the memory operand with the value in the AL, AX, EAX, or RAX register, and sets the status flags according to the results. The memory operand address is read from either the ES:RDI, ES:EDI or the ES:DI registers (depen...
manticore/native/cpu/x86.py
def SCAS(cpu, dest, src): """ Scans String. Compares the byte, word, or double word specified with the memory operand with the value in the AL, AX, EAX, or RAX register, and sets the status flags according to the results. The memory operand address is read from either th...
def SCAS(cpu, dest, src): """ Scans String. Compares the byte, word, or double word specified with the memory operand with the value in the AL, AX, EAX, or RAX register, and sets the status flags according to the results. The memory operand address is read from either th...
[ "Scans", "String", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4389-L4440
[ "def", "SCAS", "(", "cpu", ",", "dest", ",", "src", ")", ":", "dest_reg", "=", "dest", ".", "reg", "mem_reg", "=", "src", ".", "mem", ".", "base", "# , src.type, src.read()", "size", "=", "dest", ".", "size", "arg0", "=", "dest", ".", "read", "(", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.STOS
Stores String. Stores a byte, word, or doubleword from the AL, AX, or EAX register, respectively, into the destination operand. The destination operand is a memory location, the address of which is read from either the ES:EDI or the ES:DI registers (depending on the address-size attribu...
manticore/native/cpu/x86.py
def STOS(cpu, dest, src): """ Stores String. Stores a byte, word, or doubleword from the AL, AX, or EAX register, respectively, into the destination operand. The destination operand is a memory location, the address of which is read from either the ES:EDI or the ES:DI re...
def STOS(cpu, dest, src): """ Stores String. Stores a byte, word, or doubleword from the AL, AX, or EAX register, respectively, into the destination operand. The destination operand is a memory location, the address of which is read from either the ES:EDI or the ES:DI re...
[ "Stores", "String", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4443-L4462
[ "def", "STOS", "(", "cpu", ",", "dest", ",", "src", ")", ":", "size", "=", "src", ".", "size", "dest", ".", "write", "(", "src", ".", "read", "(", ")", ")", "dest_reg", "=", "dest", ".", "mem", ".", "base", "increment", "=", "Operators", ".", "...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.ANDN
Performs a bitwise logical AND of inverted second operand (the first source operand) with the third operand (the second source operand). The result is stored in the first operand (destination operand). DEST <- (NOT SRC1) bitwiseAND SRC2; SF <- DEST[OperandSize -1];...
manticore/native/cpu/x86.py
def ANDN(cpu, dest, src1, src2): """Performs a bitwise logical AND of inverted second operand (the first source operand) with the third operand (the second source operand). The result is stored in the first operand (destination operand). DEST <- (NOT SRC1) bitwiseAND SRC2;...
def ANDN(cpu, dest, src1, src2): """Performs a bitwise logical AND of inverted second operand (the first source operand) with the third operand (the second source operand). The result is stored in the first operand (destination operand). DEST <- (NOT SRC1) bitwiseAND SRC2;...
[ "Performs", "a", "bitwise", "logical", "AND", "of", "inverted", "second", "operand", "(", "the", "first", "source", "operand", ")", "with", "the", "third", "operand", "(", "the", "second", "source", "operand", ")", ".", "The", "result", "is", "stored", "in...
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4502-L4518
[ "def", "ANDN", "(", "cpu", ",", "dest", ",", "src1", ",", "src2", ")", ":", "value", "=", "~", "src1", ".", "read", "(", ")", "&", "src2", ".", "read", "(", ")", "dest", ".", "write", "(", "value", ")", "cpu", ".", "ZF", "=", "value", "==", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SHLX
The shift arithmetic left. Shifts the bits in the first operand (destination operand) to the left or right by the number of bits specified in the second operand (count operand). Bits shifted beyond the destination operand boundary are first shifted into the CF flag, then discarded. At the end o...
manticore/native/cpu/x86.py
def SHLX(cpu, dest, src, count): """ The shift arithmetic left. Shifts the bits in the first operand (destination operand) to the left or right by the number of bits specified in the second operand (count operand). Bits shifted beyond the destination operand boundary are first shifted i...
def SHLX(cpu, dest, src, count): """ The shift arithmetic left. Shifts the bits in the first operand (destination operand) to the left or right by the number of bits specified in the second operand (count operand). Bits shifted beyond the destination operand boundary are first shifted i...
[ "The", "shift", "arithmetic", "left", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4521-L4542
[ "def", "SHLX", "(", "cpu", ",", "dest", ",", "src", ",", "count", ")", ":", "OperandSize", "=", "dest", ".", "size", "count", "=", "count", ".", "read", "(", ")", "countMask", "=", "{", "8", ":", "0x1f", ",", "16", ":", "0x1f", ",", "32", ":", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SARX
The shift arithmetic right. :param cpu: current CPU. :param dest: destination operand. :param src: count operand.
manticore/native/cpu/x86.py
def SARX(cpu, dest, src, count): """ The shift arithmetic right. :param cpu: current CPU. :param dest: destination operand. :param src: count operand. """ OperandSize = dest.size count = count.read() countMask = {8: 0x1f, 16: ...
def SARX(cpu, dest, src, count): """ The shift arithmetic right. :param cpu: current CPU. :param dest: destination operand. :param src: count operand. """ OperandSize = dest.size count = count.read() countMask = {8: 0x1f, 16: ...
[ "The", "shift", "arithmetic", "right", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4564-L4586
[ "def", "SARX", "(", "cpu", ",", "dest", ",", "src", ",", "count", ")", ":", "OperandSize", "=", "dest", ".", "size", "count", "=", "count", ".", "read", "(", ")", "countMask", "=", "{", "8", ":", "0x1f", ",", "16", ":", "0x1f", ",", "32", ":", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.PMINUB
PMINUB: returns minimum of packed unsigned byte integers in the dest operand see PMAXUB
manticore/native/cpu/x86.py
def PMINUB(cpu, dest, src): """ PMINUB: returns minimum of packed unsigned byte integers in the dest operand see PMAXUB """ dest_value = dest.read() src_value = src.read() result = 0 for pos in range(0, dest.size, 8): itema = (dest_value >> pos...
def PMINUB(cpu, dest, src): """ PMINUB: returns minimum of packed unsigned byte integers in the dest operand see PMAXUB """ dest_value = dest.read() src_value = src.read() result = 0 for pos in range(0, dest.size, 8): itema = (dest_value >> pos...
[ "PMINUB", ":", "returns", "minimum", "of", "packed", "unsigned", "byte", "integers", "in", "the", "dest", "operand", "see", "PMAXUB" ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4589-L4601
[ "def", "PMINUB", "(", "cpu", ",", "dest", ",", "src", ")", ":", "dest_value", "=", "dest", ".", "read", "(", ")", "src_value", "=", "src", ".", "read", "(", ")", "result", "=", "0", "for", "pos", "in", "range", "(", "0", ",", "dest", ".", "size...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.PXOR
Logical exclusive OR. Performs a bitwise logical exclusive-OR (XOR) operation on the quadword source (second) and destination (first) operands and stores the result in the destination operand location. The source operand can be an MMX(TM) technology register or a quadword memory locatio...
manticore/native/cpu/x86.py
def PXOR(cpu, dest, src): """ Logical exclusive OR. Performs a bitwise logical exclusive-OR (XOR) operation on the quadword source (second) and destination (first) operands and stores the result in the destination operand location. The source operand can be an MMX(TM) te...
def PXOR(cpu, dest, src): """ Logical exclusive OR. Performs a bitwise logical exclusive-OR (XOR) operation on the quadword source (second) and destination (first) operands and stores the result in the destination operand location. The source operand can be an MMX(TM) te...
[ "Logical", "exclusive", "OR", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4632-L4650
[ "def", "PXOR", "(", "cpu", ",", "dest", ",", "src", ")", ":", "res", "=", "dest", ".", "write", "(", "dest", ".", "read", "(", ")", "^", "src", ".", "read", "(", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu._PUNPCKL
Generic PUNPCKL
manticore/native/cpu/x86.py
def _PUNPCKL(cpu, dest, src, item_size): """ Generic PUNPCKL """ assert dest.size == src.size size = dest.size dest_value = dest.read() src_value = src.read() mask = (1 << item_size) - 1 res = 0 count = 0 for pos in range(0, size //...
def _PUNPCKL(cpu, dest, src, item_size): """ Generic PUNPCKL """ assert dest.size == src.size size = dest.size dest_value = dest.read() src_value = src.read() mask = (1 << item_size) - 1 res = 0 count = 0 for pos in range(0, size //...
[ "Generic", "PUNPCKL" ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4652-L4673
[ "def", "_PUNPCKL", "(", "cpu", ",", "dest", ",", "src", ",", "item_size", ")", ":", "assert", "dest", ".", "size", "==", "src", ".", "size", "size", "=", "dest", ".", "size", "dest_value", "=", "dest", ".", "read", "(", ")", "src_value", "=", "src"...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.PSHUFW
Packed shuffle words. Copies doublewords from source operand (second operand) and inserts them in the destination operand (first operand) at locations selected with the order operand (third operand). :param cpu: current CPU. :param op0: destination operand. :param op1: source o...
manticore/native/cpu/x86.py
def PSHUFW(cpu, op0, op1, op3): """ Packed shuffle words. Copies doublewords from source operand (second operand) and inserts them in the destination operand (first operand) at locations selected with the order operand (third operand). :param cpu: current CPU. :param op...
def PSHUFW(cpu, op0, op1, op3): """ Packed shuffle words. Copies doublewords from source operand (second operand) and inserts them in the destination operand (first operand) at locations selected with the order operand (third operand). :param cpu: current CPU. :param op...
[ "Packed", "shuffle", "words", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4776-L4797
[ "def", "PSHUFW", "(", "cpu", ",", "op0", ",", "op1", ",", "op3", ")", ":", "size", "=", "op0", ".", "size", "arg0", "=", "op0", ".", "read", "(", ")", "arg1", "=", "op1", ".", "read", "(", ")", "arg3", "=", "Operators", ".", "ZEXTEND", "(", "...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.PSHUFD
Packed shuffle doublewords. Copies doublewords from source operand (second operand) and inserts them in the destination operand (first operand) at locations selected with the order operand (third operand). :param cpu: current CPU. :param op0: destination operand. :param op1: so...
manticore/native/cpu/x86.py
def PSHUFD(cpu, op0, op1, op3): """ Packed shuffle doublewords. Copies doublewords from source operand (second operand) and inserts them in the destination operand (first operand) at locations selected with the order operand (third operand). :param cpu: current CPU. :pa...
def PSHUFD(cpu, op0, op1, op3): """ Packed shuffle doublewords. Copies doublewords from source operand (second operand) and inserts them in the destination operand (first operand) at locations selected with the order operand (third operand). :param cpu: current CPU. :pa...
[ "Packed", "shuffle", "doublewords", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L4830-L4853
[ "def", "PSHUFD", "(", "cpu", ",", "op0", ",", "op1", ",", "op3", ")", ":", "size", "=", "op0", ".", "size", "arg0", "=", "op0", ".", "read", "(", ")", "arg1", "=", "op1", ".", "read", "(", ")", "order", "=", "Operators", ".", "ZEXTEND", "(", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.PMOVMSKB
Moves byte mask to general-purpose register. Creates an 8-bit mask made up of the most significant bit of each byte of the source operand (second operand) and stores the result in the low byte or word of the destination operand (first operand). The source operand is an MMX(TM) technology or an ...
manticore/native/cpu/x86.py
def PMOVMSKB(cpu, op0, op1): """ Moves byte mask to general-purpose register. Creates an 8-bit mask made up of the most significant bit of each byte of the source operand (second operand) and stores the result in the low byte or word of the destination operand (first operand). T...
def PMOVMSKB(cpu, op0, op1): """ Moves byte mask to general-purpose register. Creates an 8-bit mask made up of the most significant bit of each byte of the source operand (second operand) and stores the result in the low byte or word of the destination operand (first operand). T...
[ "Moves", "byte", "mask", "to", "general", "-", "purpose", "register", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5234-L5253
[ "def", "PMOVMSKB", "(", "cpu", ",", "op0", ",", "op1", ")", ":", "arg0", "=", "op0", ".", "read", "(", ")", "arg1", "=", "op1", ".", "read", "(", ")", "res", "=", "0", "for", "i", "in", "reversed", "(", "range", "(", "7", ",", "op1", ".", "...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.PSRLDQ
Packed shift right logical double quadword. Shifts the destination operand (first operand) to the right by the number of bytes specified in the count operand (second operand). The empty high-order bytes are cleared (set to all 0s). If the value specified by the count operand is greater ...
manticore/native/cpu/x86.py
def PSRLDQ(cpu, dest, src): """ Packed shift right logical double quadword. Shifts the destination operand (first operand) to the right by the number of bytes specified in the count operand (second operand). The empty high-order bytes are cleared (set to all 0s). If the value sp...
def PSRLDQ(cpu, dest, src): """ Packed shift right logical double quadword. Shifts the destination operand (first operand) to the right by the number of bytes specified in the count operand (second operand). The empty high-order bytes are cleared (set to all 0s). If the value sp...
[ "Packed", "shift", "right", "logical", "double", "quadword", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5256-L5279
[ "def", "PSRLDQ", "(", "cpu", ",", "dest", ",", "src", ")", ":", "# TODO(yan): Verify the correctness of truncating SRC like this ( tests", "# use '-1' as the value", "temp", "=", "Operators", ".", "EXTRACT", "(", "src", ".", "read", "(", ")", ",", "0", ",", "8", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.MOVZX
Moves with zero-extend. Copies the contents of the source operand (register or memory location) to the destination operand (register) and zero extends the value to 16 or 32 bits. The size of the converted value depends on the operand-size attribute:: OP0 = ZeroExtend(OP1); ...
manticore/native/cpu/x86.py
def MOVZX(cpu, op0, op1): """ Moves with zero-extend. Copies the contents of the source operand (register or memory location) to the destination operand (register) and zero extends the value to 16 or 32 bits. The size of the converted value depends on the operand-size attribute:...
def MOVZX(cpu, op0, op1): """ Moves with zero-extend. Copies the contents of the source operand (register or memory location) to the destination operand (register) and zero extends the value to 16 or 32 bits. The size of the converted value depends on the operand-size attribute:...
[ "Moves", "with", "zero", "-", "extend", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5299-L5313
[ "def", "MOVZX", "(", "cpu", ",", "op0", ",", "op1", ")", ":", "op0", ".", "write", "(", "Operators", ".", "ZEXTEND", "(", "op1", ".", "read", "(", ")", ",", "op0", ".", "size", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.MOVSX
Moves with sign-extension. Copies the contents of the source operand (register or memory location) to the destination operand (register) and sign extends the value to 16:: OP0 = SignExtend(OP1); :param cpu: current CPU. :param op0: destination operand. :param...
manticore/native/cpu/x86.py
def MOVSX(cpu, op0, op1): """ Moves with sign-extension. Copies the contents of the source operand (register or memory location) to the destination operand (register) and sign extends the value to 16:: OP0 = SignExtend(OP1); :param cpu: current CPU. :...
def MOVSX(cpu, op0, op1): """ Moves with sign-extension. Copies the contents of the source operand (register or memory location) to the destination operand (register) and sign extends the value to 16:: OP0 = SignExtend(OP1); :param cpu: current CPU. :...
[ "Moves", "with", "sign", "-", "extension", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5316-L5329
[ "def", "MOVSX", "(", "cpu", ",", "op0", ",", "op1", ")", ":", "op0", ".", "write", "(", "Operators", ".", "SEXTEND", "(", "op1", ".", "read", "(", ")", ",", "op1", ".", "size", ",", "op0", ".", "size", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.CQO
RDX:RAX = sign-extend of RAX.
manticore/native/cpu/x86.py
def CQO(cpu): """ RDX:RAX = sign-extend of RAX. """ res = Operators.SEXTEND(cpu.RAX, 64, 128) cpu.RAX = Operators.EXTRACT(res, 0, 64) cpu.RDX = Operators.EXTRACT(res, 64, 64)
def CQO(cpu): """ RDX:RAX = sign-extend of RAX. """ res = Operators.SEXTEND(cpu.RAX, 64, 128) cpu.RAX = Operators.EXTRACT(res, 0, 64) cpu.RDX = Operators.EXTRACT(res, 64, 64)
[ "RDX", ":", "RAX", "=", "sign", "-", "extend", "of", "RAX", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5337-L5343
[ "def", "CQO", "(", "cpu", ")", ":", "res", "=", "Operators", ".", "SEXTEND", "(", "cpu", ".", "RAX", ",", "64", ",", "128", ")", "cpu", ".", "RAX", "=", "Operators", ".", "EXTRACT", "(", "res", ",", "0", ",", "64", ")", "cpu", ".", "RDX", "="...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.CDQ
EDX:EAX = sign-extend of EAX
manticore/native/cpu/x86.py
def CDQ(cpu): """ EDX:EAX = sign-extend of EAX """ cpu.EDX = Operators.EXTRACT(Operators.SEXTEND(cpu.EAX, 32, 64), 32, 32)
def CDQ(cpu): """ EDX:EAX = sign-extend of EAX """ cpu.EDX = Operators.EXTRACT(Operators.SEXTEND(cpu.EAX, 32, 64), 32, 32)
[ "EDX", ":", "EAX", "=", "sign", "-", "extend", "of", "EAX" ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5353-L5357
[ "def", "CDQ", "(", "cpu", ")", ":", "cpu", ".", "EDX", "=", "Operators", ".", "EXTRACT", "(", "Operators", ".", "SEXTEND", "(", "cpu", ".", "EAX", ",", "32", ",", "64", ")", ",", "32", ",", "32", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.CWDE
Converts word to doubleword. :: DX = sign-extend of AX. :param cpu: current CPU.
manticore/native/cpu/x86.py
def CWDE(cpu): """ Converts word to doubleword. :: DX = sign-extend of AX. :param cpu: current CPU. """ bit = Operators.EXTRACT(cpu.AX, 15, 1) cpu.EAX = Operators.SEXTEND(cpu.AX, 16, 32) cpu.EDX = Operators.SEXTEND(bit, 1, 32)
def CWDE(cpu): """ Converts word to doubleword. :: DX = sign-extend of AX. :param cpu: current CPU. """ bit = Operators.EXTRACT(cpu.AX, 15, 1) cpu.EAX = Operators.SEXTEND(cpu.AX, 16, 32) cpu.EDX = Operators.SEXTEND(bit, 1, 32)
[ "Converts", "word", "to", "doubleword", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5360-L5371
[ "def", "CWDE", "(", "cpu", ")", ":", "bit", "=", "Operators", ".", "EXTRACT", "(", "cpu", ".", "AX", ",", "15", ",", "1", ")", "cpu", ".", "EAX", "=", "Operators", ".", "SEXTEND", "(", "cpu", ".", "AX", ",", "16", ",", "32", ")", "cpu", ".", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.RDTSC
Reads time-stamp counter. Loads the current value of the processor's time-stamp counter into the EDX:EAX registers. The time-stamp counter is contained in a 64-bit MSR. The high-order 32 bits of the MSR are loaded into the EDX register, and the low-order 32 bits are loaded into the EAX...
manticore/native/cpu/x86.py
def RDTSC(cpu): """ Reads time-stamp counter. Loads the current value of the processor's time-stamp counter into the EDX:EAX registers. The time-stamp counter is contained in a 64-bit MSR. The high-order 32 bits of the MSR are loaded into the EDX register, and the low-o...
def RDTSC(cpu): """ Reads time-stamp counter. Loads the current value of the processor's time-stamp counter into the EDX:EAX registers. The time-stamp counter is contained in a 64-bit MSR. The high-order 32 bits of the MSR are loaded into the EDX register, and the low-o...
[ "Reads", "time", "-", "stamp", "counter", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5387-L5402
[ "def", "RDTSC", "(", "cpu", ")", ":", "val", "=", "cpu", ".", "icount", "cpu", ".", "RAX", "=", "val", "&", "0xffffffff", "cpu", ".", "RDX", "=", "(", "val", ">>", "32", ")", "&", "0xffffffff" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.SYSCALL
Calls to interrupt procedure. The INT n instruction generates a call to the interrupt or exception handler specified with the destination operand. The INT n instruction is the general mnemonic for executing a software-generated call to an interrupt handler. The INTO instruction is a special ...
manticore/native/cpu/x86.py
def SYSCALL(cpu): """ Calls to interrupt procedure. The INT n instruction generates a call to the interrupt or exception handler specified with the destination operand. The INT n instruction is the general mnemonic for executing a software-generated call to an interrupt handler....
def SYSCALL(cpu): """ Calls to interrupt procedure. The INT n instruction generates a call to the interrupt or exception handler specified with the destination operand. The INT n instruction is the general mnemonic for executing a software-generated call to an interrupt handler....
[ "Calls", "to", "interrupt", "procedure", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5448-L5463
[ "def", "SYSCALL", "(", "cpu", ")", ":", "cpu", ".", "RCX", "=", "cpu", ".", "RIP", "cpu", ".", "R11", "=", "cpu", ".", "RFLAGS", "raise", "Syscall", "(", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.MOVLPD
Moves low packed double-precision floating-point value. Moves a double-precision floating-point value from the source operand (second operand) and the destination operand (first operand). The source and destination operands can be an XMM register or a 64-bit memory location. This instruction al...
manticore/native/cpu/x86.py
def MOVLPD(cpu, dest, src): """ Moves low packed double-precision floating-point value. Moves a double-precision floating-point value from the source operand (second operand) and the destination operand (first operand). The source and destination operands can be an XMM register ...
def MOVLPD(cpu, dest, src): """ Moves low packed double-precision floating-point value. Moves a double-precision floating-point value from the source operand (second operand) and the destination operand (first operand). The source and destination operands can be an XMM register ...
[ "Moves", "low", "packed", "double", "-", "precision", "floating", "-", "point", "value", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5466-L5484
[ "def", "MOVLPD", "(", "cpu", ",", "dest", ",", "src", ")", ":", "value", "=", "src", ".", "read", "(", ")", "if", "src", ".", "size", "==", "64", "and", "dest", ".", "size", "==", "128", ":", "value", "=", "(", "dest", ".", "read", "(", ")", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.MOVHPD
Moves high packed double-precision floating-point value. Moves a double-precision floating-point value from the source operand (second operand) and the destination operand (first operand). The source and destination operands can be an XMM register or a 64-bit memory location. This instruction a...
manticore/native/cpu/x86.py
def MOVHPD(cpu, dest, src): """ Moves high packed double-precision floating-point value. Moves a double-precision floating-point value from the source operand (second operand) and the destination operand (first operand). The source and destination operands can be an XMM register ...
def MOVHPD(cpu, dest, src): """ Moves high packed double-precision floating-point value. Moves a double-precision floating-point value from the source operand (second operand) and the destination operand (first operand). The source and destination operands can be an XMM register ...
[ "Moves", "high", "packed", "double", "-", "precision", "floating", "-", "point", "value", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5487-L5508
[ "def", "MOVHPD", "(", "cpu", ",", "dest", ",", "src", ")", ":", "if", "src", ".", "size", "==", "128", ":", "assert", "dest", ".", "size", "==", "64", "dest", ".", "write", "(", "Operators", ".", "EXTRACT", "(", "src", ".", "read", "(", ")", ",...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.PSUBB
Packed subtract. Performs a SIMD subtract of the packed integers of the source operand (second operand) from the packed integers of the destination operand (first operand), and stores the packed integer results in the destination operand. The source operand can be an MMX(TM) technology register...
manticore/native/cpu/x86.py
def PSUBB(cpu, dest, src): """ Packed subtract. Performs a SIMD subtract of the packed integers of the source operand (second operand) from the packed integers of the destination operand (first operand), and stores the packed integer results in the destination operand. The sourc...
def PSUBB(cpu, dest, src): """ Packed subtract. Performs a SIMD subtract of the packed integers of the source operand (second operand) from the packed integers of the destination operand (first operand), and stores the packed integer results in the destination operand. The sourc...
[ "Packed", "subtract", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5511-L5535
[ "def", "PSUBB", "(", "cpu", ",", "dest", ",", "src", ")", ":", "result", "=", "[", "]", "value_a", "=", "dest", ".", "read", "(", ")", "value_b", "=", "src", ".", "read", "(", ")", "for", "i", "in", "reversed", "(", "range", "(", "0", ",", "d...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.POR
Performs a bitwise logical OR operation on the source operand (second operand) and the destination operand (first operand) and stores the result in the destination operand. The source operand can be an MMX technology register or a 64-bit memory location or it can be an XMM register or a 128-bit memory l...
manticore/native/cpu/x86.py
def POR(cpu, dest, src): """ Performs a bitwise logical OR operation on the source operand (second operand) and the destination operand (first operand) and stores the result in the destination operand. The source operand can be an MMX technology register or a 64-bit memory location or it...
def POR(cpu, dest, src): """ Performs a bitwise logical OR operation on the source operand (second operand) and the destination operand (first operand) and stores the result in the destination operand. The source operand can be an MMX technology register or a 64-bit memory location or it...
[ "Performs", "a", "bitwise", "logical", "OR", "operation", "on", "the", "source", "operand", "(", "second", "operand", ")", "and", "the", "destination", "operand", "(", "first", "operand", ")", "and", "stores", "the", "result", "in", "the", "destination", "op...
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5538-L5546
[ "def", "POR", "(", "cpu", ",", "dest", ",", "src", ")", ":", "res", "=", "dest", ".", "write", "(", "dest", ".", "read", "(", ")", "|", "src", ".", "read", "(", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.XORPS
Performs a bitwise logical OR operation on the source operand (second operand) and the destination operand (first operand) and stores the result in the destination operand. The source operand can be an MMX technology register or a 64-bit memory location or it can be an XMM register or a 128-bit memory l...
manticore/native/cpu/x86.py
def XORPS(cpu, dest, src): """ Performs a bitwise logical OR operation on the source operand (second operand) and the destination operand (first operand) and stores the result in the destination operand. The source operand can be an MMX technology register or a 64-bit memory location or ...
def XORPS(cpu, dest, src): """ Performs a bitwise logical OR operation on the source operand (second operand) and the destination operand (first operand) and stores the result in the destination operand. The source operand can be an MMX technology register or a 64-bit memory location or ...
[ "Performs", "a", "bitwise", "logical", "OR", "operation", "on", "the", "source", "operand", "(", "second", "operand", ")", "and", "the", "destination", "operand", "(", "first", "operand", ")", "and", "stores", "the", "result", "in", "the", "destination", "op...
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5549-L5557
[ "def", "XORPS", "(", "cpu", ",", "dest", ",", "src", ")", ":", "res", "=", "dest", ".", "write", "(", "dest", ".", "read", "(", ")", "^", "src", ".", "read", "(", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.VORPD
Performs a bitwise logical OR operation on the source operand (second operand) and second source operand (third operand) and stores the result in the destination operand (first operand).
manticore/native/cpu/x86.py
def VORPD(cpu, dest, src, src2): """ Performs a bitwise logical OR operation on the source operand (second operand) and second source operand (third operand) and stores the result in the destination operand (first operand). """ res = dest.write(src.read() | src2.read())
def VORPD(cpu, dest, src, src2): """ Performs a bitwise logical OR operation on the source operand (second operand) and second source operand (third operand) and stores the result in the destination operand (first operand). """ res = dest.write(src.read() | src2.read())
[ "Performs", "a", "bitwise", "logical", "OR", "operation", "on", "the", "source", "operand", "(", "second", "operand", ")", "and", "second", "source", "operand", "(", "third", "operand", ")", "and", "stores", "the", "result", "in", "the", "destination", "oper...
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5560-L5565
[ "def", "VORPD", "(", "cpu", ",", "dest", ",", "src", ",", "src2", ")", ":", "res", "=", "dest", ".", "write", "(", "src", ".", "read", "(", ")", "|", "src2", ".", "read", "(", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.VORPS
Performs a bitwise logical OR operation on the source operand (second operand) and second source operand (third operand) and stores the result in the destination operand (first operand).
manticore/native/cpu/x86.py
def VORPS(cpu, dest, src, src2): """ Performs a bitwise logical OR operation on the source operand (second operand) and second source operand (third operand) and stores the result in the destination operand (first operand). """ res = dest.write(src.read() | src2.read())
def VORPS(cpu, dest, src, src2): """ Performs a bitwise logical OR operation on the source operand (second operand) and second source operand (third operand) and stores the result in the destination operand (first operand). """ res = dest.write(src.read() | src2.read())
[ "Performs", "a", "bitwise", "logical", "OR", "operation", "on", "the", "source", "operand", "(", "second", "operand", ")", "and", "second", "source", "operand", "(", "third", "operand", ")", "and", "stores", "the", "result", "in", "the", "destination", "oper...
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5568-L5573
[ "def", "VORPS", "(", "cpu", ",", "dest", ",", "src", ",", "src2", ")", ":", "res", "=", "dest", ".", "write", "(", "src", ".", "read", "(", ")", "|", "src2", ".", "read", "(", ")", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.PTEST
PTEST PTEST set the ZF flag if all bits in the result are 0 of the bitwise AND of the first source operand (first operand) and the second source operand (second operand). Also this sets the CF flag if all bits in the result are 0 of the bitwise AND of the second source operand (secon...
manticore/native/cpu/x86.py
def PTEST(cpu, dest, src): """ PTEST PTEST set the ZF flag if all bits in the result are 0 of the bitwise AND of the first source operand (first operand) and the second source operand (second operand). Also this sets the CF flag if all bits in the result are 0 of the bitwise ...
def PTEST(cpu, dest, src): """ PTEST PTEST set the ZF flag if all bits in the result are 0 of the bitwise AND of the first source operand (first operand) and the second source operand (second operand). Also this sets the CF flag if all bits in the result are 0 of the bitwise ...
[ "PTEST", "PTEST", "set", "the", "ZF", "flag", "if", "all", "bits", "in", "the", "result", "are", "0", "of", "the", "bitwise", "AND", "of", "the", "first", "source", "operand", "(", "first", "operand", ")", "and", "the", "second", "source", "operand", "...
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5576-L5589
[ "def", "PTEST", "(", "cpu", ",", "dest", ",", "src", ")", ":", "cpu", ".", "OF", "=", "False", "cpu", ".", "AF", "=", "False", "cpu", ".", "PF", "=", "False", "cpu", ".", "SF", "=", "False", "cpu", ".", "ZF", "=", "(", "Operators", ".", "EXTR...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.MOVQ
Move quadword. Copies a quadword from the source operand (second operand) to the destination operand (first operand). The source and destination operands can be MMX(TM) technology registers, XMM registers, or 64-bit memory locations. This instruction can be used to move a between two MMX regist...
manticore/native/cpu/x86.py
def MOVQ(cpu, dest, src): """ Move quadword. Copies a quadword from the source operand (second operand) to the destination operand (first operand). The source and destination operands can be MMX(TM) technology registers, XMM registers, or 64-bit memory locations. This instructio...
def MOVQ(cpu, dest, src): """ Move quadword. Copies a quadword from the source operand (second operand) to the destination operand (first operand). The source and destination operands can be MMX(TM) technology registers, XMM registers, or 64-bit memory locations. This instructio...
[ "Move", "quadword", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5621-L5671
[ "def", "MOVQ", "(", "cpu", ",", "dest", ",", "src", ")", ":", "# mmx to mmx or mmx to mem", "if", "dest", ".", "size", "==", "src", ".", "size", "and", "dest", ".", "size", "==", "64", ":", "dest", ".", "write", "(", "src", ".", "read", "(", ")", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.MOVSD
Move Scalar Double-Precision Floating-Point Value Moves a scalar double-precision floating-point value from the source operand (second operand) to the destination operand (first operand). The source and destination operands can be XMM registers or 64-bit memory locations. This instructi...
manticore/native/cpu/x86.py
def MOVSD(cpu, dest, src): """ Move Scalar Double-Precision Floating-Point Value Moves a scalar double-precision floating-point value from the source operand (second operand) to the destination operand (first operand). The source and destination operands can be XMM registers or ...
def MOVSD(cpu, dest, src): """ Move Scalar Double-Precision Floating-Point Value Moves a scalar double-precision floating-point value from the source operand (second operand) to the destination operand (first operand). The source and destination operands can be XMM registers or ...
[ "Move", "Scalar", "Double", "-", "Precision", "Floating", "-", "Point", "Value" ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5674-L5699
[ "def", "MOVSD", "(", "cpu", ",", "dest", ",", "src", ")", ":", "assert", "dest", ".", "type", "!=", "'memory'", "or", "src", ".", "type", "!=", "'memory'", "value", "=", "Operators", ".", "EXTRACT", "(", "src", ".", "read", "(", ")", ",", "0", ",...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.MOVSS
Moves a scalar single-precision floating-point value Moves a scalar single-precision floating-point value from the source operand (second operand) to the destination operand (first operand). The source and destination operands can be XMM registers or 32-bit memory locations. This instruction ca...
manticore/native/cpu/x86.py
def MOVSS(cpu, dest, src): """ Moves a scalar single-precision floating-point value Moves a scalar single-precision floating-point value from the source operand (second operand) to the destination operand (first operand). The source and destination operands can be XMM registers ...
def MOVSS(cpu, dest, src): """ Moves a scalar single-precision floating-point value Moves a scalar single-precision floating-point value from the source operand (second operand) to the destination operand (first operand). The source and destination operands can be XMM registers ...
[ "Moves", "a", "scalar", "single", "-", "precision", "floating", "-", "point", "value" ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5702-L5738
[ "def", "MOVSS", "(", "cpu", ",", "dest", ",", "src", ")", ":", "if", "dest", ".", "type", "==", "'register'", "and", "src", ".", "type", "==", "'register'", ":", "assert", "dest", ".", "size", "==", "128", "and", "src", ".", "size", "==", "128", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.VEXTRACTF128
Extract Packed Floating-Point Values Extracts 128-bits of packed floating-point values from the source operand (second operand) at an 128-bit offset from imm8[0] into the destination operand (first operand). The destination may be either an XMM register or an 128-bit memory location.
manticore/native/cpu/x86.py
def VEXTRACTF128(cpu, dest, src, offset): """Extract Packed Floating-Point Values Extracts 128-bits of packed floating-point values from the source operand (second operand) at an 128-bit offset from imm8[0] into the destination operand (first operand). The destination may be either an ...
def VEXTRACTF128(cpu, dest, src, offset): """Extract Packed Floating-Point Values Extracts 128-bits of packed floating-point values from the source operand (second operand) at an 128-bit offset from imm8[0] into the destination operand (first operand). The destination may be either an ...
[ "Extract", "Packed", "Floating", "-", "Point", "Values" ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5781-L5790
[ "def", "VEXTRACTF128", "(", "cpu", ",", "dest", ",", "src", ",", "offset", ")", ":", "offset", "=", "offset", ".", "read", "(", ")", "dest", ".", "write", "(", "Operators", ".", "EXTRACT", "(", "src", ".", "read", "(", ")", ",", "offset", "*", "1...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.PALIGNR
ALIGNR concatenates the destination operand (the first operand) and the source operand (the second operand) into an intermediate composite, shifts the composite at byte granularity to the right by a constant immediate, and extracts the right- aligned result into the destination.
manticore/native/cpu/x86.py
def PALIGNR(cpu, dest, src, offset): """ALIGNR concatenates the destination operand (the first operand) and the source operand (the second operand) into an intermediate composite, shifts the composite at byte granularity to the right by a constant immediate, and extracts the right- ...
def PALIGNR(cpu, dest, src, offset): """ALIGNR concatenates the destination operand (the first operand) and the source operand (the second operand) into an intermediate composite, shifts the composite at byte granularity to the right by a constant immediate, and extracts the right- ...
[ "ALIGNR", "concatenates", "the", "destination", "operand", "(", "the", "first", "operand", ")", "and", "the", "source", "operand", "(", "the", "second", "operand", ")", "into", "an", "intermediate", "composite", "shifts", "the", "composite", "at", "byte", "gra...
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5855-L5864
[ "def", "PALIGNR", "(", "cpu", ",", "dest", ",", "src", ",", "offset", ")", ":", "dest", ".", "write", "(", "Operators", ".", "EXTRACT", "(", "Operators", ".", "CONCAT", "(", "dest", ".", "size", "*", "2", ",", "dest", ".", "read", "(", ")", ",", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.PSLLDQ
Packed Shift Left Logical Double Quadword Shifts the destination operand (first operand) to the left by the number of bytes specified in the count operand (second operand). The empty low-order bytes are cleared (set to all 0s). If the value specified by the count operand is greater th...
manticore/native/cpu/x86.py
def PSLLDQ(cpu, dest, src): """ Packed Shift Left Logical Double Quadword Shifts the destination operand (first operand) to the left by the number of bytes specified in the count operand (second operand). The empty low-order bytes are cleared (set to all 0s). If the value specified by ...
def PSLLDQ(cpu, dest, src): """ Packed Shift Left Logical Double Quadword Shifts the destination operand (first operand) to the left by the number of bytes specified in the count operand (second operand). The empty low-order bytes are cleared (set to all 0s). If the value specified by ...
[ "Packed", "Shift", "Left", "Logical", "Double", "Quadword", "Shifts", "the", "destination", "operand", "(", "first", "operand", ")", "to", "the", "left", "by", "the", "number", "of", "bytes", "specified", "in", "the", "count", "operand", "(", "second", "oper...
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5867-L5885
[ "def", "PSLLDQ", "(", "cpu", ",", "dest", ",", "src", ")", ":", "count", "=", "Operators", ".", "ZEXTEND", "(", "src", ".", "read", "(", ")", ",", "dest", ".", "size", "*", "2", ")", "byte_count", "=", "Operators", ".", "ITEBV", "(", "src", ".", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.PSRLQ
Shift Packed Data Right Logical Shifts the bits in the individual quadword in the destination operand to the right by the number of bits specified in the count operand . As the bits in the data elements are shifted right, the empty high-order bits are cleared (set to 0). If the value sp...
manticore/native/cpu/x86.py
def PSRLQ(cpu, dest, src): """Shift Packed Data Right Logical Shifts the bits in the individual quadword in the destination operand to the right by the number of bits specified in the count operand . As the bits in the data elements are shifted right, the empty high-order bits are clear...
def PSRLQ(cpu, dest, src): """Shift Packed Data Right Logical Shifts the bits in the individual quadword in the destination operand to the right by the number of bits specified in the count operand . As the bits in the data elements are shifted right, the empty high-order bits are clear...
[ "Shift", "Packed", "Data", "Right", "Logical" ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5889-L5921
[ "def", "PSRLQ", "(", "cpu", ",", "dest", ",", "src", ")", ":", "count", "=", "src", ".", "read", "(", ")", "count", "=", "Operators", ".", "ITEBV", "(", "src", ".", "size", ",", "Operators", ".", "UGT", "(", "count", ",", "63", ")", ",", "64", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
X86Cpu.VPSHUFB
Packed shuffle bytes. Copies bytes from source operand (second operand) and inserts them in the destination operand (first operand) at locations selected with the order operand (third operand). :param cpu: current CPU. :param op0: destination operand. :param op1: source operand...
manticore/native/cpu/x86.py
def VPSHUFB(cpu, op0, op1, op3): """ Packed shuffle bytes. Copies bytes from source operand (second operand) and inserts them in the destination operand (first operand) at locations selected with the order operand (third operand). :param cpu: current CPU. :param op0: de...
def VPSHUFB(cpu, op0, op1, op3): """ Packed shuffle bytes. Copies bytes from source operand (second operand) and inserts them in the destination operand (first operand) at locations selected with the order operand (third operand). :param cpu: current CPU. :param op0: de...
[ "Packed", "shuffle", "bytes", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L5988-L6021
[ "def", "VPSHUFB", "(", "cpu", ",", "op0", ",", "op1", ",", "op3", ")", ":", "size", "=", "op0", ".", "size", "arg0", "=", "op0", ".", "read", "(", ")", "arg1", "=", "op1", ".", "read", "(", ")", "arg3", "=", "Operators", ".", "ZEXTEND", "(", ...
54c5a15b1119c523ae54c09972413e8b97f11629
valid
AMD64Cpu.XLATB
Table look-up translation. Locates a byte entry in a table in memory, using the contents of the AL register as a table index, then copies the contents of the table entry back into the AL register. The index in the AL register is treated as an unsigned integer. The XLAT and XLATB instruc...
manticore/native/cpu/x86.py
def XLATB(cpu): """ Table look-up translation. Locates a byte entry in a table in memory, using the contents of the AL register as a table index, then copies the contents of the table entry back into the AL register. The index in the AL register is treated as an unsigned...
def XLATB(cpu): """ Table look-up translation. Locates a byte entry in a table in memory, using the contents of the AL register as a table index, then copies the contents of the table entry back into the AL register. The index in the AL register is treated as an unsigned...
[ "Table", "look", "-", "up", "translation", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L6228-L6253
[ "def", "XLATB", "(", "cpu", ")", ":", "cpu", ".", "AL", "=", "cpu", ".", "read_int", "(", "cpu", ".", "RBX", "+", "Operators", ".", "ZEXTEND", "(", "cpu", ".", "AL", ",", "64", ")", ",", "8", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
I386Cpu.XLATB
Table look-up translation. Locates a byte entry in a table in memory, using the contents of the AL register as a table index, then copies the contents of the table entry back into the AL register. The index in the AL register is treated as an unsigned integer. The XLAT and XLATB instruc...
manticore/native/cpu/x86.py
def XLATB(cpu): """ Table look-up translation. Locates a byte entry in a table in memory, using the contents of the AL register as a table index, then copies the contents of the table entry back into the AL register. The index in the AL register is treated as an unsigned...
def XLATB(cpu): """ Table look-up translation. Locates a byte entry in a table in memory, using the contents of the AL register as a table index, then copies the contents of the table entry back into the AL register. The index in the AL register is treated as an unsigned...
[ "Table", "look", "-", "up", "translation", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/native/cpu/x86.py#L6336-L6361
[ "def", "XLATB", "(", "cpu", ")", ":", "cpu", ".", "AL", "=", "cpu", ".", "read_int", "(", "cpu", ".", "EBX", "+", "Operators", ".", "ZEXTEND", "(", "cpu", ".", "AL", ",", "32", ")", ",", "8", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629
valid
StateBase.constrain
Constrain state. :param manticore.core.smtlib.Bool constraint: Constraint to add
manticore/core/state.py
def constrain(self, constraint): """Constrain state. :param manticore.core.smtlib.Bool constraint: Constraint to add """ constraint = self.migrate_expression(constraint) self._constraints.add(constraint)
def constrain(self, constraint): """Constrain state. :param manticore.core.smtlib.Bool constraint: Constraint to add """ constraint = self.migrate_expression(constraint) self._constraints.add(constraint)
[ "Constrain", "state", "." ]
trailofbits/manticore
python
https://github.com/trailofbits/manticore/blob/54c5a15b1119c523ae54c09972413e8b97f11629/manticore/core/state.py#L158-L164
[ "def", "constrain", "(", "self", ",", "constraint", ")", ":", "constraint", "=", "self", ".", "migrate_expression", "(", "constraint", ")", "self", ".", "_constraints", ".", "add", "(", "constraint", ")" ]
54c5a15b1119c523ae54c09972413e8b97f11629