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
11,818
static inline void vhost_dev_log_resize(struct vhost_dev* dev, uint64_t size) { vhost_log_chunk_t *log; uint64_t log_base; int r; if (size) { log = g_malloc0(size * sizeof *log); } else { log = NULL; } log_base = (uint64_t)(unsigned long)log; r = ioctl(dev->con...
true
qemu
04097f7c5957273c578f72b9bd603ba6b1d69e33
static inline void vhost_dev_log_resize(struct vhost_dev* dev, uint64_t size) { vhost_log_chunk_t *log; uint64_t log_base; int r; if (size) { log = g_malloc0(size * sizeof *log); } else { log = NULL; } log_base = (uint64_t)(unsigned long)log; r = ioctl(dev->con...
{ "code": [ " vhost_client_sync_dirty_bitmap(&dev->client, 0,", " (target_phys_addr_t)~0x0ull);", " (target_phys_addr_t)~0x0ull);" ], "line_no": [ 27, 29, 29 ] }
static inline void FUNC_0(struct vhost_dev* VAR_0, uint64_t VAR_1) { vhost_log_chunk_t *log; uint64_t log_base; int VAR_2; if (VAR_1) { log = g_malloc0(VAR_1 * sizeof *log); } else { log = NULL; } log_base = (uint64_t)(unsigned long)log; VAR_2 = ioctl(VAR_0->co...
[ "static inline void FUNC_0(struct vhost_dev* VAR_0, uint64_t VAR_1)\n{", "vhost_log_chunk_t *log;", "uint64_t log_base;", "int VAR_2;", "if (VAR_1) {", "log = g_malloc0(VAR_1 * sizeof *log);", "} else {", "log = NULL;", "}", "log_base = (uint64_t)(unsigned long)log;", "VAR_2 = ioctl(VAR_0->contr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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 ] ]
11,819
static void memory_dump(Monitor *mon, int count, int format, int wsize, hwaddr addr, int is_physical) { int l, line_size, i, max_digits, len; uint8_t buf[16]; uint64_t v; if (format == 'i') { int flags = 0; #ifdef TARGET_I386 CPUArchState *env = mon_get...
true
qemu
854e67fea6a6f181163a5467fc9ba04de8d181bb
static void memory_dump(Monitor *mon, int count, int format, int wsize, hwaddr addr, int is_physical) { int l, line_size, i, max_digits, len; uint8_t buf[16]; uint64_t v; if (format == 'i') { int flags = 0; #ifdef TARGET_I386 CPUArchState *env = mon_get...
{ "code": [ " monitor_disas(mon, mon_get_cpu(), addr, count, is_physical, flags);", " if (cpu_memory_rw_debug(mon_get_cpu(), addr, buf, l, 0) < 0) {" ], "line_no": [ 71, 149 ] }
static void FUNC_0(Monitor *VAR_0, int VAR_1, int VAR_2, int VAR_3, hwaddr VAR_4, int VAR_5) { int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; uint8_t buf[16]; uint64_t v; if (VAR_2 == 'VAR_8') { int VAR_11 = 0; #ifdef TARGET_I386 CPUArchState *env = mon_get_cp...
[ "static void FUNC_0(Monitor *VAR_0, int VAR_1, int VAR_2, int VAR_3,\nhwaddr VAR_4, int VAR_5)\n{", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "uint8_t buf[16];", "uint64_t v;", "if (VAR_2 == 'VAR_8') {", "int VAR_11 = 0;", "#ifdef TARGET_I386\nCPUArchState *env = mon_get_cpu_env();", "if (VAR_3 == 2)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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 ], [ 35 ], [ 37 ], [ 39, 41, 43, 45 ], [ 47, 49, 51, 53 ...
11,820
static void v9fs_version(void *opaque) { V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; V9fsString version; size_t offset = 7; pdu_unmarshal(pdu, offset, "ds", &s->msize, &version); trace_v9fs_version(pdu->tag, pdu->id, s->msize, version.data); if (!strcmp(version.data, "9P2000.u")) { ...
true
qemu
c572f23a3e7180dbeab5e86583e43ea2afed6271
static void v9fs_version(void *opaque) { V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; V9fsString version; size_t offset = 7; pdu_unmarshal(pdu, offset, "ds", &s->msize, &version); trace_v9fs_version(pdu->tag, pdu->id, s->msize, version.data); if (!strcmp(version.data, "9P2000.u")) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { V9fsPDU *pdu = VAR_0; V9fsState *s = pdu->s; V9fsString version; size_t offset = 7; pdu_unmarshal(pdu, offset, "ds", &s->msize, &version); trace_v9fs_version(pdu->tag, pdu->id, s->msize, version.data); if (!strcmp(version.data, "9P2000.u")) { s->prot...
[ "static void FUNC_0(void *VAR_0)\n{", "V9fsPDU *pdu = VAR_0;", "V9fsState *s = pdu->s;", "V9fsString version;", "size_t offset = 7;", "pdu_unmarshal(pdu, offset, \"ds\", &s->msize, &version);", "trace_v9fs_version(pdu->tag, pdu->id, s->msize, version.data);", "if (!strcmp(version.data, \"9P2000.u\")) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ] ]
11,821
static void core_prop_set_core_id(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { CPUCore *core = CPU_CORE(obj); Error *local_err = NULL; int64_t value; visit_type_int(v, name, &value, &local_err); if (local_err) { error_propagate(er...
true
qemu
be2960baae07e5257cde8c814cbd91647e235147
static void core_prop_set_core_id(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { CPUCore *core = CPU_CORE(obj); Error *local_err = NULL; int64_t value; visit_type_int(v, name, &value, &local_err); if (local_err) { error_propagate(er...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0, Visitor *VAR_1, const char *VAR_2, void *VAR_3, Error **VAR_4) { CPUCore *core = CPU_CORE(VAR_0); Error *local_err = NULL; int64_t value; visit_type_int(VAR_1, VAR_2, &value, &local_err); if (local_err) { error_propagate(VAR...
[ "static void FUNC_0(Object *VAR_0, Visitor *VAR_1, const char *VAR_2,\nvoid *VAR_3, Error **VAR_4)\n{", "CPUCore *core = CPU_CORE(VAR_0);", "Error *local_err = NULL;", "int64_t value;", "visit_type_int(VAR_1, VAR_2, &value, &local_err);", "if (local_err) {", "error_propagate(VAR_4, local_err);", "core...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ] ]
11,822
static int flv_read_header(AVFormatContext *s) { int flags; FLVContext *flv = s->priv_data; int offset; avio_skip(s->pb, 4); flags = avio_r8(s->pb); flv->missing_streams = flags & (FLV_HEADER_FLAG_HASVIDEO | FLV_HEADER_FLAG_HASAUDIO); s->ctx_flags |= AVFMTCTX_NOHEADER; o...
false
FFmpeg
c0628919b8c5761d64b1169e8de7584544d15ebf
static int flv_read_header(AVFormatContext *s) { int flags; FLVContext *flv = s->priv_data; int offset; avio_skip(s->pb, 4); flags = avio_r8(s->pb); flv->missing_streams = flags & (FLV_HEADER_FLAG_HASVIDEO | FLV_HEADER_FLAG_HASAUDIO); s->ctx_flags |= AVFMTCTX_NOHEADER; o...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { int VAR_1; FLVContext *flv = VAR_0->priv_data; int VAR_2; avio_skip(VAR_0->pb, 4); VAR_1 = avio_r8(VAR_0->pb); flv->missing_streams = VAR_1 & (FLV_HEADER_FLAG_HASVIDEO | FLV_HEADER_FLAG_HASAUDIO); VAR_0->ctx_flags |= AVFMTCTX_NOHEADER...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "int VAR_1;", "FLVContext *flv = VAR_0->priv_data;", "int VAR_2;", "avio_skip(VAR_0->pb, 4);", "VAR_1 = avio_r8(VAR_0->pb);", "flv->missing_streams = VAR_1 & (FLV_HEADER_FLAG_HASVIDEO | FLV_HEADER_FLAG_HASAUDIO);", "VAR_0->ctx_flags |= AVFMTCTX_NOHEADER;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ] ]
11,823
static inline void mix_3f_2r_to_mono(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) output[1][i] += (output[2][i] + output[3][i] + output[4][i] + output[5][i]); memset(output[2], 0, sizeof(output[2])); memset(output[3]...
false
FFmpeg
486637af8ef29ec215e0e0b7ecd3b5470f0e04e5
static inline void mix_3f_2r_to_mono(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) output[1][i] += (output[2][i] + output[3][i] + output[4][i] + output[5][i]); memset(output[2], 0, sizeof(output[2])); memset(output[3]...
{ "code": [], "line_no": [] }
static inline void FUNC_0(AC3DecodeContext *VAR_0) { int VAR_1; float (*VAR_2)[256] = VAR_0->audio_block.block_output; for (VAR_1 = 0; VAR_1 < 256; VAR_1++) VAR_2[1][VAR_1] += (VAR_2[2][VAR_1] + VAR_2[3][VAR_1] + VAR_2[4][VAR_1] + VAR_2[5][VAR_1]); memset(VAR_2[2], 0, sizeof(VAR_2[2])); ...
[ "static inline void FUNC_0(AC3DecodeContext *VAR_0)\n{", "int VAR_1;", "float (*VAR_2)[256] = VAR_0->audio_block.block_output;", "for (VAR_1 = 0; VAR_1 < 256; VAR_1++)", "VAR_2[1][VAR_1] += (VAR_2[2][VAR_1] + VAR_2[3][VAR_1] + VAR_2[4][VAR_1] + VAR_2[5][VAR_1]);", "memset(VAR_2[2], 0, sizeof(VAR_2[2]));",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
11,824
static int hds_write_header(AVFormatContext *s) { HDSContext *c = s->priv_data; int ret = 0, i; AVOutputFormat *oformat; mkdir(s->filename, 0777); oformat = av_guess_format("flv", NULL, NULL); if (!oformat) { ret = AVERROR_MUXER_NOT_FOUND; goto fail; } c-...
false
FFmpeg
3dbf9afe857d480993786bea0ede9dd9526776d2
static int hds_write_header(AVFormatContext *s) { HDSContext *c = s->priv_data; int ret = 0, i; AVOutputFormat *oformat; mkdir(s->filename, 0777); oformat = av_guess_format("flv", NULL, NULL); if (!oformat) { ret = AVERROR_MUXER_NOT_FOUND; goto fail; } c-...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { HDSContext *c = VAR_0->priv_data; int VAR_1 = 0, VAR_2; AVOutputFormat *oformat; mkdir(VAR_0->filename, 0777); oformat = av_guess_format("flv", NULL, NULL); if (!oformat) { VAR_1 = AVERROR_MUXER_NOT_FOUND; goto fail; }...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "HDSContext *c = VAR_0->priv_data;", "int VAR_1 = 0, VAR_2;", "AVOutputFormat *oformat;", "mkdir(VAR_0->filename, 0777);", "oformat = av_guess_format(\"flv\", NULL, NULL);", "if (!oformat) {", "VAR_1 = AVERROR_MUXER_NOT_FOUND;", "goto fail;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ...
11,826
int ff_h264_fill_default_ref_list(H264Context *h, H264SliceContext *sl) { int i, len; int j; if (sl->slice_type_nos == AV_PICTURE_TYPE_B) { H264Picture *sorted[32]; int cur_poc, list; int lens[2]; if (FIELD_PICTURE(h)) cur_poc = h->cur_pic_ptr->field_...
false
FFmpeg
aa427537b529cd584cd73222980286d36a00fe28
int ff_h264_fill_default_ref_list(H264Context *h, H264SliceContext *sl) { int i, len; int j; if (sl->slice_type_nos == AV_PICTURE_TYPE_B) { H264Picture *sorted[32]; int cur_poc, list; int lens[2]; if (FIELD_PICTURE(h)) cur_poc = h->cur_pic_ptr->field_...
{ "code": [], "line_no": [] }
int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1) { int VAR_2, VAR_3; int VAR_4; if (VAR_1->slice_type_nos == AV_PICTURE_TYPE_B) { H264Picture *sorted[32]; int VAR_5, VAR_6; int VAR_7[2]; if (FIELD_PICTURE(VAR_0)) VAR_5 = VAR_0->cur_pic_ptr->fie...
[ "int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1)\n{", "int VAR_2, VAR_3;", "int VAR_4;", "if (VAR_1->slice_type_nos == AV_PICTURE_TYPE_B) {", "H264Picture *sorted[32];", "int VAR_5, VAR_6;", "int VAR_7[2];", "if (FIELD_PICTURE(VAR_0))\nVAR_5 = VAR_0->cur_pic_ptr->field_poc[VAR_0->picture_struc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45, 47, 49 ], [ 51 ], [ 55, 57...
11,827
int ff_listen_connect(int fd, const struct sockaddr *addr, socklen_t addrlen, int timeout, URLContext *h, int will_try_next) { struct pollfd p = {fd, POLLOUT, 0}; int ret; socklen_t optlen; ff_socket_nonblock(fd, 1); while ((ret = connect(fd, a...
false
FFmpeg
7439475e69f333541c3647f6b9eb5b5af073cb64
int ff_listen_connect(int fd, const struct sockaddr *addr, socklen_t addrlen, int timeout, URLContext *h, int will_try_next) { struct pollfd p = {fd, POLLOUT, 0}; int ret; socklen_t optlen; ff_socket_nonblock(fd, 1); while ((ret = connect(fd, a...
{ "code": [], "line_no": [] }
int FUNC_0(int VAR_0, const struct sockaddr *VAR_1, socklen_t VAR_2, int VAR_3, URLContext *VAR_4, int VAR_5) { struct pollfd VAR_6 = {VAR_0, POLLOUT, 0}; int VAR_7; socklen_t optlen; ff_socket_nonblock(VAR_0, 1); while ((VAR_7 = connect(VAR_0,...
[ "int FUNC_0(int VAR_0, const struct sockaddr *VAR_1,\nsocklen_t VAR_2, int VAR_3, URLContext *VAR_4,\nint VAR_5)\n{", "struct pollfd VAR_6 = {VAR_0, POLLOUT, 0};", "int VAR_7;", "socklen_t optlen;", "ff_socket_nonblock(VAR_0, 1);", "while ((VAR_7 = connect(VAR_0, VAR_1, VAR_2))) {", "VAR_7 = ff_neterrno...
[ 0, 0, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29, 31 ], [ 33 ], [ 35, 37, 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53 ...
11,828
static int floppy_open(BlockDriverState *bs, const char *filename, int flags) { BDRVRawState *s = bs->opaque; int ret; posix_aio_init(); s->type = FTYPE_FD; /* open will not fail even if no floppy is inserted, so add O_NONBLOCK */ ret = raw_open_common(bs, filename, flags, O_NONBLOC...
false
qemu
9ef91a677110ec200d7b2904fc4bcae5a77329ad
static int floppy_open(BlockDriverState *bs, const char *filename, int flags) { BDRVRawState *s = bs->opaque; int ret; posix_aio_init(); s->type = FTYPE_FD; ret = raw_open_common(bs, filename, flags, O_NONBLOCK); if (ret) return ret; close(s->fd); s-...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2) { BDRVRawState *s = VAR_0->opaque; int VAR_3; posix_aio_init(); s->type = FTYPE_FD; VAR_3 = raw_open_common(VAR_0, VAR_1, VAR_2, O_NONBLOCK); if (VAR_3) return VAR_3; close(s->fd); ...
[ "static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2)\n{", "BDRVRawState *s = VAR_0->opaque;", "int VAR_3;", "posix_aio_init();", "s->type = FTYPE_FD;", "VAR_3 = raw_open_common(VAR_0, VAR_1, VAR_2, O_NONBLOCK);", "if (VAR_3)\nreturn VAR_3;", "close(s->fd);", "s->fd = -1;", "s-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 21 ], [ 23, 25 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ] ]
11,829
static void tcg_opt_gen_mov(TCGArg *gen_args, TCGArg dst, TCGArg src, int nb_temps, int nb_globals) { reset_temp(dst, nb_temps, nb_globals); assert(temps[src].state != TCG_TEMP_COPY); if (src >= nb_globals) { assert(temps[src].state != TCG_TEMP_CONST...
false
qemu
b80bb016d8c8e9d74345a90ab6dac1cb547904e0
static void tcg_opt_gen_mov(TCGArg *gen_args, TCGArg dst, TCGArg src, int nb_temps, int nb_globals) { reset_temp(dst, nb_temps, nb_globals); assert(temps[src].state != TCG_TEMP_COPY); if (src >= nb_globals) { assert(temps[src].state != TCG_TEMP_CONST...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGArg *VAR_0, TCGArg VAR_1, TCGArg VAR_2, int VAR_3, int VAR_4) { reset_temp(VAR_1, VAR_3, VAR_4); assert(temps[VAR_2].state != TCG_TEMP_COPY); if (VAR_2 >= VAR_4) { assert(temps[VAR_2].state != TCG_TEMP_CONST); if (t...
[ "static void FUNC_0(TCGArg *VAR_0, TCGArg VAR_1, TCGArg VAR_2,\nint VAR_3, int VAR_4)\n{", "reset_temp(VAR_1, VAR_3, VAR_4);", "assert(temps[VAR_2].state != TCG_TEMP_COPY);", "if (VAR_2 >= VAR_4) {", "assert(temps[VAR_2].state != TCG_TEMP_CONST);", "if (temps[VAR_2].state != TCG_TEMP_HAS_COPY) {", "temp...
[ 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 ], [...
11,830
static void machvirt_init(MachineState *machine) { VirtMachineState *vms = VIRT_MACHINE(machine); VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(machine); qemu_irq pic[NUM_IRQS]; MemoryRegion *sysmem = get_system_memory(); MemoryRegion *secure_sysmem = NULL; int n, virt_max_cpus; Mem...
false
qemu
17d3d0e2d9fc70631de3116eba33e3b2a63887eb
static void machvirt_init(MachineState *machine) { VirtMachineState *vms = VIRT_MACHINE(machine); VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(machine); qemu_irq pic[NUM_IRQS]; MemoryRegion *sysmem = get_system_memory(); MemoryRegion *secure_sysmem = NULL; int n, virt_max_cpus; Mem...
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0) { VirtMachineState *vms = VIRT_MACHINE(VAR_0); VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(VAR_0); qemu_irq pic[NUM_IRQS]; MemoryRegion *sysmem = get_system_memory(); MemoryRegion *secure_sysmem = NULL; int VAR_1, VAR_2; MemoryRegion *ram = ...
[ "static void FUNC_0(MachineState *VAR_0)\n{", "VirtMachineState *vms = VIRT_MACHINE(VAR_0);", "VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(VAR_0);", "qemu_irq pic[NUM_IRQS];", "MemoryRegion *sysmem = get_system_memory();", "MemoryRegion *secure_sysmem = NULL;", "int VAR_1, VAR_2;", "MemoryRegion *r...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 49 ], [ 51 ...
11,831
static int cow_create(const char *filename, QemuOpts *opts, Error **errp) { struct cow_header_v2 cow_header; struct stat st; int64_t image_sectors = 0; char *image_filename = NULL; Error *local_err = NULL; int ret; BlockDriverState *cow_bs = NULL; /* Read out options */ i...
false
qemu
550830f9351291c585c963204ad9127998b1c1ce
static int cow_create(const char *filename, QemuOpts *opts, Error **errp) { struct cow_header_v2 cow_header; struct stat st; int64_t image_sectors = 0; char *image_filename = NULL; Error *local_err = NULL; int ret; BlockDriverState *cow_bs = NULL; image_sectors = DIV_ROU...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0, QemuOpts *VAR_1, Error **VAR_2) { struct cow_header_v2 VAR_3; struct stat VAR_4; int64_t image_sectors = 0; char *VAR_5 = NULL; Error *local_err = NULL; int VAR_6; BlockDriverState *cow_bs = NULL; image_sectors = DIV_ROUND_UP(qemu_opt...
[ "static int FUNC_0(const char *VAR_0, QemuOpts *VAR_1, Error **VAR_2)\n{", "struct cow_header_v2 VAR_3;", "struct stat VAR_4;", "int64_t image_sectors = 0;", "char *VAR_5 = NULL;", "Error *local_err = NULL;", "int VAR_6;", "BlockDriverState *cow_bs = NULL;", "image_sectors = DIV_ROUND_UP(qemu_opt_ge...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ...
11,832
socket_sockaddr_to_address_inet(struct sockaddr_storage *sa, socklen_t salen, Error **errp) { char host[NI_MAXHOST]; char serv[NI_MAXSERV]; SocketAddressLegacy *addr; InetSocketAddress *inet; int ret; ret = getnameinfo((s...
false
qemu
bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884
socket_sockaddr_to_address_inet(struct sockaddr_storage *sa, socklen_t salen, Error **errp) { char host[NI_MAXHOST]; char serv[NI_MAXSERV]; SocketAddressLegacy *addr; InetSocketAddress *inet; int ret; ret = getnameinfo((s...
{ "code": [], "line_no": [] }
FUNC_0(struct sockaddr_storage *VAR_0, socklen_t VAR_1, Error **VAR_2) { char VAR_3[NI_MAXHOST]; char VAR_4[NI_MAXSERV]; SocketAddressLegacy *addr; InetSocketAddress *inet; int VAR_5; VAR_5 = getnameinfo((struct sockaddr ...
[ "FUNC_0(struct sockaddr_storage *VAR_0,\nsocklen_t VAR_1,\nError **VAR_2)\n{", "char VAR_3[NI_MAXHOST];", "char VAR_4[NI_MAXSERV];", "SocketAddressLegacy *addr;", "InetSocketAddress *inet;", "int VAR_5;", "VAR_5 = getnameinfo((struct sockaddr *)VAR_0, VAR_1,\nVAR_3, sizeof(VAR_3),\nVAR_4, sizeof(VAR_4),...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23, 25, 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
11,835
static void entropy_decode(APEContext *ctx, int blockstodecode, int stereo) { int32_t *decoded0 = ctx->decoded[0]; int32_t *decoded1 = ctx->decoded[1]; while (blockstodecode--) { *decoded0++ = ape_decode_value(ctx, &ctx->riceY); if (stereo) *decoded1++ = ape_decode_value...
false
FFmpeg
b164d66e35d349de414e2f0d7365a147aba8a620
static void entropy_decode(APEContext *ctx, int blockstodecode, int stereo) { int32_t *decoded0 = ctx->decoded[0]; int32_t *decoded1 = ctx->decoded[1]; while (blockstodecode--) { *decoded0++ = ape_decode_value(ctx, &ctx->riceY); if (stereo) *decoded1++ = ape_decode_value...
{ "code": [], "line_no": [] }
static void FUNC_0(APEContext *VAR_0, int VAR_1, int VAR_2) { int32_t *decoded0 = VAR_0->decoded[0]; int32_t *decoded1 = VAR_0->decoded[1]; while (VAR_1--) { *decoded0++ = ape_decode_value(VAR_0, &VAR_0->riceY); if (VAR_2) *decoded1++ = ape_decode_value(VAR_0, &VAR_0->ri...
[ "static void FUNC_0(APEContext *VAR_0, int VAR_1, int VAR_2)\n{", "int32_t *decoded0 = VAR_0->decoded[0];", "int32_t *decoded1 = VAR_0->decoded[1];", "while (VAR_1--) {", "*decoded0++ = ape_decode_value(VAR_0, &VAR_0->riceY);", "if (VAR_2)\n*decoded1++ = ape_decode_value(VAR_0, &VAR_0->riceX);", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ] ]
11,836
static int kvm_get_fpu(CPUState *env) { struct kvm_fpu fpu; int i, ret; ret = kvm_vcpu_ioctl(env, KVM_GET_FPU, &fpu); if (ret < 0) return ret; env->fpstt = (fpu.fsw >> 11) & 7; env->fpus = fpu.fsw; env->fpuc = fpu.fcw; for (i = 0; i < 8; ++i) env->fptags[i] = !((f...
false
qemu
b9bec74bcb16519a876ec21cd5277c526a9b512d
static int kvm_get_fpu(CPUState *env) { struct kvm_fpu fpu; int i, ret; ret = kvm_vcpu_ioctl(env, KVM_GET_FPU, &fpu); if (ret < 0) return ret; env->fpstt = (fpu.fsw >> 11) & 7; env->fpus = fpu.fsw; env->fpuc = fpu.fcw; for (i = 0; i < 8; ++i) env->fptags[i] = !((f...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUState *VAR_0) { struct kvm_fpu VAR_1; int VAR_2, VAR_3; VAR_3 = kvm_vcpu_ioctl(VAR_0, KVM_GET_FPU, &VAR_1); if (VAR_3 < 0) return VAR_3; VAR_0->fpstt = (VAR_1.fsw >> 11) & 7; VAR_0->fpus = VAR_1.fsw; VAR_0->fpuc = VAR_1.fcw; for (VAR_2 = 0; VAR_...
[ "static int FUNC_0(CPUState *VAR_0)\n{", "struct kvm_fpu VAR_1;", "int VAR_2, VAR_3;", "VAR_3 = kvm_vcpu_ioctl(VAR_0, KVM_GET_FPU, &VAR_1);", "if (VAR_3 < 0)\nreturn VAR_3;", "VAR_0->fpstt = (VAR_1.fsw >> 11) & 7;", "VAR_0->fpus = VAR_1.fsw;", "VAR_0->fpuc = VAR_1.fcw;", "for (VAR_2 = 0; VAR_2 < 8; ...
[ 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 ], [ 37 ], [ 39 ] ]
11,837
static void dump_aml_files(test_data *data, bool rebuild) { AcpiSdtTable *sdt; GError *error = NULL; gchar *aml_file = NULL; gint fd; ssize_t ret; int i; for (i = 0; i < data->tables->len; ++i) { const char *ext = data->variant ? data->variant : ""; sdt = &g_array...
false
qemu
ef1e1e0782e99c9dcf2b35e5310cdd8ca9211374
static void dump_aml_files(test_data *data, bool rebuild) { AcpiSdtTable *sdt; GError *error = NULL; gchar *aml_file = NULL; gint fd; ssize_t ret; int i; for (i = 0; i < data->tables->len; ++i) { const char *ext = data->variant ? data->variant : ""; sdt = &g_array...
{ "code": [], "line_no": [] }
static void FUNC_0(test_data *VAR_0, bool VAR_1) { AcpiSdtTable *sdt; GError *error = NULL; gchar *aml_file = NULL; gint fd; ssize_t ret; int VAR_2; for (VAR_2 = 0; VAR_2 < VAR_0->tables->len; ++VAR_2) { const char *ext = VAR_0->variant ? VAR_0->variant : ""; sdt ...
[ "static void FUNC_0(test_data *VAR_0, bool VAR_1)\n{", "AcpiSdtTable *sdt;", "GError *error = NULL;", "gchar *aml_file = NULL;", "gint fd;", "ssize_t ret;", "int VAR_2;", "for (VAR_2 = 0; VAR_2 < VAR_0->tables->len; ++VAR_2) {", "const char *ext = VAR_0->variant ? VAR_0->variant : \"\";", "sdt = &...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
11,838
int nbd_init(int fd, QIOChannelSocket *sioc, uint32_t flags, off_t size) { TRACE("Setting NBD socket"); if (ioctl(fd, NBD_SET_SOCK, sioc->fd) < 0) { int serrno = errno; LOG("Failed to set NBD socket"); return -serrno; } TRACE("Setting block size to %lu", (unsigned lon...
false
qemu
f57e2416aaeb39c32946d282768ece7ff619b423
int nbd_init(int fd, QIOChannelSocket *sioc, uint32_t flags, off_t size) { TRACE("Setting NBD socket"); if (ioctl(fd, NBD_SET_SOCK, sioc->fd) < 0) { int serrno = errno; LOG("Failed to set NBD socket"); return -serrno; } TRACE("Setting block size to %lu", (unsigned lon...
{ "code": [], "line_no": [] }
int FUNC_0(int VAR_0, QIOChannelSocket *VAR_1, uint32_t VAR_2, off_t VAR_3) { TRACE("Setting NBD socket"); if (ioctl(VAR_0, NBD_SET_SOCK, VAR_1->VAR_0) < 0) { int VAR_6 = errno; LOG("Failed to set NBD socket"); return -VAR_6; } TRACE("Setting block VAR_3 to %lu", (uns...
[ "int FUNC_0(int VAR_0, QIOChannelSocket *VAR_1, uint32_t VAR_2, off_t VAR_3)\n{", "TRACE(\"Setting NBD socket\");", "if (ioctl(VAR_0, NBD_SET_SOCK, VAR_1->VAR_0) < 0) {", "int VAR_6 = errno;", "LOG(\"Failed to set NBD socket\");", "return -VAR_6;", "}", "TRACE(\"Setting block VAR_3 to %lu\", (unsigned...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53...
11,839
static void smbios_build_type_0_fields(QemuOpts *opts) { const char *val; unsigned char major, minor; val = qemu_opt_get(opts, "vendor"); if (val) { smbios_add_field(0, offsetof(struct smbios_type_0, vendor_str), val, strlen(val) + 1); } val = qemu_opt...
false
qemu
fc3b32958a80bca13309e2695de07b43dd788421
static void smbios_build_type_0_fields(QemuOpts *opts) { const char *val; unsigned char major, minor; val = qemu_opt_get(opts, "vendor"); if (val) { smbios_add_field(0, offsetof(struct smbios_type_0, vendor_str), val, strlen(val) + 1); } val = qemu_opt...
{ "code": [], "line_no": [] }
static void FUNC_0(QemuOpts *VAR_0) { const char *VAR_1; unsigned char VAR_2, VAR_3; VAR_1 = qemu_opt_get(VAR_0, "vendor"); if (VAR_1) { smbios_add_field(0, offsetof(struct smbios_type_0, vendor_str), VAR_1, strlen(VAR_1) + 1); } VAR_1 = qemu_opt_get(V...
[ "static void FUNC_0(QemuOpts *VAR_0)\n{", "const char *VAR_1;", "unsigned char VAR_2, VAR_3;", "VAR_1 = qemu_opt_get(VAR_0, \"vendor\");", "if (VAR_1) {", "smbios_add_field(0, offsetof(struct smbios_type_0, vendor_str),\nVAR_1, strlen(VAR_1) + 1);", "}", "VAR_1 = qemu_opt_get(VAR_0, \"version\");", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
11,842
SimpleSpiceUpdate *qemu_spice_create_update(SimpleSpiceDisplay *ssd) { SimpleSpiceUpdate *update; QXLDrawable *drawable; QXLImage *image; QXLCommand *cmd; uint8_t *src, *dst; int by, bw, bh; if (qemu_spice_rect_is_empty(&ssd->dirty)) { return NULL; }; pthread_m...
false
qemu
7466bc49107fbd84336ba680f860d5eadd6def13
SimpleSpiceUpdate *qemu_spice_create_update(SimpleSpiceDisplay *ssd) { SimpleSpiceUpdate *update; QXLDrawable *drawable; QXLImage *image; QXLCommand *cmd; uint8_t *src, *dst; int by, bw, bh; if (qemu_spice_rect_is_empty(&ssd->dirty)) { return NULL; }; pthread_m...
{ "code": [], "line_no": [] }
SimpleSpiceUpdate *FUNC_0(SimpleSpiceDisplay *ssd) { SimpleSpiceUpdate *update; QXLDrawable *drawable; QXLImage *image; QXLCommand *cmd; uint8_t *src, *dst; int VAR_0, VAR_1, VAR_2; if (qemu_spice_rect_is_empty(&ssd->dirty)) { return NULL; }; pthread_mutex_lock...
[ "SimpleSpiceUpdate *FUNC_0(SimpleSpiceDisplay *ssd)\n{", "SimpleSpiceUpdate *update;", "QXLDrawable *drawable;", "QXLImage *image;", "QXLCommand *cmd;", "uint8_t *src, *dst;", "int VAR_0, VAR_1, VAR_2;", "if (qemu_spice_rect_is_empty(&ssd->dirty)) {", "return NULL;", "};", "pthread_mutex_lock(&s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ...
11,845
void HELPER(set_cp15)(CPUARMState *env, uint32_t insn, uint32_t val) { int op1; int op2; int crm; op1 = (insn >> 21) & 7; op2 = (insn >> 5) & 7; crm = insn & 0xf; switch ((insn >> 16) & 0xf) { case 0: /* ID codes. */ if (arm_feature(env, ARM_FEATURE_XSCALE))...
false
qemu
c480421426c984068a27502c2948d2fa51b8cf96
void HELPER(set_cp15)(CPUARMState *env, uint32_t insn, uint32_t val) { int op1; int op2; int crm; op1 = (insn >> 21) & 7; op2 = (insn >> 5) & 7; crm = insn & 0xf; switch ((insn >> 16) & 0xf) { case 0: if (arm_feature(env, ARM_FEATURE_XSCALE)) br...
{ "code": [], "line_no": [] }
void FUNC_0(set_cp15)(CPUARMState *env, uint32_t insn, uint32_t val) { int VAR_0; int VAR_1; int VAR_2; VAR_0 = (insn >> 21) & 7; VAR_1 = (insn >> 5) & 7; VAR_2 = insn & 0xf; switch ((insn >> 16) & 0xf) { case 0: if (arm_feature(env, ARM_FEATURE_XSCALE)) ...
[ "void FUNC_0(set_cp15)(CPUARMState *env, uint32_t insn, uint32_t val)\n{", "int VAR_0;", "int VAR_1;", "int VAR_2;", "VAR_0 = (insn >> 21) & 7;", "VAR_1 = (insn >> 5) & 7;", "VAR_2 = insn & 0xf;", "switch ((insn >> 16) & 0xf) {", "case 0:\nif (arm_feature(env, ARM_FEATURE_XSCALE))\nbreak;", "if (a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 43 ], [ 45, 47, 49 ], [ 51 ...
11,846
static int decode_profile_tier_level(HEVCLocalContext *lc, PTL *ptl, int max_num_sub_layers) { int i, j; GetBitContext *gb = &lc->gb; ptl->general_profile_space = get_bits(gb, 2); ptl->general_tier_flag = get_bits1(gb); ptl->general_profile_idc = g...
false
FFmpeg
67bbaed5c498212bdd70b13b4fdcb37f4c9c77f5
static int decode_profile_tier_level(HEVCLocalContext *lc, PTL *ptl, int max_num_sub_layers) { int i, j; GetBitContext *gb = &lc->gb; ptl->general_profile_space = get_bits(gb, 2); ptl->general_tier_flag = get_bits1(gb); ptl->general_profile_idc = g...
{ "code": [], "line_no": [] }
static int FUNC_0(HEVCLocalContext *VAR_0, PTL *VAR_1, int VAR_2) { int VAR_3, VAR_4; GetBitContext *gb = &VAR_0->gb; VAR_1->general_profile_space = get_bits(gb, 2); VAR_1->general_tier_flag = get_bits1(gb); VAR_1->general_profile_idc = get_bits(gb...
[ "static int FUNC_0(HEVCLocalContext *VAR_0, PTL *VAR_1,\nint VAR_2)\n{", "int VAR_3, VAR_4;", "GetBitContext *gb = &VAR_0->gb;", "VAR_1->general_profile_space = get_bits(gb, 2);", "VAR_1->general_tier_flag = get_bits1(gb);", "VAR_1->general_profile_idc = get_bits(gb, 5);", "for (VAR_3 = 0; VAR_3 <...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35, 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ...
11,848
static void tcx_init(hwaddr addr, qemu_irq irq, int vram_size, int width, int height, int depth) { DeviceState *dev; SysBusDevice *s; dev = qdev_create(NULL, "SUNW,tcx"); qdev_prop_set_uint32(dev, "vram_size", vram_size); qdev_prop_set_uint16(dev, "width", width); ...
false
qemu
749763864208b14f100f1f8319aeb931134430fa
static void tcx_init(hwaddr addr, qemu_irq irq, int vram_size, int width, int height, int depth) { DeviceState *dev; SysBusDevice *s; dev = qdev_create(NULL, "SUNW,tcx"); qdev_prop_set_uint32(dev, "vram_size", vram_size); qdev_prop_set_uint16(dev, "width", width); ...
{ "code": [], "line_no": [] }
static void FUNC_0(hwaddr VAR_0, qemu_irq VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5) { DeviceState *dev; SysBusDevice *s; dev = qdev_create(NULL, "SUNW,tcx"); qdev_prop_set_uint32(dev, "VAR_2", VAR_2); qdev_prop_set_uint16(dev, "VAR_3", VAR_3); qdev_prop_se...
[ "static void FUNC_0(hwaddr VAR_0, qemu_irq VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int VAR_5)\n{", "DeviceState *dev;", "SysBusDevice *s;", "dev = qdev_create(NULL, \"SUNW,tcx\");", "qdev_prop_set_uint32(dev, \"VAR_2\", VAR_2);", "qdev_prop_set_uint16(dev, \"VAR_3\", VAR_3);", "qdev_prop_set_uint16(dev...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 37 ], [ 41 ], [ 45 ], [ 49 ], [ 53 ], [ 57 ], [ 61 ], [...
11,849
static int local_mknod(FsContext *fs_ctx, V9fsPath *dir_path, const char *name, FsCred *credp) { int err = -1; int dirfd; if (fs_ctx->export_flags & V9FS_SM_MAPPED_FILE && local_is_mapped_file_metadata(fs_ctx, name)) { errno = EINVAL; return -1; ...
false
qemu
b96feb2cb9b2714bffa342b1d4f39d8db71329ba
static int local_mknod(FsContext *fs_ctx, V9fsPath *dir_path, const char *name, FsCred *credp) { int err = -1; int dirfd; if (fs_ctx->export_flags & V9FS_SM_MAPPED_FILE && local_is_mapped_file_metadata(fs_ctx, name)) { errno = EINVAL; return -1; ...
{ "code": [], "line_no": [] }
static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, const char *VAR_2, FsCred *VAR_3) { int VAR_4 = -1; int VAR_5; if (VAR_0->export_flags & V9FS_SM_MAPPED_FILE && local_is_mapped_file_metadata(VAR_0, VAR_2)) { errno = EINVAL; return -1; } ...
[ "static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,\nconst char *VAR_2, FsCred *VAR_3)\n{", "int VAR_4 = -1;", "int VAR_5;", "if (VAR_0->export_flags & V9FS_SM_MAPPED_FILE &&\nlocal_is_mapped_file_metadata(VAR_0, VAR_2)) {", "errno = EINVAL;", "return -1;", "}", "VAR_5 = local_opendir_nofollow(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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [...
11,850
static void tpm_passthrough_worker_thread(gpointer data, gpointer user_data) { TPMPassthruThreadParams *thr_parms = user_data; TPMPassthruState *tpm_pt = thr_parms->tb->s.tpm_pt; TPMBackendCmd cmd = (TPMBackendCmd)data; DPRINTF("tpm_passthrough: processi...
false
qemu
92dcc234ec1f266fb5d59bed77d66320c2c75965
static void tpm_passthrough_worker_thread(gpointer data, gpointer user_data) { TPMPassthruThreadParams *thr_parms = user_data; TPMPassthruState *tpm_pt = thr_parms->tb->s.tpm_pt; TPMBackendCmd cmd = (TPMBackendCmd)data; DPRINTF("tpm_passthrough: processi...
{ "code": [], "line_no": [] }
static void FUNC_0(gpointer VAR_0, gpointer VAR_1) { TPMPassthruThreadParams *thr_parms = VAR_1; TPMPassthruState *tpm_pt = thr_parms->tb->s.tpm_pt; TPMBackendCmd cmd = (TPMBackendCmd)VAR_0; DPRINTF("tpm_passthrough: processing command type %d\n", cmd); ...
[ "static void FUNC_0(gpointer VAR_0,\ngpointer VAR_1)\n{", "TPMPassthruThreadParams *thr_parms = VAR_1;", "TPMPassthruState *tpm_pt = thr_parms->tb->s.tpm_pt;", "TPMBackendCmd cmd = (TPMBackendCmd)VAR_0;", "DPRINTF(\"tpm_passthrough: processing command type %d\\n\", cmd);", "switch (cmd) {", "case TPM_BA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21, 23, 25 ], [ 29, 31 ], [ 33 ], [ 35, 37, 39, 43 ], [ 45 ], [ 47 ] ]
11,851
static ram_addr_t ram_save_remaining(void) { return ram_list.dirty_pages; }
false
qemu
c6bf8e0e0cf04b40a8a22426e00ebbd727331d8b
static ram_addr_t ram_save_remaining(void) { return ram_list.dirty_pages; }
{ "code": [], "line_no": [] }
static ram_addr_t FUNC_0(void) { return ram_list.dirty_pages; }
[ "static ram_addr_t FUNC_0(void)\n{", "return ram_list.dirty_pages;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
11,855
static int ide_dev_initfn(IDEDevice *dev, IDEDriveKind kind) { IDEBus *bus = DO_UPCAST(IDEBus, qbus, dev->qdev.parent_bus); IDEState *s = bus->ifs + dev->unit; const char *serial; DriveInfo *dinfo; if (dev->conf.discard_granularity && dev->conf.discard_granularity != 512) { error_re...
false
qemu
27e0c9a1bbd166a67c16291016fba298a8e47140
static int ide_dev_initfn(IDEDevice *dev, IDEDriveKind kind) { IDEBus *bus = DO_UPCAST(IDEBus, qbus, dev->qdev.parent_bus); IDEState *s = bus->ifs + dev->unit; const char *serial; DriveInfo *dinfo; if (dev->conf.discard_granularity && dev->conf.discard_granularity != 512) { error_re...
{ "code": [], "line_no": [] }
static int FUNC_0(IDEDevice *VAR_0, IDEDriveKind VAR_1) { IDEBus *bus = DO_UPCAST(IDEBus, qbus, VAR_0->qdev.parent_bus); IDEState *s = bus->ifs + VAR_0->unit; const char *VAR_2; DriveInfo *dinfo; if (VAR_0->conf.discard_granularity && VAR_0->conf.discard_granularity != 512) { error_...
[ "static int FUNC_0(IDEDevice *VAR_0, IDEDriveKind VAR_1)\n{", "IDEBus *bus = DO_UPCAST(IDEBus, qbus, VAR_0->qdev.parent_bus);", "IDEState *s = bus->ifs + VAR_0->unit;", "const char *VAR_2;", "DriveInfo *dinfo;", "if (VAR_0->conf.discard_granularity && VAR_0->conf.discard_granularity != 512) {", "error_r...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ...
11,856
static void qmp_output_start_list(Visitor *v, const char *name, GenericList **listp, size_t size, Error **errp) { QmpOutputVisitor *qov = to_qov(v); QList *list = qlist_new(); qmp_output_add(qov, name, list); qmp_output_push(qo...
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void qmp_output_start_list(Visitor *v, const char *name, GenericList **listp, size_t size, Error **errp) { QmpOutputVisitor *qov = to_qov(v); QList *list = qlist_new(); qmp_output_add(qov, name, list); qmp_output_push(qo...
{ "code": [], "line_no": [] }
static void FUNC_0(Visitor *VAR_0, const char *VAR_1, GenericList **VAR_2, size_t VAR_3, Error **VAR_4) { QmpOutputVisitor *qov = to_qov(VAR_0); QList *list = qlist_new(); qmp_output_add(qov, VAR_1, list); qmp_output_push(qov, ...
[ "static void FUNC_0(Visitor *VAR_0, const char *VAR_1,\nGenericList **VAR_2, size_t VAR_3,\nError **VAR_4)\n{", "QmpOutputVisitor *qov = to_qov(VAR_0);", "QList *list = qlist_new();", "qmp_output_add(qov, VAR_1, list);", "qmp_output_push(qov, list, VAR_2);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ] ]
11,857
int ff_default_query_formats(AVFilterContext *ctx) { return default_query_formats_common(ctx, ff_all_channel_layouts); }
false
FFmpeg
7ceb9e6b11824ff18f424a35e41fbddf545d1238
int ff_default_query_formats(AVFilterContext *ctx) { return default_query_formats_common(ctx, ff_all_channel_layouts); }
{ "code": [], "line_no": [] }
int FUNC_0(AVFilterContext *VAR_0) { return default_query_formats_common(VAR_0, ff_all_channel_layouts); }
[ "int FUNC_0(AVFilterContext *VAR_0)\n{", "return default_query_formats_common(VAR_0, ff_all_channel_layouts);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
11,858
static int uncouple_channels(AC3DecodeContext * ctx) { ac3_audio_block *ab = &ctx->audio_block; int ch, sbnd, bin; int index; float (*samples)[256]; int16_t mantissa; samples = (float (*)[256])((ctx->bsi.flags & AC3_BSI_LFEON) ? (ctx->samples + 256) : (ctx->samples)); /* uncouple...
false
FFmpeg
0058584580b87feb47898e60e4b80c7f425882ad
static int uncouple_channels(AC3DecodeContext * ctx) { ac3_audio_block *ab = &ctx->audio_block; int ch, sbnd, bin; int index; float (*samples)[256]; int16_t mantissa; samples = (float (*)[256])((ctx->bsi.flags & AC3_BSI_LFEON) ? (ctx->samples + 256) : (ctx->samples)); for (...
{ "code": [], "line_no": [] }
static int FUNC_0(AC3DecodeContext * VAR_0) { ac3_audio_block *ab = &VAR_0->audio_block; int VAR_1, VAR_2, VAR_3; int VAR_4; float (*VAR_5)[256]; int16_t mantissa; VAR_5 = (float (*)[256])((VAR_0->bsi.flags & AC3_BSI_LFEON) ? (VAR_0->VAR_5 + 256) : (VAR_0->VAR_5)); for (VAR...
[ "static int FUNC_0(AC3DecodeContext * VAR_0)\n{", "ac3_audio_block *ab = &VAR_0->audio_block;", "int VAR_1, VAR_2, VAR_3;", "int VAR_4;", "float (*VAR_5)[256];", "int16_t mantissa;", "VAR_5 = (float (*)[256])((VAR_0->bsi.flags & AC3_BSI_LFEON) ? (VAR_0->VAR_5 + 256) : (VAR_0->VAR_5));", "for (VAR_1 = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
11,859
long do_rt_sigreturn(CPUTLGState *env) { abi_ulong frame_addr = env->regs[TILEGX_R_SP]; struct target_rt_sigframe *frame; sigset_t set; trace_user_do_rt_sigreturn(env, frame_addr); if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { goto badframe; } target_to_host_...
true
qemu
a9175169cc55ecff23a158dfee7d9cbb0b75d185
long do_rt_sigreturn(CPUTLGState *env) { abi_ulong frame_addr = env->regs[TILEGX_R_SP]; struct target_rt_sigframe *frame; sigset_t set; trace_user_do_rt_sigreturn(env, frame_addr); if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { goto badframe; } target_to_host_...
{ "code": [ " return env->regs[TILEGX_R_RE];" ], "line_no": [ 43 ] }
long FUNC_0(CPUTLGState *VAR_0) { abi_ulong frame_addr = VAR_0->regs[TILEGX_R_SP]; struct target_rt_sigframe *VAR_1; sigset_t set; trace_user_do_rt_sigreturn(VAR_0, frame_addr); if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1)) { goto badframe; } target_to_host_sig...
[ "long FUNC_0(CPUTLGState *VAR_0)\n{", "abi_ulong frame_addr = VAR_0->regs[TILEGX_R_SP];", "struct target_rt_sigframe *VAR_1;", "sigset_t set;", "trace_user_do_rt_sigreturn(VAR_0, frame_addr);", "if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1)) {", "goto badframe;", "}", "target_to_host_sigs...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29, 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 49, 51 ], [ 53 ], [...
11,860
int ff_hevc_decode_nal_vps(HEVCContext *s) { int i,j; GetBitContext *gb = &s->HEVClc->gb; int vps_id = 0; HEVCVPS *vps; AVBufferRef *vps_buf = av_buffer_allocz(sizeof(*vps)); if (!vps_buf) return AVERROR(ENOMEM); vps = (HEVCVPS*)vps_buf->data; av_log(s->avctx, AV_LO...
true
FFmpeg
57078e4d255a06246fef27846073f5ffb312b5dc
int ff_hevc_decode_nal_vps(HEVCContext *s) { int i,j; GetBitContext *gb = &s->HEVClc->gb; int vps_id = 0; HEVCVPS *vps; AVBufferRef *vps_buf = av_buffer_allocz(sizeof(*vps)); if (!vps_buf) return AVERROR(ENOMEM); vps = (HEVCVPS*)vps_buf->data; av_log(s->avctx, AV_LO...
{ "code": [ " goto err;" ], "line_no": [ 35 ] }
int FUNC_0(HEVCContext *VAR_0) { int VAR_1,VAR_2; GetBitContext *gb = &VAR_0->HEVClc->gb; int VAR_3 = 0; HEVCVPS *vps; AVBufferRef *vps_buf = av_buffer_allocz(sizeof(*vps)); if (!vps_buf) return AVERROR(ENOMEM); vps = (HEVCVPS*)vps_buf->data; av_log(VAR_0->avctx, AV...
[ "int FUNC_0(HEVCContext *VAR_0)\n{", "int VAR_1,VAR_2;", "GetBitContext *gb = &VAR_0->HEVClc->gb;", "int VAR_3 = 0;", "HEVCVPS *vps;", "AVBufferRef *vps_buf = av_buffer_allocz(sizeof(*vps));", "if (!vps_buf)\nreturn AVERROR(ENOMEM);", "vps = (HEVCVPS*)vps_buf->data;", "av_log(VAR_0->avctx, AV_LOG_DE...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [...
11,862
static void probe_group_enter(const char *name, int type) { int64_t count = -1; octx.prefix = av_realloc(octx.prefix, sizeof(PrintElement) * (octx.level + 1)); if (!octx.prefix || !name) { fprintf(stderr, "Out of memory\n"); exit(1); } if (octx.level) { ...
true
FFmpeg
636ced8e1dc8248a1353b416240b93d70ad03edb
static void probe_group_enter(const char *name, int type) { int64_t count = -1; octx.prefix = av_realloc(octx.prefix, sizeof(PrintElement) * (octx.level + 1)); if (!octx.prefix || !name) { fprintf(stderr, "Out of memory\n"); exit(1); } if (octx.level) { ...
{ "code": [ " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(...
static void FUNC_0(const char *VAR_0, int VAR_1) { int64_t count = -1; octx.prefix = av_realloc(octx.prefix, sizeof(PrintElement) * (octx.level + 1)); if (!octx.prefix || !VAR_0) { fprintf(stderr, "Out of memory\n"); exit(1); } if (octx.level) { PrintE...
[ "static void FUNC_0(const char *VAR_0, int VAR_1)\n{", "int64_t count = -1;", "octx.prefix =\nav_realloc(octx.prefix, sizeof(PrintElement) * (octx.level + 1));", "if (!octx.prefix || !VAR_0) {", "fprintf(stderr, \"Out of memory\\n\");", "exit(1);", "}", "if (octx.level) {", "PrintElement *parent = o...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ] ]
11,864
static gboolean tcp_chr_read(GIOChannel *chan, GIOCondition cond, void *opaque) { CharDriverState *chr = opaque; TCPCharDriver *s = chr->opaque; uint8_t buf[READ_BUF_LEN]; int len, size; if (!s->connected || s->max_size <= 0) { return TRUE; } len = sizeof(buf); if (le...
true
qemu
2b316774f60291f57ca9ecb6a9f0712c532cae34
static gboolean tcp_chr_read(GIOChannel *chan, GIOCondition cond, void *opaque) { CharDriverState *chr = opaque; TCPCharDriver *s = chr->opaque; uint8_t buf[READ_BUF_LEN]; int len, size; if (!s->connected || s->max_size <= 0) { return TRUE; } len = sizeof(buf); if (le...
{ "code": [ " g_source_remove(s->tag);", " g_source_remove(s->tag);", " g_source_remove(s->tag);" ], "line_no": [ 43, 43, 43 ] }
static gboolean FUNC_0(GIOChannel *chan, GIOCondition cond, void *opaque) { CharDriverState *chr = opaque; TCPCharDriver *s = chr->opaque; uint8_t buf[READ_BUF_LEN]; int VAR_0, VAR_1; if (!s->connected || s->max_size <= 0) { return TRUE; } VAR_0 = sizeof(buf); if (VAR...
[ "static gboolean FUNC_0(GIOChannel *chan, GIOCondition cond, void *opaque)\n{", "CharDriverState *chr = opaque;", "TCPCharDriver *s = chr->opaque;", "uint8_t buf[READ_BUF_LEN];", "int VAR_0, VAR_1;", "if (!s->connected || s->max_size <= 0) {", "return TRUE;", "}", "VAR_0 = sizeof(buf);", "if (VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
11,866
static void wmv2_add_block(Wmv2Context *w, DCTELEM *block1, uint8_t *dst, int stride, int n){ MpegEncContext * const s= &w->s; switch(w->abt_type_table[n]){ case 0: if (s->block_last_index[n] >= 0) { s->dsp.idct_add (dst, stride, block1); } break; case 1: ...
true
FFmpeg
1c02a9732aa2e5ec0eaf83e65044704af05e8400
static void wmv2_add_block(Wmv2Context *w, DCTELEM *block1, uint8_t *dst, int stride, int n){ MpegEncContext * const s= &w->s; switch(w->abt_type_table[n]){ case 0: if (s->block_last_index[n] >= 0) { s->dsp.idct_add (dst, stride, block1); } break; case 1: ...
{ "code": [ " if (s->block_last_index[n] >= 0) {", " s->dsp.idct_add (dst, stride, block1);" ], "line_no": [ 11, 13 ] }
static void FUNC_0(Wmv2Context *VAR_0, DCTELEM *VAR_1, uint8_t *VAR_2, int VAR_3, int VAR_4){ MpegEncContext * const s= &VAR_0->s; switch(VAR_0->abt_type_table[VAR_4]){ case 0: if (s->block_last_index[VAR_4] >= 0) { s->dsp.idct_add (VAR_2, VAR_3, VAR_1); } break;...
[ "static void FUNC_0(Wmv2Context *VAR_0, DCTELEM *VAR_1, uint8_t *VAR_2, int VAR_3, int VAR_4){", "MpegEncContext * const s= &VAR_0->s;", "switch(VAR_0->abt_type_table[VAR_4]){", "case 0:\nif (s->block_last_index[VAR_4] >= 0) {", "s->dsp.idct_add (VAR_2, VAR_3, VAR_1);", "}", "break;", "case 1:\nsimple...
[ 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ] ]
11,867
static int msrle_decode_init(AVCodecContext *avctx) { MsrleContext *s = (MsrleContext *)avctx->priv_data; int i, j; unsigned char *palette; s->avctx = avctx; avctx->pix_fmt = PIX_FMT_PAL8; avctx->has_b_frames = 0; s->frame.data[0] = s->prev_frame.data[0] = NULL; /* convert...
false
FFmpeg
875efafac8afe22971c87fc7dfee83d27364ab50
static int msrle_decode_init(AVCodecContext *avctx) { MsrleContext *s = (MsrleContext *)avctx->priv_data; int i, j; unsigned char *palette; s->avctx = avctx; avctx->pix_fmt = PIX_FMT_PAL8; avctx->has_b_frames = 0; s->frame.data[0] = s->prev_frame.data[0] = NULL; pale...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { MsrleContext *s = (MsrleContext *)VAR_0->priv_data; int VAR_1, VAR_2; unsigned char *VAR_3; s->VAR_0 = VAR_0; VAR_0->pix_fmt = PIX_FMT_PAL8; VAR_0->has_b_frames = 0; s->frame.data[0] = s->prev_frame.data[0] = NULL; VAR_3 = (...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "MsrleContext *s = (MsrleContext *)VAR_0->priv_data;", "int VAR_1, VAR_2;", "unsigned char *VAR_3;", "s->VAR_0 = VAR_0;", "VAR_0->pix_fmt = PIX_FMT_PAL8;", "VAR_0->has_b_frames = 0;", "s->frame.data[0] = s->prev_frame.data[0] = NULL;", "VAR_3 = (unsigne...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35, 37, 39 ], [ 43 ], [ 45 ] ]
11,868
static void mpeg_decode_extension(AVCodecContext *avctx, UINT8 *buf, int buf_size) { Mpeg1Context *s1 = avctx->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; int ext_type; init_get_bits(&s->gb, buf, buf_size); ext_type = get_bits(&s->gb, 4); ...
false
FFmpeg
68f593b48433842f3407586679fe07f3e5199ab9
static void mpeg_decode_extension(AVCodecContext *avctx, UINT8 *buf, int buf_size) { Mpeg1Context *s1 = avctx->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; int ext_type; init_get_bits(&s->gb, buf, buf_size); ext_type = get_bits(&s->gb, 4); ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVCodecContext *VAR_0, UINT8 *VAR_1, int VAR_2) { Mpeg1Context *s1 = VAR_0->priv_data; MpegEncContext *s = &s1->mpeg_enc_ctx; int VAR_3; init_get_bits(&s->gb, VAR_1, VAR_2); VAR_3 = get_bits(&s->gb, 4); switch(VAR_3) { ca...
[ "static void FUNC_0(AVCodecContext *VAR_0,\nUINT8 *VAR_1, int VAR_2)\n{", "Mpeg1Context *s1 = VAR_0->priv_data;", "MpegEncContext *s = &s1->mpeg_enc_ctx;", "int VAR_3;", "init_get_bits(&s->gb, VAR_1, VAR_2);", "VAR_3 = get_bits(&s->gb, 4);", "switch(VAR_3) {", "case 0x1:\nmpeg_decode_sequence_extensio...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 27 ], [ 29 ], [ 31, 35 ], [ 37 ], [ 39, 43 ], [ 45 ], [ 47 ], [ 49 ] ]
11,869
static int vorbis_parse_setup_hdr_residues(vorbis_context *vc) { GetBitContext *gb = &vc->gb; uint_fast8_t i, j, k; vc->residue_count = get_bits(gb, 6)+1; vc->residues = av_mallocz(vc->residue_count * sizeof(vorbis_residue)); AV_DEBUG(" There are %d residues. \n", vc->residue_count); ...
false
FFmpeg
925aa96915b8143017cb63418cb709b992c59065
static int vorbis_parse_setup_hdr_residues(vorbis_context *vc) { GetBitContext *gb = &vc->gb; uint_fast8_t i, j, k; vc->residue_count = get_bits(gb, 6)+1; vc->residues = av_mallocz(vc->residue_count * sizeof(vorbis_residue)); AV_DEBUG(" There are %d residues. \n", vc->residue_count); ...
{ "code": [], "line_no": [] }
static int FUNC_0(vorbis_context *VAR_0) { GetBitContext *gb = &VAR_0->gb; uint_fast8_t i, j, k; VAR_0->residue_count = get_bits(gb, 6)+1; VAR_0->residues = av_mallocz(VAR_0->residue_count * sizeof(vorbis_residue)); AV_DEBUG(" There are %d residues. \n", VAR_0->residue_count); ...
[ "static int FUNC_0(vorbis_context *VAR_0)\n{", "GetBitContext *gb = &VAR_0->gb;", "uint_fast8_t i, j, k;", "VAR_0->residue_count = get_bits(gb, 6)+1;", "VAR_0->residues = av_mallocz(VAR_0->residue_count * sizeof(vorbis_residue));", "AV_DEBUG(\" There are %d residues. \\n\", VAR_0->residue_count);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51, 53 ], [ 55 ], [ 57...
11,870
static int mp3_read_header(AVFormatContext *s, AVFormatParameters *ap) { AVStream *st; int64_t off; st = av_new_stream(s, 0); if (!st) return AVERROR(ENOMEM); st->codec->codec_type = CODEC_TYPE_AUDIO; st->codec->codec_id = CODEC_ID_MP3; st->ne...
false
FFmpeg
7fd5aeb3e57389198681a8ab2d5cd5d83a0c5a5f
static int mp3_read_header(AVFormatContext *s, AVFormatParameters *ap) { AVStream *st; int64_t off; st = av_new_stream(s, 0); if (!st) return AVERROR(ENOMEM); st->codec->codec_type = CODEC_TYPE_AUDIO; st->codec->codec_id = CODEC_ID_MP3; st->ne...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { AVStream *st; int64_t off; st = av_new_stream(VAR_0, 0); if (!st) return AVERROR(ENOMEM); st->codec->codec_type = CODEC_TYPE_AUDIO; st->codec->codec_id = CODEC_ID_MP3; st->...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVFormatParameters *VAR_1)\n{", "AVStream *st;", "int64_t off;", "st = av_new_stream(VAR_0, 0);", "if (!st)\nreturn AVERROR(ENOMEM);", "st->codec->codec_type = CODEC_TYPE_AUDIO;", "st->codec->codec_id = CODEC_ID_MP3;", "st->need_parsing = AVSTREAM_PARSE_FULL...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 47 ], [ 49 ] ]
11,872
int ff_query_formats_all(AVFilterContext *ctx) { return default_query_formats_common(ctx, ff_all_channel_counts); }
false
FFmpeg
7ceb9e6b11824ff18f424a35e41fbddf545d1238
int ff_query_formats_all(AVFilterContext *ctx) { return default_query_formats_common(ctx, ff_all_channel_counts); }
{ "code": [], "line_no": [] }
int FUNC_0(AVFilterContext *VAR_0) { return default_query_formats_common(VAR_0, ff_all_channel_counts); }
[ "int FUNC_0(AVFilterContext *VAR_0)\n{", "return default_query_formats_common(VAR_0, ff_all_channel_counts);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
11,873
static void put_pixels_clamped_c(const int16_t *block, uint8_t *av_restrict pixels, ptrdiff_t line_size) { int i; /* read the pixels */ for (i = 0; i < 8; i++) { pixels[0] = av_clip_uint8(block[0]); pixels[1] = av_clip_uint8(block[1]); pixel...
true
FFmpeg
32baeafeee4f8446c2c3720b9223ad2166ca9d30
static void put_pixels_clamped_c(const int16_t *block, uint8_t *av_restrict pixels, ptrdiff_t line_size) { int i; for (i = 0; i < 8; i++) { pixels[0] = av_clip_uint8(block[0]); pixels[1] = av_clip_uint8(block[1]); pixels[2] = av_clip_uint8(...
{ "code": [ "static void put_pixels_clamped_c(const int16_t *block, uint8_t *av_restrict pixels,", " ptrdiff_t line_size)", " ptrdiff_t line_size)" ], "line_no": [ 1, 3, 3 ] }
static void FUNC_0(const int16_t *VAR_0, uint8_t *VAR_1 pixels, ptrdiff_t line_size) { int VAR_2; for (VAR_2 = 0; VAR_2 < 8; VAR_2++) { pixels[0] = av_clip_uint8(VAR_0[0]); pixels[1] = av_clip_uint8(VAR_0[1]); pixels[2] = av_clip_uint8(VAR_...
[ "static void FUNC_0(const int16_t *VAR_0, uint8_t *VAR_1 pixels,\nptrdiff_t line_size)\n{", "int VAR_2;", "for (VAR_2 = 0; VAR_2 < 8; VAR_2++) {", "pixels[0] = av_clip_uint8(VAR_0[0]);", "pixels[1] = av_clip_uint8(VAR_0[1]);", "pixels[2] = av_clip_uint8(VAR_0[2]);", "pixels[3] = av_clip_uint8(VAR_0[3]);...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
11,874
static void m68k_cpu_class_init(ObjectClass *c, void *data) { M68kCPUClass *mcc = M68K_CPU_CLASS(c); CPUClass *cc = CPU_CLASS(c); DeviceClass *dc = DEVICE_CLASS(c); mcc->parent_realize = dc->realize; dc->realize = m68k_cpu_realizefn; mcc->parent_reset = cc->reset; cc->reset = m68k_cpu_reset;...
true
qemu
4c315c27661502a0813b129e41c0bf640c34a8d6
static void m68k_cpu_class_init(ObjectClass *c, void *data) { M68kCPUClass *mcc = M68K_CPU_CLASS(c); CPUClass *cc = CPU_CLASS(c); DeviceClass *dc = DEVICE_CLASS(c); mcc->parent_realize = dc->realize; dc->realize = m68k_cpu_realizefn; mcc->parent_reset = cc->reset; cc->reset = m68k_cpu_reset;...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { M68kCPUClass *mcc = M68K_CPU_CLASS(VAR_0); CPUClass *cc = CPU_CLASS(VAR_0); DeviceClass *dc = DEVICE_CLASS(VAR_0); mcc->parent_realize = dc->realize; dc->realize = m68k_cpu_realizefn; mcc->parent_reset = cc->reset; cc->reset = m68k_cpu_re...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "M68kCPUClass *mcc = M68K_CPU_CLASS(VAR_0);", "CPUClass *cc = CPU_CLASS(VAR_0);", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "mcc->parent_realize = dc->realize;", "dc->realize = m68k_cpu_realizefn;", "mcc->parent_reset = cc->reset;", "cc->reset ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18, 19 ], [ 20, 21 ], [ 22, ...
11,875
static const uint8_t *read_huffman_tables(FourXContext *f, const uint8_t * const buf){ int frequency[512]; uint8_t flag[512]; int up[512]; uint8_t len_tab[257]; int bits_tab[257]; int start, end; const uint8_t *ptr= buf; int j; memset(frequency, 0, sizeof(frequency)); ...
true
FFmpeg
1b1182ce97db7a97914bb7713eba66fee5d93937
static const uint8_t *read_huffman_tables(FourXContext *f, const uint8_t * const buf){ int frequency[512]; uint8_t flag[512]; int up[512]; uint8_t len_tab[257]; int bits_tab[257]; int start, end; const uint8_t *ptr= buf; int j; memset(frequency, 0, sizeof(frequency)); ...
{ "code": [ " init_vlc(&f->pre_vlc, ACDC_VLC_BITS, 257,", " len_tab , 1, 1,", " bits_tab, 4, 4, 0);" ], "line_no": [ 141, 143, 145 ] }
static const uint8_t *FUNC_0(FourXContext *f, const uint8_t * const buf){ int VAR_0[512]; uint8_t flag[512]; int VAR_1[512]; uint8_t len_tab[257]; int VAR_2[257]; int VAR_3, VAR_4; const uint8_t *VAR_5= buf; int VAR_6; memset(VAR_0, 0, sizeof(VAR_0)); memset(VAR_1, -1...
[ "static const uint8_t *FUNC_0(FourXContext *f, const uint8_t * const buf){", "int VAR_0[512];", "uint8_t flag[512];", "int VAR_1[512];", "uint8_t len_tab[257];", "int VAR_2[257];", "int VAR_3, VAR_4;", "const uint8_t *VAR_5= buf;", "int VAR_6;", "memset(VAR_0, 0, sizeof(VAR_0));", "memset(VAR_1,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
11,876
void sws_rgb2rgb_init(int flags){ #if (defined(HAVE_MMX2) || defined(HAVE_3DNOW) || defined(HAVE_MMX)) && defined(CONFIG_GPL) if(flags & SWS_CPU_CAPS_MMX2) rgb2rgb_init_MMX2(); else if(flags & SWS_CPU_CAPS_3DNOW) rgb2rgb_init_3DNOW(); else if(flags & SWS_CPU_CAPS_MMX) rgb2rgb_init_MMX(); else #endif...
true
FFmpeg
6e42e6c4b410dbef8b593c2d796a5dad95f89ee4
void sws_rgb2rgb_init(int flags){ #if (defined(HAVE_MMX2) || defined(HAVE_3DNOW) || defined(HAVE_MMX)) && defined(CONFIG_GPL) if(flags & SWS_CPU_CAPS_MMX2) rgb2rgb_init_MMX2(); else if(flags & SWS_CPU_CAPS_3DNOW) rgb2rgb_init_3DNOW(); else if(flags & SWS_CPU_CAPS_MMX) rgb2rgb_init_MMX(); else #endif...
{ "code": [ "\tif(flags & SWS_CPU_CAPS_MMX2)", "\t\trgb2rgb_init_MMX2();", "\telse if(flags & SWS_CPU_CAPS_3DNOW)", "\t\trgb2rgb_init_3DNOW();", "\telse if(flags & SWS_CPU_CAPS_MMX)", "\t\trgb2rgb_init_MMX();", "\t\trgb2rgb_init_C();" ], "line_no": [ 5, 7, 9, 11, 13...
void FUNC_0(int VAR_0){ #if (defined(HAVE_MMX2) || defined(HAVE_3DNOW) || defined(HAVE_MMX)) && defined(CONFIG_GPL) if(VAR_0 & SWS_CPU_CAPS_MMX2) rgb2rgb_init_MMX2(); else if(VAR_0 & SWS_CPU_CAPS_3DNOW) rgb2rgb_init_3DNOW(); else if(VAR_0 & SWS_CPU_CAPS_MMX) rgb2rgb_init_MMX(); else #endif rgb2r...
[ "void FUNC_0(int VAR_0){", "#if (defined(HAVE_MMX2) || defined(HAVE_3DNOW) || defined(HAVE_MMX)) && defined(CONFIG_GPL)\nif(VAR_0 & SWS_CPU_CAPS_MMX2)\nrgb2rgb_init_MMX2();", "else if(VAR_0 & SWS_CPU_CAPS_3DNOW)\nrgb2rgb_init_3DNOW();", "else if(VAR_0 & SWS_CPU_CAPS_MMX)\nrgb2rgb_init_MMX();", "else\n#endi...
[ 0, 1, 1, 1, 1, 0 ]
[ [ 1 ], [ 3, 5, 7 ], [ 9, 11 ], [ 13, 15 ], [ 17, 19, 21 ], [ 23 ] ]
11,878
int cpu_exec(CPUState *env1) { #define DECLARE_HOST_REGS 1 #include "hostregs_helper.h" #if defined(TARGET_SPARC) #if defined(reg_REGWPTR) uint32_t *saved_regwptr; #endif #endif int ret, interrupt_request; long (*gen_func)(void); TranslationBlock *tb; uint8_t *tc_ptr; if (cpu_halt...
true
qemu
b5fc09ae52e3d19e01126715c998eb6587795b56
int cpu_exec(CPUState *env1) { #define DECLARE_HOST_REGS 1 #include "hostregs_helper.h" #if defined(TARGET_SPARC) #if defined(reg_REGWPTR) uint32_t *saved_regwptr; #endif #endif int ret, interrupt_request; long (*gen_func)(void); TranslationBlock *tb; uint8_t *tc_ptr; if (cpu_halt...
{ "code": [ " long (*gen_func)(void);", " BREAK_CHAIN;", " BREAK_CHAIN;", " BREAK_CHAIN;", " BREAK_CHAIN;", " BREAK_CHAIN;", " BREAK_CHAIN;", " ...
int FUNC_0(CPUState *VAR_0) { #define DECLARE_HOST_REGS 1 #include "hostregs_helper.h" #if defined(TARGET_SPARC) #if defined(reg_REGWPTR) uint32_t *saved_regwptr; #endif #endif int VAR_1, VAR_2; long (*VAR_3)(void); TranslationBlock *tb; uint8_t *tc_ptr; if (cpu_halted(VAR_0) == E...
[ "int FUNC_0(CPUState *VAR_0)\n{", "#define DECLARE_HOST_REGS 1\n#include \"hostregs_helper.h\"\n#if defined(TARGET_SPARC)\n#if defined(reg_REGWPTR)\nuint32_t *saved_regwptr;", "#endif\n#endif\nint VAR_1, VAR_2;", "long (*VAR_3)(void);", "TranslationBlock *tb;", "uint8_t *tc_ptr;", "if (cpu_halted(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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5, 7, 9, 11, 13 ], [ 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 35 ], [ 41, 43, 45 ], [ 47 ], [ 51 ], [ 53, 57 ], [ 59 ], [ 61 ], [ 63 ...
11,879
static av_always_inline void decode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){ PlaneContext * const p= &s->plane[plane_index]; RangeCoder * const c= &s->c; int x; int run_count=0; int run_mode=0; int run_index= s->run_index; for(x=0; x<w; x++){ ...
true
FFmpeg
f08ed90d9407bd7601130ac30f20651acf250188
static av_always_inline void decode_line(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){ PlaneContext * const p= &s->plane[plane_index]; RangeCoder * const c= &s->c; int x; int run_count=0; int run_mode=0; int run_index= s->run_index; for(x=0; x<w; x++){ ...
{ "code": [], "line_no": [] }
static av_always_inline void FUNC_0(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){ PlaneContext * const p= &s->plane[plane_index]; RangeCoder * const c= &s->c; int VAR_0; int VAR_1=0; int VAR_2=0; int VAR_3= s->VAR_3; for(VAR_0=0; VAR_0<w; VAR_0++){ ...
[ "static av_always_inline void FUNC_0(FFV1Context *s, int w, int_fast16_t *sample[2], int plane_index, int bits){", "PlaneContext * const p= &s->plane[plane_index];", "RangeCoder * const c= &s->c;", "int VAR_0;", "int VAR_1=0;", "int VAR_2=0;", "int VAR_3= s->VAR_3;", "for(VAR_0=0; VAR_0<w; 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 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 40 ], [ 42 ], [ 44 ], [ 46 ], [ 50 ], [...
11,880
static void do_video_out(AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, AVPicture *picture1, int *frame_size) { int n1, n2, nb, i, ret, frame_number, dec_frame_rate; AVPicture *picture, *pi...
false
FFmpeg
cb09b2ed92594d2d627bc609307f0d693204cde0
static void do_video_out(AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, AVPicture *picture1, int *frame_size) { int n1, n2, nb, i, ret, frame_number, dec_frame_rate; AVPicture *picture, *pi...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, AVOutputStream *VAR_1, AVInputStream *VAR_2, AVPicture *VAR_3, int *VAR_4) { int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11; AVPicture *picture, *picture...
[ "static void FUNC_0(AVFormatContext *VAR_0,\nAVOutputStream *VAR_1,\nAVInputStream *VAR_2,\nAVPicture *VAR_3,\nint *VAR_4)\n{", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;", "AVPicture *picture, *picture2, *pict;", "AVPicture picture_tmp1, picture_tmp2;", "UINT8 *video_buffer;", "UINT8 *buf = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 31 ], [ 33 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 51, 53 ], [ 57 ], [ 59 ...
11,881
static void add_codec(FFServerStream *stream, AVCodecContext *av) { AVStream *st; if(stream->nb_streams >= FF_ARRAY_ELEMS(stream->streams)) return; /* compute default parameters */ switch(av->codec_type) { case AVMEDIA_TYPE_AUDIO: if (av->bit_rate == 0) av->b...
false
FFmpeg
ed1f8915daf6b84a940463dfe83c7b970f82383d
static void add_codec(FFServerStream *stream, AVCodecContext *av) { AVStream *st; if(stream->nb_streams >= FF_ARRAY_ELEMS(stream->streams)) return; switch(av->codec_type) { case AVMEDIA_TYPE_AUDIO: if (av->bit_rate == 0) av->bit_rate = 64000; if (av...
{ "code": [], "line_no": [] }
static void FUNC_0(FFServerStream *VAR_0, AVCodecContext *VAR_1) { AVStream *st; if(VAR_0->nb_streams >= FF_ARRAY_ELEMS(VAR_0->streams)) return; switch(VAR_1->codec_type) { case AVMEDIA_TYPE_AUDIO: if (VAR_1->bit_rate == 0) VAR_1->bit_rate = 64000; ...
[ "static void FUNC_0(FFServerStream *VAR_0, AVCodecContext *VAR_1)\n{", "AVStream *st;", "if(VAR_0->nb_streams >= FF_ARRAY_ELEMS(VAR_0->streams))\nreturn;", "switch(VAR_1->codec_type) {", "case AVMEDIA_TYPE_AUDIO:\nif (VAR_1->bit_rate == 0)\nVAR_1->bit_rate = 64000;", "if (VAR_1->sample_rate == 0)\nVAR_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 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 17 ], [ 19, 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], ...
11,884
static av_cold int mpc7_decode_init(AVCodecContext * avctx) { int i, j; MPCContext *c = avctx->priv_data; GetBitContext gb; LOCAL_ALIGNED_16(uint8_t, buf, [16]); static int vlc_initialized = 0; static VLC_TYPE scfi_table[1 << MPC7_SCFI_BITS][2]; static VLC_TYPE dscf_table[1 << MPC7...
false
FFmpeg
5938b4d3983ca39bc37cf70d5920c2ca29ea51cd
static av_cold int mpc7_decode_init(AVCodecContext * avctx) { int i, j; MPCContext *c = avctx->priv_data; GetBitContext gb; LOCAL_ALIGNED_16(uint8_t, buf, [16]); static int vlc_initialized = 0; static VLC_TYPE scfi_table[1 << MPC7_SCFI_BITS][2]; static VLC_TYPE dscf_table[1 << MPC7...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext * avctx) { int VAR_0, VAR_1; MPCContext *c = avctx->priv_data; GetBitContext gb; LOCAL_ALIGNED_16(uint8_t, buf, [16]); static int VAR_2 = 0; static VLC_TYPE VAR_3[1 << MPC7_SCFI_BITS][2]; static VLC_TYPE VAR_4[1 << MPC7_DSCF_BITS][2]; s...
[ "static av_cold int FUNC_0(AVCodecContext * avctx)\n{", "int VAR_0, VAR_1;", "MPCContext *c = avctx->priv_data;", "GetBitContext gb;", "LOCAL_ALIGNED_16(uint8_t, buf, [16]);", "static int VAR_2 = 0;", "static VLC_TYPE VAR_3[1 << MPC7_SCFI_BITS][2];", "static VLC_TYPE VAR_4[1 << MPC7_DSCF_BITS][2];", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
11,886
static int v4l2_set_parameters(AVFormatContext *s1, AVFormatParameters *ap) { struct video_data *s = s1->priv_data; struct v4l2_input input; struct v4l2_standard standard; struct v4l2_streamparm streamparm = { 0 }; struct v4l2_fract *tpf = &streamparm.parm.capture.timeperframe; int i; ...
true
FFmpeg
7a70e01b267b499d92fda68724d311c94cd76b26
static int v4l2_set_parameters(AVFormatContext *s1, AVFormatParameters *ap) { struct video_data *s = s1->priv_data; struct v4l2_input input; struct v4l2_standard standard; struct v4l2_streamparm streamparm = { 0 }; struct v4l2_fract *tpf = &streamparm.parm.capture.timeperframe; int i; ...
{ "code": [ " av_freep(&s->standard);" ], "line_no": [ 131 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { struct video_data *VAR_2 = VAR_0->priv_data; struct v4l2_input VAR_3; struct v4l2_standard VAR_4; struct v4l2_streamparm VAR_5 = { 0 }; struct v4l2_fract *VAR_6 = &VAR_5.parm.capture.timeperframe; int VAR_7; VAR...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)\n{", "struct video_data *VAR_2 = VAR_0->priv_data;", "struct v4l2_input VAR_3;", "struct v4l2_standard VAR_4;", "struct v4l2_streamparm VAR_5 = { 0 };", "struct v4l2_fract *VAR_6 = &VAR_5.parm.capture.timeperframe;", "int VAR_7;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 23, 25, 27 ], [ 29, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 53 ], [ 55,...
11,887
void vnc_tight_clear(VncState *vs) { int i; for (i=0; i<ARRAY_SIZE(vs->tight.stream); i++) { if (vs->tight.stream[i].opaque) { deflateEnd(&vs->tight.stream[i]); } } buffer_free(&vs->tight.tight); buffer_free(&vs->tight.zlib); buffer_free(&vs->tight.gradien...
true
qemu
b5469b1104a4b0c870dd805d9fb9d844b56d987e
void vnc_tight_clear(VncState *vs) { int i; for (i=0; i<ARRAY_SIZE(vs->tight.stream); i++) { if (vs->tight.stream[i].opaque) { deflateEnd(&vs->tight.stream[i]); } } buffer_free(&vs->tight.tight); buffer_free(&vs->tight.zlib); buffer_free(&vs->tight.gradien...
{ "code": [], "line_no": [] }
void FUNC_0(VncState *VAR_0) { int VAR_1; for (VAR_1=0; VAR_1<ARRAY_SIZE(VAR_0->tight.stream); VAR_1++) { if (VAR_0->tight.stream[VAR_1].opaque) { deflateEnd(&VAR_0->tight.stream[VAR_1]); } } buffer_free(&VAR_0->tight.tight); buffer_free(&VAR_0->tight.zlib); ...
[ "void FUNC_0(VncState *VAR_0)\n{", "int VAR_1;", "for (VAR_1=0; VAR_1<ARRAY_SIZE(VAR_0->tight.stream); VAR_1++) {", "if (VAR_0->tight.stream[VAR_1].opaque) {", "deflateEnd(&VAR_0->tight.stream[VAR_1]);", "}", "}", "buffer_free(&VAR_0->tight.tight);", "buffer_free(&VAR_0->tight.zlib);", "buffer_fre...
[ 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 ], [ 33 ] ]
11,888
vcard_emul_replay_insertion_events(void) { VReaderListEntry *current_entry; VReaderListEntry *next_entry = NULL; VReaderList *list = vreader_get_reader_list(); for (current_entry = vreader_list_get_first(list); current_entry; current_entry = next_entry) { VReader *vreader = vreader_l...
true
qemu
124fe7fb1b7a1db8cb2ebb9edae84716ffaf37ce
vcard_emul_replay_insertion_events(void) { VReaderListEntry *current_entry; VReaderListEntry *next_entry = NULL; VReaderList *list = vreader_get_reader_list(); for (current_entry = vreader_list_get_first(list); current_entry; current_entry = next_entry) { VReader *vreader = vreader_l...
{ "code": [], "line_no": [] }
FUNC_0(void) { VReaderListEntry *current_entry; VReaderListEntry *next_entry = NULL; VReaderList *list = vreader_get_reader_list(); for (current_entry = vreader_list_get_first(list); current_entry; current_entry = next_entry) { VReader *vreader = vreader_list_get_reader(current_entry...
[ "FUNC_0(void)\n{", "VReaderListEntry *current_entry;", "VReaderListEntry *next_entry = NULL;", "VReaderList *list = vreader_get_reader_list();", "for (current_entry = vreader_list_get_first(list); current_entry;", "current_entry = next_entry) {", "VReader *vreader = vreader_list_get_reader(current_entry...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ] ]
11,889
static int cmp_intervals(const void *a, const void *b) { const Interval *i1 = a; const Interval *i2 = b; int64_t ts_diff = i1->start_ts - i2->start_ts; int ret; ret = ts_diff > 0 ? 1 : ts_diff < 0 ? -1 : 0; return ret == 0 ? i1->index - i2->index : ret; }
true
FFmpeg
92e483f8ed70d88d4f64337f65bae212502735d4
static int cmp_intervals(const void *a, const void *b) { const Interval *i1 = a; const Interval *i2 = b; int64_t ts_diff = i1->start_ts - i2->start_ts; int ret; ret = ts_diff > 0 ? 1 : ts_diff < 0 ? -1 : 0; return ret == 0 ? i1->index - i2->index : ret; }
{ "code": [ " int64_t ts_diff = i1->start_ts - i2->start_ts;", " int ret;", " ret = ts_diff > 0 ? 1 : ts_diff < 0 ? -1 : 0;", " return ret == 0 ? i1->index - i2->index : ret;" ], "line_no": [ 9, 11, 15, 17 ] }
static int FUNC_0(const void *VAR_0, const void *VAR_1) { const Interval *VAR_2 = VAR_0; const Interval *VAR_3 = VAR_1; int64_t ts_diff = VAR_2->start_ts - VAR_3->start_ts; int VAR_4; VAR_4 = ts_diff > 0 ? 1 : ts_diff < 0 ? -1 : 0; return VAR_4 == 0 ? VAR_2->index - VAR_3->index : VAR_4...
[ "static int FUNC_0(const void *VAR_0, const void *VAR_1)\n{", "const Interval *VAR_2 = VAR_0;", "const Interval *VAR_3 = VAR_1;", "int64_t ts_diff = VAR_2->start_ts - VAR_3->start_ts;", "int VAR_4;", "VAR_4 = ts_diff > 0 ? 1 : ts_diff < 0 ? -1 : 0;", "return VAR_4 == 0 ? VAR_2->index - VAR_3->index : VA...
[ 0, 0, 0, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ] ]
11,890
static char *getstr8(const uint8_t **pp, const uint8_t *p_end) { int len; const uint8_t *p; char *str; p = *pp; len = get8(&p, p_end); if (len < 0) return NULL; if ((p + len) > p_end) return NULL; str = av_malloc(len + 1); if (!str) return NUL...
true
FFmpeg
1b3b018aa4e43d7bf87df5cdf28c69a9ad5a6cbc
static char *getstr8(const uint8_t **pp, const uint8_t *p_end) { int len; const uint8_t *p; char *str; p = *pp; len = get8(&p, p_end); if (len < 0) return NULL; if ((p + len) > p_end) return NULL; str = av_malloc(len + 1); if (!str) return NUL...
{ "code": [ " if ((p + len) > p_end)" ], "line_no": [ 21 ] }
static char *FUNC_0(const uint8_t **VAR_0, const uint8_t *VAR_1) { int VAR_2; const uint8_t *VAR_3; char *VAR_4; VAR_3 = *VAR_0; VAR_2 = get8(&VAR_3, VAR_1); if (VAR_2 < 0) return NULL; if ((VAR_3 + VAR_2) > VAR_1) return NULL; VAR_4 = av_malloc(VAR_2 + 1);...
[ "static char *FUNC_0(const uint8_t **VAR_0, const uint8_t *VAR_1)\n{", "int VAR_2;", "const uint8_t *VAR_3;", "char *VAR_4;", "VAR_3 = *VAR_0;", "VAR_2 = get8(&VAR_3, VAR_1);", "if (VAR_2 < 0)\nreturn NULL;", "if ((VAR_3 + VAR_2) > VAR_1)\nreturn NULL;", "VAR_4 = av_malloc(VAR_2 + 1);", "if (!VA...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
11,891
int monitor_fdset_dup_fd_remove(int dupfd) { return -1; }
true
qemu
b3dd1b8c295636e64ceb14cdc4db6420d7319e38
int monitor_fdset_dup_fd_remove(int dupfd) { return -1; }
{ "code": [ "int monitor_fdset_dup_fd_remove(int dupfd)", " return -1;" ], "line_no": [ 1, 5 ] }
int FUNC_0(int VAR_0) { return -1; }
[ "int FUNC_0(int VAR_0)\n{", "return -1;", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
11,892
int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame) { BufferSourceContext *s = ctx->priv; AVFrame *copy; int ret; if (!frame) { s->eof = 1; return 0; } else if (s->eof) return AVERROR(EINVAL); switch (ctx->outputs[0]->type) { case AVMEDIA_T...
true
FFmpeg
20c86571ccc71412781d4a4813e4693e0c42aec6
int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame) { BufferSourceContext *s = ctx->priv; AVFrame *copy; int ret; if (!frame) { s->eof = 1; return 0; } else if (s->eof) return AVERROR(EINVAL); switch (ctx->outputs[0]->type) { case AVMEDIA_T...
{ "code": [ "int av_buffersrc_add_frame(AVFilterContext *ctx, AVFrame *frame)" ], "line_no": [ 1 ] }
int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1) { BufferSourceContext *s = VAR_0->priv; AVFrame *copy; int VAR_2; if (!VAR_1) { s->eof = 1; return 0; } else if (s->eof) return AVERROR(EINVAL); switch (VAR_0->outputs[0]->type) { case AVMEDIA_TYPE_VIDE...
[ "int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1)\n{", "BufferSourceContext *s = VAR_0->priv;", "AVFrame *copy;", "int VAR_2;", "if (!VAR_1) {", "s->eof = 1;", "return 0;", "} else if (s->eof)", "return AVERROR(EINVAL);", "switch (VAR_0->outputs[0]->type) {", "case AVMEDIA_TYPE_VIDEO:\nCHECK_V...
[ 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, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29, 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 51, 53,...
11,893
static inline void vring_used_flags_unset_bit(VirtQueue *vq, int mask) { VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches); VirtIODevice *vdev = vq->vdev; hwaddr pa = offsetof(VRingUsed, flags); uint16_t flags = virtio_lduw_phys_cached(vq->vdev, &caches->used, pa); virtio_...
true
qemu
e0e2d644096c79a71099b176d08f465f6803a8b1
static inline void vring_used_flags_unset_bit(VirtQueue *vq, int mask) { VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches); VirtIODevice *vdev = vq->vdev; hwaddr pa = offsetof(VRingUsed, flags); uint16_t flags = virtio_lduw_phys_cached(vq->vdev, &caches->used, pa); virtio_...
{ "code": [ " VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);", " VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);", " VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);", " VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq-...
static inline void FUNC_0(VirtQueue *VAR_0, int VAR_1) { VRingMemoryRegionCaches *caches = atomic_rcu_read(&VAR_0->vring.caches); VirtIODevice *vdev = VAR_0->vdev; hwaddr pa = offsetof(VRingUsed, flags); uint16_t flags = virtio_lduw_phys_cached(VAR_0->vdev, &caches->used, pa); virtio_stw_phy...
[ "static inline void FUNC_0(VirtQueue *VAR_0, int VAR_1)\n{", "VRingMemoryRegionCaches *caches = atomic_rcu_read(&VAR_0->vring.caches);", "VirtIODevice *vdev = VAR_0->vdev;", "hwaddr pa = offsetof(VRingUsed, flags);", "uint16_t flags = virtio_lduw_phys_cached(VAR_0->vdev, &caches->used, pa);", "virtio_stw_...
[ 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ] ]
11,894
static int wmavoice_decode_packet(AVCodecContext *ctx, void *data, int *data_size, AVPacket *avpkt) { WMAVoiceContext *s = ctx->priv_data; GetBitContext *gb = &s->gb; int size, res, pos; if (*data_size < 480 * sizeof(float)) { av_log(ctx, AV_LOG_ERROR, ...
false
FFmpeg
813907d42483279e767fc84f2d02aa088197a22d
static int wmavoice_decode_packet(AVCodecContext *ctx, void *data, int *data_size, AVPacket *avpkt) { WMAVoiceContext *s = ctx->priv_data; GetBitContext *gb = &s->gb; int size, res, pos; if (*data_size < 480 * sizeof(float)) { av_log(ctx, AV_LOG_ERROR, ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { WMAVoiceContext *s = VAR_0->priv_data; GetBitContext *gb = &s->gb; int VAR_4, VAR_5, VAR_6; if (*VAR_2 < 480 * sizeof(float)) { av_log(VAR_0, AV_LOG_ERROR, ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "WMAVoiceContext *s = VAR_0->priv_data;", "GetBitContext *gb = &s->gb;", "int VAR_4, VAR_5, VAR_6;", "if (*VAR_2 < 480 * sizeof(float)) {", "av_log(VAR_0, AV_LOG_ERROR,\n\"Output buffer too small (%d given - %zu need...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 59 ], [ 61, 63 ], [ 73 ], [ 75 ...
11,896
static av_cold int flashsv_encode_end(AVCodecContext *avctx) { FlashSVContext *s = avctx->priv_data; deflateEnd(&s->zstream); av_free(s->encbuffer); av_free(s->previous_frame); av_free(s->tmpblock); av_frame_free(&avctx->coded_frame); return 0; }
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int flashsv_encode_end(AVCodecContext *avctx) { FlashSVContext *s = avctx->priv_data; deflateEnd(&s->zstream); av_free(s->encbuffer); av_free(s->previous_frame); av_free(s->tmpblock); av_frame_free(&avctx->coded_frame); return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { FlashSVContext *s = avctx->priv_data; deflateEnd(&s->zstream); av_free(s->encbuffer); av_free(s->previous_frame); av_free(s->tmpblock); av_frame_free(&avctx->coded_frame); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "FlashSVContext *s = avctx->priv_data;", "deflateEnd(&s->zstream);", "av_free(s->encbuffer);", "av_free(s->previous_frame);", "av_free(s->tmpblock);", "av_frame_free(&avctx->coded_frame);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ] ]
11,897
static int pcx_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { PCXContext * const s = avctx->priv_data; AVFrame *picture = data; AVFrame * const p = &s->picture; GetByteContext gb; int compressed, xmin, ymin, xmax, ymax, ret; ...
false
FFmpeg
d24de4596c3f980c9cc1cb5c8706c8411e46275b
static int pcx_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { PCXContext * const s = avctx->priv_data; AVFrame *picture = data; AVFrame * const p = &s->picture; GetByteContext gb; int compressed, xmin, ymin, xmax, ymax, ret; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { PCXContext * const s = VAR_0->priv_data; AVFrame *picture = VAR_1; AVFrame * const p = &s->picture; GetByteContext gb; int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; unsigned i...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "PCXContext * const s = VAR_0->priv_data;", "AVFrame *picture = VAR_1;", "AVFrame * const p = &s->picture;", "GetByteContext gb;", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "unsigned int VAR_10, VAR_11, 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 ], [ 25, 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
11,898
static void av_always_inline filter_mb_edgev( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h) { const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8); const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset; const int alpha = alpha_table[index_a]; const...
false
FFmpeg
a625e13208ad0ebf1554aa73c9bf41452520f176
static void av_always_inline filter_mb_edgev( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h) { const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8); const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset; const int alpha = alpha_table[index_a]; const...
{ "code": [], "line_no": [] }
static void VAR_0 filter_mb_edgev( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h) { const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8); const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset; const int alpha = alpha_table[index_a]; const int beta ...
[ "static void VAR_0 filter_mb_edgev( uint8_t *pix, int stride, int16_t bS[4], unsigned int qp, H264Context *h) {", "const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8);", "const unsigned int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset;", "const int alpha = alpha_table[index_a];", "const int b...
[ 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 ] ]
11,900
int rom_add_file(const char *file, const char *fw_dir, target_phys_addr_t addr, int32_t bootindex) { Rom *rom; int rc, fd = -1; char devpath[100]; rom = g_malloc0(sizeof(*rom)); rom->name = g_strdup(file); rom->path = qemu_find_file(QEMU_FILE_TYPE_BIOS, rom->name); ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
int rom_add_file(const char *file, const char *fw_dir, target_phys_addr_t addr, int32_t bootindex) { Rom *rom; int rc, fd = -1; char devpath[100]; rom = g_malloc0(sizeof(*rom)); rom->name = g_strdup(file); rom->path = qemu_find_file(QEMU_FILE_TYPE_BIOS, rom->name); ...
{ "code": [], "line_no": [] }
int FUNC_0(const char *VAR_0, const char *VAR_1, target_phys_addr_t VAR_2, int32_t VAR_3) { Rom *rom; int VAR_4, VAR_5 = -1; char VAR_6[100]; rom = g_malloc0(sizeof(*rom)); rom->name = g_strdup(VAR_0); rom->path = qemu_find_file(QEMU_FILE_TYPE_BIOS, rom->name); if...
[ "int FUNC_0(const char *VAR_0, const char *VAR_1,\ntarget_phys_addr_t VAR_2, int32_t VAR_3)\n{", "Rom *rom;", "int VAR_4, VAR_5 = -1;", "char VAR_6[100];", "rom = g_malloc0(sizeof(*rom));", "rom->name = g_strdup(VAR_0);", "rom->path = qemu_find_file(QEMU_FILE_TYPE_BIOS, rom->name);", "if (rom->path ==...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
11,901
static int hls_write_header(AVFormatContext *s) { HLSContext *hls = s->priv_data; int ret, i; char *p; const char *pattern = "%d.ts"; const char *pattern_localtime_fmt = "-%s.ts"; const char *vtt_pattern = "%d.vtt"; AVDictionary *options = NULL; int basename_size; int vtt_b...
false
FFmpeg
8fd3e02eee87e0830fa7ab1dbb65160e5be76d20
static int hls_write_header(AVFormatContext *s) { HLSContext *hls = s->priv_data; int ret, i; char *p; const char *pattern = "%d.ts"; const char *pattern_localtime_fmt = "-%s.ts"; const char *vtt_pattern = "%d.vtt"; AVDictionary *options = NULL; int basename_size; int vtt_b...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { HLSContext *hls = VAR_0->priv_data; int VAR_1, VAR_2; char *VAR_3; const char *VAR_4 = "%d.ts"; const char *VAR_5 = "-%VAR_0.ts"; const char *VAR_6 = "%d.vtt"; AVDictionary *options = NULL; int VAR_7; int VAR_8; hls->sequen...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "HLSContext *hls = VAR_0->priv_data;", "int VAR_1, VAR_2;", "char *VAR_3;", "const char *VAR_4 = \"%d.ts\";", "const char *VAR_5 = \"-%VAR_0.ts\";", "const char *VAR_6 = \"%d.vtt\";", "AVDictionary *options = NULL;", "int VAR_7;", "int VAR_8;", "hl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ...
11,902
static int tta_get_unary(GetBitContext *gb) { int ret = 0; // count ones while(get_bits1(gb)) ret++; return ret; }
false
FFmpeg
35f9d8c20a26a7d383d3d36796e64a4b8987d743
static int tta_get_unary(GetBitContext *gb) { int ret = 0; while(get_bits1(gb)) ret++; return ret; }
{ "code": [], "line_no": [] }
static int FUNC_0(GetBitContext *VAR_0) { int VAR_1 = 0; while(get_bits1(VAR_0)) VAR_1++; return VAR_1; }
[ "static int FUNC_0(GetBitContext *VAR_0)\n{", "int VAR_1 = 0;", "while(get_bits1(VAR_0))\nVAR_1++;", "return VAR_1;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11, 13 ], [ 15 ], [ 17 ] ]
11,903
void helper_set_alt_mode (void) { env->saved_mode = env->ps & 0xC; env->ps = (env->ps & ~0xC) | (env->ipr[IPR_ALT_MODE] & 0xC); }
false
qemu
2374e73edafff0586cbfb67c333c5a7588f81fd5
void helper_set_alt_mode (void) { env->saved_mode = env->ps & 0xC; env->ps = (env->ps & ~0xC) | (env->ipr[IPR_ALT_MODE] & 0xC); }
{ "code": [], "line_no": [] }
void FUNC_0 (void) { env->saved_mode = env->ps & 0xC; env->ps = (env->ps & ~0xC) | (env->ipr[IPR_ALT_MODE] & 0xC); }
[ "void FUNC_0 (void)\n{", "env->saved_mode = env->ps & 0xC;", "env->ps = (env->ps & ~0xC) | (env->ipr[IPR_ALT_MODE] & 0xC);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
11,904
setup_sigcontext(struct target_sigcontext *sc, CPUM68KState *env, abi_ulong mask) { int err = 0; __put_user(mask, &sc->sc_mask); __put_user(env->aregs[7], &sc->sc_usp); __put_user(env->dregs[0], &sc->sc_d0); __put_user(env->dregs[1], &sc->sc_d1); __put_user(env->aregs[...
false
qemu
41ecc72ba5932381208e151bf2d2149a0342beff
setup_sigcontext(struct target_sigcontext *sc, CPUM68KState *env, abi_ulong mask) { int err = 0; __put_user(mask, &sc->sc_mask); __put_user(env->aregs[7], &sc->sc_usp); __put_user(env->dregs[0], &sc->sc_d0); __put_user(env->dregs[1], &sc->sc_d1); __put_user(env->aregs[...
{ "code": [], "line_no": [] }
FUNC_0(struct target_sigcontext *VAR_0, CPUM68KState *VAR_1, abi_ulong VAR_2) { int VAR_3 = 0; __put_user(VAR_2, &VAR_0->sc_mask); __put_user(VAR_1->aregs[7], &VAR_0->sc_usp); __put_user(VAR_1->dregs[0], &VAR_0->sc_d0); __put_user(VAR_1->dregs[1], &VAR_0->sc_d1); __put...
[ "FUNC_0(struct target_sigcontext *VAR_0, CPUM68KState *VAR_1,\nabi_ulong VAR_2)\n{", "int VAR_3 = 0;", "__put_user(VAR_2, &VAR_0->sc_mask);", "__put_user(VAR_1->aregs[7], &VAR_0->sc_usp);", "__put_user(VAR_1->dregs[0], &VAR_0->sc_d0);", "__put_user(VAR_1->dregs[1], &VAR_0->sc_d1);", "__put_user(VAR_1->a...
[ 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 ] ]
11,905
static void icount_adjust_rt(void * opaque) { qemu_mod_timer(icount_rt_timer, qemu_get_clock(rt_clock) + 1000); icount_adjust(); }
false
qemu
7bd427d801e1e3293a634d3c83beadaa90ffb911
static void icount_adjust_rt(void * opaque) { qemu_mod_timer(icount_rt_timer, qemu_get_clock(rt_clock) + 1000); icount_adjust(); }
{ "code": [], "line_no": [] }
static void FUNC_0(void * VAR_0) { qemu_mod_timer(icount_rt_timer, qemu_get_clock(rt_clock) + 1000); icount_adjust(); }
[ "static void FUNC_0(void * VAR_0)\n{", "qemu_mod_timer(icount_rt_timer,\nqemu_get_clock(rt_clock) + 1000);", "icount_adjust();", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ] ]
11,906
static void virtio_blk_migration_state_changed(Notifier *notifier, void *data) { VirtIOBlock *s = container_of(notifier, VirtIOBlock, migration_state_notifier); MigrationState *mig = data; Error *err = NULL; if (migration_in_setup(mig)) { if (!s->datapl...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void virtio_blk_migration_state_changed(Notifier *notifier, void *data) { VirtIOBlock *s = container_of(notifier, VirtIOBlock, migration_state_notifier); MigrationState *mig = data; Error *err = NULL; if (migration_in_setup(mig)) { if (!s->datapl...
{ "code": [], "line_no": [] }
static void FUNC_0(Notifier *VAR_0, void *VAR_1) { VirtIOBlock *s = container_of(VAR_0, VirtIOBlock, migration_state_notifier); MigrationState *mig = VAR_1; Error *err = NULL; if (migration_in_setup(mig)) { if (!s->dataplane) { return; ...
[ "static void FUNC_0(Notifier *VAR_0, void *VAR_1)\n{", "VirtIOBlock *s = container_of(VAR_0, VirtIOBlock,\nmigration_state_notifier);", "MigrationState *mig = VAR_1;", "Error *err = NULL;", "if (migration_in_setup(mig)) {", "if (!s->dataplane) {", "return;", "}", "virtio_blk_data_plane_destroy(s->da...
[ 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 ], [ 43 ], [ 45 ...
11,907
CaptureVoiceOut *AUD_add_capture ( struct audsettings *as, struct audio_capture_ops *ops, void *cb_opaque ) { AudioState *s = &glob_audio_state; CaptureVoiceOut *cap; struct capture_callback *cb; if (audio_validate_settings (as)) { dolog ("Invalid settings were passed...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
CaptureVoiceOut *AUD_add_capture ( struct audsettings *as, struct audio_capture_ops *ops, void *cb_opaque ) { AudioState *s = &glob_audio_state; CaptureVoiceOut *cap; struct capture_callback *cb; if (audio_validate_settings (as)) { dolog ("Invalid settings were passed...
{ "code": [], "line_no": [] }
CaptureVoiceOut *FUNC_0 ( struct audsettings *as, struct audio_capture_ops *ops, void *cb_opaque ) { AudioState *s = &glob_audio_state; CaptureVoiceOut *cap; struct capture_callback *VAR_0; if (audio_validate_settings (as)) { dolog ("Invalid settings were passed when ...
[ "CaptureVoiceOut *FUNC_0 (\nstruct audsettings *as,\nstruct audio_capture_ops *ops,\nvoid *cb_opaque\n)\n{", "AudioState *s = &glob_audio_state;", "CaptureVoiceOut *cap;", "struct capture_callback *VAR_0;", "if (audio_validate_settings (as)) {", "dolog (\"Invalid settings were passed when trying to add ca...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [...
11,908
const char *bdrv_get_encrypted_filename(BlockDriverState *bs) { if (bs->backing_hd && bs->backing_hd->encrypted) return bs->backing_file; else if (bs->encrypted) return bs->filename; else return NULL; }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
const char *bdrv_get_encrypted_filename(BlockDriverState *bs) { if (bs->backing_hd && bs->backing_hd->encrypted) return bs->backing_file; else if (bs->encrypted) return bs->filename; else return NULL; }
{ "code": [], "line_no": [] }
const char *FUNC_0(BlockDriverState *VAR_0) { if (VAR_0->backing_hd && VAR_0->backing_hd->encrypted) return VAR_0->backing_file; else if (VAR_0->encrypted) return VAR_0->filename; else return NULL; }
[ "const char *FUNC_0(BlockDriverState *VAR_0)\n{", "if (VAR_0->backing_hd && VAR_0->backing_hd->encrypted)\nreturn VAR_0->backing_file;", "else if (VAR_0->encrypted)\nreturn VAR_0->filename;", "else\nreturn NULL;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13, 15 ], [ 17 ] ]
11,909
static inline void tcg_out_goto(TCGContext *s, tcg_insn_unit *target) { ptrdiff_t offset = target - s->code_ptr; assert(offset == sextract64(offset, 0, 26)); tcg_out_insn(s, 3206, B, offset); }
false
qemu
eabb7b91b36b202b4dac2df2d59d698e3aff197a
static inline void tcg_out_goto(TCGContext *s, tcg_insn_unit *target) { ptrdiff_t offset = target - s->code_ptr; assert(offset == sextract64(offset, 0, 26)); tcg_out_insn(s, 3206, B, offset); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGContext *VAR_0, tcg_insn_unit *VAR_1) { ptrdiff_t offset = VAR_1 - VAR_0->code_ptr; assert(offset == sextract64(offset, 0, 26)); tcg_out_insn(VAR_0, 3206, B, offset); }
[ "static inline void FUNC_0(TCGContext *VAR_0, tcg_insn_unit *VAR_1)\n{", "ptrdiff_t offset = VAR_1 - VAR_0->code_ptr;", "assert(offset == sextract64(offset, 0, 26));", "tcg_out_insn(VAR_0, 3206, B, offset);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
11,910
void qapi_copy_SocketAddress(SocketAddress **p_dest, SocketAddress *src) { QmpOutputVisitor *qov; Visitor *ov, *iv; QObject *obj; *p_dest = NULL; qov = qmp_output_visitor_new(); ov = qmp_output_get_visitor(qov); visit_type_SocketAddress(ov, NULL, &sr...
false
qemu
3b098d56979d2f7fd707c5be85555d114353a28d
void qapi_copy_SocketAddress(SocketAddress **p_dest, SocketAddress *src) { QmpOutputVisitor *qov; Visitor *ov, *iv; QObject *obj; *p_dest = NULL; qov = qmp_output_visitor_new(); ov = qmp_output_get_visitor(qov); visit_type_SocketAddress(ov, NULL, &sr...
{ "code": [], "line_no": [] }
void FUNC_0(SocketAddress **VAR_0, SocketAddress *VAR_1) { QmpOutputVisitor *qov; Visitor *ov, *iv; QObject *obj; *VAR_0 = NULL; qov = qmp_output_visitor_new(); ov = qmp_output_get_visitor(qov); visit_type_SocketAddress(ov, NULL, &VAR_1, &error_abort...
[ "void FUNC_0(SocketAddress **VAR_0,\nSocketAddress *VAR_1)\n{", "QmpOutputVisitor *qov;", "Visitor *ov, *iv;", "QObject *obj;", "*VAR_0 = NULL;", "qov = qmp_output_visitor_new();", "ov = qmp_output_get_visitor(qov);", "visit_type_SocketAddress(ov, NULL, &VAR_1, &error_abort);", "obj = qmp_output_get...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
11,913
static int copy_chapters(InputFile *ifile, OutputFile *ofile, int copy_metadata) { AVFormatContext *is = ifile->ctx; AVFormatContext *os = ofile->ctx; AVChapter **tmp; int i; tmp = av_realloc(os->chapters, sizeof(*os->chapters) * (is->nb_chapters + os->nb_chapters)); if (!tmp) ...
false
FFmpeg
56ee3f9de7b9f6090d599a27d33a392890a2f7b8
static int copy_chapters(InputFile *ifile, OutputFile *ofile, int copy_metadata) { AVFormatContext *is = ifile->ctx; AVFormatContext *os = ofile->ctx; AVChapter **tmp; int i; tmp = av_realloc(os->chapters, sizeof(*os->chapters) * (is->nb_chapters + os->nb_chapters)); if (!tmp) ...
{ "code": [], "line_no": [] }
static int FUNC_0(InputFile *VAR_0, OutputFile *VAR_1, int VAR_2) { AVFormatContext *is = VAR_0->ctx; AVFormatContext *os = VAR_1->ctx; AVChapter **tmp; int VAR_3; tmp = av_realloc(os->chapters, sizeof(*os->chapters) * (is->nb_chapters + os->nb_chapters)); if (!tmp) return AVER...
[ "static int FUNC_0(InputFile *VAR_0, OutputFile *VAR_1, int VAR_2)\n{", "AVFormatContext *is = VAR_0->ctx;", "AVFormatContext *os = VAR_1->ctx;", "AVChapter **tmp;", "int VAR_3;", "tmp = av_realloc(os->chapters, sizeof(*os->chapters) * (is->nb_chapters + os->nb_chapters));", "if (!tmp)\nreturn AVERROR(E...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 41, 43 ], [ 45, 47 ], [ 51 ], [ 53, 55 ], [ 59 ...
11,915
gen_intermediate_code_internal(CPUState * env, TranslationBlock * tb, int search_pc) { DisasContext ctx; target_ulong pc_start; static uint16_t *gen_opc_end; CPUBreakpoint *bp; int i, ii; int num_insns; int max_insns; pc_start = tb->pc; gen...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
gen_intermediate_code_internal(CPUState * env, TranslationBlock * tb, int search_pc) { DisasContext ctx; target_ulong pc_start; static uint16_t *gen_opc_end; CPUBreakpoint *bp; int i, ii; int num_insns; int max_insns; pc_start = tb->pc; gen...
{ "code": [], "line_no": [] }
FUNC_0(CPUState * VAR_0, TranslationBlock * VAR_1, int VAR_2) { DisasContext ctx; target_ulong pc_start; static uint16_t *VAR_3; CPUBreakpoint *bp; int VAR_4, VAR_5; int VAR_6; int VAR_7; pc_start = VAR_1->pc; VAR_3 = gen_opc_buf + OPC_MAX_...
[ "FUNC_0(CPUState * VAR_0, TranslationBlock * VAR_1,\nint VAR_2)\n{", "DisasContext ctx;", "target_ulong pc_start;", "static uint16_t *VAR_3;", "CPUBreakpoint *bp;", "int VAR_4, VAR_5;", "int VAR_6;", "int VAR_7;", "pc_start = VAR_1->pc;", "VAR_3 = gen_opc_buf + OPC_MAX_SIZE;", "ctx.pc = pc_start...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [...
11,916
int cpu_x86_register(X86CPU *cpu, const char *cpu_model) { CPUX86State *env = &cpu->env; x86_def_t def1, *def = &def1; Error *error = NULL; memset(def, 0, sizeof(*def)); if (cpu_x86_find_by_name(def, cpu_model) < 0) return -1; if (def->vendor1) { env->cpuid_vendor1 =...
false
qemu
a9321a4d49d65d29c2926a51aedc5b91a01f3591
int cpu_x86_register(X86CPU *cpu, const char *cpu_model) { CPUX86State *env = &cpu->env; x86_def_t def1, *def = &def1; Error *error = NULL; memset(def, 0, sizeof(*def)); if (cpu_x86_find_by_name(def, cpu_model) < 0) return -1; if (def->vendor1) { env->cpuid_vendor1 =...
{ "code": [], "line_no": [] }
int FUNC_0(X86CPU *VAR_0, const char *VAR_1) { CPUX86State *env = &VAR_0->env; x86_def_t def1, *def = &def1; Error *error = NULL; memset(def, 0, sizeof(*def)); if (cpu_x86_find_by_name(def, VAR_1) < 0) return -1; if (def->vendor1) { env->cpuid_vendor1 = def->vendor1;...
[ "int FUNC_0(X86CPU *VAR_0, const char *VAR_1)\n{", "CPUX86State *env = &VAR_0->env;", "x86_def_t def1, *def = &def1;", "Error *error = NULL;", "memset(def, 0, sizeof(*def));", "if (cpu_x86_find_by_name(def, VAR_1) < 0)\nreturn -1;", "if (def->vendor1) {", "env->cpuid_vendor1 = def->vendor1;", "env->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
11,917
static void init_proc_e500 (CPUPPCState *env, int version) { uint32_t tlbncfg[2]; uint64_t ivor_mask = 0x0000000F0000FFFFULL; uint32_t l1cfg0 = 0x3800 /* 8 ways */ | 0x0020; /* 32 kb */ #if !defined(CONFIG_USER_ONLY) int i; #endif /* Time base */ gen_tbl(env); ...
false
qemu
892c587f22fc97362a595d3c84669a39ce1cd2f5
static void init_proc_e500 (CPUPPCState *env, int version) { uint32_t tlbncfg[2]; uint64_t ivor_mask = 0x0000000F0000FFFFULL; uint32_t l1cfg0 = 0x3800 | 0x0020; #if !defined(CONFIG_USER_ONLY) int i; #endif gen_tbl(env); if (version == fsl_e5...
{ "code": [], "line_no": [] }
static void FUNC_0 (CPUPPCState *VAR_0, int VAR_1) { uint32_t tlbncfg[2]; uint64_t ivor_mask = 0x0000000F0000FFFFULL; uint32_t l1cfg0 = 0x3800 | 0x0020; #if !defined(CONFIG_USER_ONLY) int VAR_2; #endif gen_tbl(VAR_0); if (VAR_1 == fsl_e500mc...
[ "static void FUNC_0 (CPUPPCState *VAR_0, int VAR_1)\n{", "uint32_t tlbncfg[2];", "uint64_t ivor_mask = 0x0000000F0000FFFFULL;", "uint32_t l1cfg0 = 0x3800\n| 0x0020;", "#if !defined(CONFIG_USER_ONLY)\nint VAR_2;", "#endif\ngen_tbl(VAR_0);", "if (VAR_1 == fsl_e500mc) {", "ivor_mask = 0x000003FE0000FFFFU...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ], [ 17, 23 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47, 49, 51 ], [ 55, 57, 59, 61 ], [ 65, 67 ], [ 69 ], [ 71,...
11,918
int rom_copy(uint8_t *dest, target_phys_addr_t addr, size_t size) { target_phys_addr_t end = addr + size; uint8_t *s, *d = dest; size_t l = 0; Rom *rom; QTAILQ_FOREACH(rom, &roms, next) { if (rom->fw_file) { continue; } if (rom->addr + rom->romsize < a...
false
qemu
bdb5ee3064d5ae786b0bcb6cf6ff4e3554a72990
int rom_copy(uint8_t *dest, target_phys_addr_t addr, size_t size) { target_phys_addr_t end = addr + size; uint8_t *s, *d = dest; size_t l = 0; Rom *rom; QTAILQ_FOREACH(rom, &roms, next) { if (rom->fw_file) { continue; } if (rom->addr + rom->romsize < a...
{ "code": [], "line_no": [] }
int FUNC_0(uint8_t *VAR_0, target_phys_addr_t VAR_1, size_t VAR_2) { target_phys_addr_t end = VAR_1 + VAR_2; uint8_t *s, *d = VAR_0; size_t l = 0; Rom *rom; QTAILQ_FOREACH(rom, &roms, next) { if (rom->fw_file) { continue; } if (rom->VAR_1 + rom->romsiz...
[ "int FUNC_0(uint8_t *VAR_0, target_phys_addr_t VAR_1, size_t VAR_2)\n{", "target_phys_addr_t end = VAR_1 + VAR_2;", "uint8_t *s, *d = VAR_0;", "size_t l = 0;", "Rom *rom;", "QTAILQ_FOREACH(rom, &roms, next) {", "if (rom->fw_file) {", "continue;", "}", "if (rom->VAR_1 + rom->romsize < VAR_1)\nconti...
[ 0, 0, 0, 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 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [...
11,920
static int default_qemu_set_fd_handler2(int fd, IOCanReadHandler *fd_read_poll, IOHandler *fd_read, IOHandler *fd_write, void *opaque) { abort(); }...
false
qemu
1f001dc7bc9e435bf231a5b0edcad1c7c2bd6214
static int default_qemu_set_fd_handler2(int fd, IOCanReadHandler *fd_read_poll, IOHandler *fd_read, IOHandler *fd_write, void *opaque) { abort(); }...
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0, IOCanReadHandler *VAR_1, IOHandler *VAR_2, IOHandler *VAR_3, void *VAR_4) { abort(); }
[ "static int FUNC_0(int VAR_0,\nIOCanReadHandler *VAR_1,\nIOHandler *VAR_2,\nIOHandler *VAR_3,\nvoid *VAR_4)\n{", "abort();", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 13 ], [ 15 ], [ 17 ] ]
11,921
struct omap_eac_s *omap_eac_init(struct omap_target_agent_s *ta, qemu_irq irq, qemu_irq *drq, omap_clk fclk, omap_clk iclk) { int iomemtype; struct omap_eac_s *s = (struct omap_eac_s *) qemu_mallocz(sizeof(struct omap_eac_s)); s->irq = irq; s->codec.rxdrq = *drq ++; ...
false
qemu
738012bec4c67e697e766edadab3f522c552a04d
struct omap_eac_s *omap_eac_init(struct omap_target_agent_s *ta, qemu_irq irq, qemu_irq *drq, omap_clk fclk, omap_clk iclk) { int iomemtype; struct omap_eac_s *s = (struct omap_eac_s *) qemu_mallocz(sizeof(struct omap_eac_s)); s->irq = irq; s->codec.rxdrq = *drq ++; ...
{ "code": [], "line_no": [] }
struct omap_eac_s *FUNC_0(struct omap_target_agent_s *VAR_0, qemu_irq VAR_1, qemu_irq *VAR_2, omap_clk VAR_3, omap_clk VAR_4) { int VAR_5; struct omap_eac_s *VAR_6 = (struct omap_eac_s *) qemu_mallocz(sizeof(struct omap_eac_s)); VAR_6->VAR_1 = VAR_1; VAR_6->codec.rxd...
[ "struct omap_eac_s *FUNC_0(struct omap_target_agent_s *VAR_0,\nqemu_irq VAR_1, qemu_irq *VAR_2, omap_clk VAR_3, omap_clk VAR_4)\n{", "int VAR_5;", "struct omap_eac_s *VAR_6 = (struct omap_eac_s *)\nqemu_mallocz(sizeof(struct omap_eac_s));", "VAR_6->VAR_1 = VAR_1;", "VAR_6->codec.rxdrq = *VAR_2 ++;", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 31, 33 ], [ 35 ], [ 37, 41 ], [ 43 ] ]
11,922
static void intel_hda_response(HDACodecDevice *dev, bool solicited, uint32_t response) { HDACodecBus *bus = HDA_BUS(dev->qdev.parent_bus); IntelHDAState *d = container_of(bus, IntelHDAState, codecs); hwaddr addr; uint32_t wp, ex; if (d->ics & ICH6_IRS_BUSY) { dprint(d, 2, "%s: [irr]...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static void intel_hda_response(HDACodecDevice *dev, bool solicited, uint32_t response) { HDACodecBus *bus = HDA_BUS(dev->qdev.parent_bus); IntelHDAState *d = container_of(bus, IntelHDAState, codecs); hwaddr addr; uint32_t wp, ex; if (d->ics & ICH6_IRS_BUSY) { dprint(d, 2, "%s: [irr]...
{ "code": [], "line_no": [] }
static void FUNC_0(HDACodecDevice *VAR_0, bool VAR_1, uint32_t VAR_2) { HDACodecBus *bus = HDA_BUS(VAR_0->qdev.parent_bus); IntelHDAState *d = container_of(bus, IntelHDAState, codecs); hwaddr addr; uint32_t wp, ex; if (d->ics & ICH6_IRS_BUSY) { dprint(d, 2, "%s: [irr] VAR_2 0x%x, ca...
[ "static void FUNC_0(HDACodecDevice *VAR_0, bool VAR_1, uint32_t VAR_2)\n{", "HDACodecBus *bus = HDA_BUS(VAR_0->qdev.parent_bus);", "IntelHDAState *d = container_of(bus, IntelHDAState, codecs);", "hwaddr addr;", "uint32_t wp, ex;", "if (d->ics & ICH6_IRS_BUSY) {", "dprint(d, 2, \"%s: [irr] VAR_2 0x%x, ca...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [...
11,923
static void as_memory_range_add(AddressSpace *as, FlatRange *fr) { ram_addr_t phys_offset, region_offset; memory_region_prepare_ram_addr(fr->mr); phys_offset = fr->mr->ram_addr; region_offset = fr->offset_in_region; /* cpu_register_physical_memory_log() wants region_offset for * mmio...
false
qemu
26a83ad0e793465b74a8b06a65f2f6fdc5615413
static void as_memory_range_add(AddressSpace *as, FlatRange *fr) { ram_addr_t phys_offset, region_offset; memory_region_prepare_ram_addr(fr->mr); phys_offset = fr->mr->ram_addr; region_offset = fr->offset_in_region; if ((phys_offset & ~TARGET_PAGE_MASK) <= IO_MEM_ROM) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(AddressSpace *VAR_0, FlatRange *VAR_1) { ram_addr_t phys_offset, region_offset; memory_region_prepare_ram_addr(VAR_1->mr); phys_offset = VAR_1->mr->ram_addr; region_offset = VAR_1->offset_in_region; if ((phys_offset & ~TARGET_PAGE_MASK) <= IO_MEM_ROM) { ...
[ "static void FUNC_0(AddressSpace *VAR_0, FlatRange *VAR_1)\n{", "ram_addr_t phys_offset, region_offset;", "memory_region_prepare_ram_addr(VAR_1->mr);", "phys_offset = VAR_1->mr->ram_addr;", "region_offset = VAR_1->offset_in_region;", "if ((phys_offset & ~TARGET_PAGE_MASK) <= IO_MEM_ROM) {", "phys_offset...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51, 53, 55, 57 ], [ 59 ] ]
11,924
static int flashsv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { int buf_size = avpkt->size; FlashSVContext *s = avctx->priv_data; int h_blocks, v_blocks, h_part, v_part, i, j, ret; GetBitContext gb; /* no supplementary pi...
false
FFmpeg
50d2a3b5f34e6f99e5ffe17f2be5eb1815555960
static int flashsv_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { int buf_size = avpkt->size; FlashSVContext *s = avctx->priv_data; int h_blocks, v_blocks, h_part, v_part, i, j, ret; GetBitContext gb; if (buf_size == ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { int VAR_4 = VAR_3->VAR_19; FlashSVContext *s = VAR_0->priv_data; int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11; GetBitContext gb; if (VAR_4 == 0) retur...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "int VAR_4 = VAR_3->VAR_19;", "FlashSVContext *s = VAR_0->priv_data;", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;", "GetBitContext gb;", "if (VAR_4 == 0)\nreturn 0;", "if (VAR_4 < 4)\nreturn -1;", "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 ], [ 11 ], [ 13 ], [ 19, 21 ], [ 23, 25 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
11,925
static void t_gen_mulu(TCGv d, TCGv d2, TCGv a, TCGv b) { TCGv t0, t1; t0 = tcg_temp_new(TCG_TYPE_I64); t1 = tcg_temp_new(TCG_TYPE_I64); tcg_gen_extu_i32_i64(t0, a); tcg_gen_extu_i32_i64(t1, b); tcg_gen_mul_i64(t0, t0, t1); tcg_gen_trunc_i64_i32(d, t0); tcg_gen_shri_i64(t0, t0, 32); tcg_gen_tru...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static void t_gen_mulu(TCGv d, TCGv d2, TCGv a, TCGv b) { TCGv t0, t1; t0 = tcg_temp_new(TCG_TYPE_I64); t1 = tcg_temp_new(TCG_TYPE_I64); tcg_gen_extu_i32_i64(t0, a); tcg_gen_extu_i32_i64(t1, b); tcg_gen_mul_i64(t0, t0, t1); tcg_gen_trunc_i64_i32(d, t0); tcg_gen_shri_i64(t0, t0, 32); tcg_gen_tru...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGv VAR_0, TCGv VAR_1, TCGv VAR_2, TCGv VAR_3) { TCGv t0, t1; t0 = tcg_temp_new(TCG_TYPE_I64); t1 = tcg_temp_new(TCG_TYPE_I64); tcg_gen_extu_i32_i64(t0, VAR_2); tcg_gen_extu_i32_i64(t1, VAR_3); tcg_gen_mul_i64(t0, t0, t1); tcg_gen_trunc_i64_i32(VAR_0, t0); tcg_gen_shri_i64(t0,...
[ "static void FUNC_0(TCGv VAR_0, TCGv VAR_1, TCGv VAR_2, TCGv VAR_3)\n{", "TCGv t0, t1;", "t0 = tcg_temp_new(TCG_TYPE_I64);", "t1 = tcg_temp_new(TCG_TYPE_I64);", "tcg_gen_extu_i32_i64(t0, VAR_2);", "tcg_gen_extu_i32_i64(t1, VAR_3);", "tcg_gen_mul_i64(t0, t0, t1);", "tcg_gen_trunc_i64_i32(VAR_0, t0);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ] ]
11,926
static int pte64_check(struct mmu_ctx_hash64 *ctx, target_ulong pte0, target_ulong pte1, int h, int rw, int type) { target_ulong mmask; int access, ret, pp; ret = -1; /* Check validity and table match */ if ((pte0 & HPTE64_V_VALID) && (h == !!(pte0 & HPTE64_V_SECONDAR...
false
qemu
91cda45b69e45a089f9989979a65db3f710c9925
static int pte64_check(struct mmu_ctx_hash64 *ctx, target_ulong pte0, target_ulong pte1, int h, int rw, int type) { target_ulong mmask; int access, ret, pp; ret = -1; if ((pte0 & HPTE64_V_VALID) && (h == !!(pte0 & HPTE64_V_SECONDARY))) { mmask = PT...
{ "code": [], "line_no": [] }
static int FUNC_0(struct mmu_ctx_hash64 *VAR_0, target_ulong VAR_1, target_ulong VAR_2, int VAR_3, int VAR_4, int VAR_5) { target_ulong mmask; int VAR_6, VAR_7, VAR_8; VAR_7 = -1; if ((VAR_1 & HPTE64_V_VALID) && (VAR_3 == !!(VAR_1 & HPTE64_V_SECONDARY))) { ...
[ "static int FUNC_0(struct mmu_ctx_hash64 *VAR_0, target_ulong VAR_1,\ntarget_ulong VAR_2, int VAR_3, int VAR_4, int VAR_5)\n{", "target_ulong mmask;", "int VAR_6, VAR_7, VAR_8;", "VAR_7 = -1;", "if ((VAR_1 & HPTE64_V_VALID) && (VAR_3 == !!(VAR_1 & HPTE64_V_SECONDARY))) {", "mmask = PTE64_CHECK_MASK;", "...
[ 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [...
11,928
static void coroutine_fn nest(void *opaque) { NestData *nd = opaque; nd->n_enter++; if (nd->n_enter < nd->max) { Coroutine *child; child = qemu_coroutine_create(nest); qemu_coroutine_enter(child, nd); } nd->n_return++; }
true
qemu
0b8b8753e4d94901627b3e86431230f2319215c4
static void coroutine_fn nest(void *opaque) { NestData *nd = opaque; nd->n_enter++; if (nd->n_enter < nd->max) { Coroutine *child; child = qemu_coroutine_create(nest); qemu_coroutine_enter(child, nd); } nd->n_return++; }
{ "code": [ " child = qemu_coroutine_create(nest);", " qemu_coroutine_enter(child, nd);" ], "line_no": [ 19, 21 ] }
static void VAR_0 nest(void *opaque) { NestData *nd = opaque; nd->n_enter++; if (nd->n_enter < nd->max) { Coroutine *child; child = qemu_coroutine_create(nest); qemu_coroutine_enter(child, nd); } nd->n_return++; }
[ "static void VAR_0 nest(void *opaque)\n{", "NestData *nd = opaque;", "nd->n_enter++;", "if (nd->n_enter < nd->max) {", "Coroutine *child;", "child = qemu_coroutine_create(nest);", "qemu_coroutine_enter(child, nd);", "}", "nd->n_return++;", "}" ]
[ 0, 0, 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
11,929
static int vp8_lossless_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, uint8_t *data_start, unsigned int data_size, int is_alpha_chunk) { WebPContext *s = avctx->priv_data; int w, h, ret, i; if (!is_alpha_chun...
true
FFmpeg
c089e720c1b753790c746a13053636d7facf6bf0
static int vp8_lossless_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, uint8_t *data_start, unsigned int data_size, int is_alpha_chunk) { WebPContext *s = avctx->priv_data; int w, h, ret, i; if (!is_alpha_chun...
{ "code": [ " int w, h, ret, i;" ], "line_no": [ 11 ] }
static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, int *VAR_2, uint8_t *VAR_3, unsigned int VAR_4, int VAR_5) { WebPContext *s = VAR_0->priv_data; int VAR_6, VAR_7, VAR_8, VAR_9; if (!VAR_5) { s->lossless = 1; ...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1,\nint *VAR_2, uint8_t *VAR_3,\nunsigned int VAR_4, int VAR_5)\n{", "WebPContext *s = VAR_0->priv_data;", "int VAR_6, VAR_7, VAR_8, VAR_9;", "if (!VAR_5) {", "s->lossless = 1;", "VAR_0->pix_fmt = AV_PIX_FMT_ARGB;", "}", "VAR_8 = init_get_bits8(&s...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51, 53 ...
11,931
static int check_bd(VIOsPAPRVLANDevice *dev, vlan_bd_t bd, target_ulong alignment) { if ((VLAN_BD_ADDR(bd) % alignment) || (VLAN_BD_LEN(bd) % alignment)) { return -1; } if (spapr_vio_check_tces(&dev->sdev, VLAN_BD_ADDR(bd), VLAN_BD_L...
true
qemu
ad0ebb91cd8b5fdc4a583b03645677771f420a46
static int check_bd(VIOsPAPRVLANDevice *dev, vlan_bd_t bd, target_ulong alignment) { if ((VLAN_BD_ADDR(bd) % alignment) || (VLAN_BD_LEN(bd) % alignment)) { return -1; } if (spapr_vio_check_tces(&dev->sdev, VLAN_BD_ADDR(bd), VLAN_BD_L...
{ "code": [ " if (spapr_vio_check_tces(&dev->sdev, VLAN_BD_ADDR(bd),", " VLAN_BD_LEN(bd), SPAPR_TCE_RW) != 0) {", " return 0;", " return 0;" ], "line_no": [ 17, 19, 27, 27 ] }
static int FUNC_0(VIOsPAPRVLANDevice *VAR_0, vlan_bd_t VAR_1, target_ulong VAR_2) { if ((VLAN_BD_ADDR(VAR_1) % VAR_2) || (VLAN_BD_LEN(VAR_1) % VAR_2)) { return -1; } if (spapr_vio_check_tces(&VAR_0->sdev, VLAN_BD_ADDR(VAR_1), VLAN_BD...
[ "static int FUNC_0(VIOsPAPRVLANDevice *VAR_0, vlan_bd_t VAR_1,\ntarget_ulong VAR_2)\n{", "if ((VLAN_BD_ADDR(VAR_1) % VAR_2)\n|| (VLAN_BD_LEN(VAR_1) % VAR_2)) {", "return -1;", "}", "if (spapr_vio_check_tces(&VAR_0->sdev, VLAN_BD_ADDR(VAR_1),\nVLAN_BD_LEN(VAR_1), SPAPR_TCE_RW) != 0) {", "return -1;", "}"...
[ 0, 0, 0, 0, 1, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
11,932
int kvm_arm_sync_mpstate_to_qemu(ARMCPU *cpu) { if (cap_has_mp_state) { struct kvm_mp_state mp_state; int ret = kvm_vcpu_ioctl(CPU(cpu), KVM_GET_MP_STATE, &mp_state); if (ret) { fprintf(stderr, "%s: failed to get MP_STATE %d/%s\n", __func__, ret, strerr...
true
qemu
062ba099e01ff1474be98c0a4f3da351efab5d9d
int kvm_arm_sync_mpstate_to_qemu(ARMCPU *cpu) { if (cap_has_mp_state) { struct kvm_mp_state mp_state; int ret = kvm_vcpu_ioctl(CPU(cpu), KVM_GET_MP_STATE, &mp_state); if (ret) { fprintf(stderr, "%s: failed to get MP_STATE %d/%s\n", __func__, ret, strerr...
{ "code": [ " cpu->powered_off = (mp_state.mp_state == KVM_MP_STATE_STOPPED);" ], "line_no": [ 21 ] }
int FUNC_0(ARMCPU *VAR_0) { if (cap_has_mp_state) { struct kvm_mp_state VAR_1; int VAR_2 = kvm_vcpu_ioctl(CPU(VAR_0), KVM_GET_MP_STATE, &VAR_1); if (VAR_2) { fprintf(stderr, "%s: failed to get MP_STATE %d/%s\n", __func__, VAR_2, strerror(-VAR_2)); ...
[ "int FUNC_0(ARMCPU *VAR_0)\n{", "if (cap_has_mp_state) {", "struct kvm_mp_state VAR_1;", "int VAR_2 = kvm_vcpu_ioctl(CPU(VAR_0), KVM_GET_MP_STATE, &VAR_1);", "if (VAR_2) {", "fprintf(stderr, \"%s: failed to get MP_STATE %d/%s\\n\",\n__func__, VAR_2, strerror(-VAR_2));", "abort();", "}", "VAR_0->powe...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
11,934
static int a64_write_packet(struct AVFormatContext *s, AVPacket *pkt) { AVCodecContext *avctx = s->streams[0]->codec; A64MuxerContext *c = s->priv_data; int i, j; int ch_chunksize; int lifetime; int frame_count; int charset_size; int frame_size; int num_frames; /* fe...
true
FFmpeg
8731c86d03d062ad19f098b77ab1f1bc4ad7c406
static int a64_write_packet(struct AVFormatContext *s, AVPacket *pkt) { AVCodecContext *avctx = s->streams[0]->codec; A64MuxerContext *c = s->priv_data; int i, j; int ch_chunksize; int lifetime; int frame_count; int charset_size; int frame_size; int num_frames; ...
{ "code": [ " av_new_packet(&c->prev_pkt, pkt->size);", " memcpy(c->prev_pkt.data, pkt->data, pkt->size);" ], "line_no": [ 125, 127 ] }
static int FUNC_0(struct AVFormatContext *VAR_0, AVPacket *VAR_1) { AVCodecContext *avctx = VAR_0->streams[0]->codec; A64MuxerContext *c = VAR_0->priv_data; int VAR_2, VAR_3; int VAR_4; int VAR_5; int VAR_6; int VAR_7; int VAR_8; int VAR_9; switch (avctx->codec...
[ "static int FUNC_0(struct AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "AVCodecContext *avctx = VAR_0->streams[0]->codec;", "A64MuxerContext *c = VAR_0->priv_data;", "int VAR_2, VAR_3;", "int VAR_4;", "int VAR_5;", "int VAR_6;", "int VAR_7;", "int VAR_8;", "int VAR_9;", "switch (avctx->codec->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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29, 31, 33 ], [ 51 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 67 ], [ 69 ...
11,935
static int decode_pce(AACContext * ac, enum ChannelPosition new_che_pos[4][MAX_ELEM_ID], GetBitContext * gb) { int num_front, num_side, num_back, num_lfe, num_assoc_data, num_cc; skip_bits(gb, 2); // object_type ac->m4ac.sampling_index = get_bits(gb, 4); if(ac->m4ac.sampling_index > 11...
true
FFmpeg
99665a21f4cfe0747740b91d4e5768cffa4fe862
static int decode_pce(AACContext * ac, enum ChannelPosition new_che_pos[4][MAX_ELEM_ID], GetBitContext * gb) { int num_front, num_side, num_back, num_lfe, num_assoc_data, num_cc; skip_bits(gb, 2); ac->m4ac.sampling_index = get_bits(gb, 4); if(ac->m4ac.sampling_index > 11) { a...
{ "code": [ " int num_front, num_side, num_back, num_lfe, num_assoc_data, num_cc;", " ac->m4ac.sampling_index = get_bits(gb, 4);", " if(ac->m4ac.sampling_index > 11) {" ], "line_no": [ 5, 13, 15 ] }
static int FUNC_0(AACContext * VAR_0, enum ChannelPosition VAR_1[4][MAX_ELEM_ID], GetBitContext * VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; skip_bits(VAR_2, 2); VAR_0->m4ac.sampling_index = get_bits(VAR_2, 4); if(VAR_0->m4ac.sampling_index > 11) { av_log(VAR_0->a...
[ "static int FUNC_0(AACContext * VAR_0, enum ChannelPosition VAR_1[4][MAX_ELEM_ID],\nGetBitContext * VAR_2) {", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "skip_bits(VAR_2, 2);", "VAR_0->m4ac.sampling_index = get_bits(VAR_2, 4);", "if(VAR_0->m4ac.sampling_index > 11) {", "av_log(VAR_0->avccontext, AV...
[ 0, 1, 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 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43, 45 ], [ 49, 51 ], ...
11,937
void start_ahci_device(AHCIQState *ahci) { /* Map AHCI's ABAR (BAR5) */ ahci->hba_base = qpci_iomap(ahci->dev, 5, &ahci->barsize); g_assert(ahci->hba_base); /* turns on pci.cmd.iose, pci.cmd.mse and pci.cmd.bme */ qpci_device_enable(ahci->dev); }
true
qemu
b4ba67d9a702507793c2724e56f98e9b0f7be02b
void start_ahci_device(AHCIQState *ahci) { ahci->hba_base = qpci_iomap(ahci->dev, 5, &ahci->barsize); g_assert(ahci->hba_base); qpci_device_enable(ahci->dev); }
{ "code": [ " ahci->hba_base = qpci_iomap(ahci->dev, 5, &ahci->barsize);", " g_assert(ahci->hba_base);" ], "line_no": [ 7, 9 ] }
void FUNC_0(AHCIQState *VAR_0) { VAR_0->hba_base = qpci_iomap(VAR_0->dev, 5, &VAR_0->barsize); g_assert(VAR_0->hba_base); qpci_device_enable(VAR_0->dev); }
[ "void FUNC_0(AHCIQState *VAR_0)\n{", "VAR_0->hba_base = qpci_iomap(VAR_0->dev, 5, &VAR_0->barsize);", "g_assert(VAR_0->hba_base);", "qpci_device_enable(VAR_0->dev);", "}" ]
[ 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ] ]
11,938
void qemu_add_balloon_handler(QEMUBalloonEvent *func, void *opaque) { balloon_event_fn = func; balloon_opaque = opaque; }
true
qemu
30fb2ca603e8b8d0f02630ef18bc0d0637a88ffa
void qemu_add_balloon_handler(QEMUBalloonEvent *func, void *opaque) { balloon_event_fn = func; balloon_opaque = opaque; }
{ "code": [ "void qemu_add_balloon_handler(QEMUBalloonEvent *func, void *opaque)", " balloon_event_fn = func;" ], "line_no": [ 1, 5 ] }
void FUNC_0(QEMUBalloonEvent *VAR_0, void *VAR_1) { balloon_event_fn = VAR_0; balloon_opaque = VAR_1; }
[ "void FUNC_0(QEMUBalloonEvent *VAR_0, void *VAR_1)\n{", "balloon_event_fn = VAR_0;", "balloon_opaque = VAR_1;", "}" ]
[ 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
11,939
void qemu_spice_display_init_common(SimpleSpiceDisplay *ssd) { qemu_mutex_init(&ssd->lock); QTAILQ_INIT(&ssd->updates); ssd->mouse_x = -1; ssd->mouse_y = -1; if (ssd->num_surfaces == 0) { ssd->num_surfaces = 1024; } ssd->bufsize = (16 * 1024 * 1024); ssd->buf = g_malloc...
true
qemu
ab9509cceabef28071e41bdfa073083859c949a7
void qemu_spice_display_init_common(SimpleSpiceDisplay *ssd) { qemu_mutex_init(&ssd->lock); QTAILQ_INIT(&ssd->updates); ssd->mouse_x = -1; ssd->mouse_y = -1; if (ssd->num_surfaces == 0) { ssd->num_surfaces = 1024; } ssd->bufsize = (16 * 1024 * 1024); ssd->buf = g_malloc...
{ "code": [ " ssd->bufsize = (16 * 1024 * 1024);", " ssd->buf = g_malloc(ssd->bufsize);" ], "line_no": [ 19, 21 ] }
void FUNC_0(SimpleSpiceDisplay *VAR_0) { qemu_mutex_init(&VAR_0->lock); QTAILQ_INIT(&VAR_0->updates); VAR_0->mouse_x = -1; VAR_0->mouse_y = -1; if (VAR_0->num_surfaces == 0) { VAR_0->num_surfaces = 1024; } VAR_0->bufsize = (16 * 1024 * 1024); VAR_0->buf = g_malloc(VAR_0...
[ "void FUNC_0(SimpleSpiceDisplay *VAR_0)\n{", "qemu_mutex_init(&VAR_0->lock);", "QTAILQ_INIT(&VAR_0->updates);", "VAR_0->mouse_x = -1;", "VAR_0->mouse_y = -1;", "if (VAR_0->num_surfaces == 0) {", "VAR_0->num_surfaces = 1024;", "}", "VAR_0->bufsize = (16 * 1024 * 1024);", "VAR_0->buf = g_malloc(VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
11,940
static av_cold int sonic_decode_init(AVCodecContext *avctx) { SonicContext *s = avctx->priv_data; GetBitContext gb; int i; s->channels = avctx->channels; s->samplerate = avctx->sample_rate; if (!avctx->extradata) { av_log(avctx, AV_LOG_ERROR, "No mandatory headers presen...
true
FFmpeg
58995f647b5fa2e1efa33ae4f8b8a76a81ec99df
static av_cold int sonic_decode_init(AVCodecContext *avctx) { SonicContext *s = avctx->priv_data; GetBitContext gb; int i; s->channels = avctx->channels; s->samplerate = avctx->sample_rate; if (!avctx->extradata) { av_log(avctx, AV_LOG_ERROR, "No mandatory headers presen...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { SonicContext *s = avctx->priv_data; GetBitContext gb; int VAR_0; s->channels = avctx->channels; s->samplerate = avctx->sample_rate; if (!avctx->extradata) { av_log(avctx, AV_LOG_ERROR, "No mandatory headers present\n"); ...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "SonicContext *s = avctx->priv_data;", "GetBitContext gb;", "int VAR_0;", "s->channels = avctx->channels;", "s->samplerate = avctx->sample_rate;", "if (!avctx->extradata)\n{", "av_log(avctx, AV_LOG_ERROR, \"No mandatory headers present\\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 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ...
11,942
static void init_vlcs(FourXContext *f){ static int done = 0; int i; if (!done) { done = 1; for(i=0; i<4; i++){ init_vlc(&block_type_vlc[i], BLOCK_TYPE_VLC_BITS, 7, &block_type_tab[i][0][1], 2, 1, &block_type_tab[i][0][0], 2, ...
true
FFmpeg
073c2593c9f0aa4445a6fc1b9b24e6e52a8cc2c1
static void init_vlcs(FourXContext *f){ static int done = 0; int i; if (!done) { done = 1; for(i=0; i<4; i++){ init_vlc(&block_type_vlc[i], BLOCK_TYPE_VLC_BITS, 7, &block_type_tab[i][0][1], 2, 1, &block_type_tab[i][0][0], 2, ...
{ "code": [ " static int done = 0;", " if (!done) {", " done = 1;", " for(i=0; i<4; i++){", " init_vlc(&block_type_vlc[i], BLOCK_TYPE_VLC_BITS, 7, ", " &block_type_tab[i][0][1], 2, 1,", " &block_type_tab[i][0][0], 2, 1)...
static void FUNC_0(FourXContext *VAR_0){ static int VAR_1 = 0; int VAR_2; if (!VAR_1) { VAR_1 = 1; for(VAR_2=0; VAR_2<4; VAR_2++){ init_vlc(&block_type_vlc[VAR_2], BLOCK_TYPE_VLC_BITS, 7, &block_type_tab[VAR_2][0][1], 2, 1, &...
[ "static void FUNC_0(FourXContext *VAR_0){", "static int VAR_1 = 0;", "int VAR_2;", "if (!VAR_1) {", "VAR_1 = 1;", "for(VAR_2=0; VAR_2<4; VAR_2++){", "init_vlc(&block_type_vlc[VAR_2], BLOCK_TYPE_VLC_BITS, 7,\n&block_type_tab[VAR_2][0][1], 2, 1,\n&block_type_tab[VAR_2][0][0], 2, 1);", "}", "}", "}" ...
[ 0, 1, 0, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19, 21 ], [ 23 ], [ 25 ], [ 27 ] ]
11,943
static inline int draw_glyph_yuv(AVFilterBufferRef *picref, FT_Bitmap *bitmap, unsigned int x, unsigned int y, unsigned int width, unsigned int height, const uint8_t yuva_color[4], int hsub, int vsub) { int r, c, alpha; unsigned int luma_pos...
true
FFmpeg
db56a7507ee7c1e095d2eef451d5a487f614edff
static inline int draw_glyph_yuv(AVFilterBufferRef *picref, FT_Bitmap *bitmap, unsigned int x, unsigned int y, unsigned int width, unsigned int height, const uint8_t yuva_color[4], int hsub, int vsub) { int r, c, alpha; unsigned int luma_pos...
{ "code": [ "static inline int draw_glyph_yuv(AVFilterBufferRef *picref, FT_Bitmap *bitmap, unsigned int x,", " unsigned int y, unsigned int width, unsigned int height," ], "line_no": [ 1, 3 ] }
static inline int FUNC_0(AVFilterBufferRef *VAR_0, FT_Bitmap *VAR_1, unsigned int VAR_2, unsigned int VAR_3, unsigned int VAR_4, unsigned int VAR_5, const uint8_t VAR_6[4], int VAR_7, int VAR_8) { int VAR_9, VAR_10, VAR_11; unsigned int VAR_...
[ "static inline int FUNC_0(AVFilterBufferRef *VAR_0, FT_Bitmap *VAR_1, unsigned int VAR_2,\nunsigned int VAR_3, unsigned int VAR_4, unsigned int VAR_5,\nconst uint8_t VAR_6[4], int VAR_7, int VAR_8)\n{", "int VAR_9, VAR_10, VAR_11;", "unsigned int VAR_12, VAR_13, VAR_14;", "uint8_t src_val;", "for (VAR_9 = 0...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ] ]
11,944
static void remote_block_to_network(RDMARemoteBlock *rb) { rb->remote_host_addr = htonll(rb->remote_host_addr); rb->offset = htonll(rb->offset); rb->length = htonll(rb->length); rb->remote_rkey = htonl(rb->remote_rkey); }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static void remote_block_to_network(RDMARemoteBlock *rb) { rb->remote_host_addr = htonll(rb->remote_host_addr); rb->offset = htonll(rb->offset); rb->length = htonll(rb->length); rb->remote_rkey = htonl(rb->remote_rkey); }
{ "code": [], "line_no": [] }
static void FUNC_0(RDMARemoteBlock *VAR_0) { VAR_0->remote_host_addr = htonll(VAR_0->remote_host_addr); VAR_0->offset = htonll(VAR_0->offset); VAR_0->length = htonll(VAR_0->length); VAR_0->remote_rkey = htonl(VAR_0->remote_rkey); }
[ "static void FUNC_0(RDMARemoteBlock *VAR_0)\n{", "VAR_0->remote_host_addr = htonll(VAR_0->remote_host_addr);", "VAR_0->offset = htonll(VAR_0->offset);", "VAR_0->length = htonll(VAR_0->length);", "VAR_0->remote_rkey = htonl(VAR_0->remote_rkey);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
11,946
int clp_service_call(S390CPU *cpu, uint8_t r2) { ClpReqHdr *reqh; ClpRspHdr *resh; S390PCIBusDevice *pbdev; uint32_t req_len; uint32_t res_len; uint8_t buffer[4096 * 2]; uint8_t cc = 0; CPUS390XState *env = &cpu->env; int i; cpu_synchronize_state(CPU(cpu)); if...
false
qemu
bf328399da57450feaeaa24c2539a351e41713db
int clp_service_call(S390CPU *cpu, uint8_t r2) { ClpReqHdr *reqh; ClpRspHdr *resh; S390PCIBusDevice *pbdev; uint32_t req_len; uint32_t res_len; uint8_t buffer[4096 * 2]; uint8_t cc = 0; CPUS390XState *env = &cpu->env; int i; cpu_synchronize_state(CPU(cpu)); if...
{ "code": [], "line_no": [] }
int FUNC_0(S390CPU *VAR_0, uint8_t VAR_1) { ClpReqHdr *reqh; ClpRspHdr *resh; S390PCIBusDevice *pbdev; uint32_t req_len; uint32_t res_len; uint8_t buffer[4096 * 2]; uint8_t cc = 0; CPUS390XState *env = &VAR_0->env; int VAR_2; cpu_synchronize_state(CPU(VAR_0)); ...
[ "int FUNC_0(S390CPU *VAR_0, uint8_t VAR_1)\n{", "ClpReqHdr *reqh;", "ClpRspHdr *resh;", "S390PCIBusDevice *pbdev;", "uint32_t req_len;", "uint32_t res_len;", "uint8_t buffer[4096 * 2];", "uint8_t cc = 0;", "CPUS390XState *env = &VAR_0->env;", "int VAR_2;", "cpu_synchronize_state(CPU(VAR_0));", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
11,948
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ADPCMDecodeContext *c = avctx->priv_data; ADPCMChannelStatus *cs; int n, m, channel, i; shor...
false
FFmpeg
f18c873ab5ee3c78d00fdcc2582b39c133faecb4
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ADPCMDecodeContext *c = avctx->priv_data; ADPCMChannelStatus *cs; int n, m, channel, i; shor...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; ADPCMDecodeContext *c = VAR_0->priv_data; ADPCMChannelStatus *cs; int VAR_6, VAR_7, VAR_49, VAR_9; short *VAR_1...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "ADPCMDecodeContext *c = VAR_0->priv_data;", "ADPCMChannelStatus *cs;", "int VAR_6, VAR_7, VAR_49, VAR_9;", "short *VAR_10;", "int16_t **samples...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [...
11,949
static void usbredir_interrupt_packet(void *priv, uint32_t id, struct usb_redir_interrupt_packet_header *interrupt_packet, uint8_t *data, int data_len) { USBRedirDevice *dev = priv; uint8_t ep = interrupt_packet->endpoint; DPRINTF("interrupt-in status %d ep %02X len %d id %u\n", ...
false
qemu
104981d52b63dc3d68f39d4442881c667f44bbb9
static void usbredir_interrupt_packet(void *priv, uint32_t id, struct usb_redir_interrupt_packet_header *interrupt_packet, uint8_t *data, int data_len) { USBRedirDevice *dev = priv; uint8_t ep = interrupt_packet->endpoint; DPRINTF("interrupt-in status %d ep %02X len %d id %u\n", ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, uint32_t VAR_1, struct usb_redir_interrupt_packet_header *VAR_2, uint8_t *VAR_3, int VAR_4) { USBRedirDevice *dev = VAR_0; uint8_t ep = VAR_2->endpoint; DPRINTF("interrupt-in status %d ep %02X VAR_5 %d VAR_1 %u\n", VAR_2->status, ep, VAR_4, VAR_1)...
[ "static void FUNC_0(void *VAR_0, uint32_t VAR_1,\nstruct usb_redir_interrupt_packet_header *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "USBRedirDevice *dev = VAR_0;", "uint8_t ep = VAR_2->endpoint;", "DPRINTF(\"interrupt-in status %d ep %02X VAR_5 %d VAR_1 %u\\n\",\nVAR_2->status, ep, VAR_4, VAR_1);", "if (dev...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53 ], [...