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 |
|---|---|---|---|---|---|---|---|---|---|---|
18,874 | static unsigned int dec_addu_r(DisasContext *dc)
{
TCGv t0;
int size = memsize_z(dc);
DIS(fprintf (logfile, "addu.%c $r%u, $r%u\n",
memsize_char(size),
dc->op1, dc->op2));
cris_cc_mask(dc, CC_MASK_NZVC);
t0 = tcg_temp_new(TCG_TYPE_TL);
/* Size can only be qi or hi. */
t_gen_zext(t0, cpu_... | false | qemu | a7812ae412311d7d47f8aa85656faadac9d64b56 | static unsigned int dec_addu_r(DisasContext *dc)
{
TCGv t0;
int size = memsize_z(dc);
DIS(fprintf (logfile, "addu.%c $r%u, $r%u\n",
memsize_char(size),
dc->op1, dc->op2));
cris_cc_mask(dc, CC_MASK_NZVC);
t0 = tcg_temp_new(TCG_TYPE_TL);
t_gen_zext(t0, cpu_R[dc->op1], size);
cris_alu(dc,... | {
"code": [],
"line_no": []
} | static unsigned int FUNC_0(DisasContext *VAR_0)
{
TCGv t0;
int VAR_1 = memsize_z(VAR_0);
DIS(fprintf (logfile, "addu.%c $r%u, $r%u\n",
memsize_char(VAR_1),
VAR_0->op1, VAR_0->op2));
cris_cc_mask(VAR_0, CC_MASK_NZVC);
t0 = tcg_temp_new(TCG_TYPE_TL);
t_gen_zext(t0, cpu_R[VAR_0->op1], VAR_1... | [
"static unsigned int FUNC_0(DisasContext *VAR_0)\n{",
"TCGv t0;",
"int VAR_1 = memsize_z(VAR_0);",
"DIS(fprintf (logfile, \"addu.%c $r%u, $r%u\\n\",\nmemsize_char(VAR_1),\nVAR_0->op1, VAR_0->op2));",
"cris_cc_mask(VAR_0, CC_MASK_NZVC);",
"t0 = tcg_temp_new(TCG_TYPE_TL);",
"t_gen_zext(t0, cpu_R[VAR_0->op... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11,
13
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
]
] |
18,875 | static void net_rx_packet(void *opaque, const uint8_t *buf, size_t size)
{
struct XenNetDev *netdev = opaque;
netif_rx_request_t rxreq;
RING_IDX rc, rp;
void *page;
if (netdev->xendev.be_state != XenbusStateConnected)
return;
rc = netdev->rx_ring.req_cons;
rp = netdev->rx_ring.... | false | qemu | e3f5ec2b5e92706e3b807059f79b1fb5d936e567 | static void net_rx_packet(void *opaque, const uint8_t *buf, size_t size)
{
struct XenNetDev *netdev = opaque;
netif_rx_request_t rxreq;
RING_IDX rc, rp;
void *page;
if (netdev->xendev.be_state != XenbusStateConnected)
return;
rc = netdev->rx_ring.req_cons;
rp = netdev->rx_ring.... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2)
{
struct XenNetDev *VAR_3 = VAR_0;
netif_rx_request_t rxreq;
RING_IDX rc, rp;
void *VAR_4;
if (VAR_3->xendev.be_state != XenbusStateConnected)
return;
rc = VAR_3->rx_ring.req_cons;
rp = VAR_3->rx_ring.sring->re... | [
"static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2)\n{",
"struct XenNetDev *VAR_3 = VAR_0;",
"netif_rx_request_t rxreq;",
"RING_IDX rc, rp;",
"void *VAR_4;",
"if (VAR_3->xendev.be_state != XenbusStateConnected)\nreturn;",
"rc = VAR_3->rx_ring.req_cons;",
"rp = VAR_3->rx_ring.sring->re... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
49
],
[
51
... |
18,876 | static void mcf_fec_receive(void *opaque, const uint8_t *buf, size_t size)
{
mcf_fec_state *s = (mcf_fec_state *)opaque;
mcf_fec_bd bd;
uint32_t flags = 0;
uint32_t addr;
uint32_t crc;
uint32_t buf_addr;
uint8_t *crc_ptr;
unsigned int buf_len;
DPRINTF("do_rx len %d\n", si... | false | qemu | e3f5ec2b5e92706e3b807059f79b1fb5d936e567 | static void mcf_fec_receive(void *opaque, const uint8_t *buf, size_t size)
{
mcf_fec_state *s = (mcf_fec_state *)opaque;
mcf_fec_bd bd;
uint32_t flags = 0;
uint32_t addr;
uint32_t crc;
uint32_t buf_addr;
uint8_t *crc_ptr;
unsigned int buf_len;
DPRINTF("do_rx len %d\n", si... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2)
{
mcf_fec_state *s = (mcf_fec_state *)VAR_0;
mcf_fec_bd bd;
uint32_t flags = 0;
uint32_t addr;
uint32_t crc;
uint32_t buf_addr;
uint8_t *crc_ptr;
unsigned int VAR_3;
DPRINTF("do_rx len %d\n", VAR_2);
... | [
"static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2)\n{",
"mcf_fec_state *s = (mcf_fec_state *)VAR_0;",
"mcf_fec_bd bd;",
"uint32_t flags = 0;",
"uint32_t addr;",
"uint32_t crc;",
"uint32_t buf_addr;",
"uint8_t *crc_ptr;",
"unsigned int VAR_3;",
"DPRINTF(\"do_rx len %d\\n\", 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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
... |
18,877 | static BlockDriverAIOCB *paio_submit(BlockDriverState *bs, int fd,
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque, int type)
{
RawPosixAIOData *acb = g_slice_new(RawPosixAIOData);
acb->bs = bs;
acb->aio_type = type;
acb->aio_f... | false | qemu | c4d9d19645a484298a67e9021060bc7c2b081d0f | static BlockDriverAIOCB *paio_submit(BlockDriverState *bs, int fd,
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque, int type)
{
RawPosixAIOData *acb = g_slice_new(RawPosixAIOData);
acb->bs = bs;
acb->aio_type = type;
acb->aio_f... | {
"code": [],
"line_no": []
} | static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, int fd,
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque, int type)
{
RawPosixAIOData *acb = g_slice_new(RawPosixAIOData);
acb->bs = bs;
acb->aio_type = type;
acb->aio_fildes... | [
"static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, int fd,\nint64_t sector_num, QEMUIOVector *qiov, int nb_sectors,\nBlockDriverCompletionFunc *cb, void *opaque, int type)\n{",
"RawPosixAIOData *acb = g_slice_new(RawPosixAIOData);",
"acb->bs = bs;",
"acb->aio_type = type;",
"acb->aio_fildes = fd;",
"i... | [
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
],
[
31
],
[
35
],
[
37
],
[
39
]
] |
18,878 | static void fdt_add_pmu_nodes(const VirtMachineState *vms)
{
CPUState *cpu;
ARMCPU *armcpu;
uint32_t irqflags = GIC_FDT_IRQ_FLAGS_LEVEL_HI;
CPU_FOREACH(cpu) {
armcpu = ARM_CPU(cpu);
if (!arm_feature(&armcpu->env, ARM_FEATURE_PMU) ||
!kvm_arm_pmu_create(cpu, PPI(VIRT... | false | qemu | d6f02ce3b8a43ddd8f83553fe754a34b26fb273f | static void fdt_add_pmu_nodes(const VirtMachineState *vms)
{
CPUState *cpu;
ARMCPU *armcpu;
uint32_t irqflags = GIC_FDT_IRQ_FLAGS_LEVEL_HI;
CPU_FOREACH(cpu) {
armcpu = ARM_CPU(cpu);
if (!arm_feature(&armcpu->env, ARM_FEATURE_PMU) ||
!kvm_arm_pmu_create(cpu, PPI(VIRT... | {
"code": [],
"line_no": []
} | static void FUNC_0(const VirtMachineState *VAR_0)
{
CPUState *cpu;
ARMCPU *armcpu;
uint32_t irqflags = GIC_FDT_IRQ_FLAGS_LEVEL_HI;
CPU_FOREACH(cpu) {
armcpu = ARM_CPU(cpu);
if (!arm_feature(&armcpu->env, ARM_FEATURE_PMU) ||
!kvm_arm_pmu_create(cpu, PPI(VIRTUAL_PMU_I... | [
"static void FUNC_0(const VirtMachineState *VAR_0)\n{",
"CPUState *cpu;",
"ARMCPU *armcpu;",
"uint32_t irqflags = GIC_FDT_IRQ_FLAGS_LEVEL_HI;",
"CPU_FOREACH(cpu) {",
"armcpu = ARM_CPU(cpu);",
"if (!arm_feature(&armcpu->env, ARM_FEATURE_PMU) ||\n!kvm_arm_pmu_create(cpu, PPI(VIRTUAL_PMU_IRQ))) {",
"retu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31,
33,
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49,
51
... |
18,879 | static int usb_ohci_initfn_pci(struct PCIDevice *dev)
{
OHCIPCIState *ohci = DO_UPCAST(OHCIPCIState, pci_dev, dev);
int num_ports = 3;
pci_config_set_vendor_id(ohci->pci_dev.config, PCI_VENDOR_ID_APPLE);
pci_config_set_device_id(ohci->pci_dev.config,
PCI_DEVICE_ID_AP... | false | qemu | a8eae58556c7dc693d757a9144045fbee7434c6c | static int usb_ohci_initfn_pci(struct PCIDevice *dev)
{
OHCIPCIState *ohci = DO_UPCAST(OHCIPCIState, pci_dev, dev);
int num_ports = 3;
pci_config_set_vendor_id(ohci->pci_dev.config, PCI_VENDOR_ID_APPLE);
pci_config_set_device_id(ohci->pci_dev.config,
PCI_DEVICE_ID_AP... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct PCIDevice *VAR_0)
{
OHCIPCIState *ohci = DO_UPCAST(OHCIPCIState, pci_dev, VAR_0);
int VAR_1 = 3;
pci_config_set_vendor_id(ohci->pci_dev.config, PCI_VENDOR_ID_APPLE);
pci_config_set_device_id(ohci->pci_dev.config,
PCI_DEVICE_ID_APPLE_IPID_USB)... | [
"static int FUNC_0(struct PCIDevice *VAR_0)\n{",
"OHCIPCIState *ohci = DO_UPCAST(OHCIPCIState, pci_dev, VAR_0);",
"int VAR_1 = 3;",
"pci_config_set_vendor_id(ohci->pci_dev.config, PCI_VENDOR_ID_APPLE);",
"pci_config_set_device_id(ohci->pci_dev.config,\nPCI_DEVICE_ID_APPLE_IPID_USB);",
"ohci->pci_dev.confi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
35
],
[
37
],
[
39
]
] |
18,880 | static int nbd_negotiate_read(QIOChannel *ioc, void *buffer, size_t size)
{
ssize_t ret;
guint watch;
assert(qemu_in_coroutine());
/* Negotiation are always in main loop. */
watch = qio_channel_add_watch(ioc,
G_IO_IN,
nbd_... | false | qemu | d1fdf257d52822695f5ace6c586e059aa17d4b79 | static int nbd_negotiate_read(QIOChannel *ioc, void *buffer, size_t size)
{
ssize_t ret;
guint watch;
assert(qemu_in_coroutine());
watch = qio_channel_add_watch(ioc,
G_IO_IN,
nbd_negotiate_continue,
... | {
"code": [],
"line_no": []
} | static int FUNC_0(QIOChannel *VAR_0, void *VAR_1, size_t VAR_2)
{
ssize_t ret;
guint watch;
assert(qemu_in_coroutine());
watch = qio_channel_add_watch(VAR_0,
G_IO_IN,
nbd_negotiate_continue,
... | [
"static int FUNC_0(QIOChannel *VAR_0, void *VAR_1, size_t VAR_2)\n{",
"ssize_t ret;",
"guint watch;",
"assert(qemu_in_coroutine());",
"watch = qio_channel_add_watch(VAR_0,\nG_IO_IN,\nnbd_negotiate_continue,\nqemu_coroutine_self(),\nNULL);",
"ret = read_sync(VAR_0, VAR_1, VAR_2, NULL);",
"g_source_remove... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15,
17,
19,
21,
23
],
[
25
],
[
27
],
[
29
],
[
33
]
] |
18,881 | static inline void sdhci_reset_write(SDHCIState *s, uint8_t value)
{
switch (value) {
case SDHC_RESET_ALL:
DEVICE_GET_CLASS(s)->reset(DEVICE(s));
break;
case SDHC_RESET_CMD:
s->prnsts &= ~SDHC_CMD_INHIBIT;
s->norintsts &= ~SDHC_NIS_CMDCMP;
break;
case SD... | false | qemu | d368ba4376b2c1c24175c74b3733b8fe64dbe8a6 | static inline void sdhci_reset_write(SDHCIState *s, uint8_t value)
{
switch (value) {
case SDHC_RESET_ALL:
DEVICE_GET_CLASS(s)->reset(DEVICE(s));
break;
case SDHC_RESET_CMD:
s->prnsts &= ~SDHC_CMD_INHIBIT;
s->norintsts &= ~SDHC_NIS_CMDCMP;
break;
case SD... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(SDHCIState *VAR_0, uint8_t VAR_1)
{
switch (VAR_1) {
case SDHC_RESET_ALL:
DEVICE_GET_CLASS(VAR_0)->reset(DEVICE(VAR_0));
break;
case SDHC_RESET_CMD:
VAR_0->prnsts &= ~SDHC_CMD_INHIBIT;
VAR_0->norintsts &= ~SDHC_NIS_CMDCMP;
break;
... | [
"static inline void FUNC_0(SDHCIState *VAR_0, uint8_t VAR_1)\n{",
"switch (VAR_1) {",
"case SDHC_RESET_ALL:\nDEVICE_GET_CLASS(VAR_0)->reset(DEVICE(VAR_0));",
"break;",
"case SDHC_RESET_CMD:\nVAR_0->prnsts &= ~SDHC_CMD_INHIBIT;",
"VAR_0->norintsts &= ~SDHC_NIS_CMDCMP;",
"break;",
"case SDHC_RESET_DATA:... | [
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
]
] |
18,882 | static void print_report(OutputFile *output_files,
OutputStream *ost_table, int nb_ostreams,
int is_last_report, int64_t timer_start)
{
char buf[1024];
OutputStream *ost;
AVFormatContext *oc;
int64_t total_size;
AVCodecContext *enc;
int ... | false | FFmpeg | c09abba1d9e0c30c8720199af3e17bf69ed0ed78 | static void print_report(OutputFile *output_files,
OutputStream *ost_table, int nb_ostreams,
int is_last_report, int64_t timer_start)
{
char buf[1024];
OutputStream *ost;
AVFormatContext *oc;
int64_t total_size;
AVCodecContext *enc;
int ... | {
"code": [],
"line_no": []
} | static void FUNC_0(OutputFile *VAR_0,
OutputStream *VAR_1, int VAR_2,
int VAR_3, int64_t VAR_4)
{
char VAR_5[1024];
OutputStream *ost;
AVFormatContext *oc;
int64_t total_size;
AVCodecContext *enc;
int VAR_6, VAR_7, VAR_8;
double VAR... | [
"static void FUNC_0(OutputFile *VAR_0,\nOutputStream *VAR_1, int VAR_2,\nint VAR_3, int64_t VAR_4)\n{",
"char VAR_5[1024];",
"OutputStream *ost;",
"AVFormatContext *oc;",
"int64_t total_size;",
"AVCodecContext *enc;",
"int VAR_6, VAR_7, VAR_8;",
"double VAR_9;",
"int64_t pts = INT64_MAX;",
"static... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
18,884 | static int ohci_bus_start(OHCIState *ohci)
{
ohci->eof_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL,
ohci_frame_boundary,
ohci);
if (ohci->eof_timer == NULL) {
trace_usb_ohci_bus_eof_timer_failed(ohci->name);
ohci_die(ohci);
return 0;
}
... | false | qemu | fd0a10cd20a1c5ae829be32f3364dae88f435c4e | static int ohci_bus_start(OHCIState *ohci)
{
ohci->eof_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL,
ohci_frame_boundary,
ohci);
if (ohci->eof_timer == NULL) {
trace_usb_ohci_bus_eof_timer_failed(ohci->name);
ohci_die(ohci);
return 0;
}
... | {
"code": [],
"line_no": []
} | static int FUNC_0(OHCIState *VAR_0)
{
VAR_0->eof_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL,
ohci_frame_boundary,
VAR_0);
if (VAR_0->eof_timer == NULL) {
trace_usb_ohci_bus_eof_timer_failed(VAR_0->name);
ohci_die(VAR_0);
return 0;
}
... | [
"static int FUNC_0(OHCIState *VAR_0)\n{",
"VAR_0->eof_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL,\nohci_frame_boundary,\nVAR_0);",
"if (VAR_0->eof_timer == NULL) {",
"trace_usb_ohci_bus_eof_timer_failed(VAR_0->name);",
"ohci_die(VAR_0);",
"return 0;",
"}",
"trace_usb_ohci_start(VAR_0->name);",
"ohci_so... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
33
],
[
35
]
] |
18,885 | static void arm_thistimer_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
arm_mptimer_state *s = (arm_mptimer_state *)opaque;
int id = get_current_cpu(s);
timerblock_write(&s->timerblock[id * 2], addr, value, size);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void arm_thistimer_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
arm_mptimer_state *s = (arm_mptimer_state *)opaque;
int id = get_current_cpu(s);
timerblock_write(&s->timerblock[id * 2], addr, value, size);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
arm_mptimer_state *s = (arm_mptimer_state *)VAR_0;
int VAR_4 = get_current_cpu(s);
timerblock_write(&s->timerblock[VAR_4 * 2], VAR_1, VAR_2, VAR_3);
}
| [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"arm_mptimer_state *s = (arm_mptimer_state *)VAR_0;",
"int VAR_4 = get_current_cpu(s);",
"timerblock_write(&s->timerblock[VAR_4 * 2], VAR_1, VAR_2, VAR_3);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
18,886 | long do_rt_sigreturn(CPUX86State *env)
{
abi_ulong frame_addr;
struct rt_sigframe *frame;
sigset_t set;
int eax;
frame_addr = env->regs[R_ESP] - 4;
if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1))
goto badframe;
target_to_host_sigset(&set, &f... | false | qemu | 1c275925bfbbc2de84a8f0e09d1dd70bbefb6da3 | long do_rt_sigreturn(CPUX86State *env)
{
abi_ulong frame_addr;
struct rt_sigframe *frame;
sigset_t set;
int eax;
frame_addr = env->regs[R_ESP] - 4;
if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1))
goto badframe;
target_to_host_sigset(&set, &f... | {
"code": [],
"line_no": []
} | long FUNC_0(CPUX86State *VAR_0)
{
abi_ulong frame_addr;
struct rt_sigframe *VAR_1;
sigset_t set;
int VAR_2;
frame_addr = VAR_0->regs[R_ESP] - 4;
if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1))
goto badframe;
target_to_host_sigset(&set, &VAR_... | [
"long FUNC_0(CPUX86State *VAR_0)\n{",
"abi_ulong frame_addr;",
"struct rt_sigframe *VAR_1;",
"sigset_t set;",
"int VAR_2;",
"frame_addr = VAR_0->regs[R_ESP] - 4;",
"if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1))\ngoto badframe;",
"target_to_host_sigset(&set, &VAR_1->uc.tuc_sigmask);",
"si... | [
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
],
[
33,
35,
37
],
[
41
],
[
43
],
[
47,
49
],
[
51
],
[
53
],
[
55
]
] |
18,887 | int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
{
const AVCodec *orig_codec = dest->codec;
uint8_t *orig_priv_data = dest->priv_data;
if (avcodec_is_open(dest)) { // check that the dest context is uninitialized
av_log(dest, AV_LOG_ERROR,
"Tried to cop... | false | FFmpeg | 97f856a4c27129f99f2c7a41f7eb33a0d86917f8 | int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
{
const AVCodec *orig_codec = dest->codec;
uint8_t *orig_priv_data = dest->priv_data;
if (avcodec_is_open(dest)) {
av_log(dest, AV_LOG_ERROR,
"Tried to copy AVCodecContext %p into already-initialized %p... | {
"code": [],
"line_no": []
} | int FUNC_0(AVCodecContext *VAR_0, const AVCodecContext *VAR_1)
{
const AVCodec *VAR_2 = VAR_0->codec;
uint8_t *orig_priv_data = VAR_0->priv_data;
if (avcodec_is_open(VAR_0)) {
av_log(VAR_0, AV_LOG_ERROR,
"Tried to copy AVCodecContext %p into already-initialized %p\n",
... | [
"int FUNC_0(AVCodecContext *VAR_0, const AVCodecContext *VAR_1)\n{",
"const AVCodec *VAR_2 = VAR_0->codec;",
"uint8_t *orig_priv_data = VAR_0->priv_data;",
"if (avcodec_is_open(VAR_0)) {",
"av_log(VAR_0, AV_LOG_ERROR,\n\"Tried to copy AVCodecContext %p into already-initialized %p\\n\",\nVAR_1, 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
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15,
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
43
],
[
45
],
[
47
],
[
53
],
[
55
],
[
57
],
[
59... |
18,888 | target_ulong helper_rdhwr_synci_step(CPUMIPSState *env)
{
if ((env->hflags & MIPS_HFLAG_CP0) ||
(env->CP0_HWREna & (1 << 1)))
return env->SYNCI_Step;
else
do_raise_exception(env, EXCP_RI, GETPC());
return 0;
}
| false | qemu | b00c72180c36510bf9b124e190bd520e3b7e1358 | target_ulong helper_rdhwr_synci_step(CPUMIPSState *env)
{
if ((env->hflags & MIPS_HFLAG_CP0) ||
(env->CP0_HWREna & (1 << 1)))
return env->SYNCI_Step;
else
do_raise_exception(env, EXCP_RI, GETPC());
return 0;
}
| {
"code": [],
"line_no": []
} | target_ulong FUNC_0(CPUMIPSState *env)
{
if ((env->hflags & MIPS_HFLAG_CP0) ||
(env->CP0_HWREna & (1 << 1)))
return env->SYNCI_Step;
else
do_raise_exception(env, EXCP_RI, GETPC());
return 0;
}
| [
"target_ulong FUNC_0(CPUMIPSState *env)\n{",
"if ((env->hflags & MIPS_HFLAG_CP0) ||\n(env->CP0_HWREna & (1 << 1)))\nreturn env->SYNCI_Step;",
"else\ndo_raise_exception(env, EXCP_RI, GETPC());",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
11,
13
],
[
17
],
[
19
]
] |
18,889 | static void coroutine_fn bdrv_aio_discard_co_entry(void *opaque)
{
BlockDriverAIOCBCoroutine *acb = opaque;
BlockDriverState *bs = acb->common.bs;
acb->req.error = bdrv_co_discard(bs, acb->req.sector, acb->req.nb_sectors);
acb->bh = qemu_bh_new(bdrv_co_em_bh, acb);
qemu_bh_schedule(acb->bh);... | false | qemu | 2572b37a4751cc967582d7d04f21d9bf97187ae5 | static void coroutine_fn bdrv_aio_discard_co_entry(void *opaque)
{
BlockDriverAIOCBCoroutine *acb = opaque;
BlockDriverState *bs = acb->common.bs;
acb->req.error = bdrv_co_discard(bs, acb->req.sector, acb->req.nb_sectors);
acb->bh = qemu_bh_new(bdrv_co_em_bh, acb);
qemu_bh_schedule(acb->bh);... | {
"code": [],
"line_no": []
} | static void VAR_0 bdrv_aio_discard_co_entry(void *opaque)
{
BlockDriverAIOCBCoroutine *acb = opaque;
BlockDriverState *bs = acb->common.bs;
acb->req.error = bdrv_co_discard(bs, acb->req.sector, acb->req.nb_sectors);
acb->bh = qemu_bh_new(bdrv_co_em_bh, acb);
qemu_bh_schedule(acb->bh);
}
| [
"static void VAR_0 bdrv_aio_discard_co_entry(void *opaque)\n{",
"BlockDriverAIOCBCoroutine *acb = opaque;",
"BlockDriverState *bs = acb->common.bs;",
"acb->req.error = bdrv_co_discard(bs, acb->req.sector, acb->req.nb_sectors);",
"acb->bh = qemu_bh_new(bdrv_co_em_bh, acb);",
"qemu_bh_schedule(acb->bh);",
... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
18,890 | POWERPC_FAMILY(POWER7)(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);
dc->fw_name = "PowerPC,POWER7";
dc->desc = "POWER7";
dc->props = powerpc_servercpu_properties;
pcc->pvr_match = ppc_pvr_match_power7;
pcc->pcr_mas... | false | qemu | 8cd2ce7aaa3c3fadc561f40045d4d53ff72e94ef | POWERPC_FAMILY(POWER7)(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);
dc->fw_name = "PowerPC,POWER7";
dc->desc = "POWER7";
dc->props = powerpc_servercpu_properties;
pcc->pvr_match = ppc_pvr_match_power7;
pcc->pcr_mas... | {
"code": [],
"line_no": []
} | FUNC_0(POWER7)(ObjectClass *oc, void *data)
{
DeviceClass *dc = DEVICE_CLASS(oc);
PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);
dc->fw_name = "PowerPC,POWER7";
dc->desc = "POWER7";
dc->props = powerpc_servercpu_properties;
pcc->pvr_match = ppc_pvr_match_power7;
pcc->pcr_mask = PCR_... | [
"FUNC_0(POWER7)(ObjectClass *oc, void *data)\n{",
"DeviceClass *dc = DEVICE_CLASS(oc);",
"PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);",
"dc->fw_name = \"PowerPC,POWER7\";",
"dc->desc = \"POWER7\";",
"dc->props = powerpc_servercpu_properties;",
"pcc->pvr_match = ppc_pvr_match_power7;",
"pcc->pcr_mask... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47
],
[
49,
51,
53,
55
],
[
57... |
18,894 | static void configure_rtc(QemuOpts *opts)
{
const char *value;
value = qemu_opt_get(opts, "base");
if (value) {
if (!strcmp(value, "utc")) {
rtc_utc = 1;
} else if (!strcmp(value, "localtime")) {
rtc_utc = 0;
} else {
configure_rtc_date... | false | qemu | f61eddcb2bb5cbbdd1d911b7e937db9affc29028 | static void configure_rtc(QemuOpts *opts)
{
const char *value;
value = qemu_opt_get(opts, "base");
if (value) {
if (!strcmp(value, "utc")) {
rtc_utc = 1;
} else if (!strcmp(value, "localtime")) {
rtc_utc = 0;
} else {
configure_rtc_date... | {
"code": [],
"line_no": []
} | static void FUNC_0(QemuOpts *VAR_0)
{
const char *VAR_1;
VAR_1 = qemu_opt_get(VAR_0, "base");
if (VAR_1) {
if (!strcmp(VAR_1, "utc")) {
rtc_utc = 1;
} else if (!strcmp(VAR_1, "localtime")) {
rtc_utc = 0;
} else {
configure_rtc_date_offs... | [
"static void FUNC_0(QemuOpts *VAR_0)\n{",
"const char *VAR_1;",
"VAR_1 = qemu_opt_get(VAR_0, \"base\");",
"if (VAR_1) {",
"if (!strcmp(VAR_1, \"utc\")) {",
"rtc_utc = 1;",
"} else if (!strcmp(VAR_1, \"localtime\")) {",
"rtc_utc = 0;",
"} else {",
"configure_rtc_date_offset(VAR_1, 0);",
"}",
"}... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43... |
18,895 | static inline void t_gen_zext(TCGv d, TCGv s, int size)
{
if (size == 1)
tcg_gen_ext8u_i32(d, s);
else if (size == 2)
tcg_gen_ext16u_i32(d, s);
else if (GET_TCGV(d) != GET_TCGV(s))
tcg_gen_mov_tl(d, s);
}
| false | qemu | a7812ae412311d7d47f8aa85656faadac9d64b56 | static inline void t_gen_zext(TCGv d, TCGv s, int size)
{
if (size == 1)
tcg_gen_ext8u_i32(d, s);
else if (size == 2)
tcg_gen_ext16u_i32(d, s);
else if (GET_TCGV(d) != GET_TCGV(s))
tcg_gen_mov_tl(d, s);
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1, int VAR_2)
{
if (VAR_2 == 1)
tcg_gen_ext8u_i32(VAR_0, VAR_1);
else if (VAR_2 == 2)
tcg_gen_ext16u_i32(VAR_0, VAR_1);
else if (GET_TCGV(VAR_0) != GET_TCGV(VAR_1))
tcg_gen_mov_tl(VAR_0, VAR_1);
}
| [
"static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1, int VAR_2)\n{",
"if (VAR_2 == 1)\ntcg_gen_ext8u_i32(VAR_0, VAR_1);",
"else if (VAR_2 == 2)\ntcg_gen_ext16u_i32(VAR_0, VAR_1);",
"else if (GET_TCGV(VAR_0) != GET_TCGV(VAR_1))\ntcg_gen_mov_tl(VAR_0, VAR_1);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13,
15
],
[
17
]
] |
18,896 | static ssize_t virtio_net_receive(VLANClientState *nc, const uint8_t *buf, size_t size)
{
VirtIONet *n = DO_UPCAST(NICState, nc, nc)->opaque;
struct virtio_net_hdr_mrg_rxbuf *mhdr = NULL;
size_t hdr_len, offset, i;
if (!virtio_net_can_receive(&n->nic->nc))
return -1;
/* hdr_len re... | false | qemu | 279a42535dc977c495bdbda8c8831016e05a0a5d | static ssize_t virtio_net_receive(VLANClientState *nc, const uint8_t *buf, size_t size)
{
VirtIONet *n = DO_UPCAST(NICState, nc, nc)->opaque;
struct virtio_net_hdr_mrg_rxbuf *mhdr = NULL;
size_t hdr_len, offset, i;
if (!virtio_net_can_receive(&n->nic->nc))
return -1;
hdr_len... | {
"code": [],
"line_no": []
} | static ssize_t FUNC_0(VLANClientState *nc, const uint8_t *buf, size_t size)
{
VirtIONet *n = DO_UPCAST(NICState, nc, nc)->opaque;
struct virtio_net_hdr_mrg_rxbuf *VAR_0 = NULL;
size_t hdr_len, offset, i;
if (!virtio_net_can_receive(&n->nic->nc))
return -1;
hdr_len = n->merge... | [
"static ssize_t FUNC_0(VLANClientState *nc, const uint8_t *buf, size_t size)\n{",
"VirtIONet *n = DO_UPCAST(NICState, nc, nc)->opaque;",
"struct virtio_net_hdr_mrg_rxbuf *VAR_0 = NULL;",
"size_t hdr_len, offset, i;",
"if (!virtio_net_can_receive(&n->nic->nc))\nreturn -1;",
"hdr_len = n->mergeable_rx_bufs ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
21,
23
],
[
29,
31
],
[
35,
37
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
59,
61
],
[
63,
65
],
[
67,... |
18,897 | static InputEvent *qapi_clone_InputEvent(InputEvent *src)
{
QmpOutputVisitor *qov;
QmpInputVisitor *qiv;
Visitor *ov, *iv;
QObject *obj;
InputEvent *dst = NULL;
qov = qmp_output_visitor_new();
ov = qmp_output_get_visitor(qov);
visit_type_InputEvent(ov, NULL, &src, &error_abort... | false | qemu | 240f64b6dc3346d044d7beb7cc3a53668ce47384 | static InputEvent *qapi_clone_InputEvent(InputEvent *src)
{
QmpOutputVisitor *qov;
QmpInputVisitor *qiv;
Visitor *ov, *iv;
QObject *obj;
InputEvent *dst = NULL;
qov = qmp_output_visitor_new();
ov = qmp_output_get_visitor(qov);
visit_type_InputEvent(ov, NULL, &src, &error_abort... | {
"code": [],
"line_no": []
} | static InputEvent *FUNC_0(InputEvent *src)
{
QmpOutputVisitor *qov;
QmpInputVisitor *qiv;
Visitor *ov, *iv;
QObject *obj;
InputEvent *dst = NULL;
qov = qmp_output_visitor_new();
ov = qmp_output_get_visitor(qov);
visit_type_InputEvent(ov, NULL, &src, &error_abort);
obj = q... | [
"static InputEvent *FUNC_0(InputEvent *src)\n{",
"QmpOutputVisitor *qov;",
"QmpInputVisitor *qiv;",
"Visitor *ov, *iv;",
"QObject *obj;",
"InputEvent *dst = NULL;",
"qov = qmp_output_visitor_new();",
"ov = qmp_output_get_visitor(qov);",
"visit_type_InputEvent(ov, NULL, &src, &error_abort);",
"obj ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
... |
18,899 | static void stop(DBDMA_channel *ch)
{
ch->regs[DBDMA_STATUS] &= cpu_to_be32(~(ACTIVE|DEAD|FLUSH));
/* the stop command does not increment command pointer */
}
| false | qemu | ad674e53b5cce265fadafbde2c6a4f190345cd00 | static void stop(DBDMA_channel *ch)
{
ch->regs[DBDMA_STATUS] &= cpu_to_be32(~(ACTIVE|DEAD|FLUSH));
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(DBDMA_channel *VAR_0)
{
VAR_0->regs[DBDMA_STATUS] &= cpu_to_be32(~(ACTIVE|DEAD|FLUSH));
}
| [
"static void FUNC_0(DBDMA_channel *VAR_0)\n{",
"VAR_0->regs[DBDMA_STATUS] &= cpu_to_be32(~(ACTIVE|DEAD|FLUSH));",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
]
] |
18,900 | void qmp_drive_mirror(const char *device, const char *target,
bool has_format, const char *format,
enum MirrorSyncMode sync,
bool has_mode, enum NewImageMode mode,
bool has_speed, int64_t speed,
bool has_g... | false | qemu | cb78466ef60ccf707a6f38a1294c435b65a828e0 | void qmp_drive_mirror(const char *device, const char *target,
bool has_format, const char *format,
enum MirrorSyncMode sync,
bool has_mode, enum NewImageMode mode,
bool has_speed, int64_t speed,
bool has_g... | {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0, const char *VAR_1,
bool VAR_2, const char *VAR_3,
enum MirrorSyncMode VAR_4,
bool VAR_5, enum NewImageMode VAR_6,
bool VAR_7, int64_t VAR_8,
bool VAR_9, uint32_t VAR_10,
... | [
"void FUNC_0(const char *VAR_0, const char *VAR_1,\nbool VAR_2, const char *VAR_3,\nenum MirrorSyncMode VAR_4,\nbool VAR_5, enum NewImageMode VAR_6,\nbool VAR_7, int64_t VAR_8,\nbool VAR_9, uint32_t VAR_10,\nbool VAR_11, int64_t VAR_12,\nbool VAR_13, BlockdevOnError VAR_14,\nbool VAR_15, BlockdevOnError VAR_16,\nEr... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
49
],
[
51
],
[... |
18,901 | static void gen_delayed_conditional_jump(DisasContext * ctx)
{
int l1;
TCGv ds;
l1 = gen_new_label();
ds = tcg_temp_new();
tcg_gen_andi_i32(ds, cpu_flags, DELAY_SLOT_TRUE);
tcg_gen_brcondi_i32(TCG_COND_NE, ds, 0, l1);
gen_goto_tb(ctx, 1, ctx->pc + 2);
gen_set_label(l1);
t... | false | qemu | 42a268c241183877192c376d03bd9b6d527407c7 | static void gen_delayed_conditional_jump(DisasContext * ctx)
{
int l1;
TCGv ds;
l1 = gen_new_label();
ds = tcg_temp_new();
tcg_gen_andi_i32(ds, cpu_flags, DELAY_SLOT_TRUE);
tcg_gen_brcondi_i32(TCG_COND_NE, ds, 0, l1);
gen_goto_tb(ctx, 1, ctx->pc + 2);
gen_set_label(l1);
t... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext * VAR_0)
{
int VAR_1;
TCGv ds;
VAR_1 = gen_new_label();
ds = tcg_temp_new();
tcg_gen_andi_i32(ds, cpu_flags, DELAY_SLOT_TRUE);
tcg_gen_brcondi_i32(TCG_COND_NE, ds, 0, VAR_1);
gen_goto_tb(VAR_0, 1, VAR_0->pc + 2);
gen_set_label(VAR_1);
tcg_g... | [
"static void FUNC_0(DisasContext * VAR_0)\n{",
"int VAR_1;",
"TCGv ds;",
"VAR_1 = gen_new_label();",
"ds = tcg_temp_new();",
"tcg_gen_andi_i32(ds, cpu_flags, DELAY_SLOT_TRUE);",
"tcg_gen_brcondi_i32(TCG_COND_NE, ds, 0, VAR_1);",
"gen_goto_tb(VAR_0, 1, VAR_0->pc + 2);",
"gen_set_label(VAR_1);",
"tc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
18,902 | static void qmp_input_type_number(Visitor *v, const char *name, double *obj,
Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QObject *qobj = qmp_input_get_object(qiv, name, true, errp);
QInt *qint;
QFloat *qfloat;
if (!qobj) {
return;
}
... | false | qemu | 09e68369a88d7de0f988972bf28eec1b80cc47f9 | static void qmp_input_type_number(Visitor *v, const char *name, double *obj,
Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QObject *qobj = qmp_input_get_object(qiv, name, true, errp);
QInt *qint;
QFloat *qfloat;
if (!qobj) {
return;
}
... | {
"code": [],
"line_no": []
} | static void FUNC_0(Visitor *VAR_0, const char *VAR_1, double *VAR_2,
Error **VAR_3)
{
QmpInputVisitor *qiv = to_qiv(VAR_0);
QObject *qobj = qmp_input_get_object(qiv, VAR_1, true, VAR_3);
QInt *qint;
QFloat *qfloat;
if (!qobj) {
return;
}
... | [
"static void FUNC_0(Visitor *VAR_0, const char *VAR_1, double *VAR_2,\nError **VAR_3)\n{",
"QmpInputVisitor *qiv = to_qiv(VAR_0);",
"QObject *qobj = qmp_input_get_object(qiv, VAR_1, true, VAR_3);",
"QInt *qint;",
"QFloat *qfloat;",
"if (!qobj) {",
"return;",
"}",
"qint = qobject_to_qint(qobj);",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47,
49
... |
18,903 | static void test_dynamic_globalprop(void)
{
g_test_trap_subprocess("/qdev/properties/dynamic/global/subprocess", 0, 0);
g_test_trap_assert_passed();
g_test_trap_assert_stderr_unmatched("*prop1*");
g_test_trap_assert_stderr_unmatched("*prop2*");
g_test_trap_assert_stderr("*Warning: \"-global dy... | false | qemu | b3ce84fea466f3bca2ff85d158744f00c0f429bd | static void test_dynamic_globalprop(void)
{
g_test_trap_subprocess("/qdev/properties/dynamic/global/subprocess", 0, 0);
g_test_trap_assert_passed();
g_test_trap_assert_stderr_unmatched("*prop1*");
g_test_trap_assert_stderr_unmatched("*prop2*");
g_test_trap_assert_stderr("*Warning: \"-global dy... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
g_test_trap_subprocess("/qdev/properties/dynamic/global/subprocess", 0, 0);
g_test_trap_assert_passed();
g_test_trap_assert_stderr_unmatched("*prop1*");
g_test_trap_assert_stderr_unmatched("*prop2*");
g_test_trap_assert_stderr("*Warning: \"-global dynamic-prop-type-b... | [
"static void FUNC_0(void)\n{",
"g_test_trap_subprocess(\"/qdev/properties/dynamic/global/subprocess\", 0, 0);",
"g_test_trap_assert_passed();",
"g_test_trap_assert_stderr_unmatched(\"*prop1*\");",
"g_test_trap_assert_stderr_unmatched(\"*prop2*\");",
"g_test_trap_assert_stderr(\"*Warning: \\\"-global dynam... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
18,904 | static void audio_init (void)
{
size_t i;
int done = 0;
const char *drvname;
VMChangeStateEntry *e;
AudioState *s = &glob_audio_state;
if (s->drv) {
return;
}
QLIST_INIT (&s->hw_head_out);
QLIST_INIT (&s->hw_head_in);
QLIST_INIT (&s->cap_head);
atexit... | false | qemu | 74475455442398a64355428b37422d14ccc293cb | static void audio_init (void)
{
size_t i;
int done = 0;
const char *drvname;
VMChangeStateEntry *e;
AudioState *s = &glob_audio_state;
if (s->drv) {
return;
}
QLIST_INIT (&s->hw_head_out);
QLIST_INIT (&s->hw_head_in);
QLIST_INIT (&s->cap_head);
atexit... | {
"code": [],
"line_no": []
} | static void FUNC_0 (void)
{
size_t i;
int VAR_0 = 0;
const char *VAR_1;
VMChangeStateEntry *e;
AudioState *s = &glob_audio_state;
if (s->drv) {
return;
}
QLIST_INIT (&s->hw_head_out);
QLIST_INIT (&s->hw_head_in);
QLIST_INIT (&s->cap_head);
atexit (aud... | [
"static void FUNC_0 (void)\n{",
"size_t i;",
"int VAR_0 = 0;",
"const char *VAR_1;",
"VMChangeStateEntry *e;",
"AudioState *s = &glob_audio_state;",
"if (s->drv) {",
"return;",
"}",
"QLIST_INIT (&s->hw_head_out);",
"QLIST_INIT (&s->hw_head_in);",
"QLIST_INIT (&s->cap_head);",
"atexit (audio_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
49
],
[
51
... |
18,906 | void build_memory_hotplug_aml(Aml *table, uint32_t nr_mem,
uint16_t io_base, uint16_t io_len,
const char *res_root,
const char *event_handler_method)
{
int i;
Aml *ifctx;
Aml *method;
Aml *sb_scope;
Am... | false | qemu | 80db0e7822962554c91bef05d784c898e8ab1c3c | void build_memory_hotplug_aml(Aml *table, uint32_t nr_mem,
uint16_t io_base, uint16_t io_len,
const char *res_root,
const char *event_handler_method)
{
int i;
Aml *ifctx;
Aml *method;
Aml *sb_scope;
Am... | {
"code": [],
"line_no": []
} | void FUNC_0(Aml *VAR_0, uint32_t VAR_1,
uint16_t VAR_2, uint16_t VAR_3,
const char *VAR_4,
const char *VAR_5)
{
int VAR_6;
Aml *ifctx;
Aml *method;
Aml *sb_scope;
Aml *mem_ctrl_dev;
char *VAR_7;
... | [
"void FUNC_0(Aml *VAR_0, uint32_t VAR_1,\nuint16_t VAR_2, uint16_t VAR_3,\nconst char *VAR_4,\nconst char *VAR_5)\n{",
"int VAR_6;",
"Aml *ifctx;",
"Aml *method;",
"Aml *sb_scope;",
"Aml *mem_ctrl_dev;",
"char *VAR_7;",
"char *VAR_8 = g_strdup_printf(\"%s.\" MEMORY_HOTPLUG_DEVICE, VAR_4);",
"mem_ctr... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
45
],
[... |
18,907 | char *g_strdup_printf(const char *format, ...)
{
char ch, *s;
size_t len;
__coverity_string_null_sink__(format);
__coverity_string_size_sink__(format);
ch = *format;
s = __coverity_alloc_nosize__();
__coverity_writeall__(s);
__coverity_mark_as_afm_allocated__(s, AFM_free);... | false | qemu | 7ad4c7200111d20eb97eed4f46b6026e3f0b0eef | char *g_strdup_printf(const char *format, ...)
{
char ch, *s;
size_t len;
__coverity_string_null_sink__(format);
__coverity_string_size_sink__(format);
ch = *format;
s = __coverity_alloc_nosize__();
__coverity_writeall__(s);
__coverity_mark_as_afm_allocated__(s, AFM_free);... | {
"code": [],
"line_no": []
} | char *FUNC_0(const char *VAR_0, ...)
{
char VAR_1, *VAR_2;
size_t len;
__coverity_string_null_sink__(VAR_0);
__coverity_string_size_sink__(VAR_0);
VAR_1 = *VAR_0;
VAR_2 = __coverity_alloc_nosize__();
__coverity_writeall__(VAR_2);
__coverity_mark_as_afm_allocated__(VAR_2, A... | [
"char *FUNC_0(const char *VAR_0, ...)\n{",
"char VAR_1, *VAR_2;",
"size_t len;",
"__coverity_string_null_sink__(VAR_0);",
"__coverity_string_size_sink__(VAR_0);",
"VAR_1 = *VAR_0;",
"VAR_2 = __coverity_alloc_nosize__();",
"__coverity_writeall__(VAR_2);",
"__coverity_mark_as_afm_allocated__(VAR_2, AF... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
18,908 | static int check_features_against_host(x86_def_t *guest_def)
{
x86_def_t host_def;
uint32_t mask;
int rv, i;
struct model_features_t ft[] = {
{&guest_def->features, &host_def.features,
~0, feature_name, 0x00000000},
{&guest_def->ext_features, &host_def.ext_features,
... | false | qemu | 6e746f30558cb1331598575918c2a8808be2a75b | static int check_features_against_host(x86_def_t *guest_def)
{
x86_def_t host_def;
uint32_t mask;
int rv, i;
struct model_features_t ft[] = {
{&guest_def->features, &host_def.features,
~0, feature_name, 0x00000000},
{&guest_def->ext_features, &host_def.ext_features,
... | {
"code": [],
"line_no": []
} | static int FUNC_0(x86_def_t *VAR_0)
{
x86_def_t host_def;
uint32_t mask;
int VAR_1, VAR_2;
struct model_features_t VAR_3[] = {
{&VAR_0->features, &host_def.features,
~0, feature_name, 0x00000000},
{&VAR_0->ext_features, &host_def.ext_features,
~CPUID_EXT_... | [
"static int FUNC_0(x86_def_t *VAR_0)\n{",
"x86_def_t host_def;",
"uint32_t mask;",
"int VAR_1, VAR_2;",
"struct model_features_t VAR_3[] = {",
"{&VAR_0->features, &host_def.features,",
"~0, feature_name, 0x00000000},",
"{&VAR_0->ext_features, &host_def.ext_features,",
"~CPUID_EXT_HYPERVISOR, ext_fea... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[... |
18,909 | static int rkmpp_retrieve_frame(AVCodecContext *avctx, AVFrame *frame)
{
RKMPPDecodeContext *rk_context = avctx->priv_data;
RKMPPDecoder *decoder = (RKMPPDecoder *)rk_context->decoder_ref->data;
RKMPPFrameContext *framecontext = NULL;
AVBufferRef *framecontextref = NULL;
int ret;
MppFrame... | false | FFmpeg | 7bec3f78da2533968b7246ff222770582ab4aafb | static int rkmpp_retrieve_frame(AVCodecContext *avctx, AVFrame *frame)
{
RKMPPDecodeContext *rk_context = avctx->priv_data;
RKMPPDecoder *decoder = (RKMPPDecoder *)rk_context->decoder_ref->data;
RKMPPFrameContext *framecontext = NULL;
AVBufferRef *framecontextref = NULL;
int ret;
MppFrame... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)
{
RKMPPDecodeContext *rk_context = VAR_0->priv_data;
RKMPPDecoder *decoder = (RKMPPDecoder *)rk_context->decoder_ref->data;
RKMPPFrameContext *framecontext = NULL;
AVBufferRef *framecontextref = NULL;
int VAR_2;
MppFrame mppframe = ... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)\n{",
"RKMPPDecodeContext *rk_context = VAR_0->priv_data;",
"RKMPPDecoder *decoder = (RKMPPDecoder *)rk_context->decoder_ref->data;",
"RKMPPFrameContext *framecontext = NULL;",
"AVBufferRef *framecontextref = NULL;",
"int VAR_2;",
"MppFrame mppfra... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[... |
18,910 | START_TEST(qfloat_from_double_test)
{
QFloat *qf;
const double value = -42.23423;
qf = qfloat_from_double(value);
fail_unless(qf != NULL);
fail_unless(qf->value == value);
fail_unless(qf->base.refcnt == 1);
fail_unless(qobject_type(QOBJECT(qf)) == QTYPE_QFLOAT);
// destroy d... | false | qemu | a9e1c28ddaae5a48415fec1f336b5560eb85d3e1 | START_TEST(qfloat_from_double_test)
{
QFloat *qf;
const double value = -42.23423;
qf = qfloat_from_double(value);
fail_unless(qf != NULL);
fail_unless(qf->value == value);
fail_unless(qf->base.refcnt == 1);
fail_unless(qobject_type(QOBJECT(qf)) == QTYPE_QFLOAT);
g_free... | {
"code": [],
"line_no": []
} | FUNC_0(VAR_0)
{
QFloat *qf;
const double VAR_1 = -42.23423;
qf = qfloat_from_double(VAR_1);
fail_unless(qf != NULL);
fail_unless(qf->VAR_1 == VAR_1);
fail_unless(qf->base.refcnt == 1);
fail_unless(qobject_type(QOBJECT(qf)) == QTYPE_QFLOAT);
g_free(qf);
}
| [
"FUNC_0(VAR_0)\n{",
"QFloat *qf;",
"const double VAR_1 = -42.23423;",
"qf = qfloat_from_double(VAR_1);",
"fail_unless(qf != NULL);",
"fail_unless(qf->VAR_1 == VAR_1);",
"fail_unless(qf->base.refcnt == 1);",
"fail_unless(qobject_type(QOBJECT(qf)) == QTYPE_QFLOAT);",
"g_free(qf);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
25
],
[
27
]
] |
18,911 | static int vnc_start_vencrypt_handshake(struct VncState *vs) {
int ret;
if ((ret = gnutls_handshake(vs->tls.session)) < 0) {
if (!gnutls_error_is_fatal(ret)) {
VNC_DEBUG("Handshake interrupted (blocking)\n");
if (!gnutls_record_get_direction(vs->tls.session))
... | false | qemu | 494cb81741f867319f11ecfa0949168baf9f01d7 | static int vnc_start_vencrypt_handshake(struct VncState *vs) {
int ret;
if ((ret = gnutls_handshake(vs->tls.session)) < 0) {
if (!gnutls_error_is_fatal(ret)) {
VNC_DEBUG("Handshake interrupted (blocking)\n");
if (!gnutls_record_get_direction(vs->tls.session))
... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct VncState *VAR_0) {
int VAR_1;
if ((VAR_1 = gnutls_handshake(VAR_0->tls.session)) < 0) {
if (!gnutls_error_is_fatal(VAR_1)) {
VNC_DEBUG("Handshake interrupted (blocking)\n");
if (!gnutls_record_get_direction(VAR_0->tls.session))
qemu_se... | [
"static int FUNC_0(struct VncState *VAR_0) {",
"int VAR_1;",
"if ((VAR_1 = gnutls_handshake(VAR_0->tls.session)) < 0) {",
"if (!gnutls_error_is_fatal(VAR_1)) {",
"VNC_DEBUG(\"Handshake interrupted (blocking)\\n\");",
"if (!gnutls_record_get_direction(VAR_0->tls.session))\nqemu_set_fd_handler(VAR_0->csock,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
... |
18,912 | static void spapr_powerdown_req(Notifier *n, void *opaque)
{
sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());
struct rtas_error_log *hdr;
struct rtas_event_log_v6 *v6hdr;
struct rtas_event_log_v6_maina *maina;
struct rtas_event_log_v6_mainb *mainb;
struct rtas_event_log_v6_ep... | false | qemu | fd38804b388fdd5f3abd108f260d3e9d625ff7ad | static void spapr_powerdown_req(Notifier *n, void *opaque)
{
sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());
struct rtas_error_log *hdr;
struct rtas_event_log_v6 *v6hdr;
struct rtas_event_log_v6_maina *maina;
struct rtas_event_log_v6_mainb *mainb;
struct rtas_event_log_v6_ep... | {
"code": [],
"line_no": []
} | static void FUNC_0(Notifier *VAR_0, void *VAR_1)
{
sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());
struct rtas_error_log *VAR_2;
struct rtas_event_log_v6 *VAR_3;
struct rtas_event_log_v6_maina *VAR_4;
struct rtas_event_log_v6_mainb *VAR_5;
struct rtas_event_log_v6_epow *VAR_... | [
"static void FUNC_0(Notifier *VAR_0, void *VAR_1)\n{",
"sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());",
"struct rtas_error_log *VAR_2;",
"struct rtas_event_log_v6 *VAR_3;",
"struct rtas_event_log_v6_maina *VAR_4;",
"struct rtas_event_log_v6_mainb *VAR_5;",
"struct rtas_event_log_v6_epow ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35,
37,
39,
41,
43
],
[
45,
47
],
[
51
],
[... |
18,913 | static int bdrv_open_common(BlockDriverState *bs, BlockDriverState *file,
QDict *options, int flags, BlockDriver *drv, Error **errp)
{
int ret, open_flags;
const char *filename;
const char *node_name = NULL;
Error *local_err = NULL;
assert(drv != NULL);
assert(bs->file == NULL);
... | false | qemu | 53a295131274c87914c97053e2ca00f19a9c2efa | static int bdrv_open_common(BlockDriverState *bs, BlockDriverState *file,
QDict *options, int flags, BlockDriver *drv, Error **errp)
{
int ret, open_flags;
const char *filename;
const char *node_name = NULL;
Error *local_err = NULL;
assert(drv != NULL);
assert(bs->file == NULL);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1,
QDict *VAR_2, int VAR_3, BlockDriver *VAR_4, Error **VAR_5)
{
int VAR_6, VAR_7;
const char *VAR_8;
const char *VAR_9 = NULL;
Error *local_err = NULL;
assert(VAR_4 != NULL);
assert(VAR_0->VAR_1 == NULL);
assert... | [
"static int FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1,\nQDict *VAR_2, int VAR_3, BlockDriver *VAR_4, Error **VAR_5)\n{",
"int VAR_6, VAR_7;",
"const char *VAR_8;",
"const char *VAR_9 = NULL;",
"Error *local_err = NULL;",
"assert(VAR_4 != NULL);",
"assert(VAR_0->VAR_1 == NULL);",
"assert(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
49
],
[
53
... |
18,914 | static uint32_t bonito_spciconf_readl(void *opaque, target_phys_addr_t addr)
{
PCIBonitoState *s = opaque;
PCIDevice *d = PCI_DEVICE(s);
PCIHostState *phb = PCI_HOST_BRIDGE(s->pcihost);
uint32_t pciaddr;
uint16_t status;
DPRINTF("bonito_spciconf_readl "TARGET_FMT_plx"\n", addr);
as... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint32_t bonito_spciconf_readl(void *opaque, target_phys_addr_t addr)
{
PCIBonitoState *s = opaque;
PCIDevice *d = PCI_DEVICE(s);
PCIHostState *phb = PCI_HOST_BRIDGE(s->pcihost);
uint32_t pciaddr;
uint16_t status;
DPRINTF("bonito_spciconf_readl "TARGET_FMT_plx"\n", addr);
as... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)
{
PCIBonitoState *s = opaque;
PCIDevice *d = PCI_DEVICE(s);
PCIHostState *phb = PCI_HOST_BRIDGE(s->pcihost);
uint32_t pciaddr;
uint16_t status;
DPRINTF("FUNC_0 "TARGET_FMT_plx"\n", addr);
assert((addr & 0x3) == 0);
... | [
"static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{",
"PCIBonitoState *s = opaque;",
"PCIDevice *d = PCI_DEVICE(s);",
"PCIHostState *phb = PCI_HOST_BRIDGE(s->pcihost);",
"uint32_t pciaddr;",
"uint16_t status;",
"DPRINTF(\"FUNC_0 \"TARGET_FMT_plx\"\\n\", addr);",
"assert((addr & 0x3) == 0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
37
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
]
] |
18,917 | static VirtIOSerialPort *find_port_by_name(char *name)
{
VirtIOSerial *vser;
QLIST_FOREACH(vser, &vserdevices.devices, next) {
VirtIOSerialPort *port;
QTAILQ_FOREACH(port, &vser->ports, next) {
if (!strcmp(port->name, name)) {
return port;
}
... | false | qemu | b18a755c4266a340a25ab4118525bd57c3dfc3fa | static VirtIOSerialPort *find_port_by_name(char *name)
{
VirtIOSerial *vser;
QLIST_FOREACH(vser, &vserdevices.devices, next) {
VirtIOSerialPort *port;
QTAILQ_FOREACH(port, &vser->ports, next) {
if (!strcmp(port->name, name)) {
return port;
}
... | {
"code": [],
"line_no": []
} | static VirtIOSerialPort *FUNC_0(char *name)
{
VirtIOSerial *vser;
QLIST_FOREACH(vser, &vserdevices.devices, next) {
VirtIOSerialPort *port;
QTAILQ_FOREACH(port, &vser->ports, next) {
if (!strcmp(port->name, name)) {
return port;
}
}
... | [
"static VirtIOSerialPort *FUNC_0(char *name)\n{",
"VirtIOSerial *vser;",
"QLIST_FOREACH(vser, &vserdevices.devices, next) {",
"VirtIOSerialPort *port;",
"QTAILQ_FOREACH(port, &vser->ports, next) {",
"if (!strcmp(port->name, name)) {",
"return port;",
"}",
"}",
"}",
"return NULL;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
18,918 | void op_mtc0_status (void)
{
uint32_t val, old;
uint32_t mask = env->Status_rw_bitmask;
/* No reverse endianness, no MDMX/DSP, no 64bit ops
implemented. */
val = T0 & mask;
old = env->CP0_Status;
if (!(val & (1 << CP0St_EXL)) &&
!(val & (1 << CP0St_ERL)) &&
!(e... | false | qemu | 5e755519ac9d867f7da13f58a9d0c262db82e14c | void op_mtc0_status (void)
{
uint32_t val, old;
uint32_t mask = env->Status_rw_bitmask;
val = T0 & mask;
old = env->CP0_Status;
if (!(val & (1 << CP0St_EXL)) &&
!(val & (1 << CP0St_ERL)) &&
!(env->hflags & MIPS_HFLAG_DM) &&
(val & (1 << CP0St_UM)))
... | {
"code": [],
"line_no": []
} | void FUNC_0 (void)
{
uint32_t val, old;
uint32_t mask = env->Status_rw_bitmask;
val = T0 & mask;
old = env->CP0_Status;
if (!(val & (1 << CP0St_EXL)) &&
!(val & (1 << CP0St_ERL)) &&
!(env->hflags & MIPS_HFLAG_DM) &&
(val & (1 << CP0St_UM)))
env->hf... | [
"void FUNC_0 (void)\n{",
"uint32_t val, old;",
"uint32_t mask = env->Status_rw_bitmask;",
"val = T0 & mask;",
"old = env->CP0_Status;",
"if (!(val & (1 << CP0St_EXL)) &&\n!(val & (1 << CP0St_ERL)) &&\n!(env->hflags & MIPS_HFLAG_DM) &&\n(val & (1 << CP0St_UM)))\nenv->hflags |= MIPS_HFLAG_UM;",
"#ifdef TA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
15
],
[
17
],
[
19,
21,
23,
25,
27
],
[
29,
31,
33,
35,
37
],
[
39,
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
]
] |
18,919 | static inline uint32_t ldl_phys_internal(target_phys_addr_t addr,
enum device_endian endian)
{
uint8_t *ptr;
uint32_t val;
MemoryRegionSection *section;
section = phys_page_find(address_space_memory.dispatch, addr >> TARGET_PAGE_BITS);
if (!(memory... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static inline uint32_t ldl_phys_internal(target_phys_addr_t addr,
enum device_endian endian)
{
uint8_t *ptr;
uint32_t val;
MemoryRegionSection *section;
section = phys_page_find(address_space_memory.dispatch, addr >> TARGET_PAGE_BITS);
if (!(memory... | {
"code": [],
"line_no": []
} | static inline uint32_t FUNC_0(target_phys_addr_t addr,
enum device_endian endian)
{
uint8_t *ptr;
uint32_t val;
MemoryRegionSection *section;
section = phys_page_find(address_space_memory.dispatch, addr >> TARGET_PAGE_BITS);
if (!(memory_region_is_... | [
"static inline uint32_t FUNC_0(target_phys_addr_t addr,\nenum device_endian endian)\n{",
"uint8_t *ptr;",
"uint32_t val;",
"MemoryRegionSection *section;",
"section = phys_page_find(address_space_memory.dispatch, addr >> TARGET_PAGE_BITS);",
"if (!(memory_region_is_ram(section->mr) ||\nmemory_region_is_ro... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19,
21
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45,
47
],
[
51,
53,
55
],
[... |
18,920 | static int vtd_irte_get(IntelIOMMUState *iommu, uint16_t index,
VTD_IRTE *entry)
{
dma_addr_t addr = 0x00;
addr = iommu->intr_root + index * sizeof(*entry);
if (dma_memory_read(&address_space_memory, addr, entry,
sizeof(*entry))) {
VTD_DPRINTF... | false | qemu | ede9c94acf6cd1968de4188c0228b714ab871a86 | static int vtd_irte_get(IntelIOMMUState *iommu, uint16_t index,
VTD_IRTE *entry)
{
dma_addr_t addr = 0x00;
addr = iommu->intr_root + index * sizeof(*entry);
if (dma_memory_read(&address_space_memory, addr, entry,
sizeof(*entry))) {
VTD_DPRINTF... | {
"code": [],
"line_no": []
} | static int FUNC_0(IntelIOMMUState *VAR_0, uint16_t VAR_1,
VTD_IRTE *VAR_2)
{
dma_addr_t addr = 0x00;
addr = VAR_0->intr_root + VAR_1 * sizeof(*VAR_2);
if (dma_memory_read(&address_space_memory, addr, VAR_2,
sizeof(*VAR_2))) {
VTD_DPRINTF(GENER... | [
"static int FUNC_0(IntelIOMMUState *VAR_0, uint16_t VAR_1,\nVTD_IRTE *VAR_2)\n{",
"dma_addr_t addr = 0x00;",
"addr = VAR_0->intr_root + VAR_1 * sizeof(*VAR_2);",
"if (dma_memory_read(&address_space_memory, addr, VAR_2,\nsizeof(*VAR_2))) {",
"VTD_DPRINTF(GENERAL, \"error: fail to access IR root at 0x%\"PRIx6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13,
15
],
[
17,
19
],
[
21
],
[
23
],
[
27
],
[
29,
31,
33,
35
],
[
37
],
[
39
],
[
43,
45
],
[
47,
49,
51,
53
],
[
55
],
[
57... |
18,921 | static CharDriverState *qemu_chr_open_pty(void)
{
struct termios tty;
int master_fd, slave_fd;
if (openpty(&master_fd, &slave_fd, NULL, NULL, NULL) < 0) {
return NULL;
}
/* Set raw attributes on the pty. */
cfmakeraw(&tty);
tcsetattr(slave_fd, TCSAFLUSH, &tty);
fp... | false | qemu | 279e694bc7bae106dc1178e7fbb60dfb832396e7 | static CharDriverState *qemu_chr_open_pty(void)
{
struct termios tty;
int master_fd, slave_fd;
if (openpty(&master_fd, &slave_fd, NULL, NULL, NULL) < 0) {
return NULL;
}
cfmakeraw(&tty);
tcsetattr(slave_fd, TCSAFLUSH, &tty);
fprintf(stderr, "char device redirecte... | {
"code": [],
"line_no": []
} | static CharDriverState *FUNC_0(void)
{
struct termios VAR_0;
int VAR_1, VAR_2;
if (openpty(&VAR_1, &VAR_2, NULL, NULL, NULL) < 0) {
return NULL;
}
cfmakeraw(&VAR_0);
tcsetattr(VAR_2, TCSAFLUSH, &VAR_0);
fprintf(stderr, "char device redirected to %s\n", ptsname(VA... | [
"static CharDriverState *FUNC_0(void)\n{",
"struct termios VAR_0;",
"int VAR_1, VAR_2;",
"if (openpty(&VAR_1, &VAR_2, NULL, NULL, NULL) < 0) {",
"return NULL;",
"}",
"cfmakeraw(&VAR_0);",
"tcsetattr(VAR_2, TCSAFLUSH, &VAR_0);",
"fprintf(stderr, \"char device redirected to %s\\n\", ptsname(VAR_1));",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
]
] |
18,922 | static int xen_pt_long_reg_read(XenPCIPassthroughState *s, XenPTReg *cfg_entry,
uint32_t *value, uint32_t valid_mask)
{
XenPTRegInfo *reg = cfg_entry->reg;
uint32_t valid_emu_mask = 0;
/* emulate long register */
valid_emu_mask = reg->emu_mask & valid_mask;
*... | false | qemu | e2779de053b64f023de382fd87b3596613d47d1e | static int xen_pt_long_reg_read(XenPCIPassthroughState *s, XenPTReg *cfg_entry,
uint32_t *value, uint32_t valid_mask)
{
XenPTRegInfo *reg = cfg_entry->reg;
uint32_t valid_emu_mask = 0;
valid_emu_mask = reg->emu_mask & valid_mask;
*value = XEN_PT_MERGE_VALUE(... | {
"code": [],
"line_no": []
} | static int FUNC_0(XenPCIPassthroughState *VAR_0, XenPTReg *VAR_1,
uint32_t *VAR_2, uint32_t VAR_3)
{
XenPTRegInfo *reg = VAR_1->reg;
uint32_t valid_emu_mask = 0;
valid_emu_mask = reg->emu_mask & VAR_3;
*VAR_2 = XEN_PT_MERGE_VALUE(*VAR_2, VAR_1->data, ~valid_... | [
"static int FUNC_0(XenPCIPassthroughState *VAR_0, XenPTReg *VAR_1,\nuint32_t *VAR_2, uint32_t VAR_3)\n{",
"XenPTRegInfo *reg = VAR_1->reg;",
"uint32_t valid_emu_mask = 0;",
"valid_emu_mask = reg->emu_mask & VAR_3;",
"*VAR_2 = XEN_PT_MERGE_VALUE(*VAR_2, VAR_1->data, ~valid_emu_mask);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
21
],
[
23
]
] |
18,923 | static void tgen_setcond(TCGContext *s, TCGType type, TCGCond cond,
TCGReg dest, TCGReg c1, TCGArg c2, int c2const)
{
int cc;
switch (cond) {
case TCG_COND_GTU:
case TCG_COND_GT:
do_greater:
/* The result of a compare has CC=2 for GT and CC=3 unused.
... | false | qemu | b2c98d9d392c87c9b9e975d30f79924719d9cbbe | static void tgen_setcond(TCGContext *s, TCGType type, TCGCond cond,
TCGReg dest, TCGReg c1, TCGArg c2, int c2const)
{
int cc;
switch (cond) {
case TCG_COND_GTU:
case TCG_COND_GT:
do_greater:
tgen_cmp(s, type, cond, c1, c2, c2const, true);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGCond VAR_2,
TCGReg VAR_3, TCGReg VAR_4, TCGArg VAR_5, int VAR_6)
{
int VAR_7;
switch (VAR_2) {
case TCG_COND_GTU:
case TCG_COND_GT:
do_greater:
tgen_cmp(VAR_0, VAR_1, VAR_2, VAR_4, VAR_5, V... | [
"static void FUNC_0(TCGContext *VAR_0, TCGType VAR_1, TCGCond VAR_2,\nTCGReg VAR_3, TCGReg VAR_4, TCGArg VAR_5, int VAR_6)\n{",
"int VAR_7;",
"switch (VAR_2) {",
"case TCG_COND_GTU:\ncase TCG_COND_GT:\ndo_greater:\ntgen_cmp(VAR_0, VAR_1, VAR_2, VAR_4, VAR_5, VAR_6, true);",
"tcg_out_movi(VAR_0, VAR_1, VAR_3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13,
15,
17,
23
],
[
25
],
[
27
],
[
29
],
[
33,
35,
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59... |
18,924 | static CharDriverState *qemu_chr_open_pty(const char *id,
ChardevReturn *ret)
{
CharDriverState *chr;
PtyCharDriver *s;
int master_fd, slave_fd;
char pty_name[PATH_MAX];
master_fd = qemu_openpty_raw(&slave_fd, pty_name);
if (master_fd < 0) {
... | false | qemu | db39fcf1f690b02d612e2bfc00980700887abe03 | static CharDriverState *qemu_chr_open_pty(const char *id,
ChardevReturn *ret)
{
CharDriverState *chr;
PtyCharDriver *s;
int master_fd, slave_fd;
char pty_name[PATH_MAX];
master_fd = qemu_openpty_raw(&slave_fd, pty_name);
if (master_fd < 0) {
... | {
"code": [],
"line_no": []
} | static CharDriverState *FUNC_0(const char *id,
ChardevReturn *ret)
{
CharDriverState *chr;
PtyCharDriver *s;
int VAR_0, VAR_1;
char VAR_2[PATH_MAX];
VAR_0 = qemu_openpty_raw(&VAR_1, VAR_2);
if (VAR_0 < 0) {
return NULL;
}
c... | [
"static CharDriverState *FUNC_0(const char *id,\nChardevReturn *ret)\n{",
"CharDriverState *chr;",
"PtyCharDriver *s;",
"int VAR_0, VAR_1;",
"char VAR_2[PATH_MAX];",
"VAR_0 = qemu_openpty_raw(&VAR_1, VAR_2);",
"if (VAR_0 < 0) {",
"return NULL;",
"}",
"close(VAR_1);",
"chr = g_malloc0(sizeof(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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43,
45
],
[
49
],
[
51
],
[
53
],
[
55
... |
18,925 | static target_ulong h_set_dabr(PowerPCCPU *cpu, sPAPRMachineState *spapr,
target_ulong opcode, target_ulong *args)
{
/* FIXME: actually implement this */
return H_HARDWARE;
}
| false | qemu | af08a58f0ca338eafee855921859a8c1ace0175b | static target_ulong h_set_dabr(PowerPCCPU *cpu, sPAPRMachineState *spapr,
target_ulong opcode, target_ulong *args)
{
return H_HARDWARE;
}
| {
"code": [],
"line_no": []
} | static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPRMachineState *spapr,
target_ulong opcode, target_ulong *args)
{
return H_HARDWARE;
}
| [
"static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPRMachineState *spapr,\ntarget_ulong opcode, target_ulong *args)\n{",
"return H_HARDWARE;",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
9
],
[
11
]
] |
18,926 | static uint32_t arm_timer_read(void *opaque, target_phys_addr_t offset)
{
arm_timer_state *s = (arm_timer_state *)opaque;
switch (offset >> 2) {
case 0: /* TimerLoad */
case 6: /* TimerBGLoad */
return s->limit;
case 1: /* TimerValue */
return ptimer_get_count(s->timer);
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint32_t arm_timer_read(void *opaque, target_phys_addr_t offset)
{
arm_timer_state *s = (arm_timer_state *)opaque;
switch (offset >> 2) {
case 0:
case 6:
return s->limit;
case 1:
return ptimer_get_count(s->timer);
case 2:
return s->control;
cas... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset)
{
arm_timer_state *s = (arm_timer_state *)opaque;
switch (offset >> 2) {
case 0:
case 6:
return s->limit;
case 1:
return ptimer_get_count(s->timer);
case 2:
return s->control;
case 4:
... | [
"static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset)\n{",
"arm_timer_state *s = (arm_timer_state *)opaque;",
"switch (offset >> 2) {",
"case 0:\ncase 6:\nreturn s->limit;",
"case 1:\nreturn ptimer_get_count(s->timer);",
"case 2:\nreturn s->control;",
"case 4:\nreturn s->int_level;",
"case ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13,
15
],
[
17,
19
],
[
21,
23
],
[
25,
27
],
[
29,
31,
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
]
] |
18,927 | char *string_output_get_string(StringOutputVisitor *sov)
{
char *string = g_string_free(sov->string, false);
sov->string = NULL;
return string;
}
| false | qemu | 3b098d56979d2f7fd707c5be85555d114353a28d | char *string_output_get_string(StringOutputVisitor *sov)
{
char *string = g_string_free(sov->string, false);
sov->string = NULL;
return string;
}
| {
"code": [],
"line_no": []
} | char *FUNC_0(StringOutputVisitor *VAR_0)
{
char *VAR_1 = g_string_free(VAR_0->VAR_1, false);
VAR_0->VAR_1 = NULL;
return VAR_1;
}
| [
"char *FUNC_0(StringOutputVisitor *VAR_0)\n{",
"char *VAR_1 = g_string_free(VAR_0->VAR_1, false);",
"VAR_0->VAR_1 = NULL;",
"return VAR_1;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
18,928 | static void css_init(void)
{
QTAILQ_INIT(&channel_subsys.pending_crws);
channel_subsys.sei_pending = false;
channel_subsys.do_crw_mchk = true;
channel_subsys.crws_lost = false;
channel_subsys.chnmon_active = false;
QTAILQ_INIT(&channel_subsys.io_adapters);
QTAILQ_INIT(&channel_subsys... | false | qemu | bc994b74ea38579e18f9d9144021c6f8de597a34 | static void css_init(void)
{
QTAILQ_INIT(&channel_subsys.pending_crws);
channel_subsys.sei_pending = false;
channel_subsys.do_crw_mchk = true;
channel_subsys.crws_lost = false;
channel_subsys.chnmon_active = false;
QTAILQ_INIT(&channel_subsys.io_adapters);
QTAILQ_INIT(&channel_subsys... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
QTAILQ_INIT(&channel_subsys.pending_crws);
channel_subsys.sei_pending = false;
channel_subsys.do_crw_mchk = true;
channel_subsys.crws_lost = false;
channel_subsys.chnmon_active = false;
QTAILQ_INIT(&channel_subsys.io_adapters);
QTAILQ_INIT(&channel_subsys.i... | [
"static void FUNC_0(void)\n{",
"QTAILQ_INIT(&channel_subsys.pending_crws);",
"channel_subsys.sei_pending = false;",
"channel_subsys.do_crw_mchk = true;",
"channel_subsys.crws_lost = false;",
"channel_subsys.chnmon_active = false;",
"QTAILQ_INIT(&channel_subsys.io_adapters);",
"QTAILQ_INIT(&channel_sub... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
18,929 | static void test_validate_struct(TestInputVisitorData *data,
const void *unused)
{
TestStruct *p = NULL;
Visitor *v;
v = validate_test_init(data, "{ 'integer': -42, 'boolean': true, 'string': 'foo' }");
visit_type_TestStruct(v, NULL, &p, &error_abort);
g_... | false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void test_validate_struct(TestInputVisitorData *data,
const void *unused)
{
TestStruct *p = NULL;
Visitor *v;
v = validate_test_init(data, "{ 'integer': -42, 'boolean': true, 'string': 'foo' }");
visit_type_TestStruct(v, NULL, &p, &error_abort);
g_... | {
"code": [],
"line_no": []
} | static void FUNC_0(TestInputVisitorData *VAR_0,
const void *VAR_1)
{
TestStruct *p = NULL;
Visitor *v;
v = validate_test_init(VAR_0, "{ 'integer': -42, 'boolean': true, 'string': 'foo' }");
visit_type_TestStruct(v, NULL, &p, &error_abort);
g_free(p->strin... | [
"static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{",
"TestStruct *p = NULL;",
"Visitor *v;",
"v = validate_test_init(VAR_0, \"{ 'integer': -42, 'boolean': true, 'string': 'foo' }\");",
"visit_type_TestStruct(v, NULL, &p, &error_abort);",
"g_free(p->string);",
"g_free(p);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
18,932 | static uint32_t ecc_mem_readw(void *opaque, target_phys_addr_t addr)
{
printf("ECC: Unsupported read 0x" TARGET_FMT_plx " 0000\n", addr);
return 0;
}
| false | qemu | 7c560456707bfe53eb1728fcde759be7d9418b62 | static uint32_t ecc_mem_readw(void *opaque, target_phys_addr_t addr)
{
printf("ECC: Unsupported read 0x" TARGET_FMT_plx " 0000\n", addr);
return 0;
}
| {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)
{
printf("ECC: Unsupported read 0x" TARGET_FMT_plx " 0000\n", addr);
return 0;
}
| [
"static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{",
"printf(\"ECC: Unsupported read 0x\" TARGET_FMT_plx \" 0000\\n\", addr);",
"return 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
18,933 | static av_cold int libssh_authentication(LIBSSHContext *libssh, const char *user, const char *password)
{
int authorized = 0;
int auth_methods;
if (user)
ssh_options_set(libssh->session, SSH_OPTIONS_USER, user);
if (ssh_userauth_none(libssh->session, NULL) == SSH_AUTH_SUCCESS)
... | false | FFmpeg | 8ddb6820bd52df6ed616abc3d8be200b126aa8c1 | static av_cold int libssh_authentication(LIBSSHContext *libssh, const char *user, const char *password)
{
int authorized = 0;
int auth_methods;
if (user)
ssh_options_set(libssh->session, SSH_OPTIONS_USER, user);
if (ssh_userauth_none(libssh->session, NULL) == SSH_AUTH_SUCCESS)
... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(LIBSSHContext *libssh, const char *user, const char *password)
{
int VAR_0 = 0;
int VAR_1;
if (user)
ssh_options_set(libssh->session, SSH_OPTIONS_USER, user);
if (ssh_userauth_none(libssh->session, NULL) == SSH_AUTH_SUCCESS)
return 0;
VAR_1 = s... | [
"static av_cold int FUNC_0(LIBSSHContext *libssh, const char *user, const char *password)\n{",
"int VAR_0 = 0;",
"int VAR_1;",
"if (user)\nssh_options_set(libssh->session, SSH_OPTIONS_USER, user);",
"if (ssh_userauth_none(libssh->session, NULL) == SSH_AUTH_SUCCESS)\nreturn 0;",
"VAR_1 = ssh_userauth_list(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17,
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51... |
18,934 | int gif_write(ByteIOContext *pb, AVImageInfo *info)
{
gif_image_write_header(pb, info->width, info->height,
(uint32_t *)info->pict.data[1]);
gif_image_write_image(pb, 0, 0, info->width, info->height,
info->pict.data[0], info->pict.linesize[0],
... | false | FFmpeg | 8108551a5c4c4c9696582c73d000f94b12cd95a5 | int gif_write(ByteIOContext *pb, AVImageInfo *info)
{
gif_image_write_header(pb, info->width, info->height,
(uint32_t *)info->pict.data[1]);
gif_image_write_image(pb, 0, 0, info->width, info->height,
info->pict.data[0], info->pict.linesize[0],
... | {
"code": [],
"line_no": []
} | int FUNC_0(ByteIOContext *VAR_0, AVImageInfo *VAR_1)
{
gif_image_write_header(VAR_0, VAR_1->width, VAR_1->height,
(uint32_t *)VAR_1->pict.data[1]);
gif_image_write_image(VAR_0, 0, 0, VAR_1->width, VAR_1->height,
VAR_1->pict.data[0], VAR_1->pict.linesiz... | [
"int FUNC_0(ByteIOContext *VAR_0, AVImageInfo *VAR_1)\n{",
"gif_image_write_header(VAR_0, VAR_1->width, VAR_1->height,\n(uint32_t *)VAR_1->pict.data[1]);",
"gif_image_write_image(VAR_0, 0, 0, VAR_1->width, VAR_1->height,\nVAR_1->pict.data[0], VAR_1->pict.linesize[0],\nPIX_FMT_PAL8);",
"put_byte(VAR_0, 0x3b);"... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
18,935 | void monitor_init(CharDriverState *chr, int flags)
{
static int is_first_init = 1;
Monitor *mon;
if (is_first_init) {
key_timer = qemu_new_timer(vm_clock, release_keys, NULL);
is_first_init = 0;
}
mon = qemu_mallocz(sizeof(*mon));
mon->chr = chr;
mon->flags = ... | false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | void monitor_init(CharDriverState *chr, int flags)
{
static int is_first_init = 1;
Monitor *mon;
if (is_first_init) {
key_timer = qemu_new_timer(vm_clock, release_keys, NULL);
is_first_init = 0;
}
mon = qemu_mallocz(sizeof(*mon));
mon->chr = chr;
mon->flags = ... | {
"code": [],
"line_no": []
} | void FUNC_0(CharDriverState *VAR_0, int VAR_1)
{
static int VAR_2 = 1;
Monitor *mon;
if (VAR_2) {
key_timer = qemu_new_timer(vm_clock, release_keys, NULL);
VAR_2 = 0;
}
mon = qemu_mallocz(sizeof(*mon));
mon->VAR_0 = VAR_0;
mon->VAR_1 = VAR_1;
if (VAR_1 & ... | [
"void FUNC_0(CharDriverState *VAR_0, int VAR_1)\n{",
"static int VAR_2 = 1;",
"Monitor *mon;",
"if (VAR_2) {",
"key_timer = qemu_new_timer(vm_clock, release_keys, NULL);",
"VAR_2 = 0;",
"}",
"mon = qemu_mallocz(sizeof(*mon));",
"mon->VAR_0 = VAR_0;",
"mon->VAR_1 = VAR_1;",
"if (VAR_1 & MONITOR_U... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39,
41
],
[
45
],
[
47,
49
],
[
51
]
] |
18,936 | static void dsound_write_sample (HWVoiceOut *hw, uint8_t *dst, int dst_len)
{
int src_len1 = dst_len;
int src_len2 = 0;
int pos = hw->rpos + dst_len;
st_sample_t *src1 = hw->mix_buf + hw->rpos;
st_sample_t *src2 = NULL;
if (pos > hw->samples) {
src_len1 = hw->samples - hw->rpos... | false | qemu | 1ea879e5580f63414693655fcf0328559cdce138 | static void dsound_write_sample (HWVoiceOut *hw, uint8_t *dst, int dst_len)
{
int src_len1 = dst_len;
int src_len2 = 0;
int pos = hw->rpos + dst_len;
st_sample_t *src1 = hw->mix_buf + hw->rpos;
st_sample_t *src2 = NULL;
if (pos > hw->samples) {
src_len1 = hw->samples - hw->rpos... | {
"code": [],
"line_no": []
} | static void FUNC_0 (HWVoiceOut *VAR_0, uint8_t *VAR_1, int VAR_2)
{
int VAR_3 = VAR_2;
int VAR_4 = 0;
int VAR_5 = VAR_0->rpos + VAR_2;
st_sample_t *src1 = VAR_0->mix_buf + VAR_0->rpos;
st_sample_t *src2 = NULL;
if (VAR_5 > VAR_0->samples) {
VAR_3 = VAR_0->samples - VAR_0->rpos;... | [
"static void FUNC_0 (HWVoiceOut *VAR_0, uint8_t *VAR_1, int VAR_2)\n{",
"int VAR_3 = VAR_2;",
"int VAR_4 = 0;",
"int VAR_5 = VAR_0->rpos + VAR_2;",
"st_sample_t *src1 = VAR_0->mix_buf + VAR_0->rpos;",
"st_sample_t *src2 = NULL;",
"if (VAR_5 > VAR_0->samples) {",
"VAR_3 = VAR_0->samples - VAR_0->rpos;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
... |
18,937 | static void n8x0_init(QEMUMachineInitArgs *args,
struct arm_boot_info *binfo, int model)
{
MemoryRegion *sysmem = get_system_memory();
struct n800_s *s = (struct n800_s *) g_malloc0(sizeof(*s));
int sdram_size = binfo->ram_size;
s->mpu = omap2420_mpu_init(sysmem, sdram_size... | false | qemu | c16547326988cc321c9bff43ed91cbe753e52892 | static void n8x0_init(QEMUMachineInitArgs *args,
struct arm_boot_info *binfo, int model)
{
MemoryRegion *sysmem = get_system_memory();
struct n800_s *s = (struct n800_s *) g_malloc0(sizeof(*s));
int sdram_size = binfo->ram_size;
s->mpu = omap2420_mpu_init(sysmem, sdram_size... | {
"code": [],
"line_no": []
} | static void FUNC_0(QEMUMachineInitArgs *VAR_0,
struct arm_boot_info *VAR_1, int VAR_2)
{
MemoryRegion *sysmem = get_system_memory();
struct n800_s *VAR_3 = (struct n800_s *) g_malloc0(sizeof(*VAR_3));
int VAR_4 = VAR_1->ram_size;
VAR_3->mpu = omap2420_mpu_init(sysmem, VAR_4... | [
"static void FUNC_0(QEMUMachineInitArgs *VAR_0,\nstruct arm_boot_info *VAR_1, int VAR_2)\n{",
"MemoryRegion *sysmem = get_system_memory();",
"struct n800_s *VAR_3 = (struct n800_s *) g_malloc0(sizeof(*VAR_3));",
"int VAR_4 = VAR_1->ram_size;",
"VAR_3->mpu = omap2420_mpu_init(sysmem, VAR_4, VAR_0->cpu_model)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
69
],
[
71
],
[
73
],
[
75,
77
],
[
79
],
[
81
],
[
83
],
[
85
],
[
87
],
[
89
],
[
91
],
[
93
],
[
95
],
[
97
... |
18,938 | build_fadt(GArray *table_data, GArray *linker, unsigned dsdt)
{
AcpiFadtDescriptorRev5_1 *fadt = acpi_data_push(table_data, sizeof(*fadt));
/* Hardware Reduced = 1 and use PSCI 0.2+ and with HVC */
fadt->flags = cpu_to_le32(1 << ACPI_FADT_F_HW_REDUCED_ACPI);
fadt->arm_boot_flags = cpu_to_le16((1 ... | false | qemu | 0e9b9edae7bebfd31fdbead4ccbbce03876a7edd | build_fadt(GArray *table_data, GArray *linker, unsigned dsdt)
{
AcpiFadtDescriptorRev5_1 *fadt = acpi_data_push(table_data, sizeof(*fadt));
fadt->flags = cpu_to_le32(1 << ACPI_FADT_F_HW_REDUCED_ACPI);
fadt->arm_boot_flags = cpu_to_le16((1 << ACPI_FADT_ARM_USE_PSCI_G_0_2) |
... | {
"code": [],
"line_no": []
} | FUNC_0(GArray *VAR_0, GArray *VAR_1, unsigned VAR_2)
{
AcpiFadtDescriptorRev5_1 *fadt = acpi_data_push(VAR_0, sizeof(*fadt));
fadt->flags = cpu_to_le32(1 << ACPI_FADT_F_HW_REDUCED_ACPI);
fadt->arm_boot_flags = cpu_to_le16((1 << ACPI_FADT_ARM_USE_PSCI_G_0_2) |
... | [
"FUNC_0(GArray *VAR_0, GArray *VAR_1, unsigned VAR_2)\n{",
"AcpiFadtDescriptorRev5_1 *fadt = acpi_data_push(VAR_0, sizeof(*fadt));",
"fadt->flags = cpu_to_le32(1 << ACPI_FADT_F_HW_REDUCED_ACPI);",
"fadt->arm_boot_flags = cpu_to_le16((1 << ACPI_FADT_ARM_USE_PSCI_G_0_2) |\n(1 << ACPI_FADT_ARM_PSCI_USE_HVC));",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13,
15
],
[
21
],
[
25
],
[
29,
31,
33,
35
],
[
39,
41
],
[
43
]
] |
18,939 | static int config_input_overlay(AVFilterLink *inlink)
{
AVFilterContext *ctx = inlink->dst;
OverlayContext *over = inlink->dst->priv;
char *expr;
double var_values[VAR_VARS_NB], res;
int ret;
const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(inlink->format);
av_image_fill_... | false | FFmpeg | f164228fd793766187ed3e68cb6d6e2fe3e77c04 | static int config_input_overlay(AVFilterLink *inlink)
{
AVFilterContext *ctx = inlink->dst;
OverlayContext *over = inlink->dst->priv;
char *expr;
double var_values[VAR_VARS_NB], res;
int ret;
const AVPixFmtDescriptor *pix_desc = av_pix_fmt_desc_get(inlink->format);
av_image_fill_... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFilterLink *VAR_0)
{
AVFilterContext *ctx = VAR_0->dst;
OverlayContext *over = VAR_0->dst->priv;
char *VAR_1;
double VAR_2[VAR_VARS_NB], res;
int VAR_3;
const AVPixFmtDescriptor *VAR_4 = av_pix_fmt_desc_get(VAR_0->format);
av_image_fill_max_pixsteps(over->over... | [
"static int FUNC_0(AVFilterLink *VAR_0)\n{",
"AVFilterContext *ctx = VAR_0->dst;",
"OverlayContext *over = VAR_0->dst->priv;",
"char *VAR_1;",
"double VAR_2[VAR_VARS_NB], res;",
"int VAR_3;",
"const AVPixFmtDescriptor *VAR_4 = av_pix_fmt_desc_get(VAR_0->format);",
"av_image_fill_max_pixsteps(over->o... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37,
39,
41
],
[
43
],
[
45,
47,
49
],
[
51
],
[
55,
57,
59
... |
18,940 | static int dvdsub_decode(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
DVDSubContext *ctx = avctx->priv_data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
AVSubtitle *sub = data;
int is_menu;
if... | false | FFmpeg | f874e2728b0925b2ec30dd7ec64815f15078c06f | static int dvdsub_decode(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
DVDSubContext *ctx = avctx->priv_data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
AVSubtitle *sub = data;
int is_menu;
if... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
DVDSubContext *ctx = VAR_0->priv_data;
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
AVSubtitle *sub = VAR_1;
int VAR_6;
if (ctx->VAR_... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"DVDSubContext *ctx = VAR_0->priv_data;",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"AVSubtitle *sub = VAR_1;",
"int VAR_6;",
"if (ctx->VAR_5) {",
"int VAR_7 = append_to_cached_buf(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
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
... |
18,941 | static int mov_write_moov_tag(ByteIOContext *pb, MOVContext *mov,
AVFormatContext *s)
{
int i;
offset_t pos = url_ftell(pb);
put_be32(pb, 0); /* size placeholder*/
put_tag(pb, "moov");
mov->timescale = globalTimescale;
for (i=0; i<MAX_STREAMS; i++) {
... | false | FFmpeg | 42fb414804419c3fc269c73ad049f218f8813ed0 | static int mov_write_moov_tag(ByteIOContext *pb, MOVContext *mov,
AVFormatContext *s)
{
int i;
offset_t pos = url_ftell(pb);
put_be32(pb, 0);
put_tag(pb, "moov");
mov->timescale = globalTimescale;
for (i=0; i<MAX_STREAMS; i++) {
if(mov->tracks[i]... | {
"code": [],
"line_no": []
} | static int FUNC_0(ByteIOContext *VAR_0, MOVContext *VAR_1,
AVFormatContext *VAR_2)
{
int VAR_3;
offset_t pos = url_ftell(VAR_0);
put_be32(VAR_0, 0);
put_tag(VAR_0, "moov");
VAR_1->timescale = globalTimescale;
for (VAR_3=0; VAR_3<MAX_STREAMS; VAR_3++) {
... | [
"static int FUNC_0(ByteIOContext *VAR_0, MOVContext *VAR_1,\nAVFormatContext *VAR_2)\n{",
"int VAR_3;",
"offset_t pos = url_ftell(VAR_0);",
"put_be32(VAR_0, 0);",
"put_tag(VAR_0, \"moov\");",
"VAR_1->timescale = globalTimescale;",
"for (VAR_3=0; VAR_3<MAX_STREAMS; VAR_3++) {",
"if(VAR_1->tracks[VAR_3]... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
45
],
[
47
],
[
49
... |
18,944 | int vncws_decode_frame(Buffer *input, uint8_t **payload,
size_t *payload_size, size_t *frame_size)
{
unsigned char opcode = 0, fin = 0, has_mask = 0;
size_t header_size = 0;
uint32_t *payload32;
WsHeader *header = (WsHeader *)input->buffer;
WsMask mask;
int i;
... | true | qemu | a2bebfd6e09d285aa793cae3fb0fc3a39a9fee6e | int vncws_decode_frame(Buffer *input, uint8_t **payload,
size_t *payload_size, size_t *frame_size)
{
unsigned char opcode = 0, fin = 0, has_mask = 0;
size_t header_size = 0;
uint32_t *payload32;
WsHeader *header = (WsHeader *)input->buffer;
WsMask mask;
int i;
... | {
"code": [
"int vncws_decode_frame(Buffer *input, uint8_t **payload,",
" size_t *payload_size, size_t *frame_size)",
" size_t header_size = 0;",
" uint32_t *payload32;",
" WsMask mask;",
" int i;",
" *payload_size = header->b1 & 0x7f;",
" if... | int FUNC_0(Buffer *VAR_0, uint8_t **VAR_1,
size_t *VAR_2, size_t *VAR_3)
{
unsigned char VAR_4 = 0, VAR_5 = 0, VAR_6 = 0;
size_t header_size = 0;
uint32_t *payload32;
WsHeader *header = (WsHeader *)VAR_0->buffer;
WsMask mask;
int VAR_7;
if (VAR_0->offset... | [
"int FUNC_0(Buffer *VAR_0, uint8_t **VAR_1,\nsize_t *VAR_2, size_t *VAR_3)\n{",
"unsigned char VAR_4 = 0, VAR_5 = 0, VAR_6 = 0;",
"size_t header_size = 0;",
"uint32_t *payload32;",
"WsHeader *header = (WsHeader *)VAR_0->buffer;",
"WsMask mask;",
"int VAR_7;",
"if (VAR_0->offset < WS_HEAD_MIN_LEN + 4) ... | [
1,
0,
1,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
1,
1,
0,
0,
1,
0,
0,
1,
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
],
[
61
],
[
63
],
[... |
18,945 | static void send_framebuffer_update_raw(VncState *vs, int x, int y, int w, int h)
{
int i;
uint8_t *row;
row = ds_get_data(vs->ds) + y * ds_get_linesize(vs->ds) + x * ds_get_bytes_per_pixel(vs->ds);
for (i = 0; i < h; i++) {
vs->write_pixels(vs, row, w * ds_get_bytes_per_pixel(vs->ds));
... | true | qemu | 6baebed7698a37a0ac5168faf26023426b0ac940 | static void send_framebuffer_update_raw(VncState *vs, int x, int y, int w, int h)
{
int i;
uint8_t *row;
row = ds_get_data(vs->ds) + y * ds_get_linesize(vs->ds) + x * ds_get_bytes_per_pixel(vs->ds);
for (i = 0; i < h; i++) {
vs->write_pixels(vs, row, w * ds_get_bytes_per_pixel(vs->ds));
... | {
"code": [
" row = ds_get_data(vs->ds) + y * ds_get_linesize(vs->ds) + x * ds_get_bytes_per_pixel(vs->ds);"
],
"line_no": [
11
]
} | static void FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)
{
int VAR_5;
uint8_t *row;
row = ds_get_data(VAR_0->ds) + VAR_2 * ds_get_linesize(VAR_0->ds) + VAR_1 * ds_get_bytes_per_pixel(VAR_0->ds);
for (VAR_5 = 0; VAR_5 < VAR_4; VAR_5++) {
VAR_0->write_pixels(VAR_0, r... | [
"static void FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{",
"int VAR_5;",
"uint8_t *row;",
"row = ds_get_data(VAR_0->ds) + VAR_2 * ds_get_linesize(VAR_0->ds) + VAR_1 * ds_get_bytes_per_pixel(VAR_0->ds);",
"for (VAR_5 = 0; VAR_5 < VAR_4; VAR_5++) {",
"VAR_0->write_pixels(VAR_0, ro... | [
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
18,947 | static int alloc_frame_buffer(MpegEncContext *s, Picture *pic)
{
int r;
if (s->avctx->hwaccel) {
assert(!pic->f.hwaccel_picture_private);
if (s->avctx->hwaccel->priv_data_size) {
pic->f.hwaccel_picture_private = av_mallocz(s->avctx->hwaccel->priv_data_size);
if (... | true | FFmpeg | f1d8763a02b5fce9a7d9789e049d74a45b15e1e8 | static int alloc_frame_buffer(MpegEncContext *s, Picture *pic)
{
int r;
if (s->avctx->hwaccel) {
assert(!pic->f.hwaccel_picture_private);
if (s->avctx->hwaccel->priv_data_size) {
pic->f.hwaccel_picture_private = av_mallocz(s->avctx->hwaccel->priv_data_size);
if (... | {
"code": [
" int r;"
],
"line_no": [
5
]
} | static int FUNC_0(MpegEncContext *VAR_0, Picture *VAR_1)
{
int VAR_2;
if (VAR_0->avctx->hwaccel) {
assert(!VAR_1->f.hwaccel_picture_private);
if (VAR_0->avctx->hwaccel->priv_data_size) {
VAR_1->f.hwaccel_picture_private = av_mallocz(VAR_0->avctx->hwaccel->priv_data_size);
... | [
"static int FUNC_0(MpegEncContext *VAR_0, Picture *VAR_1)\n{",
"int VAR_2;",
"if (VAR_0->avctx->hwaccel) {",
"assert(!VAR_1->f.hwaccel_picture_private);",
"if (VAR_0->avctx->hwaccel->priv_data_size) {",
"VAR_1->f.hwaccel_picture_private = av_mallocz(VAR_0->avctx->hwaccel->priv_data_size);",
"if (!VAR_1-... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31,
33,
35,
37
],
[
39,
41
],
[
45
],
[
47,
49
],
[
51
],
... |
18,948 | static void pflash_write (pflash_t *pfl, target_ulong offset, uint32_t value,
int width)
{
target_ulong boff;
uint8_t *p;
uint8_t cmd;
/* WARNING: when the memory area is in ROMD mode, the offset is a
ram offset, not a physical address */
if (pfl->wcycle ==... | true | qemu | 95d1f3edd5ecebcf8d1b8efe1a0b4533e3629e39 | static void pflash_write (pflash_t *pfl, target_ulong offset, uint32_t value,
int width)
{
target_ulong boff;
uint8_t *p;
uint8_t cmd;
if (pfl->wcycle == 0)
offset -= (target_ulong)(long)pfl->storage;
else
offset -= pfl->base;
... | {
"code": [
" cmd = value;",
" if (pfl->cmd != 0xA0 && cmd == 0xF0) {",
" DPRINTF(\"%s: flash reset asked (%02x %02x)\\n\",",
" __func__, pfl->cmd, cmd);",
" goto reset_flash;",
" if (pfl->wcycle != 0) {",
" cpu_register_physical_memory(pfl->bas... | static void FUNC_0 (pflash_t *VAR_0, target_ulong VAR_1, uint32_t VAR_2,
int VAR_3)
{
target_ulong boff;
uint8_t *p;
uint8_t cmd;
if (VAR_0->wcycle == 0)
VAR_1 -= (target_ulong)(long)VAR_0->storage;
else
VAR_1 -= VAR_0->base;
... | [
"static void FUNC_0 (pflash_t *VAR_0, target_ulong VAR_1, uint32_t VAR_2,\nint VAR_3)\n{",
"target_ulong boff;",
"uint8_t *p;",
"uint8_t cmd;",
"if (VAR_0->wcycle == 0)\nVAR_1 -= (target_ulong)(long)VAR_0->storage;",
"else\nVAR_1 -= VAR_0->base;",
"cmd = VAR_2;",
"DPRINTF(\"%s: VAR_1 \" TARGET_FMT_lx ... | [
0,
0,
0,
0,
0,
0,
1,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
19,
21
],
[
23,
25
],
[
29
],
[
31,
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51,
53
],
[
55,
57
],
[... |
18,949 | void cpu_loop(CPUPPCState *env)
{
CPUState *cs = CPU(ppc_env_get_cpu(env));
target_siginfo_t info;
int trapnr;
target_ulong ret;
for(;;) {
cpu_exec_start(cs);
trapnr = cpu_ppc_exec(cs);
cpu_exec_end(cs);
switch(trapnr) {
case POWERPC_EXCP_NONE:
... | true | qemu | 9b2fadda3e0196ffd485adde4fe9cdd6fae35300 | void cpu_loop(CPUPPCState *env)
{
CPUState *cs = CPU(ppc_env_get_cpu(env));
target_siginfo_t info;
int trapnr;
target_ulong ret;
for(;;) {
cpu_exec_start(cs);
trapnr = cpu_ppc_exec(cs);
cpu_exec_end(cs);
switch(trapnr) {
case POWERPC_EXCP_NONE:
... | {
"code": [],
"line_no": []
} | void FUNC_0(CPUPPCState *VAR_0)
{
CPUState *cs = CPU(ppc_env_get_cpu(VAR_0));
target_siginfo_t info;
int VAR_1;
target_ulong ret;
for(;;) {
cpu_exec_start(cs);
VAR_1 = cpu_ppc_exec(cs);
cpu_exec_end(cs);
switch(VAR_1) {
case POWERPC_EXCP_NONE:
... | [
"void FUNC_0(CPUPPCState *VAR_0)\n{",
"CPUState *cs = CPU(ppc_env_get_cpu(VAR_0));",
"target_siginfo_t info;",
"int VAR_1;",
"target_ulong ret;",
"for(;;) {",
"cpu_exec_start(cs);",
"VAR_1 = cpu_ppc_exec(cs);",
"cpu_exec_end(cs);",
"switch(VAR_1) {",
"case POWERPC_EXCP_NONE:\nbreak;",
"case PO... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
29
],
[
31,
33,
35
],
[
37
],
[
39,
41,
43
],
[
45
],
[
47,
49,
51
],
[... |
18,950 | static int check_video_codec_tag(int codec_tag) {
if (codec_tag <= 0 || codec_tag > 15) {
return AVERROR(ENOSYS);
} else
return 0;
}
| true | FFmpeg | 14bc7aaa860e4d71f4966d4679b3fab547f5e0af | static int check_video_codec_tag(int codec_tag) {
if (codec_tag <= 0 || codec_tag > 15) {
return AVERROR(ENOSYS);
} else
return 0;
}
| {
"code": [
"static int check_video_codec_tag(int codec_tag) {",
" if (codec_tag <= 0 || codec_tag > 15) {",
" return AVERROR(ENOSYS);",
" } else",
" return 0;"
],
"line_no": [
1,
3,
5,
7,
9
]
} | static int FUNC_0(int VAR_0) {
if (VAR_0 <= 0 || VAR_0 > 15) {
return AVERROR(ENOSYS);
} else
return 0;
}
| [
"static int FUNC_0(int VAR_0) {",
"if (VAR_0 <= 0 || VAR_0 > 15) {",
"return AVERROR(ENOSYS);",
"} else",
"return 0;",
"}"
] | [
1,
1,
1,
0,
1,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
18,951 | static int announce_self_create(uint8_t *buf,
uint8_t *mac_addr)
{
uint32_t magic = EXPERIMENTAL_MAGIC;
uint16_t proto = htons(ETH_P_EXPERIMENTAL);
/* FIXME: should we send a different packet (arp/rarp/ping)? */
memset(buf, 0, 64);
memset(buf, 0xff, 6); /* h_dst */
memcp... | true | qemu | 18995b9808dc48897bda6ed93ce3e978191f7251 | static int announce_self_create(uint8_t *buf,
uint8_t *mac_addr)
{
uint32_t magic = EXPERIMENTAL_MAGIC;
uint16_t proto = htons(ETH_P_EXPERIMENTAL);
memset(buf, 0, 64);
memset(buf, 0xff, 6);
memcpy(buf + 6, mac_addr, 6);
memcpy(buf + 12, &proto, 2);
memcpy(... | {
"code": [
"static int announce_self_create(uint8_t *buf, ",
" uint32_t magic = EXPERIMENTAL_MAGIC;",
" uint16_t proto = htons(ETH_P_EXPERIMENTAL);",
" memset(buf, 0, 64);"
],
"line_no": [
1,
7,
9,
17
]
} | static int FUNC_0(uint8_t *VAR_0,
uint8_t *VAR_1)
{
uint32_t magic = EXPERIMENTAL_MAGIC;
uint16_t proto = htons(ETH_P_EXPERIMENTAL);
memset(VAR_0, 0, 64);
memset(VAR_0, 0xff, 6);
memcpy(VAR_0 + 6, VAR_1, 6);
memcpy(VAR_0 + 12, &proto, 2);
memcpy(VAR_0 + 14... | [
"static int FUNC_0(uint8_t *VAR_0,\nuint8_t *VAR_1)\n{",
"uint32_t magic = EXPERIMENTAL_MAGIC;",
"uint16_t proto = htons(ETH_P_EXPERIMENTAL);",
"memset(VAR_0, 0, 64);",
"memset(VAR_0, 0xff, 6);",
"memcpy(VAR_0 + 6, VAR_1, 6);",
"memcpy(VAR_0 + 12, &proto, 2);",
"memcpy(VAR_0 + 14, &magic, 4);",
"ret... | [
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
]
] |
18,952 | static int slirp_hostfwd(SlirpState *s, const char *redir_str,
int legacy_format, Error **errp)
{
struct in_addr host_addr = { .s_addr = INADDR_ANY };
struct in_addr guest_addr = { .s_addr = 0 };
int host_port, guest_port;
const char *p;
char buf[256];
int is_udp... | true | qemu | 0e7e4fb0a6b8f1043182dcccc91a7b984587d1ae | static int slirp_hostfwd(SlirpState *s, const char *redir_str,
int legacy_format, Error **errp)
{
struct in_addr host_addr = { .s_addr = INADDR_ANY };
struct in_addr guest_addr = { .s_addr = 0 };
int host_port, guest_port;
const char *p;
char buf[256];
int is_udp... | {
"code": [
" error_setg(errp, \"Invalid host forwarding rule '%s'\", redir_str);"
],
"line_no": [
123
]
} | static int FUNC_0(SlirpState *VAR_0, const char *VAR_1,
int VAR_2, Error **VAR_3)
{
struct in_addr VAR_4 = { .s_addr = INADDR_ANY };
struct in_addr VAR_5 = { .s_addr = 0 };
int VAR_6, VAR_7;
const char *VAR_8;
char VAR_9[256];
int VAR_10;
char *VAR_11;
... | [
"static int FUNC_0(SlirpState *VAR_0, const char *VAR_1,\nint VAR_2, Error **VAR_3)\n{",
"struct in_addr VAR_4 = { .s_addr = INADDR_ANY };",
"struct in_addr VAR_5 = { .s_addr = 0 };",
"int VAR_6, VAR_7;",
"const char *VAR_8;",
"char VAR_9[256];",
"int VAR_10;",
"char *VAR_11;",
"VAR_8 = VAR_1;",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
18,953 | void RENAME(interleaveBytes)(uint8_t *src1, uint8_t *src2, uint8_t *dest,
long width, long height, long src1Stride,
long src2Stride, long dstStride){
long h;
for(h=0; h < height; h++)
{
long w;
#ifdef HAVE_MMX
#ifdef HAVE_SSE2
asm(
"xor %%"REG_a", %%"REG_a" \n\t"
"1: \n\t"
... | true | FFmpeg | 6e42e6c4b410dbef8b593c2d796a5dad95f89ee4 | void RENAME(interleaveBytes)(uint8_t *src1, uint8_t *src2, uint8_t *dest,
long width, long height, long src1Stride,
long src2Stride, long dstStride){
long h;
for(h=0; h < height; h++)
{
long w;
#ifdef HAVE_MMX
#ifdef HAVE_SSE2
asm(
"xor %%"REG_a", %%"REG_a" \n\t"
"1: \n\t"
... | {
"code": [
"\t\t\t long width, long height, long src1Stride,",
"\t\t\t long width, long height, long src1Stride,",
"#ifdef HAVE_MMX",
"#endif",
"#ifdef HAVE_MMX",
"#endif",
"#else",
"#endif",
"#endif",
"\t\t);",
"\t\t);",
"#endif",
"#endif",
"#endif",
... | void FUNC_0(interleaveBytes)(uint8_t *src1, uint8_t *src2, uint8_t *dest,
long width, long height, long src1Stride,
long src2Stride, long dstStride){
long VAR_0;
for(VAR_0=0; VAR_0 < height; VAR_0++)
{
long w;
#ifdef HAVE_MMX
#ifdef HAVE_SSE2
asm(
"xor %%"REG_a", %%"REG_a" \n\t"
... | [
"void FUNC_0(interleaveBytes)(uint8_t *src1, uint8_t *src2, uint8_t *dest,\nlong width, long height, long src1Stride,\nlong src2Stride, long dstStride){",
"long VAR_0;",
"for(VAR_0=0; VAR_0 < height; VAR_0++)",
"{",
"long w;",
"#ifdef HAVE_MMX\n#ifdef HAVE_SSE2\nasm(\n\"xor %%\"REG_a\", %%\"REG_a\"\t\\n\\... | [
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
1,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19,
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57
],
[
59,
61,
63,
65,
67,
69,
71... |
18,954 | static inline void RENAME(yuv2rgb555_1)(SwsContext *c, const uint16_t *buf0,
const uint16_t *ubuf0, const uint16_t *ubuf1,
const uint16_t *vbuf0, const uint16_t *vbuf1,
const uint16_t *abuf0, uint8... | true | FFmpeg | 009f829dde811af654af7110326aea3a72c05d5e | static inline void RENAME(yuv2rgb555_1)(SwsContext *c, const uint16_t *buf0,
const uint16_t *ubuf0, const uint16_t *ubuf1,
const uint16_t *vbuf0, const uint16_t *vbuf1,
const uint16_t *abuf0, uint8... | {
"code": [
" x86_reg uv_off = c->uv_off << 1;",
" \"a\" (&c->redDither), \"m\"(uv_off)",
" \"a\" (&c->redDither), \"m\"(uv_off)",
" x86_reg uv_off = c->uv_off << 1;",
" x86_reg uv_off = c->uv_off << 1;",
" x86_reg uv_off = c->uv_off << 1;",
" x86... | static inline void FUNC_0(yuv2rgb555_1)(SwsContext *c, const uint16_t *buf0,
const uint16_t *ubuf0, const uint16_t *ubuf1,
const uint16_t *vbuf0, const uint16_t *vbuf1,
const uint16_t *abuf0, uint8... | [
"static inline void FUNC_0(yuv2rgb555_1)(SwsContext *c, const uint16_t *buf0,\nconst uint16_t *ubuf0, const uint16_t *ubuf1,\nconst uint16_t *vbuf0, const uint16_t *vbuf1,\nconst uint16_t *abuf0, uint8_t *dest,\nint dstW, int uvalpha, enum PixelFormat dstFormat,\nint flags, int y)\n{",
"x86_reg uv_off = c->uv_off... | [
0,
1,
0,
0,
1,
0,
1,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13
],
[
15
],
[
17
],
[
21
],
[
23,
25,
27,
29,
31,
33,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57
],
[
59
],
[
61,
63,
65,
67,
69,
71,... |
18,956 | static int vhdx_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVVHDXState *s = bs->opaque;
int ret = 0;
uint32_t i;
uint64_t signature;
bool log_flushed = false;
s->bat = NULL;
s->first_visible_write = true;
qemu_co_mutex_ini... | true | qemu | 7e30e6a6746b417c7e0dbc9af009560fbb63f336 | static int vhdx_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVVHDXState *s = bs->opaque;
int ret = 0;
uint32_t i;
uint64_t signature;
bool log_flushed = false;
s->bat = NULL;
s->first_visible_write = true;
qemu_co_mutex_ini... | {
"code": [
" bool log_flushed = false;",
" ret = vhdx_parse_log(bs, s, &log_flushed);"
],
"line_no": [
15,
73
]
} | static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,
Error **VAR_3)
{
BDRVVHDXState *s = VAR_0->opaque;
int VAR_4 = 0;
uint32_t i;
uint64_t signature;
bool log_flushed = false;
s->bat = NULL;
s->first_visible_write = true;
qemu_co_mutex... | [
"static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{",
"BDRVVHDXState *s = VAR_0->opaque;",
"int VAR_4 = 0;",
"uint32_t i;",
"uint64_t signature;",
"bool log_flushed = false;",
"s->bat = NULL;",
"s->first_visible_write = true;",
"qemu_co_mutex_init(&s->lock);",
"... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
27
],
[
29
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
59
],
[... |
18,957 | FFAMediaCodec* ff_AMediaCodec_createEncoderByType(const char *mime)
{
JNIEnv *env = NULL;
FFAMediaCodec *codec = NULL;
jstring mime_type = NULL;
codec = av_mallocz(sizeof(FFAMediaCodec));
if (!codec) {
return NULL;
}
codec->class = &amediacodec_class;
env = ff_jni_g... | true | FFmpeg | 1795dccde0ad22fc8201142f92fb8d58c234f3e4 | FFAMediaCodec* ff_AMediaCodec_createEncoderByType(const char *mime)
{
JNIEnv *env = NULL;
FFAMediaCodec *codec = NULL;
jstring mime_type = NULL;
codec = av_mallocz(sizeof(FFAMediaCodec));
if (!codec) {
return NULL;
}
codec->class = &amediacodec_class;
env = ff_jni_g... | {
"code": [
" codec->object = (*env)->NewGlobalRef(env, codec->object);",
" return codec;",
" ff_jni_reset_jfields(env, &codec->jfields, jni_amediacodec_mapping, 1, codec);",
" av_freep(&codec);",
" return NULL;",
" codec->object = (*env)->NewGlobalRef(env, codec->object);",
... | FFAMediaCodec* FUNC_0(const char *mime)
{
JNIEnv *env = NULL;
FFAMediaCodec *codec = NULL;
jstring mime_type = NULL;
codec = av_mallocz(sizeof(FFAMediaCodec));
if (!codec) {
return NULL;
}
codec->class = &amediacodec_class;
env = ff_jni_get_env(codec);
if (!env... | [
"FFAMediaCodec* FUNC_0(const char *mime)\n{",
"JNIEnv *env = NULL;",
"FFAMediaCodec *codec = NULL;",
"jstring mime_type = NULL;",
"codec = av_mallocz(sizeof(FFAMediaCodec));",
"if (!codec) {",
"return NULL;",
"}",
"codec->class = &amediacodec_class;",
"env = ff_jni_get_env(codec);",
"if (!env) {... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
... |
18,958 | static int mov_write_uuidprof_tag(AVIOContext *pb, AVFormatContext *s)
{
AVStream *video_st = s->streams[0];
AVCodecParameters *video_par = s->streams[0]->codecpar;
AVCodecParameters *audio_par = s->streams[1]->codecpar;
int audio_rate = audio_par->sample_rate;
int64_t frame_rate = (v... | true | FFmpeg | 709c87109dc856abff9c905dfda3ca954453828a | static int mov_write_uuidprof_tag(AVIOContext *pb, AVFormatContext *s)
{
AVStream *video_st = s->streams[0];
AVCodecParameters *video_par = s->streams[0]->codecpar;
AVCodecParameters *audio_par = s->streams[1]->codecpar;
int audio_rate = audio_par->sample_rate;
int64_t frame_rate = (v... | {
"code": [
" int64_t frame_rate = (video_st->avg_frame_rate.num * 0x10000LL) / video_st->avg_frame_rate.den;"
],
"line_no": [
13
]
} | static int FUNC_0(AVIOContext *VAR_0, AVFormatContext *VAR_1)
{
AVStream *video_st = VAR_1->streams[0];
AVCodecParameters *video_par = VAR_1->streams[0]->codecpar;
AVCodecParameters *audio_par = VAR_1->streams[1]->codecpar;
int VAR_2 = audio_par->sample_rate;
int64_t frame_rate = (vid... | [
"static int FUNC_0(AVIOContext *VAR_0, AVFormatContext *VAR_1)\n{",
"AVStream *video_st = VAR_1->streams[0];",
"AVCodecParameters *video_par = VAR_1->streams[0]->codecpar;",
"AVCodecParameters *audio_par = VAR_1->streams[1]->codecpar;",
"int VAR_2 = audio_par->sample_rate;",
"int64_t frame_rate =... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
... |
18,960 | void av_thread_message_queue_free(AVThreadMessageQueue **mq)
{
#if HAVE_THREADS
if (*mq) {
av_thread_message_flush(*mq);
av_fifo_freep(&(*mq)->fifo);
pthread_cond_destroy(&(*mq)->cond);
pthread_mutex_destroy(&(*mq)->lock);
av_freep(mq);
}
#endif
}
| true | FFmpeg | bd5c860fdbc33d19d2ff0f6d1f06de07c17560dd | void av_thread_message_queue_free(AVThreadMessageQueue **mq)
{
#if HAVE_THREADS
if (*mq) {
av_thread_message_flush(*mq);
av_fifo_freep(&(*mq)->fifo);
pthread_cond_destroy(&(*mq)->cond);
pthread_mutex_destroy(&(*mq)->lock);
av_freep(mq);
}
#endif
}
| {
"code": [
" pthread_cond_destroy(&(*mq)->cond);"
],
"line_no": [
13
]
} | void FUNC_0(AVThreadMessageQueue **VAR_0)
{
#if HAVE_THREADS
if (*VAR_0) {
av_thread_message_flush(*VAR_0);
av_fifo_freep(&(*VAR_0)->fifo);
pthread_cond_destroy(&(*VAR_0)->cond);
pthread_mutex_destroy(&(*VAR_0)->lock);
av_freep(VAR_0);
}
#endif
}
| [
"void FUNC_0(AVThreadMessageQueue **VAR_0)\n{",
"#if HAVE_THREADS\nif (*VAR_0) {",
"av_thread_message_flush(*VAR_0);",
"av_fifo_freep(&(*VAR_0)->fifo);",
"pthread_cond_destroy(&(*VAR_0)->cond);",
"pthread_mutex_destroy(&(*VAR_0)->lock);",
"av_freep(VAR_0);",
"}",
"#endif\n}"
] | [
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
]
] |
18,961 | static void vhdx_parse_header(BlockDriverState *bs, BDRVVHDXState *s,
Error **errp)
{
int ret;
VHDXHeader *header1;
VHDXHeader *header2;
bool h1_valid = false;
bool h2_valid = false;
uint64_t h1_seq = 0;
uint64_t h2_seq = 0;
uint8_t *buffer;
... | true | qemu | 6906046169ffa9d829beeeaafe1fadeba51669fb | static void vhdx_parse_header(BlockDriverState *bs, BDRVVHDXState *s,
Error **errp)
{
int ret;
VHDXHeader *header1;
VHDXHeader *header2;
bool h1_valid = false;
bool h2_valid = false;
uint64_t h1_seq = 0;
uint64_t h2_seq = 0;
uint8_t *buffer;
... | {
"code": [
" goto fail;"
],
"line_no": [
143
]
} | static void FUNC_0(BlockDriverState *VAR_0, BDRVVHDXState *VAR_1,
Error **VAR_2)
{
int VAR_3;
VHDXHeader *header1;
VHDXHeader *header2;
bool h1_valid = false;
bool h2_valid = false;
uint64_t h1_seq = 0;
uint64_t h2_seq = 0;
uint8_t *buffer;
... | [
"static void FUNC_0(BlockDriverState *VAR_0, BDRVVHDXState *VAR_1,\nError **VAR_2)\n{",
"int VAR_3;",
"VHDXHeader *header1;",
"VHDXHeader *header2;",
"bool h1_valid = false;",
"bool h2_valid = false;",
"uint64_t h1_seq = 0;",
"uint64_t h2_seq = 0;",
"uint8_t *buffer;",
"header1 = qemu_blockalign(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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
27
],
[
29
],
[
33
],
[
37
],
[
39
],
[
49
],
[
51
],
[
53
],
[
55
],
[
59
],
[... |
18,962 | int ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt,
int (*compare)(AVFormatContext *, AVPacket *, AVPacket *))
{
int ret;
AVPacketList **next_point, *this_pktl;
AVStream *st = s->streams[pkt->stream_index];
int chunked = s->max_chunk_size || s->max_chu... | true | FFmpeg | b66ac803fac2394309797193cc3fdd265a285b03 | int ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt,
int (*compare)(AVFormatContext *, AVPacket *, AVPacket *))
{
int ret;
AVPacketList **next_point, *this_pktl;
AVStream *st = s->streams[pkt->stream_index];
int chunked = s->max_chunk_size || s->max_chu... | {
"code": [
" if ((ret = av_packet_ref(&this_pktl->pkt, pkt)) < 0) {",
" av_free(this_pktl);",
" return ret;"
],
"line_no": [
33,
35,
37
]
} | VAR_4intVAR_4 VAR_4ff_interleave_add_packetVAR_4(VAR_4AVFormatContextVAR_4 *VAR_4VAR_0VAR_4, VAR_4AVPacketVAR_4 *VAR_4VAR_1VAR_4,
VAR_4intVAR_4 (*VAR_4VAR_2VAR_4)(VAR_4AVFormatContextVAR_4 *, VAR_4AVPacketVAR_4 *, VAR_4AVPacketVAR_4 *))
{
VAR_4intVAR_4 VAR_4retVAR_4;
VAR_4AVPack... | [
"VAR_4intVAR_4 VAR_4ff_interleave_add_packetVAR_4(VAR_4AVFormatContextVAR_4 *VAR_4VAR_0VAR_4, VAR_4AVPacketVAR_4 *VAR_4VAR_1VAR_4,\nVAR_4intVAR_4 (*VAR_4VAR_2VAR_4)(VAR_4AVFormatContextVAR_4 *, VAR_4AVPacketVAR_4 *, VAR_4AVPacketVAR_4 *))\n{",
"VAR_4intVAR_4 VAR_4retVAR_4;",
"VAR_4AVPacketListVAR_4 **VAR_4next_... | [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
... |
18,964 | static void x8_init_block_index(MpegEncContext *s){ //FIXME maybe merge with ff_*
//not s->linesize as this would be wrong for field pics
//not that IntraX8 has interlacing support ;)
const int linesize = s->current_picture.f.linesize[0];
const int uvlinesize = s->current_picture.f.linesize[1];
s->... | true | FFmpeg | f6774f905fb3cfdc319523ac640be30b14c1bc55 | static void x8_init_block_index(MpegEncContext *s){
const int linesize = s->current_picture.f.linesize[0];
const int uvlinesize = s->current_picture.f.linesize[1];
s->dest[0] = s->current_picture.f.data[0];
s->dest[1] = s->current_picture.f.data[1];
s->dest[2] = s->current_picture.f.da... | {
"code": [
" const int linesize = s->current_picture.f.linesize[0];",
" const int uvlinesize = s->current_picture.f.linesize[1];",
" s->dest[0] = s->current_picture.f.data[0];",
" s->dest[1] = s->current_picture.f.data[1];",
" s->dest[2] = s->current_picture.f.data[2];",
" ... | static void FUNC_0(MpegEncContext *VAR_0){
const int VAR_1 = VAR_0->current_picture.f.VAR_1[0];
const int VAR_2 = VAR_0->current_picture.f.VAR_1[1];
VAR_0->dest[0] = VAR_0->current_picture.f.data[0];
VAR_0->dest[1] = VAR_0->current_picture.f.data[1];
VAR_0->dest[2] = VAR_0->current_pic... | [
"static void FUNC_0(MpegEncContext *VAR_0){",
"const int VAR_1 = VAR_0->current_picture.f.VAR_1[0];",
"const int VAR_2 = VAR_0->current_picture.f.VAR_1[1];",
"VAR_0->dest[0] = VAR_0->current_picture.f.data[0];",
"VAR_0->dest[1] = VAR_0->current_picture.f.data[1];",
"VAR_0->dest[2] = VAR_0->current_pictu... | [
0,
1,
1,
1,
1,
1,
0,
0,
0,
0
] | [
[
1
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
18,966 | static int qemu_rdma_search_ram_block(RDMAContext *rdma,
uint64_t block_offset,
uint64_t offset,
uint64_t length,
uint64_t *block_index,
... | true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static int qemu_rdma_search_ram_block(RDMAContext *rdma,
uint64_t block_offset,
uint64_t offset,
uint64_t length,
uint64_t *block_index,
... | {
"code": [],
"line_no": []
} | static int FUNC_0(RDMAContext *VAR_0,
uint64_t VAR_1,
uint64_t VAR_2,
uint64_t VAR_3,
uint64_t *VAR_4,
uint64_t *VAR_5)
{
... | [
"static int FUNC_0(RDMAContext *VAR_0,\nuint64_t VAR_1,\nuint64_t VAR_2,\nuint64_t VAR_3,\nuint64_t *VAR_4,\nuint64_t *VAR_5)\n{",
"uint64_t current_addr = VAR_1 + VAR_2;",
"RDMALocalBlock *block = g_hash_table_lookup(VAR_0->blockmap,\n(void *) VAR_1);",
"assert(block);",
"assert(current_addr >= block->VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31,
33
],
[
37
],
[
39
]
] |
18,967 | static int decode_update_thread_context(AVCodecContext *dst,
const AVCodecContext *src)
{
H264Context *h = dst->priv_data, *h1 = src->priv_data;
int inited = h->context_initialized, err = 0;
int context_reinitialized = 0;
int i, ret;
if (dst == src)
... | true | FFmpeg | be30e44dd929c2557494b1b71084d48d3c002f15 | static int decode_update_thread_context(AVCodecContext *dst,
const AVCodecContext *src)
{
H264Context *h = dst->priv_data, *h1 = src->priv_data;
int inited = h->context_initialized, err = 0;
int context_reinitialized = 0;
int i, ret;
if (dst == src)
... | {
"code": [
" for (i = 0; i < 2; i++) {",
" h->rbsp_buffer[i] = NULL;",
" h->rbsp_buffer_size[i] = 0;"
],
"line_no": [
219,
221,
223
]
} | static int FUNC_0(AVCodecContext *VAR_0,
const AVCodecContext *VAR_1)
{
H264Context *h = VAR_0->priv_data, *h1 = VAR_1->priv_data;
int VAR_2 = h->context_initialized, VAR_3 = 0;
int VAR_4 = 0;
int VAR_5, VAR_6;
if (VAR_0 == VAR_1)
return 0;
... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nconst AVCodecContext *VAR_1)\n{",
"H264Context *h = VAR_0->priv_data, *h1 = VAR_1->priv_data;",
"int VAR_2 = h->context_initialized, VAR_3 = 0;",
"int VAR_4 = 0;",
"int VAR_5, VAR_6;",
"if (VAR_0 == VAR_1)\nreturn 0;",
"if (VAR_2 &&\n(h->width !... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23,
25,
27,
29,
31,
33,
35,
37
],
[
47
],
[
51
],
[
55
],
[
57
],
[
59
],
[
61
],
[
63
],
[
65
],
[... |
18,968 | static bool use_exit_tb(DisasContext *ctx)
{
return ((ctx->base.tb->cflags & CF_LAST_IO)
|| ctx->base.singlestep_enabled
|| singlestep);
}
| true | qemu | c5a49c63fa26e8825ad101dfe86339ae4c216539 | static bool use_exit_tb(DisasContext *ctx)
{
return ((ctx->base.tb->cflags & CF_LAST_IO)
|| ctx->base.singlestep_enabled
|| singlestep);
}
| {
"code": [
" return ((ctx->base.tb->cflags & CF_LAST_IO)"
],
"line_no": [
5
]
} | static bool FUNC_0(DisasContext *ctx)
{
return ((ctx->base.tb->cflags & CF_LAST_IO)
|| ctx->base.singlestep_enabled
|| singlestep);
}
| [
"static bool FUNC_0(DisasContext *ctx)\n{",
"return ((ctx->base.tb->cflags & CF_LAST_IO)\n|| ctx->base.singlestep_enabled\n|| singlestep);",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
11
]
] |
18,970 | static int register_insn (opc_handler_t **ppc_opcodes, opcode_t *insn)
{
if (insn->opc2 != 0xFF) {
if (insn->opc3 != 0xFF) {
if (register_dblind_insn(ppc_opcodes, insn->opc1, insn->opc2,
insn->opc3, &insn->handler) < 0)
return -1;
... | true | qemu | 323ad19bcc601d3ec9cb6f0f5b4d67b602fc519e | static int register_insn (opc_handler_t **ppc_opcodes, opcode_t *insn)
{
if (insn->opc2 != 0xFF) {
if (insn->opc3 != 0xFF) {
if (register_dblind_insn(ppc_opcodes, insn->opc1, insn->opc2,
insn->opc3, &insn->handler) < 0)
return -1;
... | {
"code": [
" if (register_dblind_insn(ppc_opcodes, insn->opc1, insn->opc2,",
" insn->opc3, &insn->handler) < 0)",
" return -1;"
],
"line_no": [
9,
11,
13
]
} | static int FUNC_0 (opc_handler_t **VAR_0, opcode_t *VAR_1)
{
if (VAR_1->opc2 != 0xFF) {
if (VAR_1->opc3 != 0xFF) {
if (register_dblind_insn(VAR_0, VAR_1->opc1, VAR_1->opc2,
VAR_1->opc3, &VAR_1->handler) < 0)
return -1;
} else {
... | [
"static int FUNC_0 (opc_handler_t **VAR_0, opcode_t *VAR_1)\n{",
"if (VAR_1->opc2 != 0xFF) {",
"if (VAR_1->opc3 != 0xFF) {",
"if (register_dblind_insn(VAR_0, VAR_1->opc1, VAR_1->opc2,\nVAR_1->opc3, &VAR_1->handler) < 0)\nreturn -1;",
"} else {",
"if (register_ind_insn(VAR_0, VAR_1->opc1,\nVAR_1->opc2, &VA... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11,
13
],
[
15
],
[
17,
19,
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
35
],
[
37
]
] |
18,971 | static ssize_t stellaris_enet_receive(NetClientState *nc, const uint8_t *buf, size_t size)
{
stellaris_enet_state *s = qemu_get_nic_opaque(nc);
int n;
uint8_t *p;
uint32_t crc;
if ((s->rctl & SE_RCTL_RXEN) == 0)
return -1;
if (s->np >= 31) {
return 0;
}
DPR... | true | qemu | 3a15cc0e1ee7168db0782133d2607a6bfa422d66 | static ssize_t stellaris_enet_receive(NetClientState *nc, const uint8_t *buf, size_t size)
{
stellaris_enet_state *s = qemu_get_nic_opaque(nc);
int n;
uint8_t *p;
uint32_t crc;
if ((s->rctl & SE_RCTL_RXEN) == 0)
return -1;
if (s->np >= 31) {
return 0;
}
DPR... | {
"code": [
" s->np++;"
],
"line_no": [
35
]
} | static ssize_t FUNC_0(NetClientState *nc, const uint8_t *buf, size_t size)
{
stellaris_enet_state *s = qemu_get_nic_opaque(nc);
int VAR_0;
uint8_t *p;
uint32_t crc;
if ((s->rctl & SE_RCTL_RXEN) == 0)
return -1;
if (s->np >= 31) {
return 0;
}
DPRINTF("Receiv... | [
"static ssize_t FUNC_0(NetClientState *nc, const uint8_t *buf, size_t size)\n{",
"stellaris_enet_state *s = qemu_get_nic_opaque(nc);",
"int VAR_0;",
"uint8_t *p;",
"uint32_t crc;",
"if ((s->rctl & SE_RCTL_RXEN) == 0)\nreturn -1;",
"if (s->np >= 31) {",
"return 0;",
"}",
"DPRINTF(\"Received packet ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
18,972 | int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext *pb)
{
int len, tag;
int object_type_id = avio_r8(pb);
avio_r8(pb); /* stream type */
avio_rb24(pb); /* buffer size db */
avio_rb32(pb); /* max bitrate */
avio_rb32(pb); /* avg bitrate */
if(avcodec_is_... | true | FFmpeg | 2c635fabbf7ec8ed4f30d9b3c04d5c24cb7a081d | int ff_mp4_read_dec_config_descr(AVFormatContext *fc, AVStream *st, AVIOContext *pb)
{
int len, tag;
int object_type_id = avio_r8(pb);
avio_r8(pb);
avio_rb24(pb);
avio_rb32(pb);
avio_rb32(pb);
if(avcodec_is_open(st->codec)) {
av_log(fc, AV_LOG_DEBUG, "codec open in rea... | {
"code": [
" avio_read(pb, st->codec->extradata, len);"
],
"line_no": [
49
]
} | int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, AVIOContext *VAR_2)
{
int VAR_3, VAR_4;
int VAR_5 = avio_r8(VAR_2);
avio_r8(VAR_2);
avio_rb24(VAR_2);
avio_rb32(VAR_2);
avio_rb32(VAR_2);
if(avcodec_is_open(VAR_1->codec)) {
av_log(VAR_0, AV_LOG_DEBUG, "codec open in ... | [
"int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, AVIOContext *VAR_2)\n{",
"int VAR_3, VAR_4;",
"int VAR_5 = avio_r8(VAR_2);",
"avio_r8(VAR_2);",
"avio_rb24(VAR_2);",
"avio_rb32(VAR_2);",
"avio_rb32(VAR_2);",
"if(avcodec_is_open(VAR_1->codec)) {",
"av_log(VAR_0, AV_LOG_DEBUG, \"codec open in read... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47
... |
18,973 | static int swr_convert_internal(struct SwrContext *s, AudioData *out, int out_count,
AudioData *in , int in_count){
AudioData *postin, *midbuf, *preout;
int ret/*, in_max*/;
AudioData preout_tmp, midbuf_tmp;
if(s->full_convert){
av_a... | true | FFmpeg | 32f53958b8f6ed4c3c2a7447c1e47d012796fae2 | static int swr_convert_internal(struct SwrContext *s, AudioData *out, int out_count,
AudioData *in , int in_count){
AudioData *postin, *midbuf, *preout;
int ret;
AudioData preout_tmp, midbuf_tmp;
if(s->full_convert){
av_assert0(!s->r... | {
"code": [
" if((ret=swri_get_dither(s, s->dither.noise.ch[ch], s->dither.noise.count, 12345678913579<<ch, s->dither.noise.fmt))<0)"
],
"line_no": [
181
]
} | static int FUNC_0(struct SwrContext *VAR_0, AudioData *VAR_1, int VAR_2,
AudioData *VAR_3 , int VAR_4){
AudioData *postin, *midbuf, *preout;
int VAR_5;
AudioData preout_tmp, midbuf_tmp;
if(VAR_0->full_convert){
av_assert0(!VAR_0->res... | [
"static int FUNC_0(struct SwrContext *VAR_0, AudioData *VAR_1, int VAR_2,\nAudioData *VAR_3 , int VAR_4){",
"AudioData *postin, *midbuf, *preout;",
"int VAR_5;",
"AudioData preout_tmp, midbuf_tmp;",
"if(VAR_0->full_convert){",
"av_assert0(!VAR_0->resample);",
"swri_audio_convert(VAR_0->full_convert, VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
31,
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47,
49
],
[
51
],
[
53,
55
... |
18,974 | int ff_probe_input_buffer(ByteIOContext **pb, AVInputFormat **fmt,
const char *filename, void *logctx,
unsigned int offset, unsigned int max_probe_size)
{
AVProbeData pd = { filename ? filename : "", NULL, -offset };
unsigned char *buf = NULL;
int re... | false | FFmpeg | 532aa889ebfea486c0d1898a8ed672e001a30598 | int ff_probe_input_buffer(ByteIOContext **pb, AVInputFormat **fmt,
const char *filename, void *logctx,
unsigned int offset, unsigned int max_probe_size)
{
AVProbeData pd = { filename ? filename : "", NULL, -offset };
unsigned char *buf = NULL;
int re... | {
"code": [],
"line_no": []
} | int FUNC_0(ByteIOContext **VAR_0, AVInputFormat **VAR_1,
const char *VAR_2, void *VAR_3,
unsigned int VAR_4, unsigned int VAR_5)
{
AVProbeData pd = { VAR_2 ? VAR_2 : "", NULL, -VAR_4 };
unsigned char *VAR_6 = NULL;
int VAR_7 = 0, VAR_8;
if (!V... | [
"int FUNC_0(ByteIOContext **VAR_0, AVInputFormat **VAR_1,\nconst char *VAR_2, void *VAR_3,\nunsigned int VAR_4, unsigned int VAR_5)\n{",
"AVProbeData pd = { VAR_2 ? VAR_2 : \"\", NULL, -VAR_4 };",
"unsigned char *VAR_6 = NULL;",
"int VAR_7 = 0, VAR_8;",
"if (!VAR_5) {",
"VAR_5 = PROBE_BUF_MAX;",
"} else... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
... |
18,975 | static int metasound_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
const uint8_t *buf, int buf_size)
{
TwinVQFrameData *bits = &tctx->bits;
const TwinVQModeTab *mtab = tctx->mtab;
int channels = tctx->avctx->channels;
int sub;
... | false | FFmpeg | 9e7b62f0fb7462a902330fcc82cf596388f0187b | static int metasound_read_bitstream(AVCodecContext *avctx, TwinVQContext *tctx,
const uint8_t *buf, int buf_size)
{
TwinVQFrameData *bits = &tctx->bits;
const TwinVQModeTab *mtab = tctx->mtab;
int channels = tctx->avctx->channels;
int sub;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, TwinVQContext *VAR_1,
const uint8_t *VAR_2, int VAR_3)
{
TwinVQFrameData *bits = &VAR_1->bits;
const TwinVQModeTab *VAR_4 = VAR_1->VAR_4;
int VAR_5 = VAR_1->VAR_0->VAR_5;
int VAR_6;
GetBitContext gb;... | [
"static int FUNC_0(AVCodecContext *VAR_0, TwinVQContext *VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{",
"TwinVQFrameData *bits = &VAR_1->bits;",
"const TwinVQModeTab *VAR_4 = VAR_1->VAR_4;",
"int VAR_5 = VAR_1->VAR_0->VAR_5;",
"int VAR_6;",
"GetBitContext gb;",
"int VAR_7, VAR_8, VAR_9;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
33
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
55
... |
18,976 | static inline void yuv2packedXinC(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
uint8_t *dest, int dstW, int y)
{
int i;
switch(c->dstFormat)
{
case IMGFMT_RGB32:
case IMGFMT_BGR32:
YSCALE_YUV_2_RGBX_C(uin... | false | FFmpeg | ae4cffd9fc5bc495692920d646d7d1462315cfa6 | static inline void yuv2packedXinC(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
uint8_t *dest, int dstW, int y)
{
int i;
switch(c->dstFormat)
{
case IMGFMT_RGB32:
case IMGFMT_BGR32:
YSCALE_YUV_2_RGBX_C(uin... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1, int16_t **VAR_2, int VAR_3,
int16_t *VAR_4, int16_t **VAR_5, int VAR_6,
uint8_t *VAR_7, int VAR_8, int VAR_9)
{
int VAR_10;
switch(VAR_0->dstFormat)
{
case IMGFMT_RGB32:
case IMGFMT_BGR32:
YSCALE_YUV_2_RGBX_C(uint32_t)
((ui... | [
"static inline void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1, int16_t **VAR_2, int VAR_3,\nint16_t *VAR_4, int16_t **VAR_5, int VAR_6,\nuint8_t *VAR_7, int VAR_8, int VAR_9)\n{",
"int VAR_10;",
"switch(VAR_0->dstFormat)\n{",
"case IMGFMT_RGB32:\ncase IMGFMT_BGR32:\nYSCALE_YUV_2_RGBX_C(uint32_t)\n((uint32_t*)V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11,
13
],
[
15,
17,
19,
21
],
[
23
],
[
25
],
[
27
],
[
29,
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
]
] |
18,977 | static int protocol_client_vencrypt_init(VncState *vs, uint8_t *data, size_t len)
{
if (data[0] != 0 ||
data[1] != 2) {
VNC_DEBUG("Unsupported VeNCrypt protocol %d.%d\n", (int)data[0], (int)data[1]);
vnc_write_u8(vs, 1); /* Reject version */
vnc_flush(vs);
vnc_client_e... | false | qemu | 7e7e2ebc942da8285931ceabf12823e165dced8b | static int protocol_client_vencrypt_init(VncState *vs, uint8_t *data, size_t len)
{
if (data[0] != 0 ||
data[1] != 2) {
VNC_DEBUG("Unsupported VeNCrypt protocol %d.%d\n", (int)data[0], (int)data[1]);
vnc_write_u8(vs, 1);
vnc_flush(vs);
vnc_client_error(vs);
} els... | {
"code": [],
"line_no": []
} | static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2)
{
if (VAR_1[0] != 0 ||
VAR_1[1] != 2) {
VNC_DEBUG("Unsupported VeNCrypt protocol %d.%d\n", (int)VAR_1[0], (int)VAR_1[1]);
vnc_write_u8(VAR_0, 1);
vnc_flush(VAR_0);
vnc_client_error(VAR_0);
} else {
... | [
"static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2)\n{",
"if (VAR_1[0] != 0 ||\nVAR_1[1] != 2) {",
"VNC_DEBUG(\"Unsupported VeNCrypt protocol %d.%d\\n\", (int)VAR_1[0], (int)VAR_1[1]);",
"vnc_write_u8(VAR_0, 1);",
"vnc_flush(VAR_0);",
"vnc_client_error(VAR_0);",
"} else {",
"VNC_DEBUG(\"... | [
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
]
] |
18,978 | static int qemu_rdma_exchange_send(RDMAContext *rdma, RDMAControlHeader *head,
uint8_t *data, RDMAControlHeader *resp,
int *resp_idx,
int (*callback)(RDMAContext *rdma))
{
int ret = 0;
/*
* Wai... | false | qemu | 482a33c53cbc9d2b0c47d4df03b659bf50258c21 | static int qemu_rdma_exchange_send(RDMAContext *rdma, RDMAControlHeader *head,
uint8_t *data, RDMAControlHeader *resp,
int *resp_idx,
int (*callback)(RDMAContext *rdma))
{
int ret = 0;
if... | {
"code": [],
"line_no": []
} | static int FUNC_0(RDMAContext *VAR_6, RDMAControlHeader *VAR_1,
uint8_t *VAR_2, RDMAControlHeader *VAR_3,
int *VAR_4,
int (*VAR_5)(RDMAContext *VAR_6))
{
int VAR_6 = 0;
if (VAR_6->control... | [
"static int FUNC_0(RDMAContext *VAR_6, RDMAControlHeader *VAR_1,\nuint8_t *VAR_2, RDMAControlHeader *VAR_3,\nint *VAR_4,\nint (*VAR_5)(RDMAContext *VAR_6))\n{",
"int VAR_6 = 0;",
"if (VAR_6->control_ready_expected) {",
"RDMAControlHeader VAR_3;",
"VAR_6 = qemu_rdma_exchange_get_response(VAR_6,\n&VAR_3, RDMA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
47
],
[
49
],
[
51
],
[
53,
55
],
[
57
],
[
59
],
[
61
],
[
71
],
[... |
18,979 | static void isa_ne2000_set_bootindex(Object *obj, Visitor *v,
const char *name, void *opaque,
Error **errp)
{
ISANE2000State *isa = ISA_NE2000(obj);
NE2000State *s = &isa->ne2000;
int32_t boot_index;
Error *local_err = NULL... | false | qemu | 621ff94d5074d88253a5818c6b9c4db718fbfc65 | static void isa_ne2000_set_bootindex(Object *obj, Visitor *v,
const char *name, void *opaque,
Error **errp)
{
ISANE2000State *isa = ISA_NE2000(obj);
NE2000State *s = &isa->ne2000;
int32_t boot_index;
Error *local_err = NULL... | {
"code": [],
"line_no": []
} | static void FUNC_0(Object *VAR_0, Visitor *VAR_1,
const char *VAR_2, void *VAR_3,
Error **VAR_4)
{
ISANE2000State *isa = ISA_NE2000(VAR_0);
NE2000State *s = &isa->ne2000;
int32_t boot_index;
Error *local_err = NULL;
... | [
"static void FUNC_0(Object *VAR_0, Visitor *VAR_1,\nconst char *VAR_2, void *VAR_3,\nError **VAR_4)\n{",
"ISANE2000State *isa = ISA_NE2000(VAR_0);",
"NE2000State *s = &isa->ne2000;",
"int32_t boot_index;",
"Error *local_err = NULL;",
"visit_type_int32(VAR_1, VAR_2, &boot_index, &local_err);",
"if (local... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
43,
45
],
[
47
],
[
49
],
[
51
]
] |
18,980 | static void dynticks_rearm_timer(struct qemu_alarm_timer *t)
{
timer_t host_timer = (timer_t)(long)t->priv;
struct itimerspec timeout;
int64_t nearest_delta_us = INT64_MAX;
int64_t current_us;
if (!active_timers[QEMU_TIMER_REALTIME] &&
!active_timers[QEMU_TIMER_VIRTUAL])
... | false | qemu | 0fdddf80a88ac2efe068990d1878f472bb6b95d9 | static void dynticks_rearm_timer(struct qemu_alarm_timer *t)
{
timer_t host_timer = (timer_t)(long)t->priv;
struct itimerspec timeout;
int64_t nearest_delta_us = INT64_MAX;
int64_t current_us;
if (!active_timers[QEMU_TIMER_REALTIME] &&
!active_timers[QEMU_TIMER_VIRTUAL])
... | {
"code": [],
"line_no": []
} | static void FUNC_0(struct qemu_alarm_timer *VAR_0)
{
timer_t host_timer = (timer_t)(long)VAR_0->priv;
struct itimerspec VAR_1;
int64_t nearest_delta_us = INT64_MAX;
int64_t current_us;
if (!active_timers[QEMU_TIMER_REALTIME] &&
!active_timers[QEMU_TIMER_VIRTUAL])
re... | [
"static void FUNC_0(struct qemu_alarm_timer *VAR_0)\n{",
"timer_t host_timer = (timer_t)(long)VAR_0->priv;",
"struct itimerspec VAR_1;",
"int64_t nearest_delta_us = INT64_MAX;",
"int64_t current_us;",
"if (!active_timers[QEMU_TIMER_REALTIME] &&\n!active_timers[QEMU_TIMER_VIRTUAL])\nreturn;",
"nearest_de... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
17,
19
],
[
23
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
47
],
[
49
],
[
51
],
[
53
],
[... |
18,981 | static int64_t coroutine_fn bdrv_co_get_block_status_above(BlockDriverState *bs,
BlockDriverState *base,
int64_t sector_num,
int nb_sectors,
int *pnum)
{
BlockDriverState *p;
int64_t ret = 0;
assert(bs != base);
for (p = bs; p != base; p = backing_bs(p)) {
... | false | qemu | 67a0fd2a9bca204d2b39f910a97c7137636a0715 | static int64_t coroutine_fn bdrv_co_get_block_status_above(BlockDriverState *bs,
BlockDriverState *base,
int64_t sector_num,
int nb_sectors,
int *pnum)
{
BlockDriverState *p;
int64_t ret = 0;
assert(bs != base);
for (p = bs; p != base; p = backing_bs(p)) {
... | {
"code": [],
"line_no": []
} | static int64_t VAR_0 bdrv_co_get_block_status_above(BlockDriverState *bs,
BlockDriverState *base,
int64_t sector_num,
int nb_sectors,
int *pnum)
{
BlockDriverState *p;
int64_t ret = 0;
assert(bs != base);
for (p = bs; p != base; p = backing_bs(p)) {
re... | [
"static int64_t VAR_0 bdrv_co_get_block_status_above(BlockDriverState *bs,\nBlockDriverState *base,\nint64_t sector_num,\nint nb_sectors,\nint *pnum)\n{",
"BlockDriverState *p;",
"int64_t ret = 0;",
"assert(bs != base);",
"for (p = bs; p != base; p = backing_bs(p)) {",
"ret = bdrv_co_get_block_status(p, s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
18,982 | timer_write(void *opaque, hwaddr addr,
uint64_t val64, unsigned int size)
{
struct timerblock *t = opaque;
struct xlx_timer *xt;
unsigned int timer;
uint32_t value = val64;
addr >>= 2;
timer = timer_from_addr(addr);
xt = &t->timers[timer];
D(fprintf(stderr, "%s ad... | false | qemu | 7dfba6dfbf805cf99c4ae89f6194bc9205dfbefe | timer_write(void *opaque, hwaddr addr,
uint64_t val64, unsigned int size)
{
struct timerblock *t = opaque;
struct xlx_timer *xt;
unsigned int timer;
uint32_t value = val64;
addr >>= 2;
timer = timer_from_addr(addr);
xt = &t->timers[timer];
D(fprintf(stderr, "%s ad... | {
"code": [],
"line_no": []
} | FUNC_0(void *VAR_0, hwaddr VAR_1,
uint64_t VAR_2, unsigned int VAR_3)
{
struct timerblock *VAR_4 = VAR_0;
struct xlx_timer *VAR_5;
unsigned int VAR_6;
uint32_t value = VAR_2;
VAR_1 >>= 2;
VAR_6 = timer_from_addr(VAR_1);
VAR_5 = &VAR_4->timers[VAR_6];
D(fprintf(std... | [
"FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned int VAR_3)\n{",
"struct timerblock *VAR_4 = VAR_0;",
"struct xlx_timer *VAR_5;",
"unsigned int VAR_6;",
"uint32_t value = VAR_2;",
"VAR_1 >>= 2;",
"VAR_6 = timer_from_addr(VAR_1);",
"VAR_5 = &VAR_4->timers[VAR_6];",
"D(fprintf(stderr, \"%s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
29
],
[
31,
33
],
[
35,
37,
39
],
[
43
],
[
45,
47
],
[
49
],
[
53,
55,
57
... |
18,983 | int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
{
int i, count, ret, read_size, j;
AVStream *st;
AVPacket pkt1, *pkt;
int64_t old_offset = avio_tell(ic->pb);
int orig_nb_streams = ic->nb_streams; // new streams might appear, no options for those
for(i=0... | false | FFmpeg | af08d9aeea870de017139f7b1c44b7d816cf8e56 | int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
{
int i, count, ret, read_size, j;
AVStream *st;
AVPacket pkt1, *pkt;
int64_t old_offset = avio_tell(ic->pb);
int orig_nb_streams = ic->nb_streams;
for(i=0;i<ic->nb_streams;i++) {
AVCodec *codec;... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFormatContext *VAR_0, AVDictionary **VAR_1)
{
int VAR_10, VAR_3, VAR_4, VAR_5, VAR_6;
AVStream *st;
AVPacket pkt1, *pkt;
int64_t old_offset = avio_tell(VAR_0->pb);
int VAR_7 = VAR_0->nb_streams;
for(VAR_10=0;VAR_10<VAR_0->nb_streams;VAR_10++) {
AVCodec *cod... | [
"int FUNC_0(AVFormatContext *VAR_0, AVDictionary **VAR_1)\n{",
"int VAR_10, VAR_3, VAR_4, VAR_5, VAR_6;",
"AVStream *st;",
"AVPacket pkt1, *pkt;",
"int64_t old_offset = avio_tell(VAR_0->pb);",
"int VAR_7 = VAR_0->nb_streams;",
"for(VAR_10=0;VAR_10<VAR_0->nb_streams;VAR_10++) {",
"AVCodec *codec;",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
35,
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
18,984 | static void dcr_write_sdram (void *opaque, int dcrn, uint32_t val)
{
ppc4xx_sdram_t *sdram;
sdram = opaque;
switch (dcrn) {
case SDRAM0_CFGADDR:
sdram->addr = val;
break;
case SDRAM0_CFGDATA:
switch (sdram->addr) {
case 0x00: /* SDRAM_BESR0 */
... | false | qemu | b6dcbe086c77ec683f5ff0b693593cda1d61f3a1 | static void dcr_write_sdram (void *opaque, int dcrn, uint32_t val)
{
ppc4xx_sdram_t *sdram;
sdram = opaque;
switch (dcrn) {
case SDRAM0_CFGADDR:
sdram->addr = val;
break;
case SDRAM0_CFGDATA:
switch (sdram->addr) {
case 0x00:
sdram->besr0 &= ... | {
"code": [],
"line_no": []
} | static void FUNC_0 (void *VAR_0, int VAR_1, uint32_t VAR_2)
{
ppc4xx_sdram_t *sdram;
sdram = VAR_0;
switch (VAR_1) {
case SDRAM0_CFGADDR:
sdram->addr = VAR_2;
break;
case SDRAM0_CFGDATA:
switch (sdram->addr) {
case 0x00:
sdram->besr0 &= ~VAR_... | [
"static void FUNC_0 (void *VAR_0, int VAR_1, uint32_t VAR_2)\n{",
"ppc4xx_sdram_t *sdram;",
"sdram = VAR_0;",
"switch (VAR_1) {",
"case SDRAM0_CFGADDR:\nsdram->addr = VAR_2;",
"break;",
"case SDRAM0_CFGDATA:\nswitch (sdram->addr) {",
"case 0x00:\nsdram->besr0 &= ~VAR_2;",
"break;",
"case 0x08:\nsd... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13,
15
],
[
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33
],
[
35,
37
],
[
39
],
[
41,
43
],
[
45
],
[
47,
49
],
... |
18,985 | void object_property_add_alias(Object *obj, const char *name,
Object *target_obj, const char *target_name,
Error **errp)
{
AliasProperty *prop;
ObjectProperty *target_prop;
target_prop = object_property_find(target_obj, target_name, errp)... | false | qemu | 64607d088132abdb25bf30d93e97d0c8df7b364c | void object_property_add_alias(Object *obj, const char *name,
Object *target_obj, const char *target_name,
Error **errp)
{
AliasProperty *prop;
ObjectProperty *target_prop;
target_prop = object_property_find(target_obj, target_name, errp)... | {
"code": [],
"line_no": []
} | void FUNC_0(Object *VAR_0, const char *VAR_1,
Object *VAR_2, const char *VAR_3,
Error **VAR_4)
{
AliasProperty *prop;
ObjectProperty *target_prop;
target_prop = object_property_find(VAR_2, VAR_3, VAR_4);
if (!target_prop) {
... | [
"void FUNC_0(Object *VAR_0, const char *VAR_1,\nObject *VAR_2, const char *VAR_3,\nError **VAR_4)\n{",
"AliasProperty *prop;",
"ObjectProperty *target_prop;",
"target_prop = object_property_find(VAR_2, VAR_3, VAR_4);",
"if (!target_prop) {",
"return;",
"}",
"prop = g_malloc(sizeof(*prop));",
"prop->... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33,
35,
37,
39,
41
],
[
43
]
] |
18,986 | static inline int tcg_global_reg_new_internal(TCGType type, int reg,
const char *name)
{
TCGContext *s = &tcg_ctx;
TCGTemp *ts;
int idx;
#if TCG_TARGET_REG_BITS == 32
if (type != TCG_TYPE_I32)
tcg_abort();
#endif
if (tcg_regset_test_r... | false | qemu | b3a62939561e07bc34493444fa926b6137cba4e8 | static inline int tcg_global_reg_new_internal(TCGType type, int reg,
const char *name)
{
TCGContext *s = &tcg_ctx;
TCGTemp *ts;
int idx;
#if TCG_TARGET_REG_BITS == 32
if (type != TCG_TYPE_I32)
tcg_abort();
#endif
if (tcg_regset_test_r... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(TCGType VAR_0, int VAR_1,
const char *VAR_2)
{
TCGContext *s = &tcg_ctx;
TCGTemp *ts;
int VAR_3;
#if TCG_TARGET_REG_BITS == 32
if (VAR_0 != TCG_TYPE_I32)
tcg_abort();
#endif
if (tcg_regset_test_reg(s->reserved... | [
"static inline int FUNC_0(TCGType VAR_0, int VAR_1,\nconst char *VAR_2)\n{",
"TCGContext *s = &tcg_ctx;",
"TCGTemp *ts;",
"int VAR_3;",
"#if TCG_TARGET_REG_BITS == 32\nif (VAR_0 != TCG_TYPE_I32)\ntcg_abort();",
"#endif\nif (tcg_regset_test_reg(s->reserved_regs, VAR_1))\ntcg_abort();",
"VAR_3 = s->nb_glo... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15,
17,
19
],
[
21,
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
18,987 | static SocketAddressLegacy *sd_socket_address(const char *path,
const char *host, const char *port)
{
SocketAddressLegacy *addr = g_new0(SocketAddressLegacy, 1);
if (path) {
addr->type = SOCKET_ADDRESS_LEGACY_KIND_UNIX;
addr->u.q_unix.data = g_new0... | false | qemu | bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884 | static SocketAddressLegacy *sd_socket_address(const char *path,
const char *host, const char *port)
{
SocketAddressLegacy *addr = g_new0(SocketAddressLegacy, 1);
if (path) {
addr->type = SOCKET_ADDRESS_LEGACY_KIND_UNIX;
addr->u.q_unix.data = g_new0... | {
"code": [],
"line_no": []
} | static SocketAddressLegacy *FUNC_0(const char *path,
const char *host, const char *port)
{
SocketAddressLegacy *addr = g_new0(SocketAddressLegacy, 1);
if (path) {
addr->type = SOCKET_ADDRESS_LEGACY_KIND_UNIX;
addr->u.q_unix.data = g_new0(UnixSocket... | [
"static SocketAddressLegacy *FUNC_0(const char *path,\nconst char *host, const char *port)\n{",
"SocketAddressLegacy *addr = g_new0(SocketAddressLegacy, 1);",
"if (path) {",
"addr->type = SOCKET_ADDRESS_LEGACY_KIND_UNIX;",
"addr->u.q_unix.data = g_new0(UnixSocketAddress, 1);",
"addr->u.q_unix.data->path =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
]
] |
18,989 | void tcg_target_init(TCGContext *s)
{
tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffffffff);
#if defined(__sparc_v9__) && !defined(__sparc_v8plus__)
tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I64], 0, 0xffffffff);
#endif
tcg_regset_set32(tcg_target_call_clobber_regs, 0,
... | false | qemu | a212ea75534aebe98c03451b58c5fdf754cf8978 | void tcg_target_init(TCGContext *s)
{
tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffffffff);
#if defined(__sparc_v9__) && !defined(__sparc_v8plus__)
tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I64], 0, 0xffffffff);
#endif
tcg_regset_set32(tcg_target_call_clobber_regs, 0,
... | {
"code": [],
"line_no": []
} | void FUNC_0(TCGContext *VAR_0)
{
tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffffffff);
#if defined(__sparc_v9__) && !defined(__sparc_v8plus__)
tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I64], 0, 0xffffffff);
#endif
tcg_regset_set32(tcg_target_call_clobber_regs, 0,
... | [
"void FUNC_0(TCGContext *VAR_0)\n{",
"tcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I32], 0, 0xffffffff);",
"#if defined(__sparc_v9__) && !defined(__sparc_v8plus__)\ntcg_regset_set32(tcg_target_available_regs[TCG_TYPE_I64], 0, 0xffffffff);",
"#endif\ntcg_regset_set32(tcg_target_call_clobber_regs, 0,\n(1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11,
13,
15,
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41
],
[
45
],
[
47
],
[
49,
51
],
[
53,
55
],
[
57
],
[
59
],
[
61
... |
18,991 | int kvm_has_sync_mmu(void)
{
return kvm_check_extension(kvm_state, KVM_CAP_SYNC_MMU);
}
| false | qemu | 62dd4edaaf859b60f74a51f2a526d4d3d85d0248 | int kvm_has_sync_mmu(void)
{
return kvm_check_extension(kvm_state, KVM_CAP_SYNC_MMU);
}
| {
"code": [],
"line_no": []
} | int FUNC_0(void)
{
return kvm_check_extension(kvm_state, KVM_CAP_SYNC_MMU);
}
| [
"int FUNC_0(void)\n{",
"return kvm_check_extension(kvm_state, KVM_CAP_SYNC_MMU);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
18,992 | static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h)
{
int sx = 0, sy = 0;
int dx = 0, dy = 0;
int depth = 0;
int notify = 0;
/* make sure to only copy if it's a plain copy ROP */
if (*s->cirrus_rop == cirrus_bitblt_rop_fwd_src ||
*s->cirrus_rop == cirr... | false | qemu | 4299b90e9ba9ce5ca9024572804ba751aa1a7e70 | static void cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h)
{
int sx = 0, sy = 0;
int dx = 0, dy = 0;
int depth = 0;
int notify = 0;
if (*s->cirrus_rop == cirrus_bitblt_rop_fwd_src ||
*s->cirrus_rop == cirrus_bitblt_rop_bkwd_src) {
int width, heigh... | {
"code": [],
"line_no": []
} | static void FUNC_0(CirrusVGAState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)
{
int VAR_5 = 0, VAR_6 = 0;
int VAR_7 = 0, VAR_8 = 0;
int VAR_9 = 0;
int VAR_10 = 0;
if (*VAR_0->cirrus_rop == cirrus_bitblt_rop_fwd_src ||
*VAR_0->cirrus_rop == cirrus_bitblt_rop_bkwd_src) {... | [
"static void FUNC_0(CirrusVGAState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{",
"int VAR_5 = 0, VAR_6 = 0;",
"int VAR_7 = 0, VAR_8 = 0;",
"int VAR_9 = 0;",
"int VAR_10 = 0;",
"if (*VAR_0->cirrus_rop == cirrus_bitblt_rop_fwd_src ||\n*VAR_0->cirrus_rop == cirrus_bitblt_rop_bkwd_src) {",
"int 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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17,
19
],
[
23
],
[
27
],
[
29
],
[
35
],
[
37
],
[
39
],
[
41
],
[
47
],
[
57
],
[
59
],
[
61
],
[
63
],
[
65
],
[... |
18,993 | static uint64_t pic_ioport_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
PICCommonState *s = opaque;
int ret;
if (s->poll) {
ret = pic_get_irq(s);
if (ret >= 0) {
pic_intack(s, ret);
ret |= 0x80;
} els... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t pic_ioport_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
PICCommonState *s = opaque;
int ret;
if (s->poll) {
ret = pic_get_irq(s);
if (ret >= 0) {
pic_intack(s, ret);
ret |= 0x80;
} els... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,
unsigned size)
{
PICCommonState *s = opaque;
int VAR_0;
if (s->poll) {
VAR_0 = pic_get_irq(s);
if (VAR_0 >= 0) {
pic_intack(s, VAR_0);
VAR_0 |= 0x80;
} el... | [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr,\nunsigned size)\n{",
"PICCommonState *s = opaque;",
"int VAR_0;",
"if (s->poll) {",
"VAR_0 = pic_get_irq(s);",
"if (VAR_0 >= 0) {",
"pic_intack(s, VAR_0);",
"VAR_0 |= 0x80;",
"} else {",
"VAR_0 = 0;",
"}",
"s->poll = 0;",
"} else... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.