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
12,845
void block_job_sleep_ns(BlockJob *job, QEMUClockType type, int64_t ns) { assert(job->busy); /* Check cancellation *before* setting busy = false, too! */ if (block_job_is_cancelled(job)) { return; } job->busy = false; if (block_job_is_paused(job)) { qemu_coroutine_yi...
false
qemu
0824afda0cd20045ffe87d58e142774514b61026
void block_job_sleep_ns(BlockJob *job, QEMUClockType type, int64_t ns) { assert(job->busy); if (block_job_is_cancelled(job)) { return; } job->busy = false; if (block_job_is_paused(job)) { qemu_coroutine_yield(); } else { co_aio_sleep_ns(blk_get_aio_con...
{ "code": [], "line_no": [] }
void FUNC_0(BlockJob *VAR_0, QEMUClockType VAR_1, int64_t VAR_2) { assert(VAR_0->busy); if (block_job_is_cancelled(VAR_0)) { return; } VAR_0->busy = false; if (block_job_is_paused(VAR_0)) { qemu_coroutine_yield(); } else { co_aio_sleep_ns(blk_get_aio_c...
[ "void FUNC_0(BlockJob *VAR_0, QEMUClockType VAR_1, int64_t VAR_2)\n{", "assert(VAR_0->busy);", "if (block_job_is_cancelled(VAR_0)) {", "return;", "}", "VAR_0->busy = false;", "if (block_job_is_paused(VAR_0)) {", "qemu_coroutine_yield();", "} else {", "co_aio_sleep_ns(blk_get_aio_context(VAR_0->blk...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
12,847
void mixeng_clear (st_sample_t *buf, int len) { memset (buf, 0, len * sizeof (st_sample_t)); }
false
qemu
1ea879e5580f63414693655fcf0328559cdce138
void mixeng_clear (st_sample_t *buf, int len) { memset (buf, 0, len * sizeof (st_sample_t)); }
{ "code": [], "line_no": [] }
void FUNC_0 (st_sample_t *VAR_0, int VAR_1) { memset (VAR_0, 0, VAR_1 * sizeof (st_sample_t)); }
[ "void FUNC_0 (st_sample_t *VAR_0, int VAR_1)\n{", "memset (VAR_0, 0, VAR_1 * sizeof (st_sample_t));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
12,848
static void slavio_set_timer_irq_cpu(void *opaque, int cpu, int level) { SLAVIO_INTCTLState *s = opaque; DPRINTF("Set cpu %d local level %d\n", cpu, level); if (!s->cpu_envs[cpu]) return; if (level) { s->intreg_pending[cpu] |= s->cputimer_bit; } else { s->intreg_...
false
qemu
b3a2319792ad5c0f0f8c3d2f4d02b95fd7efbc69
static void slavio_set_timer_irq_cpu(void *opaque, int cpu, int level) { SLAVIO_INTCTLState *s = opaque; DPRINTF("Set cpu %d local level %d\n", cpu, level); if (!s->cpu_envs[cpu]) return; if (level) { s->intreg_pending[cpu] |= s->cputimer_bit; } else { s->intreg_...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2) { SLAVIO_INTCTLState *s = VAR_0; DPRINTF("Set VAR_1 %d local VAR_2 %d\n", VAR_1, VAR_2); if (!s->cpu_envs[VAR_1]) return; if (VAR_2) { s->intreg_pending[VAR_1] |= s->cputimer_bit; } else { s->intreg_pending[VA...
[ "static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)\n{", "SLAVIO_INTCTLState *s = VAR_0;", "DPRINTF(\"Set VAR_1 %d local VAR_2 %d\\n\", VAR_1, VAR_2);", "if (!s->cpu_envs[VAR_1])\nreturn;", "if (VAR_2) {", "s->intreg_pending[VAR_1] |= s->cputimer_bit;", "} else {", "s->intreg_pending[VAR_1] &= ~s->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ] ]
12,849
void address_space_init(AddressSpace *as, MemoryRegion *root, const char *name) { if (QTAILQ_EMPTY(&address_spaces)) { memory_init(); } memory_region_transaction_begin(); as->root = root; as->current_map = g_new(FlatView, 1); flatview_init(as->current_map); as->ioeventfd_n...
false
qemu
374f2981d1f10bc4307f250f24b2a7ddb9b14be0
void address_space_init(AddressSpace *as, MemoryRegion *root, const char *name) { if (QTAILQ_EMPTY(&address_spaces)) { memory_init(); } memory_region_transaction_begin(); as->root = root; as->current_map = g_new(FlatView, 1); flatview_init(as->current_map); as->ioeventfd_n...
{ "code": [], "line_no": [] }
void FUNC_0(AddressSpace *VAR_0, MemoryRegion *VAR_1, const char *VAR_2) { if (QTAILQ_EMPTY(&address_spaces)) { memory_init(); } memory_region_transaction_begin(); VAR_0->VAR_1 = VAR_1; VAR_0->current_map = g_new(FlatView, 1); flatview_init(VAR_0->current_map); VAR_0->ioev...
[ "void FUNC_0(AddressSpace *VAR_0, MemoryRegion *VAR_1, const char *VAR_2)\n{", "if (QTAILQ_EMPTY(&address_spaces)) {", "memory_init();", "}", "memory_region_transaction_begin();", "VAR_0->VAR_1 = VAR_1;", "VAR_0->current_map = g_new(FlatView, 1);", "flatview_init(VAR_0->current_map);", "VAR_0->ioeve...
[ 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 ] ]
12,850
int avpriv_dca_parse_core_frame_header(GetBitContext *gb, DCACoreFrameHeader *h) { if (get_bits_long(gb, 32) != DCA_SYNCWORD_CORE_BE) return DCA_PARSE_ERROR_SYNC_WORD; h->normal_frame = get_bits1(gb); h->deficit_samples = get_bits(gb, 5) + 1; if (h->deficit_samples != DCA_PCMBLOCK_SAMPLE...
false
FFmpeg
7c9d2ad45f4e46ad2c3b2e93051efbe1e0d0529e
int avpriv_dca_parse_core_frame_header(GetBitContext *gb, DCACoreFrameHeader *h) { if (get_bits_long(gb, 32) != DCA_SYNCWORD_CORE_BE) return DCA_PARSE_ERROR_SYNC_WORD; h->normal_frame = get_bits1(gb); h->deficit_samples = get_bits(gb, 5) + 1; if (h->deficit_samples != DCA_PCMBLOCK_SAMPLE...
{ "code": [], "line_no": [] }
int FUNC_0(GetBitContext *VAR_0, DCACoreFrameHeader *VAR_1) { if (get_bits_long(VAR_0, 32) != DCA_SYNCWORD_CORE_BE) return DCA_PARSE_ERROR_SYNC_WORD; VAR_1->normal_frame = get_bits1(VAR_0); VAR_1->deficit_samples = get_bits(VAR_0, 5) + 1; if (VAR_1->deficit_samples != DCA_PCMBLOCK_SAMPLE...
[ "int FUNC_0(GetBitContext *VAR_0, DCACoreFrameHeader *VAR_1)\n{", "if (get_bits_long(VAR_0, 32) != DCA_SYNCWORD_CORE_BE)\nreturn DCA_PARSE_ERROR_SYNC_WORD;", "VAR_1->normal_frame = get_bits1(VAR_0);", "VAR_1->deficit_samples = get_bits(VAR_0, 5) + 1;", "if (VAR_1->deficit_samples != DCA_PCMBLOCK_SAMPLES)\nr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 33, 35 ], [ 39 ], [ 41, 43 ], [ 47 ], [ 49, 51 ], [ 55 ], [ 57, 59 ], ...
12,851
static void padzero(unsigned long elf_bss) { unsigned long nbyte; char * fpnt; nbyte = elf_bss & (host_page_size-1); /* was TARGET_PAGE_SIZE - JRP */ if (nbyte) { nbyte = host_page_size - nbyte; fpnt = (char *) elf_bss; do { *fpnt++ = 0; } while (--nbyte...
false
qemu
853d6f7a835ff33cf53f2922e4039d4cfad8ac17
static void padzero(unsigned long elf_bss) { unsigned long nbyte; char * fpnt; nbyte = elf_bss & (host_page_size-1); if (nbyte) { nbyte = host_page_size - nbyte; fpnt = (char *) elf_bss; do { *fpnt++ = 0; } while (--nbyte); } }
{ "code": [], "line_no": [] }
static void FUNC_0(unsigned long VAR_0) { unsigned long VAR_1; char * VAR_2; VAR_1 = VAR_0 & (host_page_size-1); if (VAR_1) { VAR_1 = host_page_size - VAR_1; VAR_2 = (char *) VAR_0; do { *VAR_2++ = 0; } while (--VAR_1); } }
[ "static void FUNC_0(unsigned long VAR_0)\n{", "unsigned long VAR_1;", "char * VAR_2;", "VAR_1 = VAR_0 & (host_page_size-1);", "if (VAR_1) {", "VAR_1 = host_page_size - VAR_1;", "VAR_2 = (char *) VAR_0;", "do {", "*VAR_2++ = 0;", "} while (--VAR_1);", "}", "}" ]
[ 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 ] ]
12,852
static int vmdk_open(BlockDriverState *bs, int flags) { int ret; BDRVVmdkState *s = bs->opaque; if (vmdk_open_sparse(bs, bs->file, flags) == 0) { s->desc_offset = 0x200; } else { ret = vmdk_open_desc_file(bs, flags, 0); if (ret) { goto fail; } ...
false
qemu
2bc3166c22aeeb5cd7b8f21104f4744f08c7a288
static int vmdk_open(BlockDriverState *bs, int flags) { int ret; BDRVVmdkState *s = bs->opaque; if (vmdk_open_sparse(bs, bs->file, flags) == 0) { s->desc_offset = 0x200; } else { ret = vmdk_open_desc_file(bs, flags, 0); if (ret) { goto fail; } ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, int VAR_1) { int VAR_2; BDRVVmdkState *s = VAR_0->opaque; if (vmdk_open_sparse(VAR_0, VAR_0->file, VAR_1) == 0) { s->desc_offset = 0x200; } else { VAR_2 = vmdk_open_desc_file(VAR_0, VAR_1, 0); if (VAR_2) { goto fai...
[ "static int FUNC_0(BlockDriverState *VAR_0, int VAR_1)\n{", "int VAR_2;", "BDRVVmdkState *s = VAR_0->opaque;", "if (vmdk_open_sparse(VAR_0, VAR_0->file, VAR_1) == 0) {", "s->desc_offset = 0x200;", "} else {", "VAR_2 = vmdk_open_desc_file(VAR_0, VAR_1, 0);", "if (VAR_2) {", "goto fail;", "}", "}"...
[ 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], ...
12,855
static void coroutine_fn pdu_complete(V9fsPDU *pdu, ssize_t len) { int8_t id = pdu->id + 1; /* Response */ V9fsState *s = pdu->s; if (len < 0) { int err = -len; len = 7; if (s->proto_version != V9FS_PROTO_2000L) { V9fsString str; str.data = stre...
false
qemu
f74e27bf0f07425aba6cb812aa7f5aa98bb68542
static void coroutine_fn pdu_complete(V9fsPDU *pdu, ssize_t len) { int8_t id = pdu->id + 1; V9fsState *s = pdu->s; if (len < 0) { int err = -len; len = 7; if (s->proto_version != V9FS_PROTO_2000L) { V9fsString str; str.data = strerror(err); ...
{ "code": [], "line_no": [] }
static void VAR_0 pdu_complete(V9fsPDU *pdu, ssize_t len) { int8_t id = pdu->id + 1; V9fsState *s = pdu->s; if (len < 0) { int err = -len; len = 7; if (s->proto_version != V9FS_PROTO_2000L) { V9fsString str; str.data = strerror(err); ...
[ "static void VAR_0 pdu_complete(V9fsPDU *pdu, ssize_t len)\n{", "int8_t id = pdu->id + 1;", "V9fsState *s = pdu->s;", "if (len < 0) {", "int err = -len;", "len = 7;", "if (s->proto_version != V9FS_PROTO_2000L) {", "V9fsString str;", "str.data = strerror(err);", "str.size = strlen(str.data);", "l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 57...
12,856
static QDict *parse_json_filename(const char *filename, Error **errp) { QObject *options_obj; QDict *options; int ret; ret = strstart(filename, "json:", &filename); assert(ret); options_obj = qobject_from_json(filename); if (!options_obj) { error_setg(errp, "Could not pa...
false
qemu
ca6b6e1e68ac44b2e8895da10dd1c80dc03d08b7
static QDict *parse_json_filename(const char *filename, Error **errp) { QObject *options_obj; QDict *options; int ret; ret = strstart(filename, "json:", &filename); assert(ret); options_obj = qobject_from_json(filename); if (!options_obj) { error_setg(errp, "Could not pa...
{ "code": [], "line_no": [] }
static QDict *FUNC_0(const char *filename, Error **errp) { QObject *options_obj; QDict *options; int VAR_0; VAR_0 = strstart(filename, "json:", &filename); assert(VAR_0); options_obj = qobject_from_json(filename); if (!options_obj) { error_setg(errp, "Could not parse the...
[ "static QDict *FUNC_0(const char *filename, Error **errp)\n{", "QObject *options_obj;", "QDict *options;", "int VAR_0;", "VAR_0 = strstart(filename, \"json:\", &filename);", "assert(VAR_0);", "options_obj = qobject_from_json(filename);", "if (!options_obj) {", "error_setg(errp, \"Could not parse the...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ...
12,857
static void gen_rlwnm(DisasContext *ctx) { uint32_t mb, me; mb = MB(ctx->opcode); me = ME(ctx->opcode); if (likely(mb == 0 && me == 31)) { TCGv_i32 t0, t1; t0 = tcg_temp_new_i32(); t1 = tcg_temp_new_i32(); tcg_gen_trunc_tl_i32(t0, cpu_gpr[rB(ctx->opcode)]); ...
false
qemu
63ae0915f8ec9746d17a25c27f64cf65550627ab
static void gen_rlwnm(DisasContext *ctx) { uint32_t mb, me; mb = MB(ctx->opcode); me = ME(ctx->opcode); if (likely(mb == 0 && me == 31)) { TCGv_i32 t0, t1; t0 = tcg_temp_new_i32(); t1 = tcg_temp_new_i32(); tcg_gen_trunc_tl_i32(t0, cpu_gpr[rB(ctx->opcode)]); ...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0) { uint32_t mb, me; mb = MB(VAR_0->opcode); me = ME(VAR_0->opcode); if (likely(mb == 0 && me == 31)) { TCGv_i32 t0, t1; t0 = tcg_temp_new_i32(); t1 = tcg_temp_new_i32(); tcg_gen_trunc_tl_i32(t0, cpu_gpr[rB(VAR_0->opcode)])...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "uint32_t mb, me;", "mb = MB(VAR_0->opcode);", "me = ME(VAR_0->opcode);", "if (likely(mb == 0 && me == 31)) {", "TCGv_i32 t0, t1;", "t0 = tcg_temp_new_i32();", "t1 = tcg_temp_new_i32();", "tcg_gen_trunc_tl_i32(t0, cpu_gpr[rB(VAR_0->opcode)]);", "tcg_ge...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43, 47 ...
12,858
static void test_native_list(TestOutputVisitorData *data, const void *unused, UserDefNativeListUnionKind kind) { UserDefNativeListUnion *cvalue = g_new0(UserDefNativeListUnion, 1); QObject *obj; cvalue->type = kind; init_native_list(cval...
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void test_native_list(TestOutputVisitorData *data, const void *unused, UserDefNativeListUnionKind kind) { UserDefNativeListUnion *cvalue = g_new0(UserDefNativeListUnion, 1); QObject *obj; cvalue->type = kind; init_native_list(cval...
{ "code": [], "line_no": [] }
static void FUNC_0(TestOutputVisitorData *VAR_0, const void *VAR_1, UserDefNativeListUnionKind VAR_2) { UserDefNativeListUnion *cvalue = g_new0(UserDefNativeListUnion, 1); QObject *obj; cvalue->type = VAR_2; init_native_list(cvalue); ...
[ "static void FUNC_0(TestOutputVisitorData *VAR_0,\nconst void *VAR_1,\nUserDefNativeListUnionKind VAR_2)\n{", "UserDefNativeListUnion *cvalue = g_new0(UserDefNativeListUnion, 1);", "QObject *obj;", "cvalue->type = VAR_2;", "init_native_list(cvalue);", "visit_type_UserDefNativeListUnion(VAR_0->ov, NULL, &c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
12,859
static void FUNCC(pred8x8l_horizontal_add)(uint8_t *_pix, const int16_t *_block, ptrdiff_t stride) { int i; pixel *pix = (pixel*)_pix; const dctcoef *block = (const dctcoef*)_block; stride >>= sizeof(pixel)-1; for(i=0; i<8; i++){ pixel v = p...
false
FFmpeg
1acd7d594c15aa491729c837ad3519d3469e620a
static void FUNCC(pred8x8l_horizontal_add)(uint8_t *_pix, const int16_t *_block, ptrdiff_t stride) { int i; pixel *pix = (pixel*)_pix; const dctcoef *block = (const dctcoef*)_block; stride >>= sizeof(pixel)-1; for(i=0; i<8; i++){ pixel v = p...
{ "code": [], "line_no": [] }
static void FUNC_0(pred8x8l_horizontal_add)(uint8_t *_pix, const int16_t *_block, ptrdiff_t stride) { int VAR_0; pixel *pix = (pixel*)_pix; const dctcoef *VAR_1 = (const dctcoef*)_block; stride >>= sizeof(pixel)-1; for(VAR_0=0; VAR_0<8; VAR_0++){ ...
[ "static void FUNC_0(pred8x8l_horizontal_add)(uint8_t *_pix, const int16_t *_block,\nptrdiff_t stride)\n{", "int VAR_0;", "pixel *pix = (pixel*)_pix;", "const dctcoef *VAR_1 = (const dctcoef*)_block;", "stride >>= sizeof(pixel)-1;", "for(VAR_0=0; VAR_0<8; VAR_0++){", "pixel v = pix[-1];", "pix[0]= v +=...
[ 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 ] ]
12,860
static int vtenc_create_encoder(AVCodecContext *avctx, CMVideoCodecType codec_type, CFStringRef profile_level, CFNumberRef gamma_level, CFDictionaryRef enc_info, ...
false
FFmpeg
dcd3418a35aab7ef283b68ed9997ce4ac204094e
static int vtenc_create_encoder(AVCodecContext *avctx, CMVideoCodecType codec_type, CFStringRef profile_level, CFNumberRef gamma_level, CFDictionaryRef enc_info, ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, CMVideoCodecType VAR_1, CFStringRef VAR_2, CFNumberRef VAR_3, CFDictionaryRef VAR_4, CFDictionaryRef ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nCMVideoCodecType VAR_1,\nCFStringRef VAR_2,\nCFNumberRef VAR_3,\nCFDictionaryRef VAR_4,\nCFDictionaryRef VAR_5,\nVTCompressionSessionRef *VAR_6)\n{", "VTEncContext *vtctx = VAR_0->priv_data;", "SInt32 bit_rate = VAR_0->bit_rate;", "CFNumberRef bi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 37, 39, 41, 43 ], [ 47 ], [ 49 ], [ 53, 55 ], [ 57 ], [ 59 ], [ 61, 65 ], [...
12,861
static av_cold int libspeex_decode_init(AVCodecContext *avctx) { LibSpeexContext *s = avctx->priv_data; const SpeexMode *mode; // defaults in the case of a missing header if (avctx->sample_rate <= 8000) mode = &speex_nb_mode; else if (avctx->sample_rate <= 16000) mode = &sp...
false
FFmpeg
3b061c5e10f78caaf3b2a45cf7a92e50d4d20bfb
static av_cold int libspeex_decode_init(AVCodecContext *avctx) { LibSpeexContext *s = avctx->priv_data; const SpeexMode *mode; if (avctx->sample_rate <= 8000) mode = &speex_nb_mode; else if (avctx->sample_rate <= 16000) mode = &speex_wb_mode; else mode = &spe...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { LibSpeexContext *s = avctx->priv_data; const SpeexMode *VAR_0; if (avctx->sample_rate <= 8000) VAR_0 = &speex_nb_mode; else if (avctx->sample_rate <= 16000) VAR_0 = &speex_wb_mode; else VAR_0 = &speex_uwb_mod...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "LibSpeexContext *s = avctx->priv_data;", "const SpeexMode *VAR_0;", "if (avctx->sample_rate <= 8000)\nVAR_0 = &speex_nb_mode;", "else if (avctx->sample_rate <= 16000)\nVAR_0 = &speex_wb_mode;", "else\nVAR_0 = &speex_uwb_mode;", "if (avctx->extradat...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13, 15 ], [ 17, 19 ], [ 21, 23 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55...
12,863
static int mpegts_set_stream_info(AVStream *st, PESContext *pes, uint32_t stream_type, uint32_t prog_reg_desc) { int old_codec_type= st->codec->codec_type; int old_codec_id = st->codec->codec_id; if (old_codec_id != AV_CODEC_ID_NONE && avcodec_is_open(st->codec)) { ...
false
FFmpeg
8897b5aa4c09906e4d43157fdcd7042f47fe15cf
static int mpegts_set_stream_info(AVStream *st, PESContext *pes, uint32_t stream_type, uint32_t prog_reg_desc) { int old_codec_type= st->codec->codec_type; int old_codec_id = st->codec->codec_id; if (old_codec_id != AV_CODEC_ID_NONE && avcodec_is_open(st->codec)) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVStream *VAR_0, PESContext *VAR_1, uint32_t VAR_2, uint32_t VAR_3) { int VAR_4= VAR_0->codec->codec_type; int VAR_5 = VAR_0->codec->codec_id; if (VAR_5 != AV_CODEC_ID_NONE && avcodec_is_open(VAR_0->codec)) { av_log(VAR_1->stream, AV_LOG_D...
[ "static int FUNC_0(AVStream *VAR_0, PESContext *VAR_1,\nuint32_t VAR_2, uint32_t VAR_3)\n{", "int VAR_4= VAR_0->codec->codec_type;", "int VAR_5 = VAR_0->codec->codec_id;", "if (VAR_5 != AV_CODEC_ID_NONE && avcodec_is_open(VAR_0->codec)) {", "av_log(VAR_1->stream, AV_LOG_DEBUG, \"cannot set stream info, cod...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41, 43 ], [ 47 ], [ 51 ], [ 53, 55,...
12,864
void ff_cavs_init_top_lines(AVSContext *h) { /* alloc top line of predictors */ h->top_qp = av_malloc( h->mb_width); h->top_mv[0] = av_malloc((h->mb_width*2+1)*sizeof(cavs_vector)); h->top_mv[1] = av_malloc((h->mb_width*2+1)*sizeof(cavs_vector)); h->top_pred_Y = av_malloc( h->mb_w...
false
FFmpeg
280beebd399b2d2c9bf58438c2aa2a22a0a53282
void ff_cavs_init_top_lines(AVSContext *h) { h->top_qp = av_malloc( h->mb_width); h->top_mv[0] = av_malloc((h->mb_width*2+1)*sizeof(cavs_vector)); h->top_mv[1] = av_malloc((h->mb_width*2+1)*sizeof(cavs_vector)); h->top_pred_Y = av_malloc( h->mb_width*2*sizeof(*h->top_pred_Y)); ...
{ "code": [], "line_no": [] }
void FUNC_0(AVSContext *VAR_0) { VAR_0->top_qp = av_malloc( VAR_0->mb_width); VAR_0->top_mv[0] = av_malloc((VAR_0->mb_width*2+1)*sizeof(cavs_vector)); VAR_0->top_mv[1] = av_malloc((VAR_0->mb_width*2+1)*sizeof(cavs_vector)); VAR_0->top_pred_Y = av_malloc( VAR_0->mb_width*2*sizeof(...
[ "void FUNC_0(AVSContext *VAR_0) {", "VAR_0->top_qp = av_malloc( VAR_0->mb_width);", "VAR_0->top_mv[0] = av_malloc((VAR_0->mb_width*2+1)*sizeof(cavs_vector));", "VAR_0->top_mv[1] = av_malloc((VAR_0->mb_width*2+1)*sizeof(cavs_vector));", "VAR_0->top_pred_Y = av_malloc( VAR_0->mb_width*2*sizeof(*...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
12,865
static void gen_dmfc0 (CPUState *env, DisasContext *ctx, int reg, int sel) { const char *rn = "invalid"; if (sel != 0) check_insn(env, ctx, ISA_MIPS64); switch (reg) { case 0: switch (sel) { case 0: gen_op_mfc0_index(); rn = "Index"; ...
false
qemu
7385ac0ba2456159a52b9b2cbb5f6c71921d0c23
static void gen_dmfc0 (CPUState *env, DisasContext *ctx, int reg, int sel) { const char *rn = "invalid"; if (sel != 0) check_insn(env, ctx, ISA_MIPS64); switch (reg) { case 0: switch (sel) { case 0: gen_op_mfc0_index(); rn = "Index"; ...
{ "code": [], "line_no": [] }
static void FUNC_0 (CPUState *VAR_0, DisasContext *VAR_1, int VAR_2, int VAR_3) { const char *VAR_4 = "invalid"; if (VAR_3 != 0) check_insn(VAR_0, VAR_1, ISA_MIPS64); switch (VAR_2) { case 0: switch (VAR_3) { case 0: gen_op_mfc0_index(); VAR_...
[ "static void FUNC_0 (CPUState *VAR_0, DisasContext *VAR_1, int VAR_2, int VAR_3)\n{", "const char *VAR_4 = \"invalid\";", "if (VAR_3 != 0)\ncheck_insn(VAR_0, VAR_1, ISA_MIPS64);", "switch (VAR_2) {", "case 0:\nswitch (VAR_3) {", "case 0:\ngen_op_mfc0_index();", "VAR_4 = \"Index\";", "break;", "case ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17, 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51...
12,866
static BlockBackend *img_open(const char *id, const char *filename, const char *fmt, int flags, bool require_io, bool quiet) { BlockBackend *blk; BlockDriverState *bs; char password[256]; Error *local_err = NULL; QDict *options = NU...
false
qemu
d57e4e482e3997b1382625c84149ad0b69155fc0
static BlockBackend *img_open(const char *id, const char *filename, const char *fmt, int flags, bool require_io, bool quiet) { BlockBackend *blk; BlockDriverState *bs; char password[256]; Error *local_err = NULL; QDict *options = NU...
{ "code": [], "line_no": [] }
static BlockBackend *FUNC_0(const char *id, const char *filename, const char *fmt, int flags, bool require_io, bool quiet) { BlockBackend *blk; BlockDriverState *bs; char VAR_0[256]; Error *local_err = NULL; QDict *options = NULL; ...
[ "static BlockBackend *FUNC_0(const char *id, const char *filename,\nconst char *fmt, int flags,\nbool require_io, bool quiet)\n{", "BlockBackend *blk;", "BlockDriverState *bs;", "char VAR_0[256];", "Error *local_err = NULL;", "QDict *options = NULL;", "if (fmt) {", "options = qdict_new();", "qdict_p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [...
12,867
static void do_boot_set(Monitor *mon, const QDict *qdict) { int res; const char *bootdevice = qdict_get_str(qdict, "bootdevice"); res = qemu_boot_set(bootdevice); if (res == 0) { monitor_printf(mon, "boot device list now set to %s\n", bootdevice); } else if (res > 0) { moni...
false
qemu
f1839938b090b28537d9be2c1b255b834f3cfbb8
static void do_boot_set(Monitor *mon, const QDict *qdict) { int res; const char *bootdevice = qdict_get_str(qdict, "bootdevice"); res = qemu_boot_set(bootdevice); if (res == 0) { monitor_printf(mon, "boot device list now set to %s\n", bootdevice); } else if (res > 0) { moni...
{ "code": [], "line_no": [] }
static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { int VAR_2; const char *VAR_3 = qdict_get_str(VAR_1, "VAR_3"); VAR_2 = qemu_boot_set(VAR_3); if (VAR_2 == 0) { monitor_printf(VAR_0, "boot device list now set to %s\n", VAR_3); } else if (VAR_2 > 0) { monitor_printf(VA...
[ "static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "int VAR_2;", "const char *VAR_3 = qdict_get_str(VAR_1, \"VAR_3\");", "VAR_2 = qemu_boot_set(VAR_3);", "if (VAR_2 == 0) {", "monitor_printf(VAR_0, \"boot device list now set to %s\\n\", VAR_3);", "} else if (VAR_2 > 0) {", "monitor_printf(VA...
[ 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 ] ]
12,868
void restore_state_to_opc(CPUARMState *env, TranslationBlock *tb, int pc_pos) { if (is_a64(env)) { env->pc = tcg_ctx.gen_opc_pc[pc_pos]; } else { env->regs[15] = tcg_ctx.gen_opc_pc[pc_pos]; } env->condexec_bits = gen_opc_condexec_bits[pc_pos]; }
false
qemu
40f860cd6c1aa0d3399e3f8158f20bdc5b2bfbfe
void restore_state_to_opc(CPUARMState *env, TranslationBlock *tb, int pc_pos) { if (is_a64(env)) { env->pc = tcg_ctx.gen_opc_pc[pc_pos]; } else { env->regs[15] = tcg_ctx.gen_opc_pc[pc_pos]; } env->condexec_bits = gen_opc_condexec_bits[pc_pos]; }
{ "code": [], "line_no": [] }
void FUNC_0(CPUARMState *VAR_0, TranslationBlock *VAR_1, int VAR_2) { if (is_a64(VAR_0)) { VAR_0->pc = tcg_ctx.gen_opc_pc[VAR_2]; } else { VAR_0->regs[15] = tcg_ctx.gen_opc_pc[VAR_2]; } VAR_0->condexec_bits = gen_opc_condexec_bits[VAR_2]; }
[ "void FUNC_0(CPUARMState *VAR_0, TranslationBlock *VAR_1, int VAR_2)\n{", "if (is_a64(VAR_0)) {", "VAR_0->pc = tcg_ctx.gen_opc_pc[VAR_2];", "} else {", "VAR_0->regs[15] = tcg_ctx.gen_opc_pc[VAR_2];", "}", "VAR_0->condexec_bits = gen_opc_condexec_bits[VAR_2];", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
12,870
void kvm_set_phys_mem(target_phys_addr_t start_addr, ram_addr_t size, ram_addr_t phys_offset) { KVMState *s = kvm_state; ram_addr_t flags = phys_offset & ~TARGET_PAGE_MASK; KVMSlot *mem; /* KVM does not support read-only slots */ phys_offset &= ~...
false
qemu
62d60e8cc4c4c8aebdfd97f10087456d2690c0a0
void kvm_set_phys_mem(target_phys_addr_t start_addr, ram_addr_t size, ram_addr_t phys_offset) { KVMState *s = kvm_state; ram_addr_t flags = phys_offset & ~TARGET_PAGE_MASK; KVMSlot *mem; phys_offset &= ~IO_MEM_ROM; mem = kvm_lookup_slot(s...
{ "code": [], "line_no": [] }
void FUNC_0(target_phys_addr_t VAR_0, ram_addr_t VAR_1, ram_addr_t VAR_2) { KVMState *s = kvm_state; ram_addr_t flags = VAR_2 & ~TARGET_PAGE_MASK; KVMSlot *mem; VAR_2 &= ~IO_MEM_ROM; mem = kvm_lookup_slot(s, VAR_0); if (mem) { ...
[ "void FUNC_0(target_phys_addr_t VAR_0,\nram_addr_t VAR_1,\nram_addr_t VAR_2)\n{", "KVMState *s = kvm_state;", "ram_addr_t flags = VAR_2 & ~TARGET_PAGE_MASK;", "KVMSlot *mem;", "VAR_2 &= ~IO_MEM_ROM;", "mem = kvm_lookup_slot(s, VAR_0);", "if (mem) {", "if (flags == IO_MEM_UNASSIGNED) {", "mem->memory...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 53, 55 ], [ 59 ...
12,872
static int virtio_pci_set_host_notifier(void *opaque, int n, bool assign) { VirtIOPCIProxy *proxy = opaque; VirtQueue *vq = virtio_get_queue(proxy->vdev, n); EventNotifier *notifier = virtio_queue_get_host_notifier(vq); int r; if (assign) { r = event_notifier_init(notifier, 1); ...
false
qemu
25db9ebe15125deb32958c6df74996f745edf1f9
static int virtio_pci_set_host_notifier(void *opaque, int n, bool assign) { VirtIOPCIProxy *proxy = opaque; VirtQueue *vq = virtio_get_queue(proxy->vdev, n); EventNotifier *notifier = virtio_queue_get_host_notifier(vq); int r; if (assign) { r = event_notifier_init(notifier, 1); ...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0, int VAR_1, bool VAR_2) { VirtIOPCIProxy *proxy = VAR_0; VirtQueue *vq = virtio_get_queue(proxy->vdev, VAR_1); EventNotifier *notifier = virtio_queue_get_host_notifier(vq); int VAR_3; if (VAR_2) { VAR_3 = event_notifier_init(notifier, 1); if (VAR...
[ "static int FUNC_0(void *VAR_0, int VAR_1, bool VAR_2)\n{", "VirtIOPCIProxy *proxy = VAR_0;", "VirtQueue *vq = virtio_get_queue(proxy->vdev, VAR_1);", "EventNotifier *notifier = virtio_queue_get_host_notifier(vq);", "int VAR_3;", "if (VAR_2) {", "VAR_3 = event_notifier_init(notifier, 1);", "if (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 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39, 41 ], [ 43 ], [ 45 ...
12,873
static inline void neon_load_reg64(TCGv var, int reg) { tcg_gen_ld_i64(var, cpu_env, vfp_reg_offset(1, reg)); }
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static inline void neon_load_reg64(TCGv var, int reg) { tcg_gen_ld_i64(var, cpu_env, vfp_reg_offset(1, reg)); }
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGv VAR_0, int VAR_1) { tcg_gen_ld_i64(VAR_0, cpu_env, vfp_reg_offset(1, VAR_1)); }
[ "static inline void FUNC_0(TCGv VAR_0, int VAR_1)\n{", "tcg_gen_ld_i64(VAR_0, cpu_env, vfp_reg_offset(1, VAR_1));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
12,874
static void encode_sigpass(Jpeg2000T1Context *t1, int width, int height, int bandno, int *nmsedec, int bpno) { int y0, x, y, mask = 1 << (bpno + NMSEDEC_FRACBITS); for (y0 = 0; y0 < height; y0 += 4) for (x = 0; x < width; x++) for (y = y0; y < height && y < y0+4; y++){ ...
false
FFmpeg
f1e173049ecc9de03817385ba8962d14cba779db
static void encode_sigpass(Jpeg2000T1Context *t1, int width, int height, int bandno, int *nmsedec, int bpno) { int y0, x, y, mask = 1 << (bpno + NMSEDEC_FRACBITS); for (y0 = 0; y0 < height; y0 += 4) for (x = 0; x < width; x++) for (y = y0; y < height && y < y0+4; y++){ ...
{ "code": [], "line_no": [] }
static void FUNC_0(Jpeg2000T1Context *VAR_0, int VAR_1, int VAR_2, int VAR_3, int *VAR_4, int VAR_5) { int VAR_6, VAR_7, VAR_8, VAR_9 = 1 << (VAR_5 + NMSEDEC_FRACBITS); for (VAR_6 = 0; VAR_6 < VAR_2; VAR_6 += 4) for (VAR_7 = 0; VAR_7 < VAR_1; VAR_7++) for (VAR_8 = VAR_6; VAR_8 < VAR_2 &...
[ "static void FUNC_0(Jpeg2000T1Context *VAR_0, int VAR_1, int VAR_2, int VAR_3, int *VAR_4, int VAR_5)\n{", "int VAR_6, VAR_7, VAR_8, VAR_9 = 1 << (VAR_5 + NMSEDEC_FRACBITS);", "for (VAR_6 = 0; VAR_6 < VAR_2; VAR_6 += 4)", "for (VAR_7 = 0; VAR_7 < VAR_1; VAR_7++)", "for (VAR_8 = VAR_6; VAR_8 < VAR_2 && VAR_8...
[ 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 ] ]
12,875
static void qdev_set_legacy_property(DeviceState *dev, Visitor *v, void *opaque, const char *name, Error **errp) { Property *prop = opaque; if (dev->state != DEV_STATE_CREATED) { error_set(errp, QERR_PERMISSION_DENIED); return; } if (prop-...
false
qemu
e3cb6ba65d265f2cc1313ee26e879407ff24663c
static void qdev_set_legacy_property(DeviceState *dev, Visitor *v, void *opaque, const char *name, Error **errp) { Property *prop = opaque; if (dev->state != DEV_STATE_CREATED) { error_set(errp, QERR_PERMISSION_DENIED); return; } if (prop-...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Visitor *VAR_1, void *VAR_2, const char *VAR_3, Error **VAR_4) { Property *prop = VAR_2; if (VAR_0->state != DEV_STATE_CREATED) { error_set(VAR_4, QERR_PERMISSION_DENIED); return; } if (prop->info->pa...
[ "static void FUNC_0(DeviceState *VAR_0, Visitor *VAR_1, void *VAR_2,\nconst char *VAR_3, Error **VAR_4)\n{", "Property *prop = VAR_2;", "if (VAR_0->state != DEV_STATE_CREATED) {", "error_set(VAR_4, QERR_PERMISSION_DENIED);", "return;", "}", "if (prop->info->parse) {", "Error *local_err = NULL;", "ch...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
12,876
static void channel_load_d(struct fs_dma_ctrl *ctrl, int c) { target_phys_addr_t addr = channel_reg(ctrl, c, RW_SAVED_DATA); /* Load and decode. FIXME: handle endianness. */ D(printf("%s ch=%d addr=" TARGET_FMT_plx "\n", __func__, c, addr)); cpu_physical_memory_read (addr, (void *) &ctrl->channels[c]...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void channel_load_d(struct fs_dma_ctrl *ctrl, int c) { target_phys_addr_t addr = channel_reg(ctrl, c, RW_SAVED_DATA); D(printf("%s ch=%d addr=" TARGET_FMT_plx "\n", __func__, c, addr)); cpu_physical_memory_read (addr, (void *) &ctrl->channels[c].current_d, sizeof ctrl->channels[c].curr...
{ "code": [], "line_no": [] }
static void FUNC_0(struct fs_dma_ctrl *VAR_0, int VAR_1) { target_phys_addr_t addr = channel_reg(VAR_0, VAR_1, RW_SAVED_DATA); D(printf("%s ch=%d addr=" TARGET_FMT_plx "\n", __func__, VAR_1, addr)); cpu_physical_memory_read (addr, (void *) &VAR_0->channels[VAR_1].current_d, sizeof VAR_0->chan...
[ "static void FUNC_0(struct fs_dma_ctrl *VAR_0, int VAR_1)\n{", "target_phys_addr_t addr = channel_reg(VAR_0, VAR_1, RW_SAVED_DATA);", "D(printf(\"%s ch=%d addr=\" TARGET_FMT_plx \"\\n\", __func__, VAR_1, addr));", "cpu_physical_memory_read (addr,\n(void *) &VAR_0->channels[VAR_1].current_d,\nsizeof VAR_0->cha...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13, 15, 17 ], [ 21 ], [ 23 ], [ 25 ] ]
12,877
static int xenfb_map_fb(struct XenFB *xenfb) { struct xenfb_page *page = xenfb->c.page; char *protocol = xenfb->c.xendev.protocol; int n_fbdirs; unsigned long *pgmfns = NULL; unsigned long *fbmfns = NULL; void *map, *pd; int mode, ret = -1; /* default to native */ pd = pa...
false
qemu
0193c62c94643a837832f2b5ccc133434ee740cb
static int xenfb_map_fb(struct XenFB *xenfb) { struct xenfb_page *page = xenfb->c.page; char *protocol = xenfb->c.xendev.protocol; int n_fbdirs; unsigned long *pgmfns = NULL; unsigned long *fbmfns = NULL; void *map, *pd; int mode, ret = -1; pd = page->pd; mode = siz...
{ "code": [], "line_no": [] }
static int FUNC_0(struct XenFB *VAR_0) { struct xenfb_page *VAR_1 = VAR_0->c.VAR_1; char *VAR_2 = VAR_0->c.xendev.VAR_2; int VAR_3; unsigned long *VAR_4 = NULL; unsigned long *VAR_5 = NULL; void *VAR_6, *VAR_7; int VAR_8, VAR_9 = -1; VAR_7 = VAR_1->VAR_7; VAR_8 = si...
[ "static int FUNC_0(struct XenFB *VAR_0)\n{", "struct xenfb_page *VAR_1 = VAR_0->c.VAR_1;", "char *VAR_2 = VAR_0->c.xendev.VAR_2;", "int VAR_3;", "unsigned long *VAR_4 = NULL;", "unsigned long *VAR_5 = NULL;", "void *VAR_6, *VAR_7;", "int VAR_8, VAR_9 = -1;", "VAR_7 = VAR_1->VAR_7;", "VAR_8 = sizeo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 29 ], [ 49 ], [ 51 ], [ 53, 55 ], [ 57 ], [ 59, 61 ], [ 63 ], [ 65, 67 ], [...
12,878
static int cpu_gdb_read_register(CPUState *env, uint8_t *mem_buf, int n) { if (n < 32) { GET_REGL(env->active_tc.gpr[n]); } if (env->CP0_Config1 & (1 << CP0C1_FP)) { if (n >= 38 && n < 70) { if (env->CP0_Status & (1 << CP0St_FR)) GET_REGL(env->active_fpu.fpr[n - 38].d);...
false
qemu
ff1d1977ffe1c276f5937a6ad4b6a5b6d2b1c6ae
static int cpu_gdb_read_register(CPUState *env, uint8_t *mem_buf, int n) { if (n < 32) { GET_REGL(env->active_tc.gpr[n]); } if (env->CP0_Config1 & (1 << CP0C1_FP)) { if (n >= 38 && n < 70) { if (env->CP0_Status & (1 << CP0St_FR)) GET_REGL(env->active_fpu.fpr[n - 38].d);...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUState *VAR_0, uint8_t *VAR_1, int VAR_2) { if (VAR_2 < 32) { GET_REGL(VAR_0->active_tc.gpr[VAR_2]); } if (VAR_0->CP0_Config1 & (1 << CP0C1_FP)) { if (VAR_2 >= 38 && VAR_2 < 70) { if (VAR_0->CP0_Status & (1 << CP0St_FR)) GET_REGL(VAR_0->active_fpu.fp...
[ "static int FUNC_0(CPUState *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "if (VAR_2 < 32) {", "GET_REGL(VAR_0->active_tc.gpr[VAR_2]);", "}", "if (VAR_0->CP0_Config1 & (1 << CP0C1_FP)) {", "if (VAR_2 >= 38 && VAR_2 < 70) {", "if (VAR_0->CP0_Status & (1 << CP0St_FR))\nGET_REGL(VAR_0->active_fpu.fpr[VAR_2 - 38]...
[ 0, 0, 0, 0, 0, 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 ...
12,879
static int update_rom_mapping(VAPICROMState *s, CPUX86State *env, target_ulong ip) { target_phys_addr_t paddr; uint32_t rom_state_vaddr; uint32_t pos, patch, offset; /* nothing to do if already activated */ if (s->state == VAPIC_ACTIVE) { return 0; } /* bail out if ROM i...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static int update_rom_mapping(VAPICROMState *s, CPUX86State *env, target_ulong ip) { target_phys_addr_t paddr; uint32_t rom_state_vaddr; uint32_t pos, patch, offset; if (s->state == VAPIC_ACTIVE) { return 0; } if (s->state == VAPIC_INACTIVE) { return -1; ...
{ "code": [], "line_no": [] }
static int FUNC_0(VAPICROMState *VAR_0, CPUX86State *VAR_1, target_ulong VAR_2) { target_phys_addr_t paddr; uint32_t rom_state_vaddr; uint32_t pos, patch, offset; if (VAR_0->state == VAPIC_ACTIVE) { return 0; } if (VAR_0->state == VAPIC_INACTIVE) { return...
[ "static int FUNC_0(VAPICROMState *VAR_0, CPUX86State *VAR_1, target_ulong VAR_2)\n{", "target_phys_addr_t paddr;", "uint32_t rom_state_vaddr;", "uint32_t pos, patch, offset;", "if (VAR_0->state == VAPIC_ACTIVE) {", "return 0;", "}", "if (VAR_0->state == VAPIC_INACTIVE) {", "return -1;", "}", "ro...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
12,880
void omap_badwidth_write32(void *opaque, target_phys_addr_t addr, uint32_t value) { OMAP_32B_REG(addr); cpu_physical_memory_write(addr, (void *) &value, 4); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
void omap_badwidth_write32(void *opaque, target_phys_addr_t addr, uint32_t value) { OMAP_32B_REG(addr); cpu_physical_memory_write(addr, (void *) &value, 4); }
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { OMAP_32B_REG(VAR_1); cpu_physical_memory_write(VAR_1, (void *) &VAR_2, 4); }
[ "void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{", "OMAP_32B_REG(VAR_1);", "cpu_physical_memory_write(VAR_1, (void *) &VAR_2, 4);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ] ]
12,881
static void file_put_buffer(void *opaque, const uint8_t *buf, int64_t pos, int size) { QEMUFileStdio *s = opaque; fseek(s->outfile, pos, SEEK_SET); fwrite(buf, 1, size, s->outfile); }
false
qemu
871d2f079661323a7645b388eb5ae8d7eeb3117c
static void file_put_buffer(void *opaque, const uint8_t *buf, int64_t pos, int size) { QEMUFileStdio *s = opaque; fseek(s->outfile, pos, SEEK_SET); fwrite(buf, 1, size, s->outfile); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, int64_t VAR_2, int VAR_3) { QEMUFileStdio *s = VAR_0; fseek(s->outfile, VAR_2, SEEK_SET); fwrite(VAR_1, 1, VAR_3, s->outfile); }
[ "static void FUNC_0(void *VAR_0, const uint8_t *VAR_1,\nint64_t VAR_2, int VAR_3)\n{", "QEMUFileStdio *s = VAR_0;", "fseek(s->outfile, VAR_2, SEEK_SET);", "fwrite(VAR_1, 1, VAR_3, s->outfile);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
12,882
void qio_channel_socket_connect_async(QIOChannelSocket *ioc, SocketAddress *addr, QIOTaskFunc callback, gpointer opaque, GDestroyNotify destroy) { QIOTask *ta...
false
qemu
dfd100f242370886bb6732f70f1f7cbd8eb9fedc
void qio_channel_socket_connect_async(QIOChannelSocket *ioc, SocketAddress *addr, QIOTaskFunc callback, gpointer opaque, GDestroyNotify destroy) { QIOTask *ta...
{ "code": [], "line_no": [] }
void FUNC_0(QIOChannelSocket *VAR_0, SocketAddress *VAR_1, QIOTaskFunc VAR_2, gpointer VAR_3, GDestroyNotify VAR_4) { QIOTask *task = qio_task_new( O...
[ "void FUNC_0(QIOChannelSocket *VAR_0,\nSocketAddress *VAR_1,\nQIOTaskFunc VAR_2,\ngpointer VAR_3,\nGDestroyNotify VAR_4)\n{", "QIOTask *task = qio_task_new(\nOBJECT(VAR_0), VAR_2, VAR_3, VAR_4);", "SocketAddress *addrCopy;", "addrCopy = QAPI_CLONE(SocketAddress, VAR_1);", "trace_qio_channel_socket_connect_a...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13, 15 ], [ 17 ], [ 21 ], [ 29 ], [ 31, 33, 35, 37 ], [ 39 ] ]
12,883
connect_to_qemu( const char *host, const char *port ) { struct addrinfo hints; struct addrinfo *server; int ret, sock; sock = qemu_socket(AF_INET, SOCK_STREAM, 0); if (sock < 0) { /* Error */ fprintf(stderr, "Error opening socket!\n"); return -1; } ...
false
qemu
2a0c46da967e5dc8cfe73b1b6fe7a1600c04f461
connect_to_qemu( const char *host, const char *port ) { struct addrinfo hints; struct addrinfo *server; int ret, sock; sock = qemu_socket(AF_INET, SOCK_STREAM, 0); if (sock < 0) { fprintf(stderr, "Error opening socket!\n"); return -1; } memse...
{ "code": [], "line_no": [] }
FUNC_0( const char *VAR_0, const char *VAR_1 ) { struct addrinfo VAR_2; struct addrinfo *VAR_3; int VAR_4, VAR_5; VAR_5 = qemu_socket(AF_INET, SOCK_STREAM, 0); if (VAR_5 < 0) { fprintf(stderr, "Error opening socket!\n"); return -1; } memset(&...
[ "FUNC_0(\nconst char *VAR_0,\nconst char *VAR_1\n) {", "struct addrinfo VAR_2;", "struct addrinfo *VAR_3;", "int VAR_4, VAR_5;", "VAR_5 = qemu_socket(AF_INET, SOCK_STREAM, 0);", "if (VAR_5 < 0) {", "fprintf(stderr, \"Error opening socket!\\n\");", "return -1;", "}", "memset(&VAR_2, 0, sizeof(struc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ...
12,884
static inline uint32_t efsctuiz(uint32_t val) { CPU_FloatU u; u.l = val; /* NaN are not treated the same way IEEE 754 does */ if (unlikely(float32_is_nan(u.f))) return 0; return float32_to_uint32_round_to_zero(u.f, &env->vec_status); }
false
qemu
185698715dfb18c82ad2a5dbc169908602d43e81
static inline uint32_t efsctuiz(uint32_t val) { CPU_FloatU u; u.l = val; if (unlikely(float32_is_nan(u.f))) return 0; return float32_to_uint32_round_to_zero(u.f, &env->vec_status); }
{ "code": [], "line_no": [] }
static inline uint32_t FUNC_0(uint32_t val) { CPU_FloatU u; u.l = val; if (unlikely(float32_is_nan(u.f))) return 0; return float32_to_uint32_round_to_zero(u.f, &env->vec_status); }
[ "static inline uint32_t FUNC_0(uint32_t val)\n{", "CPU_FloatU u;", "u.l = val;", "if (unlikely(float32_is_nan(u.f)))\nreturn 0;", "return float32_to_uint32_round_to_zero(u.f, &env->vec_status);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ] ]
12,885
static int escape(char **dst, const char *src, const char *special_chars, enum EscapeMode mode) { AVBPrint dstbuf; av_bprint_init(&dstbuf, 1, AV_BPRINT_SIZE_UNLIMITED); switch (mode) { case ESCAPE_MODE_FULL: case ESCAPE_MODE_LAZY: /* \-escape characters */ ...
false
FFmpeg
9767ec6b865c35f68cb6642fefeacc009f17e638
static int escape(char **dst, const char *src, const char *special_chars, enum EscapeMode mode) { AVBPrint dstbuf; av_bprint_init(&dstbuf, 1, AV_BPRINT_SIZE_UNLIMITED); switch (mode) { case ESCAPE_MODE_FULL: case ESCAPE_MODE_LAZY: if (mode == ESCAPE_...
{ "code": [], "line_no": [] }
static int FUNC_0(char **VAR_0, const char *VAR_1, const char *VAR_2, enum EscapeMode VAR_3) { AVBPrint dstbuf; av_bprint_init(&dstbuf, 1, AV_BPRINT_SIZE_UNLIMITED); switch (VAR_3) { case ESCAPE_MODE_FULL: case ESCAPE_MODE_LAZY: if (VAR_3 == ESCAPE_M...
[ "static int FUNC_0(char **VAR_0, const char *VAR_1, const char *VAR_2,\nenum EscapeMode VAR_3)\n{", "AVBPrint dstbuf;", "av_bprint_init(&dstbuf, 1, AV_BPRINT_SIZE_UNLIMITED);", "switch (VAR_3) {", "case ESCAPE_MODE_FULL:\ncase ESCAPE_MODE_LAZY:\nif (VAR_3 == ESCAPE_MODE_LAZY && strchr(WHITESPACES, *VAR_1))\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17, 19, 25, 27 ], [ 31 ], [ 33, 35, 37, 39 ], [ 41, 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 63...
12,886
static void spapr_machine_class_init(ObjectClass *oc, void *data) { MachineClass *mc = MACHINE_CLASS(oc); sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(oc); FWPathProviderClass *fwc = FW_PATH_PROVIDER_CLASS(oc); NMIClass *nc = NMI_CLASS(oc); HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc); ...
false
qemu
079019f2e319bd1279681b6c1d7dde785d09e69e
static void spapr_machine_class_init(ObjectClass *oc, void *data) { MachineClass *mc = MACHINE_CLASS(oc); sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(oc); FWPathProviderClass *fwc = FW_PATH_PROVIDER_CLASS(oc); NMIClass *nc = NMI_CLASS(oc); HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(oc); ...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { MachineClass *mc = MACHINE_CLASS(VAR_0); sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(VAR_0); FWPathProviderClass *fwc = FW_PATH_PROVIDER_CLASS(VAR_0); NMIClass *nc = NMI_CLASS(VAR_0); HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(VAR_0);...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "MachineClass *mc = MACHINE_CLASS(VAR_0);", "sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(VAR_0);", "FWPathProviderClass *fwc = FW_PATH_PROVIDER_CLASS(VAR_0);", "NMIClass *nc = NMI_CLASS(VAR_0);", "HotplugHandlerClass *hc = HOTPLUG_HANDLER_CLASS(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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
12,888
static void xen_config_cleanup_dir(char *dir) { struct xs_dirs *d; d = qemu_malloc(sizeof(*d)); d->xs_dir = dir; TAILQ_INSERT_TAIL(&xs_cleanup, d, list); }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
static void xen_config_cleanup_dir(char *dir) { struct xs_dirs *d; d = qemu_malloc(sizeof(*d)); d->xs_dir = dir; TAILQ_INSERT_TAIL(&xs_cleanup, d, list); }
{ "code": [], "line_no": [] }
static void FUNC_0(char *VAR_0) { struct xs_dirs *VAR_1; VAR_1 = qemu_malloc(sizeof(*VAR_1)); VAR_1->xs_dir = VAR_0; TAILQ_INSERT_TAIL(&xs_cleanup, VAR_1, list); }
[ "static void FUNC_0(char *VAR_0)\n{", "struct xs_dirs *VAR_1;", "VAR_1 = qemu_malloc(sizeof(*VAR_1));", "VAR_1->xs_dir = VAR_0;", "TAILQ_INSERT_TAIL(&xs_cleanup, VAR_1, list);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
12,889
void gen_intermediate_code(CPUSH4State * env, struct TranslationBlock *tb) { SuperHCPU *cpu = sh_env_get_cpu(env); CPUState *cs = CPU(cpu); DisasContext ctx; target_ulong pc_start; int num_insns; int max_insns; pc_start = tb->pc; ctx.pc = pc_start; ctx.tbflags = (uint32_t...
false
qemu
4448a83606b5861cfa11528c0395868fc2b0e99e
void gen_intermediate_code(CPUSH4State * env, struct TranslationBlock *tb) { SuperHCPU *cpu = sh_env_get_cpu(env); CPUState *cs = CPU(cpu); DisasContext ctx; target_ulong pc_start; int num_insns; int max_insns; pc_start = tb->pc; ctx.pc = pc_start; ctx.tbflags = (uint32_t...
{ "code": [], "line_no": [] }
void FUNC_0(CPUSH4State * VAR_0, struct TranslationBlock *VAR_1) { SuperHCPU *cpu = sh_env_get_cpu(VAR_0); CPUState *cs = CPU(cpu); DisasContext ctx; target_ulong pc_start; int VAR_2; int VAR_3; pc_start = VAR_1->pc; ctx.pc = pc_start; ctx.tbflags = (uint32_t)VAR_1->flags...
[ "void FUNC_0(CPUSH4State * VAR_0, struct TranslationBlock *VAR_1)\n{", "SuperHCPU *cpu = sh_env_get_cpu(VAR_0);", "CPUState *cs = CPU(cpu);", "DisasContext ctx;", "target_ulong pc_start;", "int VAR_2;", "int VAR_3;", "pc_start = VAR_1->pc;", "ctx.pc = pc_start;", "ctx.tbflags = (uint32_t)VAR_1->fl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ...
12,890
void OPPROTO op_cli(void) { raise_exception(EXCP0D_GPF); }
false
qemu
504e56ebdca53bf8e8d379aa994e90a2e3b0d564
void OPPROTO op_cli(void) { raise_exception(EXCP0D_GPF); }
{ "code": [], "line_no": [] }
void VAR_0 op_cli(void) { raise_exception(EXCP0D_GPF); }
[ "void VAR_0 op_cli(void)\n{", "raise_exception(EXCP0D_GPF);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
12,891
static void tgen_ext16u(TCGContext *s, TCGType type, TCGReg dest, TCGReg src) { if (facilities & FACILITY_EXT_IMM) { tcg_out_insn(s, RRE, LLGHR, dest, src); return; } if (dest == src) { tcg_out_movi(s, type, TCG_TMP0, 0xffff); src = TCG_TMP0; } else { ...
false
qemu
b2c98d9d392c87c9b9e975d30f79924719d9cbbe
static void tgen_ext16u(TCGContext *s, TCGType type, TCGReg dest, TCGReg src) { if (facilities & FACILITY_EXT_IMM) { tcg_out_insn(s, RRE, LLGHR, dest, src); return; } if (dest == src) { tcg_out_movi(s, type, TCG_TMP0, 0xffff); src = TCG_TMP0; } else { ...
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGReg VAR_2, TCGReg VAR_3) { if (facilities & FACILITY_EXT_IMM) { tcg_out_insn(VAR_0, RRE, LLGHR, VAR_2, VAR_3); return; } if (VAR_2 == VAR_3) { tcg_out_movi(VAR_0, VAR_1, TCG_TMP0, 0xffff); VAR_3 = TCG_TMP0; ...
[ "static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGReg VAR_2, TCGReg VAR_3)\n{", "if (facilities & FACILITY_EXT_IMM) {", "tcg_out_insn(VAR_0, RRE, LLGHR, VAR_2, VAR_3);", "return;", "}", "if (VAR_2 == VAR_3) {", "tcg_out_movi(VAR_0, VAR_1, TCG_TMP0, 0xffff);", "VAR_3 = TCG_TMP0;", "} else {", ...
[ 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 ] ]
12,892
void mips_malta_init(QEMUMachineInitArgs *args) { ram_addr_t ram_size = args->ram_size; const char *cpu_model = args->cpu_model; const char *kernel_filename = args->kernel_filename; const char *kernel_cmdline = args->kernel_cmdline; const char *initrd_filename = args->initrd_filename; cha...
false
qemu
35c648078aa493c3b976840eb7cf2e53ab5b7a2d
void mips_malta_init(QEMUMachineInitArgs *args) { ram_addr_t ram_size = args->ram_size; const char *cpu_model = args->cpu_model; const char *kernel_filename = args->kernel_filename; const char *kernel_cmdline = args->kernel_cmdline; const char *initrd_filename = args->initrd_filename; cha...
{ "code": [], "line_no": [] }
void FUNC_0(QEMUMachineInitArgs *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; const char *VAR_3 = VAR_0->VAR_3; const char *VAR_4 = VAR_0->VAR_4; char *VAR_5; pflash_t *fl; MemoryRegion *system_memory = get_s...
[ "void FUNC_0(QEMUMachineInitArgs *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;", "const char *VAR_3 = VAR_0->VAR_3;", "const char *VAR_4 = VAR_0->VAR_4;", "char *VAR_5;", "pflash_t *fl;", "MemoryRegion *system_memory = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ...
12,893
static void test_pci_enable(void) { AHCIQState *ahci; ahci = ahci_boot(); ahci_pci_enable(ahci); ahci_shutdown(ahci); }
false
qemu
debaaa114a8877a939533ba846e64168fb287b7b
static void test_pci_enable(void) { AHCIQState *ahci; ahci = ahci_boot(); ahci_pci_enable(ahci); ahci_shutdown(ahci); }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { AHCIQState *ahci; ahci = ahci_boot(); ahci_pci_enable(ahci); ahci_shutdown(ahci); }
[ "static void FUNC_0(void)\n{", "AHCIQState *ahci;", "ahci = ahci_boot();", "ahci_pci_enable(ahci);", "ahci_shutdown(ahci);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
12,895
static int fill_psinfo(struct target_elf_prpsinfo *psinfo, const TaskState *ts) { char *filename, *base_filename; unsigned int i, len; (void) memset(psinfo, 0, sizeof (*psinfo)); len = ts->info->arg_end - ts->info->arg_start; if (len >= ELF_PRARGSZ) len = ELF_PRARGSZ - 1; if ...
false
qemu
991f8f0c91d65cebf51fa931450e02b0d5209012
static int fill_psinfo(struct target_elf_prpsinfo *psinfo, const TaskState *ts) { char *filename, *base_filename; unsigned int i, len; (void) memset(psinfo, 0, sizeof (*psinfo)); len = ts->info->arg_end - ts->info->arg_start; if (len >= ELF_PRARGSZ) len = ELF_PRARGSZ - 1; if ...
{ "code": [], "line_no": [] }
static int FUNC_0(struct target_elf_prpsinfo *VAR_0, const TaskState *VAR_1) { char *VAR_2, *VAR_3; unsigned int VAR_4, VAR_5; (void) memset(VAR_0, 0, sizeof (*VAR_0)); VAR_5 = VAR_1->info->arg_end - VAR_1->info->arg_start; if (VAR_5 >= ELF_PRARGSZ) VAR_5 = ELF_PRARGSZ - 1; i...
[ "static int FUNC_0(struct target_elf_prpsinfo *VAR_0, const TaskState *VAR_1)\n{", "char *VAR_2, *VAR_3;", "unsigned int VAR_4, VAR_5;", "(void) memset(VAR_0, 0, sizeof (*VAR_0));", "VAR_5 = VAR_1->info->arg_end - VAR_1->info->arg_start;", "if (VAR_5 >= ELF_PRARGSZ)\nVAR_5 = ELF_PRARGSZ - 1;", "if (copy...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], ...
12,896
static void do_exit(void) { if (cur_stream) { stream_close(cur_stream); cur_stream = NULL; } uninit_opts(); #if CONFIG_AVFILTER avfilter_uninit(); #endif avformat_network_deinit(); if (show_status) printf("\n"); SDL_Quit(); av_log(NULL, AV_LOG_QUIET,...
false
FFmpeg
fa2a34cd40d124161c748bb0f430dc63c94dd0da
static void do_exit(void) { if (cur_stream) { stream_close(cur_stream); cur_stream = NULL; } uninit_opts(); #if CONFIG_AVFILTER avfilter_uninit(); #endif avformat_network_deinit(); if (show_status) printf("\n"); SDL_Quit(); av_log(NULL, AV_LOG_QUIET,...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { if (cur_stream) { stream_close(cur_stream); cur_stream = NULL; } uninit_opts(); #if CONFIG_AVFILTER avfilter_uninit(); #endif avformat_network_deinit(); if (show_status) printf("\n"); SDL_Quit(); av_log(NULL, AV_LOG_QUIET, ...
[ "static void FUNC_0(void)\n{", "if (cur_stream) {", "stream_close(cur_stream);", "cur_stream = NULL;", "}", "uninit_opts();", "#if CONFIG_AVFILTER\navfilter_uninit();", "#endif\navformat_network_deinit();", "if (show_status)\nprintf(\"\\n\");", "SDL_Quit();", "av_log(NULL, AV_LOG_QUIET, \"\");",...
[ 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 ] ]
12,897
static TileExcp decode_y0(DisasContext *dc, tilegx_bundle_bits bundle) { unsigned opc = get_Opcode_Y0(bundle); unsigned ext = get_RRROpcodeExtension_Y0(bundle); unsigned dest = get_Dest_Y0(bundle); unsigned srca = get_SrcA_Y0(bundle); unsigned srcb; int imm; switch (opc) { cas...
false
qemu
dd8070d865ad1b32876931f812a80645f97112ff
static TileExcp decode_y0(DisasContext *dc, tilegx_bundle_bits bundle) { unsigned opc = get_Opcode_Y0(bundle); unsigned ext = get_RRROpcodeExtension_Y0(bundle); unsigned dest = get_Dest_Y0(bundle); unsigned srca = get_SrcA_Y0(bundle); unsigned srcb; int imm; switch (opc) { cas...
{ "code": [], "line_no": [] }
static TileExcp FUNC_0(DisasContext *dc, tilegx_bundle_bits bundle) { unsigned VAR_0 = get_Opcode_Y0(bundle); unsigned VAR_1 = get_RRROpcodeExtension_Y0(bundle); unsigned VAR_2 = get_Dest_Y0(bundle); unsigned VAR_3 = get_SrcA_Y0(bundle); unsigned VAR_4; int VAR_5; switch (VAR_0) { ...
[ "static TileExcp FUNC_0(DisasContext *dc, tilegx_bundle_bits bundle)\n{", "unsigned VAR_0 = get_Opcode_Y0(bundle);", "unsigned VAR_1 = get_RRROpcodeExtension_Y0(bundle);", "unsigned VAR_2 = get_Dest_Y0(bundle);", "unsigned VAR_3 = get_SrcA_Y0(bundle);", "unsigned VAR_4;", "int VAR_5;", "switch (VAR_0)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35, 37, 39, 41, 43, 45, 47, 49, 51 ], [ 53 ], [ 57,...
12,898
void ioinst_handle_schm(S390CPU *cpu, uint64_t reg1, uint64_t reg2, uint32_t ipb) { uint8_t mbk; int update; int dct; CPUS390XState *env = &cpu->env; trace_ioinst("schm"); if (SCHM_REG1_RES(reg1)) { program_interrupt(env, PGM_OPERAND, 2); ret...
false
qemu
7e01376daea75e888c370aab521a7d4aeaf2ffd1
void ioinst_handle_schm(S390CPU *cpu, uint64_t reg1, uint64_t reg2, uint32_t ipb) { uint8_t mbk; int update; int dct; CPUS390XState *env = &cpu->env; trace_ioinst("schm"); if (SCHM_REG1_RES(reg1)) { program_interrupt(env, PGM_OPERAND, 2); ret...
{ "code": [], "line_no": [] }
void FUNC_0(S390CPU *VAR_0, uint64_t VAR_1, uint64_t VAR_2, uint32_t VAR_3) { uint8_t mbk; int VAR_4; int VAR_5; CPUS390XState *env = &VAR_0->env; trace_ioinst("schm"); if (SCHM_REG1_RES(VAR_1)) { program_interrupt(env, PGM_OPERAND, 2); retur...
[ "void FUNC_0(S390CPU *VAR_0, uint64_t VAR_1, uint64_t VAR_2,\nuint32_t VAR_3)\n{", "uint8_t mbk;", "int VAR_4;", "int VAR_5;", "CPUS390XState *env = &VAR_0->env;", "trace_ioinst(\"schm\");", "if (SCHM_REG1_RES(VAR_1)) {", "program_interrupt(env, PGM_OPERAND, 2);", "return;", "}", "mbk = SCHM_REG...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ] ]
12,899
QPCIBus *qpci_init_spapr(QGuestAllocator *alloc) { QPCIBusSPAPR *ret; ret = g_malloc(sizeof(*ret)); ret->alloc = alloc; ret->bus.io_readb = qpci_spapr_io_readb; ret->bus.io_readw = qpci_spapr_io_readw; ret->bus.io_readl = qpci_spapr_io_readl; ret->bus.io_writeb = qpci_spapr_i...
false
qemu
8360544a6d3a54df1fce80f55ba4ad075a8ded54
QPCIBus *qpci_init_spapr(QGuestAllocator *alloc) { QPCIBusSPAPR *ret; ret = g_malloc(sizeof(*ret)); ret->alloc = alloc; ret->bus.io_readb = qpci_spapr_io_readb; ret->bus.io_readw = qpci_spapr_io_readw; ret->bus.io_readl = qpci_spapr_io_readl; ret->bus.io_writeb = qpci_spapr_i...
{ "code": [], "line_no": [] }
QPCIBus *FUNC_0(QGuestAllocator *alloc) { QPCIBusSPAPR *ret; ret = g_malloc(sizeof(*ret)); ret->alloc = alloc; ret->bus.io_readb = qpci_spapr_io_readb; ret->bus.io_readw = qpci_spapr_io_readw; ret->bus.io_readl = qpci_spapr_io_readl; ret->bus.io_writeb = qpci_spapr_io_writeb;...
[ "QPCIBus *FUNC_0(QGuestAllocator *alloc)\n{", "QPCIBusSPAPR *ret;", "ret = g_malloc(sizeof(*ret));", "ret->alloc = alloc;", "ret->bus.io_readb = qpci_spapr_io_readb;", "ret->bus.io_readw = qpci_spapr_io_readw;", "ret->bus.io_readl = qpci_spapr_io_readl;", "ret->bus.io_writeb = qpci_spapr_io_writeb;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 61 ], [ 65...
12,900
static void icount_warp_rt(void *opaque) { if (vm_clock_warp_start == -1) { return; } if (runstate_is_running()) { int64_t clock = qemu_clock_get_ns(QEMU_CLOCK_REALTIME); int64_t warp_delta = clock - vm_clock_warp_start; if (use_icount == 1) { qemu_icou...
false
qemu
8ed961d95708ee6cadac22fba7762724d533a5b4
static void icount_warp_rt(void *opaque) { if (vm_clock_warp_start == -1) { return; } if (runstate_is_running()) { int64_t clock = qemu_clock_get_ns(QEMU_CLOCK_REALTIME); int64_t warp_delta = clock - vm_clock_warp_start; if (use_icount == 1) { qemu_icou...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { if (vm_clock_warp_start == -1) { return; } if (runstate_is_running()) { int64_t clock = qemu_clock_get_ns(QEMU_CLOCK_REALTIME); int64_t warp_delta = clock - vm_clock_warp_start; if (use_icount == 1) { qemu_icount_bias +...
[ "static void FUNC_0(void *VAR_0)\n{", "if (vm_clock_warp_start == -1) {", "return;", "}", "if (runstate_is_running()) {", "int64_t clock = qemu_clock_get_ns(QEMU_CLOCK_REALTIME);", "int64_t warp_delta = clock - vm_clock_warp_start;", "if (use_icount == 1) {", "qemu_icount_bias += warp_delta;", "} ...
[ 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
12,901
static abi_long do_sendrecvmsg(int fd, abi_ulong target_msg, int flags, int send) { abi_long ret, len; struct target_msghdr *msgp; struct msghdr msg; int count; struct iovec *vec; abi_ulong target_vec; /* FIXME */ if (!lock_user_struct(send ? VE...
false
qemu
f287b2c2d4d20d35880ab6dca44bda0476e67dce
static abi_long do_sendrecvmsg(int fd, abi_ulong target_msg, int flags, int send) { abi_long ret, len; struct target_msghdr *msgp; struct msghdr msg; int count; struct iovec *vec; abi_ulong target_vec; if (!lock_user_struct(send ? VERIFY_READ :...
{ "code": [], "line_no": [] }
static abi_long FUNC_0(int fd, abi_ulong target_msg, int flags, int send) { abi_long ret, len; struct target_msghdr *VAR_0; struct msghdr VAR_1; int VAR_2; struct iovec *VAR_3; abi_ulong target_vec; if (!lock_user_struct(send ? VERIFY_READ : VE...
[ "static abi_long FUNC_0(int fd, abi_ulong target_msg,\nint flags, int send)\n{", "abi_long ret, len;", "struct target_msghdr *VAR_0;", "struct msghdr VAR_1;", "int VAR_2;", "struct iovec *VAR_3;", "abi_ulong target_vec;", "if (!lock_user_struct(send ? VERIFY_READ : VERIFY_WRITE,\nVAR_0,\ntarget_msg,\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23, 25, 27, 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
12,902
void av_image_copy_plane(uint8_t *dst, int dst_linesize, const uint8_t *src, int src_linesize, int bytewidth, int height) { if (!dst || !src) return; for (;height > 0; height--) { memcpy(dst, src, bytewidth); dst += dst_li...
true
FFmpeg
252746d052652b48f7bc0652e7c1601b1e997d9c
void av_image_copy_plane(uint8_t *dst, int dst_linesize, const uint8_t *src, int src_linesize, int bytewidth, int height) { if (!dst || !src) return; for (;height > 0; height--) { memcpy(dst, src, bytewidth); dst += dst_li...
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, int VAR_1, const uint8_t *VAR_2, int VAR_3, int VAR_4, int VAR_5) { if (!VAR_0 || !VAR_2) return; for (;VAR_5 > 0; VAR_5--) { memcpy(VAR_0, VAR_2, VAR_4); VAR_0 += VAR_1; VAR_2 += VAR_3...
[ "void FUNC_0(uint8_t *VAR_0, int VAR_1,\nconst uint8_t *VAR_2, int VAR_3,\nint VAR_4, int VAR_5)\n{", "if (!VAR_0 || !VAR_2)\nreturn;", "for (;VAR_5 > 0; VAR_5--) {", "memcpy(VAR_0, VAR_2, VAR_4);", "VAR_0 += VAR_1;", "VAR_2 += VAR_3;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
12,903
static int latm_decode_frame(AVCodecContext *avctx, void *out, int *got_frame_ptr, AVPacket *avpkt) { struct LATMContext *latmctx = avctx->priv_data; int muxlength, err; GetBitContext gb; if ((err = init_get_bits8(&gb, avpkt->data, avpkt->size))...
true
FFmpeg
7f46a641bf2540b8cf1293d5e50c0c0e34264254
static int latm_decode_frame(AVCodecContext *avctx, void *out, int *got_frame_ptr, AVPacket *avpkt) { struct LATMContext *latmctx = avctx->priv_data; int muxlength, err; GetBitContext gb; if ((err = init_get_bits8(&gb, avpkt->data, avpkt->size))...
{ "code": [ " avctx->extradata, avctx->extradata_size*8, 1)) < 0) {" ], "line_no": [ 61 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { struct LATMContext *VAR_4 = VAR_0->priv_data; int VAR_5, VAR_6; GetBitContext gb; if ((VAR_6 = init_get_bits8(&gb, VAR_3->data, VAR_3->size)) < 0) retu...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "struct LATMContext *VAR_4 = VAR_0->priv_data;", "int VAR_5, VAR_6;", "GetBitContext gb;", "if ((VAR_6 = init_get_bits8(&gb, VAR_3->data, VAR_3->size)) < 0)\nreturn VAR_6;", "if (get_bits(&gb, 1...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 23, 25 ], [ 29 ], [ 33, 35 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57, 59, 61 ], [...
12,904
static int ioreq_runio_qemu_aio(struct ioreq *ioreq) { struct XenBlkDev *blkdev = ioreq->blkdev; if (ioreq->req.nr_segments && ioreq_map(ioreq) == -1) goto err; ioreq->aio_inflight++; if (ioreq->presync) bdrv_flush(blkdev->bs); /* FIXME: aio_flush() ??? */ switch (ioreq->req.operatio...
true
qemu
209bef3e014ba1613759575e2c10f0ef8d64eb84
static int ioreq_runio_qemu_aio(struct ioreq *ioreq) { struct XenBlkDev *blkdev = ioreq->blkdev; if (ioreq->req.nr_segments && ioreq_map(ioreq) == -1) goto err; ioreq->aio_inflight++; if (ioreq->presync) bdrv_flush(blkdev->bs); switch (ioreq->req.operation) { case BLKIF_OP_READ...
{ "code": [ " ioreq->aio_inflight++;" ], "line_no": [ 27 ] }
static int FUNC_0(struct VAR_0 *VAR_0) { struct XenBlkDev *VAR_1 = VAR_0->VAR_1; if (VAR_0->req.nr_segments && ioreq_map(VAR_0) == -1) goto err; VAR_0->aio_inflight++; if (VAR_0->presync) bdrv_flush(VAR_1->bs); switch (VAR_0->req.operation) { case BLKIF_OP_READ: VAR_0-...
[ "static int FUNC_0(struct VAR_0 *VAR_0)\n{", "struct XenBlkDev *VAR_1 = VAR_0->VAR_1;", "if (VAR_0->req.nr_segments && ioreq_map(VAR_0) == -1)\ngoto err;", "VAR_0->aio_inflight++;", "if (VAR_0->presync)\nbdrv_flush(VAR_1->bs);", "switch (VAR_0->req.operation) {", "case BLKIF_OP_READ:\nVAR_0->aio_infligh...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 25, 27 ], [ 29, 31, 33 ], [ 35 ], [ 37, 39, 41 ], [ 43, 45 ], [ 47, 49, 51 ], [ 53 ], [ 55, 59 ], ...
12,905
int attribute_align_arg avcodec_encode_video(AVCodecContext *avctx, uint8_t *buf, int buf_size, const AVFrame *pict) { AVPacket pkt; int ret, got_packet = 0; if (buf_size < FF_MIN_BUFFER_SIZE) { av_log(avctx, AV_LOG_ERROR, "buffer smaller than min...
true
FFmpeg
d32547a24a3fcc8286b318353f43805838b84775
int attribute_align_arg avcodec_encode_video(AVCodecContext *avctx, uint8_t *buf, int buf_size, const AVFrame *pict) { AVPacket pkt; int ret, got_packet = 0; if (buf_size < FF_MIN_BUFFER_SIZE) { av_log(avctx, AV_LOG_ERROR, "buffer smaller than min...
{ "code": [], "line_no": [] }
int VAR_0 avcodec_encode_video(AVCodecContext *avctx, uint8_t *buf, int buf_size, const AVFrame *pict) { AVPacket pkt; int ret, got_packet = 0; if (buf_size < FF_MIN_BUFFER_SIZE) { av_log(avctx, AV_LOG_ERROR, "buffer smaller than minimum size\n");...
[ "int VAR_0 avcodec_encode_video(AVCodecContext *avctx, uint8_t *buf, int buf_size,\nconst AVFrame *pict)\n{", "AVPacket pkt;", "int ret, got_packet = 0;", "if (buf_size < FF_MIN_BUFFER_SIZE) {", "av_log(avctx, AV_LOG_ERROR, \"buffer smaller than minimum size\\n\");", "return -1;", "}", "av_init_packet...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
12,906
static void spapr_pci_pre_save(void *opaque) { sPAPRPHBState *sphb = opaque; GHashTableIter iter; gpointer key, value; int i; g_free(sphb->msi_devs); sphb->msi_devs = NULL; sphb->msi_devs_num = g_hash_table_size(sphb->msi); if (!sphb->msi_devs_num) { return; } ...
true
qemu
e806b4db1477a1c6bfda7bba28c7f26c47f18e1e
static void spapr_pci_pre_save(void *opaque) { sPAPRPHBState *sphb = opaque; GHashTableIter iter; gpointer key, value; int i; g_free(sphb->msi_devs); sphb->msi_devs = NULL; sphb->msi_devs_num = g_hash_table_size(sphb->msi); if (!sphb->msi_devs_num) { return; } ...
{ "code": [ " g_free(sphb->msi_devs);", " sphb->msi_devs = NULL;", " sphb->msi_devs_num = g_hash_table_size(sphb->msi);", " if (!sphb->msi_devs_num) {", " sphb->msi_devs = g_malloc(sphb->msi_devs_num * sizeof(spapr_pci_msi_mig));", " g_hash_table_iter_init(&iter, sphb->msi);"...
static void FUNC_0(void *VAR_0) { sPAPRPHBState *sphb = VAR_0; GHashTableIter iter; gpointer key, value; int VAR_1; g_free(sphb->msi_devs); sphb->msi_devs = NULL; sphb->msi_devs_num = g_hash_table_size(sphb->msi); if (!sphb->msi_devs_num) { return; } sphb->m...
[ "static void FUNC_0(void *VAR_0)\n{", "sPAPRPHBState *sphb = VAR_0;", "GHashTableIter iter;", "gpointer key, value;", "int VAR_1;", "g_free(sphb->msi_devs);", "sphb->msi_devs = NULL;", "sphb->msi_devs_num = g_hash_table_size(sphb->msi);", "if (!sphb->msi_devs_num) {", "return;", "}", "sphb->ms...
[ 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ...
12,907
static void print_report(AVFormatContext **output_files, AVOutputStream **ost_table, int nb_ostreams, int is_last_report) { char buf[1024]; AVOutputStream *ost; AVFormatContext *oc, *os; int64_t total_size; AVCodecContext *enc; int frame...
true
FFmpeg
99fb79b55ad9e6be52c16f2fd794f350bd76154a
static void print_report(AVFormatContext **output_files, AVOutputStream **ost_table, int nb_ostreams, int is_last_report) { char buf[1024]; AVOutputStream *ost; AVFormatContext *oc, *os; int64_t total_size; AVCodecContext *enc; int frame...
{ "code": [ " enc->coded_frame->quality/(float)FF_QP2LAMBDA);", " enc->coded_frame ? enc->coded_frame->quality/(float)FF_QP2LAMBDA : -1);" ], "line_no": [ 87, 103 ] }
static void FUNC_0(AVFormatContext **VAR_0, AVOutputStream **VAR_1, int VAR_2, int VAR_3) { char VAR_4[1024]; AVOutputStream *ost; AVFormatContext *oc, *os; int64_t total_size; AVCodecContext *enc; int VAR_5, VAR_6, VAR_7; double VA...
[ "static void FUNC_0(AVFormatContext **VAR_0,\nAVOutputStream **VAR_1, int VAR_2,\nint VAR_3)\n{", "char VAR_4[1024];", "AVOutputStream *ost;", "AVFormatContext *oc, *os;", "int64_t total_size;", "AVCodecContext *enc;", "int VAR_5, VAR_6, VAR_7;", "double VAR_8, VAR_9, VAR_10;", "static int64_t VAR_1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [...
12,908
static void decode_opc(DisasContext * ctx) { uint32_t old_flags = ctx->envflags; _decode_opc(ctx); if (old_flags & DELAY_SLOT_MASK) { /* go out of the delay slot */ ctx->envflags &= ~DELAY_SLOT_MASK; tcg_gen_movi_i32(cpu_flags, ctx->envflags); ctx->bstate = BS_BRA...
true
qemu
be53081a619443dc4512039d89345475ef7d9a46
static void decode_opc(DisasContext * ctx) { uint32_t old_flags = ctx->envflags; _decode_opc(ctx); if (old_flags & DELAY_SLOT_MASK) { ctx->envflags &= ~DELAY_SLOT_MASK; tcg_gen_movi_i32(cpu_flags, ctx->envflags); ctx->bstate = BS_BRANCH; if (old_flags & ...
{ "code": [ " } else if (old_flags & DELAY_SLOT) {" ], "line_no": [ 27 ] }
static void FUNC_0(DisasContext * VAR_0) { uint32_t old_flags = VAR_0->envflags; _decode_opc(VAR_0); if (old_flags & DELAY_SLOT_MASK) { VAR_0->envflags &= ~DELAY_SLOT_MASK; tcg_gen_movi_i32(cpu_flags, VAR_0->envflags); VAR_0->bstate = BS_BRANCH; if (old_...
[ "static void FUNC_0(DisasContext * VAR_0)\n{", "uint32_t old_flags = VAR_0->envflags;", "_decode_opc(VAR_0);", "if (old_flags & DELAY_SLOT_MASK) {", "VAR_0->envflags &= ~DELAY_SLOT_MASK;", "tcg_gen_movi_i32(cpu_flags, VAR_0->envflags);", "VAR_0->bstate = BS_BRANCH;", "if (old_flags & DELAY_SLOT_CONDIT...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
12,909
grlib_apbuart_writel(void *opaque, target_phys_addr_t addr, uint32_t value) { UART *uart = opaque; unsigned char c = 0; addr &= 0xff; /* Unit registers */ switch (addr) { case DATA_OFFSET: c = value & 0xFF; qemu_chr_write(uart->chr, &c, 1); retu...
true
qemu
b4548fcc0314f5e118ed45b5774e9cd99f9a97d3
grlib_apbuart_writel(void *opaque, target_phys_addr_t addr, uint32_t value) { UART *uart = opaque; unsigned char c = 0; addr &= 0xff; switch (addr) { case DATA_OFFSET: c = value & 0xFF; qemu_chr_write(uart->chr, &c, 1); return; case STAT...
{ "code": [ " trace_grlib_apbuart_unknown_register(\"write\", addr);" ], "line_no": [ 61 ] }
FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { UART *uart = VAR_0; unsigned char VAR_3 = 0; VAR_1 &= 0xff; switch (VAR_1) { case DATA_OFFSET: VAR_3 = VAR_2 & 0xFF; qemu_chr_write(uart->chr, &VAR_3, 1); return; case STATU...
[ "FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)\n{", "UART *uart = VAR_0;", "unsigned char VAR_3 = 0;", "VAR_1 &= 0xff;", "switch (VAR_1) {", "case DATA_OFFSET:\nVAR_3 = VAR_2 & 0xFF;", "qemu_chr_write(uart->chr, &VAR_3, 1);", "return;", "case STATUS_OFFSET:\nreturn;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 29, 33 ], [ 37, 41 ], [ 45, 49 ], [ 53, 55 ], [ 57 ], [ 61 ], [ 63 ] ]
12,910
static void vhost_set_memory(MemoryListener *listener, MemoryRegionSection *section, bool add) { struct vhost_dev *dev = container_of(listener, struct vhost_dev, memory_listener); hwaddr start_addr = section...
true
qemu
2ce68e4cf5be9b5176a3c3c372948d6340724d2d
static void vhost_set_memory(MemoryListener *listener, MemoryRegionSection *section, bool add) { struct vhost_dev *dev = container_of(listener, struct vhost_dev, memory_listener); hwaddr start_addr = section...
{ "code": [], "line_no": [] }
static void FUNC_0(MemoryListener *VAR_0, MemoryRegionSection *VAR_1, bool VAR_2) { struct vhost_dev *VAR_3 = container_of(VAR_0, struct vhost_dev, memory_listener); hwaddr start_addr = VAR_1->offset_within_...
[ "static void FUNC_0(MemoryListener *VAR_0,\nMemoryRegionSection *VAR_1,\nbool VAR_2)\n{", "struct vhost_dev *VAR_3 = container_of(VAR_0, struct vhost_dev,\nmemory_listener);", "hwaddr start_addr = VAR_1->offset_within_address_space;", "ram_addr_t size = int128_get64(VAR_1->size);", "bool log_dirty =\nmemory...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21, 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [...
12,911
void do_tw (int flags) { if (!likely(!((Ts0 < Ts1 && (flags & 0x10)) || (Ts0 > Ts1 && (flags & 0x08)) || (Ts0 == Ts1 && (flags & 0x04)) || (T0 < T1 && (flags & 0x02)) || (T0 > T1 && (flags & 0x01))))) do_raise_exception_err(EXCP_...
true
qemu
d9bce9d99f4656ae0b0127f7472db9067b8f84ab
void do_tw (int flags) { if (!likely(!((Ts0 < Ts1 && (flags & 0x10)) || (Ts0 > Ts1 && (flags & 0x08)) || (Ts0 == Ts1 && (flags & 0x04)) || (T0 < T1 && (flags & 0x02)) || (T0 > T1 && (flags & 0x01))))) do_raise_exception_err(EXCP_...
{ "code": [ " if (!likely(!((Ts0 < Ts1 && (flags & 0x10)) ||", " (Ts0 > Ts1 && (flags & 0x08)) ||", " (Ts0 == Ts1 && (flags & 0x04)) ||", " (T0 < T1 && (flags & 0x02)) ||", " (T0 > T1 && (flags & 0x01)))))" ], "line_no": [ ...
void FUNC_0 (int VAR_0) { if (!likely(!((Ts0 < Ts1 && (VAR_0 & 0x10)) || (Ts0 > Ts1 && (VAR_0 & 0x08)) || (Ts0 == Ts1 && (VAR_0 & 0x04)) || (T0 < T1 && (VAR_0 & 0x02)) || (T0 > T1 && (VAR_0 & 0x01))))) do_raise_exception_err(EXCP...
[ "void FUNC_0 (int VAR_0)\n{", "if (!likely(!((Ts0 < Ts1 && (VAR_0 & 0x10)) ||\n(Ts0 > Ts1 && (VAR_0 & 0x08)) ||\n(Ts0 == Ts1 && (VAR_0 & 0x04)) ||\n(T0 < T1 && (VAR_0 & 0x02)) ||\n(T0 > T1 && (VAR_0 & 0x01)))))\ndo_raise_exception_err(EXCP_PROGRAM, EXCP_TRAP);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13, 15 ], [ 17 ] ]
12,912
static int mss2_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MSS2Context *ctx = avctx->priv_data; MSS12Context *c = &ctx->c; AVFrame *frame = data; Ge...
false
FFmpeg
149268b47c4b0f9c584771e41d266d10cf7e3bf0
static int mss2_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MSS2Context *ctx = avctx->priv_data; MSS12Context *c = &ctx->c; AVFrame *frame = data; Ge...
{ "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; MSS2Context *ctx = VAR_0->priv_data; MSS12Context *c = &ctx->c; AVFrame *frame = VAR_1; GetBitContext g...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "MSS2Context *ctx = VAR_0->priv_data;", "MSS12Context *c = &ctx->c;", "AVFrame *frame = VAR_1;", "GetBitContext gb;", "GetByteContext g...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
12,913
static int output_packet(InputStream *ist, int ist_index, OutputStream *ost_table, int nb_ostreams, const AVPacket *pkt) { AVFormatContext *os; OutputStream *ost; int ret, i; int got_output; void *buffer_to_free = NULL; static unsigned i...
true
FFmpeg
2f3dd904f4d3b2df5ea36ab5720d8f8834c54817
static int output_packet(InputStream *ist, int ist_index, OutputStream *ost_table, int nb_ostreams, const AVPacket *pkt) { AVFormatContext *os; OutputStream *ost; int ret, i; int got_output; void *buffer_to_free = NULL; static unsigned i...
{ "code": [ " if (!decoded_frame->sample_aspect_ratio.num)", " decoded_frame->sample_aspect_ratio = ist->st->sample_aspect_ratio;", " decoded_frame->pts = ist->pts;", " av_vsrc_buffer_add_frame(ost->input_video_filter, decoded_frame, AV_V...
static int FUNC_0(InputStream *VAR_0, int VAR_1, OutputStream *VAR_2, int VAR_3, const AVPacket *VAR_4) { AVFormatContext *os; OutputStream *ost; int VAR_5, VAR_6; int VAR_7; void *VAR_8 = NULL; static unsigned int VAR_9= 0; AVSubti...
[ "static int FUNC_0(InputStream *VAR_0, int VAR_1,\nOutputStream *VAR_2, int VAR_3,\nconst AVPacket *VAR_4)\n{", "AVFormatContext *os;", "OutputStream *ost;", "int VAR_5, VAR_6;", "int VAR_7;", "void *VAR_8 = NULL;", "static unsigned int VAR_9= 0;", "AVSubtitle subtitle, *subtitle_to_free;", "int64_t...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 47 ], [ 51 ], [ 53 ], [...
12,914
void wdt_i6300esb_init(void) { watchdog_add_model(&model); }
true
qemu
09aaa1602f9381c0e0fb539390b1793e51bdfc7b
void wdt_i6300esb_init(void) { watchdog_add_model(&model); }
{ "code": [ "void wdt_i6300esb_init(void)" ], "line_no": [ 1 ] }
void FUNC_0(void) { watchdog_add_model(&model); }
[ "void FUNC_0(void)\n{", "watchdog_add_model(&model);", "}" ]
[ 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
12,915
static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, UINT8 * buf, int buf_size) { MPADecodeContext *s = avctx->priv_data; UINT32 header; UINT8 *buf_ptr; int len, out_size; short *out_samples = data; *data_size = 0; buf_ptr = buf; while (buf_size ...
true
FFmpeg
2d83f323d63332e5ecaa481d8f9301c0ea92b6ba
static int decode_frame(AVCodecContext * avctx, void *data, int *data_size, UINT8 * buf, int buf_size) { MPADecodeContext *s = avctx->priv_data; UINT32 header; UINT8 *buf_ptr; int len, out_size; short *out_samples = data; *data_size = 0; buf_ptr = buf; while (buf_size ...
{ "code": [ "\t memcpy(s->inbuf_ptr, buf_ptr, len);", "\t buf_ptr += len;", "\t buf_size -= len;", "\t\t memcpy(s->inbuf, s->inbuf + 1, s->inbuf_ptr - s->inbuf);", " s->frame_size = -1;", "\t\t\tmemcpy(s->inbuf, s->inbuf + 1, s->inbuf_ptr - s->inbuf);", "...
static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1, int *VAR_2, UINT8 * VAR_3, int VAR_4) { MPADecodeContext *s = VAR_0->priv_data; UINT32 header; UINT8 *buf_ptr; int VAR_5, VAR_6; short *VAR_7 = VAR_1; *VAR_2 = 0; buf_ptr = VAR_3; while (VAR_4 > 0) { VAR_5 = s->i...
[ "static int FUNC_0(AVCodecContext * VAR_0,\nvoid *VAR_1, int *VAR_2,\nUINT8 * VAR_3, int VAR_4)\n{", "MPADecodeContext *s = VAR_0->priv_data;", "UINT32 header;", "UINT8 *buf_ptr;", "int VAR_5, VAR_6;", "short *VAR_7 = VAR_1;", "*VAR_2 = 0;", "buf_ptr = VAR_3;", "while (VAR_4 > 0) {", "VAR_5 = s->i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
12,917
static int mpegps_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp) { int64_t pos_min, pos_max, pos; int64_t dts_min, dts_max, dts; timestamp = (timestamp * 90000) / AV_TIME_BASE; #ifdef DEBUG_SEEK printf("read_seek: %d %0.3f\n", stream_index, tim...
false
FFmpeg
b754978a3b0aa17e7794f64c69bf4491762797fd
static int mpegps_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp) { int64_t pos_min, pos_max, pos; int64_t dts_min, dts_max, dts; timestamp = (timestamp * 90000) / AV_TIME_BASE; #ifdef DEBUG_SEEK printf("read_seek: %d %0.3f\n", stream_index, tim...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2) { int64_t pos_min, pos_max, pos; int64_t dts_min, dts_max, dts; VAR_2 = (VAR_2 * 90000) / AV_TIME_BASE; #ifdef DEBUG_SEEK printf("read_seek: %d %0.3f\n", VAR_1, VAR_2 / 90000.0); #endif ...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nint VAR_1, int64_t VAR_2)\n{", "int64_t pos_min, pos_max, pos;", "int64_t dts_min, dts_max, dts;", "VAR_2 = (VAR_2 * 90000) / AV_TIME_BASE;", "#ifdef DEBUG_SEEK\nprintf(\"read_seek: %d %0.3f\\n\", VAR_1, VAR_2 / 90000.0);", "#endif\nif (VAR_1 < 0) {", "VAR_1 =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17, 19 ], [ 21, 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [ 59,...
12,918
static void dxva2_uninit(AVCodecContext *s) { InputStream *ist = s->opaque; DXVA2Context *ctx = ist->hwaccel_ctx; ist->hwaccel_uninit = NULL; ist->hwaccel_get_buffer = NULL; ist->hwaccel_retrieve_data = NULL; if (ctx->decoder_service) IDirectXVideoDecoderService_Re...
false
FFmpeg
70143a3954e1c4412efb2bf1a3a818adea2d3abf
static void dxva2_uninit(AVCodecContext *s) { InputStream *ist = s->opaque; DXVA2Context *ctx = ist->hwaccel_ctx; ist->hwaccel_uninit = NULL; ist->hwaccel_get_buffer = NULL; ist->hwaccel_retrieve_data = NULL; if (ctx->decoder_service) IDirectXVideoDecoderService_Re...
{ "code": [], "line_no": [] }
static void FUNC_0(AVCodecContext *VAR_0) { InputStream *ist = VAR_0->opaque; DXVA2Context *ctx = ist->hwaccel_ctx; ist->hwaccel_uninit = NULL; ist->hwaccel_get_buffer = NULL; ist->hwaccel_retrieve_data = NULL; if (ctx->decoder_service) IDirectXVideoDecoderService_...
[ "static void FUNC_0(AVCodecContext *VAR_0)\n{", "InputStream *ist = VAR_0->opaque;", "DXVA2Context *ctx = ist->hwaccel_ctx;", "ist->hwaccel_uninit = NULL;", "ist->hwaccel_get_buffer = NULL;", "ist->hwaccel_retrieve_data = NULL;", "if (ctx->decoder_service)\nIDirectXVideoDecoderService_Release...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ] ]
12,919
static av_cold int xvid_encode_close(AVCodecContext *avctx) { struct xvid_context *x = avctx->priv_data; if (x->encoder_handle) { xvid_encore(x->encoder_handle, XVID_ENC_DESTROY, NULL, NULL); x->encoder_handle = NULL; } av_frame_free(&avctx->coded_frame); av_freep(&avctx-...
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int xvid_encode_close(AVCodecContext *avctx) { struct xvid_context *x = avctx->priv_data; if (x->encoder_handle) { xvid_encore(x->encoder_handle, XVID_ENC_DESTROY, NULL, NULL); x->encoder_handle = NULL; } av_frame_free(&avctx->coded_frame); av_freep(&avctx-...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { struct xvid_context *VAR_0 = avctx->priv_data; if (VAR_0->encoder_handle) { xvid_encore(VAR_0->encoder_handle, XVID_ENC_DESTROY, NULL, NULL); VAR_0->encoder_handle = NULL; } av_frame_free(&avctx->coded_frame); av_freep(&a...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "struct xvid_context *VAR_0 = avctx->priv_data;", "if (VAR_0->encoder_handle) {", "xvid_encore(VAR_0->encoder_handle, XVID_ENC_DESTROY, NULL, NULL);", "VAR_0->encoder_handle = NULL;", "}", "av_frame_free(&avctx->coded_frame);", "av_freep(&avctx->e...
[ 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ] ]
12,920
static void single_quote_string(void) { int i; struct { const char *encoded; const char *decoded; } test_cases[] = { { "'hello world'", "hello world" }, { "'the quick brown fox \\' jumped over the fence'", "the quick brown fox ' jumped over the fence" }, ...
true
qemu
aec4b054ea36c53c8b887da99f20010133b84378
static void single_quote_string(void) { int i; struct { const char *encoded; const char *decoded; } test_cases[] = { { "'hello world'", "hello world" }, { "'the quick brown fox \\' jumped over the fence'", "the quick brown fox ' jumped over the fence" }, ...
{ "code": [ " obj = qobject_from_json(test_cases[i].encoded, NULL);", " obj = qobject_from_json(test_cases[i].encoded, NULL);", " obj = qobject_from_json(test_cases[i].encoded, NULL);", " obj = qobject_from_json(test_cases[i].encoded, NULL);", " obj = qobject_fro...
static void FUNC_0(void) { int VAR_0; struct { const char *encoded; const char *decoded; } VAR_1[] = { { "'hello world'", "hello world" }, { "'the quick brown fox \\' jumped over the fence'", "the quick brown fox ' jumped over the fence" }, {} ...
[ "static void FUNC_0(void)\n{", "int VAR_0;", "struct {", "const char *encoded;", "const char *decoded;", "} VAR_1[] = {", "{ \"'hello world'\", \"hello world\" },", "{ \"'the quick brown fox \\\\' jumped over the fence'\",", "\"the quick brown fox ' jumped over the fence\" },", "{}", "};", "fo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ...
12,922
static void calculate_code_lengths(uint8_t *lengths, uint32_t *counts) { uint32_t nr_nodes, nr_heap, node1, node2; int i, j; int32_t k; /* Heap and node entries start from 1 */ uint32_t weights[512]; uint32_t heap[512]; int32_t parents[512]; /* Set initial weights */ ...
true
FFmpeg
f92f4935acd7d974adfd1deebdf1bb06cbe107ca
static void calculate_code_lengths(uint8_t *lengths, uint32_t *counts) { uint32_t nr_nodes, nr_heap, node1, node2; int i, j; int32_t k; uint32_t weights[512]; uint32_t heap[512]; int32_t parents[512]; for (i = 0; i < 256; i++) weights[i + 1] = (counts[...
{ "code": [ "static void calculate_code_lengths(uint8_t *lengths, uint32_t *counts)", " uint32_t nr_nodes, nr_heap, node1, node2;", " int i, j;", " int32_t k;", " uint32_t weights[512];", " uint32_t heap[512];", " int32_t parents[512];", " for (i = 0; i < 25...
static void FUNC_0(uint8_t *VAR_0, uint32_t *VAR_1) { uint32_t nr_nodes, nr_heap, node1, node2; int VAR_2, VAR_3; int32_t k; uint32_t weights[512]; uint32_t heap[512]; int32_t parents[512]; for (VAR_2 = 0; VAR_2 < 256; VAR_2++) weights[VAR_2 + 1] = (VA...
[ "static void FUNC_0(uint8_t *VAR_0, uint32_t *VAR_1)\n{", "uint32_t nr_nodes, nr_heap, node1, node2;", "int VAR_2, VAR_3;", "int32_t k;", "uint32_t weights[512];", "uint32_t heap[512];", "int32_t parents[512];", "for (VAR_2 = 0; VAR_2 < 256; VAR_2++)", "weights[VAR_2 + 1] = (VAR_1[VAR_2] ? VA...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 63 ...
12,923
static av_always_inline void autocorrelate(const int x[40][2], SoftFloat phi[3][2][2], int lag) { int i; int64_t real_sum, imag_sum; int64_t accu_re = 0, accu_im = 0; if (lag) { for (i = 1; i < 38; i++) { accu_re += (int64_t)x[i][0] * x[i+lag][0]; accu_re += (in...
true
FFmpeg
eefb68c9c335dda423c9115ba11dc4bb3e73e3f9
static av_always_inline void autocorrelate(const int x[40][2], SoftFloat phi[3][2][2], int lag) { int i; int64_t real_sum, imag_sum; int64_t accu_re = 0, accu_im = 0; if (lag) { for (i = 1; i < 38; i++) { accu_re += (int64_t)x[i][0] * x[i+lag][0]; accu_re += (in...
{ "code": [ " accu_re += (int64_t)x[i][0] * x[i+lag][0];", " accu_re += (int64_t)x[i][1] * x[i+lag][1];", " accu_im += (int64_t)x[i][0] * x[i+lag][1];", " accu_im -= (int64_t)x[i][1] * x[i+lag][0];", " accu_re += (int64_t)x[ 0][0] * x[lag][0];", ...
static av_always_inline void FUNC_0(const int x[40][2], SoftFloat phi[3][2][2], int lag) { int VAR_0; int64_t real_sum, imag_sum; int64_t accu_re = 0, accu_im = 0; if (lag) { for (VAR_0 = 1; VAR_0 < 38; VAR_0++) { accu_re += (int64_t)x[VAR_0][0] * x[VAR_0+lag][0]; ...
[ "static av_always_inline void FUNC_0(const int x[40][2], SoftFloat phi[3][2][2], int lag)\n{", "int VAR_0;", "int64_t real_sum, imag_sum;", "int64_t accu_re = 0, accu_im = 0;", "if (lag) {", "for (VAR_0 = 1; VAR_0 < 38; VAR_0++) {", "accu_re += (int64_t)x[VAR_0][0] * x[VAR_0+lag][0];", "accu_re += (in...
[ 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ...
12,924
static int oma_read_seek(struct AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { OMAContext *oc = s->priv_data; int err = ff_pcm_read_seek(s, stream_index, timestamp, flags); if (!oc->encrypted) return err; /* readjust IV for CBC */ i...
true
FFmpeg
0f55bc29d41585d110b126cb4ed4b395fd46d7ac
static int oma_read_seek(struct AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { OMAContext *oc = s->priv_data; int err = ff_pcm_read_seek(s, stream_index, timestamp, flags); if (!oc->encrypted) return err; if (err || avio_tell(s->pb...
{ "code": [ " int err = ff_pcm_read_seek(s, stream_index, timestamp, flags);" ], "line_no": [ 9 ] }
static int FUNC_0(struct AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3) { OMAContext *oc = VAR_0->priv_data; int VAR_4 = ff_pcm_read_seek(VAR_0, VAR_1, VAR_2, VAR_3); if (!oc->encrypted) return VAR_4; if (VAR_4 || avio_tell(VAR_0->pb) < oc-...
[ "static int FUNC_0(struct AVFormatContext *VAR_0,\nint VAR_1, int64_t VAR_2, int VAR_3)\n{", "OMAContext *oc = VAR_0->priv_data;", "int VAR_4 = ff_pcm_read_seek(VAR_0, VAR_1, VAR_2, VAR_3);", "if (!oc->encrypted)\nreturn VAR_4;", "if (VAR_4 || avio_tell(VAR_0->pb) < oc->content_start)\ngoto wipe;", "if ((...
[ 0, 0, 1, 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 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ] ]
12,925
int pci_piix3_xen_ide_unplug(DeviceState *dev) { PCIIDEState *pci_ide; DriveInfo *di; int i = 0; pci_ide = PCI_IDE(dev); for (; i < 3; i++) { di = drive_get_by_index(IF_IDE, i); if (di != NULL && !di->media_cd) { BlockBackend *blk = blk_by_legacy_dinfo(di); ...
true
qemu
d4f9e806c20607cafe7bb0d9eba14ccb160390a1
int pci_piix3_xen_ide_unplug(DeviceState *dev) { PCIIDEState *pci_ide; DriveInfo *di; int i = 0; pci_ide = PCI_IDE(dev); for (; i < 3; i++) { di = drive_get_by_index(IF_IDE, i); if (di != NULL && !di->media_cd) { BlockBackend *blk = blk_by_legacy_dinfo(di); ...
{ "code": [ " int i = 0;", " for (; i < 3; i++) {" ], "line_no": [ 9, 17 ] }
int FUNC_0(DeviceState *VAR_0) { PCIIDEState *pci_ide; DriveInfo *di; int VAR_1 = 0; pci_ide = PCI_IDE(VAR_0); for (; VAR_1 < 3; VAR_1++) { di = drive_get_by_index(IF_IDE, VAR_1); if (di != NULL && !di->media_cd) { BlockBackend *blk = blk_by_legacy_dinfo(di);...
[ "int FUNC_0(DeviceState *VAR_0)\n{", "PCIIDEState *pci_ide;", "DriveInfo *di;", "int VAR_1 = 0;", "pci_ide = PCI_IDE(VAR_0);", "for (; VAR_1 < 3; VAR_1++) {", "di = drive_get_by_index(IF_IDE, VAR_1);", "if (di != NULL && !di->media_cd) {", "BlockBackend *blk = blk_by_legacy_dinfo(di);", "DeviceSta...
[ 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
12,926
int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src) { const AVCodec *orig_codec = dest->codec; uint8_t *orig_priv_data = dest->priv_data; if (avcodec_is_open(dest)) { // check that the dest context is uninitialized av_log(dest, AV_LOG_ERROR, "Tried to cop...
true
FFmpeg
cac8de2da5c4935773128335c11b806faa73e19d
int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src) { const AVCodec *orig_codec = dest->codec; uint8_t *orig_priv_data = dest->priv_data; if (avcodec_is_open(dest)) { av_log(dest, AV_LOG_ERROR, "Tried to copy AVCodecContext %p into already-initialized %p...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, const AVCodecContext *VAR_1) { const AVCodec *VAR_2 = VAR_0->codec; uint8_t *orig_priv_data = VAR_0->priv_data; if (avcodec_is_open(VAR_0)) { av_log(VAR_0, AV_LOG_ERROR, "Tried to copy AVCodecContext %p into already-initialized %p\n", ...
[ "int FUNC_0(AVCodecContext *VAR_0, const AVCodecContext *VAR_1)\n{", "const AVCodec *VAR_2 = VAR_0->codec;", "uint8_t *orig_priv_data = VAR_0->priv_data;", "if (avcodec_is_open(VAR_0)) {", "av_log(VAR_0, AV_LOG_ERROR,\n\"Tried to copy AVCodecContext %p into already-initialized %p\\n\",\nVAR_1, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41, 43, 45 ], [ 53 ], [ 55 ], [ 57 ], [ 59, 61, 63...
12,928
static int ftp_open(URLContext *h, const char *url, int flags) { char proto[10], path[MAX_URL_SIZE]; int err; FTPContext *s = h->priv_data; av_dlog(h, "ftp protocol open\n"); s->state = DISCONNECTED; s->filesize = -1; s->position = 0; av_url_split(proto, sizeof(proto), ...
false
FFmpeg
c043def91f92da398fe04874191c8d4d7b6cf0e0
static int ftp_open(URLContext *h, const char *url, int flags) { char proto[10], path[MAX_URL_SIZE]; int err; FTPContext *s = h->priv_data; av_dlog(h, "ftp protocol open\n"); s->state = DISCONNECTED; s->filesize = -1; s->position = 0; av_url_split(proto, sizeof(proto), ...
{ "code": [], "line_no": [] }
static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2) { char VAR_3[10], path[MAX_URL_SIZE]; int VAR_4; FTPContext *s = VAR_0->priv_data; av_dlog(VAR_0, "ftp protocol open\n"); s->state = DISCONNECTED; s->filesize = -1; s->position = 0; av_url_split(VAR_3, size...
[ "static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2)\n{", "char VAR_3[10], path[MAX_URL_SIZE];", "int VAR_4;", "FTPContext *s = VAR_0->priv_data;", "av_dlog(VAR_0, \"ftp protocol open\\n\");", "s->state = DISCONNECTED;", "s->filesize = -1;", "s->position = 0;", "av_url_split(VAR_3, si...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27, 29, 31, 33, 35 ], [ 39, 41 ], [ 45, 47 ], [ 51, 53 ], [ 55 ], [ 59 ], [ 61 ], [ 63 ...
12,929
static void vnc_convert_pixel(VncState *vs, uint8_t *buf, uint32_t v) { uint8_t r, g, b; r = ((v >> vs->server_red_shift) & vs->server_red_max) * (vs->client_red_max + 1) / (vs->server_red_max + 1); g = ((v >> vs->server_green_shift) & vs->server_green_max) * (vs->client_green_max + 1) / ...
true
qemu
6cec5487990bf3f1f22b3fcb871978255e92ae0d
static void vnc_convert_pixel(VncState *vs, uint8_t *buf, uint32_t v) { uint8_t r, g, b; r = ((v >> vs->server_red_shift) & vs->server_red_max) * (vs->client_red_max + 1) / (vs->server_red_max + 1); g = ((v >> vs->server_green_shift) & vs->server_green_max) * (vs->client_green_max + 1) / ...
{ "code": [ " r = ((v >> vs->server_red_shift) & vs->server_red_max) * (vs->client_red_max + 1) /", " (vs->server_red_max + 1);", " g = ((v >> vs->server_green_shift) & vs->server_green_max) * (vs->client_green_max + 1) /", " (vs->server_green_max + 1);", " b = ((v >> vs->se...
static void FUNC_0(VncState *VAR_0, uint8_t *VAR_1, uint32_t VAR_2) { uint8_t r, g, b; r = ((VAR_2 >> VAR_0->server_red_shift) & VAR_0->server_red_max) * (VAR_0->client_red_max + 1) / (VAR_0->server_red_max + 1); g = ((VAR_2 >> VAR_0->server_green_shift) & VAR_0->server_green_max) * (VAR_0->c...
[ "static void FUNC_0(VncState *VAR_0, uint8_t *VAR_1, uint32_t VAR_2)\n{", "uint8_t r, g, b;", "r = ((VAR_2 >> VAR_0->server_red_shift) & VAR_0->server_red_max) * (VAR_0->client_red_max + 1) /\n(VAR_0->server_red_max + 1);", "g = ((VAR_2 >> VAR_0->server_green_shift) & VAR_0->server_green_max) * (VAR_0->client...
[ 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15 ], [ 17, 19 ], [ 21, 23, 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], ...
12,930
static int thread_execute(AVFilterContext *ctx, avfilter_action_func *func, void *arg, int *ret, int nb_jobs) { ThreadContext *c = ctx->graph->internal->thread; int dummy_ret; if (nb_jobs <= 0) return 0; pthread_mutex_lock(&c->current_job_lock); c->cur...
true
FFmpeg
473f0f75a16b4d37bdaa943f75e4ae249212c1ba
static int thread_execute(AVFilterContext *ctx, avfilter_action_func *func, void *arg, int *ret, int nb_jobs) { ThreadContext *c = ctx->graph->internal->thread; int dummy_ret; if (nb_jobs <= 0) return 0; pthread_mutex_lock(&c->current_job_lock); c->cur...
{ "code": [ " int dummy_ret;", " if (ret) {", " c->rets = ret;", " c->nb_rets = nb_jobs;", " } else {", " c->rets = &dummy_ret;", " c->nb_rets = 1;" ], "line_no": [ 9, 33, 35, 37, 39, 41, 43 ] }
static int FUNC_0(AVFilterContext *VAR_0, avfilter_action_func *VAR_1, void *VAR_2, int *VAR_3, int VAR_4) { ThreadContext *c = VAR_0->graph->internal->thread; int VAR_5; if (VAR_4 <= 0) return 0; pthread_mutex_lock(&c->current_job_lock); c->current_jo...
[ "static int FUNC_0(AVFilterContext *VAR_0, avfilter_action_func *VAR_1,\nvoid *VAR_2, int *VAR_3, int VAR_4)\n{", "ThreadContext *c = VAR_0->graph->internal->thread;", "int VAR_5;", "if (VAR_4 <= 0)\nreturn 0;", "pthread_mutex_lock(&c->current_job_lock);", "c->current_job = c->nb_threads;", "c->VAR_4 ...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ...
12,931
static int asf_read_payload(AVFormatContext *s, AVPacket *pkt) { ASFContext *asf = s->priv_data; AVIOContext *pb = s->pb; int ret, i; ASFPacket *asf_pkt = NULL; if (!asf->sub_left) { uint32_t off_len, media_len; uint8_t stream_num; stream_num = avio_r8(pb); ...
true
FFmpeg
8375dc1dd101d51baa430f34c0bcadfa37873896
static int asf_read_payload(AVFormatContext *s, AVPacket *pkt) { ASFContext *asf = s->priv_data; AVIOContext *pb = s->pb; int ret, i; ASFPacket *asf_pkt = NULL; if (!asf->sub_left) { uint32_t off_len, media_len; uint8_t stream_num; stream_num = avio_r8(pb); ...
{ "code": [ " if (!asf_pkt)", " return AVERROR_INVALIDDATA;" ], "line_no": [ 41, 43 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { ASFContext *asf = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; int VAR_2, VAR_3; ASFPacket *asf_pkt = NULL; if (!asf->sub_left) { uint32_t off_len, media_len; uint8_t stream_num; stream_num = avio_r8(...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "ASFContext *asf = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "int VAR_2, VAR_3;", "ASFPacket *asf_pkt = NULL;", "if (!asf->sub_left) {", "uint32_t off_len, media_len;", "uint8_t stream_num;", "stream_num = avio_r8(pb);", "a...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45, 47 ...
12,932
static void pred8x8_dc_rv40_c(uint8_t *src, int stride){ int i; int dc0=0; for(i=0;i<4; i++){ dc0+= src[-1+i*stride] + src[i-stride]; dc0+= src[4+i-stride]; dc0+= src[-1+(i+4)*stride]; } dc0= 0x01010101*((dc0 + 8)>>4); for(i=0; i<4; i++){ ((uint32_t*...
true
FFmpeg
60f10e0ad37418cc697765d85b0bc22db70f726a
static void pred8x8_dc_rv40_c(uint8_t *src, int stride){ int i; int dc0=0; for(i=0;i<4; i++){ dc0+= src[-1+i*stride] + src[i-stride]; dc0+= src[4+i-stride]; dc0+= src[-1+(i+4)*stride]; } dc0= 0x01010101*((dc0 + 8)>>4); for(i=0; i<4; i++){ ((uint32_t*...
{ "code": [ " int dc0=0;" ], "line_no": [ 5 ] }
static void FUNC_0(uint8_t *VAR_0, int VAR_1){ int VAR_2; int VAR_3=0; for(VAR_2=0;VAR_2<4; VAR_2++){ VAR_3+= VAR_0[-1+VAR_2*VAR_1] + VAR_0[VAR_2-VAR_1]; VAR_3+= VAR_0[4+VAR_2-VAR_1]; VAR_3+= VAR_0[-1+(VAR_2+4)*VAR_1]; } VAR_3= 0x01010101*((VAR_3 + 8)>>4); fo...
[ "static void FUNC_0(uint8_t *VAR_0, int VAR_1){", "int VAR_2;", "int VAR_3=0;", "for(VAR_2=0;VAR_2<4; VAR_2++){", "VAR_3+= VAR_0[-1+VAR_2*VAR_1] + VAR_0[VAR_2-VAR_1];", "VAR_3+= VAR_0[4+VAR_2-VAR_1];", "VAR_3+= VAR_0[-1+(VAR_2+4)*VAR_1];", "}", "VAR_3= 0x01010101*((VAR_3 + 8)>>4);", "for(VAR_2=0; ...
[ 0, 0, 1, 0, 0, 0, 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 ] ]
12,933
static int set_expr(AVExpr **pexpr, const char *expr, void *log_ctx) { int ret; AVExpr *old = NULL; if (*pexpr) old = *pexpr; ret = av_expr_parse(pexpr, expr, var_names, NULL, NULL, NULL, NULL, 0, log_ctx); if (ret < 0) { av_log(log_ctx, AV_LOG_ERRO...
false
FFmpeg
9da369604ecf31d9dce2dee21ed214b8c43264c6
static int set_expr(AVExpr **pexpr, const char *expr, void *log_ctx) { int ret; AVExpr *old = NULL; if (*pexpr) old = *pexpr; ret = av_expr_parse(pexpr, expr, var_names, NULL, NULL, NULL, NULL, 0, log_ctx); if (ret < 0) { av_log(log_ctx, AV_LOG_ERRO...
{ "code": [], "line_no": [] }
static int FUNC_0(AVExpr **VAR_0, const char *VAR_1, void *VAR_2) { int VAR_3; AVExpr *old = NULL; if (*VAR_0) old = *VAR_0; VAR_3 = av_expr_parse(VAR_0, VAR_1, var_names, NULL, NULL, NULL, NULL, 0, VAR_2); if (VAR_3 < 0) { av_log(VAR_2, AV_LOG_ERRO...
[ "static int FUNC_0(AVExpr **VAR_0, const char *VAR_1, void *VAR_2)\n{", "int VAR_3;", "AVExpr *old = NULL;", "if (*VAR_0)\nold = *VAR_0;", "VAR_3 = av_expr_parse(VAR_0, VAR_1, var_names,\nNULL, NULL, NULL, NULL, 0, VAR_2);", "if (VAR_3 < 0) {", "av_log(VAR_2, AV_LOG_ERROR,\n\"Error when evaluating the e...
[ 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 ], [ 33 ], [ 35 ], [ 37 ] ]
12,934
static void av_estimate_timings_from_pts(AVFormatContext *ic, offset_t old_offset) { AVPacket pkt1, *pkt = &pkt1; AVStream *st; int read_size, i, ret; int64_t end_time; int64_t filesize, offset, duration; /* free previous packet */ if (ic->cur_st && ic->cur_st->parser) av_...
false
FFmpeg
bf494092b03f107e35ab6ad70be324f23a193c2b
static void av_estimate_timings_from_pts(AVFormatContext *ic, offset_t old_offset) { AVPacket pkt1, *pkt = &pkt1; AVStream *st; int read_size, i, ret; int64_t end_time; int64_t filesize, offset, duration; if (ic->cur_st && ic->cur_st->parser) av_free_packet(&ic->cur_pkt);...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, offset_t VAR_1) { AVPacket pkt1, *pkt = &pkt1; AVStream *st; int VAR_2, VAR_3, VAR_4; int64_t end_time; int64_t filesize, offset, duration; if (VAR_0->cur_st && VAR_0->cur_st->parser) av_free_packet(&VAR_0->cur_pkt); VAR_0->...
[ "static void FUNC_0(AVFormatContext *VAR_0, offset_t VAR_1)\n{", "AVPacket pkt1, *pkt = &pkt1;", "AVStream *st;", "int VAR_2, VAR_3, VAR_4;", "int64_t end_time;", "int64_t filesize, offset, duration;", "if (VAR_0->cur_st && VAR_0->cur_st->parser)\nav_free_packet(&VAR_0->cur_pkt);", "VAR_0->cur_st = NU...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19, 21 ], [ 23 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 53 ], [ 55 ], [ 57 ], [...
12,935
static inline void RENAME(rgb32tobgr16)(const uint8_t *src, uint8_t *dst, unsigned int src_size) { const uint8_t *s = src; const uint8_t *end; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::"m"(*src):"memor...
false
FFmpeg
ae4cffd9fc5bc495692920d646d7d1462315cfa6
static inline void RENAME(rgb32tobgr16)(const uint8_t *src, uint8_t *dst, unsigned int src_size) { const uint8_t *s = src; const uint8_t *end; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; end = s + src_size; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::"m"(*src):"memor...
{ "code": [], "line_no": [] }
static inline void FUNC_0(rgb32tobgr16)(const uint8_t *VAR_2, uint8_t *dst, unsigned int src_size) { const uint8_t *VAR_0 = VAR_2; const uint8_t *VAR_1; #ifdef HAVE_MMX const uint8_t *mm_end; #endif uint16_t *d = (uint16_t *)dst; VAR_1 = VAR_0 + src_size; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::...
[ "static inline void FUNC_0(rgb32tobgr16)(const uint8_t *VAR_2, uint8_t *dst, unsigned int src_size)\n{", "const uint8_t *VAR_0 = VAR_2;", "const uint8_t *VAR_1;", "#ifdef HAVE_MMX\nconst uint8_t *mm_end;", "#endif\nuint16_t *d = (uint16_t *)dst;", "VAR_1 = VAR_0 + src_size;", "#ifdef HAVE_MMX\n__asm __v...
[ 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, 51, 53, 55, 57, 59,...
12,937
static int dv_read_header(AVFormatContext *s, AVFormatParameters *ap) { RawDVContext *c = s->priv_data; c->dv_demux = dv_init_demux(s); return c->dv_demux ? 0 : -1; }
false
FFmpeg
c4e554701ec27b31b1b6396130b8bb2aaa0d4ad0
static int dv_read_header(AVFormatContext *s, AVFormatParameters *ap) { RawDVContext *c = s->priv_data; c->dv_demux = dv_init_demux(s); return c->dv_demux ? 0 : -1; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1) { RawDVContext *c = VAR_0->priv_data; c->dv_demux = dv_init_demux(VAR_0); return c->dv_demux ? 0 : -1; }
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVFormatParameters *VAR_1)\n{", "RawDVContext *c = VAR_0->priv_data;", "c->dv_demux = dv_init_demux(VAR_0);", "return c->dv_demux ? 0 : -1;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ] ]
12,939
static void vfio_map_bar(VFIOPCIDevice *vdev, int nr) { VFIOBAR *bar = &vdev->bars[nr]; uint64_t size = bar->region.size; char name[64]; uint32_t pci_bar; uint8_t type; int ret; /* Skip both unimplemented BARs and the upper half of 64bit BARS. */ if (!size) { return; ...
true
qemu
07ceaf98800519ef9c5dc893af00f1fe1f9144e4
static void vfio_map_bar(VFIOPCIDevice *vdev, int nr) { VFIOBAR *bar = &vdev->bars[nr]; uint64_t size = bar->region.size; char name[64]; uint32_t pci_bar; uint8_t type; int ret; if (!size) { return; } snprintf(name, sizeof(name), "VFIO %04x:%02x:%02x.%x B...
{ "code": [ " start = HOST_PAGE_ALIGN(vdev->msix->table_offset +" ], "line_no": [ 111 ] }
static void FUNC_0(VFIOPCIDevice *VAR_0, int VAR_1) { VFIOBAR *bar = &VAR_0->bars[VAR_1]; uint64_t size = bar->region.size; char VAR_2[64]; uint32_t pci_bar; uint8_t type; int VAR_3; if (!size) { return; } snprintf(VAR_2, sizeof(VAR_2), "VFIO %04x:%02x:%0...
[ "static void FUNC_0(VFIOPCIDevice *VAR_0, int VAR_1)\n{", "VFIOBAR *bar = &VAR_0->bars[VAR_1];", "uint64_t size = bar->region.size;", "char VAR_2[64];", "uint32_t pci_bar;", "uint8_t type;", "int VAR_3;", "if (!size) {", "return;", "}", "snprintf(VAR_2, sizeof(VAR_2), \"VFIO %04x:%02x:%02x.%x BA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31, 33 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [...
12,941
static void cpu_common_reset(CPUState *cpu) { CPUClass *cc = CPU_GET_CLASS(cpu); int i; if (qemu_loglevel_mask(CPU_LOG_RESET)) { qemu_log("CPU Reset (CPU %d)\n", cpu->cpu_index); log_cpu_state(cpu, cc->reset_dump_flags); } cpu->interrupt_request = 0; cpu->halted = 0;...
true
qemu
f3ced3c59287dabc253f83f0c70aa4934470c15e
static void cpu_common_reset(CPUState *cpu) { CPUClass *cc = CPU_GET_CLASS(cpu); int i; if (qemu_loglevel_mask(CPU_LOG_RESET)) { qemu_log("CPU Reset (CPU %d)\n", cpu->cpu_index); log_cpu_state(cpu, cc->reset_dump_flags); } cpu->interrupt_request = 0; cpu->halted = 0;...
{ "code": [ " for (i = 0; i < TB_JMP_CACHE_SIZE; ++i) {", " atomic_set(&cpu->tb_jmp_cache[i], NULL);", " int i;", " for (i = 0; i < TB_JMP_CACHE_SIZE; ++i) {", " atomic_set(&cpu->tb_jmp_cache[i], NULL);" ], "line_no": [ 43, 45, 7, 43, ...
static void FUNC_0(CPUState *VAR_0) { CPUClass *cc = CPU_GET_CLASS(VAR_0); int VAR_1; if (qemu_loglevel_mask(CPU_LOG_RESET)) { qemu_log("CPU Reset (CPU %d)\n", VAR_0->cpu_index); log_cpu_state(VAR_0, cc->reset_dump_flags); } VAR_0->interrupt_request = 0; VAR_0->halte...
[ "static void FUNC_0(CPUState *VAR_0)\n{", "CPUClass *cc = CPU_GET_CLASS(VAR_0);", "int VAR_1;", "if (qemu_loglevel_mask(CPU_LOG_RESET)) {", "qemu_log(\"CPU Reset (CPU %d)\\n\", VAR_0->cpu_index);", "log_cpu_state(VAR_0, cc->reset_dump_flags);", "}", "VAR_0->interrupt_request = 0;", "VAR_0->halted = ...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
12,942
static void string_output_append_range(StringOutputVisitor *sov, int64_t s, int64_t e) { Range *r = g_malloc0(sizeof(*r)); r->begin = s; r->end = e + 1; sov->ranges = g_list_insert_sorted_merged(sov->ranges, r, range_compare); }
true
qemu
7c47959d0cb05db43014141a156ada0b6d53a750
static void string_output_append_range(StringOutputVisitor *sov, int64_t s, int64_t e) { Range *r = g_malloc0(sizeof(*r)); r->begin = s; r->end = e + 1; sov->ranges = g_list_insert_sorted_merged(sov->ranges, r, range_compare); }
{ "code": [ " sov->ranges = g_list_insert_sorted_merged(sov->ranges, r, range_compare);", " sov->ranges = g_list_insert_sorted_merged(sov->ranges, r, range_compare);" ], "line_no": [ 13, 13 ] }
static void FUNC_0(StringOutputVisitor *VAR_0, int64_t VAR_1, int64_t VAR_2) { Range *r = g_malloc0(sizeof(*r)); r->begin = VAR_1; r->end = VAR_2 + 1; VAR_0->ranges = g_list_insert_sorted_merged(VAR_0->ranges, r, range_compare); }
[ "static void FUNC_0(StringOutputVisitor *VAR_0,\nint64_t VAR_1, int64_t VAR_2)\n{", "Range *r = g_malloc0(sizeof(*r));", "r->begin = VAR_1;", "r->end = VAR_2 + 1;", "VAR_0->ranges = g_list_insert_sorted_merged(VAR_0->ranges, r, range_compare);", "}" ]
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
12,943
int ff_rtsp_connect(AVFormatContext *s) { RTSPState *rt = s->priv_data; char host[1024], path[1024], tcpname[1024], cmd[2048], auth[128]; char *option_list, *option, *filename; URLContext *rtsp_hd, *rtsp_hd_out; int port, err, tcp_fd; RTSPMessageHeader reply1 = {}, *reply = &reply1; ...
true
FFmpeg
d3f84dfc0e65201983e88c99b7544d5a60d0165e
int ff_rtsp_connect(AVFormatContext *s) { RTSPState *rt = s->priv_data; char host[1024], path[1024], tcpname[1024], cmd[2048], auth[128]; char *option_list, *option, *filename; URLContext *rtsp_hd, *rtsp_hd_out; int port, err, tcp_fd; RTSPMessageHeader reply1 = {}, *reply = &reply1; ...
{ "code": [], "line_no": [] }
int FUNC_0(AVFormatContext *VAR_0) { RTSPState *rt = VAR_0->priv_data; char VAR_1[1024], VAR_2[1024], VAR_3[1024], VAR_4[2048], VAR_5[128]; char *VAR_6, *VAR_7, *VAR_8; URLContext *rtsp_hd, *rtsp_hd_out; int VAR_9, VAR_10, VAR_11; RTSPMessageHeader reply1 = {}, *reply = &reply1; int ...
[ "int FUNC_0(AVFormatContext *VAR_0)\n{", "RTSPState *rt = VAR_0->priv_data;", "char VAR_1[1024], VAR_2[1024], VAR_3[1024], VAR_4[2048], VAR_5[128];", "char *VAR_6, *VAR_7, *VAR_8;", "URLContext *rtsp_hd, *rtsp_hd_out;", "int VAR_9, VAR_10, VAR_11;", "RTSPMessageHeader reply1 = {}, *reply = &reply1;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 31, 33 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ...
12,944
static int asf_read_seek(AVFormatContext *s, int stream_index, int64_t pts) { ASFContext *asf = s->priv_data; AVStream *st; AVPacket pkt1, *pkt; int block_align; int64_t pos; int64_t pos_min, pos_max, pts_min, pts_max, cur_pts; pkt = &pkt1; // Validate pts if (pts < 0) ...
true
FFmpeg
82b9e4a286e904dd402ddf6c914756963b2e2c4d
static int asf_read_seek(AVFormatContext *s, int stream_index, int64_t pts) { ASFContext *asf = s->priv_data; AVStream *st; AVPacket pkt1, *pkt; int block_align; int64_t pos; int64_t pos_min, pos_max, pts_min, pts_max, cur_pts; pkt = &pkt1; if (pts < 0) pts = 0; ...
{ "code": [ " int64_t pos_min, pos_max, pts_min, pts_max, cur_pts;", " while (pos_min <= pos_max) {", " if (pts <= pts_min) {", " pos = pos_min;", " goto found;", " } else if (pts >= pts_max) {", " pos = pos_max;", " goto ...
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2) { ASFContext *asf = VAR_0->priv_data; AVStream *st; AVPacket pkt1, *pkt; int VAR_3; int64_t pos; int64_t pos_min, pos_max, pts_min, pts_max, cur_pts; pkt = &pkt1; if (VAR_2 < 0) VAR_2 = 0; if ...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2)\n{", "ASFContext *asf = VAR_0->priv_data;", "AVStream *st;", "AVPacket pkt1, *pkt;", "int VAR_3;", "int64_t pos;", "int64_t pos_min, pos_max, pts_min, pts_max, cur_pts;", "pkt = &pkt1;", "if (VAR_2 < 0)\nVAR_2 = 0;", "if (VAR_1 =...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 25, 27 ], [ 31, 33 ], [ 37 ], [ 43 ], [ 47, 49 ], [ 53 ], [ 55 ], [ 57 ], [ 61 ], [ 63 ], [...
12,945
static void decode_src_opc(CPUTriCoreState *env, DisasContext *ctx, int op1) { int r1; int32_t const4; TCGv temp, temp2; r1 = MASK_OP_SRC_S1D(ctx->opcode); const4 = MASK_OP_SRC_CONST4_SEXT(ctx->opcode); switch (op1) { case OPC1_16_SRC_ADD: gen_addi_d(cpu_gpr_d[r1], cpu_g...
true
qemu
f678f671ba654d4610f0e43d175c8c1b2fad10df
static void decode_src_opc(CPUTriCoreState *env, DisasContext *ctx, int op1) { int r1; int32_t const4; TCGv temp, temp2; r1 = MASK_OP_SRC_S1D(ctx->opcode); const4 = MASK_OP_SRC_CONST4_SEXT(ctx->opcode); switch (op1) { case OPC1_16_SRC_ADD: gen_addi_d(cpu_gpr_d[r1], cpu_g...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUTriCoreState *VAR_0, DisasContext *VAR_1, int VAR_2) { int VAR_3; int32_t const4; TCGv temp, temp2; VAR_3 = MASK_OP_SRC_S1D(VAR_1->opcode); const4 = MASK_OP_SRC_CONST4_SEXT(VAR_1->opcode); switch (VAR_2) { case OPC1_16_SRC_ADD: gen_addi_d(cpu_gpr_d[...
[ "static void FUNC_0(CPUTriCoreState *VAR_0, DisasContext *VAR_1, int VAR_2)\n{", "int VAR_3;", "int32_t const4;", "TCGv temp, temp2;", "VAR_3 = MASK_OP_SRC_S1D(VAR_1->opcode);", "const4 = MASK_OP_SRC_CONST4_SEXT(VAR_1->opcode);", "switch (VAR_2) {", "case OPC1_16_SRC_ADD:\ngen_addi_d(cpu_gpr_d[VAR_3],...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47, 49 ], [ 51 ...
12,947
int ffio_read_indirect(AVIOContext *s, unsigned char *buf, int size, unsigned char **data) { if (s->buf_end - s->buf_ptr >= size && !s->write_flag) { *data = s->buf_ptr; s->buf_ptr += size; return size; } else { *data = buf; return avio_read(s, buf, size); } ...
true
FFmpeg
5afe1d27912be9b643ffb4ddc21f6d920260dbb0
int ffio_read_indirect(AVIOContext *s, unsigned char *buf, int size, unsigned char **data) { if (s->buf_end - s->buf_ptr >= size && !s->write_flag) { *data = s->buf_ptr; s->buf_ptr += size; return size; } else { *data = buf; return avio_read(s, buf, size); } ...
{ "code": [ "int ffio_read_indirect(AVIOContext *s, unsigned char *buf, int size, unsigned char **data)" ], "line_no": [ 1 ] }
int FUNC_0(AVIOContext *VAR_0, unsigned char *VAR_1, int VAR_2, unsigned char **VAR_3) { if (VAR_0->buf_end - VAR_0->buf_ptr >= VAR_2 && !VAR_0->write_flag) { *VAR_3 = VAR_0->buf_ptr; VAR_0->buf_ptr += VAR_2; return VAR_2; } else { *VAR_3 = VAR_1; return avio_read...
[ "int FUNC_0(AVIOContext *VAR_0, unsigned char *VAR_1, int VAR_2, unsigned char **VAR_3)\n{", "if (VAR_0->buf_end - VAR_0->buf_ptr >= VAR_2 && !VAR_0->write_flag) {", "*VAR_3 = VAR_0->buf_ptr;", "VAR_0->buf_ptr += VAR_2;", "return VAR_2;", "} else {", "*VAR_3 = VAR_1;", "return avio_read(VAR_0, VAR_1, ...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
12,948
int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, AVFilterInOut **open_inputs_ptr, AVFilterInOut **open_outputs_ptr, void *log_ctx) { int index = 0, ret = 0; char chr = 0; AVFilterInOut *curr_inputs = NULL; AVFilterInOut *open_...
false
FFmpeg
2420763638bef385c8116a44ff5c0d2c15589494
int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, AVFilterInOut **open_inputs_ptr, AVFilterInOut **open_outputs_ptr, void *log_ctx) { int index = 0, ret = 0; char chr = 0; AVFilterInOut *curr_inputs = NULL; AVFilterInOut *open_...
{ "code": [], "line_no": [] }
int FUNC_0(AVFilterGraph *VAR_0, const char *VAR_1, AVFilterInOut **VAR_2, AVFilterInOut **VAR_3, void *VAR_4) { int VAR_5 = 0, VAR_6 = 0; char VAR_7 = 0; AVFilterInOut *curr_inputs = NULL; AVFilterInOut *open_inputs = VAR_2 ? *VAR_2 : NULL; ...
[ "int FUNC_0(AVFilterGraph *VAR_0, const char *VAR_1,\nAVFilterInOut **VAR_2, AVFilterInOut **VAR_3,\nvoid *VAR_4)\n{", "int VAR_5 = 0, VAR_6 = 0;", "char VAR_7 = 0;", "AVFilterInOut *curr_inputs = NULL;", "AVFilterInOut *open_inputs = VAR_2 ? *VAR_2 : NULL;", "AVFilterInOut *open_outputs = VAR_3 ? *VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 39, 41 ], [ 45 ], [ 49 ], [ 51, 53 ], [ 55 ], [ 59, 61 ...
12,950
static inline int vorbis_residue_decode(vorbis_context *vc, vorbis_residue *vr, unsigned ch, uint8_t *do_not_decode, float *vec, unsigned vlen) { if (vr->type == 2) return vorbis_res...
true
FFmpeg
afb2aa537954db537d54358997b68f46561fd5a7
static inline int vorbis_residue_decode(vorbis_context *vc, vorbis_residue *vr, unsigned ch, uint8_t *do_not_decode, float *vec, unsigned vlen) { if (vr->type == 2) return vorbis_res...
{ "code": [ " float *vec, unsigned vlen)", " return vorbis_residue_decode_internal(vc, vr, ch, do_not_decode, vec, vlen, 2);", " return vorbis_residue_decode_internal(vc, vr, ch, do_not_decode, vec, vlen, 1);", " return vorbis_residue_decode_...
static inline int FUNC_0(vorbis_context *VAR_0, vorbis_residue *VAR_1, unsigned VAR_2, uint8_t *VAR_3, float *VAR_4, unsigned VAR_5) { if (VAR_1->type == 2) return vorbis_residue_dec...
[ "static inline int FUNC_0(vorbis_context *VAR_0, vorbis_residue *VAR_1,\nunsigned VAR_2,\nuint8_t *VAR_3,\nfloat *VAR_4, unsigned VAR_5)\n{", "if (VAR_1->type == 2)\nreturn vorbis_residue_decode_internal(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, 2);", "else if (VAR_1->type == 1)\nreturn vorbis_residue_decode_in...
[ 1, 1, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11, 13 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
12,952
static void common_end(FFV1Context *s){ int i; for(i=0; i<s->plane_count; i++){ PlaneContext *p= &s->plane[i]; av_freep(&p->state); } }
true
FFmpeg
0c2aaa882d124f05b7bf0a4a4abba3293f4d6d84
static void common_end(FFV1Context *s){ int i; for(i=0; i<s->plane_count; i++){ PlaneContext *p= &s->plane[i]; av_freep(&p->state); } }
{ "code": [ "static void common_end(FFV1Context *s){" ], "line_no": [ 1 ] }
static void FUNC_0(FFV1Context *VAR_0){ int VAR_1; for(VAR_1=0; VAR_1<VAR_0->plane_count; VAR_1++){ PlaneContext *p= &VAR_0->plane[VAR_1]; av_freep(&p->state); } }
[ "static void FUNC_0(FFV1Context *VAR_0){", "int VAR_1;", "for(VAR_1=0; VAR_1<VAR_0->plane_count; VAR_1++){", "PlaneContext *p= &VAR_0->plane[VAR_1];", "av_freep(&p->state);", "}", "}" ]
[ 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ] ]
12,953
static av_cold int ape_decode_close(AVCodecContext * avctx) { APEContext *s = avctx->priv_data; int i; for (i = 0; i < APE_FILTER_LEVELS; i++) av_freep(&s->filterbuf[i]); av_freep(&s->data); return 0; }
true
FFmpeg
7500781313d11b37772c05a28da20fbc112db478
static av_cold int ape_decode_close(AVCodecContext * avctx) { APEContext *s = avctx->priv_data; int i; for (i = 0; i < APE_FILTER_LEVELS; i++) av_freep(&s->filterbuf[i]); av_freep(&s->data); return 0; }
{ "code": [ "static av_cold int ape_decode_close(AVCodecContext * avctx)", " APEContext *s = avctx->priv_data;", " int i;", " for (i = 0; i < APE_FILTER_LEVELS; i++)", " av_freep(&s->filterbuf[i]);", " av_freep(&s->data);", " return 0;" ], "line_no": [ 1, ...
static av_cold int FUNC_0(AVCodecContext * avctx) { APEContext *s = avctx->priv_data; int VAR_0; for (VAR_0 = 0; VAR_0 < APE_FILTER_LEVELS; VAR_0++) av_freep(&s->filterbuf[VAR_0]); av_freep(&s->data); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext * avctx)\n{", "APEContext *s = avctx->priv_data;", "int VAR_0;", "for (VAR_0 = 0; VAR_0 < APE_FILTER_LEVELS; VAR_0++)", "av_freep(&s->filterbuf[VAR_0]);", "av_freep(&s->data);", "return 0;", "}" ]
[ 1, 1, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ] ]
12,954
static int qemu_chr_open_file_out(QemuOpts *opts, CharDriverState **_chr) { int fd_out; TFR(fd_out = qemu_open(qemu_opt_get(opts, "path"), O_WRONLY | O_TRUNC | O_CREAT | O_BINARY, 0666)); if (fd_out < 0) { return -errno; } *_chr = qemu_chr_open_fd(-1, fd_out...
true
qemu
1f51470d044852592922f91000e741c381582cdc
static int qemu_chr_open_file_out(QemuOpts *opts, CharDriverState **_chr) { int fd_out; TFR(fd_out = qemu_open(qemu_opt_get(opts, "path"), O_WRONLY | O_TRUNC | O_CREAT | O_BINARY, 0666)); if (fd_out < 0) { return -errno; } *_chr = qemu_chr_open_fd(-1, fd_out...
{ "code": [ " return 0;", " return 0;", " return 0;", " return 0;", "static int qemu_chr_open_file_out(QemuOpts *opts, CharDriverState **_chr)", " if (fd_out < 0) {", " return -errno;", " *_chr = qemu_chr_open_fd(-1, fd_out);", " return 0;", " ret...
static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1) { int VAR_2; TFR(VAR_2 = qemu_open(qemu_opt_get(VAR_0, "path"), O_WRONLY | O_TRUNC | O_CREAT | O_BINARY, 0666)); if (VAR_2 < 0) { return -errno; } *VAR_1 = qemu_chr_open_fd(-1, VAR_2); return 0...
[ "static int FUNC_0(QemuOpts *VAR_0, CharDriverState **VAR_1)\n{", "int VAR_2;", "TFR(VAR_2 = qemu_open(qemu_opt_get(VAR_0, \"path\"),\nO_WRONLY | O_TRUNC | O_CREAT | O_BINARY, 0666));", "if (VAR_2 < 0) {", "return -errno;", "}", "*VAR_1 = qemu_chr_open_fd(-1, VAR_2);", "return 0;", "}" ]
[ 1, 0, 0, 1, 1, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ] ]
12,955
static int con_initialise(struct XenDevice *xendev) { struct XenConsole *con = container_of(xendev, struct XenConsole, xendev); int limit; if (xenstore_read_int(con->console, "ring-ref", &con->ring_ref) == -1) return -1; if (xenstore_read_int(con->console, "port", &con->xendev.remote_port) == -...
true
qemu
9ed257d1d1c65dbe5a08f207e5106e98384e1860
static int con_initialise(struct XenDevice *xendev) { struct XenConsole *con = container_of(xendev, struct XenConsole, xendev); int limit; if (xenstore_read_int(con->console, "ring-ref", &con->ring_ref) == -1) return -1; if (xenstore_read_int(con->console, "port", &con->xendev.remote_port) == -...
{ "code": [ " con->sring = xc_map_foreign_range(xen_xc, con->xendev.dom,", " XC_PAGE_SIZE,", " PROT_READ|PROT_WRITE,", " con->ring_ref);" ], "line_no": [ 27, 29...
static int FUNC_0(struct XenDevice *VAR_0) { struct XenConsole *VAR_1 = container_of(VAR_0, struct XenConsole, VAR_0); int VAR_2; if (xenstore_read_int(VAR_1->console, "ring-ref", &VAR_1->ring_ref) == -1) return -1; if (xenstore_read_int(VAR_1->console, "port", &VAR_1->VAR_0.remote_port) == -1)...
[ "static int FUNC_0(struct XenDevice *VAR_0)\n{", "struct XenConsole *VAR_1 = container_of(VAR_0, struct XenConsole, VAR_0);", "int VAR_2;", "if (xenstore_read_int(VAR_1->console, \"ring-ref\", &VAR_1->ring_ref) == -1)\nreturn -1;", "if (xenstore_read_int(VAR_1->console, \"port\", &VAR_1->VAR_0.remote_port) ...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15, 17 ], [ 19, 21 ], [ 25 ], [ 27, 29, 31, 33 ], [ 35 ], [ 37, 39, 41 ], [ 43 ], [ 45, 47 ], [ 51 ], [ 53 ], [ 55 ], ...
12,956
static void writer_close(WriterContext **wctx) { int i; if (!*wctx) return; if ((*wctx)->writer->uninit) (*wctx)->writer->uninit(*wctx); for (i = 0; i < SECTION_MAX_NB_LEVELS; i++) av_bprint_finalize(&(*wctx)->section_pbuf[i], NULL); if ((*wctx)->writer->priv_cla...
true
FFmpeg
704cc5e75df3a1dc68581d3857a06d502d8662b6
static void writer_close(WriterContext **wctx) { int i; if (!*wctx) return; if ((*wctx)->writer->uninit) (*wctx)->writer->uninit(*wctx); for (i = 0; i < SECTION_MAX_NB_LEVELS; i++) av_bprint_finalize(&(*wctx)->section_pbuf[i], NULL); if ((*wctx)->writer->priv_cla...
{ "code": [], "line_no": [] }
static void FUNC_0(WriterContext **VAR_0) { int VAR_1; if (!*VAR_0) return; if ((*VAR_0)->writer->uninit) (*VAR_0)->writer->uninit(*VAR_0); for (VAR_1 = 0; VAR_1 < SECTION_MAX_NB_LEVELS; VAR_1++) av_bprint_finalize(&(*VAR_0)->section_pbuf[VAR_1], NULL); if ((*VAR...
[ "static void FUNC_0(WriterContext **VAR_0)\n{", "int VAR_1;", "if (!*VAR_0)\nreturn;", "if ((*VAR_0)->writer->uninit)\n(*VAR_0)->writer->uninit(*VAR_0);", "for (VAR_1 = 0; VAR_1 < SECTION_MAX_NB_LEVELS; VAR_1++)", "av_bprint_finalize(&(*VAR_0)->section_pbuf[VAR_1], NULL);", "if ((*VAR_0)->writer->priv_c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 30 ], [ 32 ] ]
12,957
static int avi_read_tag(AVFormatContext *s, AVStream *st, uint32_t tag, uint32_t size) { AVIOContext *pb = s->pb; char key[5] = {0}, *value; size += (size & 1); if (size == UINT_MAX) return -1; value = av_malloc(size+1); if (!value) return -1; avio_read(pb, valu...
false
FFmpeg
570a4a0189946c2c983da41d37fdd67fa13266e7
static int avi_read_tag(AVFormatContext *s, AVStream *st, uint32_t tag, uint32_t size) { AVIOContext *pb = s->pb; char key[5] = {0}, *value; size += (size & 1); if (size == UINT_MAX) return -1; value = av_malloc(size+1); if (!value) return -1; avio_read(pb, valu...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, uint32_t VAR_2, uint32_t VAR_3) { AVIOContext *pb = VAR_0->pb; char VAR_4[5] = {0}, *VAR_5; VAR_3 += (VAR_3 & 1); if (VAR_3 == UINT_MAX) return -1; VAR_5 = av_malloc(VAR_3+1); if (!VAR_5) return -1; avio...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, uint32_t VAR_2, uint32_t VAR_3)\n{", "AVIOContext *pb = VAR_0->pb;", "char VAR_4[5] = {0}, *VAR_5;", "VAR_3 += (VAR_3 & 1);", "if (VAR_3 == UINT_MAX)\nreturn -1;", "VAR_5 = av_malloc(VAR_3+1);", "if (!VAR_5)\nreturn -1;", "avio_read(pb, VAR_5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35, 37 ], [ 39 ] ]
12,958
static void set_dirty_tracking(void) { BlkMigDevState *bmds; QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) { bmds->dirty_bitmap = bdrv_create_dirty_bitmap(bmds->bs, BLOCK_SIZE); } }
true
qemu
b8afb520e479e693c227aa39c2fb7670743e104f
static void set_dirty_tracking(void) { BlkMigDevState *bmds; QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) { bmds->dirty_bitmap = bdrv_create_dirty_bitmap(bmds->bs, BLOCK_SIZE); } }
{ "code": [ "static void set_dirty_tracking(void)", " bmds->dirty_bitmap = bdrv_create_dirty_bitmap(bmds->bs, BLOCK_SIZE);" ], "line_no": [ 1, 11 ] }
static void FUNC_0(void) { BlkMigDevState *bmds; QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) { bmds->dirty_bitmap = bdrv_create_dirty_bitmap(bmds->bs, BLOCK_SIZE); } }
[ "static void FUNC_0(void)\n{", "BlkMigDevState *bmds;", "QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) {", "bmds->dirty_bitmap = bdrv_create_dirty_bitmap(bmds->bs, BLOCK_SIZE);", "}", "}" ]
[ 1, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
12,959
static inline void RENAME(nvXXtoUV)(uint8_t *dst1, uint8_t *dst2, const uint8_t *src, int width) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "movq "MANGLE(bm01010101)", %%mm4 \n\t" "mov %0, %%"REG_a" \n\t" "1: ...
true
FFmpeg
c3ab0004ae4dffc32494ae84dd15cfaa909a7884
static inline void RENAME(nvXXtoUV)(uint8_t *dst1, uint8_t *dst2, const uint8_t *src, int width) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "movq "MANGLE(bm01010101)", %%mm4 \n\t" "mov %0, %%"REG_a" \n\t" "1: ...
{ "code": [ " const uint8_t *src, int width)" ], "line_no": [ 3 ] }
static inline void FUNC_0(nvXXtoUV)(uint8_t *dst1, uint8_t *dst2, const uint8_t *src, int width) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "movq "MANGLE(bm01010101)", %%mm4 \n\t" "mov %0, %%"REG_a" \n\t" "1: ...
[ "static inline void FUNC_0(nvXXtoUV)(uint8_t *dst1, uint8_t *dst2,\nconst uint8_t *src, int width)\n{", "#if COMPILE_TEMPLATE_MMX\n__asm__ volatile(\n\"movq \"MANGLE(bm01010101)\", %%mm4 \\n\\t\"\n\"mov %0, %%\"REG_a\" \\n\\t\"\n\"1: \\n\\...
[ 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49 ], [ 51, 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63, 65 ...
12,960
static int frame_copy_props(AVFrame *dst, const AVFrame *src, int force_copy) { int i; dst->key_frame = src->key_frame; dst->pict_type = src->pict_type; dst->sample_aspect_ratio = src->sample_aspect_ratio; dst->pts = src->pts; dst->repeat_...
true
FFmpeg
2acee08a4a53b6c8f5fc160e6d6da92f77208a06
static int frame_copy_props(AVFrame *dst, const AVFrame *src, int force_copy) { int i; dst->key_frame = src->key_frame; dst->pict_type = src->pict_type; dst->sample_aspect_ratio = src->sample_aspect_ratio; dst->pts = src->pts; dst->repeat_...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFrame *VAR_0, const AVFrame *VAR_1, int VAR_2) { int VAR_3; VAR_0->key_frame = VAR_1->key_frame; VAR_0->pict_type = VAR_1->pict_type; VAR_0->sample_aspect_ratio = VAR_1->sample_aspect_ratio; VAR_0->pts = VAR_1->pts; VAR...
[ "static int FUNC_0(AVFrame *VAR_0, const AVFrame *VAR_1, int VAR_2)\n{", "int VAR_3;", "VAR_0->key_frame = VAR_1->key_frame;", "VAR_0->pict_type = VAR_1->pict_type;", "VAR_0->sample_aspect_ratio = VAR_1->sample_aspect_ratio;", "VAR_0->pts = VAR_1->pts;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31, 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
12,961
static int img_create(int argc, char **argv) { int c, ret = 0; uint64_t img_size = -1; const char *fmt = "raw"; const char *base_fmt = NULL; const char *filename; const char *base_filename = NULL; char *options = NULL; for(;;) { c = getopt(argc, argv, "F:b:f:he6o:"); ...
true
qemu
c8057f951d64de93bfd01569c0a725baa9f94372
static int img_create(int argc, char **argv) { int c, ret = 0; uint64_t img_size = -1; const char *fmt = "raw"; const char *base_fmt = NULL; const char *filename; const char *base_filename = NULL; char *options = NULL; for(;;) { c = getopt(argc, argv, "F:b:f:he6o:"); ...
{ "code": [ " if (options && !strcmp(options, \"?\")) {", " if (options && !strcmp(options, \"?\")) {" ], "line_no": [ 129, 129 ] }
static int FUNC_0(int VAR_0, char **VAR_1) { int VAR_2, VAR_3 = 0; uint64_t img_size = -1; const char *VAR_4 = "raw"; const char *VAR_5 = NULL; const char *VAR_6; const char *VAR_7 = NULL; char *VAR_8 = NULL; for(;;) { VAR_2 = getopt(VAR_0, VAR_1, "F:b:f:he6o:"); ...
[ "static int FUNC_0(int VAR_0, char **VAR_1)\n{", "int VAR_2, VAR_3 = 0;", "uint64_t img_size = -1;", "const char *VAR_4 = \"raw\";", "const char *VAR_5 = NULL;", "const char *VAR_6;", "const char *VAR_7 = NULL;", "char *VAR_8 = NULL;", "for(;;) {", "VAR_2 = getopt(VAR_0, VAR_1, \"F:b:f:he6o:\");",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [...