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 |
|---|---|---|---|---|---|---|---|---|---|---|
17,205 | static int svq1_decode_block_intra(GetBitContext *bitbuf, uint8_t *pixels,
int pitch)
{
uint32_t bit_cache;
uint8_t *list[63];
uint32_t *dst;
const uint32_t *codebook;
int entries[6];
int i, j, m, n;
int mean, stages;
unsigned x, y, width, hei... | false | FFmpeg | 9b8c8a9395c849639aea0f6b5300e991e93c3a73 | static int svq1_decode_block_intra(GetBitContext *bitbuf, uint8_t *pixels,
int pitch)
{
uint32_t bit_cache;
uint8_t *list[63];
uint32_t *dst;
const uint32_t *codebook;
int entries[6];
int i, j, m, n;
int mean, stages;
unsigned x, y, width, hei... | {
"code": [],
"line_no": []
} | static int FUNC_0(GetBitContext *VAR_0, uint8_t *VAR_1,
int VAR_2)
{
uint32_t bit_cache;
uint8_t *list[63];
uint32_t *dst;
const uint32_t *VAR_3;
int VAR_4[6];
int VAR_5, VAR_6, VAR_7, VAR_8;
int VAR_9, VAR_10;
unsigned VAR_11, VAR_12, VAR_13,... | [
"static int FUNC_0(GetBitContext *VAR_0, uint8_t *VAR_1,\nint VAR_2)\n{",
"uint32_t bit_cache;",
"uint8_t *list[63];",
"uint32_t *dst;",
"const uint32_t *VAR_3;",
"int VAR_4[6];",
"int VAR_5, VAR_6, VAR_7, VAR_8;",
"int VAR_9, VAR_10;",
"unsigned VAR_11, VAR_12, VAR_13, VAR_14, VAR_15;",
"uint32_t... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
29
],
[
35
],
[
37
],
[
43
],
[
45
],
[
47
],
[
53
],
[
57
],
[
59
],
[... |
17,207 | int ff_h264_decode_mb_cavlc(H264Context *h){
MpegEncContext * const s = &h->s;
int mb_xy;
int partition_count;
unsigned int mb_type, cbp;
int dct8x8_allowed= h->pps.transform_8x8_mode;
mb_xy = h->mb_xy = s->mb_x + s->mb_y*s->mb_stride;
tprintf(s->avctx, "pic:%d mb:%d/%d\n", h->fra... | false | FFmpeg | c988f97566cdf536ba0dcbc0d77d885456852060 | int ff_h264_decode_mb_cavlc(H264Context *h){
MpegEncContext * const s = &h->s;
int mb_xy;
int partition_count;
unsigned int mb_type, cbp;
int dct8x8_allowed= h->pps.transform_8x8_mode;
mb_xy = h->mb_xy = s->mb_x + s->mb_y*s->mb_stride;
tprintf(s->avctx, "pic:%d mb:%d/%d\n", h->fra... | {
"code": [],
"line_no": []
} | int FUNC_0(H264Context *VAR_0){
MpegEncContext * const s = &VAR_0->s;
int VAR_1;
int VAR_2;
unsigned int VAR_3, VAR_4;
int VAR_5= VAR_0->pps.transform_8x8_mode;
VAR_1 = VAR_0->VAR_1 = s->mb_x + s->mb_y*s->mb_stride;
tprintf(s->avctx, "pic:%d mb:%d/%d\n", VAR_0->frame_num, s->mb_x,... | [
"int FUNC_0(H264Context *VAR_0){",
"MpegEncContext * const s = &VAR_0->s;",
"int VAR_1;",
"int VAR_2;",
"unsigned int VAR_3, VAR_4;",
"int VAR_5= VAR_0->pps.transform_8x8_mode;",
"VAR_1 = VAR_0->VAR_1 = s->mb_x + s->mb_y*s->mb_stride;",
"tprintf(s->avctx, \"pic:%d mb:%d/%d\\n\", VAR_0->frame_num, s->m... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
27,
29
],
[
33
],
[
35
],
[
37,
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
17,208 | int av_opt_set(void *obj, const char *name, const char *val, int search_flags)
{
int ret = 0;
void *dst, *target_obj;
const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
if (!o || !target_obj)
return AVERROR_OPTION_NOT_FOUND;
if (!val && (o->type != AV_OPT... | false | FFmpeg | 37bb6004059c15f6a17f38b4ab5c5f5d2f61c087 | int av_opt_set(void *obj, const char *name, const char *val, int search_flags)
{
int ret = 0;
void *dst, *target_obj;
const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
if (!o || !target_obj)
return AVERROR_OPTION_NOT_FOUND;
if (!val && (o->type != AV_OPT... | {
"code": [],
"line_no": []
} | int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2, int VAR_3)
{
int VAR_4 = 0;
void *VAR_5, *VAR_6;
const AVOption *VAR_7 = av_opt_find2(VAR_0, VAR_1, NULL, 0, VAR_3, &VAR_6);
if (!VAR_7 || !VAR_6)
return AVERROR_OPTION_NOT_FOUND;
if (!VAR_2 && (VAR_7->type != AV_OPT_TYPE_S... | [
"int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2, int VAR_3)\n{",
"int VAR_4 = 0;",
"void *VAR_5, *VAR_6;",
"const AVOption *VAR_7 = av_opt_find2(VAR_0, VAR_1, NULL, 0, VAR_3, &VAR_6);",
"if (!VAR_7 || !VAR_6)\nreturn AVERROR_OPTION_NOT_FOUND;",
"if (!VAR_2 && (VAR_7->type != AV_OPT_TYPE_STRI... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
39,
41
],
[
43,
45
],
[
47,
49
],
[
51,
53,
55,
57,
59,... |
17,209 | static int parse_uint64(DeviceState *dev, Property *prop, const char *str)
{
uint64_t *ptr = qdev_get_prop_ptr(dev, prop);
char *end;
/* accept both hex and decimal */
*ptr = strtoull(str, &end, 0);
if ((*end != '\0') || (end == str)) {
return -EINVAL;
}
return 0;
}
| true | qemu | 5cb9b56acfc0b50acf7ccd2d044ab4991c47fdde | static int parse_uint64(DeviceState *dev, Property *prop, const char *str)
{
uint64_t *ptr = qdev_get_prop_ptr(dev, prop);
char *end;
*ptr = strtoull(str, &end, 0);
if ((*end != '\0') || (end == str)) {
return -EINVAL;
}
return 0;
}
| {
"code": [
" return -EINVAL;",
" return 0;",
" char *end;",
" if ((*end != '\\0') || (end == str)) {",
" return -EINVAL;",
" return 0;",
" char *end;",
" if ((*end != '\\0') || (end == str)) {",
" return -EINVAL;",
" return 0;",
" ... | static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)
{
uint64_t *ptr = qdev_get_prop_ptr(VAR_0, VAR_1);
char *VAR_3;
*ptr = strtoull(VAR_2, &VAR_3, 0);
if ((*VAR_3 != '\0') || (VAR_3 == VAR_2)) {
return -EINVAL;
}
return 0;
}
| [
"static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)\n{",
"uint64_t *ptr = qdev_get_prop_ptr(VAR_0, VAR_1);",
"char *VAR_3;",
"*ptr = strtoull(VAR_2, &VAR_3, 0);",
"if ((*VAR_3 != '\\0') || (VAR_3 == VAR_2)) {",
"return -EINVAL;",
"}",
"return 0;",
"}"
] | [
1,
1,
1,
1,
1,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
]
] |
17,210 | static void gen_mtsr_64b(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);
#else
TCGv t0;
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);
return;
}
t0 = tcg_const_tl(SR(ctx->opcode));
gen_helpe... | true | qemu | 9b2fadda3e0196ffd485adde4fe9cdd6fae35300 | static void gen_mtsr_64b(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);
#else
TCGv t0;
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);
return;
}
t0 = tcg_const_tl(SR(ctx->opcode));
gen_helpe... | {
"code": [
" if (unlikely(ctx->pr)) {",
" if (unlikely(ctx->pr)) {",
"#if defined(CONFIG_USER_ONLY)",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);",
"#else",
" if (unlikely(ctx->pr)) {",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);",
"#endif",
"#if d... | static void FUNC_0(DisasContext *VAR_0)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);
#else
TCGv t0;
if (unlikely(VAR_0->pr)) {
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);
return;
}
t0 = tcg_const_tl(SR(VAR_0->opcode));
gen_h... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);",
"#else\nTCGv t0;",
"if (unlikely(VAR_0->pr)) {",
"gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);",
"return;",
"}",
"t0 = tcg_const_tl(SR(VAR_0->opcode));",
"gen_help... | [
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
1
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
]
] |
17,211 | static int64_t dv_frame_offset(AVFormatContext *s, DVDemuxContext *c,
int64_t timestamp, int flags)
{
// FIXME: sys may be wrong if last dv_read_packet() failed (buffer is junk)
const AVDVProfile *sys = av_dv_codec_profile2(c->vst->codec->width, c->vst->codec->height,
... | true | FFmpeg | 2139e584391b6db7ad315cf4f6443f87f7813d51 | static int64_t dv_frame_offset(AVFormatContext *s, DVDemuxContext *c,
int64_t timestamp, int flags)
{
const AVDVProfile *sys = av_dv_codec_profile2(c->vst->codec->width, c->vst->codec->height,
c->vst->codec->pix_fmt, c->vst->c... | {
"code": [
" const AVDVProfile *sys = av_dv_codec_profile2(c->vst->codec->width, c->vst->codec->height,",
" c->vst->codec->pix_fmt, c->vst->codec->time_base);"
],
"line_no": [
9,
11
]
} | static int64_t FUNC_0(AVFormatContext *s, DVDemuxContext *c,
int64_t timestamp, int flags)
{
const AVDVProfile *VAR_0 = av_dv_codec_profile2(c->vst->codec->width, c->vst->codec->height,
c->vst->codec->pix_fmt, c->vst->codec->t... | [
"static int64_t FUNC_0(AVFormatContext *s, DVDemuxContext *c,\nint64_t timestamp, int flags)\n{",
"const AVDVProfile *VAR_0 = av_dv_codec_profile2(c->vst->codec->width, c->vst->codec->height,\nc->vst->codec->pix_fmt, c->vst->codec->time_base);",
"int64_t offset;",
"int64_t size = avio_size(s->pb) - s->i... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25,
27
],
[
29,
31
],
[
35
],
[
37
]
] |
17,212 | void msix_write_config(PCIDevice *dev, uint32_t addr,
uint32_t val, int len)
{
unsigned enable_pos = dev->msix_cap + MSIX_CONTROL_OFFSET;
int vector;
bool was_masked;
if (!range_covers_byte(addr, len, enable_pos)) {
return;
}
was_masked = dev->msix_fun... | true | qemu | ae392c416c69a020226c768d9c3af08b29dd6d96 | void msix_write_config(PCIDevice *dev, uint32_t addr,
uint32_t val, int len)
{
unsigned enable_pos = dev->msix_cap + MSIX_CONTROL_OFFSET;
int vector;
bool was_masked;
if (!range_covers_byte(addr, len, enable_pos)) {
return;
}
was_masked = dev->msix_fun... | {
"code": [
" msix_handle_mask_update(dev, vector);"
],
"line_no": [
51
]
} | void FUNC_0(PCIDevice *VAR_0, uint32_t VAR_1,
uint32_t VAR_2, int VAR_3)
{
unsigned VAR_4 = VAR_0->msix_cap + MSIX_CONTROL_OFFSET;
int VAR_5;
bool was_masked;
if (!range_covers_byte(VAR_1, VAR_3, VAR_4)) {
return;
}
was_masked = VAR_0->msix_function_ma... | [
"void FUNC_0(PCIDevice *VAR_0, uint32_t VAR_1,\nuint32_t VAR_2, int VAR_3)\n{",
"unsigned VAR_4 = VAR_0->msix_cap + MSIX_CONTROL_OFFSET;",
"int VAR_5;",
"bool was_masked;",
"if (!range_covers_byte(VAR_1, VAR_3, VAR_4)) {",
"return;",
"}",
"was_masked = VAR_0->msix_function_masked;",
"msix_update_fun... | [
0,
0,
0,
0,
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
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[... |
17,213 | static int get_uint32_equal(QEMUFile *f, void *pv, size_t size,
VMStateField *field)
{
uint32_t *v = pv;
uint32_t v2;
qemu_get_be32s(f, &v2);
if (*v == v2) {
return 0;
error_report("%" PRIx32 " != %" PRIx32, *v, v2);
return -EINVAL;
| true | qemu | d2164ad35c411d97abd2aa5c6f160283d215e214 | static int get_uint32_equal(QEMUFile *f, void *pv, size_t size,
VMStateField *field)
{
uint32_t *v = pv;
uint32_t v2;
qemu_get_be32s(f, &v2);
if (*v == v2) {
return 0;
error_report("%" PRIx32 " != %" PRIx32, *v, v2);
return -EINVAL;
| {
"code": [],
"line_no": []
} | static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2,
VMStateField *VAR_3)
{
uint32_t *v = VAR_1;
uint32_t v2;
qemu_get_be32s(VAR_0, &v2);
if (*v == v2) {
return 0;
error_report("%" PRIx32 " != %" PRIx32, *v, v2);
return -EINVAL;
| [
"static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2,\nVMStateField *VAR_3)\n{",
"uint32_t *v = VAR_1;",
"uint32_t v2;",
"qemu_get_be32s(VAR_0, &v2);",
"if (*v == v2) {",
"return 0;",
"error_report(\"%\" PRIx32 \" != %\" PRIx32, *v, v2);",
"return -EINVAL;"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
20
],
[
25
]
] |
17,214 | static int qemu_rdma_accept(RDMAContext *rdma)
{
RDMACapabilities cap;
struct rdma_conn_param conn_param = {
.responder_resources = 2,
.private_data = &cap,
.private_data_len... | true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static int qemu_rdma_accept(RDMAContext *rdma)
{
RDMACapabilities cap;
struct rdma_conn_param conn_param = {
.responder_resources = 2,
.private_data = &cap,
.private_data_len... | {
"code": [],
"line_no": []
} | static int FUNC_0(RDMAContext *VAR_0)
{
RDMACapabilities cap;
struct rdma_conn_param VAR_1 = {
.responder_resources = 2,
.private_data = &cap,
.private_data_len = sizeof(cap)... | [
"static int FUNC_0(RDMAContext *VAR_0)\n{",
"RDMACapabilities cap;",
"struct rdma_conn_param VAR_1 = {",
".responder_resources = 2,\n.private_data = &cap,\n.private_data_len = sizeof(cap),\n};",
"struct rdma_cm_event *VAR_2;",
"struct ibv_context *VAR_3;",
"int VAR_4 = -EINVAL;",
"int VAR_5;",
"VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11,
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
51
],
[... |
17,215 | int inet_listen(const char *str, char *ostr, int olen,
int socktype, int port_offset, Error **errp)
{
QemuOpts *opts;
char *optstr;
int sock = -1;
opts = qemu_opts_create(&dummy_opts, NULL, 0);
if (inet_parse(opts, str) == 0) {
sock = inet_listen_opts(opts, port_off... | true | qemu | 8be7e7e4c72c048b90e3482557954a24bba43ba7 | int inet_listen(const char *str, char *ostr, int olen,
int socktype, int port_offset, Error **errp)
{
QemuOpts *opts;
char *optstr;
int sock = -1;
opts = qemu_opts_create(&dummy_opts, NULL, 0);
if (inet_parse(opts, str) == 0) {
sock = inet_listen_opts(opts, port_off... | {
"code": [
" opts = qemu_opts_create(&dummy_opts, NULL, 0);",
" opts = qemu_opts_create(&dummy_opts, NULL, 0);",
" opts = qemu_opts_create(&dummy_opts, NULL, 0);",
" opts = qemu_opts_create(&dummy_opts, NULL, 0);"
],
"line_no": [
15,
15,
15,
15
]
} | int FUNC_0(const char *VAR_0, char *VAR_1, int VAR_2,
int VAR_3, int VAR_4, Error **VAR_5)
{
QemuOpts *opts;
char *VAR_6;
int VAR_7 = -1;
opts = qemu_opts_create(&dummy_opts, NULL, 0);
if (inet_parse(opts, VAR_0) == 0) {
VAR_7 = inet_listen_opts(opts, VAR_4, VAR_5);... | [
"int FUNC_0(const char *VAR_0, char *VAR_1, int VAR_2,\nint VAR_3, int VAR_4, Error **VAR_5)\n{",
"QemuOpts *opts;",
"char *VAR_6;",
"int VAR_7 = -1;",
"opts = qemu_opts_create(&dummy_opts, NULL, 0);",
"if (inet_parse(opts, VAR_0) == 0) {",
"VAR_7 = inet_listen_opts(opts, VAR_4, VAR_5);",
"if (VAR_7 !... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29,
31,
33
],
[
35
],
[
37,
39,
41,
43
],
[
45
],
[
47
],
[
49
],
[... |
17,216 | static int ogg_read_page(AVFormatContext *s, int *sid)
{
AVIOContext *bc = s->pb;
struct ogg *ogg = s->priv_data;
struct ogg_stream *os;
int ret, i = 0;
int flags, nsegs;
uint64_t gp;
uint32_t serial;
int size, idx;
uint8_t sync[4];
int sp = 0;
ret = avio_read(b... | true | FFmpeg | 9b8152bf047bbebe4495b993258591687bcdd36d | static int ogg_read_page(AVFormatContext *s, int *sid)
{
AVIOContext *bc = s->pb;
struct ogg *ogg = s->priv_data;
struct ogg_stream *os;
int ret, i = 0;
int flags, nsegs;
uint64_t gp;
uint32_t serial;
int size, idx;
uint8_t sync[4];
int sp = 0;
ret = avio_read(b... | {
"code": [
" if (os->psize > 0)",
" ogg_new_buf(ogg, idx);"
],
"line_no": [
145,
147
]
} | static int FUNC_0(AVFormatContext *VAR_0, int *VAR_1)
{
AVIOContext *bc = VAR_0->pb;
struct VAR_2 *VAR_2 = VAR_0->priv_data;
struct ogg_stream *VAR_3;
int VAR_4, VAR_5 = 0;
int VAR_6, VAR_7;
uint64_t gp;
uint32_t serial;
int VAR_8, VAR_9;
uint8_t sync[4];
int VAR_10 = ... | [
"static int FUNC_0(AVFormatContext *VAR_0, int *VAR_1)\n{",
"AVIOContext *bc = VAR_0->pb;",
"struct VAR_2 *VAR_2 = VAR_0->priv_data;",
"struct ogg_stream *VAR_3;",
"int VAR_4, VAR_5 = 0;",
"int VAR_6, VAR_7;",
"uint64_t gp;",
"uint32_t serial;",
"int VAR_8, VAR_9;",
"uint8_t sync[4];",
"int VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29,
31
],
[
35
],
[
37
],
[
41,
43,
45,
47
],
[
51
],
[
53
... |
17,217 | static inline void RENAME(uyvyToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, long width)
{
#ifdef HAVE_MMX
asm volatile(
"movq "MANGLE(bm01010101)", %%mm4\n\t"
"mov %0, %%"REG_a" \n\t"
"1: \n\t"
"movq (%1, %%"REG_a",4), %%mm0 \n\t"
"movq 8(%1, %%"REG_a",4), %%mm1 \n\t"
"pand... | true | FFmpeg | 2da0d70d5eebe42f9fcd27ee554419ebe2a5da06 | static inline void RENAME(uyvyToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, long width)
{
#ifdef HAVE_MMX
asm volatile(
"movq "MANGLE(bm01010101)", %%mm4\n\t"
"mov %0, %%"REG_a" \n\t"
"1: \n\t"
"movq (%1, %%"REG_a",4), %%mm0 \n\t"
"movq 8(%1, %%"REG_a",4), %%mm1 \n\t"
"pand... | {
"code": [
"\t\t\"packuswb %%mm1, %%mm1\t\t\\n\\t\"",
"\tasm volatile(",
"\t\t: \"%\"REG_a",
"\t);",
"\tint i;",
"#endif",
"#endif",
"#endif",
"#endif",
"#endif",
"\tint i;",
"#endif",
"#endif",
"#endif",
"#endif",
"\tint i;",
"#endif",
"#endif"... | static inline void FUNC_0(uyvyToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, long width)
{
#ifdef HAVE_MMX
asm volatile(
"movq "MANGLE(bm01010101)", %%mm4\n\t"
"mov %0, %%"REG_a" \n\t"
"1: \n\t"
"movq (%1, %%"REG_a",4), %%mm0 \n\t"
"movq 8(%1, %%"REG_a",4), %%mm1 \n\t"
"pand... | [
"static inline void FUNC_0(uyvyToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, long width)\n{",
"#ifdef HAVE_MMX\nasm volatile(\n\"movq \"MANGLE(bm01010101)\", %%mm4\\n\\t\"\n\"mov %0, %%\"REG_a\"\t\t\\n\\t\"\n\"1:\t\t\t\t\\n\\t\"\n\"movq (%1, %%\"REG_a\",4), %%mm0\t\\n\\t\"\n\"movq 8(%1, %%\"RE... | [
0,
1,
1,
1,
0,
1,
1,
0,
1,
0
] | [
[
1,
3
],
[
5,
7,
9,
11,
13,
15,
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47
],
[
49,
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
],
[
63,... |
17,218 | static void r2d_init(MachineState *machine)
{
const char *cpu_model = machine->cpu_model;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
SuperHCPU *cpu;
CPUSH4State *env;... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | static void r2d_init(MachineState *machine)
{
const char *cpu_model = machine->cpu_model;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
SuperHCPU *cpu;
CPUSH4State *env;... | {
"code": [
" memory_region_init_ram(sdram, NULL, \"r2d.sdram\", SDRAM_SIZE, &error_abort);"
],
"line_no": [
73
]
} | static void FUNC_0(MachineState *VAR_0)
{
const char *VAR_1 = VAR_0->VAR_1;
const char *VAR_2 = VAR_0->VAR_2;
const char *VAR_3 = VAR_0->VAR_3;
const char *VAR_4 = VAR_0->VAR_4;
SuperHCPU *cpu;
CPUSH4State *env;
ResetData *reset_info;
struct SH7750State *VAR_5;
MemoryRegion... | [
"static void FUNC_0(MachineState *VAR_0)\n{",
"const char *VAR_1 = VAR_0->VAR_1;",
"const char *VAR_2 = VAR_0->VAR_2;",
"const char *VAR_3 = VAR_0->VAR_3;",
"const char *VAR_4 = VAR_0->VAR_4;",
"SuperHCPU *cpu;",
"CPUSH4State *env;",
"ResetData *reset_info;",
"struct SH7750State *VAR_5;",
"MemoryR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
... |
17,219 | static void menelaus_rtc_hz(void *opaque)
{
struct menelaus_s *s = (struct menelaus_s *) opaque;
s->rtc.next_comp --;
s->rtc.alm_sec --;
s->rtc.next += 1000;
qemu_mod_timer(s->rtc.hz, s->rtc.next);
if ((s->rtc.ctrl >> 3) & 3) { /* EVERY */
menelaus_rtc_update(s);
if... | true | qemu | b0f74c87a1dbd6b0c5e4de7f1c5cb40197e3fbe9 | static void menelaus_rtc_hz(void *opaque)
{
struct menelaus_s *s = (struct menelaus_s *) opaque;
s->rtc.next_comp --;
s->rtc.alm_sec --;
s->rtc.next += 1000;
qemu_mod_timer(s->rtc.hz, s->rtc.next);
if ((s->rtc.ctrl >> 3) & 3) {
menelaus_rtc_update(s);
if (((s->rtc.... | {
"code": [
" qemu_mod_timer(s->rtc.hz, s->rtc.next);",
" qemu_mod_timer(s->rtc.hz, s->rtc.next);"
],
"line_no": [
15,
15
]
} | static void FUNC_0(void *VAR_0)
{
struct menelaus_s *VAR_1 = (struct menelaus_s *) VAR_0;
VAR_1->rtc.next_comp --;
VAR_1->rtc.alm_sec --;
VAR_1->rtc.next += 1000;
qemu_mod_timer(VAR_1->rtc.hz, VAR_1->rtc.next);
if ((VAR_1->rtc.ctrl >> 3) & 3) {
menelaus_rtc_update(VAR_1);
... | [
"static void FUNC_0(void *VAR_0)\n{",
"struct menelaus_s *VAR_1 = (struct menelaus_s *) VAR_0;",
"VAR_1->rtc.next_comp --;",
"VAR_1->rtc.alm_sec --;",
"VAR_1->rtc.next += 1000;",
"qemu_mod_timer(VAR_1->rtc.hz, VAR_1->rtc.next);",
"if ((VAR_1->rtc.ctrl >> 3) & 3) {",
"menelaus_rtc_update(VAR_1);",
"i... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
45
],
[
47
],
[
49... |
17,220 | static void net_slirp_cleanup(NetClientState *nc)
{
SlirpState *s = DO_UPCAST(SlirpState, nc, nc);
slirp_cleanup(s->slirp);
qemu_remove_exit_notifier(&s->exit_notifier);
slirp_smb_cleanup(s);
QTAILQ_REMOVE(&slirp_stacks, s, entry);
}
| true | qemu | 67f3280c062d622dc077246b483702096d11dcc0 | static void net_slirp_cleanup(NetClientState *nc)
{
SlirpState *s = DO_UPCAST(SlirpState, nc, nc);
slirp_cleanup(s->slirp);
qemu_remove_exit_notifier(&s->exit_notifier);
slirp_smb_cleanup(s);
QTAILQ_REMOVE(&slirp_stacks, s, entry);
}
| {
"code": [
" qemu_remove_exit_notifier(&s->exit_notifier);"
],
"line_no": [
11
]
} | static void FUNC_0(NetClientState *VAR_0)
{
SlirpState *s = DO_UPCAST(SlirpState, VAR_0, VAR_0);
slirp_cleanup(s->slirp);
qemu_remove_exit_notifier(&s->exit_notifier);
slirp_smb_cleanup(s);
QTAILQ_REMOVE(&slirp_stacks, s, entry);
}
| [
"static void FUNC_0(NetClientState *VAR_0)\n{",
"SlirpState *s = DO_UPCAST(SlirpState, VAR_0, VAR_0);",
"slirp_cleanup(s->slirp);",
"qemu_remove_exit_notifier(&s->exit_notifier);",
"slirp_smb_cleanup(s);",
"QTAILQ_REMOVE(&slirp_stacks, s, entry);",
"}"
] | [
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
17,221 | static void FUNC(intra_pred)(HEVCContext *s, int x0, int y0, int log2_size, int c_idx)
{
#define PU(x) \
((x) >> s->sps->log2_min_pu_size)
#define MVF(x, y) \
(s->ref->tab_mvf[(x) + (y) * pic_width_in_min_pu])
#define MVF_PU(x, y) \
MVF(PU(x0 + ((x) << hshift)), PU(y0 + ((y) << vshift)))
#define IS_... | true | FFmpeg | 09ef98f1ae3c8a4e08b66f41c3bd97dd7b07405f | static void FUNC(intra_pred)(HEVCContext *s, int x0, int y0, int log2_size, int c_idx)
{
#define PU(x) \
((x) >> s->sps->log2_min_pu_size)
#define MVF(x, y) \
(s->ref->tab_mvf[(x) + (y) * pic_width_in_min_pu])
#define MVF_PU(x, y) \
MVF(PU(x0 + ((x) << hshift)), PU(y0 + ((y) << vshift)))
#define IS_... | {
"code": [
" int min_dist_vert_hor = FFMIN(FFABS((int)mode - 26),",
" FFABS((int)mode - 10));"
],
"line_no": [
547,
549
]
} | static void FUNC_0(intra_pred)(HEVCContext *s, int x0, int y0, int log2_size, int c_idx)
{
#define PU(VAR_6) \
((VAR_6) >> s->sps->log2_min_pu_size)
#define MVF(VAR_6, VAR_7) \
(s->ref->tab_mvf[(VAR_6) + (VAR_7) * VAR_11])
#define MVF_PU(VAR_6, VAR_7) \
MVF(PU(x0 + ((VAR_6) << VAR_1)), PU(y0 + ((VAR_... | [
"static void FUNC_0(intra_pred)(HEVCContext *s, int x0, int y0, int log2_size, int c_idx)\n{",
"#define PU(VAR_6) \\\n((VAR_6) >> s->sps->log2_min_pu_size)\n#define MVF(VAR_6, VAR_7) \\\n(s->ref->tab_mvf[(VAR_6) + (VAR_7) * VAR_11])\n#define MVF_PU(VAR_6, VAR_7) \\\nMVF(PU(x0 + ((VAR_6) << VAR_1)), PU(y0 + ((VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5,
7,
9,
11,
13,
15,
17,
19,
21,
23,
25,
27
],
[
29,
31,
33
],
[
35,
37,
39,
41,
43
],
[
45,
47,
49,
51
],
[
53,
55,
57,
59
],
[
61,
63,
65,
67
... |
17,222 | TranslationBlock *tb_gen_code(CPUState *cpu,
target_ulong pc, target_ulong cs_base,
int flags, int cflags)
{
CPUArchState *env = cpu->env_ptr;
TranslationBlock *tb;
tb_page_addr_t phys_pc, phys_page2;
target_ulong virt_page2;
tcg_in... | true | qemu | b125f9dc7bd68cd4c57189db4da83b0620b28a72 | TranslationBlock *tb_gen_code(CPUState *cpu,
target_ulong pc, target_ulong cs_base,
int flags, int cflags)
{
CPUArchState *env = cpu->env_ptr;
TranslationBlock *tb;
tb_page_addr_t phys_pc, phys_page2;
target_ulong virt_page2;
tcg_in... | {
"code": [
" if (!tb) {"
],
"line_no": [
39
]
} | TranslationBlock *FUNC_0(CPUState *cpu,
target_ulong pc, target_ulong cs_base,
int flags, int cflags)
{
CPUArchState *env = cpu->env_ptr;
TranslationBlock *tb;
tb_page_addr_t phys_pc, phys_page2;
target_ulong virt_page2;
tcg_insn_un... | [
"TranslationBlock *FUNC_0(CPUState *cpu,\ntarget_ulong pc, target_ulong cs_base,\nint flags, int cflags)\n{",
"CPUArchState *env = cpu->env_ptr;",
"TranslationBlock *tb;",
"tb_page_addr_t phys_pc, phys_page2;",
"target_ulong virt_page2;",
"tcg_insn_unit *gen_code_buf;",
"int VAR_0, VAR_1;",
"#ifdef CO... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
47
],
[
51
],
[
53
... |
17,223 | static inline void vc1_pred_b_mv(VC1Context *v, int dmv_x[2], int dmv_y[2],
int direct, int mvtype)
{
MpegEncContext *s = &v->s;
int xy, wrap, off = 0;
int16_t *A, *B, *C;
int px, py;
int sum;
int r_x, r_y;
const uint8_t *is_intra = v->mb_type[0];
r_x = v... | true | FFmpeg | f4b288a639bbda3ca244072e67b689aa4f40f2c6 | static inline void vc1_pred_b_mv(VC1Context *v, int dmv_x[2], int dmv_y[2],
int direct, int mvtype)
{
MpegEncContext *s = &v->s;
int xy, wrap, off = 0;
int16_t *A, *B, *C;
int px, py;
int sum;
int r_x, r_y;
const uint8_t *is_intra = v->mb_type[0];
r_x = v... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(VC1Context *VAR_0, int VAR_1[2], int VAR_2[2],
int VAR_3, int VAR_4)
{
MpegEncContext *s = &VAR_0->s;
int VAR_5, VAR_6, VAR_7 = 0;
int16_t *A, *B, *C;
int VAR_8, VAR_9;
int VAR_10;
int VAR_11, VAR_12;
const uint8_t *VAR_13 = VAR_0->m... | [
"static inline void FUNC_0(VC1Context *VAR_0, int VAR_1[2], int VAR_2[2],\nint VAR_3, int VAR_4)\n{",
"MpegEncContext *s = &VAR_0->s;",
"int VAR_5, VAR_6, VAR_7 = 0;",
"int16_t *A, *B, *C;",
"int VAR_8, VAR_9;",
"int VAR_10;",
"int VAR_11, VAR_12;",
"const uint8_t *VAR_13 = VAR_0->mb_type[0];",
"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,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21,
22,
23,
24
],... |
17,225 | static void test_ide_drive_user(const char *dev, bool trans)
{
char *argv[256], *opts;
int argc;
int secs = img_secs[backend_small];
const CHST expected_chst = { secs / (4 * 32) , 4, 32, trans };
argc = setup_common(argv, ARRAY_SIZE(argv));
opts = g_strdup_printf("%s,%s%scyls=%d,heads=%... | true | qemu | 2c8f86961b6eaac705be21bc98299f5517eb0b6b | static void test_ide_drive_user(const char *dev, bool trans)
{
char *argv[256], *opts;
int argc;
int secs = img_secs[backend_small];
const CHST expected_chst = { secs / (4 * 32) , 4, 32, trans };
argc = setup_common(argv, ARRAY_SIZE(argv));
opts = g_strdup_printf("%s,%s%scyls=%d,heads=%... | {
"code": [
" qtest_start(g_strjoinv(\" \", argv));",
" argc = setup_common(argv, ARRAY_SIZE(argv));",
" qtest_start(g_strjoinv(\" \", argv));",
" char *argv[256], *opts;",
" argc = setup_common(argv, ARRAY_SIZE(argv));",
" argc = setup_ide(argc, argv, ARRAY_SIZE(argv),",
... | static void FUNC_0(const char *VAR_0, bool VAR_1)
{
char *VAR_2[256], *VAR_3;
int VAR_4;
int VAR_5 = img_secs[backend_small];
const CHST VAR_6 = { VAR_5 / (4 * 32) , 4, 32, VAR_1 };
VAR_4 = setup_common(VAR_2, ARRAY_SIZE(VAR_2));
VAR_3 = g_strdup_printf("%s,%s%scyls=%d,heads=%d,VAR_5=%d... | [
"static void FUNC_0(const char *VAR_0, bool VAR_1)\n{",
"char *VAR_2[256], *VAR_3;",
"int VAR_4;",
"int VAR_5 = img_secs[backend_small];",
"const CHST VAR_6 = { VAR_5 / (4 * 32) , 4, 32, VAR_1 };",
"VAR_4 = setup_common(VAR_2, ARRAY_SIZE(VAR_2));",
"VAR_3 = g_strdup_printf(\"%s,%s%scyls=%d,heads=%d,VAR_... | [
0,
1,
0,
0,
0,
1,
0,
0,
1,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19,
21,
23,
25,
27
],
[
29
],
[
31,
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
]
] |
17,226 | static int read_rle_sgi(const SGIInfo *sgi_info,
AVPicture *pict, ByteIOContext *f)
{
uint8_t *dest_row, *rle_data = NULL;
unsigned long *start_table, *length_table;
int y, z, xsize, ysize, zsize, tablen;
long start_offset, run_length;
int ret = 0;
xsize = sgi_info->xsize;
... | true | FFmpeg | 44f110f509d0ab4fc73b9f2363a97c6577d3850f | static int read_rle_sgi(const SGIInfo *sgi_info,
AVPicture *pict, ByteIOContext *f)
{
uint8_t *dest_row, *rle_data = NULL;
unsigned long *start_table, *length_table;
int y, z, xsize, ysize, zsize, tablen;
long start_offset, run_length;
int ret = 0;
xsize = sgi_info->xsize;
... | {
"code": [
" uint8_t *dest_row, *rle_data = NULL;",
" unsigned long *start_table, *length_table;",
" long start_offset, run_length;",
" rle_data = av_malloc(xsize);",
" length_table = (unsigned long *)av_malloc(tablen);",
" ret = -1;",
" if (!get_buffer(f, (uint8_... | static int FUNC_0(const SGIInfo *VAR_0,
AVPicture *VAR_1, ByteIOContext *VAR_2)
{
uint8_t *dest_row, *rle_data = NULL;
unsigned long *VAR_3, *VAR_4;
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;
long VAR_11, VAR_12;
int VAR_13 = 0;
VAR_7 = VAR_0->VAR_7;
VAR_8 = VAR_0->V... | [
"static int FUNC_0(const SGIInfo *VAR_0,\nAVPicture *VAR_1, ByteIOContext *VAR_2)\n{",
"uint8_t *dest_row, *rle_data = NULL;",
"unsigned long *VAR_3, *VAR_4;",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;",
"long VAR_11, VAR_12;",
"int VAR_13 = 0;",
"VAR_7 = VAR_0->VAR_7;",
"VAR_8 = VAR_0->VAR_8;",... | [
0,
1,
1,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
1,
0,
0,
0,
1,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
33
],
[
39
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[
59
],
[... |
17,228 | static inline int check_physical(CPUPPCState *env, mmu_ctx_t *ctx,
target_ulong eaddr, int rw)
{
int in_plb, ret;
ctx->raddr = eaddr;
ctx->prot = PAGE_READ | PAGE_EXEC;
ret = 0;
switch (env->mmu_model) {
case POWERPC_MMU_32B:
case POWERPC_MMU_601:
... | true | qemu | 4656e1f01289cc3aa20986deb6a407165826abe5 | static inline int check_physical(CPUPPCState *env, mmu_ctx_t *ctx,
target_ulong eaddr, int rw)
{
int in_plb, ret;
ctx->raddr = eaddr;
ctx->prot = PAGE_READ | PAGE_EXEC;
ret = 0;
switch (env->mmu_model) {
case POWERPC_MMU_32B:
case POWERPC_MMU_601:
... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(CPUPPCState *VAR_0, mmu_ctx_t *VAR_1,
target_ulong VAR_2, int VAR_3)
{
int VAR_4, VAR_5;
VAR_1->raddr = VAR_2;
VAR_1->prot = PAGE_READ | PAGE_EXEC;
VAR_5 = 0;
switch (VAR_0->mmu_model) {
case POWERPC_MMU_32B:
case POWERPC_M... | [
"static inline int FUNC_0(CPUPPCState *VAR_0, mmu_ctx_t *VAR_1,\ntarget_ulong VAR_2, int VAR_3)\n{",
"int VAR_4, VAR_5;",
"VAR_1->raddr = VAR_2;",
"VAR_1->prot = PAGE_READ | PAGE_EXEC;",
"VAR_5 = 0;",
"switch (VAR_0->mmu_model) {",
"case POWERPC_MMU_32B:\ncase POWERPC_MMU_601:\ncase POWERPC_MMU_SOFT_6xx... | [
0,
0,
0,
0,
0,
0,
0,
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,
48
],
[
50
],
[
52
],
[
54,
56,
58
],
[
66... |
17,229 | static int pcm_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
const uint8_t *buf, int buf_size)
{
PCMDecode *s = avctx->priv_data;
int sample_size, c, n;
short *samples;
const uint8_t *src, *src2[MAX_CHANNELS];
uint8_t ... | true | FFmpeg | 2cd04cf919ce2f22da391bd80b7664a25348b943 | static int pcm_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
const uint8_t *buf, int buf_size)
{
PCMDecode *s = avctx->priv_data;
int sample_size, c, n;
short *samples;
const uint8_t *src, *src2[MAX_CHANNELS];
uint8_t ... | {
"code": [
" n = avctx->channels * sample_size;",
" n = 2 * avctx->channels * avctx->bits_per_sample/8;"
],
"line_no": [
61,
69
]
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
const uint8_t *VAR_3, int VAR_4)
{
PCMDecode *s = VAR_0->priv_data;
int VAR_5, VAR_6, VAR_7;
short *VAR_8;
const uint8_t *VAR_9, *src2[MAX_CHANNELS];
uint8_t *dstu8;
... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{",
"PCMDecode *s = VAR_0->priv_data;",
"int VAR_5, VAR_6, VAR_7;",
"short *VAR_8;",
"const uint8_t *VAR_9, *src2[MAX_CHANNELS];",
"uint8_t *dstu8;",
"int16_t *dst_int16_t;",
"int32_t *dst_int32_t;",... | [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
... |
17,230 | static int vmdk_add_extent(BlockDriverState *bs,
BlockDriverState *file, bool flat, int64_t sectors,
int64_t l1_offset, int64_t l1_backup_offset,
uint32_t l1_size,
int l2_size, uint64_t cluster_sectors,
... | true | qemu | 5839e53bbc0fec56021d758aab7610df421ed8c8 | static int vmdk_add_extent(BlockDriverState *bs,
BlockDriverState *file, bool flat, int64_t sectors,
int64_t l1_offset, int64_t l1_backup_offset,
uint32_t l1_size,
int l2_size, uint64_t cluster_sectors,
... | {
"code": [
" s->extents = g_realloc(s->extents,",
" (s->num_extents + 1) * sizeof(VmdkExtent));"
],
"line_no": [
63,
65
]
} | static int FUNC_0(BlockDriverState *VAR_0,
BlockDriverState *VAR_1, bool VAR_2, int64_t VAR_3,
int64_t VAR_4, int64_t VAR_5,
uint32_t VAR_6,
int VAR_7, uint64_t VAR_8,
VmdkExtent *... | [
"static int FUNC_0(BlockDriverState *VAR_0,\nBlockDriverState *VAR_1, bool VAR_2, int64_t VAR_3,\nint64_t VAR_4, int64_t VAR_5,\nuint32_t VAR_6,\nint VAR_7, uint64_t VAR_8,\nVmdkExtent **VAR_9,\nError **VAR_10)\n{",
"VmdkExtent *extent;",
"BDRVVmdkState *s = VAR_0->opaque;",
"int64_t length;",
"if (VAR_8 > ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13,
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
],
[
57
],
[
59
],
[
63,... |
17,231 | static float64 addFloat64Sigs( float64 a, float64 b, flag zSign STATUS_PARAM )
{
int16 aExp, bExp, zExp;
uint64_t aSig, bSig, zSig;
int16 expDiff;
aSig = extractFloat64Frac( a );
aExp = extractFloat64Exp( a );
bSig = extractFloat64Frac( b );
bExp = extractFloat64Exp( b );
expD... | true | qemu | e6afc87f804abee7d0479be5e8e31c56d885fafb | static float64 addFloat64Sigs( float64 a, float64 b, flag zSign STATUS_PARAM )
{
int16 aExp, bExp, zExp;
uint64_t aSig, bSig, zSig;
int16 expDiff;
aSig = extractFloat64Frac( a );
aExp = extractFloat64Exp( a );
bSig = extractFloat64Frac( b );
bExp = extractFloat64Exp( b );
expD... | {
"code": [
" if ( STATUS(flush_to_zero) ) return packFloat64( zSign, 0, 0 );",
" if ( STATUS(flush_to_zero) ) return packFloat64( zSign, 0, 0 );"
],
"line_no": [
95,
95
]
} | static float64 FUNC_0( float64 a, float64 b, flag zSign STATUS_PARAM )
{
int16 aExp, bExp, zExp;
uint64_t aSig, bSig, zSig;
int16 expDiff;
aSig = extractFloat64Frac( a );
aExp = extractFloat64Exp( a );
bSig = extractFloat64Frac( b );
bExp = extractFloat64Exp( b );
expDiff = aE... | [
"static float64 FUNC_0( float64 a, float64 b, flag zSign STATUS_PARAM )\n{",
"int16 aExp, bExp, zExp;",
"uint64_t aSig, bSig, zSig;",
"int16 expDiff;",
"aSig = extractFloat64Frac( a );",
"aExp = extractFloat64Exp( a );",
"bSig = extractFloat64Frac( b );",
"bExp = extractFloat64Exp( b );",
"expDiff =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
17,232 | static void mpic_reset (void *opaque)
{
openpic_t *mpp = (openpic_t *)opaque;
int i;
mpp->glbc = 0x80000000;
/* Initialise controller registers */
mpp->frep = 0x004f0002;
mpp->veni = VENI;
mpp->pint = 0x00000000;
mpp->spve = 0x0000FFFF;
/* Initialise IRQ sources */
f... | true | qemu | bbc5842211cdd90103cfe52f2ca24afac880694f | static void mpic_reset (void *opaque)
{
openpic_t *mpp = (openpic_t *)opaque;
int i;
mpp->glbc = 0x80000000;
mpp->frep = 0x004f0002;
mpp->veni = VENI;
mpp->pint = 0x00000000;
mpp->spve = 0x0000FFFF;
for (i = 0; i < mpp->max_irq; i++) {
mpp->src[i].ipvp = 0... | {
"code": [
" mpp->frep = 0x004f0002;"
],
"line_no": [
15
]
} | static void FUNC_0 (void *VAR_0)
{
openpic_t *mpp = (openpic_t *)VAR_0;
int VAR_1;
mpp->glbc = 0x80000000;
mpp->frep = 0x004f0002;
mpp->veni = VENI;
mpp->pint = 0x00000000;
mpp->spve = 0x0000FFFF;
for (VAR_1 = 0; VAR_1 < mpp->max_irq; VAR_1++) {
mpp->src[V... | [
"static void FUNC_0 (void *VAR_0)\n{",
"openpic_t *mpp = (openpic_t *)VAR_0;",
"int VAR_1;",
"mpp->glbc = 0x80000000;",
"mpp->frep = 0x004f0002;",
"mpp->veni = VENI;",
"mpp->pint = 0x00000000;",
"mpp->spve = 0x0000FFFF;",
"for (VAR_1 = 0; VAR_1 < mpp->max_irq; VAR_1++) {",
"mpp->src[VAR_1].ipvp = ... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51... |
17,233 | gen_intermediate_code_internal(CPUMBState *env, TranslationBlock *tb,
int search_pc)
{
uint16_t *gen_opc_end;
uint32_t pc_start;
int j, lj;
struct DisasContext ctx;
struct DisasContext *dc = &ctx;
uint32_t next_page_start, org_flags;
target_ulong npc;
... | true | qemu | 632314c49ce20ee9c974f07544d9125fbbbfbe1b | gen_intermediate_code_internal(CPUMBState *env, TranslationBlock *tb,
int search_pc)
{
uint16_t *gen_opc_end;
uint32_t pc_start;
int j, lj;
struct DisasContext ctx;
struct DisasContext *dc = &ctx;
uint32_t next_page_start, org_flags;
target_ulong npc;
... | {
"code": [
" qemu_log_try_set_file(stderr);",
" qemu_log_try_set_file(stderr);",
" qemu_log_try_set_file(stderr);",
" qemu_log_try_set_file(stderr);"
],
"line_no": [
27,
27,
27,
27
]
} | FUNC_0(CPUMBState *VAR_0, TranslationBlock *VAR_1,
int VAR_2)
{
uint16_t *gen_opc_end;
uint32_t pc_start;
int VAR_3, VAR_4;
struct DisasContext VAR_5;
struct DisasContext *VAR_6 = &VAR_5;
uint32_t next_page_start, org_flags;
target_ulong npc;
int ... | [
"FUNC_0(CPUMBState *VAR_0, TranslationBlock *VAR_1,\nint VAR_2)\n{",
"uint16_t *gen_opc_end;",
"uint32_t pc_start;",
"int VAR_3, VAR_4;",
"struct DisasContext VAR_5;",
"struct DisasContext *VAR_6 = &VAR_5;",
"uint32_t next_page_start, org_flags;",
"target_ulong npc;",
"int VAR_7;",
"int VAR_8;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
],
[
49
],
[... |
17,234 | static int vp5_parse_coeff(VP56Context *s)
{
VP56RangeCoder *c = &s->c;
VP56Model *model = s->modelp;
uint8_t *permute = s->idct_scantable;
uint8_t *model1, *model2;
int coeff, sign, coeff_idx;
int b, i, cg, idx, ctx, ctx_last;
int pt = 0; /* plane type (0 for Y, 1 for U or V) */
... | true | FFmpeg | 513a3494396d0a20233273b3cadcb5ee86485d5c | static int vp5_parse_coeff(VP56Context *s)
{
VP56RangeCoder *c = &s->c;
VP56Model *model = s->modelp;
uint8_t *permute = s->idct_scantable;
uint8_t *model1, *model2;
int coeff, sign, coeff_idx;
int b, i, cg, idx, ctx, ctx_last;
int pt = 0;
if (c->end >= c->buffer && c->bit... | {
"code": [
" if (c->end >= c->buffer && c->bits >= 0) {",
" if (c->end >= c->buffer && c->bits >= 0) {"
],
"line_no": [
21,
21
]
} | static int FUNC_0(VP56Context *VAR_0)
{
VP56RangeCoder *c = &VAR_0->c;
VP56Model *model = VAR_0->modelp;
uint8_t *permute = VAR_0->idct_scantable;
uint8_t *model1, *model2;
int VAR_1, VAR_2, VAR_3;
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
int VAR_10 = 0;
if (c->end >=... | [
"static int FUNC_0(VP56Context *VAR_0)\n{",
"VP56RangeCoder *c = &VAR_0->c;",
"VP56Model *model = VAR_0->modelp;",
"uint8_t *permute = VAR_0->idct_scantable;",
"uint8_t *model1, *model2;",
"int VAR_1, VAR_2, VAR_3;",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"int VAR_10 = 0;",
"if (c->end >= ... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
37
],
[
41,
43
],
[
45
],
[
47
],
[
51
],
[... |
17,235 | static int qcow2_cache_do_get(BlockDriverState *bs, Qcow2Cache *c,
uint64_t offset, void **table, bool read_from_disk)
{
BDRVQcow2State *s = bs->opaque;
int i;
int ret;
int lookup_index;
uint64_t min_lru_counter = UINT64_MAX;
int min_lru_index = -1;
trace_qcow2_cache_get(qemu_coroutine_s... | true | qemu | 4efb1f7c612ff35badc8f8cbda78ac891fabf20a | static int qcow2_cache_do_get(BlockDriverState *bs, Qcow2Cache *c,
uint64_t offset, void **table, bool read_from_disk)
{
BDRVQcow2State *s = bs->opaque;
int i;
int ret;
int lookup_index;
uint64_t min_lru_counter = UINT64_MAX;
int min_lru_index = -1;
trace_qcow2_cache_get(qemu_coroutine_s... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, Qcow2Cache *VAR_1,
uint64_t VAR_2, void **VAR_3, bool VAR_4)
{
BDRVQcow2State *s = VAR_0->opaque;
int VAR_5;
int VAR_6;
int VAR_7;
uint64_t min_lru_counter = UINT64_MAX;
int VAR_8 = -1;
trace_qcow2_cache_get(qemu_coroutine_self(), VAR_1 == s->l2... | [
"static int FUNC_0(BlockDriverState *VAR_0, Qcow2Cache *VAR_1,\nuint64_t VAR_2, void **VAR_3, bool VAR_4)\n{",
"BDRVQcow2State *s = VAR_0->opaque;",
"int VAR_5;",
"int VAR_6;",
"int VAR_7;",
"uint64_t min_lru_counter = UINT64_MAX;",
"int VAR_8 = -1;",
"trace_qcow2_cache_get(qemu_coroutine_self(), 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
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10,
11
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
23
],... |
17,236 | int qemu_put_qemu_file(QEMUFile *f_des, QEMUFile *f_src)
{
int len = 0;
if (f_src->buf_index > 0) {
len = f_src->buf_index;
qemu_put_buffer(f_des, f_src->buf, f_src->buf_index);
f_src->buf_index = 0;
}
return len;
} | true | qemu | 787d134fb164e0395685744ef75829c15f5aee8d | int qemu_put_qemu_file(QEMUFile *f_des, QEMUFile *f_src)
{
int len = 0;
if (f_src->buf_index > 0) {
len = f_src->buf_index;
qemu_put_buffer(f_des, f_src->buf, f_src->buf_index);
f_src->buf_index = 0;
}
return len;
} | {
"code": [],
"line_no": []
} | int FUNC_0(QEMUFile *VAR_0, QEMUFile *VAR_1)
{
int VAR_2 = 0;
if (VAR_1->buf_index > 0) {
VAR_2 = VAR_1->buf_index;
qemu_put_buffer(VAR_0, VAR_1->buf, VAR_1->buf_index);
VAR_1->buf_index = 0;
}
return VAR_2;
} | [
"int FUNC_0(QEMUFile *VAR_0, QEMUFile *VAR_1)\n{",
"int VAR_2 = 0;",
"if (VAR_1->buf_index > 0) {",
"VAR_2 = VAR_1->buf_index;",
"qemu_put_buffer(VAR_0, VAR_1->buf, VAR_1->buf_index);",
"VAR_1->buf_index = 0;",
"}",
"return VAR_2;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
18
],
[
20
],
[
22
]
] |
17,237 | static int init_filters(const char *filters_descr)
{
char args[512];
int ret;
AVFilter *abuffersrc = avfilter_get_by_name("abuffer");
AVFilter *abuffersink = avfilter_get_by_name("abuffersink");
AVFilterInOut *outputs = avfilter_inout_alloc();
AVFilterInOut *inputs = avfilter_inout_allo... | true | FFmpeg | 8f19483d0652b43c7c2ff6b973843e4d0b769a5f | static int init_filters(const char *filters_descr)
{
char args[512];
int ret;
AVFilter *abuffersrc = avfilter_get_by_name("abuffer");
AVFilter *abuffersink = avfilter_get_by_name("abuffersink");
AVFilterInOut *outputs = avfilter_inout_alloc();
AVFilterInOut *inputs = avfilter_inout_allo... | {
"code": [],
"line_no": []
} | static int FUNC_0(const char *VAR_0)
{
char VAR_1[512];
int VAR_2;
AVFilter *abuffersrc = avfilter_get_by_name("abuffer");
AVFilter *abuffersink = avfilter_get_by_name("abuffersink");
AVFilterInOut *outputs = avfilter_inout_alloc();
AVFilterInOut *inputs = avfilter_inout_alloc();
c... | [
"static int FUNC_0(const char *VAR_0)\n{",
"char VAR_1[512];",
"int VAR_2;",
"AVFilter *abuffersrc = avfilter_get_by_name(\"abuffer\");",
"AVFilter *abuffersink = avfilter_get_by_name(\"abuffersink\");",
"AVFilterInOut *outputs = avfilter_inout_alloc();",
"AVFilterInOut *inputs = avfilter_inout_alloc(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35,
37
],
[
39,
41
],
[
43,
45
],
[
47
],
[
49
],
[... |
17,238 | static int smacker_decode_tree(GetBitContext *gb, HuffContext *hc, uint32_t prefix, int length)
{
if(!get_bits1(gb)){ //Leaf
if(hc->current >= 256){
av_log(NULL, AV_LOG_ERROR, "Tree size exceeded!\n");
if(length){
hc->bits[hc->current] = prefix;
hc->l... | true | FFmpeg | b829da363985cb2f80130bba304cc29a632f6446 | static int smacker_decode_tree(GetBitContext *gb, HuffContext *hc, uint32_t prefix, int length)
{
if(!get_bits1(gb)){
if(hc->current >= 256){
av_log(NULL, AV_LOG_ERROR, "Tree size exceeded!\n");
if(length){
hc->bits[hc->current] = prefix;
hc->lengths... | {
"code": [],
"line_no": []
} | static int FUNC_0(GetBitContext *VAR_0, HuffContext *VAR_1, uint32_t VAR_2, int VAR_3)
{
if(!get_bits1(VAR_0)){
if(VAR_1->current >= 256){
av_log(NULL, AV_LOG_ERROR, "Tree size exceeded!\n");
if(VAR_3){
VAR_1->bits[VAR_1->current] = VAR_2;
VAR_1->len... | [
"static int FUNC_0(GetBitContext *VAR_0, HuffContext *VAR_1, uint32_t VAR_2, int VAR_3)\n{",
"if(!get_bits1(VAR_0)){",
"if(VAR_1->current >= 256){",
"av_log(NULL, AV_LOG_ERROR, \"Tree size exceeded!\\n\");",
"if(VAR_3){",
"VAR_1->bits[VAR_1->current] = VAR_2;",
"VAR_1->lengths[VAR_1->current] = VAR_3;",... | [
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
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
30
],
[
32
],
[
34,
36
],
[
38
],
[
40
],
[
42
],
[
44
],
[
46
],
[
48,
5... |
17,239 | static void init_2d_vlc_rl(RLTable *rl)
{
int i;
init_vlc(&rl->vlc, TEX_VLC_BITS, rl->n + 2,
&rl->table_vlc[0][1], 4, 2,
&rl->table_vlc[0][0], 4, 2);
rl->rl_vlc[0]= av_malloc(rl->vlc.table_size*sizeof(RL_VLC_ELEM));
for(i=0; i<rl->vlc.table_size; i++){
... | true | FFmpeg | 073c2593c9f0aa4445a6fc1b9b24e6e52a8cc2c1 | static void init_2d_vlc_rl(RLTable *rl)
{
int i;
init_vlc(&rl->vlc, TEX_VLC_BITS, rl->n + 2,
&rl->table_vlc[0][1], 4, 2,
&rl->table_vlc[0][0], 4, 2);
rl->rl_vlc[0]= av_malloc(rl->vlc.table_size*sizeof(RL_VLC_ELEM));
for(i=0; i<rl->vlc.table_size; i++){
... | {
"code": [
" &rl->table_vlc[0][0], 4, 2);",
"static void init_2d_vlc_rl(RLTable *rl)",
" &rl->table_vlc[0][0], 4, 2);",
" rl->rl_vlc[0]= av_malloc(rl->vlc.table_size*sizeof(RL_VLC_ELEM));"
],
"line_no": [
13,
1,
13,
19
]
} | static void FUNC_0(RLTable *VAR_0)
{
int VAR_1;
init_vlc(&VAR_0->vlc, TEX_VLC_BITS, VAR_0->n + 2,
&VAR_0->table_vlc[0][1], 4, 2,
&VAR_0->table_vlc[0][0], 4, 2);
VAR_0->rl_vlc[0]= av_malloc(VAR_0->vlc.table_size*sizeof(RL_VLC_ELEM));
for(VAR_1=0; VAR_1<VAR_... | [
"static void FUNC_0(RLTable *VAR_0)\n{",
"int VAR_1;",
"init_vlc(&VAR_0->vlc, TEX_VLC_BITS, VAR_0->n + 2,\n&VAR_0->table_vlc[0][1], 4, 2,\n&VAR_0->table_vlc[0][0], 4, 2);",
"VAR_0->rl_vlc[0]= av_malloc(VAR_0->vlc.table_size*sizeof(RL_VLC_ELEM));",
"for(VAR_1=0; VAR_1<VAR_0->vlc.table_size; VAR_1++){",
"in... | [
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11,
13
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51... |
17,241 | static int ehci_state_advqueue(EHCIQueue *q, int async)
{
#if 0
/* TO-DO: 4.10.2 - paragraph 2
* if I-bit is set to 1 and QH is not active
* go to horizontal QH
*/
if (I-bit set) {
ehci_set_state(ehci, async, EST_HORIZONTALQH);
goto out;
}
#endif
/*
* w... | false | qemu | 2a5ff735dc1074171a0cbb1dc228d6d6e907f571 | static int ehci_state_advqueue(EHCIQueue *q, int async)
{
#if 0
if (I-bit set) {
ehci_set_state(ehci, async, EST_HORIZONTALQH);
goto out;
}
#endif
if (((q->qh.token & QTD_TOKEN_TBYTES_MASK) != 0) &&
(q->qh.altnext_qtd > 0x1000) &&
(NLPTR_TBIT... | {
"code": [],
"line_no": []
} | static int FUNC_0(EHCIQueue *VAR_0, int VAR_1)
{
#if 0
if (I-bit set) {
ehci_set_state(ehci, VAR_1, EST_HORIZONTALQH);
goto out;
}
#endif
if (((VAR_0->qh.token & QTD_TOKEN_TBYTES_MASK) != 0) &&
(VAR_0->qh.altnext_qtd > 0x1000) &&
(NLPTR_TBIT(... | [
"static int FUNC_0(EHCIQueue *VAR_0, int VAR_1)\n{",
"#if 0\nif (I-bit set) {",
"ehci_set_state(ehci, VAR_1, EST_HORIZONTALQH);",
"goto out;",
"}",
"#endif\nif (((VAR_0->qh.token & QTD_TOKEN_TBYTES_MASK) != 0) &&\n(VAR_0->qh.altnext_qtd > 0x1000) &&\n(NLPTR_TBIT(VAR_0->qh.altnext_qtd) == 0)) {",
"VAR_0-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
15
],
[
17
],
[
19
],
[
21
],
[
23,
33,
35,
37
],
[
39
],
[
41
],
[
51
],
[
53
],
[
55
],
[
57
],
[
67
],
[
69
],
[
71
],
[
75
],
[
77
]
] |
17,243 | static uint32_t pmac_ide_readl (void *opaque,target_phys_addr_t addr)
{
uint32_t retval;
MACIOIDEState *d = opaque;
addr = (addr & 0xFFF) >> 4;
if (addr == 0) {
retval = ide_data_readl(&d->bus, 0);
} else {
retval = 0xFFFFFFFF;
}
retval = bswap32(retval);
ret... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint32_t pmac_ide_readl (void *opaque,target_phys_addr_t addr)
{
uint32_t retval;
MACIOIDEState *d = opaque;
addr = (addr & 0xFFF) >> 4;
if (addr == 0) {
retval = ide_data_readl(&d->bus, 0);
} else {
retval = 0xFFFFFFFF;
}
retval = bswap32(retval);
ret... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0 (void *opaque,target_phys_addr_t addr)
{
uint32_t retval;
MACIOIDEState *d = opaque;
addr = (addr & 0xFFF) >> 4;
if (addr == 0) {
retval = ide_data_readl(&d->bus, 0);
} else {
retval = 0xFFFFFFFF;
}
retval = bswap32(retval);
return retv... | [
"static uint32_t FUNC_0 (void *opaque,target_phys_addr_t addr)\n{",
"uint32_t retval;",
"MACIOIDEState *d = opaque;",
"addr = (addr & 0xFFF) >> 4;",
"if (addr == 0) {",
"retval = ide_data_readl(&d->bus, 0);",
"} else {",
"retval = 0xFFFFFFFF;",
"}",
"retval = bswap32(retval);",
"return retval;",... | [
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
]
] |
17,244 | static void tgen_ext16s(TCGContext *s, TCGType type, TCGReg dest, TCGReg src)
{
if (facilities & FACILITY_EXT_IMM) {
tcg_out_insn(s, RRE, LGHR, dest, src);
return;
}
if (type == TCG_TYPE_I32) {
if (dest == src) {
tcg_out_sh32(s, RS_SLL, dest, TCG_REG_NONE, 16);
... | false | qemu | b2c98d9d392c87c9b9e975d30f79924719d9cbbe | static void tgen_ext16s(TCGContext *s, TCGType type, TCGReg dest, TCGReg src)
{
if (facilities & FACILITY_EXT_IMM) {
tcg_out_insn(s, RRE, LGHR, dest, src);
return;
}
if (type == TCG_TYPE_I32) {
if (dest == src) {
tcg_out_sh32(s, RS_SLL, dest, TCG_REG_NONE, 16);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGReg VAR_2, TCGReg VAR_3)
{
if (facilities & FACILITY_EXT_IMM) {
tcg_out_insn(VAR_0, RRE, LGHR, VAR_2, VAR_3);
return;
}
if (VAR_1 == TCG_TYPE_I32) {
if (VAR_2 == VAR_3) {
tcg_out_sh32(VAR_0, RS_SLL, VAR_2, ... | [
"static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGReg VAR_2, TCGReg VAR_3)\n{",
"if (facilities & FACILITY_EXT_IMM) {",
"tcg_out_insn(VAR_0, RRE, LGHR, VAR_2, VAR_3);",
"return;",
"}",
"if (VAR_1 == TCG_TYPE_I32) {",
"if (VAR_2 == VAR_3) {",
"tcg_out_sh32(VAR_0, RS_SLL, VAR_2, TCG_REG_NONE, 16)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
17,247 | static int fill_note_info(struct elf_note_info *info,
long signr, const CPUState *env)
{
#define NUMNOTES 3
CPUState *cpu = NULL;
TaskState *ts = (TaskState *)env->opaque;
int i;
(void) memset(info, 0, sizeof (*info));
TAILQ_INIT(&info->thread_list);
info->notes = qemu_mallocz... | false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | static int fill_note_info(struct elf_note_info *info,
long signr, const CPUState *env)
{
#define NUMNOTES 3
CPUState *cpu = NULL;
TaskState *ts = (TaskState *)env->opaque;
int i;
(void) memset(info, 0, sizeof (*info));
TAILQ_INIT(&info->thread_list);
info->notes = qemu_mallocz... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct elf_note_info *VAR_0,
long VAR_1, const CPUState *VAR_2)
{
#define NUMNOTES 3
CPUState *cpu = NULL;
TaskState *ts = (TaskState *)VAR_2->opaque;
int VAR_3;
(void) memset(VAR_0, 0, sizeof (*VAR_0));
TAILQ_INIT(&VAR_0->thread_list);
VAR_0->notes = qemu_ma... | [
"static int FUNC_0(struct elf_note_info *VAR_0,\nlong VAR_1, const CPUState *VAR_2)\n{",
"#define NUMNOTES 3\nCPUState *cpu = NULL;",
"TaskState *ts = (TaskState *)VAR_2->opaque;",
"int VAR_3;",
"(void) memset(VAR_0, 0, sizeof (*VAR_0));",
"TAILQ_INIT(&VAR_0->thread_list);",
"VAR_0->notes = qemu_mallocz... | [
0,
0,
0,
0,
0,
0,
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
],
[
39,
41
],
[
53
],
[
55
],
[
57,
59
],
[
61
],
[
63,... |
17,250 | static QIOChannelSocket *nbd_establish_connection(SocketAddressFlat *saddr_flat,
Error **errp)
{
SocketAddress *saddr = socket_address_crumple(saddr_flat);
QIOChannelSocket *sioc;
Error *local_err = NULL;
sioc = qio_channel_socket_new();
qio... | false | qemu | dfd100f242370886bb6732f70f1f7cbd8eb9fedc | static QIOChannelSocket *nbd_establish_connection(SocketAddressFlat *saddr_flat,
Error **errp)
{
SocketAddress *saddr = socket_address_crumple(saddr_flat);
QIOChannelSocket *sioc;
Error *local_err = NULL;
sioc = qio_channel_socket_new();
qio... | {
"code": [],
"line_no": []
} | static QIOChannelSocket *FUNC_0(SocketAddressFlat *saddr_flat,
Error **errp)
{
SocketAddress *saddr = socket_address_crumple(saddr_flat);
QIOChannelSocket *sioc;
Error *local_err = NULL;
sioc = qio_channel_socket_new();
qio_channel_set_name(... | [
"static QIOChannelSocket *FUNC_0(SocketAddressFlat *saddr_flat,\nError **errp)\n{",
"SocketAddress *saddr = socket_address_crumple(saddr_flat);",
"QIOChannelSocket *sioc;",
"Error *local_err = NULL;",
"sioc = qio_channel_socket_new();",
"qio_channel_set_name(QIO_CHANNEL(sioc), \"nbd-client\");",
"qio_ch... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21,
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
]
] |
17,252 | void omap_inth_reset(struct omap_intr_handler_s *s)
{
int i;
for (i = 0; i < s->nbanks; ++i){
s->bank[i].irqs = 0x00000000;
s->bank[i].mask = 0xffffffff;
s->bank[i].sens_edge = 0x00000000;
s->bank[i].fiq = 0x00000000;
s->bank[i].inputs = 0x00000000;
s->... | false | qemu | 0919ac787641db11024912651f3bc5764d4f1286 | void omap_inth_reset(struct omap_intr_handler_s *s)
{
int i;
for (i = 0; i < s->nbanks; ++i){
s->bank[i].irqs = 0x00000000;
s->bank[i].mask = 0xffffffff;
s->bank[i].sens_edge = 0x00000000;
s->bank[i].fiq = 0x00000000;
s->bank[i].inputs = 0x00000000;
s->... | {
"code": [],
"line_no": []
} | void FUNC_0(struct omap_intr_handler_s *VAR_0)
{
int VAR_1;
for (VAR_1 = 0; VAR_1 < VAR_0->nbanks; ++VAR_1){
VAR_0->bank[VAR_1].irqs = 0x00000000;
VAR_0->bank[VAR_1].mask = 0xffffffff;
VAR_0->bank[VAR_1].sens_edge = 0x00000000;
VAR_0->bank[VAR_1].fiq = 0x00000000;
... | [
"void FUNC_0(struct omap_intr_handler_s *VAR_0)\n{",
"int VAR_1;",
"for (VAR_1 = 0; VAR_1 < VAR_0->nbanks; ++VAR_1){",
"VAR_0->bank[VAR_1].irqs = 0x00000000;",
"VAR_0->bank[VAR_1].mask = 0xffffffff;",
"VAR_0->bank[VAR_1].sens_edge = 0x00000000;",
"VAR_0->bank[VAR_1].fiq = 0x00000000;",
"VAR_0->bank[VA... | [
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
],
[
27,
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
... |
17,253 | static void gic_complete_irq(gic_state * s, int cpu, int irq)
{
int update = 0;
int cm = 1 << cpu;
DPRINTF("EOI %d\n", irq);
if (s->running_irq[cpu] == 1023)
return; /* No active IRQ. */
if (irq != 1023) {
/* Mark level triggered interrupts as pending if they are still
... | false | qemu | 41bf234d8e35e9273290df278e2aeb88c0c50a4f | static void gic_complete_irq(gic_state * s, int cpu, int irq)
{
int update = 0;
int cm = 1 << cpu;
DPRINTF("EOI %d\n", irq);
if (s->running_irq[cpu] == 1023)
return;
if (irq != 1023) {
if (!GIC_TEST_TRIGGER(irq) && GIC_TEST_ENABLED(irq)
&& GIC_TE... | {
"code": [],
"line_no": []
} | static void FUNC_0(gic_state * VAR_0, int VAR_1, int VAR_2)
{
int VAR_3 = 0;
int VAR_4 = 1 << VAR_1;
DPRINTF("EOI %d\n", VAR_2);
if (VAR_0->running_irq[VAR_1] == 1023)
return;
if (VAR_2 != 1023) {
if (!GIC_TEST_TRIGGER(VAR_2) && GIC_TEST_ENABLED(VAR_2)
... | [
"static void FUNC_0(gic_state * VAR_0, int VAR_1, int VAR_2)\n{",
"int VAR_3 = 0;",
"int VAR_4 = 1 << VAR_1;",
"DPRINTF(\"EOI %d\\n\", VAR_2);",
"if (VAR_0->running_irq[VAR_1] == 1023)\nreturn;",
"if (VAR_2 != 1023) {",
"if (!GIC_TEST_TRIGGER(VAR_2) && GIC_TEST_ENABLED(VAR_2)\n&& GIC_TEST_LEVEL(VAR_2, V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13
],
[
15
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
17,254 | static void kvm_virtio_pci_vq_vector_release(VirtIOPCIProxy *proxy,
unsigned int queue_no,
unsigned int vector)
{
VirtQueue *vq = virtio_get_queue(proxy->vdev, queue_no);
EventNotifier *n = virtio_queue_get_guest_noti... | false | qemu | b131c74a0e485b084ddaffc8214c8a19af492be7 | static void kvm_virtio_pci_vq_vector_release(VirtIOPCIProxy *proxy,
unsigned int queue_no,
unsigned int vector)
{
VirtQueue *vq = virtio_get_queue(proxy->vdev, queue_no);
EventNotifier *n = virtio_queue_get_guest_noti... | {
"code": [],
"line_no": []
} | static void FUNC_0(VirtIOPCIProxy *VAR_0,
unsigned int VAR_1,
unsigned int VAR_2)
{
VirtQueue *vq = virtio_get_queue(VAR_0->vdev, VAR_1);
EventNotifier *n = virtio_queue_get_guest_notifier(vq);
VirtIOIRQFD *irqfd... | [
"static void FUNC_0(VirtIOPCIProxy *VAR_0,\nunsigned int VAR_1,\nunsigned int VAR_2)\n{",
"VirtQueue *vq = virtio_get_queue(VAR_0->vdev, VAR_1);",
"EventNotifier *n = virtio_queue_get_guest_notifier(vq);",
"VirtIOIRQFD *irqfd = &VAR_0->vector_irqfd[VAR_2];",
"int VAR_3;",
"VAR_3 = kvm_irqchip_remove_irq_n... | [
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
],
[
33
],
[
35
]
] |
17,255 | static coroutine_fn int qcow2_co_preadv(BlockDriverState *bs, uint64_t offset,
uint64_t bytes, QEMUIOVector *qiov,
int flags)
{
BDRVQcow2State *s = bs->opaque;
int offset_in_cluster, n1;
int ret;
unsigned int cur_byte... | false | qemu | fdfab37dfeffefbd4533b4158055c9b82d7c3e69 | static coroutine_fn int qcow2_co_preadv(BlockDriverState *bs, uint64_t offset,
uint64_t bytes, QEMUIOVector *qiov,
int flags)
{
BDRVQcow2State *s = bs->opaque;
int offset_in_cluster, n1;
int ret;
unsigned int cur_byte... | {
"code": [],
"line_no": []
} | static coroutine_fn int FUNC_0(BlockDriverState *bs, uint64_t offset,
uint64_t bytes, QEMUIOVector *qiov,
int flags)
{
BDRVQcow2State *s = bs->opaque;
int VAR_0, VAR_1;
int VAR_2;
unsigned int VAR_3;
uint64_t cl... | [
"static coroutine_fn int FUNC_0(BlockDriverState *bs, uint64_t offset,\nuint64_t bytes, QEMUIOVector *qiov,\nint flags)\n{",
"BDRVQcow2State *s = bs->opaque;",
"int VAR_0, VAR_1;",
"int VAR_2;",
"unsigned int VAR_3;",
"uint64_t cluster_offset = 0;",
"uint64_t bytes_done = 0;",
"QEMUIOVector hd_qiov;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
35
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[
53
],
[
55
],
[... |
17,256 | static TargetFdAddrFunc fd_trans_target_to_host_addr(int fd)
{
if (fd < target_fd_max && target_fd_trans[fd]) {
return target_fd_trans[fd]->target_to_host_addr;
}
return NULL;
}
| false | qemu | 861d72cd28b5793fc367c46b7821a5372b66e3f4 | static TargetFdAddrFunc fd_trans_target_to_host_addr(int fd)
{
if (fd < target_fd_max && target_fd_trans[fd]) {
return target_fd_trans[fd]->target_to_host_addr;
}
return NULL;
}
| {
"code": [],
"line_no": []
} | static TargetFdAddrFunc FUNC_0(int fd)
{
if (fd < target_fd_max && target_fd_trans[fd]) {
return target_fd_trans[fd]->target_to_host_addr;
}
return NULL;
}
| [
"static TargetFdAddrFunc FUNC_0(int fd)\n{",
"if (fd < target_fd_max && target_fd_trans[fd]) {",
"return target_fd_trans[fd]->target_to_host_addr;",
"}",
"return NULL;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
17,257 | void cpu_loop(CPUMIPSState *env)
{
CPUState *cs = CPU(mips_env_get_cpu(env));
target_siginfo_t info;
int trapnr;
abi_long ret;
# ifdef TARGET_ABI_MIPSO32
unsigned int syscall_num;
# endif
for(;;) {
cpu_exec_start(cs);
trapnr = cpu_mips_exec(env);
cpu_exec_en... | false | qemu | 1308c464a8414ce3c6f79e172255fb90b5aa313d | void cpu_loop(CPUMIPSState *env)
{
CPUState *cs = CPU(mips_env_get_cpu(env));
target_siginfo_t info;
int trapnr;
abi_long ret;
# ifdef TARGET_ABI_MIPSO32
unsigned int syscall_num;
# endif
for(;;) {
cpu_exec_start(cs);
trapnr = cpu_mips_exec(env);
cpu_exec_en... | {
"code": [],
"line_no": []
} | void FUNC_0(CPUMIPSState *VAR_0)
{
CPUState *cs = CPU(mips_env_get_cpu(VAR_0));
target_siginfo_t info;
int VAR_1;
abi_long ret;
# ifdef TARGET_ABI_MIPSO32
unsigned int syscall_num;
# endif
for(;;) {
cpu_exec_start(cs);
VAR_1 = cpu_mips_exec(VAR_0);
cpu_exec_... | [
"void FUNC_0(CPUMIPSState *VAR_0)\n{",
"CPUState *cs = CPU(mips_env_get_cpu(VAR_0));",
"target_siginfo_t info;",
"int VAR_1;",
"abi_long ret;",
"# ifdef TARGET_ABI_MIPSO32\nunsigned int syscall_num;",
"# endif\nfor(;;) {",
"cpu_exec_start(cs);",
"VAR_1 = cpu_mips_exec(VAR_0);",
"cpu_exec_end(cs);"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
17,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
17,260 | static void sd_reset(SDState *sd)
{
uint64_t size;
uint64_t sect;
if (sd->blk) {
blk_get_geometry(sd->blk, §);
} else {
sect = 0;
}
size = sect << 9;
sect = sd_addr_to_wpnum(size) + 1;
sd->state = sd_idle_state;
sd->rca = 0x0000;
sd_set_ocr(... | false | qemu | ef1e1e0782e99c9dcf2b35e5310cdd8ca9211374 | static void sd_reset(SDState *sd)
{
uint64_t size;
uint64_t sect;
if (sd->blk) {
blk_get_geometry(sd->blk, §);
} else {
sect = 0;
}
size = sect << 9;
sect = sd_addr_to_wpnum(size) + 1;
sd->state = sd_idle_state;
sd->rca = 0x0000;
sd_set_ocr(... | {
"code": [],
"line_no": []
} | static void FUNC_0(SDState *VAR_0)
{
uint64_t size;
uint64_t sect;
if (VAR_0->blk) {
blk_get_geometry(VAR_0->blk, §);
} else {
sect = 0;
}
size = sect << 9;
sect = sd_addr_to_wpnum(size) + 1;
VAR_0->state = sd_idle_state;
VAR_0->rca = 0x0000;
... | [
"static void FUNC_0(SDState *VAR_0)\n{",
"uint64_t size;",
"uint64_t sect;",
"if (VAR_0->blk) {",
"blk_get_geometry(VAR_0->blk, §);",
"} else {",
"sect = 0;",
"}",
"size = sect << 9;",
"sect = sd_addr_to_wpnum(size) + 1;",
"VAR_0->state = sd_idle_state;",
"VAR_0->rca = 0x0000;",
"sd_set_... | [
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47,
49
],
... |
17,261 | static void test_flush_event_notifier(void)
{
EventNotifierTestData data = { .n = 0, .active = 10, .auto_set = true };
event_notifier_init(&data.e, false);
aio_set_event_notifier(ctx, &data.e, event_ready_cb);
g_assert(!aio_poll(ctx, false));
g_assert_cmpint(data.n, ==, 0);
g_assert_cmpin... | false | qemu | 12d69ac03b45156356b240424623719f15d8143e | static void test_flush_event_notifier(void)
{
EventNotifierTestData data = { .n = 0, .active = 10, .auto_set = true };
event_notifier_init(&data.e, false);
aio_set_event_notifier(ctx, &data.e, event_ready_cb);
g_assert(!aio_poll(ctx, false));
g_assert_cmpint(data.n, ==, 0);
g_assert_cmpin... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
EventNotifierTestData data = { .n = 0, .active = 10, .auto_set = true };
event_notifier_init(&data.e, false);
aio_set_event_notifier(ctx, &data.e, event_ready_cb);
g_assert(!aio_poll(ctx, false));
g_assert_cmpint(data.n, ==, 0);
g_assert_cmpint(data.active, ==, ... | [
"static void FUNC_0(void)\n{",
"EventNotifierTestData data = { .n = 0, .active = 10, .auto_set = true };",
"event_notifier_init(&data.e, false);",
"aio_set_event_notifier(ctx, &data.e, event_ready_cb);",
"g_assert(!aio_poll(ctx, false));",
"g_assert_cmpint(data.n, ==, 0);",
"g_assert_cmpint(data.active,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
... |
17,262 | static inline void gen_intermediate_code_internal(X86CPU *cpu,
TranslationBlock *tb,
bool search_pc)
{
CPUState *cs = CPU(cpu);
CPUX86State *env = &cpu->env;
DisasContext dc1, *dc = &dc1;
target_ul... | false | qemu | cd42d5b23691ad73edfd6dbcfc935a960a9c5a65 | static inline void gen_intermediate_code_internal(X86CPU *cpu,
TranslationBlock *tb,
bool search_pc)
{
CPUState *cs = CPU(cpu);
CPUX86State *env = &cpu->env;
DisasContext dc1, *dc = &dc1;
target_ul... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(X86CPU *VAR_0,
TranslationBlock *VAR_1,
bool VAR_2)
{
CPUState *cs = CPU(VAR_0);
CPUX86State *env = &VAR_0->env;
DisasContext dc1, *dc = &dc1;
target_ulong pc_ptr;
ui... | [
"static inline void FUNC_0(X86CPU *VAR_0,\nTranslationBlock *VAR_1,\nbool VAR_2)\n{",
"CPUState *cs = CPU(VAR_0);",
"CPUX86State *env = &VAR_0->env;",
"DisasContext dc1, *dc = &dc1;",
"target_ulong pc_ptr;",
"uint16_t *gen_opc_end;",
"CPUBreakpoint *bp;",
"int VAR_3, VAR_4;",
"uint64_t flags;",
"t... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
... |
17,263 | CPUX86State *cpu_x86_init(const char *cpu_model)
{
CPUX86State *env;
static int inited;
env = qemu_mallocz(sizeof(CPUX86State));
cpu_exec_init(env);
env->cpu_model_str = cpu_model;
/* init various static tables */
if (!inited) {
inited = 1;
optimize_flags_init()... | false | qemu | 4a1418e07bdcfaa3177739e04707ecaec75d89e1 | CPUX86State *cpu_x86_init(const char *cpu_model)
{
CPUX86State *env;
static int inited;
env = qemu_mallocz(sizeof(CPUX86State));
cpu_exec_init(env);
env->cpu_model_str = cpu_model;
if (!inited) {
inited = 1;
optimize_flags_init();
#ifndef CONFIG_USER_ONLY
... | {
"code": [],
"line_no": []
} | CPUX86State *FUNC_0(const char *cpu_model)
{
CPUX86State *env;
static int VAR_0;
env = qemu_mallocz(sizeof(CPUX86State));
cpu_exec_init(env);
env->cpu_model_str = cpu_model;
if (!VAR_0) {
VAR_0 = 1;
optimize_flags_init();
#ifndef CONFIG_USER_ONLY
prev... | [
"CPUX86State *FUNC_0(const char *cpu_model)\n{",
"CPUX86State *env;",
"static int VAR_0;",
"env = qemu_mallocz(sizeof(CPUX86State));",
"cpu_exec_init(env);",
"env->cpu_model_str = cpu_model;",
"if (!VAR_0) {",
"VAR_0 = 1;",
"optimize_flags_init();",
"#ifndef CONFIG_USER_ONLY\nprev_debug_excp_handl... | [
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
],
[
21
],
[
23
],
[
25
],
[
27,
29,
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49,
51... |
17,264 | static void x86_cpuid_set_apic_id(Object *obj, Visitor *v, const char *name,
void *opaque, Error **errp)
{
X86CPU *cpu = X86_CPU(obj);
DeviceState *dev = DEVICE(obj);
const int64_t min = 0;
const int64_t max = UINT32_MAX;
Error *error = NULL;
int64_t val... | false | qemu | 4ec60c76d5ab513e375f17b043d2b9cb849adf6c | static void x86_cpuid_set_apic_id(Object *obj, Visitor *v, const char *name,
void *opaque, Error **errp)
{
X86CPU *cpu = X86_CPU(obj);
DeviceState *dev = DEVICE(obj);
const int64_t min = 0;
const int64_t max = UINT32_MAX;
Error *error = NULL;
int64_t val... | {
"code": [],
"line_no": []
} | static void FUNC_0(Object *VAR_0, Visitor *VAR_1, const char *VAR_2,
void *VAR_3, Error **VAR_4)
{
X86CPU *cpu = X86_CPU(VAR_0);
DeviceState *dev = DEVICE(VAR_0);
const int64_t VAR_5 = 0;
const int64_t VAR_6 = UINT32_MAX;
Error *error = NULL;
int64_t val... | [
"static void FUNC_0(Object *VAR_0, Visitor *VAR_1, const char *VAR_2,\nvoid *VAR_3, Error **VAR_4)\n{",
"X86CPU *cpu = X86_CPU(VAR_0);",
"DeviceState *dev = DEVICE(VAR_0);",
"const int64_t VAR_5 = 0;",
"const int64_t VAR_6 = UINT32_MAX;",
"Error *error = NULL;",
"int64_t value;",
"if (dev->realized) {... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47,
49
... |
17,265 | static bool tcg_out_opc_jmp(TCGContext *s, MIPSInsn opc, void *target)
{
uintptr_t dest = (uintptr_t)target;
uintptr_t from = (uintptr_t)s->code_ptr + 4;
int32_t inst;
/* The pc-region branch happens within the 256MB region of
the delay slot (thus the +4). */
if ((from ^ dest) & -(1... | false | qemu | eabb7b91b36b202b4dac2df2d59d698e3aff197a | static bool tcg_out_opc_jmp(TCGContext *s, MIPSInsn opc, void *target)
{
uintptr_t dest = (uintptr_t)target;
uintptr_t from = (uintptr_t)s->code_ptr + 4;
int32_t inst;
if ((from ^ dest) & -(1 << 28)) {
return false;
}
assert((dest & 3) == 0);
inst = opc;
ins... | {
"code": [],
"line_no": []
} | static bool FUNC_0(TCGContext *s, MIPSInsn opc, void *target)
{
uintptr_t dest = (uintptr_t)target;
uintptr_t from = (uintptr_t)s->code_ptr + 4;
int32_t inst;
if ((from ^ dest) & -(1 << 28)) {
return false;
}
assert((dest & 3) == 0);
inst = opc;
inst |= (des... | [
"static bool FUNC_0(TCGContext *s, MIPSInsn opc, void *target)\n{",
"uintptr_t dest = (uintptr_t)target;",
"uintptr_t from = (uintptr_t)s->code_ptr + 4;",
"int32_t inst;",
"if ((from ^ dest) & -(1 << 28)) {",
"return false;",
"}",
"assert((dest & 3) == 0);",
"inst = opc;",
"inst |= (dest >> 2) & 0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
17,268 | void qemu_spice_create_primary_surface(SimpleSpiceDisplay *ssd, uint32_t id,
QXLDevSurfaceCreate *surface,
qxl_async_io async)
{
if (async != QXL_SYNC) {
#if SPICE_INTERFACE_QXL_MINOR >= 1
spice_qxl_create_primary_surface_as... | false | qemu | 4295e15aa730a95003a3639d6dad2eb1e65a59e2 | void qemu_spice_create_primary_surface(SimpleSpiceDisplay *ssd, uint32_t id,
QXLDevSurfaceCreate *surface,
qxl_async_io async)
{
if (async != QXL_SYNC) {
#if SPICE_INTERFACE_QXL_MINOR >= 1
spice_qxl_create_primary_surface_as... | {
"code": [],
"line_no": []
} | void FUNC_0(SimpleSpiceDisplay *VAR_0, uint32_t VAR_1,
QXLDevSurfaceCreate *VAR_2,
qxl_async_io VAR_3)
{
if (VAR_3 != QXL_SYNC) {
#if SPICE_INTERFACE_QXL_MINOR >= 1
spice_qxl_create_primary_surface_async(&VAR_0->qxl, VAR_1, ... | [
"void FUNC_0(SimpleSpiceDisplay *VAR_0, uint32_t VAR_1,\nQXLDevSurfaceCreate *VAR_2,\nqxl_async_io VAR_3)\n{",
"if (VAR_3 != QXL_SYNC) {",
"#if SPICE_INTERFACE_QXL_MINOR >= 1\nspice_qxl_create_primary_surface_async(&VAR_0->qxl, VAR_1, VAR_2, 0);",
"#else\nabort();",
"#endif\n} else {",
"VAR_0->worker->cre... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11,
13
],
[
15,
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
]
] |
17,269 | static gboolean fd_chr_read(GIOChannel *chan, GIOCondition cond, void *opaque)
{
CharDriverState *chr = opaque;
FDCharDriver *s = chr->opaque;
int len;
uint8_t buf[READ_BUF_LEN];
GIOStatus status;
gsize bytes_read;
len = sizeof(buf);
if (len > s->max_size) {
len = s->... | false | qemu | cdbf6e165988ab9d7c01da03b9e27bb8ac0c76aa | static gboolean fd_chr_read(GIOChannel *chan, GIOCondition cond, void *opaque)
{
CharDriverState *chr = opaque;
FDCharDriver *s = chr->opaque;
int len;
uint8_t buf[READ_BUF_LEN];
GIOStatus status;
gsize bytes_read;
len = sizeof(buf);
if (len > s->max_size) {
len = s->... | {
"code": [],
"line_no": []
} | static gboolean FUNC_0(GIOChannel *chan, GIOCondition cond, void *opaque)
{
CharDriverState *chr = opaque;
FDCharDriver *s = chr->opaque;
int VAR_0;
uint8_t buf[READ_BUF_LEN];
GIOStatus status;
gsize bytes_read;
VAR_0 = sizeof(buf);
if (VAR_0 > s->max_size) {
VAR_0 = ... | [
"static gboolean FUNC_0(GIOChannel *chan, GIOCondition cond, void *opaque)\n{",
"CharDriverState *chr = opaque;",
"FDCharDriver *s = chr->opaque;",
"int VAR_0;",
"uint8_t buf[READ_BUF_LEN];",
"GIOStatus status;",
"gsize bytes_read;",
"VAR_0 = sizeof(buf);",
"if (VAR_0 > s->max_size) {",
"VAR_0 = s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
17,270 | static int mlp_parse(AVCodecParserContext *s,
AVCodecContext *avctx,
const uint8_t **poutbuf, int *poutbuf_size,
const uint8_t *buf, int buf_size)
{
MLPParseContext *mp = s->priv_data;
int sync_present;
uint8_t parity_bits;
int next;... | false | FFmpeg | 2d15554850799346472683b4a2df05878dcfad48 | static int mlp_parse(AVCodecParserContext *s,
AVCodecContext *avctx,
const uint8_t **poutbuf, int *poutbuf_size,
const uint8_t *buf, int buf_size)
{
MLPParseContext *mp = s->priv_data;
int sync_present;
uint8_t parity_bits;
int next;... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecParserContext *VAR_0,
AVCodecContext *VAR_1,
const uint8_t **VAR_2, int *VAR_3,
const uint8_t *VAR_4, int VAR_5)
{
MLPParseContext *mp = VAR_0->priv_data;
int VAR_6;
uint8_t parity_bits;
int VAR_7;
int V... | [
"static int FUNC_0(AVCodecParserContext *VAR_0,\nAVCodecContext *VAR_1,\nconst uint8_t **VAR_2, int *VAR_3,\nconst uint8_t *VAR_4, int VAR_5)\n{",
"MLPParseContext *mp = VAR_0->priv_data;",
"int VAR_6;",
"uint8_t parity_bits;",
"int VAR_7;",
"int VAR_8, VAR_9 = 0;",
"*VAR_3 = 0;",
"if (VAR_5 == 0)\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
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
31
],
[
37
],
[
39
],
[
41,
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[... |
17,271 | static void gem_transmit(CadenceGEMState *s)
{
unsigned desc[2];
hwaddr packet_desc_addr;
uint8_t tx_packet[2048];
uint8_t *p;
unsigned total_bytes;
int q = 0;
/* Do nothing if transmit is not enabled. */
if (!(s->regs[GEM_NWCTRL] & GEM_NWCTRL_TXENA)) {
... | false | qemu | 77524d1157cf7c18b980c9d6f95879f2ce7e56e2 | static void gem_transmit(CadenceGEMState *s)
{
unsigned desc[2];
hwaddr packet_desc_addr;
uint8_t tx_packet[2048];
uint8_t *p;
unsigned total_bytes;
int q = 0;
if (!(s->regs[GEM_NWCTRL] & GEM_NWCTRL_TXENA)) {
return;
}
DB_PRINT("\n");
... | {
"code": [],
"line_no": []
} | static void FUNC_0(CadenceGEMState *VAR_0)
{
unsigned VAR_1[2];
hwaddr packet_desc_addr;
uint8_t tx_packet[2048];
uint8_t *p;
unsigned VAR_2;
int VAR_3 = 0;
if (!(VAR_0->regs[GEM_NWCTRL] & GEM_NWCTRL_TXENA)) {
return;
}
DB_PRINT("\n");
... | [
"static void FUNC_0(CadenceGEMState *VAR_0)\n{",
"unsigned VAR_1[2];",
"hwaddr packet_desc_addr;",
"uint8_t tx_packet[2048];",
"uint8_t *p;",
"unsigned VAR_2;",
"int VAR_3 = 0;",
"if (!(VAR_0->regs[GEM_NWCTRL] & GEM_NWCTRL_TXENA)) {",
"return;",
"}",
"DB_PRINT(\"\\n\");",
"p = tx... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
25
],
[
29
],
[
41
],
[
43
],
[
47
],
[
51
],
[
55
],
[
57,
59
],
[
63
],
[
69
],
[... |
17,272 | static int qemu_balloon_status(BalloonInfo *info)
{
if (!balloon_stat_fn) {
return 0;
}
balloon_stat_fn(balloon_opaque, info);
return 1;
}
| false | qemu | 6502a14734e71b2f6dd079b0a1e546e6aa2d2f8d | static int qemu_balloon_status(BalloonInfo *info)
{
if (!balloon_stat_fn) {
return 0;
}
balloon_stat_fn(balloon_opaque, info);
return 1;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(BalloonInfo *VAR_0)
{
if (!balloon_stat_fn) {
return 0;
}
balloon_stat_fn(balloon_opaque, VAR_0);
return 1;
}
| [
"static int FUNC_0(BalloonInfo *VAR_0)\n{",
"if (!balloon_stat_fn) {",
"return 0;",
"}",
"balloon_stat_fn(balloon_opaque, VAR_0);",
"return 1;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
17,273 | static DriveInfo *blockdev_init(const char *file, QDict *bs_opts,
Error **errp)
{
const char *buf;
const char *serial;
int ro = 0;
int bdrv_flags = 0;
int on_read_error, on_write_error;
DriveInfo *dinfo;
ThrottleConfig cfg;
int snapshot = 0;
... | false | qemu | f2d953ec31eeeb3029ca915a55938c538a14efa8 | static DriveInfo *blockdev_init(const char *file, QDict *bs_opts,
Error **errp)
{
const char *buf;
const char *serial;
int ro = 0;
int bdrv_flags = 0;
int on_read_error, on_write_error;
DriveInfo *dinfo;
ThrottleConfig cfg;
int snapshot = 0;
... | {
"code": [],
"line_no": []
} | static DriveInfo *FUNC_0(const char *file, QDict *bs_opts,
Error **errp)
{
const char *VAR_0;
const char *VAR_1;
int VAR_2 = 0;
int VAR_3 = 0;
int VAR_4, VAR_5;
DriveInfo *dinfo;
ThrottleConfig cfg;
int VAR_6 = 0;
bool copy_on_read;
int... | [
"static DriveInfo *FUNC_0(const char *file, QDict *bs_opts,\nError **errp)\n{",
"const char *VAR_0;",
"const char *VAR_1;",
"int VAR_2 = 0;",
"int VAR_3 = 0;",
"int VAR_4, VAR_5;",
"DriveInfo *dinfo;",
"ThrottleConfig cfg;",
"int VAR_6 = 0;",
"bool copy_on_read;",
"int VAR_7;",
"Error *error =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
43
],
[
45
],
[
47
],
[... |
17,275 | static void ehci_advance_periodic_state(EHCIState *ehci)
{
uint32_t entry;
uint32_t list;
const int async = 0;
// 4.6
switch(ehci_get_state(ehci, async)) {
case EST_INACTIVE:
if (!(ehci->frindex & 7) && ehci_periodic_enabled(ehci)) {
ehci_set_state(ehci, async, E... | false | qemu | 9bc3a3a216e2689bfcdd36c3e079333bbdbf3ba0 | static void ehci_advance_periodic_state(EHCIState *ehci)
{
uint32_t entry;
uint32_t list;
const int async = 0;
switch(ehci_get_state(ehci, async)) {
case EST_INACTIVE:
if (!(ehci->frindex & 7) && ehci_periodic_enabled(ehci)) {
ehci_set_state(ehci, async, EST_ACT... | {
"code": [],
"line_no": []
} | static void FUNC_0(EHCIState *VAR_0)
{
uint32_t entry;
uint32_t list;
const int VAR_1 = 0;
switch(ehci_get_state(VAR_0, VAR_1)) {
case EST_INACTIVE:
if (!(VAR_0->frindex & 7) && ehci_periodic_enabled(VAR_0)) {
ehci_set_state(VAR_0, VAR_1, EST_ACTIVE);
... | [
"static void FUNC_0(EHCIState *VAR_0)\n{",
"uint32_t entry;",
"uint32_t list;",
"const int VAR_1 = 0;",
"switch(ehci_get_state(VAR_0, VAR_1)) {",
"case EST_INACTIVE:\nif (!(VAR_0->frindex & 7) && ehci_periodic_enabled(VAR_0)) {",
"ehci_set_state(VAR_0, VAR_1, EST_ACTIVE);",
"} else",
"break;",
"ca... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
17
],
[
19,
21
],
[
23
],
[
27
],
[
29
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
51
],
[
53
],
[
55
],
[
57
... |
17,276 | static void uart_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
LM32UartState *s = opaque;
unsigned char ch = value;
trace_lm32_uart_memory_write(addr, value);
addr >>= 2;
switch (addr) {
case R_RXTX:
if (s->chr) {
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void uart_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
LM32UartState *s = opaque;
unsigned char ch = value;
trace_lm32_uart_memory_write(addr, value);
addr >>= 2;
switch (addr) {
case R_RXTX:
if (s->chr) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
LM32UartState *s = VAR_0;
unsigned char VAR_4 = VAR_2;
trace_lm32_uart_memory_write(VAR_1, VAR_2);
VAR_1 >>= 2;
switch (VAR_1) {
case R_RXTX:
if (s->chr) {
... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"LM32UartState *s = VAR_0;",
"unsigned char VAR_4 = VAR_2;",
"trace_lm32_uart_memory_write(VAR_1, VAR_2);",
"VAR_1 >>= 2;",
"switch (VAR_1) {",
"case R_RXTX:\nif (s->chr) {",
"qemu_chr_fe_write(s->chr, &VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31,
33,
35,
37,
39
],
[
41
],
[
43,
45,
47,
49,
51
],
[
53
],
[
55,... |
17,277 | static int oss_open (int in, struct oss_params *req,
struct oss_params *obt, int *pfd)
{
int fd;
int mmmmssss;
audio_buf_info abinfo;
int fmt, freq, nchannels;
const char *dspname = in ? conf.devpath_in : conf.devpath_out;
const char *typ = in ? "ADC" : "DAC";
fd = open ... | true | qemu | 29ddf27b72960d6e6b115cd69812c9c57b2a7b13 | static int oss_open (int in, struct oss_params *req,
struct oss_params *obt, int *pfd)
{
int fd;
int mmmmssss;
audio_buf_info abinfo;
int fmt, freq, nchannels;
const char *dspname = in ? conf.devpath_in : conf.devpath_out;
const char *typ = in ? "ADC" : "DAC";
fd = open ... | {
"code": [],
"line_no": []
} | static int FUNC_0 (int VAR_0, struct oss_params *VAR_1,
struct oss_params *VAR_2, int *VAR_3)
{
int VAR_4;
int VAR_5;
audio_buf_info abinfo;
int VAR_6, VAR_7, VAR_8;
const char *VAR_9 = VAR_0 ? conf.devpath_in : conf.devpath_out;
const char *VAR_10 = VAR_0 ? "ADC" : "DAC";
... | [
"static int FUNC_0 (int VAR_0, struct oss_params *VAR_1,\nstruct oss_params *VAR_2, int *VAR_3)\n{",
"int VAR_4;",
"int VAR_5;",
"audio_buf_info abinfo;",
"int VAR_6, VAR_7, VAR_8;",
"const char *VAR_9 = VAR_0 ? conf.devpath_in : conf.devpath_out;",
"const char *VAR_10 = VAR_0 ? \"ADC\" : \"DAC\";",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20,
21
],
[
22
],... |
17,278 | static void draw_rectangle(unsigned val, uint8_t *dst, int dst_linesize, unsigned segment_width,
unsigned x, unsigned y, unsigned w, unsigned h)
{
int i;
int step = 3;
dst += segment_width * (step * x + y * dst_linesize);
w *= segment_width * step;
h *= segment_wi... | true | FFmpeg | 7ab631261033a71a52563c3b23b6eef826eb5994 | static void draw_rectangle(unsigned val, uint8_t *dst, int dst_linesize, unsigned segment_width,
unsigned x, unsigned y, unsigned w, unsigned h)
{
int i;
int step = 3;
dst += segment_width * (step * x + y * dst_linesize);
w *= segment_width * step;
h *= segment_wi... | {
"code": [
"static void draw_rectangle(unsigned val, uint8_t *dst, int dst_linesize, unsigned segment_width,",
" unsigned x, unsigned y, unsigned w, unsigned h)"
],
"line_no": [
1,
3
]
} | static void FUNC_0(unsigned VAR_0, uint8_t *VAR_1, int VAR_2, unsigned VAR_3,
unsigned VAR_4, unsigned VAR_5, unsigned VAR_6, unsigned VAR_7)
{
int VAR_8;
int VAR_9 = 3;
VAR_1 += VAR_3 * (VAR_9 * VAR_4 + VAR_5 * VAR_2);
VAR_6 *= VAR_3 * VAR_9;
VAR_7 *= VAR_3;
... | [
"static void FUNC_0(unsigned VAR_0, uint8_t *VAR_1, int VAR_2, unsigned VAR_3,\nunsigned VAR_4, unsigned VAR_5, unsigned VAR_6, unsigned VAR_7)\n{",
"int VAR_8;",
"int VAR_9 = 3;",
"VAR_1 += VAR_3 * (VAR_9 * VAR_4 + VAR_5 * VAR_2);",
"VAR_6 *= VAR_3 * VAR_9;",
"VAR_7 *= VAR_3;",
"for (VAR_8 = 0; VAR_8 <... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
17,279 | static inline TCGOp *tcg_emit_op(TCGOpcode opc)
{
TCGContext *ctx = tcg_ctx;
int oi = ctx->gen_next_op_idx;
int ni = oi + 1;
int pi = oi - 1;
TCGOp *op = &ctx->gen_op_buf[oi];
tcg_debug_assert(oi < OPC_BUF_SIZE);
ctx->gen_op_buf[0].prev = oi;
ctx->gen_next_op_idx = ni;
... | true | qemu | 15fa08f8451babc88d733bd411d4c94976f9d0f8 | static inline TCGOp *tcg_emit_op(TCGOpcode opc)
{
TCGContext *ctx = tcg_ctx;
int oi = ctx->gen_next_op_idx;
int ni = oi + 1;
int pi = oi - 1;
TCGOp *op = &ctx->gen_op_buf[oi];
tcg_debug_assert(oi < OPC_BUF_SIZE);
ctx->gen_op_buf[0].prev = oi;
ctx->gen_next_op_idx = ni;
... | {
"code": [
"static inline TCGOp *tcg_emit_op(TCGOpcode opc)",
" TCGContext *ctx = tcg_ctx;",
" int oi = ctx->gen_next_op_idx;",
" int ni = oi + 1;",
" int pi = oi - 1;",
" TCGOp *op = &ctx->gen_op_buf[oi];",
" tcg_debug_assert(oi < OPC_BUF_SIZE);",
" ctx->gen_op_b... | static inline TCGOp *FUNC_0(TCGOpcode opc)
{
TCGContext *ctx = tcg_ctx;
int VAR_0 = ctx->gen_next_op_idx;
int VAR_1 = VAR_0 + 1;
int VAR_2 = VAR_0 - 1;
TCGOp *op = &ctx->gen_op_buf[VAR_0];
tcg_debug_assert(VAR_0 < OPC_BUF_SIZE);
ctx->gen_op_buf[0].prev = VAR_0;
ctx->gen_next_o... | [
"static inline TCGOp *FUNC_0(TCGOpcode opc)\n{",
"TCGContext *ctx = tcg_ctx;",
"int VAR_0 = ctx->gen_next_op_idx;",
"int VAR_1 = VAR_0 + 1;",
"int VAR_2 = VAR_0 - 1;",
"TCGOp *op = &ctx->gen_op_buf[VAR_0];",
"tcg_debug_assert(VAR_0 < OPC_BUF_SIZE);",
"ctx->gen_op_buf[0].prev = VAR_0;",
"ctx->gen_nex... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
]
] |
17,281 | static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp)
{
XlnxZynqMPState *s = XLNX_ZYNQMP(dev);
MemoryRegion *system_memory = get_system_memory();
uint8_t i;
const char *boot_cpu = s->boot_cpu ? s->boot_cpu : "apu-cpu[0]";
qemu_irq gic_spi[GIC_NUM_SPI_INTR];
Error *err = NULL;
... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | static void xlnx_zynqmp_realize(DeviceState *dev, Error **errp)
{
XlnxZynqMPState *s = XLNX_ZYNQMP(dev);
MemoryRegion *system_memory = get_system_memory();
uint8_t i;
const char *boot_cpu = s->boot_cpu ? s->boot_cpu : "apu-cpu[0]";
qemu_irq gic_spi[GIC_NUM_SPI_INTR];
Error *err = NULL;
... | {
"code": [
" XLNX_ZYNQMP_OCM_RAM_SIZE, &error_abort);"
],
"line_no": [
29
]
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
XlnxZynqMPState *s = XLNX_ZYNQMP(VAR_0);
MemoryRegion *system_memory = get_system_memory();
uint8_t i;
const char *VAR_2 = s->VAR_2 ? s->VAR_2 : "apu-cpu[0]";
qemu_irq gic_spi[GIC_NUM_SPI_INTR];
Error *err = NULL;
for (i... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"XlnxZynqMPState *s = XLNX_ZYNQMP(VAR_0);",
"MemoryRegion *system_memory = get_system_memory();",
"uint8_t i;",
"const char *VAR_2 = s->VAR_2 ? s->VAR_2 : \"apu-cpu[0]\";",
"qemu_irq gic_spi[GIC_NUM_SPI_INTR];",
"Error *err = NULL;",
"for (i ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
27,
29
],
[
31
],
[
33,
35,
37,
39
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
... |
17,282 | static int qcow2_create2(const char *filename, int64_t total_size,
const char *backing_file, const char *backing_format,
int flags, size_t cluster_size, int prealloc,
QEMUOptionParameter *options, int version,
Error ... | true | qemu | b106ad9185f35fc4ad669555ad0e79e276083bd7 | static int qcow2_create2(const char *filename, int64_t total_size,
const char *backing_file, const char *backing_format,
int flags, size_t cluster_size, int prealloc,
QEMUOptionParameter *options, int version,
Error ... | {
"code": [
" uint8_t* refcount_table;",
" refcount_table = g_malloc0(cluster_size);",
" ret = bdrv_pwrite(bs, cluster_size, refcount_table, cluster_size);",
" ret = qcow2_alloc_clusters(bs, 2 * cluster_size);"
],
"line_no": [
63,
169,
171,
221
]
} | static int FUNC_0(const char *VAR_0, int64_t VAR_1,
const char *VAR_2, const char *VAR_3,
int VAR_4, size_t VAR_5, int VAR_6,
QEMUOptionParameter *VAR_7, int VAR_8,
Error **VAR_9)
{
int VAR_10;
VAR_1... | [
"static int FUNC_0(const char *VAR_0, int64_t VAR_1,\nconst char *VAR_2, const char *VAR_3,\nint VAR_4, size_t VAR_5, int VAR_6,\nQEMUOptionParameter *VAR_7, int VAR_8,\nError **VAR_9)\n{",
"int VAR_10;",
"VAR_10 = ffs(VAR_5) - 1;",
"if (VAR_10 < MIN_CLUSTER_BITS || VAR_10 > MAX_CLUSTER_BITS ||\n(1 << VAR_10)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
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
],
[
15
],
[
17
],
[
19,
21,
23
],
[
25,
27
],
[
29
],
[
31
],
[
59
],
[
61
],
[
63
],
[
65
],
[
67
],
[
71
],
[
73
],
[
75
],
[
77
],
[... |
17,283 | static av_cold int cinvideo_decode_init(AVCodecContext *avctx)
{
CinVideoContext *cin = avctx->priv_data;
unsigned int i;
cin->avctx = avctx;
avctx->pix_fmt = AV_PIX_FMT_PAL8;
avcodec_get_frame_defaults(&cin->frame);
cin->frame.data[0] = NULL;
cin->bitmap_size = avctx->width * ... | true | FFmpeg | d8245c3bcdd162891825a52cf55e4e8173d85a18 | static av_cold int cinvideo_decode_init(AVCodecContext *avctx)
{
CinVideoContext *cin = avctx->priv_data;
unsigned int i;
cin->avctx = avctx;
avctx->pix_fmt = AV_PIX_FMT_PAL8;
avcodec_get_frame_defaults(&cin->frame);
cin->frame.data[0] = NULL;
cin->bitmap_size = avctx->width * ... | {
"code": [
" unsigned int i;",
" cin->frame.data[0] = NULL;",
" for (i = 0; i < 3; ++i) {",
" cin->bitmap_table[i] = av_mallocz(cin->bitmap_size);",
" if (!cin->bitmap_table[i])",
" av_log(avctx, AV_LOG_ERROR, \"Can't allocate bitmap buffers.\\n\");"
],
"... | static av_cold int FUNC_0(AVCodecContext *avctx)
{
CinVideoContext *cin = avctx->priv_data;
unsigned int VAR_0;
cin->avctx = avctx;
avctx->pix_fmt = AV_PIX_FMT_PAL8;
avcodec_get_frame_defaults(&cin->frame);
cin->frame.data[0] = NULL;
cin->bitmap_size = avctx->width * avctx->hei... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"CinVideoContext *cin = avctx->priv_data;",
"unsigned int VAR_0;",
"cin->avctx = avctx;",
"avctx->pix_fmt = AV_PIX_FMT_PAL8;",
"avcodec_get_frame_defaults(&cin->frame);",
"cin->frame.data[0] = NULL;",
"cin->bitmap_size = avctx->width * avctx->heig... | [
0,
0,
1,
0,
0,
0,
1,
0,
1,
1,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
37
],
[
39
]
] |
17,284 | PCIBus *pci_bridge_init(PCIBus *bus, int devfn, uint16_t vid, uint16_t did,
pci_map_irq_fn map_irq, const char *name)
{
PCIDevice *dev;
PCIBridge *s;
dev = pci_create(bus, devfn, "pci-bridge");
qdev_prop_set_uint32(&dev->qdev, "vendorid", vid);
qdev_prop_set_uint32(&... | true | qemu | e23a1b33b53d25510320b26d9f154e19c6c99725 | PCIBus *pci_bridge_init(PCIBus *bus, int devfn, uint16_t vid, uint16_t did,
pci_map_irq_fn map_irq, const char *name)
{
PCIDevice *dev;
PCIBridge *s;
dev = pci_create(bus, devfn, "pci-bridge");
qdev_prop_set_uint32(&dev->qdev, "vendorid", vid);
qdev_prop_set_uint32(&... | {
"code": [
" qdev_init(&dev->qdev);",
" qdev_init(&dev->qdev);",
" qdev_init(&dev->qdev);",
" qdev_init(&dev->qdev);",
" qdev_init(&dev->qdev);",
" qdev_init(&dev->qdev);",
" qdev_init(&dev->qdev);",
" qdev_init(&dev->qdev);"
],
"line_no": [
19,
19,... | PCIBus *FUNC_0(PCIBus *bus, int devfn, uint16_t vid, uint16_t did,
pci_map_irq_fn map_irq, const char *name)
{
PCIDevice *dev;
PCIBridge *s;
dev = pci_create(bus, devfn, "pci-bridge");
qdev_prop_set_uint32(&dev->qdev, "vendorid", vid);
qdev_prop_set_uint32(&dev->qdev... | [
"PCIBus *FUNC_0(PCIBus *bus, int devfn, uint16_t vid, uint16_t did,\npci_map_irq_fn map_irq, const char *name)\n{",
"PCIDevice *dev;",
"PCIBridge *s;",
"dev = pci_create(bus, devfn, \"pci-bridge\");",
"qdev_prop_set_uint32(&dev->qdev, \"vendorid\", vid);",
"qdev_prop_set_uint32(&dev->qdev, \"deviceid\", d... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
17,285 | static void set_options(URLContext *h, const char *uri)
{
TLSContext *c = h->priv_data;
char buf[1024], key[1024];
int has_cert, has_key;
#if CONFIG_GNUTLS
int ret;
#endif
const char *p = strchr(uri, '?');
if (!p)
return;
if (av_find_info_tag(buf, sizeof(buf), "cafile", ... | true | FFmpeg | b2460858f64b2070d84dd861d4bbd16acfb9b0e9 | static void set_options(URLContext *h, const char *uri)
{
TLSContext *c = h->priv_data;
char buf[1024], key[1024];
int has_cert, has_key;
#if CONFIG_GNUTLS
int ret;
#endif
const char *p = strchr(uri, '?');
if (!p)
return;
if (av_find_info_tag(buf, sizeof(buf), "cafile", ... | {
"code": [
" int has_cert, has_key;"
],
"line_no": [
9
]
} | static void FUNC_0(URLContext *VAR_0, const char *VAR_1)
{
TLSContext *c = VAR_0->priv_data;
char VAR_2[1024], VAR_3[1024];
int VAR_4, VAR_5;
#if CONFIG_GNUTLS
int ret;
#endif
const char *VAR_6 = strchr(VAR_1, '?');
if (!VAR_6)
return;
if (av_find_info_tag(VAR_2, sizeof(... | [
"static void FUNC_0(URLContext *VAR_0, const char *VAR_1)\n{",
"TLSContext *c = VAR_0->priv_data;",
"char VAR_2[1024], VAR_3[1024];",
"int VAR_4, VAR_5;",
"#if CONFIG_GNUTLS\nint ret;",
"#endif\nconst char *VAR_6 = strchr(VAR_1, '?');",
"if (!VAR_6)\nreturn;",
"if (av_find_info_tag(VAR_2, sizeof(VAR_2... | [
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
],
[
47
],
[
49
],
[
51,
53
],
[... |
17,286 | static void jump_to_IPL_code(uint64_t address)
{
/* store the subsystem information _after_ the bootmap was loaded */
write_subsystem_identification();
/*
* The IPL PSW is at address 0. We also must not overwrite the
* content of non-BIOS memory after we loaded the guest, so we
* save ... | true | qemu | c9262e8a84a29f22fbb5edde5d17f4f6166d5ae1 | static void jump_to_IPL_code(uint64_t address)
{
write_subsystem_identification();
ResetInfo *current = 0;
save = *current;
current->ipl_addr = (uint32_t) (uint64_t) &jump_to_IPL_2;
current->ipl_continue = address & 0x7fffffff;
debug_print_int("set IPL addr to", cu... | {
"code": [
" virtio_panic(\"\\n! IPL returns !\\n\");"
],
"line_no": [
57
]
} | static void FUNC_0(uint64_t VAR_0)
{
write_subsystem_identification();
ResetInfo *current = 0;
save = *current;
current->ipl_addr = (uint32_t) (uint64_t) &jump_to_IPL_2;
current->ipl_continue = VAR_0 & 0x7fffffff;
debug_print_int("set IPL addr to", current->ipl_con... | [
"static void FUNC_0(uint64_t VAR_0)\n{",
"write_subsystem_identification();",
"ResetInfo *current = 0;",
"save = *current;",
"current->ipl_addr = (uint32_t) (uint64_t) &jump_to_IPL_2;",
"current->ipl_continue = VAR_0 & 0x7fffffff;",
"debug_print_int(\"set IPL addr to\", current->ipl_continue);",
"sclp... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
7
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
37
],
[
51,
53,
55
],
[
57
],
[
59
]
] |
17,287 | static void wdt_ib700_realize(DeviceState *dev, Error **errp)
{
IB700State *s = IB700(dev);
PortioList *port_list = g_new(PortioList, 1);
ib700_debug("watchdog init\n");
s->timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, ib700_timer_expired, s);
portio_list_init(port_list, OBJECT(s), wdt_portio... | true | qemu | 848696bf353750899832c51005f1bd3540da5c29 | static void wdt_ib700_realize(DeviceState *dev, Error **errp)
{
IB700State *s = IB700(dev);
PortioList *port_list = g_new(PortioList, 1);
ib700_debug("watchdog init\n");
s->timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, ib700_timer_expired, s);
portio_list_init(port_list, OBJECT(s), wdt_portio... | {
"code": [
" PortioList *port_list = g_new(PortioList, 1);",
" PortioList *port_list = g_new(PortioList, 1);",
" PortioList *port_list = g_new(PortioList, 1);",
" PortioList *port_list = g_new(PortioList, 1);",
" portio_list_init(port_list, OBJECT(s), wdt_portio_list, s, \"ib700\")... | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
IB700State *s = IB700(VAR_0);
PortioList *port_list = g_new(PortioList, 1);
ib700_debug("watchdog init\n");
s->timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, ib700_timer_expired, s);
portio_list_init(port_list, OBJECT(s), wdt_portio_list,... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"IB700State *s = IB700(VAR_0);",
"PortioList *port_list = g_new(PortioList, 1);",
"ib700_debug(\"watchdog init\\n\");",
"s->timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, ib700_timer_expired, s);",
"portio_list_init(port_list, OBJECT(s), wdt_portio_lis... | [
0,
0,
1,
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
]
] |
17,290 | static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt)
{
FFMContext *ffm = s->priv_data;
AVStream *st = s->streams[pkt->stream_index];
int64_t pts;
uint8_t header[FRAME_HEADER_SIZE];
pts = ffm->start_time + pkt->pts;
/* packet size & key_frame */
header[0] = pkt->stream_ind... | false | FFmpeg | 3438d82d4b3bd987304975961e2a42e82767107d | static int ffm_write_packet(AVFormatContext *s, AVPacket *pkt)
{
FFMContext *ffm = s->priv_data;
AVStream *st = s->streams[pkt->stream_index];
int64_t pts;
uint8_t header[FRAME_HEADER_SIZE];
pts = ffm->start_time + pkt->pts;
header[0] = pkt->stream_index;
header[1] = 0;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
FFMContext *ffm = VAR_0->priv_data;
AVStream *st = VAR_0->streams[VAR_1->stream_index];
int64_t pts;
uint8_t header[FRAME_HEADER_SIZE];
pts = ffm->start_time + VAR_1->pts;
header[0] = VAR_1->stream_index;
header[1] ... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"FFMContext *ffm = VAR_0->priv_data;",
"AVStream *st = VAR_0->streams[VAR_1->stream_index];",
"int64_t pts;",
"uint8_t header[FRAME_HEADER_SIZE];",
"pts = ffm->start_time + VAR_1->pts;",
"header[0] = VAR_1->stream_index;",
"header[1] = 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
],
[
37
],
[
39
]
] |
17,291 | static inline void range_dec_normalize(APEContext * ctx)
{
while (ctx->rc.range <= BOTTOM_VALUE) {
ctx->rc.buffer = (ctx->rc.buffer << 8) | bytestream_get_byte(&ctx->ptr);
ctx->rc.low = (ctx->rc.low << 8) | ((ctx->rc.buffer >> 1) & 0xFF);
ctx->rc.range <<= 8;
}
}
| false | FFmpeg | 1a2a1d90775b5be03254d123e4b617145a269572 | static inline void range_dec_normalize(APEContext * ctx)
{
while (ctx->rc.range <= BOTTOM_VALUE) {
ctx->rc.buffer = (ctx->rc.buffer << 8) | bytestream_get_byte(&ctx->ptr);
ctx->rc.low = (ctx->rc.low << 8) | ((ctx->rc.buffer >> 1) & 0xFF);
ctx->rc.range <<= 8;
}
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(APEContext * VAR_0)
{
while (VAR_0->rc.range <= BOTTOM_VALUE) {
VAR_0->rc.buffer = (VAR_0->rc.buffer << 8) | bytestream_get_byte(&VAR_0->ptr);
VAR_0->rc.low = (VAR_0->rc.low << 8) | ((VAR_0->rc.buffer >> 1) & 0xFF);
VAR_0->rc.range <<= 8;
}
}
| [
"static inline void FUNC_0(APEContext * VAR_0)\n{",
"while (VAR_0->rc.range <= BOTTOM_VALUE) {",
"VAR_0->rc.buffer = (VAR_0->rc.buffer << 8) | bytestream_get_byte(&VAR_0->ptr);",
"VAR_0->rc.low = (VAR_0->rc.low << 8) | ((VAR_0->rc.buffer >> 1) & 0xFF);",
"VAR_0->rc.range <<= 8;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
17,292 | static int read_rle_sgi(uint8_t *out_buf, SgiState *s)
{
uint8_t *dest_row;
unsigned int len = s->height * s->depth * 4;
GetByteContext g_table = s->g;
unsigned int y, z;
unsigned int start_offset;
int linesize, ret;
/* size of RLE offset and length tables */
if (len * 2 > by... | false | FFmpeg | 3b20ed85489a14cb5028c873d06960dbc5eef88a | static int read_rle_sgi(uint8_t *out_buf, SgiState *s)
{
uint8_t *dest_row;
unsigned int len = s->height * s->depth * 4;
GetByteContext g_table = s->g;
unsigned int y, z;
unsigned int start_offset;
int linesize, ret;
if (len * 2 > bytestream2_get_bytes_left(&s->g)) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(uint8_t *VAR_0, SgiState *VAR_1)
{
uint8_t *dest_row;
unsigned int VAR_2 = VAR_1->height * VAR_1->depth * 4;
GetByteContext g_table = VAR_1->g;
unsigned int VAR_3, VAR_4;
unsigned int VAR_5;
int VAR_6, VAR_7;
if (VAR_2 * 2 > bytestream2_get_bytes_left(&VAR_1... | [
"static int FUNC_0(uint8_t *VAR_0, SgiState *VAR_1)\n{",
"uint8_t *dest_row;",
"unsigned int VAR_2 = VAR_1->height * VAR_1->depth * 4;",
"GetByteContext g_table = VAR_1->g;",
"unsigned int VAR_3, VAR_4;",
"unsigned int VAR_5;",
"int VAR_6, VAR_7;",
"if (VAR_2 * 2 > bytestream2_get_bytes_left(&VAR_1->g... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47,
49
... |
17,293 | static int xvid_ff_2pass_destroy(struct xvid_context *ref,
xvid_plg_destroy_t *param) {
/* Currently cannot think of anything to do on destruction */
/* Still, the framework should be here for reference/use */
if( ref->twopassbuffer != NULL )
ref->twopassbuffer[0... | false | FFmpeg | 4b1f5e5090abed6c618c8ba380cd7d28d140f867 | static int xvid_ff_2pass_destroy(struct xvid_context *ref,
xvid_plg_destroy_t *param) {
if( ref->twopassbuffer != NULL )
ref->twopassbuffer[0] = 0;
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(struct xvid_context *VAR_0,
xvid_plg_destroy_t *VAR_1) {
if( VAR_0->twopassbuffer != NULL )
VAR_0->twopassbuffer[0] = 0;
return 0;
}
| [
"static int FUNC_0(struct xvid_context *VAR_0,\nxvid_plg_destroy_t *VAR_1) {",
"if( VAR_0->twopassbuffer != NULL )\nVAR_0->twopassbuffer[0] = 0;",
"return 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
9,
11
],
[
13
],
[
15
]
] |
17,294 | cpu_mips_check_sign_extensions (CPUMIPSState *env, FILE *f,
fprintf_function cpu_fprintf,
int flags)
{
int i;
if (!SIGN_EXT_P(env->active_tc.PC))
cpu_fprintf(f, "BROKEN: pc=0x" TARGET_FMT_lx "\n", env->active_tc.PC);
if (!SIGN_... | true | qemu | b307446e04232b3a87e9da04886895a8e5a4a407 | cpu_mips_check_sign_extensions (CPUMIPSState *env, FILE *f,
fprintf_function cpu_fprintf,
int flags)
{
int i;
if (!SIGN_EXT_P(env->active_tc.PC))
cpu_fprintf(f, "BROKEN: pc=0x" TARGET_FMT_lx "\n", env->active_tc.PC);
if (!SIGN_... | {
"code": [
"cpu_mips_check_sign_extensions (CPUMIPSState *env, FILE *f,",
" fprintf_function cpu_fprintf,",
" int flags)",
" int i;",
" if (!SIGN_EXT_P(env->active_tc.PC))",
" cpu_fprintf(f, \"BROKEN: pc=0x\" TARGET_FM... | FUNC_0 (CPUMIPSState *VAR_0, FILE *VAR_1,
fprintf_function VAR_2,
int VAR_3)
{
int VAR_4;
if (!SIGN_EXT_P(VAR_0->active_tc.PC))
VAR_2(VAR_1, "BROKEN: pc=0x" TARGET_FMT_lx "\n", VAR_0->active_tc.PC);
if (!SIGN_EXT_P(VAR_0->activ... | [
"FUNC_0 (CPUMIPSState *VAR_0, FILE *VAR_1,\nfprintf_function VAR_2,\nint VAR_3)\n{",
"int VAR_4;",
"if (!SIGN_EXT_P(VAR_0->active_tc.PC))\nVAR_2(VAR_1, \"BROKEN: pc=0x\" TARGET_FMT_lx \"\\n\", VAR_0->active_tc.PC);",
"if (!SIGN_EXT_P(VAR_0->active_tc.HI[0]))\nVAR_2(VAR_1, \"BROKEN: HI=0x\" TARGET_FMT_lx \"\\n... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13,
15
],
[
17,
19
],
[
21,
23
],
[
25,
27
],
[
31
],
[
33,
35
],
[
37
],
[
41,
43
],
[
45,
47
],
[
49
]
] |
17,295 | void put_no_rnd_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, int stride, int h, int x, int y) {
DECLARE_ALIGNED_16(signed int, ABCD[4]) =
{((8 - x) * (8 - y)),
((x) * (8 - y)),
((8 - x) * (y)),
((... | true | FFmpeg | f5b2476fd322a4d36fde912cb2a30a850bd77f43 | void put_no_rnd_h264_chroma_mc8_altivec(uint8_t * dst, uint8_t * src, int stride, int h, int x, int y) {
DECLARE_ALIGNED_16(signed int, ABCD[4]) =
{((8 - x) * (8 - y)),
((x) * (8 - y)),
((8 - x) * (y)),
((... | {
"code": [
" vec_u8 vsrcAuc, vsrcBuc, vsrcperm0, vsrcperm1;",
" vec_u8 vsrcAuc, vsrcBuc, vsrcperm0, vsrcperm1;"
],
"line_no": [
39,
39
]
} | void FUNC_0(uint8_t * VAR_0, uint8_t * VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5) {
DECLARE_ALIGNED_16(signed int, ABCD[4]) =
{((8 - VAR_4) * (8 - VAR_5)),
((VAR_4) * (8 - VAR_5)),
((8 - VAR_4) * (VAR_5)),
... | [
"void FUNC_0(uint8_t * VAR_0, uint8_t * VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5) {",
"DECLARE_ALIGNED_16(signed int, ABCD[4]) =\n{((8 - VAR_4) * (8 - VAR_5)),",
"((VAR_4) * (8 - VAR_5)),\n((8 - VAR_4) * (VAR_5)),\n((VAR_4) * (VAR_5))};",
"register int VAR_6;",
"vec_u8 fperm;",
"const vec_s32 VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3,
5
],
[
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
... |
17,296 | static int sol_read_packet(AVFormatContext *s,
AVPacket *pkt)
{
int ret;
if (s->pb->eof_reached)
return AVERROR(EIO);
ret= av_get_packet(s->pb, pkt, MAX_SIZE);
pkt->stream_index = 0;
/* note: we need to modify the packet size here to handle the last
... | true | FFmpeg | b15a9888a8f8e8cc9784ffd8d5d0307900fb78bb | static int sol_read_packet(AVFormatContext *s,
AVPacket *pkt)
{
int ret;
if (s->pb->eof_reached)
return AVERROR(EIO);
ret= av_get_packet(s->pb, pkt, MAX_SIZE);
pkt->stream_index = 0;
pkt->size = ret;
return 0;
} | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0,
AVPacket *VAR_1)
{
int VAR_2;
if (VAR_0->pb->eof_reached)
return AVERROR(EIO);
VAR_2= av_get_packet(VAR_0->pb, VAR_1, MAX_SIZE);
VAR_1->stream_index = 0;
VAR_1->size = VAR_2;
return 0;
} | [
"static int FUNC_0(AVFormatContext *VAR_0,\nAVPacket *VAR_1)\n{",
"int VAR_2;",
"if (VAR_0->pb->eof_reached)\nreturn AVERROR(EIO);",
"VAR_2= av_get_packet(VAR_0->pb, VAR_1, MAX_SIZE);",
"VAR_1->stream_index = 0;",
"VAR_1->size = VAR_2;",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11,
13
],
[
15
],
[
19
],
[
27
],
[
29
],
[
31
]
] |
17,297 | static inline TCGv gen_ld32(TCGv addr, int index)
{
TCGv tmp = new_tmp();
tcg_gen_qemu_ld32u(tmp, addr, index);
return tmp;
}
| true | qemu | 7d1b0095bff7157e856d1d0e6c4295641ced2752 | static inline TCGv gen_ld32(TCGv addr, int index)
{
TCGv tmp = new_tmp();
tcg_gen_qemu_ld32u(tmp, addr, index);
return tmp;
}
| {
"code": [
" TCGv tmp = new_tmp();",
" TCGv tmp = new_tmp();",
" TCGv tmp = new_tmp();",
" TCGv tmp = new_tmp();",
" TCGv tmp = new_tmp();",
" TCGv tmp = new_tmp();",
" TCGv tmp = new_tmp();",
" TCGv tmp = new_tmp();",
" TCGv tmp = new_tmp();",
" ... | static inline TCGv FUNC_0(TCGv addr, int index)
{
TCGv tmp = new_tmp();
tcg_gen_qemu_ld32u(tmp, addr, index);
return tmp;
}
| [
"static inline TCGv FUNC_0(TCGv addr, int index)\n{",
"TCGv tmp = new_tmp();",
"tcg_gen_qemu_ld32u(tmp, addr, index);",
"return tmp;",
"}"
] | [
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
17,298 | static int kvm_irqchip_get_virq(KVMState *s)
{
uint32_t *word = s->used_gsi_bitmap;
int max_words = ALIGN(s->gsi_count, 32) / 32;
int i, zeroes;
bool retry = true;
again:
/* Return the lowest unused GSI in the bitmap */
for (i = 0; i < max_words; i++) {
zeroes = ctz32(~word[i]... | true | qemu | bdf026317daa3b9dfa281f29e96fbb6fd48394c8 | static int kvm_irqchip_get_virq(KVMState *s)
{
uint32_t *word = s->used_gsi_bitmap;
int max_words = ALIGN(s->gsi_count, 32) / 32;
int i, zeroes;
bool retry = true;
again:
for (i = 0; i < max_words; i++) {
zeroes = ctz32(~word[i]);
if (zeroes == 32) {
con... | {
"code": [
" bool retry = true;",
"again:",
" if (!s->direct_msi && retry) {",
" retry = false;",
" kvm_flush_dynamic_msi_routes(s);",
" goto again;"
],
"line_no": [
11,
15,
35,
37,
39,
41
]
} | static int FUNC_0(KVMState *VAR_0)
{
uint32_t *word = VAR_0->used_gsi_bitmap;
int VAR_1 = ALIGN(VAR_0->gsi_count, 32) / 32;
int VAR_2, VAR_3;
bool retry = true;
again:
for (VAR_2 = 0; VAR_2 < VAR_1; VAR_2++) {
VAR_3 = ctz32(~word[VAR_2]);
if (VAR_3 == 32) {
... | [
"static int FUNC_0(KVMState *VAR_0)\n{",
"uint32_t *word = VAR_0->used_gsi_bitmap;",
"int VAR_1 = ALIGN(VAR_0->gsi_count, 32) / 32;",
"int VAR_2, VAR_3;",
"bool retry = true;",
"again:\nfor (VAR_2 = 0; VAR_2 < VAR_1; VAR_2++) {",
"VAR_3 = ctz32(~word[VAR_2]);",
"if (VAR_3 == 32) {",
"continue;",
"... | [
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
]
] |
17,300 | void bdrv_drain_all(void)
{
/* Always run first iteration so any pending completion BHs run */
bool busy = true;
BlockDriverState *bs = NULL;
GSList *aio_ctxs = NULL, *ctx;
while ((bs = bdrv_next(bs))) {
AioContext *aio_context = bdrv_get_aio_context(bs);
aio_context_acqu... | false | qemu | 6b98bd649520d07df4d1b7a0a54ac73bf178519c | void bdrv_drain_all(void)
{
bool busy = true;
BlockDriverState *bs = NULL;
GSList *aio_ctxs = NULL, *ctx;
while ((bs = bdrv_next(bs))) {
AioContext *aio_context = bdrv_get_aio_context(bs);
aio_context_acquire(aio_context);
if (bs->job) {
block_job_p... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
bool busy = true;
BlockDriverState *bs = NULL;
GSList *aio_ctxs = NULL, *ctx;
while ((bs = bdrv_next(bs))) {
AioContext *aio_context = bdrv_get_aio_context(bs);
aio_context_acquire(aio_context);
if (bs->job) {
block_job_pause(bs-... | [
"void FUNC_0(void)\n{",
"bool busy = true;",
"BlockDriverState *bs = NULL;",
"GSList *aio_ctxs = NULL, *ctx;",
"while ((bs = bdrv_next(bs))) {",
"AioContext *aio_context = bdrv_get_aio_context(bs);",
"aio_context_acquire(aio_context);",
"if (bs->job) {",
"block_job_pause(bs->job);",
"}",
"bdrv_n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
59
],
[
61
],
[
65... |
17,302 | static int net_socket_mcast_create(struct sockaddr_in *mcastaddr, struct in_addr *localaddr)
{
struct ip_mreq imr;
int fd;
int val, ret;
if (!IN_MULTICAST(ntohl(mcastaddr->sin_addr.s_addr))) {
fprintf(stderr, "qemu: error: specified mcastaddr \"%s\" (0x%08x) does not contain a multicast address\n... | false | qemu | 23ddf2bb1e4bfe2b72a726fe5e828807b65941ad | static int net_socket_mcast_create(struct sockaddr_in *mcastaddr, struct in_addr *localaddr)
{
struct ip_mreq imr;
int fd;
int val, ret;
if (!IN_MULTICAST(ntohl(mcastaddr->sin_addr.s_addr))) {
fprintf(stderr, "qemu: error: specified mcastaddr \"%s\" (0x%08x) does not contain a multicast address\n... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct sockaddr_in *VAR_0, struct in_addr *VAR_1)
{
struct ip_mreq VAR_2;
int VAR_3;
int VAR_4, VAR_5;
if (!IN_MULTICAST(ntohl(VAR_0->sin_addr.s_addr))) {
fprintf(stderr, "qemu: error: specified VAR_0 \"%s\" (0x%08x) does not contain a multicast address\n",
inet_ntoa(VAR_0->s... | [
"static int FUNC_0(struct sockaddr_in *VAR_0, struct in_addr *VAR_1)\n{",
"struct ip_mreq VAR_2;",
"int VAR_3;",
"int VAR_4, VAR_5;",
"if (!IN_MULTICAST(ntohl(VAR_0->sin_addr.s_addr))) {",
"fprintf(stderr, \"qemu: error: specified VAR_0 \\\"%s\\\" (0x%08x) does not contain a multicast address\\n\",\ninet_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15,
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[... |
17,303 | ram_addr_t last_ram_offset(void)
{
RAMBlock *block;
ram_addr_t last = 0;
QTAILQ_FOREACH(block, &ram_list.blocks, next)
last = MAX(last, block->offset + block->length);
return last;
}
| false | qemu | 62be4e3a5041e84304aa23637da623a205c53ecc | ram_addr_t last_ram_offset(void)
{
RAMBlock *block;
ram_addr_t last = 0;
QTAILQ_FOREACH(block, &ram_list.blocks, next)
last = MAX(last, block->offset + block->length);
return last;
}
| {
"code": [],
"line_no": []
} | ram_addr_t FUNC_0(void)
{
RAMBlock *block;
ram_addr_t last = 0;
QTAILQ_FOREACH(block, &ram_list.blocks, next)
last = MAX(last, block->offset + block->length);
return last;
}
| [
"ram_addr_t FUNC_0(void)\n{",
"RAMBlock *block;",
"ram_addr_t last = 0;",
"QTAILQ_FOREACH(block, &ram_list.blocks, next)\nlast = MAX(last, block->offset + block->length);",
"return last;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
19
]
] |
17,304 | void qmp_blockdev_open_tray(const char *device, bool has_force, bool force,
Error **errp)
{
if (!has_force) {
force = false;
}
do_open_tray(device, force, errp);
}
| false | qemu | bf18bee547d19fde314e7b6b81f21f68b46c8a92 | void qmp_blockdev_open_tray(const char *device, bool has_force, bool force,
Error **errp)
{
if (!has_force) {
force = false;
}
do_open_tray(device, force, errp);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0, bool VAR_1, bool VAR_2,
Error **VAR_3)
{
if (!VAR_1) {
VAR_2 = false;
}
do_open_tray(VAR_0, VAR_2, VAR_3);
}
| [
"void FUNC_0(const char *VAR_0, bool VAR_1, bool VAR_2,\nError **VAR_3)\n{",
"if (!VAR_1) {",
"VAR_2 = false;",
"}",
"do_open_tray(VAR_0, VAR_2, VAR_3);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
17,306 | void pci_register_vga(PCIDevice *pci_dev, MemoryRegion *mem,
MemoryRegion *io_lo, MemoryRegion *io_hi)
{
assert(!pci_dev->has_vga);
assert(memory_region_size(mem) == QEMU_PCI_VGA_MEM_SIZE);
pci_dev->vga_regions[QEMU_PCI_VGA_MEM] = mem;
memory_region_add_subregion_overlap(pc... | false | qemu | fd56e0612b6454a282fa6a953fdb09281a98c589 | void pci_register_vga(PCIDevice *pci_dev, MemoryRegion *mem,
MemoryRegion *io_lo, MemoryRegion *io_hi)
{
assert(!pci_dev->has_vga);
assert(memory_region_size(mem) == QEMU_PCI_VGA_MEM_SIZE);
pci_dev->vga_regions[QEMU_PCI_VGA_MEM] = mem;
memory_region_add_subregion_overlap(pc... | {
"code": [],
"line_no": []
} | void FUNC_0(PCIDevice *VAR_0, MemoryRegion *VAR_1,
MemoryRegion *VAR_2, MemoryRegion *VAR_3)
{
assert(!VAR_0->has_vga);
assert(memory_region_size(VAR_1) == QEMU_PCI_VGA_MEM_SIZE);
VAR_0->vga_regions[QEMU_PCI_VGA_MEM] = VAR_1;
memory_region_add_subregion_overlap(VAR_0->bus->... | [
"void FUNC_0(PCIDevice *VAR_0, MemoryRegion *VAR_1,\nMemoryRegion *VAR_2, MemoryRegion *VAR_3)\n{",
"assert(!VAR_0->has_vga);",
"assert(memory_region_size(VAR_1) == QEMU_PCI_VGA_MEM_SIZE);",
"VAR_0->vga_regions[QEMU_PCI_VGA_MEM] = VAR_1;",
"memory_region_add_subregion_overlap(VAR_0->bus->address_space_mem,\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
21
],
[
23
],
[
25,
27
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
43
],
[
45
]
] |
17,309 | static int qmp_check_client_args(const mon_cmd_t *cmd, QDict *client_args)
{
int flags, err;
QDict *cmd_args;
cmd_args = qdict_from_args_type(cmd->args_type);
flags = 0;
err = check_mandatory_args(cmd_args, client_args, &flags);
if (err) {
goto out;
}
/* TODO: Che... | false | qemu | 4af9193ae954f87225e1ba5d527f6a13e37b1e0e | static int qmp_check_client_args(const mon_cmd_t *cmd, QDict *client_args)
{
int flags, err;
QDict *cmd_args;
cmd_args = qdict_from_args_type(cmd->args_type);
flags = 0;
err = check_mandatory_args(cmd_args, client_args, &flags);
if (err) {
goto out;
}
out:
... | {
"code": [],
"line_no": []
} | static int FUNC_0(const mon_cmd_t *VAR_0, QDict *VAR_1)
{
int VAR_2, VAR_3;
QDict *cmd_args;
cmd_args = qdict_from_args_type(VAR_0->args_type);
VAR_2 = 0;
VAR_3 = check_mandatory_args(cmd_args, VAR_1, &VAR_2);
if (VAR_3) {
goto out;
}
out:
QDECREF(cmd_arg... | [
"static int FUNC_0(const mon_cmd_t *VAR_0, QDict *VAR_1)\n{",
"int VAR_2, VAR_3;",
"QDict *cmd_args;",
"cmd_args = qdict_from_args_type(VAR_0->args_type);",
"VAR_2 = 0;",
"VAR_3 = check_mandatory_args(cmd_args, VAR_1, &VAR_2);",
"if (VAR_3) {",
"goto out;",
"}",
"out:\nQDECREF(cmd_args);",
"retu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
31,
33
],
[
35
],
[
37
]
] |
17,310 | bool aio_prepare(AioContext *ctx)
{
/* Poll mode cannot be used with glib's event loop, disable it. */
poll_set_started(ctx, false);
return false;
}
| false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | bool aio_prepare(AioContext *ctx)
{
poll_set_started(ctx, false);
return false;
}
| {
"code": [],
"line_no": []
} | bool FUNC_0(AioContext *ctx)
{
poll_set_started(ctx, false);
return false;
}
| [
"bool FUNC_0(AioContext *ctx)\n{",
"poll_set_started(ctx, false);",
"return false;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
11
],
[
13
]
] |
17,311 | static void sigp_initial_cpu_reset(void *arg)
{
CPUState *cpu = arg;
S390CPUClass *scc = S390_CPU_GET_CLASS(cpu);
cpu_synchronize_state(cpu);
scc->initial_cpu_reset(cpu);
cpu_synchronize_post_reset(cpu);
}
| false | qemu | 6eb8f212d2686ed9b17077d554465df7ae06f805 | static void sigp_initial_cpu_reset(void *arg)
{
CPUState *cpu = arg;
S390CPUClass *scc = S390_CPU_GET_CLASS(cpu);
cpu_synchronize_state(cpu);
scc->initial_cpu_reset(cpu);
cpu_synchronize_post_reset(cpu);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
CPUState *cpu = VAR_0;
S390CPUClass *scc = S390_CPU_GET_CLASS(cpu);
cpu_synchronize_state(cpu);
scc->initial_cpu_reset(cpu);
cpu_synchronize_post_reset(cpu);
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"CPUState *cpu = VAR_0;",
"S390CPUClass *scc = S390_CPU_GET_CLASS(cpu);",
"cpu_synchronize_state(cpu);",
"scc->initial_cpu_reset(cpu);",
"cpu_synchronize_post_reset(cpu);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
17,312 | static void mcf_fec_cleanup(NetClientState *nc)
{
mcf_fec_state *s = qemu_get_nic_opaque(nc);
g_free(s);
}
| false | qemu | 57407ea44cc0a3d630b9b89a2be011f1955ce5c1 | static void mcf_fec_cleanup(NetClientState *nc)
{
mcf_fec_state *s = qemu_get_nic_opaque(nc);
g_free(s);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(NetClientState *VAR_0)
{
mcf_fec_state *s = qemu_get_nic_opaque(VAR_0);
g_free(s);
}
| [
"static void FUNC_0(NetClientState *VAR_0)\n{",
"mcf_fec_state *s = qemu_get_nic_opaque(VAR_0);",
"g_free(s);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
17,313 | static void hid_keyboard_event(DeviceState *dev, QemuConsole *src,
InputEvent *evt)
{
HIDState *hs = (HIDState *)dev;
int scancodes[3], i, count;
int slot;
count = qemu_input_key_value_to_scancode(evt->key->key,
evt->ke... | false | qemu | 568c73a4783cd981e9aa6de4f15dcda7829643ad | static void hid_keyboard_event(DeviceState *dev, QemuConsole *src,
InputEvent *evt)
{
HIDState *hs = (HIDState *)dev;
int scancodes[3], i, count;
int slot;
count = qemu_input_key_value_to_scancode(evt->key->key,
evt->ke... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, QemuConsole *VAR_1,
InputEvent *VAR_2)
{
HIDState *hs = (HIDState *)VAR_0;
int VAR_3[3], VAR_4, VAR_5;
int VAR_6;
VAR_5 = qemu_input_key_value_to_scancode(VAR_2->key->key,
VAR_2->k... | [
"static void FUNC_0(DeviceState *VAR_0, QemuConsole *VAR_1,\nInputEvent *VAR_2)\n{",
"HIDState *hs = (HIDState *)VAR_0;",
"int VAR_3[3], VAR_4, VAR_5;",
"int VAR_6;",
"VAR_5 = qemu_input_key_value_to_scancode(VAR_2->key->key,\nVAR_2->key->down,\nVAR_3);",
"if (hs->n + VAR_5 > QUEUE_LENGTH) {",
"fprintf(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15,
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
17,315 | static void pci_vpb_unmap(SysBusDevice *dev, target_phys_addr_t base)
{
PCIVPBState *s = (PCIVPBState *)dev;
/* Selfconfig area. */
memory_region_del_subregion(get_system_memory(), &s->mem_config);
/* Normal config area. */
memory_region_del_subregion(get_system_memory(), &s->mem_config2);
... | false | qemu | 7d6e771f49c36f4388798ce25bde1dede40cda74 | static void pci_vpb_unmap(SysBusDevice *dev, target_phys_addr_t base)
{
PCIVPBState *s = (PCIVPBState *)dev;
memory_region_del_subregion(get_system_memory(), &s->mem_config);
memory_region_del_subregion(get_system_memory(), &s->mem_config2);
if (s->realview) {
memor... | {
"code": [],
"line_no": []
} | static void FUNC_0(SysBusDevice *VAR_0, target_phys_addr_t VAR_1)
{
PCIVPBState *s = (PCIVPBState *)VAR_0;
memory_region_del_subregion(get_system_memory(), &s->mem_config);
memory_region_del_subregion(get_system_memory(), &s->mem_config2);
if (s->realview) {
memory_... | [
"static void FUNC_0(SysBusDevice *VAR_0, target_phys_addr_t VAR_1)\n{",
"PCIVPBState *s = (PCIVPBState *)VAR_0;",
"memory_region_del_subregion(get_system_memory(), &s->mem_config);",
"memory_region_del_subregion(get_system_memory(), &s->mem_config2);",
"if (s->realview) {",
"memory_region_del_subregion(ge... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
]
] |
17,316 | static int v9fs_synth_init(FsContext *ctx)
{
QLIST_INIT(&v9fs_synth_root.child);
qemu_mutex_init(&v9fs_synth_mutex);
/* Add "." and ".." entries for root */
v9fs_add_dir_node(&v9fs_synth_root, v9fs_synth_root.attr->mode,
"..", v9fs_synth_root.attr, v9fs_synth_root.attr->ino... | false | qemu | 364031f17932814484657e5551ba12957d993d7e | static int v9fs_synth_init(FsContext *ctx)
{
QLIST_INIT(&v9fs_synth_root.child);
qemu_mutex_init(&v9fs_synth_mutex);
v9fs_add_dir_node(&v9fs_synth_root, v9fs_synth_root.attr->mode,
"..", v9fs_synth_root.attr, v9fs_synth_root.attr->inode);
v9fs_add_dir_node(&v9fs_synth... | {
"code": [],
"line_no": []
} | static int FUNC_0(FsContext *VAR_0)
{
QLIST_INIT(&v9fs_synth_root.child);
qemu_mutex_init(&v9fs_synth_mutex);
v9fs_add_dir_node(&v9fs_synth_root, v9fs_synth_root.attr->mode,
"..", v9fs_synth_root.attr, v9fs_synth_root.attr->inode);
v9fs_add_dir_node(&v9fs_synth_root, ... | [
"static int FUNC_0(FsContext *VAR_0)\n{",
"QLIST_INIT(&v9fs_synth_root.child);",
"qemu_mutex_init(&v9fs_synth_mutex);",
"v9fs_add_dir_node(&v9fs_synth_root, v9fs_synth_root.attr->mode,\n\"..\", v9fs_synth_root.attr, v9fs_synth_root.attr->inode);",
"v9fs_add_dir_node(&v9fs_synth_root, v9fs_synth_root.attr->m... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13,
15
],
[
17,
19
],
[
25
],
[
27
],
[
29
]
] |
17,317 | const char *get_feature_xml(CPUState *env, const char *p, const char **newp)
{
extern const char *const xml_builtin[][2];
size_t len;
int i;
const char *name;
static char target_xml[1024];
len = 0;
while (p[len] && p[len] != ':')
len++;
*newp = p + len;
name = ... | false | qemu | 5b3715bfdafcf35c352aa6d273cadd4eb543c449 | const char *get_feature_xml(CPUState *env, const char *p, const char **newp)
{
extern const char *const xml_builtin[][2];
size_t len;
int i;
const char *name;
static char target_xml[1024];
len = 0;
while (p[len] && p[len] != ':')
len++;
*newp = p + len;
name = ... | {
"code": [],
"line_no": []
} | const char *FUNC_0(CPUState *VAR_0, const char *VAR_1, const char **VAR_2)
{
extern const char *const VAR_3[][2];
size_t len;
int VAR_4;
const char *VAR_5;
static char VAR_6[1024];
len = 0;
while (VAR_1[len] && VAR_1[len] != ':')
len++;
*VAR_2 = VAR_1 + len;
VA... | [
"const char *FUNC_0(CPUState *VAR_0, const char *VAR_1, const char **VAR_2)\n{",
"extern const char *const VAR_3[][2];",
"size_t len;",
"int VAR_4;",
"const char *VAR_5;",
"static char VAR_6[1024];",
"len = 0;",
"while (VAR_1[len] && VAR_1[len] != ':')\nlen++;",
"*VAR_2 = VAR_1 + len;",
"VAR_5 = N... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19,
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
39,
41,
43,
45,
47,
49
],
[
53
],
[
55
],
[
57
... |
17,318 | static int ppc_hash32_translate(CPUPPCState *env, struct mmu_ctx_hash32 *ctx,
target_ulong eaddr, int rwx)
{
int ret;
target_ulong sr;
/* 1. Handle real mode accesses */
if (((rwx == 2) && (msr_ir == 0)) || ((rwx != 2) && (msr_dr == 0))) {
/* Translation ... | false | qemu | 7f3bdc2d8e17999a26ac0f6649caef92fedfc1c0 | static int ppc_hash32_translate(CPUPPCState *env, struct mmu_ctx_hash32 *ctx,
target_ulong eaddr, int rwx)
{
int ret;
target_ulong sr;
if (((rwx == 2) && (msr_ir == 0)) || ((rwx != 2) && (msr_dr == 0))) {
ctx->raddr = eaddr;
ctx->prot ... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUPPCState *VAR_0, struct mmu_ctx_hash32 *VAR_1,
target_ulong VAR_2, int VAR_3)
{
int VAR_4;
target_ulong sr;
if (((VAR_3 == 2) && (msr_ir == 0)) || ((VAR_3 != 2) && (msr_dr == 0))) {
VAR_1->raddr = VAR_2;
VAR_1->pro... | [
"static int FUNC_0(CPUPPCState *VAR_0, struct mmu_ctx_hash32 *VAR_1,\ntarget_ulong VAR_2, int VAR_3)\n{",
"int VAR_4;",
"target_ulong sr;",
"if (((VAR_3 == 2) && (msr_ir == 0)) || ((VAR_3 != 2) && (msr_dr == 0))) {",
"VAR_1->raddr = VAR_2;",
"VAR_1->prot = PAGE_READ | PAGE_EXEC | PAGE_WRITE;",
"return 0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
47
],
[
53
],
[
55,
57
],
[
59
],
[
65
... |
17,319 | static int flv_write_trailer(AVFormatContext *s)
{
int64_t file_size;
AVIOContext *pb = s->pb;
FLVContext *flv = s->priv_data;
int i;
/* Add EOS tag */
for (i = 0; i < s->nb_streams; i++) {
AVCodecContext *enc = s->streams[i]->codec;
if (enc->codec_type == AVMEDIA_TY... | false | FFmpeg | 4ee247a2bdf2fbe81026a428d4affc46c81f28db | static int flv_write_trailer(AVFormatContext *s)
{
int64_t file_size;
AVIOContext *pb = s->pb;
FLVContext *flv = s->priv_data;
int i;
for (i = 0; i < s->nb_streams; i++) {
AVCodecContext *enc = s->streams[i]->codec;
if (enc->codec_type == AVMEDIA_TYPE_VIDEO &&
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
int64_t file_size;
AVIOContext *pb = VAR_0->pb;
FLVContext *flv = VAR_0->priv_data;
int VAR_1;
for (VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++) {
AVCodecContext *enc = VAR_0->streams[VAR_1]->codec;
if (enc->codec_type =... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"int64_t file_size;",
"AVIOContext *pb = VAR_0->pb;",
"FLVContext *flv = VAR_0->priv_data;",
"int VAR_1;",
"for (VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++) {",
"AVCodecContext *enc = VAR_0->streams[VAR_1]->codec;",
"if (enc->codec_type == AVMEDIA_TYP... | [
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
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
]
] |
17,320 | static int vmdk_parse_extents(const char *desc, BlockDriverState *bs,
const char *desc_file_path)
{
int ret;
char access[11];
char type[11];
char fname[512];
const char *p = desc;
int64_t sectors = 0;
int64_t flat_offset;
char extent_path[PATH_MAX];
BlockDriverStat... | false | qemu | 8aa1331c09a9b899f48d97f097bb49b7d458be1c | static int vmdk_parse_extents(const char *desc, BlockDriverState *bs,
const char *desc_file_path)
{
int ret;
char access[11];
char type[11];
char fname[512];
const char *p = desc;
int64_t sectors = 0;
int64_t flat_offset;
char extent_path[PATH_MAX];
BlockDriverStat... | {
"code": [],
"line_no": []
} | static int FUNC_0(const char *VAR_0, BlockDriverState *VAR_1,
const char *VAR_2)
{
int VAR_3;
char VAR_4[11];
char VAR_5[11];
char VAR_6[512];
const char *VAR_7 = VAR_0;
int64_t sectors = 0;
int64_t flat_offset;
char VAR_8[PATH_MAX];
BlockDriverState *extent_file;
... | [
"static int FUNC_0(const char *VAR_0, BlockDriverState *VAR_1,\nconst char *VAR_2)\n{",
"int VAR_3;",
"char VAR_4[11];",
"char VAR_5[11];",
"char VAR_6[512];",
"const char *VAR_7 = VAR_0;",
"int64_t sectors = 0;",
"int64_t flat_offset;",
"char VAR_8[PATH_MAX];",
"BlockDriverState *extent_file;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
... |
17,321 | static int kvm_irqchip_get_virq(KVMState *s)
{
uint32_t *word = s->used_gsi_bitmap;
int max_words = ALIGN(s->gsi_count, 32) / 32;
int i, bit;
bool retry = true;
again:
/* Return the lowest unused GSI in the bitmap */
for (i = 0; i < max_words; i++) {
bit = ffs(~word[i]);
... | false | qemu | 4a3adebb1854d48f0c67958e164c6b2f29d44064 | static int kvm_irqchip_get_virq(KVMState *s)
{
uint32_t *word = s->used_gsi_bitmap;
int max_words = ALIGN(s->gsi_count, 32) / 32;
int i, bit;
bool retry = true;
again:
for (i = 0; i < max_words; i++) {
bit = ffs(~word[i]);
if (!bit) {
continue;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(KVMState *VAR_0)
{
uint32_t *word = VAR_0->used_gsi_bitmap;
int VAR_1 = ALIGN(VAR_0->gsi_count, 32) / 32;
int VAR_2, VAR_3;
bool retry = true;
again:
for (VAR_2 = 0; VAR_2 < VAR_1; VAR_2++) {
VAR_3 = ffs(~word[VAR_2]);
if (!VAR_3) {
con... | [
"static int FUNC_0(KVMState *VAR_0)\n{",
"uint32_t *word = VAR_0->used_gsi_bitmap;",
"int VAR_1 = ALIGN(VAR_0->gsi_count, 32) / 32;",
"int VAR_2, VAR_3;",
"bool retry = true;",
"again:\nfor (VAR_2 = 0; VAR_2 < VAR_1; VAR_2++) {",
"VAR_3 = ffs(~word[VAR_2]);",
"if (!VAR_3) {",
"continue;",
"}",
"... | [
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
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
]
] |
17,322 | static int check_empty_sectors(BlockBackend *blk, int64_t sect_num,
int sect_count, const char *filename,
uint8_t *buffer, bool quiet)
{
int pnum, ret = 0;
ret = blk_pread(blk, sect_num << BDRV_SECTOR_BITS, buffer,
sect_coun... | false | qemu | debb38a4cec34709604a00e23368e6cd8932fe3d | static int check_empty_sectors(BlockBackend *blk, int64_t sect_num,
int sect_count, const char *filename,
uint8_t *buffer, bool quiet)
{
int pnum, ret = 0;
ret = blk_pread(blk, sect_num << BDRV_SECTOR_BITS, buffer,
sect_coun... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockBackend *VAR_0, int64_t VAR_1,
int VAR_2, const char *VAR_3,
uint8_t *VAR_4, bool VAR_5)
{
int VAR_6, VAR_7 = 0;
VAR_7 = blk_pread(VAR_0, VAR_1 << BDRV_SECTOR_BITS, VAR_4,
VAR_2 << BDRV_SECTOR_BITS);
... | [
"static int FUNC_0(BlockBackend *VAR_0, int64_t VAR_1,\nint VAR_2, const char *VAR_3,\nuint8_t *VAR_4, bool VAR_5)\n{",
"int VAR_6, VAR_7 = 0;",
"VAR_7 = blk_pread(VAR_0, VAR_1 << BDRV_SECTOR_BITS, VAR_4,\nVAR_2 << BDRV_SECTOR_BITS);",
"if (VAR_7 < 0) {",
"error_report(\"Error while reading offset %\" PRId6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11,
13
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
39
],
[
41
]
] |
17,324 | static int migration_put_buffer(void *opaque, const uint8_t *buf,
int64_t pos, int size)
{
MigrationState *s = opaque;
int ret;
DPRINTF("putting %d bytes at %" PRId64 "\n", size, pos);
if (size <= 0) {
return size;
}
qemu_put_buffer(s->migrat... | false | qemu | 1964a397063967acc5ce71a2a24ed26e74824ee1 | static int migration_put_buffer(void *opaque, const uint8_t *buf,
int64_t pos, int size)
{
MigrationState *s = opaque;
int ret;
DPRINTF("putting %d bytes at %" PRId64 "\n", size, pos);
if (size <= 0) {
return size;
}
qemu_put_buffer(s->migrat... | {
"code": [],
"line_no": []
} | static int FUNC_0(void *VAR_0, const uint8_t *VAR_1,
int64_t VAR_2, int VAR_3)
{
MigrationState *s = VAR_0;
int VAR_4;
DPRINTF("putting %d bytes at %" PRId64 "\n", VAR_3, VAR_2);
if (VAR_3 <= 0) {
return VAR_3;
}
qemu_put_buffer(s->migration_... | [
"static int FUNC_0(void *VAR_0, const uint8_t *VAR_1,\nint64_t VAR_2, int VAR_3)\n{",
"MigrationState *s = VAR_0;",
"int VAR_4;",
"DPRINTF(\"putting %d bytes at %\" PRId64 \"\\n\", VAR_3, VAR_2);",
"if (VAR_3 <= 0) {",
"return VAR_3;",
"}",
"qemu_put_buffer(s->migration_file, VAR_1, VAR_3);",
"VAR_4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
]
] |
17,326 | void bdrv_delete(BlockDriverState *bs)
{
assert(!bs->peer);
/* remove from list, if necessary */
bdrv_make_anon(bs);
bdrv_close(bs);
if (bs->file != NULL) {
bdrv_delete(bs->file);
}
assert(bs != bs_snapshots);
g_free(bs);
}
| false | qemu | fa879d62eb51253d00b6920ce1d1d9d261370a49 | void bdrv_delete(BlockDriverState *bs)
{
assert(!bs->peer);
bdrv_make_anon(bs);
bdrv_close(bs);
if (bs->file != NULL) {
bdrv_delete(bs->file);
}
assert(bs != bs_snapshots);
g_free(bs);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(BlockDriverState *VAR_0)
{
assert(!VAR_0->peer);
bdrv_make_anon(VAR_0);
bdrv_close(VAR_0);
if (VAR_0->file != NULL) {
FUNC_0(VAR_0->file);
}
assert(VAR_0 != bs_snapshots);
g_free(VAR_0);
}
| [
"void FUNC_0(BlockDriverState *VAR_0)\n{",
"assert(!VAR_0->peer);",
"bdrv_make_anon(VAR_0);",
"bdrv_close(VAR_0);",
"if (VAR_0->file != NULL) {",
"FUNC_0(VAR_0->file);",
"}",
"assert(VAR_0 != bs_snapshots);",
"g_free(VAR_0);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
]
] |
17,327 | static av_always_inline void mc_chroma_unscaled(VP9Context *s, vp9_mc_func (*mc)[2],
uint8_t *dst_u, uint8_t *dst_v,
ptrdiff_t dst_stride,
const uint8_t *ref_u, ptrdiff_t sr... | true | FFmpeg | 68caef9d48c4f1540b1b3181ebe7062a3417c62a | static av_always_inline void mc_chroma_unscaled(VP9Context *s, vp9_mc_func (*mc)[2],
uint8_t *dst_u, uint8_t *dst_v,
ptrdiff_t dst_stride,
const uint8_t *ref_u, ptrdiff_t sr... | {
"code": [
" x + !!mx * 4 > w - bw || y + !!my * 4 > h - bh) {",
" x + !!mx * 4 > w - bw || y + !!my * 4 > h - bh) {"
],
"line_no": [
47,
47
]
} | static av_always_inline void FUNC_0(VP9Context *s, vp9_mc_func (*mc)[2],
uint8_t *dst_u, uint8_t *dst_v,
ptrdiff_t dst_stride,
const uint8_t *ref_u, ptrdiff_t src_stride_u,
... | [
"static av_always_inline void FUNC_0(VP9Context *s, vp9_mc_func (*mc)[2],\nuint8_t *dst_u, uint8_t *dst_v,\nptrdiff_t dst_stride,\nconst uint8_t *ref_u, ptrdiff_t src_stride_u,\nconst uint8_t *ref_v, ptrdiff_t src_stride_v,\nThreadFrame *ref_frame,\nptrdiff_t y, ptrdiff_t x, const VP56mv *mv,\nint bw, int bh, int w... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13,
15,
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
41
],
[
43
],
[
45,
47
],
[
49,
51,
53,
55,
57
],
[
59
],
[
61
... |
17,330 | static void m48t59_isa_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = m48t59_isa_realize;
dc->no_user = 1;
dc->reset = m48t59_reset_isa;
dc->props = m48t59_isa_properties;
}
| true | qemu | efec3dd631d94160288392721a5f9c39e50fb2bc | static void m48t59_isa_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
dc->realize = m48t59_isa_realize;
dc->no_user = 1;
dc->reset = m48t59_reset_isa;
dc->props = m48t59_isa_properties;
}
| {
"code": [
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;"... | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
dc->realize = m48t59_isa_realize;
dc->no_user = 1;
dc->reset = m48t59_reset_isa;
dc->props = m48t59_isa_properties;
}
| [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"dc->realize = m48t59_isa_realize;",
"dc->no_user = 1;",
"dc->reset = m48t59_reset_isa;",
"dc->props = m48t59_isa_properties;",
"}"
] | [
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
17,331 | static int svq3_decode_mb(SVQ3Context *svq3, unsigned int mb_type)
{
H264Context *h = &svq3->h;
int i, j, k, m, dir, mode;
int cbp = 0;
uint32_t vlc;
int8_t *top, *left;
MpegEncContext *const s = (MpegEncContext *) h;
const int mb_xy = h->mb_xy;
const int b_xy = 4*s->mb_x + 4*s... | true | FFmpeg | 45b7bd7c53b41bc5ff6fc2158831f2b1b1256113 | static int svq3_decode_mb(SVQ3Context *svq3, unsigned int mb_type)
{
H264Context *h = &svq3->h;
int i, j, k, m, dir, mode;
int cbp = 0;
uint32_t vlc;
int8_t *top, *left;
MpegEncContext *const s = (MpegEncContext *) h;
const int mb_xy = h->mb_xy;
const int b_xy = 4*s->mb_x + 4*s... | {
"code": [
" if ((h->intra16x16_pred_mode = ff_h264_check_intra_pred_mode(h, dir)) == -1){",
" h->chroma_pred_mode = ff_h264_check_intra_pred_mode(h, DC_PRED8x8);"
],
"line_no": [
357,
555
]
} | static int FUNC_0(SVQ3Context *VAR_0, unsigned int VAR_1)
{
H264Context *h = &VAR_0->h;
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;
int VAR_8 = 0;
uint32_t vlc;
int8_t *top, *left;
MpegEncContext *const s = (MpegEncContext *) h;
const int VAR_9 = h->VAR_9;
const int VAR_10 = ... | [
"static int FUNC_0(SVQ3Context *VAR_0, unsigned int VAR_1)\n{",
"H264Context *h = &VAR_0->h;",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;",
"int VAR_8 = 0;",
"uint32_t vlc;",
"int8_t *top, *left;",
"MpegEncContext *const s = (MpegEncContext *) h;",
"const int VAR_9 = h->VAR_9;",
"const int VAR_1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
... |
17,332 | static void kvm_cpu_fill_host(x86_def_t *x86_cpu_def)
{
#ifdef CONFIG_KVM
KVMState *s = kvm_state;
uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0;
assert(kvm_enabled());
x86_cpu_def->name = "host";
host_cpuid(0x0, 0, &eax, &ebx, &ecx, &edx);
x86_cpu_vendor_words2str(x86_cpu_def->vendor... | true | qemu | 787aaf5703a702094f395db6795e74230282cd62 | static void kvm_cpu_fill_host(x86_def_t *x86_cpu_def)
{
#ifdef CONFIG_KVM
KVMState *s = kvm_state;
uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0;
assert(kvm_enabled());
x86_cpu_def->name = "host";
host_cpuid(0x0, 0, &eax, &ebx, &ecx, &edx);
x86_cpu_vendor_words2str(x86_cpu_def->vendor... | {
"code": [],
"line_no": []
} | static void FUNC_0(x86_def_t *VAR_0)
{
#ifdef CONFIG_KVM
KVMState *s = kvm_state;
uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0;
assert(kvm_enabled());
VAR_0->name = "host";
host_cpuid(0x0, 0, &eax, &ebx, &ecx, &edx);
x86_cpu_vendor_words2str(VAR_0->vendor, ebx, edx, ecx);
host... | [
"static void FUNC_0(x86_def_t *VAR_0)\n{",
"#ifdef CONFIG_KVM\nKVMState *s = kvm_state;",
"uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0;",
"assert(kvm_enabled());",
"VAR_0->name = \"host\";",
"host_cpuid(0x0, 0, &eax, &ebx, &ecx, &edx);",
"x86_cpu_vendor_words2str(VAR_0->vendor, ebx, edx, ecx);",
"host... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
13
],
[
17
],
[
20
],
[
22
],
[
26
],
[
28
],
[
30
],
[
32
],
[
36
],
[
38,
40
],
[
42,
44
],
[
48
],
[
50,
52
],
[
54
],
[
56
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.