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 |
|---|---|---|---|---|---|---|---|---|---|---|
984 | static void parse_error(JSONParserContext *ctxt, QObject *token, const char *msg, ...)
{
fprintf(stderr, "parse error: %s\n", msg);
}
| false | qemu | c96c84a9ff4bc184cb1f6cc9771a550f3854ba59 | static void parse_error(JSONParserContext *ctxt, QObject *token, const char *msg, ...)
{
fprintf(stderr, "parse error: %s\n", msg);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(JSONParserContext *VAR_0, QObject *VAR_1, const char *VAR_2, ...)
{
fprintf(stderr, "parse error: %s\n", VAR_2);
}
| [
"static void FUNC_0(JSONParserContext *VAR_0, QObject *VAR_1, const char *VAR_2, ...)\n{",
"fprintf(stderr, \"parse error: %s\\n\", VAR_2);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
985 | void gtod_save(QEMUFile *f, void *opaque)
{
uint64_t tod_low;
uint8_t tod_high;
int r;
r = s390_get_clock(&tod_high, &tod_low);
if (r) {
fprintf(stderr, "WARNING: Unable to get guest clock for migration. "
"Error code %d. Guest clock will not be migrated "
... | false | qemu | 8297be80f7cf71e09617669a8bd8b2836dcfd4c3 | void gtod_save(QEMUFile *f, void *opaque)
{
uint64_t tod_low;
uint8_t tod_high;
int r;
r = s390_get_clock(&tod_high, &tod_low);
if (r) {
fprintf(stderr, "WARNING: Unable to get guest clock for migration. "
"Error code %d. Guest clock will not be migrated "
... | {
"code": [],
"line_no": []
} | void FUNC_0(QEMUFile *VAR_0, void *VAR_1)
{
uint64_t tod_low;
uint8_t tod_high;
int VAR_2;
VAR_2 = s390_get_clock(&tod_high, &tod_low);
if (VAR_2) {
fprintf(stderr, "WARNING: Unable to get guest clock for migration. "
"Error code %d. Guest clock will not be ... | [
"void FUNC_0(QEMUFile *VAR_0, void *VAR_1)\n{",
"uint64_t tod_low;",
"uint8_t tod_high;",
"int VAR_2;",
"VAR_2 = s390_get_clock(&tod_high, &tod_low);",
"if (VAR_2) {",
"fprintf(stderr, \"WARNING: Unable to get guest clock for migration. \"\n\"Error code %d. Guest clock will not be migrated \"\n\"which c... | [
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
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
986 | void kvm_arch_update_guest_debug(CPUState *env, struct kvm_guest_debug *dbg)
{
const uint8_t type_code[] = {
[GDB_BREAKPOINT_HW] = 0x0,
[GDB_WATCHPOINT_WRITE] = 0x1,
[GDB_WATCHPOINT_ACCESS] = 0x3
};
const uint8_t len_code[] = {
[1] = 0x0, [2] = 0x1, [4] = 0x3, [8] = 0... | false | qemu | b9bec74bcb16519a876ec21cd5277c526a9b512d | void kvm_arch_update_guest_debug(CPUState *env, struct kvm_guest_debug *dbg)
{
const uint8_t type_code[] = {
[GDB_BREAKPOINT_HW] = 0x0,
[GDB_WATCHPOINT_WRITE] = 0x1,
[GDB_WATCHPOINT_ACCESS] = 0x3
};
const uint8_t len_code[] = {
[1] = 0x0, [2] = 0x1, [4] = 0x3, [8] = 0... | {
"code": [],
"line_no": []
} | void FUNC_0(CPUState *VAR_0, struct kvm_guest_debug *VAR_1)
{
const uint8_t VAR_2[] = {
[GDB_BREAKPOINT_HW] = 0x0,
[GDB_WATCHPOINT_WRITE] = 0x1,
[GDB_WATCHPOINT_ACCESS] = 0x3
};
const uint8_t VAR_3[] = {
[1] = 0x0, [2] = 0x1, [4] = 0x3, [8] = 0x2
};
int VAR_... | [
"void FUNC_0(CPUState *VAR_0, struct kvm_guest_debug *VAR_1)\n{",
"const uint8_t VAR_2[] = {",
"[GDB_BREAKPOINT_HW] = 0x0,\n[GDB_WATCHPOINT_WRITE] = 0x1,\n[GDB_WATCHPOINT_ACCESS] = 0x3\n};",
"const uint8_t VAR_3[] = {",
"[1] = 0x0, [2] = 0x1, [4] = 0x3, [8] = 0x2\n};",
"int VAR_4;",
"if (kvm_sw_breakpoi... | [
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
],
[
35
],
[
37
],
[
39
],
[
41,
43,
45
],
[
47
],
[
49
],
[
53
],
[... |
987 | SocketAddress *socket_local_address(int fd, Error **errp)
{
struct sockaddr_storage ss;
socklen_t sslen = sizeof(ss);
if (getsockname(fd, (struct sockaddr *)&ss, &sslen) < 0) {
error_setg_errno(errp, errno, "%s",
"Unable to query local socket address");
retu... | false | qemu | dfd100f242370886bb6732f70f1f7cbd8eb9fedc | SocketAddress *socket_local_address(int fd, Error **errp)
{
struct sockaddr_storage ss;
socklen_t sslen = sizeof(ss);
if (getsockname(fd, (struct sockaddr *)&ss, &sslen) < 0) {
error_setg_errno(errp, errno, "%s",
"Unable to query local socket address");
retu... | {
"code": [],
"line_no": []
} | SocketAddress *FUNC_0(int fd, Error **errp)
{
struct sockaddr_storage VAR_0;
socklen_t sslen = sizeof(VAR_0);
if (getsockname(fd, (struct sockaddr *)&VAR_0, &sslen) < 0) {
error_setg_errno(errp, errno, "%s",
"Unable to query local socket address");
return NU... | [
"SocketAddress *FUNC_0(int fd, Error **errp)\n{",
"struct sockaddr_storage VAR_0;",
"socklen_t sslen = sizeof(VAR_0);",
"if (getsockname(fd, (struct sockaddr *)&VAR_0, &sslen) < 0) {",
"error_setg_errno(errp, errno, \"%s\",\n\"Unable to query local socket address\");",
"return NULL;",
"}",
"return soc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
23
],
[
25
]
] |
988 | static void eeprom_generate(eeprom24c0x_t *eeprom, ram_addr_t ram_size)
{
enum { SDR = 0x4, DDR2 = 0x8 } type;
uint8_t *spd = eeprom->contents;
uint8_t nbanks = 0;
uint16_t density = 0;
int i;
/* work in terms of MB */
ram_size >>= 20;
while ((ram_size >= 4) && (nbanks <= 2)... | false | qemu | 35c648078aa493c3b976840eb7cf2e53ab5b7a2d | static void eeprom_generate(eeprom24c0x_t *eeprom, ram_addr_t ram_size)
{
enum { SDR = 0x4, DDR2 = 0x8 } type;
uint8_t *spd = eeprom->contents;
uint8_t nbanks = 0;
uint16_t density = 0;
int i;
ram_size >>= 20;
while ((ram_size >= 4) && (nbanks <= 2)) {
int sz_log2 ... | {
"code": [],
"line_no": []
} | static void FUNC_0(eeprom24c0x_t *VAR_0, ram_addr_t VAR_1)
{
enum { SDR = 0x4, DDR2 = 0x8 } VAR_2;
uint8_t *spd = VAR_0->contents;
uint8_t nbanks = 0;
uint16_t density = 0;
int VAR_3;
VAR_1 >>= 20;
while ((VAR_1 >= 4) && (nbanks <= 2)) {
int VAR_4 = MIN(31 - clz32(... | [
"static void FUNC_0(eeprom24c0x_t *VAR_0, ram_addr_t VAR_1)\n{",
"enum { SDR = 0x4, DDR2 = 0x8 } VAR_2;",
"uint8_t *spd = VAR_0->contents;",
"uint8_t nbanks = 0;",
"uint16_t density = 0;",
"int VAR_3;",
"VAR_1 >>= 20;",
"while ((VAR_1 >= 4) && (nbanks <= 2)) {",
"int VAR_4 = MIN(31 - clz32(VAR_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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
... |
989 | static int virtio_blk_init_pci(PCIDevice *pci_dev)
{
VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev);
VirtIODevice *vdev;
if (proxy->class_code != PCI_CLASS_STORAGE_SCSI &&
proxy->class_code != PCI_CLASS_STORAGE_OTHER)
proxy->class_code = PCI_CLASS_STORAGE_SCSI;
... | false | qemu | f8b6cc0070aab8b75bd082582c829be1353f395f | static int virtio_blk_init_pci(PCIDevice *pci_dev)
{
VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev);
VirtIODevice *vdev;
if (proxy->class_code != PCI_CLASS_STORAGE_SCSI &&
proxy->class_code != PCI_CLASS_STORAGE_OTHER)
proxy->class_code = PCI_CLASS_STORAGE_SCSI;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(PCIDevice *VAR_0)
{
VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, VAR_0, VAR_0);
VirtIODevice *vdev;
if (proxy->class_code != PCI_CLASS_STORAGE_SCSI &&
proxy->class_code != PCI_CLASS_STORAGE_OTHER)
proxy->class_code = PCI_CLASS_STORAGE_SCSI;
if (!proxy->b... | [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, VAR_0, VAR_0);",
"VirtIODevice *vdev;",
"if (proxy->class_code != PCI_CLASS_STORAGE_SCSI &&\nproxy->class_code != PCI_CLASS_STORAGE_OTHER)\nproxy->class_code = PCI_CLASS_STORAGE_SCSI;",
"if (!proxy->block.dinfo) {",... | [
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
],
[
29
],
[
31,
33,
35,
37
],
[
41
],
[
43
],
[
45
]
] |
990 | void s390_io_interrupt(S390CPU *cpu, uint16_t subchannel_id,
uint16_t subchannel_nr, uint32_t io_int_parm,
uint32_t io_int_word)
{
if (kvm_enabled()) {
kvm_s390_io_interrupt(cpu, subchannel_id, subchannel_nr, io_int_parm,
io_i... | false | qemu | de13d2161473d02ae97ec0f8e4503147554892dd | void s390_io_interrupt(S390CPU *cpu, uint16_t subchannel_id,
uint16_t subchannel_nr, uint32_t io_int_parm,
uint32_t io_int_word)
{
if (kvm_enabled()) {
kvm_s390_io_interrupt(cpu, subchannel_id, subchannel_nr, io_int_parm,
io_i... | {
"code": [],
"line_no": []
} | void FUNC_0(S390CPU *VAR_0, uint16_t VAR_1,
uint16_t VAR_2, uint32_t VAR_3,
uint32_t VAR_4)
{
if (kvm_enabled()) {
kvm_s390_io_interrupt(VAR_0, VAR_1, VAR_2, VAR_3,
VAR_4);
} else {
cpu_inject_io(VAR_0, VAR_1, VA... | [
"void FUNC_0(S390CPU *VAR_0, uint16_t VAR_1,\nuint16_t VAR_2, uint32_t VAR_3,\nuint32_t VAR_4)\n{",
"if (kvm_enabled()) {",
"kvm_s390_io_interrupt(VAR_0, VAR_1, VAR_2, VAR_3,\nVAR_4);",
"} else {",
"cpu_inject_io(VAR_0, VAR_1, VAR_2, VAR_3,\nVAR_4);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11,
13
],
[
15
],
[
17,
19
],
[
21
],
[
23
]
] |
991 | static void pci_bridge_region_del(PCIBridge *br, PCIBridgeWindows *w)
{
PCIDevice *pd = PCI_DEVICE(br);
PCIBus *parent = pd->bus;
memory_region_del_subregion(parent->address_space_io, &w->alias_io);
memory_region_del_subregion(parent->address_space_mem, &w->alias_mem);
memory_region_del_subr... | false | qemu | fd56e0612b6454a282fa6a953fdb09281a98c589 | static void pci_bridge_region_del(PCIBridge *br, PCIBridgeWindows *w)
{
PCIDevice *pd = PCI_DEVICE(br);
PCIBus *parent = pd->bus;
memory_region_del_subregion(parent->address_space_io, &w->alias_io);
memory_region_del_subregion(parent->address_space_mem, &w->alias_mem);
memory_region_del_subr... | {
"code": [],
"line_no": []
} | static void FUNC_0(PCIBridge *VAR_0, PCIBridgeWindows *VAR_1)
{
PCIDevice *pd = PCI_DEVICE(VAR_0);
PCIBus *parent = pd->bus;
memory_region_del_subregion(parent->address_space_io, &VAR_1->alias_io);
memory_region_del_subregion(parent->address_space_mem, &VAR_1->alias_mem);
memory_region_del_s... | [
"static void FUNC_0(PCIBridge *VAR_0, PCIBridgeWindows *VAR_1)\n{",
"PCIDevice *pd = PCI_DEVICE(VAR_0);",
"PCIBus *parent = pd->bus;",
"memory_region_del_subregion(parent->address_space_io, &VAR_1->alias_io);",
"memory_region_del_subregion(parent->address_space_mem, &VAR_1->alias_mem);",
"memory_region_de... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
992 | void bt_l2cap_psm_register(struct bt_l2cap_device_s *dev, int psm, int min_mtu,
int (*new_channel)(struct bt_l2cap_device_s *dev,
struct bt_l2cap_conn_params_s *params))
{
struct bt_l2cap_psm_s *new_psm = l2cap_psm(dev, psm);
if (new_psm) {
fprintf(stderr,... | false | qemu | a89f364ae8740dfc31b321eed9ee454e996dc3c1 | void bt_l2cap_psm_register(struct bt_l2cap_device_s *dev, int psm, int min_mtu,
int (*new_channel)(struct bt_l2cap_device_s *dev,
struct bt_l2cap_conn_params_s *params))
{
struct bt_l2cap_psm_s *new_psm = l2cap_psm(dev, psm);
if (new_psm) {
fprintf(stderr,... | {
"code": [],
"line_no": []
} | void FUNC_0(struct bt_l2cap_device_s *VAR_4, int VAR_1, int VAR_2,
int (*VAR_3)(struct bt_l2cap_device_s *VAR_4,
struct bt_l2cap_conn_params_s *VAR_4))
{
struct bt_l2cap_psm_s *VAR_5 = l2cap_psm(VAR_4, VAR_1);
if (VAR_5) {
fprintf(stderr, "%s: PSM %04x alr... | [
"void FUNC_0(struct bt_l2cap_device_s *VAR_4, int VAR_1, int VAR_2,\nint (*VAR_3)(struct bt_l2cap_device_s *VAR_4,\nstruct bt_l2cap_conn_params_s *VAR_4))\n{",
"struct bt_l2cap_psm_s *VAR_5 = l2cap_psm(VAR_4, VAR_1);",
"if (VAR_5) {",
"fprintf(stderr, \"%s: PSM %04x already registered for device `%s'.\\n\",\n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
993 | static int check_pow_970 (CPUPPCState *env)
{
if (env->spr[SPR_HID0] & 0x00600000)
return 1;
return 0;
}
| false | qemu | bbc01ca7f265f2c5be8aee7c9ce1d10aa26063f5 | static int check_pow_970 (CPUPPCState *env)
{
if (env->spr[SPR_HID0] & 0x00600000)
return 1;
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0 (CPUPPCState *VAR_0)
{
if (VAR_0->spr[SPR_HID0] & 0x00600000)
return 1;
return 0;
}
| [
"static int FUNC_0 (CPUPPCState *VAR_0)\n{",
"if (VAR_0->spr[SPR_HID0] & 0x00600000)\nreturn 1;",
"return 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
13
]
] |
994 | void do_info_usernet(Monitor *mon)
{
SlirpState *s;
TAILQ_FOREACH(s, &slirp_stacks, entry) {
monitor_printf(mon, "VLAN %d (%s):\n", s->vc->vlan->id, s->vc->name);
slirp_connection_info(s->slirp, mon);
}
}
| false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | void do_info_usernet(Monitor *mon)
{
SlirpState *s;
TAILQ_FOREACH(s, &slirp_stacks, entry) {
monitor_printf(mon, "VLAN %d (%s):\n", s->vc->vlan->id, s->vc->name);
slirp_connection_info(s->slirp, mon);
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(Monitor *VAR_0)
{
SlirpState *s;
TAILQ_FOREACH(s, &slirp_stacks, entry) {
monitor_printf(VAR_0, "VLAN %d (%s):\n", s->vc->vlan->id, s->vc->name);
slirp_connection_info(s->slirp, VAR_0);
}
}
| [
"void FUNC_0(Monitor *VAR_0)\n{",
"SlirpState *s;",
"TAILQ_FOREACH(s, &slirp_stacks, entry) {",
"monitor_printf(VAR_0, \"VLAN %d (%s):\\n\", s->vc->vlan->id, s->vc->name);",
"slirp_connection_info(s->slirp, VAR_0);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
995 | static inline void RENAME(rgb16to32)(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__ volati... | false | FFmpeg | d1adad3cca407f493c3637e20ecd4f7124e69212 | static inline void RENAME(rgb16to32)(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__ volati... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(rgb16to32)(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(rgb16to32)(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_MM... | [
0,
0,
0,
0,
0,
0,
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,... |
996 | int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx)
{
struct xvmc_pixfmt_render *last, *next, *render = (struct xvmc_pixfmt_render*)s->current_picture.data[2];
const int mb_block_count = 4 + (1 << s->chroma_format);
assert(avctx);
if (!render || render->magic_id != AV_XVMC_RENDER_MAG... | false | FFmpeg | d76c5ed574faac1aa1533378e35ff78730dcc2ab | int ff_xvmc_field_start(MpegEncContext*s, AVCodecContext *avctx)
{
struct xvmc_pixfmt_render *last, *next, *render = (struct xvmc_pixfmt_render*)s->current_picture.data[2];
const int mb_block_count = 4 + (1 << s->chroma_format);
assert(avctx);
if (!render || render->magic_id != AV_XVMC_RENDER_MAG... | {
"code": [],
"line_no": []
} | int FUNC_0(MpegEncContext*VAR_0, AVCodecContext *VAR_1)
{
struct xvmc_pixfmt_render *VAR_2, *VAR_3, *VAR_4 = (struct xvmc_pixfmt_render*)VAR_0->current_picture.data[2];
const int VAR_5 = 4 + (1 << VAR_0->chroma_format);
assert(VAR_1);
if (!VAR_4 || VAR_4->magic_id != AV_XVMC_RENDER_MAGIC ||
... | [
"int FUNC_0(MpegEncContext*VAR_0, AVCodecContext *VAR_1)\n{",
"struct xvmc_pixfmt_render *VAR_2, *VAR_3, *VAR_4 = (struct xvmc_pixfmt_render*)VAR_0->current_picture.data[2];",
"const int VAR_5 = 4 + (1 << VAR_0->chroma_format);",
"assert(VAR_1);",
"if (!VAR_4 || VAR_4->magic_id != AV_XVMC_RENDER_MAGIC ||\n!... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17,
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35,
37,
39
],
[
41
],
[
43
],
[
45,
47
],
[
49,
51
],
[
53... |
997 | int64_t url_fseek(ByteIOContext *s, int64_t offset, int whence)
{
int64_t offset1;
int64_t pos;
int force = whence & AVSEEK_FORCE;
whence &= ~AVSEEK_FORCE;
if(!s)
return AVERROR(EINVAL);
pos = s->pos - (s->write_flag ? 0 : (s->buf_end - s->buffer));
if (whence != SEEK_... | false | FFmpeg | 9d30e0682a792436e1880fd6ce51966d50ec9c2b | int64_t url_fseek(ByteIOContext *s, int64_t offset, int whence)
{
int64_t offset1;
int64_t pos;
int force = whence & AVSEEK_FORCE;
whence &= ~AVSEEK_FORCE;
if(!s)
return AVERROR(EINVAL);
pos = s->pos - (s->write_flag ? 0 : (s->buf_end - s->buffer));
if (whence != SEEK_... | {
"code": [],
"line_no": []
} | int64_t FUNC_0(ByteIOContext *s, int64_t offset, int whence)
{
int64_t offset1;
int64_t pos;
int VAR_0 = whence & AVSEEK_FORCE;
whence &= ~AVSEEK_FORCE;
if(!s)
return AVERROR(EINVAL);
pos = s->pos - (s->write_flag ? 0 : (s->buf_end - s->buffer));
if (whence != SEEK_CUR... | [
"int64_t FUNC_0(ByteIOContext *s, int64_t offset, int whence)\n{",
"int64_t offset1;",
"int64_t pos;",
"int VAR_0 = whence & AVSEEK_FORCE;",
"whence &= ~AVSEEK_FORCE;",
"if(!s)\nreturn AVERROR(EINVAL);",
"pos = s->pos - (s->write_flag ? 0 : (s->buf_end - s->buffer));",
"if (whence != SEEK_CUR && whenc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
21
],
[
25,
27
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
51
],
[
53
],
[
55
... |
998 | int ff_listen_connect(int fd, const struct sockaddr *addr,
socklen_t addrlen, int timeout, URLContext *h)
{
struct pollfd p = {fd, POLLOUT, 0};
int ret;
socklen_t optlen;
ff_socket_nonblock(fd, 1);
while ((ret = connect(fd, addr, addrlen))) {
ret = ff_neterr... | false | FFmpeg | 9835abb6d63fb07613994ae90e72fef758149408 | int ff_listen_connect(int fd, const struct sockaddr *addr,
socklen_t addrlen, int timeout, URLContext *h)
{
struct pollfd p = {fd, POLLOUT, 0};
int ret;
socklen_t optlen;
ff_socket_nonblock(fd, 1);
while ((ret = connect(fd, addr, addrlen))) {
ret = ff_neterr... | {
"code": [],
"line_no": []
} | int FUNC_0(int VAR_0, const struct sockaddr *VAR_1,
socklen_t VAR_2, int VAR_3, URLContext *VAR_4)
{
struct pollfd VAR_5 = {VAR_0, POLLOUT, 0};
int VAR_6;
socklen_t optlen;
ff_socket_nonblock(VAR_0, 1);
while ((VAR_6 = connect(VAR_0, VAR_1, VAR_2))) {
VAR_6 ... | [
"int FUNC_0(int VAR_0, const struct sockaddr *VAR_1,\nsocklen_t VAR_2, int VAR_3, URLContext *VAR_4)\n{",
"struct pollfd VAR_5 = {VAR_0, POLLOUT, 0};",
"int VAR_6;",
"socklen_t optlen;",
"ff_socket_nonblock(VAR_0, 1);",
"while ((VAR_6 = connect(VAR_0, VAR_1, VAR_2))) {",
"VAR_6 = ff_neterrno();",
"swi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25,
27,
29
],
[
31
],
[
33,
35,
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
49
],
[
51,
53
... |
999 | static int get_uint32_equal(QEMUFile *f, void *pv, size_t size)
{
uint32_t *v = pv;
uint32_t v2;
qemu_get_be32s(f, &v2);
if (*v == v2) {
return 0;
}
return -EINVAL;
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static int get_uint32_equal(QEMUFile *f, void *pv, size_t size)
{
uint32_t *v = pv;
uint32_t v2;
qemu_get_be32s(f, &v2);
if (*v == v2) {
return 0;
}
return -EINVAL;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)
{
uint32_t *v = VAR_1;
uint32_t v2;
qemu_get_be32s(VAR_0, &v2);
if (*v == v2) {
return 0;
}
return -EINVAL;
}
| [
"static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{",
"uint32_t *v = VAR_1;",
"uint32_t v2;",
"qemu_get_be32s(VAR_0, &v2);",
"if (*v == v2) {",
"return 0;",
"}",
"return -EINVAL;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
1,000 | int socket_dgram(SocketAddress *remote, SocketAddress *local, Error **errp)
{
QemuOpts *opts;
int fd;
opts = qemu_opts_create_nofail(&socket_optslist);
switch (remote->kind) {
case SOCKET_ADDRESS_KIND_INET:
qemu_opt_set(opts, "host", remote->inet->host);
qemu_opt_set(opts, ... | true | qemu | 7a5b6af13a45ae7109900dee03a436819302126c | int socket_dgram(SocketAddress *remote, SocketAddress *local, Error **errp)
{
QemuOpts *opts;
int fd;
opts = qemu_opts_create_nofail(&socket_optslist);
switch (remote->kind) {
case SOCKET_ADDRESS_KIND_INET:
qemu_opt_set(opts, "host", remote->inet->host);
qemu_opt_set(opts, ... | {
"code": [
" return -1;"
],
"line_no": [
39
]
} | int FUNC_0(SocketAddress *VAR_0, SocketAddress *VAR_1, Error **VAR_2)
{
QemuOpts *opts;
int VAR_3;
opts = qemu_opts_create_nofail(&socket_optslist);
switch (VAR_0->kind) {
case SOCKET_ADDRESS_KIND_INET:
qemu_opt_set(opts, "host", VAR_0->inet->host);
qemu_opt_set(opts, "port... | [
"int FUNC_0(SocketAddress *VAR_0, SocketAddress *VAR_1, Error **VAR_2)\n{",
"QemuOpts *opts;",
"int VAR_3;",
"opts = qemu_opts_create_nofail(&socket_optslist);",
"switch (VAR_0->kind) {",
"case SOCKET_ADDRESS_KIND_INET:\nqemu_opt_set(opts, \"host\", VAR_0->inet->host);",
"qemu_opt_set(opts, \"port\", VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47... |
1,001 | static void cpu_common_initfn(Object *obj)
{
CPUState *cpu = CPU(obj);
CPUClass *cc = CPU_GET_CLASS(obj);
cpu->cpu_index = UNASSIGNED_CPU_INDEX;
cpu->gdb_num_regs = cpu->gdb_num_g_regs = cc->gdb_num_core_regs;
/* *-user doesn't have configurable SMP topology */
/* the default value is c... | true | qemu | 5651743c908d8c3b1ff0192ce9543a502ec7a206 | static void cpu_common_initfn(Object *obj)
{
CPUState *cpu = CPU(obj);
CPUClass *cc = CPU_GET_CLASS(obj);
cpu->cpu_index = UNASSIGNED_CPU_INDEX;
cpu->gdb_num_regs = cpu->gdb_num_g_regs = cc->gdb_num_core_regs;
cpu->nr_cores = 1;
cpu->nr_threads = 1;
qemu_mutex_init(&c... | {
"code": [
" cpu->trace_dstate = bitmap_new(trace_get_vcpu_event_count());"
],
"line_no": [
33
]
} | static void FUNC_0(Object *VAR_0)
{
CPUState *cpu = CPU(VAR_0);
CPUClass *cc = CPU_GET_CLASS(VAR_0);
cpu->cpu_index = UNASSIGNED_CPU_INDEX;
cpu->gdb_num_regs = cpu->gdb_num_g_regs = cc->gdb_num_core_regs;
cpu->nr_cores = 1;
cpu->nr_threads = 1;
qemu_mutex_init(&cpu->w... | [
"static void FUNC_0(Object *VAR_0)\n{",
"CPUState *cpu = CPU(VAR_0);",
"CPUClass *cc = CPU_GET_CLASS(VAR_0);",
"cpu->cpu_index = UNASSIGNED_CPU_INDEX;",
"cpu->gdb_num_regs = cpu->gdb_num_g_regs = cc->gdb_num_core_regs;",
"cpu->nr_cores = 1;",
"cpu->nr_threads = 1;",
"qemu_mutex_init(&cpu->work_mutex);... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
37
],
[
39
]
] |
1,002 | static void read_sbr_single_channel_element(AACContext *ac,
SpectralBandReplication *sbr,
GetBitContext *gb)
{
if (get_bits1(gb)) // bs_data_extra
skip_bits(gb, 4); // bs_reserved
read_sbr_grid(ac, sbr, gb, &... | true | FFmpeg | 58b1cba0c9173741cf769117a735b429356d83c0 | static void read_sbr_single_channel_element(AACContext *ac,
SpectralBandReplication *sbr,
GetBitContext *gb)
{
if (get_bits1(gb))
skip_bits(gb, 4);
read_sbr_grid(ac, sbr, gb, &sbr->data[0]);
read_sbr_d... | {
"code": [
"static void read_sbr_single_channel_element(AACContext *ac,",
" read_sbr_grid(ac, sbr, gb, &sbr->data[0]);"
],
"line_no": [
1,
15
]
} | static void FUNC_0(AACContext *VAR_0,
SpectralBandReplication *VAR_1,
GetBitContext *VAR_2)
{
if (get_bits1(VAR_2))
skip_bits(VAR_2, 4);
read_sbr_grid(VAR_0, VAR_1, VAR_2, &VAR_1->data[0]);
read_sbr_dt... | [
"static void FUNC_0(AACContext *VAR_0,\nSpectralBandReplication *VAR_1,\nGetBitContext *VAR_2)\n{",
"if (get_bits1(VAR_2))\nskip_bits(VAR_2, 4);",
"read_sbr_grid(VAR_0, VAR_1, VAR_2, &VAR_1->data[0]);",
"read_sbr_dtdf(VAR_1, VAR_2, &VAR_1->data[0]);",
"read_sbr_invf(VAR_1, VAR_2, &VAR_1->data[0]);",
"read... | [
1,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
31
]
] |
1,004 | static int GLZWDecode(GifState * s, uint8_t * buf, int len)
{
int l, c, code, oc, fc;
uint8_t *sp;
if (s->end_code < 0)
return 0;
l = len;
sp = s->sp;
oc = s->oc;
fc = s->fc;
while (sp > s->stack) {
*buf++ = *(--sp);
if ((--l) == 0)
... | true | FFmpeg | 0b54f3c0878a3acaa9142e4f24942e762d97e350 | static int GLZWDecode(GifState * s, uint8_t * buf, int len)
{
int l, c, code, oc, fc;
uint8_t *sp;
if (s->end_code < 0)
return 0;
l = len;
sp = s->sp;
oc = s->oc;
fc = s->fc;
while (sp > s->stack) {
*buf++ = *(--sp);
if ((--l) == 0)
... | {
"code": [
" uint8_t *sp;",
" return 0;",
" break;",
" break;",
"static int GLZWDecode(GifState * s, uint8_t * buf, int len)",
" int l, c, code, oc, fc;",
" uint8_t *sp;",
" if (s->end_code < 0)",
" return 0;",
" l = len;"... | static int FUNC_0(GifState * VAR_0, uint8_t * VAR_1, int VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;
uint8_t *sp;
if (VAR_0->end_code < 0)
return 0;
VAR_3 = VAR_2;
sp = VAR_0->sp;
VAR_6 = VAR_0->VAR_6;
VAR_7 = VAR_0->VAR_7;
while (sp > VAR_0->stack) {
... | [
"static int FUNC_0(GifState * VAR_0, uint8_t * VAR_1, int VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;",
"uint8_t *sp;",
"if (VAR_0->end_code < 0)\nreturn 0;",
"VAR_3 = VAR_2;",
"sp = VAR_0->sp;",
"VAR_6 = VAR_0->VAR_6;",
"VAR_7 = VAR_0->VAR_7;",
"while (sp > VAR_0->stack) {",
"*VAR_1++ = *... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
0,
0,
1,
1,
1,
0,
0,
0,
1,
1,
1,
1,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51... |
1,005 | bool throttle_is_valid(ThrottleConfig *cfg, Error **errp)
{
int i;
bool bps_flag, ops_flag;
bool bps_max_flag, ops_max_flag;
bps_flag = cfg->buckets[THROTTLE_BPS_TOTAL].avg &&
(cfg->buckets[THROTTLE_BPS_READ].avg ||
cfg->buckets[THROTTLE_BPS_WRITE].avg);
ops_flag = cfg... | true | qemu | 67335a4558d3cad2173aac0ce13b6c096b077c41 | bool throttle_is_valid(ThrottleConfig *cfg, Error **errp)
{
int i;
bool bps_flag, ops_flag;
bool bps_max_flag, ops_max_flag;
bps_flag = cfg->buckets[THROTTLE_BPS_TOTAL].avg &&
(cfg->buckets[THROTTLE_BPS_READ].avg ||
cfg->buckets[THROTTLE_BPS_WRITE].avg);
ops_flag = cfg... | {
"code": [],
"line_no": []
} | bool FUNC_0(ThrottleConfig *cfg, Error **errp)
{
int VAR_0;
bool bps_flag, ops_flag;
bool bps_max_flag, ops_max_flag;
bps_flag = cfg->buckets[THROTTLE_BPS_TOTAL].avg &&
(cfg->buckets[THROTTLE_BPS_READ].avg ||
cfg->buckets[THROTTLE_BPS_WRITE].avg);
ops_flag = cfg->bucke... | [
"bool FUNC_0(ThrottleConfig *cfg, Error **errp)\n{",
"int VAR_0;",
"bool bps_flag, ops_flag;",
"bool bps_max_flag, ops_max_flag;",
"bps_flag = cfg->buckets[THROTTLE_BPS_TOTAL].avg &&\n(cfg->buckets[THROTTLE_BPS_READ].avg ||\ncfg->buckets[THROTTLE_BPS_WRITE].avg);",
"ops_flag = cfg->buckets[THROTTLE_OPS_TO... | [
0,
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,
24
],
[
25
],
[
26
],
[
27
],... |
1,006 | static void put_ebml_uint(ByteIOContext *pb, unsigned int elementid, uint64_t val)
{
int i, bytes = 1;
while (val >> bytes*8 && bytes < 8) bytes++;
put_ebml_id(pb, elementid);
put_ebml_num(pb, bytes, 0);
for (i = bytes - 1; i >= 0; i--)
put_byte(pb, val >> i*8);
}
| true | FFmpeg | 0b247953c8c63baba1da93e555baff177cdf2137 | static void put_ebml_uint(ByteIOContext *pb, unsigned int elementid, uint64_t val)
{
int i, bytes = 1;
while (val >> bytes*8 && bytes < 8) bytes++;
put_ebml_id(pb, elementid);
put_ebml_num(pb, bytes, 0);
for (i = bytes - 1; i >= 0; i--)
put_byte(pb, val >> i*8);
}
| {
"code": [
" while (val >> bytes*8 && bytes < 8) bytes++;"
],
"line_no": [
7
]
} | static void FUNC_0(ByteIOContext *VAR_0, unsigned int VAR_1, uint64_t VAR_2)
{
int VAR_3, VAR_4 = 1;
while (VAR_2 >> VAR_4*8 && VAR_4 < 8) VAR_4++;
put_ebml_id(VAR_0, VAR_1);
put_ebml_num(VAR_0, VAR_4, 0);
for (VAR_3 = VAR_4 - 1; VAR_3 >= 0; VAR_3--)
put_byte(VAR_0, VAR_2 >> VAR_3*8... | [
"static void FUNC_0(ByteIOContext *VAR_0, unsigned int VAR_1, uint64_t VAR_2)\n{",
"int VAR_3, VAR_4 = 1;",
"while (VAR_2 >> VAR_4*8 && VAR_4 < 8) VAR_4++;",
"put_ebml_id(VAR_0, VAR_1);",
"put_ebml_num(VAR_0, VAR_4, 0);",
"for (VAR_3 = VAR_4 - 1; VAR_3 >= 0; VAR_3--)",
"put_byte(VAR_0, VAR_2 >> VAR_3*8)... | [
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
1,007 | PCIBus *pci_grackle_init(uint32_t base, qemu_irq *pic)
{
DeviceState *dev;
SysBusDevice *s;
GrackleState *d;
dev = qdev_create(NULL, "grackle");
qdev_init(dev);
s = sysbus_from_qdev(dev);
d = FROM_SYSBUS(GrackleState, s);
d->host_state.bus = pci_register_bus(&d->busdev.qdev, "... | true | qemu | e23a1b33b53d25510320b26d9f154e19c6c99725 | PCIBus *pci_grackle_init(uint32_t base, qemu_irq *pic)
{
DeviceState *dev;
SysBusDevice *s;
GrackleState *d;
dev = qdev_create(NULL, "grackle");
qdev_init(dev);
s = sysbus_from_qdev(dev);
d = FROM_SYSBUS(GrackleState, s);
d->host_state.bus = pci_register_bus(&d->busdev.qdev, "... | {
"code": [
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" ... | PCIBus *FUNC_0(uint32_t base, qemu_irq *pic)
{
DeviceState *dev;
SysBusDevice *s;
GrackleState *d;
dev = qdev_create(NULL, "grackle");
qdev_init(dev);
s = sysbus_from_qdev(dev);
d = FROM_SYSBUS(GrackleState, s);
d->host_state.bus = pci_register_bus(&d->busdev.qdev, "pci",
... | [
"PCIBus *FUNC_0(uint32_t base, qemu_irq *pic)\n{",
"DeviceState *dev;",
"SysBusDevice *s;",
"GrackleState *d;",
"dev = qdev_create(NULL, \"grackle\");",
"qdev_init(dev);",
"s = sysbus_from_qdev(dev);",
"d = FROM_SYSBUS(GrackleState, s);",
"d->host_state.bus = pci_register_bus(&d->busdev.qdev, \"pci\... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23,
25,
27
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
]
] |
1,008 | static void xan_unpack(unsigned char *dest, const unsigned char *src, int dest_len)
{
unsigned char opcode;
int size;
unsigned char *dest_end = dest + dest_len;
while (dest < dest_end) {
opcode = *src++;
if (opcode < 0xe0) {
int size2, back;
if ( (opc... | true | FFmpeg | 5279141c1d7a72c467b7e0666fc2275cbcec4668 | static void xan_unpack(unsigned char *dest, const unsigned char *src, int dest_len)
{
unsigned char opcode;
int size;
unsigned char *dest_end = dest + dest_len;
while (dest < dest_end) {
opcode = *src++;
if (opcode < 0xe0) {
int size2, back;
if ( (opc... | {
"code": [
"static void xan_unpack(unsigned char *dest, const unsigned char *src, int dest_len)",
" while (dest < dest_end) {",
" if (size + size2 > dest_end - dest)"
],
"line_no": [
1,
13,
63
]
} | static void FUNC_0(unsigned char *VAR_0, const unsigned char *VAR_1, int VAR_2)
{
unsigned char VAR_3;
int VAR_4;
unsigned char *VAR_5 = VAR_0 + VAR_2;
while (VAR_0 < VAR_5) {
VAR_3 = *VAR_1++;
if (VAR_3 < 0xe0) {
int VAR_6, VAR_7;
if ( (VAR_3 & 0x80)... | [
"static void FUNC_0(unsigned char *VAR_0, const unsigned char *VAR_1, int VAR_2)\n{",
"unsigned char VAR_3;",
"int VAR_4;",
"unsigned char *VAR_5 = VAR_0 + VAR_2;",
"while (VAR_0 < VAR_5) {",
"VAR_3 = *VAR_1++;",
"if (VAR_3 < 0xe0) {",
"int VAR_6, VAR_7;",
"if ( (VAR_3 & 0x80) == 0 ) {",
"VAR_4 = ... | [
1,
0,
0,
0,
1,
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33
],
[
37
],
[
41
],
[
45
],
[
47
],
[
51
],
[
55
],
[
59
],
[
61
... |
1,009 | static int adx_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
int buf_size = avpkt->size;
ADXContext *c = avctx->priv_data;
int16_t *samples;
const uint8_t *buf = avpkt->data;
int num_blocks, ch, ret;
if ... | false | FFmpeg | 8dfb13ea59f87365f407dfe4fc196b50e3fad92b | static int adx_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
int buf_size = avpkt->size;
ADXContext *c = avctx->priv_data;
int16_t *samples;
const uint8_t *buf = avpkt->data;
int num_blocks, ch, ret;
if ... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
int VAR_4 = VAR_3->size;
ADXContext *c = VAR_0->priv_data;
int16_t *samples;
const uint8_t *VAR_5 = VAR_3->VAR_1;
int VAR_6, VAR_7, VAR_8;
if (c->eof) {
... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"int VAR_4 = VAR_3->size;",
"ADXContext *c = VAR_0->priv_data;",
"int16_t *samples;",
"const uint8_t *VAR_5 = VAR_3->VAR_1;",
"int VAR_6, VAR_7, VAR_8;",
"if (c->eof) {",
"*VAR_2 = 0;",
"return VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,... |
1,010 | static inline void RENAME(bgr15ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width)
{
int i;
assert(src1==src2);
for(i=0; i<width; i++)
{
int d0= ((uint32_t*)src1)[i];
int dl= (d0&0x03E07C1F);
int dh= ((d0>>5)&0x03E0F81F);
int dh2= (dh>>11) + (dh<<21);
int d= d... | true | FFmpeg | 2da0d70d5eebe42f9fcd27ee554419ebe2a5da06 | static inline void RENAME(bgr15ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width)
{
int i;
assert(src1==src2);
for(i=0; i<width; i++)
{
int d0= ((uint32_t*)src1)[i];
int dl= (d0&0x03E07C1F);
int dh= ((d0>>5)&0x03E0F81F);
int dh2= (dh>>11) + (dh<<21);
int d= d... | {
"code": [
"\tint i;",
"\tint i;",
"\tint i;",
"\tint i;",
"\tfor(i=0; i<width; i++)",
"\tint i;",
"\tfor(i=0; i<width; i++)",
"\tint i;",
"\tfor(i=0; i<width; i++)",
"\tint i;",
"\tfor(i=0; i<width; i++)",
"\tint i;",
"\tfor(i=0; i<width; i++)",
"\tint i;",
... | static inline void FUNC_0(bgr15ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width)
{
int VAR_0;
assert(src1==src2);
for(VAR_0=0; VAR_0<width; VAR_0++)
{
int d0= ((uint32_t*)src1)[VAR_0];
int dl= (d0&0x03E07C1F);
int dh= ((d0>>5)&0x03E0F81F);
int dh2= (dh>>11) + (... | [
"static inline void FUNC_0(bgr15ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width)\n{",
"int VAR_0;",
"assert(src1==src2);",
"for(VAR_0=0; VAR_0<width; VAR_0++)",
"{",
"int d0= ((uint32_t*)src1)[VAR_0];",
"int dl= (d0&0x03E07C1F);",
"int dh= ((d0>>5)&0x03E0F81F);",
"int dh2... | [
0,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
1,011 | static int matroska_parse_cluster_incremental(MatroskaDemuxContext *matroska)
{
EbmlList *blocks_list;
MatroskaBlock *blocks;
int i, res;
res = ebml_parse(matroska,
matroska_cluster_incremental_parsing,
&matroska->current_cluster);
if (res == 1) {
... | true | FFmpeg | 762d4335aec2e5299a06bfbce15d21336af19464 | static int matroska_parse_cluster_incremental(MatroskaDemuxContext *matroska)
{
EbmlList *blocks_list;
MatroskaBlock *blocks;
int i, res;
res = ebml_parse(matroska,
matroska_cluster_incremental_parsing,
&matroska->current_cluster);
if (res == 1) {
... | {
"code": [
" if (res < 0) matroska->done = 1;"
],
"line_no": [
111
]
} | static int FUNC_0(MatroskaDemuxContext *VAR_0)
{
EbmlList *blocks_list;
MatroskaBlock *blocks;
int VAR_1, VAR_2;
VAR_2 = ebml_parse(VAR_0,
matroska_cluster_incremental_parsing,
&VAR_0->current_cluster);
if (VAR_2 == 1) {
if (VAR_0-... | [
"static int FUNC_0(MatroskaDemuxContext *VAR_0)\n{",
"EbmlList *blocks_list;",
"MatroskaBlock *blocks;",
"int VAR_1, VAR_2;",
"VAR_2 = ebml_parse(VAR_0,\nmatroska_cluster_incremental_parsing,\n&VAR_0->current_cluster);",
"if (VAR_2 == 1) {",
"if (VAR_0->current_cluster_pos)\nebml_level_end(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,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13,
15
],
[
17
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37,
39
],
[
41,
43,
45
],
[
49,
51,
53,
55
],
[... |
1,012 | static int cache_read(URLContext *h, unsigned char *buf, int size)
{
Context *c= h->priv_data;
CacheEntry *entry, *next[2] = {NULL, NULL};
int r;
entry = av_tree_find(c->root, &c->logical_pos, cmp, (void**)next);
if (!entry)
entry = next[0];
if (entry) {
int64_t in... | true | FFmpeg | d917f25658c47b617420aa7a389cc354d6580ee4 | static int cache_read(URLContext *h, unsigned char *buf, int size)
{
Context *c= h->priv_data;
CacheEntry *entry, *next[2] = {NULL, NULL};
int r;
entry = av_tree_find(c->root, &c->logical_pos, cmp, (void**)next);
if (!entry)
entry = next[0];
if (entry) {
int64_t in... | {
"code": [
" int r;"
],
"line_no": [
9
]
} | static int FUNC_0(URLContext *VAR_0, unsigned char *VAR_1, int VAR_2)
{
Context *c= VAR_0->priv_data;
CacheEntry *entry, *next[2] = {NULL, NULL};
int VAR_3;
entry = av_tree_find(c->root, &c->logical_pos, cmp, (void**)next);
if (!entry)
entry = next[0];
if (entry) {
... | [
"static int FUNC_0(URLContext *VAR_0, unsigned char *VAR_1, int VAR_2)\n{",
"Context *c= VAR_0->priv_data;",
"CacheEntry *entry, *next[2] = {NULL, NULL};",
"int VAR_3;",
"entry = av_tree_find(c->root, &c->logical_pos, cmp, (void**)next);",
"if (!entry)\nentry = next[0];",
"if (entry) {",
"int64_t in_b... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
1,013 | const AVOption *av_opt_find(void *obj, const char *name, const char *unit,
int opt_flags, int search_flags)
{
AVClass *c = *(AVClass**)obj;
const AVOption *o = NULL;
if (c->opt_find && search_flags & AV_OPT_SEARCH_CHILDREN &&
(o = c->opt_find(obj, name, unit, opt_... | false | FFmpeg | a726d7fd4e0b112b276678ea9da9c9b3097e8b8f | const AVOption *av_opt_find(void *obj, const char *name, const char *unit,
int opt_flags, int search_flags)
{
AVClass *c = *(AVClass**)obj;
const AVOption *o = NULL;
if (c->opt_find && search_flags & AV_OPT_SEARCH_CHILDREN &&
(o = c->opt_find(obj, name, unit, opt_... | {
"code": [],
"line_no": []
} | const AVOption *FUNC_0(void *obj, const char *name, const char *unit,
int opt_flags, int search_flags)
{
AVClass *c = *(AVClass**)obj;
const AVOption *VAR_0 = NULL;
if (c->opt_find && search_flags & AV_OPT_SEARCH_CHILDREN &&
(VAR_0 = c->opt_find(obj, name, unit, o... | [
"const AVOption *FUNC_0(void *obj, const char *name, const char *unit,\nint opt_flags, int search_flags)\n{",
"AVClass *c = *(AVClass**)obj;",
"const AVOption *VAR_0 = NULL;",
"if (c->opt_find && search_flags & AV_OPT_SEARCH_CHILDREN &&\n(VAR_0 = c->opt_find(obj, name, unit, opt_flags, search_flags)))\nreturn... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13,
15,
17
],
[
21
],
[
23,
25,
27
],
[
29
],
[
31
],
[
33
]
] |
1,014 | static int vcr1_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
VCR1Context *const a = avctx->priv_data;
AVFrame *const p = data;
const uint8_t *bytestream = avpkt->data;
const uint8_t *bytestream_end = bytestream + avpk... | false | FFmpeg | 77ef538818678fd8bcdf37b77923d52543b750f0 | static int vcr1_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
VCR1Context *const a = avctx->priv_data;
AVFrame *const p = data;
const uint8_t *bytestream = avpkt->data;
const uint8_t *bytestream_end = bytestream + avpk... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
VCR1Context *const a = VAR_0->priv_data;
AVFrame *const p = VAR_1;
const uint8_t *VAR_4 = VAR_3->VAR_1;
const uint8_t *VAR_5 = VAR_4 + VAR_3->size;
int VAR_6, VAR_7,... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"VCR1Context *const a = VAR_0->priv_data;",
"AVFrame *const p = VAR_1;",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"const uint8_t *VAR_5 = VAR_4 + VAR_3->size;",
"int VAR_6, VAR_7, VAR_8, VAR_9;",
"if(V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
... |
1,015 | static void fill_slice_long(AVCodecContext *avctx, DXVA_Slice_H264_Long *slice,
unsigned position, unsigned size)
{
const H264Context *h = avctx->priv_data;
struct dxva_context *ctx = avctx->hwaccel_context;
unsigned list;
memset(slice, 0, sizeof(*slice));
slice-... | false | FFmpeg | 276839b8de7ff836a529bbd6221f615a343b23e1 | static void fill_slice_long(AVCodecContext *avctx, DXVA_Slice_H264_Long *slice,
unsigned position, unsigned size)
{
const H264Context *h = avctx->priv_data;
struct dxva_context *ctx = avctx->hwaccel_context;
unsigned list;
memset(slice, 0, sizeof(*slice));
slice-... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVCodecContext *VAR_0, DXVA_Slice_H264_Long *VAR_1,
unsigned VAR_2, unsigned VAR_3)
{
const H264Context *VAR_4 = VAR_0->priv_data;
struct dxva_context *VAR_5 = VAR_0->hwaccel_context;
unsigned VAR_6;
memset(VAR_1, 0, sizeof(*VAR_1));
VAR_1->BSN... | [
"static void FUNC_0(AVCodecContext *VAR_0, DXVA_Slice_H264_Long *VAR_1,\nunsigned VAR_2, unsigned VAR_3)\n{",
"const H264Context *VAR_4 = VAR_0->priv_data;",
"struct dxva_context *VAR_5 = VAR_0->hwaccel_context;",
"unsigned VAR_6;",
"memset(VAR_1, 0, sizeof(*VAR_1));",
"VAR_1->BSNALunitDataLocation = 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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41,
43
],
[
45,
47
],
[
49
... |
1,016 | static char* mpjpeg_get_boundary(AVIOContext* pb)
{
uint8_t *mime_type = NULL;
const char *start;
const char *end;
uint8_t *res = NULL;
int len;
/* get MIME type, and skip to the first parameter */
av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type);
start = mi... | false | FFmpeg | 7fd1c85e51958050180b37a1bf4ce833d44f91e8 | static char* mpjpeg_get_boundary(AVIOContext* pb)
{
uint8_t *mime_type = NULL;
const char *start;
const char *end;
uint8_t *res = NULL;
int len;
av_opt_get(pb, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type);
start = mime_type;
while (start != NULL && *start != '\0'... | {
"code": [],
"line_no": []
} | static char* FUNC_0(AVIOContext* VAR_0)
{
uint8_t *mime_type = NULL;
const char *VAR_1;
const char *VAR_2;
uint8_t *res = NULL;
int VAR_3;
av_opt_get(VAR_0, "mime_type", AV_OPT_SEARCH_CHILDREN, &mime_type);
VAR_1 = mime_type;
while (VAR_1 != NULL && *VAR_1 != '\0') {... | [
"static char* FUNC_0(AVIOContext* VAR_0)\n{",
"uint8_t *mime_type = NULL;",
"const char *VAR_1;",
"const char *VAR_2;",
"uint8_t *res = NULL;",
"int VAR_3;",
"av_opt_get(VAR_0, \"mime_type\", AV_OPT_SEARCH_CHILDREN, &mime_type);",
"VAR_1 = mime_type;",
"while (VAR_1 != NULL && *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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
33,
35
],
[
39
],
[
41
],
[
43,
45
],
[
47,
49
],
[
51
],
[
53
... |
1,017 | static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)
{
AVPacket pkt1, *pkt = &pkt1;
AVStream *st;
int read_size, i, ret;
int64_t end_time;
int64_t filesize, offset, duration;
int retry = 0;
/* flush packet queue */
flush_packet_queue(ic);
for (... | false | FFmpeg | 424599c7cc723ccf6b0b7976d87dd220fffa8934 | static void estimate_timings_from_pts(AVFormatContext *ic, int64_t old_offset)
{
AVPacket pkt1, *pkt = &pkt1;
AVStream *st;
int read_size, i, ret;
int64_t end_time;
int64_t filesize, offset, duration;
int retry = 0;
flush_packet_queue(ic);
for (i = 0; i < ic->nb_stream... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1)
{
AVPacket pkt1, *pkt = &pkt1;
AVStream *st;
int VAR_2, VAR_3, VAR_4;
int64_t end_time;
int64_t filesize, offset, duration;
int VAR_5 = 0;
flush_packet_queue(VAR_0);
for (VAR_3 = 0; VAR_3 < VAR_0->nb_streams; VA... | [
"static void FUNC_0(AVFormatContext *VAR_0, int64_t VAR_1)\n{",
"AVPacket pkt1, *pkt = &pkt1;",
"AVStream *st;",
"int VAR_2, VAR_3, VAR_4;",
"int64_t end_time;",
"int64_t filesize, offset, duration;",
"int VAR_5 = 0;",
"flush_packet_queue(VAR_0);",
"for (VAR_3 = 0; VAR_3 < VAR_0->nb_streams; 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
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
25
],
[
27
],
[
29,
31,
33,
35,
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
57
],
[
59
... |
1,019 | int init_put_byte(ByteIOContext *s,
unsigned char *buffer,
int buffer_size,
int write_flag,
void *opaque,
int (*read_packet)(void *opaque, uint8_t *buf, int buf_size),
int (*write_packet)(void *opaque, uint... | true | FFmpeg | 9daa4ceaa3661bc7f994d2864e5599934e9282ce | int init_put_byte(ByteIOContext *s,
unsigned char *buffer,
int buffer_size,
int write_flag,
void *opaque,
int (*read_packet)(void *opaque, uint8_t *buf, int buf_size),
int (*write_packet)(void *opaque, uint... | {
"code": [
" url_resetbuf(s, write_flag ? URL_WRONLY : URL_RDONLY);"
],
"line_no": [
25
]
} | int FUNC_0(ByteIOContext *VAR_0,
unsigned char *VAR_1,
int VAR_2,
int VAR_3,
void *VAR_9,
int (*VAR_5)(void *VAR_9, uint8_t *VAR_9, int VAR_9),
int (*VAR_8)(void *VAR_9, uint8_t *VAR_9, int VAR_9),
... | [
"int FUNC_0(ByteIOContext *VAR_0,\nunsigned char *VAR_1,\nint VAR_2,\nint VAR_3,\nvoid *VAR_9,\nint (*VAR_5)(void *VAR_9, uint8_t *VAR_9, int VAR_9),\nint (*VAR_8)(void *VAR_9, uint8_t *VAR_9, int VAR_9),\nVAR_9 (*seek)(void *VAR_9, VAR_9 offset, int whence))\n{",
"VAR_0->VAR_1 = VAR_1;",
"VAR_0->VAR_2 = VAR_2;... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13,
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
1,020 | static void vc1_decode_skip_blocks(VC1Context *v)
{
MpegEncContext *s = &v->s;
if (!v->s.last_picture.f.data[0])
return;
ff_er_add_slice(&s->er, 0, s->start_mb_y, s->mb_width - 1, s->end_mb_y - 1, ER_MB_END);
s->first_slice_line = 1;
for (s->mb_y = s->start_mb_y; s->mb_y < s->end_... | true | FFmpeg | f6774f905fb3cfdc319523ac640be30b14c1bc55 | static void vc1_decode_skip_blocks(VC1Context *v)
{
MpegEncContext *s = &v->s;
if (!v->s.last_picture.f.data[0])
return;
ff_er_add_slice(&s->er, 0, s->start_mb_y, s->mb_width - 1, s->end_mb_y - 1, ER_MB_END);
s->first_slice_line = 1;
for (s->mb_y = s->start_mb_y; s->mb_y < s->end_... | {
"code": [
" if (!v->s.last_picture.f.data[0])",
" memcpy(s->dest[0], s->last_picture.f.data[0] + s->mb_y * 16 * s->linesize, s->linesize * 16);",
" memcpy(s->dest[1], s->last_picture.f.data[1] + s->mb_y * 8 * s->uvlinesize, s->uvlinesize * 8);",
" memcpy(s->dest[2], s->... | static void FUNC_0(VC1Context *VAR_0)
{
MpegEncContext *s = &VAR_0->s;
if (!VAR_0->s.last_picture.f.data[0])
return;
ff_er_add_slice(&s->er, 0, s->start_mb_y, s->mb_width - 1, s->end_mb_y - 1, ER_MB_END);
s->first_slice_line = 1;
for (s->mb_y = s->start_mb_y; s->mb_y < s->end_mb_y... | [
"static void FUNC_0(VC1Context *VAR_0)\n{",
"MpegEncContext *s = &VAR_0->s;",
"if (!VAR_0->s.last_picture.f.data[0])\nreturn;",
"ff_er_add_slice(&s->er, 0, s->start_mb_y, s->mb_width - 1, s->end_mb_y - 1, ER_MB_END);",
"s->first_slice_line = 1;",
"for (s->mb_y = s->start_mb_y; s->mb_y < s->end_mb_y; s->mb... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
1,022 | static void psy_3gpp_analyze_channel(FFPsyContext *ctx, int channel,
const float *coefs, const FFPsyWindowInfo *wi)
{
AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data;
AacPsyChannel *pch = &pctx->ch[channel];
int start = 0;
int i, w, g;
float d... | true | FFmpeg | 21e5dd93d772ed23d0af3dbc9cdfc37f51b05629 | static void psy_3gpp_analyze_channel(FFPsyContext *ctx, int channel,
const float *coefs, const FFPsyWindowInfo *wi)
{
AacPsyContext *pctx = (AacPsyContext*) ctx->model_priv_data;
AacPsyChannel *pch = &pctx->ch[channel];
int start = 0;
int i, w, g;
float d... | {
"code": [
" float desired_bits, desired_pe, delta_pe, reduction, spread_en[128] = {0};"
],
"line_no": [
15
]
} | static void FUNC_0(FFPsyContext *VAR_0, int VAR_1,
const float *VAR_2, const FFPsyWindowInfo *VAR_3)
{
AacPsyContext *pctx = (AacPsyContext*) VAR_0->model_priv_data;
AacPsyChannel *pch = &pctx->ch[VAR_1];
int VAR_4 = 0;
int VAR_5, VAR_6, VAR_7;
float VAR_... | [
"static void FUNC_0(FFPsyContext *VAR_0, int VAR_1,\nconst float *VAR_2, const FFPsyWindowInfo *VAR_3)\n{",
"AacPsyContext *pctx = (AacPsyContext*) VAR_0->model_priv_data;",
"AacPsyChannel *pch = &pctx->ch[VAR_1];",
"int VAR_4 = 0;",
"int VAR_5, VAR_6, VAR_7;",
"float VAR_8, VAR_9, VAR_10, VAR_11, VAR_12... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
1,023 | decode_coeffs_b_generic(VP56RangeCoder *c, int16_t *coef, int n_coeffs,
int is_tx32x32, int is8bitsperpixel, int bpp, unsigned (*cnt)[6][3],
unsigned (*eob)[6][2], uint8_t (*p)[6][11],
int nnz, const int16_t *scan, const int16_t (*nb)[2],
... | true | FFmpeg | d4ee76780869c659a5d3b0815c56024ab260a81d | decode_coeffs_b_generic(VP56RangeCoder *c, int16_t *coef, int n_coeffs,
int is_tx32x32, int is8bitsperpixel, int bpp, unsigned (*cnt)[6][3],
unsigned (*eob)[6][2], uint8_t (*p)[6][11],
int nnz, const int16_t *scan, const int16_t (*nb)[2],
... | {
"code": [
" STORE_COEF(coef, rc, ((vp8_rac_get(c) ? -val : val) * qmul[!!i]) / 2);",
" STORE_COEF(coef, rc, (vp8_rac_get(c) ? -val : val) * qmul[!!i]);"
],
"line_no": [
227,
231
]
} | FUNC_0(VP56RangeCoder *VAR_0, VAR_11 *VAR_1, int VAR_2,
int VAR_3, int VAR_4, int VAR_5, unsigned (*VAR_6)[6][3],
unsigned (*VAR_7)[6][2], VAR_8 (*p)[6][11],
int VAR_9, const VAR_11 *VAR_10, const VAR_11 (*nb)[2],
const ... | [
"FUNC_0(VP56RangeCoder *VAR_0, VAR_11 *VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5, unsigned (*VAR_6)[6][3],\nunsigned (*VAR_7)[6][2], VAR_8 (*p)[6][11],\nint VAR_9, const VAR_11 *VAR_10, const VAR_11 (*nb)[2],\nconst VAR_11 *VAR_12, const VAR_11 *VAR_13)\n{",
"int VAR_14 = 0, VAR_15 = 0, VAR_16 = VAR_12[V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31,
33
],
[
37,
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[
53,
55
... |
1,024 | static void set_pci_devfn(Object *obj, Visitor *v, void *opaque,
const char *name, Error **errp)
{
DeviceState *dev = DEVICE(obj);
Property *prop = opaque;
uint32_t *ptr = qdev_get_prop_ptr(dev, prop);
unsigned int slot, fn, n;
Error *local_err = NULL;
char *str... | true | qemu | a340046614644a8958883954b96e92a87a5e78f7 | static void set_pci_devfn(Object *obj, Visitor *v, void *opaque,
const char *name, Error **errp)
{
DeviceState *dev = DEVICE(obj);
Property *prop = opaque;
uint32_t *ptr = qdev_get_prop_ptr(dev, prop);
unsigned int slot, fn, n;
Error *local_err = NULL;
char *str... | {
"code": [
" char *str = (char *)\"\";"
],
"line_no": [
17
]
} | static void FUNC_0(Object *VAR_0, Visitor *VAR_1, void *VAR_2,
const char *VAR_3, Error **VAR_4)
{
DeviceState *dev = DEVICE(VAR_0);
Property *prop = VAR_2;
uint32_t *ptr = qdev_get_prop_ptr(dev, prop);
unsigned int VAR_5, VAR_6, VAR_7;
Error *local_err = NULL;
... | [
"static void FUNC_0(Object *VAR_0, Visitor *VAR_1, void *VAR_2,\nconst char *VAR_3, Error **VAR_4)\n{",
"DeviceState *dev = DEVICE(VAR_0);",
"Property *prop = VAR_2;",
"uint32_t *ptr = qdev_get_prop_ptr(dev, prop);",
"unsigned int VAR_5, VAR_6, VAR_7;",
"Error *local_err = NULL;",
"char *VAR_8 = (char *... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[... |
1,025 | static void error_callback_bh(void *opaque)
{
Coroutine *co = opaque;
qemu_coroutine_enter(co);
}
| true | qemu | e5c67ab552fb056827b5b40356c0ef235e975e7e | static void error_callback_bh(void *opaque)
{
Coroutine *co = opaque;
qemu_coroutine_enter(co);
}
| {
"code": [
"static void error_callback_bh(void *opaque)",
" Coroutine *co = opaque;",
" qemu_coroutine_enter(co);"
],
"line_no": [
1,
5,
7
]
} | static void FUNC_0(void *VAR_0)
{
Coroutine *co = VAR_0;
qemu_coroutine_enter(co);
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"Coroutine *co = VAR_0;",
"qemu_coroutine_enter(co);",
"}"
] | [
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
1,026 | void *colo_process_incoming_thread(void *opaque)
{
MigrationIncomingState *mis = opaque;
QEMUFile *fb = NULL;
QIOChannelBuffer *bioc = NULL; /* Cache incoming device state */
uint64_t total_size;
uint64_t value;
Error *local_err = NULL;
migrate_set_state(&mis->state, MIGRATION_STAT... | true | qemu | 02ba9265e8d65f24d0cdca158d96e0b0451f6b71 | void *colo_process_incoming_thread(void *opaque)
{
MigrationIncomingState *mis = opaque;
QEMUFile *fb = NULL;
QIOChannelBuffer *bioc = NULL;
uint64_t total_size;
uint64_t value;
Error *local_err = NULL;
migrate_set_state(&mis->state, MIGRATION_STATUS_ACTIVE,
... | {
"code": [
" int request;"
],
"line_no": [
77
]
} | void *FUNC_0(void *VAR_0)
{
MigrationIncomingState *mis = VAR_0;
QEMUFile *fb = NULL;
QIOChannelBuffer *bioc = NULL;
uint64_t total_size;
uint64_t value;
Error *local_err = NULL;
migrate_set_state(&mis->state, MIGRATION_STATUS_ACTIVE,
MIGRATION_STATUS_COLO);... | [
"void *FUNC_0(void *VAR_0)\n{",
"MigrationIncomingState *mis = VAR_0;",
"QEMUFile *fb = NULL;",
"QIOChannelBuffer *bioc = NULL;",
"uint64_t total_size;",
"uint64_t value;",
"Error *local_err = NULL;",
"migrate_set_state(&mis->state, MIGRATION_STATUS_ACTIVE,\nMIGRATION_STATUS_COLO);",
"failover_init_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
51
],
[
55
],
[
57
],
[
59
],
[
63,
65
... |
1,027 | static int get_uint8(QEMUFile *f, void *pv, size_t size)
{
uint8_t *v = pv;
qemu_get_8s(f, v);
return 0;
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static int get_uint8(QEMUFile *f, void *pv, size_t size)
{
uint8_t *v = pv;
qemu_get_8s(f, v);
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)
{
uint8_t *v = VAR_1;
qemu_get_8s(VAR_0, v);
return 0;
}
| [
"static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{",
"uint8_t *v = VAR_1;",
"qemu_get_8s(VAR_0, v);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
1,028 | static uint64_t virtio_pci_config_read(void *opaque, hwaddr addr,
unsigned size)
{
VirtIOPCIProxy *proxy = opaque;
VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);
uint32_t config = VIRTIO_PCI_CONFIG(&proxy->pci_dev);
uint64_t val = 0;
if (addr <... | true | qemu | 616a655219a92ae7cf5d6a7862e6489c6282009e | static uint64_t virtio_pci_config_read(void *opaque, hwaddr addr,
unsigned size)
{
VirtIOPCIProxy *proxy = opaque;
VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);
uint32_t config = VIRTIO_PCI_CONFIG(&proxy->pci_dev);
uint64_t val = 0;
if (addr <... | {
"code": [
" if (virtio_is_big_endian()) {",
" if (virtio_is_big_endian()) {",
" if (virtio_is_big_endian()) {",
" if (virtio_is_big_endian()) {"
],
"line_no": [
37,
37,
37,
37
]
} | static uint64_t FUNC_0(void *opaque, hwaddr addr,
unsigned size)
{
VirtIOPCIProxy *proxy = opaque;
VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);
uint32_t config = VIRTIO_PCI_CONFIG(&proxy->pci_dev);
uint64_t val = 0;
if (addr < config) {
... | [
"static uint64_t FUNC_0(void *opaque, hwaddr addr,\nunsigned size)\n{",
"VirtIOPCIProxy *proxy = opaque;",
"VirtIODevice *vdev = virtio_bus_get_device(&proxy->bus);",
"uint32_t config = VIRTIO_PCI_CONFIG(&proxy->pci_dev);",
"uint64_t val = 0;",
"if (addr < config) {",
"return virtio_ioport_read(proxy, a... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
... |
1,029 | int net_init_socket(QemuOpts *opts, const char *name, VLANState *vlan)
{
if (qemu_opt_get(opts, "fd")) {
int fd;
if (qemu_opt_get(opts, "listen") ||
qemu_opt_get(opts, "connect") ||
qemu_opt_get(opts, "mcast") ||
qemu_opt_get(opts, "localaddr")) {
... | true | qemu | 6687b79d636cd60ed9adb1177d0d946b58fa7717 | int net_init_socket(QemuOpts *opts, const char *name, VLANState *vlan)
{
if (qemu_opt_get(opts, "fd")) {
int fd;
if (qemu_opt_get(opts, "listen") ||
qemu_opt_get(opts, "connect") ||
qemu_opt_get(opts, "mcast") ||
qemu_opt_get(opts, "localaddr")) {
... | {
"code": [
" return -1;",
" return -1;",
" return -1;",
" return -1;",
"int net_init_socket(QemuOpts *opts, const char *name, VLANState *vlan)"
],
"line_no": [
189,
21,
21,
171,
1
]
} | int FUNC_0(QemuOpts *VAR_0, const char *VAR_1, VLANState *VAR_2)
{
if (qemu_opt_get(VAR_0, "VAR_3")) {
int VAR_3;
if (qemu_opt_get(VAR_0, "VAR_4") ||
qemu_opt_get(VAR_0, "VAR_5") ||
qemu_opt_get(VAR_0, "VAR_6") ||
qemu_opt_get(VAR_0, "VAR_9")) {
... | [
"int FUNC_0(QemuOpts *VAR_0, const char *VAR_1, VLANState *VAR_2)\n{",
"if (qemu_opt_get(VAR_0, \"VAR_3\")) {",
"int VAR_3;",
"if (qemu_opt_get(VAR_0, \"VAR_4\") ||\nqemu_opt_get(VAR_0, \"VAR_5\") ||\nqemu_opt_get(VAR_0, \"VAR_6\") ||\nqemu_opt_get(VAR_0, \"VAR_9\")) {",
"error_report(\"VAR_4=, VAR_5=, VAR_... | [
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13,
15,
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49,
51,
53,
55... |
1,030 | static int dvvideo_decode_frame(AVCodecContext *avctx,
void *data, int *got_frame,
AVPacket *avpkt)
{
uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
DVVideoContext *s = avctx->priv_data;
const uint8_t* vsc_pack;
int a... | false | FFmpeg | 5307fa00a45b50897af3d5070e936fcaa82ae19e | static int dvvideo_decode_frame(AVCodecContext *avctx,
void *data, int *got_frame,
AVPacket *avpkt)
{
uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
DVVideoContext *s = avctx->priv_data;
const uint8_t* vsc_pack;
int a... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
uint8_t *buf = VAR_3->VAR_1;
int VAR_4 = VAR_3->size;
DVVideoContext *s = VAR_0->priv_data;
const uint8_t* VAR_5;
int VAR_6, VAR_7, VAR_8;
... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"uint8_t *buf = VAR_3->VAR_1;",
"int VAR_4 = VAR_3->size;",
"DVVideoContext *s = VAR_0->priv_data;",
"const uint8_t* VAR_5;",
"int VAR_6, VAR_7, VAR_8;",
"const DVprofile *VAR_9;",
"VAR_9 = avpriv_dv_frame_profi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
1,031 | static int theora_decode_header(AVCodecContext *avctx, GetBitContext gb)
{
Vp3DecodeContext *s = avctx->priv_data;
s->theora = get_bits_long(&gb, 24);
av_log(avctx, AV_LOG_INFO, "Theora bitstream version %X\n", s->theora);
/* 3.2.0 aka alpha3 has the same frame orientation as original vp3 */
... | false | FFmpeg | e278056fbad7405fc47901faea7de98db003a0fa | static int theora_decode_header(AVCodecContext *avctx, GetBitContext gb)
{
Vp3DecodeContext *s = avctx->priv_data;
s->theora = get_bits_long(&gb, 24);
av_log(avctx, AV_LOG_INFO, "Theora bitstream version %X\n", s->theora);
if (s->theora < 0x030200)
{
s->flipped_image =... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, GetBitContext VAR_1)
{
Vp3DecodeContext *s = VAR_0->priv_data;
s->theora = get_bits_long(&VAR_1, 24);
av_log(VAR_0, AV_LOG_INFO, "Theora bitstream version %X\n", s->theora);
if (s->theora < 0x030200)
{
s->flipped_image = 1;
... | [
"static int FUNC_0(AVCodecContext *VAR_0, GetBitContext VAR_1)\n{",
"Vp3DecodeContext *s = VAR_0->priv_data;",
"s->theora = get_bits_long(&VAR_1, 24);",
"av_log(VAR_0, AV_LOG_INFO, \"Theora bitstream version %X\\n\", s->theora);",
"if (s->theora < 0x030200)\n{",
"s->flipped_image = 1;",
"av_log(VAR_0, A... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49,
51
],
[
53
],
[
57
],
[
59... |
1,032 | static av_cold int init_buffers(SANMVideoContext *ctx)
{
av_fast_padded_malloc(&ctx->frm0, &ctx->frm0_size, ctx->buf_size);
av_fast_padded_malloc(&ctx->frm1, &ctx->frm1_size, ctx->buf_size);
av_fast_padded_malloc(&ctx->frm2, &ctx->frm2_size, ctx->buf_size);
if (!ctx->version)
av_fast_padde... | true | FFmpeg | ca616b0f72c65b0ef5f9e1e6125698b15f50a26e | static av_cold int init_buffers(SANMVideoContext *ctx)
{
av_fast_padded_malloc(&ctx->frm0, &ctx->frm0_size, ctx->buf_size);
av_fast_padded_malloc(&ctx->frm1, &ctx->frm1_size, ctx->buf_size);
av_fast_padded_malloc(&ctx->frm2, &ctx->frm2_size, ctx->buf_size);
if (!ctx->version)
av_fast_padde... | {
"code": [
" av_fast_padded_malloc(&ctx->frm0, &ctx->frm0_size, ctx->buf_size);",
" av_fast_padded_malloc(&ctx->frm1, &ctx->frm1_size, ctx->buf_size);",
" av_fast_padded_malloc(&ctx->frm2, &ctx->frm2_size, ctx->buf_size);",
" av_fast_padded_malloc(&ctx->stored_frame,"
],
"line_no"... | static av_cold int FUNC_0(SANMVideoContext *ctx)
{
av_fast_padded_malloc(&ctx->frm0, &ctx->frm0_size, ctx->buf_size);
av_fast_padded_malloc(&ctx->frm1, &ctx->frm1_size, ctx->buf_size);
av_fast_padded_malloc(&ctx->frm2, &ctx->frm2_size, ctx->buf_size);
if (!ctx->version)
av_fast_padded_mall... | [
"static av_cold int FUNC_0(SANMVideoContext *ctx)\n{",
"av_fast_padded_malloc(&ctx->frm0, &ctx->frm0_size, ctx->buf_size);",
"av_fast_padded_malloc(&ctx->frm1, &ctx->frm1_size, ctx->buf_size);",
"av_fast_padded_malloc(&ctx->frm2, &ctx->frm2_size, ctx->buf_size);",
"if (!ctx->version)\nav_fast_padded_malloc(... | [
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13,
15
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
]
] |
1,034 | int unix_listen_opts(QemuOpts *opts)
{
struct sockaddr_un un;
const char *path = qemu_opt_get(opts, "path");
int sock, fd;
sock = socket(PF_UNIX, SOCK_STREAM, 0);
if (sock < 0) {
perror("socket(unix)");
return -1;
}
memset(&un, 0, sizeof(un));
un.sun_family... | true | qemu | 40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4 | int unix_listen_opts(QemuOpts *opts)
{
struct sockaddr_un un;
const char *path = qemu_opt_get(opts, "path");
int sock, fd;
sock = socket(PF_UNIX, SOCK_STREAM, 0);
if (sock < 0) {
perror("socket(unix)");
return -1;
}
memset(&un, 0, sizeof(un));
un.sun_family... | {
"code": [
" sock = socket(PF_UNIX, SOCK_STREAM, 0);",
" sock = socket(PF_UNIX, SOCK_STREAM, 0);",
" sock = socket(PF_UNIX, SOCK_STREAM, 0);"
],
"line_no": [
13,
13,
13
]
} | int FUNC_0(QemuOpts *VAR_0)
{
struct sockaddr_un VAR_1;
const char *VAR_2 = qemu_opt_get(VAR_0, "VAR_2");
int VAR_3, VAR_4;
VAR_3 = socket(PF_UNIX, SOCK_STREAM, 0);
if (VAR_3 < 0) {
perror("socket(unix)");
return -1;
}
memset(&VAR_1, 0, sizeof(VAR_1));
VAR_... | [
"int FUNC_0(QemuOpts *VAR_0)\n{",
"struct sockaddr_un VAR_1;",
"const char *VAR_2 = qemu_opt_get(VAR_0, \"VAR_2\");",
"int VAR_3, VAR_4;",
"VAR_3 = socket(PF_UNIX, SOCK_STREAM, 0);",
"if (VAR_3 < 0) {",
"perror(\"socket(unix)\");",
"return -1;",
"}",
"memset(&VAR_1, 0, sizeof(VAR_1));",
"VAR_1.s... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
55
],
[
57
],
[
59
],
[... |
1,036 | static void bus_add_child(BusState *bus, DeviceState *child)
{
char name[32];
BusChild *kid = g_malloc0(sizeof(*kid));
if (qdev_hotplug) {
assert(bus->allow_hotplug);
}
kid->index = bus->max_index++;
kid->child = child;
object_ref(OBJECT(kid->child));
QTAILQ_INSER... | true | qemu | 9561fda8d90e176bef598ba87c42a1bd6ad03ef7 | static void bus_add_child(BusState *bus, DeviceState *child)
{
char name[32];
BusChild *kid = g_malloc0(sizeof(*kid));
if (qdev_hotplug) {
assert(bus->allow_hotplug);
}
kid->index = bus->max_index++;
kid->child = child;
object_ref(OBJECT(kid->child));
QTAILQ_INSER... | {
"code": [
" (Object **)&kid->child,",
" NULL);"
],
"line_no": [
39,
41
]
} | static void FUNC_0(BusState *VAR_0, DeviceState *VAR_1)
{
char VAR_2[32];
BusChild *kid = g_malloc0(sizeof(*kid));
if (qdev_hotplug) {
assert(VAR_0->allow_hotplug);
}
kid->index = VAR_0->max_index++;
kid->VAR_1 = VAR_1;
object_ref(OBJECT(kid->VAR_1));
QTAILQ_INSER... | [
"static void FUNC_0(BusState *VAR_0, DeviceState *VAR_1)\n{",
"char VAR_2[32];",
"BusChild *kid = g_malloc0(sizeof(*kid));",
"if (qdev_hotplug) {",
"assert(VAR_0->allow_hotplug);",
"}",
"kid->index = VAR_0->max_index++;",
"kid->VAR_1 = VAR_1;",
"object_ref(OBJECT(kid->VAR_1));",
"QTAILQ_INSERT_HEA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
33
],
[
35,
37,
39,
41
],
[
43
]
] |
1,037 | build_ssdt(GArray *table_data, GArray *linker,
AcpiCpuInfo *cpu, AcpiPmInfo *pm, AcpiMiscInfo *misc,
PcPciInfo *pci, PcGuestInfo *guest_info)
{
MachineState *machine = MACHINE(qdev_get_machine());
uint32_t nr_mem = machine->ram_slots;
unsigned acpi_cpus = guest_info->apic_id_limi... | true | qemu | 8ef3ea253b5aaaa00f3b9999f3ff19e74cfa26f8 | build_ssdt(GArray *table_data, GArray *linker,
AcpiCpuInfo *cpu, AcpiPmInfo *pm, AcpiMiscInfo *misc,
PcPciInfo *pci, PcGuestInfo *guest_info)
{
MachineState *machine = MACHINE(qdev_get_machine());
uint32_t nr_mem = machine->ram_slots;
unsigned acpi_cpus = guest_info->apic_id_limi... | {
"code": [
" aml_append(dev, aml_name_decl(\"_STA\", aml_int(0xB)));"
],
"line_no": [
261
]
} | FUNC_0(GArray *VAR_0, GArray *VAR_1,
AcpiCpuInfo *VAR_2, AcpiPmInfo *VAR_3, AcpiMiscInfo *VAR_4,
PcPciInfo *VAR_5, PcGuestInfo *VAR_6)
{
MachineState *machine = MACHINE(qdev_get_machine());
uint32_t nr_mem = machine->ram_slots;
unsigned VAR_7 = VAR_6->apic_id_limit;
Aml *ssd... | [
"FUNC_0(GArray *VAR_0, GArray *VAR_1,\nAcpiCpuInfo *VAR_2, AcpiPmInfo *VAR_3, AcpiMiscInfo *VAR_4,\nPcPciInfo *VAR_5, PcGuestInfo *VAR_6)\n{",
"MachineState *machine = MACHINE(qdev_get_machine());",
"uint32_t nr_mem = machine->ram_slots;",
"unsigned VAR_7 = VAR_6->apic_id_limit;",
"Aml *ssdt, *sb_scope, *sc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
37
],
[
39
],
[
45
],
[
51
],
[
53
],
[
55
],
[
57
... |
1,039 | static void release_delayed_buffers(PerThreadContext *p)
{
FrameThreadContext *fctx = p->parent;
while (p->num_released_buffers > 0) {
AVFrame *f = &p->released_buffers[--p->num_released_buffers];
pthread_mutex_lock(&fctx->buffer_mutex);
free_progress(f);
f->thread_opa... | true | FFmpeg | 5eafc8b46644764f8aef1b7b2ecae53ee8034822 | static void release_delayed_buffers(PerThreadContext *p)
{
FrameThreadContext *fctx = p->parent;
while (p->num_released_buffers > 0) {
AVFrame *f = &p->released_buffers[--p->num_released_buffers];
pthread_mutex_lock(&fctx->buffer_mutex);
free_progress(f);
f->thread_opa... | {
"code": [
" AVFrame *f = &p->released_buffers[--p->num_released_buffers];"
],
"line_no": [
11
]
} | static void FUNC_0(PerThreadContext *VAR_0)
{
FrameThreadContext *fctx = VAR_0->parent;
while (VAR_0->num_released_buffers > 0) {
AVFrame *f = &VAR_0->released_buffers[--VAR_0->num_released_buffers];
pthread_mutex_lock(&fctx->buffer_mutex);
free_progress(f);
f->thread_... | [
"static void FUNC_0(PerThreadContext *VAR_0)\n{",
"FrameThreadContext *fctx = VAR_0->parent;",
"while (VAR_0->num_released_buffers > 0) {",
"AVFrame *f = &VAR_0->released_buffers[--VAR_0->num_released_buffers];",
"pthread_mutex_lock(&fctx->buffer_mutex);",
"free_progress(f);",
"f->thread_opaque = NULL;"... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
1,041 | double ff_lpc_calc_ref_coefs_f(LPCContext *s, const float *samples, int len,
int order, double *ref)
{
int i;
double signal = 0.0f, avg_err = 0.0f;
double autoc[MAX_LPC_ORDER+1] = {0}, error[MAX_LPC_ORDER+1] = {0};
const double a = 0.5f, b = 1.0f - a;
/* Apply... | true | FFmpeg | 66edd8656b851a0c85ba25ec293cc66192c363ae | double ff_lpc_calc_ref_coefs_f(LPCContext *s, const float *samples, int len,
int order, double *ref)
{
int i;
double signal = 0.0f, avg_err = 0.0f;
double autoc[MAX_LPC_ORDER+1] = {0}, error[MAX_LPC_ORDER+1] = {0};
const double a = 0.5f, b = 1.0f - a;
fo... | {
"code": [
" for (i = 0; i < len; i++) {"
],
"line_no": [
19
]
} | double FUNC_0(LPCContext *VAR_0, const float *VAR_1, int VAR_2,
int VAR_3, double *VAR_4)
{
int VAR_5;
double VAR_6 = 0.0f, VAR_7 = 0.0f;
double VAR_8[MAX_LPC_ORDER+1] = {0}, error[MAX_LPC_ORDER+1] = {0};
const double VAR_9 = 0.5f, VAR_10 = 1.0f - VAR_9;
... | [
"double FUNC_0(LPCContext *VAR_0, const float *VAR_1, int VAR_2,\nint VAR_3, double *VAR_4)\n{",
"int VAR_5;",
"double VAR_6 = 0.0f, VAR_7 = 0.0f;",
"double VAR_8[MAX_LPC_ORDER+1] = {0}, error[MAX_LPC_ORDER+1] = {0};",
"const double VAR_9 = 0.5f, VAR_10 = 1.0f - VAR_9;",
"for (VAR_5 = 0; VAR_5 < VAR_2; VA... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
1,043 | int av_write_trailer(AVFormatContext *s)
{
int ret, i;
for (;; ) {
AVPacket pkt;
ret = interleave_packet(s, &pkt, NULL, 1);
if (ret < 0) //FIXME cleanup needed for ret<0 ?
goto fail;
if (!ret)
break;
ret = s->oformat->write_packet(s, ... | true | FFmpeg | c2cb01d418dd18e1cf997c038d37378d773121be | int av_write_trailer(AVFormatContext *s)
{
int ret, i;
for (;; ) {
AVPacket pkt;
ret = interleave_packet(s, &pkt, NULL, 1);
if (ret < 0)
goto fail;
if (!ret)
break;
ret = s->oformat->write_packet(s, &pkt);
if (ret >= 0)
... | {
"code": [
" ret = s->oformat->write_packet(s, &pkt);"
],
"line_no": [
25
]
} | int FUNC_0(AVFormatContext *VAR_0)
{
int VAR_1, VAR_2;
for (;; ) {
AVPacket pkt;
VAR_1 = interleave_packet(VAR_0, &pkt, NULL, 1);
if (VAR_1 < 0)
goto fail;
if (!VAR_1)
break;
VAR_1 = VAR_0->oformat->write_packet(VAR_0, &pkt);
... | [
"int FUNC_0(AVFormatContext *VAR_0)\n{",
"int VAR_1, VAR_2;",
"for (;; ) {",
"AVPacket pkt;",
"VAR_1 = interleave_packet(VAR_0, &pkt, NULL, 1);",
"if (VAR_1 < 0)\ngoto fail;",
"if (!VAR_1)\nbreak;",
"VAR_1 = VAR_0->oformat->write_packet(VAR_0, &pkt);",
"if (VAR_1 >= 0)\nVAR_0->streams[pkt.stream_ind... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15,
17
],
[
19,
21
],
[
25
],
[
27,
29
],
[
33
],
[
37,
39
],
[
41
],
[
45,
47
],
[
51,
53
],
[
57,
59
],
[
61
],
... |
1,044 | int av_dict_set(AVDictionary **pm, const char *key, const char *value,
int flags)
{
AVDictionary *m = *pm;
AVDictionaryEntry *tag = av_dict_get(m, key, NULL, flags);
char *oldval = NULL;
if (!m)
m = *pm = av_mallocz(sizeof(*m));
if (tag) {
if (flags & AV_... | true | FFmpeg | 1619274fb393f55a365cc10f88faa173c9a8e772 | int av_dict_set(AVDictionary **pm, const char *key, const char *value,
int flags)
{
AVDictionary *m = *pm;
AVDictionaryEntry *tag = av_dict_get(m, key, NULL, flags);
char *oldval = NULL;
if (!m)
m = *pm = av_mallocz(sizeof(*m));
if (tag) {
if (flags & AV_... | {
"code": [
" if (flags & AV_DICT_DONT_OVERWRITE)"
],
"line_no": [
23
]
} | int FUNC_0(AVDictionary **VAR_0, const char *VAR_1, const char *VAR_2,
int VAR_3)
{
AVDictionary *m = *VAR_0;
AVDictionaryEntry *tag = av_dict_get(m, VAR_1, NULL, VAR_3);
char *VAR_4 = NULL;
if (!m)
m = *VAR_0 = av_mallocz(sizeof(*m));
if (tag) {
if (VAR_... | [
"int FUNC_0(AVDictionary **VAR_0, const char *VAR_1, const char *VAR_2,\nint VAR_3)\n{",
"AVDictionary *m = *VAR_0;",
"AVDictionaryEntry *tag = av_dict_get(m, VAR_1, NULL, VAR_3);",
"char *VAR_4 = NULL;",
"if (!m)\nm = *VAR_0 = av_mallocz(sizeof(*m));",
"if (tag) {",
"if (VAR_3 & AV_DICT_DONT_OVERWRITE)... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
21
],
[
23,
25
],
[
27,
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45,
47
],
[
49,
51
],
[
53
... |
1,045 | static void s390_virtio_rng_instance_init(Object *obj)
{
VirtIORNGS390 *dev = VIRTIO_RNG_S390(obj);
object_initialize(&dev->vdev, sizeof(dev->vdev), TYPE_VIRTIO_RNG);
object_property_add_child(obj, "virtio-backend", OBJECT(&dev->vdev), NULL);
object_property_add_link(obj, "rng", TYPE_RNG_BACKEND,
... | true | qemu | 39f72ef94ba74701d18daf82b44c18a60f94eb60 | static void s390_virtio_rng_instance_init(Object *obj)
{
VirtIORNGS390 *dev = VIRTIO_RNG_S390(obj);
object_initialize(&dev->vdev, sizeof(dev->vdev), TYPE_VIRTIO_RNG);
object_property_add_child(obj, "virtio-backend", OBJECT(&dev->vdev), NULL);
object_property_add_link(obj, "rng", TYPE_RNG_BACKEND,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(Object *VAR_0)
{
VirtIORNGS390 *dev = VIRTIO_RNG_S390(VAR_0);
object_initialize(&dev->vdev, sizeof(dev->vdev), TYPE_VIRTIO_RNG);
object_property_add_child(VAR_0, "virtio-backend", OBJECT(&dev->vdev), NULL);
object_property_add_link(VAR_0, "rng", TYPE_RNG_BACKEND,
... | [
"static void FUNC_0(Object *VAR_0)\n{",
"VirtIORNGS390 *dev = VIRTIO_RNG_S390(VAR_0);",
"object_initialize(&dev->vdev, sizeof(dev->vdev), TYPE_VIRTIO_RNG);",
"object_property_add_child(VAR_0, \"virtio-backend\", OBJECT(&dev->vdev), NULL);",
"object_property_add_link(VAR_0, \"rng\", TYPE_RNG_BACKEND,\n(Objec... | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13,
16
],
[
18
]
] |
1,047 | static struct omap_sti_s *omap_sti_init(struct omap_target_agent_s *ta,
MemoryRegion *sysmem,
hwaddr channel_base, qemu_irq irq, omap_clk clk,
CharDriverState *chr)
{
struct omap_sti_s *s = (struct omap_sti_s *)
g_malloc0(sizeof(struct omap_sti_s));
... | true | qemu | b45c03f585ea9bb1af76c73e82195418c294919d | static struct omap_sti_s *omap_sti_init(struct omap_target_agent_s *ta,
MemoryRegion *sysmem,
hwaddr channel_base, qemu_irq irq, omap_clk clk,
CharDriverState *chr)
{
struct omap_sti_s *s = (struct omap_sti_s *)
g_malloc0(sizeof(struct omap_sti_s));
... | {
"code": [
" struct omap_sti_s *s = (struct omap_sti_s *)",
" g_malloc0(sizeof(struct omap_sti_s));"
],
"line_no": [
11,
13
]
} | static struct omap_sti_s *FUNC_0(struct omap_target_agent_s *VAR_0,
MemoryRegion *VAR_1,
hwaddr VAR_2, qemu_irq VAR_3, omap_clk VAR_4,
CharDriverState *VAR_5)
{
struct omap_sti_s *VAR_6 = (struct omap_sti_s *)
g_malloc0(sizeof(struct omap_sti_s));
... | [
"static struct omap_sti_s *FUNC_0(struct omap_target_agent_s *VAR_0,\nMemoryRegion *VAR_1,\nhwaddr VAR_2, qemu_irq VAR_3, omap_clk VAR_4,\nCharDriverState *VAR_5)\n{",
"struct omap_sti_s *VAR_6 = (struct omap_sti_s *)\ng_malloc0(sizeof(struct omap_sti_s));",
"VAR_6->VAR_3 = VAR_3;",
"omap_sti_reset(VAR_6);",
... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11,
13
],
[
17
],
[
19
],
[
23
],
[
27,
29
],
[
31
],
[
35,
37
],
[
39
],
[
43
],
[
45
]
] |
1,048 | void cpu_interrupt(CPUArchState *env, int mask)
{
CPUState *cpu = ENV_GET_CPU(env);
env->interrupt_request |= mask;
cpu_unlink_tb(cpu);
}
| true | qemu | 378df4b23753a11be650af7664ca76bc75cb9f01 | void cpu_interrupt(CPUArchState *env, int mask)
{
CPUState *cpu = ENV_GET_CPU(env);
env->interrupt_request |= mask;
cpu_unlink_tb(cpu);
}
| {
"code": [
" cpu_unlink_tb(cpu);",
" cpu_unlink_tb(cpu);"
],
"line_no": [
11,
11
]
} | void FUNC_0(CPUArchState *VAR_0, int VAR_1)
{
CPUState *cpu = ENV_GET_CPU(VAR_0);
VAR_0->interrupt_request |= VAR_1;
cpu_unlink_tb(cpu);
}
| [
"void FUNC_0(CPUArchState *VAR_0, int VAR_1)\n{",
"CPUState *cpu = ENV_GET_CPU(VAR_0);",
"VAR_0->interrupt_request |= VAR_1;",
"cpu_unlink_tb(cpu);",
"}"
] | [
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
1,049 | static inline int read_huff_channels(MLPDecodeContext *m, GetBitContext *gbp,
unsigned int substr, unsigned int pos)
{
SubStream *s = &m->substream[substr];
unsigned int mat, channel;
for (mat = 0; mat < s->num_primitive_matrices; mat++)
if (s->lsb_bypass... | true | FFmpeg | c535436cbeeab89be64e9f3fd652bc736f2f3245 | static inline int read_huff_channels(MLPDecodeContext *m, GetBitContext *gbp,
unsigned int substr, unsigned int pos)
{
SubStream *s = &m->substream[substr];
unsigned int mat, channel;
for (mat = 0; mat < s->num_primitive_matrices; mat++)
if (s->lsb_bypass... | {
"code": [
" result <<= quant_step_size;"
],
"line_no": [
57
]
} | static inline int FUNC_0(MLPDecodeContext *VAR_0, GetBitContext *VAR_1,
unsigned int VAR_2, unsigned int VAR_3)
{
SubStream *s = &VAR_0->substream[VAR_2];
unsigned int VAR_4, VAR_5;
for (VAR_4 = 0; VAR_4 < s->num_primitive_matrices; VAR_4++)
if (s->lsb_by... | [
"static inline int FUNC_0(MLPDecodeContext *VAR_0, GetBitContext *VAR_1,\nunsigned int VAR_2, unsigned int VAR_3)\n{",
"SubStream *s = &VAR_0->substream[VAR_2];",
"unsigned int VAR_4, VAR_5;",
"for (VAR_4 = 0; VAR_4 < s->num_primitive_matrices; VAR_4++)",
"if (s->lsb_bypass[VAR_4])\nVAR_0->bypassed_lsbs[VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35,
37,
39
],
[
43,
45
],
[
49,
51
],
[
55
],
[
57
],
[
61
... |
1,050 | static void superh_cpu_initfn(Object *obj)
{
CPUState *cs = CPU(obj);
SuperHCPU *cpu = SUPERH_CPU(obj);
CPUSH4State *env = &cpu->env;
cs->env_ptr = env;
cpu_exec_init(cs, &error_abort);
env->movcal_backup_tail = &(env->movcal_backup);
if (tcg_enabled()) {
sh4_translate... | true | qemu | ce5b1bbf624b977a55ff7f85bb3871682d03baff | static void superh_cpu_initfn(Object *obj)
{
CPUState *cs = CPU(obj);
SuperHCPU *cpu = SUPERH_CPU(obj);
CPUSH4State *env = &cpu->env;
cs->env_ptr = env;
cpu_exec_init(cs, &error_abort);
env->movcal_backup_tail = &(env->movcal_backup);
if (tcg_enabled()) {
sh4_translate... | {
"code": [
" cpu_exec_init(cs, &error_abort);",
" cpu_exec_init(cs, &error_abort);",
" cpu_exec_init(cs, &error_abort);",
" cpu_exec_init(cs, &error_abort);",
" cpu_exec_init(cs, &error_abort);",
" cpu_exec_init(cs, &error_abort);",
" cpu_exec_init(cs, &error_abort);"... | static void FUNC_0(Object *VAR_0)
{
CPUState *cs = CPU(VAR_0);
SuperHCPU *cpu = SUPERH_CPU(VAR_0);
CPUSH4State *env = &cpu->env;
cs->env_ptr = env;
cpu_exec_init(cs, &error_abort);
env->movcal_backup_tail = &(env->movcal_backup);
if (tcg_enabled()) {
sh4_translate_init... | [
"static void FUNC_0(Object *VAR_0)\n{",
"CPUState *cs = CPU(VAR_0);",
"SuperHCPU *cpu = SUPERH_CPU(VAR_0);",
"CPUSH4State *env = &cpu->env;",
"cs->env_ptr = env;",
"cpu_exec_init(cs, &error_abort);",
"env->movcal_backup_tail = &(env->movcal_backup);",
"if (tcg_enabled()) {",
"sh4_translate_init();",... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
1,051 | void ff_estimate_b_frame_motion(MpegEncContext * s,
int mb_x, int mb_y)
{
MotionEstContext * const c= &s->me;
const int penalty_factor= c->mb_penalty_factor;
int fmin, bmin, dmin, fbmin, bimin, fimin;
int type=0;
const int xy = mb_y*s->mb_stride + mb_x;
init_... | true | FFmpeg | f6774f905fb3cfdc319523ac640be30b14c1bc55 | void ff_estimate_b_frame_motion(MpegEncContext * s,
int mb_x, int mb_y)
{
MotionEstContext * const c= &s->me;
const int penalty_factor= c->mb_penalty_factor;
int fmin, bmin, dmin, fbmin, bimin, fimin;
int type=0;
const int xy = mb_y*s->mb_stride + mb_x;
init_... | {
"code": [
" init_ref(c, s->new_picture.f.data, s->last_picture.f.data,",
" s->next_picture.f.data, 16 * mb_x, 16 * mb_y, 2);"
],
"line_no": [
17,
19
]
} | void FUNC_0(MpegEncContext * VAR_0,
int VAR_1, int VAR_2)
{
MotionEstContext * const c= &VAR_0->me;
const int VAR_3= c->mb_penalty_factor;
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
int VAR_10=0;
const int VAR_11 = VAR_2*VAR_0->mb_stride + VAR_1;
init_ref(... | [
"void FUNC_0(MpegEncContext * VAR_0,\nint VAR_1, int VAR_2)\n{",
"MotionEstContext * const c= &VAR_0->me;",
"const int VAR_3= c->mb_penalty_factor;",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"int VAR_10=0;",
"const int VAR_11 = VAR_2*VAR_0->mb_stride + VAR_1;",
"init_ref(c, VAR_0->new_picture.f.... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17,
19
],
[
23
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
53,
55
],
[... |
1,052 | xmit_seg(E1000State *s)
{
uint16_t len, *sp;
unsigned int frames = s->tx.tso_frames, css, sofar, n;
struct e1000_tx *tp = &s->tx;
if (tp->tse && tp->cptse) {
css = tp->ipcss;
DBGOUT(TXSUM, "frames %d size %d ipcss %d\n",
frames, tp->size, css);
if (tp->i... | true | qemu | e685b4eb649cbddd26f203b611eabeb714648f4d | xmit_seg(E1000State *s)
{
uint16_t len, *sp;
unsigned int frames = s->tx.tso_frames, css, sofar, n;
struct e1000_tx *tp = &s->tx;
if (tp->tse && tp->cptse) {
css = tp->ipcss;
DBGOUT(TXSUM, "frames %d size %d ipcss %d\n",
frames, tp->size, css);
if (tp->i... | {
"code": [
" cpu_to_be16wu(sp, be16_to_cpup(sp) + len);"
],
"line_no": [
65
]
} | FUNC_0(E1000State *VAR_0)
{
uint16_t len, *sp;
unsigned int VAR_1 = VAR_0->tx.tso_frames, VAR_2, VAR_3, VAR_4;
struct e1000_tx *VAR_5 = &VAR_0->tx;
if (VAR_5->tse && VAR_5->cptse) {
VAR_2 = VAR_5->ipcss;
DBGOUT(TXSUM, "VAR_1 %d size %d ipcss %d\VAR_4",
VAR_1, VAR... | [
"FUNC_0(E1000State *VAR_0)\n{",
"uint16_t len, *sp;",
"unsigned int VAR_1 = VAR_0->tx.tso_frames, VAR_2, VAR_3, VAR_4;",
"struct e1000_tx *VAR_5 = &VAR_0->tx;",
"if (VAR_5->tse && VAR_5->cptse) {",
"VAR_2 = VAR_5->ipcss;",
"DBGOUT(TXSUM, \"VAR_1 %d size %d ipcss %d\\VAR_4\",\nVAR_1, VAR_5->size, VAR_2);... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19
],
[
21
],
[
23,
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,... |
1,053 | static void omap_timer_clk_setup(struct omap_mpu_timer_s *timer)
{
omap_clk_adduser(timer->clk,
qemu_allocate_irqs(omap_timer_clk_update, timer, 1)[0]);
timer->rate = omap_clk_getrate(timer->clk);
}
| true | qemu | f3c7d0389fe8a2792fd4c1cf151b885de03c8f62 | static void omap_timer_clk_setup(struct omap_mpu_timer_s *timer)
{
omap_clk_adduser(timer->clk,
qemu_allocate_irqs(omap_timer_clk_update, timer, 1)[0]);
timer->rate = omap_clk_getrate(timer->clk);
}
| {
"code": [
" qemu_allocate_irqs(omap_timer_clk_update, timer, 1)[0]);"
],
"line_no": [
7
]
} | static void FUNC_0(struct omap_mpu_timer_s *VAR_0)
{
omap_clk_adduser(VAR_0->clk,
qemu_allocate_irqs(omap_timer_clk_update, VAR_0, 1)[0]);
VAR_0->rate = omap_clk_getrate(VAR_0->clk);
}
| [
"static void FUNC_0(struct omap_mpu_timer_s *VAR_0)\n{",
"omap_clk_adduser(VAR_0->clk,\nqemu_allocate_irqs(omap_timer_clk_update, VAR_0, 1)[0]);",
"VAR_0->rate = omap_clk_getrate(VAR_0->clk);",
"}"
] | [
0,
1,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
]
] |
1,054 | static int drive_init(struct drive_opt *arg, int snapshot,
QEMUMachine *machine)
{
char buf[128];
char file[1024];
char devname[128];
char serial[21];
const char *mediastr = "";
BlockInterfaceType type;
enum { MEDIA_DISK, MEDIA_CDROM } media;
int bus_id, u... | true | qemu | 4d73cd3b3f55fcff433ce64b125b7adb8aaece29 | static int drive_init(struct drive_opt *arg, int snapshot,
QEMUMachine *machine)
{
char buf[128];
char file[1024];
char devname[128];
char serial[21];
const char *mediastr = "";
BlockInterfaceType type;
enum { MEDIA_DISK, MEDIA_CDROM } media;
int bus_id, u... | {
"code": [
"static int drive_init(struct drive_opt *arg, int snapshot,",
" QEMUMachine *machine)",
" return 0;",
" return 0;",
" return 0;"
],
"line_no": [
1,
3,
561,
561,
695
]
} | static int FUNC_0(struct drive_opt *VAR_0, int VAR_1,
QEMUMachine *VAR_2)
{
char VAR_3[128];
char VAR_4[1024];
char VAR_5[128];
char VAR_6[21];
const char *VAR_7 = "";
BlockInterfaceType type;
enum { MEDIA_DISK, MEDIA_CDROM } VAR_8;
int VAR_9, VAR_10;
... | [
"static int FUNC_0(struct drive_opt *VAR_0, int VAR_1,\nQEMUMachine *VAR_2)\n{",
"char VAR_3[128];",
"char VAR_4[1024];",
"char VAR_5[128];",
"char VAR_6[21];",
"const char *VAR_7 = \"\";",
"BlockInterfaceType type;",
"enum { MEDIA_DISK, MEDIA_CDROM } VAR_8;",
"int VAR_9, VAR_10;",
"int VAR_11, VA... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[... |
1,055 | static void qvirtio_pci_set_status(QVirtioDevice *d, uint8_t status)
{
QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;
qpci_io_writeb(dev->pdev, dev->addr + VIRTIO_PCI_STATUS, status);
}
| true | qemu | b4ba67d9a702507793c2724e56f98e9b0f7be02b | static void qvirtio_pci_set_status(QVirtioDevice *d, uint8_t status)
{
QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;
qpci_io_writeb(dev->pdev, dev->addr + VIRTIO_PCI_STATUS, status);
}
| {
"code": [
" qpci_io_writeb(dev->pdev, dev->addr + VIRTIO_PCI_STATUS, status);"
],
"line_no": [
7
]
} | static void FUNC_0(QVirtioDevice *VAR_0, uint8_t VAR_1)
{
QVirtioPCIDevice *dev = (QVirtioPCIDevice *)VAR_0;
qpci_io_writeb(dev->pdev, dev->addr + VIRTIO_PCI_STATUS, VAR_1);
}
| [
"static void FUNC_0(QVirtioDevice *VAR_0, uint8_t VAR_1)\n{",
"QVirtioPCIDevice *dev = (QVirtioPCIDevice *)VAR_0;",
"qpci_io_writeb(dev->pdev, dev->addr + VIRTIO_PCI_STATUS, VAR_1);",
"}"
] | [
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
1,057 | static void test_acpi_piix4_tcg_cphp(void)
{
test_data data;
memset(&data, 0, sizeof(data));
data.machine = MACHINE_PC;
data.variant = ".cphp";
test_acpi_one("-smp 2,cores=3,sockets=2,maxcpus=6",
&data);
free_test_data(&data);
}
| true | qemu | d6309c170eb99950c9f1d881a5ff7163ae28d353 | static void test_acpi_piix4_tcg_cphp(void)
{
test_data data;
memset(&data, 0, sizeof(data));
data.machine = MACHINE_PC;
data.variant = ".cphp";
test_acpi_one("-smp 2,cores=3,sockets=2,maxcpus=6",
&data);
free_test_data(&data);
}
| {
"code": [
" test_acpi_one(\"-smp 2,cores=3,sockets=2,maxcpus=6\","
],
"line_no": [
15
]
} | static void FUNC_0(void)
{
test_data data;
memset(&data, 0, sizeof(data));
data.machine = MACHINE_PC;
data.variant = ".cphp";
test_acpi_one("-smp 2,cores=3,sockets=2,maxcpus=6",
&data);
free_test_data(&data);
}
| [
"static void FUNC_0(void)\n{",
"test_data data;",
"memset(&data, 0, sizeof(data));",
"data.machine = MACHINE_PC;",
"data.variant = \".cphp\";",
"test_acpi_one(\"-smp 2,cores=3,sockets=2,maxcpus=6\",\n&data);",
"free_test_data(&data);",
"}"
] | [
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
]
] |
1,058 | void qmp_block_set_io_throttle(const char *device, int64_t bps, int64_t bps_rd,
int64_t bps_wr,
int64_t iops,
int64_t iops_rd,
int64_t iops_wr,
bool has_bps_max... | true | qemu | b15446fdbf4ac2b29f6ee5080630a80715abfc20 | void qmp_block_set_io_throttle(const char *device, int64_t bps, int64_t bps_rd,
int64_t bps_wr,
int64_t iops,
int64_t iops_rd,
int64_t iops_wr,
bool has_bps_max... | {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0, int64_t VAR_1, int64_t VAR_2,
int64_t VAR_3,
int64_t VAR_4,
int64_t VAR_5,
int64_t VAR_6,
bool VAR_7,
... | [
"void FUNC_0(const char *VAR_0, int64_t VAR_1, int64_t VAR_2,\nint64_t VAR_3,\nint64_t VAR_4,\nint64_t VAR_5,\nint64_t VAR_6,\nbool VAR_7,\nint64_t VAR_8,\nbool VAR_9,\nint64_t VAR_10,\nbool VAR_11,\nint64_t VAR_12,\nbool VAR_13,\nint64_t VAR_14,\nbool VAR_15,\nint64_t VAR_16,\nbool VAR_17,\nint64_t VAR_18,\nbool V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
48
],
[
50
],
[
52
],
[
54
],
[
56
],
[
60
],
[
62
],
[
64
... |
1,061 | static void setup_frame(int sig, struct target_sigaction *ka,
target_sigset_t *set, CPUM68KState *env)
{
struct target_sigframe *frame;
abi_ulong frame_addr;
abi_ulong retcode_addr;
abi_ulong sc_addr;
int err = 0;
int i;
frame_addr = get_sigframe(ka, env, s... | false | qemu | 41ecc72ba5932381208e151bf2d2149a0342beff | static void setup_frame(int sig, struct target_sigaction *ka,
target_sigset_t *set, CPUM68KState *env)
{
struct target_sigframe *frame;
abi_ulong frame_addr;
abi_ulong retcode_addr;
abi_ulong sc_addr;
int err = 0;
int i;
frame_addr = get_sigframe(ka, env, s... | {
"code": [],
"line_no": []
} | static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1,
target_sigset_t *VAR_2, CPUM68KState *VAR_3)
{
struct target_sigframe *VAR_4;
abi_ulong frame_addr;
abi_ulong retcode_addr;
abi_ulong sc_addr;
int VAR_5 = 0;
int VAR_6;
frame_addr = get_sigframe(... | [
"static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1,\ntarget_sigset_t *VAR_2, CPUM68KState *VAR_3)\n{",
"struct target_sigframe *VAR_4;",
"abi_ulong frame_addr;",
"abi_ulong retcode_addr;",
"abi_ulong sc_addr;",
"int VAR_5 = 0;",
"int VAR_6;",
"frame_addr = get_sigframe(VAR_1, VAR_3, sizeof ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
47
],
[
49,
51
],
[
53
],
[
61
... |
1,062 | do_socket_read(GIOChannel *source,
GIOCondition condition,
gpointer data)
{
int rv;
int dwSendLength;
int dwRecvLength;
uint8_t pbRecvBuffer[APDUBufSize];
static uint8_t pbSendBuffer[APDUBufSize];
VReaderStatus reader_status;
VReader *reader = NULL;
... | false | qemu | 2a0c46da967e5dc8cfe73b1b6fe7a1600c04f461 | do_socket_read(GIOChannel *source,
GIOCondition condition,
gpointer data)
{
int rv;
int dwSendLength;
int dwRecvLength;
uint8_t pbRecvBuffer[APDUBufSize];
static uint8_t pbSendBuffer[APDUBufSize];
VReaderStatus reader_status;
VReader *reader = NULL;
... | {
"code": [],
"line_no": []
} | FUNC_0(GIOChannel *VAR_0,
GIOCondition VAR_1,
gpointer VAR_2)
{
int VAR_3;
int VAR_4;
int VAR_5;
uint8_t pbRecvBuffer[APDUBufSize];
static uint8_t VAR_6[APDUBufSize];
VReaderStatus reader_status;
VReader *reader = NULL;
static VSCMsgHeader VAR_7;
... | [
"FUNC_0(GIOChannel *VAR_0,\nGIOCondition VAR_1,\ngpointer VAR_2)\n{",
"int VAR_3;",
"int VAR_4;",
"int VAR_5;",
"uint8_t pbRecvBuffer[APDUBufSize];",
"static uint8_t VAR_6[APDUBufSize];",
"VReaderStatus reader_status;",
"VReader *reader = NULL;",
"static VSCMsgHeader VAR_7;",
"VSCMsgError *error_m... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
... |
1,063 | static size_t buffered_get_rate_limit(void *opaque)
{
QEMUFileBuffered *s = opaque;
return s->xfer_limit;
}
| false | qemu | 3d002df33eb034757d98e1ae529318f57df78f91 | static size_t buffered_get_rate_limit(void *opaque)
{
QEMUFileBuffered *s = opaque;
return s->xfer_limit;
}
| {
"code": [],
"line_no": []
} | static size_t FUNC_0(void *opaque)
{
QEMUFileBuffered *s = opaque;
return s->xfer_limit;
}
| [
"static size_t FUNC_0(void *opaque)\n{",
"QEMUFileBuffered *s = opaque;",
"return s->xfer_limit;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
1,066 | static void check_time(int wiggle)
{
struct tm start, date[4], end;
struct tm *datep;
time_t ts;
/*
* This check assumes a few things. First, we cannot guarantee that we get
* a consistent reading from the wall clock because we may hit an edge of
* the clock while reading. To ... | false | qemu | 02b3efcb7509841871038d89406225d1aaf41684 | static void check_time(int wiggle)
{
struct tm start, date[4], end;
struct tm *datep;
time_t ts;
ts = time(NULL);
gmtime_r(&ts, &start);
cmos_get_date_time(&date[0]);
cmos_get_date_time(&date[1]);
cmos_get_date_time(&date[2]);
cmos_get_date... | {
"code": [],
"line_no": []
} | static void FUNC_0(int VAR_0)
{
struct tm VAR_1, VAR_2[4], end;
struct tm *VAR_3;
time_t ts;
ts = time(NULL);
gmtime_r(&ts, &VAR_1);
cmos_get_date_time(&VAR_2[0]);
cmos_get_date_time(&VAR_2[1]);
cmos_get_date_time(&VAR_2[2]);
cmos_get_date_... | [
"static void FUNC_0(int VAR_0)\n{",
"struct tm VAR_1, VAR_2[4], end;",
"struct tm *VAR_3;",
"time_t ts;",
"ts = time(NULL);",
"gmtime_r(&ts, &VAR_1);",
"cmos_get_date_time(&VAR_2[0]);",
"cmos_get_date_time(&VAR_2[1]);",
"cmos_get_date_time(&VAR_2[2]);",
"cmos_get_date_time(&VAR_2[3]);",
"ts = ti... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
],
[
61
],
[
63
],
[
65
],
[
67
],
[
69
],
[
71
],
[
73
],
[
75
... |
1,067 | aio_ctx_finalize(GSource *source)
{
AioContext *ctx = (AioContext *) source;
thread_pool_free(ctx->thread_pool);
#ifdef CONFIG_LINUX_AIO
if (ctx->linux_aio) {
laio_detach_aio_context(ctx->linux_aio, ctx);
laio_cleanup(ctx->linux_aio);
ctx->linux_aio = NULL;
}
#e... | false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | aio_ctx_finalize(GSource *source)
{
AioContext *ctx = (AioContext *) source;
thread_pool_free(ctx->thread_pool);
#ifdef CONFIG_LINUX_AIO
if (ctx->linux_aio) {
laio_detach_aio_context(ctx->linux_aio, ctx);
laio_cleanup(ctx->linux_aio);
ctx->linux_aio = NULL;
}
#e... | {
"code": [],
"line_no": []
} | FUNC_0(GSource *VAR_0)
{
AioContext *ctx = (AioContext *) VAR_0;
thread_pool_free(ctx->thread_pool);
#ifdef CONFIG_LINUX_AIO
if (ctx->linux_aio) {
laio_detach_aio_context(ctx->linux_aio, ctx);
laio_cleanup(ctx->linux_aio);
ctx->linux_aio = NULL;
}
#endif
... | [
"FUNC_0(GSource *VAR_0)\n{",
"AioContext *ctx = (AioContext *) VAR_0;",
"thread_pool_free(ctx->thread_pool);",
"#ifdef CONFIG_LINUX_AIO\nif (ctx->linux_aio) {",
"laio_detach_aio_context(ctx->linux_aio, ctx);",
"laio_cleanup(ctx->linux_aio);",
"ctx->linux_aio = NULL;",
"}",
"#endif\nqemu_lockcnt_... | [
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
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
29
],
[
31
],
[
33
],
[
35
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57... |
1,068 | static void bdrv_stats_iter(QObject *data, void *opaque)
{
QDict *qdict;
Monitor *mon = opaque;
qdict = qobject_to_qdict(data);
monitor_printf(mon, "%s:", qdict_get_str(qdict, "device"));
qdict = qobject_to_qdict(qdict_get(qdict, "stats"));
monitor_printf(mon, " rd_bytes=%" PRId64
... | false | qemu | c488c7f649106d09df76f697adccbe6e72520b26 | static void bdrv_stats_iter(QObject *data, void *opaque)
{
QDict *qdict;
Monitor *mon = opaque;
qdict = qobject_to_qdict(data);
monitor_printf(mon, "%s:", qdict_get_str(qdict, "device"));
qdict = qobject_to_qdict(qdict_get(qdict, "stats"));
monitor_printf(mon, " rd_bytes=%" PRId64
... | {
"code": [],
"line_no": []
} | static void FUNC_0(QObject *VAR_0, void *VAR_1)
{
QDict *qdict;
Monitor *mon = VAR_1;
qdict = qobject_to_qdict(VAR_0);
monitor_printf(mon, "%s:", qdict_get_str(qdict, "device"));
qdict = qobject_to_qdict(qdict_get(qdict, "stats"));
monitor_printf(mon, " rd_bytes=%" PRId64
... | [
"static void FUNC_0(QObject *VAR_0, void *VAR_1)\n{",
"QDict *qdict;",
"Monitor *mon = VAR_1;",
"qdict = qobject_to_qdict(VAR_0);",
"monitor_printf(mon, \"%s:\", qdict_get_str(qdict, \"device\"));",
"qdict = qobject_to_qdict(qdict_get(qdict, \"stats\"));",
"monitor_printf(mon, \" rd_bytes=%\" PRId64\n\"... | [
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
],
[
41
]
] |
1,069 | static int nbd_send_negotiate(NBDClient *client)
{
int csock = client->sock;
char buf[8 + 8 + 8 + 128];
int rc;
const int myflags = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM |
NBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA);
/* Negotiation header without options:
[... | false | qemu | 1a6245a5b0b4e8d822c739b403fc67c8a7bc8d12 | static int nbd_send_negotiate(NBDClient *client)
{
int csock = client->sock;
char buf[8 + 8 + 8 + 128];
int rc;
const int myflags = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM |
NBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA);
qemu_se... | {
"code": [],
"line_no": []
} | static int FUNC_0(NBDClient *VAR_0)
{
int VAR_1 = VAR_0->sock;
char VAR_2[8 + 8 + 8 + 128];
int VAR_3;
const int VAR_4 = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM |
NBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA);
qemu_set_block(VAR... | [
"static int FUNC_0(NBDClient *VAR_0)\n{",
"int VAR_1 = VAR_0->sock;",
"char VAR_2[8 + 8 + 8 + 128];",
"int VAR_3;",
"const int VAR_4 = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM |\nNBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA);",
"qemu_set_block(VAR_1);",
"VAR_3 = -EINVAL;",
"TRACE(\"Beginning negotiation.\"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
55
],
[
57
],
[
61
],
[
63
],
[
65
],
[
67
],
[
69
],
[
71
],
[
73
],
[
75
],
[
77
],
[
79
],
[
81
],
[
83
],
[... |
1,070 | void tcg_gen_mb(TCGBar mb_type)
{
if (parallel_cpus) {
tcg_gen_op1(INDEX_op_mb, mb_type);
}
}
| false | qemu | e82d5a2460b0e176128027651ff9b104e4bdf5cc | void tcg_gen_mb(TCGBar mb_type)
{
if (parallel_cpus) {
tcg_gen_op1(INDEX_op_mb, mb_type);
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(TCGBar VAR_0)
{
if (parallel_cpus) {
tcg_gen_op1(INDEX_op_mb, VAR_0);
}
}
| [
"void FUNC_0(TCGBar VAR_0)\n{",
"if (parallel_cpus) {",
"tcg_gen_op1(INDEX_op_mb, VAR_0);",
"}",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
1,071 | void *virtqueue_alloc_element(size_t sz, unsigned out_num, unsigned in_num)
{
VirtQueueElement *elem;
size_t in_addr_ofs = QEMU_ALIGN_UP(sz, __alignof__(elem->in_addr[0]));
size_t out_addr_ofs = in_addr_ofs + in_num * sizeof(elem->in_addr[0]);
size_t out_addr_end = out_addr_ofs + out_num * sizeof(e... | false | qemu | bf91bd27924955aa243abfa5d422ee71e9e84b93 | void *virtqueue_alloc_element(size_t sz, unsigned out_num, unsigned in_num)
{
VirtQueueElement *elem;
size_t in_addr_ofs = QEMU_ALIGN_UP(sz, __alignof__(elem->in_addr[0]));
size_t out_addr_ofs = in_addr_ofs + in_num * sizeof(elem->in_addr[0]);
size_t out_addr_end = out_addr_ofs + out_num * sizeof(e... | {
"code": [],
"line_no": []
} | void *FUNC_0(size_t VAR_0, unsigned VAR_1, unsigned VAR_2)
{
VirtQueueElement *elem;
size_t in_addr_ofs = QEMU_ALIGN_UP(VAR_0, __alignof__(elem->in_addr[0]));
size_t out_addr_ofs = in_addr_ofs + VAR_2 * sizeof(elem->in_addr[0]);
size_t out_addr_end = out_addr_ofs + VAR_1 * sizeof(elem->out_addr[0])... | [
"void *FUNC_0(size_t VAR_0, unsigned VAR_1, unsigned VAR_2)\n{",
"VirtQueueElement *elem;",
"size_t in_addr_ofs = QEMU_ALIGN_UP(VAR_0, __alignof__(elem->in_addr[0]));",
"size_t out_addr_ofs = in_addr_ofs + VAR_2 * sizeof(elem->in_addr[0]);",
"size_t out_addr_end = out_addr_ofs + VAR_1 * sizeof(elem->out_add... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
1,072 | static int usb_serial_initfn(USBDevice *dev)
{
USBSerialState *s = DO_UPCAST(USBSerialState, dev, dev);
s->dev.speed = USB_SPEED_FULL;
if (!s->cs) {
error_report("Property chardev is required");
return -1;
}
qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_rea... | false | qemu | a980a065fb5e86d6dec337e6cb6ff432f1a143c9 | static int usb_serial_initfn(USBDevice *dev)
{
USBSerialState *s = DO_UPCAST(USBSerialState, dev, dev);
s->dev.speed = USB_SPEED_FULL;
if (!s->cs) {
error_report("Property chardev is required");
return -1;
}
qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_rea... | {
"code": [],
"line_no": []
} | static int FUNC_0(USBDevice *VAR_0)
{
USBSerialState *s = DO_UPCAST(USBSerialState, VAR_0, VAR_0);
s->VAR_0.speed = USB_SPEED_FULL;
if (!s->cs) {
error_report("Property chardev is required");
return -1;
}
qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_read,
... | [
"static int FUNC_0(USBDevice *VAR_0)\n{",
"USBSerialState *s = DO_UPCAST(USBSerialState, VAR_0, VAR_0);",
"s->VAR_0.speed = USB_SPEED_FULL;",
"if (!s->cs) {",
"error_report(\"Property chardev is required\");",
"return -1;",
"}",
"qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_read,\nusb_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
25
],
[
27
],
[
29
]
] |
1,073 | DeviceState *nand_init(BlockDriverState *bdrv, int manf_id, int chip_id)
{
DeviceState *dev;
if (nand_flash_ids[chip_id].size == 0) {
hw_error("%s: Unsupported NAND chip ID.\n", __FUNCTION__);
}
dev = DEVICE(object_new(TYPE_NAND));
qdev_prop_set_uint8(dev, "manufacturer_id", manf_id... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | DeviceState *nand_init(BlockDriverState *bdrv, int manf_id, int chip_id)
{
DeviceState *dev;
if (nand_flash_ids[chip_id].size == 0) {
hw_error("%s: Unsupported NAND chip ID.\n", __FUNCTION__);
}
dev = DEVICE(object_new(TYPE_NAND));
qdev_prop_set_uint8(dev, "manufacturer_id", manf_id... | {
"code": [],
"line_no": []
} | DeviceState *FUNC_0(BlockDriverState *bdrv, int manf_id, int chip_id)
{
DeviceState *dev;
if (nand_flash_ids[chip_id].size == 0) {
hw_error("%s: Unsupported NAND chip ID.\n", __FUNCTION__);
}
dev = DEVICE(object_new(TYPE_NAND));
qdev_prop_set_uint8(dev, "manufacturer_id", manf_id);
... | [
"DeviceState *FUNC_0(BlockDriverState *bdrv, int manf_id, int chip_id)\n{",
"DeviceState *dev;",
"if (nand_flash_ids[chip_id].size == 0) {",
"hw_error(\"%s: Unsupported NAND chip ID.\\n\", __FUNCTION__);",
"}",
"dev = DEVICE(object_new(TYPE_NAND));",
"qdev_prop_set_uint8(dev, \"manufacturer_id\", manf_i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
]
] |
1,074 | static void CALLBACK host_alarm_handler(UINT uTimerID, UINT uMsg,
DWORD_PTR dwUser, DWORD_PTR dw1,
DWORD_PTR dw2)
#else
static void host_alarm_handler(int host_signum)
#endif
{
#if 0
#define DISP_FREQ 1000
{
static int... | false | qemu | e332340a7799cf5681bffac264e3ce90288c037f | static void CALLBACK host_alarm_handler(UINT uTimerID, UINT uMsg,
DWORD_PTR dwUser, DWORD_PTR dw1,
DWORD_PTR dw2)
#else
static void host_alarm_handler(int host_signum)
#endif
{
#if 0
#define DISP_FREQ 1000
{
static int... | {
"code": [],
"line_no": []
} | static void VAR_0 host_alarm_handler(UINT uTimerID, UINT uMsg,
DWORD_PTR dwUser, DWORD_PTR dw1,
DWORD_PTR dw2)
#else
static void host_alarm_handler(int host_signum)
#endif
{
#if 0
#define DISP_FREQ 1000
{
static int64_... | [
"static void VAR_0 host_alarm_handler(UINT uTimerID, UINT uMsg,\nDWORD_PTR dwUser, DWORD_PTR dw1,\nDWORD_PTR dw2)\n#else\nstatic void host_alarm_handler(int host_signum)\n#endif\n{",
"#if 0\n#define DISP_FREQ 1000\n{",
"static int64_t delta_min = INT64_MAX;",
"static int64_t delta_max, delta_cum, last_clock, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[... |
1,077 | static bool get_phys_addr_lpae(CPUARMState *env, target_ulong address,
int access_type, ARMMMUIdx mmu_idx,
hwaddr *phys_ptr, MemTxAttrs *txattrs, int *prot,
target_ulong *page_size_ptr, uint32_t *fsr)
{
ARMCPU *cpu = a... | false | qemu | 6ab1a5ee1c9d328cacf78805439ed4d3d132decd | static bool get_phys_addr_lpae(CPUARMState *env, target_ulong address,
int access_type, ARMMMUIdx mmu_idx,
hwaddr *phys_ptr, MemTxAttrs *txattrs, int *prot,
target_ulong *page_size_ptr, uint32_t *fsr)
{
ARMCPU *cpu = a... | {
"code": [],
"line_no": []
} | static bool FUNC_0(CPUARMState *env, target_ulong address,
int access_type, ARMMMUIdx mmu_idx,
hwaddr *phys_ptr, MemTxAttrs *txattrs, int *prot,
target_ulong *page_size_ptr, uint32_t *fsr)
{
ARMCPU *cpu = arm_env_get_c... | [
"static bool FUNC_0(CPUARMState *env, target_ulong address,\nint access_type, ARMMMUIdx mmu_idx,\nhwaddr *phys_ptr, MemTxAttrs *txattrs, int *prot,\ntarget_ulong *page_size_ptr, uint32_t *fsr)\n{",
"ARMCPU *cpu = arm_env_get_cpu(env);",
"CPUState *cs = CPU(cpu);",
"MMUFaultType fault_type = translation_fault;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
1,078 | static int openfile(char *name, int flags, int growable)
{
if (bs) {
fprintf(stderr, "file open already, try 'help close'\n");
return 1;
}
bs = bdrv_new("hda");
if (!bs)
return 1;
if (growable) {
flags |= BDRV_O_FILE;
}
if (bdrv_open(bs, name, flags) == -1) {
fprintf(stderr, "%s: can... | false | qemu | 06b611c48edb1bf0301c3e7fe49dec2b9feaaf89 | static int openfile(char *name, int flags, int growable)
{
if (bs) {
fprintf(stderr, "file open already, try 'help close'\n");
return 1;
}
bs = bdrv_new("hda");
if (!bs)
return 1;
if (growable) {
flags |= BDRV_O_FILE;
}
if (bdrv_open(bs, name, flags) == -1) {
fprintf(stderr, "%s: can... | {
"code": [],
"line_no": []
} | static int FUNC_0(char *VAR_0, int VAR_1, int VAR_2)
{
if (bs) {
fprintf(stderr, "file open already, try 'help close'\n");
return 1;
}
bs = bdrv_new("hda");
if (!bs)
return 1;
if (VAR_2) {
VAR_1 |= BDRV_O_FILE;
}
if (bdrv_open(bs, VAR_0, VAR_1) == -1) {
fprintf(stderr, "%s: can't ope... | [
"static int FUNC_0(char *VAR_0, int VAR_1, int VAR_2)\n{",
"if (bs) {",
"fprintf(stderr, \"file open already, try 'help close'\\n\");",
"return 1;",
"}",
"bs = bdrv_new(\"hda\");",
"if (!bs)\nreturn 1;",
"if (VAR_2) {",
"VAR_1 |= BDRV_O_FILE;",
"}",
"if (bdrv_open(bs, VAR_0, VAR_1) == -1) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
1,079 | static void visit_nested_struct(Visitor *v, void **native, Error **errp)
{
visit_type_UserDefNested(v, (UserDefNested **)native, NULL, errp);
}
| false | qemu | b6fcf32d9b851a83dedcb609091236b97cc4a985 | static void visit_nested_struct(Visitor *v, void **native, Error **errp)
{
visit_type_UserDefNested(v, (UserDefNested **)native, NULL, errp);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(Visitor *VAR_0, void **VAR_1, Error **VAR_2)
{
visit_type_UserDefNested(VAR_0, (UserDefNested **)VAR_1, NULL, VAR_2);
}
| [
"static void FUNC_0(Visitor *VAR_0, void **VAR_1, Error **VAR_2)\n{",
"visit_type_UserDefNested(VAR_0, (UserDefNested **)VAR_1, NULL, VAR_2);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
1,080 | static uint64_t bmdma_read(void *opaque, target_phys_addr_t addr, unsigned size)
{
BMDMAState *bm = opaque;
uint32_t val;
if (size != 1) {
return ((uint64_t)1 << (size * 8)) - 1;
}
switch(addr & 3) {
case 0:
val = bm->cmd;
break;
case 2:
val = ... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t bmdma_read(void *opaque, target_phys_addr_t addr, unsigned size)
{
BMDMAState *bm = opaque;
uint32_t val;
if (size != 1) {
return ((uint64_t)1 << (size * 8)) - 1;
}
switch(addr & 3) {
case 0:
val = bm->cmd;
break;
case 2:
val = ... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size)
{
BMDMAState *bm = opaque;
uint32_t val;
if (size != 1) {
return ((uint64_t)1 << (size * 8)) - 1;
}
switch(addr & 3) {
case 0:
val = bm->cmd;
break;
case 2:
val = bm->... | [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size)\n{",
"BMDMAState *bm = opaque;",
"uint32_t val;",
"if (size != 1) {",
"return ((uint64_t)1 << (size * 8)) - 1;",
"}",
"switch(addr & 3) {",
"case 0:\nval = bm->cmd;",
"break;",
"case 2:\nval = bm->status;",
"break;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41,
43
],
[
45,
47
],
[
49
]
] |
1,081 | static void palmte_init(MachineState *machine)
{
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
MemoryRegion *address_space_mem = get_system_memory();
struct omap_mpu_state_s ... | false | qemu | a89f364ae8740dfc31b321eed9ee454e996dc3c1 | static void palmte_init(MachineState *machine)
{
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
MemoryRegion *address_space_mem = get_system_memory();
struct omap_mpu_state_s ... | {
"code": [],
"line_no": []
} | static void FUNC_0(MachineState *VAR_0)
{
const char *VAR_1 = VAR_0->VAR_1;
const char *VAR_2 = VAR_0->VAR_2;
const char *VAR_3 = VAR_0->VAR_3;
MemoryRegion *address_space_mem = get_system_memory();
struct omap_mpu_state_s *VAR_4;
int VAR_5 = 0x00800000;
int VAR_6 = palmte_binfo.ram_... | [
"static void FUNC_0(MachineState *VAR_0)\n{",
"const char *VAR_1 = VAR_0->VAR_1;",
"const char *VAR_2 = VAR_0->VAR_2;",
"const char *VAR_3 = VAR_0->VAR_3;",
"MemoryRegion *address_space_mem = get_system_memory();",
"struct omap_mpu_state_s *VAR_4;",
"int VAR_5 = 0x00800000;",
"int VAR_6 = palmte_binfo... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
41,
43
],
[
45
],
[
47
],
[... |
1,082 | void configure_icount(const char *option)
{
vmstate_register(NULL, 0, &vmstate_timers, &timers_state);
if (!option)
return;
if (strcmp(option, "auto") != 0) {
icount_time_shift = strtol(option, NULL, 0);
use_icount = 1;
return;
}
use_icount = 2;
/... | false | qemu | 7bd427d801e1e3293a634d3c83beadaa90ffb911 | void configure_icount(const char *option)
{
vmstate_register(NULL, 0, &vmstate_timers, &timers_state);
if (!option)
return;
if (strcmp(option, "auto") != 0) {
icount_time_shift = strtol(option, NULL, 0);
use_icount = 1;
return;
}
use_icount = 2;
... | {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0)
{
vmstate_register(NULL, 0, &vmstate_timers, &timers_state);
if (!VAR_0)
return;
if (strcmp(VAR_0, "auto") != 0) {
icount_time_shift = strtol(VAR_0, NULL, 0);
use_icount = 1;
return;
}
use_icount = 2;
icount_... | [
"void FUNC_0(const char *VAR_0)\n{",
"vmstate_register(NULL, 0, &vmstate_timers, &timers_state);",
"if (!VAR_0)\nreturn;",
"if (strcmp(VAR_0, \"auto\") != 0) {",
"icount_time_shift = strtol(VAR_0, NULL, 0);",
"use_icount = 1;",
"return;",
"}",
"use_icount = 2;",
"icount_time_shift = 3;",
"icount... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
33
],
[
47
],
[
49,
51
],
[
53
],
[
55,
57
],
[
59
]
] |
1,083 | struct omap_mmc_s *omap_mmc_init(hwaddr base,
MemoryRegion *sysmem,
BlockDriverState *bd,
qemu_irq irq, qemu_irq dma[], omap_clk clk)
{
struct omap_mmc_s *s = (struct omap_mmc_s *)
g_malloc0(sizeof(struct omap_mmc_s));
s->irq = irq;
s->dm... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | struct omap_mmc_s *omap_mmc_init(hwaddr base,
MemoryRegion *sysmem,
BlockDriverState *bd,
qemu_irq irq, qemu_irq dma[], omap_clk clk)
{
struct omap_mmc_s *s = (struct omap_mmc_s *)
g_malloc0(sizeof(struct omap_mmc_s));
s->irq = irq;
s->dm... | {
"code": [],
"line_no": []
} | struct omap_mmc_s *FUNC_0(hwaddr VAR_0,
MemoryRegion *VAR_1,
BlockDriverState *VAR_2,
qemu_irq VAR_3, qemu_irq VAR_4[], omap_clk VAR_5)
{
struct omap_mmc_s *VAR_6 = (struct omap_mmc_s *)
g_malloc0(sizeof(struct omap_mmc_s));
VAR_6->VAR_3 = VAR... | [
"struct omap_mmc_s *FUNC_0(hwaddr VAR_0,\nMemoryRegion *VAR_1,\nBlockDriverState *VAR_2,\nqemu_irq VAR_3, qemu_irq VAR_4[], omap_clk VAR_5)\n{",
"struct omap_mmc_s *VAR_6 = (struct omap_mmc_s *)\ng_malloc0(sizeof(struct omap_mmc_s));",
"VAR_6->VAR_3 = VAR_3;",
"VAR_6->VAR_4 = VAR_4;",
"VAR_6->VAR_5 = VAR_5;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11,
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
]
] |
1,084 | static int v9fs_synth_utimensat(FsContext *fs_ctx, V9fsPath *path,
const struct timespec *buf)
{
errno = EPERM;
return 0;
}
| false | qemu | 364031f17932814484657e5551ba12957d993d7e | static int v9fs_synth_utimensat(FsContext *fs_ctx, V9fsPath *path,
const struct timespec *buf)
{
errno = EPERM;
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,
const struct timespec *VAR_2)
{
errno = EPERM;
return 0;
}
| [
"static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,\nconst struct timespec *VAR_2)\n{",
"errno = EPERM;",
"return 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
]
] |
1,085 | static int monitor_fprintf(FILE *stream, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
monitor_vprintf((Monitor *)stream, fmt, ap);
va_end(ap);
return 0;
}
| false | qemu | 8b7968f7c4ac8c07cad6a1a0891d38cf239a2839 | static int monitor_fprintf(FILE *stream, const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
monitor_vprintf((Monitor *)stream, fmt, ap);
va_end(ap);
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(FILE *VAR_0, const char *VAR_1, ...)
{
va_list ap;
va_start(ap, VAR_1);
monitor_vprintf((Monitor *)VAR_0, VAR_1, ap);
va_end(ap);
return 0;
}
| [
"static int FUNC_0(FILE *VAR_0, const char *VAR_1, ...)\n{",
"va_list ap;",
"va_start(ap, VAR_1);",
"monitor_vprintf((Monitor *)VAR_0, VAR_1, ap);",
"va_end(ap);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
1,086 | static void hls_transform_unit(HEVCContext *s, int x0, int y0,
int xBase, int yBase, int cb_xBase, int cb_yBase,
int log2_cb_size, int log2_trafo_size,
int trafo_depth, int blk_idx)
{
HEVCLocalContext *lc = &s->HEVClc;... | false | FFmpeg | e22ebd04bcab7f86548794556c28ecca46d9c2ac | static void hls_transform_unit(HEVCContext *s, int x0, int y0,
int xBase, int yBase, int cb_xBase, int cb_yBase,
int log2_cb_size, int log2_trafo_size,
int trafo_depth, int blk_idx)
{
HEVCLocalContext *lc = &s->HEVClc;... | {
"code": [],
"line_no": []
} | static void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2,
int VAR_3, int VAR_4, int VAR_5, int VAR_6,
int VAR_7, int VAR_8,
int VAR_9, int VAR_10)
{
HEVCLocalContext *lc = &VAR_0->HEVClc;
if (lc->cu.pred_mode... | [
"static void FUNC_0(HEVCContext *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5, int VAR_6,\nint VAR_7, int VAR_8,\nint VAR_9, int VAR_10)\n{",
"HEVCLocalContext *lc = &VAR_0->HEVClc;",
"if (lc->cu.pred_mode == MODE_INTRA) {",
"int VAR_11 = 1 << VAR_8;",
"ff_hevc_set_neighbour_available(VAR_0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
1,087 | static int tgv_decode_inter(TgvContext *s, AVFrame *frame,
const uint8_t *buf, const uint8_t *buf_end)
{
int num_mvs;
int num_blocks_raw;
int num_blocks_packed;
int vector_bits;
int i,j,x,y;
GetBitContext gb;
int mvbits;
const uint8_t *blocks_raw;
... | false | FFmpeg | a5615b82eb116e9fd0f71f2b03c333cc31ab706a | static int tgv_decode_inter(TgvContext *s, AVFrame *frame,
const uint8_t *buf, const uint8_t *buf_end)
{
int num_mvs;
int num_blocks_raw;
int num_blocks_packed;
int vector_bits;
int i,j,x,y;
GetBitContext gb;
int mvbits;
const uint8_t *blocks_raw;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(TgvContext *VAR_0, AVFrame *VAR_1,
const uint8_t *VAR_2, const uint8_t *VAR_3)
{
int VAR_4;
int VAR_5;
int VAR_6;
int VAR_7;
int VAR_8,VAR_9,VAR_10,VAR_11;
GetBitContext gb;
int VAR_12;
const uint8_t *VAR_13;
if(VAR_3 - VAR_2... | [
"static int FUNC_0(TgvContext *VAR_0, AVFrame *VAR_1,\nconst uint8_t *VAR_2, const uint8_t *VAR_3)\n{",
"int VAR_4;",
"int VAR_5;",
"int VAR_6;",
"int VAR_7;",
"int VAR_8,VAR_9,VAR_10,VAR_11;",
"GetBitContext gb;",
"int VAR_12;",
"const uint8_t *VAR_13;",
"if(VAR_3 - VAR_2 < 12)\nreturn AVERROR_IN... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45,
47
],
[
49
],
[... |
1,092 | void FUNCC(ff_h264_luma_dc_dequant_idct)(int16_t *_output, int16_t *_input, int qmul){
#define stride 16
int i;
int temp[16];
static const uint8_t x_offset[4]={0, 2*stride, 8*stride, 10*stride};
dctcoef *input = (dctcoef*)_input;
dctcoef *output = (dctcoef*)_output;
for(i=0; i<4; i++){
... | true | FFmpeg | 04c99c8042c8bfae817c722d90aa0f1a40db861e | void FUNCC(ff_h264_luma_dc_dequant_idct)(int16_t *_output, int16_t *_input, int qmul){
#define stride 16
int i;
int temp[16];
static const uint8_t x_offset[4]={0, 2*stride, 8*stride, 10*stride};
dctcoef *input = (dctcoef*)_input;
dctcoef *output = (dctcoef*)_output;
for(i=0; i<4; i++){
... | {
"code": [
" const int z0= temp[4*0+i] + temp[4*2+i];",
" const int z1= temp[4*0+i] - temp[4*2+i];",
" const int z2= temp[4*1+i] - temp[4*3+i];",
" const int z3= temp[4*1+i] + temp[4*3+i];",
" output[stride* 0+offset]= ((((z0 + z3)*qmul + 128 ) >> 8));",
" ... | void FUNC_0(ff_h264_luma_dc_dequant_idct)(int16_t *_output, int16_t *_input, int qmul){
#define stride 16
int VAR_0;
int VAR_1[16];
static const uint8_t VAR_2[4]={0, 2*stride, 8*stride, 10*stride};
dctcoef *input = (dctcoef*)_input;
dctcoef *output = (dctcoef*)_output;
for(VAR_0=0; VAR_... | [
"void FUNC_0(ff_h264_luma_dc_dequant_idct)(int16_t *_output, int16_t *_input, int qmul){",
"#define stride 16\nint VAR_0;",
"int VAR_1[16];",
"static const uint8_t VAR_2[4]={0, 2*stride, 8*stride, 10*stride};",
"dctcoef *input = (dctcoef*)_input;",
"dctcoef *output = (dctcoef*)_output;",
"for(VAR_0=0; V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
[
1
],
[
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
... |
1,093 | static uint64_t qemu_rdma_make_wrid(uint64_t wr_id, uint64_t index,
uint64_t chunk)
{
uint64_t result = wr_id & RDMA_WRID_TYPE_MASK;
result |= (index << RDMA_WRID_BLOCK_SHIFT);
result |= (chunk << RDMA_WRID_CHUNK_SHIFT);
return result;
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static uint64_t qemu_rdma_make_wrid(uint64_t wr_id, uint64_t index,
uint64_t chunk)
{
uint64_t result = wr_id & RDMA_WRID_TYPE_MASK;
result |= (index << RDMA_WRID_BLOCK_SHIFT);
result |= (chunk << RDMA_WRID_CHUNK_SHIFT);
return result;
}
| {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(uint64_t wr_id, uint64_t index,
uint64_t chunk)
{
uint64_t result = wr_id & RDMA_WRID_TYPE_MASK;
result |= (index << RDMA_WRID_BLOCK_SHIFT);
result |= (chunk << RDMA_WRID_CHUNK_SHIFT);
return result;
}
| [
"static uint64_t FUNC_0(uint64_t wr_id, uint64_t index,\nuint64_t chunk)\n{",
"uint64_t result = wr_id & RDMA_WRID_TYPE_MASK;",
"result |= (index << RDMA_WRID_BLOCK_SHIFT);",
"result |= (chunk << RDMA_WRID_CHUNK_SHIFT);",
"return result;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
]
] |
1,094 | static BlockMeasureInfo *qcow2_measure(QemuOpts *opts, BlockDriverState *in_bs,
Error **errp)
{
Error *local_err = NULL;
BlockMeasureInfo *info;
uint64_t required = 0; /* bytes that contribute to required size */
uint64_t virtual_size; /* disk size as seen by... | true | qemu | 24bae02b197d152c2b3e4e0ba95f7942a63bad32 | static BlockMeasureInfo *qcow2_measure(QemuOpts *opts, BlockDriverState *in_bs,
Error **errp)
{
Error *local_err = NULL;
BlockMeasureInfo *info;
uint64_t required = 0;
uint64_t virtual_size;
uint64_t refcount_bits;
uint64_t l2_tables;
size_t ... | {
"code": [
" int nb_sectors = MAX(ssize / BDRV_SECTOR_SIZE - sector_num,",
" INT_MAX);"
],
"line_no": [
165,
167
]
} | static BlockMeasureInfo *FUNC_0(QemuOpts *opts, BlockDriverState *in_bs,
Error **errp)
{
Error *local_err = NULL;
BlockMeasureInfo *info;
uint64_t required = 0;
uint64_t virtual_size;
uint64_t refcount_bits;
uint64_t l2_tables;
size_t cluster... | [
"static BlockMeasureInfo *FUNC_0(QemuOpts *opts, BlockDriverState *in_bs,\nError **errp)\n{",
"Error *local_err = NULL;",
"BlockMeasureInfo *info;",
"uint64_t required = 0;",
"uint64_t virtual_size;",
"uint64_t refcount_bits;",
"uint64_t l2_tables;",
"size_t cluster_size;",
"int VAR_0;",
"char *VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[... |
1,095 | static target_ulong disas_insn(DisasContext *s, CPUState *cpu)
{
CPUX86State *env = cpu->env_ptr;
int b, prefixes;
int shift;
TCGMemOp ot, aflag, dflag;
int modrm, reg, rm, mod, op, opreg, val;
target_ulong next_eip, tval;
int rex_w, rex_r;
target_ulong pc_start = s->base.pc_nex... | false | qemu | b5e3b4c2aca8eb5a9cfeedfb273af623f17c3731 | static target_ulong disas_insn(DisasContext *s, CPUState *cpu)
{
CPUX86State *env = cpu->env_ptr;
int b, prefixes;
int shift;
TCGMemOp ot, aflag, dflag;
int modrm, reg, rm, mod, op, opreg, val;
target_ulong next_eip, tval;
int rex_w, rex_r;
target_ulong pc_start = s->base.pc_nex... | {
"code": [],
"line_no": []
} | static target_ulong FUNC_0(DisasContext *s, CPUState *cpu)
{
CPUX86State *env = cpu->env_ptr;
int VAR_0, VAR_1;
int VAR_2;
TCGMemOp ot, aflag, dflag;
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_15, VAR_8, VAR_16;
target_ulong next_eip, tval;
int VAR_10, VAR_11;
target_ulong pc_start = s... | [
"static target_ulong FUNC_0(DisasContext *s, CPUState *cpu)\n{",
"CPUX86State *env = cpu->env_ptr;",
"int VAR_0, VAR_1;",
"int VAR_2;",
"TCGMemOp ot, aflag, dflag;",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_15, VAR_8, VAR_16;",
"target_ulong next_eip, tval;",
"int VAR_10, VAR_11;",
"target_ulong pc_star... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
... |
1,096 | static int kvm_mce_in_exception(CPUState *env)
{
struct kvm_msr_entry msr_mcg_status = {
.index = MSR_MCG_STATUS,
};
int r;
r = kvm_get_msr(env, &msr_mcg_status, 1);
if (r == -1 || r == 0) {
return -1;
}
return !!(msr_mcg_status.data & MCG_STATUS_MCIP);
}
| false | qemu | 6643e2f001f207bdb85646a4c48d1e13244d87c3 | static int kvm_mce_in_exception(CPUState *env)
{
struct kvm_msr_entry msr_mcg_status = {
.index = MSR_MCG_STATUS,
};
int r;
r = kvm_get_msr(env, &msr_mcg_status, 1);
if (r == -1 || r == 0) {
return -1;
}
return !!(msr_mcg_status.data & MCG_STATUS_MCIP);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(CPUState *VAR_0)
{
struct kvm_msr_entry VAR_1 = {
.index = MSR_MCG_STATUS,
};
int VAR_2;
VAR_2 = kvm_get_msr(VAR_0, &VAR_1, 1);
if (VAR_2 == -1 || VAR_2 == 0) {
return -1;
}
return !!(VAR_1.data & MCG_STATUS_MCIP);
}
| [
"static int FUNC_0(CPUState *VAR_0)\n{",
"struct kvm_msr_entry VAR_1 = {",
".index = MSR_MCG_STATUS,\n};",
"int VAR_2;",
"VAR_2 = kvm_get_msr(VAR_0, &VAR_1, 1);",
"if (VAR_2 == -1 || VAR_2 == 0) {",
"return -1;",
"}",
"return !!(VAR_1.data & MCG_STATUS_MCIP);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
1,097 | static void count_cpreg(gpointer key, gpointer opaque)
{
ARMCPU *cpu = opaque;
uint64_t regidx;
const ARMCPRegInfo *ri;
regidx = *(uint32_t *)key;
ri = get_arm_cp_reginfo(cpu->cp_regs, regidx);
if (!(ri->type & ARM_CP_NO_MIGRATE)) {
cpu->cpreg_array_len++;
}
}
| false | qemu | 7a0e58fa648736a75f2a6943afd2ab08ea15b8e0 | static void count_cpreg(gpointer key, gpointer opaque)
{
ARMCPU *cpu = opaque;
uint64_t regidx;
const ARMCPRegInfo *ri;
regidx = *(uint32_t *)key;
ri = get_arm_cp_reginfo(cpu->cp_regs, regidx);
if (!(ri->type & ARM_CP_NO_MIGRATE)) {
cpu->cpreg_array_len++;
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(gpointer VAR_0, gpointer VAR_1)
{
ARMCPU *cpu = VAR_1;
uint64_t regidx;
const ARMCPRegInfo *VAR_2;
regidx = *(uint32_t *)VAR_0;
VAR_2 = get_arm_cp_reginfo(cpu->cp_regs, regidx);
if (!(VAR_2->type & ARM_CP_NO_MIGRATE)) {
cpu->cpreg_array_len++;
}
}
| [
"static void FUNC_0(gpointer VAR_0, gpointer VAR_1)\n{",
"ARMCPU *cpu = VAR_1;",
"uint64_t regidx;",
"const ARMCPRegInfo *VAR_2;",
"regidx = *(uint32_t *)VAR_0;",
"VAR_2 = get_arm_cp_reginfo(cpu->cp_regs, regidx);",
"if (!(VAR_2->type & ARM_CP_NO_MIGRATE)) {",
"cpu->cpreg_array_len++;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
1,098 | static inline uint32_t efsctsiz(uint32_t val)
{
CPU_FloatU u;
u.l = val;
/* NaN are not treated the same way IEEE 754 does */
if (unlikely(float32_is_nan(u.f)))
return 0;
return float32_to_int32_round_to_zero(u.f, &env->vec_status);
}
| false | qemu | 185698715dfb18c82ad2a5dbc169908602d43e81 | static inline uint32_t efsctsiz(uint32_t val)
{
CPU_FloatU u;
u.l = val;
if (unlikely(float32_is_nan(u.f)))
return 0;
return float32_to_int32_round_to_zero(u.f, &env->vec_status);
}
| {
"code": [],
"line_no": []
} | static inline uint32_t FUNC_0(uint32_t val)
{
CPU_FloatU u;
u.l = val;
if (unlikely(float32_is_nan(u.f)))
return 0;
return float32_to_int32_round_to_zero(u.f, &env->vec_status);
}
| [
"static inline uint32_t FUNC_0(uint32_t val)\n{",
"CPU_FloatU u;",
"u.l = val;",
"if (unlikely(float32_is_nan(u.f)))\nreturn 0;",
"return float32_to_int32_round_to_zero(u.f, &env->vec_status);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13,
15
],
[
19
],
[
21
]
] |
1,099 | static void scsi_unrealize(SCSIDevice *s, Error **errp)
{
scsi_device_purge_requests(s, SENSE_CODE(NO_SENSE));
blockdev_mark_auto_del(s->conf.blk);
}
| false | qemu | fb7b5c0df6e3c501973ce4d57eb2b1d4344a519d | static void scsi_unrealize(SCSIDevice *s, Error **errp)
{
scsi_device_purge_requests(s, SENSE_CODE(NO_SENSE));
blockdev_mark_auto_del(s->conf.blk);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(SCSIDevice *VAR_0, Error **VAR_1)
{
scsi_device_purge_requests(VAR_0, SENSE_CODE(NO_SENSE));
blockdev_mark_auto_del(VAR_0->conf.blk);
}
| [
"static void FUNC_0(SCSIDevice *VAR_0, Error **VAR_1)\n{",
"scsi_device_purge_requests(VAR_0, SENSE_CODE(NO_SENSE));",
"blockdev_mark_auto_del(VAR_0->conf.blk);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
1,100 | int slirp_is_inited(void)
{
return slirp_inited;
}
| false | qemu | d918f23efaf486293b96418fe5deaff8a5583304 | int slirp_is_inited(void)
{
return slirp_inited;
}
| {
"code": [],
"line_no": []
} | int FUNC_0(void)
{
return slirp_inited;
}
| [
"int FUNC_0(void)\n{",
"return slirp_inited;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
1,102 | int pit_get_gate(PITState *pit, int channel)
{
PITChannelState *s = &pit->channels[channel];
return s->gate;
}
| false | qemu | 64d7e9a421fea0ac50b44541f5521de455e7cd5d | int pit_get_gate(PITState *pit, int channel)
{
PITChannelState *s = &pit->channels[channel];
return s->gate;
}
| {
"code": [],
"line_no": []
} | int FUNC_0(PITState *VAR_0, int VAR_1)
{
PITChannelState *s = &VAR_0->channels[VAR_1];
return s->gate;
}
| [
"int FUNC_0(PITState *VAR_0, int VAR_1)\n{",
"PITChannelState *s = &VAR_0->channels[VAR_1];",
"return s->gate;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
1,103 | void pci_register_bar(PCIDevice *pci_dev, int region_num,
uint8_t type, MemoryRegion *memory)
{
PCIIORegion *r;
uint32_t addr; /* offset in pci config space */
uint64_t wmask;
pcibus_t size = memory_region_size(memory);
assert(region_num >= 0);
assert(region_num <... | false | qemu | fd56e0612b6454a282fa6a953fdb09281a98c589 | void pci_register_bar(PCIDevice *pci_dev, int region_num,
uint8_t type, MemoryRegion *memory)
{
PCIIORegion *r;
uint32_t addr;
uint64_t wmask;
pcibus_t size = memory_region_size(memory);
assert(region_num >= 0);
assert(region_num < PCI_NUM_REGIONS);
if (size... | {
"code": [],
"line_no": []
} | void FUNC_0(PCIDevice *VAR_0, int VAR_1,
uint8_t VAR_2, MemoryRegion *VAR_3)
{
PCIIORegion *r;
uint32_t addr;
uint64_t wmask;
pcibus_t size = memory_region_size(VAR_3);
assert(VAR_1 >= 0);
assert(VAR_1 < PCI_NUM_REGIONS);
if (size & (size-1)) {
fpri... | [
"void FUNC_0(PCIDevice *VAR_0, int VAR_1,\nuint8_t VAR_2, MemoryRegion *VAR_3)\n{",
"PCIIORegion *r;",
"uint32_t addr;",
"uint64_t wmask;",
"pcibus_t size = memory_region_size(VAR_3);",
"assert(VAR_1 >= 0);",
"assert(VAR_1 < PCI_NUM_REGIONS);",
"if (size & (size-1)) {",
"fprintf(stderr, \"ERROR: PCI... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45,
47
],
[
51
... |
1,104 | static int configure_accelerator(void)
{
const char *p = NULL;
char buf[10];
int i, ret;
bool accel_initalised = 0;
bool init_failed = 0;
QemuOptsList *list = qemu_find_opts("machine");
if (!QTAILQ_EMPTY(&list->head)) {
p = qemu_opt_get(QTAILQ_FIRST(&list->head), "accel");... | false | qemu | a16c53b101a9897b0b2be96a1bb3bde7c04380f2 | static int configure_accelerator(void)
{
const char *p = NULL;
char buf[10];
int i, ret;
bool accel_initalised = 0;
bool init_failed = 0;
QemuOptsList *list = qemu_find_opts("machine");
if (!QTAILQ_EMPTY(&list->head)) {
p = qemu_opt_get(QTAILQ_FIRST(&list->head), "accel");... | {
"code": [],
"line_no": []
} | static int FUNC_0(void)
{
const char *VAR_0 = NULL;
char VAR_1[10];
int VAR_2, VAR_3;
bool accel_initalised = 0;
bool init_failed = 0;
QemuOptsList *list = qemu_find_opts("machine");
if (!QTAILQ_EMPTY(&list->head)) {
VAR_0 = qemu_opt_get(QTAILQ_FIRST(&list->head), "accel")... | [
"static int FUNC_0(void)\n{",
"const char *VAR_0 = NULL;",
"char VAR_1[10];",
"int VAR_2, VAR_3;",
"bool accel_initalised = 0;",
"bool init_failed = 0;",
"QemuOptsList *list = qemu_find_opts(\"machine\");",
"if (!QTAILQ_EMPTY(&list->head)) {",
"VAR_0 = qemu_opt_get(QTAILQ_FIRST(&list->head), \"accel... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.