S.Random_typeSamplers for random Michelson types.
val m_type :
size:int ->
?blacklist:(type_name -> bool) ->
unit ->
Mavryk_protocol_001_PtAtLas.Protocol.Script_typed_ir.ex_ty
Mavryk_benchmark.Base_samplers.samplerm_type ~size ?blacklist samples a type containing exactly size constructors. The blacklist is a predicate which can be used to discard some unwanted cases.
val m_comparable_type :
size:int ->
Mavryk_protocol_001_PtAtLas.Protocol.Script_ir_translator.ex_comparable_ty
Mavryk_benchmark.Base_samplers.samplerm_comparable_type ~size samples a comparable type containing exactly size constructors.