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
10,577
static int xan_decode_frame_type1(AVCodecContext *avctx) { XanContext *s = avctx->priv_data; uint8_t *ybuf, *src = s->scratch_buffer; int cur, last; int i, j; int ret; if ((ret = xan_decode_chroma(avctx, bytestream2_get_le32(&s->gb))) != 0) return ret; bytestream2_seek(&...
false
FFmpeg
77693c541a541661357a0edd5bbaae69c64b2039
static int xan_decode_frame_type1(AVCodecContext *avctx) { XanContext *s = avctx->priv_data; uint8_t *ybuf, *src = s->scratch_buffer; int cur, last; int i, j; int ret; if ((ret = xan_decode_chroma(avctx, bytestream2_get_le32(&s->gb))) != 0) return ret; bytestream2_seek(&...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { XanContext *s = VAR_0->priv_data; uint8_t *ybuf, *src = s->scratch_buffer; int VAR_1, VAR_2; int VAR_3, VAR_4; int VAR_5; if ((VAR_5 = xan_decode_chroma(VAR_0, bytestream2_get_le32(&s->gb))) != 0) return VAR_5; bytestream2_seek(...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "XanContext *s = VAR_0->priv_data;", "uint8_t *ybuf, *src = s->scratch_buffer;", "int VAR_1, VAR_2;", "int VAR_3, VAR_4;", "int VAR_5;", "if ((VAR_5 = xan_decode_chroma(VAR_0, bytestream2_get_le32(&s->gb))) != 0)\nreturn VAR_5;", "bytestream2_seek(&s->gb,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
10,578
static void vtd_context_device_invalidate(IntelIOMMUState *s, uint16_t source_id, uint16_t func_mask) { uint16_t mask; VTDAddressSpace **pvtd_as; VTDAddressSpace *vtd_as; uint16_t devfn; uint16_t devfn_it; ...
false
qemu
7df953bd456da45f761064974820ab5c3fd7b2aa
static void vtd_context_device_invalidate(IntelIOMMUState *s, uint16_t source_id, uint16_t func_mask) { uint16_t mask; VTDAddressSpace **pvtd_as; VTDAddressSpace *vtd_as; uint16_t devfn; uint16_t devfn_it; ...
{ "code": [], "line_no": [] }
static void FUNC_0(IntelIOMMUState *VAR_0, uint16_t VAR_1, uint16_t VAR_2) { uint16_t mask; VTDAddressSpace **pvtd_as; VTDAddressSpace *vtd_as; uint16_t devfn; uint16_t devfn_it; switch (VAR_2 & 3) { ...
[ "static void FUNC_0(IntelIOMMUState *VAR_0,\nuint16_t VAR_1,\nuint16_t VAR_2)\n{", "uint16_t mask;", "VTDAddressSpace **pvtd_as;", "VTDAddressSpace *vtd_as;", "uint16_t devfn;", "uint16_t devfn_it;", "switch (VAR_2 & 3) {", "case 0:\nmask = 0;", "break;", "case 1:\nmask = 4;", "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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49,...
10,580
static int raw_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVRawState *s = bs->opaque; int access_flags; DWORD overlapped; QemuOpts *opts; Error *local_err = NULL; const char *filename; int ret; s->type = FTYPE_FILE; opts...
false
qemu
2914a1de992118286f5280eddf4f4e6060a8e00b
static int raw_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVRawState *s = bs->opaque; int access_flags; DWORD overlapped; QemuOpts *opts; Error *local_err = NULL; const char *filename; int ret; s->type = FTYPE_FILE; opts...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2, Error **VAR_3) { BDRVRawState *s = VAR_0->opaque; int VAR_4; DWORD overlapped; QemuOpts *opts; Error *local_err = NULL; const char *VAR_5; int VAR_6; s->type = FTYPE_FILE; opts = qe...
[ "static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{", "BDRVRawState *s = VAR_0->opaque;", "int VAR_4;", "DWORD overlapped;", "QemuOpts *opts;", "Error *local_err = NULL;", "const char *VAR_5;", "int VAR_6;", "s->type = FTYPE_FILE;", "opts = qemu_opts_create(&raw...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 51 ], [...
10,581
static struct omap_watchdog_timer_s *omap_wd_timer_init(MemoryRegion *memory, target_phys_addr_t base, qemu_irq irq, omap_clk clk) { struct omap_watchdog_timer_s *s = (struct omap_watchdog_timer_s *) g_malloc0(sizeof(struct omap_watchdog_timer_s)); s->timer.ir...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static struct omap_watchdog_timer_s *omap_wd_timer_init(MemoryRegion *memory, target_phys_addr_t base, qemu_irq irq, omap_clk clk) { struct omap_watchdog_timer_s *s = (struct omap_watchdog_timer_s *) g_malloc0(sizeof(struct omap_watchdog_timer_s)); s->timer.ir...
{ "code": [], "line_no": [] }
static struct omap_watchdog_timer_s *FUNC_0(MemoryRegion *VAR_0, target_phys_addr_t VAR_1, qemu_irq VAR_2, omap_clk VAR_3) { struct omap_watchdog_timer_s *VAR_4 = (struct omap_watchdog_timer_s *) g_malloc0(sizeof(struct omap_watchdog_timer_s)); VAR_4->timer.VA...
[ "static struct omap_watchdog_timer_s *FUNC_0(MemoryRegion *VAR_0,\ntarget_phys_addr_t VAR_1,\nqemu_irq VAR_2, omap_clk VAR_3)\n{", "struct omap_watchdog_timer_s *VAR_4 = (struct omap_watchdog_timer_s *)\ng_malloc0(sizeof(struct omap_watchdog_timer_s));", "VAR_4->timer.VAR_2 = VAR_2;", "VAR_4->timer.VAR_3 = VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 37 ] ]
10,582
void qmp_block_job_cancel(const char *device, bool has_force, bool force, Error **errp) { BlockJob *job = find_block_job(device); if (!has_force) { force = false; } if (!job) { error_set(errp, QERR_BLOCK_JOB_NOT_ACTIVE, device); return; ...
false
qemu
3d948cdf3760b52238038626a7ffa7d30913060b
void qmp_block_job_cancel(const char *device, bool has_force, bool force, Error **errp) { BlockJob *job = find_block_job(device); if (!has_force) { force = false; } if (!job) { error_set(errp, QERR_BLOCK_JOB_NOT_ACTIVE, device); return; ...
{ "code": [], "line_no": [] }
void FUNC_0(const char *VAR_0, bool VAR_1, bool VAR_2, Error **VAR_3) { BlockJob *job = find_block_job(VAR_0); if (!VAR_1) { VAR_2 = false; } if (!job) { error_set(VAR_3, QERR_BLOCK_JOB_NOT_ACTIVE, VAR_0); return; } if (job->paused...
[ "void FUNC_0(const char *VAR_0,\nbool VAR_1, bool VAR_2, Error **VAR_3)\n{", "BlockJob *job = find_block_job(VAR_0);", "if (!VAR_1) {", "VAR_2 = false;", "}", "if (!job) {", "error_set(VAR_3, QERR_BLOCK_JOB_NOT_ACTIVE, VAR_0);", "return;", "}", "if (job->paused && !VAR_2) {", "error_setg(VAR_3, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ] ]
10,584
static void gen_flt3_ldst (DisasContext *ctx, uint32_t opc, int fd, int fs, int base, int index) { const char *opn = "extended float load/store"; int store = 0; TCGv t0 = tcg_temp_new(); if (base == 0) { gen_load_gpr(t0, index); } else if (index == 0) { ...
false
qemu
007ac6faed12abdd4113e2460ba4464aacb7f4dd
static void gen_flt3_ldst (DisasContext *ctx, uint32_t opc, int fd, int fs, int base, int index) { const char *opn = "extended float load/store"; int store = 0; TCGv t0 = tcg_temp_new(); if (base == 0) { gen_load_gpr(t0, index); } else if (index == 0) { ...
{ "code": [], "line_no": [] }
static void FUNC_0 (DisasContext *VAR_0, uint32_t VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5) { const char *VAR_6 = "extended float load/VAR_7"; int VAR_7 = 0; TCGv t0 = tcg_temp_new(); if (VAR_4 == 0) { gen_load_gpr(t0, VAR_5); } else if (VAR_5 ==...
[ "static void FUNC_0 (DisasContext *VAR_0, uint32_t VAR_1,\nint VAR_2, int VAR_3, int VAR_4, int VAR_5)\n{", "const char *VAR_6 = \"extended float load/VAR_7\";", "int VAR_7 = 0;", "TCGv t0 = tcg_temp_new();", "if (VAR_4 == 0) {", "gen_load_gpr(t0, VAR_5);", "} else if (VAR_5 == 0) {", "gen_load_gpr(t0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ...
10,585
static ioreq_t *cpu_get_ioreq(XenIOState *state) { int i; evtchn_port_t port; port = xc_evtchn_pending(state->xce_handle); if (port == state->bufioreq_local_port) { timer_mod(state->buffered_io_timer, BUFFER_IO_MAX_DELAY + qemu_clock_get_ms(QEMU_CLOCK_REALTIME)); ...
false
qemu
a2db2a1edd06a50b8a862c654cf993368cf9f1d9
static ioreq_t *cpu_get_ioreq(XenIOState *state) { int i; evtchn_port_t port; port = xc_evtchn_pending(state->xce_handle); if (port == state->bufioreq_local_port) { timer_mod(state->buffered_io_timer, BUFFER_IO_MAX_DELAY + qemu_clock_get_ms(QEMU_CLOCK_REALTIME)); ...
{ "code": [], "line_no": [] }
static ioreq_t *FUNC_0(XenIOState *state) { int VAR_0; evtchn_port_t port; port = xc_evtchn_pending(state->xce_handle); if (port == state->bufioreq_local_port) { timer_mod(state->buffered_io_timer, BUFFER_IO_MAX_DELAY + qemu_clock_get_ms(QEMU_CLOCK_REALTIME)); r...
[ "static ioreq_t *FUNC_0(XenIOState *state)\n{", "int VAR_0;", "evtchn_port_t port;", "port = xc_evtchn_pending(state->xce_handle);", "if (port == state->bufioreq_local_port) {", "timer_mod(state->buffered_io_timer,\nBUFFER_IO_MAX_DELAY + qemu_clock_get_ms(QEMU_CLOCK_REALTIME));", "return NULL;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 55 ], ...
10,586
BlockDriverAIOCB *bdrv_aio_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { BlockDriver *drv = bs->drv; BlockDriverAIOCB *ret; if (!drv) return NULL; ...
false
qemu
4fc9af53d88c0a2a810704a06cb39a7182982e4e
BlockDriverAIOCB *bdrv_aio_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { BlockDriver *drv = bs->drv; BlockDriverAIOCB *ret; if (!drv) return NULL; ...
{ "code": [], "line_no": [] }
BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { BlockDriver *drv = bs->drv; BlockDriverAIOCB *ret; if (!drv) return NULL; ...
[ "BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num,\nuint8_t *buf, int nb_sectors,\nBlockDriverCompletionFunc *cb, void *opaque)\n{", "BlockDriver *drv = bs->drv;", "BlockDriverAIOCB *ret;", "if (!drv)\nreturn NULL;", "if (sector_num == 0 && bs->boot_sector_enabled && nb_sectors > 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ] ]
10,587
static void tcp_chr_tls_init(Chardev *chr) { SocketChardev *s = SOCKET_CHARDEV(chr); QIOChannelTLS *tioc; Error *err = NULL; gchar *name; if (s->is_listen) { tioc = qio_channel_tls_new_server( s->ioc, s->tls_creds, NULL, /* XXX Use an ACL */ &e...
false
qemu
bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884
static void tcp_chr_tls_init(Chardev *chr) { SocketChardev *s = SOCKET_CHARDEV(chr); QIOChannelTLS *tioc; Error *err = NULL; gchar *name; if (s->is_listen) { tioc = qio_channel_tls_new_server( s->ioc, s->tls_creds, NULL, &err); } else { ...
{ "code": [], "line_no": [] }
static void FUNC_0(Chardev *VAR_0) { SocketChardev *s = SOCKET_CHARDEV(VAR_0); QIOChannelTLS *tioc; Error *err = NULL; gchar *name; if (s->is_listen) { tioc = qio_channel_tls_new_server( s->ioc, s->tls_creds, NULL, &err); } else { ...
[ "static void FUNC_0(Chardev *VAR_0)\n{", "SocketChardev *s = SOCKET_CHARDEV(VAR_0);", "QIOChannelTLS *tioc;", "Error *err = NULL;", "gchar *name;", "if (s->is_listen) {", "tioc = qio_channel_tls_new_server(\ns->ioc, s->tls_creds,\nNULL,\n&err);", "} else {", "tioc = qio_channel_tls_new_client(\ns->i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19, 21, 23 ], [ 25 ], [ 27, 29, 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49, 51 ...
10,588
static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info, int *need_next_header, int *new_frame_start) { GetBitContext bits; int size, rdb, ch, sr; union { uint64_t u64; uint8_t u8[8]; } tmp; tmp.u64 = be2me_64(state); init_get_bits(&bits, tmp.u8+8-AA...
false
FFmpeg
158b39126d59f07069e0da07e0658111967c6179
static int aac_sync(uint64_t state, AACAC3ParseContext *hdr_info, int *need_next_header, int *new_frame_start) { GetBitContext bits; int size, rdb, ch, sr; union { uint64_t u64; uint8_t u8[8]; } tmp; tmp.u64 = be2me_64(state); init_get_bits(&bits, tmp.u8+8-AA...
{ "code": [], "line_no": [] }
static int FUNC_0(uint64_t VAR_0, AACAC3ParseContext *VAR_1, int *VAR_2, int *VAR_3) { GetBitContext bits; int VAR_4, VAR_5, VAR_6, VAR_7; union { uint64_t u64; uint8_t u8[8]; } VAR_8; VAR_8.u64 = be2me_64(VAR_0); init_get_bits(&bits, VAR_8.u8+8-AAC_HEADER_SI...
[ "static int FUNC_0(uint64_t VAR_0, AACAC3ParseContext *VAR_1,\nint *VAR_2, int *VAR_3)\n{", "GetBitContext bits;", "int VAR_4, VAR_5, VAR_6, VAR_7;", "union {", "uint64_t u64;", "uint8_t u8[8];", "} VAR_8;", "VAR_8.u64 = be2me_64(VAR_0);", "init_get_bits(&bits, VAR_8.u8+8-AAC_HEADER_SIZE, AAC_HEADE...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
10,589
static int local_post_create_passthrough(FsContext *fs_ctx, const char *path, FsCred *credp) { char buffer[PATH_MAX]; if (chmod(rpath(fs_ctx, path, buffer), credp->fc_mode & 07777) < 0) { return -1; } if (lchown(rpath(fs_ctx, path, buffer), credp...
true
qemu
2d40564aaab3a99fe6ce00fc0fc893c02e9443ec
static int local_post_create_passthrough(FsContext *fs_ctx, const char *path, FsCred *credp) { char buffer[PATH_MAX]; if (chmod(rpath(fs_ctx, path, buffer), credp->fc_mode & 07777) < 0) { return -1; } if (lchown(rpath(fs_ctx, path, buffer), credp...
{ "code": [ " if (chmod(rpath(fs_ctx, path, buffer), credp->fc_mode & 07777) < 0) {", " return -1;" ], "line_no": [ 11, 13 ] }
static int FUNC_0(FsContext *VAR_0, const char *VAR_1, FsCred *VAR_2) { char VAR_3[PATH_MAX]; if (chmod(rpath(VAR_0, VAR_1, VAR_3), VAR_2->fc_mode & 07777) < 0) { return -1; } if (lchown(rpath(VAR_0, VAR_1, VAR_3), VAR_2->fc_uid, ...
[ "static int FUNC_0(FsContext *VAR_0, const char *VAR_1,\nFsCred *VAR_2)\n{", "char VAR_3[PATH_MAX];", "if (chmod(rpath(VAR_0, VAR_1, VAR_3), VAR_2->fc_mode & 07777) < 0) {", "return -1;", "}", "if (lchown(rpath(VAR_0, VAR_1, VAR_3), VAR_2->fc_uid,\nVAR_2->fc_gid) < 0) {", "if ((VAR_0->export_flags & V9F...
[ 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
10,591
void vga_reset(void *opaque) { VGAState *s = (VGAState *) opaque; s->lfb_addr = 0; s->lfb_end = 0; s->map_addr = 0; s->map_end = 0; s->lfb_vram_mapped = 0; s->bios_offset = 0; s->bios_size = 0; s->sr_index = 0; memset(s->sr, '\0', sizeof(s->sr)); s->gr_index = 0...
true
qemu
9586fefefe383a9aa25ad99bde9a6b240309ca33
void vga_reset(void *opaque) { VGAState *s = (VGAState *) opaque; s->lfb_addr = 0; s->lfb_end = 0; s->map_addr = 0; s->map_end = 0; s->lfb_vram_mapped = 0; s->bios_offset = 0; s->bios_size = 0; s->sr_index = 0; memset(s->sr, '\0', sizeof(s->sr)); s->gr_index = 0...
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0) { VGAState *s = (VGAState *) VAR_0; s->lfb_addr = 0; s->lfb_end = 0; s->map_addr = 0; s->map_end = 0; s->lfb_vram_mapped = 0; s->bios_offset = 0; s->bios_size = 0; s->sr_index = 0; memset(s->sr, '\0', sizeof(s->sr)); s->gr_index = 0; ...
[ "void FUNC_0(void *VAR_0)\n{", "VGAState *s = (VGAState *) VAR_0;", "s->lfb_addr = 0;", "s->lfb_end = 0;", "s->map_addr = 0;", "s->map_end = 0;", "s->lfb_vram_mapped = 0;", "s->bios_offset = 0;", "s->bios_size = 0;", "s->sr_index = 0;", "memset(s->sr, '\\0', sizeof(s->sr));", "s->gr_index = 0;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43...
10,593
void decode_mb_mode(VP8Context *s, VP8Macroblock *mb, int mb_x, int mb_y, uint8_t *segment, uint8_t *ref, int layout, int is_vp7) { VP56RangeCoder *c = &s->c; static const char *vp7_feature_name[] = { "q-index", "lf-delta", ...
true
FFmpeg
fed92adbb3fc6cbf735e3df9a2f7d0a2917fcfbd
void decode_mb_mode(VP8Context *s, VP8Macroblock *mb, int mb_x, int mb_y, uint8_t *segment, uint8_t *ref, int layout, int is_vp7) { VP56RangeCoder *c = &s->c; static const char *vp7_feature_name[] = { "q-index", "lf-delta", ...
{ "code": [ "void decode_mb_mode(VP8Context *s, VP8Macroblock *mb, int mb_x, int mb_y,", " vp8_decode_mvs(s, mb, mb_x, mb_y, layout);" ], "line_no": [ 1, 129 ] }
void FUNC_0(VP8Context *VAR_0, VP8Macroblock *VAR_1, int VAR_2, int VAR_3, uint8_t *VAR_4, uint8_t *VAR_5, int VAR_6, int VAR_7) { VP56RangeCoder *c = &VAR_0->c; static const char *VAR_8[] = { "q-VAR_10", "lf-delta", ...
[ "void FUNC_0(VP8Context *VAR_0, VP8Macroblock *VAR_1, int VAR_2, int VAR_3,\nuint8_t *VAR_4, uint8_t *VAR_5, int VAR_6, int VAR_7)\n{", "VP56RangeCoder *c = &VAR_0->c;", "static const char *VAR_8[] = { \"q-VAR_10\",", "\"lf-delta\",\n\"partial-golden-update\",\n\"blit-pitch\" };", "if (VAR_7) {", "int 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, 1, 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 ...
10,595
static void asfrtp_close_context(PayloadContext *asf) { ffio_free_dyn_buf(&asf->pktbuf); av_freep(&asf->buf); av_free(asf); }
true
FFmpeg
1dc19729e92a96620000e09eba8e58cb458c9486
static void asfrtp_close_context(PayloadContext *asf) { ffio_free_dyn_buf(&asf->pktbuf); av_freep(&asf->buf); av_free(asf); }
{ "code": [ " av_free(asf);" ], "line_no": [ 9 ] }
static void FUNC_0(PayloadContext *VAR_0) { ffio_free_dyn_buf(&VAR_0->pktbuf); av_freep(&VAR_0->buf); av_free(VAR_0); }
[ "static void FUNC_0(PayloadContext *VAR_0)\n{", "ffio_free_dyn_buf(&VAR_0->pktbuf);", "av_freep(&VAR_0->buf);", "av_free(VAR_0);", "}" ]
[ 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
10,597
static av_cold int dilate_init(AVFilterContext *ctx, const char *args) { OCVContext *ocv = ctx->priv; DilateContext *dilate = ocv->priv; char default_kernel_str[] = "3x3+0x0/rect"; char *kernel_str; const char *buf = args; int ret; dilate->nb_iterations = 1; if (args) ...
true
FFmpeg
f16a6f667c993a158643b52815ec42961508b0a9
static av_cold int dilate_init(AVFilterContext *ctx, const char *args) { OCVContext *ocv = ctx->priv; DilateContext *dilate = ocv->priv; char default_kernel_str[] = "3x3+0x0/rect"; char *kernel_str; const char *buf = args; int ret; dilate->nb_iterations = 1; if (args) ...
{ "code": [ " dilate->nb_iterations = 1;", " if ((ret = parse_iplconvkernel(&dilate->kernel,", " *kernel_str ? kernel_str : default_kernel_str,", " ctx)) < 0)", " sscanf(buf, \"|%d\", &dilate->nb_iterations);" ], "lin...
static av_cold int FUNC_0(AVFilterContext *ctx, const char *args) { OCVContext *ocv = ctx->priv; DilateContext *dilate = ocv->priv; char VAR_0[] = "3x3+0x0/rect"; char *VAR_1; const char *VAR_2 = args; int VAR_3; dilate->nb_iterations = 1; if (args) VAR_1 = av_get_t...
[ "static av_cold int FUNC_0(AVFilterContext *ctx, const char *args)\n{", "OCVContext *ocv = ctx->priv;", "DilateContext *dilate = ocv->priv;", "char VAR_0[] = \"3x3+0x0/rect\";", "char *VAR_1;", "const char *VAR_2 = args;", "int VAR_3;", "dilate->nb_iterations = 1;", "if (args)\nVAR_1 = av_get_token(...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23, 25 ], [ 27, 29, 31, 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [...
10,598
BlockDriverState *bdrv_new(void) { BlockDriverState *bs; int i; bs = g_new0(BlockDriverState, 1); QLIST_INIT(&bs->dirty_bitmaps); for (i = 0; i < BLOCK_OP_TYPE_MAX; i++) { QLIST_INIT(&bs->op_blockers[i]); } notifier_with_return_list_init(&bs->before_write_notifiers); bs->refcnt =...
true
qemu
3ff2f67a7c24183fcbcfe1332e5223ac6f96438c
BlockDriverState *bdrv_new(void) { BlockDriverState *bs; int i; bs = g_new0(BlockDriverState, 1); QLIST_INIT(&bs->dirty_bitmaps); for (i = 0; i < BLOCK_OP_TYPE_MAX; i++) { QLIST_INIT(&bs->op_blockers[i]); } notifier_with_return_list_init(&bs->before_write_notifiers); bs->refcnt =...
{ "code": [], "line_no": [] }
BlockDriverState *FUNC_0(void) { BlockDriverState *bs; int VAR_0; bs = g_new0(BlockDriverState, 1); QLIST_INIT(&bs->dirty_bitmaps); for (VAR_0 = 0; VAR_0 < BLOCK_OP_TYPE_MAX; VAR_0++) { QLIST_INIT(&bs->op_blockers[VAR_0]); } notifier_with_return_list_init(&bs->before_write_notifiers)...
[ "BlockDriverState *FUNC_0(void)\n{", "BlockDriverState *bs;", "int VAR_0;", "bs = g_new0(BlockDriverState, 1);", "QLIST_INIT(&bs->dirty_bitmaps);", "for (VAR_0 = 0; VAR_0 < BLOCK_OP_TYPE_MAX; VAR_0++) {", "QLIST_INIT(&bs->op_blockers[VAR_0]);", "}", "notifier_with_return_list_init(&bs->before_write_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ] ]
10,600
static inline void RENAME(bgr32ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { int i; assert(src1 == src2); for(i=0; i<width; i++) { const int a= ((uint32_t*)src1)[2*i+0]; const int e= ((uint32_t*)src1)[2*i+1]; const int l= (a&0xFF00FF) + (e&0xFF00FF); const in...
true
FFmpeg
2da0d70d5eebe42f9fcd27ee554419ebe2a5da06
static inline void RENAME(bgr32ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { int i; assert(src1 == src2); for(i=0; i<width; i++) { const int a= ((uint32_t*)src1)[2*i+0]; const int e= ((uint32_t*)src1)[2*i+1]; const int l= (a&0xFF00FF) + (e&0xFF00FF); const in...
{ "code": [ "\tint i;", "\tint i;", "\tint i;", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", " assert(src1 == src2);", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", " assert(src1 == s...
static inline void FUNC_0(bgr32ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { int VAR_0; assert(src1 == src2); for(VAR_0=0; VAR_0<width; VAR_0++) { const int a= ((uint32_t*)src1)[2*VAR_0+0]; const int e= ((uint32_t*)src1)[2*VAR_0+1]; const int l= (a&0xFF00FF) + (...
[ "static inline void FUNC_0(bgr32ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width)\n{", "int VAR_0;", "assert(src1 == src2);", "for(VAR_0=0; VAR_0<width; VAR_0++)", "{", "const int a= ((uint32_t*)src1)[2*VAR_0+0];", "const int e= ((uint32_t*)src1)[2*VAR_0+1];", "const int l= ...
[ 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
10,601
static int qemu_rdma_init_ram_blocks(RDMAContext *rdma) { RDMALocalBlocks *local = &rdma->local_ram_blocks; assert(rdma->blockmap == NULL); rdma->blockmap = g_hash_table_new(g_direct_hash, g_direct_equal); memset(local, 0, sizeof *local); qemu_ram_foreach_block(qemu_rdma_init_one_block, rdma...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static int qemu_rdma_init_ram_blocks(RDMAContext *rdma) { RDMALocalBlocks *local = &rdma->local_ram_blocks; assert(rdma->blockmap == NULL); rdma->blockmap = g_hash_table_new(g_direct_hash, g_direct_equal); memset(local, 0, sizeof *local); qemu_ram_foreach_block(qemu_rdma_init_one_block, rdma...
{ "code": [], "line_no": [] }
static int FUNC_0(RDMAContext *VAR_0) { RDMALocalBlocks *local = &VAR_0->local_ram_blocks; assert(VAR_0->blockmap == NULL); VAR_0->blockmap = g_hash_table_new(g_direct_hash, g_direct_equal); memset(local, 0, sizeof *local); qemu_ram_foreach_block(qemu_rdma_init_one_block, VAR_0); DPRINT...
[ "static int FUNC_0(RDMAContext *VAR_0)\n{", "RDMALocalBlocks *local = &VAR_0->local_ram_blocks;", "assert(VAR_0->blockmap == NULL);", "VAR_0->blockmap = g_hash_table_new(g_direct_hash, g_direct_equal);", "memset(local, 0, sizeof *local);", "qemu_ram_foreach_block(qemu_rdma_init_one_block, VAR_0);", "DPR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ] ]
10,602
static always_inline void gen_op_subfeo (void) { gen_op_move_T2_T0(); gen_op_subfe(); gen_op_check_subfo(); }
true
qemu
c3e10c7b4377c1cbc0a4fbc12312c2cf41c0cda7
static always_inline void gen_op_subfeo (void) { gen_op_move_T2_T0(); gen_op_subfe(); gen_op_check_subfo(); }
{ "code": [ " gen_op_move_T2_T0();", " gen_op_check_subfo();", " gen_op_move_T2_T0();", " gen_op_move_T2_T0();", " gen_op_check_subfo();", " gen_op_move_T2_T0();", " gen_op_move_T2_T0();", " gen_op_check_subfo();", " gen_op_move_T2_T0();" ], "line_no"...
static always_inline void FUNC_0 (void) { gen_op_move_T2_T0(); gen_op_subfe(); gen_op_check_subfo(); }
[ "static always_inline void FUNC_0 (void)\n{", "gen_op_move_T2_T0();", "gen_op_subfe();", "gen_op_check_subfo();", "}" ]
[ 0, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
10,603
void commit_start(BlockDriverState *bs, BlockDriverState *base, BlockDriverState *top, int64_t speed, BlockdevOnError on_error, BlockDriverCompletionFunc *cb, void *opaque, Error **errp) { CommitBlockJob *s; BlockReopenQueue *reopen_queue = NULL; ...
true
qemu
d5208c45be38ab858db6ec5a5097aa1c1a8ebbc9
void commit_start(BlockDriverState *bs, BlockDriverState *base, BlockDriverState *top, int64_t speed, BlockdevOnError on_error, BlockDriverCompletionFunc *cb, void *opaque, Error **errp) { CommitBlockJob *s; BlockReopenQueue *reopen_queue = NULL; ...
{ "code": [ " if (bdrv_find_backing_image(top, base->filename) != base) {", " error_setg(errp,", " \"Base (%s) is not reachable from top (%s)\",", " base->filename, top->filename);" ], "line_no": [ 67, 43, 71, 73 ] }
void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1, BlockDriverState *VAR_2, int64_t VAR_3, BlockdevOnError VAR_4, BlockDriverCompletionFunc *VAR_5, void *VAR_6, Error **VAR_7) { CommitBlockJob *s; BlockReopenQueue *reopen_queue = NULL; ...
[ "void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1,\nBlockDriverState *VAR_2, int64_t VAR_3,\nBlockdevOnError VAR_4, BlockDriverCompletionFunc *VAR_5,\nvoid *VAR_6, Error **VAR_7)\n{", "CommitBlockJob *s;", "BlockReopenQueue *reopen_queue = NULL;", "int VAR_8;", "int VAR_9;", "BlockDriverState ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ...
10,604
static void check_guest_output(const testdef_t *test, int fd) { bool output_ok = false; int i, nbr, pos = 0; char ch; /* Poll serial output... Wait at most 60 seconds */ for (i = 0; i < 6000; ++i) { while ((nbr = read(fd, &ch, 1)) == 1) { if (ch == test->expect[pos]) { ...
true
qemu
92b540dac9fc3a572c7342edd0b073000f5a6abf
static void check_guest_output(const testdef_t *test, int fd) { bool output_ok = false; int i, nbr, pos = 0; char ch; for (i = 0; i < 6000; ++i) { while ((nbr = read(fd, &ch, 1)) == 1) { if (ch == test->expect[pos]) { pos += 1; if (tes...
{ "code": [ " int i, nbr, pos = 0;", " while ((nbr = read(fd, &ch, 1)) == 1) {" ], "line_no": [ 7, 17 ] }
static void FUNC_0(const testdef_t *VAR_0, int VAR_1) { bool output_ok = false; int VAR_2, VAR_3, VAR_4 = 0; char VAR_5; for (VAR_2 = 0; VAR_2 < 6000; ++VAR_2) { while ((VAR_3 = read(VAR_1, &VAR_5, 1)) == 1) { if (VAR_5 == VAR_0->expect[VAR_4]) { VAR_4...
[ "static void FUNC_0(const testdef_t *VAR_0, int VAR_1)\n{", "bool output_ok = false;", "int VAR_2, VAR_3, VAR_4 = 0;", "char VAR_5;", "for (VAR_2 = 0; VAR_2 < 6000; ++VAR_2) {", "while ((VAR_3 = read(VAR_1, &VAR_5, 1)) == 1) {", "if (VAR_5 == VAR_0->expect[VAR_4]) {", "VAR_4 += 1;", "if (VAR_0->expe...
[ 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49,...
10,605
static void do_subtitle_out(AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, AVSubtitle *sub, int64_t pts) { static uint8_t *subtitle_out = NULL; int subtitle_out_max_size = 65536; ...
true
FFmpeg
266649a52fe258c09bbe5d2e222431c6a864af3f
static void do_subtitle_out(AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, AVSubtitle *sub, int64_t pts) { static uint8_t *subtitle_out = NULL; int subtitle_out_max_size = 65536; ...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, AVOutputStream *VAR_1, AVInputStream *VAR_2, AVSubtitle *VAR_3, int64_t VAR_4) { static uint8_t *VAR_5 = NULL; int VAR_6 = 65536; int VAR_7, VAR_...
[ "static void FUNC_0(AVFormatContext *VAR_0,\nAVOutputStream *VAR_1,\nAVInputStream *VAR_2,\nAVSubtitle *VAR_3,\nint64_t VAR_4)\n{", "static uint8_t *VAR_5 = NULL;", "int VAR_6 = 65536;", "int VAR_7, VAR_8, VAR_9;", "AVCodecContext *enc;", "AVPacket pkt;", "if (VAR_4 == AV_NOPTS_VALUE) {", "fprintf(std...
[ 0, 0, 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, 32 ], [ 37 ], [ 41 ], [ 43 ], [ 54, 56 ], [ 58, 60 ], [ 64 ], [ 66 ], [...
10,607
static int handle_sw_breakpoint(S390CPU *cpu, struct kvm_run *run) { CPUS390XState *env = &cpu->env; unsigned long pc; cpu_synchronize_state(CPU(cpu)); pc = env->psw.addr - 4; if (kvm_find_sw_breakpoint(CPU(cpu), pc)) { env->psw.addr = pc; return EXCP_DEBUG; } ...
true
qemu
b60fae32ff33cbaab76d14cc5f55b979cf58516d
static int handle_sw_breakpoint(S390CPU *cpu, struct kvm_run *run) { CPUS390XState *env = &cpu->env; unsigned long pc; cpu_synchronize_state(CPU(cpu)); pc = env->psw.addr - 4; if (kvm_find_sw_breakpoint(CPU(cpu), pc)) { env->psw.addr = pc; return EXCP_DEBUG; } ...
{ "code": [ " pc = env->psw.addr - 4;" ], "line_no": [ 15 ] }
static int FUNC_0(S390CPU *VAR_0, struct kvm_run *VAR_1) { CPUS390XState *env = &VAR_0->env; unsigned long VAR_2; cpu_synchronize_state(CPU(VAR_0)); VAR_2 = env->psw.addr - 4; if (kvm_find_sw_breakpoint(CPU(VAR_0), VAR_2)) { env->psw.addr = VAR_2; return EXCP_DEBUG; ...
[ "static int FUNC_0(S390CPU *VAR_0, struct kvm_run *VAR_1)\n{", "CPUS390XState *env = &VAR_0->env;", "unsigned long VAR_2;", "cpu_synchronize_state(CPU(VAR_0));", "VAR_2 = env->psw.addr - 4;", "if (kvm_find_sw_breakpoint(CPU(VAR_0), VAR_2)) {", "env->psw.addr = VAR_2;", "return EXCP_DEBUG;", "}", "...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
10,610
static void vhost_dev_sync_region(struct vhost_dev *dev, MemoryRegionSection *section, uint64_t mfirst, uint64_t mlast, uint64_t rfirst, uint64_t rlast) { uint64_t start = MAX(mfirst, rfirst); uint64_t en...
true
qemu
6b37a23df98faa26391a93373930bfb15b943e00
static void vhost_dev_sync_region(struct vhost_dev *dev, MemoryRegionSection *section, uint64_t mfirst, uint64_t mlast, uint64_t rfirst, uint64_t rlast) { uint64_t start = MAX(mfirst, rfirst); uint64_t en...
{ "code": [ " ram_addr_t ram_addr;", " ram_addr = section->offset_within_region + bit * VHOST_LOG_PAGE;", " memory_region_set_dirty(section->mr, ram_addr, VHOST_LOG_PAGE);" ], "line_no": [ 67, 71, 73 ] }
static void FUNC_0(struct vhost_dev *VAR_0, MemoryRegionSection *VAR_1, uint64_t VAR_2, uint64_t VAR_3, uint64_t VAR_4, uint64_t VAR_5) { uint64_t start = MAX(VAR_2, VAR_4); uint64_t end = MIN(VAR_3, VAR_...
[ "static void FUNC_0(struct vhost_dev *VAR_0,\nMemoryRegionSection *VAR_1,\nuint64_t VAR_2, uint64_t VAR_3,\nuint64_t VAR_4, uint64_t VAR_5)\n{", "uint64_t start = MAX(VAR_2, VAR_4);", "uint64_t end = MIN(VAR_3, VAR_5);", "vhost_log_chunk_t *from = VAR_0->log + start / VHOST_LOG_CHUNK;", "vhost_log_chunk_t *...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
10,612
int nbd_client_co_pdiscard(BlockDriverState *bs, int64_t offset, int count) { NBDClientSession *client = nbd_get_client_session(bs); NBDRequest request = { .type = NBD_CMD_TRIM, .from = offset, .len = count, }; NBDReply reply; ssize_t ret; if (!(client->nbdfla...
true
qemu
6bdcc018a6ed760b9dfe43539124e420aed83092
int nbd_client_co_pdiscard(BlockDriverState *bs, int64_t offset, int count) { NBDClientSession *client = nbd_get_client_session(bs); NBDRequest request = { .type = NBD_CMD_TRIM, .from = offset, .len = count, }; NBDReply reply; ssize_t ret; if (!(client->nbdfla...
{ "code": [ " nbd_coroutine_start(client, &request);", " nbd_coroutine_start(client, &request);", " nbd_coroutine_start(client, &request);", " nbd_coroutine_start(client, &request);", " nbd_coroutine_start(client, &request);" ], "line_no": [ 31, 31, 31, 31, 3...
int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2) { NBDClientSession *client = nbd_get_client_session(VAR_0); NBDRequest request = { .type = NBD_CMD_TRIM, .from = VAR_1, .len = VAR_2, }; NBDReply reply; ssize_t ret; if (!(client->nbdflags & NBD_FLA...
[ "int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2)\n{", "NBDClientSession *client = nbd_get_client_session(VAR_0);", "NBDRequest request = {", ".type = NBD_CMD_TRIM,\n.from = VAR_1,\n.len = VAR_2,\n};", "NBDReply reply;", "ssize_t ret;", "if (!(client->nbdflags & NBD_FLAG_SEND_TRIM)) {", "...
[ 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 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
10,613
int qcow2_check_refcounts(BlockDriverState *bs) { BDRVQcowState *s = bs->opaque; int64_t size; int nb_clusters, refcount1, refcount2, i; QCowSnapshot *sn; uint16_t *refcount_table; int ret, errors = 0; size = bdrv_getlength(bs->file); nb_clusters = size_to_clusters(s, size); ...
true
qemu
6882c8fa78dcc4882640d3e11232d995fda7d5c4
int qcow2_check_refcounts(BlockDriverState *bs) { BDRVQcowState *s = bs->opaque; int64_t size; int nb_clusters, refcount1, refcount2, i; QCowSnapshot *sn; uint16_t *refcount_table; int ret, errors = 0; size = bdrv_getlength(bs->file); nb_clusters = size_to_clusters(s, size); ...
{ "code": [ " int64_t offset;", " if (refcount_table[offset / s->cluster_size] != 1) {", " i, refcount_table[offset / s->cluster_size]);" ], "line_no": [ 79, 105, 109 ] }
int FUNC_0(BlockDriverState *VAR_0) { BDRVQcowState *s = VAR_0->opaque; int64_t size; int VAR_1, VAR_2, VAR_3, VAR_4; QCowSnapshot *sn; uint16_t *refcount_table; int VAR_5, VAR_6 = 0; size = bdrv_getlength(VAR_0->file); VAR_1 = size_to_clusters(s, size); refcount_table = ...
[ "int FUNC_0(BlockDriverState *VAR_0)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int64_t size;", "int VAR_1, VAR_2, VAR_3, VAR_4;", "QCowSnapshot *sn;", "uint16_t *refcount_table;", "int VAR_5, VAR_6 = 0;", "size = bdrv_getlength(VAR_0->file);", "VAR_1 = size_to_clusters(s, size);", "refcount_table...
[ 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, 1, 1, 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 ], [ 29, 31 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53 ], [ 55 ], [ 57,...
10,614
static int caf_write_trailer(AVFormatContext *s) { AVIOContext *pb = s->pb; AVCodecContext *enc = s->streams[0]->codec; if (pb->seekable) { CAFContext *caf = s->priv_data; int64_t file_size = avio_tell(pb); avio_seek(pb, caf->data, SEEK_SET); avio_wb64(pb, file_si...
true
FFmpeg
c46400ddecab3a47e8f1aec9a405bbe2a321b06a
static int caf_write_trailer(AVFormatContext *s) { AVIOContext *pb = s->pb; AVCodecContext *enc = s->streams[0]->codec; if (pb->seekable) { CAFContext *caf = s->priv_data; int64_t file_size = avio_tell(pb); avio_seek(pb, caf->data, SEEK_SET); avio_wb64(pb, file_si...
{ "code": [ " CAFContext *caf = s->priv_data;", " av_freep(&caf->pkt_sizes);" ], "line_no": [ 13, 41 ] }
static int FUNC_0(AVFormatContext *VAR_0) { AVIOContext *pb = VAR_0->pb; AVCodecContext *enc = VAR_0->streams[0]->codec; if (pb->seekable) { CAFContext *caf = VAR_0->priv_data; int64_t file_size = avio_tell(pb); avio_seek(pb, caf->data, SEEK_SET); avio_wb64(pb, fi...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "AVIOContext *pb = VAR_0->pb;", "AVCodecContext *enc = VAR_0->streams[0]->codec;", "if (pb->seekable) {", "CAFContext *caf = VAR_0->priv_data;", "int64_t file_size = avio_tell(pb);", "avio_seek(pb, caf->data, SEEK_SET);", "avio_wb64(pb, file_size - caf->...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
10,615
static void init_proc_970GX (CPUPPCState *env) { gen_spr_ne_601(env); gen_spr_7xx(env); /* Time base */ gen_tbl(env); /* Hardware implementation registers */ /* XXX : not implemented */ spr_register(env, SPR_HID0, "HID0", SPR_NOACCESS, SPR_NOACCESS, ...
true
qemu
12de9a396acbc95e25c5d60ed097cc55777eaaed
static void init_proc_970GX (CPUPPCState *env) { gen_spr_ne_601(env); gen_spr_7xx(env); gen_tbl(env); spr_register(env, SPR_HID0, "HID0", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_clear, 0x60000000); ...
{ "code": [ "#endif", "#else", "#endif", " env->slb_nr = 32;", " env->slb_nr = 32;", " env->slb_nr = 32;" ], "line_no": [ 61, 57, 61, 73, 73, 73 ] }
static void FUNC_0 (CPUPPCState *VAR_0) { gen_spr_ne_601(VAR_0); gen_spr_7xx(VAR_0); gen_tbl(VAR_0); spr_register(VAR_0, SPR_HID0, "HID0", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_clear, 0x60000000); ...
[ "static void FUNC_0 (CPUPPCState *VAR_0)\n{", "gen_spr_ne_601(VAR_0);", "gen_spr_7xx(VAR_0);", "gen_tbl(VAR_0);", "spr_register(VAR_0, SPR_HID0, \"HID0\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_clear,\n0x60000000);", "spr_register(VAR_0, SPR_HID1, \"HID1\",\nSPR_NOACCESS, SPR_NOACCESS...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 17, 19, 21, 23 ], [ 27, 29, 31, 33 ], [ 37, 39, 41, 43 ], [ 47, 49, 51, 53, 55, 57, 59, 61, 63 ], [ 69 ], [ 71, 73 ], [ 75...
10,616
static int find_marker(const uint8_t **pbuf_ptr, const uint8_t *buf_end) { const uint8_t *buf_ptr; unsigned int v, v2; int val; int skipped = 0; buf_ptr = *pbuf_ptr; while (buf_ptr < buf_end) { v = *buf_ptr++; v2 = *buf_ptr; if ((v == 0xff) && (v2 >= 0xc0) &&...
true
FFmpeg
16a0d75c769a7df6f457b2200dbc9a7cc73798c6
static int find_marker(const uint8_t **pbuf_ptr, const uint8_t *buf_end) { const uint8_t *buf_ptr; unsigned int v, v2; int val; int skipped = 0; buf_ptr = *pbuf_ptr; while (buf_ptr < buf_end) { v = *buf_ptr++; v2 = *buf_ptr; if ((v == 0xff) && (v2 >= 0xc0) &&...
{ "code": [ " while (buf_ptr < buf_end) {" ], "line_no": [ 17 ] }
static int FUNC_0(const uint8_t **VAR_0, const uint8_t *VAR_1) { const uint8_t *VAR_2; unsigned int VAR_3, VAR_4; int VAR_5; int VAR_6 = 0; VAR_2 = *VAR_0; while (VAR_2 < VAR_1) { VAR_3 = *VAR_2++; VAR_4 = *VAR_2; if ((VAR_3 == 0xff) && (VAR_4 >= 0xc0) && (VA...
[ "static int FUNC_0(const uint8_t **VAR_0, const uint8_t *VAR_1)\n{", "const uint8_t *VAR_2;", "unsigned int VAR_3, VAR_4;", "int VAR_5;", "int VAR_6 = 0;", "VAR_2 = *VAR_0;", "while (VAR_2 < VAR_1) {", "VAR_3 = *VAR_2++;", "VAR_4 = *VAR_2;", "if ((VAR_3 == 0xff) && (VAR_4 >= 0xc0) && (VAR_4 <= 0x...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [...
10,617
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVSContext *h = avctx->priv_data; MpegEncContext *s = &h->s; int input_size; const uint8_t *buf_end...
true
FFmpeg
4a71da0f3ab7f5542decd11c81994f849d5b2c78
static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVSContext *h = avctx->priv_data; MpegEncContext *s = &h->s; int input_size; const uint8_t *buf_end...
{ "code": [ " if(stc & 0xFFFFFE00)" ], "line_no": [ 53 ] }
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; AVSContext *h = VAR_0->priv_data; MpegEncContext *s = &h->s; int VAR_6; const uint8_t *VAR_7; const uint8_t ...
[ "static int FUNC_0(AVCodecContext * VAR_0,void *VAR_1, int *VAR_2,\nAVPacket *VAR_3) {", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "AVSContext *h = VAR_0->priv_data;", "MpegEncContext *s = &h->s;", "int VAR_6;", "const uint8_t *VAR_7;", "const uint8_t *VAR_8;", "AVFrame *pi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ...
10,618
static int get_pci_config_device(QEMUFile *f, void *pv, size_t size) { PCIDevice *s = container_of(pv, PCIDevice, config); uint8_t config[size]; int i; qemu_get_buffer(f, config, size); for (i = 0; i < size; ++i) if ((config[i] ^ s->config[i]) & s->cmask[i] & ~s->wmask[i]) ...
true
qemu
05fcfada5e45b900c32ca6bccf0ce52cb5422509
static int get_pci_config_device(QEMUFile *f, void *pv, size_t size) { PCIDevice *s = container_of(pv, PCIDevice, config); uint8_t config[size]; int i; qemu_get_buffer(f, config, size); for (i = 0; i < size; ++i) if ((config[i] ^ s->config[i]) & s->cmask[i] & ~s->wmask[i]) ...
{ "code": [ " uint8_t config[size];", " qemu_get_buffer(f, config, size);", " for (i = 0; i < size; ++i)", " memcpy(s->config, config, size);" ], "line_no": [ 7, 13, 15, 21 ] }
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2) { PCIDevice *s = container_of(VAR_1, PCIDevice, config); uint8_t config[VAR_2]; int VAR_3; qemu_get_buffer(VAR_0, config, VAR_2); for (VAR_3 = 0; VAR_3 < VAR_2; ++VAR_3) if ((config[VAR_3] ^ s->config[VAR_3]) & s->cmask[V...
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{", "PCIDevice *s = container_of(VAR_1, PCIDevice, config);", "uint8_t config[VAR_2];", "int VAR_3;", "qemu_get_buffer(VAR_0, config, VAR_2);", "for (VAR_3 = 0; VAR_3 < VAR_2; ++VAR_3)", "if ((config[VAR_3] ^ s->config[VAR_3]) & s->cmask[VA...
[ 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ] ]
10,619
static void update_md5_sum(FlacEncodeContext *s, const int16_t *samples) { #if HAVE_BIGENDIAN int i; for (i = 0; i < s->frame.blocksize * s->channels; i++) { int16_t smp = av_le2ne16(samples[i]); av_md5_update(s->md5ctx, (uint8_t *)&smp, 2); } #else av_md5_update(s->md5ctx, (con...
false
FFmpeg
6a744d261930f8101132bc6d207b6eac41d9cf18
static void update_md5_sum(FlacEncodeContext *s, const int16_t *samples) { #if HAVE_BIGENDIAN int i; for (i = 0; i < s->frame.blocksize * s->channels; i++) { int16_t smp = av_le2ne16(samples[i]); av_md5_update(s->md5ctx, (uint8_t *)&smp, 2); } #else av_md5_update(s->md5ctx, (con...
{ "code": [], "line_no": [] }
static void FUNC_0(FlacEncodeContext *VAR_0, const int16_t *VAR_1) { #if HAVE_BIGENDIAN int i; for (i = 0; i < VAR_0->frame.blocksize * VAR_0->channels; i++) { int16_t smp = av_le2ne16(VAR_1[i]); av_md5_update(VAR_0->md5ctx, (uint8_t *)&smp, 2); } #else av_md5_update(VAR_0->md5c...
[ "static void FUNC_0(FlacEncodeContext *VAR_0, const int16_t *VAR_1)\n{", "#if HAVE_BIGENDIAN\nint i;", "for (i = 0; i < VAR_0->frame.blocksize * VAR_0->channels; i++) {", "int16_t smp = av_le2ne16(VAR_1[i]);", "av_md5_update(VAR_0->md5ctx, (uint8_t *)&smp, 2);", "}", "#else\nav_md5_update(VAR_0->md5ctx,...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21, 23 ] ]
10,621
static int cuvid_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { CuvidContext *ctx = avctx->priv_data; AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)ctx->hwdevice->data; AVCUDADeviceContext *device_hwctx = device_ctx->hwctx; CUcontext dummy, cuda_ctx = devic...
false
FFmpeg
b91e0e59874d28f35a28acb4f886ab1e7d80cacb
static int cuvid_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { CuvidContext *ctx = avctx->priv_data; AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)ctx->hwdevice->data; AVCUDADeviceContext *device_hwctx = device_ctx->hwctx; CUcontext dummy, cuda_ctx = devic...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { CuvidContext *ctx = VAR_0->priv_data; AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)ctx->hwdevice->VAR_1; AVCUDADeviceContext *device_hwctx = device_ctx->hwctx; CUcontext dummy, cuda_ctx = device_hwctx->cuda_...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{", "CuvidContext *ctx = VAR_0->priv_data;", "AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)ctx->hwdevice->VAR_1;", "AVCUDADeviceContext *device_hwctx = device_ctx->hwctx;", "CUcontext dummy, cuda_ctx = device_hwctx->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
10,623
static void intra_predict_mad_cow_dc_0lt_8x8_msa(uint8_t *src, int32_t stride) { uint8_t lp_cnt; uint32_t src0, src1, src2 = 0, src3; uint32_t out0, out1, out2, out3; v16u8 src_top; v8u16 add; v4u32 sum; src_top = LD_UB(src - stride); add = __msa_hadd_u_h(src_top, src_top); ...
false
FFmpeg
d6737539e77e78fca9a04914d51996cfd1ccc55c
static void intra_predict_mad_cow_dc_0lt_8x8_msa(uint8_t *src, int32_t stride) { uint8_t lp_cnt; uint32_t src0, src1, src2 = 0, src3; uint32_t out0, out1, out2, out3; v16u8 src_top; v8u16 add; v4u32 sum; src_top = LD_UB(src - stride); add = __msa_hadd_u_h(src_top, src_top); ...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, int32_t VAR_1) { uint8_t lp_cnt; uint32_t src0, src1, src2 = 0, src3; uint32_t out0, out1, out2, out3; v16u8 src_top; v8u16 add; v4u32 sum; src_top = LD_UB(VAR_0 - VAR_1); add = __msa_hadd_u_h(src_top, src_top); sum = __msa_hadd_u_w(add,...
[ "static void FUNC_0(uint8_t *VAR_0, int32_t VAR_1)\n{", "uint8_t lp_cnt;", "uint32_t src0, src1, src2 = 0, src3;", "uint32_t out0, out1, out2, out3;", "v16u8 src_top;", "v8u16 add;", "v4u32 sum;", "src_top = LD_UB(VAR_0 - VAR_1);", "add = __msa_hadd_u_h(src_top, src_top);", "sum = __msa_hadd_u_w(a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
10,624
static int img_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { VideoDemuxData *s1 = s->priv_data; if (timestamp < 0 || timestamp > s1->img_last - s1->img_first) return -1; s1->img_number = timestamp + s1->img_first; return 0; }
false
FFmpeg
05340be97bc395ca0b544c6d856469894ecbf5eb
static int img_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { VideoDemuxData *s1 = s->priv_data; if (timestamp < 0 || timestamp > s1->img_last - s1->img_first) return -1; s1->img_number = timestamp + s1->img_first; return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3) { VideoDemuxData *s1 = VAR_0->priv_data; if (VAR_2 < 0 || VAR_2 > s1->img_last - s1->img_first) return -1; s1->img_number = VAR_2 + s1->img_first; return 0; }
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3)\n{", "VideoDemuxData *s1 = VAR_0->priv_data;", "if (VAR_2 < 0 || VAR_2 > s1->img_last - s1->img_first)\nreturn -1;", "s1->img_number = VAR_2 + s1->img_first;", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ] ]
10,625
static int read_filter_params(MLPDecodeContext *m, GetBitContext *gbp, unsigned int channel, unsigned int filter) { FilterParams *fp = &m->channel_params[channel].filter_params[filter]; const int max_order = filter ? MAX_IIR_ORDER : MAX_FIR_ORDER; const char fchar = filter...
false
FFmpeg
5d9e4eaa6d991718b24c7ce24318ee91419f593a
static int read_filter_params(MLPDecodeContext *m, GetBitContext *gbp, unsigned int channel, unsigned int filter) { FilterParams *fp = &m->channel_params[channel].filter_params[filter]; const int max_order = filter ? MAX_IIR_ORDER : MAX_FIR_ORDER; const char fchar = filter...
{ "code": [], "line_no": [] }
static int FUNC_0(MLPDecodeContext *VAR_0, GetBitContext *VAR_1, unsigned int VAR_2, unsigned int VAR_3) { FilterParams *fp = &VAR_0->channel_params[VAR_2].filter_params[VAR_3]; const int VAR_4 = VAR_3 ? MAX_IIR_ORDER : MAX_FIR_ORDER; const char VAR_5 = VAR_3 ? 'I' : 'F'; ...
[ "static int FUNC_0(MLPDecodeContext *VAR_0, GetBitContext *VAR_1,\nunsigned int VAR_2, unsigned int VAR_3)\n{", "FilterParams *fp = &VAR_0->channel_params[VAR_2].filter_params[VAR_3];", "const int VAR_4 = VAR_3 ? MAX_IIR_ORDER : MAX_FIR_ORDER;", "const char VAR_5 = VAR_3 ? 'I' : 'F';", "int VAR_6, VAR_7;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31, 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 55 ], [ 57 ], [...
10,626
static int mov_read_sv3d(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; MOVStreamContext *sc; int size; int32_t yaw, pitch, roll; size_t l = 0, t = 0, r = 0, b = 0; size_t padding = 0; uint32_t tag; enum AVSphericalProjection projection; if (c->fc->nb_strea...
false
FFmpeg
ac8c72f8f1f758ae7606db42eac83d04418aec48
static int mov_read_sv3d(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; MOVStreamContext *sc; int size; int32_t yaw, pitch, roll; size_t l = 0, t = 0, r = 0, b = 0; size_t padding = 0; uint32_t tag; enum AVSphericalProjection projection; if (c->fc->nb_strea...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2) { AVStream *st; MOVStreamContext *sc; int VAR_3; int32_t yaw, pitch, roll; size_t l = 0, t = 0, r = 0, b = 0; size_t padding = 0; uint32_t tag; enum AVSphericalProjection VAR_4; if (VAR_0->fc->nb_stre...
[ "static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{", "AVStream *st;", "MOVStreamContext *sc;", "int VAR_3;", "int32_t yaw, pitch, roll;", "size_t l = 0, t = 0, r = 0, b = 0;", "size_t padding = 0;", "uint32_t tag;", "enum AVSphericalProjection VAR_4;", "if (VAR_0->fc->nb_s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49 ], [ 53 ...
10,627
struct tm *brktimegm(time_t secs, struct tm *tm) { int days, y, ny, m; int md[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; days = secs / 86400; secs %= 86400; tm->tm_hour = secs / 3600; tm->tm_min = (secs % 3600) / 60; tm->tm_sec = secs % 60; /* oh well, may be s...
false
FFmpeg
392f227393f479ab9a461aba68ae4c6b6da685a4
struct tm *brktimegm(time_t secs, struct tm *tm) { int days, y, ny, m; int md[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; days = secs / 86400; secs %= 86400; tm->tm_hour = secs / 3600; tm->tm_min = (secs % 3600) / 60; tm->tm_sec = secs % 60; y = 1970; ...
{ "code": [], "line_no": [] }
struct VAR_1 *FUNC_0(time_t VAR_0, struct VAR_1 *VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5; int VAR_6[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; VAR_2 = VAR_0 / 86400; VAR_0 %= 86400; VAR_1->tm_hour = VAR_0 / 3600; VAR_1->tm_min = (VAR_0 % 3600) / 60; VAR_1->tm_sec = VA...
[ "struct VAR_1 *FUNC_0(time_t VAR_0, struct VAR_1 *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5;", "int VAR_6[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };", "VAR_2 = VAR_0 / 86400;", "VAR_0 %= 86400;", "VAR_1->tm_hour = VAR_0 / 3600;", "VAR_1->tm_min = (VAR_0 % 3600) / 60;", "VAR_1->tm_sec = ...
[ 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 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49...
10,628
static int dnxhd_decode_macroblock(const DNXHDContext *ctx, RowContext *row, AVFrame *frame, int x, int y) { int shift1 = ctx->bit_depth >= 10; int dct_linesize_luma = frame->linesize[0]; int dct_linesize_chroma = frame->linesize[1]; uint8_t *dest_y, *dest_u, *...
false
FFmpeg
71199ee9077da7d92a8728e2a694fb1ab31488a7
static int dnxhd_decode_macroblock(const DNXHDContext *ctx, RowContext *row, AVFrame *frame, int x, int y) { int shift1 = ctx->bit_depth >= 10; int dct_linesize_luma = frame->linesize[0]; int dct_linesize_chroma = frame->linesize[1]; uint8_t *dest_y, *dest_u, *...
{ "code": [], "line_no": [] }
static int FUNC_0(const DNXHDContext *VAR_0, RowContext *VAR_1, AVFrame *VAR_2, int VAR_3, int VAR_4) { int VAR_5 = VAR_0->bit_depth >= 10; int VAR_6 = VAR_2->linesize[0]; int VAR_7 = VAR_2->linesize[1]; uint8_t *dest_y, *dest_u, *dest_v; int VAR_8, VAR_9;...
[ "static int FUNC_0(const DNXHDContext *VAR_0, RowContext *VAR_1,\nAVFrame *VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5 = VAR_0->bit_depth >= 10;", "int VAR_6 = VAR_2->linesize[0];", "int VAR_7 = VAR_2->linesize[1];", "uint8_t *dest_y, *dest_u, *dest_v;", "int VAR_8, VAR_9;", "int VAR_10, VAR_11, VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
10,629
static int get_audio_flags(AVCodecContext *enc){ int flags = (enc->bits_per_coded_sample == 16) ? FLV_SAMPLESSIZE_16BIT : FLV_SAMPLESSIZE_8BIT; if (enc->codec_id == CODEC_ID_AAC) // specs force these parameters return FLV_CODECID_AAC | FLV_SAMPLERATE_44100HZ | FLV_SAMPLESSIZE_16BIT | FLV_STEREO; ...
false
FFmpeg
4ee247a2bdf2fbe81026a428d4affc46c81f28db
static int get_audio_flags(AVCodecContext *enc){ int flags = (enc->bits_per_coded_sample == 16) ? FLV_SAMPLESSIZE_16BIT : FLV_SAMPLESSIZE_8BIT; if (enc->codec_id == CODEC_ID_AAC) return FLV_CODECID_AAC | FLV_SAMPLERATE_44100HZ | FLV_SAMPLESSIZE_16BIT | FLV_STEREO; else if (enc->codec_id == CO...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0){ int VAR_1 = (VAR_0->bits_per_coded_sample == 16) ? FLV_SAMPLESSIZE_16BIT : FLV_SAMPLESSIZE_8BIT; if (VAR_0->codec_id == CODEC_ID_AAC) return FLV_CODECID_AAC | FLV_SAMPLERATE_44100HZ | FLV_SAMPLESSIZE_16BIT | FLV_STEREO; else if (VAR_0->codec_id == COD...
[ "static int FUNC_0(AVCodecContext *VAR_0){", "int VAR_1 = (VAR_0->bits_per_coded_sample == 16) ? FLV_SAMPLESSIZE_16BIT : FLV_SAMPLESSIZE_8BIT;", "if (VAR_0->codec_id == CODEC_ID_AAC)\nreturn FLV_CODECID_AAC | FLV_SAMPLERATE_44100HZ | FLV_SAMPLESSIZE_16BIT | FLV_STEREO;", "else if (VAR_0->codec_id == CODEC_ID_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
10,630
static int init_output_stream_encode(OutputStream *ost) { InputStream *ist = get_input_stream(ost); AVCodecContext *enc_ctx = ost->enc_ctx; AVCodecContext *dec_ctx = NULL; AVFormatContext *oc = output_files[ost->file_index]->ctx; int j, ret; set_encoder_id(output_files[ost->file_index],...
false
FFmpeg
dfc6e30cd4b9d1817b78579c11fc6881e40b9733
static int init_output_stream_encode(OutputStream *ost) { InputStream *ist = get_input_stream(ost); AVCodecContext *enc_ctx = ost->enc_ctx; AVCodecContext *dec_ctx = NULL; AVFormatContext *oc = output_files[ost->file_index]->ctx; int j, ret; set_encoder_id(output_files[ost->file_index],...
{ "code": [], "line_no": [] }
static int FUNC_0(OutputStream *VAR_0) { InputStream *ist = get_input_stream(VAR_0); AVCodecContext *enc_ctx = VAR_0->enc_ctx; AVCodecContext *dec_ctx = NULL; AVFormatContext *oc = output_files[VAR_0->file_index]->ctx; int VAR_1, VAR_2; set_encoder_id(output_files[VAR_0->file_index], VA...
[ "static int FUNC_0(OutputStream *VAR_0)\n{", "InputStream *ist = get_input_stream(VAR_0);", "AVCodecContext *enc_ctx = VAR_0->enc_ctx;", "AVCodecContext *dec_ctx = NULL;", "AVFormatContext *oc = output_files[VAR_0->file_index]->ctx;", "int VAR_1, VAR_2;", "set_encoder_id(output_files[VAR_0->file_index],...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47, 49, 51 ], [ 53 ...
10,631
int avio_put_str16le(AVIOContext *s, const char *str) { const uint8_t *q = str; int ret = 0; while (*q) { uint32_t ch; uint16_t tmp; GET_UTF8(ch, *q++, break;) PUT_UTF16(ch, tmp, avio_wl16(s, tmp); ret += 2;) } avio_wl16(s, 0); ret += 2; return...
false
FFmpeg
b52ae27edf392e5a0df95054d394d850b8e57d35
int avio_put_str16le(AVIOContext *s, const char *str) { const uint8_t *q = str; int ret = 0; while (*q) { uint32_t ch; uint16_t tmp; GET_UTF8(ch, *q++, break;) PUT_UTF16(ch, tmp, avio_wl16(s, tmp); ret += 2;) } avio_wl16(s, 0); ret += 2; return...
{ "code": [], "line_no": [] }
int FUNC_0(AVIOContext *VAR_0, const char *VAR_1) { const uint8_t *VAR_2 = VAR_1; int VAR_3 = 0; while (*VAR_2) { uint32_t ch; uint16_t tmp; GET_UTF8(ch, *VAR_2++, break;) PUT_UTF16(ch, tmp, avio_wl16(VAR_0, tmp); VAR_3 += 2;) } avio_wl16(VAR_0, 0); ...
[ "int FUNC_0(AVIOContext *VAR_0, const char *VAR_1)\n{", "const uint8_t *VAR_2 = VAR_1;", "int VAR_3 = 0;", "while (*VAR_2) {", "uint32_t ch;", "uint16_t tmp;", "GET_UTF8(ch, *VAR_2++, break;)", "PUT_UTF16(ch, tmp, avio_wl16(VAR_0, tmp); VAR_3 += 2;)", "}", "avio_wl16(VAR_0, 0);", "VAR_3 += 2;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
10,632
void init_get_bits(GetBitContext *s, UINT8 *buffer, int buffer_size) { s->buffer= buffer; s->size= buffer_size; s->buffer_end= buffer + buffer_size; #ifdef ALT_BITSTREAM_READER s->index=0; #elif defined LIBMPEG2_BITSTREAM_READER s->buffer_ptr = buffer; s->bit_count =...
false
FFmpeg
68f593b48433842f3407586679fe07f3e5199ab9
void init_get_bits(GetBitContext *s, UINT8 *buffer, int buffer_size) { s->buffer= buffer; s->size= buffer_size; s->buffer_end= buffer + buffer_size; #ifdef ALT_BITSTREAM_READER s->index=0; #elif defined LIBMPEG2_BITSTREAM_READER s->buffer_ptr = buffer; s->bit_count =...
{ "code": [], "line_no": [] }
void FUNC_0(GetBitContext *VAR_0, UINT8 *VAR_1, int VAR_2) { VAR_0->VAR_1= VAR_1; VAR_0->size= VAR_2; VAR_0->buffer_end= VAR_1 + VAR_2; #ifdef ALT_BITSTREAM_READER VAR_0->index=0; #elif defined LIBMPEG2_BITSTREAM_READER VAR_0->buffer_ptr = VAR_1; VAR_0->bit_count = 1...
[ "void FUNC_0(GetBitContext *VAR_0,\nUINT8 *VAR_1, int VAR_2)\n{", "VAR_0->VAR_1= VAR_1;", "VAR_0->size= VAR_2;", "VAR_0->buffer_end= VAR_1 + VAR_2;", "#ifdef ALT_BITSTREAM_READER\nVAR_0->index=0;", "#elif defined LIBMPEG2_BITSTREAM_READER\nVAR_0->buffer_ptr = VAR_1;", "VAR_0->bit_count = 16;", "VAR_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, 45, 47 ], [ 49, 51 ], [...
10,633
static int sdp_parse_rtpmap(AVCodecContext *codec, RTSPStream *rtsp_st, int payload_type, const char *p) { char buf[256]; int i; AVCodec *c; const char *c_name; /* Loop into AVRtpDynamicPayloadTypes[] and AVRtpPayloadTypes[] and see if we can handle this kind of payload */ get_w...
false
FFmpeg
c89658008705d949c319df3fa6f400c481ad73e1
static int sdp_parse_rtpmap(AVCodecContext *codec, RTSPStream *rtsp_st, int payload_type, const char *p) { char buf[256]; int i; AVCodec *c; const char *c_name; get_word_sep(buf, sizeof(buf), "/", &p); if (payload_type >= RTP_PT_PRIVATE) { RTPDynamicProtocolHandler *han...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, RTSPStream *VAR_1, int VAR_2, const char *VAR_3) { char VAR_4[256]; int VAR_5; AVCodec *c; const char *VAR_6; get_word_sep(VAR_4, sizeof(VAR_4), "/", &VAR_3); if (VAR_2 >= RTP_PT_PRIVATE) { RTPDynamicProtocolHandler *handler= RTP...
[ "static int FUNC_0(AVCodecContext *VAR_0, RTSPStream *VAR_1, int VAR_2, const char *VAR_3)\n{", "char VAR_4[256];", "int VAR_5;", "AVCodec *c;", "const char *VAR_6;", "get_word_sep(VAR_4, sizeof(VAR_4), \"/\", &VAR_3);", "if (VAR_2 >= RTP_PT_PRIVATE) {", "RTPDynamicProtocolHandler *handler= RTPFirstDy...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
10,634
static void virtio_net_device_realize(DeviceState *dev, Error **errp) { VirtIODevice *vdev = VIRTIO_DEVICE(dev); VirtIONet *n = VIRTIO_NET(dev); NetClientState *nc; int i; virtio_init(vdev, "virtio-net", VIRTIO_ID_NET, n->config_size); n->max_queues = MAX(n->nic_conf.peers.queues, 1);...
true
qemu
7e0e736ecdfeac6d3517513d3a702304e4f6cf59
static void virtio_net_device_realize(DeviceState *dev, Error **errp) { VirtIODevice *vdev = VIRTIO_DEVICE(dev); VirtIONet *n = VIRTIO_NET(dev); NetClientState *nc; int i; virtio_init(vdev, "virtio-net", VIRTIO_ID_NET, n->config_size); n->max_queues = MAX(n->nic_conf.peers.queues, 1);...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0); VirtIONet *n = VIRTIO_NET(VAR_0); NetClientState *nc; int VAR_2; virtio_init(vdev, "virtio-net", VIRTIO_ID_NET, n->config_size); n->max_queues = MAX(n->nic_conf.peers.queues, 1); ...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);", "VirtIONet *n = VIRTIO_NET(VAR_0);", "NetClientState *nc;", "int VAR_2;", "virtio_init(vdev, \"virtio-net\", VIRTIO_ID_NET, n->config_size);", "n->max_queues = MAX(n->nic_conf.peers.queues, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 28 ], [ 30 ], [ 32 ], [ 34 ], [ 36 ], [ 40, 42 ], [ 44, 46, 48 ], [ 50 ], [ 55 ], [ 57, 59 ], [ 61,...
10,635
static int avi_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { AVIContext *avi = s->priv_data; AVStream *st; int i, index; int64_t pos, pos_min; AVIStream *ast; /* Does not matter which stream is requested dv in avi has the ...
true
FFmpeg
14bac7e00d72eac687612d9b125e585011a56d4f
static int avi_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { AVIContext *avi = s->priv_data; AVStream *st; int i, index; int64_t pos, pos_min; AVIStream *ast; if (avi->dv_demux) stream_index = 0; if (!...
{ "code": [ " av_assert0(fabs(av_q2d(st2->time_base) - ast2->scale / (double)ast2->rate) < av_q2d(st2->time_base) * 0.00000001);" ], "line_no": [ 153 ] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3) { AVIContext *avi = VAR_0->priv_data; AVStream *st; int VAR_4, VAR_5; int64_t pos, pos_min; AVIStream *ast; if (avi->dv_demux) VAR_1 = 0; if (!avi->index_lo...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nint64_t VAR_2, int VAR_3)\n{", "AVIContext *avi = VAR_0->priv_data;", "AVStream *st;", "int VAR_4, VAR_5;", "int64_t pos, pos_min;", "AVIStream *ast;", "if (avi->dv_demux)\nVAR_1 = 0;", "if (!avi->index_loaded) {", "avi_load_index(VAR_0);", "a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 25, 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49, 51, 53 ], [ 55 ], [ 57, 59, 61,...
10,636
void ff_aac_coder_init_mips(AACEncContext *c) { #if HAVE_INLINE_ASM AACCoefficientsEncoder *e = c->coder; int option = c->options.aac_coder; if (option == 2) { e->quantize_and_encode_band = quantize_and_encode_band_mips; e->encode_window_bands_info = codebook_trellis_rate; #if HAVE_...
true
FFmpeg
97437bd17a8c5d4135b2f3b1b299bd7bb72ce02c
void ff_aac_coder_init_mips(AACEncContext *c) { #if HAVE_INLINE_ASM AACCoefficientsEncoder *e = c->coder; int option = c->options.aac_coder; if (option == 2) { e->quantize_and_encode_band = quantize_and_encode_band_mips; e->encode_window_bands_info = codebook_trellis_rate; #if HAVE_...
{ "code": [ "#if HAVE_INLINE_ASM" ], "line_no": [ 3 ] }
void FUNC_0(AACEncContext *VAR_0) { #if HAVE_INLINE_ASM AACCoefficientsEncoder *e = VAR_0->coder; int option = VAR_0->options.aac_coder; if (option == 2) { e->quantize_and_encode_band = quantize_and_encode_band_mips; e->encode_window_bands_info = codebook_trellis_rate; #if HAVE_MIPS...
[ "void FUNC_0(AACEncContext *VAR_0) {", "#if HAVE_INLINE_ASM\nAACCoefficientsEncoder *e = VAR_0->coder;", "int option = VAR_0->options.aac_coder;", "if (option == 2) {", "e->quantize_and_encode_band = quantize_and_encode_band_mips;", "e->encode_window_bands_info = codebook_trellis_rate;", "#if HAVE_MIPSF...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21, 23 ], [ 25, 27 ], [ 29, 31, 33 ] ]
10,637
static void gen_wsr_ps(DisasContext *dc, uint32_t sr, TCGv_i32 v) { uint32_t mask = PS_WOE | PS_CALLINC | PS_OWB | PS_UM | PS_EXCM | PS_INTLEVEL; if (option_enabled(dc, XTENSA_OPTION_MMU)) { mask |= PS_RING; } tcg_gen_andi_i32(cpu_SR[sr], v, mask); /* This can change mmu in...
true
qemu
797d780b1375b1af1d7713685589bfdec9908dc3
static void gen_wsr_ps(DisasContext *dc, uint32_t sr, TCGv_i32 v) { uint32_t mask = PS_WOE | PS_CALLINC | PS_OWB | PS_UM | PS_EXCM | PS_INTLEVEL; if (option_enabled(dc, XTENSA_OPTION_MMU)) { mask |= PS_RING; } tcg_gen_andi_i32(cpu_SR[sr], v, mask); gen_jumpi(dc, dc->n...
{ "code": [ " gen_jumpi(dc, dc->next_pc, -1);" ], "line_no": [ 21 ] }
static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, TCGv_i32 VAR_2) { uint32_t mask = PS_WOE | PS_CALLINC | PS_OWB | PS_UM | PS_EXCM | PS_INTLEVEL; if (option_enabled(VAR_0, XTENSA_OPTION_MMU)) { mask |= PS_RING; } tcg_gen_andi_i32(cpu_SR[VAR_1], VAR_2, mask); gen...
[ "static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, TCGv_i32 VAR_2)\n{", "uint32_t mask = PS_WOE | PS_CALLINC | PS_OWB |\nPS_UM | PS_EXCM | PS_INTLEVEL;", "if (option_enabled(VAR_0, XTENSA_OPTION_MMU)) {", "mask |= PS_RING;", "}", "tcg_gen_andi_i32(cpu_SR[VAR_1], VAR_2, mask);", "gen_jumpi(VAR_0, V...
[ 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
10,638
uint64_t HELPER(neon_abdl_s32)(uint32_t a, uint32_t b) { uint64_t tmp; uint64_t result; DO_ABD(result, a, b, int16_t); DO_ABD(tmp, a >> 16, b >> 16, int16_t); return result | (tmp << 32); }
true
qemu
4d9ad7f793605abd9806fc932b3e04e028894565
uint64_t HELPER(neon_abdl_s32)(uint32_t a, uint32_t b) { uint64_t tmp; uint64_t result; DO_ABD(result, a, b, int16_t); DO_ABD(tmp, a >> 16, b >> 16, int16_t); return result | (tmp << 32); }
{ "code": [ " DO_ABD(result, a, b, int16_t);", " DO_ABD(tmp, a >> 16, b >> 16, int16_t);" ], "line_no": [ 9, 11 ] }
uint64_t FUNC_0(neon_abdl_s32)(uint32_t a, uint32_t b) { uint64_t tmp; uint64_t result; DO_ABD(result, a, b, int16_t); DO_ABD(tmp, a >> 16, b >> 16, int16_t); return result | (tmp << 32); }
[ "uint64_t FUNC_0(neon_abdl_s32)(uint32_t a, uint32_t b)\n{", "uint64_t tmp;", "uint64_t result;", "DO_ABD(result, a, b, int16_t);", "DO_ABD(tmp, a >> 16, b >> 16, int16_t);", "return result | (tmp << 32);", "}" ]
[ 0, 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
10,639
static int get_cox(J2kDecoderContext *s, J2kCodingStyle *c) { if (s->buf_end - s->buf < 5) return AVERROR(EINVAL); c->nreslevels = bytestream_get_byte(&s->buf) + 1; // num of resolution levels - 1 c->log2_cblk_width = bytestream_get_byte(&s->buf) + 2; // cblk width c->log2_cblk_heig...
true
FFmpeg
ddfa3751c092feaf1e080f66587024689dfe603c
static int get_cox(J2kDecoderContext *s, J2kCodingStyle *c) { if (s->buf_end - s->buf < 5) return AVERROR(EINVAL); c->nreslevels = bytestream_get_byte(&s->buf) + 1; c->log2_cblk_width = bytestream_get_byte(&s->buf) + 2; c->log2_cblk_height = bytestream_get_byte(&s->buf) + 2; ...
{ "code": [ " return AVERROR(EINVAL);", " if (s->buf_end - s->buf < 5)", " c->cblk_style = bytestream_get_byte(&s->buf);", " bytestream_get_byte(&s->buf);", " if (s->buf_end - s->buf < 5)" ], "line_no": [ 7, 5, 17, 33, 5 ] }
static int FUNC_0(J2kDecoderContext *VAR_0, J2kCodingStyle *VAR_1) { if (VAR_0->buf_end - VAR_0->buf < 5) return AVERROR(EINVAL); VAR_1->nreslevels = bytestream_get_byte(&VAR_0->buf) + 1; VAR_1->log2_cblk_width = bytestream_get_byte(&VAR_0->buf) + 2; VAR_1->log2_cblk_height = byte...
[ "static int FUNC_0(J2kDecoderContext *VAR_0, J2kCodingStyle *VAR_1)\n{", "if (VAR_0->buf_end - VAR_0->buf < 5)\nreturn AVERROR(EINVAL);", "VAR_1->nreslevels = bytestream_get_byte(&VAR_0->buf) + 1;", "VAR_1->log2_cblk_width = bytestream_get_byte(&VAR_0->buf) + 2;", "VAR_1->log2_cblk_height = bytestream_get_b...
[ 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
10,641
QFloat *qobject_to_qfloat(const QObject *obj) { if (qobject_type(obj) != QTYPE_QFLOAT) return NULL; return container_of(obj, QFloat, base); }
true
qemu
fcf73f66a67f5e58c18216f8c8651e38cf4d90af
QFloat *qobject_to_qfloat(const QObject *obj) { if (qobject_type(obj) != QTYPE_QFLOAT) return NULL; return container_of(obj, QFloat, base); }
{ "code": [ " if (qobject_type(obj) != QTYPE_QFLOAT)" ], "line_no": [ 5 ] }
QFloat *FUNC_0(const QObject *obj) { if (qobject_type(obj) != QTYPE_QFLOAT) return NULL; return container_of(obj, QFloat, base); }
[ "QFloat *FUNC_0(const QObject *obj)\n{", "if (qobject_type(obj) != QTYPE_QFLOAT)\nreturn NULL;", "return container_of(obj, QFloat, base);", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13 ] ]
10,642
void HELPER(divu)(CPUM68KState *env, uint32_t word) { uint32_t num; uint32_t den; uint32_t quot; uint32_t rem; num = env->div1; den = env->div2; /* ??? This needs to make sure the throwing location is accurate. */ if (den == 0) { raise_exception(env, EXCP_DIV0); ...
true
qemu
0ccb9c1d8128a020720d5c6abf99a470742a1b94
void HELPER(divu)(CPUM68KState *env, uint32_t word) { uint32_t num; uint32_t den; uint32_t quot; uint32_t rem; num = env->div1; den = env->div2; if (den == 0) { raise_exception(env, EXCP_DIV0); } quot = num / den; rem = num % den; env->cc_v = (w...
{ "code": [ "void HELPER(divu)(CPUM68KState *env, uint32_t word)", " uint32_t num;", " uint32_t den;", " uint32_t quot;", " uint32_t rem;", " num = env->div1;", " den = env->div2;", " raise_exception(env, EXCP_DIV0);", " env->cc_v = (word && quot > 0xfff...
void FUNC_0(divu)(CPUM68KState *env, uint32_t word) { uint32_t num; uint32_t den; uint32_t quot; uint32_t rem; num = env->div1; den = env->div2; if (den == 0) { raise_exception(env, EXCP_DIV0); } quot = num / den; rem = num % den; env->cc_v = (w...
[ "void FUNC_0(divu)(CPUM68KState *env, uint32_t word)\n{", "uint32_t num;", "uint32_t den;", "uint32_t quot;", "uint32_t rem;", "num = env->div1;", "den = env->div2;", "if (den == 0) {", "raise_exception(env, EXCP_DIV0);", "}", "quot = num / den;", "rem = num % den;", "env->cc_v = (word && qu...
[ 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ] ]
10,643
void cpu_dump_state(CPUState *env, FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...), int flags) { int i, x; cpu_fprintf(f, "pc: " TARGET_FMT_lx " npc: " TARGET_FMT_lx "\n", env->pc, env->npc); cpu_fprintf(f, "General Registers:\n");...
true
qemu
a37ee56cb7f2094a65fff14ed5d4ff325652b802
void cpu_dump_state(CPUState *env, FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...), int flags) { int i, x; cpu_fprintf(f, "pc: " TARGET_FMT_lx " npc: " TARGET_FMT_lx "\n", env->pc, env->npc); cpu_fprintf(f, "General Registers:\n");...
{ "code": [ " cpu_fprintf(f, \" %016lf\", env->fpr[i]);" ], "line_no": [ 63 ] }
void FUNC_0(CPUState *VAR_0, FILE *VAR_3, int (*VAR_2)(FILE *VAR_3, const char *VAR_3, ...), int VAR_4) { int VAR_5, VAR_6; VAR_2(VAR_3, "pc: " TARGET_FMT_lx " npc: " TARGET_FMT_lx "\n", VAR_0->pc, VAR_0->npc); VAR_2(VAR_3, "General Registers...
[ "void FUNC_0(CPUState *VAR_0, FILE *VAR_3,\nint (*VAR_2)(FILE *VAR_3, const char *VAR_3, ...),\nint VAR_4)\n{", "int VAR_5, VAR_6;", "VAR_2(VAR_3, \"pc: \" TARGET_FMT_lx \" npc: \" TARGET_FMT_lx \"\\n\", VAR_0->pc,\nVAR_0->npc);", "VAR_2(VAR_3, \"General Registers:\\n\");", "for (VAR_5 = 0; VAR_5 < 4; VAR_...
[ 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 45, 47, 49 ], [...
10,644
static uint16_t nvme_set_feature(NvmeCtrl *n, NvmeCmd *cmd, NvmeRequest *req) { uint32_t dw10 = le32_to_cpu(cmd->cdw10); uint32_t dw11 = le32_to_cpu(cmd->cdw11); switch (dw10) { case NVME_VOLATILE_WRITE_CACHE: blk_set_enable_write_cache(n->conf.blk, dw11 & 1); break; case N...
true
qemu
cdd346371e09709be8e46398bb097dc690a746f2
static uint16_t nvme_set_feature(NvmeCtrl *n, NvmeCmd *cmd, NvmeRequest *req) { uint32_t dw10 = le32_to_cpu(cmd->cdw10); uint32_t dw11 = le32_to_cpu(cmd->cdw11); switch (dw10) { case NVME_VOLATILE_WRITE_CACHE: blk_set_enable_write_cache(n->conf.blk, dw11 & 1); break; case N...
{ "code": [ " cpu_to_le32((n->num_queues - 1) | ((n->num_queues - 1) << 16));" ], "line_no": [ 23 ] }
static uint16_t FUNC_0(NvmeCtrl *n, NvmeCmd *cmd, NvmeRequest *req) { uint32_t dw10 = le32_to_cpu(cmd->cdw10); uint32_t dw11 = le32_to_cpu(cmd->cdw11); switch (dw10) { case NVME_VOLATILE_WRITE_CACHE: blk_set_enable_write_cache(n->conf.blk, dw11 & 1); break; case NVME_NUMBER...
[ "static uint16_t FUNC_0(NvmeCtrl *n, NvmeCmd *cmd, NvmeRequest *req)\n{", "uint32_t dw10 = le32_to_cpu(cmd->cdw10);", "uint32_t dw11 = le32_to_cpu(cmd->cdw11);", "switch (dw10) {", "case NVME_VOLATILE_WRITE_CACHE:\nblk_set_enable_write_cache(n->conf.blk, dw11 & 1);", "break;", "case NVME_NUMBER_OF_QUEUE...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19, 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ] ]
10,645
static int flic_decode_frame_8BPP(AVCodecContext *avctx, void *data, int *got_frame, const uint8_t *buf, int buf_size) { FlicDecodeContext *s = avctx->priv_data; GetByteContext g2; int pixel_ptr; int palette_ptr; unsigned ...
true
FFmpeg
90e8317b3b33dcb54ae01e419d85cbbfbd874963
static int flic_decode_frame_8BPP(AVCodecContext *avctx, void *data, int *got_frame, const uint8_t *buf, int buf_size) { FlicDecodeContext *s = avctx->priv_data; GetByteContext g2; int pixel_ptr; int palette_ptr; unsigned ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, const uint8_t *VAR_3, int VAR_4) { FlicDecodeContext *s = VAR_0->priv_data; GetByteContext g2; int VAR_5; int VAR_6; unsigned char VAR_7; unsigned char...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{", "FlicDecodeContext *s = VAR_0->priv_data;", "GetByteContext g2;", "int VAR_5;", "int VAR_6;", "unsigned char VAR_7;", "unsigned char VAR_8;", "unsigned int VAR_9;", "int VAR_10;", "unsigned i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ...
10,646
static int pci_read_devaddr(Monitor *mon, const char *addr, int *busp, unsigned *slotp) { int dom; /* strip legacy tag */ if (!strncmp(addr, "pci_addr=", 9)) { addr += 9; } if (pci_parse_devaddr(addr, &dom, busp, slotp, NULL)) { monitor_printf(m...
true
qemu
f51074cdc6e750daa3b6df727d83449a7e42b391
static int pci_read_devaddr(Monitor *mon, const char *addr, int *busp, unsigned *slotp) { int dom; if (!strncmp(addr, "pci_addr=", 9)) { addr += 9; } if (pci_parse_devaddr(addr, &dom, busp, slotp, NULL)) { monitor_printf(mon, "Invalid pci addre...
{ "code": [ "static int pci_read_devaddr(Monitor *mon, const char *addr,", " int *busp, unsigned *slotp)", " int dom;", " if (!strncmp(addr, \"pci_addr=\", 9)) {", " addr += 9;", " if (pci_parse_devaddr(addr, &dom, busp, slotp, NULL)) {", " ...
static int FUNC_0(Monitor *VAR_0, const char *VAR_1, int *VAR_2, unsigned *VAR_3) { int VAR_4; if (!strncmp(VAR_1, "pci_addr=", 9)) { VAR_1 += 9; } if (pci_parse_devaddr(VAR_1, &VAR_4, VAR_2, VAR_3, NULL)) { monitor_printf(VAR_0, "Invalid pci a...
[ "static int FUNC_0(Monitor *VAR_0, const char *VAR_1,\nint *VAR_2, unsigned *VAR_3)\n{", "int VAR_4;", "if (!strncmp(VAR_1, \"pci_addr=\", 9)) {", "VAR_1 += 9;", "}", "if (pci_parse_devaddr(VAR_1, &VAR_4, VAR_2, VAR_3, NULL)) {", "monitor_printf(VAR_0, \"Invalid pci address\\n\");", "return -1;", "}...
[ 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
10,647
static void write_streaminfo(FlacEncodeContext *s, uint8_t *header) { PutBitContext pb; memset(header, 0, FLAC_STREAMINFO_SIZE); init_put_bits(&pb, header, FLAC_STREAMINFO_SIZE); /* streaminfo metadata block */ put_bits(&pb, 16, s->avctx->frame_size); put_bits(&pb, 16, s->avctx->frame...
false
FFmpeg
a9f8587e152c16e943c645ff295e015384ccd76d
static void write_streaminfo(FlacEncodeContext *s, uint8_t *header) { PutBitContext pb; memset(header, 0, FLAC_STREAMINFO_SIZE); init_put_bits(&pb, header, FLAC_STREAMINFO_SIZE); put_bits(&pb, 16, s->avctx->frame_size); put_bits(&pb, 16, s->avctx->frame_size); put_bits(&pb, 24, ...
{ "code": [], "line_no": [] }
static void FUNC_0(FlacEncodeContext *VAR_0, uint8_t *VAR_1) { PutBitContext pb; memset(VAR_1, 0, FLAC_STREAMINFO_SIZE); init_put_bits(&pb, VAR_1, FLAC_STREAMINFO_SIZE); put_bits(&pb, 16, VAR_0->avctx->frame_size); put_bits(&pb, 16, VAR_0->avctx->frame_size); put_bits(&pb, 24, 0...
[ "static void FUNC_0(FlacEncodeContext *VAR_0, uint8_t *VAR_1)\n{", "PutBitContext pb;", "memset(VAR_1, 0, FLAC_STREAMINFO_SIZE);", "init_put_bits(&pb, VAR_1, FLAC_STREAMINFO_SIZE);", "put_bits(&pb, 16, VAR_0->avctx->frame_size);", "put_bits(&pb, 16, VAR_0->avctx->frame_size);", "put_bits(&pb, 24, 0);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ] ]
10,649
static void slavio_check_interrupts(SLAVIO_INTCTLState *s, int set_irqs) { uint32_t pending = s->intregm_pending, pil_pending; unsigned int i, j; pending &= ~s->intregm_disabled; trace_slavio_check_interrupts(pending, s->intregm_disabled); for (i = 0; i < MAX_CPUS; i++) { pil_pend...
true
qemu
c84a88d8cb298b6757ad01a12a8bbba66cb6eaa2
static void slavio_check_interrupts(SLAVIO_INTCTLState *s, int set_irqs) { uint32_t pending = s->intregm_pending, pil_pending; unsigned int i, j; pending &= ~s->intregm_disabled; trace_slavio_check_interrupts(pending, s->intregm_disabled); for (i = 0; i < MAX_CPUS; i++) { pil_pend...
{ "code": [ " for (j = MAX_PILS; j > 0; j--) {" ], "line_no": [ 87 ] }
static void FUNC_0(SLAVIO_INTCTLState *VAR_0, int VAR_1) { uint32_t pending = VAR_0->intregm_pending, pil_pending; unsigned int VAR_2, VAR_3; pending &= ~VAR_0->intregm_disabled; trace_slavio_check_interrupts(pending, VAR_0->intregm_disabled); for (VAR_2 = 0; VAR_2 < MAX_CPUS; VAR_2++) { ...
[ "static void FUNC_0(SLAVIO_INTCTLState *VAR_0, int VAR_1)\n{", "uint32_t pending = VAR_0->intregm_pending, pil_pending;", "unsigned int VAR_2, VAR_3;", "pending &= ~VAR_0->intregm_disabled;", "trace_slavio_check_interrupts(pending, VAR_0->intregm_disabled);", "for (VAR_2 = 0; VAR_2 < MAX_CPUS; VAR_2++) {"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55...
10,650
static struct ioreq *ioreq_start(struct XenBlkDev *blkdev) { struct ioreq *ioreq = NULL; if (QLIST_EMPTY(&blkdev->freelist)) { if (blkdev->requests_total >= max_requests) { goto out; } /* allocate new struct */ ioreq = g_malloc0(sizeof(*ioreq)); ior...
true
qemu
282c6a2f292705f823554447ca0b7731b6f81a97
static struct ioreq *ioreq_start(struct XenBlkDev *blkdev) { struct ioreq *ioreq = NULL; if (QLIST_EMPTY(&blkdev->freelist)) { if (blkdev->requests_total >= max_requests) { goto out; } ioreq = g_malloc0(sizeof(*ioreq)); ioreq->blkdev = blkdev; ...
{ "code": [ " qemu_iovec_reset(&ioreq->v);" ], "line_no": [ 35 ] }
static struct VAR_1 *FUNC_0(struct XenBlkDev *VAR_0) { struct VAR_1 *VAR_1 = NULL; if (QLIST_EMPTY(&VAR_0->freelist)) { if (VAR_0->requests_total >= max_requests) { goto out; } VAR_1 = g_malloc0(sizeof(*VAR_1)); VAR_1->VAR_0 = VAR_0; VAR_0...
[ "static struct VAR_1 *FUNC_0(struct XenBlkDev *VAR_0)\n{", "struct VAR_1 *VAR_1 = NULL;", "if (QLIST_EMPTY(&VAR_0->freelist)) {", "if (VAR_0->requests_total >= max_requests) {", "goto out;", "}", "VAR_1 = g_malloc0(sizeof(*VAR_1));", "VAR_1->VAR_0 = VAR_0;", "VAR_0->requests_total++;", "qemu_iovec...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ] ]
10,651
static void dequantize_slice_buffered(SnowContext *s, slice_buffer * sb, SubBand *b, IDWTELEM *src, int stride, int start_y, int end_y){ const int w= b->width; const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); const int qmul= ff_qexp[qlog&(QROOT-1)]<<(qlog>>QSHIFT); const int qadd= (s->qbias*...
true
FFmpeg
14b6adfd4627421223894c6909476d229cb6d07d
static void dequantize_slice_buffered(SnowContext *s, slice_buffer * sb, SubBand *b, IDWTELEM *src, int stride, int start_y, int end_y){ const int w= b->width; const int qlog= av_clip(s->qlog + b->qlog, 0, QROOT*16); const int qmul= ff_qexp[qlog&(QROOT-1)]<<(qlog>>QSHIFT); const int qadd= (s->qbias*...
{ "code": [ " line[x]= (( i*qmul + qadd)>>(QEXPSHIFT));" ], "line_no": [ 35 ] }
static void FUNC_0(SnowContext *VAR_0, slice_buffer * VAR_1, SubBand *VAR_2, IDWTELEM *VAR_3, int VAR_4, int VAR_5, int VAR_6){ const int VAR_7= VAR_2->width; const int VAR_8= av_clip(VAR_0->VAR_8 + VAR_2->VAR_8, 0, QROOT*16); const int VAR_9= ff_qexp[VAR_8&(QROOT-1)]<<(VAR_8>>QSHIFT); const int VAR...
[ "static void FUNC_0(SnowContext *VAR_0, slice_buffer * VAR_1, SubBand *VAR_2, IDWTELEM *VAR_3, int VAR_4, int VAR_5, int VAR_6){", "const int VAR_7= VAR_2->width;", "const int VAR_8= av_clip(VAR_0->VAR_8 + VAR_2->VAR_8, 0, QROOT*16);", "const int VAR_9= ff_qexp[VAR_8&(QROOT-1)]<<(VAR_8>>QSHIFT);", "const in...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
10,652
static int kvm_irqchip_create(MachineState *machine, KVMState *s) { int ret; if (!machine_kernel_irqchip_allowed(machine) || (!kvm_check_extension(s, KVM_CAP_IRQCHIP) && (kvm_vm_enable_cap(s, KVM_CAP_S390_IRQCHIP, 0) < 0))) { return 0; } /* First probe and see if the...
true
qemu
8db4936bb648e15173d687bc162be14fd0d4260c
static int kvm_irqchip_create(MachineState *machine, KVMState *s) { int ret; if (!machine_kernel_irqchip_allowed(machine) || (!kvm_check_extension(s, KVM_CAP_IRQCHIP) && (kvm_vm_enable_cap(s, KVM_CAP_S390_IRQCHIP, 0) < 0))) { return 0; } ret = kvm_arch_irqchi...
{ "code": [ "static int kvm_irqchip_create(MachineState *machine, KVMState *s)", " if (!machine_kernel_irqchip_allowed(machine) ||", " (!kvm_check_extension(s, KVM_CAP_IRQCHIP) &&", " (kvm_vm_enable_cap(s, KVM_CAP_S390_IRQCHIP, 0) < 0))) {", " return 0;", " if (ret ...
static int FUNC_0(MachineState *VAR_0, KVMState *VAR_1) { int VAR_2; if (!machine_kernel_irqchip_allowed(VAR_0) || (!kvm_check_extension(VAR_1, KVM_CAP_IRQCHIP) && (kvm_vm_enable_cap(VAR_1, KVM_CAP_S390_IRQCHIP, 0) < 0))) { return 0; } VAR_2 = kvm_arch_irqchi...
[ "static int FUNC_0(MachineState *VAR_0, KVMState *VAR_1)\n{", "int VAR_2;", "if (!machine_kernel_irqchip_allowed(VAR_0) ||\n(!kvm_check_extension(VAR_1, KVM_CAP_IRQCHIP) &&\n(kvm_vm_enable_cap(VAR_1, KVM_CAP_S390_IRQCHIP, 0) < 0))) {", "return 0;", "}", "VAR_2 = kvm_arch_irqchip_create(VAR_1);", "if (VA...
[ 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13 ], [ 15 ], [ 17 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 55 ], [ 57 ], [ 61...
10,653
static void qemu_clock_init(QEMUClockType type) { QEMUClock *clock = qemu_clock_ptr(type); clock->type = type; clock->enabled = true; clock->last = INT64_MIN; QLIST_INIT(&clock->timerlists); notifier_list_init(&clock->reset_notifiers); main_loop_tlg.tl[type] = timerlist_new(type, NULL, NULL)...
true
qemu
02ce232c5051854bf49e6d2816c65e00f6d7e036
static void qemu_clock_init(QEMUClockType type) { QEMUClock *clock = qemu_clock_ptr(type); clock->type = type; clock->enabled = true; clock->last = INT64_MIN; QLIST_INIT(&clock->timerlists); notifier_list_init(&clock->reset_notifiers); main_loop_tlg.tl[type] = timerlist_new(type, NULL, NULL)...
{ "code": [], "line_no": [] }
static void FUNC_0(QEMUClockType VAR_0) { QEMUClock *clock = qemu_clock_ptr(VAR_0); clock->VAR_0 = VAR_0; clock->enabled = true; clock->last = INT64_MIN; QLIST_INIT(&clock->timerlists); notifier_list_init(&clock->reset_notifiers); main_loop_tlg.tl[VAR_0] = timerlist_new(VAR_0, NULL, NULL); }
[ "static void FUNC_0(QEMUClockType VAR_0)\n{", "QEMUClock *clock = qemu_clock_ptr(VAR_0);", "clock->VAR_0 = VAR_0;", "clock->enabled = true;", "clock->last = INT64_MIN;", "QLIST_INIT(&clock->timerlists);", "notifier_list_init(&clock->reset_notifiers);", "main_loop_tlg.tl[VAR_0] = timerlist_new(VAR_0, N...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ] ]
10,654
static void gen_mfdcr(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else TCGv dcrn; if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); return; } /* NIP cannot be restored if the memory exception c...
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_mfdcr(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else TCGv dcrn; if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); return; } gen_update_nip(ctx, ctx->nip - 4); dcrn ...
{ "code": [ " if (unlikely(ctx->pr)) {", " if (unlikely(ctx->pr)) {", "#if defined(CONFIG_USER_ONLY)", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);", "#else", " if (unlikely(ctx->pr)) {", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);", "#endif", "#if d...
static void FUNC_0(DisasContext *VAR_0) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); #else TCGv dcrn; if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); return; } gen_update_nip(VAR_0, VAR_0->nip - 4); ...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "#else\nTCGv dcrn;", "if (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "return;", "}", "gen_update_nip(VAR_0, VAR_0->nip - 4);", "dcrn ...
[ 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ] ]
10,655
static int wav_write_header(AVFormatContext *s) { WAVContext *wav = s->priv_data; AVIOContext *pb = s->pb; int64_t fmt, fact; ffio_wfourcc(pb, "RIFF"); avio_wl32(pb, 0); /* file length */ ffio_wfourcc(pb, "WAVE"); /* format header */ fmt = ff_start_tag(pb, "fmt "); if (...
false
FFmpeg
8d0786ec6d066f892f29da6593e99e73a7dfd014
static int wav_write_header(AVFormatContext *s) { WAVContext *wav = s->priv_data; AVIOContext *pb = s->pb; int64_t fmt, fact; ffio_wfourcc(pb, "RIFF"); avio_wl32(pb, 0); ffio_wfourcc(pb, "WAVE"); fmt = ff_start_tag(pb, "fmt "); if (ff_put_wav_header(pb, s->streams[0]-...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { WAVContext *wav = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; int64_t fmt, fact; ffio_wfourcc(pb, "RIFF"); avio_wl32(pb, 0); ffio_wfourcc(pb, "WAVE"); fmt = ff_start_tag(pb, "fmt "); if (ff_put_wav_header(pb, VAR_0->strea...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "WAVContext *wav = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "int64_t fmt, fact;", "ffio_wfourcc(pb, \"RIFF\");", "avio_wl32(pb, 0);", "ffio_wfourcc(pb, \"WAVE\");", "fmt = ff_start_tag(pb, \"fmt \");", "if (ff_put_wav_header(pb, VAR_0->strea...
[ 0, 0, 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 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
10,656
void ff_llviddsp_init_x86(LLVidDSPContext *c) { int cpu_flags = av_get_cpu_flags(); #if HAVE_INLINE_ASM && HAVE_7REGS && ARCH_X86_32 if (cpu_flags & AV_CPU_FLAG_CMOV) c->add_median_pred = add_median_pred_cmov; #endif if (ARCH_X86_32 && EXTERNAL_MMX(cpu_flags)) { c->add_bytes = ff...
false
FFmpeg
438f884fc48b4b956fa713df2a722bd484f5646b
void ff_llviddsp_init_x86(LLVidDSPContext *c) { int cpu_flags = av_get_cpu_flags(); #if HAVE_INLINE_ASM && HAVE_7REGS && ARCH_X86_32 if (cpu_flags & AV_CPU_FLAG_CMOV) c->add_median_pred = add_median_pred_cmov; #endif if (ARCH_X86_32 && EXTERNAL_MMX(cpu_flags)) { c->add_bytes = ff...
{ "code": [], "line_no": [] }
void FUNC_0(LLVidDSPContext *VAR_0) { int VAR_1 = av_get_cpu_flags(); #if HAVE_INLINE_ASM && HAVE_7REGS && ARCH_X86_32 if (VAR_1 & AV_CPU_FLAG_CMOV) VAR_0->add_median_pred = add_median_pred_cmov; #endif if (ARCH_X86_32 && EXTERNAL_MMX(VAR_1)) { VAR_0->add_bytes = ff_add_bytes_mmx...
[ "void FUNC_0(LLVidDSPContext *VAR_0)\n{", "int VAR_1 = av_get_cpu_flags();", "#if HAVE_INLINE_ASM && HAVE_7REGS && ARCH_X86_32\nif (VAR_1 & AV_CPU_FLAG_CMOV)\nVAR_0->add_median_pred = add_median_pred_cmov;", "#endif\nif (ARCH_X86_32 && EXTERNAL_MMX(VAR_1)) {", "VAR_0->add_bytes = ff_add_bytes_mmx;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13 ], [ 15, 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57...
10,657
static av_cold int libgsm_init(AVCodecContext *avctx) { if (avctx->channels > 1) { av_log(avctx, AV_LOG_ERROR, "Mono required for GSM, got %d channels\n", avctx->channels); return -1; } if(avctx->codec->decode){ if(!avctx->channels) avctx->channel...
false
FFmpeg
8febd6afbca652b331ddd8e75e356656c153cad1
static av_cold int libgsm_init(AVCodecContext *avctx) { if (avctx->channels > 1) { av_log(avctx, AV_LOG_ERROR, "Mono required for GSM, got %d channels\n", avctx->channels); return -1; } if(avctx->codec->decode){ if(!avctx->channels) avctx->channel...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { if (avctx->channels > 1) { av_log(avctx, AV_LOG_ERROR, "Mono required for GSM, got %d channels\n", avctx->channels); return -1; } if(avctx->codec->decode){ if(!avctx->channels) avctx->channels= 1;...
[ "static av_cold int FUNC_0(AVCodecContext *avctx) {", "if (avctx->channels > 1) {", "av_log(avctx, AV_LOG_ERROR, \"Mono required for GSM, got %d channels\\n\",\navctx->channels);", "return -1;", "}", "if(avctx->codec->decode){", "if(!avctx->channels)\navctx->channels= 1;", "if(!avctx->sample_rate)\nav...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45, 47, 49 ], [ 51, 53 ], [...
10,658
static int h261_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { H261Context *h= avctx->priv_data; MpegEncContext *s = &h->s; int ret; AVFrame *pict = data; #ifdef DEBUG printf("*****fra...
false
FFmpeg
934982c4ace1a3d5d627b518782ed092a456c49e
static int h261_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { H261Context *h= avctx->priv_data; MpegEncContext *s = &h->s; int ret; AVFrame *pict = data; #ifdef DEBUG printf("*****fra...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { H261Context *h= VAR_0->priv_data; MpegEncContext *s = &h->s; int VAR_5; AVFrame *pict = VAR_1; #ifdef DEBUG printf("*****frame %d size=%...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "H261Context *h= VAR_0->priv_data;", "MpegEncContext *s = &h->s;", "int VAR_5;", "AVFrame *pict = VAR_1;", "#ifdef DEBUG\nprintf(\"*****frame %d size=%d\\n\", VAR_0->frame_number, VAR_4);", "printf(\"byt...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 43 ], [ 47, 51 ], [ 55 ], [ 57, 59 ], [ 61 ...
10,660
static int mov_read_uuid(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; MOVStreamContext *sc; int64_t ret; uint8_t uuid[16]; static const uint8_t uuid_isml_manifest[] = { 0xa5, 0xd4, 0x0b, 0x30, 0xe8, 0x14, 0x11, 0xdd, 0xba, 0x2f, 0x08, 0x00, 0x20, 0x0c, 0x9a, ...
false
FFmpeg
2d453188c2303da641dafb048dc1806790526dfd
static int mov_read_uuid(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; MOVStreamContext *sc; int64_t ret; uint8_t uuid[16]; static const uint8_t uuid_isml_manifest[] = { 0xa5, 0xd4, 0x0b, 0x30, 0xe8, 0x14, 0x11, 0xdd, 0xba, 0x2f, 0x08, 0x00, 0x20, 0x0c, 0x9a, ...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2) { AVStream *st; MOVStreamContext *sc; int64_t ret; uint8_t uuid[16]; static const uint8_t VAR_3[] = { 0xa5, 0xd4, 0x0b, 0x30, 0xe8, 0x14, 0x11, 0xdd, 0xba, 0x2f, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 };...
[ "static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{", "AVStream *st;", "MOVStreamContext *sc;", "int64_t ret;", "uint8_t uuid[16];", "static const uint8_t VAR_3[] = {", "0xa5, 0xd4, 0x0b, 0x30, 0xe8, 0x14, 0x11, 0xdd,\n0xba, 0x2f, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66\n};", "stati...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17, 19 ], [ 21 ], [ 23, 25, 27 ], [ 29 ], [ 31, 33, 35 ], [ 39, 41 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 55 ...
10,661
uint64_t HELPER(neon_abdl_u16)(uint32_t a, uint32_t b) { uint64_t tmp; uint64_t result; DO_ABD(result, a, b, uint8_t); DO_ABD(tmp, a >> 8, b >> 8, uint8_t); result |= tmp << 16; DO_ABD(tmp, a >> 16, b >> 16, uint8_t); result |= tmp << 32; DO_ABD(tmp, a >> 24, b >> 24, uint8_t); ...
true
qemu
4d9ad7f793605abd9806fc932b3e04e028894565
uint64_t HELPER(neon_abdl_u16)(uint32_t a, uint32_t b) { uint64_t tmp; uint64_t result; DO_ABD(result, a, b, uint8_t); DO_ABD(tmp, a >> 8, b >> 8, uint8_t); result |= tmp << 16; DO_ABD(tmp, a >> 16, b >> 16, uint8_t); result |= tmp << 32; DO_ABD(tmp, a >> 24, b >> 24, uint8_t); ...
{ "code": [ " DO_ABD(result, a, b, uint8_t);", " DO_ABD(tmp, a >> 8, b >> 8, uint8_t);", " DO_ABD(tmp, a >> 16, b >> 16, uint8_t);", " DO_ABD(tmp, a >> 24, b >> 24, uint8_t);" ], "line_no": [ 9, 11, 15, 19 ] }
uint64_t FUNC_0(neon_abdl_u16)(uint32_t a, uint32_t b) { uint64_t tmp; uint64_t result; DO_ABD(result, a, b, uint8_t); DO_ABD(tmp, a >> 8, b >> 8, uint8_t); result |= tmp << 16; DO_ABD(tmp, a >> 16, b >> 16, uint8_t); result |= tmp << 32; DO_ABD(tmp, a >> 24, b >> 24, uint8_t); ...
[ "uint64_t FUNC_0(neon_abdl_u16)(uint32_t a, uint32_t b)\n{", "uint64_t tmp;", "uint64_t result;", "DO_ABD(result, a, b, uint8_t);", "DO_ABD(tmp, a >> 8, b >> 8, uint8_t);", "result |= tmp << 16;", "DO_ABD(tmp, a >> 16, b >> 16, uint8_t);", "result |= tmp << 32;", "DO_ABD(tmp, a >> 24, b >> 24, uint8...
[ 0, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
10,663
static int ipvideo_decode_block_opcode_0xA(IpvideoContext *s, AVFrame *frame) { int x, y; unsigned char P[8]; int flags = 0; bytestream2_get_buffer(&s->stream_ptr, P, 4); /* 4-color encoding for each 4x4 quadrant, or 4-color encoding on * either top and bottom or left and right halves */ if...
true
FFmpeg
ff1e30c059386db05131fe2f5bca1f35e1f5ac7e
static int ipvideo_decode_block_opcode_0xA(IpvideoContext *s, AVFrame *frame) { int x, y; unsigned char P[8]; int flags = 0; bytestream2_get_buffer(&s->stream_ptr, P, 4); if (P[0] <= P[1]) { for (y = 0; y < 16; y++) { if (!(y & 3)) { if...
{ "code": [], "line_no": [] }
static int FUNC_0(IpvideoContext *VAR_0, AVFrame *VAR_1) { int VAR_2, VAR_3; unsigned char VAR_4[8]; int VAR_5 = 0; bytestream2_get_buffer(&VAR_0->stream_ptr, VAR_4, 4); if (VAR_4[0] <= VAR_4[1]) { for (VAR_3 = 0; VAR_3 < 16; VAR_3++) { if (!(VAR_3 & 3...
[ "static int FUNC_0(IpvideoContext *VAR_0, AVFrame *VAR_1)\n{", "int VAR_2, VAR_3;", "unsigned char VAR_4[8];", "int VAR_5 = 0;", "bytestream2_get_buffer(&VAR_0->stream_ptr, VAR_4, 4);", "if (VAR_4[0] <= VAR_4[1]) {", "for (VAR_3 = 0; VAR_3 < 16; VAR_3++) {", "if (!(VAR_3 & 3)) {", "if (VAR_3) bytest...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 9 ], [ 11 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 20 ], [ 21 ], [ 23 ], [ 24 ], [ 25 ], [ 26 ], [ 29 ...
10,664
static av_cold int truemotion1_decode_init(AVCodecContext *avctx) { TrueMotion1Context *s = avctx->priv_data; s->avctx = avctx; // FIXME: it may change ? // if (avctx->bits_per_sample == 24) // avctx->pix_fmt = AV_PIX_FMT_RGB24; // else // avctx->pix_fmt = AV_PIX_FMT_RGB555; ...
true
FFmpeg
46e75617d9700be8840a843237f8571061a63a8e
static av_cold int truemotion1_decode_init(AVCodecContext *avctx) { TrueMotion1Context *s = avctx->priv_data; s->avctx = avctx; s->frame = av_frame_alloc(); if (!s->frame) return AVERROR(ENOMEM); av_fast_malloc(&s->vert_pred, &s->vert_pred_size, s->avctx-...
{ "code": [ " if (!s->vert_pred)" ], "line_no": [ 39 ] }
static av_cold int FUNC_0(AVCodecContext *avctx) { TrueMotion1Context *s = avctx->priv_data; s->avctx = avctx; s->frame = av_frame_alloc(); if (!s->frame) return AVERROR(ENOMEM); av_fast_malloc(&s->vert_pred, &s->vert_pred_size, s->avctx->width * sizeof(u...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "TrueMotion1Context *s = avctx->priv_data;", "s->avctx = avctx;", "s->frame = av_frame_alloc();", "if (!s->frame)\nreturn AVERROR(ENOMEM);", "av_fast_malloc(&s->vert_pred, &s->vert_pred_size, s->avctx->width * sizeof(unsigned int));", "if (!s->vert_...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 25 ], [ 27, 29 ], [ 37 ], [ 39, 41 ], [ 45 ], [ 47 ] ]
10,666
static uint32_t suov32(CPUTriCoreState *env, int64_t arg) { uint32_t ret; int64_t max_pos = UINT32_MAX; if (arg > max_pos) { env->PSW_USB_V = (1 << 31); env->PSW_USB_SV = (1 << 31); ret = (target_ulong)max_pos; } else { if (arg < 0) { env->PSW_USB_V ...
true
qemu
85d604af5f96c32734af9974ec6ddb625b6716a2
static uint32_t suov32(CPUTriCoreState *env, int64_t arg) { uint32_t ret; int64_t max_pos = UINT32_MAX; if (arg > max_pos) { env->PSW_USB_V = (1 << 31); env->PSW_USB_SV = (1 << 31); ret = (target_ulong)max_pos; } else { if (arg < 0) { env->PSW_USB_V ...
{ "code": [ "static uint32_t suov32(CPUTriCoreState *env, int64_t arg)", " int64_t max_pos = UINT32_MAX;", " if (arg < 0) {", " env->PSW_USB_V = (1 << 31);", " env->PSW_USB_SV = (1 << 31);", " ret = 0;", " } else {", " env->P...
static uint32_t FUNC_0(CPUTriCoreState *env, int64_t arg) { uint32_t ret; int64_t max_pos = UINT32_MAX; if (arg > max_pos) { env->PSW_USB_V = (1 << 31); env->PSW_USB_SV = (1 << 31); ret = (target_ulong)max_pos; } else { if (arg < 0) { env->PSW_USB_V ...
[ "static uint32_t FUNC_0(CPUTriCoreState *env, int64_t arg)\n{", "uint32_t ret;", "int64_t max_pos = UINT32_MAX;", "if (arg > max_pos) {", "env->PSW_USB_V = (1 << 31);", "env->PSW_USB_SV = (1 << 31);", "ret = (target_ulong)max_pos;", "} else {", "if (arg < 0) {", "env->PSW_USB_V = (1 << 31);", "e...
[ 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ...
10,667
static int dirac_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt) { DiracContext *s = avctx->priv_data; AVFrame *picture = data; uint8_t *buf = pkt->data; int buf_size = pkt->size; int i, data_unit_size, buf_idx = 0; int ret; /* re...
false
FFmpeg
8f1afde11d4d76fc2444074b45d76a5113d1d748
static int dirac_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt) { DiracContext *s = avctx->priv_data; AVFrame *picture = data; uint8_t *buf = pkt->data; int buf_size = pkt->size; int i, data_unit_size, buf_idx = 0; int ret; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { DiracContext *s = VAR_0->priv_data; AVFrame *picture = VAR_1; uint8_t *buf = VAR_3->VAR_1; int VAR_4 = VAR_3->size; int VAR_5, VAR_6, VAR_7 = 0; int VAR_8; for (VAR_5 = 0...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{", "DiracContext *s = VAR_0->priv_data;", "AVFrame *picture = VAR_1;", "uint8_t *buf = VAR_3->VAR_1;", "int VAR_4 = VAR_3->size;", "int VAR_5, VAR_6, VAR_7 = 0;", "int VAR_8;", "for (VAR_5 = 0; V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 41, 43 ], [ 47 ], [ 55 ], [ 57, 59, 61 ], [...
10,668
static int decode_svq1_block (bit_buffer_t *bitbuf, uint8_t *pixels, int pitch, int intra) { uint32_t bit_cache; vlc_code_t *vlc; uint8_t *list[63]; uint32_t *dst; uint32_t *codebook; int entries[6]; int i, j, m, n; int mean, stages; int x, y, width, height, ...
false
FFmpeg
82dd7d0dec29ee59af91ce18c29eb151b363ff37
static int decode_svq1_block (bit_buffer_t *bitbuf, uint8_t *pixels, int pitch, int intra) { uint32_t bit_cache; vlc_code_t *vlc; uint8_t *list[63]; uint32_t *dst; uint32_t *codebook; int entries[6]; int i, j, m, n; int mean, stages; int x, y, width, height, ...
{ "code": [], "line_no": [] }
static int FUNC_0 (bit_buffer_t *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3) { uint32_t bit_cache; vlc_code_t *vlc; uint8_t *list[63]; uint32_t *dst; uint32_t *codebook; int VAR_4[6]; int VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9, VAR_10; int VAR_11, VAR_12, VAR...
[ "static int FUNC_0 (bit_buffer_t *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3) {", "uint32_t bit_cache;", "vlc_code_t *vlc;", "uint8_t *list[63];", "uint32_t *dst;", "uint32_t *codebook;", "int\t VAR_4[6];", "int\t VAR_5, VAR_6, VAR_7, VAR_8;", "int\t VAR_9, VAR_10;", "int...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 51 ], [ 57, 59 ], [...
10,669
static int mov_init(AVFormatContext *s) { MOVMuxContext *mov = s->priv_data; AVDictionaryEntry *global_tcr = av_dict_get(s->metadata, "timecode", NULL, 0); int i, ret; mov->fc = s; /* Default mode == MP4 */ mov->mode = MODE_MP4; if (s->oformat) { if (!strcmp("3gp", s->...
false
FFmpeg
5ff31babfccd16cdee6575ae015ff67e9a08e35d
static int mov_init(AVFormatContext *s) { MOVMuxContext *mov = s->priv_data; AVDictionaryEntry *global_tcr = av_dict_get(s->metadata, "timecode", NULL, 0); int i, ret; mov->fc = s; mov->mode = MODE_MP4; if (s->oformat) { if (!strcmp("3gp", s->oformat->name)) mov->mode...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { MOVMuxContext *mov = VAR_0->priv_data; AVDictionaryEntry *global_tcr = av_dict_get(VAR_0->metadata, "timecode", NULL, 0); int VAR_1, VAR_2; mov->fc = VAR_0; mov->mode = MODE_MP4; if (VAR_0->oformat) { if (!strcmp("3gp", VAR_...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "MOVMuxContext *mov = VAR_0->priv_data;", "AVDictionaryEntry *global_tcr = av_dict_get(VAR_0->metadata, \"timecode\", NULL, 0);", "int VAR_1, VAR_2;", "mov->fc = VAR_0;", "mov->mode = MODE_MP4;", "if (VAR_0->oformat) {", "if (!strcmp(\"3gp\", VAR_0->ofor...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 53, 55, 57, 59, 61 ], [...
10,674
static GThread *trace_thread_create(GThreadFunc fn) { GThread *thread; #ifndef _WIN32 sigset_t set, oldset; sigfillset(&set); pthread_sigmask(SIG_SETMASK, &set, &oldset); #endif thread = g_thread_create(writeout_thread, NULL, FALSE, NULL); #ifndef _WIN32 pthread_sigmask(SIG_SETMASK, ...
true
qemu
db3bf8696358e105903b00432cad0aa50d3c0cb6
static GThread *trace_thread_create(GThreadFunc fn) { GThread *thread; #ifndef _WIN32 sigset_t set, oldset; sigfillset(&set); pthread_sigmask(SIG_SETMASK, &set, &oldset); #endif thread = g_thread_create(writeout_thread, NULL, FALSE, NULL); #ifndef _WIN32 pthread_sigmask(SIG_SETMASK, ...
{ "code": [ " thread = g_thread_create(writeout_thread, NULL, FALSE, NULL);" ], "line_no": [ 19 ] }
static GThread *FUNC_0(GThreadFunc fn) { GThread *thread; #ifndef _WIN32 sigset_t set, oldset; sigfillset(&set); pthread_sigmask(SIG_SETMASK, &set, &oldset); #endif thread = g_thread_create(writeout_thread, NULL, FALSE, NULL); #ifndef _WIN32 pthread_sigmask(SIG_SETMASK, &oldset, NULL...
[ "static GThread *FUNC_0(GThreadFunc fn)\n{", "GThread *thread;", "#ifndef _WIN32\nsigset_t set, oldset;", "sigfillset(&set);", "pthread_sigmask(SIG_SETMASK, &set, &oldset);", "#endif\nthread = g_thread_create(writeout_thread, NULL, FALSE, NULL);", "#ifndef _WIN32\npthread_sigmask(SIG_SETMASK, &oldset, N...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21, 23 ], [ 25, 29 ], [ 31 ] ]
10,675
static void visit_type_TestStruct(Visitor *v, TestStruct **obj, const char *name, Error **errp) { Error *err = NULL; visit_start_struct(v, (void **)obj, "TestStruct", name, sizeof(TestStruct), &err); if (err) { goto out; } ...
true
qemu
297a3646c2947ee64a6d42ca264039732c6218e0
static void visit_type_TestStruct(Visitor *v, TestStruct **obj, const char *name, Error **errp) { Error *err = NULL; visit_start_struct(v, (void **)obj, "TestStruct", name, sizeof(TestStruct), &err); if (err) { goto out; } ...
{ "code": [ " visit_end_struct(v, &err);", " goto out;", " Error *err = NULL;" ], "line_no": [ 31, 17, 7 ] }
static void FUNC_0(Visitor *VAR_0, TestStruct **VAR_1, const char *VAR_2, Error **VAR_3) { Error *err = NULL; visit_start_struct(VAR_0, (void **)VAR_1, "TestStruct", VAR_2, sizeof(TestStruct), &err); if (err) { goto out; } ...
[ "static void FUNC_0(Visitor *VAR_0, TestStruct **VAR_1,\nconst char *VAR_2, Error **VAR_3)\n{", "Error *err = NULL;", "visit_start_struct(VAR_0, (void **)VAR_1, \"TestStruct\", VAR_2, sizeof(TestStruct),\n&err);", "if (err) {", "goto out;", "}", "visit_type_int(VAR_0, &(*VAR_1)->integer, \"integer\", &e...
[ 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35, 37 ], [ 39 ] ]
10,676
static float get_band_cost_ZERO_mips(struct AACEncContext *s, PutBitContext *pb, const float *in, const float *scaled, int size, int scale_idx, int cb, const float lambda, const float uplim, ...
true
FFmpeg
01ecb7172b684f1c4b3e748f95c5a9a494ca36ec
static float get_band_cost_ZERO_mips(struct AACEncContext *s, PutBitContext *pb, const float *in, const float *scaled, int size, int scale_idx, int cb, const float lambda, const float uplim, ...
{ "code": [ " int *bits)", " int *bits)" ], "line_no": [ 9, 9 ] }
static float FUNC_0(struct AACEncContext *VAR_0, PutBitContext *VAR_1, const float *VAR_2, const float *VAR_3, int VAR_4, int VAR_5, int VAR_6, const float VAR_7, const float VAR_8, ...
[ "static float FUNC_0(struct AACEncContext *VAR_0,\nPutBitContext *VAR_1, const float *VAR_2,\nconst float *VAR_3, int VAR_4, int VAR_5,\nint VAR_6, const float VAR_7, const float VAR_8,\nint *VAR_9)\n{", "int VAR_10;", "float VAR_11 = 0;", "for (VAR_10 = 0; VAR_10 < VAR_4; VAR_10 += 4) {", "VAR_11 += VAR_2[...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ] ]
10,677
static int decode_thread(void *arg) { VideoState *is = arg; AVFormatContext *ic; int err, i, ret; int st_index[AVMEDIA_TYPE_NB]; AVPacket pkt1, *pkt = &pkt1; AVFormatParameters params, *ap = &params; int eof=0; int pkt_in_play_range = 0; ic = avformat_alloc_context(); ...
true
FFmpeg
648c79624fa70414dfb644fcb84b9de15e6568b0
static int decode_thread(void *arg) { VideoState *is = arg; AVFormatContext *ic; int err, i, ret; int st_index[AVMEDIA_TYPE_NB]; AVPacket pkt1, *pkt = &pkt1; AVFormatParameters params, *ap = &params; int eof=0; int pkt_in_play_range = 0; ic = avformat_alloc_context(); ...
{ "code": [ " if (ret == AVERROR_EOF || ic->pb->eof_reached)", " if (ic->pb->error)" ], "line_no": [ 389, 393 ] }
static int FUNC_0(void *VAR_0) { VideoState *is = VAR_0; AVFormatContext *ic; int VAR_1, VAR_2, VAR_3; int VAR_4[AVMEDIA_TYPE_NB]; AVPacket pkt1, *pkt = &pkt1; AVFormatParameters params, *ap = &params; int VAR_5=0; int VAR_6 = 0; ic = avformat_alloc_context(); mems...
[ "static int FUNC_0(void *VAR_0)\n{", "VideoState *is = VAR_0;", "AVFormatContext *ic;", "int VAR_1, VAR_2, VAR_3;", "int VAR_4[AVMEDIA_TYPE_NB];", "AVPacket pkt1, *pkt = &pkt1;", "AVFormatParameters params, *ap = &params;", "int VAR_5=0;", "int VAR_6 = 0;", "ic = avformat_alloc_context();", "mem...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ...
10,678
static int restore_sigcontext(CPUSH4State *regs, struct target_sigcontext *sc, target_ulong *r0_p) { unsigned int err = 0; int i; #define COPY(x) __get_user(regs->x, &sc->sc_##x) COPY(gregs[1]); COPY(gregs[2]); COPY(gregs[3]); COPY(gregs[4]); COPY(greg...
true
qemu
016d2e1dfa21b64a524d3629fdd317d4c25bc3b8
static int restore_sigcontext(CPUSH4State *regs, struct target_sigcontext *sc, target_ulong *r0_p) { unsigned int err = 0; int i; #define COPY(x) __get_user(regs->x, &sc->sc_##x) COPY(gregs[1]); COPY(gregs[2]); COPY(gregs[3]); COPY(gregs[4]); COPY(greg...
{ "code": [ " return err;", "static int restore_sigcontext(CPUSH4State *regs, struct target_sigcontext *sc,", " unsigned int err = 0;", " return err;", " return err;", " return err;" ], "line_no": [ 57, 1, 7, 57, 57, 57 ] }
static int FUNC_0(CPUSH4State *VAR_0, struct target_sigcontext *VAR_1, target_ulong *VAR_2) { unsigned int VAR_3 = 0; int VAR_4; #define COPY(x) __get_user(VAR_0->x, &VAR_1->sc_##x) COPY(gregs[1]); COPY(gregs[2]); COPY(gregs[3]); COPY(gregs[4]); COPY(g...
[ "static int FUNC_0(CPUSH4State *VAR_0, struct target_sigcontext *VAR_1,\ntarget_ulong *VAR_2)\n{", "unsigned int VAR_3 = 0;", "int VAR_4;", "#define COPY(x) __get_user(VAR_0->x, &VAR_1->sc_##x)\nCOPY(gregs[1]);", "COPY(gregs[2]); COPY(gregs[3]);", "COPY(gregs[4]); COPY(gregs[5]);", "COPY(gregs[6...
[ 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 41 ], [ 43 ], [ 45 ], [ 47 ], [...
10,680
void do_rfi (void) { env->nip = env->spr[SPR_SRR0] & ~0x00000003; T0 = env->spr[SPR_SRR1] & ~0xFFFF0000UL; do_store_msr(env, T0); #if defined (DEBUG_OP) dump_rfi(); #endif env->interrupt_request |= CPU_INTERRUPT_EXITTB; }
true
qemu
d9bce9d99f4656ae0b0127f7472db9067b8f84ab
void do_rfi (void) { env->nip = env->spr[SPR_SRR0] & ~0x00000003; T0 = env->spr[SPR_SRR1] & ~0xFFFF0000UL; do_store_msr(env, T0); #if defined (DEBUG_OP) dump_rfi(); #endif env->interrupt_request |= CPU_INTERRUPT_EXITTB; }
{ "code": [ " env->nip = env->spr[SPR_SRR0] & ~0x00000003;", " T0 = env->spr[SPR_SRR1] & ~0xFFFF0000UL;", "#endif", "#endif" ], "line_no": [ 5, 7, 15, 15 ] }
void FUNC_0 (void) { env->nip = env->spr[SPR_SRR0] & ~0x00000003; T0 = env->spr[SPR_SRR1] & ~0xFFFF0000UL; do_store_msr(env, T0); #if defined (DEBUG_OP) dump_rfi(); #endif env->interrupt_request |= CPU_INTERRUPT_EXITTB; }
[ "void FUNC_0 (void)\n{", "env->nip = env->spr[SPR_SRR0] & ~0x00000003;", "T0 = env->spr[SPR_SRR1] & ~0xFFFF0000UL;", "do_store_msr(env, T0);", "#if defined (DEBUG_OP)\ndump_rfi();", "#endif\nenv->interrupt_request |= CPU_INTERRUPT_EXITTB;", "}" ]
[ 0, 1, 1, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ] ]
10,681
restore_sigcontext(CPUX86State *env, struct target_sigcontext *sc, int *peax) { unsigned int err = 0; abi_ulong fpstate_addr; unsigned int tmpflags; cpu_x86_load_seg(env, R_GS, tswap16(sc->gs)); cpu_x86_load_seg(env, R_FS, tswap16(sc->fs)); cpu_x86_load_seg(env, R_ES, t...
true
qemu
9a826d7854baf6b90de46fea785d1bfc5d2c22a7
restore_sigcontext(CPUX86State *env, struct target_sigcontext *sc, int *peax) { unsigned int err = 0; abi_ulong fpstate_addr; unsigned int tmpflags; cpu_x86_load_seg(env, R_GS, tswap16(sc->gs)); cpu_x86_load_seg(env, R_FS, tswap16(sc->fs)); cpu_x86_load_seg(env, R_ES, t...
{ "code": [ " cpu_x86_load_seg(env, R_CS, lduw(&sc->cs) | 3);", " cpu_x86_load_seg(env, R_SS, lduw(&sc->ss) | 3);" ], "line_no": [ 41, 43 ] }
FUNC_0(CPUX86State *VAR_0, struct target_sigcontext *VAR_1, int *VAR_2) { unsigned int VAR_3 = 0; abi_ulong fpstate_addr; unsigned int VAR_4; cpu_x86_load_seg(VAR_0, R_GS, tswap16(VAR_1->gs)); cpu_x86_load_seg(VAR_0, R_FS, tswap16(VAR_1->fs)); cpu_x86_load_seg(VAR_0, R_...
[ "FUNC_0(CPUX86State *VAR_0, struct target_sigcontext *VAR_1, int *VAR_2)\n{", "unsigned int VAR_3 = 0;", "abi_ulong fpstate_addr;", "unsigned int VAR_4;", "cpu_x86_load_seg(VAR_0, R_GS, tswap16(VAR_1->gs));", "cpu_x86_load_seg(VAR_0, R_FS, tswap16(VAR_1->fs));", "cpu_x86_load_seg(VAR_0, R_ES, tswap16(VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ...
10,682
static ssize_t local_readlink(FsContext *fs_ctx, V9fsPath *fs_path, char *buf, size_t bufsz) { ssize_t tsize = -1; char *buffer; char *path = fs_path->data; if ((fs_ctx->export_flags & V9FS_SM_MAPPED) || (fs_ctx->export_flags & V9FS_SM_MAPPED_FILE)) { ...
true
qemu
bec1e9546e03b9e7f5152cf3e8c95cf8acff5e12
static ssize_t local_readlink(FsContext *fs_ctx, V9fsPath *fs_path, char *buf, size_t bufsz) { ssize_t tsize = -1; char *buffer; char *path = fs_path->data; if ((fs_ctx->export_flags & V9FS_SM_MAPPED) || (fs_ctx->export_flags & V9FS_SM_MAPPED_FILE)) { ...
{ "code": [ " char *buffer;", " char *path = fs_path->data;", " buffer = rpath(fs_ctx, path);", " fd = open(buffer, O_RDONLY | O_NOFOLLOW);", " g_free(buffer);", " close(fd);", " buffer = rpath(fs_ctx, path);", " tsize = readlink(buffer, ...
static ssize_t FUNC_0(FsContext *fs_ctx, V9fsPath *fs_path, char *buf, size_t bufsz) { ssize_t tsize = -1; char *VAR_0; char *VAR_1 = fs_path->data; if ((fs_ctx->export_flags & V9FS_SM_MAPPED) || (fs_ctx->export_flags & V9FS_SM_MAPPED_FILE)) { int ...
[ "static ssize_t FUNC_0(FsContext *fs_ctx, V9fsPath *fs_path,\nchar *buf, size_t bufsz)\n{", "ssize_t tsize = -1;", "char *VAR_0;", "char *VAR_1 = fs_path->data;", "if ((fs_ctx->export_flags & V9FS_SM_MAPPED) ||\n(fs_ctx->export_flags & V9FS_SM_MAPPED_FILE)) {", "int VAR_2;", "VAR_0 = rpath(fs_ctx, VAR_1...
[ 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
10,684
static void htab_save_first_pass(QEMUFile *f, sPAPRMachineState *spapr, int64_t max_ns) { bool has_timeout = max_ns != -1; int htabslots = HTAB_SIZE(spapr) / HASH_PTE_SIZE_64; int index = spapr->htab_save_index; int64_t starttime = qemu_clock_get_ns(QEMU_CLOCK_REAL...
true
qemu
24ec2863b147aadd8cbd63f87ad0467210164304
static void htab_save_first_pass(QEMUFile *f, sPAPRMachineState *spapr, int64_t max_ns) { bool has_timeout = max_ns != -1; int htabslots = HTAB_SIZE(spapr) / HASH_PTE_SIZE_64; int index = spapr->htab_save_index; int64_t starttime = qemu_clock_get_ns(QEMU_CLOCK_REAL...
{ "code": [ " index++;", " index++;" ], "line_no": [ 33, 33 ] }
static void FUNC_0(QEMUFile *VAR_0, sPAPRMachineState *VAR_1, int64_t VAR_2) { bool has_timeout = VAR_2 != -1; int VAR_3 = HTAB_SIZE(VAR_1) / HASH_PTE_SIZE_64; int VAR_4 = VAR_1->htab_save_index; int64_t starttime = qemu_clock_get_ns(QEMU_CLOCK_REALTIME); as...
[ "static void FUNC_0(QEMUFile *VAR_0, sPAPRMachineState *VAR_1,\nint64_t VAR_2)\n{", "bool has_timeout = VAR_2 != -1;", "int VAR_3 = HTAB_SIZE(VAR_1) / HASH_PTE_SIZE_64;", "int VAR_4 = VAR_1->htab_save_index;", "int64_t starttime = qemu_clock_get_ns(QEMU_CLOCK_REALTIME);", "assert(VAR_1->htab_first_pass);"...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [...
10,686
void OPPROTO op_check_addo_64 (void) { if (likely(!(((uint64_t)T2 ^ (uint64_t)T1 ^ UINT64_MAX) & ((uint64_t)T2 ^ (uint64_t)T0) & (1ULL << 63)))) { xer_ov = 0; } else { xer_so = 1; xer_ov = 1; } RETURN(); }
true
qemu
966439a67830239a6c520c5df6c55627b8153c8b
void OPPROTO op_check_addo_64 (void) { if (likely(!(((uint64_t)T2 ^ (uint64_t)T1 ^ UINT64_MAX) & ((uint64_t)T2 ^ (uint64_t)T0) & (1ULL << 63)))) { xer_ov = 0; } else { xer_so = 1; xer_ov = 1; } RETURN(); }
{ "code": [ " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " xer_so = 1;", " ...
void VAR_0 op_check_addo_64 (void) { if (likely(!(((uint64_t)T2 ^ (uint64_t)T1 ^ UINT64_MAX) & ((uint64_t)T2 ^ (uint64_t)T0) & (1ULL << 63)))) { xer_ov = 0; } else { xer_so = 1; xer_ov = 1; } RETURN(); }
[ "void VAR_0 op_check_addo_64 (void)\n{", "if (likely(!(((uint64_t)T2 ^ (uint64_t)T1 ^ UINT64_MAX) &\n((uint64_t)T2 ^ (uint64_t)T0) & (1ULL << 63)))) {", "xer_ov = 0;", "} else {", "xer_so = 1;", "xer_ov = 1;", "}", "RETURN();", "}" ]
[ 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
10,687
static void vnc_dpy_resize(DisplayChangeListener *dcl, DisplayState *ds) { VncDisplay *vd = ds->opaque; VncState *vs; vnc_abort_display_jobs(vd); /* server surface */ qemu_pixman_image_unref(vd->server); vd->server = pixman_image_create_bits(VNC_SERVER_FB_F...
true
qemu
21ef45d71221b4577330fe3aacfb06afad91ad46
static void vnc_dpy_resize(DisplayChangeListener *dcl, DisplayState *ds) { VncDisplay *vd = ds->opaque; VncState *vs; vnc_abort_display_jobs(vd); qemu_pixman_image_unref(vd->server); vd->server = pixman_image_create_bits(VNC_SERVER_FB_FORMAT, ...
{ "code": [ " VncDisplay *vd = ds->opaque;", " VncDisplay *vd = ds->opaque;", " VncDisplay *vd = ds->opaque;", " VncDisplay *vd = ds->opaque;" ], "line_no": [ 7, 7, 7, 7 ] }
static void FUNC_0(DisplayChangeListener *VAR_0, DisplayState *VAR_1) { VncDisplay *vd = VAR_1->opaque; VncState *vs; vnc_abort_display_jobs(vd); qemu_pixman_image_unref(vd->server); vd->server = pixman_image_create_bits(VNC_SERVER_FB_FORMAT, ...
[ "static void FUNC_0(DisplayChangeListener *VAR_0,\nDisplayState *VAR_1)\n{", "VncDisplay *vd = VAR_1->opaque;", "VncState *vs;", "vnc_abort_display_jobs(vd);", "qemu_pixman_image_unref(vd->server);", "vd->server = pixman_image_create_bits(VNC_SERVER_FB_FORMAT,\nds_get_width(VAR_1),\nds_get_height(VAR_1),\...
[ 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 ], [ 13 ], [ 19 ], [ 21, 23, 25, 27 ], [ 33, 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [...
10,688
void hbitmap_iter_init(HBitmapIter *hbi, const HBitmap *hb, uint64_t first) { unsigned i, bit; uint64_t pos; hbi->hb = hb; pos = first >> hb->granularity; hbi->pos = pos >> BITS_PER_LEVEL; hbi->granularity = hb->granularity; for (i = HBITMAP_LEVELS; i-- > 0; ) { bit = p...
true
qemu
1b0952445522af73b0e78420a9078b3653923703
void hbitmap_iter_init(HBitmapIter *hbi, const HBitmap *hb, uint64_t first) { unsigned i, bit; uint64_t pos; hbi->hb = hb; pos = first >> hb->granularity; hbi->pos = pos >> BITS_PER_LEVEL; hbi->granularity = hb->granularity; for (i = HBITMAP_LEVELS; i-- > 0; ) { bit = p...
{ "code": [], "line_no": [] }
void FUNC_0(HBitmapIter *VAR_0, const HBitmap *VAR_1, uint64_t VAR_2) { unsigned VAR_3, VAR_4; uint64_t pos; VAR_0->VAR_1 = VAR_1; pos = VAR_2 >> VAR_1->granularity; VAR_0->pos = pos >> BITS_PER_LEVEL; VAR_0->granularity = VAR_1->granularity; for (VAR_3 = HBITMAP_LEVELS; VAR_3--...
[ "void FUNC_0(HBitmapIter *VAR_0, const HBitmap *VAR_1, uint64_t VAR_2)\n{", "unsigned VAR_3, VAR_4;", "uint64_t pos;", "VAR_0->VAR_1 = VAR_1;", "pos = VAR_2 >> VAR_1->granularity;", "VAR_0->pos = pos >> BITS_PER_LEVEL;", "VAR_0->granularity = VAR_1->granularity;", "for (VAR_3 = HBITMAP_LEVELS; VAR_3--...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 16 ], [ 18 ], [ 22 ], [ 24 ], [ 26 ], [ 32 ], [ 42 ], [ 44 ], [ 46 ], [ 48 ], [ 50 ] ]
10,689
print_ipc_cmd(int cmd) { #define output_cmd(val) \ if( cmd == val ) { \ gemu_log(#val); \ return; \ } cmd &= 0xff; /* General IPC commands */ output_cmd( IPC_RMID ); output_cmd( IPC_SET ); output_cmd( IPC_STAT ); output_cmd( IPC_INFO ); /* msgctl() commands */ #...
true
qemu
b9a0be9239ef58630c6b436ac7ed2cf0bc3a028d
print_ipc_cmd(int cmd) { #define output_cmd(val) \ if( cmd == val ) { \ gemu_log(#val); \ return; \ } cmd &= 0xff; output_cmd( IPC_RMID ); output_cmd( IPC_SET ); output_cmd( IPC_STAT ); output_cmd( IPC_INFO ); #ifdef __USER_MISC output_cmd( MSG_STAT ); ...
{ "code": [ " #ifdef __USER_MISC", " #endif" ], "line_no": [ 33, 39 ] }
FUNC_0(int VAR_0) { #define output_cmd(val) \ if( VAR_0 == val ) { \ gemu_log(#val); \ return; \ } VAR_0 &= 0xff; output_cmd( IPC_RMID ); output_cmd( IPC_SET ); output_cmd( IPC_STAT ); output_cmd( IPC_INFO ); #ifdef __USER_MISC output_cmd( MSG_STAT ); ...
[ "FUNC_0(int VAR_0)\n{", "#define output_cmd(val) \\\nif( VAR_0 == val ) { \\", "gemu_log(#val); \\", "return; \\", "}", "VAR_0 &= 0xff;", "output_cmd( IPC_RMID );", "output_cmd( IPC_SET );", "output_cmd( IPC_STAT );", "output_cmd( IPC_INFO );", "#ifdef __USER_MISC\noutput_cmd( MSG_STAT );", "o...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37 ], [ 39, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [...
10,690
static void extract_mpeg4_header(AVFormatContext *infile) { int mpeg4_count, i, size; AVPacket pkt; AVStream *st; const uint8_t *p; mpeg4_count = 0; for(i=0;i<infile->nb_streams;i++) { st = infile->streams[i]; if (st->codec.codec_id == CODEC_ID_MPEG4 && st...
true
FFmpeg
d445a7e9cc31b94ab1eceb228a7634c79d37496e
static void extract_mpeg4_header(AVFormatContext *infile) { int mpeg4_count, i, size; AVPacket pkt; AVStream *st; const uint8_t *p; mpeg4_count = 0; for(i=0;i<infile->nb_streams;i++) { st = infile->streams[i]; if (st->codec.codec_id == CODEC_ID_MPEG4 && st...
{ "code": [ " printf(\"MPEG4 without extra data: trying to find header\\n\");" ], "line_no": [ 37 ] }
static void FUNC_0(AVFormatContext *VAR_0) { int VAR_1, VAR_2, VAR_3; AVPacket pkt; AVStream *st; const uint8_t *VAR_4; VAR_1 = 0; for(VAR_2=0;VAR_2<VAR_0->nb_streams;VAR_2++) { st = VAR_0->streams[VAR_2]; if (st->codec.codec_id == CODEC_ID_MPEG4 && st->co...
[ "static void FUNC_0(AVFormatContext *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3;", "AVPacket pkt;", "AVStream *st;", "const uint8_t *VAR_4;", "VAR_1 = 0;", "for(VAR_2=0;VAR_2<VAR_0->nb_streams;VAR_2++) {", "st = VAR_0->streams[VAR_2];", "if (st->codec.codec_id == CODEC_ID_MPEG4 &&\nst->codec.extradata_siz...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ...
10,691
void avfilter_unref_buffer(AVFilterBufferRef *ref) { if (!ref) return; av_assert0(ref->buf->refcount > 0); if (!(--ref->buf->refcount)) { if (!ref->buf->free) { store_in_pool(ref); return; } ref->buf->free(ref->buf); } if (ref->exte...
true
FFmpeg
6fb2fd895e858ab93f46e656a322778ee181c307
void avfilter_unref_buffer(AVFilterBufferRef *ref) { if (!ref) return; av_assert0(ref->buf->refcount > 0); if (!(--ref->buf->refcount)) { if (!ref->buf->free) { store_in_pool(ref); return; } ref->buf->free(ref->buf); } if (ref->exte...
{ "code": [], "line_no": [] }
void FUNC_0(AVFilterBufferRef *VAR_0) { if (!VAR_0) return; av_assert0(VAR_0->buf->refcount > 0); if (!(--VAR_0->buf->refcount)) { if (!VAR_0->buf->free) { store_in_pool(VAR_0); return; } VAR_0->buf->free(VAR_0->buf); } if (VAR_0->e...
[ "void FUNC_0(AVFilterBufferRef *VAR_0)\n{", "if (!VAR_0)\nreturn;", "av_assert0(VAR_0->buf->refcount > 0);", "if (!(--VAR_0->buf->refcount)) {", "if (!VAR_0->buf->free) {", "store_in_pool(VAR_0);", "return;", "}", "VAR_0->buf->free(VAR_0->buf);", "}", "if (VAR_0->extended_data != VAR_0->data)\na...
[ 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 ], [ 38 ], [ 40 ] ]
10,693
QmpInputVisitor *qmp_input_visitor_new(QObject *obj, bool strict) { QmpInputVisitor *v; v = g_malloc0(sizeof(*v)); v->visitor.type = VISITOR_INPUT; v->visitor.start_struct = qmp_input_start_struct; v->visitor.end_struct = qmp_input_end_struct; v->visitor.start_list = qmp_input_start_l...
true
qemu
15c2f669e3fb2bc97f7b42d1871f595c0ac24af8
QmpInputVisitor *qmp_input_visitor_new(QObject *obj, bool strict) { QmpInputVisitor *v; v = g_malloc0(sizeof(*v)); v->visitor.type = VISITOR_INPUT; v->visitor.start_struct = qmp_input_start_struct; v->visitor.end_struct = qmp_input_end_struct; v->visitor.start_list = qmp_input_start_l...
{ "code": [ " v->visitor.end_struct = qmp_input_end_struct;", " v->visitor.end_list = qmp_input_end_list;" ], "line_no": [ 17, 23 ] }
QmpInputVisitor *FUNC_0(QObject *obj, bool strict) { QmpInputVisitor *v; v = g_malloc0(sizeof(*v)); v->visitor.type = VISITOR_INPUT; v->visitor.start_struct = qmp_input_start_struct; v->visitor.end_struct = qmp_input_end_struct; v->visitor.start_list = qmp_input_start_list; v->vi...
[ "QmpInputVisitor *FUNC_0(QObject *obj, bool strict)\n{", "QmpInputVisitor *v;", "v = g_malloc0(sizeof(*v));", "v->visitor.type = VISITOR_INPUT;", "v->visitor.start_struct = qmp_input_start_struct;", "v->visitor.end_struct = qmp_input_end_struct;", "v->visitor.start_list = qmp_input_start_list;", "v->v...
[ 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47...
10,694
static void imx_eth_enable_rx(IMXFECState *s) { IMXFECBufDesc bd; bool rx_ring_full; imx_fec_read_bd(&bd, s->rx_descriptor); rx_ring_full = !(bd.flags & ENET_BD_E); if (rx_ring_full) { FEC_PRINTF("RX buffer full\n"); } else if (!s->regs[ENET_RDAR]) { qemu_flush_que...
true
qemu
b2b012afdd9c03ba8a1619f45301d34f358d367b
static void imx_eth_enable_rx(IMXFECState *s) { IMXFECBufDesc bd; bool rx_ring_full; imx_fec_read_bd(&bd, s->rx_descriptor); rx_ring_full = !(bd.flags & ENET_BD_E); if (rx_ring_full) { FEC_PRINTF("RX buffer full\n"); } else if (!s->regs[ENET_RDAR]) { qemu_flush_que...
{ "code": [ "static void imx_eth_enable_rx(IMXFECState *s)", " } else if (!s->regs[ENET_RDAR]) {" ], "line_no": [ 1, 23 ] }
static void FUNC_0(IMXFECState *VAR_0) { IMXFECBufDesc bd; bool rx_ring_full; imx_fec_read_bd(&bd, VAR_0->rx_descriptor); rx_ring_full = !(bd.flags & ENET_BD_E); if (rx_ring_full) { FEC_PRINTF("RX buffer full\n"); } else if (!VAR_0->regs[ENET_RDAR]) { qemu_flush_qu...
[ "static void FUNC_0(IMXFECState *VAR_0)\n{", "IMXFECBufDesc bd;", "bool rx_ring_full;", "imx_fec_read_bd(&bd, VAR_0->rx_descriptor);", "rx_ring_full = !(bd.flags & ENET_BD_E);", "if (rx_ring_full) {", "FEC_PRINTF(\"RX buffer full\\n\");", "} else if (!VAR_0->regs[ENET_RDAR]) {", "qemu_flush_queued_p...
[ 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
10,695
static inline void FUNC(idctSparseColAdd)(pixel *dest, int line_size, DCTELEM *col) { int a0, a1, a2, a3, b0, b1, b2, b3; INIT_CLIP; IDCT_COLS; dest[0] = CLIP(dest[0] + ((a0 + b0) >> COL_SHIFT)); dest += line_size; dest[0] = CLIP(dest[0] + ((...
true
FFmpeg
c23acbaed40101c677dfcfbbfe0d2c230a8e8f44
static inline void FUNC(idctSparseColAdd)(pixel *dest, int line_size, DCTELEM *col) { int a0, a1, a2, a3, b0, b1, b2, b3; INIT_CLIP; IDCT_COLS; dest[0] = CLIP(dest[0] + ((a0 + b0) >> COL_SHIFT)); dest += line_size; dest[0] = CLIP(dest[0] + ((...
{ "code": [ " INIT_CLIP;", " INIT_CLIP;", " dest[0] = CLIP(dest[0] + ((a0 + b0) >> COL_SHIFT));", " dest[0] = CLIP(dest[0] + ((a1 + b1) >> COL_SHIFT));", " dest[0] = CLIP(dest[0] + ((a2 + b2) >> COL_SHIFT));", " dest[0] = CLIP(dest[0] + ((a3 + b3) >> COL_SHIFT));", " d...
static inline void FUNC_0(idctSparseColAdd)(pixel *dest, int line_size, DCTELEM *col) { int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; INIT_CLIP; IDCT_COLS; dest[0] = CLIP(dest[0] + ((VAR_0 + VAR_4) >> COL_SHIFT)); dest += line_size; ...
[ "static inline void FUNC_0(idctSparseColAdd)(pixel *dest, int line_size,\nDCTELEM *col)\n{", "int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "INIT_CLIP;", "IDCT_COLS;", "dest[0] = CLIP(dest[0] + ((VAR_0 + VAR_4) >> COL_SHIFT));", "dest += line_size;", "dest[0] = CLIP(dest[0] + ((VAR_1 + V...
[ 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
10,696
static int bfi_read_packet(AVFormatContext * s, AVPacket * pkt) { BFIContext *bfi = s->priv_data; AVIOContext *pb = s->pb; int ret, audio_offset, video_offset, chunk_size, audio_size = 0; if (bfi->nframes == 0 || pb->eof_reached) { return AVERROR(EIO); /* If all previous chunks wer...
true
FFmpeg
640a2427aafa774b83316b7a8c5c2bdc28bfd269
static int bfi_read_packet(AVFormatContext * s, AVPacket * pkt) { BFIContext *bfi = s->priv_data; AVIOContext *pb = s->pb; int ret, audio_offset, video_offset, chunk_size, audio_size = 0; if (bfi->nframes == 0 || pb->eof_reached) { return AVERROR(EIO); if (!bfi->avflag) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext * VAR_0, AVPacket * VAR_1) { BFIContext *bfi = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6 = 0; if (bfi->nframes == 0 || pb->eof_reached) { return AVERROR(EIO); if (!bfi->avflag) { uint32_t st...
[ "static int FUNC_0(AVFormatContext * VAR_0, AVPacket * VAR_1)\n{", "BFIContext *bfi = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6 = 0;", "if (bfi->nframes == 0 || pb->eof_reached) {", "return AVERROR(EIO);", "if (!bfi->avflag) {", "uint32_t state = 0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 20 ], [ 22 ], [ 24 ], [ 26, 28 ], [ 30 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 57 ], [...
10,697
static int mpc7_decode_frame(AVCodecContext * avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MPCContext *c = avctx->priv_data; GetBitContext gb; uint8_t *bits; in...
true
FFmpeg
836fc7778513fa97c1852444155f82627ecbb8cd
static int mpc7_decode_frame(AVCodecContext * avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MPCContext *c = avctx->priv_data; GetBitContext gb; uint8_t *bits; in...
{ "code": [ " int i, ch, t;", " if(!i || (t == 4)) bands[i].res[ch] = get_bits(&gb, 4);" ], "line_no": [ 19, 59 ] }
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; MPCContext *c = VAR_0->priv_data; GetBitContext gb; uint8_t *bits; int VAR_6, VAR_7...
[ "static int FUNC_0(AVCodecContext * VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "MPCContext *c = VAR_0->priv_data;", "GetBitContext gb;", "uint8_t *bits;", "int VAR_6, VAR_7, VAR_8;", "int VAR_9 = -1;", "Band *bands = c-...
[ 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
10,698
static void qpeg_decode_intra(uint8_t *src, uint8_t *dst, int size, int stride, int width, int height) { int i; int code; int c0, c1; int run, copy; int filled = 0; height--; dst = dst + height * stride; while(size > 0) { code = *src++; size--; run = co...
true
FFmpeg
f63166f8dff65942c633adf32da9847ee1da3a47
static void qpeg_decode_intra(uint8_t *src, uint8_t *dst, int size, int stride, int width, int height) { int i; int code; int c0, c1; int run, copy; int filled = 0; height--; dst = dst + height * stride; while(size > 0) { code = *src++; size--; run = co...
{ "code": [ " while(size > 0) {", "\t size -= copy;", " while(size > 0) {" ], "line_no": [ 25, 127, 25 ] }
static void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5) { int VAR_6; int VAR_7; int VAR_8, VAR_9; int VAR_10, VAR_11; int VAR_12 = 0; VAR_5--; VAR_1 = VAR_1 + VAR_5 * VAR_3; while(VAR_2 > 0) { VAR_7 = *VAR_0++; VAR_2...
[ "static void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{", "int VAR_6;", "int VAR_7;", "int VAR_8, VAR_9;", "int VAR_10, VAR_11;", "int VAR_12 = 0;", "VAR_5--;", "VAR_1 = VAR_1 + VAR_5 * VAR_3;", "while(VAR_2 > 0) {", "VAR_7 = *VAR_0++;", "VAR_2--;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
10,700
static void usb_mtp_handle_reset(USBDevice *dev) { MTPState *s = USB_MTP(dev); trace_usb_mtp_reset(s->dev.addr); #ifdef __linux__ usb_mtp_inotify_cleanup(s); #endif usb_mtp_object_free(s, QTAILQ_FIRST(&s->objects)); s->session = 0; usb_mtp_data_free(s->data_in); s->data_in = NU...
true
qemu
983bff3530782d51c46c8d7c0e17e2a9dfe5fb77
static void usb_mtp_handle_reset(USBDevice *dev) { MTPState *s = USB_MTP(dev); trace_usb_mtp_reset(s->dev.addr); #ifdef __linux__ usb_mtp_inotify_cleanup(s); #endif usb_mtp_object_free(s, QTAILQ_FIRST(&s->objects)); s->session = 0; usb_mtp_data_free(s->data_in); s->data_in = NU...
{ "code": [ "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__", "#ifdef __linux__" ], "line_no": [ 13, 13, 13, 13, 13, 13,...
static void FUNC_0(USBDevice *VAR_0) { MTPState *s = USB_MTP(VAR_0); trace_usb_mtp_reset(s->VAR_0.addr); #ifdef __linux__ usb_mtp_inotify_cleanup(s); #endif usb_mtp_object_free(s, QTAILQ_FIRST(&s->objects)); s->session = 0; usb_mtp_data_free(s->data_in); s->data_in = NULL; ...
[ "static void FUNC_0(USBDevice *VAR_0)\n{", "MTPState *s = USB_MTP(VAR_0);", "trace_usb_mtp_reset(s->VAR_0.addr);", "#ifdef __linux__\nusb_mtp_inotify_cleanup(s);", "#endif\nusb_mtp_object_free(s, QTAILQ_FIRST(&s->objects));", "s->session = 0;", "usb_mtp_data_free(s->data_in);", "s->data_in = NULL;", ...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
10,701
int vfio_region_mmap(VFIORegion *region) { int i, prot = 0; char *name; if (!region->mem) { return 0; } prot |= region->flags & VFIO_REGION_INFO_FLAG_READ ? PROT_READ : 0; prot |= region->flags & VFIO_REGION_INFO_FLAG_WRITE ? PROT_WRITE : 0; for (i = 0; i < region->nr_...
false
qemu
21e00fa55f3fdfcbb20da7c6876c91ef3609b387
int vfio_region_mmap(VFIORegion *region) { int i, prot = 0; char *name; if (!region->mem) { return 0; } prot |= region->flags & VFIO_REGION_INFO_FLAG_READ ? PROT_READ : 0; prot |= region->flags & VFIO_REGION_INFO_FLAG_WRITE ? PROT_WRITE : 0; for (i = 0; i < region->nr_...
{ "code": [], "line_no": [] }
int FUNC_0(VFIORegion *VAR_0) { int VAR_1, VAR_2 = 0; char *VAR_3; if (!VAR_0->mem) { return 0; } VAR_2 |= VAR_0->flags & VFIO_REGION_INFO_FLAG_READ ? PROT_READ : 0; VAR_2 |= VAR_0->flags & VFIO_REGION_INFO_FLAG_WRITE ? PROT_WRITE : 0; for (VAR_1 = 0; VAR_1 < VAR_0->nr...
[ "int FUNC_0(VFIORegion *VAR_0)\n{", "int VAR_1, VAR_2 = 0;", "char *VAR_3;", "if (!VAR_0->mem) {", "return 0;", "}", "VAR_2 |= VAR_0->flags & VFIO_REGION_INFO_FLAG_READ ? PROT_READ : 0;", "VAR_2 |= VAR_0->flags & VFIO_REGION_INFO_FLAG_WRITE ? PROT_WRITE : 0;", "for (VAR_1 = 0; VAR_1 < VAR_0->nr_mmap...
[ 0, 0, 0, 0, 0, 0, 0, 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, 29, 31, 33 ], [ 35 ], [ 37 ], [ 41, 43, 45, 47, 49, 51 ], [ 55 ], [ 59 ], [ 61...
10,702
float64 HELPER(ucf64_subd)(float64 a, float64 b, CPUUniCore32State *env) { return float64_sub(a, b, &env->ucf64.fp_status); }
false
qemu
e8ede0a8bb5298a6979bcf7ed84ef64a64a4e3fe
float64 HELPER(ucf64_subd)(float64 a, float64 b, CPUUniCore32State *env) { return float64_sub(a, b, &env->ucf64.fp_status); }
{ "code": [], "line_no": [] }
float64 FUNC_0(ucf64_subd)(float64 a, float64 b, CPUUniCore32State *env) { return float64_sub(a, b, &env->ucf64.fp_status); }
[ "float64 FUNC_0(ucf64_subd)(float64 a, float64 b, CPUUniCore32State *env)\n{", "return float64_sub(a, b, &env->ucf64.fp_status);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
10,703
static void text_console_do_init(CharDriverState *chr, DisplayState *ds) { TextConsole *s; static int color_inited; s = chr->opaque; chr->chr_write = console_puts; chr->chr_send_event = console_send_event; s->out_fifo.buf = s->out_fifo_buf; s->out_fifo.buf_size = sizeof(s->out_...
false
qemu
7bd427d801e1e3293a634d3c83beadaa90ffb911
static void text_console_do_init(CharDriverState *chr, DisplayState *ds) { TextConsole *s; static int color_inited; s = chr->opaque; chr->chr_write = console_puts; chr->chr_send_event = console_send_event; s->out_fifo.buf = s->out_fifo_buf; s->out_fifo.buf_size = sizeof(s->out_...
{ "code": [], "line_no": [] }
static void FUNC_0(CharDriverState *VAR_0, DisplayState *VAR_1) { TextConsole *s; static int VAR_2; s = VAR_0->opaque; VAR_0->chr_write = console_puts; VAR_0->chr_send_event = console_send_event; s->out_fifo.buf = s->out_fifo_buf; s->out_fifo.buf_size = sizeof(s->out_fifo_buf);...
[ "static void FUNC_0(CharDriverState *VAR_0, DisplayState *VAR_1)\n{", "TextConsole *s;", "static int VAR_2;", "s = VAR_0->opaque;", "VAR_0->chr_write = console_puts;", "VAR_0->chr_send_event = console_send_event;", "s->out_fifo.buf = s->out_fifo_buf;", "s->out_fifo.buf_size = sizeof(s->out_fifo_buf);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49...