Skip to content

Commit

Permalink
Adopt function signature from FI directly (#106)
Browse files Browse the repository at this point in the history
* [x] Use the function signatures provided in FI API.
* [x] Remove our function signature generation code.
* [x] Update all benchmarks.
  • Loading branch information
DonggeLiu authored Feb 15, 2024
1 parent a93f8e6 commit 9a6f861
Show file tree
Hide file tree
Showing 323 changed files with 2,068 additions and 2,066 deletions.
10 changes: 5 additions & 5 deletions benchmark-sets/all/abseil-cpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- "name": ""
"type": "char *"
"return_type": "bool"
"signature": "bool absl::str_format_internal::FormatArgImpl::Dispatch<long long>(absl::str_format_internal::FormatArgImpl::Data, absl::str_format_internal::FormatConversionSpecImpl, void*)"
"signature": "int long>(const unsigned long long)"
- "name": "_ZN4absl19str_format_internal13FormatArgImpl8DispatchIlEEbNS1_4DataENS0_24FormatConversionSpecImplEPv"
"params":
- "name": "arg"
Expand All @@ -22,7 +22,7 @@
- "name": ""
"type": "char *"
"return_type": "bool"
"signature": "bool absl::str_format_internal::FormatArgImpl::Dispatch<long>(absl::str_format_internal::FormatArgImpl::Data, absl::str_format_internal::FormatConversionSpecImpl, void*)"
"signature": "int long>(const unsigned long long)"
- "name": "_ZN4absl19str_format_internal13FormatArgImpl8DispatchIsEEbNS1_4DataENS0_24FormatConversionSpecImplEPv"
"params":
- "name": "arg"
Expand All @@ -34,7 +34,7 @@
- "name": ""
"type": "char *"
"return_type": "bool"
"signature": "bool absl::str_format_internal::FormatArgImpl::Dispatch<short>(absl::str_format_internal::FormatArgImpl::Data, absl::str_format_internal::FormatConversionSpecImpl, void*)"
"signature": "int long>(const unsigned long long)"
- "name": "_ZN4absl19str_format_internal13FormatArgImpl8DispatchIaEEbNS1_4DataENS0_24FormatConversionSpecImplEPv"
"params":
- "name": "arg"
Expand All @@ -46,7 +46,7 @@
- "name": ""
"type": "char *"
"return_type": "bool"
"signature": "bool absl::str_format_internal::FormatArgImpl::Dispatch<signed char>(absl::str_format_internal::FormatArgImpl::Data, absl::str_format_internal::FormatConversionSpecImpl, void*)"
"signature": "int long>(const unsigned long long)"
- "name": "_ZN4absl19str_format_internal13FormatArgImpl8DispatchIcEEbNS1_4DataENS0_24FormatConversionSpecImplEPv"
"params":
- "name": "arg"
Expand All @@ -58,7 +58,7 @@
- "name": ""
"type": "char *"
"return_type": "bool"
"signature": "bool absl::str_format_internal::FormatArgImpl::Dispatch<char>(absl::str_format_internal::FormatArgImpl::Data, absl::str_format_internal::FormatConversionSpecImpl, void*)"
"signature": "int long>(const unsigned long long)"
"language": "c++"
"project": "abseil-cpp"
"target_name": "string_escape_fuzzer"
Expand Down
10 changes: 5 additions & 5 deletions benchmark-sets/all/ada-url.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
- "name": "base_length"
"type": "size_t"
"return_type": "bool"
"signature": "bool ada_can_parse_with_base(char * input, size_t input_length, char * base, size_t base_length)"
"signature": "bool ada_can_parse_with_base(const char *, size_t, const char *, size_t)"
- "name": "ada_can_parse"
"params":
- "name": "input"
"type": "char *"
- "name": "length"
"type": "size_t"
"return_type": "bool"
"signature": "bool ada_can_parse(char * input, size_t length)"
"signature": "bool ada_can_parse(const char *, size_t)"
- "name": "ada_parse_with_base"
"params":
- "name": "input"
Expand All @@ -30,7 +30,7 @@
- "name": "base_length"
"type": "size_t"
"return_type": "char *"
"signature": "char * ada_parse_with_base(char * input, size_t input_length, char * base, size_t base_length)"
"signature": "ada_url ada_parse_with_base(const char *, size_t, const char *, size_t)"
- "name": "ada_set_href"
"params":
- "name": "result"
Expand All @@ -40,7 +40,7 @@
- "name": "length"
"type": "size_t"
"return_type": "bool"
"signature": "bool ada_set_href(char * result, char * input, size_t length)"
"signature": "bool ada_set_href(ada_url, const char *, size_t)"
- "name": "_ZN3ada14url_aggregator8set_hrefENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE"
"params":
- "name": "this"
Expand All @@ -50,7 +50,7 @@
- "name": ""
"type": "size_t"
"return_type": "bool"
"signature": "ada::url_aggregator::set_href(std::__1::basic_string_view<char, std::__1::char_traits<char> >)"
"signature": "bool url_aggregator::set_href(const string_view)"
"language": "c++"
"project": "ada-url"
"target_name": "parse"
Expand Down
10 changes: 5 additions & 5 deletions benchmark-sets/all/alembic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- "name": ""
"type": "std::shared_ptr *"
"return_type": "void"
"signature": "Alembic::AbcCoreOgawa::v12::AprImpl::getSample(long, std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::ArraySample>&)"
"signature": "void getSample(AprImpl *, index_t, ArraySamplePtr)"
- "name": "_ZN7Alembic12AbcCoreOgawa3v1215ReadArraySampleENSt3__110shared_ptrINS_5Ogawa3v125IDataEEES7_mRKNS_15AbcCoreAbstract3v128DataTypeERNS3_INS9_11ArraySampleEEE"
"params":
- "name": "iDims"
Expand All @@ -22,7 +22,7 @@
- "name": ""
"type": "std::shared_ptr *"
"return_type": "void"
"signature": "Alembic::AbcCoreOgawa::v12::ReadArraySample(std::__1::shared_ptr<Alembic::Ogawa::v12::IData>, std::__1::shared_ptr<Alembic::Ogawa::v12::IData>, unsigned long, Alembic::AbcCoreAbstract::v12::DataType const&, std::__1::shared_ptr<Alembic::AbcCoreAbstract::v12::ArraySample>&)"
"signature": "void ReadArraySample(IDataPtr, IDataPtr, size_t, const DataType, ArraySamplePtr)"
- "name": "_ZN7Alembic14AbcCoreFactory3v128IFactory10getArchiveERKNSt3__16vectorINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS8_ISA_EEEE"
"params":
- "name": ""
Expand All @@ -32,7 +32,7 @@
- "name": ""
"type": "std::vector *"
"return_type": "void"
"signature": "Alembic::AbcCoreFactory::v12::IFactory::getArchive(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&)"
"signature": "void ~IFactory(IFactory *)"
- "name": "_ZN7Alembic14AbcCoreFactory3v128IFactory10getArchiveERKNSt3__16vectorINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS8_ISA_EEEERNS2_8CoreTypeE"
"params":
- "name": ""
Expand All @@ -44,7 +44,7 @@
- "name": ""
"type": "int *"
"return_type": "void"
"signature": "Alembic::AbcCoreFactory::v12::IFactory::getArchive(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&, Alembic::AbcCoreFactory::v12::IFactory::CoreType&)"
"signature": "void ~IFactory(IFactory *)"
- "name": "_ZN7Alembic12AbcCoreOgawa3v127SprImpl9getSampleElPv"
"params":
- "name": ""
Expand All @@ -54,7 +54,7 @@
- "name": ""
"type": "char *"
"return_type": "void"
"signature": "Alembic::AbcCoreOgawa::v12::SprImpl::getSample(long, void*)"
"signature": "void getSample(SprImpl *, index_t, void *)"
"language": "c++"
"project": "alembic"
"target_name": "alembic_dump_info_fuzzer"
Expand Down
10 changes: 5 additions & 5 deletions benchmark-sets/all/apache-httpd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,31 @@
- "name": "p"
"type": "struct apr_pool_t *"
"return_type": "void"
"signature": "void register_hooks(struct apr_pool_t * p)"
"signature": "void register_hooks(apr_pool_t *)"
- "name": "event_hooks"
"params":
- "name": "p"
"type": "struct apr_pool_t *"
"return_type": "void"
"signature": "void event_hooks(struct apr_pool_t * p)"
"signature": "void event_hooks(apr_pool_t *)"
- "name": "ap_process_http_connection"
"params":
- "name": "c"
"type": "struct conn_rec *"
"return_type": "int"
"signature": "int ap_process_http_connection(struct conn_rec * c)"
"signature": "int ap_process_http_connection(conn_rec *)"
- "name": "ap_process_http_sync_connection"
"params":
- "name": "c"
"type": "struct conn_rec *"
"return_type": "int"
"signature": "int ap_process_http_sync_connection(struct conn_rec * c)"
"signature": "int ap_process_http_sync_connection(conn_rec *)"
- "name": "ap_process_http_async_connection"
"params":
- "name": "c"
"type": "struct conn_rec *"
"return_type": "int"
"signature": "int ap_process_http_async_connection(struct conn_rec * c)"
"signature": "int ap_process_http_async_connection(conn_rec *)"
"language": "c"
"project": "apache-httpd"
"target_name": "fuzz_utils"
Expand Down
8 changes: 4 additions & 4 deletions benchmark-sets/all/arduinojson.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@
- "name": "this"
"type": "ArduinoJson::V703HB4::detail::MsgPackDeserializer *"
"return_type": "void"
"signature": "ArduinoJson::V703HB4::detail::MsgPackDeserializer<ArduinoJson::V703HB4::detail::BoundedReader<unsigned char const*, void> >::~MsgPackDeserializer()"
"signature": "void void> >::~MsgPackDeserializer()"
- "name": "_ZN11ArduinoJson7V703HB46detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEED2Ev"
"params":
- "name": "this"
"type": "ArduinoJson::V703HB4::detail::JsonDeserializer *"
"return_type": "void"
"signature": "ArduinoJson::V703HB4::detail::JsonDeserializer<ArduinoJson::V703HB4::detail::BoundedReader<unsigned char const*, void> >::~JsonDeserializer()"
"signature": "void void> >::~JsonDeserializer()"
- "name": "_ZNK11ArduinoJson7V703HB415SerializedValueIPKcE4sizeEv"
"params":
- "name": "this"
"type": "ArduinoJson::V703HB4::SerializedValue *"
"return_type": "size_t"
"signature": "ArduinoJson::V703HB4::SerializedValue<char const*>::size() const"
"signature": "size_t const SerializedValue<const char >::size()"
- "name": "_ZN11ArduinoJson7V703HB46detail11VariantSlotdlEPvS3_"
"params":
- "name": ""
"type": "char *"
- "name": ""
"type": "char *"
"return_type": "void"
"signature": "ArduinoJson::V703HB4::detail::VariantSlot::operator delete(void*, void*)"
"signature": "void delete(void *, void *)"
"language": "c++"
"project": "arduinojson"
"target_name": "msgpack_fuzzer"
Expand Down
10 changes: 5 additions & 5 deletions benchmark-sets/all/aspell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- "name": ""
"type": "acommon::Config *"
"return_type": "void"
"signature": "aspeller::create_default_readonly_dict(acommon::StringEnumeration*, acommon::Config&)"
"signature": "PosibErr<void> create_default_readonly_dict()"
- "name": "_ZN12_GLOBAL__N_116WritableReplDict5mergeERN7acommon7FStreamENS1_10ParmStringEPNS1_6ConfigE"
"params":
- "name": "this"
Expand All @@ -24,7 +24,7 @@
- "name": ""
"type": "acommon::Config *"
"return_type": "void"
"signature": "(anonymous namespace)::WritableReplDict::merge(acommon::FStream&, acommon::ParmString, acommon::Config*)"
"signature": "PosibErr<void> merge()"
- "name": "_ZN12_GLOBAL__N_112WritableDict5mergeERN7acommon7FStreamENS1_10ParmStringEPNS1_6ConfigE"
"params":
- "name": "this"
Expand All @@ -40,7 +40,7 @@
- "name": ""
"type": "acommon::Config *"
"return_type": "void"
"signature": "(anonymous namespace)::WritableDict::merge(acommon::FStream&, acommon::ParmString, acommon::Config*)"
"signature": "PosibErr<void> merge()"
- "name": "_ZN12_GLOBAL__N_16createEPN7acommon17StringEnumerationERKN8aspeller8LanguageERNS0_6ConfigE"
"params":
- "name": "els"
Expand All @@ -52,7 +52,7 @@
- "name": ""
"type": "acommon::Config *"
"return_type": "void"
"signature": "(anonymous namespace)::create(acommon::StringEnumeration*, aspeller::Language const&, acommon::Config&)"
"signature": "PosibErr<void> create()"
- "name": "_ZN7acommon23set_mode_from_extensionEPNS_6ConfigENS_10ParmStringEP8_IO_FILE"
"params":
- "name": "config"
Expand All @@ -66,7 +66,7 @@
- "name": ""
"type": "struct _IO_FILE *"
"return_type": "void"
"signature": "acommon::set_mode_from_extension(acommon::Config*, acommon::ParmString, _IO_FILE*)"
"signature": "PosibErr<void> set_mode_from_extension()"
"language": "c++"
"project": "aspell"
"target_name": "aspell_fuzzer"
Expand Down
10 changes: 5 additions & 5 deletions benchmark-sets/all/astc-encoder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
- "name": "pcb"
"type": "char *"
"return_type": "void"
"signature": "symbolic_to_physical(block_size_descriptor const&, symbolic_compressed_block const&, unsigned char*)"
"signature": "void symbolic_to_physical(const block_size_descriptor, const symbolic_compressed_block, uint8_t *)"
- "name": "_ZL15get_quant_level12quant_method"
"params":
- "name": "method"
"type": "int"
"return_type": "int"
"signature": "get_quant_level(quant_method)"
"signature": "unsigned int get_quant_level(quant_method)"
- "name": "_Z10encode_ise12quant_methodjPKhPhj"
"params":
- "name": "quant_level"
Expand All @@ -28,15 +28,15 @@
- "name": "bit_offset"
"type": "int"
"return_type": "void"
"signature": "encode_ise(quant_method, unsigned int, unsigned char const*, unsigned char*, unsigned int)"
"signature": "void encode_ise(quant_method, unsigned int, const uint8_t *, uint8_t *, unsigned int)"
- "name": "_Z22is_legal_2d_block_sizejj"
"params":
- "name": "xdim"
"type": "int"
- "name": "ydim"
"type": "int"
"return_type": "bool"
"signature": "is_legal_2d_block_size(unsigned int, unsigned int)"
"signature": "bool is_legal_2d_block_size(unsigned int, unsigned int)"
- "name": "_Z22is_legal_3d_block_sizejjj"
"params":
- "name": "xdim"
Expand All @@ -46,7 +46,7 @@
- "name": "zdim"
"type": "int"
"return_type": "bool"
"signature": "is_legal_3d_block_size(unsigned int, unsigned int, unsigned int)"
"signature": "bool is_legal_3d_block_size(unsigned int, unsigned int, unsigned int)"
"language": "c++"
"project": "astc-encoder"
"target_name": "fuzz_astc_physical_to_symbolic"
Expand Down
57 changes: 57 additions & 0 deletions benchmark-sets/all/augeas.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
"functions":
- "name": "aug_save"
"params":
- "name": "aug"
"type": "struct augeas *"
"return_type": "int"
"signature": "int aug_save(augeas *)"
- "name": "tree_save"
"params":
- "name": "aug"
"type": "struct augeas *"
- "name": "tree"
"type": "struct tree *"
- "name": "path"
"type": "char *"
"return_type": "int"
"signature": "int tree_save(augeas *, tree *, const char *)"
- "name": "transform_save"
"params":
- "name": "aug"
"type": "struct augeas *"
- "name": "xfm"
"type": "struct tree *"
- "name": "path"
"type": "char *"
- "name": "tree"
"type": "struct tree *"
"return_type": "int"
"signature": "int transform_save(augeas *, tree *, const char *, tree *)"
- "name": "aug_preview"
"params":
- "name": "aug"
"type": "struct augeas *"
- "name": "path"
"type": "char *"
- "name": "out"
"type": "char **"
"return_type": "int"
"signature": "int aug_preview(augeas *, const char *, char **)"
- "name": "aug_text_retrieve"
"params":
- "name": "aug"
"type": "struct augeas *"
- "name": "lens"
"type": "char *"
- "name": "node_in"
"type": "char *"
- "name": "path"
"type": "char *"
- "name": "node_out"
"type": "char *"
"return_type": "int"
"signature": "int aug_text_retrieve(augeas *, const char *, const char *, const char *, const char *)"
"language": "c++"
"project": "augeas"
"target_name": "augeas_escape_name_fuzzer"
"target_path": "/src/augeas_escape_name_fuzzer.cc"
8 changes: 4 additions & 4 deletions benchmark-sets/all/avahi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- "name": "aa"
"type": "int"
"return_type": "struct AvahiDnsPacket *"
"signature": "struct AvahiDnsPacket * avahi_dns_packet_new_reply(struct AvahiDnsPacket * p, int mtu, int copy_queries, int aa)"
"signature": "AvahiDnsPacket * avahi_dns_packet_new_reply(AvahiDnsPacket *, unsigned int, int, int)"
- "name": "avahi_get_host_name_strdup"
"params": []
"return_type": "char *"
Expand All @@ -22,7 +22,7 @@
- "name": "size"
"type": "size_t"
"return_type": "char *"
"signature": "char * avahi_get_host_name(char * ret_s, size_t size)"
"signature": "char * avahi_get_host_name(char *, size_t)"
- "name": "avahi_string_list_add_pair"
"params":
- "name": "l"
Expand All @@ -32,15 +32,15 @@
- "name": "value"
"type": "char *"
"return_type": "struct AvahiStringList *"
"signature": "struct AvahiStringList * avahi_string_list_add_pair(struct AvahiStringList * l, char * key, char * value)"
"signature": "AvahiStringList * avahi_string_list_add_pair(AvahiStringList *, const char *, const char *)"
- "name": "avahi_string_list_add_printf"
"params":
- "name": "l"
"type": "struct AvahiStringList *"
- "name": "format"
"type": "char *"
"return_type": "struct AvahiStringList *"
"signature": "struct AvahiStringList * avahi_string_list_add_printf(struct AvahiStringList * l, char * format)"
"signature": "AvahiStringList * avahi_string_list_add_printf(AvahiStringList *, const char *, void)"
"language": "c++"
"project": "avahi"
"target_name": "fuzz-consume-record"
Expand Down
Loading

0 comments on commit 9a6f861

Please sign in to comment.