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
5,698
static QDict *do_info_vnc_client(Monitor *mon, VncState *client) { QDict *qdict; qdict = qdict_new(); if (vnc_qdict_remote_addr(qdict, client->csock) < 0) { QDECREF(qdict); return NULL; } #ifdef CONFIG_VNC_TLS if (client->tls.session && client->tls.dname) { ...
false
qemu
4a80dba3920cf8e0829b9ce4769842ce94748bf4
static QDict *do_info_vnc_client(Monitor *mon, VncState *client) { QDict *qdict; qdict = qdict_new(); if (vnc_qdict_remote_addr(qdict, client->csock) < 0) { QDECREF(qdict); return NULL; } #ifdef CONFIG_VNC_TLS if (client->tls.session && client->tls.dname) { ...
{ "code": [], "line_no": [] }
static QDict *FUNC_0(Monitor *mon, VncState *client) { QDict *qdict; qdict = qdict_new(); if (vnc_qdict_remote_addr(qdict, client->csock) < 0) { QDECREF(qdict); return NULL; } #ifdef CONFIG_VNC_TLS if (client->tls.session && client->tls.dname) { qdict_p...
[ "static QDict *FUNC_0(Monitor *mon, VncState *client)\n{", "QDict *qdict;", "qdict = qdict_new();", "if (vnc_qdict_remote_addr(qdict, client->csock) < 0) {", "QDECREF(qdict);", "return NULL;", "}", "#ifdef CONFIG_VNC_TLS\nif (client->tls.session &&\nclient->tls.dname) {", "qdict_put(qdict, \"x509_dn...
[ 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 ], [ 29 ], [ 31, 33, 35, 37 ], [ 39, 41 ], [ 43 ], [ 45, 49 ], [ 51 ] ]
5,699
static av_cold int vp3_decode_init(AVCodecContext *avctx) { Vp3DecodeContext *s = avctx->priv_data; int i, inter, plane; int c_width; int c_height; int y_fragment_count, c_fragment_count; if (avctx->codec_tag == MKTAG('V','P','3','0')) s->version = 0; else s->vers...
false
FFmpeg
28f9ab7029bd1a02f659995919f899f84ee7361b
static av_cold int vp3_decode_init(AVCodecContext *avctx) { Vp3DecodeContext *s = avctx->priv_data; int i, inter, plane; int c_width; int c_height; int y_fragment_count, c_fragment_count; if (avctx->codec_tag == MKTAG('V','P','3','0')) s->version = 0; else s->vers...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { Vp3DecodeContext *s = avctx->priv_data; int VAR_0, VAR_1, VAR_2; int VAR_3; int VAR_4; int VAR_5, VAR_6; if (avctx->codec_tag == MKTAG('V','P','3','0')) s->version = 0; else s->version = 1; s->avctx = avctx...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "Vp3DecodeContext *s = avctx->priv_data;", "int VAR_0, VAR_1, VAR_2;", "int VAR_3;", "int VAR_4;", "int VAR_5, VAR_6;", "if (avctx->codec_tag == MKTAG('V','P','3','0'))\ns->version = 0;", "else\ns->version = 1;", "s->avctx = avctx;", "s->width...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 47 ], [ 55 ], [ 57 ...
5,700
static void nvdimm_build_fit(Aml *dev) { Aml *method, *pkg, *buf, *buf_size, *offset, *call_result; Aml *whilectx, *ifcond, *ifctx, *elsectx, *fit; buf = aml_local(0); buf_size = aml_local(1); fit = aml_local(2); aml_append(dev, aml_create_dword_field(aml_buffer(4, NULL), ...
false
qemu
aef056c11d082fcde44c5cbd3f91548738c220a8
static void nvdimm_build_fit(Aml *dev) { Aml *method, *pkg, *buf, *buf_size, *offset, *call_result; Aml *whilectx, *ifcond, *ifctx, *elsectx, *fit; buf = aml_local(0); buf_size = aml_local(1); fit = aml_local(2); aml_append(dev, aml_create_dword_field(aml_buffer(4, NULL), ...
{ "code": [], "line_no": [] }
static void FUNC_0(Aml *VAR_0) { Aml *method, *pkg, *buf, *buf_size, *offset, *call_result; Aml *whilectx, *ifcond, *ifctx, *elsectx, *fit; buf = aml_local(0); buf_size = aml_local(1); fit = aml_local(2); aml_append(VAR_0, aml_create_dword_field(aml_buffer(4, NULL), am...
[ "static void FUNC_0(Aml *VAR_0)\n{", "Aml *method, *pkg, *buf, *buf_size, *offset, *call_result;", "Aml *whilectx, *ifcond, *ifctx, *elsectx, *fit;", "buf = aml_local(0);", "buf_size = aml_local(1);", "fit = aml_local(2);", "aml_append(VAR_0, aml_create_dword_field(aml_buffer(4, NULL),\naml_int(0), NVDI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19, 21 ], [ 27 ], [ 29, 31 ], [ 37 ], [ 39 ], [ 41 ], [ 47, 49, 51, 53, 55 ], [ 57 ], [ 63, 65 ], [ 69, 71...
5,701
PXA2xxLCDState *pxa2xx_lcdc_init(MemoryRegion *sysmem, hwaddr base, qemu_irq irq) { PXA2xxLCDState *s; DisplaySurface *surface; s = (PXA2xxLCDState *) g_malloc0(sizeof(PXA2xxLCDState)); s->invalidated = 1; s->irq = irq; s->sysmem = sysmem; pxa2xx...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
PXA2xxLCDState *pxa2xx_lcdc_init(MemoryRegion *sysmem, hwaddr base, qemu_irq irq) { PXA2xxLCDState *s; DisplaySurface *surface; s = (PXA2xxLCDState *) g_malloc0(sizeof(PXA2xxLCDState)); s->invalidated = 1; s->irq = irq; s->sysmem = sysmem; pxa2xx...
{ "code": [], "line_no": [] }
PXA2xxLCDState *FUNC_0(MemoryRegion *sysmem, hwaddr base, qemu_irq irq) { PXA2xxLCDState *s; DisplaySurface *surface; s = (PXA2xxLCDState *) g_malloc0(sizeof(PXA2xxLCDState)); s->invalidated = 1; s->irq = irq; s->sysmem = sysmem; pxa2xx_lcdc_orie...
[ "PXA2xxLCDState *FUNC_0(MemoryRegion *sysmem,\nhwaddr base, qemu_irq irq)\n{", "PXA2xxLCDState *s;", "DisplaySurface *surface;", "s = (PXA2xxLCDState *) g_malloc0(sizeof(PXA2xxLCDState));", "s->invalidated = 1;", "s->irq = irq;", "s->sysmem = sysmem;", "pxa2xx_lcdc_orientation(s, graphic_rotate);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 55 ...
5,702
static unsigned int dec_movem_mr(DisasContext *dc) { TCGv tmp[16]; TCGv addr; int i; int nr = dc->op2 + 1; DIS(fprintf (logfile, "movem [$r%u%s, $r%u\n", dc->op1, dc->postinc ? "+]" : "]", dc->op2)); addr = tcg_temp_new(TCG_TYPE_TL); /* There are probably better ways of doing this. */ cris_...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static unsigned int dec_movem_mr(DisasContext *dc) { TCGv tmp[16]; TCGv addr; int i; int nr = dc->op2 + 1; DIS(fprintf (logfile, "movem [$r%u%s, $r%u\n", dc->op1, dc->postinc ? "+]" : "]", dc->op2)); addr = tcg_temp_new(TCG_TYPE_TL); cris_flush_cc_state(dc); for (i = 0; i < (nr >> 1); i++...
{ "code": [], "line_no": [] }
static unsigned int FUNC_0(DisasContext *VAR_0) { TCGv tmp[16]; TCGv addr; int VAR_1; int VAR_2 = VAR_0->op2 + 1; DIS(fprintf (logfile, "movem [$r%u%s, $r%u\n", VAR_0->op1, VAR_0->postinc ? "+]" : "]", VAR_0->op2)); addr = tcg_temp_new(TCG_TYPE_TL); cris_flush_cc_state(VAR_0); for (VAR_1 ...
[ "static unsigned int FUNC_0(DisasContext *VAR_0)\n{", "TCGv tmp[16];", "TCGv addr;", "int VAR_1;", "int VAR_2 = VAR_0->op2 + 1;", "DIS(fprintf (logfile, \"movem [$r%u%s, $r%u\\n\", VAR_0->op1,\nVAR_0->postinc ? \"+]\" : \"]\", VAR_0->op2));", "addr = tcg_temp_new(TCG_TYPE_TL);", "cris_flush_cc_state(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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
5,703
static int xen_pt_msgdata_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint16_t *val, uint16_t dev_value, uint16_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; XenPTMSI *msi = s->msi; uint16_t writable_mask = 0; ...
false
qemu
e2779de053b64f023de382fd87b3596613d47d1e
static int xen_pt_msgdata_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint16_t *val, uint16_t dev_value, uint16_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; XenPTMSI *msi = s->msi; uint16_t writable_mask = 0; ...
{ "code": [], "line_no": [] }
static int FUNC_0(XenPCIPassthroughState *VAR_0, XenPTReg *VAR_1, uint16_t *VAR_2, uint16_t VAR_3, uint16_t VAR_4) { XenPTRegInfo *reg = VAR_1->reg; XenPTMSI *msi = VAR_0->msi; uint16_t writable_mask = 0; uint16_t old_data = ...
[ "static int FUNC_0(XenPCIPassthroughState *VAR_0,\nXenPTReg *VAR_1, uint16_t *VAR_2,\nuint16_t VAR_3, uint16_t VAR_4)\n{", "XenPTRegInfo *reg = VAR_1->reg;", "XenPTMSI *msi = VAR_0->msi;", "uint16_t writable_mask = 0;", "uint16_t old_data = VAR_1->data;", "uint32_t offset = reg->offset;", "if (!xen_pt_m...
[ 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 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 43 ], [ 49 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ...
5,704
void HELPER(cdsg)(CPUS390XState *env, uint64_t addr, uint32_t r1, uint32_t r3) { uintptr_t ra = GETPC(); Int128 cmpv = int128_make128(env->regs[r1 + 1], env->regs[r1]); Int128 newv = int128_make128(env->regs[r3 + 1], env->regs[r3]); Int128 oldv; bool fail; if (paralle...
false
qemu
6476615d385eb249105b25873ef30ba4b9c808dc
void HELPER(cdsg)(CPUS390XState *env, uint64_t addr, uint32_t r1, uint32_t r3) { uintptr_t ra = GETPC(); Int128 cmpv = int128_make128(env->regs[r1 + 1], env->regs[r1]); Int128 newv = int128_make128(env->regs[r3 + 1], env->regs[r3]); Int128 oldv; bool fail; if (paralle...
{ "code": [], "line_no": [] }
void FUNC_0(cdsg)(CPUS390XState *env, uint64_t addr, uint32_t r1, uint32_t r3) { uintptr_t ra = GETPC(); Int128 cmpv = int128_make128(env->regs[r1 + 1], env->regs[r1]); Int128 newv = int128_make128(env->regs[r3 + 1], env->regs[r3]); Int128 oldv; bool fail; if (paralle...
[ "void FUNC_0(cdsg)(CPUS390XState *env, uint64_t addr,\nuint32_t r1, uint32_t r3)\n{", "uintptr_t ra = GETPC();", "Int128 cmpv = int128_make128(env->regs[r1 + 1], env->regs[r1]);", "Int128 newv = int128_make128(env->regs[r3 + 1], env->regs[r3]);", "Int128 oldv;", "bool fail;", "if (parallel_cpus) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 53 ...
5,705
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; ret =...
false
qemu
b25b387fa5928e516cb2c9e7fde68e958bd7e50a
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; ret =...
{ "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; ...
[ "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;", "VAR_6 = bdrv_pread(VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
5,706
static XHCIEPContext *xhci_alloc_epctx(XHCIState *xhci, unsigned int slotid, unsigned int epid) { XHCIEPContext *epctx; int i; epctx = g_new0(XHCIEPContext, 1); epctx->xhci = xhci; epctx->slotid = slotid; ep...
false
qemu
94b037f2a451b3dc855f9f2c346e5049a361bd55
static XHCIEPContext *xhci_alloc_epctx(XHCIState *xhci, unsigned int slotid, unsigned int epid) { XHCIEPContext *epctx; int i; epctx = g_new0(XHCIEPContext, 1); epctx->xhci = xhci; epctx->slotid = slotid; ep...
{ "code": [], "line_no": [] }
static XHCIEPContext *FUNC_0(XHCIState *xhci, unsigned int slotid, unsigned int epid) { XHCIEPContext *epctx; int VAR_0; epctx = g_new0(XHCIEPContext, 1); epctx->xhci = xhci; epctx->slotid = slotid; epctx->e...
[ "static XHCIEPContext *FUNC_0(XHCIState *xhci,\nunsigned int slotid,\nunsigned int epid)\n{", "XHCIEPContext *epctx;", "int VAR_0;", "epctx = g_new0(XHCIEPContext, 1);", "epctx->xhci = xhci;", "epctx->slotid = slotid;", "epctx->epid = epid;", "for (VAR_0 = 0; VAR_0 < ARRAY_SIZE(epctx->transfers); VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ] ]
5,708
static uint16_t phys_map_node_alloc(void) { unsigned i; uint16_t ret; ret = next_map.nodes_nb++; assert(ret != PHYS_MAP_NODE_NIL); assert(ret != next_map.nodes_nb_alloc); for (i = 0; i < L2_SIZE; ++i) { next_map.nodes[ret][i].is_leaf = 0; next_map.nodes[ret][i].ptr = P...
false
qemu
03f4995781a64e106e6f73864a1e9c4163dac53b
static uint16_t phys_map_node_alloc(void) { unsigned i; uint16_t ret; ret = next_map.nodes_nb++; assert(ret != PHYS_MAP_NODE_NIL); assert(ret != next_map.nodes_nb_alloc); for (i = 0; i < L2_SIZE; ++i) { next_map.nodes[ret][i].is_leaf = 0; next_map.nodes[ret][i].ptr = P...
{ "code": [], "line_no": [] }
static uint16_t FUNC_0(void) { unsigned VAR_0; uint16_t ret; ret = next_map.nodes_nb++; assert(ret != PHYS_MAP_NODE_NIL); assert(ret != next_map.nodes_nb_alloc); for (VAR_0 = 0; VAR_0 < L2_SIZE; ++VAR_0) { next_map.nodes[ret][VAR_0].is_leaf = 0; next_map.nodes[ret][VAR...
[ "static uint16_t FUNC_0(void)\n{", "unsigned VAR_0;", "uint16_t ret;", "ret = next_map.nodes_nb++;", "assert(ret != PHYS_MAP_NODE_NIL);", "assert(ret != next_map.nodes_nb_alloc);", "for (VAR_0 = 0; VAR_0 < L2_SIZE; ++VAR_0) {", "next_map.nodes[ret][VAR_0].is_leaf = 0;", "next_map.nodes[ret][VAR_0].p...
[ 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 ] ]
5,709
bool qemu_peer_has_vnet_hdr_len(NetClientState *nc, int len) { if (!nc->peer || !nc->peer->info->has_vnet_hdr_len) { return false; } return nc->peer->info->has_vnet_hdr_len(nc->peer, len); }
false
qemu
d6085e3ace20bc9b0fa625d8d79b22668710e217
bool qemu_peer_has_vnet_hdr_len(NetClientState *nc, int len) { if (!nc->peer || !nc->peer->info->has_vnet_hdr_len) { return false; } return nc->peer->info->has_vnet_hdr_len(nc->peer, len); }
{ "code": [], "line_no": [] }
bool FUNC_0(NetClientState *nc, int len) { if (!nc->peer || !nc->peer->info->has_vnet_hdr_len) { return false; } return nc->peer->info->has_vnet_hdr_len(nc->peer, len); }
[ "bool FUNC_0(NetClientState *nc, int len)\n{", "if (!nc->peer || !nc->peer->info->has_vnet_hdr_len) {", "return false;", "}", "return nc->peer->info->has_vnet_hdr_len(nc->peer, len);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ] ]
5,710
static void avc_luma_midh_qrt_16w_msa(const uint8_t *src, int32_t src_stride, uint8_t *dst, int32_t dst_stride, int32_t height, uint8_t horiz_offset) { uint32_t multiple8_cnt; for (multiple8_cnt = 4; multiple8_cnt--;) { ...
false
FFmpeg
e549933a270dd2cfc36f2cf9bb6b29acf3dc6d08
static void avc_luma_midh_qrt_16w_msa(const uint8_t *src, int32_t src_stride, uint8_t *dst, int32_t dst_stride, int32_t height, uint8_t horiz_offset) { uint32_t multiple8_cnt; for (multiple8_cnt = 4; multiple8_cnt--;) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(const uint8_t *VAR_0, int32_t VAR_1, uint8_t *VAR_2, int32_t VAR_3, int32_t VAR_4, uint8_t VAR_5) { uint32_t multiple8_cnt; for (multiple8_cnt = 4; multiple8_cnt--;) { avc_luma_midh_qrt_4w_msa(VAR_0, V...
[ "static void FUNC_0(const uint8_t *VAR_0, int32_t VAR_1,\nuint8_t *VAR_2, int32_t VAR_3,\nint32_t VAR_4, uint8_t VAR_5)\n{", "uint32_t multiple8_cnt;", "for (multiple8_cnt = 4; multiple8_cnt--;) {", "avc_luma_midh_qrt_4w_msa(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4,\nVAR_5);", "VAR_0 += 4;", "VAR_2 += 4;", "}"...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
5,711
static void vc1_put_block(VC1Context *v, DCTELEM block[6][64]) { uint8_t *Y; int ys, us, vs; DSPContext *dsp = &v->s.dsp; if(v->rangeredfrm) { int i, j, k; for(k = 0; k < 6; k++) for(j = 0; j < 8; j++) for(i = 0; i < 8; i++) blo...
false
FFmpeg
713f490467e0d4b64e4d2e8f5ee98034235d2010
static void vc1_put_block(VC1Context *v, DCTELEM block[6][64]) { uint8_t *Y; int ys, us, vs; DSPContext *dsp = &v->s.dsp; if(v->rangeredfrm) { int i, j, k; for(k = 0; k < 6; k++) for(j = 0; j < 8; j++) for(i = 0; i < 8; i++) blo...
{ "code": [], "line_no": [] }
static void FUNC_0(VC1Context *VAR_0, DCTELEM VAR_1[6][64]) { uint8_t *Y; int VAR_2, VAR_3, VAR_4; DSPContext *dsp = &VAR_0->s.dsp; if(VAR_0->rangeredfrm) { int VAR_5, VAR_6, VAR_7; for(VAR_7 = 0; VAR_7 < 6; VAR_7++) for(VAR_6 = 0; VAR_6 < 8; VAR_6++) ...
[ "static void FUNC_0(VC1Context *VAR_0, DCTELEM VAR_1[6][64])\n{", "uint8_t *Y;", "int VAR_2, VAR_3, VAR_4;", "DSPContext *dsp = &VAR_0->s.dsp;", "if(VAR_0->rangeredfrm) {", "int VAR_5, VAR_6, VAR_7;", "for(VAR_7 = 0; VAR_7 < 6; VAR_7++)", "for(VAR_6 = 0; VAR_6 < 8; VAR_6++)", "for(VAR_5 = 0; VAR_5 <...
[ 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
5,712
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; H264Context *h = avctx->priv_data; MpegEncContext *s = &h->s; AVFrame *pict = ...
true
FFmpeg
0424e052f83adc422d8a746e3cdc5ab6bc28679e
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; H264Context *h = avctx->priv_data; MpegEncContext *s = &h->s; AVFrame *pict = ...
{ "code": [ " if(s->flags2 & CODEC_FLAG2_CHUNKS) decode_postinit(h);" ], "line_no": [ 121 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; H264Context *h = VAR_0->priv_data; MpegEncContext *s = &h->s; AVFrame *pict = VAR_1; ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "H264Context *h = VAR_0->priv_data;", "MpegEncContext *s = &h->s;", "AVFrame *pict = VAR_1;", "int VAR_6;", "s->flags= VAR_0->flags;", "s->fl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
5,714
void kvm_remove_all_breakpoints(CPUState *cpu) { struct kvm_sw_breakpoint *bp, *next; KVMState *s = cpu->kvm_state; QTAILQ_FOREACH_SAFE(bp, &s->kvm_sw_breakpoints, entry, next) { if (kvm_arch_remove_sw_breakpoint(cpu, bp) != 0) { /* Try harder to find a CPU that currently sees th...
true
qemu
dc54e2525389e903cee2b847cf761b5d857f75cb
void kvm_remove_all_breakpoints(CPUState *cpu) { struct kvm_sw_breakpoint *bp, *next; KVMState *s = cpu->kvm_state; QTAILQ_FOREACH_SAFE(bp, &s->kvm_sw_breakpoints, entry, next) { if (kvm_arch_remove_sw_breakpoint(cpu, bp) != 0) { CPU_FOREACH(cpu) { ...
{ "code": [ " CPU_FOREACH(cpu) {", " if (kvm_arch_remove_sw_breakpoint(cpu, bp) == 0) {" ], "line_no": [ 17, 19 ] }
void FUNC_0(CPUState *VAR_0) { struct kvm_sw_breakpoint *VAR_1, *VAR_2; KVMState *s = VAR_0->kvm_state; QTAILQ_FOREACH_SAFE(VAR_1, &s->kvm_sw_breakpoints, entry, VAR_2) { if (kvm_arch_remove_sw_breakpoint(VAR_0, VAR_1) != 0) { CPU_FOREACH(VAR_0) { i...
[ "void FUNC_0(CPUState *VAR_0)\n{", "struct kvm_sw_breakpoint *VAR_1, *VAR_2;", "KVMState *s = VAR_0->kvm_state;", "QTAILQ_FOREACH_SAFE(VAR_1, &s->kvm_sw_breakpoints, entry, VAR_2) {", "if (kvm_arch_remove_sw_breakpoint(VAR_0, VAR_1) != 0) {", "CPU_FOREACH(VAR_0) {", "if (kvm_arch_remove_sw_breakpoint(VA...
[ 0, 0, 0, 0, 0, 1, 1, 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 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
5,716
static unsigned int read_sbr_data(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, int id_aac) { unsigned int cnt = get_bits_count(gb); if (id_aac == TYPE_SCE || id_aac == TYPE_CCE) { read_sbr_single_channel_element(ac, sbr, gb); } else if (i...
true
FFmpeg
58b1cba0c9173741cf769117a735b429356d83c0
static unsigned int read_sbr_data(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, int id_aac) { unsigned int cnt = get_bits_count(gb); if (id_aac == TYPE_SCE || id_aac == TYPE_CCE) { read_sbr_single_channel_element(ac, sbr, gb); } else if (i...
{ "code": [ " read_sbr_single_channel_element(ac, sbr, gb);", " read_sbr_channel_pair_element(ac, sbr, gb);" ], "line_no": [ 13, 17 ] }
static unsigned int FUNC_0(AACContext *VAR_0, SpectralBandReplication *VAR_1, GetBitContext *VAR_2, int VAR_3) { unsigned int VAR_4 = get_bits_count(VAR_2); if (VAR_3 == TYPE_SCE || VAR_3 == TYPE_CCE) { read_sbr_single_channel_element(VAR_0, VAR_1, VAR_2); }...
[ "static unsigned int FUNC_0(AACContext *VAR_0, SpectralBandReplication *VAR_1,\nGetBitContext *VAR_2, int VAR_3)\n{", "unsigned int VAR_4 = get_bits_count(VAR_2);", "if (VAR_3 == TYPE_SCE || VAR_3 == TYPE_CCE) {", "read_sbr_single_channel_element(VAR_0, VAR_1, VAR_2);", "} else if (VAR_3 == TYPE_CPE) {", ...
[ 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
5,717
ram_addr_t qemu_ram_alloc_from_ptr(ram_addr_t size, void *host, MemoryRegion *mr) { RAMBlock *new_block; size = TARGET_PAGE_ALIGN(size); new_block = g_malloc0(sizeof(*new_block)); new_block->mr = mr; new_block->offset = find_ram_offset(size); if (ho...
true
qemu
5fda043f9c8b8ab18da2704de8e77b7c86fa9435
ram_addr_t qemu_ram_alloc_from_ptr(ram_addr_t size, void *host, MemoryRegion *mr) { RAMBlock *new_block; size = TARGET_PAGE_ALIGN(size); new_block = g_malloc0(sizeof(*new_block)); new_block->mr = mr; new_block->offset = find_ram_offset(size); if (ho...
{ "code": [], "line_no": [] }
ram_addr_t FUNC_0(ram_addr_t size, void *host, MemoryRegion *mr) { RAMBlock *new_block; size = TARGET_PAGE_ALIGN(size); new_block = g_malloc0(sizeof(*new_block)); new_block->mr = mr; new_block->offset = find_ram_offset(size); if (host) { ne...
[ "ram_addr_t FUNC_0(ram_addr_t size, void *host,\nMemoryRegion *mr)\n{", "RAMBlock *new_block;", "size = TARGET_PAGE_ALIGN(size);", "new_block = g_malloc0(sizeof(*new_block));", "new_block->mr = mr;", "new_block->offset = find_ram_offset(size);", "if (host) {", "new_block->host = host;", "new_block->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 43, 45 ], [ 47 ], ...
5,719
static MemTxResult memory_region_read_accessor(MemoryRegion *mr, hwaddr addr, uint64_t *value, unsigned size, unsigned shif...
true
qemu
f2d089425d43735b5369f70f3a36b712440578e5
static MemTxResult memory_region_read_accessor(MemoryRegion *mr, hwaddr addr, uint64_t *value, unsigned size, unsigned shif...
{ "code": [], "line_no": [] }
static MemTxResult FUNC_0(MemoryRegion *mr, hwaddr addr, uint64_t *value, unsigned size, unsigned shift, ...
[ "static MemTxResult FUNC_0(MemoryRegion *mr,\nhwaddr addr,\nuint64_t *value,\nunsigned size,\nunsigned shift,\nuint64_t mask,\nMemTxAttrs attrs)\n{", "uint64_t tmp;", "tmp = mr->ops->read(mr->opaque, addr, size);", "if (mr->subpage) {", "trace_memory_region_subpage_read(get_cpu_index(), mr, addr, tmp, size...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 32 ], [ 34 ], [ 36 ], [ 38 ], [ 40 ], [ 42 ], [ 44 ] ]
5,720
static void unmanageable_intercept(S390CPU *cpu, const char *str, int pswoffset) { CPUState *cs = CPU(cpu); error_report("Unmanageable %s! CPU%i new PSW: 0x%016lx:%016lx", str, cs->cpu_index, ldq_phys(cs->as, cpu->env.psa + pswoffset), ldq_phys(cs->as, cpu->env.psa + psw...
true
qemu
5f5b5942d56a138baad0ae01458d5d0e62d5be68
static void unmanageable_intercept(S390CPU *cpu, const char *str, int pswoffset) { CPUState *cs = CPU(cpu); error_report("Unmanageable %s! CPU%i new PSW: 0x%016lx:%016lx", str, cs->cpu_index, ldq_phys(cs->as, cpu->env.psa + pswoffset), ldq_phys(cs->as, cpu->env.psa + psw...
{ "code": [ " guest_panicked();" ], "line_no": [ 17 ] }
static void FUNC_0(S390CPU *VAR_0, const char *VAR_1, int VAR_2) { CPUState *cs = CPU(VAR_0); error_report("Unmanageable %s! CPU%i new PSW: 0x%016lx:%016lx", VAR_1, cs->cpu_index, ldq_phys(cs->as, VAR_0->env.psa + VAR_2), ldq_phys(cs->as, VAR_0->env.psa + VAR_2 + 8)); ...
[ "static void FUNC_0(S390CPU *VAR_0, const char *VAR_1, int VAR_2)\n{", "CPUState *cs = CPU(VAR_0);", "error_report(\"Unmanageable %s! CPU%i new PSW: 0x%016lx:%016lx\",\nVAR_1, cs->cpu_index, ldq_phys(cs->as, VAR_0->env.psa + VAR_2),\nldq_phys(cs->as, VAR_0->env.psa + VAR_2 + 8));", "s390_cpu_halt(VAR_0);", ...
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ] ]
5,721
static int cook_decode_init(AVCodecContext *avctx) { COOKextradata *e = (COOKextradata *)avctx->extradata; COOKContext *q = avctx->priv_data; /* Take care of the codec specific extradata. */ if (avctx->extradata_size <= 0) { av_log(avctx,AV_LOG_ERROR,"Necessary extradata missing!\n"); ...
false
FFmpeg
862be28b192185d094d96bbc24d9be43e2b22106
static int cook_decode_init(AVCodecContext *avctx) { COOKextradata *e = (COOKextradata *)avctx->extradata; COOKContext *q = avctx->priv_data; if (avctx->extradata_size <= 0) { av_log(avctx,AV_LOG_ERROR,"Necessary extradata missing!\n"); return -1; } else { ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { COOKextradata *e = (COOKextradata *)VAR_0->extradata; COOKContext *q = VAR_0->priv_data; if (VAR_0->extradata_size <= 0) { av_log(VAR_0,AV_LOG_ERROR,"Necessary extradata missing!\n"); return -1; } else { av_lo...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "COOKextradata *e = (COOKextradata *)VAR_0->extradata;", "COOKContext *q = VAR_0->priv_data;", "if (VAR_0->extradata_size <= 0) {", "av_log(VAR_0,AV_LOG_ERROR,\"Necessary extradata missing!\\n\");", "return -1;", "} else {", "av_log(VAR_0,AV_LOG_DEBUG,\"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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ], [ 53...
5,722
static void decode_clnpass(Jpeg2000DecoderContext *s, Jpeg2000T1Context *t1, int width, int height, int bpno, int bandno, int seg_symbols, int vert_causal_ctx_csty_symbol) { int mask = 3 << (bpno - 1), y0, x, y, runlen, dec; for (y0 = 0; y0 < height; ...
false
FFmpeg
f1e173049ecc9de03817385ba8962d14cba779db
static void decode_clnpass(Jpeg2000DecoderContext *s, Jpeg2000T1Context *t1, int width, int height, int bpno, int bandno, int seg_symbols, int vert_causal_ctx_csty_symbol) { int mask = 3 << (bpno - 1), y0, x, y, runlen, dec; for (y0 = 0; y0 < height; ...
{ "code": [], "line_no": [] }
static void FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000T1Context *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { int VAR_8 = 3 << (VAR_4 - 1), VAR_9, VAR_10, VAR_11, VAR_12, VAR_13; for (VAR_9 = 0; VAR_9 < VAR_3; VAR_9 +...
[ "static void FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000T1Context *VAR_1,\nint VAR_2, int VAR_3, int VAR_4, int VAR_5,\nint VAR_6, int VAR_7)\n{", "int VAR_8 = 3 << (VAR_4 - 1), VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;", "for (VAR_9 = 0; VAR_9 < VAR_3; VAR_9 += 4) {", "for (VAR_10 = 0; VAR_10 < VAR_2; VAR_10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 27, 29, 31 ], [ 33, 35 ], [ 37, 39 ], [ 41, 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
5,723
static int hls_write_packet(AVFormatContext *s, AVPacket *pkt) { HLSContext *hls = s->priv_data; AVFormatContext *oc = NULL; AVStream *st = s->streams[pkt->stream_index]; int64_t end_pts = 0; int is_ref_pkt = 1; int ret = 0, can_split = 1, i, j; int stream_index = 0; int range_l...
true
FFmpeg
d5d2632e3a0f1709290834fd35457cd05cf48bc8
static int hls_write_packet(AVFormatContext *s, AVPacket *pkt) { HLSContext *hls = s->priv_data; AVFormatContext *oc = NULL; AVStream *st = s->streams[pkt->stream_index]; int64_t end_pts = 0; int is_ref_pkt = 1; int ret = 0, can_split = 1, i, j; int stream_index = 0; int range_l...
{ "code": [ " vs->end_pts = pkt->pts;" ], "line_no": [ 99 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { HLSContext *hls = VAR_0->priv_data; AVFormatContext *oc = NULL; AVStream *st = VAR_0->streams[VAR_1->VAR_7]; int64_t end_pts = 0; int VAR_2 = 1; int VAR_3 = 0, VAR_4 = 1, VAR_5, VAR_6; int VAR_7 = 0; int VAR_8 = 0; ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "HLSContext *hls = VAR_0->priv_data;", "AVFormatContext *oc = NULL;", "AVStream *st = VAR_0->streams[VAR_1->VAR_7];", "int64_t end_pts = 0;", "int VAR_2 = 1;", "int VAR_3 = 0, VAR_4 = 1, VAR_5, VAR_6;", "int VAR_7 = 0;", "int VAR_8 = 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
5,724
void sample_dump(int fnum, int32_t *tab, int n) { static FILE *files[16], *f; char buf[512]; int i; int32_t v; f = files[fnum]; if (!f) { snprintf(buf, sizeof(buf), "/tmp/out%d.%s.pcm", fnum, #ifdef USE_HIGHPRECISION "hp" #else ...
true
FFmpeg
84af4a7ee6f938c6466c8d795ead0e6ee8ed486d
void sample_dump(int fnum, int32_t *tab, int n) { static FILE *files[16], *f; char buf[512]; int i; int32_t v; f = files[fnum]; if (!f) { snprintf(buf, sizeof(buf), "/tmp/out%d.%s.pcm", fnum, #ifdef USE_HIGHPRECISION "hp" #else ...
{ "code": [ " printf(\"pos=%d\\n\", pos);", " printf(\" %0.4f\", (double)tab[i] / FRAC_ONE);", " printf(\"\\n\");" ], "line_no": [ 51, 55, 59 ] }
void FUNC_0(int VAR_0, int32_t *VAR_1, int VAR_2) { static FILE *VAR_3[16], *f; char VAR_4[512]; int VAR_5; int32_t v; f = VAR_3[VAR_0]; if (!f) { snprintf(VAR_4, sizeof(VAR_4), "/tmp/out%d.%s.pcm", VAR_0, #ifdef USE_HIGHPRECISION "hp" ...
[ "void FUNC_0(int VAR_0, int32_t *VAR_1, int VAR_2)\n{", "static FILE *VAR_3[16], *f;", "char VAR_4[512];", "int VAR_5;", "int32_t v;", "f = VAR_3[VAR_0];", "if (!f) {", "snprintf(VAR_4, sizeof(VAR_4), \"/tmp/out%d.%s.pcm\",\nVAR_0,\n#ifdef USE_HIGHPRECISION\n\"hp\"\n#else\n\"lp\"\n#endif\n);", "f = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21, 23, 25, 27, 29, 31, 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
5,725
int ff_vdpau_mpeg_end_frame(AVCodecContext *avctx) { AVVDPAUContext *hwctx = avctx->hwaccel_context; MpegEncContext *s = avctx->priv_data; Picture *pic = s->current_picture_ptr; struct vdpau_picture_context *pic_ctx = pic->hwaccel_picture_private; VdpVideoSurface surf = ff_vdpau_get_surface_id...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
int ff_vdpau_mpeg_end_frame(AVCodecContext *avctx) { AVVDPAUContext *hwctx = avctx->hwaccel_context; MpegEncContext *s = avctx->priv_data; Picture *pic = s->current_picture_ptr; struct vdpau_picture_context *pic_ctx = pic->hwaccel_picture_private; VdpVideoSurface surf = ff_vdpau_get_surface_id...
{ "code": [ " VdpVideoSurface surf = ff_vdpau_get_surface_id(&pic->f);" ], "line_no": [ 13 ] }
int FUNC_0(AVCodecContext *VAR_0) { AVVDPAUContext *hwctx = VAR_0->hwaccel_context; MpegEncContext *s = VAR_0->priv_data; Picture *pic = s->current_picture_ptr; struct vdpau_picture_context *VAR_1 = pic->hwaccel_picture_private; VdpVideoSurface surf = ff_vdpau_get_surface_id(&pic->f); h...
[ "int FUNC_0(AVCodecContext *VAR_0)\n{", "AVVDPAUContext *hwctx = VAR_0->hwaccel_context;", "MpegEncContext *s = VAR_0->priv_data;", "Picture *pic = s->current_picture_ptr;", "struct vdpau_picture_context *VAR_1 = pic->hwaccel_picture_private;", "VdpVideoSurface surf = ff_vdpau_get_surface_id(&pic->f);", ...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ] ]
5,726
static void skip_data_stream_element(GetBitContext *gb) { int byte_align = get_bits1(gb); int count = get_bits(gb, 8); if (count == 255) count += get_bits(gb, 8); if (byte_align) align_get_bits(gb); skip_bits_long(gb, 8 * count); }
true
FFmpeg
8d637124864dcf8bf367ab96e572d6c7cf043675
static void skip_data_stream_element(GetBitContext *gb) { int byte_align = get_bits1(gb); int count = get_bits(gb, 8); if (count == 255) count += get_bits(gb, 8); if (byte_align) align_get_bits(gb); skip_bits_long(gb, 8 * count); }
{ "code": [ "static void skip_data_stream_element(GetBitContext *gb)" ], "line_no": [ 1 ] }
static void FUNC_0(GetBitContext *VAR_0) { int VAR_1 = get_bits1(VAR_0); int VAR_2 = get_bits(VAR_0, 8); if (VAR_2 == 255) VAR_2 += get_bits(VAR_0, 8); if (VAR_1) align_get_bits(VAR_0); skip_bits_long(VAR_0, 8 * VAR_2); }
[ "static void FUNC_0(GetBitContext *VAR_0)\n{", "int VAR_1 = get_bits1(VAR_0);", "int VAR_2 = get_bits(VAR_0, 8);", "if (VAR_2 == 255)\nVAR_2 += get_bits(VAR_0, 8);", "if (VAR_1)\nalign_get_bits(VAR_0);", "skip_bits_long(VAR_0, 8 * VAR_2);", "}" ]
[ 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ], [ 17 ], [ 19 ] ]
5,727
NetQueue *qemu_new_net_queue(void *opaque) { NetQueue *queue; queue = g_malloc0(sizeof(NetQueue)); queue->opaque = opaque; QTAILQ_INIT(&queue->packets); queue->delivering = 0; return queue; }
true
qemu
7d91ddd25e3a4e5008a2ac16127d51a34fd56bf1
NetQueue *qemu_new_net_queue(void *opaque) { NetQueue *queue; queue = g_malloc0(sizeof(NetQueue)); queue->opaque = opaque; QTAILQ_INIT(&queue->packets); queue->delivering = 0; return queue; }
{ "code": [], "line_no": [] }
NetQueue *FUNC_0(void *opaque) { NetQueue *queue; queue = g_malloc0(sizeof(NetQueue)); queue->opaque = opaque; QTAILQ_INIT(&queue->packets); queue->delivering = 0; return queue; }
[ "NetQueue *FUNC_0(void *opaque)\n{", "NetQueue *queue;", "queue = g_malloc0(sizeof(NetQueue));", "queue->opaque = opaque;", "QTAILQ_INIT(&queue->packets);", "queue->delivering = 0;", "return queue;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ] ]
5,728
static void gen_dmfc0(DisasContext *ctx, TCGv arg, int reg, int sel) { const char *rn = "invalid"; if (sel != 0) check_insn(ctx, ISA_MIPS64); switch (reg) { case 0: switch (sel) { case 0: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Index)); ...
true
qemu
cec56a733dd2c3fa81dbedbecf03922258747f7d
static void gen_dmfc0(DisasContext *ctx, TCGv arg, int reg, int sel) { const char *rn = "invalid"; if (sel != 0) check_insn(ctx, ISA_MIPS64); switch (reg) { case 0: switch (sel) { case 0: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Index)); ...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, int VAR_2, int VAR_3) { const char *VAR_4 = "invalid"; if (VAR_3 != 0) check_insn(VAR_0, ISA_MIPS64); switch (VAR_2) { case 0: switch (VAR_3) { case 0: gen_mfc0_load32(VAR_1, offsetof(CPUMIPSState, CP0_I...
[ "static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, int VAR_2, int VAR_3)\n{", "const char *VAR_4 = \"invalid\";", "if (VAR_3 != 0)\ncheck_insn(VAR_0, ISA_MIPS64);", "switch (VAR_2) {", "case 0:\nswitch (VAR_3) {", "case 0:\ngen_mfc0_load32(VAR_1, offsetof(CPUMIPSState, CP0_Index));", "VAR_4 = \"Index\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17, 19 ], [ 21, 23 ], [ 25 ], [ 28, 30 ], [ 32 ], [ 34 ], [ 38 ], [ 40 ], [ 42 ], [ 46 ], [ 48 ], [ 50 ], [ 54 ], [ 56...
5,730
static inline uint16_t mipsdsp_trunc16_sat16_round(int32_t a, CPUMIPSState *env) { int64_t temp; temp = (int32_t)a + 0x00008000; if (a > (int)0x7fff8000) { temp = 0x7FFFFFFF; set_DSPControl_overflow_flag(1, 22, env); } ...
true
qemu
d36c231f4b7386bd8230aa17d362b925aa419b2f
static inline uint16_t mipsdsp_trunc16_sat16_round(int32_t a, CPUMIPSState *env) { int64_t temp; temp = (int32_t)a + 0x00008000; if (a > (int)0x7fff8000) { temp = 0x7FFFFFFF; set_DSPControl_overflow_flag(1, 22, env); } ...
{ "code": [ " int64_t temp;", " temp = (int32_t)a + 0x00008000;", " if (a > (int)0x7fff8000) {", " temp = 0x7FFFFFFF;", " return (temp >> 16) & 0xFFFF;" ], "line_no": [ 7, 11, 15, 17, 25 ] }
static inline uint16_t FUNC_0(int32_t a, CPUMIPSState *env) { int64_t temp; temp = (int32_t)a + 0x00008000; if (a > (int)0x7fff8000) { temp = 0x7FFFFFFF; set_DSPControl_overflow_flag(1, 22, env); } return (temp >> 16) ...
[ "static inline uint16_t FUNC_0(int32_t a,\nCPUMIPSState *env)\n{", "int64_t temp;", "temp = (int32_t)a + 0x00008000;", "if (a > (int)0x7fff8000) {", "temp = 0x7FFFFFFF;", "set_DSPControl_overflow_flag(1, 22, env);", "}", "return (temp >> 16) & 0xFFFF;", "}" ]
[ 0, 1, 1, 1, 1, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
5,732
static void celt_pvq_search(float *X, int *y, int K, int N) { int i; float res = 0.0f, y_norm = 0.0f, xy_norm = 0.0f; for (i = 0; i < N; i++) res += FFABS(X[i]); res = K/res; for (i = 0; i < N; i++) { y[i] = lrintf(res*X[i]); y_norm += y[i]*y[i]; xy_n...
false
FFmpeg
22b8ada7b5e0a1ef58b21cf8e481e0c2b28ce94e
static void celt_pvq_search(float *X, int *y, int K, int N) { int i; float res = 0.0f, y_norm = 0.0f, xy_norm = 0.0f; for (i = 0; i < N; i++) res += FFABS(X[i]); res = K/res; for (i = 0; i < N; i++) { y[i] = lrintf(res*X[i]); y_norm += y[i]*y[i]; xy_n...
{ "code": [], "line_no": [] }
static void FUNC_0(float *VAR_0, int *VAR_1, int VAR_2, int VAR_3) { int VAR_4; float VAR_5 = 0.0f, VAR_6 = 0.0f, VAR_7 = 0.0f; for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++) VAR_5 += FFABS(VAR_0[VAR_4]); VAR_5 = VAR_2/VAR_5; for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++) { VAR_1[VAR...
[ "static void FUNC_0(float *VAR_0, int *VAR_1, int VAR_2, int VAR_3)\n{", "int VAR_4;", "float VAR_5 = 0.0f, VAR_6 = 0.0f, VAR_7 = 0.0f;", "for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++)", "VAR_5 += FFABS(VAR_0[VAR_4]);", "VAR_5 = VAR_2/VAR_5;", "for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++) {", "VAR_1[VAR_4] = lri...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51...
5,733
static int rtsp_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { RTSPState *rt = s->priv_data; rt->seek_timestamp = av_rescale_q(timestamp, s->streams[stream_index]->time_base, AV_TIME_BASE_Q); switch(rt->state) { default: case RTSP_S...
false
FFmpeg
c89658008705d949c319df3fa6f400c481ad73e1
static int rtsp_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { RTSPState *rt = s->priv_data; rt->seek_timestamp = av_rescale_q(timestamp, s->streams[stream_index]->time_base, AV_TIME_BASE_Q); switch(rt->state) { default: case RTSP_S...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3) { RTSPState *rt = VAR_0->priv_data; rt->seek_timestamp = av_rescale_q(VAR_2, VAR_0->streams[VAR_1]->time_base, AV_TIME_BASE_Q); switch(rt->state) { default: case RTSP_STATE_IDLE: ...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nint64_t VAR_2, int VAR_3)\n{", "RTSPState *rt = VAR_0->priv_data;", "rt->seek_timestamp = av_rescale_q(VAR_2, VAR_0->streams[VAR_1]->time_base, AV_TIME_BASE_Q);", "switch(rt->state) {", "default:\ncase RTSP_STATE_IDLE:\nbreak;", "case RTSP_STATE_PLAYI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17, 19 ], [ 21, 23, 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
5,734
static inline void RENAME(yuy2ToY)(uint8_t *dst, const uint8_t *src, long width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "movq "MANGLE(bm01010101)", %%mm2 \n\t" "mov %0, %%"REG_a" \n\t" "1: ...
false
FFmpeg
d1adad3cca407f493c3637e20ecd4f7124e69212
static inline void RENAME(yuy2ToY)(uint8_t *dst, const uint8_t *src, long width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "movq "MANGLE(bm01010101)", %%mm2 \n\t" "mov %0, %%"REG_a" \n\t" "1: ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(yuy2ToY)(uint8_t *dst, const uint8_t *src, long width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "movq "MANGLE(bm01010101)", %%mm2 \n\t" "mov %0, %%"REG_a" \n\t" "1: ...
[ "static inline void FUNC_0(yuy2ToY)(uint8_t *dst, const uint8_t *src, long width, uint32_t *unused)\n{", "#if COMPILE_TEMPLATE_MMX\n__asm__ volatile(\n\"movq \"MANGLE(bm01010101)\", %%mm2 \\n\\t\"\n\"mov %0, %%\"REG_a\" \\n\\t\"\n\"1: \\n\...
[ 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 ] ]
5,735
static int load_input_picture(MpegEncContext *s, AVFrame *pic_arg){ AVFrame *pic=NULL; int64_t pts; int i; const int encoding_delay= s->max_b_frames; int direct=1; if(pic_arg){ pts= pic_arg->pts; pic_arg->display_picture_number= s->input_picture_number++; if(...
false
FFmpeg
be548816dc05c7e7a07659d499f1005fc0bc1d55
static int load_input_picture(MpegEncContext *s, AVFrame *pic_arg){ AVFrame *pic=NULL; int64_t pts; int i; const int encoding_delay= s->max_b_frames; int direct=1; if(pic_arg){ pts= pic_arg->pts; pic_arg->display_picture_number= s->input_picture_number++; if(...
{ "code": [], "line_no": [] }
static int FUNC_0(MpegEncContext *VAR_0, AVFrame *VAR_1){ AVFrame *pic=NULL; int64_t pts; int VAR_2; const int VAR_3= VAR_0->max_b_frames; int VAR_4=1; if(VAR_1){ pts= VAR_1->pts; VAR_1->display_picture_number= VAR_0->input_picture_number++; if(pts != AV_NOPT...
[ "static int FUNC_0(MpegEncContext *VAR_0, AVFrame *VAR_1){", "AVFrame *pic=NULL;", "int64_t pts;", "int VAR_2;", "const int VAR_3= VAR_0->max_b_frames;", "int VAR_4=1;", "if(VAR_1){", "pts= VAR_1->pts;", "VAR_1->display_picture_number= VAR_0->input_picture_number++;", "if(pts != AV_NOPTS_VALUE){",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
5,736
static inline void MPV_motion_lowres(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int dir, uint8_t **ref_picture, h264_chroma_mc_func *pix_op) { int mx, my; int mb_x, mb_y, i; const in...
false
FFmpeg
cde9e7800128f5466d97279918e1d20fc250a33b
static inline void MPV_motion_lowres(MpegEncContext *s, uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr, int dir, uint8_t **ref_picture, h264_chroma_mc_func *pix_op) { int mx, my; int mb_x, mb_y, i; const in...
{ "code": [], "line_no": [] }
static inline void FUNC_0(MpegEncContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, uint8_t *VAR_3, int VAR_4, uint8_t **VAR_5, h264_chroma_mc_func *VAR_6) { int VAR_7, VAR_8; int VAR_9, VAR_10, VAR_11; const int V...
[ "static inline void FUNC_0(MpegEncContext *VAR_0,\nuint8_t *VAR_1, uint8_t *VAR_2, uint8_t *VAR_3,\nint VAR_4, uint8_t **VAR_5,\nh264_chroma_mc_func *VAR_6)\n{", "int VAR_7, VAR_8;", "int VAR_9, VAR_10, VAR_11;", "const int VAR_12= VAR_0->avctx->VAR_12;", "const int VAR_13= 8>>VAR_12;", "VAR_9 = VAR_0->VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29, 31, 33, 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49, 51, 53, 55, 57,...
5,737
static int jpeg2000_decode_packets(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile) { int ret, i; int tp_index = 0; s->bit_index = 8; if (tile->poc.nb_poc) { for (i=0; i<tile->poc.nb_poc; i++) { Jpeg2000POCEntry *e = &tile->poc.poc[i]; ret = jpeg2000_decode_packet...
false
FFmpeg
8672c0a6436c9fc9d107617cf28cafe09ad3d9a5
static int jpeg2000_decode_packets(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile) { int ret, i; int tp_index = 0; s->bit_index = 8; if (tile->poc.nb_poc) { for (i=0; i<tile->poc.nb_poc; i++) { Jpeg2000POCEntry *e = &tile->poc.poc[i]; ret = jpeg2000_decode_packet...
{ "code": [], "line_no": [] }
static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000Tile *VAR_1) { int VAR_2, VAR_3; int VAR_4 = 0; VAR_0->bit_index = 8; if (VAR_1->poc.nb_poc) { for (VAR_3=0; VAR_3<VAR_1->poc.nb_poc; VAR_3++) { Jpeg2000POCEntry *e = &VAR_1->poc.poc[VAR_3]; VAR_2 = jpeg20...
[ "static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000Tile *VAR_1)\n{", "int VAR_2, VAR_3;", "int VAR_4 = 0;", "VAR_0->bit_index = 8;", "if (VAR_1->poc.nb_poc) {", "for (VAR_3=0; VAR_3<VAR_1->poc.nb_poc; VAR_3++) {", "Jpeg2000POCEntry *e = &VAR_1->poc.poc[VAR_3];", "VAR_2 = jpeg2000_decode_packets...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21, 23, 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37, 39, 41, 43, 45, 47, 49, 51 ], [ 53 ], [ 57...
5,738
static int blk_prw(BlockBackend *blk, int64_t offset, uint8_t *buf, int64_t bytes, CoroutineEntry co_entry, BdrvRequestFlags flags) { AioContext *aio_context; QEMUIOVector qiov; struct iovec iov; Coroutine *co; BlkRwCo rwco; iov = (struct iovec) {...
true
qemu
0b8b8753e4d94901627b3e86431230f2319215c4
static int blk_prw(BlockBackend *blk, int64_t offset, uint8_t *buf, int64_t bytes, CoroutineEntry co_entry, BdrvRequestFlags flags) { AioContext *aio_context; QEMUIOVector qiov; struct iovec iov; Coroutine *co; BlkRwCo rwco; iov = (struct iovec) {...
{ "code": [ " co = qemu_coroutine_create(co_entry);", " qemu_coroutine_enter(co, &rwco);", " co = qemu_coroutine_create(co_entry);" ], "line_no": [ 49, 51, 49 ] }
static int FUNC_0(BlockBackend *VAR_0, int64_t VAR_1, uint8_t *VAR_2, int64_t VAR_3, CoroutineEntry VAR_4, BdrvRequestFlags VAR_5) { AioContext *aio_context; QEMUIOVector qiov; struct iovec VAR_6; Coroutine *co; BlkRwCo rwco; VAR_6 = (struct iovec...
[ "static int FUNC_0(BlockBackend *VAR_0, int64_t VAR_1, uint8_t *VAR_2,\nint64_t VAR_3, CoroutineEntry VAR_4,\nBdrvRequestFlags VAR_5)\n{", "AioContext *aio_context;", "QEMUIOVector qiov;", "struct iovec VAR_6;", "Coroutine *co;", "BlkRwCo rwco;", "VAR_6 = (struct iovec) {", ".iov_base = VAR_2,\n.iov_l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25, 27 ], [ 29 ], [ 33 ], [ 35, 37, 39, 41, 43, 45 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [...
5,739
static void gen_spr_thrm (CPUPPCState *env) { /* Thermal management */ /* XXX : not implemented */ spr_register(env, SPR_THRM1, "THRM1", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, 0x00000000); /* XXX : not implemented */ ...
true
qemu
f0278900d38b2d8d9531c484bd088d9a7d5d4ea2
static void gen_spr_thrm (CPUPPCState *env) { spr_register(env, SPR_THRM1, "THRM1", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, 0x00000000); spr_register(env, SPR_THRM2, "THRM2", SPR_NOACCESS, SPR...
{ "code": [ " &spr_read_generic, &spr_write_generic,", " &spr_read_generic, &spr_write_generic,", " &spr_read_generic, &spr_write_generic," ], "line_no": [ 13, 13, 13 ] }
static void FUNC_0 (CPUPPCState *VAR_0) { spr_register(VAR_0, SPR_THRM1, "THRM1", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, 0x00000000); spr_register(VAR_0, SPR_THRM2, "THRM2", SPR_NOACCESS, SPR...
[ "static void FUNC_0 (CPUPPCState *VAR_0)\n{", "spr_register(VAR_0, SPR_THRM1, \"THRM1\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_generic,\n0x00000000);", "spr_register(VAR_0, SPR_THRM2, \"THRM2\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_generic,\n0x00000000);", "spr_reg...
[ 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 9, 11, 13, 15 ], [ 19, 21, 23, 25 ], [ 29, 31, 33, 35 ], [ 37 ] ]
5,740
static int pix_sum_altivec(uint8_t *pix, int line_size) { int i, s; const vector unsigned int zero = (const vector unsigned int) vec_splat_u32(0); vector unsigned int sad = (vector unsigned int) vec_splat_u32(0); vector signed int sumdiffs; for (i = 0; i < 16; i++) { /* Rea...
true
FFmpeg
840c3c05316a59c70a7470ed27aaa9c2f3ba410a
static int pix_sum_altivec(uint8_t *pix, int line_size) { int i, s; const vector unsigned int zero = (const vector unsigned int) vec_splat_u32(0); vector unsigned int sad = (vector unsigned int) vec_splat_u32(0); vector signed int sumdiffs; for (i = 0; i < 16; i++) { ...
{ "code": [ " vec_vsx_st(sumdiffs, 0, &s);" ], "line_no": [ 49 ] }
static int FUNC_0(uint8_t *VAR_0, int VAR_1) { int VAR_2, VAR_3; const vector unsigned int VAR_4 = (const vector unsigned int) vec_splat_u32(0); vector unsigned int sad = (vector unsigned int) vec_splat_u32(0); vector signed int sumdiffs; for (VAR_2 = 0; VAR_2 < 16; VAR_2++) { ...
[ "static int FUNC_0(uint8_t *VAR_0, int VAR_1)\n{", "int VAR_2, VAR_3;", "const vector unsigned int VAR_4 =\n(const vector unsigned int) vec_splat_u32(0);", "vector unsigned int sad = (vector unsigned int) vec_splat_u32(0);", "vector signed int sumdiffs;", "for (VAR_2 = 0; VAR_2 < 16; VAR_2++) {", "vecto...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 27 ], [ 33 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ] ]
5,742
static void mb_cpu_initfn(Object *obj) { CPUState *cs = CPU(obj); MicroBlazeCPU *cpu = MICROBLAZE_CPU(obj); CPUMBState *env = &cpu->env; static bool tcg_initialized; cs->env_ptr = env; cpu_exec_init(cs, &error_abort); set_float_rounding_mode(float_round_nearest_even, &env->fp_sta...
true
qemu
ce5b1bbf624b977a55ff7f85bb3871682d03baff
static void mb_cpu_initfn(Object *obj) { CPUState *cs = CPU(obj); MicroBlazeCPU *cpu = MICROBLAZE_CPU(obj); CPUMBState *env = &cpu->env; static bool tcg_initialized; cs->env_ptr = env; cpu_exec_init(cs, &error_abort); set_float_rounding_mode(float_round_nearest_even, &env->fp_sta...
{ "code": [ " cpu_exec_init(cs, &error_abort);", " cpu_exec_init(cs, &error_abort);", " cpu_exec_init(cs, &error_abort);", " cpu_exec_init(cs, &error_abort);", " cpu_exec_init(cs, &error_abort);", " cpu_exec_init(cs, &error_abort);", " cpu_exec_init(cs, &error_abort);"...
static void FUNC_0(Object *VAR_0) { CPUState *cs = CPU(VAR_0); MicroBlazeCPU *cpu = MICROBLAZE_CPU(VAR_0); CPUMBState *env = &cpu->env; static bool VAR_1; cs->env_ptr = env; cpu_exec_init(cs, &error_abort); set_float_rounding_mode(float_round_nearest_even, &env->fp_status); #i...
[ "static void FUNC_0(Object *VAR_0)\n{", "CPUState *cs = CPU(VAR_0);", "MicroBlazeCPU *cpu = MICROBLAZE_CPU(VAR_0);", "CPUMBState *env = &cpu->env;", "static bool VAR_1;", "cs->env_ptr = env;", "cpu_exec_init(cs, &error_abort);", "set_float_rounding_mode(float_round_nearest_even, &env->fp_status);", ...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 25, 29 ], [ 31, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
5,743
int bdrv_create(BlockDriver *drv, const char* filename, QemuOpts *opts, Error **errp) { int ret; Coroutine *co; CreateCo cco = { .drv = drv, .filename = g_strdup(filename), .opts = opts, .ret = NOT_DONE, .err = NULL, }; if (!drv...
true
qemu
0b8b8753e4d94901627b3e86431230f2319215c4
int bdrv_create(BlockDriver *drv, const char* filename, QemuOpts *opts, Error **errp) { int ret; Coroutine *co; CreateCo cco = { .drv = drv, .filename = g_strdup(filename), .opts = opts, .ret = NOT_DONE, .err = NULL, }; if (!drv...
{ "code": [ " co = qemu_coroutine_create(bdrv_create_co_entry);", " qemu_coroutine_enter(co, &cco);" ], "line_no": [ 49, 51 ] }
int FUNC_0(BlockDriver *VAR_0, const char* VAR_1, QemuOpts *VAR_2, Error **VAR_3) { int VAR_4; Coroutine *co; CreateCo cco = { .VAR_0 = VAR_0, .VAR_1 = g_strdup(VAR_1), .VAR_2 = VAR_2, .VAR_4 = NOT_DONE, .err = NULL, }; if (!VAR...
[ "int FUNC_0(BlockDriver *VAR_0, const char* VAR_1,\nQemuOpts *VAR_2, Error **VAR_3)\n{", "int VAR_4;", "Coroutine *co;", "CreateCo cco = {", ".VAR_0 = VAR_0,\n.VAR_1 = g_strdup(VAR_1),\n.VAR_2 = VAR_2,\n.VAR_4 = NOT_DONE,\n.err = NULL,\n};", "if (!VAR_0->FUNC_0) {", "error_setg(VAR_3, \"Driver '%s' does...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17, 19, 21, 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55...
5,744
ssize_t qsb_get_buffer(const QEMUSizedBuffer *qsb, off_t start, size_t count, uint8_t *buffer) { const struct iovec *iov; size_t to_copy, all_copy; ssize_t index; off_t s_off; off_t d_off = 0; char *s; if (start > qsb->used) { return 0; } ...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
ssize_t qsb_get_buffer(const QEMUSizedBuffer *qsb, off_t start, size_t count, uint8_t *buffer) { const struct iovec *iov; size_t to_copy, all_copy; ssize_t index; off_t s_off; off_t d_off = 0; char *s; if (start > qsb->used) { return 0; } ...
{ "code": [], "line_no": [] }
ssize_t FUNC_0(const QEMUSizedBuffer *qsb, off_t start, size_t count, uint8_t *buffer) { const struct iovec *VAR_0; size_t to_copy, all_copy; ssize_t index; off_t s_off; off_t d_off = 0; char *VAR_1; if (start > qsb->used) { return 0; } ...
[ "ssize_t FUNC_0(const QEMUSizedBuffer *qsb, off_t start,\nsize_t count, uint8_t *buffer)\n{", "const struct iovec *VAR_0;", "size_t to_copy, all_copy;", "ssize_t index;", "off_t s_off;", "off_t d_off = 0;", "char *VAR_1;", "if (start > qsb->used) {", "return 0;", "}", "all_copy = qsb->used - sta...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [...
5,745
static void vfio_probe_ati_bar4_quirk(VFIOPCIDevice *vdev, int nr) { VFIOQuirk *quirk; VFIOConfigWindowQuirk *window; /* This windows doesn't seem to be used except by legacy VGA code */ if (!vfio_pci_is(vdev, PCI_VENDOR_ID_ATI, PCI_ANY_ID) || !vdev->has_vga || nr != 4) { return...
true
qemu
bdd81addf4033ce26e6cd180b060f63095f3ded9
static void vfio_probe_ati_bar4_quirk(VFIOPCIDevice *vdev, int nr) { VFIOQuirk *quirk; VFIOConfigWindowQuirk *window; if (!vfio_pci_is(vdev, PCI_VENDOR_ID_ATI, PCI_ANY_ID) || !vdev->has_vga || nr != 4) { return; } quirk = g_malloc0(sizeof(*quirk)); quirk->mem =...
{ "code": [ " quirk->mem = g_malloc0(sizeof(MemoryRegion) * 2);", " quirk->mem = g_malloc0(sizeof(MemoryRegion) * 2);", " quirk->mem = g_malloc0(sizeof(MemoryRegion) * 2);" ], "line_no": [ 25, 25, 25 ] }
static void FUNC_0(VFIOPCIDevice *VAR_0, int VAR_1) { VFIOQuirk *quirk; VFIOConfigWindowQuirk *window; if (!vfio_pci_is(VAR_0, PCI_VENDOR_ID_ATI, PCI_ANY_ID) || !VAR_0->has_vga || VAR_1 != 4) { return; } quirk = g_malloc0(sizeof(*quirk)); quirk->mem = g_malloc0...
[ "static void FUNC_0(VFIOPCIDevice *VAR_0, int VAR_1)\n{", "VFIOQuirk *quirk;", "VFIOConfigWindowQuirk *window;", "if (!vfio_pci_is(VAR_0, PCI_VENDOR_ID_ATI, PCI_ANY_ID) ||\n!VAR_0->has_vga || VAR_1 != 4) {", "return;", "}", "quirk = g_malloc0(sizeof(*quirk));", "quirk->mem = g_malloc0(sizeof(MemoryReg...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
5,746
static void scsi_read_data(SCSIDevice *d, uint32_t tag) { SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d); SCSIDiskReq *r; r = scsi_find_request(s, tag); if (!r) { BADF("Bad read tag 0x%x\n", tag); /* ??? This is the wrong error. */ scsi_command_complete(r, CHECK_...
true
qemu
5c6c0e513600ba57c3e73b7151d3c0664438f7b5
static void scsi_read_data(SCSIDevice *d, uint32_t tag) { SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d); SCSIDiskReq *r; r = scsi_find_request(s, tag); if (!r) { BADF("Bad read tag 0x%x\n", tag); scsi_command_complete(r, CHECK_CONDITION, HARDWARE_ERROR); ...
{ "code": [ " SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);", " SCSIDiskReq *r;", " r = scsi_find_request(s, tag);", "static void scsi_read_data(SCSIDevice *d, uint32_t tag)", " SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);", " SCSIDiskReq *r;", " r = scsi...
static void FUNC_0(SCSIDevice *VAR_0, uint32_t VAR_1) { SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0); SCSIDiskReq *r; r = scsi_find_request(s, VAR_1); if (!r) { BADF("Bad read VAR_1 0x%x\n", VAR_1); scsi_command_complete(r, CHECK_CONDITION, HARDWARE_ERROR);...
[ "static void FUNC_0(SCSIDevice *VAR_0, uint32_t VAR_1)\n{", "SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0);", "SCSIDiskReq *r;", "r = scsi_find_request(s, VAR_1);", "if (!r) {", "BADF(\"Bad read VAR_1 0x%x\\n\", VAR_1);", "scsi_command_complete(r, CHECK_CONDITION, HARDWARE_ERROR);", "return...
[ 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
5,747
static inline void mix_3f_1r_to_dolby(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) { output[1][i] += (output[2][i] - output[4][i]); output[2][i] += (output[3][i] + output[4][i]); } memset(output[3], 0, sizeo...
false
FFmpeg
486637af8ef29ec215e0e0b7ecd3b5470f0e04e5
static inline void mix_3f_1r_to_dolby(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) { output[1][i] += (output[2][i] - output[4][i]); output[2][i] += (output[3][i] + output[4][i]); } memset(output[3], 0, sizeo...
{ "code": [], "line_no": [] }
static inline void FUNC_0(AC3DecodeContext *VAR_0) { int VAR_1; float (*VAR_2)[256] = VAR_0->audio_block.block_output; for (VAR_1 = 0; VAR_1 < 256; VAR_1++) { VAR_2[1][VAR_1] += (VAR_2[2][VAR_1] - VAR_2[4][VAR_1]); VAR_2[2][VAR_1] += (VAR_2[3][VAR_1] + VAR_2[4][VAR_1]); } m...
[ "static inline void FUNC_0(AC3DecodeContext *VAR_0)\n{", "int VAR_1;", "float (*VAR_2)[256] = VAR_0->audio_block.block_output;", "for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {", "VAR_2[1][VAR_1] += (VAR_2[2][VAR_1] - VAR_2[4][VAR_1]);", "VAR_2[2][VAR_1] += (VAR_2[3][VAR_1] + VAR_2[4][VAR_1]);", "}", "memset...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
5,748
static int has_codec_parameters(AVCodecContext *enc) { int val; switch(enc->codec_type) { case CODEC_TYPE_AUDIO: val = enc->sample_rate; break; case CODEC_TYPE_VIDEO: val = enc->width && enc->pix_fmt != PIX_FMT_NONE; break; default: val = 1; ...
false
FFmpeg
3303926c2f06841270281e7f5210c0c94292e089
static int has_codec_parameters(AVCodecContext *enc) { int val; switch(enc->codec_type) { case CODEC_TYPE_AUDIO: val = enc->sample_rate; break; case CODEC_TYPE_VIDEO: val = enc->width && enc->pix_fmt != PIX_FMT_NONE; break; default: val = 1; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { int VAR_1; switch(VAR_0->codec_type) { case CODEC_TYPE_AUDIO: VAR_1 = VAR_0->sample_rate; break; case CODEC_TYPE_VIDEO: VAR_1 = VAR_0->width && VAR_0->pix_fmt != PIX_FMT_NONE; break; default: VAR_1 = 1; ...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "int VAR_1;", "switch(VAR_0->codec_type) {", "case CODEC_TYPE_AUDIO:\nVAR_1 = VAR_0->sample_rate;", "break;", "case CODEC_TYPE_VIDEO:\nVAR_1 = VAR_0->width && VAR_0->pix_fmt != PIX_FMT_NONE;", "break;", "default:\nVAR_1 = 1;", "break;", "}", "return...
[ 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 ] ]
5,749
static int test_vector_fmul_scalar(AVFloatDSPContext *fdsp, AVFloatDSPContext *cdsp, const float *v1, float scale) { LOCAL_ALIGNED(32, float, cdst, [LEN]); LOCAL_ALIGNED(32, float, odst, [LEN]); int ret; cdsp->vector_fmul_scalar(cdst, v1, scale, LEN); fdsp...
false
FFmpeg
e53c9065ca08a9153ecc73a6a8940bcc6d667e58
static int test_vector_fmul_scalar(AVFloatDSPContext *fdsp, AVFloatDSPContext *cdsp, const float *v1, float scale) { LOCAL_ALIGNED(32, float, cdst, [LEN]); LOCAL_ALIGNED(32, float, odst, [LEN]); int ret; cdsp->vector_fmul_scalar(cdst, v1, scale, LEN); fdsp...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFloatDSPContext *VAR_0, AVFloatDSPContext *VAR_1, const float *VAR_2, float VAR_3) { LOCAL_ALIGNED(32, float, cdst, [LEN]); LOCAL_ALIGNED(32, float, odst, [LEN]); int VAR_4; VAR_1->vector_fmul_scalar(cdst, VAR_2, VAR_3, LEN); VAR_0->vec...
[ "static int FUNC_0(AVFloatDSPContext *VAR_0, AVFloatDSPContext *VAR_1,\nconst float *VAR_2, float VAR_3)\n{", "LOCAL_ALIGNED(32, float, cdst, [LEN]);", "LOCAL_ALIGNED(32, float, odst, [LEN]);", "int VAR_4;", "VAR_1->vector_fmul_scalar(cdst, VAR_2, VAR_3, LEN);", "VAR_0->vector_fmul_scalar(odst, VAR_2, VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29 ] ]
5,750
static void smp_parse(QemuOpts *opts) { if (opts) { unsigned cpus = qemu_opt_get_number(opts, "cpus", 0); unsigned sockets = qemu_opt_get_number(opts, "sockets", 0); unsigned cores = qemu_opt_get_number(opts, "cores", 0); unsigned threads = qemu_opt_get_number(opts, "thr...
true
qemu
a32ef3bfc12c8d0588f43f74dcc5280885bbdb30
static void smp_parse(QemuOpts *opts) { if (opts) { unsigned cpus = qemu_opt_get_number(opts, "cpus", 0); unsigned sockets = qemu_opt_get_number(opts, "sockets", 0); unsigned cores = qemu_opt_get_number(opts, "cores", 0); unsigned threads = qemu_opt_get_number(opts, "thr...
{ "code": [ " max_cpus = qemu_opt_get_number(opts, \"maxcpus\", 0);" ], "line_no": [ 61 ] }
static void FUNC_0(QemuOpts *VAR_0) { if (VAR_0) { unsigned VAR_1 = qemu_opt_get_number(VAR_0, "VAR_1", 0); unsigned VAR_2 = qemu_opt_get_number(VAR_0, "VAR_2", 0); unsigned VAR_3 = qemu_opt_get_number(VAR_0, "VAR_3", 0); unsigned VAR_4 = qemu_opt_get_number(VAR_0, "VAR_...
[ "static void FUNC_0(QemuOpts *VAR_0)\n{", "if (VAR_0) {", "unsigned VAR_1 = qemu_opt_get_number(VAR_0, \"VAR_1\", 0);", "unsigned VAR_2 = qemu_opt_get_number(VAR_0, \"VAR_2\", 0);", "unsigned VAR_3 = qemu_opt_get_number(VAR_0, \"VAR_3\", 0);", "unsigned VAR_4 = qemu_opt_get_number(VAR_0, \"VAR_4\", 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
5,751
static void interface_set_client_capabilities(QXLInstance *sin, uint8_t client_present, uint8_t caps[58]) { PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); qxl->shadow_rom.client_present = client_present; ...
true
qemu
ab902981cf4d46834d82eb095f2b9ab159e017bf
static void interface_set_client_capabilities(QXLInstance *sin, uint8_t client_present, uint8_t caps[58]) { PCIQXLDevice *qxl = container_of(sin, PCIQXLDevice, ssd.qxl); qxl->shadow_rom.client_present = client_present; ...
{ "code": [], "line_no": [] }
static void FUNC_0(QXLInstance *VAR_0, uint8_t VAR_1, uint8_t VAR_2[58]) { PCIQXLDevice *qxl = container_of(VAR_0, PCIQXLDevice, ssd.qxl); qxl->shadow_rom.VAR_1 = VAR_1; memcpy(qxl->shadow_rom.client_capabilities, VA...
[ "static void FUNC_0(QXLInstance *VAR_0,\nuint8_t VAR_1,\nuint8_t VAR_2[58])\n{", "PCIQXLDevice *qxl = container_of(VAR_0, PCIQXLDevice, ssd.qxl);", "qxl->shadow_rom.VAR_1 = VAR_1;", "memcpy(qxl->shadow_rom.client_capabilities, VAR_2, sizeof(VAR_2));", "qxl->rom->VAR_1 = VAR_1;", "memcpy(qxl->rom->client_c...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3, 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ] ]
5,752
AUXReply aux_request(AUXBus *bus, AUXCommand cmd, uint32_t address, uint8_t len, uint8_t *data) { AUXReply ret = AUX_NACK; I2CBus *i2c_bus = aux_get_i2c_bus(bus); size_t i; bool is_write = false; DPRINTF("request at address 0x%" PRIX32 ", command %u, len %u\n", address...
true
qemu
e0dadc1e9ef1f35208e5d2af9c7740c18a0b769f
AUXReply aux_request(AUXBus *bus, AUXCommand cmd, uint32_t address, uint8_t len, uint8_t *data) { AUXReply ret = AUX_NACK; I2CBus *i2c_bus = aux_get_i2c_bus(bus); size_t i; bool is_write = false; DPRINTF("request at address 0x%" PRIX32 ", command %u, len %u\n", address...
{ "code": [], "line_no": [] }
AUXReply FUNC_0(AUXBus *bus, AUXCommand cmd, uint32_t address, uint8_t len, uint8_t *data) { AUXReply ret = AUX_NACK; I2CBus *i2c_bus = aux_get_i2c_bus(bus); size_t i; bool is_write = false; DPRINTF("request at address 0x%" PRIX32 ", command %u, len %u\n", address, ...
[ "AUXReply FUNC_0(AUXBus *bus, AUXCommand cmd, uint32_t address,\nuint8_t len, uint8_t *data)\n{", "AUXReply ret = AUX_NACK;", "I2CBus *i2c_bus = aux_get_i2c_bus(bus);", "size_t i;", "bool is_write = false;", "DPRINTF(\"request at address 0x%\" PRIX32 \", command %u, len %u\\n\", address,\ncmd, len);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31, 33, 35 ], [ 37 ], [ 39, 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ...
5,753
static sd_rsp_type_t sd_app_command(SDState *sd, SDRequest req) { DPRINTF("ACMD%d 0x%08x\n", req.cmd, req.arg); switch (req.cmd) { case 6: /* ACMD6: SET_BUS_WIDTH */ switch (sd->state) { case sd_transfer_state: sd->sd_status[0] &= 0x3f...
true
qemu
1d06cb7ab93f879ac25c9f5ef1d1ac8d97a42dfc
static sd_rsp_type_t sd_app_command(SDState *sd, SDRequest req) { DPRINTF("ACMD%d 0x%08x\n", req.cmd, req.arg); switch (req.cmd) { case 6: switch (sd->state) { case sd_transfer_state: sd->sd_status[0] &= 0x3f; sd->sd_statu...
{ "code": [ " sd->card_status &= ~APP_CMD;", " sd->card_status &= ~APP_CMD;" ], "line_no": [ 201, 201 ] }
static sd_rsp_type_t FUNC_0(SDState *sd, SDRequest req) { DPRINTF("ACMD%d 0x%08x\n", req.cmd, req.arg); switch (req.cmd) { case 6: switch (sd->state) { case sd_transfer_state: sd->sd_status[0] &= 0x3f; sd->sd_status[0] |= ...
[ "static sd_rsp_type_t FUNC_0(SDState *sd,\nSDRequest req)\n{", "DPRINTF(\"ACMD%d 0x%08x\\n\", req.cmd, req.arg);", "switch (req.cmd) {", "case 6:\nswitch (sd->state) {", "case sd_transfer_state:\nsd->sd_status[0] &= 0x3f;", "sd->sd_status[0] |= (req.arg & 0x03) << 6;", "return sd_r1;", "default:\nbrea...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51, 53 ], [...
5,756
static int smc91c111_can_receive(NetClientState *nc) { smc91c111_state *s = qemu_get_nic_opaque(nc); if ((s->rcr & RCR_RXEN) == 0 || (s->rcr & RCR_SOFT_RST)) return 1; if (s->allocated == (1 << NUM_PACKETS) - 1) return 0; return 1; }
true
qemu
8d06b149271cbd5b19bed5bde8da5ecef40ecbc6
static int smc91c111_can_receive(NetClientState *nc) { smc91c111_state *s = qemu_get_nic_opaque(nc); if ((s->rcr & RCR_RXEN) == 0 || (s->rcr & RCR_SOFT_RST)) return 1; if (s->allocated == (1 << NUM_PACKETS) - 1) return 0; return 1; }
{ "code": [ "static int smc91c111_can_receive(NetClientState *nc)", " if ((s->rcr & RCR_RXEN) == 0 || (s->rcr & RCR_SOFT_RST))", " return 1;", " if (s->allocated == (1 << NUM_PACKETS) - 1)", " return 0;", " return 1;" ], "line_no": [ 1, 9, 11, 13, ...
static int FUNC_0(NetClientState *VAR_0) { smc91c111_state *s = qemu_get_nic_opaque(VAR_0); if ((s->rcr & RCR_RXEN) == 0 || (s->rcr & RCR_SOFT_RST)) return 1; if (s->allocated == (1 << NUM_PACKETS) - 1) return 0; return 1; }
[ "static int FUNC_0(NetClientState *VAR_0)\n{", "smc91c111_state *s = qemu_get_nic_opaque(VAR_0);", "if ((s->rcr & RCR_RXEN) == 0 || (s->rcr & RCR_SOFT_RST))\nreturn 1;", "if (s->allocated == (1 << NUM_PACKETS) - 1)\nreturn 0;", "return 1;", "}" ]
[ 1, 0, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15 ], [ 17 ], [ 19 ] ]
5,758
static ssize_t mp_dacl_listxattr(FsContext *ctx, const char *path, char *name, void *value, size_t osize) { ssize_t len = sizeof(ACL_DEFAULT); if (!value) { return len; } if (osize < len) { errno = ERANGE; return -1; } /* ...
true
qemu
9005c3b3efb7eb1b140d2ad0385efff6a3af59c4
static ssize_t mp_dacl_listxattr(FsContext *ctx, const char *path, char *name, void *value, size_t osize) { ssize_t len = sizeof(ACL_DEFAULT); if (!value) { return len; } if (osize < len) { errno = ERANGE; return -1; } ...
{ "code": [ " memcpy(value, ACL_ACCESS, len);" ], "line_no": [ 31 ] }
static ssize_t FUNC_0(FsContext *ctx, const char *path, char *name, void *value, size_t osize) { ssize_t len = sizeof(ACL_DEFAULT); if (!value) { return len; } if (osize < len) { errno = ERANGE; return -1; } memcpy(v...
[ "static ssize_t FUNC_0(FsContext *ctx, const char *path,\nchar *name, void *value, size_t osize)\n{", "ssize_t len = sizeof(ACL_DEFAULT);", "if (!value) {", "return len;", "}", "if (osize < len) {", "errno = ERANGE;", "return -1;", "}", "memcpy(value, ACL_ACCESS, len);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ] ]
5,759
static int vc1_decode_p_mb(VC1Context *v, DCTELEM block[6][64]) { MpegEncContext *s = &v->s; GetBitContext *gb = &s->gb; int i, j; int mb_pos = s->mb_x + s->mb_y * s->mb_stride; int cbp; /* cbp decoding stuff */ int mqdiff, mquant; /* MB quantization */ int ttmb = v->ttfrm; /* MB Tra...
false
FFmpeg
d2779ecd8b1fb9dc8a8f37a75ff8c3b077f3143e
static int vc1_decode_p_mb(VC1Context *v, DCTELEM block[6][64]) { MpegEncContext *s = &v->s; GetBitContext *gb = &s->gb; int i, j; int mb_pos = s->mb_x + s->mb_y * s->mb_stride; int cbp; int mqdiff, mquant; int ttmb = v->ttfrm; int status; static const int size_table[6...
{ "code": [], "line_no": [] }
static int FUNC_0(VC1Context *VAR_0, DCTELEM VAR_1[6][64]) { MpegEncContext *s = &VAR_0->s; GetBitContext *gb = &s->gb; int VAR_2, VAR_3; int VAR_4 = s->mb_x + s->mb_y * s->mb_stride; int VAR_5; int VAR_6, VAR_7; int VAR_8 = VAR_0->ttfrm; int VAR_9; static const int VA...
[ "static int FUNC_0(VC1Context *VAR_0, DCTELEM VAR_1[6][64])\n{", "MpegEncContext *s = &VAR_0->s;", "GetBitContext *gb = &s->gb;", "int VAR_2, VAR_3;", "int VAR_4 = s->mb_x + s->mb_y * s->mb_stride;", "int VAR_5;", "int VAR_6, VAR_7;", "int VAR_8 = VAR_0->ttfrm;", "int VAR_9;", "static const int VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47,...
5,760
int avfilter_parse_graph(AVFilterGraph *graph, const char *filters, AVFilterInOut *open_inputs, AVFilterInOut *open_outputs, AVClass *log_ctx) { int index = 0; char chr = 0; AVFilterInOut *curr_inputs = NULL; do { AVFilterContext *fil...
false
FFmpeg
fd51ff1643329dc294412bc5b146c08b19fa73e2
int avfilter_parse_graph(AVFilterGraph *graph, const char *filters, AVFilterInOut *open_inputs, AVFilterInOut *open_outputs, AVClass *log_ctx) { int index = 0; char chr = 0; AVFilterInOut *curr_inputs = NULL; do { AVFilterContext *fil...
{ "code": [], "line_no": [] }
int FUNC_0(AVFilterGraph *VAR_0, const char *VAR_1, AVFilterInOut *VAR_2, AVFilterInOut *VAR_3, AVClass *VAR_4) { int VAR_5 = 0; char VAR_6 = 0; AVFilterInOut *curr_inputs = NULL; do { AVFilterContext *filter; VAR_1 += consum...
[ "int FUNC_0(AVFilterGraph *VAR_0, const char *VAR_1,\nAVFilterInOut *VAR_2,\nAVFilterInOut *VAR_3, AVClass *VAR_4)\n{", "int VAR_5 = 0;", "char VAR_6 = 0;", "AVFilterInOut *curr_inputs = NULL;", "do {", "AVFilterContext *filter;", "VAR_1 += consume_whitespace(VAR_1);", "if(parse_inputs(&VAR_1, &curr_i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27, 29 ], [ 33 ], [ 37, 39 ], [ 43 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 57, 59 ], [ 63, 65, 67 ...
5,763
int ff_mpv_frame_size_alloc(MpegEncContext *s, int linesize) { int alloc_size = FFALIGN(FFABS(linesize) + 64, 32); // edge emu needs blocksize + filter length - 1 // (= 17x17 for halfpel / 21x21 for h264) // VC1 computes luma and chroma simultaneously and needs 19X19 + 9x9 // at uvlinesize...
false
FFmpeg
73db0bf1b06084022db5f42377b3b7960b3d3f5e
int ff_mpv_frame_size_alloc(MpegEncContext *s, int linesize) { int alloc_size = FFALIGN(FFABS(linesize) + 64, 32); FF_ALLOCZ_OR_GOTO(s->avctx, s->edge_emu_buffer, alloc_size * 4 * 24, fail); FF_ALLOCZ_OR_GOTO(s->avctx, s->me.scratchpad, alloc_size...
{ "code": [], "line_no": [] }
int FUNC_0(MpegEncContext *VAR_0, int VAR_1) { int VAR_2 = FFALIGN(FFABS(VAR_1) + 64, 32); FF_ALLOCZ_OR_GOTO(VAR_0->avctx, VAR_0->edge_emu_buffer, VAR_2 * 4 * 24, fail); FF_ALLOCZ_OR_GOTO(VAR_0->avctx, VAR_0->me.scratchpad, VAR_2 * 2 * 16 * 2, ...
[ "int FUNC_0(MpegEncContext *VAR_0, int VAR_1)\n{", "int VAR_2 = FFALIGN(FFABS(VAR_1) + 64, 32);", "FF_ALLOCZ_OR_GOTO(VAR_0->avctx, VAR_0->edge_emu_buffer, VAR_2 * 4 * 24,\nfail);", "FF_ALLOCZ_OR_GOTO(VAR_0->avctx, VAR_0->me.scratchpad, VAR_2 * 2 * 16 * 2,\nfail)\nVAR_0->me.temp = VAR_0->me.scratchpad;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 19, 21 ], [ 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ] ]
5,764
static av_cold int cook_decode_init(AVCodecContext *avctx) { COOKContext *q = avctx->priv_data; const uint8_t *edata_ptr = avctx->extradata; const uint8_t *edata_ptr_end = edata_ptr + avctx->extradata_size; int extradata_size = avctx->extradata_size; int s = 0; unsigned int channel_mask =...
false
FFmpeg
352c878de6fca57a3f2a6369e27ca442fa5f9518
static av_cold int cook_decode_init(AVCodecContext *avctx) { COOKContext *q = avctx->priv_data; const uint8_t *edata_ptr = avctx->extradata; const uint8_t *edata_ptr_end = edata_ptr + avctx->extradata_size; int extradata_size = avctx->extradata_size; int s = 0; unsigned int channel_mask =...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { COOKContext *q = avctx->priv_data; const uint8_t *VAR_0 = avctx->extradata; const uint8_t *VAR_1 = VAR_0 + avctx->VAR_2; int VAR_2 = avctx->VAR_2; int VAR_3 = 0; unsigned int VAR_4 = 0; q->avctx = avctx; if (VAR_2 <= 0) ...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "COOKContext *q = avctx->priv_data;", "const uint8_t *VAR_0 = avctx->extradata;", "const uint8_t *VAR_1 = VAR_0 + avctx->VAR_2;", "int VAR_2 = avctx->VAR_2;", "int VAR_3 = 0;", "unsigned int VAR_4 = 0;", "q->avctx = avctx;", "if (VAR_2 <= 0) {",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 51 ], [ 57 ], [ 59 ...
5,765
static int http_read(URLContext *h, uint8_t *buf, int size) { HTTPContext *s = h->priv_data; int size1, len; size1 = size; while (size > 0) { /* read bytes from input buffer first */ len = s->buf_end - s->buf_ptr; if (len > 0) { if (len > size) ...
false
FFmpeg
9eef2b77b29189606148e1fdf5d6c8d7b52b08b0
static int http_read(URLContext *h, uint8_t *buf, int size) { HTTPContext *s = h->priv_data; int size1, len; size1 = size; while (size > 0) { len = s->buf_end - s->buf_ptr; if (len > 0) { if (len > size) len = size; memcpy(buf...
{ "code": [], "line_no": [] }
static int FUNC_0(URLContext *VAR_0, uint8_t *VAR_1, int VAR_2) { HTTPContext *s = VAR_0->priv_data; int VAR_3, VAR_4; VAR_3 = VAR_2; while (VAR_2 > 0) { VAR_4 = s->buf_end - s->buf_ptr; if (VAR_4 > 0) { if (VAR_4 > VAR_2) VAR_4 = VAR_2; ...
[ "static int FUNC_0(URLContext *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "HTTPContext *s = VAR_0->priv_data;", "int VAR_3, VAR_4;", "VAR_3 = VAR_2;", "while (VAR_2 > 0) {", "VAR_4 = s->buf_end - s->buf_ptr;", "if (VAR_4 > 0) {", "if (VAR_4 > VAR_2)\nVAR_4 = VAR_2;", "memcpy(VAR_1, s->buf_ptr, VAR_4);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], ...
5,766
static void dump_json_image_info_list(ImageInfoList *list) { Error *local_err = NULL; QString *str; QmpOutputVisitor *ov = qmp_output_visitor_new(); QObject *obj; visit_type_ImageInfoList(qmp_output_get_visitor(ov), NULL, &list, &local_err); obj = qmp_output_...
true
qemu
911ee36d411ee9b3540855642b53219b6a974992
static void dump_json_image_info_list(ImageInfoList *list) { Error *local_err = NULL; QString *str; QmpOutputVisitor *ov = qmp_output_visitor_new(); QObject *obj; visit_type_ImageInfoList(qmp_output_get_visitor(ov), NULL, &list, &local_err); obj = qmp_output_...
{ "code": [ " Error *local_err = NULL;", " Error *local_err = NULL;", " &local_err);", " Error *local_err = NULL;" ], "line_no": [ 5, 5, 15, 5 ] }
static void FUNC_0(ImageInfoList *VAR_0) { Error *local_err = NULL; QString *str; QmpOutputVisitor *ov = qmp_output_visitor_new(); QObject *obj; visit_type_ImageInfoList(qmp_output_get_visitor(ov), NULL, &VAR_0, &local_err); obj = qmp_output_get_qobject(ov); ...
[ "static void FUNC_0(ImageInfoList *VAR_0)\n{", "Error *local_err = NULL;", "QString *str;", "QmpOutputVisitor *ov = qmp_output_visitor_new();", "QObject *obj;", "visit_type_ImageInfoList(qmp_output_get_visitor(ov), NULL, &VAR_0,\n&local_err);", "obj = qmp_output_get_qobject(ov);", "str = qobject_to_js...
[ 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
5,769
static void setup_frame(int sig, struct target_sigaction *ka, target_sigset_t *set, CPUS390XState *env) { sigframe *frame; abi_ulong frame_addr; frame_addr = get_sigframe(ka, env, sizeof(*frame)); qemu_log("%s: frame_addr 0x%llx\n", __FUNCTION__, (unsigned l...
true
qemu
0188fadb7fe460d8c4c743372b1f7b25773e183e
static void setup_frame(int sig, struct target_sigaction *ka, target_sigset_t *set, CPUS390XState *env) { sigframe *frame; abi_ulong frame_addr; frame_addr = get_sigframe(ka, env, sizeof(*frame)); qemu_log("%s: frame_addr 0x%llx\n", __FUNCTION__, (unsigned l...
{ "code": [ " unlock_user_struct(frame, frame_addr, 1);", " unlock_user_struct(frame, frame_addr, 1);", " if (__put_user(set->sig[0], &frame->sc.oldmask[0])) {", " goto give_sigsegv;", " if (__put_user(S390_SYSCALL_OPCODE | TARGET_NR_sigreturn,", " ...
static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1, target_sigset_t *VAR_2, CPUS390XState *VAR_3) { sigframe *frame; abi_ulong frame_addr; frame_addr = get_sigframe(VAR_1, VAR_3, sizeof(*frame)); qemu_log("%s: frame_addr 0x%llx\n", __FUNCTION__, (u...
[ "static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1,\ntarget_sigset_t *VAR_2, CPUS390XState *VAR_3)\n{", "sigframe *frame;", "abi_ulong frame_addr;", "frame_addr = get_sigframe(VAR_1, VAR_3, sizeof(*frame));", "qemu_log(\"%s: frame_addr 0x%llx\\n\", __FUNCTION__,\n(unsigned long long)frame_addr);"...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41, 43 ], [ 51 ], [ 53, 55 ], [ 57 ], [ 59,...
5,770
av_cold void ff_vc2enc_free_transforms(VC2TransformContext *s) { av_freep(&s->buffer); }
true
FFmpeg
3228ac730c11eca49d5680d5550128e397061c85
av_cold void ff_vc2enc_free_transforms(VC2TransformContext *s) { av_freep(&s->buffer); }
{ "code": [ " av_freep(&s->buffer);" ], "line_no": [ 5 ] }
av_cold void FUNC_0(VC2TransformContext *s) { av_freep(&s->buffer); }
[ "av_cold void FUNC_0(VC2TransformContext *s)\n{", "av_freep(&s->buffer);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
5,771
static int find_snapshot_by_id_or_name(BlockDriverState *bs, const char *name) { BDRVQcowState *s = bs->opaque; int i, ret; ret = find_snapshot_by_id(bs, name); if (ret >= 0) return ret; for(i = 0; i < s->nb_snapshots; i++) { if (!strcmp(s->snapshots[i].name, name)) ...
true
qemu
a89d89d3e65800fa4a8e00de7af0ea8272bef779
static int find_snapshot_by_id_or_name(BlockDriverState *bs, const char *name) { BDRVQcowState *s = bs->opaque; int i, ret; ret = find_snapshot_by_id(bs, name); if (ret >= 0) return ret; for(i = 0; i < s->nb_snapshots; i++) { if (!strcmp(s->snapshots[i].name, name)) ...
{ "code": [ " for(i = 0; i < s->nb_snapshots; i++) {", " return i;", "static int find_snapshot_by_id_or_name(BlockDriverState *bs, const char *name)", " BDRVQcowState *s = bs->opaque;", " int i, ret;", " ret = find_snapshot_by_id(bs, name);", " if (ret >= 0)", ...
static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1) { BDRVQcowState *s = VAR_0->opaque; int VAR_2, VAR_3; VAR_3 = find_snapshot_by_id(VAR_0, VAR_1); if (VAR_3 >= 0) return VAR_3; for(VAR_2 = 0; VAR_2 < s->nb_snapshots; VAR_2++) { if (!strcmp(s->snapshots[VAR_2].VA...
[ "static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int VAR_2, VAR_3;", "VAR_3 = find_snapshot_by_id(VAR_0, VAR_1);", "if (VAR_3 >= 0)\nreturn VAR_3;", "for(VAR_2 = 0; VAR_2 < s->nb_snapshots; VAR_2++) {", "if (!strcmp(s->snapshots[VAR_2].VAR_1, VAR_...
[ 1, 1, 1, 1, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ] ]
5,772
void bdrv_reset_dirty(BlockDriverState *bs, int64_t cur_sector, int nr_sectors) { BdrvDirtyBitmap *bitmap; QLIST_FOREACH(bitmap, &bs->dirty_bitmaps, list) { hbitmap_reset(bitmap->bitmap, cur_sector, nr_sectors); } }
true
qemu
c4237dfa635900e4d1cdc6038d5efe3507f45f0c
void bdrv_reset_dirty(BlockDriverState *bs, int64_t cur_sector, int nr_sectors) { BdrvDirtyBitmap *bitmap; QLIST_FOREACH(bitmap, &bs->dirty_bitmaps, list) { hbitmap_reset(bitmap->bitmap, cur_sector, nr_sectors); } }
{ "code": [ "void bdrv_reset_dirty(BlockDriverState *bs, int64_t cur_sector, int nr_sectors)" ], "line_no": [ 1 ] }
void FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2) { BdrvDirtyBitmap *bitmap; QLIST_FOREACH(bitmap, &VAR_0->dirty_bitmaps, list) { hbitmap_reset(bitmap->bitmap, VAR_1, VAR_2); } }
[ "void FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2)\n{", "BdrvDirtyBitmap *bitmap;", "QLIST_FOREACH(bitmap, &VAR_0->dirty_bitmaps, list) {", "hbitmap_reset(bitmap->bitmap, VAR_1, VAR_2);", "}", "}" ]
[ 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
5,773
static av_cold int v410_encode_init(AVCodecContext *avctx) { if (avctx->width & 1) { av_log(avctx, AV_LOG_ERROR, "v410 requires even width.\n"); return AVERROR_INVALIDDATA; } avctx->coded_frame = av_frame_alloc(); if (!avctx->coded_frame) { av_log(avctx, AV_LOG_ERROR,...
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int v410_encode_init(AVCodecContext *avctx) { if (avctx->width & 1) { av_log(avctx, AV_LOG_ERROR, "v410 requires even width.\n"); return AVERROR_INVALIDDATA; } avctx->coded_frame = av_frame_alloc(); if (!avctx->coded_frame) { av_log(avctx, AV_LOG_ERROR,...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { if (avctx->width & 1) { av_log(avctx, AV_LOG_ERROR, "v410 requires even width.\n"); return AVERROR_INVALIDDATA; } avctx->coded_frame = av_frame_alloc(); if (!avctx->coded_frame) { av_log(avctx, AV_LOG_ERROR, "Could no...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "if (avctx->width & 1) {", "av_log(avctx, AV_LOG_ERROR, \"v410 requires even width.\\n\");", "return AVERROR_INVALIDDATA;", "}", "avctx->coded_frame = av_frame_alloc();", "if (!avctx->coded_frame) {", "av_log(avctx, AV_LOG_ERROR, \"Could not alloc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ] ]
5,774
static inline int svq3_decode_block(GetBitContext *gb, DCTELEM *block, int index, const int type) { static const uint8_t *const scan_patterns[4] = { luma_dc_zigzag_scan, zigzag_scan, svq3_scan, chroma_dc_scan }; int run, level, sign, vlc, limit; const int intr...
false
FFmpeg
979bea13003ef489d95d2538ac2fb1c26c6f103b
static inline int svq3_decode_block(GetBitContext *gb, DCTELEM *block, int index, const int type) { static const uint8_t *const scan_patterns[4] = { luma_dc_zigzag_scan, zigzag_scan, svq3_scan, chroma_dc_scan }; int run, level, sign, vlc, limit; const int intr...
{ "code": [], "line_no": [] }
static inline int FUNC_0(GetBitContext *VAR_0, DCTELEM *VAR_1, int VAR_2, const int VAR_3) { static const uint8_t *const VAR_4[4] = { luma_dc_zigzag_scan, zigzag_scan, svq3_scan, chroma_dc_scan }; int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; const int VAR_10 = (3 * ...
[ "static inline int FUNC_0(GetBitContext *VAR_0, DCTELEM *VAR_1,\nint VAR_2, const int VAR_3)\n{", "static const uint8_t *const VAR_4[4] =\n{ luma_dc_zigzag_scan, zigzag_scan, svq3_scan, chroma_dc_scan };", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "const int VAR_10 = (3 * VAR_3) >> 2;", "const uint8_t *cons...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
5,775
static void pci_device_class_init(ObjectClass *klass, void *data) { DeviceClass *k = DEVICE_CLASS(klass); k->init = pci_qdev_init; k->exit = pci_unregister_device; k->bus_type = TYPE_PCI_BUS; k->props = pci_props; }
true
qemu
133e9b228df16d11de01529c217417e78d1d9370
static void pci_device_class_init(ObjectClass *klass, void *data) { DeviceClass *k = DEVICE_CLASS(klass); k->init = pci_qdev_init; k->exit = pci_unregister_device; k->bus_type = TYPE_PCI_BUS; k->props = pci_props; }
{ "code": [ " k->init = pci_qdev_init;", " k->exit = pci_unregister_device;" ], "line_no": [ 7, 9 ] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *k = DEVICE_CLASS(VAR_0); k->init = pci_qdev_init; k->exit = pci_unregister_device; k->bus_type = TYPE_PCI_BUS; k->props = pci_props; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *k = DEVICE_CLASS(VAR_0);", "k->init = pci_qdev_init;", "k->exit = pci_unregister_device;", "k->bus_type = TYPE_PCI_BUS;", "k->props = pci_props;", "}" ]
[ 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
5,776
CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*init)(struct CharDriverState *s)) { const char *p; CharDriverState *chr; QemuOpts *opts; if (strstart(filename, "chardev:", &p)) { return qemu_chr_find(p); } opts = qemu_chr_parse_compat(label, fil...
true
qemu
363f8cb9bcd308bd03d28e04ea5f5557dea5d5e8
CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*init)(struct CharDriverState *s)) { const char *p; CharDriverState *chr; QemuOpts *opts; if (strstart(filename, "chardev:", &p)) { return qemu_chr_find(p); } opts = qemu_chr_parse_compat(label, fil...
{ "code": [], "line_no": [] }
CharDriverState *FUNC_0(const char *label, const char *filename, void (*init)(struct CharDriverState *s)) { const char *VAR_0; CharDriverState *chr; QemuOpts *opts; if (strstart(filename, "chardev:", &VAR_0)) { return qemu_chr_find(VAR_0); } opts = qemu_chr_parse_compat(label...
[ "CharDriverState *FUNC_0(const char *label, const char *filename, void (*init)(struct CharDriverState *s))\n{", "const char *VAR_0;", "CharDriverState *chr;", "QemuOpts *opts;", "if (strstart(filename, \"chardev:\", &VAR_0)) {", "return qemu_chr_find(VAR_0);", "}", "opts = qemu_chr_parse_compat(label,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 38 ], [ 40 ] ]
5,777
static int print_drive(DeviceState *dev, Property *prop, char *dest, size_t len) { DriveInfo **ptr = qdev_get_prop_ptr(dev, prop); return snprintf(dest, len, "%s", (*ptr)->id); }
true
qemu
41b5e892b7dbf553b356b51004a6966233e71a6d
static int print_drive(DeviceState *dev, Property *prop, char *dest, size_t len) { DriveInfo **ptr = qdev_get_prop_ptr(dev, prop); return snprintf(dest, len, "%s", (*ptr)->id); }
{ "code": [ " return snprintf(dest, len, \"%s\", (*ptr)->id);" ], "line_no": [ 7 ] }
static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, char *VAR_2, size_t VAR_3) { DriveInfo **ptr = qdev_get_prop_ptr(VAR_0, VAR_1); return snprintf(VAR_2, VAR_3, "%s", (*ptr)->id); }
[ "static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, char *VAR_2, size_t VAR_3)\n{", "DriveInfo **ptr = qdev_get_prop_ptr(VAR_0, VAR_1);", "return snprintf(VAR_2, VAR_3, \"%s\", (*ptr)->id);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
5,778
static int find_headers_search_validate(FLACParseContext *fpc, int offset) { FLACFrameInfo fi; uint8_t *header_buf; int size = 0; header_buf = flac_fifo_read_wrap(fpc, offset, MAX_FRAME_HEADER_SIZE, &fpc->wrap_buf, ...
true
FFmpeg
6c3cb02a742f0ce32a85e86738a18e3d6d711d59
static int find_headers_search_validate(FLACParseContext *fpc, int offset) { FLACFrameInfo fi; uint8_t *header_buf; int size = 0; header_buf = flac_fifo_read_wrap(fpc, offset, MAX_FRAME_HEADER_SIZE, &fpc->wrap_buf, ...
{ "code": [], "line_no": [] }
static int FUNC_0(FLACParseContext *VAR_0, int VAR_1) { FLACFrameInfo fi; uint8_t *header_buf; int VAR_2 = 0; header_buf = flac_fifo_read_wrap(VAR_0, VAR_1, MAX_FRAME_HEADER_SIZE, &VAR_0->wrap_buf, ...
[ "static int FUNC_0(FLACParseContext *VAR_0, int VAR_1)\n{", "FLACFrameInfo fi;", "uint8_t *header_buf;", "int VAR_2 = 0;", "header_buf = flac_fifo_read_wrap(VAR_0, VAR_1,\nMAX_FRAME_HEADER_SIZE,\n&VAR_0->wrap_buf,\n&VAR_0->wrap_buf_allocated_size);", "if (frame_header_is_valid(VAR_0->avctx, header_buf, &f...
[ 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 ], [ 22 ], [ 23, ...
5,779
void ppc_set_compat(PowerPCCPU *cpu, uint32_t compat_pvr, Error **errp) { const CompatInfo *compat = compat_by_pvr(compat_pvr); CPUPPCState *env = &cpu->env; PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); uint64_t pcr; if (!compat_pvr) { pcr = 0; } else if (!compat) { ...
true
qemu
9d2179d6f960aef1b8aab4d014fd8385f0a187e5
void ppc_set_compat(PowerPCCPU *cpu, uint32_t compat_pvr, Error **errp) { const CompatInfo *compat = compat_by_pvr(compat_pvr); CPUPPCState *env = &cpu->env; PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu); uint64_t pcr; if (!compat_pvr) { pcr = 0; } else if (!compat) { ...
{ "code": [], "line_no": [] }
void FUNC_0(PowerPCCPU *VAR_0, uint32_t VAR_1, Error **VAR_2) { const CompatInfo *VAR_3 = compat_by_pvr(VAR_1); CPUPPCState *env = &VAR_0->env; PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(VAR_0); uint64_t pcr; if (!VAR_1) { pcr = 0; } else if (!VAR_3) { error_setg(VAR...
[ "void FUNC_0(PowerPCCPU *VAR_0, uint32_t VAR_1, Error **VAR_2)\n{", "const CompatInfo *VAR_3 = compat_by_pvr(VAR_1);", "CPUPPCState *env = &VAR_0->env;", "PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(VAR_0);", "uint64_t pcr;", "if (!VAR_1) {", "pcr = 0;", "} else if (!VAR_3) {", "error_setg(VAR_2, \...
[ 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 ], [ 28 ], [ 30 ], [ 32 ], [ 36 ], [ 38 ], [ 42 ], [ 44 ], [ 46 ], [ 48, 50 ], [ 52 ], [...
5,780
static int mxf_timestamp_to_str(uint64_t timestamp, char **str) { struct tm time = { 0 }; time.tm_year = (timestamp >> 48) - 1900; time.tm_mon = (timestamp >> 40 & 0xFF) - 1; time.tm_mday = (timestamp >> 32 & 0xFF); time.tm_hour = (timestamp >> 24 & 0xFF); time.tm_min = (timestamp >> 16 & 0xFF...
true
FFmpeg
8cafeb8bca5d079041739dbd72ccec0ead138eaf
static int mxf_timestamp_to_str(uint64_t timestamp, char **str) { struct tm time = { 0 }; time.tm_year = (timestamp >> 48) - 1900; time.tm_mon = (timestamp >> 40 & 0xFF) - 1; time.tm_mday = (timestamp >> 32 & 0xFF); time.tm_hour = (timestamp >> 24 & 0xFF); time.tm_min = (timestamp >> 16 & 0xFF...
{ "code": [], "line_no": [] }
static int FUNC_0(uint64_t VAR_0, char **VAR_1) { struct tm VAR_2 = { 0 }; VAR_2.tm_year = (VAR_0 >> 48) - 1900; VAR_2.tm_mon = (VAR_0 >> 40 & 0xFF) - 1; VAR_2.tm_mday = (VAR_0 >> 32 & 0xFF); VAR_2.tm_hour = (VAR_0 >> 24 & 0xFF); VAR_2.tm_min = (VAR_0 >> 16 & 0xFF); VAR_2.tm_sec = (VAR_0 ...
[ "static int FUNC_0(uint64_t VAR_0, char **VAR_1)\n{", "struct tm VAR_2 = { 0 };", "VAR_2.tm_year = (VAR_0 >> 48) - 1900;", "VAR_2.tm_mon = (VAR_0 >> 40 & 0xFF) - 1;", "VAR_2.tm_mday = (VAR_0 >> 32 & 0xFF);", "VAR_2.tm_hour = (VAR_0 >> 24 & 0xFF);", "VAR_2.tm_min = (VAR_0 >> 16 & 0xFF);", "VAR_2.tm_s...
[ 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 ] ]
5,782
static int check_pkt(AVFormatContext *s, AVPacket *pkt) { MOVMuxContext *mov = s->priv_data; MOVTrack *trk = &mov->tracks[pkt->stream_index]; if (trk->entry) { int64_t duration = pkt->dts - trk->cluster[trk->entry - 1].dts; if (duration < 0 || duration > INT_MAX) { av_lo...
false
FFmpeg
51000b994514e64a6c5039e179f20c9e24f87c45
static int check_pkt(AVFormatContext *s, AVPacket *pkt) { MOVMuxContext *mov = s->priv_data; MOVTrack *trk = &mov->tracks[pkt->stream_index]; if (trk->entry) { int64_t duration = pkt->dts - trk->cluster[trk->entry - 1].dts; if (duration < 0 || duration > INT_MAX) { av_lo...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { MOVMuxContext *mov = VAR_0->priv_data; MOVTrack *trk = &mov->tracks[VAR_1->stream_index]; if (trk->entry) { int64_t duration = VAR_1->dts - trk->cluster[trk->entry - 1].dts; if (duration < 0 || duration > INT_MAX) { ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "MOVMuxContext *mov = VAR_0->priv_data;", "MOVTrack *trk = &mov->tracks[VAR_1->stream_index];", "if (trk->entry) {", "int64_t duration = VAR_1->dts - trk->cluster[trk->entry - 1].dts;", "if (duration < 0 || duration > INT_MAX) {", "av_log(...
[ 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 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35, 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51...
5,783
static int get_siz(Jpeg2000DecoderContext *s) { int i; if (bytestream2_get_bytes_left(&s->g) < 36) return AVERROR(EINVAL); s->avctx->profile = bytestream2_get_be16u(&s->g); // Rsiz s->width = bytestream2_get_be32u(&s->g); // Width s->height = bytestream2_get_be32u...
false
FFmpeg
129edcb50facad324d80a1e28b6d4be05ce70ab7
static int get_siz(Jpeg2000DecoderContext *s) { int i; if (bytestream2_get_bytes_left(&s->g) < 36) return AVERROR(EINVAL); s->avctx->profile = bytestream2_get_be16u(&s->g); s->width = bytestream2_get_be32u(&s->g); s->height = bytestream2_get_be32u(&s->g); ...
{ "code": [], "line_no": [] }
static int FUNC_0(Jpeg2000DecoderContext *VAR_0) { int VAR_1; if (bytestream2_get_bytes_left(&VAR_0->g) < 36) return AVERROR(EINVAL); VAR_0->avctx->profile = bytestream2_get_be16u(&VAR_0->g); VAR_0->width = bytestream2_get_be32u(&VAR_0->g); VAR_0->height = bytes...
[ "static int FUNC_0(Jpeg2000DecoderContext *VAR_0)\n{", "int VAR_1;", "if (bytestream2_get_bytes_left(&VAR_0->g) < 36)\nreturn AVERROR(EINVAL);", "VAR_0->avctx->profile = bytestream2_get_be16u(&VAR_0->g);", "VAR_0->width = bytestream2_get_be32u(&VAR_0->g);", "VAR_0->height = bytestream2_ge...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 51...
5,784
void qemu_start_incoming_migration(const char *uri, Error **errp) { const char *p; if (strstart(uri, "tcp:", &p)) tcp_start_incoming_migration(p, errp); #ifdef CONFIG_RDMA else if (strstart(uri, "rdma:", &p)) rdma_start_incoming_migration(p, errp); #endif #if !defined(WIN32) ...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
void qemu_start_incoming_migration(const char *uri, Error **errp) { const char *p; if (strstart(uri, "tcp:", &p)) tcp_start_incoming_migration(p, errp); #ifdef CONFIG_RDMA else if (strstart(uri, "rdma:", &p)) rdma_start_incoming_migration(p, errp); #endif #if !defined(WIN32) ...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, Error **VAR_1) { const char *VAR_2; if (strstart(VAR_0, "tcp:", &VAR_2)) tcp_start_incoming_migration(VAR_2, VAR_1); #ifdef CONFIG_RDMA else if (strstart(VAR_0, "rdma:", &VAR_2)) rdma_start_incoming_migration(VAR_2, VAR_1); #endif #if !defined(WIN32)...
[ "void FUNC_0(const char *VAR_0, Error **VAR_1)\n{", "const char *VAR_2;", "if (strstart(VAR_0, \"tcp:\", &VAR_2))\ntcp_start_incoming_migration(VAR_2, VAR_1);", "#ifdef CONFIG_RDMA\nelse if (strstart(VAR_0, \"rdma:\", &VAR_2))\nrdma_start_incoming_migration(VAR_2, VAR_1);", "#endif\n#if !defined(WIN32)\nels...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15, 17 ], [ 19, 21, 23, 25 ], [ 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ] ]
5,785
static int decode_frame_mp3on4(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MP3On4DecodeContext *s = avctx->priv_data; MPADecodeContext *m; int fsize, len = ...
true
FFmpeg
3e13005cac6e076053276b515f5fcf59a3f4b65d
static int decode_frame_mp3on4(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MP3On4DecodeContext *s = avctx->priv_data; MPADecodeContext *m; int fsize, len = ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; MP3On4DecodeContext *s = VAR_0->priv_data; MPADecodeContext *m; int VAR_6, VAR_7 = VAR_5, VAR_8 = 0; ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "MP3On4DecodeContext *s = VAR_0->priv_data;", "MPADecodeContext *m;", "int VAR_6, VAR_7 = VAR_5, VAR_8 = 0;", "uint32_t 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 38 ], [ 44, 51 ], [ 55 ], [ 59 ], [ 61 ...
5,786
void OPPROTO op_subfo (void) { do_subfo(); RETURN(); }
true
qemu
d9bce9d99f4656ae0b0127f7472db9067b8f84ab
void OPPROTO op_subfo (void) { do_subfo(); RETURN(); }
{ "code": [ " RETURN();", "void OPPROTO op_subfo (void)", " do_subfo();", " RETURN();" ], "line_no": [ 7, 1, 5, 7 ] }
void VAR_0 op_subfo (void) { do_subfo(); RETURN(); }
[ "void VAR_0 op_subfo (void)\n{", "do_subfo();", "RETURN();", "}" ]
[ 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
5,787
static void ehci_port_test(struct qhc *hc, int port, uint32_t expect) { void *addr = hc->base + 0x64 + 4 * port; uint32_t value = qpci_io_readl(hc->dev, addr); uint16_t mask = ~(PORTSC_CSC | PORTSC_PEDC | PORTSC_OCC); #if 0 fprintf(stderr, "%s: %d, have 0x%08x, want 0x%08x\n", __fun...
true
qemu
b4ba67d9a702507793c2724e56f98e9b0f7be02b
static void ehci_port_test(struct qhc *hc, int port, uint32_t expect) { void *addr = hc->base + 0x64 + 4 * port; uint32_t value = qpci_io_readl(hc->dev, addr); uint16_t mask = ~(PORTSC_CSC | PORTSC_PEDC | PORTSC_OCC); #if 0 fprintf(stderr, "%s: %d, have 0x%08x, want 0x%08x\n", __fun...
{ "code": [ " void *addr = hc->base + 0x64 + 4 * port;", " uint32_t value = qpci_io_readl(hc->dev, addr);" ], "line_no": [ 5, 7 ] }
static void FUNC_0(struct qhc *VAR_0, int VAR_1, uint32_t VAR_2) { void *VAR_3 = VAR_0->base + 0x64 + 4 * VAR_1; uint32_t value = qpci_io_readl(VAR_0->dev, VAR_3); uint16_t mask = ~(PORTSC_CSC | PORTSC_PEDC | PORTSC_OCC); #if 0 fprintf(stderr, "%s: %d, have 0x%08x, want 0x%08x\n", _...
[ "static void FUNC_0(struct qhc *VAR_0, int VAR_1, uint32_t VAR_2)\n{", "void *VAR_3 = VAR_0->base + 0x64 + 4 * VAR_1;", "uint32_t value = qpci_io_readl(VAR_0->dev, VAR_3);", "uint16_t mask = ~(PORTSC_CSC | PORTSC_PEDC | PORTSC_OCC);", "#if 0\nfprintf(stderr, \"%s: %d, have 0x%08x, want 0x%08x\\n\",\n__func_...
[ 0, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15, 17 ], [ 19, 21 ], [ 23 ] ]
5,788
static int read_dcs(AVCodecContext *avctx, GetBitContext *gb, Bundle *b, int start_bits, int has_sign) { int i, j, len, len2, bsize, sign, v, v2; int16_t *dst = (int16_t*)b->cur_dec; CHECK_READ_VAL(gb, b, len); v = get_bits(gb, start_bits - has_sign); if (v && has_sign) ...
true
FFmpeg
a00676e48e49a3d794d6d2063ceca539e945a4a4
static int read_dcs(AVCodecContext *avctx, GetBitContext *gb, Bundle *b, int start_bits, int has_sign) { int i, j, len, len2, bsize, sign, v, v2; int16_t *dst = (int16_t*)b->cur_dec; CHECK_READ_VAL(gb, b, len); v = get_bits(gb, start_bits - has_sign); if (v && has_sign) ...
{ "code": [ " int16_t *dst = (int16_t*)b->cur_dec;" ], "line_no": [ 9 ] }
static int FUNC_0(AVCodecContext *VAR_0, GetBitContext *VAR_1, Bundle *VAR_2, int VAR_3, int VAR_4) { int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12; int16_t *dst = (int16_t*)VAR_2->cur_dec; CHECK_READ_VAL(VAR_1, VAR_2, VAR_7); VAR_11 = get_bits(VAR_1, VAR_3 - ...
[ "static int FUNC_0(AVCodecContext *VAR_0, GetBitContext *VAR_1, Bundle *VAR_2,\nint VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;", "int16_t *dst = (int16_t*)VAR_2->cur_dec;", "CHECK_READ_VAL(VAR_1, VAR_2, VAR_7);", "VAR_11 = get_bits(VAR_1, VAR_3 - VAR_4);", "if (...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
5,791
static void opt_output_file(void *optctx, const char *filename) { OptionsContext *o = optctx; AVFormatContext *oc; int i, err; AVOutputFormat *file_oformat; OutputStream *ost; InputStream *ist; if (!strcmp(filename, "-")) filename = "pipe:"; err = avformat_alloc_ou...
true
FFmpeg
12bdc7b15e4f5a24842b34ba79f59ca869f8f33a
static void opt_output_file(void *optctx, const char *filename) { OptionsContext *o = optctx; AVFormatContext *oc; int i, err; AVOutputFormat *file_oformat; OutputStream *ost; InputStream *ist; if (!strcmp(filename, "-")) filename = "pipe:"; err = avformat_alloc_ou...
{ "code": [ " int index = 0, j, ret;" ], "line_no": [ 523 ] }
static void FUNC_0(void *VAR_0, const char *VAR_1) { OptionsContext *o = VAR_0; AVFormatContext *oc; int VAR_2, VAR_5; AVOutputFormat *file_oformat; OutputStream *ost; InputStream *ist; if (!strcmp(VAR_1, "-")) VAR_1 = "pipe:"; VAR_5 = avformat_alloc_output_context...
[ "static void FUNC_0(void *VAR_0, const char *VAR_1)\n{", "OptionsContext *o = VAR_0;", "AVFormatContext *oc;", "int VAR_2, VAR_5;", "AVOutputFormat *file_oformat;", "OutputStream *ost;", "InputStream *ist;", "if (!strcmp(VAR_1, \"-\"))\nVAR_1 = \"pipe:\";", "VAR_5 = avformat_alloc_output_context2(&...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ], [ 51 ], [ 53 ...
5,792
static int hdcd_integrate(HDCDContext *ctx, hdcd_state_t *state, int *flag, const int32_t *samples, int count, int stride) { uint32_t bits = 0; int result = FFMIN(state->readahead, count); int i; *flag = 0; for (i = result - 1; i >= 0; i--) { bits |= (*samples & 1) << i; /* might be...
false
FFmpeg
12759cc0345cec5a418d8caec5435297d1ec04b2
static int hdcd_integrate(HDCDContext *ctx, hdcd_state_t *state, int *flag, const int32_t *samples, int count, int stride) { uint32_t bits = 0; int result = FFMIN(state->readahead, count); int i; *flag = 0; for (i = result - 1; i >= 0; i--) { bits |= (*samples & 1) << i; s...
{ "code": [], "line_no": [] }
static int FUNC_0(HDCDContext *VAR_0, hdcd_state_t *VAR_1, int *VAR_2, const int32_t *VAR_3, int VAR_4, int VAR_5) { uint32_t bits = 0; int VAR_6 = FFMIN(VAR_1->readahead, VAR_4); int VAR_7; *VAR_2 = 0; for (VAR_7 = VAR_6 - 1; VAR_7 >= 0; VAR_7--) { bits |= (*VAR_3 & 1) << VAR_7; ...
[ "static int FUNC_0(HDCDContext *VAR_0, hdcd_state_t *VAR_1, int *VAR_2, const int32_t *VAR_3, int VAR_4, int VAR_5)\n{", "uint32_t bits = 0;", "int VAR_6 = FFMIN(VAR_1->readahead, VAR_4);", "int VAR_7;", "*VAR_2 = 0;", "for (VAR_7 = VAR_6 - 1; VAR_7 >= 0; VAR_7--) {", "bits |= (*VAR_3 & 1) << VAR_7;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 51 ], [ 53 ], [ 55 ], [...
5,793
static void gen_mtspr(DisasContext *ctx) { void (*write_cb)(DisasContext *ctx, int sprn, int gprn); uint32_t sprn = SPR(ctx->opcode); #if defined(CONFIG_USER_ONLY) write_cb = ctx->spr_cb[sprn].uea_write; #else if (ctx->pr) { write_cb = ctx->spr_cb[sprn].uea_write; } else if (ctx->...
true
qemu
4d6a0680fa425230748a2d91d81be9afe050eeb3
static void gen_mtspr(DisasContext *ctx) { void (*write_cb)(DisasContext *ctx, int sprn, int gprn); uint32_t sprn = SPR(ctx->opcode); #if defined(CONFIG_USER_ONLY) write_cb = ctx->spr_cb[sprn].uea_write; #else if (ctx->pr) { write_cb = ctx->spr_cb[sprn].uea_write; } else if (ctx->...
{ "code": [ " gen_inval_exception(ctx, POWERPC_EXCP_INVAL_SPR);", " gen_inval_exception(ctx, POWERPC_EXCP_INVAL_SPR);" ], "line_no": [ 75, 75 ] }
static void FUNC_0(DisasContext *VAR_2) { void (*VAR_1)(DisasContext *VAR_2, int VAR_2, int VAR_3); uint32_t VAR_2 = SPR(VAR_2->opcode); #if defined(CONFIG_USER_ONLY) VAR_1 = VAR_2->spr_cb[VAR_2].uea_write; #else if (VAR_2->pr) { VAR_1 = VAR_2->spr_cb[VAR_2].uea_write; } else if (...
[ "static void FUNC_0(DisasContext *VAR_2)\n{", "void (*VAR_1)(DisasContext *VAR_2, int VAR_2, int VAR_3);", "uint32_t VAR_2 = SPR(VAR_2->opcode);", "#if defined(CONFIG_USER_ONLY)\nVAR_1 = VAR_2->spr_cb[VAR_2].uea_write;", "#else\nif (VAR_2->pr) {", "VAR_1 = VAR_2->spr_cb[VAR_2].uea_write;", "} else if (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, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 49...
5,794
static void usage(const char *cmd) { printf( "Usage: %s [-m <method> -p <path>] [<options>]\n" "QEMU Guest Agent %s\n" "\n" " -m, --method transport method: one of unix-listen, virtio-serial, or\n" " isa-serial (virtio-serial is the default)\n" " -p, --path device/socket pat...
true
qemu
f789aa7baff33e74c549a249aba3ae7a364d7642
static void usage(const char *cmd) { printf( "Usage: %s [-m <method> -p <path>] [<options>]\n" "QEMU Guest Agent %s\n" "\n" " -m, --method transport method: one of unix-listen, virtio-serial, or\n" " isa-serial (virtio-serial is the default)\n" " -p, --path device/socket pat...
{ "code": [ " , cmd, QGA_VERSION, QGA_VIRTIO_PATH_DEFAULT, QGA_PIDFILE_DEFAULT);", "#endif" ], "line_no": [ 47, 35 ] }
static void FUNC_0(const char *VAR_0) { printf( "Usage: %s [-m <method> -p <path>] [<options>]\n" "QEMU Guest Agent %s\n" "\n" " -m, --method transport method: one of unix-listen, virtio-serial, or\n" " isa-serial (virtio-serial is the default)\n" " -p, --path device/socket ...
[ "static void FUNC_0(const char *VAR_0)\n{", "printf(\n\"Usage: %s [-m <method> -p <path>] [<options>]\\n\"\n\"QEMU Guest Agent %s\\n\"\n\"\\n\"\n\" -m, --method transport method: one of unix-listen, virtio-serial, or\\n\"\n\" isa-serial (virtio-serial is the default)\\n\"\n\" -p, --path ...
[ 0, 1, 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 ] ]
5,795
static void await_reference_mb_row(const H264Context *const h, H264Picture *ref, int mb_y) { int ref_field = ref->reference - 1; int ref_field_picture = ref->field_picture; int ref_height = 16 * h->mb_height >> ref_field_picture; if (!HAVE_THREAD...
true
FFmpeg
04763c6f87690b31cfcd0d324cf36a451531dcd0
static void await_reference_mb_row(const H264Context *const h, H264Picture *ref, int mb_y) { int ref_field = ref->reference - 1; int ref_field_picture = ref->field_picture; int ref_height = 16 * h->mb_height >> ref_field_picture; if (!HAVE_THREAD...
{ "code": [ "static void await_reference_mb_row(const H264Context *const h, H264Picture *ref,", " int ref_field_picture = ref->field_picture;", " ff_thread_await_progress(&ref->tf," ], "line_no": [ 1, 9, 27 ] }
static void FUNC_0(const H264Context *const VAR_0, H264Picture *VAR_1, int VAR_2) { int VAR_3 = VAR_1->reference - 1; int VAR_4 = VAR_1->field_picture; int VAR_5 = 16 * VAR_0->mb_height >> VAR_4; if (!HAVE_THREADS || !(VAR_0->avctx->active_thread...
[ "static void FUNC_0(const H264Context *const VAR_0, H264Picture *VAR_1,\nint VAR_2)\n{", "int VAR_3 = VAR_1->reference - 1;", "int VAR_4 = VAR_1->field_picture;", "int VAR_5 = 16 * VAR_0->mb_height >> VAR_4;", "if (!HAVE_THREADS || !(VAR_0->avctx->active_thread_type & FF_THREAD_FRAME))\nretur...
[ 1, 0, 1, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 27, 29, 31, 33 ], [ 35 ] ]
5,796
static int gxf_packet(AVFormatContext *s, AVPacket *pkt) { ByteIOContext *pb = s->pb; pkt_type_t pkt_type; int pkt_len; while (!url_feof(pb)) { int track_type, track_id, ret; int field_nr; if (!parse_packet_header(pb, &pkt_type, &pkt_len)) { if (!url_feof(pb))...
true
FFmpeg
6c10281c3a3c5fe0ce9c5943ed94c73ebd0a5209
static int gxf_packet(AVFormatContext *s, AVPacket *pkt) { ByteIOContext *pb = s->pb; pkt_type_t pkt_type; int pkt_len; while (!url_feof(pb)) { int track_type, track_id, ret; int field_nr; if (!parse_packet_header(pb, &pkt_type, &pkt_len)) { if (!url_feof(pb))...
{ "code": [ " pkt->stream_index = get_sindex(s, track_id, track_type);" ], "line_no": [ 73 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { ByteIOContext *pb = VAR_0->pb; pkt_type_t pkt_type; int VAR_2; while (!url_feof(pb)) { int VAR_3, VAR_4, VAR_5; int VAR_6; if (!parse_packet_header(pb, &pkt_type, &VAR_2)) { if (!url_feof(pb)) ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) {", "ByteIOContext *pb = VAR_0->pb;", "pkt_type_t pkt_type;", "int VAR_2;", "while (!url_feof(pb)) {", "int VAR_3, VAR_4, VAR_5;", "int VAR_6;", "if (!parse_packet_header(pb, &pkt_type, &VAR_2)) {", "if (!url_feof(pb))\nav_log(VAR_0, AV_LOG...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
5,798
void hmp_drive_add(Monitor *mon, const QDict *qdict) { DriveInfo *dinfo = NULL; const char *opts = qdict_get_str(qdict, "opts"); dinfo = add_init_drive(opts); if (!dinfo) { goto err; } if (dinfo->devaddr) { monitor_printf(mon, "Parameter addr not supported\n"); ...
true
qemu
f51074cdc6e750daa3b6df727d83449a7e42b391
void hmp_drive_add(Monitor *mon, const QDict *qdict) { DriveInfo *dinfo = NULL; const char *opts = qdict_get_str(qdict, "opts"); dinfo = add_init_drive(opts); if (!dinfo) { goto err; } if (dinfo->devaddr) { monitor_printf(mon, "Parameter addr not supported\n"); ...
{ "code": [ " if (pci_drive_hot_add(mon, qdict, dinfo)) {", " goto err;", " monitor_printf(mon, \"Parameter addr not supported\\n\");", " switch (dinfo->type) {", " goto err;", " goto err;", " goto err;", " goto er...
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { DriveInfo *dinfo = NULL; const char *VAR_2 = qdict_get_str(VAR_1, "VAR_2"); dinfo = add_init_drive(VAR_2); if (!dinfo) { goto err; } if (dinfo->devaddr) { monitor_printf(VAR_0, "Parameter addr not supported\n"); ...
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "DriveInfo *dinfo = NULL;", "const char *VAR_2 = qdict_get_str(VAR_1, \"VAR_2\");", "dinfo = add_init_drive(VAR_2);", "if (!dinfo) {", "goto err;", "}", "if (dinfo->devaddr) {", "monitor_printf(VAR_0, \"Parameter addr not supported\\n\");", "go...
[ 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
5,799
char *ff_AMediaCodecList_getCodecNameByType(const char *mime, int width, int height, void *log_ctx) { int ret; char *name = NULL; char *supported_type = NULL; int attached = 0; JNIEnv *env = NULL; struct JNIAMediaCodecListFields jfields = { 0 }; jobject format = NULL; jobjec...
false
FFmpeg
93f4d1646e9441b89e19073d6ad8e187bd705640
char *ff_AMediaCodecList_getCodecNameByType(const char *mime, int width, int height, void *log_ctx) { int ret; char *name = NULL; char *supported_type = NULL; int attached = 0; JNIEnv *env = NULL; struct JNIAMediaCodecListFields jfields = { 0 }; jobject format = NULL; jobjec...
{ "code": [], "line_no": [] }
char *FUNC_0(const char *VAR_0, int VAR_1, int VAR_2, void *VAR_3) { int VAR_4; char *VAR_5 = NULL; char *VAR_6 = NULL; int VAR_7 = 0; JNIEnv *env = NULL; struct JNIAMediaCodecListFields VAR_8 = { 0 }; jobject format = NULL; jobject codec = NULL; jstring tmp = NULL; ...
[ "char *FUNC_0(const char *VAR_0, int VAR_1, int VAR_2, void *VAR_3)\n{", "int VAR_4;", "char *VAR_5 = NULL;", "char *VAR_6 = NULL;", "int VAR_7 = 0;", "JNIEnv *env = NULL;", "struct JNIAMediaCodecListFields VAR_8 = { 0 };", "jobject format = NULL;", "jobject codec = NULL;", "jstring tmp = 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 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ...
5,800
static void cchip_write(void *opaque, target_phys_addr_t addr, uint64_t v32, unsigned size) { TyphoonState *s = opaque; uint64_t val, oldval, newval; if (addr & 4) { val = v32 << 32 | s->latch_tmp; addr ^= 4; } else { s->latch_tmp = v32; ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void cchip_write(void *opaque, target_phys_addr_t addr, uint64_t v32, unsigned size) { TyphoonState *s = opaque; uint64_t val, oldval, newval; if (addr & 4) { val = v32 << 32 | s->latch_tmp; addr ^= 4; } else { s->latch_tmp = v32; ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { TyphoonState *s = VAR_0; uint64_t val, oldval, newval; if (VAR_1 & 4) { val = VAR_2 << 32 | s->latch_tmp; VAR_1 ^= 4; } else { s->latch_tmp = VAR_2; ...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "TyphoonState *s = VAR_0;", "uint64_t val, oldval, newval;", "if (VAR_1 & 4) {", "val = VAR_2 << 32 | s->latch_tmp;", "VAR_1 ^= 4;", "} else {", "s->latch_tmp = VAR_2;", "return;", "}", "switch (VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 37 ], [ 41, 47 ], [ 51, 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ...
5,801
static void *atomic_mmu_lookup(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, uintptr_t retaddr) { size_t mmu_idx = get_mmuidx(oi); size_t index = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1); CPUTLBEntry *tlbe = &env->tlb_table[mmu_idx][index]; target_ulon...
false
qemu
f52bfb12143e29d7c8bd827bdb751aee47a9694e
static void *atomic_mmu_lookup(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi, uintptr_t retaddr) { size_t mmu_idx = get_mmuidx(oi); size_t index = (addr >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1); CPUTLBEntry *tlbe = &env->tlb_table[mmu_idx][index]; target_ulon...
{ "code": [], "line_no": [] }
static void *FUNC_0(CPUArchState *VAR_0, target_ulong VAR_1, TCGMemOpIdx VAR_2, uintptr_t VAR_3) { size_t mmu_idx = get_mmuidx(VAR_2); size_t index = (VAR_1 >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1); CPUTLBEntry *tlbe = &VAR_0->tlb_table[mmu_idx][index]; target_ulong...
[ "static void *FUNC_0(CPUArchState *VAR_0, target_ulong VAR_1,\nTCGMemOpIdx VAR_2, uintptr_t VAR_3)\n{", "size_t mmu_idx = get_mmuidx(VAR_2);", "size_t index = (VAR_1 >> TARGET_PAGE_BITS) & (CPU_TLB_SIZE - 1);", "CPUTLBEntry *tlbe = &VAR_0->tlb_table[mmu_idx][index];", "target_ulong tlb_addr = tlbe->addr_wri...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 45 ], [ 55 ], [ 57 ], [ 63, 65 ], [ 67 ], [ 69 ], [...
5,802
BlockAIOCB *dma_bdrv_read(BlockDriverState *bs, QEMUSGList *sg, uint64_t sector, void (*cb)(void *opaque, int ret), void *opaque) { return dma_bdrv_io(bs, sg, sector, bdrv_aio_readv, cb, opaque, DMA_DIRECTION_FROM_DEVICE); }
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
BlockAIOCB *dma_bdrv_read(BlockDriverState *bs, QEMUSGList *sg, uint64_t sector, void (*cb)(void *opaque, int ret), void *opaque) { return dma_bdrv_io(bs, sg, sector, bdrv_aio_readv, cb, opaque, DMA_DIRECTION_FROM_DEVICE); }
{ "code": [], "line_no": [] }
BlockAIOCB *FUNC_0(BlockDriverState *bs, QEMUSGList *sg, uint64_t sector, void (*cb)(void *opaque, int ret), void *opaque) { return dma_bdrv_io(bs, sg, sector, bdrv_aio_readv, cb, opaque, DMA_DIRECTION_FROM_DEVICE); }
[ "BlockAIOCB *FUNC_0(BlockDriverState *bs,\nQEMUSGList *sg, uint64_t sector,\nvoid (*cb)(void *opaque, int ret), void *opaque)\n{", "return dma_bdrv_io(bs, sg, sector, bdrv_aio_readv, cb, opaque,\nDMA_DIRECTION_FROM_DEVICE);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11 ], [ 13 ] ]
5,803
TCGv_i32 tcg_global_reg_new_i32(int reg, const char *name) { int idx; idx = tcg_global_reg_new_internal(TCG_TYPE_I32, reg, name); return MAKE_TCGV_I32(idx); }
false
qemu
b3a62939561e07bc34493444fa926b6137cba4e8
TCGv_i32 tcg_global_reg_new_i32(int reg, const char *name) { int idx; idx = tcg_global_reg_new_internal(TCG_TYPE_I32, reg, name); return MAKE_TCGV_I32(idx); }
{ "code": [], "line_no": [] }
TCGv_i32 FUNC_0(int reg, const char *name) { int VAR_0; VAR_0 = tcg_global_reg_new_internal(TCG_TYPE_I32, reg, name); return MAKE_TCGV_I32(VAR_0); }
[ "TCGv_i32 FUNC_0(int reg, const char *name)\n{", "int VAR_0;", "VAR_0 = tcg_global_reg_new_internal(TCG_TYPE_I32, reg, name);", "return MAKE_TCGV_I32(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
5,804
static void check_pred8x8l(H264PredContext *h, uint8_t *buf0, uint8_t *buf1, int codec, int chroma_format, int bit_depth) { if (chroma_format == 1 && codec_ids[codec] == AV_CODEC_ID_H264) { int pred_mode; for (pred_mode = 0; pred_mode < 12; pred_mode++) { ...
false
FFmpeg
515b69f8f8e9a24cfaee95d8c1f63f265d8582fe
static void check_pred8x8l(H264PredContext *h, uint8_t *buf0, uint8_t *buf1, int codec, int chroma_format, int bit_depth) { if (chroma_format == 1 && codec_ids[codec] == AV_CODEC_ID_H264) { int pred_mode; for (pred_mode = 0; pred_mode < 12; pred_mode++) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(H264PredContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, int VAR_3, int VAR_4, int VAR_5) { if (VAR_4 == 1 && codec_ids[VAR_3] == AV_CODEC_ID_H264) { int VAR_6; for (VAR_6 = 0; VAR_6 < 12; VAR_6++) { if (check_pred_func(VAR_0->pred8x8l[V...
[ "static void FUNC_0(H264PredContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{", "if (VAR_4 == 1 && codec_ids[VAR_3] == AV_CODEC_ID_H264) {", "int VAR_6;", "for (VAR_6 = 0; VAR_6 < 12; VAR_6++) {", "if (check_pred_func(VAR_0->pred8x8l[VAR_6], \"8x8l\", pred4x4_modes[VAR_3][...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
5,805
opts_next_list(Visitor *v, GenericList **list, Error **errp) { OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, v); GenericList **link; if (ov->repeated_opts_first) { ov->repeated_opts_first = false; link = list; } else { const QemuOpt *opt; opt = g_queue_po...
false
qemu
d95704341280fc521dc2b16bbbc5858f6647e2c3
opts_next_list(Visitor *v, GenericList **list, Error **errp) { OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, v); GenericList **link; if (ov->repeated_opts_first) { ov->repeated_opts_first = false; link = list; } else { const QemuOpt *opt; opt = g_queue_po...
{ "code": [], "line_no": [] }
FUNC_0(Visitor *VAR_0, GenericList **VAR_1, Error **VAR_2) { OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, VAR_0); GenericList **link; if (ov->repeated_opts_first) { ov->repeated_opts_first = false; link = VAR_1; } else { const QemuOpt *VAR_3; VAR_3 = g_q...
[ "FUNC_0(Visitor *VAR_0, GenericList **VAR_1, Error **VAR_2)\n{", "OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, VAR_0);", "GenericList **link;", "if (ov->repeated_opts_first) {", "ov->repeated_opts_first = false;", "link = VAR_1;", "} else {", "const QemuOpt *VAR_3;", "VAR_3 = g_queue_pop_head(o...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ] ]
5,806
static inline int gen_neon_add(int size, TCGv t0, TCGv t1) { switch (size) { case 0: gen_helper_neon_add_u8(t0, t0, t1); break; case 1: gen_helper_neon_add_u16(t0, t0, t1); break; case 2: tcg_gen_add_i32(t0, t0, t1); break; default: return 1; } return 0; }
false
qemu
62698be3bac2e4c969205f3849c48922e0e76e88
static inline int gen_neon_add(int size, TCGv t0, TCGv t1) { switch (size) { case 0: gen_helper_neon_add_u8(t0, t0, t1); break; case 1: gen_helper_neon_add_u16(t0, t0, t1); break; case 2: tcg_gen_add_i32(t0, t0, t1); break; default: return 1; } return 0; }
{ "code": [], "line_no": [] }
static inline int FUNC_0(int VAR_0, TCGv VAR_1, TCGv VAR_2) { switch (VAR_0) { case 0: gen_helper_neon_add_u8(VAR_1, VAR_1, VAR_2); break; case 1: gen_helper_neon_add_u16(VAR_1, VAR_1, VAR_2); break; case 2: tcg_gen_add_i32(VAR_1, VAR_1, VAR_2); break; default: return 1; } return 0; ...
[ "static inline int FUNC_0(int VAR_0, TCGv VAR_1, TCGv VAR_2)\n{", "switch (VAR_0) {", "case 0: gen_helper_neon_add_u8(VAR_1, VAR_1, VAR_2); break;", "case 1: gen_helper_neon_add_u16(VAR_1, VAR_1, VAR_2); break;", "case 2: tcg_gen_add_i32(VAR_1, VAR_1, VAR_2); break;", "default: return 1;", "}", "retur...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
5,807
static void bt_l2cap_sdp_sdu_in(void *opaque, const uint8_t *data, int len) { struct bt_l2cap_sdp_state_s *sdp = opaque; enum bt_sdp_cmd pdu_id; uint8_t rsp[MAX_PDU_OUT_SIZE - PDU_HEADER_SIZE], *sdu_out; int transaction_id, plen; int err = 0; int rsp_len = 0; if (len < 5) { ...
false
qemu
bf937a7965c1d1a6dce4f615d0ead2e2ab505004
static void bt_l2cap_sdp_sdu_in(void *opaque, const uint8_t *data, int len) { struct bt_l2cap_sdp_state_s *sdp = opaque; enum bt_sdp_cmd pdu_id; uint8_t rsp[MAX_PDU_OUT_SIZE - PDU_HEADER_SIZE], *sdu_out; int transaction_id, plen; int err = 0; int rsp_len = 0; if (len < 5) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, int VAR_2) { struct bt_l2cap_sdp_state_s *VAR_3 = VAR_0; enum bt_sdp_cmd VAR_4; uint8_t rsp[MAX_PDU_OUT_SIZE - PDU_HEADER_SIZE], *sdu_out; int VAR_5, VAR_6; int VAR_7 = 0; int VAR_8 = 0; if (VAR_2 < 5) { fprintf(stderr,...
[ "static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "struct bt_l2cap_sdp_state_s *VAR_3 = VAR_0;", "enum bt_sdp_cmd VAR_4;", "uint8_t rsp[MAX_PDU_OUT_SIZE - PDU_HEADER_SIZE], *sdu_out;", "int VAR_5, VAR_6;", "int VAR_7 = 0;", "int VAR_8 = 0;", "if (VAR_2 < 5) {", "fprintf(stderr, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ], [...
5,808
static inline void memcpy_tofs(void * to, const void * from, unsigned long n) { memcpy(to, from, n); }
false
qemu
edf779ffccc836661a7b654d320571a6c220caea
static inline void memcpy_tofs(void * to, const void * from, unsigned long n) { memcpy(to, from, n); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(void * VAR_0, const void * VAR_1, unsigned long VAR_2) { memcpy(VAR_0, VAR_1, VAR_2); }
[ "static inline void FUNC_0(void * VAR_0, const void * VAR_1, unsigned long VAR_2)\n{", "memcpy(VAR_0, VAR_1, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
5,809
static IOMMUTLBEntry s390_translate_iommu(MemoryRegion *iommu, hwaddr addr, bool is_write) { uint64_t pte; uint32_t flags; S390PCIBusDevice *pbdev = container_of(iommu, S390PCIBusDevice, mr); S390pciState *s; IOMMUTLBEntry ret = { .target_as ...
false
qemu
f0a399dbae6a2d0e2e15eb7ce0783286bbd9fe04
static IOMMUTLBEntry s390_translate_iommu(MemoryRegion *iommu, hwaddr addr, bool is_write) { uint64_t pte; uint32_t flags; S390PCIBusDevice *pbdev = container_of(iommu, S390PCIBusDevice, mr); S390pciState *s; IOMMUTLBEntry ret = { .target_as ...
{ "code": [], "line_no": [] }
static IOMMUTLBEntry FUNC_0(MemoryRegion *iommu, hwaddr addr, bool is_write) { uint64_t pte; uint32_t flags; S390PCIBusDevice *pbdev = container_of(iommu, S390PCIBusDevice, mr); S390pciState *s; IOMMUTLBEntry ret = { .target_as = &address_spa...
[ "static IOMMUTLBEntry FUNC_0(MemoryRegion *iommu, hwaddr addr,\nbool is_write)\n{", "uint64_t pte;", "uint32_t flags;", "S390PCIBusDevice *pbdev = container_of(iommu, S390PCIBusDevice, mr);", "S390pciState *s;", "IOMMUTLBEntry ret = {", ".target_as = &address_space_memory,\n.iova = 0,\n.translated_addr ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19, 21, 23, 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ...
5,811
static GenericList *qmp_output_next_list(Visitor *v, GenericList **listp, size_t size) { GenericList *list = *listp; QmpOutputVisitor *qov = to_qov(v); QStackEntry *e = QTAILQ_FIRST(&qov->stack); assert(e); if (e->is_list_head) { e->is_list_...
false
qemu
d9f62dde1303286b24ac8ce88be27e2b9b9c5f46
static GenericList *qmp_output_next_list(Visitor *v, GenericList **listp, size_t size) { GenericList *list = *listp; QmpOutputVisitor *qov = to_qov(v); QStackEntry *e = QTAILQ_FIRST(&qov->stack); assert(e); if (e->is_list_head) { e->is_list_...
{ "code": [], "line_no": [] }
static GenericList *FUNC_0(Visitor *v, GenericList **listp, size_t size) { GenericList *list = *listp; QmpOutputVisitor *qov = to_qov(v); QStackEntry *e = QTAILQ_FIRST(&qov->stack); assert(e); if (e->is_list_head) { e->is_list_head = false; ...
[ "static GenericList *FUNC_0(Visitor *v, GenericList **listp,\nsize_t size)\n{", "GenericList *list = *listp;", "QmpOutputVisitor *qov = to_qov(v);", "QStackEntry *e = QTAILQ_FIRST(&qov->stack);", "assert(e);", "if (e->is_list_head) {", "e->is_list_head = false;", "return list;", "}", "return list ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
5,812
static CharDriverState *qemu_chr_open_win_path(const char *filename, Error **errp) { CharDriverState *chr; WinCharState *s; chr = qemu_chr_alloc(); s = g_new0(WinCharState, 1); chr->opaque = s; chr->chr_write = win_chr_write; chr->chr...
false
qemu
d0d7708ba29cbcc343364a46bff981e0ff88366f
static CharDriverState *qemu_chr_open_win_path(const char *filename, Error **errp) { CharDriverState *chr; WinCharState *s; chr = qemu_chr_alloc(); s = g_new0(WinCharState, 1); chr->opaque = s; chr->chr_write = win_chr_write; chr->chr...
{ "code": [], "line_no": [] }
static CharDriverState *FUNC_0(const char *filename, Error **errp) { CharDriverState *chr; WinCharState *s; chr = qemu_chr_alloc(); s = g_new0(WinCharState, 1); chr->opaque = s; chr->chr_write = win_chr_write; chr->chr_close = win_chr...
[ "static CharDriverState *FUNC_0(const char *filename,\nError **errp)\n{", "CharDriverState *chr;", "WinCharState *s;", "chr = qemu_chr_alloc();", "s = g_new0(WinCharState, 1);", "chr->opaque = s;", "chr->chr_write = win_chr_write;", "chr->chr_close = win_chr_close;", "if (win_chr_init(chr, filename,...
[ 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
5,813
void smbios_add_field(int type, int offset, const void *data, size_t len) { struct smbios_field *field; smbios_check_collision(type, SMBIOS_FIELD_ENTRY); if (!smbios_entries) { smbios_entries_len = sizeof(uint16_t); smbios_entries = g_malloc0(smbios_entries_len); } smbios...
false
qemu
fc3b32958a80bca13309e2695de07b43dd788421
void smbios_add_field(int type, int offset, const void *data, size_t len) { struct smbios_field *field; smbios_check_collision(type, SMBIOS_FIELD_ENTRY); if (!smbios_entries) { smbios_entries_len = sizeof(uint16_t); smbios_entries = g_malloc0(smbios_entries_len); } smbios...
{ "code": [], "line_no": [] }
void FUNC_0(int VAR_0, int VAR_1, const void *VAR_2, size_t VAR_3) { struct smbios_field *VAR_4; smbios_check_collision(VAR_0, SMBIOS_FIELD_ENTRY); if (!smbios_entries) { smbios_entries_len = sizeof(uint16_t); smbios_entries = g_malloc0(smbios_entries_len); } smbios_entri...
[ "void FUNC_0(int VAR_0, int VAR_1, const void *VAR_2, size_t VAR_3)\n{", "struct smbios_field *VAR_4;", "smbios_check_collision(VAR_0, SMBIOS_FIELD_ENTRY);", "if (!smbios_entries) {", "smbios_entries_len = sizeof(uint16_t);", "smbios_entries = g_malloc0(smbios_entries_len);", "}", "smbios_entries = g_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ] ]
5,814
Visitor *qmp_output_visitor_new(QObject **result) { QmpOutputVisitor *v; v = g_malloc0(sizeof(*v)); v->visitor.type = VISITOR_OUTPUT; v->visitor.start_struct = qmp_output_start_struct; v->visitor.end_struct = qmp_output_end_struct; v->visitor.start_list = qmp_output_start_list; v...
false
qemu
7d5e199ade76c53ec316ab6779800581bb47c50a
Visitor *qmp_output_visitor_new(QObject **result) { QmpOutputVisitor *v; v = g_malloc0(sizeof(*v)); v->visitor.type = VISITOR_OUTPUT; v->visitor.start_struct = qmp_output_start_struct; v->visitor.end_struct = qmp_output_end_struct; v->visitor.start_list = qmp_output_start_list; v...
{ "code": [], "line_no": [] }
Visitor *FUNC_0(QObject **result) { QmpOutputVisitor *v; v = g_malloc0(sizeof(*v)); v->visitor.type = VISITOR_OUTPUT; v->visitor.start_struct = qmp_output_start_struct; v->visitor.end_struct = qmp_output_end_struct; v->visitor.start_list = qmp_output_start_list; v->visitor.next_l...
[ "Visitor *FUNC_0(QObject **result)\n{", "QmpOutputVisitor *v;", "v = g_malloc0(sizeof(*v));", "v->visitor.type = VISITOR_OUTPUT;", "v->visitor.start_struct = qmp_output_start_struct;", "v->visitor.end_struct = qmp_output_end_struct;", "v->visitor.start_list = qmp_output_start_list;", "v->visitor.next_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47...
5,817
static int ast2500_rambits(AspeedSDMCState *s) { switch (s->ram_size >> 20) { case 128: return ASPEED_SDMC_AST2500_128MB; case 256: return ASPEED_SDMC_AST2500_256MB; case 512: return ASPEED_SDMC_AST2500_512MB; case 1024: return ASPEED_SDMC_AST2500_1024MB; ...
false
qemu
3dc6f8693694a649a9c83f1e2746565b47683923
static int ast2500_rambits(AspeedSDMCState *s) { switch (s->ram_size >> 20) { case 128: return ASPEED_SDMC_AST2500_128MB; case 256: return ASPEED_SDMC_AST2500_256MB; case 512: return ASPEED_SDMC_AST2500_512MB; case 1024: return ASPEED_SDMC_AST2500_1024MB; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AspeedSDMCState *VAR_0) { switch (VAR_0->ram_size >> 20) { case 128: return ASPEED_SDMC_AST2500_128MB; case 256: return ASPEED_SDMC_AST2500_256MB; case 512: return ASPEED_SDMC_AST2500_512MB; case 1024: return ASPEED_SDMC_AST2500_1024MB; ...
[ "static int FUNC_0(AspeedSDMCState *VAR_0)\n{", "switch (VAR_0->ram_size >> 20) {", "case 128:\nreturn ASPEED_SDMC_AST2500_128MB;", "case 256:\nreturn ASPEED_SDMC_AST2500_256MB;", "case 512:\nreturn ASPEED_SDMC_AST2500_512MB;", "case 1024:\nreturn ASPEED_SDMC_AST2500_1024MB;", "default:\nbreak;", "}",...
[ 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 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ] ]
5,818
void helper_lswx(CPUPPCState *env, target_ulong addr, uint32_t reg, uint32_t ra, uint32_t rb) { if (likely(xer_bc != 0)) { int num_used_regs = (xer_bc + 3) / 4; if (unlikely((ra != 0 && reg < ra && (reg + num_used_regs) > ra) || (reg < rb && (reg + num_use...
false
qemu
537d3e8e6beea9a0fbd6469eb38450e718244dad
void helper_lswx(CPUPPCState *env, target_ulong addr, uint32_t reg, uint32_t ra, uint32_t rb) { if (likely(xer_bc != 0)) { int num_used_regs = (xer_bc + 3) / 4; if (unlikely((ra != 0 && reg < ra && (reg + num_used_regs) > ra) || (reg < rb && (reg + num_use...
{ "code": [], "line_no": [] }
void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1, uint32_t VAR_2, uint32_t VAR_3, uint32_t VAR_4) { if (likely(xer_bc != 0)) { int VAR_5 = (xer_bc + 3) / 4; if (unlikely((VAR_3 != 0 && VAR_2 < VAR_3 && (VAR_2 + VAR_5) > VAR_3) || (VAR_2 < VAR_4 && (VAR_2...
[ "void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1, uint32_t VAR_2,\nuint32_t VAR_3, uint32_t VAR_4)\n{", "if (likely(xer_bc != 0)) {", "int VAR_5 = (xer_bc + 3) / 4;", "if (unlikely((VAR_3 != 0 && VAR_2 < VAR_3 && (VAR_2 + VAR_5) > VAR_3) ||\n(VAR_2 < VAR_4 && (VAR_2 + VAR_5) > VAR_4))) {", "helper_raise_...
[ 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 ] ]