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
17,852
static void implicit_weight_table(H264Context *h){ MpegEncContext * const s = &h->s; int ref0, ref1, i; int cur_poc = s->current_picture_ptr->poc; if( h->ref_count[0] == 1 && h->ref_count[1] == 1 && h->ref_list[0][0].poc + h->ref_list[1][0].poc == 2*cur_poc){ h->use_weight= 0; ...
false
FFmpeg
ce09f9270a8bf43212dad58fcb73fee2900c364f
static void implicit_weight_table(H264Context *h){ MpegEncContext * const s = &h->s; int ref0, ref1, i; int cur_poc = s->current_picture_ptr->poc; if( h->ref_count[0] == 1 && h->ref_count[1] == 1 && h->ref_list[0][0].poc + h->ref_list[1][0].poc == 2*cur_poc){ h->use_weight= 0; ...
{ "code": [], "line_no": [] }
static void FUNC_0(H264Context *VAR_0){ MpegEncContext * const s = &VAR_0->s; int VAR_1, VAR_2, VAR_3; int VAR_4 = s->current_picture_ptr->poc; if( VAR_0->ref_count[0] == 1 && VAR_0->ref_count[1] == 1 && VAR_0->ref_list[0][0].poc + VAR_0->ref_list[1][0].poc == 2*VAR_4){ VAR_0->u...
[ "static void FUNC_0(H264Context *VAR_0){", "MpegEncContext * const s = &VAR_0->s;", "int VAR_1, VAR_2, VAR_3;", "int VAR_4 = s->current_picture_ptr->poc;", "if( VAR_0->ref_count[0] == 1 && VAR_0->ref_count[1] == 1\n&& VAR_0->ref_list[0][0].poc + VAR_0->ref_list[1][0].poc == 2*VAR_4){", "VAR_0->use_weigh...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47...
17,853
static av_cold int ra144_encode_init(AVCodecContext * avctx) { RA144Context *ractx; int ret; if (avctx->channels != 1) { av_log(avctx, AV_LOG_ERROR, "invalid number of channels: %d\n", avctx->channels); return -1; } avctx->frame_size = NBLOCKS * BLOCKSIZE; ...
false
FFmpeg
2df0c32ea12ddfa72ba88309812bfb13b674130f
static av_cold int ra144_encode_init(AVCodecContext * avctx) { RA144Context *ractx; int ret; if (avctx->channels != 1) { av_log(avctx, AV_LOG_ERROR, "invalid number of channels: %d\n", avctx->channels); return -1; } avctx->frame_size = NBLOCKS * BLOCKSIZE; ...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext * avctx) { RA144Context *ractx; int VAR_0; if (avctx->channels != 1) { av_log(avctx, AV_LOG_ERROR, "invalid number of channels: %d\n", avctx->channels); return -1; } avctx->frame_size = NBLOCKS * BLOCKSIZE; avctx...
[ "static av_cold int FUNC_0(AVCodecContext * avctx)\n{", "RA144Context *ractx;", "int VAR_0;", "if (avctx->channels != 1) {", "av_log(avctx, AV_LOG_ERROR, \"invalid number of channels: %d\\n\",\navctx->channels);", "return -1;", "}", "avctx->frame_size = NBLOCKS * BLOCKSIZE;", "avctx->delay = av...
[ 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 ], [ 45 ], [ 49 ], ...
17,854
static int mxf_read_generic_descriptor(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) { MXFDescriptor *descriptor = arg; descriptor->pix_fmt = AV_PIX_FMT_NONE; switch(tag) { case 0x3F01: descriptor->sub_descriptors_count = avio_rb32(pb); if (descriptor...
true
FFmpeg
0d6605c7ef43f97a88950542af09078adef33b6d
static int mxf_read_generic_descriptor(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) { MXFDescriptor *descriptor = arg; descriptor->pix_fmt = AV_PIX_FMT_NONE; switch(tag) { case 0x3F01: descriptor->sub_descriptors_count = avio_rb32(pb); if (descriptor...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0, AVIOContext *VAR_1, int VAR_2, int VAR_3, UID VAR_4, int64_t VAR_5) { MXFDescriptor *descriptor = VAR_0; descriptor->pix_fmt = AV_PIX_FMT_NONE; switch(VAR_2) { case 0x3F01: descriptor->sub_descriptors_count = avio_rb32(VAR_1); if (descriptor->sub_des...
[ "static int FUNC_0(void *VAR_0, AVIOContext *VAR_1, int VAR_2, int VAR_3, UID VAR_4, int64_t VAR_5)\n{", "MXFDescriptor *descriptor = VAR_0;", "descriptor->pix_fmt = AV_PIX_FMT_NONE;", "switch(VAR_2) {", "case 0x3F01:\ndescriptor->sub_descriptors_count = avio_rb32(VAR_1);", "if (descriptor->sub_descriptor...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ...
17,855
int pt_removexattr(FsContext *ctx, const char *path, const char *name) { char *buffer; int ret; buffer = rpath(ctx, path); ret = lremovexattr(path, name); g_free(buffer); return ret; }
true
qemu
72f0d0bf51362011c4d841a89fb8f5cfb16e0bf3
int pt_removexattr(FsContext *ctx, const char *path, const char *name) { char *buffer; int ret; buffer = rpath(ctx, path); ret = lremovexattr(path, name); g_free(buffer); return ret; }
{ "code": [ " char *buffer;", " buffer = rpath(ctx, path);", " g_free(buffer);", " char *buffer;", " buffer = rpath(ctx, path);", " g_free(buffer);", " char *buffer;", " int ret;", " buffer = rpath(ctx, path);", " g_free(buffer);", " return ...
int FUNC_0(FsContext *VAR_0, const char *VAR_1, const char *VAR_2) { char *VAR_3; int VAR_4; VAR_3 = rpath(VAR_0, VAR_1); VAR_4 = lremovexattr(VAR_1, VAR_2); g_free(VAR_3); return VAR_4; }
[ "int FUNC_0(FsContext *VAR_0, const char *VAR_1, const char *VAR_2)\n{", "char *VAR_3;", "int VAR_4;", "VAR_3 = rpath(VAR_0, VAR_1);", "VAR_4 = lremovexattr(VAR_1, VAR_2);", "g_free(VAR_3);", "return VAR_4;", "}" ]
[ 1, 1, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
17,856
int64_t ff_ape_parse_tag(AVFormatContext *s) { AVIOContext *pb = s->pb; int file_size = avio_size(pb); uint32_t val, fields, tag_bytes; uint8_t buf[8]; int64_t tag_start; int i; if (file_size < APE_TAG_FOOTER_BYTES) return 0; avio_seek(pb, file_size - APE_TAG_FOOTER...
true
FFmpeg
b655cfefafd565590bfc5976b9ce8dd141b3c41c
int64_t ff_ape_parse_tag(AVFormatContext *s) { AVIOContext *pb = s->pb; int file_size = avio_size(pb); uint32_t val, fields, tag_bytes; uint8_t buf[8]; int64_t tag_start; int i; if (file_size < APE_TAG_FOOTER_BYTES) return 0; avio_seek(pb, file_size - APE_TAG_FOOTER...
{ "code": [ " tag_start = file_size - tag_bytes - APE_TAG_FOOTER_BYTES;", " if (tag_start < 0) {" ], "line_no": [ 63, 65 ] }
int64_t FUNC_0(AVFormatContext *s) { AVIOContext *pb = s->pb; int VAR_0 = avio_size(pb); uint32_t val, fields, tag_bytes; uint8_t buf[8]; int64_t tag_start; int VAR_1; if (VAR_0 < APE_TAG_FOOTER_BYTES) return 0; avio_seek(pb, VAR_0 - APE_TAG_FOOTER_BYTES, SEEK_SET);...
[ "int64_t FUNC_0(AVFormatContext *s)\n{", "AVIOContext *pb = s->pb;", "int VAR_0 = avio_size(pb);", "uint32_t val, fields, tag_bytes;", "uint8_t buf[8];", "int64_t tag_start;", "int VAR_1;", "if (VAR_0 < APE_TAG_FOOTER_BYTES)\nreturn 0;", "avio_seek(pb, VAR_0 - APE_TAG_FOOTER_BYTES, SEEK_SET);", "a...
[ 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, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [...
17,857
static void* attribute_align_arg worker(void *v) { ThreadContext *c = v; int our_job = c->nb_jobs; int nb_threads = c->nb_threads; unsigned int last_execute = 0; int self_id; pthread_mutex_lock(&c->current_job_lock); self_id = c->current_job++; for (;;) { while...
true
FFmpeg
473f0f75a16b4d37bdaa943f75e4ae249212c1ba
static void* attribute_align_arg worker(void *v) { ThreadContext *c = v; int our_job = c->nb_jobs; int nb_threads = c->nb_threads; unsigned int last_execute = 0; int self_id; pthread_mutex_lock(&c->current_job_lock); self_id = c->current_job++; for (;;) { while...
{ "code": [ " int self_id;", " c->rets[our_job % c->nb_rets] = c->func(c->ctx, c->arg, our_job, c->nb_jobs);" ], "line_no": [ 13, 55 ] }
static void* VAR_0 worker(void *v) { ThreadContext *c = v; int our_job = c->nb_jobs; int nb_threads = c->nb_threads; unsigned int last_execute = 0; int self_id; pthread_mutex_lock(&c->current_job_lock); self_id = c->current_job++; for (;;) { while (our_job >= c...
[ "static void* VAR_0 worker(void *v)\n{", "ThreadContext *c = v;", "int our_job = c->nb_jobs;", "int nb_threads = c->nb_threads;", "unsigned int last_execute = 0;", "int self_id;", "pthread_mutex_lock(&c->current_job_lock);", "self_id = c->current_job++;", "for (;;) {", "while (our_job >= c-...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
17,859
static void pc87312_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = pc87312_realize; dc->reset = pc87312_reset; dc->vmsd = &vmstate_pc87312; dc->props = pc87312_properties; }
true
qemu
35deebb2327227d8c5f4816476befb06f6329de6
static void pc87312_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->realize = pc87312_realize; dc->reset = pc87312_reset; dc->vmsd = &vmstate_pc87312; dc->props = pc87312_properties; }
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->realize = pc87312_realize; dc->reset = pc87312_reset; dc->vmsd = &vmstate_pc87312; dc->props = pc87312_properties; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->realize = pc87312_realize;", "dc->reset = pc87312_reset;", "dc->vmsd = &vmstate_pc87312;", "dc->props = pc87312_properties;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ] ]
17,860
static int mkv_field_order(MatroskaDemuxContext *matroska, int64_t field_order) { int major, minor, micro, bttb = 0; /* workaround a bug in our Matroska muxer, introduced in version 57.36 alongside * this function, and fixed in 57.52 */ if (sscanf(matroska->muxingapp, "Lavf%d.%d.%d", &major, &mi...
true
FFmpeg
eb751f06db9f627c8b5c63d08836a39f7572bf56
static int mkv_field_order(MatroskaDemuxContext *matroska, int64_t field_order) { int major, minor, micro, bttb = 0; if (sscanf(matroska->muxingapp, "Lavf%d.%d.%d", &major, &minor, &micro) == 3) bttb = (major == 57 && minor >= 36 && minor <= 51 && micro >= 100); switch (field_order)...
{ "code": [ " if (sscanf(matroska->muxingapp, \"Lavf%d.%d.%d\", &major, &minor, &micro) == 3)" ], "line_no": [ 13 ] }
static int FUNC_0(MatroskaDemuxContext *VAR_0, int64_t VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5 = 0; if (sscanf(VAR_0->muxingapp, "Lavf%d.%d.%d", &VAR_2, &VAR_3, &VAR_4) == 3) VAR_5 = (VAR_2 == 57 && VAR_3 >= 36 && VAR_3 <= 51 && VAR_4 >= 100); switch (VAR_1) { case MATROSKA_VID...
[ "static int FUNC_0(MatroskaDemuxContext *VAR_0, int64_t VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5 = 0;", "if (sscanf(VAR_0->muxingapp, \"Lavf%d.%d.%d\", &VAR_2, &VAR_3, &VAR_4) == 3)\nVAR_5 = (VAR_2 == 57 && VAR_3 >= 36 && VAR_3 <= 51 && VAR_4 >= 100);", "switch (VAR_1) {", "case MATROSKA_VIDEO_FIELDORDER...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 13, 15 ], [ 19 ], [ 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 33, 35 ], [ 37, 39 ], [ 41, 43 ], [ 45, 47 ], [ 49 ], [ 51 ] ]
17,861
av_cold void ff_fft_init_arm(FFTContext *s) { int cpu_flags = av_get_cpu_flags(); if (have_vfp(cpu_flags) && !have_vfpv3(cpu_flags)) { s->fft_calc = ff_fft_calc_vfp; #if CONFIG_MDCT s->imdct_half = ff_imdct_half_vfp; #endif } if (have_neon(cpu_flags)) { s->fft...
true
FFmpeg
e2710e790c09e49e86baa58c6063af0097cc8cb0
av_cold void ff_fft_init_arm(FFTContext *s) { int cpu_flags = av_get_cpu_flags(); if (have_vfp(cpu_flags) && !have_vfpv3(cpu_flags)) { s->fft_calc = ff_fft_calc_vfp; #if CONFIG_MDCT s->imdct_half = ff_imdct_half_vfp; #endif } if (have_neon(cpu_flags)) { s->fft...
{ "code": [ " if (have_vfp(cpu_flags) && !have_vfpv3(cpu_flags)) {", " if (have_vfp(cpu_flags) && !have_vfpv3(cpu_flags)) {" ], "line_no": [ 9, 9 ] }
av_cold void FUNC_0(FFTContext *s) { int VAR_0 = av_get_cpu_flags(); if (have_vfp(VAR_0) && !have_vfpv3(VAR_0)) { s->fft_calc = ff_fft_calc_vfp; #if CONFIG_MDCT s->imdct_half = ff_imdct_half_vfp; #endif } if (have_neon(VAR_0)) { s->fft_permute = ff_fft_permut...
[ "av_cold void FUNC_0(FFTContext *s)\n{", "int VAR_0 = av_get_cpu_flags();", "if (have_vfp(VAR_0) && !have_vfpv3(VAR_0)) {", "s->fft_calc = ff_fft_calc_vfp;", "#if CONFIG_MDCT\ns->imdct_half = ff_imdct_half_vfp;", "#endif\n}", "if (have_neon(VAR_0)) {", "s->fft_permute = ff_fft_permute_neon;", ...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ] ]
17,862
unsigned long find_next_bit(const unsigned long *addr, unsigned long size, unsigned long offset) { const unsigned long *p = addr + BITOP_WORD(offset); unsigned long result = offset & ~(BITS_PER_LONG-1); unsigned long tmp; if (offset >= size) { return size; } size -= res...
true
qemu
fbeadf50f2f965741def823036b086bbc2999b1f
unsigned long find_next_bit(const unsigned long *addr, unsigned long size, unsigned long offset) { const unsigned long *p = addr + BITOP_WORD(offset); unsigned long result = offset & ~(BITS_PER_LONG-1); unsigned long tmp; if (offset >= size) { return size; } size -= res...
{ "code": [ " return result + bitops_ffsl(tmp);" ], "line_no": [ 85 ] }
unsigned long FUNC_0(const unsigned long *VAR_0, unsigned long VAR_1, unsigned long VAR_2) { const unsigned long *VAR_3 = VAR_0 + BITOP_WORD(VAR_2); unsigned long VAR_4 = VAR_2 & ~(BITS_PER_LONG-1); unsigned long VAR_5; if (VAR_2 >= VAR_1) { return VAR_1; } VAR_1 -= VAR...
[ "unsigned long FUNC_0(const unsigned long *VAR_0, unsigned long VAR_1,\nunsigned long VAR_2)\n{", "const unsigned long *VAR_3 = VAR_0 + BITOP_WORD(VAR_2);", "unsigned long VAR_4 = VAR_2 & ~(BITS_PER_LONG-1);", "unsigned long VAR_5;", "if (VAR_2 >= VAR_1) {", "return VAR_1;", "}", "VAR_1 -= VAR_4;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
17,863
void migration_set_outgoing_channel(MigrationState *s, QIOChannel *ioc) { QEMUFile *f = qemu_fopen_channel_output(ioc); s->to_dst_file = f; migrate_fd_connect(s); }
true
qemu
e122636562218b3d442cd2cd18fbc188dd9ce709
void migration_set_outgoing_channel(MigrationState *s, QIOChannel *ioc) { QEMUFile *f = qemu_fopen_channel_output(ioc); s->to_dst_file = f; migrate_fd_connect(s); }
{ "code": [ " QIOChannel *ioc)", " QEMUFile *f = qemu_fopen_channel_output(ioc);", " s->to_dst_file = f;", " migrate_fd_connect(s);" ], "line_no": [ 3, 7, 11, 15 ] }
void FUNC_0(MigrationState *VAR_0, QIOChannel *VAR_1) { QEMUFile *f = qemu_fopen_channel_output(VAR_1); VAR_0->to_dst_file = f; migrate_fd_connect(VAR_0); }
[ "void FUNC_0(MigrationState *VAR_0,\nQIOChannel *VAR_1)\n{", "QEMUFile *f = qemu_fopen_channel_output(VAR_1);", "VAR_0->to_dst_file = f;", "migrate_fd_connect(VAR_0);", "}" ]
[ 1, 1, 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ] ]
17,864
static void qemu_wait_io_event_common(CPUState *cpu) { if (cpu->stop) { cpu->stop = false; cpu->stopped = true; qemu_cond_broadcast(&qemu_pause_cond); } process_queued_cpu_work(cpu); cpu->thread_kicked = false; }
true
qemu
372579427a5040a26dfee78464b50e2bdf27ef26
static void qemu_wait_io_event_common(CPUState *cpu) { if (cpu->stop) { cpu->stop = false; cpu->stopped = true; qemu_cond_broadcast(&qemu_pause_cond); } process_queued_cpu_work(cpu); cpu->thread_kicked = false; }
{ "code": [ " cpu->thread_kicked = false;" ], "line_no": [ 17 ] }
static void FUNC_0(CPUState *VAR_0) { if (VAR_0->stop) { VAR_0->stop = false; VAR_0->stopped = true; qemu_cond_broadcast(&qemu_pause_cond); } process_queued_cpu_work(VAR_0); VAR_0->thread_kicked = false; }
[ "static void FUNC_0(CPUState *VAR_0)\n{", "if (VAR_0->stop) {", "VAR_0->stop = false;", "VAR_0->stopped = true;", "qemu_cond_broadcast(&qemu_pause_cond);", "}", "process_queued_cpu_work(VAR_0);", "VAR_0->thread_kicked = false;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
17,865
static void ahci_test_identify(AHCIQState *ahci) { uint16_t buff[256]; unsigned px; int rc; uint16_t sect_size; const size_t buffsize = 512; g_assert(ahci != NULL); /** * This serves as a bit of a tutorial on AHCI device programming: * * (1) Create a data buffer for the IDENTI...
true
qemu
122482a398db9f02287efce9eec26e08dac82bcd
static void ahci_test_identify(AHCIQState *ahci) { uint16_t buff[256]; unsigned px; int rc; uint16_t sect_size; const size_t buffsize = 512; g_assert(ahci != NULL); px = ahci_port_select(ahci); g_test_message("Selected port %u for test", px); ahci_po...
{ "code": [], "line_no": [] }
static void FUNC_0(AHCIQState *VAR_0) { uint16_t buff[256]; unsigned VAR_1; int VAR_2; uint16_t sect_size; const size_t VAR_3 = 512; g_assert(VAR_0 != NULL); VAR_1 = ahci_port_select(VAR_0); g_test_message("Selected port %u for test", VAR_1); ahci_po...
[ "static void FUNC_0(AHCIQState *VAR_0)\n{", "uint16_t buff[256];", "unsigned VAR_1;", "int VAR_2;", "uint16_t sect_size;", "const size_t VAR_3 = 512;", "g_assert(VAR_0 != NULL);", "VAR_1 = ahci_port_select(VAR_0);", "g_test_message(\"Selected port %u for test\", VAR_1);", "ahci_port_clear(VAR_0, V...
[ 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 ], [ 30 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 42 ], [ 43 ], [ 44 ], [ 45 ], [ 46 ], [ 47 ] ]
17,867
static void rc4030_realize(DeviceState *dev, Error **errp) { rc4030State *s = RC4030(dev); Object *o = OBJECT(dev); int i; s->periodic_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, rc4030_periodic_timer, s); memory_region_init_io(&s->iomem_chipset, NULL, &r...
true
qemu
c627e7526a902dd5bb1907dbbd5cf961679dfa68
static void rc4030_realize(DeviceState *dev, Error **errp) { rc4030State *s = RC4030(dev); Object *o = OBJECT(dev); int i; s->periodic_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, rc4030_periodic_timer, s); memory_region_init_io(&s->iomem_chipset, NULL, &r...
{ "code": [ " int i;", " memory_region_init_rom_device(&s->dma_tt, o,", " &rc4030_dma_tt_ops, s, \"dma-table\",", " MAX_TL_ENTRIES * sizeof(dma_pagetable_entry),", " NULL);", " memory_re...
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { rc4030State *s = RC4030(VAR_0); Object *o = OBJECT(VAR_0); int VAR_2; s->periodic_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, rc4030_periodic_timer, s); memory_region_init_io(&s->iomem_chipset, NULL,...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "rc4030State *s = RC4030(VAR_0);", "Object *o = OBJECT(VAR_0);", "int VAR_2;", "s->periodic_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL,\nrc4030_periodic_timer, s);", "memory_region_init_io(&s->iomem_chipset, NULL, &rc4030_ops, s,\n\"rc4030.chipset\"...
[ 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19, 21 ], [ 23, 25 ], [ 29, 31, 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 55 ...
17,868
static int fourxm_probe(AVProbeData *p) { if ((AV_RL32(&p->buf[0]) != RIFF_TAG) || (AV_RL32(&p->buf[8]) != _4XMV_TAG)) return 0; return AVPROBE_SCORE_MAX; }
true
FFmpeg
c54286ab08e0c55dba72e4e9718e81b416e585d0
static int fourxm_probe(AVProbeData *p) { if ((AV_RL32(&p->buf[0]) != RIFF_TAG) || (AV_RL32(&p->buf[8]) != _4XMV_TAG)) return 0; return AVPROBE_SCORE_MAX; }
{ "code": [ " (AV_RL32(&p->buf[8]) != _4XMV_TAG))" ], "line_no": [ 7 ] }
static int FUNC_0(AVProbeData *VAR_0) { if ((AV_RL32(&VAR_0->buf[0]) != RIFF_TAG) || (AV_RL32(&VAR_0->buf[8]) != _4XMV_TAG)) return 0; return AVPROBE_SCORE_MAX; }
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "if ((AV_RL32(&VAR_0->buf[0]) != RIFF_TAG) ||\n(AV_RL32(&VAR_0->buf[8]) != _4XMV_TAG))\nreturn 0;", "return AVPROBE_SCORE_MAX;", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 13 ], [ 15 ] ]
17,869
void monitor_disas(Monitor *mon, CPUState *cpu, target_ulong pc, int nb_insn, int is_physical) { CPUClass *cc = CPU_GET_CLASS(cpu); int count, i; CPUDebug s; INIT_DISASSEMBLE_INFO(s.info, (FILE *)mon, monitor_fprintf); s.cpu = cpu; monitor_disas_is_physical = is_ph...
true
qemu
b8d8720892f7912e8a2621b30ebac0e9a48e89e3
void monitor_disas(Monitor *mon, CPUState *cpu, target_ulong pc, int nb_insn, int is_physical) { CPUClass *cc = CPU_GET_CLASS(cpu); int count, i; CPUDebug s; INIT_DISASSEMBLE_INFO(s.info, (FILE *)mon, monitor_fprintf); s.cpu = cpu; monitor_disas_is_physical = is_ph...
{ "code": [ " monitor_disas_is_physical = is_physical;", " s.info.read_memory_func = monitor_read_memory;" ], "line_no": [ 21, 23 ] }
void FUNC_0(Monitor *VAR_0, CPUState *VAR_1, target_ulong VAR_2, int VAR_3, int VAR_4) { CPUClass *cc = CPU_GET_CLASS(VAR_1); int VAR_5, VAR_6; CPUDebug s; INIT_DISASSEMBLE_INFO(s.info, (FILE *)VAR_0, monitor_fprintf); s.VAR_1 = VAR_1; monitor_disas_is_physical = V...
[ "void FUNC_0(Monitor *VAR_0, CPUState *VAR_1,\ntarget_ulong VAR_2, int VAR_3, int VAR_4)\n{", "CPUClass *cc = CPU_GET_CLASS(VAR_1);", "int VAR_5, VAR_6;", "CPUDebug s;", "INIT_DISASSEMBLE_INFO(s.info, (FILE *)VAR_0, monitor_fprintf);", "s.VAR_1 = VAR_1;", "monitor_disas_is_physical = VAR_4;", "s.info....
[ 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39, 41 ], [ 43, 47 ], [ 49 ], [ 51 ], [ 55 ...
17,870
static struct omap_pwl_s *omap_pwl_init(MemoryRegion *system_memory, hwaddr base, omap_clk clk) { struct omap_pwl_s *s = g_malloc0(sizeof(*s)); omap_pwl_reset(s); memory_region_init_io(&s->iomem, NULL, &omap_pwl_ops, s...
true
qemu
f3c7d0389fe8a2792fd4c1cf151b885de03c8f62
static struct omap_pwl_s *omap_pwl_init(MemoryRegion *system_memory, hwaddr base, omap_clk clk) { struct omap_pwl_s *s = g_malloc0(sizeof(*s)); omap_pwl_reset(s); memory_region_init_io(&s->iomem, NULL, &omap_pwl_ops, s...
{ "code": [ " omap_clk_adduser(clk, qemu_allocate_irqs(omap_pwl_clk_update, s, 1)[0]);" ], "line_no": [ 25 ] }
static struct omap_pwl_s *FUNC_0(MemoryRegion *VAR_0, hwaddr VAR_1, omap_clk VAR_2) { struct omap_pwl_s *VAR_3 = g_malloc0(sizeof(*VAR_3)); omap_pwl_reset(VAR_3); memory_region_init_io(&VAR_3->iomem, NULL, &omap_pwl_op...
[ "static struct omap_pwl_s *FUNC_0(MemoryRegion *VAR_0,\nhwaddr VAR_1,\nomap_clk VAR_2)\n{", "struct omap_pwl_s *VAR_3 = g_malloc0(sizeof(*VAR_3));", "omap_pwl_reset(VAR_3);", "memory_region_init_io(&VAR_3->iomem, NULL, &omap_pwl_ops, VAR_3,\n\"omap-pwl\", 0x800);", "memory_region_add_subregion(VAR_0, VAR_1,...
[ 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ] ]
17,872
static int amr_nb_decode_frame(AVCodecContext * avctx, void *data, int *data_size, uint8_t * buf, int buf_size) { AMRContext *s = avctx->priv_data; uint8_t*amrData=buf; int offset=0; UWord8 toc, q, ft; Word16 serial[SERIAL_FRAMESIZE]; /* coded bits */ Word16 *s...
false
FFmpeg
636b69c5a4445a28d509e803ff528c753047ef9d
static int amr_nb_decode_frame(AVCodecContext * avctx, void *data, int *data_size, uint8_t * buf, int buf_size) { AMRContext *s = avctx->priv_data; uint8_t*amrData=buf; int offset=0; UWord8 toc, q, ft; Word16 serial[SERIAL_FRAMESIZE]; Word16 *synth; UWord...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1, int *VAR_2, uint8_t * VAR_3, int VAR_4) { AMRContext *s = VAR_0->priv_data; uint8_t*amrData=VAR_3; int VAR_5=0; UWord8 toc, q, ft; Word16 serial[SERIAL_FRAMESIZE]; Word16 *synth; UWord8 *packed_bits; ...
[ "static int FUNC_0(AVCodecContext * VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t * VAR_3, int VAR_4)\n{", "AMRContext *s = VAR_0->priv_data;", "uint8_t*amrData=VAR_3;", "int VAR_5=0;", "UWord8 toc, q, ft;", "Word16 serial[SERIAL_FRAMESIZE];", "Word16 *synth;", "UWord8 *packed_bits;", "static Word16 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 33 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 55 ], [ 59 ], [ 63 ], [ 69 ...
17,873
static int mov_write_stbl_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track) { int64_t pos = avio_tell(pb); int ret; avio_wb32(pb, 0); /* size */ ffio_wfourcc(pb, "stbl"); mov_write_stsd_tag(s, pb, mov, track); mov_write_stts_tag(pb, track); if ((track->p...
false
FFmpeg
15bd309af8302661838150de1905acc4df386d19
static int mov_write_stbl_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track) { int64_t pos = avio_tell(pb); int ret; avio_wb32(pb, 0); ffio_wfourcc(pb, "stbl"); mov_write_stsd_tag(s, pb, mov, track); mov_write_stts_tag(pb, track); if ((track->par->codec_...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1, MOVMuxContext *VAR_2, MOVTrack *VAR_3) { int64_t pos = avio_tell(VAR_1); int VAR_4; avio_wb32(VAR_1, 0); ffio_wfourcc(VAR_1, "stbl"); mov_write_stsd_tag(VAR_0, VAR_1, VAR_2, VAR_3); mov_write_stts_tag(VAR_1, VAR_3); if ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1, MOVMuxContext *VAR_2, MOVTrack *VAR_3)\n{", "int64_t pos = avio_tell(VAR_1);", "int VAR_4;", "avio_wb32(VAR_1, 0);", "ffio_wfourcc(VAR_1, \"stbl\");", "mov_write_stsd_tag(VAR_0, VAR_1, VAR_2, VAR_3);", "mov_write_stts_tag(VAR_1, VAR_3);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21, 23, 25 ], [ 27, 29 ], [ 31, 33 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51...
17,874
static av_cold void h264dsp_init_neon(H264DSPContext *c, const int bit_depth, const int chroma_format_idc) { if (bit_depth == 8) { c->h264_v_loop_filter_luma = ff_h264_v_loop_filter_luma_neon; c->h264_h_loop_filter_luma = ff_h264_h_loop_filter_luma_neon; c...
true
FFmpeg
a03a642d5ceb5f2f7c6ebbf56ff365dfbcdb65eb
static av_cold void h264dsp_init_neon(H264DSPContext *c, const int bit_depth, const int chroma_format_idc) { if (bit_depth == 8) { c->h264_v_loop_filter_luma = ff_h264_v_loop_filter_luma_neon; c->h264_h_loop_filter_luma = ff_h264_h_loop_filter_luma_neon; c...
{ "code": [ " if (chroma_format_idc == 1)" ], "line_no": [ 43 ] }
static av_cold void FUNC_0(H264DSPContext *c, const int bit_depth, const int chroma_format_idc) { if (bit_depth == 8) { c->h264_v_loop_filter_luma = ff_h264_v_loop_filter_luma_neon; c->h264_h_loop_filter_luma = ff_h264_h_loop_filter_luma_neon; c->h264_v_lo...
[ "static av_cold void FUNC_0(H264DSPContext *c, const int bit_depth,\nconst int chroma_format_idc)\n{", "if (bit_depth == 8) {", "c->h264_v_loop_filter_luma = ff_h264_v_loop_filter_luma_neon;", "c->h264_h_loop_filter_luma = ff_h264_h_loop_filter_luma_neon;", "c->h264_v_loop_filter_chroma = ff_h264_v_loop...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ...
17,875
ssize_t qemu_sendv_packet(VLANClientState *vc1, const struct iovec *iov, int iovcnt) { VLANState *vlan = vc1->vlan; VLANClientState *vc; ssize_t max_len = 0; if (vc1->link_down) return calc_iov_length(iov, iovcnt); for (vc = vlan->first_client; vc != NUL...
true
qemu
c27ff60871aff588a35e51d1a90faed410993e55
ssize_t qemu_sendv_packet(VLANClientState *vc1, const struct iovec *iov, int iovcnt) { VLANState *vlan = vc1->vlan; VLANClientState *vc; ssize_t max_len = 0; if (vc1->link_down) return calc_iov_length(iov, iovcnt); for (vc = vlan->first_client; vc != NUL...
{ "code": [ "ssize_t qemu_sendv_packet(VLANClientState *vc1, const struct iovec *iov,", " VLANState *vlan = vc1->vlan;", " if (vc1->link_down)", " for (vc = vlan->first_client; vc != NULL; vc = vc->next) {", " ssize_t len = 0;", " if (vc == vc1)", " contin...
ssize_t FUNC_0(VLANClientState *vc1, const struct iovec *iov, int iovcnt) { VLANState *vlan = vc1->vlan; VLANClientState *vc; ssize_t max_len = 0; if (vc1->link_down) return calc_iov_length(iov, iovcnt); for (vc = vlan->first_client; vc != NULL; vc = vc-...
[ "ssize_t FUNC_0(VLANClientState *vc1, const struct iovec *iov,\nint iovcnt)\n{", "VLANState *vlan = vc1->vlan;", "VLANClientState *vc;", "ssize_t max_len = 0;", "if (vc1->link_down)\nreturn calc_iov_length(iov, iovcnt);", "for (vc = vlan->first_client; vc != NULL; vc = vc->next) {", "ssize_t len = 0;", ...
[ 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 33, 35 ], [ 37, 39 ], [ 41, 43 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ] ]
17,876
static bool blit_region_is_unsafe(struct CirrusVGAState *s, int32_t pitch, int32_t addr) { if (pitch < 0) { int64_t min = addr + ((int64_t)s->cirrus_blt_height-1) * pitch; int32_t max = addr + s->cirrus_blt_width; if (min < 0 ...
true
qemu
d2ba7ecb348d3b996fcd920cf1ca7b72722c1dfd
static bool blit_region_is_unsafe(struct CirrusVGAState *s, int32_t pitch, int32_t addr) { if (pitch < 0) { int64_t min = addr + ((int64_t)s->cirrus_blt_height-1) * pitch; int32_t max = addr + s->cirrus_blt_width; if (min < 0 ...
{ "code": [ " if (min < 0 || max >= s->vga.vram_size) {", " if (max >= s->vga.vram_size) {" ], "line_no": [ 17, 31 ] }
static bool FUNC_0(struct CirrusVGAState *s, int32_t pitch, int32_t addr) { if (pitch < 0) { int64_t min = addr + ((int64_t)s->cirrus_blt_height-1) * pitch; int32_t max = addr + s->cirrus_blt_width; if (min < 0 || max >= s->vg...
[ "static bool FUNC_0(struct CirrusVGAState *s,\nint32_t pitch, int32_t addr)\n{", "if (pitch < 0) {", "int64_t min = addr\n+ ((int64_t)s->cirrus_blt_height-1) * pitch;", "int32_t max = addr\n+ s->cirrus_blt_width;", "if (min < 0 || max >= s->vga.vram_size) {", "return true;", "}", "} else {", "int64_...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
17,879
static int rv10_decode_picture_header(MpegEncContext *s) { int mb_count, pb_frame, marker, h, full_frame; /* skip packet header */ h = get_bits(&s->gb, 8); if ((h & 0xc0) == 0xc0) { int len, pos; full_frame = 1; len = get_num(&s->gb); pos = get_num(&s->gb);...
true
FFmpeg
ee3b2be65da55cfe1fc17d1db75738535f99ceef
static int rv10_decode_picture_header(MpegEncContext *s) { int mb_count, pb_frame, marker, h, full_frame; h = get_bits(&s->gb, 8); if ((h & 0xc0) == 0xc0) { int len, pos; full_frame = 1; len = get_num(&s->gb); pos = get_num(&s->gb); } else { ...
{ "code": [], "line_no": [] }
static int FUNC_0(MpegEncContext *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5; VAR_4 = get_bits(&VAR_0->gb, 8); if ((VAR_4 & 0xc0) == 0xc0) { int VAR_6, VAR_10; VAR_5 = 1; VAR_6 = get_num(&VAR_0->gb); VAR_10 = get_num(&VAR_0->gb); } else { ...
[ "static int FUNC_0(MpegEncContext *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;", "VAR_4 = get_bits(&VAR_0->gb, 8);", "if ((VAR_4 & 0xc0) == 0xc0) {", "int VAR_6, VAR_10;", "VAR_5 = 1;", "VAR_6 = get_num(&VAR_0->gb);", "VAR_10 = get_num(&VAR_0->gb);", "} else {", "int VAR_8, VAR_9, VAR_10;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 47, 49 ], [ 51, 5...
17,880
host_memory_backend_get_host_nodes(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { HostMemoryBackend *backend = MEMORY_BACKEND(obj); uint16List *host_nodes = NULL; uint16List **node = &host_nodes; unsigned long value; value = find_...
true
qemu
658ae5a7b90139a6a296cd4cd83643d843964796
host_memory_backend_get_host_nodes(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { HostMemoryBackend *backend = MEMORY_BACKEND(obj); uint16List *host_nodes = NULL; uint16List **node = &host_nodes; unsigned long value; value = find_...
{ "code": [ " node = host_memory_append_node(node, value);", " goto out;", " node = host_memory_append_node(node, value);", "out:" ], "line_no": [ 21, 27, 45, 51 ] }
FUNC_0(Object *VAR_0, Visitor *VAR_1, const char *VAR_2, void *VAR_3, Error **VAR_4) { HostMemoryBackend *backend = MEMORY_BACKEND(VAR_0); uint16List *host_nodes = NULL; uint16List **node = &host_nodes; unsigned long VAR_5; VAR_5 = find_first_bit(backend->...
[ "FUNC_0(Object *VAR_0, Visitor *VAR_1, const char *VAR_2,\nvoid *VAR_3, Error **VAR_4)\n{", "HostMemoryBackend *backend = MEMORY_BACKEND(VAR_0);", "uint16List *host_nodes = NULL;", "uint16List **node = &host_nodes;", "unsigned long VAR_5;", "VAR_5 = find_first_bit(backend->host_nodes, MAX_NODES);", "nod...
[ 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51, 53 ], [ 55 ...
17,881
static int v4l2_read_header(AVFormatContext *s1) { struct video_data *s = s1->priv_data; AVStream *st; int res = 0; uint32_t desired_format; enum AVCodecID codec_id = AV_CODEC_ID_NONE; enum AVPixelFormat pix_fmt = AV_PIX_FMT_NONE; struct v4l2_input input = { 0 }; st = avformat...
true
FFmpeg
9dd54d74226eaaa1087ba994ba212bf9a107c97d
static int v4l2_read_header(AVFormatContext *s1) { struct video_data *s = s1->priv_data; AVStream *st; int res = 0; uint32_t desired_format; enum AVCodecID codec_id = AV_CODEC_ID_NONE; enum AVPixelFormat pix_fmt = AV_PIX_FMT_NONE; struct v4l2_input input = { 0 }; st = avformat...
{ "code": [ " struct v4l2_format fmt;", " fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;" ], "line_no": [ 163, 171 ] }
static int FUNC_0(AVFormatContext *VAR_0) { struct video_data *VAR_1 = VAR_0->priv_data; AVStream *st; int VAR_2 = 0; uint32_t desired_format; enum AVCodecID VAR_3 = AV_CODEC_ID_NONE; enum AVPixelFormat VAR_4 = AV_PIX_FMT_NONE; struct v4l2_input VAR_5 = { 0 }; st = avformat_ne...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "struct video_data *VAR_1 = VAR_0->priv_data;", "AVStream *st;", "int VAR_2 = 0;", "uint32_t desired_format;", "enum AVCodecID VAR_3 = AV_CODEC_ID_NONE;", "enum AVPixelFormat VAR_4 = AV_PIX_FMT_NONE;", "struct v4l2_input VAR_5 = { 0 };", "st = avformat...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 29, 35 ], [ 37, 41 ], [ 43, 45 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ...
17,882
avfilter_get_video_buffer_ref_from_arrays(uint8_t *data[4], int linesize[4], int perms, int w, int h, enum PixelFormat format) { AVFilterBuffer *pic = av_mallocz(sizeof(AVFilterBuffer)); AVFilterBufferRef *picref = av_mallocz(sizeof(AVFilterBufferRef)); if (!...
false
FFmpeg
36dc00de529fb4cd182e02f927597eef9514b886
avfilter_get_video_buffer_ref_from_arrays(uint8_t *data[4], int linesize[4], int perms, int w, int h, enum PixelFormat format) { AVFilterBuffer *pic = av_mallocz(sizeof(AVFilterBuffer)); AVFilterBufferRef *picref = av_mallocz(sizeof(AVFilterBufferRef)); if (!...
{ "code": [], "line_no": [] }
FUNC_0(uint8_t *VAR_0[4], int VAR_1[4], int VAR_2, int VAR_3, int VAR_4, enum PixelFormat VAR_5) { AVFilterBuffer *pic = av_mallocz(sizeof(AVFilterBuffer)); AVFilterBufferRef *picref = av_mallocz(sizeof(AVFilterBufferRef)); if (!pic || !picref) goto ...
[ "FUNC_0(uint8_t *VAR_0[4], int VAR_1[4], int VAR_2,\nint VAR_3, int VAR_4, enum PixelFormat VAR_5)\n{", "AVFilterBuffer *pic = av_mallocz(sizeof(AVFilterBuffer));", "AVFilterBufferRef *picref = av_mallocz(sizeof(AVFilterBufferRef));", "if (!pic || !picref)\ngoto fail;", "picref->buf = pic;", "picref->buf-...
[ 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 ], [ 29 ], [ 31 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], [...
17,884
static int dca_decode_frame(AVCodecContext * avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int i; int16_t *samples = data; DCAContext *s = avctx->priv_data; int channels;...
true
FFmpeg
4e06acbde4a75cf9aa6a3e46dd3a7c6ed1ecfb8f
static int dca_decode_frame(AVCodecContext * avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int i; int16_t *samples = data; DCAContext *s = avctx->priv_data; int channels;...
{ "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; int VAR_6; int16_t *samples = VAR_1; DCAContext *s = VAR_0->priv_data; int VAR_7; s->dca...
[ "static int FUNC_0(AVCodecContext * VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "int VAR_6;", "int16_t *samples = VAR_1;", "DCAContext *s = VAR_0->priv_data;", "int VAR_7;", "s->dca_buffer_size = dca_convert_bitstream(VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3, 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 18 ], [ 19 ], [ 20 ], [ 22 ], [ 23 ], [ 24 ],...
17,886
static void dmg_close(BlockDriverState *bs) { BDRVDMGState *s = bs->opaque; g_free(s->types); g_free(s->offsets); g_free(s->lengths); g_free(s->sectors); g_free(s->sectorcounts); g_free(s->compressed_chunk); g_free(s->uncompressed_chunk); inflateEnd(&s->zstream); }
true
qemu
b546a944749f963c5b4e27765354df10ac531853
static void dmg_close(BlockDriverState *bs) { BDRVDMGState *s = bs->opaque; g_free(s->types); g_free(s->offsets); g_free(s->lengths); g_free(s->sectors); g_free(s->sectorcounts); g_free(s->compressed_chunk); g_free(s->uncompressed_chunk); inflateEnd(&s->zstream); }
{ "code": [ " g_free(s->compressed_chunk);", " g_free(s->uncompressed_chunk);", " g_free(s->compressed_chunk);", " g_free(s->uncompressed_chunk);" ], "line_no": [ 19, 21, 19, 21 ] }
static void FUNC_0(BlockDriverState *VAR_0) { BDRVDMGState *s = VAR_0->opaque; g_free(s->types); g_free(s->offsets); g_free(s->lengths); g_free(s->sectors); g_free(s->sectorcounts); g_free(s->compressed_chunk); g_free(s->uncompressed_chunk); inflateEnd(&s->zstream); }
[ "static void FUNC_0(BlockDriverState *VAR_0)\n{", "BDRVDMGState *s = VAR_0->opaque;", "g_free(s->types);", "g_free(s->offsets);", "g_free(s->lengths);", "g_free(s->sectors);", "g_free(s->sectorcounts);", "g_free(s->compressed_chunk);", "g_free(s->uncompressed_chunk);", "inflateEnd(&s->zstream);", ...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
17,887
int gdbserver_start(const char *device) { GDBState *s; char gdbstub_device_name[128]; CharDriverState *chr = NULL; CharDriverState *mon_chr; if (!device) return -1; if (strcmp(device, "none") != 0) { if (strstart(device, "tcp:", NULL)) { /* enforce require...
true
qemu
456d60692310e7ac25cf822cc1e98192ad636ece
int gdbserver_start(const char *device) { GDBState *s; char gdbstub_device_name[128]; CharDriverState *chr = NULL; CharDriverState *mon_chr; if (!device) return -1; if (strcmp(device, "none") != 0) { if (strstart(device, "tcp:", NULL)) { snpr...
{ "code": [], "line_no": [] }
int FUNC_0(const char *VAR_0) { GDBState *s; char VAR_1[128]; CharDriverState *chr = NULL; CharDriverState *mon_chr; if (!VAR_0) return -1; if (strcmp(VAR_0, "none") != 0) { if (strstart(VAR_0, "tcp:", NULL)) { snprintf(VAR_1, sizeof(VAR_1), ...
[ "int FUNC_0(const char *VAR_0)\n{", "GDBState *s;", "char VAR_1[128];", "CharDriverState *chr = NULL;", "CharDriverState *mon_chr;", "if (!VAR_0)\nreturn -1;", "if (strcmp(VAR_0, \"none\") != 0) {", "if (strstart(VAR_0, \"tcp:\", NULL)) {", "snprintf(VAR_1, sizeof(VAR_1),\n\"%s,nowait,nodelay,server...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ...
17,888
static int opus_packet(AVFormatContext *avf, int idx) { struct ogg *ogg = avf->priv_data; struct ogg_stream *os = &ogg->streams[idx]; AVStream *st = avf->streams[idx]; struct oggopus_private *priv = os->private; uint8_t *packet = os->buf + os->p...
true
FFmpeg
1a82d2cf8fb6a7e854e7548dfcf73c3d046b34ac
static int opus_packet(AVFormatContext *avf, int idx) { struct ogg *ogg = avf->priv_data; struct ogg_stream *os = &ogg->streams[idx]; AVStream *st = avf->streams[idx]; struct oggopus_private *priv = os->private; uint8_t *packet = os->buf + os->p...
{ "code": [ " if (os->granule > INT64_MAX - UINT32_MAX) {" ], "line_no": [ 23 ] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1) { struct VAR_2 *VAR_2 = VAR_0->priv_data; struct ogg_stream *VAR_3 = &VAR_2->streams[VAR_1]; AVStream *st = VAR_0->streams[VAR_1]; struct oggopus_private *VAR_4 = VAR_3->private; uint8_t *packet ...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{", "struct VAR_2 *VAR_2 = VAR_0->priv_data;", "struct ogg_stream *VAR_3 = &VAR_2->streams[VAR_1];", "AVStream *st = VAR_0->streams[VAR_1];", "struct oggopus_private *VAR_4 = VAR_3->private;", "uint8_t *packet ...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
17,890
static unsigned int mszh_decomp(unsigned char * srcptr, int srclen, unsigned char * destptr, unsigned int destsize) { unsigned char *destptr_bak = destptr; unsigned char *destptr_end = destptr + destsize; unsigned char mask = 0; unsigned char maskbit = 0; unsigned int ofs, cnt; while (s...
true
FFmpeg
dbc53ffc7c398f90ae1cf59e513d3882bc0dc188
static unsigned int mszh_decomp(unsigned char * srcptr, int srclen, unsigned char * destptr, unsigned int destsize) { unsigned char *destptr_bak = destptr; unsigned char *destptr_end = destptr + destsize; unsigned char mask = 0; unsigned char maskbit = 0; unsigned int ofs, cnt; while (s...
{ "code": [ " if (destptr + 4 > destptr_end)", " if (destptr + cnt > destptr_end) {" ], "line_no": [ 33, 61 ] }
static unsigned int FUNC_0(unsigned char * VAR_0, int VAR_1, unsigned char * VAR_2, unsigned int VAR_3) { unsigned char *VAR_4 = VAR_2; unsigned char *VAR_5 = VAR_2 + VAR_3; unsigned char VAR_6 = 0; unsigned char VAR_7 = 0; unsigned int VAR_8, VAR_9; while (VAR_1 > 0 && VAR_2 < VAR_5) {...
[ "static unsigned int FUNC_0(unsigned char * VAR_0, int VAR_1, unsigned char * VAR_2, unsigned int VAR_3)\n{", "unsigned char *VAR_4 = VAR_2;", "unsigned char *VAR_5 = VAR_2 + VAR_3;", "unsigned char VAR_6 = 0;", "unsigned char VAR_7 = 0;", "unsigned int VAR_8, VAR_9;", "while (VAR_1 > 0 && VAR_2 < VAR_5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
17,891
static int decode_codestream(Jpeg2000DecoderContext *s) { Jpeg2000CodingStyle *codsty = s->codsty; Jpeg2000QuantStyle *qntsty = s->qntsty; uint8_t *properties = s->properties; for (;;){ int oldpos, marker, len, ret = 0; if (bytestream2_get_bytes_left(&s->g) < 2) { ...
true
FFmpeg
17e66c9ff4774e254932d34dade77b1c04139a4f
static int decode_codestream(Jpeg2000DecoderContext *s) { Jpeg2000CodingStyle *codsty = s->codsty; Jpeg2000QuantStyle *qntsty = s->qntsty; uint8_t *properties = s->properties; for (;;){ int oldpos, marker, len, ret = 0; if (bytestream2_get_bytes_left(&s->g) < 2) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(Jpeg2000DecoderContext *VAR_0) { Jpeg2000CodingStyle *codsty = VAR_0->codsty; Jpeg2000QuantStyle *qntsty = VAR_0->qntsty; uint8_t *properties = VAR_0->properties; for (;;){ int VAR_1, VAR_2, VAR_3, VAR_4 = 0; if (bytestream2_get_bytes_left(&VAR_0->g) < 2) { ...
[ "static int FUNC_0(Jpeg2000DecoderContext *VAR_0)\n{", "Jpeg2000CodingStyle *codsty = VAR_0->codsty;", "Jpeg2000QuantStyle *qntsty = VAR_0->qntsty;", "uint8_t *properties = VAR_0->properties;", "for (;;){", "int VAR_1, VAR_2, VAR_3, VAR_4 = 0;", "if (bytestream2_get_bytes_left(&VAR_0->g) < 2) {", "av...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
17,895
void do_mulldo (void) { int64_t th; uint64_t tl; muls64(&tl, &th, T0, T1); if (likely(th == 0)) { xer_ov = 0; } else { xer_ov = 1; xer_so = 1; } T0 = (int64_t)tl; }
true
qemu
88ad920b8adbce8b00085c51a61e57b5fbc83b0c
void do_mulldo (void) { int64_t th; uint64_t tl; muls64(&tl, &th, T0, T1); if (likely(th == 0)) { xer_ov = 0; } else { xer_ov = 1; xer_so = 1; } T0 = (int64_t)tl; }
{ "code": [ " if (likely(th == 0)) {" ], "line_no": [ 13 ] }
void FUNC_0 (void) { int64_t th; uint64_t tl; muls64(&tl, &th, T0, T1); if (likely(th == 0)) { xer_ov = 0; } else { xer_ov = 1; xer_so = 1; } T0 = (int64_t)tl; }
[ "void FUNC_0 (void)\n{", "int64_t th;", "uint64_t tl;", "muls64(&tl, &th, T0, T1);", "if (likely(th == 0)) {", "xer_ov = 0;", "} else {", "xer_ov = 1;", "xer_so = 1;", "}", "T0 = (int64_t)tl;", "}" ]
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
17,896
static int decode_unit(SCPRContext *s, PixelModel *pixel, unsigned step, unsigned *rval) { GetByteContext *gb = &s->gb; RangeCoder *rc = &s->rc; unsigned totfr = pixel->total_freq; unsigned value, x = 0, cumfr = 0, cnt_x = 0; int i, j, ret, c, cnt_c; if ((ret = s->get_freq(rc, totfr, &v...
false
FFmpeg
86ab6b6e08e2982fb5785e0691c0a7e289339ffb
static int decode_unit(SCPRContext *s, PixelModel *pixel, unsigned step, unsigned *rval) { GetByteContext *gb = &s->gb; RangeCoder *rc = &s->rc; unsigned totfr = pixel->total_freq; unsigned value, x = 0, cumfr = 0, cnt_x = 0; int i, j, ret, c, cnt_c; if ((ret = s->get_freq(rc, totfr, &v...
{ "code": [], "line_no": [] }
static int FUNC_0(SCPRContext *VAR_0, PixelModel *VAR_1, unsigned VAR_2, unsigned *VAR_3) { GetByteContext *gb = &VAR_0->gb; RangeCoder *rc = &VAR_0->rc; unsigned VAR_4 = VAR_1->total_freq; unsigned VAR_5, VAR_6 = 0, VAR_7 = 0, VAR_8 = 0; int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13; if ((...
[ "static int FUNC_0(SCPRContext *VAR_0, PixelModel *VAR_1, unsigned VAR_2, unsigned *VAR_3)\n{", "GetByteContext *gb = &VAR_0->gb;", "RangeCoder *rc = &VAR_0->rc;", "unsigned VAR_4 = VAR_1->total_freq;", "unsigned VAR_5, VAR_6 = 0, VAR_7 = 0, VAR_8 = 0;", "int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;", "if...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ...
17,897
static void sbr_env_estimate(float (*e_curr)[48], float X_high[64][40][2], SpectralBandReplication *sbr, SBRData *ch_data) { int e, i, m; if (sbr->bs_interpol_freq) { for (e = 0; e < ch_data->bs_num_env; e++) { const float recip_env_size = 0.5f / (ch_data...
false
FFmpeg
aac46e088d67a390489af686b846dea4987d8ffb
static void sbr_env_estimate(float (*e_curr)[48], float X_high[64][40][2], SpectralBandReplication *sbr, SBRData *ch_data) { int e, i, m; if (sbr->bs_interpol_freq) { for (e = 0; e < ch_data->bs_num_env; e++) { const float recip_env_size = 0.5f / (ch_data...
{ "code": [], "line_no": [] }
static void FUNC_0(float (*VAR_0)[48], float VAR_1[64][40][2], SpectralBandReplication *VAR_2, SBRData *VAR_3) { int VAR_4, VAR_5, VAR_6; if (VAR_2->bs_interpol_freq) { for (VAR_4 = 0; VAR_4 < VAR_3->bs_num_env; VAR_4++) { const float recip_env_size = 0.5...
[ "static void FUNC_0(float (*VAR_0)[48], float VAR_1[64][40][2],\nSpectralBandReplication *VAR_2, SBRData *VAR_3)\n{", "int VAR_4, VAR_5, VAR_6;", "if (VAR_2->bs_interpol_freq) {", "for (VAR_4 = 0; VAR_4 < VAR_3->bs_num_env; VAR_4++) {", "const float recip_env_size = 0.5f / (VAR_3->t_env[VAR_4 + 1] - VAR_3->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51...
17,898
static int test_scalarproduct_float(AVFloatDSPContext *fdsp, AVFloatDSPContext *cdsp, const float *v1, const float *v2) { float cprod, oprod; int ret; cprod = cdsp->scalarproduct_float(v1, v2, LEN); oprod = fdsp->scalarproduct_float(v1, v2, LEN); if (re...
false
FFmpeg
e53c9065ca08a9153ecc73a6a8940bcc6d667e58
static int test_scalarproduct_float(AVFloatDSPContext *fdsp, AVFloatDSPContext *cdsp, const float *v1, const float *v2) { float cprod, oprod; int ret; cprod = cdsp->scalarproduct_float(v1, v2, LEN); oprod = fdsp->scalarproduct_float(v1, v2, LEN); if (re...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFloatDSPContext *VAR_0, AVFloatDSPContext *VAR_1, const float *VAR_2, const float *VAR_3) { float VAR_4, VAR_5; int VAR_6; VAR_4 = VAR_1->scalarproduct_float(VAR_2, VAR_3, LEN); VAR_5 = VAR_0->scalarproduct_float(VAR_2, VAR_3, LEN); ...
[ "static int FUNC_0(AVFloatDSPContext *VAR_0, AVFloatDSPContext *VAR_1,\nconst float *VAR_2, const float *VAR_3)\n{", "float VAR_4, VAR_5;", "int VAR_6;", "VAR_4 = VAR_1->scalarproduct_float(VAR_2, VAR_3, LEN);", "VAR_5 = VAR_0->scalarproduct_float(VAR_2, VAR_3, LEN);", "if (VAR_6 = compare_floats(&VAR_4, ...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ] ]
17,899
static int mov_read_pasp(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { const int num = get_be32(pb); const int den = get_be32(pb); AVStream * const st = c->fc->streams[c->fc->nb_streams-1]; if (den != 0) { if ((st->sample_aspect_ratio.den != 1 || st->sample_aspect_ratio.num) && // defa...
false
FFmpeg
6a63ff19b6a7fe3bc32c7fb4a62fca8f65786432
static int mov_read_pasp(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { const int num = get_be32(pb); const int den = get_be32(pb); AVStream * const st = c->fc->streams[c->fc->nb_streams-1]; if (den != 0) { if ((st->sample_aspect_ratio.den != 1 || st->sample_aspect_ratio.num) && ...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2) { const int VAR_3 = get_be32(VAR_1); const int VAR_4 = get_be32(VAR_1); AVStream * const st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; if (VAR_4 != 0) { if ((st->sample_aspect_ratio.VAR_4 != 1 || st->sample_aspec...
[ "static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2)\n{", "const int VAR_3 = get_be32(VAR_1);", "const int VAR_4 = get_be32(VAR_1);", "AVStream * const st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "if (VAR_4 != 0) {", "if ((st->sample_aspect_ratio.VAR_4 != 1 || st->sample_aspe...
[ 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 ] ]
17,900
static void MPV_encode_defaults(MpegEncContext *s){ static int done=0; MPV_common_defaults(s); if(!done){ int i; done=1; for(i=-16; i<16; i++){ default_fcode_tab[i + MAX_MV]= 1; } } s->me.mv_penalty= default_mv_penalty; s->fcode_tab= d...
false
FFmpeg
3e207bb1bd822ee1bce3e2de4c784702e0b6e24a
static void MPV_encode_defaults(MpegEncContext *s){ static int done=0; MPV_common_defaults(s); if(!done){ int i; done=1; for(i=-16; i<16; i++){ default_fcode_tab[i + MAX_MV]= 1; } } s->me.mv_penalty= default_mv_penalty; s->fcode_tab= d...
{ "code": [], "line_no": [] }
static void FUNC_0(MpegEncContext *VAR_0){ static int VAR_1=0; MPV_common_defaults(VAR_0); if(!VAR_1){ int VAR_2; VAR_1=1; for(VAR_2=-16; VAR_2<16; VAR_2++){ default_fcode_tab[VAR_2 + MAX_MV]= 1; } } VAR_0->me.mv_penalty= default_mv_penalty...
[ "static void FUNC_0(MpegEncContext *VAR_0){", "static int VAR_1=0;", "MPV_common_defaults(VAR_0);", "if(!VAR_1){", "int VAR_2;", "VAR_1=1;", "for(VAR_2=-16; VAR_2<16; VAR_2++){", "default_fcode_tab[VAR_2 + MAX_MV]= 1;", "}", "}", "VAR_0->me.mv_penalty= default_mv_penalty;", "VAR_0->fcode_tab= ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
17,901
int avcodec_get_pix_fmt_loss(int dst_pix_fmt, int src_pix_fmt, int has_alpha) { const PixFmtInfo *pf, *ps; int loss; ps = &pix_fmt_info[src_pix_fmt]; pf = &pix_fmt_info[dst_pix_fmt]; /* compute loss */ loss = 0; pf = &pix_fmt_info[dst_pix_fmt]; ...
false
FFmpeg
7e7e59409294af9caa63808e56c5cc824c98b4fc
int avcodec_get_pix_fmt_loss(int dst_pix_fmt, int src_pix_fmt, int has_alpha) { const PixFmtInfo *pf, *ps; int loss; ps = &pix_fmt_info[src_pix_fmt]; pf = &pix_fmt_info[dst_pix_fmt]; loss = 0; pf = &pix_fmt_info[dst_pix_fmt]; if (pf->depth < ps...
{ "code": [], "line_no": [] }
int FUNC_0(int VAR_0, int VAR_1, int VAR_2) { const PixFmtInfo *VAR_3, *ps; int VAR_4; ps = &pix_fmt_info[VAR_1]; VAR_3 = &pix_fmt_info[VAR_0]; VAR_4 = 0; VAR_3 = &pix_fmt_info[VAR_0]; if (VAR_3->depth < ps->depth) VAR_4 |= FF_LOSS_DEP...
[ "int FUNC_0(int VAR_0, int VAR_1,\nint VAR_2)\n{", "const PixFmtInfo *VAR_3, *ps;", "int VAR_4;", "ps = &pix_fmt_info[VAR_1];", "VAR_3 = &pix_fmt_info[VAR_0];", "VAR_4 = 0;", "VAR_3 = &pix_fmt_info[VAR_0];", "if (VAR_3->depth < ps->depth)\nVAR_4 |= FF_LOSS_DEPTH;", "if (VAR_3->x_chroma_shift >= ps->...
[ 0, 0, 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 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29, 31, 33 ], [ 35 ], [ 37, 39, 41, 43 ], [ 45 ], [ 47, 49, 51 ], [ 53 ], [ 55, 57,...
17,902
static int ftp_get_file_handle(URLContext *h) { FTPContext *s = h->priv_data; av_dlog(h, "ftp protocol get_file_handle\n"); if (s->conn_data) return ffurl_get_file_handle(s->conn_data); return AVERROR(EIO); }
false
FFmpeg
229843aa359ae0c9519977d7fa952688db63f559
static int ftp_get_file_handle(URLContext *h) { FTPContext *s = h->priv_data; av_dlog(h, "ftp protocol get_file_handle\n"); if (s->conn_data) return ffurl_get_file_handle(s->conn_data); return AVERROR(EIO); }
{ "code": [], "line_no": [] }
static int FUNC_0(URLContext *VAR_0) { FTPContext *s = VAR_0->priv_data; av_dlog(VAR_0, "ftp protocol get_file_handle\n"); if (s->conn_data) return ffurl_get_file_handle(s->conn_data); return AVERROR(EIO); }
[ "static int FUNC_0(URLContext *VAR_0)\n{", "FTPContext *s = VAR_0->priv_data;", "av_dlog(VAR_0, \"ftp protocol get_file_handle\\n\");", "if (s->conn_data)\nreturn ffurl_get_file_handle(s->conn_data);", "return AVERROR(EIO);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ] ]
17,903
static void sdp_write_header(char *buff, int size, struct sdp_session_level *s) { av_strlcatf(buff, size, "v=%d\r\n" "o=- %d %d IN IPV4 %s\r\n" "t=%d %d\r\n" "s=%s\r\n" "a=tool:libavformat " AV_STRI...
false
FFmpeg
c16184e9baad4e4304d5bfb9340e8b5b6decad65
static void sdp_write_header(char *buff, int size, struct sdp_session_level *s) { av_strlcatf(buff, size, "v=%d\r\n" "o=- %d %d IN IPV4 %s\r\n" "t=%d %d\r\n" "s=%s\r\n" "a=tool:libavformat " AV_STRI...
{ "code": [], "line_no": [] }
static void FUNC_0(char *VAR_0, int VAR_1, struct sdp_session_level *VAR_2) { av_strlcatf(VAR_0, VAR_1, "v=%d\r\n" "o=- %d %d IN IPV4 %VAR_2\r\n" "t=%d %d\r\n" "VAR_2=%VAR_2\r\n" "a=tool:libavformat...
[ "static void FUNC_0(char *VAR_0, int VAR_1, struct sdp_session_level *VAR_2)\n{", "av_strlcatf(VAR_0, VAR_1, \"v=%d\\r\\n\"\n\"o=- %d %d IN IPV4 %VAR_2\\r\\n\"\n\"t=%d %d\\r\\n\"\n\"VAR_2=%VAR_2\\r\\n\"\n\"a=tool:libavformat \" AV_STRINGIFY(LIBAVFORMAT_VERSION) \"\\r\\n\",\nVAR_2->sdp_version,\nVAR_2->id, VAR_2->...
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13, 15, 17, 19, 21 ], [ 23 ], [ 25 ] ]
17,905
static int print_device_sources(AVInputFormat *fmt, AVDictionary *opts) { int ret, i; AVFormatContext *dev = NULL; AVDeviceInfoList *device_list = NULL; AVDictionary *tmp_opts = NULL; if (!fmt || !fmt->priv_class || !AV_IS_INPUT_DEVICE(fmt->priv_class->category)) return AVERROR(EIN...
true
FFmpeg
44e6eeb30de8e2d20db56284984da4615763525c
static int print_device_sources(AVInputFormat *fmt, AVDictionary *opts) { int ret, i; AVFormatContext *dev = NULL; AVDeviceInfoList *device_list = NULL; AVDictionary *tmp_opts = NULL; if (!fmt || !fmt->priv_class || !AV_IS_INPUT_DEVICE(fmt->priv_class->category)) return AVERROR(EIN...
{ "code": [ " AVFormatContext *dev = NULL;", " AVDictionary *tmp_opts = NULL;", " av_dict_copy(&tmp_opts, opts, 0);", " if ((ret = avformat_open_input(&dev, NULL, fmt, &tmp_opts)) < 0) {", " printf(\"Cannot open device: %s.\\n\", fmt->name);", " goto fail;", " ...
static int FUNC_0(AVInputFormat *VAR_0, AVDictionary *VAR_1) { int VAR_2, VAR_3; AVFormatContext *dev = NULL; AVDeviceInfoList *device_list = NULL; AVDictionary *tmp_opts = NULL; if (!VAR_0 || !VAR_0->priv_class || !AV_IS_INPUT_DEVICE(VAR_0->priv_class->category)) return AVERROR(EI...
[ "static int FUNC_0(AVInputFormat *VAR_0, AVDictionary *VAR_1)\n{", "int VAR_2, VAR_3;", "AVFormatContext *dev = NULL;", "AVDeviceInfoList *device_list = NULL;", "AVDictionary *tmp_opts = NULL;", "if (!VAR_0 || !VAR_0->priv_class || !AV_IS_INPUT_DEVICE(VAR_0->priv_class->category))\nreturn AVERROR(EINVAL)...
[ 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [...
17,906
static inline void RENAME(yuv2packedX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, int dstW, int dstY) { int dummy=0; switch(c->dstFormat) { #ifdef HAVE_MMX case IMGFMT_BGR32: { asm vola...
true
FFmpeg
065ee1ec325ed7d34acf13d0bf319c1c6b457e21
static inline void RENAME(yuv2packedX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, int dstW, int dstY) { int dummy=0; switch(c->dstFormat) { #ifdef HAVE_MMX case IMGFMT_BGR32: { asm vola...
{ "code": [ "\t\t\t uint8_t *dest, int dstW, int dstY)", "\tint dummy=0;" ], "line_no": [ 5, 9 ] }
static inline void FUNC_0(yuv2packedX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, int dstW, int dstY) { int VAR_0=0; switch(c->dstFormat) { #ifdef HAVE_MMX case IMGFMT_BGR32: { asm vola...
[ "static inline void FUNC_0(yuv2packedX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,\nint16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,\nuint8_t *dest, int dstW, int dstY)\n{", "int VAR_0=0;", "switch(c->dstFormat)\n{", "#ifdef HAVE_MMX\ncase IMGFMT_BGR32:\n{", "asm volatil...
[ 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11, 13 ], [ 15, 17, 19 ], [ 21, 23, 25, 29, 31, 33, 35, 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47, 49, 51, 53, 55, 59, 61, 63, 65, 67 ...
17,907
static int multiple_resample(ResampleContext *c, AudioData *dst, int dst_size, AudioData *src, int src_size, int *consumed){ int i, ret= -1; int av_unused mm_flags = av_get_cpu_flags(); int need_emms= 0; if (c->compensation_distance) dst_size = FFMIN(dst_size, c->compensation_distance); for(...
true
FFmpeg
cdfd9717edac118968e63e6f83c3e45a7e337833
static int multiple_resample(ResampleContext *c, AudioData *dst, int dst_size, AudioData *src, int src_size, int *consumed){ int i, ret= -1; int av_unused mm_flags = av_get_cpu_flags(); int need_emms= 0; if (c->compensation_distance) dst_size = FFMIN(dst_size, c->compensation_distance); for(...
{ "code": [], "line_no": [] }
static int FUNC_0(ResampleContext *VAR_0, AudioData *VAR_1, int VAR_2, AudioData *VAR_3, int VAR_4, int *VAR_5){ int VAR_6, VAR_7= -1; int VAR_8 mm_flags = av_get_cpu_flags(); int VAR_9= 0; if (VAR_0->compensation_distance) VAR_2 = FFMIN(VAR_2, VAR_0->compensation_distance); for(VAR_6=0; VAR...
[ "static int FUNC_0(ResampleContext *VAR_0, AudioData *VAR_1, int VAR_2, AudioData *VAR_3, int VAR_4, int *VAR_5){", "int VAR_6, VAR_7= -1;", "int VAR_8 mm_flags = av_get_cpu_flags();", "int VAR_9= 0;", "if (VAR_0->compensation_distance)\nVAR_2 = FFMIN(VAR_2, VAR_0->compensation_distance);", "for(VAR_6=0; ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 2 ], [ 3 ], [ 4 ], [ 5, 6 ], [ 7 ], [ 8, 9, 10 ], [ 11, 12, 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17, 18 ], [ 19 ], [ 20, 21, 22 ], [ 23, 24, 25, 26 ],...
17,910
static void mpegts_write_pes(AVFormatContext *s, AVStream *st, const uint8_t *payload, int payload_size, int64_t pts, int64_t dts, int key, int stream_id) { MpegTSWriteStream *ts_st = st->priv_data; MpegTSWrite *ts = s->priv_data; uint8_t buf[T...
true
FFmpeg
a566c952f905639456966413fee0b5701867ddcd
static void mpegts_write_pes(AVFormatContext *s, AVStream *st, const uint8_t *payload, int payload_size, int64_t pts, int64_t dts, int key, int stream_id) { MpegTSWriteStream *ts_st = st->priv_data; MpegTSWrite *ts = s->priv_data; uint8_t buf[T...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, const uint8_t *VAR_2, int VAR_3, int64_t VAR_4, int64_t VAR_5, int VAR_6, int VAR_7) { MpegTSWriteStream *ts_st = VAR_1->priv_data; MpegTSWrite *ts = VAR_0->priv_data; uint8_t buf[TS_P...
[ "static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1,\nconst uint8_t *VAR_2, int VAR_3,\nint64_t VAR_4, int64_t VAR_5, int VAR_6, int VAR_7)\n{", "MpegTSWriteStream *ts_st = VAR_1->priv_data;", "MpegTSWrite *ts = VAR_0->priv_data;", "uint8_t buf[TS_PACKET_SIZE];", "uint8_t *q;", "int VAR_8, VAR_9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 38 ], [ 40 ], [ 42 ], [ 44 ], [ 48 ], [ 50 ...
17,911
void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end, int snr_offset, int floor, const uint8_t *bap_tab, uint8_t *bap) { int i, j, end1, v, address; /* special case, if snr offset is -960, set all bap's to zero */ ...
false
FFmpeg
4e745ea83eee0010c0e2f228f47d1394ed1e2170
void ff_ac3_bit_alloc_calc_bap(int16_t *mask, int16_t *psd, int start, int end, int snr_offset, int floor, const uint8_t *bap_tab, uint8_t *bap) { int i, j, end1, v, address; if (snr_offset == -960) { memset(bap, 0, 256); ...
{ "code": [], "line_no": [] }
void FUNC_0(int16_t *VAR_0, int16_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, const uint8_t *VAR_6, uint8_t *VAR_7) { int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12; if (VAR_4 == -960) { memset(VAR_7, 0, 256); retur...
[ "void FUNC_0(int16_t *VAR_0, int16_t *VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int VAR_5,\nconst uint8_t *VAR_6, uint8_t *VAR_7)\n{", "int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;", "if (VAR_4 == -960) {", "memset(VAR_7, 0, 256);", "return;", "}", "VAR_8 = VAR_2;", "VAR_9 = bin_to_band_tab[VAR_2];", "d...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
17,912
static int check_refcounts_l2(BlockDriverState *bs, BdrvCheckResult *res, uint16_t **refcount_table, int64_t *refcount_table_size, int64_t l2_offset, int flags) { BDRVQcowState *s = bs->opaque; uint64_t *l2_table, l2_entry; uint64_t next_contiguous_offset = 0; int i, l2_size, nb_csectors,...
true
qemu
7453c96b78c2b09aa72924f933bb9616e5474194
static int check_refcounts_l2(BlockDriverState *bs, BdrvCheckResult *res, uint16_t **refcount_table, int64_t *refcount_table_size, int64_t l2_offset, int flags) { BDRVQcowState *s = bs->opaque; uint64_t *l2_table, l2_entry; uint64_t next_contiguous_offset = 0; int i, l2_size, nb_csectors,...
{ "code": [ " uint16_t **refcount_table, int64_t *refcount_table_size, int64_t l2_offset,", " int flags)" ], "line_no": [ 3, 5 ] }
static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1, uint16_t **VAR_2, int64_t *VAR_3, int64_t VAR_4, int VAR_5) { BDRVQcowState *s = VAR_0->opaque; uint64_t *l2_table, l2_entry; uint64_t next_contiguous_offset = 0; int VAR_6, VAR_7, VAR_8, VAR_9; VAR_7 = s->VAR...
[ "static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1,\nuint16_t **VAR_2, int64_t *VAR_3, int64_t VAR_4,\nint VAR_5)\n{", "BDRVQcowState *s = VAR_0->opaque;", "uint64_t *l2_table, l2_entry;", "uint64_t next_contiguous_offset = 0;", "int VAR_6, VAR_7, VAR_8, VAR_9;", "VAR_7 = s->VAR_7 * sizeof...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 49 ], [ 51, 55 ], [ 57, 59,...
17,914
static inline void mix_3f_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]); memset(output[2], 0, sizeof(output[2])); memset(output[3], 0, sizeof(output[3])); }
false
FFmpeg
486637af8ef29ec215e0e0b7ecd3b5470f0e04e5
static inline void mix_3f_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]); memset(output[2], 0, sizeof(output[2])); memset(output[3], 0, sizeof(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]); memset(VAR_2[2], 0, sizeof(VAR_2[2])); memset(VAR_2[3], 0, sizeof(VAR_...
[ "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]);", "memset(VAR_2[2], 0, sizeof(VAR_2[2]));", "memset(VAR_2[3], 0, sizeof(VAR_2...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
17,915
int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb) { int pqindex, lowquant; int status; int mbmodetab, imvtab, icbptab, twomvbptab, fourmvbptab; /* useful only for debugging */ int scale, shift, i; /* for initializing LUT for intensity compensation */ v->numref=0; v->p_...
false
FFmpeg
7845f8d282a98d5e01aaeddfa9af698697d8874d
int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb) { int pqindex, lowquant; int status; int mbmodetab, imvtab, icbptab, twomvbptab, fourmvbptab; int scale, shift, i; v->numref=0; v->p_frame_skipped = 0; if (v->second_field) { if(v->fcm!=2 || v->field_mod...
{ "code": [], "line_no": [] }
int FUNC_0(VC1Context *VAR_0, GetBitContext* VAR_1) { int VAR_2, VAR_3; int VAR_4; int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10, VAR_11, VAR_12; VAR_0->numref=0; VAR_0->p_frame_skipped = 0; if (VAR_0->second_field) { if(VAR_0->fcm!=2 || VAR_0->field_mode!=1) ...
[ "int FUNC_0(VC1Context *VAR_0, GetBitContext* VAR_1)\n{", "int VAR_2, VAR_3;", "int VAR_4;", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10, VAR_11, VAR_12;", "VAR_0->numref=0;", "VAR_0->p_frame_skipped = 0;", "if (VAR_0->second_field) {", "if(VAR_0->fcm!=2 || VAR_0->field_mode!=1)\nreturn -1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
17,916
static int vivo_probe(AVProbeData *p) { const unsigned char *buf = p->buf; unsigned c, length = 0; // stream must start with packet of type 0 and sequence number 0 if (*buf++ != 0) return 0; // read at most 2 bytes of coded length c = *buf++; length = c & 0x7F; if (...
false
FFmpeg
035e932d7c039030bd8142bf2f99cbbd1d3e92cf
static int vivo_probe(AVProbeData *p) { const unsigned char *buf = p->buf; unsigned c, length = 0; if (*buf++ != 0) return 0; c = *buf++; length = c & 0x7F; if (c & 0x80) { c = *buf++; length = (length << 7) | (c & 0x7F); } if (c & 0x80...
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { const unsigned char *VAR_1 = VAR_0->VAR_1; unsigned VAR_2, VAR_3 = 0; if (*VAR_1++ != 0) return 0; VAR_2 = *VAR_1++; VAR_3 = VAR_2 & 0x7F; if (VAR_2 & 0x80) { VAR_2 = *VAR_1++; VAR_3 = (VAR_3 << 7) | (VAR_2...
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "const unsigned char *VAR_1 = VAR_0->VAR_1;", "unsigned VAR_2, VAR_3 = 0;", "if (*VAR_1++ != 0)\nreturn 0;", "VAR_2 = *VAR_1++;", "VAR_3 = VAR_2 & 0x7F;", "if (VAR_2 & 0x80) {", "VAR_2 = *VAR_1++;", "VAR_3 = (VAR_3 << 7) | (VAR_2 & 0x7F);", "}", "if (V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13, 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 39, 41 ], [ 43 ], [ 47, 49 ], [ 53 ], [ 55 ] ]
17,917
static void print_report(int is_last_report, int64_t timer_start, int64_t cur_time) { char buf[1024]; AVBPrint buf_script; OutputStream *ost; AVFormatContext *oc; int64_t total_size; AVCodecContext *enc; int frame_number, vid, i; double bitrate; int64_t pts = INT64_MIN; ...
false
FFmpeg
23849339855875b737aee94813b31ddde2e40f9a
static void print_report(int is_last_report, int64_t timer_start, int64_t cur_time) { char buf[1024]; AVBPrint buf_script; OutputStream *ost; AVFormatContext *oc; int64_t total_size; AVCodecContext *enc; int frame_number, vid, i; double bitrate; int64_t pts = INT64_MIN; ...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, int64_t VAR_1, int64_t VAR_2) { char VAR_3[1024]; AVBPrint buf_script; OutputStream *ost; AVFormatContext *oc; int64_t total_size; AVCodecContext *enc; int VAR_4, VAR_5, VAR_6; double VAR_7; int64_t pts = INT64_MIN; static int64_t VAR_8 = ...
[ "static void FUNC_0(int VAR_0, int64_t VAR_1, int64_t VAR_2)\n{", "char VAR_3[1024];", "AVBPrint buf_script;", "OutputStream *ost;", "AVFormatContext *oc;", "int64_t total_size;", "AVCodecContext *enc;", "int VAR_4, VAR_5, VAR_6;", "double VAR_7;", "int64_t pts = INT64_MIN;", "static int64_t VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
17,918
static int put_packetheader(NUTContext *nut, ByteIOContext *bc, int max_size) { put_flush_packet(bc); nut->last_packet_start= nut->packet_start; nut->packet_start+= nut->written_packet_size; nut->packet_size_pos = url_ftell(bc); nut->written_packet_size = max_size; /* packet header */ ...
false
FFmpeg
ee9f36a88eb3e2706ea659acb0ca80c414fa5d8a
static int put_packetheader(NUTContext *nut, ByteIOContext *bc, int max_size) { put_flush_packet(bc); nut->last_packet_start= nut->packet_start; nut->packet_start+= nut->written_packet_size; nut->packet_size_pos = url_ftell(bc); nut->written_packet_size = max_size; put_v(bc, nut->...
{ "code": [], "line_no": [] }
static int FUNC_0(NUTContext *VAR_0, ByteIOContext *VAR_1, int VAR_2) { put_flush_packet(VAR_1); VAR_0->last_packet_start= VAR_0->packet_start; VAR_0->packet_start+= VAR_0->written_packet_size; VAR_0->packet_size_pos = url_ftell(VAR_1); VAR_0->written_packet_size = VAR_2; put_v(VA...
[ "static int FUNC_0(NUTContext *VAR_0, ByteIOContext *VAR_1, int VAR_2)\n{", "put_flush_packet(VAR_1);", "VAR_0->last_packet_start= VAR_0->packet_start;", "VAR_0->packet_start+= VAR_0->written_packet_size;", "VAR_0->packet_size_pos = url_ftell(VAR_1);", "VAR_0->written_packet_size = VAR_2;", "put_v(VAR_1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
17,919
static int decode_mb_cavlc(H264Context *h){ MpegEncContext * const s = &h->s; int mb_xy; int partition_count; unsigned int mb_type, cbp; int dct8x8_allowed= h->pps.transform_8x8_mode; mb_xy = h->mb_xy = s->mb_x + s->mb_y*s->mb_stride; s->dsp.clear_blocks(h->mb); //FIXME avoid if a...
false
FFmpeg
ac5057c2de1678847f1ce5b508fc18a9126b5e20
static int decode_mb_cavlc(H264Context *h){ MpegEncContext * const s = &h->s; int mb_xy; int partition_count; unsigned int mb_type, cbp; int dct8x8_allowed= h->pps.transform_8x8_mode; mb_xy = h->mb_xy = s->mb_x + s->mb_y*s->mb_stride; s->dsp.clear_blocks(h->mb); tprintf(s-...
{ "code": [], "line_no": [] }
static int FUNC_0(H264Context *VAR_0){ MpegEncContext * const s = &VAR_0->s; int VAR_1; int VAR_2; unsigned int VAR_3, VAR_4; int VAR_5= VAR_0->pps.transform_8x8_mode; VAR_1 = VAR_0->VAR_1 = s->mb_x + s->mb_y*s->mb_stride; s->dsp.clear_blocks(VAR_0->mb); tprintf(s->avctx, ...
[ "static int FUNC_0(H264Context *VAR_0){", "MpegEncContext * const s = &VAR_0->s;", "int VAR_1;", "int VAR_2;", "unsigned int VAR_3, VAR_4;", "int VAR_5= VAR_0->pps.transform_8x8_mode;", "VAR_1 = VAR_0->VAR_1 = s->mb_x + s->mb_y*s->mb_stride;", "s->dsp.clear_blocks(VAR_0->mb);", "tprintf(s->avctx, \"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ...
17,920
static int read_dct_coeffs(GetBitContext *gb, int32_t block[64], const uint8_t *scan, const int32_t quant_matrices[16][64], int q) { int coef_list[128]; int mode_list[128]; int i, t, mask, bits, ccoef, mode, sign; int list_start = 64, list_end = 64, list_pos; int co...
false
FFmpeg
3f5d6a665aba439a9309ed735e71403d236a313d
static int read_dct_coeffs(GetBitContext *gb, int32_t block[64], const uint8_t *scan, const int32_t quant_matrices[16][64], int q) { int coef_list[128]; int mode_list[128]; int i, t, mask, bits, ccoef, mode, sign; int list_start = 64, list_end = 64, list_pos; int co...
{ "code": [], "line_no": [] }
static int FUNC_0(GetBitContext *VAR_0, int32_t VAR_1[64], const uint8_t *VAR_2, const int32_t VAR_3[16][64], int VAR_4) { int VAR_5[128]; int VAR_6[128]; int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13; int VAR_14 = 64, VAR_15 = 64, VAR_16; int VAR_17 = 0; ...
[ "static int FUNC_0(GetBitContext *VAR_0, int32_t VAR_1[64], const uint8_t *VAR_2,\nconst int32_t VAR_3[16][64], int VAR_4)\n{", "int VAR_5[128];", "int VAR_6[128];", "int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;", "int VAR_14 = 64, VAR_15 = 64, VAR_16;", "int VAR_17 = 0;", "int VAR_18[64];",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
17,921
static int decode_rle(CamtasiaContext *c) { unsigned char *src = c->decomp_buf; unsigned char *output; int p1, p2, line=c->height, pos=0, i; output = c->pic.data[0] + (c->height - 1) * c->pic.linesize[0]; while(src < c->decomp_buf + c->decomp_size) { p1 = *src++; if(p1 ...
false
FFmpeg
cca1a4265388eed91156216cec7ed5c8c9f8016d
static int decode_rle(CamtasiaContext *c) { unsigned char *src = c->decomp_buf; unsigned char *output; int p1, p2, line=c->height, pos=0, i; output = c->pic.data[0] + (c->height - 1) * c->pic.linesize[0]; while(src < c->decomp_buf + c->decomp_size) { p1 = *src++; if(p1 ...
{ "code": [], "line_no": [] }
static int FUNC_0(CamtasiaContext *VAR_0) { unsigned char *VAR_1 = VAR_0->decomp_buf; unsigned char *VAR_2; int VAR_3, VAR_4, VAR_5=VAR_0->height, VAR_6=0, VAR_7; VAR_2 = VAR_0->pic.data[0] + (VAR_0->height - 1) * VAR_0->pic.linesize[0]; while(VAR_1 < VAR_0->decomp_buf + VAR_0->decomp_si...
[ "static int FUNC_0(CamtasiaContext *VAR_0)\n{", "unsigned char *VAR_1 = VAR_0->decomp_buf;", "unsigned char *VAR_2;", "int VAR_3, VAR_4, VAR_5=VAR_0->height, VAR_6=0, VAR_7;", "VAR_2 = VAR_0->pic.data[0] + (VAR_0->height - 1) * VAR_0->pic.linesize[0];", "while(VAR_1 < VAR_0->decomp_buf + VAR_0->decomp_siz...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
17,922
decode_cabac_residual_internal(H264Context *h, int16_t *block, int cat, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff, int is_dc, int chroma422) { static const int significant_coeff_flag_offset[2...
false
FFmpeg
cdf0877bc341684c56ac1fe057397adbadf329ee
decode_cabac_residual_internal(H264Context *h, int16_t *block, int cat, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff, int is_dc, int chroma422) { static const int significant_coeff_flag_offset[2...
{ "code": [], "line_no": [] }
FUNC_0(H264Context *VAR_0, int16_t *VAR_1, int VAR_2, int VAR_3, const uint8_t *VAR_4, const uint32_t *VAR_5, int VAR_6, int VAR_7, int VAR_8) { static const int VAR_9[2][14] = { { 105+0, 105+15, 105+29, 105+44,...
[ "FUNC_0(H264Context *VAR_0, int16_t *VAR_1,\nint VAR_2, int VAR_3, const uint8_t *VAR_4,\nconst uint32_t *VAR_5, int VAR_6,\nint VAR_7, int VAR_8)\n{", "static const int VAR_9[2][14] = {", "{ 105+0, 105+15, 105+29, 105+44, 105+47, 402, 484+0, 484+15, 484+29, 660, 528+0, 528+15, 528+29, 718 },", "{ 277+0, 277+...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37, 39, 41 ], [ 43 ], [ 45, 47, 49 ...
17,923
static void gen_pool32axf (CPUMIPSState *env, DisasContext *ctx, int rt, int rs, int *is_branch) { int extension = (ctx->opcode >> 6) & 0x3f; int minor = (ctx->opcode >> 12) & 0xf; uint32_t mips32_op; switch (extension) { case TEQ: mips32_op = OPC_TEQ; ...
true
qemu
240ce26a0533a6e5ee472789fbfbd9f7f939197e
static void gen_pool32axf (CPUMIPSState *env, DisasContext *ctx, int rt, int rs, int *is_branch) { int extension = (ctx->opcode >> 6) & 0x3f; int minor = (ctx->opcode >> 12) & 0xf; uint32_t mips32_op; switch (extension) { case TEQ: mips32_op = OPC_TEQ; ...
{ "code": [ "static void gen_pool32axf (CPUMIPSState *env, DisasContext *ctx, int rt, int rs,", " int *is_branch)", " *is_branch = 1;", " *is_branch = 1;", " *is_branch = 1;", " *is_branch = 1;", " *is_branch ...
static void FUNC_0 (CPUMIPSState *VAR_0, DisasContext *VAR_1, int VAR_2, int VAR_3, int *VAR_4) { int VAR_5 = (VAR_1->opcode >> 6) & 0x3f; int VAR_6 = (VAR_1->opcode >> 12) & 0xf; uint32_t mips32_op; switch (VAR_5) { case TEQ: mips32_op = OPC_TEQ; ...
[ "static void FUNC_0 (CPUMIPSState *VAR_0, DisasContext *VAR_1, int VAR_2, int VAR_3,\nint *VAR_4)\n{", "int VAR_5 = (VAR_1->opcode >> 6) & 0x3f;", "int VAR_6 = (VAR_1->opcode >> 12) & 0xf;", "uint32_t mips32_op;", "switch (VAR_5) {", "case TEQ:\nmips32_op = OPC_TEQ;", "goto do_trap;", "case TGE:\nmips...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ], [...
17,924
static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service) { MpegTSWrite *ts = s->priv_data; uint8_t data[SECTION_LENGTH], *q, *desc_length_ptr, *program_info_length_ptr; int val, stream_type, i, err = 0; q = data; put16(&q, 0xe000 | service->pcr_pid); program_info_length...
true
FFmpeg
eb3628d87f67b35e8dd354a466028e93bdd7f9c0
static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service) { MpegTSWrite *ts = s->priv_data; uint8_t data[SECTION_LENGTH], *q, *desc_length_ptr, *program_info_length_ptr; int val, stream_type, i, err = 0; q = data; put16(&q, 0xe000 | service->pcr_pid); program_info_length...
{ "code": [ " memcmp(&st->codec->extradata[21], channel_map_a[st->codec->channels], st->codec->channels) == 0) {", " memcmp(&st->codec->extradata[21], channel_map_b[st->codec->channels], st->codec->channels) == 0) {" ], "line_no": [ 303, ...
static int FUNC_0(AVFormatContext *VAR_0, MpegTSService *VAR_1) { MpegTSWrite *ts = VAR_0->priv_data; uint8_t data[SECTION_LENGTH], *q, *desc_length_ptr, *program_info_length_ptr; int VAR_2, VAR_3, VAR_4, VAR_5 = 0; q = data; put16(&q, 0xe000 | VAR_1->pcr_pid); program_info_length_ptr...
[ "static int FUNC_0(AVFormatContext *VAR_0, MpegTSService *VAR_1)\n{", "MpegTSWrite *ts = VAR_0->priv_data;", "uint8_t data[SECTION_LENGTH], *q, *desc_length_ptr, *program_info_length_ptr;", "int VAR_2, VAR_3, VAR_4, VAR_5 = 0;", "q = data;", "put16(&q, 0xe000 | VAR_1->pcr_pid);", "program_info_length_pt...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
17,926
static void ahci_reset_port(AHCIState *s, int port) { AHCIDevice *d = &s->dev[port]; AHCIPortRegs *pr = &d->port_regs; IDEState *ide_state = &d->port.ifs[0]; int i; DPRINTF(port, "reset port\n"); ide_bus_reset(&d->port); ide_state->ncq_queues = AHCI_MAX_CMDS; pr->scr_stat = 0; pr->sc...
true
qemu
c9b308d20b642c106048f088ccc31f2aa7cf59ba
static void ahci_reset_port(AHCIState *s, int port) { AHCIDevice *d = &s->dev[port]; AHCIPortRegs *pr = &d->port_regs; IDEState *ide_state = &d->port.ifs[0]; int i; DPRINTF(port, "reset port\n"); ide_bus_reset(&d->port); ide_state->ncq_queues = AHCI_MAX_CMDS; pr->scr_stat = 0; pr->sc...
{ "code": [], "line_no": [] }
static void FUNC_0(AHCIState *VAR_0, int VAR_1) { AHCIDevice *d = &VAR_0->dev[VAR_1]; AHCIPortRegs *pr = &d->port_regs; IDEState *ide_state = &d->VAR_1.ifs[0]; int VAR_2; DPRINTF(VAR_1, "reset VAR_1\n"); ide_bus_reset(&d->VAR_1); ide_state->ncq_queues = AHCI_MAX_CMDS; pr->scr_stat = 0; ...
[ "static void FUNC_0(AHCIState *VAR_0, int VAR_1)\n{", "AHCIDevice *d = &VAR_0->dev[VAR_1];", "AHCIPortRegs *pr = &d->port_regs;", "IDEState *ide_state = &d->VAR_1.ifs[0];", "int VAR_2;", "DPRINTF(VAR_1, \"reset VAR_1\\n\");", "ide_bus_reset(&d->VAR_1);", "ide_state->ncq_queues = AHCI_MAX_CMDS;", "pr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ],...
17,927
int mjpeg_init(MpegEncContext *s) { MJpegContext *m; m = malloc(sizeof(MJpegContext)); if (!m) return -1; /* build all the huffman tables */ build_huffman_codes(m->huff_size_dc_luminance, m->huff_code_dc_luminance, bits_dc_luminance, ...
true
FFmpeg
d7e9533aa06f4073a27812349b35ba5fede11ca1
int mjpeg_init(MpegEncContext *s) { MJpegContext *m; m = malloc(sizeof(MJpegContext)); if (!m) return -1; build_huffman_codes(m->huff_size_dc_luminance, m->huff_code_dc_luminance, bits_dc_luminance, val_dc_luminance); ...
{ "code": [], "line_no": [] }
int FUNC_0(MpegEncContext *VAR_0) { MJpegContext *m; m = malloc(sizeof(MJpegContext)); if (!m) return -1; build_huffman_codes(m->huff_size_dc_luminance, m->huff_code_dc_luminance, bits_dc_luminance, val_dc_luminance); ...
[ "int FUNC_0(MpegEncContext *VAR_0)\n{", "MJpegContext *m;", "m = malloc(sizeof(MJpegContext));", "if (!m)\nreturn -1;", "build_huffman_codes(m->huff_size_dc_luminance,\nm->huff_code_dc_luminance,\nbits_dc_luminance,\nval_dc_luminance);", "build_huffman_codes(m->huff_size_dc_chrominance,\nm->huff_code_dc_c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5, 6 ], [ 8, 9, 10, 11 ], [ 12, 13, 14, 15 ], [ 16, 17, 18, 19 ], [ 20, 21, 22, 23 ], [ 24 ], [ 25 ], [ 26 ] ]
17,928
static void *bochs_bios_init(void) { void *fw_cfg; uint8_t *smbios_table; size_t smbios_len; uint64_t *numa_fw_cfg; int i, j; fw_cfg = fw_cfg_init(BIOS_CFG_IOPORT, BIOS_CFG_IOPORT + 1, 0, 0); fw_cfg_add_i32(fw_cfg, FW_CFG_ID, 1); fw_cfg_add_i64(fw_cfg, FW_CFG_RAM_SIZE, (uint...
true
qemu
089da572b956ef0f8f5b8d5917358e07892a77c2
static void *bochs_bios_init(void) { void *fw_cfg; uint8_t *smbios_table; size_t smbios_len; uint64_t *numa_fw_cfg; int i, j; fw_cfg = fw_cfg_init(BIOS_CFG_IOPORT, BIOS_CFG_IOPORT + 1, 0, 0); fw_cfg_add_i32(fw_cfg, FW_CFG_ID, 1); fw_cfg_add_i64(fw_cfg, FW_CFG_RAM_SIZE, (uint...
{ "code": [ " fw_cfg_add_bytes(fw_cfg, FW_CFG_ACPI_TABLES, (uint8_t *)acpi_tables,", " acpi_tables_len);", " fw_cfg_add_bytes(fw_cfg, FW_CFG_E820_TABLE, (uint8_t *)&e820_table,", " sizeof(e820_table));", " fw_cfg_add_bytes(fw_cfg, FW_CFG_HPET, (uint...
static void *FUNC_0(void) { void *VAR_0; uint8_t *smbios_table; size_t smbios_len; uint64_t *numa_fw_cfg; int VAR_1, VAR_2; VAR_0 = fw_cfg_init(BIOS_CFG_IOPORT, BIOS_CFG_IOPORT + 1, 0, 0); fw_cfg_add_i32(VAR_0, FW_CFG_ID, 1); fw_cfg_add_i64(VAR_0, FW_CFG_RAM_SIZE, (uint64_t)...
[ "static void *FUNC_0(void)\n{", "void *VAR_0;", "uint8_t *smbios_table;", "size_t smbios_len;", "uint64_t *numa_fw_cfg;", "int VAR_1, VAR_2;", "VAR_0 = fw_cfg_init(BIOS_CFG_IOPORT, BIOS_CFG_IOPORT + 1, 0, 0);", "fw_cfg_add_i32(VAR_0, FW_CFG_ID, 1);", "fw_cfg_add_i64(VAR_0, FW_CFG_RAM_SIZE, (uint64_t...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 33 ], [ 35, 37, 39 ], [ 41, 43 ], [ 47, 49 ], [ 59 ], [ 61 ], [...
17,930
static CharDriverState *gd_vc_handler(ChardevVC *vc, Error **errp) { ChardevCommon *common = qapi_ChardevVC_base(vc); CharDriverState *chr; chr = qemu_chr_alloc(common, errp); if (!chr) { chr->chr_write = gd_vc_chr_write; chr->chr_set_echo = gd_vc_chr_set_echo; /* Temporary, until gd_vc_vte_...
true
qemu
c952b71582e2e4be286087ad34de5e3ec1b8d974
static CharDriverState *gd_vc_handler(ChardevVC *vc, Error **errp) { ChardevCommon *common = qapi_ChardevVC_base(vc); CharDriverState *chr; chr = qemu_chr_alloc(common, errp); if (!chr) { chr->chr_write = gd_vc_chr_write; chr->chr_set_echo = gd_vc_chr_set_echo; chr->opaque = g_new0(Virt...
{ "code": [], "line_no": [] }
static CharDriverState *FUNC_0(ChardevVC *vc, Error **errp) { ChardevCommon *common = qapi_ChardevVC_base(vc); CharDriverState *chr; chr = qemu_chr_alloc(common, errp); if (!chr) { chr->chr_write = gd_vc_chr_write; chr->chr_set_echo = gd_vc_chr_set_echo; chr->opaque = g_new0(VirtualCons...
[ "static CharDriverState *FUNC_0(ChardevVC *vc, Error **errp)\n{", "ChardevCommon *common = qapi_ChardevVC_base(vc);", "CharDriverState *chr;", "chr = qemu_chr_alloc(common, errp);", "if (!chr) {", "chr->chr_write = gd_vc_chr_write;", "chr->chr_set_echo = gd_vc_chr_set_echo;", "chr->opaque = g_new0(Vir...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 10 ], [ 11 ], [ 12 ] ]
17,931
int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx) { if (!strcasecmp(color_string, "random") || !strcasecmp(color_string, "bikeshed")) { int rgba = ff_random_get_seed(); rgba_color[0] = rgba >> 24; rgba_color[1] = rgba >> 16; rgba_color[2] = rgba >...
true
FFmpeg
7d132c544b2447ef5a6b04ca6f21e245d6a48986
int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx) { if (!strcasecmp(color_string, "random") || !strcasecmp(color_string, "bikeshed")) { int rgba = ff_random_get_seed(); rgba_color[0] = rgba >> 24; rgba_color[1] = rgba >> 16; rgba_color[2] = rgba >...
{ "code": [ " int rgba = strtol(color_string, &tail, 16);" ], "line_no": [ 25 ] }
int FUNC_0(uint8_t *VAR_0, const char *VAR_1, void *VAR_2) { if (!strcasecmp(VAR_1, "random") || !strcasecmp(VAR_1, "bikeshed")) { int VAR_6 = ff_random_get_seed(); VAR_0[0] = VAR_6 >> 24; VAR_0[1] = VAR_6 >> 16; VAR_0[2] = VAR_6 >> 8; VAR_0[3] = VAR_6; } else ...
[ "int FUNC_0(uint8_t *VAR_0, const char *VAR_1, void *VAR_2)\n{", "if (!strcasecmp(VAR_1, \"random\") || !strcasecmp(VAR_1, \"bikeshed\")) {", "int VAR_6 = ff_random_get_seed();", "VAR_0[0] = VAR_6 >> 24;", "VAR_0[1] = VAR_6 >> 16;", "VAR_0[2] = VAR_6 >> 8;", "VAR_0[3] = VAR_6;", "} else", "if (!strn...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
17,934
static av_cold int aac_encode_init(AVCodecContext *avctx) { AACEncContext *s = avctx->priv_data; int i; const uint8_t *sizes[2]; uint8_t grouping[AAC_MAX_CHANNELS]; int lengths[2]; avctx->frame_size = 1024; for (i = 0; i < 16; i++) if (avctx->sample_rate == avpriv_mpeg4a...
true
FFmpeg
17ae608127324cabd083202a32a8dc210d30c3a1
static av_cold int aac_encode_init(AVCodecContext *avctx) { AACEncContext *s = avctx->priv_data; int i; const uint8_t *sizes[2]; uint8_t grouping[AAC_MAX_CHANNELS]; int lengths[2]; avctx->frame_size = 1024; for (i = 0; i < 16; i++) if (avctx->sample_rate == avpriv_mpeg4a...
{ "code": [ " int i;", " if (i == 16) {", " av_log(avctx, AV_LOG_ERROR, \"Unsupported sample rate %d\\n\", avctx->sample_rate);", " return -1;", " if (avctx->channels > AAC_MAX_CHANNELS) {", " av_log(avctx, AV_LOG_ERROR, \"Unsupported number of channels: %d\\n\", ...
static av_cold int FUNC_0(AVCodecContext *avctx) { AACEncContext *s = avctx->priv_data; int VAR_0; const uint8_t *VAR_1[2]; uint8_t grouping[AAC_MAX_CHANNELS]; int VAR_2[2]; avctx->frame_size = 1024; for (VAR_0 = 0; VAR_0 < 16; VAR_0++) if (avctx->sample_rate == avpriv_m...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "AACEncContext *s = avctx->priv_data;", "int VAR_0;", "const uint8_t *VAR_1[2];", "uint8_t grouping[AAC_MAX_CHANNELS];", "int VAR_2[2];", "avctx->frame_size = 1024;", "for (VAR_0 = 0; VAR_0 < 16; VAR_0++)", "if (avctx->sample_rate == avpriv_mpeg...
[ 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
17,935
static int of_dpa_cmd_flow_add(OfDpa *of_dpa, uint64_t cookie, RockerTlv **flow_tlvs) { OfDpaFlow *flow = of_dpa_flow_find(of_dpa, cookie); int err = ROCKER_OK; if (flow) { return -ROCKER_EEXIST; } flow = of_dpa_flow_alloc(cookie); if (!flow) {...
true
qemu
107e4b352cc309f9bd7588ef1a44549200620078
static int of_dpa_cmd_flow_add(OfDpa *of_dpa, uint64_t cookie, RockerTlv **flow_tlvs) { OfDpaFlow *flow = of_dpa_flow_find(of_dpa, cookie); int err = ROCKER_OK; if (flow) { return -ROCKER_EEXIST; } flow = of_dpa_flow_alloc(cookie); if (!flow) {...
{ "code": [ " if (!flow) {", " if (!flow) {", " return -ROCKER_ENOMEM;", " return -ROCKER_ENOMEM;", " return -ROCKER_ENOMEM;" ], "line_no": [ 23, 23, 25, 25, 25 ] }
static int FUNC_0(OfDpa *VAR_0, uint64_t VAR_1, RockerTlv **VAR_2) { OfDpaFlow *flow = of_dpa_flow_find(VAR_0, VAR_1); int VAR_3 = ROCKER_OK; if (flow) { return -ROCKER_EEXIST; } flow = of_dpa_flow_alloc(VAR_1); if (!flow) { return -RO...
[ "static int FUNC_0(OfDpa *VAR_0, uint64_t VAR_1,\nRockerTlv **VAR_2)\n{", "OfDpaFlow *flow = of_dpa_flow_find(VAR_0, VAR_1);", "int VAR_3 = ROCKER_OK;", "if (flow) {", "return -ROCKER_EEXIST;", "}", "flow = of_dpa_flow_alloc(VAR_1);", "if (!flow) {", "return -ROCKER_ENOMEM;", "}", "VAR_3 = of_dp...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ] ]
17,936
static int epaf_read_header(AVFormatContext *s) { int le, sample_rate, codec, channels; AVStream *st; avio_skip(s->pb, 4); if (avio_rl32(s->pb)) return AVERROR_INVALIDDATA; le = avio_rl32(s->pb); if (le && le != 1) return AVERROR_INVALIDDATA; if (le) { ...
true
FFmpeg
74bd17d31648c77d01a0d35b09724715bc40fba2
static int epaf_read_header(AVFormatContext *s) { int le, sample_rate, codec, channels; AVStream *st; avio_skip(s->pb, 4); if (avio_rl32(s->pb)) return AVERROR_INVALIDDATA; le = avio_rl32(s->pb); if (le && le != 1) return AVERROR_INVALIDDATA; if (le) { ...
{ "code": [ " if (!channels || !sample_rate)" ], "line_no": [ 47 ] }
static int FUNC_0(AVFormatContext *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4; AVStream *st; avio_skip(VAR_0->pb, 4); if (avio_rl32(VAR_0->pb)) return AVERROR_INVALIDDATA; VAR_1 = avio_rl32(VAR_0->pb); if (VAR_1 && VAR_1 != 1) return AVERROR_INVALIDDATA; if (VAR_...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4;", "AVStream *st;", "avio_skip(VAR_0->pb, 4);", "if (avio_rl32(VAR_0->pb))\nreturn AVERROR_INVALIDDATA;", "VAR_1 = avio_rl32(VAR_0->pb);", "if (VAR_1 && VAR_1 != 1)\nreturn AVERROR_INVALIDDATA;", "if (VAR_1) {", "VAR_2 =...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 53 ], ...
17,937
static void audio_init (void) { size_t i; int done = 0; const char *drvname; VMChangeStateEntry *e; AudioState *s = &glob_audio_state; if (s->drv) { return; } QLIST_INIT (&s->hw_head_out); QLIST_INIT (&s->hw_head_in); QLIST_INIT (&s->cap_head); atexit...
true
qemu
7e274652e4e2225298a2735c3dcc74f2f8ba7b07
static void audio_init (void) { size_t i; int done = 0; const char *drvname; VMChangeStateEntry *e; AudioState *s = &glob_audio_state; if (s->drv) { return; } QLIST_INIT (&s->hw_head_out); QLIST_INIT (&s->hw_head_in); QLIST_INIT (&s->cap_head); atexit...
{ "code": [ " if (!s->ts) {", " hw_error(\"Could not create audio timer\\n\");", " if (!done) {", " hw_error(\"Could not initialize audio subsystem\\n\");", " else {", " dolog (\"warning: Using timer based audio emulation\\n\");" ], "line_no": ...
static void FUNC_0 (void) { size_t i; int VAR_0 = 0; const char *VAR_1; VMChangeStateEntry *e; AudioState *s = &glob_audio_state; if (s->drv) { return; } QLIST_INIT (&s->hw_head_out); QLIST_INIT (&s->hw_head_in); QLIST_INIT (&s->cap_head); atexit (aud...
[ "static void FUNC_0 (void)\n{", "size_t i;", "int VAR_0 = 0;", "const char *VAR_1;", "VMChangeStateEntry *e;", "AudioState *s = &glob_audio_state;", "if (s->drv) {", "return;", "}", "QLIST_INIT (&s->hw_head_out);", "QLIST_INIT (&s->hw_head_in);", "QLIST_INIT (&s->cap_head);", "atexit (audio_...
[ 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, 0, 0, 0, 0, 0, 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, 1, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ...
17,939
static void taihu_405ep_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *kernel_filename = machine->kernel_filename; const char *initrd_filename = machine->initrd_filename; char *filename; qemu_irq *pic; MemoryRegion *sysmem = get_system_memory(); Me...
true
qemu
e206ad48333c50373663945746828fc893b50700
static void taihu_405ep_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *kernel_filename = machine->kernel_filename; const char *initrd_filename = machine->initrd_filename; char *filename; qemu_irq *pic; MemoryRegion *sysmem = get_system_memory(); Me...
{ "code": [ " BIOS_SIZE);", " memory_region_allocate_system_memory(&ram_memories[0], NULL,", " \"taihu_405ep.ram-0\", 0x04000000);", " memory_region_allocate_system_memory(&ram_memories[1], NULL,", " ...
static void FUNC_0(MachineState *VAR_0) { ram_addr_t ram_size = VAR_0->ram_size; const char *VAR_1 = VAR_0->VAR_1; const char *VAR_2 = VAR_0->VAR_2; char *VAR_3; qemu_irq *pic; MemoryRegion *sysmem = get_system_memory(); MemoryRegion *bios; MemoryRegion *ram_memories = g_malloc(...
[ "static void FUNC_0(MachineState *VAR_0)\n{", "ram_addr_t ram_size = VAR_0->ram_size;", "const char *VAR_1 = VAR_0->VAR_1;", "const char *VAR_2 = VAR_0->VAR_2;", "char *VAR_3;", "qemu_irq *pic;", "MemoryRegion *sysmem = get_system_memory();", "MemoryRegion *bios;", "MemoryRegion *ram_memories = g_ma...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 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, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39, 41 ], [ 43 ], [ 45 ], [...
17,940
static void qmp_input_type_any(Visitor *v, const char *name, QObject **obj, Error **errp) { QmpInputVisitor *qiv = to_qiv(v); QObject *qobj = qmp_input_get_object(qiv, name, true); qobject_incref(qobj); *obj = qobj;
true
qemu
c489780203f9b22aca5539ec7589b7140bdc951f
static void qmp_input_type_any(Visitor *v, const char *name, QObject **obj, Error **errp) { QmpInputVisitor *qiv = to_qiv(v); QObject *qobj = qmp_input_get_object(qiv, name, true); qobject_incref(qobj); *obj = qobj;
{ "code": [], "line_no": [] }
static void FUNC_0(Visitor *VAR_0, const char *VAR_1, QObject **VAR_2, Error **VAR_3) { QmpInputVisitor *qiv = to_qiv(VAR_0); QObject *qobj = qmp_input_get_object(qiv, VAR_1, true); qobject_incref(qobj); *VAR_2 = qobj;
[ "static void FUNC_0(Visitor *VAR_0, const char *VAR_1, QObject **VAR_2,\nError **VAR_3)\n{", "QmpInputVisitor *qiv = to_qiv(VAR_0);", "QObject *qobj = qmp_input_get_object(qiv, VAR_1, true);", "qobject_incref(qobj);", "*VAR_2 = qobj;" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ] ]
17,941
PPC_OP(clear_xer_cr) { xer_so = 0; xer_ov = 0; xer_ca = 0; RETURN(); }
true
qemu
e864cabdc0a38bb598ddcf88b264896dc6f3e3b2
PPC_OP(clear_xer_cr) { xer_so = 0; xer_ov = 0; xer_ca = 0; RETURN(); }
{ "code": [ "PPC_OP(clear_xer_cr)" ], "line_no": [ 1 ] }
FUNC_0(VAR_0) { xer_so = 0; xer_ov = 0; xer_ca = 0; RETURN(); }
[ "FUNC_0(VAR_0)\n{", "xer_so = 0;", "xer_ov = 0;", "xer_ca = 0;", "RETURN();", "}" ]
[ 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
17,942
static void flush_encoders(void) { int i, ret; for (i = 0; i < nb_output_streams; i++) { OutputStream *ost = output_streams[i]; AVCodecContext *enc = ost->enc_ctx; OutputFile *of = output_files[ost->file_index]; if (!ost->encoding_needed) continue; ...
true
FFmpeg
4b192ffdbe226461d8a07fd36d655ec13b2c7582
static void flush_encoders(void) { int i, ret; for (i = 0; i < nb_output_streams; i++) { OutputStream *ost = output_streams[i]; AVCodecContext *enc = ost->enc_ctx; OutputFile *of = output_files[ost->file_index]; if (!ost->encoding_needed) continue; ...
{ "code": [ " char error[1024];", " char error[1024];" ], "line_no": [ 33, 33 ] }
static void FUNC_0(void) { int VAR_0, VAR_1; for (VAR_0 = 0; VAR_0 < nb_output_streams; VAR_0++) { OutputStream *ost = output_streams[VAR_0]; AVCodecContext *enc = ost->enc_ctx; OutputFile *of = output_files[ost->file_index]; if (!ost->encoding_needed) ...
[ "static void FUNC_0(void)\n{", "int VAR_0, VAR_1;", "for (VAR_0 = 0; VAR_0 < nb_output_streams; VAR_0++) {", "OutputStream *ost = output_streams[VAR_0];", "AVCodecContext *enc = ost->enc_ctx;", "OutputFile *of = output_files[ost->file_index];", "if (!ost->encoding_needed)\ncontinue;", "if (!ost...
[ 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, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 29 ], [ 31 ], [ 33 ], [ 37, 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 61 ], ...
17,944
int fw_cfg_add_i32(FWCfgState *s, uint16_t key, uint32_t value) { uint32_t *copy; copy = g_malloc(sizeof(value)); *copy = cpu_to_le32(value); return fw_cfg_add_bytes(s, key, (uint8_t *)copy, sizeof(value)); }
true
qemu
4cad3867b6df2c0826ae508a9fe15dd0b9d8936a
int fw_cfg_add_i32(FWCfgState *s, uint16_t key, uint32_t value) { uint32_t *copy; copy = g_malloc(sizeof(value)); *copy = cpu_to_le32(value); return fw_cfg_add_bytes(s, key, (uint8_t *)copy, sizeof(value)); }
{ "code": [ " return fw_cfg_add_bytes(s, key, (uint8_t *)copy, sizeof(value));", "int fw_cfg_add_i32(FWCfgState *s, uint16_t key, uint32_t value)", " return fw_cfg_add_bytes(s, key, (uint8_t *)copy, sizeof(value));", " return fw_cfg_add_bytes(s, key, (uint8_t *)copy, sizeof(value));" ], "...
int FUNC_0(FWCfgState *VAR_0, uint16_t VAR_1, uint32_t VAR_2) { uint32_t *copy; copy = g_malloc(sizeof(VAR_2)); *copy = cpu_to_le32(VAR_2); return fw_cfg_add_bytes(VAR_0, VAR_1, (uint8_t *)copy, sizeof(VAR_2)); }
[ "int FUNC_0(FWCfgState *VAR_0, uint16_t VAR_1, uint32_t VAR_2)\n{", "uint32_t *copy;", "copy = g_malloc(sizeof(VAR_2));", "*copy = cpu_to_le32(VAR_2);", "return fw_cfg_add_bytes(VAR_0, VAR_1, (uint8_t *)copy, sizeof(VAR_2));", "}" ]
[ 1, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
17,945
static void use_normal_update_speed(WmallDecodeCtx *s, int ich) { int ilms, recent, icoef; s->update_speed[ich] = 8; for (ilms = s->cdlms_ttl[ich]; ilms >= 0; ilms--) { recent = s->cdlms[ich][ilms].recent; if (s->bV3RTM) { for (icoef = 0; icoef < s->cdlms[ich][ilms].order;...
true
FFmpeg
6cf31ef263d36f6b89d9b64f15ca81cef4f24901
static void use_normal_update_speed(WmallDecodeCtx *s, int ich) { int ilms, recent, icoef; s->update_speed[ich] = 8; for (ilms = s->cdlms_ttl[ich]; ilms >= 0; ilms--) { recent = s->cdlms[ich][ilms].recent; if (s->bV3RTM) { for (icoef = 0; icoef < s->cdlms[ich][ilms].order;...
{ "code": [ " for (ilms = s->cdlms_ttl[ich]; ilms >= 0; ilms--) {", " for (ilms = s->cdlms_ttl[ich]; ilms >= 0; ilms--) {" ], "line_no": [ 9, 9 ] }
static void FUNC_0(WmallDecodeCtx *VAR_0, int VAR_1) { int VAR_2, VAR_3, VAR_4; VAR_0->update_speed[VAR_1] = 8; for (VAR_2 = VAR_0->cdlms_ttl[VAR_1]; VAR_2 >= 0; VAR_2--) { VAR_3 = VAR_0->cdlms[VAR_1][VAR_2].VAR_3; if (VAR_0->bV3RTM) { for (VAR_4 = 0; VAR_4 < VAR_0->cdlms[...
[ "static void FUNC_0(WmallDecodeCtx *VAR_0, int VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "VAR_0->update_speed[VAR_1] = 8;", "for (VAR_2 = VAR_0->cdlms_ttl[VAR_1]; VAR_2 >= 0; VAR_2--) {", "VAR_3 = VAR_0->cdlms[VAR_1][VAR_2].VAR_3;", "if (VAR_0->bV3RTM) {", "for (VAR_4 = 0; VAR_4 < VAR_0->cdlms[VAR_1][VAR_...
[ 0, 0, 0, 1, 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 ] ]
17,946
static int ram_save_target_page(RAMState *rs, PageSearchStatus *pss, bool last_stage, ram_addr_t dirty_ram_abs) { int res = 0; /* Check the pages is dirty and if it is send it */ if (migration_bitmap_clear_dirty(rs, dirty_ram_abs)) { unsigned long *unsentmap; ...
true
qemu
06b106889a09277617fc8c542397a9f595ee605a
static int ram_save_target_page(RAMState *rs, PageSearchStatus *pss, bool last_stage, ram_addr_t dirty_ram_abs) { int res = 0; if (migration_bitmap_clear_dirty(rs, dirty_ram_abs)) { unsigned long *unsentmap; if (migrate_use_compre...
{ "code": [ " bool last_stage, ram_addr_t dirty_ram_abs)", " if (migration_bitmap_clear_dirty(rs, dirty_ram_abs)) {", " clear_bit(dirty_ram_abs >> TARGET_PAGE_BITS, unsentmap);" ], "line_no": [ 3, 13, 53 ] }
static int FUNC_0(RAMState *VAR_0, PageSearchStatus *VAR_1, bool VAR_2, ram_addr_t VAR_3) { int VAR_4 = 0; if (migration_bitmap_clear_dirty(VAR_0, VAR_3)) { unsigned long *VAR_5; if (migrate_use_compression() && (VAR_...
[ "static int FUNC_0(RAMState *VAR_0, PageSearchStatus *VAR_1,\nbool VAR_2, ram_addr_t VAR_3)\n{", "int VAR_4 = 0;", "if (migration_bitmap_clear_dirty(VAR_0, VAR_3)) {", "unsigned long *VAR_5;", "if (migrate_use_compression()\n&& (VAR_0->ram_bulk_stage || !migrate_use_xbzrle())) {", "VAR_4 = ram_save_compre...
[ 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 13 ], [ 15 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 61 ], [ 63...
17,947
static int vmdk_parent_open(BlockDriverState *bs, const char * filename) { BDRVVmdkState *s = bs->opaque; char *p_name; char desc[DESC_SIZE]; char parent_img_name[1024]; /* the descriptor offset = 0x200 */ if (bdrv_pread(s->hd, 0x200, desc, DESC_SIZE) != DESC_SIZE) return -1; ...
true
qemu
630530a6529bc3da9ab8aead7053dc753cb9ac77
static int vmdk_parent_open(BlockDriverState *bs, const char * filename) { BDRVVmdkState *s = bs->opaque; char *p_name; char desc[DESC_SIZE]; char parent_img_name[1024]; if (bdrv_pread(s->hd, 0x200, desc, DESC_SIZE) != DESC_SIZE) return -1; if ((p_name = strstr(desc,"p...
{ "code": [ " if (bdrv_open(s->hd->backing_hd, parent_img_name, 0) < 0)", " return -1;" ], "line_no": [ 67, 35 ] }
static int FUNC_0(BlockDriverState *VAR_0, const char * VAR_1) { BDRVVmdkState *s = VAR_0->opaque; char *VAR_2; char VAR_3[DESC_SIZE]; char VAR_4[1024]; if (bdrv_pread(s->hd, 0x200, VAR_3, DESC_SIZE) != DESC_SIZE) return -1; if ((VAR_2 = strstr(VAR_3,"parentFileNameHin...
[ "static int FUNC_0(BlockDriverState *VAR_0, const char * VAR_1)\n{", "BDRVVmdkState *s = VAR_0->opaque;", "char *VAR_2;", "char VAR_3[DESC_SIZE];", "char VAR_4[1024];", "if (bdrv_pread(s->hd, 0x200, VAR_3, DESC_SIZE) != DESC_SIZE)\nreturn -1;", "if ((VAR_2 = strstr(VAR_3,\"parentFileNameHint\")) != 0) {...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [...
17,948
static int sd_snapshot_list(BlockDriverState *bs, QEMUSnapshotInfo **psn_tab) { Error *local_err = NULL; BDRVSheepdogState *s = bs->opaque; SheepdogReq req; int fd, nr = 1024, ret, max = BITS_TO_LONGS(SD_NR_VDIS) * sizeof(long); QEMUSnapshotInfo *sn_tab = NULL; unsigned wlen, rlen; i...
true
qemu
02c4f26b1517d9e403ec10d6f6ca3c0276d19e43
static int sd_snapshot_list(BlockDriverState *bs, QEMUSnapshotInfo **psn_tab) { Error *local_err = NULL; BDRVSheepdogState *s = bs->opaque; SheepdogReq req; int fd, nr = 1024, ret, max = BITS_TO_LONGS(SD_NR_VDIS) * sizeof(long); QEMUSnapshotInfo *sn_tab = NULL; unsigned wlen, rlen; i...
{ "code": [ " sn_tab = g_malloc0(nr * sizeof(*sn_tab));" ], "line_no": [ 83 ] }
static int FUNC_0(BlockDriverState *VAR_0, QEMUSnapshotInfo **VAR_1) { Error *local_err = NULL; BDRVSheepdogState *s = VAR_0->opaque; SheepdogReq req; int VAR_2, VAR_3 = 1024, VAR_4, VAR_5 = BITS_TO_LONGS(SD_NR_VDIS) * sizeof(long); QEMUSnapshotInfo *sn_tab = NULL; unsigned VAR_6, VAR_7; ...
[ "static int FUNC_0(BlockDriverState *VAR_0, QEMUSnapshotInfo **VAR_1)\n{", "Error *local_err = NULL;", "BDRVSheepdogState *s = VAR_0->opaque;", "SheepdogReq req;", "int VAR_2, VAR_3 = 1024, VAR_4, VAR_5 = BITS_TO_LONGS(SD_NR_VDIS) * sizeof(long);", "QEMUSnapshotInfo *sn_tab = NULL;", "unsigned VAR_6, VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
17,949
static void config_parse(GAConfig *config, int argc, char **argv) { const char *sopt = "hVvdm:p:l:f:F::b:s:t:D"; int opt_ind = 0, ch; const struct option lopt[] = { { "help", 0, NULL, 'h' }, { "version", 0, NULL, 'V' }, { "dump-conf", 0, NULL, 'D' }, { "logfile", 1, N...
true
qemu
6eaeae37a5fdd0a1ef88ed9ab4b807669ffc0e2d
static void config_parse(GAConfig *config, int argc, char **argv) { const char *sopt = "hVvdm:p:l:f:F::b:s:t:D"; int opt_ind = 0, ch; const struct option lopt[] = { { "help", 0, NULL, 'h' }, { "version", 0, NULL, 'V' }, { "dump-conf", 0, NULL, 'D' }, { "logfile", 1, N...
{ "code": [ " config->log_level = G_LOG_LEVEL_ERROR | G_LOG_LEVEL_CRITICAL;" ], "line_no": [ 51 ] }
static void FUNC_0(GAConfig *VAR_0, int VAR_1, char **VAR_2) { const char *VAR_3 = "hVvdm:p:l:f:F::b:s:t:D"; int VAR_4 = 0, VAR_5; const struct option VAR_6[] = { { "help", 0, NULL, 'h' }, { "version", 0, NULL, 'V' }, { "dump-conf", 0, NULL, 'D' }, { "logfile", 1, NUL...
[ "static void FUNC_0(GAConfig *VAR_0, int VAR_1, char **VAR_2)\n{", "const char *VAR_3 = \"hVvdm:p:l:f:F::b:s:t:D\";", "int VAR_4 = 0, VAR_5;", "const struct option VAR_6[] = {", "{ \"help\", 0, NULL, 'h' },", "{ \"version\", 0, NULL, 'V' },", "{ \"dump-conf\", 0, NULL, 'D' },", "{ \"logfile\", 1, NULL...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41, 43 ], [ 45 ...
17,950
static void gen_abs(DisasContext *ctx) { int l1 = gen_new_label(); int l2 = gen_new_label(); tcg_gen_brcondi_tl(TCG_COND_GE, cpu_gpr[rA(ctx->opcode)], 0, l1); tcg_gen_neg_tl(cpu_gpr[rD(ctx->opcode)], cpu_gpr[rA(ctx->opcode)]); tcg_gen_br(l2); gen_set_label(l1); tcg_gen_mov_tl(cpu_gpr...
false
qemu
42a268c241183877192c376d03bd9b6d527407c7
static void gen_abs(DisasContext *ctx) { int l1 = gen_new_label(); int l2 = gen_new_label(); tcg_gen_brcondi_tl(TCG_COND_GE, cpu_gpr[rA(ctx->opcode)], 0, l1); tcg_gen_neg_tl(cpu_gpr[rD(ctx->opcode)], cpu_gpr[rA(ctx->opcode)]); tcg_gen_br(l2); gen_set_label(l1); tcg_gen_mov_tl(cpu_gpr...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0) { int VAR_1 = gen_new_label(); int VAR_2 = gen_new_label(); tcg_gen_brcondi_tl(TCG_COND_GE, cpu_gpr[rA(VAR_0->opcode)], 0, VAR_1); tcg_gen_neg_tl(cpu_gpr[rD(VAR_0->opcode)], cpu_gpr[rA(VAR_0->opcode)]); tcg_gen_br(VAR_2); gen_set_label(VAR_1); ...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "int VAR_1 = gen_new_label();", "int VAR_2 = gen_new_label();", "tcg_gen_brcondi_tl(TCG_COND_GE, cpu_gpr[rA(VAR_0->opcode)], 0, VAR_1);", "tcg_gen_neg_tl(cpu_gpr[rD(VAR_0->opcode)], cpu_gpr[rA(VAR_0->opcode)]);", "tcg_gen_br(VAR_2);", "gen_set_label(VAR_1);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ] ]
17,951
static void ga_channel_client_close(GAChannel *c) { g_assert(c->client_channel); g_io_channel_shutdown(c->client_channel, true, NULL); g_io_channel_unref(c->client_channel); c->client_channel = NULL; if (c->method == GA_CHANNEL_UNIX_LISTEN && c->listen_channel) { ga_channel_listen_add...
false
qemu
f06b2031a31cdd3acf6f61a977e505b8c6b58f73
static void ga_channel_client_close(GAChannel *c) { g_assert(c->client_channel); g_io_channel_shutdown(c->client_channel, true, NULL); g_io_channel_unref(c->client_channel); c->client_channel = NULL; if (c->method == GA_CHANNEL_UNIX_LISTEN && c->listen_channel) { ga_channel_listen_add...
{ "code": [], "line_no": [] }
static void FUNC_0(GAChannel *VAR_0) { g_assert(VAR_0->client_channel); g_io_channel_shutdown(VAR_0->client_channel, true, NULL); g_io_channel_unref(VAR_0->client_channel); VAR_0->client_channel = NULL; if (VAR_0->method == GA_CHANNEL_UNIX_LISTEN && VAR_0->listen_channel) { ga_channel...
[ "static void FUNC_0(GAChannel *VAR_0)\n{", "g_assert(VAR_0->client_channel);", "g_io_channel_shutdown(VAR_0->client_channel, true, NULL);", "g_io_channel_unref(VAR_0->client_channel);", "VAR_0->client_channel = NULL;", "if (VAR_0->method == GA_CHANNEL_UNIX_LISTEN && VAR_0->listen_channel) {", "ga_channe...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
17,952
static int omap_validate_tipb_addr(struct omap_mpu_state_s *s, target_phys_addr_t addr) { return range_covers_byte(0xfffb0000, 0xffff0000 - 0xfffb0000, addr); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static int omap_validate_tipb_addr(struct omap_mpu_state_s *s, target_phys_addr_t addr) { return range_covers_byte(0xfffb0000, 0xffff0000 - 0xfffb0000, addr); }
{ "code": [], "line_no": [] }
static int FUNC_0(struct omap_mpu_state_s *VAR_0, target_phys_addr_t VAR_1) { return range_covers_byte(0xfffb0000, 0xffff0000 - 0xfffb0000, VAR_1); }
[ "static int FUNC_0(struct omap_mpu_state_s *VAR_0,\ntarget_phys_addr_t VAR_1)\n{", "return range_covers_byte(0xfffb0000, 0xffff0000 - 0xfffb0000, VAR_1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
17,955
static int is_allocated_sectors(const uint8_t *buf, int n, int *pnum) { int v, i; if (n <= 0) { *pnum = 0; return 0; } v = is_not_zero(buf, 512); for(i = 1; i < n; i++) { buf += 512; if (v != is_not_zero(buf, 512)) break; } *pnum = i...
false
qemu
1a6d39fd71ddf90c5b76026cac4d5ff51fbaf8d8
static int is_allocated_sectors(const uint8_t *buf, int n, int *pnum) { int v, i; if (n <= 0) { *pnum = 0; return 0; } v = is_not_zero(buf, 512); for(i = 1; i < n; i++) { buf += 512; if (v != is_not_zero(buf, 512)) break; } *pnum = i...
{ "code": [], "line_no": [] }
static int FUNC_0(const uint8_t *VAR_0, int VAR_1, int *VAR_2) { int VAR_3, VAR_4; if (VAR_1 <= 0) { *VAR_2 = 0; return 0; } VAR_3 = is_not_zero(VAR_0, 512); for(VAR_4 = 1; VAR_4 < VAR_1; VAR_4++) { VAR_0 += 512; if (VAR_3 != is_not_zero(VAR_0, 512)) ...
[ "static int FUNC_0(const uint8_t *VAR_0, int VAR_1, int *VAR_2)\n{", "int VAR_3, VAR_4;", "if (VAR_1 <= 0) {", "*VAR_2 = 0;", "return 0;", "}", "VAR_3 = is_not_zero(VAR_0, 512);", "for(VAR_4 = 1; VAR_4 < VAR_1; VAR_4++) {", "VAR_0 += 512;", "if (VAR_3 != is_not_zero(VAR_0, 512))\nbreak;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
17,956
static void s390_virtio_blk_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); VirtIOS390DeviceClass *k = VIRTIO_S390_DEVICE_CLASS(klass); k->init = s390_virtio_blk_init; dc->props = s390_virtio_blk_properties; dc->alias = "virtio-blk"; }
false
qemu
6acbe4c6f18e7de00481ff30574262b58526de45
static void s390_virtio_blk_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); VirtIOS390DeviceClass *k = VIRTIO_S390_DEVICE_CLASS(klass); k->init = s390_virtio_blk_init; dc->props = s390_virtio_blk_properties; dc->alias = "virtio-blk"; }
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); VirtIOS390DeviceClass *k = VIRTIO_S390_DEVICE_CLASS(VAR_0); k->init = s390_virtio_blk_init; dc->props = s390_virtio_blk_properties; dc->alias = "virtio-blk"; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "VirtIOS390DeviceClass *k = VIRTIO_S390_DEVICE_CLASS(VAR_0);", "k->init = s390_virtio_blk_init;", "dc->props = s390_virtio_blk_properties;", "dc->alias = \"virtio-blk\";", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
17,957
void do_info_vnc(Monitor *mon, QObject **ret_data) { if (vnc_display == NULL || vnc_display->display == NULL) { *ret_data = qobject_from_jsonf("{ 'enabled': false }"); } else { QDict *qdict; QList *clist; clist = qlist_new(); if (vnc_display->clients) { ...
false
qemu
4a80dba3920cf8e0829b9ce4769842ce94748bf4
void do_info_vnc(Monitor *mon, QObject **ret_data) { if (vnc_display == NULL || vnc_display->display == NULL) { *ret_data = qobject_from_jsonf("{ 'enabled': false }"); } else { QDict *qdict; QList *clist; clist = qlist_new(); if (vnc_display->clients) { ...
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0, QObject **VAR_1) { if (vnc_display == NULL || vnc_display->display == NULL) { *VAR_1 = qobject_from_jsonf("{ 'enabled': false }"); } else { QDict *qdict; QList *clist; clist = qlist_new(); if (vnc_display->clients) { VncS...
[ "void FUNC_0(Monitor *VAR_0, QObject **VAR_1)\n{", "if (vnc_display == NULL || vnc_display->display == NULL) {", "*VAR_1 = qobject_from_jsonf(\"{ 'enabled': false }\");", "} else {", "QDict *qdict;", "QList *clist;", "clist = qlist_new();", "if (vnc_display->clients) {", "VncState *client = vnc_disp...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
17,959
static void breakpoint_invalidate(CPUArchState *env, target_ulong pc) { target_phys_addr_t addr; ram_addr_t ram_addr; MemoryRegionSection *section; addr = cpu_get_phys_page_debug(env, pc); section = phys_page_find(addr >> TARGET_PAGE_BITS); if (!(memory_region_is_ram(section->mr) ...
false
qemu
1e7855a558085d6acd0aba4e3278b594d05df1ec
static void breakpoint_invalidate(CPUArchState *env, target_ulong pc) { target_phys_addr_t addr; ram_addr_t ram_addr; MemoryRegionSection *section; addr = cpu_get_phys_page_debug(env, pc); section = phys_page_find(addr >> TARGET_PAGE_BITS); if (!(memory_region_is_ram(section->mr) ...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUArchState *VAR_0, target_ulong VAR_1) { target_phys_addr_t addr; ram_addr_t ram_addr; MemoryRegionSection *section; addr = cpu_get_phys_page_debug(VAR_0, VAR_1); section = phys_page_find(addr >> TARGET_PAGE_BITS); if (!(memory_region_is_ram(section->mr) ...
[ "static void FUNC_0(CPUArchState *VAR_0, target_ulong VAR_1)\n{", "target_phys_addr_t addr;", "ram_addr_t ram_addr;", "MemoryRegionSection *section;", "addr = cpu_get_phys_page_debug(VAR_0, VAR_1);", "section = phys_page_find(addr >> TARGET_PAGE_BITS);", "if (!(memory_region_is_ram(section->mr)\n|| (sec...
[ 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 ] ]
17,960
static int mon_init_func(void *opaque, QemuOpts *opts, Error **errp) { CharDriverState *chr; const char *chardev; const char *mode; int flags; mode = qemu_opt_get(opts, "mode"); if (mode == NULL) { mode = "readline"; } if (strcmp(mode, "readline") == 0) { fla...
false
qemu
f61eddcb2bb5cbbdd1d911b7e937db9affc29028
static int mon_init_func(void *opaque, QemuOpts *opts, Error **errp) { CharDriverState *chr; const char *chardev; const char *mode; int flags; mode = qemu_opt_get(opts, "mode"); if (mode == NULL) { mode = "readline"; } if (strcmp(mode, "readline") == 0) { fla...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0, QemuOpts *VAR_1, Error **VAR_2) { CharDriverState *chr; const char *VAR_3; const char *VAR_4; int VAR_5; VAR_4 = qemu_opt_get(VAR_1, "VAR_4"); if (VAR_4 == NULL) { VAR_4 = "readline"; } if (strcmp(VAR_4, "readline") == 0) { VAR_...
[ "static int FUNC_0(void *VAR_0, QemuOpts *VAR_1, Error **VAR_2)\n{", "CharDriverState *chr;", "const char *VAR_3;", "const char *VAR_4;", "int VAR_5;", "VAR_4 = qemu_opt_get(VAR_1, \"VAR_4\");", "if (VAR_4 == NULL) {", "VAR_4 = \"readline\";", "}", "if (strcmp(VAR_4, \"readline\") == 0) {", "VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 47, 49 ...
17,961
static void show_parts(const char *device) { if (fork() == 0) { int nbd; /* linux just needs an open() to trigger * the partition table update * but remember to load the module with max_part != 0 : * modprobe nbd max_part=63 */ nbd = open(de...
false
qemu
a517e88baa9bef2b5c54a11d62b2b2ab2a5c4ab7
static void show_parts(const char *device) { if (fork() == 0) { int nbd; nbd = open(device, O_RDWR); if (nbd != -1) close(nbd); exit(0); } }
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0) { if (fork() == 0) { int VAR_1; VAR_1 = open(VAR_0, O_RDWR); if (VAR_1 != -1) close(VAR_1); exit(0); } }
[ "static void FUNC_0(const char *VAR_0)\n{", "if (fork() == 0) {", "int VAR_1;", "VAR_1 = open(VAR_0, O_RDWR);", "if (VAR_1 != -1)\nclose(VAR_1);", "exit(0);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ] ]
17,962
static void isa_mmio_writel(void *opaque, target_phys_addr_t addr, uint32_t val) { cpu_outl(addr & IOPORTS_MASK, val); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void isa_mmio_writel(void *opaque, target_phys_addr_t addr, uint32_t val) { cpu_outl(addr & IOPORTS_MASK, val); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { cpu_outl(VAR_1 & IOPORTS_MASK, VAR_2); }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{", "cpu_outl(VAR_1 & IOPORTS_MASK, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
17,963
static inline void t_gen_subx_carry(DisasContext *dc, TCGv d) { if (dc->flagx_known) { if (dc->flags_x) { TCGv c; c = tcg_temp_new(TCG_TYPE_TL); t_gen_mov_TN_preg(c, PR_CCS); /* C flag is already at bit 0. */ tcg_gen_andi_tl(c, c, C_FLAG); tcg_gen_sub_tl(d, d, c); tcg_te...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static inline void t_gen_subx_carry(DisasContext *dc, TCGv d) { if (dc->flagx_known) { if (dc->flags_x) { TCGv c; c = tcg_temp_new(TCG_TYPE_TL); t_gen_mov_TN_preg(c, PR_CCS); tcg_gen_andi_tl(c, c, C_FLAG); tcg_gen_sub_tl(d, d, c); tcg_temp_free(c); } } else { TCG...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0, TCGv VAR_1) { if (VAR_0->flagx_known) { if (VAR_0->flags_x) { TCGv c; c = tcg_temp_new(TCG_TYPE_TL); t_gen_mov_TN_preg(c, PR_CCS); tcg_gen_andi_tl(c, c, C_FLAG); tcg_gen_sub_tl(VAR_1, VAR_1, c); tcg_temp_free(c); } } el...
[ "static inline void FUNC_0(DisasContext *VAR_0, TCGv VAR_1)\n{", "if (VAR_0->flagx_known) {", "if (VAR_0->flags_x) {", "TCGv c;", "c = tcg_temp_new(TCG_TYPE_TL);", "t_gen_mov_TN_preg(c, PR_CCS);", "tcg_gen_andi_tl(c, c, C_FLAG);", "tcg_gen_sub_tl(VAR_1, VAR_1, c);", "tcg_temp_free(c);", "}", "} ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ...
17,965
SwsContext *getSwsContext(int srcW, int srcH, int srcFormat, int dstW, int dstH, int dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter){ SwsContext *c; int i; SwsFilter dummyFilter= {NULL, NULL, NULL, NULL}; #ifdef ARCH_X86 if(gCpuCaps.hasMMX) asm volatile("emms\...
false
FFmpeg
6ff0ad6bfd0f00a3d54705811ee91a7ce3c22cda
SwsContext *getSwsContext(int srcW, int srcH, int srcFormat, int dstW, int dstH, int dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter){ SwsContext *c; int i; SwsFilter dummyFilter= {NULL, NULL, NULL, NULL}; #ifdef ARCH_X86 if(gCpuCaps.hasMMX) asm volatile("emms\...
{ "code": [], "line_no": [] }
SwsContext *FUNC_0(int srcW, int srcH, int srcFormat, int dstW, int dstH, int dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter){ SwsContext *c; int VAR_0; SwsFilter dummyFilter= {NULL, NULL, NULL, NULL}; #ifdef ARCH_X86 if(gCpuCaps.hasMMX) asm volatile("emms\n\t...
[ "SwsContext *FUNC_0(int srcW, int srcH, int srcFormat, int dstW, int dstH, int dstFormat, int flags,\nSwsFilter *srcFilter, SwsFilter *dstFilter){", "SwsContext *c;", "int VAR_0;", "SwsFilter dummyFilter= {NULL, NULL, NULL, NULL};", "#ifdef ARCH_X86\nif(gCpuCaps.hasMMX)\nasm volatile(\"emms\\n\\t\"::: \"mem...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17, 19 ], [ 21, 25 ], [ 31 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], ...
17,966
struct pxa2xx_state_s *pxa270_init(unsigned int sdram_size, DisplayState *ds, const char *revision) { struct pxa2xx_state_s *s; struct pxa2xx_ssp_s *ssp; int iomemtype, i; s = (struct pxa2xx_state_s *) qemu_mallocz(sizeof(struct pxa2xx_state_s)); if (revision && strncmp(revi...
false
qemu
2a1639291bf9f3c88c62d10459fedaa677536ff5
struct pxa2xx_state_s *pxa270_init(unsigned int sdram_size, DisplayState *ds, const char *revision) { struct pxa2xx_state_s *s; struct pxa2xx_ssp_s *ssp; int iomemtype, i; s = (struct pxa2xx_state_s *) qemu_mallocz(sizeof(struct pxa2xx_state_s)); if (revision && strncmp(revi...
{ "code": [], "line_no": [] }
struct pxa2xx_state_s *FUNC_0(unsigned int VAR_0, DisplayState *VAR_1, const char *VAR_2) { struct pxa2xx_state_s *VAR_3; struct pxa2xx_ssp_s *VAR_4; int VAR_5, VAR_6; VAR_3 = (struct pxa2xx_state_s *) qemu_mallocz(sizeof(struct pxa2xx_state_s)); if (VAR_2 && strncmp(VAR_2, ...
[ "struct pxa2xx_state_s *FUNC_0(unsigned int VAR_0,\nDisplayState *VAR_1, const char *VAR_2)\n{", "struct pxa2xx_state_s *VAR_3;", "struct pxa2xx_ssp_s *VAR_4;", "int VAR_5, VAR_6;", "VAR_3 = (struct pxa2xx_state_s *) qemu_mallocz(sizeof(struct pxa2xx_state_s));", "if (VAR_2 && strncmp(VAR_2, \"pxa27\", 5)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 37, 39 ], [ 41, 43 ], [ 47 ], [ 51 ], [ 55, 57 ], [ 61 ...
17,967
static int qemu_rbd_snap_rollback(BlockDriverState *bs, const char *snapshot_name) { BDRVRBDState *s = bs->opaque; int r; r = rbd_snap_rollback(s->image, snapshot_name); return r; }
false
qemu
9be385980d37e8f4fd33f605f5fb1c3d144170a8
static int qemu_rbd_snap_rollback(BlockDriverState *bs, const char *snapshot_name) { BDRVRBDState *s = bs->opaque; int r; r = rbd_snap_rollback(s->image, snapshot_name); return r; }
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1) { BDRVRBDState *s = VAR_0->opaque; int VAR_2; VAR_2 = rbd_snap_rollback(s->image, VAR_1); return VAR_2; }
[ "static int FUNC_0(BlockDriverState *VAR_0,\nconst char *VAR_1)\n{", "BDRVRBDState *s = VAR_0->opaque;", "int VAR_2;", "VAR_2 = rbd_snap_rollback(s->image, VAR_1);", "return VAR_2;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ] ]
17,968
static void test_visitor_out_empty(TestOutputVisitorData *data, const void *unused) { QObject *arg; arg = qmp_output_get_qobject(data->qov); g_assert(qobject_type(arg) == QTYPE_QNULL); /* Check that qnull reference counting is sane */ g_assert(arg->refcnt ...
false
qemu
7d7a337ec32c77f11ba04da412752b35e18d3c5c
static void test_visitor_out_empty(TestOutputVisitorData *data, const void *unused) { QObject *arg; arg = qmp_output_get_qobject(data->qov); g_assert(qobject_type(arg) == QTYPE_QNULL); g_assert(arg->refcnt == 2); qobject_decref(arg); }
{ "code": [], "line_no": [] }
static void FUNC_0(TestOutputVisitorData *VAR_0, const void *VAR_1) { QObject *arg; arg = qmp_output_get_qobject(VAR_0->qov); g_assert(qobject_type(arg) == QTYPE_QNULL); g_assert(arg->refcnt == 2); qobject_decref(arg); }
[ "static void FUNC_0(TestOutputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "QObject *arg;", "arg = qmp_output_get_qobject(VAR_0->qov);", "g_assert(qobject_type(arg) == QTYPE_QNULL);", "g_assert(arg->refcnt == 2);", "qobject_decref(arg);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ] ]
17,969
void qio_dns_resolver_lookup_result(QIODNSResolver *resolver, QIOTask *task, size_t *naddrs, SocketAddressLegacy ***addrs) { struct QIODNSResolverLookupData *data = qio_task_get_result_pointer(t...
false
qemu
bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884
void qio_dns_resolver_lookup_result(QIODNSResolver *resolver, QIOTask *task, size_t *naddrs, SocketAddressLegacy ***addrs) { struct QIODNSResolverLookupData *data = qio_task_get_result_pointer(t...
{ "code": [], "line_no": [] }
void FUNC_0(QIODNSResolver *VAR_0, QIOTask *VAR_1, size_t *VAR_2, SocketAddressLegacy ***VAR_3) { struct QIODNSResolverLookupData *VAR_4 = qio_task_get_result_pointer(VAR_1); size_t i; ...
[ "void FUNC_0(QIODNSResolver *VAR_0,\nQIOTask *VAR_1,\nsize_t *VAR_2,\nSocketAddressLegacy ***VAR_3)\n{", "struct QIODNSResolverLookupData *VAR_4 =\nqio_task_get_result_pointer(VAR_1);", "size_t i;", "*VAR_2 = 0;", "*VAR_3 = NULL;", "if (!VAR_4) {", "return;", "}", "*VAR_2 = VAR_4->VAR_2;", "*VAR_3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11, 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
17,970
iscsi_co_generic_cb(struct iscsi_context *iscsi, int status, void *command_data, void *opaque) { struct IscsiTask *iTask = opaque; struct scsi_task *task = command_data; iTask->status = status; iTask->do_retry = 0; iTask->task = task; if (status != SCSI_STATUS...
false
qemu
9f0eb9e129398d8907ec990b18c03f20ee0de15e
iscsi_co_generic_cb(struct iscsi_context *iscsi, int status, void *command_data, void *opaque) { struct IscsiTask *iTask = opaque; struct scsi_task *task = command_data; iTask->status = status; iTask->do_retry = 0; iTask->task = task; if (status != SCSI_STATUS...
{ "code": [], "line_no": [] }
FUNC_0(struct iscsi_context *VAR_0, int VAR_1, void *VAR_2, void *VAR_3) { struct IscsiTask *VAR_4 = VAR_3; struct scsi_task *VAR_5 = VAR_2; VAR_4->VAR_1 = VAR_1; VAR_4->do_retry = 0; VAR_4->VAR_5 = VAR_5; if (VAR_1 != SCSI_STATUS_GOOD) { if (VAR_4->r...
[ "FUNC_0(struct iscsi_context *VAR_0, int VAR_1,\nvoid *VAR_2, void *VAR_3)\n{", "struct IscsiTask *VAR_4 = VAR_3;", "struct scsi_task *VAR_5 = VAR_2;", "VAR_4->VAR_1 = VAR_1;", "VAR_4->do_retry = 0;", "VAR_4->VAR_5 = VAR_5;", "if (VAR_1 != SCSI_STATUS_GOOD) {", "if (VAR_4->retries++ < ISCSI_CMD_RETRIE...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 43 ], [ 45, 47 ], [ 49 ], [ 55 ...
17,971
void cpu_exec_exit(CPUState *cpu) { if (cpu->cpu_index == -1) { /* cpu_index was never allocated by this @cpu or was already freed. */ return; } bitmap_clear(cpu_index_map, cpu->cpu_index, 1); cpu->cpu_index = -1; }
false
qemu
1c59eb39cf75e660b1ac4ea95ef789c84021a1c4
void cpu_exec_exit(CPUState *cpu) { if (cpu->cpu_index == -1) { return; } bitmap_clear(cpu_index_map, cpu->cpu_index, 1); cpu->cpu_index = -1; }
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0) { if (VAR_0->cpu_index == -1) { return; } bitmap_clear(cpu_index_map, VAR_0->cpu_index, 1); VAR_0->cpu_index = -1; }
[ "void FUNC_0(CPUState *VAR_0)\n{", "if (VAR_0->cpu_index == -1) {", "return;", "}", "bitmap_clear(cpu_index_map, VAR_0->cpu_index, 1);", "VAR_0->cpu_index = -1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ] ]
17,973
build_header(GArray *linker, GArray *table_data, AcpiTableHeader *h, const char *sig, int len, uint8_t rev, const char *oem_id, const char *oem_table_id) { memcpy(&h->signature, sig, 4); h->length = cpu_to_le32(len); h->revision = rev; if (oem_id) { strncpy((c...
false
qemu
0e9b9edae7bebfd31fdbead4ccbbce03876a7edd
build_header(GArray *linker, GArray *table_data, AcpiTableHeader *h, const char *sig, int len, uint8_t rev, const char *oem_id, const char *oem_table_id) { memcpy(&h->signature, sig, 4); h->length = cpu_to_le32(len); h->revision = rev; if (oem_id) { strncpy((c...
{ "code": [], "line_no": [] }
FUNC_0(GArray *VAR_0, GArray *VAR_1, AcpiTableHeader *VAR_2, const char *VAR_3, int VAR_4, uint8_t VAR_5, const char *VAR_6, const char *VAR_7) { memcpy(&VAR_2->signature, VAR_3, 4); VAR_2->length = cpu_to_le32(VAR_4); VAR_2->revision = VAR_5; if (VAR_6) { str...
[ "FUNC_0(GArray *VAR_0, GArray *VAR_1,\nAcpiTableHeader *VAR_2, const char *VAR_3, int VAR_4, uint8_t VAR_5,\nconst char *VAR_6, const char *VAR_7)\n{", "memcpy(&VAR_2->signature, VAR_3, 4);", "VAR_2->length = cpu_to_le32(VAR_4);", "VAR_2->revision = VAR_5;", "if (VAR_6) {", "strncpy((char *)VAR_2->VAR_6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
17,974
static int kvm_has_msr_hsave_pa(CPUState *env) { kvm_supported_msrs(env); return has_msr_hsave_pa; }
false
qemu
c3a3a7d356c4df2fe145037172ae52cba5f545a5
static int kvm_has_msr_hsave_pa(CPUState *env) { kvm_supported_msrs(env); return has_msr_hsave_pa; }
{ "code": [], "line_no": [] }
static int FUNC_0(CPUState *VAR_0) { kvm_supported_msrs(VAR_0); return has_msr_hsave_pa; }
[ "static int FUNC_0(CPUState *VAR_0)\n{", "kvm_supported_msrs(VAR_0);", "return has_msr_hsave_pa;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
17,975
static void sd_cardchange(void *opaque, bool load) { SDState *sd = opaque; qemu_set_irq(sd->inserted_cb, blk_is_inserted(sd->blk)); if (blk_is_inserted(sd->blk)) { sd_reset(DEVICE(sd)); qemu_set_irq(sd->readonly_cb, sd->wp_switch); } }
false
qemu
c759a790b672b0c5bfc50520dcc93565b55732b3
static void sd_cardchange(void *opaque, bool load) { SDState *sd = opaque; qemu_set_irq(sd->inserted_cb, blk_is_inserted(sd->blk)); if (blk_is_inserted(sd->blk)) { sd_reset(DEVICE(sd)); qemu_set_irq(sd->readonly_cb, sd->wp_switch); } }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, bool VAR_1) { SDState *sd = VAR_0; qemu_set_irq(sd->inserted_cb, blk_is_inserted(sd->blk)); if (blk_is_inserted(sd->blk)) { sd_reset(DEVICE(sd)); qemu_set_irq(sd->readonly_cb, sd->wp_switch); } }
[ "static void FUNC_0(void *VAR_0, bool VAR_1)\n{", "SDState *sd = VAR_0;", "qemu_set_irq(sd->inserted_cb, blk_is_inserted(sd->blk));", "if (blk_is_inserted(sd->blk)) {", "sd_reset(DEVICE(sd));", "qemu_set_irq(sd->readonly_cb, sd->wp_switch);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
17,976
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *pkt) { GetBitContext gb; VimaContext *vima = avctx->priv_data; int16_t pcm_data[2]; uint32_t samples; int8_t channel_hint[2]; int ret, chan...
false
FFmpeg
857797bc1455468f9d70565ac087c3f57d8e67ff
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *pkt) { GetBitContext gb; VimaContext *vima = avctx->priv_data; int16_t pcm_data[2]; uint32_t samples; int8_t channel_hint[2]; int ret, chan...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { GetBitContext gb; VimaContext *vima = VAR_0->priv_data; int16_t pcm_data[2]; uint32_t samples; int8_t channel_hint[2]; int VAR_4, VAR_5, VAR_6 ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "GetBitContext gb;", "VimaContext *vima = VAR_0->priv_data;", "int16_t pcm_data[2];", "uint32_t samples;", "int8_t channel_hint[2];", "int VAR_4, VAR_5, VAR_6 = 1;", "init_get_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 49 ], [ 51 ], [ 53 ], [...
17,977
sPAPRTCETable *spapr_tce_find_by_liobn(uint32_t liobn) { sPAPRTCETable *tcet; if (liobn & 0xFFFFFFFF00000000ULL) { hcall_dprintf("Request for out-of-bounds LIOBN 0x" TARGET_FMT_lx "\n", liobn); return NULL; } QLIST_FOREACH(tcet, &spapr_tce_tables, list) ...
false
qemu
f9ce8e0aa3fb55ae7a8ea34d3169e73e87feb337
sPAPRTCETable *spapr_tce_find_by_liobn(uint32_t liobn) { sPAPRTCETable *tcet; if (liobn & 0xFFFFFFFF00000000ULL) { hcall_dprintf("Request for out-of-bounds LIOBN 0x" TARGET_FMT_lx "\n", liobn); return NULL; } QLIST_FOREACH(tcet, &spapr_tce_tables, list) ...
{ "code": [], "line_no": [] }
sPAPRTCETable *FUNC_0(uint32_t liobn) { sPAPRTCETable *tcet; if (liobn & 0xFFFFFFFF00000000ULL) { hcall_dprintf("Request for out-of-bounds LIOBN 0x" TARGET_FMT_lx "\n", liobn); return NULL; } QLIST_FOREACH(tcet, &spapr_tce_tables, list) { if (tc...
[ "sPAPRTCETable *FUNC_0(uint32_t liobn)\n{", "sPAPRTCETable *tcet;", "if (liobn & 0xFFFFFFFF00000000ULL) {", "hcall_dprintf(\"Request for out-of-bounds LIOBN 0x\" TARGET_FMT_lx \"\\n\",\nliobn);", "return NULL;", "}", "QLIST_FOREACH(tcet, &spapr_tce_tables, list) {", "if (tcet->liobn == liobn) {", "r...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]