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 |
|---|---|---|---|---|---|---|---|---|---|---|
242 | static int adpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr)
{
int n, i, ch, st, pkt_size, ret;
const int16_t *samples;
int16_t **samples_p;
uint8_t *dst;
ADPCMEncodeContext *c = avctx->priv_data;
uint8_t *... | true | FFmpeg | 3d79d0c93e5b37a35b1b22d6c18699c233aad1ba | static int adpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr)
{
int n, i, ch, st, pkt_size, ret;
const int16_t *samples;
int16_t **samples_p;
uint8_t *dst;
ADPCMEncodeContext *c = avctx->priv_data;
uint8_t *... | {
"code": [
" adpcm_compress_trellis(avctx, &samples_p[ch][1], buf, status,"
],
"line_no": [
167
]
} | static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,
const AVFrame *VAR_2, int *VAR_3)
{
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
const int16_t *VAR_10;
int16_t **samples_p;
uint8_t *dst;
ADPCMEncodeContext *c = VAR_0->priv_data;
uint8_t *buf;
... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"const int16_t *VAR_10;",
"int16_t **samples_p;",
"uint8_t *dst;",
"ADPCMEncodeContext *c = VAR_0->priv_data;",
"uint8_t *buf;",
"VAR_10 = (const int16_t ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[... |
243 | yuv2rgb_full_2_c_template(SwsContext *c, const int16_t *buf[2],
const int16_t *ubuf[2], const int16_t *vbuf[2],
const int16_t *abuf[2], uint8_t *dest, int dstW,
int yalpha, int uvalpha, int y,
enum AVPixelFormat target, int hasAlpha... | true | FFmpeg | 8ef453ff830b40f635b94099d1debad3d809847f | yuv2rgb_full_2_c_template(SwsContext *c, const int16_t *buf[2],
const int16_t *ubuf[2], const int16_t *vbuf[2],
const int16_t *abuf[2], uint8_t *dest, int dstW,
int yalpha, int uvalpha, int y,
enum AVPixelFormat target, int hasAlpha... | {
"code": [
" int A;",
" int A;"
],
"line_no": [
51,
51
]
} | FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1[2],
const int16_t *VAR_2[2], const int16_t *VAR_3[2],
const int16_t *VAR_4[2], uint8_t *VAR_5, int VAR_6,
int VAR_7, int VAR_8, int VAR_9,
enum AVPixelFormat VAR_10, int VAR_11)
{
... | [
"FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1[2],\nconst int16_t *VAR_2[2], const int16_t *VAR_3[2],\nconst int16_t *VAR_4[2], uint8_t *VAR_5, int VAR_6,\nint VAR_7, int VAR_8, int VAR_9,\nenum AVPixelFormat VAR_10, int VAR_11)\n{",
"const int16_t *VAR_12 = VAR_1[0], *buf1 = VAR_1[1],\n*ubuf0 = VAR_2[0], *ub... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13,
15,
17,
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35,
37,
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
... |
247 | static void clone_slice(H264Context *dst, H264Context *src)
{
memcpy(dst->block_offset, src->block_offset, sizeof(dst->block_offset));
dst->s.current_picture_ptr = src->s.current_picture_ptr;
dst->s.current_picture = src->s.current_picture;
dst->s.linesize = src->s.linesize;
dst... | true | FFmpeg | f1d8763a02b5fce9a7d9789e049d74a45b15e1e8 | static void clone_slice(H264Context *dst, H264Context *src)
{
memcpy(dst->block_offset, src->block_offset, sizeof(dst->block_offset));
dst->s.current_picture_ptr = src->s.current_picture_ptr;
dst->s.current_picture = src->s.current_picture;
dst->s.linesize = src->s.linesize;
dst... | {
"code": [
"static void clone_slice(H264Context *dst, H264Context *src)"
],
"line_no": [
1
]
} | static void FUNC_0(H264Context *VAR_0, H264Context *VAR_1)
{
memcpy(VAR_0->block_offset, VAR_1->block_offset, sizeof(VAR_0->block_offset));
VAR_0->s.current_picture_ptr = VAR_1->s.current_picture_ptr;
VAR_0->s.current_picture = VAR_1->s.current_picture;
VAR_0->s.linesize = VAR_1->s.l... | [
"static void FUNC_0(H264Context *VAR_0, H264Context *VAR_1)\n{",
"memcpy(VAR_0->block_offset, VAR_1->block_offset, sizeof(VAR_0->block_offset));",
"VAR_0->s.current_picture_ptr = VAR_1->s.current_picture_ptr;",
"VAR_0->s.current_picture = VAR_1->s.current_picture;",
"VAR_0->s.linesize = VAR_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
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
]
] |
249 | static inline void gen_op_arith_subf(DisasContext *ctx, TCGv ret, TCGv arg1,
TCGv arg2, int add_ca, int compute_ca,
int compute_ov)
{
TCGv t0, t1;
if ((!compute_ca && !compute_ov) ||
(!TCGV_EQUAL(ret, arg1) && !TCGV_EQUAL(... | true | qemu | ffe30937c89dd67a53bf3f35b962701cd9d8f70e | static inline void gen_op_arith_subf(DisasContext *ctx, TCGv ret, TCGv arg1,
TCGv arg2, int add_ca, int compute_ca,
int compute_ov)
{
TCGv t0, t1;
if ((!compute_ca && !compute_ov) ||
(!TCGV_EQUAL(ret, arg1) && !TCGV_EQUAL(... | {
"code": [
" if (compute_ov) {",
" tcg_gen_movi_tl(cpu_ov, 0);",
" if (compute_ov) {",
" tcg_gen_movi_tl(cpu_ov, 0);"
],
"line_no": [
49,
53,
49,
53
]
} | static inline void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2,
TCGv VAR_3, int VAR_4, int VAR_5,
int VAR_6)
{
TCGv t0, t1;
if ((!VAR_5 && !VAR_6) ||
(!TCGV_EQUAL(VAR_1, VAR_2) && !TCGV_EQUAL(VAR_1, VAR_3))) {
... | [
"static inline void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2,\nTCGv VAR_3, int VAR_4, int VAR_5,\nint VAR_6)\n{",
"TCGv t0, t1;",
"if ((!VAR_5 && !VAR_6) ||\n(!TCGV_EQUAL(VAR_1, VAR_2) && !TCGV_EQUAL(VAR_1, VAR_3))) {",
"t0 = VAR_1;",
"} else {",
"t0 = tcg_temp_local_new();",
"}",
"if (VAR_... | [
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,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
],
[
49
],
[
53
],
[... |
250 | static void mxf_packet_timestamps(MXFContext *mxf, AVPacket *pkt)
{
int64_t last_ofs = -1, next_ofs;
MXFIndexTable *t = &mxf->index_tables[0];
/* this is called from the OP1a demuxing logic, which means there
* may be no index tables */
if (mxf->nb_index_tables <= 0)
return;
... | true | FFmpeg | 9123950be0dbbfceacb38c0a9b09fdb01ae5b111 | static void mxf_packet_timestamps(MXFContext *mxf, AVPacket *pkt)
{
int64_t last_ofs = -1, next_ofs;
MXFIndexTable *t = &mxf->index_tables[0];
if (mxf->nb_index_tables <= 0)
return;
for (;;) {
if (mxf_edit_unit_absolute_offset(mxf, t, mxf->current_edit_unit + 1, ... | {
"code": [
" for (;;) {",
" if (mxf->current_edit_unit >= t->nb_ptses)"
],
"line_no": [
23,
61
]
} | static void FUNC_0(MXFContext *VAR_0, AVPacket *VAR_1)
{
int64_t last_ofs = -1, next_ofs;
MXFIndexTable *t = &VAR_0->index_tables[0];
if (VAR_0->nb_index_tables <= 0)
return;
for (;;) {
if (mxf_edit_unit_absolute_offset(VAR_0, t, VAR_0->current_edit_unit + 1, NUL... | [
"static void FUNC_0(MXFContext *VAR_0, AVPacket *VAR_1)\n{",
"int64_t last_ofs = -1, next_ofs;",
"MXFIndexTable *t = &VAR_0->index_tables[0];",
"if (VAR_0->nb_index_tables <= 0)\nreturn;",
"for (;;) {",
"if (mxf_edit_unit_absolute_offset(VAR_0, t, VAR_0->current_edit_unit + 1, NULL, &next_ofs, 0) < 0)\nbr... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
15,
17
],
[
23
],
[
25,
27
],
[
31
],
[
37,
39
],
[
41
],
[
43
],
[
47,
49
],
[
53
],
[
55
],
[
57
],
[
61,
63
],
[
67
],
[
69
],
... |
251 | static void ff_h264_idct_add16intra_mmx(uint8_t *dst, const int *block_offset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]){
int i;
for(i=0; i<16; i++){
if(nnzc[ scan8[i] ] || block[i*16])
ff_h264_idct_add_mmx(dst + block_offset[i], block + i*16, stride);
}
}
| false | FFmpeg | 1d16a1cf99488f16492b1bb48e023f4da8377e07 | static void ff_h264_idct_add16intra_mmx(uint8_t *dst, const int *block_offset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]){
int i;
for(i=0; i<16; i++){
if(nnzc[ scan8[i] ] || block[i*16])
ff_h264_idct_add_mmx(dst + block_offset[i], block + i*16, stride);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0, const int *VAR_1, DCTELEM *VAR_2, int VAR_3, const uint8_t VAR_4[6*8]){
int VAR_5;
for(VAR_5=0; VAR_5<16; VAR_5++){
if(VAR_4[ scan8[VAR_5] ] || VAR_2[VAR_5*16])
ff_h264_idct_add_mmx(VAR_0 + VAR_1[VAR_5], VAR_2 + VAR_5*16, VAR_3);
}
}
| [
"static void FUNC_0(uint8_t *VAR_0, const int *VAR_1, DCTELEM *VAR_2, int VAR_3, const uint8_t VAR_4[6*8]){",
"int VAR_5;",
"for(VAR_5=0; VAR_5<16; VAR_5++){",
"if(VAR_4[ scan8[VAR_5] ] || VAR_2[VAR_5*16])\nff_h264_idct_add_mmx(VAR_0 + VAR_1[VAR_5], VAR_2 + VAR_5*16, VAR_3);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7,
9
],
[
11
],
[
13
]
] |
252 | static void process_subpacket_9 (QDM2Context *q, QDM2SubPNode *node)
{
GetBitContext gb;
int i, j, k, n, ch, run, level, diff;
init_get_bits(&gb, node->packet->data, node->packet->size*8);
n = coeff_per_sb_for_avg[q->coeff_per_sb_select][QDM2_SB_USED(q->sub_sampling) - 1] + 1; // same as averag... | false | FFmpeg | cece491daa9f4c7c908e016f4e285a49d37cb17c | static void process_subpacket_9 (QDM2Context *q, QDM2SubPNode *node)
{
GetBitContext gb;
int i, j, k, n, ch, run, level, diff;
init_get_bits(&gb, node->packet->data, node->packet->size*8);
n = coeff_per_sb_for_avg[q->coeff_per_sb_select][QDM2_SB_USED(q->sub_sampling) - 1] + 1;
for (i = ... | {
"code": [],
"line_no": []
} | static void FUNC_0 (QDM2Context *VAR_0, QDM2SubPNode *VAR_1)
{
GetBitContext gb;
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
init_get_bits(&gb, VAR_1->packet->data, VAR_1->packet->size*8);
VAR_5 = coeff_per_sb_for_avg[VAR_0->coeff_per_sb_select][QDM2_SB_USED(VAR_0->sub_sampling)... | [
"static void FUNC_0 (QDM2Context *VAR_0, QDM2SubPNode *VAR_1)\n{",
"GetBitContext gb;",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"init_get_bits(&gb, VAR_1->packet->data, VAR_1->packet->size*8);",
"VAR_5 = coeff_per_sb_for_avg[VAR_0->coeff_per_sb_select][QDM2_SB_USED(VAR_0->sub_sampling... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55... |
254 | static inline void h264_loop_filter_chroma_c(uint8_t *pix, int xstride, int ystride, int alpha, int beta, int8_t *tc0)
{
int i, d;
for( i = 0; i < 4; i++ ) {
const int tc = tc0[i];
if( tc <= 0 ) {
pix += 2*ystride;
continue;
}
for( d = 0; d < 2; d... | false | FFmpeg | 3f50965b28d0c4ef10dde0bf2f7a9f78fa36b378 | static inline void h264_loop_filter_chroma_c(uint8_t *pix, int xstride, int ystride, int alpha, int beta, int8_t *tc0)
{
int i, d;
for( i = 0; i < 4; i++ ) {
const int tc = tc0[i];
if( tc <= 0 ) {
pix += 2*ystride;
continue;
}
for( d = 0; d < 2; d... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int8_t *VAR_5)
{
int VAR_6, VAR_7;
for( VAR_6 = 0; VAR_6 < 4; VAR_6++ ) {
const int VAR_8 = VAR_5[VAR_6];
if( VAR_8 <= 0 ) {
VAR_0 += 2*VAR_2;
continue;
}
for( V... | [
"static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int8_t *VAR_5)\n{",
"int VAR_6, VAR_7;",
"for( VAR_6 = 0; VAR_6 < 4; VAR_6++ ) {",
"const int VAR_8 = VAR_5[VAR_6];",
"if( VAR_8 <= 0 ) {",
"VAR_0 += 2*VAR_2;",
"continue;",
"}",
"for( VAR_7 = 0; VAR_7 < 2; VAR_7+... | [
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
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
... |
256 | static int lag_decode_zero_run_line(LagarithContext *l, uint8_t *dst,
const uint8_t *src, const uint8_t *src_end,
int width, int esc_count)
{
int i = 0;
int count;
uint8_t zero_run = 0;
const uint8_t *src_start = src;
uint8_t ma... | true | FFmpeg | 100a54da5264436202daeedd68ed5e4a8be41459 | static int lag_decode_zero_run_line(LagarithContext *l, uint8_t *dst,
const uint8_t *src, const uint8_t *src_end,
int width, int esc_count)
{
int i = 0;
int count;
uint8_t zero_run = 0;
const uint8_t *src_start = src;
uint8_t ma... | {
"code": [],
"line_no": []
} | static int FUNC_0(LagarithContext *VAR_0, uint8_t *VAR_1,
const uint8_t *VAR_2, const uint8_t *VAR_3,
int VAR_4, int VAR_5)
{
int VAR_6 = 0;
int VAR_7;
uint8_t zero_run = 0;
const uint8_t *VAR_8 = VAR_2;
uint8_t mask1 = -(VAR_5 ... | [
"static int FUNC_0(LagarithContext *VAR_0, uint8_t *VAR_1,\nconst uint8_t *VAR_2, const uint8_t *VAR_3,\nint VAR_4, int VAR_5)\n{",
"int VAR_6 = 0;",
"int VAR_7;",
"uint8_t zero_run = 0;",
"const uint8_t *VAR_8 = VAR_2;",
"uint8_t mask1 = -(VAR_5 < 2);",
"uint8_t mask2 = -(VAR_5 < 3);",
"uint8_t *end ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
... |
258 | static int ffmmal_read_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame)
{
MMALDecodeContext *ctx = avctx->priv_data;
MMAL_BUFFER_HEADER_T *buffer = NULL;
MMAL_STATUS_T status = 0;
int ret = 0;
if (ctx->eos_received)
goto done;
while (1) {
// To ensure dec... | true | FFmpeg | 39f01e346cab464ef6c0d4ec58cc13b7123e60d8 | static int ffmmal_read_frame(AVCodecContext *avctx, AVFrame *frame, int *got_frame)
{
MMALDecodeContext *ctx = avctx->priv_data;
MMAL_BUFFER_HEADER_T *buffer = NULL;
MMAL_STATUS_T status = 0;
int ret = 0;
if (ctx->eos_received)
goto done;
while (1) {
... | {
"code": [
" if (ctx->frames_output || ctx->packets_sent > MAX_DELAYED_FRAMES ||"
],
"line_no": [
45
]
} | static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, int *VAR_2)
{
MMALDecodeContext *ctx = VAR_0->priv_data;
MMAL_BUFFER_HEADER_T *buffer = NULL;
MMAL_STATUS_T status = 0;
int VAR_3 = 0;
if (ctx->eos_received)
goto done;
while (1) {
... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, int *VAR_2)\n{",
"MMALDecodeContext *ctx = VAR_0->priv_data;",
"MMAL_BUFFER_HEADER_T *buffer = NULL;",
"MMAL_STATUS_T status = 0;",
"int VAR_3 = 0;",
"if (ctx->eos_received)\ngoto done;",
"while (1) {",
"if (ctx->frames_output || ctx->packets_s... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
21
],
[
45,
47
],
[
57
],
[
59
],
[
61
],
[
63
],
[
65
],
[
67
],
[
69
],
[
71
],
[
73,
75
],
[
77
],
[... |
259 | static int send_dma_request(int cmd, uint64_t sector, int nb_sectors,
PrdtEntry *prdt, int prdt_entries,
void(*post_exec)(QPCIDevice *dev, void *ide_base,
uint64_t sector, int nb_sectors))
{
QPCIDevice *dev;
... | true | qemu | b4ba67d9a702507793c2724e56f98e9b0f7be02b | static int send_dma_request(int cmd, uint64_t sector, int nb_sectors,
PrdtEntry *prdt, int prdt_entries,
void(*post_exec)(QPCIDevice *dev, void *ide_base,
uint64_t sector, int nb_sectors))
{
QPCIDevice *dev;
... | {
"code": [
" void(*post_exec)(QPCIDevice *dev, void *ide_base,",
" void *bmdma_base;",
" void *ide_base;",
" dev = get_pci_device(&bmdma_base, &ide_base);",
" qpci_io_writeb(dev, ide_base + reg_device, 0 | LBA);",
" qpci_io_writeb(dev, bmdma_base + bm... | static int FUNC_0(int VAR_0, uint64_t VAR_8, int VAR_8,
PrdtEntry *VAR_3, int VAR_4,
void(*VAR_5)(QPCIDevice *VAR_6, void *VAR_9,
uint64_t VAR_8, int VAR_8))
{
QPCIDevice *VAR_6;
void *VAR_8;
void *VA... | [
"static int FUNC_0(int VAR_0, uint64_t VAR_8, int VAR_8,\nPrdtEntry *VAR_3, int VAR_4,\nvoid(*VAR_5)(QPCIDevice *VAR_6, void *VAR_9,\nuint64_t VAR_8, int VAR_8))\n{",
"QPCIDevice *VAR_6;",
"void *VAR_8;",
"void *VAR_9;",
"uintptr_t guest_prdt;",
"size_t len;",
"bool from_dev;",
"uint8_t status;",
"i... | [
1,
0,
1,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
1,
0,
1,
0,
1,
1,
1,
1,
0,
1,
0,
1,
0,
1,
0,
1,
0,
0,
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41,
43,
49
],
[
51
],
[
53,
55
],
[
57
... |
260 | static int mxf_read_close(AVFormatContext *s)
{
MXFContext *mxf = s->priv_data;
MXFIndexTableSegment *seg;
int i;
av_freep(&mxf->packages_refs);
for (i = 0; i < s->nb_streams; i++)
s->streams[i]->priv_data = NULL;
for (i = 0; i < mxf->metadata_sets_count; i++) {
sw... | true | FFmpeg | 873049e6d854a69292934eb882731dd2ad7438b9 | static int mxf_read_close(AVFormatContext *s)
{
MXFContext *mxf = s->priv_data;
MXFIndexTableSegment *seg;
int i;
av_freep(&mxf->packages_refs);
for (i = 0; i < s->nb_streams; i++)
s->streams[i]->priv_data = NULL;
for (i = 0; i < mxf->metadata_sets_count; i++) {
sw... | {
"code": [
" for (i = 0; i < mxf->nb_index_tables; i++) {",
" av_freep(&mxf->index_tables[i].segments);",
" av_freep(&mxf->index_tables[i].ptses);",
" av_freep(&mxf->index_tables[i].fake_index);"
],
"line_no": [
79,
81,
83,
85
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
MXFContext *mxf = VAR_0->priv_data;
MXFIndexTableSegment *seg;
int VAR_1;
av_freep(&mxf->packages_refs);
for (VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++)
VAR_0->streams[VAR_1]->priv_data = NULL;
for (VAR_1 = 0; VAR_1 < mxf->met... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"MXFContext *mxf = VAR_0->priv_data;",
"MXFIndexTableSegment *seg;",
"int VAR_1;",
"av_freep(&mxf->packages_refs);",
"for (VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++)",
"VAR_0->streams[VAR_1]->priv_data = NULL;",
"for (VAR_1 = 0; VAR_1 < mxf->metadata... | [
0,
0,
0,
0,
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,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41,
43
],
[
45
],
[
47,
49
],
[
51
],
[... |
261 | static int adts_aac_read_packet(AVFormatContext *s, AVPacket *pkt)
{
int ret, fsize;
ret = av_get_packet(s->pb, pkt, ADTS_HEADER_SIZE);
if (ret < 0)
return ret;
if (ret < ADTS_HEADER_SIZE) {
av_packet_unref(pkt);
return AVERROR(EIO);
}
if ((AV_RB16(pkt->data... | true | FFmpeg | 2779d33ed99898675e0b3884fabe1ce6839f36d1 | static int adts_aac_read_packet(AVFormatContext *s, AVPacket *pkt)
{
int ret, fsize;
ret = av_get_packet(s->pb, pkt, ADTS_HEADER_SIZE);
if (ret < 0)
return ret;
if (ret < ADTS_HEADER_SIZE) {
av_packet_unref(pkt);
return AVERROR(EIO);
}
if ((AV_RB16(pkt->data... | {
"code": [
" return av_append_packet(s->pb, pkt, fsize - ADTS_HEADER_SIZE);"
],
"line_no": [
47
]
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
int VAR_2, VAR_3;
VAR_2 = av_get_packet(VAR_0->pb, VAR_1, ADTS_HEADER_SIZE);
if (VAR_2 < 0)
return VAR_2;
if (VAR_2 < ADTS_HEADER_SIZE) {
av_packet_unref(VAR_1);
return AVERROR(EIO);
}
if ((AV_RB16... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"int VAR_2, VAR_3;",
"VAR_2 = av_get_packet(VAR_0->pb, VAR_1, ADTS_HEADER_SIZE);",
"if (VAR_2 < 0)\nreturn VAR_2;",
"if (VAR_2 < ADTS_HEADER_SIZE) {",
"av_packet_unref(VAR_1);",
"return AVERROR(EIO);",
"}",
"if ((AV_RB16(VAR_1->data) >... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
]
] |
263 | static int bgr24ToYv12Wrapper(SwsContext *c, const uint8_t *src[],
int srcStride[], int srcSliceY, int srcSliceH,
uint8_t *dst[], int dstStride[])
{
rgb24toyv12(
src[0],
dst[0] + srcSliceY * dstStride[0],
dst[1] + (src... | true | FFmpeg | a37fd7f9578d2dfbe20a109aae91e5f0a4b58874 | static int bgr24ToYv12Wrapper(SwsContext *c, const uint8_t *src[],
int srcStride[], int srcSliceY, int srcSliceH,
uint8_t *dst[], int dstStride[])
{
rgb24toyv12(
src[0],
dst[0] + srcSliceY * dstStride[0],
dst[1] + (src... | {
"code": [
" rgb24toyv12(",
" dstStride[0], dstStride[1], srcStride[0]);"
],
"line_no": [
9,
21
]
} | static int FUNC_0(SwsContext *VAR_0, const uint8_t *VAR_1[],
int VAR_2[], int VAR_3, int VAR_4,
uint8_t *VAR_5[], int VAR_6[])
{
rgb24toyv12(
VAR_1[0],
VAR_5[0] + VAR_3 * VAR_6[0],
VAR_5[1] + (VAR_3 >> 1) * VAR_6[1],
... | [
"static int FUNC_0(SwsContext *VAR_0, const uint8_t *VAR_1[],\nint VAR_2[], int VAR_3, int VAR_4,\nuint8_t *VAR_5[], int VAR_6[])\n{",
"rgb24toyv12(\nVAR_1[0],\nVAR_5[0] + VAR_3 * VAR_6[0],\nVAR_5[1] + (VAR_3 >> 1) * VAR_6[1],\nVAR_5[2] + (VAR_3 >> 1) * VAR_6[2],\nVAR_0->srcW, VAR_4,\nVAR_6[0], VAR_6[1], V... | [
0,
1,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11,
13,
15,
17,
19,
21
],
[
23,
25
],
[
27
],
[
29
]
] |
264 | void rgb15tobgr32(const uint8_t *src, uint8_t *dst, unsigned int src_size)
{
const uint16_t *end;
uint8_t *d = (uint8_t *)dst;
const uint16_t *s = (const uint16_t *)src;
end = s + src_size/2;
while(s < end)
{
register uint16_t bgr;
bgr = *s++;
*d++ = (bgr&0x7C00)>>7;
*d++ = (bgr&0x3E0)>>2;
*... | true | FFmpeg | 7f526efd17973ec6d2204f7a47b6923e2be31363 | void rgb15tobgr32(const uint8_t *src, uint8_t *dst, unsigned int src_size)
{
const uint16_t *end;
uint8_t *d = (uint8_t *)dst;
const uint16_t *s = (const uint16_t *)src;
end = s + src_size/2;
while(s < end)
{
register uint16_t bgr;
bgr = *s++;
*d++ = (bgr&0x7C00)>>7;
*d++ = (bgr&0x3E0)>>2;
*... | {
"code": [
"void rgb15tobgr32(const uint8_t *src, uint8_t *dst, unsigned int src_size)"
],
"line_no": [
1
]
} | void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned int VAR_2)
{
const uint16_t *VAR_3;
uint8_t *d = (uint8_t *)VAR_1;
const uint16_t *VAR_4 = (const uint16_t *)VAR_0;
VAR_3 = VAR_4 + VAR_2/2;
while(VAR_4 < VAR_3)
{
register uint16_t VAR_5;
VAR_5 = *VAR_4++;
*d++ = (VAR_5&0x7C00)>>7;
*d+... | [
"void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned int VAR_2)\n{",
"const uint16_t *VAR_3;",
"uint8_t *d = (uint8_t *)VAR_1;",
"const uint16_t *VAR_4 = (const uint16_t *)VAR_0;",
"VAR_3 = VAR_4 + VAR_2/2;",
"while(VAR_4 < VAR_3)\n{",
"register uint16_t VAR_5;",
"VAR_5 = *VAR_4++;",
"*d++ = ... | [
1,
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
]
] |
266 | static int vp5_parse_header(VP56Context *s, const uint8_t *buf, int buf_size)
{
VP56RangeCoder *c = &s->c;
int rows, cols;
ff_vp56_init_range_decoder(&s->c, buf, buf_size);
s->frames[VP56_FRAME_CURRENT]->key_frame = !vp56_rac_get(c);
vp56_rac_get(c);
ff_vp56_init_dequant(s, vp56_rac_get... | true | FFmpeg | 55d7371fe0c44c025eb0e75215e0685870f31874 | static int vp5_parse_header(VP56Context *s, const uint8_t *buf, int buf_size)
{
VP56RangeCoder *c = &s->c;
int rows, cols;
ff_vp56_init_range_decoder(&s->c, buf, buf_size);
s->frames[VP56_FRAME_CURRENT]->key_frame = !vp56_rac_get(c);
vp56_rac_get(c);
ff_vp56_init_dequant(s, vp56_rac_get... | {
"code": [
" ff_vp56_init_range_decoder(&s->c, buf, buf_size);",
" return 0;"
],
"line_no": [
11,
79
]
} | static int FUNC_0(VP56Context *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
VP56RangeCoder *c = &VAR_0->c;
int VAR_3, VAR_4;
ff_vp56_init_range_decoder(&VAR_0->c, VAR_1, VAR_2);
VAR_0->frames[VP56_FRAME_CURRENT]->key_frame = !vp56_rac_get(c);
vp56_rac_get(c);
ff_vp56_init_dequant(VAR_0, vp... | [
"static int FUNC_0(VP56Context *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"VP56RangeCoder *c = &VAR_0->c;",
"int VAR_3, VAR_4;",
"ff_vp56_init_range_decoder(&VAR_0->c, VAR_1, VAR_2);",
"VAR_0->frames[VP56_FRAME_CURRENT]->key_frame = !vp56_rac_get(c);",
"vp56_rac_get(c);",
"ff_vp56_init_dequant(VAR_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,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45... |
267 | static inline int coeff_unpack_golomb(GetBitContext *gb, int qfactor, int qoffset)
{
int coeff = dirac_get_se_golomb(gb);
const int sign = FFSIGN(coeff);
if (coeff)
coeff = sign*((sign * coeff * qfactor + qoffset) >> 2);
return coeff;
}
| true | FFmpeg | 92da23093c784b1d9f0db4db51d28ea80a59e759 | static inline int coeff_unpack_golomb(GetBitContext *gb, int qfactor, int qoffset)
{
int coeff = dirac_get_se_golomb(gb);
const int sign = FFSIGN(coeff);
if (coeff)
coeff = sign*((sign * coeff * qfactor + qoffset) >> 2);
return coeff;
}
| {
"code": [
" const int sign = FFSIGN(coeff);"
],
"line_no": [
7
]
} | static inline int FUNC_0(GetBitContext *VAR_0, int VAR_1, int VAR_2)
{
int VAR_3 = dirac_get_se_golomb(VAR_0);
const int VAR_4 = FFSIGN(VAR_3);
if (VAR_3)
VAR_3 = VAR_4*((VAR_4 * VAR_3 * VAR_1 + VAR_2) >> 2);
return VAR_3;
}
| [
"static inline int FUNC_0(GetBitContext *VAR_0, int VAR_1, int VAR_2)\n{",
"int VAR_3 = dirac_get_se_golomb(VAR_0);",
"const int VAR_4 = FFSIGN(VAR_3);",
"if (VAR_3)\nVAR_3 = VAR_4*((VAR_4 * VAR_3 * VAR_1 + VAR_2) >> 2);",
"return VAR_3;",
"}"
] | [
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13
],
[
15
]
] |
269 | int ff_h264_frame_start(H264Context *h)
{
Picture *pic;
int i, ret;
const int pixel_shift = h->pixel_shift;
int c[4] = {
1<<(h->sps.bit_depth_luma-1),
1<<(h->sps.bit_depth_chroma-1),
1<<(h->sps.bit_depth_chroma-1),
-1
};
if (!ff_thread_can_start_frame... | true | FFmpeg | 259603b9176701410d6edeedbcbde565c767f27b | int ff_h264_frame_start(H264Context *h)
{
Picture *pic;
int i, ret;
const int pixel_shift = h->pixel_shift;
int c[4] = {
1<<(h->sps.bit_depth_luma-1),
1<<(h->sps.bit_depth_chroma-1),
1<<(h->sps.bit_depth_chroma-1),
-1
};
if (!ff_thread_can_start_frame... | {
"code": [
" if(!h->sync && !h->avctx->hwaccel)"
],
"line_no": [
85
]
} | int FUNC_0(H264Context *VAR_0)
{
Picture *pic;
int VAR_1, VAR_2;
const int VAR_3 = VAR_0->VAR_3;
int VAR_4[4] = {
1<<(VAR_0->sps.bit_depth_luma-1),
1<<(VAR_0->sps.bit_depth_chroma-1),
1<<(VAR_0->sps.bit_depth_chroma-1),
-1
};
if (!ff_thread_can_start_... | [
"int FUNC_0(H264Context *VAR_0)\n{",
"Picture *pic;",
"int VAR_1, VAR_2;",
"const int VAR_3 = VAR_0->VAR_3;",
"int VAR_4[4] = {",
"1<<(VAR_0->sps.bit_depth_luma-1),\n1<<(VAR_0->sps.bit_depth_chroma-1),\n1<<(VAR_0->sps.bit_depth_chroma-1),\n-1\n};",
"if (!ff_thread_can_start_frame(VAR_0->avctx)) {",
"a... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15,
17,
19,
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
270 | static void gen_rfe(DisasContext *s, TCGv_i32 pc, TCGv_i32 cpsr)
{
gen_set_cpsr(cpsr, CPSR_ERET_MASK);
tcg_temp_free_i32(cpsr);
store_reg(s, 15, pc);
s->is_jmp = DISAS_UPDATE;
}
| true | qemu | 577bf808958d06497928c639efaa473bf8c5e099 | static void gen_rfe(DisasContext *s, TCGv_i32 pc, TCGv_i32 cpsr)
{
gen_set_cpsr(cpsr, CPSR_ERET_MASK);
tcg_temp_free_i32(cpsr);
store_reg(s, 15, pc);
s->is_jmp = DISAS_UPDATE;
}
| {
"code": [
" s->is_jmp = DISAS_UPDATE;",
" s->is_jmp = DISAS_UPDATE;",
" s->is_jmp = DISAS_UPDATE;",
" s->is_jmp = DISAS_UPDATE;",
" s->is_jmp = DISAS_UPDATE;"
],
"line_no": [
11,
11,
11,
11,
11
]
} | static void FUNC_0(DisasContext *VAR_0, TCGv_i32 VAR_1, TCGv_i32 VAR_2)
{
gen_set_cpsr(VAR_2, CPSR_ERET_MASK);
tcg_temp_free_i32(VAR_2);
store_reg(VAR_0, 15, VAR_1);
VAR_0->is_jmp = DISAS_UPDATE;
}
| [
"static void FUNC_0(DisasContext *VAR_0, TCGv_i32 VAR_1, TCGv_i32 VAR_2)\n{",
"gen_set_cpsr(VAR_2, CPSR_ERET_MASK);",
"tcg_temp_free_i32(VAR_2);",
"store_reg(VAR_0, 15, VAR_1);",
"VAR_0->is_jmp = DISAS_UPDATE;",
"}"
] | [
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
271 | static void gen_mfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
{
const char *rn = "invalid";
if (sel != 0)
check_insn(ctx, ISA_MIPS32);
switch (reg) {
case 0:
switch (sel) {
case 0:
gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Index));
... | true | qemu | c5a49c63fa26e8825ad101dfe86339ae4c216539 | static void gen_mfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
{
const char *rn = "invalid";
if (sel != 0)
check_insn(ctx, ISA_MIPS32);
switch (reg) {
case 0:
switch (sel) {
case 0:
gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Index));
... | {
"code": [
" if (ctx->tb->cflags & CF_USE_ICOUNT) {",
" if (ctx->tb->cflags & CF_USE_ICOUNT) {",
" if (ctx->tb->cflags & CF_USE_ICOUNT) {",
" if (ctx->tb->cflags & CF_USE_ICOUNT) {"
],
"line_no": [
593,
593,
593,
593
]
} | static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, int VAR_2, int VAR_3)
{
const char *VAR_4 = "invalid";
if (VAR_3 != 0)
check_insn(VAR_0, ISA_MIPS32);
switch (VAR_2) {
case 0:
switch (VAR_3) {
case 0:
gen_mfc0_load32(VAR_1, offsetof(CPUMIPSState, CP0_I... | [
"static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, int VAR_2, int VAR_3)\n{",
"const char *VAR_4 = \"invalid\";",
"if (VAR_3 != 0)\ncheck_insn(VAR_0, ISA_MIPS32);",
"switch (VAR_2) {",
"case 0:\nswitch (VAR_3) {",
"case 0:\ngen_mfc0_load32(VAR_1, offsetof(CPUMIPSState, CP0_Index));",
"VAR_4 = \"Index\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17,
19
],
[
21,
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49,
51... |
273 | static int gdb_handle_packet(GDBState *s, CPUState *env, const char *line_buf)
{
const char *p;
int ch, reg_size, type;
char buf[4096];
uint8_t mem_buf[4096];
uint32_t *registers;
target_ulong addr, len;
#ifdef DEBUG_GDB
printf("command='%s'\n", line_buf);
#endif
p = line_bu... | true | qemu | 7d03f82f81e0e6c106ca0d2445a0fc49dc9ddc7b | static int gdb_handle_packet(GDBState *s, CPUState *env, const char *line_buf)
{
const char *p;
int ch, reg_size, type;
char buf[4096];
uint8_t mem_buf[4096];
uint32_t *registers;
target_ulong addr, len;
#ifdef DEBUG_GDB
printf("command='%s'\n", line_buf);
#endif
p = line_bu... | {
"code": [],
"line_no": []
} | static int FUNC_0(GDBState *VAR_0, CPUState *VAR_1, const char *VAR_2)
{
const char *VAR_3;
int VAR_4, VAR_5, VAR_6;
char VAR_7[4096];
uint8_t mem_buf[4096];
uint32_t *registers;
target_ulong addr, len;
#ifdef DEBUG_GDB
printf("command='%VAR_0'\n", VAR_2);
#endif
VAR_3 = VAR... | [
"static int FUNC_0(GDBState *VAR_0, CPUState *VAR_1, const char *VAR_2)\n{",
"const char *VAR_3;",
"int VAR_4, VAR_5, VAR_6;",
"char VAR_7[4096];",
"uint8_t mem_buf[4096];",
"uint32_t *registers;",
"target_ulong addr, len;",
"#ifdef DEBUG_GDB\nprintf(\"command='%VAR_0'\\n\", VAR_2);",
"#endif\nVAR_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
],
[
13
],
[
15
],
[
19,
21
],
[
23,
25
],
[
27
],
[
29
],
[
31,
35
],
[
37
],
[
50,
52
],
[
54
],
[
56,
58
],
[
60,
62
... |
275 | static void decode_ac_filter(WmallDecodeCtx *s)
{
int i;
s->acfilter_order = get_bits(&s->gb, 4) + 1;
s->acfilter_scaling = get_bits(&s->gb, 4);
for(i = 0; i < s->acfilter_order; i++) {
s->acfilter_coeffs[i] = get_bits(&s->gb, s->acfilter_scaling) + 1;
}
}
| true | FFmpeg | dae7ff04160901a30a35af05f2f149b289c4f0b1 | static void decode_ac_filter(WmallDecodeCtx *s)
{
int i;
s->acfilter_order = get_bits(&s->gb, 4) + 1;
s->acfilter_scaling = get_bits(&s->gb, 4);
for(i = 0; i < s->acfilter_order; i++) {
s->acfilter_coeffs[i] = get_bits(&s->gb, s->acfilter_scaling) + 1;
}
}
| {
"code": [
"\ts->acfilter_coeffs[i] = get_bits(&s->gb, s->acfilter_scaling) + 1;"
],
"line_no": [
15
]
} | static void FUNC_0(WmallDecodeCtx *VAR_0)
{
int VAR_1;
VAR_0->acfilter_order = get_bits(&VAR_0->gb, 4) + 1;
VAR_0->acfilter_scaling = get_bits(&VAR_0->gb, 4);
for(VAR_1 = 0; VAR_1 < VAR_0->acfilter_order; VAR_1++) {
VAR_0->acfilter_coeffs[VAR_1] = get_bits(&VAR_0->gb, VAR_0->acfilter_scaling) +... | [
"static void FUNC_0(WmallDecodeCtx *VAR_0)\n{",
"int VAR_1;",
"VAR_0->acfilter_order = get_bits(&VAR_0->gb, 4) + 1;",
"VAR_0->acfilter_scaling = get_bits(&VAR_0->gb, 4);",
"for(VAR_1 = 0; VAR_1 < VAR_0->acfilter_order; VAR_1++) {",
"VAR_0->acfilter_coeffs[VAR_1] = get_bits(&VAR_0->gb, VAR_0->acfilter_scal... | [
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
276 | static void check_loopfilter(void)
{
LOCAL_ALIGNED_32(uint8_t, base0, [32 + 16 * 16 * 2]);
LOCAL_ALIGNED_32(uint8_t, base1, [32 + 16 * 16 * 2]);
VP9DSPContext dsp;
int dir, wd, wd2, bit_depth;
static const char *const dir_name[2] = { "h", "v" };
static const int E[2] = { 20, 28 }, I[2] = ... | true | FFmpeg | 54a0a52be100d36291084f92b7d6aee1a4960acb | static void check_loopfilter(void)
{
LOCAL_ALIGNED_32(uint8_t, base0, [32 + 16 * 16 * 2]);
LOCAL_ALIGNED_32(uint8_t, base1, [32 + 16 * 16 * 2]);
VP9DSPContext dsp;
int dir, wd, wd2, bit_depth;
static const char *const dir_name[2] = { "h", "v" };
static const int E[2] = { 20, 28 }, I[2] = ... | {
"code": [
" declare_func(void, uint8_t *dst, ptrdiff_t stride, int E, int I, int H);"
],
"line_no": [
19
]
} | static void FUNC_0(void)
{
LOCAL_ALIGNED_32(uint8_t, base0, [32 + 16 * 16 * 2]);
LOCAL_ALIGNED_32(uint8_t, base1, [32 + 16 * 16 * 2]);
VP9DSPContext dsp;
int VAR_0, VAR_1, VAR_2, VAR_3;
static const char *const VAR_4[2] = { "h", "v" };
static const int VAR_5[2] = { 20, 28 }, VAR_6[2] = { ... | [
"static void FUNC_0(void)\n{",
"LOCAL_ALIGNED_32(uint8_t, base0, [32 + 16 * 16 * 2]);",
"LOCAL_ALIGNED_32(uint8_t, base1, [32 + 16 * 16 * 2]);",
"VP9DSPContext dsp;",
"int VAR_0, VAR_1, VAR_2, VAR_3;",
"static const char *const VAR_4[2] = { \"h\", \"v\" };",
"static const int VAR_5[2] = { 20, 28 }, VAR_... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45,
47,
49
],
[
51
... |
277 | av_cold void ff_dsputil_init_x86(DSPContext *c, AVCodecContext *avctx)
{
int cpu_flags = av_get_cpu_flags();
#if HAVE_7REGS && HAVE_INLINE_ASM
if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_CMOV)
c->add_hfyu_median_prediction = ff_add_hfyu_median_prediction_cmov;
#endif
if (X86_MMX(cpu_flags)) {... | true | FFmpeg | 1bf8fa75ee148f40938d47bb9aaf53ac3c1ae126 | av_cold void ff_dsputil_init_x86(DSPContext *c, AVCodecContext *avctx)
{
int cpu_flags = av_get_cpu_flags();
#if HAVE_7REGS && HAVE_INLINE_ASM
if (HAVE_MMX && cpu_flags & AV_CPU_FLAG_CMOV)
c->add_hfyu_median_prediction = ff_add_hfyu_median_prediction_cmov;
#endif
if (X86_MMX(cpu_flags)) {... | {
"code": [
" if (cpu_flags & AV_CPU_FLAG_SSE2) {",
" } else if (cpu_flags & AV_CPU_FLAG_MMXEXT) {"
],
"line_no": [
41,
51
]
} | av_cold void FUNC_0(DSPContext *c, AVCodecContext *avctx)
{
int VAR_0 = av_get_cpu_flags();
#if HAVE_7REGS && HAVE_INLINE_ASM
if (HAVE_MMX && VAR_0 & AV_CPU_FLAG_CMOV)
c->add_hfyu_median_prediction = ff_add_hfyu_median_prediction_cmov;
#endif
if (X86_MMX(VAR_0)) {
#if HAVE_INLINE_ASM
... | [
"av_cold void FUNC_0(DSPContext *c, AVCodecContext *avctx)\n{",
"int VAR_0 = av_get_cpu_flags();",
"#if HAVE_7REGS && HAVE_INLINE_ASM\nif (HAVE_MMX && VAR_0 & AV_CPU_FLAG_CMOV)\nc->add_hfyu_median_prediction = ff_add_hfyu_median_prediction_cmov;",
"#endif\nif (X86_MMX(VAR_0)) {",
"#if HAVE_INLINE_ASM\nconst... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11,
13
],
[
15,
19
],
[
21,
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51... |
278 | static void search_for_quantizers_anmr(AVCodecContext *avctx, AACEncContext *s,
SingleChannelElement *sce,
const float lambda)
{
int q, w, w2, g, start = 0;
int i, j;
int idx;
TrellisPath paths[TRELLIS_STAGES][TRELLIS_S... | true | FFmpeg | 7a4652dd5da0502ff21c183b5ca7d76b1cfd6c51 | static void search_for_quantizers_anmr(AVCodecContext *avctx, AACEncContext *s,
SingleChannelElement *sce,
const float lambda)
{
int q, w, w2, g, start = 0;
int i, j;
int idx;
TrellisPath paths[TRELLIS_STAGES][TRELLIS_S... | {
"code": [
" minq = paths[idx][minq].prev;"
],
"line_no": [
281
]
} | static void FUNC_0(AVCodecContext *VAR_0, AACEncContext *VAR_1,
SingleChannelElement *VAR_2,
const float VAR_3)
{
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0;
int VAR_9, VAR_10;
int VAR_11;
TrellisPath paths[TRELLIS_STAGE... | [
"static void FUNC_0(AVCodecContext *VAR_0, AACEncContext *VAR_1,\nSingleChannelElement *VAR_2,\nconst float VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8 = 0;",
"int VAR_9, VAR_10;",
"int VAR_11;",
"TrellisPath paths[TRELLIS_STAGES][TRELLIS_STATES];",
"int VAR_12[TRELLIS_STAGES];",
"int VAR_13;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
279 | QDict *qdict_get_qdict(const QDict *qdict, const char *key)
{
return qobject_to_qdict(qdict_get_obj(qdict, key, QTYPE_QDICT));
}
| true | qemu | 89cad9f3ec6b30d7550fb5704475fc9c3393a066 | QDict *qdict_get_qdict(const QDict *qdict, const char *key)
{
return qobject_to_qdict(qdict_get_obj(qdict, key, QTYPE_QDICT));
}
| {
"code": [
" return qobject_to_qdict(qdict_get_obj(qdict, key, QTYPE_QDICT));"
],
"line_no": [
5
]
} | QDict *FUNC_0(const QDict *qdict, const char *key)
{
return qobject_to_qdict(qdict_get_obj(qdict, key, QTYPE_QDICT));
}
| [
"QDict *FUNC_0(const QDict *qdict, const char *key)\n{",
"return qobject_to_qdict(qdict_get_obj(qdict, key, QTYPE_QDICT));",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
281 | static int guess_ni_flag(AVFormatContext *s){
int i;
int64_t last_start=0;
int64_t first_end= INT64_MAX;
int64_t oldpos= avio_tell(s->pb);
int *idx;
int64_t min_pos, pos;
for(i=0; i<s->nb_streams; i++){
AVStream *st = s->streams[i];
int n= st->nb_index_entries;
... | true | FFmpeg | 108957c661f9e2dc35dea8d55e5e5b1776f4a303 | static int guess_ni_flag(AVFormatContext *s){
int i;
int64_t last_start=0;
int64_t first_end= INT64_MAX;
int64_t oldpos= avio_tell(s->pb);
int *idx;
int64_t min_pos, pos;
for(i=0; i<s->nb_streams; i++){
AVStream *st = s->streams[i];
int n= st->nb_index_entries;
... | {
"code": [
" for (min_pos=pos=0; min_pos!=INT64_MAX; pos= min_pos+1) {"
],
"line_no": [
67
]
} | static int FUNC_0(AVFormatContext *VAR_0){
int VAR_1;
int64_t last_start=0;
int64_t first_end= INT64_MAX;
int64_t oldpos= avio_tell(VAR_0->pb);
int *VAR_2;
int64_t min_pos, pos;
for(VAR_1=0; VAR_1<VAR_0->nb_streams; VAR_1++){
AVStream *st = VAR_0->streams[VAR_1];
i... | [
"static int FUNC_0(AVFormatContext *VAR_0){",
"int VAR_1;",
"int64_t last_start=0;",
"int64_t first_end= INT64_MAX;",
"int64_t oldpos= avio_tell(VAR_0->pb);",
"int *VAR_2;",
"int64_t min_pos, pos;",
"for(VAR_1=0; VAR_1<VAR_0->nb_streams; VAR_1++){",
"AVStream *st = VAR_0->streams[VAR_1];",
"int n=... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
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
],
[
49,
51
... |
282 | static int nut_write_trailer(AVFormatContext *s)
{
NUTContext *nut = s->priv_data;
AVIOContext *bc = s->pb, *dyn_bc;
int i, ret;
while (nut->header_count < 3)
write_headers(s, bc);
ret = avio_open_dyn_buf(&dyn_bc);
if (ret >= 0 && nut->sp_count) {
av_assert1(nut->wri... | true | FFmpeg | 56c182c4d716b8b72156ff57a0c8d72087db8549 | static int nut_write_trailer(AVFormatContext *s)
{
NUTContext *nut = s->priv_data;
AVIOContext *bc = s->pb, *dyn_bc;
int i, ret;
while (nut->header_count < 3)
write_headers(s, bc);
ret = avio_open_dyn_buf(&dyn_bc);
if (ret >= 0 && nut->sp_count) {
av_assert1(nut->wri... | {
"code": [
" int i, ret;",
" for (i=0; i<s->nb_streams; i++)",
" av_freep(&nut->stream[i].keyframe_pts);",
" return 0;"
],
"line_no": [
9,
35,
37,
49
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
NUTContext *nut = VAR_0->priv_data;
AVIOContext *bc = VAR_0->pb, *dyn_bc;
int VAR_1, VAR_2;
while (nut->header_count < 3)
write_headers(VAR_0, bc);
VAR_2 = avio_open_dyn_buf(&dyn_bc);
if (VAR_2 >= 0 && nut->sp_count) {
av_a... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"NUTContext *nut = VAR_0->priv_data;",
"AVIOContext *bc = VAR_0->pb, *dyn_bc;",
"int VAR_1, VAR_2;",
"while (nut->header_count < 3)\nwrite_headers(VAR_0, bc);",
"VAR_2 = avio_open_dyn_buf(&dyn_bc);",
"if (VAR_2 >= 0 && nut->sp_count) {",
"av_assert1(nut-... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
]
] |
283 | static uint32_t arm_ldl_ptw(CPUState *cs, hwaddr addr, bool is_secure,
ARMMMUIdx mmu_idx, ARMMMUFaultInfo *fi)
{
ARMCPU *cpu = ARM_CPU(cs);
CPUARMState *env = &cpu->env;
MemTxAttrs attrs = {};
AddressSpace *as;
attrs.secure = is_secure;
as = arm_addressspace... | true | qemu | 3b39d734141a71296d08af3d4c32f872fafd782e | static uint32_t arm_ldl_ptw(CPUState *cs, hwaddr addr, bool is_secure,
ARMMMUIdx mmu_idx, ARMMMUFaultInfo *fi)
{
ARMCPU *cpu = ARM_CPU(cs);
CPUARMState *env = &cpu->env;
MemTxAttrs attrs = {};
AddressSpace *as;
attrs.secure = is_secure;
as = arm_addressspace... | {
"code": [
" return address_space_ldl_be(as, addr, attrs, NULL);",
" return address_space_ldl_le(as, addr, attrs, NULL);"
],
"line_no": [
31,
35
]
} | static uint32_t FUNC_0(CPUState *cs, hwaddr addr, bool is_secure,
ARMMMUIdx mmu_idx, ARMMMUFaultInfo *fi)
{
ARMCPU *cpu = ARM_CPU(cs);
CPUARMState *env = &cpu->env;
MemTxAttrs attrs = {};
AddressSpace *as;
attrs.secure = is_secure;
as = arm_addressspace(cs, ... | [
"static uint32_t FUNC_0(CPUState *cs, hwaddr addr, bool is_secure,\nARMMMUIdx mmu_idx, ARMMMUFaultInfo *fi)\n{",
"ARMCPU *cpu = ARM_CPU(cs);",
"CPUARMState *env = &cpu->env;",
"MemTxAttrs attrs = {};",
"AddressSpace *as;",
"attrs.secure = is_secure;",
"as = arm_addressspace(cs, attrs);",
"addr = S1_pt... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
284 | void aio_context_acquire(AioContext *ctx)
{
qemu_rec_mutex_lock(&ctx->lock);
}
| false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | void aio_context_acquire(AioContext *ctx)
{
qemu_rec_mutex_lock(&ctx->lock);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(AioContext *VAR_0)
{
qemu_rec_mutex_lock(&VAR_0->lock);
}
| [
"void FUNC_0(AioContext *VAR_0)\n{",
"qemu_rec_mutex_lock(&VAR_0->lock);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
285 | static void qjson_finalizefn(Object *obj)
{
QJSON *json = QJSON(obj);
qobject_decref(QOBJECT(json->str));
}
| false | qemu | 17b74b98676aee5bc470b173b1e528d2fce2cf18 | static void qjson_finalizefn(Object *obj)
{
QJSON *json = QJSON(obj);
qobject_decref(QOBJECT(json->str));
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(Object *VAR_0)
{
QJSON *json = QJSON(VAR_0);
qobject_decref(QOBJECT(json->str));
}
| [
"static void FUNC_0(Object *VAR_0)\n{",
"QJSON *json = QJSON(VAR_0);",
"qobject_decref(QOBJECT(json->str));",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
286 | static void cchip_write(void *opaque, hwaddr addr,
uint64_t v32, unsigned size)
{
TyphoonState *s = opaque;
uint64_t val, oldval, newval;
if (addr & 4) {
val = v32 << 32 | s->latch_tmp;
addr ^= 4;
} else {
s->latch_tmp = v32;
return;
... | false | qemu | 678421650dc166cd6cb35bb2bc0baf1b481b40ca | static void cchip_write(void *opaque, hwaddr addr,
uint64_t v32, unsigned size)
{
TyphoonState *s = opaque;
uint64_t val, oldval, newval;
if (addr & 4) {
val = v32 << 32 | s->latch_tmp;
addr ^= 4;
} else {
s->latch_tmp = v32;
return;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, hwaddr VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
TyphoonState *s = VAR_0;
uint64_t val, oldval, newval;
if (VAR_1 & 4) {
val = VAR_2 << 32 | s->latch_tmp;
VAR_1 ^= 4;
} else {
s->latch_tmp = VAR_2;
return;... | [
"static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"TyphoonState *s = VAR_0;",
"uint64_t val, oldval, newval;",
"if (VAR_1 & 4) {",
"val = VAR_2 << 32 | s->latch_tmp;",
"VAR_1 ^= 4;",
"} else {",
"s->latch_tmp = VAR_2;",
"return;",
"}",
"switch (VAR_1) {",
"ca... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31,
37
],
[
41,
47
],
[
51,
55
],
[
57
],
[
59
],
[
61
],
[
63
... |
287 | static void visitor_output_setup(TestOutputVisitorData *data,
const void *unused)
{
data->qov = qmp_output_visitor_new();
g_assert(data->qov != NULL);
data->ov = qmp_output_get_visitor(data->qov);
g_assert(data->ov != NULL);
}
| false | qemu | 3b098d56979d2f7fd707c5be85555d114353a28d | static void visitor_output_setup(TestOutputVisitorData *data,
const void *unused)
{
data->qov = qmp_output_visitor_new();
g_assert(data->qov != NULL);
data->ov = qmp_output_get_visitor(data->qov);
g_assert(data->ov != NULL);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(TestOutputVisitorData *VAR_0,
const void *VAR_1)
{
VAR_0->qov = qmp_output_visitor_new();
g_assert(VAR_0->qov != NULL);
VAR_0->ov = qmp_output_get_visitor(VAR_0->qov);
g_assert(VAR_0->ov != NULL);
}
| [
"static void FUNC_0(TestOutputVisitorData *VAR_0,\nconst void *VAR_1)\n{",
"VAR_0->qov = qmp_output_visitor_new();",
"g_assert(VAR_0->qov != NULL);",
"VAR_0->ov = qmp_output_get_visitor(VAR_0->qov);",
"g_assert(VAR_0->ov != NULL);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
]
] |
288 | static void group_exponents(AC3EncodeContext *s)
{
int blk, ch, i;
int group_size, nb_groups, bit_count;
uint8_t *p;
int delta0, delta1, delta2;
int exp0, exp1;
bit_count = 0;
for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) {
AC3Block *block = &s->blocks[blk];
for (ch ... | false | FFmpeg | 4b90c35d74880b07c50b3392a338f0f00d10302f | static void group_exponents(AC3EncodeContext *s)
{
int blk, ch, i;
int group_size, nb_groups, bit_count;
uint8_t *p;
int delta0, delta1, delta2;
int exp0, exp1;
bit_count = 0;
for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) {
AC3Block *block = &s->blocks[blk];
for (ch ... | {
"code": [],
"line_no": []
} | static void FUNC_0(AC3EncodeContext *VAR_0)
{
int VAR_1, VAR_2, VAR_3;
int VAR_4, VAR_5, VAR_6;
uint8_t *p;
int VAR_7, VAR_8, VAR_9;
int VAR_10, VAR_11;
VAR_6 = 0;
for (VAR_1 = 0; VAR_1 < AC3_MAX_BLOCKS; VAR_1++) {
AC3Block *block = &VAR_0->blocks[VAR_1];
for (VAR... | [
"static void FUNC_0(AC3EncodeContext *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3;",
"int VAR_4, VAR_5, VAR_6;",
"uint8_t *p;",
"int VAR_7, VAR_8, VAR_9;",
"int VAR_10, VAR_11;",
"VAR_6 = 0;",
"for (VAR_1 = 0; VAR_1 < AC3_MAX_BLOCKS; VAR_1++) {",
"AC3Block *block = &VAR_0->blocks[VAR_1];",
"for (VAR_2 = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
41
],
[
43
],
[
49
],
[
53
],
[... |
290 | void sd_write_data(SDState *sd, uint8_t value)
{
int i;
if (!sd->bdrv || !bdrv_is_inserted(sd->bdrv) || !sd->enable)
return;
if (sd->state != sd_receivingdata_state) {
fprintf(stderr, "sd_write_data: not in Receiving-Data state\n");
return;
}
if (sd->card_statu... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | void sd_write_data(SDState *sd, uint8_t value)
{
int i;
if (!sd->bdrv || !bdrv_is_inserted(sd->bdrv) || !sd->enable)
return;
if (sd->state != sd_receivingdata_state) {
fprintf(stderr, "sd_write_data: not in Receiving-Data state\n");
return;
}
if (sd->card_statu... | {
"code": [],
"line_no": []
} | void FUNC_0(SDState *VAR_0, uint8_t VAR_1)
{
int VAR_2;
if (!VAR_0->bdrv || !bdrv_is_inserted(VAR_0->bdrv) || !VAR_0->enable)
return;
if (VAR_0->state != sd_receivingdata_state) {
fprintf(stderr, "FUNC_0: not in Receiving-Data state\n");
return;
}
if (VAR_0->ca... | [
"void FUNC_0(SDState *VAR_0, uint8_t VAR_1)\n{",
"int VAR_2;",
"if (!VAR_0->bdrv || !bdrv_is_inserted(VAR_0->bdrv) || !VAR_0->enable)\nreturn;",
"if (VAR_0->state != sd_receivingdata_state) {",
"fprintf(stderr, \"FUNC_0: not in Receiving-Data state\\n\");",
"return;",
"}",
"if (VAR_0->card_status & (A... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25,
27
],
[
31
],
[
33,
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
... |
291 | int event_notifier_get_fd(EventNotifier *e)
{
return e->fd;
}
| false | qemu | d0cc2fbfa607678866475383c508be84818ceb64 | int event_notifier_get_fd(EventNotifier *e)
{
return e->fd;
}
| {
"code": [],
"line_no": []
} | int FUNC_0(EventNotifier *VAR_0)
{
return VAR_0->fd;
}
| [
"int FUNC_0(EventNotifier *VAR_0)\n{",
"return VAR_0->fd;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
293 | opts_type_size(Visitor *v, const char *name, uint64_t *obj, Error **errp)
{
OptsVisitor *ov = to_ov(v);
const QemuOpt *opt;
int64_t val;
opt = lookup_scalar(ov, name, errp);
if (!opt) {
return;
}
val = qemu_strtosz(opt->str ? opt->str : "", NULL);
if (val < 0) {
... | false | qemu | f17fd4fdf0df3d2f3444399d04c38d22b9a3e1b7 | opts_type_size(Visitor *v, const char *name, uint64_t *obj, Error **errp)
{
OptsVisitor *ov = to_ov(v);
const QemuOpt *opt;
int64_t val;
opt = lookup_scalar(ov, name, errp);
if (!opt) {
return;
}
val = qemu_strtosz(opt->str ? opt->str : "", NULL);
if (val < 0) {
... | {
"code": [],
"line_no": []
} | FUNC_0(Visitor *VAR_0, const char *VAR_1, uint64_t *VAR_2, Error **VAR_3)
{
OptsVisitor *ov = to_ov(VAR_0);
const QemuOpt *VAR_4;
int64_t val;
VAR_4 = lookup_scalar(ov, VAR_1, VAR_3);
if (!VAR_4) {
return;
}
val = qemu_strtosz(VAR_4->str ? VAR_4->str : "", NULL);
if... | [
"FUNC_0(Visitor *VAR_0, const char *VAR_1, uint64_t *VAR_2, Error **VAR_3)\n{",
"OptsVisitor *ov = to_ov(VAR_0);",
"const QemuOpt *VAR_4;",
"int64_t val;",
"VAR_4 = lookup_scalar(ov, VAR_1, VAR_3);",
"if (!VAR_4) {",
"return;",
"}",
"val = qemu_strtosz(VAR_4->str ? VAR_4->str : \"\", NULL);",
"if ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
]
] |
294 | static void handle_mousemotion(SDL_Event *ev)
{
int max_x, max_y;
struct sdl2_console *scon = get_scon_from_window(ev->key.windowID);
if (qemu_input_is_absolute() || absolute_enabled) {
int scr_w, scr_h;
SDL_GetWindowSize(scon->real_window, &scr_w, &scr_h);
max_x = scr_w - 1... | false | qemu | 24952847ad50f1b120287fdc4469b78108eef33c | static void handle_mousemotion(SDL_Event *ev)
{
int max_x, max_y;
struct sdl2_console *scon = get_scon_from_window(ev->key.windowID);
if (qemu_input_is_absolute() || absolute_enabled) {
int scr_w, scr_h;
SDL_GetWindowSize(scon->real_window, &scr_w, &scr_h);
max_x = scr_w - 1... | {
"code": [],
"line_no": []
} | static void FUNC_0(SDL_Event *VAR_0)
{
int VAR_1, VAR_2;
struct sdl2_console *VAR_3 = get_scon_from_window(VAR_0->key.windowID);
if (qemu_input_is_absolute() || absolute_enabled) {
int VAR_4, VAR_5;
SDL_GetWindowSize(VAR_3->real_window, &VAR_4, &VAR_5);
VAR_1 = VAR_4 - 1;
... | [
"static void FUNC_0(SDL_Event *VAR_0)\n{",
"int VAR_1, VAR_2;",
"struct sdl2_console *VAR_3 = get_scon_from_window(VAR_0->key.windowID);",
"if (qemu_input_is_absolute() || absolute_enabled) {",
"int VAR_4, VAR_5;",
"SDL_GetWindowSize(VAR_3->real_window, &VAR_4, &VAR_5);",
"VAR_1 = VAR_4 - 1;",
"VAR_2 ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29,
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47... |
295 | static int qemu_rdma_registration_stop(QEMUFile *f, void *opaque,
uint64_t flags)
{
Error *local_err = NULL, **errp = &local_err;
QEMUFileRDMA *rfile = opaque;
RDMAContext *rdma = rfile->rdma;
RDMAControlHeader head = { .len = 0, .repeat = 1 };
int ret =... | false | qemu | 885e8f984ea846e79a39ddc4f066f4dd3d04b264 | static int qemu_rdma_registration_stop(QEMUFile *f, void *opaque,
uint64_t flags)
{
Error *local_err = NULL, **errp = &local_err;
QEMUFileRDMA *rfile = opaque;
RDMAContext *rdma = rfile->rdma;
RDMAControlHeader head = { .len = 0, .repeat = 1 };
int ret =... | {
"code": [],
"line_no": []
} | static int FUNC_0(QEMUFile *VAR_0, void *VAR_1,
uint64_t VAR_2)
{
Error *local_err = NULL, **errp = &local_err;
QEMUFileRDMA *rfile = VAR_1;
RDMAContext *rdma = rfile->rdma;
RDMAControlHeader head = { .len = 0, .repeat = 1 };
int VAR_3 = 0;
CHECK_... | [
"static int FUNC_0(QEMUFile *VAR_0, void *VAR_1,\nuint64_t VAR_2)\n{",
"Error *local_err = NULL, **errp = &local_err;",
"QEMUFileRDMA *rfile = VAR_1;",
"RDMAContext *rdma = rfile->rdma;",
"RDMAControlHeader head = { .len = 0, .repeat = 1 };",
"int VAR_3 = 0;",
"CHECK_ERROR_STATE();",
"qemu_fflush(VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
69,
71,... |
296 | static void xen_platform_ioport_writeb(void *opaque, uint32_t addr, uint32_t val)
{
PCIXenPlatformState *s = opaque;
addr &= 0xff;
val &= 0xff;
switch (addr) {
case 0: /* Platform flags */
platform_fixed_ioport_writeb(opaque, XEN_PLATFORM_IOPORT, val);
break;
case 8... | false | qemu | de00982e9e14e2d6ba3d148f02c5a1e94deaa985 | static void xen_platform_ioport_writeb(void *opaque, uint32_t addr, uint32_t val)
{
PCIXenPlatformState *s = opaque;
addr &= 0xff;
val &= 0xff;
switch (addr) {
case 0:
platform_fixed_ioport_writeb(opaque, XEN_PLATFORM_IOPORT, val);
break;
case 8:
log_write... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)
{
PCIXenPlatformState *s = VAR_0;
VAR_1 &= 0xff;
VAR_2 &= 0xff;
switch (VAR_1) {
case 0:
platform_fixed_ioport_writeb(VAR_0, XEN_PLATFORM_IOPORT, VAR_2);
break;
case 8:
log_writeb(s, VAR_2);
... | [
"static void FUNC_0(void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{",
"PCIXenPlatformState *s = VAR_0;",
"VAR_1 &= 0xff;",
"VAR_2 &= 0xff;",
"switch (VAR_1) {",
"case 0:\nplatform_fixed_ioport_writeb(VAR_0, XEN_PLATFORM_IOPORT, VAR_2);",
"break;",
"case 8:\nlog_writeb(s, VAR_2);",
"break;",
"defa... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
]
] |
297 | static uint32_t nabm_readb (void *opaque, uint32_t addr)
{
PCIAC97LinkState *d = opaque;
AC97LinkState *s = &d->ac97;
AC97BusMasterRegs *r = NULL;
uint32_t index = addr - s->base[1];
uint32_t val = ~0U;
switch (index) {
case CAS:
dolog ("CAS %d\n", s->cas);
val = ... | false | qemu | 10ee2aaa417d8d8978cdb2bbed55ebb152df5f6b | static uint32_t nabm_readb (void *opaque, uint32_t addr)
{
PCIAC97LinkState *d = opaque;
AC97LinkState *s = &d->ac97;
AC97BusMasterRegs *r = NULL;
uint32_t index = addr - s->base[1];
uint32_t val = ~0U;
switch (index) {
case CAS:
dolog ("CAS %d\n", s->cas);
val = ... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0 (void *opaque, uint32_t addr)
{
PCIAC97LinkState *d = opaque;
AC97LinkState *s = &d->ac97;
AC97BusMasterRegs *r = NULL;
uint32_t index = addr - s->base[1];
uint32_t val = ~0U;
switch (index) {
case CAS:
dolog ("CAS %d\n", s->cas);
val = s->c... | [
"static uint32_t FUNC_0 (void *opaque, uint32_t addr)\n{",
"PCIAC97LinkState *d = opaque;",
"AC97LinkState *s = &d->ac97;",
"AC97BusMasterRegs *r = NULL;",
"uint32_t index = addr - s->base[1];",
"uint32_t val = ~0U;",
"switch (index) {",
"case CAS:\ndolog (\"CAS %d\\n\", s->cas);",
"val = s->cas;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29,
31,
33,
35
],
[
37
],
[
39
],
[
41
],
[
43,
45,
47,
49
],
[... |
299 | static int ac3_encode_frame(AVCodecContext *avctx,
unsigned char *frame, int buf_size, void *data)
{
AC3EncodeContext *s = avctx->priv_data;
const int16_t *samples = data;
int16_t planar_samples[AC3_MAX_CHANNELS][AC3_BLOCK_SIZE+AC3_FRAME_SIZE];
int32_t mdct_coef[AC3_MAX... | false | FFmpeg | dc0bc0f84ec3ecc475182c5c2934ca8ef5a45de2 | static int ac3_encode_frame(AVCodecContext *avctx,
unsigned char *frame, int buf_size, void *data)
{
AC3EncodeContext *s = avctx->priv_data;
const int16_t *samples = data;
int16_t planar_samples[AC3_MAX_CHANNELS][AC3_BLOCK_SIZE+AC3_FRAME_SIZE];
int32_t mdct_coef[AC3_MAX... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
unsigned char *VAR_1, int VAR_2, void *VAR_3)
{
AC3EncodeContext *s = VAR_0->priv_data;
const int16_t *VAR_4 = VAR_3;
int16_t planar_samples[AC3_MAX_CHANNELS][AC3_BLOCK_SIZE+AC3_FRAME_SIZE];
int32_t mdct_coef[AC3_MAX_BLOCKS][AC3_... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nunsigned char *VAR_1, int VAR_2, void *VAR_3)\n{",
"AC3EncodeContext *s = VAR_0->priv_data;",
"const int16_t *VAR_4 = VAR_3;",
"int16_t planar_samples[AC3_MAX_CHANNELS][AC3_BLOCK_SIZE+AC3_FRAME_SIZE];",
"int32_t mdct_coef[AC3_MAX_BLOCKS][AC3_MAX_CHANNELS][AC3_MAX_C... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
41
],
[
45
],
[
49,
51
],
[... |
302 | void cpu_physical_memory_write_rom(target_phys_addr_t addr,
const uint8_t *buf, int len)
{
AddressSpaceDispatch *d = address_space_memory.dispatch;
int l;
uint8_t *ptr;
target_phys_addr_t page;
MemoryRegionSection *section;
while (len > 0) {
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | void cpu_physical_memory_write_rom(target_phys_addr_t addr,
const uint8_t *buf, int len)
{
AddressSpaceDispatch *d = address_space_memory.dispatch;
int l;
uint8_t *ptr;
target_phys_addr_t page;
MemoryRegionSection *section;
while (len > 0) {
... | {
"code": [],
"line_no": []
} | void FUNC_0(target_phys_addr_t VAR_0,
const uint8_t *VAR_1, int VAR_2)
{
AddressSpaceDispatch *d = address_space_memory.dispatch;
int VAR_3;
uint8_t *ptr;
target_phys_addr_t page;
MemoryRegionSection *section;
while (VAR_2 > 0) {
page = VAR_0... | [
"void FUNC_0(target_phys_addr_t VAR_0,\nconst uint8_t *VAR_1, int VAR_2)\n{",
"AddressSpaceDispatch *d = address_space_memory.dispatch;",
"int VAR_3;",
"uint8_t *ptr;",
"target_phys_addr_t page;",
"MemoryRegionSection *section;",
"while (VAR_2 > 0) {",
"page = VAR_0 & TARGET_PAGE_MASK;",
"VAR_3 = (p... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
33,
35
],
[
39
],
[
41
],
[
43,
45
],
[
49
],
[
51
],
[
53
... |
303 | av_cold int ff_lpc_init(LPCContext *s, int blocksize, int max_order,
enum FFLPCType lpc_type)
{
s->blocksize = blocksize;
s->max_order = max_order;
s->lpc_type = lpc_type;
if (lpc_type == FF_LPC_TYPE_LEVINSON) {
s->windowed_samples = av_mallocz((blocksize + max_... | true | FFmpeg | 4b0e0f31bf0f618a634dcfdca45e72cdfb0b48b5 | av_cold int ff_lpc_init(LPCContext *s, int blocksize, int max_order,
enum FFLPCType lpc_type)
{
s->blocksize = blocksize;
s->max_order = max_order;
s->lpc_type = lpc_type;
if (lpc_type == FF_LPC_TYPE_LEVINSON) {
s->windowed_samples = av_mallocz((blocksize + max_... | {
"code": [
" s->windowed_samples = av_mallocz((blocksize + max_order + 2) *",
" sizeof(*s->windowed_samples));",
" if (!s->windowed_samples)"
],
"line_no": [
17,
19,
21
]
} | av_cold int FUNC_0(LPCContext *s, int blocksize, int max_order,
enum FFLPCType lpc_type)
{
s->blocksize = blocksize;
s->max_order = max_order;
s->lpc_type = lpc_type;
if (lpc_type == FF_LPC_TYPE_LEVINSON) {
s->windowed_samples = av_mallocz((blocksize + max_order... | [
"av_cold int FUNC_0(LPCContext *s, int blocksize, int max_order,\nenum FFLPCType lpc_type)\n{",
"s->blocksize = blocksize;",
"s->max_order = max_order;",
"s->lpc_type = lpc_type;",
"if (lpc_type == FF_LPC_TYPE_LEVINSON) {",
"s->windowed_samples = av_mallocz((blocksize + max_order + 2) *\nsizeof(*s->windo... | [
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
39,
41
],
[
45
],
[
47
]
] |
306 | static int audio_decode_frame(VideoState *is, double *pts_ptr)
{
AVPacket *pkt_temp = &is->audio_pkt_temp;
AVPacket *pkt = &is->audio_pkt;
AVCodecContext *dec = is->audio_st->codec;
int len1, len2, data_size, resampled_data_size;
int64_t dec_channel_layout;
int got_frame;
double pts;... | false | FFmpeg | 4fd07b9366fb2f74b6af0dea8092d6bafa38f131 | static int audio_decode_frame(VideoState *is, double *pts_ptr)
{
AVPacket *pkt_temp = &is->audio_pkt_temp;
AVPacket *pkt = &is->audio_pkt;
AVCodecContext *dec = is->audio_st->codec;
int len1, len2, data_size, resampled_data_size;
int64_t dec_channel_layout;
int got_frame;
double pts;... | {
"code": [],
"line_no": []
} | static int FUNC_0(VideoState *VAR_0, double *VAR_1)
{
AVPacket *pkt_temp = &VAR_0->audio_pkt_temp;
AVPacket *pkt = &VAR_0->audio_pkt;
AVCodecContext *dec = VAR_0->audio_st->codec;
int VAR_2, VAR_3, VAR_4, VAR_5;
int64_t dec_channel_layout;
int VAR_6;
double VAR_7;
int VAR_8 = 0;... | [
"static int FUNC_0(VideoState *VAR_0, double *VAR_1)\n{",
"AVPacket *pkt_temp = &VAR_0->audio_pkt_temp;",
"AVPacket *pkt = &VAR_0->audio_pkt;",
"AVCodecContext *dec = VAR_0->audio_st->codec;",
"int VAR_2, VAR_3, VAR_4, VAR_5;",
"int64_t dec_channel_layout;",
"int VAR_6;",
"double VAR_7;",
"int 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,
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
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
45,
47
],
[
51,... |
307 | void YM3812UpdateOne(FM_OPL *OPL, INT16 *buffer, int length)
{
int i;
int data;
OPLSAMPLE *buf = buffer;
UINT32 amsCnt = OPL->amsCnt;
UINT32 vibCnt = OPL->vibCnt;
UINT8 rythm = OPL->rythm&0x20;
OPL_CH *CH,*R_CH;
if( (void *)OPL != cur_chip ){
cur_chip = (void *)OPL;
/* channel pointers */
... | false | qemu | c11e80e299e57c64934c164b231fa0d4279db445 | void YM3812UpdateOne(FM_OPL *OPL, INT16 *buffer, int length)
{
int i;
int data;
OPLSAMPLE *buf = buffer;
UINT32 amsCnt = OPL->amsCnt;
UINT32 vibCnt = OPL->vibCnt;
UINT8 rythm = OPL->rythm&0x20;
OPL_CH *CH,*R_CH;
if( (void *)OPL != cur_chip ){
cur_chip = (void *)OPL;
S_CH = OPL->P_CH;
... | {
"code": [],
"line_no": []
} | void FUNC_0(FM_OPL *VAR_0, INT16 *VAR_1, int VAR_2)
{
int VAR_3;
int VAR_4;
OPLSAMPLE *buf = VAR_1;
UINT32 amsCnt = VAR_0->amsCnt;
UINT32 vibCnt = VAR_0->vibCnt;
UINT8 rythm = VAR_0->rythm&0x20;
OPL_CH *CH,*R_CH;
if( (void *)VAR_0 != cur_chip ){
cur_chip = (void *)VAR_0;
S_CH = VAR_0->... | [
"void FUNC_0(FM_OPL *VAR_0, INT16 *VAR_1, int VAR_2)\n{",
"int VAR_3;",
"int VAR_4;",
"OPLSAMPLE *buf = VAR_1;",
"UINT32 amsCnt = VAR_0->amsCnt;",
"UINT32 vibCnt = VAR_0->vibCnt;",
"UINT8 rythm = VAR_0->rythm&0x20;",
"OPL_CH *CH,*R_CH;",
"if( (void *)VAR_0 != cur_chip ){",
"cur_chip = (void *)VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
... |
308 | static void omap_tipb_bridge_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
struct omap_tipb_bridge_s *s = (struct omap_tipb_bridge_s *) opaque;
if (size < 2) {
return omap_badwidth_write16(opaque, addr, value);
}
switc... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void omap_tipb_bridge_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
struct omap_tipb_bridge_s *s = (struct omap_tipb_bridge_s *) opaque;
if (size < 2) {
return omap_badwidth_write16(opaque, addr, value);
}
switc... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
struct omap_tipb_bridge_s *VAR_4 = (struct omap_tipb_bridge_s *) VAR_0;
if (VAR_3 < 2) {
return omap_badwidth_write16(VAR_0, VAR_1, VAR_2);
}
switch (VAR_1) {... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"struct omap_tipb_bridge_s *VAR_4 = (struct omap_tipb_bridge_s *) VAR_0;",
"if (VAR_3 < 2) {",
"return omap_badwidth_write16(VAR_0, VAR_1, VAR_2);",
"}",
"switch (VAR_1) {",
"case 0x00:\nVAR_4->control = VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
29,
31
],
[
33
],
[
37,
39
],
[
41
],
[
45,
47
],
[
49
],
[
51
],
[
55,
57,
59,
61... |
309 | PCIDevice *pci_register_device(PCIBus *bus, const char *name,
int instance_size, int devfn,
PCIConfigReadFunc *config_read,
PCIConfigWriteFunc *config_write)
{
PCIDevice *pci_dev;
pci_dev = qemu_mallocz(instance... | false | qemu | fb23162885f7fd8cf7334bed22c25ac32c7d8b9d | PCIDevice *pci_register_device(PCIBus *bus, const char *name,
int instance_size, int devfn,
PCIConfigReadFunc *config_read,
PCIConfigWriteFunc *config_write)
{
PCIDevice *pci_dev;
pci_dev = qemu_mallocz(instance... | {
"code": [],
"line_no": []
} | PCIDevice *FUNC_0(PCIBus *bus, const char *name,
int instance_size, int devfn,
PCIConfigReadFunc *config_read,
PCIConfigWriteFunc *config_write)
{
PCIDevice *pci_dev;
pci_dev = qemu_mallocz(instance_size);
... | [
"PCIDevice *FUNC_0(PCIBus *bus, const char *name,\nint instance_size, int devfn,\nPCIConfigReadFunc *config_read,\nPCIConfigWriteFunc *config_write)\n{",
"PCIDevice *pci_dev;",
"pci_dev = qemu_mallocz(instance_size);",
"pci_dev = do_pci_register_device(pci_dev, bus, name, devfn,\nconfig_read, config_write);",... | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
23
]
] |
310 | int64 float64_to_int64_round_to_zero( float64 a STATUS_PARAM )
{
flag aSign;
int16 aExp, shiftCount;
bits64 aSig;
int64 z;
aSig = extractFloat64Frac( a );
aExp = extractFloat64Exp( a );
aSign = extractFloat64Sign( a );
if ( aExp ) aSig |= LIT64( 0x0010000000000000 );
shif... | false | qemu | f090c9d4ad5812fb92843d6470a1111c15190c4c | int64 float64_to_int64_round_to_zero( float64 a STATUS_PARAM )
{
flag aSign;
int16 aExp, shiftCount;
bits64 aSig;
int64 z;
aSig = extractFloat64Frac( a );
aExp = extractFloat64Exp( a );
aSign = extractFloat64Sign( a );
if ( aExp ) aSig |= LIT64( 0x0010000000000000 );
shif... | {
"code": [],
"line_no": []
} | int64 FUNC_0( float64 a STATUS_PARAM )
{
flag aSign;
int16 aExp, shiftCount;
bits64 aSig;
int64 z;
aSig = extractFloat64Frac( a );
aExp = extractFloat64Exp( a );
aSign = extractFloat64Sign( a );
if ( aExp ) aSig |= LIT64( 0x0010000000000000 );
shiftCount = aExp - 0x433;
... | [
"int64 FUNC_0( float64 a STATUS_PARAM )\n{",
"flag aSign;",
"int16 aExp, shiftCount;",
"bits64 aSig;",
"int64 z;",
"aSig = extractFloat64Frac( a );",
"aExp = extractFloat64Exp( a );",
"aSign = extractFloat64Sign( a );",
"if ( aExp ) aSig |= LIT64( 0x0010000000000000 );",
"shiftCount = aExp - 0x433... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35,
37,
39
],
[
41
],
[
43
],
[
45
],
[... |
312 | static void icount_warp_rt(void)
{
unsigned seq;
int64_t warp_start;
/* The icount_warp_timer is rescheduled soon after vm_clock_warp_start
* changes from -1 to another value, so the race here is okay.
*/
do {
seq = seqlock_read_begin(&timers_state.vm_clock_seqlock);
... | false | qemu | b39e3f34c9de7ead6a11a74aa2de78baf41d81a7 | static void icount_warp_rt(void)
{
unsigned seq;
int64_t warp_start;
do {
seq = seqlock_read_begin(&timers_state.vm_clock_seqlock);
warp_start = vm_clock_warp_start;
} while (seqlock_read_retry(&timers_state.vm_clock_seqlock, seq));
if (warp_start == -1) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
unsigned VAR_0;
int64_t warp_start;
do {
VAR_0 = seqlock_read_begin(&timers_state.vm_clock_seqlock);
warp_start = vm_clock_warp_start;
} while (seqlock_read_retry(&timers_state.vm_clock_seqlock, VAR_0));
if (warp_start == -1) {
... | [
"static void FUNC_0(void)\n{",
"unsigned VAR_0;",
"int64_t warp_start;",
"do {",
"VAR_0 = seqlock_read_begin(&timers_state.vm_clock_seqlock);",
"warp_start = vm_clock_warp_start;",
"} while (seqlock_read_retry(&timers_state.vm_clock_seqlock, VAR_0));",
"if (warp_start == -1) {",
"return;",
"}",
... | [
0,
0,
0,
0,
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
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
47
],
[
49
],
[
59
],
[
61
],
[
63
],
... |
313 | void bdrv_aio_cancel(BlockAIOCB *acb)
{
qemu_aio_ref(acb);
bdrv_aio_cancel_async(acb);
while (acb->refcnt > 1) {
if (acb->aiocb_info->get_aio_context) {
aio_poll(acb->aiocb_info->get_aio_context(acb), true);
} else if (acb->bs) {
aio_poll(bdrv_get_aio_context(... | false | qemu | 61007b316cd71ee7333ff7a0a749a8949527575f | void bdrv_aio_cancel(BlockAIOCB *acb)
{
qemu_aio_ref(acb);
bdrv_aio_cancel_async(acb);
while (acb->refcnt > 1) {
if (acb->aiocb_info->get_aio_context) {
aio_poll(acb->aiocb_info->get_aio_context(acb), true);
} else if (acb->bs) {
aio_poll(bdrv_get_aio_context(... | {
"code": [],
"line_no": []
} | void FUNC_0(BlockAIOCB *VAR_0)
{
qemu_aio_ref(VAR_0);
bdrv_aio_cancel_async(VAR_0);
while (VAR_0->refcnt > 1) {
if (VAR_0->aiocb_info->get_aio_context) {
aio_poll(VAR_0->aiocb_info->get_aio_context(VAR_0), true);
} else if (VAR_0->bs) {
aio_poll(bdrv_get_aio_c... | [
"void FUNC_0(BlockAIOCB *VAR_0)\n{",
"qemu_aio_ref(VAR_0);",
"bdrv_aio_cancel_async(VAR_0);",
"while (VAR_0->refcnt > 1) {",
"if (VAR_0->aiocb_info->get_aio_context) {",
"aio_poll(VAR_0->aiocb_info->get_aio_context(VAR_0), true);",
"} else if (VAR_0->bs) {",
"aio_poll(bdrv_get_aio_context(VAR_0->bs), ... | [
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
]
] |
314 | static void vnc_listen_read(void *opaque, bool websocket)
{
VncDisplay *vs = opaque;
struct sockaddr_in addr;
socklen_t addrlen = sizeof(addr);
int csock;
/* Catch-up */
graphic_hw_update(vs->dcl.con);
#ifdef CONFIG_VNC_WS
if (websocket) {
csock = qemu_accept(vs->lwebsock... | false | qemu | 8e9b0d24fb986d4241ae3b77752eca5dab4cb486 | static void vnc_listen_read(void *opaque, bool websocket)
{
VncDisplay *vs = opaque;
struct sockaddr_in addr;
socklen_t addrlen = sizeof(addr);
int csock;
graphic_hw_update(vs->dcl.con);
#ifdef CONFIG_VNC_WS
if (websocket) {
csock = qemu_accept(vs->lwebsock, (struct sock... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, bool VAR_1)
{
VncDisplay *vs = VAR_0;
struct sockaddr_in VAR_2;
socklen_t addrlen = sizeof(VAR_2);
int VAR_3;
graphic_hw_update(vs->dcl.con);
#ifdef CONFIG_VNC_WS
if (VAR_1) {
VAR_3 = qemu_accept(vs->lwebsock, (struct sockaddr *)&VAR_2, &a... | [
"static void FUNC_0(void *VAR_0, bool VAR_1)\n{",
"VncDisplay *vs = VAR_0;",
"struct sockaddr_in VAR_2;",
"socklen_t addrlen = sizeof(VAR_2);",
"int VAR_3;",
"graphic_hw_update(vs->dcl.con);",
"#ifdef CONFIG_VNC_WS\nif (VAR_1) {",
"VAR_3 = qemu_accept(vs->lwebsock, (struct sockaddr *)&VAR_2, &addrlen)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
]
] |
315 | static void gen_sraq(DisasContext *ctx)
{
int l1 = gen_new_label();
int l2 = gen_new_label();
TCGv t0 = tcg_temp_new();
TCGv t1 = tcg_temp_local_new();
TCGv t2 = tcg_temp_local_new();
tcg_gen_andi_tl(t2, cpu_gpr[rB(ctx->opcode)], 0x1F);
tcg_gen_shr_tl(t0, cpu_gpr[rS(ctx->opcode)], t2... | false | qemu | 42a268c241183877192c376d03bd9b6d527407c7 | static void gen_sraq(DisasContext *ctx)
{
int l1 = gen_new_label();
int l2 = gen_new_label();
TCGv t0 = tcg_temp_new();
TCGv t1 = tcg_temp_local_new();
TCGv t2 = tcg_temp_local_new();
tcg_gen_andi_tl(t2, cpu_gpr[rB(ctx->opcode)], 0x1F);
tcg_gen_shr_tl(t0, cpu_gpr[rS(ctx->opcode)], t2... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0)
{
int VAR_1 = gen_new_label();
int VAR_2 = gen_new_label();
TCGv t0 = tcg_temp_new();
TCGv t1 = tcg_temp_local_new();
TCGv t2 = tcg_temp_local_new();
tcg_gen_andi_tl(t2, cpu_gpr[rB(VAR_0->opcode)], 0x1F);
tcg_gen_shr_tl(t0, cpu_gpr[rS(VAR_0->op... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"int VAR_1 = gen_new_label();",
"int VAR_2 = gen_new_label();",
"TCGv t0 = tcg_temp_new();",
"TCGv t1 = tcg_temp_local_new();",
"TCGv t2 = tcg_temp_local_new();",
"tcg_gen_andi_tl(t2, cpu_gpr[rB(VAR_0->opcode)], 0x1F);",
"tcg_gen_shr_tl(t0, cpu_gpr[rS(VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
... |
316 | static void reverse_dc_prediction(Vp3DecodeContext *s,
int first_fragment,
int fragment_width,
int fragment_height)
{
#define PUL 8
#define PU 4
#define PUR 2
#define PL 1
int x, y;
int i = first_... | false | FFmpeg | 63c0b3d920fe637ec4d361f08108ca8d5ba70bbe | static void reverse_dc_prediction(Vp3DecodeContext *s,
int first_fragment,
int fragment_width,
int fragment_height)
{
#define PUL 8
#define PU 4
#define PUR 2
#define PL 1
int x, y;
int i = first_... | {
"code": [],
"line_no": []
} | static void FUNC_0(Vp3DecodeContext *VAR_0,
int VAR_1,
int VAR_2,
int VAR_3)
{
#define PUL 8
#define PU 4
#define PUR 2
#define PL 1
int VAR_4, VAR_5;
int VAR_6 = VAR_1;
int VAR_7;
... | [
"static void FUNC_0(Vp3DecodeContext *VAR_0,\nint VAR_1,\nint VAR_2,\nint VAR_3)\n{",
"#define PUL 8\n#define PU 4\n#define PUR 2\n#define PL 1\nint VAR_4, VAR_5;",
"int VAR_6 = VAR_1;",
"int VAR_7;",
"int VAR_8, VAR_9, VAR_10, VAR_11;",
"int VAR_12, VAR_13, VAR_14, VAR_15;",
"static const int VAR_16[16... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
35
],
[
41
],
[
59
],
[
61
],
[
63
],
[
65
],
[
67
],
[
69
],
[
71
],
[
73
],
[
75
],
[
77
],
[... |
317 | static PhysPageDesc *phys_page_find_alloc(target_phys_addr_t index, int alloc)
{
void **lp, **p;
p = (void **)l1_phys_map;
#if TARGET_PHYS_ADDR_SPACE_BITS > 32
#if TARGET_PHYS_ADDR_SPACE_BITS > (32 + L1_BITS)
#error unsupported TARGET_PHYS_ADDR_SPACE_BITS
#endif
lp = p + ((index >> (L1_BITS + L2... | false | qemu | e3f4e2a4b0df510e441badb85c9398516c27bd66 | static PhysPageDesc *phys_page_find_alloc(target_phys_addr_t index, int alloc)
{
void **lp, **p;
p = (void **)l1_phys_map;
#if TARGET_PHYS_ADDR_SPACE_BITS > 32
#if TARGET_PHYS_ADDR_SPACE_BITS > (32 + L1_BITS)
#error unsupported TARGET_PHYS_ADDR_SPACE_BITS
#endif
lp = p + ((index >> (L1_BITS + L2... | {
"code": [],
"line_no": []
} | static PhysPageDesc *FUNC_0(target_phys_addr_t index, int alloc)
{
void **VAR_0, **VAR_1;
VAR_1 = (void **)l1_phys_map;
#if TARGET_PHYS_ADDR_SPACE_BITS > 32
#if TARGET_PHYS_ADDR_SPACE_BITS > (32 + L1_BITS)
#error unsupported TARGET_PHYS_ADDR_SPACE_BITS
#endif
VAR_0 = VAR_1 + ((index >> (L1_BITS ... | [
"static PhysPageDesc *FUNC_0(target_phys_addr_t index, int alloc)\n{",
"void **VAR_0, **VAR_1;",
"VAR_1 = (void **)l1_phys_map;",
"#if TARGET_PHYS_ADDR_SPACE_BITS > 32\n#if TARGET_PHYS_ADDR_SPACE_BITS > (32 + L1_BITS)\n#error unsupported TARGET_PHYS_ADDR_SPACE_BITS\n#endif\nVAR_0 = VAR_1 + ((index >> (L1_BITS... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
15,
17,
19,
21
],
[
23
],
[
25
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
51,
53
],
[
55
],
... |
318 | CPUState *cpu_mb_init (const char *cpu_model)
{
CPUState *env;
static int tcg_initialized = 0;
int i;
env = qemu_mallocz(sizeof(CPUState));
cpu_exec_init(env);
cpu_reset(env);
env->pvr.regs[0] = PVR0_PVR_FULL_MASK \
| PVR0_USE_BARREL_MASK \
... | false | qemu | 4898427ec88821ff94571340c397d15e0bddb3e2 | CPUState *cpu_mb_init (const char *cpu_model)
{
CPUState *env;
static int tcg_initialized = 0;
int i;
env = qemu_mallocz(sizeof(CPUState));
cpu_exec_init(env);
cpu_reset(env);
env->pvr.regs[0] = PVR0_PVR_FULL_MASK \
| PVR0_USE_BARREL_MASK \
... | {
"code": [],
"line_no": []
} | CPUState *FUNC_0 (const char *cpu_model)
{
CPUState *env;
static int VAR_0 = 0;
int VAR_1;
env = qemu_mallocz(sizeof(CPUState));
cpu_exec_init(env);
cpu_reset(env);
env->pvr.regs[0] = PVR0_PVR_FULL_MASK \
| PVR0_USE_BARREL_MASK \
... | [
"CPUState *FUNC_0 (const char *cpu_model)\n{",
"CPUState *env;",
"static int VAR_0 = 0;",
"int VAR_1;",
"env = qemu_mallocz(sizeof(CPUState));",
"cpu_exec_init(env);",
"cpu_reset(env);",
"env->pvr.regs[0] = PVR0_PVR_FULL_MASK \\\n| PVR0_USE_BARREL_MASK \\\n| PVR0_USE_DIV_MASK \\\n| PVR0_USE_HW_MUL_MAS... | [
0,
0,
0,
0,
0,
0,
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
],
[
23,
25,
27,
29,
31,
33,
35,
37,
39
],
[
41,
43,
45,
47,
49,
51,
53,
55,
57,
59,
61
],
[
63
],
[
65
... |
320 | int cpu_x86_exec(CPUX86State *env1)
{
int saved_T0, saved_T1, saved_A0;
CPUX86State *saved_env;
#ifdef reg_EAX
int saved_EAX;
#endif
#ifdef reg_ECX
int saved_ECX;
#endif
#ifdef reg_EDX
int saved_EDX;
#endif
#ifdef reg_EBX
int saved_EBX;
#endif
#ifdef reg_ESP
int saved_ESP;
... | false | qemu | e4533c7a8cdcc79ccdf695f0aaa2e23a5b926ed0 | int cpu_x86_exec(CPUX86State *env1)
{
int saved_T0, saved_T1, saved_A0;
CPUX86State *saved_env;
#ifdef reg_EAX
int saved_EAX;
#endif
#ifdef reg_ECX
int saved_ECX;
#endif
#ifdef reg_EDX
int saved_EDX;
#endif
#ifdef reg_EBX
int saved_EBX;
#endif
#ifdef reg_ESP
int saved_ESP;
... | {
"code": [],
"line_no": []
} | int FUNC_0(CPUX86State *VAR_0)
{
int VAR_1, VAR_2, VAR_3;
CPUX86State *saved_env;
#ifdef reg_EAX
int saved_EAX;
#endif
#ifdef reg_ECX
int saved_ECX;
#endif
#ifdef reg_EDX
int saved_EDX;
#endif
#ifdef reg_EBX
int saved_EBX;
#endif
#ifdef reg_ESP
int saved_ESP;
#endif
#ifdef... | [
"int FUNC_0(CPUX86State *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3;",
"CPUX86State *saved_env;",
"#ifdef reg_EAX\nint saved_EAX;",
"#endif\n#ifdef reg_ECX\nint saved_ECX;",
"#endif\n#ifdef reg_EDX\nint saved_EDX;",
"#endif\n#ifdef reg_EBX\nint saved_EBX;",
"#endif\n#ifdef reg_ESP\nint saved_ESP;",
"#endi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13,
15,
17
],
[
19,
21,
23
],
[
25,
27,
29
],
[
31,
33,
35
],
[
37,
39,
41
],
[
43,
45,
47
],
[
49,
51,
53
],
[
55,
57,... |
322 | void s390_pci_sclp_configure(SCCB *sccb)
{
PciCfgSccb *psccb = (PciCfgSccb *)sccb;
S390PCIBusDevice *pbdev = s390_pci_find_dev_by_fid(be32_to_cpu(psccb->aid));
uint16_t rc;
if (be16_to_cpu(sccb->h.length) < 16) {
rc = SCLP_RC_INSUFFICIENT_SCCB_LENGTH;
goto out;
}
if ... | false | qemu | 5d1abf234462d13bef3617cc2c55b6815703ddf2 | void s390_pci_sclp_configure(SCCB *sccb)
{
PciCfgSccb *psccb = (PciCfgSccb *)sccb;
S390PCIBusDevice *pbdev = s390_pci_find_dev_by_fid(be32_to_cpu(psccb->aid));
uint16_t rc;
if (be16_to_cpu(sccb->h.length) < 16) {
rc = SCLP_RC_INSUFFICIENT_SCCB_LENGTH;
goto out;
}
if ... | {
"code": [],
"line_no": []
} | void FUNC_0(SCCB *VAR_0)
{
PciCfgSccb *psccb = (PciCfgSccb *)VAR_0;
S390PCIBusDevice *pbdev = s390_pci_find_dev_by_fid(be32_to_cpu(psccb->aid));
uint16_t rc;
if (be16_to_cpu(VAR_0->h.length) < 16) {
rc = SCLP_RC_INSUFFICIENT_SCCB_LENGTH;
goto out;
}
if (pbdev) {
... | [
"void FUNC_0(SCCB *VAR_0)\n{",
"PciCfgSccb *psccb = (PciCfgSccb *)VAR_0;",
"S390PCIBusDevice *pbdev = s390_pci_find_dev_by_fid(be32_to_cpu(psccb->aid));",
"uint16_t rc;",
"if (be16_to_cpu(VAR_0->h.length) < 16) {",
"rc = SCLP_RC_INSUFFICIENT_SCCB_LENGTH;",
"goto out;",
"}",
"if (pbdev) {",
"if (pb... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,... |
323 | static BlockJob *find_block_job(const char *device)
{
BlockDriverState *bs;
bs = bdrv_find(device);
if (!bs || !bs->job) {
return NULL;
}
return bs->job;
}
| false | qemu | 3d948cdf3760b52238038626a7ffa7d30913060b | static BlockJob *find_block_job(const char *device)
{
BlockDriverState *bs;
bs = bdrv_find(device);
if (!bs || !bs->job) {
return NULL;
}
return bs->job;
}
| {
"code": [],
"line_no": []
} | static BlockJob *FUNC_0(const char *device)
{
BlockDriverState *bs;
bs = bdrv_find(device);
if (!bs || !bs->job) {
return NULL;
}
return bs->job;
}
| [
"static BlockJob *FUNC_0(const char *device)\n{",
"BlockDriverState *bs;",
"bs = bdrv_find(device);",
"if (!bs || !bs->job) {",
"return NULL;",
"}",
"return bs->job;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
324 | static void usb_host_realize(USBDevice *udev, Error **errp)
{
USBHostDevice *s = USB_HOST_DEVICE(udev);
if (s->match.vendor_id > 0xffff) {
error_setg(errp, "vendorid out of range");
return;
}
if (s->match.product_id > 0xffff) {
error_setg(errp, "productid out of range")... | false | qemu | e058fa2dd599ccc780d334558be9c1d155222b80 | static void usb_host_realize(USBDevice *udev, Error **errp)
{
USBHostDevice *s = USB_HOST_DEVICE(udev);
if (s->match.vendor_id > 0xffff) {
error_setg(errp, "vendorid out of range");
return;
}
if (s->match.product_id > 0xffff) {
error_setg(errp, "productid out of range")... | {
"code": [],
"line_no": []
} | static void FUNC_0(USBDevice *VAR_0, Error **VAR_1)
{
USBHostDevice *s = USB_HOST_DEVICE(VAR_0);
if (s->match.vendor_id > 0xffff) {
error_setg(VAR_1, "vendorid out of range");
return;
}
if (s->match.product_id > 0xffff) {
error_setg(VAR_1, "productid out of range");
... | [
"static void FUNC_0(USBDevice *VAR_0, Error **VAR_1)\n{",
"USBHostDevice *s = USB_HOST_DEVICE(VAR_0);",
"if (s->match.vendor_id > 0xffff) {",
"error_setg(VAR_1, \"vendorid out of range\");",
"return;",
"}",
"if (s->match.product_id > 0xffff) {",
"error_setg(VAR_1, \"productid out of range\");",
"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
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47... |
326 | static void rtas_int_off(sPAPREnvironment *spapr, uint32_t token,
uint32_t nargs, target_ulong args,
uint32_t nret, target_ulong rets)
{
struct ics_state *ics = spapr->icp->ics;
uint32_t nr;
if ((nargs != 1) || (nret != 1)) {
rtas_st(rets, 0... | false | qemu | 210b580b106fa798149e28aa13c66b325a43204e | static void rtas_int_off(sPAPREnvironment *spapr, uint32_t token,
uint32_t nargs, target_ulong args,
uint32_t nret, target_ulong rets)
{
struct ics_state *ics = spapr->icp->ics;
uint32_t nr;
if ((nargs != 1) || (nret != 1)) {
rtas_st(rets, 0... | {
"code": [],
"line_no": []
} | static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1,
uint32_t VAR_2, target_ulong VAR_3,
uint32_t VAR_4, target_ulong VAR_5)
{
struct ics_state *VAR_6 = VAR_0->icp->VAR_6;
uint32_t nr;
if ((VAR_2 != 1) || (VAR_4 != 1)) {
rtas_st(VAR_5... | [
"static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1,\nuint32_t VAR_2, target_ulong VAR_3,\nuint32_t VAR_4, target_ulong VAR_5)\n{",
"struct ics_state *VAR_6 = VAR_0->icp->VAR_6;",
"uint32_t nr;",
"if ((VAR_2 != 1) || (VAR_4 != 1)) {",
"rtas_st(VAR_5, 0, -3);",
"return;",
"}",
"nr = rtas_ld(VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39,
41
],
[
45
],
[
47
]
] |
327 | static void filter_mb_mbaff_edgecv( H264Context *h, uint8_t *pix, int stride, int16_t bS[7], int bsi, int qp ) {
int index_a = qp + h->slice_alpha_c0_offset;
int alpha = alpha_table[index_a];
int beta = beta_table[qp + h->slice_beta_offset];
if (alpha ==0 || beta == 0) return;
if( bS[0] < 4 ... | false | FFmpeg | 44ca80df3445a59bc065924d8c6110fa10367d01 | static void filter_mb_mbaff_edgecv( H264Context *h, uint8_t *pix, int stride, int16_t bS[7], int bsi, int qp ) {
int index_a = qp + h->slice_alpha_c0_offset;
int alpha = alpha_table[index_a];
int beta = beta_table[qp + h->slice_beta_offset];
if (alpha ==0 || beta == 0) return;
if( bS[0] < 4 ... | {
"code": [],
"line_no": []
} | static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[7], int VAR_4, int VAR_5 ) {
int VAR_6 = VAR_5 + VAR_0->slice_alpha_c0_offset;
int VAR_7 = alpha_table[VAR_6];
int VAR_8 = beta_table[VAR_5 + VAR_0->slice_beta_offset];
if (VAR_7 ==0 || VAR_8 == 0) return;
if( V... | [
"static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[7], int VAR_4, int VAR_5 ) {",
"int VAR_6 = VAR_5 + VAR_0->slice_alpha_c0_offset;",
"int VAR_7 = alpha_table[VAR_6];",
"int VAR_8 = beta_table[VAR_5 + VAR_0->slice_beta_offset];",
"if (VAR_7 ==0 || VAR_8 == 0) return;",
"if... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
328 | static uint32_t gic_dist_readb(void *opaque, target_phys_addr_t offset)
{
GICState *s = (GICState *)opaque;
uint32_t res;
int irq;
int i;
int cpu;
int cm;
int mask;
cpu = gic_get_current_cpu(s);
cm = 1 << cpu;
if (offset < 0x100) {
if (offset == 0)
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint32_t gic_dist_readb(void *opaque, target_phys_addr_t offset)
{
GICState *s = (GICState *)opaque;
uint32_t res;
int irq;
int i;
int cpu;
int cm;
int mask;
cpu = gic_get_current_cpu(s);
cm = 1 << cpu;
if (offset < 0x100) {
if (offset == 0)
... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset)
{
GICState *s = (GICState *)opaque;
uint32_t res;
int VAR_0;
int VAR_1;
int VAR_2;
int VAR_3;
int VAR_4;
VAR_2 = gic_get_current_cpu(s);
VAR_3 = 1 << VAR_2;
if (offset < 0x100) {
if (offset == 0... | [
"static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset)\n{",
"GICState *s = (GICState *)opaque;",
"uint32_t res;",
"int VAR_0;",
"int VAR_1;",
"int VAR_2;",
"int VAR_3;",
"int VAR_4;",
"VAR_2 = gic_get_current_cpu(s);",
"VAR_3 = 1 << VAR_2;",
"if (offset < 0x100) {",
"if (offset == 0)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31,
33
],
[
35,
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[... |
329 | static void qmp_serialize(void *native_in, void **datap,
VisitorFunc visit, Error **errp)
{
QmpSerializeData *d = g_malloc0(sizeof(*d));
d->qov = qmp_output_visitor_new(&d->obj);
visit(d->qov, &native_in, errp);
*datap = d;
}
| false | qemu | 7d5e199ade76c53ec316ab6779800581bb47c50a | static void qmp_serialize(void *native_in, void **datap,
VisitorFunc visit, Error **errp)
{
QmpSerializeData *d = g_malloc0(sizeof(*d));
d->qov = qmp_output_visitor_new(&d->obj);
visit(d->qov, &native_in, errp);
*datap = d;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, void **VAR_1,
VisitorFunc VAR_2, Error **VAR_3)
{
QmpSerializeData *d = g_malloc0(sizeof(*d));
d->qov = qmp_output_visitor_new(&d->obj);
VAR_2(d->qov, &VAR_0, VAR_3);
*VAR_1 = d;
}
| [
"static void FUNC_0(void *VAR_0, void **VAR_1,\nVisitorFunc VAR_2, Error **VAR_3)\n{",
"QmpSerializeData *d = g_malloc0(sizeof(*d));",
"d->qov = qmp_output_visitor_new(&d->obj);",
"VAR_2(d->qov, &VAR_0, VAR_3);",
"*VAR_1 = d;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
330 | static void tcg_target_init(TCGContext *s)
{
tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffffffff);
tcg_regset_set32(tcg_target_call_clobber_regs, 0,
(1 << TCG_REG_R0) |
#ifdef _CALL_DARWIN
(1 << TCG_REG_R2) |
#endif
(1 <<... | true | qemu | 24f50d7ea5896a30b0e78f68884586bb8b40ff97 | static void tcg_target_init(TCGContext *s)
{
tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffffffff);
tcg_regset_set32(tcg_target_call_clobber_regs, 0,
(1 << TCG_REG_R0) |
#ifdef _CALL_DARWIN
(1 << TCG_REG_R2) |
#endif
(1 <<... | {
"code": [
"#ifdef _CALL_DARWIN",
"#ifdef _CALL_DARWIN",
"#ifndef _CALL_DARWIN",
"#ifdef _CALL_DARWIN",
"#ifdef _CALL_DARWIN",
"#ifndef _CALL_DARWIN"
],
"line_no": [
11,
11,
47,
11,
11,
47
]
} | static void FUNC_0(TCGContext *VAR_0)
{
tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffffffff);
tcg_regset_set32(tcg_target_call_clobber_regs, 0,
(1 << TCG_REG_R0) |
#ifdef _CALL_DARWIN
(1 << TCG_REG_R2) |
#endif
(1 << TCG_... | [
"static void FUNC_0(TCGContext *VAR_0)\n{",
"tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffffffff);",
"tcg_regset_set32(tcg_target_call_clobber_regs, 0,\n(1 << TCG_REG_R0) |\n#ifdef _CALL_DARWIN\n(1 << TCG_REG_R2) |\n#endif\n(1 << TCG_REG_R3) |\n(1 << TCG_REG_R4) |\n(1 << TCG_REG_R5) |\n(1 <<... | [
0,
0,
1,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11,
13,
15,
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37
],
[
41
],
[
43
],
[
45
],
[
47,
49
],
[
51,
53,
55
],
[
57,
61
],
[
63
]
] |
331 | static void emulate_spapr_hypercall(PPCVirtualHypervisor *vhyp,
PowerPCCPU *cpu)
{
CPUPPCState *env = &cpu->env;
if (msr_pr) {
hcall_dprintf("Hypercall made with MSR[PR]=1\n");
env->gpr[3] = H_PRIVILEGE;
} else {
env->gpr[3] = spapr_hypercall(cpu, ... | true | qemu | 8d04fb55dec381bc5105cb47f29d918e579e8cbd | static void emulate_spapr_hypercall(PPCVirtualHypervisor *vhyp,
PowerPCCPU *cpu)
{
CPUPPCState *env = &cpu->env;
if (msr_pr) {
hcall_dprintf("Hypercall made with MSR[PR]=1\n");
env->gpr[3] = H_PRIVILEGE;
} else {
env->gpr[3] = spapr_hypercall(cpu, ... | {
"code": [
" } else {"
],
"line_no": [
8
]
} | static void FUNC_0(PPCVirtualHypervisor *VAR_0,
PowerPCCPU *VAR_1)
{
CPUPPCState *env = &VAR_1->env;
if (msr_pr) {
hcall_dprintf("Hypercall made with MSR[PR]=1\n");
env->gpr[3] = H_PRIVILEGE;
} else {
env->gpr[3] = spapr_hypercall(VAR_1, env->gpr[3... | [
"static void FUNC_0(PPCVirtualHypervisor *VAR_0,\nPowerPCCPU *VAR_1)\n{",
"CPUPPCState *env = &VAR_1->env;",
"if (msr_pr) {",
"hcall_dprintf(\"Hypercall made with MSR[PR]=1\\n\");",
"env->gpr[3] = H_PRIVILEGE;",
"} else {",
"env->gpr[3] = spapr_hypercall(VAR_1, env->gpr[3], &env->gpr[4]);",
"}",
"}"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
]
] |
332 | test_opts_range_unvisited(void)
{
intList *list = NULL;
intList *tail;
QemuOpts *opts;
Visitor *v;
opts = qemu_opts_parse(qemu_find_opts("userdef"), "ilist=0-2", false,
&error_abort);
v = opts_visitor_new(opts);
visit_start_struct(v, NULL, NULL, 0, &... | true | qemu | 21f88d021d0d2b4ecee8f6cd6ca63a943a3ce71d | test_opts_range_unvisited(void)
{
intList *list = NULL;
intList *tail;
QemuOpts *opts;
Visitor *v;
opts = qemu_opts_parse(qemu_find_opts("userdef"), "ilist=0-2", false,
&error_abort);
v = opts_visitor_new(opts);
visit_start_struct(v, NULL, NULL, 0, &... | {
"code": [
" visit_check_struct(v, &error_abort);"
],
"line_no": [
59
]
} | FUNC_0(void)
{
intList *list = NULL;
intList *tail;
QemuOpts *opts;
Visitor *v;
opts = qemu_opts_parse(qemu_find_opts("userdef"), "ilist=0-2", false,
&error_abort);
v = opts_visitor_new(opts);
visit_start_struct(v, NULL, NULL, 0, &error_abort);
... | [
"FUNC_0(void)\n{",
"intList *list = NULL;",
"intList *tail;",
"QemuOpts *opts;",
"Visitor *v;",
"opts = qemu_opts_parse(qemu_find_opts(\"userdef\"), \"ilist=0-2\", false,\n&error_abort);",
"v = opts_visitor_new(opts);",
"visit_start_struct(v, NULL, NULL, 0, &error_abort);",
"visit_start_list(v, \"il... | [
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
],
[
15,
17
],
[
21
],
[
25
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
333 | static int decode_subframe(WMAProDecodeCtx *s)
{
int offset = s->samples_per_frame;
int subframe_len = s->samples_per_frame;
int i;
int total_samples = s->samples_per_frame * s->avctx->channels;
int transmit_coeffs = 0;
int cur_subwoofer_cutoff;
s->subframe_offset = get_bits_coun... | true | FFmpeg | 38229362529ed1619d8ebcc81ecde85b23b45895 | static int decode_subframe(WMAProDecodeCtx *s)
{
int offset = s->samples_per_frame;
int subframe_len = s->samples_per_frame;
int i;
int total_samples = s->samples_per_frame * s->avctx->channels;
int transmit_coeffs = 0;
int cur_subwoofer_cutoff;
s->subframe_offset = get_bits_coun... | {
"code": [
" s->channel[c].coeffs = &s->channel[c].out[(s->samples_per_frame >> 1)",
" + offset];",
" if (num_vec_coeffs > WMAPRO_BLOCK_MAX_SIZE) {"
],
"line_no": [
129,
131,
233
]
} | static int FUNC_0(WMAProDecodeCtx *VAR_0)
{
int VAR_1 = VAR_0->samples_per_frame;
int VAR_2 = VAR_0->samples_per_frame;
int VAR_3;
int VAR_4 = VAR_0->samples_per_frame * VAR_0->avctx->channels;
int VAR_5 = 0;
int VAR_6;
VAR_0->subframe_offset = get_bits_count(&VAR_0->gb);
... | [
"static int FUNC_0(WMAProDecodeCtx *VAR_0)\n{",
"int VAR_1 = VAR_0->samples_per_frame;",
"int VAR_2 = VAR_0->samples_per_frame;",
"int VAR_3;",
"int VAR_4 = VAR_0->samples_per_frame * VAR_0->avctx->channels;",
"int VAR_5 = 0;",
"int VAR_6;",
"VAR_0->subframe_offset = get_bits_count(&VAR_0->gb);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
49,
51
],
[
57
],
[
59
],
[
61
... |
334 | static int find_vdi_name(BDRVSheepdogState *s, char *filename, uint32_t snapid,
char *tag, uint32_t *vid, int for_snapshot)
{
int ret, fd;
SheepdogVdiReq hdr;
SheepdogVdiRsp *rsp = (SheepdogVdiRsp *)&hdr;
unsigned int wlen, rlen = 0;
char buf[SD_MAX_VDI_LEN + SD_MAX_V... | true | qemu | 3178e2755ec5a7fb1afe583fb6ac2622c2c42184 | static int find_vdi_name(BDRVSheepdogState *s, char *filename, uint32_t snapid,
char *tag, uint32_t *vid, int for_snapshot)
{
int ret, fd;
SheepdogVdiReq hdr;
SheepdogVdiRsp *rsp = (SheepdogVdiRsp *)&hdr;
unsigned int wlen, rlen = 0;
char buf[SD_MAX_VDI_LEN + SD_MAX_V... | {
"code": [
" memset(buf, 0, sizeof(buf));",
" strncpy(buf, filename, SD_MAX_VDI_LEN);"
],
"line_no": [
29,
31
]
} | static int FUNC_0(BDRVSheepdogState *VAR_0, char *VAR_1, uint32_t VAR_2,
char *VAR_3, uint32_t *VAR_4, int VAR_5)
{
int VAR_6, VAR_7;
SheepdogVdiReq hdr;
SheepdogVdiRsp *rsp = (SheepdogVdiRsp *)&hdr;
unsigned int VAR_8, VAR_9 = 0;
char VAR_10[SD_MAX_VDI_LEN + SD_MAX_V... | [
"static int FUNC_0(BDRVSheepdogState *VAR_0, char *VAR_1, uint32_t VAR_2,\nchar *VAR_3, uint32_t *VAR_4, int VAR_5)\n{",
"int VAR_6, VAR_7;",
"SheepdogVdiReq hdr;",
"SheepdogVdiRsp *rsp = (SheepdogVdiRsp *)&hdr;",
"unsigned int VAR_8, VAR_9 = 0;",
"char VAR_10[SD_MAX_VDI_LEN + SD_MAX_VDI_TAG_LEN];",
"VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
335 | static void setup_frame(int sig, struct target_sigaction *ka,
target_sigset_t *set, CPUX86State *env)
{
abi_ulong frame_addr;
struct sigframe *frame;
int i, err = 0;
frame_addr = get_sigframe(ka, env, sizeof(*frame));
if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0))
goto give_sigsegv;
... | true | qemu | 7df2fa3623dfe8a082bba54ae87750d5030814c1 | static void setup_frame(int sig, struct target_sigaction *ka,
target_sigset_t *set, CPUX86State *env)
{
abi_ulong frame_addr;
struct sigframe *frame;
int i, err = 0;
frame_addr = get_sigframe(ka, env, sizeof(*frame));
if (!lock_user_struct(VERIFY_WRITE, frame, frame_addr, 0))
goto give_sigsegv;
... | {
"code": [
"\tint i, err = 0;",
"\tif (err)",
"\t\tgoto give_sigsegv;",
"\tif (err)",
"\t\tgoto give_sigsegv;",
" for(i = 1; i < TARGET_NSIG_WORDS; i++) {",
" if (__put_user(set->sig[i], &frame->extramask[i - 1]))",
" goto give_sigsegv;",
"\tif (er... | static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1,
target_sigset_t *VAR_2, CPUX86State *VAR_3)
{
abi_ulong frame_addr;
struct sigframe *VAR_4;
int VAR_5, VAR_6 = 0;
frame_addr = get_sigframe(VAR_1, VAR_3, sizeof(*VAR_4));
if (!lock_user_struct(VERIFY_WRITE, VAR_4, frame_addr, 0))
goto g... | [
"static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1,\ntarget_sigset_t *VAR_2, CPUX86State *VAR_3)\n{",
"abi_ulong frame_addr;",
"struct sigframe *VAR_4;",
"int VAR_5, VAR_6 = 0;",
"frame_addr = get_sigframe(VAR_1, VAR_3, sizeof(*VAR_4));",
"if (!lock_user_struct(VERIFY_WRITE, VAR_4, frame_addr, ... | [
0,
0,
0,
1,
0,
1,
0,
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19,
21
],
[
25,
27
],
[
29,
31
],
[
35,
37
],
[
39,
41
],
[
45
],
[
47,
49
],
[
51
],
[
59
],
[
61
],
[
63
],
[... |
336 | static void ahci_pci_enable(AHCIQState *ahci)
{
uint8_t reg;
start_ahci_device(ahci);
switch (ahci->fingerprint) {
case AHCI_INTEL_ICH9:
/* ICH9 has a register at PCI 0x92 that
* acts as a master port enabler mask. */
reg = qpci_config_readb(ahci->dev, 0x92);
... | true | qemu | 9a75b0a037e3a8030992244353f17b62f6daf2ab | static void ahci_pci_enable(AHCIQState *ahci)
{
uint8_t reg;
start_ahci_device(ahci);
switch (ahci->fingerprint) {
case AHCI_INTEL_ICH9:
reg = qpci_config_readb(ahci->dev, 0x92);
reg |= 0x3F;
qpci_config_writeb(ahci->dev, 0x92, reg);
ASS... | {
"code": [
" case AHCI_INTEL_ICH9:",
" break;",
"static void ahci_pci_enable(AHCIQState *ahci)",
" uint8_t reg;",
" start_ahci_device(ahci);",
" switch (ahci->fingerprint) {",
" case AHCI_INTEL_ICH9:",
" reg = qpci_config_readb(ahci->dev, 0x92);",
" ... | static void FUNC_0(AHCIQState *VAR_0)
{
uint8_t reg;
start_ahci_device(VAR_0);
switch (VAR_0->fingerprint) {
case AHCI_INTEL_ICH9:
reg = qpci_config_readb(VAR_0->dev, 0x92);
reg |= 0x3F;
qpci_config_writeb(VAR_0->dev, 0x92, reg);
ASSERT_... | [
"static void FUNC_0(AHCIQState *VAR_0)\n{",
"uint8_t reg;",
"start_ahci_device(VAR_0);",
"switch (VAR_0->fingerprint) {",
"case AHCI_INTEL_ICH9:\nreg = qpci_config_readb(VAR_0->dev, 0x92);",
"reg |= 0x3F;",
"qpci_config_writeb(VAR_0->dev, 0x92, reg);",
"ASSERT_BIT_SET(qpci_config_readb(VAR_0->dev, 0x9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15,
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
]
] |
337 | main(
int argc,
char *argv[]
) {
GMainLoop *loop;
GIOChannel *channel_stdin;
char *qemu_host;
char *qemu_port;
VSCMsgHeader mhHeader;
VCardEmulOptions *command_line_options = NULL;
char *cert_names[MAX_CERTS];
char *emul_args = NULL;
int cert_count = 0;
i... | true | qemu | 69fded480e335ecfe877e2c37de0eff265fced12 | main(
int argc,
char *argv[]
) {
GMainLoop *loop;
GIOChannel *channel_stdin;
char *qemu_host;
char *qemu_port;
VSCMsgHeader mhHeader;
VCardEmulOptions *command_line_options = NULL;
char *cert_names[MAX_CERTS];
char *emul_args = NULL;
int cert_count = 0;
i... | {
"code": [
" VSCMsgHeader mhHeader;",
" send_msg(VSC_Init, mhHeader.reader_id, &init, sizeof(init));"
],
"line_no": [
17,
235
]
} | FUNC_0(
int VAR_0,
char *VAR_1[]
) {
GMainLoop *loop;
GIOChannel *channel_stdin;
char *VAR_2;
char *VAR_3;
VSCMsgHeader mhHeader;
VCardEmulOptions *command_line_options = NULL;
char *VAR_4[MAX_CERTS];
char *VAR_5 = NULL;
int VAR_6 = 0;
int VAR_7, VAR_8;
... | [
"FUNC_0(\nint VAR_0,\nchar *VAR_1[]\n) {",
"GMainLoop *loop;",
"GIOChannel *channel_stdin;",
"char *VAR_2;",
"char *VAR_3;",
"VSCMsgHeader mhHeader;",
"VCardEmulOptions *command_line_options = NULL;",
"char *VAR_4[MAX_CERTS];",
"char *VAR_5 = NULL;",
"int VAR_6 = 0;",
"int VAR_7, VAR_8;",
"if ... | [
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,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[
51
],
[
53
... |
339 | static VFIOINTp *vfio_init_intp(VFIODevice *vbasedev,
struct vfio_irq_info info)
{
int ret;
VFIOPlatformDevice *vdev =
container_of(vbasedev, VFIOPlatformDevice, vbasedev);
SysBusDevice *sbdev = SYS_BUS_DEVICE(vdev);
VFIOINTp *intp;
intp = g_malloc0(... | true | qemu | a5b39cd3f647eaaaef5b648beda5cb2f387418c0 | static VFIOINTp *vfio_init_intp(VFIODevice *vbasedev,
struct vfio_irq_info info)
{
int ret;
VFIOPlatformDevice *vdev =
container_of(vbasedev, VFIOPlatformDevice, vbasedev);
SysBusDevice *sbdev = SYS_BUS_DEVICE(vdev);
VFIOINTp *intp;
intp = g_malloc0(... | {
"code": [
" intp->unmask = g_malloc0(sizeof(EventNotifier));",
" ret = event_notifier_init(intp->unmask, 0);",
" if (ret) {",
" g_free(intp->interrupt);",
" g_free(intp->unmask);",
" g_free(intp);",
" error_report(\"vfio: Error: resamplefd event_notif... | static VFIOINTp *FUNC_0(VFIODevice *vbasedev,
struct vfio_irq_info info)
{
int VAR_0;
VFIOPlatformDevice *vdev =
container_of(vbasedev, VFIOPlatformDevice, vbasedev);
SysBusDevice *sbdev = SYS_BUS_DEVICE(vdev);
VFIOINTp *intp;
intp = g_malloc0(sizeof... | [
"static VFIOINTp *FUNC_0(VFIODevice *vbasedev,\nstruct vfio_irq_info info)\n{",
"int VAR_0;",
"VFIOPlatformDevice *vdev =\ncontainer_of(vbasedev, VFIOPlatformDevice, vbasedev);",
"SysBusDevice *sbdev = SYS_BUS_DEVICE(vdev);",
"VFIOINTp *intp;",
"intp = g_malloc0(sizeof(*intp));",
"intp->vdev = vdev;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
1,
0,
1,
1,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
340 | void OPPROTO op_udivx_T1_T0(void)
{
T0 /= T1;
FORCE_RET();
| true | qemu | 14a1120e5c8c4c29441141b4657f91e04d10fac0 | void OPPROTO op_udivx_T1_T0(void)
{
T0 /= T1;
FORCE_RET();
| {
"code": [],
"line_no": []
} | void VAR_0 op_udivx_T1_T0(void)
{
T0 /= T1;
FORCE_RET();
| [
"void VAR_0 op_udivx_T1_T0(void)\n{",
"T0 /= T1;",
"FORCE_RET();"
] | [
0,
0,
0
] | [
[
1,
3
],
[
8
],
[
10
]
] |
341 | void address_space_init(AddressSpace *as, MemoryRegion *root)
{
memory_region_transaction_begin();
as->root = root;
as->current_map = g_new(FlatView, 1);
flatview_init(as->current_map);
QTAILQ_INSERT_TAIL(&address_spaces, as, address_spaces_link);
as->name = NULL;
memory_region_tra... | true | qemu | 4c19eb721a5929f2277d33a98bb59963c58c2e3b | void address_space_init(AddressSpace *as, MemoryRegion *root)
{
memory_region_transaction_begin();
as->root = root;
as->current_map = g_new(FlatView, 1);
flatview_init(as->current_map);
QTAILQ_INSERT_TAIL(&address_spaces, as, address_spaces_link);
as->name = NULL;
memory_region_tra... | {
"code": [],
"line_no": []
} | void FUNC_0(AddressSpace *VAR_0, MemoryRegion *VAR_1)
{
memory_region_transaction_begin();
VAR_0->VAR_1 = VAR_1;
VAR_0->current_map = g_new(FlatView, 1);
flatview_init(VAR_0->current_map);
QTAILQ_INSERT_TAIL(&address_spaces, VAR_0, address_spaces_link);
VAR_0->name = NULL;
memory_r... | [
"void FUNC_0(AddressSpace *VAR_0, MemoryRegion *VAR_1)\n{",
"memory_region_transaction_begin();",
"VAR_0->VAR_1 = VAR_1;",
"VAR_0->current_map = g_new(FlatView, 1);",
"flatview_init(VAR_0->current_map);",
"QTAILQ_INSERT_TAIL(&address_spaces, VAR_0, address_spaces_link);",
"VAR_0->name = NULL;",
"memor... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
343 | ebml_read_ascii (MatroskaDemuxContext *matroska,
uint32_t *id,
char **str)
{
ByteIOContext *pb = matroska->ctx->pb;
int size, res;
uint64_t rlength;
if ((res = ebml_read_element_id(matroska, id, NULL)) < 0 ||
(res = ebml_read... | true | FFmpeg | ff2c222c379645cb7825b8ddc222142dcaea1677 | ebml_read_ascii (MatroskaDemuxContext *matroska,
uint32_t *id,
char **str)
{
ByteIOContext *pb = matroska->ctx->pb;
int size, res;
uint64_t rlength;
if ((res = ebml_read_element_id(matroska, id, NULL)) < 0 ||
(res = ebml_read... | {
"code": [],
"line_no": []
} | FUNC_0 (MatroskaDemuxContext *VAR_0,
uint32_t *VAR_1,
char **VAR_2)
{
ByteIOContext *pb = VAR_0->ctx->pb;
int VAR_3, VAR_4;
uint64_t rlength;
if ((VAR_4 = ebml_read_element_id(VAR_0, VAR_1, NULL)) < 0 ||
(VAR_4 = ebml_read_el... | [
"FUNC_0 (MatroskaDemuxContext *VAR_0,\nuint32_t *VAR_1,\nchar **VAR_2)\n{",
"ByteIOContext *pb = VAR_0->ctx->pb;",
"int VAR_3, VAR_4;",
"uint64_t rlength;",
"if ((VAR_4 = ebml_read_element_id(VAR_0, VAR_1, NULL)) < 0 ||\n(VAR_4 = ebml_read_element_length(VAR_0, &rlength)) < 0)\nre... | [
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
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
48
],
[
50
],
[
52
],
[
56
],
[... |
344 | static void memory_dump(Monitor *mon, int count, int format, int wsize,
target_phys_addr_t addr, int is_physical)
{
CPUState *env;
int l, line_size, i, max_digits, len;
uint8_t buf[16];
uint64_t v;
if (format == 'i') {
int flags;
flags = 0;
... | true | qemu | 09b9418c6d085a0728372aa760ebd10128a020b1 | static void memory_dump(Monitor *mon, int count, int format, int wsize,
target_phys_addr_t addr, int is_physical)
{
CPUState *env;
int l, line_size, i, max_digits, len;
uint8_t buf[16];
uint64_t v;
if (format == 'i') {
int flags;
flags = 0;
... | {
"code": [
" if (!env && !is_physical)",
" if (!env)",
" break;"
],
"line_no": [
25,
149,
151
]
} | static void FUNC_0(Monitor *VAR_0, int VAR_1, int VAR_2, int VAR_3,
target_phys_addr_t VAR_4, int VAR_5)
{
CPUState *env;
int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;
uint8_t buf[16];
uint64_t v;
if (VAR_2 == 'VAR_8') {
int VAR_11;
VAR_11 = 0;
e... | [
"static void FUNC_0(Monitor *VAR_0, int VAR_1, int VAR_2, int VAR_3,\ntarget_phys_addr_t VAR_4, int VAR_5)\n{",
"CPUState *env;",
"int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;",
"uint8_t buf[16];",
"uint64_t v;",
"if (VAR_2 == 'VAR_8') {",
"int VAR_11;",
"VAR_11 = 0;",
"env = mon_get_cpu();",
"if (!env... | [
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47,
49,... |
347 | RGB_FUNCTIONS(rgba32)
#undef RGB_IN
#undef RGB_OUT
#undef BPP
static void rgb24_to_rgb565(AVPicture *dst, AVPicture *src,
int width, int height)
{
const unsigned char *p;
unsigned char *q;
int r, g, b, dst_wrap, src_wrap;
int x, y;
p = src->data[0];
... | false | FFmpeg | 7e7e59409294af9caa63808e56c5cc824c98b4fc | RGB_FUNCTIONS(rgba32)
#undef RGB_IN
#undef RGB_OUT
#undef BPP
static void rgb24_to_rgb565(AVPicture *dst, AVPicture *src,
int width, int height)
{
const unsigned char *p;
unsigned char *q;
int r, g, b, dst_wrap, src_wrap;
int x, y;
p = src->data[0];
... | {
"code": [],
"line_no": []
} | FUNC_0(VAR_0)
#undef RGB_IN
#undef RGB_OUT
#undef BPP
static void rgb24_to_rgb565(AVPicture *dst, AVPicture *src,
int width, int height)
{
const unsigned char *VAR_1;
unsigned char *VAR_2;
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;
int VAR_8, VAR_9;
VAR_1 =... | [
"FUNC_0(VAR_0)\n#undef RGB_IN\n#undef RGB_OUT\n#undef BPP\nstatic void rgb24_to_rgb565(AVPicture *dst, AVPicture *src,\nint width, int height)\n{",
"const unsigned char *VAR_1;",
"unsigned char *VAR_2;",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;",
"int VAR_8, VAR_9;",
"VAR_1 = src->data[0];",
"VAR_7 = src... | [
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,
15,
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55,
57
],
[
59
],
[
61... |
348 | static void avc_luma_mid_and_aver_dst_16x16_msa(const uint8_t *src,
int32_t src_stride,
uint8_t *dst,
int32_t dst_stride)
{
avc_luma_mid_and_aver_dst_8w_msa(src, src_s... | false | FFmpeg | 1181d93231e9b807965724587d363c1cfd5a1d0d | static void avc_luma_mid_and_aver_dst_16x16_msa(const uint8_t *src,
int32_t src_stride,
uint8_t *dst,
int32_t dst_stride)
{
avc_luma_mid_and_aver_dst_8w_msa(src, src_s... | {
"code": [],
"line_no": []
} | static void FUNC_0(const uint8_t *VAR_0,
int32_t VAR_1,
uint8_t *VAR_2,
int32_t VAR_3)
{
avc_luma_mid_and_aver_dst_8w_msa(VAR_0, VAR_1, VAR_2, VAR_3, 16);
avc_lum... | [
"static void FUNC_0(const uint8_t *VAR_0,\nint32_t VAR_1,\nuint8_t *VAR_2,\nint32_t VAR_3)\n{",
"avc_luma_mid_and_aver_dst_8w_msa(VAR_0, VAR_1, VAR_2, VAR_3, 16);",
"avc_luma_mid_and_aver_dst_8w_msa(VAR_0 + 8, VAR_1, VAR_2 + 8, VAR_3,\n16);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13,
15
],
[
17
]
] |
349 | void MPV_common_init_armv4l(MpegEncContext *s)
{
int i;
const int idct_algo= s->avctx->idct_algo;
ff_put_pixels_clamped = s->avctx->dsp.put_pixels_clamped;
ff_add_pixels_clamped = s->avctx->dsp.put_pixels_clamped;
if(idct_algo==FF_IDCT_AUTO || idct_algo==FF_IDCT_ARM){
s->idct_put=... | false | FFmpeg | 594026277250fecf0ba34c9e1498921936c6bfed | void MPV_common_init_armv4l(MpegEncContext *s)
{
int i;
const int idct_algo= s->avctx->idct_algo;
ff_put_pixels_clamped = s->avctx->dsp.put_pixels_clamped;
ff_add_pixels_clamped = s->avctx->dsp.put_pixels_clamped;
if(idct_algo==FF_IDCT_AUTO || idct_algo==FF_IDCT_ARM){
s->idct_put=... | {
"code": [],
"line_no": []
} | void FUNC_0(MpegEncContext *VAR_0)
{
int VAR_1;
const int VAR_2= VAR_0->avctx->VAR_2;
ff_put_pixels_clamped = VAR_0->avctx->dsp.put_pixels_clamped;
ff_add_pixels_clamped = VAR_0->avctx->dsp.put_pixels_clamped;
if(VAR_2==FF_IDCT_AUTO || VAR_2==FF_IDCT_ARM){
VAR_0->idct_put= arm_idc... | [
"void FUNC_0(MpegEncContext *VAR_0)\n{",
"int VAR_1;",
"const int VAR_2= VAR_0->avctx->VAR_2;",
"ff_put_pixels_clamped = VAR_0->avctx->dsp.put_pixels_clamped;",
"ff_add_pixels_clamped = VAR_0->avctx->dsp.put_pixels_clamped;",
"if(VAR_2==FF_IDCT_AUTO || VAR_2==FF_IDCT_ARM){",
"VAR_0->idct_put= arm_idct_p... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
350 | static int sbr_hf_calc_npatches(AACContext *ac, SpectralBandReplication *sbr)
{
int i, k, sb = 0;
int msb = sbr->k[0];
int usb = sbr->kx[1];
int goal_sb = ((1000 << 11) + (sbr->sample_rate >> 1)) / sbr->sample_rate;
sbr->num_patches = 0;
if (goal_sb < sbr->kx[1] + sbr->m[1]) {
... | false | FFmpeg | c2340831b8e9032716acb0aab4893d3cc500213a | static int sbr_hf_calc_npatches(AACContext *ac, SpectralBandReplication *sbr)
{
int i, k, sb = 0;
int msb = sbr->k[0];
int usb = sbr->kx[1];
int goal_sb = ((1000 << 11) + (sbr->sample_rate >> 1)) / sbr->sample_rate;
sbr->num_patches = 0;
if (goal_sb < sbr->kx[1] + sbr->m[1]) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AACContext *VAR_0, SpectralBandReplication *VAR_1)
{
int VAR_2, VAR_3, VAR_4 = 0;
int VAR_5 = VAR_1->VAR_3[0];
int VAR_6 = VAR_1->kx[1];
int VAR_7 = ((1000 << 11) + (VAR_1->sample_rate >> 1)) / VAR_1->sample_rate;
VAR_1->num_patches = 0;
if (VAR_7 < VAR_1->kx[1] + VA... | [
"static int FUNC_0(AACContext *VAR_0, SpectralBandReplication *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4 = 0;",
"int VAR_5 = VAR_1->VAR_3[0];",
"int VAR_6 = VAR_1->kx[1];",
"int VAR_7 = ((1000 << 11) + (VAR_1->sample_rate >> 1)) / VAR_1->sample_rate;",
"VAR_1->num_patches = 0;",
"if (VAR_7 < VAR_1->kx[1] + V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
51
],
[
53
],
[
55
],
[
57
... |
351 | static void qdm2_fft_decode_tones (QDM2Context *q, int duration, GetBitContext *gb, int b)
{
int channel, stereo, phase, exp;
int local_int_4, local_int_8, stereo_phase, local_int_10;
int local_int_14, stereo_exp, local_int_20, local_int_28;
int n, offset;
local_int_4 = 0;
local_int_... | false | FFmpeg | 14db3af4f26dad8e6ddf2147e96ccc710952ad4d | static void qdm2_fft_decode_tones (QDM2Context *q, int duration, GetBitContext *gb, int b)
{
int channel, stereo, phase, exp;
int local_int_4, local_int_8, stereo_phase, local_int_10;
int local_int_14, stereo_exp, local_int_20, local_int_28;
int n, offset;
local_int_4 = 0;
local_int_... | {
"code": [],
"line_no": []
} | static void FUNC_0 (QDM2Context *VAR_0, int VAR_1, GetBitContext *VAR_2, int VAR_3)
{
int VAR_4, VAR_5, VAR_6, VAR_7;
int VAR_8, VAR_9, VAR_10, VAR_11;
int VAR_12, VAR_13, VAR_14, VAR_15;
int VAR_16, VAR_17;
VAR_8 = 0;
VAR_15 = 0;
VAR_14 = 2;
VAR_9 = (4 - VAR_1);
VAR_1... | [
"static void FUNC_0 (QDM2Context *VAR_0, int VAR_1, GetBitContext *VAR_2, int VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6, VAR_7;",
"int VAR_8, VAR_9, VAR_10, VAR_11;",
"int VAR_12, VAR_13, VAR_14, VAR_15;",
"int VAR_16, VAR_17;",
"VAR_8 = 0;",
"VAR_15 = 0;",
"VAR_14 = 2;",
"VAR_9 = (4 - VAR_1);",
"VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
352 | void ff_rtp_send_h263(AVFormatContext *s1, const uint8_t *buf1, int size)
{
RTPMuxContext *s = s1->priv_data;
int len, max_packet_size;
uint8_t *q;
max_packet_size = s->max_payload_size;
while (size > 0) {
q = s->buf;
if ((buf1[0] == 0) && (buf1[1] == 0)) {
*... | true | FFmpeg | 34056cbba55f0131e8d2698717ab9e86e2da5178 | void ff_rtp_send_h263(AVFormatContext *s1, const uint8_t *buf1, int size)
{
RTPMuxContext *s = s1->priv_data;
int len, max_packet_size;
uint8_t *q;
max_packet_size = s->max_payload_size;
while (size > 0) {
q = s->buf;
if ((buf1[0] == 0) && (buf1[1] == 0)) {
*... | {
"code": [
" if ((buf1[0] == 0) && (buf1[1] == 0)) {"
],
"line_no": [
21
]
} | void FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
RTPMuxContext *s = VAR_0->priv_data;
int VAR_3, VAR_4;
uint8_t *q;
VAR_4 = s->max_payload_size;
while (VAR_2 > 0) {
q = s->buf;
if ((VAR_1[0] == 0) && (VAR_1[1] == 0)) {
*q++ = 0x04;
... | [
"void FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"RTPMuxContext *s = VAR_0->priv_data;",
"int VAR_3, VAR_4;",
"uint8_t *q;",
"VAR_4 = s->max_payload_size;",
"while (VAR_2 > 0) {",
"q = s->buf;",
"if ((VAR_1[0] == 0) && (VAR_1[1] == 0)) {",
"*q++ = 0x04;",
"VAR_1 += 2;",
... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
45
],
[
47
],
[
49
],
[
51
... |
353 | void tcg_gen_callN(void *func, TCGTemp *ret, int nargs, TCGTemp **args)
{
TCGContext *s = tcg_ctx;
int i, real_args, nb_rets, pi;
unsigned sizemask, flags;
TCGHelperInfo *info;
TCGOp *op;
info = g_hash_table_lookup(helper_table, (gpointer)func);
flags = info->flags;
sizemask =... | true | qemu | 15fa08f8451babc88d733bd411d4c94976f9d0f8 | void tcg_gen_callN(void *func, TCGTemp *ret, int nargs, TCGTemp **args)
{
TCGContext *s = tcg_ctx;
int i, real_args, nb_rets, pi;
unsigned sizemask, flags;
TCGHelperInfo *info;
TCGOp *op;
info = g_hash_table_lookup(helper_table, (gpointer)func);
flags = info->flags;
sizemask =... | {
"code": [
"#endif",
" memset(op, 0, offsetof(TCGOp, args));",
" TCGContext *s = tcg_ctx;",
" i = s->gen_next_op_idx;",
" tcg_debug_assert(i < OPC_BUF_SIZE);",
" s->gen_op_buf[0].prev = i;",
" s->gen_next_op_idx = i + 1;",
" op = &s->gen_op_buf[i];",
" mems... | void FUNC_0(void *VAR_0, TCGTemp *VAR_1, int VAR_2, TCGTemp **VAR_3)
{
TCGContext *s = tcg_ctx;
int VAR_4, VAR_5, VAR_6, VAR_7;
unsigned VAR_8, VAR_9;
TCGHelperInfo *info;
TCGOp *op;
info = g_hash_table_lookup(helper_table, (gpointer)VAR_0);
VAR_9 = info->VAR_9;
VAR_8 = info->... | [
"void FUNC_0(void *VAR_0, TCGTemp *VAR_1, int VAR_2, TCGTemp **VAR_3)\n{",
"TCGContext *s = tcg_ctx;",
"int VAR_4, VAR_5, VAR_6, VAR_7;",
"unsigned VAR_8, VAR_9;",
"TCGHelperInfo *info;",
"TCGOp *op;",
"info = g_hash_table_lookup(helper_table, (gpointer)VAR_0);",
"VAR_9 = info->VAR_9;",
"VAR_8 = inf... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25,
27,
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
356 | void block_job_enter(BlockJob *job)
{
if (!block_job_started(job)) {
return;
}
if (job->deferred_to_main_loop) {
return;
}
if (!job->busy) {
bdrv_coroutine_enter(blk_bs(job->blk), job->co);
}
}
| true | qemu | 356f59b8757f47c0aca3e2e4e51d6010f64cade1 | void block_job_enter(BlockJob *job)
{
if (!block_job_started(job)) {
return;
}
if (job->deferred_to_main_loop) {
return;
}
if (!job->busy) {
bdrv_coroutine_enter(blk_bs(job->blk), job->co);
}
}
| {
"code": [
" if (!job->busy) {",
" bdrv_coroutine_enter(blk_bs(job->blk), job->co);"
],
"line_no": [
19,
21
]
} | void FUNC_0(BlockJob *VAR_0)
{
if (!block_job_started(VAR_0)) {
return;
}
if (VAR_0->deferred_to_main_loop) {
return;
}
if (!VAR_0->busy) {
bdrv_coroutine_enter(blk_bs(VAR_0->blk), VAR_0->co);
}
}
| [
"void FUNC_0(BlockJob *VAR_0)\n{",
"if (!block_job_started(VAR_0)) {",
"return;",
"}",
"if (VAR_0->deferred_to_main_loop) {",
"return;",
"}",
"if (!VAR_0->busy) {",
"bdrv_coroutine_enter(blk_bs(VAR_0->blk), VAR_0->co);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
357 | static int vorbis_decode_frame(AVCodecContext *avccontext,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
vorbis_context *vc = avccontext->priv_data ;
GetBitContext *g... | false | FFmpeg | 60aa1a358d9c1c8f891e72246d5dcd897857eca8 | static int vorbis_decode_frame(AVCodecContext *avccontext,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
vorbis_context *vc = avccontext->priv_data ;
GetBitContext *g... | {
"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;
vorbis_context *vc = VAR_0->priv_data ;
GetBitContext *gb = &(vc->gb);
const ... | [
"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;",
"vorbis_context *vc = VAR_0->priv_data ;",
"GetBitContext *gb = &(vc->gb);",
"const float *VAR_6[255];",
"int VAR_7, VAR_8;",
"if (!VAR_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
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23,
25
],
[
29
],
[
33
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
[... |
358 | void qmp_guest_shutdown(bool has_mode, const char *mode, Error **err)
{
UINT shutdown_flag = EWX_FORCE;
slog("guest-shutdown called, mode: %s", mode);
if (!has_mode || strcmp(mode, "powerdown") == 0) {
shutdown_flag |= EWX_POWEROFF;
} else if (strcmp(mode, "halt") == 0) {
shut... | true | qemu | 16f4e8fa737b58b7b0461b33581e43ac06991110 | void qmp_guest_shutdown(bool has_mode, const char *mode, Error **err)
{
UINT shutdown_flag = EWX_FORCE;
slog("guest-shutdown called, mode: %s", mode);
if (!has_mode || strcmp(mode, "powerdown") == 0) {
shutdown_flag |= EWX_POWEROFF;
} else if (strcmp(mode, "halt") == 0) {
shut... | {
"code": [
" slog(\"guest-shutdown failed: %d\", GetLastError());"
],
"line_no": [
53
]
} | void FUNC_0(bool VAR_0, const char *VAR_1, Error **VAR_2)
{
UINT shutdown_flag = EWX_FORCE;
slog("guest-shutdown called, VAR_1: %s", VAR_1);
if (!VAR_0 || strcmp(VAR_1, "powerdown") == 0) {
shutdown_flag |= EWX_POWEROFF;
} else if (strcmp(VAR_1, "halt") == 0) {
shutdown_flag |... | [
"void FUNC_0(bool VAR_0, const char *VAR_1, Error **VAR_2)\n{",
"UINT shutdown_flag = EWX_FORCE;",
"slog(\"guest-shutdown called, VAR_1: %s\", VAR_1);",
"if (!VAR_0 || strcmp(VAR_1, \"powerdown\") == 0) {",
"shutdown_flag |= EWX_POWEROFF;",
"} else if (strcmp(VAR_1, \"halt\") == 0) {",
"shutdown_flag |=... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
... |
359 | void helper_rdmsr(void)
{
uint64_t val;
helper_svm_check_intercept_param(SVM_EXIT_MSR, 0);
switch((uint32_t)ECX) {
case MSR_IA32_SYSENTER_CS:
val = env->sysenter_cs;
case MSR_IA32_SYSENTER_ESP:
val = env->sysenter_esp;
case MSR_IA32_SYSENTER_EIP:
val = env... | true | qemu | 165d9b82eb8c877ee691a7b7bde5930bc2d07037 | void helper_rdmsr(void)
{
uint64_t val;
helper_svm_check_intercept_param(SVM_EXIT_MSR, 0);
switch((uint32_t)ECX) {
case MSR_IA32_SYSENTER_CS:
val = env->sysenter_cs;
case MSR_IA32_SYSENTER_ESP:
val = env->sysenter_esp;
case MSR_IA32_SYSENTER_EIP:
val = env... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
uint64_t val;
helper_svm_check_intercept_param(SVM_EXIT_MSR, 0);
switch((uint32_t)ECX) {
case MSR_IA32_SYSENTER_CS:
val = env->sysenter_cs;
case MSR_IA32_SYSENTER_ESP:
val = env->sysenter_esp;
case MSR_IA32_SYSENTER_EIP:
val = env->syse... | [
"void FUNC_0(void)\n{",
"uint64_t val;",
"helper_svm_check_intercept_param(SVM_EXIT_MSR, 0);",
"switch((uint32_t)ECX) {",
"case MSR_IA32_SYSENTER_CS:\nval = env->sysenter_cs;",
"case MSR_IA32_SYSENTER_ESP:\nval = env->sysenter_esp;",
"case MSR_IA32_SYSENTER_EIP:\nval = env->sysenter_eip;",
"case MSR_I... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15,
17
],
[
20,
22
],
[
25,
27
],
[
30,
32
],
[
35,
37
],
[
40,
42
],
[
45,
47
],
[
50,
52
],
[
55,
59
],
[
63
],
[
66,
68... |
360 | BlockJobInfoList *qmp_query_block_jobs(Error **errp)
{
BlockJobInfoList *head = NULL, **p_next = &head;
BlockDriverState *bs;
BdrvNextIterator *it = NULL;
while ((it = bdrv_next(it, &bs))) {
AioContext *aio_context = bdrv_get_aio_context(bs);
aio_context_acquire(aio_context);
... | true | qemu | 88be7b4be4aa17c88247e162bdd7577ea79db94f | BlockJobInfoList *qmp_query_block_jobs(Error **errp)
{
BlockJobInfoList *head = NULL, **p_next = &head;
BlockDriverState *bs;
BdrvNextIterator *it = NULL;
while ((it = bdrv_next(it, &bs))) {
AioContext *aio_context = bdrv_get_aio_context(bs);
aio_context_acquire(aio_context);
... | {
"code": [
" BdrvNextIterator *it = NULL;",
" BdrvNextIterator *it = NULL;",
" BdrvNextIterator *it = NULL;",
" BlockDriverState *bs;",
" BdrvNextIterator *it = NULL;",
" while ((it = bdrv_next(it, &bs))) {",
" while ((it = bdrv_next(it, &bs))) {",
" BdrvNextIt... | BlockJobInfoList *FUNC_0(Error **errp)
{
BlockJobInfoList *head = NULL, **p_next = &head;
BlockDriverState *bs;
BdrvNextIterator *it = NULL;
while ((it = bdrv_next(it, &bs))) {
AioContext *aio_context = bdrv_get_aio_context(bs);
aio_context_acquire(aio_context);
if ... | [
"BlockJobInfoList *FUNC_0(Error **errp)\n{",
"BlockJobInfoList *head = NULL, **p_next = &head;",
"BlockDriverState *bs;",
"BdrvNextIterator *it = NULL;",
"while ((it = bdrv_next(it, &bs))) {",
"AioContext *aio_context = bdrv_get_aio_context(bs);",
"aio_context_acquire(aio_context);",
"if (bs->job) {",... | [
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45
]
] |
361 | DeviceState *ssi_create_slave(SSIBus *bus, const char *name)
{
DeviceState *dev;
dev = qdev_create(&bus->qbus, name);
qdev_init(dev);
return dev;
}
| true | qemu | e23a1b33b53d25510320b26d9f154e19c6c99725 | DeviceState *ssi_create_slave(SSIBus *bus, const char *name)
{
DeviceState *dev;
dev = qdev_create(&bus->qbus, name);
qdev_init(dev);
return dev;
}
| {
"code": [
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" ... | DeviceState *FUNC_0(SSIBus *bus, const char *name)
{
DeviceState *dev;
dev = qdev_create(&bus->qbus, name);
qdev_init(dev);
return dev;
}
| [
"DeviceState *FUNC_0(SSIBus *bus, const char *name)\n{",
"DeviceState *dev;",
"dev = qdev_create(&bus->qbus, name);",
"qdev_init(dev);",
"return dev;",
"}"
] | [
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
362 | int ff_mjpeg_decode_sos(MJpegDecodeContext *s, const uint8_t *mb_bitmask,
const AVFrame *reference)
{
int len, nb_components, i, h, v, predictor, point_transform;
int index, id, ret;
const int block_size = s->lossless ? 1 : 8;
int ilv, prev_shift;
if (!s->got_picture... | true | FFmpeg | 2884688bd51a808ccda3c0e13367619cd79e0579 | int ff_mjpeg_decode_sos(MJpegDecodeContext *s, const uint8_t *mb_bitmask,
const AVFrame *reference)
{
int len, nb_components, i, h, v, predictor, point_transform;
int index, id, ret;
const int block_size = s->lossless ? 1 : 8;
int ilv, prev_shift;
if (!s->got_picture... | {
"code": [
" const AVFrame *reference)",
" mb_bitmask, reference)) < 0)"
],
"line_no": [
3,
267
]
} | int FUNC_0(MJpegDecodeContext *VAR_0, const uint8_t *VAR_1,
const AVFrame *VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
int VAR_10, VAR_11, VAR_12;
const int VAR_13 = VAR_0->lossless ? 1 : 8;
int VAR_14, VAR_15;
if (!VAR_0->got_picture) {
av... | [
"int FUNC_0(MJpegDecodeContext *VAR_0, const uint8_t *VAR_1,\nconst AVFrame *VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"int VAR_10, VAR_11, VAR_12;",
"const int VAR_13 = VAR_0->lossless ? 1 : 8;",
"int VAR_14, VAR_15;",
"if (!VAR_0->got_picture) {",
"av_log(VAR_0->avctx, AV_LOG... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
363 | static void v9fs_renameat(void *opaque)
{
ssize_t err = 0;
size_t offset = 7;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
int32_t olddirfid, newdirfid;
V9fsString old_name, new_name;
v9fs_string_init(&old_name);
v9fs_string_init(&new_name);
err = pdu_unmarshal(pdu, offset, "dsds", ... | true | qemu | 805b5d98c649d26fc44d2d7755a97f18e62b438a | static void v9fs_renameat(void *opaque)
{
ssize_t err = 0;
size_t offset = 7;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
int32_t olddirfid, newdirfid;
V9fsString old_name, new_name;
v9fs_string_init(&old_name);
v9fs_string_init(&new_name);
err = pdu_unmarshal(pdu, offset, "dsds", ... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
ssize_t err = 0;
size_t offset = 7;
V9fsPDU *pdu = VAR_0;
V9fsState *s = pdu->s;
int32_t olddirfid, newdirfid;
V9fsString old_name, new_name;
v9fs_string_init(&old_name);
v9fs_string_init(&new_name);
err = pdu_unmarshal(pdu, offset, "dsds", &olddirfi... | [
"static void FUNC_0(void *VAR_0)\n{",
"ssize_t err = 0;",
"size_t offset = 7;",
"V9fsPDU *pdu = VAR_0;",
"V9fsState *s = pdu->s;",
"int32_t olddirfid, newdirfid;",
"V9fsString old_name, new_name;",
"v9fs_string_init(&old_name);",
"v9fs_string_init(&new_name);",
"err = pdu_unmarshal(pdu, offset, \"... | [
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,
... |
364 | if_start(void)
{
struct mbuf *ifm, *ifqt;
DEBUG_CALL("if_start");
if (if_queued == 0)
return; /* Nothing to do */
again:
/* check if we can really output */
if (!slirp_can_output())
return;
/*
* See which queue to get next packet from
* If there's something in the fastq, select ... | true | qemu | c9a621176e479b8106056ed992fddf34d9d0d206 | if_start(void)
{
struct mbuf *ifm, *ifqt;
DEBUG_CALL("if_start");
if (if_queued == 0)
return;
again:
if (!slirp_can_output())
return;
if (if_fastq.ifq_next != &if_fastq) {
ifm = if_fastq.ifq_next;
} else {
if (next_m != &if_batchq)
ifm = next_m;
else
ifm =... | {
"code": [],
"line_no": []
} | FUNC_0(void)
{
struct mbuf *VAR_0, *VAR_1;
DEBUG_CALL("FUNC_0");
if (if_queued == 0)
return;
again:
if (!slirp_can_output())
return;
if (if_fastq.ifq_next != &if_fastq) {
VAR_0 = if_fastq.ifq_next;
} else {
if (next_m != &if_batchq)
VAR_0 = next_m;
else
VA... | [
"FUNC_0(void)\n{",
"struct mbuf *VAR_0, *VAR_1;",
"DEBUG_CALL(\"FUNC_0\");",
"if (if_queued == 0)\nreturn;",
"again:\nif (!slirp_can_output())\nreturn;",
"if (if_fastq.ifq_next != &if_fastq) {",
"VAR_0 = if_fastq.ifq_next;",
"} else {",
"if (next_m != &if_batchq)\nVAR_0 = next_m;",
"else\nVAR_0 = ... | [
0,
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,
9,
10
],
[
15
],
[
16
],
[
17
],
[
19,
20
],
[
21,
22
],
[
24
],
[
25
],
[
27
],
[
28
],
[
29
],
[
31
],
[
32
],
[
... |
365 | static void mips_cpu_realizefn(DeviceState *dev, Error **errp)
{
MIPSCPU *cpu = MIPS_CPU(dev);
MIPSCPUClass *mcc = MIPS_CPU_GET_CLASS(dev);
cpu_reset(CPU(cpu));
mcc->parent_realize(dev, errp);
}
| true | qemu | 14a10fc39923b3af07c8c46d22cb20843bee3a72 | static void mips_cpu_realizefn(DeviceState *dev, Error **errp)
{
MIPSCPU *cpu = MIPS_CPU(dev);
MIPSCPUClass *mcc = MIPS_CPU_GET_CLASS(dev);
cpu_reset(CPU(cpu));
mcc->parent_realize(dev, errp);
}
| {
"code": [
" cpu_reset(CPU(cpu));",
" cpu_reset(CPU(cpu));",
" cpu_reset(CPU(cpu));",
" cpu_reset(CPU(cpu));",
" cpu_reset(CPU(cpu));",
" cpu_reset(CPU(cpu));",
" MIPSCPU *cpu = MIPS_CPU(dev);",
" cpu_reset(CPU(cpu));",
" cpu_reset(CPU(cpu));",
" ... | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
MIPSCPU *cpu = MIPS_CPU(VAR_0);
MIPSCPUClass *mcc = MIPS_CPU_GET_CLASS(VAR_0);
cpu_reset(CPU(cpu));
mcc->parent_realize(VAR_0, VAR_1);
}
| [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"MIPSCPU *cpu = MIPS_CPU(VAR_0);",
"MIPSCPUClass *mcc = MIPS_CPU_GET_CLASS(VAR_0);",
"cpu_reset(CPU(cpu));",
"mcc->parent_realize(VAR_0, VAR_1);",
"}"
] | [
0,
1,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
]
] |
366 | int ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p)
{
int ret = 0;
if (av_strstart(p, "pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,", &p)) {
AVIOContext pb;
RTSPState *rt = s->priv_data;
AVDictionary *opts = NULL;
int len = strlen(p) * 6 / 8;
cha... | false | FFmpeg | 4733a12dd17a91d606e0079ff9bb48b9f419cbef | int ff_wms_parse_sdp_a_line(AVFormatContext *s, const char *p)
{
int ret = 0;
if (av_strstart(p, "pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,", &p)) {
AVIOContext pb;
RTSPState *rt = s->priv_data;
AVDictionary *opts = NULL;
int len = strlen(p) * 6 / 8;
cha... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFormatContext *VAR_0, const char *VAR_1)
{
int VAR_2 = 0;
if (av_strstart(VAR_1, "pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,", &VAR_1)) {
AVIOContext pb;
RTSPState *rt = VAR_0->priv_data;
AVDictionary *opts = NULL;
int VAR_3 = strlen(VAR_1) * 6 / 8;
... | [
"int FUNC_0(AVFormatContext *VAR_0, const char *VAR_1)\n{",
"int VAR_2 = 0;",
"if (av_strstart(VAR_1, \"pgmpu:data:application/vnd.ms.wms-hdr.asfv1;base64,\", &VAR_1)) {",
"AVIOContext pb;",
"RTSPState *rt = VAR_0->priv_data;",
"AVDictionary *opts = NULL;",
"int VAR_3 = strlen(VAR_1) * 6 / 8;",
"char ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23,
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[... |
367 | static void alloc_picture(VideoState *is)
{
VideoPicture *vp;
int64_t bufferdiff;
vp = &is->pictq[is->pictq_windex];
if (vp->bmp)
SDL_FreeYUVOverlay(vp->bmp);
video_open(is, 0, vp);
vp->bmp = SDL_CreateYUVOverlay(vp->width, vp->height,
... | false | FFmpeg | f73d6d2af7a2b30a647d945b590962a2ab54ff3b | static void alloc_picture(VideoState *is)
{
VideoPicture *vp;
int64_t bufferdiff;
vp = &is->pictq[is->pictq_windex];
if (vp->bmp)
SDL_FreeYUVOverlay(vp->bmp);
video_open(is, 0, vp);
vp->bmp = SDL_CreateYUVOverlay(vp->width, vp->height,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(VideoState *VAR_0)
{
VideoPicture *vp;
int64_t bufferdiff;
vp = &VAR_0->pictq[VAR_0->pictq_windex];
if (vp->bmp)
SDL_FreeYUVOverlay(vp->bmp);
video_open(VAR_0, 0, vp);
vp->bmp = SDL_CreateYUVOverlay(vp->width, vp->height,
... | [
"static void FUNC_0(VideoState *VAR_0)\n{",
"VideoPicture *vp;",
"int64_t bufferdiff;",
"vp = &VAR_0->pictq[VAR_0->pictq_windex];",
"if (vp->bmp)\nSDL_FreeYUVOverlay(vp->bmp);",
"video_open(VAR_0, 0, vp);",
"vp->bmp = SDL_CreateYUVOverlay(vp->width, vp->height,\nSDL_YV12_OVERLAY,\nscreen);",
"bufferdi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15,
17
],
[
21
],
[
25,
27,
29
],
[
31
],
[
33
],
[
39,
41,
43,
45
],
[
47
],
[
49
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61... |
370 | void virtqueue_discard(VirtQueue *vq, const VirtQueueElement *elem,
unsigned int len)
{
vq->last_avail_idx--;
virtqueue_unmap_sg(vq, elem, len);
} | true | qemu | 58a83c61496eeb0d31571a07a51bc1947e3379ac | void virtqueue_discard(VirtQueue *vq, const VirtQueueElement *elem,
unsigned int len)
{
vq->last_avail_idx--;
virtqueue_unmap_sg(vq, elem, len);
} | {
"code": [],
"line_no": []
} | void FUNC_0(VirtQueue *VAR_0, const VirtQueueElement *VAR_1,
unsigned int VAR_2)
{
VAR_0->last_avail_idx--;
virtqueue_unmap_sg(VAR_0, VAR_1, VAR_2);
} | [
"void FUNC_0(VirtQueue *VAR_0, const VirtQueueElement *VAR_1,\nunsigned int VAR_2)\n{",
"VAR_0->last_avail_idx--;",
"virtqueue_unmap_sg(VAR_0, VAR_1, VAR_2);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
10
],
[
12
]
] |
371 | static void arm_gic_common_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->reset = arm_gic_common_reset;
dc->realize = arm_gic_common_realize;
dc->props = arm_gic_common_properties;
dc->vmsd = &vmstate_gic;
dc->no_user = 1;
}
| true | qemu | efec3dd631d94160288392721a5f9c39e50fb2bc | static void arm_gic_common_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->reset = arm_gic_common_reset;
dc->realize = arm_gic_common_realize;
dc->props = arm_gic_common_properties;
dc->vmsd = &vmstate_gic;
dc->no_user = 1;
}
| {
"code": [
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;"... | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
dc->reset = arm_gic_common_reset;
dc->realize = arm_gic_common_realize;
dc->props = arm_gic_common_properties;
dc->vmsd = &vmstate_gic;
dc->no_user = 1;
}
| [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"dc->reset = arm_gic_common_reset;",
"dc->realize = arm_gic_common_realize;",
"dc->props = arm_gic_common_properties;",
"dc->vmsd = &vmstate_gic;",
"dc->no_user = 1;",
"}"
] | [
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
374 | static CharDriverState *qemu_chr_open_tty(QemuOpts *opts)
{
const char *filename = qemu_opt_get(opts, "path");
CharDriverState *chr;
int fd;
TFR(fd = open(filename, O_RDWR | O_NONBLOCK));
if (fd < 0) {
return NULL;
}
tty_serial_init(fd, 115200, 'N', 8, 1);
chr = qemu_... | true | qemu | b181e04777da67acbc7448f87e4ae9f1518e08b2 | static CharDriverState *qemu_chr_open_tty(QemuOpts *opts)
{
const char *filename = qemu_opt_get(opts, "path");
CharDriverState *chr;
int fd;
TFR(fd = open(filename, O_RDWR | O_NONBLOCK));
if (fd < 0) {
return NULL;
}
tty_serial_init(fd, 115200, 'N', 8, 1);
chr = qemu_... | {
"code": [
" TFR(fd = open(filename, O_RDWR | O_NONBLOCK));"
],
"line_no": [
13
]
} | static CharDriverState *FUNC_0(QemuOpts *opts)
{
const char *VAR_0 = qemu_opt_get(opts, "path");
CharDriverState *chr;
int VAR_1;
TFR(VAR_1 = open(VAR_0, O_RDWR | O_NONBLOCK));
if (VAR_1 < 0) {
return NULL;
}
tty_serial_init(VAR_1, 115200, 'N', 8, 1);
chr = qemu_chr_o... | [
"static CharDriverState *FUNC_0(QemuOpts *opts)\n{",
"const char *VAR_0 = qemu_opt_get(opts, \"path\");",
"CharDriverState *chr;",
"int VAR_1;",
"TFR(VAR_1 = open(VAR_0, O_RDWR | O_NONBLOCK));",
"if (VAR_1 < 0) {",
"return NULL;",
"}",
"tty_serial_init(VAR_1, 115200, 'N', 8, 1);",
"chr = qemu_chr_... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
375 | void object_property_set_qobject(Object *obj, QObject *value,
const char *name, Error **errp)
{
Visitor *v;
/* TODO: Should we reject, rather than ignore, excess input? */
v = qobject_input_visitor_new(value, false);
object_property_set(obj, v, name, errp);
vi... | true | qemu | 05601ed2de60df0e344d6b783a6bc0c1ff2b5d1f | void object_property_set_qobject(Object *obj, QObject *value,
const char *name, Error **errp)
{
Visitor *v;
v = qobject_input_visitor_new(value, false);
object_property_set(obj, v, name, errp);
visit_free(v);
}
| {
"code": [
" v = qobject_input_visitor_new(value, false);"
],
"line_no": [
11
]
} | void FUNC_0(Object *VAR_0, QObject *VAR_1,
const char *VAR_2, Error **VAR_3)
{
Visitor *v;
v = qobject_input_visitor_new(VAR_1, false);
object_property_set(VAR_0, v, VAR_2, VAR_3);
visit_free(v);
}
| [
"void FUNC_0(Object *VAR_0, QObject *VAR_1,\nconst char *VAR_2, Error **VAR_3)\n{",
"Visitor *v;",
"v = qobject_input_visitor_new(VAR_1, false);",
"object_property_set(VAR_0, v, VAR_2, VAR_3);",
"visit_free(v);",
"}"
] | [
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.