~/bend-docscommunity

PROOF.bend checks

raw source on the hub · import bend-osdev-bpf@0.1.0.0/PROOF.bend as PROOF

8 imports
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-word64@0.1.0.0/word64.bend as W
import ./insn.bend as I
import ./validate.bend as V
import ./bpf.bend as R
import ./seccomp.bend as S
import ./LAWS.bend as Laws

Definitions

def absurd.bool source · line 12 · raw

@b:Bool -> Type

def absurd.ft source · line 19 · raw

@e:{False{} == True{} : Bool} -> Empty

def absurd.res source · line 23 · raw

@r:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit> -> Type

def absurd.fd source · line 30 · raw

@-e:0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError -> @h:{Fail{e} == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> Empty

def nat.lt_zero source · line 34 · raw

@x:Nat -> {Nat.is_lt(x, 0n) == False{} : Bool}

def need_ok source · line 43 · raw

@b:Bool -> @-e:0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError -> @h:{0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_chk(b, e) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> {b == True{} : Bool}

def both_l source · line 50 · raw

@r:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit> -> @-s:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit> -> @h:{0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_both(r, s) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> {r == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>}

def both_r source · line 59 · raw

@r:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit> -> @-s:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit> -> @h:{0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_both(r, s) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> {s == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>}

def nxt source · line 66 · raw

@-pc:Nat -> @r:Nat -> @h:{0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_check.next(pc, r) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> {Nat.is_lt(0n, r) == True{} : Bool}

def step_ok source · line 72 · raw

@cur:0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfStep -> @r:Nat -> Bool

def step_of_ok source · line 81 · raw

@m:Maybe<&2, 0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfState> -> @-r:Nat -> @e:{Nat.is_lt(0n, r) == True{} : Bool} -> {step_ok(0x9fae2d11be141cc220d6a37e498b4020/bpf.bpf_step.of(m), r) == True{} : Bool}

def scratch_ok source · line 88 · raw

@ok:Bool -> @-k:U32 -> @-st:0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfState -> @-r:Nat -> @e1:{ok == True{} : Bool} -> @e2:{Nat.is_lt(0n, r) == True{} : Bool} -> {step_ok(0x9fae2d11be141cc220d6a37e498b4020/bpf.bpf_scratch(ok, k, st), r) == True{} : Bool}

def mem_ok source · line 95 · raw

@+k:U32 -> @-st:0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfState -> @+pc:Nat -> @+r:Nat -> @+h:{0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_check.mem(k, pc, r) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> {step_ok(0x9fae2d11be141cc220d6a37e498b4020/bpf.bpf_scratch(U32.is_lt(k, 0x9fae2d11be141cc220d6a37e498b4020/insn.bpf_memwords), k, st), r) == True{} : Bool}

def jsel_ok source · line 98 · raw

@hit:Bool -> @-jt:U32 -> @-jf:U32 -> @-r:Nat -> @e1:{Nat.is_lt(U32.to_nat(jt), r) == True{} : Bool} -> @e2:{Nat.is_lt(U32.to_nat(jf), r) == True{} : Bool} -> {Nat.is_lt(0x9fae2d11be141cc220d6a37e498b4020/bpf.bpf_jsel(hit, jt, jf), r) == True{} : Bool}

def jmp_ranges source · line 106 · raw

@+jt:U32 -> @+jf:U32 -> @+pc:Nat -> @+r:Nat -> @+h:{0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_check.jmp(jt, jf, pc, r) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> {0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_both(0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_chk(Nat.is_lt(U32.to_nat(jt), r), 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfErrJump{pc}), 0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_chk(Nat.is_lt(U32.to_nat(jf), r), 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfErrJump{pc})) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>}

the two range checks inside bpf_check.jmp

def jmp_ok source · line 109 · raw

@+jt:U32 -> @+jf:U32 -> @+pc:Nat -> @+r:Nat -> @hit:Bool -> @h:{0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_check.jmp(jt, jf, pc, r) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> {Nat.is_lt(0x9fae2d11be141cc220d6a37e498b4020/bpf.bpf_jsel(hit, jt, jf), r) == True{} : Bool}

def exec_ok source · line 114 · raw

@op:0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp -> @st:0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfState -> @+inp:0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfInput -> @+pc:Nat -> @+r:Nat -> @h:{0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_check.op(op, pc, r) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> {step_ok(0x9fae2d11be141cc220d6a37e498b4020/bpf.bpf_exec(op, st, inp), r) == True{} : Bool}

every instruction that passed its checks steps to an instruction that exists

def go_ok source · line 165 · raw

@xs:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @cur:0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfStep -> @+inp:0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfInput -> @+pc:Nat -> @+v:{0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_check.all(xs, pc) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> @p:{step_ok(cur, List.length(&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp, xs)) == True{} : Bool} -> {Result.is_done(&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, U32, 0x9fae2d11be141cc220d6a37e498b4020/bpf.bpf_run.go(xs, cur, inp)) == True{} : Bool}

A run from a fine step, over instructions that passed their checks, answers Done: induction on the instructions

def add_succ source · line 192 · raw

@+a:Nat -> @+n:Nat -> {Nat.add(a, 1n+n) == 1n+Nat.add(a, n) : Nat}

def add_zero source · line 199 · raw

@+a:Nat -> {Nat.add(a, 0n) == a : Nat}

def g_count source · line 206 · raw

@+xs:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @+n:Nat -> {0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_count.go(xs, n) == Nat.add(List.length(&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp, xs), n) : Nat}

def F_count source · line 214 · raw

@+xs:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> {List.length(&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp, xs) == 0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_count(xs) : Nat}

def g_check source · line 220 · raw

@xs:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @+pc:Nat -> @ok:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit> -> {0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_check.go(xs, pc, ok, List.length(&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp, xs)) == 0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_both(ok, 0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_check.all(xs, pc)) : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>}

the tail form, from any verdict so far, with n the length

def F_check source · line 237 · raw

@+xs:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> {0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_check.all(xs, 0n) == 0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_check.go(xs, 0n, Done{Unit{}}, 0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_count(xs)) : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>}

def ops_l source · line 242 · raw

@v:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit> -> @-n:Nat -> @-need:Bool -> @-prog:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @h:{0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_validate.ops(v, n, need, prog) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> {v == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>}

each pass of bpf_validate_with runs only once the one before it holds

def ops_r source · line 251 · raw

@v:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit> -> @-n:Nat -> @-need:Bool -> @-prog:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @h:{0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_validate.ops(v, n, need, prog) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> {0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_validate.mem(0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_check.go(prog, 0n, Done{Unit{}}, n), need, n, prog) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>}

def mem_l source · line 258 · raw

@v:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit> -> @-need:Bool -> @-n:Nat -> @-prog:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @h:{0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_validate.mem(v, need, n, prog) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> {v == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>}

def valid_all source · line 269 · raw

@opts:0x9fae2d11be141cc220d6a37e498b4020/validate.BpfValidateOptions -> @+prog:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @ok:{0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_validate_with(opts, prog) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> {0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_check.all(prog, 0n) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>}

what bpf_validate's success gives a run: the checks of every instruction, and at least one instruction

def valid_nonempty source · line 275 · raw

@opts:0x9fae2d11be141cc220d6a37e498b4020/validate.BpfValidateOptions -> @+prog:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @ok:{0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_validate_with(opts, prog) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> {Nat.is_lt(0n, List.length(&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp, prog)) == True{} : Bool}

def go_stop source · line 288 · raw

@q:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @-w:U32 -> @+inp:0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfInput -> {0x9fae2d11be141cc220d6a37e498b4020/bpf.bpf_run.go(q, 0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfStop{w}, inp) == Done{w} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, U32>}

def go_app source · line 295 · raw

@xs:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @+q:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @cur:0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfStep -> @+inp:0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfInput -> @+pc:Nat -> @+v:{0x9fae2d11be141cc220d6a37e498b4020/validate.bpf_check.all(xs, pc) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> @p:{step_ok(cur, List.length(&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp, xs)) == True{} : Bool} -> {0x9fae2d11be141cc220d6a37e498b4020/bpf.bpf_run.go(List.append(&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp, xs, q), cur, inp) == 0x9fae2d11be141cc220d6a37e498b4020/bpf.bpf_run.go(xs, cur, inp) : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, U32>}

def skip_app source · line 327 · raw

@skipped:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @+rest:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @+st:0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfState -> @+inp:0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfInput -> {0x9fae2d11be141cc220d6a37e498b4020/bpf.bpf_run.go(List.append(&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp, skipped, rest), 0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfNext{List.length(&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp, skipped), st}, inp) == 0x9fae2d11be141cc220d6a37e498b4020/bpf.bpf_run.go(rest, 0x9fae2d11be141cc220d6a37e498b4020/bpf.BpfNext{0n, st}, inp) : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, U32>}

def decode_go source · line 487 · raw

@prog:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @+pc:Nat -> {0x9fae2d11be141cc220d6a37e498b4020/insn.bpf_decode.ref.go(0x9fae2d11be141cc220d6a37e498b4020/insn.bpf_encode.ref(prog), pc) == Done{prog} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp>>}

def rev_rr source · line 500 · raw

@-A:Data -> @xs:List<&2, A> -> @acc:List<&2, A> -> @b:List<&2, A> -> {List.reverse.go(&2, A, List.reverse.go(&2, A, xs, acc), b) == List.reverse.go(&2, A, acc, List.append(&2, A, xs, b)) : List<&2, A>}

def app_nil source · line 507 · raw

@-A:Data -> @+xs:List<&2, A> -> {List.append(&2, A, xs, []) == xs : List<&2, A>}

def rev_twice source · line 515 · raw

@-A:Data -> @+xs:List<&2, A> -> {List.reverse.go(&2, A, List.reverse.go(&2, A, xs, []), []) == xs : List<&2, A>}

reversing twice gives the list back

def g_encode source · line 518 · raw

@ops:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @acc:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfRaw> -> {0x9fae2d11be141cc220d6a37e498b4020/insn.bpf_encode.go(ops, acc) == List.reverse.go(&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfRaw, 0x9fae2d11be141cc220d6a37e498b4020/insn.bpf_encode.ref(ops), acc) : List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfRaw>}

def F_encode source · line 525 · raw

@+ops:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> {0x9fae2d11be141cc220d6a37e498b4020/insn.bpf_encode.ref(ops) == 0x9fae2d11be141cc220d6a37e498b4020/insn.bpf_encode(ops) : List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfRaw>}

def dec.after source · line 533 · raw

@acc:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @r:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp>> -> Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp>>

what the tail form ends with, given the instructions decoded so far (acc, last first) and what the structural form answers for the rest

def dec.after2 source · line 540 · raw

@a:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp>> -> @r:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp>> -> Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp>>

def dec_step source · line 547 · raw

@m:Maybe<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @-e:0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError -> @-acc:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @r:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp>> -> {dec.after2(0x9fae2d11be141cc220d6a37e498b4020/insn.bpf_decode.push(m, e, acc), r) == dec.after(acc, 0x9fae2d11be141cc220d6a37e498b4020/insn.bpf_decode.cons(m, e, r)) : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp>>}

def g_decode source · line 558 · raw

@rs:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfRaw> -> @+pc:Nat -> @a:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp>> -> {0x9fae2d11be141cc220d6a37e498b4020/insn.bpf_decode.go(rs, pc, a) == dec.after2(a, 0x9fae2d11be141cc220d6a37e498b4020/insn.bpf_decode.ref.go(rs, pc)) : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp>>}

def dec_nil source · line 574 · raw

@r:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp>> -> {dec.after([], r) == r : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp>>}

def F_decode source · line 581 · raw

@+rs:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfRaw> -> {0x9fae2d11be141cc220d6a37e498b4020/insn.bpf_decode.ref(rs) == 0x9fae2d11be141cc220d6a37e498b4020/insn.bpf_decode(rs) : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp>>}

def nat.lt_not_le source · line 1940 · raw

@x:Nat -> @y:Nat -> @e:{Nat.is_lt(y, x) == True{} : Bool} -> {Nat.is_le(x, y) == False{} : Bool}

def fin_done source · line 1957 · raw

@r:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, U32> -> @e:{Result.is_done(&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, U32, r) == True{} : Bool} -> {Result.is_done(&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, 0x9fae2d11be141cc220d6a37e498b4020/seccomp.SeccompAction, 0x9fae2d11be141cc220d6a37e498b4020/seccomp.seccomp_run.fin(r)) == True{} : Bool}

def sc_l source · line 1964 · raw

@v:Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit> -> @-prog:List<&2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfOp> -> @h:{0x9fae2d11be141cc220d6a37e498b4020/seccomp.seccomp_validate.go(v, prog) == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>} -> {v == Done{Unit{}} : Result<&2, &2, 0x9fae2d11be141cc220d6a37e498b4020/insn.BpfError, Unit>}