RAD
Collection
Retrieval-Augmented Decompilation • 7 items • Updated
function_name stringlengths 1 87 | binary_name stringlengths 64 64 | author_name stringlengths 2 36 | project_name stringlengths 1 48 | opt stringclasses 1
value | src stringlengths 11 425k | dbg stringclasses 1
value | codeart stringlengths 257 560k | lmpa stringlengths 619 152k |
|---|---|---|---|---|---|---|---|---|
main_lorenz | 18ba826ac31830a73aba61dc9990ca60507abe36300168b1d3124d77e38500a7 | lh3 | lianti | NA | int main_lorenz(int argc, char *argv[])
{
bam_plp_t plp;
BGZF *fp;
bam_hdr_t *h;
const bam_pileup1_t *p;
int i, c, n_plp, tid, pos, step = 1000;
uint64_t *cnt, bed_len = 0, sum_partial = 0, cov = 0, tot = 0, tot_partial = 0;
void *bed = 0;
while ((c = getopt(argc, argv, "b:s:")) >= 0) {
if (c == 'b') {
be... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_430613", "function_addr": 4392467, "binary_name": "18ba826ac31830a73aba61dc9990ca60507abe36300168b1d3124d77e38500a7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 90h"], [3, "mov [rbp+argc], edi"], [4,... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/18ba8... | |
raw_close | cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da | aclements | mtrace | NA | static void raw_close(BlockDriverState *bs)
{
BDRVRawState *s = bs->opaque;
if (s->fd >= 0) {
close(s->fd);
s->fd = -1;
if (s->aligned_buf != NULL)
qemu_vfree(s->aligned_buf);
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_442330", "function_addr": 4465456, "binary_name": "cc7eb91bd0d1f267d417b082eda72b746468e69048449bb22bfbc4468f0e77da.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/cc7eb... | |
HUFv07_getDTableDesc | a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821 | acama | libxdisasm | NA | static DTableDesc HUFv07_getDTableDesc(const HUFv07_DTable* table)
{
DTableDesc dtd;
memcpy(&dtd, table, sizeof(dtd));
return dtd;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43DC88", "function_addr": 4447368, "binary_name": "a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_18], rdi"], [3, "mov rax, [rbp+var... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/a0c53... | |
btf_type_visit_str_offs | feda8be2137e1ca53e8082ecae6cfbea19ddaf0e7963aa620ad58be1c3aa369b | intel | kvm-sgx | NA | int btf_type_visit_str_offs(struct btf_type *t, str_off_visit_fn visit, void *ctx)
{
int i, n, err;
err = visit(&t->name_off, ctx);
if (err)
return err;
switch (btf_kind(t)) {
case BTF_KIND_STRUCT:
case BTF_KIND_UNION: {
struct btf_member *m = btf_members(t);
for (i = 0, n = btf_vlen(t); i < n; i++, m++)... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42F248", "function_addr": 4387400, "binary_name": "feda8be2137e1ca53e8082ecae6cfbea19ddaf0e7963aa620ad58be1c3aa369b.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 50h"], [3, "mov [rbp+var_38], rdi"], [... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/feda8... | |
DecodeModImmInstruction | 23b57fe50de11e692ac0fdc29e161ccb6cbe21a200aecc695b811f04513510b2 | tandasat | cs_driver | NA | static DecodeStatus DecodeModImmInstruction(MCInst *Inst, uint32_t insn,
uint64_t Addr,
void *Decoder)
{
unsigned Rd = fieldFromInstruction(insn, 0, 5);
unsigned cmode = fieldFromInstruction(insn, 12, 4);
unsigned imm = fieldFromInstruction(insn, 16, 3) << 5;
imm |= fieldFromInstruction(insn, 5, 5);
if (MCIns... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_469090", "function_addr": 4624528, "binary_name": "23b57fe50de11e692ac0fdc29e161ccb6cbe21a200aecc695b811f04513510b2.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_18], rdi"], [... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/23b57... | |
ZSTDv05_copy4 | a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821 | acama | libxdisasm | NA | static void ZSTDv05_copy4(void* dst, const void* src) { memcpy(dst, src, 4); } | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_431843", "function_addr": 4397123, "binary_name": "a0c5370f66e208f8116a57c2ede3423918c5e91893f32c95d645b45223541821.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov [rbp+var_10], ... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/a0c53... | |
Stack_pop | 67d5b516845f1a5189b619fa08251f200ed0c551fc567a5346241564c352debb | cirosantilli | cpp-cheat | NA | int Stack_pop(Stack *stack, void *elem) {
if (stack->nelems == 0)
return 1;
stack->nelems--;
memcpy(elem, &((uint8_t *)(stack->data))[stack->nelems * stack->elem_size], stack->elem_size);
return 0;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_401287", "function_addr": 4199047, "binary_name": "67d5b516845f1a5189b619fa08251f200ed0c551fc567a5346241564c352debb.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 10h"], [3, "mov [rbp+var_8], rdi"], [4... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/67d5b... | |
dm_msg_cache_deinit | 9bbc9de5dd57f4f934e24f9b8a7ac1dacad3c7a25e14002cbd8d0494c83f5fb1 | Ai-Thinker-Open | GPRS_C_SDK | NA | int dm_msg_cache_deinit(void)
{
dm_msg_cache_ctx_t *ctx = _dm_msg_cache_get_ctx();
dm_msg_cache_node_t *node = NULL;
dm_msg_cache_node_t *next = NULL;
_dm_msg_cache_mutex_lock();
list_for_each_entry_safe(node, next, &ctx->dmc_list, linked_list, dm_msg_cache_node_t) {
list_del(&node->linked_... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "dm_msg_cache_deinit", "function_addr": 4335462, "binary_name": "9bbc9de5dd57f4f934e24f9b8a7ac1dacad3c7a25e14002cbd8d0494c83f5fb1.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "call _dm_msg_cache... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/9bbc9... | |
check64_cb | 0dcdc633414e45d27b838a1fde0e9f4d9b83ef1ae00c4d7b391a0b48d531666e | google | honggfuzz | NA | static int check64_cb(struct dl_phdr_info* info, void* data, unsigned elf_flags) {
const uint64_t v = *(const uint64_t*)data;
for (size_t i = 0; i < info->dlpi_phnum; i++) {
/* Look only in the actual binary, and not in libraries */
if (info->dlpi_name[0] != '\0') {
continue;
... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_407820", "function_addr": 4225056, "binary_name": "0dcdc633414e45d27b838a1fde0e9f4d9b83ef1ae00c4d7b391a0b48d531666e.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_28], rdi"], [3, "mov [rbp+var_30],... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/0dcdc... | |
addConstrChildIdxDeps | c554d64d8507512ec7c5460397d7e8fd60edb662d620824236cdfae536ce1f50 | sraoss | pgsql-ivm | NA | static void
addConstrChildIdxDeps(DumpableObject *dobj, const IndxInfo *refidx)
{
SimplePtrListCell *cell;
Assert(dobj->objType == DO_FK_CONSTRAINT);
for (cell = refidx->partattaches.head; cell; cell = cell->next)
{
IndexAttachInfo *attach = (IndexAttachInfo *) cell->ptr;
addObjectDependency(dobj, attach->do... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414F7C", "function_addr": 4280188, "binary_name": "c554d64d8507512ec7c5460397d7e8fd60edb662d620824236cdfae536ce1f50.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_18], rdi"], [... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c554d... | |
zrhhdr | d684d0e103b0580db997ecc931a42fce8955cefc27bedc1ac56a24d435bd8eaf | siemens | meta-iot2000 | NA | static int
zrhhdr(char *hdr)
{
register int c;
register unsigned short crc;
register int n;
if ((c = zgethex()) < 0)
return c;
Rxtype = c;
crc = updcrc(c, 0);
for (n=4; --n >= 0; ++hdr) {
if ((c = zgethex()) < 0)
return c;
crc = updcrc(c, crc);
*hdr = c;
}
if ((c = zgethex()) < 0)
return c;
cr... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40B396", "function_addr": 4240278, "binary_name": "d684d0e103b0580db997ecc931a42fce8955cefc27bedc1ac56a24d435bd8eaf.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r13"], [3, "push r12"], [4, "push rbx"], ... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d684d... | |
pmc_send_get_action | b881a36ac1042d08a153dc6d79e8af7857537b515a74f12df247ec16fc2fe0b7 | nxp-archive | openil_linuxptp | NA | int pmc_send_get_action(struct pmc *pmc, int id)
{
int datalen, pdulen;
struct ptp_message *msg;
struct management_tlv *mgt;
struct tlv_extra *extra;
msg = pmc_message(pmc, GET);
if (!msg) {
return -1;
}
mgt = (struct management_tlv *) msg->management.suffix;
mgt->type = TLV_MANAGEMENT;
datalen = pmc_tlv_d... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40A479", "function_addr": 4236409, "binary_name": "b881a36ac1042d08a153dc6d79e8af7857537b515a74f12df247ec16fc2fe0b7.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_38], rdi"], [... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/b881a... | |
find_dominating_parents | 3ab645463ad13ea30c238ceac9bf56691ea8cada0b7c92413fecc09c2d081d33 | illumos | illumos-gate | NA | static int find_dominating_parents(pseudo_t pseudo, struct instruction *insn,
struct basic_block *bb, unsigned long generation, struct pseudo_list **dominators,
int local)
{
struct basic_block *parent;
FOR_EACH_PTR(bb->parents, parent) {
struct instruction *one;
struct instruction *br;
pseudo_t phi;
FOR_E... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4449C3", "function_addr": 4475331, "binary_name": "3ab645463ad13ea30c238ceac9bf56691ea8cada0b7c92413fecc09c2d081d33.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 90h"], [3, "mov [rbp+var_68], rdi"], [... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/3ab64... | |
display_icon | d4df84ecafb323f6f0a346a3a103c7075467f09b9b7969f8c20d2b007e407a6c | sparkfun | SparkFun_RTK_Firmware | NA | void
display_icon (
ICON_ENTRY * icon
)
{
int bit;
int display_width;
const char * indent = " ";
int index;
int max_index;
int x;
int y;
/*
0x20, 0x60, 0xC0, 0xFF, 0xFF, 0xC0, 0x60, 0x20, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00
**
**
... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_40195B", "function_addr": 4200795, "binary_name": "d4df84ecafb323f6f0a346a3a103c7075467f09b9b7969f8c20d2b007e407a6c.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 30h"], [3, "mov [rbp+var_28], rdi"], [... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/d4df8... | |
filtering_candidates_buffered_kmer_filter_retrieve_region | 2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3 | smarco | gem3-mapper | NA | void filtering_candidates_buffered_kmer_filter_retrieve_region(
filtering_candidates_buffered_t* const filtering_candidates_buffered,
filtering_candidates_t* const filtering_candidates,
filtering_region_t* const filtering_region,
pattern_t* const pattern,
gpu_buffer_kmer_filter_t* const gpu_buffer_k... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_42695B", "function_addr": 4352347, "binary_name": "2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 60h"], [3, "mov [rbp+var_38], rdi"], [... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/26287... | |
snum | f8643e6b5b09093b12ae8fad3c4cdbf0b6ef786af63fd564d389e89ab3be0270 | clerkma | texlive-mobile | NA | long snum(int size)
{
register int i;
register long x;
pc += size;
x = getc(dvifp);
if (x & 0x80)
x -= 0x100;
for (i = size - 1; i > 0; i--)
x = (x << 8) + (unsigned) getc(dvifp);
return x;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402248", "function_addr": 4203080, "binary_name": "f8643e6b5b09093b12ae8fad3c4cdbf0b6ef786af63fd564d389e89ab3be0270.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "push r12"], [3, "push rbx"], [4, "sub rsp, 10... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/f8643... | |
handle_read_request2 | 32e5bef9a534f6a023b94f0e20e0c28fed442ec28edeb1e289ac97b9496f472a | micropython | micropython-unicorn | NA | static uint16_t handle_read_request2(att_connection_t * att_connection, uint8_t * response_buffer, uint16_t response_buffer_size, uint16_t handle){
log_info("ATT_READ_REQUEST: handle %04x", handle);
uint8_t request_type = ATT_READ_REQUEST;
att_iterator_t it;
int ok = att_find_handle(&it, handl... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_437374", "function_addr": 4420468, "binary_name": "32e5bef9a534f6a023b94f0e20e0c28fed442ec28edeb1e289ac97b9496f472a.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 60h"], [3, "mov [rbp+var_48], rdi"], [... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/32e5b... | |
btstack_tlv_posix_append_tag | c0fe0b1d115c9a9d40b2c9859f7dfd1ea6098b73116e2548a49a45e30fbdd252 | bluekitchen | btstack | NA | static void btstack_tlv_posix_append_tag(btstack_tlv_posix_t * self, uint32_t tag, const uint8_t * data, uint32_t data_size){
if (!self->file) return;
log_info("append tag %04x, len %u", tag, data_size);
uint8_t header[8];
big_endian_store_32(header, 0, tag);
big_endian_store_32(header, 4, data_size);
size_t w... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_403068", "function_addr": 4206696, "binary_name": "c0fe0b1d115c9a9d40b2c9859f7dfd1ea6098b73116e2548a49a45e30fbdd252.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 40h"], [3, "mov [rbp+var_28], rdi"], [... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/c0fe0... | |
gba_check_sram_flash | 19d5318b349f2d5485888470c0f50eb4432edaf30b2bf3df0a433de4edc90d52 | insidegadgets | GBxCart-RW | NA | uint8_t gba_check_sram_flash (void) {
uint16_t currAddr = 0x0000;
uint16_t zeroTotal = 0;
hasFlashSave = NOT_CHECKED;
// Special check for certain games
if (strncmp(gameTitle, "CHUCHU ROCKE", 12) == 0 || strncmp(gameTitle, "CHUCHUROCKET", 12) == 0) { // Chu-Chu Rocket!
return SRAM_FLASH_512KBIT;
}
// Pre-r... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_402E02", "function_addr": 4206082, "binary_name": "19d5318b349f2d5485888470c0f50eb4432edaf30b2bf3df0a433de4edc90d52.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 0A0h"], [3, "mov [rbp+var_2], 0"], [4,... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/19d53... | |
sm_passkey_entry | 1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca | micropython | micropython-unicorn | NA | static int sm_passkey_entry(stk_generation_method_t method){
switch (method){
case PK_RESP_INPUT:
case PK_INIT_INPUT:
case PK_BOTH_INPUT:
return 1;
default:
return 0;
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_4259DB", "function_addr": 4348379, "binary_name": "1f4b836241663a98d995a650a671acd1dabc7b5a96a4160d7267c822f4bbfdca.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_4], edi"], [3, "mov eax, [rbp+var_... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/1f4b8... | |
increase_tima | 276536b89cc3e58f9e6dd34cde9d9d4ba21328c5a859320d5e06460e1ec2c7de | LIJI32 | SameBoy | NA | static void increase_tima(GB_gameboy_t *gb)
{
gb->io_registers[GB_IO_TIMA]++;
if (gb->io_registers[GB_IO_TIMA] == 0) {
gb->io_registers[GB_IO_TIMA] = gb->io_registers[GB_IO_TMA];
gb->tima_reload_state = GB_TIMA_RELOADING;
}
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43F156", "function_addr": 4452694, "binary_name": "276536b89cc3e58f9e6dd34cde9d9d4ba21328c5a859320d5e06460e1ec2c7de.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_8], rdi"], [3, "mov rax, [rbp+var_... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/27653... | |
archive_search_se_new | 2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3 | smarco | gem3-mapper | NA | void archive_search_se_new(
search_parameters_t* const search_parameters,
const bool buffered_search,
archive_search_t** const archive_search) {
// Prepare Search
*archive_search = mm_alloc(archive_search_t); // Allocate handler
archive_search_configure(*archive_search,search_parameters,buffered_searc... | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_414651", "function_addr": 4277841, "binary_name": "2628714fc89bbd06927f17c35c7cc10c3c4f3a82276ea56c58894e172e8f25b3.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "sub rsp, 20h"], [3, "mov [rbp+var_8], rdi"], [4... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/26287... | |
AL_HEVC_IsRASL | 5e2a239e524ee6c8d1db011c62e19bf6e5a376e8054688e7b0fce1f13117e67f | Xilinx | vcu-ctrl-sw | NA | bool AL_HEVC_IsRASL(AL_ENut eNUT)
{
return eNUT == AL_HEVC_NUT_RASL_N || eNUT == AL_HEVC_NUT_RASL_R;
} | {"metadata": {"project_name": "lmpa-bins-ret", "function_name": "sub_43876A", "function_addr": 4425578, "binary_name": "5e2a239e524ee6c8d1db011c62e19bf6e5a376e8054688e7b0fce1f13117e67f.elf_extract.pkl\n"}, "code": [[0, "push rbp"], [1, "mov rbp, rsp"], [2, "mov [rbp+var_4], edi"], [3, "cmp [rbp+var_4], 8... | {"prompt": "A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.\n Human: Help user generate meaningful names for variables and functions in the following code snippet.\n\n\n", "prog_name": "gh-dataset-dirty/bins/5e2a2... |