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 |
|---|---|---|---|---|---|---|---|---|---|---|
19,374 | bool aio_dispatch(AioContext *ctx)
{
bool progress;
progress = aio_bh_poll(ctx);
progress |= aio_dispatch_handlers(ctx, INVALID_HANDLE_VALUE);
progress |= timerlistgroup_run_timers(&ctx->tlg);
return progress;
}
| false | qemu | 721671ade77f4046b45893fbb7864ca84b9504cd | bool aio_dispatch(AioContext *ctx)
{
bool progress;
progress = aio_bh_poll(ctx);
progress |= aio_dispatch_handlers(ctx, INVALID_HANDLE_VALUE);
progress |= timerlistgroup_run_timers(&ctx->tlg);
return progress;
}
| {
"code": [],
"line_no": []
} | bool FUNC_0(AioContext *ctx)
{
bool progress;
progress = aio_bh_poll(ctx);
progress |= aio_dispatch_handlers(ctx, INVALID_HANDLE_VALUE);
progress |= timerlistgroup_run_timers(&ctx->tlg);
return progress;
}
| [
"bool FUNC_0(AioContext *ctx)\n{",
"bool progress;",
"progress = aio_bh_poll(ctx);",
"progress |= aio_dispatch_handlers(ctx, INVALID_HANDLE_VALUE);",
"progress |= timerlistgroup_run_timers(&ctx->tlg);",
"return progress;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
19,375 | static void sm501_draw_crt(SM501State *s)
{
DisplaySurface *surface = qemu_console_surface(s->con);
int y, c_x = 0, c_y = 0;
uint8_t *hwc_src = NULL, *src = s->local_mem;
int width = get_width(s, 1);
int height = get_height(s, 1);
int src_bpp = get_bpp(s, 1);
int dst_bpp = surface_by... | false | qemu | 01d2d584c9e1d051892de115ab20787da62baf6a | static void sm501_draw_crt(SM501State *s)
{
DisplaySurface *surface = qemu_console_surface(s->con);
int y, c_x = 0, c_y = 0;
uint8_t *hwc_src = NULL, *src = s->local_mem;
int width = get_width(s, 1);
int height = get_height(s, 1);
int src_bpp = get_bpp(s, 1);
int dst_bpp = surface_by... | {
"code": [],
"line_no": []
} | static void FUNC_0(SM501State *VAR_0)
{
DisplaySurface *surface = qemu_console_surface(VAR_0->con);
int VAR_1, VAR_2 = 0, VAR_3 = 0;
uint8_t *hwc_src = NULL, *src = VAR_0->local_mem;
int VAR_4 = get_width(VAR_0, 1);
int VAR_5 = get_height(VAR_0, 1);
int VAR_6 = get_bpp(VAR_0, 1);
int... | [
"static void FUNC_0(SM501State *VAR_0)\n{",
"DisplaySurface *surface = qemu_console_surface(VAR_0->con);",
"int VAR_1, VAR_2 = 0, VAR_3 = 0;",
"uint8_t *hwc_src = NULL, *src = VAR_0->local_mem;",
"int VAR_4 = get_width(VAR_0, 1);",
"int VAR_5 = get_height(VAR_0, 1);",
"int VAR_6 = get_bpp(VAR_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,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
45
],
[... |
19,376 | static void test_io(void)
{
#ifndef _WIN32
/* socketpair(PF_UNIX) which does not exist on windows */
int sv[2];
int r;
unsigned i, j, k, s, t;
fd_set fds;
unsigned niov;
struct iovec *iov, *siov;
unsigned char *buf;
size_t sz;
iov_random(&iov, &niov);
sz = iov_si... | false | qemu | e3ff9f0e57472e6411dc446b41789cbd9e2cf887 | static void test_io(void)
{
#ifndef _WIN32
int sv[2];
int r;
unsigned i, j, k, s, t;
fd_set fds;
unsigned niov;
struct iovec *iov, *siov;
unsigned char *buf;
size_t sz;
iov_random(&iov, &niov);
sz = iov_size(iov, niov);
buf = g_malloc(sz);
for (i = 0; ... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
#ifndef _WIN32
int VAR_0[2];
int VAR_1;
unsigned VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;
fd_set fds;
unsigned VAR_7;
struct iovec *VAR_8, *VAR_9;
unsigned char *VAR_10;
size_t sz;
iov_random(&VAR_8, &VAR_7);
sz = iov_size(VAR_8, VAR_7);
... | [
"static void FUNC_0(void)\n{",
"#ifndef _WIN32\nint VAR_0[2];",
"int VAR_1;",
"unsigned VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;",
"fd_set fds;",
"unsigned VAR_7;",
"struct iovec *VAR_8, *VAR_9;",
"unsigned char *VAR_10;",
"size_t sz;",
"iov_random(&VAR_8, &VAR_7);",
"sz = iov_size(VAR_8, VAR_7);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
49
],
[
51
],
... |
19,377 | static gboolean gd_motion_event(GtkWidget *widget, GdkEventMotion *motion,
void *opaque)
{
GtkDisplayState *s = opaque;
int dx, dy;
int x, y;
x = motion->x / s->scale_x;
y = motion->y / s->scale_y;
if (kbd_mouse_is_absolute()) {
dx = x * 0x7FF... | false | qemu | 5104a1f65088285ddf870aa641b9061064e8757d | static gboolean gd_motion_event(GtkWidget *widget, GdkEventMotion *motion,
void *opaque)
{
GtkDisplayState *s = opaque;
int dx, dy;
int x, y;
x = motion->x / s->scale_x;
y = motion->y / s->scale_y;
if (kbd_mouse_is_absolute()) {
dx = x * 0x7FF... | {
"code": [],
"line_no": []
} | static gboolean FUNC_0(GtkWidget *widget, GdkEventMotion *motion,
void *opaque)
{
GtkDisplayState *s = opaque;
int VAR_0, VAR_1;
int VAR_2, VAR_3;
VAR_2 = motion->VAR_2 / s->scale_x;
VAR_3 = motion->VAR_3 / s->scale_y;
if (kbd_mouse_is_absolute()) {
... | [
"static gboolean FUNC_0(GtkWidget *widget, GdkEventMotion *motion,\nvoid *opaque)\n{",
"GtkDisplayState *s = opaque;",
"int VAR_0, VAR_1;",
"int VAR_2, VAR_3;",
"VAR_2 = motion->VAR_2 / s->scale_x;",
"VAR_3 = motion->VAR_3 / s->scale_y;",
"if (kbd_mouse_is_absolute()) {",
"VAR_0 = VAR_2 * 0x7FFF / (ds... | [
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
],
[
43
],
[
45
],
[
49
],
[... |
19,378 | static int virtio_9p_init_pci(PCIDevice *pci_dev)
{
VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev);
VirtIODevice *vdev;
vdev = virtio_9p_init(&pci_dev->qdev, &proxy->fsconf);
vdev->nvectors = proxy->nvectors;
virtio_init_pci(proxy, vdev,
PCI_VENDOR_I... | false | qemu | e75ccf2c033fb0503d6cb7ddd0fd1dfa0aa4fc16 | static int virtio_9p_init_pci(PCIDevice *pci_dev)
{
VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev);
VirtIODevice *vdev;
vdev = virtio_9p_init(&pci_dev->qdev, &proxy->fsconf);
vdev->nvectors = proxy->nvectors;
virtio_init_pci(proxy, vdev,
PCI_VENDOR_I... | {
"code": [],
"line_no": []
} | static int FUNC_0(PCIDevice *VAR_0)
{
VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, VAR_0, VAR_0);
VirtIODevice *vdev;
vdev = virtio_9p_init(&VAR_0->qdev, &proxy->fsconf);
vdev->nvectors = proxy->nvectors;
virtio_init_pci(proxy, vdev,
PCI_VENDOR_ID_REDHAT_QUMRANET,
... | [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, VAR_0, VAR_0);",
"VirtIODevice *vdev;",
"vdev = virtio_9p_init(&VAR_0->qdev, &proxy->fsconf);",
"vdev->nvectors = proxy->nvectors;",
"virtio_init_pci(proxy, vdev,\nPCI_VENDOR_ID_REDHAT_QUMRANET,\n0x1009,\n0x2,\n0x... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17,
19,
21,
23
],
[
27
],
[
29
],
[
31
]
] |
19,379 | void pc_guest_info_init(PCMachineState *pcms)
{
int i, j;
pcms->apic_xrupt_override = kvm_allows_irq0_override();
pcms->numa_nodes = nb_numa_nodes;
pcms->node_mem = g_malloc0(pcms->numa_nodes *
sizeof *pcms->node_mem);
for (i = 0; i < nb_numa_nodes; i++) ... | false | qemu | 1f3aba377d2a531453f018c70de2580a142c74c9 | void pc_guest_info_init(PCMachineState *pcms)
{
int i, j;
pcms->apic_xrupt_override = kvm_allows_irq0_override();
pcms->numa_nodes = nb_numa_nodes;
pcms->node_mem = g_malloc0(pcms->numa_nodes *
sizeof *pcms->node_mem);
for (i = 0; i < nb_numa_nodes; i++) ... | {
"code": [],
"line_no": []
} | void FUNC_0(PCMachineState *VAR_0)
{
int VAR_1, VAR_2;
VAR_0->apic_xrupt_override = kvm_allows_irq0_override();
VAR_0->numa_nodes = nb_numa_nodes;
VAR_0->node_mem = g_malloc0(VAR_0->numa_nodes *
sizeof *VAR_0->node_mem);
for (VAR_1 = 0; VAR_1 < nb_numa_no... | [
"void FUNC_0(PCMachineState *VAR_0)\n{",
"int VAR_1, VAR_2;",
"VAR_0->apic_xrupt_override = kvm_allows_irq0_override();",
"VAR_0->numa_nodes = nb_numa_nodes;",
"VAR_0->node_mem = g_malloc0(VAR_0->numa_nodes *\nsizeof *VAR_0->node_mem);",
"for (VAR_1 = 0; VAR_1 < nb_numa_nodes; VAR_1++) {",
"VAR_0->node_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
25,
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49... |
19,381 | void DMA_schedule(int nchan) {}
| false | qemu | 19d2b5e6ff7202c2bf45c547efa85ae6c2d76bbd | void DMA_schedule(int nchan) {}
| {
"code": [],
"line_no": []
} | void FUNC_0(int VAR_0) {}
| [
"void FUNC_0(int VAR_0) {}"
] | [
0
] | [
[
1
]
] |
19,382 | static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
const AVFrame *frame, int *got_packet)
{
SgiContext *s = avctx->priv_data;
const AVFrame * const p = frame;
PutByteContext pbc;
uint8_t *in_buf, *encode_buf;
int x, y, z, length, tablesize, ret;
unsigne... | false | FFmpeg | c34df422628e6b7b657faee241fe7bb2629e0f57 | static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
const AVFrame *frame, int *got_packet)
{
SgiContext *s = avctx->priv_data;
const AVFrame * const p = frame;
PutByteContext pbc;
uint8_t *in_buf, *encode_buf;
int x, y, z, length, tablesize, ret;
unsigne... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,
const AVFrame *VAR_2, int *VAR_3)
{
SgiContext *s = VAR_0->priv_data;
const AVFrame * const VAR_4 = VAR_2;
PutByteContext pbc;
uint8_t *in_buf, *encode_buf;
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;
un... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{",
"SgiContext *s = VAR_0->priv_data;",
"const AVFrame * const VAR_4 = VAR_2;",
"PutByteContext pbc;",
"uint8_t *in_buf, *encode_buf;",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;",
"unsigned int VAR_11, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23,
25,
27
],
[
29
],
[
31,
33,
37,
39,
41,
43
],
[
45,
47,
51
],
[
53
],
[
55
],
[
57
... |
19,383 | static uint64_t sysbus_esp_mem_read(void *opaque, target_phys_addr_t addr,
unsigned int size)
{
SysBusESPState *sysbus = opaque;
uint32_t saddr;
saddr = addr >> sysbus->it_shift;
return esp_reg_read(&sysbus->esp, saddr);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t sysbus_esp_mem_read(void *opaque, target_phys_addr_t addr,
unsigned int size)
{
SysBusESPState *sysbus = opaque;
uint32_t saddr;
saddr = addr >> sysbus->it_shift;
return esp_reg_read(&sysbus->esp, saddr);
}
| {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,
unsigned int size)
{
SysBusESPState *sysbus = opaque;
uint32_t saddr;
saddr = addr >> sysbus->it_shift;
return esp_reg_read(&sysbus->esp, saddr);
}
| [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned int size)\n{",
"SysBusESPState *sysbus = opaque;",
"uint32_t saddr;",
"saddr = addr >> sysbus->it_shift;",
"return esp_reg_read(&sysbus->esp, saddr);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
]
] |
19,384 | static int usb_bt_handle_data(USBDevice *dev, USBPacket *p)
{
struct USBBtState *s = (struct USBBtState *) dev->opaque;
int ret = 0;
if (!s->config)
goto fail;
switch (p->pid) {
case USB_TOKEN_IN:
switch (p->devep & 0xf) {
case USB_EVT_EP:
ret = usb_... | false | qemu | 079d0b7f1eedcc634c371fe05b617fdc55c8b762 | static int usb_bt_handle_data(USBDevice *dev, USBPacket *p)
{
struct USBBtState *s = (struct USBBtState *) dev->opaque;
int ret = 0;
if (!s->config)
goto fail;
switch (p->pid) {
case USB_TOKEN_IN:
switch (p->devep & 0xf) {
case USB_EVT_EP:
ret = usb_... | {
"code": [],
"line_no": []
} | static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1)
{
struct USBBtState *VAR_2 = (struct USBBtState *) VAR_0->opaque;
int VAR_3 = 0;
if (!VAR_2->config)
goto fail;
switch (VAR_1->pid) {
case USB_TOKEN_IN:
switch (VAR_1->devep & 0xf) {
case USB_EVT_EP:
... | [
"static int FUNC_0(USBDevice *VAR_0, USBPacket *VAR_1)\n{",
"struct USBBtState *VAR_2 = (struct USBBtState *) VAR_0->opaque;",
"int VAR_3 = 0;",
"if (!VAR_2->config)\ngoto fail;",
"switch (VAR_1->pid) {",
"case USB_TOKEN_IN:\nswitch (VAR_1->devep & 0xf) {",
"case USB_EVT_EP:\nVAR_3 = usb_bt_fifo_dequeue... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
31,
33
],
[
35
],
[
39,
41
],
[
43
],
[
47,
49
],
[
51
],
[
53
],
[
57,
59
],
... |
19,385 | void bdrv_io_unplugged_begin(BlockDriverState *bs)
{
BdrvChild *child;
if (bs->io_plug_disabled++ == 0 && bs->io_plugged > 0) {
BlockDriver *drv = bs->drv;
if (drv && drv->bdrv_io_unplug) {
drv->bdrv_io_unplug(bs);
}
}
QLIST_FOREACH(child, &bs->children, ... | false | qemu | 8f90b5e91df59fde0dfecc6738ff39f3edf14be5 | void bdrv_io_unplugged_begin(BlockDriverState *bs)
{
BdrvChild *child;
if (bs->io_plug_disabled++ == 0 && bs->io_plugged > 0) {
BlockDriver *drv = bs->drv;
if (drv && drv->bdrv_io_unplug) {
drv->bdrv_io_unplug(bs);
}
}
QLIST_FOREACH(child, &bs->children, ... | {
"code": [],
"line_no": []
} | void FUNC_0(BlockDriverState *VAR_0)
{
BdrvChild *child;
if (VAR_0->io_plug_disabled++ == 0 && VAR_0->io_plugged > 0) {
BlockDriver *drv = VAR_0->drv;
if (drv && drv->bdrv_io_unplug) {
drv->bdrv_io_unplug(VAR_0);
}
}
QLIST_FOREACH(child, &VAR_0->children,... | [
"void FUNC_0(BlockDriverState *VAR_0)\n{",
"BdrvChild *child;",
"if (VAR_0->io_plug_disabled++ == 0 && VAR_0->io_plugged > 0) {",
"BlockDriver *drv = VAR_0->drv;",
"if (drv && drv->bdrv_io_unplug) {",
"drv->bdrv_io_unplug(VAR_0);",
"}",
"}",
"QLIST_FOREACH(child, &VAR_0->children, next) {",
"FUNC_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
19,386 | static void acpi_get_pm_info(AcpiPmInfo *pm)
{
Object *piix = piix4_pm_find();
Object *lpc = ich9_lpc_find();
Object *obj = NULL;
QObject *o;
pm->cpu_hp_io_base = 0;
pm->pcihp_io_base = 0;
pm->pcihp_io_len = 0;
if (piix) {
obj = piix;
pm->cpu_hp_io_base = PII... | false | qemu | ebd8ea82441020f2781928b17f37ed9a0d2e4250 | static void acpi_get_pm_info(AcpiPmInfo *pm)
{
Object *piix = piix4_pm_find();
Object *lpc = ich9_lpc_find();
Object *obj = NULL;
QObject *o;
pm->cpu_hp_io_base = 0;
pm->pcihp_io_base = 0;
pm->pcihp_io_len = 0;
if (piix) {
obj = piix;
pm->cpu_hp_io_base = PII... | {
"code": [],
"line_no": []
} | static void FUNC_0(AcpiPmInfo *VAR_0)
{
Object *piix = piix4_pm_find();
Object *lpc = ich9_lpc_find();
Object *obj = NULL;
QObject *o;
VAR_0->cpu_hp_io_base = 0;
VAR_0->pcihp_io_base = 0;
VAR_0->pcihp_io_len = 0;
if (piix) {
obj = piix;
VAR_0->cpu_hp_io_base ... | [
"static void FUNC_0(AcpiPmInfo *VAR_0)\n{",
"Object *piix = piix4_pm_find();",
"Object *lpc = ich9_lpc_find();",
"Object *obj = NULL;",
"QObject *o;",
"VAR_0->cpu_hp_io_base = 0;",
"VAR_0->pcihp_io_base = 0;",
"VAR_0->pcihp_io_len = 0;",
"if (piix) {",
"obj = piix;",
"VAR_0->cpu_hp_io_base = PII... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
19,387 | static void icp_pit_write(void *opaque, target_phys_addr_t offset,
uint64_t value, unsigned size)
{
icp_pit_state *s = (icp_pit_state *)opaque;
int n;
n = offset >> 8;
if (n > 2) {
hw_error("%s: Bad timer %d\n", __func__, n);
}
arm_timer_write(s->ti... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void icp_pit_write(void *opaque, target_phys_addr_t offset,
uint64_t value, unsigned size)
{
icp_pit_state *s = (icp_pit_state *)opaque;
int n;
n = offset >> 8;
if (n > 2) {
hw_error("%s: Bad timer %d\n", __func__, n);
}
arm_timer_write(s->ti... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
icp_pit_state *s = (icp_pit_state *)VAR_0;
int VAR_4;
VAR_4 = VAR_1 >> 8;
if (VAR_4 > 2) {
hw_error("%s: Bad timer %d\VAR_4", __func__, VAR_4);
}
arm_timer_w... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"icp_pit_state *s = (icp_pit_state *)VAR_0;",
"int VAR_4;",
"VAR_4 = VAR_1 >> 8;",
"if (VAR_4 > 2) {",
"hw_error(\"%s: Bad timer %d\\VAR_4\", __func__, VAR_4);",
"}",
"arm_timer_write(s->timer[VAR_4], VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
]
] |
19,388 | static ram_addr_t get_current_ram_size(void)
{
GSList *list = NULL, *item;
ram_addr_t size = ram_size;
pc_dimm_build_list(qdev_get_machine(), &list);
for (item = list; item; item = g_slist_next(item)) {
Object *obj = OBJECT(item->data);
size += object_property_get_int(obj, PC_DI... | false | qemu | 2b75f848238651ef1bb407f66fa38d68775782bf | static ram_addr_t get_current_ram_size(void)
{
GSList *list = NULL, *item;
ram_addr_t size = ram_size;
pc_dimm_build_list(qdev_get_machine(), &list);
for (item = list; item; item = g_slist_next(item)) {
Object *obj = OBJECT(item->data);
size += object_property_get_int(obj, PC_DI... | {
"code": [],
"line_no": []
} | static ram_addr_t FUNC_0(void)
{
GSList *list = NULL, *item;
ram_addr_t size = ram_size;
pc_dimm_build_list(qdev_get_machine(), &list);
for (item = list; item; item = g_slist_next(item)) {
Object *obj = OBJECT(item->data);
size += object_property_get_int(obj, PC_DIMM_SIZE_PROP, ... | [
"static ram_addr_t FUNC_0(void)\n{",
"GSList *list = NULL, *item;",
"ram_addr_t size = ram_size;",
"pc_dimm_build_list(qdev_get_machine(), &list);",
"for (item = list; item; item = g_slist_next(item)) {",
"Object *obj = OBJECT(item->data);",
"size += object_property_get_int(obj, PC_DIMM_SIZE_PROP, &erro... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
]
] |
19,390 | void gen_intermediate_code_internal_a64(ARMCPU *cpu,
TranslationBlock *tb,
bool search_pc)
{
CPUState *cs = CPU(cpu);
CPUARMState *env = &cpu->env;
DisasContext dc1, *dc = &dc1;
CPUBreakpoint *bp;
int j, lj;
... | false | qemu | 9dbbc748d671c70599101836cd1c2719d92f3017 | void gen_intermediate_code_internal_a64(ARMCPU *cpu,
TranslationBlock *tb,
bool search_pc)
{
CPUState *cs = CPU(cpu);
CPUARMState *env = &cpu->env;
DisasContext dc1, *dc = &dc1;
CPUBreakpoint *bp;
int j, lj;
... | {
"code": [],
"line_no": []
} | void FUNC_0(ARMCPU *VAR_0,
TranslationBlock *VAR_1,
bool VAR_2)
{
CPUState *cs = CPU(VAR_0);
CPUARMState *env = &VAR_0->env;
DisasContext dc1, *dc = &dc1;
CPUBreakpoint *bp;
int VAR_3, VAR_4;
target_ulong pc... | [
"void FUNC_0(ARMCPU *VAR_0,\nTranslationBlock *VAR_1,\nbool VAR_2)\n{",
"CPUState *cs = CPU(VAR_0);",
"CPUARMState *env = &VAR_0->env;",
"DisasContext dc1, *dc = &dc1;",
"CPUBreakpoint *bp;",
"int VAR_3, VAR_4;",
"target_ulong pc_start;",
"target_ulong next_page_start;",
"int VAR_5;",
"int VAR_6;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
... |
19,391 | static void gen_farith (DisasContext *ctx, uint32_t op1, int ft,
int fs, int fd, int cc)
{
const char *opn = "farith";
const char *condnames[] = {
"c.f",
"c.un",
"c.eq",
"c.ueq",
"c.olt",
"c.ult",
... | false | qemu | 5e755519ac9d867f7da13f58a9d0c262db82e14c | static void gen_farith (DisasContext *ctx, uint32_t op1, int ft,
int fs, int fd, int cc)
{
const char *opn = "farith";
const char *condnames[] = {
"c.f",
"c.un",
"c.eq",
"c.ueq",
"c.olt",
"c.ult",
... | {
"code": [],
"line_no": []
} | static void FUNC_0 (DisasContext *VAR_0, uint32_t VAR_1, int VAR_2,
int VAR_3, int VAR_4, int VAR_5)
{
const char *VAR_6 = "farith";
const char *VAR_7[] = {
"c.f",
"c.un",
"c.eq",
"c.ueq",
"c.olt",
"c.ult",... | [
"static void FUNC_0 (DisasContext *VAR_0, uint32_t VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{",
"const char *VAR_6 = \"farith\";",
"const char *VAR_7[] = {",
"\"c.f\",\n\"c.un\",\n\"c.eq\",\n\"c.ueq\",\n\"c.olt\",\n\"c.ult\",\n\"c.ole\",\n\"c.ule\",\n\"c.sf\",\n\"c.ngle\",\n\"c.seq\",\n\"c.ngl\",\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11,
13,
15,
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43
],
[
45
],
[
47,
49,
51,
53,
55,
57,
59,
61,
63,
65,
67,
69,... |
19,392 | static int count_contiguous_clusters_unallocated(int nb_clusters,
uint64_t *l2_table,
QCow2ClusterType wanted_type)
{
int i;
assert(wanted_type == QCOW2_CLUSTER_ZERO ||
wanted_type == QCOW2_CLUST... | false | qemu | fdfab37dfeffefbd4533b4158055c9b82d7c3e69 | static int count_contiguous_clusters_unallocated(int nb_clusters,
uint64_t *l2_table,
QCow2ClusterType wanted_type)
{
int i;
assert(wanted_type == QCOW2_CLUSTER_ZERO ||
wanted_type == QCOW2_CLUST... | {
"code": [],
"line_no": []
} | static int FUNC_0(int VAR_0,
uint64_t *VAR_1,
QCow2ClusterType VAR_2)
{
int VAR_3;
assert(VAR_2 == QCOW2_CLUSTER_ZERO ||
VAR_2 == QCOW2_CLUSTER_UNALLOCATED);
for (VAR_3 = 0; VAR_3 < VAR_0; V... | [
"static int FUNC_0(int VAR_0,\nuint64_t *VAR_1,\nQCow2ClusterType VAR_2)\n{",
"int VAR_3;",
"assert(VAR_2 == QCOW2_CLUSTER_ZERO ||\nVAR_2 == QCOW2_CLUSTER_UNALLOCATED);",
"for (VAR_3 = 0; VAR_3 < VAR_0; VAR_3++) {",
"uint64_t entry = be64_to_cpu(VAR_1[VAR_3]);",
"QCow2ClusterType type = qcow2_get_cluster_... | [
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
],
[
35
],
[
37
]
] |
19,393 | static void rv34_idct_dc_add_c(uint8_t *dst, ptrdiff_t stride, int dc)
{
const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
int i, j;
cm += (13*13*dc + 0x200) >> 10;
for (i = 0; i < 4; i++)
{
for (j = 0; j < 4; j++)
dst[j] = cm[ dst[j] ];
dst += stride;
}
... | true | FFmpeg | c23acbaed40101c677dfcfbbfe0d2c230a8e8f44 | static void rv34_idct_dc_add_c(uint8_t *dst, ptrdiff_t stride, int dc)
{
const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
int i, j;
cm += (13*13*dc + 0x200) >> 10;
for (i = 0; i < 4; i++)
{
for (j = 0; j < 4; j++)
dst[j] = cm[ dst[j] ];
dst += stride;
}
... | {
"code": [
" const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
" cm += (13*13*dc + 0x200) >> 10;",
" dst[j] = cm[ dst[j] ];",
" const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
" const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
" const uint8_t *cm = ff_cropTbl + MAX_N... | static void FUNC_0(uint8_t *VAR_0, ptrdiff_t VAR_1, int VAR_2)
{
const uint8_t *VAR_3 = ff_cropTbl + MAX_NEG_CROP;
int VAR_4, VAR_5;
VAR_3 += (13*13*VAR_2 + 0x200) >> 10;
for (VAR_4 = 0; VAR_4 < 4; VAR_4++)
{
for (VAR_5 = 0; VAR_5 < 4; VAR_5++)
VAR_0[VAR_5] = VAR_3[ V... | [
"static void FUNC_0(uint8_t *VAR_0, ptrdiff_t VAR_1, int VAR_2)\n{",
"const uint8_t *VAR_3 = ff_cropTbl + MAX_NEG_CROP;",
"int VAR_4, VAR_5;",
"VAR_3 += (13*13*VAR_2 + 0x200) >> 10;",
"for (VAR_4 = 0; VAR_4 < 4; VAR_4++)",
"{",
"for (VAR_5 = 0; VAR_5 < 4; VAR_5++)",
"VAR_0[VAR_5] = VAR_3[ VAR_0[VAR_5]... | [
0,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
]
] |
19,394 | qemu_irq *armv7m_init(MemoryRegion *system_memory, int mem_size, int num_irq,
const char *kernel_filename, const char *cpu_model)
{
ARMCPU *cpu;
CPUARMState *env;
DeviceState *nvic;
qemu_irq *pic = g_new(qemu_irq, num_irq);
int image_size;
uint64_t entry;
uint6... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | qemu_irq *armv7m_init(MemoryRegion *system_memory, int mem_size, int num_irq,
const char *kernel_filename, const char *cpu_model)
{
ARMCPU *cpu;
CPUARMState *env;
DeviceState *nvic;
qemu_irq *pic = g_new(qemu_irq, num_irq);
int image_size;
uint64_t entry;
uint6... | {
"code": [
" memory_region_init_ram(hack, NULL, \"armv7m.hack\", 0x1000, &error_abort);"
],
"line_no": [
127
]
} | qemu_irq *FUNC_0(MemoryRegion *system_memory, int mem_size, int num_irq,
const char *kernel_filename, const char *cpu_model)
{
ARMCPU *cpu;
CPUARMState *env;
DeviceState *nvic;
qemu_irq *pic = g_new(qemu_irq, num_irq);
int VAR_0;
uint64_t entry;
uint64_t lowadd... | [
"qemu_irq *FUNC_0(MemoryRegion *system_memory, int mem_size, int num_irq,\nconst char *kernel_filename, const char *cpu_model)\n{",
"ARMCPU *cpu;",
"CPUARMState *env;",
"DeviceState *nvic;",
"qemu_irq *pic = g_new(qemu_irq, num_irq);",
"int VAR_0;",
"uint64_t entry;",
"uint64_t lowaddr;",
"int VAR_1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
19,395 | int qemu_show_nic_models(const char *arg, const char *const *models)
{
int i;
if (!arg || strcmp(arg, "?"))
return 0;
fprintf(stderr, "qemu: Supported NIC models: ");
for (i = 0 ; models[i]; i++)
fprintf(stderr, "%s%c", models[i], models[i+1] ? ',' : '\n');
return 1;
}
| true | qemu | c8057f951d64de93bfd01569c0a725baa9f94372 | int qemu_show_nic_models(const char *arg, const char *const *models)
{
int i;
if (!arg || strcmp(arg, "?"))
return 0;
fprintf(stderr, "qemu: Supported NIC models: ");
for (i = 0 ; models[i]; i++)
fprintf(stderr, "%s%c", models[i], models[i+1] ? ',' : '\n');
return 1;
}
| {
"code": [
" if (!arg || strcmp(arg, \"?\"))"
],
"line_no": [
9
]
} | int FUNC_0(const char *VAR_0, const char *const *VAR_1)
{
int VAR_2;
if (!VAR_0 || strcmp(VAR_0, "?"))
return 0;
fprintf(stderr, "qemu: Supported NIC VAR_1: ");
for (VAR_2 = 0 ; VAR_1[VAR_2]; VAR_2++)
fprintf(stderr, "%s%c", VAR_1[VAR_2], VAR_1[VAR_2+1] ? ',' : '\n');
ret... | [
"int FUNC_0(const char *VAR_0, const char *const *VAR_1)\n{",
"int VAR_2;",
"if (!VAR_0 || strcmp(VAR_0, \"?\"))\nreturn 0;",
"fprintf(stderr, \"qemu: Supported NIC VAR_1: \");",
"for (VAR_2 = 0 ; VAR_1[VAR_2]; VAR_2++)",
"fprintf(stderr, \"%s%c\", VAR_1[VAR_2], VAR_1[VAR_2+1] ? ',' : '\\n');",
"return ... | [
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
19,396 | void SwScale_Init(){
// generating tables:
int i;
for(i=0; i<768; i++){
int c= MIN(MAX(i-256, 0), 255);
clip_table[i]=c;
yuvtab_2568[c]= clip_yuvtab_2568[i]=(0x2568*(c-16))+(256<<13);
yuvtab_3343[c]= clip_yuvtab_3343[i]=0x3343*(c-128);
yuvtab_0c92[c]= clip_yuvtab_0c92[i]=-0x0c92*(c-128);
yuvt... | true | FFmpeg | 28bf81c90d36a55cf76e2be913c5215ebebf61f2 | void SwScale_Init(){
int i;
for(i=0; i<768; i++){
int c= MIN(MAX(i-256, 0), 255);
clip_table[i]=c;
yuvtab_2568[c]= clip_yuvtab_2568[i]=(0x2568*(c-16))+(256<<13);
yuvtab_3343[c]= clip_yuvtab_3343[i]=0x3343*(c-128);
yuvtab_0c92[c]= clip_yuvtab_0c92[i]=-0x0c92*(c-128);
yuvtab_1a1e[c]= clip_yuvt... | {
"code": [
" \tint v= clip_table[i];"
],
"line_no": [
31
]
} | void FUNC_0(){
int VAR_0;
for(VAR_0=0; VAR_0<768; VAR_0++){
int VAR_1= MIN(MAX(VAR_0-256, 0), 255);
clip_table[VAR_0]=VAR_1;
yuvtab_2568[VAR_1]= clip_yuvtab_2568[VAR_0]=(0x2568*(VAR_1-16))+(256<<13);
yuvtab_3343[VAR_1]= clip_yuvtab_3343[VAR_0]=0x3343*(VAR_1-128);
yuvtab_0c92[VAR_1]= clip_yuvta... | [
"void FUNC_0(){",
"int VAR_0;",
"for(VAR_0=0; VAR_0<768; VAR_0++){",
"int VAR_1= MIN(MAX(VAR_0-256, 0), 255);",
"clip_table[VAR_0]=VAR_1;",
"yuvtab_2568[VAR_1]= clip_yuvtab_2568[VAR_0]=(0x2568*(VAR_1-16))+(256<<13);",
"yuvtab_3343[VAR_1]= clip_yuvtab_3343[VAR_0]=0x3343*(VAR_1-128);",
"yuvtab_0c92[VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
... |
19,397 | void openrisc_cpu_do_interrupt(CPUState *cs)
{
#ifndef CONFIG_USER_ONLY
OpenRISCCPU *cpu = OPENRISC_CPU(cs);
CPUOpenRISCState *env = &cpu->env;
env->epcr = env->pc;
if (env->flags & D_FLAG) {
env->flags &= ~D_FLAG;
env->sr |= SR_DSX;
env->epcr -= 4;
if (cs->exc... | true | qemu | c56e3b86701501364a4756201b6a9db9454463ab | void openrisc_cpu_do_interrupt(CPUState *cs)
{
#ifndef CONFIG_USER_ONLY
OpenRISCCPU *cpu = OPENRISC_CPU(cs);
CPUOpenRISCState *env = &cpu->env;
env->epcr = env->pc;
if (env->flags & D_FLAG) {
env->flags &= ~D_FLAG;
env->sr |= SR_DSX;
env->epcr -= 4;
if (cs->exc... | {
"code": [],
"line_no": []
} | void FUNC_0(CPUState *VAR_0)
{
#ifndef CONFIG_USER_ONLY
OpenRISCCPU *cpu = OPENRISC_CPU(VAR_0);
CPUOpenRISCState *env = &cpu->env;
env->epcr = env->pc;
if (env->flags & D_FLAG) {
env->flags &= ~D_FLAG;
env->sr |= SR_DSX;
env->epcr -= 4;
if (VAR_0->exception_ind... | [
"void FUNC_0(CPUState *VAR_0)\n{",
"#ifndef CONFIG_USER_ONLY\nOpenRISCCPU *cpu = OPENRISC_CPU(VAR_0);",
"CPUOpenRISCState *env = &cpu->env;",
"env->epcr = env->pc;",
"if (env->flags & D_FLAG) {",
"env->flags &= ~D_FLAG;",
"env->sr |= SR_DSX;",
"env->epcr -= 4;",
"if (VAR_0->exception_index == EXCP_S... | [
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
],
[
26
],
[
28
],
[
42
],
[
46
],
[
48
],
[
50
],
[
52
],
[
54
],
[
56
],
[
58
],
[
60
],
[... |
19,398 | static char *qemu_rbd_array_opts(QDict *options, const char *prefix, int type,
Error **errp)
{
int num_entries;
QemuOpts *opts = NULL;
QDict *sub_options;
const char *host;
const char *port;
char *str;
char *rados_str = NULL;
Error *local_err = ... | true | qemu | 2836284db603775af557e969d5a800efb0190324 | static char *qemu_rbd_array_opts(QDict *options, const char *prefix, int type,
Error **errp)
{
int num_entries;
QemuOpts *opts = NULL;
QDict *sub_options;
const char *host;
const char *port;
char *str;
char *rados_str = NULL;
Error *local_err = ... | {
"code": [
"static char *qemu_rbd_array_opts(QDict *options, const char *prefix, int type,",
" Error **errp)",
" int num_entries;",
" QemuOpts *opts = NULL;",
" QDict *sub_options;",
" const char *host;",
" const char *port;",
" char *... | static char *FUNC_0(QDict *VAR_0, const char *VAR_1, int VAR_2,
Error **VAR_3)
{
int VAR_4;
QemuOpts *opts = NULL;
QDict *sub_options;
const char *VAR_5;
const char *VAR_6;
char *VAR_7;
char *VAR_8 = NULL;
Error *local_err = NULL;
int VAR_9... | [
"static char *FUNC_0(QDict *VAR_0, const char *VAR_1, int VAR_2,\nError **VAR_3)\n{",
"int VAR_4;",
"QemuOpts *opts = NULL;",
"QDict *sub_options;",
"const char *VAR_5;",
"const char *VAR_6;",
"char *VAR_7;",
"char *VAR_8 = NULL;",
"Error *local_err = NULL;",
"int VAR_9;",
"assert(VAR_2 == RBD_M... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
0,
0,
0,
1,
0,
1,
1,
1,
1,
0,
1,
0,
1,
1,
1,
0,
1,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[... |
19,399 | static float *put_vector(vorbis_enc_codebook *book, PutBitContext *pb,
float *num)
{
int i, entry = -1;
float distance = FLT_MAX;
assert(book->dimentions);
for (i = 0; i < book->nentries; i++) {
float * vec = book->dimentions + i * book->ndimentions, d = book->pow... | true | FFmpeg | 1ba08c94f5bb4d1c3c2d3651b5e01edb4ce172e2 | static float *put_vector(vorbis_enc_codebook *book, PutBitContext *pb,
float *num)
{
int i, entry = -1;
float distance = FLT_MAX;
assert(book->dimentions);
for (i = 0; i < book->nentries; i++) {
float * vec = book->dimentions + i * book->ndimentions, d = book->pow... | {
"code": [
" put_codeword(pb, book, entry);"
],
"line_no": [
37
]
} | static float *FUNC_0(vorbis_enc_codebook *VAR_0, PutBitContext *VAR_1,
float *VAR_2)
{
int VAR_3, VAR_4 = -1;
float VAR_5 = FLT_MAX;
assert(VAR_0->dimentions);
for (VAR_3 = 0; VAR_3 < VAR_0->nentries; VAR_3++) {
float * vec = VAR_0->dimentions + VAR_3 * VAR_0->ndi... | [
"static float *FUNC_0(vorbis_enc_codebook *VAR_0, PutBitContext *VAR_1,\nfloat *VAR_2)\n{",
"int VAR_3, VAR_4 = -1;",
"float VAR_5 = FLT_MAX;",
"assert(VAR_0->dimentions);",
"for (VAR_3 = 0; VAR_3 < VAR_0->nentries; VAR_3++) {",
"float * vec = VAR_0->dimentions + VAR_3 * VAR_0->ndimentions, d = VAR_0->pow... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
19,400 | static int mov_write_single_packet(AVFormatContext *s, AVPacket *pkt)
{
MOVMuxContext *mov = s->priv_data;
MOVTrack *trk = &mov->tracks[pkt->stream_index];
AVCodecParameters *par = trk->par;
int64_t frag_duration = 0;
int size = pkt->size;
if (mov->flags & FF_MOV_FLAG_FRA... | true | FFmpeg | 28343139330f557e00293933a4697c7d0fc19c56 | static int mov_write_single_packet(AVFormatContext *s, AVPacket *pkt)
{
MOVMuxContext *mov = s->priv_data;
MOVTrack *trk = &mov->tracks[pkt->stream_index];
AVCodecParameters *par = trk->par;
int64_t frag_duration = 0;
int size = pkt->size;
if (mov->flags & FF_MOV_FLAG_FRA... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
MOVMuxContext *mov = VAR_0->priv_data;
MOVTrack *trk = &mov->tracks[VAR_1->stream_index];
AVCodecParameters *par = trk->par;
int64_t frag_duration = 0;
int VAR_2 = VAR_1->VAR_2;
if (mov->flags & FF_MOV_FLAG_FRAG... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"MOVMuxContext *mov = VAR_0->priv_data;",
"MOVTrack *trk = &mov->tracks[VAR_1->stream_index];",
"AVCodecParameters *par = trk->par;",
"int64_t frag_duration = 0;",
"int VAR_2 = VAR_1->VAR_2;",
"if (mov->flags & FF_MOV_FLAG_FRAG_DISCONT) {"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],... |
19,401 | int cpu_exec(CPUArchState *env)
{
CPUState *cpu = ENV_GET_CPU(env);
#if !(defined(CONFIG_USER_ONLY) && \
(defined(TARGET_M68K) || defined(TARGET_PPC) || defined(TARGET_S390X)))
CPUClass *cc = CPU_GET_CLASS(cpu);
#endif
#ifdef TARGET_I386
X86CPU *x86_cpu = X86_CPU(cpu);
#endif
int ret, in... | true | qemu | bae2c270906475093e3d5f4c3103dbe67bf82009 | int cpu_exec(CPUArchState *env)
{
CPUState *cpu = ENV_GET_CPU(env);
#if !(defined(CONFIG_USER_ONLY) && \
(defined(TARGET_M68K) || defined(TARGET_PPC) || defined(TARGET_S390X)))
CPUClass *cc = CPU_GET_CLASS(cpu);
#endif
#ifdef TARGET_I386
X86CPU *x86_cpu = X86_CPU(cpu);
#endif
int ret, in... | {
"code": [],
"line_no": []
} | int FUNC_0(CPUArchState *VAR_0)
{
CPUState *cpu = ENV_GET_CPU(VAR_0);
#if !(defined(CONFIG_USER_ONLY) && \
(defined(TARGET_M68K) || defined(TARGET_PPC) || defined(TARGET_S390X)))
CPUClass *cc = CPU_GET_CLASS(cpu);
#endif
#ifdef TARGET_I386
X86CPU *x86_cpu = X86_CPU(cpu);
#endif
int VAR_1... | [
"int FUNC_0(CPUArchState *VAR_0)\n{",
"CPUState *cpu = ENV_GET_CPU(VAR_0);",
"#if !(defined(CONFIG_USER_ONLY) && \\\n(defined(TARGET_M68K) || defined(TARGET_PPC) || defined(TARGET_S390X)))\nCPUClass *cc = CPU_GET_CLASS(cpu);",
"#endif\n#ifdef TARGET_I386\nX86CPU *x86_cpu = X86_CPU(cpu);",
"#endif\nint VAR_1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7,
9,
11
],
[
13,
15,
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
49
],
[
65
],
[
69
],
[... |
19,402 | static int bdrv_can_snapshot(BlockDriverState *bs)
{
return (bs &&
!bdrv_is_removable(bs) &&
!bdrv_is_read_only(bs));
}
| true | qemu | feeee5aca765606818e00f5a19d19f141f4ae365 | static int bdrv_can_snapshot(BlockDriverState *bs)
{
return (bs &&
!bdrv_is_removable(bs) &&
!bdrv_is_read_only(bs));
}
| {
"code": [
"static int bdrv_can_snapshot(BlockDriverState *bs)",
" return (bs &&",
" !bdrv_is_removable(bs) &&",
" !bdrv_is_read_only(bs));",
" return (bs &&",
" !bdrv_is_removable(bs) &&",
" !bdrv_is_read_only(bs));"
],
"line_no": [
... | static int FUNC_0(BlockDriverState *VAR_0)
{
return (VAR_0 &&
!bdrv_is_removable(VAR_0) &&
!bdrv_is_read_only(VAR_0));
}
| [
"static int FUNC_0(BlockDriverState *VAR_0)\n{",
"return (VAR_0 &&\n!bdrv_is_removable(VAR_0) &&\n!bdrv_is_read_only(VAR_0));",
"}"
] | [
1,
1,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
11
]
] |
19,404 | int hw_device_init_from_string(const char *arg, HWDevice **dev_out)
{
// "type=name:device,key=value,key2=value2"
// "type:device,key=value,key2=value2"
// -> av_hwdevice_ctx_create()
// "type=name@name"
// "type@name"
// -> av_hwdevice_ctx_create_derived()
AVDictionary *options = ... | false | FFmpeg | b0cd14fb1dab4b044f7fe6b53ac635409849de77 | int hw_device_init_from_string(const char *arg, HWDevice **dev_out)
{
AVDictionary *options = NULL;
char *type_name = NULL, *name = NULL, *device = NULL;
enum AVHWDeviceType type;
HWDevice *dev, *src;
AVBufferRef *device_ref = NULL;
int err;
cons... | {
"code": [],
"line_no": []
} | int FUNC_0(const char *VAR_0, HWDevice **VAR_1)
{
AVDictionary *options = NULL;
char *VAR_2 = NULL, *VAR_3 = NULL, *VAR_4 = NULL;
enum AVHWDeviceType VAR_5;
HWDevice *dev, *src;
AVBufferRef *device_ref = NULL;
int VAR_6;
const char *VAR_7, *VAR_8... | [
"int FUNC_0(const char *VAR_0, HWDevice **VAR_1)\n{",
"AVDictionary *options = NULL;",
"char *VAR_2 = NULL, *VAR_3 = NULL, *VAR_4 = NULL;",
"enum AVHWDeviceType VAR_5;",
"HWDevice *dev, *src;",
"AVBufferRef *device_ref = NULL;",
"int VAR_6;",
"const char *VAR_7, *VAR_8, *VAR_9;",
"size_t k;",
"k =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
... |
19,405 | static void vaapi_encode_h264_write_pps(PutBitContext *pbc,
VAAPIEncodeContext *ctx)
{
VAEncPictureParameterBufferH264 *vpic = ctx->codec_picture_params;
VAAPIEncodeH264Context *priv = ctx->priv_data;
VAAPIEncodeH264MiscSequenceParams *mseq = &priv->... | false | FFmpeg | 5c2fb561d94fc51d76ab21d6f7cc5b6cc3aa599c | static void vaapi_encode_h264_write_pps(PutBitContext *pbc,
VAAPIEncodeContext *ctx)
{
VAEncPictureParameterBufferH264 *vpic = ctx->codec_picture_params;
VAAPIEncodeH264Context *priv = ctx->priv_data;
VAAPIEncodeH264MiscSequenceParams *mseq = &priv->... | {
"code": [],
"line_no": []
} | static void FUNC_0(PutBitContext *VAR_0,
VAAPIEncodeContext *VAR_1)
{
VAEncPictureParameterBufferH264 *vpic = VAR_1->codec_picture_params;
VAAPIEncodeH264Context *priv = VAR_1->priv_data;
VAAPIEncodeH264MiscSequenceParams *mseq = &priv->misc_sequence... | [
"static void FUNC_0(PutBitContext *VAR_0,\nVAAPIEncodeContext *VAR_1)\n{",
"VAEncPictureParameterBufferH264 *vpic = VAR_1->codec_picture_params;",
"VAAPIEncodeH264Context *priv = VAR_1->priv_data;",
"VAAPIEncodeH264MiscSequenceParams *mseq = &priv->misc_sequence_params;",
"vaapi_encode_h264_wri... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
49
],
[
51
],
[
55
],
[... |
19,407 | static av_always_inline int coeff_abs_level_remaining_decode(HEVCContext *s, int rc_rice_param)
{
int prefix = 0;
int suffix = 0;
int last_coeff_abs_level_remaining;
int i;
while (prefix < CABAC_MAX_BIN && get_cabac_bypass(&s->HEVClc->cc))
prefix++;
if (prefix == CABAC_MAX_BIN)... | false | FFmpeg | 94d4237a7a294ce80e1e577b38e9c93e8882aff9 | static av_always_inline int coeff_abs_level_remaining_decode(HEVCContext *s, int rc_rice_param)
{
int prefix = 0;
int suffix = 0;
int last_coeff_abs_level_remaining;
int i;
while (prefix < CABAC_MAX_BIN && get_cabac_bypass(&s->HEVClc->cc))
prefix++;
if (prefix == CABAC_MAX_BIN)... | {
"code": [],
"line_no": []
} | static av_always_inline int FUNC_0(HEVCContext *s, int rc_rice_param)
{
int VAR_0 = 0;
int VAR_1 = 0;
int VAR_2;
int VAR_3;
while (VAR_0 < CABAC_MAX_BIN && get_cabac_bypass(&s->HEVClc->cc))
VAR_0++;
if (VAR_0 == CABAC_MAX_BIN) {
av_log(s->avctx, AV_LOG_ERROR, "CABAC_MA... | [
"static av_always_inline int FUNC_0(HEVCContext *s, int rc_rice_param)\n{",
"int VAR_0 = 0;",
"int VAR_1 = 0;",
"int VAR_2;",
"int VAR_3;",
"while (VAR_0 < CABAC_MAX_BIN && get_cabac_bypass(&s->HEVClc->cc))\nVAR_0++;",
"if (VAR_0 == CABAC_MAX_BIN) {",
"av_log(s->avctx, AV_LOG_ERROR, \"CABAC_MAX_BIN : ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
... |
19,409 | static void float_number(void)
{
int i;
struct {
const char *encoded;
double decoded;
int skip;
} test_cases[] = {
{ "32.43", 32.43 },
{ "0.222", 0.222 },
{ "-32.12313", -32.12313 },
{ "-32.20e-10", -32.20e-10, .skip = 1 },
{ },
... | true | qemu | aec4b054ea36c53c8b887da99f20010133b84378 | static void float_number(void)
{
int i;
struct {
const char *encoded;
double decoded;
int skip;
} test_cases[] = {
{ "32.43", 32.43 },
{ "0.222", 0.222 },
{ "-32.12313", -32.12313 },
{ "-32.20e-10", -32.20e-10, .skip = 1 },
{ },
... | {
"code": [
" obj = qobject_from_json(test_cases[i].encoded, NULL);",
" obj = qobject_from_json(test_cases[i].encoded, NULL);",
" obj = qobject_from_json(test_cases[i].encoded, NULL);",
" obj = qobject_from_json(test_cases[i].encoded, NULL);",
" obj = qobject_fro... | static void FUNC_0(void)
{
int VAR_0;
struct {
const char *encoded;
double decoded;
int skip;
} VAR_1[] = {
{ "32.43", 32.43 },
{ "0.222", 0.222 },
{ "-32.12313", -32.12313 },
{ "-32.20e-10", -32.20e-10, .skip = 1 },
{ },
};
... | [
"static void FUNC_0(void)\n{",
"int VAR_0;",
"struct {",
"const char *encoded;",
"double decoded;",
"int skip;",
"} VAR_1[] = {",
"{ \"32.43\", 32.43 },",
"{ \"0.222\", 0.222 },",
"{ \"-32.12313\", -32.12313 },",
"{ \"-32.20e-10\", -32.20e-10, .skip = 1 },",
"{ },",
"};",
"for (VAR_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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
... |
19,410 | AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name)
{
int i;
if(!name)
return NULL;
for(i = 0; i < graph->filter_count; i ++)
if(graph->filters[i]->name && !strcmp(name, graph->filters[i]->name))
return graph->filters[i];
return NULL;
}... | false | FFmpeg | e1a43a414677258b1e01d3f9a8f40bfc74be4223 | AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name)
{
int i;
if(!name)
return NULL;
for(i = 0; i < graph->filter_count; i ++)
if(graph->filters[i]->name && !strcmp(name, graph->filters[i]->name))
return graph->filters[i];
return NULL;
}... | {
"code": [],
"line_no": []
} | AVFilterContext *FUNC_0(AVFilterGraph *graph, char *name)
{
int VAR_0;
if(!name)
return NULL;
for(VAR_0 = 0; VAR_0 < graph->filter_count; VAR_0 ++)
if(graph->filters[VAR_0]->name && !strcmp(name, graph->filters[VAR_0]->name))
return graph->filters[VAR_0];
return... | [
"AVFilterContext *FUNC_0(AVFilterGraph *graph, char *name)\n{",
"int VAR_0;",
"if(!name)\nreturn NULL;",
"for(VAR_0 = 0; VAR_0 < graph->filter_count; VAR_0 ++)",
"if(graph->filters[VAR_0]->name && !strcmp(name, graph->filters[VAR_0]->name))\nreturn graph->filters[VAR_0];",
"return NULL;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17,
19
],
[
23
],
[
25
]
] |
19,412 | static int mirror_do_read(MirrorBlockJob *s, int64_t sector_num,
int nb_sectors)
{
BlockBackend *source = s->common.blk;
int sectors_per_chunk, nb_chunks;
int ret = nb_sectors;
MirrorOp *op;
sectors_per_chunk = s->granularity >> BDRV_SECTOR_BITS;
/* We can o... | true | qemu | 73698c30caaf16e990b8b2e6e7bc64928947e65e | static int mirror_do_read(MirrorBlockJob *s, int64_t sector_num,
int nb_sectors)
{
BlockBackend *source = s->common.blk;
int sectors_per_chunk, nb_chunks;
int ret = nb_sectors;
MirrorOp *op;
sectors_per_chunk = s->granularity >> BDRV_SECTOR_BITS;
nb_se... | {
"code": [
" blk_aio_preadv(source, sector_num * BDRV_SECTOR_SIZE, &op->qiov,",
" nb_sectors * BDRV_SECTOR_SIZE,"
],
"line_no": [
107,
109
]
} | static int FUNC_0(MirrorBlockJob *VAR_0, int64_t VAR_1,
int VAR_2)
{
BlockBackend *source = VAR_0->common.blk;
int VAR_3, VAR_4;
int VAR_5 = VAR_2;
MirrorOp *op;
VAR_3 = VAR_0->granularity >> BDRV_SECTOR_BITS;
VAR_2 = MIN(VAR_0->buf_size >> BDRV_SECTOR... | [
"static int FUNC_0(MirrorBlockJob *VAR_0, int64_t VAR_1,\nint VAR_2)\n{",
"BlockBackend *source = VAR_0->common.blk;",
"int VAR_3, VAR_4;",
"int VAR_5 = VAR_2;",
"MirrorOp *op;",
"VAR_3 = VAR_0->granularity >> BDRV_SECTOR_BITS;",
"VAR_2 = MIN(VAR_0->buf_size >> BDRV_SECTOR_BITS, VAR_2);",
"assert(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,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[
61
],
[... |
19,413 | static void pred_temp_direct_motion(H264Context * const h, int *mb_type){
MpegEncContext * const s = &h->s;
int b8_stride = 2;
int b4_stride = h->b_stride;
int mb_xy = h->mb_xy, mb_y = s->mb_y;
int mb_type_col[2];
const int16_t (*l1mv0)[2], (*l1mv1)[2];
const int8_t *l1ref0, *l1ref1;
... | true | FFmpeg | 758ec111538ccd487686e8677aa754ee4d82beaa | static void pred_temp_direct_motion(H264Context * const h, int *mb_type){
MpegEncContext * const s = &h->s;
int b8_stride = 2;
int b4_stride = h->b_stride;
int mb_xy = h->mb_xy, mb_y = s->mb_y;
int mb_type_col[2];
const int16_t (*l1mv0)[2], (*l1mv1)[2];
const int8_t *l1ref0, *l1ref1;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(H264Context * const VAR_0, int *VAR_1){
MpegEncContext * const s = &VAR_0->s;
int VAR_2 = 2;
int VAR_3 = VAR_0->b_stride;
int VAR_4 = VAR_0->VAR_4, VAR_5 = s->VAR_5;
int VAR_6[2];
const FUNC_1 (*l1mv0)[2], (*l1mv1)[2];
const int8_t *VAR_7, *l1ref1;
const int VA... | [
"static void FUNC_0(H264Context * const VAR_0, int *VAR_1){",
"MpegEncContext * const s = &VAR_0->s;",
"int VAR_2 = 2;",
"int VAR_3 = VAR_0->b_stride;",
"int VAR_4 = VAR_0->VAR_4, VAR_5 = s->VAR_5;",
"int VAR_6[2];",
"const FUNC_1 (*l1mv0)[2], (*l1mv1)[2];",
"const int8_t *VAR_7, *l1ref1;",
"const i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
19,415 | static inline int cris_abs(int n)
{
int r;
asm ("abs\t%1, %0\n" : "=r" (r) : "r" (n));
return r;
}
| true | qemu | 21ce148c7ec71ee32834061355a5ecfd1a11f90f | static inline int cris_abs(int n)
{
int r;
asm ("abs\t%1, %0\n" : "=r" (r) : "r" (n));
return r;
}
| {
"code": [
"static inline int cris_abs(int n)"
],
"line_no": [
1
]
} | static inline int FUNC_0(int VAR_0)
{
int VAR_1;
asm ("abs\t%1, %0\VAR_0" : "=VAR_1" (VAR_1) : "VAR_1" (VAR_0));
return VAR_1;
}
| [
"static inline int FUNC_0(int VAR_0)\n{",
"int VAR_1;",
"asm (\"abs\\t%1, %0\\VAR_0\" : \"=VAR_1\" (VAR_1) : \"VAR_1\" (VAR_0));",
"return VAR_1;",
"}"
] | [
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
19,416 | static int bmdma_prepare_buf(IDEDMA *dma, int is_write)
{
BMDMAState *bm = DO_UPCAST(BMDMAState, dma, dma);
IDEState *s = bmdma_active_if(bm);
PCIDevice *pci_dev = PCI_DEVICE(bm->pci_dev);
struct {
uint32_t addr;
uint32_t size;
} prd;
int l, len;
pci_dma_sglist_in... | true | qemu | 3251bdcf1c67427d964517053c3d185b46e618e8 | static int bmdma_prepare_buf(IDEDMA *dma, int is_write)
{
BMDMAState *bm = DO_UPCAST(BMDMAState, dma, dma);
IDEState *s = bmdma_active_if(bm);
PCIDevice *pci_dev = PCI_DEVICE(bm->pci_dev);
struct {
uint32_t addr;
uint32_t size;
} prd;
int l, len;
pci_dma_sglist_in... | {
"code": [
"static int bmdma_prepare_buf(IDEDMA *dma, int is_write)",
" (bm->cur_addr - bm->addr) >= BMDMA_PAGE_SIZE)",
" return s->io_buffer_size != 0;",
" return 1;"
],
"line_no": [
1,
37,
39,
79
]
} | static int FUNC_0(IDEDMA *VAR_0, int VAR_1)
{
BMDMAState *bm = DO_UPCAST(BMDMAState, VAR_0, VAR_0);
IDEState *s = bmdma_active_if(bm);
PCIDevice *pci_dev = PCI_DEVICE(bm->pci_dev);
struct {
uint32_t addr;
uint32_t size;
} VAR_2;
int VAR_3, VAR_4;
pci_dma_sglist_in... | [
"static int FUNC_0(IDEDMA *VAR_0, int VAR_1)\n{",
"BMDMAState *bm = DO_UPCAST(BMDMAState, VAR_0, VAR_0);",
"IDEState *s = bmdma_active_if(bm);",
"PCIDevice *pci_dev = PCI_DEVICE(bm->pci_dev);",
"struct {",
"uint32_t addr;",
"uint32_t size;",
"} VAR_2;",
"int VAR_3, VAR_4;",
"pci_dma_sglist_init(&s... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
35,
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
19,417 | av_cold int ff_mss12_decode_init(MSS12Context *c, int version,
SliceContext* sc1, SliceContext *sc2)
{
AVCodecContext *avctx = c->avctx;
int i;
if (avctx->extradata_size < 52 + 256 * 3) {
av_log(avctx, AV_LOG_ERROR, "Insufficient extradata size %d\n",
... | true | FFmpeg | ee9151b616fa7fa5e9b3258ecafd00c9f784baaa | av_cold int ff_mss12_decode_init(MSS12Context *c, int version,
SliceContext* sc1, SliceContext *sc2)
{
AVCodecContext *avctx = c->avctx;
int i;
if (avctx->extradata_size < 52 + 256 * 3) {
av_log(avctx, AV_LOG_ERROR, "Insufficient extradata size %d\n",
... | {
"code": [],
"line_no": []
} | av_cold int FUNC_0(MSS12Context *c, int version,
SliceContext* sc1, SliceContext *sc2)
{
AVCodecContext *avctx = c->avctx;
int VAR_0;
if (avctx->extradata_size < 52 + 256 * 3) {
av_log(avctx, AV_LOG_ERROR, "Insufficient extradata size %d\n",
a... | [
"av_cold int FUNC_0(MSS12Context *c, int version,\nSliceContext* sc1, SliceContext *sc2)\n{",
"AVCodecContext *avctx = c->avctx;",
"int VAR_0;",
"if (avctx->extradata_size < 52 + 256 * 3) {",
"av_log(avctx, AV_LOG_ERROR, \"Insufficient extradata size %d\\n\",\navctx->extradata_size);",
"if (AV_RB32(avctx-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
23
],
[
25,
27,
29,
31
],
[
37
],
[
39
],
[
41
],
[
43,
55,
57
],
[
59
],
[
61,
63
],
[
65
],
[
70
],
[
72
... |
19,418 | static int decode_frame(NUTContext *nut, AVPacket *pkt, int frame_code)
{
AVFormatContext *s = nut->avf;
AVIOContext *bc = s->pb;
int size, stream_id, discard;
int64_t pts, last_IP_pts;
StreamContext *stc;
uint8_t header_idx;
size = decode_frame_header(nut, &pts, &stream_id, &he... | true | FFmpeg | 71fe97a60ad7dd6fe15238ca0eee1ed3121b5f80 | static int decode_frame(NUTContext *nut, AVPacket *pkt, int frame_code)
{
AVFormatContext *s = nut->avf;
AVIOContext *bc = s->pb;
int size, stream_id, discard;
int64_t pts, last_IP_pts;
StreamContext *stc;
uint8_t header_idx;
size = decode_frame_header(nut, &pts, &stream_id, &he... | {
"code": [
" avio_read(bc, pkt->data + nut->header_len[header_idx], size);"
],
"line_no": [
89
]
} | static int FUNC_0(NUTContext *VAR_0, AVPacket *VAR_1, int VAR_2)
{
AVFormatContext *s = VAR_0->avf;
AVIOContext *bc = s->pb;
int VAR_3, VAR_4, VAR_5;
int64_t pts, last_IP_pts;
StreamContext *stc;
uint8_t header_idx;
VAR_3 = decode_frame_header(VAR_0, &pts, &VAR_4, &header_idx, V... | [
"static int FUNC_0(NUTContext *VAR_0, AVPacket *VAR_1, int VAR_2)\n{",
"AVFormatContext *s = VAR_0->avf;",
"AVIOContext *bc = s->pb;",
"int VAR_3, VAR_4, VAR_5;",
"int64_t pts, last_IP_pts;",
"StreamContext *stc;",
"uint8_t header_idx;",
"VAR_3 = decode_frame_header(VAR_0, &pts, &VAR_4, &header_idx... | [
0,
0,
0,
0,
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
27
],
[
31,
33
],
[
37
],
[
39
],
[
41,
43,
45,
47,
49
],
[
51
],
[
53
],
[
55
... |
19,419 | static int rm_assemble_video_frame(AVFormatContext *s, ByteIOContext *pb,
RMDemuxContext *rm, RMStream *vst,
AVPacket *pkt, int len, int *pseq)
{
int hdr, seq, pic_num, len2, pos;
int type;
hdr = get_byte(pb); len--;
type = h... | true | FFmpeg | cbb5da57cdaf547e47253beef31ddf38d181252a | static int rm_assemble_video_frame(AVFormatContext *s, ByteIOContext *pb,
RMDemuxContext *rm, RMStream *vst,
AVPacket *pkt, int len, int *pseq)
{
int hdr, seq, pic_num, len2, pos;
int type;
hdr = get_byte(pb); len--;
type = h... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, ByteIOContext *VAR_1,
RMDemuxContext *VAR_2, RMStream *VAR_3,
AVPacket *VAR_4, int VAR_5, int *VAR_6)
{
int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;
int VAR_12;
VAR_7 = get_byte(VAR_1); VAR_5-... | [
"static int FUNC_0(AVFormatContext *VAR_0, ByteIOContext *VAR_1,\nRMDemuxContext *VAR_2, RMStream *VAR_3,\nAVPacket *VAR_4, int VAR_5, int *VAR_6)\n{",
"int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;",
"int VAR_12;",
"VAR_7 = get_byte(VAR_1); VAR_5--;",
"VAR_12 = VAR_7 >> 6;",
"if(VAR_12 != 3){",
"VAR_8 = get... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,... |
19,420 | static int queue_picture(VideoState *is, AVFrame *src_frame, double pts1, int64_t pos)
{
VideoPicture *vp;
double frame_delay, pts = pts1;
/* compute the exact PTS for the picture if it is omitted in the stream
* pts1 is the dts of the pkt / pts of the frame */
if (pts != 0) {
/* u... | true | FFmpeg | 0a1cf6621067c4a85b519c8cad5c345c29017f89 | static int queue_picture(VideoState *is, AVFrame *src_frame, double pts1, int64_t pos)
{
VideoPicture *vp;
double frame_delay, pts = pts1;
if (pts != 0) {
is->video_clock = pts;
} else {
pts = is->video_clock;
frame_delay = av_q2d(is->video_st->code... | {
"code": [],
"line_no": []
} | static int FUNC_0(VideoState *VAR_0, AVFrame *VAR_1, double VAR_2, int64_t VAR_3)
{
VideoPicture *vp;
double VAR_4, VAR_5 = VAR_2;
if (VAR_5 != 0) {
VAR_0->video_clock = VAR_5;
} else {
VAR_5 = VAR_0->video_clock;
VAR_4 = av_q2d(VAR_0->video_st->cod... | [
"static int FUNC_0(VideoState *VAR_0, AVFrame *VAR_1, double VAR_2, int64_t VAR_3)\n{",
"VideoPicture *vp;",
"double VAR_4, VAR_5 = VAR_2;",
"if (VAR_5 != 0) {",
"VAR_0->video_clock = VAR_5;",
"} else {",
"VAR_5 = VAR_0->video_clock;",
"VAR_4 = av_q2d(VAR_0->video_st->codec->time_base);",
"VAR_4 += ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
15
],
[
19
],
[
21
],
[
23
],
[
28
],
[
34
],
[
36
],
[
40,
42,
44
],
[
46,
52
],
[
56,
58
],
[
62,
64
],
[
68
],
[
72,
74
],
[
78... |
19,421 | static int assigned_device_pci_cap_init(PCIDevice *pci_dev)
{
AssignedDevice *dev = DO_UPCAST(AssignedDevice, dev, pci_dev);
PCIRegion *pci_region = dev->real_device.regions;
int ret, pos;
/* Clear initial capabilities pointer and status copied from hw */
pci_set_byte(pci_dev->config + PCI_C... | true | qemu | 665f119fbad97c05c2603673ac6b2dcbf0d0e9e1 | static int assigned_device_pci_cap_init(PCIDevice *pci_dev)
{
AssignedDevice *dev = DO_UPCAST(AssignedDevice, dev, pci_dev);
PCIRegion *pci_region = dev->real_device.regions;
int ret, pos;
pci_set_byte(pci_dev->config + PCI_CAPABILITY_LIST, 0);
pci_set_word(pci_dev->config + PCI_STATUS... | {
"code": [
" if (!check_irqchip_in_kernel()) {",
" if (!check_irqchip_in_kernel()) {"
],
"line_no": [
33,
33
]
} | static int FUNC_0(PCIDevice *VAR_0)
{
AssignedDevice *dev = DO_UPCAST(AssignedDevice, dev, VAR_0);
PCIRegion *pci_region = dev->real_device.regions;
int VAR_1, VAR_2;
pci_set_byte(VAR_0->config + PCI_CAPABILITY_LIST, 0);
pci_set_word(VAR_0->config + PCI_STATUS,
pci_ge... | [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"AssignedDevice *dev = DO_UPCAST(AssignedDevice, dev, VAR_0);",
"PCIRegion *pci_region = dev->real_device.regions;",
"int VAR_1, VAR_2;",
"pci_set_byte(VAR_0->config + PCI_CAPABILITY_LIST, 0);",
"pci_set_word(VAR_0->config + PCI_STATUS,\npci_get_word(VAR_0->config... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
17,
19,
21
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55,
57,
59
... |
19,422 | static void xscale_cpar_write(CPUARMState *env, const ARMCPRegInfo *ri,
uint64_t value)
{
value &= 0x3fff;
if (env->cp15.c15_cpar != value) {
/* Changes cp0 to cp13 behavior, so needs a TB flush. */
tb_flush(env);
env->cp15.c15_cpar = value;
}
... | true | qemu | c0f4af171999eda4e49de5169906ce98246457f0 | static void xscale_cpar_write(CPUARMState *env, const ARMCPRegInfo *ri,
uint64_t value)
{
value &= 0x3fff;
if (env->cp15.c15_cpar != value) {
tb_flush(env);
env->cp15.c15_cpar = value;
}
}
| {
"code": [
" value &= 0x3fff;",
" if (env->cp15.c15_cpar != value) {",
" tb_flush(env);",
" env->cp15.c15_cpar = value;"
],
"line_no": [
7,
9,
13,
15
]
} | static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1,
uint64_t VAR_2)
{
VAR_2 &= 0x3fff;
if (VAR_0->cp15.c15_cpar != VAR_2) {
tb_flush(VAR_0);
VAR_0->cp15.c15_cpar = VAR_2;
}
}
| [
"static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1,\nuint64_t VAR_2)\n{",
"VAR_2 &= 0x3fff;",
"if (VAR_0->cp15.c15_cpar != VAR_2) {",
"tb_flush(VAR_0);",
"VAR_0->cp15.c15_cpar = VAR_2;",
"}",
"}"
] | [
0,
1,
1,
1,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
19,424 | static int compensate_volume(AVFilterContext *ctx)
{
struct SOFAlizerContext *s = ctx->priv;
float compensate;
float energy = 0;
float *ir;
int m;
if (s->sofa.ncid) {
/* find IR at front center position in the SOFA file (IR closest to 0°,0°,1m) */
struct NCSofa *sofa =... | true | FFmpeg | 79a54f30c8ba02cbf2b02c650120246b260977ec | static int compensate_volume(AVFilterContext *ctx)
{
struct SOFAlizerContext *s = ctx->priv;
float compensate;
float energy = 0;
float *ir;
int m;
if (s->sofa.ncid) {
struct NCSofa *sofa = &s->sofa;
m = find_m(s, 0, 0, 1);
ir = sofa->data_i... | {
"code": [
" s->fdsp->vector_fmul_scalar(ir, ir, compensate, sofa->n_samples * sofa->m_dim * 2);",
" emms_c();"
],
"line_no": [
47,
49
]
} | static int FUNC_0(AVFilterContext *VAR_0)
{
struct SOFAlizerContext *VAR_1 = VAR_0->priv;
float VAR_2;
float VAR_3 = 0;
float *VAR_4;
int VAR_5;
if (VAR_1->VAR_6.ncid) {
struct NCSofa *VAR_6 = &VAR_1->VAR_6;
VAR_5 = find_m(VAR_1, 0, 0, 1);
... | [
"static int FUNC_0(AVFilterContext *VAR_0)\n{",
"struct SOFAlizerContext *VAR_1 = VAR_0->priv;",
"float VAR_2;",
"float VAR_3 = 0;",
"float *VAR_4;",
"int VAR_5;",
"if (VAR_1->VAR_6.ncid) {",
"struct NCSofa *VAR_6 = &VAR_1->VAR_6;",
"VAR_5 = find_m(VAR_1, 0, 0, 1);",
"VAR_4 = VAR_6->data_ir + 2 * ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
... |
19,425 | static char *qio_channel_websock_handshake_entry(const char *handshake,
size_t handshake_len,
const char *name)
{
char *begin, *end, *ret = NULL;
char *line = g_strdup_printf("%s%s: ",
... | true | qemu | 07e95cd529af345fdeea230913f68eff5b925bb6 | static char *qio_channel_websock_handshake_entry(const char *handshake,
size_t handshake_len,
const char *name)
{
char *begin, *end, *ret = NULL;
char *line = g_strdup_printf("%s%s: ",
... | {
"code": [
"static char *qio_channel_websock_handshake_entry(const char *handshake,",
" size_t handshake_len,",
" const char *name)",
" char *begin, *end, *ret = NULL;",
" char *line = g_strdup_p... | static char *FUNC_0(const char *VAR_0,
size_t VAR_1,
const char *VAR_2)
{
char *VAR_3, *VAR_4, *VAR_5 = NULL;
char *VAR_6 = g_strdup_printf("%s%s: ",
QIO_CHANNEL_WEBSOCK_HANDS... | [
"static char *FUNC_0(const char *VAR_0,\nsize_t VAR_1,\nconst char *VAR_2)\n{",
"char *VAR_3, *VAR_4, *VAR_5 = NULL;",
"char *VAR_6 = g_strdup_printf(\"%s%s: \",\nQIO_CHANNEL_WEBSOCK_HANDSHAKE_DELIM,\nVAR_2);",
"VAR_3 = g_strstr_len(VAR_0, VAR_1, VAR_6);",
"if (VAR_3 != NULL) {",
"VAR_3 += strlen(VAR_6);"... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
1,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11,
13,
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
19,426 | static void machvirt_init(MachineState *machine)
{
VirtMachineState *vms = VIRT_MACHINE(machine);
VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(machine);
qemu_irq pic[NUM_IRQS];
MemoryRegion *sysmem = get_system_memory();
MemoryRegion *secure_sysmem = NULL;
int n, virt_max_cpus;
Mem... | true | qemu | dbb74759fae6f521709e16e19cbb7d6fb2307700 | static void machvirt_init(MachineState *machine)
{
VirtMachineState *vms = VIRT_MACHINE(machine);
VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(machine);
qemu_irq pic[NUM_IRQS];
MemoryRegion *sysmem = get_system_memory();
MemoryRegion *secure_sysmem = NULL;
int n, virt_max_cpus;
Mem... | {
"code": [],
"line_no": []
} | static void FUNC_0(MachineState *VAR_0)
{
VirtMachineState *vms = VIRT_MACHINE(VAR_0);
VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(VAR_0);
qemu_irq pic[NUM_IRQS];
MemoryRegion *sysmem = get_system_memory();
MemoryRegion *secure_sysmem = NULL;
int VAR_1, VAR_2;
MemoryRegion *ram = ... | [
"static void FUNC_0(MachineState *VAR_0)\n{",
"VirtMachineState *vms = VIRT_MACHINE(VAR_0);",
"VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(VAR_0);",
"qemu_irq pic[NUM_IRQS];",
"MemoryRegion *sysmem = get_system_memory();",
"MemoryRegion *secure_sysmem = NULL;",
"int VAR_1, VAR_2;",
"MemoryRegion *r... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
37
],
[
39
],
[
41
],
[
51
... |
19,427 | static int check_refcounts_l2(BlockDriverState *bs, BdrvCheckResult *res,
uint16_t *refcount_table, int64_t refcount_table_size, int64_t l2_offset,
int flags)
{
BDRVQcowState *s = bs->opaque;
uint64_t *l2_table, l2_entry;
uint64_t next_contiguous_offset = 0;
int i, l2_size, nb_csectors;
... | true | qemu | ad27390c85c50df402c7ec0d3864fc43e6559fb3 | static int check_refcounts_l2(BlockDriverState *bs, BdrvCheckResult *res,
uint16_t *refcount_table, int64_t refcount_table_size, int64_t l2_offset,
int flags)
{
BDRVQcowState *s = bs->opaque;
uint64_t *l2_table, l2_entry;
uint64_t next_contiguous_offset = 0;
int i, l2_size, nb_csectors;
... | {
"code": [
" int i, l2_size, nb_csectors;",
" if (bdrv_pread(bs->file, l2_offset, l2_table, l2_size) != l2_size)",
" fprintf(stderr, \"ERROR: I/O error in check_refcounts_l2\\n\");",
" return -EIO;",
" return -EIO;"
],
"line_no": [
15,
27,
191,
195,
195
]
... | static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1,
uint16_t *VAR_2, int64_t VAR_3, int64_t VAR_4,
int VAR_5)
{
BDRVQcowState *s = VAR_0->opaque;
uint64_t *l2_table, l2_entry;
uint64_t next_contiguous_offset = 0;
int VAR_6, VAR_7, VAR_8;
VAR_7 = s->VAR_7 * size... | [
"static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1,\nuint16_t *VAR_2, int64_t VAR_3, int64_t VAR_4,\nint VAR_5)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"uint64_t *l2_table, l2_entry;",
"uint64_t next_contiguous_offset = 0;",
"int VAR_6, VAR_7, VAR_8;",
"VAR_7 = s->VAR_7 * sizeof(uint64_t... | [
0,
0,
0,
0,
1,
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,
1,
0,
1,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
27,
29
],
[
35
],
[
37
],
[
41
],
[
43,
47
],
[
49,
51,
53
],
[
55
],
[
57
],
[
59
],
[
65,... |
19,428 | static int get_delayed_pic(DiracContext *s, AVFrame *picture, int *got_frame)
{
DiracFrame *out = s->delay_frames[0];
int i, out_idx = 0;
int ret;
/* find frame with lowest picture number */
for (i = 1; s->delay_frames[i]; i++)
if (s->delay_frames[i]->avframe->display_picture_numbe... | true | FFmpeg | 6899e6e56065d9365963e02690dc9e2ce7866050 | static int get_delayed_pic(DiracContext *s, AVFrame *picture, int *got_frame)
{
DiracFrame *out = s->delay_frames[0];
int i, out_idx = 0;
int ret;
for (i = 1; s->delay_frames[i]; i++)
if (s->delay_frames[i]->avframe->display_picture_number < out->avframe->display_picture_number) {... | {
"code": [
" *got_frame = 1;"
],
"line_no": [
37
]
} | static int FUNC_0(DiracContext *VAR_0, AVFrame *VAR_1, int *VAR_2)
{
DiracFrame *out = VAR_0->delay_frames[0];
int VAR_3, VAR_4 = 0;
int VAR_5;
for (VAR_3 = 1; VAR_0->delay_frames[VAR_3]; VAR_3++)
if (VAR_0->delay_frames[VAR_3]->avframe->display_picture_number < out->avframe->disp... | [
"static int FUNC_0(DiracContext *VAR_0, AVFrame *VAR_1, int *VAR_2)\n{",
"DiracFrame *out = VAR_0->delay_frames[0];",
"int VAR_3, VAR_4 = 0;",
"int VAR_5;",
"for (VAR_3 = 1; VAR_0->delay_frames[VAR_3]; VAR_3++)",
"if (VAR_0->delay_frames[VAR_3]->avframe->display_picture_number < out->avframe->display_pic... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
47
],
[
49
]
] |
19,429 | static void do_subtitle_out(AVFormatContext *s,
OutputStream *ost,
InputStream *ist,
AVSubtitle *sub)
{
int subtitle_out_max_size = 1024 * 1024;
int subtitle_out_size, nb, i;
AVCodecContext *enc;
AVPacket pkt;
... | true | FFmpeg | 5ef19590802f000299e418143fc2301e3f43affe | static void do_subtitle_out(AVFormatContext *s,
OutputStream *ost,
InputStream *ist,
AVSubtitle *sub)
{
int subtitle_out_max_size = 1024 * 1024;
int subtitle_out_size, nb, i;
AVCodecContext *enc;
AVPacket pkt;
... | {
"code": [
" if (exit_on_error)",
" exit_program(1);",
" exit_program(1);",
" write_frame(s, &pkt, ost);",
" write_frame(s, &pkt, ost);",
" write_frame(s, &pkt, ost);"
],
"line_no": [
27,
29,
29,
161,
161,
161
]
} | static void FUNC_0(AVFormatContext *VAR_0,
OutputStream *VAR_1,
InputStream *VAR_2,
AVSubtitle *VAR_3)
{
int VAR_4 = 1024 * 1024;
int VAR_5, VAR_6, VAR_7;
AVCodecContext *enc;
AVPacket pkt;
int64_t pts;
... | [
"static void FUNC_0(AVFormatContext *VAR_0,\nOutputStream *VAR_1,\nInputStream *VAR_2,\nAVSubtitle *VAR_3)\n{",
"int VAR_4 = 1024 * 1024;",
"int VAR_5, VAR_6, VAR_7;",
"AVCodecContext *enc;",
"AVPacket pkt;",
"int64_t pts;",
"if (VAR_3->pts == AV_NOPTS_VALUE) {",
"av_log(NULL, AV_LOG_ERROR, \"Subtitle... | [
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,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
19,430 | static int bdrv_has_snapshot(BlockDriverState *bs)
{
return (bs &&
!bdrv_is_removable(bs) &&
!bdrv_is_read_only(bs));
}
| true | qemu | feeee5aca765606818e00f5a19d19f141f4ae365 | static int bdrv_has_snapshot(BlockDriverState *bs)
{
return (bs &&
!bdrv_is_removable(bs) &&
!bdrv_is_read_only(bs));
}
| {
"code": [
" return (bs &&",
" !bdrv_is_removable(bs) &&",
" !bdrv_is_read_only(bs));",
"static int bdrv_has_snapshot(BlockDriverState *bs)",
" return (bs &&",
" !bdrv_is_removable(bs) &&",
" !bdrv_is_read_only(bs));"
],
"line_no": [
... | static int FUNC_0(BlockDriverState *VAR_0)
{
return (VAR_0 &&
!bdrv_is_removable(VAR_0) &&
!bdrv_is_read_only(VAR_0));
}
| [
"static int FUNC_0(BlockDriverState *VAR_0)\n{",
"return (VAR_0 &&\n!bdrv_is_removable(VAR_0) &&\n!bdrv_is_read_only(VAR_0));",
"}"
] | [
1,
1,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
11
]
] |
19,432 | static void dec_ill(DisasContext *dc)
{
cpu_abort(dc->env, "unknown opcode 0x%02x\n", dc->opcode);
}
| true | qemu | 3604a76fea6ff37738d4a8f596be38407be74a83 | static void dec_ill(DisasContext *dc)
{
cpu_abort(dc->env, "unknown opcode 0x%02x\n", dc->opcode);
}
| {
"code": [
" cpu_abort(dc->env, \"unknown opcode 0x%02x\\n\", dc->opcode);"
],
"line_no": [
5
]
} | static void FUNC_0(DisasContext *VAR_0)
{
cpu_abort(VAR_0->env, "unknown opcode 0x%02x\n", VAR_0->opcode);
}
| [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"cpu_abort(VAR_0->env, \"unknown opcode 0x%02x\\n\", VAR_0->opcode);",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
19,433 | static int vhdx_create_new_headers(BlockDriverState *bs, uint64_t image_size,
uint32_t log_size)
{
int ret = 0;
VHDXHeader *hdr = NULL;
hdr = g_malloc0(sizeof(VHDXHeader));
hdr->signature = VHDX_HEADER_SIGNATURE;
hdr->sequence_number = g_random_int... | true | qemu | 5839e53bbc0fec56021d758aab7610df421ed8c8 | static int vhdx_create_new_headers(BlockDriverState *bs, uint64_t image_size,
uint32_t log_size)
{
int ret = 0;
VHDXHeader *hdr = NULL;
hdr = g_malloc0(sizeof(VHDXHeader));
hdr->signature = VHDX_HEADER_SIGNATURE;
hdr->sequence_number = g_random_int... | {
"code": [
" hdr = g_malloc0(sizeof(VHDXHeader));"
],
"line_no": [
13
]
} | static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,
uint32_t VAR_2)
{
int VAR_3 = 0;
VHDXHeader *hdr = NULL;
hdr = g_malloc0(sizeof(VHDXHeader));
hdr->signature = VHDX_HEADER_SIGNATURE;
hdr->sequence_number = g_random_int();
hdr->log_ve... | [
"static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nuint32_t VAR_2)\n{",
"int VAR_3 = 0;",
"VHDXHeader *hdr = NULL;",
"hdr = g_malloc0(sizeof(VHDXHeader));",
"hdr->signature = VHDX_HEADER_SIGNATURE;",
"hdr->sequence_number = g_random_int();",
"hdr->log_version = 0;",
"hdr->version ... | [
0,
0,
0,
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
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
19,436 | void checkasm_check_h264qpel(void)
{
LOCAL_ALIGNED_16(uint8_t, buf0, [BUF_SIZE]);
LOCAL_ALIGNED_16(uint8_t, buf1, [BUF_SIZE]);
LOCAL_ALIGNED_16(uint8_t, dst0, [BUF_SIZE]);
LOCAL_ALIGNED_16(uint8_t, dst1, [BUF_SIZE]);
H264QpelContext h;
int op, bit_depth, i, j;
for (op = 0; op < 2; ... | false | FFmpeg | 515b69f8f8e9a24cfaee95d8c1f63f265d8582fe | void checkasm_check_h264qpel(void)
{
LOCAL_ALIGNED_16(uint8_t, buf0, [BUF_SIZE]);
LOCAL_ALIGNED_16(uint8_t, buf1, [BUF_SIZE]);
LOCAL_ALIGNED_16(uint8_t, dst0, [BUF_SIZE]);
LOCAL_ALIGNED_16(uint8_t, dst1, [BUF_SIZE]);
H264QpelContext h;
int op, bit_depth, i, j;
for (op = 0; op < 2; ... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
LOCAL_ALIGNED_16(uint8_t, buf0, [BUF_SIZE]);
LOCAL_ALIGNED_16(uint8_t, buf1, [BUF_SIZE]);
LOCAL_ALIGNED_16(uint8_t, dst0, [BUF_SIZE]);
LOCAL_ALIGNED_16(uint8_t, dst1, [BUF_SIZE]);
H264QpelContext h;
int VAR_0, VAR_1, VAR_2, VAR_3;
for (VAR_0 = 0; VAR_0 < 2; VAR_... | [
"void FUNC_0(void)\n{",
"LOCAL_ALIGNED_16(uint8_t, buf0, [BUF_SIZE]);",
"LOCAL_ALIGNED_16(uint8_t, buf1, [BUF_SIZE]);",
"LOCAL_ALIGNED_16(uint8_t, dst0, [BUF_SIZE]);",
"LOCAL_ALIGNED_16(uint8_t, dst1, [BUF_SIZE]);",
"H264QpelContext h;",
"int VAR_0, VAR_1, VAR_2, VAR_3;",
"for (VAR_0 = 0; VAR_0 < 2; V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,... |
19,437 | static int wma_decode_init(AVCodecContext * avctx)
{
WMADecodeContext *s = avctx->priv_data;
int i, flags1, flags2;
float *window;
uint8_t *extradata;
float bps1, high_freq, bps;
int sample_rate1;
int coef_vlc_table;
s->sample_rate = avctx->sample_rate;
s->nb_channels... | false | FFmpeg | 4707cb07e1ceb0d1a518eda08fbf0d4035ea7745 | static int wma_decode_init(AVCodecContext * avctx)
{
WMADecodeContext *s = avctx->priv_data;
int i, flags1, flags2;
float *window;
uint8_t *extradata;
float bps1, high_freq, bps;
int sample_rate1;
int coef_vlc_table;
s->sample_rate = avctx->sample_rate;
s->nb_channels... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext * VAR_0)
{
WMADecodeContext *s = VAR_0->priv_data;
int VAR_16, VAR_2, VAR_3;
float *VAR_4;
uint8_t *extradata;
float VAR_5, VAR_6, VAR_7;
int VAR_8;
int VAR_9;
s->sample_rate = VAR_0->sample_rate;
s->nb_channels = VAR_0->channels;
... | [
"static int FUNC_0(AVCodecContext * VAR_0)\n{",
"WMADecodeContext *s = VAR_0->priv_data;",
"int VAR_16, VAR_2, VAR_3;",
"float *VAR_4;",
"uint8_t *extradata;",
"float VAR_5, VAR_6, VAR_7;",
"int VAR_8;",
"int VAR_9;",
"s->sample_rate = VAR_0->sample_rate;",
"s->nb_channels = VAR_0->channels;",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
45
],
[
47
],
[
49
... |
19,438 | const char *av_get_string(void *obj, const char *name, const AVOption **o_out, char *buf, int buf_len)
{
const AVOption *o = av_opt_find(obj, name, NULL, 0, 0);
void *dst;
uint8_t *bin;
int len, i;
if (!o || o->offset<=0)
return NULL;
if (o->type != FF_OPT_TYPE_STRING && (!buf ||... | false | FFmpeg | 4dbcdfa86d1405f7e5c0ec14a4be7d2fb5903d7b | const char *av_get_string(void *obj, const char *name, const AVOption **o_out, char *buf, int buf_len)
{
const AVOption *o = av_opt_find(obj, name, NULL, 0, 0);
void *dst;
uint8_t *bin;
int len, i;
if (!o || o->offset<=0)
return NULL;
if (o->type != FF_OPT_TYPE_STRING && (!buf ||... | {
"code": [],
"line_no": []
} | const char *FUNC_0(void *VAR_0, const char *VAR_1, const AVOption **VAR_2, char *VAR_3, int VAR_4)
{
const AVOption *VAR_5 = av_opt_find(VAR_0, VAR_1, NULL, 0, 0);
void *VAR_6;
uint8_t *bin;
int VAR_7, VAR_8;
if (!VAR_5 || VAR_5->offset<=0)
return NULL;
if (VAR_5->type != FF_OPT_... | [
"const char *FUNC_0(void *VAR_0, const char *VAR_1, const AVOption **VAR_2, char *VAR_3, int VAR_4)\n{",
"const AVOption *VAR_5 = av_opt_find(VAR_0, VAR_1, NULL, 0, 0);",
"void *VAR_6;",
"uint8_t *bin;",
"int VAR_7, VAR_8;",
"if (!VAR_5 || VAR_5->offset<=0)\nreturn NULL;",
"if (VAR_5->type != FF_OPT_TYP... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
17,
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[... |
19,439 | static void copy_context_before_encode(MpegEncContext *d, MpegEncContext *s, int type){
int i;
memcpy(d->last_mv, s->last_mv, 2*2*2*sizeof(int)); //FIXME is memcpy faster then a loop?
/* mpeg1 */
d->mb_incr= s->mb_incr;
for(i=0; i<3; i++)
d->last_dc[i]= s->last_dc[i];
/*... | false | FFmpeg | 7f2fe444a39bca733d390b6608801c5f002bfd31 | static void copy_context_before_encode(MpegEncContext *d, MpegEncContext *s, int type){
int i;
memcpy(d->last_mv, s->last_mv, 2*2*2*sizeof(int));
d->mb_incr= s->mb_incr;
for(i=0; i<3; i++)
d->last_dc[i]= s->last_dc[i];
d->mv_bits= s->mv_bits;
d->i_tex_bits= ... | {
"code": [],
"line_no": []
} | static void FUNC_0(MpegEncContext *VAR_0, MpegEncContext *VAR_1, int VAR_2){
int VAR_3;
memcpy(VAR_0->last_mv, VAR_1->last_mv, 2*2*2*sizeof(int));
VAR_0->mb_incr= VAR_1->mb_incr;
for(VAR_3=0; VAR_3<3; VAR_3++)
VAR_0->last_dc[VAR_3]= VAR_1->last_dc[VAR_3];
VAR_0->... | [
"static void FUNC_0(MpegEncContext *VAR_0, MpegEncContext *VAR_1, int VAR_2){",
"int VAR_3;",
"memcpy(VAR_0->last_mv, VAR_1->last_mv, 2*2*2*sizeof(int));",
"VAR_0->mb_incr= VAR_1->mb_incr;",
"for(VAR_3=0; VAR_3<3; VAR_3++)",
"VAR_0->last_dc[VAR_3]= VAR_1->last_dc[VAR_3];",
"VAR_0->mv_bits= VAR_1->mv_bit... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
7
],
[
13
],
[
15
],
[
17
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
]
] |
19,440 | static int get_bits(Jpeg2000DecoderContext *s, int n)
{
int res = 0;
if (s->buf_end - s->buf < ((n - s->bit_index) >> 8))
return AVERROR(EINVAL);
while (--n >= 0) {
res <<= 1;
if (s->bit_index == 0) {
s->bit_index = 7 + (*s->buf != 0xff);
s->buf++;
... | false | FFmpeg | 0b42631641d998e509cde6fa344edc6ab5cb4ac8 | static int get_bits(Jpeg2000DecoderContext *s, int n)
{
int res = 0;
if (s->buf_end - s->buf < ((n - s->bit_index) >> 8))
return AVERROR(EINVAL);
while (--n >= 0) {
res <<= 1;
if (s->bit_index == 0) {
s->bit_index = 7 + (*s->buf != 0xff);
s->buf++;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1)
{
int VAR_2 = 0;
if (VAR_0->buf_end - VAR_0->buf < ((VAR_1 - VAR_0->bit_index) >> 8))
return AVERROR(EINVAL);
while (--VAR_1 >= 0) {
VAR_2 <<= 1;
if (VAR_0->bit_index == 0) {
VAR_0->bit_index = 7 + (*VAR_... | [
"static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1)\n{",
"int VAR_2 = 0;",
"if (VAR_0->buf_end - VAR_0->buf < ((VAR_1 - VAR_0->bit_index) >> 8))\nreturn AVERROR(EINVAL);",
"while (--VAR_1 >= 0) {",
"VAR_2 <<= 1;",
"if (VAR_0->bit_index == 0) {",
"VAR_0->bit_index = 7 + (*VAR_0->buf != 0xff);",
... | [
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
]
] |
19,442 | static int rgbToRgbWrapper(SwsContext *c, const uint8_t *src[], int srcStride[],
int srcSliceY, int srcSliceH, uint8_t *dst[],
int dstStride[])
{
const enum PixelFormat srcFormat = c->srcFormat;
const enum PixelFormat dstFormat = c->dstFormat;
cons... | true | FFmpeg | e7843db3df0224cafcc1af9da103a3a7286ae2ba | static int rgbToRgbWrapper(SwsContext *c, const uint8_t *src[], int srcStride[],
int srcSliceY, int srcSliceH, uint8_t *dst[],
int dstStride[])
{
const enum PixelFormat srcFormat = c->srcFormat;
const enum PixelFormat dstFormat = c->dstFormat;
cons... | {
"code": [
"static int rgbToRgbWrapper(SwsContext *c, const uint8_t *src[], int srcStride[],",
" int srcSliceY, int srcSliceH, uint8_t *dst[],",
" int dstStride[])",
" const int srcBpp = (c->srcFormatBpp + 7) >> 3;",
" const int dstBpp = (... | static int FUNC_0(SwsContext *VAR_0, const uint8_t *VAR_14[], int VAR_2[],
int VAR_3, int VAR_4, uint8_t *VAR_14[],
int VAR_6[])
{
const enum PixelFormat VAR_7 = VAR_0->VAR_7;
const enum PixelFormat VAR_8 = VAR_0->VAR_8;
const int VAR_9 = (VAR_0->s... | [
"static int FUNC_0(SwsContext *VAR_0, const uint8_t *VAR_14[], int VAR_2[],\nint VAR_3, int VAR_4, uint8_t *VAR_14[],\nint VAR_6[])\n{",
"const enum PixelFormat VAR_7 = VAR_0->VAR_7;",
"const enum PixelFormat VAR_8 = VAR_0->VAR_8;",
"const int VAR_9 = (VAR_0->srcFormatBpp + 7) >> 3;",
"const int VAR_10 = (V... | [
1,
0,
0,
1,
1,
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... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25,
29
],
[
31,
33,
35,
37
],
[
39,
41
],
[
43,
45
],
[
47,
49
],
[
51,
53
],
[
55
... |
19,443 | static void gen_dmtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
{
const char *rn = "invalid";
if (sel != 0)
check_insn(ctx, ISA_MIPS64);
if (ctx->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
switch (reg) {
case 0:
switch (sel) {
case 0:
... | true | qemu | cec56a733dd2c3fa81dbedbecf03922258747f7d | static void gen_dmtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
{
const char *rn = "invalid";
if (sel != 0)
check_insn(ctx, ISA_MIPS64);
if (ctx->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
switch (reg) {
case 0:
switch (sel) {
case 0:
... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, int VAR_2, int VAR_3)
{
const char *VAR_4 = "invalid";
if (VAR_3 != 0)
check_insn(VAR_0, ISA_MIPS64);
if (VAR_0->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
switch (VAR_2) {
case 0:
switch (VAR_3) {
... | [
"static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, int VAR_2, int VAR_3)\n{",
"const char *VAR_4 = \"invalid\";",
"if (VAR_3 != 0)\ncheck_insn(VAR_0, ISA_MIPS64);",
"if (VAR_0->tb->cflags & CF_USE_ICOUNT) {",
"gen_io_start();",
"}",
"switch (VAR_2) {",
"case 0:\nswitch (VAR_3) {",
"case 0:\ngen_he... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
36,
38
],
[
40
],
[
42
],
[
46
],
[
50
],
[
54
],
[
58
],
[
62... |
19,444 | uint64_t HELPER(neon_sub_saturate_s64)(uint64_t src1, uint64_t src2)
{
uint64_t res;
res = src1 - src2;
if (((res ^ src1) & SIGNBIT64) && ((src1 ^ src2) & SIGNBIT64)) {
env->QF = 1;
res = ((int64_t)src1 >> 63) ^ ~SIGNBIT64;
}
return res;
}
| true | qemu | 72902672dc2ed6281cdb205259c1d52ecf01f6b2 | uint64_t HELPER(neon_sub_saturate_s64)(uint64_t src1, uint64_t src2)
{
uint64_t res;
res = src1 - src2;
if (((res ^ src1) & SIGNBIT64) && ((src1 ^ src2) & SIGNBIT64)) {
env->QF = 1;
res = ((int64_t)src1 >> 63) ^ ~SIGNBIT64;
}
return res;
}
| {
"code": [
" uint64_t res;",
" env->QF = 1;",
" res = ((int64_t)src1 >> 63) ^ ~SIGNBIT64;",
" return res;",
" uint64_t res;",
" env->QF = 1;",
" return res;",
"uint64_t HELPER(neon_sub_saturate_s64)(uint64_t src1, uint64_t src2)",
" uint64_t res... | uint64_t FUNC_0(neon_sub_saturate_s64)(uint64_t src1, uint64_t src2)
{
uint64_t res;
res = src1 - src2;
if (((res ^ src1) & SIGNBIT64) && ((src1 ^ src2) & SIGNBIT64)) {
env->QF = 1;
res = ((int64_t)src1 >> 63) ^ ~SIGNBIT64;
}
return res;
}
| [
"uint64_t FUNC_0(neon_sub_saturate_s64)(uint64_t src1, uint64_t src2)\n{",
"uint64_t res;",
"res = src1 - src2;",
"if (((res ^ src1) & SIGNBIT64) && ((src1 ^ src2) & SIGNBIT64)) {",
"env->QF = 1;",
"res = ((int64_t)src1 >> 63) ^ ~SIGNBIT64;",
"}",
"return res;",
"}"
] | [
1,
1,
1,
1,
1,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
19,445 | static int coroutine_fn copy_sectors(BlockDriverState *bs,
uint64_t start_sect,
uint64_t cluster_offset,
int n_start, int n_end)
{
BDRVQcowState *s = bs->opaque;
QEMUIOVector qiov;
struct iovec iov... | true | qemu | dba2855572c746836ad90ce9154403b5929d996b | static int coroutine_fn copy_sectors(BlockDriverState *bs,
uint64_t start_sect,
uint64_t cluster_offset,
int n_start, int n_end)
{
BDRVQcowState *s = bs->opaque;
QEMUIOVector qiov;
struct iovec iov... | {
"code": [],
"line_no": []
} | static int VAR_0 copy_sectors(BlockDriverState *bs,
uint64_t start_sect,
uint64_t cluster_offset,
int n_start, int n_end)
{
BDRVQcowState *s = bs->opaque;
QEMUIOVector qiov;
struct iovec iov;
i... | [
"static int VAR_0 copy_sectors(BlockDriverState *bs,\nuint64_t start_sect,\nuint64_t cluster_offset,\nint n_start, int n_end)\n{",
"BDRVQcowState *s = bs->opaque;",
"QEMUIOVector qiov;",
"struct iovec iov;",
"int n, ret;",
"if (start_sect + n_end > bs->total_sectors) {",
"n_end = bs->total_sectors - sta... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3,
4,
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
23
],
[
28
],
[
29
],
[
30
],
[
31
],
[
... |
19,446 | static void FUNCC(pred16x16_vertical_add)(uint8_t *pix, const int *block_offset,
const int16_t *block,
ptrdiff_t stride)
{
int i;
for(i=0; i<16; i++)
FUNCC(pred4x4_vertical_add)(pix + block_offset[i], block + i*16*... | false | FFmpeg | 1acd7d594c15aa491729c837ad3519d3469e620a | static void FUNCC(pred16x16_vertical_add)(uint8_t *pix, const int *block_offset,
const int16_t *block,
ptrdiff_t stride)
{
int i;
for(i=0; i<16; i++)
FUNCC(pred4x4_vertical_add)(pix + block_offset[i], block + i*16*... | {
"code": [],
"line_no": []
} | static void FUNC_0(pred16x16_vertical_add)(uint8_t *pix, const int *block_offset,
const int16_t *block,
ptrdiff_t stride)
{
int VAR_0;
for(VAR_0=0; VAR_0<16; VAR_0++)
FUNC_0(pred4x4_vertical_add)(pix + block_offset... | [
"static void FUNC_0(pred16x16_vertical_add)(uint8_t *pix, const int *block_offset,\nconst int16_t *block,\nptrdiff_t stride)\n{",
"int VAR_0;",
"for(VAR_0=0; VAR_0<16; VAR_0++)",
"FUNC_0(pred4x4_vertical_add)(pix + block_offset[VAR_0], block + VAR_0*16*sizeof(pixel), stride);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
19,447 | static int ac3_parse_audio_block(AC3DecodeContext * ctx, int index)
{
ac3_audio_block *ab = &ctx->audio_block;
int nfchans = ctx->bsi.nfchans;
int acmod = ctx->bsi.acmod;
int i, bnd, rbnd, grp, seg;
GetBitContext *gb = &ctx->gb;
uint32_t *flags = &ab->flags;
int bit_alloc_flags = 0;
... | false | FFmpeg | 0058584580b87feb47898e60e4b80c7f425882ad | static int ac3_parse_audio_block(AC3DecodeContext * ctx, int index)
{
ac3_audio_block *ab = &ctx->audio_block;
int nfchans = ctx->bsi.nfchans;
int acmod = ctx->bsi.acmod;
int i, bnd, rbnd, grp, seg;
GetBitContext *gb = &ctx->gb;
uint32_t *flags = &ab->flags;
int bit_alloc_flags = 0;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AC3DecodeContext * VAR_0, int VAR_1)
{
ac3_audio_block *ab = &VAR_0->audio_block;
int VAR_2 = VAR_0->bsi.VAR_2;
int VAR_3 = VAR_0->bsi.VAR_3;
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
GetBitContext *gb = &VAR_0->gb;
uint32_t *flags = &ab->flags;
int VAR_9 = 0;
flo... | [
"static int FUNC_0(AC3DecodeContext * VAR_0, int VAR_1)\n{",
"ac3_audio_block *ab = &VAR_0->audio_block;",
"int VAR_2 = VAR_0->bsi.VAR_2;",
"int VAR_3 = VAR_0->bsi.VAR_3;",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"GetBitContext *gb = &VAR_0->gb;",
"uint32_t *flags = &ab->flags;",
"int VAR_9 = 0;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
... |
19,448 | static void h264_free_extradata(PayloadContext *data)
{
#ifdef DEBUG
int ii;
for (ii = 0; ii < 32; ii++) {
if (data->packet_types_received[ii])
av_log(NULL, AV_LOG_DEBUG, "Received %d packets of type %d\n",
data->packet_types_received[ii], ii);
}
#endif
... | false | FFmpeg | 202a6697ba54293235ce2d7bd5724f4f461e417f | static void h264_free_extradata(PayloadContext *data)
{
#ifdef DEBUG
int ii;
for (ii = 0; ii < 32; ii++) {
if (data->packet_types_received[ii])
av_log(NULL, AV_LOG_DEBUG, "Received %d packets of type %d\n",
data->packet_types_received[ii], ii);
}
#endif
... | {
"code": [],
"line_no": []
} | static void FUNC_0(PayloadContext *VAR_0)
{
#ifdef DEBUG
int ii;
for (ii = 0; ii < 32; ii++) {
if (VAR_0->packet_types_received[ii])
av_log(NULL, AV_LOG_DEBUG, "Received %d packets of type %d\n",
VAR_0->packet_types_received[ii], ii);
}
#endif
assert(... | [
"static void FUNC_0(PayloadContext *VAR_0)\n{",
"#ifdef DEBUG\nint ii;",
"for (ii = 0; ii < 32; ii++) {",
"if (VAR_0->packet_types_received[ii])\nav_log(NULL, AV_LOG_DEBUG, \"Received %d packets of type %d\\n\",\nVAR_0->packet_types_received[ii], ii);",
"}",
"#endif\nassert(VAR_0);",
"assert(VAR_0->cook... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
13,
15,
17
],
[
19
],
[
21,
25
],
[
27
],
[
33
],
[
39
],
[
41
]
] |
19,449 | static int net_socket_connect_init(VLANState *vlan,
const char *model,
const char *name,
const char *host_str)
{
NetSocketState *s;
int fd, connected, ret, err;
struct sockaddr_in saddr;
if... | true | qemu | 40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4 | static int net_socket_connect_init(VLANState *vlan,
const char *model,
const char *name,
const char *host_str)
{
NetSocketState *s;
int fd, connected, ret, err;
struct sockaddr_in saddr;
if... | {
"code": [
" fd = socket(PF_INET, SOCK_STREAM, 0);",
" fd = socket(PF_INET, SOCK_STREAM, 0);"
],
"line_no": [
25,
25
]
} | static int FUNC_0(VLANState *VAR_0,
const char *VAR_1,
const char *VAR_2,
const char *VAR_3)
{
NetSocketState *s;
int VAR_4, VAR_5, VAR_6, VAR_7;
struct sockaddr_in VAR_8;
if (parse_host_po... | [
"static int FUNC_0(VLANState *VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3)\n{",
"NetSocketState *s;",
"int VAR_4, VAR_5, VAR_6, VAR_7;",
"struct sockaddr_in VAR_8;",
"if (parse_host_port(&VAR_8, VAR_3) < 0)\nreturn -1;",
"VAR_4 = socket(PF_INET, SOCK_STREAM, 0);",
"if (VAR_4 < 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
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
19,450 | static int kvm_update_routing_entry(KVMState *s,
struct kvm_irq_routing_entry *new_entry)
{
struct kvm_irq_routing_entry *entry;
int n;
for (n = 0; n < s->irq_routes->nr; n++) {
entry = &s->irq_routes->entries[n];
if (entry->gsi != new_entry->gsi)... | true | qemu | 0fbc20740342713f282b118b4a446c4c43df3f4a | static int kvm_update_routing_entry(KVMState *s,
struct kvm_irq_routing_entry *new_entry)
{
struct kvm_irq_routing_entry *entry;
int n;
for (n = 0; n < s->irq_routes->nr; n++) {
entry = &s->irq_routes->entries[n];
if (entry->gsi != new_entry->gsi)... | {
"code": [
" entry->type = new_entry->type;",
" entry->flags = new_entry->flags;",
" entry->u = new_entry->u;"
],
"line_no": [
25,
27,
29
]
} | static int FUNC_0(KVMState *VAR_0,
struct kvm_irq_routing_entry *VAR_1)
{
struct kvm_irq_routing_entry *VAR_2;
int VAR_3;
for (VAR_3 = 0; VAR_3 < VAR_0->irq_routes->nr; VAR_3++) {
VAR_2 = &VAR_0->irq_routes->entries[VAR_3];
if (VAR_2->gsi != VAR_1... | [
"static int FUNC_0(KVMState *VAR_0,\nstruct kvm_irq_routing_entry *VAR_1)\n{",
"struct kvm_irq_routing_entry *VAR_2;",
"int VAR_3;",
"for (VAR_3 = 0; VAR_3 < VAR_0->irq_routes->nr; VAR_3++) {",
"VAR_2 = &VAR_0->irq_routes->entries[VAR_3];",
"if (VAR_2->gsi != VAR_1->gsi) {",
"continue;",
"}",
"VAR_2... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45
]
] |
19,451 | int nbd_client_session_co_discard(NbdClientSession *client, int64_t sector_num,
int nb_sectors)
{
struct nbd_request request;
struct nbd_reply reply;
ssize_t ret;
if (!(client->nbdflags & NBD_FLAG_SEND_TRIM)) {
return 0;
}
request.type = NBD_CMD_TRIM;
request.from = s... | true | qemu | b1b27b64262fdace45e5ab134c4438338076cb98 | int nbd_client_session_co_discard(NbdClientSession *client, int64_t sector_num,
int nb_sectors)
{
struct nbd_request request;
struct nbd_reply reply;
ssize_t ret;
if (!(client->nbdflags & NBD_FLAG_SEND_TRIM)) {
return 0;
}
request.type = NBD_CMD_TRIM;
request.from = s... | {
"code": [
" struct nbd_request request;",
" struct nbd_request request;",
" struct nbd_request request;",
" struct nbd_request request;",
" request.type = NBD_CMD_TRIM;",
" struct nbd_request request;"
],
"line_no": [
7,
7,
7,
7,
21,
7
]
} | int FUNC_0(NbdClientSession *VAR_0, int64_t VAR_1,
int VAR_2)
{
struct nbd_request VAR_3;
struct nbd_reply VAR_4;
ssize_t ret;
if (!(VAR_0->nbdflags & NBD_FLAG_SEND_TRIM)) {
return 0;
}
VAR_3.type = NBD_CMD_TRIM;
VAR_3.from = VAR_1 * 512;
VAR_3.len = VAR_2 * 512;... | [
"int FUNC_0(NbdClientSession *VAR_0, int64_t VAR_1,\nint VAR_2)\n{",
"struct nbd_request VAR_3;",
"struct nbd_reply VAR_4;",
"ssize_t ret;",
"if (!(VAR_0->nbdflags & NBD_FLAG_SEND_TRIM)) {",
"return 0;",
"}",
"VAR_3.type = NBD_CMD_TRIM;",
"VAR_3.from = VAR_1 * 512;",
"VAR_3.len = VAR_2 * 512;",
... | [
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
19,452 | ssize_t vnc_client_io_error(VncState *vs, ssize_t ret, Error **errp)
{
if (ret <= 0) {
if (ret == 0) {
VNC_DEBUG("Closing down client sock: EOF\n");
} else if (ret != QIO_CHANNEL_ERR_BLOCK) {
VNC_DEBUG("Closing down client sock: ret %zd (%s)\n",
r... | true | qemu | 537848ee62195fc06c328b1cd64f4218f404a7f1 | ssize_t vnc_client_io_error(VncState *vs, ssize_t ret, Error **errp)
{
if (ret <= 0) {
if (ret == 0) {
VNC_DEBUG("Closing down client sock: EOF\n");
} else if (ret != QIO_CHANNEL_ERR_BLOCK) {
VNC_DEBUG("Closing down client sock: ret %zd (%s)\n",
r... | {
"code": [
" vnc_disconnect_start(vs);"
],
"line_no": [
21
]
} | ssize_t FUNC_0(VncState *vs, ssize_t ret, Error **errp)
{
if (ret <= 0) {
if (ret == 0) {
VNC_DEBUG("Closing down client sock: EOF\n");
} else if (ret != QIO_CHANNEL_ERR_BLOCK) {
VNC_DEBUG("Closing down client sock: ret %zd (%s)\n",
ret, errp ? er... | [
"ssize_t FUNC_0(VncState *vs, ssize_t ret, Error **errp)\n{",
"if (ret <= 0) {",
"if (ret == 0) {",
"VNC_DEBUG(\"Closing down client sock: EOF\\n\");",
"} else if (ret != QIO_CHANNEL_ERR_BLOCK) {",
"VNC_DEBUG(\"Closing down client sock: ret %zd (%s)\\n\",\nret, errp ? error_get_pretty(*errp) : \"Unknown\"... | [
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
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
19,453 | static void pl031_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
k->init = pl031_init;
dc->no_user = 1;
dc->vmsd = &vmstate_pl031;
}
| true | qemu | efec3dd631d94160288392721a5f9c39e50fb2bc | static void pl031_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
k->init = pl031_init;
dc->no_user = 1;
dc->vmsd = &vmstate_pl031;
}
| {
"code": [
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;",
" dc->no_user = 1;"... | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(VAR_0);
k->init = pl031_init;
dc->no_user = 1;
dc->vmsd = &vmstate_pl031;
}
| [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(VAR_0);",
"k->init = pl031_init;",
"dc->no_user = 1;",
"dc->vmsd = &vmstate_pl031;",
"}"
] | [
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
19,454 | static inline void fimd_swap_data(unsigned int swap_ctl, uint64_t *data)
{
int i;
uint64_t res;
uint64_t x = *data;
if (swap_ctl & FIMD_WINCON_SWAP_BITS) {
res = 0;
for (i = 0; i < 64; i++) {
if (x & (1ULL << (64 - i))) {
res |= (1ULL << i);
... | true | qemu | 644ead5be1a851abff16886240c5c6fc1c5137c0 | static inline void fimd_swap_data(unsigned int swap_ctl, uint64_t *data)
{
int i;
uint64_t res;
uint64_t x = *data;
if (swap_ctl & FIMD_WINCON_SWAP_BITS) {
res = 0;
for (i = 0; i < 64; i++) {
if (x & (1ULL << (64 - i))) {
res |= (1ULL << i);
... | {
"code": [
" if (x & (1ULL << (64 - i))) {"
],
"line_no": [
19
]
} | static inline void FUNC_0(unsigned int VAR_0, uint64_t *VAR_1)
{
int VAR_2;
uint64_t res;
uint64_t x = *VAR_1;
if (VAR_0 & FIMD_WINCON_SWAP_BITS) {
res = 0;
for (VAR_2 = 0; VAR_2 < 64; VAR_2++) {
if (x & (1ULL << (64 - VAR_2))) {
res |= (1ULL << VAR... | [
"static inline void FUNC_0(unsigned int VAR_0, uint64_t *VAR_1)\n{",
"int VAR_2;",
"uint64_t res;",
"uint64_t x = *VAR_1;",
"if (VAR_0 & FIMD_WINCON_SWAP_BITS) {",
"res = 0;",
"for (VAR_2 = 0; VAR_2 < 64; VAR_2++) {",
"if (x & (1ULL << (64 - VAR_2))) {",
"res |= (1ULL << VAR_2);",
"}",
"}",
"x... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43,
45,
47,
49
],
[... |
19,455 | static int sdl_write_header(AVFormatContext *s)
{
SDLContext *sdl = s->priv_data;
AVStream *st = s->streams[0];
AVCodecContext *encctx = st->codec;
AVRational sar, dar; /* sample and display aspect ratios */
int i, ret;
int flags = SDL_SWSURFACE | sdl->window_fullscreen ? SDL_FULLSCREEN :... | true | FFmpeg | 7de3b1394b71118279e8f997be490633bc3f5d46 | static int sdl_write_header(AVFormatContext *s)
{
SDLContext *sdl = s->priv_data;
AVStream *st = s->streams[0];
AVCodecContext *encctx = st->codec;
AVRational sar, dar;
int i, ret;
int flags = SDL_SWSURFACE | sdl->window_fullscreen ? SDL_FULLSCREEN : 0;
if (!sdl->window_title)
... | {
"code": [
" int flags = SDL_SWSURFACE | sdl->window_fullscreen ? SDL_FULLSCREEN : 0;",
" if (SDL_Init(SDL_INIT_VIDEO) != 0) {",
" av_log(s, AV_LOG_ERROR, \"Unable to initialize SDL: %s\\n\", SDL_GetError());",
" ret = AVERROR(EINVAL);",
" goto fail;",
" SDL_WM_S... | static int FUNC_0(AVFormatContext *VAR_0)
{
SDLContext *sdl = VAR_0->priv_data;
AVStream *st = VAR_0->streams[0];
AVCodecContext *encctx = st->codec;
AVRational sar, dar;
int VAR_1, VAR_2;
int VAR_3 = SDL_SWSURFACE | sdl->window_fullscreen ? SDL_FULLSCREEN : 0;
if (!sdl->window_ti... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"SDLContext *sdl = VAR_0->priv_data;",
"AVStream *st = VAR_0->streams[0];",
"AVCodecContext *encctx = st->codec;",
"AVRational sar, dar;",
"int VAR_1, VAR_2;",
"int VAR_3 = SDL_SWSURFACE | sdl->window_fullscreen ? SDL_FULLSCREEN : 0;",
"if (!sdl->window_... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
1,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
23,
25
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[... |
19,456 | static void aux_bus_class_init(ObjectClass *klass, void *data)
{
BusClass *k = BUS_CLASS(klass);
/* AUXSlave has an MMIO so we need to change the way we print information
* in monitor.
*/
k->print_dev = aux_slave_dev_print;
}
| true | qemu | e0dadc1e9ef1f35208e5d2af9c7740c18a0b769f | static void aux_bus_class_init(ObjectClass *klass, void *data)
{
BusClass *k = BUS_CLASS(klass);
k->print_dev = aux_slave_dev_print;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
BusClass *k = BUS_CLASS(VAR_0);
k->print_dev = aux_slave_dev_print;
}
| [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"BusClass *k = BUS_CLASS(VAR_0);",
"k->print_dev = aux_slave_dev_print;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
15
],
[
17
]
] |
19,457 | static int ape_decode_frame(AVCodecContext * avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
APEContext *s = avctx->priv_data;
int16_t *samples = data;
int nblocks;
... | false | FFmpeg | 3c25209bd9ee83eeb0373dcf790eb116e986f8e1 | static int ape_decode_frame(AVCodecContext * avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
APEContext *s = avctx->priv_data;
int16_t *samples = data;
int nblocks;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext * VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
APEContext *s = VAR_0->priv_data;
int16_t *samples = VAR_1;
int VAR_6;
int VAR_7, V... | [
"static int FUNC_0(AVCodecContext * VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"APEContext *s = VAR_0->priv_data;",
"int16_t *samples = VAR_1;",
"int VAR_6;",
"int VAR_7, VAR_8;",
"int VAR_9;",
"int VAR_10;",
"if (VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
... |
19,458 | static const UID *mxf_get_mpeg2_codec_ul(AVCodecContext *avctx)
{
int long_gop = avctx->gop_size > 1 || avctx->has_b_frames;
if (avctx->profile == 4) { // Main
if (avctx->level == 8) // Main
return &mxf_mpeg2_codec_uls[0+long_gop];
else if (avctx->level == 4) // High
... | false | FFmpeg | b8b21dee0f0b4bcc1888067c497d6e838859d2cd | static const UID *mxf_get_mpeg2_codec_ul(AVCodecContext *avctx)
{
int long_gop = avctx->gop_size > 1 || avctx->has_b_frames;
if (avctx->profile == 4) {
if (avctx->level == 8)
return &mxf_mpeg2_codec_uls[0+long_gop];
else if (avctx->level == 4)
return &mxf_mpeg... | {
"code": [],
"line_no": []
} | static const UID *FUNC_0(AVCodecContext *avctx)
{
int VAR_0 = avctx->gop_size > 1 || avctx->has_b_frames;
if (avctx->profile == 4) {
if (avctx->level == 8)
return &mxf_mpeg2_codec_uls[0+VAR_0];
else if (avctx->level == 4)
return &mxf_mpeg2_codec_uls[4+VAR_0];
... | [
"static const UID *FUNC_0(AVCodecContext *avctx)\n{",
"int VAR_0 = avctx->gop_size > 1 || avctx->has_b_frames;",
"if (avctx->profile == 4) {",
"if (avctx->level == 8)\nreturn &mxf_mpeg2_codec_uls[0+VAR_0];",
"else if (avctx->level == 4)\nreturn &mxf_mpeg2_codec_uls[4+VAR_0];",
"else if (avctx->level == 6)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15,
17
],
[
19,
21
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
]
] |
19,459 | static void free_packet_list(AVPacketList *pktl)
{
AVPacketList *cur;
while (pktl) {
cur = pktl;
pktl = cur->next;
av_free_packet(&cur->pkt);
av_free(cur);
}
}
| false | FFmpeg | 96dce6f7ceaa8d3c7eddd241213bec82e84e7f7a | static void free_packet_list(AVPacketList *pktl)
{
AVPacketList *cur;
while (pktl) {
cur = pktl;
pktl = cur->next;
av_free_packet(&cur->pkt);
av_free(cur);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(AVPacketList *VAR_0)
{
AVPacketList *cur;
while (VAR_0) {
cur = VAR_0;
VAR_0 = cur->next;
av_free_packet(&cur->pkt);
av_free(cur);
}
}
| [
"static void FUNC_0(AVPacketList *VAR_0)\n{",
"AVPacketList *cur;",
"while (VAR_0) {",
"cur = VAR_0;",
"VAR_0 = cur->next;",
"av_free_packet(&cur->pkt);",
"av_free(cur);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
19,460 | static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
int buf_size, void *data)
{
const AVFrame *pic = data;
int aligned_width = ((avctx->width + 47) / 48) * 48;
int stride = aligned_width * 8 / 3;
int h, w;
const uint16_t *y = (const uint16_t*)pic->data[0... | true | FFmpeg | c9dc66375b18590462f829a652d210c2e094693c | static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
int buf_size, void *data)
{
const AVFrame *pic = data;
int aligned_width = ((avctx->width + 47) / 48) * 48;
int stride = aligned_width * 8 / 3;
int h, w;
const uint16_t *y = (const uint16_t*)pic->data[0... | {
"code": [
" if (w < avctx->width - 3) {",
" val |= (CLIP(*u++) << 10) | (CLIP(*y++) << 20);",
" bytestream_put_le32(&p, val);",
" val = CLIP(*v++) | (CLIP(*y++) << 10);",
" bytestream_put_le32(&p, val);"
],
"line_no": [
87,
89,
9... | static int FUNC_0(AVCodecContext *VAR_0, unsigned char *VAR_1,
int VAR_2, void *VAR_3)
{
const AVFrame *VAR_4 = VAR_3;
int VAR_5 = ((VAR_0->width + 47) / 48) * 48;
int VAR_6 = VAR_5 * 8 / 3;
int VAR_7, VAR_8;
const uint16_t *VAR_9 = (const uint16_t*)VAR_4->VAR_3[0];
... | [
"static int FUNC_0(AVCodecContext *VAR_0, unsigned char *VAR_1,\nint VAR_2, void *VAR_3)\n{",
"const AVFrame *VAR_4 = VAR_3;",
"int VAR_5 = ((VAR_0->width + 47) / 48) * 48;",
"int VAR_6 = VAR_5 * 8 / 3;",
"int VAR_7, VAR_8;",
"const uint16_t *VAR_9 = (const uint16_t*)VAR_4->VAR_3[0];",
"const uint16_t *... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37,
41,
43
],
[
45
],
[
47,
49
],
[
51
... |
19,461 | static void pc_init_pci_no_kvmclock(MachineState *machine)
{
has_pci_info = false;
has_acpi_build = false;
smbios_defaults = false;
x86_cpu_compat_disable_kvm_features(FEAT_KVM, KVM_FEATURE_PV_EOI);
enable_compat_apic_id_mode();
pc_init1(machine, 1, 0);
} | true | qemu | 5f8632d3c3d7bc5ef24166ba7cf90fcfb2adbf7d | static void pc_init_pci_no_kvmclock(MachineState *machine)
{
has_pci_info = false;
has_acpi_build = false;
smbios_defaults = false;
x86_cpu_compat_disable_kvm_features(FEAT_KVM, KVM_FEATURE_PV_EOI);
enable_compat_apic_id_mode();
pc_init1(machine, 1, 0);
} | {
"code": [],
"line_no": []
} | static void FUNC_0(MachineState *VAR_0)
{
has_pci_info = false;
has_acpi_build = false;
smbios_defaults = false;
x86_cpu_compat_disable_kvm_features(FEAT_KVM, KVM_FEATURE_PV_EOI);
enable_compat_apic_id_mode();
pc_init1(VAR_0, 1, 0);
} | [
"static void FUNC_0(MachineState *VAR_0)\n{",
"has_pci_info = false;",
"has_acpi_build = false;",
"smbios_defaults = false;",
"x86_cpu_compat_disable_kvm_features(FEAT_KVM, KVM_FEATURE_PV_EOI);",
"enable_compat_apic_id_mode();",
"pc_init1(VAR_0, 1, 0);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
16
],
[
18
],
[
20
],
[
22
]
] |
19,463 | static void ide_sector_read_cb(void *opaque, int ret)
{
IDEState *s = opaque;
int n;
s->pio_aiocb = NULL;
s->status &= ~BUSY_STAT;
if (ret == -ECANCELED) {
return;
}
block_acct_done(blk_get_stats(s->blk), &s->acct);
if (ret != 0) {
if (ide_handle_rw_error(s... | true | qemu | ecca3b397d06a957b18913ff9afc63860001cfdf | static void ide_sector_read_cb(void *opaque, int ret)
{
IDEState *s = opaque;
int n;
s->pio_aiocb = NULL;
s->status &= ~BUSY_STAT;
if (ret == -ECANCELED) {
return;
}
block_acct_done(blk_get_stats(s->blk), &s->acct);
if (ret != 0) {
if (ide_handle_rw_error(s... | {
"code": [
" block_acct_done(blk_get_stats(s->blk), &s->acct);",
" block_acct_done(blk_get_stats(s->blk), &s->acct);"
],
"line_no": [
23,
23
]
} | static void FUNC_0(void *VAR_0, int VAR_1)
{
IDEState *s = VAR_0;
int VAR_2;
s->pio_aiocb = NULL;
s->status &= ~BUSY_STAT;
if (VAR_1 == -ECANCELED) {
return;
}
block_acct_done(blk_get_stats(s->blk), &s->acct);
if (VAR_1 != 0) {
if (ide_handle_rw_error(s, -V... | [
"static void FUNC_0(void *VAR_0, int VAR_1)\n{",
"IDEState *s = VAR_0;",
"int VAR_2;",
"s->pio_aiocb = NULL;",
"s->status &= ~BUSY_STAT;",
"if (VAR_1 == -ECANCELED) {",
"return;",
"}",
"block_acct_done(blk_get_stats(s->blk), &s->acct);",
"if (VAR_1 != 0) {",
"if (ide_handle_rw_error(s, -VAR_1, I... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
... |
19,464 | av_cold void INIT_FUNC(VP9DSPContext *dsp, int bitexact)
{
#if HAVE_YASM
int cpu_flags = av_get_cpu_flags();
#define init_lpf_8_func(idx1, idx2, dir, wd, bpp, opt) \
dsp->loop_filter_8[idx1][idx2] = ff_vp9_loop_filter_##dir##_##wd##_##bpp##_##opt
#define init_lpf_16_func(idx, dir, bpp, opt) \
dsp->... | true | FFmpeg | 235e76aeb877bd1b23c12e74588e86752e3dfbe7 | av_cold void INIT_FUNC(VP9DSPContext *dsp, int bitexact)
{
#if HAVE_YASM
int cpu_flags = av_get_cpu_flags();
#define init_lpf_8_func(idx1, idx2, dir, wd, bpp, opt) \
dsp->loop_filter_8[idx1][idx2] = ff_vp9_loop_filter_##dir##_##wd##_##bpp##_##opt
#define init_lpf_16_func(idx, dir, bpp, opt) \
dsp->... | {
"code": [],
"line_no": []
} | av_cold void FUNC_0(VP9DSPContext *dsp, int bitexact)
{
#if HAVE_YASM
int cpu_flags = av_get_cpu_flags();
#define init_lpf_8_func(idx1, idx2, dir, wd, bpp, opt) \
dsp->loop_filter_8[idx1][idx2] = ff_vp9_loop_filter_##dir##_##wd##_##bpp##_##opt
#define init_lpf_16_func(idx, dir, bpp, opt) \
dsp->loo... | [
"av_cold void FUNC_0(VP9DSPContext *dsp, int bitexact)\n{",
"#if HAVE_YASM\nint cpu_flags = av_get_cpu_flags();",
"#define init_lpf_8_func(idx1, idx2, dir, wd, bpp, opt) \\\ndsp->loop_filter_8[idx1][idx2] = ff_vp9_loop_filter_##dir##_##wd##_##bpp##_##opt\n#define init_lpf_16_func(idx, dir, bpp, opt) \\\ndsp->lo... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11,
13,
15,
17,
19,
21,
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53... |
19,465 | static void get_tag(AVFormatContext *s, AVIOContext *pb, const char *key, int type, int length)
{
int buf_size = FFMAX(2*length, LEN_PRETTY_GUID) + 1;
char *buf = av_malloc(buf_size);
if (!buf)
return;
if (type == 0 && length == 4) {
snprintf(buf, buf_size, "%"PRIi32, avio_rl32(... | true | FFmpeg | 8acab7ae5bbcb589c556425453ac3d851d35021f | static void get_tag(AVFormatContext *s, AVIOContext *pb, const char *key, int type, int length)
{
int buf_size = FFMAX(2*length, LEN_PRETTY_GUID) + 1;
char *buf = av_malloc(buf_size);
if (!buf)
return;
if (type == 0 && length == 4) {
snprintf(buf, buf_size, "%"PRIi32, avio_rl32(... | {
"code": [
" else if (!strcmp(key, \"WM/WMRVExpirationDate\"))",
" oledate_to_iso8601(buf, buf_size, num);",
" else if (!strcmp(key, \"WM/WMRVBitrate\"))"
],
"line_no": [
51,
53,
55
]
} | static void FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1, const char *VAR_2, int VAR_3, int VAR_4)
{
int VAR_5 = FFMAX(2*VAR_4, LEN_PRETTY_GUID) + 1;
char *VAR_6 = av_malloc(VAR_5);
if (!VAR_6)
return;
if (VAR_3 == 0 && VAR_4 == 4) {
snprintf(VAR_6, VAR_5, "%"PRIi32, avio_r... | [
"static void FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1, const char *VAR_2, int VAR_3, int VAR_4)\n{",
"int VAR_5 = FFMAX(2*VAR_4, LEN_PRETTY_GUID) + 1;",
"char *VAR_6 = av_malloc(VAR_5);",
"if (!VAR_6)\nreturn;",
"if (VAR_3 == 0 && VAR_4 == 4) {",
"snprintf(VAR_6, VAR_5, \"%\"PRIi32, avio_rl32(VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41,
43
],
[
45,
47,... |
19,466 | void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi,
ISADevice **rtc_state,
bool create_fdctrl,
bool no_vmport,
uint32_t hpet_irqs)
{
int i;
DriveInfo *fd[MAX_FD];
DeviceState *hpet = NULL;
... | true | qemu | ac64c5fdf8c1e470cfca94d7ad5686770e6e470a | void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi,
ISADevice **rtc_state,
bool create_fdctrl,
bool no_vmport,
uint32_t hpet_irqs)
{
int i;
DriveInfo *fd[MAX_FD];
DeviceState *hpet = NULL;
... | {
"code": [],
"line_no": []
} | void FUNC_0(ISABus *VAR_0, qemu_irq *VAR_1,
ISADevice **VAR_2,
bool VAR_3,
bool VAR_4,
uint32_t VAR_5)
{
int VAR_6;
DriveInfo *fd[MAX_FD];
DeviceState *hpet = NULL;
int VAR_7 = 0;
qemu_i... | [
"void FUNC_0(ISABus *VAR_0, qemu_irq *VAR_1,\nISADevice **VAR_2,\nbool VAR_3,\nbool VAR_4,\nuint32_t VAR_5)\n{",
"int VAR_6;",
"DriveInfo *fd[MAX_FD];",
"DeviceState *hpet = NULL;",
"int VAR_7 = 0;",
"qemu_irq pit_alt_irq = NULL;",
"qemu_irq rtc_irq = NULL;",
"qemu_irq *a20_line;",
"ISADevice *i8042... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
37
],
[
41
],
[
43
],
[
59
],
[
63
],
[
65
... |
19,467 | void ff_vorbis_floor1_render_list(vorbis_floor1_entry * list, int values,
uint16_t *y_list, int *flag,
int multiplier, float *out, int samples)
{
int lx, ly, i;
lx = 0;
ly = y_list[0] * multiplier;
for (i = 1; i < values; i++) {
... | true | FFmpeg | 57cd6d709565e84e84385f8f2a9641ca3fa718be | void ff_vorbis_floor1_render_list(vorbis_floor1_entry * list, int values,
uint16_t *y_list, int *flag,
int multiplier, float *out, int samples)
{
int lx, ly, i;
lx = 0;
ly = y_list[0] * multiplier;
for (i = 1; i < values; i++) {
... | {
"code": [
" int lx, ly, i;"
],
"line_no": [
9
]
} | void FUNC_0(vorbis_floor1_entry * VAR_0, int VAR_1,
uint16_t *VAR_2, int *VAR_3,
int VAR_4, float *VAR_5, int VAR_6)
{
int VAR_7, VAR_8, VAR_9;
VAR_7 = 0;
VAR_8 = VAR_2[0] * VAR_4;
for (VAR_9 = 1; VAR_9 < VAR_1; VAR_9++) {
... | [
"void FUNC_0(vorbis_floor1_entry * VAR_0, int VAR_1,\nuint16_t *VAR_2, int *VAR_3,\nint VAR_4, float *VAR_5, int VAR_6)\n{",
"int VAR_7, VAR_8, VAR_9;",
"VAR_7 = 0;",
"VAR_8 = VAR_2[0] * VAR_4;",
"for (VAR_9 = 1; VAR_9 < VAR_1; VAR_9++) {",
"int VAR_10 = VAR_0[VAR_9].sort;",
"if (VAR_3[VAR_10]) {",
"i... | [
0,
1,
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
]
] |
19,468 | static void channel_weighting(float *su1, float *su2, int *p3)
{
int band, nsample;
/* w[x][y] y=0 is left y=1 is right */
float w[2][2];
if (p3[1] != 7 || p3[3] != 7) {
get_channel_weights(p3[1], p3[0], w[0]);
get_channel_weights(p3[3], p3[2], w[1]);
for (band = 1; b... | false | FFmpeg | aefdb735c3df9480c1ca9bcf4a3835bd66271bd1 | static void channel_weighting(float *su1, float *su2, int *p3)
{
int band, nsample;
float w[2][2];
if (p3[1] != 7 || p3[3] != 7) {
get_channel_weights(p3[1], p3[0], w[0]);
get_channel_weights(p3[3], p3[2], w[1]);
for (band = 1; band < 4; band++) {
for (n... | {
"code": [],
"line_no": []
} | static void FUNC_0(float *VAR_0, float *VAR_1, int *VAR_2)
{
int VAR_3, VAR_4;
float VAR_5[2][2];
if (VAR_2[1] != 7 || VAR_2[3] != 7) {
get_channel_weights(VAR_2[1], VAR_2[0], VAR_5[0]);
get_channel_weights(VAR_2[3], VAR_2[2], VAR_5[1]);
for (VAR_3 = 1; VAR_3 < 4; VA... | [
"static void FUNC_0(float *VAR_0, float *VAR_1, int *VAR_2)\n{",
"int VAR_3, VAR_4;",
"float VAR_5[2][2];",
"if (VAR_2[1] != 7 || VAR_2[3] != 7) {",
"get_channel_weights(VAR_2[1], VAR_2[0], VAR_5[0]);",
"get_channel_weights(VAR_2[3], VAR_2[2], VAR_5[1]);",
"for (VAR_3 = 1; VAR_3 < 4; VAR_3++) {",
"for... | [
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
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
19,470 | bool bdrv_requests_pending(BlockDriverState *bs)
{
BdrvChild *child;
BlockBackendPublic *blkp = bs->blk ? blk_get_public(bs->blk) : NULL;
if (!QLIST_EMPTY(&bs->tracked_requests)) {
return true;
}
if (blkp && !qemu_co_queue_empty(&blkp->throttled_reqs[0])) {
return true;
... | false | qemu | cbe1beb7a1eaa34e0c24b4897395dac017e5d16f | bool bdrv_requests_pending(BlockDriverState *bs)
{
BdrvChild *child;
BlockBackendPublic *blkp = bs->blk ? blk_get_public(bs->blk) : NULL;
if (!QLIST_EMPTY(&bs->tracked_requests)) {
return true;
}
if (blkp && !qemu_co_queue_empty(&blkp->throttled_reqs[0])) {
return true;
... | {
"code": [],
"line_no": []
} | bool FUNC_0(BlockDriverState *bs)
{
BdrvChild *child;
BlockBackendPublic *blkp = bs->blk ? blk_get_public(bs->blk) : NULL;
if (!QLIST_EMPTY(&bs->tracked_requests)) {
return true;
}
if (blkp && !qemu_co_queue_empty(&blkp->throttled_reqs[0])) {
return true;
}
if (bl... | [
"bool FUNC_0(BlockDriverState *bs)\n{",
"BdrvChild *child;",
"BlockBackendPublic *blkp = bs->blk ? blk_get_public(bs->blk) : NULL;",
"if (!QLIST_EMPTY(&bs->tracked_requests)) {",
"return true;",
"}",
"if (blkp && !qemu_co_queue_empty(&blkp->throttled_reqs[0])) {",
"return true;",
"}",
"if (blkp &&... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
]
] |
19,471 | static void qvirtio_9p_pci_free(QVirtIO9P *v9p)
{
qvirtqueue_cleanup(v9p->dev->bus, v9p->vq, v9p->alloc);
pc_alloc_uninit(v9p->alloc);
qvirtio_pci_device_disable(container_of(v9p->dev, QVirtioPCIDevice, vdev));
g_free(v9p->dev);
qpci_free_pc(v9p->bus);
g_free(v9p);
}
| false | qemu | a980f7f2c2f4d7e9a1eba4f804cd66dbd458b6d4 | static void qvirtio_9p_pci_free(QVirtIO9P *v9p)
{
qvirtqueue_cleanup(v9p->dev->bus, v9p->vq, v9p->alloc);
pc_alloc_uninit(v9p->alloc);
qvirtio_pci_device_disable(container_of(v9p->dev, QVirtioPCIDevice, vdev));
g_free(v9p->dev);
qpci_free_pc(v9p->bus);
g_free(v9p);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(QVirtIO9P *VAR_0)
{
qvirtqueue_cleanup(VAR_0->dev->bus, VAR_0->vq, VAR_0->alloc);
pc_alloc_uninit(VAR_0->alloc);
qvirtio_pci_device_disable(container_of(VAR_0->dev, QVirtioPCIDevice, vdev));
g_free(VAR_0->dev);
qpci_free_pc(VAR_0->bus);
g_free(VAR_0);
}
| [
"static void FUNC_0(QVirtIO9P *VAR_0)\n{",
"qvirtqueue_cleanup(VAR_0->dev->bus, VAR_0->vq, VAR_0->alloc);",
"pc_alloc_uninit(VAR_0->alloc);",
"qvirtio_pci_device_disable(container_of(VAR_0->dev, QVirtioPCIDevice, vdev));",
"g_free(VAR_0->dev);",
"qpci_free_pc(VAR_0->bus);",
"g_free(VAR_0);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
19,474 | static int coroutine_fn bdrv_co_do_pwrite_zeroes(BlockDriverState *bs,
int64_t offset, int count, BdrvRequestFlags flags)
{
BlockDriver *drv = bs->drv;
QEMUIOVector qiov;
struct iovec iov = {0};
int ret = 0;
bool need_flush = false;
int head = 0;
int tail = 0;
int max_wri... | false | qemu | 5def6b80e1eca696c1fc6099e7f4d36729686402 | static int coroutine_fn bdrv_co_do_pwrite_zeroes(BlockDriverState *bs,
int64_t offset, int count, BdrvRequestFlags flags)
{
BlockDriver *drv = bs->drv;
QEMUIOVector qiov;
struct iovec iov = {0};
int ret = 0;
bool need_flush = false;
int head = 0;
int tail = 0;
int max_wri... | {
"code": [],
"line_no": []
} | static int VAR_0 bdrv_co_do_pwrite_zeroes(BlockDriverState *bs,
int64_t offset, int count, BdrvRequestFlags flags)
{
BlockDriver *drv = bs->drv;
QEMUIOVector qiov;
struct iovec iov = {0};
int ret = 0;
bool need_flush = false;
int head = 0;
int tail = 0;
int max_write_zero... | [
"static int VAR_0 bdrv_co_do_pwrite_zeroes(BlockDriverState *bs,\nint64_t offset, int count, BdrvRequestFlags flags)\n{",
"BlockDriver *drv = bs->drv;",
"QEMUIOVector qiov;",
"struct iovec iov = {0};",
"int ret = 0;",
"bool need_flush = false;",
"int head = 0;",
"int tail = 0;",
"int max_write_zeroe... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
55
],
[
59
],
[
61
... |
19,475 | int load_vmstate(const char *name)
{
BlockDriverState *bs, *bs_vm_state;
QEMUSnapshotInfo sn;
QEMUFile *f;
int ret;
if (!bdrv_all_can_snapshot(&bs)) {
error_report("Device '%s' is writable but does not support snapshots.",
bdrv_get_device_name(bs));
re... | false | qemu | 723ccda1a0eecece8e70dbcdd35a603f6c41a475 | int load_vmstate(const char *name)
{
BlockDriverState *bs, *bs_vm_state;
QEMUSnapshotInfo sn;
QEMUFile *f;
int ret;
if (!bdrv_all_can_snapshot(&bs)) {
error_report("Device '%s' is writable but does not support snapshots.",
bdrv_get_device_name(bs));
re... | {
"code": [],
"line_no": []
} | int FUNC_0(const char *VAR_0)
{
BlockDriverState *bs, *bs_vm_state;
QEMUSnapshotInfo sn;
QEMUFile *f;
int VAR_1;
if (!bdrv_all_can_snapshot(&bs)) {
error_report("Device '%s' is writable but does not support snapshots.",
bdrv_get_device_name(bs));
retur... | [
"int FUNC_0(const char *VAR_0)\n{",
"BlockDriverState *bs, *bs_vm_state;",
"QEMUSnapshotInfo sn;",
"QEMUFile *f;",
"int VAR_1;",
"if (!bdrv_all_can_snapshot(&bs)) {",
"error_report(\"Device '%s' is writable but does not support snapshots.\",\nbdrv_get_device_name(bs));",
"return -ENOTSUP;",
"}",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49,
51
... |
19,477 | build_fadt(GArray *table_data, GArray *linker, AcpiPmInfo *pm,
unsigned facs, unsigned dsdt,
const char *oem_id, const char *oem_table_id)
{
AcpiFadtDescriptorRev1 *fadt = acpi_data_push(table_data, sizeof(*fadt));
fadt->firmware_ctrl = cpu_to_le32(facs);
/* FACS address to be ... | false | qemu | 0e9b9edae7bebfd31fdbead4ccbbce03876a7edd | build_fadt(GArray *table_data, GArray *linker, AcpiPmInfo *pm,
unsigned facs, unsigned dsdt,
const char *oem_id, const char *oem_table_id)
{
AcpiFadtDescriptorRev1 *fadt = acpi_data_push(table_data, sizeof(*fadt));
fadt->firmware_ctrl = cpu_to_le32(facs);
bios_linker_load... | {
"code": [],
"line_no": []
} | FUNC_0(GArray *VAR_0, GArray *VAR_1, AcpiPmInfo *VAR_2,
unsigned VAR_3, unsigned VAR_4,
const char *VAR_5, const char *VAR_6)
{
AcpiFadtDescriptorRev1 *fadt = acpi_data_push(VAR_0, sizeof(*fadt));
fadt->firmware_ctrl = cpu_to_le32(VAR_3);
bios_linker_loader_add_pointer(VA... | [
"FUNC_0(GArray *VAR_0, GArray *VAR_1, AcpiPmInfo *VAR_2,\nunsigned VAR_3, unsigned VAR_4,\nconst char *VAR_5, const char *VAR_6)\n{",
"AcpiFadtDescriptorRev1 *fadt = acpi_data_push(VAR_0, sizeof(*fadt));",
"fadt->firmware_ctrl = cpu_to_le32(VAR_3);",
"bios_linker_loader_add_pointer(VAR_1, ACPI_BUILD_TABLE_FIL... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
17,
19,
21,
23
],
[
27
],
[
31,
33,
35,
37
],
[
41
],
[
45,
47
],
[
49
]
] |
19,478 | static void test_visitor_in_bool(TestInputVisitorData *data,
const void *unused)
{
bool res = false;
Visitor *v;
v = visitor_input_test_init(data, "true");
visit_type_bool(v, NULL, &res, &error_abort);
g_assert_cmpint(res, ==, true);
}
| false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void test_visitor_in_bool(TestInputVisitorData *data,
const void *unused)
{
bool res = false;
Visitor *v;
v = visitor_input_test_init(data, "true");
visit_type_bool(v, NULL, &res, &error_abort);
g_assert_cmpint(res, ==, true);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(TestInputVisitorData *VAR_0,
const void *VAR_1)
{
bool res = false;
Visitor *v;
v = visitor_input_test_init(VAR_0, "true");
visit_type_bool(v, NULL, &res, &error_abort);
g_assert_cmpint(res, ==, true);
}
| [
"static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{",
"bool res = false;",
"Visitor *v;",
"v = visitor_input_test_init(VAR_0, \"true\");",
"visit_type_bool(v, NULL, &res, &error_abort);",
"g_assert_cmpint(res, ==, true);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
]
] |
19,481 | static void e500plat_init(QEMUMachineInitArgs *args)
{
ram_addr_t ram_size = args->ram_size;
const char *boot_device = args->boot_device;
const char *cpu_model = args->cpu_model;
const char *kernel_filename = args->kernel_filename;
const char *kernel_cmdline = args->kernel_cmdline;
const ... | false | qemu | 3bb7e02a9725a24e5bf915b35f914f82f5b07a1f | static void e500plat_init(QEMUMachineInitArgs *args)
{
ram_addr_t ram_size = args->ram_size;
const char *boot_device = args->boot_device;
const char *cpu_model = args->cpu_model;
const char *kernel_filename = args->kernel_filename;
const char *kernel_cmdline = args->kernel_cmdline;
const ... | {
"code": [],
"line_no": []
} | static void FUNC_0(QEMUMachineInitArgs *VAR_0)
{
ram_addr_t ram_size = VAR_0->ram_size;
const char *VAR_1 = VAR_0->VAR_1;
const char *VAR_2 = VAR_0->VAR_2;
const char *VAR_3 = VAR_0->VAR_3;
const char *VAR_4 = VAR_0->VAR_4;
const char *VAR_5 = VAR_0->VAR_5;
PPCE500Params params = {
... | [
"static void FUNC_0(QEMUMachineInitArgs *VAR_0)\n{",
"ram_addr_t ram_size = VAR_0->ram_size;",
"const char *VAR_1 = VAR_0->VAR_1;",
"const char *VAR_2 = VAR_0->VAR_2;",
"const char *VAR_3 = VAR_0->VAR_3;",
"const char *VAR_4 = VAR_0->VAR_4;",
"const char *VAR_5 = VAR_0->VAR_5;",
"PPCE500Params params ... | [
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
],
[
41
],
[
43
]
] |
19,482 | static void gdb_read_byte(GDBState *s, int ch)
{
CPUState *env = s->env;
int i, csum;
uint8_t reply;
#ifndef CONFIG_USER_ONLY
if (s->last_packet_len) {
/* Waiting for a response to the last packet. If we see the start
of a new command then abandon the previous response. */... | false | qemu | 880a7578381d1c7ed4d41c7599ae3cc06567a824 | static void gdb_read_byte(GDBState *s, int ch)
{
CPUState *env = s->env;
int i, csum;
uint8_t reply;
#ifndef CONFIG_USER_ONLY
if (s->last_packet_len) {
if (ch == '-') {
#ifdef DEBUG_GDB
printf("Got NACK, retransmitting\n");
#endif
put_buffer(s, (u... | {
"code": [],
"line_no": []
} | static void FUNC_0(GDBState *VAR_0, int VAR_1)
{
CPUState *env = VAR_0->env;
int VAR_2, VAR_3;
uint8_t reply;
#ifndef CONFIG_USER_ONLY
if (VAR_0->last_packet_len) {
if (VAR_1 == '-') {
#ifdef DEBUG_GDB
printf("Got NACK, retransmitting\n");
#endif
... | [
"static void FUNC_0(GDBState *VAR_0, int VAR_1)\n{",
"CPUState *env = VAR_0->env;",
"int VAR_2, VAR_3;",
"uint8_t reply;",
"#ifndef CONFIG_USER_ONLY\nif (VAR_0->last_packet_len) {",
"if (VAR_1 == '-') {",
"#ifdef DEBUG_GDB\nprintf(\"Got NACK, retransmitting\\n\");",
"#endif\nput_buffer(VAR_0, (uint8_t... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
21
],
[
23,
25
],
[
27,
29
],
[
31
],
[
33,
35,
37
],
[
39,
41
],
[
43,
45,
47
],
[
49,
51
],
[
53
],
[
55
],
[... |
19,483 | int ff_hevc_decode_nal_pps(HEVCContext *s)
{
GetBitContext *gb = &s->HEVClc->gb;
HEVCSPS *sps = NULL;
int pic_area_in_ctbs;
int log2_diff_ctb_min_tb_size;
int i, j, x, y, ctb_addr_rs, tile_id;
int ret = 0;
unsigned int pps_id = 0;
AVBufferRef *pps_buf;
HEVCPPS *pps =... | false | FFmpeg | 9f9440bd8122cc8798139c9370db0873a24ae14b | int ff_hevc_decode_nal_pps(HEVCContext *s)
{
GetBitContext *gb = &s->HEVClc->gb;
HEVCSPS *sps = NULL;
int pic_area_in_ctbs;
int log2_diff_ctb_min_tb_size;
int i, j, x, y, ctb_addr_rs, tile_id;
int ret = 0;
unsigned int pps_id = 0;
AVBufferRef *pps_buf;
HEVCPPS *pps =... | {
"code": [],
"line_no": []
} | int FUNC_0(HEVCContext *VAR_0)
{
GetBitContext *gb = &VAR_0->HEVClc->gb;
HEVCSPS *sps = NULL;
int VAR_1;
int VAR_2;
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
int VAR_9 = 0;
unsigned int VAR_10 = 0;
AVBufferRef *pps_buf;
HEVCPPS *pps = av_mallocz(sizeof(*pps));
... | [
"int FUNC_0(HEVCContext *VAR_0)\n{",
"GetBitContext *gb = &VAR_0->HEVClc->gb;",
"HEVCSPS *sps = NULL;",
"int VAR_1;",
"int VAR_2;",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"int VAR_9 = 0;",
"unsigned int VAR_10 = 0;",
"AVBufferRef *pps_buf;",
"HEVCPPS *pps = av_mallocz(sizeof(*pps));... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
53
],
[
55
... |
19,484 | static void ide_drive_pre_save(void *opaque)
{
IDEState *s = opaque;
s->cur_io_buffer_len = 0;
if (!(s->status & DRQ_STAT))
return;
s->cur_io_buffer_offset = s->data_ptr - s->io_buffer;
s->cur_io_buffer_len = s->data_end - s->data_ptr;
s->end_transfer_fn_idx = transfer_en... | false | qemu | 4fc8d6711aff7a9c11e402c3d77b481609f9f486 | static void ide_drive_pre_save(void *opaque)
{
IDEState *s = opaque;
s->cur_io_buffer_len = 0;
if (!(s->status & DRQ_STAT))
return;
s->cur_io_buffer_offset = s->data_ptr - s->io_buffer;
s->cur_io_buffer_len = s->data_end - s->data_ptr;
s->end_transfer_fn_idx = transfer_en... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
IDEState *s = VAR_0;
s->cur_io_buffer_len = 0;
if (!(s->status & DRQ_STAT))
return;
s->cur_io_buffer_offset = s->data_ptr - s->io_buffer;
s->cur_io_buffer_len = s->data_end - s->data_ptr;
s->end_transfer_fn_idx = transfer_end_table_idx(s-... | [
"static void FUNC_0(void *VAR_0)\n{",
"IDEState *s = VAR_0;",
"s->cur_io_buffer_len = 0;",
"if (!(s->status & DRQ_STAT))\nreturn;",
"s->cur_io_buffer_offset = s->data_ptr - s->io_buffer;",
"s->cur_io_buffer_len = s->data_end - s->data_ptr;",
"s->end_transfer_fn_idx = transfer_end_table_idx(s->end_transf... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13,
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
]
] |
19,485 | static int gdb_breakpoint_remove(CPUState *env, target_ulong addr,
target_ulong len, int type)
{
switch (type) {
case GDB_BREAKPOINT_SW:
case GDB_BREAKPOINT_HW:
return cpu_breakpoint_remove(env, addr, BP_GDB);
#ifndef CONFIG_USER_ONLY
case GDB_WATCHPOINT_... | false | qemu | 880a7578381d1c7ed4d41c7599ae3cc06567a824 | static int gdb_breakpoint_remove(CPUState *env, target_ulong addr,
target_ulong len, int type)
{
switch (type) {
case GDB_BREAKPOINT_SW:
case GDB_BREAKPOINT_HW:
return cpu_breakpoint_remove(env, addr, BP_GDB);
#ifndef CONFIG_USER_ONLY
case GDB_WATCHPOINT_... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUState *VAR_0, target_ulong VAR_1,
target_ulong VAR_2, int VAR_3)
{
switch (VAR_3) {
case GDB_BREAKPOINT_SW:
case GDB_BREAKPOINT_HW:
return cpu_breakpoint_remove(VAR_0, VAR_1, BP_GDB);
#ifndef CONFIG_USER_ONLY
case GDB_WATCHPOINT_WRITE... | [
"static int FUNC_0(CPUState *VAR_0, target_ulong VAR_1,\ntarget_ulong VAR_2, int VAR_3)\n{",
"switch (VAR_3) {",
"case GDB_BREAKPOINT_SW:\ncase GDB_BREAKPOINT_HW:\nreturn cpu_breakpoint_remove(VAR_0, VAR_1, BP_GDB);",
"#ifndef CONFIG_USER_ONLY\ncase GDB_WATCHPOINT_WRITE:\ncase GDB_WATCHPOINT_READ:\ncase GDB_W... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11,
13
],
[
15,
17,
19,
21,
23
],
[
25,
27,
29
],
[
31
],
[
33
]
] |
19,486 | static int unin_main_pci_host_init(PCIDevice *d)
{
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_APPLE);
pci_config_set_device_id(d->config, PCI_DEVICE_ID_APPLE_UNI_N_PCI);
d->config[0x08] = 0x00; // revision
pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST);
d->config[0x0C] = 0x08; /... | false | qemu | d7b61ecc61f84d23f98f1ee270fb48b41834ca00 | static int unin_main_pci_host_init(PCIDevice *d)
{
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_APPLE);
pci_config_set_device_id(d->config, PCI_DEVICE_ID_APPLE_UNI_N_PCI);
d->config[0x08] = 0x00;
pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST);
d->config[0x0C] = 0x08;
d->con... | {
"code": [],
"line_no": []
} | static int FUNC_0(PCIDevice *VAR_0)
{
pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_APPLE);
pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_APPLE_UNI_N_PCI);
VAR_0->config[0x08] = 0x00;
pci_config_set_class(VAR_0->config, PCI_CLASS_BRIDGE_HOST);
VAR_0->config[0x0C] = 0x08;
... | [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"pci_config_set_vendor_id(VAR_0->config, PCI_VENDOR_ID_APPLE);",
"pci_config_set_device_id(VAR_0->config, PCI_DEVICE_ID_APPLE_UNI_N_PCI);",
"VAR_0->config[0x08] = 0x00;",
"pci_config_set_class(VAR_0->config, PCI_CLASS_BRIDGE_HOST);",
"VAR_0->config[0x0C] = 0x08;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
19,487 | VirtIODevice *virtio_serial_init(DeviceState *dev, uint32_t max_nr_ports)
{
VirtIOSerial *vser;
VirtIODevice *vdev;
uint32_t i;
if (!max_nr_ports)
return NULL;
vdev = virtio_common_init("virtio-serial", VIRTIO_ID_CONSOLE,
sizeof(struct virtio_console... | false | qemu | 5ab4bb598d3f58542a06a6946f04b140be222892 | VirtIODevice *virtio_serial_init(DeviceState *dev, uint32_t max_nr_ports)
{
VirtIOSerial *vser;
VirtIODevice *vdev;
uint32_t i;
if (!max_nr_ports)
return NULL;
vdev = virtio_common_init("virtio-serial", VIRTIO_ID_CONSOLE,
sizeof(struct virtio_console... | {
"code": [],
"line_no": []
} | VirtIODevice *FUNC_0(DeviceState *dev, uint32_t max_nr_ports)
{
VirtIOSerial *vser;
VirtIODevice *vdev;
uint32_t i;
if (!max_nr_ports)
return NULL;
vdev = virtio_common_init("virtio-serial", VIRTIO_ID_CONSOLE,
sizeof(struct virtio_console_config),
... | [
"VirtIODevice *FUNC_0(DeviceState *dev, uint32_t max_nr_ports)\n{",
"VirtIOSerial *vser;",
"VirtIODevice *vdev;",
"uint32_t i;",
"if (!max_nr_ports)\nreturn NULL;",
"vdev = virtio_common_init(\"virtio-serial\", VIRTIO_ID_CONSOLE,\nsizeof(struct virtio_console_config),\nsizeof(VirtIOSerial));",
"vser = D... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
19,
21,
23
],
[
27
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
51
],
[
55
],
[
61
],
[
65
],
[
69
],
[... |
19,488 | static void pci_vpb_map(SysBusDevice *dev, target_phys_addr_t base)
{
PCIVPBState *s = (PCIVPBState *)dev;
/* Selfconfig area. */
memory_region_add_subregion(get_system_memory(), base + 0x01000000,
&s->mem_config);
/* Normal config area. */
memory_region_add_... | false | qemu | 7d6e771f49c36f4388798ce25bde1dede40cda74 | static void pci_vpb_map(SysBusDevice *dev, target_phys_addr_t base)
{
PCIVPBState *s = (PCIVPBState *)dev;
memory_region_add_subregion(get_system_memory(), base + 0x01000000,
&s->mem_config);
memory_region_add_subregion(get_system_memory(), base + 0x02000000,... | {
"code": [],
"line_no": []
} | static void FUNC_0(SysBusDevice *VAR_0, target_phys_addr_t VAR_1)
{
PCIVPBState *s = (PCIVPBState *)VAR_0;
memory_region_add_subregion(get_system_memory(), VAR_1 + 0x01000000,
&s->mem_config);
memory_region_add_subregion(get_system_memory(), VAR_1 + 0x0200000... | [
"static void FUNC_0(SysBusDevice *VAR_0, target_phys_addr_t VAR_1)\n{",
"PCIVPBState *s = (PCIVPBState *)VAR_0;",
"memory_region_add_subregion(get_system_memory(), VAR_1 + 0x01000000,\n&s->mem_config);",
"memory_region_add_subregion(get_system_memory(), VAR_1 + 0x02000000,\n&s->mem_config2);",
"if (s->realv... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15,
17
],
[
21
],
[
25,
27
],
[
29
],
[
31
]
] |
19,491 | static void qmp_input_start_struct(Visitor *v, const char *name, void **obj,
size_t size, Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QObject *qobj = qmp_input_get_object(qiv, name, true, errp);
Error *err = NULL;
if (obj) {
*obj = NULL;
}
... | false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void qmp_input_start_struct(Visitor *v, const char *name, void **obj,
size_t size, Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QObject *qobj = qmp_input_get_object(qiv, name, true, errp);
Error *err = NULL;
if (obj) {
*obj = NULL;
}
... | {
"code": [],
"line_no": []
} | static void FUNC_0(Visitor *VAR_0, const char *VAR_1, void **VAR_2,
size_t VAR_3, Error **VAR_4)
{
QmpInputVisitor *qiv = to_qiv(VAR_0);
QObject *qobj = qmp_input_get_object(qiv, VAR_1, true, VAR_4);
Error *err = NULL;
if (VAR_2) {
*VAR_2 = NULL;
... | [
"static void FUNC_0(Visitor *VAR_0, const char *VAR_1, void **VAR_2,\nsize_t VAR_3, Error **VAR_4)\n{",
"QmpInputVisitor *qiv = to_qiv(VAR_0);",
"QObject *qobj = qmp_input_get_object(qiv, VAR_1, true, VAR_4);",
"Error *err = NULL;",
"if (VAR_2) {",
"*VAR_2 = NULL;",
"}",
"if (!qobj) {",
"return;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
19,493 | static int read_packet(ByteIOContext *pb, uint8_t *buf, int raw_packet_size)
{
int skip, len;
for(;;) {
len = get_buffer(pb, buf, TS_PACKET_SIZE);
if (len != TS_PACKET_SIZE)
return AVERROR(EIO);
/* check paquet sync byte */
if (buf[0] != 0x47) {
... | false | FFmpeg | 1303d62d8416fa315a0cc7bbbe35cfdab787ea92 | static int read_packet(ByteIOContext *pb, uint8_t *buf, int raw_packet_size)
{
int skip, len;
for(;;) {
len = get_buffer(pb, buf, TS_PACKET_SIZE);
if (len != TS_PACKET_SIZE)
return AVERROR(EIO);
if (buf[0] != 0x47) {
url_fseek(pb,... | {
"code": [],
"line_no": []
} | static int FUNC_0(ByteIOContext *VAR_0, uint8_t *VAR_1, int VAR_2)
{
int VAR_3, VAR_4;
for(;;) {
VAR_4 = get_buffer(VAR_0, VAR_1, TS_PACKET_SIZE);
if (VAR_4 != TS_PACKET_SIZE)
return AVERROR(EIO);
if (VAR_1[0] != 0x47) {
url_fseek... | [
"static int FUNC_0(ByteIOContext *VAR_0, uint8_t *VAR_1, int VAR_2)\n{",
"int VAR_3, VAR_4;",
"for(;;) {",
"VAR_4 = get_buffer(VAR_0, VAR_1, TS_PACKET_SIZE);",
"if (VAR_4 != TS_PACKET_SIZE)\nreturn AVERROR(EIO);",
"if (VAR_1[0] != 0x47) {",
"url_fseek(VAR_0, -TS_PACKET_SIZE, SEEK_CUR);",
"if (mpegts_r... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13,
15
],
[
19
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
]
] |
19,495 | av_cold void ff_fft_init_arm(FFTContext *s)
{
if (HAVE_NEON) {
s->fft_permute = ff_fft_permute_neon;
s->fft_calc = ff_fft_calc_neon;
s->imdct_calc = ff_imdct_calc_neon;
s->imdct_half = ff_imdct_half_neon;
s->mdct_calc = ff_mdct_calc_neon;
s->permut... | false | FFmpeg | 11ab1e409ff272c8c0bce62f48a3767546547c6c | av_cold void ff_fft_init_arm(FFTContext *s)
{
if (HAVE_NEON) {
s->fft_permute = ff_fft_permute_neon;
s->fft_calc = ff_fft_calc_neon;
s->imdct_calc = ff_imdct_calc_neon;
s->imdct_half = ff_imdct_half_neon;
s->mdct_calc = ff_mdct_calc_neon;
s->permut... | {
"code": [],
"line_no": []
} | av_cold void FUNC_0(FFTContext *s)
{
if (HAVE_NEON) {
s->fft_permute = ff_fft_permute_neon;
s->fft_calc = ff_fft_calc_neon;
s->imdct_calc = ff_imdct_calc_neon;
s->imdct_half = ff_imdct_half_neon;
s->mdct_calc = ff_mdct_calc_neon;
s->permutation = ... | [
"av_cold void FUNC_0(FFTContext *s)\n{",
"if (HAVE_NEON) {",
"s->fft_permute = ff_fft_permute_neon;",
"s->fft_calc = ff_fft_calc_neon;",
"s->imdct_calc = ff_imdct_calc_neon;",
"s->imdct_half = ff_imdct_half_neon;",
"s->mdct_calc = ff_mdct_calc_neon;",
"s->permutation = FF_MDCT_PERM_INTERL... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
19,496 | static int coroutine_fn bdrv_co_io_em(BlockDriverState *bs, int64_t sector_num,
int nb_sectors, QEMUIOVector *iov,
bool is_write)
{
CoroutineIOCompletion co = {
.coroutine = qemu_coroutine_self(),
};
BlockDriverAIOCB ... | false | qemu | a652d16025030013116c4d63883b9e1ec08a4359 | static int coroutine_fn bdrv_co_io_em(BlockDriverState *bs, int64_t sector_num,
int nb_sectors, QEMUIOVector *iov,
bool is_write)
{
CoroutineIOCompletion co = {
.coroutine = qemu_coroutine_self(),
};
BlockDriverAIOCB ... | {
"code": [],
"line_no": []
} | static int VAR_0 bdrv_co_io_em(BlockDriverState *bs, int64_t sector_num,
int nb_sectors, QEMUIOVector *iov,
bool is_write)
{
CoroutineIOCompletion co = {
.coroutine = qemu_coroutine_self(),
};
BlockDriverAIOCB *acb;
... | [
"static int VAR_0 bdrv_co_io_em(BlockDriverState *bs, int64_t sector_num,\nint nb_sectors, QEMUIOVector *iov,\nbool is_write)\n{",
"CoroutineIOCompletion co = {",
".coroutine = qemu_coroutine_self(),\n};",
"BlockDriverAIOCB *acb;",
"if (is_write) {",
"acb = bdrv_aio_writev(bs, sector_num, iov, nb_sectors,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11,
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
27,
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.