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
20,252
static void gen_spr_620 (CPUPPCState *env) { /* XXX : not implemented */ spr_register(env, SPR_620_PMR0, "PMR0", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, 0x00000000); /* XXX : not implemented */ spr_register(env, SPR_62...
false
qemu
082c6681b6c4af0035d9dad34a4a784be8c21dbe
static void gen_spr_620 (CPUPPCState *env) { spr_register(env, SPR_620_PMR0, "PMR0", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, 0x00000000); spr_register(env, SPR_620_PMR1, "PMR1", SPR_NOACCESS, SPR_NO...
{ "code": [], "line_no": [] }
static void FUNC_0 (CPUPPCState *VAR_0) { spr_register(VAR_0, SPR_620_PMR0, "PMR0", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, 0x00000000); spr_register(VAR_0, SPR_620_PMR1, "PMR1", SPR_NOACCESS, SPR_N...
[ "static void FUNC_0 (CPUPPCState *VAR_0)\n{", "spr_register(VAR_0, SPR_620_PMR0, \"PMR0\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_generic,\n0x00000000);", "spr_register(VAR_0, SPR_620_PMR1, \"PMR1\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_generic,\n0x00000000);", "spr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7, 9, 11, 13 ], [ 17, 19, 21, 23 ], [ 27, 29, 31, 33 ], [ 37, 39, 41, 43 ], [ 47, 49, 51, 53 ], [ 57, 59, 61, 63 ], [ 67, 69, 71, 73 ], [ 77, 79...
20,253
static struct dpll_ctl_s *omap_dpll_init(MemoryRegion *memory, target_phys_addr_t base, omap_clk clk) { struct dpll_ctl_s *s = g_malloc0(sizeof(*s)); memory_region_init_io(&s->iomem, &omap_dpll_ops, s, "omap-dpll", 0x100); s->dpll = clk; omap_dpll_reset(s); mem...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static struct dpll_ctl_s *omap_dpll_init(MemoryRegion *memory, target_phys_addr_t base, omap_clk clk) { struct dpll_ctl_s *s = g_malloc0(sizeof(*s)); memory_region_init_io(&s->iomem, &omap_dpll_ops, s, "omap-dpll", 0x100); s->dpll = clk; omap_dpll_reset(s); mem...
{ "code": [], "line_no": [] }
static struct dpll_ctl_s *FUNC_0(MemoryRegion *VAR_0, target_phys_addr_t VAR_1, omap_clk VAR_2) { struct dpll_ctl_s *VAR_3 = g_malloc0(sizeof(*VAR_3)); memory_region_init_io(&VAR_3->iomem, &omap_dpll_ops, VAR_3, "omap-dpll", 0x100); VAR_3->dpll = VAR_2; omap_dpll_rese...
[ "static struct dpll_ctl_s *FUNC_0(MemoryRegion *VAR_0,\ntarget_phys_addr_t VAR_1, omap_clk VAR_2)\n{", "struct dpll_ctl_s *VAR_3 = g_malloc0(sizeof(*VAR_3));", "memory_region_init_io(&VAR_3->iomem, &omap_dpll_ops, VAR_3, \"omap-dpll\", 0x100);", "VAR_3->dpll = VAR_2;", "omap_dpll_reset(VAR_3);", "memory_...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ] ]
20,254
static void qcow2_close(BlockDriverState *bs) { BDRVQcow2State *s = bs->opaque; qemu_vfree(s->l1_table); /* else pre-write overlap checks in cache_destroy may crash */ s->l1_table = NULL; if (!(s->flags & BDRV_O_INACTIVE)) { qcow2_inactivate(bs); } cache_clean_timer_del(...
false
qemu
b25b387fa5928e516cb2c9e7fde68e958bd7e50a
static void qcow2_close(BlockDriverState *bs) { BDRVQcow2State *s = bs->opaque; qemu_vfree(s->l1_table); s->l1_table = NULL; if (!(s->flags & BDRV_O_INACTIVE)) { qcow2_inactivate(bs); } cache_clean_timer_del(bs); qcow2_cache_destroy(bs, s->l2_table_cache); qco...
{ "code": [], "line_no": [] }
static void FUNC_0(BlockDriverState *VAR_0) { BDRVQcow2State *s = VAR_0->opaque; qemu_vfree(s->l1_table); s->l1_table = NULL; if (!(s->flags & BDRV_O_INACTIVE)) { qcow2_inactivate(VAR_0); } cache_clean_timer_del(VAR_0); qcow2_cache_destroy(VAR_0, s->l2_table_cache)...
[ "static void FUNC_0(BlockDriverState *VAR_0)\n{", "BDRVQcow2State *s = VAR_0->opaque;", "qemu_vfree(s->l1_table);", "s->l1_table = NULL;", "if (!(s->flags & BDRV_O_INACTIVE)) {", "qcow2_inactivate(VAR_0);", "}", "cache_clean_timer_del(VAR_0);", "qcow2_cache_destroy(VAR_0, s->l2_table_cache);", "qc...
[ 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 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55...
20,255
static int opt_output_file(const char *opt, const char *filename) { AVFormatContext *oc; int i, err; AVOutputFormat *file_oformat; OutputStream *ost; InputStream *ist; if (!strcmp(filename, "-")) filename = "pipe:"; err = avformat_alloc_output_context2(&oc, NULL, last_a...
false
FFmpeg
dd0724288ee86d487e261f23471f861ff4620d8e
static int opt_output_file(const char *opt, const char *filename) { AVFormatContext *oc; int i, err; AVOutputFormat *file_oformat; OutputStream *ost; InputStream *ist; if (!strcmp(filename, "-")) filename = "pipe:"; err = avformat_alloc_output_context2(&oc, NULL, last_a...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0, const char *VAR_1) { AVFormatContext *oc; int VAR_2, VAR_4; AVOutputFormat *file_oformat; OutputStream *ost; InputStream *ist; if (!strcmp(VAR_1, "-")) VAR_1 = "pipe:"; VAR_4 = avformat_alloc_output_context2(&oc, NULL, last_asked_for...
[ "static int FUNC_0(const char *VAR_0, const char *VAR_1)\n{", "AVFormatContext *oc;", "int VAR_2, VAR_4;", "AVOutputFormat *file_oformat;", "OutputStream *ost;", "InputStream *ist;", "if (!strcmp(VAR_1, \"-\"))\nVAR_1 = \"pipe:\";", "VAR_4 = avformat_alloc_output_context2(&oc, NULL, last_asked_format...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
20,256
static int pte64_check(mmu_ctx_t *ctx, target_ulong pte0, target_ulong pte1, int h, int rw, int type) { target_ulong ptem, mmask; int access, ret, pteh, ptev, pp; ret = -1; /* Check validity and table match */ ptev = pte64_is_valid(pte0); pteh = (pte0 >> 1) & 1; ...
false
qemu
496272a7018ba01aa2b87a1a5ed866ff85133401
static int pte64_check(mmu_ctx_t *ctx, target_ulong pte0, target_ulong pte1, int h, int rw, int type) { target_ulong ptem, mmask; int access, ret, pteh, ptev, pp; ret = -1; ptev = pte64_is_valid(pte0); pteh = (pte0 >> 1) & 1; if (ptev && h == pteh) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(mmu_ctx_t *VAR_0, target_ulong VAR_1, target_ulong VAR_2, int VAR_3, int VAR_4, int VAR_5) { target_ulong ptem, mmask; int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; VAR_7 = -1; VAR_9 = pte64_is_valid(VAR_1); VAR_8 = (VAR_1 >> 1) & 1; if (VAR_9 &...
[ "static int FUNC_0(mmu_ctx_t *VAR_0, target_ulong VAR_1,\ntarget_ulong VAR_2, int VAR_3, int VAR_4, int VAR_5)\n{", "target_ulong ptem, mmask;", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "VAR_7 = -1;", "VAR_9 = pte64_is_valid(VAR_1);", "VAR_8 = (VAR_1 >> 1) & 1;", "if (VAR_9 && VAR_3 == VAR_8) {", "p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
20,258
static void usb_xhci_realize(struct PCIDevice *dev, Error **errp) { int i, ret; Error *err = NULL; XHCIState *xhci = XHCI(dev); dev->config[PCI_CLASS_PROG] = 0x30; /* xHCI */ dev->config[PCI_INTERRUPT_PIN] = 0x01; /* interrupt pin 1 */ dev->config[PCI_CACHE_LINE_SIZE] = 0x10; ...
false
qemu
fd56e0612b6454a282fa6a953fdb09281a98c589
static void usb_xhci_realize(struct PCIDevice *dev, Error **errp) { int i, ret; Error *err = NULL; XHCIState *xhci = XHCI(dev); dev->config[PCI_CLASS_PROG] = 0x30; dev->config[PCI_INTERRUPT_PIN] = 0x01; dev->config[PCI_CACHE_LINE_SIZE] = 0x10; dev->config[0x60] = 0x30; ...
{ "code": [], "line_no": [] }
static void FUNC_0(struct PCIDevice *VAR_0, Error **VAR_1) { int VAR_2, VAR_3; Error *err = NULL; XHCIState *xhci = XHCI(VAR_0); VAR_0->config[PCI_CLASS_PROG] = 0x30; VAR_0->config[PCI_INTERRUPT_PIN] = 0x01; VAR_0->config[PCI_CACHE_LINE_SIZE] = 0x10; VAR_0->config[0x60] = 0x...
[ "static void FUNC_0(struct PCIDevice *VAR_0, Error **VAR_1)\n{", "int VAR_2, VAR_3;", "Error *err = NULL;", "XHCIState *xhci = XHCI(VAR_0);", "VAR_0->config[PCI_CLASS_PROG] = 0x30;", "VAR_0->config[PCI_INTERRUPT_PIN] = 0x01;", "VAR_0->config[PCI_CACHE_LINE_SIZE] = 0x10;", "VAR_0->config[0x60] = 0x30;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
20,259
void acpi_pcihp_init(AcpiPciHpState *s, PCIBus *root_bus, MemoryRegion *address_space_io) { s->root= root_bus; memory_region_init_io(&s->io, NULL, &acpi_pcihp_io_ops, s, "acpi-pci-hotplug", PCI_HOTPLUG_SIZE); memory_region_add_s...
false
qemu
99d09dd32820f5702031e3c08c81f8c209dc2220
void acpi_pcihp_init(AcpiPciHpState *s, PCIBus *root_bus, MemoryRegion *address_space_io) { s->root= root_bus; memory_region_init_io(&s->io, NULL, &acpi_pcihp_io_ops, s, "acpi-pci-hotplug", PCI_HOTPLUG_SIZE); memory_region_add_s...
{ "code": [], "line_no": [] }
void FUNC_0(AcpiPciHpState *VAR_0, PCIBus *VAR_1, MemoryRegion *VAR_2) { VAR_0->root= VAR_1; memory_region_init_io(&VAR_0->io, NULL, &acpi_pcihp_io_ops, VAR_0, "acpi-pci-hotplug", PCI_HOTPLUG_SIZE); memory_region_add_subregion(V...
[ "void FUNC_0(AcpiPciHpState *VAR_0, PCIBus *VAR_1,\nMemoryRegion *VAR_2)\n{", "VAR_0->root= VAR_1;", "memory_region_init_io(&VAR_0->io, NULL, &acpi_pcihp_io_ops, VAR_0,\n\"acpi-pci-hotplug\",\nPCI_HOTPLUG_SIZE);", "memory_region_add_subregion(VAR_2, PCI_HOTPLUG_ADDR, &VAR_0->io);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11, 13 ], [ 15 ], [ 17 ] ]
20,260
static void qmp_output_complete(Visitor *v, void *opaque) { QmpOutputVisitor *qov = to_qov(v); /* A visit must have occurred, with each start paired with end. */ assert(qov->root && QSLIST_EMPTY(&qov->stack)); assert(opaque == qov->result); qobject_incref(qov->root); *qov->result = q...
false
qemu
7d5e199ade76c53ec316ab6779800581bb47c50a
static void qmp_output_complete(Visitor *v, void *opaque) { QmpOutputVisitor *qov = to_qov(v); assert(qov->root && QSLIST_EMPTY(&qov->stack)); assert(opaque == qov->result); qobject_incref(qov->root); *qov->result = qov->root; qov->result = NULL; }
{ "code": [], "line_no": [] }
static void FUNC_0(Visitor *VAR_0, void *VAR_1) { QmpOutputVisitor *qov = to_qov(VAR_0); assert(qov->root && QSLIST_EMPTY(&qov->stack)); assert(VAR_1 == qov->result); qobject_incref(qov->root); *qov->result = qov->root; qov->result = NULL; }
[ "static void FUNC_0(Visitor *VAR_0, void *VAR_1)\n{", "QmpOutputVisitor *qov = to_qov(VAR_0);", "assert(qov->root && QSLIST_EMPTY(&qov->stack));", "assert(VAR_1 == qov->result);", "qobject_incref(qov->root);", "*qov->result = qov->root;", "qov->result = NULL;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
20,261
static SocketAddress *sd_server_config(QDict *options, Error **errp) { QDict *server = NULL; QObject *crumpled_server = NULL; Visitor *iv = NULL; SocketAddressFlat *saddr_flat = NULL; SocketAddress *saddr = NULL; Error *local_err = NULL; qdict_extract_subqdict(options, &server, "se...
false
qemu
dfd100f242370886bb6732f70f1f7cbd8eb9fedc
static SocketAddress *sd_server_config(QDict *options, Error **errp) { QDict *server = NULL; QObject *crumpled_server = NULL; Visitor *iv = NULL; SocketAddressFlat *saddr_flat = NULL; SocketAddress *saddr = NULL; Error *local_err = NULL; qdict_extract_subqdict(options, &server, "se...
{ "code": [], "line_no": [] }
static SocketAddress *FUNC_0(QDict *options, Error **errp) { QDict *server = NULL; QObject *crumpled_server = NULL; Visitor *iv = NULL; SocketAddressFlat *saddr_flat = NULL; SocketAddress *saddr = NULL; Error *local_err = NULL; qdict_extract_subqdict(options, &server, "server."); ...
[ "static SocketAddress *FUNC_0(QDict *options, Error **errp)\n{", "QDict *server = NULL;", "QObject *crumpled_server = NULL;", "Visitor *iv = NULL;", "SocketAddressFlat *saddr_flat = NULL;", "SocketAddress *saddr = NULL;", "Error *local_err = NULL;", "qdict_extract_subqdict(options, &server, \"server.\...
[ 0, 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 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 63 ], [ 67,...
20,262
filter_mirror_set_outdev(Object *obj, const char *value, Error **errp) { MirrorState *s = FILTER_MIRROR(obj); g_free(s->outdev); s->outdev = g_strdup(value); if (!s->outdev) { error_setg(errp, "filter filter mirror needs 'outdev' " "property set"); return; ...
false
qemu
52cfcb464255b4da5115408e2a6ce3327bbcb9df
filter_mirror_set_outdev(Object *obj, const char *value, Error **errp) { MirrorState *s = FILTER_MIRROR(obj); g_free(s->outdev); s->outdev = g_strdup(value); if (!s->outdev) { error_setg(errp, "filter filter mirror needs 'outdev' " "property set"); return; ...
{ "code": [], "line_no": [] }
FUNC_0(Object *VAR_0, const char *VAR_1, Error **VAR_2) { MirrorState *s = FILTER_MIRROR(VAR_0); g_free(s->outdev); s->outdev = g_strdup(VAR_1); if (!s->outdev) { error_setg(VAR_2, "filter filter mirror needs 'outdev' " "property set"); return; } }
[ "FUNC_0(Object *VAR_0, const char *VAR_1, Error **VAR_2)\n{", "MirrorState *s = FILTER_MIRROR(VAR_0);", "g_free(s->outdev);", "s->outdev = g_strdup(VAR_1);", "if (!s->outdev) {", "error_setg(VAR_2, \"filter filter mirror needs 'outdev' \"\n\"property set\");", "return;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ] ]
20,263
int bdrv_is_inserted(BlockDriverState *bs) { BlockDriver *drv = bs->drv; int ret; if (!drv) return 0; if (!drv->bdrv_is_inserted) return !bs->tray_open; ret = drv->bdrv_is_inserted(bs); return ret; }
true
qemu
a1aff5bf6786e6e8478373e4ada869a4ef2a7fc4
int bdrv_is_inserted(BlockDriverState *bs) { BlockDriver *drv = bs->drv; int ret; if (!drv) return 0; if (!drv->bdrv_is_inserted) return !bs->tray_open; ret = drv->bdrv_is_inserted(bs); return ret; }
{ "code": [ " int ret;", " return !bs->tray_open;", " ret = drv->bdrv_is_inserted(bs);", " return ret;" ], "line_no": [ 7, 15, 17, 19 ] }
int FUNC_0(BlockDriverState *VAR_0) { BlockDriver *drv = VAR_0->drv; int VAR_1; if (!drv) return 0; if (!drv->FUNC_0) return !VAR_0->tray_open; VAR_1 = drv->FUNC_0(VAR_0); return VAR_1; }
[ "int FUNC_0(BlockDriverState *VAR_0)\n{", "BlockDriver *drv = VAR_0->drv;", "int VAR_1;", "if (!drv)\nreturn 0;", "if (!drv->FUNC_0)\nreturn !VAR_0->tray_open;", "VAR_1 = drv->FUNC_0(VAR_0);", "return VAR_1;", "}" ]
[ 0, 0, 1, 0, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ] ]
20,264
static void virtio_blk_update_config(VirtIODevice *vdev, uint8_t *config) { VirtIOBlock *s = to_virtio_blk(vdev); struct virtio_blk_config blkcfg; uint64_t capacity; int cylinders, heads, secs; bdrv_get_geometry(s->bs, &capacity); bdrv_get_geometry_hint(s->bs, &cylinders, &heads, &secs)...
true
qemu
c7085da7266120a8594f8fddcbf3b6839a8eda58
static void virtio_blk_update_config(VirtIODevice *vdev, uint8_t *config) { VirtIOBlock *s = to_virtio_blk(vdev); struct virtio_blk_config blkcfg; uint64_t capacity; int cylinders, heads, secs; bdrv_get_geometry(s->bs, &capacity); bdrv_get_geometry_hint(s->bs, &cylinders, &heads, &secs)...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIODevice *VAR_0, uint8_t *VAR_1) { VirtIOBlock *s = to_virtio_blk(VAR_0); struct virtio_blk_config VAR_2; uint64_t capacity; int VAR_3, VAR_4, VAR_5; bdrv_get_geometry(s->bs, &capacity); bdrv_get_geometry_hint(s->bs, &VAR_3, &VAR_4, &VAR_5); stq_raw(&VAR_2.ca...
[ "static void FUNC_0(VirtIODevice *VAR_0, uint8_t *VAR_1)\n{", "VirtIOBlock *s = to_virtio_blk(VAR_0);", "struct virtio_blk_config VAR_2;", "uint64_t capacity;", "int VAR_3, VAR_4, VAR_5;", "bdrv_get_geometry(s->bs, &capacity);", "bdrv_get_geometry_hint(s->bs, &VAR_3, &VAR_4, &VAR_5);", "stq_raw(&VAR_2...
[ 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 ], [ 30 ], [ 32 ] ]
20,265
static int vpc_create(const char *filename, QEMUOptionParameter *options) { uint8_t buf[1024]; struct vhd_footer* footer = (struct vhd_footer*) buf; struct vhd_dyndisk_header* dyndisk_header = (struct vhd_dyndisk_header*) buf; int fd, i; uint16_t cyls; uint8_t heads; uint8_t...
true
qemu
dede4188cc817a039154ed2ecd7f3285f6b94056
static int vpc_create(const char *filename, QEMUOptionParameter *options) { uint8_t buf[1024]; struct vhd_footer* footer = (struct vhd_footer*) buf; struct vhd_dyndisk_header* dyndisk_header = (struct vhd_dyndisk_header*) buf; int fd, i; uint16_t cyls; uint8_t heads; uint8_t...
{ "code": [ " uint16_t cyls;", " uint8_t heads;", " uint8_t secs_per_cyl;", " if (calculate_geometry(total_sectors, &cyls, &heads, &secs_per_cyl))", " return -EFBIG;" ], "line_no": [ 15, 17, 19, 55, 57 ] }
static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1) { uint8_t buf[1024]; struct vhd_footer* VAR_2 = (struct vhd_footer*) buf; struct vhd_dyndisk_header* VAR_3 = (struct vhd_dyndisk_header*) buf; int VAR_4, VAR_5; uint16_t cyls; uint8_t heads; uint8_t secs_per_cy...
[ "static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1)\n{", "uint8_t buf[1024];", "struct vhd_footer* VAR_2 = (struct vhd_footer*) buf;", "struct vhd_dyndisk_header* VAR_3 =\n(struct vhd_dyndisk_header*) buf;", "int VAR_4, VAR_5;", "uint16_t cyls;", "uint8_t heads;", "uint8_t secs_per_cyl;"...
[ 0, 0, 0, 0, 0, 1, 1, 1, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47, 49 ], [ 55,...
20,266
ff_rm_retrieve_cache (AVFormatContext *s, AVIOContext *pb, AVStream *st, RMStream *ast, AVPacket *pkt) { RMDemuxContext *rm = s->priv_data; assert (rm->audio_pkt_cnt > 0); if (st->codec->codec_id == CODEC_ID_AAC) av_get_packet(pb, pkt, ast->sub_packet_lengths[ast->sub...
true
FFmpeg
3e033da84782e12ed529e6a88dd53b6a72199e8e
ff_rm_retrieve_cache (AVFormatContext *s, AVIOContext *pb, AVStream *st, RMStream *ast, AVPacket *pkt) { RMDemuxContext *rm = s->priv_data; assert (rm->audio_pkt_cnt > 0); if (st->codec->codec_id == CODEC_ID_AAC) av_get_packet(pb, pkt, ast->sub_packet_lengths[ast->sub...
{ "code": [ " if (st->codec->codec_id == CODEC_ID_AAC)" ], "line_no": [ 15 ] }
FUNC_0 (AVFormatContext *VAR_0, AVIOContext *VAR_1, AVStream *VAR_2, RMStream *VAR_3, AVPacket *VAR_4) { RMDemuxContext *rm = VAR_0->priv_data; assert (rm->audio_pkt_cnt > 0); if (VAR_2->codec->codec_id == CODEC_ID_AAC) av_get_packet(VAR_1, VAR_4, VAR_3->sub_packet_le...
[ "FUNC_0 (AVFormatContext *VAR_0, AVIOContext *VAR_1,\nAVStream *VAR_2, RMStream *VAR_3, AVPacket *VAR_4)\n{", "RMDemuxContext *rm = VAR_0->priv_data;", "assert (rm->audio_pkt_cnt > 0);", "if (VAR_2->codec->codec_id == CODEC_ID_AAC)\nav_get_packet(VAR_1, VAR_4, VAR_3->sub_packet_lengths[VAR_3->sub_packet_cnt -...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ] ]
20,267
static void virtio_pci_reset(void *opaque) { VirtIOPCIProxy *proxy = opaque; virtio_reset(proxy->vdev); msix_reset(&proxy->pci_dev); }
true
qemu
e489030df2448d22b3cb92fd5dcb22c6fa0fc9e1
static void virtio_pci_reset(void *opaque) { VirtIOPCIProxy *proxy = opaque; virtio_reset(proxy->vdev); msix_reset(&proxy->pci_dev); }
{ "code": [ "static void virtio_pci_reset(void *opaque)", " VirtIOPCIProxy *proxy = opaque;" ], "line_no": [ 1, 5 ] }
static void FUNC_0(void *VAR_0) { VirtIOPCIProxy *proxy = VAR_0; virtio_reset(proxy->vdev); msix_reset(&proxy->pci_dev); }
[ "static void FUNC_0(void *VAR_0)\n{", "VirtIOPCIProxy *proxy = VAR_0;", "virtio_reset(proxy->vdev);", "msix_reset(&proxy->pci_dev);", "}" ]
[ 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
20,268
static int bdrv_write_em(BlockDriverState *bs, int64_t sector_num, const uint8_t *buf, int nb_sectors) { int async_ret; BlockDriverAIOCB *acb; async_ret = NOT_DONE; qemu_aio_wait_start(); acb = bdrv_aio_write(bs, sector_num, buf, nb_sectors, ...
true
qemu
baf35cb90204d75404892aa4e52628ae7a00669b
static int bdrv_write_em(BlockDriverState *bs, int64_t sector_num, const uint8_t *buf, int nb_sectors) { int async_ret; BlockDriverAIOCB *acb; async_ret = NOT_DONE; qemu_aio_wait_start(); acb = bdrv_aio_write(bs, sector_num, buf, nb_sectors, ...
{ "code": [ " qemu_aio_wait_start();", " qemu_aio_wait_end();", " qemu_aio_wait_start();", " if (acb == NULL) {", " qemu_aio_wait_end();", " qemu_aio_wait_end();", " qemu_aio_wait_start();", " if (acb == NULL) {", " qemu_aio_wait_end();", " ...
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, const uint8_t *VAR_2, int VAR_3) { int VAR_4; BlockDriverAIOCB *acb; VAR_4 = NOT_DONE; qemu_aio_wait_start(); acb = bdrv_aio_write(VAR_0, VAR_1, VAR_2, VAR_3, bdrv_rw_em_cb, &VAR_4);...
[ "static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{", "int VAR_4;", "BlockDriverAIOCB *acb;", "VAR_4 = NOT_DONE;", "qemu_aio_wait_start();", "acb = bdrv_aio_write(VAR_0, VAR_1, VAR_2, VAR_3,\nbdrv_rw_em_cb, &VAR_4);", "if (acb == NULL) {", "qemu_aio_wait_end...
[ 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
20,269
static void ioapic_class_init(ObjectClass *klass, void *data) { IOAPICCommonClass *k = IOAPIC_COMMON_CLASS(klass); DeviceClass *dc = DEVICE_CLASS(klass); k->realize = ioapic_realize; * If APIC is in kernel, we need to update the kernel cache after * migration, otherwise first 24 gsi route...
true
qemu
e4f4fb1eca795e36f363b4647724221e774523c1
static void ioapic_class_init(ObjectClass *klass, void *data) { IOAPICCommonClass *k = IOAPIC_COMMON_CLASS(klass); DeviceClass *dc = DEVICE_CLASS(klass); k->realize = ioapic_realize; * If APIC is in kernel, we need to update the kernel cache after * migration, otherwise first 24 gsi route...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { IOAPICCommonClass *k = IOAPIC_COMMON_CLASS(VAR_0); DeviceClass *dc = DEVICE_CLASS(VAR_0); k->realize = ioapic_realize; * If APIC is in kernel, we need to update the kernel cache after * migration, otherwise first 24 gsi routes will be ...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "IOAPICCommonClass *k = IOAPIC_COMMON_CLASS(VAR_0);", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "k->realize = ioapic_realize;", "* If APIC is in kernel, we need to update the kernel cache after\n* migration, otherwise first 24 gsi routes will be inva...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 14, 16, 19 ], [ 21 ], [ 23 ], [ 30 ] ]
20,270
static inline void iwmmxt_store_creg(int reg, TCGv var) { tcg_gen_st_i32(var, cpu_env, offsetof(CPUState, iwmmxt.cregs[reg])); }
true
qemu
d9968827032039d99b38db7ad3598767e1a53bbb
static inline void iwmmxt_store_creg(int reg, TCGv var) { tcg_gen_st_i32(var, cpu_env, offsetof(CPUState, iwmmxt.cregs[reg])); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(int VAR_0, TCGv VAR_1) { tcg_gen_st_i32(VAR_1, cpu_env, offsetof(CPUState, iwmmxt.cregs[VAR_0])); }
[ "static inline void FUNC_0(int VAR_0, TCGv VAR_1)\n{", "tcg_gen_st_i32(VAR_1, cpu_env, offsetof(CPUState, iwmmxt.cregs[VAR_0]));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 8 ] ]
20,271
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { H264Context *h = avctx->priv_data; MpegEncContext *s = &h->s; AVFrame *pict = data; int buf_index; s->flags= avctx->flags...
false
FFmpeg
55f22dd473fa954a17cef2fcf089ad7fd696d4e0
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { H264Context *h = avctx->priv_data; MpegEncContext *s = &h->s; AVFrame *pict = data; int buf_index; s->flags= avctx->flags...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, const uint8_t *VAR_3, int VAR_4) { H264Context *h = VAR_0->priv_data; MpegEncContext *s = &h->s; AVFrame *pict = VAR_1; int VAR_5; s->flags= VAR_0->flags; s->fla...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{", "H264Context *h = VAR_0->priv_data;", "MpegEncContext *s = &h->s;", "AVFrame *pict = VAR_1;", "int VAR_5;", "s->flags= VAR_0->flags;", "s->flags2= VAR_0->flags2;", "if(s->flags&CODEC_FLAG_TRUNCAT...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 55 ], [ 57 ], [ 59 ], [...
20,272
static AVFrame *get_video_buffer(AVFilterLink *inlink, int w, int h) { PadContext *s = inlink->dst->priv; AVFrame *frame = ff_get_video_buffer(inlink->dst->outputs[0], w + (s->w - s->in_w), h + (s->h - s->in_h)); int p...
false
FFmpeg
e43a0a232dbf6d3c161823c2e07c52e76227a1bc
static AVFrame *get_video_buffer(AVFilterLink *inlink, int w, int h) { PadContext *s = inlink->dst->priv; AVFrame *frame = ff_get_video_buffer(inlink->dst->outputs[0], w + (s->w - s->in_w), h + (s->h - s->in_h)); int p...
{ "code": [], "line_no": [] }
static AVFrame *FUNC_0(AVFilterLink *inlink, int w, int h) { PadContext *s = inlink->dst->priv; AVFrame *frame = ff_get_video_buffer(inlink->dst->outputs[0], w + (s->w - s->in_w), h + (s->h - s->in_h)); int VAR_0; ...
[ "static AVFrame *FUNC_0(AVFilterLink *inlink, int w, int h)\n{", "PadContext *s = inlink->dst->priv;", "AVFrame *frame = ff_get_video_buffer(inlink->dst->outputs[0],\nw + (s->w - s->in_w),\nh + (s->h - s->in_h));", "int VAR_0;", "if (!frame)\nreturn NULL;", "frame->width = w;", "frame->height = h;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 45 ], [ 47 ] ]
20,273
int64_t ff_start_tag(AVIOContext *pb, const char *tag) { ffio_wfourcc(pb, tag); avio_wl32(pb, 0); return avio_tell(pb); }
false
FFmpeg
c2b0ce70add2a7dd6e792341c21278cb94820684
int64_t ff_start_tag(AVIOContext *pb, const char *tag) { ffio_wfourcc(pb, tag); avio_wl32(pb, 0); return avio_tell(pb); }
{ "code": [], "line_no": [] }
int64_t FUNC_0(AVIOContext *pb, const char *tag) { ffio_wfourcc(pb, tag); avio_wl32(pb, 0); return avio_tell(pb); }
[ "int64_t FUNC_0(AVIOContext *pb, const char *tag)\n{", "ffio_wfourcc(pb, tag);", "avio_wl32(pb, 0);", "return avio_tell(pb);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
20,274
static int svq3_decode_mb(H264Context *h, unsigned int mb_type) { int i, j, k, m, dir, mode; int cbp = 0; uint32_t vlc; int8_t *top, *left; MpegEncContext *const s = (MpegEncContext *) h; const int mb_xy = h->mb_xy; const int b_xy = 4*s->mb_x + 4*s->mb_y*h->b_stride; h->top_s...
false
FFmpeg
fc7f7f171f7c5cf77cd3e56a69c5709be062fe62
static int svq3_decode_mb(H264Context *h, unsigned int mb_type) { int i, j, k, m, dir, mode; int cbp = 0; uint32_t vlc; int8_t *top, *left; MpegEncContext *const s = (MpegEncContext *) h; const int mb_xy = h->mb_xy; const int b_xy = 4*s->mb_x + 4*s->mb_y*h->b_stride; h->top_s...
{ "code": [], "line_no": [] }
static int FUNC_0(H264Context *VAR_0, unsigned int VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8 = 0; uint32_t vlc; int8_t *top, *left; MpegEncContext *const s = (MpegEncContext *) VAR_0; const int VAR_9 = VAR_0->VAR_9; const int VAR_10 = 4*s->mb_x + 4*s->mb_y*VAR...
[ "static int FUNC_0(H264Context *VAR_0, unsigned int VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8 = 0;", "uint32_t vlc;", "int8_t *top, *left;", "MpegEncContext *const s = (MpegEncContext *) VAR_0;", "const int VAR_9 = VAR_0->VAR_9;", "const int VAR_10 = 4*s->mb_x + 4*s->mb_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
20,275
AVCodecContext *avcodec_alloc_context3(const AVCodec *codec) { AVCodecContext *avctx= av_malloc(sizeof(AVCodecContext)); if(avctx==NULL) return NULL; if(avcodec_get_context_defaults3(avctx, codec) < 0){ av_free(avctx); return NULL; } return avctx; }
false
FFmpeg
f929ab0569ff31ed5a59b0b0adb7ce09df3fca39
AVCodecContext *avcodec_alloc_context3(const AVCodec *codec) { AVCodecContext *avctx= av_malloc(sizeof(AVCodecContext)); if(avctx==NULL) return NULL; if(avcodec_get_context_defaults3(avctx, codec) < 0){ av_free(avctx); return NULL; } return avctx; }
{ "code": [], "line_no": [] }
AVCodecContext *FUNC_0(const AVCodec *codec) { AVCodecContext *avctx= av_malloc(sizeof(AVCodecContext)); if(avctx==NULL) return NULL; if(avcodec_get_context_defaults3(avctx, codec) < 0){ av_free(avctx); return NULL; } return avctx; }
[ "AVCodecContext *FUNC_0(const AVCodec *codec)\n{", "AVCodecContext *avctx= av_malloc(sizeof(AVCodecContext));", "if(avctx==NULL) return NULL;", "if(avcodec_get_context_defaults3(avctx, codec) < 0){", "av_free(avctx);", "return NULL;", "}", "return avctx;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
20,276
static void exynos4210_fimd_reset(DeviceState *d) { Exynos4210fimdState *s = EXYNOS4210_FIMD(d); unsigned w; DPRINT_TRACE("Display controller reset\n"); /* Set all display controller registers to 0 */ memset(&s->vidcon, 0, (uint8_t *)&s->window - (uint8_t *)&s->vidcon); for (w = 0; w < ...
false
qemu
ef1e1e0782e99c9dcf2b35e5310cdd8ca9211374
static void exynos4210_fimd_reset(DeviceState *d) { Exynos4210fimdState *s = EXYNOS4210_FIMD(d); unsigned w; DPRINT_TRACE("Display controller reset\n"); memset(&s->vidcon, 0, (uint8_t *)&s->window - (uint8_t *)&s->vidcon); for (w = 0; w < NUM_OF_WINDOWS; w++) { memset(&s->wind...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0) { Exynos4210fimdState *s = EXYNOS4210_FIMD(VAR_0); unsigned VAR_1; DPRINT_TRACE("Display controller reset\n"); memset(&s->vidcon, 0, (uint8_t *)&s->window - (uint8_t *)&s->vidcon); for (VAR_1 = 0; VAR_1 < NUM_OF_WINDOWS; VAR_1++) { memset...
[ "static void FUNC_0(DeviceState *VAR_0)\n{", "Exynos4210fimdState *s = EXYNOS4210_FIMD(VAR_0);", "unsigned VAR_1;", "DPRINT_TRACE(\"Display controller reset\\n\");", "memset(&s->vidcon, 0, (uint8_t *)&s->window - (uint8_t *)&s->vidcon);", "for (VAR_1 = 0; VAR_1 < NUM_OF_WINDOWS; VAR_1++) {", "memset(&s-...
[ 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 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 51...
20,277
void helper_slbie(CPUPPCState *env, target_ulong addr) { PowerPCCPU *cpu = ppc_env_get_cpu(env); ppc_slb_t *slb; slb = slb_lookup(cpu, addr); if (!slb) { return; } if (slb->esid & SLB_ESID_V) { slb->esid &= ~SLB_ESID_V; /* XXX: given the fact that segment ...
false
qemu
a63f1dfc6213c765b62e93b720229d522cd156f4
void helper_slbie(CPUPPCState *env, target_ulong addr) { PowerPCCPU *cpu = ppc_env_get_cpu(env); ppc_slb_t *slb; slb = slb_lookup(cpu, addr); if (!slb) { return; } if (slb->esid & SLB_ESID_V) { slb->esid &= ~SLB_ESID_V; env->tlb_need_flush ...
{ "code": [], "line_no": [] }
void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1) { PowerPCCPU *cpu = ppc_env_get_cpu(VAR_0); ppc_slb_t *slb; slb = slb_lookup(cpu, VAR_1); if (!slb) { return; } if (slb->esid & SLB_ESID_V) { slb->esid &= ~SLB_ESID_V; VAR_0->tlb_need_flus...
[ "void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1)\n{", "PowerPCCPU *cpu = ppc_env_get_cpu(VAR_0);", "ppc_slb_t *slb;", "slb = slb_lookup(cpu, VAR_1);", "if (!slb) {", "return;", "}", "if (slb->esid & SLB_ESID_V) {", "slb->esid &= ~SLB_ESID_V;", "VAR_0->tlb_need_flush |= TLB_NEED_LOCAL_FLUSH;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 35 ], [ 37 ], [ 39 ] ]
20,278
static int execute_command(BlockDriverState *bdrv, SCSIRequest *r, int direction, BlockDriverCompletionFunc *complete) { r->io_header.interface_id = 'S'; r->io_header.dxfer_direction = direction; r->io_header.dxferp = r->buf; r->io_header.dxfer_len = r->buflen; ...
false
qemu
7d78066926b68afe28a1948c64618ee085d9ab02
static int execute_command(BlockDriverState *bdrv, SCSIRequest *r, int direction, BlockDriverCompletionFunc *complete) { r->io_header.interface_id = 'S'; r->io_header.dxfer_direction = direction; r->io_header.dxferp = r->buf; r->io_header.dxfer_len = r->buflen; ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, SCSIRequest *VAR_1, int VAR_2, BlockDriverCompletionFunc *VAR_3) { VAR_1->io_header.interface_id = 'S'; VAR_1->io_header.dxfer_direction = VAR_2; VAR_1->io_header.dxferp = VAR_1->buf; VAR_1->io_header.dxfer_len = VAR_1-...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nSCSIRequest *VAR_1, int VAR_2,\nBlockDriverCompletionFunc *VAR_3)\n{", "VAR_1->io_header.interface_id = 'S';", "VAR_1->io_header.dxfer_direction = VAR_2;", "VAR_1->io_header.dxferp = VAR_1->buf;", "VAR_1->io_header.dxfer_len = VAR_1->buflen;", "VAR_1->io_header...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
20,279
static void inet_addr_to_opts(QemuOpts *opts, const InetSocketAddress *addr) { bool ipv4 = addr->ipv4 || !addr->has_ipv4; bool ipv6 = addr->ipv6 || !addr->has_ipv6; if (!ipv4 || !ipv6) { qemu_opt_set_bool(opts, "ipv4", ipv4, &error_abort); qemu_opt_set_bool(opts, "ipv6", ipv6, &error...
false
qemu
b77e7c8e99f9ac726c4eaa2fc3461fd886017dc0
static void inet_addr_to_opts(QemuOpts *opts, const InetSocketAddress *addr) { bool ipv4 = addr->ipv4 || !addr->has_ipv4; bool ipv6 = addr->ipv6 || !addr->has_ipv6; if (!ipv4 || !ipv6) { qemu_opt_set_bool(opts, "ipv4", ipv4, &error_abort); qemu_opt_set_bool(opts, "ipv6", ipv6, &error...
{ "code": [], "line_no": [] }
static void FUNC_0(QemuOpts *VAR_0, const InetSocketAddress *VAR_1) { bool ipv4 = VAR_1->ipv4 || !VAR_1->has_ipv4; bool ipv6 = VAR_1->ipv6 || !VAR_1->has_ipv6; if (!ipv4 || !ipv6) { qemu_opt_set_bool(VAR_0, "ipv4", ipv4, &error_abort); qemu_opt_set_bool(VAR_0, "ipv6", ipv6, &error_ab...
[ "static void FUNC_0(QemuOpts *VAR_0, const InetSocketAddress *VAR_1)\n{", "bool ipv4 = VAR_1->ipv4 || !VAR_1->has_ipv4;", "bool ipv6 = VAR_1->ipv6 || !VAR_1->has_ipv6;", "if (!ipv4 || !ipv6) {", "qemu_opt_set_bool(VAR_0, \"ipv4\", ipv4, &error_abort);", "qemu_opt_set_bool(VAR_0, \"ipv6\", ipv6, &error_abo...
[ 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 ] ]
20,280
static int local_lstat(FsContext *ctx, const char *path, struct stat *stbuf) { return lstat(rpath(ctx, path), stbuf); }
false
qemu
1237ad7607aae5859067831e36a59d3b017c5a54
static int local_lstat(FsContext *ctx, const char *path, struct stat *stbuf) { return lstat(rpath(ctx, path), stbuf); }
{ "code": [], "line_no": [] }
static int FUNC_0(FsContext *VAR_0, const char *VAR_1, struct stat *VAR_2) { return lstat(rpath(VAR_0, VAR_1), VAR_2); }
[ "static int FUNC_0(FsContext *VAR_0, const char *VAR_1, struct stat *VAR_2)\n{", "return lstat(rpath(VAR_0, VAR_1), VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
20,281
static void help(void) { printf("qemu-img version " QEMU_VERSION ", Copyright (c) 2004-2008 Fabrice Bellard\n" "usage: qemu-img command [command options]\n" "QEMU disk image utility\n" "\n" "Command syntax:\n" " check [-f fmt] filename\n" " ...
false
qemu
153859be1a0928d07ec2dc2b18847e32e180ff43
static void help(void) { printf("qemu-img version " QEMU_VERSION ", Copyright (c) 2004-2008 Fabrice Bellard\n" "usage: qemu-img command [command options]\n" "QEMU disk image utility\n" "\n" "Command syntax:\n" " check [-f fmt] filename\n" " ...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { printf("qemu-img version " QEMU_VERSION ", Copyright (c) 2004-2008 Fabrice Bellard\n" "usage: qemu-img command [command options]\n" "QEMU disk image utility\n" "\n" "Command syntax:\n" " check [-f fmt] filename\n" ...
[ "static void FUNC_0(void)\n{", "printf(\"qemu-img version \" QEMU_VERSION \", Copyright (c) 2004-2008 Fabrice Bellard\\n\"\n\"usage: qemu-img command [command options]\\n\"\n\"QEMU disk image utility\\n\"\n\"\\n\"\n\"Command syntax:\\n\"\n\" check [-f fmt] filename\\n\"\n\" create [-F fmt] [-b base_image] [-f f...
[ 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, 67, 69, 71, 73,...
20,284
ReadLineState *readline_init(Monitor *mon, ReadLineCompletionFunc *completion_finder) { ReadLineState *rs = g_malloc0(sizeof(*rs)); rs->hist_entry = -1; rs->mon = mon; rs->completion_finder = completion_finder; return rs; }
false
qemu
c60bf3391bf4cb79b7adc6650094e21671ddaabd
ReadLineState *readline_init(Monitor *mon, ReadLineCompletionFunc *completion_finder) { ReadLineState *rs = g_malloc0(sizeof(*rs)); rs->hist_entry = -1; rs->mon = mon; rs->completion_finder = completion_finder; return rs; }
{ "code": [], "line_no": [] }
ReadLineState *FUNC_0(Monitor *mon, ReadLineCompletionFunc *completion_finder) { ReadLineState *rs = g_malloc0(sizeof(*rs)); rs->hist_entry = -1; rs->mon = mon; rs->completion_finder = completion_finder; return rs; }
[ "ReadLineState *FUNC_0(Monitor *mon,\nReadLineCompletionFunc *completion_finder)\n{", "ReadLineState *rs = g_malloc0(sizeof(*rs));", "rs->hist_entry = -1;", "rs->mon = mon;", "rs->completion_finder = completion_finder;", "return rs;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ] ]
20,285
BlockDriverAIOCB *thread_pool_submit_aio(ThreadPoolFunc *func, void *arg, BlockDriverCompletionFunc *cb, void *opaque) { ThreadPool *pool = &global_pool; ThreadPoolElement *req; req = qemu_aio_get(&thread_pool_aiocb_info, NULL, cb, opaque); req->func = func; req->arg = arg; req...
false
qemu
c4d9d19645a484298a67e9021060bc7c2b081d0f
BlockDriverAIOCB *thread_pool_submit_aio(ThreadPoolFunc *func, void *arg, BlockDriverCompletionFunc *cb, void *opaque) { ThreadPool *pool = &global_pool; ThreadPoolElement *req; req = qemu_aio_get(&thread_pool_aiocb_info, NULL, cb, opaque); req->func = func; req->arg = arg; req...
{ "code": [], "line_no": [] }
BlockDriverAIOCB *FUNC_0(ThreadPoolFunc *func, void *arg, BlockDriverCompletionFunc *cb, void *opaque) { ThreadPool *pool = &global_pool; ThreadPoolElement *req; req = qemu_aio_get(&thread_pool_aiocb_info, NULL, cb, opaque); req->func = func; req->arg = arg; req->state = THREAD...
[ "BlockDriverAIOCB *FUNC_0(ThreadPoolFunc *func, void *arg,\nBlockDriverCompletionFunc *cb, void *opaque)\n{", "ThreadPool *pool = &global_pool;", "ThreadPoolElement *req;", "req = qemu_aio_get(&thread_pool_aiocb_info, NULL, cb, opaque);", "req->func = func;", "req->arg = arg;", "req->state = THREAD_QUEU...
[ 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 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ] ]
20,286
int ff_read_packet(AVFormatContext *s, AVPacket *pkt) { int ret, i, err; AVStream *st; for (;;) { AVPacketList *pktl = s->internal->raw_packet_buffer; if (pktl) { *pkt = pktl->pkt; st = s->streams[pkt->stream_index]; if (s->internal->raw_pac...
false
FFmpeg
a5b4476a602f31e451b11ca0c18bc92be130a50e
int ff_read_packet(AVFormatContext *s, AVPacket *pkt) { int ret, i, err; AVStream *st; for (;;) { AVPacketList *pktl = s->internal->raw_packet_buffer; if (pktl) { *pkt = pktl->pkt; st = s->streams[pkt->stream_index]; if (s->internal->raw_pac...
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { int VAR_2, VAR_3, VAR_4; AVStream *st; for (;;) { AVPacketList *pktl = VAR_0->internal->raw_packet_buffer; if (pktl) { *VAR_1 = pktl->VAR_1; st = VAR_0->streams[VAR_1->stream_index]; if (...
[ "int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "AVStream *st;", "for (;;) {", "AVPacketList *pktl = VAR_0->internal->raw_packet_buffer;", "if (pktl) {", "*VAR_1 = pktl->VAR_1;", "st = VAR_0->streams[VAR_1->stream_index];", "if (VAR_0->internal->raw_packet_buf...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49...
20,287
int kvm_arch_post_run(CPUState *env, struct kvm_run *run) { return 0; }
false
qemu
7a39fe588251ba042c91bf23d53b0ba820bf964c
int kvm_arch_post_run(CPUState *env, struct kvm_run *run) { return 0; }
{ "code": [], "line_no": [] }
int FUNC_0(CPUState *VAR_0, struct kvm_run *VAR_1) { return 0; }
[ "int FUNC_0(CPUState *VAR_0, struct kvm_run *VAR_1)\n{", "return 0;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
20,289
int bdrv_child_try_set_perm(BdrvChild *c, uint64_t perm, uint64_t shared, Error **errp) { int ret; ret = bdrv_child_check_perm(c, perm, shared, errp); if (ret < 0) { bdrv_child_abort_perm_update(c); return ret; } bdrv_child_set_perm(c, perm, s...
false
qemu
46181129eac9a56d9a948667282dd03d5015f096
int bdrv_child_try_set_perm(BdrvChild *c, uint64_t perm, uint64_t shared, Error **errp) { int ret; ret = bdrv_child_check_perm(c, perm, shared, errp); if (ret < 0) { bdrv_child_abort_perm_update(c); return ret; } bdrv_child_set_perm(c, perm, s...
{ "code": [], "line_no": [] }
int FUNC_0(BdrvChild *VAR_0, uint64_t VAR_1, uint64_t VAR_2, Error **VAR_3) { int VAR_4; VAR_4 = bdrv_child_check_perm(VAR_0, VAR_1, VAR_2, VAR_3); if (VAR_4 < 0) { bdrv_child_abort_perm_update(VAR_0); return VAR_4; } bdrv_child_set_perm(VAR_0...
[ "int FUNC_0(BdrvChild *VAR_0, uint64_t VAR_1, uint64_t VAR_2,\nError **VAR_3)\n{", "int VAR_4;", "VAR_4 = bdrv_child_check_perm(VAR_0, VAR_1, VAR_2, VAR_3);", "if (VAR_4 < 0) {", "bdrv_child_abort_perm_update(VAR_0);", "return VAR_4;", "}", "bdrv_child_set_perm(VAR_0, VAR_1, VAR_2);", "return 0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ] ]
20,290
static gboolean nbd_accept(QIOChannel *ioc, GIOCondition cond, gpointer opaque) { QIOChannelSocket *cioc; cioc = qio_channel_socket_accept(QIO_CHANNEL_SOCKET(ioc), NULL); if (!cioc) { return TRUE; } if (state >= TERMINATE) { object_un...
false
qemu
145614a112a8e67d6c84b26faaf2b2002e17d9be
static gboolean nbd_accept(QIOChannel *ioc, GIOCondition cond, gpointer opaque) { QIOChannelSocket *cioc; cioc = qio_channel_socket_accept(QIO_CHANNEL_SOCKET(ioc), NULL); if (!cioc) { return TRUE; } if (state >= TERMINATE) { object_un...
{ "code": [], "line_no": [] }
static gboolean FUNC_0(QIOChannel *ioc, GIOCondition cond, gpointer opaque) { QIOChannelSocket *cioc; cioc = qio_channel_socket_accept(QIO_CHANNEL_SOCKET(ioc), NULL); if (!cioc) { return TRUE; } if (state >= TERMINATE) { object_unref(...
[ "static gboolean FUNC_0(QIOChannel *ioc, GIOCondition cond, gpointer opaque)\n{", "QIOChannelSocket *cioc;", "cioc = qio_channel_socket_accept(QIO_CHANNEL_SOCKET(ioc),\nNULL);", "if (!cioc) {", "return TRUE;", "}", "if (state >= TERMINATE) {", "object_unref(OBJECT(cioc));", "return TRUE;", "}", ...
[ 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 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45 ] ]
20,291
static int sd_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { int ret, fd; uint32_t vid = 0; BDRVSheepdogState *s = bs->opaque; char vdi[SD_MAX_VDI_LEN], tag[SD_MAX_VDI_TAG_LEN]; uint32_t snapid; char *buf = NULL; QemuOpts *opts; Error *...
false
qemu
498f21405a286f718a0767c791b7d2db19f4e5bd
static int sd_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { int ret, fd; uint32_t vid = 0; BDRVSheepdogState *s = bs->opaque; char vdi[SD_MAX_VDI_LEN], tag[SD_MAX_VDI_TAG_LEN]; uint32_t snapid; char *buf = NULL; QemuOpts *opts; Error *...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { int VAR_4, VAR_5; uint32_t vid = 0; BDRVSheepdogState *s = VAR_0->opaque; char VAR_6[SD_MAX_VDI_LEN], tag[SD_MAX_VDI_TAG_LEN]; uint32_t snapid; char *VAR_7 = NULL; QemuOpts *opts;...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "int VAR_4, VAR_5;", "uint32_t vid = 0;", "BDRVSheepdogState *s = VAR_0->opaque;", "char VAR_6[SD_MAX_VDI_LEN], tag[SD_MAX_VDI_TAG_LEN];", "uint32_t snapid;", "char *VAR_7 = NULL;", "QemuOpts *opts;", "Error *l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
20,292
static void gen_cp1 (DisasContext *ctx, uint32_t opc, int rt, int fs) { const char *opn = "cp1 move"; TCGv t0 = tcg_temp_new(); switch (opc) { case OPC_MFC1: { TCGv_i32 fp0 = tcg_temp_new_i32(); gen_load_fpr32(fp0, fs); tcg_gen_ext_i32_tl(t0, fp0)...
false
qemu
7f6613cedc59fa849105668ae971dc31004bca1c
static void gen_cp1 (DisasContext *ctx, uint32_t opc, int rt, int fs) { const char *opn = "cp1 move"; TCGv t0 = tcg_temp_new(); switch (opc) { case OPC_MFC1: { TCGv_i32 fp0 = tcg_temp_new_i32(); gen_load_fpr32(fp0, fs); tcg_gen_ext_i32_tl(t0, fp0)...
{ "code": [], "line_no": [] }
static void FUNC_0 (DisasContext *VAR_0, uint32_t VAR_1, int VAR_2, int VAR_3) { const char *VAR_4 = "cp1 move"; TCGv t0 = tcg_temp_new(); switch (VAR_1) { case OPC_MFC1: { TCGv_i32 fp0 = tcg_temp_new_i32(); gen_load_fpr32(fp0, VAR_3); tcg_gen_ext...
[ "static void FUNC_0 (DisasContext *VAR_0, uint32_t VAR_1, int VAR_2, int VAR_3)\n{", "const char *VAR_4 = \"cp1 move\";", "TCGv t0 = tcg_temp_new();", "switch (VAR_1) {", "case OPC_MFC1:\n{", "TCGv_i32 fp0 = tcg_temp_new_i32();", "gen_load_fpr32(fp0, VAR_3);", "tcg_gen_ext_i32_tl(t0, fp0);", "tcg_te...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49...
20,293
static void hpet_ram_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { int i; HPETState *s = opaque; uint64_t old_val, new_val, val, index; DPRINTF("qemu: Enter hpet_ram_writel at %" PRIx64 " = %#x\n", addr, value); index = addr; o...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void hpet_ram_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { int i; HPETState *s = opaque; uint64_t old_val, new_val, val, index; DPRINTF("qemu: Enter hpet_ram_writel at %" PRIx64 " = %#x\n", addr, value); index = addr; o...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { int VAR_4; HPETState *s = VAR_0; uint64_t old_val, new_val, val, index; DPRINTF("qemu: Enter hpet_ram_writel at %" PRIx64 " = %#x\n", VAR_1, VAR_2); index = VAR_1; old...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "int VAR_4;", "HPETState *s = VAR_0;", "uint64_t old_val, new_val, val, index;", "DPRINTF(\"qemu: Enter hpet_ram_writel at %\" PRIx64 \" = %#x\\n\", VAR_1, VAR_2);", "index = VAR_1;", "old_val = hpet_ram_rea...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ...
20,294
static void init_proc_601 (CPUPPCState *env) { gen_spr_ne_601(env); gen_spr_601(env); /* Hardware implementation registers */ /* XXX : not implemented */ spr_register(env, SPR_HID0, "HID0", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_hid0_601, ...
false
qemu
082c6681b6c4af0035d9dad34a4a784be8c21dbe
static void init_proc_601 (CPUPPCState *env) { gen_spr_ne_601(env); gen_spr_601(env); spr_register(env, SPR_HID0, "HID0", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_hid0_601, 0x80010080); spr_register(env, SPR_HI...
{ "code": [], "line_no": [] }
static void FUNC_0 (CPUPPCState *VAR_0) { gen_spr_ne_601(VAR_0); gen_spr_601(VAR_0); spr_register(VAR_0, SPR_HID0, "HID0", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_hid0_601, 0x80010080); spr_register(VAR_0, SPR...
[ "static void FUNC_0 (CPUPPCState *VAR_0)\n{", "gen_spr_ne_601(VAR_0);", "gen_spr_601(VAR_0);", "spr_register(VAR_0, SPR_HID0, \"HID0\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_hid0_601,\n0x80010080);", "spr_register(VAR_0, SPR_HID1, \"HID1\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_gener...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13, 15, 17, 19 ], [ 23, 25, 27, 29 ], [ 33, 35, 37, 39 ], [ 43, 45, 47, 49 ], [ 53, 55, 57, 59 ], [ 63, 65 ], [ 67 ], [ 69 ], [ 71...
20,295
static inline void gen_stos(DisasContext *s, int ot) { gen_op_mov_TN_reg(OT_LONG, 0, R_EAX); gen_string_movl_A0_EDI(s); gen_op_st_T0_A0(ot + s->mem_index); gen_op_movl_T0_Dshift[ot](); #ifdef TARGET_X86_64 if (s->aflag == 2) { gen_op_addq_EDI_T0(); } else #endif if (s->afl...
false
qemu
6e0d8677cb443e7408c0b7a25a93c6596d7fa380
static inline void gen_stos(DisasContext *s, int ot) { gen_op_mov_TN_reg(OT_LONG, 0, R_EAX); gen_string_movl_A0_EDI(s); gen_op_st_T0_A0(ot + s->mem_index); gen_op_movl_T0_Dshift[ot](); #ifdef TARGET_X86_64 if (s->aflag == 2) { gen_op_addq_EDI_T0(); } else #endif if (s->afl...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0, int VAR_1) { gen_op_mov_TN_reg(OT_LONG, 0, R_EAX); gen_string_movl_A0_EDI(VAR_0); gen_op_st_T0_A0(VAR_1 + VAR_0->mem_index); gen_op_movl_T0_Dshift[VAR_1](); #ifdef TARGET_X86_64 if (VAR_0->aflag == 2) { gen_op_addq_EDI_T0(); } else ...
[ "static inline void FUNC_0(DisasContext *VAR_0, int VAR_1)\n{", "gen_op_mov_TN_reg(OT_LONG, 0, R_EAX);", "gen_string_movl_A0_EDI(VAR_0);", "gen_op_st_T0_A0(VAR_1 + VAR_0->mem_index);", "gen_op_movl_T0_Dshift[VAR_1]();", "#ifdef TARGET_X86_64\nif (VAR_0->aflag == 2) {", "gen_op_addq_EDI_T0();", "} else...
[ 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 ] ]
20,296
static int read_object(int fd, char *buf, uint64_t oid, int copies, unsigned int datalen, uint64_t offset, bool cache) { return read_write_object(fd, buf, oid, copies, datalen, offset, false, false, cache); }
false
qemu
0e7106d8b5f7ef4f9df10baf1dfb3db482bcd046
static int read_object(int fd, char *buf, uint64_t oid, int copies, unsigned int datalen, uint64_t offset, bool cache) { return read_write_object(fd, buf, oid, copies, datalen, offset, false, false, cache); }
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0, char *VAR_1, uint64_t VAR_2, int VAR_3, unsigned int VAR_4, uint64_t VAR_5, bool VAR_6) { return read_write_object(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, false, false, VAR_6); }
[ "static int FUNC_0(int VAR_0, char *VAR_1, uint64_t VAR_2, int VAR_3,\nunsigned int VAR_4, uint64_t VAR_5, bool VAR_6)\n{", "return read_write_object(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, false,\nfalse, VAR_6);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ] ]
20,297
static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb, unsigned int width, int *runs, const int *runend, const int *ref) { int mode = 0, saved_run = 0, t; int run_off = *ref++; unsigned int offs=0, run= 0; runend--; // for the last written 0 ...
false
FFmpeg
5891e454a667e42ef71a06bfd9661540ea3f3ebd
static int decode_group3_2d_line(AVCodecContext *avctx, GetBitContext *gb, unsigned int width, int *runs, const int *runend, const int *ref) { int mode = 0, saved_run = 0, t; int run_off = *ref++; unsigned int offs=0, run= 0; runend--; while(offs < width)...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, GetBitContext *VAR_1, unsigned int VAR_2, int *VAR_3, const int *VAR_4, const int *VAR_5) { int VAR_6 = 0, VAR_7 = 0, VAR_8; int VAR_9 = *VAR_5++; unsigned int VAR_10=0, VAR_11= 0; VAR_4--; while(VAR_10 < VAR_2){ ...
[ "static int FUNC_0(AVCodecContext *VAR_0, GetBitContext *VAR_1,\nunsigned int VAR_2, int *VAR_3, const int *VAR_4, const int *VAR_5)\n{", "int VAR_6 = 0, VAR_7 = 0, VAR_8;", "int VAR_9 = *VAR_5++;", "unsigned int VAR_10=0, VAR_11= 0;", "VAR_4--;", "while(VAR_10 < VAR_2){", "int VAR_12 = get_vlc2(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, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
20,298
static int coroutine_fn bdrv_aligned_preadv(BlockDriverState *bs, int64_t offset, unsigned int bytes, QEMUIOVector *qiov, int flags) { BlockDriver *drv = bs->drv; BdrvTrackedRequest req; int ret; int64_t sector_num = offset >> BDRV_SECTOR_BITS; unsigned int nb_sectors = bytes >> BDRV_SE...
false
qemu
65afd211c71fc91750d8a18f9604c1e57a5202fb
static int coroutine_fn bdrv_aligned_preadv(BlockDriverState *bs, int64_t offset, unsigned int bytes, QEMUIOVector *qiov, int flags) { BlockDriver *drv = bs->drv; BdrvTrackedRequest req; int ret; int64_t sector_num = offset >> BDRV_SECTOR_BITS; unsigned int nb_sectors = bytes >> BDRV_SE...
{ "code": [], "line_no": [] }
static int VAR_0 bdrv_aligned_preadv(BlockDriverState *bs, int64_t offset, unsigned int bytes, QEMUIOVector *qiov, int flags) { BlockDriver *drv = bs->drv; BdrvTrackedRequest req; int ret; int64_t sector_num = offset >> BDRV_SECTOR_BITS; unsigned int nb_sectors = bytes >> BDRV_SECTOR_BI...
[ "static int VAR_0 bdrv_aligned_preadv(BlockDriverState *bs,\nint64_t offset, unsigned int bytes, QEMUIOVector *qiov, int flags)\n{", "BlockDriver *drv = bs->drv;", "BdrvTrackedRequest req;", "int ret;", "int64_t sector_num = offset >> BDRV_SECTOR_BITS;", "unsigned int nb_sectors = bytes >> BDRV_SECTOR_BIT...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [...
20,300
void virtio_queue_notify_vq(VirtQueue *vq) { if (vq->vring.desc) { VirtIODevice *vdev = vq->vdev; trace_virtio_queue_notify(vdev, vq - vdev->vq, vq); vq->handle_output(vdev, vq); } }
false
qemu
9e0f5b8108e248b78444c9a2ec41a8309825736c
void virtio_queue_notify_vq(VirtQueue *vq) { if (vq->vring.desc) { VirtIODevice *vdev = vq->vdev; trace_virtio_queue_notify(vdev, vq - vdev->vq, vq); vq->handle_output(vdev, vq); } }
{ "code": [], "line_no": [] }
void FUNC_0(VirtQueue *VAR_0) { if (VAR_0->vring.desc) { VirtIODevice *vdev = VAR_0->vdev; trace_virtio_queue_notify(vdev, VAR_0 - vdev->VAR_0, VAR_0); VAR_0->handle_output(vdev, VAR_0); } }
[ "void FUNC_0(VirtQueue *VAR_0)\n{", "if (VAR_0->vring.desc) {", "VirtIODevice *vdev = VAR_0->vdev;", "trace_virtio_queue_notify(vdev, VAR_0 - vdev->VAR_0, VAR_0);", "VAR_0->handle_output(vdev, VAR_0);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
20,302
target_ulong helper_rdhwr_performance(CPUMIPSState *env) { check_hwrena(env, 4); return env->CP0_Performance0; }
true
qemu
d96391c1ffeb30a0afa695c86579517c69d9a889
target_ulong helper_rdhwr_performance(CPUMIPSState *env) { check_hwrena(env, 4); return env->CP0_Performance0; }
{ "code": [ " check_hwrena(env, 4);" ], "line_no": [ 5 ] }
target_ulong FUNC_0(CPUMIPSState *env) { check_hwrena(env, 4); return env->CP0_Performance0; }
[ "target_ulong FUNC_0(CPUMIPSState *env)\n{", "check_hwrena(env, 4);", "return env->CP0_Performance0;", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
20,303
static void openpic_reset(DeviceState *d) { OpenPICState *opp = FROM_SYSBUS(typeof (*opp), sysbus_from_qdev(d)); int i; opp->glbc = GLBC_RESET; /* Initialise controller registers */ opp->frep = ((opp->nb_irqs - 1) << FREP_NIRQ_SHIFT) | ((opp->nb_cpus - 1) << FREP_NCPU_SHIFT)...
true
qemu
af7e9e74c6a62a5bcd911726a9e88d28b61490e0
static void openpic_reset(DeviceState *d) { OpenPICState *opp = FROM_SYSBUS(typeof (*opp), sysbus_from_qdev(d)); int i; opp->glbc = GLBC_RESET; opp->frep = ((opp->nb_irqs - 1) << FREP_NIRQ_SHIFT) | ((opp->nb_cpus - 1) << FREP_NCPU_SHIFT) | (opp->vid << FREP...
{ "code": [ " memset(&opp->dst[i].raised, 0, sizeof(IRQ_queue_t));", " memset(&opp->dst[i].servicing, 0, sizeof(IRQ_queue_t));" ], "line_no": [ 45, 49 ] }
static void FUNC_0(DeviceState *VAR_0) { OpenPICState *opp = FROM_SYSBUS(typeof (*opp), sysbus_from_qdev(VAR_0)); int VAR_1; opp->glbc = GLBC_RESET; opp->frep = ((opp->nb_irqs - 1) << FREP_NIRQ_SHIFT) | ((opp->nb_cpus - 1) << FREP_NCPU_SHIFT) | (opp->vid <<...
[ "static void FUNC_0(DeviceState *VAR_0)\n{", "OpenPICState *opp = FROM_SYSBUS(typeof (*opp), sysbus_from_qdev(VAR_0));", "int VAR_1;", "opp->glbc = GLBC_RESET;", "opp->frep = ((opp->nb_irqs - 1) << FREP_NIRQ_SHIFT) |\n((opp->nb_cpus - 1) << FREP_NCPU_SHIFT) |\n(opp->vid << FREP_VID_SHIFT);", "opp->pint = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
20,304
static uint64_t get_cluster_offset(BlockDriverState *bs, uint64_t offset, int allocate) { BDRVVmdkState *s = bs->opaque; unsigned int l1_index, l2_offset, l2_index; int min_index, i, j; uint32_t min_count, *l2_table, tmp; uint64_t cluster_offset; ...
true
qemu
630530a6529bc3da9ab8aead7053dc753cb9ac77
static uint64_t get_cluster_offset(BlockDriverState *bs, uint64_t offset, int allocate) { BDRVVmdkState *s = bs->opaque; unsigned int l1_index, l2_offset, l2_index; int min_index, i, j; uint32_t min_count, *l2_table, tmp; uint64_t cluster_offset; ...
{ "code": [ "static uint64_t get_cluster_offset(BlockDriverState *bs,", " uint32_t min_count, *l2_table, tmp;", " stat(s->hd->filename, &file_buf);", " cluster_offset = file_buf.st_size;", " bdrv_truncate(s->hd, cluster_offset + (s->cluster_sectors << 9));", " cl...
static uint64_t FUNC_0(BlockDriverState *bs, uint64_t offset, int allocate) { BDRVVmdkState *s = bs->opaque; unsigned int VAR_0, VAR_1, VAR_2; int VAR_3, VAR_4, VAR_5; uint32_t min_count, *l2_table, tmp; uint64_t cluster_offset; VAR_0 = (offset >>...
[ "static uint64_t FUNC_0(BlockDriverState *bs,\nuint64_t offset, int allocate)\n{", "BDRVVmdkState *s = bs->opaque;", "unsigned int VAR_0, VAR_1, VAR_2;", "int VAR_3, VAR_4, VAR_5;", "uint32_t min_count, *l2_table, tmp;", "uint64_t cluster_offset;", "VAR_0 = (offset >> 9) / s->l1_entry_sectors;", "if (...
[ 1, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
20,306
static void rbd_aio_bh_cb(void *opaque) { RBDAIOCB *acb = opaque; if (acb->cmd == RBD_AIO_READ) { qemu_iovec_from_buf(acb->qiov, 0, acb->bounce, acb->qiov->size); } qemu_vfree(acb->bounce); acb->common.cb(acb->common.opaque, (acb->ret > 0 ? 0 : acb->ret)); qemu_bh_delete(acb->b...
true
qemu
473c7f0255920bcaf37411990a3725898772817f
static void rbd_aio_bh_cb(void *opaque) { RBDAIOCB *acb = opaque; if (acb->cmd == RBD_AIO_READ) { qemu_iovec_from_buf(acb->qiov, 0, acb->bounce, acb->qiov->size); } qemu_vfree(acb->bounce); acb->common.cb(acb->common.opaque, (acb->ret > 0 ? 0 : acb->ret)); qemu_bh_delete(acb->b...
{ "code": [ " qemu_aio_release(acb);" ], "line_no": [ 25 ] }
static void FUNC_0(void *VAR_0) { RBDAIOCB *acb = VAR_0; if (acb->cmd == RBD_AIO_READ) { qemu_iovec_from_buf(acb->qiov, 0, acb->bounce, acb->qiov->size); } qemu_vfree(acb->bounce); acb->common.cb(acb->common.VAR_0, (acb->ret > 0 ? 0 : acb->ret)); qemu_bh_delete(acb->bh); a...
[ "static void FUNC_0(void *VAR_0)\n{", "RBDAIOCB *acb = VAR_0;", "if (acb->cmd == RBD_AIO_READ) {", "qemu_iovec_from_buf(acb->qiov, 0, acb->bounce, acb->qiov->size);", "}", "qemu_vfree(acb->bounce);", "acb->common.cb(acb->common.VAR_0, (acb->ret > 0 ? 0 : acb->ret));", "qemu_bh_delete(acb->bh);", "ac...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
20,307
static void test_tco_second_timeout_shutdown(void) { TestData td; const uint16_t ticks = TCO_SECS_TO_TICKS(128); QDict *ad; td.args = "-watchdog-action shutdown"; td.noreboot = false; test_init(&td); stop_tco(&td); clear_tco_status(&td); reset_on_second_timeout(true); ...
true
qemu
34779e8c3991f7fcd74b2045478abcef67dbeb15
static void test_tco_second_timeout_shutdown(void) { TestData td; const uint16_t ticks = TCO_SECS_TO_TICKS(128); QDict *ad; td.args = "-watchdog-action shutdown"; td.noreboot = false; test_init(&td); stop_tco(&td); clear_tco_status(&td); reset_on_second_timeout(true); ...
{ "code": [ " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();", " qtest_end();" ], "line_no": [ 45, 45, 45,...
static void FUNC_0(void) { TestData td; const uint16_t VAR_0 = TCO_SECS_TO_TICKS(128); QDict *ad; td.args = "-watchdog-action shutdown"; td.noreboot = false; test_init(&td); stop_tco(&td); clear_tco_status(&td); reset_on_second_timeout(true); set_tco_timeout(&td, V...
[ "static void FUNC_0(void)\n{", "TestData td;", "const uint16_t VAR_0 = TCO_SECS_TO_TICKS(128);", "QDict *ad;", "td.args = \"-watchdog-action shutdown\";", "td.noreboot = false;", "test_init(&td);", "stop_tco(&td);", "clear_tco_status(&td);", "reset_on_second_timeout(true);", "set_tco_timeout(&td...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ...
20,308
static void add_ptimer_tests(uint8_t policy) { uint8_t *ppolicy = g_malloc(1); char *policy_name = g_malloc0(256); *ppolicy = policy; if (policy == PTIMER_POLICY_DEFAULT) { g_sprintf(policy_name, "default"); } if (policy & PTIMER_POLICY_WRAP_AFTER_ONE_PERIOD) { g_s...
true
qemu
072bdb07c5ef8b0351f9973ab5bba9e76be978a9
static void add_ptimer_tests(uint8_t policy) { uint8_t *ppolicy = g_malloc(1); char *policy_name = g_malloc0(256); *ppolicy = policy; if (policy == PTIMER_POLICY_DEFAULT) { g_sprintf(policy_name, "default"); } if (policy & PTIMER_POLICY_WRAP_AFTER_ONE_PERIOD) { g_s...
{ "code": [ " uint8_t *ppolicy = g_malloc(1);", " char *policy_name = g_malloc0(256);", " *ppolicy = policy;", " g_test_add_data_func(", " g_strdup_printf(\"/ptimer/set_count policy=%s\", policy_name),", " ppolicy, check_set_count);", " g_test_add_data_func(", ...
static void FUNC_0(uint8_t VAR_0) { uint8_t *ppolicy = g_malloc(1); char *VAR_1 = g_malloc0(256); *ppolicy = VAR_0; if (VAR_0 == PTIMER_POLICY_DEFAULT) { g_sprintf(VAR_1, "default"); } if (VAR_0 & PTIMER_POLICY_WRAP_AFTER_ONE_PERIOD) { g_strlcat(VAR_1, "wrap_after_...
[ "static void FUNC_0(uint8_t VAR_0)\n{", "uint8_t *ppolicy = g_malloc(1);", "char *VAR_1 = g_malloc0(256);", "*ppolicy = VAR_0;", "if (VAR_0 == PTIMER_POLICY_DEFAULT) {", "g_sprintf(VAR_1, \"default\");", "}", "if (VAR_0 & PTIMER_POLICY_WRAP_AFTER_ONE_PERIOD) {", "g_strlcat(VAR_1, \"wrap_after_one_pe...
[ 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55...
20,309
void HELPER(entry)(CPUXtensaState *env, uint32_t pc, uint32_t s, uint32_t imm) { int callinc = (env->sregs[PS] & PS_CALLINC) >> PS_CALLINC_SHIFT; if (s > 3 || ((env->sregs[PS] & (PS_WOE | PS_EXCM)) ^ PS_WOE) != 0) { qemu_log("Illegal entry instruction(pc = %08x), PS = %08x\n", pc, env->s...
true
qemu
1b3e71f8ee17ced609213d9b41758110f3c026e9
void HELPER(entry)(CPUXtensaState *env, uint32_t pc, uint32_t s, uint32_t imm) { int callinc = (env->sregs[PS] & PS_CALLINC) >> PS_CALLINC_SHIFT; if (s > 3 || ((env->sregs[PS] & (PS_WOE | PS_EXCM)) ^ PS_WOE) != 0) { qemu_log("Illegal entry instruction(pc = %08x), PS = %08x\n", pc, env->s...
{ "code": [], "line_no": [] }
void FUNC_0(entry)(CPUXtensaState *env, uint32_t pc, uint32_t s, uint32_t imm) { int VAR_0 = (env->sregs[PS] & PS_CALLINC) >> PS_CALLINC_SHIFT; if (s > 3 || ((env->sregs[PS] & (PS_WOE | PS_EXCM)) ^ PS_WOE) != 0) { qemu_log("Illegal entry instruction(pc = %08x), PS = %08x\n", pc, env->sre...
[ "void FUNC_0(entry)(CPUXtensaState *env, uint32_t pc, uint32_t s, uint32_t imm)\n{", "int VAR_0 = (env->sregs[PS] & PS_CALLINC) >> PS_CALLINC_SHIFT;", "if (s > 3 || ((env->sregs[PS] & (PS_WOE | PS_EXCM)) ^ PS_WOE) != 0) {", "qemu_log(\"Illegal entry instruction(pc = %08x), PS = %08x\\n\",\npc, env->sregs[PS])...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5, 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11, 12 ] ]
20,310
static void macio_nvram_writeb(void *opaque, hwaddr addr, uint64_t value, unsigned size) { MacIONVRAMState *s = opaque; addr = (addr >> s->it_shift) & (s->size - 1); s->data[addr] = value; NVR_DPRINTF("writeb addr %04" PHYS_PRIx " val %" PRIx64 "\n", addr, value); ...
true
qemu
2f448e415f364d0ec4c5556993e44ca183e31c5c
static void macio_nvram_writeb(void *opaque, hwaddr addr, uint64_t value, unsigned size) { MacIONVRAMState *s = opaque; addr = (addr >> s->it_shift) & (s->size - 1); s->data[addr] = value; NVR_DPRINTF("writeb addr %04" PHYS_PRIx " val %" PRIx64 "\n", addr, value); ...
{ "code": [ " NVR_DPRINTF(\"writeb addr %04\" PHYS_PRIx \" val %\" PRIx64 \"\\n\", addr, value);" ], "line_no": [ 15 ] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { MacIONVRAMState *s = VAR_0; VAR_1 = (VAR_1 >> s->it_shift) & (s->VAR_3 - 1); s->data[VAR_1] = VAR_2; NVR_DPRINTF("writeb VAR_1 %04" PHYS_PRIx " val %" PRIx64 "\n", VAR_1, VAR_2); }
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "MacIONVRAMState *s = VAR_0;", "VAR_1 = (VAR_1 >> s->it_shift) & (s->VAR_3 - 1);", "s->data[VAR_1] = VAR_2;", "NVR_DPRINTF(\"writeb VAR_1 %04\" PHYS_PRIx \" val %\" PRIx64 \"\\n\", VAR_1, VAR_2);", "}" ]
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
20,311
static int qcow2_do_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVQcow2State *s = bs->opaque; unsigned int len, i; int ret = 0; QCowHeader header; Error *local_err = NULL; uint64_t ext_end; uint64_t l1_vm_state_index; bool update_heade...
true
qemu
951053a9ec1c47edf4b2549ef58d82aee8a42a7f
static int qcow2_do_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVQcow2State *s = bs->opaque; unsigned int len, i; int ret = 0; QCowHeader header; Error *local_err = NULL; uint64_t ext_end; uint64_t l1_vm_state_index; bool update_heade...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { BDRVQcow2State *s = VAR_0->opaque; unsigned int VAR_4, VAR_5; int VAR_6 = 0; QCowHeader header; Error *local_err = NULL; uint64_t ext_end; uint64_t l1_vm_state_index; bool update...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "BDRVQcow2State *s = VAR_0->opaque;", "unsigned int VAR_4, VAR_5;", "int VAR_6 = 0;", "QCowHeader header;", "Error *local_err = NULL;", "uint64_t ext_end;", "uint64_t l1_vm_state_index;", "bool update_header = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ ...
20,312
static void qemu_kvm_init_cpu_signals(CPUState *env) { int r; sigset_t set; struct sigaction sigact; memset(&sigact, 0, sizeof(sigact)); sigact.sa_handler = dummy_signal; sigaction(SIG_IPI, &sigact, NULL); #ifdef CONFIG_IOTHREAD pthread_sigmask(SIG_BLOCK, NULL, &set); sigde...
true
qemu
12d4536f7d911b6d87a766ad7300482ea663cea2
static void qemu_kvm_init_cpu_signals(CPUState *env) { int r; sigset_t set; struct sigaction sigact; memset(&sigact, 0, sizeof(sigact)); sigact.sa_handler = dummy_signal; sigaction(SIG_IPI, &sigact, NULL); #ifdef CONFIG_IOTHREAD pthread_sigmask(SIG_BLOCK, NULL, &set); sigde...
{ "code": [ "#ifdef CONFIG_IOTHREAD", "#endif", "#ifdef CONFIG_IOTHREAD", "#endif", "#endif", "#ifdef CONFIG_IOTHREAD", "#else", " sigemptyset(&set);", "#endif", "#ifdef CONFIG_IOTHREAD", "#else", " sigemptyset(&set);", " sigaddset(&set, SIG_IPI);", " ...
static void FUNC_0(CPUState *VAR_0) { int VAR_1; sigset_t set; struct sigaction VAR_2; memset(&VAR_2, 0, sizeof(VAR_2)); VAR_2.sa_handler = dummy_signal; sigaction(SIG_IPI, &VAR_2, NULL); #ifdef CONFIG_IOTHREAD pthread_sigmask(SIG_BLOCK, NULL, &set); sigdelset(&set, SIG_IPI...
[ "static void FUNC_0(CPUState *VAR_0)\n{", "int VAR_1;", "sigset_t set;", "struct sigaction VAR_2;", "memset(&VAR_2, 0, sizeof(VAR_2));", "VAR_2.sa_handler = dummy_signal;", "sigaction(SIG_IPI, &VAR_2, NULL);", "#ifdef CONFIG_IOTHREAD\npthread_sigmask(SIG_BLOCK, NULL, &set);", "sigdelset(&set, SIG_IP...
[ 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 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 ], [ 43 ], [ 45 ], [ 47 ...
20,313
static inline void vmxnet3_ring_write_curr_cell(Vmxnet3Ring *ring, void *buff) { vmw_shmem_write(vmxnet3_ring_curr_cell_pa(ring), buff, ring->cell_size); }
true
qemu
c508277335e3b6b20cf18e6ea3a35c1fa835c64a
static inline void vmxnet3_ring_write_curr_cell(Vmxnet3Ring *ring, void *buff) { vmw_shmem_write(vmxnet3_ring_curr_cell_pa(ring), buff, ring->cell_size); }
{ "code": [ "static inline void vmxnet3_ring_write_curr_cell(Vmxnet3Ring *ring, void *buff)", " vmw_shmem_write(vmxnet3_ring_curr_cell_pa(ring), buff, ring->cell_size);" ], "line_no": [ 1, 5 ] }
static inline void FUNC_0(Vmxnet3Ring *VAR_0, void *VAR_1) { vmw_shmem_write(vmxnet3_ring_curr_cell_pa(VAR_0), VAR_1, VAR_0->cell_size); }
[ "static inline void FUNC_0(Vmxnet3Ring *VAR_0, void *VAR_1)\n{", "vmw_shmem_write(vmxnet3_ring_curr_cell_pa(VAR_0), VAR_1, VAR_0->cell_size);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
20,314
static uint16_t roundToInt16(int64_t f){ int r= (f + (1<<15))>>16; if(r<-0x7FFF) return 0x8000; else if(r> 0x7FFF) return 0x7FFF; else return r; }
true
FFmpeg
428098165de4c3edfe42c1b7f00627d287015863
static uint16_t roundToInt16(int64_t f){ int r= (f + (1<<15))>>16; if(r<-0x7FFF) return 0x8000; else if(r> 0x7FFF) return 0x7FFF; else return r; }
{ "code": [ "\tint r= (f + (1<<15))>>16;", "\t if(r<-0x7FFF) return 0x8000;", "\telse if(r> 0x7FFF) return 0x7FFF;", "\telse return r;" ], "line_no": [ 3, 5, 7, 9 ] }
static uint16_t FUNC_0(int64_t f){ int VAR_0= (f + (1<<15))>>16; if(VAR_0<-0x7FFF) return 0x8000; else if(VAR_0> 0x7FFF) return 0x7FFF; else return VAR_0; }
[ "static uint16_t FUNC_0(int64_t f){", "int VAR_0= (f + (1<<15))>>16;", "if(VAR_0<-0x7FFF) return 0x8000;", "else if(VAR_0> 0x7FFF) return 0x7FFF;", "else return VAR_0;", "}" ]
[ 0, 1, 1, 1, 1, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
20,315
static int decode_band_hdr(IVI4DecContext *ctx, IVIBandDesc *band, AVCodecContext *avctx) { int plane, band_num, indx, transform_id, scan_indx; int i; int quant_mat; plane = get_bits(&ctx->gb, 2); band_num = get_bits(&ctx->gb, 4); if (band->plane != plane ...
true
FFmpeg
29545741266a03332f2758c7ba4f77f362c3668d
static int decode_band_hdr(IVI4DecContext *ctx, IVIBandDesc *band, AVCodecContext *avctx) { int plane, band_num, indx, transform_id, scan_indx; int i; int quant_mat; plane = get_bits(&ctx->gb, 2); band_num = get_bits(&ctx->gb, 4); if (band->plane != plane ...
{ "code": [], "line_no": [] }
static int FUNC_0(IVI4DecContext *VAR_0, IVIBandDesc *VAR_1, AVCodecContext *VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8; int VAR_9; VAR_3 = get_bits(&VAR_0->gb, 2); VAR_4 = get_bits(&VAR_0->gb, 4); if (VAR_1->VAR_3 != VAR_3 || VAR_1->VAR_4 !...
[ "static int FUNC_0(IVI4DecContext *VAR_0, IVIBandDesc *VAR_1,\nAVCodecContext *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8;", "int VAR_9;", "VAR_3 = get_bits(&VAR_0->gb, 2);", "VAR_4 = get_bits(&VAR_0->gb, 4);", "if (VAR_1->VAR_3 != VAR_3 || VAR_1->VAR_4 != VAR_4) {", "av_log(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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 29 ], [ 31 ], [ 37, 39 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53 ], [...
20,316
static void scale_coefficients(AC3EncodeContext *s) { /* scaling/conversion is obviously not needed for the fixed-point encoder since the coefficients are already fixed-point. */ return; }
true
FFmpeg
323e6fead07c75f418e4b60704a4f437bb3483b2
static void scale_coefficients(AC3EncodeContext *s) { return; }
{ "code": [], "line_no": [] }
static void FUNC_0(AC3EncodeContext *VAR_0) { return; }
[ "static void FUNC_0(AC3EncodeContext *VAR_0)\n{", "return;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 9 ], [ 11 ] ]
20,317
static int decode_dds1(uint8_t *frame, int width, int height, const uint8_t *src, const uint8_t *src_end) { const uint8_t *frame_start = frame; const uint8_t *frame_end = frame + width * height; int mask = 0x10000, bitbuf = 0; int i, v, offset, count, segments; segm...
true
FFmpeg
29b0d94b43ac960cb442049a5d737a3386ff0337
static int decode_dds1(uint8_t *frame, int width, int height, const uint8_t *src, const uint8_t *src_end) { const uint8_t *frame_start = frame; const uint8_t *frame_end = frame + width * height; int mask = 0x10000, bitbuf = 0; int i, v, offset, count, segments; segm...
{ "code": [ " const uint8_t *src, const uint8_t *src_end)", " const uint8_t *src, const uint8_t *src_end)", " if (src >= src_end)", " return -1;", " bitbuf = bytestream_get_le16(&src);", " if (src_end - src...
static int FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, const uint8_t *VAR_3, const uint8_t *VAR_4) { const uint8_t *VAR_5 = VAR_0; const uint8_t *VAR_6 = VAR_0 + VAR_1 * VAR_2; int VAR_7 = 0x10000, VAR_8 = 0; int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13; VAR_13 = byte...
[ "static int FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2,\nconst uint8_t *VAR_3, const uint8_t *VAR_4)\n{", "const uint8_t *VAR_5 = VAR_0;", "const uint8_t *VAR_6 = VAR_0 + VAR_1 * VAR_2;", "int VAR_7 = 0x10000, VAR_8 = 0;", "int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;", "VAR_13 = bytestream_get_le16(&VAR...
[ 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 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 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ...
20,318
static void gen_test_cc(int cc, int label) { TCGv tmp; TCGv tmp2; int inv; switch (cc) { case 0: /* eq: Z */ tmp = load_cpu_field(ZF); tcg_gen_brcondi_i32(TCG_COND_EQ, tmp, 0, label); break; case 1: /* ne: !Z */ tmp = load_cpu_field(ZF); tcg_...
true
qemu
7d1b0095bff7157e856d1d0e6c4295641ced2752
static void gen_test_cc(int cc, int label) { TCGv tmp; TCGv tmp2; int inv; switch (cc) { case 0: tmp = load_cpu_field(ZF); tcg_gen_brcondi_i32(TCG_COND_EQ, tmp, 0, label); break; case 1: tmp = load_cpu_field(ZF); tcg_gen_brcondi_i32(TCG_CON...
{ "code": [ " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " ...
static void FUNC_0(int VAR_0, int VAR_1) { TCGv tmp; TCGv tmp2; int VAR_2; switch (VAR_0) { case 0: tmp = load_cpu_field(ZF); tcg_gen_brcondi_i32(TCG_COND_EQ, tmp, 0, VAR_1); break; case 1: tmp = load_cpu_field(ZF); tcg_gen_brcondi_i32(TCG_...
[ "static void FUNC_0(int VAR_0, int VAR_1)\n{", "TCGv tmp;", "TCGv tmp2;", "int VAR_2;", "switch (VAR_0) {", "case 0:\ntmp = load_cpu_field(ZF);", "tcg_gen_brcondi_i32(TCG_COND_EQ, tmp, 0, VAR_1);", "break;", "case 1:\ntmp = load_cpu_field(ZF);", "tcg_gen_brcondi_i32(TCG_COND_NE, tmp, 0, 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, 1, 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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47,...
20,319
static int init_input_threads(void) { int i, ret; if (nb_input_files == 1) return 0; for (i = 0; i < nb_input_files; i++) { InputFile *f = input_files[i]; if (f->ctx->pb ? !f->ctx->pb->seekable : strcmp(f->ctx->iformat->name, "lavfi")) f->non_bl...
true
FFmpeg
6d2df3c00a7899e9c06e3a460d64e4d0ccde0fae
static int init_input_threads(void) { int i, ret; if (nb_input_files == 1) return 0; for (i = 0; i < nb_input_files; i++) { InputFile *f = input_files[i]; if (f->ctx->pb ? !f->ctx->pb->seekable : strcmp(f->ctx->iformat->name, "lavfi")) f->non_bl...
{ "code": [ " if ((ret = pthread_create(&f->thread, NULL, input_thread, f)))" ], "line_no": [ 37 ] }
static int FUNC_0(void) { int VAR_0, VAR_1; if (nb_input_files == 1) return 0; for (VAR_0 = 0; VAR_0 < nb_input_files; VAR_0++) { InputFile *f = input_files[VAR_0]; if (f->ctx->pb ? !f->ctx->pb->seekable : strcmp(f->ctx->iformat->name, "lavfi")) ...
[ "static int FUNC_0(void)\n{", "int VAR_0, VAR_1;", "if (nb_input_files == 1)\nreturn 0;", "for (VAR_0 = 0; VAR_0 < nb_input_files; VAR_0++) {", "InputFile *f = input_files[VAR_0];", "if (f->ctx->pb ? !f->ctx->pb->seekable :\nstrcmp(f->ctx->iformat->name, \"lavfi\"))\nf->non_blocking = 1;", "VAR_1 = av_t...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 21, 23, 25 ], [ 27, 29 ], [ 31, 33 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ] ]
20,322
static const MXFCodecUL *mxf_get_essence_container_ul(enum CodecID type) { const MXFCodecUL *uls = ff_mxf_essence_container_uls; while (uls->id != CODEC_ID_NONE) { if (uls->id == type) break; uls++; } return uls; }
false
FFmpeg
a2f55f22b342202e6925561b9ee0b7ec76e8bcd0
static const MXFCodecUL *mxf_get_essence_container_ul(enum CodecID type) { const MXFCodecUL *uls = ff_mxf_essence_container_uls; while (uls->id != CODEC_ID_NONE) { if (uls->id == type) break; uls++; } return uls; }
{ "code": [], "line_no": [] }
static const MXFCodecUL *FUNC_0(enum CodecID type) { const MXFCodecUL *VAR_0 = ff_mxf_essence_container_uls; while (VAR_0->id != CODEC_ID_NONE) { if (VAR_0->id == type) break; VAR_0++; } return VAR_0; }
[ "static const MXFCodecUL *FUNC_0(enum CodecID type)\n{", "const MXFCodecUL *VAR_0 = ff_mxf_essence_container_uls;", "while (VAR_0->id != CODEC_ID_NONE) {", "if (VAR_0->id == type)\nbreak;", "VAR_0++;", "}", "return VAR_0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
20,323
static int amovie_request_frame(AVFilterLink *outlink) { MovieContext *movie = outlink->src->priv; int ret; if (movie->is_done) return AVERROR_EOF; do { if ((ret = amovie_get_samples(outlink)) < 0) return ret; } while (!movie->samplesref); ff_filter_samp...
false
FFmpeg
ac726a4f0cd2fb8619b478af51312a4282215f0e
static int amovie_request_frame(AVFilterLink *outlink) { MovieContext *movie = outlink->src->priv; int ret; if (movie->is_done) return AVERROR_EOF; do { if ((ret = amovie_get_samples(outlink)) < 0) return ret; } while (!movie->samplesref); ff_filter_samp...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0) { MovieContext *movie = VAR_0->src->priv; int VAR_1; if (movie->is_done) return AVERROR_EOF; do { if ((VAR_1 = amovie_get_samples(VAR_0)) < 0) return VAR_1; } while (!movie->samplesref); ff_filter_samples(VAR_0, avf...
[ "static int FUNC_0(AVFilterLink *VAR_0)\n{", "MovieContext *movie = VAR_0->src->priv;", "int VAR_1;", "if (movie->is_done)\nreturn AVERROR_EOF;", "do {", "if ((VAR_1 = amovie_get_samples(VAR_0)) < 0)\nreturn VAR_1;", "} while (!movie->samplesref);", "ff_filter_samples(VAR_0, avfilter_ref_buffer(movie-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]
20,324
static av_cold int pcm_decode_init(AVCodecContext *avctx) { PCMDecode *s = avctx->priv_data; int i; if (avctx->channels <= 0) { av_log(avctx, AV_LOG_ERROR, "PCM channels out of bounds\n"); return AVERROR(EINVAL); } switch (avctx->codec->id) { case AV_CODEC_ID_PCM_ALA...
false
FFmpeg
7373b3ad043cc3417d80c55ccdb620b08cd271bf
static av_cold int pcm_decode_init(AVCodecContext *avctx) { PCMDecode *s = avctx->priv_data; int i; if (avctx->channels <= 0) { av_log(avctx, AV_LOG_ERROR, "PCM channels out of bounds\n"); return AVERROR(EINVAL); } switch (avctx->codec->id) { case AV_CODEC_ID_PCM_ALA...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { PCMDecode *s = avctx->priv_data; int VAR_0; if (avctx->channels <= 0) { av_log(avctx, AV_LOG_ERROR, "PCM channels out of bounds\n"); return AVERROR(EINVAL); } switch (avctx->codec->id) { case AV_CODEC_ID_PCM_ALAW: ...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "PCMDecode *s = avctx->priv_data;", "int VAR_0;", "if (avctx->channels <= 0) {", "av_log(avctx, AV_LOG_ERROR, \"PCM channels out of bounds\\n\");", "return AVERROR(EINVAL);", "}", "switch (avctx->codec->id) {", "case AV_CODEC_ID_PCM_ALAW:\nfor (...
[ 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 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 47 ], [ 51, 53...
20,325
static av_cold int tta_decode_init(AVCodecContext * avctx) { TTAContext *s = avctx->priv_data; int total_frames; s->avctx = avctx; // 30bytes includes TTA1 header if (avctx->extradata_size < 22) return AVERROR_INVALIDDATA; init_get_bits(&s->gb, avctx->extradata, avctx->extr...
false
FFmpeg
710940bec16869ff7e07562f1e103e28a84ca316
static av_cold int tta_decode_init(AVCodecContext * avctx) { TTAContext *s = avctx->priv_data; int total_frames; s->avctx = avctx; if (avctx->extradata_size < 22) return AVERROR_INVALIDDATA; init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size * 8); if (show_...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext * avctx) { TTAContext *s = avctx->priv_data; int VAR_0; s->avctx = avctx; if (avctx->extradata_size < 22) return AVERROR_INVALIDDATA; init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size * 8); if (show_bits_long(&s->gb...
[ "static av_cold int FUNC_0(AVCodecContext * avctx)\n{", "TTAContext *s = avctx->priv_data;", "int VAR_0;", "s->avctx = avctx;", "if (avctx->extradata_size < 22)\nreturn AVERROR_INVALIDDATA;", "init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size * 8);", "if (show_bits_long(&s->gb, 32) == AV_RL3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 17, 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57...
20,326
static void vda_h264_uninit(AVCodecContext *avctx) { VDAContext *vda = avctx->internal->priv_data; av_freep(&vda->bitstream); }
false
FFmpeg
67afcefb35932b420998f6f3fda46c7c85848a3f
static void vda_h264_uninit(AVCodecContext *avctx) { VDAContext *vda = avctx->internal->priv_data; av_freep(&vda->bitstream); }
{ "code": [], "line_no": [] }
static void FUNC_0(AVCodecContext *VAR_0) { VDAContext *vda = VAR_0->internal->priv_data; av_freep(&vda->bitstream); }
[ "static void FUNC_0(AVCodecContext *VAR_0)\n{", "VDAContext *vda = VAR_0->internal->priv_data;", "av_freep(&vda->bitstream);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
20,329
int vhost_dev_init(struct vhost_dev *hdev, void *opaque, VhostBackendType backend_type, uint32_t busyloop_timeout) { uint64_t features; int i, r; hdev->migration_blocker = NULL; r = vhost_set_backend_type(hdev, backend_type); assert(r >= 0); r = hdev->vhost_ops->...
true
qemu
5be5f9be724d43fbec3d6f955a43bc64a62d55cc
int vhost_dev_init(struct vhost_dev *hdev, void *opaque, VhostBackendType backend_type, uint32_t busyloop_timeout) { uint64_t features; int i, r; hdev->migration_blocker = NULL; r = vhost_set_backend_type(hdev, backend_type); assert(r >= 0); r = hdev->vhost_ops->...
{ "code": [ " QLIST_INSERT_HEAD(&vhost_devices, hdev, entry);", " QLIST_REMOVE(hdev, entry);" ], "line_no": [ 45, 211 ] }
int FUNC_0(struct vhost_dev *VAR_0, void *VAR_1, VhostBackendType VAR_2, uint32_t VAR_3) { uint64_t features; int VAR_4, VAR_5; VAR_0->migration_blocker = NULL; VAR_5 = vhost_set_backend_type(VAR_0, VAR_2); assert(VAR_5 >= 0); VAR_5 = VAR_0->vhost_ops->vhost_back...
[ "int FUNC_0(struct vhost_dev *VAR_0, void *VAR_1,\nVhostBackendType VAR_2, uint32_t VAR_3)\n{", "uint64_t features;", "int VAR_4, VAR_5;", "VAR_0->migration_blocker = NULL;", "VAR_5 = vhost_set_backend_type(VAR_0, VAR_2);", "assert(VAR_5 >= 0);", "VAR_5 = VAR_0->vhost_ops->vhost_backend_init(VAR_0, VAR_...
[ 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, 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 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ...
20,330
static void cmv_process_header(CmvContext *s, const uint8_t *buf, const uint8_t *buf_end) { int pal_start, pal_count, i; if(buf+16>=buf_end) { av_log(s->avctx, AV_LOG_WARNING, "truncated header\n"); return; } s->width = AV_RL16(&buf[4]); s->height = AV_RL16(&buf[6]); ...
true
FFmpeg
8df8a87e3fd5bd0c3dabc676aae8fd84992932dc
static void cmv_process_header(CmvContext *s, const uint8_t *buf, const uint8_t *buf_end) { int pal_start, pal_count, i; if(buf+16>=buf_end) { av_log(s->avctx, AV_LOG_WARNING, "truncated header\n"); return; } s->width = AV_RL16(&buf[4]); s->height = AV_RL16(&buf[6]); ...
{ "code": [ " if(buf+16>=buf_end) {", " for (i=pal_start; i<pal_start+pal_count && i<AVPALETTE_COUNT && buf+2<buf_end; i++) {" ], "line_no": [ 9, 43 ] }
static void FUNC_0(CmvContext *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2) { int VAR_3, VAR_4, VAR_5; if(VAR_1+16>=VAR_2) { av_log(VAR_0->avctx, AV_LOG_WARNING, "truncated header\n"); return; } VAR_0->width = AV_RL16(&VAR_1[4]); VAR_0->height = AV_RL16(&VAR_1[6]);...
[ "static void FUNC_0(CmvContext *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5;", "if(VAR_1+16>=VAR_2) {", "av_log(VAR_0->avctx, AV_LOG_WARNING, \"truncated header\\n\");", "return;", "}", "VAR_0->width = AV_RL16(&VAR_1[4]);", "VAR_0->height = AV_RL16(&VAR_1[6]);", ...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ] ]
20,331
static int usb_serial_initfn(USBDevice *dev) { USBSerialState *s = DO_UPCAST(USBSerialState, dev, dev); s->dev.speed = USB_SPEED_FULL; qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_read, usb_serial_event, s); usb_serial_handle_reset(dev); return 0;
true
qemu
81bf96d3d299a7f88bf3e2ece4f795a9949db5f7
static int usb_serial_initfn(USBDevice *dev) { USBSerialState *s = DO_UPCAST(USBSerialState, dev, dev); s->dev.speed = USB_SPEED_FULL; qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_read, usb_serial_event, s); usb_serial_handle_reset(dev); return 0;
{ "code": [], "line_no": [] }
static int FUNC_0(USBDevice *VAR_0) { USBSerialState *s = DO_UPCAST(USBSerialState, VAR_0, VAR_0); s->VAR_0.speed = USB_SPEED_FULL; qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_read, usb_serial_event, s); usb_serial_handle_reset(VAR_0); return 0;
[ "static int FUNC_0(USBDevice *VAR_0)\n{", "USBSerialState *s = DO_UPCAST(USBSerialState, VAR_0, VAR_0);", "s->VAR_0.speed = USB_SPEED_FULL;", "qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_read,\nusb_serial_event, s);", "usb_serial_handle_reset(VAR_0);", "return 0;" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5, 6 ], [ 7 ], [ 8 ] ]
20,332
static ssize_t vnc_client_write_tls(gnutls_session_t *session, const uint8_t *data, size_t datalen) { ssize_t ret = gnutls_write(*session, data, datalen); if (ret < 0) { if (ret == GNUTLS_E_AGAIN) { errno = EAGAIN...
true
qemu
3e305e4a4752f70c0b5c3cf5b43ec957881714f7
static ssize_t vnc_client_write_tls(gnutls_session_t *session, const uint8_t *data, size_t datalen) { ssize_t ret = gnutls_write(*session, data, datalen); if (ret < 0) { if (ret == GNUTLS_E_AGAIN) { errno = EAGAIN...
{ "code": [ " } else {", " if (ret < 0) {", " return ret;", " if (ret < 0) {", " return ret;", " } else {", " if (ret < 0) {", " } else {", "static ssize_t vnc_client_write_tls(gnutls_session_t *session,", " ...
static ssize_t FUNC_0(gnutls_session_t *session, const uint8_t *data, size_t datalen) { ssize_t ret = gnutls_write(*session, data, datalen); if (ret < 0) { if (ret == GNUTLS_E_AGAIN) { errno = EAGAIN; } e...
[ "static ssize_t FUNC_0(gnutls_session_t *session,\nconst uint8_t *data,\nsize_t datalen)\n{", "ssize_t ret = gnutls_write(*session, data, datalen);", "if (ret < 0) {", "if (ret == GNUTLS_E_AGAIN) {", "errno = EAGAIN;", "} else {", "errno = EIO;", "}", "ret = -1;", "}", "return ret;", "}" ]
[ 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
20,333
ivshmem_client_handle_server_msg(IvshmemClient *client) { IvshmemClientPeer *peer; long peer_id; int ret, fd; ret = ivshmem_client_read_one_msg(client, &peer_id, &fd); if (ret < 0) { /* can return a peer or the local client */ peer = ivshmem_client_search_peer(client, peer_id); /* delete...
true
qemu
95204aa951ceb28eb6d4ce43bce09a58cbad83d8
ivshmem_client_handle_server_msg(IvshmemClient *client) { IvshmemClientPeer *peer; long peer_id; int ret, fd; ret = ivshmem_client_read_one_msg(client, &peer_id, &fd); if (ret < 0) { peer = ivshmem_client_search_peer(client, peer_id); if (fd == -1) { if (peer == NULL || pee...
{ "code": [], "line_no": [] }
FUNC_0(IvshmemClient *VAR_0) { IvshmemClientPeer *peer; long VAR_1; int VAR_2, VAR_3; VAR_2 = ivshmem_client_read_one_msg(VAR_0, &VAR_1, &VAR_3); if (VAR_2 < 0) { peer = ivshmem_client_search_peer(VAR_0, VAR_1); if (VAR_3 == -1) { if (peer == NULL || peer == &VAR_0->local) ...
[ "FUNC_0(IvshmemClient *VAR_0)\n{", "IvshmemClientPeer *peer;", "long VAR_1;", "int VAR_2, VAR_3;", "VAR_2 = ivshmem_client_read_one_msg(VAR_0, &VAR_1, &VAR_3);", "if (VAR_2 < 0) {", "peer = ivshmem_client_search_peer(VAR_0, VAR_1);", "if (VAR_3 == -1) {", "if (peer == NULL || peer == &VAR_0->local) ...
[ 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 ], [ 11 ], [ 12 ], [ 13, 14 ], [ 15 ], [ 16 ], [ 17 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ], [ 23 ], [ 24 ], [ ...
20,334
yuv2422_2_c_template(SwsContext *c, const int16_t *buf[2], const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf[2], uint8_t *dest, int dstW, int yalpha, int uvalpha, int y, enum PixelFormat target) { const int16_t *bu...
true
FFmpeg
9487fb4dea3498eb4711eb023f43199f68701b1e
yuv2422_2_c_template(SwsContext *c, const int16_t *buf[2], const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf[2], uint8_t *dest, int dstW, int yalpha, int uvalpha, int y, enum PixelFormat target) { const int16_t *bu...
{ "code": [], "line_no": [] }
FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1[2], const int16_t *VAR_2[2], const int16_t *VAR_3[2], const int16_t *VAR_4[2], uint8_t *VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9, enum PixelFormat VAR_10) { const int16_t *VAR_...
[ "FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1[2],\nconst int16_t *VAR_2[2], const int16_t *VAR_3[2],\nconst int16_t *VAR_4[2], uint8_t *VAR_5, int VAR_6,\nint VAR_7, int VAR_8, int VAR_9,\nenum PixelFormat VAR_10)\n{", "const int16_t *VAR_11 = VAR_1[0], *buf1 = VAR_1[1],\n*ubuf0 = VAR_2[0], *ubuf1 = VAR_2[1]...
[ 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 ] ]
20,335
static int vobsub_read_packet(AVFormatContext *s, AVPacket *pkt) { MpegDemuxContext *vobsub = s->priv_data; FFDemuxSubtitlesQueue *q; AVIOContext *pb = vobsub->sub_ctx->pb; int ret, psize, total_read = 0, i; AVPacket idx_pkt; int64_t min_ts = INT64_MAX; int sid = 0; for (i = 0...
true
FFmpeg
cba92a2226151abf0e3c24ed594e127203d485b8
static int vobsub_read_packet(AVFormatContext *s, AVPacket *pkt) { MpegDemuxContext *vobsub = s->priv_data; FFDemuxSubtitlesQueue *q; AVIOContext *pb = vobsub->sub_ctx->pb; int ret, psize, total_read = 0, i; AVPacket idx_pkt; int64_t min_ts = INT64_MAX; int sid = 0; for (i = 0...
{ "code": [ " break;", " int64_t ts = tmpq->subs[tmpq->current_sub_idx].pts;" ], "line_no": [ 95, 25 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { MpegDemuxContext *vobsub = VAR_0->priv_data; FFDemuxSubtitlesQueue *q; AVIOContext *pb = vobsub->sub_ctx->pb; int VAR_2, VAR_3, VAR_4 = 0, VAR_5; AVPacket idx_pkt; int64_t min_ts = INT64_MAX; int VAR_6 = 0; for (VAR_...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "MpegDemuxContext *vobsub = VAR_0->priv_data;", "FFDemuxSubtitlesQueue *q;", "AVIOContext *pb = vobsub->sub_ctx->pb;", "int VAR_2, VAR_3, VAR_4 = 0, VAR_5;", "AVPacket idx_pkt;", "int64_t min_ts = INT64_MAX;", "int VAR_6 = 0;", "for (V...
[ 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, 1, 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 ], [ 39 ], [ 41, 43 ], [...
20,336
static int dxtory_decode_v1_410(AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size) { int h, w; uint8_t *Y1, *Y2, *Y3, *Y4, *U, *V; int ret; if (src_size < avctx->width * avctx->height * 9L / 8) { av_log(avctx, AV_LOG_ERROR, "packet too...
true
FFmpeg
47f1596ecef3304f20be1be2dc6978989334608f
static int dxtory_decode_v1_410(AVCodecContext *avctx, AVFrame *pic, const uint8_t *src, int src_size) { int h, w; uint8_t *Y1, *Y2, *Y3, *Y4, *U, *V; int ret; if (src_size < avctx->width * avctx->height * 9L / 8) { av_log(avctx, AV_LOG_ERROR, "packet too...
{ "code": [ " AV_COPY32(Y1 + w, src);", " AV_COPY32(Y2 + w, src + 4);", " AV_COPY32(Y3 + w, src + 8);", " AV_COPY32(Y4 + w, src + 12);" ], "line_no": [ 49, 51, 53, 55 ] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, const uint8_t *VAR_2, int VAR_3) { int VAR_4, VAR_5; uint8_t *Y1, *Y2, *Y3, *Y4, *U, *V; int VAR_6; if (VAR_3 < VAR_0->width * VAR_0->height * 9L / 8) { av_log(VAR_0, AV_LOG_ERROR, "packet too small...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5;", "uint8_t *Y1, *Y2, *Y3, *Y4, *U, *V;", "int VAR_6;", "if (VAR_3 < VAR_0->width * VAR_0->height * 9L / 8) {", "av_log(VAR_0, AV_LOG_ERROR, \"packet too small\\n\");", "return AVERROR_INVA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 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, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
20,337
static void dnxhd_decode_dct_block(DNXHDContext *ctx, DCTELEM *block, int n, int qscale) { int i, j, index, index2; int level, component, sign; const uint8_t *weigth_matrix; if (n&2) { component = 1 + (n&1); weigth_matrix = ctx->cid_table->chroma_weigth; } else { c...
false
FFmpeg
a417d041f03d725b0e159136e063538f0cee786a
static void dnxhd_decode_dct_block(DNXHDContext *ctx, DCTELEM *block, int n, int qscale) { int i, j, index, index2; int level, component, sign; const uint8_t *weigth_matrix; if (n&2) { component = 1 + (n&1); weigth_matrix = ctx->cid_table->chroma_weigth; } else { c...
{ "code": [], "line_no": [] }
static void FUNC_0(DNXHDContext *VAR_0, DCTELEM *VAR_1, int VAR_2, int VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8, VAR_9, VAR_10; const uint8_t *VAR_11; if (VAR_2&2) { VAR_9 = 1 + (VAR_2&1); VAR_11 = VAR_0->cid_table->chroma_weigth; } else { VAR_9 = 0; ...
[ "static void FUNC_0(DNXHDContext *VAR_0, DCTELEM *VAR_1, int VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8, VAR_9, VAR_10;", "const uint8_t *VAR_11;", "if (VAR_2&2) {", "VAR_9 = 1 + (VAR_2&1);", "VAR_11 = VAR_0->cid_table->chroma_weigth;", "} else {", "VAR_9 = 0;", "VAR_11 =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ...
20,339
const char *avutil_configuration(void) { return FFMPEG_CONFIGURATION; }
false
FFmpeg
29ba091136a5e04574f7bfc1b17536c923958f6f
const char *avutil_configuration(void) { return FFMPEG_CONFIGURATION; }
{ "code": [], "line_no": [] }
const char *FUNC_0(void) { return FFMPEG_CONFIGURATION; }
[ "const char *FUNC_0(void)\n{", "return FFMPEG_CONFIGURATION;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
20,340
static void i8042_class_initfn(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = i8042_realizefn; dc->no_user = 1; dc->vmsd = &vmstate_kbd_isa; }
true
qemu
efec3dd631d94160288392721a5f9c39e50fb2bc
static void i8042_class_initfn(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = i8042_realizefn; dc->no_user = 1; dc->vmsd = &vmstate_kbd_isa; }
{ "code": [ " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;", " dc->no_user = 1;"...
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->realize = i8042_realizefn; dc->no_user = 1; dc->vmsd = &vmstate_kbd_isa; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->realize = i8042_realizefn;", "dc->no_user = 1;", "dc->vmsd = &vmstate_kbd_isa;", "}" ]
[ 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
20,341
int vp78_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt, int is_vp7) { VP8Context *s = avctx->priv_data; int ret, i, referenced, num_jobs; enum AVDiscard skip_thresh; VP8Frame *av_uninit(curframe), *prev_frame; if (is_vp7) ret ...
true
FFmpeg
fed92adbb3fc6cbf735e3df9a2f7d0a2917fcfbd
int vp78_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt, int is_vp7) { VP8Context *s = avctx->priv_data; int ret, i, referenced, num_jobs; enum AVDiscard skip_thresh; VP8Frame *av_uninit(curframe), *prev_frame; if (is_vp7) ret ...
{ "code": [ " s->mv_min.y = -MARGIN;", " s->mv_max.y = ((s->mb_height - 1) << 6) + MARGIN;" ], "line_no": [ 247, 249 ] }
int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3, int VAR_4) { VP8Context *s = VAR_0->priv_data; int VAR_5, VAR_6, VAR_7, VAR_8; enum AVDiscard VAR_9; VP8Frame *av_uninit(curframe), *prev_frame; if (VAR_4) VAR_5 = vp7_decode_frame_hea...
[ "int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3, int VAR_4)\n{", "VP8Context *s = VAR_0->priv_data;", "int VAR_5, VAR_6, VAR_7, VAR_8;", "enum AVDiscard VAR_9;", "VP8Frame *av_uninit(curframe), *prev_frame;", "if (VAR_4)\nVAR_5 = vp7_decode_frame_header(s, VAR_3->VAR_1, VAR_3-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21, 23 ], [ 27, 29 ], [ 33 ], [ 37, 39 ], [ 43, 45, 47 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [...
20,342
void ff_bink_idct_put_c(uint8_t *dest, int linesize, DCTELEM *block) { int i; DCTELEM temp[64]; for (i = 0; i < 8; i++) bink_idct_col(&temp[i], &block[i]); for (i = 0; i < 8; i++) { IDCT_ROW( (&dest[i*linesize]), (&temp[8*i]) ); } }
true
FFmpeg
e211e255aa399d68239ffa42c9cc7a52eb3d55a9
void ff_bink_idct_put_c(uint8_t *dest, int linesize, DCTELEM *block) { int i; DCTELEM temp[64]; for (i = 0; i < 8; i++) bink_idct_col(&temp[i], &block[i]); for (i = 0; i < 8; i++) { IDCT_ROW( (&dest[i*linesize]), (&temp[8*i]) ); } }
{ "code": [ " DCTELEM temp[64];", " DCTELEM temp[64];" ], "line_no": [ 7, 7 ] }
void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2) { int VAR_3; DCTELEM temp[64]; for (VAR_3 = 0; VAR_3 < 8; VAR_3++) bink_idct_col(&temp[VAR_3], &VAR_2[VAR_3]); for (VAR_3 = 0; VAR_3 < 8; VAR_3++) { IDCT_ROW( (&VAR_0[VAR_3*VAR_1]), (&temp[8*VAR_3]) ); } }
[ "void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2)\n{", "int VAR_3;", "DCTELEM temp[64];", "for (VAR_3 = 0; VAR_3 < 8; VAR_3++)", "bink_idct_col(&temp[VAR_3], &VAR_2[VAR_3]);", "for (VAR_3 = 0; VAR_3 < 8; VAR_3++) {", "IDCT_ROW( (&VAR_0[VAR_3*VAR_1]), (&temp[8*VAR_3]) );", "}", "}" ]
[ 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
20,343
static void qemu_rdma_signal_unregister(RDMAContext *rdma, uint64_t index, uint64_t chunk, uint64_t wr_id) { if (rdma->unregistrations[rdma->unregister_next] != 0) { fprintf(stderr, "rdma migration: queue is full!\n"); } else { RDMALocalBlock *block ...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static void qemu_rdma_signal_unregister(RDMAContext *rdma, uint64_t index, uint64_t chunk, uint64_t wr_id) { if (rdma->unregistrations[rdma->unregister_next] != 0) { fprintf(stderr, "rdma migration: queue is full!\n"); } else { RDMALocalBlock *block ...
{ "code": [], "line_no": [] }
static void FUNC_0(RDMAContext *VAR_0, uint64_t VAR_1, uint64_t VAR_2, uint64_t VAR_3) { if (VAR_0->unregistrations[VAR_0->unregister_next] != 0) { fprintf(stderr, "VAR_0 migration: queue is full!\n"); } else { RDMALocalBlock *block = &(VAR_0->local_...
[ "static void FUNC_0(RDMAContext *VAR_0, uint64_t VAR_1,\nuint64_t VAR_2, uint64_t VAR_3)\n{", "if (VAR_0->unregistrations[VAR_0->unregister_next] != 0) {", "fprintf(stderr, \"VAR_0 migration: queue is full!\\n\");", "} else {", "RDMALocalBlock *block = &(VAR_0->local_ram_blocks.block[VAR_1]);", "if (!test...
[ 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 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ] ]
20,344
static void v9fs_unlinkat(void *opaque) { int err = 0; V9fsString name; int32_t dfid, flags; size_t offset = 7; V9fsPath path; V9fsFidState *dfidp; V9fsPDU *pdu = opaque; v9fs_string_init(&name); err = pdu_unmarshal(pdu, offset, "dsd", &dfid, &name, &flags); if (err < 0) { df...
true
qemu
fff39a7ad09da07ef490de05c92c91f22f8002f2
static void v9fs_unlinkat(void *opaque) { int err = 0; V9fsString name; int32_t dfid, flags; size_t offset = 7; V9fsPath path; V9fsFidState *dfidp; V9fsPDU *pdu = opaque; v9fs_string_init(&name); err = pdu_unmarshal(pdu, offset, "dsd", &dfid, &name, &flags); if (err < 0) { df...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { int VAR_1 = 0; V9fsString name; int32_t dfid, flags; size_t offset = 7; V9fsPath path; V9fsFidState *dfidp; V9fsPDU *pdu = VAR_0; v9fs_string_init(&name); VAR_1 = pdu_unmarshal(pdu, offset, "dsd", &dfid, &name, &flags); if (VAR_1 < 0) { dfidp...
[ "static void FUNC_0(void *VAR_0)\n{", "int VAR_1 = 0;", "V9fsString name;", "int32_t dfid, flags;", "size_t offset = 7;", "V9fsPath path;", "V9fsFidState *dfidp;", "V9fsPDU *pdu = VAR_0;", "v9fs_string_init(&name);", "VAR_1 = pdu_unmarshal(pdu, offset, \"dsd\", &dfid, &name, &flags);", "if (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 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 20 ], [ 21 ], [ 22 ], [ 23 ], [ 24 ], [ 25 ],...
20,346
static int parse_pci_devfn(DeviceState *dev, Property *prop, const char *str) { uint32_t *ptr = qdev_get_prop_ptr(dev, prop); unsigned int slot, fn, n; if (sscanf(str, "%x.%x%n", &slot, &fn, &n) != 2) { fn = 0; if (sscanf(str, "%x%n", &slot, &n) != 1) { return -EINVAL; ...
true
qemu
768a9ebe188bd0a6172a9a4e64777d21fff7f014
static int parse_pci_devfn(DeviceState *dev, Property *prop, const char *str) { uint32_t *ptr = qdev_get_prop_ptr(dev, prop); unsigned int slot, fn, n; if (sscanf(str, "%x.%x%n", &slot, &fn, &n) != 2) { fn = 0; if (sscanf(str, "%x%n", &slot, &n) != 1) { return -EINVAL; ...
{ "code": [ "static int parse_pci_devfn(DeviceState *dev, Property *prop, const char *str)", " return -EINVAL;", " if (str[n] != '\\0')", " return -EINVAL;", " if (fn > 7)", " return -EINVAL;", " if (slot > 31)", " return -EINVAL;", " ret...
static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2) { uint32_t *ptr = qdev_get_prop_ptr(VAR_0, VAR_1); unsigned int VAR_3, VAR_4, VAR_5; if (sscanf(VAR_2, "%x.%x%VAR_5", &VAR_3, &VAR_4, &VAR_5) != 2) { VAR_4 = 0; if (sscanf(VAR_2, "%x%VAR_5", &VAR_3, &VAR_5) != ...
[ "static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)\n{", "uint32_t *ptr = qdev_get_prop_ptr(VAR_0, VAR_1);", "unsigned int VAR_3, VAR_4, VAR_5;", "if (sscanf(VAR_2, \"%x.%x%VAR_5\", &VAR_3, &VAR_4, &VAR_5) != 2) {", "VAR_4 = 0;", "if (sscanf(VAR_2, \"%x%VAR_5\", &VAR_3, &VAR_5) != 1...
[ 1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ] ]
20,347
static int nsv_read_header(AVFormatContext *s) { NSVContext *nsv = s->priv_data; int i, err; av_dlog(s, "%s()\n", __FUNCTION__); av_dlog(s, "filename '%s'\n", s->filename); nsv->state = NSV_UNSYNC; nsv->ahead[0].data = nsv->ahead[1].data = NULL; for (i = 0; i < NSV_MAX_RESYNC_T...
true
FFmpeg
c898431ca5ef2a997fe9388b650f658fb60783e5
static int nsv_read_header(AVFormatContext *s) { NSVContext *nsv = s->priv_data; int i, err; av_dlog(s, "%s()\n", __FUNCTION__); av_dlog(s, "filename '%s'\n", s->filename); nsv->state = NSV_UNSYNC; nsv->ahead[0].data = nsv->ahead[1].data = NULL; for (i = 0; i < NSV_MAX_RESYNC_T...
{ "code": [ " if (nsv->state == NSV_FOUND_NSVF)" ], "line_no": [ 29 ] }
static int FUNC_0(AVFormatContext *VAR_0) { NSVContext *nsv = VAR_0->priv_data; int VAR_1, VAR_2; av_dlog(VAR_0, "%VAR_0()\n", __FUNCTION__); av_dlog(VAR_0, "filename '%VAR_0'\n", VAR_0->filename); nsv->state = NSV_UNSYNC; nsv->ahead[0].data = nsv->ahead[1].data = NULL; for (VA...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "NSVContext *nsv = VAR_0->priv_data;", "int VAR_1, VAR_2;", "av_dlog(VAR_0, \"%VAR_0()\\n\", __FUNCTION__);", "av_dlog(VAR_0, \"filename '%VAR_0'\\n\", VAR_0->filename);", "nsv->state = NSV_UNSYNC;", "nsv->ahead[0].data = nsv->ahead[1].data = NULL;", "fo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 51 ], [ 55 ], ...
20,348
static void cd_read_sector_cb(void *opaque, int ret) { IDEState *s = opaque; block_acct_done(blk_get_stats(s->blk), &s->acct); #ifdef DEBUG_IDE_ATAPI printf("cd_read_sector_cb: lba=%d ret=%d\n", s->lba, ret); #endif if (ret < 0) { ide_atapi_io_error(s, ret); return; }...
true
qemu
36be0929f53260cb9b1e2720c7c22f6b5fb5910f
static void cd_read_sector_cb(void *opaque, int ret) { IDEState *s = opaque; block_acct_done(blk_get_stats(s->blk), &s->acct); #ifdef DEBUG_IDE_ATAPI printf("cd_read_sector_cb: lba=%d ret=%d\n", s->lba, ret); #endif if (ret < 0) { ide_atapi_io_error(s, ret); return; }...
{ "code": [ " block_acct_done(blk_get_stats(s->blk), &s->acct);" ], "line_no": [ 9 ] }
static void FUNC_0(void *VAR_0, int VAR_1) { IDEState *s = VAR_0; block_acct_done(blk_get_stats(s->blk), &s->acct); #ifdef DEBUG_IDE_ATAPI printf("FUNC_0: lba=%d VAR_1=%d\n", s->lba, VAR_1); #endif if (VAR_1 < 0) { ide_atapi_io_error(s, VAR_1); return; } if (s-...
[ "static void FUNC_0(void *VAR_0, int VAR_1)\n{", "IDEState *s = VAR_0;", "block_acct_done(blk_get_stats(s->blk), &s->acct);", "#ifdef DEBUG_IDE_ATAPI\nprintf(\"FUNC_0: lba=%d VAR_1=%d\\n\", s->lba, VAR_1);", "#endif\nif (VAR_1 < 0) {", "ide_atapi_io_error(s, VAR_1);", "return;", "}", "if (s->cd_sect...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 17, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ] ]
20,349
static void vnc_tls_handshake_done(QIOTask *task, gpointer user_data) { VncState *vs = user_data; Error *err = NULL; if (qio_task_propagate_error(task, &err)) { VNC_DEBUG("Handshake failed %s\n", error_get_pretty(err)); vnc_clien...
true
qemu
7364dbdabb7824d5bde1e341bb6d928282f01c83
static void vnc_tls_handshake_done(QIOTask *task, gpointer user_data) { VncState *vs = user_data; Error *err = NULL; if (qio_task_propagate_error(task, &err)) { VNC_DEBUG("Handshake failed %s\n", error_get_pretty(err)); vnc_clien...
{ "code": [ " VNC_DEBUG(\"Handshake failed %s\\n\",", " error_get_pretty(err));", " error_get_pretty(err));", " error_get_pretty(err));" ], "line_no": [ 15, 17, 17, 17 ] }
static void FUNC_0(QIOTask *VAR_0, gpointer VAR_1) { VncState *vs = VAR_1; Error *err = NULL; if (qio_task_propagate_error(VAR_0, &err)) { VNC_DEBUG("Handshake failed %s\n", error_get_pretty(err)); vnc_client_error(vs); ...
[ "static void FUNC_0(QIOTask *VAR_0,\ngpointer VAR_1)\n{", "VncState *vs = VAR_1;", "Error *err = NULL;", "if (qio_task_propagate_error(VAR_0, &err)) {", "VNC_DEBUG(\"Handshake failed %s\\n\",\nerror_get_pretty(err));", "vnc_client_error(vs);", "error_free(err);", "} else {", "vs->ioc_tag = qio_chann...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ] ]
20,350
static int get_best_header(FLACParseContext* fpc, const uint8_t **poutbuf, int *poutbuf_size) { FLACHeaderMarker *header = fpc->best_header; FLACHeaderMarker *child = header->best_child; if (!child) { *poutbuf_size = av_fifo_size(fpc->fifo_buf) - header->offset; ...
false
FFmpeg
08797c599df5371909f6924d732b654f8892cc91
static int get_best_header(FLACParseContext* fpc, const uint8_t **poutbuf, int *poutbuf_size) { FLACHeaderMarker *header = fpc->best_header; FLACHeaderMarker *child = header->best_child; if (!child) { *poutbuf_size = av_fifo_size(fpc->fifo_buf) - header->offset; ...
{ "code": [], "line_no": [] }
static int FUNC_0(FLACParseContext* VAR_0, const uint8_t **VAR_1, int *VAR_2) { FLACHeaderMarker *header = VAR_0->best_header; FLACHeaderMarker *child = header->best_child; if (!child) { *VAR_2 = av_fifo_size(VAR_0->fifo_buf) - header->offset; } else { ...
[ "static int FUNC_0(FLACParseContext* VAR_0, const uint8_t **VAR_1,\nint *VAR_2)\n{", "FLACHeaderMarker *header = VAR_0->best_header;", "FLACHeaderMarker *child = header->best_child;", "if (!child) {", "*VAR_2 = av_fifo_size(VAR_0->fifo_buf) - header->offset;", "} else {", "*VAR_2 = child->offset - head...
[ 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 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45, 47 ], [ 51 ], [ 57,...
20,351
static int decode_packet(int *got_frame, int cached) { int ret = 0; int decoded = pkt.size; *got_frame = 0; if (pkt.stream_index == video_stream_idx) { /* decode video frame */ ret = avcodec_decode_video2(video_dec_ctx, frame, got_frame, &pkt); if (ret < 0) { ...
false
FFmpeg
dd6c8575dbc8d3ff5dc2ffacb5028c253066ff78
static int decode_packet(int *got_frame, int cached) { int ret = 0; int decoded = pkt.size; *got_frame = 0; if (pkt.stream_index == video_stream_idx) { ret = avcodec_decode_video2(video_dec_ctx, frame, got_frame, &pkt); if (ret < 0) { fprintf(stderr, "Er...
{ "code": [], "line_no": [] }
static int FUNC_0(int *VAR_0, int VAR_1) { int VAR_2 = 0; int VAR_3 = pkt.size; *VAR_0 = 0; if (pkt.stream_index == video_stream_idx) { VAR_2 = avcodec_decode_video2(video_dec_ctx, frame, VAR_0, &pkt); if (VAR_2 < 0) { fprintf(stderr, "Error decoding vid...
[ "static int FUNC_0(int *VAR_0, int VAR_1)\n{", "int VAR_2 = 0;", "int VAR_3 = pkt.size;", "*VAR_0 = 0;", "if (pkt.stream_index == video_stream_idx) {", "VAR_2 = avcodec_decode_video2(video_dec_ctx, frame, VAR_0, &pkt);", "if (VAR_2 < 0) {", "fprintf(stderr, \"Error decoding video frame (%s)\\n\", av_e...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 37, 39, 41, 43, 45, 47, 49, 51 ], [ 53 ], [ 55 ], [ 59 ], [ 61...
20,353
void ff_avg_h264_qpel16_mc00_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avg_width16_msa(src, stride, dst, stride, 16); }
false
FFmpeg
0105ed551cb9610c62b6920a301125781e1161a0
void ff_avg_h264_qpel16_mc00_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avg_width16_msa(src, stride, dst, stride, 16); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avg_width16_msa(VAR_1, VAR_2, VAR_0, VAR_2, 16); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avg_width16_msa(VAR_1, VAR_2, VAR_0, VAR_2, 16);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
20,354
static inline int init_pfa_reindex_tabs(MDCT15Context *s) { int i, j; const int b_ptwo = s->ptwo_fft.nbits; /* Bits for the power of two FFTs */ const int l_ptwo = 1 << b_ptwo; /* Total length for the power of two FFTs */ const int inv_1 = l_ptwo << ((4 - b_ptwo) & 3); /* (2^b_ptwo)^-1 mod 15 */ ...
false
FFmpeg
38d7cc22f7782de2e7aca8eda2c2c2996f7f5700
static inline int init_pfa_reindex_tabs(MDCT15Context *s) { int i, j; const int b_ptwo = s->ptwo_fft.nbits; const int l_ptwo = 1 << b_ptwo; const int inv_1 = l_ptwo << ((4 - b_ptwo) & 3); const int inv_2 = 0xeeeeeeef & ((1U << b_ptwo) - 1); s->pfa_prereindex = av_malloc(15 * l_ptwo ...
{ "code": [], "line_no": [] }
static inline int FUNC_0(MDCT15Context *VAR_0) { int VAR_1, VAR_2; const int VAR_3 = VAR_0->ptwo_fft.nbits; const int VAR_4 = 1 << VAR_3; const int VAR_5 = VAR_4 << ((4 - VAR_3) & 3); const int VAR_6 = 0xeeeeeeef & ((1U << VAR_3) - 1); VAR_0->pfa_prereindex = av_malloc(15 * VAR_4 * ...
[ "static inline int FUNC_0(MDCT15Context *VAR_0)\n{", "int VAR_1, VAR_2;", "const int VAR_3 = VAR_0->ptwo_fft.nbits;", "const int VAR_4 = 1 << VAR_3;", "const int VAR_5 = VAR_4 << ((4 - VAR_3) & 3);", "const int VAR_6 = 0xeeeeeeef & ((1U << VAR_3) - 1);", "VAR_0->pfa_prereindex = av_malloc(15 * VAR_4 * s...
[ 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 ], [ 25 ], [ 27, 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
20,355
static void mxf_write_identification(AVFormatContext *s) { MXFContext *mxf = s->priv_data; AVIOContext *pb = s->pb; const char *company = "Libav"; const char *product = "OP1a Muxer"; const char *version; int length; mxf_write_metadata_key(pb, 0x013000); PRINT_KEY(s, "identific...
false
FFmpeg
0c1959b056f6ccaa2eee2c824352ba93c8e36d52
static void mxf_write_identification(AVFormatContext *s) { MXFContext *mxf = s->priv_data; AVIOContext *pb = s->pb; const char *company = "Libav"; const char *product = "OP1a Muxer"; const char *version; int length; mxf_write_metadata_key(pb, 0x013000); PRINT_KEY(s, "identific...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0) { MXFContext *mxf = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; const char *VAR_1 = "Libav"; const char *VAR_2 = "OP1a Muxer"; const char *VAR_3; int VAR_4; mxf_write_metadata_key(pb, 0x013000); PRINT_KEY(VAR_0, "identification key...
[ "static void FUNC_0(AVFormatContext *VAR_0)\n{", "MXFContext *mxf = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "const char *VAR_1 = \"Libav\";", "const char *VAR_2 = \"OP1a Muxer\";", "const char *VAR_3;", "int VAR_4;", "mxf_write_metadata_key(pb, 0x013000);", "PRINT_KEY(VAR_0, \"identifica...
[ 0, 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 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [...
20,356
static void test_visitor_out_native_list_uint32(TestOutputVisitorData *data, const void *unused) { test_native_list(data, unused, USER_DEF_NATIVE_LIST_UNION_KIND_U32); }
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void test_visitor_out_native_list_uint32(TestOutputVisitorData *data, const void *unused) { test_native_list(data, unused, USER_DEF_NATIVE_LIST_UNION_KIND_U32); }
{ "code": [], "line_no": [] }
static void FUNC_0(TestOutputVisitorData *VAR_0, const void *VAR_1) { test_native_list(VAR_0, VAR_1, USER_DEF_NATIVE_LIST_UNION_KIND_U32); }
[ "static void FUNC_0(TestOutputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "test_native_list(VAR_0, VAR_1, USER_DEF_NATIVE_LIST_UNION_KIND_U32);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
20,357
static void ahci_test_identify(AHCIQState *ahci) { RegD2HFIS *d2h = g_malloc0(0x20); RegD2HFIS *pio = g_malloc0(0x20); RegH2DFIS fis; AHCICommandHeader cmd; PRD prd; uint32_t reg, data_ptr; uint16_t buff[256]; unsigned i; int rc; uint8_t cx; uint64_t table; ...
false
qemu
85c34e9395a97e49def6697537417ead2077c096
static void ahci_test_identify(AHCIQState *ahci) { RegD2HFIS *d2h = g_malloc0(0x20); RegD2HFIS *pio = g_malloc0(0x20); RegH2DFIS fis; AHCICommandHeader cmd; PRD prd; uint32_t reg, data_ptr; uint16_t buff[256]; unsigned i; int rc; uint8_t cx; uint64_t table; ...
{ "code": [], "line_no": [] }
static void FUNC_0(AHCIQState *VAR_0) { RegD2HFIS *d2h = g_malloc0(0x20); RegD2HFIS *pio = g_malloc0(0x20); RegH2DFIS fis; AHCICommandHeader cmd; PRD prd; uint32_t reg, data_ptr; uint16_t buff[256]; unsigned VAR_1; int VAR_2; uint8_t cx; uint64_t table; g_a...
[ "static void FUNC_0(AHCIQState *VAR_0)\n{", "RegD2HFIS *d2h = g_malloc0(0x20);", "RegD2HFIS *pio = g_malloc0(0x20);", "RegH2DFIS fis;", "AHCICommandHeader cmd;", "PRD prd;", "uint32_t reg, data_ptr;", "uint16_t buff[256];", "unsigned VAR_1;", "int VAR_2;", "uint8_t cx;", "uint64_t table;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 63 ], [ 65 ], [ 71 ], [ 79 ], [ 81 ], [ 83 ], [ 89 ...
20,358
void opt_output_file(const char *filename) { AVStream *st; AVFormatContext *oc; int use_video, use_audio, nb_streams, input_has_video, input_has_audio; int codec_id; if (!strcmp(filename, "-")) filename = "pipe:"; oc = av_mallocz(sizeof(AVFormatContext)); if (!file_for...
false
FFmpeg
e30a28468794efdfa8fcadf54ef14ff39736166b
void opt_output_file(const char *filename) { AVStream *st; AVFormatContext *oc; int use_video, use_audio, nb_streams, input_has_video, input_has_audio; int codec_id; if (!strcmp(filename, "-")) filename = "pipe:"; oc = av_mallocz(sizeof(AVFormatContext)); if (!file_for...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0) { AVStream *st; AVFormatContext *oc; int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5; int VAR_6; if (!strcmp(VAR_0, "-")) VAR_0 = "pipe:"; oc = av_mallocz(sizeof(AVFormatContext)); if (!file_format) { file_format = guess_format(NULL, VAR_0...
[ "void FUNC_0(const char *VAR_0)\n{", "AVStream *st;", "AVFormatContext *oc;", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;", "int VAR_6;", "if (!strcmp(VAR_0, \"-\"))\nVAR_0 = \"pipe:\";", "oc = av_mallocz(sizeof(AVFormatContext));", "if (!file_format) {", "file_format = guess_format(NULL, VAR_0, NULL);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 37 ], [ 41, 43 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [...
20,359
int xen_hvm_init(void) { int i, rc; unsigned long ioreq_pfn; XenIOState *state; state = g_malloc0(sizeof (XenIOState)); state->xce_handle = xen_xc_evtchn_open(NULL, 0); if (state->xce_handle == XC_HANDLER_INITIAL_VALUE) { perror("xen: event channel open"); return -er...
false
qemu
cd1ba7de230b3a85fb4dba53bb681b7ea626b4eb
int xen_hvm_init(void) { int i, rc; unsigned long ioreq_pfn; XenIOState *state; state = g_malloc0(sizeof (XenIOState)); state->xce_handle = xen_xc_evtchn_open(NULL, 0); if (state->xce_handle == XC_HANDLER_INITIAL_VALUE) { perror("xen: event channel open"); return -er...
{ "code": [], "line_no": [] }
int FUNC_0(void) { int VAR_0, VAR_1; unsigned long VAR_2; XenIOState *state; state = g_malloc0(sizeof (XenIOState)); state->xce_handle = xen_xc_evtchn_open(NULL, 0); if (state->xce_handle == XC_HANDLER_INITIAL_VALUE) { perror("xen: event channel open"); return -errno...
[ "int FUNC_0(void)\n{", "int VAR_0, VAR_1;", "unsigned long VAR_2;", "XenIOState *state;", "state = g_malloc0(sizeof (XenIOState));", "state->xce_handle = xen_xc_evtchn_open(NULL, 0);", "if (state->xce_handle == XC_HANDLER_INITIAL_VALUE) {", "perror(\"xen: event channel open\");", "return -errno;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 53 ...
20,360
static void nic_receive(void *opaque, const uint8_t * buf, size_t size) { /* TODO: * - Magic packets should set bit 30 in power management driver register. * - Interesting packets should set bit 29 in power management driver register. */ EEPRO100State *s = opaque; uint16_t rfd_status =...
false
qemu
e3f5ec2b5e92706e3b807059f79b1fb5d936e567
static void nic_receive(void *opaque, const uint8_t * buf, size_t size) { EEPRO100State *s = opaque; uint16_t rfd_status = 0xa000; static const uint8_t broadcast_macaddr[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; assert(!(s->configuration[20] & BIT(6))); if (s-...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, const uint8_t * VAR_1, size_t VAR_2) { EEPRO100State *s = VAR_0; uint16_t rfd_status = 0xa000; static const uint8_t VAR_3[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; assert(!(s->configuration[20] & BIT(6))); if (s->configuration[8...
[ "static void FUNC_0(void *VAR_0, const uint8_t * VAR_1, size_t VAR_2)\n{", "EEPRO100State *s = VAR_0;", "uint16_t rfd_status = 0xa000;", "static const uint8_t VAR_3[6] =\n{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };", "assert(!(s->configuration[20] & BIT(6)));", "if (s->configuration[8] & 0x80) {", "logout(\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 49 ], [ 55 ], [ 57 ], [ 59 ], [ 65 ], [ 67 ], [ 71 ], [ 73 ], ...
20,361
static inline void tcg_out_brcond(TCGContext *s, TCGCond cond, TCGReg arg1, TCGReg arg2, int label_index, int cmp4) { TCGLabel *l = &s->labels[label_index]; uint64_t imm; /* We pay attention here to not modify the branch target by reading the existing value a...
false
qemu
bec1631100323fac0900aea71043d5c4e22fc2fa
static inline void tcg_out_brcond(TCGContext *s, TCGCond cond, TCGReg arg1, TCGReg arg2, int label_index, int cmp4) { TCGLabel *l = &s->labels[label_index]; uint64_t imm; if (l->has_value) { imm = l->u.value_ptr - s->code_ptr; } else { ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGContext *VAR_0, TCGCond VAR_1, TCGReg VAR_2, TCGReg VAR_3, int VAR_4, int VAR_5) { TCGLabel *l = &VAR_0->labels[VAR_4]; uint64_t imm; if (l->has_value) { imm = l->u.value_ptr - VAR_0->code_ptr; } else { im...
[ "static inline void FUNC_0(TCGContext *VAR_0, TCGCond VAR_1, TCGReg VAR_2,\nTCGReg VAR_3, int VAR_4, int VAR_5)\n{", "TCGLabel *l = &VAR_0->labels[VAR_4];", "uint64_t imm;", "if (l->has_value) {", "imm = l->u.value_ptr - VAR_0->code_ptr;", "} else {", "imm = get_reloc_pcrel21b_slot2(VAR_0->code_ptr);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35, 37, 39 ], [ 41 ] ]
20,362
static int handle_buffered_iopage(XenIOState *state) { buffered_iopage_t *buf_page = state->buffered_io_page; buf_ioreq_t *buf_req = NULL; ioreq_t req; int qw; if (!buf_page) { return 0; } memset(&req, 0x00, sizeof(req)); for (;;) { uint32_t rdptr = buf_p...
false
qemu
f37f29d31488fe36354e59b2fdc4fae83b2cf763
static int handle_buffered_iopage(XenIOState *state) { buffered_iopage_t *buf_page = state->buffered_io_page; buf_ioreq_t *buf_req = NULL; ioreq_t req; int qw; if (!buf_page) { return 0; } memset(&req, 0x00, sizeof(req)); for (;;) { uint32_t rdptr = buf_p...
{ "code": [], "line_no": [] }
static int FUNC_0(XenIOState *VAR_0) { buffered_iopage_t *buf_page = VAR_0->buffered_io_page; buf_ioreq_t *buf_req = NULL; ioreq_t req; int VAR_1; if (!buf_page) { return 0; } memset(&req, 0x00, sizeof(req)); for (;;) { uint32_t rdptr = buf_page->read_poi...
[ "static int FUNC_0(XenIOState *VAR_0)\n{", "buffered_iopage_t *buf_page = VAR_0->buffered_io_page;", "buf_ioreq_t *buf_req = NULL;", "ioreq_t req;", "int VAR_1;", "if (!buf_page) {", "return 0;", "}", "memset(&req, 0x00, sizeof(req));", "for (;;) {", "uint32_t rdptr = buf_page->read_pointer, wrp...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
20,363
void virtio_bus_device_plugged(VirtIODevice *vdev, Error **errp) { DeviceState *qdev = DEVICE(vdev); BusState *qbus = BUS(qdev_get_parent_bus(qdev)); VirtioBusState *bus = VIRTIO_BUS(qbus); VirtioBusClass *klass = VIRTIO_BUS_GET_CLASS(bus); VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev...
false
qemu
d1b4259f1ab18af24e6a297edb6a8f71691f3256
void virtio_bus_device_plugged(VirtIODevice *vdev, Error **errp) { DeviceState *qdev = DEVICE(vdev); BusState *qbus = BUS(qdev_get_parent_bus(qdev)); VirtioBusState *bus = VIRTIO_BUS(qbus); VirtioBusClass *klass = VIRTIO_BUS_GET_CLASS(bus); VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev...
{ "code": [], "line_no": [] }
void FUNC_0(VirtIODevice *VAR_0, Error **VAR_1) { DeviceState *qdev = DEVICE(VAR_0); BusState *qbus = BUS(qdev_get_parent_bus(qdev)); VirtioBusState *bus = VIRTIO_BUS(qbus); VirtioBusClass *klass = VIRTIO_BUS_GET_CLASS(bus); VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(VAR_0); DPRIN...
[ "void FUNC_0(VirtIODevice *VAR_0, Error **VAR_1)\n{", "DeviceState *qdev = DEVICE(VAR_0);", "BusState *qbus = BUS(qdev_get_parent_bus(qdev));", "VirtioBusState *bus = VIRTIO_BUS(qbus);", "VirtioBusClass *klass = VIRTIO_BUS_GET_CLASS(bus);", "VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(VAR_0);", "DP...
[ 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 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
20,364
GSource *aio_get_g_source(AioContext *ctx) { g_source_ref(&ctx->source); return &ctx->source; }
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
GSource *aio_get_g_source(AioContext *ctx) { g_source_ref(&ctx->source); return &ctx->source; }
{ "code": [], "line_no": [] }
GSource *FUNC_0(AioContext *ctx) { g_source_ref(&ctx->source); return &ctx->source; }
[ "GSource *FUNC_0(AioContext *ctx)\n{", "g_source_ref(&ctx->source);", "return &ctx->source;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
20,369
static int decode_frame_mp3on4(AVCodecContext * avctx, void *data, int *data_size, const uint8_t * buf, int buf_size) { MP3On4DecodeContext *s = avctx->priv_data; MPADecodeContext *m; int len, out_size = 0; uint32_t header; OUT_INT *out_samples...
false
FFmpeg
5fd7a9fcdf472e957b0c2f453f13d7f33e07a4a5
static int decode_frame_mp3on4(AVCodecContext * avctx, void *data, int *data_size, const uint8_t * buf, int buf_size) { MP3On4DecodeContext *s = avctx->priv_data; MPADecodeContext *m; int len, out_size = 0; uint32_t header; OUT_INT *out_samples...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1, int *VAR_2, const uint8_t * VAR_3, int VAR_4) { MP3On4DecodeContext *s = VAR_0->priv_data; MPADecodeContext *m; int VAR_5, VAR_6 = 0; uint32_t header; OUT_INT *out_samples = VAR_1; OUT...
[ "static int FUNC_0(AVCodecContext * VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t * VAR_3, int VAR_4)\n{", "MP3On4DecodeContext *s = VAR_0->priv_data;", "MPADecodeContext *m;", "int VAR_5, VAR_6 = 0;", "uint32_t header;", "OUT_INT *out_samples = VAR_1;", "OUT_INT decoded_buf[MPA_FRAME_SIZE * MPA_MAX_C...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 37, 39 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...