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,954
static av_cold int ape_decode_init(AVCodecContext * avctx) { APEContext *s = avctx->priv_data; int i; if (avctx->extradata_size != 6) { av_log(avctx, AV_LOG_ERROR, "Incorrect extradata\n"); return -1; } if (avctx->bits_per_coded_sample != 16) { av_log(avctx, AV_LOG...
true
FFmpeg
7500781313d11b37772c05a28da20fbc112db478
static av_cold int ape_decode_init(AVCodecContext * avctx) { APEContext *s = avctx->priv_data; int i; if (avctx->extradata_size != 6) { av_log(avctx, AV_LOG_ERROR, "Incorrect extradata\n"); return -1; } if (avctx->bits_per_coded_sample != 16) { av_log(avctx, AV_LOG...
{ "code": [ " s->filterbuf[i] = av_malloc((ape_filter_orders[s->fset][i] * 3 + HISTORY_SIZE) * 4);", " APEContext *s = avctx->priv_data;", " int i;", " return 0;" ], "line_no": [ 65, 5, 7, 77 ] }
static av_cold int FUNC_0(AVCodecContext * avctx) { APEContext *s = avctx->priv_data; int VAR_0; if (avctx->extradata_size != 6) { av_log(avctx, AV_LOG_ERROR, "Incorrect extradata\n"); return -1; } if (avctx->bits_per_coded_sample != 16) { av_log(avctx, AV_LOG_ERRO...
[ "static av_cold int FUNC_0(AVCodecContext * avctx)\n{", "APEContext *s = avctx->priv_data;", "int VAR_0;", "if (avctx->extradata_size != 6) {", "av_log(avctx, AV_LOG_ERROR, \"Incorrect extradata\\n\");", "return -1;", "}", "if (avctx->bits_per_coded_sample != 16) {", "av_log(avctx, AV_LOG_ERROR, \"O...
[ 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43...
5,955
void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap) { char buf[4096]; if (!mon) return; if (monitor_ctrl_mode(mon)) { return; } vsnprintf(buf, sizeof(buf), fmt, ap); monitor_puts(mon, buf); }
true
qemu
e1f2641b5926d20f63d36f0de45206be774da8da
void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap) { char buf[4096]; if (!mon) return; if (monitor_ctrl_mode(mon)) { return; } vsnprintf(buf, sizeof(buf), fmt, ap); monitor_puts(mon, buf); }
{ "code": [ " char buf[4096];", " vsnprintf(buf, sizeof(buf), fmt, ap);" ], "line_no": [ 5, 23 ] }
void FUNC_0(Monitor *VAR_0, const char *VAR_1, va_list VAR_2) { char VAR_3[4096]; if (!VAR_0) return; if (monitor_ctrl_mode(VAR_0)) { return; } vsnprintf(VAR_3, sizeof(VAR_3), VAR_1, VAR_2); monitor_puts(VAR_0, VAR_3); }
[ "void FUNC_0(Monitor *VAR_0, const char *VAR_1, va_list VAR_2)\n{", "char VAR_3[4096];", "if (!VAR_0)\nreturn;", "if (monitor_ctrl_mode(VAR_0)) {", "return;", "}", "vsnprintf(VAR_3, sizeof(VAR_3), VAR_1, VAR_2);", "monitor_puts(VAR_0, VAR_3);", "}" ]
[ 0, 1, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ] ]
5,956
static void hScale16To19_c(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int16_t *filterPos, int filterSize) { int i; int32_t *dst = (int32_t *) _dst; const uint16_t *src = (const uint16_t *) _src; i...
true
FFmpeg
2254b559cbcfc0418135f09add37c0a5866b1981
static void hScale16To19_c(SwsContext *c, int16_t *_dst, int dstW, const uint8_t *_src, const int16_t *filter, const int16_t *filterPos, int filterSize) { int i; int32_t *dst = (int32_t *) _dst; const uint16_t *src = (const uint16_t *) _src; i...
{ "code": [ " const int16_t *filterPos, int filterSize)", " const int16_t *filterPos, int filterSize)" ], "line_no": [ 5, 5 ] }
static void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1, int VAR_2, const uint8_t *VAR_3, const int16_t *VAR_4, const int16_t *VAR_5, int VAR_6) { int VAR_7; int32_t *dst = (int32_t *) VAR_1; const uint16_t *VAR_8 = (const uint16_t *) VAR_3; int ...
[ "static void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1, int VAR_2, const uint8_t *VAR_3,\nconst int16_t *VAR_4,\nconst int16_t *VAR_5, int VAR_6)\n{", "int VAR_7;", "int32_t *dst = (int32_t *) VAR_1;", "const uint16_t *VAR_8 = (const uint16_t *) VAR_3;", "int VAR_9 = av_pix_fmt_descriptors[VAR_0->srcFormat]....
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ] ]
5,957
static int milkymist_softusb_init(SysBusDevice *dev) { MilkymistSoftUsbState *s = MILKYMIST_SOFTUSB(dev); sysbus_init_irq(dev, &s->irq); memory_region_init_io(&s->regs_region, OBJECT(s), &softusb_mmio_ops, s, "milkymist-softusb", R_MAX * 4); sysbus_init_mmio(dev, &s->...
true
qemu
f8ed85ac992c48814d916d5df4d44f9a971c5de4
static int milkymist_softusb_init(SysBusDevice *dev) { MilkymistSoftUsbState *s = MILKYMIST_SOFTUSB(dev); sysbus_init_irq(dev, &s->irq); memory_region_init_io(&s->regs_region, OBJECT(s), &softusb_mmio_ops, s, "milkymist-softusb", R_MAX * 4); sysbus_init_mmio(dev, &s->...
{ "code": [ " s->pmem_size, &error_abort);", " s->dmem_size, &error_abort);" ], "line_no": [ 25, 35 ] }
static int FUNC_0(SysBusDevice *VAR_0) { MilkymistSoftUsbState *s = MILKYMIST_SOFTUSB(VAR_0); sysbus_init_irq(VAR_0, &s->irq); memory_region_init_io(&s->regs_region, OBJECT(s), &softusb_mmio_ops, s, "milkymist-softusb", R_MAX * 4); sysbus_init_mmio(VAR_0, &s->regs_reg...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "MilkymistSoftUsbState *s = MILKYMIST_SOFTUSB(VAR_0);", "sysbus_init_irq(VAR_0, &s->irq);", "memory_region_init_io(&s->regs_region, OBJECT(s), &softusb_mmio_ops, s,\n\"milkymist-softusb\", R_MAX * 4);", "sysbus_init_mmio(VAR_0, &s->regs_region);", "memory_regio...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ] ]
5,958
static gnutls_certificate_credentials_t vnc_tls_initialize_x509_cred(VncDisplay *vd) { gnutls_certificate_credentials_t x509_cred; int ret; if (!vd->tls.x509cacert) { VNC_DEBUG("No CA x509 certificate specified\n"); return NULL; } if (!vd->tls.x509cert) { VNC_DEBUG...
true
qemu
3e305e4a4752f70c0b5c3cf5b43ec957881714f7
static gnutls_certificate_credentials_t vnc_tls_initialize_x509_cred(VncDisplay *vd) { gnutls_certificate_credentials_t x509_cred; int ret; if (!vd->tls.x509cacert) { VNC_DEBUG("No CA x509 certificate specified\n"); return NULL; } if (!vd->tls.x509cert) { VNC_DEBUG...
{ "code": [ " int ret;", " int ret;", " int ret;", " int ret;", " VNC_DEBUG(\"Cannot allocate credentials %s\\n\", gnutls_strerror(ret));", " return NULL;", "static gnutls_certificate_credentials_t vnc_tls_initialize_x509_cred(VncDisplay *vd)", " gnutls_cer...
static gnutls_certificate_credentials_t FUNC_0(VncDisplay *vd) { gnutls_certificate_credentials_t x509_cred; int VAR_0; if (!vd->tls.x509cacert) { VNC_DEBUG("No CA x509 certificate specified\n"); return NULL; } if (!vd->tls.x509cert) { VNC_DEBUG("No server x509 cer...
[ "static gnutls_certificate_credentials_t FUNC_0(VncDisplay *vd)\n{", "gnutls_certificate_credentials_t x509_cred;", "int VAR_0;", "if (!vd->tls.x509cacert) {", "VNC_DEBUG(\"No CA x509 certificate specified\\n\");", "return NULL;", "}", "if (!vd->tls.x509cert) {", "VNC_DEBUG(\"No server x509 certific...
[ 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
5,959
static int client_migrate_info(Monitor *mon, const QDict *qdict, MonitorCompletion cb, void *opaque) { const char *protocol = qdict_get_str(qdict, "protocol"); const char *hostname = qdict_get_str(qdict, "hostname"); const char *subject = qdict_get_try_str(qdict, "cert-s...
true
qemu
606ee8f5eadd79627216bbdde4da0337cb7d4360
static int client_migrate_info(Monitor *mon, const QDict *qdict, MonitorCompletion cb, void *opaque) { const char *protocol = qdict_get_str(qdict, "protocol"); const char *hostname = qdict_get_str(qdict, "hostname"); const char *subject = qdict_get_try_str(qdict, "cert-s...
{ "code": [ " Error *err;" ], "line_no": [ 17 ] }
static int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, MonitorCompletion VAR_2, void *VAR_3) { const char *VAR_4 = qdict_get_str(VAR_1, "VAR_4"); const char *VAR_5 = qdict_get_str(VAR_1, "VAR_5"); const char *VAR_6 = qdict_get_try_str(VAR_1, "cert-VAR_6"); int VAR_7 ...
[ "static int FUNC_0(Monitor *VAR_0, const QDict *VAR_1,\nMonitorCompletion VAR_2, void *VAR_3)\n{", "const char *VAR_4 = qdict_get_str(VAR_1, \"VAR_4\");", "const char *VAR_5 = qdict_get_str(VAR_1, \"VAR_5\");", "const char *VAR_6 = qdict_get_try_str(VAR_1, \"cert-VAR_6\");", "int VAR_7 = qdict_...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ...
5,960
static void cmd_inquiry(IDEState *s, uint8_t *buf) { int max_len = buf[4]; buf[0] = 0x05; /* CD-ROM */ buf[1] = 0x80; /* removable */ buf[2] = 0x00; /* ISO */ buf[3] = 0x21; /* ATAPI-2 (XXX: put ATAPI-4 ?) */ buf[4] = 31; /* additional length */ buf[5] = 0; /* reserved */ buf[...
true
qemu
9a502563eef7d7c2c9120b237059426e229eefe9
static void cmd_inquiry(IDEState *s, uint8_t *buf) { int max_len = buf[4]; buf[0] = 0x05; buf[1] = 0x80; buf[2] = 0x00; buf[3] = 0x21; buf[4] = 31; buf[5] = 0; buf[6] = 0; buf[7] = 0; padstr8(buf + 8, 8, "QEMU"); padstr8(buf + 16, 16, "QEMU DVD-ROM"); ...
{ "code": [ " padstr8(buf + 8, 8, \"QEMU\");", " padstr8(buf + 16, 16, \"QEMU DVD-ROM\");", " padstr8(buf + 32, 4, s->version);", " ide_atapi_cmd_reply(s, 36, max_len);" ], "line_no": [ 25, 27, 29, 31 ] }
static void FUNC_0(IDEState *VAR_0, uint8_t *VAR_1) { int VAR_2 = VAR_1[4]; VAR_1[0] = 0x05; VAR_1[1] = 0x80; VAR_1[2] = 0x00; VAR_1[3] = 0x21; VAR_1[4] = 31; VAR_1[5] = 0; VAR_1[6] = 0; VAR_1[7] = 0; padstr8(VAR_1 + 8, 8, "QEMU"); padstr8(VAR_1 + 16, 16...
[ "static void FUNC_0(IDEState *VAR_0, uint8_t *VAR_1)\n{", "int VAR_2 = VAR_1[4];", "VAR_1[0] = 0x05;", "VAR_1[1] = 0x80;", "VAR_1[2] = 0x00;", "VAR_1[3] = 0x21;", "VAR_1[4] = 31;", "VAR_1[5] = 0;", "VAR_1[6] = 0;", "VAR_1[7] = 0;", "padstr8(VAR_1 + 8, 8, \"QEMU\");", "padstr8(VAR_1 + 16, 16, \...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
5,961
uint32 float32_to_uint32( float32 a STATUS_PARAM ) { int64_t v; uint32 res; v = float32_to_int64(a STATUS_VAR); if (v < 0) { res = 0; float_raise( float_flag_invalid STATUS_VAR); } else if (v > 0xffffffff) { res = 0xffffffff; float_raise( float_flag_invali...
true
qemu
34e1c27bc3094ffe484d9855e07ad104bddf579f
uint32 float32_to_uint32( float32 a STATUS_PARAM ) { int64_t v; uint32 res; v = float32_to_int64(a STATUS_VAR); if (v < 0) { res = 0; float_raise( float_flag_invalid STATUS_VAR); } else if (v > 0xffffffff) { res = 0xffffffff; float_raise( float_flag_invali...
{ "code": [ " float_raise( float_flag_invalid STATUS_VAR);", " float_raise( float_flag_invalid STATUS_VAR);", " res = v;", " float_raise( float_flag_invalid STATUS_VAR);", " float_raise( float_flag_invalid STATUS_VAR);", " res = v;", " float...
uint32 FUNC_0( float32 a STATUS_PARAM ) { int64_t v; uint32 res; v = float32_to_int64(a STATUS_VAR); if (v < 0) { res = 0; float_raise( float_flag_invalid STATUS_VAR); } else if (v > 0xffffffff) { res = 0xffffffff; float_raise( float_flag_invalid STATUS_VA...
[ "uint32 FUNC_0( float32 a STATUS_PARAM )\n{", "int64_t v;", "uint32 res;", "v = float32_to_int64(a STATUS_VAR);", "if (v < 0) {", "res = 0;", "float_raise( float_flag_invalid STATUS_VAR);", "} else if (v > 0xffffffff) {", "res = 0xffffffff;", "float_raise( float_flag_invalid STATUS_VAR);", "} el...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
5,964
sowrite(struct socket *so) { int n,nn; struct sbuf *sb = &so->so_rcv; int len = sb->sb_cc; struct iovec iov[2]; DEBUG_CALL("sowrite"); DEBUG_ARG("so = %p", so); if (so->so_urgc) { sosendoob(so); if (sb->sb_cc == 0) return 0; } /* * No need to check if there's something to write, ...
true
qemu
75cb298d905030fca897ea1d80e409c7f7e3e5ea
sowrite(struct socket *so) { int n,nn; struct sbuf *sb = &so->so_rcv; int len = sb->sb_cc; struct iovec iov[2]; DEBUG_CALL("sowrite"); DEBUG_ARG("so = %p", so); if (so->so_urgc) { sosendoob(so); if (sb->sb_cc == 0) return 0; } iov[0].iov_base = sb->sb_rptr; iov[1]...
{ "code": [ "\t\tsosendoob(so);", "\t\tsosendoob(so);", "\t\tDEBUG_MISC((dfd, \" --- sowrite disconnected, so->so_state = %x, errno = %d\\n\",", "\t\t\tso->so_state, errno));", "\t\tsofcantsendmore(so);", "\t\ttcp_sockclosed(sototcpcb(so));", "\t\treturn -1;" ], "line_no": [ 23, ...
FUNC_0(struct socket *VAR_0) { int VAR_1,VAR_2; struct sbuf *VAR_3 = &VAR_0->so_rcv; int VAR_4 = VAR_3->sb_cc; struct iovec VAR_5[2]; DEBUG_CALL("FUNC_0"); DEBUG_ARG("VAR_0 = %p", VAR_0); if (VAR_0->so_urgc) { sosendoob(VAR_0); if (VAR_3->sb_cc == 0) return 0; } VAR_5[0].i...
[ "FUNC_0(struct socket *VAR_0)\n{", "int VAR_1,VAR_2;", "struct sbuf *VAR_3 = &VAR_0->so_rcv;", "int VAR_4 = VAR_3->sb_cc;", "struct iovec VAR_5[2];", "DEBUG_CALL(\"FUNC_0\");", "DEBUG_ARG(\"VAR_0 = %p\", VAR_0);", "if (VAR_0->so_urgc) {", "sosendoob(VAR_0);", "if (VAR_3->sb_cc == 0)\nreturn 0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [ 59 ], [...
5,966
static int64_t coroutine_fn raw_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { off_t start, data = 0, hole = 0; int64_t total_size; int ret; ret = ...
true
qemu
f4a769abaa51badea666093077c50c568c35de17
static int64_t coroutine_fn raw_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { off_t start, data = 0, hole = 0; int64_t total_size; int ret; ret = ...
{ "code": [ " *pnum = MIN(nb_sectors, (hole - start) / BDRV_SECTOR_SIZE);" ], "line_no": [ 71 ] }
static int64_t VAR_0 raw_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { off_t start, data = 0, hole = 0; int64_t total_size; int ret; ret = fd_open...
[ "static int64_t VAR_0 raw_co_get_block_status(BlockDriverState *bs,\nint64_t sector_num,\nint nb_sectors, int *pnum)\n{", "off_t start, data = 0, hole = 0;", "int64_t total_size;", "int ret;", "ret = fd_open(bs);", "if (ret < 0) {", "return ret;", "}", "start = sector_num * BDRV_SECTOR_SIZE;", "to...
[ 0, 0, 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
5,968
int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs, struct image_info * info) { struct elfhdr elf_ex; struct elfhdr interp_elf_ex; struct exec interp_ex; int interpreter_fd = -1; /* avoid warning */ abi_ulong load_addr, load_bias; int load_ad...
true
qemu
98448f58c10033a0f7fcd0673cce4626506403fa
int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs, struct image_info * info) { struct elfhdr elf_ex; struct elfhdr interp_elf_ex; struct exec interp_ex; int interpreter_fd = -1; abi_ulong load_addr, load_bias; int load_addr_set = 0; un...
{ "code": [], "line_no": [] }
int FUNC_0(struct linux_binprm * VAR_0, struct target_pt_regs * VAR_1, struct image_info * VAR_2) { struct elfhdr VAR_3; struct elfhdr VAR_4; struct exec VAR_5; int VAR_6 = -1; abi_ulong load_addr, load_bias; int VAR_7 = 0; unsigned int VAR_8 = INTERPRETER_NONE;...
[ "int FUNC_0(struct linux_binprm * VAR_0, struct target_pt_regs * VAR_1,\nstruct image_info * VAR_2)\n{", "struct elfhdr VAR_3;", "struct elfhdr VAR_4;", "struct exec VAR_5;", "int VAR_6 = -1;", "abi_ulong load_addr, load_bias;", "int VAR_7 = 0;", "unsigned int VAR_8 = INTERPRETER_NONE;", "unsigned 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 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [...
5,969
static bool hyperv_enabled(X86CPU *cpu) { CPUState *cs = CPU(cpu); return kvm_check_extension(cs->kvm_state, KVM_CAP_HYPERV) > 0 && (hyperv_hypercall_available(cpu) || cpu->hyperv_time || cpu->hyperv_relaxed_timing); }
true
qemu
f2a53c9e05a24352a0f9740db0539ce5aeed22ca
static bool hyperv_enabled(X86CPU *cpu) { CPUState *cs = CPU(cpu); return kvm_check_extension(cs->kvm_state, KVM_CAP_HYPERV) > 0 && (hyperv_hypercall_available(cpu) || cpu->hyperv_time || cpu->hyperv_relaxed_timing); }
{ "code": [ " cpu->hyperv_relaxed_timing);" ], "line_no": [ 13 ] }
static bool FUNC_0(X86CPU *cpu) { CPUState *cs = CPU(cpu); return kvm_check_extension(cs->kvm_state, KVM_CAP_HYPERV) > 0 && (hyperv_hypercall_available(cpu) || cpu->hyperv_time || cpu->hyperv_relaxed_timing); }
[ "static bool FUNC_0(X86CPU *cpu)\n{", "CPUState *cs = CPU(cpu);", "return kvm_check_extension(cs->kvm_state, KVM_CAP_HYPERV) > 0 &&\n(hyperv_hypercall_available(cpu) ||\ncpu->hyperv_time ||\ncpu->hyperv_relaxed_timing);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11, 13 ], [ 15 ] ]
5,971
static void test_butterflies_float(const float *src0, const float *src1) { LOCAL_ALIGNED_16(float, cdst, [LEN]); LOCAL_ALIGNED_16(float, odst, [LEN]); LOCAL_ALIGNED_16(float, cdst1, [LEN]); LOCAL_ALIGNED_16(float, odst1, [LEN]); int i; declare_func(void, float *av_restrict src0, f...
false
FFmpeg
a579dbb4f7deee142d1bb6545a169c9fcaa467af
static void test_butterflies_float(const float *src0, const float *src1) { LOCAL_ALIGNED_16(float, cdst, [LEN]); LOCAL_ALIGNED_16(float, odst, [LEN]); LOCAL_ALIGNED_16(float, cdst1, [LEN]); LOCAL_ALIGNED_16(float, odst1, [LEN]); int i; declare_func(void, float *av_restrict src0, f...
{ "code": [], "line_no": [] }
static void FUNC_0(const float *VAR_0, const float *VAR_1) { LOCAL_ALIGNED_16(float, cdst, [LEN]); LOCAL_ALIGNED_16(float, odst, [LEN]); LOCAL_ALIGNED_16(float, cdst1, [LEN]); LOCAL_ALIGNED_16(float, odst1, [LEN]); int VAR_2; declare_func(void, float *av_restrict VAR_0, float *av_...
[ "static void FUNC_0(const float *VAR_0, const float *VAR_1)\n{", "LOCAL_ALIGNED_16(float, cdst, [LEN]);", "LOCAL_ALIGNED_16(float, odst, [LEN]);", "LOCAL_ALIGNED_16(float, cdst1, [LEN]);", "LOCAL_ALIGNED_16(float, odst1, [LEN]);", "int VAR_2;", "declare_func(void, float *av_restrict VAR_0, float *...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ...
5,972
static int wav_read_packet(AVFormatContext *s, AVPacket *pkt) { int ret, size; int64_t left; AVStream *st; WAVDemuxContext *wav = s->priv_data; if (CONFIG_SPDIF_DEMUXER && wav->spdif == 0 && s->streams[0]->codec->codec_tag == 1) { enum AVCodecID codec; ret = ff_spd...
false
FFmpeg
dc2e4c2e532b80565f5fbacd3a24a6db7567c257
static int wav_read_packet(AVFormatContext *s, AVPacket *pkt) { int ret, size; int64_t left; AVStream *st; WAVDemuxContext *wav = s->priv_data; if (CONFIG_SPDIF_DEMUXER && wav->spdif == 0 && s->streams[0]->codec->codec_tag == 1) { enum AVCodecID codec; ret = ff_spd...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { int VAR_2, VAR_3; int64_t left; AVStream *st; WAVDemuxContext *wav = VAR_0->priv_data; if (CONFIG_SPDIF_DEMUXER && wav->spdif == 0 && VAR_0->streams[0]->VAR_4->codec_tag == 1) { enum AVCodecID VAR_4; VAR_...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "int VAR_2, VAR_3;", "int64_t left;", "AVStream *st;", "WAVDemuxContext *wav = VAR_0->priv_data;", "if (CONFIG_SPDIF_DEMUXER && wav->spdif == 0 &&\nVAR_0->streams[0]->VAR_4->codec_tag == 1) {", "enum AVCodecID VAR_4;", "VAR_2 = ff_spdif_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [...
5,973
int ff_new_chapter(AVFormatContext *s, int id, int64_t start, int64_t end, const char *title) { AVChapter *chapter = NULL; int i; for(i=0; i<s->num_chapters; i++) if(s->chapters[i]->id == id) chapter = s->chapters[i]; if(!chapter){ chapter= av_mallocz(sizeof(AVCha...
false
FFmpeg
0dac708e2d31898ebccacdb5911b5496b1616989
int ff_new_chapter(AVFormatContext *s, int id, int64_t start, int64_t end, const char *title) { AVChapter *chapter = NULL; int i; for(i=0; i<s->num_chapters; i++) if(s->chapters[i]->id == id) chapter = s->chapters[i]; if(!chapter){ chapter= av_mallocz(sizeof(AVCha...
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int64_t VAR_3, const char *VAR_4) { AVChapter *chapter = NULL; int VAR_5; for(VAR_5=0; VAR_5<VAR_0->num_chapters; VAR_5++) if(VAR_0->chapters[VAR_5]->VAR_1 == VAR_1) chapter = VAR_0->chapters[VAR_5]; if(!chapter)...
[ "int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int64_t VAR_3, const char *VAR_4)\n{", "AVChapter *chapter = NULL;", "int VAR_5;", "for(VAR_5=0; VAR_5<VAR_0->num_chapters; VAR_5++)", "if(VAR_0->chapters[VAR_5]->VAR_1 == VAR_1)\nchapter = VAR_0->chapters[VAR_5];", "if(!chapter){", "chapter=...
[ 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 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ] ]
5,974
static int flic_decode_frame_8BPP(AVCodecContext *avctx, void *data, int *got_frame, const uint8_t *buf, int buf_size) { FlicDecodeContext *s = avctx->priv_data; GetByteContext g2; int pixel_ptr; int palette_ptr; unsigned ...
false
FFmpeg
f5498ef38daa541f03b9c8d3985579394c8407e5
static int flic_decode_frame_8BPP(AVCodecContext *avctx, void *data, int *got_frame, const uint8_t *buf, int buf_size) { FlicDecodeContext *s = avctx->priv_data; GetByteContext g2; int pixel_ptr; int palette_ptr; unsigned ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, const uint8_t *VAR_3, int VAR_4) { FlicDecodeContext *s = VAR_0->priv_data; GetByteContext g2; int VAR_5; int VAR_6; unsigned char VAR_7; unsigned char...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{", "FlicDecodeContext *s = VAR_0->priv_data;", "GetByteContext g2;", "int VAR_5;", "int VAR_6;", "unsigned char VAR_7;", "unsigned char VAR_8;", "unsigned int VAR_9;", "int VAR_10;", "unsigned 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, 0, 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 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ...
5,975
static int armv7m_nvic_init(SysBusDevice *dev) { nvic_state *s = NVIC(dev); NVICClass *nc = NVIC_GET_CLASS(s); /* The NVIC always has only one CPU */ s->gic.num_cpu = 1; /* Tell the common code we're an NVIC */ s->gic.revision = 0xffffffff; s->num_irq = s->gic.num_irq; nc->par...
true
qemu
53111180946a56d314a9c1d07d09b9ef91e847b9
static int armv7m_nvic_init(SysBusDevice *dev) { nvic_state *s = NVIC(dev); NVICClass *nc = NVIC_GET_CLASS(s); s->gic.num_cpu = 1; s->gic.revision = 0xffffffff; s->num_irq = s->gic.num_irq; nc->parent_init(dev); gic_init_irqs_and_distributor(&s->gic, s->num_irq); ...
{ "code": [ " return 0;", " return 0;", "static int armv7m_nvic_init(SysBusDevice *dev)", " nc->parent_init(dev);", " return 0;" ], "line_no": [ 77, 77, 1, 21, 77 ] }
static int FUNC_0(SysBusDevice *VAR_0) { nvic_state *s = NVIC(VAR_0); NVICClass *nc = NVIC_GET_CLASS(s); s->gic.num_cpu = 1; s->gic.revision = 0xffffffff; s->num_irq = s->gic.num_irq; nc->parent_init(VAR_0); gic_init_irqs_and_distributor(&s->gic, s->num_irq); ...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "nvic_state *s = NVIC(VAR_0);", "NVICClass *nc = NVIC_GET_CLASS(s);", "s->gic.num_cpu = 1;", "s->gic.revision = 0xffffffff;", "s->num_irq = s->gic.num_irq;", "nc->parent_init(VAR_0);", "gic_init_irqs_and_distributor(&s->gic, s->num_irq);", "memory_region_...
[ 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 39 ], [ 47, 49 ], [ 51 ], [ 59, 61 ], [ 63, 65 ], [ 73 ], [ 75 ], [ 77 ], [ 79 ] ]
5,976
static void nfs_co_generic_bh_cb(void *opaque) { NFSRPC *task = opaque; task->complete = 1; qemu_bh_delete(task->bh); qemu_coroutine_enter(task->co, NULL); }
true
qemu
0b8b8753e4d94901627b3e86431230f2319215c4
static void nfs_co_generic_bh_cb(void *opaque) { NFSRPC *task = opaque; task->complete = 1; qemu_bh_delete(task->bh); qemu_coroutine_enter(task->co, NULL); }
{ "code": [ " qemu_coroutine_enter(task->co, NULL);" ], "line_no": [ 11 ] }
static void FUNC_0(void *VAR_0) { NFSRPC *task = VAR_0; task->complete = 1; qemu_bh_delete(task->bh); qemu_coroutine_enter(task->co, NULL); }
[ "static void FUNC_0(void *VAR_0)\n{", "NFSRPC *task = VAR_0;", "task->complete = 1;", "qemu_bh_delete(task->bh);", "qemu_coroutine_enter(task->co, NULL);", "}" ]
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
5,977
static void vnc_resize(VncState *vs) { DisplayState *ds = vs->ds; int size_changed; vs->old_data = qemu_realloc(vs->old_data, ds_get_linesize(ds) * ds_get_height(ds)); if (vs->old_data == NULL) { fprintf(stderr, "vnc: memory allocation failed\n"); exit(1); } if (...
true
qemu
6baebed7698a37a0ac5168faf26023426b0ac940
static void vnc_resize(VncState *vs) { DisplayState *ds = vs->ds; int size_changed; vs->old_data = qemu_realloc(vs->old_data, ds_get_linesize(ds) * ds_get_height(ds)); if (vs->old_data == NULL) { fprintf(stderr, "vnc: memory allocation failed\n"); exit(1); } if (...
{ "code": [ " vs->old_data = qemu_realloc(vs->old_data, ds_get_linesize(ds) * ds_get_height(ds));", " if (vs->old_data == NULL) {", " fprintf(stderr, \"vnc: memory allocation failed\\n\");", " exit(1);", " if (ds_get_bytes_per_pixel(ds) != vs->serverds.pf.bytes_per_pixel)", ...
static void FUNC_0(VncState *VAR_0) { DisplayState *ds = VAR_0->ds; int VAR_1; VAR_0->old_data = qemu_realloc(VAR_0->old_data, ds_get_linesize(ds) * ds_get_height(ds)); if (VAR_0->old_data == NULL) { fprintf(stderr, "vnc: memory allocation failed\n"); exit(1); } ...
[ "static void FUNC_0(VncState *VAR_0)\n{", "DisplayState *ds = VAR_0->ds;", "int VAR_1;", "VAR_0->old_data = qemu_realloc(VAR_0->old_data, ds_get_linesize(ds) * ds_get_height(ds));", "if (VAR_0->old_data == NULL) {", "fprintf(stderr, \"vnc: memory allocation failed\\n\");", "exit(1);", "}", "if (ds_g...
[ 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ], ...
5,978
e1000_can_receive(VLANClientState *nc) { E1000State *s = DO_UPCAST(NICState, nc, nc)->opaque; return (s->mac_reg[RCTL] & E1000_RCTL_EN); }
true
qemu
6cdfab2868dd593902e2b7db3ba9f49f2cc03e3f
e1000_can_receive(VLANClientState *nc) { E1000State *s = DO_UPCAST(NICState, nc, nc)->opaque; return (s->mac_reg[RCTL] & E1000_RCTL_EN); }
{ "code": [ "e1000_can_receive(VLANClientState *nc)", " E1000State *s = DO_UPCAST(NICState, nc, nc)->opaque;", " return (s->mac_reg[RCTL] & E1000_RCTL_EN);" ], "line_no": [ 1, 5, 9 ] }
FUNC_0(VLANClientState *VAR_0) { E1000State *s = DO_UPCAST(NICState, VAR_0, VAR_0)->opaque; return (s->mac_reg[RCTL] & E1000_RCTL_EN); }
[ "FUNC_0(VLANClientState *VAR_0)\n{", "E1000State *s = DO_UPCAST(NICState, VAR_0, VAR_0)->opaque;", "return (s->mac_reg[RCTL] & E1000_RCTL_EN);", "}" ]
[ 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
5,979
static void access_with_adjusted_size(hwaddr addr, uint64_t *value, unsigned size, unsigned access_size_min, unsigned access_size_max, ...
true
qemu
cc05c43ad942165ecc6ffd39e41991bee43af044
static void access_with_adjusted_size(hwaddr addr, uint64_t *value, unsigned size, unsigned access_size_min, unsigned access_size_max, ...
{ "code": [ "static void access_with_adjusted_size(hwaddr addr,", " void (*access)(MemoryRegion *mr,", " hwaddr addr,", " uint64_t *value,", " ...
static void FUNC_0(hwaddr VAR_7, uint64_t *VAR_7, unsigned VAR_7, unsigned VAR_3, unsigned VAR_4, void (*VAR_5)(MemoryRegion ...
[ "static void FUNC_0(hwaddr VAR_7,\nuint64_t *VAR_7,\nunsigned VAR_7,\nunsigned VAR_3,\nunsigned VAR_4,\nvoid (*VAR_5)(MemoryRegion *VAR_9,\nhwaddr VAR_7,\nuint64_t *VAR_7,\nunsigned VAR_7,\nunsigned VAR_7,\nuint64_t VAR_8),\nMemoryRegion *VAR_9)\n{", "uint64_t access_mask;", "unsigned VAR_9;", "unsigned VAR_1...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [...
5,980
static void drive_uninit(DriveInfo *dinfo) { qemu_opts_del(dinfo->opts); bdrv_delete(dinfo->bdrv); QTAILQ_REMOVE(&drives, dinfo, next); qemu_free(dinfo); }
true
qemu
2753d4a5fa44d980cc6a279f323a12ca8d172972
static void drive_uninit(DriveInfo *dinfo) { qemu_opts_del(dinfo->opts); bdrv_delete(dinfo->bdrv); QTAILQ_REMOVE(&drives, dinfo, next); qemu_free(dinfo); }
{ "code": [], "line_no": [] }
static void FUNC_0(DriveInfo *VAR_0) { qemu_opts_del(VAR_0->opts); bdrv_delete(VAR_0->bdrv); QTAILQ_REMOVE(&drives, VAR_0, next); qemu_free(VAR_0); }
[ "static void FUNC_0(DriveInfo *VAR_0)\n{", "qemu_opts_del(VAR_0->opts);", "bdrv_delete(VAR_0->bdrv);", "QTAILQ_REMOVE(&drives, VAR_0, next);", "qemu_free(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 10 ], [ 12 ], [ 14 ] ]
5,982
static void mpeg_decode_sequence_extension(Mpeg1Context *s1) { MpegEncContext *s = &s1->mpeg_enc_ctx; int horiz_size_ext, vert_size_ext; int bit_rate_ext; skip_bits(&s->gb, 1); /* profile and level esc*/ s->avctx->profile = get_bits(&s->gb, 3); s->avctx->level = get_bits(&...
true
FFmpeg
863522431fb2fc7d35fce582fcaacdcf37fc3c44
static void mpeg_decode_sequence_extension(Mpeg1Context *s1) { MpegEncContext *s = &s1->mpeg_enc_ctx; int horiz_size_ext, vert_size_ext; int bit_rate_ext; skip_bits(&s->gb, 1); s->avctx->profile = get_bits(&s->gb, 3); s->avctx->level = get_bits(&s->gb, 4); s->progres...
{ "code": [ " s->bit_rate += (bit_rate_ext << 18) * 400;" ], "line_no": [ 45 ] }
static void FUNC_0(Mpeg1Context *VAR_0) { MpegEncContext *s = &VAR_0->mpeg_enc_ctx; int VAR_1, VAR_2; int VAR_3; skip_bits(&s->gb, 1); s->avctx->profile = get_bits(&s->gb, 3); s->avctx->level = get_bits(&s->gb, 4); s->progressive_sequence = get_bits1(&s->gb); ...
[ "static void FUNC_0(Mpeg1Context *VAR_0)\n{", "MpegEncContext *s = &VAR_0->mpeg_enc_ctx;", "int VAR_1, VAR_2;", "int VAR_3;", "skip_bits(&s->gb, 1);", "s->avctx->profile = get_bits(&s->gb, 3);", "s->avctx->level = get_bits(&s->gb, 4);", "s->progressive_sequence = get_bits1(&s->gb);", "...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
5,984
static void get_pixels_altivec(int16_t *restrict block, const uint8_t *pixels, int line_size) { int i; vector unsigned char perm = vec_lvsl(0, pixels); vector unsigned char bytes; const vector unsigned char zero = (const vector unsigned char)vec_splat_u8(0); vector signed short shorts; ...
true
FFmpeg
98fdfa99704f1cfef3d3a26c580b92749b6b64cb
static void get_pixels_altivec(int16_t *restrict block, const uint8_t *pixels, int line_size) { int i; vector unsigned char perm = vec_lvsl(0, pixels); vector unsigned char bytes; const vector unsigned char zero = (const vector unsigned char)vec_splat_u8(0); vector signed short shorts; ...
{ "code": [ " vector unsigned char pixl = vec_ld( 0, pixels);", " vector unsigned char pixr = vec_ld(15, pixels);" ], "line_no": [ 25, 27 ] }
static void FUNC_0(int16_t *restrict VAR_0, const uint8_t *VAR_1, int VAR_2) { int VAR_3; vector unsigned char perm = vec_lvsl(0, VAR_1); vector unsigned char bytes; const vector unsigned char VAR_4 = (const vector unsigned char)vec_splat_u8(0); vector signed short shorts; for (VAR_3 = ...
[ "static void FUNC_0(int16_t *restrict VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "int VAR_3;", "vector unsigned char perm = vec_lvsl(0, VAR_1);", "vector unsigned char bytes;", "const vector unsigned char VAR_4 = (const vector unsigned char)vec_splat_u8(0);", "vector signed short shorts;", "for (VAR_3...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ] ]
5,985
static void pc_q35_init_1_5(QEMUMachineInitArgs *args) { has_pci_info = false; pc_q35_init(args); }
true
qemu
9604f70fdf8e21ec0dbf6eac5e59a0eb8beadd64
static void pc_q35_init_1_5(QEMUMachineInitArgs *args) { has_pci_info = false; pc_q35_init(args); }
{ "code": [ "static void pc_q35_init_1_5(QEMUMachineInitArgs *args)" ], "line_no": [ 1 ] }
static void FUNC_0(QEMUMachineInitArgs *VAR_0) { has_pci_info = false; pc_q35_init(VAR_0); }
[ "static void FUNC_0(QEMUMachineInitArgs *VAR_0)\n{", "has_pci_info = false;", "pc_q35_init(VAR_0);", "}" ]
[ 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
5,986
static int sap_write_close(AVFormatContext *s) { struct SAPState *sap = s->priv_data; int i; for (i = 0; i < s->nb_streams; i++) { AVFormatContext *rtpctx = s->streams[i]->priv_data; if (!rtpctx) continue; av_write_trailer(rtpctx); url_fclose(rtpctx->pb...
true
FFmpeg
a991b8dec654ad09a35494e0cabbbc157bb04dab
static int sap_write_close(AVFormatContext *s) { struct SAPState *sap = s->priv_data; int i; for (i = 0; i < s->nb_streams; i++) { AVFormatContext *rtpctx = s->streams[i]->priv_data; if (!rtpctx) continue; av_write_trailer(rtpctx); url_fclose(rtpctx->pb...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { struct SAPState *VAR_1 = VAR_0->priv_data; int VAR_2; for (VAR_2 = 0; VAR_2 < VAR_0->nb_streams; VAR_2++) { AVFormatContext *rtpctx = VAR_0->streams[VAR_2]->priv_data; if (!rtpctx) continue; av_write_trailer(rtpctx); ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "struct SAPState *VAR_1 = VAR_0->priv_data;", "int VAR_2;", "for (VAR_2 = 0; VAR_2 < VAR_0->nb_streams; VAR_2++) {", "AVFormatContext *rtpctx = VAR_0->streams[VAR_2]->priv_data;", "if (!rtpctx)\ncontinue;", "av_write_trailer(rtpctx);", "url_fclose(rtpctx...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 28 ], [ 30 ], [ 32 ], [ 34 ], [ 38 ], [ 40 ], [ 42 ], [ 44 ], [ 48 ], ...
5,987
void ahci_hba_enable(AHCIQState *ahci) { /* Bits of interest in this section: * GHC.AE Global Host Control / AHCI Enable * PxCMD.ST Port Command: Start * PxCMD.SUD "Spin Up Device" * PxCMD.POD "Power On Device" * PxCMD.FRE "FIS Receive Enable" * PxCMD.FR "FIS Receive...
true
qemu
e7c8526b2a1482a9b14319fda9f8ad4bfda5b958
void ahci_hba_enable(AHCIQState *ahci) { uint32_t reg, ports_impl; uint16_t i; uint8_t num_cmd_slots; g_assert(ahci != NULL); ahci_set(ahci, AHCI_GHC, AHCI_GHC_AE); reg = ahci_rreg(ahci, AHCI_GHC); ASSERT_BIT_SET(reg, AHCI_GHC_AE); ahci->c...
{ "code": [], "line_no": [] }
void FUNC_0(AHCIQState *VAR_0) { uint32_t reg, ports_impl; uint16_t i; uint8_t num_cmd_slots; g_assert(VAR_0 != NULL); ahci_set(VAR_0, AHCI_GHC, AHCI_GHC_AE); reg = ahci_rreg(VAR_0, AHCI_GHC); ASSERT_BIT_SET(reg, AHCI_GHC_AE); VAR_0->cap =...
[ "void FUNC_0(AHCIQState *VAR_0)\n{", "uint32_t reg, ports_impl;", "uint16_t i;", "uint8_t num_cmd_slots;", "g_assert(VAR_0 != NULL);", "ahci_set(VAR_0, AHCI_GHC, AHCI_GHC_AE);", "reg = ahci_rreg(VAR_0, AHCI_GHC);", "ASSERT_BIT_SET(reg, AHCI_GHC_AE);", "VAR_0->cap = ahci_rreg(VAR_0, AHCI_CAP);", "V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 55 ], [ 57 ], [ 63 ], [ 67 ], [ 69 ], [ 71 ], [ 73 ], [ 77 ], [ 81 ], [ ...
5,988
static void ppc6xx_set_irq (void *opaque, int pin, int level) { CPUState *env = opaque; int cur_level; #if defined(PPC_DEBUG_IRQ) if (loglevel & CPU_LOG_INT) { fprintf(logfile, "%s: env %p pin %d level %d\n", __func__, env, pin, level); } #endif cur_level = (env->...
true
qemu
ef397e88e96d4a798bd190bcd0c43865c3725ae2
static void ppc6xx_set_irq (void *opaque, int pin, int level) { CPUState *env = opaque; int cur_level; #if defined(PPC_DEBUG_IRQ) if (loglevel & CPU_LOG_INT) { fprintf(logfile, "%s: env %p pin %d level %d\n", __func__, env, pin, level); } #endif cur_level = (env->...
{ "code": [ " cpu_reset(env);" ], "line_no": [ 171 ] }
static void FUNC_0 (void *VAR_0, int VAR_1, int VAR_2) { CPUState *env = VAR_0; int VAR_3; #if defined(PPC_DEBUG_IRQ) if (loglevel & CPU_LOG_INT) { fprintf(logfile, "%s: env %p VAR_1 %d VAR_2 %d\n", __func__, env, VAR_1, VAR_2); } #endif VAR_3 = (env->irq_input_st...
[ "static void FUNC_0 (void *VAR_0, int VAR_1, int VAR_2)\n{", "CPUState *env = VAR_0;", "int VAR_3;", "#if defined(PPC_DEBUG_IRQ)\nif (loglevel & CPU_LOG_INT) {", "fprintf(logfile, \"%s: env %p VAR_1 %d VAR_2 %d\\n\", __func__,\nenv, VAR_1, VAR_2);", "}", "#endif\nVAR_3 = (env->irq_input_state >> VAR_1) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31, 35, 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], ...
5,989
static void do_order_test(void) { Coroutine *co; co = qemu_coroutine_create(co_order_test); record_push(1, 1); qemu_coroutine_enter(co, NULL); record_push(1, 2); g_assert(!qemu_in_coroutine()); qemu_coroutine_enter(co, NULL); record_push(1, 3); g_assert(!qemu_in_coroutine...
true
qemu
0b8b8753e4d94901627b3e86431230f2319215c4
static void do_order_test(void) { Coroutine *co; co = qemu_coroutine_create(co_order_test); record_push(1, 1); qemu_coroutine_enter(co, NULL); record_push(1, 2); g_assert(!qemu_in_coroutine()); qemu_coroutine_enter(co, NULL); record_push(1, 3); g_assert(!qemu_in_coroutine...
{ "code": [ " qemu_coroutine_enter(co, NULL);", " qemu_coroutine_enter(co, NULL);", " qemu_coroutine_enter(co, NULL);", " qemu_coroutine_enter(co, NULL);", " qemu_coroutine_enter(co, NULL);", " co = qemu_coroutine_create(co_order_test);", " qemu_coroutine_enter(co, NUL...
static void FUNC_0(void) { Coroutine *co; co = qemu_coroutine_create(co_order_test); record_push(1, 1); qemu_coroutine_enter(co, NULL); record_push(1, 2); g_assert(!qemu_in_coroutine()); qemu_coroutine_enter(co, NULL); record_push(1, 3); g_assert(!qemu_in_coroutine()); }...
[ "static void FUNC_0(void)\n{", "Coroutine *co;", "co = qemu_coroutine_create(co_order_test);", "record_push(1, 1);", "qemu_coroutine_enter(co, NULL);", "record_push(1, 2);", "g_assert(!qemu_in_coroutine());", "qemu_coroutine_enter(co, NULL);", "record_push(1, 3);", "g_assert(!qemu_in_coroutine());...
[ 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
5,990
static int get_cod(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c, uint8_t *properties) { Jpeg2000CodingStyle tmp; int compno; if (s->buf_end - s->buf < 5) return AVERROR_INVALIDDATA; tmp.log2_prec_width = tmp.log2_prec_height = 15; tmp.csty = bytest...
true
FFmpeg
1a3598aae768465a8efc8475b6df5a8261bc62fc
static int get_cod(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c, uint8_t *properties) { Jpeg2000CodingStyle tmp; int compno; if (s->buf_end - s->buf < 5) return AVERROR_INVALIDDATA; tmp.log2_prec_width = tmp.log2_prec_height = 15; tmp.csty = bytest...
{ "code": [ " return AVERROR_INVALIDDATA;", " if (s->buf_end - s->buf < 5)", " if (s->buf_end - s->buf < 5)", " tmp.csty = bytestream_get_byte(&s->buf);", " tmp.prog_order = bytestream_get_byte(&s->buf);", " tmp.nlayers = bytestream_get_be16(&s->buf);" ], "line_no": [...
static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000CodingStyle *VAR_1, uint8_t *VAR_2) { Jpeg2000CodingStyle tmp; int VAR_3; if (VAR_0->buf_end - VAR_0->buf < 5) return AVERROR_INVALIDDATA; tmp.log2_prec_width = tmp.log2_prec_height = 15; tmp.csty...
[ "static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000CodingStyle *VAR_1,\nuint8_t *VAR_2)\n{", "Jpeg2000CodingStyle tmp;", "int VAR_3;", "if (VAR_0->buf_end - VAR_0->buf < 5)\nreturn AVERROR_INVALIDDATA;", "tmp.log2_prec_width =\ntmp.log2_prec_height = 15;", "tmp.csty = bytestream_get_byte(&VAR_0->b...
[ 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19, 21 ], [ 25 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ] ]
5,991
static void qtest_process_command(CharDriverState *chr, gchar **words) { const gchar *command; g_assert(words); command = words[0]; if (qtest_log_fp) { qemu_timeval tv; int i; qtest_get_time(&tv); fprintf(qtest_log_fp, "[R +" FMT_timeval "]", ...
true
qemu
332cc7e9b39ddb2feacb4c71dcd18c3e5b0c3147
static void qtest_process_command(CharDriverState *chr, gchar **words) { const gchar *command; g_assert(words); command = words[0]; if (qtest_log_fp) { qemu_timeval tv; int i; qtest_get_time(&tv); fprintf(qtest_log_fp, "[R +" FMT_timeval "]", ...
{ "code": [ " qtest_send(chr, \"OK 0x%04x\\n\", value);", " qtest_send(chr, \"OK 0x%016\" PRIx64 \"\\n\", value);", " qtest_send(chr, \"%02x\", data[i]);", " qtest_send(chr, \"OK %\"PRIi64\"\\n\", (int64_t)qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL));", " qtest_sen...
static void FUNC_0(CharDriverState *VAR_0, gchar **VAR_1) { const gchar *VAR_2; g_assert(VAR_1); VAR_2 = VAR_1[0]; if (qtest_log_fp) { qemu_timeval tv; int VAR_3; qtest_get_time(&tv); fprintf(qtest_log_fp, "[R +" FMT_timeval "]", (long) t...
[ "static void FUNC_0(CharDriverState *VAR_0, gchar **VAR_1)\n{", "const gchar *VAR_2;", "g_assert(VAR_1);", "VAR_2 = VAR_1[0];", "if (qtest_log_fp) {", "qemu_timeval tv;", "int VAR_3;", "qtest_get_time(&tv);", "fprintf(qtest_log_fp, \"[R +\" FMT_timeval \"]\",\n(long) tv.tv_sec, (long) tv.tv_usec);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 55...
5,992
static target_long monitor_get_msr (const struct MonitorDef *md, int val) { CPUState *env = mon_get_cpu(); if (!env) return 0; return env->msr; }
true
qemu
09b9418c6d085a0728372aa760ebd10128a020b1
static target_long monitor_get_msr (const struct MonitorDef *md, int val) { CPUState *env = mon_get_cpu(); if (!env) return 0; return env->msr; }
{ "code": [ " if (!env)", " if (!env)", " if (!env)", " if (!env)", " if (!env)", " return 0;", " if (!env)", " return 0;", " if (!env)", " return 0;", " if (!env)", " return 0;", " if (!env)", " retu...
static target_long FUNC_0 (const struct MonitorDef *md, int val) { CPUState *env = mon_get_cpu(); if (!env) return 0; return env->msr; }
[ "static target_long FUNC_0 (const struct MonitorDef *md, int val)\n{", "CPUState *env = mon_get_cpu();", "if (!env)\nreturn 0;", "return env->msr;", "}" ]
[ 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ] ]
5,993
static inline int RENAME(yuv420_rgb32)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]){ int y, h_size; if(c->srcFormat == PIX_FMT_YUV422P){ srcStride[1] *= 2; srcStride[2] *= 2; } h_size= (c->dstW+7)&~7; if(h_s...
true
FFmpeg
428098165de4c3edfe42c1b7f00627d287015863
static inline int RENAME(yuv420_rgb32)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]){ int y, h_size; if(c->srcFormat == PIX_FMT_YUV422P){ srcStride[1] *= 2; srcStride[2] *= 2; } h_size= (c->dstW+7)&~7; if(h_s...
{ "code": [ " int srcSliceH, uint8_t* dst[], int dstStride[]){", "\tsrcStride[1] *= 2;", "\tsrcStride[2] *= 2;", " int srcSliceH, uint8_t* dst[], int dstStride[]){", "\tsrcStride[1] *= 2;", "\tsrcStride[2] *= 2;", " int srcSliceH, uint8_t* dst[], int dst...
static inline int FUNC_0(yuv420_rgb32)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]){ int VAR_0, VAR_1; if(c->srcFormat == PIX_FMT_YUV422P){ srcStride[1] *= 2; srcStride[2] *= 2; } VAR_1= (c->dstW+7)&~7; if(V...
[ "static inline int FUNC_0(yuv420_rgb32)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,\nint srcSliceH, uint8_t* dst[], int dstStride[]){", "int VAR_0, VAR_1;", "if(c->srcFormat == PIX_FMT_YUV422P){", "srcStride[1] *= 2;", "srcStride[2] *= 2;", "}", "VAR_1= (c->dstW+7)&~7;", "if(VAR_1*4...
[ 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 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, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 47, 51 ], [ 53 ], [ 55 ], [ 59, 61...
5,994
static void gen_ld (CPUState *env, DisasContext *ctx, uint32_t opc, int rt, int base, int16_t offset) { const char *opn = "ld"; TCGv t0, t1; if (rt == 0 && env->insn_flags & (INSN_LOONGSON2E | INSN_LOONGSON2F)) { /* Loongson CPU uses a load to zero register for prefetch. ...
true
qemu
b835e919f022d768abdf00e8dc94f1a23fdcab15
static void gen_ld (CPUState *env, DisasContext *ctx, uint32_t opc, int rt, int base, int16_t offset) { const char *opn = "ld"; TCGv t0, t1; if (rt == 0 && env->insn_flags & (INSN_LOONGSON2E | INSN_LOONGSON2F)) { MIPS_DEBUG("NOP"); return; } ...
{ "code": [ " save_cpu_state(ctx, 0);", " save_cpu_state(ctx, 1);", " save_cpu_state(ctx, 1);", " save_cpu_state(ctx, 0);", " save_cpu_state(ctx, 1);", " save_cpu_state(ctx, 1);" ], "line_no": [ 43, 79, 79, 43, 79, 79 ] }
static void FUNC_0 (CPUState *VAR_0, DisasContext *VAR_1, uint32_t VAR_2, int VAR_3, int VAR_4, int16_t VAR_5) { const char *VAR_6 = "ld"; TCGv t0, t1; if (VAR_3 == 0 && VAR_0->insn_flags & (INSN_LOONGSON2E | INSN_LOONGSON2F)) { MIPS_DEBUG("NOP"); r...
[ "static void FUNC_0 (CPUState *VAR_0, DisasContext *VAR_1, uint32_t VAR_2,\nint VAR_3, int VAR_4, int16_t VAR_5)\n{", "const char *VAR_6 = \"ld\";", "TCGv t0, t1;", "if (VAR_3 == 0 && VAR_0->insn_flags & (INSN_LOONGSON2E | INSN_LOONGSON2F)) {", "MIPS_DEBUG(\"NOP\");", "return;", "}", "t0 = tcg_temp_ne...
[ 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53, 55 ], [ 57 ...
5,998
static int latm_decode_audio_specific_config(struct LATMContext *latmctx, GetBitContext *gb, int asclen) { AACContext *ac = &latmctx->aac_ctx; AVCodecContext *avctx = ac->avctx; MPEG4AudioConfig m4ac = {0}; int config_start_bit = get_bits_count(...
true
FFmpeg
b5fc571e4f730579f328ae9cf77435cb7fddc53d
static int latm_decode_audio_specific_config(struct LATMContext *latmctx, GetBitContext *gb, int asclen) { AACContext *ac = &latmctx->aac_ctx; AVCodecContext *avctx = ac->avctx; MPEG4AudioConfig m4ac = {0}; int config_start_bit = get_bits_count(...
{ "code": [], "line_no": [] }
static int FUNC_0(struct LATMContext *VAR_0, GetBitContext *VAR_1, int VAR_2) { AACContext *ac = &VAR_0->aac_ctx; AVCodecContext *avctx = ac->avctx; MPEG4AudioConfig m4ac = {0}; int VAR_3 = get_bits_count(VAR_1); int VAR_4 = 0; int ...
[ "static int FUNC_0(struct LATMContext *VAR_0,\nGetBitContext *VAR_1, int VAR_2)\n{", "AACContext *ac = &VAR_0->aac_ctx;", "AVCodecContext *avctx = ac->avctx;", "MPEG4AudioConfig m4ac = {0};", "int VAR_3 = get_bits_count(VAR_1);", "int VAR_4 = 0;", "int VAR_5, VAR_6;", "if (VAR_2) {", "VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 40 ], [ 44, 46, 48 ], [ 52, 57, 59 ...
6,000
static void ehci_frame_timer(void *opaque) { EHCIState *ehci = opaque; int need_timer = 0; int64_t expire_time, t_now; uint64_t ns_elapsed; uint64_t uframes, skipped_uframes; int i; t_now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); ns_elapsed = t_now - ehci->last_run_ns; ufr...
true
qemu
3bfecee2cb71f21cd39d6183f18b446c01917573
static void ehci_frame_timer(void *opaque) { EHCIState *ehci = opaque; int need_timer = 0; int64_t expire_time, t_now; uint64_t ns_elapsed; uint64_t uframes, skipped_uframes; int i; t_now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); ns_elapsed = t_now - ehci->last_run_ns; ufr...
{ "code": [ "static void ehci_frame_timer(void *opaque)" ], "line_no": [ 1 ] }
static void FUNC_0(void *VAR_0) { EHCIState *ehci = VAR_0; int VAR_1 = 0; int64_t expire_time, t_now; uint64_t ns_elapsed; uint64_t uframes, skipped_uframes; int VAR_2; t_now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); ns_elapsed = t_now - ehci->last_run_ns; uframes = ns_ela...
[ "static void FUNC_0(void *VAR_0)\n{", "EHCIState *ehci = VAR_0;", "int VAR_1 = 0;", "int64_t expire_time, t_now;", "uint64_t ns_elapsed;", "uint64_t uframes, skipped_uframes;", "int VAR_2;", "t_now = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL);", "ns_elapsed = t_now - ehci->last_run_ns;", "uframes = ns_...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
6,001
int bdrv_inactivate_all(void) { BlockDriverState *bs = NULL; BdrvNextIterator it; int ret = 0; int pass; for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) { aio_context_acquire(bdrv_get_aio_context(bs)); } /* We do two passes of inactivation. The first pass calls to dr...
true
qemu
5e003f17ec518cd96f5d2ac23ce9e14144426235
int bdrv_inactivate_all(void) { BlockDriverState *bs = NULL; BdrvNextIterator it; int ret = 0; int pass; for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) { aio_context_acquire(bdrv_get_aio_context(bs)); } for (pass = 0; pass < 2; pass++) { for (bs...
{ "code": [], "line_no": [] }
int FUNC_0(void) { BlockDriverState *bs = NULL; BdrvNextIterator it; int VAR_0 = 0; int VAR_1; for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) { aio_context_acquire(bdrv_get_aio_context(bs)); } for (VAR_1 = 0; VAR_1 < 2; VAR_1++) { for (bs = bdrv...
[ "int FUNC_0(void)\n{", "BlockDriverState *bs = NULL;", "BdrvNextIterator it;", "int VAR_0 = 0;", "int VAR_1;", "for (bs = bdrv_first(&it); bs; bs = bdrv_next(&it)) {", "aio_context_acquire(bdrv_get_aio_context(bs));", "}", "for (VAR_1 = 0; VAR_1 < 2; VAR_1++) {", "for (bs = bdrv_first(&it); bs; bs...
[ 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 40 ], [ 42 ], [ 44 ], [ 46 ], [ 50, 52 ], [ 54 ], [ 56 ], [...
6,002
static void x86_cpu_parse_featurestr(CPUState *cs, char *features, Error **errp) { X86CPU *cpu = X86_CPU(cs); char *featurestr; /* Single 'key=value" string being parsed */ FeatureWord w; /* Features to be added */ FeatureWordArray plus_features = { 0 }; ...
false
qemu
dc15c0517b010a9444a2c05794dae980f2a2cbd9
static void x86_cpu_parse_featurestr(CPUState *cs, char *features, Error **errp) { X86CPU *cpu = X86_CPU(cs); char *featurestr; FeatureWord w; FeatureWordArray plus_features = { 0 }; FeatureWordArray minus_features = { 0 }; CPUX86State *e...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUState *VAR_0, char *VAR_1, Error **VAR_2) { X86CPU *cpu = X86_CPU(VAR_0); char *VAR_3; FeatureWord w; FeatureWordArray plus_features = { 0 }; FeatureWordArray minus_features = { 0 }; CPUX86State *env = &cpu->env; ...
[ "static void FUNC_0(CPUState *VAR_0, char *VAR_1,\nError **VAR_2)\n{", "X86CPU *cpu = X86_CPU(VAR_0);", "char *VAR_3;", "FeatureWord w;", "FeatureWordArray plus_features = { 0 };", "FeatureWordArray minus_features = { 0 };", "CPUX86State *env = &cpu->env;", "Error *local_err = NULL;", "VAR_3 = VAR_1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
6,003
static void do_sendkey(const char *string) { uint8_t keycodes[16]; int nb_keycodes = 0; char keyname_buf[16]; char *separator; int keyname_len, keycode, i; while (1) { separator = strchr(string, '-'); keyname_len = separator ? separator - string : strlen(string); ...
false
qemu
c8256f9d23bba4fac3b0b6a9e6e3dc12362cbe0b
static void do_sendkey(const char *string) { uint8_t keycodes[16]; int nb_keycodes = 0; char keyname_buf[16]; char *separator; int keyname_len, keycode, i; while (1) { separator = strchr(string, '-'); keyname_len = separator ? separator - string : strlen(string); ...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0) { uint8_t keycodes[16]; int VAR_1 = 0; char VAR_2[16]; char *VAR_3; int VAR_4, VAR_5, VAR_6; while (1) { VAR_3 = strchr(VAR_0, '-'); VAR_4 = VAR_3 ? VAR_3 - VAR_0 : strlen(VAR_0); if (VAR_4 > 0) { pstrcpy(VAR_...
[ "static void FUNC_0(const char *VAR_0)\n{", "uint8_t keycodes[16];", "int VAR_1 = 0;", "char VAR_2[16];", "char *VAR_3;", "int VAR_4, VAR_5, VAR_6;", "while (1) {", "VAR_3 = strchr(VAR_0, '-');", "VAR_4 = VAR_3 ? VAR_3 - VAR_0 : strlen(VAR_0);", "if (VAR_4 > 0) {", "pstrcpy(VAR_2, sizeof(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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
6,004
static int nbd_co_receive_request(NBDRequestData *req, NBDRequest *request, Error **errp) { NBDClient *client = req->client; g_assert(qemu_in_coroutine()); assert(client->recv_coroutine == qemu_coroutine_self()); if (nbd_receive_request(client->ioc, request, err...
false
qemu
3736cc5be31f0399999e37d8b28ca9a3ed0b4ccb
static int nbd_co_receive_request(NBDRequestData *req, NBDRequest *request, Error **errp) { NBDClient *client = req->client; g_assert(qemu_in_coroutine()); assert(client->recv_coroutine == qemu_coroutine_self()); if (nbd_receive_request(client->ioc, request, err...
{ "code": [], "line_no": [] }
static int FUNC_0(NBDRequestData *VAR_0, NBDRequest *VAR_1, Error **VAR_2) { NBDClient *client = VAR_0->client; g_assert(qemu_in_coroutine()); assert(client->recv_coroutine == qemu_coroutine_self()); if (nbd_receive_request(client->ioc, VAR_1, VAR_2) < 0) { ...
[ "static int FUNC_0(NBDRequestData *VAR_0, NBDRequest *VAR_1,\nError **VAR_2)\n{", "NBDClient *client = VAR_0->client;", "g_assert(qemu_in_coroutine());", "assert(client->recv_coroutine == qemu_coroutine_self());", "if (nbd_receive_request(client->ioc, VAR_1, VAR_2) < 0) {", "return -EIO;", "}", "trace...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 43 ], [ 45 ], [ 55 ], [ 57, 59 ], [ 61 ], [ 63 ], [ 67...
6,006
int qio_channel_writev_all(QIOChannel *ioc, const struct iovec *iov, size_t niov, Error **errp) { int ret = -1; struct iovec *local_iov = g_new(struct iovec, niov); struct iovec *local_iov_head = local_iov; unsigned...
false
qemu
9ffb8270205a274a18ee4f8a735e2fccaf957246
int qio_channel_writev_all(QIOChannel *ioc, const struct iovec *iov, size_t niov, Error **errp) { int ret = -1; struct iovec *local_iov = g_new(struct iovec, niov); struct iovec *local_iov_head = local_iov; unsigned...
{ "code": [], "line_no": [] }
int FUNC_0(QIOChannel *VAR_0, const struct iovec *VAR_1, size_t VAR_2, Error **VAR_3) { int VAR_4 = -1; struct iovec *VAR_5 = g_new(struct iovec, VAR_2); struct iovec *VAR_6 = VAR_5; unsigned int VAR_7 = VAR_2; ...
[ "int FUNC_0(QIOChannel *VAR_0,\nconst struct iovec *VAR_1,\nsize_t VAR_2,\nError **VAR_3)\n{", "int VAR_4 = -1;", "struct iovec *VAR_5 = g_new(struct iovec, VAR_2);", "struct iovec *VAR_6 = VAR_5;", "unsigned int VAR_7 = VAR_2;", "VAR_7 = iov_copy(VAR_5, VAR_7,\nVAR_1, VAR_2,\n0, iov_size(VAR_1, VAR_2));"...
[ 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 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [...
6,009
static int spapr_vio_busdev_init(DeviceState *qdev) { VIOsPAPRDevice *dev = (VIOsPAPRDevice *)qdev; VIOsPAPRDeviceClass *pc = VIO_SPAPR_DEVICE_GET_CLASS(dev); uint32_t liobn; char *id; if (dev->reg != -1) { /* * Explicitly assigned address, just verify that no-one else ...
false
qemu
a307d59434ba78b97544b42b8cfd24a1b62e39a6
static int spapr_vio_busdev_init(DeviceState *qdev) { VIOsPAPRDevice *dev = (VIOsPAPRDevice *)qdev; VIOsPAPRDeviceClass *pc = VIO_SPAPR_DEVICE_GET_CLASS(dev); uint32_t liobn; char *id; if (dev->reg != -1) { VIOsPAPRDevice *other = reg_conflict(dev); if...
{ "code": [], "line_no": [] }
static int FUNC_0(DeviceState *VAR_0) { VIOsPAPRDevice *dev = (VIOsPAPRDevice *)VAR_0; VIOsPAPRDeviceClass *pc = VIO_SPAPR_DEVICE_GET_CLASS(dev); uint32_t liobn; char *VAR_1; if (dev->reg != -1) { VIOsPAPRDevice *other = reg_conflict(dev); if (other) {...
[ "static int FUNC_0(DeviceState *VAR_0)\n{", "VIOsPAPRDevice *dev = (VIOsPAPRDevice *)VAR_0;", "VIOsPAPRDeviceClass *pc = VIO_SPAPR_DEVICE_GET_CLASS(dev);", "uint32_t liobn;", "char *VAR_1;", "if (dev->reg != -1) {", "VIOsPAPRDevice *other = reg_conflict(dev);", "if (other) {", "fprintf(stderr, \"vio...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 33 ], [ 35, 37, 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 67 ], [...
6,010
static unsigned int dec_subs_r(DisasContext *dc) { TCGv t0; int size = memsize_z(dc); DIS(fprintf (logfile, "subs.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2)); cris_cc_mask(dc, CC_MASK_NZVC); t0 = tcg_temp_new(TCG_TYPE_TL); /* Size can only be qi or hi. */ t_gen_sext(t0, cpu_...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static unsigned int dec_subs_r(DisasContext *dc) { TCGv t0; int size = memsize_z(dc); DIS(fprintf (logfile, "subs.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2)); cris_cc_mask(dc, CC_MASK_NZVC); t0 = tcg_temp_new(TCG_TYPE_TL); t_gen_sext(t0, cpu_R[dc->op1], size); cris_alu(dc,...
{ "code": [], "line_no": [] }
static unsigned int FUNC_0(DisasContext *VAR_0) { TCGv t0; int VAR_1 = memsize_z(VAR_0); DIS(fprintf (logfile, "subs.%c $r%u, $r%u\n", memsize_char(VAR_1), VAR_0->op1, VAR_0->op2)); cris_cc_mask(VAR_0, CC_MASK_NZVC); t0 = tcg_temp_new(TCG_TYPE_TL); t_gen_sext(t0, cpu_R[VAR_0->op1], VAR_1...
[ "static unsigned int FUNC_0(DisasContext *VAR_0)\n{", "TCGv t0;", "int VAR_1 = memsize_z(VAR_0);", "DIS(fprintf (logfile, \"subs.%c $r%u, $r%u\\n\",\nmemsize_char(VAR_1),\nVAR_0->op1, VAR_0->op2));", "cris_cc_mask(VAR_0, CC_MASK_NZVC);", "t0 = tcg_temp_new(TCG_TYPE_TL);", "t_gen_sext(t0, cpu_R[VAR_0->op...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11, 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ] ]
6,011
blkdebug_co_preadv(BlockDriverState *bs, uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags) { BDRVBlkdebugState *s = bs->opaque; BlkdebugRule *rule = NULL; /* Sanity check block layer guarantees */ assert(QEMU_IS_ALIGNED(offset, bs->bl.request_alignment)); as...
false
qemu
d157ed5f7235f3d2d5596a514ad7507b18e24b88
blkdebug_co_preadv(BlockDriverState *bs, uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags) { BDRVBlkdebugState *s = bs->opaque; BlkdebugRule *rule = NULL; assert(QEMU_IS_ALIGNED(offset, bs->bl.request_alignment)); assert(QEMU_IS_ALIGNED(bytes, bs->bl.reques...
{ "code": [], "line_no": [] }
FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t VAR_2, QEMUIOVector *VAR_3, int VAR_4) { BDRVBlkdebugState *s = VAR_0->opaque; BlkdebugRule *rule = NULL; assert(QEMU_IS_ALIGNED(VAR_1, VAR_0->bl.request_alignment)); assert(QEMU_IS_ALIGNED(VAR_2, VAR_0->bl.request...
[ "FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t VAR_2,\nQEMUIOVector *VAR_3, int VAR_4)\n{", "BDRVBlkdebugState *s = VAR_0->opaque;", "BlkdebugRule *rule = NULL;", "assert(QEMU_IS_ALIGNED(VAR_1, VAR_0->bl.request_alignment));", "assert(QEMU_IS_ALIGNED(VAR_2, VAR_0->bl.request_alignment));", "if ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33, 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [...
6,013
static int vmdk_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { char *buf; int ret; BDRVVmdkState *s = bs->opaque; uint32_t magic; buf = vmdk_read_desc(bs->file, 0, errp); if (!buf) { return -EINVAL; } magic = ldl_be_p(buf...
false
qemu
a646836784a0fc50fee6f9a0d3fb968289714128
static int vmdk_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { char *buf; int ret; BDRVVmdkState *s = bs->opaque; uint32_t magic; buf = vmdk_read_desc(bs->file, 0, errp); if (!buf) { return -EINVAL; } magic = ldl_be_p(buf...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { char *VAR_4; int VAR_5; BDRVVmdkState *s = VAR_0->opaque; uint32_t magic; VAR_4 = vmdk_read_desc(VAR_0->file, 0, VAR_3); if (!VAR_4) { return -EINVAL; } magic ...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "char *VAR_4;", "int VAR_5;", "BDRVVmdkState *s = VAR_0->opaque;", "uint32_t magic;", "VAR_4 = vmdk_read_desc(VAR_0->file, 0, VAR_3);", "if (!VAR_4) {", "return -EINVAL;", "}", "magic = ldl_be_p(VAR_4);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 45 ], [ 47 ], [ 49 ...
6,014
void visit_type_size(Visitor *v, uint64_t *obj, const char *name, Error **errp) { int64_t value; if (v->type_size) { v->type_size(v, obj, name, errp); } else if (v->type_uint64) { v->type_uint64(v, obj, name, errp); } else { value = *obj; v->type_int64(v, &valu...
false
qemu
f755dea79dc81b0d6a8f6414e0672e165e28d8ba
void visit_type_size(Visitor *v, uint64_t *obj, const char *name, Error **errp) { int64_t value; if (v->type_size) { v->type_size(v, obj, name, errp); } else if (v->type_uint64) { v->type_uint64(v, obj, name, errp); } else { value = *obj; v->type_int64(v, &valu...
{ "code": [], "line_no": [] }
void FUNC_0(Visitor *VAR_0, uint64_t *VAR_1, const char *VAR_2, Error **VAR_3) { int64_t value; if (VAR_0->type_size) { VAR_0->type_size(VAR_0, VAR_1, VAR_2, VAR_3); } else if (VAR_0->type_uint64) { VAR_0->type_uint64(VAR_0, VAR_1, VAR_2, VAR_3); } else { value = *VAR_1...
[ "void FUNC_0(Visitor *VAR_0, uint64_t *VAR_1, const char *VAR_2, Error **VAR_3)\n{", "int64_t value;", "if (VAR_0->type_size) {", "VAR_0->type_size(VAR_0, VAR_1, VAR_2, VAR_3);", "} else if (VAR_0->type_uint64) {", "VAR_0->type_uint64(VAR_0, VAR_1, VAR_2, VAR_3);", "} else {", "value = *VAR_1;", "VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
6,015
void *virtqueue_pop(VirtQueue *vq, size_t sz) { unsigned int i, head, max; hwaddr desc_pa = vq->vring.desc; VirtIODevice *vdev = vq->vdev; VirtQueueElement *elem; unsigned out_num, in_num; hwaddr addr[VIRTQUEUE_MAX_SIZE]; struct iovec iov[VIRTQUEUE_MAX_SIZE]; VRingDesc desc; ...
false
qemu
be1fea9bc286f64c6c995bb0d7145a0b738aeddb
void *virtqueue_pop(VirtQueue *vq, size_t sz) { unsigned int i, head, max; hwaddr desc_pa = vq->vring.desc; VirtIODevice *vdev = vq->vdev; VirtQueueElement *elem; unsigned out_num, in_num; hwaddr addr[VIRTQUEUE_MAX_SIZE]; struct iovec iov[VIRTQUEUE_MAX_SIZE]; VRingDesc desc; ...
{ "code": [], "line_no": [] }
void *FUNC_0(VirtQueue *VAR_0, size_t VAR_1) { unsigned int VAR_2, VAR_3, VAR_4; hwaddr desc_pa = VAR_0->vring.desc; VirtIODevice *vdev = VAR_0->vdev; VirtQueueElement *elem; unsigned VAR_5, VAR_6; hwaddr addr[VIRTQUEUE_MAX_SIZE]; struct iovec VAR_7[VIRTQUEUE_MAX_SIZE]; VRingDes...
[ "void *FUNC_0(VirtQueue *VAR_0, size_t VAR_1)\n{", "unsigned int VAR_2, VAR_3, VAR_4;", "hwaddr desc_pa = VAR_0->vring.desc;", "VirtIODevice *vdev = VAR_0->vdev;", "VirtQueueElement *elem;", "unsigned VAR_5, VAR_6;", "hwaddr addr[VIRTQUEUE_MAX_SIZE];", "struct iovec VAR_7[VIRTQUEUE_MAX_SIZE];", "VRi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ...
6,016
static void tgen_ext8s(TCGContext *s, TCGType type, TCGReg dest, TCGReg src) { if (facilities & FACILITY_EXT_IMM) { tcg_out_insn(s, RRE, LGBR, dest, src); return; } if (type == TCG_TYPE_I32) { if (dest == src) { tcg_out_sh32(s, RS_SLL, dest, TCG_REG_NONE, 24); ...
false
qemu
b2c98d9d392c87c9b9e975d30f79924719d9cbbe
static void tgen_ext8s(TCGContext *s, TCGType type, TCGReg dest, TCGReg src) { if (facilities & FACILITY_EXT_IMM) { tcg_out_insn(s, RRE, LGBR, dest, src); return; } if (type == TCG_TYPE_I32) { if (dest == src) { tcg_out_sh32(s, RS_SLL, dest, TCG_REG_NONE, 24); ...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGReg VAR_2, TCGReg VAR_3) { if (facilities & FACILITY_EXT_IMM) { tcg_out_insn(VAR_0, RRE, LGBR, VAR_2, VAR_3); return; } if (VAR_1 == TCG_TYPE_I32) { if (VAR_2 == VAR_3) { tcg_out_sh32(VAR_0, RS_SLL, VAR_2, ...
[ "static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGReg VAR_2, TCGReg VAR_3)\n{", "if (facilities & FACILITY_EXT_IMM) {", "tcg_out_insn(VAR_0, RRE, LGBR, VAR_2, VAR_3);", "return;", "}", "if (VAR_1 == TCG_TYPE_I32) {", "if (VAR_2 == VAR_3) {", "tcg_out_sh32(VAR_0, RS_SLL, VAR_2, TCG_REG_NONE, 24)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
6,017
void mips_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) { int i; for (i = 0; i < ARRAY_SIZE(mips_defs); i++) { (*cpu_fprintf)(f, "MIPS '%s'\n", mips_defs[i].name); } }
false
qemu
9a78eead0c74333a394c0f7bbfc4423ac746fcd5
void mips_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) { int i; for (i = 0; i < ARRAY_SIZE(mips_defs); i++) { (*cpu_fprintf)(f, "MIPS '%s'\n", mips_defs[i].name); } }
{ "code": [], "line_no": [] }
void FUNC_0 (FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...)) { int VAR_3; for (VAR_3 = 0; VAR_3 < ARRAY_SIZE(mips_defs); VAR_3++) { (*VAR_1)(VAR_2, "MIPS '%s'\n", mips_defs[VAR_3].name); } }
[ "void FUNC_0 (FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...))\n{", "int VAR_3;", "for (VAR_3 = 0; VAR_3 < ARRAY_SIZE(mips_defs); VAR_3++) {", "(*VAR_1)(VAR_2, \"MIPS '%s'\\n\",\nmips_defs[VAR_3].name);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ] ]
6,018
static int tpm_passthrough_handle_device_opts(QemuOpts *opts, TPMBackend *tb) { TPMPassthruState *tpm_pt = TPM_PASSTHROUGH(tb); const char *value; value = qemu_opt_get(opts, "cancel-path"); tb->cancel_path = g_strdup(value); value = qemu_opt_get(opts, "path"); if (!value) { v...
false
qemu
56a3c24ffc11955ddc7bb21362ca8069a3fc8c55
static int tpm_passthrough_handle_device_opts(QemuOpts *opts, TPMBackend *tb) { TPMPassthruState *tpm_pt = TPM_PASSTHROUGH(tb); const char *value; value = qemu_opt_get(opts, "cancel-path"); tb->cancel_path = g_strdup(value); value = qemu_opt_get(opts, "path"); if (!value) { v...
{ "code": [], "line_no": [] }
static int FUNC_0(QemuOpts *VAR_0, TPMBackend *VAR_1) { TPMPassthruState *tpm_pt = TPM_PASSTHROUGH(VAR_1); const char *VAR_2; VAR_2 = qemu_opt_get(VAR_0, "cancel-path"); VAR_1->cancel_path = g_strdup(VAR_2); VAR_2 = qemu_opt_get(VAR_0, "path"); if (!VAR_2) { VAR_2 = TPM_PASST...
[ "static int FUNC_0(QemuOpts *VAR_0, TPMBackend *VAR_1)\n{", "TPMPassthruState *tpm_pt = TPM_PASSTHROUGH(VAR_1);", "const char *VAR_2;", "VAR_2 = qemu_opt_get(VAR_0, \"cancel-path\");", "VAR_1->cancel_path = g_strdup(VAR_2);", "VAR_2 = qemu_opt_get(VAR_0, \"path\");", "if (!VAR_2) {", "VAR_2 = TPM_PASS...
[ 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51, 53 ], [ 55...
6,019
void ff_put_h264_qpel4_mc02_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_vt_4w_msa(src - (stride * 2), stride, dst, stride, 4); }
false
FFmpeg
662234a9a22f1cd0f0ac83b8bb1ffadedca90c0a
void ff_put_h264_qpel4_mc02_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_vt_4w_msa(src - (stride * 2), stride, dst, stride, 4); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_vt_4w_msa(VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2, 4); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_vt_4w_msa(VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2, 4);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
6,020
static int nbd_co_writev_1(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov, int offset) { BDRVNBDState *s = bs->opaque; struct nbd_request request; struct nbd_reply reply; request.type = NBD_CMD_WRITE; if (!...
false
qemu
fc19f8a02e45c4d8ad24dd7eb374330b03dfc28e
static int nbd_co_writev_1(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov, int offset) { BDRVNBDState *s = bs->opaque; struct nbd_request request; struct nbd_reply reply; request.type = NBD_CMD_WRITE; if (!...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2, QEMUIOVector *VAR_3, int VAR_4) { BDRVNBDState *s = VAR_0->opaque; struct nbd_request VAR_5; struct nbd_reply VAR_6; VAR_5.type = NBD_CMD_WRITE; if (!bdrv_enable_write...
[ "static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nint VAR_2, QEMUIOVector *VAR_3,\nint VAR_4)\n{", "BDRVNBDState *s = VAR_0->opaque;", "struct nbd_request VAR_5;", "struct nbd_reply VAR_6;", "VAR_5.type = NBD_CMD_WRITE;", "if (!bdrv_enable_write_cache(VAR_0) && (s->nbdflags & NBD_FLAG_SEND_FUA))...
[ 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
6,021
void mtree_info(fprintf_function mon_printf, void *f) { MemoryRegionListHead ml_head; MemoryRegionList *ml, *ml2; QTAILQ_INIT(&ml_head); mon_printf(f, "memory\n"); mtree_print_mr(mon_printf, f, address_space_memory.root, 0, 0, &ml_head); /* print aliased regions */ QTAILQ_FOREA...
true
qemu
88365e47dd19da8776252a94ed5fa0b7242ea9e9
void mtree_info(fprintf_function mon_printf, void *f) { MemoryRegionListHead ml_head; MemoryRegionList *ml, *ml2; QTAILQ_INIT(&ml_head); mon_printf(f, "memory\n"); mtree_print_mr(mon_printf, f, address_space_memory.root, 0, 0, &ml_head); QTAILQ_FOREACH(ml, &ml_head, queue) { ...
{ "code": [ " g_free(ml2);" ], "line_no": [ 39 ] }
void FUNC_0(fprintf_function VAR_0, void *VAR_1) { MemoryRegionListHead ml_head; MemoryRegionList *ml, *ml2; QTAILQ_INIT(&ml_head); VAR_0(VAR_1, "memory\n"); mtree_print_mr(VAR_0, VAR_1, address_space_memory.root, 0, 0, &ml_head); QTAILQ_FOREACH(ml, &ml_head, queue) { ...
[ "void FUNC_0(fprintf_function VAR_0, void *VAR_1)\n{", "MemoryRegionListHead ml_head;", "MemoryRegionList *ml, *ml2;", "QTAILQ_INIT(&ml_head);", "VAR_0(VAR_1, \"memory\\n\");", "mtree_print_mr(VAR_0, VAR_1, address_space_memory.root, 0, 0, &ml_head);", "QTAILQ_FOREACH(ml, &ml_head, queue) {", "if (!ml...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], ...
6,022
static int tm2_read_deltas(TM2Context *ctx, int stream_id) { int d, mb; int i, v; d = get_bits(&ctx->gb, 9); mb = get_bits(&ctx->gb, 5); av_assert2(mb < 32); if ((d < 1) || (d > TM2_DELTAS) || (mb < 1)) { av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect delta table: %i deltas x %...
true
FFmpeg
c9e884f3d98df85bf7f2cf30d71877b22929fdcb
static int tm2_read_deltas(TM2Context *ctx, int stream_id) { int d, mb; int i, v; d = get_bits(&ctx->gb, 9); mb = get_bits(&ctx->gb, 5); av_assert2(mb < 32); if ((d < 1) || (d > TM2_DELTAS) || (mb < 1)) { av_log(ctx->avctx, AV_LOG_ERROR, "Incorrect delta table: %i deltas x %...
{ "code": [ " ctx->deltas[stream_id][i] = v - (1 << mb);" ], "line_no": [ 35 ] }
static int FUNC_0(TM2Context *VAR_0, int VAR_1) { int VAR_2, VAR_3; int VAR_4, VAR_5; VAR_2 = get_bits(&VAR_0->gb, 9); VAR_3 = get_bits(&VAR_0->gb, 5); av_assert2(VAR_3 < 32); if ((VAR_2 < 1) || (VAR_2 > TM2_DELTAS) || (VAR_3 < 1)) { av_log(VAR_0->avctx, AV_LOG_ERROR, "Incor...
[ "static int FUNC_0(TM2Context *VAR_0, int VAR_1)\n{", "int VAR_2, VAR_3;", "int VAR_4, VAR_5;", "VAR_2 = get_bits(&VAR_0->gb, 9);", "VAR_3 = get_bits(&VAR_0->gb, 5);", "av_assert2(VAR_3 < 32);", "if ((VAR_2 < 1) || (VAR_2 > TM2_DELTAS) || (VAR_3 < 1)) {", "av_log(VAR_0->avctx, AV_LOG_ERROR, \"Incorre...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51...
6,023
static void decode_delta_j(uint8_t *dst, const uint8_t *buf, const uint8_t *buf_end, int w, int h, int bpp, int dst_size) { int32_t pitch; uint8_t *end = dst + dst_size, *ptr; uint32_t type, flag, cols, groups, rows, bytes; uint32_t offset; ...
true
FFmpeg
5350e0fc97a50de7cb387d1d5f07fe25c9c4a935
static void decode_delta_j(uint8_t *dst, const uint8_t *buf, const uint8_t *buf_end, int w, int h, int bpp, int dst_size) { int32_t pitch; uint8_t *end = dst + dst_size, *ptr; uint32_t type, flag, cols, groups, rows, bytes; uint32_t offset; ...
{ "code": [ " uint8_t *end = dst + dst_size, *ptr;", " ptr = dst + offset;", " if (ptr >= end)", " ptr += planepitch;", " if (ptr >= end)", " ptr = dst + offset + (r * pitch) + d * planepitch;...
static void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6) { int32_t pitch; uint8_t *end = VAR_0 + VAR_6, *ptr; uint32_t type, flag, cols, groups, rows, bytes; uint32_t offset; ...
[ "static void FUNC_0(uint8_t *VAR_0,\nconst uint8_t *VAR_1, const uint8_t *VAR_2,\nint VAR_3, int VAR_4, int VAR_5, int VAR_6)\n{", "int32_t pitch;", "uint8_t *end = VAR_0 + VAR_6, *ptr;", "uint32_t type, flag, cols, groups, rows, bytes;", "uint32_t offset;", "int VAR_7 = (VAR_3 + 7) / 8;", "int VAR_8 = ...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 49, 51 ], [ 53 ...
6,024
static int libshine_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { SHINEContext *s = avctx->priv_data; MPADecodeHeader hdr; unsigned char *data; long written; int ret, len; if (frame) data = sh...
true
FFmpeg
e48a9ac9af5f6e652735aa44a86420b5e7258895
static int libshine_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { SHINEContext *s = avctx->priv_data; MPADecodeHeader hdr; unsigned char *data; long written; int ret, len; if (frame) data = sh...
{ "code": [ " long written;" ], "line_no": [ 13 ] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2, int *VAR_3) { SHINEContext *s = VAR_0->priv_data; MPADecodeHeader hdr; unsigned char *VAR_4; long VAR_5; int VAR_6, VAR_7; if (VAR_2) VAR_4 = shine_encode_buffer(s-...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{", "SHINEContext *s = VAR_0->priv_data;", "MPADecodeHeader hdr;", "unsigned char *VAR_4;", "long VAR_5;", "int VAR_6, VAR_7;", "if (VAR_2)\nVAR_4 = shine_encode_buffer(s->shine, (int16_t **)VAR_2->VAR_4, &VAR...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
6,026
static int flac_write_trailer(struct AVFormatContext *s) { ByteIOContext *pb = s->pb; uint8_t *streaminfo = s->streams[0]->codec->extradata; int len = s->streams[0]->codec->extradata_size; int64_t file_size; if (streaminfo && len > 0 && !url_is_streamed(s->pb)) { file_size = url_fte...
false
FFmpeg
59c6178a54c414fd19e064f0077d00b82a1eb812
static int flac_write_trailer(struct AVFormatContext *s) { ByteIOContext *pb = s->pb; uint8_t *streaminfo = s->streams[0]->codec->extradata; int len = s->streams[0]->codec->extradata_size; int64_t file_size; if (streaminfo && len > 0 && !url_is_streamed(s->pb)) { file_size = url_fte...
{ "code": [], "line_no": [] }
static int FUNC_0(struct AVFormatContext *VAR_0) { ByteIOContext *pb = VAR_0->pb; uint8_t *streaminfo = VAR_0->streams[0]->codec->extradata; int VAR_1 = VAR_0->streams[0]->codec->extradata_size; int64_t file_size; if (streaminfo && VAR_1 > 0 && !url_is_streamed(VAR_0->pb)) { file_si...
[ "static int FUNC_0(struct AVFormatContext *VAR_0)\n{", "ByteIOContext *pb = VAR_0->pb;", "uint8_t *streaminfo = VAR_0->streams[0]->codec->extradata;", "int VAR_1 = VAR_0->streams[0]->codec->extradata_size;", "int64_t file_size;", "if (streaminfo && VAR_1 > 0 && !url_is_streamed(VAR_0->pb)) {", "file_siz...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
6,028
int egl_rendernode_init(const char *rendernode) { qemu_egl_rn_fd = -1; qemu_egl_rn_fd = qemu_egl_rendernode_open(rendernode); if (qemu_egl_rn_fd == -1) { error_report("egl: no drm render node available"); goto err; } qemu_egl_rn_gbm_dev = gbm_create_device(qemu_egl_rn_fd)...
true
qemu
151c8e608efc29e4dde4a0dbc2e79ebbc86c319c
int egl_rendernode_init(const char *rendernode) { qemu_egl_rn_fd = -1; qemu_egl_rn_fd = qemu_egl_rendernode_open(rendernode); if (qemu_egl_rn_fd == -1) { error_report("egl: no drm render node available"); goto err; } qemu_egl_rn_gbm_dev = gbm_create_device(qemu_egl_rn_fd)...
{ "code": [ " qemu_egl_init_dpy_mesa((EGLNativeDisplayType)qemu_egl_rn_gbm_dev);" ], "line_no": [ 33 ] }
int FUNC_0(const char *VAR_0) { qemu_egl_rn_fd = -1; qemu_egl_rn_fd = qemu_egl_rendernode_open(VAR_0); if (qemu_egl_rn_fd == -1) { error_report("egl: no drm render node available"); goto err; } qemu_egl_rn_gbm_dev = gbm_create_device(qemu_egl_rn_fd); if (!qemu_egl_rn...
[ "int FUNC_0(const char *VAR_0)\n{", "qemu_egl_rn_fd = -1;", "qemu_egl_rn_fd = qemu_egl_rendernode_open(VAR_0);", "if (qemu_egl_rn_fd == -1) {", "error_report(\"egl: no drm render node available\");", "goto err;", "}", "qemu_egl_rn_gbm_dev = gbm_create_device(qemu_egl_rn_fd);", "if (!qemu_egl_rn_gbm_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51...
6,029
static inline int read_line(AVFormatContext *s, char *rbuf, const int rbufsize, int *rbuflen) { RTSPState *rt = s->priv_data; int idx = 0; int ret = 0; *rbuflen = 0; do { ret = ffurl_read_complete(rt->rtsp_hd, rbuf + idx, 1); if...
true
FFmpeg
0c6b9b9fe5edb7b4307e1705bac7f1087262a6fb
static inline int read_line(AVFormatContext *s, char *rbuf, const int rbufsize, int *rbuflen) { RTSPState *rt = s->priv_data; int idx = 0; int ret = 0; *rbuflen = 0; do { ret = ffurl_read_complete(rt->rtsp_hd, rbuf + idx, 1); if...
{ "code": [ " if (ret < 0)", " return ret;" ], "line_no": [ 21, 23 ] }
static inline int FUNC_0(AVFormatContext *VAR_0, char *VAR_1, const int VAR_2, int *VAR_3) { RTSPState *rt = VAR_0->priv_data; int VAR_4 = 0; int VAR_5 = 0; *VAR_3 = 0; do { VAR_5 = ffurl_read_complete(rt->rtsp_hd, VAR_1 + VAR_4, 1); ...
[ "static inline int FUNC_0(AVFormatContext *VAR_0, char *VAR_1, const int VAR_2,\nint *VAR_3)\n{", "RTSPState *rt = VAR_0->priv_data;", "int VAR_4 = 0;", "int VAR_5 = 0;", "*VAR_3 = 0;", "do {", "VAR_5 = ffurl_read_complete(rt->rtsp_hd, VAR_1 + VAR_4, 1);", "if (VAR_5 < 0)\nreturn VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
6,030
static void pc_cpu_unplug_request_cb(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { int idx = -1; HotplugHandlerClass *hhc; Error *local_err = NULL; X86CPU *cpu = X86_CPU(dev); PCMachineState *pcms = PC_MACHINE(hotplug_dev); pc_find_cpu_slot(M...
true
qemu
75ba2ddb188fa07c3442446766782036e3085cba
static void pc_cpu_unplug_request_cb(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { int idx = -1; HotplugHandlerClass *hhc; Error *local_err = NULL; X86CPU *cpu = X86_CPU(dev); PCMachineState *pcms = PC_MACHINE(hotplug_dev); pc_find_cpu_slot(M...
{ "code": [], "line_no": [] }
static void FUNC_0(HotplugHandler *VAR_0, DeviceState *VAR_1, Error **VAR_2) { int VAR_3 = -1; HotplugHandlerClass *hhc; Error *local_err = NULL; X86CPU *cpu = X86_CPU(VAR_1); PCMachineState *pcms = PC_MACHINE(VAR_0); pc_find_cpu_slot(MACHINE(pcms), cpu->apic...
[ "static void FUNC_0(HotplugHandler *VAR_0,\nDeviceState *VAR_1, Error **VAR_2)\n{", "int VAR_3 = -1;", "HotplugHandlerClass *hhc;", "Error *local_err = NULL;", "X86CPU *cpu = X86_CPU(VAR_1);", "PCMachineState *pcms = PC_MACHINE(VAR_0);", "pc_find_cpu_slot(MACHINE(pcms), cpu->apic_id, &VAR_3);", "asser...
[ 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 ] ]
6,031
static void lm32_evr_init(QEMUMachineInitArgs *args) { const char *cpu_model = args->cpu_model; const char *kernel_filename = args->kernel_filename; LM32CPU *cpu; CPULM32State *env; DriveInfo *dinfo; MemoryRegion *address_space_mem = get_system_memory(); MemoryRegion *phys_ram = g_new(Memor...
true
qemu
f41152bd9d01ab327c19a3828bb7896d67cf0752
static void lm32_evr_init(QEMUMachineInitArgs *args) { const char *cpu_model = args->cpu_model; const char *kernel_filename = args->kernel_filename; LM32CPU *cpu; CPULM32State *env; DriveInfo *dinfo; MemoryRegion *address_space_mem = get_system_memory(); MemoryRegion *phys_ram = g_new(Memor...
{ "code": [], "line_no": [] }
static void FUNC_0(QEMUMachineInitArgs *VAR_0) { const char *VAR_1 = VAR_0->VAR_1; const char *VAR_2 = VAR_0->VAR_2; LM32CPU *cpu; CPULM32State *env; DriveInfo *dinfo; MemoryRegion *address_space_mem = get_system_memory(); MemoryRegion *phys_ram = g_new(MemoryRegion, 1); qemu_irq *cpu_i...
[ "static void FUNC_0(QEMUMachineInitArgs *VAR_0)\n{", "const char *VAR_1 = VAR_0->VAR_1;", "const char *VAR_2 = VAR_0->VAR_2;", "LM32CPU *cpu;", "CPULM32State *env;", "DriveInfo *dinfo;", "MemoryRegion *address_space_mem = get_system_memory();", "MemoryRegion *phys_ram = g_new(MemoryRegion, 1);", "q...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ],...
6,035
static void nam_writel (void *opaque, uint32_t addr, uint32_t val) { PCIAC97LinkState *d = opaque; AC97LinkState *s = &d->ac97; dolog ("U nam writel %#x <- %#x\n", addr, val); s->cas = 0; }
false
qemu
10ee2aaa417d8d8978cdb2bbed55ebb152df5f6b
static void nam_writel (void *opaque, uint32_t addr, uint32_t val) { PCIAC97LinkState *d = opaque; AC97LinkState *s = &d->ac97; dolog ("U nam writel %#x <- %#x\n", addr, val); s->cas = 0; }
{ "code": [], "line_no": [] }
static void FUNC_0 (void *VAR_0, uint32_t VAR_1, uint32_t VAR_2) { PCIAC97LinkState *d = VAR_0; AC97LinkState *s = &d->ac97; dolog ("U nam writel %#x <- %#x\n", VAR_1, VAR_2); s->cas = 0; }
[ "static void FUNC_0 (void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{", "PCIAC97LinkState *d = VAR_0;", "AC97LinkState *s = &d->ac97;", "dolog (\"U nam writel %#x <- %#x\\n\", VAR_1, VAR_2);", "s->cas = 0;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
6,036
static void smbios_check_collision(int type, int entry) { if (type < ARRAY_SIZE(first_opt)) { if (first_opt[type].seen) { if (first_opt[type].headertype != entry) { error_report("Can't mix file= and type= for same type"); loc_push_restore(&first_opt[type].lo...
false
qemu
2e6e8d7a25a6e31dee58226ea7fc374844d69732
static void smbios_check_collision(int type, int entry) { if (type < ARRAY_SIZE(first_opt)) { if (first_opt[type].seen) { if (first_opt[type].headertype != entry) { error_report("Can't mix file= and type= for same type"); loc_push_restore(&first_opt[type].lo...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, int VAR_1) { if (VAR_0 < ARRAY_SIZE(first_opt)) { if (first_opt[VAR_0].seen) { if (first_opt[VAR_0].headertype != VAR_1) { error_report("Can't mix file= and VAR_0= for same VAR_0"); loc_push_restore(&first_opt[VAR_0].loc); ...
[ "static void FUNC_0(int VAR_0, int VAR_1)\n{", "if (VAR_0 < ARRAY_SIZE(first_opt)) {", "if (first_opt[VAR_0].seen) {", "if (first_opt[VAR_0].headertype != VAR_1) {", "error_report(\"Can't mix file= and VAR_0= for same VAR_0\");", "loc_push_restore(&first_opt[VAR_0].loc);", "error_report(\"This is the co...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
6,037
static void monitor_read_command(Monitor *mon, int show_prompt) { if (!mon->rs) return; readline_start(mon->rs, "(qemu) ", 0, monitor_command_cb, NULL); if (show_prompt) readline_show_prompt(mon->rs); }
false
qemu
7060b478d3f3a8bc7a282292609ff5aec6de1958
static void monitor_read_command(Monitor *mon, int show_prompt) { if (!mon->rs) return; readline_start(mon->rs, "(qemu) ", 0, monitor_command_cb, NULL); if (show_prompt) readline_show_prompt(mon->rs); }
{ "code": [], "line_no": [] }
static void FUNC_0(Monitor *VAR_0, int VAR_1) { if (!VAR_0->rs) return; readline_start(VAR_0->rs, "(qemu) ", 0, monitor_command_cb, NULL); if (VAR_1) readline_show_prompt(VAR_0->rs); }
[ "static void FUNC_0(Monitor *VAR_0, int VAR_1)\n{", "if (!VAR_0->rs)\nreturn;", "readline_start(VAR_0->rs, \"(qemu) \", 0, monitor_command_cb, NULL);", "if (VAR_1)\nreadline_show_prompt(VAR_0->rs);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13, 15 ], [ 17 ] ]
6,038
DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi) { const char *buf; const char *file = NULL; char devname[128]; const char *serial; const char *mediastr = ""; BlockInterfaceType type; enum { MEDIA_DISK, MEDIA_CDROM } media; int bus_id, unit_id; int cyls, heads, se...
false
qemu
a659979328fb6d4d6100d398f5bd9a2310c3e169
DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi) { const char *buf; const char *file = NULL; char devname[128]; const char *serial; const char *mediastr = ""; BlockInterfaceType type; enum { MEDIA_DISK, MEDIA_CDROM } media; int bus_id, unit_id; int cyls, heads, se...
{ "code": [], "line_no": [] }
DriveInfo *FUNC_0(QemuOpts *opts, int default_to_scsi) { const char *VAR_0; const char *VAR_1 = NULL; char VAR_2[128]; const char *VAR_3; const char *VAR_4 = ""; BlockInterfaceType type; enum { MEDIA_DISK, MEDIA_CDROM } VAR_5; int VAR_6, VAR_7; int VAR_8, VAR_9, VAR_10, VAR...
[ "DriveInfo *FUNC_0(QemuOpts *opts, int default_to_scsi)\n{", "const char *VAR_0;", "const char *VAR_1 = NULL;", "char VAR_2[128];", "const char *VAR_3;", "const char *VAR_4 = \"\";", "BlockInterfaceType type;", "enum { MEDIA_DISK, MEDIA_CDROM } VAR_5;", "int VAR_6, VAR_7;", "int VAR_8, VAR_9, 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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
6,039
static void sx1_init(MachineState *machine, const int version) { struct omap_mpu_state_s *mpu; MemoryRegion *address_space = get_system_memory(); MemoryRegion *flash = g_new(MemoryRegion, 1); MemoryRegion *flash_1 = g_new(MemoryRegion, 1); MemoryRegion *cs = g_new(MemoryRegion, 4); static...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void sx1_init(MachineState *machine, const int version) { struct omap_mpu_state_s *mpu; MemoryRegion *address_space = get_system_memory(); MemoryRegion *flash = g_new(MemoryRegion, 1); MemoryRegion *flash_1 = g_new(MemoryRegion, 1); MemoryRegion *cs = g_new(MemoryRegion, 4); static...
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0, const int VAR_1) { struct omap_mpu_state_s *VAR_2; MemoryRegion *address_space = get_system_memory(); MemoryRegion *flash = g_new(MemoryRegion, 1); MemoryRegion *flash_1 = g_new(MemoryRegion, 1); MemoryRegion *cs = g_new(MemoryRegion, 4); static uin...
[ "static void FUNC_0(MachineState *VAR_0, const int VAR_1)\n{", "struct omap_mpu_state_s *VAR_2;", "MemoryRegion *address_space = get_system_memory();", "MemoryRegion *flash = g_new(MemoryRegion, 1);", "MemoryRegion *flash_1 = g_new(MemoryRegion, 1);", "MemoryRegion *cs = g_new(MemoryRegion, 4);", "stati...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 49, 51 ...
6,041
qcrypto_block_luks_load_key(QCryptoBlock *block, QCryptoBlockLUKSKeySlot *slot, const char *password, QCryptoCipherAlgorithm cipheralg, QCryptoCipherMode ciphermode, QCryptoHa...
false
qemu
375092332eeaa6e47561ce47fd36144cdaf964d0
qcrypto_block_luks_load_key(QCryptoBlock *block, QCryptoBlockLUKSKeySlot *slot, const char *password, QCryptoCipherAlgorithm cipheralg, QCryptoCipherMode ciphermode, QCryptoHa...
{ "code": [], "line_no": [] }
FUNC_0(QCryptoBlock *VAR_0, QCryptoBlockLUKSKeySlot *VAR_1, const char *VAR_2, QCryptoCipherAlgorithm VAR_3, QCryptoCipherMode VAR_4, QCryptoHashAlgorithm VAR_5, ...
[ "FUNC_0(QCryptoBlock *VAR_0,\nQCryptoBlockLUKSKeySlot *VAR_1,\nconst char *VAR_2,\nQCryptoCipherAlgorithm VAR_3,\nQCryptoCipherMode VAR_4,\nQCryptoHashAlgorithm VAR_5,\nQCryptoIVGenAlgorithm VAR_6,\nQCryptoCipherAlgorithm VAR_7,\nQCryptoHashAlgorithm VAR_8,\nuint8_t *VAR_9,\nsize_t VAR_10,\nQCryptoBlockReadFunc 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 ]
[ [ 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 ], [ 53 ], [ 55 ], [...
6,042
static uint64_t gem_read(void *opaque, target_phys_addr_t offset, unsigned size) { GemState *s; uint32_t retval; s = (GemState *)opaque; offset >>= 2; retval = s->regs[offset]; DB_PRINT("offset: 0x%04x read: 0x%08x\n", offset*4, retval); switch (offset) { case GEM_ISR: ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t gem_read(void *opaque, target_phys_addr_t offset, unsigned size) { GemState *s; uint32_t retval; s = (GemState *)opaque; offset >>= 2; retval = s->regs[offset]; DB_PRINT("offset: 0x%04x read: 0x%08x\n", offset*4, retval); switch (offset) { case GEM_ISR: ...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset, unsigned size) { GemState *s; uint32_t retval; s = (GemState *)opaque; offset >>= 2; retval = s->regs[offset]; DB_PRINT("offset: 0x%04x read: 0x%08x\n", offset*4, retval); switch (offset) { case GEM_ISR: ...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset, unsigned size)\n{", "GemState *s;", "uint32_t retval;", "s = (GemState *)opaque;", "offset >>= 2;", "retval = s->regs[offset];", "DB_PRINT(\"offset: 0x%04x read: 0x%08x\\n\", offset*4, retval);", "switch (offset) {", "case GEM_ISR:\nqe...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
6,044
static void musicpal_lcd_init(DisplayState *ds, uint32_t base) { musicpal_lcd_state *s; int iomemtype; s = qemu_mallocz(sizeof(musicpal_lcd_state)); if (!s) return; s->base = base; s->ds = ds; iomemtype = cpu_register_io_memory(0, musicpal_lcd_readfn, ...
false
qemu
167bc3d2fa100590b5a9d8fd9f19ae0207197447
static void musicpal_lcd_init(DisplayState *ds, uint32_t base) { musicpal_lcd_state *s; int iomemtype; s = qemu_mallocz(sizeof(musicpal_lcd_state)); if (!s) return; s->base = base; s->ds = ds; iomemtype = cpu_register_io_memory(0, musicpal_lcd_readfn, ...
{ "code": [], "line_no": [] }
static void FUNC_0(DisplayState *VAR_0, uint32_t VAR_1) { musicpal_lcd_state *s; int VAR_2; s = qemu_mallocz(sizeof(musicpal_lcd_state)); if (!s) return; s->VAR_1 = VAR_1; s->VAR_0 = VAR_0; VAR_2 = cpu_register_io_memory(0, musicpal_lcd_readfn, ...
[ "static void FUNC_0(DisplayState *VAR_0, uint32_t VAR_1)\n{", "musicpal_lcd_state *s;", "int VAR_2;", "s = qemu_mallocz(sizeof(musicpal_lcd_state));", "if (!s)\nreturn;", "s->VAR_1 = VAR_1;", "s->VAR_0 = VAR_0;", "VAR_2 = cpu_register_io_memory(0, musicpal_lcd_readfn,\nmusicpal_lcd_writefn, s);", "c...
[ 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 ] ]
6,045
void virtqueue_get_avail_bytes(VirtQueue *vq, unsigned int *in_bytes, unsigned int *out_bytes) { unsigned int idx; unsigned int total_bufs, in_total, out_total; idx = vq->last_avail_idx; total_bufs = in_total = out_total = 0; while (virtqueue_num_heads(vq, i...
false
qemu
e1f7b4812eab992de46c98b3726745afb042a7f0
void virtqueue_get_avail_bytes(VirtQueue *vq, unsigned int *in_bytes, unsigned int *out_bytes) { unsigned int idx; unsigned int total_bufs, in_total, out_total; idx = vq->last_avail_idx; total_bufs = in_total = out_total = 0; while (virtqueue_num_heads(vq, i...
{ "code": [], "line_no": [] }
void FUNC_0(VirtQueue *VAR_0, unsigned int *VAR_1, unsigned int *VAR_2) { unsigned int VAR_3; unsigned int VAR_4, VAR_5, VAR_6; VAR_3 = VAR_0->last_avail_idx; VAR_4 = VAR_5 = VAR_6 = 0; while (virtqueue_num_heads(VAR_0, VAR_3)) { unsigned int VAR_7,...
[ "void FUNC_0(VirtQueue *VAR_0, unsigned int *VAR_1,\nunsigned int *VAR_2)\n{", "unsigned int VAR_3;", "unsigned int VAR_4, VAR_5, VAR_6;", "VAR_3 = VAR_0->last_avail_idx;", "VAR_4 = VAR_5 = VAR_6 = 0;", "while (virtqueue_num_heads(VAR_0, VAR_3)) {", "unsigned int VAR_7, VAR_8, VAR_9 = 0;", "hwaddr des...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53 ], [...
6,046
static int xen_pt_cmd_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint16_t *val, uint16_t dev_value, uint16_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; uint16_t writable_mask = 0; uint16_t throughable_mask = get_thro...
false
qemu
e2779de053b64f023de382fd87b3596613d47d1e
static int xen_pt_cmd_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint16_t *val, uint16_t dev_value, uint16_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; uint16_t writable_mask = 0; uint16_t throughable_mask = get_thro...
{ "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; uint16_t writable_mask = 0; uint16_t throughable_mask = get_throughable_mask(VAR_0, reg, ...
[ "static int FUNC_0(XenPCIPassthroughState *VAR_0, XenPTReg *VAR_1,\nuint16_t *VAR_2, uint16_t VAR_3,\nuint16_t VAR_4)\n{", "XenPTRegInfo *reg = VAR_1->reg;", "uint16_t writable_mask = 0;", "uint16_t throughable_mask = get_throughable_mask(VAR_0, reg, VAR_4);", "writable_mask = ~reg->ro_mask & VAR_4;", "VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ] ]
6,048
static void v9fs_remove(void *opaque) { int32_t fid; int err = 0; size_t offset = 7; V9fsFidState *fidp; V9fsPDU *pdu = opaque; pdu_unmarshal(pdu, offset, "d", &fid); trace_v9fs_remove(pdu->tag, pdu->id, fid); fidp = get_fid(pdu, fid); if (fidp == NULL) { err =...
false
qemu
ddca7f86ac022289840e0200fd4050b2b58e9176
static void v9fs_remove(void *opaque) { int32_t fid; int err = 0; size_t offset = 7; V9fsFidState *fidp; V9fsPDU *pdu = opaque; pdu_unmarshal(pdu, offset, "d", &fid); trace_v9fs_remove(pdu->tag, pdu->id, fid); fidp = get_fid(pdu, fid); if (fidp == NULL) { err =...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { int32_t fid; int VAR_1 = 0; size_t offset = 7; V9fsFidState *fidp; V9fsPDU *pdu = VAR_0; pdu_unmarshal(pdu, offset, "d", &fid); trace_v9fs_remove(pdu->tag, pdu->id, fid); fidp = get_fid(pdu, fid); if (fidp == NULL) { VAR_1 = -E...
[ "static void FUNC_0(void *VAR_0)\n{", "int32_t fid;", "int VAR_1 = 0;", "size_t offset = 7;", "V9fsFidState *fidp;", "V9fsPDU *pdu = VAR_0;", "pdu_unmarshal(pdu, offset, \"d\", &fid);", "trace_v9fs_remove(pdu->tag, pdu->id, fid);", "fidp = get_fid(pdu, fid);", "if (fidp == NULL) {", "VAR_1 = -EI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 51 ], [ 53 ], [ 55 ...
6,049
static void mips_qemu_write (void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { if ((addr & 0xffff) == 0 && val == 42) qemu_system_reset_request (); else if ((addr & 0xffff) == 4 && val == 42) qemu_system_shutdown_request (); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void mips_qemu_write (void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { if ((addr & 0xffff) == 0 && val == 42) qemu_system_reset_request (); else if ((addr & 0xffff) == 4 && val == 42) qemu_system_shutdown_request (); }
{ "code": [], "line_no": [] }
static void FUNC_0 (void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { if ((VAR_1 & 0xffff) == 0 && VAR_2 == 42) qemu_system_reset_request (); else if ((VAR_1 & 0xffff) == 4 && VAR_2 == 42) qemu_system_shutdown_request (); }
[ "static void FUNC_0 (void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "if ((VAR_1 & 0xffff) == 0 && VAR_2 == 42)\nqemu_system_reset_request ();", "else if ((VAR_1 & 0xffff) == 4 && VAR_2 == 42)\nqemu_system_shutdown_request ();", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11, 13 ], [ 15 ] ]
6,050
SocketAddress *socket_remote_address(int fd, Error **errp) { struct sockaddr_storage ss; socklen_t sslen = sizeof(ss); if (getpeername(fd, (struct sockaddr *)&ss, &sslen) < 0) { error_setg_errno(errp, errno, "%s", "Unable to query remote socket address"); re...
false
qemu
dfd100f242370886bb6732f70f1f7cbd8eb9fedc
SocketAddress *socket_remote_address(int fd, Error **errp) { struct sockaddr_storage ss; socklen_t sslen = sizeof(ss); if (getpeername(fd, (struct sockaddr *)&ss, &sslen) < 0) { error_setg_errno(errp, errno, "%s", "Unable to query remote socket address"); re...
{ "code": [], "line_no": [] }
SocketAddress *FUNC_0(int fd, Error **errp) { struct sockaddr_storage VAR_0; socklen_t sslen = sizeof(VAR_0); if (getpeername(fd, (struct sockaddr *)&VAR_0, &sslen) < 0) { error_setg_errno(errp, errno, "%s", "Unable to query remote socket address"); return N...
[ "SocketAddress *FUNC_0(int fd, Error **errp)\n{", "struct sockaddr_storage VAR_0;", "socklen_t sslen = sizeof(VAR_0);", "if (getpeername(fd, (struct sockaddr *)&VAR_0, &sslen) < 0) {", "error_setg_errno(errp, errno, \"%s\",\n\"Unable to query remote socket address\");", "return NULL;", "}", "return so...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
6,051
static int mov_read_wave(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; if((uint64_t)atom.size > (1<<30)) return -1; if (st->codec->codec_id == CODEC_ID_QDM2) { // pass all frma atom to codec, needed at least for QDM2 ...
false
FFmpeg
6a63ff19b6a7fe3bc32c7fb4a62fca8f65786432
static int mov_read_wave(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; if((uint64_t)atom.size > (1<<30)) return -1; if (st->codec->codec_id == CODEC_ID_QDM2) { av_free(st->codec->extradata); st->codec->extra...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2) { AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; if((uint64_t)VAR_2.size > (1<<30)) return -1; if (st->codec->codec_id == CODEC_ID_QDM2) { av_free(st->codec->extradata); st->co...
[ "static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2)\n{", "AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "if((uint64_t)VAR_2.size > (1<<30))\nreturn -1;", "if (st->codec->codec_id == CODEC_ID_QDM2) {", "av_free(st->codec->extradata);", "st->codec->extradata = av_mallo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
6,052
fetchline(void) { char *p, *line = malloc(MAXREADLINESZ); if (!line) return NULL; printf("%s", get_prompt()); fflush(stdout); if (!fgets(line, MAXREADLINESZ, stdin)) { free(line); return NULL; } p = line + strlen(line); if (p != line && p[-1] == '\n') p[-1] = '\0'; return line; }
false
qemu
7d7d975c67aaa48a6aaf1630c143a453606567b1
fetchline(void) { char *p, *line = malloc(MAXREADLINESZ); if (!line) return NULL; printf("%s", get_prompt()); fflush(stdout); if (!fgets(line, MAXREADLINESZ, stdin)) { free(line); return NULL; } p = line + strlen(line); if (p != line && p[-1] == '\n') p[-1] = '\0'; return line; }
{ "code": [], "line_no": [] }
FUNC_0(void) { char *VAR_0, *VAR_1 = malloc(MAXREADLINESZ); if (!VAR_1) return NULL; printf("%s", get_prompt()); fflush(stdout); if (!fgets(VAR_1, MAXREADLINESZ, stdin)) { free(VAR_1); return NULL; } VAR_0 = VAR_1 + strlen(VAR_1); if (VAR_0 != VAR_1 && VAR_0[-1] == '\n') VAR_0[-1] = '\0';...
[ "FUNC_0(void)\n{", "char\t*VAR_0, *VAR_1 = malloc(MAXREADLINESZ);", "if (!VAR_1)\nreturn NULL;", "printf(\"%s\", get_prompt());", "fflush(stdout);", "if (!fgets(VAR_1, MAXREADLINESZ, stdin)) {", "free(VAR_1);", "return NULL;", "}", "VAR_0 = VAR_1 + strlen(VAR_1);", "if (VAR_0 != VAR_1 && VAR_0[-...
[ 0, 0, 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 ] ]
6,054
static void kvmclock_vm_state_change(void *opaque, int running, RunState state) { KVMClockState *s = opaque; CPUState *cpu; int cap_clock_ctrl = kvm_check_extension(kvm_state, KVM_CAP_KVMCLOCK_CTRL); int ret; if (running) { struct kvm_clock_data...
false
qemu
6053a86fe7bd3d5b07b49dae6c05f2cd0d44e687
static void kvmclock_vm_state_change(void *opaque, int running, RunState state) { KVMClockState *s = opaque; CPUState *cpu; int cap_clock_ctrl = kvm_check_extension(kvm_state, KVM_CAP_KVMCLOCK_CTRL); int ret; if (running) { struct kvm_clock_data...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, int VAR_1, RunState VAR_2) { KVMClockState *s = VAR_0; CPUState *cpu; int VAR_3 = kvm_check_extension(kvm_state, KVM_CAP_KVMCLOCK_CTRL); int VAR_6; if (VAR_1) { struct kvm_clock_data VAR_6 = {}; uint64_t ...
[ "static void FUNC_0(void *VAR_0, int VAR_1,\nRunState VAR_2)\n{", "KVMClockState *s = VAR_0;", "CPUState *cpu;", "int VAR_3 = kvm_check_extension(kvm_state, KVM_CAP_KVMCLOCK_CTRL);", "int VAR_6;", "if (VAR_1) {", "struct kvm_clock_data VAR_6 = {};", "uint64_t time_at_migration = kvmclock_current_nsec(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [...
6,055
static void nvenc_setup_rate_control(AVCodecContext *avctx) { NVENCContext *ctx = avctx->priv_data; NV_ENC_RC_PARAMS *rc = &ctx->config.rcParams; if (avctx->bit_rate > 0) rc->averageBitRate = avctx->bit_rate; if (avctx->rc_max_rate > 0) rc->maxBitRate = avctx->rc_max_rate; ...
false
FFmpeg
5b26d3b789bd19a32dbe1e9c7ccab9498de7ee9b
static void nvenc_setup_rate_control(AVCodecContext *avctx) { NVENCContext *ctx = avctx->priv_data; NV_ENC_RC_PARAMS *rc = &ctx->config.rcParams; if (avctx->bit_rate > 0) rc->averageBitRate = avctx->bit_rate; if (avctx->rc_max_rate > 0) rc->maxBitRate = avctx->rc_max_rate; ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVCodecContext *VAR_0) { NVENCContext *ctx = VAR_0->priv_data; NV_ENC_RC_PARAMS *rc = &ctx->config.rcParams; if (VAR_0->bit_rate > 0) rc->averageBitRate = VAR_0->bit_rate; if (VAR_0->rc_max_rate > 0) rc->maxBitRate = VAR_0->rc_max_rate; if (ctx->rc...
[ "static void FUNC_0(AVCodecContext *VAR_0)\n{", "NVENCContext *ctx = VAR_0->priv_data;", "NV_ENC_RC_PARAMS *rc = &ctx->config.rcParams;", "if (VAR_0->bit_rate > 0)\nrc->averageBitRate = VAR_0->bit_rate;", "if (VAR_0->rc_max_rate > 0)\nrc->maxBitRate = VAR_0->rc_max_rate;", "if (ctx->rc > 0) {", "nven...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 51, 53 ], [ 57...
6,056
static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples) { AVFilterContext *ctx = inlink->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowWavesContext *showwaves = ctx->priv; const int nb_samples = insamples->audio->nb_samples; AVFilterBufferRef *outpicref = showwaves->out...
false
FFmpeg
5b10c5e7e4d79750974026f39940164d10b891cb
static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *insamples) { AVFilterContext *ctx = inlink->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowWavesContext *showwaves = ctx->priv; const int nb_samples = insamples->audio->nb_samples; AVFilterBufferRef *outpicref = showwaves->out...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1) { AVFilterContext *ctx = VAR_0->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowWavesContext *showwaves = ctx->priv; const int VAR_2 = VAR_1->audio->VAR_2; AVFilterBufferRef *outpicref = showwaves->outpicref; int VAR_3 = o...
[ "static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{", "AVFilterContext *ctx = VAR_0->dst;", "AVFilterLink *outlink = ctx->outputs[0];", "ShowWavesContext *showwaves = ctx->priv;", "const int VAR_2 = VAR_1->audio->VAR_2;", "AVFilterBufferRef *outpicref = showwaves->outpicref;", "int VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [...
6,057
static void filter_mb_edgev( H264Context *h, uint8_t *pix, int stride, int bS[4], int qp ) { int i, d; const int index_a = clip( qp + h->slice_alpha_c0_offset, 0, 51 ); const int alpha = alpha_table[index_a]; const int beta = beta_table[clip( qp + h->slice_beta_offset, 0, 51 )]; for( i = 0; ...
false
FFmpeg
3ebc7e04dea6072400d91c1c90eb3911754cee06
static void filter_mb_edgev( H264Context *h, uint8_t *pix, int stride, int bS[4], int qp ) { int i, d; const int index_a = clip( qp + h->slice_alpha_c0_offset, 0, 51 ); const int alpha = alpha_table[index_a]; const int beta = beta_table[clip( qp + h->slice_beta_offset, 0, 51 )]; for( i = 0; ...
{ "code": [], "line_no": [] }
static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3[4], int VAR_4 ) { int VAR_5, VAR_6; const int VAR_7 = clip( VAR_4 + VAR_0->slice_alpha_c0_offset, 0, 51 ); const int VAR_8 = alpha_table[VAR_7]; const int VAR_9 = beta_table[clip( VAR_4 + VAR_0->slice_beta_offset, 0, 51 )]...
[ "static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3[4], int VAR_4 ) {", "int VAR_5, VAR_6;", "const int VAR_7 = clip( VAR_4 + VAR_0->slice_alpha_c0_offset, 0, 51 );", "const int VAR_8 = alpha_table[VAR_7];", "const int VAR_9 = beta_table[clip( VAR_4 + VAR_0->slice_beta_offset, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47, 49 ], [ 51 ], [...
6,058
static void report_config_error(const char *filename, int line_num, int log_level, int *errors, const char *fmt, ...) { va_list vl; va_start(vl, fmt); av_log(NULL, log_level, "%s:%d: ", filename, line_num); av_vlog(NULL, log_level, fmt, vl); va_end(vl); (*errors)++; }
false
FFmpeg
ed1f8915daf6b84a940463dfe83c7b970f82383d
static void report_config_error(const char *filename, int line_num, int log_level, int *errors, const char *fmt, ...) { va_list vl; va_start(vl, fmt); av_log(NULL, log_level, "%s:%d: ", filename, line_num); av_vlog(NULL, log_level, fmt, vl); va_end(vl); (*errors)++; }
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0, int VAR_1, int VAR_2, int *VAR_3, const char *VAR_4, ...) { va_list vl; va_start(vl, VAR_4); av_log(NULL, VAR_2, "%s:%d: ", VAR_0, VAR_1); av_vlog(NULL, VAR_2, VAR_4, vl); va_end(vl); (*VAR_3)++; }
[ "static void FUNC_0(const char *VAR_0, int VAR_1, int VAR_2, int *VAR_3, const char *VAR_4, ...)\n{", "va_list vl;", "va_start(vl, VAR_4);", "av_log(NULL, VAR_2, \"%s:%d: \", VAR_0, VAR_1);", "av_vlog(NULL, VAR_2, VAR_4, vl);", "va_end(vl);", "(*VAR_3)++;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ] ]
6,060
static int test_vector_fmul_add(AVFloatDSPContext *fdsp, AVFloatDSPContext *cdsp, const float *v1, const float *v2, const float *v3) { LOCAL_ALIGNED(32, float, cdst, [LEN]); LOCAL_ALIGNED(32, float, odst, [LEN]); int ret; cdsp->vector_fmul_add(cdst, v1, v2, v3, LE...
false
FFmpeg
e53c9065ca08a9153ecc73a6a8940bcc6d667e58
static int test_vector_fmul_add(AVFloatDSPContext *fdsp, AVFloatDSPContext *cdsp, const float *v1, const float *v2, const float *v3) { LOCAL_ALIGNED(32, float, cdst, [LEN]); LOCAL_ALIGNED(32, float, odst, [LEN]); int ret; cdsp->vector_fmul_add(cdst, v1, v2, v3, LE...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFloatDSPContext *VAR_0, AVFloatDSPContext *VAR_1, const float *VAR_2, const float *VAR_3, const float *VAR_4) { LOCAL_ALIGNED(32, float, cdst, [LEN]); LOCAL_ALIGNED(32, float, odst, [LEN]); int VAR_5; VAR_1->vector_fmul_add(cdst, VAR_2, VAR_3, ...
[ "static int FUNC_0(AVFloatDSPContext *VAR_0, AVFloatDSPContext *VAR_1,\nconst float *VAR_2, const float *VAR_3, const float *VAR_4)\n{", "LOCAL_ALIGNED(32, float, cdst, [LEN]);", "LOCAL_ALIGNED(32, float, odst, [LEN]);", "int VAR_5;", "VAR_1->vector_fmul_add(cdst, VAR_2, VAR_3, VAR_4, LEN);", "VAR_0->vect...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29 ] ]
6,061
static inline int bidir_refine(MpegEncContext * s, int mb_x, int mb_y) { MotionEstContext * const c= &s->me; const int mot_stride = s->mb_stride; const int xy = mb_y *mot_stride + mb_x; int fbmin; int pred_fx= s->b_bidir_forw_mv_table[xy-1][0]; int pred_fy= s->b_bidir_forw_mv_table[xy-1][...
false
FFmpeg
8226ecaa6c7ba0c1e7ae9d575bcbdac95aaf673e
static inline int bidir_refine(MpegEncContext * s, int mb_x, int mb_y) { MotionEstContext * const c= &s->me; const int mot_stride = s->mb_stride; const int xy = mb_y *mot_stride + mb_x; int fbmin; int pred_fx= s->b_bidir_forw_mv_table[xy-1][0]; int pred_fy= s->b_bidir_forw_mv_table[xy-1][...
{ "code": [], "line_no": [] }
static inline int FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2) { MotionEstContext * const c= &VAR_0->me; const int VAR_3 = VAR_0->mb_stride; const int VAR_4 = VAR_2 *VAR_3 + VAR_1; int VAR_5; int VAR_6= VAR_0->b_bidir_forw_mv_table[VAR_4-1][0]; int VAR_7= VAR_0->b_bidir_forw_mv_ta...
[ "static inline int FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2)\n{", "MotionEstContext * const c= &VAR_0->me;", "const int VAR_3 = VAR_0->mb_stride;", "const int VAR_4 = VAR_2 *VAR_3 + VAR_1;", "int VAR_5;", "int VAR_6= VAR_0->b_bidir_forw_mv_table[VAR_4-1][0];", "int VAR_7= VAR_0->b_bidir_forw_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
6,062
int ff_h264_execute_decode_slices(H264Context *h, unsigned context_count) { AVCodecContext *const avctx = h->avctx; H264Context *hx; int i; if (h->mb_y >= h->mb_height) { av_log(h->avctx, AV_LOG_ERROR, "Input contains more MB rows than the frame height.\n"); retu...
false
FFmpeg
ad786dd450f26ecfbd35bb26e8b149664ecde049
int ff_h264_execute_decode_slices(H264Context *h, unsigned context_count) { AVCodecContext *const avctx = h->avctx; H264Context *hx; int i; if (h->mb_y >= h->mb_height) { av_log(h->avctx, AV_LOG_ERROR, "Input contains more MB rows than the frame height.\n"); retu...
{ "code": [], "line_no": [] }
int FUNC_0(H264Context *VAR_0, unsigned VAR_1) { AVCodecContext *const avctx = VAR_0->avctx; H264Context *hx; int VAR_2; if (VAR_0->mb_y >= VAR_0->mb_height) { av_log(VAR_0->avctx, AV_LOG_ERROR, "Input contains more MB rows than the frame height.\n"); return AVER...
[ "int FUNC_0(H264Context *VAR_0, unsigned VAR_1)\n{", "AVCodecContext *const avctx = VAR_0->avctx;", "H264Context *hx;", "int VAR_2;", "if (VAR_0->mb_y >= VAR_0->mb_height) {", "av_log(VAR_0->avctx, AV_LOG_ERROR,\n\"Input contains more MB rows than the frame height.\\n\");", "return AVERROR_INVALIDDATA;"...
[ 0, 0, 0, 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 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 53 ], [...
6,064
static int open_next_file(AVFormatContext *avf) { ConcatContext *cat = avf->priv_data; unsigned fileno = cat->cur_file - cat->files; if (cat->cur_file->duration == AV_NOPTS_VALUE) cat->cur_file->duration = cat->avf->duration - (cat->cur_file->file_inpoint - cat->cur_file->file_start_time); ...
false
FFmpeg
1a0d9b503d2e9c4278d6e93d40873dff9d191a25
static int open_next_file(AVFormatContext *avf) { ConcatContext *cat = avf->priv_data; unsigned fileno = cat->cur_file - cat->files; if (cat->cur_file->duration == AV_NOPTS_VALUE) cat->cur_file->duration = cat->avf->duration - (cat->cur_file->file_inpoint - cat->cur_file->file_start_time); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { ConcatContext *cat = VAR_0->priv_data; unsigned VAR_1 = cat->cur_file - cat->files; if (cat->cur_file->duration == AV_NOPTS_VALUE) cat->cur_file->duration = cat->VAR_0->duration - (cat->cur_file->file_inpoint - cat->cur_file->file_start_time); ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "ConcatContext *cat = VAR_0->priv_data;", "unsigned VAR_1 = cat->cur_file - cat->files;", "if (cat->cur_file->duration == AV_NOPTS_VALUE)\ncat->cur_file->duration = cat->VAR_0->duration - (cat->cur_file->file_inpoint - cat->cur_file->file_start_time);", "if (+...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
6,065
static void set_signalled(sPAPRDRConnector *drc) { drc->signalled = true; }
false
qemu
307b7715d0256c95444cada36a02882e46bada2f
static void set_signalled(sPAPRDRConnector *drc) { drc->signalled = true; }
{ "code": [], "line_no": [] }
static void FUNC_0(sPAPRDRConnector *VAR_0) { VAR_0->signalled = true; }
[ "static void FUNC_0(sPAPRDRConnector *VAR_0)\n{", "VAR_0->signalled = true;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
6,066
static int mig_save_device_dirty(Monitor *mon, QEMUFile *f, BlkMigDevState *bmds, int is_async) { BlkMigBlock *blk; int64_t total_sectors = bmds->total_sectors; int64_t sector; int nr_sectors; int ret = -EIO; for (sector = bmds->cur_dirty; sector < bmds...
false
qemu
922453bca6a927bb527068ae8679d587cfa45dbc
static int mig_save_device_dirty(Monitor *mon, QEMUFile *f, BlkMigDevState *bmds, int is_async) { BlkMigBlock *blk; int64_t total_sectors = bmds->total_sectors; int64_t sector; int nr_sectors; int ret = -EIO; for (sector = bmds->cur_dirty; sector < bmds...
{ "code": [], "line_no": [] }
static int FUNC_0(Monitor *VAR_0, QEMUFile *VAR_1, BlkMigDevState *VAR_2, int VAR_3) { BlkMigBlock *blk; int64_t total_sectors = VAR_2->total_sectors; int64_t sector; int VAR_4; int VAR_5 = -EIO; for (sector = VAR_2->cur_dirty; sector < VAR_2->total_sec...
[ "static int FUNC_0(Monitor *VAR_0, QEMUFile *VAR_1,\nBlkMigDevState *VAR_2, int VAR_3)\n{", "BlkMigBlock *blk;", "int64_t total_sectors = VAR_2->total_sectors;", "int64_t sector;", "int VAR_4;", "int VAR_5 = -EIO;", "for (sector = VAR_2->cur_dirty; sector < VAR_2->total_sectors;) {", "if (bmds_aio_inf...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
6,067
static void pm_reset(void *opaque) { ICH9LPCPMRegs *pm = opaque; ich9_pm_iospace_update(pm, 0); acpi_pm1_evt_reset(&pm->acpi_regs); acpi_pm1_cnt_reset(&pm->acpi_regs); acpi_pm_tmr_reset(&pm->acpi_regs); acpi_gpe_reset(&pm->acpi_regs); if (kvm_enabled()) { /* Mark SMM as ...
false
qemu
fba72476c6b7be60ac74c5bcdc06c61242d1fe4f
static void pm_reset(void *opaque) { ICH9LPCPMRegs *pm = opaque; ich9_pm_iospace_update(pm, 0); acpi_pm1_evt_reset(&pm->acpi_regs); acpi_pm1_cnt_reset(&pm->acpi_regs); acpi_pm_tmr_reset(&pm->acpi_regs); acpi_gpe_reset(&pm->acpi_regs); if (kvm_enabled()) { pm-...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { ICH9LPCPMRegs *pm = VAR_0; ich9_pm_iospace_update(pm, 0); acpi_pm1_evt_reset(&pm->acpi_regs); acpi_pm1_cnt_reset(&pm->acpi_regs); acpi_pm_tmr_reset(&pm->acpi_regs); acpi_gpe_reset(&pm->acpi_regs); if (kvm_enabled()) { pm->smi...
[ "static void FUNC_0(void *VAR_0)\n{", "ICH9LPCPMRegs *pm = VAR_0;", "ich9_pm_iospace_update(pm, 0);", "acpi_pm1_evt_reset(&pm->acpi_regs);", "acpi_pm1_cnt_reset(&pm->acpi_regs);", "acpi_pm_tmr_reset(&pm->acpi_regs);", "acpi_gpe_reset(&pm->acpi_regs);", "if (kvm_enabled()) {", "pm->smi_en |= ICH9_PMI...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
6,068
int bdrv_read_unthrottled(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { bool enabled; int ret; enabled = bs->io_limits_enabled; bs->io_limits_enabled = false; ret = bdrv_read(bs, sector_num, buf, nb_sectors); bs->io_limits_enabled =...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
int bdrv_read_unthrottled(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { bool enabled; int ret; enabled = bs->io_limits_enabled; bs->io_limits_enabled = false; ret = bdrv_read(bs, sector_num, buf, nb_sectors); bs->io_limits_enabled =...
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, uint8_t *VAR_2, int VAR_3) { bool enabled; int VAR_4; enabled = VAR_0->io_limits_enabled; VAR_0->io_limits_enabled = false; VAR_4 = bdrv_read(VAR_0, VAR_1, VAR_2, VAR_3); VAR_0->io_limits_enabled = enabled; ...
[ "int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nuint8_t *VAR_2, int VAR_3)\n{", "bool enabled;", "int VAR_4;", "enabled = VAR_0->io_limits_enabled;", "VAR_0->io_limits_enabled = false;", "VAR_4 = bdrv_read(VAR_0, VAR_1, VAR_2, VAR_3);", "VAR_0->io_limits_enabled = enabled;", "return VAR_4;", "}...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
6,070
static void bdrv_aio_bh_cb(void *opaque) { BlockAIOCBSync *acb = opaque; if (!acb->is_write && acb->ret >= 0) { qemu_iovec_from_buf(acb->qiov, 0, acb->bounce, acb->qiov->size); } qemu_vfree(acb->bounce); acb->common.cb(acb->common.opaque, acb->ret); qemu_bh_delete(acb->bh); ...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
static void bdrv_aio_bh_cb(void *opaque) { BlockAIOCBSync *acb = opaque; if (!acb->is_write && acb->ret >= 0) { qemu_iovec_from_buf(acb->qiov, 0, acb->bounce, acb->qiov->size); } qemu_vfree(acb->bounce); acb->common.cb(acb->common.opaque, acb->ret); qemu_bh_delete(acb->bh); ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { BlockAIOCBSync *acb = VAR_0; if (!acb->is_write && acb->ret >= 0) { qemu_iovec_from_buf(acb->qiov, 0, acb->bounce, acb->qiov->size); } qemu_vfree(acb->bounce); acb->common.cb(acb->common.VAR_0, acb->ret); qemu_bh_delete(acb->bh); acb->bh =...
[ "static void FUNC_0(void *VAR_0)\n{", "BlockAIOCBSync *acb = VAR_0;", "if (!acb->is_write && acb->ret >= 0) {", "qemu_iovec_from_buf(acb->qiov, 0, acb->bounce, acb->qiov->size);", "}", "qemu_vfree(acb->bounce);", "acb->common.cb(acb->common.VAR_0, acb->ret);", "qemu_bh_delete(acb->bh);", "acb->bh = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
6,071
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, UINT8 *buf, int buf_size) { MpegEncContext *s = avctx->priv_data; int ret,i; AVFrame *pict = data; float new_aspect; #ifdef PRINT_FRAME_TIME uint64_t tim...
false
FFmpeg
68f593b48433842f3407586679fe07f3e5199ab9
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *data_size, UINT8 *buf, int buf_size) { MpegEncContext *s = avctx->priv_data; int ret,i; AVFrame *pict = data; float new_aspect; #ifdef PRINT_FRAME_TIME uint64_t tim...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, UINT8 *VAR_3, int VAR_4) { MpegEncContext *s = VAR_0->priv_data; int VAR_5,VAR_10; AVFrame *pict = VAR_1; float VAR_7; #ifdef PRINT_FRAME_TIME uint64_t time= rdtsc(); #e...
[ "int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nUINT8 *VAR_3, int VAR_4)\n{", "MpegEncContext *s = VAR_0->priv_data;", "int VAR_5,VAR_10;", "AVFrame *pict = VAR_1;", "float VAR_7;", "#ifdef PRINT_FRAME_TIME\nuint64_t time= rdtsc();", "#endif\n#ifdef DEBUG\nprintf(\"*****frame %d size=%d\\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ...
6,073
static int do_cont(Monitor *mon, const QDict *qdict, QObject **ret_data) { struct bdrv_iterate_context context = { mon, 0 }; if (incoming_expected) { qerror_report(QERR_MIGRATION_EXPECTED); return -1; } bdrv_iterate(encrypted_bdrv_it, &context); /* only resume the vm if all...
false
qemu
1bcef683bf840a928d633755031ac572d5fdb851
static int do_cont(Monitor *mon, const QDict *qdict, QObject **ret_data) { struct bdrv_iterate_context context = { mon, 0 }; if (incoming_expected) { qerror_report(QERR_MIGRATION_EXPECTED); return -1; } bdrv_iterate(encrypted_bdrv_it, &context); if (!context.err) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2) { struct bdrv_iterate_context VAR_3 = { VAR_0, 0 }; if (incoming_expected) { qerror_report(QERR_MIGRATION_EXPECTED); return -1; } bdrv_iterate(encrypted_bdrv_it, &VAR_3); if (!VAR_3.err) { ...
[ "static int FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)\n{", "struct bdrv_iterate_context VAR_3 = { VAR_0, 0 };", "if (incoming_expected) {", "qerror_report(QERR_MIGRATION_EXPECTED);", "return -1;", "}", "bdrv_iterate(encrypted_bdrv_it, &VAR_3);", "if (!VAR_3.err) {", "vm_start();", ...
[ 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 ] ]
6,075
void qmp_x_blockdev_del(bool has_id, const char *id, bool has_node_name, const char *node_name, Error **errp) { AioContext *aio_context; BlockBackend *blk; BlockDriverState *bs; if (has_id && has_node_name) { error_setg(errp, "Only one of id and node-name must be...
false
qemu
3b8c1761f0e1523622e008836d01a6544b1c21ab
void qmp_x_blockdev_del(bool has_id, const char *id, bool has_node_name, const char *node_name, Error **errp) { AioContext *aio_context; BlockBackend *blk; BlockDriverState *bs; if (has_id && has_node_name) { error_setg(errp, "Only one of id and node-name must be...
{ "code": [], "line_no": [] }
void FUNC_0(bool VAR_0, const char *VAR_1, bool VAR_2, const char *VAR_3, Error **VAR_4) { AioContext *aio_context; BlockBackend *blk; BlockDriverState *bs; if (VAR_0 && VAR_2) { error_setg(VAR_4, "Only one of VAR_1 and node-name must be specified"); ret...
[ "void FUNC_0(bool VAR_0, const char *VAR_1,\nbool VAR_2, const char *VAR_3, Error **VAR_4)\n{", "AioContext *aio_context;", "BlockBackend *blk;", "BlockDriverState *bs;", "if (VAR_0 && VAR_2) {", "error_setg(VAR_4, \"Only one of VAR_1 and node-name must be specified\");", "return;", "} else if (!VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ...
6,076
static void channel_store_c(struct fs_dma_ctrl *ctrl, int c) { target_phys_addr_t addr = channel_reg(ctrl, c, RW_GROUP_DOWN); /* Encode and store. FIXME: handle endianness. */ D(printf("%s ch=%d addr=" TARGET_FMT_plx "\n", __func__, c, addr)); D(dump_d(c, &ctrl->channels[c].current_d)); cpu_physical_memor...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void channel_store_c(struct fs_dma_ctrl *ctrl, int c) { target_phys_addr_t addr = channel_reg(ctrl, c, RW_GROUP_DOWN); D(printf("%s ch=%d addr=" TARGET_FMT_plx "\n", __func__, c, addr)); D(dump_d(c, &ctrl->channels[c].current_d)); cpu_physical_memory_write (addr, (void *) &ctrl->channels[c]....
{ "code": [], "line_no": [] }
static void FUNC_0(struct fs_dma_ctrl *VAR_0, int VAR_1) { target_phys_addr_t addr = channel_reg(VAR_0, VAR_1, RW_GROUP_DOWN); D(printf("%s ch=%d addr=" TARGET_FMT_plx "\n", __func__, VAR_1, addr)); D(dump_d(VAR_1, &VAR_0->channels[VAR_1].current_d)); cpu_physical_memory_write (addr, (void *) &VAR_...
[ "static void FUNC_0(struct fs_dma_ctrl *VAR_0, int VAR_1)\n{", "target_phys_addr_t addr = channel_reg(VAR_0, VAR_1, RW_GROUP_DOWN);", "D(printf(\"%s ch=%d addr=\" TARGET_FMT_plx \"\\n\", __func__, VAR_1, addr));", "D(dump_d(VAR_1, &VAR_0->channels[VAR_1].current_d));", "cpu_physical_memory_write (addr,\n(vo...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15, 17, 19 ], [ 21 ] ]
6,077
void sd_set_cb(SDState *sd, qemu_irq readonly, qemu_irq insert) { sd->readonly_cb = readonly; sd->inserted_cb = insert; qemu_set_irq(readonly, sd->bdrv ? bdrv_is_read_only(sd->bdrv) : 0); qemu_set_irq(insert, sd->bdrv ? bdrv_is_inserted(sd->bdrv) : 0); }
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
void sd_set_cb(SDState *sd, qemu_irq readonly, qemu_irq insert) { sd->readonly_cb = readonly; sd->inserted_cb = insert; qemu_set_irq(readonly, sd->bdrv ? bdrv_is_read_only(sd->bdrv) : 0); qemu_set_irq(insert, sd->bdrv ? bdrv_is_inserted(sd->bdrv) : 0); }
{ "code": [], "line_no": [] }
void FUNC_0(SDState *VAR_0, qemu_irq VAR_1, qemu_irq VAR_2) { VAR_0->readonly_cb = VAR_1; VAR_0->inserted_cb = VAR_2; qemu_set_irq(VAR_1, VAR_0->bdrv ? bdrv_is_read_only(VAR_0->bdrv) : 0); qemu_set_irq(VAR_2, VAR_0->bdrv ? bdrv_is_inserted(VAR_0->bdrv) : 0); }
[ "void FUNC_0(SDState *VAR_0, qemu_irq VAR_1, qemu_irq VAR_2)\n{", "VAR_0->readonly_cb = VAR_1;", "VAR_0->inserted_cb = VAR_2;", "qemu_set_irq(VAR_1, VAR_0->bdrv ? bdrv_is_read_only(VAR_0->bdrv) : 0);", "qemu_set_irq(VAR_2, VAR_0->bdrv ? bdrv_is_inserted(VAR_0->bdrv) : 0);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
6,078
static int ppc_hash32_check_prot(int prot, int rw, int access_type) { int ret; if (access_type == ACCESS_CODE) { if (prot & PAGE_EXEC) { ret = 0; } else { ret = -2; } } else if (rw) { if (prot & PAGE_WRITE) { ret = 0; ...
false
qemu
91cda45b69e45a089f9989979a65db3f710c9925
static int ppc_hash32_check_prot(int prot, int rw, int access_type) { int ret; if (access_type == ACCESS_CODE) { if (prot & PAGE_EXEC) { ret = 0; } else { ret = -2; } } else if (rw) { if (prot & PAGE_WRITE) { ret = 0; ...
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0, int VAR_1, int VAR_2) { int VAR_3; if (VAR_2 == ACCESS_CODE) { if (VAR_0 & PAGE_EXEC) { VAR_3 = 0; } else { VAR_3 = -2; } } else if (VAR_1) { if (VAR_0 & PAGE_WRITE) { VAR_3 = 0; } else { ...
[ "static int FUNC_0(int VAR_0, int VAR_1, int VAR_2)\n{", "int VAR_3;", "if (VAR_2 == ACCESS_CODE) {", "if (VAR_0 & PAGE_EXEC) {", "VAR_3 = 0;", "} else {", "VAR_3 = -2;", "}", "} else if (VAR_1) {", "if (VAR_0 & PAGE_WRITE) {", "VAR_3 = 0;", "} else {", "VAR_3 = -2;", "}", "} else {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43...
6,079
static void spr_write_40x_dbcr0 (void *opaque, int sprn) { DisasContext *ctx = opaque; gen_op_store_40x_dbcr0(); /* We must stop translation as we may have rebooted */ RET_STOP(ctx); }
false
qemu
e1833e1f96456fd8fc17463246fe0b2050e68efb
static void spr_write_40x_dbcr0 (void *opaque, int sprn) { DisasContext *ctx = opaque; gen_op_store_40x_dbcr0(); RET_STOP(ctx); }
{ "code": [], "line_no": [] }
static void FUNC_0 (void *VAR_0, int VAR_1) { DisasContext *ctx = VAR_0; gen_op_store_40x_dbcr0(); RET_STOP(ctx); }
[ "static void FUNC_0 (void *VAR_0, int VAR_1)\n{", "DisasContext *ctx = VAR_0;", "gen_op_store_40x_dbcr0();", "RET_STOP(ctx);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ] ]
6,080
static void eth_receive(void *opaque, const uint8_t *buf, size_t size) { mv88w8618_eth_state *s = opaque; uint32_t desc_addr; mv88w8618_rx_desc desc; int i; for (i = 0; i < 4; i++) { desc_addr = s->cur_rx[i]; if (!desc_addr) continue; do { ...
false
qemu
e3f5ec2b5e92706e3b807059f79b1fb5d936e567
static void eth_receive(void *opaque, const uint8_t *buf, size_t size) { mv88w8618_eth_state *s = opaque; uint32_t desc_addr; mv88w8618_rx_desc desc; int i; for (i = 0; i < 4; i++) { desc_addr = s->cur_rx[i]; if (!desc_addr) continue; do { ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2) { mv88w8618_eth_state *s = VAR_0; uint32_t desc_addr; mv88w8618_rx_desc desc; int VAR_3; for (VAR_3 = 0; VAR_3 < 4; VAR_3++) { desc_addr = s->cur_rx[VAR_3]; if (!desc_addr) continue; d...
[ "static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2)\n{", "mv88w8618_eth_state *s = VAR_0;", "uint32_t desc_addr;", "mv88w8618_rx_desc desc;", "int VAR_3;", "for (VAR_3 = 0; VAR_3 < 4; VAR_3++) {", "desc_addr = s->cur_rx[VAR_3];", "if (!desc_addr)\ncontinue;", "do {", "eth_rx_desc_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ], [...
6,081
static bool version_is_5(void *opaque, int version_id) { return version_id == 5; }
false
qemu
08b277ac46da8b02e50cec455eca7cb2d12ffcf0
static bool version_is_5(void *opaque, int version_id) { return version_id == 5; }
{ "code": [], "line_no": [] }
static bool FUNC_0(void *opaque, int version_id) { return version_id == 5; }
[ "static bool FUNC_0(void *opaque, int version_id)\n{", "return version_id == 5;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
6,082
static int parse_ifo_palette(DVDSubContext *ctx, char *p) { FILE *ifo; char ifostr[12]; uint32_t sp_pgci, pgci, off_pgc, pgc; uint8_t r, g, b, yuv[65], *buf; int i, y, cb, cr, r_add, g_add, b_add; int ret = 0; const uint8_t *cm = ff_crop_tab + MAX_NEG_CROP; ctx->has_palette = ...
false
FFmpeg
1de786777e0fb18ec1e44cea058c77e83980b6c4
static int parse_ifo_palette(DVDSubContext *ctx, char *p) { FILE *ifo; char ifostr[12]; uint32_t sp_pgci, pgci, off_pgc, pgc; uint8_t r, g, b, yuv[65], *buf; int i, y, cb, cr, r_add, g_add, b_add; int ret = 0; const uint8_t *cm = ff_crop_tab + MAX_NEG_CROP; ctx->has_palette = ...
{ "code": [], "line_no": [] }
static int FUNC_0(DVDSubContext *VAR_0, char *VAR_1) { FILE *ifo; char VAR_2[12]; uint32_t sp_pgci, pgci, off_pgc, pgc; uint8_t r, g, b, yuv[65], *buf; int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10 = 0; const uint8_t *VAR_11 = ff_crop_tab + MAX_NEG_CROP; VAR_...
[ "static int FUNC_0(DVDSubContext *VAR_0, char *VAR_1)\n{", "FILE *ifo;", "char VAR_2[12];", "uint32_t sp_pgci, pgci, off_pgc, pgc;", "uint8_t r, g, b, yuv[65], *buf;", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10 = 0;", "const uint8_t *VAR_11 = ff_crop_tab + MAX_NEG_CROP;", "V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...