law divide_by_zero_x

bend-osdev-bpf@0.1.0.0 · LAWS.bend:200

import bend-osdev-bpf@0.1.0.0/LAWS.bend as LAWS
import Base
import bend-osdev-bpf@0.1.0.0/insn.bend as I
import bend-osdev-bpf@0.1.0.0/bpf.bend as R

200# so does a division by X = 0
201law divide_by_zero_x:
202  {R.bpf_run(R.bpf_packet(pkt_arp()), [I.BpfLdImm{7}, I.BpfAlu{I.BpfDiv{}, I.BpfX{}}, I.BpfRet{I.BpfRetK{1}}]) == Done{0} : Result<&2, &2, I.BpfError, U32>}

Uses (11)

Used by (0)

No other definition uses this definition.