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 |
|---|---|---|---|---|---|---|---|---|---|---|
24,628 | void ff_put_h264_qpel8_mc13_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_hv_qrt_8w_msa(src + stride - 2,
src - (stride * 2), stride, dst, stride, 8);
}
| false | FFmpeg | 2aab7c2dfaca4386c38e5d565cd2bf73096bcc86 | void ff_put_h264_qpel8_mc13_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_hv_qrt_8w_msa(src + stride - 2,
src - (stride * 2), stride, dst, stride, 8);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,
ptrdiff_t VAR_2)
{
avc_luma_hv_qrt_8w_msa(VAR_1 + VAR_2 - 2,
VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2, 8);
}
| [
"void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{",
"avc_luma_hv_qrt_8w_msa(VAR_1 + VAR_2 - 2,\nVAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2, 8);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11
]
] |
24,630 | static void kvm_arm_gic_get(GICState *s)
{
uint32_t reg;
int i;
int cpu;
if (!kvm_arm_gic_can_save_restore(s)) {
DPRINTF("Cannot get kernel gic state, no kernel interface");
return;
}
/*****************************************************************
* ... | true | qemu | eb8b9530b0c618d4f2e728eae10d89239d35b0c0 | static void kvm_arm_gic_get(GICState *s)
{
uint32_t reg;
int i;
int cpu;
if (!kvm_arm_gic_can_save_restore(s)) {
DPRINTF("Cannot get kernel gic state, no kernel interface");
return;
}
kvm_gicd_access(s, 0x0, 0, ®, false);
s->enabled ... | {
"code": [
" for_each_irq_reg(i, s->num_irq, 1) {",
" kvm_gicd_access(s, 0x80 + (i * 4), 0, ®, false);",
" if (reg != 0) {",
" fprintf(stderr, \"Unsupported GICD_IGROUPRn value: %08x\\n\",",
" reg);",
" abort();"
],
"line_no": [... | static void FUNC_0(GICState *VAR_0)
{
uint32_t reg;
int VAR_1;
int VAR_2;
if (!kvm_arm_gic_can_save_restore(VAR_0)) {
DPRINTF("Cannot get kernel gic state, no kernel interface");
return;
}
kvm_gicd_access(VAR_0, 0x0, 0, ®, false);
VA... | [
"static void FUNC_0(GICState *VAR_0)\n{",
"uint32_t reg;",
"int VAR_1;",
"int VAR_2;",
"if (!kvm_arm_gic_can_save_restore(VAR_0)) {",
"DPRINTF(\"Cannot get kernel gic state, no kernel interface\");",
"return;",
"}",
"kvm_gicd_access(VAR_0, 0x0, 0, ®, false);",
"VAR_0->enabled = reg & 1;",
"kv... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
33
],
[
35
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51,
53
],
[
55
],
[
57
],
[
63
],
[
69
],
[... |
24,633 | static void xvid_idct_add(uint8_t *dest, ptrdiff_t line_size, int16_t *block)
{
ff_xvid_idct(block);
ff_add_pixels_clamped(block, dest, line_size);
}
| true | FFmpeg | 32baeafeee4f8446c2c3720b9223ad2166ca9d30 | static void xvid_idct_add(uint8_t *dest, ptrdiff_t line_size, int16_t *block)
{
ff_xvid_idct(block);
ff_add_pixels_clamped(block, dest, line_size);
}
| {
"code": [
" ff_add_pixels_clamped(block, dest, line_size);",
" ff_add_pixels_clamped(block, dest, line_size);"
],
"line_no": [
7,
7
]
} | static void FUNC_0(uint8_t *VAR_0, ptrdiff_t VAR_1, int16_t *VAR_2)
{
ff_xvid_idct(VAR_2);
ff_add_pixels_clamped(VAR_2, VAR_0, VAR_1);
}
| [
"static void FUNC_0(uint8_t *VAR_0, ptrdiff_t VAR_1, int16_t *VAR_2)\n{",
"ff_xvid_idct(VAR_2);",
"ff_add_pixels_clamped(VAR_2, VAR_0, VAR_1);",
"}"
] | [
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
24,634 | print_syscall_ret_addr(const struct syscallname *name, abi_long ret)
{
char *errstr = NULL;
if (ret == -1) {
errstr = target_strerror(errno);
}
if ((ret == -1) && errstr) {
gemu_log(" = -1 errno=%d (%s)\n", errno, errstr);
} else {
gemu_log(" = 0x" TARGET_ABI_FMT_l... | true | qemu | 2a7e12455c1d388e41f4c8d2231fb48a968792cd | print_syscall_ret_addr(const struct syscallname *name, abi_long ret)
{
char *errstr = NULL;
if (ret == -1) {
errstr = target_strerror(errno);
}
if ((ret == -1) && errstr) {
gemu_log(" = -1 errno=%d (%s)\n", errno, errstr);
} else {
gemu_log(" = 0x" TARGET_ABI_FMT_l... | {
"code": [
" if (ret == -1) {",
" errstr = target_strerror(errno);",
" if ((ret == -1) && errstr) {",
" gemu_log(\" = -1 errno=%d (%s)\\n\", errno, errstr);"
],
"line_no": [
9,
11,
15,
17
]
} | FUNC_0(const struct syscallname *VAR_0, abi_long VAR_1)
{
char *VAR_2 = NULL;
if (VAR_1 == -1) {
VAR_2 = target_strerror(errno);
}
if ((VAR_1 == -1) && VAR_2) {
gemu_log(" = -1 errno=%d (%s)\n", errno, VAR_2);
} else {
gemu_log(" = 0x" TARGET_ABI_FMT_lx "\n", VAR_1... | [
"FUNC_0(const struct syscallname *VAR_0, abi_long VAR_1)\n{",
"char *VAR_2 = NULL;",
"if (VAR_1 == -1) {",
"VAR_2 = target_strerror(errno);",
"}",
"if ((VAR_1 == -1) && VAR_2) {",
"gemu_log(\" = -1 errno=%d (%s)\\n\", errno, VAR_2);",
"} else {",
"gemu_log(\" = 0x\" TARGET_ABI_FMT_lx \"\\n\", VAR_1)... | [
0,
0,
1,
1,
0,
1,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
24,636 | static int rv30_decode_mb_info(RV34DecContext *r)
{
static const int rv30_p_types[6] = { RV34_MB_SKIP, RV34_MB_P_16x16, RV34_MB_P_8x8, -1, RV34_MB_TYPE_INTRA, RV34_MB_TYPE_INTRA16x16 };
static const int rv30_b_types[6] = { RV34_MB_SKIP, RV34_MB_B_DIRECT, RV34_MB_B_FORWARD, RV34_MB_B_BACKWARD, RV34_MB_TYPE_IN... | true | FFmpeg | 18d1d5886bb78e4d0e11a2a0193fda765e05805d | static int rv30_decode_mb_info(RV34DecContext *r)
{
static const int rv30_p_types[6] = { RV34_MB_SKIP, RV34_MB_P_16x16, RV34_MB_P_8x8, -1, RV34_MB_TYPE_INTRA, RV34_MB_TYPE_INTRA16x16 };
static const int rv30_b_types[6] = { RV34_MB_SKIP, RV34_MB_B_DIRECT, RV34_MB_B_FORWARD, RV34_MB_B_BACKWARD, RV34_MB_TYPE_IN... | {
"code": [
" if(code > 11){"
],
"line_no": [
17
]
} | static int FUNC_0(RV34DecContext *VAR_0)
{
static const int VAR_1[6] = { RV34_MB_SKIP, RV34_MB_P_16x16, RV34_MB_P_8x8, -1, RV34_MB_TYPE_INTRA, RV34_MB_TYPE_INTRA16x16 };
static const int VAR_2[6] = { RV34_MB_SKIP, RV34_MB_B_DIRECT, RV34_MB_B_FORWARD, RV34_MB_B_BACKWARD, RV34_MB_TYPE_INTRA, RV34_MB_TYPE_INTRA... | [
"static int FUNC_0(RV34DecContext *VAR_0)\n{",
"static const int VAR_1[6] = { RV34_MB_SKIP, RV34_MB_P_16x16, RV34_MB_P_8x8, -1, RV34_MB_TYPE_INTRA, RV34_MB_TYPE_INTRA16x16 };",
"static const int VAR_2[6] = { RV34_MB_SKIP, RV34_MB_B_DIRECT, RV34_MB_B_FORWARD, RV34_MB_B_BACKWARD, RV34_MB_TYPE_INTRA, RV34_MB_TYPE_... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37,
39
],
[
41
]
] |
24,637 | static void send_framebuffer_update_hextile(VncState *vs, int x, int y, int w, int h)
{
int i, j;
int has_fg, has_bg;
uint8_t *last_fg, *last_bg;
vnc_framebuffer_update(vs, x, y, w, h, 5);
last_fg = (uint8_t *) malloc(vs->depth);
last_bg = (uint8_t *) malloc(vs->depth);
has_fg = ... | true | qemu | 6cec5487990bf3f1f22b3fcb871978255e92ae0d | static void send_framebuffer_update_hextile(VncState *vs, int x, int y, int w, int h)
{
int i, j;
int has_fg, has_bg;
uint8_t *last_fg, *last_bg;
vnc_framebuffer_update(vs, x, y, w, h, 5);
last_fg = (uint8_t *) malloc(vs->depth);
last_bg = (uint8_t *) malloc(vs->depth);
has_fg = ... | {
"code": [
" last_fg = (uint8_t *) malloc(vs->depth);",
" last_bg = (uint8_t *) malloc(vs->depth);"
],
"line_no": [
17,
19
]
} | static void FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)
{
int VAR_5, VAR_6;
int VAR_7, VAR_8;
uint8_t *last_fg, *last_bg;
vnc_framebuffer_update(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, 5);
last_fg = (uint8_t *) malloc(VAR_0->depth);
last_bg = (uint8_t *) malloc(VAR_... | [
"static void FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6;",
"int VAR_7, VAR_8;",
"uint8_t *last_fg, *last_bg;",
"vnc_framebuffer_update(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, 5);",
"last_fg = (uint8_t *) malloc(VAR_0->depth);",
"last_bg = (uint8_t *) malloc(VAR... | [
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
]
] |
24,638 | static av_cold int j2kenc_init(AVCodecContext *avctx)
{
int i, ret;
Jpeg2000EncoderContext *s = avctx->priv_data;
Jpeg2000CodingStyle *codsty = &s->codsty;
Jpeg2000QuantStyle *qntsty = &s->qntsty;
s->avctx = avctx;
av_log(s->avctx, AV_LOG_DEBUG, "init\n");
// defaults:
// T... | true | FFmpeg | 2580bae54a45d6aaf85ddc5e780389e7e90b2c86 | static av_cold int j2kenc_init(AVCodecContext *avctx)
{
int i, ret;
Jpeg2000EncoderContext *s = avctx->priv_data;
Jpeg2000CodingStyle *codsty = &s->codsty;
Jpeg2000QuantStyle *qntsty = &s->qntsty;
s->avctx = avctx;
av_log(s->avctx, AV_LOG_DEBUG, "init\n");
memset(cod... | {
"code": [
" if (ret=init_tiles(s))"
],
"line_no": [
105
]
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
int VAR_0, VAR_1;
Jpeg2000EncoderContext *s = avctx->priv_data;
Jpeg2000CodingStyle *codsty = &s->codsty;
Jpeg2000QuantStyle *qntsty = &s->qntsty;
s->avctx = avctx;
av_log(s->avctx, AV_LOG_DEBUG, "init\n");
memset(co... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"int VAR_0, VAR_1;",
"Jpeg2000EncoderContext *s = avctx->priv_data;",
"Jpeg2000CodingStyle *codsty = &s->codsty;",
"Jpeg2000QuantStyle *qntsty = &s->qntsty;",
"s->avctx = avctx;",
"av_log(s->avctx, AV_LOG_DEBUG, \"init\\n\");",
"memset(codsty->lo... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
],
[
51,
53
],
[
55,
57
],
[... |
24,639 | static void ppc405_ocm_init(CPUPPCState *env)
{
ppc405_ocm_t *ocm;
ocm = g_malloc0(sizeof(ppc405_ocm_t));
/* XXX: Size is 4096 or 0x04000000 */
memory_region_init_ram(&ocm->isarc_ram, NULL, "ppc405.ocm", 4096,
&error_abort);
vmstate_register_ram_global(&ocm->isarc... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | static void ppc405_ocm_init(CPUPPCState *env)
{
ppc405_ocm_t *ocm;
ocm = g_malloc0(sizeof(ppc405_ocm_t));
memory_region_init_ram(&ocm->isarc_ram, NULL, "ppc405.ocm", 4096,
&error_abort);
vmstate_register_ram_global(&ocm->isarc_ram);
memory_region_init_alias(... | {
"code": [
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" ... | static void FUNC_0(CPUPPCState *VAR_0)
{
ppc405_ocm_t *ocm;
ocm = g_malloc0(sizeof(ppc405_ocm_t));
memory_region_init_ram(&ocm->isarc_ram, NULL, "ppc405.ocm", 4096,
&error_abort);
vmstate_register_ram_global(&ocm->isarc_ram);
memory_region_init_alias(&ocm->d... | [
"static void FUNC_0(CPUPPCState *VAR_0)\n{",
"ppc405_ocm_t *ocm;",
"ocm = g_malloc0(sizeof(ppc405_ocm_t));",
"memory_region_init_ram(&ocm->isarc_ram, NULL, \"ppc405.ocm\", 4096,\n&error_abort);",
"vmstate_register_ram_global(&ocm->isarc_ram);",
"memory_region_init_alias(&ocm->dsarc_ram, NULL, \"ppc405.dsa... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13,
15
],
[
17
],
[
19,
21
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33,
35
],
[
37,
39
],
[
41
]
] |
24,640 | static int serial_load(QEMUFile *f, void *opaque, int version_id)
{
SerialState *s = opaque;
if(version_id > 2)
return -EINVAL;
if (version_id >= 2)
qemu_get_be16s(f, &s->divider);
else
s->divider = qemu_get_byte(f);
qemu_get_8s(f,&s->rbr);
qemu_get_8s(f,&s-... | true | qemu | 81174dae3f9189519cd60c7b79e91c291b021bbe | static int serial_load(QEMUFile *f, void *opaque, int version_id)
{
SerialState *s = opaque;
if(version_id > 2)
return -EINVAL;
if (version_id >= 2)
qemu_get_be16s(f, &s->divider);
else
s->divider = qemu_get_byte(f);
qemu_get_8s(f,&s->rbr);
qemu_get_8s(f,&s-... | {
"code": [
" SerialState *s = opaque;",
" if(version_id > 2)"
],
"line_no": [
5,
9
]
} | static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)
{
SerialState *s = VAR_1;
if(VAR_2 > 2)
return -EINVAL;
if (VAR_2 >= 2)
qemu_get_be16s(VAR_0, &s->divider);
else
s->divider = qemu_get_byte(VAR_0);
qemu_get_8s(VAR_0,&s->rbr);
qemu_get_8s(VAR_0,&s->i... | [
"static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, int VAR_2)\n{",
"SerialState *s = VAR_1;",
"if(VAR_2 > 2)\nreturn -EINVAL;",
"if (VAR_2 >= 2)\nqemu_get_be16s(VAR_0, &s->divider);",
"else\ns->divider = qemu_get_byte(VAR_0);",
"qemu_get_8s(VAR_0,&s->rbr);",
"qemu_get_8s(VAR_0,&s->ier);",
"qemu_get_8s(V... | [
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15,
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
]
] |
24,641 | void ff_release_unused_pictures(MpegEncContext *s, int remove_current)
{
int i;
/* release non reference frames */
for(i=0; i<s->picture_count; i++){
if(s->picture[i].data[0] && !s->picture[i].reference
&& s->picture[i].owner2 == s
&& (remove_current || &s->picture[i] ... | true | FFmpeg | 0424e052f83adc422d8a746e3cdc5ab6bc28679e | void ff_release_unused_pictures(MpegEncContext *s, int remove_current)
{
int i;
for(i=0; i<s->picture_count; i++){
if(s->picture[i].data[0] && !s->picture[i].reference
&& s->picture[i].owner2 == s
&& (remove_current || &s->picture[i] != s->current_picture_ptr)
... | {
"code": [
" && s->picture[i].owner2 == s"
],
"line_no": [
15
]
} | void FUNC_0(MpegEncContext *VAR_0, int VAR_1)
{
int VAR_2;
for(VAR_2=0; VAR_2<VAR_0->picture_count; VAR_2++){
if(VAR_0->picture[VAR_2].data[0] && !VAR_0->picture[VAR_2].reference
&& VAR_0->picture[VAR_2].owner2 == VAR_0
&& (VAR_1 || &VAR_0->picture[VAR_2] != VAR_0->cu... | [
"void FUNC_0(MpegEncContext *VAR_0, int VAR_1)\n{",
"int VAR_2;",
"for(VAR_2=0; VAR_2<VAR_0->picture_count; VAR_2++){",
"if(VAR_0->picture[VAR_2].data[0] && !VAR_0->picture[VAR_2].reference\n&& VAR_0->picture[VAR_2].owner2 == VAR_0\n&& (VAR_1 || &VAR_0->picture[VAR_2] != VAR_0->current_picture_ptr)\n){",
"f... | [
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13,
15,
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
24,642 | static inline void vmsvga_update_rect(struct vmsvga_state_s *s,
int x, int y, int w, int h)
{
#ifndef DIRECT_VRAM
int line = h;
int bypl = s->bypp * s->width;
int width = s->bypp * w;
int start = s->bypp * x + bypl * y;
uint8_t *src = s->vram + start;
uint8_t *dst = s->d... | true | qemu | a8fbaf96e0791d72078d22b75c5f3c1f1d1ee45d | static inline void vmsvga_update_rect(struct vmsvga_state_s *s,
int x, int y, int w, int h)
{
#ifndef DIRECT_VRAM
int line = h;
int bypl = s->bypp * s->width;
int width = s->bypp * w;
int start = s->bypp * x + bypl * y;
uint8_t *src = s->vram + start;
uint8_t *dst = s->d... | {
"code": [
" int line = h;",
" int bypl = s->bypp * s->width;",
" int width = s->bypp * w;",
" int start = s->bypp * x + bypl * y;",
" uint8_t *src = s->vram + start;",
" uint8_t *dst = s->ds->data + start;"
],
"line_no": [
9,
11,
13,
15,
17,
19
... | static inline void FUNC_0(struct vmsvga_state_s *VAR_0,
int VAR_1, int VAR_2, int VAR_3, int VAR_4)
{
#ifndef DIRECT_VRAM
int VAR_5 = VAR_4;
int VAR_6 = VAR_0->bypp * VAR_0->VAR_7;
int VAR_7 = VAR_0->bypp * VAR_3;
int VAR_8 = VAR_0->bypp * VAR_1 + VAR_6 * VAR_2;
uint8_t *src ... | [
"static inline void FUNC_0(struct vmsvga_state_s *VAR_0,\nint VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{",
"#ifndef DIRECT_VRAM\nint VAR_5 = VAR_4;",
"int VAR_6 = VAR_0->bypp * VAR_0->VAR_7;",
"int VAR_7 = VAR_0->bypp * VAR_3;",
"int VAR_8 = VAR_0->bypp * VAR_1 + VAR_6 * VAR_2;",
"uint8_t *src = VAR_0->vr... | [
0,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27,
31
],
[
33
]
] |
24,643 | static int os_host_main_loop_wait(uint32_t timeout)
{
GMainContext *context = g_main_context_default();
int select_ret, g_poll_ret, ret, i;
PollingEntry *pe;
WaitObjects *w = &wait_objects;
gint poll_timeout;
static struct timeval tv0;
/* XXX: need to suppress polling by better usi... | true | qemu | 134a03e0b3d34b01b68107104c525c3bff1211d4 | static int os_host_main_loop_wait(uint32_t timeout)
{
GMainContext *context = g_main_context_default();
int select_ret, g_poll_ret, ret, i;
PollingEntry *pe;
WaitObjects *w = &wait_objects;
gint poll_timeout;
static struct timeval tv0;
ret = 0;
for (pe = first_polling_en... | {
"code": [
" int select_ret, g_poll_ret, ret, i;"
],
"line_no": [
7
]
} | static int FUNC_0(uint32_t VAR_0)
{
GMainContext *context = g_main_context_default();
int VAR_1, VAR_2, VAR_3, VAR_4;
PollingEntry *pe;
WaitObjects *w = &wait_objects;
gint poll_timeout;
static struct timeval VAR_5;
VAR_3 = 0;
for (pe = first_polling_entry; pe != NULL; p... | [
"static int FUNC_0(uint32_t VAR_0)\n{",
"GMainContext *context = g_main_context_default();",
"int VAR_1, VAR_2, VAR_3, VAR_4;",
"PollingEntry *pe;",
"WaitObjects *w = &wait_objects;",
"gint poll_timeout;",
"static struct timeval VAR_5;",
"VAR_3 = 0;",
"for (pe = first_polling_entry; pe != NULL; pe =... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39,
41
],
[
43
],
[
47
],
[
49
],
[... |
24,645 | static void *spapr_create_fdt_skel(const char *cpu_model,
target_phys_addr_t rma_size,
target_phys_addr_t initrd_base,
target_phys_addr_t initrd_size,
const char *boot_device,
... | true | qemu | 4d8d5467cd6e324fb49ae97b9d5dcee3973d9a19 | static void *spapr_create_fdt_skel(const char *cpu_model,
target_phys_addr_t rma_size,
target_phys_addr_t initrd_base,
target_phys_addr_t initrd_size,
const char *boot_device,
... | {
"code": [
" _FDT((fdt_property_string(fdt, \"qemu,boot-device\", boot_device)));",
" _FDT((fdt_property_cell(fdt, \"linux,pci-probe-only\", 0)));",
" exit(1);",
" exit(1);"
],
"line_no": [
125,
141,
309,
309
]
} | static void *FUNC_0(const char *VAR_0,
target_phys_addr_t VAR_1,
target_phys_addr_t VAR_2,
target_phys_addr_t VAR_3,
const char *VAR_4,
cons... | [
"static void *FUNC_0(const char *VAR_0,\ntarget_phys_addr_t VAR_1,\ntarget_phys_addr_t VAR_2,\ntarget_phys_addr_t VAR_3,\nconst char *VAR_4,\nconst char *VAR_5,\nlong VAR_6)\n{",
"void *VAR_7;",
"CPUState *env;",
"uint64_t mem_reg_property[2];",
"uint32_t start_prop = cpu_to_be32(VAR_2);",
"uint32_t end_p... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
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
... |
24,646 | static int mov_read_stsc(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
{
AVStream *st = c->fc->streams[c->fc->nb_streams-1];
MOVStreamContext *sc = (MOVStreamContext *)st->priv_data;
int entries, i;
print_atom("stsc", atom);
get_byte(pb); /* version */
get_byte(pb); get_byte(pb);... | true | FFmpeg | 568e18b15e2ddf494fd8926707d34ca08c8edce5 | static int mov_read_stsc(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
{
AVStream *st = c->fc->streams[c->fc->nb_streams-1];
MOVStreamContext *sc = (MOVStreamContext *)st->priv_data;
int entries, i;
print_atom("stsc", atom);
get_byte(pb);
get_byte(pb); get_byte(pb); get_byte(pb)... | {
"code": [
" int entries, i;",
" int entries, i;",
" int entries, i;",
" int entries, i;",
" int entries, i;"
],
"line_no": [
9,
9,
9,
9,
9
]
} | static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2)
{
AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];
MOVStreamContext *sc = (MOVStreamContext *)st->priv_data;
int VAR_3, VAR_4;
print_atom("stsc", VAR_2);
get_byte(VAR_1);
get_byte(VAR_1); get_byte... | [
"static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2)\n{",
"AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];",
"MOVStreamContext *sc = (MOVStreamContext *)st->priv_data;",
"int VAR_3, VAR_4;",
"print_atom(\"stsc\", VAR_2);",
"get_byte(VAR_1);",
"get_byte(VAR_1); get_by... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
51,
53
],
[... |
24,647 | av_cold int ff_MPV_common_init(MpegEncContext *s)
{
int i;
int nb_slices = (HAVE_THREADS &&
s->avctx->active_thread_type & FF_THREAD_SLICE) ?
s->avctx->thread_count : 1;
if (s->encoding && s->avctx->slices)
nb_slices = s->avctx->slices;
if (s-... | true | FFmpeg | f6774f905fb3cfdc319523ac640be30b14c1bc55 | av_cold int ff_MPV_common_init(MpegEncContext *s)
{
int i;
int nb_slices = (HAVE_THREADS &&
s->avctx->active_thread_type & FF_THREAD_SLICE) ?
s->avctx->thread_count : 1;
if (s->encoding && s->avctx->slices)
nb_slices = s->avctx->slices;
if (s-... | {
"code": [
" av_frame_unref(&s->picture[i].f);",
" av_frame_unref(&s->next_picture.f);",
" av_frame_unref(&s->last_picture.f);",
" av_frame_unref(&s->current_picture.f);"
],
"line_no": [
109,
119,
121,
123
]
} | av_cold int FUNC_0(MpegEncContext *s)
{
int VAR_0;
int VAR_1 = (HAVE_THREADS &&
s->avctx->active_thread_type & FF_THREAD_SLICE) ?
s->avctx->thread_count : 1;
if (s->encoding && s->avctx->slices)
VAR_1 = s->avctx->slices;
if (s->codec_id == AV_... | [
"av_cold int FUNC_0(MpegEncContext *s)\n{",
"int VAR_0;",
"int VAR_1 = (HAVE_THREADS &&\ns->avctx->active_thread_type & FF_THREAD_SLICE) ?\ns->avctx->thread_count : 1;",
"if (s->encoding && s->avctx->slices)\nVAR_1 = s->avctx->slices;",
"if (s->codec_id == AV_CODEC_ID_MPEG2VIDEO && !s->progressive_sequence)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11
],
[
15,
17
],
[
21,
23
],
[
25,
27
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47,
49
],
[
51,
53
],
[
55,
57
],
[... |
24,652 | static void handle_control_message(VirtIOSerial *vser, void *buf)
{
struct VirtIOSerialPort *port;
struct virtio_console_control cpkt, *gcpkt;
uint8_t *buffer;
size_t buffer_len;
gcpkt = buf;
cpkt.event = lduw_p(&gcpkt->event);
cpkt.value = lduw_p(&gcpkt->value);
port = fi... | true | qemu | e61da14d60ba1cceacad8396adcb9662c7f690af | static void handle_control_message(VirtIOSerial *vser, void *buf)
{
struct VirtIOSerialPort *port;
struct virtio_console_control cpkt, *gcpkt;
uint8_t *buffer;
size_t buffer_len;
gcpkt = buf;
cpkt.event = lduw_p(&gcpkt->event);
cpkt.value = lduw_p(&gcpkt->value);
port = fi... | {
"code": [
"static void handle_control_message(VirtIOSerial *vser, void *buf)"
],
"line_no": [
1
]
} | static void FUNC_0(VirtIOSerial *VAR_0, void *VAR_1)
{
struct VirtIOSerialPort *VAR_2;
struct virtio_console_control VAR_3, *VAR_4;
uint8_t *buffer;
size_t buffer_len;
VAR_4 = VAR_1;
VAR_3.event = lduw_p(&VAR_4->event);
VAR_3.value = lduw_p(&VAR_4->value);
VAR_2 = find_por... | [
"static void FUNC_0(VirtIOSerial *VAR_0, void *VAR_1)\n{",
"struct VirtIOSerialPort *VAR_2;",
"struct virtio_console_control VAR_3, *VAR_4;",
"uint8_t *buffer;",
"size_t buffer_len;",
"VAR_4 = VAR_1;",
"VAR_3.event = lduw_p(&VAR_4->event);",
"VAR_3.value = lduw_p(&VAR_4->value);",
"VAR_2 = find_port... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27,
29
],
[
33
],
[
35,
37
],
[
39,
41
],
[
43
],
[
45
],
[
55
],
[
57
],
[
59
],
[... |
24,653 | static int blend_frames(AVFilterContext *ctx, int interpolate)
{
FrameRateContext *s = ctx->priv;
AVFilterLink *outlink = ctx->outputs[0];
double interpolate_scene_score = 0;
if ((s->flags & FRAMERATE_FLAG_SCD)) {
if (s->score >= 0.0)
interpolate_scene_score = s->score;
... | true | FFmpeg | 2cbe6bac0337939f023bd1c37a9c455e6d535f3a | static int blend_frames(AVFilterContext *ctx, int interpolate)
{
FrameRateContext *s = ctx->priv;
AVFilterLink *outlink = ctx->outputs[0];
double interpolate_scene_score = 0;
if ((s->flags & FRAMERATE_FLAG_SCD)) {
if (s->score >= 0.0)
interpolate_scene_score = s->score;
... | {
"code": [
" td.src1_factor = s->max - td.src2_factor;"
],
"line_no": [
39
]
} | static int FUNC_0(AVFilterContext *VAR_0, int VAR_1)
{
FrameRateContext *s = VAR_0->priv;
AVFilterLink *outlink = VAR_0->outputs[0];
double VAR_2 = 0;
if ((s->flags & FRAMERATE_FLAG_SCD)) {
if (s->score >= 0.0)
VAR_2 = s->score;
else
VAR_2 = s->score = ... | [
"static int FUNC_0(AVFilterContext *VAR_0, int VAR_1)\n{",
"FrameRateContext *s = VAR_0->priv;",
"AVFilterLink *outlink = VAR_0->outputs[0];",
"double VAR_2 = 0;",
"if ((s->flags & FRAMERATE_FLAG_SCD)) {",
"if (s->score >= 0.0)\nVAR_2 = s->score;",
"else\nVAR_2 = s->score = get_scene_score(VAR_0, s->f0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19,
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
45
],
[
47,
49
],
[
53
],
[... |
24,656 | static void set_seg(struct kvm_segment *lhs, const SegmentCache *rhs)
{
unsigned flags = rhs->flags;
lhs->selector = rhs->selector;
lhs->base = rhs->base;
lhs->limit = rhs->limit;
lhs->type = (flags >> DESC_TYPE_SHIFT) & 15;
lhs->present = (flags & DESC_P_MASK) != 0;
lhs->dpl = rhs->... | true | qemu | acaa75507b34f7b588924a09c76c6848d209e08c | static void set_seg(struct kvm_segment *lhs, const SegmentCache *rhs)
{
unsigned flags = rhs->flags;
lhs->selector = rhs->selector;
lhs->base = rhs->base;
lhs->limit = rhs->limit;
lhs->type = (flags >> DESC_TYPE_SHIFT) & 15;
lhs->present = (flags & DESC_P_MASK) != 0;
lhs->dpl = rhs->... | {
"code": [
" lhs->dpl = rhs->selector & 3;"
],
"line_no": [
17
]
} | static void FUNC_0(struct kvm_segment *VAR_0, const SegmentCache *VAR_1)
{
unsigned VAR_2 = VAR_1->VAR_2;
VAR_0->selector = VAR_1->selector;
VAR_0->base = VAR_1->base;
VAR_0->limit = VAR_1->limit;
VAR_0->type = (VAR_2 >> DESC_TYPE_SHIFT) & 15;
VAR_0->present = (VAR_2 & DESC_P_MASK) != 0;
... | [
"static void FUNC_0(struct kvm_segment *VAR_0, const SegmentCache *VAR_1)\n{",
"unsigned VAR_2 = VAR_1->VAR_2;",
"VAR_0->selector = VAR_1->selector;",
"VAR_0->base = VAR_1->base;",
"VAR_0->limit = VAR_1->limit;",
"VAR_0->type = (VAR_2 >> DESC_TYPE_SHIFT) & 15;",
"VAR_0->present = (VAR_2 & DESC_P_MASK) !... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
24,657 | static int parse_bintree(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
Plane *plane, int code, Cell *ref_cell,
const int depth, const int strip_width)
{
Cell curr_cell;
int bytes_used;
if (depth <= 0) {
av_log(avctx, AV_LOG_ERROR, ... | true | FFmpeg | 134aaa79f7f1ce1df64afc7d10d2b3de77df7b08 | static int parse_bintree(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
Plane *plane, int code, Cell *ref_cell,
const int depth, const int strip_width)
{
Cell curr_cell;
int bytes_used;
if (depth <= 0) {
av_log(avctx, AV_LOG_ERROR, ... | {
"code": [
" curr_cell.mv_ptr = &ctx->mc_vectors[*(ctx->next_cell_data++) << 1];"
],
"line_no": [
123
]
} | static int FUNC_0(Indeo3DecodeContext *VAR_0, AVCodecContext *VAR_1,
Plane *VAR_2, int VAR_3, Cell *VAR_4,
const int VAR_5, const int VAR_6)
{
Cell curr_cell;
int VAR_7;
if (VAR_5 <= 0) {
av_log(VAR_1, AV_LOG_ERROR, "Stack overflow (c... | [
"static int FUNC_0(Indeo3DecodeContext *VAR_0, AVCodecContext *VAR_1,\nPlane *VAR_2, int VAR_3, Cell *VAR_4,\nconst int VAR_5, const int VAR_6)\n{",
"Cell curr_cell;",
"int VAR_7;",
"if (VAR_5 <= 0) {",
"av_log(VAR_1, AV_LOG_ERROR, \"Stack overflow (corrupted binary tree)!\\n\");",
"return AVERROR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
24,658 | static int parse_chunks(AVFormatContext *s, int mode, int64_t seekts, int *len_ptr)
{
WtvContext *wtv = s->priv_data;
ByteIOContext *pb = wtv->pb;
while (!url_feof(pb)) {
ff_asf_guid g;
int len, sid, consumed;
ff_get_guid(pb, &g);
len = get_le32(pb);
if (le... | false | FFmpeg | e4f85b849913794395bb03dfc09546cd41b10882 | static int parse_chunks(AVFormatContext *s, int mode, int64_t seekts, int *len_ptr)
{
WtvContext *wtv = s->priv_data;
ByteIOContext *pb = wtv->pb;
while (!url_feof(pb)) {
ff_asf_guid g;
int len, sid, consumed;
ff_get_guid(pb, &g);
len = get_le32(pb);
if (le... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int *VAR_3)
{
WtvContext *wtv = VAR_0->priv_data;
ByteIOContext *pb = wtv->pb;
while (!url_feof(pb)) {
ff_asf_guid g;
int VAR_4, VAR_5, VAR_6;
ff_get_guid(pb, &g);
VAR_4 = get_le32(pb);
if ... | [
"static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int *VAR_3)\n{",
"WtvContext *wtv = VAR_0->priv_data;",
"ByteIOContext *pb = wtv->pb;",
"while (!url_feof(pb)) {",
"ff_asf_guid g;",
"int VAR_4, VAR_5, VAR_6;",
"ff_get_guid(pb, &g);",
"VAR_4 = get_le32(pb);",
"if (VAR_4 < 32)\nbre... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
24,660 | static void ac3_decode_transform_coeffs_ch(AC3DecodeContext *s, int ch_index, mant_groups *m)
{
int start_freq = s->start_freq[ch_index];
int end_freq = s->end_freq[ch_index];
uint8_t *baps = s->bap[ch_index];
int8_t *exps = s->dexps[ch_index];
int32_t *coeffs = s->fixed_coeffs[ch_index];... | true | FFmpeg | 4782c4284fa3856a9b6910fe5ff6e4fb1c65b58c | static void ac3_decode_transform_coeffs_ch(AC3DecodeContext *s, int ch_index, mant_groups *m)
{
int start_freq = s->start_freq[ch_index];
int end_freq = s->end_freq[ch_index];
uint8_t *baps = s->bap[ch_index];
int8_t *exps = s->dexps[ch_index];
int32_t *coeffs = s->fixed_coeffs[ch_index];... | {
"code": [],
"line_no": []
} | static void FUNC_0(AC3DecodeContext *VAR_0, int VAR_1, mant_groups *VAR_2)
{
int VAR_3 = VAR_0->VAR_3[VAR_1];
int VAR_4 = VAR_0->VAR_4[VAR_1];
uint8_t *baps = VAR_0->VAR_7[VAR_1];
int8_t *exps = VAR_0->dexps[VAR_1];
int32_t *coeffs = VAR_0->fixed_coeffs[VAR_1];
int VAR_5 = (VAR_1... | [
"static void FUNC_0(AC3DecodeContext *VAR_0, int VAR_1, mant_groups *VAR_2)\n{",
"int VAR_3 = VAR_0->VAR_3[VAR_1];",
"int VAR_4 = VAR_0->VAR_4[VAR_1];",
"uint8_t *baps = VAR_0->VAR_7[VAR_1];",
"int8_t *exps = VAR_0->dexps[VAR_1];",
"int32_t *coeffs = VAR_0->fixed_coeffs[VAR_1];",
"int VAR_5 = (... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
35,
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
49
... |
24,661 | int qcow2_grow_l1_table(BlockDriverState *bs, uint64_t min_size,
bool exact_size)
{
BDRVQcowState *s = bs->opaque;
int new_l1_size2, ret, i;
uint64_t *new_l1_table;
int64_t old_l1_table_offset, old_l1_size;
int64_t new_l1_table_offset, new_l1_size;
uint8_t data[12... | true | qemu | de82815db1c89da058b7fb941dab137d6d9ab738 | int qcow2_grow_l1_table(BlockDriverState *bs, uint64_t min_size,
bool exact_size)
{
BDRVQcowState *s = bs->opaque;
int new_l1_size2, ret, i;
uint64_t *new_l1_table;
int64_t old_l1_table_offset, old_l1_size;
int64_t new_l1_table_offset, new_l1_size;
uint8_t data[12... | {
"code": [
" new_l1_table = g_malloc0(align_offset(new_l1_size2, 512));",
" g_free(new_l1_table);",
" g_free(s->l1_table);",
" g_free(new_l1_table);",
" g_free(new_l1_table);",
" g_free(s->l1_table);",
" g_free(s->l1_table);",
" g_free(s->l1_table);"
... | int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,
bool VAR_2)
{
BDRVQcowState *s = VAR_0->opaque;
int VAR_3, VAR_4, VAR_5;
uint64_t *new_l1_table;
int64_t old_l1_table_offset, old_l1_size;
int64_t new_l1_table_offset, new_l1_size;
uint8_t data[12];
if (VA... | [
"int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nbool VAR_2)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"int VAR_3, VAR_4, VAR_5;",
"uint64_t *new_l1_table;",
"int64_t old_l1_table_offset, old_l1_size;",
"int64_t new_l1_table_offset, new_l1_size;",
"uint8_t data[12];",
"if (VAR_1 <= s->l1_size)\nr... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
... |
24,662 | static void r2d_init(ram_addr_t ram_size,
const char *boot_device,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
CPUState *env;
struct SH7750State *s;
ram_addr_t sdram_addr;
qemu_irq *irq;
PCIBus *p... | true | qemu | 07caea315a85ebfe90851f9c2e4ef3fdd24117b5 | static void r2d_init(ram_addr_t ram_size,
const char *boot_device,
const char *kernel_filename, const char *kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
CPUState *env;
struct SH7750State *s;
ram_addr_t sdram_addr;
qemu_irq *irq;
PCIBus *p... | {
"code": [
" pci_nic_init(&nd_table[i], \"rtl8139\", i==0 ? \"2\" : NULL);"
],
"line_no": [
79
]
} | static void FUNC_0(ram_addr_t VAR_0,
const char *VAR_1,
const char *VAR_2, const char *VAR_3,
const char *VAR_4, const char *VAR_5)
{
CPUState *env;
struct SH7750State *VAR_6;
ram_addr_t sdram_addr;
qemu_irq *irq;
PCIBus *pci;
DriveInfo *dinfo;
int VAR_... | [
"static void FUNC_0(ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2, const char *VAR_3,\nconst char *VAR_4, const char *VAR_5)\n{",
"CPUState *env;",
"struct SH7750State *VAR_6;",
"ram_addr_t sdram_addr;",
"qemu_irq *irq;",
"PCIBus *pci;",
"DriveInfo *dinfo;",
"int VAR_7;",
"if (!VAR_5)\nVA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
47
],
[
49
],
[
53
],
[
55
... |
24,663 | void ppc_tlb_invalidate_one(CPUPPCState *env, target_ulong addr)
{
#if !defined(FLUSH_ALL_TLBS)
PowerPCCPU *cpu = ppc_env_get_cpu(env);
CPUState *cs;
addr &= TARGET_PAGE_MASK;
switch (env->mmu_model) {
case POWERPC_MMU_SOFT_6xx:
case POWERPC_MMU_SOFT_74xx:
ppc6xx_tlb_invalidat... | true | qemu | 3dcfb74fd4e4ab31508c80e6965a0cd477510234 | void ppc_tlb_invalidate_one(CPUPPCState *env, target_ulong addr)
{
#if !defined(FLUSH_ALL_TLBS)
PowerPCCPU *cpu = ppc_env_get_cpu(env);
CPUState *cs;
addr &= TARGET_PAGE_MASK;
switch (env->mmu_model) {
case POWERPC_MMU_SOFT_6xx:
case POWERPC_MMU_SOFT_74xx:
ppc6xx_tlb_invalidat... | {
"code": [],
"line_no": []
} | void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1)
{
#if !defined(FLUSH_ALL_TLBS)
PowerPCCPU *cpu = ppc_env_get_cpu(VAR_0);
CPUState *cs;
VAR_1 &= TARGET_PAGE_MASK;
switch (VAR_0->mmu_model) {
case POWERPC_MMU_SOFT_6xx:
case POWERPC_MMU_SOFT_74xx:
ppc6xx_tlb_invalidate_virt(V... | [
"void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1)\n{",
"#if !defined(FLUSH_ALL_TLBS)\nPowerPCCPU *cpu = ppc_env_get_cpu(VAR_0);",
"CPUState *cs;",
"VAR_1 &= TARGET_PAGE_MASK;",
"switch (VAR_0->mmu_model) {",
"case POWERPC_MMU_SOFT_6xx:\ncase POWERPC_MMU_SOFT_74xx:\nppc6xx_tlb_invalidate_virt(VAR_0, VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
13
],
[
15
],
[
17,
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
33,
37
],
[
39
],
[
55,
57
],
[
59
],
[
61
],
[
63
],
[
65
... |
24,664 | static void draw_bar(TestSourceContext *test, const uint8_t color[4],
unsigned x, unsigned y, unsigned w, unsigned h,
AVFrame *frame)
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(frame->format);
uint8_t *p, *p0;
int plane;
x = FFMIN(x, test->w... | true | FFmpeg | 7a7ca3cc2f43e7a7b61fdad8200b365ff0977bd2 | static void draw_bar(TestSourceContext *test, const uint8_t color[4],
unsigned x, unsigned y, unsigned w, unsigned h,
AVFrame *frame)
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(frame->format);
uint8_t *p, *p0;
int plane;
x = FFMIN(x, test->w... | {
"code": [
" unsigned x, unsigned y, unsigned w, unsigned h,",
" pw = w >> desc->log2_chroma_w;",
" ph = h >> desc->log2_chroma_h;"
],
"line_no": [
3,
47,
51
]
} | static void FUNC_0(TestSourceContext *VAR_0, const uint8_t VAR_1[4],
unsigned VAR_2, unsigned VAR_3, unsigned VAR_4, unsigned VAR_5,
AVFrame *VAR_6)
{
const AVPixFmtDescriptor *VAR_7 = av_pix_fmt_desc_get(VAR_6->format);
uint8_t *p, *p0;
int VAR_8;
VAR_... | [
"static void FUNC_0(TestSourceContext *VAR_0, const uint8_t VAR_1[4],\nunsigned VAR_2, unsigned VAR_3, unsigned VAR_4, unsigned VAR_5,\nAVFrame *VAR_6)\n{",
"const AVPixFmtDescriptor *VAR_7 = av_pix_fmt_desc_get(VAR_6->format);",
"uint8_t *p, *p0;",
"int VAR_8;",
"VAR_2 = FFMIN(VAR_2, VAR_0->VAR_4 - 1);",
... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
24,665 | static int qpa_init_in (HWVoiceIn *hw, struct audsettings *as)
{
int error;
static pa_sample_spec ss;
struct audsettings obt_as = *as;
PAVoiceIn *pa = (PAVoiceIn *) hw;
ss.format = audfmt_to_pa (as->fmt, as->endianness);
ss.channels = as->nchannels;
ss.rate = as->freq;
obt_a... | true | qemu | ea9ebc2ce69198f7aca4b43652824c5d621ac978 | static int qpa_init_in (HWVoiceIn *hw, struct audsettings *as)
{
int error;
static pa_sample_spec ss;
struct audsettings obt_as = *as;
PAVoiceIn *pa = (PAVoiceIn *) hw;
ss.format = audfmt_to_pa (as->fmt, as->endianness);
ss.channels = as->nchannels;
ss.rate = as->freq;
obt_a... | {
"code": [
" pa->s = pa_simple_new (",
" conf.server,",
" if (!pa->s) {",
" hw->samples = conf.samples;",
" pa_simple_free (pa->s);",
" pa->s = NULL;",
" pa->s = pa_simple_new (",
" conf.server,",
" conf.source,",
" if (!pa->s) {",
... | static int FUNC_0 (HWVoiceIn *VAR_0, struct audsettings *VAR_1)
{
int VAR_2;
static pa_sample_spec VAR_3;
struct audsettings VAR_4 = *VAR_1;
PAVoiceIn *pa = (PAVoiceIn *) VAR_0;
VAR_3.format = audfmt_to_pa (VAR_1->fmt, VAR_1->endianness);
VAR_3.channels = VAR_1->nchannels;
VAR_3.ra... | [
"static int FUNC_0 (HWVoiceIn *VAR_0, struct audsettings *VAR_1)\n{",
"int VAR_2;",
"static pa_sample_spec VAR_3;",
"struct audsettings VAR_4 = *VAR_1;",
"PAVoiceIn *pa = (PAVoiceIn *) VAR_0;",
"VAR_3.format = audfmt_to_pa (VAR_1->fmt, VAR_1->endianness);",
"VAR_3.channels = VAR_1->nchannels;",
"VAR_3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
59
... |
24,666 | static inline int64_t gb_get_v(GetBitContext *gb)
{
int64_t v = 0;
int bits = 0;
while(get_bits1(gb) && bits < 64-7){
v <<= 7;
v |= get_bits(gb, 7);
bits += 7;
}
v <<= 7;
v |= get_bits(gb, 7);
return v;
}
| true | FFmpeg | 05e161952954acf247e0fd1fdef00559675c4d4d | static inline int64_t gb_get_v(GetBitContext *gb)
{
int64_t v = 0;
int bits = 0;
while(get_bits1(gb) && bits < 64-7){
v <<= 7;
v |= get_bits(gb, 7);
bits += 7;
}
v <<= 7;
v |= get_bits(gb, 7);
return v;
}
| {
"code": [
" int64_t v = 0;",
" int64_t v = 0;"
],
"line_no": [
5,
5
]
} | static inline int64_t FUNC_0(GetBitContext *gb)
{
int64_t v = 0;
int VAR_0 = 0;
while(get_bits1(gb) && VAR_0 < 64-7){
v <<= 7;
v |= get_bits(gb, 7);
VAR_0 += 7;
}
v <<= 7;
v |= get_bits(gb, 7);
return v;
}
| [
"static inline int64_t FUNC_0(GetBitContext *gb)\n{",
"int64_t v = 0;",
"int VAR_0 = 0;",
"while(get_bits1(gb) && VAR_0 < 64-7){",
"v <<= 7;",
"v |= get_bits(gb, 7);",
"VAR_0 += 7;",
"}",
"v <<= 7;",
"v |= get_bits(gb, 7);",
"return v;",
"}"
] | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
]
] |
24,667 | int qed_check(BDRVQEDState *s, BdrvCheckResult *result, bool fix)
{
QEDCheck check = {
.s = s,
.result = result,
.nclusters = qed_bytes_to_clusters(s, s->file_size),
.request = { .l2_table = NULL },
.fix = fix,
};
int ret;
check.used_clusters = g_try_m... | true | qemu | 02c4f26b1517d9e403ec10d6f6ca3c0276d19e43 | int qed_check(BDRVQEDState *s, BdrvCheckResult *result, bool fix)
{
QEDCheck check = {
.s = s,
.result = result,
.nclusters = qed_bytes_to_clusters(s, s->file_size),
.request = { .l2_table = NULL },
.fix = fix,
};
int ret;
check.used_clusters = g_try_m... | {
"code": [
" check.used_clusters = g_try_malloc0(((check.nclusters + 31) / 32) *",
" sizeof(check.used_clusters[0]));"
],
"line_no": [
23,
25
]
} | int FUNC_0(BDRVQEDState *VAR_0, BdrvCheckResult *VAR_1, bool VAR_2)
{
QEDCheck check = {
.VAR_0 = VAR_0,
.VAR_1 = VAR_1,
.nclusters = qed_bytes_to_clusters(VAR_0, VAR_0->file_size),
.request = { .l2_table = NULL },
.VAR_2 = VAR_2,
};
int VAR_3;
check.u... | [
"int FUNC_0(BDRVQEDState *VAR_0, BdrvCheckResult *VAR_1, bool VAR_2)\n{",
"QEDCheck check = {",
".VAR_0 = VAR_0,\n.VAR_1 = VAR_1,\n.nclusters = qed_bytes_to_clusters(VAR_0, VAR_0->file_size),\n.request = { .l2_table = NULL },",
".VAR_2 = VAR_2,\n};",
"int VAR_3;",
"check.used_clusters = g_try_malloc0(((ch... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11,
13
],
[
15,
17
],
[
19
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
35,
37,
39
],
[
41
],
[
43
],
[
47
],
[
51
],
[
53
],
[
55
],
[... |
24,669 | static int unpack_vlcs(Vp3DecodeContext *s, GetBitContext *gb,
VLC *table, int coeff_index,
int plane,
int eob_run)
{
int i, j = 0;
int token;
int zero_run = 0;
DCTELEM coeff = 0;
int bits_to_get;
int blocks_ended;... | true | FFmpeg | 8370e426e42f2e4b9d14a1fb8107ecfe5163ce7f | static int unpack_vlcs(Vp3DecodeContext *s, GetBitContext *gb,
VLC *table, int coeff_index,
int plane,
int eob_run)
{
int i, j = 0;
int token;
int zero_run = 0;
DCTELEM coeff = 0;
int bits_to_get;
int blocks_ended;... | {
"code": [
" if (token <= 6) {",
" } else {"
],
"line_no": [
79,
115
]
} | static int FUNC_0(Vp3DecodeContext *VAR_0, GetBitContext *VAR_1,
VLC *VAR_2, int VAR_3,
int VAR_4,
int VAR_5)
{
int VAR_6, VAR_7 = 0;
int VAR_8;
int VAR_9 = 0;
DCTELEM coeff = 0;
int VAR_10;
int VAR_11;
int VA... | [
"static int FUNC_0(Vp3DecodeContext *VAR_0, GetBitContext *VAR_1,\nVLC *VAR_2, int VAR_3,\nint VAR_4,\nint VAR_5)\n{",
"int VAR_6, VAR_7 = 0;",
"int VAR_8;",
"int VAR_9 = 0;",
"DCTELEM coeff = 0;",
"int VAR_10;",
"int VAR_11;",
"int VAR_12 = 0;",
"int VAR_13 = VAR_0->num_coded_frags[VAR_4][VAR_3];",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
47
],
[
49
],
[
51
],
[
53
... |
24,670 | int ff_copy_whitelists(AVFormatContext *dst, AVFormatContext *src)
{
av_assert0(!dst->codec_whitelist && !dst->format_whitelist);
dst-> codec_whitelist = av_strdup(src->codec_whitelist);
dst->format_whitelist = av_strdup(src->format_whitelist);
if ( (src-> codec_whitelist && !dst-> codec_whitelis... | false | FFmpeg | 1dba8371d93cf1c83bcd5c432d921905206a60f3 | int ff_copy_whitelists(AVFormatContext *dst, AVFormatContext *src)
{
av_assert0(!dst->codec_whitelist && !dst->format_whitelist);
dst-> codec_whitelist = av_strdup(src->codec_whitelist);
dst->format_whitelist = av_strdup(src->format_whitelist);
if ( (src-> codec_whitelist && !dst-> codec_whitelis... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFormatContext *VAR_0, AVFormatContext *VAR_1)
{
av_assert0(!VAR_0->codec_whitelist && !VAR_0->format_whitelist);
VAR_0-> codec_whitelist = av_strdup(VAR_1->codec_whitelist);
VAR_0->format_whitelist = av_strdup(VAR_1->format_whitelist);
if ( (VAR_1-> codec_whitelist && !VAR_0-> codec_... | [
"int FUNC_0(AVFormatContext *VAR_0, AVFormatContext *VAR_1)\n{",
"av_assert0(!VAR_0->codec_whitelist && !VAR_0->format_whitelist);",
"VAR_0-> codec_whitelist = av_strdup(VAR_1->codec_whitelist);",
"VAR_0->format_whitelist = av_strdup(VAR_1->format_whitelist);",
"if ( (VAR_1-> codec_whitelist && !VAR_0-> c... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
24,671 | static void init_dequant4_coeff_table(H264Context *h){
int i,j,q,x;
const int transpose = (h->h264dsp.h264_idct_add != ff_h264_idct_add_c); //FIXME ugly
for(i=0; i<6; i++ ){
h->dequant4_coeff[i] = h->dequant4_buffer[i];
for(j=0; j<i; j++){
if(!memcmp(h->pps.scaling_matrix4[... | false | FFmpeg | ca32f7f2083f9ededd1d9964ed065e0ad07a01e0 | static void init_dequant4_coeff_table(H264Context *h){
int i,j,q,x;
const int transpose = (h->h264dsp.h264_idct_add != ff_h264_idct_add_c);
for(i=0; i<6; i++ ){
h->dequant4_coeff[i] = h->dequant4_buffer[i];
for(j=0; j<i; j++){
if(!memcmp(h->pps.scaling_matrix4[j], h->pps.s... | {
"code": [],
"line_no": []
} | static void FUNC_0(H264Context *VAR_0){
int VAR_1,VAR_2,VAR_3,VAR_4;
const int VAR_5 = (VAR_0->h264dsp.h264_idct_add != ff_h264_idct_add_c);
for(VAR_1=0; VAR_1<6; VAR_1++ ){
VAR_0->dequant4_coeff[VAR_1] = VAR_0->dequant4_buffer[VAR_1];
for(VAR_2=0; VAR_2<VAR_1; VAR_2++){
i... | [
"static void FUNC_0(H264Context *VAR_0){",
"int VAR_1,VAR_2,VAR_3,VAR_4;",
"const int VAR_5 = (VAR_0->h264dsp.h264_idct_add != ff_h264_idct_add_c);",
"for(VAR_1=0; VAR_1<6; VAR_1++ ){",
"VAR_0->dequant4_coeff[VAR_1] = VAR_0->dequant4_buffer[VAR_1];",
"for(VAR_2=0; VAR_2<VAR_1; VAR_2++){",
"if(!memcmp(VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39,
41
],
[
43
],
[
45
... |
24,672 | static int mpeg_mux_write_packet(AVFormatContext *ctx, AVPacket *pkt)
{
MpegMuxContext *s = ctx->priv_data;
int stream_index= pkt->stream_index;
int size= pkt->size;
uint8_t *buf= pkt->data;
AVStream *st = ctx->streams[stream_index];
StreamInfo *stream = st->priv_data;
int64_t pts, d... | false | FFmpeg | 3c895fc098f7637f6d5ec3a9d6766e724a8b9e41 | static int mpeg_mux_write_packet(AVFormatContext *ctx, AVPacket *pkt)
{
MpegMuxContext *s = ctx->priv_data;
int stream_index= pkt->stream_index;
int size= pkt->size;
uint8_t *buf= pkt->data;
AVStream *st = ctx->streams[stream_index];
StreamInfo *stream = st->priv_data;
int64_t pts, d... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
MpegMuxContext *s = VAR_0->priv_data;
int VAR_2= VAR_1->VAR_2;
int VAR_3= VAR_1->VAR_3;
uint8_t *buf= VAR_1->data;
AVStream *st = VAR_0->streams[VAR_2];
StreamInfo *stream = st->priv_data;
int64_t pts, dts, new_start_pts, n... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"MpegMuxContext *s = VAR_0->priv_data;",
"int VAR_2= VAR_1->VAR_2;",
"int VAR_3= VAR_1->VAR_3;",
"uint8_t *buf= VAR_1->data;",
"AVStream *st = VAR_0->streams[VAR_2];",
"StreamInfo *stream = st->priv_data;",
"int64_t pts, dts, new_start_p... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31
],
[
35
],
[
41
],
[
43
],
[
47,
57
],
[
59
],
[
61
],
[
73
],
[
75
],
[... |
24,674 | SwsFilter *sws_getDefaultFilter(float lumaGBlur, float chromaGBlur,
float lumaSharpen, float chromaSharpen,
float chromaHShift, float chromaVShift,
int verbose)
{
SwsFilter *filter = av_malloc(sizeof(SwsFilter));
... | false | FFmpeg | 7ebb3022297aa00afda6800105684b8303f2608e | SwsFilter *sws_getDefaultFilter(float lumaGBlur, float chromaGBlur,
float lumaSharpen, float chromaSharpen,
float chromaHShift, float chromaVShift,
int verbose)
{
SwsFilter *filter = av_malloc(sizeof(SwsFilter));
... | {
"code": [],
"line_no": []
} | SwsFilter *FUNC_0(float lumaGBlur, float chromaGBlur,
float lumaSharpen, float chromaSharpen,
float chromaHShift, float chromaVShift,
int verbose)
{
SwsFilter *filter = av_malloc(sizeof(SwsFilter));
if (!filter... | [
"SwsFilter *FUNC_0(float lumaGBlur, float chromaGBlur,\nfloat lumaSharpen, float chromaSharpen,\nfloat chromaHShift, float chromaVShift,\nint verbose)\n{",
"SwsFilter *filter = av_malloc(sizeof(SwsFilter));",
"if (!filter)\nreturn NULL;",
"if (lumaGBlur != 0.0) {",
"filter->lumH = sws_getGaussianVec(lumaGBl... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13,
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
... |
24,675 | static int decode_frame(AVCodecContext * avctx, void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MPADecodeContext *s = avctx->priv_data;
uint32_t header;
int out_size;
OUT_INT *out_samples = data;... | false | FFmpeg | e2e6c8799b3c4a61b8be36c84c5e5e15c49a31cd | static int decode_frame(AVCodecContext * avctx, void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MPADecodeContext *s = avctx->priv_data;
uint32_t header;
int out_size;
OUT_INT *out_samples = data;... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
MPADecodeContext *s = VAR_0->priv_data;
uint32_t header;
int VAR_6;
OUT_INT *out_samples = VAR_1;
if ... | [
"static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"MPADecodeContext *s = VAR_0->priv_data;",
"uint32_t header;",
"int VAR_6;",
"OUT_INT *out_samples = VAR_1;",
"if (VAR_5 < HEADER_SIZE)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
39
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
... |
24,676 | int load_flt_binary(struct linux_binprm * bprm, struct target_pt_regs * regs,
struct image_info * info)
{
struct lib_info libinfo[MAX_SHARED_LIBS];
abi_ulong p = bprm->p;
abi_ulong stack_len;
abi_ulong start_addr;
abi_ulong sp;
int res;
int i, j;
memset(li... | false | qemu | c3109ba1b109f84929abbfe0462d910d5aa8617c | int load_flt_binary(struct linux_binprm * bprm, struct target_pt_regs * regs,
struct image_info * info)
{
struct lib_info libinfo[MAX_SHARED_LIBS];
abi_ulong p = bprm->p;
abi_ulong stack_len;
abi_ulong start_addr;
abi_ulong sp;
int res;
int i, j;
memset(li... | {
"code": [],
"line_no": []
} | int FUNC_0(struct linux_binprm * VAR_0, struct target_pt_regs * VAR_1,
struct image_info * VAR_2)
{
struct lib_info VAR_3[MAX_SHARED_LIBS];
abi_ulong p = VAR_0->p;
abi_ulong stack_len;
abi_ulong start_addr;
abi_ulong sp;
int VAR_4;
int VAR_5, VAR_6;
memset... | [
"int FUNC_0(struct linux_binprm * VAR_0, struct target_pt_regs * VAR_1,\nstruct image_info * VAR_2)\n{",
"struct lib_info VAR_3[MAX_SHARED_LIBS];",
"abi_ulong p = VAR_0->p;",
"abi_ulong stack_len;",
"abi_ulong start_addr;",
"abi_ulong sp;",
"int VAR_4;",
"int VAR_5, VAR_6;",
"memset(VAR_3, 0, sizeof... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
],
[
57
],
[
59
],
[
65
],
[... |
24,678 | static always_inline void gen_farith2 (void *helper,
int rb, int rc)
{
if (unlikely(rc == 31))
return;
if (rb != 31)
tcg_gen_helper_1_1(helper, cpu_fir[rc], cpu_fir[rb]);
else {
TCGv tmp = tcg_const_i64(0);
tcg_gen_helper_1_1(he... | false | qemu | a7812ae412311d7d47f8aa85656faadac9d64b56 | static always_inline void gen_farith2 (void *helper,
int rb, int rc)
{
if (unlikely(rc == 31))
return;
if (rb != 31)
tcg_gen_helper_1_1(helper, cpu_fir[rc], cpu_fir[rb]);
else {
TCGv tmp = tcg_const_i64(0);
tcg_gen_helper_1_1(he... | {
"code": [],
"line_no": []
} | static always_inline void FUNC_0 (void *helper,
int rb, int rc)
{
if (unlikely(rc == 31))
return;
if (rb != 31)
tcg_gen_helper_1_1(helper, cpu_fir[rc], cpu_fir[rb]);
else {
TCGv tmp = tcg_const_i64(0);
tcg_gen_helper_1_1(helper,... | [
"static always_inline void FUNC_0 (void *helper,\nint rb, int rc)\n{",
"if (unlikely(rc == 31))\nreturn;",
"if (rb != 31)\ntcg_gen_helper_1_1(helper, cpu_fir[rc], cpu_fir[rb]);",
"else {",
"TCGv tmp = tcg_const_i64(0);",
"tcg_gen_helper_1_1(helper, cpu_fir[rc], tmp);",
"tcg_temp_free(tmp);",
"}",
"}... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
24,679 | static void qio_channel_socket_connect_worker(QIOTask *task,
gpointer opaque)
{
QIOChannelSocket *ioc = QIO_CHANNEL_SOCKET(qio_task_get_source(task));
SocketAddress *addr = opaque;
Error *err = NULL;
qio_channel_socket_connect_sync(ioc, addr, &err);
... | false | qemu | dfd100f242370886bb6732f70f1f7cbd8eb9fedc | static void qio_channel_socket_connect_worker(QIOTask *task,
gpointer opaque)
{
QIOChannelSocket *ioc = QIO_CHANNEL_SOCKET(qio_task_get_source(task));
SocketAddress *addr = opaque;
Error *err = NULL;
qio_channel_socket_connect_sync(ioc, addr, &err);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(QIOTask *VAR_0,
gpointer VAR_1)
{
QIOChannelSocket *ioc = QIO_CHANNEL_SOCKET(qio_task_get_source(VAR_0));
SocketAddress *addr = VAR_1;
Error *err = NULL;
qio_channel_socket_connect_sync(ioc, addr, &err);
qio_task_set_error(V... | [
"static void FUNC_0(QIOTask *VAR_0,\ngpointer VAR_1)\n{",
"QIOChannelSocket *ioc = QIO_CHANNEL_SOCKET(qio_task_get_source(VAR_0));",
"SocketAddress *addr = VAR_1;",
"Error *err = NULL;",
"qio_channel_socket_connect_sync(ioc, addr, &err);",
"qio_task_set_error(VAR_0, err);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
]
] |
24,680 | void pxa27x_timer_init(target_phys_addr_t base,
qemu_irq *irqs, qemu_irq irq4)
{
pxa2xx_timer_info *s = pxa2xx_timer_init(base, irqs);
int i;
s->freq = PXA27X_FREQ;
s->tm4 = (PXA2xxTimer4 *) qemu_mallocz(8 *
sizeof(PXA2xxTimer4));
for (i = 0; i < 8; i ++) ... | false | qemu | e1f8c729fa890c67bb4532f22c22ace6fb0e1aaf | void pxa27x_timer_init(target_phys_addr_t base,
qemu_irq *irqs, qemu_irq irq4)
{
pxa2xx_timer_info *s = pxa2xx_timer_init(base, irqs);
int i;
s->freq = PXA27X_FREQ;
s->tm4 = (PXA2xxTimer4 *) qemu_mallocz(8 *
sizeof(PXA2xxTimer4));
for (i = 0; i < 8; i ++) ... | {
"code": [],
"line_no": []
} | void FUNC_0(target_phys_addr_t VAR_0,
qemu_irq *VAR_1, qemu_irq VAR_2)
{
pxa2xx_timer_info *s = pxa2xx_timer_init(VAR_0, VAR_1);
int VAR_3;
s->freq = PXA27X_FREQ;
s->tm4 = (PXA2xxTimer4 *) qemu_mallocz(8 *
sizeof(PXA2xxTimer4));
for (VAR_3 = 0; VAR_3 < 8; ... | [
"void FUNC_0(target_phys_addr_t VAR_0,\nqemu_irq *VAR_1, qemu_irq VAR_2)\n{",
"pxa2xx_timer_info *s = pxa2xx_timer_init(VAR_0, VAR_1);",
"int VAR_3;",
"s->freq = PXA27X_FREQ;",
"s->tm4 = (PXA2xxTimer4 *) qemu_mallocz(8 *\nsizeof(PXA2xxTimer4));",
"for (VAR_3 = 0; VAR_3 < 8; VAR_3 ++) {",
"s->tm4[VAR_3].... | [
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
]
] |
24,681 | static void serial_init_core(SerialState *s)
{
if (!s->chr) {
fprintf(stderr, "Can't create serial device, empty char device\n");
exit(1);
}
s->modem_status_poll = qemu_new_timer(vm_clock, (QEMUTimerCB *) serial_update_msl, s);
s->fifo_timeout_timer = qemu_new_timer(vm_clock, (QEMUTi... | false | qemu | c169998802505c244b8bcad562633f29de7d74a4 | static void serial_init_core(SerialState *s)
{
if (!s->chr) {
fprintf(stderr, "Can't create serial device, empty char device\n");
exit(1);
}
s->modem_status_poll = qemu_new_timer(vm_clock, (QEMUTimerCB *) serial_update_msl, s);
s->fifo_timeout_timer = qemu_new_timer(vm_clock, (QEMUTi... | {
"code": [],
"line_no": []
} | static void FUNC_0(SerialState *VAR_0)
{
if (!VAR_0->chr) {
fprintf(stderr, "Can't create serial device, empty char device\n");
exit(1);
}
VAR_0->modem_status_poll = qemu_new_timer(vm_clock, (QEMUTimerCB *) serial_update_msl, VAR_0);
VAR_0->fifo_timeout_timer = qemu_new_timer(vm_cloc... | [
"static void FUNC_0(SerialState *VAR_0)\n{",
"if (!VAR_0->chr) {",
"fprintf(stderr, \"Can't create serial device, empty char device\\n\");",
"exit(1);",
"}",
"VAR_0->modem_status_poll = qemu_new_timer(vm_clock, (QEMUTimerCB *) serial_update_msl, VAR_0);",
"VAR_0->fifo_timeout_timer = qemu_new_timer(vm_c... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31,
33
],
[
35
]
] |
24,683 | int bdrv_create_file(const char* filename, QEMUOptionParameter *options)
{
BlockDriver *drv;
drv = bdrv_find_protocol(filename);
if (drv == NULL) {
drv = bdrv_find_format("file");
}
return bdrv_create(drv, filename, options);
}
| false | qemu | 16905d717507d3daffa714c7f0fd5403873807b2 | int bdrv_create_file(const char* filename, QEMUOptionParameter *options)
{
BlockDriver *drv;
drv = bdrv_find_protocol(filename);
if (drv == NULL) {
drv = bdrv_find_format("file");
}
return bdrv_create(drv, filename, options);
}
| {
"code": [],
"line_no": []
} | int FUNC_0(const char* VAR_0, QEMUOptionParameter *VAR_1)
{
BlockDriver *drv;
drv = bdrv_find_protocol(VAR_0);
if (drv == NULL) {
drv = bdrv_find_format("file");
}
return bdrv_create(drv, VAR_0, VAR_1);
}
| [
"int FUNC_0(const char* VAR_0, QEMUOptionParameter *VAR_1)\n{",
"BlockDriver *drv;",
"drv = bdrv_find_protocol(VAR_0);",
"if (drv == NULL) {",
"drv = bdrv_find_format(\"file\");",
"}",
"return bdrv_create(drv, VAR_0, VAR_1);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
]
] |
24,684 | int qemu_acl_append(qemu_acl *acl,
int deny,
const char *match)
{
qemu_acl_entry *entry;
entry = qemu_malloc(sizeof(*entry));
entry->match = qemu_strdup(match);
entry->deny = deny;
TAILQ_INSERT_TAIL(&acl->entries, entry, next);
acl->nentries++... | false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | int qemu_acl_append(qemu_acl *acl,
int deny,
const char *match)
{
qemu_acl_entry *entry;
entry = qemu_malloc(sizeof(*entry));
entry->match = qemu_strdup(match);
entry->deny = deny;
TAILQ_INSERT_TAIL(&acl->entries, entry, next);
acl->nentries++... | {
"code": [],
"line_no": []
} | int FUNC_0(qemu_acl *VAR_0,
int VAR_1,
const char *VAR_2)
{
qemu_acl_entry *entry;
entry = qemu_malloc(sizeof(*entry));
entry->VAR_2 = qemu_strdup(VAR_2);
entry->VAR_1 = VAR_1;
TAILQ_INSERT_TAIL(&VAR_0->entries, entry, next);
VAR_0->nentries++... | [
"int FUNC_0(qemu_acl *VAR_0,\nint VAR_1,\nconst char *VAR_2)\n{",
"qemu_acl_entry *entry;",
"entry = qemu_malloc(sizeof(*entry));",
"entry->VAR_2 = qemu_strdup(VAR_2);",
"entry->VAR_1 = VAR_1;",
"TAILQ_INSERT_TAIL(&VAR_0->entries, entry, next);",
"VAR_0->nentries++;",
"return VAR_0->nentries;",
"}"
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27
],
[
29
]
] |
24,685 | void virtio_scsi_common_realize(DeviceState *dev, Error **errp,
HandleOutput ctrl, HandleOutput evt,
HandleOutput cmd)
{
VirtIODevice *vdev = VIRTIO_DEVICE(dev);
VirtIOSCSICommon *s = VIRTIO_SCSI_COMMON(dev);
int i;
virtio_init(vde... | false | qemu | 0ba1f53191221b541b938df86a39eeccfb87f996 | void virtio_scsi_common_realize(DeviceState *dev, Error **errp,
HandleOutput ctrl, HandleOutput evt,
HandleOutput cmd)
{
VirtIODevice *vdev = VIRTIO_DEVICE(dev);
VirtIOSCSICommon *s = VIRTIO_SCSI_COMMON(dev);
int i;
virtio_init(vde... | {
"code": [],
"line_no": []
} | void FUNC_0(DeviceState *VAR_0, Error **VAR_1,
HandleOutput VAR_2, HandleOutput VAR_3,
HandleOutput VAR_4)
{
VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);
VirtIOSCSICommon *s = VIRTIO_SCSI_COMMON(VAR_0);
int VAR_5;
virtio_init(vdev, "... | [
"void FUNC_0(DeviceState *VAR_0, Error **VAR_1,\nHandleOutput VAR_2, HandleOutput VAR_3,\nHandleOutput VAR_4)\n{",
"VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);",
"VirtIOSCSICommon *s = VIRTIO_SCSI_COMMON(VAR_0);",
"int VAR_5;",
"virtio_init(vdev, \"virtio-scsi\", VIRTIO_ID_SCSI,\nsizeof(VirtIOSCSIConfig));",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25,
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
[
49,
51
],
[
53
],
[... |
24,686 | static int write_elf32_load(DumpState *s, MemoryMapping *memory_mapping,
int phdr_index, hwaddr offset)
{
Elf32_Phdr phdr;
int ret;
int endian = s->dump_info.d_endian;
memset(&phdr, 0, sizeof(Elf32_Phdr));
phdr.p_type = cpu_convert_to_target32(PT_LOAD, endian);
... | false | qemu | 2cac260768b9d4253737417ea7501cf2950e257f | static int write_elf32_load(DumpState *s, MemoryMapping *memory_mapping,
int phdr_index, hwaddr offset)
{
Elf32_Phdr phdr;
int ret;
int endian = s->dump_info.d_endian;
memset(&phdr, 0, sizeof(Elf32_Phdr));
phdr.p_type = cpu_convert_to_target32(PT_LOAD, endian);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(DumpState *VAR_0, MemoryMapping *VAR_1,
int VAR_2, hwaddr VAR_3)
{
Elf32_Phdr phdr;
int VAR_4;
int VAR_5 = VAR_0->dump_info.d_endian;
memset(&phdr, 0, sizeof(Elf32_Phdr));
phdr.p_type = cpu_convert_to_target32(PT_LOAD, VAR_5);
phdr.p_offset... | [
"static int FUNC_0(DumpState *VAR_0, MemoryMapping *VAR_1,\nint VAR_2, hwaddr VAR_3)\n{",
"Elf32_Phdr phdr;",
"int VAR_4;",
"int VAR_5 = VAR_0->dump_info.d_endian;",
"memset(&phdr, 0, sizeof(Elf32_Phdr));",
"phdr.p_type = cpu_convert_to_target32(PT_LOAD, VAR_5);",
"phdr.p_offset = cpu_convert_to_target3... | [
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
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
24,687 | static void qemu_laio_enqueue_completed(struct qemu_laio_state *s,
struct qemu_laiocb* laiocb)
{
if (laiocb->async_context_id == get_async_context_id()) {
qemu_laio_process_completion(s, laiocb);
} else {
QLIST_INSERT_HEAD(&s->completed_reqs, laiocb, node);
}
}
| false | qemu | 384acbf46b70edf0d2c1648aa1a92a90bcf7057d | static void qemu_laio_enqueue_completed(struct qemu_laio_state *s,
struct qemu_laiocb* laiocb)
{
if (laiocb->async_context_id == get_async_context_id()) {
qemu_laio_process_completion(s, laiocb);
} else {
QLIST_INSERT_HEAD(&s->completed_reqs, laiocb, node);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(struct qemu_laio_state *VAR_0,
struct qemu_laiocb* VAR_1)
{
if (VAR_1->async_context_id == get_async_context_id()) {
qemu_laio_process_completion(VAR_0, VAR_1);
} else {
QLIST_INSERT_HEAD(&VAR_0->completed_reqs, VAR_1, node);
}
}
| [
"static void FUNC_0(struct qemu_laio_state *VAR_0,\nstruct qemu_laiocb* VAR_1)\n{",
"if (VAR_1->async_context_id == get_async_context_id()) {",
"qemu_laio_process_completion(VAR_0, VAR_1);",
"} else {",
"QLIST_INSERT_HEAD(&VAR_0->completed_reqs, VAR_1, node);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
24,689 | static inline void gen_goto_tb(DisasContext *s, int n, uint64_t dest)
{
TranslationBlock *tb;
tb = s->tb;
if (use_goto_tb(s, n, dest)) {
tcg_gen_goto_tb(n);
gen_a64_set_pc_im(dest);
tcg_gen_exit_tb((intptr_t)tb + n);
s->is_jmp = DISAS_TB_JUMP;
} else {
... | false | qemu | cc9c1ed14e876d724107fe72f74dcac71a003fbc | static inline void gen_goto_tb(DisasContext *s, int n, uint64_t dest)
{
TranslationBlock *tb;
tb = s->tb;
if (use_goto_tb(s, n, dest)) {
tcg_gen_goto_tb(n);
gen_a64_set_pc_im(dest);
tcg_gen_exit_tb((intptr_t)tb + n);
s->is_jmp = DISAS_TB_JUMP;
} else {
... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, uint64_t VAR_2)
{
TranslationBlock *tb;
tb = VAR_0->tb;
if (use_goto_tb(VAR_0, VAR_1, VAR_2)) {
tcg_gen_goto_tb(VAR_1);
gen_a64_set_pc_im(VAR_2);
tcg_gen_exit_tb((intptr_t)tb + VAR_1);
VAR_0->is_jmp = DISAS_T... | [
"static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, uint64_t VAR_2)\n{",
"TranslationBlock *tb;",
"tb = VAR_0->tb;",
"if (use_goto_tb(VAR_0, VAR_1, VAR_2)) {",
"tcg_gen_goto_tb(VAR_1);",
"gen_a64_set_pc_im(VAR_2);",
"tcg_gen_exit_tb((intptr_t)tb + VAR_1);",
"VAR_0->is_jmp = DISAS_TB_JUMP;",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
24,690 | static void gen_spr_BookE206(CPUPPCState *env, uint32_t mas_mask,
uint32_t *tlbncfg)
{
#if !defined(CONFIG_USER_ONLY)
const char *mas_names[8] = {
"MAS0", "MAS1", "MAS2", "MAS3", "MAS4", "MAS5", "MAS6", "MAS7",
};
int mas_sprn[8] = {
SPR_BOOKE_MAS0, SPR_... | false | qemu | ba38ab8d429a326c2a9c30110df84f0cad441094 | static void gen_spr_BookE206(CPUPPCState *env, uint32_t mas_mask,
uint32_t *tlbncfg)
{
#if !defined(CONFIG_USER_ONLY)
const char *mas_names[8] = {
"MAS0", "MAS1", "MAS2", "MAS3", "MAS4", "MAS5", "MAS6", "MAS7",
};
int mas_sprn[8] = {
SPR_BOOKE_MAS0, SPR_... | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUPPCState *VAR_0, uint32_t VAR_1,
uint32_t *VAR_2)
{
#if !defined(CONFIG_USER_ONLY)
const char *VAR_3[8] = {
"MAS0", "MAS1", "MAS2", "MAS3", "MAS4", "MAS5", "MAS6", "MAS7",
};
int VAR_4[8] = {
SPR_BOOKE_MAS0, SPR_BOOKE_MAS1, SPR_BOOK... | [
"static void FUNC_0(CPUPPCState *VAR_0, uint32_t VAR_1,\nuint32_t *VAR_2)\n{",
"#if !defined(CONFIG_USER_ONLY)\nconst char *VAR_3[8] = {",
"\"MAS0\", \"MAS1\", \"MAS2\", \"MAS3\", \"MAS4\", \"MAS5\", \"MAS6\", \"MAS7\",\n};",
"int VAR_4[8] = {",
"SPR_BOOKE_MAS0, SPR_BOOKE_MAS1, SPR_BOOKE_MAS2, SPR_BOOKE_MAS... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11,
13
],
[
15
],
[
17,
19,
21
],
[
23
],
[
31
],
[
33
],
[
35,
37,
39,
41
],
[
43
],
[
45
],
[
47
],
[
51,
53,
55,
57
],
[
59
],
[... |
24,691 | static void vnc_tight_start(VncState *vs)
{
buffer_reset(&vs->tight);
// make the output buffer be the zlib buffer, so we can compress it later
vs->tight_tmp = vs->output;
vs->output = vs->tight;
}
| false | qemu | 245f7b51c0ea04fb2224b1127430a096c91aee70 | static void vnc_tight_start(VncState *vs)
{
buffer_reset(&vs->tight);
vs->tight_tmp = vs->output;
vs->output = vs->tight;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(VncState *VAR_0)
{
buffer_reset(&VAR_0->tight);
VAR_0->tight_tmp = VAR_0->output;
VAR_0->output = VAR_0->tight;
}
| [
"static void FUNC_0(VncState *VAR_0)\n{",
"buffer_reset(&VAR_0->tight);",
"VAR_0->tight_tmp = VAR_0->output;",
"VAR_0->output = VAR_0->tight;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13
],
[
15
]
] |
24,692 | static void error_mem_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
abort();
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void error_mem_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
abort();
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
abort();
}
| [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"abort();",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
24,693 | build_tpm_tcpa(GArray *table_data, GArray *linker, GArray *tcpalog)
{
Acpi20Tcpa *tcpa = acpi_data_push(table_data, sizeof *tcpa);
uint64_t log_area_start_address = acpi_data_len(tcpalog);
tcpa->platform_class = cpu_to_le16(TPM_TCPA_ACPI_CLASS_CLIENT);
tcpa->log_area_minimum_length = cpu_to_le32(... | false | qemu | 37ad223c515da2fe9f1c679768cb5ccaa42e57e1 | build_tpm_tcpa(GArray *table_data, GArray *linker, GArray *tcpalog)
{
Acpi20Tcpa *tcpa = acpi_data_push(table_data, sizeof *tcpa);
uint64_t log_area_start_address = acpi_data_len(tcpalog);
tcpa->platform_class = cpu_to_le16(TPM_TCPA_ACPI_CLASS_CLIENT);
tcpa->log_area_minimum_length = cpu_to_le32(... | {
"code": [],
"line_no": []
} | FUNC_0(GArray *VAR_0, GArray *VAR_1, GArray *VAR_2)
{
Acpi20Tcpa *tcpa = acpi_data_push(VAR_0, sizeof *tcpa);
uint64_t log_area_start_address = acpi_data_len(VAR_2);
tcpa->platform_class = cpu_to_le16(TPM_TCPA_ACPI_CLASS_CLIENT);
tcpa->log_area_minimum_length = cpu_to_le32(TPM_LOG_AREA_MINIMUM_SI... | [
"FUNC_0(GArray *VAR_0, GArray *VAR_1, GArray *VAR_2)\n{",
"Acpi20Tcpa *tcpa = acpi_data_push(VAR_0, sizeof *tcpa);",
"uint64_t log_area_start_address = acpi_data_len(VAR_2);",
"tcpa->platform_class = cpu_to_le16(TPM_TCPA_ACPI_CLASS_CLIENT);",
"tcpa->log_area_minimum_length = cpu_to_le32(TPM_LOG_AREA_MINIMUM... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
27,
29,
31,
33
],
[
37,
39
],
[
43
],
[
45
]
] |
24,694 | static void build_pci_bus_state_cleanup(AcpiBuildPciBusHotplugState *state)
{
build_free_array(state->device_table);
build_free_array(state->notify_table);
}
| false | qemu | b23046abe78f48498a423b802d6d86ba0172d57f | static void build_pci_bus_state_cleanup(AcpiBuildPciBusHotplugState *state)
{
build_free_array(state->device_table);
build_free_array(state->notify_table);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(AcpiBuildPciBusHotplugState *VAR_0)
{
build_free_array(VAR_0->device_table);
build_free_array(VAR_0->notify_table);
}
| [
"static void FUNC_0(AcpiBuildPciBusHotplugState *VAR_0)\n{",
"build_free_array(VAR_0->device_table);",
"build_free_array(VAR_0->notify_table);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
24,696 | uint32_t HELPER(mvcle)(CPUS390XState *env, uint32_t r1, uint64_t a2,
uint32_t r3)
{
uintptr_t ra = GETPC();
uint64_t destlen = get_length(env, r1 + 1);
uint64_t dest = get_address(env, r1);
uint64_t srclen = get_length(env, r3 + 1);
uint64_t src = get_address(env, r3);
... | false | qemu | d33271213437ed1834b0a50540d79e877e1cd894 | uint32_t HELPER(mvcle)(CPUS390XState *env, uint32_t r1, uint64_t a2,
uint32_t r3)
{
uintptr_t ra = GETPC();
uint64_t destlen = get_length(env, r1 + 1);
uint64_t dest = get_address(env, r1);
uint64_t srclen = get_length(env, r3 + 1);
uint64_t src = get_address(env, r3);
... | {
"code": [],
"line_no": []
} | uint32_t FUNC_0(mvcle)(CPUS390XState *env, uint32_t r1, uint64_t a2,
uint32_t r3)
{
uintptr_t ra = GETPC();
uint64_t destlen = get_length(env, r1 + 1);
uint64_t dest = get_address(env, r1);
uint64_t srclen = get_length(env, r3 + 1);
uint64_t src = get_address(env, r3);
... | [
"uint32_t FUNC_0(mvcle)(CPUS390XState *env, uint32_t r1, uint64_t a2,\nuint32_t r3)\n{",
"uintptr_t ra = GETPC();",
"uint64_t destlen = get_length(env, r1 + 1);",
"uint64_t dest = get_address(env, r1);",
"uint64_t srclen = get_length(env, r3 + 1);",
"uint64_t src = get_address(env, r3);",
"uint8_t pad =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[... |
24,697 | static inline void init_thread(struct target_pt_regs *regs, struct image_info *infop)
{
target_long *stack = (void *)infop->start_stack;
memset(regs, 0, sizeof(*regs));
regs->ARM_cpsr = 0x10;
regs->ARM_pc = infop->entry;
regs->ARM_sp = infop->start_stack;
regs->ARM_r2 = tswapl(stack[2]); ... | false | qemu | 0240ded8bb1580147ed2ff1748df439a3b41e38f | static inline void init_thread(struct target_pt_regs *regs, struct image_info *infop)
{
target_long *stack = (void *)infop->start_stack;
memset(regs, 0, sizeof(*regs));
regs->ARM_cpsr = 0x10;
regs->ARM_pc = infop->entry;
regs->ARM_sp = infop->start_stack;
regs->ARM_r2 = tswapl(stack[2]); ... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(struct target_pt_regs *VAR_0, struct image_info *VAR_1)
{
target_long *stack = (void *)VAR_1->start_stack;
memset(VAR_0, 0, sizeof(*VAR_0));
VAR_0->ARM_cpsr = 0x10;
VAR_0->ARM_pc = VAR_1->entry;
VAR_0->ARM_sp = VAR_1->start_stack;
VAR_0->ARM_r2 = tswapl(stack[2])... | [
"static inline void FUNC_0(struct target_pt_regs *VAR_0, struct image_info *VAR_1)\n{",
"target_long *stack = (void *)VAR_1->start_stack;",
"memset(VAR_0, 0, sizeof(*VAR_0));",
"VAR_0->ARM_cpsr = 0x10;",
"VAR_0->ARM_pc = VAR_1->entry;",
"VAR_0->ARM_sp = VAR_1->start_stack;",
"VAR_0->ARM_r2 = tswapl(stac... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
23
]
] |
24,698 | bool qemu_aio_wait(void)
{
AioHandler *node;
fd_set rdfds, wrfds;
int max_fd = -1;
int ret;
bool busy;
/*
* If there are callbacks left that have been queued, we need to call then.
* Do not call select in this case, because it is possible that the caller
* does not nee... | false | qemu | 2db2bfc0ccac5fd68dbf0ceb70fbc372c5d8a8c7 | bool qemu_aio_wait(void)
{
AioHandler *node;
fd_set rdfds, wrfds;
int max_fd = -1;
int ret;
bool busy;
if (qemu_bh_poll()) {
return true;
}
walking_handlers++;
FD_ZERO(&rdfds);
FD_ZERO(&wrfds);
busy = false;
QLIST_FOREACH(... | {
"code": [],
"line_no": []
} | bool FUNC_0(void)
{
AioHandler *node;
fd_set rdfds, wrfds;
int VAR_0 = -1;
int VAR_1;
bool busy;
if (qemu_bh_poll()) {
return true;
}
walking_handlers++;
FD_ZERO(&rdfds);
FD_ZERO(&wrfds);
busy = false;
QLIST_FOREACH(node, ... | [
"bool FUNC_0(void)\n{",
"AioHandler *node;",
"fd_set rdfds, wrfds;",
"int VAR_0 = -1;",
"int VAR_1;",
"bool busy;",
"if (qemu_bh_poll()) {",
"return true;",
"}",
"walking_handlers++;",
"FD_ZERO(&rdfds);",
"FD_ZERO(&wrfds);",
"busy = false;",
"QLIST_FOREACH(node, &aio_handlers, node) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39
],
[
41
],
[
47
],
[
49
],
[
59
],
[
61
],
[
63
],
[
65
],
[
67
],
[
69
... |
24,700 | static uint64_t lsi_io_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
LSIState *s = opaque;
return lsi_reg_readb(s, addr & 0xff);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t lsi_io_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
LSIState *s = opaque;
return lsi_reg_readb(s, addr & 0xff);
}
| {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,
unsigned size)
{
LSIState *s = opaque;
return lsi_reg_readb(s, addr & 0xff);
}
| [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{",
"LSIState *s = opaque;",
"return lsi_reg_readb(s, addr & 0xff);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
]
] |
24,701 | static av_cold int pcx_encode_close(AVCodecContext *avctx)
{
av_frame_free(&avctx->coded_frame);
return 0;
}
| false | FFmpeg | d6604b29ef544793479d7fb4e05ef6622bb3e534 | static av_cold int pcx_encode_close(AVCodecContext *avctx)
{
av_frame_free(&avctx->coded_frame);
return 0;
}
| {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
av_frame_free(&avctx->coded_frame);
return 0;
}
| [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"av_frame_free(&avctx->coded_frame);",
"return 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
24,702 | static void fill_double_array(AVLFG *lfg, double *a, int len)
{
int i;
double bmg[2], stddev = 10.0, mean = 0.0;
for (i = 0; i < len; i += 2) {
av_bmg_get(lfg, bmg);
a[i] = bmg[0] * stddev + mean;
a[i + 1] = bmg[1] * stddev + mean;
}
}
| false | FFmpeg | e53c9065ca08a9153ecc73a6a8940bcc6d667e58 | static void fill_double_array(AVLFG *lfg, double *a, int len)
{
int i;
double bmg[2], stddev = 10.0, mean = 0.0;
for (i = 0; i < len; i += 2) {
av_bmg_get(lfg, bmg);
a[i] = bmg[0] * stddev + mean;
a[i + 1] = bmg[1] * stddev + mean;
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(AVLFG *VAR_0, double *VAR_1, int VAR_2)
{
int VAR_3;
double VAR_4[2], VAR_5 = 10.0, VAR_6 = 0.0;
for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3 += 2) {
av_bmg_get(VAR_0, VAR_4);
VAR_1[VAR_3] = VAR_4[0] * VAR_5 + VAR_6;
VAR_1[VAR_3 + 1] = VAR_4[1] * VAR_5 + VAR_6... | [
"static void FUNC_0(AVLFG *VAR_0, double *VAR_1, int VAR_2)\n{",
"int VAR_3;",
"double VAR_4[2], VAR_5 = 10.0, VAR_6 = 0.0;",
"for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3 += 2) {",
"av_bmg_get(VAR_0, VAR_4);",
"VAR_1[VAR_3] = VAR_4[0] * VAR_5 + VAR_6;",
"VAR_1[VAR_3 + 1] = VAR_4[1] * VAR_5 + VAR_6;",
"}"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
24,703 | static void init_input_filter(FilterGraph *fg, AVFilterInOut *in)
{
InputStream *ist = NULL;
enum AVMediaType type = avfilter_pad_get_type(in->filter_ctx->input_pads, in->pad_idx);
int i;
// TODO: support other filter types
if (type != AVMEDIA_TYPE_VIDEO && type != AVMEDIA_TYPE_AUDIO) {
... | false | FFmpeg | 602abe77b02f9702c18c2787d208fcfc9d94b70f | static void init_input_filter(FilterGraph *fg, AVFilterInOut *in)
{
InputStream *ist = NULL;
enum AVMediaType type = avfilter_pad_get_type(in->filter_ctx->input_pads, in->pad_idx);
int i;
if (type != AVMEDIA_TYPE_VIDEO && type != AVMEDIA_TYPE_AUDIO) {
av_log(NULL, AV_LOG_FATAL, "On... | {
"code": [],
"line_no": []
} | static void FUNC_0(FilterGraph *VAR_0, AVFilterInOut *VAR_1)
{
InputStream *ist = NULL;
enum AVMediaType VAR_2 = avfilter_pad_get_type(VAR_1->filter_ctx->input_pads, VAR_1->pad_idx);
int VAR_3;
if (VAR_2 != AVMEDIA_TYPE_VIDEO && VAR_2 != AVMEDIA_TYPE_AUDIO) {
av_log(NULL, AV_LOG_FA... | [
"static void FUNC_0(FilterGraph *VAR_0, AVFilterInOut *VAR_1)\n{",
"InputStream *ist = NULL;",
"enum AVMediaType VAR_2 = avfilter_pad_get_type(VAR_1->filter_ctx->input_pads, VAR_1->pad_idx);",
"int VAR_3;",
"if (VAR_2 != AVMEDIA_TYPE_VIDEO && VAR_2 != AVMEDIA_TYPE_AUDIO) {",
"av_log(NULL, AV_LOG_FATAL, \"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
53
... |
24,704 | static int ccid_handle_data(USBDevice *dev, USBPacket *p)
{
USBCCIDState *s = DO_UPCAST(USBCCIDState, dev, dev);
int ret = 0;
uint8_t *data = p->data;
int len = p->len;
switch (p->pid) {
case USB_TOKEN_OUT:
ret = ccid_handle_bulk_out(s, p);
break;
case USB_TOKEN... | true | qemu | 4f4321c11ff6e98583846bfd6f0e81954924b003 | static int ccid_handle_data(USBDevice *dev, USBPacket *p)
{
USBCCIDState *s = DO_UPCAST(USBCCIDState, dev, dev);
int ret = 0;
uint8_t *data = p->data;
int len = p->len;
switch (p->pid) {
case USB_TOKEN_OUT:
ret = ccid_handle_bulk_out(s, p);
break;
case USB_TOKEN... | {
"code": [
" uint8_t *data = p->data;",
" int len = p->len;",
" if (!len) {",
" ret = ccid_bulk_in_copy_to_guest(s, data, len);",
" data[0] = CCID_MESSAGE_TYPE_RDR_to_PC_NotifySlotChange;",
" data[1] = s->bmSlotICCState;",
" ... | static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1)
{
USBCCIDState *s = DO_UPCAST(USBCCIDState, VAR_0, VAR_0);
int VAR_2 = 0;
uint8_t *data = VAR_1->data;
int VAR_3 = VAR_1->VAR_3;
switch (VAR_1->pid) {
case USB_TOKEN_OUT:
VAR_2 = ccid_handle_bulk_out(s, VAR_1);
brea... | [
"static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1)\n{",
"USBCCIDState *s = DO_UPCAST(USBCCIDState, VAR_0, VAR_0);",
"int VAR_2 = 0;",
"uint8_t *data = VAR_1->data;",
"int VAR_3 = VAR_1->VAR_3;",
"switch (VAR_1->pid) {",
"case USB_TOKEN_OUT:\nVAR_2 = ccid_handle_bulk_out(s, VAR_1);",
"break;",
"c... | [
0,
0,
0,
1,
1,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
1,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
25,
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
49
],
[
51
... |
24,705 | static void disas_xtensa_insn(CPUXtensaState *env, DisasContext *dc)
{
#define HAS_OPTION_BITS(opt) do { \
if (!option_bits_enabled(dc, opt)) { \
qemu_log("Option is not enabled %s:%d\n", \
__FILE__, __LINE__); \
goto invalid_opcode; \
} \
} while ... | true | qemu | fe0bd475aa31e60674f7f53b85dc293108026202 | static void disas_xtensa_insn(CPUXtensaState *env, DisasContext *dc)
{
#define HAS_OPTION_BITS(opt) do { \
if (!option_bits_enabled(dc, opt)) { \
qemu_log("Option is not enabled %s:%d\n", \
__FILE__, __LINE__); \
goto invalid_opcode; \
} \
} while ... | {
"code": [
" if (!sregnames[RSR_SR]) {",
" TBD();",
" if (!sregnames[RSR_SR]) {",
" TBD();",
" if (!sregnames[RSR_SR]) {",
" TBD();",
" if (uregnames[st]) {",
... | static void FUNC_0(CPUXtensaState *VAR_0, DisasContext *VAR_1)
{
#define HAS_OPTION_BITS(opt) do { \
if (!option_bits_enabled(VAR_1, opt)) { \
qemu_log("Option is not enabled %s:%d\n", \
__FILE__, __LINE__); \
goto invalid_opcode; \
} \
} while (0)... | [
"static void FUNC_0(CPUXtensaState *VAR_0, DisasContext *VAR_1)\n{",
"#define HAS_OPTION_BITS(opt) do { \\",
"if (!option_bits_enabled(VAR_1, opt)) { \\",
"qemu_log(\"Option is not enabled %s:%d\\n\", \\\n__FILE__, __LINE__); \\",
"goto invalid_opcode; \\",
"} \\",
"} while (0)",
"#define HAS_OPTION(o... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
21,
25,
27
],
[
29,
31
],
[
33
],
[
35
],
[
41,
43,
45,
47,
49,
51,
53,
55,
57,
59,
61,
63,
65,... |
24,706 | static void derive_spatial_merge_candidates(HEVCContext *s, int x0, int y0,
int nPbW, int nPbH,
int log2_cb_size,
int singleMCLFlag, int part_idx,
... | false | FFmpeg | 9e9be5a20c0b36dce1cae11f5f5957886231a764 | static void derive_spatial_merge_candidates(HEVCContext *s, int x0, int y0,
int nPbW, int nPbH,
int log2_cb_size,
int singleMCLFlag, int part_idx,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2,
int VAR_3, int VAR_4,
int VAR_5,
int VAR_6, int VAR_7,
int VAR_8,
... | [
"static void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4,\nint VAR_5,\nint VAR_6, int VAR_7,\nint VAR_8,\nstruct MvField VAR_9[])\n{",
"HEVCLocalContext *lc = &VAR_0->HEVClc;",
"RefPicList *refPicList = VAR_0->ref->refPicList;",
"MvField *VAR_10 = VAR_0->ref->VAR_10;",
"co... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[... |
24,707 | void ff_avg_h264_qpel4_mc12_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_midh_qrt_and_aver_dst_4w_msa(src - (2 * stride) - 2,
stride, dst, stride, 4, 0);
}
| false | FFmpeg | 72dbc610be3272ba36603f78a39cc2d2d8fe0cc3 | void ff_avg_h264_qpel4_mc12_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_midh_qrt_and_aver_dst_4w_msa(src - (2 * stride) - 2,
stride, dst, stride, 4, 0);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,
ptrdiff_t VAR_2)
{
avc_luma_midh_qrt_and_aver_dst_4w_msa(VAR_1 - (2 * VAR_2) - 2,
VAR_2, VAR_0, VAR_2, 4, 0);
}
| [
"void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{",
"avc_luma_midh_qrt_and_aver_dst_4w_msa(VAR_1 - (2 * VAR_2) - 2,\nVAR_2, VAR_0, VAR_2, 4, 0);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11
]
] |
24,708 | static void decode_postinit(H264Context *h, int setup_finished)
{
const SPS *sps = h->ps.sps;
H264Picture *out = h->cur_pic_ptr;
H264Picture *cur = h->cur_pic_ptr;
int i, pics, out_of_order, out_idx;
int invalid = 0, cnt = 0;
h->cur_pic_ptr->f->pict_type = h->pict_type;
if (h->ne... | false | FFmpeg | 99c554efc8b09c3f1bb2fb41c3da5431085f7470 | static void decode_postinit(H264Context *h, int setup_finished)
{
const SPS *sps = h->ps.sps;
H264Picture *out = h->cur_pic_ptr;
H264Picture *cur = h->cur_pic_ptr;
int i, pics, out_of_order, out_idx;
int invalid = 0, cnt = 0;
h->cur_pic_ptr->f->pict_type = h->pict_type;
if (h->ne... | {
"code": [],
"line_no": []
} | static void FUNC_0(H264Context *VAR_0, int VAR_1)
{
const SPS *VAR_2 = VAR_0->ps.VAR_2;
H264Picture *out = VAR_0->cur_pic_ptr;
H264Picture *cur = VAR_0->cur_pic_ptr;
int VAR_3, VAR_4, VAR_5, VAR_6;
int VAR_7 = 0, VAR_8 = 0;
VAR_0->cur_pic_ptr->f->pict_type = VAR_0->pict_type;
if ... | [
"static void FUNC_0(H264Context *VAR_0, int VAR_1)\n{",
"const SPS *VAR_2 = VAR_0->ps.VAR_2;",
"H264Picture *out = VAR_0->cur_pic_ptr;",
"H264Picture *cur = VAR_0->cur_pic_ptr;",
"int VAR_3, VAR_4, VAR_5, VAR_6;",
"int VAR_7 = 0, VAR_8 = 0;",
"VAR_0->cur_pic_ptr->f->pict_type = VAR_0->pict_type;",
"if... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21,
23
],
[
27
],
[
41
],
[
43
],
[
47
],
[
49
],
[
61
],
[
63
],
[
65
],
[
67,
69
],
[
71,
73,
75
... |
24,709 | static int g2m_load_cursor(AVCodecContext *avctx, G2MContext *c,
GetByteContext *gb)
{
int i, j, k;
uint8_t *dst;
uint32_t bits;
uint32_t cur_size, cursor_w, cursor_h, cursor_stride;
uint32_t cursor_hot_x, cursor_hot_y;
int cursor_fmt;
uint8_t *tmp;
... | false | FFmpeg | 83f7bd6dcf00875725c5f3b7e1bedac5a6b3c77d | static int g2m_load_cursor(AVCodecContext *avctx, G2MContext *c,
GetByteContext *gb)
{
int i, j, k;
uint8_t *dst;
uint32_t bits;
uint32_t cur_size, cursor_w, cursor_h, cursor_stride;
uint32_t cursor_hot_x, cursor_hot_y;
int cursor_fmt;
uint8_t *tmp;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, G2MContext *VAR_1,
GetByteContext *VAR_2)
{
int VAR_3, VAR_4, VAR_5;
uint8_t *dst;
uint32_t bits;
uint32_t cur_size, cursor_w, cursor_h, cursor_stride;
uint32_t cursor_hot_x, cursor_hot_y;
int VAR_6;
uint8_t *tmp;
... | [
"static int FUNC_0(AVCodecContext *VAR_0, G2MContext *VAR_1,\nGetByteContext *VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5;",
"uint8_t *dst;",
"uint32_t bits;",
"uint32_t cur_size, cursor_w, cursor_h, cursor_stride;",
"uint32_t cursor_hot_x, cursor_hot_y;",
"int VAR_6;",
"uint8_t *tmp;",
"cur_size = by... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
41,
43
],
[
45,
47
],
[
49
],
[... |
24,710 | static int has_duration(AVFormatContext *ic)
{
int i;
AVStream *st;
for(i = 0;i < ic->nb_streams; i++) {
st = ic->streams[i];
if (st->duration != AV_NOPTS_VALUE)
return 1;
}
if (ic->duration)
return 1;
return 0;
}
| false | FFmpeg | 8b97ae64841ed29db9c77db322890656cdc0d354 | static int has_duration(AVFormatContext *ic)
{
int i;
AVStream *st;
for(i = 0;i < ic->nb_streams; i++) {
st = ic->streams[i];
if (st->duration != AV_NOPTS_VALUE)
return 1;
}
if (ic->duration)
return 1;
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
int VAR_1;
AVStream *st;
for(VAR_1 = 0;VAR_1 < VAR_0->nb_streams; VAR_1++) {
st = VAR_0->streams[VAR_1];
if (st->duration != AV_NOPTS_VALUE)
return 1;
}
if (VAR_0->duration)
return 1;
return 0;
}
| [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"int VAR_1;",
"AVStream *st;",
"for(VAR_1 = 0;VAR_1 < VAR_0->nb_streams; VAR_1++) {",
"st = VAR_0->streams[VAR_1];",
"if (st->duration != AV_NOPTS_VALUE)\nreturn 1;",
"}",
"if (VAR_0->duration)\nreturn 1;",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
]
] |
24,712 | void virt_acpi_setup(VirtGuestInfo *guest_info)
{
AcpiBuildTables tables;
AcpiBuildState *build_state;
if (!guest_info->fw_cfg) {
trace_virt_acpi_setup();
return;
}
if (!acpi_enabled) {
trace_virt_acpi_setup();
return;
}
build_state = g_mallo... | false | qemu | 0e9b9edae7bebfd31fdbead4ccbbce03876a7edd | void virt_acpi_setup(VirtGuestInfo *guest_info)
{
AcpiBuildTables tables;
AcpiBuildState *build_state;
if (!guest_info->fw_cfg) {
trace_virt_acpi_setup();
return;
}
if (!acpi_enabled) {
trace_virt_acpi_setup();
return;
}
build_state = g_mallo... | {
"code": [],
"line_no": []
} | void FUNC_0(VirtGuestInfo *VAR_0)
{
AcpiBuildTables tables;
AcpiBuildState *build_state;
if (!VAR_0->fw_cfg) {
trace_virt_acpi_setup();
return;
}
if (!acpi_enabled) {
trace_virt_acpi_setup();
return;
}
build_state = g_malloc0(sizeof *build_st... | [
"void FUNC_0(VirtGuestInfo *VAR_0)\n{",
"AcpiBuildTables tables;",
"AcpiBuildState *build_state;",
"if (!VAR_0->fw_cfg) {",
"trace_virt_acpi_setup();",
"return;",
"}",
"if (!acpi_enabled) {",
"trace_virt_acpi_setup();",
"return;",
"}",
"build_state = g_malloc0(sizeof *build_state);",
"build_... | [
0,
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
],
[
31
],
[
33
],
[
37
],
[
39
],
[
45,
47,
49
],
[
51
],
[
55,
57
],
... |
24,713 | void test_fenv(void)
{
struct __attribute__((packed)) {
uint16_t fpuc;
uint16_t dummy1;
uint16_t fpus;
uint16_t dummy2;
uint16_t fptag;
uint16_t dummy3;
uint32_t ignored[4];
long double fpregs[8];
} float_env32;
struct __attribute__... | false | qemu | 541dc0d47f10973c241e9955afc2aefc96adec51 | void test_fenv(void)
{
struct __attribute__((packed)) {
uint16_t fpuc;
uint16_t dummy1;
uint16_t fpus;
uint16_t dummy2;
uint16_t fptag;
uint16_t dummy3;
uint32_t ignored[4];
long double fpregs[8];
} float_env32;
struct __attribute__... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
struct __attribute__((packed)) {
uint16_t fpuc;
uint16_t dummy1;
uint16_t fpus;
uint16_t dummy2;
uint16_t fptag;
uint16_t dummy3;
uint32_t ignored[4];
long double fpregs[8];
} VAR_0;
struct __attribute__((packed)... | [
"void FUNC_0(void)\n{",
"struct __attribute__((packed)) {",
"uint16_t fpuc;",
"uint16_t dummy1;",
"uint16_t fpus;",
"uint16_t dummy2;",
"uint16_t fptag;",
"uint16_t dummy3;",
"uint32_t ignored[4];",
"long double fpregs[8];",
"} VAR_0;",
"struct __attribute__((packed)) {",
"uint16_t fpuc;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
... |
24,714 | static void migrate_params_apply(MigrateSetParameters *params)
{
MigrationState *s = migrate_get_current();
/* TODO use QAPI_CLONE() instead of duplicating it inline */
if (params->has_compress_level) {
s->parameters.compress_level = params->compress_level;
}
if (params->has_com... | false | qemu | 01fa55982692fb51a16049b63b571651a1053989 | static void migrate_params_apply(MigrateSetParameters *params)
{
MigrationState *s = migrate_get_current();
if (params->has_compress_level) {
s->parameters.compress_level = params->compress_level;
}
if (params->has_compress_threads) {
s->parameters.compress_threads = p... | {
"code": [],
"line_no": []
} | static void FUNC_0(MigrateSetParameters *VAR_0)
{
MigrationState *s = migrate_get_current();
if (VAR_0->has_compress_level) {
s->parameters.compress_level = VAR_0->compress_level;
}
if (VAR_0->has_compress_threads) {
s->parameters.compress_threads = VAR_0->compress_thr... | [
"static void FUNC_0(MigrateSetParameters *VAR_0)\n{",
"MigrationState *s = migrate_get_current();",
"if (VAR_0->has_compress_level) {",
"s->parameters.compress_level = VAR_0->compress_level;",
"}",
"if (VAR_0->has_compress_threads) {",
"s->parameters.compress_threads = VAR_0->compress_threads;",
"}",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
],
[
5... |
24,715 | void helper_mtc0_wired(CPUMIPSState *env, target_ulong arg1)
{
env->CP0_Wired = arg1 % env->tlb->nb_tlb;
}
| false | qemu | ba801af429aaa68f6cc03842c8b6be81a6ede65a | void helper_mtc0_wired(CPUMIPSState *env, target_ulong arg1)
{
env->CP0_Wired = arg1 % env->tlb->nb_tlb;
}
| {
"code": [],
"line_no": []
} | void FUNC_0(CPUMIPSState *VAR_0, target_ulong VAR_1)
{
VAR_0->CP0_Wired = VAR_1 % VAR_0->tlb->nb_tlb;
}
| [
"void FUNC_0(CPUMIPSState *VAR_0, target_ulong VAR_1)\n{",
"VAR_0->CP0_Wired = VAR_1 % VAR_0->tlb->nb_tlb;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
24,717 | static int multiwrite_req_compare(const void *a, const void *b)
{
const BlockRequest *req1 = a, *req2 = b;
/*
* Note that we can't simply subtract req2->sector from req1->sector
* here as that could overflow the return value.
*/
if (req1->sector > req2->sector) {
return 1;
... | false | qemu | 61007b316cd71ee7333ff7a0a749a8949527575f | static int multiwrite_req_compare(const void *a, const void *b)
{
const BlockRequest *req1 = a, *req2 = b;
if (req1->sector > req2->sector) {
return 1;
} else if (req1->sector < req2->sector) {
return -1;
} else {
return 0;
}
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(const void *VAR_0, const void *VAR_1)
{
const BlockRequest *VAR_2 = VAR_0, *req2 = VAR_1;
if (VAR_2->sector > req2->sector) {
return 1;
} else if (VAR_2->sector < req2->sector) {
return -1;
} else {
return 0;
}
}
| [
"static int FUNC_0(const void *VAR_0, const void *VAR_1)\n{",
"const BlockRequest *VAR_2 = VAR_0, *req2 = VAR_1;",
"if (VAR_2->sector > req2->sector) {",
"return 1;",
"} else if (VAR_2->sector < req2->sector) {",
"return -1;",
"} else {",
"return 0;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
24,718 | static void iothread_complete(UserCreatable *obj, Error **errp)
{
Error *local_error = NULL;
IOThread *iothread = IOTHREAD(obj);
iothread->stopping = false;
iothread->thread_id = -1;
iothread->ctx = aio_context_new(&local_error);
if (!iothread->ctx) {
error_propagate(errp, loca... | false | qemu | d21e8776f6578be155714ae95c7d6c1bb03e8e34 | static void iothread_complete(UserCreatable *obj, Error **errp)
{
Error *local_error = NULL;
IOThread *iothread = IOTHREAD(obj);
iothread->stopping = false;
iothread->thread_id = -1;
iothread->ctx = aio_context_new(&local_error);
if (!iothread->ctx) {
error_propagate(errp, loca... | {
"code": [],
"line_no": []
} | static void FUNC_0(UserCreatable *VAR_0, Error **VAR_1)
{
Error *local_error = NULL;
IOThread *iothread = IOTHREAD(VAR_0);
iothread->stopping = false;
iothread->thread_id = -1;
iothread->ctx = aio_context_new(&local_error);
if (!iothread->ctx) {
error_propagate(VAR_1, local_err... | [
"static void FUNC_0(UserCreatable *VAR_0, Error **VAR_1)\n{",
"Error *local_error = NULL;",
"IOThread *iothread = IOTHREAD(VAR_0);",
"iothread->stopping = false;",
"iothread->thread_id = -1;",
"iothread->ctx = aio_context_new(&local_error);",
"if (!iothread->ctx) {",
"error_propagate(VAR_1, local_erro... | [
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
],
[
39,
41
],
[
47
],
[
49
],
[
51,
53
],
[
55
],
[
57
],
[
59... |
24,719 | restore_fpu_state(CPUSPARCState *env, qemu_siginfo_fpu_t *fpu)
{
int err;
#if 0
#ifdef CONFIG_SMP
if (current->flags & PF_USEDFPU)
regs->psr &= ~PSR_EF;
#else
if (current == last_task_used_math) {
last_task_used_math = 0;
regs->psr &= ~PS... | false | qemu | 945473847b4bb0869915aa47dabc4d2abbc87bdb | restore_fpu_state(CPUSPARCState *env, qemu_siginfo_fpu_t *fpu)
{
int err;
#if 0
#ifdef CONFIG_SMP
if (current->flags & PF_USEDFPU)
regs->psr &= ~PSR_EF;
#else
if (current == last_task_used_math) {
last_task_used_math = 0;
regs->psr &= ~PS... | {
"code": [],
"line_no": []
} | FUNC_0(CPUSPARCState *VAR_0, qemu_siginfo_fpu_t *VAR_1)
{
int VAR_2;
#if 0
#ifdef CONFIG_SMP
if (current->flags & PF_USEDFPU)
regs->psr &= ~PSR_EF;
#else
if (current == last_task_used_math) {
last_task_used_math = 0;
regs->psr &= ~PSR_EF;... | [
"FUNC_0(CPUSPARCState *VAR_0, qemu_siginfo_fpu_t *VAR_1)\n{",
"int VAR_2;",
"#if 0\n#ifdef CONFIG_SMP\nif (current->flags & PF_USEDFPU)\nregs->psr &= ~PSR_EF;",
"#else\nif (current == last_task_used_math) {",
"last_task_used_math = 0;",
"regs->psr &= ~PSR_EF;",
"}",
"#endif\ncurrent->used_math = 1;",
... | [
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,
45,
47
],
[
49
],
[
51,
53
],
[
55,
57,... |
24,721 | static int tta_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
TTAContext *s = avctx->priv_data;
int i;
init_get_bits(&s->gb, buf, buf_size*8);
{
int cur_chan = 0,... | false | FFmpeg | e6923f683c506cbb581eb7f31288801f1a065fb0 | static int tta_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
TTAContext *s = avctx->priv_data;
int i;
init_get_bits(&s->gb, buf, buf_size*8);
{
int cur_chan = 0,... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
TTAContext *s = VAR_0->priv_data;
int VAR_6;
init_get_bits(&s->gb, VAR_4, VAR_5*8);
{
int VAR_7 = 0, VAR_8 = s->f... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"TTAContext *s = VAR_0->priv_data;",
"int VAR_6;",
"init_get_bits(&s->gb, VAR_4, VAR_5*8);",
"{",
"int VAR_7 = 0, VAR_8 = s->frame_length;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
49
],
[
51
],
[
53
],
[... |
24,722 | int qdev_init(DeviceState *dev)
{
int rc;
assert(dev->state == DEV_STATE_CREATED);
rc = dev->info->init(dev, dev->info);
if (rc < 0) {
qdev_free(dev);
return rc;
}
qemu_register_reset(qdev_reset, dev);
if (dev->info->vmsd) {
vmstate_register_with_alias_id... | false | qemu | ec990eb622ad46df5ddcb1e94c418c271894d416 | int qdev_init(DeviceState *dev)
{
int rc;
assert(dev->state == DEV_STATE_CREATED);
rc = dev->info->init(dev, dev->info);
if (rc < 0) {
qdev_free(dev);
return rc;
}
qemu_register_reset(qdev_reset, dev);
if (dev->info->vmsd) {
vmstate_register_with_alias_id... | {
"code": [],
"line_no": []
} | int FUNC_0(DeviceState *VAR_0)
{
int VAR_1;
assert(VAR_0->state == DEV_STATE_CREATED);
VAR_1 = VAR_0->info->init(VAR_0, VAR_0->info);
if (VAR_1 < 0) {
qdev_free(VAR_0);
return VAR_1;
}
qemu_register_reset(qdev_reset, VAR_0);
if (VAR_0->info->vmsd) {
vmsta... | [
"int FUNC_0(DeviceState *VAR_0)\n{",
"int VAR_1;",
"assert(VAR_0->state == DEV_STATE_CREATED);",
"VAR_1 = VAR_0->info->init(VAR_0, VAR_0->info);",
"if (VAR_1 < 0) {",
"qdev_free(VAR_0);",
"return VAR_1;",
"}",
"qemu_register_reset(qdev_reset, VAR_0);",
"if (VAR_0->info->vmsd) {",
"vmstate_regist... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
24,723 | static int coroutine_fn copy_sectors(BlockDriverState *bs,
uint64_t start_sect,
uint64_t cluster_offset,
int n_start, int n_end)
{
BDRVQcowState *s = bs->opaque;
QEMUIOVector qiov;
struct io... | false | qemu | 6b7d4c55586a849aa8313282d79432917eade3bf | static int coroutine_fn copy_sectors(BlockDriverState *bs,
uint64_t start_sect,
uint64_t cluster_offset,
int n_start, int n_end)
{
BDRVQcowState *s = bs->opaque;
QEMUIOVector qiov;
struct io... | {
"code": [],
"line_no": []
} | static int VAR_0 copy_sectors(BlockDriverState *bs,
uint64_t start_sect,
uint64_t cluster_offset,
int n_start, int n_end)
{
BDRVQcowState *s = bs->opaque;
QEMUIOVector qiov;
struct iovec iov... | [
"static int VAR_0 copy_sectors(BlockDriverState *bs,\nuint64_t start_sect,\nuint64_t cluster_offset,\nint n_start, int n_end)\n{",
"BDRVQcowState *s = bs->opaque;",
"QEMUIOVector qiov;",
"struct iovec iov;",
"int n, ret;",
"if (start_sect + n_end > bs->total_sectors) {",
"n_end = bs->total_sectors - sta... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
55
],
[
59
],
[
63
],
[
65
],
[... |
24,724 | static int xhci_ep_nuke_xfers(XHCIState *xhci, unsigned int slotid,
unsigned int epid, TRBCCode report)
{
XHCISlot *slot;
XHCIEPContext *epctx;
int i, xferi, killed = 0;
USBEndpoint *ep = NULL;
assert(slotid >= 1 && slotid <= xhci->numslots);
assert(epid >=... | false | qemu | 94b037f2a451b3dc855f9f2c346e5049a361bd55 | static int xhci_ep_nuke_xfers(XHCIState *xhci, unsigned int slotid,
unsigned int epid, TRBCCode report)
{
XHCISlot *slot;
XHCIEPContext *epctx;
int i, xferi, killed = 0;
USBEndpoint *ep = NULL;
assert(slotid >= 1 && slotid <= xhci->numslots);
assert(epid >=... | {
"code": [],
"line_no": []
} | static int FUNC_0(XHCIState *VAR_0, unsigned int VAR_1,
unsigned int VAR_2, TRBCCode VAR_3)
{
XHCISlot *slot;
XHCIEPContext *epctx;
int VAR_4, VAR_5, VAR_6 = 0;
USBEndpoint *ep = NULL;
assert(VAR_1 >= 1 && VAR_1 <= VAR_0->numslots);
assert(VAR_2 >= 1 && VAR... | [
"static int FUNC_0(XHCIState *VAR_0, unsigned int VAR_1,\nunsigned int VAR_2, TRBCCode VAR_3)\n{",
"XHCISlot *slot;",
"XHCIEPContext *epctx;",
"int VAR_4, VAR_5, VAR_6 = 0;",
"USBEndpoint *ep = NULL;",
"assert(VAR_1 >= 1 && VAR_1 <= VAR_0->numslots);",
"assert(VAR_2 >= 1 && VAR_2 <= 31);",
"DPRINTF(\"... | [
0,
0,
0,
0,
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
],
[
29
],
[
31
],
[
33
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
24,725 | static inline void gen_branch_slot(uint32_t delayed_pc, int t)
{
TCGv sr;
int label = gen_new_label();
tcg_gen_movi_i32(cpu_delayed_pc, delayed_pc);
sr = tcg_temp_new();
tcg_gen_andi_i32(sr, cpu_sr, SR_T);
tcg_gen_brcondi_i32(t ? TCG_COND_EQ:TCG_COND_NE, sr, 0, label);
tcg_gen_ori_i3... | false | qemu | 42a268c241183877192c376d03bd9b6d527407c7 | static inline void gen_branch_slot(uint32_t delayed_pc, int t)
{
TCGv sr;
int label = gen_new_label();
tcg_gen_movi_i32(cpu_delayed_pc, delayed_pc);
sr = tcg_temp_new();
tcg_gen_andi_i32(sr, cpu_sr, SR_T);
tcg_gen_brcondi_i32(t ? TCG_COND_EQ:TCG_COND_NE, sr, 0, label);
tcg_gen_ori_i3... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(uint32_t VAR_0, int VAR_1)
{
TCGv sr;
int VAR_2 = gen_new_label();
tcg_gen_movi_i32(cpu_delayed_pc, VAR_0);
sr = tcg_temp_new();
tcg_gen_andi_i32(sr, cpu_sr, SR_T);
tcg_gen_brcondi_i32(VAR_1 ? TCG_COND_EQ:TCG_COND_NE, sr, 0, VAR_2);
tcg_gen_ori_i32(cpu_flags... | [
"static inline void FUNC_0(uint32_t VAR_0, int VAR_1)\n{",
"TCGv sr;",
"int VAR_2 = gen_new_label();",
"tcg_gen_movi_i32(cpu_delayed_pc, VAR_0);",
"sr = tcg_temp_new();",
"tcg_gen_andi_i32(sr, cpu_sr, SR_T);",
"tcg_gen_brcondi_i32(VAR_1 ? TCG_COND_EQ:TCG_COND_NE, sr, 0, VAR_2);",
"tcg_gen_ori_i32(cpu_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
24,729 | static void put_fid(V9fsPDU *pdu, V9fsFidState *fidp)
{
BUG_ON(!fidp->ref);
fidp->ref--;
/*
* Don't free the fid if it is in reclaim list
*/
if (!fidp->ref && fidp->clunked) {
if (fidp->fid == pdu->s->root_fid) {
/*
* if the clunked fid is root fid th... | false | qemu | a911a182a6bfd3b0257b13f862b0d4fbd9392715 | static void put_fid(V9fsPDU *pdu, V9fsFidState *fidp)
{
BUG_ON(!fidp->ref);
fidp->ref--;
if (!fidp->ref && fidp->clunked) {
if (fidp->fid == pdu->s->root_fid) {
if (pdu->s->migration_blocker) {
migrate_del_blocker(pdu->s->migration... | {
"code": [],
"line_no": []
} | static void FUNC_0(V9fsPDU *VAR_0, V9fsFidState *VAR_1)
{
BUG_ON(!VAR_1->ref);
VAR_1->ref--;
if (!VAR_1->ref && VAR_1->clunked) {
if (VAR_1->fid == VAR_0->s->root_fid) {
if (VAR_0->s->migration_blocker) {
migrate_del_blocker(VAR_0-... | [
"static void FUNC_0(V9fsPDU *VAR_0, V9fsFidState *VAR_1)\n{",
"BUG_ON(!VAR_1->ref);",
"VAR_1->ref--;",
"if (!VAR_1->ref && VAR_1->clunked) {",
"if (VAR_1->fid == VAR_0->s->root_fid) {",
"if (VAR_0->s->migration_blocker) {",
"migrate_del_blocker(VAR_0->s->migration_blocker);",
"error_free(VAR_0->s->mig... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
15
],
[
17
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
]
] |
24,731 | static inline void RENAME(rgb16to15)(const uint8_t *src,uint8_t *dst,unsigned src_size)
{
register const uint8_t* s=src;
register uint8_t* d=dst;
register const uint8_t *end;
const uint8_t *mm_end;
end = s + src_size;
#ifdef HAVE_MMX
__asm __volatile(PREFETCH" %0"::"m"(*s));
__asm __volatile("mov... | true | FFmpeg | 7f526efd17973ec6d2204f7a47b6923e2be31363 | static inline void RENAME(rgb16to15)(const uint8_t *src,uint8_t *dst,unsigned src_size)
{
register const uint8_t* s=src;
register uint8_t* d=dst;
register const uint8_t *end;
const uint8_t *mm_end;
end = s + src_size;
#ifdef HAVE_MMX
__asm __volatile(PREFETCH" %0"::"m"(*s));
__asm __volatile("mov... | {
"code": [
"static inline void RENAME(rgb16to15)(const uint8_t *src,uint8_t *dst,unsigned src_size)"
],
"line_no": [
1
]
} | static inline void FUNC_0(rgb16to15)(const uint8_t *src,uint8_t *dst,unsigned src_size)
{
register const uint8_t* VAR_0=src;
register uint8_t* VAR_1=dst;
register const uint8_t *VAR_2;
const uint8_t *VAR_3;
VAR_2 = VAR_0 + src_size;
#ifdef HAVE_MMX
__asm __volatile(PREFETCH" %0"::"m"(*VAR_0));
__... | [
"static inline void FUNC_0(rgb16to15)(const uint8_t *src,uint8_t *dst,unsigned src_size)\n{",
"register const uint8_t* VAR_0=src;",
"register uint8_t* VAR_1=dst;",
"register const uint8_t *VAR_2;",
"const uint8_t *VAR_3;",
"VAR_2 = VAR_0 + src_size;",
"#ifdef HAVE_MMX\n__asm __volatile(PREFETCH\"\t%0\":... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57,... |
24,733 | static void moxiesim_init(MachineState *machine)
{
MoxieCPU *cpu = NULL;
ram_addr_t ram_size = machine->ram_size;
const char *cpu_model = machine->cpu_model;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_fi... | true | qemu | 4482e05cbbb7e50e476f6a9500cf0b38913bd939 | static void moxiesim_init(MachineState *machine)
{
MoxieCPU *cpu = NULL;
ram_addr_t ram_size = machine->ram_size;
const char *cpu_model = machine->cpu_model;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_fi... | {
"code": [
" if (!cpu) {",
" fprintf(stderr, \"Unable to find CPU definition\\n\");",
" exit(1);",
" if (!cpu) {",
" fprintf(stderr, \"Unable to find CPU definition\\n\");",
" exit(1);",
" fprintf(stderr, \"Unable to find CPU definition\\n\");",
... | static void FUNC_0(MachineState *VAR_0)
{
MoxieCPU *cpu = NULL;
ram_addr_t ram_size = VAR_0->ram_size;
const char *VAR_1 = VAR_0->VAR_1;
const char *VAR_2 = VAR_0->VAR_2;
const char *VAR_3 = VAR_0->VAR_3;
const char *VAR_4 = VAR_0->VAR_4;
CPUMoxieState *env;
MemoryRegion *addres... | [
"static void FUNC_0(MachineState *VAR_0)\n{",
"MoxieCPU *cpu = NULL;",
"ram_addr_t ram_size = VAR_0->ram_size;",
"const char *VAR_1 = VAR_0->VAR_1;",
"const char *VAR_2 = VAR_0->VAR_2;",
"const char *VAR_3 = VAR_0->VAR_3;",
"const char *VAR_4 = VAR_0->VAR_4;",
"CPUMoxieState *env;",
"MemoryRegion *a... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
24,734 | static void build_guest_fsinfo_for_virtual_device(char const *syspath,
GuestFilesystemInfo *fs,
Error **errp)
{
DIR *dir;
char *dirpath;
struct dirent entry, *result;
dirpath = g_strdup_printf("%... | true | qemu | e668d1b8545f1c79cf869bd78813cb1e52216f45 | static void build_guest_fsinfo_for_virtual_device(char const *syspath,
GuestFilesystemInfo *fs,
Error **errp)
{
DIR *dir;
char *dirpath;
struct dirent entry, *result;
dirpath = g_strdup_printf("%... | {
"code": [
" struct dirent entry, *result;",
" g_free(dirpath);",
" if (readdir_r(dir, &entry, &result) != 0) {",
" error_setg_errno(errp, errno, \"readdir_r(\\\"%s\\\")\", dirpath);",
" break;",
" if (!result) {",
" if (entry.d_type == DT_... | static void FUNC_0(char const *VAR_0,
GuestFilesystemInfo *VAR_1,
Error **VAR_2)
{
DIR *dir;
char *VAR_3;
struct dirent VAR_4, *VAR_5;
VAR_3 = g_strdup_printf("%s/slaves", VAR_0);
dir = open... | [
"static void FUNC_0(char const *VAR_0,\nGuestFilesystemInfo *VAR_1,\nError **VAR_2)\n{",
"DIR *dir;",
"char *VAR_3;",
"struct dirent VAR_4, *VAR_5;",
"VAR_3 = g_strdup_printf(\"%s/slaves\", VAR_0);",
"dir = opendir(VAR_3);",
"if (!dir) {",
"error_setg_errno(VAR_2, errno, \"opendir(\\\"%s\\\")\", VAR_3... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
1,
1,
0,
1,
0,
0,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
24,735 | void write_video_frame(AVFormatContext *oc, AVStream *st)
{
int x, y, i, out_size;
AVCodecContext *c;
c = &st->codec;
/* prepare a dummy image */
/* Y */
i = frame_count++;
for(y=0;y<c->height;y++) {
for(x=0;x<c->width;x++) {
picture->data[0][y * picture... | true | FFmpeg | e70fcf075b8f92c4e410b80c703fbdc1d531d42d | void write_video_frame(AVFormatContext *oc, AVStream *st)
{
int x, y, i, out_size;
AVCodecContext *c;
c = &st->codec;
i = frame_count++;
for(y=0;y<c->height;y++) {
for(x=0;x<c->width;x++) {
picture->data[0][y * picture->linesize[0] + x] = x + y + i * 3... | {
"code": [
" exit(1);",
" exit(1);",
"void write_video_frame(AVFormatContext *oc, AVStream *st)",
" int x, y, i, out_size;",
" AVCodecContext *c;",
" c = &st->codec;",
" i = frame_count++;",
" for(y=0;y<c->height;y++) {",
" for(x=0;x<c->width;x+... | void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1)
{
int VAR_2, VAR_3, VAR_4, VAR_5;
AVCodecContext *c;
c = &VAR_1->codec;
VAR_4 = frame_count++;
for(VAR_3=0;VAR_3<c->height;VAR_3++) {
for(VAR_2=0;VAR_2<c->width;VAR_2++) {
picture->data[0][VAR_3 * pi... | [
"void FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4, VAR_5;",
"AVCodecContext *c;",
"c = &VAR_1->codec;",
"VAR_4 = frame_count++;",
"for(VAR_3=0;VAR_3<c->height;VAR_3++) {",
"for(VAR_2=0;VAR_2<c->width;VAR_2++) {",
"picture->data[0][VAR_3 * picture->linesize[0] + VAR_2]... | [
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
1,
1,
1,
0,
0,
1,
1,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
51
],
[
57
],
[
59
],
[
61... |
24,736 | static void gen_sse(CPUX86State *env, DisasContext *s, int b,
target_ulong pc_start, int rex_r)
{
int b1, op1_offset, op2_offset, is_xmm, val;
int modrm, mod, rm, reg;
SSEFunc_0_epp sse_fn_epp;
SSEFunc_0_eppi sse_fn_eppi;
SSEFunc_0_ppi sse_fn_ppi;
SSEFunc_0_eppt sse_f... | true | qemu | 9ecac5dad16722ce2a8c3e88d8eeba5794990031 | static void gen_sse(CPUX86State *env, DisasContext *s, int b,
target_ulong pc_start, int rex_r)
{
int b1, op1_offset, op2_offset, is_xmm, val;
int modrm, mod, rm, reg;
SSEFunc_0_epp sse_fn_epp;
SSEFunc_0_eppi sse_fn_eppi;
SSEFunc_0_ppi sse_fn_ppi;
SSEFunc_0_eppt sse_f... | {
"code": [
" tcg_gen_mulu2_i64(cpu_regs[s->vex_v], cpu_regs[reg],"
],
"line_no": [
1749
]
} | static void FUNC_0(CPUX86State *VAR_0, DisasContext *VAR_1, int VAR_2,
target_ulong VAR_3, int VAR_4)
{
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
int VAR_10, VAR_11, VAR_12, VAR_13;
SSEFunc_0_epp sse_fn_epp;
SSEFunc_0_eppi sse_fn_eppi;
SSEFunc_0_ppi sse_fn_ppi;
SSEFunc_0... | [
"static void FUNC_0(CPUX86State *VAR_0, DisasContext *VAR_1, int VAR_2,\ntarget_ulong VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"int VAR_10, VAR_11, VAR_12, VAR_13;",
"SSEFunc_0_epp sse_fn_epp;",
"SSEFunc_0_eppi sse_fn_eppi;",
"SSEFunc_0_ppi sse_fn_ppi;",
"SSEFunc_0_eppt sse_fn_ep... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33,
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
24,737 | void do_subfzeo_64 (void)
{
T1 = T0;
T0 = ~T0 + xer_ca;
if (likely(!(((uint64_t)~T1 ^ UINT64_MAX) &
((uint64_t)(~T1) ^ (uint64_t)T0) & (1ULL << 63)))) {
xer_ov = 0;
} else {
xer_ov = 1;
xer_so = 1;
}
if (likely((uint64_t)T0 >= (uint64_t)~T1)) {... | true | qemu | c3e10c7b4377c1cbc0a4fbc12312c2cf41c0cda7 | void do_subfzeo_64 (void)
{
T1 = T0;
T0 = ~T0 + xer_ca;
if (likely(!(((uint64_t)~T1 ^ UINT64_MAX) &
((uint64_t)(~T1) ^ (uint64_t)T0) & (1ULL << 63)))) {
xer_ov = 0;
} else {
xer_ov = 1;
xer_so = 1;
}
if (likely((uint64_t)T0 >= (uint64_t)~T1)) {... | {
"code": [
" xer_ov = 0;",
" } else {",
" xer_ov = 1;",
" xer_so = 1;",
" xer_ov = 0;",
" } else {",
" xer_ov = 1;",
" xer_so = 1;",
" xer_ov = 0;",
" } else {",
" xer_ov = 1;",
" xer_so = 1;",
... | void FUNC_0 (void)
{
T1 = T0;
T0 = ~T0 + xer_ca;
if (likely(!(((uint64_t)~T1 ^ UINT64_MAX) &
((uint64_t)(~T1) ^ (uint64_t)T0) & (1ULL << 63)))) {
xer_ov = 0;
} else {
xer_ov = 1;
xer_so = 1;
}
if (likely((uint64_t)T0 >= (uint64_t)~T1)) {
... | [
"void FUNC_0 (void)\n{",
"T1 = T0;",
"T0 = ~T0 + xer_ca;",
"if (likely(!(((uint64_t)~T1 ^ UINT64_MAX) &\n((uint64_t)(~T1) ^ (uint64_t)T0) & (1ULL << 63)))) {",
"xer_ov = 0;",
"} else {",
"xer_ov = 1;",
"xer_so = 1;",
"}",
"if (likely((uint64_t)T0 >= (uint64_t)~T1)) {",
"xer_ca = 0;",
"} else {... | [
0,
0,
0,
1,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
24,738 | av_cold int MPV_encode_init(AVCodecContext *avctx)
{
MpegEncContext *s = avctx->priv_data;
int i;
int chroma_h_shift, chroma_v_shift;
MPV_encode_defaults(s);
switch (avctx->codec_id) {
case CODEC_ID_MPEG2VIDEO:
if(avctx->pix_fmt != PIX_FMT_YUV420P && avctx->pix_fmt != PIX_FMT... | true | FFmpeg | db61329607c858f95cd7e4c165897dcd39f82977 | av_cold int MPV_encode_init(AVCodecContext *avctx)
{
MpegEncContext *s = avctx->priv_data;
int i;
int chroma_h_shift, chroma_v_shift;
MPV_encode_defaults(s);
switch (avctx->codec_id) {
case CODEC_ID_MPEG2VIDEO:
if(avctx->pix_fmt != PIX_FMT_YUV420P && avctx->pix_fmt != PIX_FMT... | {
"code": [
" if(avctx->pix_fmt != PIX_FMT_YUVJ420P && avctx->pix_fmt != PIX_FMT_YUVJ422P && avctx->pix_fmt != PIX_FMT_YUVJ444P && avctx->pix_fmt != PIX_FMT_RGB32 &&"
],
"line_no": [
33
]
} | av_cold int FUNC_0(AVCodecContext *avctx)
{
MpegEncContext *s = avctx->priv_data;
int VAR_0;
int VAR_1, VAR_2;
MPV_encode_defaults(s);
switch (avctx->codec_id) {
case CODEC_ID_MPEG2VIDEO:
if(avctx->pix_fmt != PIX_FMT_YUV420P && avctx->pix_fmt != PIX_FMT_YUV422P){
... | [
"av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"MpegEncContext *s = avctx->priv_data;",
"int VAR_0;",
"int VAR_1, VAR_2;",
"MPV_encode_defaults(s);",
"switch (avctx->codec_id) {",
"case CODEC_ID_MPEG2VIDEO:\nif(avctx->pix_fmt != PIX_FMT_YUV420P && avctx->pix_fmt != PIX_FMT_YUV422P){",
"av_log(avctx, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47,
49
],
[... |
24,739 | static void tgen_compare_imm_branch(TCGContext *s, S390Opcode opc, int cc,
TCGReg r1, int i2, int labelno)
{
TCGLabel* l = &s->labels[labelno];
tcg_target_long off;
if (l->has_value) {
off = l->u.value_ptr - s->code_ptr;
} else {
/* We need t... | false | qemu | bec1631100323fac0900aea71043d5c4e22fc2fa | static void tgen_compare_imm_branch(TCGContext *s, S390Opcode opc, int cc,
TCGReg r1, int i2, int labelno)
{
TCGLabel* l = &s->labels[labelno];
tcg_target_long off;
if (l->has_value) {
off = l->u.value_ptr - s->code_ptr;
} else {
of... | {
"code": [],
"line_no": []
} | static void FUNC_0(TCGContext *VAR_0, S390Opcode VAR_1, int VAR_2,
TCGReg VAR_3, int VAR_4, int VAR_5)
{
TCGLabel* l = &VAR_0->labels[VAR_5];
tcg_target_long off;
if (l->has_value) {
off = l->u.value_ptr - VAR_0->code_ptr;
} else {
... | [
"static void FUNC_0(TCGContext *VAR_0, S390Opcode VAR_1, int VAR_2,\nTCGReg VAR_3, int VAR_4, int VAR_5)\n{",
"TCGLabel* l = &VAR_0->labels[VAR_5];",
"tcg_target_long off;",
"if (l->has_value) {",
"off = l->u.value_ptr - VAR_0->code_ptr;",
"} else {",
"off = VAR_0->code_ptr[1];",
"tcg_out_reloc(VAR_0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
24,740 | int find_utlb_entry(CPUState * env, target_ulong address, int use_asid)
{
uint8_t urb, urc;
/* Increment URC */
urb = ((env->mmucr) >> 18) & 0x3f;
urc = ((env->mmucr) >> 10) & 0x3f;
urc++;
if (urc == urb || urc == UTLB_SIZE - 1)
urc = 0;
env->mmucr = (env->mmucr & 0xffff03ff) | (... | false | qemu | 29e179bc3f5e804ab58b975e65c91cb9cd287846 | int find_utlb_entry(CPUState * env, target_ulong address, int use_asid)
{
uint8_t urb, urc;
urb = ((env->mmucr) >> 18) & 0x3f;
urc = ((env->mmucr) >> 10) & 0x3f;
urc++;
if (urc == urb || urc == UTLB_SIZE - 1)
urc = 0;
env->mmucr = (env->mmucr & 0xffff03ff) | (urc << 10);
... | {
"code": [],
"line_no": []
} | int FUNC_0(CPUState * VAR_0, target_ulong VAR_1, int VAR_2)
{
uint8_t urb, urc;
urb = ((VAR_0->mmucr) >> 18) & 0x3f;
urc = ((VAR_0->mmucr) >> 10) & 0x3f;
urc++;
if (urc == urb || urc == UTLB_SIZE - 1)
urc = 0;
VAR_0->mmucr = (VAR_0->mmucr & 0xffff03ff) | (urc << 10);
... | [
"int FUNC_0(CPUState * VAR_0, target_ulong VAR_1, int VAR_2)\n{",
"uint8_t urb, urc;",
"urb = ((VAR_0->mmucr) >> 18) & 0x3f;",
"urc = ((VAR_0->mmucr) >> 10) & 0x3f;",
"urc++;",
"if (urc == urb || urc == UTLB_SIZE - 1)\nurc = 0;",
"VAR_0->mmucr = (VAR_0->mmucr & 0xffff03ff) | (urc << 10);",
"return fin... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13
],
[
15
],
[
17,
19
],
[
21
],
[
27
],
[
29
]
] |
24,741 | static void combine_addr(char *buf, size_t len, const char* address,
uint16_t port)
{
/* If the address-part contains a colon, it's an IPv6 IP so needs [] */
if (strstr(address, ":")) {
snprintf(buf, len, "[%s]:%u", address, port);
} else {
snprintf(buf, len, ... | false | qemu | 537b41f5013e1951fa15e8f18855b18d76124ce4 | static void combine_addr(char *buf, size_t len, const char* address,
uint16_t port)
{
if (strstr(address, ":")) {
snprintf(buf, len, "[%s]:%u", address, port);
} else {
snprintf(buf, len, "%s:%u", address, port);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(char *VAR_0, size_t VAR_1, const char* VAR_2,
uint16_t VAR_3)
{
if (strstr(VAR_2, ":")) {
snprintf(VAR_0, VAR_1, "[%s]:%u", VAR_2, VAR_3);
} else {
snprintf(VAR_0, VAR_1, "%s:%u", VAR_2, VAR_3);
}
}
| [
"static void FUNC_0(char *VAR_0, size_t VAR_1, const char* VAR_2,\nuint16_t VAR_3)\n{",
"if (strstr(VAR_2, \":\")) {",
"snprintf(VAR_0, VAR_1, \"[%s]:%u\", VAR_2, VAR_3);",
"} else {",
"snprintf(VAR_0, VAR_1, \"%s:%u\", VAR_2, VAR_3);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
24,745 | static int inline get_mb_score(MpegEncContext * s, int mx, int my, int src_index,
int ref_index)
{
// const int check_luma= s->dsp.me_sub_cmp != s->dsp.mb_cmp;
MotionEstContext * const c= &s->me;
const int size= 0;
const int h= 16;
const int penalty_factor= c->mb... | false | FFmpeg | 155ec6edf82692bcf3a5f87d2bc697404f4e5aaf | static int inline get_mb_score(MpegEncContext * s, int mx, int my, int src_index,
int ref_index)
{
MotionEstContext * const c= &s->me;
const int size= 0;
const int h= 16;
const int penalty_factor= c->mb_penalty_factor;
const int flags= c->mb_flags;
const ... | {
"code": [],
"line_no": []
} | static int inline FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2, int VAR_3,
int VAR_4)
{
MotionEstContext * const c= &VAR_0->me;
const int VAR_5= 0;
const int VAR_6= 16;
const int VAR_7= c->mb_penalty_factor;
const int VAR_8= c->mb_flags;
const int ... | [
"static int inline FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2, int VAR_3,\nint VAR_4)\n{",
"MotionEstContext * const c= &VAR_0->me;",
"const int VAR_5= 0;",
"const int VAR_6= 16;",
"const int VAR_7= c->mb_penalty_factor;",
"const int VAR_8= c->mb_flags;",
"const int VAR_9= VAR_8 & FLAG_QPEL;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
37
],
[
39
],
[
43
],
[
45
],
[
49
],
[
53,
55
],
[
59
],
[
61
]
] |
24,746 | av_cold void ff_dcadsp_init(DCADSPContext *s)
{
s->lfe_fir[0] = dca_lfe_fir0_c;
s->lfe_fir[1] = dca_lfe_fir1_c;
s->qmf_32_subbands = dca_qmf_32_subbands;
s->int8x8_fmul_int32 = int8x8_fmul_int32_c;
if (ARCH_ARM) ff_dcadsp_init_arm(s);
if (ARCH_X86) ff_dcadsp_init_x86(s);
}
| false | FFmpeg | 4cb6964244fd6c099383d8b7e99731e72cc844b9 | av_cold void ff_dcadsp_init(DCADSPContext *s)
{
s->lfe_fir[0] = dca_lfe_fir0_c;
s->lfe_fir[1] = dca_lfe_fir1_c;
s->qmf_32_subbands = dca_qmf_32_subbands;
s->int8x8_fmul_int32 = int8x8_fmul_int32_c;
if (ARCH_ARM) ff_dcadsp_init_arm(s);
if (ARCH_X86) ff_dcadsp_init_x86(s);
}
| {
"code": [],
"line_no": []
} | av_cold void FUNC_0(DCADSPContext *s)
{
s->lfe_fir[0] = dca_lfe_fir0_c;
s->lfe_fir[1] = dca_lfe_fir1_c;
s->qmf_32_subbands = dca_qmf_32_subbands;
s->int8x8_fmul_int32 = int8x8_fmul_int32_c;
if (ARCH_ARM) ff_dcadsp_init_arm(s);
if (ARCH_X86) ff_dcadsp_init_x86(s);
}
| [
"av_cold void FUNC_0(DCADSPContext *s)\n{",
"s->lfe_fir[0] = dca_lfe_fir0_c;",
"s->lfe_fir[1] = dca_lfe_fir1_c;",
"s->qmf_32_subbands = dca_qmf_32_subbands;",
"s->int8x8_fmul_int32 = int8x8_fmul_int32_c;",
"if (ARCH_ARM) ff_dcadsp_init_arm(s);",
"if (ARCH_X86) ff_dcadsp_init_x86(s);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
24,747 | vdi_co_pwritev(BlockDriverState *bs, uint64_t offset, uint64_t bytes,
QEMUIOVector *qiov, int flags)
{
BDRVVdiState *s = bs->opaque;
QEMUIOVector local_qiov;
uint32_t bmap_entry;
uint32_t block_index;
uint32_t offset_in_block;
uint32_t n_bytes;
uint32_t bmap_first = V... | false | qemu | 1e886639791762e89b51aa0507f523c6a1448831 | vdi_co_pwritev(BlockDriverState *bs, uint64_t offset, uint64_t bytes,
QEMUIOVector *qiov, int flags)
{
BDRVVdiState *s = bs->opaque;
QEMUIOVector local_qiov;
uint32_t bmap_entry;
uint32_t block_index;
uint32_t offset_in_block;
uint32_t n_bytes;
uint32_t bmap_first = V... | {
"code": [],
"line_no": []
} | FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t VAR_2,
QEMUIOVector *VAR_3, int VAR_4)
{
BDRVVdiState *s = VAR_0->opaque;
QEMUIOVector local_qiov;
uint32_t bmap_entry;
uint32_t block_index;
uint32_t offset_in_block;
uint32_t n_bytes;
uint32_t bmap_first = VDI... | [
"FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t VAR_2,\nQEMUIOVector *VAR_3, int VAR_4)\n{",
"BDRVVdiState *s = VAR_0->opaque;",
"QEMUIOVector local_qiov;",
"uint32_t bmap_entry;",
"uint32_t block_index;",
"uint32_t offset_in_block;",
"uint32_t n_bytes;",
"uint32_t bmap_first = VDI_UNALLOCAT... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49,
51
... |
24,749 | bool bdrv_can_write_zeroes_with_unmap(BlockDriverState *bs)
{
BlockDriverInfo bdi;
if (bs->backing_hd || !(bs->open_flags & BDRV_O_UNMAP)) {
return false;
}
if (bdrv_get_info(bs, &bdi) == 0) {
return bdi.can_write_zeroes_with_unmap;
}
return false;
}
| false | qemu | 61007b316cd71ee7333ff7a0a749a8949527575f | bool bdrv_can_write_zeroes_with_unmap(BlockDriverState *bs)
{
BlockDriverInfo bdi;
if (bs->backing_hd || !(bs->open_flags & BDRV_O_UNMAP)) {
return false;
}
if (bdrv_get_info(bs, &bdi) == 0) {
return bdi.can_write_zeroes_with_unmap;
}
return false;
}
| {
"code": [],
"line_no": []
} | bool FUNC_0(BlockDriverState *bs)
{
BlockDriverInfo bdi;
if (bs->backing_hd || !(bs->open_flags & BDRV_O_UNMAP)) {
return false;
}
if (bdrv_get_info(bs, &bdi) == 0) {
return bdi.can_write_zeroes_with_unmap;
}
return false;
}
| [
"bool FUNC_0(BlockDriverState *bs)\n{",
"BlockDriverInfo bdi;",
"if (bs->backing_hd || !(bs->open_flags & BDRV_O_UNMAP)) {",
"return false;",
"}",
"if (bdrv_get_info(bs, &bdi) == 0) {",
"return bdi.can_write_zeroes_with_unmap;",
"}",
"return false;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
]
] |
24,750 | static uint32_t read_u32(uint8_t *data, size_t offset)
{
return ((data[offset] << 24) | (data[offset + 1] << 16) |
(data[offset + 2] << 8) | data[offset + 3]);
}
| false | qemu | 5fb6c7a8b26eab1a22207d24b4784bd2b39ab54b | static uint32_t read_u32(uint8_t *data, size_t offset)
{
return ((data[offset] << 24) | (data[offset + 1] << 16) |
(data[offset + 2] << 8) | data[offset + 3]);
}
| {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(uint8_t *data, size_t offset)
{
return ((data[offset] << 24) | (data[offset + 1] << 16) |
(data[offset + 2] << 8) | data[offset + 3]);
}
| [
"static uint32_t FUNC_0(uint8_t *data, size_t offset)\n{",
"return ((data[offset] << 24) | (data[offset + 1] << 16) |\n(data[offset + 2] << 8) | data[offset + 3]);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
]
] |
24,751 | static void check_breakpoint(CPUState *env, DisasContext *dc)
{
CPUBreakpoint *bp;
if (unlikely(!TAILQ_EMPTY(&env->breakpoints))) {
TAILQ_FOREACH(bp, &env->breakpoints, entry) {
if (bp->pc == dc->pc) {
t_gen_raise_exception(dc, EXCP_DEBUG);
dc->is_jmp... | false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | static void check_breakpoint(CPUState *env, DisasContext *dc)
{
CPUBreakpoint *bp;
if (unlikely(!TAILQ_EMPTY(&env->breakpoints))) {
TAILQ_FOREACH(bp, &env->breakpoints, entry) {
if (bp->pc == dc->pc) {
t_gen_raise_exception(dc, EXCP_DEBUG);
dc->is_jmp... | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUState *VAR_0, DisasContext *VAR_1)
{
CPUBreakpoint *bp;
if (unlikely(!TAILQ_EMPTY(&VAR_0->breakpoints))) {
TAILQ_FOREACH(bp, &VAR_0->breakpoints, entry) {
if (bp->pc == VAR_1->pc) {
t_gen_raise_exception(VAR_1, EXCP_DEBUG);
VAR_1... | [
"static void FUNC_0(CPUState *VAR_0, DisasContext *VAR_1)\n{",
"CPUBreakpoint *bp;",
"if (unlikely(!TAILQ_EMPTY(&VAR_0->breakpoints))) {",
"TAILQ_FOREACH(bp, &VAR_0->breakpoints, entry) {",
"if (bp->pc == VAR_1->pc) {",
"t_gen_raise_exception(VAR_1, EXCP_DEBUG);",
"VAR_1->is_jmp = DISAS_UPDATE;",
"}",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
24,752 | static void dump_json_image_info(ImageInfo *info)
{
QString *str;
QObject *obj;
Visitor *v = qmp_output_visitor_new(&obj);
visit_type_ImageInfo(v, NULL, &info, &error_abort);
visit_complete(v, &obj);
str = qobject_to_json_pretty(obj);
assert(str != NULL);
printf("%s\n", qstrin... | false | qemu | 7d5e199ade76c53ec316ab6779800581bb47c50a | static void dump_json_image_info(ImageInfo *info)
{
QString *str;
QObject *obj;
Visitor *v = qmp_output_visitor_new(&obj);
visit_type_ImageInfo(v, NULL, &info, &error_abort);
visit_complete(v, &obj);
str = qobject_to_json_pretty(obj);
assert(str != NULL);
printf("%s\n", qstrin... | {
"code": [],
"line_no": []
} | static void FUNC_0(ImageInfo *VAR_0)
{
QString *str;
QObject *obj;
Visitor *v = qmp_output_visitor_new(&obj);
visit_type_ImageInfo(v, NULL, &VAR_0, &error_abort);
visit_complete(v, &obj);
str = qobject_to_json_pretty(obj);
assert(str != NULL);
printf("%s\n", qstring_get_str(st... | [
"static void FUNC_0(ImageInfo *VAR_0)\n{",
"QString *str;",
"QObject *obj;",
"Visitor *v = qmp_output_visitor_new(&obj);",
"visit_type_ImageInfo(v, NULL, &VAR_0, &error_abort);",
"visit_complete(v, &obj);",
"str = qobject_to_json_pretty(obj);",
"assert(str != NULL);",
"printf(\"%s\\n\", qstring_get_... | [
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
]
] |
24,753 | static CharDriverState *qemu_chr_open_msmouse(const char *id,
ChardevBackend *backend,
ChardevReturn *ret,
Error **errp)
{
CharDriverState *chr;
chr = qemu_chr_alloc(... | false | qemu | d0d7708ba29cbcc343364a46bff981e0ff88366f | static CharDriverState *qemu_chr_open_msmouse(const char *id,
ChardevBackend *backend,
ChardevReturn *ret,
Error **errp)
{
CharDriverState *chr;
chr = qemu_chr_alloc(... | {
"code": [],
"line_no": []
} | static CharDriverState *FUNC_0(const char *id,
ChardevBackend *backend,
ChardevReturn *ret,
Error **errp)
{
CharDriverState *chr;
chr = qemu_chr_alloc();
chr->ch... | [
"static CharDriverState *FUNC_0(const char *id,\nChardevBackend *backend,\nChardevReturn *ret,\nError **errp)\n{",
"CharDriverState *chr;",
"chr = qemu_chr_alloc();",
"chr->chr_write = msmouse_chr_write;",
"chr->chr_close = msmouse_chr_close;",
"chr->explicit_be_open = true;",
"qemu_add_mouse_event_hand... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
]
] |
24,755 | static int iscsi_refresh_limits(BlockDriverState *bs)
{
IscsiLun *iscsilun = bs->opaque;
/* We don't actually refresh here, but just return data queried in
* iscsi_open(): iscsi targets don't change their limits. */
if (iscsilun->lbp.lbpu || iscsilun->lbp.lbpws) {
if (iscsilun->bl.max_u... | false | qemu | 5d259fc7da83249a4f78fe32de2bc2874a997a9f | static int iscsi_refresh_limits(BlockDriverState *bs)
{
IscsiLun *iscsilun = bs->opaque;
if (iscsilun->lbp.lbpu || iscsilun->lbp.lbpws) {
if (iscsilun->bl.max_unmap < 0xffffffff) {
bs->bl.max_discard = sector_lun2qemu(iscsilun->bl.max_unmap,
... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0)
{
IscsiLun *iscsilun = VAR_0->opaque;
if (iscsilun->lbp.lbpu || iscsilun->lbp.lbpws) {
if (iscsilun->bl.max_unmap < 0xffffffff) {
VAR_0->bl.max_discard = sector_lun2qemu(iscsilun->bl.max_unmap,
... | [
"static int FUNC_0(BlockDriverState *VAR_0)\n{",
"IscsiLun *iscsilun = VAR_0->opaque;",
"if (iscsilun->lbp.lbpu || iscsilun->lbp.lbpws) {",
"if (iscsilun->bl.max_unmap < 0xffffffff) {",
"VAR_0->bl.max_discard = sector_lun2qemu(iscsilun->bl.max_unmap,\niscsilun);",
"}",
"VAR_0->bl.discard_alignment = sec... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
13
],
[
15
],
[
17,
19
],
[
21
],
[
23,
25
],
[
29
],
[
31,
33
],
[
35
],
[
37,
39
],
[
43,
45
],
[
47
],
[
49
],
[
51
]
] |
24,760 | yuv2mono_1_c_template(SwsContext *c, const uint16_t *buf0,
const uint16_t *ubuf0, const uint16_t *ubuf1,
const uint16_t *vbuf0, const uint16_t *vbuf1,
const uint16_t *abuf0, uint8_t *dest, int dstW,
int uvalpha, enum PixelFormat... | false | FFmpeg | 13a099799e89a76eb921ca452e1b04a7a28a9855 | yuv2mono_1_c_template(SwsContext *c, const uint16_t *buf0,
const uint16_t *ubuf0, const uint16_t *ubuf1,
const uint16_t *vbuf0, const uint16_t *vbuf1,
const uint16_t *abuf0, uint8_t *dest, int dstW,
int uvalpha, enum PixelFormat... | {
"code": [],
"line_no": []
} | FUNC_0(SwsContext *VAR_0, const uint16_t *VAR_1,
const uint16_t *VAR_2, const uint16_t *VAR_3,
const uint16_t *VAR_4, const uint16_t *VAR_5,
const uint16_t *VAR_6, uint8_t *VAR_7, int VAR_8,
int VAR_9, enum PixelFormat VAR_10,
... | [
"FUNC_0(SwsContext *VAR_0, const uint16_t *VAR_1,\nconst uint16_t *VAR_2, const uint16_t *VAR_3,\nconst uint16_t *VAR_4, const uint16_t *VAR_5,\nconst uint16_t *VAR_6, uint8_t *VAR_7, int VAR_8,\nint VAR_9, enum PixelFormat VAR_10,\nint VAR_11, int VAR_12, enum PixelFormat VAR_13)\n{",
"const uint8_t * const VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
]
] |
24,762 | static int decode_cabac_mb_dqp( H264Context *h) {
MpegEncContext * const s = &h->s;
int mbn_xy;
int ctx = 0;
int val = 0;
if( s->mb_x > 0 )
mbn_xy = s->mb_x + s->mb_y*s->mb_stride - 1;
else
mbn_xy = s->mb_width - 1 + (s->mb_y-1)*s->mb_stride;
if( h->last_qsca... | false | FFmpeg | 851ded8918c977d8160c6617b69604f758cabf50 | static int decode_cabac_mb_dqp( H264Context *h) {
MpegEncContext * const s = &h->s;
int mbn_xy;
int ctx = 0;
int val = 0;
if( s->mb_x > 0 )
mbn_xy = s->mb_x + s->mb_y*s->mb_stride - 1;
else
mbn_xy = s->mb_width - 1 + (s->mb_y-1)*s->mb_stride;
if( h->last_qsca... | {
"code": [],
"line_no": []
} | static int FUNC_0( H264Context *VAR_0) {
MpegEncContext * const s = &VAR_0->s;
int VAR_1;
int VAR_2 = 0;
int VAR_3 = 0;
if( s->mb_x > 0 )
VAR_1 = s->mb_x + s->mb_y*s->mb_stride - 1;
else
VAR_1 = s->mb_width - 1 + (s->mb_y-1)*s->mb_stride;
if( VAR_0->last_qsca... | [
"static int FUNC_0( H264Context *VAR_0) {",
"MpegEncContext * const s = &VAR_0->s;",
"int VAR_1;",
"int VAR_2 = 0;",
"int VAR_3 = 0;",
"if( s->mb_x > 0 )\nVAR_1 = s->mb_x + s->mb_y*s->mb_stride - 1;",
"else\nVAR_1 = s->mb_width - 1 + (s->mb_y-1)*s->mb_stride;",
"if( VAR_0->last_qscale_diff != 0 )\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17,
19
],
[
23,
25
],
[
29
],
[
31,
33
],
[
35,
37
],
[
39
],
[
41,
43
],
[
45
],
[
49,
51
],
[
53,
55
],
[... |
24,765 | static void add_user_command(char *optarg)
{
cmdline = g_realloc(cmdline, ++ncmdline * sizeof(char *));
cmdline[ncmdline-1] = optarg;
}
| true | qemu | 5839e53bbc0fec56021d758aab7610df421ed8c8 | static void add_user_command(char *optarg)
{
cmdline = g_realloc(cmdline, ++ncmdline * sizeof(char *));
cmdline[ncmdline-1] = optarg;
}
| {
"code": [
" cmdline = g_realloc(cmdline, ++ncmdline * sizeof(char *));"
],
"line_no": [
5
]
} | static void FUNC_0(char *VAR_0)
{
cmdline = g_realloc(cmdline, ++ncmdline * sizeof(char *));
cmdline[ncmdline-1] = VAR_0;
}
| [
"static void FUNC_0(char *VAR_0)\n{",
"cmdline = g_realloc(cmdline, ++ncmdline * sizeof(char *));",
"cmdline[ncmdline-1] = VAR_0;",
"}"
] | [
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
24,766 | bool vhost_dev_query(struct vhost_dev *hdev, VirtIODevice *vdev)
{
BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev)));
VirtioBusState *vbus = VIRTIO_BUS(qbus);
VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(vbus);
return !k->query_guest_notifiers ||
k->query_guest_notifiers(qbus->paren... | true | qemu | 1e7398a140f7a6bd9f5a438e7ad0f1ef50990e25 | bool vhost_dev_query(struct vhost_dev *hdev, VirtIODevice *vdev)
{
BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev)));
VirtioBusState *vbus = VIRTIO_BUS(qbus);
VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(vbus);
return !k->query_guest_notifiers ||
k->query_guest_notifiers(qbus->paren... | {
"code": [
"bool vhost_dev_query(struct vhost_dev *hdev, VirtIODevice *vdev)",
" BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev)));",
" VirtioBusState *vbus = VIRTIO_BUS(qbus);",
" VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(vbus);",
" return !k->query_guest_notifiers ||",
" ... | bool FUNC_0(struct vhost_dev *hdev, VirtIODevice *vdev)
{
BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev)));
VirtioBusState *vbus = VIRTIO_BUS(qbus);
VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(vbus);
return !k->query_guest_notifiers ||
k->query_guest_notifiers(qbus->parent) ||
... | [
"bool FUNC_0(struct vhost_dev *hdev, VirtIODevice *vdev)\n{",
"BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev)));",
"VirtioBusState *vbus = VIRTIO_BUS(qbus);",
"VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(vbus);",
"return !k->query_guest_notifiers ||\nk->query_guest_notifiers(qbus->parent) ||\nhdev->forc... | [
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15,
17
],
[
19
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.