MCPcopy Create free account
hub / github.com/Jesserc/gevm / lt

Function lt

gevm/instructions.go:107–116  ·  view source on GitHub ↗

Comparisons

(evm *EVM)

Source from the content-addressed store, hash-verified

105
106// Comparisons
107func lt(evm *EVM) {
108 a, b := evm.Stack.Pop(), evm.Stack.Pop()
109 ret := uint256.NewInt(0)
110 if a.Lt(&b) {
111 ret = uint256.NewInt(1)
112 }
113 evm.Stack.Push(ret)
114 evm.PC++
115 evm.deductGas(3)
116}
117
118func slt(evm *EVM) {
119 a, b := evm.Stack.Pop(), evm.Stack.Pop()

Callers

nothing calls this directly

Calls 3

PopMethod · 0.80
PushMethod · 0.80
deductGasMethod · 0.80

Tested by

no test coverage detected