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 |
|---|---|---|---|---|---|---|---|---|---|---|
6,450 | void idct_put_altivec(uint8_t* dest, int stride, vector_s16_t* block)
{
POWERPC_TBL_DECLARE(altivec_idct_put_num, 1);
#ifdef ALTIVEC_USE_REFERENCE_C_CODE
POWERPC_TBL_START_COUNT(altivec_idct_put_num, 1);
void simple_idct_put(uint8_t *dest, int line_size, int16_t *block);
simple_idct_put(dest, stride, (int... | false | FFmpeg | e45a2872fafe631c14aee9f79d0963d68c4fc1fd | void idct_put_altivec(uint8_t* dest, int stride, vector_s16_t* block)
{
POWERPC_TBL_DECLARE(altivec_idct_put_num, 1);
#ifdef ALTIVEC_USE_REFERENCE_C_CODE
POWERPC_TBL_START_COUNT(altivec_idct_put_num, 1);
void simple_idct_put(uint8_t *dest, int line_size, int16_t *block);
simple_idct_put(dest, stride, (int... | {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t* VAR_0, int VAR_1, vector_s16_t* VAR_2)
{
POWERPC_TBL_DECLARE(altivec_idct_put_num, 1);
#ifdef ALTIVEC_USE_REFERENCE_C_CODE
POWERPC_TBL_START_COUNT(altivec_idct_put_num, 1);
void simple_idct_put(uint8_t *VAR_0, int line_size, int16_t *VAR_2);
simple_idct_put(VAR_0, VAR_1, (int16_t*)VAR... | [
"void FUNC_0(uint8_t* VAR_0, int VAR_1, vector_s16_t* VAR_2)\n{",
"POWERPC_TBL_DECLARE(altivec_idct_put_num, 1);",
"#ifdef ALTIVEC_USE_REFERENCE_C_CODE\nPOWERPC_TBL_START_COUNT(altivec_idct_put_num, 1);",
"void simple_idct_put(uint8_t *VAR_0, int line_size, int16_t *VAR_2);",
"simple_idct_put(VAR_0, VAR_1, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13
],
[
15
],
[
17,
19
],
[
23
],
[
27,
31,
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
6,451 | static void opt_top_field_first(const char *arg)
{
top_field_first= atoi(arg);
}
| false | FFmpeg | bdf3d3bf9dce398acce608de77da205e08bdace3 | static void opt_top_field_first(const char *arg)
{
top_field_first= atoi(arg);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(const char *VAR_0)
{
top_field_first= atoi(VAR_0);
}
| [
"static void FUNC_0(const char *VAR_0)\n{",
"top_field_first= atoi(VAR_0);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
6,453 | static int mjpegb_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MJpegDecodeContext *s = avctx->priv_data;
const uint8_t *buf_end, *buf_ptr... | true | FFmpeg | 9a4f5b76169a71156819dbaa8ee0b6ea25dc7195 | static int mjpegb_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MJpegDecodeContext *s = avctx->priv_data;
const uint8_t *buf_end, *buf_ptr... | {
"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;
MJpegDecodeContext *s = VAR_0->priv_data;
const uint8_t *VAR_6, *buf_ptr;
AVFrame *pi... | [
"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;",
"MJpegDecodeContext *s = VAR_0->priv_data;",
"const uint8_t *VAR_6, *buf_ptr;",
"AVFrame *picture = VAR_1;",
"GetBitContext hgb;",
"uint32_t dq... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
34,
38
],
[
40
],
[
42
],
[
46,
48
],
[
52
],
[
56
],
[
60,... |
6,454 | static void pl110_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
k->init = pl110_initfn;
set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
dc->no_user = 1;
dc->vmsd = &vmstate_pl110;
}
| true | qemu | efec3dd631d94160288392721a5f9c39e50fb2bc | static void pl110_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
k->init = pl110_initfn;
set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
dc->no_user = 1;
dc->vmsd = &vmstate_pl110;
}
| {
"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);
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(VAR_0);
k->init = pl110_initfn;
set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);
dc->no_user = 1;
dc->vmsd = &vmstate_pl110;
}
| [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(VAR_0);",
"k->init = pl110_initfn;",
"set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories);",
"dc->no_user = 1;",
"dc->vmsd = &vmstate_pl110;",
"}"
] | [
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
6,456 | static always_inline void fload_invalid_op_excp (int op)
{
int ve;
ve = fpscr_ve;
if (op & POWERPC_EXCP_FP_VXSNAN) {
/* Operation on signaling NaN */
env->fpscr |= 1 << FPSCR_VXSNAN;
}
if (op & POWERPC_EXCP_FP_VXSOFT) {
/* Software-defined condition */
env... | true | qemu | 6f2d8978728c48ca46f5c01835438508aace5c64 | static always_inline void fload_invalid_op_excp (int op)
{
int ve;
ve = fpscr_ve;
if (op & POWERPC_EXCP_FP_VXSNAN) {
env->fpscr |= 1 << FPSCR_VXSNAN;
}
if (op & POWERPC_EXCP_FP_VXSOFT) {
env->fpscr |= 1 << FPSCR_VXSOFT;
}
switch (op & ~(POWERPC... | {
"code": [
" FT0 = (uint64_t)-1;",
" FT0 = (uint64_t)-1;"
],
"line_no": [
105,
105
]
} | static always_inline void FUNC_0 (int op)
{
int VAR_0;
VAR_0 = fpscr_ve;
if (op & POWERPC_EXCP_FP_VXSNAN) {
env->fpscr |= 1 << FPSCR_VXSNAN;
}
if (op & POWERPC_EXCP_FP_VXSOFT) {
env->fpscr |= 1 << FPSCR_VXSOFT;
}
switch (op & ~(POWERPC_EXCP_FP_... | [
"static always_inline void FUNC_0 (int op)\n{",
"int VAR_0;",
"VAR_0 = fpscr_ve;",
"if (op & POWERPC_EXCP_FP_VXSNAN) {",
"env->fpscr |= 1 << FPSCR_VXSNAN;",
"}",
"if (op & POWERPC_EXCP_FP_VXSOFT) {",
"env->fpscr |= 1 << FPSCR_VXSOFT;",
"}",
"switch (op & ~(POWERPC_EXCP_FP_VXSOFT | POWERPC_EXCP_FP_... | [
0,
0,
0,
0,
0,
0,
0,
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
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29,
33
],
[
35
],
[
37,
41
],
[
43
],
[
45,
49
],
[
51
],
[
53,
57
],
[
59... |
6,457 | void gd_egl_scanout(DisplayChangeListener *dcl,
uint32_t backing_id, bool backing_y_0_top,
uint32_t x, uint32_t y,
uint32_t w, uint32_t h)
{
VirtualConsole *vc = container_of(dcl, VirtualConsole, gfx.dcl);
vc->gfx.x = x;
vc->gfx.y = y;
... | true | qemu | 9d8256ebc0ef88fb1f35d0405893962d20cc10ad | void gd_egl_scanout(DisplayChangeListener *dcl,
uint32_t backing_id, bool backing_y_0_top,
uint32_t x, uint32_t y,
uint32_t w, uint32_t h)
{
VirtualConsole *vc = container_of(dcl, VirtualConsole, gfx.dcl);
vc->gfx.x = x;
vc->gfx.y = y;
... | {
"code": [],
"line_no": []
} | void FUNC_0(DisplayChangeListener *VAR_0,
uint32_t VAR_1, bool VAR_2,
uint32_t VAR_3, uint32_t VAR_4,
uint32_t VAR_5, uint32_t VAR_6)
{
VirtualConsole *vc = container_of(VAR_0, VirtualConsole, gfx.VAR_0);
vc->gfx.VAR_3 = VAR_3;
vc->gfx.VA... | [
"void FUNC_0(DisplayChangeListener *VAR_0,\nuint32_t VAR_1, bool VAR_2,\nuint32_t VAR_3, uint32_t VAR_4,\nuint32_t VAR_5, uint32_t VAR_6)\n{",
"VirtualConsole *vc = container_of(VAR_0, VirtualConsole, gfx.VAR_0);",
"vc->gfx.VAR_3 = VAR_3;",
"vc->gfx.VAR_4 = VAR_4;",
"vc->gfx.VAR_5 = VAR_5;",
"vc->gfx.VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
6,
8,
10
],
[
12
],
[
16
],
[
18
],
[
20
],
[
22
],
[
24
],
[
26
],
[
30,
32
],
[
36
],
[
38
],
[
40
],
[
42
],
[
46
],
[
48
],
[
50
],
[
52
],
[
56... |
6,458 | static av_cold int vaapi_encode_check_config(AVCodecContext *avctx)
{
VAAPIEncodeContext *ctx = avctx->priv_data;
VAStatus vas;
int i, n, err;
VAProfile *profiles = NULL;
VAEntrypoint *entrypoints = NULL;
VAConfigAttrib attr[] = {
{ VAConfigAttribRateControl },
... | false | FFmpeg | 80a5d05108cb218e8cd2e25c6621a3bfef0a832e | static av_cold int vaapi_encode_check_config(AVCodecContext *avctx)
{
VAAPIEncodeContext *ctx = avctx->priv_data;
VAStatus vas;
int i, n, err;
VAProfile *profiles = NULL;
VAEntrypoint *entrypoints = NULL;
VAConfigAttrib attr[] = {
{ VAConfigAttribRateControl },
... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
VAAPIEncodeContext *ctx = avctx->priv_data;
VAStatus vas;
int VAR_0, VAR_1, VAR_2;
VAProfile *profiles = NULL;
VAEntrypoint *entrypoints = NULL;
VAConfigAttrib attr[] = {
{ VAConfigAttribRateControl },
{ VAConf... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"VAAPIEncodeContext *ctx = avctx->priv_data;",
"VAStatus vas;",
"int VAR_0, VAR_1, VAR_2;",
"VAProfile *profiles = NULL;",
"VAEntrypoint *entrypoints = NULL;",
"VAConfigAttrib attr[] = {",
"{ VAConfigAttribRateControl },",
"{ VAConfigA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[... |
6,459 | static int64_t qemu_icount_delta(void)
{
if (!use_icount) {
return 5000 * (int64_t) 1000000;
} else if (use_icount == 1) {
/* When not using an adaptive execution frequency
we tend to get badly out of sync with real time,
so just delay for a reasonable amount of time... | true | qemu | 12d4536f7d911b6d87a766ad7300482ea663cea2 | static int64_t qemu_icount_delta(void)
{
if (!use_icount) {
return 5000 * (int64_t) 1000000;
} else if (use_icount == 1) {
return 0;
} else {
return cpu_get_icount() - cpu_get_clock();
}
}
| {
"code": [
" } else {",
"static int64_t qemu_icount_delta(void)",
" if (!use_icount) {",
" return 5000 * (int64_t) 1000000;",
" } else if (use_icount == 1) {",
" return 0;",
" } else {",
" return cpu_get_icount() - cpu_get_clock();"
],
"line_no": [... | static int64_t FUNC_0(void)
{
if (!use_icount) {
return 5000 * (int64_t) 1000000;
} else if (use_icount == 1) {
return 0;
} else {
return cpu_get_icount() - cpu_get_clock();
}
}
| [
"static int64_t FUNC_0(void)\n{",
"if (!use_icount) {",
"return 5000 * (int64_t) 1000000;",
"} else if (use_icount == 1) {",
"return 0;",
"} else {",
"return cpu_get_icount() - cpu_get_clock();",
"}",
"}"
] | [
1,
1,
1,
1,
1,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
6,460 | static int unpack_parse_unit(DiracParseUnit *pu, DiracParseContext *pc,
int offset)
{
uint8_t *start = pc->buffer + offset;
uint8_t *end = pc->buffer + pc->index;
if (start < pc->buffer || (start + 13 > end))
return 0;
pu->pu_type = start[4];
pu->next... | true | FFmpeg | 79798f7c57b098c78e0bbc6becd64b9888b013d1 | static int unpack_parse_unit(DiracParseUnit *pu, DiracParseContext *pc,
int offset)
{
uint8_t *start = pc->buffer + offset;
uint8_t *end = pc->buffer + pc->index;
if (start < pc->buffer || (start + 13 > end))
return 0;
pu->pu_type = start[4];
pu->next... | {
"code": [
" uint8_t *start = pc->buffer + offset;",
" uint8_t *end = pc->buffer + pc->index;",
" if (start < pc->buffer || (start + 13 > end))"
],
"line_no": [
7,
9,
11
]
} | static int FUNC_0(DiracParseUnit *VAR_0, DiracParseContext *VAR_1,
int VAR_2)
{
uint8_t *start = VAR_1->buffer + VAR_2;
uint8_t *end = VAR_1->buffer + VAR_1->index;
if (start < VAR_1->buffer || (start + 13 > end))
return 0;
VAR_0->pu_type = start[4];
... | [
"static int FUNC_0(DiracParseUnit *VAR_0, DiracParseContext *VAR_1,\nint VAR_2)\n{",
"uint8_t *start = VAR_1->buffer + VAR_2;",
"uint8_t *end = VAR_1->buffer + VAR_1->index;",
"if (start < VAR_1->buffer || (start + 13 > end))\nreturn 0;",
"VAR_0->pu_type = start[4];",
"VAR_0->next_pu_offset = AV_RB32(st... | [
0,
1,
1,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11,
13
],
[
15
],
[
19
],
[
21
],
[
25,
27
],
[
31
],
[
33
]
] |
6,462 | int qcow2_get_refcount(BlockDriverState *bs, int64_t cluster_index,
uint64_t *refcount)
{
BDRVQcowState *s = bs->opaque;
uint64_t refcount_table_index, block_index;
int64_t refcount_block_offset;
int ret;
uint16_t *refcount_block;
refcount_table_index = cluster_i... | true | qemu | 7453c96b78c2b09aa72924f933bb9616e5474194 | int qcow2_get_refcount(BlockDriverState *bs, int64_t cluster_index,
uint64_t *refcount)
{
BDRVQcowState *s = bs->opaque;
uint64_t refcount_table_index, block_index;
int64_t refcount_block_offset;
int ret;
uint16_t *refcount_block;
refcount_table_index = cluster_i... | {
"code": [
" uint16_t *refcount_block;",
" (void**) &refcount_block);",
" *refcount = be16_to_cpu(refcount_block[block_index]);",
" ret = qcow2_cache_put(bs, s->refcount_block_cache,",
" (void**) &refcount_block);"
],
"line_no": [
15,
59,
71,
75,
59
... | int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,
uint64_t *VAR_2)
{
BDRVQcowState *s = VAR_0->opaque;
uint64_t refcount_table_index, block_index;
int64_t refcount_block_offset;
int VAR_3;
uint16_t *refcount_block;
refcount_table_index = VAR_1 >> s->refcount_blo... | [
"int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nuint64_t *VAR_2)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"uint64_t refcount_table_index, block_index;",
"int64_t refcount_block_offset;",
"int VAR_3;",
"uint16_t *refcount_block;",
"refcount_table_index = VAR_1 >> s->refcount_block_bits;",
"if (re... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45,
47,
49
... |
6,463 | static int protocol_client_auth_vnc(VncState *vs, uint8_t *data, size_t len)
{
unsigned char response[VNC_AUTH_CHALLENGE_SIZE];
size_t i, pwlen;
unsigned char key[8];
time_t now = time(NULL);
QCryptoCipher *cipher = NULL;
Error *err = NULL;
if (!vs->vd->password) {
VNC_DEB... | true | qemu | 7364dbdabb7824d5bde1e341bb6d928282f01c83 | static int protocol_client_auth_vnc(VncState *vs, uint8_t *data, size_t len)
{
unsigned char response[VNC_AUTH_CHALLENGE_SIZE];
size_t i, pwlen;
unsigned char key[8];
time_t now = time(NULL);
QCryptoCipher *cipher = NULL;
Error *err = NULL;
if (!vs->vd->password) {
VNC_DEB... | {
"code": [
" error_get_pretty(err));",
" VNC_DEBUG(\"No password configured on server\");",
" VNC_DEBUG(\"Password is expired\");",
" VNC_DEBUG(\"Cannot initialize cipher %s\",",
" error_get_pretty(err));",
" VNC_DEBUG(\"Cannot enc... | static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2)
{
unsigned char VAR_3[VNC_AUTH_CHALLENGE_SIZE];
size_t i, pwlen;
unsigned char VAR_4[8];
time_t now = time(NULL);
QCryptoCipher *cipher = NULL;
Error *VAR_5 = NULL;
if (!VAR_0->vd->password) {
VNC_DEBUG("No p... | [
"static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2)\n{",
"unsigned char VAR_3[VNC_AUTH_CHALLENGE_SIZE];",
"size_t i, pwlen;",
"unsigned char VAR_4[8];",
"time_t now = time(NULL);",
"QCryptoCipher *cipher = NULL;",
"Error *VAR_5 = NULL;",
"if (!VAR_0->vd->password) {",
"VNC_DEBUG(\"No p... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
43
],
[
45
],
[
47
],
[
51,... |
6,464 | QapiDeallocVisitor *qapi_dealloc_visitor_new(void)
{
QapiDeallocVisitor *v;
v = g_malloc0(sizeof(*v));
v->visitor.start_struct = qapi_dealloc_start_struct;
v->visitor.end_struct = qapi_dealloc_end_struct;
v->visitor.start_implicit_struct = qapi_dealloc_start_implicit_struct;
v->visito... | true | qemu | 544a3731591f5d53e15f22de00ce5ac758d490b3 | QapiDeallocVisitor *qapi_dealloc_visitor_new(void)
{
QapiDeallocVisitor *v;
v = g_malloc0(sizeof(*v));
v->visitor.start_struct = qapi_dealloc_start_struct;
v->visitor.end_struct = qapi_dealloc_end_struct;
v->visitor.start_implicit_struct = qapi_dealloc_start_implicit_struct;
v->visito... | {
"code": [
" v->visitor.start_union = qapi_dealloc_start_union;"
],
"line_no": [
41
]
} | QapiDeallocVisitor *FUNC_0(void)
{
QapiDeallocVisitor *v;
v = g_malloc0(sizeof(*v));
v->visitor.start_struct = qapi_dealloc_start_struct;
v->visitor.end_struct = qapi_dealloc_end_struct;
v->visitor.start_implicit_struct = qapi_dealloc_start_implicit_struct;
v->visitor.end_implicit_str... | [
"QapiDeallocVisitor *FUNC_0(void)\n{",
"QapiDeallocVisitor *v;",
"v = g_malloc0(sizeof(*v));",
"v->visitor.start_struct = qapi_dealloc_start_struct;",
"v->visitor.end_struct = qapi_dealloc_end_struct;",
"v->visitor.start_implicit_struct = qapi_dealloc_start_implicit_struct;",
"v->visitor.end_implicit_st... | [
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
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
49... |
6,465 | static void test_qemu_strtoll_empty(void)
{
const char *str = "";
char f = 'X';
const char *endptr = &f;
int64_t res = 999;
int err;
err = qemu_strtoll(str, &endptr, 0, &res);
g_assert_cmpint(err, ==, 0);
g_assert_cmpint(res, ==, 0);
g_assert(endptr == str);
}
| true | qemu | 47d4be12c3997343e436c6cca89aefbbbeb70863 | static void test_qemu_strtoll_empty(void)
{
const char *str = "";
char f = 'X';
const char *endptr = &f;
int64_t res = 999;
int err;
err = qemu_strtoll(str, &endptr, 0, &res);
g_assert_cmpint(err, ==, 0);
g_assert_cmpint(res, ==, 0);
g_assert(endptr == str);
}
| {
"code": [
" g_assert_cmpint(err, ==, 0);",
" g_assert_cmpint(res, ==, 0);",
" g_assert(endptr == str);",
" g_assert_cmpint(err, ==, 0);",
" g_assert_cmpint(res, ==, 0);",
" g_assert(endptr == str);",
" g_assert_cmpint(err, ==, 0);",
" g_assert_cmpint(res, ==, ... | static void FUNC_0(void)
{
const char *VAR_0 = "";
char VAR_1 = 'X';
const char *VAR_2 = &VAR_1;
int64_t res = 999;
int VAR_3;
VAR_3 = qemu_strtoll(VAR_0, &VAR_2, 0, &res);
g_assert_cmpint(VAR_3, ==, 0);
g_assert_cmpint(res, ==, 0);
g_assert(VAR_2 == VAR_0);
}
| [
"static void FUNC_0(void)\n{",
"const char *VAR_0 = \"\";",
"char VAR_1 = 'X';",
"const char *VAR_2 = &VAR_1;",
"int64_t res = 999;",
"int VAR_3;",
"VAR_3 = qemu_strtoll(VAR_0, &VAR_2, 0, &res);",
"g_assert_cmpint(VAR_3, ==, 0);",
"g_assert_cmpint(res, ==, 0);",
"g_assert(VAR_2 == VAR_0);",
"}"
... | [
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
6,466 | static void adb_kbd_realizefn(DeviceState *dev, Error **errp)
{
ADBKeyboardClass *akc = ADB_KEYBOARD_GET_CLASS(dev);
akc->parent_realize(dev, errp);
qemu_input_handler_register(dev, &adb_keyboard_handler);
}
| true | qemu | 77cb0f5aafc8e6d0c6d3c339f381c9b7921648e0 | static void adb_kbd_realizefn(DeviceState *dev, Error **errp)
{
ADBKeyboardClass *akc = ADB_KEYBOARD_GET_CLASS(dev);
akc->parent_realize(dev, errp);
qemu_input_handler_register(dev, &adb_keyboard_handler);
}
| {
"code": [
"static void adb_kbd_realizefn(DeviceState *dev, Error **errp)",
" ADBKeyboardClass *akc = ADB_KEYBOARD_GET_CLASS(dev);",
" akc->parent_realize(dev, errp);",
" qemu_input_handler_register(dev, &adb_keyboard_handler);"
],
"line_no": [
1,
5,
7,
9
]
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
ADBKeyboardClass *akc = ADB_KEYBOARD_GET_CLASS(VAR_0);
akc->parent_realize(VAR_0, VAR_1);
qemu_input_handler_register(VAR_0, &adb_keyboard_handler);
}
| [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"ADBKeyboardClass *akc = ADB_KEYBOARD_GET_CLASS(VAR_0);",
"akc->parent_realize(VAR_0, VAR_1);",
"qemu_input_handler_register(VAR_0, &adb_keyboard_handler);",
"}"
] | [
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
6,468 | static int h264_init_context(AVCodecContext *avctx, H264Context *h)
{
int i;
h->avctx = avctx;
h->picture_structure = PICT_FRAME;
h->workaround_bugs = avctx->workaround_bugs;
h->flags = avctx->flags;
h->poc.prev_poc_msb = 1 << 16;
h->recovery_fr... | true | FFmpeg | 4fded0480f20f4d7ca5e776a85574de34dfead14 | static int h264_init_context(AVCodecContext *avctx, H264Context *h)
{
int i;
h->avctx = avctx;
h->picture_structure = PICT_FRAME;
h->workaround_bugs = avctx->workaround_bugs;
h->flags = avctx->flags;
h->poc.prev_poc_msb = 1 << 16;
h->recovery_fr... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, H264Context *VAR_1)
{
int VAR_2;
VAR_1->VAR_0 = VAR_0;
VAR_1->picture_structure = PICT_FRAME;
VAR_1->workaround_bugs = VAR_0->workaround_bugs;
VAR_1->flags = VAR_0->flags;
VAR_1->poc.prev_poc_msb = 1 << 16;
... | [
"static int FUNC_0(AVCodecContext *VAR_0, H264Context *VAR_1)\n{",
"int VAR_2;",
"VAR_1->VAR_0 = VAR_0;",
"VAR_1->picture_structure = PICT_FRAME;",
"VAR_1->workaround_bugs = VAR_0->workaround_bugs;",
"VAR_1->flags = VAR_0->flags;",
"VAR_1->poc.prev_poc_msb ... | [
0,
0,
0,
0,
0,
0,
0,
0,
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
],... |
6,469 | static int xcbgrab_reposition(AVFormatContext *s,
xcb_query_pointer_reply_t *p,
xcb_get_geometry_reply_t *geo)
{
XCBGrabContext *c = s->priv_data;
int x = c->x, y = c->y, p_x = p->win_x, p_y = p->win_y;
int w = c->width, h = c->height, f = c-... | false | FFmpeg | e86df0206f06b8d1e97e2b60db8f74a398d53127 | static int xcbgrab_reposition(AVFormatContext *s,
xcb_query_pointer_reply_t *p,
xcb_get_geometry_reply_t *geo)
{
XCBGrabContext *c = s->priv_data;
int x = c->x, y = c->y, p_x = p->win_x, p_y = p->win_y;
int w = c->width, h = c->height, f = c-... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0,
xcb_query_pointer_reply_t *VAR_1,
xcb_get_geometry_reply_t *VAR_2)
{
XCBGrabContext *c = VAR_0->priv_data;
int VAR_3 = c->VAR_3, VAR_4 = c->VAR_4, VAR_5 = VAR_1->win_x, VAR_6 = VAR_1->win_y;
int VAR_7... | [
"static int FUNC_0(AVFormatContext *VAR_0,\nxcb_query_pointer_reply_t *VAR_1,\nxcb_get_geometry_reply_t *VAR_2)\n{",
"XCBGrabContext *c = VAR_0->priv_data;",
"int VAR_3 = c->VAR_3, VAR_4 = c->VAR_4, VAR_5 = VAR_1->win_x, VAR_6 = VAR_1->win_y;",
"int VAR_7 = c->width, VAR_8 = c->height, VAR_9 = c->follow_mouse... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
6,470 | clk_setup_cb cpu_ppc_tb_init (CPUPPCState *env, uint32_t freq)
{
PowerPCCPU *cpu = ppc_env_get_cpu(env);
ppc_tb_t *tb_env;
tb_env = g_malloc0(sizeof(ppc_tb_t));
env->tb_env = tb_env;
tb_env->flags = PPC_DECR_UNDERFLOW_TRIGGERED;
if (env->insns_flags & PPC_SEGMENT_64B) {
/* All ... | true | qemu | 4b236b621bf090509c4a0be372edfd31d13b289a | clk_setup_cb cpu_ppc_tb_init (CPUPPCState *env, uint32_t freq)
{
PowerPCCPU *cpu = ppc_env_get_cpu(env);
ppc_tb_t *tb_env;
tb_env = g_malloc0(sizeof(ppc_tb_t));
env->tb_env = tb_env;
tb_env->flags = PPC_DECR_UNDERFLOW_TRIGGERED;
if (env->insns_flags & PPC_SEGMENT_64B) {
... | {
"code": [
" if (0) {",
" if (0) {",
" } else {"
],
"line_no": [
29,
29,
39
]
} | clk_setup_cb FUNC_0 (CPUPPCState *env, uint32_t freq)
{
PowerPCCPU *cpu = ppc_env_get_cpu(env);
ppc_tb_t *tb_env;
tb_env = g_malloc0(sizeof(ppc_tb_t));
env->tb_env = tb_env;
tb_env->flags = PPC_DECR_UNDERFLOW_TRIGGERED;
if (env->insns_flags & PPC_SEGMENT_64B) {
tb_env... | [
"clk_setup_cb FUNC_0 (CPUPPCState *env, uint32_t freq)\n{",
"PowerPCCPU *cpu = ppc_env_get_cpu(env);",
"ppc_tb_t *tb_env;",
"tb_env = g_malloc0(sizeof(ppc_tb_t));",
"env->tb_env = tb_env;",
"tb_env->flags = PPC_DECR_UNDERFLOW_TRIGGERED;",
"if (env->insns_flags & PPC_SEGMENT_64B) {",
"tb_env->flags |= ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27
],
[
29
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
]
] |
6,471 | static int tscc2_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
TSCC2Context *c = avctx->priv_data;
GetByteContext gb;
uint32_t frame_type, size;
int i, val, le... | true | FFmpeg | 4dc3714c48e74e75a3a9c7d9fb52fd5917107508 | static int tscc2_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
TSCC2Context *c = avctx->priv_data;
GetByteContext gb;
uint32_t frame_type, size;
int i, val, le... | {
"code": [
" if ((ret = ff_reget_buffer(avctx, c->pic)) < 0) {",
" return ret;",
" *got_frame = 1;",
" if ((ret = av_frame_ref(data, c->pic)) < 0)",
" return ret;"
],
"line_no": [
41,
43,
51,
53,
55
]
} | 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;
TSCC2Context *c = VAR_0->priv_data;
GetByteContext gb;
uint32_t frame_type, size;
int VAR_6, VAR_7, VAR_8, VAR_... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"TSCC2Context *c = VAR_0->priv_data;",
"GetByteContext gb;",
"uint32_t frame_type, size;",
"int VAR_6, VAR_7, VAR_8, VAR_9 = 0;",
"int VAR_10 = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
... |
6,472 | static void test_ide_mbr(bool use_device, MBRcontents mbr)
{
char *argv[256];
int argc;
Backend i;
const char *dev;
argc = setup_common(argv, ARRAY_SIZE(argv));
for (i = 0; i < backend_last; i++) {
cur_ide[i] = &hd_chst[i][mbr];
dev = use_device ? (is_hd(cur_ide[i]) ? ... | true | qemu | 2c8f86961b6eaac705be21bc98299f5517eb0b6b | static void test_ide_mbr(bool use_device, MBRcontents mbr)
{
char *argv[256];
int argc;
Backend i;
const char *dev;
argc = setup_common(argv, ARRAY_SIZE(argv));
for (i = 0; i < backend_last; i++) {
cur_ide[i] = &hd_chst[i][mbr];
dev = use_device ? (is_hd(cur_ide[i]) ? ... | {
"code": [
" char *argv[256];",
" qtest_start(g_strjoinv(\" \", argv));",
" char *argv[256];",
" argc = setup_common(argv, ARRAY_SIZE(argv));",
" argc = setup_ide(argc, argv, ARRAY_SIZE(argv), i, dev, i, mbr, \"\");",
" qtest_start(g_strjoinv(\" \", argv));",
" ar... | static void FUNC_0(bool VAR_0, MBRcontents VAR_1)
{
char *VAR_2[256];
int VAR_3;
Backend i;
const char *VAR_4;
VAR_3 = setup_common(VAR_2, ARRAY_SIZE(VAR_2));
for (i = 0; i < backend_last; i++) {
cur_ide[i] = &hd_chst[i][VAR_1];
VAR_4 = VAR_0 ? (is_hd(cur_ide[i]) ? "id... | [
"static void FUNC_0(bool VAR_0, MBRcontents VAR_1)\n{",
"char *VAR_2[256];",
"int VAR_3;",
"Backend i;",
"const char *VAR_4;",
"VAR_3 = setup_common(VAR_2, ARRAY_SIZE(VAR_2));",
"for (i = 0; i < backend_last; i++) {",
"cur_ide[i] = &hd_chst[i][VAR_1];",
"VAR_4 = VAR_0 ? (is_hd(cur_ide[i]) ? \"ide-hd... | [
0,
1,
0,
0,
0,
1,
0,
0,
0,
1,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
6,473 | static int ram_save_block(QEMUFile *f, bool last_stage)
{
RAMBlock *block = last_seen_block;
ram_addr_t offset = last_offset;
bool complete_round = false;
int bytes_sent = 0;
MemoryRegion *mr;
ram_addr_t current_addr;
if (!block)
block = QTAILQ_FIRST(&ram_list.blocks);
... | true | qemu | 6d3cb1f970ee85361618f7ff02869180394e012d | static int ram_save_block(QEMUFile *f, bool last_stage)
{
RAMBlock *block = last_seen_block;
ram_addr_t offset = last_offset;
bool complete_round = false;
int bytes_sent = 0;
MemoryRegion *mr;
ram_addr_t current_addr;
if (!block)
block = QTAILQ_FIRST(&ram_list.blocks);
... | {
"code": [
" current_addr = block->offset + offset;",
" qemu_put_buffer_async(f, p, TARGET_PAGE_SIZE);"
],
"line_no": [
111,
133
]
} | static int FUNC_0(QEMUFile *VAR_0, bool VAR_1)
{
RAMBlock *block = last_seen_block;
ram_addr_t offset = last_offset;
bool complete_round = false;
int VAR_2 = 0;
MemoryRegion *mr;
ram_addr_t current_addr;
if (!block)
block = QTAILQ_FIRST(&ram_list.blocks);
while (tru... | [
"static int FUNC_0(QEMUFile *VAR_0, bool VAR_1)\n{",
"RAMBlock *block = last_seen_block;",
"ram_addr_t offset = last_offset;",
"bool complete_round = false;",
"int VAR_2 = 0;",
"MemoryRegion *mr;",
"ram_addr_t current_addr;",
"if (!block)\nblock = QTAILQ_FIRST(&ram_list.blocks);",
"while (true) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
6,474 | static inline void RENAME(rgb32tobgr15)(const uint8_t *src, uint8_t *dst, unsigned src_size)
{
const uint8_t *s = src;
const uint8_t *end;
#ifdef HAVE_MMX
const uint8_t *mm_end;
#endif
uint16_t *d = (uint16_t *)dst;
end = s + src_size;
#ifdef HAVE_MMX
__asm __volatile(PREFETCH" %0"::"m"(*src):"memory");... | true | FFmpeg | 7f526efd17973ec6d2204f7a47b6923e2be31363 | static inline void RENAME(rgb32tobgr15)(const uint8_t *src, uint8_t *dst, unsigned src_size)
{
const uint8_t *s = src;
const uint8_t *end;
#ifdef HAVE_MMX
const uint8_t *mm_end;
#endif
uint16_t *d = (uint16_t *)dst;
end = s + src_size;
#ifdef HAVE_MMX
__asm __volatile(PREFETCH" %0"::"m"(*src):"memory");... | {
"code": [
"static inline void RENAME(rgb32tobgr15)(const uint8_t *src, uint8_t *dst, unsigned src_size)"
],
"line_no": [
1
]
} | static inline void FUNC_0(rgb32tobgr15)(const uint8_t *VAR_2, uint8_t *dst, unsigned src_size)
{
const uint8_t *VAR_0 = VAR_2;
const uint8_t *VAR_1;
#ifdef HAVE_MMX
const uint8_t *mm_end;
#endif
uint16_t *d = (uint16_t *)dst;
VAR_1 = VAR_0 + src_size;
#ifdef HAVE_MMX
__asm __volatile(PREFETCH" %0"::"m"(... | [
"static inline void FUNC_0(rgb32tobgr15)(const uint8_t *VAR_2, uint8_t *dst, unsigned src_size)\n{",
"const uint8_t *VAR_0 = VAR_2;",
"const uint8_t *VAR_1;",
"#ifdef HAVE_MMX\nconst uint8_t *mm_end;",
"#endif\nuint16_t *d = (uint16_t *)dst;",
"VAR_1 = VAR_0 + src_size;",
"#ifdef HAVE_MMX\n__asm __volat... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13,
15
],
[
17
],
[
19,
21
],
[
23,
25,
27,
29
],
[
31
],
[
33,
35
],
[
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57,
59,... |
6,475 | static int vp3_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
Vp3DecodeContext *s = avctx->priv_data;
GetBitContext gb;
static int counter = 0;
*data_size = 0;
init_get_bits(&gb, buf, ... | true | FFmpeg | 74c0ac127407847525a7fe38818de0dd772a20b9 | static int vp3_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
Vp3DecodeContext *s = avctx->priv_data;
GetBitContext gb;
static int counter = 0;
*data_size = 0;
init_get_bits(&gb, buf, ... | {
"code": [
" if ((s->golden_frame.data[0]) &&",
" (s->last_frame.data[0] == s->golden_frame.data[0]))",
" avctx->release_buffer(avctx, &s->golden_frame);",
" else if (s->last_frame.data[0])",
" avctx->release_buffer(avctx, &s->last_frame);"
],
"l... | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
uint8_t *VAR_3, int VAR_4)
{
Vp3DecodeContext *s = VAR_0->priv_data;
GetBitContext gb;
static int VAR_5 = 0;
*VAR_2 = 0;
init_get_bits(&gb, VAR_3, VAR_4 * 8);
... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{",
"Vp3DecodeContext *s = VAR_0->priv_data;",
"GetBitContext gb;",
"static int VAR_5 = 0;",
"*VAR_2 = 0;",
"init_get_bits(&gb, VAR_3, VAR_4 * 8);",
"s->keyframe = get_bits(&gb, 1);",
"s->keyframe ^= 1;",
... | [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
41
],
[
43
],
[
47
],
[
49,
51,
53
],
[
55,
57
... |
6,476 | static int ccid_handle_bulk_out(USBCCIDState *s, USBPacket *p)
{
CCID_Header *ccid_header;
if (p->len + s->bulk_out_pos > BULK_OUT_DATA_SIZE) {
return USB_RET_STALL;
}
ccid_header = (CCID_Header *)s->bulk_out_data;
memcpy(s->bulk_out_data + s->bulk_out_pos, p->data, p->len);
s-... | true | qemu | 4f4321c11ff6e98583846bfd6f0e81954924b003 | static int ccid_handle_bulk_out(USBCCIDState *s, USBPacket *p)
{
CCID_Header *ccid_header;
if (p->len + s->bulk_out_pos > BULK_OUT_DATA_SIZE) {
return USB_RET_STALL;
}
ccid_header = (CCID_Header *)s->bulk_out_data;
memcpy(s->bulk_out_data + s->bulk_out_pos, p->data, p->len);
s-... | {
"code": [
" if (p->len + s->bulk_out_pos > BULK_OUT_DATA_SIZE) {",
" memcpy(s->bulk_out_data + s->bulk_out_pos, p->data, p->len);",
" s->bulk_out_pos += p->len;",
" if (p->len == CCID_MAX_PACKET_SIZE) {",
" \"usb-ccid: bulk_in: expecting more packets (%d/%d)\\n\",",
" ... | static int FUNC_0(USBCCIDState *VAR_0, USBPacket *VAR_1)
{
CCID_Header *ccid_header;
if (VAR_1->len + VAR_0->bulk_out_pos > BULK_OUT_DATA_SIZE) {
return USB_RET_STALL;
}
ccid_header = (CCID_Header *)VAR_0->bulk_out_data;
memcpy(VAR_0->bulk_out_data + VAR_0->bulk_out_pos, VAR_1->data... | [
"static int FUNC_0(USBCCIDState *VAR_0, USBPacket *VAR_1)\n{",
"CCID_Header *ccid_header;",
"if (VAR_1->len + VAR_0->bulk_out_pos > BULK_OUT_DATA_SIZE) {",
"return USB_RET_STALL;",
"}",
"ccid_header = (CCID_Header *)VAR_0->bulk_out_data;",
"memcpy(VAR_0->bulk_out_data + VAR_0->bulk_out_pos, VAR_1->data,... | [
0,
0,
1,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25,
27
],
[
29
],
[
31
],
[
33
],
[
35,
37,
39
],
[
41
],
[
43
],
[
45
],
[
47... |
6,477 | static int vp9_alloc_frame(AVCodecContext *ctx, VP9Frame *f)
{
VP9Context *s = ctx->priv_data;
int ret, sz;
if ((ret = ff_thread_get_buffer(ctx, &f->tf, AV_GET_BUFFER_FLAG_REF)) < 0)
return ret;
sz = 64 * s->sb_cols * s->sb_rows;
if (!(f->extradata = av_buffer_allocz(sz * (1 + sizeo... | true | FFmpeg | 0c67864a37a5a6dee19341da6e6cfa369c52d1db | static int vp9_alloc_frame(AVCodecContext *ctx, VP9Frame *f)
{
VP9Context *s = ctx->priv_data;
int ret, sz;
if ((ret = ff_thread_get_buffer(ctx, &f->tf, AV_GET_BUFFER_FLAG_REF)) < 0)
return ret;
sz = 64 * s->sb_cols * s->sb_rows;
if (!(f->extradata = av_buffer_allocz(sz * (1 + sizeo... | {
"code": [
" !s->keyframe && !s->intraonly) {"
],
"line_no": [
37
]
} | static int FUNC_0(AVCodecContext *VAR_0, VP9Frame *VAR_1)
{
VP9Context *s = VAR_0->priv_data;
int VAR_2, VAR_3;
if ((VAR_2 = ff_thread_get_buffer(VAR_0, &VAR_1->tf, AV_GET_BUFFER_FLAG_REF)) < 0)
return VAR_2;
VAR_3 = 64 * s->sb_cols * s->sb_rows;
if (!(VAR_1->extradata = av_buffer_a... | [
"static int FUNC_0(AVCodecContext *VAR_0, VP9Frame *VAR_1)\n{",
"VP9Context *s = VAR_0->priv_data;",
"int VAR_2, VAR_3;",
"if ((VAR_2 = ff_thread_get_buffer(VAR_0, &VAR_1->tf, AV_GET_BUFFER_FLAG_REF)) < 0)\nreturn VAR_2;",
"VAR_3 = 64 * s->sb_cols * s->sb_rows;",
"if (!(VAR_1->extradata = av_buffer_allocz... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
35,
37
],
[
39
],
[
41
],
[
45
],
[
47
]
] |
6,478 | static int usbredir_handle_bulk_data(USBRedirDevice *dev, USBPacket *p,
uint8_t ep)
{
AsyncURB *aurb = async_alloc(dev, p);
struct usb_redir_bulk_packet_header bulk_packet;
DPRINTF("bulk-out ep %02X len %d id %u\n", ep, p->len, aurb->packet_id);
bulk_packe... | true | qemu | 4f4321c11ff6e98583846bfd6f0e81954924b003 | static int usbredir_handle_bulk_data(USBRedirDevice *dev, USBPacket *p,
uint8_t ep)
{
AsyncURB *aurb = async_alloc(dev, p);
struct usb_redir_bulk_packet_header bulk_packet;
DPRINTF("bulk-out ep %02X len %d id %u\n", ep, p->len, aurb->packet_id);
bulk_packe... | {
"code": [
" DPRINTF(\"bulk-out ep %02X len %d id %u\\n\", ep, p->len, aurb->packet_id);",
" bulk_packet.length = p->len;",
" usbredir_log_data(dev, \"bulk data out:\", p->data, p->len);",
" &bulk_packet, p->data, p->len);"
],
"line_no": [
... | static int FUNC_0(USBRedirDevice *VAR_0, USBPacket *VAR_1,
uint8_t VAR_2)
{
AsyncURB *aurb = async_alloc(VAR_0, VAR_1);
struct usb_redir_bulk_packet_header VAR_3;
DPRINTF("bulk-out VAR_2 %02X len %d id %u\n", VAR_2, VAR_1->len, aurb->packet_id);
VAR_3.endp... | [
"static int FUNC_0(USBRedirDevice *VAR_0, USBPacket *VAR_1,\nuint8_t VAR_2)\n{",
"AsyncURB *aurb = async_alloc(VAR_0, VAR_1);",
"struct usb_redir_bulk_packet_header VAR_3;",
"DPRINTF(\"bulk-out VAR_2 %02X len %d id %u\\n\", VAR_2, VAR_1->len, aurb->packet_id);",
"VAR_3.endpoint = VAR_2;",
"VAR_3.length ... | [
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
]
] |
6,479 | void do_info_vnc(void)
{
if (vnc_state == NULL)
term_printf("VNC server disabled\n");
else {
term_printf("VNC server active on: ");
term_print_filename(vnc_state->display);
term_printf("\n");
if (vnc_state->csock == -1)
term_printf("No client connected\n");
else
term_printf("Client ... | true | qemu | 13412c9d2fce7c402e93a08177abdbc593208140 | void do_info_vnc(void)
{
if (vnc_state == NULL)
term_printf("VNC server disabled\n");
else {
term_printf("VNC server active on: ");
term_print_filename(vnc_state->display);
term_printf("\n");
if (vnc_state->csock == -1)
term_printf("No client connected\n");
else
term_printf("Client ... | {
"code": [
" if (vnc_state == NULL)"
],
"line_no": [
5
]
} | void FUNC_0(void)
{
if (vnc_state == NULL)
term_printf("VNC server disabled\n");
else {
term_printf("VNC server active on: ");
term_print_filename(vnc_state->display);
term_printf("\n");
if (vnc_state->csock == -1)
term_printf("No client connected\n");
else
term_printf("Client conne... | [
"void FUNC_0(void)\n{",
"if (vnc_state == NULL)\nterm_printf(\"VNC server disabled\\n\");",
"else {",
"term_printf(\"VNC server active on: \");",
"term_print_filename(vnc_state->display);",
"term_printf(\"\\n\");",
"if (vnc_state->csock == -1)\nterm_printf(\"No client connected\\n\");",
"else\nterm_pr... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
23,
25
],
[
27
],
[
29
]
] |
6,480 | static int read_frame_internal(AVFormatContext *s, AVPacket *pkt)
{
int ret = 0, i, got_packet = 0;
AVDictionary *metadata = NULL;
av_init_packet(pkt);
while (!got_packet && !s->parse_queue) {
AVStream *st;
AVPacket cur_pkt;
/* read next packet */
ret = ff_... | false | FFmpeg | 6c7f1155bb648eced8e5aa08b1fd490df2f8b325 | static int read_frame_internal(AVFormatContext *s, AVPacket *pkt)
{
int ret = 0, i, got_packet = 0;
AVDictionary *metadata = NULL;
av_init_packet(pkt);
while (!got_packet && !s->parse_queue) {
AVStream *st;
AVPacket cur_pkt;
ret = ff_read_packet(s, &cur_pk... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
int VAR_2 = 0, VAR_3, VAR_4 = 0;
AVDictionary *metadata = NULL;
av_init_packet(VAR_1);
while (!VAR_4 && !VAR_0->parse_queue) {
AVStream *st;
AVPacket cur_pkt;
VAR_2 = ff_read_packet(VAR_0, &cur_p... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"int VAR_2 = 0, VAR_3, VAR_4 = 0;",
"AVDictionary *metadata = NULL;",
"av_init_packet(VAR_1);",
"while (!VAR_4 && !VAR_0->parse_queue) {",
"AVStream *st;",
"AVPacket cur_pkt;",
"VAR_2 = ff_read_packet(VAR_0, &cur_pkt);",
"if (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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
25
],
[
27
],
[
29,
31
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
49
],
[
51
],
[
53
],
[
55
],
[
59... |
6,481 | void ff_hevcdsp_init_x86(HEVCDSPContext *c, const int bit_depth)
{
int mm_flags = av_get_cpu_flags();
if (bit_depth == 8) {
if (EXTERNAL_MMX(mm_flags)) {
if (EXTERNAL_MMXEXT(mm_flags)) {
if (EXTERNAL_SSSE3(mm_flags) && ARCH_X86_64) {
EPEL_LI... | false | FFmpeg | fc7d0d82017d67a1bbc0c1664144b756dc4ba6e3 | void ff_hevcdsp_init_x86(HEVCDSPContext *c, const int bit_depth)
{
int mm_flags = av_get_cpu_flags();
if (bit_depth == 8) {
if (EXTERNAL_MMX(mm_flags)) {
if (EXTERNAL_MMXEXT(mm_flags)) {
if (EXTERNAL_SSSE3(mm_flags) && ARCH_X86_64) {
EPEL_LI... | {
"code": [],
"line_no": []
} | void FUNC_0(HEVCDSPContext *VAR_0, const int VAR_1)
{
int VAR_2 = av_get_cpu_flags();
if (VAR_1 == 8) {
if (EXTERNAL_MMX(VAR_2)) {
if (EXTERNAL_MMXEXT(VAR_2)) {
if (EXTERNAL_SSSE3(VAR_2) && ARCH_X86_64) {
EPEL_LINKS(VAR_0->put_hevc_epel, 0, ... | [
"void FUNC_0(HEVCDSPContext *VAR_0, const int VAR_1)\n{",
"int VAR_2 = av_get_cpu_flags();",
"if (VAR_1 == 8) {",
"if (EXTERNAL_MMX(VAR_2)) {",
"if (EXTERNAL_MMXEXT(VAR_2)) {",
"if (EXTERNAL_SSSE3(VAR_2) && ARCH_X86_64) {",
"EPEL_LINKS(VAR_0->put_hevc_epel, 0, 0, pel_pixels, 8);",
"EPEL_LINKS(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
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53... |
6,482 | static void postfilter(EVRCContext *e, float *in, const float *coeff,
float *out, int idx, const struct PfCoeff *pfc,
int length)
{
float wcoef1[FILTER_ORDER], wcoef2[FILTER_ORDER],
scratch[SUBFRAME_SIZE], temp[SUBFRAME_SIZE],
mem[SUBFRAME_SIZE... | false | FFmpeg | 5ae484e350e4f1b20b31802dac59ca3519627c0a | static void postfilter(EVRCContext *e, float *in, const float *coeff,
float *out, int idx, const struct PfCoeff *pfc,
int length)
{
float wcoef1[FILTER_ORDER], wcoef2[FILTER_ORDER],
scratch[SUBFRAME_SIZE], temp[SUBFRAME_SIZE],
mem[SUBFRAME_SIZE... | {
"code": [],
"line_no": []
} | static void FUNC_0(EVRCContext *VAR_0, float *VAR_1, const float *VAR_2,
float *VAR_3, int VAR_4, const struct PfCoeff *VAR_5,
int VAR_6)
{
float VAR_7[FILTER_ORDER], wcoef2[FILTER_ORDER],
scratch[SUBFRAME_SIZE], temp[SUBFRAME_SIZE],
mem[SUBFRA... | [
"static void FUNC_0(EVRCContext *VAR_0, float *VAR_1, const float *VAR_2,\nfloat *VAR_3, int VAR_4, const struct PfCoeff *VAR_5,\nint VAR_6)\n{",
"float VAR_7[FILTER_ORDER], wcoef2[FILTER_ORDER],\nscratch[SUBFRAME_SIZE], temp[SUBFRAME_SIZE],\nmem[SUBFRAME_SIZE];",
"float VAR_8 = 0.0, VAR_9 = 0.0, VAR_10, VAR_11... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
31
],
[
33
],
[
35,
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
53
],
[
59
],
[
61
],
[... |
6,483 | int ff_get_best_fcode(MpegEncContext * s, int16_t (*mv_table)[2], int type)
{
int f_code;
if(s->me_method>=ME_EPZS){
int mv_num[8];
int i, y;
int loose=0;
UINT8 * fcode_tab= s->fcode_tab;
for(i=0; i<8; i++) mv_num[i]=0;
for(y=0; y<s->mb_height; y++)... | false | FFmpeg | 0d21a84605bad4e75dacb8196e5859902ed36f01 | int ff_get_best_fcode(MpegEncContext * s, int16_t (*mv_table)[2], int type)
{
int f_code;
if(s->me_method>=ME_EPZS){
int mv_num[8];
int i, y;
int loose=0;
UINT8 * fcode_tab= s->fcode_tab;
for(i=0; i<8; i++) mv_num[i]=0;
for(y=0; y<s->mb_height; y++)... | {
"code": [],
"line_no": []
} | int FUNC_0(MpegEncContext * VAR_0, VAR_1 (*mv_table)[2], int VAR_2)
{
int VAR_3;
if(VAR_0->me_method>=ME_EPZS){
int VAR_4[8];
int VAR_5, VAR_6;
int VAR_7=0;
UINT8 * fcode_tab= VAR_0->fcode_tab;
for(VAR_5=0; VAR_5<8; VAR_5++) VAR_4[VAR_5]=0;
for(VAR_... | [
"int FUNC_0(MpegEncContext * VAR_0, VAR_1 (*mv_table)[2], int VAR_2)\n{",
"int VAR_3;",
"if(VAR_0->me_method>=ME_EPZS){",
"int VAR_4[8];",
"int VAR_5, VAR_6;",
"int VAR_7=0;",
"UINT8 * fcode_tab= VAR_0->fcode_tab;",
"for(VAR_5=0; VAR_5<8; VAR_5++) VAR_4[VAR_5]=0;",
"for(VAR_6=0; VAR_6<VAR_0->mb_heig... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49... |
6,484 | static int mov_read_stts(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
unsigned int i, entries;
int64_t duration=0;
int64_t total_sample_count=0;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams-1];
sc = ... | false | FFmpeg | 9888ffb1ce5e0a17f711b01933d504c72ea29d3b | static int mov_read_stts(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
unsigned int i, entries;
int64_t duration=0;
int64_t total_sample_count=0;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams-1];
sc = ... | {
"code": [],
"line_no": []
} | static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)
{
AVStream *st;
MOVStreamContext *sc;
unsigned int VAR_3, VAR_4;
int64_t duration=0;
int64_t total_sample_count=0;
if (VAR_0->fc->nb_streams < 1)
return 0;
st = VAR_0->fc->streams[VAR_0->fc->nb_streams... | [
"static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{",
"AVStream *st;",
"MOVStreamContext *sc;",
"unsigned int VAR_3, VAR_4;",
"int64_t duration=0;",
"int64_t total_sample_count=0;",
"if (VAR_0->fc->nb_streams < 1)\nreturn 0;",
"st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
41,
43
],
[
45,
47
],
[
51
],
[
53,
55
],
[... |
6,485 | static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
{
CropContext *crop = link->dst->priv;
AVFilterPicRef *ref2 = avfilter_ref_pic(picref, ~0);
int i;
ref2->w = crop->w;
ref2->h = crop->h;
ref2->data[0] += crop->y * ref2->linesize[0];
ref2->data[0] +... | false | FFmpeg | ef9f8dd7305e39f5579b33abeec425c11f4f1b6d | static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
{
CropContext *crop = link->dst->priv;
AVFilterPicRef *ref2 = avfilter_ref_pic(picref, ~0);
int i;
ref2->w = crop->w;
ref2->h = crop->h;
ref2->data[0] += crop->y * ref2->linesize[0];
ref2->data[0] +... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFilterLink *VAR_0, AVFilterPicRef *VAR_1)
{
CropContext *crop = VAR_0->dst->priv;
AVFilterPicRef *ref2 = avfilter_ref_pic(VAR_1, ~0);
int VAR_2;
ref2->w = crop->w;
ref2->h = crop->h;
ref2->data[0] += crop->y * ref2->linesize[0];
ref2->data[0] +=... | [
"static void FUNC_0(AVFilterLink *VAR_0, AVFilterPicRef *VAR_1)\n{",
"CropContext *crop = VAR_0->dst->priv;",
"AVFilterPicRef *ref2 = avfilter_ref_pic(VAR_1, ~0);",
"int VAR_2;",
"ref2->w = crop->w;",
"ref2->h = crop->h;",
"ref2->data[0] += crop->y * ref2->linesize[0];",
"ref2->data[0] +... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25,
27,
29,
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
53
],
[
55
... |
6,487 | static void lsi_execute_script(LSIState *s)
{
uint32_t insn;
uint32_t addr;
int opcode;
s->istat1 |= LSI_ISTAT1_SRUN;
again:
insn = read_dword(s, s->dsp);
addr = read_dword(s, s->dsp + 4);
DPRINTF("SCRIPTS dsp=%08x opcode %08x arg %08x\n", s->dsp, insn, addr);
s->dsps = addr;... | true | qemu | ee4d919f30f1378cda697dd94d5a21b2a7f4d90d | static void lsi_execute_script(LSIState *s)
{
uint32_t insn;
uint32_t addr;
int opcode;
s->istat1 |= LSI_ISTAT1_SRUN;
again:
insn = read_dword(s, s->dsp);
addr = read_dword(s, s->dsp + 4);
DPRINTF("SCRIPTS dsp=%08x opcode %08x arg %08x\n", s->dsp, insn, addr);
s->dsps = addr;... | {
"code": [
" if (s->istat1 & LSI_ISTAT1_SRUN && !s->waiting) {"
],
"line_no": [
727
]
} | static void FUNC_0(LSIState *VAR_0)
{
uint32_t insn;
uint32_t addr;
int VAR_1;
VAR_0->istat1 |= LSI_ISTAT1_SRUN;
again:
insn = read_dword(VAR_0, VAR_0->dsp);
addr = read_dword(VAR_0, VAR_0->dsp + 4);
DPRINTF("SCRIPTS dsp=%08x VAR_1 %08x arg %08x\VAR_6", VAR_0->dsp, insn, addr);
... | [
"static void FUNC_0(LSIState *VAR_0)\n{",
"uint32_t insn;",
"uint32_t addr;",
"int VAR_1;",
"VAR_0->istat1 |= LSI_ISTAT1_SRUN;",
"again:\ninsn = read_dword(VAR_0, VAR_0->dsp);",
"addr = read_dword(VAR_0, VAR_0->dsp + 4);",
"DPRINTF(\"SCRIPTS dsp=%08x VAR_1 %08x arg %08x\\VAR_6\", VAR_0->dsp, insn, add... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
6,488 | static void handle_arg_cpu(const char *arg)
{
cpu_model = strdup(arg);
if (cpu_model == NULL || strcmp(cpu_model, "?") == 0) {
/* XXX: implement xxx_cpu_list for targets that still miss it */
#if defined(cpu_list_id)
cpu_list_id(stdout, &fprintf, "");
#elif defined(cpu_list)
cpu_... | true | qemu | c8057f951d64de93bfd01569c0a725baa9f94372 | static void handle_arg_cpu(const char *arg)
{
cpu_model = strdup(arg);
if (cpu_model == NULL || strcmp(cpu_model, "?") == 0) {
#if defined(cpu_list_id)
cpu_list_id(stdout, &fprintf, "");
#elif defined(cpu_list)
cpu_list(stdout, &fprintf);
#endif
exit(1);
}
}
| {
"code": [
" if (cpu_model == NULL || strcmp(cpu_model, \"?\") == 0) {"
],
"line_no": [
7
]
} | static void FUNC_0(const char *VAR_0)
{
cpu_model = strdup(VAR_0);
if (cpu_model == NULL || strcmp(cpu_model, "?") == 0) {
#if defined(cpu_list_id)
cpu_list_id(stdout, &fprintf, "");
#elif defined(cpu_list)
cpu_list(stdout, &fprintf);
#endif
exit(1);
}
}
| [
"static void FUNC_0(const char *VAR_0)\n{",
"cpu_model = strdup(VAR_0);",
"if (cpu_model == NULL || strcmp(cpu_model, \"?\") == 0) {",
"#if defined(cpu_list_id)\ncpu_list_id(stdout, &fprintf, \"\");",
"#elif defined(cpu_list)\ncpu_list(stdout, &fprintf);",
"#endif\nexit(1);",
"}",
"}"
] | [
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15,
17
],
[
19,
21
],
[
23
],
[
25
]
] |
6,490 | static int run_test(AVCodec *enc, AVCodec *dec, AVCodecContext *enc_ctx,
AVCodecContext *dec_ctx)
{
AVPacket enc_pkt;
AVFrame *in_frame, *out_frame;
uint8_t *raw_in = NULL, *raw_out = NULL;
int in_offset = 0, out_offset = 0;
int frame_data_size = 0;
int result = 0;
... | true | FFmpeg | 86fb20324690a80f763b7de6d78749c17ad3f482 | static int run_test(AVCodec *enc, AVCodec *dec, AVCodecContext *enc_ctx,
AVCodecContext *dec_ctx)
{
AVPacket enc_pkt;
AVFrame *in_frame, *out_frame;
uint8_t *raw_in = NULL, *raw_out = NULL;
int in_offset = 0, out_offset = 0;
int frame_data_size = 0;
int result = 0;
... | {
"code": [
" int frame_data_size = 0;",
" memcpy(raw_in + in_offset, in_frame->data[0], in_frame->linesize[0]);",
" in_offset += in_frame->linesize[0];",
" memcpy(raw_out + out_offset, out_frame->data[0], out_frame->linesize[0]);",
" out_offset += ou... | static int FUNC_0(AVCodec *VAR_0, AVCodec *VAR_1, AVCodecContext *VAR_2,
AVCodecContext *VAR_3)
{
AVPacket enc_pkt;
AVFrame *in_frame, *out_frame;
uint8_t *raw_in = NULL, *raw_out = NULL;
int VAR_4 = 0, VAR_5 = 0;
int VAR_6 = 0;
int VAR_7 = 0;
int VAR_8 = 0;
... | [
"static int FUNC_0(AVCodec *VAR_0, AVCodec *VAR_1, AVCodecContext *VAR_2,\nAVCodecContext *VAR_3)\n{",
"AVPacket enc_pkt;",
"AVFrame *in_frame, *out_frame;",
"uint8_t *raw_in = NULL, *raw_out = NULL;",
"int VAR_4 = 0, VAR_5 = 0;",
"int VAR_6 = 0;",
"int VAR_7 = 0;",
"int VAR_8 = 0;",
"int VAR_9 = 0;... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
6,492 | static av_cold int pcm_encode_init(AVCodecContext *avctx)
{
avctx->frame_size = 0;
switch(avctx->codec->id) {
case CODEC_ID_PCM_ALAW:
pcm_alaw_tableinit();
break;
case CODEC_ID_PCM_MULAW:
pcm_ulaw_tableinit();
break;
default:
break;
}
av... | true | FFmpeg | a8bdf2405c6027f45a899eaaa6ba74e97c1c2701 | static av_cold int pcm_encode_init(AVCodecContext *avctx)
{
avctx->frame_size = 0;
switch(avctx->codec->id) {
case CODEC_ID_PCM_ALAW:
pcm_alaw_tableinit();
break;
case CODEC_ID_PCM_MULAW:
pcm_ulaw_tableinit();
break;
default:
break;
}
av... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
avctx->frame_size = 0;
switch(avctx->codec->id) {
case CODEC_ID_PCM_ALAW:
pcm_alaw_tableinit();
break;
case CODEC_ID_PCM_MULAW:
pcm_ulaw_tableinit();
break;
default:
break;
}
avctx->bits... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"avctx->frame_size = 0;",
"switch(avctx->codec->id) {",
"case CODEC_ID_PCM_ALAW:\npcm_alaw_tableinit();",
"break;",
"case CODEC_ID_PCM_MULAW:\npcm_ulaw_tableinit();",
"break;",
"default:\nbreak;",
"}",
"avctx->bits_per_coded_sample = av_get_bi... | [
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
],
[
39
],
[
41
]
] |
6,493 | static int vorbis_encode_frame(AVCodecContext *avccontext,
unsigned char *packets,
int buf_size, void *data)
{
vorbis_enc_context *venc = avccontext->priv_data;
const signed short *audio = data;
int samples = data ? avccontext->frame_size :... | true | FFmpeg | 1ba08c94f5bb4d1c3c2d3651b5e01edb4ce172e2 | static int vorbis_encode_frame(AVCodecContext *avccontext,
unsigned char *packets,
int buf_size, void *data)
{
vorbis_enc_context *venc = avccontext->priv_data;
const signed short *audio = data;
int samples = data ? avccontext->frame_size :... | {
"code": [
" floor_encode(venc, fc, &pb, posts, &venc->floor[i * samples], samples);",
" residue_encode(venc, &venc->residues[mapping->residue[mapping->mux[0]]],",
" &pb, venc->coeffs, samples, venc->channels);"
],
"line_no": [
67,
107,
109
]
} | static int FUNC_0(AVCodecContext *VAR_0,
unsigned char *VAR_1,
int VAR_2, void *VAR_3)
{
vorbis_enc_context *venc = VAR_0->priv_data;
const signed short *VAR_4 = VAR_3;
int VAR_5 = VAR_3 ? VAR_0->frame_size : 0;
vorbis_enc_mode *mode;
... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nunsigned char *VAR_1,\nint VAR_2, void *VAR_3)\n{",
"vorbis_enc_context *venc = VAR_0->priv_data;",
"const signed short *VAR_4 = VAR_3;",
"int VAR_5 = VAR_3 ? VAR_0->frame_size : 0;",
"vorbis_enc_mode *mode;",
"vorbis_enc_mapping *mapping;",
"PutBitContext pb;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25,
27
],
[
29
],
[
33
],
[
37
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[... |
6,494 | void net_tx_pkt_init(struct NetTxPkt **pkt, PCIDevice *pci_dev,
uint32_t max_frags, bool has_virt_hdr)
{
struct NetTxPkt *p = g_malloc0(sizeof *p);
p->pci_dev = pci_dev;
p->vec = g_malloc((sizeof *p->vec) *
(max_frags + NET_TX_PKT_PL_START_FRAG));
p->raw = g_malloc((sizeof *p->r... | true | qemu | 47882fa4975bf0b58dd74474329fdd7154e8f04c | void net_tx_pkt_init(struct NetTxPkt **pkt, PCIDevice *pci_dev,
uint32_t max_frags, bool has_virt_hdr)
{
struct NetTxPkt *p = g_malloc0(sizeof *p);
p->pci_dev = pci_dev;
p->vec = g_malloc((sizeof *p->vec) *
(max_frags + NET_TX_PKT_PL_START_FRAG));
p->raw = g_malloc((sizeof *p->r... | {
"code": [
" p->vec = g_malloc((sizeof *p->vec) *",
" (max_frags + NET_TX_PKT_PL_START_FRAG));",
" p->raw = g_malloc((sizeof *p->raw) * max_frags);"
],
"line_no": [
15,
17,
21
]
} | void FUNC_0(struct NetTxPkt **VAR_0, PCIDevice *VAR_1,
uint32_t VAR_2, bool VAR_3)
{
struct NetTxPkt *VAR_4 = g_malloc0(sizeof *VAR_4);
VAR_4->VAR_1 = VAR_1;
VAR_4->vec = g_malloc((sizeof *VAR_4->vec) *
(VAR_2 + NET_TX_PKT_PL_START_FRAG));
VAR_4->raw = g_malloc((sizeof *VAR_4->r... | [
"void FUNC_0(struct NetTxPkt **VAR_0, PCIDevice *VAR_1,\nuint32_t VAR_2, bool VAR_3)\n{",
"struct NetTxPkt *VAR_4 = g_malloc0(sizeof *VAR_4);",
"VAR_4->VAR_1 = VAR_1;",
"VAR_4->vec = g_malloc((sizeof *VAR_4->vec) *\n(VAR_2 + NET_TX_PKT_PL_START_FRAG));",
"VAR_4->raw = g_malloc((sizeof *VAR_4->raw) * VAR_2);... | [
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
15,
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
43
],
[
45
]
] |
6,496 | static int xen_pt_cmd_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry,
uint16_t *val, uint16_t dev_value,
uint16_t valid_mask)
{
XenPTRegInfo *reg = cfg_entry->reg;
uint16_t writable_mask = 0;
uint16_t throughable_mask = 0;
... | true | qemu | 81b23ef82cd1be29ca3d69ab7e98b5b5e55926ce | static int xen_pt_cmd_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry,
uint16_t *val, uint16_t dev_value,
uint16_t valid_mask)
{
XenPTRegInfo *reg = cfg_entry->reg;
uint16_t writable_mask = 0;
uint16_t throughable_mask = 0;
... | {
"code": [
" XenPTRegInfo *reg = cfg_entry->reg;",
" uint16_t emu_mask = reg->emu_mask;",
" if (s->is_virtfn) {",
" emu_mask |= PCI_COMMAND_MEMORY;",
" return 0;",
" uint16_t emu_mask = reg->emu_mask;",
" if (s->is_virtfn) {",
" emu_mask |= PCI_COMMAND_... | static int FUNC_0(XenPCIPassthroughState *VAR_0, XenPTReg *VAR_1,
uint16_t *VAR_2, uint16_t VAR_3,
uint16_t VAR_4)
{
XenPTRegInfo *reg = VAR_1->reg;
uint16_t writable_mask = 0;
uint16_t throughable_mask = 0;
uint16_t emu_mask = reg->... | [
"static int FUNC_0(XenPCIPassthroughState *VAR_0, XenPTReg *VAR_1,\nuint16_t *VAR_2, uint16_t VAR_3,\nuint16_t VAR_4)\n{",
"XenPTRegInfo *reg = VAR_1->reg;",
"uint16_t writable_mask = 0;",
"uint16_t throughable_mask = 0;",
"uint16_t emu_mask = reg->emu_mask;",
"if (VAR_0->is_virtfn) {",
"emu_mask |= PCI... | [
0,
1,
0,
0,
1,
1,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
29
],
[
31
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
57
... |
6,497 | static int rv34_decode_cbp(GetBitContext *gb, RV34VLC *vlc, int table)
{
int pattern, code, cbp=0;
int ones;
static const int cbp_masks[3] = {0x100000, 0x010000, 0x110000};
static const int shifts[4] = { 0, 2, 8, 10 };
const int *curshift = shifts;
int i, t, mask;
code = get_vlc2(g... | false | FFmpeg | 3faa303a47e0c3b59a53988e0f76018930c6cb1a | static int rv34_decode_cbp(GetBitContext *gb, RV34VLC *vlc, int table)
{
int pattern, code, cbp=0;
int ones;
static const int cbp_masks[3] = {0x100000, 0x010000, 0x110000};
static const int shifts[4] = { 0, 2, 8, 10 };
const int *curshift = shifts;
int i, t, mask;
code = get_vlc2(g... | {
"code": [],
"line_no": []
} | static int FUNC_0(GetBitContext *VAR_0, RV34VLC *VAR_1, int VAR_2)
{
int VAR_3, VAR_4, VAR_5=0;
int VAR_6;
static const int VAR_7[3] = {0x100000, 0x010000, 0x110000};
static const int VAR_8[4] = { 0, 2, 8, 10 };
const int *VAR_9 = VAR_8;
int VAR_10, VAR_11, VAR_12;
VAR_4 = get_vlc2... | [
"static int FUNC_0(GetBitContext *VAR_0, RV34VLC *VAR_1, int VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5=0;",
"int VAR_6;",
"static const int VAR_7[3] = {0x100000, 0x010000, 0x110000};",
"static const int VAR_8[4] = { 0, 2, 8, 10 };",
"const int *VAR_9 = VAR_8;",
"int VAR_10, VAR_11, VAR_12;",
"VAR_4 = get_v... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33,
35
],
[
37
],
[
41
],
[
43
],
[
45,
47
],
[
49,
51
],
[... |
6,498 | static int mtv_read_header(AVFormatContext *s)
{
MTVDemuxContext *mtv = s->priv_data;
AVIOContext *pb = s->pb;
AVStream *st;
unsigned int audio_subsegments;
avio_skip(pb, 3);
mtv->file_size = avio_rl32(pb);
mtv->segments = avio_rl32(pb);
avio_skip... | true | FFmpeg | f64d7e919eabd427f3e6dd4a1219e448c78deb42 | static int mtv_read_header(AVFormatContext *s)
{
MTVDemuxContext *mtv = s->priv_data;
AVIOContext *pb = s->pb;
AVStream *st;
unsigned int audio_subsegments;
avio_skip(pb, 3);
mtv->file_size = avio_rl32(pb);
mtv->segments = avio_rl32(pb);
avio_skip... | {
"code": [
" if(!mtv->img_width)",
" if(!mtv->img_height)"
],
"line_no": [
43,
51
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
MTVDemuxContext *mtv = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
AVStream *st;
unsigned int VAR_1;
avio_skip(pb, 3);
mtv->file_size = avio_rl32(pb);
mtv->segments = avio_rl32(pb);
avio_skip(pb, 32);... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"MTVDemuxContext *mtv = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"AVStream *st;",
"unsigned int VAR_1;",
"avio_skip(pb, 3);",
"mtv->file_size = avio_rl32(pb);",
"mtv->segments = avio_rl32(pb);",
"avio_skip(pb, 3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
43,
45,
47
],
[
51,
53,
55
... |
6,499 | static int check_refcounts_l2(BlockDriverState *bs,
uint16_t *refcount_table, int refcount_table_size, int64_t l2_offset,
int check_copied)
{
BDRVQcowState *s = bs->opaque;
uint64_t *l2_table, offset;
int i, l2_size, nb_csectors, refcount;
int errors = 0;
/* Read L2 table from disk... | true | qemu | 9ac228e02cf16202547e7025ef300369e0db7781 | static int check_refcounts_l2(BlockDriverState *bs,
uint16_t *refcount_table, int refcount_table_size, int64_t l2_offset,
int check_copied)
{
BDRVQcowState *s = bs->opaque;
uint64_t *l2_table, offset;
int i, l2_size, nb_csectors, refcount;
int errors = 0;
l2_size = s->l2_size... | {
"code": [
" int errors = 0;",
" return errors;",
"static int check_refcounts_l2(BlockDriverState *bs,",
" int errors = 0;",
" errors++;",
" errors += inc_refcounts(bs, refcount_table,",
" refcount_table_size,",
"... | static int FUNC_0(BlockDriverState *VAR_0,
uint16_t *VAR_1, int VAR_2, int64_t VAR_3,
int VAR_4)
{
BDRVQcowState *s = VAR_0->opaque;
uint64_t *l2_table, offset;
int VAR_5, VAR_6, VAR_7, VAR_8;
int VAR_9 = 0;
VAR_6 = s->VAR_6 * sizeof(uint64_t);
l2_table = qemu_malloc(VAR... | [
"static int FUNC_0(BlockDriverState *VAR_0,\nuint16_t *VAR_1, int VAR_2, int64_t VAR_3,\nint VAR_4)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"uint64_t *l2_table, offset;",
"int VAR_5, VAR_6, VAR_7, VAR_8;",
"int VAR_9 = 0;",
"VAR_6 = s->VAR_6 * sizeof(uint64_t);",
"l2_table = qemu_malloc(VAR_6);",
"i... | [
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
27,
29
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47,
49,
51
],
[
53
],
[
55
],
[
57
],
[... |
6,501 | static int bink_decode_plane(BinkContext *c, AVFrame *frame, GetBitContext *gb,
int plane_idx, int is_chroma)
{
int blk, ret;
int i, j, bx, by;
uint8_t *dst, *prev, *ref, *ref_start, *ref_end;
int v, col[2];
const uint8_t *scan;
int xoff, yoff;
LOCAL_ALI... | false | FFmpeg | 7f596368a404363d72b1be6d16c51420a71bc523 | static int bink_decode_plane(BinkContext *c, AVFrame *frame, GetBitContext *gb,
int plane_idx, int is_chroma)
{
int blk, ret;
int i, j, bx, by;
uint8_t *dst, *prev, *ref, *ref_start, *ref_end;
int v, col[2];
const uint8_t *scan;
int xoff, yoff;
LOCAL_ALI... | {
"code": [],
"line_no": []
} | static int FUNC_0(BinkContext *VAR_0, AVFrame *VAR_1, GetBitContext *VAR_2,
int VAR_3, int VAR_4)
{
int VAR_5, VAR_6;
int VAR_7, VAR_8, VAR_9, VAR_10;
uint8_t *dst, *prev, *ref, *ref_start, *ref_end;
int VAR_11, VAR_12[2];
const uint8_t *VAR_13;
int VAR_14, V... | [
"static int FUNC_0(BinkContext *VAR_0, AVFrame *VAR_1, GetBitContext *VAR_2,\nint VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6;",
"int VAR_7, VAR_8, VAR_9, VAR_10;",
"uint8_t *dst, *prev, *ref, *ref_start, *ref_end;",
"int VAR_11, VAR_12[2];",
"const uint8_t *VAR_13;",
"int VAR_14, VAR_15;",
"LOCAL_ALIGNE... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47,
49
... |
6,502 | static void unterminated_string(void)
{
QObject *obj = qobject_from_json("\"abc", NULL);
g_assert(obj == NULL);
}
| true | qemu | aec4b054ea36c53c8b887da99f20010133b84378 | static void unterminated_string(void)
{
QObject *obj = qobject_from_json("\"abc", NULL);
g_assert(obj == NULL);
}
| {
"code": [
" QObject *obj = qobject_from_json(\"\\\"abc\", NULL);"
],
"line_no": [
5
]
} | static void FUNC_0(void)
{
QObject *obj = qobject_from_json("\"abc", NULL);
g_assert(obj == NULL);
}
| [
"static void FUNC_0(void)\n{",
"QObject *obj = qobject_from_json(\"\\\"abc\", NULL);",
"g_assert(obj == NULL);",
"}"
] | [
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
6,503 | int kvm_coalesce_mmio_region(target_phys_addr_t start, ram_addr_t size)
{
int ret = -ENOSYS;
#ifdef KVM_CAP_COALESCED_MMIO
KVMState *s = kvm_state;
if (s->coalesced_mmio) {
struct kvm_coalesced_mmio_zone zone;
zone.addr = start;
zone.size = size;
ret = kvm_vm_i... | true | qemu | 94a8d39afd8ccfdbf578af04c3385fdb5f545af1 | int kvm_coalesce_mmio_region(target_phys_addr_t start, ram_addr_t size)
{
int ret = -ENOSYS;
#ifdef KVM_CAP_COALESCED_MMIO
KVMState *s = kvm_state;
if (s->coalesced_mmio) {
struct kvm_coalesced_mmio_zone zone;
zone.addr = start;
zone.size = size;
ret = kvm_vm_i... | {
"code": [
"#endif",
"#endif",
"#endif",
"#ifdef KVM_CAP_COALESCED_MMIO",
"#endif",
"#ifdef KVM_CAP_COALESCED_MMIO",
"#endif",
"#ifdef KVM_CAP_COALESCED_MMIO",
"#endif",
"#ifdef KVM_CAP_COALESCED_MMIO",
"#endif",
"#ifdef KVM_CAP_COALESCED_MMIO",
"#endif",
"#ifd... | int FUNC_0(target_phys_addr_t VAR_0, ram_addr_t VAR_1)
{
int VAR_2 = -ENOSYS;
#ifdef KVM_CAP_COALESCED_MMIO
KVMState *s = kvm_state;
if (s->coalesced_mmio) {
struct kvm_coalesced_mmio_zone zone;
zone.addr = VAR_0;
zone.VAR_1 = VAR_1;
VAR_2 = kvm_vm_ioctl(s, KVM... | [
"int FUNC_0(target_phys_addr_t VAR_0, ram_addr_t VAR_1)\n{",
"int VAR_2 = -ENOSYS;",
"#ifdef KVM_CAP_COALESCED_MMIO\nKVMState *s = kvm_state;",
"if (s->coalesced_mmio) {",
"struct kvm_coalesced_mmio_zone zone;",
"zone.addr = VAR_0;",
"zone.VAR_1 = VAR_1;",
"VAR_2 = kvm_vm_ioctl(s, KVM_REGISTER_COALESC... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29,
33
],
[
35
]
] |
6,505 | void do_srad (void)
{
int64_t ret;
if (likely(!(T1 & 0x40UL))) {
if (likely((uint64_t)T1 != 0)) {
ret = (int64_t)T0 >> (T1 & 0x3FUL);
if (likely(ret >= 0 || ((int64_t)T0 & ((1 << T1) - 1)) == 0)) {
xer_ca = 0;
} else {
xer_ca... | true | qemu | 6f2d8978728c48ca46f5c01835438508aace5c64 | void do_srad (void)
{
int64_t ret;
if (likely(!(T1 & 0x40UL))) {
if (likely((uint64_t)T1 != 0)) {
ret = (int64_t)T0 >> (T1 & 0x3FUL);
if (likely(ret >= 0 || ((int64_t)T0 & ((1 << T1) - 1)) == 0)) {
xer_ca = 0;
} else {
xer_ca... | {
"code": [
" ret = (-1) * ((uint64_t)T0 >> 63);"
],
"line_no": [
35
]
} | void FUNC_0 (void)
{
int64_t ret;
if (likely(!(T1 & 0x40UL))) {
if (likely((uint64_t)T1 != 0)) {
ret = (int64_t)T0 >> (T1 & 0x3FUL);
if (likely(ret >= 0 || ((int64_t)T0 & ((1 << T1) - 1)) == 0)) {
xer_ca = 0;
} else {
xer_ca ... | [
"void FUNC_0 (void)\n{",
"int64_t ret;",
"if (likely(!(T1 & 0x40UL))) {",
"if (likely((uint64_t)T1 != 0)) {",
"ret = (int64_t)T0 >> (T1 & 0x3FUL);",
"if (likely(ret >= 0 || ((int64_t)T0 & ((1 << T1) - 1)) == 0)) {",
"xer_ca = 0;",
"} else {",
"xer_ca = 1;",
"}",
"} else {",
"ret = T0;",
"xer... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43... |
6,506 | static void test_visitor_in_errors(TestInputVisitorData *data,
const void *unused)
{
TestStruct *p = NULL;
Error *err = NULL;
Visitor *v;
v = visitor_input_test_init(data, "{ 'integer': false, 'boolean': 'foo', 'string': -42 }");
visit_type_TestStruct(v,... | true | qemu | dd5ee2c2d3e3a17647ddd9bfa97935b8cb5dfa40 | static void test_visitor_in_errors(TestInputVisitorData *data,
const void *unused)
{
TestStruct *p = NULL;
Error *err = NULL;
Visitor *v;
v = visitor_input_test_init(data, "{ 'integer': false, 'boolean': 'foo', 'string': -42 }");
visit_type_TestStruct(v,... | {
"code": [
" v = visitor_input_test_init(data, \"{ 'integer': false, 'boolean': 'foo', 'string': -42 }\");"
],
"line_no": [
15
]
} | static void FUNC_0(TestInputVisitorData *VAR_0,
const void *VAR_1)
{
TestStruct *p = NULL;
Error *err = NULL;
Visitor *v;
v = visitor_input_test_init(VAR_0, "{ 'integer': false, 'boolean': 'foo', 'string': -42 }");
visit_type_TestStruct(v, &p, NULL, &err... | [
"static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{",
"TestStruct *p = NULL;",
"Error *err = NULL;",
"Visitor *v;",
"v = visitor_input_test_init(VAR_0, \"{ 'integer': false, 'boolean': 'foo', 'string': -42 }\");",
"visit_type_TestStruct(v, &p, NULL, &err);",
"error_free_or_abort(&err... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
27
],
[
31
],
[
33
],
[
35
]
] |
6,510 | static int wmavoice_decode_packet(AVCodecContext *ctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
WMAVoiceContext *s = ctx->priv_data;
GetBitContext *gb = &s->gb;
int size, res, pos;
/* Packets are sometimes a multiple of ctx->block_align, with a packet
... | false | FFmpeg | 2a4700a4f03280fa8ba4fc0f8a9987bb550f0d1e | static int wmavoice_decode_packet(AVCodecContext *ctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
WMAVoiceContext *s = ctx->priv_data;
GetBitContext *gb = &s->gb;
int size, res, pos;
for (size = avpkt->size; size > ctx->block_align; size -=... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
WMAVoiceContext *s = VAR_0->priv_data;
GetBitContext *gb = &s->gb;
int VAR_4, VAR_5, VAR_6;
for (VAR_4 = VAR_3->VAR_4; VAR_4 > VAR_0->block_align; VAR_4 -= VAR_0->... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"WMAVoiceContext *s = VAR_0->priv_data;",
"GetBitContext *gb = &s->gb;",
"int VAR_4, VAR_5, VAR_6;",
"for (VAR_4 = VAR_3->VAR_4; VAR_4 > VAR_0->block_align; VAR_4 -= VAR_0->block_align);",
"if (!VAR_4) {",
"*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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
45
],
[
47,
49
],
[
59
],
[
61
],
[
63
],
[
65
],
[
67
],
[
69
],
[
71,... |
6,511 | static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
{
MOVContext *mov = s->priv_data;
MOVStreamContext *sc;
AVIndexEntry *sample;
AVStream *st = NULL;
int ret;
mov->fc = s;
retry:
sample = mov_find_next_sample(s, &st);
if (!sample) {
mov->found_mdat = 0;
... | false | FFmpeg | c886dd2f5875e01a5949fddd0388c965c7766cfb | static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
{
MOVContext *mov = s->priv_data;
MOVStreamContext *sc;
AVIndexEntry *sample;
AVStream *st = NULL;
int ret;
mov->fc = s;
retry:
sample = mov_find_next_sample(s, &st);
if (!sample) {
mov->found_mdat = 0;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
MOVContext *mov = VAR_0->priv_data;
MOVStreamContext *sc;
AVIndexEntry *sample;
AVStream *st = NULL;
int VAR_2;
mov->fc = VAR_0;
retry:
sample = mov_find_next_sample(VAR_0, &st);
if (!sample) {
mov->found_md... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"MOVContext *mov = VAR_0->priv_data;",
"MOVStreamContext *sc;",
"AVIndexEntry *sample;",
"AVStream *st = NULL;",
"int VAR_2;",
"mov->fc = VAR_0;",
"retry:\nsample = mov_find_next_sample(VAR_0, &st);",
"if (!sample) {",
"mov->found_md... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[... |
6,512 | static int test_vector_fmac_scalar(AVFloatDSPContext *fdsp, AVFloatDSPContext *cdsp,
const float *v1, const float *src0, float scale)
{
LOCAL_ALIGNED(32, float, cdst, [LEN]);
LOCAL_ALIGNED(32, float, odst, [LEN]);
int ret;
memcpy(cdst, v1, LEN * sizeof(*v1));
... | false | FFmpeg | e53c9065ca08a9153ecc73a6a8940bcc6d667e58 | static int test_vector_fmac_scalar(AVFloatDSPContext *fdsp, AVFloatDSPContext *cdsp,
const float *v1, const float *src0, float scale)
{
LOCAL_ALIGNED(32, float, cdst, [LEN]);
LOCAL_ALIGNED(32, float, odst, [LEN]);
int ret;
memcpy(cdst, v1, LEN * sizeof(*v1));
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFloatDSPContext *VAR_0, AVFloatDSPContext *VAR_1,
const float *VAR_2, const float *VAR_3, float VAR_4)
{
LOCAL_ALIGNED(32, float, cdst, [LEN]);
LOCAL_ALIGNED(32, float, odst, [LEN]);
int VAR_5;
memcpy(cdst, VAR_2, LEN * sizeof(*VAR_2));
... | [
"static int FUNC_0(AVFloatDSPContext *VAR_0, AVFloatDSPContext *VAR_1,\nconst float *VAR_2, const float *VAR_3, float VAR_4)\n{",
"LOCAL_ALIGNED(32, float, cdst, [LEN]);",
"LOCAL_ALIGNED(32, float, odst, [LEN]);",
"int VAR_5;",
"memcpy(cdst, VAR_2, LEN * sizeof(*VAR_2));",
"memcpy(odst, VAR_2, LEN * sizeo... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27,
29
],
[
33
],
[
35
]
] |
6,513 | static void add_pc_test_cases(void)
{
QDict *response, *minfo;
QList *list;
const QListEntry *p;
QObject *qobj;
QString *qstr;
const char *mname, *path;
PCTestData *data;
qtest_start("-machine none");
response = qmp("{ 'execute': 'query-machines' }");
g_assert(respon... | true | qemu | 34e46f604d3cf26144b4e02989f2f096e3dc2a41 | static void add_pc_test_cases(void)
{
QDict *response, *minfo;
QList *list;
const QListEntry *p;
QObject *qobj;
QString *qstr;
const char *mname, *path;
PCTestData *data;
qtest_start("-machine none");
response = qmp("{ 'execute': 'query-machines' }");
g_assert(respon... | {
"code": [
" const char *mname, *path;",
" data->machine = mname;",
" qtest_add_data_func(path, data, test_pc_without_cpu_add);",
" qtest_add_data_func(path, data, test_pc_with_cpu_add);"
],
"line_no": [
15,
57,
97,
107
]
} | static void FUNC_0(void)
{
QDict *response, *minfo;
QList *list;
const QListEntry *VAR_0;
QObject *qobj;
QString *qstr;
const char *VAR_1, *VAR_2;
PCTestData *data;
qtest_start("-machine none");
response = qmp("{ 'execute': 'query-machines' }");
g_assert(response);
... | [
"static void FUNC_0(void)\n{",
"QDict *response, *minfo;",
"QList *list;",
"const QListEntry *VAR_0;",
"QObject *qobj;",
"QString *qstr;",
"const char *VAR_1, *VAR_2;",
"PCTestData *data;",
"qtest_start(\"-machine none\");",
"response = qmp(\"{ 'execute': 'query-machines' }\");",
"g_assert(respo... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
6,514 | static void test_qga_set_time(gconstpointer fix)
{
const TestFixture *fixture = fix;
QDict *ret;
int64_t current, time;
gchar *cmd;
/* get current time */
ret = qmp_fd(fixture->fd, "{'execute': 'guest-get-time'}");
g_assert_nonnull(ret);
qmp_assert_no_error(ret);
current ... | true | qemu | f94b3f64e6572c8cec73a538588f7cd754bcfa88 | static void test_qga_set_time(gconstpointer fix)
{
const TestFixture *fixture = fix;
QDict *ret;
int64_t current, time;
gchar *cmd;
ret = qmp_fd(fixture->fd, "{'execute': 'guest-get-time'}");
g_assert_nonnull(ret);
qmp_assert_no_error(ret);
current = qdict_get_int(ret, "... | {
"code": [
"static void test_qga_set_time(gconstpointer fix)",
" const TestFixture *fixture = fix;",
" QDict *ret;",
" int64_t current, time;",
" gchar *cmd;",
" ret = qmp_fd(fixture->fd, \"{'execute': 'guest-get-time'}\");",
" g_assert_nonnull(ret);",
" qmp_asser... | static void FUNC_0(gconstpointer VAR_0)
{
const TestFixture *VAR_1 = VAR_0;
QDict *ret;
int64_t current, time;
gchar *cmd;
ret = qmp_fd(VAR_1->fd, "{'execute': 'guest-get-time'}");
g_assert_nonnull(ret);
qmp_assert_no_error(ret);
current = qdict_get_int(ret, "return");
... | [
"static void FUNC_0(gconstpointer VAR_0)\n{",
"const TestFixture *VAR_1 = VAR_0;",
"QDict *ret;",
"int64_t current, time;",
"gchar *cmd;",
"ret = qmp_fd(VAR_1->fd, \"{'execute': 'guest-get-time'}\");",
"g_assert_nonnull(ret);",
"qmp_assert_no_error(ret);",
"current = qdict_get_int(ret, \"return\");"... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
1,
1,
0,
1,
1,
1,
1,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
47
],
[
49
],
[
51
],
[
53
... |
6,516 | static void bus_set_realized(Object *obj, bool value, Error **errp)
{
BusState *bus = BUS(obj);
BusClass *bc = BUS_GET_CLASS(bus);
Error *local_err = NULL;
if (value && !bus->realized) {
if (bc->realize) {
bc->realize(bus, &local_err);
}
} else if (!value && bu... | true | qemu | 5942a19040fed313b316ab7b6e3d2d8e7b1625bb | static void bus_set_realized(Object *obj, bool value, Error **errp)
{
BusState *bus = BUS(obj);
BusClass *bc = BUS_GET_CLASS(bus);
Error *local_err = NULL;
if (value && !bus->realized) {
if (bc->realize) {
bc->realize(bus, &local_err);
}
} else if (!value && bu... | {
"code": [
" if (bc->unrealize) {"
],
"line_no": [
23
]
} | static void FUNC_0(Object *VAR_0, bool VAR_1, Error **VAR_2)
{
BusState *bus = BUS(VAR_0);
BusClass *bc = BUS_GET_CLASS(bus);
Error *local_err = NULL;
if (VAR_1 && !bus->realized) {
if (bc->realize) {
bc->realize(bus, &local_err);
}
} else if (!VAR_1 && bus->re... | [
"static void FUNC_0(Object *VAR_0, bool VAR_1, Error **VAR_2)\n{",
"BusState *bus = BUS(VAR_0);",
"BusClass *bc = BUS_GET_CLASS(bus);",
"Error *local_err = NULL;",
"if (VAR_1 && !bus->realized) {",
"if (bc->realize) {",
"bc->realize(bus, &local_err);",
"}",
"} else if (!VAR_1 && bus->realized) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
]
] |
6,518 | static inline void asv2_encode_block(ASV1Context *a, int16_t block[64])
{
int i;
int count = 0;
for (count = 63; count > 3; count--) {
const int index = ff_asv_scantab[count];
if ((block[index] * a->q_intra_matrix[index] + (1 << 15)) >> 16)
break;
}
count >>=... | true | FFmpeg | 0bb5ad7a06ebcda9102357f8755d18b63f56aa29 | static inline void asv2_encode_block(ASV1Context *a, int16_t block[64])
{
int i;
int count = 0;
for (count = 63; count > 3; count--) {
const int index = ff_asv_scantab[count];
if ((block[index] * a->q_intra_matrix[index] + (1 << 15)) >> 16)
break;
}
count >>=... | {
"code": [
" asv2_put_level(&a->pb, block[index + 0]);",
" asv2_put_level(&a->pb, block[index + 8]);",
" asv2_put_level(&a->pb, block[index + 1]);",
" asv2_put_level(&a->pb, block[index + 9]);"
],
"line_no": [
85,
89,
93,
... | static inline void FUNC_0(ASV1Context *VAR_0, int16_t VAR_1[64])
{
int VAR_2;
int VAR_3 = 0;
for (VAR_3 = 63; VAR_3 > 3; VAR_3--) {
const int VAR_5 = ff_asv_scantab[VAR_3];
if ((VAR_1[VAR_5] * VAR_0->q_intra_matrix[VAR_5] + (1 << 15)) >> 16)
break;
}
VAR_3 >>... | [
"static inline void FUNC_0(ASV1Context *VAR_0, int16_t VAR_1[64])\n{",
"int VAR_2;",
"int VAR_3 = 0;",
"for (VAR_3 = 63; VAR_3 > 3; VAR_3--) {",
"const int VAR_5 = ff_asv_scantab[VAR_3];",
"if ((VAR_1[VAR_5] * VAR_0->q_intra_matrix[VAR_5] + (1 << 15)) >> 16)\nbreak;",
"}",
"VAR_3 >>= 2;",
"asv2_put_... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43,
45,
47
],
[
49,
51,
53
],
[
55,
57... |
6,520 | static void gen_tlbilx_booke206(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
TCGv t0;
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
t0 = tcg_temp_new();
gen_addr_reg_in... | true | qemu | 9b2fadda3e0196ffd485adde4fe9cdd6fae35300 | static void gen_tlbilx_booke206(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
TCGv t0;
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
t0 = tcg_temp_new();
gen_addr_reg_in... | {
"code": [
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(ctx->pr)) {",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(... | static void FUNC_0(DisasContext *VAR_0)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
#else
TCGv t0;
if (unlikely(VAR_0->pr)) {
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
return;
}
t0 = tcg_temp_new();
gen_addr_reg_index(V... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"#else\nTCGv t0;",
"if (unlikely(VAR_0->pr)) {",
"gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"return;",
"}",
"t0 = tcg_temp_new();",
"gen_addr_reg_index(VAR_0,... | [
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31,
33
],
[
35
],
[
37,
39
],
[
41
],
[
43,
45
],
[
47
],
[
49,
51
... |
6,521 | static void probe_codec(AVFormatContext *s, AVStream *st, const AVPacket *pkt)
{
if(st->request_probe>0){
AVProbeData *pd = &st->probe_data;
int end;
av_log(s, AV_LOG_DEBUG, "probing stream %d pp:%d\n", st->index, st->probe_packets);
--st->probe_packets;
if (pkt) {
... | true | FFmpeg | 9054f6b66b3883d615177c738cb69c6337c4375c | static void probe_codec(AVFormatContext *s, AVStream *st, const AVPacket *pkt)
{
if(st->request_probe>0){
AVProbeData *pd = &st->probe_data;
int end;
av_log(s, AV_LOG_DEBUG, "probing stream %d pp:%d\n", st->index, st->probe_packets);
--st->probe_packets;
if (pkt) {
... | {
"code": [
" pd->buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE);"
],
"line_no": [
19
]
} | static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, const AVPacket *VAR_2)
{
if(VAR_1->request_probe>0){
AVProbeData *pd = &VAR_1->probe_data;
int VAR_3;
av_log(VAR_0, AV_LOG_DEBUG, "probing stream %d pp:%d\n", VAR_1->index, VAR_1->probe_packets);
--VAR_1->probe_packets... | [
"static void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, const AVPacket *VAR_2)\n{",
"if(VAR_1->request_probe>0){",
"AVProbeData *pd = &VAR_1->probe_data;",
"int VAR_3;",
"av_log(VAR_0, AV_LOG_DEBUG, \"probing stream %d pp:%d\\n\", VAR_1->index, VAR_1->probe_packets);",
"--VAR_1->probe_packets;",
"i... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
41
],
[
43
],
[
45,
47
],
[
49
... |
6,522 | static void pci_basic(void)
{
QVirtioPCIDevice *dev;
QPCIBus *bus;
QVirtQueuePCI *vqpci;
QGuestAllocator *alloc;
void *addr;
bus = pci_test_start();
dev = virtio_blk_pci_init(bus, PCI_SLOT);
alloc = pc_alloc_init();
vqpci = (QVirtQueuePCI *)qvirtqueue_setup(&qvirtio_pci... | true | qemu | f1d3b99154138741161fc52f5a8c373bf71613c6 | static void pci_basic(void)
{
QVirtioPCIDevice *dev;
QPCIBus *bus;
QVirtQueuePCI *vqpci;
QGuestAllocator *alloc;
void *addr;
bus = pci_test_start();
dev = virtio_blk_pci_init(bus, PCI_SLOT);
alloc = pc_alloc_init();
vqpci = (QVirtQueuePCI *)qvirtqueue_setup(&qvirtio_pci... | {
"code": [
" guest_free(alloc, vqpci->vq.desc);",
" guest_free(alloc, vqpci->vq.desc);",
" guest_free(alloc, vqpci->vq.desc);",
" guest_free(alloc, vqpci->vq.desc);"
],
"line_no": [
45,
45,
45,
45
]
} | static void FUNC_0(void)
{
QVirtioPCIDevice *dev;
QPCIBus *bus;
QVirtQueuePCI *vqpci;
QGuestAllocator *alloc;
void *VAR_0;
bus = pci_test_start();
dev = virtio_blk_pci_init(bus, PCI_SLOT);
alloc = pc_alloc_init();
vqpci = (QVirtQueuePCI *)qvirtqueue_setup(&qvirtio_pci, ... | [
"static void FUNC_0(void)\n{",
"QVirtioPCIDevice *dev;",
"QPCIBus *bus;",
"QVirtQueuePCI *vqpci;",
"QGuestAllocator *alloc;",
"void *VAR_0;",
"bus = pci_test_start();",
"dev = virtio_blk_pci_init(bus, PCI_SLOT);",
"alloc = pc_alloc_init();",
"vqpci = (QVirtQueuePCI *)qvirtqueue_setup(&qvirtio_pci,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
33
],
[
37,
39
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
... |
6,525 | static void gen_spr_440 (CPUPPCState *env)
{
/* Cache control */
/* XXX : not implemented */
spr_register(env, SPR_440_DNV0, "DNV0",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
0x00000000);
/* XXX : not implemented */
... | false | qemu | 2662a059aa2affddfbe42e78b11c802cf30a970f | static void gen_spr_440 (CPUPPCState *env)
{
spr_register(env, SPR_440_DNV0, "DNV0",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
0x00000000);
spr_register(env, SPR_440_DNV1, "DNV1",
SPR_NOACCESS, ... | {
"code": [],
"line_no": []
} | static void FUNC_0 (CPUPPCState *VAR_0)
{
spr_register(VAR_0, SPR_440_DNV0, "DNV0",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
0x00000000);
spr_register(VAR_0, SPR_440_DNV1, "DNV1",
SPR_NOACCESS,... | [
"static void FUNC_0 (CPUPPCState *VAR_0)\n{",
"spr_register(VAR_0, SPR_440_DNV0, \"DNV0\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_generic,\n0x00000000);",
"spr_register(VAR_0, SPR_440_DNV1, \"DNV1\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_generic,\n0x00000000);",
"spr... | [
0,
0,
0,
0,
0,
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
],
[
9,
11,
13,
15
],
[
19,
21,
23,
25
],
[
29,
31,
33,
35
],
[
39,
41,
43,
45
],
[
49,
51,
53,
55
],
[
59,
61,
63,
65
],
[
69,
71,
73,
75
],
[
79,
8... |
6,526 | static void get_cpuid_vendor(CPUX86State *env, uint32_t *ebx,
uint32_t *ecx, uint32_t *edx)
{
*ebx = env->cpuid_vendor1;
*edx = env->cpuid_vendor2;
*ecx = env->cpuid_vendor3;
/* sysenter isn't supported on compatibility mode on AMD, syscall
* isn't supported in... | false | qemu | 8935499831312ec3e108287d3d49614915847ab2 | static void get_cpuid_vendor(CPUX86State *env, uint32_t *ebx,
uint32_t *ecx, uint32_t *edx)
{
*ebx = env->cpuid_vendor1;
*edx = env->cpuid_vendor2;
*ecx = env->cpuid_vendor3;
if (kvm_enabled() && env->cpuid_vendor_override) {
host_cpuid(0, 0,... | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUX86State *VAR_0, uint32_t *VAR_1,
uint32_t *VAR_2, uint32_t *VAR_3)
{
*VAR_1 = VAR_0->cpuid_vendor1;
*VAR_3 = VAR_0->cpuid_vendor2;
*VAR_2 = VAR_0->cpuid_vendor3;
if (kvm_enabled() && VAR_0->cpuid_vendor_override) {
host... | [
"static void FUNC_0(CPUX86State *VAR_0, uint32_t *VAR_1,\nuint32_t *VAR_2, uint32_t *VAR_3)\n{",
"*VAR_1 = VAR_0->cpuid_vendor1;",
"*VAR_3 = VAR_0->cpuid_vendor2;",
"*VAR_2 = VAR_0->cpuid_vendor3;",
"if (kvm_enabled() && VAR_0->cpuid_vendor_override) {",
"host_cpuid(0, 0, NULL, VAR_1, VAR_2, VAR_3);",
"... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
6,527 | void qmp_blockdev_change_medium(const char *device, const char *filename,
bool has_format, const char *format,
bool has_read_only,
BlockdevChangeReadOnlyMode read_only,
Error **errp)
{
... | false | qemu | a5614993d79584af93bb845f69f59872b3f76cf8 | void qmp_blockdev_change_medium(const char *device, const char *filename,
bool has_format, const char *format,
bool has_read_only,
BlockdevChangeReadOnlyMode read_only,
Error **errp)
{
... | {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0, const char *VAR_1,
bool VAR_2, const char *VAR_3,
bool VAR_4,
BlockdevChangeReadOnlyMode VAR_5,
Error **VAR_6)
{
BlockBackend *blk;
BlockDriverSta... | [
"void FUNC_0(const char *VAR_0, const char *VAR_1,\nbool VAR_2, const char *VAR_3,\nbool VAR_4,\nBlockdevChangeReadOnlyMode VAR_5,\nError **VAR_6)\n{",
"BlockBackend *blk;",
"BlockDriverState *medium_bs = NULL;",
"int VAR_7, VAR_8;",
"QDict *options = NULL;",
"Error *err = NULL;",
"blk = blk_by_name(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
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49,
51
],
[
55
... |
6,528 | static inline int ppcemb_tlb_check(CPUState *env, ppcemb_tlb_t *tlb,
target_phys_addr_t *raddrp,
target_ulong address, uint32_t pid, int ext,
int i)
{
target_ulong mask;
/* Check valid flag */
i... | false | qemu | 24e0e38b83616ee7b540a270d8c4f24edf94f802 | static inline int ppcemb_tlb_check(CPUState *env, ppcemb_tlb_t *tlb,
target_phys_addr_t *raddrp,
target_ulong address, uint32_t pid, int ext,
int i)
{
target_ulong mask;
if (!(tlb->prot & PAGE_... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(CPUState *VAR_0, ppcemb_tlb_t *VAR_1,
target_phys_addr_t *VAR_2,
target_ulong VAR_3, uint32_t VAR_4, int VAR_5,
int VAR_6)
{
target_ulong mask;
if (!(VAR_1->prot & PAGE... | [
"static inline int FUNC_0(CPUState *VAR_0, ppcemb_tlb_t *VAR_1,\ntarget_phys_addr_t *VAR_2,\ntarget_ulong VAR_3, uint32_t VAR_4, int VAR_5,\nint VAR_6)\n{",
"target_ulong mask;",
"if (!(VAR_1->prot & PAGE_VALID)) {",
"qemu_log(\"%s: TLB %d not valid\\n\", __func__, VAR_6);",
"return -1;",
"}",
"mask = ~... | [
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
],
[
35,
37
],
[
41,
43
],
[
45
],
[
47,
49
],
[
53
],
[
55
],
[
57,
61
],
[... |
6,529 | void ppc_slb_invalidate_one (CPUPPCState *env, uint64_t T0)
{
/* XXX: TODO */
tlb_flush(env, 1);
}
| false | qemu | eacc324914c2dc7aecec3b4ea920252b685b5c8e | void ppc_slb_invalidate_one (CPUPPCState *env, uint64_t T0)
{
tlb_flush(env, 1);
}
| {
"code": [],
"line_no": []
} | void FUNC_0 (CPUPPCState *VAR_0, uint64_t VAR_1)
{
tlb_flush(VAR_0, 1);
}
| [
"void FUNC_0 (CPUPPCState *VAR_0, uint64_t VAR_1)\n{",
"tlb_flush(VAR_0, 1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
]
] |
6,530 | static void validate_test_add(const char *testpath,
TestInputVisitorData *data,
void (*test_func)(TestInputVisitorData *data, const void *user_data))
{
g_test_add(testpath, TestInputVisitorData, data, NULL, test_func,
validate_teardow... | false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void validate_test_add(const char *testpath,
TestInputVisitorData *data,
void (*test_func)(TestInputVisitorData *data, const void *user_data))
{
g_test_add(testpath, TestInputVisitorData, data, NULL, test_func,
validate_teardow... | {
"code": [],
"line_no": []
} | static void FUNC_0(const char *VAR_0,
TestInputVisitorData *VAR_3,
void (*VAR_2)(TestInputVisitorData *VAR_3, const void *VAR_3))
{
g_test_add(VAR_0, TestInputVisitorData, VAR_3, NULL, VAR_2,
validate_teardown);
}
| [
"static void FUNC_0(const char *VAR_0,\nTestInputVisitorData *VAR_3,\nvoid (*VAR_2)(TestInputVisitorData *VAR_3, const void *VAR_3))\n{",
"g_test_add(VAR_0, TestInputVisitorData, VAR_3, NULL, VAR_2,\nvalidate_teardown);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11
],
[
13
]
] |
6,531 | static void omap_ulpd_pm_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) opaque;
int64_t now, ticks;
int div, mult;
static const int bypass_div[4] = { 1, 2, 4, 4 };
uint16_t d... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void omap_ulpd_pm_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) opaque;
int64_t now, ticks;
int div, mult;
static const int bypass_div[4] = { 1, 2, 4, 4 };
uint16_t d... | {
"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_mpu_state_s *VAR_4 = (struct omap_mpu_state_s *) VAR_0;
int64_t now, ticks;
int VAR_5, VAR_6;
static const int VAR_7[4] = { 1, 2, 4, 4 };
uint16_t diff;
... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"struct omap_mpu_state_s *VAR_4 = (struct omap_mpu_state_s *) VAR_0;",
"int64_t now, ticks;",
"int VAR_5, VAR_6;",
"static const int VAR_7[4] = { 1, 2, 4, 4 };",
"uint16_t diff;",
"if (VAR_3 != 2) {",
"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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29,
31,
33,
35,
37,
39,
41
],
[
43
],
[
47,
51
],
[
53
],
[
57,
59
],
[... |
6,533 | void cpu_dump_state (CPUState *env, FILE *f,
int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
int flags)
{
#define RGPL 4
#define RFPL 4
int i;
cpu_fprintf(f, "NIP " ADDRX " LR " ADDRX " CTR " ADDRX " XER %08x\n",
env->nip, env->lr, env... | false | qemu | 18b21a2f83a26c3d6a9e7f0bdc4e8eb2b177e8f6 | void cpu_dump_state (CPUState *env, FILE *f,
int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
int flags)
{
#define RGPL 4
#define RFPL 4
int i;
cpu_fprintf(f, "NIP " ADDRX " LR " ADDRX " CTR " ADDRX " XER %08x\n",
env->nip, env->lr, env... | {
"code": [],
"line_no": []
} | void FUNC_0 (CPUState *VAR_0, FILE *VAR_3,
int (*VAR_2)(FILE *VAR_3, const char *VAR_3, ...),
int VAR_4)
{
#define RGPL 4
#define RFPL 4
int VAR_5;
VAR_2(VAR_3, "NIP " ADDRX " LR " ADDRX " CTR " ADDRX " XER %08x\n",
VAR_0->nip, VAR_0->lr,... | [
"void FUNC_0 (CPUState *VAR_0, FILE *VAR_3,\nint (*VAR_2)(FILE *VAR_3, const char *VAR_3, ...),\nint VAR_4)\n{",
"#define RGPL 4\n#define RFPL 4\nint VAR_5;",
"VAR_2(VAR_3, \"NIP \" ADDRX \" LR \" ADDRX \" CTR \" ADDRX \" XER %08x\\n\",\nVAR_0->nip, VAR_0->lr, VAR_0->ctr, VAR_0->xer);",
"VAR_2(VAR_3, \"MS... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11,
15
],
[
19,
21
],
[
23,
25
],
[
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47
],
[
49,
51
],
[
53,
55
],
[
57
],
[
59,
61
],
[
63
],
[... |
6,534 | static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
{
UnsharpContext *unsharp = ctx->priv;
int lmsize_x = 5, cmsize_x = 0;
int lmsize_y = 5, cmsize_y = 0;
double lamount = 1.0f, camount = 0.0f;
if (args)
sscanf(args, "%d:%d:%lf:%d:%d:%lf", &lmsize_x, &lmsiz... | false | FFmpeg | 1ee20141900c98f9dc25eca121c66c3ff468c1e4 | static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
{
UnsharpContext *unsharp = ctx->priv;
int lmsize_x = 5, cmsize_x = 0;
int lmsize_y = 5, cmsize_y = 0;
double lamount = 1.0f, camount = 0.0f;
if (args)
sscanf(args, "%d:%d:%lf:%d:%d:%lf", &lmsize_x, &lmsiz... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVFilterContext *ctx, const char *args, void *opaque)
{
UnsharpContext *unsharp = ctx->priv;
int VAR_0 = 5, VAR_1 = 0;
int VAR_2 = 5, VAR_3 = 0;
double VAR_4 = 1.0f, VAR_5 = 0.0f;
if (args)
sscanf(args, "%d:%d:%lf:%d:%d:%lf", &VAR_0, &VAR_2, &VAR_4,
... | [
"static av_cold int FUNC_0(AVFilterContext *ctx, const char *args, void *opaque)\n{",
"UnsharpContext *unsharp = ctx->priv;",
"int VAR_0 = 5, VAR_1 = 0;",
"int VAR_2 = 5, VAR_3 = 0;",
"double VAR_4 = 1.0f, VAR_5 = 0.0f;",
"if (args)\nsscanf(args, \"%d:%d:%lf:%d:%d:%lf\", &VAR_0, &VAR_2, &VAR_4,\n&VAR_1, &... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
17,
19
],
[
23,
25
],
[
27,
29,
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
45
],
[
47
]
] |
6,536 | int ff_h264_update_thread_context(AVCodecContext *dst,
const AVCodecContext *src)
{
H264Context *h = dst->priv_data, *h1 = src->priv_data;
int inited = h->context_initialized, err = 0;
int need_reinit = 0;
int i, ret;
if (dst == src || !h1->context_initiali... | false | FFmpeg | c8dcff0cdb17d0aa03ac729eba12d1a20f1f59c8 | int ff_h264_update_thread_context(AVCodecContext *dst,
const AVCodecContext *src)
{
H264Context *h = dst->priv_data, *h1 = src->priv_data;
int inited = h->context_initialized, err = 0;
int need_reinit = 0;
int i, ret;
if (dst == src || !h1->context_initiali... | {
"code": [],
"line_no": []
} | int FUNC_0(AVCodecContext *VAR_0,
const AVCodecContext *VAR_1)
{
H264Context *h = VAR_0->priv_data, *h1 = VAR_1->priv_data;
int VAR_2 = h->context_initialized, VAR_3 = 0;
int VAR_4 = 0;
int VAR_5, VAR_6;
if (VAR_0 == VAR_1 || !h1->context_initialized)
... | [
"int FUNC_0(AVCodecContext *VAR_0,\nconst AVCodecContext *VAR_1)\n{",
"H264Context *h = VAR_0->priv_data, *h1 = VAR_1->priv_data;",
"int VAR_2 = h->context_initialized, VAR_3 = 0;",
"int VAR_4 = 0;",
"int VAR_5, VAR_6;",
"if (VAR_0 == VAR_1 || !h1->context_initialized)\nreturn 0;",
"if (!h1->ps.sps)\nre... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23,
25
],
[
29,
31,
33,
35,
37,
39,
41,
43,
45
],
[
47
],
[
49
],
[
55
],
[
57
],
[
59
],
[
61
],
[... |
6,537 | static int find_partition(BlockDriverState *bs, int partition,
off_t *offset, off_t *size)
{
struct partition_record mbr[4];
uint8_t data[512];
int i;
int ext_partnum = 4;
int ret;
if ((ret = bdrv_read(bs, 0, data, 1)) < 0) {
errno = -ret;
er... | false | qemu | 185b43386ad999c80bdc58e41b87f05e5b3e8463 | static int find_partition(BlockDriverState *bs, int partition,
off_t *offset, off_t *size)
{
struct partition_record mbr[4];
uint8_t data[512];
int i;
int ext_partnum = 4;
int ret;
if ((ret = bdrv_read(bs, 0, data, 1)) < 0) {
errno = -ret;
er... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, int VAR_1,
off_t *VAR_2, off_t *VAR_3)
{
struct partition_record VAR_4[4];
uint8_t data[512];
int VAR_5;
int VAR_6 = 4;
int VAR_7;
if ((VAR_7 = bdrv_read(VAR_0, 0, data, 1)) < 0) {
errno = -VAR_7;
er... | [
"static int FUNC_0(BlockDriverState *VAR_0, int VAR_1,\noff_t *VAR_2, off_t *VAR_3)\n{",
"struct partition_record VAR_4[4];",
"uint8_t data[512];",
"int VAR_5;",
"int VAR_6 = 4;",
"int VAR_7;",
"if ((VAR_7 = bdrv_read(VAR_0, 0, data, 1)) < 0) {",
"errno = -VAR_7;",
"err(EXIT_FAILURE, \"error while r... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
39
],
[
41
],
[
45,
47
],
[
51
],
[
53
... |
6,538 | static void thread_pool_cancel(BlockDriverAIOCB *acb)
{
ThreadPoolElement *elem = (ThreadPoolElement *)acb;
ThreadPool *pool = elem->pool;
trace_thread_pool_cancel(elem, elem->common.opaque);
qemu_mutex_lock(&pool->lock);
if (elem->state == THREAD_QUEUED &&
/* No thread has yet st... | false | qemu | c2e50e3d11a0bf4c973cc30478c1af0f2d5f8e81 | static void thread_pool_cancel(BlockDriverAIOCB *acb)
{
ThreadPoolElement *elem = (ThreadPoolElement *)acb;
ThreadPool *pool = elem->pool;
trace_thread_pool_cancel(elem, elem->common.opaque);
qemu_mutex_lock(&pool->lock);
if (elem->state == THREAD_QUEUED &&
qemu_... | {
"code": [],
"line_no": []
} | static void FUNC_0(BlockDriverAIOCB *VAR_0)
{
ThreadPoolElement *elem = (ThreadPoolElement *)VAR_0;
ThreadPool *pool = elem->pool;
trace_thread_pool_cancel(elem, elem->common.opaque);
qemu_mutex_lock(&pool->lock);
if (elem->state == THREAD_QUEUED &&
qemu_sem_time... | [
"static void FUNC_0(BlockDriverAIOCB *VAR_0)\n{",
"ThreadPoolElement *elem = (ThreadPoolElement *)VAR_0;",
"ThreadPool *pool = elem->pool;",
"trace_thread_pool_cancel(elem, elem->common.opaque);",
"qemu_mutex_lock(&pool->lock);",
"if (elem->state == THREAD_QUEUED &&\nqemu_sem_timedwait(&pool->sem, 0) == 0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
]
] |
6,539 | void qemu_fflush(QEMUFile *f)
{
if (!f->is_writable)
return;
if (f->buf_index > 0) {
if (f->is_file) {
fseek(f->outfile, f->buf_offset, SEEK_SET);
fwrite(f->buf, 1, f->buf_index, f->outfile);
} else {
bdrv_pwrite(f->bs, f->base_offset + f->buf... | false | qemu | 5dafc53f1fb091d242f2179ffcb43bb28af36d1e | void qemu_fflush(QEMUFile *f)
{
if (!f->is_writable)
return;
if (f->buf_index > 0) {
if (f->is_file) {
fseek(f->outfile, f->buf_offset, SEEK_SET);
fwrite(f->buf, 1, f->buf_index, f->outfile);
} else {
bdrv_pwrite(f->bs, f->base_offset + f->buf... | {
"code": [],
"line_no": []
} | void FUNC_0(QEMUFile *VAR_0)
{
if (!VAR_0->is_writable)
return;
if (VAR_0->buf_index > 0) {
if (VAR_0->is_file) {
fseek(VAR_0->outfile, VAR_0->buf_offset, SEEK_SET);
fwrite(VAR_0->buf, 1, VAR_0->buf_index, VAR_0->outfile);
} else {
bdrv_pwrite... | [
"void FUNC_0(QEMUFile *VAR_0)\n{",
"if (!VAR_0->is_writable)\nreturn;",
"if (VAR_0->buf_index > 0) {",
"if (VAR_0->is_file) {",
"fseek(VAR_0->outfile, VAR_0->buf_offset, SEEK_SET);",
"fwrite(VAR_0->buf, 1, VAR_0->buf_index, VAR_0->outfile);",
"} else {",
"bdrv_pwrite(VAR_0->bs, VAR_0->base_offset + VA... | [
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
]
] |
6,540 | uint64_t ram_bytes_transferred(void)
{
return bytes_transferred;
}
| false | qemu | ad96090a01d848df67d70c5259ed8aa321fa8716 | uint64_t ram_bytes_transferred(void)
{
return bytes_transferred;
}
| {
"code": [],
"line_no": []
} | uint64_t FUNC_0(void)
{
return bytes_transferred;
}
| [
"uint64_t FUNC_0(void)\n{",
"return bytes_transferred;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
6,542 | static void qxl_spice_destroy_surface_wait(PCIQXLDevice *qxl, uint32_t id,
qxl_async_io async)
{
if (async) {
#if SPICE_INTERFACE_QXL_MINOR < 1
abort();
#else
spice_qxl_destroy_surface_async(&qxl->ssd.qxl, id,
... | false | qemu | 4295e15aa730a95003a3639d6dad2eb1e65a59e2 | static void qxl_spice_destroy_surface_wait(PCIQXLDevice *qxl, uint32_t id,
qxl_async_io async)
{
if (async) {
#if SPICE_INTERFACE_QXL_MINOR < 1
abort();
#else
spice_qxl_destroy_surface_async(&qxl->ssd.qxl, id,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(PCIQXLDevice *VAR_0, uint32_t VAR_1,
qxl_async_io VAR_2)
{
if (VAR_2) {
#if SPICE_INTERFACE_QXL_MINOR < 1
abort();
#else
spice_qxl_destroy_surface_async(&VAR_0->ssd.VAR_0, VAR_1,
(uint64_t)V... | [
"static void FUNC_0(PCIQXLDevice *VAR_0, uint32_t VAR_1,\nqxl_async_io VAR_2)\n{",
"if (VAR_2) {",
"#if SPICE_INTERFACE_QXL_MINOR < 1\nabort();",
"#else\nspice_qxl_destroy_surface_async(&VAR_0->ssd.VAR_0, VAR_1,\n(uint64_t)VAR_1);",
"#endif\n} else {",
"VAR_0->ssd.worker->destroy_surface_wait(VAR_0->ssd.w... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
13,
15,
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
6,544 | static inline void copy_backptr(LZOContext *c, int back, int cnt)
{
register const uint8_t *src = &c->out[-back];
register uint8_t *dst = c->out;
if (src < c->out_start || src > dst) {
c->error |= AV_LZO_INVALID_BACKPTR;
return;
}
if (cnt > c->out_end - dst) {
... | true | FFmpeg | ca6c3f2c53be70aa3c38e8f1292809db89ea1ba6 | static inline void copy_backptr(LZOContext *c, int back, int cnt)
{
register const uint8_t *src = &c->out[-back];
register uint8_t *dst = c->out;
if (src < c->out_start || src > dst) {
c->error |= AV_LZO_INVALID_BACKPTR;
return;
}
if (cnt > c->out_end - dst) {
... | {
"code": [
" register const uint8_t *src = &c->out[-back];",
" if (src < c->out_start || src > dst) {"
],
"line_no": [
5,
9
]
} | static inline void FUNC_0(LZOContext *VAR_0, int VAR_1, int VAR_2)
{
register const uint8_t *VAR_3 = &VAR_0->out[-VAR_1];
register uint8_t *VAR_4 = VAR_0->out;
if (VAR_3 < VAR_0->out_start || VAR_3 > VAR_4) {
VAR_0->error |= AV_LZO_INVALID_BACKPTR;
return;
}
if (VAR_2 >... | [
"static inline void FUNC_0(LZOContext *VAR_0, int VAR_1, int VAR_2)\n{",
"register const uint8_t *VAR_3 = &VAR_0->out[-VAR_1];",
"register uint8_t *VAR_4 = VAR_0->out;",
"if (VAR_3 < VAR_0->out_start || VAR_3 > VAR_4) {",
"VAR_0->error |= AV_LZO_INVALID_BACKPTR;",
"return;",
"}",
"if (VAR_2 > VA... | [
0,
1,
0,
1,
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
]
] |
6,546 | bool guest_validate_base(unsigned long guest_base)
{
return 1;
}
| true | qemu | 806d102141b99d4f1e55a97d68b7ea8c8ba3129f | bool guest_validate_base(unsigned long guest_base)
{
return 1;
}
| {
"code": [
"bool guest_validate_base(unsigned long guest_base)",
"bool guest_validate_base(unsigned long guest_base)"
],
"line_no": [
1,
1
]
} | bool FUNC_0(unsigned long guest_base)
{
return 1;
}
| [
"bool FUNC_0(unsigned long guest_base)\n{",
"return 1;",
"}"
] | [
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
6,548 | static inline int mpeg1_decode_block_intra(MpegEncContext *s, int16_t *block, int n)
{
int level, dc, diff, i, j, run;
int component;
RLTable *rl = &ff_rl_mpeg1;
uint8_t * const scantable = s->intra_scantable.permutated;
const uint16_t *quant_matrix = s->intra_matrix;
const int qscale ... | true | FFmpeg | 6d93307f8df81808f0dcdbc064b848054a6e83b3 | static inline int mpeg1_decode_block_intra(MpegEncContext *s, int16_t *block, int n)
{
int level, dc, diff, i, j, run;
int component;
RLTable *rl = &ff_rl_mpeg1;
uint8_t * const scantable = s->intra_scantable.permutated;
const uint16_t *quant_matrix = s->intra_matrix;
const int qscale ... | {
"code": [
" if (i > 63) {",
" av_log(s->avctx, AV_LOG_ERROR, \"ac-tex damaged at %d %d\\n\", s->mb_x, s->mb_y);",
" return -1;",
" if (i > 63) {",
" av_log(s->avctx, AV_LOG_ERROR, \"ac-tex damaged at %d %d\\n\", s->mb_x, s->mb_y)... | static inline int FUNC_0(MpegEncContext *VAR_0, int16_t *VAR_1, int VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
int VAR_9;
RLTable *rl = &ff_rl_mpeg1;
uint8_t * const scantable = VAR_0->intra_scantable.permutated;
const uint16_t *VAR_10 = VAR_0->intra_matrix;
const int VAR_1... | [
"static inline int FUNC_0(MpegEncContext *VAR_0, int16_t *VAR_1, int VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"int VAR_9;",
"RLTable *rl = &ff_rl_mpeg1;",
"uint8_t * const scantable = VAR_0->intra_scantable.permutated;",
"const uint16_t *VAR_10 = VAR_0->intra_matrix;",
"const int ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[... |
6,549 | int qemu_strtoull(const char *nptr, const char **endptr, int base,
uint64_t *result)
{
char *p;
int err = 0;
if (!nptr) {
if (endptr) {
*endptr = nptr;
}
err = -EINVAL;
} else {
errno = 0;
*result = strtoull(nptr, &p, base... | true | qemu | 47d4be12c3997343e436c6cca89aefbbbeb70863 | int qemu_strtoull(const char *nptr, const char **endptr, int base,
uint64_t *result)
{
char *p;
int err = 0;
if (!nptr) {
if (endptr) {
*endptr = nptr;
}
err = -EINVAL;
} else {
errno = 0;
*result = strtoull(nptr, &p, base... | {
"code": [
" err = check_strtox_error(endptr, p, errno);",
" err = check_strtox_error(endptr, p, errno);",
" err = check_strtox_error(endptr, p, errno);",
" err = check_strtox_error(endptr, p, errno);"
],
"line_no": [
27,
27,
27,
27
]
} | int FUNC_0(const char *VAR_0, const char **VAR_1, int VAR_2,
uint64_t *VAR_3)
{
char *VAR_4;
int VAR_5 = 0;
if (!VAR_0) {
if (VAR_1) {
*VAR_1 = VAR_0;
}
VAR_5 = -EINVAL;
} else {
errno = 0;
*VAR_3 = strtoull(VAR_0, &VAR_4,... | [
"int FUNC_0(const char *VAR_0, const char **VAR_1, int VAR_2,\nuint64_t *VAR_3)\n{",
"char *VAR_4;",
"int VAR_5 = 0;",
"if (!VAR_0) {",
"if (VAR_1) {",
"*VAR_1 = VAR_0;",
"}",
"VAR_5 = -EINVAL;",
"} else {",
"errno = 0;",
"*VAR_3 = strtoull(VAR_0, &VAR_4, VAR_2);",
"VAR_5 = check_strtox_error(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
6,550 | static void gen_rac(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
TCGv t0;
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
t0 = tcg_temp_new();
gen_addr_reg_index(ctx, t0);
... | true | qemu | 9b2fadda3e0196ffd485adde4fe9cdd6fae35300 | static void gen_rac(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
TCGv t0;
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
t0 = tcg_temp_new();
gen_addr_reg_index(ctx, t0);
... | {
"code": [
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(ctx->pr)) {",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(... | static void FUNC_0(DisasContext *VAR_0)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
#else
TCGv t0;
if (unlikely(VAR_0->pr)) {
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
return;
}
t0 = tcg_temp_new();
gen_addr_reg_index(VAR... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"#else\nTCGv t0;",
"if (unlikely(VAR_0->pr)) {",
"gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"return;",
"}",
"t0 = tcg_temp_new();",
"gen_addr_reg_index(VAR_0,... | [
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
1
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
]
] |
6,551 | static void kvm_s390_stattrib_synchronize(S390StAttribState *sa)
{
KVMS390StAttribState *sas = KVM_S390_STATTRIB(sa);
MachineState *machine = MACHINE(qdev_get_machine());
unsigned long max = machine->maxram_size / TARGET_PAGE_SIZE;
unsigned long cx, len = 1 << 19;
int r;
struct kvm_s390_c... | true | qemu | 46fa893355e0bd88f3c59b886f0d75cbd5f0bbbe | static void kvm_s390_stattrib_synchronize(S390StAttribState *sa)
{
KVMS390StAttribState *sas = KVM_S390_STATTRIB(sa);
MachineState *machine = MACHINE(qdev_get_machine());
unsigned long max = machine->maxram_size / TARGET_PAGE_SIZE;
unsigned long cx, len = 1 << 19;
int r;
struct kvm_s390_c... | {
"code": [
" clog.values = (uint64_t)(sas->incoming_buffer + cx * len);",
" clog.values = (uint64_t)(sas->incoming_buffer + cx * len);"
],
"line_no": [
33,
33
]
} | static void FUNC_0(S390StAttribState *VAR_0)
{
KVMS390StAttribState *sas = KVM_S390_STATTRIB(VAR_0);
MachineState *machine = MACHINE(qdev_get_machine());
unsigned long VAR_1 = machine->maxram_size / TARGET_PAGE_SIZE;
unsigned long VAR_2, VAR_3 = 1 << 19;
int VAR_4;
struct kvm_s390_cmma_lo... | [
"static void FUNC_0(S390StAttribState *VAR_0)\n{",
"KVMS390StAttribState *sas = KVM_S390_STATTRIB(VAR_0);",
"MachineState *machine = MACHINE(qdev_get_machine());",
"unsigned long VAR_1 = machine->maxram_size / TARGET_PAGE_SIZE;",
"unsigned long VAR_2, VAR_3 = 1 << 19;",
"int VAR_4;",
"struct kvm_s390_cm... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17,
19,
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
6,552 | static void handle_qmp_command(JSONMessageParser *parser, GQueue *tokens)
{
QObject *req, *rsp = NULL, *id = NULL;
QDict *qdict = NULL;
const char *cmd_name;
Monitor *mon = cur_mon;
Error *err = NULL;
req = json_parser_parse_err(tokens, NULL, &err);
if (!req && !err) {
/* ... | true | qemu | 104fc3027960dd2aa9d310936a6cb201c60e1088 | static void handle_qmp_command(JSONMessageParser *parser, GQueue *tokens)
{
QObject *req, *rsp = NULL, *id = NULL;
QDict *qdict = NULL;
const char *cmd_name;
Monitor *mon = cur_mon;
Error *err = NULL;
req = json_parser_parse_err(tokens, NULL, &err);
if (!req && !err) {
... | {
"code": [
" const char *cmd_name;",
" qdict = qmp_check_input_obj(req, &err);",
" if (!qdict) {",
" goto err_out;",
" id = qdict_get(qdict, \"id\");",
" qobject_incref(id);",
" qdict_del(qdict, \"id\");",
" cmd_name = qdict_get_str(qdict, \"execute\");",
... | static void FUNC_0(JSONMessageParser *VAR_0, GQueue *VAR_1)
{
QObject *req, *rsp = NULL, *id = NULL;
QDict *qdict = NULL;
const char *VAR_2;
Monitor *mon = cur_mon;
Error *err = NULL;
req = json_parser_parse_err(VAR_1, NULL, &err);
if (!req && !err) {
error_setg(... | [
"static void FUNC_0(JSONMessageParser *VAR_0, GQueue *VAR_1)\n{",
"QObject *req, *rsp = NULL, *id = NULL;",
"QDict *qdict = NULL;",
"const char *VAR_2;",
"Monitor *mon = cur_mon;",
"Error *err = NULL;",
"req = json_parser_parse_err(VAR_1, NULL, &err);",
"if (!req && !err) {",
"error_setg(&err, QERR_... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
1,
0,
0,
1,
1,
1,
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
... |
6,554 | static void test_blk_read(BlockBackend *blk, long pattern,
int64_t pattern_offset, int64_t pattern_count,
int64_t offset, int64_t count,
bool expect_failed)
{
void *pattern_buf = NULL;
QEMUIOVector qiov;
void *cmp_buf = NUL... | true | qemu | baf905e580ab9c8eaf228822c4a7b257493b4998 | static void test_blk_read(BlockBackend *blk, long pattern,
int64_t pattern_offset, int64_t pattern_count,
int64_t offset, int64_t count,
bool expect_failed)
{
void *pattern_buf = NULL;
QEMUIOVector qiov;
void *cmp_buf = NUL... | {
"code": [],
"line_no": []
} | static void FUNC_0(BlockBackend *VAR_0, long VAR_1,
int64_t VAR_2, int64_t VAR_3,
int64_t VAR_4, int64_t VAR_5,
bool VAR_6)
{
void *VAR_7 = NULL;
QEMUIOVector qiov;
void *VAR_8 = NULL;
int VAR_9 = NOT_DONE;
if (... | [
"static void FUNC_0(BlockBackend *VAR_0, long VAR_1,\nint64_t VAR_2, int64_t VAR_3,\nint64_t VAR_4, int64_t VAR_5,\nbool VAR_6)\n{",
"void *VAR_7 = NULL;",
"QEMUIOVector qiov;",
"void *VAR_8 = NULL;",
"int VAR_9 = NOT_DONE;",
"if (VAR_1) {",
"VAR_8 = g_malloc(VAR_3);",
"memset(VAR_8, VAR_1, VAR_3);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
51
],
[... |
6,555 | int ff_h264_decode_seq_parameter_set(GetBitContext *gb, AVCodecContext *avctx,
H264ParamSets *ps, int ignore_truncation)
{
AVBufferRef *sps_buf;
int profile_idc, level_idc, constraint_set_flags = 0;
unsigned int sps_id;
int i, log2_max_frame_num_minus4;
SP... | true | FFmpeg | 59e5b05ef6f26064fc399f8e23aa05f962b8ae48 | int ff_h264_decode_seq_parameter_set(GetBitContext *gb, AVCodecContext *avctx,
H264ParamSets *ps, int ignore_truncation)
{
AVBufferRef *sps_buf;
int profile_idc, level_idc, constraint_set_flags = 0;
unsigned int sps_id;
int i, log2_max_frame_num_minus4;
SP... | {
"code": [
" if (sps->mb_height >= INT_MAX / 2) {"
],
"line_no": [
295
]
} | int FUNC_0(GetBitContext *VAR_0, AVCodecContext *VAR_1,
H264ParamSets *VAR_2, int VAR_3)
{
AVBufferRef *sps_buf;
int VAR_4, VAR_5, VAR_6 = 0;
unsigned int VAR_7;
int VAR_8, VAR_9;
SPS *sps;
sps_buf = av_buffer_allocz(sizeof(*sps));
if (!sps_buf... | [
"int FUNC_0(GetBitContext *VAR_0, AVCodecContext *VAR_1,\nH264ParamSets *VAR_2, int VAR_3)\n{",
"AVBufferRef *sps_buf;",
"int VAR_4, VAR_5, VAR_6 = 0;",
"unsigned int VAR_7;",
"int VAR_8, VAR_9;",
"SPS *sps;",
"sps_buf = av_buffer_allocz(sizeof(*sps));",
"if (!sps_buf)\nreturn AVERROR(ENOMEM);",
"sp... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
... |
6,558 | static int vhost_user_start(VhostUserState *s)
{
VhostNetOptions options;
if (vhost_user_running(s)) {
return 0;
}
options.backend_type = VHOST_BACKEND_TYPE_USER;
options.net_backend = &s->nc;
options.opaque = s->chr;
options.force = true;
s->vhost_net = vhost_net... | true | qemu | 1e7398a140f7a6bd9f5a438e7ad0f1ef50990e25 | static int vhost_user_start(VhostUserState *s)
{
VhostNetOptions options;
if (vhost_user_running(s)) {
return 0;
}
options.backend_type = VHOST_BACKEND_TYPE_USER;
options.net_backend = &s->nc;
options.opaque = s->chr;
options.force = true;
s->vhost_net = vhost_net... | {
"code": [
" options.force = true;"
],
"line_no": [
23
]
} | static int FUNC_0(VhostUserState *VAR_0)
{
VhostNetOptions options;
if (vhost_user_running(VAR_0)) {
return 0;
}
options.backend_type = VHOST_BACKEND_TYPE_USER;
options.net_backend = &VAR_0->nc;
options.opaque = VAR_0->chr;
options.force = true;
VAR_0->vhost_net =... | [
"static int FUNC_0(VhostUserState *VAR_0)\n{",
"VhostNetOptions options;",
"if (vhost_user_running(VAR_0)) {",
"return 0;",
"}",
"options.backend_type = VHOST_BACKEND_TYPE_USER;",
"options.net_backend = &VAR_0->nc;",
"options.opaque = VAR_0->chr;",
"options.force = true;",
"VAR_0->vhost_net = vhos... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33
]
] |
6,559 | FWCfgState *fw_cfg_init_mem_wide(hwaddr ctl_addr,
hwaddr data_addr, uint32_t data_width,
hwaddr dma_addr, AddressSpace *dma_as)
{
DeviceState *dev;
SysBusDevice *sbd;
FWCfgState *s;
bool dma_requested = dma_addr && dma_as;
d... | true | qemu | 38f3adc34de83bf75d2023831dc520d32568a2d9 | FWCfgState *fw_cfg_init_mem_wide(hwaddr ctl_addr,
hwaddr data_addr, uint32_t data_width,
hwaddr dma_addr, AddressSpace *dma_as)
{
DeviceState *dev;
SysBusDevice *sbd;
FWCfgState *s;
bool dma_requested = dma_addr && dma_as;
d... | {
"code": [
" fw_cfg_init1(dev);",
" fw_cfg_init1(dev);"
],
"line_no": [
31,
31
]
} | FWCfgState *FUNC_0(hwaddr ctl_addr,
hwaddr data_addr, uint32_t data_width,
hwaddr dma_addr, AddressSpace *dma_as)
{
DeviceState *dev;
SysBusDevice *sbd;
FWCfgState *s;
bool dma_requested = dma_addr && dma_as;
dev = qdev_crea... | [
"FWCfgState *FUNC_0(hwaddr ctl_addr,\nhwaddr data_addr, uint32_t data_width,\nhwaddr dma_addr, AddressSpace *dma_as)\n{",
"DeviceState *dev;",
"SysBusDevice *sbd;",
"FWCfgState *s;",
"bool dma_requested = dma_addr && dma_as;",
"dev = qdev_create(NULL, TYPE_FW_CFG_MEM);",
"qdev_prop_set_uint32(dev, \"dat... | [
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
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
... |
6,560 | static int protocol_client_auth_sasl_step(VncState *vs, uint8_t *data, size_t len)
{
uint32_t datalen = len;
const char *serverout;
unsigned int serveroutlen;
int err;
char *clientdata = NULL;
/* NB, distinction of NULL vs "" is *critical* in SASL */
if (datalen) {
clientd... | true | qemu | 7364dbdabb7824d5bde1e341bb6d928282f01c83 | static int protocol_client_auth_sasl_step(VncState *vs, uint8_t *data, size_t len)
{
uint32_t datalen = len;
const char *serverout;
unsigned int serveroutlen;
int err;
char *clientdata = NULL;
if (datalen) {
clientdata = (char*)data;
clientdata[datalen-1] = '\0';... | {
"code": [
" VNC_DEBUG(\"Step using SASL Data %p (%d bytes)\\n\",",
" clientdata, datalen);",
" VNC_DEBUG(\"sasl step failed %d (%s)\\n\",",
" err, sasl_errdetail(vs->sasl.conn));",
" VNC_DEBUG(\"sasl step reply data too long %d\\n\",",
" ... | static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2)
{
uint32_t datalen = VAR_2;
const char *VAR_3;
unsigned int VAR_4;
int VAR_5;
char *VAR_6 = NULL;
if (datalen) {
VAR_6 = (char*)VAR_1;
VAR_6[datalen-1] = '\0';
datalen--;
}
VN... | [
"static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2)\n{",
"uint32_t datalen = VAR_2;",
"const char *VAR_3;",
"unsigned int VAR_4;",
"int VAR_5;",
"char *VAR_6 = NULL;",
"if (datalen) {",
"VAR_6 = (char*)VAR_1;",
"VAR_6[datalen-1] = '\\0';",
"datalen--;",
"}",
"VNC_DEBUG(\"Step usi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31,
33
],
[
35,
37,
39,
41,
43
],
[
45,
47
],
[
49,
51
],
[
53
],
[... |
6,561 | static void sdl_switch(DisplayChangeListener *dcl,
DisplaySurface *new_surface)
{
PixelFormat pf = qemu_pixelformat_from_pixman(new_surface->format);
/* temporary hack: allows to call sdl_switch to handle scaling changes */
if (new_surface) {
surface = new_surface;
... | true | qemu | d28d6505bd72f0d6e3e7a968c60c27f893da976e | static void sdl_switch(DisplayChangeListener *dcl,
DisplaySurface *new_surface)
{
PixelFormat pf = qemu_pixelformat_from_pixman(new_surface->format);
if (new_surface) {
surface = new_surface;
}
if (!scaling_active) {
do_sdl_resize(surface_width(su... | {
"code": [
" PixelFormat pf = qemu_pixelformat_from_pixman(new_surface->format);"
],
"line_no": [
7
]
} | static void FUNC_0(DisplayChangeListener *VAR_0,
DisplaySurface *VAR_1)
{
PixelFormat pf = qemu_pixelformat_from_pixman(VAR_1->format);
if (VAR_1) {
surface = VAR_1;
}
if (!scaling_active) {
do_sdl_resize(surface_width(surface), surface_height(sur... | [
"static void FUNC_0(DisplayChangeListener *VAR_0,\nDisplaySurface *VAR_1)\n{",
"PixelFormat pf = qemu_pixelformat_from_pixman(VAR_1->format);",
"if (VAR_1) {",
"surface = VAR_1;",
"}",
"if (!scaling_active) {",
"do_sdl_resize(surface_width(surface), surface_height(surface), 0);",
"} else if (real_scre... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
45,
47,
49
],
[
51,
55,
57,
59,
61... |
6,562 | static inline uint16_t mipsdsp_sat16_sub(int16_t a, int16_t b,
CPUMIPSState *env)
{
int16_t temp;
temp = a - b;
if (MIPSDSP_OVERFLOW(a, -b, temp, 0x8000)) {
if (a > 0) {
temp = 0x7FFF;
} else {
temp = 0x8000;
... | true | qemu | 20c334a797bf46a4ee59a6e42be6d5e7c3cda585 | static inline uint16_t mipsdsp_sat16_sub(int16_t a, int16_t b,
CPUMIPSState *env)
{
int16_t temp;
temp = a - b;
if (MIPSDSP_OVERFLOW(a, -b, temp, 0x8000)) {
if (a > 0) {
temp = 0x7FFF;
} else {
temp = 0x8000;
... | {
"code": [
" if (MIPSDSP_OVERFLOW(a, -b, temp, 0x8000)) {",
" if (MIPSDSP_OVERFLOW(a, -b, temp, 0x8000)) {",
" if (a > 0) {",
" if (a > 0) {"
],
"line_no": [
13,
13,
15,
15
]
} | static inline uint16_t FUNC_0(int16_t a, int16_t b,
CPUMIPSState *env)
{
int16_t temp;
temp = a - b;
if (MIPSDSP_OVERFLOW(a, -b, temp, 0x8000)) {
if (a > 0) {
temp = 0x7FFF;
} else {
temp = 0x8000;
}
... | [
"static inline uint16_t FUNC_0(int16_t a, int16_t b,\nCPUMIPSState *env)\n{",
"int16_t temp;",
"temp = a - b;",
"if (MIPSDSP_OVERFLOW(a, -b, temp, 0x8000)) {",
"if (a > 0) {",
"temp = 0x7FFF;",
"} else {",
"temp = 0x8000;",
"}",
"set_DSPControl_overflow_flag(1, 20, env);",
"}",
"return temp;"... | [
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
]
] |
6,564 | void vhost_net_ack_features(struct vhost_net *net, unsigned features)
{
vhost_ack_features(&net->dev, vhost_net_get_feature_bits(net), features);
} | true | qemu | b49ae9138d5cadb47fb868297fbcdac8292fb666 | void vhost_net_ack_features(struct vhost_net *net, unsigned features)
{
vhost_ack_features(&net->dev, vhost_net_get_feature_bits(net), features);
} | {
"code": [],
"line_no": []
} | void FUNC_0(struct vhost_net *VAR_0, unsigned VAR_1)
{
vhost_ack_features(&VAR_0->dev, vhost_net_get_feature_bits(VAR_0), VAR_1);
} | [
"void FUNC_0(struct vhost_net *VAR_0, unsigned VAR_1)\n{",
"vhost_ack_features(&VAR_0->dev, vhost_net_get_feature_bits(VAR_0), VAR_1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
6
],
[
8
]
] |
6,565 | void scsi_req_unref(SCSIRequest *req)
{
assert(req->refcount > 0);
if (--req->refcount == 0) {
BusState *qbus = req->dev->qdev.parent_bus;
SCSIBus *bus = DO_UPCAST(SCSIBus, qbus, qbus);
if (bus->info->free_request && req->hba_private) {
bus->info->free_request(bus, r... | true | qemu | 61e68b3fbd3e2b7beb636bc56f78d9c1ca25e8f9 | void scsi_req_unref(SCSIRequest *req)
{
assert(req->refcount > 0);
if (--req->refcount == 0) {
BusState *qbus = req->dev->qdev.parent_bus;
SCSIBus *bus = DO_UPCAST(SCSIBus, qbus, qbus);
if (bus->info->free_request && req->hba_private) {
bus->info->free_request(bus, r... | {
"code": [
" g_free(req);"
],
"line_no": [
31
]
} | void FUNC_0(SCSIRequest *VAR_0)
{
assert(VAR_0->refcount > 0);
if (--VAR_0->refcount == 0) {
BusState *qbus = VAR_0->dev->qdev.parent_bus;
SCSIBus *bus = DO_UPCAST(SCSIBus, qbus, qbus);
if (bus->info->free_request && VAR_0->hba_private) {
bus->info->free_request(bus,... | [
"void FUNC_0(SCSIRequest *VAR_0)\n{",
"assert(VAR_0->refcount > 0);",
"if (--VAR_0->refcount == 0) {",
"BusState *qbus = VAR_0->dev->qdev.parent_bus;",
"SCSIBus *bus = DO_UPCAST(SCSIBus, qbus, qbus);",
"if (bus->info->free_request && VAR_0->hba_private) {",
"bus->info->free_request(bus, VAR_0->hba_priva... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
6,566 | static void gen_tlbwe_440(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
switch (rB(ctx->opcode)) {
case 0:
case 1:
case ... | true | qemu | 9b2fadda3e0196ffd485adde4fe9cdd6fae35300 | static void gen_tlbwe_440(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
switch (rB(ctx->opcode)) {
case 0:
case 1:
case ... | {
"code": [
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(ctx->pr)) {",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(... | static void FUNC_0(DisasContext *VAR_0)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(VAR_0->pr)) {
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
return;
}
switch (rB(VAR_0->opcode)) {
case 0:
case 1:
ca... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"#else\nif (unlikely(VAR_0->pr)) {",
"gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"return;",
"}",
"switch (rB(VAR_0->opcode)) {",
"case 0:\ncase 1:\ncase 2:\n{",
... | [
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23,
25,
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[... |
6,567 | static void tcg_out_tlb_check (TCGContext *s, int r0, int r1, int r2,
int addr_reg, int addr_reg2, int s_bits,
int offset1, int offset2, uint8_t **label_ptr)
{
uint16_t retranst;
tcg_out32 (s, (RLWINM
| RA (r0)
... | true | qemu | 8f50c841b374dc90ea604888ca92c37f469c428a | static void tcg_out_tlb_check (TCGContext *s, int r0, int r1, int r2,
int addr_reg, int addr_reg2, int s_bits,
int offset1, int offset2, uint8_t **label_ptr)
{
uint16_t retranst;
tcg_out32 (s, (RLWINM
| RA (r0)
... | {
"code": [
"static void tcg_out_tlb_check (TCGContext *s, int r0, int r1, int r2,",
" int addr_reg, int addr_reg2, int s_bits,",
" int offset1, int offset2, uint8_t **label_ptr)",
" tcg_out32 (s, (RLWINM",
" | RA (r0... | static void FUNC_0 (TCGContext *VAR_0, int VAR_1, int VAR_2, int VAR_3,
int VAR_4, int VAR_5, int VAR_6,
int VAR_7, int VAR_8, uint8_t **VAR_9)
{
uint16_t retranst;
tcg_out32 (VAR_0, (RLWINM
| RA (VAR_1)
... | [
"static void FUNC_0 (TCGContext *VAR_0, int VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6,\nint VAR_7, int VAR_8, uint8_t **VAR_9)\n{",
"uint16_t retranst;",
"tcg_out32 (VAR_0, (RLWINM\n| RA (VAR_1)\n| RS (VAR_4)\n| SH (32 - (TARGET_PAGE_BITS - CPU_TLB_ENTRY_BITS))\n| MB (32 - (CPU_TLB_BITS + CP... | [
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
1,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13,
15,
17,
19,
21,
23,
25,
27
],
[
29
],
[
31,
33,
35,
37,
39,
41
],
[
43,
45,
47,
49,
51,
53,
55,
57
],
[
61
],
[
63,
65
],
[
67
... |
6,568 | rgb48funcs(rgb, LE, PIX_FMT_RGB48LE)
rgb48funcs(rgb, BE, PIX_FMT_RGB48BE)
rgb48funcs(bgr, LE, PIX_FMT_BGR48LE)
rgb48funcs(bgr, BE, PIX_FMT_BGR48BE)
#define input_pixel(i) ((origin == PIX_FMT_RGBA || origin == PIX_FMT_BGRA || \
origin == PIX_FMT_ARGB || origin == PIX_FMT_ABGR) ? AV_RN32A(... | true | FFmpeg | 4391805916a1557278351f25428d0145b1073520 | rgb48funcs(rgb, LE, PIX_FMT_RGB48LE)
rgb48funcs(rgb, BE, PIX_FMT_RGB48BE)
rgb48funcs(bgr, LE, PIX_FMT_BGR48LE)
rgb48funcs(bgr, BE, PIX_FMT_BGR48BE)
#define input_pixel(i) ((origin == PIX_FMT_RGBA || origin == PIX_FMT_BGRA || \
origin == PIX_FMT_ARGB || origin == PIX_FMT_ABGR) ? AV_RN32A(... | {
"code": [
" const int ry = RY << rsh, gy = GY << gsh, by = BY << bsh,",
" rnd = 33 << (S - 1);"
],
"line_no": [
33,
35
]
} | rgb48funcs(rgb, LE, PIX_FMT_RGB48LE)
rgb48funcs(rgb, BE, PIX_FMT_RGB48BE)
rgb48funcs(bgr, LE, PIX_FMT_BGR48LE)
rgb48funcs(bgr, BE, PIX_FMT_BGR48BE)
#define input_pixel(i) ((origin == PIX_FMT_RGBA || origin == PIX_FMT_BGRA || \
origin == PIX_FMT_ARGB || origin == PIX_FMT_ABGR) ? AV_RN32A(... | [
"rgb48funcs(rgb, LE, PIX_FMT_RGB48LE)\nrgb48funcs(rgb, BE, PIX_FMT_RGB48BE)\nrgb48funcs(bgr, LE, PIX_FMT_BGR48LE)\nrgb48funcs(bgr, BE, PIX_FMT_BGR48BE)\n#define input_pixel(i) ((origin == PIX_FMT_RGBA || origin == PIX_FMT_BGRA || \\\norigin == PIX_FMT_ARGB || origin == PIX_FMT_ABGR) ? AV_RN32A(&src[(i)*4]) : \\\n(i... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
11,
13,
15,
19,
21,
23,
25,
27,
29,
31
],
[
33,
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
],
[
57
]
] |
6,570 | static void patch_reloc(tcg_insn_unit *code_ptr, int type,
intptr_t value, intptr_t addend)
{
tcg_insn_unit *target;
tcg_insn_unit old;
value += addend;
target = (tcg_insn_unit *)value;
switch (type) {
case R_PPC_REL14:
reloc_pc14(code_ptr, target);
... | true | qemu | 030ffe39dd4128eb90483af82a5b23b23054a466 | static void patch_reloc(tcg_insn_unit *code_ptr, int type,
intptr_t value, intptr_t addend)
{
tcg_insn_unit *target;
tcg_insn_unit old;
value += addend;
target = (tcg_insn_unit *)value;
switch (type) {
case R_PPC_REL14:
reloc_pc14(code_ptr, target);
... | {
"code": [
"static void patch_reloc(tcg_insn_unit *code_ptr, int type,",
" intptr_t value, intptr_t addend)",
" tcg_insn_unit *target;",
" tcg_insn_unit old;",
" value += addend;",
" target = (tcg_insn_unit *)value;",
" switch (type) {",
" case... | static void FUNC_0(tcg_insn_unit *VAR_0, int VAR_1,
intptr_t VAR_2, intptr_t VAR_3)
{
tcg_insn_unit *target;
tcg_insn_unit old;
VAR_2 += VAR_3;
target = (tcg_insn_unit *)VAR_2;
switch (VAR_1) {
case R_PPC_REL14:
reloc_pc14(VAR_0, target);
bre... | [
"static void FUNC_0(tcg_insn_unit *VAR_0, int VAR_1,\nintptr_t VAR_2, intptr_t VAR_3)\n{",
"tcg_insn_unit *target;",
"tcg_insn_unit old;",
"VAR_2 += VAR_3;",
"target = (tcg_insn_unit *)VAR_2;",
"switch (VAR_1) {",
"case R_PPC_REL14:\nreloc_pc14(VAR_0, target);",
"break;",
"case R_PPC_REL24:\nreloc_p... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[... |
6,571 | static int decode_scalefactors(AACContext *ac, float sf[120], GetBitContext *gb,
unsigned int global_gain,
IndividualChannelStream *ics,
enum BandType band_type[120],
int band_type_run_end[120... | true | FFmpeg | 5e239c7f9e57d09c6a4c1d5762f441950f8d979c | static int decode_scalefactors(AACContext *ac, float sf[120], GetBitContext *gb,
unsigned int global_gain,
IndividualChannelStream *ics,
enum BandType band_type[120],
int band_type_run_end[120... | {
"code": [
" static const char *const sf_str[3] = { \"Global gain\", \"Noise gain\", \"Intensity stereo position\" };",
" \"%s (%d) out of range.\\n\", sf_str[0], offset[0]);"
],
"line_no": [
21,
99
]
} | static int FUNC_0(AACContext *VAR_0, float VAR_1[120], GetBitContext *VAR_2,
unsigned int VAR_3,
IndividualChannelStream *VAR_4,
enum BandType VAR_5[120],
int VAR_6[120])
{
int VAR_7, VA... | [
"static int FUNC_0(AACContext *VAR_0, float VAR_1[120], GetBitContext *VAR_2,\nunsigned int VAR_3,\nIndividualChannelStream *VAR_4,\nenum BandType VAR_5[120],\nint VAR_6[120])\n{",
"int VAR_7, VAR_8, VAR_9 = 0;",
"int VAR_10[3] = { VAR_3, VAR_3 - 90, 0 };",
"int VAR_11;",
"int VAR_12 = 1;",
"static const ... | [
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,... |
6,572 | void qdev_init_gpio_out_named(DeviceState *dev, qemu_irq *pins,
const char *name, int n)
{
NamedGPIOList *gpio_list = qdev_get_named_gpio_list(dev, name);
assert(gpio_list->num_in == 0 || !name);
assert(gpio_list->num_out == 0);
gpio_list->num_out = n;
gpio_list->out = ... | true | qemu | 688b057aece53003f9d5a1dadc8961482dc2d948 | void qdev_init_gpio_out_named(DeviceState *dev, qemu_irq *pins,
const char *name, int n)
{
NamedGPIOList *gpio_list = qdev_get_named_gpio_list(dev, name);
assert(gpio_list->num_in == 0 || !name);
assert(gpio_list->num_out == 0);
gpio_list->num_out = n;
gpio_list->out = ... | {
"code": [],
"line_no": []
} | void FUNC_0(DeviceState *VAR_0, qemu_irq *VAR_1,
const char *VAR_2, int VAR_3)
{
NamedGPIOList *gpio_list = qdev_get_named_gpio_list(VAR_0, VAR_2);
assert(gpio_list->num_in == 0 || !VAR_2);
assert(gpio_list->num_out == 0);
gpio_list->num_out = VAR_3;
gpio_list->out = VA... | [
"void FUNC_0(DeviceState *VAR_0, qemu_irq *VAR_1,\nconst char *VAR_2, int VAR_3)\n{",
"NamedGPIOList *gpio_list = qdev_get_named_gpio_list(VAR_0, VAR_2);",
"assert(gpio_list->num_in == 0 || !VAR_2);",
"assert(gpio_list->num_out == 0);",
"gpio_list->num_out = VAR_3;",
"gpio_list->out = VAR_1;"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
]
] |
6,573 | static av_always_inline int check_block(SnowContext *s, int mb_x, int mb_y, int p[3], int intra, const uint8_t *obmc_edged, int *best_rd){
const int b_stride= s->b_width << s->block_max_depth;
BlockNode *block= &s->block[mb_x + mb_y * b_stride];
BlockNode backup= *block;
int rd, index, value;
... | true | FFmpeg | 8540dcfd7af14da4080770dfbfa997cffdd0878b | static av_always_inline int check_block(SnowContext *s, int mb_x, int mb_y, int p[3], int intra, const uint8_t *obmc_edged, int *best_rd){
const int b_stride= s->b_width << s->block_max_depth;
BlockNode *block= &s->block[mb_x + mb_y * b_stride];
BlockNode backup= *block;
int rd, index, value;
... | {
"code": [
" int rd, index, value;",
" int rd, index, value;"
],
"line_no": [
9,
9
]
} | static av_always_inline int FUNC_0(SnowContext *s, int mb_x, int mb_y, int p[3], int intra, const uint8_t *obmc_edged, int *best_rd){
const int VAR_0= s->b_width << s->block_max_depth;
BlockNode *block= &s->block[mb_x + mb_y * VAR_0];
BlockNode backup= *block;
int VAR_1, VAR_2, VAR_3;
assert(... | [
"static av_always_inline int FUNC_0(SnowContext *s, int mb_x, int mb_y, int p[3], int intra, const uint8_t *obmc_edged, int *best_rd){",
"const int VAR_0= s->b_width << s->block_max_depth;",
"BlockNode *block= &s->block[mb_x + mb_y * VAR_0];",
"BlockNode backup= *block;",
"int VAR_1, VAR_2, VAR_3;",
"asse... | [
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
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
43
],
[
45
],
[
47
... |
6,574 | static int vp3_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
Vp3DecodeContext *s = avctx->priv_data;
GetBitContext gb;
static int counter = 0;
int i;
init_get_bits(&gb, buf, buf_size * 8... | true | FFmpeg | bc185f72c0ef515d1d077df5bad2fb1336f70d5e | static int vp3_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
Vp3DecodeContext *s = avctx->priv_data;
GetBitContext gb;
static int counter = 0;
int i;
init_get_bits(&gb, buf, buf_size * 8... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
uint8_t *VAR_3, int VAR_4)
{
Vp3DecodeContext *s = VAR_0->priv_data;
GetBitContext gb;
static int VAR_5 = 0;
int VAR_6;
init_get_bits(&gb, VAR_3, VAR_4 * 8);
if ... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{",
"Vp3DecodeContext *s = VAR_0->priv_data;",
"GetBitContext gb;",
"static int VAR_5 = 0;",
"int VAR_6;",
"init_get_bits(&gb, VAR_3, VAR_4 * 8);",
"if (s->theora && get_bits1(&gb))\n{",
"#if 1\nav_log(VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23,
25
],
[
27,
29
],
[
32,
34
],
[
38
],
[
42,
44
],
[
46,
48
],
[
50
],
[
52,
54
],
[
56
],
[
58
... |
6,576 | static int swScale(SwsContext *c, const uint8_t* src[],
int srcStride[], int srcSliceY,
int srcSliceH, uint8_t* dst[], int dstStride[])
{
/* load a few things into local vars to make the code more readable? and faster */
const int srcW= c->srcW;
const int dstW= c-... | true | FFmpeg | 2254b559cbcfc0418135f09add37c0a5866b1981 | static int swScale(SwsContext *c, const uint8_t* src[],
int srcStride[], int srcSliceY,
int srcSliceH, uint8_t* dst[], int dstStride[])
{
const int srcW= c->srcW;
const int dstW= c->dstW;
const int dstH= c->dstH;
const int chrDstW= c->chrDstW;
cons... | {
"code": [
" int16_t *vLumFilterPos= c->vLumFilterPos;",
" int16_t *vChrFilterPos= c->vChrFilterPos;",
" int16_t *hLumFilterPos= c->hLumFilterPos;",
" int16_t *hChrFilterPos= c->hChrFilterPos;",
" int16_t *vLumFilterPos= c->vLumFilterPos;",
" int16_t *vChrFilterPos= c->vChrF... | 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[])
{
const int VAR_7= VAR_0->VAR_7;
const int VAR_8= VAR_0->VAR_8;
const int VAR_9= VAR_0->VAR_9;
const int VAR_10= VAR_0->VAR_10... | [
"static int FUNC_0(SwsContext *VAR_0, const uint8_t* VAR_1[],\nint VAR_2[], int VAR_3,\nint VAR_4, uint8_t* VAR_5[], int VAR_6[])\n{",
"const int VAR_7= VAR_0->VAR_7;",
"const int VAR_8= VAR_0->VAR_8;",
"const int VAR_9= VAR_0->VAR_9;",
"const int VAR_10= VAR_0->VAR_10;",
"const int VAR_11= VAR_0->VAR_11;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
6,578 | void tcg_op_remove(TCGContext *s, TCGOp *op)
{
int next = op->next;
int prev = op->prev;
/* We should never attempt to remove the list terminator. */
tcg_debug_assert(op != &s->gen_op_buf[0]);
s->gen_op_buf[next].prev = prev;
s->gen_op_buf[prev].next = next;
memset(op, 0, size... | true | qemu | 15fa08f8451babc88d733bd411d4c94976f9d0f8 | void tcg_op_remove(TCGContext *s, TCGOp *op)
{
int next = op->next;
int prev = op->prev;
tcg_debug_assert(op != &s->gen_op_buf[0]);
s->gen_op_buf[next].prev = prev;
s->gen_op_buf[prev].next = next;
memset(op, 0, sizeof(*op));
#ifdef CONFIG_PROFILER
atomic_set(&s->prof.... | {
"code": [
"#endif",
" int next = op->next;",
" int prev = op->prev;",
" tcg_debug_assert(op != &s->gen_op_buf[0]);",
" s->gen_op_buf[next].prev = prev;",
" s->gen_op_buf[prev].next = next;",
" memset(op, 0, sizeof(*op));"
],
"line_no": [
31,
5,
7,
13... | void FUNC_0(TCGContext *VAR_0, TCGOp *VAR_1)
{
int VAR_2 = VAR_1->VAR_2;
int VAR_3 = VAR_1->VAR_3;
tcg_debug_assert(VAR_1 != &VAR_0->gen_op_buf[0]);
VAR_0->gen_op_buf[VAR_2].VAR_3 = VAR_3;
VAR_0->gen_op_buf[VAR_3].VAR_2 = VAR_2;
memset(VAR_1, 0, sizeof(*VAR_1));
#ifdef CONF... | [
"void FUNC_0(TCGContext *VAR_0, TCGOp *VAR_1)\n{",
"int VAR_2 = VAR_1->VAR_2;",
"int VAR_3 = VAR_1->VAR_3;",
"tcg_debug_assert(VAR_1 != &VAR_0->gen_op_buf[0]);",
"VAR_0->gen_op_buf[VAR_2].VAR_3 = VAR_3;",
"VAR_0->gen_op_buf[VAR_3].VAR_2 = VAR_2;",
"memset(VAR_1, 0, sizeof(*VAR_1));",
"#ifdef CONFIG_PR... | [
0,
1,
1,
1,
1,
1,
1,
0,
1
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
17
],
[
19
],
[
23
],
[
27,
29
],
[
31,
33
]
] |
6,579 | static void avc_luma_midv_qrt_8w_msa(const uint8_t *src, int32_t src_stride,
uint8_t *dst, int32_t dst_stride,
int32_t height, uint8_t ver_offset)
{
uint32_t loop_cnt;
v16i8 src0, src1, src2, src3, src4;
v16i8 mask0, mask1, mask... | false | FFmpeg | 662234a9a22f1cd0f0ac83b8bb1ffadedca90c0a | static void avc_luma_midv_qrt_8w_msa(const uint8_t *src, int32_t src_stride,
uint8_t *dst, int32_t dst_stride,
int32_t height, uint8_t ver_offset)
{
uint32_t loop_cnt;
v16i8 src0, src1, src2, src3, src4;
v16i8 mask0, mask1, mask... | {
"code": [],
"line_no": []
} | static void FUNC_0(const uint8_t *VAR_0, int32_t VAR_1,
uint8_t *VAR_2, int32_t VAR_3,
int32_t VAR_4, uint8_t VAR_5)
{
uint32_t loop_cnt;
v16i8 src0, src1, src2, src3, src4;
v16i8 mask0, mask1, mask2;
v8i16 hz_out0, hz_out1... | [
"static void FUNC_0(const uint8_t *VAR_0, int32_t VAR_1,\nuint8_t *VAR_2, int32_t VAR_3,\nint32_t VAR_4, uint8_t VAR_5)\n{",
"uint32_t loop_cnt;",
"v16i8 src0, src1, src2, src3, src4;",
"v16i8 mask0, mask1, mask2;",
"v8i16 hz_out0, hz_out1, hz_out2, hz_out3;",
"v8i16 hz_out4, hz_out5, hz_out6, hz_out7, hz... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
... |
6,581 | static int gif_parse_next_image(GifState *s)
{
for (;;) {
int code = bytestream_get_byte(&s->bytestream);
#ifdef DEBUG
dprintf(s->avctx, "gif: code=%02x '%c'\n", code, code);
#endif
switch (code) {
case ',':
if (gif_read_image(s) < 0)
return -1;
... | false | FFmpeg | 7a28b7714e4503149f773782a19708c773f3d62d | static int gif_parse_next_image(GifState *s)
{
for (;;) {
int code = bytestream_get_byte(&s->bytestream);
#ifdef DEBUG
dprintf(s->avctx, "gif: code=%02x '%c'\n", code, code);
#endif
switch (code) {
case ',':
if (gif_read_image(s) < 0)
return -1;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(GifState *VAR_0)
{
for (;;) {
int VAR_1 = bytestream_get_byte(&VAR_0->bytestream);
#ifdef DEBUG
dprintf(VAR_0->avctx, "gif: VAR_1=%02x '%c'\n", VAR_1, VAR_1);
#endif
switch (VAR_1) {
case ',':
if (gif_read_image(VAR_0) < 0)
retu... | [
"static int FUNC_0(GifState *VAR_0)\n{",
"for (;;) {",
"int VAR_1 = bytestream_get_byte(&VAR_0->bytestream);",
"#ifdef DEBUG\ndprintf(VAR_0->avctx, \"gif: VAR_1=%02x '%c'\\n\", VAR_1, VAR_1);",
"#endif\nswitch (VAR_1) {",
"case ',':\nif (gif_read_image(VAR_0) < 0)\nreturn -1;",
"return 0;",
"case ';':... | [
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,
43
],
[
45
],
[
47
],
[
49
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.