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 |
|---|---|---|---|---|---|---|---|---|---|---|
20,123 | int cmdutils_read_file(const char *filename, char **bufptr, size_t *size)
{
int ret;
FILE *f = fopen(filename, "rb");
if (!f) {
av_log(NULL, AV_LOG_ERROR, "Cannot read file '%s': %s\n", filename,
strerror(errno));
return AVERROR(errno);
}
fseek(f, 0, SEEK_EN... | false | FFmpeg | 38129c26c51b933d7db423f904ba0cd6a88ca1ed | int cmdutils_read_file(const char *filename, char **bufptr, size_t *size)
{
int ret;
FILE *f = fopen(filename, "rb");
if (!f) {
av_log(NULL, AV_LOG_ERROR, "Cannot read file '%s': %s\n", filename,
strerror(errno));
return AVERROR(errno);
}
fseek(f, 0, SEEK_EN... | {
"code": [],
"line_no": []
} | int FUNC_0(const char *VAR_0, char **VAR_1, size_t *VAR_2)
{
int VAR_3;
FILE *f = fopen(VAR_0, "rb");
if (!f) {
av_log(NULL, AV_LOG_ERROR, "Cannot read file '%s': %s\n", VAR_0,
strerror(errno));
return AVERROR(errno);
}
fseek(f, 0, SEEK_END);
*VAR_2 = f... | [
"int FUNC_0(const char *VAR_0, char **VAR_1, size_t *VAR_2)\n{",
"int VAR_3;",
"FILE *f = fopen(VAR_0, \"rb\");",
"if (!f) {",
"av_log(NULL, AV_LOG_ERROR, \"Cannot read file '%s': %s\\n\", VAR_0,\nstrerror(errno));",
"return AVERROR(errno);",
"}",
"fseek(f, 0, SEEK_END);",
"*VAR_2 = ftell(f);",
"f... | [
0,
0,
0,
0,
0,
0,
0,
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
],
... |
20,124 | static inline int ff_mpeg4_pred_dc(MpegEncContext * s, int n, int level, int *dir_ptr, int encoding)
{
int a, b, c, wrap, pred, scale, ret;
int16_t *dc_val;
/* find prediction */
if (n < 4) {
scale = s->y_dc_scale;
} else {
scale = s->c_dc_scale;
}
if(IS_3IV1)
... | false | FFmpeg | df8d98c4dd0853d92a16b1715d4e8abf19feabd8 | static inline int ff_mpeg4_pred_dc(MpegEncContext * s, int n, int level, int *dir_ptr, int encoding)
{
int a, b, c, wrap, pred, scale, ret;
int16_t *dc_val;
if (n < 4) {
scale = s->y_dc_scale;
} else {
scale = s->c_dc_scale;
}
if(IS_3IV1)
scale= 8;
... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2, int *VAR_3, int VAR_4)
{
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;
int16_t *dc_val;
if (VAR_1 < 4) {
VAR_10 = VAR_0->y_dc_scale;
} else {
VAR_10 = VAR_0->c_dc_scale;
}
if(IS_3IV1)... | [
"static inline int FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2, int *VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;",
"int16_t *dc_val;",
"if (VAR_1 < 4) {",
"VAR_10 = VAR_0->y_dc_scale;",
"} else {",
"VAR_10 = VAR_0->c_dc_scale;",
"}",
"if(IS_3IV1)\nVAR_10= 8... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
29
],
[
31
],
[
41
],
[
43
],
[
45
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
... |
20,125 | void arp_table_add(Slirp *slirp, uint32_t ip_addr, uint8_t ethaddr[ETH_ALEN])
{
const uint32_t broadcast_addr =
~slirp->vnetwork_mask.s_addr | slirp->vnetwork_addr.s_addr;
ArpTable *arptbl = &slirp->arp_table;
int i;
DEBUG_CALL("arp_table_add");
DEBUG_ARG("ip = 0x%x", ip_addr);
... | true | qemu | 1a89b60885ccc2abf7cc50275fcee70d0347425e | void arp_table_add(Slirp *slirp, uint32_t ip_addr, uint8_t ethaddr[ETH_ALEN])
{
const uint32_t broadcast_addr =
~slirp->vnetwork_mask.s_addr | slirp->vnetwork_addr.s_addr;
ArpTable *arptbl = &slirp->arp_table;
int i;
DEBUG_CALL("arp_table_add");
DEBUG_ARG("ip = 0x%x", ip_addr);
... | {
"code": [
" assert((ip_addr & htonl(~(0xf << 28))) != 0);"
],
"line_no": [
29
]
} | void FUNC_0(Slirp *VAR_0, uint32_t VAR_1, uint8_t VAR_2[ETH_ALEN])
{
const uint32_t VAR_3 =
~VAR_0->vnetwork_mask.s_addr | VAR_0->vnetwork_addr.s_addr;
ArpTable *arptbl = &VAR_0->arp_table;
int VAR_4;
DEBUG_CALL("FUNC_0");
DEBUG_ARG("ip = 0x%x", VAR_1);
DEBUG_ARGS((dfd, " hw ad... | [
"void FUNC_0(Slirp *VAR_0, uint32_t VAR_1, uint8_t VAR_2[ETH_ALEN])\n{",
"const uint32_t VAR_3 =\n~VAR_0->vnetwork_mask.s_addr | VAR_0->vnetwork_addr.s_addr;",
"ArpTable *arptbl = &VAR_0->arp_table;",
"int VAR_4;",
"DEBUG_CALL(\"FUNC_0\");",
"DEBUG_ARG(\"ip = 0x%x\", VAR_1);",
"DEBUG_ARGS((dfd, \" hw ad... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19,
21,
23
],
[
29
],
[
33
],
[
37
],
[
39
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
[
57
],
[
63
],
[... |
20,126 | static void encode_subband_c0run(SnowContext *s, SubBand *b, DWTELEM *src, DWTELEM *parent, int stride, int orientation){
const int w= b->width;
const int h= b->height;
int x, y;
if(1){
int run=0;
int runs[w*h];
int run_index=0;
for(y=0; y<h; y... | true | FFmpeg | 0ecca7a49f8e254c12a3a1de048d738bfbb614c6 | static void encode_subband_c0run(SnowContext *s, SubBand *b, DWTELEM *src, DWTELEM *parent, int stride, int orientation){
const int w= b->width;
const int h= b->height;
int x, y;
if(1){
int run=0;
int runs[w*h];
int run_index=0;
for(y=0; y<h; y... | {
"code": [
"static void encode_subband_c0run(SnowContext *s, SubBand *b, DWTELEM *src, DWTELEM *parent, int stride, int orientation){"
],
"line_no": [
1
]
} | static void FUNC_0(SnowContext *VAR_0, SubBand *VAR_1, DWTELEM *VAR_2, DWTELEM *VAR_3, int VAR_4, int VAR_5){
const int VAR_6= VAR_1->width;
const int VAR_7= VAR_1->height;
int VAR_8, VAR_9;
if(1){
int VAR_10=0;
int VAR_11[VAR_6*VAR_7];
int VAR_12=0;
... | [
"static void FUNC_0(SnowContext *VAR_0, SubBand *VAR_1, DWTELEM *VAR_2, DWTELEM *VAR_3, int VAR_4, int VAR_5){",
"const int VAR_6= VAR_1->width;",
"const int VAR_7= VAR_1->height;",
"int VAR_8, VAR_9;",
"if(1){",
"int VAR_10=0;",
"int VAR_11[VAR_6*VAR_7];",
"int VAR_12=0;",
"for(VAR_9=0; VAR_9<VAR_7... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
... |
20,127 | void do_fctiwz (void)
{
union {
double d;
uint64_t i;
} p;
/* XXX: higher bits are not supposed to be significant.
* to make tests easier, return the same as a real PowerPC 750 (aka G3)
*/
p.i = float64_to_int32_round_to_zero(FT0, &env->fp_status);
p.i |= 0... | true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | void do_fctiwz (void)
{
union {
double d;
uint64_t i;
} p;
p.i = float64_to_int32_round_to_zero(FT0, &env->fp_status);
p.i |= 0xFFF80000ULL << 32;
FT0 = p.d;
}
| {
"code": [],
"line_no": []
} | void FUNC_0 (void)
{
union {
double d;
uint64_t i;
} VAR_0;
VAR_0.i = float64_to_int32_round_to_zero(FT0, &env->fp_status);
VAR_0.i |= 0xFFF80000ULL << 32;
FT0 = VAR_0.d;
}
| [
"void FUNC_0 (void)\n{",
"union {",
"double d;",
"uint64_t i;",
"} VAR_0;",
"VAR_0.i = float64_to_int32_round_to_zero(FT0, &env->fp_status);",
"VAR_0.i |= 0xFFF80000ULL << 32;",
"FT0 = VAR_0.d;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
20,128 | static void bdrv_ioctl_bh_cb(void *opaque)
{
BdrvIoctlCompletionData *data = opaque;
bdrv_co_io_em_complete(data->co, -ENOTSUP);
qemu_bh_delete(data->bh);
}
| true | qemu | c8a9fd80719e63615dac12e3625223fb54aa8430 | static void bdrv_ioctl_bh_cb(void *opaque)
{
BdrvIoctlCompletionData *data = opaque;
bdrv_co_io_em_complete(data->co, -ENOTSUP);
qemu_bh_delete(data->bh);
}
| {
"code": [
"static void bdrv_ioctl_bh_cb(void *opaque)",
" BdrvIoctlCompletionData *data = opaque;",
" bdrv_co_io_em_complete(data->co, -ENOTSUP);",
" qemu_bh_delete(data->bh);"
],
"line_no": [
1,
5,
9,
11
]
} | static void FUNC_0(void *VAR_0)
{
BdrvIoctlCompletionData *data = VAR_0;
bdrv_co_io_em_complete(data->co, -ENOTSUP);
qemu_bh_delete(data->bh);
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"BdrvIoctlCompletionData *data = VAR_0;",
"bdrv_co_io_em_complete(data->co, -ENOTSUP);",
"qemu_bh_delete(data->bh);",
"}"
] | [
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
20,132 | static int tcp_write(URLContext *h, const uint8_t *buf, int size)
{
TCPContext *s = h->priv_data;
int ret, size1, fd_max, len;
fd_set wfds;
struct timeval tv;
size1 = size;
while (size > 0) {
if (url_interrupt_cb())
return AVERROR(EINTR);
fd_max = s->fd;
... | false | FFmpeg | d0eb91ad0451cdb6c062b2d4760bfa7f8bb4db6b | static int tcp_write(URLContext *h, const uint8_t *buf, int size)
{
TCPContext *s = h->priv_data;
int ret, size1, fd_max, len;
fd_set wfds;
struct timeval tv;
size1 = size;
while (size > 0) {
if (url_interrupt_cb())
return AVERROR(EINTR);
fd_max = s->fd;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(URLContext *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
TCPContext *s = VAR_0->priv_data;
int VAR_3, VAR_4, VAR_5, VAR_6;
fd_set wfds;
struct timeval VAR_7;
VAR_4 = VAR_2;
while (VAR_2 > 0) {
if (url_interrupt_cb())
return AVERROR(EINTR);
V... | [
"static int FUNC_0(URLContext *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"TCPContext *s = VAR_0->priv_data;",
"int VAR_3, VAR_4, VAR_5, VAR_6;",
"fd_set wfds;",
"struct timeval VAR_7;",
"VAR_4 = VAR_2;",
"while (VAR_2 > 0) {",
"if (url_interrupt_cb())\nreturn AVERROR(EINTR);",
"VAR_5 = s->fd;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43,
45
],
[... |
20,133 | static int hls_coding_unit(HEVCContext *s, int x0, int y0, int log2_cb_size)
{
int cb_size = 1 << log2_cb_size;
HEVCLocalContext *lc = &s->HEVClc;
int log2_min_cb_size = s->sps->log2_min_cb_size;
int length = cb_size >> log2_min_cb_size;
int min_cb_width = s->sps->min_cb... | false | FFmpeg | e22ebd04bcab7f86548794556c28ecca46d9c2ac | static int hls_coding_unit(HEVCContext *s, int x0, int y0, int log2_cb_size)
{
int cb_size = 1 << log2_cb_size;
HEVCLocalContext *lc = &s->HEVClc;
int log2_min_cb_size = s->sps->log2_min_cb_size;
int length = cb_size >> log2_min_cb_size;
int min_cb_width = s->sps->min_cb... | {
"code": [],
"line_no": []
} | static int FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)
{
int VAR_4 = 1 << VAR_3;
HEVCLocalContext *lc = &VAR_0->HEVClc;
int VAR_5 = VAR_0->sps->VAR_5;
int VAR_6 = VAR_4 >> VAR_5;
int VAR_7 = VAR_0->sps->VAR_7;
int VAR_8 = VAR_1 >> VAR_5;
... | [
"static int FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{",
"int VAR_4 = 1 << VAR_3;",
"HEVCLocalContext *lc = &VAR_0->HEVClc;",
"int VAR_5 = VAR_0->sps->VAR_5;",
"int VAR_6 = VAR_4 >> VAR_5;",
"int VAR_7 = VAR_0->sps->VAR_7;",
"int VAR_8 = VAR_1 >> VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
... |
20,134 | static int alloc_buffer(InputStream *ist, FrameBuffer **pbuf)
{
AVCodecContext *s = ist->st->codec;
FrameBuffer *buf = av_mallocz(sizeof(*buf));
int ret;
const int pixel_size = av_pix_fmt_descriptors[s->pix_fmt].comp[0].step_minus1+1;
int h_chroma_shift, v_chroma_shift;
int edge = 32; //... | false | FFmpeg | 3715d841a619f1cbc4776d9b00575dae6fb6534a | static int alloc_buffer(InputStream *ist, FrameBuffer **pbuf)
{
AVCodecContext *s = ist->st->codec;
FrameBuffer *buf = av_mallocz(sizeof(*buf));
int ret;
const int pixel_size = av_pix_fmt_descriptors[s->pix_fmt].comp[0].step_minus1+1;
int h_chroma_shift, v_chroma_shift;
int edge = 32;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(InputStream *VAR_0, FrameBuffer **VAR_1)
{
AVCodecContext *s = VAR_0->st->codec;
FrameBuffer *buf = av_mallocz(sizeof(*buf));
int VAR_2;
const int VAR_3 = av_pix_fmt_descriptors[s->pix_fmt].comp[0].step_minus1+1;
int VAR_4, VAR_5;
int VAR_6 = 32;
int VAR_7 = s->wi... | [
"static int FUNC_0(InputStream *VAR_0, FrameBuffer **VAR_1)\n{",
"AVCodecContext *s = VAR_0->st->codec;",
"FrameBuffer *buf = av_mallocz(sizeof(*buf));",
"int VAR_2;",
"const int VAR_3 = av_pix_fmt_descriptors[s->pix_fmt].comp[0].step_minus1+1;",
"int VAR_4, VAR_5;",
"int VAR_6 = 32;",
"int VAR_7 = 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,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
59
... |
20,135 | static av_cold int tqi_decode_init(AVCodecContext *avctx)
{
TqiContext *t = avctx->priv_data;
ff_blockdsp_init(&t->bdsp, avctx);
ff_bswapdsp_init(&t->bsdsp);
ff_idctdsp_init(&t->idsp, avctx);
ff_init_scantable_permutation(t->idsp.idct_permutation, FF_IDCT_PERM_NONE);
ff_init_scantable(t... | false | FFmpeg | dcc39ee10e82833ce24aa57926c00ffeb1948198 | static av_cold int tqi_decode_init(AVCodecContext *avctx)
{
TqiContext *t = avctx->priv_data;
ff_blockdsp_init(&t->bdsp, avctx);
ff_bswapdsp_init(&t->bsdsp);
ff_idctdsp_init(&t->idsp, avctx);
ff_init_scantable_permutation(t->idsp.idct_permutation, FF_IDCT_PERM_NONE);
ff_init_scantable(t... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
TqiContext *t = avctx->priv_data;
ff_blockdsp_init(&t->bdsp, avctx);
ff_bswapdsp_init(&t->bsdsp);
ff_idctdsp_init(&t->idsp, avctx);
ff_init_scantable_permutation(t->idsp.idct_permutation, FF_IDCT_PERM_NONE);
ff_init_scantable(t->idsp.id... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"TqiContext *t = avctx->priv_data;",
"ff_blockdsp_init(&t->bdsp, avctx);",
"ff_bswapdsp_init(&t->bsdsp);",
"ff_idctdsp_init(&t->idsp, avctx);",
"ff_init_scantable_permutation(t->idsp.idct_permutation, FF_IDCT_PERM_NONE);",
"ff_init_scantable(t->idsp... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
20,137 | static int pred_weight_table(H264Context *h)
{
int list, i;
int luma_def, chroma_def;
h->use_weight = 0;
h->use_weight_chroma = 0;
h->luma_log2_weight_denom = get_ue_golomb(&h->gb);
if (h->sps.chroma_format_idc)
h->chroma_log2_weight_denom = get_ue_golomb(&h->g... | false | FFmpeg | 4baba6c813b7a1f27370e20fb1a87b05fcb39208 | static int pred_weight_table(H264Context *h)
{
int list, i;
int luma_def, chroma_def;
h->use_weight = 0;
h->use_weight_chroma = 0;
h->luma_log2_weight_denom = get_ue_golomb(&h->gb);
if (h->sps.chroma_format_idc)
h->chroma_log2_weight_denom = get_ue_golomb(&h->g... | {
"code": [],
"line_no": []
} | static int FUNC_0(H264Context *VAR_0)
{
int VAR_1, VAR_2;
int VAR_3, VAR_4;
VAR_0->use_weight = 0;
VAR_0->use_weight_chroma = 0;
VAR_0->luma_log2_weight_denom = get_ue_golomb(&VAR_0->gb);
if (VAR_0->sps.chroma_format_idc)
VAR_0->chroma_log2_weight_denom = get_u... | [
"static int FUNC_0(H264Context *VAR_0)\n{",
"int VAR_1, VAR_2;",
"int VAR_3, VAR_4;",
"VAR_0->use_weight = 0;",
"VAR_0->use_weight_chroma = 0;",
"VAR_0->luma_log2_weight_denom = get_ue_golomb(&VAR_0->gb);",
"if (VAR_0->sps.chroma_format_idc)\nVAR_0->chroma_log2_weight_denom = get_ue_gol... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
49... |
20,139 | static void rtl8139_cplus_transmit(RTL8139State *s)
{
int txcount = 0;
while (rtl8139_cplus_transmit_one(s))
{
++txcount;
}
/* Mark transfer completed */
if (!txcount)
{
DPRINTF("C+ mode : transmitter queue stalled, current TxDesc = %d\n",
s->currCP... | false | qemu | c7c35916692fe010fef25ac338443d3fe40be225 | static void rtl8139_cplus_transmit(RTL8139State *s)
{
int txcount = 0;
while (rtl8139_cplus_transmit_one(s))
{
++txcount;
}
if (!txcount)
{
DPRINTF("C+ mode : transmitter queue stalled, current TxDesc = %d\n",
s->currCPlusTxDesc);
}
else
... | {
"code": [],
"line_no": []
} | static void FUNC_0(RTL8139State *VAR_0)
{
int VAR_1 = 0;
while (rtl8139_cplus_transmit_one(VAR_0))
{
++VAR_1;
}
if (!VAR_1)
{
DPRINTF("C+ mode : transmitter queue stalled, current TxDesc = %d\n",
VAR_0->currCPlusTxDesc);
}
else
{
... | [
"static void FUNC_0(RTL8139State *VAR_0)\n{",
"int VAR_1 = 0;",
"while (rtl8139_cplus_transmit_one(VAR_0))\n{",
"++VAR_1;",
"}",
"if (!VAR_1)\n{",
"DPRINTF(\"C+ mode : transmitter queue stalled, current TxDesc = %d\\n\",\nVAR_0->currCPlusTxDesc);",
"}",
"else\n{",
"VAR_0->IntrStatus |= TxOK;",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
15
],
[
21,
23
],
[
25,
27
],
[
29
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
20,140 | static int local_utimensat(FsContext *s, V9fsPath *fs_path,
const struct timespec *buf)
{
char buffer[PATH_MAX];
char *path = fs_path->data;
return qemu_utimens(rpath(s, path, buffer), buf);
}
| false | qemu | 4fa4ce7107c6ec432f185307158c5df91ce54308 | static int local_utimensat(FsContext *s, V9fsPath *fs_path,
const struct timespec *buf)
{
char buffer[PATH_MAX];
char *path = fs_path->data;
return qemu_utimens(rpath(s, path, buffer), buf);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,
const struct timespec *VAR_2)
{
char VAR_3[PATH_MAX];
char *VAR_4 = VAR_1->data;
return qemu_utimens(rpath(VAR_0, VAR_4, VAR_3), VAR_2);
}
| [
"static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,\nconst struct timespec *VAR_2)\n{",
"char VAR_3[PATH_MAX];",
"char *VAR_4 = VAR_1->data;",
"return qemu_utimens(rpath(VAR_0, VAR_4, VAR_3), VAR_2);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
]
] |
20,141 | int cpu_breakpoint_insert(CPUState *env, target_ulong pc, int flags,
CPUBreakpoint **breakpoint)
{
#if defined(TARGET_HAS_ICE)
CPUBreakpoint *bp;
bp = qemu_malloc(sizeof(*bp));
bp->pc = pc;
bp->flags = flags;
/* keep all GDB-injected breakpoints in front */
... | false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | int cpu_breakpoint_insert(CPUState *env, target_ulong pc, int flags,
CPUBreakpoint **breakpoint)
{
#if defined(TARGET_HAS_ICE)
CPUBreakpoint *bp;
bp = qemu_malloc(sizeof(*bp));
bp->pc = pc;
bp->flags = flags;
if (flags & BP_GDB)
TAILQ_INSERT_HEA... | {
"code": [],
"line_no": []
} | int FUNC_0(CPUState *VAR_0, target_ulong VAR_1, int VAR_2,
CPUBreakpoint **VAR_3)
{
#if defined(TARGET_HAS_ICE)
CPUBreakpoint *bp;
bp = qemu_malloc(sizeof(*bp));
bp->VAR_1 = VAR_1;
bp->VAR_2 = VAR_2;
if (VAR_2 & BP_GDB)
TAILQ_INSERT_HEAD(&VAR_0-... | [
"int FUNC_0(CPUState *VAR_0, target_ulong VAR_1, int VAR_2,\nCPUBreakpoint **VAR_3)\n{",
"#if defined(TARGET_HAS_ICE)\nCPUBreakpoint *bp;",
"bp = qemu_malloc(sizeof(*bp));",
"bp->VAR_1 = VAR_1;",
"bp->VAR_2 = VAR_2;",
"if (VAR_2 & BP_GDB)\nTAILQ_INSERT_HEAD(&VAR_0->breakpoints, bp, entry);",
"else\nTAIL... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
13
],
[
17
],
[
19
],
[
25,
27
],
[
29,
31
],
[
35
],
[
39,
41
],
[
43
],
[
45,
47
],
[
49,
51
]
] |
20,142 | static void id3v2_read_internal(AVIOContext *pb, AVDictionary **metadata,
AVFormatContext *s, const char *magic,
ID3v2ExtraMeta **extra_meta)
{
int len, ret;
uint8_t buf[ID3v2_HEADER_SIZE];
int found_header;
int64_t off;
do {
... | false | FFmpeg | 5331773cc33ba26b9e26ace643d926219e46a17b | static void id3v2_read_internal(AVIOContext *pb, AVDictionary **metadata,
AVFormatContext *s, const char *magic,
ID3v2ExtraMeta **extra_meta)
{
int len, ret;
uint8_t buf[ID3v2_HEADER_SIZE];
int found_header;
int64_t off;
do {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVIOContext *VAR_0, AVDictionary **VAR_1,
AVFormatContext *VAR_2, const char *VAR_3,
ID3v2ExtraMeta **VAR_4)
{
int VAR_5, VAR_6;
uint8_t buf[ID3v2_HEADER_SIZE];
int VAR_7;
int64_t off;
do {
... | [
"static void FUNC_0(AVIOContext *VAR_0, AVDictionary **VAR_1,\nAVFormatContext *VAR_2, const char *VAR_3,\nID3v2ExtraMeta **VAR_4)\n{",
"int VAR_5, VAR_6;",
"uint8_t buf[ID3v2_HEADER_SIZE];",
"int VAR_7;",
"int64_t off;",
"do {",
"off = avio_tell(VAR_0);",
"VAR_6 = avio_read(VAR_0, buf, ID3v2_HEADER_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,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43,
45,
47
],
[
49
],
[
51
],
[... |
20,143 | static always_inline void gen_fbcond (DisasContext *ctx,
void* func,
int ra, int32_t disp16)
{
int l1, l2;
TCGv tmp;
l1 = gen_new_label();
l2 = gen_new_label();
if (ra != 31) {
tmp = tcg_temp_new(TCG_TYPE_... | false | qemu | a7812ae412311d7d47f8aa85656faadac9d64b56 | static always_inline void gen_fbcond (DisasContext *ctx,
void* func,
int ra, int32_t disp16)
{
int l1, l2;
TCGv tmp;
l1 = gen_new_label();
l2 = gen_new_label();
if (ra != 31) {
tmp = tcg_temp_new(TCG_TYPE_... | {
"code": [],
"line_no": []
} | static always_inline void FUNC_0 (DisasContext *ctx,
void* func,
int ra, int32_t disp16)
{
int VAR_0, VAR_1;
TCGv tmp;
VAR_0 = gen_new_label();
VAR_1 = gen_new_label();
if (ra != 31) {
tmp = tcg_temp_new(T... | [
"static always_inline void FUNC_0 (DisasContext *ctx,\nvoid* func,\nint ra, int32_t disp16)\n{",
"int VAR_0, VAR_1;",
"TCGv tmp;",
"VAR_0 = gen_new_label();",
"VAR_1 = gen_new_label();",
"if (ra != 31) {",
"tmp = tcg_temp_new(TCG_TYPE_I64);",
"tcg_gen_helper_1_1(func, tmp, cpu_fir[ra]);",
"} else {... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
20,145 | static int64_t coroutine_fn iscsi_co_get_block_status(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum,
BlockDriverState **file)
{
IscsiLun *i... | false | qemu | e1123a3b40a1a9a625a29c8ed4debb7e206ea690 | static int64_t coroutine_fn iscsi_co_get_block_status(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum,
BlockDriverState **file)
{
IscsiLun *i... | {
"code": [],
"line_no": []
} | static int64_t VAR_0 iscsi_co_get_block_status(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum,
BlockDriverState **file)
{
IscsiLun *iscsilun... | [
"static int64_t VAR_0 iscsi_co_get_block_status(BlockDriverState *bs,\nint64_t sector_num,\nint nb_sectors, int *pnum,\nBlockDriverState **file)\n{",
"IscsiLun *iscsilun = bs->opaque;",
"struct scsi_get_lba_status *lbas = NULL;",
"struct scsi_lba_status_descriptor *lbasd = NULL;",
"struct IscsiTask iTask;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
39
],
[
41
],
[
43
],
[
49
],
[
51
],
[
53
],
[
57,
59,... |
20,146 | static void vnc_tight_stop(VncState *vs)
{
// switch back to normal output/zlib buffers
vs->tight = vs->output;
vs->output = vs->tight_tmp;
}
| false | qemu | 245f7b51c0ea04fb2224b1127430a096c91aee70 | static void vnc_tight_stop(VncState *vs)
{
vs->tight = vs->output;
vs->output = vs->tight_tmp;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(VncState *VAR_0)
{
VAR_0->tight = VAR_0->output;
VAR_0->output = VAR_0->tight_tmp;
}
| [
"static void FUNC_0(VncState *VAR_0)\n{",
"VAR_0->tight = VAR_0->output;",
"VAR_0->output = VAR_0->tight_tmp;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
11
]
] |
20,147 | void aio_set_fd_handler(AioContext *ctx,
int fd,
bool is_external,
IOHandler *io_read,
IOHandler *io_write,
AioPollFn *io_poll,
void *opaque)
{
abort();
}
| false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | void aio_set_fd_handler(AioContext *ctx,
int fd,
bool is_external,
IOHandler *io_read,
IOHandler *io_write,
AioPollFn *io_poll,
void *opaque)
{
abort();
}
| {
"code": [],
"line_no": []
} | void FUNC_0(AioContext *VAR_0,
int VAR_1,
bool VAR_2,
IOHandler *VAR_3,
IOHandler *VAR_4,
AioPollFn *VAR_5,
void *VAR_6)
{
abort();
}
| [
"void FUNC_0(AioContext *VAR_0,\nint VAR_1,\nbool VAR_2,\nIOHandler *VAR_3,\nIOHandler *VAR_4,\nAioPollFn *VAR_5,\nvoid *VAR_6)\n{",
"abort();",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13,
15
],
[
17
],
[
19
]
] |
20,149 | int xtensa_get_physical_addr(CPUXtensaState *env, bool update_tlb,
uint32_t vaddr, int is_write, int mmu_idx,
uint32_t *paddr, uint32_t *page_size, unsigned *access)
{
if (xtensa_option_enabled(env->config, XTENSA_OPTION_MMU)) {
return get_physical_addr_mmu(env, update_tlb,
... | false | qemu | 4e41d2f5830a76d3fe92b3d3b18cc9f2ee927770 | int xtensa_get_physical_addr(CPUXtensaState *env, bool update_tlb,
uint32_t vaddr, int is_write, int mmu_idx,
uint32_t *paddr, uint32_t *page_size, unsigned *access)
{
if (xtensa_option_enabled(env->config, XTENSA_OPTION_MMU)) {
return get_physical_addr_mmu(env, update_tlb,
... | {
"code": [],
"line_no": []
} | int FUNC_0(CPUXtensaState *VAR_0, bool VAR_1,
uint32_t VAR_2, int VAR_3, int VAR_4,
uint32_t *VAR_5, uint32_t *VAR_6, unsigned *VAR_7)
{
if (xtensa_option_enabled(VAR_0->config, XTENSA_OPTION_MMU)) {
return get_physical_addr_mmu(VAR_0, VAR_1,
VAR_2, VAR_3, VAR_4, VAR_5,... | [
"int FUNC_0(CPUXtensaState *VAR_0, bool VAR_1,\nuint32_t VAR_2, int VAR_3, int VAR_4,\nuint32_t *VAR_5, uint32_t *VAR_6, unsigned *VAR_7)\n{",
"if (xtensa_option_enabled(VAR_0->config, XTENSA_OPTION_MMU)) {",
"return get_physical_addr_mmu(VAR_0, VAR_1,\nVAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, true);",
"} el... | [
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
]
] |
20,150 | static int usb_msd_handle_control(USBDevice *dev, int request, int value,
int index, int length, uint8_t *data)
{
MSDState *s = (MSDState *)dev;
int ret;
ret = usb_desc_handle_control(dev, request, value, index, length, data);
if (ret >= 0) {
return ret... | false | qemu | a980a065fb5e86d6dec337e6cb6ff432f1a143c9 | static int usb_msd_handle_control(USBDevice *dev, int request, int value,
int index, int length, uint8_t *data)
{
MSDState *s = (MSDState *)dev;
int ret;
ret = usb_desc_handle_control(dev, request, value, index, length, data);
if (ret >= 0) {
return ret... | {
"code": [],
"line_no": []
} | static int FUNC_0(USBDevice *VAR_0, int VAR_1, int VAR_2,
int VAR_3, int VAR_4, uint8_t *VAR_5)
{
MSDState *s = (MSDState *)VAR_0;
int VAR_6;
VAR_6 = usb_desc_handle_control(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5);
if (VAR_6 >= 0) {
return VAR_6;
... | [
"static int FUNC_0(USBDevice *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, uint8_t *VAR_5)\n{",
"MSDState *s = (MSDState *)VAR_0;",
"int VAR_6;",
"VAR_6 = usb_desc_handle_control(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5);",
"if (VAR_6 >= 0) {",
"return VAR_6;",
"}",
"VAR_6 = 0;",
"switch (VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27,
29,
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
20,152 | static int tftp_send_oack(struct tftp_session *spt,
const char *keys[], uint32_t values[], int nb,
struct tftp_t *recv_tp)
{
struct sockaddr_in saddr, daddr;
struct mbuf *m;
struct tftp_t *tp;
int i, n = 0;
m = m_get(spt->slirp);
i... | false | qemu | 5379229a2708df3a1506113315214c3ce5325859 | static int tftp_send_oack(struct tftp_session *spt,
const char *keys[], uint32_t values[], int nb,
struct tftp_t *recv_tp)
{
struct sockaddr_in saddr, daddr;
struct mbuf *m;
struct tftp_t *tp;
int i, n = 0;
m = m_get(spt->slirp);
i... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct tftp_session *VAR_0,
const char *VAR_1[], uint32_t VAR_2[], int VAR_3,
struct tftp_t *VAR_4)
{
struct sockaddr_in VAR_5, VAR_6;
struct mbuf *VAR_7;
struct tftp_t *VAR_8;
int VAR_9, VAR_10 = 0;
VAR_7 = m_get(VAR_0-... | [
"static int FUNC_0(struct tftp_session *VAR_0,\nconst char *VAR_1[], uint32_t VAR_2[], int VAR_3,\nstruct tftp_t *VAR_4)\n{",
"struct sockaddr_in VAR_5, VAR_6;",
"struct mbuf *VAR_7;",
"struct tftp_t *VAR_8;",
"int VAR_9, VAR_10 = 0;",
"VAR_7 = m_get(VAR_0->slirp);",
"if (!VAR_7)\nreturn -1;",
"memset... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23,
25
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45,
47
],
[
49,
51
],
[
53
],
[
57
],
[... |
20,153 | void check_audio_video_inputs(int *has_video_ptr, int *has_audio_ptr)
{
int has_video, has_audio, i, j;
AVFormatContext *ic;
has_video = 0;
has_audio = 0;
for(j=0;j<nb_input_files;j++) {
ic = input_files[j];
for(i=0;i<ic->nb_streams;i++) {
AVCodecContext *enc =... | false | FFmpeg | c04643a2c24564aed96a5b0760de8bf02eb305c6 | void check_audio_video_inputs(int *has_video_ptr, int *has_audio_ptr)
{
int has_video, has_audio, i, j;
AVFormatContext *ic;
has_video = 0;
has_audio = 0;
for(j=0;j<nb_input_files;j++) {
ic = input_files[j];
for(i=0;i<ic->nb_streams;i++) {
AVCodecContext *enc =... | {
"code": [],
"line_no": []
} | void FUNC_0(int *VAR_0, int *VAR_1)
{
int VAR_2, VAR_3, VAR_4, VAR_5;
AVFormatContext *ic;
VAR_2 = 0;
VAR_3 = 0;
for(VAR_5=0;VAR_5<nb_input_files;VAR_5++) {
ic = input_files[VAR_5];
for(VAR_4=0;VAR_4<ic->nb_streams;VAR_4++) {
AVCodecContext *enc = &ic->streams[... | [
"void FUNC_0(int *VAR_0, int *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4, VAR_5;",
"AVFormatContext *ic;",
"VAR_2 = 0;",
"VAR_3 = 0;",
"for(VAR_5=0;VAR_5<nb_input_files;VAR_5++) {",
"ic = input_files[VAR_5];",
"for(VAR_4=0;VAR_4<ic->nb_streams;VAR_4++) {",
"AVCodecContext *enc = &ic->streams[VAR_4]->codec... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31,
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
... |
20,154 | static int handle_alloc(BlockDriverState *bs, uint64_t guest_offset,
uint64_t *host_offset, uint64_t *bytes, QCowL2Meta **m)
{
BDRVQcow2State *s = bs->opaque;
int l2_index;
uint64_t *l2_table;
uint64_t entry;
unsigned int nb_clusters;
int ret;
uint64_t alloc_cluster_offset;
... | false | qemu | b6d36def6d9e9fd187327182d0abafc9b7085d8f | static int handle_alloc(BlockDriverState *bs, uint64_t guest_offset,
uint64_t *host_offset, uint64_t *bytes, QCowL2Meta **m)
{
BDRVQcow2State *s = bs->opaque;
int l2_index;
uint64_t *l2_table;
uint64_t entry;
unsigned int nb_clusters;
int ret;
uint64_t alloc_cluster_offset;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,
uint64_t *VAR_2, uint64_t *VAR_3, QCowL2Meta **VAR_4)
{
BDRVQcow2State *s = VAR_0->opaque;
int VAR_5;
uint64_t *l2_table;
uint64_t entry;
unsigned int VAR_6;
int VAR_7;
uint64_t alloc_cluster_offset;
trace_qcow2... | [
"static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nuint64_t *VAR_2, uint64_t *VAR_3, QCowL2Meta **VAR_4)\n{",
"BDRVQcow2State *s = VAR_0->opaque;",
"int VAR_5;",
"uint64_t *l2_table;",
"uint64_t entry;",
"unsigned int VAR_6;",
"int VAR_7;",
"uint64_t alloc_cluster_offset;",
"trace_qcow2_ha... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25,
27
],
[
29
],
[
41,
43
],
[
47
],
[
49
],
[
55
],
[
57
],
[
59
],
[
61
],
[
65
],
[... |
20,155 | static void net_init_tap_one(const NetdevTapOptions *tap, NetClientState *peer,
const char *model, const char *name,
const char *ifname, const char *script,
const char *downscript, const char *vhostfdname,
... | false | qemu | 3a2d44f6dd1d6cc1e5a5ebfa736a72e035c41d1b | static void net_init_tap_one(const NetdevTapOptions *tap, NetClientState *peer,
const char *model, const char *name,
const char *ifname, const char *script,
const char *downscript, const char *vhostfdname,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(const NetdevTapOptions *VAR_0, NetClientState *VAR_1,
const char *VAR_2, const char *VAR_3,
const char *VAR_4, const char *VAR_5,
const char *VAR_6, const char *VAR_7,
int VAR_8, in... | [
"static void FUNC_0(const NetdevTapOptions *VAR_0, NetClientState *VAR_1,\nconst char *VAR_2, const char *VAR_3,\nconst char *VAR_4, const char *VAR_5,\nconst char *VAR_6, const char *VAR_7,\nint VAR_8, int VAR_9, Error **VAR_10)\n{",
"Error *err = NULL;",
"TAPState *s = net_tap_fd_init(VAR_1, VAR_2, VAR_3, 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
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47,
49
],
[
53
],
[... |
20,156 | static int virtio_balloon_init_pci(PCIDevice *pci_dev)
{
VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev);
VirtIODevice *vdev;
vdev = virtio_balloon_init(&pci_dev->qdev);
virtio_init_pci(proxy, vdev,
PCI_VENDOR_ID_REDHAT_QUMRANET,
PCI_D... | false | qemu | e75ccf2c033fb0503d6cb7ddd0fd1dfa0aa4fc16 | static int virtio_balloon_init_pci(PCIDevice *pci_dev)
{
VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev);
VirtIODevice *vdev;
vdev = virtio_balloon_init(&pci_dev->qdev);
virtio_init_pci(proxy, vdev,
PCI_VENDOR_ID_REDHAT_QUMRANET,
PCI_D... | {
"code": [],
"line_no": []
} | static int FUNC_0(PCIDevice *VAR_0)
{
VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, VAR_0, VAR_0);
VirtIODevice *vdev;
vdev = virtio_balloon_init(&VAR_0->qdev);
virtio_init_pci(proxy, vdev,
PCI_VENDOR_ID_REDHAT_QUMRANET,
PCI_DEVICE_ID_VIRTIO_BALLOON,
... | [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, VAR_0, VAR_0);",
"VirtIODevice *vdev;",
"vdev = virtio_balloon_init(&VAR_0->qdev);",
"virtio_init_pci(proxy, vdev,\nPCI_VENDOR_ID_REDHAT_QUMRANET,\nPCI_DEVICE_ID_VIRTIO_BALLOON,\nPCI_CLASS_MEMORY_RAM,\n0x00);",
"r... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15,
17,
19,
21
],
[
23
],
[
25
]
] |
20,157 | static void bochs_refresh_limits(BlockDriverState *bs, Error **errp)
{
bs->request_alignment = BDRV_SECTOR_SIZE; /* No sub-sector I/O supported */
}
| false | qemu | a5b8dd2ce83208cd7d6eb4562339ecf5aae13574 | static void bochs_refresh_limits(BlockDriverState *bs, Error **errp)
{
bs->request_alignment = BDRV_SECTOR_SIZE;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1)
{
VAR_0->request_alignment = BDRV_SECTOR_SIZE;
}
| [
"static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1)\n{",
"VAR_0->request_alignment = BDRV_SECTOR_SIZE;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
20,159 | static void spr_write_sdr1 (void *opaque, int sprn)
{
DisasContext *ctx = opaque;
gen_op_store_sdr1();
RET_STOP(ctx);
}
| false | qemu | e1833e1f96456fd8fc17463246fe0b2050e68efb | static void spr_write_sdr1 (void *opaque, int sprn)
{
DisasContext *ctx = opaque;
gen_op_store_sdr1();
RET_STOP(ctx);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0 (void *VAR_0, int VAR_1)
{
DisasContext *ctx = VAR_0;
gen_op_store_sdr1();
RET_STOP(ctx);
}
| [
"static void FUNC_0 (void *VAR_0, int VAR_1)\n{",
"DisasContext *ctx = VAR_0;",
"gen_op_store_sdr1();",
"RET_STOP(ctx);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
20,160 | static int uart_can_receive(void *opaque)
{
UartState *s = (UartState *)opaque;
return RX_FIFO_SIZE - s->rx_count;
}
| false | qemu | d0ac820fe4152ea3a57fc3fa9f732cc9524017a4 | static int uart_can_receive(void *opaque)
{
UartState *s = (UartState *)opaque;
return RX_FIFO_SIZE - s->rx_count;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(void *VAR_0)
{
UartState *s = (UartState *)VAR_0;
return RX_FIFO_SIZE - s->rx_count;
}
| [
"static int FUNC_0(void *VAR_0)\n{",
"UartState *s = (UartState *)VAR_0;",
"return RX_FIFO_SIZE - s->rx_count;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
20,161 | vmdk_co_preadv(BlockDriverState *bs, uint64_t offset, uint64_t bytes,
QEMUIOVector *qiov, int flags)
{
BDRVVmdkState *s = bs->opaque;
int ret;
uint64_t n_bytes, offset_in_cluster;
VmdkExtent *extent = NULL;
QEMUIOVector local_qiov;
uint64_t cluster_offset;
uint64_t by... | false | qemu | a03ef88f77af045a2eb9629b5ce774a3fb973c5e | vmdk_co_preadv(BlockDriverState *bs, uint64_t offset, uint64_t bytes,
QEMUIOVector *qiov, int flags)
{
BDRVVmdkState *s = bs->opaque;
int ret;
uint64_t n_bytes, offset_in_cluster;
VmdkExtent *extent = NULL;
QEMUIOVector local_qiov;
uint64_t cluster_offset;
uint64_t by... | {
"code": [],
"line_no": []
} | FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t VAR_2,
QEMUIOVector *VAR_3, int VAR_4)
{
BDRVVmdkState *s = VAR_0->opaque;
int VAR_5;
uint64_t n_bytes, offset_in_cluster;
VmdkExtent *extent = NULL;
QEMUIOVector local_qiov;
uint64_t cluster_offset;
uint64_t by... | [
"FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t VAR_2,\nQEMUIOVector *VAR_3, int VAR_4)\n{",
"BDRVVmdkState *s = VAR_0->opaque;",
"int VAR_5;",
"uint64_t n_bytes, offset_in_cluster;",
"VmdkExtent *extent = NULL;",
"QEMUIOVector local_qiov;",
"uint64_t cluster_offset;",
"uint64_t bytes_done =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
49,... |
20,162 | void cpu_ppc_store_hdecr (CPUPPCState *env, uint32_t value)
{
PowerPCCPU *cpu = ppc_env_get_cpu(env);
_cpu_ppc_store_hdecr(cpu, cpu_ppc_load_hdecr(env), value, 0);
}
| false | qemu | e81a982aa5398269a2cc344091ffa4930bdd242f | void cpu_ppc_store_hdecr (CPUPPCState *env, uint32_t value)
{
PowerPCCPU *cpu = ppc_env_get_cpu(env);
_cpu_ppc_store_hdecr(cpu, cpu_ppc_load_hdecr(env), value, 0);
}
| {
"code": [],
"line_no": []
} | void FUNC_0 (CPUPPCState *VAR_0, uint32_t VAR_1)
{
PowerPCCPU *cpu = ppc_env_get_cpu(VAR_0);
_cpu_ppc_store_hdecr(cpu, cpu_ppc_load_hdecr(VAR_0), VAR_1, 0);
}
| [
"void FUNC_0 (CPUPPCState *VAR_0, uint32_t VAR_1)\n{",
"PowerPCCPU *cpu = ppc_env_get_cpu(VAR_0);",
"_cpu_ppc_store_hdecr(cpu, cpu_ppc_load_hdecr(VAR_0), VAR_1, 0);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
20,163 | static uint32_t syborg_virtio_readl(void *opaque, target_phys_addr_t offset)
{
SyborgVirtIOProxy *s = opaque;
VirtIODevice *vdev = s->vdev;
uint32_t ret;
DPRINTF("readl 0x%x\n", (int)offset);
if (offset >= SYBORG_VIRTIO_CONFIG) {
return virtio_config_readl(vdev, offset - SYBORG_VIRT... | false | qemu | 8172539d21a03e982aa7f139ddc1607dc1422045 | static uint32_t syborg_virtio_readl(void *opaque, target_phys_addr_t offset)
{
SyborgVirtIOProxy *s = opaque;
VirtIODevice *vdev = s->vdev;
uint32_t ret;
DPRINTF("readl 0x%x\n", (int)offset);
if (offset >= SYBORG_VIRTIO_CONFIG) {
return virtio_config_readl(vdev, offset - SYBORG_VIRT... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset)
{
SyborgVirtIOProxy *s = opaque;
VirtIODevice *vdev = s->vdev;
uint32_t ret;
DPRINTF("readl 0x%x\n", (int)offset);
if (offset >= SYBORG_VIRTIO_CONFIG) {
return virtio_config_readl(vdev, offset - SYBORG_VIRTIO_CONFIG);
... | [
"static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset)\n{",
"SyborgVirtIOProxy *s = opaque;",
"VirtIODevice *vdev = s->vdev;",
"uint32_t ret;",
"DPRINTF(\"readl 0x%x\\n\", (int)offset);",
"if (offset >= SYBORG_VIRTIO_CONFIG) {",
"return virtio_config_readl(vdev, offset - SYBORG_VIRTIO_CONFIG);... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
... |
20,164 | static bool vring_notify(VirtIODevice *vdev, VirtQueue *vq)
{
uint16_t old, new;
bool v;
/* Always notify when queue is empty (when feature acknowledge) */
if (((vdev->guest_features & (1 << VIRTIO_F_NOTIFY_ON_EMPTY)) &&
!vq->inuse && vring_avail_idx(vq) == vq->last_avail_idx)) {
... | true | qemu | a281ebc11a6917fbc27e1a93bb5772cd14e241fc | static bool vring_notify(VirtIODevice *vdev, VirtQueue *vq)
{
uint16_t old, new;
bool v;
if (((vdev->guest_features & (1 << VIRTIO_F_NOTIFY_ON_EMPTY)) &&
!vq->inuse && vring_avail_idx(vq) == vq->last_avail_idx)) {
return true;
}
if (!(vdev->guest_features & (1 << V... | {
"code": [],
"line_no": []
} | static bool FUNC_0(VirtIODevice *vdev, VirtQueue *vq)
{
uint16_t old, new;
bool v;
if (((vdev->guest_features & (1 << VIRTIO_F_NOTIFY_ON_EMPTY)) &&
!vq->inuse && vring_avail_idx(vq) == vq->last_avail_idx)) {
return true;
}
if (!(vdev->guest_features & (1 << VIRTIO_... | [
"static bool FUNC_0(VirtIODevice *vdev, VirtQueue *vq)\n{",
"uint16_t old, new;",
"bool v;",
"if (((vdev->guest_features & (1 << VIRTIO_F_NOTIFY_ON_EMPTY)) &&\n!vq->inuse && vring_avail_idx(vq) == vq->last_avail_idx)) {",
"return true;",
"}",
"if (!(vdev->guest_features & (1 << VIRTIO_RING_F_EVENT_IDX))... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13,
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
20,165 | static void guess_mv(ERContext *s)
{
uint8_t *fixed = s->er_temp_buffer;
#define MV_FROZEN 3
#define MV_CHANGED 2
#define MV_UNCHANGED 1
const int mb_stride = s->mb_stride;
const int mb_width = s->mb_width;
const int mb_height = s->mb_height;
int i, depth, num_avail;
int mb_x, mb... | true | FFmpeg | 7cb66ebc0be48489785f7166c9d15eac594b0763 | static void guess_mv(ERContext *s)
{
uint8_t *fixed = s->er_temp_buffer;
#define MV_FROZEN 3
#define MV_CHANGED 2
#define MV_UNCHANGED 1
const int mb_stride = s->mb_stride;
const int mb_width = s->mb_width;
const int mb_height = s->mb_height;
int i, depth, num_avail;
int mb_x, mb... | {
"code": [
" assert(!IS_INTRA(s->cur_pic.mb_type[mb_xy]));",
" assert(s->last_pic && s->last_pic.f->data[0]);"
],
"line_no": [
157,
159
]
} | static void FUNC_0(ERContext *VAR_0)
{
uint8_t *fixed = VAR_0->er_temp_buffer;
#define MV_FROZEN 3
#define MV_CHANGED 2
#define MV_UNCHANGED 1
const int VAR_1 = VAR_0->VAR_1;
const int VAR_2 = VAR_0->VAR_2;
const int VAR_3 = VAR_0->VAR_3;
int VAR_4, VAR_5, VAR_6;
int VAR_14, VAR_... | [
"static void FUNC_0(ERContext *VAR_0)\n{",
"uint8_t *fixed = VAR_0->er_temp_buffer;",
"#define MV_FROZEN 3\n#define MV_CHANGED 2\n#define MV_UNCHANGED 1\nconst int VAR_1 = VAR_0->VAR_1;",
"const int VAR_2 = VAR_0->VAR_2;",
"const int VAR_3 = VAR_0->VAR_3;",
"int VAR_4, VAR_5, VAR_6;",
"int VAR_14,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... | [
[
1,
3
],
[
5
],
[
7,
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
45,
47
],
[
51
],
[
53,
55
... |
20,166 | void qtest_qmp_discard_response(QTestState *s, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
qtest_qmpv_discard_response(s, fmt, ap);
va_end(ap);
}
| true | qemu | 0c460dac03e7919079525d8e24ef2c4c607c219d | void qtest_qmp_discard_response(QTestState *s, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
qtest_qmpv_discard_response(s, fmt, ap);
va_end(ap);
}
| {
"code": [
" qtest_qmpv_discard_response(s, fmt, ap);"
],
"line_no": [
11
]
} | void FUNC_0(QTestState *VAR_0, const char *VAR_1, ...)
{
va_list ap;
va_start(ap, VAR_1);
qtest_qmpv_discard_response(VAR_0, VAR_1, ap);
va_end(ap);
}
| [
"void FUNC_0(QTestState *VAR_0, const char *VAR_1, ...)\n{",
"va_list ap;",
"va_start(ap, VAR_1);",
"qtest_qmpv_discard_response(VAR_0, VAR_1, ap);",
"va_end(ap);",
"}"
] | [
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
20,167 | static MTPData *usb_mtp_get_partial_object(MTPState *s, MTPControl *c,
MTPObject *o)
{
MTPData *d = usb_mtp_data_alloc(c);
off_t offset;
trace_usb_mtp_op_get_partial_object(s->dev.addr, o->handle, o->path,
c->argv[1],... | true | qemu | 2dc7fdf33d28940255f171b8ea4b692d9d5b7a7d | static MTPData *usb_mtp_get_partial_object(MTPState *s, MTPControl *c,
MTPObject *o)
{
MTPData *d = usb_mtp_data_alloc(c);
off_t offset;
trace_usb_mtp_op_get_partial_object(s->dev.addr, o->handle, o->path,
c->argv[1],... | {
"code": [],
"line_no": []
} | static MTPData *FUNC_0(MTPState *s, MTPControl *c,
MTPObject *o)
{
MTPData *d = usb_mtp_data_alloc(c);
off_t offset;
trace_usb_mtp_op_get_partial_object(s->dev.addr, o->handle, o->path,
c->argv[1], c->argv[2]);
... | [
"static MTPData *FUNC_0(MTPState *s, MTPControl *c,\nMTPObject *o)\n{",
"MTPData *d = usb_mtp_data_alloc(c);",
"off_t offset;",
"trace_usb_mtp_op_get_partial_object(s->dev.addr, o->handle, o->path,\nc->argv[1], c->argv[2]);",
"d->fd = open(o->path, O_RDONLY);",
"if (d->fd == -1) {",
"return NULL;",
"}... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13,
15
],
[
19
],
[
21
],
[
24
],
[
26
],
[
30
],
[
32
],
[
34
],
[
36
],
[
38
],
[
42
],
[
44
],
[
46
],
[
48
],
[
52
],
[
54
... |
20,168 | static void set_int16(Object *obj, Visitor *v, void *opaque,
const char *name, Error **errp)
{
DeviceState *dev = DEVICE(obj);
Property *prop = opaque;
int16_t *ptr = qdev_get_prop_ptr(dev, prop);
Error *local_err = NULL;
int64_t value;
if (dev->state != DEV_STATE... | true | qemu | 6350b0904615cc0531cc3059ea34db5c009c88aa | static void set_int16(Object *obj, Visitor *v, void *opaque,
const char *name, Error **errp)
{
DeviceState *dev = DEVICE(obj);
Property *prop = opaque;
int16_t *ptr = qdev_get_prop_ptr(dev, prop);
Error *local_err = NULL;
int64_t value;
if (dev->state != DEV_STATE... | {
"code": [
" if (value > prop->info->min && value <= prop->info->max) {",
" if (value > prop->info->min && value <= prop->info->max) {",
" if (value > prop->info->min && value <= prop->info->max) {"
],
"line_no": [
39,
39,
39
]
} | static void FUNC_0(Object *VAR_0, Visitor *VAR_1, void *VAR_2,
const char *VAR_3, Error **VAR_4)
{
DeviceState *dev = DEVICE(VAR_0);
Property *prop = VAR_2;
int16_t *ptr = qdev_get_prop_ptr(dev, prop);
Error *local_err = NULL;
int64_t value;
if (dev->state != DEV_... | [
"static void FUNC_0(Object *VAR_0, Visitor *VAR_1, void *VAR_2,\nconst char *VAR_3, Error **VAR_4)\n{",
"DeviceState *dev = DEVICE(VAR_0);",
"Property *prop = VAR_2;",
"int16_t *ptr = qdev_get_prop_ptr(dev, prop);",
"Error *local_err = NULL;",
"int64_t value;",
"if (dev->state != DEV_STATE_CREATED) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47,... |
20,169 | static av_cold int nvenc_encode_init(AVCodecContext *avctx)
{
NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS encode_session_params = { 0 };
NV_ENC_PRESET_CONFIG preset_config = { 0 };
CUcontext cu_context_curr;
CUresult cu_res;
GUID encoder_preset = NV_ENC_PRESET_HQ_GUID;
GUID codec;
NVENCSTAT... | false | FFmpeg | 671bdd4b0977c6cc77bdc55883ac841a7c4af802 | static av_cold int nvenc_encode_init(AVCodecContext *avctx)
{
NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS encode_session_params = { 0 };
NV_ENC_PRESET_CONFIG preset_config = { 0 };
CUcontext cu_context_curr;
CUresult cu_res;
GUID encoder_preset = NV_ENC_PRESET_HQ_GUID;
GUID codec;
NVENCSTAT... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS encode_session_params = { 0 };
NV_ENC_PRESET_CONFIG preset_config = { 0 };
CUcontext cu_context_curr;
CUresult cu_res;
GUID encoder_preset = NV_ENC_PRESET_HQ_GUID;
GUID codec;
NVENCSTATUS nv_statu... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS encode_session_params = { 0 };",
"NV_ENC_PRESET_CONFIG preset_config = { 0 };",
"CUcontext cu_context_curr;",
"CUresult cu_res;",
"GUID encoder_preset = NV_ENC_PRESET_HQ_GUID;",
"GUID codec;",
"NVENCSTATUS nv_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39,
41
],
[
45
],
[
47
],
[... |
20,170 | size_t ram_control_save_page(QEMUFile *f, ram_addr_t block_offset,
ram_addr_t offset, size_t size, int *bytes_sent)
{
if (f->ops->save_page) {
int ret = f->ops->save_page(f, f->opaque, block_offset,
offset, size, bytes_sent);
if (r... | true | qemu | de7b685c9e1cf606e37e7116e4c4f03a6ae2d14f | size_t ram_control_save_page(QEMUFile *f, ram_addr_t block_offset,
ram_addr_t offset, size_t size, int *bytes_sent)
{
if (f->ops->save_page) {
int ret = f->ops->save_page(f, f->opaque, block_offset,
offset, size, bytes_sent);
if (r... | {
"code": [
" if (*bytes_sent > 0) {"
],
"line_no": [
17
]
} | size_t FUNC_0(QEMUFile *f, ram_addr_t block_offset,
ram_addr_t offset, size_t size, int *bytes_sent)
{
if (f->ops->save_page) {
int VAR_0 = f->ops->save_page(f, f->opaque, block_offset,
offset, size, bytes_sent);
if (VAR_0 != RAM_S... | [
"size_t FUNC_0(QEMUFile *f, ram_addr_t block_offset,\nram_addr_t offset, size_t size, int *bytes_sent)\n{",
"if (f->ops->save_page) {",
"int VAR_0 = f->ops->save_page(f, f->opaque, block_offset,\noffset, size, bytes_sent);",
"if (VAR_0 != RAM_SAVE_CONTROL_DELAYED) {",
"if (*bytes_sent > 0) {",
"qemu_updat... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
]
] |
20,171 | static int gif_read_packet(AVFormatContext * s1,
AVPacket * pkt)
{
GifState *s = s1->priv_data;
int ret;
ret = gif_parse_next_image(s);
if (ret < 0)
return ret;
/* XXX: avoid copying */
if (av_new_packet(pkt, s->screen_width * s->screen_height * 3)... | true | FFmpeg | 0b54f3c0878a3acaa9142e4f24942e762d97e350 | static int gif_read_packet(AVFormatContext * s1,
AVPacket * pkt)
{
GifState *s = s1->priv_data;
int ret;
ret = gif_parse_next_image(s);
if (ret < 0)
return ret;
if (av_new_packet(pkt, s->screen_width * s->screen_height * 3)) {
return AVER... | {
"code": [
" return 0;",
" return 0;",
" return 0;",
" return 0;",
" GifState *s = s1->priv_data;",
" return 0;",
"static int gif_read_packet(AVFormatContext * s1,",
" AVPacket * pkt)",
" GifState *s = s1->priv_data;",
" int re... | static int FUNC_0(AVFormatContext * VAR_0,
AVPacket * VAR_1)
{
GifState *s = VAR_0->priv_data;
int VAR_2;
VAR_2 = gif_parse_next_image(s);
if (VAR_2 < 0)
return VAR_2;
if (av_new_packet(VAR_1, s->screen_width * s->screen_height * 3)) {
re... | [
"static int FUNC_0(AVFormatContext * VAR_0,\nAVPacket * VAR_1)\n{",
"GifState *s = VAR_0->priv_data;",
"int VAR_2;",
"VAR_2 = gif_parse_next_image(s);",
"if (VAR_2 < 0)\nreturn VAR_2;",
"if (av_new_packet(VAR_1, s->screen_width * s->screen_height * 3)) {",
"return AVERROR(EIO);",
"}",
"VAR_1->stream... | [
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
20,172 | static int decode_residuals(FLACContext *s, int32_t *decoded, int pred_order)
{
int i, tmp, partition, method_type, rice_order;
int rice_bits, rice_esc;
int samples;
method_type = get_bits(&s->gb, 2);
if (method_type > 1) {
av_log(s->avctx, AV_LOG_ERROR, "illegal residual coding method %d\n"... | true | FFmpeg | 8ca9a68f1905ff871690be38348d62a25aef2a8f | static int decode_residuals(FLACContext *s, int32_t *decoded, int pred_order)
{
int i, tmp, partition, method_type, rice_order;
int rice_bits, rice_esc;
int samples;
method_type = get_bits(&s->gb, 2);
if (method_type > 1) {
av_log(s->avctx, AV_LOG_ERROR, "illegal residual coding method %d\n"... | {
"code": [],
"line_no": []
} | static int FUNC_0(FLACContext *VAR_0, int32_t *VAR_1, int VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;
int VAR_8, VAR_9;
int VAR_10;
VAR_6 = get_bits(&VAR_0->gb, 2);
if (VAR_6 > 1) {
av_log(VAR_0->avctx, AV_LOG_ERROR, "illegal residual coding method %d\n",
VAR_6);
VAR_7... | [
"static int FUNC_0(FLACContext *VAR_0, int32_t *VAR_1, int VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;",
"int VAR_8, VAR_9;",
"int VAR_10;",
"VAR_6 = get_bits(&VAR_0->gb, 2);",
"if (VAR_6 > 1) {",
"av_log(VAR_0->avctx, AV_LOG_ERROR, \"illegal residual coding method %d\\n\",\nVAR_6);",
"VAR_7 =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8,
9
],
[
10
],
[
11
],
[
12
],
[
13,
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],... |
20,173 | static XICSState *xics_system_init(int nr_servers, int nr_irqs)
{
XICSState *icp = NULL;
if (kvm_enabled()) {
QemuOpts *machine_opts = qemu_get_machine_opts();
bool irqchip_allowed = qemu_opt_get_bool(machine_opts,
"kernel_irqchip", true);
... | true | qemu | 446f16a6906e9d05aa9ce0dde727d4f731a89298 | static XICSState *xics_system_init(int nr_servers, int nr_irqs)
{
XICSState *icp = NULL;
if (kvm_enabled()) {
QemuOpts *machine_opts = qemu_get_machine_opts();
bool irqchip_allowed = qemu_opt_get_bool(machine_opts,
"kernel_irqchip", true);
... | {
"code": [
" QemuOpts *machine_opts = qemu_get_machine_opts();",
" bool irqchip_allowed = qemu_opt_get_bool(machine_opts,",
" \"kernel_irqchip\", true);",
" bool irqchip_required = qemu_opt_get_bool(machine_opts,",
" ... | static XICSState *FUNC_0(int nr_servers, int nr_irqs)
{
XICSState *icp = NULL;
if (kvm_enabled()) {
QemuOpts *machine_opts = qemu_get_machine_opts();
bool irqchip_allowed = qemu_opt_get_bool(machine_opts,
"kernel_irqchip", true);
b... | [
"static XICSState *FUNC_0(int nr_servers, int nr_irqs)\n{",
"XICSState *icp = NULL;",
"if (kvm_enabled()) {",
"QemuOpts *machine_opts = qemu_get_machine_opts();",
"bool irqchip_allowed = qemu_opt_get_bool(machine_opts,\n\"kernel_irqchip\", true);",
"bool irqchip_required = qemu_opt_get_bool(machine_opts,\... | [
1,
0,
0,
1,
1,
1,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13,
15
],
[
17,
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
51
],
... |
20,175 | m48t59_t *m48t59_init_isa(uint32_t io_base, uint16_t size, int type)
{
M48t59ISAState *d;
ISADevice *dev;
m48t59_t *s;
dev = isa_create("m48t59_isa");
qdev_prop_set_uint32(&dev->qdev, "type", type);
qdev_prop_set_uint32(&dev->qdev, "size", size);
qdev_prop_set_uint32(&dev->qdev, "i... | true | qemu | e23a1b33b53d25510320b26d9f154e19c6c99725 | m48t59_t *m48t59_init_isa(uint32_t io_base, uint16_t size, int type)
{
M48t59ISAState *d;
ISADevice *dev;
m48t59_t *s;
dev = isa_create("m48t59_isa");
qdev_prop_set_uint32(&dev->qdev, "type", type);
qdev_prop_set_uint32(&dev->qdev, "size", size);
qdev_prop_set_uint32(&dev->qdev, "i... | {
"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": [
21,
21,... | m48t59_t *FUNC_0(uint32_t io_base, uint16_t size, int type)
{
M48t59ISAState *d;
ISADevice *dev;
m48t59_t *s;
dev = isa_create("m48t59_isa");
qdev_prop_set_uint32(&dev->qdev, "type", type);
qdev_prop_set_uint32(&dev->qdev, "size", size);
qdev_prop_set_uint32(&dev->qdev, "io_base", ... | [
"m48t59_t *FUNC_0(uint32_t io_base, uint16_t size, int type)\n{",
"M48t59ISAState *d;",
"ISADevice *dev;",
"m48t59_t *s;",
"dev = isa_create(\"m48t59_isa\");",
"qdev_prop_set_uint32(&dev->qdev, \"type\", type);",
"qdev_prop_set_uint32(&dev->qdev, \"size\", size);",
"qdev_prop_set_uint32(&dev->qdev, \"... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
]
] |
20,176 | static void close_decoder(QSVContext *q)
{
QSVFrame *cur;
if (q->session)
MFXVideoDECODE_Close(q->session);
while (q->async_fifo && av_fifo_size(q->async_fifo)) {
QSVFrame *out_frame;
mfxSyncPoint *sync;
av_fifo_generic_read(q->async_fifo, &out_frame, sizeof(out... | true | FFmpeg | b4054100f675b395204f1a0471fba0b06fe08e9f | static void close_decoder(QSVContext *q)
{
QSVFrame *cur;
if (q->session)
MFXVideoDECODE_Close(q->session);
while (q->async_fifo && av_fifo_size(q->async_fifo)) {
QSVFrame *out_frame;
mfxSyncPoint *sync;
av_fifo_generic_read(q->async_fifo, &out_frame, sizeof(out... | {
"code": [
" while (q->async_fifo && av_fifo_size(q->async_fifo)) {",
" QSVFrame *out_frame;",
" mfxSyncPoint *sync;",
" av_fifo_generic_read(q->async_fifo, &out_frame, sizeof(out_frame), NULL);",
" av_fifo_generic_read(q->async_fifo, &sync, sizeof(sync), ... | static void FUNC_0(QSVContext *VAR_0)
{
QSVFrame *cur;
if (VAR_0->session)
MFXVideoDECODE_Close(VAR_0->session);
while (VAR_0->async_fifo && av_fifo_size(VAR_0->async_fifo)) {
QSVFrame *out_frame;
mfxSyncPoint *sync;
av_fifo_generic_read(VAR_0->async_fifo, &out_... | [
"static void FUNC_0(QSVContext *VAR_0)\n{",
"QSVFrame *cur;",
"if (VAR_0->session)\nMFXVideoDECODE_Close(VAR_0->session);",
"while (VAR_0->async_fifo && av_fifo_size(VAR_0->async_fifo)) {",
"QSVFrame *out_frame;",
"mfxSyncPoint *sync;",
"av_fifo_generic_read(VAR_0->async_fifo, &out_frame, sizeof(out_fra... | [
0,
0,
0,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
... |
20,177 | static inline void RENAME(uyvytoyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
unsigned int width, unsigned int height,
int lumStride, int chromStride, int srcStride)
{
unsigned y;
const unsigned chromWidth= width>>1;
for(y=0; y<height; y+=2)
{
#ifdef HAVE_MMX
asm volatile(
... | true | FFmpeg | 7f526efd17973ec6d2204f7a47b6923e2be31363 | static inline void RENAME(uyvytoyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
unsigned int width, unsigned int height,
int lumStride, int chromStride, int srcStride)
{
unsigned y;
const unsigned chromWidth= width>>1;
for(y=0; y<height; y+=2)
{
#ifdef HAVE_MMX
asm volatile(
... | {
"code": [
"\tunsigned int width, unsigned int height,",
"\tunsigned int width, unsigned int height,",
"\tunsigned int width, unsigned int height,",
"\tunsigned int width, unsigned int height,",
"\tunsigned int width, unsigned int height,",
"\tunsigned int width, unsigned int height,",
"\... | static inline void FUNC_0(uyvytoyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
unsigned int width, unsigned int height,
int lumStride, int chromStride, int srcStride)
{
unsigned VAR_0;
const unsigned VAR_1= width>>1;
for(VAR_0=0; VAR_0<height; VAR_0+=2)
{
#ifdef HAVE_MMX
asm vol... | [
"static inline void FUNC_0(uyvytoyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,\nunsigned int width, unsigned int height,\nint lumStride, int chromStride, int srcStride)\n{",
"unsigned VAR_0;",
"const unsigned VAR_1= width>>1;",
"for(VAR_0=0; VAR_0<height; VAR_0+=2)",
"{",
"#ifdef ... | [
1,
1,
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
55,
59,
61,
63,
65,
67,
69,
71,
73,... |
20,178 | static inline int ape_decode_value_3860(APEContext *ctx, GetBitContext *gb,
APERice *rice)
{
unsigned int x, overflow;
overflow = get_unary(gb, 1, get_bits_left(gb));
if (ctx->fileversion > 3880) {
while (overflow >= 16) {
overflow -= 16... | false | FFmpeg | 60ab4480423769ac3db487aba5232b187036c7ea | static inline int ape_decode_value_3860(APEContext *ctx, GetBitContext *gb,
APERice *rice)
{
unsigned int x, overflow;
overflow = get_unary(gb, 1, get_bits_left(gb));
if (ctx->fileversion > 3880) {
while (overflow >= 16) {
overflow -= 16... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(APEContext *VAR_0, GetBitContext *VAR_1,
APERice *VAR_2)
{
unsigned int VAR_3, VAR_4;
VAR_4 = get_unary(VAR_1, 1, get_bits_left(VAR_1));
if (VAR_0->fileversion > 3880) {
while (VAR_4 >= 16) {
VAR_4 -= 16;
... | [
"static inline int FUNC_0(APEContext *VAR_0, GetBitContext *VAR_1,\nAPERice *VAR_2)\n{",
"unsigned int VAR_3, VAR_4;",
"VAR_4 = get_unary(VAR_1, 1, get_bits_left(VAR_1));",
"if (VAR_0->fileversion > 3880) {",
"while (VAR_4 >= 16) {",
"VAR_4 -= 16;",
"VAR_2->k += 4;",
"}",
"}",
"if (!VAR_2->k)\nVA... | [
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
],
[
23
],
[
25
],
[
29,
31
],
[
33,
35
],
[
39
],
[
41,
43
],
[
45,
47
],
[
53,
55
],
[
57,
59
],
... |
20,180 | int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb)
{
MpegEncContext *s = &ctx->m;
unsigned startcode, v;
int ret;
int vol = 0;
/* search next start code */
align_get_bits(gb);
if (s->codec_tag == AV_RL32("WV1F") && show_bits(gb, 24) == 0x575630) {
... | true | FFmpeg | efeb47fd5d5cbf980e52a6d5e741c3c74b94b5e2 | int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb)
{
MpegEncContext *s = &ctx->m;
unsigned startcode, v;
int ret;
int vol = 0;
align_get_bits(gb);
if (s->codec_tag == AV_RL32("WV1F") && show_bits(gb, 24) == 0x575630) {
skip_bits(gb, 24);
... | {
"code": [],
"line_no": []
} | int FUNC_0(Mpeg4DecContext *VAR_0, GetBitContext *VAR_1)
{
MpegEncContext *s = &VAR_0->m;
unsigned VAR_2, VAR_3;
int VAR_4;
int VAR_5 = 0;
align_get_bits(VAR_1);
if (s->codec_tag == AV_RL32("WV1F") && show_bits(VAR_1, 24) == 0x575630) {
skip_bits(VAR_1, 24);
if... | [
"int FUNC_0(Mpeg4DecContext *VAR_0, GetBitContext *VAR_1)\n{",
"MpegEncContext *s = &VAR_0->m;",
"unsigned VAR_2, VAR_3;",
"int VAR_4;",
"int VAR_5 = 0;",
"align_get_bits(VAR_1);",
"if (s->codec_tag == AV_RL32(\"WV1F\") && show_bits(VAR_1, 24) == 0x575630) {",
"skip_bits(VAR_1, 24);",
"if (get_bits(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
21
],
[
23
],
[
25,
27
],
[
32
],
[
34
],
[
36
],
[
38,
40
],
[
42
],
[
44
],
[
46
],
[
48
],
[
55
],
[
57
... |
20,182 | static int asf_read_single_payload(AVFormatContext *s, AVPacket *pkt,
ASFPacket *asf_pkt)
{
ASFContext *asf = s->priv_data;
AVIOContext *pb = s->pb;
int64_t offset;
uint64_t size;
unsigned char *p;
int ret;
if (!asf_pkt->data_size) {
asf_pk... | true | FFmpeg | 763c572801a3db1cc7a2f07a52fee9d2e35ec95a | static int asf_read_single_payload(AVFormatContext *s, AVPacket *pkt,
ASFPacket *asf_pkt)
{
ASFContext *asf = s->priv_data;
AVIOContext *pb = s->pb;
int64_t offset;
uint64_t size;
unsigned char *p;
int ret;
if (!asf_pkt->data_size) {
asf_pk... | {
"code": [
" int ret;",
" if (asf_pkt->data_size <= 0)",
" if ((ret = av_new_packet(&asf_pkt->avpkt, asf_pkt->data_size)) < 0)",
" int ret;",
" if (asf_pkt->data_size <= 0)",
" if ((ret = av_new_packet(&asf_pkt->avpkt, asf_pkt->data_size)) < 0)"
],
"line_... | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1,
ASFPacket *VAR_2)
{
ASFContext *asf = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
int64_t offset;
uint64_t size;
unsigned char *VAR_3;
int VAR_4;
if (!VAR_2->data_size) {
VAR_2->... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1,\nASFPacket *VAR_2)\n{",
"ASFContext *asf = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"int64_t offset;",
"uint64_t size;",
"unsigned char *VAR_3;",
"int VAR_4;",
"if (!VAR_2->data_size) {",
"VAR_2->data_size = VAR_2->size_left = a... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
49,
51
],
[... |
20,185 | static int ide_qdev_init(DeviceState *qdev, DeviceInfo *base)
{
IDEDevice *dev = DO_UPCAST(IDEDevice, qdev, qdev);
IDEDeviceInfo *info = DO_UPCAST(IDEDeviceInfo, qdev, base);
IDEBus *bus = DO_UPCAST(IDEBus, qbus, qdev->parent_bus);
if (!dev->conf.bs) {
fprintf(stderr, "%s: no drive speci... | true | qemu | f597627ff5eb683501d65cf169f467bb4e894626 | static int ide_qdev_init(DeviceState *qdev, DeviceInfo *base)
{
IDEDevice *dev = DO_UPCAST(IDEDevice, qdev, qdev);
IDEDeviceInfo *info = DO_UPCAST(IDEDeviceInfo, qdev, base);
IDEBus *bus = DO_UPCAST(IDEBus, qbus, qdev->parent_bus);
if (!dev->conf.bs) {
fprintf(stderr, "%s: no drive speci... | {
"code": [
" fprintf(stderr, \"%s: no drive specified\\n\", qdev->info->name);",
" fprintf(stderr, \"ide: tried to assign master twice\\n\");",
" fprintf(stderr, \"ide: tried to assign slave twice\\n\");"
],
"line_no": [
15,
33,
47
]
} | static int FUNC_0(DeviceState *VAR_0, DeviceInfo *VAR_1)
{
IDEDevice *dev = DO_UPCAST(IDEDevice, VAR_0, VAR_0);
IDEDeviceInfo *info = DO_UPCAST(IDEDeviceInfo, VAR_0, VAR_1);
IDEBus *bus = DO_UPCAST(IDEBus, qbus, VAR_0->parent_bus);
if (!dev->conf.bs) {
fprintf(stderr, "%s: no drive speci... | [
"static int FUNC_0(DeviceState *VAR_0, DeviceInfo *VAR_1)\n{",
"IDEDevice *dev = DO_UPCAST(IDEDevice, VAR_0, VAR_0);",
"IDEDeviceInfo *info = DO_UPCAST(IDEDeviceInfo, VAR_0, VAR_1);",
"IDEBus *bus = DO_UPCAST(IDEBus, qbus, VAR_0->parent_bus);",
"if (!dev->conf.bs) {",
"fprintf(stderr, \"%s: no drive speci... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
... |
20,186 | int net_init_vhost_user(const NetClientOptions *opts, const char *name,
NetClientState *peer, Error **errp)
{
int queues;
const NetdevVhostUserOptions *vhost_user_opts;
CharDriverState *chr;
assert(opts->type == NET_CLIENT_OPTIONS_KIND_VHOST_USER);
vhost_user_opts = ... | true | qemu | fff4e48ed54cc39e5942921df91300646ad37707 | int net_init_vhost_user(const NetClientOptions *opts, const char *name,
NetClientState *peer, Error **errp)
{
int queues;
const NetdevVhostUserOptions *vhost_user_opts;
CharDriverState *chr;
assert(opts->type == NET_CLIENT_OPTIONS_KIND_VHOST_USER);
vhost_user_opts = ... | {
"code": [
" if (queues < 1) {",
" \"vhost-user number of queues must be bigger than zero\");"
],
"line_no": [
45,
49
]
} | int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,
NetClientState *VAR_2, Error **VAR_3)
{
int VAR_4;
const NetdevVhostUserOptions *VAR_5;
CharDriverState *chr;
assert(VAR_0->type == NET_CLIENT_OPTIONS_KIND_VHOST_USER);
VAR_5 = VAR_0->u.vhost_user;
c... | [
"int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,\nNetClientState *VAR_2, Error **VAR_3)\n{",
"int VAR_4;",
"const NetdevVhostUserOptions *VAR_5;",
"CharDriverState *chr;",
"assert(VAR_0->type == NET_CLIENT_OPTIONS_KIND_VHOST_USER);",
"VAR_5 = VAR_0->u.vhost_user;",
"chr = net_vhost_parse_ch... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
33,
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47,
49
],
[
51
],
[
53
],
[... |
20,187 | static int ds1338_send(I2CSlave *i2c, uint8_t data)
{
DS1338State *s = FROM_I2C_SLAVE(DS1338State, i2c);
if (s->addr_byte) {
s->ptr = data;
s->addr_byte = 0;
return 0;
}
s->nvram[s->ptr - 8] = data;
if (data < 8) {
qemu_get_timedate(&s->now, s->offset);
... | true | qemu | ba4906a9b64e165a958e12f6208ca834dc7a36dc | static int ds1338_send(I2CSlave *i2c, uint8_t data)
{
DS1338State *s = FROM_I2C_SLAVE(DS1338State, i2c);
if (s->addr_byte) {
s->ptr = data;
s->addr_byte = 0;
return 0;
}
s->nvram[s->ptr - 8] = data;
if (data < 8) {
qemu_get_timedate(&s->now, s->offset);
... | {
"code": [
" s->ptr = (s->ptr + 1) & 0xff;",
" s->ptr = data;",
" s->nvram[s->ptr - 8] = data;",
" if (data < 8) {",
" switch(data) {",
" s->ptr = (s->ptr + 1) & 0xff;"
],
"line_no": [
99,
9,
17,
19,
23,
99
]
} | static int FUNC_0(I2CSlave *VAR_0, uint8_t VAR_1)
{
DS1338State *s = FROM_I2C_SLAVE(DS1338State, VAR_0);
if (s->addr_byte) {
s->ptr = VAR_1;
s->addr_byte = 0;
return 0;
}
s->nvram[s->ptr - 8] = VAR_1;
if (VAR_1 < 8) {
qemu_get_timedate(&s->now, s->offset);
... | [
"static int FUNC_0(I2CSlave *VAR_0, uint8_t VAR_1)\n{",
"DS1338State *s = FROM_I2C_SLAVE(DS1338State, VAR_0);",
"if (s->addr_byte) {",
"s->ptr = VAR_1;",
"s->addr_byte = 0;",
"return 0;",
"}",
"s->nvram[s->ptr - 8] = VAR_1;",
"if (VAR_1 < 8) {",
"qemu_get_timedate(&s->now, s->offset);",
"switch(... | [
0,
0,
0,
1,
0,
0,
0,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[... |
20,188 | static inline int direct_search(MpegEncContext * s,
int mb_x, int mb_y)
{
int P[6][2];
const int mot_stride = s->mb_width + 2;
const int mot_xy = (mb_y + 1)*mot_stride + mb_x + 1;
int dmin, dmin2;
int motion_fx, motion_fy, motion_bx, motion_by, motion_bx0, moti... | false | FFmpeg | 0d21a84605bad4e75dacb8196e5859902ed36f01 | static inline int direct_search(MpegEncContext * s,
int mb_x, int mb_y)
{
int P[6][2];
const int mot_stride = s->mb_width + 2;
const int mot_xy = (mb_y + 1)*mot_stride + mb_x + 1;
int dmin, dmin2;
int motion_fx, motion_fy, motion_bx, motion_by, motion_bx0, moti... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(MpegEncContext * VAR_0,
int VAR_1, int VAR_2)
{
int VAR_3[6][2];
const int VAR_4 = VAR_0->mb_width + 2;
const int VAR_5 = (VAR_2 + 1)*VAR_4 + VAR_1 + 1;
int VAR_6, VAR_7;
int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;
int VAR_14... | [
"static inline int FUNC_0(MpegEncContext * VAR_0,\nint VAR_1, int VAR_2)\n{",
"int VAR_3[6][2];",
"const int VAR_4 = VAR_0->mb_width + 2;",
"const int VAR_5 = (VAR_2 + 1)*VAR_4 + VAR_1 + 1;",
"int VAR_6, VAR_7;",
"int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;",
"int VAR_14, VAR_15;",
"const int VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
43
],
[
45
],
[... |
20,190 | static int vnc_display_get_address(const char *addrstr,
bool websocket,
bool reverse,
int displaynum,
int to,
bool has_ipv4,
... | false | qemu | dfd100f242370886bb6732f70f1f7cbd8eb9fedc | static int vnc_display_get_address(const char *addrstr,
bool websocket,
bool reverse,
int displaynum,
int to,
bool has_ipv4,
... | {
"code": [],
"line_no": []
} | static int FUNC_0(const char *VAR_0,
bool VAR_1,
bool VAR_2,
int VAR_3,
int VAR_4,
bool VAR_5,
bool VAR_... | [
"static int FUNC_0(const char *VAR_0,\nbool VAR_1,\nbool VAR_2,\nint VAR_3,\nint VAR_4,\nbool VAR_5,\nbool VAR_6,\nbool VAR_7,\nbool VAR_8,\nSocketAddress **VAR_9,\nError **VAR_10)\n{",
"int VAR_11 = -1;",
"SocketAddress *addr = NULL;",
"addr = g_new0(SocketAddress, 1);",
"if (strncmp(VAR_0, \"unix:\", 5) =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11,
13,
15,
17,
19,
21,
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
],
[
59
... |
20,191 | static void sdhci_do_data_transfer(void *opaque)
{
SDHCIState *s = (SDHCIState *)opaque;
SDHCI_GET_CLASS(s)->data_transfer(s);
}
| false | qemu | d368ba4376b2c1c24175c74b3733b8fe64dbe8a6 | static void sdhci_do_data_transfer(void *opaque)
{
SDHCIState *s = (SDHCIState *)opaque;
SDHCI_GET_CLASS(s)->data_transfer(s);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
SDHCIState *s = (SDHCIState *)VAR_0;
SDHCI_GET_CLASS(s)->data_transfer(s);
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"SDHCIState *s = (SDHCIState *)VAR_0;",
"SDHCI_GET_CLASS(s)->data_transfer(s);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
20,192 | static void kbd_send_chars(void *opaque)
{
TextConsole *s = opaque;
int len;
uint8_t buf[16];
len = qemu_chr_can_read(s->chr);
if (len > s->out_fifo.count)
len = s->out_fifo.count;
if (len > 0) {
if (len > sizeof(buf))
len = sizeof(buf);
qemu_fifo... | false | qemu | 7bd427d801e1e3293a634d3c83beadaa90ffb911 | static void kbd_send_chars(void *opaque)
{
TextConsole *s = opaque;
int len;
uint8_t buf[16];
len = qemu_chr_can_read(s->chr);
if (len > s->out_fifo.count)
len = s->out_fifo.count;
if (len > 0) {
if (len > sizeof(buf))
len = sizeof(buf);
qemu_fifo... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
TextConsole *s = VAR_0;
int VAR_1;
uint8_t buf[16];
VAR_1 = qemu_chr_can_read(s->chr);
if (VAR_1 > s->out_fifo.count)
VAR_1 = s->out_fifo.count;
if (VAR_1 > 0) {
if (VAR_1 > sizeof(buf))
VAR_1 = sizeof(buf);
qemu_... | [
"static void FUNC_0(void *VAR_0)\n{",
"TextConsole *s = VAR_0;",
"int VAR_1;",
"uint8_t buf[16];",
"VAR_1 = qemu_chr_can_read(s->chr);",
"if (VAR_1 > s->out_fifo.count)\nVAR_1 = s->out_fifo.count;",
"if (VAR_1 > 0) {",
"if (VAR_1 > sizeof(buf))\nVAR_1 = sizeof(buf);",
"qemu_fifo_read(&s->out_fifo, b... | [
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
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
20,193 | void bdrv_dirty_bitmap_deserialize_ones(BdrvDirtyBitmap *bitmap,
uint64_t start, uint64_t count,
bool finish)
{
hbitmap_deserialize_ones(bitmap->bitmap, start, count, finish);
}
| false | qemu | 86f6ae67e157362f3b141649874213ce01dcc622 | void bdrv_dirty_bitmap_deserialize_ones(BdrvDirtyBitmap *bitmap,
uint64_t start, uint64_t count,
bool finish)
{
hbitmap_deserialize_ones(bitmap->bitmap, start, count, finish);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(BdrvDirtyBitmap *VAR_0,
uint64_t VAR_1, uint64_t VAR_2,
bool VAR_3)
{
hbitmap_deserialize_ones(VAR_0->VAR_0, VAR_1, VAR_2, VAR_3);
}
| [
"void FUNC_0(BdrvDirtyBitmap *VAR_0,\nuint64_t VAR_1, uint64_t VAR_2,\nbool VAR_3)\n{",
"hbitmap_deserialize_ones(VAR_0->VAR_0, VAR_1, VAR_2, VAR_3);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
]
] |
20,194 | void slirp_input(Slirp *slirp, const uint8_t *pkt, int pkt_len)
{
struct mbuf *m;
int proto;
if (pkt_len < ETH_HLEN)
return;
proto = ntohs(*(uint16_t *)(pkt + 12));
switch(proto) {
case ETH_P_ARP:
arp_input(slirp, pkt, pkt_len);
break;
case ETH_P_IP:
... | false | qemu | 0d6ff71ae3c7ac3a446d295ef71884a05093b37c | void slirp_input(Slirp *slirp, const uint8_t *pkt, int pkt_len)
{
struct mbuf *m;
int proto;
if (pkt_len < ETH_HLEN)
return;
proto = ntohs(*(uint16_t *)(pkt + 12));
switch(proto) {
case ETH_P_ARP:
arp_input(slirp, pkt, pkt_len);
break;
case ETH_P_IP:
... | {
"code": [],
"line_no": []
} | void FUNC_0(Slirp *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
struct mbuf *VAR_3;
int VAR_4;
if (VAR_2 < ETH_HLEN)
return;
VAR_4 = ntohs(*(uint16_t *)(VAR_1 + 12));
switch(VAR_4) {
case ETH_P_ARP:
arp_input(VAR_0, VAR_1, VAR_2);
break;
case ETH_P_IP:
... | [
"void FUNC_0(Slirp *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"struct mbuf *VAR_3;",
"int VAR_4;",
"if (VAR_2 < ETH_HLEN)\nreturn;",
"VAR_4 = ntohs(*(uint16_t *)(VAR_1 + 12));",
"switch(VAR_4) {",
"case ETH_P_ARP:\narp_input(VAR_0, VAR_1, VAR_2);",
"break;",
"case ETH_P_IP:\nVAR_3 = m_get(VAR_0);... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27,
29
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
55... |
20,195 | struct omap_intr_handler_s *omap_inth_init(target_phys_addr_t base,
unsigned long size, unsigned char nbanks, qemu_irq **pins,
qemu_irq parent_irq, qemu_irq parent_fiq, omap_clk clk)
{
struct omap_intr_handler_s *s = (struct omap_intr_handler_s *)
g_malloc0(sizeof(st... | false | qemu | 0919ac787641db11024912651f3bc5764d4f1286 | struct omap_intr_handler_s *omap_inth_init(target_phys_addr_t base,
unsigned long size, unsigned char nbanks, qemu_irq **pins,
qemu_irq parent_irq, qemu_irq parent_fiq, omap_clk clk)
{
struct omap_intr_handler_s *s = (struct omap_intr_handler_s *)
g_malloc0(sizeof(st... | {
"code": [],
"line_no": []
} | struct omap_intr_handler_s *FUNC_0(target_phys_addr_t VAR_0,
unsigned long VAR_1, unsigned char VAR_2, qemu_irq **VAR_3,
qemu_irq VAR_4, qemu_irq VAR_5, omap_clk VAR_6)
{
struct omap_intr_handler_s *VAR_7 = (struct omap_intr_handler_s *)
g_malloc0(sizeof(struct omap_... | [
"struct omap_intr_handler_s *FUNC_0(target_phys_addr_t VAR_0,\nunsigned long VAR_1, unsigned char VAR_2, qemu_irq **VAR_3,\nqemu_irq VAR_4, qemu_irq VAR_5, omap_clk VAR_6)\n{",
"struct omap_intr_handler_s *VAR_7 = (struct omap_intr_handler_s *)\ng_malloc0(sizeof(struct omap_intr_handler_s) +\nsizeof(struct omap_i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11,
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
31
],
[
33
],
[
37
],
[
41
],
[
43
]
] |
20,196 | static bool do_check_io_limits(BlockIOLimit *io_limits)
{
bool bps_flag;
bool iops_flag;
assert(io_limits);
bps_flag = (io_limits->bps[BLOCK_IO_LIMIT_TOTAL] != 0)
&& ((io_limits->bps[BLOCK_IO_LIMIT_READ] != 0)
|| (io_limits->bps[BLOCK_IO_LIMIT_WRITE] != 0));... | false | qemu | c546194f260fb3e391193cb8cc33505618077ecb | static bool do_check_io_limits(BlockIOLimit *io_limits)
{
bool bps_flag;
bool iops_flag;
assert(io_limits);
bps_flag = (io_limits->bps[BLOCK_IO_LIMIT_TOTAL] != 0)
&& ((io_limits->bps[BLOCK_IO_LIMIT_READ] != 0)
|| (io_limits->bps[BLOCK_IO_LIMIT_WRITE] != 0));... | {
"code": [],
"line_no": []
} | static bool FUNC_0(BlockIOLimit *io_limits)
{
bool bps_flag;
bool iops_flag;
assert(io_limits);
bps_flag = (io_limits->bps[BLOCK_IO_LIMIT_TOTAL] != 0)
&& ((io_limits->bps[BLOCK_IO_LIMIT_READ] != 0)
|| (io_limits->bps[BLOCK_IO_LIMIT_WRITE] != 0));
iops_f... | [
"static bool FUNC_0(BlockIOLimit *io_limits)\n{",
"bool bps_flag;",
"bool iops_flag;",
"assert(io_limits);",
"bps_flag = (io_limits->bps[BLOCK_IO_LIMIT_TOTAL] != 0)\n&& ((io_limits->bps[BLOCK_IO_LIMIT_READ] != 0)\n|| (io_limits->bps[BLOCK_IO_LIMIT_WRITE] != 0));",
"iops_flag = (io_limits->iops[BLOCK_IO_L... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15,
17,
19
],
[
21,
23,
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
]
] |
20,198 | static int blkdebug_co_flush(BlockDriverState *bs)
{
BDRVBlkdebugState *s = bs->opaque;
BlkdebugRule *rule = NULL;
QSIMPLEQ_FOREACH(rule, &s->active_rules, active_next) {
if (rule->options.inject.offset == -1) {
break;
}
}
if (rule && rule->options.inject.err... | false | qemu | d157ed5f7235f3d2d5596a514ad7507b18e24b88 | static int blkdebug_co_flush(BlockDriverState *bs)
{
BDRVBlkdebugState *s = bs->opaque;
BlkdebugRule *rule = NULL;
QSIMPLEQ_FOREACH(rule, &s->active_rules, active_next) {
if (rule->options.inject.offset == -1) {
break;
}
}
if (rule && rule->options.inject.err... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0)
{
BDRVBlkdebugState *s = VAR_0->opaque;
BlkdebugRule *rule = NULL;
QSIMPLEQ_FOREACH(rule, &s->active_rules, active_next) {
if (rule->options.inject.offset == -1) {
break;
}
}
if (rule && rule->options.inject.error) {... | [
"static int FUNC_0(BlockDriverState *VAR_0)\n{",
"BDRVBlkdebugState *s = VAR_0->opaque;",
"BlkdebugRule *rule = NULL;",
"QSIMPLEQ_FOREACH(rule, &s->active_rules, active_next) {",
"if (rule->options.inject.offset == -1) {",
"break;",
"}",
"}",
"if (rule && rule->options.inject.error) {",
"return in... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
]
] |
20,201 | static void rtas_quiesce(sPAPREnvironment *spapr, uint32_t token,
uint32_t nargs, target_ulong args,
uint32_t nret, target_ulong rets)
{
VIOsPAPRBus *bus = spapr->vio_bus;
BusChild *kid;
VIOsPAPRDevice *dev = NULL;
if (nargs != 0) {
rta... | false | qemu | 210b580b106fa798149e28aa13c66b325a43204e | static void rtas_quiesce(sPAPREnvironment *spapr, uint32_t token,
uint32_t nargs, target_ulong args,
uint32_t nret, target_ulong rets)
{
VIOsPAPRBus *bus = spapr->vio_bus;
BusChild *kid;
VIOsPAPRDevice *dev = NULL;
if (nargs != 0) {
rta... | {
"code": [],
"line_no": []
} | static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1,
uint32_t VAR_2, target_ulong VAR_3,
uint32_t VAR_4, target_ulong VAR_5)
{
VIOsPAPRBus *bus = VAR_0->vio_bus;
BusChild *kid;
VIOsPAPRDevice *dev = NULL;
if (VAR_2 != 0) {
rtas_s... | [
"static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1,\nuint32_t VAR_2, target_ulong VAR_3,\nuint32_t VAR_4, target_ulong VAR_5)\n{",
"VIOsPAPRBus *bus = VAR_0->vio_bus;",
"BusChild *kid;",
"VIOsPAPRDevice *dev = NULL;",
"if (VAR_2 != 0) {",
"rtas_st(VAR_5, 0, -3);",
"return;",
"}",
"QTAILQ_FO... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
]
] |
20,202 | static int kvm_put_xsave(X86CPU *cpu)
{
CPUX86State *env = &cpu->env;
struct kvm_xsave* xsave = env->kvm_xsave_buf;
uint16_t cwd, swd, twd;
int i, r;
if (!kvm_has_xsave()) {
return kvm_put_fpu(cpu);
}
memset(xsave, 0, sizeof(struct kvm_xsave));
twd = 0;
swd = e... | false | qemu | bee818872cd9e8c07be529f75da3e48a68bf7a93 | static int kvm_put_xsave(X86CPU *cpu)
{
CPUX86State *env = &cpu->env;
struct kvm_xsave* xsave = env->kvm_xsave_buf;
uint16_t cwd, swd, twd;
int i, r;
if (!kvm_has_xsave()) {
return kvm_put_fpu(cpu);
}
memset(xsave, 0, sizeof(struct kvm_xsave));
twd = 0;
swd = e... | {
"code": [],
"line_no": []
} | static int FUNC_0(X86CPU *VAR_0)
{
CPUX86State *env = &VAR_0->env;
struct kvm_xsave* VAR_1 = env->kvm_xsave_buf;
uint16_t cwd, swd, twd;
int VAR_2, VAR_3;
if (!kvm_has_xsave()) {
return kvm_put_fpu(VAR_0);
}
memset(VAR_1, 0, sizeof(struct kvm_xsave));
twd = 0;
... | [
"static int FUNC_0(X86CPU *VAR_0)\n{",
"CPUX86State *env = &VAR_0->env;",
"struct kvm_xsave* VAR_1 = env->kvm_xsave_buf;",
"uint16_t cwd, swd, twd;",
"int VAR_2, VAR_3;",
"if (!kvm_has_xsave()) {",
"return kvm_put_fpu(VAR_0);",
"}",
"memset(VAR_1, 0, sizeof(struct kvm_xsave));",
"twd = 0;",
"swd... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
20,203 | static void virtio_blk_set_config(VirtIODevice *vdev, const uint8_t *config)
{
VirtIOBlock *s = VIRTIO_BLK(vdev);
struct virtio_blk_config blkcfg;
memcpy(&blkcfg, config, sizeof(blkcfg));
aio_context_acquire(bdrv_get_aio_context(s->bs));
bdrv_set_enable_write_cache(s->bs, blkcfg.wce != 0);... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static void virtio_blk_set_config(VirtIODevice *vdev, const uint8_t *config)
{
VirtIOBlock *s = VIRTIO_BLK(vdev);
struct virtio_blk_config blkcfg;
memcpy(&blkcfg, config, sizeof(blkcfg));
aio_context_acquire(bdrv_get_aio_context(s->bs));
bdrv_set_enable_write_cache(s->bs, blkcfg.wce != 0);... | {
"code": [],
"line_no": []
} | static void FUNC_0(VirtIODevice *VAR_0, const uint8_t *VAR_1)
{
VirtIOBlock *s = VIRTIO_BLK(VAR_0);
struct virtio_blk_config VAR_2;
memcpy(&VAR_2, VAR_1, sizeof(VAR_2));
aio_context_acquire(bdrv_get_aio_context(s->bs));
bdrv_set_enable_write_cache(s->bs, VAR_2.wce != 0);
aio_context_r... | [
"static void FUNC_0(VirtIODevice *VAR_0, const uint8_t *VAR_1)\n{",
"VirtIOBlock *s = VIRTIO_BLK(VAR_0);",
"struct virtio_blk_config VAR_2;",
"memcpy(&VAR_2, VAR_1, sizeof(VAR_2));",
"aio_context_acquire(bdrv_get_aio_context(s->bs));",
"bdrv_set_enable_write_cache(s->bs, VAR_2.wce != 0);",
"aio_context_... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
20,205 | static int ide_handle_rw_error(IDEState *s, int error, int op)
{
bool is_read = (op & IDE_RETRY_READ) != 0;
BlockErrorAction action = bdrv_get_error_action(s->bs, is_read, error);
if (action == BLOCK_ERROR_ACTION_STOP) {
s->bus->dma->ops->set_unit(s->bus->dma, s->unit);
s->bus->error... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static int ide_handle_rw_error(IDEState *s, int error, int op)
{
bool is_read = (op & IDE_RETRY_READ) != 0;
BlockErrorAction action = bdrv_get_error_action(s->bs, is_read, error);
if (action == BLOCK_ERROR_ACTION_STOP) {
s->bus->dma->ops->set_unit(s->bus->dma, s->unit);
s->bus->error... | {
"code": [],
"line_no": []
} | static int FUNC_0(IDEState *VAR_0, int VAR_1, int VAR_2)
{
bool is_read = (VAR_2 & IDE_RETRY_READ) != 0;
BlockErrorAction action = bdrv_get_error_action(VAR_0->bs, is_read, VAR_1);
if (action == BLOCK_ERROR_ACTION_STOP) {
VAR_0->bus->dma->ops->set_unit(VAR_0->bus->dma, VAR_0->unit);
... | [
"static int FUNC_0(IDEState *VAR_0, int VAR_1, int VAR_2)\n{",
"bool is_read = (VAR_2 & IDE_RETRY_READ) != 0;",
"BlockErrorAction action = bdrv_get_error_action(VAR_0->bs, is_read, VAR_1);",
"if (action == BLOCK_ERROR_ACTION_STOP) {",
"VAR_0->bus->dma->ops->set_unit(VAR_0->bus->dma, VAR_0->unit);",
"VAR_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
]
] |
20,206 | static int sdl_init_out (HWVoiceOut *hw, audsettings_t *as)
{
SDLVoiceOut *sdl = (SDLVoiceOut *) hw;
SDLAudioState *s = &glob_sdl;
SDL_AudioSpec req, obt;
int shift;
int endianess;
int err;
audfmt_e effective_fmt;
audsettings_t obt_as;
shift <<= as->nchannels == 2;
... | false | qemu | 1ea879e5580f63414693655fcf0328559cdce138 | static int sdl_init_out (HWVoiceOut *hw, audsettings_t *as)
{
SDLVoiceOut *sdl = (SDLVoiceOut *) hw;
SDLAudioState *s = &glob_sdl;
SDL_AudioSpec req, obt;
int shift;
int endianess;
int err;
audfmt_e effective_fmt;
audsettings_t obt_as;
shift <<= as->nchannels == 2;
... | {
"code": [],
"line_no": []
} | static int FUNC_0 (HWVoiceOut *VAR_0, audsettings_t *VAR_1)
{
SDLVoiceOut *sdl = (SDLVoiceOut *) VAR_0;
SDLAudioState *s = &glob_sdl;
SDL_AudioSpec req, obt;
int VAR_2;
int VAR_3;
int VAR_4;
audfmt_e effective_fmt;
audsettings_t obt_as;
VAR_2 <<= VAR_1->nchannels == 2;
... | [
"static int FUNC_0 (HWVoiceOut *VAR_0, audsettings_t *VAR_1)\n{",
"SDLVoiceOut *sdl = (SDLVoiceOut *) VAR_0;",
"SDLAudioState *s = &glob_sdl;",
"SDL_AudioSpec req, obt;",
"int VAR_2;",
"int VAR_3;",
"int VAR_4;",
"audfmt_e effective_fmt;",
"audsettings_t obt_as;",
"VAR_2 <<= VAR_1->nchannels == 2;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
... |
20,207 | void qemu_spice_init(void)
{
QemuOpts *opts = QTAILQ_FIRST(&qemu_spice_opts.head);
const char *password, *str, *x509_dir, *addr,
*x509_key_password = NULL,
*x509_dh_file = NULL,
*tls_ciphers = NULL;
char *x509_key_file = NULL,
*x509_cert_file = NULL,
*x509_ca... | false | qemu | 4295e15aa730a95003a3639d6dad2eb1e65a59e2 | void qemu_spice_init(void)
{
QemuOpts *opts = QTAILQ_FIRST(&qemu_spice_opts.head);
const char *password, *str, *x509_dir, *addr,
*x509_key_password = NULL,
*x509_dh_file = NULL,
*tls_ciphers = NULL;
char *x509_key_file = NULL,
*x509_cert_file = NULL,
*x509_ca... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
QemuOpts *opts = QTAILQ_FIRST(&qemu_spice_opts.head);
const char *VAR_0, *VAR_1, *VAR_2, *VAR_3,
*VAR_4 = NULL,
*VAR_5 = NULL,
*VAR_6 = NULL;
char *VAR_7 = NULL,
*VAR_8 = NULL,
*VAR_9 = NULL;
int VAR_10, VAR_11, VAR_12, VAR_13;
s... | [
"void FUNC_0(void)\n{",
"QemuOpts *opts = QTAILQ_FIRST(&qemu_spice_opts.head);",
"const char *VAR_0, *VAR_1, *VAR_2, *VAR_3,\n*VAR_4 = NULL,\n*VAR_5 = NULL,\n*VAR_6 = NULL;",
"char *VAR_7 = NULL,\n*VAR_8 = NULL,\n*VAR_9 = NULL;",
"int VAR_10, VAR_11, VAR_12, VAR_13;",
"spice_image_compression_t compressio... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
20,208 | eth_write(void *opaque, target_phys_addr_t addr,
uint64_t val64, unsigned int size)
{
struct fs_eth *eth = opaque;
uint32_t value = val64;
addr >>= 2;
switch (addr)
{
case RW_MA0_LO:
case RW_MA0_HI:
eth->regs[addr] = value;
eth_update_ma(eth, 0);
break;
case RW_MA1_LO:
ca... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | eth_write(void *opaque, target_phys_addr_t addr,
uint64_t val64, unsigned int size)
{
struct fs_eth *eth = opaque;
uint32_t value = val64;
addr >>= 2;
switch (addr)
{
case RW_MA0_LO:
case RW_MA0_HI:
eth->regs[addr] = value;
eth_update_ma(eth, 0);
break;
case RW_MA1_LO:
ca... | {
"code": [],
"line_no": []
} | FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned int VAR_3)
{
struct fs_eth *VAR_4 = VAR_0;
uint32_t value = VAR_2;
VAR_1 >>= 2;
switch (VAR_1)
{
case RW_MA0_LO:
case RW_MA0_HI:
VAR_4->regs[VAR_1] = value;
eth_update_ma(VAR_4, 0);
break;
case RW_MA1_LO:... | [
"FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned int VAR_3)\n{",
"struct fs_eth *VAR_4 = VAR_0;",
"uint32_t value = VAR_2;",
"VAR_1 >>= 2;",
"switch (VAR_1)\n{",
"case RW_MA0_LO:\ncase RW_MA0_HI:\nVAR_4->regs[VAR_1] = value;",
"eth_update_ma(VAR_4, 0);",
"break;",
"case RW_MA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19,
21,
23
],
[
25
],
[
27
],
[
29,
31,
33
],
[
35
],
[
37
],
[
41,
45,
47
],
[
49
],
[
51
],
[
53
],
[
55
... |
20,209 | static void strongarm_gpio_handler_update(StrongARMGPIOInfo *s)
{
uint32_t level, diff;
int bit;
level = s->olevel & s->dir;
for (diff = s->prev_level ^ level; diff; diff ^= 1 << bit) {
bit = ffs(diff) - 1;
qemu_set_irq(s->handler[bit], (level >> bit) & 1);
}
s->pr... | false | qemu | 786a4ea82ec9c87e3a895cf41081029b285a5fe5 | static void strongarm_gpio_handler_update(StrongARMGPIOInfo *s)
{
uint32_t level, diff;
int bit;
level = s->olevel & s->dir;
for (diff = s->prev_level ^ level; diff; diff ^= 1 << bit) {
bit = ffs(diff) - 1;
qemu_set_irq(s->handler[bit], (level >> bit) & 1);
}
s->pr... | {
"code": [],
"line_no": []
} | static void FUNC_0(StrongARMGPIOInfo *VAR_0)
{
uint32_t level, diff;
int VAR_1;
level = VAR_0->olevel & VAR_0->dir;
for (diff = VAR_0->prev_level ^ level; diff; diff ^= 1 << VAR_1) {
VAR_1 = ffs(diff) - 1;
qemu_set_irq(VAR_0->handler[VAR_1], (level >> VAR_1) & 1);
}
... | [
"static void FUNC_0(StrongARMGPIOInfo *VAR_0)\n{",
"uint32_t level, diff;",
"int VAR_1;",
"level = VAR_0->olevel & VAR_0->dir;",
"for (diff = VAR_0->prev_level ^ level; diff; diff ^= 1 << VAR_1) {",
"VAR_1 = ffs(diff) - 1;",
"qemu_set_irq(VAR_0->handler[VAR_1], (level >> VAR_1) & 1);",
"}",
"VAR_0->... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
]
] |
20,210 | void ff_vc1dsp_init_altivec(VC1DSPContext* dsp)
{
if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
return;
dsp->vc1_inv_trans_8x8 = vc1_inv_trans_8x8_altivec;
dsp->vc1_inv_trans_8x4 = vc1_inv_trans_8x4_altivec;
dsp->put_no_rnd_vc1_chroma_pixels_tab[0] = put_no_rnd_vc1_chroma_mc8_altivec;... | false | FFmpeg | f8bed30d8b176fa030f6737765338bb4a2bcabc9 | void ff_vc1dsp_init_altivec(VC1DSPContext* dsp)
{
if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
return;
dsp->vc1_inv_trans_8x8 = vc1_inv_trans_8x8_altivec;
dsp->vc1_inv_trans_8x4 = vc1_inv_trans_8x4_altivec;
dsp->put_no_rnd_vc1_chroma_pixels_tab[0] = put_no_rnd_vc1_chroma_mc8_altivec;... | {
"code": [],
"line_no": []
} | void FUNC_0(VC1DSPContext* VAR_0)
{
if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
return;
VAR_0->vc1_inv_trans_8x8 = vc1_inv_trans_8x8_altivec;
VAR_0->vc1_inv_trans_8x4 = vc1_inv_trans_8x4_altivec;
VAR_0->put_no_rnd_vc1_chroma_pixels_tab[0] = put_no_rnd_vc1_chroma_mc8_altivec;
VA... | [
"void FUNC_0(VC1DSPContext* VAR_0)\n{",
"if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))\nreturn;",
"VAR_0->vc1_inv_trans_8x8 = vc1_inv_trans_8x8_altivec;",
"VAR_0->vc1_inv_trans_8x4 = vc1_inv_trans_8x4_altivec;",
"VAR_0->put_no_rnd_vc1_chroma_pixels_tab[0] = put_no_rnd_vc1_chroma_mc8_altivec;",
"VAR_0->... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
20,211 | static void cuda_receive_packet(CUDAState *s,
const uint8_t *data, int len)
{
uint8_t obuf[16];
int ti, autopoll;
switch(data[0]) {
case CUDA_AUTOPOLL:
autopoll = (data[1] != 0);
if (autopoll != s->autopoll) {
s->autopoll = autopoll;... | false | qemu | 5703c174ff8bd2072e6cb77d87fa3e85c98bf043 | static void cuda_receive_packet(CUDAState *s,
const uint8_t *data, int len)
{
uint8_t obuf[16];
int ti, autopoll;
switch(data[0]) {
case CUDA_AUTOPOLL:
autopoll = (data[1] != 0);
if (autopoll != s->autopoll) {
s->autopoll = autopoll;... | {
"code": [],
"line_no": []
} | static void FUNC_0(CUDAState *VAR_0,
const uint8_t *VAR_1, int VAR_2)
{
uint8_t obuf[16];
int VAR_3, VAR_4;
switch(VAR_1[0]) {
case CUDA_AUTOPOLL:
VAR_4 = (VAR_1[1] != 0);
if (VAR_4 != VAR_0->VAR_4) {
VAR_0->VAR_4 = VAR_4;
... | [
"static void FUNC_0(CUDAState *VAR_0,\nconst uint8_t *VAR_1, int VAR_2)\n{",
"uint8_t obuf[16];",
"int VAR_3, VAR_4;",
"switch(VAR_1[0]) {",
"case CUDA_AUTOPOLL:\nVAR_4 = (VAR_1[1] != 0);",
"if (VAR_4 != VAR_0->VAR_4) {",
"VAR_0->VAR_4 = VAR_4;",
"if (VAR_4) {",
"qemu_mod_timer(VAR_0->adb_poll_timer... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25,
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,... |
20,212 | iscsi_aio_flush(BlockDriverState *bs,
BlockDriverCompletionFunc *cb, void *opaque)
{
IscsiLun *iscsilun = bs->opaque;
struct iscsi_context *iscsi = iscsilun->iscsi;
IscsiAIOCB *acb;
acb = qemu_aio_get(&iscsi_aiocb_info, bs, cb, opaque);
acb->iscsilun = iscsilun;
acb->... | false | qemu | 1dde716ed6719c341c1bfa427781f0715af90cbc | iscsi_aio_flush(BlockDriverState *bs,
BlockDriverCompletionFunc *cb, void *opaque)
{
IscsiLun *iscsilun = bs->opaque;
struct iscsi_context *iscsi = iscsilun->iscsi;
IscsiAIOCB *acb;
acb = qemu_aio_get(&iscsi_aiocb_info, bs, cb, opaque);
acb->iscsilun = iscsilun;
acb->... | {
"code": [],
"line_no": []
} | FUNC_0(BlockDriverState *VAR_0,
BlockDriverCompletionFunc *VAR_1, void *VAR_2)
{
IscsiLun *iscsilun = VAR_0->VAR_2;
struct iscsi_context *VAR_3 = iscsilun->VAR_3;
IscsiAIOCB *acb;
acb = qemu_aio_get(&iscsi_aiocb_info, VAR_0, VAR_1, VAR_2);
acb->iscsilun = iscsilun;
ac... | [
"FUNC_0(BlockDriverState *VAR_0,\nBlockDriverCompletionFunc *VAR_1, void *VAR_2)\n{",
"IscsiLun *iscsilun = VAR_0->VAR_2;",
"struct iscsi_context *VAR_3 = iscsilun->VAR_3;",
"IscsiAIOCB *acb;",
"acb = qemu_aio_get(&iscsi_aiocb_info, VAR_0, VAR_1, VAR_2);",
"acb->iscsilun = iscsilun;",
"acb->canceled =... | [
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
],
[
47
],
[
49
],
[
53
],
[... |
20,215 | void qmp_blockdev_change_medium(bool has_device, const char *device,
bool has_id, const char *id,
const char *filename,
bool has_format, const char *format,
bool has_read_only,
... | false | qemu | b85114f8cfbede8b153db68875973ef0790bf296 | void qmp_blockdev_change_medium(bool has_device, const char *device,
bool has_id, const char *id,
const char *filename,
bool has_format, const char *format,
bool has_read_only,
... | {
"code": [],
"line_no": []
} | void FUNC_0(bool VAR_0, const char *VAR_1,
bool VAR_2, const char *VAR_3,
const char *VAR_4,
bool VAR_5, const char *VAR_6,
bool VAR_7,
BlockdevChangeReadO... | [
"void FUNC_0(bool VAR_0, const char *VAR_1,\nbool VAR_2, const char *VAR_3,\nconst char *VAR_4,\nbool VAR_5, const char *VAR_6,\nbool VAR_7,\nBlockdevChangeReadOnlyMode VAR_8,\nError **VAR_9)\n{",
"BlockBackend *blk;",
"BlockDriverState *medium_bs = NULL;",
"int VAR_10;",
"int VAR_11;",
"QDict *options = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31,
33,
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55,... |
20,216 | int pcistg_service_call(S390CPU *cpu, uint8_t r1, uint8_t r2)
{
CPUS390XState *env = &cpu->env;
uint64_t offset, data;
S390PCIBusDevice *pbdev;
uint8_t len;
uint32_t fh;
uint8_t pcias;
cpu_synchronize_state(CPU(cpu));
if (env->psw.mask & PSW_MASK_PSTATE) {
program_i... | false | qemu | 5d1abf234462d13bef3617cc2c55b6815703ddf2 | int pcistg_service_call(S390CPU *cpu, uint8_t r1, uint8_t r2)
{
CPUS390XState *env = &cpu->env;
uint64_t offset, data;
S390PCIBusDevice *pbdev;
uint8_t len;
uint32_t fh;
uint8_t pcias;
cpu_synchronize_state(CPU(cpu));
if (env->psw.mask & PSW_MASK_PSTATE) {
program_i... | {
"code": [],
"line_no": []
} | int FUNC_0(S390CPU *VAR_0, uint8_t VAR_1, uint8_t VAR_2)
{
CPUS390XState *env = &VAR_0->env;
uint64_t offset, data;
S390PCIBusDevice *pbdev;
uint8_t len;
uint32_t fh;
uint8_t pcias;
cpu_synchronize_state(CPU(VAR_0));
if (env->psw.mask & PSW_MASK_PSTATE) {
program_in... | [
"int FUNC_0(S390CPU *VAR_0, uint8_t VAR_1, uint8_t VAR_2)\n{",
"CPUS390XState *env = &VAR_0->env;",
"uint64_t offset, data;",
"S390PCIBusDevice *pbdev;",
"uint8_t len;",
"uint32_t fh;",
"uint8_t pcias;",
"cpu_synchronize_state(CPU(VAR_0));",
"if (env->psw.mask & PSW_MASK_PSTATE) {",
"program_inter... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
... |
20,217 | static int kvm_put_msrs(CPUState *env, int level)
{
struct {
struct kvm_msrs info;
struct kvm_msr_entry entries[100];
} msr_data;
struct kvm_msr_entry *msrs = msr_data.entries;
int n = 0;
kvm_msr_entry_set(&msrs[n++], MSR_IA32_SYSENTER_CS, env->sysenter_cs);
kvm_msr_en... | false | qemu | b9bec74bcb16519a876ec21cd5277c526a9b512d | static int kvm_put_msrs(CPUState *env, int level)
{
struct {
struct kvm_msrs info;
struct kvm_msr_entry entries[100];
} msr_data;
struct kvm_msr_entry *msrs = msr_data.entries;
int n = 0;
kvm_msr_entry_set(&msrs[n++], MSR_IA32_SYSENTER_CS, env->sysenter_cs);
kvm_msr_en... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUState *VAR_0, int VAR_1)
{
struct {
struct kvm_msrs info;
struct kvm_msr_entry entries[100];
} VAR_2;
struct kvm_msr_entry *VAR_3 = VAR_2.entries;
int VAR_4 = 0;
kvm_msr_entry_set(&VAR_3[VAR_4++], MSR_IA32_SYSENTER_CS, VAR_0->sysenter_cs);
kvm_msr_... | [
"static int FUNC_0(CPUState *VAR_0, int VAR_1)\n{",
"struct {",
"struct kvm_msrs info;",
"struct kvm_msr_entry entries[100];",
"} VAR_2;",
"struct kvm_msr_entry *VAR_3 = VAR_2.entries;",
"int VAR_4 = 0;",
"kvm_msr_entry_set(&VAR_3[VAR_4++], MSR_IA32_SYSENTER_CS, VAR_0->sysenter_cs);",
"kvm_msr_entry... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
20,218 | static void scsi_block_realize(SCSIDevice *dev, Error **errp)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, dev);
int sg_version;
int rc;
if (!s->qdev.conf.bs) {
error_setg(errp, "drive property not set");
return;
}
/* check we are using a driver managing SG_IO... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static void scsi_block_realize(SCSIDevice *dev, Error **errp)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, dev);
int sg_version;
int rc;
if (!s->qdev.conf.bs) {
error_setg(errp, "drive property not set");
return;
}
rc = bdrv_ioctl(s->qdev.conf.bs, SG_GET... | {
"code": [],
"line_no": []
} | static void FUNC_0(SCSIDevice *VAR_0, Error **VAR_1)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0);
int VAR_2;
int VAR_3;
if (!s->qdev.conf.bs) {
error_setg(VAR_1, "drive property not set");
return;
}
VAR_3 = bdrv_ioctl(s->qdev.conf.bs, SG_GET_VERS... | [
"static void FUNC_0(SCSIDevice *VAR_0, Error **VAR_1)\n{",
"SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0);",
"int VAR_2;",
"int VAR_3;",
"if (!s->qdev.conf.bs) {",
"error_setg(VAR_1, \"drive property not set\");",
"return;",
"}",
"VAR_3 = bdrv_ioctl(s->qdev.conf.bs, SG_GET_VERSION_NUM, &V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
25
],
[
27
],
[
29,
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
51
],
[
53
... |
20,219 | static void init_proc_460 (CPUPPCState *env)
{
/* Time base */
gen_tbl(env);
gen_spr_BookE(env);
gen_spr_440(env);
spr_register(env, SPR_BOOKE_MCSR, "MCSR",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
0x00000000);
... | false | qemu | e1833e1f96456fd8fc17463246fe0b2050e68efb | static void init_proc_460 (CPUPPCState *env)
{
gen_tbl(env);
gen_spr_BookE(env);
gen_spr_440(env);
spr_register(env, SPR_BOOKE_MCSR, "MCSR",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
0x00000000);
spr_register(... | {
"code": [],
"line_no": []
} | static void FUNC_0 (CPUPPCState *VAR_0)
{
gen_tbl(VAR_0);
gen_spr_BookE(VAR_0);
gen_spr_440(VAR_0);
spr_register(VAR_0, SPR_BOOKE_MCSR, "MCSR",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
0x00000000);
spr_regist... | [
"static void FUNC_0 (CPUPPCState *VAR_0)\n{",
"gen_tbl(VAR_0);",
"gen_spr_BookE(VAR_0);",
"gen_spr_440(VAR_0);",
"spr_register(VAR_0, SPR_BOOKE_MCSR, \"MCSR\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_generic,\n0x00000000);",
"spr_register(VAR_0, SPR_BOOKE_MCSRR0, \"MCSRR0\",\nSPR_NOACC... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
11
],
[
13,
15,
17,
19
],
[
21,
23,
25,
27
],
[
29,
31,
33,
35
],
[
37,
39,
41,
43
],
[
45,
47,
49,
51
],
[
55
],
[
57
],
[
59
],
... |
20,220 | static int xen_pt_status_reg_init(XenPCIPassthroughState *s,
XenPTRegInfo *reg, uint32_t real_offset,
uint32_t *data)
{
XenPTRegGroup *reg_grp_entry = NULL;
XenPTReg *reg_entry = NULL;
uint32_t reg_field = 0;
/* find Header reg... | false | qemu | e2779de053b64f023de382fd87b3596613d47d1e | static int xen_pt_status_reg_init(XenPCIPassthroughState *s,
XenPTRegInfo *reg, uint32_t real_offset,
uint32_t *data)
{
XenPTRegGroup *reg_grp_entry = NULL;
XenPTReg *reg_entry = NULL;
uint32_t reg_field = 0;
reg_grp_entr... | {
"code": [],
"line_no": []
} | static int FUNC_0(XenPCIPassthroughState *VAR_0,
XenPTRegInfo *VAR_1, uint32_t VAR_2,
uint32_t *VAR_3)
{
XenPTRegGroup *reg_grp_entry = NULL;
XenPTReg *reg_entry = NULL;
uint32_t reg_field = 0;
reg_grp_entry = xen_pt_find... | [
"static int FUNC_0(XenPCIPassthroughState *VAR_0,\nXenPTRegInfo *VAR_1, uint32_t VAR_2,\nuint32_t *VAR_3)\n{",
"XenPTRegGroup *reg_grp_entry = NULL;",
"XenPTReg *reg_entry = NULL;",
"uint32_t reg_field = 0;",
"reg_grp_entry = xen_pt_find_reg_grp(VAR_0, PCI_CAPABILITY_LIST);",
"if (reg_grp_entry) {",
"re... | [
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
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45,
47
],
[
49
],
[
51
],
[
53
... |
20,221 | static void virtio_ccw_save_config(DeviceState *d, QEMUFile *f)
{
VirtioCcwDevice *dev = VIRTIO_CCW_DEVICE(d);
CcwDevice *ccw_dev = CCW_DEVICE(d);
SubchDev *s = ccw_dev->sch;
VirtIODevice *vdev = virtio_ccw_get_vdev(s);
subch_device_save(s, f);
if (dev->indicators != NULL) {
qe... | false | qemu | 517ff12c7d000fa1f5b1e989b22fb86a286f9cc2 | static void virtio_ccw_save_config(DeviceState *d, QEMUFile *f)
{
VirtioCcwDevice *dev = VIRTIO_CCW_DEVICE(d);
CcwDevice *ccw_dev = CCW_DEVICE(d);
SubchDev *s = ccw_dev->sch;
VirtIODevice *vdev = virtio_ccw_get_vdev(s);
subch_device_save(s, f);
if (dev->indicators != NULL) {
qe... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, QEMUFile *VAR_1)
{
VirtioCcwDevice *dev = VIRTIO_CCW_DEVICE(VAR_0);
CcwDevice *ccw_dev = CCW_DEVICE(VAR_0);
SubchDev *s = ccw_dev->sch;
VirtIODevice *vdev = virtio_ccw_get_vdev(s);
subch_device_save(s, VAR_1);
if (dev->indicators != NULL) {
... | [
"static void FUNC_0(DeviceState *VAR_0, QEMUFile *VAR_1)\n{",
"VirtioCcwDevice *dev = VIRTIO_CCW_DEVICE(VAR_0);",
"CcwDevice *ccw_dev = CCW_DEVICE(VAR_0);",
"SubchDev *s = ccw_dev->sch;",
"VirtIODevice *vdev = virtio_ccw_get_vdev(s);",
"subch_device_save(s, VAR_1);",
"if (dev->indicators != NULL) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
20,223 | static int xen_pt_register_regions(XenPCIPassthroughState *s)
{
int i = 0;
XenHostPCIDevice *d = &s->real_device;
/* Register PIO/MMIO BARs */
for (i = 0; i < PCI_ROM_SLOT; i++) {
XenHostPCIIORegion *r = &d->io_regions[i];
uint8_t type;
if (r->base_addr == 0 || r->siz... | false | qemu | 794798e36eda77802ce7cc7d7d6b1c65751e8a76 | static int xen_pt_register_regions(XenPCIPassthroughState *s)
{
int i = 0;
XenHostPCIDevice *d = &s->real_device;
for (i = 0; i < PCI_ROM_SLOT; i++) {
XenHostPCIIORegion *r = &d->io_regions[i];
uint8_t type;
if (r->base_addr == 0 || r->size == 0) {
conti... | {
"code": [],
"line_no": []
} | static int FUNC_0(XenPCIPassthroughState *VAR_0)
{
int VAR_1 = 0;
XenHostPCIDevice *d = &VAR_0->real_device;
for (VAR_1 = 0; VAR_1 < PCI_ROM_SLOT; VAR_1++) {
XenHostPCIIORegion *r = &d->io_regions[VAR_1];
uint8_t type;
if (r->base_addr == 0 || r->size == 0) {
... | [
"static int FUNC_0(XenPCIPassthroughState *VAR_0)\n{",
"int VAR_1 = 0;",
"XenHostPCIDevice *d = &VAR_0->real_device;",
"for (VAR_1 = 0; VAR_1 < PCI_ROM_SLOT; VAR_1++) {",
"XenHostPCIIORegion *r = &d->io_regions[VAR_1];",
"uint8_t type;",
"if (r->base_addr == 0 || r->size == 0) {",
"continue;",
"}",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51... |
20,224 | int ff_alloc_picture(MpegEncContext *s, Picture *pic, int shared)
{
int i, ret;
if (shared) {
assert(pic->f.data[0]);
pic->shared = 1;
} else {
assert(!pic->f.data[0]);
if (alloc_frame_buffer(s, pic) < 0)
return -1;
s->linesize = pic->f.l... | false | FFmpeg | a553c6a347d3d28d7ee44c3df3d5c4ee780dba23 | int ff_alloc_picture(MpegEncContext *s, Picture *pic, int shared)
{
int i, ret;
if (shared) {
assert(pic->f.data[0]);
pic->shared = 1;
} else {
assert(!pic->f.data[0]);
if (alloc_frame_buffer(s, pic) < 0)
return -1;
s->linesize = pic->f.l... | {
"code": [],
"line_no": []
} | int FUNC_0(MpegEncContext *VAR_0, Picture *VAR_1, int VAR_2)
{
int VAR_3, VAR_4;
if (VAR_2) {
assert(VAR_1->f.data[0]);
VAR_1->VAR_2 = 1;
} else {
assert(!VAR_1->f.data[0]);
if (alloc_frame_buffer(VAR_0, VAR_1) < 0)
return -1;
VAR_0->linesi... | [
"int FUNC_0(MpegEncContext *VAR_0, Picture *VAR_1, int VAR_2)\n{",
"int VAR_3, VAR_4;",
"if (VAR_2) {",
"assert(VAR_1->f.data[0]);",
"VAR_1->VAR_2 = 1;",
"} else {",
"assert(!VAR_1->f.data[0]);",
"if (alloc_frame_buffer(VAR_0, VAR_1) < 0)\nreturn -1;",
"VAR_0->linesize = VAR_1->f.linesize[0];",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
39,
41
],
[
43,
45
],
[
49
],
[
51
],
[
53
],
[
55... |
20,225 | PCIBus *pci_prep_init(qemu_irq *pic)
{
PREPPCIState *s;
PCIDevice *d;
int PPC_io_memory;
s = qemu_mallocz(sizeof(PREPPCIState));
s->bus = pci_register_bus(NULL, "pci",
prep_set_irq, prep_map_irq, pic, 0, 4);
register_ioport_write(0xcf8, 4, 4, pci_prep_ad... | false | qemu | 4f5e19e6c570459cd524b29b24374f03860f5149 | PCIBus *pci_prep_init(qemu_irq *pic)
{
PREPPCIState *s;
PCIDevice *d;
int PPC_io_memory;
s = qemu_mallocz(sizeof(PREPPCIState));
s->bus = pci_register_bus(NULL, "pci",
prep_set_irq, prep_map_irq, pic, 0, 4);
register_ioport_write(0xcf8, 4, 4, pci_prep_ad... | {
"code": [],
"line_no": []
} | PCIBus *FUNC_0(qemu_irq *pic)
{
PREPPCIState *s;
PCIDevice *d;
int VAR_0;
s = qemu_mallocz(sizeof(PREPPCIState));
s->bus = pci_register_bus(NULL, "pci",
prep_set_irq, prep_map_irq, pic, 0, 4);
register_ioport_write(0xcf8, 4, 4, pci_prep_addr_writel, s);
... | [
"PCIBus *FUNC_0(qemu_irq *pic)\n{",
"PREPPCIState *s;",
"PCIDevice *d;",
"int VAR_0;",
"s = qemu_mallocz(sizeof(PREPPCIState));",
"s->bus = pci_register_bus(NULL, \"pci\",\nprep_set_irq, prep_map_irq, pic, 0, 4);",
"register_ioport_write(0xcf8, 4, 4, pci_prep_addr_writel, s);",
"register_ioport_read(0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
45
],
[
51,
53
],
[
55
],
[... |
20,226 | static DisplaySurface *qemu_create_dummy_surface(void)
{
static const char msg[] =
"This VM has no graphic display device.";
DisplaySurface *surface = qemu_create_displaysurface(640, 480);
pixman_color_t bg = color_table_rgb[0][COLOR_BLACK];
pixman_color_t fg = color_table_rgb[0][COLOR_WHI... | false | qemu | 521a580d2352ad30086babcabb91e6338e47cf62 | static DisplaySurface *qemu_create_dummy_surface(void)
{
static const char msg[] =
"This VM has no graphic display device.";
DisplaySurface *surface = qemu_create_displaysurface(640, 480);
pixman_color_t bg = color_table_rgb[0][COLOR_BLACK];
pixman_color_t fg = color_table_rgb[0][COLOR_WHI... | {
"code": [],
"line_no": []
} | static DisplaySurface *FUNC_0(void)
{
static const char VAR_0[] =
"This VM has no graphic display device.";
DisplaySurface *surface = qemu_create_displaysurface(640, 480);
pixman_color_t bg = color_table_rgb[0][COLOR_BLACK];
pixman_color_t fg = color_table_rgb[0][COLOR_WHITE];
pixman_... | [
"static DisplaySurface *FUNC_0(void)\n{",
"static const char VAR_0[] =\n\"This VM has no graphic display device.\";",
"DisplaySurface *surface = qemu_create_displaysurface(640, 480);",
"pixman_color_t bg = color_table_rgb[0][COLOR_BLACK];",
"pixman_color_t fg = color_table_rgb[0][COLOR_WHITE];",
"pixman_i... | [
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
]
] |
20,227 | int pit_get_out(PITState *pit, int channel, int64_t current_time)
{
PITChannelState *s = &pit->channels[channel];
return pit_get_out1(s, current_time);
}
| false | qemu | 64d7e9a421fea0ac50b44541f5521de455e7cd5d | int pit_get_out(PITState *pit, int channel, int64_t current_time)
{
PITChannelState *s = &pit->channels[channel];
return pit_get_out1(s, current_time);
}
| {
"code": [],
"line_no": []
} | int FUNC_0(PITState *VAR_0, int VAR_1, int64_t VAR_2)
{
PITChannelState *s = &VAR_0->channels[VAR_1];
return pit_get_out1(s, VAR_2);
}
| [
"int FUNC_0(PITState *VAR_0, int VAR_1, int64_t VAR_2)\n{",
"PITChannelState *s = &VAR_0->channels[VAR_1];",
"return pit_get_out1(s, VAR_2);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
20,228 | void mirror_start(const char *job_id, BlockDriverState *bs,
BlockDriverState *target, const char *replaces,
int64_t speed, uint32_t granularity, int64_t buf_size,
MirrorSyncMode mode, BlockMirrorBackingMode backing_mode,
BlockdevOnError on_sour... | false | qemu | b49f7ead8d222bcb8df0388f3177002f3e33d046 | void mirror_start(const char *job_id, BlockDriverState *bs,
BlockDriverState *target, const char *replaces,
int64_t speed, uint32_t granularity, int64_t buf_size,
MirrorSyncMode mode, BlockMirrorBackingMode backing_mode,
BlockdevOnError on_sour... | {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0, BlockDriverState *VAR_1,
BlockDriverState *VAR_2, const char *VAR_3,
int64_t VAR_4, uint32_t VAR_5, int64_t VAR_6,
MirrorSyncMode VAR_7, BlockMirrorBackingMode VAR_8,
BlockdevOnError VAR_9,
Bloc... | [
"void FUNC_0(const char *VAR_0, BlockDriverState *VAR_1,\nBlockDriverState *VAR_2, const char *VAR_3,\nint64_t VAR_4, uint32_t VAR_5, int64_t VAR_6,\nMirrorSyncMode VAR_7, BlockMirrorBackingMode VAR_8,\nBlockdevOnError VAR_9,\nBlockdevOnError VAR_10,\nbool VAR_11,\nBlockCompletionFunc *VAR_12,\nvoid *VAR_13, Error ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13,
15,
17,
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41,
43,
45
],
[
47
]
] |
20,229 | static int nfs_file_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp) {
NFSClient *client = bs->opaque;
int64_t ret;
QemuOpts *opts;
Error *local_err = NULL;
opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort);
qemu_opts_absorb_qdict(... | false | qemu | 0fb6395c0cb5046432a80d608ddde7a3b2f8a9ae | static int nfs_file_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp) {
NFSClient *client = bs->opaque;
int64_t ret;
QemuOpts *opts;
Error *local_err = NULL;
opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort);
qemu_opts_absorb_qdict(... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,
Error **VAR_3) {
NFSClient *client = VAR_0->opaque;
int64_t ret;
QemuOpts *opts;
Error *local_err = NULL;
opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort);
qemu_opts_absorb_qdict(op... | [
"static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3) {",
"NFSClient *client = VAR_0->opaque;",
"int64_t ret;",
"QemuOpts *opts;",
"Error *local_err = NULL;",
"opts = qemu_opts_create(&runtime_opts, NULL, 0, &error_abort);",
"qemu_opts_absorb_qdict(opts, VAR_1, &local_err)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
20,230 | static void memory_map_init(void)
{
system_memory = g_malloc(sizeof(*system_memory));
memory_region_init(system_memory, "system", INT64_MAX);
address_space_init(&address_space_memory, system_memory, "memory");
system_io = g_malloc(sizeof(*system_io));
memory_region_init(system_io, "io", 6553... | false | qemu | b40acf99bef69fa8ab0f9092ff162fde945eec12 | static void memory_map_init(void)
{
system_memory = g_malloc(sizeof(*system_memory));
memory_region_init(system_memory, "system", INT64_MAX);
address_space_init(&address_space_memory, system_memory, "memory");
system_io = g_malloc(sizeof(*system_io));
memory_region_init(system_io, "io", 6553... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
system_memory = g_malloc(sizeof(*system_memory));
memory_region_init(system_memory, "system", INT64_MAX);
address_space_init(&address_space_memory, system_memory, "memory");
system_io = g_malloc(sizeof(*system_io));
memory_region_init(system_io, "io", 65536);
... | [
"static void FUNC_0(void)\n{",
"system_memory = g_malloc(sizeof(*system_memory));",
"memory_region_init(system_memory, \"system\", INT64_MAX);",
"address_space_init(&address_space_memory, system_memory, \"memory\");",
"system_io = g_malloc(sizeof(*system_io));",
"memory_region_init(system_io, \"io\", 6553... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
20,231 | void virtio_blk_submit_multireq(BlockBackend *blk, MultiReqBuffer *mrb)
{
int i = 0, start = 0, num_reqs = 0, niov = 0, nb_sectors = 0;
int max_xfer_len = 0;
int64_t sector_num = 0;
if (mrb->num_reqs == 1) {
submit_requests(blk, mrb, 0, 1, -1);
mrb->num_reqs = 0;
return... | false | qemu | 24ce9a20260713e86377cfa78fb8699335759f4f | void virtio_blk_submit_multireq(BlockBackend *blk, MultiReqBuffer *mrb)
{
int i = 0, start = 0, num_reqs = 0, niov = 0, nb_sectors = 0;
int max_xfer_len = 0;
int64_t sector_num = 0;
if (mrb->num_reqs == 1) {
submit_requests(blk, mrb, 0, 1, -1);
mrb->num_reqs = 0;
return... | {
"code": [],
"line_no": []
} | void FUNC_0(BlockBackend *VAR_0, MultiReqBuffer *VAR_1)
{
int VAR_2 = 0, VAR_3 = 0, VAR_4 = 0, VAR_5 = 0, VAR_6 = 0;
int VAR_7 = 0;
int64_t sector_num = 0;
if (VAR_1->VAR_4 == 1) {
submit_requests(VAR_0, VAR_1, 0, 1, -1);
VAR_1->VAR_4 = 0;
return;
}
VAR_7 = ... | [
"void FUNC_0(BlockBackend *VAR_0, MultiReqBuffer *VAR_1)\n{",
"int VAR_2 = 0, VAR_3 = 0, VAR_4 = 0, VAR_5 = 0, VAR_6 = 0;",
"int VAR_7 = 0;",
"int64_t sector_num = 0;",
"if (VAR_1->VAR_4 == 1) {",
"submit_requests(VAR_0, VAR_1, 0, 1, -1);",
"VAR_1->VAR_4 = 0;",
"return;",
"}",
"VAR_7 = blk_get_max... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
55,
57,
59,
61
],
[
63
],
[
65
... |
20,232 | MemoryRegion *iotlb_to_region(hwaddr index)
{
return address_space_memory.dispatch->sections[index & ~TARGET_PAGE_MASK].mr;
}
| false | qemu | 53cb28cbfea038f8ad50132dc8a684e638c7d48b | MemoryRegion *iotlb_to_region(hwaddr index)
{
return address_space_memory.dispatch->sections[index & ~TARGET_PAGE_MASK].mr;
}
| {
"code": [],
"line_no": []
} | MemoryRegion *FUNC_0(hwaddr index)
{
return address_space_memory.dispatch->sections[index & ~TARGET_PAGE_MASK].mr;
}
| [
"MemoryRegion *FUNC_0(hwaddr index)\n{",
"return address_space_memory.dispatch->sections[index & ~TARGET_PAGE_MASK].mr;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
20,234 | static void restore_native_fp_fxrstor(CPUState *env)
{
struct fpxstate *fp = &fpx1;
int i, j, fptag;
fp->fpuc = env->fpuc;
fp->fpus = (env->fpus & ~0x3800) | (env->fpstt & 0x7) << 11;
fptag = 0;
for(i = 0; i < 8; i++)
fptag |= (env->fptags[i] << i);
fp->fptag = fptag ^ 0xf... | false | qemu | 4a1418e07bdcfaa3177739e04707ecaec75d89e1 | static void restore_native_fp_fxrstor(CPUState *env)
{
struct fpxstate *fp = &fpx1;
int i, j, fptag;
fp->fpuc = env->fpuc;
fp->fpus = (env->fpus & ~0x3800) | (env->fpstt & 0x7) << 11;
fptag = 0;
for(i = 0; i < 8; i++)
fptag |= (env->fptags[i] << i);
fp->fptag = fptag ^ 0xf... | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUState *VAR_0)
{
struct fpxstate *VAR_1 = &fpx1;
int VAR_2, VAR_3, VAR_4;
VAR_1->fpuc = VAR_0->fpuc;
VAR_1->fpus = (VAR_0->fpus & ~0x3800) | (VAR_0->fpstt & 0x7) << 11;
VAR_4 = 0;
for(VAR_2 = 0; VAR_2 < 8; VAR_2++)
VAR_4 |= (VAR_0->fptags[VAR_2] << VAR_2);
... | [
"static void FUNC_0(CPUState *VAR_0)\n{",
"struct fpxstate *VAR_1 = &fpx1;",
"int VAR_2, VAR_3, VAR_4;",
"VAR_1->fpuc = VAR_0->fpuc;",
"VAR_1->fpus = (VAR_0->fpus & ~0x3800) | (VAR_0->fpstt & 0x7) << 11;",
"VAR_4 = 0;",
"for(VAR_2 = 0; VAR_2 < 8; VAR_2++)",
"VAR_4 |= (VAR_0->fptags[VAR_2] << VAR_2);",... | [
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
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47... |
20,235 | static int qemu_lock_fcntl(int fd, int64_t start, int64_t len, int fl_type)
{
int ret;
struct flock fl = {
.l_whence = SEEK_SET,
.l_start = start,
.l_len = len,
.l_type = fl_type,
};
ret = fcntl(fd, QEMU_SETLK, &fl);
return ret == -1 ? -errno : 0;
}
| false | qemu | ca749954b09b89e22cd69c4949fb7e689b057963 | static int qemu_lock_fcntl(int fd, int64_t start, int64_t len, int fl_type)
{
int ret;
struct flock fl = {
.l_whence = SEEK_SET,
.l_start = start,
.l_len = len,
.l_type = fl_type,
};
ret = fcntl(fd, QEMU_SETLK, &fl);
return ret == -1 ? -errno : 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(int VAR_0, int64_t VAR_1, int64_t VAR_2, int VAR_3)
{
int VAR_4;
struct flock VAR_5 = {
.l_whence = SEEK_SET,
.l_start = VAR_1,
.l_len = VAR_2,
.l_type = VAR_3,
};
VAR_4 = fcntl(VAR_0, QEMU_SETLK, &VAR_5);
return VAR_4 == -1 ? -errno ... | [
"static int FUNC_0(int VAR_0, int64_t VAR_1, int64_t VAR_2, int VAR_3)\n{",
"int VAR_4;",
"struct flock VAR_5 = {",
".l_whence = SEEK_SET,\n.l_start = VAR_1,\n.l_len = VAR_2,\n.l_type = VAR_3,\n};",
"VAR_4 = fcntl(VAR_0, QEMU_SETLK, &VAR_5);",
"return VAR_4 == -1 ? -errno : 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11,
13,
15,
17
],
[
19
],
[
21
],
[
23
]
] |
20,236 | static bool qemu_co_queue_do_restart(CoQueue *queue, bool single)
{
Coroutine *next;
CoQueueNextData *data;
if (QTAILQ_EMPTY(&queue->entries)) {
return false;
}
data = g_slice_new(CoQueueNextData);
data->bh = aio_bh_new(queue->ctx, qemu_co_queue_next_bh, data);
QTAILQ_IN... | false | qemu | 02ffb504485f0920cfc75a0982a602f824a9a4f4 | static bool qemu_co_queue_do_restart(CoQueue *queue, bool single)
{
Coroutine *next;
CoQueueNextData *data;
if (QTAILQ_EMPTY(&queue->entries)) {
return false;
}
data = g_slice_new(CoQueueNextData);
data->bh = aio_bh_new(queue->ctx, qemu_co_queue_next_bh, data);
QTAILQ_IN... | {
"code": [],
"line_no": []
} | static bool FUNC_0(CoQueue *queue, bool single)
{
Coroutine *next;
CoQueueNextData *data;
if (QTAILQ_EMPTY(&queue->entries)) {
return false;
}
data = g_slice_new(CoQueueNextData);
data->bh = aio_bh_new(queue->ctx, qemu_co_queue_next_bh, data);
QTAILQ_INIT(&data->entries)... | [
"static bool FUNC_0(CoQueue *queue, bool single)\n{",
"Coroutine *next;",
"CoQueueNextData *data;",
"if (QTAILQ_EMPTY(&queue->entries)) {",
"return false;",
"}",
"data = g_slice_new(CoQueueNextData);",
"data->bh = aio_bh_new(queue->ctx, qemu_co_queue_next_bh, data);",
"QTAILQ_INIT(&data->entries);",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47... |
20,239 | void bdrv_dirty_bitmap_deserialize_zeroes(BdrvDirtyBitmap *bitmap,
uint64_t start, uint64_t count,
bool finish)
{
hbitmap_deserialize_zeroes(bitmap->bitmap, start, count, finish);
}
| false | qemu | 86f6ae67e157362f3b141649874213ce01dcc622 | void bdrv_dirty_bitmap_deserialize_zeroes(BdrvDirtyBitmap *bitmap,
uint64_t start, uint64_t count,
bool finish)
{
hbitmap_deserialize_zeroes(bitmap->bitmap, start, count, finish);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(BdrvDirtyBitmap *VAR_0,
uint64_t VAR_1, uint64_t VAR_2,
bool VAR_3)
{
hbitmap_deserialize_zeroes(VAR_0->VAR_0, VAR_1, VAR_2, VAR_3);
}
| [
"void FUNC_0(BdrvDirtyBitmap *VAR_0,\nuint64_t VAR_1, uint64_t VAR_2,\nbool VAR_3)\n{",
"hbitmap_deserialize_zeroes(VAR_0->VAR_0, VAR_1, VAR_2, VAR_3);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
]
] |
20,242 | int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext *pb)
{
enum AVCodecID codec_id;
unsigned v;
int len, tag;
int ret;
int object_type_id = avio_r8(pb);
avio_r8(pb); /* stream type */
avio_rb24(pb); /* buffer size db */
v = avio_rb32(pb);
// ... | false | FFmpeg | 074775462283e59657fbd18e76435371a2b80fda | int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext *pb)
{
enum AVCodecID codec_id;
unsigned v;
int len, tag;
int ret;
int object_type_id = avio_r8(pb);
avio_r8(pb);
avio_rb24(pb);
v = avio_rb32(pb);
#if FF_API_LAVF_AVCTX
FF_DISABLE_DEPR... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, AVIOContext *VAR_2)
{
enum AVCodecID VAR_3;
unsigned VAR_4;
int VAR_5, VAR_6;
int VAR_7;
int VAR_8 = avio_r8(VAR_2);
avio_r8(VAR_2);
avio_rb24(VAR_2);
VAR_4 = avio_rb32(VAR_2);
#if FF_API_LAVF_AVCTX
FF_DISABLE_DEP... | [
"int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, AVIOContext *VAR_2)\n{",
"enum AVCodecID VAR_3;",
"unsigned VAR_4;",
"int VAR_5, VAR_6;",
"int VAR_7;",
"int VAR_8 = avio_r8(VAR_2);",
"avio_r8(VAR_2);",
"avio_rb24(VAR_2);",
"VAR_4 = avio_rb32(VAR_2);",
"#if FF_API_LAVF_AVCTX\nFF_DISABLE_DEPREC... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27,
29,
31,
33
],
[
35,
37,
41
],
[
45
],
[
47,
49
],
[
51
],
[
53
],
[
55
],
[
57
... |
20,244 | int av_image_check_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx)
{
ImgUtils imgutils = { &imgutils_class, log_offset, log_ctx };
if ((int)w>0 && (int)h>0 && (w+128)*(uint64_t)(h+128) < INT_MAX/8)
return 0;
av_log(&imgutils, AV_LOG_ERROR, "Picture size %ux%u is invalid\... | false | FFmpeg | 7c91b3021c7af9bea6b65f51d645f7574a883870 | int av_image_check_size(unsigned int w, unsigned int h, int log_offset, void *log_ctx)
{
ImgUtils imgutils = { &imgutils_class, log_offset, log_ctx };
if ((int)w>0 && (int)h>0 && (w+128)*(uint64_t)(h+128) < INT_MAX/8)
return 0;
av_log(&imgutils, AV_LOG_ERROR, "Picture size %ux%u is invalid\... | {
"code": [],
"line_no": []
} | int FUNC_0(unsigned int VAR_0, unsigned int VAR_1, int VAR_2, void *VAR_3)
{
ImgUtils imgutils = { &imgutils_class, VAR_2, VAR_3 };
if ((int)VAR_0>0 && (int)VAR_1>0 && (VAR_0+128)*(uint64_t)(VAR_1+128) < INT_MAX/8)
return 0;
av_log(&imgutils, AV_LOG_ERROR, "Picture size %ux%u is invalid\n",... | [
"int FUNC_0(unsigned int VAR_0, unsigned int VAR_1, int VAR_2, void *VAR_3)\n{",
"ImgUtils imgutils = { &imgutils_class, VAR_2, VAR_3 };",
"if ((int)VAR_0>0 && (int)VAR_1>0 && (VAR_0+128)*(uint64_t)(VAR_1+128) < INT_MAX/8)\nreturn 0;",
"av_log(&imgutils, AV_LOG_ERROR, \"Picture size %ux%u is invalid\\n\", VAR... | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17
],
[
19
]
] |
20,245 | void qemu_aio_unref(void *p)
{
BlockAIOCB *acb = p;
assert(acb->refcnt > 0);
if (--acb->refcnt == 0) {
g_free(acb);
}
}
| false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | void qemu_aio_unref(void *p)
{
BlockAIOCB *acb = p;
assert(acb->refcnt > 0);
if (--acb->refcnt == 0) {
g_free(acb);
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void *VAR_0)
{
BlockAIOCB *acb = VAR_0;
assert(acb->refcnt > 0);
if (--acb->refcnt == 0) {
g_free(acb);
}
}
| [
"void FUNC_0(void *VAR_0)\n{",
"BlockAIOCB *acb = VAR_0;",
"assert(acb->refcnt > 0);",
"if (--acb->refcnt == 0) {",
"g_free(acb);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
20,246 | void helper_store_fpscr(CPUPPCState *env, uint64_t arg, uint32_t mask)
{
/*
* We use only the 32 LSB of the incoming fpr
*/
uint32_t prev, new;
int i;
prev = env->fpscr;
new = (uint32_t)arg;
new &= ~0x60000000;
new |= prev & 0x60000000;
for (i = 0; i < 8; i++) {
... | false | qemu | 7d08d85645def18eac2a9d672c1868a35e0bcf79 | void helper_store_fpscr(CPUPPCState *env, uint64_t arg, uint32_t mask)
{
uint32_t prev, new;
int i;
prev = env->fpscr;
new = (uint32_t)arg;
new &= ~0x60000000;
new |= prev & 0x60000000;
for (i = 0; i < 8; i++) {
if (mask & (1 << i)) {
env->fpscr &= ~... | {
"code": [],
"line_no": []
} | void FUNC_0(CPUPPCState *VAR_0, uint64_t VAR_1, uint32_t VAR_2)
{
uint32_t prev, new;
int VAR_3;
prev = VAR_0->fpscr;
new = (uint32_t)VAR_1;
new &= ~0x60000000;
new |= prev & 0x60000000;
for (VAR_3 = 0; VAR_3 < 8; VAR_3++) {
if (VAR_2 & (1 << VAR_3)) {
... | [
"void FUNC_0(CPUPPCState *VAR_0, uint64_t VAR_1, uint32_t VAR_2)\n{",
"uint32_t prev, new;",
"int VAR_3;",
"prev = VAR_0->fpscr;",
"new = (uint32_t)VAR_1;",
"new &= ~0x60000000;",
"new |= prev & 0x60000000;",
"for (VAR_3 = 0; VAR_3 < 8; VAR_3++) {",
"if (VAR_2 & (1 << VAR_3)) {",
"VAR_0->fpscr &= ... | [
0,
0,
0,
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
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
... |
20,247 | static void gen_compute_branch1 (CPUState *env, DisasContext *ctx, uint32_t op,
int32_t cc, int32_t offset)
{
target_ulong btarget;
const char *opn = "cp1 cond branch";
TCGv t0 = tcg_temp_local_new(TCG_TYPE_TL);
TCGv t1 = tcg_temp_local_new(TCG_TYPE_TL);
if ... | false | qemu | a6e92a658b99b4ab3b19b2f32352005e6190556f | static void gen_compute_branch1 (CPUState *env, DisasContext *ctx, uint32_t op,
int32_t cc, int32_t offset)
{
target_ulong btarget;
const char *opn = "cp1 cond branch";
TCGv t0 = tcg_temp_local_new(TCG_TYPE_TL);
TCGv t1 = tcg_temp_local_new(TCG_TYPE_TL);
if ... | {
"code": [],
"line_no": []
} | static void FUNC_0 (CPUState *VAR_0, DisasContext *VAR_1, uint32_t VAR_2,
int32_t VAR_3, int32_t VAR_4)
{
target_ulong btarget;
const char *VAR_5 = "cp1 cond branch";
TCGv t0 = tcg_temp_local_new(TCG_TYPE_TL);
TCGv t1 = tcg_temp_local_new(TCG_TYPE_TL);
if (V... | [
"static void FUNC_0 (CPUState *VAR_0, DisasContext *VAR_1, uint32_t VAR_2,\nint32_t VAR_3, int32_t VAR_4)\n{",
"target_ulong btarget;",
"const char *VAR_5 = \"cp1 cond branch\";",
"TCGv t0 = tcg_temp_local_new(TCG_TYPE_TL);",
"TCGv t1 = tcg_temp_local_new(TCG_TYPE_TL);",
"if (VAR_3 != 0)\ncheck_insn(VAR_0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
20,249 | void kvm_s390_crw_mchk(void)
{
struct kvm_s390_irq irq = {
.type = KVM_S390_MCHK,
.u.mchk.cr14 = 1 << 28,
.u.mchk.mcic = build_channel_report_mcic(),
};
kvm_s390_floating_interrupt(&irq);
}
| false | qemu | b700d75eda81c371c575b759de8e260d9f147494 | void kvm_s390_crw_mchk(void)
{
struct kvm_s390_irq irq = {
.type = KVM_S390_MCHK,
.u.mchk.cr14 = 1 << 28,
.u.mchk.mcic = build_channel_report_mcic(),
};
kvm_s390_floating_interrupt(&irq);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
struct kvm_s390_irq VAR_0 = {
.type = KVM_S390_MCHK,
.u.mchk.cr14 = 1 << 28,
.u.mchk.mcic = build_channel_report_mcic(),
};
kvm_s390_floating_interrupt(&VAR_0);
}
| [
"void FUNC_0(void)\n{",
"struct kvm_s390_irq VAR_0 = {",
".type = KVM_S390_MCHK,\n.u.mchk.cr14 = 1 << 28,\n.u.mchk.mcic = build_channel_report_mcic(),\n};",
"kvm_s390_floating_interrupt(&VAR_0);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11,
13
],
[
15
],
[
17
]
] |
20,250 | void timerlistgroup_init(QEMUTimerListGroup *tlg,
QEMUTimerListNotifyCB *cb, void *opaque)
{
QEMUClockType type;
for (type = 0; type < QEMU_CLOCK_MAX; type++) {
tlg->tl[type] = timerlist_new(type, cb, opaque);
}
}
| false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | void timerlistgroup_init(QEMUTimerListGroup *tlg,
QEMUTimerListNotifyCB *cb, void *opaque)
{
QEMUClockType type;
for (type = 0; type < QEMU_CLOCK_MAX; type++) {
tlg->tl[type] = timerlist_new(type, cb, opaque);
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(QEMUTimerListGroup *VAR_0,
QEMUTimerListNotifyCB *VAR_1, void *VAR_2)
{
QEMUClockType type;
for (type = 0; type < QEMU_CLOCK_MAX; type++) {
VAR_0->tl[type] = timerlist_new(type, VAR_1, VAR_2);
}
}
| [
"void FUNC_0(QEMUTimerListGroup *VAR_0,\nQEMUTimerListNotifyCB *VAR_1, void *VAR_2)\n{",
"QEMUClockType type;",
"for (type = 0; type < QEMU_CLOCK_MAX; type++) {",
"VAR_0->tl[type] = timerlist_new(type, VAR_1, VAR_2);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
20,251 | static ssize_t block_crypto_init_func(QCryptoBlock *block,
size_t headerlen,
Error **errp,
void *opaque)
{
struct BlockCryptoCreateData *data = opaque;
int ret;
/* User provided size sh... | false | qemu | 375092332eeaa6e47561ce47fd36144cdaf964d0 | static ssize_t block_crypto_init_func(QCryptoBlock *block,
size_t headerlen,
Error **errp,
void *opaque)
{
struct BlockCryptoCreateData *data = opaque;
int ret;
data->size +... | {
"code": [],
"line_no": []
} | static ssize_t FUNC_0(QCryptoBlock *block,
size_t headerlen,
Error **errp,
void *opaque)
{
struct BlockCryptoCreateData *VAR_0 = opaque;
int VAR_1;
VAR_0->size += headerlen;... | [
"static ssize_t FUNC_0(QCryptoBlock *block,\nsize_t headerlen,\nError **errp,\nvoid *opaque)\n{",
"struct BlockCryptoCreateData *VAR_0 = opaque;",
"int VAR_1;",
"VAR_0->size += headerlen;",
"qemu_opt_set_number(VAR_0->opts, BLOCK_OPT_SIZE, VAR_0->size, &error_abort);",
"VAR_1 = bdrv_create_file(VAR_0->fil... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.