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
22,496
static int spapr_vty_init(VIOsPAPRDevice *sdev) { VIOsPAPRVTYDevice *dev = (VIOsPAPRVTYDevice *)sdev; qemu_chr_add_handlers(dev->chardev, vty_can_receive, vty_receive, NULL, dev); return 0;
true
qemu
57285302af51a8bae334c03e1f8243e935373953
static int spapr_vty_init(VIOsPAPRDevice *sdev) { VIOsPAPRVTYDevice *dev = (VIOsPAPRVTYDevice *)sdev; qemu_chr_add_handlers(dev->chardev, vty_can_receive, vty_receive, NULL, dev); return 0;
{ "code": [], "line_no": [] }
static int FUNC_0(VIOsPAPRDevice *VAR_0) { VIOsPAPRVTYDevice *dev = (VIOsPAPRVTYDevice *)VAR_0; qemu_chr_add_handlers(dev->chardev, vty_can_receive, vty_receive, NULL, dev); return 0;
[ "static int FUNC_0(VIOsPAPRDevice *VAR_0)\n{", "VIOsPAPRVTYDevice *dev = (VIOsPAPRVTYDevice *)VAR_0;", "qemu_chr_add_handlers(dev->chardev, vty_can_receive,\nvty_receive, NULL, dev);", "return 0;" ]
[ 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4, 5 ], [ 6 ] ]
22,497
static void exynos4210_ltick_recalc_count(struct tick_timer *s) { uint64_t to_count; if ((s->cnt_run && s->last_tcnto) || (s->int_run && s->last_icnto)) { /* * one or both timers run and not counted to the end; * distance is not passed, recalculate with last_tcnto * last_icnto ...
true
qemu
c3a699be3c63f75b6ea5877080ea9b96b37524c4
static void exynos4210_ltick_recalc_count(struct tick_timer *s) { uint64_t to_count; if ((s->cnt_run && s->last_tcnto) || (s->int_run && s->last_icnto)) { if (s->last_tcnto) { to_count = s->last_tcnto * s->last_icnto; } else { to_count = s->last...
{ "code": [ " to_count = s->last_tcnto * s->last_icnto;", " s->distance = s->tcntb * s->icntb;" ], "line_no": [ 23, 37 ] }
static void FUNC_0(struct tick_timer *VAR_0) { uint64_t to_count; if ((VAR_0->cnt_run && VAR_0->last_tcnto) || (VAR_0->int_run && VAR_0->last_icnto)) { if (VAR_0->last_tcnto) { to_count = VAR_0->last_tcnto * VAR_0->last_icnto; } else { to_count ...
[ "static void FUNC_0(struct tick_timer *VAR_0)\n{", "uint64_t to_count;", "if ((VAR_0->cnt_run && VAR_0->last_tcnto) || (VAR_0->int_run && VAR_0->last_icnto)) {", "if (VAR_0->last_tcnto) {", "to_count = VAR_0->last_tcnto * VAR_0->last_icnto;", "} else {", "to_count = VAR_0->last_icnto;", "}", "} else...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 59 ], [ 61...
22,498
static void mirror_start_job(const char *job_id, BlockDriverState *bs, int creation_flags, BlockDriverState *target, const char *replaces, int64_t speed, uint32_t granularity, int64_t buf_size, BlockM...
true
qemu
d3c8c67469ee70fcae116d5abc277a7ebc8a19fd
static void mirror_start_job(const char *job_id, BlockDriverState *bs, int creation_flags, BlockDriverState *target, const char *replaces, int64_t speed, uint32_t granularity, int64_t buf_size, BlockM...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0, BlockDriverState *VAR_1, int VAR_2, BlockDriverState *VAR_3, const char *VAR_4, int64_t VAR_5, uint32_t VAR_6, int64_t VAR_7, BlockMirrorBackingMode VAR_8, ...
[ "static void FUNC_0(const char *VAR_0, BlockDriverState *VAR_1,\nint VAR_2, BlockDriverState *VAR_3,\nconst char *VAR_4, int64_t VAR_5,\nuint32_t VAR_6, int64_t VAR_7,\nBlockMirrorBackingMode VAR_8,\nBlockdevOnError VAR_9,\nBlockdevOnError VAR_10,\nbool VAR_11,\nBlockCompletionFunc *VAR_12,\nvoid *VAR_13,\nconst Bl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 52 ], [ 56 ], [ 60 ], [ 62 ], [...
22,499
static int asf_read_packet(AVFormatContext *s, AVPacket *pkt) { ASFContext *asf = s->priv_data; ASFStream *asf_st = 0; ByteIOContext *pb = &s->pb; //static int pc = 0; for (;;) { int rsize = 0; if (asf->packet_size_left < FRAME_HEADER_SIZE || asf->packet_segments...
true
FFmpeg
b6eaae39b4913db81d9e3d0ad6a2f6261757d83d
static int asf_read_packet(AVFormatContext *s, AVPacket *pkt) { ASFContext *asf = s->priv_data; ASFStream *asf_st = 0; ByteIOContext *pb = &s->pb; for (;;) { int rsize = 0; if (asf->packet_size_left < FRAME_HEADER_SIZE || asf->packet_segments < 1) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { ASFContext *asf = VAR_0->priv_data; ASFStream *asf_st = 0; ByteIOContext *pb = &VAR_0->pb; for (;;) { int VAR_2 = 0; if (asf->packet_size_left < FRAME_HEADER_SIZE || asf->packet_segments < 1) { ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "ASFContext *asf = VAR_0->priv_data;", "ASFStream *asf_st = 0;", "ByteIOContext *pb = &VAR_0->pb;", "for (;;) {", "int VAR_2 = 0;", "if (asf->packet_size_left < FRAME_HEADER_SIZE\n|| asf->packet_segments < 1) {", "int VAR_3 = asf->packet...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 40 ], [ 44, 46 ], [ 48 ], [ 50 ], [ 52 ], [ 54 ], [ 58 ], [...
22,500
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; TiffContext *const s = avctx->priv_data; AVFrame *picture = data; AVFrame *const p = &s->picture; const uint...
false
FFmpeg
1ec83d9a9e472f485897ac92bad9631d551a8c5b
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; TiffContext *const s = avctx->priv_data; AVFrame *picture = data; AVFrame *const p = &s->picture; const uint...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; TiffContext *const s = VAR_0->priv_data; AVFrame *picture = VAR_1; AVFrame *const p = &s->picture; const uint8_t *VAR...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "TiffContext *const s = VAR_0->priv_data;", "AVFrame *picture = VAR_1;", "AVFrame *const p = &s->picture;", "const uint8_t *VAR_6 = VAR_4, *end_bu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47, 49 ...
22,501
void ff_limiter_init_x86(LimiterDSPContext *dsp, int bpp) { int cpu_flags = av_get_cpu_flags(); if (ARCH_X86_64 && EXTERNAL_SSE2(cpu_flags)) { if (bpp <= 8) { dsp->limiter = ff_limiter_8bit_sse2; } } if (ARCH_X86_64 && EXTERNAL_SSE4(cpu_flags)) { if (bpp > ...
false
FFmpeg
5688fd77b57f1dd454990dc6fe48c6a3a1729eca
void ff_limiter_init_x86(LimiterDSPContext *dsp, int bpp) { int cpu_flags = av_get_cpu_flags(); if (ARCH_X86_64 && EXTERNAL_SSE2(cpu_flags)) { if (bpp <= 8) { dsp->limiter = ff_limiter_8bit_sse2; } } if (ARCH_X86_64 && EXTERNAL_SSE4(cpu_flags)) { if (bpp > ...
{ "code": [], "line_no": [] }
void FUNC_0(LimiterDSPContext *VAR_0, int VAR_1) { int VAR_2 = av_get_cpu_flags(); if (ARCH_X86_64 && EXTERNAL_SSE2(VAR_2)) { if (VAR_1 <= 8) { VAR_0->limiter = ff_limiter_8bit_sse2; } } if (ARCH_X86_64 && EXTERNAL_SSE4(VAR_2)) { if (VAR_1 > 8) { ...
[ "void FUNC_0(LimiterDSPContext *VAR_0, int VAR_1)\n{", "int VAR_2 = av_get_cpu_flags();", "if (ARCH_X86_64 && EXTERNAL_SSE2(VAR_2)) {", "if (VAR_1 <= 8) {", "VAR_0->limiter = ff_limiter_8bit_sse2;", "}", "}", "if (ARCH_X86_64 && EXTERNAL_SSE4(VAR_2)) {", "if (VAR_1 > 8) {", "VAR_0->limiter = ff_li...
[ 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 ] ]
22,502
void *virtqueue_pop(VirtQueue *vq, size_t sz) { unsigned int i, head, max; hwaddr desc_pa = vq->vring.desc; VirtIODevice *vdev = vq->vdev; VirtQueueElement *elem; unsigned out_num, in_num; hwaddr addr[VIRTQUEUE_MAX_SIZE]; struct iovec iov[VIRTQUEUE_MAX_SIZE]; VRingDesc desc; if (virt...
true
qemu
afd9096eb1882f23929f5b5c177898ed231bac66
void *virtqueue_pop(VirtQueue *vq, size_t sz) { unsigned int i, head, max; hwaddr desc_pa = vq->vring.desc; VirtIODevice *vdev = vq->vdev; VirtQueueElement *elem; unsigned out_num, in_num; hwaddr addr[VIRTQUEUE_MAX_SIZE]; struct iovec iov[VIRTQUEUE_MAX_SIZE]; VRingDesc desc; if (virt...
{ "code": [], "line_no": [] }
void *FUNC_0(VirtQueue *VAR_0, size_t VAR_1) { unsigned int VAR_2, VAR_3, VAR_4; hwaddr desc_pa = VAR_0->vring.desc; VirtIODevice *vdev = VAR_0->vdev; VirtQueueElement *elem; unsigned VAR_5, VAR_6; hwaddr addr[VIRTQUEUE_MAX_SIZE]; struct iovec VAR_7[VIRTQUEUE_MAX_SIZE]; VRingDesc desc; ...
[ "void *FUNC_0(VirtQueue *VAR_0, size_t VAR_1)\n{", "unsigned int VAR_2, VAR_3, VAR_4;", "hwaddr desc_pa = VAR_0->vring.desc;", "VirtIODevice *vdev = VAR_0->vdev;", "VirtQueueElement *elem;", "unsigned VAR_5, VAR_6;", "hwaddr addr[VIRTQUEUE_MAX_SIZE];", "struct iovec VAR_7[VIRTQUEUE_MAX_SIZE];", "VRi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 15 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ], [ 23 ], [ 24 ],...
22,504
static int img_open_password(BlockBackend *blk, const char *filename, int flags, bool quiet) { BlockDriverState *bs; char password[256]; bs = blk_bs(blk); if (bdrv_is_encrypted(bs) && bdrv_key_required(bs) && !(flags & BDRV_O_NO_IO)) { qprintf(quiet...
true
qemu
788cf9f8c8cbda53843e060540f3e91a060eb744
static int img_open_password(BlockBackend *blk, const char *filename, int flags, bool quiet) { BlockDriverState *bs; char password[256]; bs = blk_bs(blk); if (bdrv_is_encrypted(bs) && bdrv_key_required(bs) && !(flags & BDRV_O_NO_IO)) { qprintf(quiet...
{ "code": [ " return 0;", "static int img_open_password(BlockBackend *blk, const char *filename,", " int flags, bool quiet)", " BlockDriverState *bs;", " char password[256];", " bs = blk_bs(blk);", " if (bdrv_is_encrypted(bs) && bdrv_key_required(...
static int FUNC_0(BlockBackend *VAR_0, const char *VAR_1, int VAR_2, bool VAR_3) { BlockDriverState *bs; char VAR_4[256]; bs = blk_bs(VAR_0); if (bdrv_is_encrypted(bs) && bdrv_key_required(bs) && !(VAR_2 & BDRV_O_NO_IO)) { qprintf(VAR_3, "Disk image...
[ "static int FUNC_0(BlockBackend *VAR_0, const char *VAR_1,\nint VAR_2, bool VAR_3)\n{", "BlockDriverState *bs;", "char VAR_4[256];", "bs = blk_bs(VAR_0);", "if (bdrv_is_encrypted(bs) && bdrv_key_required(bs) &&\n!(VAR_2 & BDRV_O_NO_IO)) {", "qprintf(VAR_3, \"Disk image '%s' is encrypted.\\n\", VAR_1);", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
22,505
static void dump(unsigned char *buf,size_t len) { int i; for(i=0;i<len;i++) { if ((i&15)==0) printf("%04x ",i); printf("%02x ",buf[i]); if ((i&15)==15) printf("\n"); } printf("\n"); }
true
FFmpeg
f19af812a32c1398d48c3550d11dbc6aafbb2bfc
static void dump(unsigned char *buf,size_t len) { int i; for(i=0;i<len;i++) { if ((i&15)==0) printf("%04x ",i); printf("%02x ",buf[i]); if ((i&15)==15) printf("\n"); } printf("\n"); }
{ "code": [ "\tint i;", "\tint i;", "\tint i;", "\tint i;", "\tfor(i=0;i<len;i++) {", "\t\tif ((i&15)==0) printf(\"%04x \",i);", "\t\tprintf(\"%02x \",buf[i]);", "\t\tif ((i&15)==15) printf(\"\\n\");", "\tprintf(\"\\n\");" ], "line_no": [ 5, 5, 5, 5, 7, ...
static void FUNC_0(unsigned char *VAR_0,size_t VAR_1) { int VAR_2; for(VAR_2=0;VAR_2<VAR_1;VAR_2++) { if ((VAR_2&15)==0) printf("%04x ",VAR_2); printf("%02x ",VAR_0[VAR_2]); if ((VAR_2&15)==15) printf("\n"); } printf("\n"); }
[ "static void FUNC_0(unsigned char *VAR_0,size_t VAR_1)\n{", "int VAR_2;", "for(VAR_2=0;VAR_2<VAR_1;VAR_2++) {", "if ((VAR_2&15)==0) printf(\"%04x \",VAR_2);", "printf(\"%02x \",VAR_0[VAR_2]);", "if ((VAR_2&15)==15) printf(\"\\n\");", "}", "printf(\"\\n\");", "}" ]
[ 0, 1, 1, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
22,506
static int hls_decode_entry_wpp(AVCodecContext *avctxt, void *input_ctb_row, int job, int self_id) { HEVCContext *s1 = avctxt->priv_data, *s; HEVCLocalContext *lc; int ctb_size = 1<< s1->ps.sps->log2_ctb_size; int more_data = 1; int *ctb_row_p = input_ctb_row; int ctb_row = ctb_r...
true
FFmpeg
74e4948235bc8f8946eeca20525258bbf383f75d
static int hls_decode_entry_wpp(AVCodecContext *avctxt, void *input_ctb_row, int job, int self_id) { HEVCContext *s1 = avctxt->priv_data, *s; HEVCLocalContext *lc; int ctb_size = 1<< s1->ps.sps->log2_ctb_size; int more_data = 1; int *ctb_row_p = input_ctb_row; int ctb_row = ctb_r...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int VAR_2, int VAR_3) { HEVCContext *s1 = VAR_0->priv_data, *s; HEVCLocalContext *lc; int VAR_4 = 1<< s1->ps.sps->log2_ctb_size; int VAR_5 = 1; int *VAR_6 = VAR_1; int VAR_7 = VAR_6[VAR_2]; int VAR_8 = s1->sh.slice_ctb_ad...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int VAR_2, int VAR_3)\n{", "HEVCContext *s1 = VAR_0->priv_data, *s;", "HEVCLocalContext *lc;", "int VAR_4 = 1<< s1->ps.sps->log2_ctb_size;", "int VAR_5 = 1;", "int *VAR_6 = VAR_1;", "int VAR_7 = VAR_6[VAR_2];", "int VAR_8 = s1->sh.slice_c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49 ], [...
22,508
static int mpegts_raw_read_packet(AVFormatContext *s, AVPacket *pkt) { MpegTSContext *ts = s->priv_data; int ret, i; int64_t pcr_h, next_pcr_h, pos; int pcr_l, next_pcr_l; uint8_t pcr_buf[12]; uint8_t *data; if (av_new_packet(pkt, TS_PACKET_SIZE) ...
true
FFmpeg
5afe1d27912be9b643ffb4ddc21f6d920260dbb0
static int mpegts_raw_read_packet(AVFormatContext *s, AVPacket *pkt) { MpegTSContext *ts = s->priv_data; int ret, i; int64_t pcr_h, next_pcr_h, pos; int pcr_l, next_pcr_l; uint8_t pcr_buf[12]; uint8_t *data; if (av_new_packet(pkt, TS_PACKET_SIZE) ...
{ "code": [ " uint8_t *data;", " uint8_t *data;" ], "line_no": [ 17, 17 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { MpegTSContext *ts = VAR_0->priv_data; int VAR_2, VAR_3; int64_t pcr_h, next_pcr_h, pos; int VAR_4, VAR_5; uint8_t pcr_buf[12]; uint8_t *data; if (av_new_packet(VAR_1, TS_PACKET_SIZE) < 0...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVPacket *VAR_1)\n{", "MpegTSContext *ts = VAR_0->priv_data;", "int VAR_2, VAR_3;", "int64_t pcr_h, next_pcr_h, pos;", "int VAR_4, VAR_5;", "uint8_t pcr_buf[12];", "uint8_t *data;", "if (av_new_packet(VAR_1, TS_PACKET_SIZE) < 0)\nreturn AVERROR(ENOMEM);", ...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [...
22,509
static inline void RENAME(rgb24tobgr16)(const uint8_t *src, uint8_t *dst, int src_size) { const uint8_t *s = src; const uint8_t *end; const uint8_t *mm_end; uint16_t *d = (uint16_t *)dst; end = s + src_size; __asm__ volatile(PREFETCH" %0"::"m"(*src):"memory"); __asm__ volatile( ...
true
FFmpeg
90540c2d5ace46a1e9789c75fde0b1f7dbb12a9b
static inline void RENAME(rgb24tobgr16)(const uint8_t *src, uint8_t *dst, int src_size) { const uint8_t *s = src; const uint8_t *end; const uint8_t *mm_end; uint16_t *d = (uint16_t *)dst; end = s + src_size; __asm__ volatile(PREFETCH" %0"::"m"(*src):"memory"); __asm__ volatile( ...
{ "code": [ " PREFETCH\" 32%1 \\n\\t\"", " \"movd %1, %%mm0 \\n\\t\"", " PREFETCH\" 32%1 \\n\\t\"", " PREFETCH\" 32%1 \\n\\t\"", " \"movd %1, %%mm0 \\n\\t\"", " MOVN...
static inline void FUNC_0(rgb24tobgr16)(const uint8_t *src, uint8_t *dst, int src_size) { const uint8_t *VAR_0 = src; const uint8_t *VAR_1; const uint8_t *VAR_2; uint16_t *d = (uint16_t *)dst; VAR_1 = VAR_0 + src_size; __asm__ volatile(PREFETCH" %0"::"m"(*src):"memory"); __asm__ v...
[ "static inline void FUNC_0(rgb24tobgr16)(const uint8_t *src, uint8_t *dst, int src_size)\n{", "const uint8_t *VAR_0 = src;", "const uint8_t *VAR_1;", "const uint8_t *VAR_2;", "uint16_t *d = (uint16_t *)dst;", "VAR_1 = VAR_0 + src_size;", "__asm__ volatile(PREFETCH\" %0\"::\"m\"(*src):\"memory\");", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19, 21, 23 ], [ 25 ], [ 27 ], [ 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59,...
22,510
static void gen_mfdcrx(DisasContext *ctx) { #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); return; } /* NIP cannot be restored if the memory exception comes from an he...
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_mfdcrx(DisasContext *ctx) { #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); return; } gen_update_nip(ctx, ctx->nip - 4); gen_helper_load_dcr(...
{ "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 if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); return; } gen_update_nip(VAR_0, VAR_0->nip - 4); gen_helper_l...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "#else\nif (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "return;", "}", "gen_update_nip(VAR_0, VAR_0->nip - 4);", "gen_helper_load_dcr(c...
[ 0, 1, 1, 1, 0, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 29, 31 ] ]
22,512
static void png_save2(const char *filename, uint32_t *bitmap, int w, int h) { int x, y, v; FILE *f; char fname[40], fname2[40]; char command[1024]; snprintf(fname, 40, "%s.ppm", filename); f = fopen(fname, "w"); if (!f) { perror(fname); exit(1); } fpri...
false
FFmpeg
e1c48b7aaedc5deb6f22ced02dfe4f356bf3f421
static void png_save2(const char *filename, uint32_t *bitmap, int w, int h) { int x, y, v; FILE *f; char fname[40], fname2[40]; char command[1024]; snprintf(fname, 40, "%s.ppm", filename); f = fopen(fname, "w"); if (!f) { perror(fname); exit(1); } fpri...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0, uint32_t *VAR_1, int VAR_2, int VAR_3) { int VAR_4, VAR_5, VAR_6; FILE *f; char VAR_7[40], VAR_8[40]; char VAR_9[1024]; snprintf(VAR_7, 40, "%s.ppm", VAR_0); f = fopen(VAR_7, "VAR_2"); if (!f) { perror(VAR_7); exit(1); ...
[ "static void FUNC_0(const char *VAR_0, uint32_t *VAR_1, int VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5, VAR_6;", "FILE *f;", "char VAR_7[40], VAR_8[40];", "char VAR_9[1024];", "snprintf(VAR_7, 40, \"%s.ppm\", VAR_0);", "f = fopen(VAR_7, \"VAR_2\");", "if (!f) {", "perror(VAR_7);", "exit(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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31, 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
22,513
static int spdif_write_packet(struct AVFormatContext *s, AVPacket *pkt) { IEC61937Context *ctx = s->priv_data; int ret, padding; ctx->out_buf = pkt->data; ctx->out_bytes = pkt->size; ctx->length_code = FFALIGN(pkt->size, 2) << 3; ctx->use_preamble = 1; ctx->extra_bswap = 0; ...
false
FFmpeg
af1e8ffdad4ae0a6d73e8d26d5893739e3c7a389
static int spdif_write_packet(struct AVFormatContext *s, AVPacket *pkt) { IEC61937Context *ctx = s->priv_data; int ret, padding; ctx->out_buf = pkt->data; ctx->out_bytes = pkt->size; ctx->length_code = FFALIGN(pkt->size, 2) << 3; ctx->use_preamble = 1; ctx->extra_bswap = 0; ...
{ "code": [], "line_no": [] }
static int FUNC_0(struct AVFormatContext *VAR_0, AVPacket *VAR_1) { IEC61937Context *ctx = VAR_0->priv_data; int VAR_2, VAR_3; ctx->out_buf = VAR_1->data; ctx->out_bytes = VAR_1->size; ctx->length_code = FFALIGN(VAR_1->size, 2) << 3; ctx->use_preamble = 1; ctx->extra_bswap = 0; ...
[ "static int FUNC_0(struct AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "IEC61937Context *ctx = VAR_0->priv_data;", "int VAR_2, VAR_3;", "ctx->out_buf = VAR_1->data;", "ctx->out_bytes = VAR_1->size;", "ctx->length_code = FFALIGN(VAR_1->size, 2) << 3;", "ctx->use_preamble = 1;", "ctx->extra_bswap = 0;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51...
22,514
av_cold void ff_rl_init(RLTable *rl, uint8_t static_store[2][2 * MAX_RUN + MAX_LEVEL + 3]) { int8_t max_level[MAX_RUN + 1], max_run[MAX_LEVEL + 1]; uint8_t index_run[MAX_RUN + 1]; int last, run, level, start, end, i; /* If table is static, we can quit if rl->max_level[0]...
false
FFmpeg
1b1bb2c4efc126d74d44d8c421860c85f932ecb1
av_cold void ff_rl_init(RLTable *rl, uint8_t static_store[2][2 * MAX_RUN + MAX_LEVEL + 3]) { int8_t max_level[MAX_RUN + 1], max_run[MAX_LEVEL + 1]; uint8_t index_run[MAX_RUN + 1]; int last, run, level, start, end, i; if (static_store && rl->max_level[0]) r...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(RLTable *rl, uint8_t static_store[2][2 * MAX_RUN + MAX_LEVEL + 3]) { int8_t max_level[MAX_RUN + 1], max_run[MAX_LEVEL + 1]; uint8_t index_run[MAX_RUN + 1]; int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5; if (static_store && rl->max_level[0]) ...
[ "av_cold void FUNC_0(RLTable *rl,\nuint8_t static_store[2][2 * MAX_RUN + MAX_LEVEL + 3])\n{", "int8_t max_level[MAX_RUN + 1], max_run[MAX_LEVEL + 1];", "uint8_t index_run[MAX_RUN + 1];", "int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;", "if (static_store && rl->max_level[0])\nreturn;", "for (VAR_0 = 0; VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17, 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
22,515
static void gen_slbie(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_slbie(cpu_env, cpu_gpr[rB(ctx->opcode)]); #endif }
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_slbie(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_slbie(cpu_env, cpu_gpr[rB(ctx->opcode)]); #endif }
{ "code": [ " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(ctx->pr)) {", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(...
static void FUNC_0(DisasContext *VAR_0) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_slbie(cpu_env, cpu_gpr[rB(VAR_0->opcode)]); #endif...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "#else\nif (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "return;", "}", "gen_helper_slbie(cpu_env, cpu_gpr[rB(VAR_0->opcode)]);", "#endi...
[ 0, 1, 1, 1, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ] ]
22,516
static int usb_hid_handle_data(USBDevice *dev, USBPacket *p) { USBHIDState *s = (USBHIDState *)dev; int ret = 0; switch(p->pid) { case USB_TOKEN_IN: if (p->devep == 1) { int64_t curtime = qemu_get_clock_ns(vm_clock); if (!s->changed && (!s->idle || s->next_idle_...
true
qemu
4f4321c11ff6e98583846bfd6f0e81954924b003
static int usb_hid_handle_data(USBDevice *dev, USBPacket *p) { USBHIDState *s = (USBHIDState *)dev; int ret = 0; switch(p->pid) { case USB_TOKEN_IN: if (p->devep == 1) { int64_t curtime = qemu_get_clock_ns(vm_clock); if (!s->changed && (!s->idle || s->next_idle_...
{ "code": [ " ret = usb_pointer_poll(s, p->data, p->len);", " ret = usb_keyboard_poll(s, p->data, p->len);" ], "line_no": [ 27, 33 ] }
static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1) { USBHIDState *s = (USBHIDState *)VAR_0; int VAR_2 = 0; switch(VAR_1->pid) { case USB_TOKEN_IN: if (VAR_1->devep == 1) { int64_t curtime = qemu_get_clock_ns(vm_clock); if (!s->changed && (!s->idle || s->next_...
[ "static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1)\n{", "USBHIDState *s = (USBHIDState *)VAR_0;", "int VAR_2 = 0;", "switch(VAR_1->pid) {", "case USB_TOKEN_IN:\nif (VAR_1->devep == 1) {", "int64_t curtime = qemu_get_clock_ns(vm_clock);", "if (!s->changed && (!s->idle || s->next_idle_clock - curtime ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
22,517
int av_opencl_init(AVDictionary *options, AVOpenCLExternalEnv *ext_opencl_env) { int ret = 0; AVDictionaryEntry *opt_build_entry; AVDictionaryEntry *opt_platform_entry; AVDictionaryEntry *opt_device_entry; LOCK_OPENCL if (!gpu_env.init_count) { opt_platform_entry = av_dict_get(op...
true
FFmpeg
322428c851980396485d4c6bb4cfe79db43467f8
int av_opencl_init(AVDictionary *options, AVOpenCLExternalEnv *ext_opencl_env) { int ret = 0; AVDictionaryEntry *opt_build_entry; AVDictionaryEntry *opt_platform_entry; AVDictionaryEntry *opt_device_entry; LOCK_OPENCL if (!gpu_env.init_count) { opt_platform_entry = av_dict_get(op...
{ "code": [ " gpu_env.usr_spec_dev_info.platform_idx = strtol(opt_platform_entry->value, NULL, 10);", " gpu_env.usr_spec_dev_info.dev_idx = strtol(opt_device_entry->value, NULL, 10);" ], "line_no": [ 29, 35 ] }
int FUNC_0(AVDictionary *VAR_0, AVOpenCLExternalEnv *VAR_1) { int VAR_2 = 0; AVDictionaryEntry *opt_build_entry; AVDictionaryEntry *opt_platform_entry; AVDictionaryEntry *opt_device_entry; LOCK_OPENCL if (!gpu_env.init_count) { opt_platform_entry = av_dict_get(VAR_0, "platform_id...
[ "int FUNC_0(AVDictionary *VAR_0, AVOpenCLExternalEnv *VAR_1)\n{", "int VAR_2 = 0;", "AVDictionaryEntry *opt_build_entry;", "AVDictionaryEntry *opt_platform_entry;", "AVDictionaryEntry *opt_device_entry;", "LOCK_OPENCL\nif (!gpu_env.init_count) {", "opt_platform_entry = av_dict_get(VAR_0, \"platform_idx\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 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 ], [ 45 ...
22,518
static int msf_read_header(AVFormatContext *s) { unsigned codec, align, size; AVStream *st; avio_skip(s->pb, 4); st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); st->codec->codec_type = AVMEDIA_TYPE_AUDIO; codec = avio_rb32(s->pb); ...
true
FFmpeg
689a8674131c3852fc78eff1d7c044850d263e22
static int msf_read_header(AVFormatContext *s) { unsigned codec, align, size; AVStream *st; avio_skip(s->pb, 4); st = avformat_new_stream(s, NULL); if (!st) return AVERROR(ENOMEM); st->codec->codec_type = AVMEDIA_TYPE_AUDIO; codec = avio_rb32(s->pb); ...
{ "code": [ " if (st->codec->channels <= 0)" ], "line_no": [ 29 ] }
static int FUNC_0(AVFormatContext *VAR_0) { unsigned VAR_1, VAR_2, VAR_3; AVStream *st; avio_skip(VAR_0->pb, 4); st = avformat_new_stream(VAR_0, NULL); if (!st) return AVERROR(ENOMEM); st->VAR_1->codec_type = AVMEDIA_TYPE_AUDIO; VAR_1 = avio_rb32(VAR_...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "unsigned VAR_1, VAR_2, VAR_3;", "AVStream *st;", "avio_skip(VAR_0->pb, 4);", "st = avformat_new_stream(VAR_0, NULL);", "if (!st)\nreturn AVERROR(ENOMEM);", "st->VAR_1->codec_type = AVMEDIA_TYPE_AUDIO;", "VAR_1 = avio_rb32(VAR_0->pb);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51...
22,519
void dump_exec_info(FILE *f, fprintf_function cpu_fprintf) { int i, target_code_size, max_target_code_size; int direct_jmp_count, direct_jmp2_count, cross_page; TranslationBlock *tb; target_code_size = 0; max_target_code_size = 0; cross_page = 0; direct_jmp_count = 0; direct_j...
true
qemu
b125f9dc7bd68cd4c57189db4da83b0620b28a72
void dump_exec_info(FILE *f, fprintf_function cpu_fprintf) { int i, target_code_size, max_target_code_size; int direct_jmp_count, direct_jmp2_count, cross_page; TranslationBlock *tb; target_code_size = 0; max_target_code_size = 0; cross_page = 0; direct_jmp_count = 0; direct_j...
{ "code": [ " tcg_ctx.code_gen_buffer_max_size);" ], "line_no": [ 63 ] }
void FUNC_0(FILE *VAR_0, fprintf_function VAR_1) { int VAR_2, VAR_3, VAR_4; int VAR_5, VAR_6, VAR_7; TranslationBlock *tb; VAR_3 = 0; VAR_4 = 0; VAR_7 = 0; VAR_5 = 0; VAR_6 = 0; for (VAR_2 = 0; VAR_2 < tcg_ctx.tb_ctx.nb_tbs; VAR_2++) { tb = &tcg_ctx.tb_ctx.tbs[VA...
[ "void FUNC_0(FILE *VAR_0, fprintf_function VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "int VAR_5, VAR_6, VAR_7;", "TranslationBlock *tb;", "VAR_3 = 0;", "VAR_4 = 0;", "VAR_7 = 0;", "VAR_5 = 0;", "VAR_6 = 0;", "for (VAR_2 = 0; VAR_2 < tcg_ctx.tb_ctx.nb_tbs; VAR_2++) {", "tb = &tcg_ctx.tb_ctx.tbs[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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
22,520
static sd_rsp_type_t sd_normal_command(SDState *sd, SDRequest req) { uint32_t rca = 0x0000; uint64_t addr = (sd->ocr & (1 << 30)) ? (uint64_t) req.arg << 9 : req.arg; if (sd_cmd_type[req.cmd] == sd_ac || sd_cmd_type[req.cmd] == sd_adtc) rca = req.arg >> 16; ...
true
qemu
39e594dbcd897849f2ca95b3310ea00fff29ea99
static sd_rsp_type_t sd_normal_command(SDState *sd, SDRequest req) { uint32_t rca = 0x0000; uint64_t addr = (sd->ocr & (1 << 30)) ? (uint64_t) req.arg << 9 : req.arg; if (sd_cmd_type[req.cmd] == sd_ac || sd_cmd_type[req.cmd] == sd_adtc) rca = req.arg >> 16; ...
{ "code": [], "line_no": [] }
static sd_rsp_type_t FUNC_0(SDState *sd, SDRequest req) { uint32_t rca = 0x0000; uint64_t addr = (sd->ocr & (1 << 30)) ? (uint64_t) req.arg << 9 : req.arg; if (sd_cmd_type[req.cmd] == sd_ac || sd_cmd_type[req.cmd] == sd_adtc) rca = req.arg >> 16; DPRINTF("C...
[ "static sd_rsp_type_t FUNC_0(SDState *sd,\nSDRequest req)\n{", "uint32_t rca = 0x0000;", "uint64_t addr = (sd->ocr & (1 << 30)) ? (uint64_t) req.arg << 9 : req.arg;", "if (sd_cmd_type[req.cmd] == sd_ac || sd_cmd_type[req.cmd] == sd_adtc)\nrca = req.arg >> 16;", "DPRINTF(\"CMD%d 0x%08x state %d\\n\", req.cmd...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6, 7 ], [ 8 ], [ 9 ], [ 11, 12 ], [ 13, 14 ], [ 15, 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21, 22, 23 ], [ 24 ], [ 25 ], [ ...
22,521
static int32_t tag_tree_size(uint16_t w, uint16_t h) { uint32_t res = 0; while (w > 1 || h > 1) { res += w * h; if (res + 1 >= INT32_MAX) return -1; w = (w + 1) >> 1; h = (h + 1) >> 1; } return (int32_t)(res + 1); }
false
FFmpeg
84a6bc23570c17ce91071e41431103f709c0d595
static int32_t tag_tree_size(uint16_t w, uint16_t h) { uint32_t res = 0; while (w > 1 || h > 1) { res += w * h; if (res + 1 >= INT32_MAX) return -1; w = (w + 1) >> 1; h = (h + 1) >> 1; } return (int32_t)(res + 1); }
{ "code": [], "line_no": [] }
static int32_t FUNC_0(uint16_t w, uint16_t h) { uint32_t res = 0; while (w > 1 || h > 1) { res += w * h; if (res + 1 >= INT32_MAX) return -1; w = (w + 1) >> 1; h = (h + 1) >> 1; } return (int32_t)(res + 1); }
[ "static int32_t FUNC_0(uint16_t w, uint16_t h)\n{", "uint32_t res = 0;", "while (w > 1 || h > 1) {", "res += w * h;", "if (res + 1 >= INT32_MAX)\nreturn -1;", "w = (w + 1) >> 1;", "h = (h + 1) >> 1;", "}", "return (int32_t)(res + 1);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
22,522
static int mov_write_packet(AVFormatContext *s, AVPacket *pkt) { MOVContext *mov = s->priv_data; ByteIOContext *pb = s->pb; MOVTrack *trk = &mov->tracks[pkt->stream_index]; AVCodecContext *enc = trk->enc; unsigned int samplesInChunk = 0; int size= pkt->size; if (url_is_streamed(s->...
false
FFmpeg
e95580e70a8c0102cc2a399dff25307211a9b7ca
static int mov_write_packet(AVFormatContext *s, AVPacket *pkt) { MOVContext *mov = s->priv_data; ByteIOContext *pb = s->pb; MOVTrack *trk = &mov->tracks[pkt->stream_index]; AVCodecContext *enc = trk->enc; unsigned int samplesInChunk = 0; int size= pkt->size; if (url_is_streamed(s->...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { MOVContext *mov = VAR_0->priv_data; ByteIOContext *pb = VAR_0->pb; MOVTrack *trk = &mov->tracks[VAR_1->stream_index]; AVCodecContext *enc = trk->enc; unsigned int VAR_2 = 0; int VAR_3= VAR_1->VAR_3; if (url_is_streamed(VA...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "MOVContext *mov = VAR_0->priv_data;", "ByteIOContext *pb = VAR_0->pb;", "MOVTrack *trk = &mov->tracks[VAR_1->stream_index];", "AVCodecContext *enc = trk->enc;", "unsigned int VAR_2 = 0;", "int VAR_3= VAR_1->VAR_3;", "if (url_is_streamed...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
22,523
static inline void RENAME(rgb24tobgr24)(const uint8_t *src, uint8_t *dst, long src_size) { unsigned i; #if COMPILE_TEMPLATE_MMX x86_reg mmx_size= 23 - src_size; __asm__ volatile ( "test %%"REG_a", %%"REG_a" \n\t" "jns 2f \n\...
false
FFmpeg
d1adad3cca407f493c3637e20ecd4f7124e69212
static inline void RENAME(rgb24tobgr24)(const uint8_t *src, uint8_t *dst, long src_size) { unsigned i; #if COMPILE_TEMPLATE_MMX x86_reg mmx_size= 23 - src_size; __asm__ volatile ( "test %%"REG_a", %%"REG_a" \n\t" "jns 2f \n\...
{ "code": [], "line_no": [] }
static inline void FUNC_0(rgb24tobgr24)(const uint8_t *src, uint8_t *dst, long src_size) { unsigned VAR_0; #if COMPILE_TEMPLATE_MMX x86_reg mmx_size= 23 - src_size; __asm__ volatile ( "test %%"REG_a", %%"REG_a" \n\t" "jns 2f ...
[ "static inline void FUNC_0(rgb24tobgr24)(const uint8_t *src, uint8_t *dst, long src_size)\n{", "unsigned VAR_0;", "#if COMPILE_TEMPLATE_MMX\nx86_reg mmx_size= 23 - src_size;", "__asm__ volatile (\n\"test %%\"REG_a\", %%\"REG_a\" \\n\\t\"\n\"jns 2f \...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73,...
22,524
static inline void mix_2f_2r_to_mono(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) output[1][i] = (output[2][i] + output[3][i] + output[4][i]); memset(output[2], 0, sizeof(output[2])); memset(output[3], 0, sizeof(outp...
false
FFmpeg
486637af8ef29ec215e0e0b7ecd3b5470f0e04e5
static inline void mix_2f_2r_to_mono(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) output[1][i] = (output[2][i] + output[3][i] + output[4][i]); memset(output[2], 0, sizeof(output[2])); memset(output[3], 0, sizeof(outp...
{ "code": [], "line_no": [] }
static inline void FUNC_0(AC3DecodeContext *VAR_0) { int VAR_1; float (*VAR_2)[256] = VAR_0->audio_block.block_output; for (VAR_1 = 0; VAR_1 < 256; VAR_1++) VAR_2[1][VAR_1] = (VAR_2[2][VAR_1] + VAR_2[3][VAR_1] + VAR_2[4][VAR_1]); memset(VAR_2[2], 0, sizeof(VAR_2[2])); memset(VAR_2[3...
[ "static inline void FUNC_0(AC3DecodeContext *VAR_0)\n{", "int VAR_1;", "float (*VAR_2)[256] = VAR_0->audio_block.block_output;", "for (VAR_1 = 0; VAR_1 < 256; VAR_1++)", "VAR_2[1][VAR_1] = (VAR_2[2][VAR_1] + VAR_2[3][VAR_1] + VAR_2[4][VAR_1]);", "memset(VAR_2[2], 0, sizeof(VAR_2[2]));", "memset(VAR_2[3]...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
22,525
void OPPROTO op_405_check_ov (void) { do_405_check_ov(); RETURN(); }
true
qemu
c3e10c7b4377c1cbc0a4fbc12312c2cf41c0cda7
void OPPROTO op_405_check_ov (void) { do_405_check_ov(); RETURN(); }
{ "code": [ " RETURN();", " RETURN();", "void OPPROTO op_405_check_ov (void)", " do_405_check_ov();", " RETURN();" ], "line_no": [ 7, 7, 1, 5, 7 ] }
void VAR_0 op_405_check_ov (void) { do_405_check_ov(); RETURN(); }
[ "void VAR_0 op_405_check_ov (void)\n{", "do_405_check_ov();", "RETURN();", "}" ]
[ 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
22,526
static void put_int32(QEMUFile *f, void *pv, size_t size) { int32_t *v = pv; qemu_put_sbe32s(f, v); }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static void put_int32(QEMUFile *f, void *pv, size_t size) { int32_t *v = pv; qemu_put_sbe32s(f, v); }
{ "code": [], "line_no": [] }
static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2) { int32_t *v = VAR_1; qemu_put_sbe32s(VAR_0, v); }
[ "static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{", "int32_t *v = VAR_1;", "qemu_put_sbe32s(VAR_0, v);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
22,527
static ExitStatus trans_fop_wew_0c(DisasContext *ctx, uint32_t insn, const DisasInsn *di) { unsigned rt = extract32(insn, 0, 5); unsigned ra = extract32(insn, 21, 5); return do_fop_wew(ctx, rt, ra, di->f_wew); }
true
qemu
eff235eb2bcd7092901f4698a7907e742f3b7f2f
static ExitStatus trans_fop_wew_0c(DisasContext *ctx, uint32_t insn, const DisasInsn *di) { unsigned rt = extract32(insn, 0, 5); unsigned ra = extract32(insn, 21, 5); return do_fop_wew(ctx, rt, ra, di->f_wew); }
{ "code": [ " return do_fop_wew(ctx, rt, ra, di->f_wew);", " return do_fop_wew(ctx, rt, ra, di->f_wew);" ], "line_no": [ 11, 11 ] }
static ExitStatus FUNC_0(DisasContext *ctx, uint32_t insn, const DisasInsn *di) { unsigned VAR_0 = extract32(insn, 0, 5); unsigned VAR_1 = extract32(insn, 21, 5); return do_fop_wew(ctx, VAR_0, VAR_1, di->f_wew); }
[ "static ExitStatus FUNC_0(DisasContext *ctx, uint32_t insn,\nconst DisasInsn *di)\n{", "unsigned VAR_0 = extract32(insn, 0, 5);", "unsigned VAR_1 = extract32(insn, 21, 5);", "return do_fop_wew(ctx, VAR_0, VAR_1, di->f_wew);", "}" ]
[ 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
22,528
static void ebml_free(EbmlSyntax *syntax, void *data) { int i, j; for (i = 0; syntax[i].id; i++) { void *data_off = (char *) data + syntax[i].data_offset; switch (syntax[i].type) { case EBML_STR: case EBML_UTF8: av_freep(data_off); break; ...
true
FFmpeg
18b94669372d3d4b6c51e347587ea64acef9dbb8
static void ebml_free(EbmlSyntax *syntax, void *data) { int i, j; for (i = 0; syntax[i].id; i++) { void *data_off = (char *) data + syntax[i].data_offset; switch (syntax[i].type) { case EBML_STR: case EBML_UTF8: av_freep(data_off); break; ...
{ "code": [], "line_no": [] }
static void FUNC_0(EbmlSyntax *VAR_0, void *VAR_1) { int VAR_2, VAR_3; for (VAR_2 = 0; VAR_0[VAR_2].id; VAR_2++) { void *data_off = (char *) VAR_1 + VAR_0[VAR_2].data_offset; switch (VAR_0[VAR_2].type) { case EBML_STR: case EBML_UTF8: av_freep(data_off); ...
[ "static void FUNC_0(EbmlSyntax *VAR_0, void *VAR_1)\n{", "int VAR_2, VAR_3;", "for (VAR_2 = 0; VAR_0[VAR_2].id; VAR_2++) {", "void *data_off = (char *) VAR_1 + VAR_0[VAR_2].data_offset;", "switch (VAR_0[VAR_2].type) {", "case EBML_STR:\ncase EBML_UTF8:\nav_freep(data_off);", "break;", "case EBML_BIN:\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 46 ], [ 48 ...
22,529
static int common_bind(struct common *c) { uint64_t mfn; if (xenstore_read_fe_uint64(&c->xendev, "page-ref", &mfn) == -1) return -1; assert(mfn == (xen_pfn_t)mfn); if (xenstore_read_fe_int(&c->xendev, "event-channel", &c->xendev.remote_port) == -1) return -1; c->page = xc_map_foreign...
true
qemu
9ed257d1d1c65dbe5a08f207e5106e98384e1860
static int common_bind(struct common *c) { uint64_t mfn; if (xenstore_read_fe_uint64(&c->xendev, "page-ref", &mfn) == -1) return -1; assert(mfn == (xen_pfn_t)mfn); if (xenstore_read_fe_int(&c->xendev, "event-channel", &c->xendev.remote_port) == -1) return -1; c->page = xc_map_foreign...
{ "code": [ " uint64_t mfn;", " if (xenstore_read_fe_uint64(&c->xendev, \"page-ref\", &mfn) == -1)", " assert(mfn == (xen_pfn_t)mfn);", " c->page = xc_map_foreign_range(xen_xc, c->xendev.dom,", "\t\t\t\t XC_PAGE_SIZE,", "\t\t\t\t PROT_READ | PROT_WRITE, mfn);", " xen_be_...
static int FUNC_0(struct common *VAR_0) { uint64_t mfn; if (xenstore_read_fe_uint64(&VAR_0->xendev, "page-ref", &mfn) == -1) return -1; assert(mfn == (xen_pfn_t)mfn); if (xenstore_read_fe_int(&VAR_0->xendev, "event-channel", &VAR_0->xendev.remote_port) == -1) return -1; VAR_0->page =...
[ "static int FUNC_0(struct common *VAR_0)\n{", "uint64_t mfn;", "if (xenstore_read_fe_uint64(&VAR_0->xendev, \"page-ref\", &mfn) == -1)\nreturn -1;", "assert(mfn == (xen_pfn_t)mfn);", "if (xenstore_read_fe_int(&VAR_0->xendev, \"event-channel\", &VAR_0->xendev.remote_port) == -1)\nreturn -1;", "VAR_0->page ...
[ 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 17, 19 ], [ 23, 25, 27 ], [ 29, 31 ], [ 35 ], [ 37, 39 ], [ 43 ], [ 45 ] ]
22,530
int av_thread_message_queue_alloc(AVThreadMessageQueue **mq, unsigned nelem, unsigned elsize) { #if HAVE_THREADS AVThreadMessageQueue *rmq; int ret = 0; if (nelem > INT_MAX / elsize) return AVERROR(EINVAL); if (!(rmq ...
true
FFmpeg
bd5c860fdbc33d19d2ff0f6d1f06de07c17560dd
int av_thread_message_queue_alloc(AVThreadMessageQueue **mq, unsigned nelem, unsigned elsize) { #if HAVE_THREADS AVThreadMessageQueue *rmq; int ret = 0; if (nelem > INT_MAX / elsize) return AVERROR(EINVAL); if (!(rmq ...
{ "code": [ " if ((ret = pthread_cond_init(&rmq->cond, NULL))) {", " pthread_cond_destroy(&rmq->cond);" ], "line_no": [ 33, 45 ] }
int FUNC_0(AVThreadMessageQueue **VAR_0, unsigned VAR_1, unsigned VAR_2) { #if HAVE_THREADS AVThreadMessageQueue *rmq; int ret = 0; if (VAR_1 > INT_MAX / VAR_2) return AVERROR(EINVAL); if (!(rmq = av_mallocz(sizeof(*r...
[ "int FUNC_0(AVThreadMessageQueue **VAR_0,\nunsigned VAR_1,\nunsigned VAR_2)\n{", "#if HAVE_THREADS\nAVThreadMessageQueue *rmq;", "int ret = 0;", "if (VAR_1 > INT_MAX / VAR_2)\nreturn AVERROR(EINVAL);", "if (!(rmq = av_mallocz(sizeof(*rmq))))\nreturn AVERROR(ENOMEM);", "if ((ret = pthread_mutex_init(&rmq->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11 ], [ 13 ], [ 17, 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
22,532
static void xvid_idct_put(uint8_t *dest, ptrdiff_t line_size, int16_t *block) { ff_xvid_idct(block); ff_put_pixels_clamped(block, dest, line_size); }
true
FFmpeg
32baeafeee4f8446c2c3720b9223ad2166ca9d30
static void xvid_idct_put(uint8_t *dest, ptrdiff_t line_size, int16_t *block) { ff_xvid_idct(block); ff_put_pixels_clamped(block, dest, line_size); }
{ "code": [ " ff_put_pixels_clamped(block, dest, line_size);", " ff_put_pixels_clamped(block, dest, line_size);" ], "line_no": [ 7, 7 ] }
static void FUNC_0(uint8_t *VAR_0, ptrdiff_t VAR_1, int16_t *VAR_2) { ff_xvid_idct(VAR_2); ff_put_pixels_clamped(VAR_2, VAR_0, VAR_1); }
[ "static void FUNC_0(uint8_t *VAR_0, ptrdiff_t VAR_1, int16_t *VAR_2)\n{", "ff_xvid_idct(VAR_2);", "ff_put_pixels_clamped(VAR_2, VAR_0, VAR_1);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
22,533
int attribute_align_arg avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { int ret; int user_packet = !!avpkt->d...
true
FFmpeg
3c6607eb6f946ed3e108db3f0694cab7e5a5df7e
int attribute_align_arg avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { int ret; int user_packet = !!avpkt->d...
{ "code": [ " if (!user_packet && avpkt->data) {", " if (!user_packet && avpkt->data) {" ], "line_no": [ 59, 59 ] }
int VAR_0 avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { int ret; int user_packet = !!avpkt->data; *g...
[ "int VAR_0 avcodec_encode_video2(AVCodecContext *avctx,\nAVPacket *avpkt,\nconst AVFrame *frame,\nint *got_packet_ptr)\n{", "int ret;", "int user_packet = !!avpkt->data;", "*got_packet_ptr = 0;", "if (!(avctx->codec->capabilities & CODEC_CAP_DELAY) && !frame) {", "av_free_packet(avpkt);", "av_init_packe...
[ 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 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 53, 55 ], [ 59 ...
22,535
static int get_str(ByteIOContext *bc, char *string, int maxlen){ int len= get_v(bc); if(len && maxlen) get_buffer(bc, string, FFMIN(len, maxlen)); while(len > maxlen){ get_byte(bc); len--; } if(maxlen) string[FFMIN(len, maxlen-1)]= 0; if(ma...
true
FFmpeg
568e18b15e2ddf494fd8926707d34ca08c8edce5
static int get_str(ByteIOContext *bc, char *string, int maxlen){ int len= get_v(bc); if(len && maxlen) get_buffer(bc, string, FFMIN(len, maxlen)); while(len > maxlen){ get_byte(bc); len--; } if(maxlen) string[FFMIN(len, maxlen-1)]= 0; if(ma...
{ "code": [ "static int get_str(ByteIOContext *bc, char *string, int maxlen){", " int len= get_v(bc);" ], "line_no": [ 1, 3 ] }
static int FUNC_0(ByteIOContext *VAR_0, char *VAR_1, int VAR_2){ int VAR_3= get_v(VAR_0); if(VAR_3 && VAR_2) get_buffer(VAR_0, VAR_1, FFMIN(VAR_3, VAR_2)); while(VAR_3 > VAR_2){ get_byte(VAR_0); VAR_3--; } if(VAR_2) VAR_1[FFMIN(VAR_3, VAR_2-1)]= 0; ...
[ "static int FUNC_0(ByteIOContext *VAR_0, char *VAR_1, int VAR_2){", "int VAR_3= get_v(VAR_0);", "if(VAR_3 && VAR_2)\nget_buffer(VAR_0, VAR_1, FFMIN(VAR_3, VAR_2));", "while(VAR_3 > VAR_2){", "get_byte(VAR_0);", "VAR_3--;", "}", "if(VAR_2)\nVAR_1[FFMIN(VAR_3, VAR_2-1)]= 0;", "if(VAR_2 == VAR_3)\nretu...
[ 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 27, 29 ], [ 31, 33 ], [ 35 ] ]
22,536
static int dvbsub_decode(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; DVBSubContext *ctx = avctx->priv_data; AVSubtitle *sub = data; const uint8_t *p, *p_e...
true
FFmpeg
493aa30adf88baf5bc734072592a22db586f0cfb
static int dvbsub_decode(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; DVBSubContext *ctx = avctx->priv_data; AVSubtitle *sub = data; const uint8_t *p, *p_e...
{ "code": [ " if (buf_size <= 2 || *buf != 0x0f)", " while (p < p_end && *p == 0x0f) {" ], "line_no": [ 59, 71 ] }
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; DVBSubContext *ctx = VAR_0->priv_data; AVSubtitle *sub = VAR_1; const uint8_t *VAR_6, *p_end; ...
[ "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;", "DVBSubContext *ctx = VAR_0->priv_data;", "AVSubtitle *sub = VAR_1;", "const uint8_t *VAR_6, *p_end;", "int VAR_7;", "int VAR_8;", "int VAR_9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 49, 51 ], [ 55, 59,...
22,537
static int tag_tree_decode(Jpeg2000DecoderContext *s, Jpeg2000TgtNode *node, int threshold) { Jpeg2000TgtNode *stack[30]; int sp = -1, curval = 0; while (node && !node->vis) { stack[++sp] = node; node = node->parent; } if (node) curval = node...
true
FFmpeg
09d5929f3721613fbb9ac9e74265c89c70df2ce0
static int tag_tree_decode(Jpeg2000DecoderContext *s, Jpeg2000TgtNode *node, int threshold) { Jpeg2000TgtNode *stack[30]; int sp = -1, curval = 0; while (node && !node->vis) { stack[++sp] = node; node = node->parent; } if (node) curval = node...
{ "code": [], "line_no": [] }
static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000TgtNode *VAR_1, int VAR_2) { Jpeg2000TgtNode *stack[30]; int VAR_3 = -1, VAR_4 = 0; while (VAR_1 && !VAR_1->vis) { stack[++VAR_3] = VAR_1; VAR_1 = VAR_1->parent; } if (VAR_1) VAR_4 = VA...
[ "static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000TgtNode *VAR_1,\nint VAR_2)\n{", "Jpeg2000TgtNode *stack[30];", "int VAR_3 = -1, VAR_4 = 0;", "while (VAR_1 && !VAR_1->vis) {", "stack[++VAR_3] = VAR_1;", "VAR_1 = VAR_1->parent;", "}", "if (VAR_1)\nVAR_4 = VAR_1->val;", "else\nVAR_4 =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10, 11 ], [ 12, 13 ], [ 14 ], [ 15, 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ], [ 23 ],...
22,538
static int output_configure(AACContext *ac, uint8_t layout_map[MAX_ELEM_ID * 4][3], int tags, enum OCStatus oc_type, int get_new_frame) { AVCodecContext *avctx = ac->avctx; int i, channels = 0, ret; uint64_t layout = 0; uint8_t id_map[TYPE_E...
true
FFmpeg
590863876d1478547640304a31c15809c3618090
static int output_configure(AACContext *ac, uint8_t layout_map[MAX_ELEM_ID * 4][3], int tags, enum OCStatus oc_type, int get_new_frame) { AVCodecContext *avctx = ac->avctx; int i, channels = 0, ret; uint64_t layout = 0; uint8_t id_map[TYPE_E...
{ "code": [], "line_no": [] }
static int FUNC_0(AACContext *VAR_0, uint8_t VAR_1[MAX_ELEM_ID * 4][3], int VAR_2, enum OCStatus VAR_3, int VAR_4) { AVCodecContext *avctx = VAR_0->avctx; int VAR_5, VAR_6 = 0, VAR_7; uint64_t layout = 0; uint8_t id_map[TYPE_END][MAX_ELEM_ID...
[ "static int FUNC_0(AACContext *VAR_0,\nuint8_t VAR_1[MAX_ELEM_ID * 4][3], int VAR_2,\nenum OCStatus VAR_3, int VAR_4)\n{", "AVCodecContext *avctx = VAR_0->avctx;", "int VAR_5, VAR_6 = 0, VAR_7;", "uint64_t layout = 0;", "uint8_t id_map[TYPE_END][MAX_ELEM_ID] = {{ 0 }};", "uint8_t type_counts[TYPE_END] = {...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 28 ], [ 30 ], [ 32 ], [ 34 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
22,539
static int qemu_paio_submit(struct qemu_paiocb *aiocb, int type) { aiocb->aio_type = type; aiocb->ret = -EINPROGRESS; aiocb->active = 0; mutex_lock(&lock); if (idle_threads == 0 && cur_threads < max_threads) spawn_thread(); TAILQ_INSERT_TAIL(&request_list, aiocb, node); mute...
false
qemu
9ef91a677110ec200d7b2904fc4bcae5a77329ad
static int qemu_paio_submit(struct qemu_paiocb *aiocb, int type) { aiocb->aio_type = type; aiocb->ret = -EINPROGRESS; aiocb->active = 0; mutex_lock(&lock); if (idle_threads == 0 && cur_threads < max_threads) spawn_thread(); TAILQ_INSERT_TAIL(&request_list, aiocb, node); mute...
{ "code": [], "line_no": [] }
static int FUNC_0(struct qemu_paiocb *VAR_0, int VAR_1) { VAR_0->aio_type = VAR_1; VAR_0->ret = -EINPROGRESS; VAR_0->active = 0; mutex_lock(&lock); if (idle_threads == 0 && cur_threads < max_threads) spawn_thread(); TAILQ_INSERT_TAIL(&request_list, VAR_0, node); mutex_unlock...
[ "static int FUNC_0(struct qemu_paiocb *VAR_0, int VAR_1)\n{", "VAR_0->aio_type = VAR_1;", "VAR_0->ret = -EINPROGRESS;", "VAR_0->active = 0;", "mutex_lock(&lock);", "if (idle_threads == 0 && cur_threads < max_threads)\nspawn_thread();", "TAILQ_INSERT_TAIL(&request_list, VAR_0, node);", "mutex_unlock(&l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
22,540
uint64_t helper_fnmadd(CPUPPCState *env, uint64_t arg1, uint64_t arg2, uint64_t arg3) { CPU_DoubleU farg1, farg2, farg3; farg1.ll = arg1; farg2.ll = arg2; farg3.ll = arg3; if (unlikely((float64_is_infinity(farg1.d) && float64_is_zero(farg2.d)) || (...
false
qemu
59800ec8e52bcfa271fa61fb0aae19205ef1b7f1
uint64_t helper_fnmadd(CPUPPCState *env, uint64_t arg1, uint64_t arg2, uint64_t arg3) { CPU_DoubleU farg1, farg2, farg3; farg1.ll = arg1; farg2.ll = arg2; farg3.ll = arg3; if (unlikely((float64_is_infinity(farg1.d) && float64_is_zero(farg2.d)) || (...
{ "code": [], "line_no": [] }
uint64_t FUNC_0(CPUPPCState *env, uint64_t arg1, uint64_t arg2, uint64_t arg3) { CPU_DoubleU farg1, farg2, farg3; farg1.ll = arg1; farg2.ll = arg2; farg3.ll = arg3; if (unlikely((float64_is_infinity(farg1.d) && float64_is_zero(farg2.d)) || (float64...
[ "uint64_t FUNC_0(CPUPPCState *env, uint64_t arg1, uint64_t arg2,\nuint64_t arg3)\n{", "CPU_DoubleU farg1, farg2, farg3;", "farg1.ll = arg1;", "farg2.ll = arg2;", "farg3.ll = arg3;", "if (unlikely((float64_is_infinity(farg1.d) && float64_is_zero(farg2.d)) ||\n(float64_is_zero(farg1.d) && float64_is_infinit...
[ 0, 0, 0, 0, 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 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53, 55, 57 ], [ 61...
22,541
static BlockAIOCB *bdrv_aio_writev_em(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockCompletionFunc *cb, void *opaque) { return bdrv_aio_rw_vector(bs, sector_num, qiov, nb_sectors, cb, opaque, 1); }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
static BlockAIOCB *bdrv_aio_writev_em(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockCompletionFunc *cb, void *opaque) { return bdrv_aio_rw_vector(bs, sector_num, qiov, nb_sectors, cb, opaque, 1); }
{ "code": [], "line_no": [] }
static BlockAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockCompletionFunc *cb, void *opaque) { return bdrv_aio_rw_vector(bs, sector_num, qiov, nb_sectors, cb, opaque, 1); }
[ "static BlockAIOCB *FUNC_0(BlockDriverState *bs,\nint64_t sector_num, QEMUIOVector *qiov, int nb_sectors,\nBlockCompletionFunc *cb, void *opaque)\n{", "return bdrv_aio_rw_vector(bs, sector_num, qiov, nb_sectors, cb, opaque, 1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ] ]
22,542
static void attach_storage_element(SCLPDevice *sclp, SCCB *sccb, uint16_t element) { int i, assigned, subincrement_id; AttachStorageElement *attach_info = (AttachStorageElement *) sccb; sclpMemoryHotplugDev *mhd = get_sclp_memory_hotplug_dev(); assert(mhd); ...
false
qemu
b02ef3d92b19ad304a84433d3817f0903296ebc7
static void attach_storage_element(SCLPDevice *sclp, SCCB *sccb, uint16_t element) { int i, assigned, subincrement_id; AttachStorageElement *attach_info = (AttachStorageElement *) sccb; sclpMemoryHotplugDev *mhd = get_sclp_memory_hotplug_dev(); assert(mhd); ...
{ "code": [], "line_no": [] }
static void FUNC_0(SCLPDevice *VAR_0, SCCB *VAR_1, uint16_t VAR_2) { int VAR_3, VAR_4, VAR_5; AttachStorageElement *attach_info = (AttachStorageElement *) VAR_1; sclpMemoryHotplugDev *mhd = get_sclp_memory_hotplug_dev(); assert(mhd); if (VAR_2 != 1) { ...
[ "static void FUNC_0(SCLPDevice *VAR_0, SCCB *VAR_1,\nuint16_t VAR_2)\n{", "int VAR_3, VAR_4, VAR_5;", "AttachStorageElement *attach_info = (AttachStorageElement *) VAR_1;", "sclpMemoryHotplugDev *mhd = get_sclp_memory_hotplug_dev();", "assert(mhd);", "if (VAR_2 != 1) {", "VAR_1->h.response_code = cpu_to...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ] ]
22,543
static void kvmppc_pivot_hpt_cpu(CPUState *cs, run_on_cpu_data arg) { target_ulong sdr1 = arg.target_ptr; PowerPCCPU *cpu = POWERPC_CPU(cs); CPUPPCState *env = &cpu->env; /* This is just for the benefit of PR KVM */ cpu_synchronize_state(cs); env->spr[SPR_SDR1] = sdr1; if (kvmppc_p...
false
qemu
1ec26c757d5996468afcc0dced4fad04139574b3
static void kvmppc_pivot_hpt_cpu(CPUState *cs, run_on_cpu_data arg) { target_ulong sdr1 = arg.target_ptr; PowerPCCPU *cpu = POWERPC_CPU(cs); CPUPPCState *env = &cpu->env; cpu_synchronize_state(cs); env->spr[SPR_SDR1] = sdr1; if (kvmppc_put_books_sregs(cpu) < 0) { error_re...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUState *VAR_0, run_on_cpu_data VAR_1) { target_ulong sdr1 = VAR_1.target_ptr; PowerPCCPU *cpu = POWERPC_CPU(VAR_0); CPUPPCState *env = &cpu->env; cpu_synchronize_state(VAR_0); env->spr[SPR_SDR1] = sdr1; if (kvmppc_put_books_sregs(cpu) < 0) { error_rep...
[ "static void FUNC_0(CPUState *VAR_0, run_on_cpu_data VAR_1)\n{", "target_ulong sdr1 = VAR_1.target_ptr;", "PowerPCCPU *cpu = POWERPC_CPU(VAR_0);", "CPUPPCState *env = &cpu->env;", "cpu_synchronize_state(VAR_0);", "env->spr[SPR_SDR1] = sdr1;", "if (kvmppc_put_books_sregs(cpu) < 0) {", "error_report(\"U...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
22,544
static int send_rect_simple(VncState *vs, int x, int y, int w, int h) { int max_size, max_width; int max_sub_width, max_sub_height; int dx, dy; int rw, rh; int n = 0; max_size = tight_conf[vs->tight_compression].max_rect_size; max_width = tight_conf[vs->tight_compression].max_rect_...
false
qemu
245f7b51c0ea04fb2224b1127430a096c91aee70
static int send_rect_simple(VncState *vs, int x, int y, int w, int h) { int max_size, max_width; int max_sub_width, max_sub_height; int dx, dy; int rw, rh; int n = 0; max_size = tight_conf[vs->tight_compression].max_rect_size; max_width = tight_conf[vs->tight_compression].max_rect_...
{ "code": [], "line_no": [] }
static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5, VAR_6; int VAR_7, VAR_8; int VAR_9, VAR_10; int VAR_11, VAR_12; int VAR_13 = 0; VAR_5 = tight_conf[VAR_0->tight_compression].max_rect_size; VAR_6 = tight_conf[VAR_0->tight_compression].max_r...
[ "static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6;", "int VAR_7, VAR_8;", "int VAR_9, VAR_10;", "int VAR_11, VAR_12;", "int VAR_13 = 0;", "VAR_5 = tight_conf[VAR_0->tight_compression].max_rect_size;", "VAR_6 = tight_conf[VAR_0->tight_compression].ma...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
22,548
static int decompress_i(AVCodecContext *avctx, uint32_t *dst, int linesize) { SCPRContext *s = avctx->priv_data; GetByteContext *gb = &s->gb; int cx = 0, cx1 = 0, k = 0, clr = 0; int run, r, g, b, off, y = 0, x = 0, ret; const int cxshift = s->cxshift; unsigned lx, ly, ptype; reini...
false
FFmpeg
fd7af82c53ea8a2577ea8952d35fb158db594592
static int decompress_i(AVCodecContext *avctx, uint32_t *dst, int linesize) { SCPRContext *s = avctx->priv_data; GetByteContext *gb = &s->gb; int cx = 0, cx1 = 0, k = 0, clr = 0; int run, r, g, b, off, y = 0, x = 0, ret; const int cxshift = s->cxshift; unsigned lx, ly, ptype; reini...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, uint32_t *VAR_1, int VAR_2) { SCPRContext *s = VAR_0->priv_data; GetByteContext *gb = &s->gb; int VAR_3 = 0, VAR_4 = 0, VAR_5 = 0, VAR_6 = 0; int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12 = 0, VAR_13 = 0, VAR_14; const int VAR_15 = s->VAR_15; uns...
[ "static int FUNC_0(AVCodecContext *VAR_0, uint32_t *VAR_1, int VAR_2)\n{", "SCPRContext *s = VAR_0->priv_data;", "GetByteContext *gb = &s->gb;", "int VAR_3 = 0, VAR_4 = 0, VAR_5 = 0, VAR_6 = 0;", "int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12 = 0, VAR_13 = 0, VAR_14;", "const int VAR_15 = s->VAR_15;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 49 ], [ 51 ...
22,549
static void gen_extu(int ot, TCGv reg) { switch(ot) { case OT_BYTE: tcg_gen_ext8u_tl(reg, reg); break; case OT_WORD: tcg_gen_ext16u_tl(reg, reg); break; case OT_LONG: tcg_gen_ext32u_tl(reg, reg); break; default: break; } }
false
qemu
6e0d8677cb443e7408c0b7a25a93c6596d7fa380
static void gen_extu(int ot, TCGv reg) { switch(ot) { case OT_BYTE: tcg_gen_ext8u_tl(reg, reg); break; case OT_WORD: tcg_gen_ext16u_tl(reg, reg); break; case OT_LONG: tcg_gen_ext32u_tl(reg, reg); break; default: break; } }
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, TCGv VAR_1) { switch(VAR_0) { case OT_BYTE: tcg_gen_ext8u_tl(VAR_1, VAR_1); break; case OT_WORD: tcg_gen_ext16u_tl(VAR_1, VAR_1); break; case OT_LONG: tcg_gen_ext32u_tl(VAR_1, VAR_1); break; default: b...
[ "static void FUNC_0(int VAR_0, TCGv VAR_1)\n{", "switch(VAR_0) {", "case OT_BYTE:\ntcg_gen_ext8u_tl(VAR_1, VAR_1);", "break;", "case OT_WORD:\ntcg_gen_ext16u_tl(VAR_1, VAR_1);", "break;", "case OT_LONG:\ntcg_gen_ext32u_tl(VAR_1, VAR_1);", "break;", "default:\nbreak;", "}", "}" ]
[ 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 ] ]
22,550
ssize_t read_targphys(const char *name, int fd, target_phys_addr_t dst_addr, size_t nbytes) { uint8_t *buf; ssize_t did; buf = g_malloc(nbytes); did = read(fd, buf, nbytes); if (did > 0) rom_add_blob_fixed("read", buf, did, dst_addr); g_free(buf); re...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
ssize_t read_targphys(const char *name, int fd, target_phys_addr_t dst_addr, size_t nbytes) { uint8_t *buf; ssize_t did; buf = g_malloc(nbytes); did = read(fd, buf, nbytes); if (did > 0) rom_add_blob_fixed("read", buf, did, dst_addr); g_free(buf); re...
{ "code": [], "line_no": [] }
ssize_t FUNC_0(const char *name, int fd, target_phys_addr_t dst_addr, size_t nbytes) { uint8_t *buf; ssize_t did; buf = g_malloc(nbytes); did = read(fd, buf, nbytes); if (did > 0) rom_add_blob_fixed("read", buf, did, dst_addr); g_free(buf); return di...
[ "ssize_t FUNC_0(const char *name,\nint fd, target_phys_addr_t dst_addr, size_t nbytes)\n{", "uint8_t *buf;", "ssize_t did;", "buf = g_malloc(nbytes);", "did = read(fd, buf, nbytes);", "if (did > 0)\nrom_add_blob_fixed(\"read\", buf, did, dst_addr);", "g_free(buf);", "return did;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ] ]
22,551
DeviceState *qdev_device_add(QemuOpts *opts) { DeviceClass *k; const char *driver, *path, *id; DeviceState *qdev; BusState *bus; driver = qemu_opt_get(opts, "driver"); if (!driver) { qerror_report(QERR_MISSING_PARAMETER, "driver"); return NULL; } /* find dr...
false
qemu
6acbe4c6f18e7de00481ff30574262b58526de45
DeviceState *qdev_device_add(QemuOpts *opts) { DeviceClass *k; const char *driver, *path, *id; DeviceState *qdev; BusState *bus; driver = qemu_opt_get(opts, "driver"); if (!driver) { qerror_report(QERR_MISSING_PARAMETER, "driver"); return NULL; } k = ...
{ "code": [], "line_no": [] }
DeviceState *FUNC_0(QemuOpts *opts) { DeviceClass *k; const char *VAR_0, *VAR_1, *VAR_2; DeviceState *qdev; BusState *bus; VAR_0 = qemu_opt_get(opts, "VAR_0"); if (!VAR_0) { qerror_report(QERR_MISSING_PARAMETER, "VAR_0"); return NULL; } k = DEVICE_CLA...
[ "DeviceState *FUNC_0(QemuOpts *opts)\n{", "DeviceClass *k;", "const char *VAR_0, *VAR_1, *VAR_2;", "DeviceState *qdev;", "BusState *bus;", "VAR_0 = qemu_opt_get(opts, \"VAR_0\");", "if (!VAR_0) {", "qerror_report(QERR_MISSING_PARAMETER, \"VAR_0\");", "return NULL;", "}", "k = DEVICE_CLASS(object...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [...
22,554
static void qdict_teardown(void) { QDECREF(tests_dict); tests_dict = NULL; }
false
qemu
ac531cb6e542b1e61d668604adf9dc5306a948c0
static void qdict_teardown(void) { QDECREF(tests_dict); tests_dict = NULL; }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { QDECREF(tests_dict); tests_dict = NULL; }
[ "static void FUNC_0(void)\n{", "QDECREF(tests_dict);", "tests_dict = NULL;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
22,555
static void tcg_out_brcond(TCGContext *s, TCGCond cond, TCGArg arg1, TCGArg arg2, int const_arg2, int label_index, TCGType type) { tcg_out_cmp(s, cond, arg1, arg2, const_arg2, 7, type); tcg_out_bc(s, tcg_to_bc[cond], label_index); }
false
qemu
bec1631100323fac0900aea71043d5c4e22fc2fa
static void tcg_out_brcond(TCGContext *s, TCGCond cond, TCGArg arg1, TCGArg arg2, int const_arg2, int label_index, TCGType type) { tcg_out_cmp(s, cond, arg1, arg2, const_arg2, 7, type); tcg_out_bc(s, tcg_to_bc[cond], label_index); }
{ "code": [], "line_no": [] }
static void FUNC_0(TCGContext *VAR_0, TCGCond VAR_1, TCGArg VAR_2, TCGArg VAR_3, int VAR_4, int VAR_5, TCGType VAR_6) { tcg_out_cmp(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, 7, VAR_6); tcg_out_bc(VAR_0, tcg_to_bc[VAR_1], VAR_5); }
[ "static void FUNC_0(TCGContext *VAR_0, TCGCond VAR_1,\nTCGArg VAR_2, TCGArg VAR_3, int VAR_4,\nint VAR_5, TCGType VAR_6)\n{", "tcg_out_cmp(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, 7, VAR_6);", "tcg_out_bc(VAR_0, tcg_to_bc[VAR_1], VAR_5);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ] ]
22,556
static void qxl_track_command(PCIQXLDevice *qxl, struct QXLCommandExt *ext) { switch (le32_to_cpu(ext->cmd.type)) { case QXL_CMD_SURFACE: { QXLSurfaceCmd *cmd = qxl_phys2virt(qxl, ext->cmd.data, ext->group_id); uint32_t id = le32_to_cpu(cmd->surface_id); PANIC_ON(id >= NUM_SUR...
false
qemu
fae2afb10e3fdceab612c62a2b1e8b944ff578d9
static void qxl_track_command(PCIQXLDevice *qxl, struct QXLCommandExt *ext) { switch (le32_to_cpu(ext->cmd.type)) { case QXL_CMD_SURFACE: { QXLSurfaceCmd *cmd = qxl_phys2virt(qxl, ext->cmd.data, ext->group_id); uint32_t id = le32_to_cpu(cmd->surface_id); PANIC_ON(id >= NUM_SUR...
{ "code": [], "line_no": [] }
static void FUNC_0(PCIQXLDevice *VAR_0, struct QXLCommandExt *VAR_1) { switch (le32_to_cpu(VAR_1->cmd.type)) { case QXL_CMD_SURFACE: { QXLSurfaceCmd *cmd = qxl_phys2virt(VAR_0, VAR_1->cmd.data, VAR_1->group_id); uint32_t id = le32_to_cpu(cmd->surface_id); PANIC_ON(id >= NUM_SU...
[ "static void FUNC_0(PCIQXLDevice *VAR_0, struct QXLCommandExt *VAR_1)\n{", "switch (le32_to_cpu(VAR_1->cmd.type)) {", "case QXL_CMD_SURFACE:\n{", "QXLSurfaceCmd *cmd = qxl_phys2virt(VAR_0, VAR_1->cmd.data, VAR_1->group_id);", "uint32_t id = le32_to_cpu(cmd->surface_id);", "PANIC_ON(id >= NUM_SURFACES);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
22,557
static void nvdimm_dsm_label_size(NVDIMMDevice *nvdimm, hwaddr dsm_mem_addr) { NvdimmFuncGetLabelSizeOut label_size_out = { .len = cpu_to_le32(sizeof(label_size_out)), }; uint32_t label_size, mxfer; label_size = nvdimm->label_size; mxfer = nvdimm_get_max_xfer_label_size(); nv...
false
qemu
c2fa30757a2ba1bb5b053883773a9a61fbdd7082
static void nvdimm_dsm_label_size(NVDIMMDevice *nvdimm, hwaddr dsm_mem_addr) { NvdimmFuncGetLabelSizeOut label_size_out = { .len = cpu_to_le32(sizeof(label_size_out)), }; uint32_t label_size, mxfer; label_size = nvdimm->label_size; mxfer = nvdimm_get_max_xfer_label_size(); nv...
{ "code": [], "line_no": [] }
static void FUNC_0(NVDIMMDevice *VAR_0, hwaddr VAR_1) { NvdimmFuncGetLabelSizeOut label_size_out = { .len = cpu_to_le32(sizeof(label_size_out)), }; uint32_t label_size, mxfer; label_size = VAR_0->label_size; mxfer = nvdimm_get_max_xfer_label_size(); nvdimm_debug("label_size %...
[ "static void FUNC_0(NVDIMMDevice *VAR_0, hwaddr VAR_1)\n{", "NvdimmFuncGetLabelSizeOut label_size_out = {", ".len = cpu_to_le32(sizeof(label_size_out)),\n};", "uint32_t label_size, mxfer;", "label_size = VAR_0->label_size;", "mxfer = nvdimm_get_max_xfer_label_size();", "nvdimm_debug(\"label_size %#x, ma...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37 ] ]
22,558
qemu_irq *armv7m_init(int flash_size, int sram_size, const char *kernel_filename, const char *cpu_model) { CPUState *env; DeviceState *nvic; /* FIXME: make this local state. */ static qemu_irq pic[64]; qemu_irq *cpu_pic; uint32_t pc; int image_size; uint6...
false
qemu
bdb11366b9370e97fb436444c697c01fe839dc11
qemu_irq *armv7m_init(int flash_size, int sram_size, const char *kernel_filename, const char *cpu_model) { CPUState *env; DeviceState *nvic; static qemu_irq pic[64]; qemu_irq *cpu_pic; uint32_t pc; int image_size; uint64_t entry; uint64_t lowaddr; ...
{ "code": [], "line_no": [] }
qemu_irq *FUNC_0(int flash_size, int sram_size, const char *kernel_filename, const char *cpu_model) { CPUState *env; DeviceState *nvic; static qemu_irq VAR_0[64]; qemu_irq *cpu_pic; uint32_t pc; int VAR_1; uint64_t entry; uint64_t lowaddr; int V...
[ "qemu_irq *FUNC_0(int flash_size, int sram_size,\nconst char *kernel_filename, const char *cpu_model)\n{", "CPUState *env;", "DeviceState *nvic;", "static qemu_irq VAR_0[64];", "qemu_irq *cpu_pic;", "uint32_t pc;", "int VAR_1;", "uint64_t entry;", "uint64_t lowaddr;", "int VAR_2;", "flash_size *...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51,...
22,560
int monitor_get_fd(Monitor *mon, const char *fdname) { mon_fd_t *monfd; LIST_FOREACH(monfd, &mon->fds, next) { int fd; if (strcmp(monfd->name, fdname) != 0) { continue; } fd = monfd->fd; /* caller takes ownership of fd */ LIST_REMOVE(...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
int monitor_get_fd(Monitor *mon, const char *fdname) { mon_fd_t *monfd; LIST_FOREACH(monfd, &mon->fds, next) { int fd; if (strcmp(monfd->name, fdname) != 0) { continue; } fd = monfd->fd; LIST_REMOVE(monfd, next); qemu_free(m...
{ "code": [], "line_no": [] }
int FUNC_0(Monitor *VAR_0, const char *VAR_1) { mon_fd_t *monfd; LIST_FOREACH(monfd, &VAR_0->fds, next) { int fd; if (strcmp(monfd->name, VAR_1) != 0) { continue; } fd = monfd->fd; LIST_REMOVE(monfd, next); qemu_free(monfd->...
[ "int FUNC_0(Monitor *VAR_0, const char *VAR_1)\n{", "mon_fd_t *monfd;", "LIST_FOREACH(monfd, &VAR_0->fds, next) {", "int fd;", "if (strcmp(monfd->name, VAR_1) != 0) {", "continue;", "}", "fd = monfd->fd;", "LIST_REMOVE(monfd, next);", "qemu_free(monfd->name);", "qemu_free(monfd);", "return fd;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ] ]
22,561
static int count_cow_clusters(BDRVQcow2State *s, int nb_clusters, uint64_t *l2_table, int l2_index) { int i; for (i = 0; i < nb_clusters; i++) { uint64_t l2_entry = be64_to_cpu(l2_table[l2_index + i]); QCow2ClusterType cluster_type = qcow2_get_cluster_type(l2_entry); switc...
false
qemu
fdfab37dfeffefbd4533b4158055c9b82d7c3e69
static int count_cow_clusters(BDRVQcow2State *s, int nb_clusters, uint64_t *l2_table, int l2_index) { int i; for (i = 0; i < nb_clusters; i++) { uint64_t l2_entry = be64_to_cpu(l2_table[l2_index + i]); QCow2ClusterType cluster_type = qcow2_get_cluster_type(l2_entry); switc...
{ "code": [], "line_no": [] }
static int FUNC_0(BDRVQcow2State *VAR_0, int VAR_1, uint64_t *VAR_2, int VAR_3) { int VAR_4; for (VAR_4 = 0; VAR_4 < VAR_1; VAR_4++) { uint64_t l2_entry = be64_to_cpu(VAR_2[VAR_3 + VAR_4]); QCow2ClusterType cluster_type = qcow2_get_cluster_type(l2_entry); switch(cluster_ty...
[ "static int FUNC_0(BDRVQcow2State *VAR_0, int VAR_1,\nuint64_t *VAR_2, int VAR_3)\n{", "int VAR_4;", "for (VAR_4 = 0; VAR_4 < VAR_1; VAR_4++) {", "uint64_t l2_entry = be64_to_cpu(VAR_2[VAR_3 + VAR_4]);", "QCow2ClusterType cluster_type = qcow2_get_cluster_type(l2_entry);", "switch(cluster_type) {", "case...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33, 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49, 51 ], [ 53 ], ...
22,562
VirtIOS390Device *s390_virtio_bus_find_vring(VirtIOS390Bus *bus, ram_addr_t mem, int *vq_num) { BusChild *kid; int i; QTAILQ_FOREACH(kid, &bus->bus.children, sibling) { VirtIOS390Device *dev = (VirtIOS...
false
qemu
74c85296dc880568005b8e7572e08a39d66bcdca
VirtIOS390Device *s390_virtio_bus_find_vring(VirtIOS390Bus *bus, ram_addr_t mem, int *vq_num) { BusChild *kid; int i; QTAILQ_FOREACH(kid, &bus->bus.children, sibling) { VirtIOS390Device *dev = (VirtIOS...
{ "code": [], "line_no": [] }
VirtIOS390Device *FUNC_0(VirtIOS390Bus *bus, ram_addr_t mem, int *vq_num) { BusChild *kid; int VAR_0; QTAILQ_FOREACH(kid, &bus->bus.children, sibling) { VirtIOS390Device *dev = (VirtIOS390Device *)kid-...
[ "VirtIOS390Device *FUNC_0(VirtIOS390Bus *bus,\nram_addr_t mem,\nint *vq_num)\n{", "BusChild *kid;", "int VAR_0;", "QTAILQ_FOREACH(kid, &bus->bus.children, sibling) {", "VirtIOS390Device *dev = (VirtIOS390Device *)kid->child;", "for(VAR_0 = 0; VAR_0 < VIRTIO_PCI_QUEUE_MAX; VAR_0++) {", "if (!virtio_queue...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ] ]
22,563
static inline int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf, int buf_size, AVCodecContext *avctx) { HEVCParserContext *ctx = s->priv_data; HEVCContext *h = &ctx->h; GetBitContext *gb; SliceHeader *sh = &h->sh; HEVCParamSets *ps ...
false
FFmpeg
1c088632e98af96f9cbe8129c5d7eb7274f8d4ed
static inline int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf, int buf_size, AVCodecContext *avctx) { HEVCParserContext *ctx = s->priv_data; HEVCContext *h = &ctx->h; GetBitContext *gb; SliceHeader *sh = &h->sh; HEVCParamSets *ps ...
{ "code": [], "line_no": [] }
static inline int FUNC_0(AVCodecParserContext *VAR_0, const uint8_t *VAR_1, int VAR_2, AVCodecContext *VAR_3) { HEVCParserContext *ctx = VAR_0->priv_data; HEVCContext *h = &ctx->h; GetBitContext *gb; SliceHeader *sh = &h->sh; HEVCParamSets *ps = ...
[ "static inline int FUNC_0(AVCodecParserContext *VAR_0, const uint8_t *VAR_1,\nint VAR_2, AVCodecContext *VAR_3)\n{", "HEVCParserContext *ctx = VAR_0->priv_data;", "HEVCContext *h = &ctx->h;", "GetBitContext *gb;", "SliceHeader *sh = &h->sh;", "HEVCParamSets *ps = &h->ps;", "HEVCSEICo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 53 ], [ 57, 59 ...
22,564
void ff_put_h264_qpel4_mc22_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_mid_4w_msa(src - (2 * stride) - 2, stride, dst, stride, 4); }
false
FFmpeg
e549933a270dd2cfc36f2cf9bb6b29acf3dc6d08
void ff_put_h264_qpel4_mc22_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_mid_4w_msa(src - (2 * stride) - 2, stride, dst, stride, 4); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_mid_4w_msa(VAR_1 - (2 * VAR_2) - 2, VAR_2, VAR_0, VAR_2, 4); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_mid_4w_msa(VAR_1 - (2 * VAR_2) - 2, VAR_2, VAR_0, VAR_2, 4);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
22,566
int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length, void *logctx, int is_nalff, int nal_length_size, enum AVCodecID codec_id) { int consumed, ret = 0; const uint8_t *next_avc = buf + (is_nalff ? 0 : length); pkt->nb_nals = 0...
false
FFmpeg
61bd0ed781b56eea1e8e851aab34a2ee3b59fbac
int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length, void *logctx, int is_nalff, int nal_length_size, enum AVCodecID codec_id) { int consumed, ret = 0; const uint8_t *next_avc = buf + (is_nalff ? 0 : length); pkt->nb_nals = 0...
{ "code": [], "line_no": [] }
int FUNC_0(H2645Packet *VAR_0, const uint8_t *VAR_1, int VAR_2, void *VAR_3, int VAR_4, int VAR_5, enum AVCodecID VAR_6) { int VAR_7, VAR_8 = 0; const uint8_t *VAR_9 = VAR_1 + (VAR_4 ? 0 : VAR_2); VAR_0->nb_nals = 0; while (VAR_2 >= 4) { ...
[ "int FUNC_0(H2645Packet *VAR_0, const uint8_t *VAR_1, int VAR_2,\nvoid *VAR_3, int VAR_4, int VAR_5,\nenum AVCodecID VAR_6)\n{", "int VAR_7, VAR_8 = 0;", "const uint8_t *VAR_9 = VAR_1 + (VAR_4 ? 0 : VAR_2);", "VAR_0->nb_nals = 0;", "while (VAR_2 >= 4) {", "H2645NAL *nal;", "int VAR_10 = 0;", "int VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ], [ 67 ...
22,567
static int output_packet(AVInputStream *ist, int ist_index, AVOutputStream **ost_table, int nb_ostreams, const AVPacket *pkt) { AVFormatContext *os; AVOutputStream *ost; uint8_t *ptr; int len, ret, i; uint8_t *data_buf; int data_size, go...
false
FFmpeg
3c895fc098f7637f6d5ec3a9d6766e724a8b9e41
static int output_packet(AVInputStream *ist, int ist_index, AVOutputStream **ost_table, int nb_ostreams, const AVPacket *pkt) { AVFormatContext *os; AVOutputStream *ost; uint8_t *ptr; int len, ret, i; uint8_t *data_buf; int data_size, go...
{ "code": [], "line_no": [] }
static int FUNC_0(AVInputStream *VAR_0, int VAR_1, AVOutputStream **VAR_2, int VAR_3, const AVPacket *VAR_4) { AVFormatContext *os; AVOutputStream *ost; uint8_t *ptr; int VAR_5, VAR_6, VAR_13; uint8_t *data_buf; int VAR_8, VAR_9; AV...
[ "static int FUNC_0(AVInputStream *VAR_0, int VAR_1,\nAVOutputStream **VAR_2, int VAR_3,\nconst AVPacket *VAR_4)\n{", "AVFormatContext *os;", "AVOutputStream *ost;", "uint8_t *ptr;", "int VAR_5, VAR_6, VAR_13;", "uint8_t *data_buf;", "int VAR_8, VAR_9;", "AVFrame picture;", "short VAR_10[AVCODEC_MAX_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
22,568
static void count_frame_bits(AC3EncodeContext *s) { AC3EncOptions *opt = &s->options; int blk, ch; int frame_bits = 0; /* header */ if (s->eac3) { /* coupling */ if (s->channel_mode > AC3_CHMODE_MONO) { frame_bits++; for (blk = 1; blk < AC3_MAX_BLO...
false
FFmpeg
08a747afb98c11da48b89339c2f1c5fdc56ced7e
static void count_frame_bits(AC3EncodeContext *s) { AC3EncOptions *opt = &s->options; int blk, ch; int frame_bits = 0; if (s->eac3) { if (s->channel_mode > AC3_CHMODE_MONO) { frame_bits++; for (blk = 1; blk < AC3_MAX_BLOCKS; blk++) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(AC3EncodeContext *VAR_0) { AC3EncOptions *opt = &VAR_0->options; int VAR_1, VAR_2; int VAR_3 = 0; if (VAR_0->eac3) { if (VAR_0->channel_mode > AC3_CHMODE_MONO) { VAR_3++; for (VAR_1 = 1; VAR_1 < AC3_MAX_BLOCKS; VAR_1++) { ...
[ "static void FUNC_0(AC3EncodeContext *VAR_0)\n{", "AC3EncOptions *opt = &VAR_0->options;", "int VAR_1, VAR_2;", "int VAR_3 = 0;", "if (VAR_0->eac3) {", "if (VAR_0->channel_mode > AC3_CHMODE_MONO) {", "VAR_3++;", "for (VAR_1 = 1; VAR_1 < AC3_MAX_BLOCKS; VAR_1++) {", "AC3Block *block = &VAR_0->blocks[...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51,...
22,569
void sp804_init(uint32_t base, qemu_irq irq) { int iomemtype; sp804_state *s; qemu_irq *qi; s = (sp804_state *)qemu_mallocz(sizeof(sp804_state)); qi = qemu_allocate_irqs(sp804_set_irq, s, 2); s->base = base; s->irq = irq; /* ??? The timers are actually configurable between 32k...
true
qemu
187337f8b0ec0813dd3876d1efe37d415fb81c2e
void sp804_init(uint32_t base, qemu_irq irq) { int iomemtype; sp804_state *s; qemu_irq *qi; s = (sp804_state *)qemu_mallocz(sizeof(sp804_state)); qi = qemu_allocate_irqs(sp804_set_irq, s, 2); s->base = base; s->irq = irq; s->timer[0] = arm_timer_init(1000000, qi[0]); ...
{ "code": [ " cpu_register_physical_memory(base, 0x00000fff, iomemtype);", " cpu_register_physical_memory(base, 0x00000fff, iomemtype);", " cpu_register_physical_memory(base, 0x00000fff, iomemtype);", " cpu_register_physical_memory(base, 0x00000fff, iomemtype);", " cpu_register_phys...
void FUNC_0(uint32_t VAR_0, qemu_irq VAR_1) { int VAR_2; sp804_state *s; qemu_irq *qi; s = (sp804_state *)qemu_mallocz(sizeof(sp804_state)); qi = qemu_allocate_irqs(sp804_set_irq, s, 2); s->VAR_0 = VAR_0; s->VAR_1 = VAR_1; s->timer[0] = arm_timer_init(1000000, qi[0]); ...
[ "void FUNC_0(uint32_t VAR_0, qemu_irq VAR_1)\n{", "int VAR_2;", "sp804_state *s;", "qemu_irq *qi;", "s = (sp804_state *)qemu_mallocz(sizeof(sp804_state));", "qi = qemu_allocate_irqs(sp804_set_irq, s, 2);", "s->VAR_0 = VAR_0;", "s->VAR_1 = VAR_1;", "s->timer[0] = arm_timer_init(1000000, qi[0]);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 37 ] ]
22,570
static void network_init(void) { int i; for(i = 0; i < nb_nics; i++) { NICInfo *nd = &nd_table[i]; const char *default_devaddr = NULL; if (i == 0 && (!nd->model || strcmp(nd->model, "pcnet") == 0)) /* The malta board has a PCNet card using PCI SLOT 11 */ ...
true
qemu
07caea315a85ebfe90851f9c2e4ef3fdd24117b5
static void network_init(void) { int i; for(i = 0; i < nb_nics; i++) { NICInfo *nd = &nd_table[i]; const char *default_devaddr = NULL; if (i == 0 && (!nd->model || strcmp(nd->model, "pcnet") == 0)) default_devaddr = "0b"; pci_nic_init(nd, "...
{ "code": [ " pci_nic_init(nd, \"pcnet\", default_devaddr);" ], "line_no": [ 25 ] }
static void FUNC_0(void) { int VAR_0; for(VAR_0 = 0; VAR_0 < nb_nics; VAR_0++) { NICInfo *nd = &nd_table[VAR_0]; const char *default_devaddr = NULL; if (VAR_0 == 0 && (!nd->model || strcmp(nd->model, "pcnet") == 0)) default_devaddr = "0b"; ...
[ "static void FUNC_0(void)\n{", "int VAR_0;", "for(VAR_0 = 0; VAR_0 < nb_nics; VAR_0++) {", "NICInfo *nd = &nd_table[VAR_0];", "const char *default_devaddr = NULL;", "if (VAR_0 == 0 && (!nd->model || strcmp(nd->model, \"pcnet\") == 0))\ndefault_devaddr = \"0b\";", "pci_nic_init(nd, \"pcnet\", default_dev...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 21 ], [ 25 ], [ 27 ], [ 29 ] ]
22,571
static uint8_t *buffer_end(Buffer *buffer) { return buffer->buffer + buffer->offset; }
true
qemu
2f9606b3736c3be4dbd606c46525c7b770ced119
static uint8_t *buffer_end(Buffer *buffer) { return buffer->buffer + buffer->offset; }
{ "code": [ "static uint8_t *buffer_end(Buffer *buffer)" ], "line_no": [ 1 ] }
static uint8_t *FUNC_0(Buffer *buffer) { return buffer->buffer + buffer->offset; }
[ "static uint8_t *FUNC_0(Buffer *buffer)\n{", "return buffer->buffer + buffer->offset;", "}" ]
[ 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
22,572
PXA2xxState *pxa270_init(MemoryRegion *address_space, unsigned int sdram_size, const char *revision) { PXA2xxState *s; int i; DriveInfo *dinfo; s = (PXA2xxState *) g_malloc0(sizeof(PXA2xxState)); if (revision && strncmp(revision, "pxa27", 5)) { fprintf(stde...
true
qemu
b45c03f585ea9bb1af76c73e82195418c294919d
PXA2xxState *pxa270_init(MemoryRegion *address_space, unsigned int sdram_size, const char *revision) { PXA2xxState *s; int i; DriveInfo *dinfo; s = (PXA2xxState *) g_malloc0(sizeof(PXA2xxState)); if (revision && strncmp(revision, "pxa27", 5)) { fprintf(stde...
{ "code": [ " s = (PXA2xxState *) g_malloc0(sizeof(PXA2xxState));", " s->ssp = (SSIBus **)g_malloc0(sizeof(SSIBus *) * i);", " s = (PXA2xxState *) g_malloc0(sizeof(PXA2xxState));", " s->ssp = (SSIBus **)g_malloc0(sizeof(SSIBus *) * i);" ], "line_no": [ 13, 205, 13, 205 ...
PXA2xxState *FUNC_0(MemoryRegion *address_space, unsigned int sdram_size, const char *revision) { PXA2xxState *s; int VAR_0; DriveInfo *dinfo; s = (PXA2xxState *) g_malloc0(sizeof(PXA2xxState)); if (revision && strncmp(revision, "pxa27", 5)) { fprintf(stder...
[ "PXA2xxState *FUNC_0(MemoryRegion *address_space,\nunsigned int sdram_size, const char *revision)\n{", "PXA2xxState *s;", "int VAR_0;", "DriveInfo *dinfo;", "s = (PXA2xxState *) g_malloc0(sizeof(PXA2xxState));", "if (revision && strncmp(revision, \"pxa27\", 5)) {", "fprintf(stderr, \"Machine requires a ...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47, 49 ], [ 51 ], [...
22,574
static int cpu_mips_register (CPUMIPSState *env, const mips_def_t *def) { env->CP0_PRid = def->CP0_PRid; env->CP0_Config0 = def->CP0_Config0; #ifdef TARGET_WORDS_BIGENDIAN env->CP0_Config0 |= (1 << CP0C0_BE); #endif env->CP0_Config1 = def->CP0_Config1; env->CP0_Config2 = def->CP0_Config2; ...
true
qemu
51cc2e783af5586b2e742ce9e5b2762dc50ad325
static int cpu_mips_register (CPUMIPSState *env, const mips_def_t *def) { env->CP0_PRid = def->CP0_PRid; env->CP0_Config0 = def->CP0_Config0; #ifdef TARGET_WORDS_BIGENDIAN env->CP0_Config0 |= (1 << CP0C0_BE); #endif env->CP0_Config1 = def->CP0_Config1; env->CP0_Config2 = def->CP0_Config2; ...
{ "code": [ "static int cpu_mips_register (CPUMIPSState *env, const mips_def_t *def)", " env->CP0_PRid = def->CP0_PRid;", " env->CP0_Config0 = def->CP0_Config0;", "#ifdef TARGET_WORDS_BIGENDIAN", " env->CP0_Config0 |= (1 << CP0C0_BE);", "#endif", " env->CP0_Config1 = def->CP0_C...
static int FUNC_0 (CPUMIPSState *VAR_0, const mips_def_t *VAR_1) { VAR_0->CP0_PRid = VAR_1->CP0_PRid; VAR_0->CP0_Config0 = VAR_1->CP0_Config0; #ifdef TARGET_WORDS_BIGENDIAN VAR_0->CP0_Config0 |= (1 << CP0C0_BE); #endif VAR_0->CP0_Config1 = VAR_1->CP0_Config1; VAR_0->CP0_Config2 = VAR_1->CP0_...
[ "static int FUNC_0 (CPUMIPSState *VAR_0, const mips_def_t *VAR_1)\n{", "VAR_0->CP0_PRid = VAR_1->CP0_PRid;", "VAR_0->CP0_Config0 = VAR_1->CP0_Config0;", "#ifdef TARGET_WORDS_BIGENDIAN\nVAR_0->CP0_Config0 |= (1 << CP0C0_BE);", "#endif\nVAR_0->CP0_Config1 = VAR_1->CP0_Config1;", "VAR_0->CP0_Config2 = VAR_1-...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [...
22,575
static void gd_update(DisplayChangeListener *dcl, DisplayState *ds, int x, int y, int w, int h) { GtkDisplayState *s = ds->opaque; int x1, x2, y1, y2; int mx, my; int fbw, fbh; int ww, wh; DPRINTF("update(x=%d, y=%d, w=%d, h=%d)\n", x, y, w, h); x1 = floor(...
true
qemu
21ef45d71221b4577330fe3aacfb06afad91ad46
static void gd_update(DisplayChangeListener *dcl, DisplayState *ds, int x, int y, int w, int h) { GtkDisplayState *s = ds->opaque; int x1, x2, y1, y2; int mx, my; int fbw, fbh; int ww, wh; DPRINTF("update(x=%d, y=%d, w=%d, h=%d)\n", x, y, w, h); x1 = floor(...
{ "code": [ " GtkDisplayState *s = ds->opaque;", " GtkDisplayState *s = ds->opaque;" ], "line_no": [ 7, 7 ] }
static void FUNC_0(DisplayChangeListener *VAR_0, DisplayState *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5) { GtkDisplayState *s = VAR_1->opaque; int VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10, VAR_11; int VAR_12, VAR_13; int VAR_14, VAR_15; DPRINTF("update(VAR_...
[ "static void FUNC_0(DisplayChangeListener *VAR_0,\nDisplayState *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5)\n{", "GtkDisplayState *s = VAR_1->opaque;", "int VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10, VAR_11;", "int VAR_12, VAR_13;", "int VAR_14, VAR_15;", "DPRINTF(\"update(VAR_2=%d, VAR_3=%d, VA...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
22,576
static void load_module(const char *filename) { void *dll; void (*init_func)(void); dll = dlopen(filename, RTLD_NOW); if (!dll) { fprintf(stderr, "Could not load module '%s' - %s\n", filename, dlerror()); } init_func = dlsym(dll, "ffserver_module_init"); ...
true
FFmpeg
2192f89368d837a4d960a1cabf5475fdeff697e7
static void load_module(const char *filename) { void *dll; void (*init_func)(void); dll = dlopen(filename, RTLD_NOW); if (!dll) { fprintf(stderr, "Could not load module '%s' - %s\n", filename, dlerror()); } init_func = dlsym(dll, "ffserver_module_init"); ...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0) { void *VAR_1; void (*VAR_2)(void); VAR_1 = dlopen(VAR_0, RTLD_NOW); if (!VAR_1) { fprintf(stderr, "Could not load module '%s' - %s\n", VAR_0, dlerror()); } VAR_2 = dlsym(VAR_1, "ffserver_module_init"); if (!VAR_2) { ...
[ "static void FUNC_0(const char *VAR_0)\n{", "void *VAR_1;", "void (*VAR_2)(void);", "VAR_1 = dlopen(VAR_0, RTLD_NOW);", "if (!VAR_1) {", "fprintf(stderr, \"Could not load module '%s' - %s\\n\",\nVAR_0, dlerror());", "}", "VAR_2 = dlsym(VAR_1, \"ffserver_module_init\");", "if (!VAR_2) {", "fprintf(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 18 ], [ 22 ], [ 24 ], [ 26, 28, 30 ], [ 32 ], [ 35 ], [ 39 ], [ 41 ] ]
22,577
DVDemuxContext* avpriv_dv_init_demux(AVFormatContext *s) { DVDemuxContext *c; c = av_mallocz(sizeof(DVDemuxContext)); if (!c) return NULL; c->vst = avformat_new_stream(s, NULL); if (!c->vst) { av_free(c); return NULL; } c->sys = NULL; c->fctx = ...
false
FFmpeg
0a41f47dc17b49acaff6fe469a6ab358986cc449
DVDemuxContext* avpriv_dv_init_demux(AVFormatContext *s) { DVDemuxContext *c; c = av_mallocz(sizeof(DVDemuxContext)); if (!c) return NULL; c->vst = avformat_new_stream(s, NULL); if (!c->vst) { av_free(c); return NULL; } c->sys = NULL; c->fctx = ...
{ "code": [], "line_no": [] }
DVDemuxContext* FUNC_0(AVFormatContext *s) { DVDemuxContext *c; c = av_mallocz(sizeof(DVDemuxContext)); if (!c) return NULL; c->vst = avformat_new_stream(s, NULL); if (!c->vst) { av_free(c); return NULL; } c->sys = NULL; c->fctx = s; memset...
[ "DVDemuxContext* FUNC_0(AVFormatContext *s)\n{", "DVDemuxContext *c;", "c = av_mallocz(sizeof(DVDemuxContext));", "if (!c)\nreturn NULL;", "c->vst = avformat_new_stream(s, NULL);", "if (!c->vst) {", "av_free(c);", "return NULL;", "}", "c->sys = NULL;", "c->fctx = s;", "memset(c->ast, 0, sizeo...
[ 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 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], ...
22,578
int ff_read_riff_info(AVFormatContext *s, int64_t size) { int64_t start, end, cur; AVIOContext *pb = s->pb; start = avio_tell(pb); end = start + size; while ((cur = avio_tell(pb)) >= 0 && cur <= end - 8 /* = tag + size */) { uint32_t chunk_code; int64_t chunk_size; ...
true
FFmpeg
15cea3695daf3f6363794594982e3816ddc8d90b
int ff_read_riff_info(AVFormatContext *s, int64_t size) { int64_t start, end, cur; AVIOContext *pb = s->pb; start = avio_tell(pb); end = start + size; while ((cur = avio_tell(pb)) >= 0 && cur <= end - 8 ) { uint32_t chunk_code; int64_t chunk_size; char key[5] = {...
{ "code": [ " av_freep(key);", " av_freep(value);" ], "line_no": [ 65, 67 ] }
int FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1) { int64_t start, end, cur; AVIOContext *pb = VAR_0->pb; start = avio_tell(pb); end = start + VAR_1; while ((cur = avio_tell(pb)) >= 0 && cur <= end - 8 ) { uint32_t chunk_code; int64_t chunk_size; char VAR_2[5] = ...
[ "int FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1)\n{", "int64_t start, end, cur;", "AVIOContext *pb = VAR_0->pb;", "start = avio_tell(pb);", "end = start + VAR_1;", "while ((cur = avio_tell(pb)) >= 0 && cur <= end - 8 ) {", "uint32_t chunk_code;", "int64_t chunk_size;", "char VAR_2[5] = {0};", "c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51...
22,579
static int h261_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; H261Context *h = avctx->priv_data; MpegEncContext *s = &h->s; int ret; AVFrame *pict = ...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
static int h261_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; H261Context *h = avctx->priv_data; MpegEncContext *s = &h->s; int ret; AVFrame *pict = ...
{ "code": [ " s->current_picture.f.pict_type = s->pict_type;", " s->current_picture.f.key_frame = s->pict_type == AV_PICTURE_TYPE_I;", " assert(s->current_picture.f.pict_type == s->current_picture_ptr->f.pict_type);", " assert(s->current_picture.f.pict_type == s->pict_type);", " if ...
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; H261Context *h = VAR_0->priv_data; MpegEncContext *s = &h->s; int VAR_6; AVFrame *pict = VAR_1; ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "H261Context *h = VAR_0->priv_data;", "MpegEncContext *s = &h->s;", "int VAR_6;", "AVFrame *pict = VAR_1;", "av_dlog(VAR_0, \"*****fr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35, 37 ], [ 41, 45, 47 ], [ 51 ], [ 57 ], [ 59 ], [ 61 ...
22,580
int qcow2_alloc_cluster_offset(BlockDriverState *bs, uint64_t offset, int n_start, int n_end, int *num, QCowL2Meta *m) { BDRVQcowState *s = bs->opaque; int l2_index, ret, sectors; uint64_t *l2_table; unsigned int nb_clusters, keep_clusters; uint64_t cluster_offset; trace_qcow2_allo...
true
qemu
54e6814360ab2110ed3ed07b2b9a3f9907e1202a
int qcow2_alloc_cluster_offset(BlockDriverState *bs, uint64_t offset, int n_start, int n_end, int *num, QCowL2Meta *m) { BDRVQcowState *s = bs->opaque; int l2_index, ret, sectors; uint64_t *l2_table; unsigned int nb_clusters, keep_clusters; uint64_t cluster_offset; trace_qcow2_allo...
{ "code": [ " if (cluster_offset & QCOW_OFLAG_COMPRESSED) {", " nb_clusters = count_cow_clusters(s, nb_clusters, l2_table, l2_index);", " keep_clusters = 0;", " cluster_offset = 0;" ], "line_no": [ 89, 95, 101, 103 ] }
int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, int VAR_2, int VAR_3, int *VAR_4, QCowL2Meta *VAR_5) { BDRVQcowState *s = VAR_0->opaque; int VAR_6, VAR_7, VAR_8; uint64_t *l2_table; unsigned int VAR_9, VAR_10; uint64_t cluster_offset; trace_qcow2_alloc_clusters_offset(qemu_coro...
[ "int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nint VAR_2, int VAR_3, int *VAR_4, QCowL2Meta *VAR_5)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int VAR_6, VAR_7, VAR_8;", "uint64_t *l2_table;", "unsigned int VAR_9, VAR_10;", "uint64_t cluster_offset;", "trace_qcow2_alloc_clusters_offset(qemu_corou...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 47, 49 ], [ 53 ], [ 65, 67, 69 ], [ 73, 75, 77, 79 ], [...
22,581
static void tb_gen_code(CPUState *env, target_ulong pc, target_ulong cs_base, int flags, int cflags) { TranslationBlock *tb; uint8_t *tc_ptr; target_ulong phys_pc, phys_page2, virt_page2; int code_gen_size; phys_pc = get_phys_addr_code(env, p...
true
qemu
d07bde88a52bf293c3f8846cfd162e0a57e1557c
static void tb_gen_code(CPUState *env, target_ulong pc, target_ulong cs_base, int flags, int cflags) { TranslationBlock *tb; uint8_t *tc_ptr; target_ulong phys_pc, phys_page2, virt_page2; int code_gen_size; phys_pc = get_phys_addr_code(env, p...
{ "code": [ " cpu_gen_code(env, tb, CODE_GEN_MAX_SIZE, &code_gen_size);", " cpu_gen_code(env, tb, CODE_GEN_MAX_SIZE, &code_gen_size);" ], "line_no": [ 45, 45 ] }
static void FUNC_0(CPUState *VAR_0, target_ulong VAR_1, target_ulong VAR_2, int VAR_3, int VAR_4) { TranslationBlock *tb; uint8_t *tc_ptr; target_ulong phys_pc, phys_page2, virt_page2; int VAR_5; phys_pc = get_phys_addr_code(VAR_0, VAR_1); ...
[ "static void FUNC_0(CPUState *VAR_0,\ntarget_ulong VAR_1, target_ulong VAR_2, int VAR_3,\nint VAR_4)\n{", "TranslationBlock *tb;", "uint8_t *tc_ptr;", "target_ulong phys_pc, phys_page2, virt_page2;", "int VAR_5;", "phys_pc = get_phys_addr_code(VAR_0, VAR_1);", "tb = tb_alloc(VAR_1);", "if (!tb) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53 ...
22,582
void cpu_inject_x86_mce(CPUState *cenv, int bank, uint64_t status, uint64_t mcg_status, uint64_t addr, uint64_t misc) { uint64_t mcg_cap = cenv->mcg_cap; unsigned bank_num = mcg_cap & 0xff; uint64_t *banks = cenv->mce_banks; if (bank >= bank_num || !(status & MCI_STATUS_V...
true
qemu
c0532a76b407af4b276dc5a62d8178db59857ea6
void cpu_inject_x86_mce(CPUState *cenv, int bank, uint64_t status, uint64_t mcg_status, uint64_t addr, uint64_t misc) { uint64_t mcg_cap = cenv->mcg_cap; unsigned bank_num = mcg_cap & 0xff; uint64_t *banks = cenv->mce_banks; if (bank >= bank_num || !(status & MCI_STATUS_V...
{ "code": [ " kvm_inject_x86_mce(cenv, bank, status, mcg_status, addr, misc);", " uint64_t mcg_status, uint64_t addr, uint64_t misc)" ], "line_no": [ 23, 3 ] }
void FUNC_0(CPUState *VAR_0, int VAR_1, uint64_t VAR_2, uint64_t VAR_3, uint64_t VAR_4, uint64_t VAR_5) { uint64_t mcg_cap = VAR_0->mcg_cap; unsigned VAR_6 = mcg_cap & 0xff; uint64_t *banks = VAR_0->mce_banks; if (VAR_1 >= VAR_6 || !(VAR_2 & MCI_STATUS_VAL)) retu...
[ "void FUNC_0(CPUState *VAR_0, int VAR_1, uint64_t VAR_2,\nuint64_t VAR_3, uint64_t VAR_4, uint64_t VAR_5)\n{", "uint64_t mcg_cap = VAR_0->mcg_cap;", "unsigned VAR_6 = mcg_cap & 0xff;", "uint64_t *banks = VAR_0->mce_banks;", "if (VAR_1 >= VAR_6 || !(VAR_2 & MCI_STATUS_VAL))\nreturn;", "if (kvm_enabled()) {...
[ 1, 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 39, 41, 43 ], [ 45 ], [ 55, 57 ], [ 59 ], [ 61, 63 ], [ 65, 67 ], [ 69 ], [...
22,583
void qemu_aio_poll(void) { }
true
qemu
baf35cb90204d75404892aa4e52628ae7a00669b
void qemu_aio_poll(void) { }
{ "code": [ "void qemu_aio_poll(void)", "void qemu_aio_poll(void)", "void qemu_aio_poll(void)" ], "line_no": [ 1, 1, 1 ] }
void FUNC_0(void) { }
[ "void FUNC_0(void)\n{", "}" ]
[ 1, 0 ]
[ [ 1, 3 ], [ 5 ] ]
22,584
void virtqueue_map_sg(struct iovec *sg, hwaddr *addr, size_t num_sg, int is_write) { unsigned int i; hwaddr len; if (num_sg > VIRTQUEUE_MAX_SIZE) { error_report("virtio: map attempt out of bounds: %zd > %d", num_sg, VIRTQUEUE_MAX_SIZE); exit(1); } ...
true
qemu
8059feee004111534c4c0652e2f0715e9b4e0754
void virtqueue_map_sg(struct iovec *sg, hwaddr *addr, size_t num_sg, int is_write) { unsigned int i; hwaddr len; if (num_sg > VIRTQUEUE_MAX_SIZE) { error_report("virtio: map attempt out of bounds: %zd > %d", num_sg, VIRTQUEUE_MAX_SIZE); exit(1); } ...
{ "code": [ "void virtqueue_map_sg(struct iovec *sg, hwaddr *addr,", " size_t num_sg, int is_write)", " if (num_sg > VIRTQUEUE_MAX_SIZE) {", " error_report(\"virtio: map attempt out of bounds: %zd > %d\",", " num_sg, VIRTQUEUE_MAX_SIZE);", " exit(1);", ...
void FUNC_0(struct iovec *VAR_0, hwaddr *VAR_1, size_t VAR_2, int VAR_3) { unsigned int VAR_4; hwaddr len; if (VAR_2 > VIRTQUEUE_MAX_SIZE) { error_report("virtio: map attempt out of bounds: %zd > %d", VAR_2, VIRTQUEUE_MAX_SIZE); exit(1); } for (...
[ "void FUNC_0(struct iovec *VAR_0, hwaddr *VAR_1,\nsize_t VAR_2, int VAR_3)\n{", "unsigned int VAR_4;", "hwaddr len;", "if (VAR_2 > VIRTQUEUE_MAX_SIZE) {", "error_report(\"virtio: map attempt out of bounds: %zd > %d\",\nVAR_2, VIRTQUEUE_MAX_SIZE);", "exit(1);", "}", "for (VAR_4 = 0; VAR_4 < VAR_2; VAR_...
[ 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
22,585
static int aasc_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AascContext *s = avctx->priv_data; int compr, i, stride, ret; if ((re...
true
FFmpeg
62b1e3b1031e901105d78e831120de8e4c3e0013
static int aasc_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AascContext *s = avctx->priv_data; int compr, i, stride, ret; if ((re...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; AascContext *s = VAR_0->priv_data; int VAR_6, VAR_7, VAR_8, VAR_9; if ((VAR_9 = ff_...
[ "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;", "AascContext *s = VAR_0->priv_data;", "int VAR_6, VAR_7, VAR_8, VAR_9;", "if ((VAR_9 = ff_reget_buffer(VAR_0, s->frame)) < 0) {", "av_l...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3, 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17, 18 ], [ 19, 20 ], [ 21 ], [ 22 ], [ 23 ],...
22,586
static av_always_inline void filter_common(uint8_t *p, ptrdiff_t stride, int is4tap) { LOAD_PIXELS int a, f1, f2; const uint8_t *cm = ff_crop_tab + MAX_NEG_CROP; a = 3 * (q0 - p0); if (is4tap) a += clip_int8(p1 - q1); a = clip_int...
true
FFmpeg
ac4b32df71bd932838043a4838b86d11e169707f
static av_always_inline void filter_common(uint8_t *p, ptrdiff_t stride, int is4tap) { LOAD_PIXELS int a, f1, f2; const uint8_t *cm = ff_crop_tab + MAX_NEG_CROP; a = 3 * (q0 - p0); if (is4tap) a += clip_int8(p1 - q1); a = clip_int...
{ "code": [ " int is4tap)", " f2 = FFMIN(a + 3, 127) >> 3;", " a = (f1 + 1) >> 1;", " LOAD_PIXELS" ], "line_no": [ 3, 35, 53, 7 ] }
static av_always_inline void FUNC_0(uint8_t *p, ptrdiff_t stride, int is4tap) { LOAD_PIXELS int a, f1, f2; const uint8_t *VAR_0 = ff_crop_tab + MAX_NEG_CROP; a = 3 * (q0 - p0); if (is4tap) a += clip_int8(p1 - q1); a = clip_int8(a)...
[ "static av_always_inline void FUNC_0(uint8_t *p, ptrdiff_t stride,\nint is4tap)\n{", "LOAD_PIXELS\nint a, f1, f2;", "const uint8_t *VAR_0 = ff_crop_tab + MAX_NEG_CROP;", "a = 3 * (q0 - p0);", "if (is4tap)\na += clip_int8(p1 - q1);", "a = clip_int8(a);", "f1 = FFMIN(a + 4, 127) >> 3;", "f2 = FFMIN(a + ...
[ 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 33 ], [ 35 ], [ 43 ], [ 45 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ] ]
22,587
static int virtio_blk_init_pci(PCIDevice *pci_dev) { VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev); VirtIODevice *vdev; if (proxy->class_code != PCI_CLASS_STORAGE_SCSI && proxy->class_code != PCI_CLASS_STORAGE_OTHER) proxy->class_code = PCI_CLASS_STORAGE_SCSI; ...
true
qemu
ac0c14d71b68ac18f03a876028e332534e1e6a3e
static int virtio_blk_init_pci(PCIDevice *pci_dev) { VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev); VirtIODevice *vdev; if (proxy->class_code != PCI_CLASS_STORAGE_SCSI && proxy->class_code != PCI_CLASS_STORAGE_OTHER) proxy->class_code = PCI_CLASS_STORAGE_SCSI; ...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, VAR_0, VAR_0); VirtIODevice *vdev; if (proxy->class_code != PCI_CLASS_STORAGE_SCSI && proxy->class_code != PCI_CLASS_STORAGE_OTHER) proxy->class_code = PCI_CLASS_STORAGE_SCSI; if (!proxy->b...
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, VAR_0, VAR_0);", "VirtIODevice *vdev;", "if (proxy->class_code != PCI_CLASS_STORAGE_SCSI &&\nproxy->class_code != PCI_CLASS_STORAGE_OTHER)\nproxy->class_code = PCI_CLASS_STORAGE_SCSI;", "if (!proxy->block.bs) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13, 15 ], [ 19 ], [ 21 ], [ 25 ], [ 30 ], [ 32, 34, 36, 38 ], [ 42 ], [ 44 ] ]
22,588
static target_ulong helper_sdiv_common(CPUSPARCState *env, target_ulong a, target_ulong b, int cc) { SPARCCPU *cpu = sparc_env_get_cpu(env); int overflow = 0; int64_t x0; int32_t x1; x0 = (a & 0xffffffff) | ((int64_t) (env->y) << 32); x1 = (b & 0x...
true
qemu
6a5b69a959483c7404576a7dc54221ced41e6515
static target_ulong helper_sdiv_common(CPUSPARCState *env, target_ulong a, target_ulong b, int cc) { SPARCCPU *cpu = sparc_env_get_cpu(env); int overflow = 0; int64_t x0; int32_t x1; x0 = (a & 0xffffffff) | ((int64_t) (env->y) << 32); x1 = (b & 0x...
{ "code": [ " x0 = x0 / x1;", " if ((int32_t) x0 != x0) {", " x0 = x0 < 0 ? 0x80000000 : 0x7fffffff;" ], "line_no": [ 33, 35, 37 ] }
static target_ulong FUNC_0(CPUSPARCState *env, target_ulong a, target_ulong b, int cc) { SPARCCPU *cpu = sparc_env_get_cpu(env); int VAR_0 = 0; int64_t x0; int32_t x1; x0 = (a & 0xffffffff) | ((int64_t) (env->y) << 32); x1 = (b & 0xffffffff); ...
[ "static target_ulong FUNC_0(CPUSPARCState *env, target_ulong a,\ntarget_ulong b, int cc)\n{", "SPARCCPU *cpu = sparc_env_get_cpu(env);", "int VAR_0 = 0;", "int64_t x0;", "int32_t x1;", "x0 = (a & 0xffffffff) | ((int64_t) (env->y) << 32);", "x1 = (b & 0xffffffff);", "if (x1 == 0) {", "cpu_restore_sta...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [...
22,589
static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv, int i, AVIOContext *pb, int default_stream_exists) { AVStream *st = s->streams[i]; AVCodecContext *codec = st->codec; ebml_master subinfo, track; int native_id = 0; int qt_id = 0; int bit_d...
false
FFmpeg
c2c4cee866926cb95b2b1a4b28fff9caa4177c7e
static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv, int i, AVIOContext *pb, int default_stream_exists) { AVStream *st = s->streams[i]; AVCodecContext *codec = st->codec; ebml_master subinfo, track; int native_id = 0; int qt_id = 0; int bit_d...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, MatroskaMuxContext *VAR_1, int VAR_2, AVIOContext *VAR_3, int VAR_4) { AVStream *st = VAR_0->streams[VAR_2]; AVCodecContext *codec = st->codec; ebml_master subinfo, track; int VAR_5 = 0; int VAR_6 = 0; int VAR_7 = av_ge...
[ "static int FUNC_0(AVFormatContext *VAR_0, MatroskaMuxContext *VAR_1,\nint VAR_2, AVIOContext *VAR_3, int VAR_4)\n{", "AVStream *st = VAR_0->streams[VAR_2];", "AVCodecContext *codec = st->codec;", "ebml_master subinfo, track;", "int VAR_5 = 0;", "int VAR_6 = 0;", "int VAR_7 = av_get_bits_per_sample(code...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51 ...
22,590
static int ffm_probe(AVProbeData *p) { if (p->buf_size >= 4 && p->buf[0] == 'F' && p->buf[1] == 'F' && p->buf[2] == 'M' && p->buf[3] == '1') return AVPROBE_SCORE_MAX + 1; return 0; }
false
FFmpeg
87e8788680e16c51f6048af26f3f7830c35207a5
static int ffm_probe(AVProbeData *p) { if (p->buf_size >= 4 && p->buf[0] == 'F' && p->buf[1] == 'F' && p->buf[2] == 'M' && p->buf[3] == '1') return AVPROBE_SCORE_MAX + 1; return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { if (VAR_0->buf_size >= 4 && VAR_0->buf[0] == 'F' && VAR_0->buf[1] == 'F' && VAR_0->buf[2] == 'M' && VAR_0->buf[3] == '1') return AVPROBE_SCORE_MAX + 1; return 0; }
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "if (VAR_0->buf_size >= 4 &&\nVAR_0->buf[0] == 'F' && VAR_0->buf[1] == 'F' && VAR_0->buf[2] == 'M' &&\nVAR_0->buf[3] == '1')\nreturn AVPROBE_SCORE_MAX + 1;", "return 0;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11 ], [ 13 ], [ 15 ] ]
22,592
static void win32_aio_process_completion(QEMUWin32AIOState *s, QEMUWin32AIOCB *waiocb, DWORD count) { int ret; s->count--; if (waiocb->ov.Internal != 0) { ret = -EIO; } else { ret = 0; if (count < waiocb->nbytes) { /* Short reads mean EOF, pad with zer...
true
qemu
e8bccad5ac6095b5af7946cd72d9aacb57f7c0a3
static void win32_aio_process_completion(QEMUWin32AIOState *s, QEMUWin32AIOCB *waiocb, DWORD count) { int ret; s->count--; if (waiocb->ov.Internal != 0) { ret = -EIO; } else { ret = 0; if (count < waiocb->nbytes) { if (waiocb->is_read) { ...
{ "code": [ " qemu_vfree(waiocb->buf);" ], "line_no": [ 63 ] }
static void FUNC_0(QEMUWin32AIOState *VAR_0, QEMUWin32AIOCB *VAR_1, DWORD VAR_2) { int VAR_3; VAR_0->VAR_2--; if (VAR_1->ov.Internal != 0) { VAR_3 = -EIO; } else { VAR_3 = 0; if (VAR_2 < VAR_1->nbytes) { if (VAR_1->is_read) { ...
[ "static void FUNC_0(QEMUWin32AIOState *VAR_0,\nQEMUWin32AIOCB *VAR_1, DWORD VAR_2)\n{", "int VAR_3;", "VAR_0->VAR_2--;", "if (VAR_1->ov.Internal != 0) {", "VAR_3 = -EIO;", "} else {", "VAR_3 = 0;", "if (VAR_2 < VAR_1->nbytes) {", "if (VAR_1->is_read) {", "qemu_iovec_memset(VAR_1->qiov, VAR_2, 0,\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
22,593
static void compute_pkt_fields(AVFormatContext *s, AVStream *st, AVCodecParserContext *pc, AVPacket *pkt, int64_t next_dts, int64_t next_pts) { int num, den, presentation_delayed, delay, i; int64_t offset; AVRational duration; int onei...
true
FFmpeg
a5e5959d52860678d028df07ad1351a11aaf47f7
static void compute_pkt_fields(AVFormatContext *s, AVStream *st, AVCodecParserContext *pc, AVPacket *pkt, int64_t next_dts, int64_t next_pts) { int num, den, presentation_delayed, delay, i; int64_t offset; AVRational duration; int onei...
{ "code": [ " (st->cur_dts - next_dts) <= 1 &&" ], "line_no": [ 265 ] }
static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, AVCodecParserContext *VAR_2, AVPacket *VAR_3, int64_t VAR_4, int64_t VAR_5) { int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; int64_t offset; AVRational duration; int VAR_11 = VAR_1->...
[ "static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1,\nAVCodecParserContext *VAR_2, AVPacket *VAR_3,\nint64_t VAR_4, int64_t VAR_5)\n{", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "int64_t offset;", "AVRational duration;", "int VAR_11 = VAR_1->codec->codec_id != AV_CODEC_ID_H264 &&\nVAR_1->codec->cod...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 17 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39, 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
22,594
static inline int vertClassify_altivec(uint8_t src[], int stride, PPContext *c) { /* this code makes no assumption on src or stride. One could remove the recomputation of the perm vector by assuming (stride % 16) == 0, unfortunately this is not always true. */ DECLARE_ALIGNED(16, shor...
true
FFmpeg
a2a17d3f879436182bcc52c2986a56acd81e7e92
static inline int vertClassify_altivec(uint8_t src[], int stride, PPContext *c) { DECLARE_ALIGNED(16, short, data)[8] = { ((c->nonBQP*c->ppMode.baseDcDiff)>>8) + 1, data[0] * 2 + 1, c->QP * 2, ...
{ "code": [ " ((c->nonBQP*c->ppMode.baseDcDiff)>>8) + 1,", " data[0] * 2 + 1," ], "line_no": [ 19, 21 ] }
static inline int FUNC_0(uint8_t VAR_0[], int VAR_1, PPContext *VAR_2) { DECLARE_ALIGNED(16, short, data)[8] = { ((VAR_2->nonBQP*VAR_2->ppMode.baseDcDiff)>>8) + 1, data[0] * 2 + 1, VAR_2->QP * 2, ...
[ "static inline int FUNC_0(uint8_t VAR_0[], int VAR_1, PPContext *VAR_2) {", "DECLARE_ALIGNED(16, short, data)[8] =\n{", "((VAR_2->nonBQP*VAR_2->ppMode.baseDcDiff)>>8) + 1,\ndata[0] * 2 + 1,\nVAR_2->QP * 2,\nVAR_2->QP * 4\n};", "int VAR_3;", "uint8_t *src2 = VAR_0;", "vector signed short v_dcOffset;", "v...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 15, 17 ], [ 19, 21, 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55, 57 ],...
22,595
static int vaapi_vc1_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) { VC1Context * const v = avctx->priv_data; MpegEncContext * const s = &v->s; struct vaapi_context * const vactx = avctx->hwaccel_context; VAPictureParameterBufferVC1 *pic_param; ...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
static int vaapi_vc1_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) { VC1Context * const v = avctx->priv_data; MpegEncContext * const s = &v->s; struct vaapi_context * const vactx = avctx->hwaccel_context; VAPictureParameterBufferVC1 *pic_param; ...
{ "code": [ " pic_param->backward_reference_picture = ff_vaapi_get_surface_id(&s->next_picture.f);", " pic_param->forward_reference_picture = ff_vaapi_get_surface_id(&s->last_picture.f);", " pic_param->backward_reference_picture = ff_vaapi_get_surface_id(&s->next_picture.f);", " ...
static int FUNC_0(AVCodecContext *VAR_0, av_unused const VAR_1 *buffer, av_unused uint32_t size) { VC1Context * const v = VAR_0->priv_data; MpegEncContext * const s = &v->s; struct vaapi_context * const VAR_2 = VAR_0->hwaccel_context; VAPictureParameterBufferVC1 *pic_param; av_dlog(VAR_0, "F...
[ "static int FUNC_0(AVCodecContext *VAR_0, av_unused const VAR_1 *buffer, av_unused uint32_t size)\n{", "VC1Context * const v = VAR_0->priv_data;", "MpegEncContext * const s = &v->s;", "struct vaapi_context * const VAR_2 = VAR_0->hwaccel_context;", "VAPictureParameterBufferVC1 *pic_param;", "av_dlog(VAR_0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
22,596
static int dxv_decompress_raw(AVCodecContext *avctx) { DXVContext *ctx = avctx->priv_data; GetByteContext *gbc = &ctx->gbc; bytestream2_get_buffer(gbc, ctx->tex_data, ctx->tex_size); return 0; }
true
FFmpeg
eb5049227033d946add93c0714bb8a28d94166f1
static int dxv_decompress_raw(AVCodecContext *avctx) { DXVContext *ctx = avctx->priv_data; GetByteContext *gbc = &ctx->gbc; bytestream2_get_buffer(gbc, ctx->tex_data, ctx->tex_size); return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { DXVContext *ctx = VAR_0->priv_data; GetByteContext *gbc = &ctx->gbc; bytestream2_get_buffer(gbc, ctx->tex_data, ctx->tex_size); return 0; }
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "DXVContext *ctx = VAR_0->priv_data;", "GetByteContext *gbc = &ctx->gbc;", "bytestream2_get_buffer(gbc, ctx->tex_data, ctx->tex_size);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ] ]
22,598
static int of_dpa_cmd_group_add(OfDpa *of_dpa, uint32_t group_id, RockerTlv **group_tlvs) { OfDpaGroup *group = of_dpa_group_find(of_dpa, group_id); int err; if (group) { return -ROCKER_EEXIST; } group = of_dpa_group_alloc(group_id); if (!grou...
true
qemu
107e4b352cc309f9bd7588ef1a44549200620078
static int of_dpa_cmd_group_add(OfDpa *of_dpa, uint32_t group_id, RockerTlv **group_tlvs) { OfDpaGroup *group = of_dpa_group_find(of_dpa, group_id); int err; if (group) { return -ROCKER_EEXIST; } group = of_dpa_group_alloc(group_id); if (!grou...
{ "code": [ " if (!group) {", " return -ROCKER_ENOMEM;", " return -ROCKER_ENOMEM;", " if (!group) {", " return -ROCKER_ENOMEM;" ], "line_no": [ 23, 25, 25, 23, 25 ] }
static int FUNC_0(OfDpa *VAR_0, uint32_t VAR_1, RockerTlv **VAR_2) { OfDpaGroup *group = of_dpa_group_find(VAR_0, VAR_1); int VAR_3; if (group) { return -ROCKER_EEXIST; } group = of_dpa_group_alloc(VAR_1); if (!group) { return -ROCKER...
[ "static int FUNC_0(OfDpa *VAR_0, uint32_t VAR_1,\nRockerTlv **VAR_2)\n{", "OfDpaGroup *group = of_dpa_group_find(VAR_0, VAR_1);", "int VAR_3;", "if (group) {", "return -ROCKER_EEXIST;", "}", "group = of_dpa_group_alloc(VAR_1);", "if (!group) {", "return -ROCKER_ENOMEM;", "}", "VAR_3 = of_dpa_cmd...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [...
22,599
static int mxf_read_local_tags(MXFContext *mxf, KLVPacket *klv, int (*read_child)(), int ctx_size, enum MXFMetadataSetType type) { ByteIOContext *pb = mxf->fc->pb; MXFMetadataSet *ctx = ctx_size ? av_mallocz(ctx_size) : mxf; uint64_t klv_end = url_ftell(pb) + klv->length; if (!ctx) retur...
false
FFmpeg
6e3ea4461fa9a77964efd2fa7ed1250dd1c8d43d
static int mxf_read_local_tags(MXFContext *mxf, KLVPacket *klv, int (*read_child)(), int ctx_size, enum MXFMetadataSetType type) { ByteIOContext *pb = mxf->fc->pb; MXFMetadataSet *ctx = ctx_size ? av_mallocz(ctx_size) : mxf; uint64_t klv_end = url_ftell(pb) + klv->length; if (!ctx) retur...
{ "code": [], "line_no": [] }
static int FUNC_0(MXFContext *VAR_0, KLVPacket *VAR_1, int (*VAR_2)(), int VAR_3, enum MXFMetadataSetType VAR_4) { ByteIOContext *pb = VAR_0->fc->pb; MXFMetadataSet *ctx = VAR_3 ? av_mallocz(VAR_3) : VAR_0; uint64_t klv_end = url_ftell(pb) + VAR_1->length; if (!ctx) return -1; while...
[ "static int FUNC_0(MXFContext *VAR_0, KLVPacket *VAR_1, int (*VAR_2)(), int VAR_3, enum MXFMetadataSetType VAR_4)\n{", "ByteIOContext *pb = VAR_0->fc->pb;", "MXFMetadataSet *ctx = VAR_3 ? av_mallocz(VAR_3) : VAR_0;", "uint64_t klv_end = url_ftell(pb) + VAR_1->length;", "if (!ctx)\nreturn -1;", "while (url...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
22,602
static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) { X264Context *x4 = ctx->priv_data; x264_nal_t *nal; int nnal, i, ret; x264_picture_t pic_out = {0}; int pict_type; x264_picture_init( &x4->pic ); x4->pic.img.i_c...
false
FFmpeg
89f704cabab446afc8ba6ecea76714a51b1df32b
static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame, int *got_packet) { X264Context *x4 = ctx->priv_data; x264_nal_t *nal; int nnal, i, ret; x264_picture_t pic_out = {0}; int pict_type; x264_picture_init( &x4->pic ); x4->pic.img.i_c...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2, int *VAR_3) { X264Context *x4 = VAR_0->priv_data; x264_nal_t *nal; int VAR_4, VAR_5, VAR_6; x264_picture_t pic_out = {0}; int VAR_7; x264_picture_init( &x4->pic ); x4->pic.img.i_c...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2,\nint *VAR_3)\n{", "X264Context *x4 = VAR_0->priv_data;", "x264_nal_t *nal;", "int VAR_4, VAR_5, VAR_6;", "x264_picture_t pic_out = {0};", "int VAR_7;", "x264_picture_init( &x4->pic );", "x4->pic.img.i_csp = x4->params.i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49, 51, 53 ...
22,603
int flv_h263_decode_picture_header(MpegEncContext *s) { int format, width, height; /* picture header */ if (get_bits_long(&s->gb, 17) != 1) { av_log(s->avctx, AV_LOG_ERROR, "Bad picture start code\n"); return -1; } format = get_bits(&s->gb, 5); if (format != 0 && forma...
false
FFmpeg
332f9ac4e31ce5e6d0c42ac9e0229d7d1b2b4d60
int flv_h263_decode_picture_header(MpegEncContext *s) { int format, width, height; if (get_bits_long(&s->gb, 17) != 1) { av_log(s->avctx, AV_LOG_ERROR, "Bad picture start code\n"); return -1; } format = get_bits(&s->gb, 5); if (format != 0 && format != 1) { a...
{ "code": [], "line_no": [] }
int FUNC_0(MpegEncContext *VAR_0) { int VAR_1, VAR_2, VAR_3; if (get_bits_long(&VAR_0->gb, 17) != 1) { av_log(VAR_0->avctx, AV_LOG_ERROR, "Bad picture start code\n"); return -1; } VAR_1 = get_bits(&VAR_0->gb, 5); if (VAR_1 != 0 && VAR_1 != 1) { av_log(VAR_0->...
[ "int FUNC_0(MpegEncContext *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3;", "if (get_bits_long(&VAR_0->gb, 17) != 1) {", "av_log(VAR_0->avctx, AV_LOG_ERROR, \"Bad picture start code\\n\");", "return -1;", "}", "VAR_1 = get_bits(&VAR_0->gb, 5);", "if (VAR_1 != 0 && VAR_1 != 1) {", "av_log(VAR_0->avctx, AV_LO...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45, 4...
22,604
static void pci_msix(void) { QVirtioPCIDevice *dev; QPCIBus *bus; QVirtQueuePCI *vqpci; QGuestAllocator *alloc; QVirtioBlkReq req; int n_size = TEST_IMAGE_SIZE / 2; void *addr; uint64_t req_addr; uint64_t capacity; uint32_t features; uint32_t free_head; uint8...
true
qemu
f1d3b99154138741161fc52f5a8c373bf71613c6
static void pci_msix(void) { QVirtioPCIDevice *dev; QPCIBus *bus; QVirtQueuePCI *vqpci; QGuestAllocator *alloc; QVirtioBlkReq req; int n_size = TEST_IMAGE_SIZE / 2; void *addr; uint64_t req_addr; uint64_t capacity; uint32_t features; uint32_t free_head; uint8...
{ "code": [ " guest_free(alloc, vqpci->vq.desc);", " guest_free(alloc, vqpci->vq.desc);", " guest_free(alloc, vqpci->vq.desc);", " guest_free(alloc, vqpci->vq.desc);" ], "line_no": [ 217, 217, 217, 217 ] }
static void FUNC_0(void) { QVirtioPCIDevice *dev; QPCIBus *bus; QVirtQueuePCI *vqpci; QGuestAllocator *alloc; QVirtioBlkReq req; int VAR_0 = TEST_IMAGE_SIZE / 2; void *VAR_1; uint64_t req_addr; uint64_t capacity; uint32_t features; uint32_t free_head; uint8_t...
[ "static void FUNC_0(void)\n{", "QVirtioPCIDevice *dev;", "QPCIBus *bus;", "QVirtQueuePCI *vqpci;", "QGuestAllocator *alloc;", "QVirtioBlkReq req;", "int VAR_0 = TEST_IMAGE_SIZE / 2;", "void *VAR_1;", "uint64_t req_addr;", "uint64_t capacity;", "uint32_t features;", "uint32_t free_head;", "ui...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 51 ...
22,605
static void test_co_queue(void) { Coroutine *c1; Coroutine *c2; c1 = qemu_coroutine_create(c1_fn); c2 = qemu_coroutine_create(c2_fn); qemu_coroutine_enter(c1, c2); memset(c1, 0xff, sizeof(Coroutine)); qemu_coroutine_enter(c2, NULL); }
true
qemu
0b8b8753e4d94901627b3e86431230f2319215c4
static void test_co_queue(void) { Coroutine *c1; Coroutine *c2; c1 = qemu_coroutine_create(c1_fn); c2 = qemu_coroutine_create(c2_fn); qemu_coroutine_enter(c1, c2); memset(c1, 0xff, sizeof(Coroutine)); qemu_coroutine_enter(c2, NULL); }
{ "code": [ " qemu_coroutine_enter(c2, NULL);", " c1 = qemu_coroutine_create(c1_fn);", " c2 = qemu_coroutine_create(c2_fn);", " qemu_coroutine_enter(c1, c2);", " qemu_coroutine_enter(c2, NULL);" ], "line_no": [ 21, 11, 13, 17, 21 ] }
static void FUNC_0(void) { Coroutine *c1; Coroutine *c2; c1 = qemu_coroutine_create(c1_fn); c2 = qemu_coroutine_create(c2_fn); qemu_coroutine_enter(c1, c2); memset(c1, 0xff, sizeof(Coroutine)); qemu_coroutine_enter(c2, NULL); }
[ "static void FUNC_0(void)\n{", "Coroutine *c1;", "Coroutine *c2;", "c1 = qemu_coroutine_create(c1_fn);", "c2 = qemu_coroutine_create(c2_fn);", "qemu_coroutine_enter(c1, c2);", "memset(c1, 0xff, sizeof(Coroutine));", "qemu_coroutine_enter(c2, NULL);", "}" ]
[ 0, 0, 0, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
22,606
static int libopenjpeg_copy_unpacked8(AVCodecContext *avctx, const AVFrame *frame, opj_image_t *image) { int compno; int x; int y; int width; int height; int *image_line; int frame_index; const int numcomps = image->numcomps; for (compno = 0; compno < numcomps; ++compno) ...
true
FFmpeg
56706ac0d5723cb549fec2602e798ab1bf6004cd
static int libopenjpeg_copy_unpacked8(AVCodecContext *avctx, const AVFrame *frame, opj_image_t *image) { int compno; int x; int y; int width; int height; int *image_line; int frame_index; const int numcomps = image->numcomps; for (compno = 0; compno < numcomps; ++compno) ...
{ "code": [ " image_line[x] = image_line[x - image->comps[compno].w];", " image_line[x] = image_line[x - image->comps[compno].w];", " image_line[x] = image_line[x - image->comps[compno].w];", " width = avctx->width / image->comps[compno].dx;", "...
static int FUNC_0(AVCodecContext *VAR_0, const AVFrame *VAR_1, opj_image_t *VAR_2) { int VAR_3; int VAR_4; int VAR_5; int VAR_6; int VAR_7; int *VAR_8; int VAR_9; const int VAR_10 = VAR_2->VAR_10; for (VAR_3 = 0; VAR_3 < VAR_10; ++VAR_3) { if (VAR_2->comps[VAR_3]...
[ "static int FUNC_0(AVCodecContext *VAR_0, const AVFrame *VAR_1, opj_image_t *VAR_2)\n{", "int VAR_3;", "int VAR_4;", "int VAR_5;", "int VAR_6;", "int VAR_7;", "int *VAR_8;", "int VAR_9;", "const int VAR_10 = VAR_2->VAR_10;", "for (VAR_3 = 0; VAR_3 < VAR_10; ++VAR_3) {", "if (VAR_2->comps[VAR_3]....
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
22,607
static int url_alloc_for_protocol(URLContext **puc, struct URLProtocol *up, const char *filename, int flags, const AVIOInterruptCB *int_cb) { URLContext *uc; int err; #if CONFIG_NETWORK if (up->flags & URL_PROTOCOL_FLAG_NETWORK && ...
true
FFmpeg
984d58a3440d513f66344b5332f6b589c0a6bbc6
static int url_alloc_for_protocol(URLContext **puc, struct URLProtocol *up, const char *filename, int flags, const AVIOInterruptCB *int_cb) { URLContext *uc; int err; #if CONFIG_NETWORK if (up->flags & URL_PROTOCOL_FLAG_NETWORK && ...
{ "code": [ " ret= av_opt_set(uc->priv_data, p, key+1, 0);" ], "line_no": [ 105 ] }
static int FUNC_0(URLContext **VAR_0, struct URLProtocol *VAR_1, const char *VAR_2, int VAR_3, const AVIOInterruptCB *VAR_4) { URLContext *uc; int VAR_5; #if CONFIG_NETWORK if (VAR_1->VAR_3 & URL_PROTOCOL_FLAG_NETWORK && !ff_networ...
[ "static int FUNC_0(URLContext **VAR_0, struct URLProtocol *VAR_1,\nconst char *VAR_2, int VAR_3,\nconst AVIOInterruptCB *VAR_4)\n{", "URLContext *uc;", "int VAR_5;", "#if CONFIG_NETWORK\nif (VAR_1->VAR_3 & URL_PROTOCOL_FLAG_NETWORK && !ff_network_init())\nreturn AVERROR(EIO);", "#endif\nif ((VAR_3 & AVIO_FL...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15, 17, 19 ], [ 21, 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
22,608
void ff_write_pass1_stats(MpegEncContext *s) { snprintf(s->avctx->stats_out, 256, "in:%d out:%d type:%d q:%d itex:%d ptex:%d mv:%d misc:%d " "fcode:%d bcode:%d mc-var:%d var:%d icount:%d skipcount:%d hbits:%d;\n", s->current_picture_ptr->f.display_picture_number, ...
true
FFmpeg
e92a78a4095d69d876bef189225608a35166dc4a
void ff_write_pass1_stats(MpegEncContext *s) { snprintf(s->avctx->stats_out, 256, "in:%d out:%d type:%d q:%d itex:%d ptex:%d mv:%d misc:%d " "fcode:%d bcode:%d mc-var:%d var:%d icount:%d skipcount:%d hbits:%d;\n", s->current_picture_ptr->f.display_picture_number, ...
{ "code": [ " \"fcode:%d bcode:%d mc-var:%d var:%d icount:%d skipcount:%d hbits:%d;\\n\"," ], "line_no": [ 9 ] }
void FUNC_0(MpegEncContext *VAR_0) { snprintf(VAR_0->avctx->stats_out, 256, "in:%d out:%d type:%d q:%d itex:%d ptex:%d mv:%d misc:%d " "fcode:%d bcode:%d mc-var:%d var:%d icount:%d skipcount:%d hbits:%d;\n", VAR_0->current_picture_ptr->f.display_picture_number, ...
[ "void FUNC_0(MpegEncContext *VAR_0)\n{", "snprintf(VAR_0->avctx->stats_out, 256,\n\"in:%d out:%d type:%d q:%d itex:%d ptex:%d mv:%d misc:%d \"\n\"fcode:%d bcode:%d mc-var:%d var:%d icount:%d skipcount:%d hbits:%d;\\n\",", "VAR_0->current_picture_ptr->f.display_picture_number,\nVAR_0->current_picture_ptr->f.code...
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37 ], [ 39 ] ]
22,609
static bool is_zero_cluster(BlockDriverState *bs, int64_t start) { BDRVQcow2State *s = bs->opaque; int nr; BlockDriverState *file; int64_t res = bdrv_get_block_status_above(bs, NULL, start, s->cluster_sectors, &nr, &file); return res >= 0 && ((res...
true
qemu
f575f145f4fa97fdbb9bbb4df62dfeada3f15dc4
static bool is_zero_cluster(BlockDriverState *bs, int64_t start) { BDRVQcow2State *s = bs->opaque; int nr; BlockDriverState *file; int64_t res = bdrv_get_block_status_above(bs, NULL, start, s->cluster_sectors, &nr, &file); return res >= 0 && ((res...
{ "code": [ " return res >= 0 && ((res & BDRV_BLOCK_ZERO) || !(res & BDRV_BLOCK_DATA));" ], "line_no": [ 15 ] }
static bool FUNC_0(BlockDriverState *bs, int64_t start) { BDRVQcow2State *s = bs->opaque; int VAR_0; BlockDriverState *file; int64_t res = bdrv_get_block_status_above(bs, NULL, start, s->cluster_sectors, &VAR_0, &file); return res >= 0 && ((res & ...
[ "static bool FUNC_0(BlockDriverState *bs, int64_t start)\n{", "BDRVQcow2State *s = bs->opaque;", "int VAR_0;", "BlockDriverState *file;", "int64_t res = bdrv_get_block_status_above(bs, NULL, start,\ns->cluster_sectors, &VAR_0, &file);", "return res >= 0 && ((res & BDRV_BLOCK_ZERO) || !(res & BDRV_BLOCK_DA...
[ 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ] ]
22,610
static int get_cluster_offset(BlockDriverState *bs, VmdkExtent *extent, VmdkMetaData *m_data, uint64_t offset, int allocate, uint64_t *...
true
qemu
cdeaf1f15909e2e8af38f45aea7cfa467a729c52
static int get_cluster_offset(BlockDriverState *bs, VmdkExtent *extent, VmdkMetaData *m_data, uint64_t offset, int allocate, uint64_t *...
{ "code": [ " m_data->l1_index = l1_index;", " m_data->l2_index = l2_index;", " m_data->l2_offset = l2_offset;", " m_data->valid = 1;" ], "line_no": [ 199, 201, 203, 205 ] }
static int FUNC_0(BlockDriverState *VAR_0, VmdkExtent *VAR_1, VmdkMetaData *VAR_2, uint64_t VAR_3, int VAR_4, uint64_t *VAR_5) { ...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nVmdkExtent *VAR_1,\nVmdkMetaData *VAR_2,\nuint64_t VAR_3,\nint VAR_4,\nuint64_t *VAR_5)\n{", "unsigned int VAR_6, VAR_7, VAR_8;", "int VAR_9, VAR_10, VAR_11;", "uint32_t min_count, *l2_table;", "bool zeroed = false;", "if (VAR_2) {", "VAR_2->valid = 0;", "}...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
22,611
QPCIBus *qpci_init_spapr(QGuestAllocator *alloc) { QPCIBusSPAPR *ret; ret = g_malloc(sizeof(*ret)); ret->alloc = alloc; ret->bus.io_readb = qpci_spapr_io_readb; ret->bus.io_readw = qpci_spapr_io_readw; ret->bus.io_readl = qpci_spapr_io_readl; ret->bus.io_writeb = qpci_spapr_i...
true
qemu
357d1e3bc7d2d80e5271bc4f3ac8537e30dc8046
QPCIBus *qpci_init_spapr(QGuestAllocator *alloc) { QPCIBusSPAPR *ret; ret = g_malloc(sizeof(*ret)); ret->alloc = alloc; ret->bus.io_readb = qpci_spapr_io_readb; ret->bus.io_readw = qpci_spapr_io_readw; ret->bus.io_readl = qpci_spapr_io_readl; ret->bus.io_writeb = qpci_spapr_i...
{ "code": [ " ret->pio_cpu_base = SPAPR_PCI_WINDOW_BASE + SPAPR_PCI_IO_WIN_OFF;", " ret->mmio32_cpu_base = SPAPR_PCI_WINDOW_BASE + SPAPR_PCI_MMIO32_WIN_OFF;" ], "line_no": [ 65, 75 ] }
QPCIBus *FUNC_0(QGuestAllocator *alloc) { QPCIBusSPAPR *ret; ret = g_malloc(sizeof(*ret)); ret->alloc = alloc; ret->bus.io_readb = qpci_spapr_io_readb; ret->bus.io_readw = qpci_spapr_io_readw; ret->bus.io_readl = qpci_spapr_io_readl; ret->bus.io_writeb = qpci_spapr_io_writeb;...
[ "QPCIBus *FUNC_0(QGuestAllocator *alloc)\n{", "QPCIBusSPAPR *ret;", "ret = g_malloc(sizeof(*ret));", "ret->alloc = alloc;", "ret->bus.io_readb = qpci_spapr_io_readb;", "ret->bus.io_readw = qpci_spapr_io_readw;", "ret->bus.io_readl = qpci_spapr_io_readl;", "ret->bus.io_writeb = qpci_spapr_io_writeb;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 61 ], [ 65...
22,612
static int ff_vp56_decode_mbs(AVCodecContext *avctx, void *data, int jobnr, int threadnr) { VP56Context *s0 = avctx->priv_data; int is_alpha = (jobnr == 1); VP56Context *s = is_alpha ? s0->alpha_context : s0; AVFrame *const p = s->frames[VP56_FRAME_CURRENT]; int ...
true
FFmpeg
2ce4f28431623cdde4aa496fd10430f6c7bdef63
static int ff_vp56_decode_mbs(AVCodecContext *avctx, void *data, int jobnr, int threadnr) { VP56Context *s0 = avctx->priv_data; int is_alpha = (jobnr == 1); VP56Context *s = is_alpha ? s0->alpha_context : s0; AVFrame *const p = s->frames[VP56_FRAME_CURRENT]; int ...
{ "code": [ " if (ret < 0)" ], "line_no": [ 157 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int VAR_2, int VAR_3) { VP56Context *s0 = VAR_0->priv_data; int VAR_4 = (VAR_2 == 1); VP56Context *s = VAR_4 ? s0->alpha_context : s0; AVFrame *const p = s->frames[VP56_FRAME_CURRENT]; int VAR_5, VAR_6, VAR_7,...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint VAR_2, int VAR_3)\n{", "VP56Context *s0 = VAR_0->priv_data;", "int VAR_4 = (VAR_2 == 1);", "VP56Context *s = VAR_4 ? s0->alpha_context : s0;", "AVFrame *const p = s->frames[VP56_FRAME_CURRENT];", "int VAR_5, VAR_6, VAR_7, VAR_8 = 0;", "int VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...