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
15,569
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; NuvContext *c = avctx->priv_data; AVFrame *picture = data; int orig_size = buf_size; int keyframe; int r...
false
FFmpeg
859a579e9bbf47fae2e09494c43bcf813dcb2fad
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; NuvContext *c = avctx->priv_data; AVFrame *picture = data; int orig_size = buf_size; int keyframe; int r...
{ "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; NuvContext *c = VAR_0->priv_data; AVFrame *picture = VAR_1; int VAR_6 = VAR_5; int VAR_7; int VAR_8; enum {N...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3) {", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "NuvContext *c = VAR_0->priv_data;", "AVFrame *picture = VAR_1;", "int VAR_6 = VAR_5;", "int VAR_7;", "int VAR_8;", "enum {NUV_UNCOMPRESSED = '...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [...
15,570
qio_channel_websock_extract_headers(char *buffer, QIOChannelWebsockHTTPHeader *hdrs, size_t nhdrsalloc, Error **errp) { char *nl, *sep, *tmp; size_t nhdrs = 0; /* * First parse the HTTP...
true
qemu
f69a8bde29354493ff8aea64cc9cb3b531d16337
qio_channel_websock_extract_headers(char *buffer, QIOChannelWebsockHTTPHeader *hdrs, size_t nhdrsalloc, Error **errp) { char *nl, *sep, *tmp; size_t nhdrs = 0; nl = st...
{ "code": [ "qio_channel_websock_extract_headers(char *buffer,", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;" ], "line_no": [ 1, 43, 43, 43, 43, 159, 159 ] }
FUNC_0(char *VAR_0, QIOChannelWebsockHTTPHeader *VAR_1, size_t VAR_2, Error **VAR_3) { char *VAR_4, *VAR_5, *VAR_6; size_t nhdrs = 0; VAR_4 = strstr(VAR_0, QIO_CHANNEL...
[ "FUNC_0(char *VAR_0,\nQIOChannelWebsockHTTPHeader *VAR_1,\nsize_t VAR_2,\nError **VAR_3)\n{", "char *VAR_4, *VAR_5, *VAR_6;", "size_t nhdrs = 0;", "VAR_4 = strstr(VAR_0, QIO_CHANNEL_WEBSOCK_HANDSHAKE_DELIM);", "if (!VAR_4) {", "error_setg(VAR_3, \"Missing HTTP header delimiter\");", "return 0;", "}", ...
[ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 65 ], [ 67 ], [ 69 ], [...
15,571
static inline void cris_ftag_d(unsigned int x) { register unsigned int v asm("$r10") = x; asm ("ftagd\t[%0]\n" : : "r" (v) ); }
true
qemu
21ce148c7ec71ee32834061355a5ecfd1a11f90f
static inline void cris_ftag_d(unsigned int x) { register unsigned int v asm("$r10") = x; asm ("ftagd\t[%0]\n" : : "r" (v) ); }
{ "code": [ "static inline void cris_ftag_d(unsigned int x)" ], "line_no": [ 1 ] }
static inline void FUNC_0(unsigned int VAR_0) { register unsigned int VAR_1 asm("$r10") = VAR_0; asm ("ftagd\t[%0]\n" : : "r" (VAR_1) ); }
[ "static inline void FUNC_0(unsigned int VAR_0)\n{", "register unsigned int VAR_1 asm(\"$r10\") = VAR_0;", "asm (\"ftagd\\t[%0]\\n\" : : \"r\" (VAR_1) );", "}" ]
[ 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
15,572
int spapr_h_cas_compose_response(sPAPRMachineState *spapr, target_ulong addr, target_ulong size, sPAPROptionVector *ov5_updates) { void *fdt, *fdt_skel; sPAPRDeviceTreeUpdateHeader hdr = { .version_id = 1 }; if (spapr_hotplugged_dev_before_ca...
true
qemu
827b17c468b0dae69f82f852958d16f4bf6d6bf0
int spapr_h_cas_compose_response(sPAPRMachineState *spapr, target_ulong addr, target_ulong size, sPAPROptionVector *ov5_updates) { void *fdt, *fdt_skel; sPAPRDeviceTreeUpdateHeader hdr = { .version_id = 1 }; if (spapr_hotplugged_dev_before_ca...
{ "code": [], "line_no": [] }
int FUNC_0(sPAPRMachineState *VAR_0, target_ulong VAR_1, target_ulong VAR_2, sPAPROptionVector *VAR_3) { void *VAR_4, *VAR_5; sPAPRDeviceTreeUpdateHeader hdr = { .version_id = 1 }; if (spapr_hotplugged_dev_before_cas()) { return 1; ...
[ "int FUNC_0(sPAPRMachineState *VAR_0,\ntarget_ulong VAR_1, target_ulong VAR_2,\nsPAPROptionVector *VAR_3)\n{", "void *VAR_4, *VAR_5;", "sPAPRDeviceTreeUpdateHeader hdr = { .version_id = 1 };", "if (spapr_hotplugged_dev_before_cas()) {", "return 1;", "VAR_2 -= sizeof(hdr);", "VAR_5 = g_malloc0(VAR_2);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3, 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 20 ], [ 21 ], [ 22 ], [ 24 ], [ 25 ],...
15,573
static void wav_destroy (void *opaque) { WAVState *wav = opaque; uint8_t rlen[4]; uint8_t dlen[4]; uint32_t datalen = wav->bytes; uint32_t rifflen = datalen + 36; if (!wav->f) { return; } le_store (rlen, rifflen, 4); le_store (dlen, datalen, 4); qemu_fse...
true
qemu
e84a4fedf74983ad0517b4754f927a96a2eea7ce
static void wav_destroy (void *opaque) { WAVState *wav = opaque; uint8_t rlen[4]; uint8_t dlen[4]; uint32_t datalen = wav->bytes; uint32_t rifflen = datalen + 36; if (!wav->f) { return; } le_store (rlen, rifflen, 4); le_store (dlen, datalen, 4); qemu_fse...
{ "code": [ " if (!wav->f) {", " le_store (rlen, rifflen, 4);", " le_store (dlen, datalen, 4);", " qemu_fseek (wav->f, 4, SEEK_SET);", " qemu_put_buffer (wav->f, rlen, 4);", " qemu_fseek (wav->f, 32, SEEK_CUR);", " qemu_put_buffer (wav->f, dlen, 4);", " qemu_fcl...
static void FUNC_0 (void *VAR_0) { WAVState *wav = VAR_0; uint8_t rlen[4]; uint8_t dlen[4]; uint32_t datalen = wav->bytes; uint32_t rifflen = datalen + 36; if (!wav->f) { return; } le_store (rlen, rifflen, 4); le_store (dlen, datalen, 4); qemu_fseek (wav...
[ "static void FUNC_0 (void *VAR_0)\n{", "WAVState *wav = VAR_0;", "uint8_t rlen[4];", "uint8_t dlen[4];", "uint32_t datalen = wav->bytes;", "uint32_t rifflen = datalen + 36;", "if (!wav->f) {", "return;", "}", "le_store (rlen, rifflen, 4);", "le_store (dlen, datalen, 4);", "qemu_fseek (wav->f, ...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
15,574
void event_notifier_cleanup(EventNotifier *e) { CloseHandle(e->event); }
true
qemu
aa262928595d431bfee7914cb7d9d79197f887a2
void event_notifier_cleanup(EventNotifier *e) { CloseHandle(e->event); }
{ "code": [], "line_no": [] }
void FUNC_0(EventNotifier *VAR_0) { CloseHandle(VAR_0->event); }
[ "void FUNC_0(EventNotifier *VAR_0)\n{", "CloseHandle(VAR_0->event);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 8 ] ]
15,575
static int decode_blocks_ind(ALSDecContext *ctx, unsigned int ra_frame, unsigned int c, const unsigned int *div_blocks, unsigned int *js_blocks) { unsigned int b; ALSBlockData bd = { 0 }; bd.ra_block = ra_frame; bd.const_block ...
true
FFmpeg
ca488ad480360dfafcb5766f7bfbb567a0638979
static int decode_blocks_ind(ALSDecContext *ctx, unsigned int ra_frame, unsigned int c, const unsigned int *div_blocks, unsigned int *js_blocks) { unsigned int b; ALSBlockData bd = { 0 }; bd.ra_block = ra_frame; bd.const_block ...
{ "code": [ " return -1;", " return -1;", " return -1;", " return 0;", " if (read_decode_block(ctx, &bd)) {", " return -1;", " return -1;", " return -1;" ], "line_no": [ 55, 55, 55, 67, ...
static int FUNC_0(ALSDecContext *VAR_0, unsigned int VAR_1, unsigned int VAR_2, const unsigned int *VAR_3, unsigned int *VAR_4) { unsigned int VAR_5; ALSBlockData bd = { 0 }; bd.ra_block = VAR_1; bd.const_block = VAR_0->cons...
[ "static int FUNC_0(ALSDecContext *VAR_0, unsigned int VAR_1,\nunsigned int VAR_2, const unsigned int *VAR_3,\nunsigned int *VAR_4)\n{", "unsigned int VAR_5;", "ALSBlockData bd = { 0 };", "bd.ra_block = VAR_1;", "bd.const_block = VAR_0->const_block;", "bd.shift_lsbs = VAR_0->shift_lsbs;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 49 ], [ 53 ...
15,576
int ff_load_image(uint8_t *data[4], int linesize[4], int *w, int *h, enum AVPixelFormat *pix_fmt, const char *filename, void *log_ctx) { AVInputFormat *iformat = NULL; AVFormatContext *format_ctx = NULL; AVCodec *codec; AVCodecContext *codec_ctx; AVFrame *...
true
FFmpeg
fd9e88fe6018bc72cd0aa10afc3c1a68df8c6558
int ff_load_image(uint8_t *data[4], int linesize[4], int *w, int *h, enum AVPixelFormat *pix_fmt, const char *filename, void *log_ctx) { AVInputFormat *iformat = NULL; AVFormatContext *format_ctx = NULL; AVCodec *codec; AVCodecContext *codec_ctx; AVFrame *...
{ "code": [ " if (codec_ctx)", " avcodec_close(codec_ctx);" ], "line_no": [ 129, 131 ] }
int FUNC_0(uint8_t *VAR_0[4], int VAR_1[4], int *VAR_2, int *VAR_3, enum AVPixelFormat *VAR_4, const char *VAR_5, void *VAR_6) { AVInputFormat *iformat = NULL; AVFormatContext *format_ctx = NULL; AVCodec *codec; AVCodecContext *codec_ctx; AVFrame *frame; ...
[ "int FUNC_0(uint8_t *VAR_0[4], int VAR_1[4],\nint *VAR_2, int *VAR_3, enum AVPixelFormat *VAR_4,\nconst char *VAR_5, void *VAR_6)\n{", "AVInputFormat *iformat = NULL;", "AVFormatContext *format_ctx = NULL;", "AVCodec *codec;", "AVCodecContext *codec_ctx;", "AVFrame *frame;", "int VAR_7, VAR_8 = 0;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
15,579
int ff_h264_set_parameter_from_sps(H264Context *h) { if (h->flags & CODEC_FLAG_LOW_DELAY || (h->sps.bitstream_restriction_flag && !h->sps.num_reorder_frames)) { if (h->avctx->has_b_frames > 1 || h->delayed_pic[0]) av_log(h->avctx, AV_LOG_WARNING, "Delayed frames seen. " ...
true
FFmpeg
354db19ff44c3e33ba1a4298d1b3eaefb0ddc7e3
int ff_h264_set_parameter_from_sps(H264Context *h) { if (h->flags & CODEC_FLAG_LOW_DELAY || (h->sps.bitstream_restriction_flag && !h->sps.num_reorder_frames)) { if (h->avctx->has_b_frames > 1 || h->delayed_pic[0]) av_log(h->avctx, AV_LOG_WARNING, "Delayed frames seen. " ...
{ "code": [ " if (h->avctx->bits_per_raw_sample != h->sps.bit_depth_luma ||" ], "line_no": [ 31 ] }
int FUNC_0(H264Context *VAR_0) { if (VAR_0->flags & CODEC_FLAG_LOW_DELAY || (VAR_0->sps.bitstream_restriction_flag && !VAR_0->sps.num_reorder_frames)) { if (VAR_0->avctx->has_b_frames > 1 || VAR_0->delayed_pic[0]) av_log(VAR_0->avctx, AV_LOG_WARNING, "Delayed frames seen. ...
[ "int FUNC_0(H264Context *VAR_0)\n{", "if (VAR_0->flags & CODEC_FLAG_LOW_DELAY ||\n(VAR_0->sps.bitstream_restriction_flag &&\n!VAR_0->sps.num_reorder_frames)) {", "if (VAR_0->avctx->has_b_frames > 1 || VAR_0->delayed_pic[0])\nav_log(VAR_0->avctx, AV_LOG_WARNING, \"Delayed frames seen. \"\n\"Reenabling low delay ...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 11, 13, 15 ], [ 17, 19 ], [ 21 ], [ 25, 27 ], [ 31, 33 ], [ 35, 37, 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 55 ], [...
15,580
static void gen_compute_branch(DisasContext *ctx, uint32_t opc, int r1, int r2 , int32_t constant , int32_t offset) { TCGv temp, temp2; int n; switch (opc) { /* SB-format jumps */ case OPC1_16_SB_J: case OPC1_32_B_J: gen_goto_tb(ctx, 0, ctx->pc + off...
true
qemu
f678f671ba654d4610f0e43d175c8c1b2fad10df
static void gen_compute_branch(DisasContext *ctx, uint32_t opc, int r1, int r2 , int32_t constant , int32_t offset) { TCGv temp, temp2; int n; switch (opc) { case OPC1_16_SB_J: case OPC1_32_B_J: gen_goto_tb(ctx, 0, ctx->pc + offset * 2); br...
{ "code": [ " printf(\"Branch Error at %x\\n\", ctx->pc);" ], "line_no": [ 483 ] }
static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, int VAR_2, int VAR_3 , int32_t VAR_4 , int32_t VAR_5) { TCGv temp, temp2; int VAR_6; switch (VAR_1) { case OPC1_16_SB_J: case OPC1_32_B_J: gen_goto_tb(VAR_0, 0, VAR_0->pc + VAR_5 * 2); ...
[ "static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, int VAR_2,\nint VAR_3 , int32_t VAR_4 , int32_t VAR_5)\n{", "TCGv temp, temp2;", "int VAR_6;", "switch (VAR_1) {", "case OPC1_16_SB_J:\ncase OPC1_32_B_J:\ngen_goto_tb(VAR_0, 0, VAR_0->pc + VAR_5 * 2);", "break;", "case OPC1_32_B_CALL:\ncase OPC1_1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17, 19, 21 ], [ 23 ], [ 25, 27, 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 49, 51 ], [ 53 ], [ 55,...
15,581
static inline void RENAME(bgr16ToY)(uint8_t *dst, uint8_t *src, int width) { int i; for(i=0; i<width; i++) { int d= ((uint16_t*)src)[i]; int b= d&0x1F; int g= (d>>5)&0x3F; int r= (d>>11)&0x1F; dst[i]= ((2*RY*r + GY*g + 2*BY*b)>>(RGB2YUV_SHIFT-2)) + 16; } }
true
FFmpeg
2da0d70d5eebe42f9fcd27ee554419ebe2a5da06
static inline void RENAME(bgr16ToY)(uint8_t *dst, uint8_t *src, int width) { int i; for(i=0; i<width; i++) { int d= ((uint16_t*)src)[i]; int b= d&0x1F; int g= (d>>5)&0x3F; int r= (d>>11)&0x1F; dst[i]= ((2*RY*r + GY*g + 2*BY*b)>>(RGB2YUV_SHIFT-2)) + 16; } }
{ "code": [ "\tint i;", "\tint i;", "\tint i;", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", ...
static inline void FUNC_0(bgr16ToY)(uint8_t *dst, uint8_t *src, int width) { int VAR_0; for(VAR_0=0; VAR_0<width; VAR_0++) { int d= ((uint16_t*)src)[VAR_0]; int b= d&0x1F; int g= (d>>5)&0x3F; int r= (d>>11)&0x1F; dst[VAR_0]= ((2*RY*r + GY*g + 2*BY*b)>>(RGB2YUV_SHIFT-2)) + 16; } }
[ "static inline void FUNC_0(bgr16ToY)(uint8_t *dst, uint8_t *src, int width)\n{", "int VAR_0;", "for(VAR_0=0; VAR_0<width; VAR_0++)", "{", "int d= ((uint16_t*)src)[VAR_0];", "int b= d&0x1F;", "int g= (d>>5)&0x3F;", "int r= (d>>11)&0x1F;", "dst[VAR_0]= ((2*RY*r + GY*g + 2*BY*b)>>(RGB2YUV_SHIFT-2)) + 1...
[ 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ] ]
15,584
static int film_read_packet(AVFormatContext *s, AVPacket *pkt) { FilmDemuxContext *film = s->priv_data; AVIOContext *pb = s->pb; film_sample *sample; int ret = 0; int i; int left, right; if (film->current_sample >= film->sample_count) sample = &...
true
FFmpeg
1795fed7bc7a8b8109757cb5f27198c5b05698b5
static int film_read_packet(AVFormatContext *s, AVPacket *pkt) { FilmDemuxContext *film = s->priv_data; AVIOContext *pb = s->pb; film_sample *sample; int ret = 0; int i; int left, right; if (film->current_sample >= film->sample_count) sample = &...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { FilmDemuxContext *film = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; film_sample *sample; int VAR_2 = 0; int VAR_3; int VAR_4, VAR_5; if (film->current_sample >= film->sample_count) ...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVPacket *VAR_1)\n{", "FilmDemuxContext *film = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "film_sample *sample;", "int VAR_2 = 0;", "int VAR_3;", "int VAR_4, VAR_5;", "if (film->current_sample >= film->sample_count)\nsample = &film->sample_table[fi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 26 ], [ 32 ], [ 38, 40 ], [ 42 ], [ 44, 46 ], [ 48 ], [ 50 ], [ 52, 54 ], [ 62, 64 ], [ 70 ...
15,585
static void tcg_out_qemu_st(TCGContext* s, TCGReg data_reg, TCGReg addr_reg, TCGMemOpIdx oi) { TCGMemOp opc = get_memop(oi); #ifdef CONFIG_SOFTMMU unsigned mem_index = get_mmuidx(oi); tcg_insn_unit *label_ptr; TCGReg base_reg; base_reg = tcg_out_tlb_read(s, addr...
true
qemu
cd3b29b745b0ff393b2d37317837bc726b8dacc8
static void tcg_out_qemu_st(TCGContext* s, TCGReg data_reg, TCGReg addr_reg, TCGMemOpIdx oi) { TCGMemOp opc = get_memop(oi); #ifdef CONFIG_SOFTMMU unsigned mem_index = get_mmuidx(oi); tcg_insn_unit *label_ptr; TCGReg base_reg; base_reg = tcg_out_tlb_read(s, addr...
{ "code": [ " label_ptr = s->code_ptr + 1;", " tcg_out_insn(s, RI, BRC, S390_CC_NE, 0);", " label_ptr = s->code_ptr + 1;", " tcg_out_insn(s, RI, BRC, S390_CC_NE, 0);" ], "line_no": [ 23, 25, 23, 25 ] }
static void FUNC_0(TCGContext* VAR_0, TCGReg VAR_1, TCGReg VAR_2, TCGMemOpIdx VAR_3) { TCGMemOp opc = get_memop(VAR_3); #ifdef CONFIG_SOFTMMU unsigned mem_index = get_mmuidx(VAR_3); tcg_insn_unit *label_ptr; TCGReg base_reg; base_reg = tcg_out_tlb_read(VAR_0, VA...
[ "static void FUNC_0(TCGContext* VAR_0, TCGReg VAR_1, TCGReg VAR_2,\nTCGMemOpIdx VAR_3)\n{", "TCGMemOp opc = get_memop(VAR_3);", "#ifdef CONFIG_SOFTMMU\nunsigned mem_index = get_mmuidx(VAR_3);", "tcg_insn_unit *label_ptr;", "TCGReg base_reg;", "base_reg = tcg_out_tlb_read(VAR_0, VAR_2, opc, mem_index, 0);"...
[ 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47, 49 ] ]
15,586
static int coroutine_fn mirror_dirty_init(MirrorBlockJob *s) { int64_t sector_num, end; BlockDriverState *base = s->base; BlockDriverState *bs = s->source; BlockDriverState *target_bs = blk_bs(s->target); int ret, n; end = s->bdev_length / BDRV_SECTOR_SIZE; if (base == NULL && !b...
true
qemu
67adf4b39806df42b4c96377b37004de0df3a1fd
static int coroutine_fn mirror_dirty_init(MirrorBlockJob *s) { int64_t sector_num, end; BlockDriverState *base = s->base; BlockDriverState *bs = s->source; BlockDriverState *target_bs = blk_bs(s->target); int ret, n; end = s->bdev_length / BDRV_SECTOR_SIZE; if (base == NULL && !b...
{ "code": [ " trace_mirror_yield(s, s->in_flight, s->buf_free_count, -1);" ], "line_no": [ 59 ] }
static int VAR_0 mirror_dirty_init(MirrorBlockJob *s) { int64_t sector_num, end; BlockDriverState *base = s->base; BlockDriverState *bs = s->source; BlockDriverState *target_bs = blk_bs(s->target); int ret, n; end = s->bdev_length / BDRV_SECTOR_SIZE; if (base == NULL && !bdrv_has...
[ "static int VAR_0 mirror_dirty_init(MirrorBlockJob *s)\n{", "int64_t sector_num, end;", "BlockDriverState *base = s->base;", "BlockDriverState *bs = s->source;", "BlockDriverState *target_bs = blk_bs(s->target);", "int ret, n;", "end = s->bdev_length / BDRV_SECTOR_SIZE;", "if (base == NULL && !bdrv_ha...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [...
15,587
uint32_t do_arm_semihosting(CPUARMState *env) { target_ulong args; char * s; int nr; uint32_t ret; uint32_t len; #ifdef CONFIG_USER_ONLY TaskState *ts = env->opaque; #else CPUARMState *ts = env; #endif nr = env->regs[0]; args = env->regs[1]; switch (nr) { cas...
true
qemu
396bef4b3846bf4e80a2bee38e9a2d8554d0f251
uint32_t do_arm_semihosting(CPUARMState *env) { target_ulong args; char * s; int nr; uint32_t ret; uint32_t len; #ifdef CONFIG_USER_ONLY TaskState *ts = env->opaque; #else CPUARMState *ts = env; #endif nr = env->regs[0]; args = env->regs[1]; switch (nr) { cas...
{ "code": [ " if (ARG(1) >= 12)", " if (ARG(1) < 4)", " return STDIN_FILENO;", " return STDOUT_FILENO;", " return env->regs[0];" ], "line_no": [ 41, 47, 49, 53, 63 ] }
uint32_t FUNC_0(CPUARMState *env) { target_ulong args; char * VAR_0; int VAR_1; uint32_t ret; uint32_t len; #ifdef CONFIG_USER_ONLY TaskState *ts = env->opaque; #else CPUARMState *ts = env; #endif VAR_1 = env->regs[0]; args = env->regs[1]; switch (VAR_1) { ca...
[ "uint32_t FUNC_0(CPUARMState *env)\n{", "target_ulong args;", "char * VAR_0;", "int VAR_1;", "uint32_t ret;", "uint32_t len;", "#ifdef CONFIG_USER_ONLY\nTaskState *ts = env->opaque;", "#else\nCPUARMState *ts = env;", "#endif\nVAR_1 = env->regs[0];", "args = env->regs[1];", "switch (VAR_1) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23, 27 ], [ 29 ], [ 31 ], [ 33, 35, 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ], [ 51, 53 ...
15,588
static void video_audio_display(VideoState *s) { int i, i_start, x, y1, y, ys, delay, n, nb_display_channels; int ch, channels, h, h2, bgcolor, fgcolor; int16_t time_diff; int rdft_bits, nb_freq; for (rdft_bits = 1; (1 << rdft_bits) < 2 * s->height; rdft_bits++) ; nb_freq = 1 <...
true
FFmpeg
92b50b71a1e4e78fa2828dc2e0a4428674a8a9b0
static void video_audio_display(VideoState *s) { int i, i_start, x, y1, y, ys, delay, n, nb_display_channels; int ch, channels, h, h2, bgcolor, fgcolor; int16_t time_diff; int rdft_bits, nb_freq; for (rdft_bits = 1; (1 << rdft_bits) < 2 * s->height; rdft_bits++) ; nb_freq = 1 <...
{ "code": [ " int16_t time_diff;" ], "line_no": [ 9 ] }
static void FUNC_0(VideoState *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15; int16_t time_diff; int VAR_16, VAR_17; for (VAR_16 = 1; (1 << VAR_16) < 2 * VAR_0->height; VAR_16++) ; VAR_17 = 1 << (V...
[ "static void FUNC_0(VideoState *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15;", "int16_t time_diff;", "int VAR_16, VAR_17;", "for (VAR_16 = 1; (1 << VAR_16) < 2 * VAR_0->height; VAR_16++)", ";", "VAR_17 = 1 << (VA...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ...
15,590
static int dirac_unpack_prediction_parameters(DiracContext *s) { static const uint8_t default_blen[] = { 4, 12, 16, 24 }; static const uint8_t default_bsep[] = { 4, 8, 12, 16 }; GetBitContext *gb = &s->gb; unsigned idx, ref; align_get_bits(gb); /* [DIRAC_STD] 11.2.2 Block parameters....
true
FFmpeg
601d072e68fb2967e561980336bea0b0625e629e
static int dirac_unpack_prediction_parameters(DiracContext *s) { static const uint8_t default_blen[] = { 4, 12, 16, 24 }; static const uint8_t default_bsep[] = { 4, 8, 12, 16 }; GetBitContext *gb = &s->gb; unsigned idx, ref; align_get_bits(gb); idx = svq3_get_ue_golomb(gb...
{ "code": [ " if (s->plane[0].xbsep < s->plane[0].xblen/2 || s->plane[0].ybsep < s->plane[0].yblen/2) {" ], "line_no": [ 67 ] }
static int FUNC_0(DiracContext *VAR_0) { static const uint8_t VAR_1[] = { 4, 12, 16, 24 }; static const uint8_t VAR_2[] = { 4, 8, 12, 16 }; GetBitContext *gb = &VAR_0->gb; unsigned VAR_3, VAR_4; align_get_bits(gb); VAR_3 = svq3_get_ue_golomb(gb); if (VAR_3 > 4) { ...
[ "static int FUNC_0(DiracContext *VAR_0)\n{", "static const uint8_t VAR_1[] = { 4, 12, 16, 24 };", "static const uint8_t VAR_2[] = { 4, 8, 12, 16 };", "GetBitContext *gb = &VAR_0->gb;", "unsigned VAR_3, VAR_4;", "align_get_bits(gb);", "VAR_3 = svq3_get_ue_golomb(gb);", "if (VAR_3 > 4) {", "av_log(VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55...
15,591
static int check_timecode(void *log_ctx, AVTimecode *tc) { if (tc->fps <= 0) { av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate must be specified\n"); return AVERROR(EINVAL); } if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps != 30 && tc->fps != 60) { av_log(log_ctx, ...
true
FFmpeg
b46dcd5209a77254345ae098b83a872634c5591b
static int check_timecode(void *log_ctx, AVTimecode *tc) { if (tc->fps <= 0) { av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate must be specified\n"); return AVERROR(EINVAL); } if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps != 30 && tc->fps != 60) { av_log(log_ctx, ...
{ "code": [ " if (tc->fps <= 0) {" ], "line_no": [ 5 ] }
static int FUNC_0(void *VAR_0, AVTimecode *VAR_1) { if (VAR_1->fps <= 0) { av_log(VAR_0, AV_LOG_ERROR, "Timecode frame rate must be specified\n"); return AVERROR(EINVAL); } if ((VAR_1->flags & AV_TIMECODE_FLAG_DROPFRAME) && VAR_1->fps != 30 && VAR_1->fps != 60) { av_log(VAR_0,...
[ "static int FUNC_0(void *VAR_0, AVTimecode *VAR_1)\n{", "if (VAR_1->fps <= 0) {", "av_log(VAR_0, AV_LOG_ERROR, \"Timecode frame rate must be specified\\n\");", "return AVERROR(EINVAL);", "}", "if ((VAR_1->flags & AV_TIMECODE_FLAG_DROPFRAME) && VAR_1->fps != 30 && VAR_1->fps != 60) {", "av_log(VAR_0, AV_...
[ 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 ] ]
15,592
static void RENAME(yuv2rgb555_1)(SwsContext *c, const int16_t *buf0, const int16_t *ubuf[2], const int16_t *bguf[2], const int16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, int y) { const int16_t *ubuf0 = ubu...
true
FFmpeg
1bab6f852c7ca433285d19f65c701885fa69cc57
static void RENAME(yuv2rgb555_1)(SwsContext *c, const int16_t *buf0, const int16_t *ubuf[2], const int16_t *bguf[2], const int16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, int y) { const int16_t *ubuf0 = ubu...
{ "code": [ " const int16_t *ubuf0 = ubuf[0], *ubuf1 = ubuf[1];", " const int16_t *ubuf0 = ubuf[0], *ubuf1 = ubuf[1];", " const int16_t *ubuf[2], const int16_t *bguf[2],", " const int16_t *ubuf0 = ubuf[0], *ubuf1 = ubuf[1];", " ...
static void FUNC_0(yuv2rgb555_1)(SwsContext *c, const int16_t *buf0, const int16_t *ubuf[2], const int16_t *bguf[2], const int16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, int y) { const int16_t *VAR_0 = ubu...
[ "static void FUNC_0(yuv2rgb555_1)(SwsContext *c, const int16_t *buf0,\nconst int16_t *ubuf[2], const int16_t *bguf[2],\nconst int16_t *abuf0, uint8_t *dest,\nint dstW, int uvalpha, int y)\n{", "const int16_t *VAR_0 = ubuf[0], *ubuf1 = ubuf[1];", "const int16_t *VAR_1= buf0;", "if (uvalpha < 2048) {", "__asm...
[ 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21, 23, 25, 27, 29, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53 ], [ 55 ], [ 57, 59, 61, 63, 65, 67, 71, 73,...
15,593
static void dvbsub_parse_pixel_data_block(AVCodecContext *avctx, DVBSubObjectDisplay *display, const uint8_t *buf, int buf_size, int top_bottom, int non_mod) { DVBSubContext *ctx = avctx->priv_data; DVBSubRegion *region = get_region(ctx, display->region_id); ...
true
FFmpeg
52b2e95cd9f829b83b879a0694173d4ef1558c46
static void dvbsub_parse_pixel_data_block(AVCodecContext *avctx, DVBSubObjectDisplay *display, const uint8_t *buf, int buf_size, int top_bottom, int non_mod) { DVBSubContext *ctx = avctx->priv_data; DVBSubRegion *region = get_region(ctx, display->region_id); ...
{ "code": [ " region->width - x_pos, &buf, buf_size,", " region->width - x_pos, &buf, buf_size,", " region->width - x_pos, &buf, buf_size," ], "line_no": [ 1...
static void FUNC_0(AVCodecContext *VAR_0, DVBSubObjectDisplay *VAR_1, const uint8_t *VAR_2, int VAR_3, int VAR_4, int VAR_5) { DVBSubContext *ctx = VAR_0->priv_data; DVBSubRegion *region = get_region(ctx, VAR_1->region_id); const uint8_t *VAR_6 = VAR_2 + VAR_...
[ "static void FUNC_0(AVCodecContext *VAR_0, DVBSubObjectDisplay *VAR_1,\nconst uint8_t *VAR_2, int VAR_3, int VAR_4, int VAR_5)\n{", "DVBSubContext *ctx = VAR_0->priv_data;", "DVBSubRegion *region = get_region(ctx, VAR_1->region_id);", "const uint8_t *VAR_6 = VAR_2 + VAR_3;", "uint8_t *pbuf;", "int VAR_7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 41, 43 ], [ 45, 47 ], [ 51 ], [ 53, 55 ], ...
15,595
static inline void gen_op_sdivx(TCGv dst, TCGv src1, TCGv src2) { int l1, l2; l1 = gen_new_label(); l2 = gen_new_label(); tcg_gen_mov_tl(cpu_cc_src, src1); tcg_gen_mov_tl(cpu_cc_src2, src2); gen_trap_ifdivzero_tl(cpu_cc_src2); tcg_gen_brcondi_tl(TCG_COND_NE, cpu_cc_src, INT64_MIN, ...
true
qemu
8e91ed308062e742610e4cfdfd4a09bc045ead45
static inline void gen_op_sdivx(TCGv dst, TCGv src1, TCGv src2) { int l1, l2; l1 = gen_new_label(); l2 = gen_new_label(); tcg_gen_mov_tl(cpu_cc_src, src1); tcg_gen_mov_tl(cpu_cc_src2, src2); gen_trap_ifdivzero_tl(cpu_cc_src2); tcg_gen_brcondi_tl(TCG_COND_NE, cpu_cc_src, INT64_MIN, ...
{ "code": [ " tcg_gen_mov_tl(cpu_cc_src, src1);", " tcg_gen_mov_tl(cpu_cc_src2, src2);", " gen_trap_ifdivzero_tl(cpu_cc_src2);", " tcg_gen_brcondi_tl(TCG_COND_NE, cpu_cc_src, INT64_MIN, l1);", " tcg_gen_brcondi_tl(TCG_COND_NE, cpu_cc_src2, -1, l1);", " tcg_gen_div_i64(dst, cp...
static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1, TCGv VAR_2) { int VAR_3, VAR_4; VAR_3 = gen_new_label(); VAR_4 = gen_new_label(); tcg_gen_mov_tl(cpu_cc_src, VAR_1); tcg_gen_mov_tl(cpu_cc_src2, VAR_2); gen_trap_ifdivzero_tl(cpu_cc_src2); tcg_gen_brcondi_tl(TCG_COND_NE, cpu_cc_src,...
[ "static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1, TCGv VAR_2)\n{", "int VAR_3, VAR_4;", "VAR_3 = gen_new_label();", "VAR_4 = gen_new_label();", "tcg_gen_mov_tl(cpu_cc_src, VAR_1);", "tcg_gen_mov_tl(cpu_cc_src2, VAR_2);", "gen_trap_ifdivzero_tl(cpu_cc_src2);", "tcg_gen_brcondi_tl(TCG_COND_NE, cpu_cc_s...
[ 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
15,596
static void iterative_me(SnowContext *s){ int pass, mb_x, mb_y; const int b_width = s->b_width << s->block_max_depth; const int b_height= s->b_height << s->block_max_depth; const int b_stride= b_width; int color[3]; for(pass=0; pass<50; pass++){ int change= 0; for(mb...
true
FFmpeg
13705b69ebe9e375fdb52469760a0fbb5f593cc1
static void iterative_me(SnowContext *s){ int pass, mb_x, mb_y; const int b_width = s->b_width << s->block_max_depth; const int b_height= s->b_height << s->block_max_depth; const int b_stride= b_width; int color[3]; for(pass=0; pass<50; pass++){ int change= 0; for(mb...
{ "code": [], "line_no": [] }
static void FUNC_0(SnowContext *VAR_0){ int VAR_1, VAR_2, VAR_3; const int VAR_4 = VAR_0->VAR_4 << VAR_0->block_max_depth; const int VAR_5= VAR_0->VAR_5 << VAR_0->block_max_depth; const int VAR_6= VAR_4; int VAR_7[3]; for(VAR_1=0; VAR_1<50; VAR_1++){ int VAR_8= 0; fo...
[ "static void FUNC_0(SnowContext *VAR_0){", "int VAR_1, VAR_2, VAR_3;", "const int VAR_4 = VAR_0->VAR_4 << VAR_0->block_max_depth;", "const int VAR_5= VAR_0->VAR_5 << VAR_0->block_max_depth;", "const int VAR_6= VAR_4;", "int VAR_7[3];", "for(VAR_1=0; VAR_1<50; VAR_1++){", "int VAR_8= 0;", "for(VAR_3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 43 ], [...
15,597
static void coroutine_fn v9fs_xattrcreate(void *opaque) { int flags; int32_t fid; int64_t size; ssize_t err = 0; V9fsString name; size_t offset = 7; V9fsFidState *file_fidp; V9fsFidState *xattr_fidp; V9fsPDU *pdu = opaque; v9fs_string_init(&name); err = pdu_unma...
true
qemu
eb687602853b4ae656e9236ee4222609f3a6887d
static void coroutine_fn v9fs_xattrcreate(void *opaque) { int flags; int32_t fid; int64_t size; ssize_t err = 0; V9fsString name; size_t offset = 7; V9fsFidState *file_fidp; V9fsFidState *xattr_fidp; V9fsPDU *pdu = opaque; v9fs_string_init(&name); err = pdu_unma...
{ "code": [ " xattr_fidp->fs.xattr.value = g_malloc(size);" ], "line_no": [ 65 ] }
static void VAR_0 v9fs_xattrcreate(void *opaque) { int flags; int32_t fid; int64_t size; ssize_t err = 0; V9fsString name; size_t offset = 7; V9fsFidState *file_fidp; V9fsFidState *xattr_fidp; V9fsPDU *pdu = opaque; v9fs_string_init(&name); err = pdu_unmarshal(p...
[ "static void VAR_0 v9fs_xattrcreate(void *opaque)\n{", "int flags;", "int32_t fid;", "int64_t size;", "ssize_t err = 0;", "V9fsString name;", "size_t offset = 7;", "V9fsFidState *file_fidp;", "V9fsFidState *xattr_fidp;", "V9fsPDU *pdu = opaque;", "v9fs_string_init(&name);", "err = pdu_unmarsha...
[ 0, 0, 0, 0, 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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
15,598
static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size, int64_t pos, uint64_t cluster_time, uint64_t block_duration, int is_keyframe, uint8_t *additional, uint64_t additional_id, int addit...
true
FFmpeg
d59820f6fec3fd112436fb7712e4f9d6d768b664
static int matroska_parse_block(MatroskaDemuxContext *matroska, uint8_t *data, int size, int64_t pos, uint64_t cluster_time, uint64_t block_duration, int is_keyframe, uint8_t *additional, uint64_t additional_id, int addit...
{ "code": [ " if (timecode < matroska->skip_to_timecode)" ], "line_no": [ 111 ] }
static int FUNC_0(MatroskaDemuxContext *VAR_0, uint8_t *VAR_1, int VAR_2, int64_t VAR_3, uint64_t VAR_4, uint64_t VAR_5, int VAR_6, uint8_t *VAR_7, uint64_t VAR_8, int VAR_9, int64_t VAR_1...
[ "static int FUNC_0(MatroskaDemuxContext *VAR_0, uint8_t *VAR_1,\nint VAR_2, int64_t VAR_3, uint64_t VAR_4,\nuint64_t VAR_5, int VAR_6,\nuint8_t *VAR_7, uint64_t VAR_8, int VAR_9,\nint64_t VAR_10, int64_t VAR_11)\n{", "uint64_t timecode = AV_NOPTS_VALUE;", "MatroskaTrack *track;", "int VAR_12 = 0;", "AVStrea...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ...
15,599
void cpu_x86_dump_state(CPUX86State *env, FILE *f, int flags) { int eflags, i; char cc_op_name[32]; static const char *seg_name[6] = { "ES", "CS", "SS", "DS", "FS", "GS" }; eflags = env->eflags; fprintf(f, "EAX=%08x EBX=%08x ECX=%08x EDX=%08x\n" "ESI=%08x EDI=%08x EBP=%08x ESP=%...
true
qemu
eba2af633fb8fa3b20ad578184d79e1f0eabcefe
void cpu_x86_dump_state(CPUX86State *env, FILE *f, int flags) { int eflags, i; char cc_op_name[32]; static const char *seg_name[6] = { "ES", "CS", "SS", "DS", "FS", "GS" }; eflags = env->eflags; fprintf(f, "EAX=%08x EBX=%08x ECX=%08x EDX=%08x\n" "ESI=%08x EDI=%08x EBP=%08x ESP=%...
{ "code": [ " strcpy(cc_op_name, cc_op_str[env->cc_op]);" ], "line_no": [ 103 ] }
void FUNC_0(CPUX86State *VAR_0, FILE *VAR_1, int VAR_2) { int VAR_3, VAR_4; char VAR_5[32]; static const char *VAR_6[6] = { "ES", "CS", "SS", "DS", "FS", "GS" }; VAR_3 = VAR_0->VAR_3; fprintf(VAR_1, "EAX=%08x EBX=%08x ECX=%08x EDX=%08x\n" "ESI=%08x EDI=%08x EBP=%08x ESP=%08x\n" ...
[ "void FUNC_0(CPUX86State *VAR_0, FILE *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4;", "char VAR_5[32];", "static const char *VAR_6[6] = { \"ES\", \"CS\", \"SS\", \"DS\", \"FS\", \"GS\" };", "VAR_3 = VAR_0->VAR_3;", "fprintf(VAR_1, \"EAX=%08x EBX=%08x ECX=%08x EDX=%08x\\n\"\n\"ESI=%08x EDI=%08x EBP=%08x ESP=%...
[ 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 ], [ 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 ...
15,600
static void memory_region_read_accessor(MemoryRegion *mr, hwaddr addr, uint64_t *value, unsigned size, unsigned shift, ...
true
qemu
cc05c43ad942165ecc6ffd39e41991bee43af044
static void memory_region_read_accessor(MemoryRegion *mr, hwaddr addr, uint64_t *value, unsigned size, unsigned shift, ...
{ "code": [ "static void memory_region_read_accessor(MemoryRegion *mr,", " hwaddr addr,", " uint64_t *value,", " unsigned size,", " unsigned s...
static void FUNC_0(MemoryRegion *VAR_0, hwaddr VAR_1, uint64_t *VAR_2, unsigned VAR_3, unsigned VAR_4, uint64_t VAR...
[ "static void FUNC_0(MemoryRegion *VAR_0,\nhwaddr VAR_1,\nuint64_t *VAR_2,\nunsigned VAR_3,\nunsigned VAR_4,\nuint64_t VAR_5)\n{", "uint64_t tmp;", "if (VAR_0->flush_coalesced_mmio) {", "qemu_flush_coalesced_mmio_buffer();", "}", "tmp = VAR_0->ops->read(VAR_0->opaque, VAR_1, VAR_3);", "trace_memory_regio...
[ 1, 1, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
15,601
static void dec_load(DisasContext *dc) { TCGv t, *addr; unsigned int size; size = 1 << (dc->opcode & 3); LOG_DIS("l %x %d\n", dc->opcode, size); t_sync_flags(dc); addr = compute_ldst_addr(dc, &t); /* If we get a fault on a dslot, the jmpstate better be in sync. */ s...
true
qemu
0187688f3270433269fc7d4909ad36dc5c5db7aa
static void dec_load(DisasContext *dc) { TCGv t, *addr; unsigned int size; size = 1 << (dc->opcode & 3); LOG_DIS("l %x %d\n", dc->opcode, size); t_sync_flags(dc); addr = compute_ldst_addr(dc, &t); sync_jmpstate(dc); if ((dc->env->pvr.regs[2] & PVR2_UNAL...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0) { TCGv t, *addr; unsigned int VAR_1; VAR_1 = 1 << (VAR_0->opcode & 3); LOG_DIS("l %x %d\n", VAR_0->opcode, VAR_1); t_sync_flags(VAR_0); addr = compute_ldst_addr(VAR_0, &t); sync_jmpstate(VAR_0); if ((VAR_0->env->p...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "TCGv t, *addr;", "unsigned int VAR_1;", "VAR_1 = 1 << (VAR_0->opcode & 3);", "LOG_DIS(\"l %x %d\\n\", VAR_0->opcode, VAR_1);", "t_sync_flags(VAR_0);", "addr = compute_ldst_addr(VAR_0, &t);", "sync_jmpstate(VAR_0);", "if ((VAR_0->env->pvr.regs[2] & PVR2_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 37 ], [ 39, 41 ], [ 46 ], [ 48 ], [ 50 ], [ 52 ], [ 57, 59 ] ]
15,602
static void test_visitor_in_int_overflow(TestInputVisitorData *data, const void *unused) { int64_t res = 0; Error *err = NULL; Visitor *v; /* this will overflow a Qint/int64, so should be deserialized into * a QFloat/double field instead, leading to...
true
qemu
a12a5a1a0132527afe87c079e4aae4aad372bd94
static void test_visitor_in_int_overflow(TestInputVisitorData *data, const void *unused) { int64_t res = 0; Error *err = NULL; Visitor *v; v = visitor_input_test_init(data, "%f", DBL_MAX); visit_type_int(v, &res, NULL, &err); g_ass...
{ "code": [ " error_free(err);", " g_assert(err);", " error_free(err);", " g_assert(err);", " error_free(err);", " g_assert(err);", " error_free(err);", " g_assert(err);", " error_free(err);", " g_assert(err);", " error_free(err);", " ...
static void FUNC_0(TestInputVisitorData *VAR_0, const void *VAR_1) { int64_t res = 0; Error *err = NULL; Visitor *v; v = visitor_input_test_init(VAR_0, "%f", DBL_MAX); visit_type_int(v, &res, NULL, &err); g_assert(err); error_...
[ "static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "int64_t res = 0;", "Error *err = NULL;", "Visitor *v;", "v = visitor_input_test_init(VAR_0, \"%f\", DBL_MAX);", "visit_type_int(v, &res, NULL, &err);", "g_assert(err);", "error_free(err);", "}" ]
[ 0, 0, 0, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
15,603
static void compute_pkt_fields(AVFormatContext *s, AVStream *st, AVCodecParserContext *pc, AVPacket *pkt) { int num, den, presentation_delayed, delay, i; int64_t offset; if (s->flags & AVFMT_FLAG_NOFILLIN) return; if((s->flags & AVFMT_FLAG_IGNDTS) && pkt...
true
FFmpeg
26ae9a5d7c448a3eb42641b546ee8d585ab716e6
static void compute_pkt_fields(AVFormatContext *s, AVStream *st, AVCodecParserContext *pc, AVPacket *pkt) { int num, den, presentation_delayed, delay, i; int64_t offset; if (s->flags & AVFMT_FLAG_NOFILLIN) return; if((s->flags & AVFMT_FLAG_IGNDTS) && pkt...
{ "code": [ " if (delay && st->codec->active_thread_type&FF_THREAD_FRAME)", " delay -= st->codec->thread_count-1;" ], "line_no": [ 45, 47 ] }
static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, AVCodecParserContext *VAR_2, AVPacket *VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; int64_t offset; if (VAR_0->flags & AVFMT_FLAG_NOFILLIN) return; if((VAR_0->flags & AVFMT_FLAG_IGNDTS) && VA...
[ "static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1,\nAVCodecParserContext *VAR_2, AVPacket *VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "int64_t offset;", "if (VAR_0->flags & AVFMT_FLAG_NOFILLIN)\nreturn;", "if((VAR_0->flags & AVFMT_FLAG_IGNDTS) && VAR_3->pts != AV_NOPTS_VALUE)\nVAR_3->dt...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19, 21 ], [ 25, 29 ], [ 35 ], [ 37 ], [ 45, 47 ], [ 55, 57, 59 ], [ 63 ], [ 65 ], [ 67 ], [ 77 ], [ 79 ], [ 81 ], [...
15,604
static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples) { AVFilterContext *ctx = inlink->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowWavesContext *showwaves = ctx->priv; const int nb_samples = insamples->audio->nb_samples; AVFilterBufferRef *outpicref = showwaves->o...
false
FFmpeg
5f634480d1c4ed7711a15d1be07e49177cf351c1
static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples) { AVFilterContext *ctx = inlink->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowWavesContext *showwaves = ctx->priv; const int nb_samples = insamples->audio->nb_samples; AVFilterBufferRef *outpicref = showwaves->o...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1) { AVFilterContext *ctx = VAR_0->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowWavesContext *showwaves = ctx->priv; const int VAR_2 = VAR_1->audio->VAR_2; AVFilterBufferRef *outpicref = showwaves->outpicref; int VAR_3 = o...
[ "static int FUNC_0(AVFilterLink *VAR_0, AVFilterBufferRef *VAR_1)\n{", "AVFilterContext *ctx = VAR_0->dst;", "AVFilterLink *outlink = ctx->outputs[0];", "ShowWavesContext *showwaves = ctx->priv;", "const int VAR_2 = VAR_1->audio->VAR_2;", "AVFilterBufferRef *outpicref = showwaves->outpicref;", "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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 45, 47, 49 ...
15,605
static inline void quantize_coefs(double *coef, int *idx, float *lpc, int order, int c_bits) { int i; const float *quant_arr = tns_tmp2_map[c_bits]; for (i = 0; i < order; i++) { idx[i] = quant_array_idx((float)coef[i], quant_arr, c_bits ? 16 : 8); lp...
false
FFmpeg
d55f83de4d419d22d2fd2c0b9ff4ce6bf93847d6
static inline void quantize_coefs(double *coef, int *idx, float *lpc, int order, int c_bits) { int i; const float *quant_arr = tns_tmp2_map[c_bits]; for (i = 0; i < order; i++) { idx[i] = quant_array_idx((float)coef[i], quant_arr, c_bits ? 16 : 8); lp...
{ "code": [], "line_no": [] }
static inline void FUNC_0(double *VAR_0, int *VAR_1, float *VAR_2, int VAR_3, int VAR_4) { int VAR_5; const float *VAR_6 = tns_tmp2_map[VAR_4]; for (VAR_5 = 0; VAR_5 < VAR_3; VAR_5++) { VAR_1[VAR_5] = quant_array_idx((float)VAR_0[VAR_5], VAR_6, VAR_4 ? 16 : 8)...
[ "static inline void FUNC_0(double *VAR_0, int *VAR_1, float *VAR_2, int VAR_3,\nint VAR_4)\n{", "int VAR_5;", "const float *VAR_6 = tns_tmp2_map[VAR_4];", "for (VAR_5 = 0; VAR_5 < VAR_3; VAR_5++) {", "VAR_1[VAR_5] = quant_array_idx((float)VAR_0[VAR_5], VAR_6, VAR_4 ? 16 : 8);", "VAR_2[VAR_5] = VAR_6[VAR_1...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
15,606
static void scsi_block_class_initfn(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); SCSIDeviceClass *sc = SCSI_DEVICE_CLASS(klass); sc->realize = scsi_block_realize; sc->unrealize = scsi_unrealize; sc->alloc_req = scsi_block_new_request; sc->parse_cdb...
false
qemu
fb7b5c0df6e3c501973ce4d57eb2b1d4344a519d
static void scsi_block_class_initfn(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); SCSIDeviceClass *sc = SCSI_DEVICE_CLASS(klass); sc->realize = scsi_block_realize; sc->unrealize = scsi_unrealize; sc->alloc_req = scsi_block_new_request; sc->parse_cdb...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); SCSIDeviceClass *sc = SCSI_DEVICE_CLASS(VAR_0); sc->realize = scsi_block_realize; sc->unrealize = scsi_unrealize; sc->alloc_req = scsi_block_new_request; sc->parse_cdb = scsi_block...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "SCSIDeviceClass *sc = SCSI_DEVICE_CLASS(VAR_0);", "sc->realize = scsi_block_realize;", "sc->unrealize = scsi_unrealize;", "sc->alloc_req = scsi_block_new_request;", "sc->parse_cdb = scsi_bl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
15,607
static inline target_phys_addr_t get_pgaddr(target_phys_addr_t sdr1, int sdr_sh, target_phys_addr_t hash, target_phys_addr_t mask) { return (sdr1 & ((target_phys_addr_t)(-1ULL) <<...
false
qemu
bb593904c18e22ea0671dfa1b02e24982f2bf0ea
static inline target_phys_addr_t get_pgaddr(target_phys_addr_t sdr1, int sdr_sh, target_phys_addr_t hash, target_phys_addr_t mask) { return (sdr1 & ((target_phys_addr_t)(-1ULL) <<...
{ "code": [], "line_no": [] }
static inline target_phys_addr_t FUNC_0(target_phys_addr_t sdr1, int sdr_sh, target_phys_addr_t hash, target_phys_addr_t mask) { return (sdr1 & ((target_phys_addr_t)(-1ULL) << sdr...
[ "static inline target_phys_addr_t FUNC_0(target_phys_addr_t sdr1,\nint sdr_sh,\ntarget_phys_addr_t hash,\ntarget_phys_addr_t mask)\n{", "return (sdr1 & ((target_phys_addr_t)(-1ULL) << sdr_sh)) | (hash & mask);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ] ]
15,608
int vhdx_parse_log(BlockDriverState *bs, BDRVVHDXState *s, bool *flushed, Error **errp) { int ret = 0; VHDXHeader *hdr; VHDXLogSequence logs = { 0 }; hdr = s->headers[s->curr_header]; *flushed = false; /* s->log.hdr is freed in vhdx_close() */ if (s->log.hdr...
false
qemu
bf89e87427fb99b994eb0dfb710bb4b45785f733
int vhdx_parse_log(BlockDriverState *bs, BDRVVHDXState *s, bool *flushed, Error **errp) { int ret = 0; VHDXHeader *hdr; VHDXLogSequence logs = { 0 }; hdr = s->headers[s->curr_header]; *flushed = false; if (s->log.hdr == NULL) { s->log.hdr = qemu_bl...
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, BDRVVHDXState *VAR_1, bool *VAR_2, Error **VAR_3) { int VAR_4 = 0; VHDXHeader *hdr; VHDXLogSequence logs = { 0 }; hdr = VAR_1->headers[VAR_1->curr_header]; *VAR_2 = false; if (VAR_1->log.hdr == NULL) { VAR_1->log...
[ "int FUNC_0(BlockDriverState *VAR_0, BDRVVHDXState *VAR_1, bool *VAR_2,\nError **VAR_3)\n{", "int VAR_4 = 0;", "VHDXHeader *hdr;", "VHDXLogSequence logs = { 0 };", "hdr = VAR_1->headers[VAR_1->curr_header];", "*VAR_2 = false;", "if (VAR_1->log.hdr == NULL) {", "VAR_1->log.hdr = qemu_blockalign(VAR_0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ...
15,609
static gboolean fd_trampoline(GIOChannel *chan, GIOCondition cond, gpointer opaque) { IOTrampoline *tramp = opaque; if ((cond & G_IO_IN) && tramp->fd_read) { tramp->fd_read(tramp->opaque); } if ((cond & G_IO_OUT) && tramp->fd_write) { tramp->fd_write(tramp->opaque); } ...
false
qemu
be08e65e01f1c50fa1552c4f892443cb25bb98e4
static gboolean fd_trampoline(GIOChannel *chan, GIOCondition cond, gpointer opaque) { IOTrampoline *tramp = opaque; if ((cond & G_IO_IN) && tramp->fd_read) { tramp->fd_read(tramp->opaque); } if ((cond & G_IO_OUT) && tramp->fd_write) { tramp->fd_write(tramp->opaque); } ...
{ "code": [], "line_no": [] }
static gboolean FUNC_0(GIOChannel *chan, GIOCondition cond, gpointer opaque) { IOTrampoline *tramp = opaque; if ((cond & G_IO_IN) && tramp->fd_read) { tramp->fd_read(tramp->opaque); } if ((cond & G_IO_OUT) && tramp->fd_write) { tramp->fd_write(tramp->opaque); } ret...
[ "static gboolean FUNC_0(GIOChannel *chan, GIOCondition cond, gpointer opaque)\n{", "IOTrampoline *tramp = opaque;", "if ((cond & G_IO_IN) && tramp->fd_read) {", "tramp->fd_read(tramp->opaque);", "}", "if ((cond & G_IO_OUT) && tramp->fd_write) {", "tramp->fd_write(tramp->opaque);", "}", "return TRUE;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
15,610
static void s390_virtio_serial_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); VirtIOS390DeviceClass *k = VIRTIO_S390_DEVICE_CLASS(klass); k->init = s390_virtio_serial_init; dc->props = s390_virtio_serial_properties; dc->alias = "virtio-serial"; }
false
qemu
6acbe4c6f18e7de00481ff30574262b58526de45
static void s390_virtio_serial_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); VirtIOS390DeviceClass *k = VIRTIO_S390_DEVICE_CLASS(klass); k->init = s390_virtio_serial_init; dc->props = s390_virtio_serial_properties; dc->alias = "virtio-serial"; }
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); VirtIOS390DeviceClass *k = VIRTIO_S390_DEVICE_CLASS(VAR_0); k->init = s390_virtio_serial_init; dc->props = s390_virtio_serial_properties; dc->alias = "virtio-serial"; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "VirtIOS390DeviceClass *k = VIRTIO_S390_DEVICE_CLASS(VAR_0);", "k->init = s390_virtio_serial_init;", "dc->props = s390_virtio_serial_properties;", "dc->alias = \"virtio-serial\";", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
15,611
static uint64_t get_fourcc(AVIOContext *bc) { unsigned int len = ffio_read_varlen(bc); if (len == 2) return avio_rl16(bc); else if (len == 4) return avio_rl32(bc); else return -1; }
false
FFmpeg
7ccc0ed6a0cedbe80443779a805ec90335cd832f
static uint64_t get_fourcc(AVIOContext *bc) { unsigned int len = ffio_read_varlen(bc); if (len == 2) return avio_rl16(bc); else if (len == 4) return avio_rl32(bc); else return -1; }
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(AVIOContext *bc) { unsigned int VAR_0 = ffio_read_varlen(bc); if (VAR_0 == 2) return avio_rl16(bc); else if (VAR_0 == 4) return avio_rl32(bc); else return -1; }
[ "static uint64_t FUNC_0(AVIOContext *bc)\n{", "unsigned int VAR_0 = ffio_read_varlen(bc);", "if (VAR_0 == 2)\nreturn avio_rl16(bc);", "else if (VAR_0 == 4)\nreturn avio_rl32(bc);", "else\nreturn -1;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13, 15 ], [ 17, 19 ], [ 21 ] ]
15,613
void qemu_chr_be_generic_open(CharDriverState *s) { if (s->idle_tag == 0) { s->idle_tag = g_idle_add(qemu_chr_be_generic_open_bh, s); } }
false
qemu
bd5c51ee6c4f1c79cae5ad2516d711a27b4ea8ec
void qemu_chr_be_generic_open(CharDriverState *s) { if (s->idle_tag == 0) { s->idle_tag = g_idle_add(qemu_chr_be_generic_open_bh, s); } }
{ "code": [], "line_no": [] }
void FUNC_0(CharDriverState *VAR_0) { if (VAR_0->idle_tag == 0) { VAR_0->idle_tag = g_idle_add(qemu_chr_be_generic_open_bh, VAR_0); } }
[ "void FUNC_0(CharDriverState *VAR_0)\n{", "if (VAR_0->idle_tag == 0) {", "VAR_0->idle_tag = g_idle_add(qemu_chr_be_generic_open_bh, VAR_0);", "}", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
15,614
static void write_fp_dreg(DisasContext *s, int reg, TCGv_i64 v) { TCGv_i64 tcg_zero = tcg_const_i64(0); tcg_gen_st_i64(v, cpu_env, fp_reg_offset(reg, MO_64)); tcg_gen_st_i64(tcg_zero, cpu_env, fp_reg_hi_offset(reg)); tcg_temp_free_i64(tcg_zero); }
false
qemu
90e496386fe7fd32c189561f846b7913f95b8cf4
static void write_fp_dreg(DisasContext *s, int reg, TCGv_i64 v) { TCGv_i64 tcg_zero = tcg_const_i64(0); tcg_gen_st_i64(v, cpu_env, fp_reg_offset(reg, MO_64)); tcg_gen_st_i64(tcg_zero, cpu_env, fp_reg_hi_offset(reg)); tcg_temp_free_i64(tcg_zero); }
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, int VAR_1, TCGv_i64 VAR_2) { TCGv_i64 tcg_zero = tcg_const_i64(0); tcg_gen_st_i64(VAR_2, cpu_env, fp_reg_offset(VAR_1, MO_64)); tcg_gen_st_i64(tcg_zero, cpu_env, fp_reg_hi_offset(VAR_1)); tcg_temp_free_i64(tcg_zero); }
[ "static void FUNC_0(DisasContext *VAR_0, int VAR_1, TCGv_i64 VAR_2)\n{", "TCGv_i64 tcg_zero = tcg_const_i64(0);", "tcg_gen_st_i64(VAR_2, cpu_env, fp_reg_offset(VAR_1, MO_64));", "tcg_gen_st_i64(tcg_zero, cpu_env, fp_reg_hi_offset(VAR_1));", "tcg_temp_free_i64(tcg_zero);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
15,616
static int ac3_probe(AVProbeData *p) { int max_frames, first_frames = 0, frames; uint8_t *buf, *buf2, *end; AC3HeaderInfo hdr; if(p->buf_size < 7) return 0; max_frames = 0; buf = p->buf; end = buf + p->buf_size; for(; buf < end; buf++) { buf2 = buf; ...
false
FFmpeg
d1a4544de904cc76fea32d9d22252152ebb18edb
static int ac3_probe(AVProbeData *p) { int max_frames, first_frames = 0, frames; uint8_t *buf, *buf2, *end; AC3HeaderInfo hdr; if(p->buf_size < 7) return 0; max_frames = 0; buf = p->buf; end = buf + p->buf_size; for(; buf < end; buf++) { buf2 = buf; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { int VAR_1, VAR_2 = 0, VAR_3; uint8_t *buf, *buf2, *end; AC3HeaderInfo hdr; if(VAR_0->buf_size < 7) return 0; VAR_1 = 0; buf = VAR_0->buf; end = buf + VAR_0->buf_size; for(; buf < end; buf++) { buf2 = buf; ...
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "int VAR_1, VAR_2 = 0, VAR_3;", "uint8_t *buf, *buf2, *end;", "AC3HeaderInfo hdr;", "if(VAR_0->buf_size < 7)\nreturn 0;", "VAR_1 = 0;", "buf = VAR_0->buf;", "end = buf + VAR_0->buf_size;", "for(; buf < end; buf++) {", "buf2 = buf;", "for(VAR_3 = 0; buf...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [...
15,617
int init_put_byte(ByteIOContext *s, unsigned char *buffer, int buffer_size, int write_flag, void *opaque, int (*read_packet)(void *opaque, uint8_t *buf, int buf_size), void (*write_packet)(void *opaque, uin...
false
FFmpeg
465e1dadbef7596a3eb87089a66bb4ecdc26d3c4
int init_put_byte(ByteIOContext *s, unsigned char *buffer, int buffer_size, int write_flag, void *opaque, int (*read_packet)(void *opaque, uint8_t *buf, int buf_size), void (*write_packet)(void *opaque, uin...
{ "code": [], "line_no": [] }
int FUNC_0(ByteIOContext *VAR_0, unsigned char *VAR_1, int VAR_2, int VAR_3, void *VAR_10, int (*VAR_5)(void *VAR_10, uint8_t *VAR_9, int VAR_9), void (*VAR_8)(void *VAR_10, uint8_t *VAR_9, int VAR_9), ...
[ "int FUNC_0(ByteIOContext *VAR_0,\nunsigned char *VAR_1,\nint VAR_2,\nint VAR_3,\nvoid *VAR_10,\nint (*VAR_5)(void *VAR_10, uint8_t *VAR_9, int VAR_9),\nvoid (*VAR_8)(void *VAR_10, uint8_t *VAR_9, int VAR_9),\nint (*VAR_9)(void *VAR_10, offset_t VAR_10, int VAR_11))\n{", "VAR_0->VAR_1 = VAR_1;", "VAR_0->VAR_2 =...
[ 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 ], [...
15,618
static void do_interrupt_v7m(CPUARMState *env) { uint32_t xpsr = xpsr_read(env); uint32_t lr; uint32_t addr; lr = 0xfffffff1; if (env->v7m.current_sp) lr |= 4; if (env->v7m.exception == 0) lr |= 8; /* For exceptions we just mark as pending on the NVIC, and let t...
true
qemu
d8fd2954996255ba6ad610917e7849832d0120b7
static void do_interrupt_v7m(CPUARMState *env) { uint32_t xpsr = xpsr_read(env); uint32_t lr; uint32_t addr; lr = 0xfffffff1; if (env->v7m.current_sp) lr |= 4; if (env->v7m.exception == 0) lr |= 8; switch (env->exception_index) { case EXCP_U...
{ "code": [ " nr = lduw_code(env->regs[15]) & 0xff;" ], "line_no": [ 63 ] }
static void FUNC_0(CPUARMState *VAR_0) { uint32_t xpsr = xpsr_read(VAR_0); uint32_t lr; uint32_t addr; lr = 0xfffffff1; if (VAR_0->v7m.current_sp) lr |= 4; if (VAR_0->v7m.exception == 0) lr |= 8; switch (VAR_0->exception_index) { case EXCP_U...
[ "static void FUNC_0(CPUARMState *VAR_0)\n{", "uint32_t xpsr = xpsr_read(VAR_0);", "uint32_t lr;", "uint32_t addr;", "lr = 0xfffffff1;", "if (VAR_0->v7m.current_sp)\nlr |= 4;", "if (VAR_0->v7m.exception == 0)\nlr |= 8;", "switch (VAR_0->exception_index) {", "case EXCP_UDEF:\narmv7m_nvic_set_pending(V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49, 51, 53 ], [ 55 ], [ 57, 59 ], [...
15,619
static int aac_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { AACContext *ac = avctx->priv_data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; GetBitContext gb; int buf_consumed; int buf_offset; int err; ...
true
FFmpeg
b563afe6fa9345a62750055998a28a3926c02334
static int aac_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { AACContext *ac = avctx->priv_data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; GetBitContext gb; int buf_consumed; int buf_offset; int err; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { AACContext *ac = VAR_0->priv_data; const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; GetBitContext gb; int VAR_6; int VAR_7; int VAR_8; int VAR_9; const uint8_...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "AACContext *ac = VAR_0->priv_data;", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "GetBitContext gb;", "int VAR_6;", "int VAR_7;", "int VAR_8;", "int VAR_9;", "const uint8_t *VAR_10 = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12, 13, 14 ], [ 15 ], [ 16, 17, 18 ], [ 19 ], [ 20 ], [ 21, 22 ], [ 23, 24 ], [ ...
15,620
static void block_job_unref(BlockJob *job) { if (--job->refcnt == 0) { BlockDriverState *bs = blk_bs(job->blk); bs->job = NULL; block_job_remove_all_bdrv(job); blk_remove_aio_context_notifier(job->blk, block_job_attached_aio_context, ...
true
qemu
4172a00373b2c81374293becc02b16b7f8c76659
static void block_job_unref(BlockJob *job) { if (--job->refcnt == 0) { BlockDriverState *bs = blk_bs(job->blk); bs->job = NULL; block_job_remove_all_bdrv(job); blk_remove_aio_context_notifier(job->blk, block_job_attached_aio_context, ...
{ "code": [ "static void block_job_unref(BlockJob *job)" ], "line_no": [ 1 ] }
static void FUNC_0(BlockJob *VAR_0) { if (--VAR_0->refcnt == 0) { BlockDriverState *bs = blk_bs(VAR_0->blk); bs->VAR_0 = NULL; block_job_remove_all_bdrv(VAR_0); blk_remove_aio_context_notifier(VAR_0->blk, block_job_attached_aio_context, ...
[ "static void FUNC_0(BlockJob *VAR_0)\n{", "if (--VAR_0->refcnt == 0) {", "BlockDriverState *bs = blk_bs(VAR_0->blk);", "bs->VAR_0 = NULL;", "block_job_remove_all_bdrv(VAR_0);", "blk_remove_aio_context_notifier(VAR_0->blk,\nblock_job_attached_aio_context,\nblock_job_detach_aio_context, VAR_0);", "blk_unr...
[ 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 ] ]
15,621
static int rawvideo_read_packet(AVFormatContext *s, AVPacket *pkt) { int packet_size, ret, width, height; AVStream *st = s->streams[0]; width = st->codec->width; height = st->codec->height; packet_size = avpicture_get_size(st->codec->pix_fmt, width, height); if (packet_size < 0) ...
true
FFmpeg
22a7e19b50cc1627dd16e22c5e89b1f92f1d0c0e
static int rawvideo_read_packet(AVFormatContext *s, AVPacket *pkt) { int packet_size, ret, width, height; AVStream *st = s->streams[0]; width = st->codec->width; height = st->codec->height; packet_size = avpicture_get_size(st->codec->pix_fmt, width, height); if (packet_size < 0) ...
{ "code": [ " if (ret != packet_size)" ], "line_no": [ 35 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5; AVStream *st = VAR_0->streams[0]; VAR_4 = st->codec->VAR_4; VAR_5 = st->codec->VAR_5; VAR_2 = avpicture_get_size(st->codec->pix_fmt, VAR_4, VAR_5); if (VAR_2 < 0) return -1; VA...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5;", "AVStream *st = VAR_0->streams[0];", "VAR_4 = st->codec->VAR_4;", "VAR_5 = st->codec->VAR_5;", "VAR_2 = avpicture_get_size(st->codec->pix_fmt, VAR_4, VAR_5);", "if (VAR_2 < 0)\nreturn -1;", "VAR_3= av_g...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ] ]
15,623
static int mpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; Mpeg1Context *s = avctx->priv_data; AVFrame *picture = data; MpegEncConte...
true
FFmpeg
951cbea56fdc03ef96d07fbd7e5bed755d42ac8a
static int mpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; Mpeg1Context *s = avctx->priv_data; AVFrame *picture = data; MpegEncConte...
{ "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; Mpeg1Context *s = VAR_0->priv_data; AVFrame *picture = VAR_1; MpegEncContext *s2 = &s->...
[ "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;", "Mpeg1Context *s = VAR_0->priv_data;", "AVFrame *picture = VAR_1;", "MpegEncContext *s2 = &s->mpeg_enc_ctx;", "av_dlog(VAR_0, \"fill_buffer\\n\")...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51, 53 ], [...
15,624
void ff_h264_remove_all_refs(H264Context *h) { int i; for (i = 0; i < 16; i++) { remove_long(h, i, 0); } assert(h->long_ref_count == 0); if (h->short_ref_count && !h->last_pic_for_ec.f->data[0]) { ff_h264_unref_picture(h, &h->last_pic_for_ec); if (h->short_ref[0]...
true
FFmpeg
b6eaa3928e198554a3934dd5ad6eac4d16f27df2
void ff_h264_remove_all_refs(H264Context *h) { int i; for (i = 0; i < 16; i++) { remove_long(h, i, 0); } assert(h->long_ref_count == 0); if (h->short_ref_count && !h->last_pic_for_ec.f->data[0]) { ff_h264_unref_picture(h, &h->last_pic_for_ec); if (h->short_ref[0]...
{ "code": [ " if (h->short_ref[0]->f->buf[0])", " ff_h264_ref_picture(h, &h->last_pic_for_ec, h->short_ref[0]);" ], "line_no": [ 23, 25 ] }
void FUNC_0(H264Context *VAR_0) { int VAR_1; for (VAR_1 = 0; VAR_1 < 16; VAR_1++) { remove_long(VAR_0, VAR_1, 0); } assert(VAR_0->long_ref_count == 0); if (VAR_0->short_ref_count && !VAR_0->last_pic_for_ec.f->data[0]) { ff_h264_unref_picture(VAR_0, &VAR_0->last_pic_for_ec...
[ "void FUNC_0(H264Context *VAR_0)\n{", "int VAR_1;", "for (VAR_1 = 0; VAR_1 < 16; VAR_1++) {", "remove_long(VAR_0, VAR_1, 0);", "}", "assert(VAR_0->long_ref_count == 0);", "if (VAR_0->short_ref_count && !VAR_0->last_pic_for_ec.f->data[0]) {", "ff_h264_unref_picture(VAR_0, &VAR_0->last_pic_for_ec);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ] ]
15,625
static int oss_init_in (HWVoiceIn *hw, struct audsettings *as) { OSSVoiceIn *oss = (OSSVoiceIn *) hw; struct oss_params req, obt; int endianness; int err; int fd; audfmt_e effective_fmt; struct audsettings obt_as; oss->fd = -1; req.fmt = aud_to_ossfmt (as->fmt, as->endi...
true
qemu
5706db1deb061ee9affdcea81e59c4c2cad7c41e
static int oss_init_in (HWVoiceIn *hw, struct audsettings *as) { OSSVoiceIn *oss = (OSSVoiceIn *) hw; struct oss_params req, obt; int endianness; int err; int fd; audfmt_e effective_fmt; struct audsettings obt_as; oss->fd = -1; req.fmt = aud_to_ossfmt (as->fmt, as->endi...
{ "code": [ "static int oss_init_in (HWVoiceIn *hw, struct audsettings *as)" ], "line_no": [ 1 ] }
static int FUNC_0 (HWVoiceIn *VAR_0, struct audsettings *VAR_1) { OSSVoiceIn *oss = (OSSVoiceIn *) VAR_0; struct oss_params VAR_2, VAR_3; int VAR_4; int VAR_5; int VAR_6; audfmt_e effective_fmt; struct audsettings VAR_7; oss->VAR_6 = -1; VAR_2.fmt = aud_to_ossfmt (VAR_1...
[ "static int FUNC_0 (HWVoiceIn *VAR_0, struct audsettings *VAR_1)\n{", "OSSVoiceIn *oss = (OSSVoiceIn *) VAR_0;", "struct oss_params VAR_2, VAR_3;", "int VAR_4;", "int VAR_5;", "int VAR_6;", "audfmt_e effective_fmt;", "struct audsettings VAR_7;", "oss->VAR_6 = -1;", "VAR_2.fmt = aud_to_ossfmt (VAR_...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ...
15,626
int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) { int i; int usesVFilter, usesHFilter; int unscaled; SwsFilter dummyFilter= {NULL, NULL, NULL, NULL}; int srcW= c->srcW; int srcH= c->srcH; int dstW= c->dstW; int dstH= c->dstH; int dst_stride =...
true
FFmpeg
baba2eedacbbaecf55bdb89dbfe32c69799df99f
int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) { int i; int usesVFilter, usesHFilter; int unscaled; SwsFilter dummyFilter= {NULL, NULL, NULL, NULL}; int srcW= c->srcW; int srcH= c->srcH; int dstW= c->dstW; int dstH= c->dstH; int dst_stride =...
{ "code": [ " FF_ALLOCZ_OR_GOTO(c, c->lumPixBuf[i+c->vLumBufSize], dst_stride+1, fail);", " c->uv_off_px = dst_stride_px;", " c->uv_off_byte = dst_stride;", " FF_ALLOC_OR_GOTO(c, c->chrUPixBuf[i+c->vChrBufSize], dst_stride*2+1, fail);", " c->chrVPixBuf[i] = c->chrVPixB...
int FUNC_0(SwsContext *VAR_0, SwsFilter *VAR_1, SwsFilter *VAR_2) { int VAR_3; int VAR_4, VAR_5; int VAR_6; SwsFilter dummyFilter= {NULL, NULL, NULL, NULL}; int VAR_7= VAR_0->VAR_7; int VAR_8= VAR_0->VAR_8; int VAR_9= VAR_0->VAR_9; int VAR_10= VAR_0->VAR_10; int VAR_11 = FF...
[ "int FUNC_0(SwsContext *VAR_0, SwsFilter *VAR_1, SwsFilter *VAR_2)\n{", "int VAR_3;", "int VAR_4, VAR_5;", "int VAR_6;", "SwsFilter dummyFilter= {NULL, NULL, NULL, NULL};", "int VAR_7= VAR_0->VAR_7;", "int VAR_8= VAR_0->VAR_8;", "int VAR_9= VAR_0->VAR_9;", "int VAR_10= VAR_0->VAR_10;", "int VAR_11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ...
15,627
static int kvmppc_get_pvinfo(CPUPPCState *env, struct kvm_ppc_pvinfo *pvinfo) { PowerPCCPU *cpu = ppc_env_get_cpu(env); CPUState *cs = CPU(cpu); if (kvm_check_extension(cs->kvm_state, KVM_CAP_PPC_GET_PVINFO) && !kvm_vm_ioctl(cs->kvm_state, KVM_PPC_GET_PVINFO, pvinfo)) { return 0; ...
false
qemu
6fd33a750214a866772dd77573cfa24c27ad956d
static int kvmppc_get_pvinfo(CPUPPCState *env, struct kvm_ppc_pvinfo *pvinfo) { PowerPCCPU *cpu = ppc_env_get_cpu(env); CPUState *cs = CPU(cpu); if (kvm_check_extension(cs->kvm_state, KVM_CAP_PPC_GET_PVINFO) && !kvm_vm_ioctl(cs->kvm_state, KVM_PPC_GET_PVINFO, pvinfo)) { return 0; ...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUPPCState *VAR_0, struct kvm_ppc_pvinfo *VAR_1) { PowerPCCPU *cpu = ppc_env_get_cpu(VAR_0); CPUState *cs = CPU(cpu); if (kvm_check_extension(cs->kvm_state, KVM_CAP_PPC_GET_PVINFO) && !kvm_vm_ioctl(cs->kvm_state, KVM_PPC_GET_PVINFO, VAR_1)) { return 0; } ...
[ "static int FUNC_0(CPUPPCState *VAR_0, struct kvm_ppc_pvinfo *VAR_1)\n{", "PowerPCCPU *cpu = ppc_env_get_cpu(VAR_0);", "CPUState *cs = CPU(cpu);", "if (kvm_check_extension(cs->kvm_state, KVM_CAP_PPC_GET_PVINFO) &&\n!kvm_vm_ioctl(cs->kvm_state, KVM_PPC_GET_PVINFO, VAR_1)) {", "return 0;", "}", "return 1;...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
15,629
static void vncws_tls_handshake_io(void *opaque) { struct VncState *vs = (struct VncState *)opaque; VNC_DEBUG("Handshake IO continue\n"); vncws_start_tls_handshake(vs); }
false
qemu
51941e4695c6f6c1f786bacef7e8c3a477570e04
static void vncws_tls_handshake_io(void *opaque) { struct VncState *vs = (struct VncState *)opaque; VNC_DEBUG("Handshake IO continue\n"); vncws_start_tls_handshake(vs); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { struct VncState *VAR_1 = (struct VncState *)VAR_0; VNC_DEBUG("Handshake IO continue\n"); vncws_start_tls_handshake(VAR_1); }
[ "static void FUNC_0(void *VAR_0)\n{", "struct VncState *VAR_1 = (struct VncState *)VAR_0;", "VNC_DEBUG(\"Handshake IO continue\\n\");", "vncws_start_tls_handshake(VAR_1);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
15,630
static void pause_all_vcpus(void) { CPUState *penv = first_cpu; while (penv) { penv->stop = 1; qemu_thread_signal(penv->thread, SIGUSR1); qemu_cpu_kick(penv); penv = (CPUState *)penv->next_cpu; } while (!all_vcpus_paused()) { qemu_cond_timedwait(&qem...
false
qemu
cc84de9570ffe01a9c3c169bd62ab9586a9a080c
static void pause_all_vcpus(void) { CPUState *penv = first_cpu; while (penv) { penv->stop = 1; qemu_thread_signal(penv->thread, SIGUSR1); qemu_cpu_kick(penv); penv = (CPUState *)penv->next_cpu; } while (!all_vcpus_paused()) { qemu_cond_timedwait(&qem...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { CPUState *penv = first_cpu; while (penv) { penv->stop = 1; qemu_thread_signal(penv->thread, SIGUSR1); qemu_cpu_kick(penv); penv = (CPUState *)penv->next_cpu; } while (!all_vcpus_paused()) { qemu_cond_timedwait(&qemu_pause_c...
[ "static void FUNC_0(void)\n{", "CPUState *penv = first_cpu;", "while (penv) {", "penv->stop = 1;", "qemu_thread_signal(penv->thread, SIGUSR1);", "qemu_cpu_kick(penv);", "penv = (CPUState *)penv->next_cpu;", "}", "while (!all_vcpus_paused()) {", "qemu_cond_timedwait(&qemu_pause_cond, &qemu_global_m...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
15,631
static void pnv_icp_realize(DeviceState *dev, Error **errp) { PnvICPState *icp = PNV_ICP(dev); memory_region_init_io(&icp->mmio, OBJECT(dev), &pnv_icp_ops, icp, "icp-thread", 0x1000); }
false
qemu
100f738850639a108d6767316ce4dcc1d1ea4ae4
static void pnv_icp_realize(DeviceState *dev, Error **errp) { PnvICPState *icp = PNV_ICP(dev); memory_region_init_io(&icp->mmio, OBJECT(dev), &pnv_icp_ops, icp, "icp-thread", 0x1000); }
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { PnvICPState *icp = PNV_ICP(VAR_0); memory_region_init_io(&icp->mmio, OBJECT(VAR_0), &pnv_icp_ops, icp, "icp-thread", 0x1000); }
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "PnvICPState *icp = PNV_ICP(VAR_0);", "memory_region_init_io(&icp->mmio, OBJECT(VAR_0), &pnv_icp_ops,\nicp, \"icp-thread\", 0x1000);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ] ]
15,632
static void usb_device_class_init(ObjectClass *klass, void *data) { DeviceClass *k = DEVICE_CLASS(klass); k->bus_type = TYPE_USB_BUS; k->init = usb_qdev_init; k->unplug = qdev_simple_unplug_cb; k->exit = usb_qdev_exit; k->props = usb_props; }
false
qemu
7d553f27fce284805d7f94603932045ee3bbb979
static void usb_device_class_init(ObjectClass *klass, void *data) { DeviceClass *k = DEVICE_CLASS(klass); k->bus_type = TYPE_USB_BUS; k->init = usb_qdev_init; k->unplug = qdev_simple_unplug_cb; k->exit = usb_qdev_exit; k->props = usb_props; }
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *k = DEVICE_CLASS(VAR_0); k->bus_type = TYPE_USB_BUS; k->init = usb_qdev_init; k->unplug = qdev_simple_unplug_cb; k->exit = usb_qdev_exit; k->props = usb_props; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *k = DEVICE_CLASS(VAR_0);", "k->bus_type = TYPE_USB_BUS;", "k->init = usb_qdev_init;", "k->unplug = qdev_simple_unplug_cb;", "k->exit = usb_qdev_exit;", "k->props = usb_props;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
15,633
static void qmp_output_type_bool(Visitor *v, const char *name, bool *obj, Error **errp) { QmpOutputVisitor *qov = to_qov(v); qmp_output_add(qov, name, qbool_from_bool(*obj)); }
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void qmp_output_type_bool(Visitor *v, const char *name, bool *obj, Error **errp) { QmpOutputVisitor *qov = to_qov(v); qmp_output_add(qov, name, qbool_from_bool(*obj)); }
{ "code": [], "line_no": [] }
static void FUNC_0(Visitor *VAR_0, const char *VAR_1, bool *VAR_2, Error **VAR_3) { QmpOutputVisitor *qov = to_qov(VAR_0); qmp_output_add(qov, VAR_1, qbool_from_bool(*VAR_2)); }
[ "static void FUNC_0(Visitor *VAR_0, const char *VAR_1, bool *VAR_2,\nError **VAR_3)\n{", "QmpOutputVisitor *qov = to_qov(VAR_0);", "qmp_output_add(qov, VAR_1, qbool_from_bool(*VAR_2));", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ] ]
15,636
static unsigned int * create_elf_tables(char *p, int argc, int envc, struct elfhdr * exec, unsigned long load_addr, unsigned long load_bias, unsigned long i...
false
qemu
edf779ffccc836661a7b654d320571a6c220caea
static unsigned int * create_elf_tables(char *p, int argc, int envc, struct elfhdr * exec, unsigned long load_addr, unsigned long load_bias, unsigned long i...
{ "code": [], "line_no": [] }
static unsigned int * FUNC_0(char *VAR_0, int VAR_1, int VAR_2, struct elfhdr * VAR_3, unsigned long VAR_4, unsigned long VAR_5, unsigned long VAR_6, int VA...
[ "static unsigned int * FUNC_0(char *VAR_0, int VAR_1, int VAR_2,\nstruct elfhdr * VAR_3,\nunsigned long VAR_4,\nunsigned long VAR_5,\nunsigned long VAR_6, int VAR_7,\nstruct image_info *VAR_8)\n{", "target_ulong *argv, *envp;", "target_ulong *sp, *csp;", "sp = (unsigned int *) (~15UL & (unsigned long) 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 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 51, 53 ], [ 55, 57 ], [ 59 ], [ 63 ...
15,637
static void assigned_dev_msix_mmio_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { AssignedDevice *adev = opaque; PCIDevice *pdev = &adev->dev; uint16_t ctrl; MSIXTableEntry orig; int i = addr >> 4; if (i >= adev->msi...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void assigned_dev_msix_mmio_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { AssignedDevice *adev = opaque; PCIDevice *pdev = &adev->dev; uint16_t ctrl; MSIXTableEntry orig; int i = addr >> 4; if (i >= adev->msi...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { AssignedDevice *adev = VAR_0; PCIDevice *pdev = &adev->dev; uint16_t ctrl; MSIXTableEntry orig; int VAR_4 = VAR_1 >> 4; if (VAR_4 >= adev->msix_max) { ...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "AssignedDevice *adev = VAR_0;", "PCIDevice *pdev = &adev->dev;", "uint16_t ctrl;", "MSIXTableEntry orig;", "int VAR_4 = VAR_1 >> 4;", "if (VAR_4 >= adev->msix_max) {", "return;", "}", "ctrl = pci_get_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 53, 55 ], [ 79 ...
15,638
static void test_cancel(void) { WorkerTestData data[100]; int num_canceled; int i; /* Start more work items than there will be threads, to ensure * the pool is full. */ test_submit_many(); /* Start long running jobs, to ensure we can cancel some. */ for (i = 0; i < 1...
false
qemu
c4d9d19645a484298a67e9021060bc7c2b081d0f
static void test_cancel(void) { WorkerTestData data[100]; int num_canceled; int i; test_submit_many(); for (i = 0; i < 100; i++) { data[i].n = 0; data[i].ret = -EINPROGRESS; data[i].aiocb = thread_pool_submit_aio(long_cb, &data[i], ...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { WorkerTestData data[100]; int VAR_0; int VAR_1; test_submit_many(); for (VAR_1 = 0; VAR_1 < 100; VAR_1++) { data[VAR_1].n = 0; data[VAR_1].ret = -EINPROGRESS; data[VAR_1].aiocb = thread_pool_submit_aio(long_cb, &data[VAR...
[ "static void FUNC_0(void)\n{", "WorkerTestData data[100];", "int VAR_0;", "int VAR_1;", "test_submit_many();", "for (VAR_1 = 0; VAR_1 < 100; VAR_1++) {", "data[VAR_1].n = 0;", "data[VAR_1].ret = -EINPROGRESS;", "data[VAR_1].aiocb = thread_pool_submit_aio(long_cb, &data[VAR_1],\ndone_cb, &data[VAR_1]...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 19 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 45 ], [ 47 ], [ 57 ], [ 59 ], [ 61 ], [ 67 ], [ 69 ], [ 71 ], [ 73 ], [...
15,639
int qemu_paio_write(struct qemu_paiocb *aiocb) { return qemu_paio_submit(aiocb, QEMU_PAIO_WRITE); }
false
qemu
9ef91a677110ec200d7b2904fc4bcae5a77329ad
int qemu_paio_write(struct qemu_paiocb *aiocb) { return qemu_paio_submit(aiocb, QEMU_PAIO_WRITE); }
{ "code": [], "line_no": [] }
int FUNC_0(struct qemu_paiocb *VAR_0) { return qemu_paio_submit(VAR_0, QEMU_PAIO_WRITE); }
[ "int FUNC_0(struct qemu_paiocb *VAR_0)\n{", "return qemu_paio_submit(VAR_0, QEMU_PAIO_WRITE);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
15,640
static ssize_t v9fs_synth_llistxattr(FsContext *ctx, V9fsPath *path, void *value, size_t size) { errno = ENOTSUP; return -1; }
false
qemu
364031f17932814484657e5551ba12957d993d7e
static ssize_t v9fs_synth_llistxattr(FsContext *ctx, V9fsPath *path, void *value, size_t size) { errno = ENOTSUP; return -1; }
{ "code": [], "line_no": [] }
static ssize_t FUNC_0(FsContext *ctx, V9fsPath *path, void *value, size_t size) { errno = ENOTSUP; return -1; }
[ "static ssize_t FUNC_0(FsContext *ctx, V9fsPath *path,\nvoid *value, size_t size)\n{", "errno = ENOTSUP;", "return -1;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ] ]
15,641
static int qemu_rbd_set_keypairs(rados_t cluster, const char *keypairs, Error **errp) { char *p, *buf; char *name; char *value; Error *local_err = NULL; int ret = 0; buf = g_strdup(keypairs); p = buf; while (p) { name = qemu_rbd_nex...
false
qemu
730b00bbfdc15f914f47e03a703fa7647c10c4a9
static int qemu_rbd_set_keypairs(rados_t cluster, const char *keypairs, Error **errp) { char *p, *buf; char *name; char *value; Error *local_err = NULL; int ret = 0; buf = g_strdup(keypairs); p = buf; while (p) { name = qemu_rbd_nex...
{ "code": [], "line_no": [] }
static int FUNC_0(rados_t VAR_0, const char *VAR_1, Error **VAR_2) { char *VAR_3, *VAR_4; char *VAR_5; char *VAR_6; Error *local_err = NULL; int VAR_7 = 0; VAR_4 = g_strdup(VAR_1); VAR_3 = VAR_4; while (VAR_3) { VAR_5 = qemu_rbd_nex...
[ "static int FUNC_0(rados_t VAR_0, const char *VAR_1,\nError **VAR_2)\n{", "char *VAR_3, *VAR_4;", "char *VAR_5;", "char *VAR_6;", "Error *local_err = NULL;", "int VAR_7 = 0;", "VAR_4 = g_strdup(VAR_1);", "VAR_3 = VAR_4;", "while (VAR_3) {", "VAR_5 = qemu_rbd_next_tok(RBD_MAX_CONF_NAME_SIZE, VAR_3,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51,...
15,642
static void spapr_phb_remove_pci_device_cb(DeviceState *dev, void *opaque) { /* some version guests do not wait for completion of a device * cleanup (generally done asynchronously by the kernel) before * signaling to QEMU that the device is safe, but instead sleep * for some 'safe' period of tim...
false
qemu
318347234d7069b62d38391dd27e269a3107d668
static void spapr_phb_remove_pci_device_cb(DeviceState *dev, void *opaque) { pci_device_reset(PCI_DEVICE(dev)); object_unparent(OBJECT(dev)); }
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, void *VAR_1) { pci_device_reset(PCI_DEVICE(VAR_0)); object_unparent(OBJECT(VAR_0)); }
[ "static void FUNC_0(DeviceState *VAR_0, void *VAR_1)\n{", "pci_device_reset(PCI_DEVICE(VAR_0));", "object_unparent(OBJECT(VAR_0));", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 25 ], [ 27 ], [ 29 ] ]
15,643
static QObject *parse_object(JSONParserContext *ctxt, QList **tokens, va_list *ap) { QDict *dict = NULL; QObject *token, *peek; QList *working = qlist_copy(*tokens); token = qlist_pop(working); if (token == NULL) { goto out; } if (!token_is_operator(token, '{')) { ...
false
qemu
65c0f1e9558c7c762cdb333406243fff1d687117
static QObject *parse_object(JSONParserContext *ctxt, QList **tokens, va_list *ap) { QDict *dict = NULL; QObject *token, *peek; QList *working = qlist_copy(*tokens); token = qlist_pop(working); if (token == NULL) { goto out; } if (!token_is_operator(token, '{')) { ...
{ "code": [], "line_no": [] }
static QObject *FUNC_0(JSONParserContext *ctxt, QList **tokens, va_list *ap) { QDict *dict = NULL; QObject *token, *peek; QList *working = qlist_copy(*tokens); token = qlist_pop(working); if (token == NULL) { goto out; } if (!token_is_operator(token, '{')) { got...
[ "static QObject *FUNC_0(JSONParserContext *ctxt, QList **tokens, va_list *ap)\n{", "QDict *dict = NULL;", "QObject *token, *peek;", "QList *working = qlist_copy(*tokens);", "token = qlist_pop(working);", "if (token == NULL) {", "goto out;", "}", "if (!token_is_operator(token, '{')) {", "goto out;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ...
15,645
static int64_t coroutine_fn qcow2_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { BDRVQcow2State *s = bs->opaque; uint64_t cluster_offset; int index_in_cluster, ret; int64_t status = 0; *pnum = nb_sectors; qemu_co_mutex_lock(&s->lock);...
false
qemu
67a0fd2a9bca204d2b39f910a97c7137636a0715
static int64_t coroutine_fn qcow2_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { BDRVQcow2State *s = bs->opaque; uint64_t cluster_offset; int index_in_cluster, ret; int64_t status = 0; *pnum = nb_sectors; qemu_co_mutex_lock(&s->lock);...
{ "code": [], "line_no": [] }
static int64_t VAR_0 qcow2_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum) { BDRVQcow2State *s = bs->opaque; uint64_t cluster_offset; int index_in_cluster, ret; int64_t status = 0; *pnum = nb_sectors; qemu_co_mutex_lock(&s->lock); r...
[ "static int64_t VAR_0 qcow2_co_get_block_status(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors, int *pnum)\n{", "BDRVQcow2State *s = bs->opaque;", "uint64_t cluster_offset;", "int index_in_cluster, ret;", "int64_t status = 0;", "*pnum = nb_sectors;", "qemu_co_mutex_lock(&s->lock);", "ret = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
15,646
int avpriv_exif_decode_ifd(void *logctx, GetByteContext *gbytes, int le, int depth, AVDictionary **metadata) { int i, ret; int entries; entries = ff_tget_short(gbytes, le); if (bytestream2_get_bytes_left(gbytes) < entries * 12) { return AVERROR_INVALIDDATA; ...
false
FFmpeg
ae100046ca32b0b83031a60d0c3cdfc5ceb9f874
int avpriv_exif_decode_ifd(void *logctx, GetByteContext *gbytes, int le, int depth, AVDictionary **metadata) { int i, ret; int entries; entries = ff_tget_short(gbytes, le); if (bytestream2_get_bytes_left(gbytes) < entries * 12) { return AVERROR_INVALIDDATA; ...
{ "code": [], "line_no": [] }
int FUNC_0(void *VAR_0, GetByteContext *VAR_1, int VAR_2, int VAR_3, AVDictionary **VAR_4) { int VAR_5, VAR_6; int VAR_7; VAR_7 = ff_tget_short(VAR_1, VAR_2); if (bytestream2_get_bytes_left(VAR_1) < VAR_7 * 12) { return AVERROR_INVALIDDATA; } for...
[ "int FUNC_0(void *VAR_0, GetByteContext *VAR_1, int VAR_2,\nint VAR_3, AVDictionary **VAR_4)\n{", "int VAR_5, VAR_6;", "int VAR_7;", "VAR_7 = ff_tget_short(VAR_1, VAR_2);", "if (bytestream2_get_bytes_left(VAR_1) < VAR_7 * 12) {", "return AVERROR_INVALIDDATA;", "}", "for (VAR_5 = 0; VAR_5 < VAR_7; VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39 ], [ 41 ] ]
15,647
static struct omap_rtc_s *omap_rtc_init(MemoryRegion *system_memory, target_phys_addr_t base, qemu_irq *irq, omap_clk clk) { struct omap_rtc_s *s = (struct omap_rtc_s *) g_malloc0(sizeof(struct omap_rtc_s)); s->irq = irq[0]; s->alarm = irq[1]; s->clk...
false
qemu
0919ac787641db11024912651f3bc5764d4f1286
static struct omap_rtc_s *omap_rtc_init(MemoryRegion *system_memory, target_phys_addr_t base, qemu_irq *irq, omap_clk clk) { struct omap_rtc_s *s = (struct omap_rtc_s *) g_malloc0(sizeof(struct omap_rtc_s)); s->irq = irq[0]; s->alarm = irq[1]; s->clk...
{ "code": [], "line_no": [] }
static struct omap_rtc_s *FUNC_0(MemoryRegion *VAR_0, target_phys_addr_t VAR_1, qemu_irq *VAR_2, omap_clk VAR_3) { struct omap_rtc_s *VAR_4 = (struct omap_rtc_s *) g_malloc0(sizeof(struct omap_rtc_s)); VAR_4->VAR_2 = VAR_2[0]; VAR_4->alarm = VAR_2[1]; ...
[ "static struct omap_rtc_s *FUNC_0(MemoryRegion *VAR_0,\ntarget_phys_addr_t VAR_1,\nqemu_irq *VAR_2, omap_clk VAR_3)\n{", "struct omap_rtc_s *VAR_4 = (struct omap_rtc_s *)\ng_malloc0(sizeof(struct omap_rtc_s));", "VAR_4->VAR_2 = VAR_2[0];", "VAR_4->alarm = VAR_2[1];", "VAR_4->VAR_3 = qemu_new_timer_ms(rt_clo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 37 ] ]
15,648
static inline void patch_reloc(tcg_insn_unit *code_ptr, int type, intptr_t value, intptr_t addend) { assert(addend == 0); switch (type) { case R_AARCH64_JUMP26: case R_AARCH64_CALL26: reloc_pc26(code_ptr, (tcg_insn_unit *)value); break; case R_...
false
qemu
eabb7b91b36b202b4dac2df2d59d698e3aff197a
static inline void patch_reloc(tcg_insn_unit *code_ptr, int type, intptr_t value, intptr_t addend) { assert(addend == 0); switch (type) { case R_AARCH64_JUMP26: case R_AARCH64_CALL26: reloc_pc26(code_ptr, (tcg_insn_unit *)value); break; case R_...
{ "code": [], "line_no": [] }
static inline void FUNC_0(tcg_insn_unit *VAR_0, int VAR_1, intptr_t VAR_2, intptr_t VAR_3) { assert(VAR_3 == 0); switch (VAR_1) { case R_AARCH64_JUMP26: case R_AARCH64_CALL26: reloc_pc26(VAR_0, (tcg_insn_unit *)VAR_2); break; case R_AARCH64_CON...
[ "static inline void FUNC_0(tcg_insn_unit *VAR_0, int VAR_1,\nintptr_t VAR_2, intptr_t VAR_3)\n{", "assert(VAR_3 == 0);", "switch (VAR_1) {", "case R_AARCH64_JUMP26:\ncase R_AARCH64_CALL26:\nreloc_pc26(VAR_0, (tcg_insn_unit *)VAR_2);", "break;", "case R_AARCH64_CONDBR19:\nreloc_pc19(VAR_0, (tcg_insn_unit *...
[ 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 ] ]
15,649
static void disas_simd_mod_imm(DisasContext *s, uint32_t insn) { int rd = extract32(insn, 0, 5); int cmode = extract32(insn, 12, 4); int cmode_3_1 = extract32(cmode, 1, 3); int cmode_0 = extract32(cmode, 0, 1); int o2 = extract32(insn, 11, 1); uint64_t abcdefgh = extract32(insn, 5, 5) | (...
false
qemu
90e496386fe7fd32c189561f846b7913f95b8cf4
static void disas_simd_mod_imm(DisasContext *s, uint32_t insn) { int rd = extract32(insn, 0, 5); int cmode = extract32(insn, 12, 4); int cmode_3_1 = extract32(cmode, 1, 3); int cmode_0 = extract32(cmode, 0, 1); int o2 = extract32(insn, 11, 1); uint64_t abcdefgh = extract32(insn, 5, 5) | (...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1) { int VAR_2 = extract32(VAR_1, 0, 5); int VAR_3 = extract32(VAR_1, 12, 4); int VAR_4 = extract32(VAR_3, 1, 3); int VAR_5 = extract32(VAR_3, 0, 1); int VAR_6 = extract32(VAR_1, 11, 1); uint64_t abcdefgh = extract32(VAR_1, 5, 5) | (ext...
[ "static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)\n{", "int VAR_2 = extract32(VAR_1, 0, 5);", "int VAR_3 = extract32(VAR_1, 12, 4);", "int VAR_4 = extract32(VAR_3, 1, 3);", "int VAR_5 = extract32(VAR_3, 0, 1);", "int VAR_6 = extract32(VAR_1, 11, 1);", "uint64_t abcdefgh = extract32(VAR_1, 5, 5) |...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ...
15,650
int tcp_ctl(struct socket *so) { Slirp *slirp = so->slirp; struct sbuf *sb = &so->so_snd; struct ex_list *ex_ptr; int do_pty; DEBUG_CALL("tcp_ctl"); DEBUG_ARG("so = %lx", (long )so); if (so->so_faddr.s_addr != slirp->vhost_addr.s_addr) { /* Check if it's pty_exec */ ...
false
qemu
b2bedb214469af55179d907a60cd67fed6b0779e
int tcp_ctl(struct socket *so) { Slirp *slirp = so->slirp; struct sbuf *sb = &so->so_snd; struct ex_list *ex_ptr; int do_pty; DEBUG_CALL("tcp_ctl"); DEBUG_ARG("so = %lx", (long )so); if (so->so_faddr.s_addr != slirp->vhost_addr.s_addr) { for (ex_ptr = slirp->ex...
{ "code": [], "line_no": [] }
int FUNC_0(struct socket *VAR_0) { Slirp *slirp = VAR_0->slirp; struct sbuf *VAR_1 = &VAR_0->so_snd; struct ex_list *VAR_2; int VAR_3; DEBUG_CALL("FUNC_0"); DEBUG_ARG("VAR_0 = %lx", (long )VAR_0); if (VAR_0->so_faddr.s_addr != slirp->vhost_addr.s_addr) { for (V...
[ "int FUNC_0(struct socket *VAR_0)\n{", "Slirp *slirp = VAR_0->slirp;", "struct sbuf *VAR_1 = &VAR_0->so_snd;", "struct ex_list *VAR_2;", "int VAR_3;", "DEBUG_CALL(\"FUNC_0\");", "DEBUG_ARG(\"VAR_0 = %lx\", (long )VAR_0);", "if (VAR_0->so_faddr.s_addr != slirp->vhost_addr.s_addr) {", "for (VAR_2 = sl...
[ 0, 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 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
15,651
void cpu_outl(CPUState *env, pio_addr_t addr, uint32_t val) { LOG_IOPORT("outl: %04"FMT_pioaddr" %08"PRIx32"\n", addr, val); ioport_write(2, addr, val); #ifdef CONFIG_KQEMU if (env) env->last_io_time = cpu_get_time_fast(); #endif }
false
qemu
4a1418e07bdcfaa3177739e04707ecaec75d89e1
void cpu_outl(CPUState *env, pio_addr_t addr, uint32_t val) { LOG_IOPORT("outl: %04"FMT_pioaddr" %08"PRIx32"\n", addr, val); ioport_write(2, addr, val); #ifdef CONFIG_KQEMU if (env) env->last_io_time = cpu_get_time_fast(); #endif }
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0, pio_addr_t VAR_1, uint32_t VAR_2) { LOG_IOPORT("outl: %04"FMT_pioaddr" %08"PRIx32"\n", VAR_1, VAR_2); ioport_write(2, VAR_1, VAR_2); #ifdef CONFIG_KQEMU if (VAR_0) VAR_0->last_io_time = cpu_get_time_fast(); #endif }
[ "void FUNC_0(CPUState *VAR_0, pio_addr_t VAR_1, uint32_t VAR_2)\n{", "LOG_IOPORT(\"outl: %04\"FMT_pioaddr\" %08\"PRIx32\"\\n\", VAR_1, VAR_2);", "ioport_write(2, VAR_1, VAR_2);", "#ifdef CONFIG_KQEMU\nif (VAR_0)\nVAR_0->last_io_time = cpu_get_time_fast();", "#endif\n}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11, 13 ], [ 15, 17 ] ]
15,652
static int v9fs_synth_lsetxattr(FsContext *ctx, V9fsPath *path, const char *name, void *value, size_t size, int flags) { errno = ENOTSUP; return -1; }
false
qemu
364031f17932814484657e5551ba12957d993d7e
static int v9fs_synth_lsetxattr(FsContext *ctx, V9fsPath *path, const char *name, void *value, size_t size, int flags) { errno = ENOTSUP; return -1; }
{ "code": [], "line_no": [] }
static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, const char *VAR_2, void *VAR_3, size_t VAR_4, int VAR_5) { errno = ENOTSUP; return -1; }
[ "static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,\nconst char *VAR_2, void *VAR_3,\nsize_t VAR_4, int VAR_5)\n{", "errno = ENOTSUP;", "return -1;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ] ]
15,656
static void register_types(void) { register_char_driver_qapi("null", CHARDEV_BACKEND_KIND_NULL, NULL); register_char_driver("socket", qemu_chr_open_socket); register_char_driver("udp", qemu_chr_open_udp); register_char_driver("memory", qemu_chr_open_ringbuf); register_char_driver_qapi("file", ...
false
qemu
e68c5958668596a5023e30ddf8368410878f7682
static void register_types(void) { register_char_driver_qapi("null", CHARDEV_BACKEND_KIND_NULL, NULL); register_char_driver("socket", qemu_chr_open_socket); register_char_driver("udp", qemu_chr_open_udp); register_char_driver("memory", qemu_chr_open_ringbuf); register_char_driver_qapi("file", ...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { register_char_driver_qapi("null", CHARDEV_BACKEND_KIND_NULL, NULL); register_char_driver("socket", qemu_chr_open_socket); register_char_driver("udp", qemu_chr_open_udp); register_char_driver("memory", qemu_chr_open_ringbuf); register_char_driver_qapi("file", CHARDEV_...
[ "static void FUNC_0(void)\n{", "register_char_driver_qapi(\"null\", CHARDEV_BACKEND_KIND_NULL, NULL);", "register_char_driver(\"socket\", qemu_chr_open_socket);", "register_char_driver(\"udp\", qemu_chr_open_udp);", "register_char_driver(\"memory\", qemu_chr_open_ringbuf);", "register_char_driver_qapi(\"f...
[ 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 ...
15,657
static void FUNCC(pred8x8_vertical_add)(uint8_t *pix, const int *block_offset, const int16_t *block, ptrdiff_t stride) { int i; for(i=0; i<4; i++) FUNCC(pred4x4_vertical_add)(pix + block_offset[i], block + i*16*sizeof(pixel), stride); }
false
FFmpeg
1acd7d594c15aa491729c837ad3519d3469e620a
static void FUNCC(pred8x8_vertical_add)(uint8_t *pix, const int *block_offset, const int16_t *block, ptrdiff_t stride) { int i; for(i=0; i<4; i++) FUNCC(pred4x4_vertical_add)(pix + block_offset[i], block + i*16*sizeof(pixel), stride); }
{ "code": [], "line_no": [] }
static void FUNC_0(pred8x8_vertical_add)(uint8_t *pix, const int *block_offset, const int16_t *block, ptrdiff_t stride) { int VAR_0; for(VAR_0=0; VAR_0<4; VAR_0++) FUNC_0(pred4x4_vertical_add)(pix + block_offset[VAR_0], block + VAR_0*16*sizeof(pixel), stride)...
[ "static void FUNC_0(pred8x8_vertical_add)(uint8_t *pix, const int *block_offset,\nconst int16_t *block, ptrdiff_t stride)\n{", "int VAR_0;", "for(VAR_0=0; VAR_0<4; VAR_0++)", "FUNC_0(pred4x4_vertical_add)(pix + block_offset[VAR_0], block + VAR_0*16*sizeof(pixel), stride);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
15,658
static inline void dv_decode_video_segment(DVVideoDecodeContext *s, UINT8 *buf_ptr1, const UINT16 *mb_pos_ptr) { int quant, dc, dct_mode, class1, j; int mb_index, mb_x, mb_y, v, last_index; DCTELEM *block, *block1;...
false
FFmpeg
68f593b48433842f3407586679fe07f3e5199ab9
static inline void dv_decode_video_segment(DVVideoDecodeContext *s, UINT8 *buf_ptr1, const UINT16 *mb_pos_ptr) { int quant, dc, dct_mode, class1, j; int mb_index, mb_x, mb_y, v, last_index; DCTELEM *block, *block1;...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DVVideoDecodeContext *VAR_0, UINT8 *VAR_1, const UINT16 *VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12; DCTELEM *VAR_18, *block1; int VAR_13...
[ "static inline void FUNC_0(DVVideoDecodeContext *VAR_0,\nUINT8 *VAR_1,\nconst UINT16 *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;", "DCTELEM *VAR_18, *block1;", "int VAR_13, VAR_14;", "UINT8 *y_ptr;", "BlockInfo mb_data[5 * 6], *mb, *mb1;", "void (*...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
15,659
void helper_syscall(CPUX86State *env, int next_eip_addend) { int selector; if (!(env->efer & MSR_EFER_SCE)) { raise_exception_err(env, EXCP06_ILLOP, 0); } selector = (env->star >> 32) & 0xffff; if (env->hflags & HF_LMA_MASK) { int code64; env->regs[R_ECX] = env->...
false
qemu
7848c8d19f8556666df25044bbd5d8b29439c368
void helper_syscall(CPUX86State *env, int next_eip_addend) { int selector; if (!(env->efer & MSR_EFER_SCE)) { raise_exception_err(env, EXCP06_ILLOP, 0); } selector = (env->star >> 32) & 0xffff; if (env->hflags & HF_LMA_MASK) { int code64; env->regs[R_ECX] = env->...
{ "code": [], "line_no": [] }
void FUNC_0(CPUX86State *VAR_0, int VAR_1) { int VAR_2; if (!(VAR_0->efer & MSR_EFER_SCE)) { raise_exception_err(VAR_0, EXCP06_ILLOP, 0); } VAR_2 = (VAR_0->star >> 32) & 0xffff; if (VAR_0->hflags & HF_LMA_MASK) { int VAR_3; VAR_0->regs[R_ECX] = VAR_0->eip + VAR_1...
[ "void FUNC_0(CPUX86State *VAR_0, int VAR_1)\n{", "int VAR_2;", "if (!(VAR_0->efer & MSR_EFER_SCE)) {", "raise_exception_err(VAR_0, EXCP06_ILLOP, 0);", "}", "VAR_2 = (VAR_0->star >> 32) & 0xffff;", "if (VAR_0->hflags & HF_LMA_MASK) {", "int VAR_3;", "VAR_0->regs[R_ECX] = VAR_0->eip + VAR_1;", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 43, 45, 47, 49 ], [ 51, 53, 55, 57...
15,662
static int net_socket_listen_init(NetClientState *peer, const char *model, const char *name, const char *host_str) { NetClientState *nc; NetSocketState *s; struct sockaddr_in saddr; int fd, ret;...
true
qemu
0522a959aec29768610900636f6234ab40530f82
static int net_socket_listen_init(NetClientState *peer, const char *model, const char *name, const char *host_str) { NetClientState *nc; NetSocketState *s; struct sockaddr_in saddr; int fd, ret;...
{ "code": [ " const char *host_str)", " Error *err = NULL;", " if (parse_host_port(&saddr, host_str, &err) < 0) {", " error_report_err(err);", " perror(\"socket\");", " perror(\"bind\");", " perror(\"listen\");", " E...
static int FUNC_0(NetClientState *VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3) { NetClientState *nc; NetSocketState *s; struct sockaddr_in VAR_4; int VAR_5, VAR_6; Error ...
[ "static int FUNC_0(NetClientState *VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3)\n{", "NetClientState *nc;", "NetSocketState *s;", "struct sockaddr_in VAR_4;", "int VAR_5, VAR_6;", "Error *err = NULL;", "if (parse_host_port(&VAR_4, VAR_3, &err) < 0) {", "error_report_err(err);", ...
[ 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 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, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 51 ], [...
15,663
static int check_oflag_copied(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix) { BDRVQcowState *s = bs->opaque; uint64_t *l2_table = qemu_blockalign(bs, s->cluster_size); int ret; int refcount; int i, j; for (i = 0; i < s->l1_size; i++) { ...
true
qemu
231bb267644ee3a9ebfd9c7f42d5d41610194b45
static int check_oflag_copied(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix) { BDRVQcowState *s = bs->opaque; uint64_t *l2_table = qemu_blockalign(bs, s->cluster_size); int ret; int refcount; int i, j; for (i = 0; i < s->l1_size; i++) { ...
{ "code": [ " ret = qcow2_pre_write_overlap_check(bs,", " QCOW2_OL_DEFAULT & ~QCOW2_OL_ACTIVE_L2, l2_offset,", " s->cluster_size);" ], "line_no": [ 171, 173, 175 ] }
static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1, BdrvCheckMode VAR_2) { BDRVQcowState *s = VAR_0->opaque; uint64_t *l2_table = qemu_blockalign(VAR_0, s->cluster_size); int VAR_3; int VAR_4; int VAR_5, VAR_6; for (VAR_5 = 0; VAR_5 < s->l1_...
[ "static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1,\nBdrvCheckMode VAR_2)\n{", "BDRVQcowState *s = VAR_0->opaque;", "uint64_t *l2_table = qemu_blockalign(VAR_0, s->cluster_size);", "int VAR_3;", "int VAR_4;", "int VAR_5, VAR_6;", "for (VAR_5 = 0; VAR_5 < s->l1_size; VAR_5++) {", "uint6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51,...
15,665
static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn, PCIConfigReadFunc *config_read, PCIConfigWriteFunc *config_write, ...
true
qemu
c364c974d9ab90e25e7887f516da65d2811ba5e3
static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn, PCIConfigReadFunc *config_read, PCIConfigWriteFunc *config_write, ...
{ "code": [ " return NULL;", " return NULL;" ], "line_no": [ 23, 23 ] }
static PCIDevice *FUNC_0(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn, PCIConfigReadFunc *config_read, PCIConfigWriteFunc *config_write, ...
[ "static PCIDevice *FUNC_0(PCIDevice *pci_dev, PCIBus *bus,\nconst char *name, int devfn,\nPCIConfigReadFunc *config_read,\nPCIConfigWriteFunc *config_write,\nuint8_t header_type)\n{", "if (devfn < 0) {", "for(devfn = bus->devfn_min ; devfn < 256; devfn += 8) {", "if (!bus->devices[devfn])\ngoto found;", "}"...
[ 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 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
15,666
static void put_int8(QEMUFile *f, void *pv, size_t size) { int8_t *v = pv; qemu_put_s8s(f, v); }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static void put_int8(QEMUFile *f, void *pv, size_t size) { int8_t *v = pv; qemu_put_s8s(f, v); }
{ "code": [], "line_no": [] }
static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2) { int8_t *v = VAR_1; qemu_put_s8s(VAR_0, v); }
[ "static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{", "int8_t *v = VAR_1;", "qemu_put_s8s(VAR_0, v);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
15,667
static void decode_q_branch(SnowContext *s, int level, int x, int y){ const int w= s->b_width << s->block_max_depth; const int rem_depth= s->block_max_depth - level; const int index= (x + y*w) << rem_depth; int trx= (x+1)<<rem_depth; const BlockNode *left = x ? &s->block[index-1] : &null_block...
true
FFmpeg
0af48e29f55a4e5824e6f7157ac94cf8b210aa84
static void decode_q_branch(SnowContext *s, int level, int x, int y){ const int w= s->b_width << s->block_max_depth; const int rem_depth= s->block_max_depth - level; const int index= (x + y*w) << rem_depth; int trx= (x+1)<<rem_depth; const BlockNode *left = x ? &s->block[index-1] : &null_block...
{ "code": [ "static void decode_q_branch(SnowContext *s, int level, int x, int y){", " decode_q_branch(s, level+1, 2*x+0, 2*y+0);", " decode_q_branch(s, level+1, 2*x+1, 2*y+0);", " decode_q_branch(s, level+1, 2*x+0, 2*y+1);", " decode_q_branch(s, level+1, 2*x+1, 2*y+1);...
static void FUNC_0(SnowContext *VAR_0, int VAR_1, int VAR_2, int VAR_3){ const int VAR_4= VAR_0->b_width << VAR_0->block_max_depth; const int VAR_5= VAR_0->block_max_depth - VAR_1; const int VAR_6= (VAR_2 + VAR_3*VAR_4) << VAR_5; int VAR_7= (VAR_2+1)<<VAR_5; const BlockNode *VAR_8 = VAR_2 ? &V...
[ "static void FUNC_0(SnowContext *VAR_0, int VAR_1, int VAR_2, int VAR_3){", "const int VAR_4= VAR_0->b_width << VAR_0->block_max_depth;", "const int VAR_5= VAR_0->block_max_depth - VAR_1;", "const int VAR_6= (VAR_2 + VAR_3*VAR_4) << VAR_5;", "int VAR_7= (VAR_2+1)<<VAR_5;", "const BlockNode *VAR_8 = VAR_2...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
15,668
static int encode_tile(Jpeg2000EncoderContext *s, Jpeg2000Tile *tile, int tileno) { int compno, reslevelno, bandno, ret; Jpeg2000T1Context t1; Jpeg2000CodingStyle *codsty = &s->codsty; for (compno = 0; compno < s->ncomponents; compno++){ Jpeg2000Component *comp = s->tile[tileno].comp + com...
true
FFmpeg
f57119b8e58cb5437c3ab40d797293ecb9b4a894
static int encode_tile(Jpeg2000EncoderContext *s, Jpeg2000Tile *tile, int tileno) { int compno, reslevelno, bandno, ret; Jpeg2000T1Context t1; Jpeg2000CodingStyle *codsty = &s->codsty; for (compno = 0; compno < s->ncomponents; compno++){ Jpeg2000Component *comp = s->tile[tileno].comp + com...
{ "code": [ " *ptr = (int64_t)*ptr * (int64_t)(16384 * 65536 / band->i_stepsize) >> 14 - NMSEDEC_FRACBITS;" ], "line_no": [ 107 ] }
static int FUNC_0(Jpeg2000EncoderContext *VAR_0, Jpeg2000Tile *VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6; Jpeg2000T1Context t1; Jpeg2000CodingStyle *codsty = &VAR_0->codsty; for (VAR_3 = 0; VAR_3 < VAR_0->ncomponents; VAR_3++){ Jpeg2000Component *comp = VAR_0->VAR_1[VAR_2].comp + ...
[ "static int FUNC_0(Jpeg2000EncoderContext *VAR_0, Jpeg2000Tile *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6;", "Jpeg2000T1Context t1;", "Jpeg2000CodingStyle *codsty = &VAR_0->codsty;", "for (VAR_3 = 0; VAR_3 < VAR_0->ncomponents; VAR_3++){", "Jpeg2000Component *comp = VAR_0->VAR_1[VAR_2].comp +...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 51,...
15,669
static struct omap_mpuio_s *omap_mpuio_init(MemoryRegion *memory, hwaddr base, qemu_irq kbd_int, qemu_irq gpio_int, qemu_irq wakeup, omap_clk clk) { struct omap_mpuio_s *s = (struct omap_mpuio_s *) g_malloc0(sizeof(struct omap_mpuio_s)); s->ir...
true
qemu
b45c03f585ea9bb1af76c73e82195418c294919d
static struct omap_mpuio_s *omap_mpuio_init(MemoryRegion *memory, hwaddr base, qemu_irq kbd_int, qemu_irq gpio_int, qemu_irq wakeup, omap_clk clk) { struct omap_mpuio_s *s = (struct omap_mpuio_s *) g_malloc0(sizeof(struct omap_mpuio_s)); s->ir...
{ "code": [ " struct omap_mpuio_s *s = (struct omap_mpuio_s *)", " g_malloc0(sizeof(struct omap_mpuio_s));" ], "line_no": [ 11, 13 ] }
static struct omap_mpuio_s *FUNC_0(MemoryRegion *VAR_0, hwaddr VAR_1, qemu_irq VAR_2, qemu_irq VAR_3, qemu_irq VAR_4, omap_clk VAR_5) { struct omap_mpuio_s *VAR_6 = (struct omap_mpuio_s *) g_malloc0(sizeof(struct omap_mpuio_s)); VAR_6->irq = V...
[ "static struct omap_mpuio_s *FUNC_0(MemoryRegion *VAR_0,\nhwaddr VAR_1,\nqemu_irq VAR_2, qemu_irq VAR_3, qemu_irq VAR_4,\nomap_clk VAR_5)\n{", "struct omap_mpuio_s *VAR_6 = (struct omap_mpuio_s *)\ng_malloc0(sizeof(struct omap_mpuio_s));", "VAR_6->irq = VAR_3;", "VAR_6->kbd_irq = VAR_2;", "VAR_6->VAR_4 = VA...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ] ]
15,670
static int decode_block(MJpegDecodeContext *s, int16_t *block, int component, int dc_index, int ac_index, int16_t *quant_matrix) { int code, i, j, level, val; /* DC coef */ val = mjpeg_decode_dc(s, dc_index); if (val == 0xfffff) { av_log(s->avctx, AV_LOG_ERROR, "...
true
FFmpeg
dffae122d0f448029c30afc672233f114a3fe09c
static int decode_block(MJpegDecodeContext *s, int16_t *block, int component, int dc_index, int ac_index, int16_t *quant_matrix) { int code, i, j, level, val; val = mjpeg_decode_dc(s, dc_index); if (val == 0xfffff) { av_log(s->avctx, AV_LOG_ERROR, "error dc\n");...
{ "code": [], "line_no": [] }
static int FUNC_0(MJpegDecodeContext *VAR_0, int16_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int16_t *VAR_5) { int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; VAR_10 = mjpeg_decode_dc(VAR_0, VAR_3); if (VAR_10 == 0xfffff) { av_log(VAR_0->avctx, AV_LOG_ERROR, "error dc\...
[ "static int FUNC_0(MJpegDecodeContext *VAR_0, int16_t *VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int16_t *VAR_5)\n{", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "VAR_10 = mjpeg_decode_dc(VAR_0, VAR_3);", "if (VAR_10 == 0xfffff) {", "av_log(VAR_0->avctx, AV_LOG_ERROR, \"error dc\\n\");", "return AVERROR_INV...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 26 ], [ 28 ], [ 32 ], [ 34 ], [ 36 ], [ 38 ], [ 40 ], [ 44 ], [ 46 ], [ 48 ], [ 50, 52...
15,671
static void iscsi_attach_aio_context(BlockDriverState *bs, AioContext *new_context) { IscsiLun *iscsilun = bs->opaque; iscsilun->aio_context = new_context; iscsi_set_events(iscsilun); #if defined(LIBISCSI_FEATURE_NOP_COUNTER) /* Set up a timer for sending ...
true
qemu
e49ab19fcaa617ad6cdfe1ac401327326b6a2552
static void iscsi_attach_aio_context(BlockDriverState *bs, AioContext *new_context) { IscsiLun *iscsilun = bs->opaque; iscsilun->aio_context = new_context; iscsi_set_events(iscsilun); #if defined(LIBISCSI_FEATURE_NOP_COUNTER) iscsilun->nop_timer = ai...
{ "code": [ "#endif", "#endif", "#endif", "#endif", "#endif", "#endif", "#endif", "#endif", "#if defined(LIBISCSI_FEATURE_NOP_COUNTER)", "#endif", "#if defined(LIBISCSI_FEATURE_NOP_COUNTER)", "#endif", "#endif", "#endif", "#endif" ], "line_no": [ 31,...
static void FUNC_0(BlockDriverState *VAR_0, AioContext *VAR_1) { IscsiLun *iscsilun = VAR_0->opaque; iscsilun->aio_context = VAR_1; iscsi_set_events(iscsilun); #if defined(LIBISCSI_FEATURE_NOP_COUNTER) iscsilun->nop_timer = aio_timer_new(iscsilun->ai...
[ "static void FUNC_0(BlockDriverState *VAR_0,\nAioContext *VAR_1)\n{", "IscsiLun *iscsilun = VAR_0->opaque;", "iscsilun->aio_context = VAR_1;", "iscsi_set_events(iscsilun);", "#if defined(LIBISCSI_FEATURE_NOP_COUNTER)\niscsilun->nop_timer = aio_timer_new(iscsilun->aio_context,\nQEMU_CLOCK_REALTIME, SCALE_MS,...
[ 0, 0, 0, 0, 1, 0, 1 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17, 21, 23, 25 ], [ 27, 29 ], [ 31, 33 ] ]
15,672
static int64_t alloc_block(BlockDriverState* bs, int64_t sector_num) { BDRVVPCState *s = bs->opaque; int64_t bat_offset; uint32_t index, bat_value; int ret; uint8_t bitmap[s->bitmap_size]; // Check if sector_num is valid if ((sector_num < 0) || (sector_num > bs->total_sectors)) ...
true
qemu
078a458e077d6b0db262c4b05fee51d01de2d1d2
static int64_t alloc_block(BlockDriverState* bs, int64_t sector_num) { BDRVVPCState *s = bs->opaque; int64_t bat_offset; uint32_t index, bat_value; int ret; uint8_t bitmap[s->bitmap_size]; if ((sector_num < 0) || (sector_num > bs->total_sectors)) return -1; i...
{ "code": [ " bdrv_pwrite(bs->file, s->free_data_block_offset, bitmap, s->bitmap_size);", " ret = bdrv_pwrite(bs->file, bat_offset, &bat_value, 4);" ], "line_no": [ 43, 65 ] }
static int64_t FUNC_0(BlockDriverState* bs, int64_t sector_num) { BDRVVPCState *s = bs->opaque; int64_t bat_offset; uint32_t index, bat_value; int VAR_0; uint8_t bitmap[s->bitmap_size]; if ((sector_num < 0) || (sector_num > bs->total_sectors)) return -1; inde...
[ "static int64_t FUNC_0(BlockDriverState* bs, int64_t sector_num)\n{", "BDRVVPCState *s = bs->opaque;", "int64_t bat_offset;", "uint32_t index, bat_value;", "int VAR_0;", "uint8_t bitmap[s->bitmap_size];", "if ((sector_num < 0) || (sector_num > bs->total_sectors))\nreturn -1;", "index = (sector_num * 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19, 21 ], [ 27 ], [ 29, 31 ], [ 35 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53, 55 ], [ 61 ], [ 63 ], [ 65 ], [...
15,673
static int decode_cblk(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *codsty, Jpeg2000T1Context *t1, Jpeg2000Cblk *cblk, int width, int height, int bandpos) { int passno = cblk->npasses, pass_t = 2, bpno = cblk->nonzerobits - 1, y, clnpass_cnt = 0; int bpass_c...
true
FFmpeg
3b8617429014301b26b587a5e537910746d3377a
static int decode_cblk(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *codsty, Jpeg2000T1Context *t1, Jpeg2000Cblk *cblk, int width, int height, int bandpos) { int passno = cblk->npasses, pass_t = 2, bpno = cblk->nonzerobits - 1, y, clnpass_cnt = 0; int bpass_c...
{ "code": [ " if (bpno < 0) {", " av_log(s->avctx, AV_LOG_ERROR, \"bpno invalid\\n\");", " return AVERROR(EINVAL);" ], "line_no": [ 47, 49, 51 ] }
static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000CodingStyle *VAR_1, Jpeg2000T1Context *VAR_2, Jpeg2000Cblk *VAR_3, int VAR_4, int VAR_5, int VAR_6) { int VAR_7 = VAR_3->npasses, VAR_8 = 2, VAR_9 = VAR_3->nonzerobits - 1, VAR_10, VAR_11 = 0; int VAR_12 ...
[ "static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000CodingStyle *VAR_1,\nJpeg2000T1Context *VAR_2, Jpeg2000Cblk *VAR_3,\nint VAR_4, int VAR_5, int VAR_6)\n{", "int VAR_7 = VAR_3->npasses, VAR_8 = 2, VAR_9 = VAR_3->nonzerobits - 1, VAR_10, VAR_11 = 0;", "int VAR_12 = JPEG2000_CBLK_BYPASS & VAR_1->cblk_styl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
15,674
static void gen_addq(DisasContext *s, TCGv_i64 val, int rlow, int rhigh) { TCGv_i64 tmp; TCGv tmpl; TCGv tmph; /* Load 64-bit value rd:rn. */ tmpl = load_reg(s, rlow); tmph = load_reg(s, rhigh); tmp = tcg_temp_new_i64(); tcg_gen_concat_i32_i64(tmp, tmpl, tmph); dead_tmp(...
true
qemu
7d1b0095bff7157e856d1d0e6c4295641ced2752
static void gen_addq(DisasContext *s, TCGv_i64 val, int rlow, int rhigh) { TCGv_i64 tmp; TCGv tmpl; TCGv tmph; tmpl = load_reg(s, rlow); tmph = load_reg(s, rhigh); tmp = tcg_temp_new_i64(); tcg_gen_concat_i32_i64(tmp, tmpl, tmph); dead_tmp(tmpl); dead_tmp(tmph); ...
{ "code": [ " dead_tmp(tmpl);", " dead_tmp(tmph);" ], "line_no": [ 23, 25 ] }
static void FUNC_0(DisasContext *VAR_0, TCGv_i64 VAR_1, int VAR_2, int VAR_3) { TCGv_i64 tmp; TCGv tmpl; TCGv tmph; tmpl = load_reg(VAR_0, VAR_2); tmph = load_reg(VAR_0, VAR_3); tmp = tcg_temp_new_i64(); tcg_gen_concat_i32_i64(tmp, tmpl, tmph); dead_tmp(tmpl); dead_...
[ "static void FUNC_0(DisasContext *VAR_0, TCGv_i64 VAR_1, int VAR_2, int VAR_3)\n{", "TCGv_i64 tmp;", "TCGv tmpl;", "TCGv tmph;", "tmpl = load_reg(VAR_0, VAR_2);", "tmph = load_reg(VAR_0, VAR_3);", "tmp = tcg_temp_new_i64();", "tcg_gen_concat_i32_i64(tmp, tmpl, tmph);", "dead_tmp(tmpl);", "dead_tmp...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
15,675
static int do_compress_ram_page(QEMUFile *f, RAMBlock *block, ram_addr_t offset) { RAMState *rs = &ram_state; int bytes_sent, blen; uint8_t *p = block->host + (offset & TARGET_PAGE_MASK); bytes_sent = save_page_header(rs, block, offset | ...
true
qemu
2bf3aa85f08186b8162b76e7e8efe5b5a44306a6
static int do_compress_ram_page(QEMUFile *f, RAMBlock *block, ram_addr_t offset) { RAMState *rs = &ram_state; int bytes_sent, blen; uint8_t *p = block->host + (offset & TARGET_PAGE_MASK); bytes_sent = save_page_header(rs, block, offset | ...
{ "code": [ " bytes_sent = save_page_header(rs, block, offset |" ], "line_no": [ 15 ] }
static int FUNC_0(QEMUFile *VAR_0, RAMBlock *VAR_1, ram_addr_t VAR_2) { RAMState *rs = &ram_state; int VAR_3, VAR_4; uint8_t *p = VAR_1->host + (VAR_2 & TARGET_PAGE_MASK); VAR_3 = save_page_header(rs, VAR_1, VAR_2 | RAM_SAVE_FLAG...
[ "static int FUNC_0(QEMUFile *VAR_0, RAMBlock *VAR_1,\nram_addr_t VAR_2)\n{", "RAMState *rs = &ram_state;", "int VAR_3, VAR_4;", "uint8_t *p = VAR_1->host + (VAR_2 & TARGET_PAGE_MASK);", "VAR_3 = save_page_header(rs, VAR_1, VAR_2 |\nRAM_SAVE_FLAG_COMPRESS_PAGE);", "VAR_4 = qemu_put_compression_data(VAR_0, ...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ] ]
15,676
void ff_avg_h264_qpel4_mc11_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hv_qrt_and_aver_dst_4x4_msa(src - 2, src - (stride * 2), stride, dst, stride); }
false
FFmpeg
1181d93231e9b807965724587d363c1cfd5a1d0d
void ff_avg_h264_qpel4_mc11_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_hv_qrt_and_aver_dst_4x4_msa(src - 2, src - (stride * 2), stride, dst, stride); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_hv_qrt_and_aver_dst_4x4_msa(VAR_1 - 2, VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_hv_qrt_and_aver_dst_4x4_msa(VAR_1 - 2,\nVAR_1 - (VAR_2 * 2),\nVAR_2, VAR_0, VAR_2);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9, 11 ], [ 13 ] ]
15,677
static int ra144_decode_frame(AVCodecContext * avctx, void *vdata, int *data_size, const uint8_t * buf, int buf_size) { static const uint8_t sizes[10] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2}; unsigned int a, b, c; int i; signed short *shptr; int16_t *data = vdata; unsig...
false
FFmpeg
59ffb6e2cc0974f3090a10facdedf8da5f6bf742
static int ra144_decode_frame(AVCodecContext * avctx, void *vdata, int *data_size, const uint8_t * buf, int buf_size) { static const uint8_t sizes[10] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2}; unsigned int a, b, c; int i; signed short *shptr; int16_t *data = vdata; unsig...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1, int *VAR_2, const uint8_t * VAR_3, int VAR_4) { static const uint8_t VAR_5[10] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2}; unsigned int VAR_6, VAR_7, VAR_8; int VAR_9; signed short *VAR_10; int16_t *data = VAR_1; unsig...
[ "static int FUNC_0(AVCodecContext * VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t * VAR_3, int VAR_4)\n{", "static const uint8_t VAR_5[10] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2};", "unsigned int VAR_6, VAR_7, VAR_8;", "int VAR_9;", "signed short *VAR_10;", "int16_t *data = VAR_1;", "unsigned int VAR_11;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 35 ], [ 39 ], [ 43 ], [ 47 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ], [...
15,678
static int h261_decode_picture_header(H261Context *h) { MpegEncContext *const s = &h->s; int format, i; uint32_t startcode = 0; for (i = get_bits_left(&s->gb); i > 24; i -= 1) { startcode = ((startcode << 1) | get_bits(&s->gb, 1)) & 0x000FFFFF; if (startcode == 0x10) ...
false
FFmpeg
719dbe86ea0e85b3b89f492c69e10bb0e733bcbb
static int h261_decode_picture_header(H261Context *h) { MpegEncContext *const s = &h->s; int format, i; uint32_t startcode = 0; for (i = get_bits_left(&s->gb); i > 24; i -= 1) { startcode = ((startcode << 1) | get_bits(&s->gb, 1)) & 0x000FFFFF; if (startcode == 0x10) ...
{ "code": [], "line_no": [] }
static int FUNC_0(H261Context *VAR_0) { MpegEncContext *const s = &VAR_0->s; int VAR_1, VAR_2; uint32_t startcode = 0; for (VAR_2 = get_bits_left(&s->gb); VAR_2 > 24; VAR_2 -= 1) { startcode = ((startcode << 1) | get_bits(&s->gb, 1)) & 0x000FFFFF; if (startcode == 0x10) ...
[ "static int FUNC_0(H261Context *VAR_0)\n{", "MpegEncContext *const s = &VAR_0->s;", "int VAR_1, VAR_2;", "uint32_t startcode = 0;", "for (VAR_2 = get_bits_left(&s->gb); VAR_2 > 24; VAR_2 -= 1) {", "startcode = ((startcode << 1) | get_bits(&s->gb, 1)) & 0x000FFFFF;", "if (startcode == 0x10)\nbreak;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 49 ], [ 55 ], [ 57 ], [ 59 ...
15,680
static void ppc_cpu_unrealizefn(DeviceState *dev, Error **errp) { PowerPCCPU *cpu = POWERPC_CPU(dev); CPUPPCState *env = &cpu->env; opc_handler_t **table; int i, j; cpu_exec_exit(CPU(dev)); for (i = 0; i < PPC_CPU_OPCODES_LEN; i++) { if (env->opcodes[i] == &invalid_handler) {...
true
qemu
323ad19bcc601d3ec9cb6f0f5b4d67b602fc519e
static void ppc_cpu_unrealizefn(DeviceState *dev, Error **errp) { PowerPCCPU *cpu = POWERPC_CPU(dev); CPUPPCState *env = &cpu->env; opc_handler_t **table; int i, j; cpu_exec_exit(CPU(dev)); for (i = 0; i < PPC_CPU_OPCODES_LEN; i++) { if (env->opcodes[i] == &invalid_handler) {...
{ "code": [ " opc_handler_t **table;", " int i, j;", " if (table[j] != &invalid_handler &&", " is_indirect_opcode(table[j])) {", " ~PPC_INDIRECT));" ], "line_no": [ 9, 11, 33, 35, 39 ] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { PowerPCCPU *cpu = POWERPC_CPU(VAR_0); CPUPPCState *env = &cpu->env; opc_handler_t **table; int VAR_2, VAR_3; cpu_exec_exit(CPU(VAR_0)); for (VAR_2 = 0; VAR_2 < PPC_CPU_OPCODES_LEN; VAR_2++) { if (env->opcodes[VAR_2] == &...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "PowerPCCPU *cpu = POWERPC_CPU(VAR_0);", "CPUPPCState *env = &cpu->env;", "opc_handler_t **table;", "int VAR_2, VAR_3;", "cpu_exec_exit(CPU(VAR_0));", "for (VAR_2 = 0; VAR_2 < PPC_CPU_OPCODES_LEN; VAR_2++) {", "if (env->opcodes[VAR_2] == &inv...
[ 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 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 ], [...
15,681
static void h261_decode_init_vlc(H261Context *h){ static int done = 0; if(!done){ done = 1; init_vlc(&h261_mba_vlc, H261_MBA_VLC_BITS, 35, h261_mba_bits, 1, 1, h261_mba_code, 1, 1); init_vlc(&h261_mtype_vlc, H261_MTYPE_VLC_BITS, 10, ...
true
FFmpeg
073c2593c9f0aa4445a6fc1b9b24e6e52a8cc2c1
static void h261_decode_init_vlc(H261Context *h){ static int done = 0; if(!done){ done = 1; init_vlc(&h261_mba_vlc, H261_MBA_VLC_BITS, 35, h261_mba_bits, 1, 1, h261_mba_code, 1, 1); init_vlc(&h261_mtype_vlc, H261_MTYPE_VLC_BITS, 10, ...
{ "code": [ " static int done = 0;", " done = 1;", " init_rl(&h261_rl_tcoeff);", " h261_mba_code, 1, 1);", " h261_mtype_code, 1, 1);", " &h261_mv_tab[0][0], 2, 1);", " &h261_cbp_tab[0][0], 2, 1);", " ...
static void FUNC_0(H261Context *VAR_0){ static int VAR_1 = 0; if(!VAR_1){ VAR_1 = 1; init_vlc(&h261_mba_vlc, H261_MBA_VLC_BITS, 35, h261_mba_bits, 1, 1, h261_mba_code, 1, 1); init_vlc(&h261_mtype_vlc, H261_MTYPE_VLC_BITS, 10, h...
[ "static void FUNC_0(H261Context *VAR_0){", "static int VAR_1 = 0;", "if(!VAR_1){", "VAR_1 = 1;", "init_vlc(&h261_mba_vlc, H261_MBA_VLC_BITS, 35,\nh261_mba_bits, 1, 1,\nh261_mba_code, 1, 1);", "init_vlc(&h261_mtype_vlc, H261_MTYPE_VLC_BITS, 10,\nh261_mtype_bits, 1, 1,\nh261_mtype_code, 1, 1);", "init_vlc...
[ 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 11, 13, 15 ], [ 17, 19, 21 ], [ 23, 25, 27 ], [ 29, 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
15,682
static void init_proc_750cl (CPUPPCState *env) { gen_spr_ne_601(env); gen_spr_7xx(env); /* XXX : not implemented */ spr_register(env, SPR_L2CR, "L2CR", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, NULL, 0x00000000); /* Time base */ g...
true
qemu
9633fcc6a02f23e3ef00aa5fe3fe9c41f57c3456
static void init_proc_750cl (CPUPPCState *env) { gen_spr_ne_601(env); gen_spr_7xx(env); spr_register(env, SPR_L2CR, "L2CR", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, NULL, 0x00000000); gen_tbl(env); spr_register...
{ "code": [ " &spr_read_generic, NULL,", " &spr_read_generic, NULL,", " &spr_read_generic, NULL,", " &spr_read_generic, NULL,", " &spr_read_generic, NULL,", " &spr_read_generic, NULL,", " ...
static void FUNC_0 (CPUPPCState *VAR_0) { gen_spr_ne_601(VAR_0); gen_spr_7xx(VAR_0); spr_register(VAR_0, SPR_L2CR, "L2CR", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, NULL, 0x00000000); gen_tbl(VAR_0); spr_registe...
[ "static void FUNC_0 (CPUPPCState *VAR_0)\n{", "gen_spr_ne_601(VAR_0);", "gen_spr_7xx(VAR_0);", "spr_register(VAR_0, SPR_L2CR, \"L2CR\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, NULL,\n0x00000000);", "gen_tbl(VAR_0);", "spr_register(VAR_0, SPR_THRM1, \"THRM1\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_re...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13, 15, 17 ], [ 21 ], [ 27, 29, 31, 33 ], [ 35, 37, 39, 41 ], [ 43, 45, 47, 49 ], [ 53, 55, 57, 59 ], [ 61, 63, 65, 67 ], [ 73...
15,683
static target_ulong h_set_mode(PowerPCCPU *cpu, sPAPREnvironment *spapr, target_ulong opcode, target_ulong *args) { CPUState *cs; target_ulong mflags = args[0]; target_ulong resource = args[1]; target_ulong value1 = args[2]; target_ulong value2 = args[3]; t...
true
qemu
a46622fd07edc6fd3c66f8ab79b4782a78b115f3
static target_ulong h_set_mode(PowerPCCPU *cpu, sPAPREnvironment *spapr, target_ulong opcode, target_ulong *args) { CPUState *cs; target_ulong mflags = args[0]; target_ulong resource = args[1]; target_ulong value1 = args[2]; target_ulong value2 = args[3]; t...
{ "code": [ " if (resource == H_SET_MODE_ENDIAN) {", " PowerPCCPU *cp = POWERPC_CPU(cs);", " CPUPPCState *env = &cp->env;", " env->spr[SPR_LPCR] &= ~LPCR_ILE;", " PowerPCCPU *cp = POWERPC_CPU(cs);", " CPUPPCState *en...
static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPREnvironment *spapr, target_ulong opcode, target_ulong *args) { CPUState *cs; target_ulong mflags = args[0]; target_ulong resource = args[1]; target_ulong value1 = args[2]; target_ulong value2 = args[3]; targe...
[ "static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPREnvironment *spapr,\ntarget_ulong opcode, target_ulong *args)\n{", "CPUState *cs;", "target_ulong mflags = args[0];", "target_ulong resource = args[1];", "target_ulong value1 = args[2];", "target_ulong value2 = args[3];", "target_ulong ret = H_P2;", "i...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ...
15,684
static int xan_wc3_decode_frame(XanContext *s) { int width = s->avctx->width; int height = s->avctx->height; int total_pixels = width * height; unsigned char opcode; unsigned char flag = 0; int size = 0; int motion_x, motion_y; int x, y; unsigned char *opcode_buffer = s-...
true
FFmpeg
3e0757c2a87c8cf3e452f67bca279001c64cedff
static int xan_wc3_decode_frame(XanContext *s) { int width = s->avctx->width; int height = s->avctx->height; int total_pixels = width * height; unsigned char opcode; unsigned char flag = 0; int size = 0; int motion_x, motion_y; int x, y; unsigned char *opcode_buffer = s-...
{ "code": [ " xan_unpack(s->buffer2, &imagedata_segment[1], s->buffer2_size);" ], "line_no": [ 95 ] }
static int FUNC_0(XanContext *VAR_0) { int VAR_1 = VAR_0->avctx->VAR_1; int VAR_2 = VAR_0->avctx->VAR_2; int VAR_3 = VAR_1 * VAR_2; unsigned char VAR_4; unsigned char VAR_5 = 0; int VAR_6 = 0; int VAR_7, VAR_8; int VAR_9, VAR_10; unsigned char *VAR_11 = VAR_0->buffer1; ...
[ "static int FUNC_0(XanContext *VAR_0) {", "int VAR_1 = VAR_0->avctx->VAR_1;", "int VAR_2 = VAR_0->avctx->VAR_2;", "int VAR_3 = VAR_1 * VAR_2;", "unsigned char VAR_4;", "unsigned char VAR_5 = 0;", "int VAR_6 = 0;", "int VAR_7, VAR_8;", "int VAR_9, VAR_10;", "unsigned char *VAR_11 = VAR_0->buffer1;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 53...
15,685
uintptr_t tcg_qemu_tb_exec(CPUArchState *env, uint8_t *tb_ptr) { long tcg_temps[CPU_TEMP_BUF_NLONGS]; uintptr_t sp_value = (uintptr_t)(tcg_temps + CPU_TEMP_BUF_NLONGS); uintptr_t next_tb = 0; tci_reg[TCG_AREG0] = (tcg_target_ulong)env; tci_reg[TCG_REG_CALL_STACK] = sp_value; assert(tb_p...
true
qemu
1976cccec8a9965ff3fd6f026783a04f6b4959fd
uintptr_t tcg_qemu_tb_exec(CPUArchState *env, uint8_t *tb_ptr) { long tcg_temps[CPU_TEMP_BUF_NLONGS]; uintptr_t sp_value = (uintptr_t)(tcg_temps + CPU_TEMP_BUF_NLONGS); uintptr_t next_tb = 0; tci_reg[TCG_AREG0] = (tcg_target_ulong)env; tci_reg[TCG_REG_CALL_STACK] = sp_value; assert(tb_p...
{ "code": [ " tci_write_reg32(t0, t1 << t2);", " tci_write_reg32(t0, t1 >> t2);", " tci_write_reg32(t0, ((int32_t)t1 >> t2));", " tci_write_reg32(t0, rol32(t1, t2));", " tci_write_reg32(t0, ror32(t1, t2));", " tci_write_reg64(t0...
uintptr_t FUNC_0(CPUArchState *env, uint8_t *tb_ptr) { long VAR_0[CPU_TEMP_BUF_NLONGS]; uintptr_t sp_value = (uintptr_t)(VAR_0 + CPU_TEMP_BUF_NLONGS); uintptr_t next_tb = 0; tci_reg[TCG_AREG0] = (tcg_target_ulong)env; tci_reg[TCG_REG_CALL_STACK] = sp_value; assert(tb_ptr); for (;...
[ "uintptr_t FUNC_0(CPUArchState *env, uint8_t *tb_ptr)\n{", "long VAR_0[CPU_TEMP_BUF_NLONGS];", "uintptr_t sp_value = (uintptr_t)(VAR_0 + CPU_TEMP_BUF_NLONGS);", "uintptr_t next_tb = 0;", "tci_reg[TCG_AREG0] = (tcg_target_ulong)env;", "tci_reg[TCG_REG_CALL_STACK] = sp_value;", "assert(tb_ptr);", "for (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [...
15,687
static int vp9_raw_reorder_make_output(AVBSFContext *bsf, AVPacket *out, VP9RawReorderFrame *last_frame) { VP9RawReorderContext *ctx = bsf->priv_data; VP9RawReorderFrame *next_output = last_frame, *next_display = l...
true
FFmpeg
b43b95f4789b6e60f9684918fd3c0a5f3f18aef6
static int vp9_raw_reorder_make_output(AVBSFContext *bsf, AVPacket *out, VP9RawReorderFrame *last_frame) { VP9RawReorderContext *ctx = bsf->priv_data; VP9RawReorderFrame *next_output = last_frame, *next_display = l...
{ "code": [ " frame->packet = av_packet_alloc();", " if (!frame->packet)", " return AVERROR(ENOMEM);" ], "line_no": [ 147, 149, 151 ] }
static int FUNC_0(AVBSFContext *VAR_0, AVPacket *VAR_1, VP9RawReorderFrame *VAR_2) { VP9RawReorderContext *ctx = VAR_0->priv_data; VP9RawReorderFrame *next_output = VAR_2, *next_display = VAR_2, *frame; int VA...
[ "static int FUNC_0(AVBSFContext *VAR_0,\nAVPacket *VAR_1,\nVP9RawReorderFrame *VAR_2)\n{", "VP9RawReorderContext *ctx = VAR_0->priv_data;", "VP9RawReorderFrame *next_output = VAR_2,\n*next_display = VAR_2, *frame;", "int VAR_3, VAR_4;", "for (VAR_3 = 0; VAR_3 < FRAME_SLOTS; VAR_3++) {", "frame = ctx->slot...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27, 29, 31 ], [ 33, 35, 37 ], [ 39 ], [ 43, 45 ], [ 49, 51, 53 ], [ 55, 57 ], [ 61,...
15,688
static void decode_band_structure(GetBitContext *gbc, int blk, int eac3, int ecpl, int start_subband, int end_subband, const uint8_t *default_band_struct, int *num_bands, uint8_t *band_sizes) { int subbnd, bnd...
true
FFmpeg
9351a156de724edb69ba6e1f05884fe806a13a21
static void decode_band_structure(GetBitContext *gbc, int blk, int eac3, int ecpl, int start_subband, int end_subband, const uint8_t *default_band_struct, int *num_bands, uint8_t *band_sizes) { int subbnd, bnd...
{ "code": [ " int *num_bands, uint8_t *band_sizes)", " uint8_t coded_band_struct[22];", " const uint8_t *band_struct;", " coded_band_struct[subbnd] = get_bits1(gbc);", " band_struct = coded_band_struct;", " } else if (!blk) {", " ...
static void FUNC_0(GetBitContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, const uint8_t *VAR_6, int *VAR_7, uint8_t *VAR_8) { int VAR_9, VAR_10, VAR_11, VAR_12=0; uint8_t bnd_sz[22];...
[ "static void FUNC_0(GetBitContext *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5,\nconst uint8_t *VAR_6,\nint *VAR_7, uint8_t *VAR_8)\n{", "int VAR_9, VAR_10, VAR_11, VAR_12=0;", "uint8_t bnd_sz[22];", "uint8_t coded_band_struct[22];", "const uint8_t *VAR_13;", "VAR_11 = VAR_5 - VAR_4;", ...
[ 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 57 ], [ 59 ], [...
15,689
static ExitStatus trans_fop_weww_0e(DisasContext *ctx, uint32_t insn, const DisasInsn *di) { unsigned rt = assemble_rt64(insn); unsigned rb = assemble_rb64(insn); unsigned ra = assemble_ra64(insn); return do_fop_weww(ctx, rt, ra, rb, di->f_weww); }
true
qemu
eff235eb2bcd7092901f4698a7907e742f3b7f2f
static ExitStatus trans_fop_weww_0e(DisasContext *ctx, uint32_t insn, const DisasInsn *di) { unsigned rt = assemble_rt64(insn); unsigned rb = assemble_rb64(insn); unsigned ra = assemble_ra64(insn); return do_fop_weww(ctx, rt, ra, rb, di->f_weww); }
{ "code": [ " return do_fop_weww(ctx, rt, ra, rb, di->f_weww);", " return do_fop_weww(ctx, rt, ra, rb, di->f_weww);" ], "line_no": [ 13, 13 ] }
static ExitStatus FUNC_0(DisasContext *ctx, uint32_t insn, const DisasInsn *di) { unsigned VAR_0 = assemble_rt64(insn); unsigned VAR_1 = assemble_rb64(insn); unsigned VAR_2 = assemble_ra64(insn); return do_fop_weww(ctx, VAR_0, VAR_2, VAR_1, di->f_weww); }
[ "static ExitStatus FUNC_0(DisasContext *ctx, uint32_t insn,\nconst DisasInsn *di)\n{", "unsigned VAR_0 = assemble_rt64(insn);", "unsigned VAR_1 = assemble_rb64(insn);", "unsigned VAR_2 = assemble_ra64(insn);", "return do_fop_weww(ctx, VAR_0, VAR_2, VAR_1, di->f_weww);", "}" ]
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]