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 |
|---|---|---|---|---|---|---|---|---|---|---|
2,798 | tcp_dooptions(struct tcpcb *tp, u_char *cp, int cnt, struct tcpiphdr *ti)
{
uint16_t mss;
int opt, optlen;
DEBUG_CALL("tcp_dooptions");
DEBUG_ARGS((dfd," tp = %lx cnt=%i \n", (long )tp, cnt));
for (; cnt > 0; cnt -= optlen, cp += optlen) {
opt = cp[0];
if (opt == TCPOPT_EOL)
break;
if (opt ... | false | qemu | b2bedb214469af55179d907a60cd67fed6b0779e | tcp_dooptions(struct tcpcb *tp, u_char *cp, int cnt, struct tcpiphdr *ti)
{
uint16_t mss;
int opt, optlen;
DEBUG_CALL("tcp_dooptions");
DEBUG_ARGS((dfd," tp = %lx cnt=%i \n", (long )tp, cnt));
for (; cnt > 0; cnt -= optlen, cp += optlen) {
opt = cp[0];
if (opt == TCPOPT_EOL)
break;
if (opt ... | {
"code": [],
"line_no": []
} | FUNC_0(struct tcpcb *VAR_0, u_char *VAR_1, int VAR_2, struct tcpiphdr *VAR_3)
{
uint16_t mss;
int VAR_4, VAR_5;
DEBUG_CALL("FUNC_0");
DEBUG_ARGS((dfd," VAR_0 = %lx VAR_2=%i \n", (long )VAR_0, VAR_2));
for (; VAR_2 > 0; VAR_2 -= VAR_5, VAR_1 += VAR_5) {
VAR_4 = VAR_1[0];
if (VAR_4 == TCPOPT_EOL)
... | [
"FUNC_0(struct tcpcb *VAR_0, u_char *VAR_1, int VAR_2, struct tcpiphdr *VAR_3)\n{",
"uint16_t mss;",
"int VAR_4, VAR_5;",
"DEBUG_CALL(\"FUNC_0\");",
"DEBUG_ARGS((dfd,\" VAR_0 = %lx VAR_2=%i \\n\", (long )VAR_0, VAR_2));",
"for (; VAR_2 > 0; VAR_2 -= VAR_5, VAR_1 += VAR_5) {",
"VAR_4 = VAR_1[0];",
"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
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21,
23
],
[
25,
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
43,
45
],
[
49,
51,
53
],
[
55... |
2,799 | static void test_qemu_strtoull_hex(void)
{
const char *str = "0123";
char f = 'X';
const char *endptr = &f;
uint64_t res = 999;
int err;
err = qemu_strtoull(str, &endptr, 16, &res);
g_assert_cmpint(err, ==, 0);
g_assert_cmpint(res, ==, 0x123);
g_assert(endptr == str + s... | false | qemu | bc7c08a2c375acb7ae4d433054415588b176d34c | static void test_qemu_strtoull_hex(void)
{
const char *str = "0123";
char f = 'X';
const char *endptr = &f;
uint64_t res = 999;
int err;
err = qemu_strtoull(str, &endptr, 16, &res);
g_assert_cmpint(err, ==, 0);
g_assert_cmpint(res, ==, 0x123);
g_assert(endptr == str + s... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
const char *VAR_0 = "0123";
char VAR_1 = 'X';
const char *VAR_2 = &VAR_1;
uint64_t res = 999;
int VAR_3;
VAR_3 = qemu_strtoull(VAR_0, &VAR_2, 16, &res);
g_assert_cmpint(VAR_3, ==, 0);
g_assert_cmpint(res, ==, 0x123);
g_assert(VAR_2 == VAR_0 + ... | [
"static void FUNC_0(void)\n{",
"const char *VAR_0 = \"0123\";",
"char VAR_1 = 'X';",
"const char *VAR_2 = &VAR_1;",
"uint64_t res = 999;",
"int VAR_3;",
"VAR_3 = qemu_strtoull(VAR_0, &VAR_2, 16, &res);",
"g_assert_cmpint(VAR_3, ==, 0);",
"g_assert_cmpint(res, ==, 0x123);",
"g_assert(VAR_2 == VAR_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
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
]
] |
2,801 | static inline void RENAME(yuy2ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width)
{
#ifdef HAVE_MMXFIXME
#else
int i;
for(i=0; i<width; i++)
{
dstU[i]= (src1[4*i + 1] + src2[4*i + 1])>>1;
dstV[i]= (src1[4*i + 3] + src2[4*i + 3])>>1;
}
#endif
}
| false | FFmpeg | 6ff0ad6bfd0f00a3d54705811ee91a7ce3c22cda | static inline void RENAME(yuy2ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width)
{
#ifdef HAVE_MMXFIXME
#else
int i;
for(i=0; i<width; i++)
{
dstU[i]= (src1[4*i + 1] + src2[4*i + 1])>>1;
dstV[i]= (src1[4*i + 3] + src2[4*i + 3])>>1;
}
#endif
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(yuy2ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width)
{
#ifdef HAVE_MMXFIXME
#else
int VAR_0;
for(VAR_0=0; VAR_0<width; VAR_0++)
{
dstU[VAR_0]= (src1[4*VAR_0 + 1] + src2[4*VAR_0 + 1])>>1;
dstV[VAR_0]= (src1[4*VAR_0 + 3] + src2[4*VAR_0 + 3])>>1;
}
#e... | [
"static inline void FUNC_0(yuy2ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width)\n{",
"#ifdef HAVE_MMXFIXME\n#else\nint VAR_0;",
"for(VAR_0=0; VAR_0<width; VAR_0++)",
"{",
"dstU[VAR_0]= (src1[4*VAR_0 + 1] + src2[4*VAR_0 + 1])>>1;",
"dstV[VAR_0]= (src1[4*VAR_0 + 3] + src2[4*VAR_0... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
]
] |
2,802 | static inline void RENAME(rgb15to32)(const uint8_t *src, uint8_t *dst, long src_size)
{
const uint16_t *end;
#if COMPILE_TEMPLATE_MMX
const uint16_t *mm_end;
#endif
uint8_t *d = dst;
const uint16_t *s = (const uint16_t *)src;
end = s + src_size/2;
#if COMPILE_TEMPLATE_MMX
__asm__ volat... | false | FFmpeg | d1adad3cca407f493c3637e20ecd4f7124e69212 | static inline void RENAME(rgb15to32)(const uint8_t *src, uint8_t *dst, long src_size)
{
const uint16_t *end;
#if COMPILE_TEMPLATE_MMX
const uint16_t *mm_end;
#endif
uint8_t *d = dst;
const uint16_t *s = (const uint16_t *)src;
end = s + src_size/2;
#if COMPILE_TEMPLATE_MMX
__asm__ volat... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(rgb15to32)(const uint8_t *src, uint8_t *dst, long src_size)
{
const uint16_t *VAR_0;
#if COMPILE_TEMPLATE_MMX
const uint16_t *mm_end;
#endif
uint8_t *d = dst;
const uint16_t *VAR_1 = (const uint16_t *)src;
VAR_0 = VAR_1 + src_size/2;
#if COMPILE_TEMPLATE_MMX
_... | [
"static inline void FUNC_0(rgb15to32)(const uint8_t *src, uint8_t *dst, long src_size)\n{",
"const uint16_t *VAR_0;",
"#if COMPILE_TEMPLATE_MMX\nconst uint16_t *mm_end;",
"#endif\nuint8_t *d = dst;",
"const uint16_t *VAR_1 = (const uint16_t *)src;",
"VAR_0 = VAR_1 + src_size/2;",
"#if COMPILE_TEMPLATE_M... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
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,... |
2,803 | static int qcow_create(const char *filename, QEMUOptionParameter *options)
{
const char *backing_file = NULL;
const char *backing_fmt = NULL;
uint64_t sectors = 0;
int flags = 0;
size_t cluster_size = 65536;
int prealloc = 0;
/* Read out options */
while (options && options->n... | false | qemu | a9420734b617be43d075c55b980479411807512e | static int qcow_create(const char *filename, QEMUOptionParameter *options)
{
const char *backing_file = NULL;
const char *backing_fmt = NULL;
uint64_t sectors = 0;
int flags = 0;
size_t cluster_size = 65536;
int prealloc = 0;
while (options && options->name) {
if (!s... | {
"code": [],
"line_no": []
} | static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1)
{
const char *VAR_2 = NULL;
const char *VAR_3 = NULL;
uint64_t sectors = 0;
int VAR_4 = 0;
size_t cluster_size = 65536;
int VAR_5 = 0;
while (VAR_1 && VAR_1->name) {
if (!strcmp(VAR_1->name, BLOCK_OPT_S... | [
"static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1)\n{",
"const char *VAR_2 = NULL;",
"const char *VAR_3 = NULL;",
"uint64_t sectors = 0;",
"int VAR_4 = 0;",
"size_t cluster_size = 65536;",
"int VAR_5 = 0;",
"while (VAR_1 && VAR_1->name) {",
"if (!strcmp(VAR_1->name, BLOCK_OPT_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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
2,804 | void do_interrupt(CPUState *env)
{
int ex_vec = -1;
D(fprintf (stderr, "exception index=%d interrupt_req=%d\n",
env->exception_index,
env->interrupt_request));
switch (env->exception_index)
{
case EXCP_BREAK:
/* These exceptions are genereated by the core itself.
ERP should point ... | false | qemu | ef29a70d18c2d551cf4bb74b8aa9638caac3391b | void do_interrupt(CPUState *env)
{
int ex_vec = -1;
D(fprintf (stderr, "exception index=%d interrupt_req=%d\n",
env->exception_index,
env->interrupt_request));
switch (env->exception_index)
{
case EXCP_BREAK:
ex_vec = env->trap_vector;
env->pregs[PR_ERP] = env->pc + 2;
bre... | {
"code": [],
"line_no": []
} | void FUNC_0(CPUState *VAR_0)
{
int VAR_1 = -1;
D(fprintf (stderr, "exception index=%d interrupt_req=%d\n",
VAR_0->exception_index,
VAR_0->interrupt_request));
switch (VAR_0->exception_index)
{
case EXCP_BREAK:
VAR_1 = VAR_0->trap_vector;
VAR_0->pregs[PR_ERP] = VAR_0->pc + 2;
... | [
"void FUNC_0(CPUState *VAR_0)\n{",
"int VAR_1 = -1;",
"D(fprintf (stderr, \"exception index=%d interrupt_req=%d\\n\",\nVAR_0->exception_index,\nVAR_0->interrupt_request));",
"switch (VAR_0->exception_index)\n{",
"case EXCP_BREAK:\nVAR_1 = VAR_0->trap_vector;",
"VAR_0->pregs[PR_ERP] = VAR_0->pc + 2;",
"b... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11,
13
],
[
17,
19
],
[
21,
27
],
[
29
],
[
31
],
[
35,
37
],
[
39
],
[
41
],
[
45,
49,
51
],
[
57
],
[
63
],
[
65
],
[
67
],
[
71
],
... |
2,807 | void *qemu_blockalign0(BlockDriverState *bs, size_t size)
{
return memset(qemu_blockalign(bs, size), 0, size);
}
| false | qemu | 61007b316cd71ee7333ff7a0a749a8949527575f | void *qemu_blockalign0(BlockDriverState *bs, size_t size)
{
return memset(qemu_blockalign(bs, size), 0, size);
}
| {
"code": [],
"line_no": []
} | void *FUNC_0(BlockDriverState *VAR_0, size_t VAR_1)
{
return memset(qemu_blockalign(VAR_0, VAR_1), 0, VAR_1);
}
| [
"void *FUNC_0(BlockDriverState *VAR_0, size_t VAR_1)\n{",
"return memset(qemu_blockalign(VAR_0, VAR_1), 0, VAR_1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
2,809 | static void t_gen_asr(TCGv d, TCGv a, TCGv b)
{
TCGv t0, t_31;
t0 = tcg_temp_new(TCG_TYPE_TL);
t_31 = tcg_temp_new(TCG_TYPE_TL);
tcg_gen_sar_tl(d, a, b);
tcg_gen_movi_tl(t_31, 31);
tcg_gen_sub_tl(t0, t_31, b);
tcg_gen_sar_tl(t0, t0, t_31);
tcg_gen_or_tl(d, d, t0);
tcg_temp_free(t0);
tcg_temp_fr... | false | qemu | a7812ae412311d7d47f8aa85656faadac9d64b56 | static void t_gen_asr(TCGv d, TCGv a, TCGv b)
{
TCGv t0, t_31;
t0 = tcg_temp_new(TCG_TYPE_TL);
t_31 = tcg_temp_new(TCG_TYPE_TL);
tcg_gen_sar_tl(d, a, b);
tcg_gen_movi_tl(t_31, 31);
tcg_gen_sub_tl(t0, t_31, b);
tcg_gen_sar_tl(t0, t0, t_31);
tcg_gen_or_tl(d, d, t0);
tcg_temp_free(t0);
tcg_temp_fr... | {
"code": [],
"line_no": []
} | static void FUNC_0(TCGv VAR_0, TCGv VAR_1, TCGv VAR_2)
{
TCGv t0, t_31;
t0 = tcg_temp_new(TCG_TYPE_TL);
t_31 = tcg_temp_new(TCG_TYPE_TL);
tcg_gen_sar_tl(VAR_0, VAR_1, VAR_2);
tcg_gen_movi_tl(t_31, 31);
tcg_gen_sub_tl(t0, t_31, VAR_2);
tcg_gen_sar_tl(t0, t0, t_31);
tcg_gen_or_tl(VAR_0, VAR_0, t0);
... | [
"static void FUNC_0(TCGv VAR_0, TCGv VAR_1, TCGv VAR_2)\n{",
"TCGv t0, t_31;",
"t0 = tcg_temp_new(TCG_TYPE_TL);",
"t_31 = tcg_temp_new(TCG_TYPE_TL);",
"tcg_gen_sar_tl(VAR_0, VAR_1, VAR_2);",
"tcg_gen_movi_tl(t_31, 31);",
"tcg_gen_sub_tl(t0, t_31, VAR_2);",
"tcg_gen_sar_tl(t0, t0, t_31);",
"tcg_gen_o... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
2,810 | static inline uint64_t do_fri(uint64_t arg, int rounding_mode)
{
CPU_DoubleU farg;
farg.ll = arg;
if (unlikely(float64_is_signaling_nan(farg.d))) {
/* sNaN round */
farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI);
} else if (unlikely(float64_is_na... | false | qemu | 185698715dfb18c82ad2a5dbc169908602d43e81 | static inline uint64_t do_fri(uint64_t arg, int rounding_mode)
{
CPU_DoubleU farg;
farg.ll = arg;
if (unlikely(float64_is_signaling_nan(farg.d))) {
farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI);
} else if (unlikely(float64_is_nan(farg.d) || flo... | {
"code": [],
"line_no": []
} | static inline uint64_t FUNC_0(uint64_t arg, int rounding_mode)
{
CPU_DoubleU farg;
farg.ll = arg;
if (unlikely(float64_is_signaling_nan(farg.d))) {
farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI);
} else if (unlikely(float64_is_nan(farg.d) || flo... | [
"static inline uint64_t FUNC_0(uint64_t arg, int rounding_mode)\n{",
"CPU_DoubleU farg;",
"farg.ll = arg;",
"if (unlikely(float64_is_signaling_nan(farg.d))) {",
"farg.ll = fload_invalid_op_excp(POWERPC_EXCP_FP_VXSNAN | POWERPC_EXCP_FP_VXCVI);",
"} else if (unlikely(float64_is_nan(farg.d) || float64_is_inf... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
2,812 | static int pci_qdev_init(DeviceState *qdev, DeviceInfo *base)
{
PCIDevice *pci_dev = (PCIDevice *)qdev;
PCIDeviceInfo *info = container_of(base, PCIDeviceInfo, qdev);
PCIBus *bus;
int devfn, rc;
/* initialize cap_present for pci_is_express() and pci_config_size() */
if (info->is_express... | false | qemu | fb23162885f7fd8cf7334bed22c25ac32c7d8b9d | static int pci_qdev_init(DeviceState *qdev, DeviceInfo *base)
{
PCIDevice *pci_dev = (PCIDevice *)qdev;
PCIDeviceInfo *info = container_of(base, PCIDeviceInfo, qdev);
PCIBus *bus;
int devfn, rc;
if (info->is_express) {
pci_dev->cap_present |= QEMU_PCI_CAP_EXPRESS;
}
... | {
"code": [],
"line_no": []
} | static int FUNC_0(DeviceState *VAR_0, DeviceInfo *VAR_1)
{
PCIDevice *pci_dev = (PCIDevice *)VAR_0;
PCIDeviceInfo *info = container_of(VAR_1, PCIDeviceInfo, VAR_0);
PCIBus *bus;
int VAR_2, VAR_3;
if (info->is_express) {
pci_dev->cap_present |= QEMU_PCI_CAP_EXPRESS;
}
... | [
"static int FUNC_0(DeviceState *VAR_0, DeviceInfo *VAR_1)\n{",
"PCIDevice *pci_dev = (PCIDevice *)VAR_0;",
"PCIDeviceInfo *info = container_of(VAR_1, PCIDeviceInfo, VAR_0);",
"PCIBus *bus;",
"int VAR_2, VAR_3;",
"if (info->is_express) {",
"pci_dev->cap_present |= QEMU_PCI_CAP_EXPRESS;",
"}",
"bus = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37,
39
],
[
41,
43
],
[
45
],
[
47
]
] |
2,813 | static inline void bit_copy(PutBitContext *pb, GetBitContext *gb)
{
int bits_left = get_bits_left(gb);
while (bits_left >= 16) {
put_bits(pb, 16, get_bits(gb, 16));
bits_left -= 16;
}
if (bits_left > 0) {
put_bits(pb, bits_left, get_bits(gb, bits_left));
}
}
| false | FFmpeg | c619ff6daf93a8f3c03decf2d3345d2474c3db91 | static inline void bit_copy(PutBitContext *pb, GetBitContext *gb)
{
int bits_left = get_bits_left(gb);
while (bits_left >= 16) {
put_bits(pb, 16, get_bits(gb, 16));
bits_left -= 16;
}
if (bits_left > 0) {
put_bits(pb, bits_left, get_bits(gb, bits_left));
}
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(PutBitContext *VAR_0, GetBitContext *VAR_1)
{
int VAR_2 = get_bits_left(VAR_1);
while (VAR_2 >= 16) {
put_bits(VAR_0, 16, get_bits(VAR_1, 16));
VAR_2 -= 16;
}
if (VAR_2 > 0) {
put_bits(VAR_0, VAR_2, get_bits(VAR_1, VAR_2));
}
}
| [
"static inline void FUNC_0(PutBitContext *VAR_0, GetBitContext *VAR_1)\n{",
"int VAR_2 = get_bits_left(VAR_1);",
"while (VAR_2 >= 16) {",
"put_bits(VAR_0, 16, get_bits(VAR_1, 16));",
"VAR_2 -= 16;",
"}",
"if (VAR_2 > 0) {",
"put_bits(VAR_0, VAR_2, get_bits(VAR_1, VAR_2));",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
2,814 | static int coroutine_fn v9fs_mark_fids_unreclaim(V9fsPDU *pdu, V9fsPath *path)
{
int err;
V9fsState *s = pdu->s;
V9fsFidState *fidp, head_fid;
head_fid.next = s->fid_list;
for (fidp = s->fid_list; fidp; fidp = fidp->next) {
if (fidp->path.size != path->size) {
continue;... | false | qemu | 267fcadf325e54c6e1cb27321413dbdbe2200510 | static int coroutine_fn v9fs_mark_fids_unreclaim(V9fsPDU *pdu, V9fsPath *path)
{
int err;
V9fsState *s = pdu->s;
V9fsFidState *fidp, head_fid;
head_fid.next = s->fid_list;
for (fidp = s->fid_list; fidp; fidp = fidp->next) {
if (fidp->path.size != path->size) {
continue;... | {
"code": [],
"line_no": []
} | static int VAR_0 v9fs_mark_fids_unreclaim(V9fsPDU *pdu, V9fsPath *path)
{
int err;
V9fsState *s = pdu->s;
V9fsFidState *fidp, head_fid;
head_fid.next = s->fid_list;
for (fidp = s->fid_list; fidp; fidp = fidp->next) {
if (fidp->path.size != path->size) {
continue;
... | [
"static int VAR_0 v9fs_mark_fids_unreclaim(V9fsPDU *pdu, V9fsPath *path)\n{",
"int err;",
"V9fsState *s = pdu->s;",
"V9fsFidState *fidp, head_fid;",
"head_fid.next = s->fid_list;",
"for (fidp = s->fid_list; fidp; fidp = fidp->next) {",
"if (fidp->path.size != path->size) {",
"continue;",
"}",
"if ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
... |
2,816 | float64 helper_fabs_DT(float64 t0)
{
return float64_abs(t0);
}
| false | qemu | 57f5c1b093e1c3ec185770d2a180259205f980be | float64 helper_fabs_DT(float64 t0)
{
return float64_abs(t0);
}
| {
"code": [],
"line_no": []
} | float64 FUNC_0(float64 t0)
{
return float64_abs(t0);
}
| [
"float64 FUNC_0(float64 t0)\n{",
"return float64_abs(t0);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
2,819 | static long gethugepagesize(const char *path, Error **errp)
{
struct statfs fs;
int ret;
do {
ret = statfs(path, &fs);
} while (ret != 0 && errno == EINTR);
if (ret != 0) {
error_setg_errno(errp, errno, "failed to get page size of file %s",
path)... | false | qemu | 2c189a4e12a37b1c7cae2a2643c378c5af8f67fc | static long gethugepagesize(const char *path, Error **errp)
{
struct statfs fs;
int ret;
do {
ret = statfs(path, &fs);
} while (ret != 0 && errno == EINTR);
if (ret != 0) {
error_setg_errno(errp, errno, "failed to get page size of file %s",
path)... | {
"code": [],
"line_no": []
} | static long FUNC_0(const char *VAR_0, Error **VAR_1)
{
struct statfs VAR_2;
int VAR_3;
do {
VAR_3 = statfs(VAR_0, &VAR_2);
} while (VAR_3 != 0 && errno == EINTR);
if (VAR_3 != 0) {
error_setg_errno(VAR_1, errno, "failed to get page size of file %s",
... | [
"static long FUNC_0(const char *VAR_0, Error **VAR_1)\n{",
"struct statfs VAR_2;",
"int VAR_3;",
"do {",
"VAR_3 = statfs(VAR_0, &VAR_2);",
"} while (VAR_3 != 0 && errno == EINTR);",
"if (VAR_3 != 0) {",
"error_setg_errno(VAR_1, errno, \"failed to get page size of file %s\",\nVAR_0);",
"return 0;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
31,
33
],
[
35
],
[
37
],
[
41
],
[
43
]
] |
2,821 | static void gen_sllq(DisasContext *ctx)
{
int l1 = gen_new_label();
int l2 = gen_new_label();
TCGv t0 = tcg_temp_local_new();
TCGv t1 = tcg_temp_local_new();
TCGv t2 = tcg_temp_local_new();
tcg_gen_andi_tl(t2, cpu_gpr[rB(ctx->opcode)], 0x1F);
tcg_gen_movi_tl(t1, 0xFFFFFFFF);
tcg... | false | qemu | 42a268c241183877192c376d03bd9b6d527407c7 | static void gen_sllq(DisasContext *ctx)
{
int l1 = gen_new_label();
int l2 = gen_new_label();
TCGv t0 = tcg_temp_local_new();
TCGv t1 = tcg_temp_local_new();
TCGv t2 = tcg_temp_local_new();
tcg_gen_andi_tl(t2, cpu_gpr[rB(ctx->opcode)], 0x1F);
tcg_gen_movi_tl(t1, 0xFFFFFFFF);
tcg... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0)
{
int VAR_1 = gen_new_label();
int VAR_2 = gen_new_label();
TCGv t0 = tcg_temp_local_new();
TCGv t1 = tcg_temp_local_new();
TCGv t2 = tcg_temp_local_new();
tcg_gen_andi_tl(t2, cpu_gpr[rB(VAR_0->opcode)], 0x1F);
tcg_gen_movi_tl(t1, 0xFFFFFFFF);
... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"int VAR_1 = gen_new_label();",
"int VAR_2 = gen_new_label();",
"TCGv t0 = tcg_temp_local_new();",
"TCGv t1 = tcg_temp_local_new();",
"TCGv t2 = tcg_temp_local_new();",
"tcg_gen_andi_tl(t2, cpu_gpr[rB(VAR_0->opcode)], 0x1F);",
"tcg_gen_movi_tl(t1, 0xFFFFFF... | [
0,
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
... |
2,822 | static void raw_eject(BlockDriverState *bs, bool eject_flag)
{
bdrv_eject(bs->file->bs, eject_flag);
}
| false | qemu | 2e6fc7eb1a4af1b127df5f07b8bb28af891946fa | static void raw_eject(BlockDriverState *bs, bool eject_flag)
{
bdrv_eject(bs->file->bs, eject_flag);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(BlockDriverState *VAR_0, bool VAR_1)
{
bdrv_eject(VAR_0->file->VAR_0, VAR_1);
}
| [
"static void FUNC_0(BlockDriverState *VAR_0, bool VAR_1)\n{",
"bdrv_eject(VAR_0->file->VAR_0, VAR_1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
2,823 | int acpi_add_cpu_info(Object *o, void *opaque)
{
AcpiCpuInfo *cpu = opaque;
uint64_t apic_id;
if (object_dynamic_cast(o, TYPE_CPU)) {
apic_id = object_property_get_int(o, "apic-id", NULL);
assert(apic_id <= MAX_CPUMASK_BITS);
set_bit(apic_id, cpu->found_cpus);
}
... | false | qemu | 798325ed3856bc1e2f2b640b7e0db60044fdddf9 | int acpi_add_cpu_info(Object *o, void *opaque)
{
AcpiCpuInfo *cpu = opaque;
uint64_t apic_id;
if (object_dynamic_cast(o, TYPE_CPU)) {
apic_id = object_property_get_int(o, "apic-id", NULL);
assert(apic_id <= MAX_CPUMASK_BITS);
set_bit(apic_id, cpu->found_cpus);
}
... | {
"code": [],
"line_no": []
} | int FUNC_0(Object *VAR_0, void *VAR_1)
{
AcpiCpuInfo *cpu = VAR_1;
uint64_t apic_id;
if (object_dynamic_cast(VAR_0, TYPE_CPU)) {
apic_id = object_property_get_int(VAR_0, "apic-id", NULL);
assert(apic_id <= MAX_CPUMASK_BITS);
set_bit(apic_id, cpu->found_cpus);
}
... | [
"int FUNC_0(Object *VAR_0, void *VAR_1)\n{",
"AcpiCpuInfo *cpu = VAR_1;",
"uint64_t apic_id;",
"if (object_dynamic_cast(VAR_0, TYPE_CPU)) {",
"apic_id = object_property_get_int(VAR_0, \"apic-id\", NULL);",
"assert(apic_id <= MAX_CPUMASK_BITS);",
"set_bit(apic_id, cpu->found_cpus);",
"}",
"object_chi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
]
] |
2,824 | int ff_listen_bind(int fd, const struct sockaddr *addr,
socklen_t addrlen, int timeout, URLContext *h)
{
int ret;
int reuse = 1;
struct pollfd lp = { fd, POLLIN, 0 };
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse))) {
av_log(NULL, AV_LOG_WARNING, "se... | false | FFmpeg | 7439475e69f333541c3647f6b9eb5b5af073cb64 | int ff_listen_bind(int fd, const struct sockaddr *addr,
socklen_t addrlen, int timeout, URLContext *h)
{
int ret;
int reuse = 1;
struct pollfd lp = { fd, POLLIN, 0 };
if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &reuse, sizeof(reuse))) {
av_log(NULL, AV_LOG_WARNING, "se... | {
"code": [],
"line_no": []
} | int FUNC_0(int VAR_0, const struct sockaddr *VAR_1,
socklen_t VAR_2, int VAR_3, URLContext *VAR_4)
{
int VAR_5;
int VAR_6 = 1;
struct pollfd VAR_7 = { VAR_0, POLLIN, 0 };
if (setsockopt(VAR_0, SOL_SOCKET, SO_REUSEADDR, &VAR_6, sizeof(VAR_6))) {
av_log(NULL, AV_LOG_WARNI... | [
"int FUNC_0(int VAR_0, const struct sockaddr *VAR_1,\nsocklen_t VAR_2, int VAR_3, URLContext *VAR_4)\n{",
"int VAR_5;",
"int VAR_6 = 1;",
"struct pollfd VAR_7 = { VAR_0, POLLIN, 0 };",
"if (setsockopt(VAR_0, SOL_SOCKET, SO_REUSEADDR, &VAR_6, sizeof(VAR_6))) {",
"av_log(NULL, AV_LOG_WARNING, \"setsockopt(S... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
27
],
[
29,
31
],
[
35
],
[
37,
39
],
[
43
],
[
45,
47
],
[
51
],
[
55
],
[... |
2,825 | static uint64_t vtd_get_iotlb_key(uint64_t gfn, uint8_t source_id,
uint32_t level)
{
return gfn | ((uint64_t)(source_id) << VTD_IOTLB_SID_SHIFT) |
((uint64_t)(level) << VTD_IOTLB_LVL_SHIFT);
}
| false | qemu | bacabb0afadb47294806481a7ebb6fa5d4f1c7bd | static uint64_t vtd_get_iotlb_key(uint64_t gfn, uint8_t source_id,
uint32_t level)
{
return gfn | ((uint64_t)(source_id) << VTD_IOTLB_SID_SHIFT) |
((uint64_t)(level) << VTD_IOTLB_LVL_SHIFT);
}
| {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(uint64_t gfn, uint8_t source_id,
uint32_t level)
{
return gfn | ((uint64_t)(source_id) << VTD_IOTLB_SID_SHIFT) |
((uint64_t)(level) << VTD_IOTLB_LVL_SHIFT);
}
| [
"static uint64_t FUNC_0(uint64_t gfn, uint8_t source_id,\nuint32_t level)\n{",
"return gfn | ((uint64_t)(source_id) << VTD_IOTLB_SID_SHIFT) |\n((uint64_t)(level) << VTD_IOTLB_LVL_SHIFT);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11
]
] |
2,826 | static int chr_can_read(void *opaque)
{
SCLPConsole *scon = opaque;
return SIZE_BUFFER_VT220 - scon->iov_data_len;
}
| false | qemu | bb3e9e1fd7ab62b60780c66d68b2d7bfd8758e61 | static int chr_can_read(void *opaque)
{
SCLPConsole *scon = opaque;
return SIZE_BUFFER_VT220 - scon->iov_data_len;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(void *VAR_0)
{
SCLPConsole *scon = VAR_0;
return SIZE_BUFFER_VT220 - scon->iov_data_len;
}
| [
"static int FUNC_0(void *VAR_0)\n{",
"SCLPConsole *scon = VAR_0;",
"return SIZE_BUFFER_VT220 - scon->iov_data_len;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
2,827 | static void virtio_scsi_do_tmf(VirtIOSCSI *s, VirtIOSCSIReq *req)
{
SCSIDevice *d = virtio_scsi_device_find(s, req->req.tmf->lun);
SCSIRequest *r, *next;
BusChild *kid;
int target;
/* Here VIRTIO_SCSI_S_OK means "FUNCTION COMPLETE". */
req->resp.tmf->response = VIRTIO_SCSI_S_OK;
... | false | qemu | 3eff1f46f08a360a4ae9f834ce9fef4c45bf6f0f | static void virtio_scsi_do_tmf(VirtIOSCSI *s, VirtIOSCSIReq *req)
{
SCSIDevice *d = virtio_scsi_device_find(s, req->req.tmf->lun);
SCSIRequest *r, *next;
BusChild *kid;
int target;
req->resp.tmf->response = VIRTIO_SCSI_S_OK;
tswap32s(&req->req.tmf->subtype);
switch (req->re... | {
"code": [],
"line_no": []
} | static void FUNC_0(VirtIOSCSI *VAR_0, VirtIOSCSIReq *VAR_1)
{
SCSIDevice *d = virtio_scsi_device_find(VAR_0, VAR_1->VAR_1.tmf->lun);
SCSIRequest *r, *next;
BusChild *kid;
int VAR_2;
VAR_1->resp.tmf->response = VIRTIO_SCSI_S_OK;
tswap32s(&VAR_1->VAR_1.tmf->subtype);
switch (... | [
"static void FUNC_0(VirtIOSCSI *VAR_0, VirtIOSCSIReq *VAR_1)\n{",
"SCSIDevice *d = virtio_scsi_device_find(VAR_0, VAR_1->VAR_1.tmf->lun);",
"SCSIRequest *r, *next;",
"BusChild *kid;",
"int VAR_2;",
"VAR_1->resp.tmf->response = VIRTIO_SCSI_S_OK;",
"tswap32s(&VAR_1->VAR_1.tmf->subtype);",
"switch (VAR_1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
21
],
[
23
],
[
25,
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
2,828 | int iommu_dma_memory_set(DMAContext *dma, dma_addr_t addr, uint8_t c,
dma_addr_t len)
{
target_phys_addr_t paddr, plen;
int err;
#ifdef DEBUG_IOMMU
fprintf(stderr, "dma_memory_set context=%p addr=0x" DMA_ADDR_FMT
" len=0x" DMA_ADDR_FMT "\n", dma, addr, len);
#e... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | int iommu_dma_memory_set(DMAContext *dma, dma_addr_t addr, uint8_t c,
dma_addr_t len)
{
target_phys_addr_t paddr, plen;
int err;
#ifdef DEBUG_IOMMU
fprintf(stderr, "dma_memory_set context=%p addr=0x" DMA_ADDR_FMT
" len=0x" DMA_ADDR_FMT "\n", dma, addr, len);
#e... | {
"code": [],
"line_no": []
} | int FUNC_0(DMAContext *VAR_0, dma_addr_t VAR_1, uint8_t VAR_2,
dma_addr_t VAR_3)
{
target_phys_addr_t paddr, plen;
int VAR_4;
#ifdef DEBUG_IOMMU
fprintf(stderr, "dma_memory_set context=%p VAR_1=0x" DMA_ADDR_FMT
" VAR_3=0x" DMA_ADDR_FMT "\n", VAR_0, VAR_1, VAR_3)... | [
"int FUNC_0(DMAContext *VAR_0, dma_addr_t VAR_1, uint8_t VAR_2,\ndma_addr_t VAR_3)\n{",
"target_phys_addr_t paddr, plen;",
"int VAR_4;",
"#ifdef DEBUG_IOMMU\nfprintf(stderr, \"dma_memory_set context=%p VAR_1=0x\" DMA_ADDR_FMT\n\" VAR_3=0x\" DMA_ADDR_FMT \"\\n\", VAR_0, VAR_1, VAR_3);",
"#endif\nwhile (VAR_3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13,
15,
17
],
[
19,
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
39
],
[
41
],
[
43
],
[
47
],
[
51
],
[
53
],
[
55
],
[
59
],
[... |
2,829 | static void ppc6xx_set_irq (void *opaque, int pin, int level)
{
CPUState *env = opaque;
int cur_level;
#if defined(PPC_DEBUG_IRQ)
if (loglevel & CPU_LOG_INT) {
fprintf(logfile, "%s: env %p pin %d level %d\n", __func__,
env, pin, level);
}
#endif
cur_level = (env->... | false | qemu | e63ecc6f68d5f9349683aef5d74e36137eafb72d | static void ppc6xx_set_irq (void *opaque, int pin, int level)
{
CPUState *env = opaque;
int cur_level;
#if defined(PPC_DEBUG_IRQ)
if (loglevel & CPU_LOG_INT) {
fprintf(logfile, "%s: env %p pin %d level %d\n", __func__,
env, pin, level);
}
#endif
cur_level = (env->... | {
"code": [],
"line_no": []
} | static void FUNC_0 (void *VAR_0, int VAR_1, int VAR_2)
{
CPUState *env = VAR_0;
int VAR_3;
#if defined(PPC_DEBUG_IRQ)
if (loglevel & CPU_LOG_INT) {
fprintf(logfile, "%s: env %p VAR_1 %d VAR_2 %d\n", __func__,
env, VAR_1, VAR_2);
}
#endif
VAR_3 = (env->irq_input_st... | [
"static void FUNC_0 (void *VAR_0, int VAR_1, int VAR_2)\n{",
"CPUState *env = VAR_0;",
"int VAR_3;",
"#if defined(PPC_DEBUG_IRQ)\nif (loglevel & CPU_LOG_INT) {",
"fprintf(logfile, \"%s: env %p VAR_1 %d VAR_2 %d\\n\", __func__,\nenv, VAR_1, VAR_2);",
"}",
"#endif\nVAR_3 = (env->irq_input_state >> VAR_1) ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15,
17
],
[
19
],
[
21,
23
],
[
27
],
[
29
],
[
31,
35,
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
49
],
[
51,
55,
57
],
... |
2,830 | static void sdp_service_record_build(struct sdp_service_record_s *record,
struct sdp_def_service_s *def, int handle)
{
int len = 0;
uint8_t *data;
int *uuid;
record->uuids = 0;
while (def->attributes[record->attributes].data.type) {
len += 3;
len += sdp_att... | true | qemu | 393c13b940be8f2e5b126cd9f442c12e7ecb4cac | static void sdp_service_record_build(struct sdp_service_record_s *record,
struct sdp_def_service_s *def, int handle)
{
int len = 0;
uint8_t *data;
int *uuid;
record->uuids = 0;
while (def->attributes[record->attributes].data.type) {
len += 3;
len += sdp_att... | {
"code": [
" data[len ++] = def->attributes[record->attributes].id >> 8;",
" data[len ++] = def->attributes[record->attributes].id & 0xff;"
],
"line_no": [
55,
57
]
} | static void FUNC_0(struct sdp_service_record_s *VAR_0,
struct sdp_def_service_s *VAR_1, int VAR_2)
{
int VAR_3 = 0;
uint8_t *data;
int *VAR_4;
VAR_0->uuids = 0;
while (VAR_1->attributes[VAR_0->attributes].data.type) {
VAR_3 += 3;
VAR_3 += sdp_attr_max_size(... | [
"static void FUNC_0(struct sdp_service_record_s *VAR_0,\nstruct sdp_def_service_s *VAR_1, int VAR_2)\n{",
"int VAR_3 = 0;",
"uint8_t *data;",
"int *VAR_4;",
"VAR_0->uuids = 0;",
"while (VAR_1->attributes[VAR_0->attributes].data.type) {",
"VAR_3 += 3;",
"VAR_3 += sdp_attr_max_size(&VAR_1->attributes[VA... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29,
31
],
[
33,
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
... |
2,831 | static int skip_check(MpegEncContext *s, Picture *p, Picture *ref)
{
int x, y, plane;
int score = 0;
int64_t score64 = 0;
for (plane = 0; plane < 3; plane++) {
const int stride = p->f.linesize[plane];
const int bw = plane ? 1 : 2;
for (y = 0; y < s->mb_height * bw; y++)... | true | FFmpeg | f6774f905fb3cfdc319523ac640be30b14c1bc55 | static int skip_check(MpegEncContext *s, Picture *p, Picture *ref)
{
int x, y, plane;
int score = 0;
int64_t score64 = 0;
for (plane = 0; plane < 3; plane++) {
const int stride = p->f.linesize[plane];
const int bw = plane ? 1 : 2;
for (y = 0; y < s->mb_height * bw; y++)... | {
"code": [
" const int stride = p->f.linesize[plane];",
" uint8_t *dptr = p->f.data[plane] + 8 * (x + y * stride) + off;",
" uint8_t *rptr = ref->f.data[plane] + 8 * (x + y * stride);"
],
"line_no": [
15,
25,
27
]
} | static int FUNC_0(MpegEncContext *VAR_0, Picture *VAR_1, Picture *VAR_2)
{
int VAR_3, VAR_4, VAR_5;
int VAR_6 = 0;
int64_t score64 = 0;
for (VAR_5 = 0; VAR_5 < 3; VAR_5++) {
const int VAR_7 = VAR_1->f.linesize[VAR_5];
const int VAR_8 = VAR_5 ? 1 : 2;
for (VAR_4 = 0; VAR... | [
"static int FUNC_0(MpegEncContext *VAR_0, Picture *VAR_1, Picture *VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5;",
"int VAR_6 = 0;",
"int64_t score64 = 0;",
"for (VAR_5 = 0; VAR_5 < 3; VAR_5++) {",
"const int VAR_7 = VAR_1->f.linesize[VAR_5];",
"const int VAR_8 = VAR_5 ? 1 : 2;",
"for (VAR_4 = 0; VAR_4 < VAR_... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
1,
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
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
2,833 | int ff_slice_thread_init(AVCodecContext *avctx)
{
int i;
SliceThreadContext *c;
int thread_count = avctx->thread_count;
#if HAVE_W32THREADS
w32thread_init();
#endif
// We cannot do this in the encoder init as the threads are created before
if (av_codec_is_encoder(avctx->codec) &&
... | true | FFmpeg | b505f15b1530d72682b3314e84936f80fe6e43b2 | int ff_slice_thread_init(AVCodecContext *avctx)
{
int i;
SliceThreadContext *c;
int thread_count = avctx->thread_count;
#if HAVE_W32THREADS
w32thread_init();
#endif
if (av_codec_is_encoder(avctx->codec) &&
avctx->codec_id == AV_CODEC_ID_MPEG1VIDEO &&
avctx->height... | {
"code": [
" int thread_count = avctx->thread_count;",
" pthread_mutex_lock(&c->current_job_lock);",
" pthread_mutex_lock(&c->current_job_lock);",
" pthread_mutex_lock(&c->current_job_lock);",
" int i;",
" c = av_mallocz(sizeof(SliceThreadContext));",
" if (!c)",
... | int FUNC_0(AVCodecContext *VAR_0)
{
int VAR_1;
SliceThreadContext *c;
int VAR_2 = VAR_0->VAR_2;
#if HAVE_W32THREADS
w32thread_init();
#endif
if (av_codec_is_encoder(VAR_0->codec) &&
VAR_0->codec_id == AV_CODEC_ID_MPEG1VIDEO &&
VAR_0->height > 2800)
VAR_2 ... | [
"int FUNC_0(AVCodecContext *VAR_0)\n{",
"int VAR_1;",
"SliceThreadContext *c;",
"int VAR_2 = VAR_0->VAR_2;",
"#if HAVE_W32THREADS\nw32thread_init();",
"#endif\nif (av_codec_is_encoder(VAR_0->codec) &&\nVAR_0->codec_id == AV_CODEC_ID_MPEG1VIDEO &&\nVAR_0->height > 2800)\nVAR_2 = VAR_0->VAR_2 = 1;",
"if (... | [
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17,
23,
25,
27,
29
],
[
33
],
[
35
],
[
37,
39
],
[
43,
45
],
[
47,
49
],
[
51
],
[
55
],
[
57
],
[
59
],
[
61
... |
2,834 | int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate)
{
MPADecodeContext s1, *s = &s1;
s1.avctx = avctx;
if (ff_mpa_check_header(head) != 0)
return -1;
if (ff_mpegaudio_decode_header(s, head) != 0) {
return -1;
}
switch(s->layer) {
c... | false | FFmpeg | c96bd21227e594856f8fd0610fd213b002056383 | int ff_mpa_decode_header(AVCodecContext *avctx, uint32_t head, int *sample_rate)
{
MPADecodeContext s1, *s = &s1;
s1.avctx = avctx;
if (ff_mpa_check_header(head) != 0)
return -1;
if (ff_mpegaudio_decode_header(s, head) != 0) {
return -1;
}
switch(s->layer) {
c... | {
"code": [],
"line_no": []
} | int FUNC_0(AVCodecContext *VAR_0, uint32_t VAR_1, int *VAR_2)
{
MPADecodeContext s1, *s = &s1;
s1.VAR_0 = VAR_0;
if (ff_mpa_check_header(VAR_1) != 0)
return -1;
if (ff_mpegaudio_decode_header(s, VAR_1) != 0) {
return -1;
}
switch(s->layer) {
case 1:
V... | [
"int FUNC_0(AVCodecContext *VAR_0, uint32_t VAR_1, int *VAR_2)\n{",
"MPADecodeContext s1, *s = &s1;",
"s1.VAR_0 = VAR_0;",
"if (ff_mpa_check_header(VAR_1) != 0)\nreturn -1;",
"if (ff_mpegaudio_decode_header(s, VAR_1) != 0) {",
"return -1;",
"}",
"switch(s->layer) {",
"case 1:\nVAR_0->frame_size = 38... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41,
43,
45
],
[
47,
49
],
[
51
],
[
53
],
... |
2,835 | int ff_vaapi_decode_init(AVCodecContext *avctx)
{
VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data;
VAStatus vas;
int err;
ctx->va_config = VA_INVALID_ID;
ctx->va_context = VA_INVALID_ID;
#if FF_API_VAAPI_CONTEXT
if (avctx->hwaccel_context) {
av_log(avctx, AV_LO... | false | FFmpeg | b46a77f19ddc4b2b5fa3187835ceb602a5244e24 | int ff_vaapi_decode_init(AVCodecContext *avctx)
{
VAAPIDecodeContext *ctx = avctx->internal->hwaccel_priv_data;
VAStatus vas;
int err;
ctx->va_config = VA_INVALID_ID;
ctx->va_context = VA_INVALID_ID;
#if FF_API_VAAPI_CONTEXT
if (avctx->hwaccel_context) {
av_log(avctx, AV_LO... | {
"code": [],
"line_no": []
} | int FUNC_0(AVCodecContext *VAR_0)
{
VAAPIDecodeContext *ctx = VAR_0->internal->hwaccel_priv_data;
VAStatus vas;
int VAR_1;
ctx->va_config = VA_INVALID_ID;
ctx->va_context = VA_INVALID_ID;
#if FF_API_VAAPI_CONTEXT
if (VAR_0->hwaccel_context) {
av_log(VAR_0, AV_LOG_WARNING, "... | [
"int FUNC_0(AVCodecContext *VAR_0)\n{",
"VAAPIDecodeContext *ctx = VAR_0->internal->hwaccel_priv_data;",
"VAStatus vas;",
"int VAR_1;",
"ctx->va_config = VA_INVALID_ID;",
"ctx->va_context = VA_INVALID_ID;",
"#if FF_API_VAAPI_CONTEXT\nif (VAR_0->hwaccel_context) {",
"av_log(VAR_0, AV_LOG_WARNING, \"Us... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19,
21
],
[
23,
25
],
[
29
],
[
31
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
59
],
[... |
2,836 | void helper_set_alarm(CPUAlphaState *env, uint64_t expire)
{
if (expire) {
env->alarm_expire = expire;
qemu_mod_timer(env->alarm_timer, expire);
} else {
qemu_del_timer(env->alarm_timer);
}
}
| true | qemu | c92458538f501eda585b4b774c50644aed391a8a | void helper_set_alarm(CPUAlphaState *env, uint64_t expire)
{
if (expire) {
env->alarm_expire = expire;
qemu_mod_timer(env->alarm_timer, expire);
} else {
qemu_del_timer(env->alarm_timer);
}
}
| {
"code": [
" qemu_mod_timer(env->alarm_timer, expire);",
" qemu_del_timer(env->alarm_timer);"
],
"line_no": [
9,
13
]
} | void FUNC_0(CPUAlphaState *VAR_0, uint64_t VAR_1)
{
if (VAR_1) {
VAR_0->alarm_expire = VAR_1;
qemu_mod_timer(VAR_0->alarm_timer, VAR_1);
} else {
qemu_del_timer(VAR_0->alarm_timer);
}
}
| [
"void FUNC_0(CPUAlphaState *VAR_0, uint64_t VAR_1)\n{",
"if (VAR_1) {",
"VAR_0->alarm_expire = VAR_1;",
"qemu_mod_timer(VAR_0->alarm_timer, VAR_1);",
"} else {",
"qemu_del_timer(VAR_0->alarm_timer);",
"}",
"}"
] | [
0,
0,
0,
1,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
2,837 | static int alloc_buffer(FrameBuffer **pool, AVCodecContext *s, FrameBuffer **pbuf)
{
FrameBuffer *buf = av_mallocz(sizeof(*buf));
int i, ret;
const int pixel_size = av_pix_fmt_descriptors[s->pix_fmt].comp[0].step_minus1+1;
int h_chroma_shift, v_chroma_shift;
int edge = 32; // XXX should be av... | true | FFmpeg | 990450c5bf17afc31a81d6225afaac86d0dca5dd | static int alloc_buffer(FrameBuffer **pool, AVCodecContext *s, FrameBuffer **pbuf)
{
FrameBuffer *buf = av_mallocz(sizeof(*buf));
int i, ret;
const int pixel_size = av_pix_fmt_descriptors[s->pix_fmt].comp[0].step_minus1+1;
int h_chroma_shift, v_chroma_shift;
int edge = 32;
int w = s->wi... | {
"code": [],
"line_no": []
} | static int FUNC_0(FrameBuffer **VAR_0, AVCodecContext *VAR_1, FrameBuffer **VAR_2)
{
FrameBuffer *buf = av_mallocz(sizeof(*buf));
int VAR_3, VAR_4;
const int VAR_5 = av_pix_fmt_descriptors[VAR_1->pix_fmt].comp[0].step_minus1+1;
int VAR_6, VAR_7;
int VAR_8 = 32;
int VAR_9 = VAR_1->width,... | [
"static int FUNC_0(FrameBuffer **VAR_0, AVCodecContext *VAR_1, FrameBuffer **VAR_2)\n{",
"FrameBuffer *buf = av_mallocz(sizeof(*buf));",
"int VAR_3, VAR_4;",
"const int VAR_5 = av_pix_fmt_descriptors[VAR_1->pix_fmt].comp[0].step_minus1+1;",
"int VAR_6, VAR_7;",
"int VAR_8 = 32;",
"int VAR_9 = VAR_1->wi... | [
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
57
],
[
61
... |
2,838 | static int mxf_set_audio_pts(MXFContext *mxf, AVCodecContext *codec, AVPacket *pkt)
{
MXFTrack *track = mxf->fc->streams[pkt->stream_index]->priv_data;
pkt->pts = track->sample_count;
if (codec->channels <= 0 || av_get_bits_per_sample(codec->codec_id) <= 0)
return AVERROR(EINVAL);
track->s... | true | FFmpeg | e5e422bcc3e6deee8c5c5bf8f5aeca2c051542f5 | static int mxf_set_audio_pts(MXFContext *mxf, AVCodecContext *codec, AVPacket *pkt)
{
MXFTrack *track = mxf->fc->streams[pkt->stream_index]->priv_data;
pkt->pts = track->sample_count;
if (codec->channels <= 0 || av_get_bits_per_sample(codec->codec_id) <= 0)
return AVERROR(EINVAL);
track->s... | {
"code": [
" track->sample_count += pkt->size / (codec->channels * av_get_bits_per_sample(codec->codec_id) / 8);"
],
"line_no": [
13
]
} | static int FUNC_0(MXFContext *VAR_0, AVCodecContext *VAR_1, AVPacket *VAR_2)
{
MXFTrack *track = VAR_0->fc->streams[VAR_2->stream_index]->priv_data;
VAR_2->pts = track->sample_count;
if (VAR_1->channels <= 0 || av_get_bits_per_sample(VAR_1->codec_id) <= 0)
return AVERROR(EINVAL);
track->sa... | [
"static int FUNC_0(MXFContext *VAR_0, AVCodecContext *VAR_1, AVPacket *VAR_2)\n{",
"MXFTrack *track = VAR_0->fc->streams[VAR_2->stream_index]->priv_data;",
"VAR_2->pts = track->sample_count;",
"if (VAR_1->channels <= 0 || av_get_bits_per_sample(VAR_1->codec_id) <= 0)\nreturn AVERROR(EINVAL);",
"track->sampl... | [
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
]
] |
2,839 | uint32_t HELPER(sar_cc)(CPUM68KState *env, uint32_t val, uint32_t shift)
{
uint64_t temp;
uint32_t result;
shift &= 63;
temp = (int64_t)val << 32 >> shift;
result = temp >> 32;
env->cc_c = (temp >> 31) & 1;
env->cc_n = result;
env->cc_z = result;
env->cc_v = result ^ va... | true | qemu | 367790cce8e14131426f5190dfd7d1bdbf656e4d | uint32_t HELPER(sar_cc)(CPUM68KState *env, uint32_t val, uint32_t shift)
{
uint64_t temp;
uint32_t result;
shift &= 63;
temp = (int64_t)val << 32 >> shift;
result = temp >> 32;
env->cc_c = (temp >> 31) & 1;
env->cc_n = result;
env->cc_z = result;
env->cc_v = result ^ va... | {
"code": [
" shift &= 63;",
" env->cc_n = result;",
" env->cc_z = result;",
" env->cc_x = shift ? env->cc_c : env->cc_x;",
" return result;",
" uint64_t temp;",
" uint32_t result;",
" shift &= 63;",
" result = temp >> 32;",
" env->cc_c = (temp >> ... | uint32_t FUNC_0(sar_cc)(CPUM68KState *env, uint32_t val, uint32_t shift)
{
uint64_t temp;
uint32_t result;
shift &= 63;
temp = (int64_t)val << 32 >> shift;
result = temp >> 32;
env->cc_c = (temp >> 31) & 1;
env->cc_n = result;
env->cc_z = result;
env->cc_v = result ^ va... | [
"uint32_t FUNC_0(sar_cc)(CPUM68KState *env, uint32_t val, uint32_t shift)\n{",
"uint64_t temp;",
"uint32_t result;",
"shift &= 63;",
"temp = (int64_t)val << 32 >> shift;",
"result = temp >> 32;",
"env->cc_c = (temp >> 31) & 1;",
"env->cc_n = result;",
"env->cc_z = result;",
"env->cc_v = result ^ v... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
]
] |
2,840 | static void build_basic_mjpeg_vlc(MJpegDecodeContext *s)
{
build_vlc(&s->vlcs[0][0], avpriv_mjpeg_bits_dc_luminance,
avpriv_mjpeg_val_dc, 12, 0, 0);
build_vlc(&s->vlcs[0][1], avpriv_mjpeg_bits_dc_chrominance,
avpriv_mjpeg_val_dc, 12, 0, 0);
build_vlc(&s->vlcs[1][0], avpriv_... | true | FFmpeg | 212c6a1d70df011b6f2a2aa02f7677503287bd00 | static void build_basic_mjpeg_vlc(MJpegDecodeContext *s)
{
build_vlc(&s->vlcs[0][0], avpriv_mjpeg_bits_dc_luminance,
avpriv_mjpeg_val_dc, 12, 0, 0);
build_vlc(&s->vlcs[0][1], avpriv_mjpeg_bits_dc_chrominance,
avpriv_mjpeg_val_dc, 12, 0, 0);
build_vlc(&s->vlcs[1][0], avpriv_... | {
"code": [
"static void build_basic_mjpeg_vlc(MJpegDecodeContext *s)",
" build_vlc(&s->vlcs[0][0], avpriv_mjpeg_bits_dc_luminance,",
" avpriv_mjpeg_val_dc, 12, 0, 0);",
" build_vlc(&s->vlcs[0][1], avpriv_mjpeg_bits_dc_chrominance,",
" avpriv_mjpeg_val_dc, 12, 0, 0)... | static void FUNC_0(MJpegDecodeContext *VAR_0)
{
build_vlc(&VAR_0->vlcs[0][0], avpriv_mjpeg_bits_dc_luminance,
avpriv_mjpeg_val_dc, 12, 0, 0);
build_vlc(&VAR_0->vlcs[0][1], avpriv_mjpeg_bits_dc_chrominance,
avpriv_mjpeg_val_dc, 12, 0, 0);
build_vlc(&VAR_0->vlcs[1][0], avpriv... | [
"static void FUNC_0(MJpegDecodeContext *VAR_0)\n{",
"build_vlc(&VAR_0->vlcs[0][0], avpriv_mjpeg_bits_dc_luminance,\navpriv_mjpeg_val_dc, 12, 0, 0);",
"build_vlc(&VAR_0->vlcs[0][1], avpriv_mjpeg_bits_dc_chrominance,\navpriv_mjpeg_val_dc, 12, 0, 0);",
"build_vlc(&VAR_0->vlcs[1][0], avpriv_mjpeg_bits_ac_luminanc... | [
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13,
15
],
[
17,
19
],
[
21,
23
],
[
25,
27
],
[
29
]
] |
2,841 | static void fsl_imx31_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
dc->realize = fsl_imx31_realize;
dc->desc = "i.MX31 SOC";
}
| true | qemu | e4e05b7b3e28970bcb9c0032dc46e30950e75f18 | static void fsl_imx31_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
dc->realize = fsl_imx31_realize;
dc->desc = "i.MX31 SOC";
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
dc->realize = fsl_imx31_realize;
dc->desc = "i.MX31 SOC";
}
| [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"dc->realize = fsl_imx31_realize;",
"dc->desc = \"i.MX31 SOC\";",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
]
] |
2,842 | static int dirac_decode_data_unit(AVCodecContext *avctx, const uint8_t *buf, int size)
{
DiracContext *s = avctx->priv_data;
DiracFrame *pic = NULL;
AVDiracSeqHeader *dsh;
int ret, i;
uint8_t parse_code;
unsigned tmp;
if (size < DATA_UNIT_HEADER_SIZE)
return AVERROR_IN... | true | FFmpeg | edc88646ee407bc342cc94ff495aadafcd377cee | static int dirac_decode_data_unit(AVCodecContext *avctx, const uint8_t *buf, int size)
{
DiracContext *s = avctx->priv_data;
DiracFrame *pic = NULL;
AVDiracSeqHeader *dsh;
int ret, i;
uint8_t parse_code;
unsigned tmp;
if (size < DATA_UNIT_HEADER_SIZE)
return AVERROR_IN... | {
"code": [
" ret = ff_set_dimensions(avctx, dsh->width, dsh->height);"
],
"line_no": [
55
]
} | static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
DiracContext *s = VAR_0->priv_data;
DiracFrame *pic = NULL;
AVDiracSeqHeader *dsh;
int VAR_3, VAR_4;
uint8_t parse_code;
unsigned VAR_5;
if (VAR_2 < DATA_UNIT_HEADER_SIZE)
return AVERROR_INVALI... | [
"static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"DiracContext *s = VAR_0->priv_data;",
"DiracFrame *pic = NULL;",
"AVDiracSeqHeader *dsh;",
"int VAR_3, VAR_4;",
"uint8_t parse_code;",
"unsigned VAR_5;",
"if (VAR_2 < DATA_UNIT_HEADER_SIZE)\nreturn AVERROR_INVALIDDATA... | [
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,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25
],
[
29
],
[
33
],
[
35,
37
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
... |
2,843 | static void filter0(int32_t *dst, const int32_t *src, int32_t coeff, ptrdiff_t len)
{
int i;
for (i = 0; i < len; i++)
dst[i] -= mul22(src[i], coeff);
}
| true | FFmpeg | 29638d4db90d5e3fc107c1beb40808f53cc7acaa | static void filter0(int32_t *dst, const int32_t *src, int32_t coeff, ptrdiff_t len)
{
int i;
for (i = 0; i < len; i++)
dst[i] -= mul22(src[i], coeff);
}
| {
"code": [
"static void filter0(int32_t *dst, const int32_t *src, int32_t coeff, ptrdiff_t len)"
],
"line_no": [
1
]
} | static void FUNC_0(int32_t *VAR_0, const int32_t *VAR_1, int32_t VAR_2, ptrdiff_t VAR_3)
{
int VAR_4;
for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++)
VAR_0[VAR_4] -= mul22(VAR_1[VAR_4], VAR_2);
}
| [
"static void FUNC_0(int32_t *VAR_0, const int32_t *VAR_1, int32_t VAR_2, ptrdiff_t VAR_3)\n{",
"int VAR_4;",
"for (VAR_4 = 0; VAR_4 < VAR_3; VAR_4++)",
"VAR_0[VAR_4] -= mul22(VAR_1[VAR_4], VAR_2);",
"}"
] | [
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
2,845 | static int encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr)
{
int i, k, channel;
DCAContext *c = avctx->priv_data;
const int16_t *samples;
int ret, real_channel = 0;
if ((ret = ff_alloc_packet2(avctx, avpkt, DCA_MAX_FRAM... | false | FFmpeg | bcaf64b605442e1622d16da89d4ec0e7730b8a8c | static int encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr)
{
int i, k, channel;
DCAContext *c = avctx->priv_data;
const int16_t *samples;
int ret, real_channel = 0;
if ((ret = ff_alloc_packet2(avctx, avpkt, DCA_MAX_FRAM... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,
const AVFrame *VAR_2, int *VAR_3)
{
int VAR_4, VAR_5, VAR_6;
DCAContext *c = VAR_0->priv_data;
const int16_t *VAR_7;
int VAR_8, VAR_9 = 0;
if ((VAR_8 = ff_alloc_packet2(VAR_0, VAR_1, DCA_MAX_FRAME_SIZE + DCA_H... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6;",
"DCAContext *c = VAR_0->priv_data;",
"const int16_t *VAR_7;",
"int VAR_8, VAR_9 = 0;",
"if ((VAR_8 = ff_alloc_packet2(VAR_0, VAR_1, DCA_MAX_FRAME_SIZE + DCA_HEADER_SIZE)))\nreturn... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
... |
2,847 | static inline void RENAME(yuv2nv12X)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
uint8_t *dest, uint8_t *uDest, int dstW, int chrDstW, int dstFormat)
{
yuv2nv12XinC(lumFilter, lumSrc, lumFilterSize,
chrFilt... | true | FFmpeg | 2da0d70d5eebe42f9fcd27ee554419ebe2a5da06 | static inline void RENAME(yuv2nv12X)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
uint8_t *dest, uint8_t *uDest, int dstW, int chrDstW, int dstFormat)
{
yuv2nv12XinC(lumFilter, lumSrc, lumFilterSize,
chrFilt... | {
"code": [
"\t\t\t\t int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,",
"\t\t\t\t uint8_t *dest, uint8_t *uDest, int dstW, int chrDstW, int dstFormat)",
"\t chrFilter, chrSrc, chrFilterSize,",
"\t dest, uDest, dstW, chrDstW, dstFormat);"
],
"line_no": [
3,
5,
1... | static inline void FUNC_0(yuv2nv12X)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
uint8_t *dest, uint8_t *uDest, int dstW, int chrDstW, int dstFormat)
{
yuv2nv12XinC(lumFilter, lumSrc, lumFilterSize,
chrFilt... | [
"static inline void FUNC_0(yuv2nv12X)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,\nint16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,\nuint8_t *dest, uint8_t *uDest, int dstW, int chrDstW, int dstFormat)\n{",
"yuv2nv12XinC(lumFilter, lumSrc, lumFilterSize,\nchrFilter, chrSrc, chr... | [
1,
1,
0
] | [
[
1,
3,
5,
7
],
[
9,
11,
13
],
[
15
]
] |
2,848 | static void thread_pool_completion_bh(void *opaque)
{
ThreadPool *pool = opaque;
ThreadPoolElement *elem, *next;
aio_context_acquire(pool->ctx);
restart:
QLIST_FOREACH_SAFE(elem, &pool->head, all, next) {
if (elem->state != THREAD_DONE) {
continue;
}
trace_thread_pool... | true | qemu | b7a745dc33a18377bb4a8dfe54d1df01ea60bf66 | static void thread_pool_completion_bh(void *opaque)
{
ThreadPool *pool = opaque;
ThreadPoolElement *elem, *next;
aio_context_acquire(pool->ctx);
restart:
QLIST_FOREACH_SAFE(elem, &pool->head, all, next) {
if (elem->state != THREAD_DONE) {
continue;
}
trace_thread_pool... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
ThreadPool *pool = VAR_0;
ThreadPoolElement *elem, *next;
aio_context_acquire(pool->ctx);
restart:
QLIST_FOREACH_SAFE(elem, &pool->head, all, next) {
if (elem->state != THREAD_DONE) {
continue;
}
trace_thread_pool_complete(pool, elem,... | [
"static void FUNC_0(void *VAR_0)\n{",
"ThreadPool *pool = VAR_0;",
"ThreadPoolElement *elem, *next;",
"aio_context_acquire(pool->ctx);",
"restart:\nQLIST_FOREACH_SAFE(elem, &pool->head, all, next) {",
"if (elem->state != THREAD_DONE) {",
"continue;",
"}",
"trace_thread_pool_complete(pool, elem, elem... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6,
7
],
[
8
],
[
9
],
[
10
],
[
11,
12
],
[
13
],
[
14
],
[
16
],
[
17,
18,
19
],
[
20
],
[
21
],
[
22
],
[
23
],
[
24
],... |
2,849 | static int yop_read_packet(AVFormatContext *s, AVPacket *pkt)
{
YopDecContext *yop = s->priv_data;
AVIOContext *pb = s->pb;
int ret;
int actual_video_data_size = yop->frame_size -
yop->audio_block_length - yop->palette_size;
yop->video_packet.stream_index... | true | FFmpeg | 551f683861bbae1002542e70dc196244a1cd24ad | static int yop_read_packet(AVFormatContext *s, AVPacket *pkt)
{
YopDecContext *yop = s->priv_data;
AVIOContext *pb = s->pb;
int ret;
int actual_video_data_size = yop->frame_size -
yop->audio_block_length - yop->palette_size;
yop->video_packet.stream_index... | {
"code": [
" yop->video_packet.data = NULL;",
" yop->video_packet.size = 0;"
],
"line_no": [
27,
29
]
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
YopDecContext *yop = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
int VAR_2;
int VAR_3 = yop->frame_size -
yop->audio_block_length - yop->palette_size;
yop->video_packet.stream_index = 1;
... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"YopDecContext *yop = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"int VAR_2;",
"int VAR_3 = yop->frame_size -\nyop->audio_block_length - yop->palette_size;",
"yop->video_packet.stream_index = 1;",
"if (yop->video_packet.data) {",... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45,
47
],
[
51
],
... |
2,850 | static int upload_texture(SDL_Texture *tex, AVFrame *frame, struct SwsContext **img_convert_ctx) {
int ret = 0;
switch (frame->format) {
case AV_PIX_FMT_YUV420P:
ret = SDL_UpdateYUVTexture(tex, NULL, frame->data[0], frame->linesize[0],
f... | true | FFmpeg | 58af48f1c3cc98afc1f25d494f197148801cf210 | static int upload_texture(SDL_Texture *tex, AVFrame *frame, struct SwsContext **img_convert_ctx) {
int ret = 0;
switch (frame->format) {
case AV_PIX_FMT_YUV420P:
ret = SDL_UpdateYUVTexture(tex, NULL, frame->data[0], frame->linesize[0],
f... | {
"code": [
" ret = SDL_UpdateTexture(tex, NULL, frame->data[0], frame->linesize[0]);"
],
"line_no": [
19
]
} | static int FUNC_0(SDL_Texture *VAR_0, AVFrame *VAR_1, struct SwsContext **VAR_2) {
int VAR_3 = 0;
switch (VAR_1->format) {
case AV_PIX_FMT_YUV420P:
VAR_3 = SDL_UpdateYUVTexture(VAR_0, NULL, VAR_1->data[0], VAR_1->linesize[0],
VAR_1->data... | [
"static int FUNC_0(SDL_Texture *VAR_0, AVFrame *VAR_1, struct SwsContext **VAR_2) {",
"int VAR_3 = 0;",
"switch (VAR_1->format) {",
"case AV_PIX_FMT_YUV420P:\nVAR_3 = SDL_UpdateYUVTexture(VAR_0, NULL, VAR_1->data[0], VAR_1->linesize[0],\nVAR_1->data[1], VAR_1->linesize[1],\nVAR_1->data[2], VAR_1->linesize[2])... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7,
9,
11,
13
],
[
15
],
[
17,
19
],
[
21
],
[
23,
27,
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[... |
2,851 | static int vorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr)
{
vorbis_enc_context *venc = avctx->priv_data;
int i, ret, need_more;
int frame_size = 1 << (venc->log2_blocksize[1] - 1);
vorbis_enc_mode *mode;
vo... | true | FFmpeg | e7af1394ecd0e7c237db34ee9c149afff37641dd | static int vorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr)
{
vorbis_enc_context *venc = avctx->priv_data;
int i, ret, need_more;
int frame_size = 1 << (venc->log2_blocksize[1] - 1);
vorbis_enc_mode *mode;
vo... | {
"code": [
" ff_bufqueue_add(avctx, &venc->bufqueue, av_frame_clone(frame));"
],
"line_no": [
27
]
} | static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,
const AVFrame *VAR_2, int *VAR_3)
{
vorbis_enc_context *venc = VAR_0->priv_data;
int VAR_9, VAR_5, VAR_6;
int VAR_7 = 1 << (venc->log2_blocksize[1] - 1);
vorbis_enc_mode *mode;
vorbis_enc_mapping *mapping... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{",
"vorbis_enc_context *venc = VAR_0->priv_data;",
"int VAR_9, VAR_5, VAR_6;",
"int VAR_7 = 1 << (venc->log2_blocksize[1] - 1);",
"vorbis_enc_mode *mode;",
"vorbis_enc_mapping *mapping;",
"PutBitContext pb;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31,
33
],
[
37
],
[
39
],
[
41,
43
],
[
49
],
[
51
],
[
53
... |
2,852 | void avfilter_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
{
void (*start_frame)(AVFilterLink *, AVFilterBufferRef *);
AVFilterPad *dst = &link_dpad(link);
FF_DPRINTF_START(NULL, start_frame); ff_dprintf_link(NULL, link, 0); dprintf(NULL, " "); ff_dprintf_ref(NULL, picref, 1);
if ... | true | FFmpeg | 5a9dd3de63db95704708350bc1c5abb74944cda2 | void avfilter_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
{
void (*start_frame)(AVFilterLink *, AVFilterBufferRef *);
AVFilterPad *dst = &link_dpad(link);
FF_DPRINTF_START(NULL, start_frame); ff_dprintf_link(NULL, link, 0); dprintf(NULL, " "); ff_dprintf_ref(NULL, picref, 1);
if ... | {
"code": [
" link->cur_buf = avfilter_default_get_video_buffer(link, dst->min_perms, link->w, link->h);"
],
"line_no": [
37
]
} | VAR_4voidVAR_4 VAR_4avfilter_start_frameVAR_4(VAR_4AVFilterLinkVAR_4 *VAR_4VAR_0VAR_4, VAR_4AVFilterBufferRefVAR_4 *VAR_4VAR_1VAR_4)
{
VAR_4voidVAR_4 (*VAR_4VAR_2VAR_4)(VAR_4AVFilterLinkVAR_4 *, VAR_4AVFilterBufferRefVAR_4 *);
VAR_4AVFilterPadVAR_4 *VAR_4dstVAR_4 = &VAR_4link_dpadVAR_4(VAR_4VAR_0VAR_4);
... | [
"VAR_4voidVAR_4 VAR_4avfilter_start_frameVAR_4(VAR_4AVFilterLinkVAR_4 *VAR_4VAR_0VAR_4, VAR_4AVFilterBufferRefVAR_4 *VAR_4VAR_1VAR_4)\n{",
"VAR_4voidVAR_4 (*VAR_4VAR_2VAR_4)(VAR_4AVFilterLinkVAR_4 *, VAR_4AVFilterBufferRefVAR_4 *);",
"VAR_4AVFilterPadVAR_4 *VAR_4dstVAR_4 = &VAR_4link_dpadVAR_4(VAR_4VAR_0VAR_4);... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15,
17
],
[
23,
25
],
[
27,
29,
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
51
],
[
53
]
] |
2,853 | static void ivshmem_check_memdev_is_busy(Object *obj, const char *name,
Object *val, Error **errp)
{
if (host_memory_backend_is_mapped(MEMORY_BACKEND(val))) {
char *path = object_get_canonical_path_component(val);
error_setg(errp, "can't use already busy... | true | qemu | 8f5d58ef2c92d7b82d9a6eeefd7c8854a183ba4a | static void ivshmem_check_memdev_is_busy(Object *obj, const char *name,
Object *val, Error **errp)
{
if (host_memory_backend_is_mapped(MEMORY_BACKEND(val))) {
char *path = object_get_canonical_path_component(val);
error_setg(errp, "can't use already busy... | {
"code": [
"static void ivshmem_check_memdev_is_busy(Object *obj, const char *name,"
],
"line_no": [
1
]
} | static void FUNC_0(Object *VAR_0, const char *VAR_1,
Object *VAR_2, Error **VAR_3)
{
if (host_memory_backend_is_mapped(MEMORY_BACKEND(VAR_2))) {
char *VAR_4 = object_get_canonical_path_component(VAR_2);
error_setg(VAR_3, "can't use already busy memdev: %... | [
"static void FUNC_0(Object *VAR_0, const char *VAR_1,\nObject *VAR_2, Error **VAR_3)\n{",
"if (host_memory_backend_is_mapped(MEMORY_BACKEND(VAR_2))) {",
"char *VAR_4 = object_get_canonical_path_component(VAR_2);",
"error_setg(VAR_3, \"can't use already busy memdev: %s\", VAR_4);",
"g_free(VAR_4);",
"} els... | [
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
2,854 | static int vorbis_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
vorbis_context *vc = avctx->priv_data;
AVFrame *frame = data;
GetBitContext *gb = &vc... | true | FFmpeg | e2c297412066e25358741a234a1d936cb55cf139 | static int vorbis_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
vorbis_context *vc = avctx->priv_data;
AVFrame *frame = data;
GetBitContext *gb = &vc... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
vorbis_context *vc = VAR_0->priv_data;
AVFrame *frame = VAR_1;
GetBitContext *gb = &vc->gb;
float *V... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"vorbis_context *vc = VAR_0->priv_data;",
"AVFrame *frame = VAR_1;",
"GetBitContext *gb = &vc->gb;",
"float *VAR_6[255];",
"int VAR_7,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
2,855 | static int qemu_balloon_status(MonitorCompletion cb, void *opaque)
{
if (!balloon_event_fn) {
return 0;
}
balloon_event_fn(balloon_opaque, 0, cb, opaque);
return 1;
}
| true | qemu | 30fb2ca603e8b8d0f02630ef18bc0d0637a88ffa | static int qemu_balloon_status(MonitorCompletion cb, void *opaque)
{
if (!balloon_event_fn) {
return 0;
}
balloon_event_fn(balloon_opaque, 0, cb, opaque);
return 1;
}
| {
"code": [
" if (!balloon_event_fn) {",
" balloon_event_fn(balloon_opaque, 0, cb, opaque);"
],
"line_no": [
5,
11
]
} | static int FUNC_0(MonitorCompletion VAR_0, void *VAR_1)
{
if (!balloon_event_fn) {
return 0;
}
balloon_event_fn(balloon_opaque, 0, VAR_0, VAR_1);
return 1;
}
| [
"static int FUNC_0(MonitorCompletion VAR_0, void *VAR_1)\n{",
"if (!balloon_event_fn) {",
"return 0;",
"}",
"balloon_event_fn(balloon_opaque, 0, VAR_0, VAR_1);",
"return 1;",
"}"
] | [
0,
1,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
2,856 | static void put_pixels_clamped4_c(const DCTELEM *block, uint8_t *restrict pixels,
int line_size)
{
int i;
uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
/* read the pixels */
for(i=0;i<4;i++) {
pixels[0] = cm[block[0]];
pixels[1] = cm[block[1]];
... | true | FFmpeg | c23acbaed40101c677dfcfbbfe0d2c230a8e8f44 | static void put_pixels_clamped4_c(const DCTELEM *block, uint8_t *restrict pixels,
int line_size)
{
int i;
uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
for(i=0;i<4;i++) {
pixels[0] = cm[block[0]];
pixels[1] = cm[block[1]];
pixels[2] = cm[bl... | {
"code": [
" uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
" pixels[0] = cm[block[0]];",
" pixels[1] = cm[block[1]];",
" pixels[2] = cm[block[2]];",
" pixels[3] = cm[block[3]];",
" uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
" pixels[0] = cm[block[0]];... | static void FUNC_0(const DCTELEM *VAR_0, uint8_t *restrict VAR_1,
int VAR_2)
{
int VAR_3;
uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
for(VAR_3=0;VAR_3<4;VAR_3++) {
VAR_1[0] = cm[VAR_0[0]];
VAR_1[1] = cm[VAR_0[1]];
VAR_1[2] = cm[VAR_0[2]]... | [
"static void FUNC_0(const DCTELEM *VAR_0, uint8_t *restrict VAR_1,\nint VAR_2)\n{",
"int VAR_3;",
"uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
"for(VAR_3=0;VAR_3<4;VAR_3++) {",
"VAR_1[0] = cm[VAR_0[0]];",
"VAR_1[1] = cm[VAR_0[1]];",
"VAR_1[2] = cm[VAR_0[2]];",
"VAR_1[3] = cm[VAR_0[3]];",
"VAR_1 += VA... | [
0,
0,
1,
0,
1,
1,
1,
1,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
2,858 | static void check_pred4x4(H264PredContext *h, uint8_t *buf0, uint8_t *buf1,
int codec, int chroma_format, int bit_depth)
{
if (chroma_format == 1) {
uint8_t *topright = buf0 + 2*16;
int pred_mode;
for (pred_mode = 0; pred_mode < 15; pred_mode++) {
... | false | FFmpeg | 515b69f8f8e9a24cfaee95d8c1f63f265d8582fe | static void check_pred4x4(H264PredContext *h, uint8_t *buf0, uint8_t *buf1,
int codec, int chroma_format, int bit_depth)
{
if (chroma_format == 1) {
uint8_t *topright = buf0 + 2*16;
int pred_mode;
for (pred_mode = 0; pred_mode < 15; pred_mode++) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(H264PredContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2,
int VAR_3, int VAR_4, int VAR_5)
{
if (VAR_4 == 1) {
uint8_t *topright = VAR_1 + 2*16;
int VAR_6;
for (VAR_6 = 0; VAR_6 < 15; VAR_6++) {
if (check_pred_func(VAR_0->pred4x4[... | [
"static void FUNC_0(H264PredContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{",
"if (VAR_4 == 1) {",
"uint8_t *topright = VAR_1 + 2*16;",
"int VAR_6;",
"for (VAR_6 = 0; VAR_6 < 15; VAR_6++) {",
"if (check_pred_func(VAR_0->pred4x4[VAR_6], \"4x4\", pred4x4_modes[VAR_3][VAR... | [
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
]
] |
2,859 | int ff_mov_iso639_to_lang(const char *lang, int mp4)
{
int i, code = 0;
/* old way, only for QT? */
for (i = 0; !mp4 && i < FF_ARRAY_ELEMS(mov_mdhd_language_map); i++) {
if (mov_mdhd_language_map[i] && !strcmp(lang, mov_mdhd_language_map[i]))
return i;
}
/* XXX:can we d... | false | FFmpeg | 2904fd398f26f0a2db99dcec54cd009826344c61 | int ff_mov_iso639_to_lang(const char *lang, int mp4)
{
int i, code = 0;
for (i = 0; !mp4 && i < FF_ARRAY_ELEMS(mov_mdhd_language_map); i++) {
if (mov_mdhd_language_map[i] && !strcmp(lang, mov_mdhd_language_map[i]))
return i;
}
if (!mp4)
return 0;
... | {
"code": [],
"line_no": []
} | int FUNC_0(const char *VAR_0, int VAR_1)
{
int VAR_2, VAR_3 = 0;
for (VAR_2 = 0; !VAR_1 && VAR_2 < FF_ARRAY_ELEMS(mov_mdhd_language_map); VAR_2++) {
if (mov_mdhd_language_map[VAR_2] && !strcmp(VAR_0, mov_mdhd_language_map[VAR_2]))
return VAR_2;
}
if (!VAR_1)
... | [
"int FUNC_0(const char *VAR_0, int VAR_1)\n{",
"int VAR_2, VAR_3 = 0;",
"for (VAR_2 = 0; !VAR_1 && VAR_2 < FF_ARRAY_ELEMS(mov_mdhd_language_map); VAR_2++) {",
"if (mov_mdhd_language_map[VAR_2] && !strcmp(VAR_0, mov_mdhd_language_map[VAR_2]))\nreturn VAR_2;",
"}",
"if (!VAR_1)\nreturn 0;",
"if (VAR_0[0] ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13,
15
],
[
17
],
[
21,
23
],
[
27,
29
],
[
33
],
[
35
],
[
37,
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
]
] |
2,860 | static int dxva2_vp9_start_frame(AVCodecContext *avctx,
av_unused const uint8_t *buffer,
av_unused uint32_t size)
{
const VP9SharedContext *h = avctx->priv_data;
AVDXVAContext *ctx = avctx->hwaccel_context;
struct vp9_dxva2_picture_cont... | false | FFmpeg | 77742c75c5503c848447814a96f16abc6b9aa5f4 | static int dxva2_vp9_start_frame(AVCodecContext *avctx,
av_unused const uint8_t *buffer,
av_unused uint32_t size)
{
const VP9SharedContext *h = avctx->priv_data;
AVDXVAContext *ctx = avctx->hwaccel_context;
struct vp9_dxva2_picture_cont... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
av_unused const VAR_1 *buffer,
av_unused uint32_t size)
{
const VP9SharedContext *VAR_2 = VAR_0->priv_data;
AVDXVAContext *ctx = VAR_0->hwaccel_context;
struct vp9_dxva2_picture_context *VAR_3 = ... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nav_unused const VAR_1 *buffer,\nav_unused uint32_t size)\n{",
"const VP9SharedContext *VAR_2 = VAR_0->priv_data;",
"AVDXVAContext *ctx = VAR_0->hwaccel_context;",
"struct vp9_dxva2_picture_context *VAR_3 = VAR_2->frames[CUR_FRAME].hwaccel_picture_private;",
"if (DX... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17,
19,
21,
23
],
[
25
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
2,861 | static void test_nop(gconstpointer data)
{
QTestState *s;
const char *machine = data;
char *args;
args = g_strdup_printf("-display none -machine %s", machine);
s = qtest_start(args);
if (s) {
qtest_quit(s);
}
g_free(args);
}
| true | qemu | 2ad645d2854746b55ddfd1d8e951f689cca5d78f | static void test_nop(gconstpointer data)
{
QTestState *s;
const char *machine = data;
char *args;
args = g_strdup_printf("-display none -machine %s", machine);
s = qtest_start(args);
if (s) {
qtest_quit(s);
}
g_free(args);
}
| {
"code": [
" args = g_strdup_printf(\"-display none -machine %s\", machine);"
],
"line_no": [
13
]
} | static void FUNC_0(gconstpointer VAR_0)
{
QTestState *s;
const char *VAR_1 = VAR_0;
char *VAR_2;
VAR_2 = g_strdup_printf("-display none -VAR_1 %s", VAR_1);
s = qtest_start(VAR_2);
if (s) {
qtest_quit(s);
}
g_free(VAR_2);
}
| [
"static void FUNC_0(gconstpointer VAR_0)\n{",
"QTestState *s;",
"const char *VAR_1 = VAR_0;",
"char *VAR_2;",
"VAR_2 = g_strdup_printf(\"-display none -VAR_1 %s\", VAR_1);",
"s = qtest_start(VAR_2);",
"if (s) {",
"qtest_quit(s);",
"}",
"g_free(VAR_2);",
"}"
] | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
2,863 | static int ass_get_duration(const uint8_t *p)
{
int sh, sm, ss, sc, eh, em, es, ec;
uint64_t start, end;
if (sscanf(p, "%*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d",
&sh, &sm, &ss, &sc, &eh, &em, &es, &ec) != 8)
return 0;
start = 3600000*sh + 60000*sm + 1000*ss + 10*sc;
end ... | true | FFmpeg | dd84efe3c76a5ebf3db254b02870edd193d1a1e7 | static int ass_get_duration(const uint8_t *p)
{
int sh, sm, ss, sc, eh, em, es, ec;
uint64_t start, end;
if (sscanf(p, "%*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d",
&sh, &sm, &ss, &sc, &eh, &em, &es, &ec) != 8)
return 0;
start = 3600000*sh + 60000*sm + 1000*ss + 10*sc;
end ... | {
"code": [
" start = 3600000*sh + 60000*sm + 1000*ss + 10*sc;",
" end = 3600000*eh + 60000*em + 1000*es + 10*ec;"
],
"line_no": [
17,
19
]
} | static int FUNC_0(const uint8_t *VAR_0)
{
int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
uint64_t start, end;
if (sscanf(VAR_0, "%*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d",
&VAR_1, &VAR_2, &VAR_3, &VAR_4, &VAR_5, &VAR_6, &VAR_7, &VAR_8) != 8)
return 0;
start = 36000... | [
"static int FUNC_0(const uint8_t *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"uint64_t start, end;",
"if (sscanf(VAR_0, \"%*[^,],%d:%d:%d%*c%d,%d:%d:%d%*c%d\",\n&VAR_1, &VAR_2, &VAR_3, &VAR_4, &VAR_5, &VAR_6, &VAR_7, &VAR_8) != 8)\nreturn 0;",
"start = 3600000*VAR_1 + 60000*V... | [
0,
0,
0,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
2,864 | static int read_sbr_grid(AACContext *ac, SpectralBandReplication *sbr,
GetBitContext *gb, SBRData *ch_data)
{
int i;
ch_data->bs_freq_res[0] = ch_data->bs_freq_res[ch_data->bs_num_env[1]];
ch_data->bs_num_env[0] = ch_data->bs_num_env[1];
ch_data->bs_amp_res = sbr->bs_amp_res_hea... | true | FFmpeg | 8a9ee4b102a0620984d9963350bb378c778acb9d | static int read_sbr_grid(AACContext *ac, SpectralBandReplication *sbr,
GetBitContext *gb, SBRData *ch_data)
{
int i;
ch_data->bs_freq_res[0] = ch_data->bs_freq_res[ch_data->bs_num_env[1]];
ch_data->bs_num_env[0] = ch_data->bs_num_env[1];
ch_data->bs_amp_res = sbr->bs_amp_res_hea... | {
"code": [],
"line_no": []
} | static int FUNC_0(AACContext *VAR_0, SpectralBandReplication *VAR_1,
GetBitContext *VAR_2, SBRData *VAR_3)
{
int VAR_4;
VAR_3->bs_freq_res[0] = VAR_3->bs_freq_res[VAR_3->bs_num_env[1]];
VAR_3->bs_num_env[0] = VAR_3->bs_num_env[1];
VAR_3->bs_amp_res = VAR_1->bs_amp_res_header;
... | [
"static int FUNC_0(AACContext *VAR_0, SpectralBandReplication *VAR_1,\nGetBitContext *VAR_2, SBRData *VAR_3)\n{",
"int VAR_4;",
"VAR_3->bs_freq_res[0] = VAR_3->bs_freq_res[VAR_3->bs_num_env[1]];",
"VAR_3->bs_num_env[0] = VAR_3->bs_num_env[1];",
"VAR_3->bs_amp_res = VAR_1->bs_amp_res_header;",
"switch (VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9,
10
],
[
11,
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17,
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
23
],... |
2,865 | static int modified_clear_reset(S390CPU *cpu)
{
S390CPUClass *scc = S390_CPU_GET_CLASS(cpu);
pause_all_vcpus();
cpu_synchronize_all_states();
cpu_full_reset_all();
io_subsystem_reset();
scc->load_normal(CPU(cpu));
cpu_synchronize_all_post_reset();
resume_all_vcpus();
ret... | true | qemu | 4cb88c3c378ae8c86c0ba53619caf6924f72239c | static int modified_clear_reset(S390CPU *cpu)
{
S390CPUClass *scc = S390_CPU_GET_CLASS(cpu);
pause_all_vcpus();
cpu_synchronize_all_states();
cpu_full_reset_all();
io_subsystem_reset();
scc->load_normal(CPU(cpu));
cpu_synchronize_all_post_reset();
resume_all_vcpus();
ret... | {
"code": [],
"line_no": []
} | static int FUNC_0(S390CPU *VAR_0)
{
S390CPUClass *scc = S390_CPU_GET_CLASS(VAR_0);
pause_all_vcpus();
cpu_synchronize_all_states();
cpu_full_reset_all();
io_subsystem_reset();
scc->load_normal(CPU(VAR_0));
cpu_synchronize_all_post_reset();
resume_all_vcpus();
return 0;
... | [
"static int FUNC_0(S390CPU *VAR_0)\n{",
"S390CPUClass *scc = S390_CPU_GET_CLASS(VAR_0);",
"pause_all_vcpus();",
"cpu_synchronize_all_states();",
"cpu_full_reset_all();",
"io_subsystem_reset();",
"scc->load_normal(CPU(VAR_0));",
"cpu_synchronize_all_post_reset();",
"resume_all_vcpus();",
"return 0;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
16
],
[
18
],
[
20
],
[
22
],
[
24
],
[
26
]
] |
2,866 | static av_cold int png_enc_init(AVCodecContext *avctx)
{
PNGEncContext *s = avctx->priv_data;
#if FF_API_CODED_FRAME
FF_DISABLE_DEPRECATION_WARNINGS
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
avctx->coded_frame->key_frame = 1;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
ff_huffyuvencdsp_i... | false | FFmpeg | 2862b63783b5556f7f3fb2d097629bc6879f833a | static av_cold int png_enc_init(AVCodecContext *avctx)
{
PNGEncContext *s = avctx->priv_data;
#if FF_API_CODED_FRAME
FF_DISABLE_DEPRECATION_WARNINGS
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
avctx->coded_frame->key_frame = 1;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
ff_huffyuvencdsp_i... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
PNGEncContext *s = avctx->priv_data;
#if FF_API_CODED_FRAME
FF_DISABLE_DEPRECATION_WARNINGS
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
avctx->coded_frame->key_frame = 1;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
ff_huffyuvencdsp_init(&s... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"PNGEncContext *s = avctx->priv_data;",
"#if FF_API_CODED_FRAME\nFF_DISABLE_DEPRECATION_WARNINGS\navctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;",
"avctx->coded_frame->key_frame = 1;",
"FF_ENABLE_DEPRECATION_WARNINGS\n#endif\nff_huffyuvencdsp_init(&... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11,
13
],
[
15
],
[
17,
19,
23
],
[
27,
29,
31
],
[
33,
35
],
[
39
],
[
41
]
] |
2,867 | static void test_smbios_ep_table(test_data *data)
{
struct smbios_entry_point *ep_table = &data->smbios_ep_table;
uint32_t addr = data->smbios_ep_addr;
ACPI_READ_ARRAY(ep_table->anchor_string, addr);
g_assert(!memcmp(ep_table->anchor_string, "_SM_", 4));
ACPI_READ_FIELD(ep_table->checksum, a... | true | qemu | 5efed5a172881f601ac3c57c22ec5c5721f895be | static void test_smbios_ep_table(test_data *data)
{
struct smbios_entry_point *ep_table = &data->smbios_ep_table;
uint32_t addr = data->smbios_ep_addr;
ACPI_READ_ARRAY(ep_table->anchor_string, addr);
g_assert(!memcmp(ep_table->anchor_string, "_SM_", 4));
ACPI_READ_FIELD(ep_table->checksum, a... | {
"code": [
"static void test_smbios_ep_table(test_data *data)",
" g_assert(!memcmp(ep_table->anchor_string, \"_SM_\", 4));",
" g_assert(!memcmp(ep_table->intermediate_anchor_string, \"_DMI_\", 5));",
" g_assert_cmpuint(ep_table->structure_table_length, >, 0);",
" g_assert_cmpuint(ep_t... | static void FUNC_0(test_data *VAR_0)
{
struct smbios_entry_point *VAR_1 = &VAR_0->smbios_ep_table;
uint32_t addr = VAR_0->smbios_ep_addr;
ACPI_READ_ARRAY(VAR_1->anchor_string, addr);
g_assert(!memcmp(VAR_1->anchor_string, "_SM_", 4));
ACPI_READ_FIELD(VAR_1->checksum, addr);
ACPI_READ_FI... | [
"static void FUNC_0(test_data *VAR_0)\n{",
"struct smbios_entry_point *VAR_1 = &VAR_0->smbios_ep_table;",
"uint32_t addr = VAR_0->smbios_ep_addr;",
"ACPI_READ_ARRAY(VAR_1->anchor_string, addr);",
"g_assert(!memcmp(VAR_1->anchor_string, \"_SM_\", 4));",
"ACPI_READ_FIELD(VAR_1->checksum, addr);",
"ACPI_RE... | [
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
1,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43... |
2,868 | static inline int svq3_mc_dir(SVQ3Context *s, int size, int mode,
int dir, int avg)
{
int i, j, k, mx, my, dx, dy, x, y;
const int part_width = ((size & 5) == 4) ? 4 : 16 >> (size & 1);
const int part_height = 16 >> ((unsigned)(size + 1) / 3);
const int extra_wid... | true | FFmpeg | a6eb006ad47beb6d5e5cc2c99f8185965209ec6b | static inline int svq3_mc_dir(SVQ3Context *s, int size, int mode,
int dir, int avg)
{
int i, j, k, mx, my, dx, dy, x, y;
const int part_width = ((size & 5) == 4) ? 4 : 16 >> (size & 1);
const int part_height = 16 >> ((unsigned)(size + 1) / 3);
const int extra_wid... | {
"code": [
" mx = s->next_pic->motion_val[0][b_xy][0] << 1;",
" my = s->next_pic->motion_val[0][b_xy][1] << 1;"
],
"line_no": [
47,
49
]
} | static inline int FUNC_0(SVQ3Context *VAR_0, int VAR_1, int VAR_2,
int VAR_3, int VAR_4)
{
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;
const int VAR_14 = ((VAR_1 & 5) == 4) ? 4 : 16 >> (VAR_1 & 1);
const int VAR_15 = 16 >> ((unsigned)(VAR_1 ... | [
"static inline int FUNC_0(SVQ3Context *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;",
"const int VAR_14 = ((VAR_1 & 5) == 4) ? 4 : 16 >> (VAR_1 & 1);",
"const int VAR_15 = 16 >> ((unsigned)(VAR_1 + 1) / 3);",
"const int... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
2,869 | static void pxa2xx_update_display(void *opaque)
{
struct pxa2xx_lcdc_s *s = (struct pxa2xx_lcdc_s *) opaque;
target_phys_addr_t fbptr;
int miny, maxy;
int ch;
if (!(s->control[0] & LCCR0_ENB))
return;
pxa2xx_descriptor_load(s);
pxa2xx_lcdc_resize(s);
miny = s->yres;... | false | qemu | b0457b69209fca3fb40a85bd54d7f27eb4bad7e7 | static void pxa2xx_update_display(void *opaque)
{
struct pxa2xx_lcdc_s *s = (struct pxa2xx_lcdc_s *) opaque;
target_phys_addr_t fbptr;
int miny, maxy;
int ch;
if (!(s->control[0] & LCCR0_ENB))
return;
pxa2xx_descriptor_load(s);
pxa2xx_lcdc_resize(s);
miny = s->yres;... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
struct pxa2xx_lcdc_s *VAR_1 = (struct pxa2xx_lcdc_s *) VAR_0;
target_phys_addr_t fbptr;
int VAR_2, VAR_3;
int VAR_4;
if (!(VAR_1->control[0] & LCCR0_ENB))
return;
pxa2xx_descriptor_load(VAR_1);
pxa2xx_lcdc_resize(VAR_1);
VAR_2 = VAR... | [
"static void FUNC_0(void *VAR_0)\n{",
"struct pxa2xx_lcdc_s *VAR_1 = (struct pxa2xx_lcdc_s *) VAR_0;",
"target_phys_addr_t fbptr;",
"int VAR_2, VAR_3;",
"int VAR_4;",
"if (!(VAR_1->control[0] & LCCR0_ENB))\nreturn;",
"pxa2xx_descriptor_load(VAR_1);",
"pxa2xx_lcdc_resize(VAR_1);",
"VAR_2 = VAR_1->yre... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
49
... |
2,870 | char *object_property_print(Object *obj, const char *name, bool human,
Error **errp)
{
StringOutputVisitor *sov;
char *string = NULL;
Error *local_err = NULL;
sov = string_output_visitor_new(human);
object_property_get(obj, string_output_get_visitor(sov), name, &... | false | qemu | 3b098d56979d2f7fd707c5be85555d114353a28d | char *object_property_print(Object *obj, const char *name, bool human,
Error **errp)
{
StringOutputVisitor *sov;
char *string = NULL;
Error *local_err = NULL;
sov = string_output_visitor_new(human);
object_property_get(obj, string_output_get_visitor(sov), name, &... | {
"code": [],
"line_no": []
} | char *FUNC_0(Object *VAR_0, const char *VAR_1, bool VAR_2,
Error **VAR_3)
{
StringOutputVisitor *sov;
char *VAR_4 = NULL;
Error *local_err = NULL;
sov = string_output_visitor_new(VAR_2);
object_property_get(VAR_0, string_output_get_visitor(sov), VAR_1, &local_err... | [
"char *FUNC_0(Object *VAR_0, const char *VAR_1, bool VAR_2,\nError **VAR_3)\n{",
"StringOutputVisitor *sov;",
"char *VAR_4 = NULL;",
"Error *local_err = NULL;",
"sov = string_output_visitor_new(VAR_2);",
"object_property_get(VAR_0, string_output_get_visitor(sov), VAR_1, &local_err);",
"if (local_err) {"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33,
35
],
[
37
],
[
39
]
] |
2,872 | static int send_sub_rect_solid(VncState *vs, int x, int y, int w, int h)
{
vnc_framebuffer_update(vs, x, y, w, h, VNC_ENCODING_TIGHT);
vnc_tight_start(vs);
vnc_raw_send_framebuffer_update(vs, x, y, w, h);
vnc_tight_stop(vs);
return send_solid_rect(vs);
}
| false | qemu | 245f7b51c0ea04fb2224b1127430a096c91aee70 | static int send_sub_rect_solid(VncState *vs, int x, int y, int w, int h)
{
vnc_framebuffer_update(vs, x, y, w, h, VNC_ENCODING_TIGHT);
vnc_tight_start(vs);
vnc_raw_send_framebuffer_update(vs, x, y, w, h);
vnc_tight_stop(vs);
return send_solid_rect(vs);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)
{
vnc_framebuffer_update(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VNC_ENCODING_TIGHT);
vnc_tight_start(VAR_0);
vnc_raw_send_framebuffer_update(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4);
vnc_tight_stop(VAR_0);
return send_sol... | [
"static int FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{",
"vnc_framebuffer_update(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VNC_ENCODING_TIGHT);",
"vnc_tight_start(VAR_0);",
"vnc_raw_send_framebuffer_update(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4);",
"vnc_tight_stop(VAR_0);",
"return send_so... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
]
] |
2,873 | static void qdict_array_split_test(void)
{
QDict *test_dict = qdict_new();
QDict *dict1, *dict2;
QList *test_list;
/*
* Test the split of
*
* {
* "1.x": 0,
* "3.y": 1,
* "0.a": 42,
* "o.o": 7,
* "0.b": 23
* }
*
... | false | qemu | 7841c768846dcfa5a162ff46a8e98429aa0d2238 | static void qdict_array_split_test(void)
{
QDict *test_dict = qdict_new();
QDict *dict1, *dict2;
QList *test_list;
qdict_put(test_dict, "1.x", qint_from_int(0));
qdict_put(test_dict, "3.y", qint_from_int(1));
qdic... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
QDict *test_dict = qdict_new();
QDict *dict1, *dict2;
QList *test_list;
qdict_put(test_dict, "1.x", qint_from_int(0));
qdict_put(test_dict, "3.y", qint_from_int(1));
qdict_put(test_dict,... | [
"static void FUNC_0(void)\n{",
"QDict *test_dict = qdict_new();",
"QDict *dict1, *dict2;",
"QList *test_list;",
"qdict_put(test_dict, \"1.x\", qint_from_int(0));",
"qdict_put(test_dict, \"3.y\", qint_from_int(1));",
"qdict_put(test_dict, \"0.a\", qint_from_int(42));",
"qdict_put(test_dict, \"o.o\", qi... | [
0,
0,
0,
0,
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
],
[
83
],
[
85
],
[
87
],
[
89
],
[
91
],
[
95
],
[
99
],
[
101
],
[
105
],
[
107
],
[
109
],
[
113
],
[
117
],
[
119
],
[
123
],
[... |
2,874 | static target_ulong disas_insn(CPUX86State *env, DisasContext *s,
target_ulong pc_start)
{
int b, prefixes, aflag, dflag;
int shift, ot;
int modrm, reg, rm, mod, reg_addr, op, opreg, offset_addr, val;
target_ulong next_eip, tval;
int rex_w, rex_r;
if (unl... | false | qemu | 5bdb91b0dd66b7e0fdfc801601c433ad4752aeb0 | static target_ulong disas_insn(CPUX86State *env, DisasContext *s,
target_ulong pc_start)
{
int b, prefixes, aflag, dflag;
int shift, ot;
int modrm, reg, rm, mod, reg_addr, op, opreg, offset_addr, val;
target_ulong next_eip, tval;
int rex_w, rex_r;
if (unl... | {
"code": [],
"line_no": []
} | static target_ulong FUNC_0(CPUX86State *env, DisasContext *s,
target_ulong pc_start)
{
int VAR_0, VAR_1, VAR_2, VAR_3;
int VAR_4, VAR_5;
int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_17, VAR_12, VAR_13, VAR_18;
target_ulong next_eip, tval;
int VAR_15, VAR_16;
... | [
"static target_ulong FUNC_0(CPUX86State *env, DisasContext *s,\ntarget_ulong pc_start)\n{",
"int VAR_0, VAR_1, VAR_2, VAR_3;",
"int VAR_4, VAR_5;",
"int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_17, VAR_12, VAR_13, VAR_18;",
"target_ulong next_eip, tval;",
"int VAR_15, VAR_16;",
"if (unlikely(qemu_logleve... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
... |
2,875 | int qemu_timedate_diff(struct tm *tm)
{
time_t seconds;
if (rtc_date_offset == -1)
if (rtc_utc)
seconds = mktimegm(tm);
else {
struct tm tmp = *tm;
tmp.tm_isdst = -1; /* use timezone to figure it out */
seconds = mktime(&tmp);
}
e... | false | qemu | 2ed1ebcf65edf6757d8904000889ce52cc0a9d1b | int qemu_timedate_diff(struct tm *tm)
{
time_t seconds;
if (rtc_date_offset == -1)
if (rtc_utc)
seconds = mktimegm(tm);
else {
struct tm tmp = *tm;
tmp.tm_isdst = -1;
seconds = mktime(&tmp);
}
else
seconds = mktimegm(tm)... | {
"code": [],
"line_no": []
} | int FUNC_0(struct VAR_0 *VAR_0)
{
time_t seconds;
if (rtc_date_offset == -1)
if (rtc_utc)
seconds = mktimegm(VAR_0);
else {
struct VAR_0 VAR_1 = *VAR_0;
VAR_1.tm_isdst = -1;
seconds = mktime(&VAR_1);
}
else
seconds = mkt... | [
"int FUNC_0(struct VAR_0 *VAR_0)\n{",
"time_t seconds;",
"if (rtc_date_offset == -1)\nif (rtc_utc)\nseconds = mktimegm(VAR_0);",
"else {",
"struct VAR_0 VAR_1 = *VAR_0;",
"VAR_1.tm_isdst = -1;",
"seconds = mktime(&VAR_1);",
"}",
"else\nseconds = mktimegm(VAR_0) + rtc_date_offset;",
"return seconds... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
31
],
[
33
]
] |
2,876 | VTDAddressSpace *vtd_find_add_as(IntelIOMMUState *s, PCIBus *bus, int devfn)
{
uintptr_t key = (uintptr_t)bus;
VTDBus *vtd_bus = g_hash_table_lookup(s->vtd_as_by_busptr, &key);
VTDAddressSpace *vtd_dev_as;
char name[128];
if (!vtd_bus) {
uintptr_t *new_key = g_malloc(sizeof(*new_key... | false | qemu | 558e0024a428a8f21605dc8aa026612ccc0f14cd | VTDAddressSpace *vtd_find_add_as(IntelIOMMUState *s, PCIBus *bus, int devfn)
{
uintptr_t key = (uintptr_t)bus;
VTDBus *vtd_bus = g_hash_table_lookup(s->vtd_as_by_busptr, &key);
VTDAddressSpace *vtd_dev_as;
char name[128];
if (!vtd_bus) {
uintptr_t *new_key = g_malloc(sizeof(*new_key... | {
"code": [],
"line_no": []
} | VTDAddressSpace *FUNC_0(IntelIOMMUState *s, PCIBus *bus, int devfn)
{
uintptr_t key = (uintptr_t)bus;
VTDBus *vtd_bus = g_hash_table_lookup(s->vtd_as_by_busptr, &key);
VTDAddressSpace *vtd_dev_as;
char VAR_0[128];
if (!vtd_bus) {
uintptr_t *new_key = g_malloc(sizeof(*new_key));
... | [
"VTDAddressSpace *FUNC_0(IntelIOMMUState *s, PCIBus *bus, int devfn)\n{",
"uintptr_t key = (uintptr_t)bus;",
"VTDBus *vtd_bus = g_hash_table_lookup(s->vtd_as_by_busptr, &key);",
"VTDAddressSpace *vtd_dev_as;",
"char VAR_0[128];",
"if (!vtd_bus) {",
"uintptr_t *new_key = g_malloc(sizeof(*new_key));",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[... |
2,877 | void qemu_announce_self(void)
{
static QEMUTimer *timer;
timer = qemu_new_timer(rt_clock, qemu_announce_self_once, &timer);
qemu_announce_self_once(&timer);
}
| false | qemu | 7bd427d801e1e3293a634d3c83beadaa90ffb911 | void qemu_announce_self(void)
{
static QEMUTimer *timer;
timer = qemu_new_timer(rt_clock, qemu_announce_self_once, &timer);
qemu_announce_self_once(&timer);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
static QEMUTimer *VAR_0;
VAR_0 = qemu_new_timer(rt_clock, qemu_announce_self_once, &VAR_0);
qemu_announce_self_once(&VAR_0);
}
| [
"void FUNC_0(void)\n{",
"static QEMUTimer *VAR_0;",
"VAR_0 = qemu_new_timer(rt_clock, qemu_announce_self_once, &VAR_0);",
"qemu_announce_self_once(&VAR_0);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
2,878 | static int mpegts_probe(AVProbeData *p)
{
const int size = p->buf_size;
int maxscore = 0;
int sumscore = 0;
int i;
int check_count = size / TS_FEC_PACKET_SIZE;
#define CHECK_COUNT 10
#define CHECK_BLOCK 100
if (check_count < CHECK_COUNT)
return 0;
for (i = 0; i<check_c... | false | FFmpeg | 229843aa359ae0c9519977d7fa952688db63f559 | static int mpegts_probe(AVProbeData *p)
{
const int size = p->buf_size;
int maxscore = 0;
int sumscore = 0;
int i;
int check_count = size / TS_FEC_PACKET_SIZE;
#define CHECK_COUNT 10
#define CHECK_BLOCK 100
if (check_count < CHECK_COUNT)
return 0;
for (i = 0; i<check_c... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVProbeData *VAR_0)
{
const int VAR_1 = VAR_0->buf_size;
int VAR_2 = 0;
int VAR_3 = 0;
int VAR_4;
int VAR_5 = VAR_1 / TS_FEC_PACKET_SIZE;
#define CHECK_COUNT 10
#define CHECK_BLOCK 100
if (VAR_5 < CHECK_COUNT)
return 0;
for (VAR_4 = 0; VAR_4<VAR_5; VA... | [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"const int VAR_1 = VAR_0->buf_size;",
"int VAR_2 = 0;",
"int VAR_3 = 0;",
"int VAR_4;",
"int VAR_5 = VAR_1 / TS_FEC_PACKET_SIZE;",
"#define CHECK_COUNT 10\n#define CHECK_BLOCK 100\nif (VAR_5 < CHECK_COUNT)\nreturn 0;",
"for (VAR_4 = 0; VAR_4<VAR_5; VAR_4+=CH... | [
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
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[... |
2,879 | static void do_commit(int argc, const char **argv)
{
int i;
for (i = 0; i < MAX_DISKS; i++) {
if (bs_table[i])
bdrv_commit(bs_table[i]);
}
}
| false | qemu | 9307c4c1d93939db9b04117b654253af5113dc21 | static void do_commit(int argc, const char **argv)
{
int i;
for (i = 0; i < MAX_DISKS; i++) {
if (bs_table[i])
bdrv_commit(bs_table[i]);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(int VAR_0, const char **VAR_1)
{
int VAR_2;
for (VAR_2 = 0; VAR_2 < MAX_DISKS; VAR_2++) {
if (bs_table[VAR_2])
bdrv_commit(bs_table[VAR_2]);
}
}
| [
"static void FUNC_0(int VAR_0, const char **VAR_1)\n{",
"int VAR_2;",
"for (VAR_2 = 0; VAR_2 < MAX_DISKS; VAR_2++) {",
"if (bs_table[VAR_2])\nbdrv_commit(bs_table[VAR_2]);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
17
]
] |
2,881 | static int ppc_hash32_pp_check(int key, int pp, int nx)
{
int access;
/* Compute access rights */
access = 0;
if (key == 0) {
switch (pp) {
case 0x0:
case 0x1:
case 0x2:
access |= PAGE_WRITE;
/* No break here */
case 0x3:
... | false | qemu | e01b444523e2b0c663b42b3e8f44ef48a6153051 | static int ppc_hash32_pp_check(int key, int pp, int nx)
{
int access;
access = 0;
if (key == 0) {
switch (pp) {
case 0x0:
case 0x1:
case 0x2:
access |= PAGE_WRITE;
case 0x3:
access |= PAGE_READ;
bre... | {
"code": [],
"line_no": []
} | static int FUNC_0(int VAR_0, int VAR_1, int VAR_2)
{
int VAR_3;
VAR_3 = 0;
if (VAR_0 == 0) {
switch (VAR_1) {
case 0x0:
case 0x1:
case 0x2:
VAR_3 |= PAGE_WRITE;
case 0x3:
VAR_3 |= PAGE_READ;
break;
... | [
"static int FUNC_0(int VAR_0, int VAR_1, int VAR_2)\n{",
"int VAR_3;",
"VAR_3 = 0;",
"if (VAR_0 == 0) {",
"switch (VAR_1) {",
"case 0x0:\ncase 0x1:\ncase 0x2:\nVAR_3 |= PAGE_WRITE;",
"case 0x3:\nVAR_3 |= PAGE_READ;",
"break;",
"}",
"} else {",
"switch (VAR_1) {",
"case 0x0:\nVAR_3 = 0;",
"br... | [
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
],
[
11
],
[
13
],
[
15
],
[
17,
19,
21,
23
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47,
49
],
[
51
],
[
53,
5... |
2,882 | static void tpm_tis_mmio_write_intern(void *opaque, hwaddr addr,
uint64_t val, unsigned size,
bool hw_access)
{
TPMState *s = opaque;
TPMTISEmuState *tis = &s->s.tis;
uint16_t off = addr & 0xffc;
uint8_t shift = (addr & 0... | false | qemu | fd859081453f94c3cbd6527289e41b7fddbf645f | static void tpm_tis_mmio_write_intern(void *opaque, hwaddr addr,
uint64_t val, unsigned size,
bool hw_access)
{
TPMState *s = opaque;
TPMTISEmuState *tis = &s->s.tis;
uint16_t off = addr & 0xffc;
uint8_t shift = (addr & 0... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, hwaddr VAR_1,
uint64_t VAR_2, unsigned VAR_3,
bool VAR_4)
{
TPMState *s = VAR_0;
TPMTISEmuState *tis = &s->s.tis;
uint16_t off = VAR_1 & 0xffc;
uint8_t shift = (VAR_1 & 0x3) * 8;
uint8... | [
"static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3,\nbool VAR_4)\n{",
"TPMState *s = VAR_0;",
"TPMTISEmuState *tis = &s->s.tis;",
"uint16_t off = VAR_1 & 0xffc;",
"uint8_t shift = (VAR_1 & 0x3) * 8;",
"uint8_t locty = tpm_tis_locality_from_addr(VAR_1);",
"uint8_t active_locty... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
51
... |
2,883 | int smbios_entry_add(const char *t)
{
char buf[1024];
if (get_param_value(buf, sizeof(buf), "file", t)) {
struct smbios_structure_header *header;
struct smbios_table *table;
int size = get_image_size(buf);
if (size < sizeof(struct smbios_structure_header)) {
... | false | qemu | 09c0848e52d9f06160c0f3fd04fb4fc521370c2a | int smbios_entry_add(const char *t)
{
char buf[1024];
if (get_param_value(buf, sizeof(buf), "file", t)) {
struct smbios_structure_header *header;
struct smbios_table *table;
int size = get_image_size(buf);
if (size < sizeof(struct smbios_structure_header)) {
... | {
"code": [],
"line_no": []
} | int FUNC_0(const char *VAR_0)
{
char VAR_1[1024];
if (get_param_value(VAR_1, sizeof(VAR_1), "file", VAR_0)) {
struct smbios_structure_header *VAR_2;
struct smbios_table *VAR_3;
int VAR_4 = get_image_size(VAR_1);
if (VAR_4 < sizeof(struct smbios_structure_header)) {
... | [
"int FUNC_0(const char *VAR_0)\n{",
"char VAR_1[1024];",
"if (get_param_value(VAR_1, sizeof(VAR_1), \"file\", VAR_0)) {",
"struct smbios_structure_header *VAR_2;",
"struct smbios_table *VAR_3;",
"int VAR_4 = get_image_size(VAR_1);",
"if (VAR_4 < sizeof(struct smbios_structure_header)) {",
"fprintf(std... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
51
],
... |
2,885 | void do_mouse_set(Monitor *mon, const QDict *qdict)
{
QemuInputHandlerState *s;
int index = qdict_get_int(qdict, "index");
int found = 0;
QTAILQ_FOREACH(s, &handlers, node) {
if (s->id == index) {
found = 1;
qemu_input_handler_activate(s);
break;
... | false | qemu | 0419f78fae1d70bb5de0d44be62ec9741c5a742b | void do_mouse_set(Monitor *mon, const QDict *qdict)
{
QemuInputHandlerState *s;
int index = qdict_get_int(qdict, "index");
int found = 0;
QTAILQ_FOREACH(s, &handlers, node) {
if (s->id == index) {
found = 1;
qemu_input_handler_activate(s);
break;
... | {
"code": [],
"line_no": []
} | void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
QemuInputHandlerState *s;
int VAR_2 = qdict_get_int(VAR_1, "VAR_2");
int VAR_3 = 0;
QTAILQ_FOREACH(s, &handlers, node) {
if (s->id == VAR_2) {
VAR_3 = 1;
qemu_input_handler_activate(s);
break;
... | [
"void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"QemuInputHandlerState *s;",
"int VAR_2 = qdict_get_int(VAR_1, \"VAR_2\");",
"int VAR_3 = 0;",
"QTAILQ_FOREACH(s, &handlers, node) {",
"if (s->id == VAR_2) {",
"VAR_3 = 1;",
"qemu_input_handler_activate(s);",
"break;",
"}",
"}",
"if (!VAR_3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
]
] |
2,886 | static bool msix_is_masked(PCIDevice *dev, int vector)
{
return msix_vector_masked(dev, vector, dev->msix_function_masked);
}
| false | qemu | 70f8ee395afda6d96b15cb9a5b311af7720dded0 | static bool msix_is_masked(PCIDevice *dev, int vector)
{
return msix_vector_masked(dev, vector, dev->msix_function_masked);
}
| {
"code": [],
"line_no": []
} | static bool FUNC_0(PCIDevice *dev, int vector)
{
return msix_vector_masked(dev, vector, dev->msix_function_masked);
}
| [
"static bool FUNC_0(PCIDevice *dev, int vector)\n{",
"return msix_vector_masked(dev, vector, dev->msix_function_masked);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
2,887 | static int acpi_checksum(const uint8_t *data, int len)
{
int sum, i;
sum = 0;
for(i = 0; i < len; i++)
sum += data[i];
return (-sum) & 0xff;
}
| false | qemu | 104bf02eb50e080ac9d0de5905f80f9a09730154 | static int acpi_checksum(const uint8_t *data, int len)
{
int sum, i;
sum = 0;
for(i = 0; i < len; i++)
sum += data[i];
return (-sum) & 0xff;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(const uint8_t *VAR_0, int VAR_1)
{
int VAR_2, VAR_3;
VAR_2 = 0;
for(VAR_3 = 0; VAR_3 < VAR_1; VAR_3++)
VAR_2 += VAR_0[VAR_3];
return (-VAR_2) & 0xff;
}
| [
"static int FUNC_0(const uint8_t *VAR_0, int VAR_1)\n{",
"int VAR_2, VAR_3;",
"VAR_2 = 0;",
"for(VAR_3 = 0; VAR_3 < VAR_1; VAR_3++)",
"VAR_2 += VAR_0[VAR_3];",
"return (-VAR_2) & 0xff;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
2,888 | static inline void load_seg_cache_raw_dt(SegmentCache *sc, uint32_t e1, uint32_t e2)
{
sc->base = get_seg_base(e1, e2);
sc->limit = get_seg_limit(e1, e2);
sc->flags = e2;
}
| false | qemu | 7e84c2498f0ff3999937d18d1e9abaa030400000 | static inline void load_seg_cache_raw_dt(SegmentCache *sc, uint32_t e1, uint32_t e2)
{
sc->base = get_seg_base(e1, e2);
sc->limit = get_seg_limit(e1, e2);
sc->flags = e2;
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(SegmentCache *VAR_0, uint32_t VAR_1, uint32_t VAR_2)
{
VAR_0->base = get_seg_base(VAR_1, VAR_2);
VAR_0->limit = get_seg_limit(VAR_1, VAR_2);
VAR_0->flags = VAR_2;
}
| [
"static inline void FUNC_0(SegmentCache *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{",
"VAR_0->base = get_seg_base(VAR_1, VAR_2);",
"VAR_0->limit = get_seg_limit(VAR_1, VAR_2);",
"VAR_0->flags = VAR_2;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
2,889 | static inline int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
int n, int coded, int intra, int rvlc)
{
int level, i, last, run;
int dc_pred_dir;
RLTable * rl;
RL_VLC_ELEM * rl_vlc;
const uint8_t * scan_table;
int qmul, qadd;
//Note intra &... | false | FFmpeg | 7f12a9780e2129b788a42574f8e71dc8c22e86d1 | static inline int mpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
int n, int coded, int intra, int rvlc)
{
int level, i, last, run;
int dc_pred_dir;
RLTable * rl;
RL_VLC_ELEM * rl_vlc;
const uint8_t * scan_table;
int qmul, qadd;
if(int... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(MpegEncContext * VAR_0, DCTELEM * VAR_1,
int VAR_2, int VAR_3, int VAR_4, int VAR_5)
{
int VAR_6, VAR_7, VAR_8, VAR_9;
int VAR_10;
RLTable * rl;
RL_VLC_ELEM * rl_vlc;
const uint8_t * VAR_11;
int VAR_12, VAR_13;
if(VAR_... | [
"static inline int FUNC_0(MpegEncContext * VAR_0, DCTELEM * VAR_1,\nint VAR_2, int VAR_3, int VAR_4, int VAR_5)\n{",
"int VAR_6, VAR_7, VAR_8, VAR_9;",
"int VAR_10;",
"RLTable * rl;",
"RL_VLC_ELEM * rl_vlc;",
"const uint8_t * VAR_11;",
"int VAR_12, VAR_13;",
"if(VAR_4) {",
"if(VAR_0->qscale < VAR_0-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[
51
... |
2,890 | static int ea_probe(AVProbeData *p)
{
if (p->buf_size < 4)
return 0;
if (AV_RL32(&p->buf[0]) != SCHl_TAG)
return 0;
return AVPROBE_SCORE_MAX;
}
| false | FFmpeg | 87e8788680e16c51f6048af26f3f7830c35207a5 | static int ea_probe(AVProbeData *p)
{
if (p->buf_size < 4)
return 0;
if (AV_RL32(&p->buf[0]) != SCHl_TAG)
return 0;
return AVPROBE_SCORE_MAX;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(AVProbeData *VAR_0)
{
if (VAR_0->buf_size < 4)
return 0;
if (AV_RL32(&VAR_0->buf[0]) != SCHl_TAG)
return 0;
return AVPROBE_SCORE_MAX;
}
| [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"if (VAR_0->buf_size < 4)\nreturn 0;",
"if (AV_RL32(&VAR_0->buf[0]) != SCHl_TAG)\nreturn 0;",
"return AVPROBE_SCORE_MAX;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11,
13
],
[
17
],
[
19
]
] |
2,891 | static int64_t ratelimit_calculate_delay(RateLimit *limit, uint64_t n)
{
int64_t delay_ns = 0;
int64_t now = qemu_get_clock_ns(rt_clock);
if (limit->next_slice_time < now) {
limit->next_slice_time = now + SLICE_TIME;
limit->dispatched = 0;
}
if (limit->dispatched + n > limi... | false | qemu | b21d677ee9efe431a4acc653a8cfb12650e44cec | static int64_t ratelimit_calculate_delay(RateLimit *limit, uint64_t n)
{
int64_t delay_ns = 0;
int64_t now = qemu_get_clock_ns(rt_clock);
if (limit->next_slice_time < now) {
limit->next_slice_time = now + SLICE_TIME;
limit->dispatched = 0;
}
if (limit->dispatched + n > limi... | {
"code": [],
"line_no": []
} | static int64_t FUNC_0(RateLimit *limit, uint64_t n)
{
int64_t delay_ns = 0;
int64_t now = qemu_get_clock_ns(rt_clock);
if (limit->next_slice_time < now) {
limit->next_slice_time = now + SLICE_TIME;
limit->dispatched = 0;
}
if (limit->dispatched + n > limit->slice_quota) {
... | [
"static int64_t FUNC_0(RateLimit *limit, uint64_t n)\n{",
"int64_t delay_ns = 0;",
"int64_t now = qemu_get_clock_ns(rt_clock);",
"if (limit->next_slice_time < now) {",
"limit->next_slice_time = now + SLICE_TIME;",
"limit->dispatched = 0;",
"}",
"if (limit->dispatched + n > limit->slice_quota) {",
"d... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
2,893 | static uint32_t iommu_mem_readw(void *opaque, target_phys_addr_t addr)
{
IOMMUState *s = opaque;
target_phys_addr_t saddr;
uint32_t ret;
saddr = (addr - s->addr) >> 2;
switch (saddr) {
default:
ret = s->regs[saddr];
break;
case IOMMU_AFAR:
case IOMMU_AFSR:
... | false | qemu | 7c560456707bfe53eb1728fcde759be7d9418b62 | static uint32_t iommu_mem_readw(void *opaque, target_phys_addr_t addr)
{
IOMMUState *s = opaque;
target_phys_addr_t saddr;
uint32_t ret;
saddr = (addr - s->addr) >> 2;
switch (saddr) {
default:
ret = s->regs[saddr];
break;
case IOMMU_AFAR:
case IOMMU_AFSR:
... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)
{
IOMMUState *s = opaque;
target_phys_addr_t saddr;
uint32_t ret;
saddr = (addr - s->addr) >> 2;
switch (saddr) {
default:
ret = s->regs[saddr];
break;
case IOMMU_AFAR:
case IOMMU_AFSR:
re... | [
"static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{",
"IOMMUState *s = opaque;",
"target_phys_addr_t saddr;",
"uint32_t ret;",
"saddr = (addr - s->addr) >> 2;",
"switch (saddr) {",
"default:\nret = s->regs[saddr];",
"break;",
"case IOMMU_AFAR:\ncase IOMMU_AFSR:\nret = s->regs[saddr];",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19
],
[
21
],
[
23,
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
2,894 | static void create_cpu_model_list(ObjectClass *klass, void *opaque)
{
struct CpuDefinitionInfoListData *cpu_list_data = opaque;
CpuDefinitionInfoList **cpu_list = &cpu_list_data->list;
CpuDefinitionInfoList *entry;
CpuDefinitionInfo *info;
char *name = g_strdup(object_class_get_name(klass));
... | false | qemu | e555cbe78d59f09f7e7db7703d1e91b95f2743c0 | static void create_cpu_model_list(ObjectClass *klass, void *opaque)
{
struct CpuDefinitionInfoListData *cpu_list_data = opaque;
CpuDefinitionInfoList **cpu_list = &cpu_list_data->list;
CpuDefinitionInfoList *entry;
CpuDefinitionInfo *info;
char *name = g_strdup(object_class_get_name(klass));
... | {
"code": [],
"line_no": []
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
struct CpuDefinitionInfoListData *VAR_2 = VAR_1;
CpuDefinitionInfoList **cpu_list = &VAR_2->list;
CpuDefinitionInfoList *entry;
CpuDefinitionInfo *info;
char *VAR_3 = g_strdup(object_class_get_name(VAR_0));
S390CPUClass *scc = S390_CPU... | [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"struct CpuDefinitionInfoListData *VAR_2 = VAR_1;",
"CpuDefinitionInfoList **cpu_list = &VAR_2->list;",
"CpuDefinitionInfoList *entry;",
"CpuDefinitionInfo *info;",
"char *VAR_3 = g_strdup(object_class_get_name(VAR_0));",
"S390CPUClass *scc = S39... | [
0,
0,
0,
0,
0,
0,
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
],
[
45
],
[
47
... |
2,896 | static int kvm_mips_put_fpu_registers(CPUState *cs, int level)
{
MIPSCPU *cpu = MIPS_CPU(cs);
CPUMIPSState *env = &cpu->env;
int err, ret = 0;
unsigned int i;
/* Only put FPU state if we're emulating a CPU with an FPU */
if (env->CP0_Config1 & (1 << CP0C1_FP)) {
/* FPU Control ... | false | qemu | bee62662a312b99b4418b558a99b3963a4cbff07 | static int kvm_mips_put_fpu_registers(CPUState *cs, int level)
{
MIPSCPU *cpu = MIPS_CPU(cs);
CPUMIPSState *env = &cpu->env;
int err, ret = 0;
unsigned int i;
if (env->CP0_Config1 & (1 << CP0C1_FP)) {
if (level == KVM_PUT_FULL_STATE) {
err = kvm_mips_put... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUState *VAR_0, int VAR_1)
{
MIPSCPU *cpu = MIPS_CPU(VAR_0);
CPUMIPSState *env = &cpu->env;
int VAR_2, VAR_3 = 0;
unsigned int VAR_4;
if (env->CP0_Config1 & (1 << CP0C1_FP)) {
if (VAR_1 == KVM_PUT_FULL_STATE) {
VAR_2 = kvm_mips_put_one... | [
"static int FUNC_0(CPUState *VAR_0, int VAR_1)\n{",
"MIPSCPU *cpu = MIPS_CPU(VAR_0);",
"CPUMIPSState *env = &cpu->env;",
"int VAR_2, VAR_3 = 0;",
"unsigned int VAR_4;",
"if (env->CP0_Config1 & (1 << CP0C1_FP)) {",
"if (VAR_1 == KVM_PUT_FULL_STATE) {",
"VAR_2 = kvm_mips_put_one_ureg(VAR_0, KVM_REG_MIPS... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
53
... |
2,897 | void qemu_free(void *ptr)
{
free(ptr);
}
| false | qemu | 17e2377abf16c3951d7d34521ceade4d7dc31d01 | void qemu_free(void *ptr)
{
free(ptr);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void *VAR_0)
{
free(VAR_0);
}
| [
"void FUNC_0(void *VAR_0)\n{",
"free(VAR_0);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
2,898 | static void v9fs_mknod(void *opaque)
{
int mode;
gid_t gid;
int32_t fid;
V9fsQID qid;
int err = 0;
int major, minor;
size_t offset = 7;
V9fsString name;
struct stat stbuf;
V9fsString fullname;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = p... | false | qemu | 02cb7f3a256517cbf3136caff2863fbafc57b540 | static void v9fs_mknod(void *opaque)
{
int mode;
gid_t gid;
int32_t fid;
V9fsQID qid;
int err = 0;
int major, minor;
size_t offset = 7;
V9fsString name;
struct stat stbuf;
V9fsString fullname;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = p... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
int VAR_1;
gid_t gid;
int32_t fid;
V9fsQID qid;
int VAR_2 = 0;
int VAR_3, VAR_4;
size_t offset = 7;
V9fsString name;
struct stat VAR_5;
V9fsString fullname;
V9fsFidState *fidp;
V9fsPDU *pdu = VAR_0;
V9fsState *s = pdu-... | [
"static void FUNC_0(void *VAR_0)\n{",
"int VAR_1;",
"gid_t gid;",
"int32_t fid;",
"V9fsQID qid;",
"int VAR_2 = 0;",
"int VAR_3, VAR_4;",
"size_t offset = 7;",
"V9fsString name;",
"struct stat VAR_5;",
"V9fsString fullname;",
"V9fsFidState *fidp;",
"V9fsPDU *pdu = VAR_0;",
"V9fsState *s = 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,
3
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37,
39
],
[
43
],
[
45
],
[
47
],
... |
2,899 | static void intel_hda_set_st_ctl(IntelHDAState *d, const IntelHDAReg *reg, uint32_t old)
{
bool output = reg->stream >= 4;
IntelHDAStream *st = d->st + reg->stream;
if (st->ctl & 0x01) {
/* reset */
dprint(d, 1, "st #%d: reset\n", reg->stream);
st->ctl = 0;
}
if ((... | false | qemu | a2554a334a92db72547a8d15e9d00dc3d37dd3a1 | static void intel_hda_set_st_ctl(IntelHDAState *d, const IntelHDAReg *reg, uint32_t old)
{
bool output = reg->stream >= 4;
IntelHDAStream *st = d->st + reg->stream;
if (st->ctl & 0x01) {
dprint(d, 1, "st #%d: reset\n", reg->stream);
st->ctl = 0;
}
if ((st->ctl & 0... | {
"code": [],
"line_no": []
} | static void FUNC_0(IntelHDAState *VAR_0, const IntelHDAReg *VAR_1, uint32_t VAR_2)
{
bool output = VAR_1->stream >= 4;
IntelHDAStream *st = VAR_0->st + VAR_1->stream;
if (st->ctl & 0x01) {
dprint(VAR_0, 1, "st #%VAR_0: reset\n", VAR_1->stream);
st->ctl = 0;
}
if (... | [
"static void FUNC_0(IntelHDAState *VAR_0, const IntelHDAReg *VAR_1, uint32_t VAR_2)\n{",
"bool output = VAR_1->stream >= 4;",
"IntelHDAStream *st = VAR_0->st + VAR_1->stream;",
"if (st->ctl & 0x01) {",
"dprint(VAR_0, 1, \"st #%VAR_0: reset\\n\", VAR_1->stream);",
"st->ctl = 0;",
"}",
"if ((st->ctl & 0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
... |
2,900 | static void vnc_listen_read(void *opaque)
{
VncDisplay *vs = opaque;
struct sockaddr_in addr;
socklen_t addrlen = sizeof(addr);
/* Catch-up */
vga_hw_update();
int csock = qemu_accept(vs->lsock, (struct sockaddr *)&addr, &addrlen);
if (csock != -1) {
vnc_connect(vs, csoc... | false | qemu | 7e7e2ebc942da8285931ceabf12823e165dced8b | static void vnc_listen_read(void *opaque)
{
VncDisplay *vs = opaque;
struct sockaddr_in addr;
socklen_t addrlen = sizeof(addr);
vga_hw_update();
int csock = qemu_accept(vs->lsock, (struct sockaddr *)&addr, &addrlen);
if (csock != -1) {
vnc_connect(vs, csock);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
VncDisplay *vs = VAR_0;
struct sockaddr_in VAR_1;
socklen_t addrlen = sizeof(VAR_1);
vga_hw_update();
int VAR_2 = qemu_accept(vs->lsock, (struct sockaddr *)&VAR_1, &addrlen);
if (VAR_2 != -1) {
vnc_connect(vs, VAR_2);
}
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"VncDisplay *vs = VAR_0;",
"struct sockaddr_in VAR_1;",
"socklen_t addrlen = sizeof(VAR_1);",
"vga_hw_update();",
"int VAR_2 = qemu_accept(vs->lsock, (struct sockaddr *)&VAR_1, &addrlen);",
"if (VAR_2 != -1) {",
"vnc_connect(vs, VAR_2);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
2,901 | static inline void int8x8_fmul_int32(DCADSPContext *dsp, float *dst,
const int8_t *src, int scale)
{
dsp->int8x8_fmul_int32(dst, src, scale);
}
| false | FFmpeg | 4cb6964244fd6c099383d8b7e99731e72cc844b9 | static inline void int8x8_fmul_int32(DCADSPContext *dsp, float *dst,
const int8_t *src, int scale)
{
dsp->int8x8_fmul_int32(dst, src, scale);
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(DCADSPContext *VAR_0, float *VAR_1,
const int8_t *VAR_2, int VAR_3)
{
VAR_0->FUNC_0(VAR_1, VAR_2, VAR_3);
}
| [
"static inline void FUNC_0(DCADSPContext *VAR_0, float *VAR_1,\nconst int8_t *VAR_2, int VAR_3)\n{",
"VAR_0->FUNC_0(VAR_1, VAR_2, VAR_3);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
2,902 | static hwaddr get_offset(hwaddr phys_addr,
DumpState *s)
{
RAMBlock *block;
hwaddr offset = s->memory_offset;
int64_t size_in_block, start;
if (s->has_filter) {
if (phys_addr < s->begin || phys_addr >= s->begin + s->length) {
return -1;
... | false | qemu | 2cac260768b9d4253737417ea7501cf2950e257f | static hwaddr get_offset(hwaddr phys_addr,
DumpState *s)
{
RAMBlock *block;
hwaddr offset = s->memory_offset;
int64_t size_in_block, start;
if (s->has_filter) {
if (phys_addr < s->begin || phys_addr >= s->begin + s->length) {
return -1;
... | {
"code": [],
"line_no": []
} | static hwaddr FUNC_0(hwaddr phys_addr,
DumpState *s)
{
RAMBlock *block;
hwaddr offset = s->memory_offset;
int64_t size_in_block, start;
if (s->has_filter) {
if (phys_addr < s->begin || phys_addr >= s->begin + s->length) {
return -1;
... | [
"static hwaddr FUNC_0(hwaddr phys_addr,\nDumpState *s)\n{",
"RAMBlock *block;",
"hwaddr offset = s->memory_offset;",
"int64_t size_in_block, start;",
"if (s->has_filter) {",
"if (phys_addr < s->begin || phys_addr >= s->begin + s->length) {",
"return -1;",
"}",
"}",
"QTAILQ_FOREACH(block, &ram_list... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31,
33
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
2,904 | void net_cleanup(void)
{
VLANState *vlan;
#if !defined(_WIN32)
/* close network clients */
for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {
VLANClientState *vc;
for(vc = vlan->first_client; vc != NULL; vc = vc->next) {
if (vc->fd_read == tap_receive) {
... | false | qemu | 973cbd37ce6d4c33dea7f4ed6b8e0e602fa50d25 | void net_cleanup(void)
{
VLANState *vlan;
#if !defined(_WIN32)
for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {
VLANClientState *vc;
for(vc = vlan->first_client; vc != NULL; vc = vc->next) {
if (vc->fd_read == tap_receive) {
char ifname[64];... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
VLANState *vlan;
#if !defined(_WIN32)
for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {
VLANClientState *vc;
for(vc = vlan->first_client; vc != NULL; vc = vc->next) {
if (vc->fd_read == tap_receive) {
char ifname[64];
... | [
"void FUNC_0(void)\n{",
"VLANState *vlan;",
"#if !defined(_WIN32)\nfor(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {",
"VLANClientState *vc;",
"for(vc = vlan->first_client; vc != NULL; vc = vc->next) {",
"if (vc->fd_read == tap_receive) {",
"char ifname[64];",
"TAPState *s = vc->opaque;",
"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31,
33,
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49,
51
],
[
53
],
[
55... |
2,905 | static int64_t coroutine_fn qcow_co_get_block_status(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *pnum)
{
BDRVQcowState *s = bs->opaque;
int index_in_cluster, n;
uint64_t cluster_offset;
qemu_co_mutex_lock(&s->lock);
cluster_offset = get_cluster_offset(bs, sector_n... | false | qemu | 67a0fd2a9bca204d2b39f910a97c7137636a0715 | static int64_t coroutine_fn qcow_co_get_block_status(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *pnum)
{
BDRVQcowState *s = bs->opaque;
int index_in_cluster, n;
uint64_t cluster_offset;
qemu_co_mutex_lock(&s->lock);
cluster_offset = get_cluster_offset(bs, sector_n... | {
"code": [],
"line_no": []
} | static int64_t VAR_0 qcow_co_get_block_status(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *pnum)
{
BDRVQcowState *s = bs->opaque;
int index_in_cluster, n;
uint64_t cluster_offset;
qemu_co_mutex_lock(&s->lock);
cluster_offset = get_cluster_offset(bs, sector_num << 9... | [
"static int64_t VAR_0 qcow_co_get_block_status(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors, int *pnum)\n{",
"BDRVQcowState *s = bs->opaque;",
"int index_in_cluster, n;",
"uint64_t cluster_offset;",
"qemu_co_mutex_lock(&s->lock);",
"cluster_offset = get_cluster_offset(bs, sector_num << 9, 0, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
2,906 | static int v9fs_synth_rename(FsContext *ctx, const char *oldpath,
const char *newpath)
{
errno = EPERM;
return -1;
}
| false | qemu | 364031f17932814484657e5551ba12957d993d7e | static int v9fs_synth_rename(FsContext *ctx, const char *oldpath,
const char *newpath)
{
errno = EPERM;
return -1;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(FsContext *VAR_0, const char *VAR_1,
const char *VAR_2)
{
errno = EPERM;
return -1;
}
| [
"static int FUNC_0(FsContext *VAR_0, const char *VAR_1,\nconst char *VAR_2)\n{",
"errno = EPERM;",
"return -1;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
]
] |
2,907 | static void gen_spr_604 (CPUPPCState *env)
{
/* Processor identification */
spr_register(env, SPR_PIR, "PIR",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_pir,
0x00000000);
/* Breakpoints */
/* XXX : not implemented */
spr_regi... | false | qemu | 082c6681b6c4af0035d9dad34a4a784be8c21dbe | static void gen_spr_604 (CPUPPCState *env)
{
spr_register(env, SPR_PIR, "PIR",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_pir,
0x00000000);
spr_register(env, SPR_IABR, "IABR",
SPR_NOACCESS, SPR_NOACCESS,
... | {
"code": [],
"line_no": []
} | static void FUNC_0 (CPUPPCState *VAR_0)
{
spr_register(VAR_0, SPR_PIR, "PIR",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_pir,
0x00000000);
spr_register(VAR_0, SPR_IABR, "IABR",
SPR_NOACCESS, SPR_NOACCESS,... | [
"static void FUNC_0 (CPUPPCState *VAR_0)\n{",
"spr_register(VAR_0, SPR_PIR, \"PIR\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_pir,\n0x00000000);",
"spr_register(VAR_0, SPR_IABR, \"IABR\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_generic,\n0x00000000);",
"spr_register(VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7,
9,
11,
13
],
[
19,
21,
23,
25
],
[
29,
31,
33,
35
],
[
41,
43,
45,
47
],
[
51,
53,
55,
57
],
[
61,
63,
65,
67
],
[
71,
73,
75,
77
],
[
81,
83... |
2,908 | void helper_sysret(int dflag)
{
int cpl, selector;
if (!(env->efer & MSR_EFER_SCE)) {
raise_exception_err(EXCP06_ILLOP, 0);
}
cpl = env->hflags & HF_CPL_MASK;
if (!(env->cr[0] & CR0_PE_MASK) || cpl != 0) {
raise_exception_err(EXCP0D_GPF, 0);
}
selector = (env->sta... | false | qemu | 4a1418e07bdcfaa3177739e04707ecaec75d89e1 | void helper_sysret(int dflag)
{
int cpl, selector;
if (!(env->efer & MSR_EFER_SCE)) {
raise_exception_err(EXCP06_ILLOP, 0);
}
cpl = env->hflags & HF_CPL_MASK;
if (!(env->cr[0] & CR0_PE_MASK) || cpl != 0) {
raise_exception_err(EXCP0D_GPF, 0);
}
selector = (env->sta... | {
"code": [],
"line_no": []
} | void FUNC_0(int VAR_0)
{
int VAR_1, VAR_2;
if (!(env->efer & MSR_EFER_SCE)) {
raise_exception_err(EXCP06_ILLOP, 0);
}
VAR_1 = env->hflags & HF_CPL_MASK;
if (!(env->cr[0] & CR0_PE_MASK) || VAR_1 != 0) {
raise_exception_err(EXCP0D_GPF, 0);
}
VAR_2 = (env->star >> 48... | [
"void FUNC_0(int VAR_0)\n{",
"int VAR_1, VAR_2;",
"if (!(env->efer & MSR_EFER_SCE)) {",
"raise_exception_err(EXCP06_ILLOP, 0);",
"}",
"VAR_1 = env->hflags & HF_CPL_MASK;",
"if (!(env->cr[0] & CR0_PE_MASK) || VAR_1 != 0) {",
"raise_exception_err(EXCP0D_GPF, 0);",
"}",
"VAR_2 = (env->star >> 48) & 0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31,
33,
35,
37,
39
],
[
41
],
[
43
],
[
45,
47,
49,
51... |
2,909 | static int parallels_probe(const uint8_t *buf, int buf_size, const char *filename)
{
const ParallelsHeader *ph = (const void *)buf;
if (buf_size < sizeof(ParallelsHeader))
return 0;
if ((!memcmp(ph->magic, HEADER_MAGIC, 16) ||
!memcmp(ph->magic, HEADER_MAGIC2, 16)) &&
(le3... | false | qemu | 23d6bd3bd1225e8c8ade6ed829eabcf90ddfa6f7 | static int parallels_probe(const uint8_t *buf, int buf_size, const char *filename)
{
const ParallelsHeader *ph = (const void *)buf;
if (buf_size < sizeof(ParallelsHeader))
return 0;
if ((!memcmp(ph->magic, HEADER_MAGIC, 16) ||
!memcmp(ph->magic, HEADER_MAGIC2, 16)) &&
(le3... | {
"code": [],
"line_no": []
} | static int FUNC_0(const uint8_t *VAR_0, int VAR_1, const char *VAR_2)
{
const ParallelsHeader *VAR_3 = (const void *)VAR_0;
if (VAR_1 < sizeof(ParallelsHeader))
return 0;
if ((!memcmp(VAR_3->magic, HEADER_MAGIC, 16) ||
!memcmp(VAR_3->magic, HEADER_MAGIC2, 16)) &&
(le32_to_... | [
"static int FUNC_0(const uint8_t *VAR_0, int VAR_1, const char *VAR_2)\n{",
"const ParallelsHeader *VAR_3 = (const void *)VAR_0;",
"if (VAR_1 < sizeof(ParallelsHeader))\nreturn 0;",
"if ((!memcmp(VAR_3->magic, HEADER_MAGIC, 16) ||\n!memcmp(VAR_3->magic, HEADER_MAGIC2, 16)) &&\n(le32_to_cpu(VAR_3->version) == ... | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15,
17,
19,
21
],
[
25
],
[
27
]
] |
2,910 | static int decode_coeffs(WMAProDecodeCtx *s, int c)
{
/* Integers 0..15 as single-precision floats. The table saves a
costly int to float conversion, and storing the values as
integers allows fast sign-flipping. */
static const int fval_tab[16] = {
0x00000000, 0x3f800000, 0x40000000... | false | FFmpeg | 1db6437f6ce88be241981b78f776b14404bb14fe | static int decode_coeffs(WMAProDecodeCtx *s, int c)
{
static const int fval_tab[16] = {
0x00000000, 0x3f800000, 0x40000000, 0x40400000,
0x40800000, 0x40a00000, 0x40c00000, 0x40e00000,
0x41000000, 0x41100000, 0x41200000, 0x41300000,
0x41400000, 0x41500000, 0x41600000, ... | {
"code": [],
"line_no": []
} | static int FUNC_0(WMAProDecodeCtx *VAR_0, int VAR_1)
{
static const int VAR_2[16] = {
0x00000000, 0x3f800000, 0x40000000, 0x40400000,
0x40800000, 0x40a00000, 0x40c00000, 0x40e00000,
0x41000000, 0x41100000, 0x41200000, 0x41300000,
0x41400000, 0x41500000, 0x41600000, 0x... | [
"static int FUNC_0(WMAProDecodeCtx *VAR_0, int VAR_1)\n{",
"static const int VAR_2[16] = {",
"0x00000000, 0x3f800000, 0x40000000, 0x40400000,\n0x40800000, 0x40a00000, 0x40c00000, 0x40e00000,\n0x41000000, 0x41100000, 0x41200000, 0x41300000,\n0x41400000, 0x41500000, 0x41600000, 0x41700000,\n};",
"int VAR_3;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
11
],
[
13,
15,
17,
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
[
... |
2,912 | static void qemu_chr_parse_ringbuf(QemuOpts *opts, ChardevBackend *backend,
Error **errp)
{
int val;
ChardevRingbuf *ringbuf;
ringbuf = backend->u.ringbuf = g_new0(ChardevRingbuf, 1);
qemu_chr_parse_common(opts, qapi_ChardevRingbuf_base(ringbuf));
val = ... | false | qemu | 32bafa8fdd098d52fbf1102d5a5e48d29398c0aa | static void qemu_chr_parse_ringbuf(QemuOpts *opts, ChardevBackend *backend,
Error **errp)
{
int val;
ChardevRingbuf *ringbuf;
ringbuf = backend->u.ringbuf = g_new0(ChardevRingbuf, 1);
qemu_chr_parse_common(opts, qapi_ChardevRingbuf_base(ringbuf));
val = ... | {
"code": [],
"line_no": []
} | static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1,
Error **VAR_2)
{
int VAR_3;
ChardevRingbuf *ringbuf;
ringbuf = VAR_1->u.ringbuf = g_new0(ChardevRingbuf, 1);
qemu_chr_parse_common(VAR_0, qapi_ChardevRingbuf_base(ringbuf));
VAR_3 = qemu_opt_get_... | [
"static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1,\nError **VAR_2)\n{",
"int VAR_3;",
"ChardevRingbuf *ringbuf;",
"ringbuf = VAR_1->u.ringbuf = g_new0(ChardevRingbuf, 1);",
"qemu_chr_parse_common(VAR_0, qapi_ChardevRingbuf_base(ringbuf));",
"VAR_3 = qemu_opt_get_size(VAR_0, \"size\", 0);",
"if ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
2,915 | static coroutine_fn int sd_co_readv(BlockDriverState *bs, int64_t sector_num,
int nb_sectors, QEMUIOVector *qiov)
{
SheepdogAIOCB acb;
BDRVSheepdogState *s = bs->opaque;
sd_aio_setup(&acb, s, qiov, sector_num, nb_sectors, AIOCB_READ_UDATA);
retry:
if (check_overlapping_... | false | qemu | acf6e5f0962c4be670d4a93ede77423512521876 | static coroutine_fn int sd_co_readv(BlockDriverState *bs, int64_t sector_num,
int nb_sectors, QEMUIOVector *qiov)
{
SheepdogAIOCB acb;
BDRVSheepdogState *s = bs->opaque;
sd_aio_setup(&acb, s, qiov, sector_num, nb_sectors, AIOCB_READ_UDATA);
retry:
if (check_overlapping_... | {
"code": [],
"line_no": []
} | static coroutine_fn int FUNC_0(BlockDriverState *bs, int64_t sector_num,
int nb_sectors, QEMUIOVector *qiov)
{
SheepdogAIOCB acb;
BDRVSheepdogState *s = bs->opaque;
sd_aio_setup(&acb, s, qiov, sector_num, nb_sectors, AIOCB_READ_UDATA);
retry:
if (check_overlapping_aiocb... | [
"static coroutine_fn int FUNC_0(BlockDriverState *bs, int64_t sector_num,\nint nb_sectors, QEMUIOVector *qiov)\n{",
"SheepdogAIOCB acb;",
"BDRVSheepdogState *s = bs->opaque;",
"sd_aio_setup(&acb, s, qiov, sector_num, nb_sectors, AIOCB_READ_UDATA);",
"retry:\nif (check_overlapping_aiocb(s, &acb)) {",
"qemu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
2,916 | static void multiwrite_help(void)
{
printf(
"\n"
" writes a range of bytes from the given offset source from multiple buffers,\n"
" in a batch of requests that may be merged by qemu\n"
"\n"
" Example:\n"
" 'multiwrite 512 1k 1k ; 4k 1k' \n"
" writes 2 kB at 512 bytes and 1 kB at 4 kB into the open file\n"... | false | qemu | b2bedb214469af55179d907a60cd67fed6b0779e | static void multiwrite_help(void)
{
printf(
"\n"
" writes a range of bytes from the given offset source from multiple buffers,\n"
" in a batch of requests that may be merged by qemu\n"
"\n"
" Example:\n"
" 'multiwrite 512 1k 1k ; 4k 1k' \n"
" writes 2 kB at 512 bytes and 1 kB at 4 kB into the open file\n"... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
printf(
"\n"
" writes a range of bytes from the given offset source from multiple buffers,\n"
" in a batch of requests that may be merged by qemu\n"
"\n"
" Example:\n"
" 'multiwrite 512 1k 1k ; 4k 1k' \n"
" writes 2 kB at 512 bytes and 1 kB at 4 kB into the open file\n"
"\n"
"... | [
"static void FUNC_0(void)\n{",
"printf(\n\"\\n\"\n\" writes a range of bytes from the given offset source from multiple buffers,\\n\"\n\" in a batch of requests that may be merged by qemu\\n\"\n\"\\n\"\n\" Example:\\n\"\n\" 'multiwrite 512 1k 1k ; 4k 1k' \\n\"",
"\" writes 2 kB at 512 bytes and 1 kB at 4 kB in... | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9,
11,
13,
15,
17
],
[
19,
21,
23,
25,
27,
29,
31,
33,
35
],
[
37
]
] |
2,917 | MemoryRegionSection memory_region_find(MemoryRegion *address_space,
hwaddr addr, uint64_t size)
{
AddressSpace *as = memory_region_to_address_space(address_space);
AddrRange range = addrrange_make(int128_make64(addr),
int128_make64... | false | qemu | 73034e9e087aa51b85cf86b6c81ef92f7e1e9d09 | MemoryRegionSection memory_region_find(MemoryRegion *address_space,
hwaddr addr, uint64_t size)
{
AddressSpace *as = memory_region_to_address_space(address_space);
AddrRange range = addrrange_make(int128_make64(addr),
int128_make64... | {
"code": [],
"line_no": []
} | MemoryRegionSection FUNC_0(MemoryRegion *address_space,
hwaddr addr, uint64_t size)
{
AddressSpace *as = memory_region_to_address_space(address_space);
AddrRange range = addrrange_make(int128_make64(addr),
int128_make64(size));
... | [
"MemoryRegionSection FUNC_0(MemoryRegion *address_space,\nhwaddr addr, uint64_t size)\n{",
"AddressSpace *as = memory_region_to_address_space(address_space);",
"AddrRange range = addrrange_make(int128_make64(addr),\nint128_make64(size));",
"FlatRange *fr = address_space_lookup(as, range);",
"MemoryRegionSec... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
... |
2,918 | static int check_pow_970MP (CPUPPCState *env)
{
if (env->spr[SPR_HID0] & 0x01C00000)
return 1;
return 0;
}
| false | qemu | bbc01ca7f265f2c5be8aee7c9ce1d10aa26063f5 | static int check_pow_970MP (CPUPPCState *env)
{
if (env->spr[SPR_HID0] & 0x01C00000)
return 1;
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0 (CPUPPCState *VAR_0)
{
if (VAR_0->spr[SPR_HID0] & 0x01C00000)
return 1;
return 0;
}
| [
"static int FUNC_0 (CPUPPCState *VAR_0)\n{",
"if (VAR_0->spr[SPR_HID0] & 0x01C00000)\nreturn 1;",
"return 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
13
]
] |
2,919 | void esp_reg_write(ESPState *s, uint32_t saddr, uint64_t val)
{
trace_esp_mem_writeb(saddr, s->wregs[saddr], val);
switch (saddr) {
case ESP_TCHI:
s->tchi_written = true;
/* fall through */
case ESP_TCLO:
case ESP_TCMID:
s->rregs[ESP_RSTAT] &= ~STAT_TC;
brea... | false | qemu | ff589551c8e8e9e95e211b9d8daafb4ed39f1aec | void esp_reg_write(ESPState *s, uint32_t saddr, uint64_t val)
{
trace_esp_mem_writeb(saddr, s->wregs[saddr], val);
switch (saddr) {
case ESP_TCHI:
s->tchi_written = true;
case ESP_TCLO:
case ESP_TCMID:
s->rregs[ESP_RSTAT] &= ~STAT_TC;
break;
case ESP_F... | {
"code": [],
"line_no": []
} | void FUNC_0(ESPState *VAR_0, uint32_t VAR_1, uint64_t VAR_2)
{
trace_esp_mem_writeb(VAR_1, VAR_0->wregs[VAR_1], VAR_2);
switch (VAR_1) {
case ESP_TCHI:
VAR_0->tchi_written = true;
case ESP_TCLO:
case ESP_TCMID:
VAR_0->rregs[ESP_RSTAT] &= ~STAT_TC;
break;
... | [
"void FUNC_0(ESPState *VAR_0, uint32_t VAR_1, uint64_t VAR_2)\n{",
"trace_esp_mem_writeb(VAR_1, VAR_0->wregs[VAR_1], VAR_2);",
"switch (VAR_1) {",
"case ESP_TCHI:\nVAR_0->tchi_written = true;",
"case ESP_TCLO:\ncase ESP_TCMID:\nVAR_0->rregs[ESP_RSTAT] &= ~STAT_TC;",
"break;",
"case ESP_FIFO:\nif (VAR_0-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
15,
17,
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
2,921 | static void decode_delta_e(uint8_t *dst,
const uint8_t *buf, const uint8_t *buf_end,
int w, int flag, int bpp, int dst_size)
{
int planepitch = FFALIGN(w, 16) >> 3;
int pitch = planepitch * bpp;
int planepitch_byte = (w + 7) / 8;
unsigned entr... | false | FFmpeg | 810a8ba5b67389e808ed2f124e1cd54b8a26e679 | static void decode_delta_e(uint8_t *dst,
const uint8_t *buf, const uint8_t *buf_end,
int w, int flag, int bpp, int dst_size)
{
int planepitch = FFALIGN(w, 16) >> 3;
int pitch = planepitch * bpp;
int planepitch_byte = (w + 7) / 8;
unsigned entr... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0,
const uint8_t *VAR_1, const uint8_t *VAR_2,
int VAR_3, int VAR_4, int VAR_5, int VAR_6)
{
int VAR_7 = FFALIGN(VAR_3, 16) >> 3;
int VAR_8 = VAR_7 * VAR_5;
int VAR_9 = (VAR_3 + 7) / 8;
unsigned VAR_10, VAR_11;
... | [
"static void FUNC_0(uint8_t *VAR_0,\nconst uint8_t *VAR_1, const uint8_t *VAR_2,\nint VAR_3, int VAR_4, int VAR_5, int VAR_6)\n{",
"int VAR_7 = FFALIGN(VAR_3, 16) >> 3;",
"int VAR_8 = VAR_7 * VAR_5;",
"int VAR_9 = (VAR_3 + 7) / 8;",
"unsigned VAR_10, VAR_11;",
"GetByteContext gb, ptrs;",
"PutByteContext... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
37
],
[
39
],
[
43,
45
],
[
49,
51
],
[
55
],
[
59
],
[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.