Up – Package index » p4spectec » Sources » builtin » extract.mlp4spectec README Library builtin Library dangling Library dynamic Library dynamic_al Library dynamic_pl Library dynamic_runner Library dynamic_sl Library error_runtime Library inst Library instr Library interp_al Library interp_common Library interp_pl Library interp_sl Library p4 Library p4spectec.backend_boot Library p4spectec.backend_sim Library p4spectec.backend_splice Library p4spectec.backend_testgen_neg Library p4spectec.cache Library p4spectec.coverage Library p4spectec.domain Library p4spectec.frontend Library p4spectec.interface Library p4spectec.interp Library p4spectec.lang Library p4spectec.pass Library p4spectec.runner Library p4spectec.runtime Library p4spectec.stf Library p4spectec.util Library prose Library sim Library spectec Library static Library testgen_neg Library type Library value Sources builtin dangling dynamic dynamic_al dynamic_pl dynamic_runner dynamic_sl error_runtime inst instr interp_al interp_common interp_pl interp_sl p4 p4spectec.backend_boot p4spectec.backend_sim p4spectec.backend_splice p4spectec.backend_testgen_neg p4spectec.cache p4spectec.coverage p4spectec.domain p4spectec.frontend p4spectec.interface p4spectec.interp p4spectec.lang p4spectec.pass p4spectec.runner p4spectec.runtime p4spectec.stf p4spectec.util prose sim spectec static testgen_neg type value 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
open Error
let zero at = function [ ] -> ( ) | _ -> error at "arity mismatch"
let one at = function [ a ] -> a | _ -> error at "arity mismatch"
let two at = function [ a ; b ] -> ( a , b ) | _ -> error at "arity mismatch"
let three at = function
| [ a ; b ; c ] -> ( a , b , c )
| _ -> error at "arity mismatch"
let four at = function
| [ a ; b ; c ; d ] -> ( a , b , c , d )
| _ -> error at "arity mismatch"