path stringlengths 11 221 | func_def stringlengths 14 44.5k | func_head stringlengths 5 1.01k | func_head_types stringlengths 3 1.11k | fname stringlengths 1 1k | signature listlengths 2 53 | asm dict | synth_deps stringlengths 391 32.9k | real_deps stringlengths 5 2.26k ⌀ | synth_io_pairs dict | real_io_pairs dict | synth_exe_wrapper stringlengths 1.17k 41.8k ⌀ | real_exe_wrapper stringclasses 145
values | ref stringlengths 1 83 | synth_iospec stringlengths 4 19.4k | real_iospec stringclasses 144
values | objdump_asm dict | objdump_asm_errors dict | func_call dict | func_call_errors dict | func_call_skip_reason stringclasses 5
values | data_section dict | data_section_errors dict | opt_real_exe_wrapper stringclasses 7
values | opt_real_exe_wrapper_error stringclasses 0
values | opt_angha_exe_wrapper stringlengths 0 41.7k ⌀ | opt_angha_exe_wrapper_error stringclasses 2
values | trivial_function bool 2
classes | no_return bool 2
classes | unused_param bool 2
classes | truncated_funcs bool 2
classes | dummy_udt bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mancoast/cado-nfs/utils/mod_mpz.h | __attribute__ ((unused))
static inline void
modmpz_set_ul (residuempz_t r, const unsigned long s, const modulusmpz_t m)
{
;
mpz_set_ui (r, s);
mpz_mod (r, r, m);
} | void modmpz_set_ul(residuempz_tr, const unsigned longs, const modulusmpz_tm) | __attribute__ ((unused)) void modmpz_set_ul (residuempz_t r, const unsigned long s, const modulusmpz_t m) | modmpz_set_ul | [
"void",
"residuempz_t",
"const unsigned long",
"const modulusmpz_t"
] | {
"target": [
"angha_gcc_x86_O0",
"angha_gcc_x86_Os",
"angha_gcc_x86_O3",
"angha_gcc_arm_O0",
"angha_gcc_arm_Os",
"angha_gcc_arm_O3"
],
"code": [
".globl modmpz_set_ul\n.type modmpz_set_ul, @function\nmodmpz_set_ul:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_of... | #define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | null | null | null | null | null | master | null | null | {
"x86": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"x86-64": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"ARM32": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"ARM64": {
"O0": "",
"O1": "",
"O2": "",
... | {
"x86": {
"O0": "link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574440/C_files/train_synth_compilable_0_oa_x86_O0.o: in function `modmpz_set_ul':\ntrain_synth_compilable_0_oa.c:(.text+0x1c): undefined reference to `mpz_set_ui'\n/usr/bin/ld: train_synth_compilable_0_oa.c:(.text+0x30): undefined ... | null | null | unsupported_param_type:uncategorized | {
"x86": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"x86-64": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"ARM32": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"ARM64": {
"O0": "",
"O1": "",
"O2": "",
... | {
"x86": {
"O0": "link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574440/C_files/train_synth_compilable_0_oa_x86_O0.o: in function `modmpz_set_ul':\ntrain_synth_compilable_0_oa.c:(.text+0x1c): undefined reference to `mpz_set_ui'\n/usr/bin/ld: train_synth_compilable_0_oa.c:(.text+0x30): undefined ... | null | null | null | null | false | false | false | false | false |
PlanetAPL/j-language/jsrc/k.c | A jtxco1(J jt, A w){{if(!(w))return 0;}; {if(!(((w)->t)&(((((I)1L<<0)+((I)1L<<8)+((I)1L<<2)+((I)1L<<3)+((I)1L<<4)+((I)1L<<6)+((I)1L<<7)+((I)1L<<19)+((I)1L<<20)+((I)1L<<10)+((I)1L<<12)+((I)1L<<13)+((I)1L<<14))+(((I)1L<<1)+((I)1L<<17)+((I)1L<<18)+((I)1L<<11))+((I)1L<<5)+((I)1L<<15)+((I)1L<<16))&~(((I)1L<<10)+((I)1L<<12)+... | A jtxco1(Jjt, Aw) | A jtxco1(J jt, A w) | jtxco1 | [
"A",
"J",
"A"
] | {
"target": [
"angha_gcc_x86_O0",
"angha_gcc_x86_Os",
"angha_gcc_x86_O3",
"angha_gcc_arm_O0",
"angha_gcc_arm_Os",
"angha_gcc_arm_O3"
],
"code": [
".globl jtxco1\n.type jtxco1, @function\njtxco1:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.cfi_offse... | #define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | null | null | null | null | null | master | null | null | {
"x86": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"x86-64": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"ARM32": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"ARM64": {
"O0": "",
"O1": "",
"O2": "",
... | {
"x86": {
"O0": "link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574441/C_files/train_synth_compilable_1_oa_x86_O0.o: in function `jtxco1':\ntrain_synth_compilable_1_oa.c:(.text+0x38): undefined reference to `jtjsignal'\n/usr/bin/ld: train_synth_compilable_1_oa.c:(.text+0x6b): undefined referenc... | null | null | unsupported_param_type:uncategorized | {
"x86": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"x86-64": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"ARM32": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"ARM64": {
"O0": "",
"O1": "",
"O2": "",
... | {
"x86": {
"O0": "link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574441/C_files/train_synth_compilable_1_oa_x86_O0.o: in function `jtxco1':\ntrain_synth_compilable_1_oa.c:(.text+0x38): undefined reference to `jtjsignal'\n/usr/bin/ld: train_synth_compilable_1_oa.c:(.text+0x6b): undefined referenc... | null | null | null | null | true | false | false | false | false |
brenocfg/AnghaBench/mruby/src/extr_string.c_mrb_str_capitalize_bang.c | __attribute__((used)) static mrb_value
mrb_str_capitalize_bang(mrb_state *mrb, mrb_value str)
{
char *p, *pend;
mrb_bool modify = FALSE;
struct RString *s = mrb_str_ptr(str);
mrb_str_modify_keep_ascii(mrb, s);
if (RSTR_LEN(s) == 0 || !RSTR_PTR(s)) return mrb_nil_value();
p = RSTR_PTR(s); pend = RSTR_PTR(s)... | mrb_value mrb_str_capitalize_bang(mrb_state *mrb, mrb_valuestr) | mrb_value mrb_str_capitalize_bang(mrb_state *mrb, mrb_value str) | mrb_str_capitalize_bang | [
"mrb_value",
"mrb_state *",
"mrb_value"
] | {
"target": [
"angha_gcc_x86_O0",
"angha_gcc_x86_Os",
"angha_gcc_x86_O3",
"angha_gcc_arm_O0",
"angha_gcc_arm_Os",
"angha_gcc_arm_O3"
],
"code": [
".globl mrb_str_capitalize_bang\n.type mrb_str_capitalize_bang, @function\nmrb_str_capitalize_bang:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\t... | #define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | null | null | null | null | null | master | null | null | {
"x86": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"x86-64": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"ARM32": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"ARM64": {
"O0": "",
"O1": "",
"O2": "",
... | {
"x86": {
"O0": "link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574447/C_files/train_synth_compilable_2_oa_x86_O0.o: in function `mrb_str_capitalize_bang':\ntrain_synth_compilable_2_oa.c:(.text+0x23): undefined reference to `mrb_str_ptr'\n/usr/bin/ld: train_synth_compilable_2_oa.c:(.text+0x37):... | null | null | unsupported_param_type:uncategorized | {
"x86": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"x86-64": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"ARM32": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"ARM64": {
"O0": "",
"O1": "",
"O2": "",
... | {
"x86": {
"O0": "link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574447/C_files/train_synth_compilable_2_oa_x86_O0.o: in function `mrb_str_capitalize_bang':\ntrain_synth_compilable_2_oa.c:(.text+0x23): undefined reference to `mrb_str_ptr'\n/usr/bin/ld: train_synth_compilable_2_oa.c:(.text+0x37):... | null | null | null | null | false | false | false | false | true |
tkriik/libarrow/basic.c | vec4d
vec4d_sub(vec4d a, vec4d b)
{
((a).x) -= ((b).x), ((a).y) -= ((b).y);
((a).z) -= ((b).z), ((a).w) -= ((b).w);
return a;
} | vec4d vec4d_sub(vec4da, vec4db) | vec4d vec4d_sub(vec4d a, vec4d b) | vec4d_sub | [
"vec4d",
"vec4d",
"vec4d"
] | {
"target": [
"angha_gcc_x86_O0",
"angha_gcc_x86_Os",
"angha_gcc_x86_O3",
"angha_gcc_arm_O0",
"angha_gcc_arm_Os",
"angha_gcc_arm_O3"
],
"code": [
".globl vec4d_sub\n.type vec4d_sub, @function\nvec4d_sub:\n.LFB0:\n\t.cfi_startproc\n\tendbr64\n\tpushq\t%rbp\n\t.cfi_def_cfa_offset 16\n\t.... | #define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | null | null | null | null | null | master | null | null | {
"x86": {
"O0": "<vec4d_sub>:\n\n 117d:\t55 \tpush %ebp\n 117e:\t89 e5 \tmov %esp,%ebp\n 1180:\te8 66 00 00 00 \tcall 11eb <__x86.get_pc_thunk.ax>\n 1185:\t05 57 2e 00 00 \tadd $0x2e57,%eax\n 118a:\t8b 55 18 \tmov 0x18(%ebp),%ed... | {
"x86": {
"O0": null,
"O1": null,
"O2": null,
"O3": null,
"Os": null
},
"x86-64": {
"O0": null,
"O1": null,
"O2": null,
"O3": null,
"Os": null
},
"ARM32": {
"O0": null,
"O1": null,
"O2": null,
"O3": null,
"Os": null
},
"ARM64": {
"O0": null,... | null | null | unsupported_param_type:uncategorized | {
"x86": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"x86-64": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"ARM32": {
"O0": "",
"O1": "",
"O2": "",
"O3": "",
"Os": ""
},
"ARM64": {
"O0": "",
"O1": "",
"O2": "",
... | {
"x86": {
"O0": null,
"O1": null,
"O2": null,
"O3": null,
"Os": null
},
"x86-64": {
"O0": null,
"O1": null,
"O2": null,
"O3": null,
"Os": null
},
"ARM32": {
"O0": null,
"O1": null,
"O2": null,
"O3": null,
"Os": null
},
"ARM64": {
"O0": null,... | null | null | null | null | false | false | false | false | false |
brenocfg/AnghaBench/linux/drivers/net/ethernet/mellanox/mlx4/extr_alloc.c_mlx4_zone_remove_one.c | "int mlx4_zone_remove_one(struct mlx4_zone_allocator *zones, u32 uid)\n{\n\tstruct mlx4_zone_entry *(...TRUNCATED) | int mlx4_zone_remove_one(struct mlx4_zone_allocator *zones, u32uid) | int mlx4_zone_remove_one(struct mlx4_zone_allocator *zones, u32 uid) | mlx4_zone_remove_one | [
"int",
"struct mlx4_zone_allocator *",
"u32"
] | {"target":["angha_gcc_x86_O0","angha_gcc_x86_Os","angha_gcc_x86_O3","angha_gcc_arm_O0","angha_gcc_ar(...TRUNCATED) | "#define NULL ((void*)0)\ntypedef unsigned long size_t; // Customize by platform.\ntypedef long int(...TRUNCATED) | null | null | null | null | null | master | null | null | {"x86":{"O0":"","O1":"","O2":"","O3":"","Os":""},"x86-64":{"O0":"","O1":"","O2":"","O3":"","Os":""},(...TRUNCATED) | {"x86":{"O0":"link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574449/C_files/train_(...TRUNCATED) | {"x86":{"O0":"","O1":"","O2":"","O3":"","Os":""},"x86-64":{"O0":"","O1":"","O2":"","O3":"","Os":""},(...TRUNCATED) | {"x86":{"O0":"compile_failed: <work>/train_synth_compilable_4_fc.c:19: warning: \"NULL\" redefined\n(...TRUNCATED) | all_architectures_failed | {"x86":{"O0":"","O1":"","O2":"","O3":"","Os":""},"x86-64":{"O0":"","O1":"","O2":"","O3":"","Os":""},(...TRUNCATED) | {"x86":{"O0":"link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574449/C_files/train_(...TRUNCATED) | null | null | null | null | false | false | false | false | true |
JamesPane-Joyce/Talos/SPASS-3.7/SPASS/partition.c | "PARTITION part_Union(PARTITION p, ECLASS c1, ECLASS c2)\n\n\n\n\n\n{\n ELEMENT nf1, nf2, aux;\n# 2(...TRUNCATED) | PARTITION part_Union(PARTITIONp, ECLASSc1, ECLASSc2) | PARTITION part_Union(PARTITION p, ECLASS c1, ECLASS c2) | part_Union | [
"PARTITION",
"PARTITION",
"ECLASS",
"ECLASS"
] | {"target":["angha_gcc_x86_O0","angha_gcc_x86_Os","angha_gcc_x86_O3","angha_gcc_arm_O0","angha_gcc_ar(...TRUNCATED) | "#define NULL ((void*)0)\ntypedef unsigned long size_t; // Customize by platform.\ntypedef long int(...TRUNCATED) | null | null | null | null | null | master | null | null | {"x86":{"O0":"","O1":"","O2":"","O3":"","Os":""},"x86-64":{"O0":"","O1":"","O2":"","O3":"","Os":""},(...TRUNCATED) | {"x86":{"O0":"link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574450/C_files/train_(...TRUNCATED) | null | null | unsupported_param_type:uncategorized | {"x86":{"O0":"","O1":"","O2":"","O3":"","Os":""},"x86-64":{"O0":"","O1":"","O2":"","O3":"","Os":""},(...TRUNCATED) | {"x86":{"O0":"link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574450/C_files/train_(...TRUNCATED) | null | null | null | null | false | false | false | false | false |
bairyn/opencurry/src/type_base_memory_manager.c | "memory_manager_t *memory_manager_init\n ( memory_manager_t *dest\n\n , manager_mmalloc_fun_t mmal(...TRUNCATED) | "memory_manager_t * memory_manager_init(memory_manager_t *dest, manager_mmalloc_fun_tmmalloc, manage(...TRUNCATED) | "memory_manager_t *memory_manager_init ( memory_manager_t *dest , manager_mmalloc_fun_t mmalloc , ma(...TRUNCATED) | memory_manager_init | ["memory_manager_t *","memory_manager_t *","manager_mmalloc_fun_t","manager_mfree_fun_t","manager_mr(...TRUNCATED) | {"target":["angha_gcc_x86_O0","angha_gcc_x86_Os","angha_gcc_x86_O3","angha_gcc_arm_O0","angha_gcc_ar(...TRUNCATED) | "#define NULL ((void*)0)\ntypedef unsigned long size_t; // Customize by platform.\ntypedef long int(...TRUNCATED) | null | null | null | null | null | master | null | null | {"x86":{"O0":"","O1":"","O2":"","O3":"","Os":""},"x86-64":{"O0":"","O1":"","O2":"","O3":"","Os":""},(...TRUNCATED) | {"x86":{"O0":"link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574451/C_files/train_(...TRUNCATED) | null | null | unsupported_param_type:uncategorized | {"x86":{"O0":"","O1":"","O2":"","O3":"","Os":""},"x86-64":{"O0":"","O1":"","O2":"","O3":"","Os":""},(...TRUNCATED) | {"x86":{"O0":"link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574451/C_files/train_(...TRUNCATED) | null | null | null | null | false | false | false | false | false |
cdfmr/neopop-ezx/Core/TLCS-900h/TLCS900h_interpret.c | "_u16 generic_SBC_W(_u16 dst, _u16 src)\n{\n _u16 half = (dst & 0xF) - (src & 0xF) - (sr & 1);\n _u3(...TRUNCATED) | _u16 generic_SBC_W(_u16dst, _u16src) | _u16 generic_SBC_W(_u16 dst, _u16 src) | generic_SBC_W | [
"_u16",
"_u16",
"_u16"
] | {"target":["angha_gcc_x86_O0","angha_gcc_x86_Os","angha_gcc_x86_O3","angha_gcc_arm_O0","angha_gcc_ar(...TRUNCATED) | "#define NULL ((void*)0)\ntypedef unsigned long size_t; // Customize by platform.\ntypedef long int(...TRUNCATED) | null | null | null | null | null | master | null | null | {"x86":{"O0":"<generic_SBC_W>:\n\n 117d:\t55 \tpush %ebp\n 117e:\t89 e5 (...TRUNCATED) | {"x86":{"O0":null,"O1":null,"O2":null,"O3":null,"Os":null},"x86-64":{"O0":null,"O1":null,"O2":null,"(...TRUNCATED) | null | null | unsupported_param_type:uncategorized | {"x86":{"O0":".bss @0x400c (4 bytes, zero-initialized)","O1":".bss @0x400c (4 bytes, zero-initialize(...TRUNCATED) | {"x86":{"O0":null,"O1":null,"O2":null,"O3":null,"Os":null},"x86-64":{"O0":null,"O1":null,"O2":null,"(...TRUNCATED) | null | null | null | null | false | false | false | false | false |
ashmanmode/TTSDNNRepo/code/audioSR/Experiments/HTK/htk/HTKLib/esignal.c | "int\nReadFieldList(FieldList *list,\n int arch,\n FILE *file)\n{\n swit(...TRUNCATED) | int ReadFieldList(FieldList *list, intarch, int *file) | int ReadFieldList(FieldList *list, int arch, FILE *file) | ReadFieldList | [
"int",
"FieldList *",
"int",
"int *"
] | {"target":["angha_gcc_x86_O0","angha_gcc_x86_Os","angha_gcc_x86_O3","angha_gcc_arm_O0","angha_gcc_ar(...TRUNCATED) | "#define NULL ((void*)0)\ntypedef unsigned long size_t; // Customize by platform.\ntypedef long int(...TRUNCATED) | null | null | null | null | null | local | null | null | {"x86":{"O0":"","O1":"","O2":"","O3":"","Os":""},"x86-64":{"O0":"","O1":"","O2":"","O3":"","Os":""},(...TRUNCATED) | {"x86":{"O0":"link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574464/C_files/train_(...TRUNCATED) | {"x86":{"O0":"","O1":"","O2":"","O3":"","Os":""},"x86-64":{"O0":"","O1":"","O2":"","O3":"","Os":""},(...TRUNCATED) | {"x86":{"O0":"compile_failed: <work>/train_synth_compilable_8_fc.c:19: warning: \"NULL\" redefined\n(...TRUNCATED) | all_architectures_failed | {"x86":{"O0":"","O1":"","O2":"","O3":"","Os":""},"x86-64":{"O0":"","O1":"","O2":"","O3":"","Os":""},(...TRUNCATED) | {"x86":{"O0":"link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574464/C_files/train_(...TRUNCATED) | null | null | null | null | false | false | false | false | false |
dwyer/li/src/port.c | "extern li_port_t *li_port_open_output_file(li_str_t *filename)\n{\n li_port_t *port = li_port_ne(...TRUNCATED) | li_port_t * li_port_open_output_file(li_str_t *filename) | extern li_port_t *li_port_open_output_file(li_str_t *filename) | li_port_open_output_file | [
"li_port_t *",
"li_str_t *"
] | {"target":["angha_gcc_x86_O0","angha_gcc_x86_Os","angha_gcc_x86_O3","angha_gcc_arm_O0","angha_gcc_ar(...TRUNCATED) | "#define NULL ((void*)0)\ntypedef unsigned long size_t; // Customize by platform.\ntypedef long int(...TRUNCATED) | null | null | null | null | null | master | null | null | {"x86":{"O0":"","O1":"","O2":"","O3":"","Os":""},"x86-64":{"O0":"","O1":"","O2":"","O3":"","Os":""},(...TRUNCATED) | {"x86":{"O0":"link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574465/C_files/train_(...TRUNCATED) | {"x86":{"O0":"","O1":"","O2":"","O3":"","Os":""},"x86-64":{"O0":"","O1":"","O2":"","O3":"","Os":""},(...TRUNCATED) | {"x86":{"O0":"compile_failed: <work>/train_synth_compilable_9_fc.c:19: warning: \"NULL\" redefined\n(...TRUNCATED) | all_architectures_failed | {"x86":{"O0":"","O1":"","O2":"","O3":"","Os":""},"x86-64":{"O0":"","O1":"","O2":"","O3":"","Os":""},(...TRUNCATED) | {"x86":{"O0":"link_failed: /usr/bin/ld: output_files/binary_fields_regen_work/w574465/C_files/train_(...TRUNCATED) | null | null | null | null | false | false | false | false | false |
ExeBench-FHD
ExeBench-FHD is an audited and extended version of ExeBench, a dataset of executable C functions used to train and evaluate neural decompilers. Auditing all 6.56M functions in ExeBench's ten splits turned up nine data-quality problems. In three of them, the function's C code cannot be recovered from its assembly alone:
- P1, parameter order: x86-64, ARM32 and ARM64 pass integer/pointer and floating-point parameters in separate registers, so the callee's assembly does not show how mixed parameters are ordered.
- P2, unused parameters: from
-O1up, an unused parameter leaves no trace in the callee's assembly. - P3, data sections: constants live in
.rodata,.dataor.bss, and the function's code only refers to them by address.
ExeBench-FHD keeps the 16 columns that load_dataset("jordiae/exebench")
returns, with the same names, types and values, and adds 16: the assembly
of a call to the function (func_call, P1), wrappers that test a
reduced-arity decompilation (opt_*_exe_wrapper, P2), data-section contents
(data_section, P3), disassembly of the linked binary on four architectures
at five optimization levels (objdump_asm), and five warning flags.
Problematic records are flagged rather than removed, so ExeBench-FHD works as a
drop-in replacement for ExeBench: code written against jordiae/exebench
runs unchanged, and users choose what to filter.
Splits
| Split | Rows |
|---|---|
train_synth_compilable |
4,159,373 |
train_real_compilable |
885,074 |
train_not_compilable |
715,700 |
train_synth_simple_io |
640,116 |
train_synth_rich_io |
107,250 |
train_real_simple_io |
42,769 |
valid_synth |
5,000 |
valid_real |
2,133 |
test_synth |
5,000 |
test_real |
2,134 |
| Total | 6,564,549 |
The splits and their rows are ExeBench's own; ExeBench-FHD only adds columns.
Loading
from datasets import load_dataset
# Pass data_files so only that split's shards are downloaded
# (split= alone downloads every split before selecting one).
test = load_dataset("<anonymous-repo-id>", data_files="test_real-*.parquet", split="train")
# The training splits are large - stream them rather than downloading:
train = load_dataset("<anonymous-repo-id>", split="train_real_compilable", streaming=True)
All columns are typed Arrow columns; no decoding is needed for the ExeBench-FHD fields:
row = test[0]
row["objdump_asm"]["x86-64"]["O2"] # disassembly of the function, x86-64, -O2
row["data_section"]["ARM64"]["O2"] # data the function reads, ARM64, -O2
row["func_call"]["ARM32"]["O3"] # call site of the function, ARM32, -O3
As in ExeBench, real_iospec / synth_iospec and each I/O-pair value are
JSON strings (json.loads them).
The warning flags are plain booleans. For example, the rows with none of the four data-quality flags set (63.85% of the corpus):
clean = test.filter(lambda r: not (r["dummy_udt"] or r["truncated_funcs"]
or r["no_return"] or r["trivial_function"]))
Fields
Architectures are x86, x86-64, ARM32, ARM64; optimization levels are
O0, O1, O2, O3, Os. Per-architecture fields are structs
{arch: {level: str}} with all 20 entries present; an entry is null
when it does not apply or could not be produced, and the companion *_errors
field explains why. func_call and func_call_errors are null as a whole
when no call site was generated (see func_call_skip_reason).
Added by ExeBench-FHD (16)
| Field | Type | Description |
|---|---|---|
objdump_asm |
{arch: {level: str}} |
objdump disassembly of the function from the linked binary (static/inline stripped before compiling, so optimized builds are not empty). |
objdump_asm_errors |
{arch: {level: str}} |
Why an objdump_asm entry is empty; null = no error. |
func_call |
{arch: {level: str}} |
Assembly of the call site in a driver main that calls the function (renamed func0) with arguments derived from argc/argv, so the compiler cannot fold them away. Shows how each argument is passed (P1). |
func_call_errors |
{arch: {level: str}} |
Why a func_call entry is empty; null = no error. |
func_call_skip_reason |
str | null | Why no call site was generated: e.g. unsupported_param_type:<category> (struct/union by value, SIMD, _Complex), fname_is_main, all_architectures_failed. null = attempted. |
data_section |
{arch: {level: str}} |
Contents of the data sections (.rodata, .data, .bss, …) the function references, from the same binary as objdump_asm (P3). Empty when the function reads no such data. |
data_section_errors |
{arch: {level: str}} |
Why a data_section entry could not be produced; null = no error. |
unused_param |
bool | The function has a parameter it never uses, which optimized assembly drops (P2). |
opt_real_exe_wrapper |
str | null | real_exe_wrapper rewritten to call the function without its unused parameters, so a reduced-arity decompilation can be executed and tested. Set when unused_param is true. |
opt_real_exe_wrapper_error |
str | null | Why the wrapper could not be adapted. |
opt_angha_exe_wrapper |
str | null | Same, for synth_exe_wrapper (synthetic I/O). |
opt_angha_exe_wrapper_error |
str | null | Why the wrapper could not be adapted. |
no_return |
bool | Non-void return type, but no return statement. |
dummy_udt |
bool | A dependency replaces a real user-defined type with a {int dummy;} placeholder. |
trivial_function |
bool | Trivial body: empty, a bare return, or at most two non-blank lines. |
truncated_funcs |
bool | func_def is truncated upstream: its return type (or part of its name) is missing although func_head has it. K&R implicit-int definitions are not flagged. |
ExeBench fields (16, unchanged)
These are the columns of load_dataset("jordiae/exebench"), in the same order
and with the same types.
| Field | Type | Description |
|---|---|---|
path |
str | owner/repo/path/to/file.c of the function's GitHub source. |
func_def |
str | C definition of the function. |
func_head |
str | Function header as extracted from the source. |
func_head_types |
str | Function header with each parameter's type and name. |
fname |
str | Function name. |
signature |
list[str] | Return type, then the parameter types. |
asm |
list[{target, code}] |
Compiler-generated assembly of the function per target ({real|angha}_gcc_{x86|arm}_{O0|O3|Os}). |
synth_deps / real_deps |
str | Dependencies (types, globals, prototypes): synthesized (AnghaBench-style) / from the original repository. |
synth_io_pairs / real_io_pairs |
list[{input, output, dummy_funcs, dummy_funcs_seed}] |
Input/output examples; input and output are lists of {var, value} with value JSON-encoded. |
synth_exe_wrapper / real_exe_wrapper |
str | null | C++ harness that runs the function on I/O examples. |
ref |
str | Git ref (branch) of that repository, e.g. master. |
synth_iospec / real_iospec |
str (JSON) | I/O specification used to build the harness. |
real_* fields use the dependencies from the original repository; synth_*
fields use synthesized ones. (opt_angha_exe_wrapper* keeps the raw ExeBench
angha prefix but pairs with synth_exe_wrapper.)
Licensing
ExeBench-FHD follows ExeBench's licensing. All C functions keep the original
license of their GitHub repository (identified by path and ref). The fields
ExeBench-FHD adds are released under the MIT license, as are ExeBench's own
contributions. The code that produces them is released under Apache-2.0.
Citation
ExeBench-FHD is under anonymous review; its citation will be added here. Please also cite ExeBench:
@inproceedings{armengol2022exebench,
title = {ExeBench: an ML-scale dataset of executable C functions},
author = {Armengol-Estap{\'e}, Jordi and Woodruff, Jackson and Brauckmann, Alexander and
de Souza Magalh{\~a}es, Jos{\'e} Wesley and O'Boyle, Michael F. P.},
booktitle = {Proceedings of the 6th ACM SIGPLAN International Symposium on Machine Programming},
pages = {50--59},
year = {2022},
doi = {10.1145/3520312.3534867}
}
- Downloads last month
- 46