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 |
|---|---|---|---|---|---|---|---|---|---|---|
3,045 | QInt *qint_from_int(int64_t value)
{
QInt *qi;
qi = g_malloc(sizeof(*qi));
qi->value = value;
QOBJECT_INIT(qi, &qint_type);
return qi;
}
| false | qemu | 55e1819c509b3d9c10a54678b9c585bbda13889e | QInt *qint_from_int(int64_t value)
{
QInt *qi;
qi = g_malloc(sizeof(*qi));
qi->value = value;
QOBJECT_INIT(qi, &qint_type);
return qi;
}
| {
"code": [],
"line_no": []
} | QInt *FUNC_0(int64_t value)
{
QInt *qi;
qi = g_malloc(sizeof(*qi));
qi->value = value;
QOBJECT_INIT(qi, &qint_type);
return qi;
}
| [
"QInt *FUNC_0(int64_t value)\n{",
"QInt *qi;",
"qi = g_malloc(sizeof(*qi));",
"qi->value = value;",
"QOBJECT_INIT(qi, &qint_type);",
"return qi;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
]
] |
3,046 | int bdrv_discard(BlockDriverState *bs, int64_t sector_num, int nb_sectors)
{
Coroutine *co;
DiscardCo rwco = {
.bs = bs,
.sector_num = sector_num,
.nb_sectors = nb_sectors,
.ret = NOT_DONE,
};
if (qemu_in_coroutine()) {
/* Fast-path if already in corou... | false | qemu | 2572b37a4751cc967582d7d04f21d9bf97187ae5 | int bdrv_discard(BlockDriverState *bs, int64_t sector_num, int nb_sectors)
{
Coroutine *co;
DiscardCo rwco = {
.bs = bs,
.sector_num = sector_num,
.nb_sectors = nb_sectors,
.ret = NOT_DONE,
};
if (qemu_in_coroutine()) {
bdrv_discard_co_entry(... | {
"code": [],
"line_no": []
} | int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2)
{
Coroutine *co;
DiscardCo rwco = {
.VAR_0 = VAR_0,
.VAR_1 = VAR_1,
.VAR_2 = VAR_2,
.ret = NOT_DONE,
};
if (qemu_in_coroutine()) {
bdrv_discard_co_entry(&rwco);
} else {
... | [
"int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2)\n{",
"Coroutine *co;",
"DiscardCo rwco = {",
".VAR_0 = VAR_0,\n.VAR_1 = VAR_1,\n.VAR_2 = VAR_2,\n.ret = NOT_DONE,\n};",
"if (qemu_in_coroutine()) {",
"bdrv_discard_co_entry(&rwco);",
"} else {",
"co = qemu_coroutine_create(bdrv_discard_co_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11,
13,
15,
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
]
] |
3,048 | static int tusb6010_init(SysBusDevice *dev)
{
TUSBState *s = FROM_SYSBUS(TUSBState, dev);
qemu_irq *musb_irqs;
int i;
s->otg_timer = qemu_new_timer_ns(vm_clock, tusb_otg_tick, s);
s->pwr_timer = qemu_new_timer_ns(vm_clock, tusb_power_tick, s);
memory_region_init_io(&s->iomem[1], &tusb_asy... | false | qemu | 406c20754a29586f6dc1fccacbca3792be24922c | static int tusb6010_init(SysBusDevice *dev)
{
TUSBState *s = FROM_SYSBUS(TUSBState, dev);
qemu_irq *musb_irqs;
int i;
s->otg_timer = qemu_new_timer_ns(vm_clock, tusb_otg_tick, s);
s->pwr_timer = qemu_new_timer_ns(vm_clock, tusb_power_tick, s);
memory_region_init_io(&s->iomem[1], &tusb_asy... | {
"code": [],
"line_no": []
} | static int FUNC_0(SysBusDevice *VAR_0)
{
TUSBState *s = FROM_SYSBUS(TUSBState, VAR_0);
qemu_irq *musb_irqs;
int VAR_1;
s->otg_timer = qemu_new_timer_ns(vm_clock, tusb_otg_tick, s);
s->pwr_timer = qemu_new_timer_ns(vm_clock, tusb_power_tick, s);
memory_region_init_io(&s->iomem[1], &tusb_as... | [
"static int FUNC_0(SysBusDevice *VAR_0)\n{",
"TUSBState *s = FROM_SYSBUS(TUSBState, VAR_0);",
"qemu_irq *musb_irqs;",
"int VAR_1;",
"s->otg_timer = qemu_new_timer_ns(vm_clock, tusb_otg_tick, s);",
"s->pwr_timer = qemu_new_timer_ns(vm_clock, tusb_power_tick, s);",
"memory_region_init_io(&s->iomem[1], &tu... | [
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
]
] |
3,049 | void qpci_msix_disable(QPCIDevice *dev)
{
uint8_t addr;
uint16_t val;
g_assert(dev->msix_enabled);
addr = qpci_find_capability(dev, PCI_CAP_ID_MSIX);
g_assert_cmphex(addr, !=, 0);
val = qpci_config_readw(dev, addr + PCI_MSIX_FLAGS);
qpci_config_writew(dev, addr + PCI_MSIX_FLAGS,
... | false | qemu | 4446158a1a89d51d8724090aa8bd115729533e3a | void qpci_msix_disable(QPCIDevice *dev)
{
uint8_t addr;
uint16_t val;
g_assert(dev->msix_enabled);
addr = qpci_find_capability(dev, PCI_CAP_ID_MSIX);
g_assert_cmphex(addr, !=, 0);
val = qpci_config_readw(dev, addr + PCI_MSIX_FLAGS);
qpci_config_writew(dev, addr + PCI_MSIX_FLAGS,
... | {
"code": [],
"line_no": []
} | void FUNC_0(QPCIDevice *VAR_0)
{
uint8_t addr;
uint16_t val;
g_assert(VAR_0->msix_enabled);
addr = qpci_find_capability(VAR_0, PCI_CAP_ID_MSIX);
g_assert_cmphex(addr, !=, 0);
val = qpci_config_readw(VAR_0, addr + PCI_MSIX_FLAGS);
qpci_config_writew(VAR_0, addr + PCI_MSIX_FLAGS,
... | [
"void FUNC_0(QPCIDevice *VAR_0)\n{",
"uint8_t addr;",
"uint16_t val;",
"g_assert(VAR_0->msix_enabled);",
"addr = qpci_find_capability(VAR_0, PCI_CAP_ID_MSIX);",
"g_assert_cmphex(addr, !=, 0);",
"val = qpci_config_readw(VAR_0, addr + PCI_MSIX_FLAGS);",
"qpci_config_writew(VAR_0, addr + PCI_MSIX_FLAGS,\... | [
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
]
] |
3,050 | void vnc_display_open(const char *id, Error **errp)
{
VncDisplay *vs = vnc_display_find(id);
QemuOpts *opts = qemu_opts_find(&qemu_vnc_opts, id);
QemuOpts *sopts, *wsopts;
const char *share, *device_id;
QemuConsole *con;
bool password = false;
bool reverse = false;
const char *v... | false | qemu | f9148c8ae7b1515776699387b4d59864f302c77d | void vnc_display_open(const char *id, Error **errp)
{
VncDisplay *vs = vnc_display_find(id);
QemuOpts *opts = qemu_opts_find(&qemu_vnc_opts, id);
QemuOpts *sopts, *wsopts;
const char *share, *device_id;
QemuConsole *con;
bool password = false;
bool reverse = false;
const char *v... | {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0, Error **VAR_1)
{
VncDisplay *vs = vnc_display_find(VAR_0);
QemuOpts *opts = qemu_opts_find(&qemu_vnc_opts, VAR_0);
QemuOpts *sopts, *wsopts;
const char *VAR_2, *VAR_3;
QemuConsole *con;
bool password = false;
bool reverse = false;
const char *VAR_4... | [
"void FUNC_0(const char *VAR_0, Error **VAR_1)\n{",
"VncDisplay *vs = vnc_display_find(VAR_0);",
"QemuOpts *opts = qemu_opts_find(&qemu_vnc_opts, VAR_0);",
"QemuOpts *sopts, *wsopts;",
"const char *VAR_2, *VAR_3;",
"QemuConsole *con;",
"bool password = false;",
"bool reverse = false;",
"const char *... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[... |
3,051 | static coroutine_fn int qcow2_co_pdiscard(BlockDriverState *bs,
int64_t offset, int count)
{
int ret;
BDRVQcow2State *s = bs->opaque;
if (!QEMU_IS_ALIGNED(offset | count, s->cluster_size)) {
assert(count < s->cluster_size);
/* Ignore partial... | false | qemu | d2cb36af2b0040d421b347e6e4e803e07220f78d | static coroutine_fn int qcow2_co_pdiscard(BlockDriverState *bs,
int64_t offset, int count)
{
int ret;
BDRVQcow2State *s = bs->opaque;
if (!QEMU_IS_ALIGNED(offset | count, s->cluster_size)) {
assert(count < s->cluster_size);
if (!... | {
"code": [],
"line_no": []
} | static coroutine_fn int FUNC_0(BlockDriverState *bs,
int64_t offset, int count)
{
int VAR_0;
BDRVQcow2State *s = bs->opaque;
if (!QEMU_IS_ALIGNED(offset | count, s->cluster_size)) {
assert(count < s->cluster_size);
if (!QEMU_IS_A... | [
"static coroutine_fn int FUNC_0(BlockDriverState *bs,\nint64_t offset, int count)\n{",
"int VAR_0;",
"BDRVQcow2State *s = bs->opaque;",
"if (!QEMU_IS_ALIGNED(offset | count, s->cluster_size)) {",
"assert(count < s->cluster_size);",
"if (!QEMU_IS_ALIGNED(offset, s->cluster_size) ||\noffset + count != bs->t... | [
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
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
]
] |
3,052 | static int nbd_handle_list(NBDClient *client, uint32_t length)
{
int csock;
NBDExport *exp;
csock = client->sock;
if (length) {
if (drop_sync(csock, length) != length) {
return -EIO;
}
return nbd_send_rep(csock, NBD_REP_ERR_INVALID, NBD_OPT_LIST);
}
... | false | qemu | 1a6245a5b0b4e8d822c739b403fc67c8a7bc8d12 | static int nbd_handle_list(NBDClient *client, uint32_t length)
{
int csock;
NBDExport *exp;
csock = client->sock;
if (length) {
if (drop_sync(csock, length) != length) {
return -EIO;
}
return nbd_send_rep(csock, NBD_REP_ERR_INVALID, NBD_OPT_LIST);
}
... | {
"code": [],
"line_no": []
} | static int FUNC_0(NBDClient *VAR_0, uint32_t VAR_1)
{
int VAR_2;
NBDExport *exp;
VAR_2 = VAR_0->sock;
if (VAR_1) {
if (drop_sync(VAR_2, VAR_1) != VAR_1) {
return -EIO;
}
return nbd_send_rep(VAR_2, NBD_REP_ERR_INVALID, NBD_OPT_LIST);
}
QTAI... | [
"static int FUNC_0(NBDClient *VAR_0, uint32_t VAR_1)\n{",
"int VAR_2;",
"NBDExport *exp;",
"VAR_2 = VAR_0->sock;",
"if (VAR_1) {",
"if (drop_sync(VAR_2, VAR_1) != VAR_1) {",
"return -EIO;",
"}",
"return nbd_send_rep(VAR_2, NBD_REP_ERR_INVALID, NBD_OPT_LIST);",
"}",
"QTAILQ_FOREACH(exp, &exports,... | [
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
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
]
] |
3,053 | static void acpi_build_update(void *build_opaque, uint32_t offset)
{
AcpiBuildState *build_state = build_opaque;
AcpiBuildTables tables;
/* No state to update or already patched? Nothing to do. */
if (!build_state || build_state->patched) {
return;
}
build_state->patched = 1;
... | false | qemu | 42d859001d180ea788aa2d34a7be021ac8c447f2 | static void acpi_build_update(void *build_opaque, uint32_t offset)
{
AcpiBuildState *build_state = build_opaque;
AcpiBuildTables tables;
if (!build_state || build_state->patched) {
return;
}
build_state->patched = 1;
acpi_build_tables_init(&tables);
acpi_build(bu... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, uint32_t VAR_1)
{
AcpiBuildState *build_state = VAR_0;
AcpiBuildTables tables;
if (!build_state || build_state->patched) {
return;
}
build_state->patched = 1;
acpi_build_tables_init(&tables);
acpi_build(build_state->guest_info, &ta... | [
"static void FUNC_0(void *VAR_0, uint32_t VAR_1)\n{",
"AcpiBuildState *build_state = VAR_0;",
"AcpiBuildTables tables;",
"if (!build_state || build_state->patched) {",
"return;",
"}",
"build_state->patched = 1;",
"acpi_build_tables_init(&tables);",
"acpi_build(build_state->guest_info, &tables);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
31
],
[
37,
39
],
[
43,
45
],
[
47
],
[
49,
51
],
[
55,
57
],
[
61
],
[
63
]
] |
3,055 | static void disas_cond_select(DisasContext *s, uint32_t insn)
{
unsigned int sf, else_inv, rm, cond, else_inc, rn, rd;
TCGv_i64 tcg_rd, tcg_src;
if (extract32(insn, 29, 1) || extract32(insn, 11, 1)) {
/* S == 1 or op2<1> == 1 */
unallocated_encoding(s);
return;
}
s... | false | qemu | 42a268c241183877192c376d03bd9b6d527407c7 | static void disas_cond_select(DisasContext *s, uint32_t insn)
{
unsigned int sf, else_inv, rm, cond, else_inc, rn, rd;
TCGv_i64 tcg_rd, tcg_src;
if (extract32(insn, 29, 1) || extract32(insn, 11, 1)) {
unallocated_encoding(s);
return;
}
sf = extract32(insn, 31, 1);... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)
{
unsigned int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
TCGv_i64 tcg_rd, tcg_src;
if (extract32(VAR_1, 29, 1) || extract32(VAR_1, 11, 1)) {
unallocated_encoding(VAR_0);
return;
}
VAR_2 = extract32(VAR... | [
"static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)\n{",
"unsigned int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"TCGv_i64 tcg_rd, tcg_src;",
"if (extract32(VAR_1, 29, 1) || extract32(VAR_1, 11, 1)) {",
"unallocated_encoding(VAR_0);",
"return;",
"}",
"VAR_2 = extract32(VAR_1, 31, 1);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
45
],
[
47
],
[
51
],
[
55
],
[
57... |
3,056 | static FWCfgState *bochs_bios_init(AddressSpace *as, PCMachineState *pcms)
{
FWCfgState *fw_cfg;
uint64_t *numa_fw_cfg;
int i;
const CPUArchIdList *cpus;
MachineClass *mc = MACHINE_GET_CLASS(pcms);
fw_cfg = fw_cfg_init_io_dma(FW_CFG_IO_BASE, FW_CFG_IO_BASE + 4, as);
fw_cfg_add_i16(... | false | qemu | d41f3e750d2c06c613cb1b8db7724f0fbc0a2b14 | static FWCfgState *bochs_bios_init(AddressSpace *as, PCMachineState *pcms)
{
FWCfgState *fw_cfg;
uint64_t *numa_fw_cfg;
int i;
const CPUArchIdList *cpus;
MachineClass *mc = MACHINE_GET_CLASS(pcms);
fw_cfg = fw_cfg_init_io_dma(FW_CFG_IO_BASE, FW_CFG_IO_BASE + 4, as);
fw_cfg_add_i16(... | {
"code": [],
"line_no": []
} | static FWCfgState *FUNC_0(AddressSpace *as, PCMachineState *pcms)
{
FWCfgState *fw_cfg;
uint64_t *numa_fw_cfg;
int VAR_0;
const CPUArchIdList *VAR_1;
MachineClass *mc = MACHINE_GET_CLASS(pcms);
fw_cfg = fw_cfg_init_io_dma(FW_CFG_IO_BASE, FW_CFG_IO_BASE + 4, as);
fw_cfg_add_i16(fw_c... | [
"static FWCfgState *FUNC_0(AddressSpace *as, PCMachineState *pcms)\n{",
"FWCfgState *fw_cfg;",
"uint64_t *numa_fw_cfg;",
"int VAR_0;",
"const CPUArchIdList *VAR_1;",
"MachineClass *mc = MACHINE_GET_CLASS(pcms);",
"fw_cfg = fw_cfg_init_io_dma(FW_CFG_IO_BASE, FW_CFG_IO_BASE + 4, as);",
"fw_cfg_add_i16(f... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
47
],
[
49
],
[
51,
53
],
[
55
],
[
59,
61
],
[
63,
65
],
[
69
],
[
79
],
[
81
],
[
83
],
[... |
3,057 | static void init_timers(void)
{
init_get_clock();
rt_clock = qemu_new_clock(QEMU_TIMER_REALTIME);
vm_clock = qemu_new_clock(QEMU_TIMER_VIRTUAL);
}
| false | qemu | 0fdddf80a88ac2efe068990d1878f472bb6b95d9 | static void init_timers(void)
{
init_get_clock();
rt_clock = qemu_new_clock(QEMU_TIMER_REALTIME);
vm_clock = qemu_new_clock(QEMU_TIMER_VIRTUAL);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
init_get_clock();
rt_clock = qemu_new_clock(QEMU_TIMER_REALTIME);
vm_clock = qemu_new_clock(QEMU_TIMER_VIRTUAL);
}
| [
"static void FUNC_0(void)\n{",
"init_get_clock();",
"rt_clock = qemu_new_clock(QEMU_TIMER_REALTIME);",
"vm_clock = qemu_new_clock(QEMU_TIMER_VIRTUAL);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
3,058 | void qemu_spice_destroy_primary_surface(SimpleSpiceDisplay *ssd,
uint32_t id, qxl_async_io async)
{
if (async != QXL_SYNC) {
#if SPICE_INTERFACE_QXL_MINOR >= 1
spice_qxl_destroy_primary_surface_async(&ssd->qxl, id, 0);
#else
abort();
#endif
} else... | false | qemu | 4295e15aa730a95003a3639d6dad2eb1e65a59e2 | void qemu_spice_destroy_primary_surface(SimpleSpiceDisplay *ssd,
uint32_t id, qxl_async_io async)
{
if (async != QXL_SYNC) {
#if SPICE_INTERFACE_QXL_MINOR >= 1
spice_qxl_destroy_primary_surface_async(&ssd->qxl, id, 0);
#else
abort();
#endif
} else... | {
"code": [],
"line_no": []
} | void FUNC_0(SimpleSpiceDisplay *VAR_0,
uint32_t VAR_1, qxl_async_io VAR_2)
{
if (VAR_2 != QXL_SYNC) {
#if SPICE_INTERFACE_QXL_MINOR >= 1
spice_qxl_destroy_primary_surface_async(&VAR_0->qxl, VAR_1, 0);
#else
abort();
#endif
} else {
VAR_0-... | [
"void FUNC_0(SimpleSpiceDisplay *VAR_0,\nuint32_t VAR_1, qxl_async_io VAR_2)\n{",
"if (VAR_2 != QXL_SYNC) {",
"#if SPICE_INTERFACE_QXL_MINOR >= 1\nspice_qxl_destroy_primary_surface_async(&VAR_0->qxl, VAR_1, 0);",
"#else\nabort();",
"#endif\n} else {",
"VAR_0->worker->destroy_primary_surface(VAR_0->worker,... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
13,
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
]
] |
3,060 | int virtio_blk_handle_scsi_req(VirtIOBlock *blk,
VirtQueueElement *elem)
{
int status = VIRTIO_BLK_S_OK;
struct virtio_scsi_inhdr *scsi = NULL;
VirtIODevice *vdev = VIRTIO_DEVICE(blk);
#ifdef __linux__
int i;
struct sg_io_hdr hdr;
#endif
/*
* We... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | int virtio_blk_handle_scsi_req(VirtIOBlock *blk,
VirtQueueElement *elem)
{
int status = VIRTIO_BLK_S_OK;
struct virtio_scsi_inhdr *scsi = NULL;
VirtIODevice *vdev = VIRTIO_DEVICE(blk);
#ifdef __linux__
int i;
struct sg_io_hdr hdr;
#endif
... | {
"code": [],
"line_no": []
} | int FUNC_0(VirtIOBlock *VAR_0,
VirtQueueElement *VAR_1)
{
int VAR_2 = VIRTIO_BLK_S_OK;
struct virtio_scsi_inhdr *VAR_3 = NULL;
VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);
#ifdef __linux__
int i;
struct sg_io_hdr hdr;
#endif
if (VAR_1-... | [
"int FUNC_0(VirtIOBlock *VAR_0,\nVirtQueueElement *VAR_1)\n{",
"int VAR_2 = VIRTIO_BLK_S_OK;",
"struct virtio_scsi_inhdr *VAR_3 = NULL;",
"VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);",
"#ifdef __linux__\nint i;",
"struct sg_io_hdr hdr;",
"#endif\nif (VAR_1->out_num < 2 || VAR_1->in_num < 3) {",
"VAR_2 ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
39
],
[
41
],
[
43
],
[
45
],
[
57
],
[
61
],
[
63
],
[
65
],
[
67
],
[
77
],
[
79
],
[
81
],
[... |
3,062 | static void test_visitor_out_null(TestOutputVisitorData *data,
const void *unused)
{
QObject *arg;
QDict *qdict;
QObject *nil;
visit_start_struct(data->ov, NULL, NULL, 0, &error_abort);
visit_type_null(data->ov, "a", &error_abort);
visit_check_struct(d... | false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void test_visitor_out_null(TestOutputVisitorData *data,
const void *unused)
{
QObject *arg;
QDict *qdict;
QObject *nil;
visit_start_struct(data->ov, NULL, NULL, 0, &error_abort);
visit_type_null(data->ov, "a", &error_abort);
visit_check_struct(d... | {
"code": [],
"line_no": []
} | static void FUNC_0(TestOutputVisitorData *VAR_0,
const void *VAR_1)
{
QObject *arg;
QDict *qdict;
QObject *nil;
visit_start_struct(VAR_0->ov, NULL, NULL, 0, &error_abort);
visit_type_null(VAR_0->ov, "a", &error_abort);
visit_check_struct(VAR_0->ov, &er... | [
"static void FUNC_0(TestOutputVisitorData *VAR_0,\nconst void *VAR_1)\n{",
"QObject *arg;",
"QDict *qdict;",
"QObject *nil;",
"visit_start_struct(VAR_0->ov, NULL, NULL, 0, &error_abort);",
"visit_type_null(VAR_0->ov, \"a\", &error_abort);",
"visit_check_struct(VAR_0->ov, &error_abort);",
"visit_end_st... | [
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
]
] |
3,063 | struct vhost_net *vhost_net_init(VhostNetOptions *options)
{
int r;
bool backend_kernel = options->backend_type == VHOST_BACKEND_TYPE_KERNEL;
struct vhost_net *net = g_malloc(sizeof *net);
if (!options->net_backend) {
fprintf(stderr, "vhost-net requires net backend to be setup\n");
... | false | qemu | d8e80ae37a7acfea416ad9abbe76b453a73d9cc0 | struct vhost_net *vhost_net_init(VhostNetOptions *options)
{
int r;
bool backend_kernel = options->backend_type == VHOST_BACKEND_TYPE_KERNEL;
struct vhost_net *net = g_malloc(sizeof *net);
if (!options->net_backend) {
fprintf(stderr, "vhost-net requires net backend to be setup\n");
... | {
"code": [],
"line_no": []
} | struct vhost_net *FUNC_0(VhostNetOptions *VAR_0)
{
int VAR_1;
bool backend_kernel = VAR_0->backend_type == VHOST_BACKEND_TYPE_KERNEL;
struct vhost_net *VAR_2 = g_malloc(sizeof *VAR_2);
if (!VAR_0->net_backend) {
fprintf(stderr, "vhost-VAR_2 requires VAR_2 backend to be setup\n");
... | [
"struct vhost_net *FUNC_0(VhostNetOptions *VAR_0)\n{",
"int VAR_1;",
"bool backend_kernel = VAR_0->backend_type == VHOST_BACKEND_TYPE_KERNEL;",
"struct vhost_net *VAR_2 = g_malloc(sizeof *VAR_2);",
"if (!VAR_0->net_backend) {",
"fprintf(stderr, \"vhost-VAR_2 requires VAR_2 backend to be setup\\n\");",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
3,064 | static void lsi_do_dma(LSIState *s, int out)
{
uint32_t count;
target_phys_addr_t addr;
if (!s->current_dma_len) {
/* Wait until data is available. */
DPRINTF("DMA no data available\n");
return;
}
count = s->dbc;
if (count > s->current_dma_len)
cou... | false | qemu | dd8edf0122a605631420547f251fe636932dc4aa | static void lsi_do_dma(LSIState *s, int out)
{
uint32_t count;
target_phys_addr_t addr;
if (!s->current_dma_len) {
DPRINTF("DMA no data available\n");
return;
}
count = s->dbc;
if (count > s->current_dma_len)
count = s->current_dma_len;
addr... | {
"code": [],
"line_no": []
} | static void FUNC_0(LSIState *VAR_0, int VAR_1)
{
uint32_t count;
target_phys_addr_t addr;
if (!VAR_0->current_dma_len) {
DPRINTF("DMA no data available\n");
return;
}
count = VAR_0->dbc;
if (count > VAR_0->current_dma_len)
count = VAR_0->current_dm... | [
"static void FUNC_0(LSIState *VAR_0, int VAR_1)\n{",
"uint32_t count;",
"target_phys_addr_t addr;",
"if (!VAR_0->current_dma_len) {",
"DPRINTF(\"DMA no data available\\n\");",
"return;",
"}",
"count = VAR_0->dbc;",
"if (count > VAR_0->current_dma_len)\ncount = VAR_0->current_dma_len;",
"addr = 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
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
31
],
[
33,
35
],
[
37,
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55,
57... |
3,066 | static inline uint64_t ucf64_dtoi(float64 d)
{
union {
uint64_t i;
float64 d;
} v;
v.d = d;
return v.i;
}
| false | qemu | e8ede0a8bb5298a6979bcf7ed84ef64a64a4e3fe | static inline uint64_t ucf64_dtoi(float64 d)
{
union {
uint64_t i;
float64 d;
} v;
v.d = d;
return v.i;
}
| {
"code": [],
"line_no": []
} | static inline uint64_t FUNC_0(float64 d)
{
union {
uint64_t i;
float64 d;
} VAR_0;
VAR_0.d = d;
return VAR_0.i;
}
| [
"static inline uint64_t FUNC_0(float64 d)\n{",
"union {",
"uint64_t i;",
"float64 d;",
"} VAR_0;",
"VAR_0.d = d;",
"return VAR_0.i;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
]
] |
3,067 | static ssize_t handle_aiocb_ioctl(RawPosixAIOData *aiocb)
{
int ret;
ret = ioctl(aiocb->aio_fildes, aiocb->aio_ioctl_cmd, aiocb->aio_ioctl_buf);
if (ret == -1) {
return -errno;
}
/*
* This looks weird, but the aio code only considers a request
* successful if it has wr... | false | qemu | b608c8dc02c78ee95455a0989bdf1b41c768b2ef | static ssize_t handle_aiocb_ioctl(RawPosixAIOData *aiocb)
{
int ret;
ret = ioctl(aiocb->aio_fildes, aiocb->aio_ioctl_cmd, aiocb->aio_ioctl_buf);
if (ret == -1) {
return -errno;
}
return aiocb->aio_nbytes;
}
| {
"code": [],
"line_no": []
} | static ssize_t FUNC_0(RawPosixAIOData *aiocb)
{
int VAR_0;
VAR_0 = ioctl(aiocb->aio_fildes, aiocb->aio_ioctl_cmd, aiocb->aio_ioctl_buf);
if (VAR_0 == -1) {
return -errno;
}
return aiocb->aio_nbytes;
}
| [
"static ssize_t FUNC_0(RawPosixAIOData *aiocb)\n{",
"int VAR_0;",
"VAR_0 = ioctl(aiocb->aio_fildes, aiocb->aio_ioctl_cmd, aiocb->aio_ioctl_buf);",
"if (VAR_0 == -1) {",
"return -errno;",
"}",
"return aiocb->aio_nbytes;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
35
],
[
37
]
] |
3,068 | static int dump_init(DumpState *s, int fd, bool has_format,
DumpGuestMemoryFormat format, bool paging, bool has_filter,
int64_t begin, int64_t length, Error **errp)
{
CPUState *cpu;
int nr_cpus;
Error *err = NULL;
int ret;
/* kdump-compressed is co... | false | qemu | 2f859f80c2077e00237ea1dfae2523ebd8377f5f | static int dump_init(DumpState *s, int fd, bool has_format,
DumpGuestMemoryFormat format, bool paging, bool has_filter,
int64_t begin, int64_t length, Error **errp)
{
CPUState *cpu;
int nr_cpus;
Error *err = NULL;
int ret;
if (has_format && f... | {
"code": [],
"line_no": []
} | static int FUNC_0(DumpState *VAR_0, int VAR_1, bool VAR_2,
DumpGuestMemoryFormat VAR_3, bool VAR_4, bool VAR_5,
int64_t VAR_6, int64_t VAR_7, Error **VAR_8)
{
CPUState *cpu;
int VAR_9;
Error *err = NULL;
int VAR_10;
if (VAR_2 && VAR_3 != DUMP... | [
"static int FUNC_0(DumpState *VAR_0, int VAR_1, bool VAR_2,\nDumpGuestMemoryFormat VAR_3, bool VAR_4, bool VAR_5,\nint64_t VAR_6, int64_t VAR_7, Error **VAR_8)\n{",
"CPUState *cpu;",
"int VAR_9;",
"Error *err = NULL;",
"int VAR_10;",
"if (VAR_2 && VAR_3 != DUMP_GUEST_MEMORY_FORMAT_ELF) {",
"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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
... |
3,069 | static void test_wait_event_notifier_noflush(void)
{
EventNotifierTestData data = { .n = 0 };
EventNotifierTestData dummy = { .n = 0, .active = 1 };
event_notifier_init(&data.e, false);
aio_set_event_notifier(ctx, &data.e, event_ready_cb, NULL);
g_assert(!aio_poll(ctx, false));
g_asse... | true | qemu | 24d1a6d9d5f5b3da868724dd3c6f56893e0693da | static void test_wait_event_notifier_noflush(void)
{
EventNotifierTestData data = { .n = 0 };
EventNotifierTestData dummy = { .n = 0, .active = 1 };
event_notifier_init(&data.e, false);
aio_set_event_notifier(ctx, &data.e, event_ready_cb, NULL);
g_assert(!aio_poll(ctx, false));
g_asse... | {
"code": [
" wait_for_aio();",
" wait_for_aio();"
],
"line_no": [
69,
69
]
} | static void FUNC_0(void)
{
EventNotifierTestData data = { .n = 0 };
EventNotifierTestData dummy = { .n = 0, .active = 1 };
event_notifier_init(&data.e, false);
aio_set_event_notifier(ctx, &data.e, event_ready_cb, NULL);
g_assert(!aio_poll(ctx, false));
g_assert_cmpint(data.n, ==, 0);
... | [
"static void FUNC_0(void)\n{",
"EventNotifierTestData data = { .n = 0 };",
"EventNotifierTestData dummy = { .n = 0, .active = 1 };",
"event_notifier_init(&data.e, false);",
"aio_set_event_notifier(ctx, &data.e, event_ready_cb, NULL);",
"g_assert(!aio_poll(ctx, false));",
"g_assert_cmpint(data.n, ==, 0);... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
27
],
[
29
],
[
31
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
],
[
59... |
3,072 | static void celt_search_for_intensity(OpusPsyContext *s, CeltFrame *f)
{
int i, best_band = CELT_MAX_BANDS - 1;
float dist, best_dist = FLT_MAX;
/* TODO: fix, make some heuristic up here using the lambda value */
float end_band = 0;
for (i = f->end_band; i >= end_band; i--) {
f->intensity_st... | true | FFmpeg | f141b353e60f1081185927a1e74a9ab46cae8bef | static void celt_search_for_intensity(OpusPsyContext *s, CeltFrame *f)
{
int i, best_band = CELT_MAX_BANDS - 1;
float dist, best_dist = FLT_MAX;
float end_band = 0;
for (i = f->end_band; i >= end_band; i--) {
f->intensity_stereo = i;
bands_dist(s, f, &dist);
if (best_dist > ... | {
"code": [],
"line_no": []
} | static void FUNC_0(OpusPsyContext *VAR_0, CeltFrame *VAR_1)
{
int VAR_2, VAR_3 = CELT_MAX_BANDS - 1;
float VAR_4, VAR_5 = FLT_MAX;
float VAR_6 = 0;
for (VAR_2 = VAR_1->VAR_6; VAR_2 >= VAR_6; VAR_2--) {
VAR_1->intensity_stereo = VAR_2;
bands_dist(VAR_0, VAR_1, &VAR_4);
if (VA... | [
"static void FUNC_0(OpusPsyContext *VAR_0, CeltFrame *VAR_1)\n{",
"int VAR_2, VAR_3 = CELT_MAX_BANDS - 1;",
"float VAR_4, VAR_5 = FLT_MAX;",
"float VAR_6 = 0;",
"for (VAR_2 = VAR_1->VAR_6; VAR_2 >= VAR_6; VAR_2--) {",
"VAR_1->intensity_stereo = VAR_2;",
"bands_dist(VAR_0, VAR_1, &VAR_4);",
"if (VAR_5 ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
]
] |
3,073 | unsigned int qemu_get_be32(QEMUFile *f)
{
unsigned int v;
v = qemu_get_byte(f) << 24;
v |= qemu_get_byte(f) << 16;
v |= qemu_get_byte(f) << 8;
v |= qemu_get_byte(f);
return v;
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | unsigned int qemu_get_be32(QEMUFile *f)
{
unsigned int v;
v = qemu_get_byte(f) << 24;
v |= qemu_get_byte(f) << 16;
v |= qemu_get_byte(f) << 8;
v |= qemu_get_byte(f);
return v;
}
| {
"code": [],
"line_no": []
} | unsigned int FUNC_0(QEMUFile *VAR_0)
{
unsigned int VAR_1;
VAR_1 = qemu_get_byte(VAR_0) << 24;
VAR_1 |= qemu_get_byte(VAR_0) << 16;
VAR_1 |= qemu_get_byte(VAR_0) << 8;
VAR_1 |= qemu_get_byte(VAR_0);
return VAR_1;
}
| [
"unsigned int FUNC_0(QEMUFile *VAR_0)\n{",
"unsigned int VAR_1;",
"VAR_1 = qemu_get_byte(VAR_0) << 24;",
"VAR_1 |= qemu_get_byte(VAR_0) << 16;",
"VAR_1 |= qemu_get_byte(VAR_0) << 8;",
"VAR_1 |= qemu_get_byte(VAR_0);",
"return VAR_1;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
3,074 | static int usage(int ret)
{
fprintf(stderr, "dump (up to maxpkts) AVPackets as they are demuxed by libavformat.\n");
fprintf(stderr, "each packet is dumped in its own file named like `basename file.ext`_$PKTNUM_$STREAMINDEX_$STAMP_$SIZE_$FLAGS.bin\n");
fprintf(stderr, "pktdumper file [maxpkts]\n");
... | true | FFmpeg | 2d216336f80b294af056a8b1ee8c7306f4d543f3 | static int usage(int ret)
{
fprintf(stderr, "dump (up to maxpkts) AVPackets as they are demuxed by libavformat.\n");
fprintf(stderr, "each packet is dumped in its own file named like `basename file.ext`_$PKTNUM_$STREAMINDEX_$STAMP_$SIZE_$FLAGS.bin\n");
fprintf(stderr, "pktdumper file [maxpkts]\n");
... | {
"code": [
" fprintf(stderr, \"pktdumper file [maxpkts]\\n\");"
],
"line_no": [
9
]
} | static int FUNC_0(int VAR_0)
{
fprintf(stderr, "dump (up to maxpkts) AVPackets as they are demuxed by libavformat.\n");
fprintf(stderr, "each packet is dumped in its own file named like `basename file.ext`_$PKTNUM_$STREAMINDEX_$STAMP_$SIZE_$FLAGS.bin\n");
fprintf(stderr, "pktdumper file [maxpkts]\n");
... | [
"static int FUNC_0(int VAR_0)\n{",
"fprintf(stderr, \"dump (up to maxpkts) AVPackets as they are demuxed by libavformat.\\n\");",
"fprintf(stderr, \"each packet is dumped in its own file named like `basename file.ext`_$PKTNUM_$STREAMINDEX_$STAMP_$SIZE_$FLAGS.bin\\n\");",
"fprintf(stderr, \"pktdumper file [max... | [
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
3,075 | static void ide_dma_cb(void *opaque, int ret)
{
IDEState *s = opaque;
int n;
int64_t sector_num;
bool stay_active = false;
if (ret == -ECANCELED) {
return;
}
if (ret < 0) {
int op = IDE_RETRY_DMA;
if (s->dma_cmd == IDE_DMA_READ)
op |= IDE_R... | true | qemu | a718978ed58abc1ad92567a9c17525136be02a71 | static void ide_dma_cb(void *opaque, int ret)
{
IDEState *s = opaque;
int n;
int64_t sector_num;
bool stay_active = false;
if (ret == -ECANCELED) {
return;
}
if (ret < 0) {
int op = IDE_RETRY_DMA;
if (s->dma_cmd == IDE_DMA_READ)
op |= IDE_R... | {
"code": [
" assert(s->io_buffer_size == s->sg.size);",
" dma_buf_commit(s, s->io_buffer_size);",
" if (s->bus->dma->ops->prepare_buf(s->bus->dma, ide_cmd_is_read(s)) < 512) {"
],
"line_no": [
69,
71,
105
]
} | static void FUNC_0(void *VAR_0, int VAR_1)
{
IDEState *s = VAR_0;
int VAR_2;
int64_t sector_num;
bool stay_active = false;
if (VAR_1 == -ECANCELED) {
return;
}
if (VAR_1 < 0) {
int VAR_3 = IDE_RETRY_DMA;
if (s->dma_cmd == IDE_DMA_READ)
VAR_... | [
"static void FUNC_0(void *VAR_0, int VAR_1)\n{",
"IDEState *s = VAR_0;",
"int VAR_2;",
"int64_t sector_num;",
"bool stay_active = false;",
"if (VAR_1 == -ECANCELED) {",
"return;",
"}",
"if (VAR_1 < 0) {",
"int VAR_3 = IDE_RETRY_DMA;",
"if (s->dma_cmd == IDE_DMA_READ)\nVAR_3 |= IDE_RETRY_READ;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
57
... |
3,077 | static av_noinline void emulated_edge_mc_sse(uint8_t *buf, ptrdiff_t buf_stride,
const uint8_t *src, ptrdiff_t src_stride,
int block_w, int block_h,
int src_x, int src_y, int w, int ... | true | FFmpeg | 1b3a7e1f42c3d89253e9837ada98e6bfb0cbab2f | static av_noinline void emulated_edge_mc_sse(uint8_t *buf, ptrdiff_t buf_stride,
const uint8_t *src, ptrdiff_t src_stride,
int block_w, int block_h,
int src_x, int src_y, int w, int ... | {
"code": [
"#endif",
" emulated_edge_mc(buf, buf_stride, src, src_stride, block_w, block_h, src_x,",
" src_y, w, h, vfixtbl_sse, &ff_emu_edge_vvar_sse, hfixtbl_sse,",
"#if ARCH_X86_64",
" &ff_emu_edge_hvar_sse",
"#else",
" &ff... | static av_noinline void FUNC_0(uint8_t *buf, ptrdiff_t buf_stride,
const uint8_t *src, ptrdiff_t src_stride,
int block_w, int block_h,
int src_x, int src_y, int w, int h)
{
emu... | [
"static av_noinline void FUNC_0(uint8_t *buf, ptrdiff_t buf_stride,\nconst uint8_t *src, ptrdiff_t src_stride,\nint block_w, int block_h,\nint src_x, int src_y, int w, int h)\n{",
"emulated_edge_mc(buf, buf_stride, src, src_stride, block_w, block_h, src_x,\nsrc_y, w, h, vfixtbl_sse, &ff_emu_edge_vvar_sse, hfixtbl... | [
0,
1,
0
] | [
[
1,
3,
5,
7,
9
],
[
11,
13,
15,
17,
19,
21,
23,
25
],
[
27
]
] |
3,078 | static int yuv4_read_header(AVFormatContext *s)
{
char header[MAX_YUV4_HEADER + 10]; // Include headroom for
// the longest option
char *tokstart, *tokend, *header_end;
int i;
AVIOContext *pb = s->pb;
int width = -1, height = -1, raten = 0,
... | false | FFmpeg | 08fa34bf75942f66796d770ff42a3721b2e3d2d4 | static int yuv4_read_header(AVFormatContext *s)
{
char header[MAX_YUV4_HEADER + 10];
char *tokstart, *tokend, *header_end;
int i;
AVIOContext *pb = s->pb;
int width = -1, height = -1, raten = 0,
rated = 0, aspectn = 0, aspectd = 0;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
char VAR_1[MAX_YUV4_HEADER + 10];
char *VAR_2, *VAR_3, *VAR_4;
int VAR_5;
AVIOContext *pb = VAR_0->pb;
int VAR_6 = -1, VAR_7 = -1, VAR_8 = 0,
VAR_9 = 0, VAR_10 = 0, VAR_11 = 0;
enum AVPix... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"char VAR_1[MAX_YUV4_HEADER + 10];",
"char *VAR_2, *VAR_3, *VAR_4;",
"int VAR_5;",
"AVIOContext *pb = VAR_0->pb;",
"int VAR_6 = -1, VAR_7 = -1, VAR_8 = 0,\nVAR_9 = 0, VAR_10 = 0, VAR_11 = 0;",
"enum AVPixelFormat VAR_12 = AV_PIX_FMT_NONE, VAR_13 = AV_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
49... |
3,079 | static int bmp_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
const uint8_t *buf, int buf_size)
{
BMPContext *s = avctx->priv_data;
AVFrame *picture = data;
AVFrame *p = &s->picture;
unsigned int fsize, hsize;
int width... | false | FFmpeg | c5b2fe165a31f0319d55a14a92cbac2e0e0b95fc | static int bmp_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
const uint8_t *buf, int buf_size)
{
BMPContext *s = avctx->priv_data;
AVFrame *picture = data;
AVFrame *p = &s->picture;
unsigned int fsize, hsize;
int width... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
const uint8_t *VAR_3, int VAR_4)
{
BMPContext *s = VAR_0->priv_data;
AVFrame *picture = VAR_1;
AVFrame *p = &s->picture;
unsigned int VAR_5, VAR_6;
int VAR_7, VAR_8;
... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{",
"BMPContext *s = VAR_0->priv_data;",
"AVFrame *picture = VAR_1;",
"AVFrame *p = &s->picture;",
"unsigned int VAR_5, VAR_6;",
"int VAR_7, VAR_8;",
"unsigned int VAR_9;",
"BiCompression comp;",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
43
],
[
47,... |
3,080 | static int spapr_fixup_cpu_smt_dt(void *fdt, int offset, PowerPCCPU *cpu,
int smt_threads)
{
int i, ret = 0;
uint32_t servers_prop[smt_threads];
uint32_t gservers_prop[smt_threads * 2];
int index = ppc_get_vcpu_dt_id(cpu);
if (cpu->cpu_version) {
r... | true | qemu | 4bce526ec4b88362a684fd858e0e14c83ddf0db4 | static int spapr_fixup_cpu_smt_dt(void *fdt, int offset, PowerPCCPU *cpu,
int smt_threads)
{
int i, ret = 0;
uint32_t servers_prop[smt_threads];
uint32_t gservers_prop[smt_threads * 2];
int index = ppc_get_vcpu_dt_id(cpu);
if (cpu->cpu_version) {
r... | {
"code": [
" ret = fdt_setprop(fdt, offset, \"cpu-version\",",
" &cpu->cpu_version, sizeof(cpu->cpu_version));"
],
"line_no": [
19,
21
]
} | static int FUNC_0(void *VAR_0, int VAR_1, PowerPCCPU *VAR_2,
int VAR_3)
{
int VAR_4, VAR_5 = 0;
uint32_t servers_prop[VAR_3];
uint32_t gservers_prop[VAR_3 * 2];
int VAR_6 = ppc_get_vcpu_dt_id(VAR_2);
if (VAR_2->cpu_version) {
VAR_5 = fdt_setprop(VA... | [
"static int FUNC_0(void *VAR_0, int VAR_1, PowerPCCPU *VAR_2,\nint VAR_3)\n{",
"int VAR_4, VAR_5 = 0;",
"uint32_t servers_prop[VAR_3];",
"uint32_t gservers_prop[VAR_3 * 2];",
"int VAR_6 = ppc_get_vcpu_dt_id(VAR_2);",
"if (VAR_2->cpu_version) {",
"VAR_5 = fdt_setprop(VAR_0, VAR_1, \"VAR_2-version\",\n&VA... | [
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
],
[
11
],
[
13
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47,
49
],
[
51
],
[... |
3,081 | static int net_socket_mcast_create(struct sockaddr_in *mcastaddr)
{
struct ip_mreq imr;
int fd;
int val, ret;
if (!IN_MULTICAST(ntohl(mcastaddr->sin_addr.s_addr))) {
fprintf(stderr, "qemu: error: specified mcastaddr \"%s\" (0x%08x) does not contain a multicast address\n",
inet_ntoa(mcastaddr->... | true | qemu | 40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4 | static int net_socket_mcast_create(struct sockaddr_in *mcastaddr)
{
struct ip_mreq imr;
int fd;
int val, ret;
if (!IN_MULTICAST(ntohl(mcastaddr->sin_addr.s_addr))) {
fprintf(stderr, "qemu: error: specified mcastaddr \"%s\" (0x%08x) does not contain a multicast address\n",
inet_ntoa(mcastaddr->... | {
"code": [
" fd = socket(PF_INET, SOCK_DGRAM, 0);"
],
"line_no": [
25
]
} | static int FUNC_0(struct sockaddr_in *VAR_0)
{
struct ip_mreq VAR_1;
int VAR_2;
int VAR_3, VAR_4;
if (!IN_MULTICAST(ntohl(VAR_0->sin_addr.s_addr))) {
fprintf(stderr, "qemu: error: specified VAR_0 \"%s\" (0x%08x) does not contain a multicast address\n",
inet_ntoa(VAR_0->sin_addr),
... | [
"static int FUNC_0(struct sockaddr_in *VAR_0)\n{",
"struct ip_mreq VAR_1;",
"int VAR_2;",
"int VAR_3, VAR_4;",
"if (!IN_MULTICAST(ntohl(VAR_0->sin_addr.s_addr))) {",
"fprintf(stderr, \"qemu: error: specified VAR_0 \\\"%s\\\" (0x%08x) does not contain a multicast address\\n\",\ninet_ntoa(VAR_0->sin_addr),\... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15,
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[... |
3,083 | static void packet_id_queue_add(struct PacketIdQueue *q, uint64_t id)
{
USBRedirDevice *dev = q->dev;
struct PacketIdQueueEntry *e;
DPRINTF("adding packet id %"PRIu64" to %s queue\n", id, q->name);
e = g_malloc0(sizeof(struct PacketIdQueueEntry));
e->id = id;
QTAILQ_INSERT_TAIL(&q->he... | true | qemu | 98f343395e937fa1db3a28dfb4f303f97cfddd6c | static void packet_id_queue_add(struct PacketIdQueue *q, uint64_t id)
{
USBRedirDevice *dev = q->dev;
struct PacketIdQueueEntry *e;
DPRINTF("adding packet id %"PRIu64" to %s queue\n", id, q->name);
e = g_malloc0(sizeof(struct PacketIdQueueEntry));
e->id = id;
QTAILQ_INSERT_TAIL(&q->he... | {
"code": [
" e = g_malloc0(sizeof(struct PacketIdQueueEntry));"
],
"line_no": [
15
]
} | static void FUNC_0(struct PacketIdQueue *VAR_0, uint64_t VAR_1)
{
USBRedirDevice *dev = VAR_0->dev;
struct PacketIdQueueEntry *VAR_2;
DPRINTF("adding packet VAR_1 %"PRIu64" to %s queue\n", VAR_1, VAR_0->name);
VAR_2 = g_malloc0(sizeof(struct PacketIdQueueEntry));
VAR_2->VAR_1 = VAR_1;
... | [
"static void FUNC_0(struct PacketIdQueue *VAR_0, uint64_t VAR_1)\n{",
"USBRedirDevice *dev = VAR_0->dev;",
"struct PacketIdQueueEntry *VAR_2;",
"DPRINTF(\"adding packet VAR_1 %\"PRIu64\" to %s queue\\n\", VAR_1, VAR_0->name);",
"VAR_2 = g_malloc0(sizeof(struct PacketIdQueueEntry));",
"VAR_2->VAR_1 = VAR_1... | [
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
3,084 | static void xtensa_cpu_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
CPUClass *cc = CPU_CLASS(oc);
XtensaCPUClass *xcc = XTENSA_CPU_CLASS(cc);
xcc->parent_realize = dc->realize;
dc->realize = xtensa_cpu_realizefn;
xcc->parent_reset = cc->reset;
cc-... | true | qemu | ce5b1bbf624b977a55ff7f85bb3871682d03baff | static void xtensa_cpu_class_init(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
CPUClass *cc = CPU_CLASS(oc);
XtensaCPUClass *xcc = XTENSA_CPU_CLASS(cc);
xcc->parent_realize = dc->realize;
dc->realize = xtensa_cpu_realizefn;
xcc->parent_reset = cc->reset;
cc-... | {
"code": [
" dc->cannot_destroy_with_object_finalize_yet = true;",
" dc->cannot_destroy_with_object_finalize_yet = true;",
" dc->cannot_destroy_with_object_finalize_yet = true;",
" dc->cannot_destroy_with_object_finalize_yet = true;",
" dc->cannot_destroy_with_object_finalize_yet =... | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
CPUClass *cc = CPU_CLASS(VAR_0);
XtensaCPUClass *xcc = XTENSA_CPU_CLASS(cc);
xcc->parent_realize = dc->realize;
dc->realize = xtensa_cpu_realizefn;
xcc->parent_reset = cc->reset;
cc->rese... | [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"CPUClass *cc = CPU_CLASS(VAR_0);",
"XtensaCPUClass *xcc = XTENSA_CPU_CLASS(cc);",
"xcc->parent_realize = dc->realize;",
"dc->realize = xtensa_cpu_realizefn;",
"xcc->parent_reset = cc->reset;",
"cc->res... | [
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,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[... |
3,085 | static void fdt_add_gic_node(const VirtBoardInfo *vbi)
{
uint32_t gic_phandle;
gic_phandle = qemu_fdt_alloc_phandle(vbi->fdt);
qemu_fdt_setprop_cell(vbi->fdt, "/", "interrupt-parent", gic_phandle);
qemu_fdt_add_subnode(vbi->fdt, "/intc");
/* 'cortex-a15-gic' means 'GIC v2' */
qemu_fdt... | true | qemu | 4ab29b8214cc4b54e0c1a8270b610a340311470e | static void fdt_add_gic_node(const VirtBoardInfo *vbi)
{
uint32_t gic_phandle;
gic_phandle = qemu_fdt_alloc_phandle(vbi->fdt);
qemu_fdt_setprop_cell(vbi->fdt, "/", "interrupt-parent", gic_phandle);
qemu_fdt_add_subnode(vbi->fdt, "/intc");
qemu_fdt_setprop_string(vbi->fdt, "/intc", "c... | {
"code": [
"static void fdt_add_gic_node(const VirtBoardInfo *vbi)"
],
"line_no": [
1
]
} | static void FUNC_0(const VirtBoardInfo *VAR_0)
{
uint32_t gic_phandle;
gic_phandle = qemu_fdt_alloc_phandle(VAR_0->fdt);
qemu_fdt_setprop_cell(VAR_0->fdt, "/", "interrupt-parent", gic_phandle);
qemu_fdt_add_subnode(VAR_0->fdt, "/intc");
qemu_fdt_setprop_string(VAR_0->fdt, "/intc", "c... | [
"static void FUNC_0(const VirtBoardInfo *VAR_0)\n{",
"uint32_t gic_phandle;",
"gic_phandle = qemu_fdt_alloc_phandle(VAR_0->fdt);",
"qemu_fdt_setprop_cell(VAR_0->fdt, \"/\", \"interrupt-parent\", gic_phandle);",
"qemu_fdt_add_subnode(VAR_0->fdt, \"/intc\");",
"qemu_fdt_setprop_string(VAR_0->fdt, \"/intc\",... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
19,
21
],
[
23
],
[
25
],
[
27,
29,
31,
33,
35
],
[
37
],
[
39
]
] |
3,086 | static inline void downmix_3f_to_mono(float *samples)
{
int i;
for (i = 0; i < 256; i++) {
samples[i] += (samples[i + 256] + samples[i + 512]);
samples[i + 256] = samples[i + 512] = 0;
}
}
| false | FFmpeg | 0058584580b87feb47898e60e4b80c7f425882ad | static inline void downmix_3f_to_mono(float *samples)
{
int i;
for (i = 0; i < 256; i++) {
samples[i] += (samples[i + 256] + samples[i + 512]);
samples[i + 256] = samples[i + 512] = 0;
}
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(float *VAR_0)
{
int VAR_1;
for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {
VAR_0[VAR_1] += (VAR_0[VAR_1 + 256] + VAR_0[VAR_1 + 512]);
VAR_0[VAR_1 + 256] = VAR_0[VAR_1 + 512] = 0;
}
}
| [
"static inline void FUNC_0(float *VAR_0)\n{",
"int VAR_1;",
"for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {",
"VAR_0[VAR_1] += (VAR_0[VAR_1 + 256] + VAR_0[VAR_1 + 512]);",
"VAR_0[VAR_1 + 256] = VAR_0[VAR_1 + 512] = 0;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
3,087 | static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
int ret, entries;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams - 1];
sc = st->priv_data;
avio_r8(pb); /* version */
avio_rb24(p... | true | FFmpeg | 6db511a7838830f856b4664958add937a4a0d49b | static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
int ret, entries;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams - 1];
sc = st->priv_data;
avio_r8(pb);
avio_rb24(pb);
ent... | {
"code": [
" sc->stsd_count = entries;"
],
"line_no": [
83
]
} | static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)
{
AVStream *st;
MOVStreamContext *sc;
int VAR_3, VAR_4;
if (VAR_0->fc->nb_streams < 1)
return 0;
st = VAR_0->fc->streams[VAR_0->fc->nb_streams - 1];
sc = st->priv_data;
avio_r8(VAR_1);
avio_rb2... | [
"static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{",
"AVStream *st;",
"MOVStreamContext *sc;",
"int VAR_3, VAR_4;",
"if (VAR_0->fc->nb_streams < 1)\nreturn 0;",
"st = VAR_0->fc->streams[VAR_0->fc->nb_streams - 1];",
"sc = st->priv_data;",
"avio_r8(VAR_1);",
"avio_rb24(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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
55
... |
3,088 | static void i6300esb_restart_timer(I6300State *d, int stage)
{
int64_t timeout;
if (!d->enabled)
return;
d->stage = stage;
if (d->stage <= 1)
timeout = d->timer1_preload;
else
timeout = d->timer2_preload;
if (d->clock_scale == CLOCK_SCALE_1KHZ)
... | true | qemu | 4bc7b4d56657ebf75b986ad46e959cf7232ff26a | static void i6300esb_restart_timer(I6300State *d, int stage)
{
int64_t timeout;
if (!d->enabled)
return;
d->stage = stage;
if (d->stage <= 1)
timeout = d->timer1_preload;
else
timeout = d->timer2_preload;
if (d->clock_scale == CLOCK_SCALE_1KHZ)
... | {
"code": [
" timeout = get_ticks_per_sec() * timeout / 33000000;"
],
"line_no": [
41
]
} | static void FUNC_0(I6300State *VAR_0, int VAR_1)
{
int64_t timeout;
if (!VAR_0->enabled)
return;
VAR_0->VAR_1 = VAR_1;
if (VAR_0->VAR_1 <= 1)
timeout = VAR_0->timer1_preload;
else
timeout = VAR_0->timer2_preload;
if (VAR_0->clock_scale == CLOCK_SCALE_1KH... | [
"static void FUNC_0(I6300State *VAR_0, int VAR_1)\n{",
"int64_t timeout;",
"if (!VAR_0->enabled)\nreturn;",
"VAR_0->VAR_1 = VAR_1;",
"if (VAR_0->VAR_1 <= 1)\ntimeout = VAR_0->timer1_preload;",
"else\ntimeout = VAR_0->timer2_preload;",
"if (VAR_0->clock_scale == CLOCK_SCALE_1KHZ)\ntimeout <<= 15;",
"el... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
19,
21
],
[
23,
25
],
[
29,
31
],
[
33,
35
],
[
41
],
[
45
],
[
49
],
[
51
]
] |
3,089 | static void uhci_queue_fill(UHCIQueue *q, UHCI_TD *td)
{
uint32_t int_mask = 0;
uint32_t plink = td->link;
UHCI_TD ptd;
int ret;
while (is_valid(plink)) {
uhci_read_td(q->uhci, &ptd, plink);
if (!(ptd.ctrl & TD_CTRL_ACTIVE)) {
break;
}
if (uhc... | true | qemu | 66a08cbe6ad1aebec8eecf58b3ba042e19dd1649 | static void uhci_queue_fill(UHCIQueue *q, UHCI_TD *td)
{
uint32_t int_mask = 0;
uint32_t plink = td->link;
UHCI_TD ptd;
int ret;
while (is_valid(plink)) {
uhci_read_td(q->uhci, &ptd, plink);
if (!(ptd.ctrl & TD_CTRL_ACTIVE)) {
break;
}
if (uhc... | {
"code": [
" ret = uhci_handle_td(q->uhci, q, &ptd, plink, &int_mask);"
],
"line_no": [
33
]
} | static void FUNC_0(UHCIQueue *VAR_0, UHCI_TD *VAR_1)
{
uint32_t int_mask = 0;
uint32_t plink = VAR_1->link;
UHCI_TD ptd;
int VAR_2;
while (is_valid(plink)) {
uhci_read_td(VAR_0->uhci, &ptd, plink);
if (!(ptd.ctrl & TD_CTRL_ACTIVE)) {
break;
}
... | [
"static void FUNC_0(UHCIQueue *VAR_0, UHCI_TD *VAR_1)\n{",
"uint32_t int_mask = 0;",
"uint32_t plink = VAR_1->link;",
"UHCI_TD ptd;",
"int VAR_2;",
"while (is_valid(plink)) {",
"uhci_read_td(VAR_0->uhci, &ptd, plink);",
"if (!(ptd.ctrl & TD_CTRL_ACTIVE)) {",
"break;",
"}",
"if (uhci_queue_token(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
3,090 | static int hls_write_trailer(struct AVFormatContext *s)
{
HLSContext *hls = s->priv_data;
AVFormatContext *oc = hls->avf;
av_write_trailer(oc);
hls->size = avio_tell(hls->avf->pb) - hls->start_pos;
avio_closep(&oc->pb);
avformat_free_context(oc);
av_free(hls->basename);
hls_ap... | true | FFmpeg | 530eb6acf8ee867bf00728bf7efaf505da107e17 | static int hls_write_trailer(struct AVFormatContext *s)
{
HLSContext *hls = s->priv_data;
AVFormatContext *oc = hls->avf;
av_write_trailer(oc);
hls->size = avio_tell(hls->avf->pb) - hls->start_pos;
avio_closep(&oc->pb);
avformat_free_context(oc);
av_free(hls->basename);
hls_ap... | {
"code": [
" avformat_free_context(oc);"
],
"line_no": [
17
]
} | static int FUNC_0(struct AVFormatContext *VAR_0)
{
HLSContext *hls = VAR_0->priv_data;
AVFormatContext *VAR_1 = hls->avf;
av_write_trailer(VAR_1);
hls->size = avio_tell(hls->avf->pb) - hls->start_pos;
avio_closep(&VAR_1->pb);
avformat_free_context(VAR_1);
av_free(hls->basename);
... | [
"static int FUNC_0(struct AVFormatContext *VAR_0)\n{",
"HLSContext *hls = VAR_0->priv_data;",
"AVFormatContext *VAR_1 = hls->avf;",
"av_write_trailer(VAR_1);",
"hls->size = avio_tell(hls->avf->pb) - hls->start_pos;",
"avio_closep(&VAR_1->pb);",
"avformat_free_context(VAR_1);",
"av_free(hls->basename);... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
3,091 | static int virtqueue_num_heads(VirtQueue *vq, unsigned int idx)
{
uint16_t num_heads = vring_avail_idx(vq) - idx;
/* Check it isn't doing very strange things with descriptor numbers. */
if (num_heads > vq->vring.num) {
error_report("Guest moved used index from %u to %u",
... | true | qemu | a821ce59338c79bb72dc844dd44ea53701965b2b | static int virtqueue_num_heads(VirtQueue *vq, unsigned int idx)
{
uint16_t num_heads = vring_avail_idx(vq) - idx;
if (num_heads > vq->vring.num) {
error_report("Guest moved used index from %u to %u",
idx, vring_avail_idx(vq));
exit(1);
return num_h... | {
"code": [],
"line_no": []
} | static int FUNC_0(VirtQueue *VAR_0, unsigned int VAR_1)
{
uint16_t num_heads = vring_avail_idx(VAR_0) - VAR_1;
if (num_heads > VAR_0->vring.num) {
error_report("Guest moved used index from %u to %u",
VAR_1, vring_avail_idx(VAR_0));
exit(1);
return ... | [
"static int FUNC_0(VirtQueue *VAR_0, unsigned int VAR_1)\n{",
"uint16_t num_heads = vring_avail_idx(VAR_0) - VAR_1;",
"if (num_heads > VAR_0->vring.num) {",
"error_report(\"Guest moved used index from %u to %u\",\nVAR_1, vring_avail_idx(VAR_0));",
"exit(1);",
"return num_heads;"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13,
15
],
[
17
],
[
27
]
] |
3,092 | static void xhci_port_write(void *ptr, hwaddr reg,
uint64_t val, unsigned size)
{
XHCIPort *port = ptr;
uint32_t portsc;
trace_usb_xhci_port_write(port->portnr, reg, val);
switch (reg) {
case 0x00: /* PORTSC */
portsc = port->portsc;
/* write-... | true | qemu | bdfce20df113522f389b4483ffd9d5b336e3c774 | static void xhci_port_write(void *ptr, hwaddr reg,
uint64_t val, unsigned size)
{
XHCIPort *port = ptr;
uint32_t portsc;
trace_usb_xhci_port_write(port->portnr, reg, val);
switch (reg) {
case 0x00:
portsc = port->portsc;
portsc &= ~... | {
"code": [
" uint32_t portsc;",
" uint32_t pls = get_field(val, PORTSC_PLS);",
" set_field(&portsc, pls, PORTSC_PLS);",
" trace_usb_xhci_port_link(port->portnr, pls);",
" if (val & PORTSC_PR) {",
" xhci_port_reset(port);"
],
"line_no":... | static void FUNC_0(void *VAR_0, hwaddr VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
XHCIPort *port = VAR_0;
uint32_t portsc;
trace_usb_xhci_port_write(port->portnr, VAR_1, VAR_2);
switch (VAR_1) {
case 0x00:
portsc = port->portsc;
ports... | [
"static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"XHCIPort *port = VAR_0;",
"uint32_t portsc;",
"trace_usb_xhci_port_write(port->portnr, VAR_1, VAR_2);",
"switch (VAR_1) {",
"case 0x00:\nportsc = port->portsc;",
"portsc &= ~(VAR_2 & (PORTSC_CSC|PORTSC_PEC|PORTSC_WRC|P... | [
0,
0,
1,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19,
21
],
[
25,
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
[... |
3,093 | static void nbd_restart_write(void *opaque)
{
BlockDriverState *bs = opaque;
qemu_coroutine_enter(nbd_get_client_session(bs)->send_coroutine, NULL);
}
| true | qemu | 0b8b8753e4d94901627b3e86431230f2319215c4 | static void nbd_restart_write(void *opaque)
{
BlockDriverState *bs = opaque;
qemu_coroutine_enter(nbd_get_client_session(bs)->send_coroutine, NULL);
}
| {
"code": [
" qemu_coroutine_enter(nbd_get_client_session(bs)->send_coroutine, NULL);"
],
"line_no": [
9
]
} | static void FUNC_0(void *VAR_0)
{
BlockDriverState *bs = VAR_0;
qemu_coroutine_enter(nbd_get_client_session(bs)->send_coroutine, NULL);
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"BlockDriverState *bs = VAR_0;",
"qemu_coroutine_enter(nbd_get_client_session(bs)->send_coroutine, NULL);",
"}"
] | [
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
3,094 | static int rtp_write_header(AVFormatContext *s1)
{
RTPMuxContext *s = s1->priv_data;
int max_packet_size, n;
AVStream *st;
if (s1->nb_streams != 1)
return -1;
st = s1->streams[0];
if (!is_supported(st->codec->codec_id)) {
av_log(s1, AV_LOG_ERROR, "Unsupported codec %x\... | true | FFmpeg | 2d31d890bfce103512dca34e35815762eb61b5da | static int rtp_write_header(AVFormatContext *s1)
{
RTPMuxContext *s = s1->priv_data;
int max_packet_size, n;
AVStream *st;
if (s1->nb_streams != 1)
return -1;
st = s1->streams[0];
if (!is_supported(st->codec->codec_id)) {
av_log(s1, AV_LOG_ERROR, "Unsupported codec %x\... | {
"code": [
" s->max_frames_per_packet = av_rescale_rnd(s1->max_delay, st->codec->sample_rate, AV_TIME_BASE * st->codec->frame_size, AV_ROUND_DOWN);"
],
"line_no": [
87
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
RTPMuxContext *s = VAR_0->priv_data;
int VAR_1, VAR_2;
AVStream *st;
if (VAR_0->nb_streams != 1)
return -1;
st = VAR_0->streams[0];
if (!is_supported(st->codec->codec_id)) {
av_log(VAR_0, AV_LOG_ERROR, "Unsupported codec %x\V... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"RTPMuxContext *s = VAR_0->priv_data;",
"int VAR_1, VAR_2;",
"AVStream *st;",
"if (VAR_0->nb_streams != 1)\nreturn -1;",
"st = VAR_0->streams[0];",
"if (!is_supported(st->codec->codec_id)) {",
"av_log(VAR_0, AV_LOG_ERROR, \"Unsupported codec %x\\VAR_2\",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
51,
53
... |
3,095 | PPC_OP(mulhwu)
{
T0 = ((uint64_t)T0 * (uint64_t)T1) >> 32;
RETURN();
}
| true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | PPC_OP(mulhwu)
{
T0 = ((uint64_t)T0 * (uint64_t)T1) >> 32;
RETURN();
}
| {
"code": [
" RETURN();",
"PPC_OP(mulhwu)",
" T0 = ((uint64_t)T0 * (uint64_t)T1) >> 32;",
" RETURN();"
],
"line_no": [
7,
1,
5,
7
]
} | FUNC_0(VAR_0)
{
T0 = ((uint64_t)T0 * (uint64_t)T1) >> 32;
RETURN();
}
| [
"FUNC_0(VAR_0)\n{",
"T0 = ((uint64_t)T0 * (uint64_t)T1) >> 32;",
"RETURN();",
"}"
] | [
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
3,096 | static int qsv_decode_init(AVCodecContext *avctx, QSVContext *q, AVPacket *avpkt)
{
mfxVideoParam param = { { 0 } };
mfxBitstream bs = { { { 0 } } };
int ret;
enum AVPixelFormat pix_fmts[3] = { AV_PIX_FMT_QSV,
AV_PIX_FMT_NV12,
... | true | FFmpeg | b4054100f675b395204f1a0471fba0b06fe08e9f | static int qsv_decode_init(AVCodecContext *avctx, QSVContext *q, AVPacket *avpkt)
{
mfxVideoParam param = { { 0 } };
mfxBitstream bs = { { { 0 } } };
int ret;
enum AVPixelFormat pix_fmts[3] = { AV_PIX_FMT_QSV,
AV_PIX_FMT_NV12,
... | {
"code": [
" (sizeof(mfxSyncPoint*) + sizeof(QSVFrame*)));",
" } else {"
],
"line_no": [
187,
147
]
} | static int FUNC_0(AVCodecContext *VAR_0, QSVContext *VAR_1, AVPacket *VAR_2)
{
mfxVideoParam param = { { 0 } };
mfxBitstream bs = { { { 0 } } };
int VAR_3;
enum AVPixelFormat VAR_4[3] = { AV_PIX_FMT_QSV,
AV_PIX_FMT_NV12,
... | [
"static int FUNC_0(AVCodecContext *VAR_0, QSVContext *VAR_1, AVPacket *VAR_2)\n{",
"mfxVideoParam param = { { 0 } };",
"mfxBitstream bs = { { { 0 } } };",
"int VAR_3;",
"enum AVPixelFormat VAR_4[3] = { AV_PIX_FMT_QSV,",
"AV_PIX_FMT_NV12,\nAV_PIX_FMT_NONE };",
"VAR_3 = ff_get_format(VAR_0, 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,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
19
],
[
21,
23
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
3,097 | static int compat_read(AVFilterContext *ctx, AVFilterBufferRef **pbuf, int nb_samples, int flags)
{
AVFilterBufferRef *buf;
AVFrame *frame;
int ret;
if (!pbuf)
return ff_poll_frame(ctx->inputs[0]);
frame = av_frame_alloc();
if (!frame)
return AVERROR(ENOMEM);
... | true | FFmpeg | d8dccf69ff2df7014a2bb8e0e17828a820f45b27 | static int compat_read(AVFilterContext *ctx, AVFilterBufferRef **pbuf, int nb_samples, int flags)
{
AVFilterBufferRef *buf;
AVFrame *frame;
int ret;
if (!pbuf)
return ff_poll_frame(ctx->inputs[0]);
frame = av_frame_alloc();
if (!frame)
return AVERROR(ENOMEM);
... | {
"code": [
"static int compat_read(AVFilterContext *ctx, AVFilterBufferRef **pbuf, int nb_samples, int flags)"
],
"line_no": [
1
]
} | static int FUNC_0(AVFilterContext *VAR_0, AVFilterBufferRef **VAR_1, int VAR_2, int VAR_3)
{
AVFilterBufferRef *buf;
AVFrame *frame;
int VAR_4;
if (!VAR_1)
return ff_poll_frame(VAR_0->inputs[0]);
frame = av_frame_alloc();
if (!frame)
return AVERROR(ENOMEM);
if... | [
"static int FUNC_0(AVFilterContext *VAR_0, AVFilterBufferRef **VAR_1, int VAR_2, int VAR_3)\n{",
"AVFilterBufferRef *buf;",
"AVFrame *frame;",
"int VAR_4;",
"if (!VAR_1)\nreturn ff_poll_frame(VAR_0->inputs[0]);",
"frame = av_frame_alloc();",
"if (!frame)\nreturn AVERROR(ENOMEM);",
"if (!VAR_2)\nVAR_4 ... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
19
],
[
21,
23
],
[
27,
29
],
[
31,
33
],
[
37,
39
],
[
43
],
[
45,
47,
49,
51
],
[
53
],
[
55,
57,
59,
61,
63
... |
3,099 | yuv2yuvX16_c_template(const int16_t *lumFilter, const int32_t **lumSrc,
int lumFilterSize, const int16_t *chrFilter,
const int32_t **chrUSrc, const int32_t **chrVSrc,
int chrFilterSize, const int32_t **alpSrc,
uint16_t *dest[4],... | true | FFmpeg | 93a10dd56121862fab13aa6676227673c534cc12 | yuv2yuvX16_c_template(const int16_t *lumFilter, const int32_t **lumSrc,
int lumFilterSize, const int16_t *chrFilter,
const int32_t **chrUSrc, const int32_t **chrVSrc,
int chrFilterSize, const int32_t **alpSrc,
uint16_t *dest[4],... | {
"code": [
" int shift = 11 + 4*dword + 16 - output_bits;",
" int val = 1 << (26-output_bits + 4*dword);",
" val += (dword ? lumSrc[j][i] : ((int16_t**)lumSrc)[j][i]) * lumFilter[j];",
" int u = 1 << (26-output_bits + 4*dword);",
" int v = 1 << (26-outpu... | FUNC_0(const int16_t *VAR_0, const int32_t **VAR_1,
int VAR_2, const int16_t *VAR_3,
const int32_t **VAR_4, const int32_t **VAR_5,
int VAR_6, const int32_t **VAR_7,
uint16_t *VAR_8[4], int VAR_9, int VAR_10,
... | [
"FUNC_0(const int16_t *VAR_0, const int32_t **VAR_1,\nint VAR_2, const int16_t *VAR_3,\nconst int32_t **VAR_4, const int32_t **VAR_5,\nint VAR_6, const int32_t **VAR_7,\nuint16_t *VAR_8[4], int VAR_9, int VAR_10,\nint VAR_11, int VAR_12)\n{",
"int VAR_13;",
"int VAR_14= VAR_12 == 16;",
"uint16_t *yDest = VAR_... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
3,100 | void tb_phys_invalidate(TranslationBlock *tb, tb_page_addr_t page_addr)
{
CPUState *cpu;
PageDesc *p;
uint32_t h;
tb_page_addr_t phys_pc;
assert_tb_locked();
atomic_set(&tb->cflags, tb->cflags | CF_INVALID);
/* remove the TB from the hash list */
phys_pc = tb->page_addr[0]... | true | qemu | cc689485ee3e9dca05765326ee8fd619a6ec48f0 | void tb_phys_invalidate(TranslationBlock *tb, tb_page_addr_t page_addr)
{
CPUState *cpu;
PageDesc *p;
uint32_t h;
tb_page_addr_t phys_pc;
assert_tb_locked();
atomic_set(&tb->cflags, tb->cflags | CF_INVALID);
phys_pc = tb->page_addr[0] + (tb->pc & ~TARGET_PAGE_MASK);
... | {
"code": [
" qht_remove(&tb_ctx.htable, tb, h);"
],
"line_no": [
31
]
} | void FUNC_0(TranslationBlock *VAR_0, tb_page_addr_t VAR_1)
{
CPUState *cpu;
PageDesc *p;
uint32_t h;
tb_page_addr_t phys_pc;
assert_tb_locked();
atomic_set(&VAR_0->cflags, VAR_0->cflags | CF_INVALID);
phys_pc = VAR_0->VAR_1[0] + (VAR_0->pc & ~TARGET_PAGE_MASK);
h = t... | [
"void FUNC_0(TranslationBlock *VAR_0, tb_page_addr_t VAR_1)\n{",
"CPUState *cpu;",
"PageDesc *p;",
"uint32_t h;",
"tb_page_addr_t phys_pc;",
"assert_tb_locked();",
"atomic_set(&VAR_0->cflags, VAR_0->cflags | CF_INVALID);",
"phys_pc = VAR_0->VAR_1[0] + (VAR_0->pc & ~TARGET_PAGE_MASK);",
"h = tb_hash_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
25
],
[
27,
29
],
[
31
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[... |
3,101 | iscsi_synccache10_cb(struct iscsi_context *iscsi, int status,
void *command_data, void *opaque)
{
IscsiAIOCB *acb = opaque;
if (acb->canceled != 0) {
qemu_aio_release(acb);
scsi_free_scsi_task(acb->task);
acb->task = NULL;
return;
}
acb-... | true | qemu | 1bd075f29ea6d11853475c7c42734595720c3ac6 | iscsi_synccache10_cb(struct iscsi_context *iscsi, int status,
void *command_data, void *opaque)
{
IscsiAIOCB *acb = opaque;
if (acb->canceled != 0) {
qemu_aio_release(acb);
scsi_free_scsi_task(acb->task);
acb->task = NULL;
return;
}
acb-... | {
"code": [
" qemu_aio_release(acb);",
" scsi_free_scsi_task(acb->task);",
" acb->task = NULL;",
" scsi_free_scsi_task(acb->task);",
" acb->task = NULL;",
" qemu_aio_release(acb);",
" scsi_free_scsi_task(acb->task);",
" acb->task = NULL;"... | FUNC_0(struct iscsi_context *VAR_0, int VAR_1,
void *VAR_2, void *VAR_3)
{
IscsiAIOCB *acb = VAR_3;
if (acb->canceled != 0) {
qemu_aio_release(acb);
scsi_free_scsi_task(acb->task);
acb->task = NULL;
return;
}
acb->VAR_1 = 0;
if (VAR... | [
"FUNC_0(struct iscsi_context *VAR_0, int VAR_1,\nvoid *VAR_2, void *VAR_3)\n{",
"IscsiAIOCB *acb = VAR_3;",
"if (acb->canceled != 0) {",
"qemu_aio_release(acb);",
"scsi_free_scsi_task(acb->task);",
"acb->task = NULL;",
"return;",
"}",
"acb->VAR_1 = 0;",
"if (VAR_1 < 0) {",
"error_report(\"Failed... | [
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
]
] |
3,102 | static void spectral_to_sample(AACContext *ac)
{
int i, type;
void (*imdct_and_window)(AACContext *ac, SingleChannelElement *sce);
switch (ac->oc[1].m4ac.object_type) {
case AOT_ER_AAC_LD:
imdct_and_window = imdct_and_windowing_ld;
break;
case AOT_ER_AAC_ELD:
imdct_a... | true | FFmpeg | fee7c42bf45f72d457fafaee536f054ce59e4ec5 | static void spectral_to_sample(AACContext *ac)
{
int i, type;
void (*imdct_and_window)(AACContext *ac, SingleChannelElement *sce);
switch (ac->oc[1].m4ac.object_type) {
case AOT_ER_AAC_LD:
imdct_and_window = imdct_and_windowing_ld;
break;
case AOT_ER_AAC_ELD:
imdct_a... | {
"code": [
"static void spectral_to_sample(AACContext *ac)",
" for(j = 0; j<2048; j++){"
],
"line_no": [
1,
109
]
} | static void FUNC_0(AACContext *VAR_4)
{
int VAR_1, VAR_2;
void (*VAR_3)(AACContext *VAR_4, SingleChannelElement *VAR_4);
switch (VAR_4->oc[1].m4ac.object_type) {
case AOT_ER_AAC_LD:
VAR_3 = imdct_and_windowing_ld;
break;
case AOT_ER_AAC_ELD:
VAR_3 = imdct_and_windowi... | [
"static void FUNC_0(AACContext *VAR_4)\n{",
"int VAR_1, VAR_2;",
"void (*VAR_3)(AACContext *VAR_4, SingleChannelElement *VAR_4);",
"switch (VAR_4->oc[1].m4ac.object_type) {",
"case AOT_ER_AAC_LD:\nVAR_3 = imdct_and_windowing_ld;",
"break;",
"case AOT_ER_AAC_ELD:\nVAR_3 = imdct_and_windowing_eld;",
"br... | [
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,
1,
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,... |
3,103 | void qmp_guest_set_user_password(const char *username,
const char *password,
bool crypted,
Error **errp)
{
NET_API_STATUS nas;
char *rawpasswddata = NULL;
size_t rawpasswdlen;
wchar_t *user, *wpass... | true | qemu | 8021de10131868a8857e64b91cf0a868b76a61d8 | void qmp_guest_set_user_password(const char *username,
const char *password,
bool crypted,
Error **errp)
{
NET_API_STATUS nas;
char *rawpasswddata = NULL;
size_t rawpasswdlen;
wchar_t *user, *wpass... | {
"code": [
" wchar_t *user, *wpass;",
" user = g_utf8_to_utf16(username, -1, NULL, NULL, NULL);",
" wpass = g_utf8_to_utf16(rawpasswddata, -1, NULL, NULL, NULL);"
],
"line_no": [
17,
47,
49
]
} | void FUNC_0(const char *VAR_0,
const char *VAR_1,
bool VAR_2,
Error **VAR_3)
{
NET_API_STATUS nas;
char *VAR_4 = NULL;
size_t rawpasswdlen;
wchar_t *user, *wpass;
USER_INFO_1003 pi1003 = { 0, ... | [
"void FUNC_0(const char *VAR_0,\nconst char *VAR_1,\nbool VAR_2,\nError **VAR_3)\n{",
"NET_API_STATUS nas;",
"char *VAR_4 = NULL;",
"size_t rawpasswdlen;",
"wchar_t *user, *wpass;",
"USER_INFO_1003 pi1003 = { 0, };",
"if (VAR_2) {",
"error_setg(VAR_3, QERR_UNSUPPORTED);",
"return;",
"}",
"VAR_4 ... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
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
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[... |
3,104 | static inline void RENAME(hyscale_fast)(SwsContext *c, int16_t *dst,
long dstWidth, const uint8_t *src, int srcW,
int xInc)
{
int32_t *filterPos = c->hLumFilterPos;
int16_t *filter = c->hLumFilter;
int canMMX2BeUsed... | true | FFmpeg | 39d607e5bbc25ad9629683702b510e865434ef21 | static inline void RENAME(hyscale_fast)(SwsContext *c, int16_t *dst,
long dstWidth, const uint8_t *src, int srcW,
int xInc)
{
int32_t *filterPos = c->hLumFilterPos;
int16_t *filter = c->hLumFilter;
int canMMX2BeUsed... | {
"code": [
" int canMMX2BeUsed = c->canMMX2BeUsed;",
" int canMMX2BeUsed = c->canMMX2BeUsed;"
],
"line_no": [
13,
13
]
} | static inline void FUNC_0(hyscale_fast)(SwsContext *c, int16_t *dst,
long dstWidth, const uint8_t *src, int srcW,
int xInc)
{
int32_t *filterPos = c->hLumFilterPos;
int16_t *filter = c->hLumFilter;
int VAR_0 = c->V... | [
"static inline void FUNC_0(hyscale_fast)(SwsContext *c, int16_t *dst,\nlong dstWidth, const uint8_t *src, int srcW,\nint xInc)\n{",
"int32_t *filterPos = c->hLumFilterPos;",
"int16_t *filter = c->hLumFilter;",
"int VAR_0 = c->VAR_0;",
"void *VAR_1= c->lumMmx2FilterCode;",
"int VAR_2;",
"#if d... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
55,
57,
59,
61,
63,
65,
67,
69,... |
3,107 | static uint64_t imx_serial_read(void *opaque, hwaddr offset,
unsigned size)
{
IMXSerialState *s = (IMXSerialState *)opaque;
uint32_t c;
DPRINTF("read(offset=%x)\n", offset >> 2);
switch (offset >> 2) {
case 0x0: /* URXD */
c = s->readbuff;
i... | true | qemu | f7a6785e12d834d05200b0595070db453344b25d | static uint64_t imx_serial_read(void *opaque, hwaddr offset,
unsigned size)
{
IMXSerialState *s = (IMXSerialState *)opaque;
uint32_t c;
DPRINTF("read(offset=%x)\n", offset >> 2);
switch (offset >> 2) {
case 0x0:
c = s->readbuff;
if (!(s->ut... | {
"code": [
" qemu_chr_accept_input(s->chr);"
],
"line_no": [
35
]
} | static uint64_t FUNC_0(void *opaque, hwaddr offset,
unsigned size)
{
IMXSerialState *s = (IMXSerialState *)opaque;
uint32_t c;
DPRINTF("read(offset=%x)\n", offset >> 2);
switch (offset >> 2) {
case 0x0:
c = s->readbuff;
if (!(s->uts1 & UTS1... | [
"static uint64_t FUNC_0(void *opaque, hwaddr offset,\nunsigned size)\n{",
"IMXSerialState *s = (IMXSerialState *)opaque;",
"uint32_t c;",
"DPRINTF(\"read(offset=%x)\\n\", offset >> 2);",
"switch (offset >> 2) {",
"case 0x0:\nc = s->readbuff;",
"if (!(s->uts1 & UTS1_RXEMPTY)) {",
"c |= URXD_CHARRDY;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43,
45
],
[
49,
51
],
[
55,... |
3,108 | static int display_end_segment(AVCodecContext *avctx, void *data,
const uint8_t *buf, int buf_size)
{
AVSubtitle *sub = data;
PGSSubContext *ctx = avctx->priv_data;
/*
* The end display time is a timeout value and is only reached
* if the next s... | false | FFmpeg | 3ee8ca9b0894df3aaf5086c643283cb58ef9763d | static int display_end_segment(AVCodecContext *avctx, void *data,
const uint8_t *buf, int buf_size)
{
AVSubtitle *sub = data;
PGSSubContext *ctx = avctx->priv_data;
memset(sub, 0, sizeof(*sub));
if (!ctx->presentation.object_number)
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
const uint8_t *VAR_2, int VAR_3)
{
AVSubtitle *sub = VAR_1;
PGSSubContext *ctx = VAR_0->priv_data;
memset(sub, 0, sizeof(*sub));
if (!ctx->presentation.object_number)
retu... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{",
"AVSubtitle *sub = VAR_1;",
"PGSSubContext *ctx = VAR_0->priv_data;",
"memset(sub, 0, sizeof(*sub));",
"if (!ctx->presentation.object_number)\nreturn 1;",
"sub->start_display_time = 0;",
"sub->end_display_ti... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
25
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
65
],
[
69
],
[
71,... |
3,109 | static int mov_write_tkhd_tag(AVIOContext *pb, MOVMuxContext *mov,
MOVTrack *track, AVStream *st)
{
int64_t duration = av_rescale_rnd(track->track_duration, MOV_TIMESCALE,
track->timescale, AV_ROUND_UP);
int version = duration < INT32_MAX ... | false | FFmpeg | 061a592b9cb0071d624d230ddb5d00a640df05d1 | static int mov_write_tkhd_tag(AVIOContext *pb, MOVMuxContext *mov,
MOVTrack *track, AVStream *st)
{
int64_t duration = av_rescale_rnd(track->track_duration, MOV_TIMESCALE,
track->timescale, AV_ROUND_UP);
int version = duration < INT32_MAX ... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1,
MOVTrack *VAR_2, AVStream *VAR_3)
{
int64_t duration = av_rescale_rnd(VAR_2->track_duration, MOV_TIMESCALE,
VAR_2->timescale, AV_ROUND_UP);
int VAR_4 = duration < INT32_MAX ? 0 : ... | [
"static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1,\nMOVTrack *VAR_2, AVStream *VAR_3)\n{",
"int64_t duration = av_rescale_rnd(VAR_2->track_duration, MOV_TIMESCALE,\nVAR_2->timescale, AV_ROUND_UP);",
"int VAR_4 = duration < INT32_MAX ? 0 : 1;",
"int VAR_5 = MOV_TKHD_FLAG_IN_MOVIE;",
"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
],
[
21
],
[
23
],
[
27
],
[
29,
31
],
[
33,
35
],
[
39,
41
],
[
43,
45
],
[
47
],
[
51,
53
],
[
57,
59
... |
3,110 | static int decode_type1(GetByteContext *gb, PutByteContext *pb)
{
unsigned opcode, len;
int high = 0;
int i, pos;
while (bytestream2_get_bytes_left(gb) > 0) {
GetByteContext gbc;
while (bytestream2_get_bytes_left(gb) > 0) {
while (bytestream2_get_bytes_left(gb) > ... | false | FFmpeg | c583e701bd527eb9635bd8f1d22b06696b3e2b3d | static int decode_type1(GetByteContext *gb, PutByteContext *pb)
{
unsigned opcode, len;
int high = 0;
int i, pos;
while (bytestream2_get_bytes_left(gb) > 0) {
GetByteContext gbc;
while (bytestream2_get_bytes_left(gb) > 0) {
while (bytestream2_get_bytes_left(gb) > ... | {
"code": [],
"line_no": []
} | static int FUNC_0(GetByteContext *VAR_0, PutByteContext *VAR_1)
{
unsigned VAR_2, VAR_3;
int VAR_4 = 0;
int VAR_5, VAR_6;
while (bytestream2_get_bytes_left(VAR_0) > 0) {
GetByteContext gbc;
while (bytestream2_get_bytes_left(VAR_0) > 0) {
while (bytestream2_get_byt... | [
"static int FUNC_0(GetByteContext *VAR_0, PutByteContext *VAR_1)\n{",
"unsigned VAR_2, VAR_3;",
"int VAR_4 = 0;",
"int VAR_5, VAR_6;",
"while (bytestream2_get_bytes_left(VAR_0) > 0) {",
"GetByteContext gbc;",
"while (bytestream2_get_bytes_left(VAR_0) > 0) {",
"while (bytestream2_get_bytes_left(VAR_0) ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
3,111 | void ff_avg_h264_qpel8_mc33_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_hv_qrt_and_aver_dst_8x8_msa(src + stride - 2,
src - (stride * 2) +
sizeof(uint8_t), stride, dst, strid... | false | FFmpeg | 1181d93231e9b807965724587d363c1cfd5a1d0d | void ff_avg_h264_qpel8_mc33_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_hv_qrt_and_aver_dst_8x8_msa(src + stride - 2,
src - (stride * 2) +
sizeof(uint8_t), stride, dst, strid... | {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,
ptrdiff_t VAR_2)
{
avc_luma_hv_qrt_and_aver_dst_8x8_msa(VAR_1 + VAR_2 - 2,
VAR_1 - (VAR_2 * 2) +
sizeof(uint8_t), VAR_2, VAR_0, VAR_2);
}
| [
"void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{",
"avc_luma_hv_qrt_and_aver_dst_8x8_msa(VAR_1 + VAR_2 - 2,\nVAR_1 - (VAR_2 * 2) +\nsizeof(uint8_t), VAR_2, VAR_0, VAR_2);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9,
11
],
[
13
]
] |
3,112 | static int check_recording_time(OutputStream *ost)
{
OutputFile *of = output_files[ost->file_index];
if (of->recording_time != INT64_MAX &&
av_compare_ts(ost->sync_opts - ost->first_pts, ost->st->codec->time_base, of->recording_time,
AV_TIME_BASE_Q) >= 0) {
ost->is_... | false | FFmpeg | 57d24225595af78b0fd836d4d145f5d181e320a2 | static int check_recording_time(OutputStream *ost)
{
OutputFile *of = output_files[ost->file_index];
if (of->recording_time != INT64_MAX &&
av_compare_ts(ost->sync_opts - ost->first_pts, ost->st->codec->time_base, of->recording_time,
AV_TIME_BASE_Q) >= 0) {
ost->is_... | {
"code": [],
"line_no": []
} | static int FUNC_0(OutputStream *VAR_0)
{
OutputFile *of = output_files[VAR_0->file_index];
if (of->recording_time != INT64_MAX &&
av_compare_ts(VAR_0->sync_opts - VAR_0->first_pts, VAR_0->st->codec->time_base, of->recording_time,
AV_TIME_BASE_Q) >= 0) {
VAR_0->is_pa... | [
"static int FUNC_0(OutputStream *VAR_0)\n{",
"OutputFile *of = output_files[VAR_0->file_index];",
"if (of->recording_time != INT64_MAX &&\nav_compare_ts(VAR_0->sync_opts - VAR_0->first_pts, VAR_0->st->codec->time_base, of->recording_time,\nAV_TIME_BASE_Q) >= 0) {",
"VAR_0->is_past_recording_time = 1;",
"ret... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
3,113 | static void chs_filter_band_data(DCAXllDecoder *s, DCAXllChSet *c, int band)
{
DCAXllBand *b = &c->bands[band];
int nsamples = s->nframesamples;
int i, j, k;
// Inverse adaptive or fixed prediction
for (i = 0; i < c->nchannels; i++) {
int32_t *buf = b->msb_sample_buffer[i];
... | true | FFmpeg | f4c2302ee24d8a6a31226acca48fe9caed597a8c | static void chs_filter_band_data(DCAXllDecoder *s, DCAXllChSet *c, int band)
{
DCAXllBand *b = &c->bands[band];
int nsamples = s->nframesamples;
int i, j, k;
for (i = 0; i < c->nchannels; i++) {
int32_t *buf = b->msb_sample_buffer[i];
int order = b->adapt_pred_order[i];
... | {
"code": [
" buf[k] += buf[k - 1];"
],
"line_no": [
69
]
} | static void FUNC_0(DCAXllDecoder *VAR_0, DCAXllChSet *VAR_1, int VAR_2)
{
DCAXllBand *b = &VAR_1->bands[VAR_2];
int VAR_3 = VAR_0->nframesamples;
int VAR_4, VAR_5, VAR_6;
for (VAR_4 = 0; VAR_4 < VAR_1->nchannels; VAR_4++) {
int32_t *buf = b->msb_sample_buffer[VAR_4];
int o... | [
"static void FUNC_0(DCAXllDecoder *VAR_0, DCAXllChSet *VAR_1, int VAR_2)\n{",
"DCAXllBand *b = &VAR_1->bands[VAR_2];",
"int VAR_3 = VAR_0->nframesamples;",
"int VAR_4, VAR_5, VAR_6;",
"for (VAR_4 = 0; VAR_4 < VAR_1->nchannels; VAR_4++) {",
"int32_t *buf = b->msb_sample_buffer[VAR_4];",
"int order = b->a... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
... |
3,114 | void ff_ivi_recompose53(const IVIPlaneDesc *plane, uint8_t *dst,
const int dst_pitch, const int num_bands)
{
int x, y, indx;
int32_t p0, p1, p2, p3, tmp0, tmp1, tmp2;
int32_t b0_1, b0_2, b1_1, b1_2, b1_3, b2_1, b2_2, b2_3, b2_4, b2_5, b2_6;
int32_t ... | true | FFmpeg | 12038ab16da2f9e007c5f3a5bacc19e61f8edfd8 | void ff_ivi_recompose53(const IVIPlaneDesc *plane, uint8_t *dst,
const int dst_pitch, const int num_bands)
{
int x, y, indx;
int32_t p0, p1, p2, p3, tmp0, tmp1, tmp2;
int32_t b0_1, b0_2, b1_1, b1_2, b1_3, b2_1, b2_2, b2_3, b2_4, b2_5, b2_6;
int32_t ... | {
"code": [],
"line_no": []
} | void FUNC_0(const IVIPlaneDesc *VAR_0, uint8_t *VAR_1,
const int VAR_2, const int VAR_3)
{
int VAR_4, VAR_5, VAR_6;
int32_t p0, p1, p2, p3, tmp0, tmp1, tmp2;
int32_t b0_1, b0_2, b1_1, b1_2, b1_3, b2_1, b2_2, b2_3, b2_4, b2_5, b2_6;
int32_t b3_1... | [
"void FUNC_0(const IVIPlaneDesc *VAR_0, uint8_t *VAR_1,\nconst int VAR_2, const int VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6;",
"int32_t p0, p1, p2, p3, tmp0, tmp1, tmp2;",
"int32_t b0_1, b0_2, b1_1, b1_2, b1_3, b2_1, b2_2, b2_3, b2_4, b2_5, b2_6;",
"int32_t b3_1, b3_2, b3_3,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
11
],
[
13
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
21
],
[
22
],
[
23
],
[
24
],
[
25
],
[
... |
3,115 | static void megasas_mmio_write(void *opaque, hwaddr addr,
uint64_t val, unsigned size)
{
MegasasState *s = opaque;
PCIDevice *pci_dev = PCI_DEVICE(s);
uint64_t frame_addr;
uint32_t frame_count;
int i;
switch (addr) {
case MFI_IDB:
trace_mega... | true | qemu | 24dfa9fa2f90a95ac33c7372de4f4f2c8a2c141f | static void megasas_mmio_write(void *opaque, hwaddr addr,
uint64_t val, unsigned size)
{
MegasasState *s = opaque;
PCIDevice *pci_dev = PCI_DEVICE(s);
uint64_t frame_addr;
uint32_t frame_count;
int i;
switch (addr) {
case MFI_IDB:
trace_mega... | {
"code": [
" if (adp_reset_seq[s->adp_reset] == val) {",
" s->adp_reset++;",
" if (s->adp_reset == 6) {",
" s->diag = MFI_DIAG_WRITE_ENABLE;"
],
"line_no": [
175,
177,
187,
189
]
} | static void FUNC_0(void *VAR_0, hwaddr VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
MegasasState *s = VAR_0;
PCIDevice *pci_dev = PCI_DEVICE(s);
uint64_t frame_addr;
uint32_t frame_count;
int VAR_4;
switch (VAR_1) {
case MFI_IDB:
trace_megasas_m... | [
"static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"MegasasState *s = VAR_0;",
"PCIDevice *pci_dev = PCI_DEVICE(s);",
"uint64_t frame_addr;",
"uint32_t frame_count;",
"int VAR_4;",
"switch (VAR_1) {",
"case MFI_IDB:\ntrace_megasas_mmio_writel(\"MFI_IDB\", VAR_2);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
... |
3,116 | static void decode_mode(AVCodecContext *ctx)
{
static const uint8_t left_ctx[N_BS_SIZES] = {
0x0, 0x8, 0x0, 0x8, 0xc, 0x8, 0xc, 0xe, 0xc, 0xe, 0xf, 0xe, 0xf
};
static const uint8_t above_ctx[N_BS_SIZES] = {
0x0, 0x0, 0x8, 0x8, 0x8, 0xc, 0xc, 0xc, 0xe, 0xe, 0xe, 0xf, 0xf
};
st... | true | FFmpeg | 0c67864a37a5a6dee19341da6e6cfa369c52d1db | static void decode_mode(AVCodecContext *ctx)
{
static const uint8_t left_ctx[N_BS_SIZES] = {
0x0, 0x8, 0x0, 0x8, 0xc, 0x8, 0xc, 0xe, 0xc, 0xe, 0xf, 0xe, 0xf
};
static const uint8_t above_ctx[N_BS_SIZES] = {
0x0, 0x0, 0x8, 0x8, 0x8, 0xc, 0xc, 0xc, 0xe, 0xe, 0xe, 0xf, 0xf
};
st... | {
"code": [
" if (!s->segmentation.enabled) {",
" b->seg_id = s->segmentation.update_map ?",
" vp8_rac_get_tree(&s->c, vp9_segmentation_tree, s->prob.seg) : 0;"
],
"line_no": [
41,
47,
49
]
} | static void FUNC_0(AVCodecContext *VAR_0)
{
static const uint8_t VAR_1[N_BS_SIZES] = {
0x0, 0x8, 0x0, 0x8, 0xc, 0x8, 0xc, 0xe, 0xc, 0xe, 0xf, 0xe, 0xf
};
static const uint8_t VAR_2[N_BS_SIZES] = {
0x0, 0x0, 0x8, 0x8, 0x8, 0xc, 0xc, 0xc, 0xe, 0xe, 0xe, 0xf, 0xf
};
static const... | [
"static void FUNC_0(AVCodecContext *VAR_0)\n{",
"static const uint8_t VAR_1[N_BS_SIZES] = {",
"0x0, 0x8, 0x0, 0x8, 0xc, 0x8, 0xc, 0xe, 0xc, 0xe, 0xf, 0xe, 0xf\n};",
"static const uint8_t VAR_2[N_BS_SIZES] = {",
"0x0, 0x0, 0x8, 0x8, 0x8, 0xc, 0xc, 0xc, 0xe, 0xe, 0xe, 0xf, 0xf\n};",
"static const uint8_t VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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
],
[
45
],
[
47,... |
3,118 | int do_subchannel_work_virtual(SubchDev *sch)
{
SCSW *s = &sch->curr_status.scsw;
if (s->ctrl & SCSW_FCTL_CLEAR_FUNC) {
sch_handle_clear_func(sch);
} else if (s->ctrl & SCSW_FCTL_HALT_FUNC) {
sch_handle_halt_func(sch);
} else if (s->ctrl & SCSW_FCTL_START_FUNC) {
/* T... | true | qemu | 66dc50f7057b9a0191f54e55764412202306858d | int do_subchannel_work_virtual(SubchDev *sch)
{
SCSW *s = &sch->curr_status.scsw;
if (s->ctrl & SCSW_FCTL_CLEAR_FUNC) {
sch_handle_clear_func(sch);
} else if (s->ctrl & SCSW_FCTL_HALT_FUNC) {
sch_handle_halt_func(sch);
} else if (s->ctrl & SCSW_FCTL_START_FUNC) {
... | {
"code": [
"int do_subchannel_work_virtual(SubchDev *sch)",
" return 0;"
],
"line_no": [
1,
29
]
} | int FUNC_0(SubchDev *VAR_0)
{
SCSW *s = &VAR_0->curr_status.scsw;
if (s->ctrl & SCSW_FCTL_CLEAR_FUNC) {
sch_handle_clear_func(VAR_0);
} else if (s->ctrl & SCSW_FCTL_HALT_FUNC) {
sch_handle_halt_func(VAR_0);
} else if (s->ctrl & SCSW_FCTL_START_FUNC) {
sch_ha... | [
"int FUNC_0(SubchDev *VAR_0)\n{",
"SCSW *s = &VAR_0->curr_status.scsw;",
"if (s->ctrl & SCSW_FCTL_CLEAR_FUNC) {",
"sch_handle_clear_func(VAR_0);",
"} else if (s->ctrl & SCSW_FCTL_HALT_FUNC) {",
"sch_handle_halt_func(VAR_0);",
"} else if (s->ctrl & SCSW_FCTL_START_FUNC) {",
"sch_handle_start_func_virtu... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
3,119 | static int seg_write_header(AVFormatContext *s)
{
SegmentContext *seg = s->priv_data;
AVFormatContext *oc = NULL;
int ret, i;
seg->segment_count = 0;
if (!seg->write_header_trailer)
seg->individual_header_trailer = 0;
if (seg->time_str && seg->times_str) {
av_log(s, ... | true | FFmpeg | 30d27685b177c055f7540a6c809cf81acb22cc78 | static int seg_write_header(AVFormatContext *s)
{
SegmentContext *seg = s->priv_data;
AVFormatContext *oc = NULL;
int ret, i;
seg->segment_count = 0;
if (!seg->write_header_trailer)
seg->individual_header_trailer = 0;
if (seg->time_str && seg->times_str) {
av_log(s, ... | {
"code": [
" oc->oformat->name);"
],
"line_no": [
155
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
SegmentContext *seg = VAR_0->priv_data;
AVFormatContext *oc = NULL;
int VAR_1, VAR_2;
seg->segment_count = 0;
if (!seg->write_header_trailer)
seg->individual_header_trailer = 0;
if (seg->time_str && seg->times_str) {
av_log... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"SegmentContext *seg = VAR_0->priv_data;",
"AVFormatContext *oc = NULL;",
"int VAR_1, VAR_2;",
"seg->segment_count = 0;",
"if (!seg->write_header_trailer)\nseg->individual_header_trailer = 0;",
"if (seg->time_str && seg->times_str) {",
"av_log(VAR_0, AV_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
33
],
[
35,
37,
39
],
[
41
],
[
43
],
[
47
],
[
49,
51
],
[
53
],
[... |
3,120 | void av_parser_close(AVCodecParserContext *s)
{
if(s){
if (s->parser->parser_close) {
ff_lock_avcodec(NULL);
s->parser->parser_close(s);
ff_unlock_avcodec();
}
av_free(s->priv_data);
av_free(s);
}
}
| true | FFmpeg | 0393cf15dbe3b136647b81676a105815924eebcd | void av_parser_close(AVCodecParserContext *s)
{
if(s){
if (s->parser->parser_close) {
ff_lock_avcodec(NULL);
s->parser->parser_close(s);
ff_unlock_avcodec();
}
av_free(s->priv_data);
av_free(s);
}
}
| {
"code": [
" if (s->parser->parser_close) {",
" ff_lock_avcodec(NULL);",
" ff_unlock_avcodec();"
],
"line_no": [
7,
9,
13
]
} | void FUNC_0(AVCodecParserContext *VAR_0)
{
if(VAR_0){
if (VAR_0->parser->parser_close) {
ff_lock_avcodec(NULL);
VAR_0->parser->parser_close(VAR_0);
ff_unlock_avcodec();
}
av_free(VAR_0->priv_data);
av_free(VAR_0);
}
}
| [
"void FUNC_0(AVCodecParserContext *VAR_0)\n{",
"if(VAR_0){",
"if (VAR_0->parser->parser_close) {",
"ff_lock_avcodec(NULL);",
"VAR_0->parser->parser_close(VAR_0);",
"ff_unlock_avcodec();",
"}",
"av_free(VAR_0->priv_data);",
"av_free(VAR_0);",
"}",
"}"
] | [
0,
0,
1,
1,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
3,121 | static uint64_t openpic_msi_read(void *opaque, hwaddr addr, unsigned size)
{
OpenPICState *opp = opaque;
uint64_t r = 0;
int i, srs;
DPRINTF("%s: addr " TARGET_FMT_plx "\n", __func__, addr);
if (addr & 0xF) {
return -1;
}
srs = addr >> 4;
switch (addr) {
case... | true | qemu | 4c4f0e4801ac79632d03867c88aafc90b4ce503c | static uint64_t openpic_msi_read(void *opaque, hwaddr addr, unsigned size)
{
OpenPICState *opp = opaque;
uint64_t r = 0;
int i, srs;
DPRINTF("%s: addr " TARGET_FMT_plx "\n", __func__, addr);
if (addr & 0xF) {
return -1;
}
srs = addr >> 4;
switch (addr) {
case... | {
"code": [
" DPRINTF(\"%s: addr \" TARGET_FMT_plx \"\\n\", __func__, addr);",
" DPRINTF(\"%s: addr \" TARGET_FMT_plx \"\\n\", __func__, addr);"
],
"line_no": [
13,
13
]
} | static uint64_t FUNC_0(void *opaque, hwaddr addr, unsigned size)
{
OpenPICState *opp = opaque;
uint64_t r = 0;
int VAR_0, VAR_1;
DPRINTF("%s: addr " TARGET_FMT_plx "\n", __func__, addr);
if (addr & 0xF) {
return -1;
}
VAR_1 = addr >> 4;
switch (addr) {
case 0... | [
"static uint64_t FUNC_0(void *opaque, hwaddr addr, unsigned size)\n{",
"OpenPICState *opp = opaque;",
"uint64_t r = 0;",
"int VAR_0, VAR_1;",
"DPRINTF(\"%s: addr \" TARGET_FMT_plx \"\\n\", __func__, addr);",
"if (addr & 0xF) {",
"return -1;",
"}",
"VAR_1 = addr >> 4;",
"switch (addr) {",
"case 0... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29,
31,
33,
35,
37,
39,
41,
43,
45
],
[
49
],
[
51
],
[
53,
55
],
[
57
],
[... |
3,122 | static inline int wv_unpack_stereo(WavpackFrameContext *s, GetBitContext *gb, void *dst, const int type)
{
int i, j, count = 0;
int last, t;
int A, B, L, L2, R, R2;
int pos = s->pos;
uint32_t crc = s->sc.crc;
uint32_t crc_extra_bits = s->extra_sc.crc;
int16_t *dst16 = dst;
int32... | true | FFmpeg | 55354b7de21e7bb4bbeb1c12ff55ea17f807c70c | static inline int wv_unpack_stereo(WavpackFrameContext *s, GetBitContext *gb, void *dst, const int type)
{
int i, j, count = 0;
int last, t;
int A, B, L, L2, R, R2;
int pos = s->pos;
uint32_t crc = s->sc.crc;
uint32_t crc_extra_bits = s->extra_sc.crc;
int16_t *dst16 = dst;
int32... | {
"code": [
" s->samples_left -= count;",
" s->samples_left -= count;"
],
"line_no": [
215,
215
]
} | static inline int FUNC_0(WavpackFrameContext *VAR_0, GetBitContext *VAR_1, void *VAR_2, const int VAR_3)
{
int VAR_4, VAR_5, VAR_6 = 0;
int VAR_7, VAR_8;
int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14;
int VAR_15 = VAR_0->VAR_15;
uint32_t crc = VAR_0->sc.crc;
uint32_t crc_extra_bits = ... | [
"static inline int FUNC_0(WavpackFrameContext *VAR_0, GetBitContext *VAR_1, void *VAR_2, const int VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6 = 0;",
"int VAR_7, VAR_8;",
"int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14;",
"int VAR_15 = VAR_0->VAR_15;",
"uint32_t crc = VAR_0->sc.crc;",
"uint32_t crc_extra_bi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
3,123 | static int get_mmu_address(CPUState * env, target_ulong * physical,
int *prot, target_ulong address,
int rw, int access_type)
{
int use_asid, is_code, n;
tlb_t *matching = NULL;
use_asid = (env->mmucr & MMUCR_SV) == 0 && (env->sr & SR_MD) == 0;
is_code = env->pc == address; /* Hack ... | true | qemu | 06afe2c8840ec39c3b23db0eb830a5f49244b947 | static int get_mmu_address(CPUState * env, target_ulong * physical,
int *prot, target_ulong address,
int rw, int access_type)
{
int use_asid, is_code, n;
tlb_t *matching = NULL;
use_asid = (env->mmucr & MMUCR_SV) == 0 && (env->sr & SR_MD) == 0;
is_code = env->pc == address;
... | {
"code": [
" use_asid = (env->mmucr & MMUCR_SV) == 0 && (env->sr & SR_MD) == 0;"
],
"line_no": [
15
]
} | static int FUNC_0(CPUState * VAR_0, target_ulong * VAR_1,
int *VAR_2, target_ulong VAR_3,
int VAR_4, int VAR_5)
{
int VAR_6, VAR_7, VAR_8;
tlb_t *matching = NULL;
VAR_6 = (VAR_0->mmucr & MMUCR_SV) == 0 && (VAR_0->sr & SR_MD) == 0;
VAR_7 = VAR_0->pc == VAR_3;
if (VAR_0-... | [
"static int FUNC_0(CPUState * VAR_0, target_ulong * VAR_1,\nint *VAR_2, target_ulong VAR_3,\nint VAR_4, int VAR_5)\n{",
"int VAR_6, VAR_7, VAR_8;",
"tlb_t *matching = NULL;",
"VAR_6 = (VAR_0->mmucr & MMUCR_SV) == 0 && (VAR_0->sr & SR_MD) == 0;",
"VAR_7 = VAR_0->pc == VAR_3;",
"if (VAR_0->pc == VAR_3 && !(... | [
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
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51,... |
3,125 | static inline void mix_2f_1r_to_mono(AC3DecodeContext *ctx)
{
int i;
float (*output)[256] = ctx->audio_block.block_output;
for (i = 0; i < 256; i++)
output[1][i] += (output[2][i] + output[3][i]);
memset(output[2], 0, sizeof(output[2]));
memset(output[3], 0, sizeof(output[3]));
}
| false | FFmpeg | 486637af8ef29ec215e0e0b7ecd3b5470f0e04e5 | static inline void mix_2f_1r_to_mono(AC3DecodeContext *ctx)
{
int i;
float (*output)[256] = ctx->audio_block.block_output;
for (i = 0; i < 256; i++)
output[1][i] += (output[2][i] + output[3][i]);
memset(output[2], 0, sizeof(output[2]));
memset(output[3], 0, sizeof(output[3]));
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(AC3DecodeContext *VAR_0)
{
int VAR_1;
float (*VAR_2)[256] = VAR_0->audio_block.block_output;
for (VAR_1 = 0; VAR_1 < 256; VAR_1++)
VAR_2[1][VAR_1] += (VAR_2[2][VAR_1] + VAR_2[3][VAR_1]);
memset(VAR_2[2], 0, sizeof(VAR_2[2]));
memset(VAR_2[3], 0, sizeof(VAR_... | [
"static inline void FUNC_0(AC3DecodeContext *VAR_0)\n{",
"int VAR_1;",
"float (*VAR_2)[256] = VAR_0->audio_block.block_output;",
"for (VAR_1 = 0; VAR_1 < 256; VAR_1++)",
"VAR_2[1][VAR_1] += (VAR_2[2][VAR_1] + VAR_2[3][VAR_1]);",
"memset(VAR_2[2], 0, sizeof(VAR_2[2]));",
"memset(VAR_2[3], 0, sizeof(VAR_2... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
]
] |
3,126 | void mjpeg_picture_header(MpegEncContext *s)
{
put_marker(&s->pb, SOI);
jpeg_table_header(s);
put_marker(&s->pb, SOF0);
put_bits(&s->pb, 16, 17);
put_bits(&s->pb, 8, 8); /* 8 bits/component */
put_bits(&s->pb, 16, s->height);
put_bits(&s->pb, 16, s->width);
put_bits(&s->pb... | false | FFmpeg | 80e103d04cf938fc1f479347d0ab2f8c6e688b61 | void mjpeg_picture_header(MpegEncContext *s)
{
put_marker(&s->pb, SOI);
jpeg_table_header(s);
put_marker(&s->pb, SOF0);
put_bits(&s->pb, 16, 17);
put_bits(&s->pb, 8, 8);
put_bits(&s->pb, 16, s->height);
put_bits(&s->pb, 16, s->width);
put_bits(&s->pb, 8, 3);
... | {
"code": [],
"line_no": []
} | void FUNC_0(MpegEncContext *VAR_0)
{
put_marker(&VAR_0->pb, SOI);
jpeg_table_header(VAR_0);
put_marker(&VAR_0->pb, SOF0);
put_bits(&VAR_0->pb, 16, 17);
put_bits(&VAR_0->pb, 8, 8);
put_bits(&VAR_0->pb, 16, VAR_0->height);
put_bits(&VAR_0->pb, 16, VAR_0->width);
put_bits(&V... | [
"void FUNC_0(MpegEncContext *VAR_0)\n{",
"put_marker(&VAR_0->pb, SOI);",
"jpeg_table_header(VAR_0);",
"put_marker(&VAR_0->pb, SOF0);",
"put_bits(&VAR_0->pb, 16, 17);",
"put_bits(&VAR_0->pb, 8, 8);",
"put_bits(&VAR_0->pb, 16, VAR_0->height);",
"put_bits(&VAR_0->pb, 16, VAR_0->width);",
"put_bits(&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
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
31
],
[
33
],
[
35
],
[
37
],
[
43
],
[
45
],
[
47
],
[
49
],
[
55
],
[
57
],
[
59... |
3,127 | void qmp_xen_save_devices_state(const char *filename, Error **errp)
{
QEMUFile *f;
QIOChannelFile *ioc;
int saved_vm_running;
int ret;
saved_vm_running = runstate_is_running();
vm_stop(RUN_STATE_SAVE_VM);
global_state_store_running();
ioc = qio_channel_file_new_path(filename... | true | qemu | 5d6c599fe1d69a1bf8c5c4d3c58be2b31cd625ad | void qmp_xen_save_devices_state(const char *filename, Error **errp)
{
QEMUFile *f;
QIOChannelFile *ioc;
int saved_vm_running;
int ret;
saved_vm_running = runstate_is_running();
vm_stop(RUN_STATE_SAVE_VM);
global_state_store_running();
ioc = qio_channel_file_new_path(filename... | {
"code": [
"void qmp_xen_save_devices_state(const char *filename, Error **errp)"
],
"line_no": [
1
]
} | void FUNC_0(const char *VAR_0, Error **VAR_1)
{
QEMUFile *f;
QIOChannelFile *ioc;
int VAR_2;
int VAR_3;
VAR_2 = runstate_is_running();
vm_stop(RUN_STATE_SAVE_VM);
global_state_store_running();
ioc = qio_channel_file_new_path(VAR_0, O_WRONLY | O_CREAT, 0660, VAR_1);
if (... | [
"void FUNC_0(const char *VAR_0, Error **VAR_1)\n{",
"QEMUFile *f;",
"QIOChannelFile *ioc;",
"int VAR_2;",
"int VAR_3;",
"VAR_2 = runstate_is_running();",
"vm_stop(RUN_STATE_SAVE_VM);",
"global_state_store_running();",
"ioc = qio_channel_file_new_path(VAR_0, O_WRONLY | O_CREAT, 0660, VAR_1);",
"if ... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47,... |
3,128 | static int get_physical_address(CPUState *env, target_phys_addr_t *physical,
int *prot, int *access_index,
target_ulong address, int rw, int mmu_idx)
{
int access_perms = 0;
target_phys_addr_t pde_ptr;
uint32_t pde;
int error_code = ... | true | qemu | 698235aab6f55e960203dc2ef9a3a580982dae2f | static int get_physical_address(CPUState *env, target_phys_addr_t *physical,
int *prot, int *access_index,
target_ulong address, int rw, int mmu_idx)
{
int access_perms = 0;
target_phys_addr_t pde_ptr;
uint32_t pde;
int error_code = ... | {
"code": [
" access_perms = (pde & PTE_ACCESS_MASK) >> PTE_ACCESS_SHIFT;",
" error_code = access_table[*access_index][access_perms];",
" if (error_code && !((env->mmuregs[0] & MMU_NF) && is_user))",
" return error_code;"
],
"line_no": [
189,
191,
193,
195
]
} | static int FUNC_0(CPUState *VAR_0, target_phys_addr_t *VAR_1,
int *VAR_2, int *VAR_3,
target_ulong VAR_4, int VAR_5, int VAR_6)
{
int VAR_7 = 0;
target_phys_addr_t pde_ptr;
uint32_t pde;
int VAR_8 = 0, VAR_9, VAR_10;
unsigned lo... | [
"static int FUNC_0(CPUState *VAR_0, target_phys_addr_t *VAR_1,\nint *VAR_2, int *VAR_3,\ntarget_ulong VAR_4, int VAR_5, int VAR_6)\n{",
"int VAR_7 = 0;",
"target_phys_addr_t pde_ptr;",
"uint32_t pde;",
"int VAR_8 = 0, VAR_9, VAR_10;",
"unsigned long VAR_11;",
"VAR_10 = VAR_6 == MMU_USER_IDX;",
"if ((V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
... |
3,129 | static void pci_bridge_region_cleanup(PCIBridge *br)
{
PCIBus *parent = br->dev.bus;
pci_bridge_cleanup_alias(&br->alias_io,
parent->address_space_io);
pci_bridge_cleanup_alias(&br->alias_mem,
parent->address_space_mem);
pci_bridge_cleanup... | true | qemu | 523a59f596a3e62f5a28eb171adba35e71310040 | static void pci_bridge_region_cleanup(PCIBridge *br)
{
PCIBus *parent = br->dev.bus;
pci_bridge_cleanup_alias(&br->alias_io,
parent->address_space_io);
pci_bridge_cleanup_alias(&br->alias_mem,
parent->address_space_mem);
pci_bridge_cleanup... | {
"code": [
"static void pci_bridge_region_cleanup(PCIBridge *br)",
" pci_bridge_cleanup_alias(&br->alias_io,",
" parent->address_space_io);",
" pci_bridge_cleanup_alias(&br->alias_mem,",
" parent->address_space_mem);",
" pci_bri... | static void FUNC_0(PCIBridge *VAR_0)
{
PCIBus *parent = VAR_0->dev.bus;
pci_bridge_cleanup_alias(&VAR_0->alias_io,
parent->address_space_io);
pci_bridge_cleanup_alias(&VAR_0->alias_mem,
parent->address_space_mem);
pci_bridge_cleanup_alias(... | [
"static void FUNC_0(PCIBridge *VAR_0)\n{",
"PCIBus *parent = VAR_0->dev.bus;",
"pci_bridge_cleanup_alias(&VAR_0->alias_io,\nparent->address_space_io);",
"pci_bridge_cleanup_alias(&VAR_0->alias_mem,\nparent->address_space_mem);",
"pci_bridge_cleanup_alias(&VAR_0->alias_pref_mem,\nparent->address_space_mem);"... | [
1,
0,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11,
13
],
[
15,
17
],
[
19
]
] |
3,131 | static void ide_atapi_cmd_read_dma_cb(void *opaque, int ret)
{
IDEState *s = opaque;
int data_offset, n;
if (ret < 0) {
ide_atapi_io_error(s, ret);
goto eot;
}
if (s->io_buffer_size > 0) {
/*
* For a cdrom read sector command (s->lba != -1),
*... | true | qemu | ece2d05ed4adb9a9aa3ca9da0496be769dfb3a25 | static void ide_atapi_cmd_read_dma_cb(void *opaque, int ret)
{
IDEState *s = opaque;
int data_offset, n;
if (ret < 0) {
ide_atapi_io_error(s, ret);
goto eot;
}
if (s->io_buffer_size > 0) {
if (s->lba != -1) {
if (s->cd_sector_si... | {
"code": [
" block_acct_done(blk_get_stats(s->blk), &s->acct);"
],
"line_no": [
131
]
} | static void FUNC_0(void *VAR_0, int VAR_1)
{
IDEState *s = VAR_0;
int VAR_2, VAR_3;
if (VAR_1 < 0) {
ide_atapi_io_error(s, VAR_1);
goto eot;
}
if (s->io_buffer_size > 0) {
if (s->lba != -1) {
if (s->cd_sector_size == 2352) {
... | [
"static void FUNC_0(void *VAR_0, int VAR_1)\n{",
"IDEState *s = VAR_0;",
"int VAR_2, VAR_3;",
"if (VAR_1 < 0) {",
"ide_atapi_io_error(s, VAR_1);",
"goto eot;",
"}",
"if (s->io_buffer_size > 0) {",
"if (s->lba != -1) {",
"if (s->cd_sector_size == 2352) {",
"VAR_3 = 1;",
"cd_data_to_raw(s->io_bu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57,
59
],
... |
3,132 | static int vfio_ccw_handle_request(ORB *orb, SCSW *scsw, void *data)
{
S390CCWDevice *cdev = data;
VFIOCCWDevice *vcdev = DO_UPCAST(VFIOCCWDevice, cdev, cdev);
struct ccw_io_region *region = vcdev->io_region;
int ret;
QEMU_BUILD_BUG_ON(sizeof(region->orb_area) != sizeof(ORB));
QEMU_BUIL... | true | qemu | 66dc50f7057b9a0191f54e55764412202306858d | static int vfio_ccw_handle_request(ORB *orb, SCSW *scsw, void *data)
{
S390CCWDevice *cdev = data;
VFIOCCWDevice *vcdev = DO_UPCAST(VFIOCCWDevice, cdev, cdev);
struct ccw_io_region *region = vcdev->io_region;
int ret;
QEMU_BUILD_BUG_ON(sizeof(region->orb_area) != sizeof(ORB));
QEMU_BUIL... | {
"code": [
" int ret;",
" int ret;",
" int ret;",
"static int vfio_ccw_handle_request(ORB *orb, SCSW *scsw, void *data)",
" S390CCWDevice *cdev = data;",
" memcpy(region->orb_area, orb, sizeof(ORB));",
" memcpy(region->scsw_area, scsw, sizeof(SCSW));",
" retur... | static int FUNC_0(ORB *VAR_0, SCSW *VAR_1, void *VAR_2)
{
S390CCWDevice *cdev = VAR_2;
VFIOCCWDevice *vcdev = DO_UPCAST(VFIOCCWDevice, cdev, cdev);
struct ccw_io_region *VAR_3 = vcdev->io_region;
int VAR_4;
QEMU_BUILD_BUG_ON(sizeof(VAR_3->orb_area) != sizeof(ORB));
QEMU_BUILD_BUG_ON(siz... | [
"static int FUNC_0(ORB *VAR_0, SCSW *VAR_1, void *VAR_2)\n{",
"S390CCWDevice *cdev = VAR_2;",
"VFIOCCWDevice *vcdev = DO_UPCAST(VFIOCCWDevice, cdev, cdev);",
"struct ccw_io_region *VAR_3 = vcdev->io_region;",
"int VAR_4;",
"QEMU_BUILD_BUG_ON(sizeof(VAR_3->orb_area) != sizeof(ORB));",
"QEMU_BUILD_BUG_ON(... | [
1,
1,
0,
0,
1,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
33,
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
3,133 | static void sdl_audio_callback(void *opaque, Uint8 *stream, int len)
{
VideoState *is = opaque;
int audio_size, len1, silence = 0;
audio_callback_time = av_gettime_relative();
while (len > 0) {
if (is->audio_buf_index >= is->audio_buf_size) {
audio_size = audio_decode_frame... | true | FFmpeg | a07934d51b40b0f48be531a359d39c091c414643 | static void sdl_audio_callback(void *opaque, Uint8 *stream, int len)
{
VideoState *is = opaque;
int audio_size, len1, silence = 0;
audio_callback_time = av_gettime_relative();
while (len > 0) {
if (is->audio_buf_index >= is->audio_buf_size) {
audio_size = audio_decode_frame... | {
"code": [
" int audio_size, len1, silence = 0;",
" silence = 1;",
" if (!is->muted && !silence && is->audio_volume == SDL_MIX_MAXVOLUME)",
" if (!is->muted && !silence)"
],
"line_no": [
7,
25,
49,
57
]
} | static void FUNC_0(void *VAR_0, Uint8 *VAR_1, int VAR_2)
{
VideoState *is = VAR_0;
int VAR_3, VAR_4, VAR_5 = 0;
audio_callback_time = av_gettime_relative();
while (VAR_2 > 0) {
if (is->audio_buf_index >= is->audio_buf_size) {
VAR_3 = audio_decode_frame(is);
if (... | [
"static void FUNC_0(void *VAR_0, Uint8 *VAR_1, int VAR_2)\n{",
"VideoState *is = VAR_0;",
"int VAR_3, VAR_4, VAR_5 = 0;",
"audio_callback_time = av_gettime_relative();",
"while (VAR_2 > 0) {",
"if (is->audio_buf_index >= is->audio_buf_size) {",
"VAR_3 = audio_decode_frame(is);",
"if (VAR_3 < 0) {",
... | [
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
49... |
3,134 | static int wmavoice_decode_packet(AVCodecContext *ctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
WMAVoiceContext *s = ctx->priv_data;
GetBitContext *gb = &s->gb;
int size, res, pos;
/* Packets are sometimes a multiple of ctx->block_align, with a packet
... | true | FFmpeg | 7b27dd5c16de785297ce4de4b88afa0b6685f61d | static int wmavoice_decode_packet(AVCodecContext *ctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
WMAVoiceContext *s = ctx->priv_data;
GetBitContext *gb = &s->gb;
int size, res, pos;
for (size = avpkt->size; size > ctx->block_align; size -=... | {
"code": [
" if (res > avpkt->size) {",
" av_log(ctx, AV_LOG_ERROR,",
" \"Trying to skip %d bytes in packet of size %d\\n\",",
" res, avpkt->size);",
" return AVERROR_INVALIDDATA;",
" ... | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
WMAVoiceContext *s = VAR_0->priv_data;
GetBitContext *gb = &s->gb;
int VAR_4, VAR_5, VAR_6;
for (VAR_4 = VAR_3->VAR_4; VAR_4 > VAR_0->block_align; VAR_4 -= VAR_0->... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"WMAVoiceContext *s = VAR_0->priv_data;",
"GetBitContext *gb = &s->gb;",
"int VAR_4, VAR_5, VAR_6;",
"for (VAR_4 = VAR_3->VAR_4; VAR_4 > VAR_0->block_align; VAR_4 -= VAR_0->block_align);",
"init_get_bits(&s->gb, VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
25
],
[
27
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
49
],
[
51
],
[
53
],
[
63
],
[
65
],
[
67
],
[
69
],
[
71
... |
3,135 | static void ppc_core99_init (ram_addr_t ram_size,
const char *boot_device,
const char *kernel_filename,
const char *kernel_cmdline,
const char *initrd_filename,
const cha... | true | qemu | 5b15f27516ce3249c80bd2e0458d8d61f20da415 | static void ppc_core99_init (ram_addr_t ram_size,
const char *boot_device,
const char *kernel_filename,
const char *kernel_cmdline,
const char *initrd_filename,
const cha... | {
"code": [
" dbdma_mem, cuda_mem, NULL, 3, ide_mem, escc_mem);"
],
"line_no": [
447
]
} | static void FUNC_0 (ram_addr_t VAR_0,
const char *VAR_1,
const char *VAR_2,
const char *VAR_3,
const char *VAR_4,
const char *VAR_5)
{
CPUState *env = NULL;
ch... | [
"static void FUNC_0 (ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3,\nconst char *VAR_4,\nconst char *VAR_5)\n{",
"CPUState *env = NULL;",
"char *VAR_6;",
"qemu_irq *pic, **openpic_irqs;",
"int VAR_7;",
"int VAR_8, VAR_9;",
"ram_addr_t ram_offset, bios_offset;",
"target_p... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[... |
3,136 | void cpu_physical_memory_unmap(void *buffer, target_phys_addr_t len,
int is_write, target_phys_addr_t access_len)
{
if (buffer != bounce.buffer) {
if (is_write) {
unsigned long addr1 = (uint8_t *)buffer - phys_ram_base;
while (access_len) {
... | true | qemu | ba223c29da480b40b38678c66636ee9910973a47 | void cpu_physical_memory_unmap(void *buffer, target_phys_addr_t len,
int is_write, target_phys_addr_t access_len)
{
if (buffer != bounce.buffer) {
if (is_write) {
unsigned long addr1 = (uint8_t *)buffer - phys_ram_base;
while (access_len) {
... | {
"code": [],
"line_no": []
} | void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
int VAR_2, target_phys_addr_t VAR_3)
{
if (VAR_0 != bounce.VAR_0) {
if (VAR_2) {
unsigned long VAR_4 = (uint8_t *)VAR_0 - phys_ram_base;
while (VAR_3) {
unsigned VAR_5;
... | [
"void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nint VAR_2, target_phys_addr_t VAR_3)\n{",
"if (VAR_0 != bounce.VAR_0) {",
"if (VAR_2) {",
"unsigned long VAR_4 = (uint8_t *)VAR_0 - phys_ram_base;",
"while (VAR_3) {",
"unsigned VAR_5;",
"VAR_5 = TARGET_PAGE_SIZE;",
"if (VAR_5 > VAR_3)\nVAR_5 = 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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
27
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
3,137 | static int mov_read_glbl(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams-1];
if ((uint64_t)atom.size > (1<<30))
return AVERROR_INVALIDDATA;
if (atom.size >= 10) {
// Broken... | true | FFmpeg | 5c720657c23afd798ae0db7c7362eb859a89ab3d | static int mov_read_glbl(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams-1];
if ((uint64_t)atom.size > (1<<30))
return AVERROR_INVALIDDATA;
if (atom.size >= 10) {
... | {
"code": [
" avio_read(pb, st->codec->extradata, atom.size);",
" return AVERROR_INVALIDDATA;"
],
"line_no": [
51,
19
]
} | static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)
{
AVStream *st;
if (VAR_0->fc->nb_streams < 1)
return 0;
st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];
if ((uint64_t)VAR_2.VAR_3 > (1<<30))
return AVERROR_INVALIDDATA;
if (VAR_2.VAR_3 >= 10) {
... | [
"static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{",
"AVStream *st;",
"if (VAR_0->fc->nb_streams < 1)\nreturn 0;",
"st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];",
"if ((uint64_t)VAR_2.VAR_3 > (1<<30))\nreturn AVERROR_INVALIDDATA;",
"if (VAR_2.VAR_3 >= 10) {",
"unsigned VAR_... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
17,
19
],
[
23
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[
51
],
[
53
],
[
55... |
3,138 | void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
{
mm_flags = mm_support();
if (avctx->dsp_mask) {
if (avctx->dsp_mask & FF_MM_FORCE)
mm_flags |= (avctx->dsp_mask & 0xffff);
else
mm_flags &= ~(avctx->dsp_mask & 0xffff);
}
#if 0
av_log(avct... | true | FFmpeg | 3e0f7126b53b395d9e79df57b2e626eb99ad846b | void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
{
mm_flags = mm_support();
if (avctx->dsp_mask) {
if (avctx->dsp_mask & FF_MM_FORCE)
mm_flags |= (avctx->dsp_mask & 0xffff);
else
mm_flags &= ~(avctx->dsp_mask & 0xffff);
}
#if 0
av_log(avct... | {
"code": [
"#if 0",
" if(mm_flags & MM_SSE2){",
"#endif"
],
"line_no": [
23,
845,
49
]
} | void FUNC_0(DSPContext* VAR_0, AVCodecContext *VAR_1)
{
mm_flags = mm_support();
if (VAR_1->dsp_mask) {
if (VAR_1->dsp_mask & FF_MM_FORCE)
mm_flags |= (VAR_1->dsp_mask & 0xffff);
else
mm_flags &= ~(VAR_1->dsp_mask & 0xffff);
}
#if 0
av_log(VAR_1, AV_... | [
"void FUNC_0(DSPContext* VAR_0, AVCodecContext *VAR_1)\n{",
"mm_flags = mm_support();",
"if (VAR_1->dsp_mask) {",
"if (VAR_1->dsp_mask & FF_MM_FORCE)\nmm_flags |= (VAR_1->dsp_mask & 0xffff);",
"else\nmm_flags &= ~(VAR_1->dsp_mask & 0xffff);",
"}",
"#if 0\nav_log(VAR_1, AV_LOG_INFO, \"libavcodec: CPU fla... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15,
17
],
[
19
],
[
23,
25
],
[
27,
29
],
[
31,
33
],
[
35,
37
],
[
39,
41
],
[
43,
45
],
[
47
],
[
49,
53
],
[
55
],
... |
3,139 | static int nppscale_resize(AVFilterContext *ctx, NPPScaleStageContext *stage,
AVFrame *out, AVFrame *in)
{
NPPScaleContext *s = ctx->priv;
NppStatus err;
int i;
for (i = 0; i < FF_ARRAY_ELEMS(in->data) && in->data[i]; i++) {
int iw = stage->planes_in[i].width;... | true | FFmpeg | 0fbc9bbbbb39b9a6f62d57f237052b64eefac578 | static int nppscale_resize(AVFilterContext *ctx, NPPScaleStageContext *stage,
AVFrame *out, AVFrame *in)
{
NPPScaleContext *s = ctx->priv;
NppStatus err;
int i;
for (i = 0; i < FF_ARRAY_ELEMS(in->data) && in->data[i]; i++) {
int iw = stage->planes_in[i].width;... | {
"code": [
" for (i = 0; i < FF_ARRAY_ELEMS(in->data) && in->data[i]; i++) {"
],
"line_no": [
15
]
} | static int FUNC_0(AVFilterContext *VAR_0, NPPScaleStageContext *VAR_1,
AVFrame *VAR_2, AVFrame *VAR_3)
{
NPPScaleContext *s = VAR_0->priv;
NppStatus err;
int VAR_4;
for (VAR_4 = 0; VAR_4 < FF_ARRAY_ELEMS(VAR_3->data) && VAR_3->data[VAR_4]; VAR_4++) {
int iw = ... | [
"static int FUNC_0(AVFilterContext *VAR_0, NPPScaleStageContext *VAR_1,\nAVFrame *VAR_2, AVFrame *VAR_3)\n{",
"NPPScaleContext *s = VAR_0->priv;",
"NppStatus err;",
"int VAR_4;",
"for (VAR_4 = 0; VAR_4 < FF_ARRAY_ELEMS(VAR_3->data) && VAR_3->data[VAR_4]; VAR_4++) {",
"int iw = VAR_1->planes_in[VAR_4].widt... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31,
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
3,140 | static int init_report(const char *env)
{
const char *filename_template = "%p-%t.log";
char *key, *val;
int ret, count = 0;
time_t now;
struct tm *tm;
AVBPrint filename;
if (report_file) /* already opened */
return 0;
time(&now);
tm = localtime(&now);
whil... | true | FFmpeg | cb8c5e531c8d6b9d7a3efad4186df59efc043345 | static int init_report(const char *env)
{
const char *filename_template = "%p-%t.log";
char *key, *val;
int ret, count = 0;
time_t now;
struct tm *tm;
AVBPrint filename;
if (report_file)
return 0;
time(&now);
tm = localtime(&now);
while (env && *env) {
... | {
"code": [
" const char *filename_template = \"%p-%t.log\";",
" expand_filename_template(&filename, filename_template, tm);"
],
"line_no": [
5,
73
]
} | static int FUNC_0(const char *VAR_0)
{
const char *VAR_1 = "%p-%t.log";
char *VAR_2, *VAR_3;
int VAR_4, VAR_5 = 0;
time_t now;
struct VAR_6 *VAR_6;
AVBPrint filename;
if (report_file)
return 0;
time(&now);
VAR_6 = localtime(&now);
while (VAR_0 && *VAR_0) ... | [
"static int FUNC_0(const char *VAR_0)\n{",
"const char *VAR_1 = \"%p-%t.log\";",
"char *VAR_2, *VAR_3;",
"int VAR_4, VAR_5 = 0;",
"time_t now;",
"struct VAR_6 *VAR_6;",
"AVBPrint filename;",
"if (report_file)\nreturn 0;",
"time(&now);",
"VAR_6 = localtime(&now);",
"while (VAR_0 && *VAR_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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33,
35,
37,
39
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[... |
3,141 | void apic_deliver_pic_intr(DeviceState *dev, int level)
{
APICCommonState *s = APIC_COMMON(dev);
if (level) {
apic_local_deliver(s, APIC_LVT_LINT0);
} else {
uint32_t lvt = s->lvt[APIC_LVT_LINT0];
switch ((lvt >> 8) & 7) {
case APIC_DM_FIXED:
if (!(lv... | true | qemu | 8092cb71322ca488deeb7c750ff8022ffcc2f9a6 | void apic_deliver_pic_intr(DeviceState *dev, int level)
{
APICCommonState *s = APIC_COMMON(dev);
if (level) {
apic_local_deliver(s, APIC_LVT_LINT0);
} else {
uint32_t lvt = s->lvt[APIC_LVT_LINT0];
switch ((lvt >> 8) & 7) {
case APIC_DM_FIXED:
if (!(lv... | {
"code": [
" cpu_reset_interrupt(CPU(s->cpu), CPU_INTERRUPT_HARD);"
],
"line_no": [
33
]
} | void FUNC_0(DeviceState *VAR_0, int VAR_1)
{
APICCommonState *s = APIC_COMMON(VAR_0);
if (VAR_1) {
apic_local_deliver(s, APIC_LVT_LINT0);
} else {
uint32_t lvt = s->lvt[APIC_LVT_LINT0];
switch ((lvt >> 8) & 7) {
case APIC_DM_FIXED:
if (!(lvt & APIC_LV... | [
"void FUNC_0(DeviceState *VAR_0, int VAR_1)\n{",
"APICCommonState *s = APIC_COMMON(VAR_0);",
"if (VAR_1) {",
"apic_local_deliver(s, APIC_LVT_LINT0);",
"} else {",
"uint32_t lvt = s->lvt[APIC_LVT_LINT0];",
"switch ((lvt >> 8) & 7) {",
"case APIC_DM_FIXED:\nif (!(lvt & APIC_LVT_LEVEL_TRIGGER))\nbreak;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23,
25
],
[
27
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
3,142 | void rgb15tobgr16(const uint8_t *src, uint8_t *dst, unsigned int src_size)
{
unsigned i;
unsigned num_pixels = src_size >> 1;
for(i=0; i<num_pixels; i++)
{
unsigned b,g,r;
register uint16_t rgb;
rgb = src[2*i];
r = rgb&0x1F;
g = (rgb&0x3E0)>>5;
b = (rgb&0x7C00)>>10;
... | true | FFmpeg | 7f526efd17973ec6d2204f7a47b6923e2be31363 | void rgb15tobgr16(const uint8_t *src, uint8_t *dst, unsigned int src_size)
{
unsigned i;
unsigned num_pixels = src_size >> 1;
for(i=0; i<num_pixels; i++)
{
unsigned b,g,r;
register uint16_t rgb;
rgb = src[2*i];
r = rgb&0x1F;
g = (rgb&0x3E0)>>5;
b = (rgb&0x7C00)>>10;
... | {
"code": [
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned i;",
"\tunsigned num_pixels = src_size >> 1;",
"\tunsigned i;",
"\tu... | void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned int VAR_2)
{
unsigned VAR_3;
unsigned VAR_4 = VAR_2 >> 1;
for(VAR_3=0; VAR_3<VAR_4; VAR_3++)
{
unsigned VAR_5,VAR_6,VAR_7;
register uint16_t VAR_8;
VAR_8 = VAR_0[2*VAR_3];
VAR_7 = VAR_8&0x1F;
VAR_6 = (VAR_8&0x3E0)>>5;
... | [
"void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, unsigned int VAR_2)\n{",
"unsigned VAR_3;",
"unsigned VAR_4 = VAR_2 >> 1;",
"for(VAR_3=0; VAR_3<VAR_4; VAR_3++)",
"{",
"unsigned VAR_5,VAR_6,VAR_7;",
"register uint16_t VAR_8;",
"VAR_8 = VAR_0[2*VAR_3];",
"VAR_7 = VAR_8&0x1F;",
"VAR_6 = (VAR_8&0x3... | [
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
3,143 | static void vnc_connect(VncDisplay *vd, int csock, int skipauth)
{
VncState *vs = g_malloc0(sizeof(VncState));
int i;
vs->csock = csock;
if (skipauth) {
vs->auth = VNC_AUTH_NONE;
#ifdef CONFIG_VNC_TLS
vs->subauth = VNC_AUTH_INVALID;
#endif
} else {
vs->auth = vd->auth;
#ifdef CONF... | true | qemu | 175b2a6e4be06422da59d3a82c28d9a0e738e282 | static void vnc_connect(VncDisplay *vd, int csock, int skipauth)
{
VncState *vs = g_malloc0(sizeof(VncState));
int i;
vs->csock = csock;
if (skipauth) {
vs->auth = VNC_AUTH_NONE;
#ifdef CONFIG_VNC_TLS
vs->subauth = VNC_AUTH_INVALID;
#endif
} else {
vs->auth = vd->auth;
#ifdef CONF... | {
"code": [],
"line_no": []
} | static void FUNC_0(VncDisplay *VAR_0, int VAR_1, int VAR_2)
{
VncState *vs = g_malloc0(sizeof(VncState));
int VAR_3;
vs->VAR_1 = VAR_1;
if (VAR_2) {
vs->auth = VNC_AUTH_NONE;
#ifdef CONFIG_VNC_TLS
vs->subauth = VNC_AUTH_INVALID;
#endif
} else {
vs->auth = VAR_0->auth;
#ifdef CONFI... | [
"static void FUNC_0(VncDisplay *VAR_0, int VAR_1, int VAR_2)\n{",
"VncState *vs = g_malloc0(sizeof(VncState));",
"int VAR_3;",
"vs->VAR_1 = VAR_1;",
"if (VAR_2) {",
"vs->auth = VNC_AUTH_NONE;",
"#ifdef CONFIG_VNC_TLS\nvs->subauth = VNC_AUTH_INVALID;",
"#endif\n} else {",
"vs->auth = VAR_0->auth;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
15
],
[
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33,
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53... |
3,144 | void pcnet_h_reset(void *opaque)
{
PCNetState *s = opaque;
int i;
uint16_t checksum;
/* Initialize the PROM */
memcpy(s->prom, s->conf.macaddr.a, 6);
s->prom[12] = s->prom[13] = 0x00;
s->prom[14] = s->prom[15] = 0x57;
for (i = 0,checksum = 0; i < 16; i++)
... | true | qemu | 219982ef42154ad58a629f59267797c5454fc742 | void pcnet_h_reset(void *opaque)
{
PCNetState *s = opaque;
int i;
uint16_t checksum;
memcpy(s->prom, s->conf.macaddr.a, 6);
s->prom[12] = s->prom[13] = 0x00;
s->prom[14] = s->prom[15] = 0x57;
for (i = 0,checksum = 0; i < 16; i++)
checksum += s->pr... | {
"code": [],
"line_no": []
} | void FUNC_0(void *VAR_0)
{
PCNetState *s = VAR_0;
int VAR_1;
uint16_t checksum;
memcpy(s->prom, s->conf.macaddr.a, 6);
s->prom[12] = s->prom[13] = 0x00;
s->prom[14] = s->prom[15] = 0x57;
for (VAR_1 = 0,checksum = 0; VAR_1 < 16; VAR_1++)
checksum +... | [
"void FUNC_0(void *VAR_0)\n{",
"PCNetState *s = VAR_0;",
"int VAR_1;",
"uint16_t checksum;",
"memcpy(s->prom, s->conf.macaddr.a, 6);",
"s->prom[12] = s->prom[13] = 0x00;",
"s->prom[14] = s->prom[15] = 0x57;",
"for (VAR_1 = 0,checksum = 0; VAR_1 < 16; VAR_1++)",
"checksum += s->prom[VAR_1];",
"*(ui... | [
0,
0,
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
],
[
21
],
[
33
],
[
37
],
[
41
],
[
43
],
[
45
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
],
[
63
],
[
65
],
[
67
],
[
69
... |
3,145 | void avformat_close_input(AVFormatContext **ps)
{
AVFormatContext *s = *ps;
AVIOContext *pb = (s->iformat->flags & AVFMT_NOFILE) || (s->flags & AVFMT_FLAG_CUSTOM_IO) ?
NULL : s->pb;
flush_packet_queue(s);
if (s->iformat->read_close)
s->iformat->read_close(s);
a... | false | FFmpeg | 9b01a8ad5ecf88aa0a8e52c2b70816e03ef59162 | void avformat_close_input(AVFormatContext **ps)
{
AVFormatContext *s = *ps;
AVIOContext *pb = (s->iformat->flags & AVFMT_NOFILE) || (s->flags & AVFMT_FLAG_CUSTOM_IO) ?
NULL : s->pb;
flush_packet_queue(s);
if (s->iformat->read_close)
s->iformat->read_close(s);
a... | {
"code": [],
"line_no": []
} | void FUNC_0(AVFormatContext **VAR_0)
{
AVFormatContext *s = *VAR_0;
AVIOContext *pb = (s->iformat->flags & AVFMT_NOFILE) || (s->flags & AVFMT_FLAG_CUSTOM_IO) ?
NULL : s->pb;
flush_packet_queue(s);
if (s->iformat->read_close)
s->iformat->read_close(s);
avformat_... | [
"void FUNC_0(AVFormatContext **VAR_0)\n{",
"AVFormatContext *s = *VAR_0;",
"AVIOContext *pb = (s->iformat->flags & AVFMT_NOFILE) || (s->flags & AVFMT_FLAG_CUSTOM_IO) ?\nNULL : s->pb;",
"flush_packet_queue(s);",
"if (s->iformat->read_close)\ns->iformat->read_close(s);",
"avformat_free_context(s);",
"*VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21,
23
],
[
25
]
] |
3,146 | static int decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
H264Context *h = avctx->priv_data;
MpegEncContext *s = &h->s;
AVFrame *pict = data;
int buf_index;
s->flags= avctx->flags;
... | true | FFmpeg | 171c407621b7ff52a0cf128b31651ca927c2dd49 | static int decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
{
H264Context *h = avctx->priv_data;
MpegEncContext *s = &h->s;
AVFrame *pict = data;
int buf_index;
s->flags= avctx->flags;
... | {
"code": [
" if(prev && pics <= s->avctx->has_b_frames)"
],
"line_no": [
243
]
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
uint8_t *VAR_3, int VAR_4)
{
H264Context *h = VAR_0->priv_data;
MpegEncContext *s = &h->s;
AVFrame *pict = VAR_1;
int VAR_5;
s->flags= VAR_0->flags;
s->flags2= V... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{",
"H264Context *h = VAR_0->priv_data;",
"MpegEncContext *s = &h->s;",
"AVFrame *pict = VAR_1;",
"int VAR_5;",
"s->flags= VAR_0->flags;",
"s->flags2= VAR_0->flags2;",
"if (VAR_4 == 0) {",
"return 0;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41,
43
],
[
47
],
[
51
],
[
53
],
[
55
],
[
57
],
[... |
3,147 | int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
AVInputFormat *fmt,
int buf_size,
AVFormatParameters *ap)
{
int err, probe_size;
AVProbeData probe_data, *pd = &probe_data;
ByteIOContext *pb = NULL;
pd->... | true | FFmpeg | 56c6cf287b9f1d25f4c91e00892c5ab3f8436d10 | int av_open_input_file(AVFormatContext **ic_ptr, const char *filename,
AVInputFormat *fmt,
int buf_size,
AVFormatParameters *ap)
{
int err, probe_size;
AVProbeData probe_data, *pd = &probe_data;
ByteIOContext *pb = NULL;
pd->... | {
"code": [
" *ic_ptr = NULL;"
],
"line_no": [
145
]
} | int FUNC_0(AVFormatContext **VAR_0, const char *VAR_1,
AVInputFormat *VAR_2,
int VAR_3,
AVFormatParameters *VAR_4)
{
int VAR_5, VAR_6;
AVProbeData probe_data, *pd = &probe_data;
ByteIOContext *pb = NULL;
pd->VAR_1 = "";
... | [
"int FUNC_0(AVFormatContext **VAR_0, const char *VAR_1,\nAVInputFormat *VAR_2,\nint VAR_3,\nAVFormatParameters *VAR_4)\n{",
"int VAR_5, VAR_6;",
"AVProbeData probe_data, *pd = &probe_data;",
"ByteIOContext *pb = NULL;",
"pd->VAR_1 = \"\";",
"if (VAR_1)\npd->VAR_1 = VAR_1;",
"pd->buf = NULL;",
"pd->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,
1,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
... |
3,148 | static void digic_load_rom(DigicBoardState *s, hwaddr addr,
hwaddr max_size, const char *def_filename)
{
target_long rom_size;
const char *filename;
if (qtest_enabled()) {
/* qtest runs no code so don't attempt a ROM load which
* could fail and result in ... | true | qemu | 6e05a12f8f7f32a3fecbeb0c572d549a5f6e9177 | static void digic_load_rom(DigicBoardState *s, hwaddr addr,
hwaddr max_size, const char *def_filename)
{
target_long rom_size;
const char *filename;
if (qtest_enabled()) {
return;
}
if (bios_name) {
filename = bios_name;
} el... | {
"code": [],
"line_no": []
} | static void FUNC_0(DigicBoardState *VAR_0, hwaddr VAR_1,
hwaddr VAR_2, const char *VAR_3)
{
target_long rom_size;
const char *VAR_4;
if (qtest_enabled()) {
return;
}
if (bios_name) {
VAR_4 = bios_name;
} else {
VAR_4... | [
"static void FUNC_0(DigicBoardState *VAR_0, hwaddr VAR_1,\nhwaddr VAR_2, const char *VAR_3)\n{",
"target_long rom_size;",
"const char *VAR_4;",
"if (qtest_enabled()) {",
"return;",
"}",
"if (bios_name) {",
"VAR_4 = bios_name;",
"} else {",
"VAR_4 = VAR_3;",
"}",
"if (VAR_4) {",
"char *VAR_5 ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
],
[... |
3,149 | static int hevc_parse_slice_header(AVCodecParserContext *s, H2645NAL *nal,
AVCodecContext *avctx)
{
HEVCParserContext *ctx = s->priv_data;
GetBitContext *gb = &nal->gb;
HEVCPPS *pps;
HEVCSPS *sps;
unsigned int pps_id;
get_bits1(gb); // firs... | false | FFmpeg | 1c088632e98af96f9cbe8129c5d7eb7274f8d4ed | static int hevc_parse_slice_header(AVCodecParserContext *s, H2645NAL *nal,
AVCodecContext *avctx)
{
HEVCParserContext *ctx = s->priv_data;
GetBitContext *gb = &nal->gb;
HEVCPPS *pps;
HEVCSPS *sps;
unsigned int pps_id;
get_bits1(gb);
i... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecParserContext *VAR_0, H2645NAL *VAR_1,
AVCodecContext *VAR_2)
{
HEVCParserContext *ctx = VAR_0->priv_data;
GetBitContext *gb = &VAR_1->gb;
HEVCPPS *pps;
HEVCSPS *sps;
unsigned int VAR_3;
get_bits1(gb);
if (IS_... | [
"static int FUNC_0(AVCodecParserContext *VAR_0, H2645NAL *VAR_1,\nAVCodecContext *VAR_2)\n{",
"HEVCParserContext *ctx = VAR_0->priv_data;",
"GetBitContext *gb = &VAR_1->gb;",
"HEVCPPS *pps;",
"HEVCSPS *sps;",
"unsigned int VAR_3;",
"get_bits1(gb);",
"if (IS_IRAP_NAL(VAR_1))\nget_bits1(gb);",
"VAR_3 ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
47
],
[
49
],
[
51
],
[
53
... |
3,150 | void helper_store_msr(CPUPPCState *env, target_ulong val)
{
uint32_t excp = hreg_store_msr(env, val, 0);
if (excp != 0) {
CPUState *cs = CPU(ppc_env_get_cpu(env));
cs->interrupt_request |= CPU_INTERRUPT_EXITTB;
raise_exception(env, excp);
}
}
| true | qemu | 044897ef4a22af89aecb8df509477beba0a2e0ce | void helper_store_msr(CPUPPCState *env, target_ulong val)
{
uint32_t excp = hreg_store_msr(env, val, 0);
if (excp != 0) {
CPUState *cs = CPU(ppc_env_get_cpu(env));
cs->interrupt_request |= CPU_INTERRUPT_EXITTB;
raise_exception(env, excp);
}
}
| {
"code": [
" cs->interrupt_request |= CPU_INTERRUPT_EXITTB;",
" cs->interrupt_request |= CPU_INTERRUPT_EXITTB;",
" cs->interrupt_request |= CPU_INTERRUPT_EXITTB;"
],
"line_no": [
13,
13,
13
]
} | void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1)
{
uint32_t excp = hreg_store_msr(VAR_0, VAR_1, 0);
if (excp != 0) {
CPUState *cs = CPU(ppc_env_get_cpu(VAR_0));
cs->interrupt_request |= CPU_INTERRUPT_EXITTB;
raise_exception(VAR_0, excp);
}
}
| [
"void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1)\n{",
"uint32_t excp = hreg_store_msr(VAR_0, VAR_1, 0);",
"if (excp != 0) {",
"CPUState *cs = CPU(ppc_env_get_cpu(VAR_0));",
"cs->interrupt_request |= CPU_INTERRUPT_EXITTB;",
"raise_exception(VAR_0, excp);",
"}",
"}"
] | [
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
3,151 | static int do_qsv_decode(AVCodecContext *avctx, QSVContext *q,
AVFrame *frame, int *got_frame,
AVPacket *avpkt)
{
QSVFrame *out_frame;
mfxFrameSurface1 *insurf;
mfxFrameSurface1 *outsurf;
mfxSyncPoint *sync;
mfxBitstream bs = { { { 0 } } };
int ret;
... | true | FFmpeg | b4054100f675b395204f1a0471fba0b06fe08e9f | static int do_qsv_decode(AVCodecContext *avctx, QSVContext *q,
AVFrame *frame, int *got_frame,
AVPacket *avpkt)
{
QSVFrame *out_frame;
mfxFrameSurface1 *insurf;
mfxFrameSurface1 *outsurf;
mfxSyncPoint *sync;
mfxBitstream bs = { { { 0 } } };
int ret;
... | {
"code": [
" av_fifo_generic_read(q->async_fifo, &out_frame, sizeof(out_frame), NULL);",
" av_fifo_generic_read(q->async_fifo, &sync, sizeof(sync), NULL);",
" av_freep(&sync);",
" mfxSyncPoint *sync;",
" sync = av_mallocz(sizeof(*sync));",
" if (!sync) ... | static int FUNC_0(AVCodecContext *VAR_0, QSVContext *VAR_1,
AVFrame *VAR_2, int *VAR_3,
AVPacket *VAR_4)
{
QSVFrame *out_frame;
mfxFrameSurface1 *insurf;
mfxFrameSurface1 *outsurf;
mfxSyncPoint *sync;
mfxBitstream bs = { { { 0 } } };
int VAR_5;
i... | [
"static int FUNC_0(AVCodecContext *VAR_0, QSVContext *VAR_1,\nAVFrame *VAR_2, int *VAR_3,\nAVPacket *VAR_4)\n{",
"QSVFrame *out_frame;",
"mfxFrameSurface1 *insurf;",
"mfxFrameSurface1 *outsurf;",
"mfxSyncPoint *sync;",
"mfxBitstream bs = { { { 0 } } };",
"int VAR_5;",
"int VAR_6;",
"int VAR_7 = 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,
1,
1,
1,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
41
],
[
43
],
[
47
],
[
49
],
[... |
3,152 | static int local_rename(FsContext *ctx, const char *oldpath,
const char *newpath)
{
int err;
char *buffer, *buffer1;
if (ctx->export_flags & V9FS_SM_MAPPED_FILE) {
err = local_create_mapped_attr_dir(ctx, newpath);
if (err < 0) {
return err;
... | true | qemu | d2767edec582558f1e6c52e1dd9370d62e2b30fc | static int local_rename(FsContext *ctx, const char *oldpath,
const char *newpath)
{
int err;
char *buffer, *buffer1;
if (ctx->export_flags & V9FS_SM_MAPPED_FILE) {
err = local_create_mapped_attr_dir(ctx, newpath);
if (err < 0) {
return err;
... | {
"code": [
"static int local_rename(FsContext *ctx, const char *oldpath,",
" const char *newpath)",
" int err;",
" char *buffer, *buffer1;",
" if (ctx->export_flags & V9FS_SM_MAPPED_FILE) {",
" err = local_create_mapped_attr_dir(ctx, newpath);",
" ... | static int FUNC_0(FsContext *VAR_0, const char *VAR_1,
const char *VAR_2)
{
int VAR_3;
char *VAR_4, *VAR_5;
if (VAR_0->export_flags & V9FS_SM_MAPPED_FILE) {
VAR_3 = local_create_mapped_attr_dir(VAR_0, VAR_2);
if (VAR_3 < 0) {
return VAR_3;
... | [
"static int FUNC_0(FsContext *VAR_0, const char *VAR_1,\nconst char *VAR_2)\n{",
"int VAR_3;",
"char *VAR_4, *VAR_5;",
"if (VAR_0->export_flags & V9FS_SM_MAPPED_FILE) {",
"VAR_3 = local_create_mapped_attr_dir(VAR_0, VAR_2);",
"if (VAR_3 < 0) {",
"return VAR_3;",
"}",
"VAR_4 = local_mapped_attr_path(... | [
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
0,
0,
0,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[... |
3,154 | static int16_t long_term_filter(DSPContext *dsp, int pitch_delay_int,
const int16_t* residual, int16_t *residual_filt,
int subframe_size)
{
int i, k, tmp, tmp2;
int sum;
int L_temp0;
int L_temp1;
int64_t L64_temp0;
int64_t ... | false | FFmpeg | 1fc28cf1644e813f57dcdcf687e77dc3167b9823 | static int16_t long_term_filter(DSPContext *dsp, int pitch_delay_int,
const int16_t* residual, int16_t *residual_filt,
int subframe_size)
{
int i, k, tmp, tmp2;
int sum;
int L_temp0;
int L_temp1;
int64_t L64_temp0;
int64_t ... | {
"code": [],
"line_no": []
} | static int16_t FUNC_0(DSPContext *dsp, int pitch_delay_int,
const int16_t* residual, int16_t *residual_filt,
int subframe_size)
{
int VAR_0, VAR_1, VAR_2, VAR_3;
int VAR_4;
int VAR_5;
int VAR_6;
int64_t L64_temp0;
int64_t L... | [
"static int16_t FUNC_0(DSPContext *dsp, int pitch_delay_int,\nconst int16_t* residual, int16_t *residual_filt,\nint subframe_size)\n{",
"int VAR_0, VAR_1, VAR_2, VAR_3;",
"int VAR_4;",
"int VAR_5;",
"int VAR_6;",
"int64_t L64_temp0;",
"int64_t L64_temp1;",
"int16_t shift;",
"int VAR_7, VAR_8;",
"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
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
47
],
[
51
],
[
53
... |
3,155 | void pc_dimm_memory_plug(DeviceState *dev, MemoryHotplugState *hpms,
MemoryRegion *mr, uint64_t align, bool gap,
Error **errp)
{
int slot;
MachineState *machine = MACHINE(qdev_get_machine());
PCDIMMDevice *dimm = PC_DIMM(dev);
Error *local_err = NULL;
... | true | qemu | 3fad87881e55aaff659408dcf25fa204f89a7896 | void pc_dimm_memory_plug(DeviceState *dev, MemoryHotplugState *hpms,
MemoryRegion *mr, uint64_t align, bool gap,
Error **errp)
{
int slot;
MachineState *machine = MACHINE(qdev_get_machine());
PCDIMMDevice *dimm = PC_DIMM(dev);
Error *local_err = NULL;
... | {
"code": [],
"line_no": []
} | void FUNC_0(DeviceState *VAR_0, MemoryHotplugState *VAR_1,
MemoryRegion *VAR_2, uint64_t VAR_3, bool VAR_4,
Error **VAR_5)
{
int VAR_6;
MachineState *machine = MACHINE(qdev_get_machine());
PCDIMMDevice *dimm = PC_DIMM(VAR_0);
Error *local_err = NULL;
... | [
"void FUNC_0(DeviceState *VAR_0, MemoryHotplugState *VAR_1,\nMemoryRegion *VAR_2, uint64_t VAR_3, bool VAR_4,\nError **VAR_5)\n{",
"int VAR_6;",
"MachineState *machine = MACHINE(qdev_get_machine());",
"PCDIMMDevice *dimm = PC_DIMM(VAR_0);",
"Error *local_err = NULL;",
"uint64_t existing_dimms_capacity = 0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3,
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13,
14,
15,
16
],
[
17
],
[
18
],
[
19
],
[
20,
21
],
[
22,
23,
24,
25
],
[
... |
3,156 | static int64_t asf_read_pts(AVFormatContext *s, int64_t *ppos, int stream_index)
{
ASFContext *asf = s->priv_data;
AVPacket pkt1, *pkt = &pkt1;
int64_t pos= *ppos;
int64_t pts;
// ensure we are on the packet boundry
assert(pos % asf->packet_size == 0);
url_fseek(&s->pb, pos + s->... | true | FFmpeg | 82b9e4a286e904dd402ddf6c914756963b2e2c4d | static int64_t asf_read_pts(AVFormatContext *s, int64_t *ppos, int stream_index)
{
ASFContext *asf = s->priv_data;
AVPacket pkt1, *pkt = &pkt1;
int64_t pos= *ppos;
int64_t pts;
assert(pos % asf->packet_size == 0);
url_fseek(&s->pb, pos + s->data_offset, SEEK_SET);
do{
... | {
"code": [
" int64_t pos= *ppos;",
" pos= url_ftell(&s->pb) - s->data_offset;",
" asf_reset_header(s);",
" if (av_read_frame(s, pkt) < 0)",
" }while(pkt->stream_index != stream_index);",
" *ppos= pos;"
],
"line_no": [
9,
25,
27,
29,
39,
... | static int64_t FUNC_0(AVFormatContext *s, int64_t *ppos, int stream_index)
{
ASFContext *asf = s->priv_data;
AVPacket pkt1, *pkt = &pkt1;
int64_t pos= *ppos;
int64_t pts;
assert(pos % asf->packet_size == 0);
url_fseek(&s->pb, pos + s->data_offset, SEEK_SET);
do{
po... | [
"static int64_t FUNC_0(AVFormatContext *s, int64_t *ppos, int stream_index)\n{",
"ASFContext *asf = s->priv_data;",
"AVPacket pkt1, *pkt = &pkt1;",
"int64_t pos= *ppos;",
"int64_t pts;",
"assert(pos % asf->packet_size == 0);",
"url_fseek(&s->pb, pos + s->data_offset, SEEK_SET);",
"do{",
"pos= url_ft... | [
0,
0,
0,
1,
0,
0,
0,
0,
1,
1,
1,
0,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
37
],
[
39
],
[
43
],
[
47
],
[
49
]
] |
3,157 | static void serial_reset(void *opaque)
{
SerialState *s = opaque;
s->divider = 0;
s->rbr = 0;
s->ier = 0;
s->iir = UART_IIR_NO_INT;
s->lcr = 0;
s->mcr = 0;
s->lsr = UART_LSR_TEMT | UART_LSR_THRE;
s->msr = UART_MSR_DCD | UART_MSR_DSR | UART_MSR_CTS;
s->scr = 0;
... | true | qemu | 81174dae3f9189519cd60c7b79e91c291b021bbe | static void serial_reset(void *opaque)
{
SerialState *s = opaque;
s->divider = 0;
s->rbr = 0;
s->ier = 0;
s->iir = UART_IIR_NO_INT;
s->lcr = 0;
s->mcr = 0;
s->lsr = UART_LSR_TEMT | UART_LSR_THRE;
s->msr = UART_MSR_DCD | UART_MSR_DSR | UART_MSR_CTS;
s->scr = 0;
... | {
"code": [
" SerialState *s = opaque;",
" s->divider = 0;",
" s->mcr = 0;"
],
"line_no": [
5,
9,
19
]
} | static void FUNC_0(void *VAR_0)
{
SerialState *s = VAR_0;
s->divider = 0;
s->rbr = 0;
s->ier = 0;
s->iir = UART_IIR_NO_INT;
s->lcr = 0;
s->mcr = 0;
s->lsr = UART_LSR_TEMT | UART_LSR_THRE;
s->msr = UART_MSR_DCD | UART_MSR_DSR | UART_MSR_CTS;
s->scr = 0;
s->thr_... | [
"static void FUNC_0(void *VAR_0)\n{",
"SerialState *s = VAR_0;",
"s->divider = 0;",
"s->rbr = 0;",
"s->ier = 0;",
"s->iir = UART_IIR_NO_INT;",
"s->lcr = 0;",
"s->mcr = 0;",
"s->lsr = UART_LSR_TEMT | UART_LSR_THRE;",
"s->msr = UART_MSR_DCD | UART_MSR_DSR | UART_MSR_CTS;",
"s->scr = 0;",
"s->thr... | [
0,
1,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
3,159 | static void decode_micromips32_opc (CPUMIPSState *env, DisasContext *ctx,
uint16_t insn_hw1, int *is_branch)
{
int32_t offset;
uint16_t insn;
int rt, rs, rd, rr;
int16_t imm;
uint32_t op, minor, mips32_op;
uint32_t cond, fmt, cc;
insn = lduw_cod... | true | qemu | 2e15497c5b8d0d172dece0cf56e2d2e977a6b679 | static void decode_micromips32_opc (CPUMIPSState *env, DisasContext *ctx,
uint16_t insn_hw1, int *is_branch)
{
int32_t offset;
uint16_t insn;
int rt, rs, rd, rr;
int16_t imm;
uint32_t op, minor, mips32_op;
uint32_t cond, fmt, cc;
insn = lduw_cod... | {
"code": [],
"line_no": []
} | static void FUNC_0 (CPUMIPSState *VAR_0, DisasContext *VAR_1,
uint16_t VAR_2, int *VAR_3)
{
int32_t VAR_9;
uint16_t insn;
int VAR_4, VAR_5, VAR_6, VAR_7;
int16_t imm;
uint32_t op, minor, mips32_op;
uint32_t cond, fmt, cc;
insn = lduw_code(VAR_1-... | [
"static void FUNC_0 (CPUMIPSState *VAR_0, DisasContext *VAR_1,\nuint16_t VAR_2, int *VAR_3)\n{",
"int32_t VAR_9;",
"uint16_t insn;",
"int VAR_4, VAR_5, VAR_6, VAR_7;",
"int16_t imm;",
"uint32_t op, minor, mips32_op;",
"uint32_t cond, fmt, cc;",
"insn = lduw_code(VAR_1->pc + 2);",
"VAR_1->opcode = (V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49,... |
3,163 | static int xmv_process_packet_header(AVFormatContext *s)
{
XMVDemuxContext *xmv = s->priv_data;
AVIOContext *pb = s->pb;
uint8_t data[8];
uint16_t audio_track;
uint64_t data_offset;
/* Next packet size */
xmv->next_packet_size = avio_rl32(pb);
/* Packet video header ... | false | FFmpeg | ae658efef86b932484a88c52dc9b803bb5d99e3d | static int xmv_process_packet_header(AVFormatContext *s)
{
XMVDemuxContext *xmv = s->priv_data;
AVIOContext *pb = s->pb;
uint8_t data[8];
uint16_t audio_track;
uint64_t data_offset;
xmv->next_packet_size = avio_rl32(pb);
if (avio_read(pb, data, 8) != 8)
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
XMVDemuxContext *xmv = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
uint8_t data[8];
uint16_t audio_track;
uint64_t data_offset;
xmv->next_packet_size = avio_rl32(pb);
if (avio_read(pb, data, 8) != 8)
re... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"XMVDemuxContext *xmv = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"uint8_t data[8];",
"uint16_t audio_track;",
"uint64_t data_offset;",
"xmv->next_packet_size = avio_rl32(pb);",
"if (avio_read(pb, data, 8) != 8)\nreturn AVERROR(EIO);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
21
],
[
29,
31
],
[
35
],
[
39
],
[
41
],
[
45
],
[
67
],
[
71
],
[
73
],
[
75
],
[
77
],
[
79
],
[
87
],
... |
3,164 | static av_cold int qtrle_decode_init(AVCodecContext *avctx)
{
QtrleContext *s = avctx->priv_data;
s->avctx = avctx;
switch (avctx->bits_per_coded_sample) {
case 1:
case 33:
avctx->pix_fmt = AV_PIX_FMT_MONOWHITE;
break;
case 2:
case 4:
case 8:
case 34:
... | false | FFmpeg | 3b199d29cd597a3518136d78860e172060b9e83d | static av_cold int qtrle_decode_init(AVCodecContext *avctx)
{
QtrleContext *s = avctx->priv_data;
s->avctx = avctx;
switch (avctx->bits_per_coded_sample) {
case 1:
case 33:
avctx->pix_fmt = AV_PIX_FMT_MONOWHITE;
break;
case 2:
case 4:
case 8:
case 34:
... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
QtrleContext *s = avctx->priv_data;
s->avctx = avctx;
switch (avctx->bits_per_coded_sample) {
case 1:
case 33:
avctx->pix_fmt = AV_PIX_FMT_MONOWHITE;
break;
case 2:
case 4:
case 8:
case 34:
case 3... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"QtrleContext *s = avctx->priv_data;",
"s->avctx = avctx;",
"switch (avctx->bits_per_coded_sample) {",
"case 1:\ncase 33:\navctx->pix_fmt = AV_PIX_FMT_MONOWHITE;",
"break;",
"case 2:\ncase 4:\ncase 8:\ncase 34:\ncase 36:\ncase 40:\navctx->pix_fmt = ... | [
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
],
[
23,
25,
27,
29,
31,
33,
35
],
[
37
],
[
41,
43
],
[
45
],
[
49,
51
],
[
53
],
[
57,
59
],
[
61
],
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.