id
int32
0
27.3k
func
stringlengths
26
142k
target
bool
2 classes
project
stringclasses
2 values
commit_id
stringlengths
40
40
func_clean
stringlengths
26
131k
vul_lines
dict
normalized_func
stringlengths
24
132k
lines
listlengths
1
2.8k
label
listlengths
1
2.8k
line_no
listlengths
1
2.8k
23,101
static BlockDriver *find_hdev_driver(const char *filename) { int score_max = 0, score; BlockDriver *drv = NULL, *d; QLIST_FOREACH(d, &bdrv_drivers, list) { if (d->bdrv_probe_device) { score = d->bdrv_probe_device(filename); if (score > score_max) { s...
false
qemu
84a12e6648444f517055138a7d7f25a22d7e1029
static BlockDriver *find_hdev_driver(const char *filename) { int score_max = 0, score; BlockDriver *drv = NULL, *d; QLIST_FOREACH(d, &bdrv_drivers, list) { if (d->bdrv_probe_device) { score = d->bdrv_probe_device(filename); if (score > score_max) { s...
{ "code": [], "line_no": [] }
static BlockDriver *FUNC_0(const char *filename) { int VAR_0 = 0, VAR_1; BlockDriver *drv = NULL, *d; QLIST_FOREACH(d, &bdrv_drivers, list) { if (d->bdrv_probe_device) { VAR_1 = d->bdrv_probe_device(filename); if (VAR_1 > VAR_0) { VAR_0 = VAR_1; ...
[ "static BlockDriver *FUNC_0(const char *filename)\n{", "int VAR_0 = 0, VAR_1;", "BlockDriver *drv = NULL, *d;", "QLIST_FOREACH(d, &bdrv_drivers, list) {", "if (d->bdrv_probe_device) {", "VAR_1 = d->bdrv_probe_device(filename);", "if (VAR_1 > VAR_0) {", "VAR_0 = VAR_1;", "drv = d;", "}", "}", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
23,103
static void apb_pci_bridge_init(PCIBus *b) { PCIDevice *dev = pci_bridge_get_device(b); /* * command register: * According to PCI bridge spec, after reset * bus master bit is off * memory space enable bit is off * According to manual (805-1251.pdf). * the reset val...
false
qemu
6eab3de16d36c48a983366b09d0a0029a5260bc3
static void apb_pci_bridge_init(PCIBus *b) { PCIDevice *dev = pci_bridge_get_device(b); pci_set_word(dev->config + PCI_COMMAND, PCI_COMMAND_MEMORY); pci_set_word(dev->config + PCI_STATUS, PCI_STATUS_FAST_BACK | PCI_STATUS_66MHZ | ...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIBus *VAR_0) { PCIDevice *dev = pci_bridge_get_device(VAR_0); pci_set_word(dev->config + PCI_COMMAND, PCI_COMMAND_MEMORY); pci_set_word(dev->config + PCI_STATUS, PCI_STATUS_FAST_BACK | PCI_STATUS_66MHZ | P...
[ "static void FUNC_0(PCIBus *VAR_0)\n{", "PCIDevice *dev = pci_bridge_get_device(VAR_0);", "pci_set_word(dev->config + PCI_COMMAND,\nPCI_COMMAND_MEMORY);", "pci_set_word(dev->config + PCI_STATUS,\nPCI_STATUS_FAST_BACK | PCI_STATUS_66MHZ |\nPCI_STATUS_DEVSEL_MEDIUM);", "pci_set_byte(dev->config + PCI_REVISION...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 27, 29 ], [ 31, 33, 35 ], [ 37 ], [ 39, 41, 43 ], [ 45 ] ]
23,106
static void tcg_out_setcond2(TCGContext *s, const TCGArg *args, const int *const_args) { TCGArg new_args[6]; int label_true, label_over; memcpy(new_args, args+1, 5*sizeof(TCGArg)); if (args[0] == args[1] || args[0] == args[2] || (!const_args[3] && args[0] ...
false
qemu
bec1631100323fac0900aea71043d5c4e22fc2fa
static void tcg_out_setcond2(TCGContext *s, const TCGArg *args, const int *const_args) { TCGArg new_args[6]; int label_true, label_over; memcpy(new_args, args+1, 5*sizeof(TCGArg)); if (args[0] == args[1] || args[0] == args[2] || (!const_args[3] && args[0] ...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, const TCGArg *VAR_1, const int *VAR_2) { TCGArg new_args[6]; int VAR_3, VAR_4; memcpy(new_args, VAR_1+1, 5*sizeof(TCGArg)); if (VAR_1[0] == VAR_1[1] || VAR_1[0] == VAR_1[2] || (!VAR_2[3] && VAR_1[0] == VAR_1[3]) ...
[ "static void FUNC_0(TCGContext *VAR_0, const TCGArg *VAR_1,\nconst int *VAR_2)\n{", "TCGArg new_args[6];", "int VAR_3, VAR_4;", "memcpy(new_args, VAR_1+1, 5*sizeof(TCGArg));", "if (VAR_1[0] == VAR_1[1] || VAR_1[0] == VAR_1[2]\n|| (!VAR_2[3] && VAR_1[0] == VAR_1[3])\n|| (!VAR_2[4] && VAR_1[0] == VAR_1[4])) {...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17, 19, 21 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 61 ], [ 65 ], [ 67 ], [...
23,107
static int handle_dependencies(BlockDriverState *bs, uint64_t guest_offset, unsigned int *nb_clusters) { BDRVQcowState *s = bs->opaque; QCowL2Meta *old_alloc; QLIST_FOREACH(old_alloc, &s->cluster_allocs, next_in_flight) { uint64_t start = guest_offset >> s->cluster_bits; uint6...
false
qemu
d9d74f4177af59bec23baa480d640709f56df0aa
static int handle_dependencies(BlockDriverState *bs, uint64_t guest_offset, unsigned int *nb_clusters) { BDRVQcowState *s = bs->opaque; QCowL2Meta *old_alloc; QLIST_FOREACH(old_alloc, &s->cluster_allocs, next_in_flight) { uint64_t start = guest_offset >> s->cluster_bits; uint6...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, unsigned int *VAR_2) { BDRVQcowState *s = VAR_0->opaque; QCowL2Meta *old_alloc; QLIST_FOREACH(old_alloc, &s->cluster_allocs, next_in_flight) { uint64_t start = VAR_1 >> s->cluster_bits; uint64_t end = start + *VAR_2; ...
[ "static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nunsigned int *VAR_2)\n{", "BDRVQcowState *s = VAR_0->opaque;", "QCowL2Meta *old_alloc;", "QLIST_FOREACH(old_alloc, &s->cluster_allocs, next_in_flight) {", "uint64_t start = VAR_1 >> s->cluster_bits;", "uint64_t end = start + *VAR_2;", "uint64_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 53 ], [ 55 ], [ 57 ], [...
23,110
char *g_strdup(const char *s) { char *dup; size_t i; if (!s) { return NULL; } __coverity_string_null_sink__(s); __coverity_string_size_sink__(s); dup = __coverity_alloc_nosize__(); __coverity_mark_as_afm_allocated__(dup, AFM_free); for (i = 0; (dup[i] = s[i]); ...
false
qemu
7ad4c7200111d20eb97eed4f46b6026e3f0b0eef
char *g_strdup(const char *s) { char *dup; size_t i; if (!s) { return NULL; } __coverity_string_null_sink__(s); __coverity_string_size_sink__(s); dup = __coverity_alloc_nosize__(); __coverity_mark_as_afm_allocated__(dup, AFM_free); for (i = 0; (dup[i] = s[i]); ...
{ "code": [], "line_no": [] }
char *FUNC_0(const char *VAR_0) { char *VAR_1; size_t i; if (!VAR_0) { return NULL; } __coverity_string_null_sink__(VAR_0); __coverity_string_size_sink__(VAR_0); VAR_1 = __coverity_alloc_nosize__(); __coverity_mark_as_afm_allocated__(VAR_1, AFM_free); for (i = ...
[ "char *FUNC_0(const char *VAR_0)\n{", "char *VAR_1;", "size_t i;", "if (!VAR_0) {", "return NULL;", "}", "__coverity_string_null_sink__(VAR_0);", "__coverity_string_size_sink__(VAR_0);", "VAR_1 = __coverity_alloc_nosize__();", "__coverity_mark_as_afm_allocated__(VAR_1, AFM_free);", "for (i = 0; ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
23,111
void ff_avg_h264_qpel4_mc00_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avg_width4_msa(src, stride, dst, stride, 4); }
false
FFmpeg
0105ed551cb9610c62b6920a301125781e1161a0
void ff_avg_h264_qpel4_mc00_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avg_width4_msa(src, stride, dst, stride, 4); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avg_width4_msa(VAR_1, VAR_2, VAR_0, VAR_2, 4); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avg_width4_msa(VAR_1, VAR_2, VAR_0, VAR_2, 4);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
23,113
static int net_vhost_user_init(NetClientState *peer, const char *device, const char *name, CharDriverState *chr) { NetClientState *nc; VhostUserState *s; nc = qemu_new_net_client(&net_vhost_user_info, peer, device, name); snprintf(nc->info_str, sizeof(nc->info_st...
false
qemu
b931bfbf042983f311b3b09894d8030b2755a638
static int net_vhost_user_init(NetClientState *peer, const char *device, const char *name, CharDriverState *chr) { NetClientState *nc; VhostUserState *s; nc = qemu_new_net_client(&net_vhost_user_info, peer, device, name); snprintf(nc->info_str, sizeof(nc->info_st...
{ "code": [], "line_no": [] }
static int FUNC_0(NetClientState *VAR_0, const char *VAR_1, const char *VAR_2, CharDriverState *VAR_3) { NetClientState *nc; VhostUserState *s; nc = qemu_new_net_client(&net_vhost_user_info, VAR_0, VAR_1, VAR_2); snprintf(nc->info_str, sizeof(nc->info_str), "vhos...
[ "static int FUNC_0(NetClientState *VAR_0, const char *VAR_1,\nconst char *VAR_2, CharDriverState *VAR_3)\n{", "NetClientState *nc;", "VhostUserState *s;", "nc = qemu_new_net_client(&net_vhost_user_info, VAR_0, VAR_1, VAR_2);", "snprintf(nc->info_str, sizeof(nc->info_str), \"vhost-user to %s\",\nVAR_3->label...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ] ]
23,114
static int megasas_build_sense(MegasasCmd *cmd, uint8_t *sense_ptr, uint8_t sense_len) { uint32_t pa_hi = 0, pa_lo; target_phys_addr_t pa; if (sense_len > cmd->frame->header.sense_len) { sense_len = cmd->frame->header.sense_len; } if (sense_len) { pa_lo = le32_to_cpu(c...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static int megasas_build_sense(MegasasCmd *cmd, uint8_t *sense_ptr, uint8_t sense_len) { uint32_t pa_hi = 0, pa_lo; target_phys_addr_t pa; if (sense_len > cmd->frame->header.sense_len) { sense_len = cmd->frame->header.sense_len; } if (sense_len) { pa_lo = le32_to_cpu(c...
{ "code": [], "line_no": [] }
static int FUNC_0(MegasasCmd *VAR_0, uint8_t *VAR_1, uint8_t VAR_2) { uint32_t pa_hi = 0, pa_lo; target_phys_addr_t pa; if (VAR_2 > VAR_0->frame->header.VAR_2) { VAR_2 = VAR_0->frame->header.VAR_2; } if (VAR_2) { pa_lo = le32_to_cpu(VAR_0->frame->pass.sense_addr_lo); ...
[ "static int FUNC_0(MegasasCmd *VAR_0, uint8_t *VAR_1,\nuint8_t VAR_2)\n{", "uint32_t pa_hi = 0, pa_lo;", "target_phys_addr_t pa;", "if (VAR_2 > VAR_0->frame->header.VAR_2) {", "VAR_2 = VAR_0->frame->header.VAR_2;", "}", "if (VAR_2) {", "pa_lo = le32_to_cpu(VAR_0->frame->pass.sense_addr_lo);", "if (m...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
23,115
MemoryRegion *rom_add_blob(const char *name, const void *blob, size_t len, size_t max_len, hwaddr addr, const char *fw_file_name, FWCfgReadCallback fw_callback, void *callback_opaque) { MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine()); Rom *rom; MemoryRegi...
false
qemu
aa6c6ae843cbdc251224bc6170d2663ac929b04f
MemoryRegion *rom_add_blob(const char *name, const void *blob, size_t len, size_t max_len, hwaddr addr, const char *fw_file_name, FWCfgReadCallback fw_callback, void *callback_opaque) { MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine()); Rom *rom; MemoryRegi...
{ "code": [], "line_no": [] }
MemoryRegion *FUNC_0(const char *name, const void *blob, size_t len, size_t max_len, hwaddr addr, const char *fw_file_name, FWCfgReadCallback fw_callback, void *callback_opaque) { MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine()); Rom *rom; MemoryRegion *mr...
[ "MemoryRegion *FUNC_0(const char *name, const void *blob, size_t len,\nsize_t max_len, hwaddr addr, const char *fw_file_name,\nFWCfgReadCallback fw_callback, void *callback_opaque)\n{", "MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine());", "Rom *rom;", "MemoryRegion *mr = NULL;", "rom = g_m...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
23,117
static uint64_t sysctl_read(void *opaque, target_phys_addr_t addr, unsigned size) { MilkymistSysctlState *s = opaque; uint32_t r = 0; addr >>= 2; switch (addr) { case R_TIMER0_COUNTER: r = (uint32_t)ptimer_get_count(s->ptimer0); /* milkymist tim...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t sysctl_read(void *opaque, target_phys_addr_t addr, unsigned size) { MilkymistSysctlState *s = opaque; uint32_t r = 0; addr >>= 2; switch (addr) { case R_TIMER0_COUNTER: r = (uint32_t)ptimer_get_count(s->ptimer0); r = s-...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { MilkymistSysctlState *s = opaque; uint32_t r = 0; addr >>= 2; switch (addr) { case R_TIMER0_COUNTER: r = (uint32_t)ptimer_get_count(s->ptimer0); r = s->regs...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{", "MilkymistSysctlState *s = opaque;", "uint32_t r = 0;", "addr >>= 2;", "switch (addr) {", "case R_TIMER0_COUNTER:\nr = (uint32_t)ptimer_get_count(s->ptimer0);", "r = s->regs[R_TIMER0_COMPARE] - r;", "break;", "case R...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63 ...
23,118
static int vmdk_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { BDRVVmdkState *s = bs->opaque; int64_t index_in_cluster, n, ret; uint64_t offset; VmdkExtent *extent; extent = find_extent(s, sector_num, NULL); if (!extent)...
false
qemu
f8a2e5e3ca6146d4cc66a4750daf44a0cf043319
static int vmdk_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { BDRVVmdkState *s = bs->opaque; int64_t index_in_cluster, n, ret; uint64_t offset; VmdkExtent *extent; extent = find_extent(s, sector_num, NULL); if (!extent)...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2, int *VAR_3) { BDRVVmdkState *s = VAR_0->opaque; int64_t index_in_cluster, n, ret; uint64_t offset; VmdkExtent *extent; extent = find_extent(s, VAR_1, NULL); if (!extent) { return ...
[ "static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nint VAR_2, int *VAR_3)\n{", "BDRVVmdkState *s = VAR_0->opaque;", "int64_t index_in_cluster, n, ret;", "uint64_t offset;", "VmdkExtent *extent;", "extent = find_extent(s, VAR_1, NULL);", "if (!extent) {", "return 0;", "}", "ret = get_clust...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
23,119
void acpi_setup(PcGuestInfo *guest_info) { AcpiBuildTables tables; AcpiBuildState *build_state; if (!guest_info->fw_cfg) { ACPI_BUILD_DPRINTF("No fw cfg. Bailing out.\n"); return; } if (!guest_info->has_acpi_build) { ACPI_BUILD_DPRINTF("ACPI build disabled. Baili...
false
qemu
42d859001d180ea788aa2d34a7be021ac8c447f2
void acpi_setup(PcGuestInfo *guest_info) { AcpiBuildTables tables; AcpiBuildState *build_state; if (!guest_info->fw_cfg) { ACPI_BUILD_DPRINTF("No fw cfg. Bailing out.\n"); return; } if (!guest_info->has_acpi_build) { ACPI_BUILD_DPRINTF("ACPI build disabled. Baili...
{ "code": [], "line_no": [] }
void FUNC_0(PcGuestInfo *VAR_0) { AcpiBuildTables tables; AcpiBuildState *build_state; if (!VAR_0->fw_cfg) { ACPI_BUILD_DPRINTF("No fw cfg. Bailing out.\n"); return; } if (!VAR_0->has_acpi_build) { ACPI_BUILD_DPRINTF("ACPI build disabled. Bailing out.\n"); ...
[ "void FUNC_0(PcGuestInfo *VAR_0)\n{", "AcpiBuildTables tables;", "AcpiBuildState *build_state;", "if (!VAR_0->fw_cfg) {", "ACPI_BUILD_DPRINTF(\"No fw cfg. Bailing out.\\n\");", "return;", "}", "if (!VAR_0->has_acpi_build) {", "ACPI_BUILD_DPRINTF(\"ACPI build disabled. Bailing out.\\n\");", "return...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 49 ], [ 53 ], [ 55...
23,120
static void pc_compat_2_0(MachineState *machine) { pc_compat_2_1(machine); smbios_legacy_mode = true; has_reserved_memory = false; pc_set_legacy_acpi_data_size(); }
false
qemu
7102fa7073b2cefb33ab4012a11f15fbf297a74b
static void pc_compat_2_0(MachineState *machine) { pc_compat_2_1(machine); smbios_legacy_mode = true; has_reserved_memory = false; pc_set_legacy_acpi_data_size(); }
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0) { pc_compat_2_1(VAR_0); smbios_legacy_mode = true; has_reserved_memory = false; pc_set_legacy_acpi_data_size(); }
[ "static void FUNC_0(MachineState *VAR_0)\n{", "pc_compat_2_1(VAR_0);", "smbios_legacy_mode = true;", "has_reserved_memory = false;", "pc_set_legacy_acpi_data_size();", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
23,121
static void apic_mem_writew(void *opaque, target_phys_addr_t addr, uint32_t val) { }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void apic_mem_writew(void *opaque, target_phys_addr_t addr, uint32_t val) { }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)\n{", "}" ]
[ 0, 0 ]
[ [ 1, 3 ], [ 5 ] ]
23,122
static int cdrom_read_toc_raw(IDEState *s, uint8_t *buf, int msf, int session_num) { uint8_t *q; int nb_sectors, len; q = buf + 2; *q++ = 1; /* first session */ *q++ = 1; /* last session */ *q++ = 1; /* session number */ *q++ = 0x14; /* data tr...
false
qemu
a368741bf2508b7ca29d9ade73ec1b0f29ae2286
static int cdrom_read_toc_raw(IDEState *s, uint8_t *buf, int msf, int session_num) { uint8_t *q; int nb_sectors, len; q = buf + 2; *q++ = 1; *q++ = 1; *q++ = 1; *q++ = 0x14; *q++ = 0; *q++ = 0xa0; *q++ = 0; *q++ = 0; ...
{ "code": [], "line_no": [] }
static int FUNC_0(IDEState *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3) { uint8_t *q; int VAR_4, VAR_5; q = VAR_1 + 2; *q++ = 1; *q++ = 1; *q++ = 1; *q++ = 0x14; *q++ = 0; *q++ = 0xa0; *q++ = 0; *q++ = 0; *q++ ...
[ "static int FUNC_0(IDEState *VAR_0, uint8_t *VAR_1, int VAR_2,\nint VAR_3)\n{", "uint8_t *q;", "int VAR_4, VAR_5;", "q = VAR_1 + 2;", "*q++ = 1;", "*q++ = 1;", "*q++ = 1;", "*q++ = 0x14;", "*q++ = 0;", "*q++ = 0xa0;", "*q++ = 0;", "*q++ = 0;", "*q++ = 0;", "*q++ = 0;", "*q++ = 1;", "*q...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
23,124
static void virtio_ccw_rng_instance_init(Object *obj) { VirtIORNGCcw *dev = VIRTIO_RNG_CCW(obj); object_initialize(&dev->vdev, sizeof(dev->vdev), TYPE_VIRTIO_RNG); object_property_add_child(obj, "virtio-backend", OBJECT(&dev->vdev), NULL); object_property_add_link(obj, "rng", TYPE_RNG_BACKEND, ...
true
qemu
9561fda8d90e176bef598ba87c42a1bd6ad03ef7
static void virtio_ccw_rng_instance_init(Object *obj) { VirtIORNGCcw *dev = VIRTIO_RNG_CCW(obj); object_initialize(&dev->vdev, sizeof(dev->vdev), TYPE_VIRTIO_RNG); object_property_add_child(obj, "virtio-backend", OBJECT(&dev->vdev), NULL); object_property_add_link(obj, "rng", TYPE_RNG_BACKEND, ...
{ "code": [ " (Object **)&dev->vdev.conf.rng, NULL);", " (Object **)&dev->vdev.conf.rng, NULL);", " (Object **)&dev->vdev.conf.rng, NULL);" ], "line_no": [ 13, 13, 13 ] }
static void FUNC_0(Object *VAR_0) { VirtIORNGCcw *dev = VIRTIO_RNG_CCW(VAR_0); object_initialize(&dev->vdev, sizeof(dev->vdev), TYPE_VIRTIO_RNG); object_property_add_child(VAR_0, "virtio-backend", OBJECT(&dev->vdev), NULL); object_property_add_link(VAR_0, "rng", TYPE_RNG_BACKEND, ...
[ "static void FUNC_0(Object *VAR_0)\n{", "VirtIORNGCcw *dev = VIRTIO_RNG_CCW(VAR_0);", "object_initialize(&dev->vdev, sizeof(dev->vdev), TYPE_VIRTIO_RNG);", "object_property_add_child(VAR_0, \"virtio-backend\", OBJECT(&dev->vdev), NULL);", "object_property_add_link(VAR_0, \"rng\", TYPE_RNG_BACKEND,\n(Object ...
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15 ] ]
23,125
static int apic_init_common(SysBusDevice *dev) { APICCommonState *s = APIC_COMMON(dev); APICCommonClass *info; static DeviceState *vapic; static int apic_no; if (apic_no >= MAX_APICS) { return -1; } s->idx = apic_no++; info = APIC_COMMON_GET_CLASS(s); info->ini...
true
qemu
a9605e0317c7a6d5e68f3a3b6708c8ef1096f4bc
static int apic_init_common(SysBusDevice *dev) { APICCommonState *s = APIC_COMMON(dev); APICCommonClass *info; static DeviceState *vapic; static int apic_no; if (apic_no >= MAX_APICS) { return -1; } s->idx = apic_no++; info = APIC_COMMON_GET_CLASS(s); info->ini...
{ "code": [ " if (!vapic && s->vapic_control & VAPIC_ENABLE_MASK) {" ], "line_no": [ 35 ] }
static int FUNC_0(SysBusDevice *VAR_0) { APICCommonState *s = APIC_COMMON(VAR_0); APICCommonClass *info; static DeviceState *VAR_1; static int VAR_2; if (VAR_2 >= MAX_APICS) { return -1; } s->idx = VAR_2++; info = APIC_COMMON_GET_CLASS(s); info->init(s); ...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "APICCommonState *s = APIC_COMMON(VAR_0);", "APICCommonClass *info;", "static DeviceState *VAR_1;", "static int VAR_2;", "if (VAR_2 >= MAX_APICS) {", "return -1;", "}", "s->idx = VAR_2++;", "info = APIC_COMMON_GET_CLASS(s);", "info->init(s);", "sysb...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ...
23,126
static int coroutine_fn bdrv_co_do_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int bytes, BdrvRequestFlags flags) { BlockDriver *drv = bs->drv; QEMUIOVector qiov; struct iovec iov = {0}; int ret = 0; bool need_flush = false; int head = 0; int tail = 0; int max_write_zeroes = ...
true
qemu
d470ad42acfc73c45d3e8ed5311a491160b4c100
static int coroutine_fn bdrv_co_do_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int bytes, BdrvRequestFlags flags) { BlockDriver *drv = bs->drv; QEMUIOVector qiov; struct iovec iov = {0}; int ret = 0; bool need_flush = false; int head = 0; int tail = 0; int max_write_zeroes = ...
{ "code": [], "line_no": [] }
static int VAR_0 bdrv_co_do_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int bytes, BdrvRequestFlags flags) { BlockDriver *drv = bs->drv; QEMUIOVector qiov; struct iovec iov = {0}; int ret = 0; bool need_flush = false; int head = 0; int tail = 0; int max_write_zeroes = MIN_NON...
[ "static int VAR_0 bdrv_co_do_pwrite_zeroes(BlockDriverState *bs,\nint64_t offset, int bytes, BdrvRequestFlags flags)\n{", "BlockDriver *drv = bs->drv;", "QEMUIOVector qiov;", "struct iovec iov = {0};", "int ret = 0;", "bool need_flush = false;", "int head = 0;", "int tail = 0;", "int max_write_zeroe...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12, 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 26 ],...
23,127
static av_cold int decode_close(AVCodecContext *avctx) { IVI5DecContext *ctx = avctx->priv_data; ff_ivi_free_buffers(&ctx->planes[0]); if (ctx->frame.data[0]) avctx->release_buffer(avctx, &ctx->frame); return 0; }
true
FFmpeg
60819e694ee5733741da91ebc237b20621de5bc3
static av_cold int decode_close(AVCodecContext *avctx) { IVI5DecContext *ctx = avctx->priv_data; ff_ivi_free_buffers(&ctx->planes[0]); if (ctx->frame.data[0]) avctx->release_buffer(avctx, &ctx->frame); return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { IVI5DecContext *ctx = avctx->priv_data; ff_ivi_free_buffers(&ctx->planes[0]); if (ctx->frame.data[0]) avctx->release_buffer(avctx, &ctx->frame); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "IVI5DecContext *ctx = avctx->priv_data;", "ff_ivi_free_buffers(&ctx->planes[0]);", "if (ctx->frame.data[0])\navctx->release_buffer(avctx, &ctx->frame);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5, 6 ], [ 7 ], [ 8 ] ]
23,128
static void ioreq_release(struct ioreq *ioreq, bool finish) { struct XenBlkDev *blkdev = ioreq->blkdev; QLIST_REMOVE(ioreq, list); memset(ioreq, 0, sizeof(*ioreq)); ioreq->blkdev = blkdev; QLIST_INSERT_HEAD(&blkdev->freelist, ioreq, list); if (finish) { blkdev->requests_finishe...
true
qemu
282c6a2f292705f823554447ca0b7731b6f81a97
static void ioreq_release(struct ioreq *ioreq, bool finish) { struct XenBlkDev *blkdev = ioreq->blkdev; QLIST_REMOVE(ioreq, list); memset(ioreq, 0, sizeof(*ioreq)); ioreq->blkdev = blkdev; QLIST_INSERT_HEAD(&blkdev->freelist, ioreq, list); if (finish) { blkdev->requests_finishe...
{ "code": [ " memset(ioreq, 0, sizeof(*ioreq));" ], "line_no": [ 11 ] }
static void FUNC_0(struct VAR_0 *VAR_0, bool VAR_1) { struct XenBlkDev *VAR_2 = VAR_0->VAR_2; QLIST_REMOVE(VAR_0, list); memset(VAR_0, 0, sizeof(*VAR_0)); VAR_0->VAR_2 = VAR_2; QLIST_INSERT_HEAD(&VAR_2->freelist, VAR_0, list); if (VAR_1) { VAR_2->requests_finished--; } els...
[ "static void FUNC_0(struct VAR_0 *VAR_0, bool VAR_1)\n{", "struct XenBlkDev *VAR_2 = VAR_0->VAR_2;", "QLIST_REMOVE(VAR_0, list);", "memset(VAR_0, 0, sizeof(*VAR_0));", "VAR_0->VAR_2 = VAR_2;", "QLIST_INSERT_HEAD(&VAR_2->freelist, VAR_0, list);", "if (VAR_1) {", "VAR_2->requests_finished--;", "} else...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
23,129
int bdrv_open_backing_file(BlockDriverState *bs) { char backing_filename[PATH_MAX]; int back_flags, ret; BlockDriver *back_drv = NULL; if (bs->backing_hd != NULL) { return 0; } bs->open_flags &= ~BDRV_O_NO_BACKING; if (bs->backing_file[0] == '\0') { return 0; ...
true
qemu
31ca6d077c24b7aaa322d8930e3e5debbdb4a047
int bdrv_open_backing_file(BlockDriverState *bs) { char backing_filename[PATH_MAX]; int back_flags, ret; BlockDriver *back_drv = NULL; if (bs->backing_hd != NULL) { return 0; } bs->open_flags &= ~BDRV_O_NO_BACKING; if (bs->backing_file[0] == '\0') { return 0; ...
{ "code": [ "int bdrv_open_backing_file(BlockDriverState *bs)", " if (bs->backing_file[0] == '\\0') {", " ret = bdrv_open(bs->backing_hd, backing_filename, NULL," ], "line_no": [ 1, 23, 53 ] }
int FUNC_0(BlockDriverState *VAR_0) { char VAR_1[PATH_MAX]; int VAR_2, VAR_3; BlockDriver *back_drv = NULL; if (VAR_0->backing_hd != NULL) { return 0; } VAR_0->open_flags &= ~BDRV_O_NO_BACKING; if (VAR_0->backing_file[0] == '\0') { return 0; } VAR_0-...
[ "int FUNC_0(BlockDriverState *VAR_0)\n{", "char VAR_1[PATH_MAX];", "int VAR_2, VAR_3;", "BlockDriver *back_drv = NULL;", "if (VAR_0->backing_hd != NULL) {", "return 0;", "}", "VAR_0->open_flags &= ~BDRV_O_NO_BACKING;", "if (VAR_0->backing_file[0] == '\\0') {", "return 0;", "}", "VAR_0->backing...
[ 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 53, 55 ], [ 57 ...
23,130
static coroutine_fn int qcow_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { BDRVQcowState *s = bs->opaque; int index_in_cluster; uint64_t cluster_offset; int ret = 0, n; struct iovec hd_iov; QEMUIOVector hd_qiov; u...
true
qemu
56439e9d55626b65ecb887f1ac3714652555312e
static coroutine_fn int qcow_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { BDRVQcowState *s = bs->opaque; int index_in_cluster; uint64_t cluster_offset; int ret = 0, n; struct iovec hd_iov; QEMUIOVector hd_qiov; u...
{ "code": [ " cluster_offset = get_cluster_offset(bs, sector_num << 9, 1, 0,", " index_in_cluster,", " index_in_cluster + n);" ], "line_no": [ 73, 75, 77 ] }
static coroutine_fn int FUNC_0(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { BDRVQcowState *s = bs->opaque; int VAR_0; uint64_t cluster_offset; int VAR_1 = 0, VAR_2; struct iovec VAR_3; QEMUIOVector hd_qiov; uint8_t *buf; ...
[ "static coroutine_fn int FUNC_0(BlockDriverState *bs, int64_t sector_num,\nint nb_sectors, QEMUIOVector *qiov)\n{", "BDRVQcowState *s = bs->opaque;", "int VAR_0;", "uint64_t cluster_offset;", "int VAR_1 = 0, VAR_2;", "struct iovec VAR_3;", "QEMUIOVector hd_qiov;", "uint8_t *buf;", "void *VAR_4;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
23,131
static void monitor_qapi_event_emit(QAPIEvent event, QDict *qdict) { Monitor *mon; trace_monitor_protocol_event_emit(event, qdict); QLIST_FOREACH(mon, &mon_list, entry) { if (monitor_is_qmp(mon) && mon->qmp.in_command_mode) { monitor_json_emitter(mon, QOBJECT(qdict)); } ...
true
qemu
635db18f68ded6abec11cd4cf64ebc15c1c6b190
static void monitor_qapi_event_emit(QAPIEvent event, QDict *qdict) { Monitor *mon; trace_monitor_protocol_event_emit(event, qdict); QLIST_FOREACH(mon, &mon_list, entry) { if (monitor_is_qmp(mon) && mon->qmp.in_command_mode) { monitor_json_emitter(mon, QOBJECT(qdict)); } ...
{ "code": [ " if (monitor_is_qmp(mon) && mon->qmp.in_command_mode) {" ], "line_no": [ 13 ] }
static void FUNC_0(QAPIEvent VAR_0, QDict *VAR_1) { Monitor *mon; trace_monitor_protocol_event_emit(VAR_0, VAR_1); QLIST_FOREACH(mon, &mon_list, entry) { if (monitor_is_qmp(mon) && mon->qmp.in_command_mode) { monitor_json_emitter(mon, QOBJECT(VAR_1)); } } }
[ "static void FUNC_0(QAPIEvent VAR_0, QDict *VAR_1)\n{", "Monitor *mon;", "trace_monitor_protocol_event_emit(VAR_0, VAR_1);", "QLIST_FOREACH(mon, &mon_list, entry) {", "if (monitor_is_qmp(mon) && mon->qmp.in_command_mode) {", "monitor_json_emitter(mon, QOBJECT(VAR_1));", "}", "}", "}" ]
[ 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
23,132
static int input_get_buffer(AVCodecContext *codec, AVFrame *pic) { AVFilterContext *ctx = codec->opaque; AVFilterBufferRef *ref; int perms = AV_PERM_WRITE; int i, w, h, stride[4]; unsigned edge; int pixel_size; av_assert0(codec->flags & CODEC_FLAG_EMU_EDGE); if (codec->code...
true
FFmpeg
2c28e26913df927e71d87fa851c9d950f281523b
static int input_get_buffer(AVCodecContext *codec, AVFrame *pic) { AVFilterContext *ctx = codec->opaque; AVFilterBufferRef *ref; int perms = AV_PERM_WRITE; int i, w, h, stride[4]; unsigned edge; int pixel_size; av_assert0(codec->flags & CODEC_FLAG_EMU_EDGE); if (codec->code...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1) { AVFilterContext *ctx = VAR_0->opaque; AVFilterBufferRef *ref; int VAR_2 = AV_PERM_WRITE; int VAR_3, VAR_4, VAR_5, VAR_6[4]; unsigned VAR_7; int VAR_8; av_assert0(VAR_0->flags & CODEC_FLAG_EMU_EDGE); if (VAR_0->VAR_0...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)\n{", "AVFilterContext *ctx = VAR_0->opaque;", "AVFilterBufferRef *ref;", "int VAR_2 = AV_PERM_WRITE;", "int VAR_3, VAR_4, VAR_5, VAR_6[4];", "unsigned VAR_7;", "int VAR_8;", "av_assert0(VAR_0->flags & CODEC_FLAG_EMU_EDGE);", "if (VAR_0->VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 55 ...
23,133
static void gen_lea_v_seg(DisasContext *s, TCGMemOp aflag, TCGv a0, int def_seg, int ovr_seg) { switch (aflag) { #ifdef TARGET_X86_64 case MO_64: if (ovr_seg < 0) { tcg_gen_mov_tl(cpu_A0, a0); return; } break; #endif case ...
false
qemu
3558f8055f37a34762b7a2a0f02687e6eeab893d
static void gen_lea_v_seg(DisasContext *s, TCGMemOp aflag, TCGv a0, int def_seg, int ovr_seg) { switch (aflag) { #ifdef TARGET_X86_64 case MO_64: if (ovr_seg < 0) { tcg_gen_mov_tl(cpu_A0, a0); return; } break; #endif case ...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, TCGMemOp VAR_1, TCGv VAR_2, int VAR_3, int VAR_4) { switch (VAR_1) { #ifdef TARGET_X86_64 case MO_64: if (VAR_4 < 0) { tcg_gen_mov_tl(cpu_A0, VAR_2); return; } break; #endif case MO_...
[ "static void FUNC_0(DisasContext *VAR_0, TCGMemOp VAR_1, TCGv VAR_2,\nint VAR_3, int VAR_4)\n{", "switch (VAR_1) {", "#ifdef TARGET_X86_64\ncase MO_64:\nif (VAR_4 < 0) {", "tcg_gen_mov_tl(cpu_A0, VAR_2);", "return;", "}", "break;", "#endif\ncase MO_32:\nif (VAR_4 < 0) {", "if (VAR_0->addseg) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 51 ...
23,134
static void coroutine_fn mirror_run(void *opaque) { MirrorBlockJob *s = opaque; MirrorExitData *data; BlockDriverState *bs = blk_bs(s->common.blk); BlockDriverState *target_bs = blk_bs(s->target); int64_t length; BlockDriverInfo bdi; char backing_filename[2]; /* we only need 2 charac...
false
qemu
bae8196d9f97916de6323e70e3e374362ee16ec4
static void coroutine_fn mirror_run(void *opaque) { MirrorBlockJob *s = opaque; MirrorExitData *data; BlockDriverState *bs = blk_bs(s->common.blk); BlockDriverState *target_bs = blk_bs(s->target); int64_t length; BlockDriverInfo bdi; char backing_filename[2]; int ret = 0; ...
{ "code": [], "line_no": [] }
static void VAR_0 mirror_run(void *opaque) { MirrorBlockJob *s = opaque; MirrorExitData *data; BlockDriverState *bs = blk_bs(s->common.blk); BlockDriverState *target_bs = blk_bs(s->target); int64_t length; BlockDriverInfo bdi; char backing_filename[2]; int ret = 0; int t...
[ "static void VAR_0 mirror_run(void *opaque)\n{", "MirrorBlockJob *s = opaque;", "MirrorExitData *data;", "BlockDriverState *bs = blk_bs(s->common.blk);", "BlockDriverState *target_bs = blk_bs(s->target);", "int64_t length;", "BlockDriverInfo bdi;", "char backing_filename[2];", "int ret = 0;", "int...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ...
23,137
int check_params(const char * const *params, const char *str) { int name_buf_size = 1; const char *p; char *name_buf; int i, len; int ret = 0; for (i = 0; params[i] != NULL; i++) { len = strlen(params[i]) + 1; if (len > name_buf_size) { name_buf_size = len...
false
qemu
0aa7a205c899c516d906673efbe9457f7af0dd3c
int check_params(const char * const *params, const char *str) { int name_buf_size = 1; const char *p; char *name_buf; int i, len; int ret = 0; for (i = 0; params[i] != NULL; i++) { len = strlen(params[i]) + 1; if (len > name_buf_size) { name_buf_size = len...
{ "code": [], "line_no": [] }
int FUNC_0(const char * const *VAR_0, const char *VAR_1) { int VAR_2 = 1; const char *VAR_3; char *VAR_4; int VAR_5, VAR_6; int VAR_7 = 0; for (VAR_5 = 0; VAR_0[VAR_5] != NULL; VAR_5++) { VAR_6 = strlen(VAR_0[VAR_5]) + 1; if (VAR_6 > VAR_2) { VAR_2 = VAR_6...
[ "int FUNC_0(const char * const *VAR_0, const char *VAR_1)\n{", "int VAR_2 = 1;", "const char *VAR_3;", "char *VAR_4;", "int VAR_5, VAR_6;", "int VAR_7 = 0;", "for (VAR_5 = 0; VAR_0[VAR_5] != NULL; VAR_5++) {", "VAR_6 = strlen(VAR_0[VAR_5]) + 1;", "if (VAR_6 > VAR_2) {", "VAR_2 = VAR_6;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
23,138
static void fw_cfg_data_mem_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { fw_cfg_write(opaque, (uint8_t)value); }
false
qemu
cfaadf0e89e7c2a47462d5f96390c9a9b4de037c
static void fw_cfg_data_mem_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { fw_cfg_write(opaque, (uint8_t)value); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { fw_cfg_write(VAR_0, (uint8_t)VAR_2); }
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "fw_cfg_write(VAR_0, (uint8_t)VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
23,139
static void simple_whitespace(void) { int i; struct { const char *encoded; LiteralQObject decoded; } test_cases[] = { { .encoded = " [ 43 , 42 ]", .decoded = QLIT_QLIST(((LiteralQObject[]){ QLIT_QINT(43), ...
false
qemu
9eaaf971683c99ed197fa1b7d1a3ca9baabfb3ee
static void simple_whitespace(void) { int i; struct { const char *encoded; LiteralQObject decoded; } test_cases[] = { { .encoded = " [ 43 , 42 ]", .decoded = QLIT_QLIST(((LiteralQObject[]){ QLIT_QINT(43), ...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { int VAR_0; struct { const char *encoded; LiteralQObject decoded; } VAR_1[] = { { .encoded = " [ 43 , 42 ]", .decoded = QLIT_QLIST(((LiteralQObject[]){ QLIT_QINT(43), QLIT_QIN...
[ "static void FUNC_0(void)\n{", "int VAR_0;", "struct {", "const char *encoded;", "LiteralQObject decoded;", "} VAR_1[] = {", "{", ".encoded = \" [ 43 , 42 ]\",\n.decoded = QLIT_QLIST(((LiteralQObject[]){", "QLIT_QINT(43),\nQLIT_QINT(42),\n{ }", "})),", "},", "{", ".encoded = \" [ 43 , { 'h' ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ...
23,141
void cpu_x86_fsave(CPUX86State *s, uint8_t *ptr, int data32) { CPUX86State *saved_env; saved_env = env; env = s; helper_fsave(ptr, data32); env = saved_env; }
false
qemu
e4533c7a8cdcc79ccdf695f0aaa2e23a5b926ed0
void cpu_x86_fsave(CPUX86State *s, uint8_t *ptr, int data32) { CPUX86State *saved_env; saved_env = env; env = s; helper_fsave(ptr, data32); env = saved_env; }
{ "code": [], "line_no": [] }
void FUNC_0(CPUX86State *VAR_0, uint8_t *VAR_1, int VAR_2) { CPUX86State *saved_env; saved_env = env; env = VAR_0; helper_fsave(VAR_1, VAR_2); env = saved_env; }
[ "void FUNC_0(CPUX86State *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "CPUX86State *saved_env;", "saved_env = env;", "env = VAR_0;", "helper_fsave(VAR_1, VAR_2);", "env = saved_env;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ] ]
23,142
int do_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret_data) { int64_t d; FdMigrationState *s; d = qdict_get_int(qdict, "value"); d = MAX(0, MIN(UINT32_MAX, d)); max_throttle = d; s = migrate_to_fms(current_migration); if (s && s->file) { qemu_file_set_...
false
qemu
3d002df33eb034757d98e1ae529318f57df78f91
int do_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret_data) { int64_t d; FdMigrationState *s; d = qdict_get_int(qdict, "value"); d = MAX(0, MIN(UINT32_MAX, d)); max_throttle = d; s = migrate_to_fms(current_migration); if (s && s->file) { qemu_file_set_...
{ "code": [], "line_no": [] }
int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2) { int64_t d; FdMigrationState *s; d = qdict_get_int(VAR_1, "value"); d = MAX(0, MIN(UINT32_MAX, d)); max_throttle = d; s = migrate_to_fms(current_migration); if (s && s->file) { qemu_file_set_rate_limit(s->f...
[ "int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)\n{", "int64_t d;", "FdMigrationState *s;", "d = qdict_get_int(VAR_1, \"value\");", "d = MAX(0, MIN(UINT32_MAX, d));", "max_throttle = d;", "s = migrate_to_fms(current_migration);", "if (s && s->file) {", "qemu_file_set_rate_limit(s->fi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ] ]
23,143
static int proxy_renameat(FsContext *ctx, V9fsPath *olddir, const char *old_name, V9fsPath *newdir, const char *new_name) { int ret; V9fsString old_full_name, new_full_name; v9fs_string_init(&old_full_name); v9fs_string_init(&new_full_name); ...
false
qemu
494a8ebe713055d3946183f4b395f85a18b43e9e
static int proxy_renameat(FsContext *ctx, V9fsPath *olddir, const char *old_name, V9fsPath *newdir, const char *new_name) { int ret; V9fsString old_full_name, new_full_name; v9fs_string_init(&old_full_name); v9fs_string_init(&new_full_name); ...
{ "code": [], "line_no": [] }
static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, const char *VAR_2, V9fsPath *VAR_3, const char *VAR_4) { int VAR_5; V9fsString old_full_name, new_full_name; v9fs_string_init(&old_full_name); v9fs_string_init(&new_full_name); v9fs_s...
[ "static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,\nconst char *VAR_2, V9fsPath *VAR_3,\nconst char *VAR_4)\n{", "int VAR_5;", "V9fsString old_full_name, new_full_name;", "v9fs_string_init(&old_full_name);", "v9fs_string_init(&new_full_name);", "v9fs_string_sprintf(&old_full_name, \"%s/%s\", VAR_1->dat...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
23,144
PCIBus *pci_register_bus(DeviceState *parent, const char *name, pci_set_irq_fn set_irq, pci_map_irq_fn map_irq, qemu_irq *pic, int devfn_min, int nirq) { PCIBus *bus; static int nbus = 0; bus = FROM_QBUS(PCIBus, qbus_create(&pci_bus_info, parent, nam...
false
qemu
616cbc78a50c638b94cc4756a565f11bb10dbfeb
PCIBus *pci_register_bus(DeviceState *parent, const char *name, pci_set_irq_fn set_irq, pci_map_irq_fn map_irq, qemu_irq *pic, int devfn_min, int nirq) { PCIBus *bus; static int nbus = 0; bus = FROM_QBUS(PCIBus, qbus_create(&pci_bus_info, parent, nam...
{ "code": [], "line_no": [] }
PCIBus *FUNC_0(DeviceState *parent, const char *name, pci_set_irq_fn set_irq, pci_map_irq_fn map_irq, qemu_irq *pic, int devfn_min, int nirq) { PCIBus *bus; static int VAR_0 = 0; bus = FROM_QBUS(PCIBus, qbus_create(&pci_bus_info, parent, name)); ...
[ "PCIBus *FUNC_0(DeviceState *parent, const char *name,\npci_set_irq_fn set_irq, pci_map_irq_fn map_irq,\nqemu_irq *pic, int devfn_min, int nirq)\n{", "PCIBus *bus;", "static int VAR_0 = 0;", "bus = FROM_QBUS(PCIBus, qbus_create(&pci_bus_info, parent, name));", "bus->set_irq = set_irq;", "bus->map_irq = ma...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
23,147
static int idcin_probe(AVProbeData *p) { unsigned int number; /* * This is what you could call a "probabilistic" file check: Id CIN * files don't have a definite file signature. In lieu of such a marker, * perform sanity checks on the 5 32-bit header fields: * width, height: greate...
false
FFmpeg
87e8788680e16c51f6048af26f3f7830c35207a5
static int idcin_probe(AVProbeData *p) { unsigned int number; if (p->buf_size < 20) return 0; number = AV_RL32(&p->buf[0]); if ((number == 0) || (number > 1024)) return 0; number = AV_RL32(&p->buf[4]); if ((number == 0) ||...
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { unsigned int VAR_1; if (VAR_0->buf_size < 20) return 0; VAR_1 = AV_RL32(&VAR_0->buf[0]); if ((VAR_1 == 0) || (VAR_1 > 1024)) return 0; VAR_1 = AV_RL32(&VAR_0->buf[4]); if ((VAR_1 == ...
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "unsigned int VAR_1;", "if (VAR_0->buf_size < 20)\nreturn 0;", "VAR_1 = AV_RL32(&VAR_0->buf[0]);", "if ((VAR_1 == 0) || (VAR_1 > 1024))\nreturn 0;", "VAR_1 = AV_RL32(&VAR_0->buf[4]);", "if ((VAR_1 == 0) || (VAR_1 > 1024))\nreturn 0;", "VAR_1 = AV_RL32(&VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 33, 35 ], [ 41 ], [ 43, 45 ], [ 51 ], [ 53, 55 ], [ 61 ], [ 63, 65 ], [ 71 ], [ 73, 75 ], [ 81 ], [ 83, 85 ], [ 91 ], [ 93 ] ]
23,148
ssize_t migrate_fd_put_buffer(void *opaque, const void *data, size_t size) { FdMigrationState *s = opaque; ssize_t ret; do { ret = s->write(s, data, size); } while (ret == -1 && ((s->get_error(s)) == EINTR || (s->get_error(s)) == EWOULDBLOCK)); if (ret == -1) ret = -(s->g...
false
qemu
95b134ea02a3e2c2508f907db4ab1379ffdb0bef
ssize_t migrate_fd_put_buffer(void *opaque, const void *data, size_t size) { FdMigrationState *s = opaque; ssize_t ret; do { ret = s->write(s, data, size); } while (ret == -1 && ((s->get_error(s)) == EINTR || (s->get_error(s)) == EWOULDBLOCK)); if (ret == -1) ret = -(s->g...
{ "code": [], "line_no": [] }
ssize_t FUNC_0(void *opaque, const void *data, size_t size) { FdMigrationState *s = opaque; ssize_t ret; do { ret = s->write(s, data, size); } while (ret == -1 && ((s->get_error(s)) == EINTR || (s->get_error(s)) == EWOULDBLOCK)); if (ret == -1) ret = -(s->get_error(s)); ...
[ "ssize_t FUNC_0(void *opaque, const void *data, size_t size)\n{", "FdMigrationState *s = opaque;", "ssize_t ret;", "do {", "ret = s->write(s, data, size);", "} while (ret == -1 && ((s->get_error(s)) == EINTR || (s->get_error(s)) == EWOULDBLOCK));", "if (ret == -1)\nret = -(s->get_error(s));", "if (ret...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25, 27 ], [ 31 ], [ 33 ] ]
23,149
static void apic_mem_writel(void *opaque, target_phys_addr_t addr, uint32_t val) { DeviceState *d; APICCommonState *s; int index = (addr >> 4) & 0xff; if (addr > 0xfff || !index) { /* MSI and MMIO APIC are at the same memory location, * but actually not on the global bus: MSI is ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void apic_mem_writel(void *opaque, target_phys_addr_t addr, uint32_t val) { DeviceState *d; APICCommonState *s; int index = (addr >> 4) & 0xff; if (addr > 0xfff || !index) { apic_send_msi(addr, val); return; } d = cpu_get_current_apic(); i...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { DeviceState *d; APICCommonState *s; int VAR_3 = (VAR_1 >> 4) & 0xff; if (VAR_1 > 0xfff || !VAR_3) { apic_send_msi(VAR_1, VAR_2); return; } d = cpu_get_current_apic(); if ...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)\n{", "DeviceState *d;", "APICCommonState *s;", "int VAR_3 = (VAR_1 >> 4) & 0xff;", "if (VAR_1 > 0xfff || !VAR_3) {", "apic_send_msi(VAR_1, VAR_2);", "return;", "}", "d = cpu_get_current_apic();", "if (!d) {", "return;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 55, 57 ], [ 59,...
23,150
static void pxa2xx_gpio_set(void *opaque, int line, int level) { PXA2xxGPIOInfo *s = (PXA2xxGPIOInfo *) opaque; CPUState *cpu = CPU(s->cpu); int bank; uint32_t mask; if (line >= s->lines) { printf("%s: No GPIO pin %i\n", __FUNCTION__, line); return; } bank = lin...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static void pxa2xx_gpio_set(void *opaque, int line, int level) { PXA2xxGPIOInfo *s = (PXA2xxGPIOInfo *) opaque; CPUState *cpu = CPU(s->cpu); int bank; uint32_t mask; if (line >= s->lines) { printf("%s: No GPIO pin %i\n", __FUNCTION__, line); return; } bank = lin...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2) { PXA2xxGPIOInfo *s = (PXA2xxGPIOInfo *) VAR_0; CPUState *cpu = CPU(s->cpu); int VAR_3; uint32_t mask; if (VAR_1 >= s->lines) { printf("%s: No GPIO pin %i\n", __FUNCTION__, VAR_1); return; } VAR_3 = VAR_1 >> ...
[ "static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)\n{", "PXA2xxGPIOInfo *s = (PXA2xxGPIOInfo *) VAR_0;", "CPUState *cpu = CPU(s->cpu);", "int VAR_3;", "uint32_t mask;", "if (VAR_1 >= s->lines) {", "printf(\"%s: No GPIO pin %i\\n\", __FUNCTION__, VAR_1);", "return;", "}", "VAR_3 = VAR_1 >> 5;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51,...
23,151
int vhost_net_start(struct vhost_net *net, VirtIODevice *dev) { struct vhost_vring_file file = { }; int r; if (net->dev.acked_features & (1 << VIRTIO_NET_F_MRG_RXBUF)) { tap_set_vnet_hdr_len(net->vc, sizeof(struct virtio_net_hdr_mrg_rxbuf)); ...
false
qemu
6b37c87c96a5b148685e8e6bf09d0aca953cb1a8
int vhost_net_start(struct vhost_net *net, VirtIODevice *dev) { struct vhost_vring_file file = { }; int r; if (net->dev.acked_features & (1 << VIRTIO_NET_F_MRG_RXBUF)) { tap_set_vnet_hdr_len(net->vc, sizeof(struct virtio_net_hdr_mrg_rxbuf)); ...
{ "code": [], "line_no": [] }
int FUNC_0(struct vhost_net *VAR_0, VirtIODevice *VAR_1) { struct vhost_vring_file VAR_2 = { }; int VAR_4; if (VAR_0->VAR_1.acked_features & (1 << VIRTIO_NET_F_MRG_RXBUF)) { tap_set_vnet_hdr_len(VAR_0->vc, sizeof(struct virtio_net_hdr_mrg_rxbuf...
[ "int FUNC_0(struct vhost_net *VAR_0,\nVirtIODevice *VAR_1)\n{", "struct vhost_vring_file VAR_2 = { };", "int VAR_4;", "if (VAR_0->VAR_1.acked_features & (1 << VIRTIO_NET_F_MRG_RXBUF)) {", "tap_set_vnet_hdr_len(VAR_0->vc,\nsizeof(struct virtio_net_hdr_mrg_rxbuf));", "}", "VAR_0->VAR_1.nvqs = 2;", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
23,152
static int iscsi_create(const char *filename, QEMUOptionParameter *options, Error **errp) { int ret = 0; int64_t total_size = 0; BlockDriverState *bs; IscsiLun *iscsilun = NULL; QDict *bs_options; bs = bdrv_new(""); /* Read out options */ while (opti...
false
qemu
98522f63f40adaebc412481e1d2e9170160d4539
static int iscsi_create(const char *filename, QEMUOptionParameter *options, Error **errp) { int ret = 0; int64_t total_size = 0; BlockDriverState *bs; IscsiLun *iscsilun = NULL; QDict *bs_options; bs = bdrv_new(""); while (options && options->name) ...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1, Error **VAR_2) { int VAR_3 = 0; int64_t total_size = 0; BlockDriverState *bs; IscsiLun *iscsilun = NULL; QDict *bs_options; bs = bdrv_new(""); while (VAR_1 && VAR_1->name) { i...
[ "static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1,\nError **VAR_2)\n{", "int VAR_3 = 0;", "int64_t total_size = 0;", "BlockDriverState *bs;", "IscsiLun *iscsilun = NULL;", "QDict *bs_options;", "bs = bdrv_new(\"\");", "while (VAR_1 && VAR_1->name) {", "if (!strcmp(VAR_1->name, \"size\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
23,153
static void virtio_init_region_cache(VirtIODevice *vdev, int n) { VirtQueue *vq = &vdev->vq[n]; VRingMemoryRegionCaches *old = vq->vring.caches; VRingMemoryRegionCaches *new; hwaddr addr, size; int event_size; event_size = virtio_vdev_has_feature(vq->vdev, VIRTIO_RING_F_EVENT_IDX) ? 2 :...
false
qemu
e45da653223869849877ee8f4b86f511f891d4f8
static void virtio_init_region_cache(VirtIODevice *vdev, int n) { VirtQueue *vq = &vdev->vq[n]; VRingMemoryRegionCaches *old = vq->vring.caches; VRingMemoryRegionCaches *new; hwaddr addr, size; int event_size; event_size = virtio_vdev_has_feature(vq->vdev, VIRTIO_RING_F_EVENT_IDX) ? 2 :...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIODevice *VAR_0, int VAR_1) { VirtQueue *vq = &VAR_0->vq[VAR_1]; VRingMemoryRegionCaches *old = vq->vring.caches; VRingMemoryRegionCaches *new; hwaddr addr, size; int VAR_2; VAR_2 = virtio_vdev_has_feature(vq->VAR_0, VIRTIO_RING_F_EVENT_IDX) ? 2 : 0; addr =...
[ "static void FUNC_0(VirtIODevice *VAR_0, int VAR_1)\n{", "VirtQueue *vq = &VAR_0->vq[VAR_1];", "VRingMemoryRegionCaches *old = vq->vring.caches;", "VRingMemoryRegionCaches *new;", "hwaddr addr, size;", "int VAR_2;", "VAR_2 = virtio_vdev_has_feature(vq->VAR_0, VIRTIO_RING_F_EVENT_IDX) ? 2 : 0;", "addr ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 39 ], [ 41, 43 ], [ 47 ], [ 49, 51 ], [...
23,154
static void xilinx_spips_realize(DeviceState *dev, Error **errp) { XilinxSPIPS *s = XILINX_SPIPS(dev); SysBusDevice *sbd = SYS_BUS_DEVICE(dev); XilinxSPIPSClass *xsc = XILINX_SPIPS_GET_CLASS(s); int i; DB_PRINT("realized spips\n"); s->spi = g_new(SSIBus *, s->num_busses); for (i ...
false
qemu
b5cd9143e78da8ea9e17fa523aacbedd267aae54
static void xilinx_spips_realize(DeviceState *dev, Error **errp) { XilinxSPIPS *s = XILINX_SPIPS(dev); SysBusDevice *sbd = SYS_BUS_DEVICE(dev); XilinxSPIPSClass *xsc = XILINX_SPIPS_GET_CLASS(s); int i; DB_PRINT("realized spips\n"); s->spi = g_new(SSIBus *, s->num_busses); for (i ...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { XilinxSPIPS *s = XILINX_SPIPS(VAR_0); SysBusDevice *sbd = SYS_BUS_DEVICE(VAR_0); XilinxSPIPSClass *xsc = XILINX_SPIPS_GET_CLASS(s); int VAR_2; DB_PRINT("realized spips\n"); s->spi = g_new(SSIBus *, s->num_busses); for (VAR_2...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "XilinxSPIPS *s = XILINX_SPIPS(VAR_0);", "SysBusDevice *sbd = SYS_BUS_DEVICE(VAR_0);", "XilinxSPIPSClass *xsc = XILINX_SPIPS_GET_CLASS(s);", "int VAR_2;", "DB_PRINT(\"realized spips\\n\");", "s->spi = g_new(SSIBus *, s->num_busses);", "for (V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
23,157
static int read_key(void) { #if defined(HAVE_CONIO_H) if(kbhit()) return(getch()); #elif defined(HAVE_TERMIOS_H) int n = 1; unsigned char ch; #ifndef CONFIG_BEOS_NETSERVER struct timeval tv; fd_set rfds; FD_ZERO(&rfds); FD_SET(0, &rfds); tv.tv_sec = 0; tv.tv_u...
false
FFmpeg
4b54c6d08437e5e3dd9359f29b247be58fef965f
static int read_key(void) { #if defined(HAVE_CONIO_H) if(kbhit()) return(getch()); #elif defined(HAVE_TERMIOS_H) int n = 1; unsigned char ch; #ifndef CONFIG_BEOS_NETSERVER struct timeval tv; fd_set rfds; FD_ZERO(&rfds); FD_SET(0, &rfds); tv.tv_sec = 0; tv.tv_u...
{ "code": [], "line_no": [] }
static int FUNC_0(void) { #if defined(HAVE_CONIO_H) if(kbhit()) return(getch()); #elif defined(HAVE_TERMIOS_H) int n = 1; unsigned char ch; #ifndef CONFIG_BEOS_NETSERVER struct timeval tv; fd_set rfds; FD_ZERO(&rfds); FD_SET(0, &rfds); tv.tv_sec = 0; tv.tv_use...
[ "static int FUNC_0(void)\n{", "#if defined(HAVE_CONIO_H)\nif(kbhit())\nreturn(getch());", "#elif defined(HAVE_TERMIOS_H)\nint n = 1;", "unsigned char ch;", "#ifndef CONFIG_BEOS_NETSERVER\nstruct timeval tv;", "fd_set rfds;", "FD_ZERO(&rfds);", "FD_SET(0, &rfds);", "tv.tv_sec = 0;", "tv.tv_usec = 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 11, 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 47 ], [ 49 ], [ 51,...
23,158
static bool virtio_scsi_data_plane_handle_event(VirtIODevice *vdev, VirtQueue *vq) { VirtIOSCSI *s = VIRTIO_SCSI(vdev); assert(s->ctx && s->dataplane_started); return virtio_scsi_handle_event_vq(s, vq); }
true
qemu
71407786054cad26de7ef66718b2a57a4bcb49b5
static bool virtio_scsi_data_plane_handle_event(VirtIODevice *vdev, VirtQueue *vq) { VirtIOSCSI *s = VIRTIO_SCSI(vdev); assert(s->ctx && s->dataplane_started); return virtio_scsi_handle_event_vq(s, vq); }
{ "code": [ " return virtio_scsi_handle_event_vq(s, vq);" ], "line_no": [ 13 ] }
static bool FUNC_0(VirtIODevice *vdev, VirtQueue *vq) { VirtIOSCSI *s = VIRTIO_SCSI(vdev); assert(s->ctx && s->dataplane_started); return virtio_scsi_handle_event_vq(s, vq); }
[ "static bool FUNC_0(VirtIODevice *vdev,\nVirtQueue *vq)\n{", "VirtIOSCSI *s = VIRTIO_SCSI(vdev);", "assert(s->ctx && s->dataplane_started);", "return virtio_scsi_handle_event_vq(s, vq);", "}" ]
[ 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ] ]
23,162
opts_next_list(Visitor *v, GenericList **list, size_t size) { OptsVisitor *ov = to_ov(v); GenericList **link; switch (ov->list_mode) { case LM_STARTED: ov->list_mode = LM_IN_PROGRESS; link = list; break; case LM_SIGNED_INTERVAL: case LM_UNSIGNED_INTERVAL: ...
false
qemu
d9f62dde1303286b24ac8ce88be27e2b9b9c5f46
opts_next_list(Visitor *v, GenericList **list, size_t size) { OptsVisitor *ov = to_ov(v); GenericList **link; switch (ov->list_mode) { case LM_STARTED: ov->list_mode = LM_IN_PROGRESS; link = list; break; case LM_SIGNED_INTERVAL: case LM_UNSIGNED_INTERVAL: ...
{ "code": [], "line_no": [] }
FUNC_0(Visitor *VAR_0, GenericList **VAR_1, size_t VAR_2) { OptsVisitor *ov = to_ov(VAR_0); GenericList **link; switch (ov->list_mode) { case LM_STARTED: ov->list_mode = LM_IN_PROGRESS; link = VAR_1; break; case LM_SIGNED_INTERVAL: case LM_UNSIGNED_INTERVAL:...
[ "FUNC_0(Visitor *VAR_0, GenericList **VAR_1, size_t VAR_2)\n{", "OptsVisitor *ov = to_ov(VAR_0);", "GenericList **link;", "switch (ov->list_mode) {", "case LM_STARTED:\nov->list_mode = LM_IN_PROGRESS;", "link = VAR_1;", "break;", "case LM_SIGNED_INTERVAL:\ncase LM_UNSIGNED_INTERVAL:\nlink = &(*VAR_1)-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23, 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], ...
23,164
static int vnc_display_get_addresses(QemuOpts *opts, bool reverse, SocketAddress ***retsaddr, size_t *retnsaddr, SocketAddress ***retwsaddr, ...
false
qemu
dfd100f242370886bb6732f70f1f7cbd8eb9fedc
static int vnc_display_get_addresses(QemuOpts *opts, bool reverse, SocketAddress ***retsaddr, size_t *retnsaddr, SocketAddress ***retwsaddr, ...
{ "code": [], "line_no": [] }
static int FUNC_0(QemuOpts *VAR_0, bool VAR_1, SocketAddress ***VAR_2, size_t *VAR_3, SocketAddress ***VAR_4, size_t *VAR_5, ...
[ "static int FUNC_0(QemuOpts *VAR_0,\nbool VAR_1,\nSocketAddress ***VAR_2,\nsize_t *VAR_3,\nSocketAddress ***VAR_4,\nsize_t *VAR_5,\nError **VAR_6)\n{", "SocketAddress *saddr = NULL;", "SocketAddress *wsaddr = NULL;", "QemuOptsIter addriter;", "const char *VAR_7;", "int VAR_8 = qemu_opt_get_number(VAR_0, \...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
23,165
static int spapr_create_pci_child_dt(sPAPRPHBState *phb, PCIDevice *dev, void *fdt, int node_offset) { int offset, ret; char nodename[FDT_NAME_MAX]; pci_get_node_name(nodename, FDT_NAME_MAX, dev); offset = fdt_add_subnode(fdt, node_offset, nodename); ret...
false
qemu
549ce59e2b9ed7f41d2f88524bd5e01b0d7db2e9
static int spapr_create_pci_child_dt(sPAPRPHBState *phb, PCIDevice *dev, void *fdt, int node_offset) { int offset, ret; char nodename[FDT_NAME_MAX]; pci_get_node_name(nodename, FDT_NAME_MAX, dev); offset = fdt_add_subnode(fdt, node_offset, nodename); ret...
{ "code": [], "line_no": [] }
static int FUNC_0(sPAPRPHBState *VAR_0, PCIDevice *VAR_1, void *VAR_2, int VAR_3) { int VAR_4, VAR_5; char VAR_6[FDT_NAME_MAX]; pci_get_node_name(VAR_6, FDT_NAME_MAX, VAR_1); VAR_4 = fdt_add_subnode(VAR_2, VAR_3, VAR_6); VAR_5 = spapr_populate_pci_child_...
[ "static int FUNC_0(sPAPRPHBState *VAR_0, PCIDevice *VAR_1,\nvoid *VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5;", "char VAR_6[FDT_NAME_MAX];", "pci_get_node_name(VAR_6, FDT_NAME_MAX, VAR_1);", "VAR_4 = fdt_add_subnode(VAR_2, VAR_3, VAR_6);", "VAR_5 = spapr_populate_pci_child_dt(VAR_1, VAR_2, VAR_4, VAR_0);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
23,166
static void slavio_timer_irq(void *opaque) { TimerContext *tc = opaque; SLAVIO_TIMERState *s = tc->s; CPUTimerState *t = &s->cputimer[tc->timer_index]; slavio_timer_get_out(t); DPRINTF("callback: count %x%08x\n", t->counthigh, t->count); t->reached = TIMER_REACHED; /* there is no i...
false
qemu
68fb89a2c07b6ad1e69a9a45f664d533f2662ec6
static void slavio_timer_irq(void *opaque) { TimerContext *tc = opaque; SLAVIO_TIMERState *s = tc->s; CPUTimerState *t = &s->cputimer[tc->timer_index]; slavio_timer_get_out(t); DPRINTF("callback: count %x%08x\n", t->counthigh, t->count); t->reached = TIMER_REACHED; if (!slavi...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { TimerContext *tc = VAR_0; SLAVIO_TIMERState *s = tc->s; CPUTimerState *t = &s->cputimer[tc->timer_index]; slavio_timer_get_out(t); DPRINTF("callback: count %x%08x\n", t->counthigh, t->count); t->reached = TIMER_REACHED; if (!slavio_timer_is_u...
[ "static void FUNC_0(void *VAR_0)\n{", "TimerContext *tc = VAR_0;", "SLAVIO_TIMERState *s = tc->s;", "CPUTimerState *t = &s->cputimer[tc->timer_index];", "slavio_timer_get_out(t);", "DPRINTF(\"callback: count %x%08x\\n\", t->counthigh, t->count);", "t->reached = TIMER_REACHED;", "if (!slavio_timer_is_u...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
23,168
uint64_t helper_fre (uint64_t arg) { CPU_DoubleU fone, farg; fone.ll = 0x3FF0000000000000ULL; /* 1.0 */ farg.ll = arg; if (unlikely(float64_is_signaling_nan(farg.d))) { /* sNaN reciprocal */ farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN); } else if (unlikely(float6...
false
qemu
6c01bf6c7ba7539460fcaeb99fbe1776ba137aa8
uint64_t helper_fre (uint64_t arg) { CPU_DoubleU fone, farg; fone.ll = 0x3FF0000000000000ULL; farg.ll = arg; if (unlikely(float64_is_signaling_nan(farg.d))) { farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN); } else if (unlikely(float64_is_zero(farg.d))) { ...
{ "code": [], "line_no": [] }
uint64_t FUNC_0 (uint64_t arg) { CPU_DoubleU fone, farg; fone.ll = 0x3FF0000000000000ULL; farg.ll = arg; if (unlikely(float64_is_signaling_nan(farg.d))) { farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN); } else if (unlikely(float64_is_zero(farg.d))) { ...
[ "uint64_t FUNC_0 (uint64_t arg)\n{", "CPU_DoubleU fone, farg;", "fone.ll = 0x3FF0000000000000ULL;", "farg.ll = arg;", "if (unlikely(float64_is_signaling_nan(farg.d))) {", "farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN);", "} else if (unlikely(float64_is_zero(farg.d))) {", "farg.ll = float_zer...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
23,169
static int convert_iteration_sectors(ImgConvertState *s, int64_t sector_num) { int64_t ret; int n; convert_select_part(s, sector_num); assert(s->total_sectors > sector_num); n = MIN(s->total_sectors - sector_num, BDRV_REQUEST_MAX_SECTORS); if (s->sector_next_status <= sector_num) { ...
false
qemu
263a6f4c3aa9b6cd9f58d1368b318d948156a4e8
static int convert_iteration_sectors(ImgConvertState *s, int64_t sector_num) { int64_t ret; int n; convert_select_part(s, sector_num); assert(s->total_sectors > sector_num); n = MIN(s->total_sectors - sector_num, BDRV_REQUEST_MAX_SECTORS); if (s->sector_next_status <= sector_num) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(ImgConvertState *VAR_0, int64_t VAR_1) { int64_t ret; int VAR_2; convert_select_part(VAR_0, VAR_1); assert(VAR_0->total_sectors > VAR_1); VAR_2 = MIN(VAR_0->total_sectors - VAR_1, BDRV_REQUEST_MAX_SECTORS); if (VAR_0->sector_next_status <= VAR_1) { BlockDr...
[ "static int FUNC_0(ImgConvertState *VAR_0, int64_t VAR_1)\n{", "int64_t ret;", "int VAR_2;", "convert_select_part(VAR_0, VAR_1);", "assert(VAR_0->total_sectors > VAR_1);", "VAR_2 = MIN(VAR_0->total_sectors - VAR_1, BDRV_REQUEST_MAX_SECTORS);", "if (VAR_0->sector_next_status <= VAR_1) {", "BlockDriverS...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 59 ], [ 61...
23,170
uint32_t HELPER(mvcs)(CPUS390XState *env, uint64_t l, uint64_t a1, uint64_t a2) { HELPER_LOG("%s: %16" PRIx64 " %16" PRIx64 " %16" PRIx64 "\n", __func__, l, a1, a2); return mvc_asc(env, l, a1, PSW_ASC_SECONDARY, a2, PSW_ASC_PRIMARY); }
false
qemu
a3084e8055067b3fe8ed653a609021d2ab368564
uint32_t HELPER(mvcs)(CPUS390XState *env, uint64_t l, uint64_t a1, uint64_t a2) { HELPER_LOG("%s: %16" PRIx64 " %16" PRIx64 " %16" PRIx64 "\n", __func__, l, a1, a2); return mvc_asc(env, l, a1, PSW_ASC_SECONDARY, a2, PSW_ASC_PRIMARY); }
{ "code": [], "line_no": [] }
uint32_t FUNC_0(mvcs)(CPUS390XState *env, uint64_t l, uint64_t a1, uint64_t a2) { HELPER_LOG("%s: %16" PRIx64 " %16" PRIx64 " %16" PRIx64 "\n", __func__, l, a1, a2); return mvc_asc(env, l, a1, PSW_ASC_SECONDARY, a2, PSW_ASC_PRIMARY); }
[ "uint32_t FUNC_0(mvcs)(CPUS390XState *env, uint64_t l, uint64_t a1, uint64_t a2)\n{", "HELPER_LOG(\"%s: %16\" PRIx64 \" %16\" PRIx64 \" %16\" PRIx64 \"\\n\",\n__func__, l, a1, a2);", "return mvc_asc(env, l, a1, PSW_ASC_SECONDARY, a2, PSW_ASC_PRIMARY);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13 ] ]
23,171
static int oss_run_out (HWVoiceOut *hw) { OSSVoiceOut *oss = (OSSVoiceOut *) hw; int err, rpos, live, decr; int samples; uint8_t *dst; st_sample_t *src; struct audio_buf_info abinfo; struct count_info cntinfo; int bufsize; live = audio_pcm_hw_get_live_out (hw); if (!...
false
qemu
1ea879e5580f63414693655fcf0328559cdce138
static int oss_run_out (HWVoiceOut *hw) { OSSVoiceOut *oss = (OSSVoiceOut *) hw; int err, rpos, live, decr; int samples; uint8_t *dst; st_sample_t *src; struct audio_buf_info abinfo; struct count_info cntinfo; int bufsize; live = audio_pcm_hw_get_live_out (hw); if (!...
{ "code": [], "line_no": [] }
static int FUNC_0 (HWVoiceOut *VAR_0) { OSSVoiceOut *oss = (OSSVoiceOut *) VAR_0; int VAR_1, VAR_2, VAR_3, VAR_4; int VAR_5; uint8_t *dst; st_sample_t *src; struct audio_buf_info VAR_6; struct count_info VAR_7; int VAR_8; VAR_3 = audio_pcm_hw_get_live_out (VAR_0); if...
[ "static int FUNC_0 (HWVoiceOut *VAR_0)\n{", "OSSVoiceOut *oss = (OSSVoiceOut *) VAR_0;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "int VAR_5;", "uint8_t *dst;", "st_sample_t *src;", "struct audio_buf_info VAR_6;", "struct count_info VAR_7;", "int VAR_8;", "VAR_3 = audio_pcm_hw_get_live_out (VAR_0);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
23,172
SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int dstW, int dstH, enum PixelFormat dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter, const double *param) { SwsContext *c; int i; int usesVFilter, usesHFil...
false
FFmpeg
f684f3c58a77a20f18b80f888d69c2bacb53ca9b
SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int dstW, int dstH, enum PixelFormat dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter, const double *param) { SwsContext *c; int i; int usesVFilter, usesHFil...
{ "code": [], "line_no": [] }
SwsContext *FUNC_0(int srcW, int srcH, enum PixelFormat srcFormat, int dstW, int dstH, enum PixelFormat dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter, const double *param) { SwsContext *c; int VAR_0; int VAR_1, VAR_2; int VA...
[ "SwsContext *FUNC_0(int srcW, int srcH, enum PixelFormat srcFormat,\nint dstW, int dstH, enum PixelFormat dstFormat, int flags,\nSwsFilter *srcFilter, SwsFilter *dstFilter, const double *param)\n{", "SwsContext *c;", "int VAR_0;", "int VAR_1, VAR_2;", "int VAR_3;", "int VAR_4, VAR_5;", "SwsFilter dummyF...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23, 25 ], [ 27, 31, 33 ], [ 35 ], [ 37, 39 ], [ 43 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [...
23,175
IDEDevice *ide_create_drive(IDEBus *bus, int unit, DriveInfo *drive) { DeviceState *dev; dev = qdev_create(&bus->qbus, drive->media_cd ? "ide-cd" : "ide-hd"); qdev_prop_set_uint32(dev, "unit", unit); qdev_prop_set_drive_nofail(dev, "drive", blk_bs(blk_by_legacy_din...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
IDEDevice *ide_create_drive(IDEBus *bus, int unit, DriveInfo *drive) { DeviceState *dev; dev = qdev_create(&bus->qbus, drive->media_cd ? "ide-cd" : "ide-hd"); qdev_prop_set_uint32(dev, "unit", unit); qdev_prop_set_drive_nofail(dev, "drive", blk_bs(blk_by_legacy_din...
{ "code": [], "line_no": [] }
IDEDevice *FUNC_0(IDEBus *bus, int unit, DriveInfo *drive) { DeviceState *dev; dev = qdev_create(&bus->qbus, drive->media_cd ? "ide-cd" : "ide-hd"); qdev_prop_set_uint32(dev, "unit", unit); qdev_prop_set_drive_nofail(dev, "drive", blk_bs(blk_by_legacy_dinfo(drive))...
[ "IDEDevice *FUNC_0(IDEBus *bus, int unit, DriveInfo *drive)\n{", "DeviceState *dev;", "dev = qdev_create(&bus->qbus, drive->media_cd ? \"ide-cd\" : \"ide-hd\");", "qdev_prop_set_uint32(dev, \"unit\", unit);", "qdev_prop_set_drive_nofail(dev, \"drive\",\nblk_bs(blk_by_legacy_dinfo(drive)));", "qdev_init_no...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ] ]
23,176
void qmp_block_set_io_throttle(const char *device, int64_t bps, int64_t bps_rd, int64_t bps_wr, int64_t iops, int64_t iops_rd, int64_t iops_wr, Error **errp) { BlockIOLimit io_limits; BlockDriverState *bs; bs = bdrv_find(device); if ...
false
qemu
c546194f260fb3e391193cb8cc33505618077ecb
void qmp_block_set_io_throttle(const char *device, int64_t bps, int64_t bps_rd, int64_t bps_wr, int64_t iops, int64_t iops_rd, int64_t iops_wr, Error **errp) { BlockIOLimit io_limits; BlockDriverState *bs; bs = bdrv_find(device); if ...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, int64_t VAR_1, int64_t VAR_2, int64_t VAR_3, int64_t VAR_4, int64_t VAR_5, int64_t VAR_6, Error **VAR_7) { BlockIOLimit io_limits; BlockDriverState *bs; bs = bdrv_find(VAR_0); if (!bs) { error_...
[ "void FUNC_0(const char *VAR_0, int64_t VAR_1, int64_t VAR_2,\nint64_t VAR_3, int64_t VAR_4, int64_t VAR_5,\nint64_t VAR_6, Error **VAR_7)\n{", "BlockIOLimit io_limits;", "BlockDriverState *bs;", "bs = bdrv_find(VAR_0);", "if (!bs) {", "error_set(VAR_7, QERR_DEVICE_NOT_FOUND, VAR_0);", "return;", "}",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ...
23,177
void os_host_main_loop_wait(int *timeout) { int ret, ret2, i; PollingEntry *pe; /* XXX: need to suppress polling by better using win32 events */ ret = 0; for(pe = first_polling_entry; pe != NULL; pe = pe->next) { ret |= pe->func(pe->opaque); } if (ret == 0) { int ...
false
qemu
d3b12f5dec4b27ebab58fb5797cb67bacced773b
void os_host_main_loop_wait(int *timeout) { int ret, ret2, i; PollingEntry *pe; ret = 0; for(pe = first_polling_entry; pe != NULL; pe = pe->next) { ret |= pe->func(pe->opaque); } if (ret == 0) { int err; WaitObjects *w = &wait_objects; qemu_mu...
{ "code": [], "line_no": [] }
void FUNC_0(int *VAR_0) { int VAR_1, VAR_2, VAR_3; PollingEntry *pe; VAR_1 = 0; for(pe = first_polling_entry; pe != NULL; pe = pe->next) { VAR_1 |= pe->func(pe->opaque); } if (VAR_1 == 0) { int VAR_4; WaitObjects *w = &wait_objects; qemu_mutex...
[ "void FUNC_0(int *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3;", "PollingEntry *pe;", "VAR_1 = 0;", "for(pe = first_polling_entry; pe != NULL; pe = pe->next) {", "VAR_1 |= pe->func(pe->opaque);", "}", "if (VAR_1 == 0) {", "int VAR_4;", "WaitObjects *w = &wait_objects;", "qemu_mutex_unlock_iothread();",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 45 ], [ 51 ], [ 53 ], [ 55, 57...
23,178
static void thread_pool_completion_bh(void *opaque) { ThreadPool *pool = opaque; ThreadPoolElement *elem, *next; restart: QLIST_FOREACH_SAFE(elem, &pool->head, all, next) { if (elem->state != THREAD_DONE) { continue; } trace_thread_pool_complete(pool, elem, e...
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
static void thread_pool_completion_bh(void *opaque) { ThreadPool *pool = opaque; ThreadPoolElement *elem, *next; restart: QLIST_FOREACH_SAFE(elem, &pool->head, all, next) { if (elem->state != THREAD_DONE) { continue; } trace_thread_pool_complete(pool, elem, e...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { ThreadPool *pool = VAR_0; ThreadPoolElement *elem, *next; restart: QLIST_FOREACH_SAFE(elem, &pool->head, all, next) { if (elem->state != THREAD_DONE) { continue; } trace_thread_pool_complete(pool, elem, elem->common.VAR_0, ...
[ "static void FUNC_0(void *VAR_0)\n{", "ThreadPool *pool = VAR_0;", "ThreadPoolElement *elem, *next;", "restart:\nQLIST_FOREACH_SAFE(elem, &pool->head, all, next) {", "if (elem->state != THREAD_DONE) {", "continue;", "}", "trace_thread_pool_complete(pool, elem, elem->common.VAR_0,\nelem->ret);", "QLI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 35 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61...
23,179
static void test_commands(void) { char *response; int i; for (i = 0; hmp_cmds[i] != NULL; i++) { if (verbose) { fprintf(stderr, "\t%s\n", hmp_cmds[i]); } response = hmp(hmp_cmds[i]); g_free(response); } }
false
qemu
7b899f4dd596dbb7d271f7fab36fbfffec84868e
static void test_commands(void) { char *response; int i; for (i = 0; hmp_cmds[i] != NULL; i++) { if (verbose) { fprintf(stderr, "\t%s\n", hmp_cmds[i]); } response = hmp(hmp_cmds[i]); g_free(response); } }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { char *VAR_0; int VAR_1; for (VAR_1 = 0; hmp_cmds[VAR_1] != NULL; VAR_1++) { if (verbose) { fprintf(stderr, "\t%s\n", hmp_cmds[VAR_1]); } VAR_0 = hmp(hmp_cmds[VAR_1]); g_free(VAR_0); } }
[ "static void FUNC_0(void)\n{", "char *VAR_0;", "int VAR_1;", "for (VAR_1 = 0; hmp_cmds[VAR_1] != NULL; VAR_1++) {", "if (verbose) {", "fprintf(stderr, \"\\t%s\\n\", hmp_cmds[VAR_1]);", "}", "VAR_0 = hmp(hmp_cmds[VAR_1]);", "g_free(VAR_0);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ] ]
23,180
static void tcg_out_movi(TCGContext *s, TCGType type, TCGReg rd, tcg_target_long value) { AArch64Insn insn; if (type == TCG_TYPE_I32) { value = (uint32_t)value; } /* count trailing zeros in 16 bit steps, mapping 64 to 0. Emit the first MOVZ with the ha...
false
qemu
dfeb5fe7700d5e29a276f571aee7f6fc4267ee96
static void tcg_out_movi(TCGContext *s, TCGType type, TCGReg rd, tcg_target_long value) { AArch64Insn insn; if (type == TCG_TYPE_I32) { value = (uint32_t)value; } insn = I3405_MOVZ; do { unsigned shift = ctz64(value) & (63 & -16);...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGReg VAR_2, tcg_target_long VAR_3) { AArch64Insn insn; if (VAR_1 == TCG_TYPE_I32) { VAR_3 = (uint32_t)VAR_3; } insn = I3405_MOVZ; do { unsigned VAR_4 = ctz64(VAR_3) & (63 & -1...
[ "static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGReg VAR_2,\ntcg_target_long VAR_3)\n{", "AArch64Insn insn;", "if (VAR_1 == TCG_TYPE_I32) {", "VAR_3 = (uint32_t)VAR_3;", "}", "insn = I3405_MOVZ;", "do {", "unsigned VAR_4 = ctz64(VAR_3) & (63 & -16);", "tcg_out_insn_3405(VAR_0, insn, VAR_4 >=...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
23,181
static void exynos4210_uart_write(void *opaque, target_phys_addr_t offset, uint64_t val, unsigned size) { Exynos4210UartState *s = (Exynos4210UartState *)opaque; uint8_t ch; PRINT_DEBUG_EXTEND("UART%d: <0x%04x> %s <- 0x%08llx\n", s->channel, offset, exynos4210_...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void exynos4210_uart_write(void *opaque, target_phys_addr_t offset, uint64_t val, unsigned size) { Exynos4210UartState *s = (Exynos4210UartState *)opaque; uint8_t ch; PRINT_DEBUG_EXTEND("UART%d: <0x%04x> %s <- 0x%08llx\n", s->channel, offset, exynos4210_...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { Exynos4210UartState *s = (Exynos4210UartState *)VAR_0; uint8_t ch; PRINT_DEBUG_EXTEND("UART%d: <0x%04x> %s <- 0x%08llx\n", s->channel, VAR_1, exynos4210_uart_regname(VAR...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "Exynos4210UartState *s = (Exynos4210UartState *)VAR_0;", "uint8_t ch;", "PRINT_DEBUG_EXTEND(\"UART%d: <0x%04x> %s <- 0x%08llx\\n\", s->channel,\nVAR_1, exynos4210_uart_regname(VAR_1), (long long unsigned int)VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21, 23, 25, 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
23,182
void FUNC(ff_emulated_edge_mc)(uint8_t *buf, const uint8_t *src, int linesize, int block_w, int block_h, int src_x, int src_y, int w, int h){ int x, y; int start_y, start_x, end_y, end_x; if(src_y>= h){ src+= (h-1-src_y)*linesize; src_y=h-1; }...
false
FFmpeg
2207ea44fb4fad4d47646a789bc244e3e84c1726
void FUNC(ff_emulated_edge_mc)(uint8_t *buf, const uint8_t *src, int linesize, int block_w, int block_h, int src_x, int src_y, int w, int h){ int x, y; int start_y, start_x, end_y, end_x; if(src_y>= h){ src+= (h-1-src_y)*linesize; src_y=h-1; }...
{ "code": [], "line_no": [] }
void FUNC_0(ff_emulated_edge_mc)(uint8_t *buf, const uint8_t *src, int linesize, int block_w, int block_h, int src_x, int src_y, int w, int h){ int VAR_0, VAR_1; int VAR_2, VAR_3, VAR_4, VAR_5; if(src_y>= h){ src+= (h-1-src_y)*linesize; src_y=h-1; ...
[ "void FUNC_0(ff_emulated_edge_mc)(uint8_t *buf, const uint8_t *src, int linesize, int block_w, int block_h,\nint src_x, int src_y, int w, int h){", "int VAR_0, VAR_1;", "int VAR_2, VAR_3, VAR_4, VAR_5;", "if(src_y>= h){", "src+= (h-1-src_y)*linesize;", "src_y=h-1;", "}else if(src_y<=-block_h){", "src+...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45...
23,183
static void test_separators(const AVDictionary *m, const char pair, const char val) { AVDictionary *dict = NULL; char pairs[] = {pair , '\0'}; char vals[] = {val, '\0'}; char *buffer = NULL; av_dict_copy(&dict, m, 0); print_dict(dict); av_dict_get_string(dict, &buffer, val, pair);...
false
FFmpeg
afebf470ca73c17cc8393bfd7eeebfdf6809c2b8
static void test_separators(const AVDictionary *m, const char pair, const char val) { AVDictionary *dict = NULL; char pairs[] = {pair , '\0'}; char vals[] = {val, '\0'}; char *buffer = NULL; av_dict_copy(&dict, m, 0); print_dict(dict); av_dict_get_string(dict, &buffer, val, pair);...
{ "code": [], "line_no": [] }
static void FUNC_0(const AVDictionary *VAR_0, const char VAR_1, const char VAR_2) { AVDictionary *dict = NULL; char VAR_3[] = {VAR_1 , '\0'}; char VAR_4[] = {VAR_2, '\0'}; char *VAR_5 = NULL; av_dict_copy(&dict, VAR_0, 0); print_dict(dict); av_dict_get_string(dict, &VAR_5, VAR_2, ...
[ "static void FUNC_0(const AVDictionary *VAR_0, const char VAR_1, const char VAR_2)\n{", "AVDictionary *dict = NULL;", "char VAR_3[] = {VAR_1 , '\\0'};", "char VAR_4[] = {VAR_2, '\\0'};", "char *VAR_5 = NULL;", "av_dict_copy(&dict, VAR_0, 0);", "print_dict(dict);", "av_dict_get_string(dict, &VAR_5, VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
23,185
static int flac_read_header(AVFormatContext *s) { int ret, metadata_last=0, metadata_type, metadata_size, found_streaminfo=0; uint8_t header[4]; uint8_t *buffer=NULL; FLACDecContext *flac = s->priv_data; AVStream *st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM)...
false
FFmpeg
95bde49982a82bc10470c0adab5969ffe635d064
static int flac_read_header(AVFormatContext *s) { int ret, metadata_last=0, metadata_type, metadata_size, found_streaminfo=0; uint8_t header[4]; uint8_t *buffer=NULL; FLACDecContext *flac = s->priv_data; AVStream *st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM)...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { int VAR_1, VAR_2=0, VAR_3, VAR_4, VAR_5=0; uint8_t header[4]; uint8_t *buffer=NULL; FLACDecContext *flac = VAR_0->priv_data; AVStream *st = avformat_new_stream(VAR_0, NULL); if (!st) return AVERROR(ENOMEM); st->codecpar->codec_type...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "int VAR_1, VAR_2=0, VAR_3, VAR_4, VAR_5=0;", "uint8_t header[4];", "uint8_t *buffer=NULL;", "FLACDecContext *flac = VAR_0->priv_data;", "AVStream *st = avformat_new_stream(VAR_0, NULL);", "if (!st)\nreturn AVERROR(ENOMEM);", "st->codecpar->codec_type = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 55,...
23,188
static int ogg_write_packet(AVFormatContext *avfcontext, int stream_index, const uint8_t *buf, int size, int64_t pts) { OggContext *context = avfcontext->priv_data ; AVCodecContext *avctx= &avfcontext->streams[stream_index]->codec; ogg_packet *op= &context->op; ogg_page og ; ...
false
FFmpeg
b0c7f5a9d82feb7f4c4cdf77f1537193670ab58b
static int ogg_write_packet(AVFormatContext *avfcontext, int stream_index, const uint8_t *buf, int size, int64_t pts) { OggContext *context = avfcontext->priv_data ; AVCodecContext *avctx= &avfcontext->streams[stream_index]->codec; ogg_packet *op= &context->op; ogg_page og ; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, const uint8_t *VAR_2, int VAR_3, int64_t VAR_4) { OggContext *context = VAR_0->priv_data ; AVCodecContext *avctx= &VAR_0->streams[VAR_1]->codec; ogg_packet *op= &context->op; ogg_page og ; VAR_4= av_rescale(VAR_4, avctx->sa...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nint VAR_1,\nconst uint8_t *VAR_2, int VAR_3, int64_t VAR_4)\n{", "OggContext *context = VAR_0->priv_data ;", "AVCodecContext *avctx= &VAR_0->streams[VAR_1]->codec;", "ogg_packet *op= &context->op;", "ogg_page og ;", "VAR_4= av_rescale(VAR_4, avctx->sample_rate, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ...
23,189
uint64_t helper_cvttq_svic(CPUAlphaState *env, uint64_t a) { return inline_cvttq(env, a, float_round_to_zero, 1); }
true
qemu
c24a8a0b6dad5a33d84f5fb846edb28c43312c71
uint64_t helper_cvttq_svic(CPUAlphaState *env, uint64_t a) { return inline_cvttq(env, a, float_round_to_zero, 1); }
{ "code": [ "uint64_t helper_cvttq_svic(CPUAlphaState *env, uint64_t a)", " return inline_cvttq(env, a, float_round_to_zero, 1);" ], "line_no": [ 1, 5 ] }
uint64_t FUNC_0(CPUAlphaState *env, uint64_t a) { return inline_cvttq(env, a, float_round_to_zero, 1); }
[ "uint64_t FUNC_0(CPUAlphaState *env, uint64_t a)\n{", "return inline_cvttq(env, a, float_round_to_zero, 1);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
23,190
void rdma_start_incoming_migration(const char *host_port, Error **errp) { int ret; RDMAContext *rdma; Error *local_err = NULL; DPRINTF("Starting RDMA-based incoming migration\n"); rdma = qemu_rdma_data_init(host_port, &local_err); if (rdma == NULL) { goto err; } r...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
void rdma_start_incoming_migration(const char *host_port, Error **errp) { int ret; RDMAContext *rdma; Error *local_err = NULL; DPRINTF("Starting RDMA-based incoming migration\n"); rdma = qemu_rdma_data_init(host_port, &local_err); if (rdma == NULL) { goto err; } r...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, Error **VAR_1) { int VAR_2; RDMAContext *rdma; Error *local_err = NULL; DPRINTF("Starting RDMA-based incoming migration\n"); rdma = qemu_rdma_data_init(VAR_0, &local_err); if (rdma == NULL) { goto err; } VAR_2 = qemu_rdma_dest_init(r...
[ "void FUNC_0(const char *VAR_0, Error **VAR_1)\n{", "int VAR_2;", "RDMAContext *rdma;", "Error *local_err = NULL;", "DPRINTF(\"Starting RDMA-based incoming migration\\n\");", "rdma = qemu_rdma_data_init(VAR_0, &local_err);", "if (rdma == NULL) {", "goto err;", "}", "VAR_2 = qemu_rdma_dest_init(rdm...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ...
23,191
int hmp_pcie_aer_inject_error(Monitor *mon, const QDict *qdict, QObject **ret_data) { const char *id = qdict_get_str(qdict, "id"); const char *error_name; uint32_t error_status; bool correctable; PCIDevice *dev; PCIEAERErr err; int ret; ret = pci_...
true
qemu
04e00c92ef75629a241ebc50537f75de0867928d
int hmp_pcie_aer_inject_error(Monitor *mon, const QDict *qdict, QObject **ret_data) { const char *id = qdict_get_str(qdict, "id"); const char *error_name; uint32_t error_status; bool correctable; PCIDevice *dev; PCIEAERErr err; int ret; ret = pci_...
{ "code": [ "int hmp_pcie_aer_inject_error(Monitor *mon,", " const QDict *qdict, QObject **ret_data)", "int hmp_pcie_aer_inject_error(Monitor *mon,", " const QDict *qdict, QObject **ret_data)", "int hmp_pcie_aer_inject_error(Monitor *mon," ...
int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2) { const char *VAR_3 = qdict_get_str(VAR_1, "VAR_3"); const char *VAR_4; uint32_t error_status; bool correctable; PCIDevice *dev; PCIEAERErr err; int VAR_5; VAR_5 = pci_qdev_find_devic...
[ "int FUNC_0(Monitor *VAR_0,\nconst QDict *VAR_1, QObject **VAR_2)\n{", "const char *VAR_3 = qdict_get_str(VAR_1, \"VAR_3\");", "const char *VAR_4;", "uint32_t error_status;", "bool correctable;", "PCIDevice *dev;", "PCIEAERErr err;", "int VAR_5;", "VAR_5 = pci_qdev_find_device(VAR_3, &dev);", "if ...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27, 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49 ...
23,192
static void test_opts_parse_number(void) { Error *err = NULL; QemuOpts *opts; /* Lower limit zero */ opts = qemu_opts_parse(&opts_list_01, "number1=0", false, &error_abort); g_assert_cmpuint(opts_count(opts), ==, 1); g_assert_cmpuint(qemu_opt_get_number(opts, "number1", 1), ==, 0); ...
true
qemu
3403e5eb884f3a74c40fe7cccc103f848c040215
static void test_opts_parse_number(void) { Error *err = NULL; QemuOpts *opts; opts = qemu_opts_parse(&opts_list_01, "number1=0", false, &error_abort); g_assert_cmpuint(opts_count(opts), ==, 1); g_assert_cmpuint(qemu_opt_get_number(opts, "number1", 1), ==, 0); opts = qemu_o...
{ "code": [ " false, &error_abort);", " g_assert_cmpuint(opts_count(opts), ==, 1);", " g_assert_cmpuint(qemu_opt_get_number(opts, \"number1\", 1), ==, UINT64_MAX);", " false, &error_abort);", " g_assert_cmpuint(opts_count(opts), ==, 1);"...
static void FUNC_0(void) { Error *err = NULL; QemuOpts *opts; opts = qemu_opts_parse(&opts_list_01, "number1=0", false, &error_abort); g_assert_cmpuint(opts_count(opts), ==, 1); g_assert_cmpuint(qemu_opt_get_number(opts, "number1", 1), ==, 0); opts = qemu_opts_parse(&opts_...
[ "static void FUNC_0(void)\n{", "Error *err = NULL;", "QemuOpts *opts;", "opts = qemu_opts_parse(&opts_list_01, \"number1=0\", false, &error_abort);", "g_assert_cmpuint(opts_count(opts), ==, 1);", "g_assert_cmpuint(qemu_opt_get_number(opts, \"number1\", 1), ==, 0);", "opts = qemu_opts_parse(&opts_list_01...
[ 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 53, 55 ], [ 59 ], [ 61 ], [ 67, 69 ], ...
23,194
static void load_asl(GArray *sdts, AcpiSdtTable *sdt) { AcpiSdtTable *temp; GError *error = NULL; GString *command_line = g_string_new(iasl); gint fd; gchar *out, *out_err; gboolean ret; int i; fd = g_file_open_tmp("asl-XXXXXX.dsl", &sdt->asl_file, &error); g_assert_no_er...
true
qemu
69d09245d19765fd461cc3d3a7d79686007c4474
static void load_asl(GArray *sdts, AcpiSdtTable *sdt) { AcpiSdtTable *temp; GError *error = NULL; GString *command_line = g_string_new(iasl); gint fd; gchar *out, *out_err; gboolean ret; int i; fd = g_file_open_tmp("asl-XXXXXX.dsl", &sdt->asl_file, &error); g_assert_no_er...
{ "code": [ " temp = &g_array_index(sdts, AcpiSdtTable, i);", " g_string_append_printf(command_line, \"-e %s \", temp->aml_file);" ], "line_no": [ 35, 37 ] }
static void FUNC_0(GArray *VAR_0, AcpiSdtTable *VAR_1) { AcpiSdtTable *temp; GError *error = NULL; GString *command_line = g_string_new(iasl); gint fd; gchar *out, *out_err; gboolean ret; int VAR_2; fd = g_file_open_tmp("asl-XXXXXX.dsl", &VAR_1->asl_file, &error); g_asser...
[ "static void FUNC_0(GArray *VAR_0, AcpiSdtTable *VAR_1)\n{", "AcpiSdtTable *temp;", "GError *error = NULL;", "GString *command_line = g_string_new(iasl);", "gint fd;", "gchar *out, *out_err;", "gboolean ret;", "int VAR_2;", "fd = g_file_open_tmp(\"asl-XXXXXX.dsl\", &VAR_1->asl_file, &error);", "g_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 53,...
23,195
static int timebase_post_load(void *opaque, int version_id) { PPCTimebase *tb_remote = opaque; CPUState *cpu; PowerPCCPU *first_ppc_cpu = POWERPC_CPU(first_cpu); int64_t tb_off_adj, tb_off, ns_diff; int64_t migration_duration_ns, migration_duration_tb, guest_tb, host_ns; unsigned long fre...
true
qemu
a2c5eaf7a9f6172e8dc5cfeb283e086f592cf50a
static int timebase_post_load(void *opaque, int version_id) { PPCTimebase *tb_remote = opaque; CPUState *cpu; PowerPCCPU *first_ppc_cpu = POWERPC_CPU(first_cpu); int64_t tb_off_adj, tb_off, ns_diff; int64_t migration_duration_ns, migration_duration_tb, guest_tb, host_ns; unsigned long fre...
{ "code": [ " migration_duration_tb = muldiv64(migration_duration_ns, freq," ], "line_no": [ 49 ] }
static int FUNC_0(void *VAR_0, int VAR_1) { PPCTimebase *tb_remote = VAR_0; CPUState *cpu; PowerPCCPU *first_ppc_cpu = POWERPC_CPU(first_cpu); int64_t tb_off_adj, tb_off, ns_diff; int64_t migration_duration_ns, migration_duration_tb, guest_tb, host_ns; unsigned long VAR_2; if (!fir...
[ "static int FUNC_0(void *VAR_0, int VAR_1)\n{", "PPCTimebase *tb_remote = VAR_0;", "CPUState *cpu;", "PowerPCCPU *first_ppc_cpu = POWERPC_CPU(first_cpu);", "int64_t tb_off_adj, tb_off, ns_diff;", "int64_t migration_duration_ns, migration_duration_tb, guest_tb, host_ns;", "unsigned long VAR_2;", "if (!...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 57 ], [ 61 ], [...
23,196
void *av_malloc(size_t size) { void *ptr = NULL; #if CONFIG_MEMALIGN_HACK long diff; #endif /* let's disallow possible ambiguous cases */ if(size > (INT_MAX-32) ) return NULL; #if CONFIG_MEMALIGN_HACK ptr = malloc(size+32); if(!ptr) return ptr; diff= ((-(long...
true
FFmpeg
14f063d294a18a31928d2167a66b1087910e14c8
void *av_malloc(size_t size) { void *ptr = NULL; #if CONFIG_MEMALIGN_HACK long diff; #endif if(size > (INT_MAX-32) ) return NULL; #if CONFIG_MEMALIGN_HACK ptr = malloc(size+32); if(!ptr) return ptr; diff= ((-(long)ptr - 1)&31) + 1; ptr = (char*)ptr + di...
{ "code": [ " if(size > (INT_MAX-32) )" ], "line_no": [ 17 ] }
void *FUNC_0(size_t VAR_0) { void *VAR_1 = NULL; #if CONFIG_MEMALIGN_HACK long diff; #endif if(VAR_0 > (INT_MAX-32) ) return NULL; #if CONFIG_MEMALIGN_HACK VAR_1 = malloc(VAR_0+32); if(!VAR_1) return VAR_1; diff= ((-(long)VAR_1 - 1)&31) + 1; VAR_1 = (ch...
[ "void *FUNC_0(size_t VAR_0)\n{", "void *VAR_1 = NULL;", "#if CONFIG_MEMALIGN_HACK\nlong diff;", "#endif\nif(VAR_0 > (INT_MAX-32) )\nreturn NULL;", "#if CONFIG_MEMALIGN_HACK\nVAR_1 = malloc(VAR_0+32);", "if(!VAR_1)\nreturn VAR_1;", "diff= ((-(long)VAR_1 - 1)&31) + 1;", "VAR_1 = (char*)VAR_1 + diff;", ...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 17, 19 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39, 41 ], [ 43, 45 ], [ 95, 97 ], [ 99, 101 ], [ 103 ] ]
23,197
static void decor_c(int32_t *dst, const int32_t *src, int coeff, ptrdiff_t len) { int i; for (i = 0; i < len; i++) dst[i] += (int)(src[i] * (SUINT)coeff + (1 << 2)) >> 3; }
true
FFmpeg
949d2176ef0a37c6ecbb65be0f1199536a2d9278
static void decor_c(int32_t *dst, const int32_t *src, int coeff, ptrdiff_t len) { int i; for (i = 0; i < len; i++) dst[i] += (int)(src[i] * (SUINT)coeff + (1 << 2)) >> 3; }
{ "code": [ " dst[i] += (int)(src[i] * (SUINT)coeff + (1 << 2)) >> 3;" ], "line_no": [ 11 ] }
static void FUNC_0(int32_t *VAR_0, const int32_t *VAR_1, int VAR_2, ptrdiff_t VAR_3) { int VAR_4; for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++) VAR_0[VAR_4] += (int)(VAR_1[VAR_4] * (SUINT)VAR_2 + (1 << 2)) >> 3; }
[ "static void FUNC_0(int32_t *VAR_0, const int32_t *VAR_1, int VAR_2, ptrdiff_t VAR_3)\n{", "int VAR_4;", "for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++)", "VAR_0[VAR_4] += (int)(VAR_1[VAR_4] * (SUINT)VAR_2 + (1 << 2)) >> 3;", "}" ]
[ 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
23,198
static void msix_mmio_writel(void *opaque, target_phys_addr_t addr, uint32_t val) { PCIDevice *dev = opaque; unsigned int offset = addr & (MSIX_PAGE_SIZE - 1); int vector = offset / MSIX_ENTRY_SIZE; memcpy(dev->msix_table_page + offset, &val, 4); if (!msix_is_mask...
true
qemu
76f5159d7fc4cdea9574dfbb54307735b280bc66
static void msix_mmio_writel(void *opaque, target_phys_addr_t addr, uint32_t val) { PCIDevice *dev = opaque; unsigned int offset = addr & (MSIX_PAGE_SIZE - 1); int vector = offset / MSIX_ENTRY_SIZE; memcpy(dev->msix_table_page + offset, &val, 4); if (!msix_is_mask...
{ "code": [ " unsigned int offset = addr & (MSIX_PAGE_SIZE - 1);", " unsigned int offset = addr & (MSIX_PAGE_SIZE - 1);", " memcpy(dev->msix_table_page + offset, &val, 4);" ], "line_no": [ 9, 9, 13 ] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { PCIDevice *dev = VAR_0; unsigned int VAR_3 = VAR_1 & (MSIX_PAGE_SIZE - 1); int VAR_4 = VAR_3 / MSIX_ENTRY_SIZE; memcpy(dev->msix_table_page + VAR_3, &VAR_2, 4); if (!msix_is_masked(dev, VA...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{", "PCIDevice *dev = VAR_0;", "unsigned int VAR_3 = VAR_1 & (MSIX_PAGE_SIZE - 1);", "int VAR_4 = VAR_3 / MSIX_ENTRY_SIZE;", "memcpy(dev->msix_table_page + VAR_3, &VAR_2, 4);", "if (!msix_is_masked(dev, VAR_4) && msix_is_pending(...
[ 0, 0, 1, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
23,199
QEMUFile *qemu_fopen_ops(void *opaque, const QEMUFileOps *ops) { QEMUFile *f; f = g_malloc0(sizeof(QEMUFile)); f->opaque = opaque; f->ops = ops; return f; }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
QEMUFile *qemu_fopen_ops(void *opaque, const QEMUFileOps *ops) { QEMUFile *f; f = g_malloc0(sizeof(QEMUFile)); f->opaque = opaque; f->ops = ops; return f; }
{ "code": [], "line_no": [] }
QEMUFile *FUNC_0(void *opaque, const QEMUFileOps *ops) { QEMUFile *f; f = g_malloc0(sizeof(QEMUFile)); f->opaque = opaque; f->ops = ops; return f; }
[ "QEMUFile *FUNC_0(void *opaque, const QEMUFileOps *ops)\n{", "QEMUFile *f;", "f = g_malloc0(sizeof(QEMUFile));", "f->opaque = opaque;", "f->ops = ops;", "return f;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
23,200
void tcg_exec_init(unsigned long tb_size) { cpu_gen_init(); code_gen_alloc(tb_size); page_init(); #if defined(CONFIG_SOFTMMU) /* There's no guest base to take into account, so go ahead and initialize the prologue now. */ tcg_prologue_init(&tcg_ctx); #endif }
true
qemu
f293709c6af7a65a9bcec09cdba7a60183657a3e
void tcg_exec_init(unsigned long tb_size) { cpu_gen_init(); code_gen_alloc(tb_size); page_init(); #if defined(CONFIG_SOFTMMU) tcg_prologue_init(&tcg_ctx); #endif }
{ "code": [ "#endif", "#endif", "#endif", " code_gen_alloc(tb_size);" ], "line_no": [ 19, 19, 19, 7 ] }
void FUNC_0(unsigned long VAR_0) { cpu_gen_init(); code_gen_alloc(VAR_0); page_init(); #if defined(CONFIG_SOFTMMU) tcg_prologue_init(&tcg_ctx); #endif }
[ "void FUNC_0(unsigned long VAR_0)\n{", "cpu_gen_init();", "code_gen_alloc(VAR_0);", "page_init();", "#if defined(CONFIG_SOFTMMU)\ntcg_prologue_init(&tcg_ctx);", "#endif\n}" ]
[ 0, 0, 1, 0, 0, 1 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 17 ], [ 19, 21 ] ]
23,201
static void bufp_free(USBRedirDevice *dev, struct buf_packet *bufp, uint8_t ep) { QTAILQ_REMOVE(&dev->endpoint[EP2I(ep)].bufpq, bufp, next); dev->endpoint[EP2I(ep)].bufpq_size--; free(bufp->data); g_free(bufp); }
true
qemu
b2d1fe67d09d2b6c7da647fbcea6ca0148c206d3
static void bufp_free(USBRedirDevice *dev, struct buf_packet *bufp, uint8_t ep) { QTAILQ_REMOVE(&dev->endpoint[EP2I(ep)].bufpq, bufp, next); dev->endpoint[EP2I(ep)].bufpq_size--; free(bufp->data); g_free(bufp); }
{ "code": [ " free(bufp->data);" ], "line_no": [ 11 ] }
static void FUNC_0(USBRedirDevice *VAR_0, struct buf_packet *VAR_1, uint8_t VAR_2) { QTAILQ_REMOVE(&VAR_0->endpoint[EP2I(VAR_2)].bufpq, VAR_1, next); VAR_0->endpoint[EP2I(VAR_2)].bufpq_size--; free(VAR_1->data); g_free(VAR_1); }
[ "static void FUNC_0(USBRedirDevice *VAR_0, struct buf_packet *VAR_1,\nuint8_t VAR_2)\n{", "QTAILQ_REMOVE(&VAR_0->endpoint[EP2I(VAR_2)].bufpq, VAR_1, next);", "VAR_0->endpoint[EP2I(VAR_2)].bufpq_size--;", "free(VAR_1->data);", "g_free(VAR_1);", "}" ]
[ 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
23,202
static int usb_msd_handle_data(USBDevice *dev, USBPacket *p) { MSDState *s = (MSDState *)dev; int ret = 0; struct usb_msd_cbw cbw; uint8_t devep = p->devep; uint8_t *data = p->data; int len = p->len; switch (p->pid) { case USB_TOKEN_OUT: if (devep != 2) g...
true
qemu
4f4321c11ff6e98583846bfd6f0e81954924b003
static int usb_msd_handle_data(USBDevice *dev, USBPacket *p) { MSDState *s = (MSDState *)dev; int ret = 0; struct usb_msd_cbw cbw; uint8_t devep = p->devep; uint8_t *data = p->data; int len = p->len; switch (p->pid) { case USB_TOKEN_OUT: if (devep != 2) g...
{ "code": [ " uint8_t *data = p->data;", " int len = p->len;", " uint8_t *data = p->data;", " int len = p->len;", " uint8_t *data = p->data;", " int len = p->len;" ], "line_no": [ 13, 15, 13, 15, 13, 15 ] }
static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1) { MSDState *s = (MSDState *)VAR_0; int VAR_2 = 0; struct usb_msd_cbw VAR_3; uint8_t devep = VAR_1->devep; uint8_t *data = VAR_1->data; int VAR_4 = VAR_1->VAR_4; switch (VAR_1->pid) { case USB_TOKEN_OUT: if (devep !...
[ "static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1)\n{", "MSDState *s = (MSDState *)VAR_0;", "int VAR_2 = 0;", "struct usb_msd_cbw VAR_3;", "uint8_t devep = VAR_1->devep;", "uint8_t *data = VAR_1->data;", "int VAR_4 = VAR_1->VAR_4;", "switch (VAR_1->pid) {", "case USB_TOKEN_OUT:\nif (devep != 2)\...
[ 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23, 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ...
23,203
static Visitor *validate_test_init_internal(TestInputVisitorData *data, const char *json_string, va_list *ap) { Visitor *v; data->obj = qobject_from_jsonv(json_string, ap); g_assert(data->obj); data->qiv = qmp_input_...
true
qemu
b18f1141d0afa00de11a8e079f4f5305c9e36893
static Visitor *validate_test_init_internal(TestInputVisitorData *data, const char *json_string, va_list *ap) { Visitor *v; data->obj = qobject_from_jsonv(json_string, ap); g_assert(data->obj); data->qiv = qmp_input_...
{ "code": [], "line_no": [] }
static Visitor *FUNC_0(TestInputVisitorData *data, const char *json_string, va_list *ap) { Visitor *v; data->obj = qobject_from_jsonv(json_string, ap); g_assert(data->obj); data->qiv = qmp_input_visitor_new_strict(da...
[ "static Visitor *FUNC_0(TestInputVisitorData *data,\nconst char *json_string,\nva_list *ap)\n{", "Visitor *v;", "data->obj = qobject_from_jsonv(json_string, ap);", "g_assert(data->obj);", "data->qiv = qmp_input_visitor_new_strict(data->obj);", "g_assert(data->qiv);", "v = qmp_input_get_visitor(data->qiv...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3, 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ] ]
23,205
static inline void RENAME(rgb32to16)(const uint8_t *src, uint8_t *dst, unsigned src_size) { const uint8_t *s = src; const uint8_t *end; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #ifdef HAVE_MMX mm_end = end - 15; #if 1 //is faster only if multiplie...
true
FFmpeg
7f526efd17973ec6d2204f7a47b6923e2be31363
static inline void RENAME(rgb32to16)(const uint8_t *src, uint8_t *dst, unsigned src_size) { const uint8_t *s = src; const uint8_t *end; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #ifdef HAVE_MMX mm_end = end - 15; #if 1 asm volatile( "movq %3,...
{ "code": [ "static inline void RENAME(rgb32to16)(const uint8_t *src, uint8_t *dst, unsigned src_size)" ], "line_no": [ 1 ] }
static inline void FUNC_0(rgb32to16)(const uint8_t *src, uint8_t *dst, unsigned src_size) { const uint8_t *VAR_0 = src; const uint8_t *VAR_1; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; VAR_1 = VAR_0 + src_size; #ifdef HAVE_MMX mm_end = VAR_1 - 15; #if 1 asm volatile...
[ "static inline void FUNC_0(rgb32to16)(const uint8_t *src, uint8_t *dst, unsigned src_size)\n{", "const uint8_t *VAR_0 = src;", "const uint8_t *VAR_1;", "#ifdef HAVE_MMX\nconst uint8_t *mm_end;", "#endif\nuint16_t *d = (uint16_t *)dst;", "VAR_1 = VAR_0 + src_size;", "#ifdef HAVE_MMX\nmm_end = VAR_1 - 15;...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ], [ 17 ], [ 19, 21 ], [ 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65,...
23,207
static void spapr_core_pre_plug(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { MachineState *machine = MACHINE(OBJECT(hotplug_dev)); MachineClass *mc = MACHINE_GET_CLASS(hotplug_dev); Error *local_err = NULL; CPUCore *cc = CPU_CORE(dev); char *b...
true
qemu
df8658de43db242ea82183d75cc957c2b0fa013a
static void spapr_core_pre_plug(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { MachineState *machine = MACHINE(OBJECT(hotplug_dev)); MachineClass *mc = MACHINE_GET_CLASS(hotplug_dev); Error *local_err = NULL; CPUCore *cc = CPU_CORE(dev); char *b...
{ "code": [ " error_setg(errp, \"invalid nr-threads %d, must be %d\"," ], "line_no": [ 69 ] }
static void FUNC_0(HotplugHandler *VAR_0, DeviceState *VAR_1, Error **VAR_2) { MachineState *machine = MACHINE(OBJECT(VAR_0)); MachineClass *mc = MACHINE_GET_CLASS(VAR_0); Error *local_err = NULL; CPUCore *cc = CPU_CORE(VAR_1); char *VAR_3 = spapr_get_cpu_core_...
[ "static void FUNC_0(HotplugHandler *VAR_0, DeviceState *VAR_1,\nError **VAR_2)\n{", "MachineState *machine = MACHINE(OBJECT(VAR_0));", "MachineClass *mc = MACHINE_GET_CLASS(VAR_0);", "Error *local_err = NULL;", "CPUCore *cc = CPU_CORE(VAR_1);", "char *VAR_3 = spapr_get_cpu_core_type(machine->cpu_model);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
23,208
static av_cold int pulse_write_header(AVFormatContext *h) { PulseData *s = h->priv_data; AVStream *st = NULL; int ret; unsigned int i; pa_sample_spec ss; pa_buffer_attr attr = { -1, -1, -1, -1, -1 }; const char *stream_name = s->stream_name; for (i = 0; i < h->nb_streams; i++)...
false
FFmpeg
7f5e75eea94020aaddeda1960186ceee73ca1c36
static av_cold int pulse_write_header(AVFormatContext *h) { PulseData *s = h->priv_data; AVStream *st = NULL; int ret; unsigned int i; pa_sample_spec ss; pa_buffer_attr attr = { -1, -1, -1, -1, -1 }; const char *stream_name = s->stream_name; for (i = 0; i < h->nb_streams; i++)...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVFormatContext *h) { PulseData *s = h->priv_data; AVStream *st = NULL; int VAR_0; unsigned int VAR_1; pa_sample_spec ss; pa_buffer_attr attr = { -1, -1, -1, -1, -1 }; const char *VAR_2 = s->VAR_2; for (VAR_1 = 0; VAR_1 < h->nb_streams; VAR_1++) { ...
[ "static av_cold int FUNC_0(AVFormatContext *h)\n{", "PulseData *s = h->priv_data;", "AVStream *st = NULL;", "int VAR_0;", "unsigned int VAR_1;", "pa_sample_spec ss;", "pa_buffer_attr attr = { -1, -1, -1, -1, -1 };", "const char *VAR_2 = s->VAR_2;", "for (VAR_1 = 0; VAR_1 < h->nb_streams; VAR_1++) {"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ...
23,209
static int seg_write_packet(AVFormatContext *s, AVPacket *pkt) { SegmentContext *seg = s->priv_data; AVFormatContext *oc = seg->avf; AVStream *st = s->streams[pkt->stream_index]; int64_t end_pts = seg->recording_time * seg->number; int ret, can_split = 1; if (!oc) return AVERRO...
false
FFmpeg
9f61abc8111c7c43f49ca012e957a108b9cc7610
static int seg_write_packet(AVFormatContext *s, AVPacket *pkt) { SegmentContext *seg = s->priv_data; AVFormatContext *oc = seg->avf; AVStream *st = s->streams[pkt->stream_index]; int64_t end_pts = seg->recording_time * seg->number; int ret, can_split = 1; if (!oc) return AVERRO...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { SegmentContext *seg = VAR_0->priv_data; AVFormatContext *oc = seg->avf; AVStream *st = VAR_0->streams[VAR_1->stream_index]; int64_t end_pts = seg->recording_time * seg->number; int VAR_2, VAR_3 = 1; if (!oc) return AV...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "SegmentContext *seg = VAR_0->priv_data;", "AVFormatContext *oc = seg->avf;", "AVStream *st = VAR_0->streams[VAR_1->stream_index];", "int64_t end_pts = seg->recording_time * seg->number;", "int VAR_2, VAR_3 = 1;", "if (!oc)\nreturn AVERROR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 33, 35 ], [ 37, 39 ], [ 43 ], [ 47, 49 ], [ 53, 55 ], [ 59 ], [ 63 ...
23,210
avs_decode_frame(AVCodecContext * avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; const uint8_t *buf_end = avpkt->data + avpkt->size; int buf_size = avpkt->size; AvsContext *const avs = avctx->priv_data; AVFrame *picture = data; AV...
true
FFmpeg
76e65a1b731e28d8382d500c3a7740b65df9f7b2
avs_decode_frame(AVCodecContext * avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; const uint8_t *buf_end = avpkt->data + avpkt->size; int buf_size = avpkt->size; AvsContext *const avs = avctx->priv_data; AVFrame *picture = data; AV...
{ "code": [ " GetBitContext change_map;" ], "line_no": [ 29 ] }
FUNC_0(AVCodecContext * VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; const uint8_t *VAR_5 = VAR_3->VAR_1 + VAR_3->size; int VAR_6 = VAR_3->size; AvsContext *const avs = VAR_0->priv_data; AVFrame *picture = VAR_1; AVFrame *const ...
[ "FUNC_0(AVCodecContext * VAR_0,\nvoid *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "const uint8_t *VAR_5 = VAR_3->VAR_1 + VAR_3->size;", "int VAR_6 = VAR_3->size;", "AvsContext *const avs = VAR_0->priv_data;", "AVFrame *picture = VAR_1;", "AVFrame *const p = &avs->p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
23,211
int av_asrc_buffer_add_buffer(AVFilterContext *ctx, uint8_t *buf, int buf_size, int sample_rate, int sample_fmt, int64_t channel_layout, int planar, int64_t pts, int av_unused flags) { uint8_t *data[8]; int linesize[...
true
FFmpeg
241f8465d07ecc0696bcda994a1f44d836b8809c
int av_asrc_buffer_add_buffer(AVFilterContext *ctx, uint8_t *buf, int buf_size, int sample_rate, int sample_fmt, int64_t channel_layout, int planar, int64_t pts, int av_unused flags) { uint8_t *data[8]; int linesize[...
{ "code": [ " uint8_t *data[8];" ], "line_no": [ 11 ] }
int FUNC_0(AVFilterContext *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int64_t VAR_5, int VAR_6, int64_t VAR_7, int VAR_8 flags) { uint8_t *data[8]; int VAR_9[8]; int VAR_10 = av_get_channel_layout_...
[ "int FUNC_0(AVFilterContext *VAR_0,\nuint8_t *VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int64_t VAR_5, int VAR_6,\nint64_t VAR_7, int VAR_8 flags)\n{", "uint8_t *data[8];", "int VAR_9[8];", "int VAR_10 = av_get_channel_layout_nb_channels(VAR_5),\nVAR_11 = VAR_2 / VAR_10 / av_get_bytes_per_sample(VAR_4);", "...
[ 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 21, 23, 25 ], [ 29, 31, 33, 35, 37 ], [ 39 ] ]
23,212
static int vmdaudio_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; VmdAudioContext *s = avctx->priv_data; int block_type, silent_chun...
true
FFmpeg
00cbe9e4053fd562b6f21e76aca6636ff926b637
static int vmdaudio_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; VmdAudioContext *s = avctx->priv_data; int block_type, silent_chun...
{ "code": [ " uint32_t flags = AV_RB32(buf);" ], "line_no": [ 53 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; VmdAudioContext *s = VAR_0->priv_data; int VAR_6, VAR_7; unsigned char *VAR_8 =...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "VmdAudioContext *s = VAR_0->priv_data;", "int VAR_6, VAR_7;", "unsigned char *VAR_8 = (unsigned char *)VAR_1;", "if (VAR_5 < 16) {", "av_log(V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
23,214
static void ps_decorrelate_c(INTFLOAT (*out)[2], INTFLOAT (*delay)[2], INTFLOAT (*ap_delay)[PS_QMF_TIME_SLOTS + PS_MAX_AP_DELAY][2], const INTFLOAT phi_fract[2], const INTFLOAT (*Q_fract)[2], const INTFLOAT *transient_gain, ...
true
FFmpeg
2afe05402f05d485f0c356b04dc562f0510d317d
static void ps_decorrelate_c(INTFLOAT (*out)[2], INTFLOAT (*delay)[2], INTFLOAT (*ap_delay)[PS_QMF_TIME_SLOTS + PS_MAX_AP_DELAY][2], const INTFLOAT phi_fract[2], const INTFLOAT (*Q_fract)[2], const INTFLOAT *transient_gain, ...
{ "code": [ " in_re -= a_re;", " in_im -= a_im;", " ap_delay[m][n+5][0] = apd_re + AAC_MUL31(ag[m], in_re);", " ap_delay[m][n+5][1] = apd_im + AAC_MUL31(ag[m], in_im);" ], "line_no": [ 61, 67, 69, 71 ] }
VAR_3staticVAR_3 VAR_3voidVAR_3 VAR_3ps_decorrelate_cVAR_3(VAR_3VAR_0VAR_3 (*VAR_3outVAR_3)[VAR_32VAR_3], VAR_3VAR_0VAR_3 (*VAR_3delayVAR_3)[VAR_32VAR_3], VAR_3VAR_0VAR_3 (*VAR_3ap_delayVAR_3)[VAR_3PS_QMF_TIME_SLOTSVAR_3 + VAR_3PS_MAX_AP_DELAYVAR_3][VAR_32VAR_3], ...
[ "VAR_3staticVAR_3 VAR_3voidVAR_3 VAR_3ps_decorrelate_cVAR_3(VAR_3VAR_0VAR_3 (*VAR_3outVAR_3)[VAR_32VAR_3], VAR_3VAR_0VAR_3 (*VAR_3delayVAR_3)[VAR_32VAR_3],\nVAR_3VAR_0VAR_3 (*VAR_3ap_delayVAR_3)[VAR_3PS_QMF_TIME_SLOTSVAR_3 + VAR_3PS_MAX_AP_DELAYVAR_3][VAR_32VAR_3],\nVAR_3constVAR_3 VAR_3VAR_0VAR_3 VAR_3phi_fractVAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
23,215
void nand_setpins(DeviceState *dev, uint8_t cle, uint8_t ale, uint8_t ce, uint8_t wp, uint8_t gnd) { NANDFlashState *s = (NANDFlashState *) dev; s->cle = cle; s->ale = ale; s->ce = ce; s->wp = wp; s->gnd = gnd; if (wp) s->status |= NAND_IOSTATUS_UNPROTCT; ...
true
qemu
1984745ea8ad309a06690a83e91d031d21d709ff
void nand_setpins(DeviceState *dev, uint8_t cle, uint8_t ale, uint8_t ce, uint8_t wp, uint8_t gnd) { NANDFlashState *s = (NANDFlashState *) dev; s->cle = cle; s->ale = ale; s->ce = ce; s->wp = wp; s->gnd = gnd; if (wp) s->status |= NAND_IOSTATUS_UNPROTCT; ...
{ "code": [ " if (wp)" ], "line_no": [ 19 ] }
void FUNC_0(DeviceState *VAR_0, uint8_t VAR_1, uint8_t VAR_2, uint8_t VAR_3, uint8_t VAR_4, uint8_t VAR_5) { NANDFlashState *s = (NANDFlashState *) VAR_0; s->VAR_1 = VAR_1; s->VAR_2 = VAR_2; s->VAR_3 = VAR_3; s->VAR_4 = VAR_4; s->VAR_5 = VAR_5; if (VAR_4) ...
[ "void FUNC_0(DeviceState *VAR_0, uint8_t VAR_1, uint8_t VAR_2,\nuint8_t VAR_3, uint8_t VAR_4, uint8_t VAR_5)\n{", "NANDFlashState *s = (NANDFlashState *) VAR_0;", "s->VAR_1 = VAR_1;", "s->VAR_2 = VAR_2;", "s->VAR_3 = VAR_3;", "s->VAR_4 = VAR_4;", "s->VAR_5 = VAR_5;", "if (VAR_4)\ns->status |= NAND_IOS...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23, 25 ], [ 27 ] ]
23,216
static int parse_presentation_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size, int64_t pts) { PGSSubContext *ctx = avctx->priv_data; int i, state, ret; const uint8_t *buf_end = buf + buf_size; // Video descriptor...
true
FFmpeg
89bcb77726e222aee9d8536f0310d805f7d39fac
static int parse_presentation_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size, int64_t pts) { PGSSubContext *ctx = avctx->priv_data; int i, state, ret; const uint8_t *buf_end = buf + buf_size; int w = bytest...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2, int64_t VAR_3) { PGSSubContext *ctx = VAR_0->priv_data; int VAR_4, VAR_5, VAR_6; const uint8_t *VAR_7 = VAR_1 + VAR_2; int VAR_8 = bytestream_get_be1...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1, int VAR_2,\nint64_t VAR_3)\n{", "PGSSubContext *ctx = VAR_0->priv_data;", "int VAR_4, VAR_5, VAR_6;", "const uint8_t *VAR_7 = VAR_1 + VAR_2;", "int VAR_8 = bytestream_get_be16(&VAR_1);", "int VAR_9 = bytestream_get_be16(&VAR_1);", "uint16_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3, 4 ], [ 5 ], [ 6 ], [ 7 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13, 14 ], [ 15 ], [ 16, 17 ], [ 19 ], [ 21 ], [ 31 ], [ 32 ], [ 33 ], [ 37 ], [ 38 ]...
23,217
PROTO4(_pack_2ch_) PROTO4(_pack_6ch_) PROTO4(_unpack_2ch_) av_cold void swri_audio_convert_init_x86(struct AudioConvert *ac, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels){ int mm_flag...
false
FFmpeg
9937362c54be085e75c90c55dad443329be59e69
PROTO4(_pack_2ch_) PROTO4(_pack_6ch_) PROTO4(_unpack_2ch_) av_cold void swri_audio_convert_init_x86(struct AudioConvert *ac, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels){ int mm_flag...
{ "code": [], "line_no": [] }
PROTO4(_pack_2ch_) PROTO4(_pack_6ch_) PROTO4(_unpack_2ch_) av_cold void swri_audio_convert_init_x86(struct AudioConvert *ac, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels){ int mm_flag...
[ "PROTO4(_pack_2ch_)\nPROTO4(_pack_6ch_)\nPROTO4(_unpack_2ch_)\nav_cold void swri_audio_convert_init_x86(struct AudioConvert *ac,\nenum AVSampleFormat out_fmt,\nenum AVSampleFormat in_fmt,\nint channels){", "int mm_flags = av_get_cpu_flags();", "ac->simd_f= NULL;", "#define MULTI_CAPS_FUNC(flag, cap) \\\nif (m...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 9, 11, 13, 15 ], [ 17 ], [ 21 ], [ 29, 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 45, 47, 51 ], [ 53 ], [ 55, 57 ], [ 59 ], [ 61 ], [ 65 ], [ 67, 69...
23,218
static av_cold int dnxhd_init_rc(DNXHDEncContext *ctx) { FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->mb_rc, 8160*ctx->m.avctx->qmax*sizeof(RCEntry), fail); if (ctx->m.avctx->mb_decision != FF_MB_DECISION_RD) FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->mb_cmp, ctx->m.mb_num*sizeof(RCCMPEntry), fail); ctx->f...
false
FFmpeg
f1caaa1c61310beba705957e6366f0392a0b005b
static av_cold int dnxhd_init_rc(DNXHDEncContext *ctx) { FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->mb_rc, 8160*ctx->m.avctx->qmax*sizeof(RCEntry), fail); if (ctx->m.avctx->mb_decision != FF_MB_DECISION_RD) FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->mb_cmp, ctx->m.mb_num*sizeof(RCCMPEntry), fail); ctx->f...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(DNXHDEncContext *ctx) { FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->mb_rc, 8160*ctx->m.avctx->qmax*sizeof(RCEntry), fail); if (ctx->m.avctx->mb_decision != FF_MB_DECISION_RD) FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->mb_cmp, ctx->m.mb_num*sizeof(RCCMPEntry), fail); ctx->frame_bi...
[ "static av_cold int FUNC_0(DNXHDEncContext *ctx)\n{", "FF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->mb_rc, 8160*ctx->m.avctx->qmax*sizeof(RCEntry), fail);", "if (ctx->m.avctx->mb_decision != FF_MB_DECISION_RD)\nFF_ALLOCZ_OR_GOTO(ctx->m.avctx, ctx->mb_cmp, ctx->m.mb_num*sizeof(RCCMPEntry), fail);", "ctx->frame_bits = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ] ]
23,219
void qemu_system_killed(int signal, pid_t pid) { shutdown_signal = signal; shutdown_pid = pid; no_shutdown = 0; /* Cannot call qemu_system_shutdown_request directly because * we are in a signal handler. */ shutdown_requested = 1; qemu_notify_event(); }
true
qemu
aedbe19297907143f17b733a7ff0e0534377bed1
void qemu_system_killed(int signal, pid_t pid) { shutdown_signal = signal; shutdown_pid = pid; no_shutdown = 0; shutdown_requested = 1; qemu_notify_event(); }
{ "code": [ " shutdown_requested = 1;", " shutdown_requested = 1;" ], "line_no": [ 19, 19 ] }
void FUNC_0(int VAR_0, pid_t VAR_1) { shutdown_signal = VAR_0; shutdown_pid = VAR_1; no_shutdown = 0; shutdown_requested = 1; qemu_notify_event(); }
[ "void FUNC_0(int VAR_0, pid_t VAR_1)\n{", "shutdown_signal = VAR_0;", "shutdown_pid = VAR_1;", "no_shutdown = 0;", "shutdown_requested = 1;", "qemu_notify_event();", "}" ]
[ 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 19 ], [ 21 ], [ 23 ] ]
23,220
static int qemu_chr_open_tty(QemuOpts *opts, CharDriverState **_chr) { const char *filename = qemu_opt_get(opts, "path"); CharDriverState *chr; int fd; TFR(fd = qemu_open(filename, O_RDWR | O_NONBLOCK)); if (fd < 0) { return -errno; } tty_serial_init(fd, 115200, 'N', 8, 1)...
true
qemu
1f51470d044852592922f91000e741c381582cdc
static int qemu_chr_open_tty(QemuOpts *opts, CharDriverState **_chr) { const char *filename = qemu_opt_get(opts, "path"); CharDriverState *chr; int fd; TFR(fd = qemu_open(filename, O_RDWR | O_NONBLOCK)); if (fd < 0) { return -errno; } tty_serial_init(fd, 115200, 'N', 8, 1)...
{ "code": [ " *_chr = chr;", " return 0;", " *_chr = chr;", " return 0;", " *_chr = chr;", " return 0;", " return 0;", " return -errno;", " return 0;", " return 0;", " *_chr = chr;", " return 0;", " return -errno;", ...
static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1) { const char *VAR_2 = qemu_opt_get(VAR_0, "path"); CharDriverState *chr; int VAR_3; TFR(VAR_3 = qemu_open(VAR_2, O_RDWR | O_NONBLOCK)); if (VAR_3 < 0) { return -errno; } tty_serial_init(VAR_3, 115200, 'N', 8, 1); ...
[ "static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1)\n{", "const char *VAR_2 = qemu_opt_get(VAR_0, \"path\");", "CharDriverState *chr;", "int VAR_3;", "TFR(VAR_3 = qemu_open(VAR_2, O_RDWR | O_NONBLOCK));", "if (VAR_3 < 0) {", "return -errno;", "}", "tty_serial_init(VAR_3, 115200, 'N', 8, 1);...
[ 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ] ]
23,221
static int usb_hub_handle_data(USBDevice *dev, USBPacket *p) { USBHubState *s = (USBHubState *)dev; int ret; switch(p->pid) { case USB_TOKEN_IN: if (p->devep == 1) { USBHubPort *port; unsigned int status; uint8_t buf[4]; int i, n; ...
false
qemu
079d0b7f1eedcc634c371fe05b617fdc55c8b762
static int usb_hub_handle_data(USBDevice *dev, USBPacket *p) { USBHubState *s = (USBHubState *)dev; int ret; switch(p->pid) { case USB_TOKEN_IN: if (p->devep == 1) { USBHubPort *port; unsigned int status; uint8_t buf[4]; int i, n; ...
{ "code": [], "line_no": [] }
static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1) { USBHubState *s = (USBHubState *)VAR_0; int VAR_2; switch(VAR_1->pid) { case USB_TOKEN_IN: if (VAR_1->devep == 1) { USBHubPort *port; unsigned int VAR_3; uint8_t buf[4]; int VAR_4, ...
[ "static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1)\n{", "USBHubState *s = (USBHubState *)VAR_0;", "int VAR_2;", "switch(VAR_1->pid) {", "case USB_TOKEN_IN:\nif (VAR_1->devep == 1) {", "USBHubPort *port;", "unsigned int VAR_3;", "uint8_t buf[4];", "int VAR_4, VAR_5;", "VAR_5 = (NUM_PORTS + 1 + ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45...
23,222
static char *vio_format_dev_name(VIOsPAPRDevice *dev) { VIOsPAPRDeviceInfo *info = (VIOsPAPRDeviceInfo *)qdev_get_info(&dev->qdev); char *name; /* Device tree style name device@reg */ if (asprintf(&name, "%s@%x", info->dt_name, dev->reg) < 0) { return NULL; } return name; }
false
qemu
3954d33ab7f82f5a5fa0ced231849920265a5fec
static char *vio_format_dev_name(VIOsPAPRDevice *dev) { VIOsPAPRDeviceInfo *info = (VIOsPAPRDeviceInfo *)qdev_get_info(&dev->qdev); char *name; if (asprintf(&name, "%s@%x", info->dt_name, dev->reg) < 0) { return NULL; } return name; }
{ "code": [], "line_no": [] }
static char *FUNC_0(VIOsPAPRDevice *VAR_0) { VIOsPAPRDeviceInfo *info = (VIOsPAPRDeviceInfo *)qdev_get_info(&VAR_0->qdev); char *VAR_1; if (asprintf(&VAR_1, "%s@%x", info->dt_name, VAR_0->reg) < 0) { return NULL; } return VAR_1; }
[ "static char *FUNC_0(VIOsPAPRDevice *VAR_0)\n{", "VIOsPAPRDeviceInfo *info = (VIOsPAPRDeviceInfo *)qdev_get_info(&VAR_0->qdev);", "char *VAR_1;", "if (asprintf(&VAR_1, \"%s@%x\", info->dt_name, VAR_0->reg) < 0) {", "return NULL;", "}", "return VAR_1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
23,223
static int load_option_rom(const char *oprom, target_phys_addr_t start, target_phys_addr_t end) { int size; char *filename; filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, oprom); if (filename) { size = get_image_size(filename); if (size > 0 && start +...
false
qemu
45a50b1668822c23afc2a89f724654e176518bc4
static int load_option_rom(const char *oprom, target_phys_addr_t start, target_phys_addr_t end) { int size; char *filename; filename = qemu_find_file(QEMU_FILE_TYPE_BIOS, oprom); if (filename) { size = get_image_size(filename); if (size > 0 && start +...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0, target_phys_addr_t VAR_1, target_phys_addr_t VAR_2) { int VAR_3; char *VAR_4; VAR_4 = qemu_find_file(QEMU_FILE_TYPE_BIOS, VAR_0); if (VAR_4) { VAR_3 = get_image_size(VAR_4); if (VAR_3 > 0 && VAR_1 + VAR_3 > VAR_2) ...
[ "static int FUNC_0(const char *VAR_0, target_phys_addr_t VAR_1,\ntarget_phys_addr_t VAR_2)\n{", "int VAR_3;", "char *VAR_4;", "VAR_4 = qemu_find_file(QEMU_FILE_TYPE_BIOS, VAR_0);", "if (VAR_4) {", "VAR_3 = get_image_size(VAR_4);", "if (VAR_3 > 0 && VAR_1 + VAR_3 > VAR_2) {", "fprintf(stderr, \"Not eno...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
23,224
static BlockReopenQueue *bdrv_reopen_queue_child(BlockReopenQueue *bs_queue, BlockDriverState *bs, QDict *options, int flags, ...
false
qemu
5b7ba05fe7313b03712e129a86fa70c2c215e908
static BlockReopenQueue *bdrv_reopen_queue_child(BlockReopenQueue *bs_queue, BlockDriverState *bs, QDict *options, int flags, ...
{ "code": [], "line_no": [] }
static BlockReopenQueue *FUNC_0(BlockReopenQueue *bs_queue, BlockDriverState *bs, QDict *options, int flags, const BdrvC...
[ "static BlockReopenQueue *FUNC_0(BlockReopenQueue *bs_queue,\nBlockDriverState *bs,\nQDict *options,\nint flags,\nconst BdrvChildRole *role,\nQDict *parent_options,\nint parent_flags)\n{", "assert(bs != NULL);", "BlockReopenQueueEntry *bs_entry;", "BdrvChild *child;", "QDict *old_options, *explicit_options;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 65 ], [ 79 ], [ 81 ], [ 87 ], [ 89 ...
23,225
static void xilinx_axidma_init(Object *obj) { XilinxAXIDMA *s = XILINX_AXI_DMA(obj); SysBusDevice *sbd = SYS_BUS_DEVICE(obj); Error *errp = NULL; object_property_add_link(obj, "axistream-connected", TYPE_STREAM_SLAVE, (Object **) &s->tx_dev, NULL); object_init...
false
qemu
42bb9c9178ae7ac4c439172b1ae99cc29188a5c6
static void xilinx_axidma_init(Object *obj) { XilinxAXIDMA *s = XILINX_AXI_DMA(obj); SysBusDevice *sbd = SYS_BUS_DEVICE(obj); Error *errp = NULL; object_property_add_link(obj, "axistream-connected", TYPE_STREAM_SLAVE, (Object **) &s->tx_dev, NULL); object_init...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { XilinxAXIDMA *s = XILINX_AXI_DMA(VAR_0); SysBusDevice *sbd = SYS_BUS_DEVICE(VAR_0); Error *errp = NULL; object_property_add_link(VAR_0, "axistream-connected", TYPE_STREAM_SLAVE, (Object **) &s->tx_dev, NULL); object_initiali...
[ "static void FUNC_0(Object *VAR_0)\n{", "XilinxAXIDMA *s = XILINX_AXI_DMA(VAR_0);", "SysBusDevice *sbd = SYS_BUS_DEVICE(VAR_0);", "Error *errp = NULL;", "object_property_add_link(VAR_0, \"axistream-connected\", TYPE_STREAM_SLAVE,\n(Object **) &s->tx_dev, NULL);", "object_initialize(&s->rx_data_dev, TYPE_X...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ] ]
23,226
void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr) { TranslationBlock *tb; CPUState *saved_env; unsigned long pc; int ret; /* XXX: hack to restore env in all cases, even if not called from generated code */ saved_env = env; env = cpu_single_env; ...
false
qemu
bccd9ec5f098668576342c83d90d6d6833d61d33
void tlb_fill (target_ulong addr, int is_write, int mmu_idx, void *retaddr) { TranslationBlock *tb; CPUState *saved_env; unsigned long pc; int ret; saved_env = env; env = cpu_single_env; D_LOG("%s pc=%x tpc=%x ra=%x\n", __func__, env->pc, env->debug1, retaddr); ...
{ "code": [], "line_no": [] }
void FUNC_0 (target_ulong VAR_0, int VAR_1, int VAR_2, void *VAR_3) { TranslationBlock *tb; CPUState *saved_env; unsigned long VAR_4; int VAR_5; saved_env = env; env = cpu_single_env; D_LOG("%s VAR_4=%x tpc=%x ra=%x\n", __func__, env->VAR_4, env->debug1, VAR_3); ...
[ "void FUNC_0 (target_ulong VAR_0, int VAR_1, int VAR_2, void *VAR_3)\n{", "TranslationBlock *tb;", "CPUState *saved_env;", "unsigned long VAR_4;", "int VAR_5;", "saved_env = env;", "env = cpu_single_env;", "D_LOG(\"%s VAR_4=%x tpc=%x ra=%x\\n\", __func__,\nenv->VAR_4, env->debug1, VAR_3);", "VAR_5 =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [...
23,228
static int dirac_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *pkt) { DiracContext *s = avctx->priv_data; DiracFrame *picture = data; uint8_t *buf = pkt->data; int buf_size = pkt->size; int i, data_unit_size, buf_idx = 0; /* release unused f...
false
FFmpeg
6a052e64b5d14ce2800eb45c699857347d9a78c9
static int dirac_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *pkt) { DiracContext *s = avctx->priv_data; DiracFrame *picture = data; uint8_t *buf = pkt->data; int buf_size = pkt->size; int i, data_unit_size, buf_idx = 0; for (i = 0; i...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { DiracContext *s = VAR_0->priv_data; DiracFrame *picture = VAR_1; uint8_t *buf = VAR_3->VAR_1; int VAR_4 = VAR_3->size; int VAR_5, VAR_6, VAR_7 = 0; for (VAR_5 = 0; VAR_5 < MAX_FR...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{", "DiracContext *s = VAR_0->priv_data;", "DiracFrame *picture = VAR_1;", "uint8_t *buf = VAR_3->VAR_1;", "int VAR_4 = VAR_3->size;", "int VAR_5, VAR_6, VAR_7 = 0;", "for (VAR_5 = 0; VAR_5 < MAX_FRAME...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 39, 41 ], [ 45 ], [ 53 ], [ 55, 57, 59 ], [ 61 ], [...
23,229
int vfio_spapr_create_window(VFIOContainer *container, MemoryRegionSection *section, hwaddr *pgsize) { int ret; IOMMUMemoryRegion *iommu_mr = IOMMU_MEMORY_REGION(section->mr); unsigned pagesize = memory_region_iommu_get_min_page_size(iommu_mr);...
false
qemu
e100161b69f8cf56dae866912dfffe7dcd7140af
int vfio_spapr_create_window(VFIOContainer *container, MemoryRegionSection *section, hwaddr *pgsize) { int ret; IOMMUMemoryRegion *iommu_mr = IOMMU_MEMORY_REGION(section->mr); unsigned pagesize = memory_region_iommu_get_min_page_size(iommu_mr);...
{ "code": [], "line_no": [] }
int FUNC_0(VFIOContainer *VAR_0, MemoryRegionSection *VAR_1, hwaddr *VAR_2) { int VAR_3; IOMMUMemoryRegion *iommu_mr = IOMMU_MEMORY_REGION(VAR_1->mr); unsigned VAR_4 = memory_region_iommu_get_min_page_size(iommu_mr); unsigned VAR_5, VAR_6;...
[ "int FUNC_0(VFIOContainer *VAR_0,\nMemoryRegionSection *VAR_1,\nhwaddr *VAR_2)\n{", "int VAR_3;", "IOMMUMemoryRegion *iommu_mr = IOMMU_MEMORY_REGION(VAR_1->mr);", "unsigned VAR_4 = memory_region_iommu_get_min_page_size(iommu_mr);", "unsigned VAR_5, VAR_6;", "struct vfio_iommu_spapr_tce_create VAR_7 = { .a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 33 ], [ 35 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 69 ], [ 71 ...
23,230
main( int argc, char *argv[] ) { GMainLoop *loop; GIOChannel *channel_stdin; char *qemu_host; char *qemu_port; VCardEmulOptions *command_line_options = NULL; char *cert_names[MAX_CERTS]; char *emul_args = NULL; int cert_count = 0; int c, sock; if (socke...
false
qemu
2a0c46da967e5dc8cfe73b1b6fe7a1600c04f461
main( int argc, char *argv[] ) { GMainLoop *loop; GIOChannel *channel_stdin; char *qemu_host; char *qemu_port; VCardEmulOptions *command_line_options = NULL; char *cert_names[MAX_CERTS]; char *emul_args = NULL; int cert_count = 0; int c, sock; if (socke...
{ "code": [], "line_no": [] }
FUNC_0( int VAR_0, char *VAR_1[] ) { GMainLoop *loop; GIOChannel *channel_stdin; char *VAR_2; char *VAR_3; VCardEmulOptions *command_line_options = NULL; char *VAR_4[MAX_CERTS]; char *VAR_5 = NULL; int VAR_6 = 0; int VAR_7, VAR_8; if (socket_init() != 0...
[ "FUNC_0(\nint VAR_0,\nchar *VAR_1[]\n) {", "GMainLoop *loop;", "GIOChannel *channel_stdin;", "char *VAR_2;", "char *VAR_3;", "VCardEmulOptions *command_line_options = NULL;", "char *VAR_4[MAX_CERTS];", "char *VAR_5 = NULL;", "int VAR_6 = 0;", "int VAR_7, VAR_8;", "if (socket_init() != 0)\nreturn...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...