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 |
|---|---|---|---|---|---|---|---|---|---|---|
25,380 | int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
{
int pqindex, lowquant;
int status;
int mbmodetab, imvtab, icbptab, twomvbptab, fourmvbptab; /* useful only for debugging */
int scale, shift, i; /* for initializing LUT for intensity compensation */
v->numref=0;
v->fcm=0... | true | FFmpeg | 7b5c03064df522aef027490c51af8136ed5f17b3 | int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
{
int pqindex, lowquant;
int status;
int mbmodetab, imvtab, icbptab, twomvbptab, fourmvbptab;
int scale, shift, i;
v->numref=0;
v->fcm=0;
v->field_mode=0;
v->p_frame_skipped = 0;
if (v->second_field) {
... | {
"code": [
" av_log(v->s.avctx, AV_LOG_ERROR, \"P Fields do not work currently\\n\");",
" return -1;"
],
"line_no": [
341,
307
]
} | int FUNC_0(VC1Context *VAR_0, GetBitContext* VAR_1)
{
int VAR_2, VAR_3;
int VAR_4;
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
int VAR_10, VAR_11, VAR_12;
VAR_0->numref=0;
VAR_0->fcm=0;
VAR_0->field_mode=0;
VAR_0->p_frame_skipped = 0;
if (VAR_0->second_field) {
VAR_... | [
"int FUNC_0(VC1Context *VAR_0, GetBitContext* VAR_1)\n{",
"int VAR_2, VAR_3;",
"int VAR_4;",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"int VAR_10, VAR_11, VAR_12;",
"VAR_0->numref=0;",
"VAR_0->fcm=0;",
"VAR_0->field_mode=0;",
"VAR_0->p_frame_skipped = 0;",
"if (VAR_0->second_field) {",
"VAR_0->... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47,... |
25,381 | static int decode_mb(MadContext *s, AVFrame *frame, int inter)
{
int mv_map = 0;
int mv_x, mv_y;
int j;
if (inter) {
int v = decode210(&s->gb);
if (v < 2) {
mv_map = v ? get_bits(&s->gb, 6) : 63;
mv_x = decode_motion(&s->gb);
mv_y = decode_... | true | FFmpeg | a779602584b43578e8baa69b367ba7d64e973dd0 | static int decode_mb(MadContext *s, AVFrame *frame, int inter)
{
int mv_map = 0;
int mv_x, mv_y;
int j;
if (inter) {
int v = decode210(&s->gb);
if (v < 2) {
mv_map = v ? get_bits(&s->gb, 6) : 63;
mv_x = decode_motion(&s->gb);
mv_y = decode_... | {
"code": [
" int mv_x, mv_y;"
],
"line_no": [
7
]
} | static int FUNC_0(MadContext *VAR_0, AVFrame *VAR_1, int VAR_2)
{
int VAR_3 = 0;
int VAR_4, VAR_5;
int VAR_6;
if (VAR_2) {
int VAR_7 = decode210(&VAR_0->gb);
if (VAR_7 < 2) {
VAR_3 = VAR_7 ? get_bits(&VAR_0->gb, 6) : 63;
VAR_4 = decode_motion(&VAR_0->gb... | [
"static int FUNC_0(MadContext *VAR_0, AVFrame *VAR_1, int VAR_2)\n{",
"int VAR_3 = 0;",
"int VAR_4, VAR_5;",
"int VAR_6;",
"if (VAR_2) {",
"int VAR_7 = decode210(&VAR_0->gb);",
"if (VAR_7 < 2) {",
"VAR_3 = VAR_7 ? get_bits(&VAR_0->gb, 6) : 63;",
"VAR_4 = decode_motion(&VAR_0->gb);",
"VAR_5 = decod... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45,
47
... |
25,384 | static inline uint16_t vring_avail_idx(VirtQueue *vq)
{
VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);
hwaddr pa = offsetof(VRingAvail, idx);
vq->shadow_avail_idx = virtio_lduw_phys_cached(vq->vdev, &caches->avail, pa);
return vq->shadow_avail_idx;
}
| true | qemu | e0e2d644096c79a71099b176d08f465f6803a8b1 | static inline uint16_t vring_avail_idx(VirtQueue *vq)
{
VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);
hwaddr pa = offsetof(VRingAvail, idx);
vq->shadow_avail_idx = virtio_lduw_phys_cached(vq->vdev, &caches->avail, pa);
return vq->shadow_avail_idx;
}
| {
"code": [
" VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);",
" VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);",
" VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);",
" VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq-... | static inline uint16_t FUNC_0(VirtQueue *vq)
{
VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);
hwaddr pa = offsetof(VRingAvail, idx);
vq->shadow_avail_idx = virtio_lduw_phys_cached(vq->vdev, &caches->avail, pa);
return vq->shadow_avail_idx;
}
| [
"static inline uint16_t FUNC_0(VirtQueue *vq)\n{",
"VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);",
"hwaddr pa = offsetof(VRingAvail, idx);",
"vq->shadow_avail_idx = virtio_lduw_phys_cached(vq->vdev, &caches->avail, pa);",
"return vq->shadow_avail_idx;",
"}"
] | [
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
25,385 | USBDevice *usb_create_simple(USBBus *bus, const char *name)
{
USBDevice *dev = usb_create(bus, name);
qdev_init(&dev->qdev);
return dev;
}
| true | qemu | e23a1b33b53d25510320b26d9f154e19c6c99725 | USBDevice *usb_create_simple(USBBus *bus, const char *name)
{
USBDevice *dev = usb_create(bus, name);
qdev_init(&dev->qdev);
return dev;
}
| {
"code": [
" qdev_init(&dev->qdev);",
" qdev_init(&dev->qdev);",
" qdev_init(&dev->qdev);",
" qdev_init(&dev->qdev);",
" qdev_init(&dev->qdev);",
" qdev_init(&dev->qdev);",
" qdev_init(&dev->qdev);",
" qdev_init(&dev->qdev);"
],
"line_no": [
7,
7,
... | USBDevice *FUNC_0(USBBus *bus, const char *name)
{
USBDevice *dev = usb_create(bus, name);
qdev_init(&dev->qdev);
return dev;
}
| [
"USBDevice *FUNC_0(USBBus *bus, const char *name)\n{",
"USBDevice *dev = usb_create(bus, name);",
"qdev_init(&dev->qdev);",
"return dev;",
"}"
] | [
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
25,386 | static void qvirtio_pci_foreach_callback(
QPCIDevice *dev, int devfn, void *data)
{
QVirtioPCIForeachData *d = data;
QVirtioPCIDevice *vpcidev = qpcidevice_to_qvirtiodevice(dev);
if (vpcidev->vdev.device_type == d->device_type &&
(!d->has_slot || vpcidev->pdev->devfn ... | true | qemu | 80e1eea37a25a7696137e680285e36d0bfdc9f34 | static void qvirtio_pci_foreach_callback(
QPCIDevice *dev, int devfn, void *data)
{
QVirtioPCIForeachData *d = data;
QVirtioPCIDevice *vpcidev = qpcidevice_to_qvirtiodevice(dev);
if (vpcidev->vdev.device_type == d->device_type &&
(!d->has_slot || vpcidev->pdev->devfn ... | {
"code": [
" g_free(vpcidev);"
],
"line_no": [
21
]
} | static void FUNC_0(
QPCIDevice *VAR_0, int VAR_1, void *VAR_2)
{
QVirtioPCIForeachData *d = VAR_2;
QVirtioPCIDevice *vpcidev = qpcidevice_to_qvirtiodevice(VAR_0);
if (vpcidev->vdev.device_type == d->device_type &&
(!d->has_slot || vpcidev->pdev->VAR_1 == d->slot << 3)... | [
"static void FUNC_0(\nQPCIDevice *VAR_0, int VAR_1, void *VAR_2)\n{",
"QVirtioPCIForeachData *d = VAR_2;",
"QVirtioPCIDevice *vpcidev = qpcidevice_to_qvirtiodevice(VAR_0);",
"if (vpcidev->vdev.device_type == d->device_type &&\n(!d->has_slot || vpcidev->pdev->VAR_1 == d->slot << 3)) {",
"d->func(&vpcidev->vd... | [
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
25,387 | static inline void qpel_motion(MpegEncContext *s,
uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr,
int field_based, int bottom_field, int field_select,
uint8_t **ref_picture, op_pixels_func (*pix_op)[4],
... | true | FFmpeg | c341f734e5f9d6af4a8fdcceb6f5d12de6395c76 | static inline void qpel_motion(MpegEncContext *s,
uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr,
int field_based, int bottom_field, int field_select,
uint8_t **ref_picture, op_pixels_func (*pix_op)[4],
... | {
"code": [
" int dxy, uvdxy, mx, my, src_x, src_y, uvsrc_x, uvsrc_y, v_edge_pos, linesize, uvlinesize;"
],
"line_no": [
17
]
} | static inline void FUNC_0(MpegEncContext *VAR_0,
uint8_t *VAR_1, uint8_t *VAR_2, uint8_t *VAR_3,
int VAR_4, int VAR_5, int VAR_6,
uint8_t **VAR_7, VAR_8 (*pix_op)[4],
VAR_9 (*qpix_op)[16],
... | [
"static inline void FUNC_0(MpegEncContext *VAR_0,\nuint8_t *VAR_1, uint8_t *VAR_2, uint8_t *VAR_3,\nint VAR_4, int VAR_5, int VAR_6,\nuint8_t **VAR_7, VAR_8 (*pix_op)[4],\nVAR_9 (*qpix_op)[16],\nint VAR_10, int VAR_11, int VAR_12)\n{",
"uint8_t *ptr_y, *ptr_cb, *ptr_cr;",
"int VAR_13, VAR_14, VAR_15, VAR_16, VA... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11,
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
25,389 | static int host_pci_config_read(int pos, int len, uint32_t val)
{
char path[PATH_MAX];
int config_fd;
ssize_t size = sizeof(path);
/* Access real host bridge. */
int rc = snprintf(path, size, "/sys/bus/pci/devices/%04x:%02x:%02x.%d/%s",
0, 0, 0, 0, "config");
if (... | true | qemu | e3fce97cf500c61f23df8e0245e08625fc375295 | static int host_pci_config_read(int pos, int len, uint32_t val)
{
char path[PATH_MAX];
int config_fd;
ssize_t size = sizeof(path);
int rc = snprintf(path, size, "/sys/bus/pci/devices/%04x:%02x:%02x.%d/%s",
0, 0, 0, 0, "config");
if (rc >= size || rc < 0) {
... | {
"code": [
" return -errno;",
" return -errno;",
" return 0;"
],
"line_no": [
39,
39,
57
]
} | static int FUNC_0(int VAR_0, int VAR_1, uint32_t VAR_2)
{
char VAR_3[PATH_MAX];
int VAR_4;
ssize_t size = sizeof(VAR_3);
int VAR_5 = snprintf(VAR_3, size, "/sys/bus/pci/devices/%04x:%02x:%02x.%d/%s",
0, 0, 0, 0, "config");
if (VAR_5 >= size || VAR_5 < 0) {
... | [
"static int FUNC_0(int VAR_0, int VAR_1, uint32_t VAR_2)\n{",
"char VAR_3[PATH_MAX];",
"int VAR_4;",
"ssize_t size = sizeof(VAR_3);",
"int VAR_5 = snprintf(VAR_3, size, \"/sys/bus/pci/devices/%04x:%02x:%02x.%d/%s\",\n0, 0, 0, 0, \"config\");",
"if (VAR_5 >= size || VAR_5 < 0) {",
"return -ENODEV;",
"}... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
25,390 | static inline void read_mem(IVState *s, uint64_t off, void *buf, size_t len)
{
QTestState *qtest = global_qtest;
global_qtest = s->qtest;
qpci_memread(s->dev, s->mem_base + off, buf, len);
global_qtest = qtest;
}
| true | qemu | b4ba67d9a702507793c2724e56f98e9b0f7be02b | static inline void read_mem(IVState *s, uint64_t off, void *buf, size_t len)
{
QTestState *qtest = global_qtest;
global_qtest = s->qtest;
qpci_memread(s->dev, s->mem_base + off, buf, len);
global_qtest = qtest;
}
| {
"code": [
" qpci_memread(s->dev, s->mem_base + off, buf, len);"
],
"line_no": [
11
]
} | static inline void FUNC_0(IVState *VAR_0, uint64_t VAR_1, void *VAR_2, size_t VAR_3)
{
QTestState *qtest = global_qtest;
global_qtest = VAR_0->qtest;
qpci_memread(VAR_0->dev, VAR_0->mem_base + VAR_1, VAR_2, VAR_3);
global_qtest = qtest;
}
| [
"static inline void FUNC_0(IVState *VAR_0, uint64_t VAR_1, void *VAR_2, size_t VAR_3)\n{",
"QTestState *qtest = global_qtest;",
"global_qtest = VAR_0->qtest;",
"qpci_memread(VAR_0->dev, VAR_0->mem_base + VAR_1, VAR_2, VAR_3);",
"global_qtest = qtest;",
"}"
] | [
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
25,391 | static void sdhci_initfn(Object *obj)
{
SDHCIState *s = SDHCI(obj);
DriveInfo *di;
di = drive_get_next(IF_SD);
s->card = sd_init(di ? di->bdrv : NULL, false);
if (s->card == NULL) {
exit(1);
}
s->eject_cb = qemu_allocate_irqs(sdhci_insert_eject_cb, s, 1)[0];
s->ro_cb ... | true | qemu | f3c7d0389fe8a2792fd4c1cf151b885de03c8f62 | static void sdhci_initfn(Object *obj)
{
SDHCIState *s = SDHCI(obj);
DriveInfo *di;
di = drive_get_next(IF_SD);
s->card = sd_init(di ? di->bdrv : NULL, false);
if (s->card == NULL) {
exit(1);
}
s->eject_cb = qemu_allocate_irqs(sdhci_insert_eject_cb, s, 1)[0];
s->ro_cb ... | {
"code": [
" s->eject_cb = qemu_allocate_irqs(sdhci_insert_eject_cb, s, 1)[0];",
" s->ro_cb = qemu_allocate_irqs(sdhci_card_readonly_cb, s, 1)[0];"
],
"line_no": [
21,
23
]
} | static void FUNC_0(Object *VAR_0)
{
SDHCIState *s = SDHCI(VAR_0);
DriveInfo *di;
di = drive_get_next(IF_SD);
s->card = sd_init(di ? di->bdrv : NULL, false);
if (s->card == NULL) {
exit(1);
}
s->eject_cb = qemu_allocate_irqs(sdhci_insert_eject_cb, s, 1)[0];
s->ro_cb = ... | [
"static void FUNC_0(Object *VAR_0)\n{",
"SDHCIState *s = SDHCI(VAR_0);",
"DriveInfo *di;",
"di = drive_get_next(IF_SD);",
"s->card = sd_init(di ? di->bdrv : NULL, false);",
"if (s->card == NULL) {",
"exit(1);",
"}",
"s->eject_cb = qemu_allocate_irqs(sdhci_insert_eject_cb, s, 1)[0];",
"s->ro_cb = q... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
]
] |
25,392 | static int decode_packet(AVCodecContext *avctx,
void *data, int *data_size, AVPacket* avpkt)
{
WmallDecodeCtx *s = avctx->priv_data;
GetBitContext* gb = &s->pgb;
const uint8_t* buf = avpkt->data;
int buf_size = avpkt->size;
int num_bits_prev_frame;
int pac... | true | FFmpeg | dae7ff04160901a30a35af05f2f149b289c4f0b1 | static int decode_packet(AVCodecContext *avctx,
void *data, int *data_size, AVPacket* avpkt)
{
WmallDecodeCtx *s = avctx->priv_data;
GetBitContext* gb = &s->pgb;
const uint8_t* buf = avpkt->data;
int buf_size = avpkt->size;
int num_bits_prev_frame;
int pac... | {
"code": [
"\tint seekable_frame_in_packet = get_bits1(gb);",
"\tint spliced_packet = get_bits1(gb);",
"\t\tdecode_frame(s);"
],
"line_no": [
57,
59,
113
]
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2, AVPacket* VAR_3)
{
WmallDecodeCtx *s = VAR_0->priv_data;
GetBitContext* gb = &s->pgb;
const uint8_t* VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
int VAR_6;
int VAR_7;
s->samples ... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2, AVPacket* VAR_3)\n{",
"WmallDecodeCtx *s = VAR_0->priv_data;",
"GetBitContext* gb = &s->pgb;",
"const uint8_t* VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"int VAR_6;",
"int VAR_7;",
"s->samples = VAR_1;",
"s->s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
37,
39
],
[
43
],
[
45
],
[
47
],
[
53
],
[
55
],
[
57
... |
25,393 | int vhost_backend_update_device_iotlb(struct vhost_dev *dev,
uint64_t iova, uint64_t uaddr,
uint64_t len,
IOMMUAccessFlags perm)
{
struct vhost_iotlb_msg imsg;
imsg.iova... | true | qemu | 384b557da1a44ce260cd0328c06a250507348f73 | int vhost_backend_update_device_iotlb(struct vhost_dev *dev,
uint64_t iova, uint64_t uaddr,
uint64_t len,
IOMMUAccessFlags perm)
{
struct vhost_iotlb_msg imsg;
imsg.iova... | {
"code": [
" return dev->vhost_ops->vhost_send_device_iotlb_msg(dev, &imsg);",
" return dev->vhost_ops->vhost_send_device_iotlb_msg(dev, &imsg);"
],
"line_no": [
53,
53
]
} | int FUNC_0(struct vhost_dev *VAR_0,
uint64_t VAR_1, uint64_t VAR_2,
uint64_t VAR_3,
IOMMUAccessFlags VAR_4)
{
struct vhost_iotlb_msg VAR_5;
VAR_5.VAR_1 = VAR_1;
VA... | [
"int FUNC_0(struct vhost_dev *VAR_0,\nuint64_t VAR_1, uint64_t VAR_2,\nuint64_t VAR_3,\nIOMMUAccessFlags VAR_4)\n{",
"struct vhost_iotlb_msg VAR_5;",
"VAR_5.VAR_1 = VAR_1;",
"VAR_5.VAR_2 = VAR_2;",
"VAR_5.size = VAR_3;",
"VAR_5.type = VHOST_IOTLB_UPDATE;",
"switch (VAR_4) {",
"case IOMMU_RO:\nVAR_5.V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
49
],
[
53
],
[... |
25,394 | void qemu_set_log_filename(const char *filename)
{
char *pidstr;
g_free(logfilename);
pidstr = strstr(filename, "%");
if (pidstr) {
/* We only accept one %d, no other format strings */
if (pidstr[1] != 'd' || strchr(pidstr + 2, '%')) {
error_report("Bad logfile form... | true | qemu | daa76aa416b1e18ab1fac650ff53d966d8f21f68 | void qemu_set_log_filename(const char *filename)
{
char *pidstr;
g_free(logfilename);
pidstr = strstr(filename, "%");
if (pidstr) {
if (pidstr[1] != 'd' || strchr(pidstr + 2, '%')) {
error_report("Bad logfile format: %s", filename);
logfilename = NULL;... | {
"code": [
"void qemu_set_log_filename(const char *filename)",
" error_report(\"Bad logfile format: %s\", filename);",
" logfilename = NULL;"
],
"line_no": [
1,
19,
21
]
} | void FUNC_0(const char *VAR_0)
{
char *VAR_1;
g_free(logfilename);
VAR_1 = strstr(VAR_0, "%");
if (VAR_1) {
if (VAR_1[1] != 'd' || strchr(VAR_1 + 2, '%')) {
error_report("Bad logfile format: %s", VAR_0);
logfilename = NULL;
} else {
... | [
"void FUNC_0(const char *VAR_0)\n{",
"char *VAR_1;",
"g_free(logfilename);",
"VAR_1 = strstr(VAR_0, \"%\");",
"if (VAR_1) {",
"if (VAR_1[1] != 'd' || strchr(VAR_1 + 2, '%')) {",
"error_report(\"Bad logfile format: %s\", VAR_0);",
"logfilename = NULL;",
"} else {",
"logfilename = g_strdup_printf(VA... | [
1,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
25,395 | static void virtio_scsi_handle_event(VirtIODevice *vdev, VirtQueue *vq)
{
VirtIOSCSI *s = VIRTIO_SCSI(vdev);
if (s->ctx && !s->dataplane_started) {
virtio_scsi_dataplane_start(s);
return;
}
if (s->events_dropped) {
virtio_scsi_push_event(s, NULL, VIRTIO_SCSI_T_NO_EVENT,... | true | qemu | a8f2e5c8fffbaf7fbd4f0efc8efbeebade78008f | static void virtio_scsi_handle_event(VirtIODevice *vdev, VirtQueue *vq)
{
VirtIOSCSI *s = VIRTIO_SCSI(vdev);
if (s->ctx && !s->dataplane_started) {
virtio_scsi_dataplane_start(s);
return;
}
if (s->events_dropped) {
virtio_scsi_push_event(s, NULL, VIRTIO_SCSI_T_NO_EVENT,... | {
"code": [
" if (s->ctx && !s->dataplane_started) {",
" virtio_scsi_dataplane_start(s);",
" if (s->ctx && !s->dataplane_started) {",
" virtio_scsi_dataplane_start(s);",
" if (s->ctx && !s->dataplane_started) {",
" if (s->events_dropped) {",
" virtio_scsi_p... | static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)
{
VirtIOSCSI *s = VIRTIO_SCSI(VAR_0);
if (s->ctx && !s->dataplane_started) {
virtio_scsi_dataplane_start(s);
return;
}
if (s->events_dropped) {
virtio_scsi_push_event(s, NULL, VIRTIO_SCSI_T_NO_EVENT, 0);
}
... | [
"static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)\n{",
"VirtIOSCSI *s = VIRTIO_SCSI(VAR_0);",
"if (s->ctx && !s->dataplane_started) {",
"virtio_scsi_dataplane_start(s);",
"return;",
"}",
"if (s->events_dropped) {",
"virtio_scsi_push_event(s, NULL, VIRTIO_SCSI_T_NO_EVENT, 0);",
"}",
"}"
] | [
0,
0,
1,
1,
0,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
25,396 | static int gdb_set_spe_reg(CPUState *env, uint8_t *mem_buf, int n)
{
if (n < 32) {
#if defined(TARGET_PPC64)
target_ulong lo = (uint32_t)env->gpr[n];
target_ulong hi = (target_ulong)ldl_p(mem_buf) << 32;
env->gpr[n] = lo | hi;
#else
env->gprh[n] = ldl_p(mem_buf);
#endif
... | true | qemu | 70976a7926b42d87e0c575412b85a8f5c1e48fad | static int gdb_set_spe_reg(CPUState *env, uint8_t *mem_buf, int n)
{
if (n < 32) {
#if defined(TARGET_PPC64)
target_ulong lo = (uint32_t)env->gpr[n];
target_ulong hi = (target_ulong)ldl_p(mem_buf) << 32;
env->gpr[n] = lo | hi;
#else
env->gprh[n] = ldl_p(mem_buf);
#endif
... | {
"code": [
" if (n == 33) {",
" if (n == 34) {",
" if (n == 33) {",
" if (n == 34) {",
" if (n == 33) {",
" if (n == 34) {",
" if (n == 33) {",
" if (n == 34) {"
],
"line_no": [
25,
33,
25,
33,
25,
33,
25,
33
]
} | static int FUNC_0(CPUState *VAR_0, uint8_t *VAR_1, int VAR_2)
{
if (VAR_2 < 32) {
#if defined(TARGET_PPC64)
target_ulong lo = (uint32_t)VAR_0->gpr[VAR_2];
target_ulong hi = (target_ulong)ldl_p(VAR_1) << 32;
VAR_0->gpr[VAR_2] = lo | hi;
#else
VAR_0->gprh[VAR_2] = ldl_p(VAR_1);... | [
"static int FUNC_0(CPUState *VAR_0, uint8_t *VAR_1, int VAR_2)\n{",
"if (VAR_2 < 32) {",
"#if defined(TARGET_PPC64)\ntarget_ulong lo = (uint32_t)VAR_0->gpr[VAR_2];",
"target_ulong hi = (target_ulong)ldl_p(VAR_1) << 32;",
"VAR_0->gpr[VAR_2] = lo | hi;",
"#else\nVAR_0->gprh[VAR_2] = ldl_p(VAR_1);",
"#endi... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13
],
[
15,
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
25,397 | int pci_bridge_initfn(PCIDevice *dev)
{
PCIBus *parent = dev->bus;
PCIBridge *br = DO_UPCAST(PCIBridge, dev, dev);
PCIBus *sec_bus = &br->sec_bus;
pci_word_test_and_set_mask(dev->config + PCI_STATUS,
PCI_STATUS_66MHZ | PCI_STATUS_FAST_BACK);
pci_config_set_cla... | true | qemu | b308c82cbda44e138ef990af64d44a5613c16092 | int pci_bridge_initfn(PCIDevice *dev)
{
PCIBus *parent = dev->bus;
PCIBridge *br = DO_UPCAST(PCIBridge, dev, dev);
PCIBus *sec_bus = &br->sec_bus;
pci_word_test_and_set_mask(dev->config + PCI_STATUS,
PCI_STATUS_66MHZ | PCI_STATUS_FAST_BACK);
pci_config_set_cla... | {
"code": [
" pci_bridge_region_init(br);",
" pci_bridge_region_init(br);"
],
"line_no": [
67,
67
]
} | int FUNC_0(PCIDevice *VAR_0)
{
PCIBus *parent = VAR_0->bus;
PCIBridge *br = DO_UPCAST(PCIBridge, VAR_0, VAR_0);
PCIBus *sec_bus = &br->sec_bus;
pci_word_test_and_set_mask(VAR_0->config + PCI_STATUS,
PCI_STATUS_66MHZ | PCI_STATUS_FAST_BACK);
pci_config_set_clas... | [
"int FUNC_0(PCIDevice *VAR_0)\n{",
"PCIBus *parent = VAR_0->bus;",
"PCIBridge *br = DO_UPCAST(PCIBridge, VAR_0, VAR_0);",
"PCIBus *sec_bus = &br->sec_bus;",
"pci_word_test_and_set_mask(VAR_0->config + PCI_STATUS,\nPCI_STATUS_66MHZ | PCI_STATUS_FAST_BACK);",
"pci_config_set_class(VAR_0->config, PCI_CLASS_B... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
19,
21,
23
],
[
25,
27
],
[
43
],
[
45
],
[
47
],
[
51,
53
],
[
55
],
[
57
],
[
59
],
[
61
],
[
63
],
[... |
25,398 | static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
{
ASFContext *asf = s->priv_data;
ff_asf_guid g;
ByteIOContext *pb = s->pb;
AVStream *st;
ASFStream *asf_st;
int size, i;
int64_t gsize;
AVRational dar[128];
uint32_t bitrate[128];
memset(dar, 0, ... | true | FFmpeg | 31247669593e5bf6571192f5e8888ccabd050ec8 | static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
{
ASFContext *asf = s->priv_data;
ff_asf_guid g;
ByteIOContext *pb = s->pb;
AVStream *st;
ASFStream *asf_st;
int size, i;
int64_t gsize;
AVRational dar[128];
uint32_t bitrate[128];
memset(dar, 0, ... | {
"code": [
" if(tag1 == MKTAG('D', 'V', 'R', ' '))"
],
"line_no": [
431
]
} | static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)
{
ASFContext *asf = VAR_0->priv_data;
ff_asf_guid g;
ByteIOContext *pb = VAR_0->pb;
AVStream *st;
ASFStream *asf_st;
int VAR_2, VAR_36;
int64_t gsize;
AVRational dar[128];
uint32_t VAR_18[128];
mems... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)\n{",
"ASFContext *asf = VAR_0->priv_data;",
"ff_asf_guid g;",
"ByteIOContext *pb = VAR_0->pb;",
"AVStream *st;",
"ASFStream *asf_st;",
"int VAR_2, VAR_36;",
"int64_t gsize;",
"AVRational dar[128];",
"uint32_t VAR_18[128];",
"m... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
25,399 | int64_t qmp_guest_file_open(const char *path, bool has_mode, const char *mode,
Error **errp)
{
FILE *fh;
Error *local_err = NULL;
int fd;
int64_t ret = -1, handle;
if (!has_mode) {
mode = "r";
}
slog("guest-file-open called, filepath: %s, mode:... | true | qemu | a903f40c314c57734ffd651786c953541cfc43a8 | int64_t qmp_guest_file_open(const char *path, bool has_mode, const char *mode,
Error **errp)
{
FILE *fh;
Error *local_err = NULL;
int fd;
int64_t ret = -1, handle;
if (!has_mode) {
mode = "r";
}
slog("guest-file-open called, filepath: %s, mode:... | {
"code": [
" if (error_is_set(errp)) {",
" if (error_is_set(errp)) {"
],
"line_no": [
65,
65
]
} | int64_t FUNC_0(const char *path, bool has_mode, const char *mode,
Error **errp)
{
FILE *fh;
Error *local_err = NULL;
int VAR_0;
int64_t ret = -1, handle;
if (!has_mode) {
mode = "r";
}
slog("guest-file-open called, filepath: %s, mode: %s", path... | [
"int64_t FUNC_0(const char *path, bool has_mode, const char *mode,\nError **errp)\n{",
"FILE *fh;",
"Error *local_err = NULL;",
"int VAR_0;",
"int64_t ret = -1, handle;",
"if (!has_mode) {",
"mode = \"r\";",
"}",
"slog(\"guest-file-open called, filepath: %s, mode: %s\", path, mode);",
"fh = safe_o... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51,
53
... |
25,400 | static av_cold int rl2_read_header(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
AVStream *st;
unsigned int frame_count;
unsigned int audio_frame_counter = 0;
unsigned int video_frame_counter = 0;
unsigned int back_size;
unsigned short sound_rate;
unsigned short rate;
unsi... | true | FFmpeg | 3ca14aa5964ea5d11f7a15f9fff17924d6096d44 | static av_cold int rl2_read_header(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
AVStream *st;
unsigned int frame_count;
unsigned int audio_frame_counter = 0;
unsigned int video_frame_counter = 0;
unsigned int back_size;
unsigned short sound_rate;
unsigned short rate;
unsi... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
AVStream *st;
unsigned int VAR_0;
unsigned int VAR_1 = 0;
unsigned int VAR_2 = 0;
unsigned int VAR_3;
unsigned short VAR_4;
unsigned short VAR_5;
unsigned short VAR_6;
unsigned short VAR_7;
u... | [
"static av_cold int FUNC_0(AVFormatContext *s)\n{",
"AVIOContext *pb = s->pb;",
"AVStream *st;",
"unsigned int VAR_0;",
"unsigned int VAR_1 = 0;",
"unsigned int VAR_2 = 0;",
"unsigned int VAR_3;",
"unsigned short VAR_4;",
"unsigned short VAR_5;",
"unsigned short VAR_6;",
"unsigned short VAR_7;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
... |
25,402 | static int cdxl_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *pkt)
{
CDXLVideoContext *c = avctx->priv_data;
AVFrame * const p = data;
int ret, w, h, encoding, aligned_width, buf_size = pkt->size;
const uint8_t *buf = pkt->data;
if (b... | true | FFmpeg | 1002932a3b16d35c46a08455f76462909eebb5aa | static int cdxl_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *pkt)
{
CDXLVideoContext *c = avctx->priv_data;
AVFrame * const p = data;
int ret, w, h, encoding, aligned_width, buf_size = pkt->size;
const uint8_t *buf = pkt->data;
if (b... | {
"code": [
" if (c->video_size < aligned_width * avctx->height * c->bpp / 8)"
],
"line_no": [
79
]
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
CDXLVideoContext *c = VAR_0->priv_data;
AVFrame * const p = VAR_1;
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9 = VAR_3->size;
const uint8_t *VAR_10 = VAR_3->VAR_1;
if (VAR_9 < ... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"CDXLVideoContext *c = VAR_0->priv_data;",
"AVFrame * const p = VAR_1;",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9 = VAR_3->size;",
"const uint8_t *VAR_10 = VAR_3->VAR_1;",
"if (VAR_9 < 32)\nreturn AVERROR_INVALI... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
45,
47
],
[
49,... |
25,403 | int32 floatx80_to_int32_round_to_zero( floatx80 a STATUS_PARAM )
{
flag aSign;
int32 aExp, shiftCount;
uint64_t aSig, savedASig;
int32 z;
aSig = extractFloatx80Frac( a );
aExp = extractFloatx80Exp( a );
aSign = extractFloatx80Sign( a );
if ( 0x401E < aExp ) {
if ( ( a... | true | qemu | b3a6a2e0417c78ec5491347eb85a7d125a5fefdc | int32 floatx80_to_int32_round_to_zero( floatx80 a STATUS_PARAM )
{
flag aSign;
int32 aExp, shiftCount;
uint64_t aSig, savedASig;
int32 z;
aSig = extractFloatx80Frac( a );
aExp = extractFloatx80Exp( a );
aSign = extractFloatx80Sign( a );
if ( 0x401E < aExp ) {
if ( ( a... | {
"code": [
" int32 z;",
" int32 z;",
" int32 z;",
" int32 z;"
],
"line_no": [
11,
11,
11,
11
]
} | int32 FUNC_0( floatx80 a STATUS_PARAM )
{
flag aSign;
int32 aExp, shiftCount;
uint64_t aSig, savedASig;
int32 z;
aSig = extractFloatx80Frac( a );
aExp = extractFloatx80Exp( a );
aSign = extractFloatx80Sign( a );
if ( 0x401E < aExp ) {
if ( ( aExp == 0x7FFF ) && (uint6... | [
"int32 FUNC_0( floatx80 a STATUS_PARAM )\n{",
"flag aSign;",
"int32 aExp, shiftCount;",
"uint64_t aSig, savedASig;",
"int32 z;",
"aSig = extractFloatx80Frac( a );",
"aExp = extractFloatx80Exp( a );",
"aSign = extractFloatx80Sign( a );",
"if ( 0x401E < aExp ) {",
"if ( ( aExp == 0x7FFF ) && (uint64... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
25,405 | static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt)
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
RawVideoContext *context = avctx->priv_data;
const uint8_t *buf = avpkt->data;
int buf_size ... | true | FFmpeg | 8962da9ec367b535f975c876643ed2cad2bad32e | static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt)
{
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(avctx->pix_fmt);
RawVideoContext *context = avctx->priv_data;
const uint8_t *buf = avpkt->data;
int buf_size ... | {
"code": [
" frame->buf[0] = av_buffer_alloc(context->frame_size);",
" memcpy(frame->buf[0]->data, buf, FFMIN(buf_size, context->frame_size));"
],
"line_no": [
61,
119
]
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const AVPixFmtDescriptor *VAR_4 = av_pix_fmt_desc_get(VAR_0->pix_fmt);
RawVideoContext *context = VAR_0->priv_data;
const uint8_t *VAR_5 = VAR_3->VAR_1;
int VAR_6 ... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const AVPixFmtDescriptor *VAR_4 = av_pix_fmt_desc_get(VAR_0->pix_fmt);",
"RawVideoContext *context = VAR_0->priv_data;",
"const uint8_t *VAR_5 = VAR_3->VAR_1;",
"int VAR_6 = VAR_3->... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[... |
25,406 | int ff_vaapi_mpeg_end_frame(AVCodecContext *avctx)
{
struct vaapi_context * const vactx = avctx->hwaccel_context;
MpegEncContext *s = avctx->priv_data;
int ret;
ret = ff_vaapi_commit_slices(vactx);
if (ret < 0)
goto finish;
ret = ff_vaapi_render_picture(vactx,
... | true | FFmpeg | f6774f905fb3cfdc319523ac640be30b14c1bc55 | int ff_vaapi_mpeg_end_frame(AVCodecContext *avctx)
{
struct vaapi_context * const vactx = avctx->hwaccel_context;
MpegEncContext *s = avctx->priv_data;
int ret;
ret = ff_vaapi_commit_slices(vactx);
if (ret < 0)
goto finish;
ret = ff_vaapi_render_picture(vactx,
... | {
"code": [
" ff_vaapi_get_surface_id(&s->current_picture_ptr->f));"
],
"line_no": [
23
]
} | int FUNC_0(AVCodecContext *VAR_0)
{
struct vaapi_context * const VAR_1 = VAR_0->hwaccel_context;
MpegEncContext *s = VAR_0->priv_data;
int VAR_2;
VAR_2 = ff_vaapi_commit_slices(VAR_1);
if (VAR_2 < 0)
goto finish;
VAR_2 = ff_vaapi_render_picture(VAR_1,
... | [
"int FUNC_0(AVCodecContext *VAR_0)\n{",
"struct vaapi_context * const VAR_1 = VAR_0->hwaccel_context;",
"MpegEncContext *s = VAR_0->priv_data;",
"int VAR_2;",
"VAR_2 = ff_vaapi_commit_slices(VAR_1);",
"if (VAR_2 < 0)\ngoto finish;",
"VAR_2 = ff_vaapi_render_picture(VAR_1,\nff_vaapi_get_surface_id(&s->cu... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
21,
23
],
[
25,
27
],
[
31
],
[
35,
37
],
[
39
],
[
41
]
] |
25,407 | static void usb_uas_command(UASDevice *uas, uas_ui *ui)
{
UASRequest *req;
uint32_t len;
uint16_t tag = be16_to_cpu(ui->hdr.tag);
if (uas_using_streams(uas) && tag > UAS_MAX_STREAMS) {
goto invalid_tag;
}
req = usb_uas_find_request(uas, tag);
if (req) {
goto overlapped_tag;
... | true | qemu | 3453f9a0dfa58578e6dadf0905ff4528b428ec73 | static void usb_uas_command(UASDevice *uas, uas_ui *ui)
{
UASRequest *req;
uint32_t len;
uint16_t tag = be16_to_cpu(ui->hdr.tag);
if (uas_using_streams(uas) && tag > UAS_MAX_STREAMS) {
goto invalid_tag;
}
req = usb_uas_find_request(uas, tag);
if (req) {
goto overlapped_tag;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(UASDevice *VAR_0, uas_ui *VAR_1)
{
UASRequest *req;
uint32_t len;
uint16_t tag = be16_to_cpu(VAR_1->hdr.tag);
if (uas_using_streams(VAR_0) && tag > UAS_MAX_STREAMS) {
goto invalid_tag;
}
req = usb_uas_find_request(VAR_0, tag);
if (req) {
goto overlapped_tag... | [
"static void FUNC_0(UASDevice *VAR_0, uas_ui *VAR_1)\n{",
"UASRequest *req;",
"uint32_t len;",
"uint16_t tag = be16_to_cpu(VAR_1->hdr.tag);",
"if (uas_using_streams(VAR_0) && tag > UAS_MAX_STREAMS) {",
"goto invalid_tag;",
"}",
"req = usb_uas_find_request(VAR_0, tag);",
"if (req) {",
"goto overlap... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17,
18,
19
],
[
20
],
[
21
],
[
22
],... |
25,408 | static int rscc_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
RsccContext *ctx = avctx->priv_data;
GetByteContext *gbc = &ctx->gbc;
GetByteContext tiles_gbc;
AVFrame *frame = data;
const uint8_t *pixels, *raw;
uint8_t *inf... | true | FFmpeg | 934572c5c3592732a30336afdf2df9926a8b4df2 | static int rscc_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
RsccContext *ctx = avctx->priv_data;
GetByteContext *gbc = &ctx->gbc;
GetByteContext tiles_gbc;
AVFrame *frame = data;
const uint8_t *pixels, *raw;
uint8_t *inf... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
RsccContext *ctx = VAR_0->priv_data;
GetByteContext *gbc = &ctx->gbc;
GetByteContext tiles_gbc;
AVFrame *frame = VAR_1;
const uint8_t *VAR_4, *raw;
uint8_t *inflated_tiles = ... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"RsccContext *ctx = VAR_0->priv_data;",
"GetByteContext *gbc = &ctx->gbc;",
"GetByteContext tiles_gbc;",
"AVFrame *frame = VAR_1;",
"const uint8_t *VAR_4, *raw;",
"uint8_t *inflated_tiles = NULL;",
"int VAR_5, 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,
0,
0,
0,
0,
0,
0... | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
14
],
[
15
],
[
16
],
[
18
],
[
19,
20
],
[
21
],
[
22
],
[
23
],
[
27
],... |
25,409 | static void swap_channel_layouts_on_filter(AVFilterContext *filter)
{
AVFilterLink *link = NULL;
int i, j, k;
for (i = 0; i < filter->nb_inputs; i++) {
link = filter->inputs[i];
if (link->type == AVMEDIA_TYPE_AUDIO &&
link->out_channel_layouts->nb_channel_layouts == 1)... | true | FFmpeg | e3496e5dbe277e056800ebe7740ac6467d35d5cb | static void swap_channel_layouts_on_filter(AVFilterContext *filter)
{
AVFilterLink *link = NULL;
int i, j, k;
for (i = 0; i < filter->nb_inputs; i++) {
link = filter->inputs[i];
if (link->type == AVMEDIA_TYPE_AUDIO &&
link->out_channel_layouts->nb_channel_layouts == 1)... | {
"code": [
" int best_idx, best_score = INT_MIN, best_count_diff = INT_MAX;"
],
"line_no": [
35
]
} | static void FUNC_0(AVFilterContext *VAR_0)
{
AVFilterLink *link = NULL;
int VAR_1, VAR_2, VAR_3;
for (VAR_1 = 0; VAR_1 < VAR_0->nb_inputs; VAR_1++) {
link = VAR_0->inputs[VAR_1];
if (link->type == AVMEDIA_TYPE_AUDIO &&
link->out_channel_layouts->nb_channel_layouts == 1... | [
"static void FUNC_0(AVFilterContext *VAR_0)\n{",
"AVFilterLink *link = NULL;",
"int VAR_1, VAR_2, VAR_3;",
"for (VAR_1 = 0; VAR_1 < VAR_0->nb_inputs; VAR_1++) {",
"link = VAR_0->inputs[VAR_1];",
"if (link->type == AVMEDIA_TYPE_AUDIO &&\nlink->out_channel_layouts->nb_channel_layouts == 1)\nbreak;",
"}",
... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17,
19,
21
],
[
23
],
[
25,
27
],
[
31
],
[
33
],
[
35
],
[
39,
41,
43
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
... |
25,410 | int img_convert(AVPicture *dst, int dst_pix_fmt,
const AVPicture *src, int src_pix_fmt,
int src_width, int src_height)
{
static int inited;
int i, ret, dst_width, dst_height, int_pix_fmt;
const PixFmtInfo *src_pix, *dst_pix;
const ConvertEntry *ce;
AVPicture t... | false | FFmpeg | 5e53486545726987ab4482321d4dcf7e23e7652f | int img_convert(AVPicture *dst, int dst_pix_fmt,
const AVPicture *src, int src_pix_fmt,
int src_width, int src_height)
{
static int inited;
int i, ret, dst_width, dst_height, int_pix_fmt;
const PixFmtInfo *src_pix, *dst_pix;
const ConvertEntry *ce;
AVPicture t... | {
"code": [],
"line_no": []
} | int FUNC_0(AVPicture *VAR_21, int VAR_1,
const AVPicture *VAR_22, int VAR_3,
int VAR_4, int VAR_5)
{
static int VAR_6;
int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;
const PixFmtInfo *VAR_12, *dst_pix;
const ConvertEntry *VAR_13;
AVPicture tmp1, *tmp = &tmp1;
... | [
"int FUNC_0(AVPicture *VAR_21, int VAR_1,\nconst AVPicture *VAR_22, int VAR_3,\nint VAR_4, int VAR_5)\n{",
"static int VAR_6;",
"int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;",
"const PixFmtInfo *VAR_12, *dst_pix;",
"const ConvertEntry *VAR_13;",
"AVPicture tmp1, *tmp = &tmp1;",
"if (VAR_3 < 0 || VAR_3 >= PI... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[... |
25,411 | static void nal_send(AVFormatContext *ctx, const uint8_t *buf, int len, int last_packet_of_frame)
{
RTPMuxContext *rtp_ctx = ctx->priv_data;
int rtp_payload_size = rtp_ctx->max_payload_size - RTP_HEVC_HEADERS_SIZE;
int nal_type = (buf[0] >> 1) & 0x3F;
/* send it as one single NAL unit... | true | FFmpeg | c82bf15dca00f67a701d126e47ea9075fc9459cb | static void nal_send(AVFormatContext *ctx, const uint8_t *buf, int len, int last_packet_of_frame)
{
RTPMuxContext *rtp_ctx = ctx->priv_data;
int rtp_payload_size = rtp_ctx->max_payload_size - RTP_HEVC_HEADERS_SIZE;
int nal_type = (buf[0] >> 1) & 0x3F;
if (len <= rtp_ctx->max_pay... | {
"code": [
" buffered_size = 0;",
" } else {",
" } else {",
" } else {",
"static void nal_send(AVFormatContext *ctx, const uint8_t *buf, int len, int last_packet_of_frame)",
" RTPMuxContext *rtp_ctx = ctx->priv_data;",
" int rtp_payload_size = rtp_ctx->... | static void FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3)
{
RTPMuxContext *rtp_ctx = VAR_0->priv_data;
int VAR_4 = rtp_ctx->max_payload_size - RTP_HEVC_HEADERS_SIZE;
int VAR_5 = (VAR_1[0] >> 1) & 0x3F;
if (VAR_2 <= rtp_ctx->max_payload_size) {
... | [
"static void FUNC_0(AVFormatContext *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3)\n{",
"RTPMuxContext *rtp_ctx = VAR_0->priv_data;",
"int VAR_4 = rtp_ctx->max_payload_size - RTP_HEVC_HEADERS_SIZE;",
"int VAR_5 = (VAR_1[0] >> 1) & 0x3F;",
"if (VAR_2 <= rtp_ctx->max_payload_size) {",
"int ... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
0,
0,
1,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
25,412 | static void decode_band_structure(GetBitContext *gbc, int blk, int eac3,
int ecpl, int start_subband, int end_subband,
const uint8_t *default_band_struct,
uint8_t *band_struct, int *num_subbands,
... | true | FFmpeg | c763f86728f1ae8c64794dc1a2451777539e382d | static void decode_band_structure(GetBitContext *gbc, int blk, int eac3,
int ecpl, int start_subband, int end_subband,
const uint8_t *default_band_struct,
uint8_t *band_struct, int *num_subbands,
... | {
"code": [
" n_bands = n_subbands;"
],
"line_no": [
53
]
} | static void FUNC_0(GetBitContext *VAR_0, int VAR_1, int VAR_2,
int VAR_3, int VAR_4, int VAR_5,
const uint8_t *VAR_6,
uint8_t *VAR_7, int *VAR_8,
int *VAR_9, int *VAR_10)
{
i... | [
"static void FUNC_0(GetBitContext *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5,\nconst uint8_t *VAR_6,\nuint8_t *VAR_7, int *VAR_8,\nint *VAR_9, int *VAR_10)\n{",
"int VAR_11, VAR_12, VAR_13, VAR_14, VAR_15[22];",
"VAR_13 = VAR_5 - VAR_4;",
"if (!VAR_2 || get_bits1(VAR_0)) {",
"for (VAR_11... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
17
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33,
35,
37
],
[
39
],
[
41
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
... |
25,415 | static void init_coef_vlc(VLC *vlc,
uint16_t **prun_table, uint16_t **plevel_table,
const CoefVLCTable *vlc_table)
{
int n = vlc_table->n;
const uint8_t *table_bits = vlc_table->huffbits;
const uint32_t *table_codes = vlc_table->huffcodes;
cons... | true | FFmpeg | 073c2593c9f0aa4445a6fc1b9b24e6e52a8cc2c1 | static void init_coef_vlc(VLC *vlc,
uint16_t **prun_table, uint16_t **plevel_table,
const CoefVLCTable *vlc_table)
{
int n = vlc_table->n;
const uint8_t *table_bits = vlc_table->huffbits;
const uint32_t *table_codes = vlc_table->huffcodes;
cons... | {
"code": [
" init_vlc(vlc, 9, n, table_bits, 1, 1, table_codes, 4, 4);"
],
"line_no": [
25
]
} | static void FUNC_0(VLC *VAR_0,
uint16_t **VAR_1, uint16_t **VAR_2,
const CoefVLCTable *VAR_3)
{
int VAR_4 = VAR_3->VAR_4;
const uint8_t *VAR_5 = VAR_3->huffbits;
const uint32_t *VAR_6 = VAR_3->huffcodes;
const uint16_t *VAR_7 = VAR_3->levels;
... | [
"static void FUNC_0(VLC *VAR_0,\nuint16_t **VAR_1, uint16_t **VAR_2,\nconst CoefVLCTable *VAR_3)\n{",
"int VAR_4 = VAR_3->VAR_4;",
"const uint8_t *VAR_5 = VAR_3->huffbits;",
"const uint32_t *VAR_6 = VAR_3->huffcodes;",
"const uint16_t *VAR_7 = VAR_3->levels;",
"uint16_t *run_table, *level_table;",
"cons... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
25,416 | static int avisynth_read_packet_video(AVFormatContext *s, AVPacket *pkt,
int discard)
{
AviSynthContext *avs = s->priv_data;
AVS_VideoFrame *frame;
unsigned char *dst_p;
const unsigned char *src_p;
int n, i, plane, rowsize, planeheight, pitch, bits;
... | false | FFmpeg | aaae59700f7fc10fd80cb93b38c5d109900872d9 | static int avisynth_read_packet_video(AVFormatContext *s, AVPacket *pkt,
int discard)
{
AviSynthContext *avs = s->priv_data;
AVS_VideoFrame *frame;
unsigned char *dst_p;
const unsigned char *src_p;
int n, i, plane, rowsize, planeheight, pitch, bits;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1,
int VAR_2)
{
AviSynthContext *avs = VAR_0->priv_data;
AVS_VideoFrame *frame;
unsigned char *VAR_3;
const unsigned char *VAR_4;
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;
const cha... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1,\nint VAR_2)\n{",
"AviSynthContext *avs = VAR_0->priv_data;",
"AVS_VideoFrame *frame;",
"unsigned char *VAR_3;",
"const unsigned char *VAR_4;",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;",
"const char *VAR_12;",
"if (avs->curr_fra... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31,
33
],
[
37,
47,
49
],
[
51,
53
],
[
55,
57
],
[
59,
61
],
[
63,
65
],
[... |
25,417 | static void avc_luma_midh_qrt_and_aver_dst_16w_msa(const uint8_t *src,
int32_t src_stride,
uint8_t *dst,
int32_t dst_stride,
... | false | FFmpeg | 72dbc610be3272ba36603f78a39cc2d2d8fe0cc3 | static void avc_luma_midh_qrt_and_aver_dst_16w_msa(const uint8_t *src,
int32_t src_stride,
uint8_t *dst,
int32_t dst_stride,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(const uint8_t *VAR_0,
int32_t VAR_1,
uint8_t *VAR_2,
int32_t VAR_3,
int32_t VAR_4,
... | [
"static void FUNC_0(const uint8_t *VAR_0,\nint32_t VAR_1,\nuint8_t *VAR_2,\nint32_t VAR_3,\nint32_t VAR_4,\nuint8_t VAR_5)\n{",
"uint32_t multiple8_cnt;",
"for (multiple8_cnt = 4; multiple8_cnt--;) {",
"avc_luma_midh_qrt_and_aver_dst_4w_msa(VAR_0, VAR_1, VAR_2, VAR_3,\nVAR_4, VAR_5);",
"VAR_0 += 4;",
"VAR... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13
],
[
15
],
[
19
],
[
21,
23
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
25,418 | static int tiff_decode_tag(TiffContext *s, AVFrame *frame)
{
unsigned tag, type, count, off, value = 0, value2 = 0;
int i, start;
int pos;
int ret;
double *dp;
ret = ff_tread_tag(&s->gb, s->le, &tag, &type, &count, &start);
if (ret < 0) {
goto end;
off = bytestream... | true | FFmpeg | 5d996b56499f00f80b02a41bab3d6b7349e36e9d | static int tiff_decode_tag(TiffContext *s, AVFrame *frame)
{
unsigned tag, type, count, off, value = 0, value2 = 0;
int i, start;
int pos;
int ret;
double *dp;
ret = ff_tread_tag(&s->gb, s->le, &tag, &type, &count, &start);
if (ret < 0) {
goto end;
off = bytestream... | {
"code": [],
"line_no": []
} | static int FUNC_0(TiffContext *VAR_0, AVFrame *VAR_1)
{
unsigned VAR_2, VAR_3, VAR_4, VAR_5, VAR_6 = 0, VAR_7 = 0;
int VAR_8, VAR_9;
int VAR_10;
int VAR_11;
double *VAR_12;
VAR_11 = ff_tread_tag(&VAR_0->gb, VAR_0->le, &VAR_2, &VAR_3, &VAR_4, &VAR_9);
if (VAR_11 < 0) {
goto... | [
"static int FUNC_0(TiffContext *VAR_0, AVFrame *VAR_1)\n{",
"unsigned VAR_2, VAR_3, VAR_4, VAR_5, VAR_6 = 0, VAR_7 = 0;",
"int VAR_8, VAR_9;",
"int VAR_10;",
"int VAR_11;",
"double *VAR_12;",
"VAR_11 = ff_tread_tag(&VAR_0->gb, VAR_0->le, &VAR_2, &VAR_3, &VAR_4, &VAR_9);",
"if (VAR_11 < 0) {",
"goto ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
26
],
[
28
],
[
30
],
[
32,
34,
36,
38
],
[
40
],
[
42,
44
],
[
46
],
[
48
],
[
50,... |
25,419 | int kvmppc_get_htab_fd(bool write)
{
struct kvm_get_htab_fd s = {
.flags = write ? KVM_GET_HTAB_WRITE : 0,
.start_index = 0,
};
if (!cap_htab_fd) {
fprintf(stderr, "KVM version doesn't support saving the hash table\n");
return -1;
}
return kvm_vm_ioctl(k... | true | qemu | 82be8e7394b31fd2d740651365b8ebdd0c847529 | int kvmppc_get_htab_fd(bool write)
{
struct kvm_get_htab_fd s = {
.flags = write ? KVM_GET_HTAB_WRITE : 0,
.start_index = 0,
};
if (!cap_htab_fd) {
fprintf(stderr, "KVM version doesn't support saving the hash table\n");
return -1;
}
return kvm_vm_ioctl(k... | {
"code": [
" return -1;",
" return kvm_vm_ioctl(kvm_state, KVM_PPC_GET_HTAB_FD, &s);"
],
"line_no": [
19,
25
]
} | int FUNC_0(bool VAR_0)
{
struct kvm_get_htab_fd VAR_1 = {
.flags = VAR_0 ? KVM_GET_HTAB_WRITE : 0,
.start_index = 0,
};
if (!cap_htab_fd) {
fprintf(stderr, "KVM version doesn't support saving the hash table\n");
return -1;
}
return kvm_vm_ioctl(kvm_state... | [
"int FUNC_0(bool VAR_0)\n{",
"struct kvm_get_htab_fd VAR_1 = {",
".flags = VAR_0 ? KVM_GET_HTAB_WRITE : 0,\n.start_index = 0,\n};",
"if (!cap_htab_fd) {",
"fprintf(stderr, \"KVM version doesn't support saving the hash table\\n\");",
"return -1;",
"}",
"return kvm_vm_ioctl(kvm_state, KVM_PPC_GET_HTAB_F... | [
0,
0,
0,
0,
0,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
]
] |
25,420 | static void machine_set_loadparm(Object *obj, const char *val, Error **errp)
{
S390CcwMachineState *ms = S390_CCW_MACHINE(obj);
int i;
for (i = 0; i < sizeof(ms->loadparm) && val[i]; i++) {
uint8_t c = toupper(val[i]); /* mimic HMC */
if (('A' <= c && c <= 'Z') || ('0' <= c && c <=... | true | qemu | 95a5befc2f8b359e72926f89cd661d063c2cf06c | static void machine_set_loadparm(Object *obj, const char *val, Error **errp)
{
S390CcwMachineState *ms = S390_CCW_MACHINE(obj);
int i;
for (i = 0; i < sizeof(ms->loadparm) && val[i]; i++) {
uint8_t c = toupper(val[i]);
if (('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || (c == ... | {
"code": [],
"line_no": []
} | static void FUNC_0(Object *VAR_0, const char *VAR_1, Error **VAR_2)
{
S390CcwMachineState *ms = S390_CCW_MACHINE(VAR_0);
int VAR_3;
for (VAR_3 = 0; VAR_3 < sizeof(ms->loadparm) && VAR_1[VAR_3]; VAR_3++) {
uint8_t c = toupper(VAR_1[VAR_3]);
if (('A' <= c && c <= 'Z') || ('0' <= c &... | [
"static void FUNC_0(Object *VAR_0, const char *VAR_1, Error **VAR_2)\n{",
"S390CcwMachineState *ms = S390_CCW_MACHINE(VAR_0);",
"int VAR_3;",
"for (VAR_3 = 0; VAR_3 < sizeof(ms->loadparm) && VAR_1[VAR_3]; VAR_3++) {",
"uint8_t c = toupper(VAR_1[VAR_3]);",
"if (('A' <= c && c <= 'Z') || ('0' <= c && c <= '... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17,
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
25,421 | static void eepro100_cu_command(EEPRO100State * s, uint8_t val)
{
eepro100_tx_t tx;
uint32_t cb_address;
switch (val) {
case CU_NOP:
/* No operation. */
break;
case CU_START:
if (get_cu_state(s) != cu_idle) {
/* Intel documentation says that CU must be i... | true | qemu | 7f1e9d4e138f5baf1e862a1221ba13eee7dcce9e | static void eepro100_cu_command(EEPRO100State * s, uint8_t val)
{
eepro100_tx_t tx;
uint32_t cb_address;
switch (val) {
case CU_NOP:
break;
case CU_START:
if (get_cu_state(s) != cu_idle) {
logout("CU state is %u, should be %u\n", get_c... | {
"code": [
" assert(!bit_nc);",
" assert(tcb_bytes <= 2600);",
" assert(tcb_bytes == 0);",
" stw_phys(cb_address, status | 0x8000 | 0x2000);"
],
"line_no": [
113,
117,
181,
285
]
} | static void FUNC_0(EEPRO100State * VAR_0, uint8_t VAR_1)
{
eepro100_tx_t tx;
uint32_t cb_address;
switch (VAR_1) {
case CU_NOP:
break;
case CU_START:
if (get_cu_state(VAR_0) != cu_idle) {
logout("CU state is %u, should be %u\n", get_cu... | [
"static void FUNC_0(EEPRO100State * VAR_0, uint8_t VAR_1)\n{",
"eepro100_tx_t tx;",
"uint32_t cb_address;",
"switch (VAR_1) {",
"case CU_NOP:\nbreak;",
"case CU_START:\nif (get_cu_state(VAR_0) != cu_idle) {",
"logout(\"CU state is %u, should be %u\\n\", get_cu_state(VAR_0), cu_idle);",
"}",
"set_cu_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
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... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
15
],
[
17,
19
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47,
49,
51
],
[
53
],
[
55
],
[... |
25,422 | static av_cold int fieldmatch_init(AVFilterContext *ctx)
{
const FieldMatchContext *fm = ctx->priv;
AVFilterPad pad = {
.name = av_strdup("main"),
.type = AVMEDIA_TYPE_VIDEO,
.filter_frame = filter_frame,
.config_props = config_input,
};
if (!pa... | true | FFmpeg | dfea94ce994a916eb7c1a278a09748fd3928c00d | static av_cold int fieldmatch_init(AVFilterContext *ctx)
{
const FieldMatchContext *fm = ctx->priv;
AVFilterPad pad = {
.name = av_strdup("main"),
.type = AVMEDIA_TYPE_VIDEO,
.filter_frame = filter_frame,
.config_props = config_input,
};
if (!pa... | {
"code": [
" ff_insert_inpad(ctx, INPUT_MAIN, &pad);",
" ff_insert_inpad(ctx, INPUT_CLEANSRC, &pad);"
],
"line_no": [
25,
39
]
} | static av_cold int FUNC_0(AVFilterContext *ctx)
{
const FieldMatchContext *VAR_0 = ctx->priv;
AVFilterPad pad = {
.name = av_strdup("main"),
.type = AVMEDIA_TYPE_VIDEO,
.filter_frame = filter_frame,
.config_props = config_input,
};
if (!pad.name... | [
"static av_cold int FUNC_0(AVFilterContext *ctx)\n{",
"const FieldMatchContext *VAR_0 = ctx->priv;",
"AVFilterPad pad = {",
".name = av_strdup(\"main\"),\n.type = AVMEDIA_TYPE_VIDEO,\n.filter_frame = filter_frame,\n.config_props = config_input,\n};",
"if (!pad.name)\nreturn AVERROR(ENOMEM);"... | [
0,
0,
0,
0,
0,
1,
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
],
[
21,
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
45,
47
],
[
49
],
[
51
],
[
53
],
[... |
25,423 | static int count_contiguous_clusters(uint64_t nb_clusters, int cluster_size,
uint64_t *l2_table, uint64_t start, uint64_t mask)
{
int i;
uint64_t offset = be64_to_cpu(l2_table[0]) & ~mask;
if (!offset)
return 0;
for (i = start; i < start + nb_clusters; i++)
if (offset... | true | qemu | 80ee15a6b274dfcedb0ad7db8c9e7d392210d6a1 | static int count_contiguous_clusters(uint64_t nb_clusters, int cluster_size,
uint64_t *l2_table, uint64_t start, uint64_t mask)
{
int i;
uint64_t offset = be64_to_cpu(l2_table[0]) & ~mask;
if (!offset)
return 0;
for (i = start; i < start + nb_clusters; i++)
if (offset... | {
"code": [
" if (offset + i * cluster_size != (be64_to_cpu(l2_table[i]) & ~mask))"
],
"line_no": [
21
]
} | static int FUNC_0(uint64_t VAR_0, int VAR_1,
uint64_t *VAR_2, uint64_t VAR_3, uint64_t VAR_4)
{
int VAR_5;
uint64_t offset = be64_to_cpu(VAR_2[0]) & ~VAR_4;
if (!offset)
return 0;
for (VAR_5 = VAR_3; VAR_5 < VAR_3 + VAR_0; VAR_5++)
if (offset + VAR_5 * VAR_1 != (be64_... | [
"static int FUNC_0(uint64_t VAR_0, int VAR_1,\nuint64_t *VAR_2, uint64_t VAR_3, uint64_t VAR_4)\n{",
"int VAR_5;",
"uint64_t offset = be64_to_cpu(VAR_2[0]) & ~VAR_4;",
"if (!offset)\nreturn 0;",
"for (VAR_5 = VAR_3; VAR_5 < VAR_3 + VAR_0; VAR_5++)",
"if (offset + VAR_5 * VAR_1 != (be64_to_cpu(VAR_2[VAR_5]... | [
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13,
15
],
[
19
],
[
21,
23
],
[
27
],
[
29
]
] |
25,424 | static void gen_ove_ov(DisasContext *dc, TCGv ov)
{
gen_helper_ove(cpu_env, ov);
}
| true | qemu | 0c53d7342b4e8412f3b81eed67f053304813dc5d | static void gen_ove_ov(DisasContext *dc, TCGv ov)
{
gen_helper_ove(cpu_env, ov);
}
| {
"code": [
" gen_helper_ove(cpu_env, ov);"
],
"line_no": [
5
]
} | static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1)
{
gen_helper_ove(cpu_env, VAR_1);
}
| [
"static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1)\n{",
"gen_helper_ove(cpu_env, VAR_1);",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
25,425 | void avpriv_tak_parse_streaminfo(GetBitContext *gb, TAKStreamInfo *s)
{
uint64_t channel_mask = 0;
int frame_type, i;
s->codec = get_bits(gb, TAK_ENCODER_CODEC_BITS);
skip_bits(gb, TAK_ENCODER_PROFILE_BITS);
frame_type = get_bits(gb, TAK_SIZE_FRAME_DURATION_BITS);
s->samples = get_bit... | false | FFmpeg | 6bd665b7c5798803366b877903fa3bce7f129d05 | void avpriv_tak_parse_streaminfo(GetBitContext *gb, TAKStreamInfo *s)
{
uint64_t channel_mask = 0;
int frame_type, i;
s->codec = get_bits(gb, TAK_ENCODER_CODEC_BITS);
skip_bits(gb, TAK_ENCODER_PROFILE_BITS);
frame_type = get_bits(gb, TAK_SIZE_FRAME_DURATION_BITS);
s->samples = get_bit... | {
"code": [],
"line_no": []
} | void FUNC_0(GetBitContext *VAR_0, TAKStreamInfo *VAR_1)
{
uint64_t channel_mask = 0;
int VAR_2, VAR_3;
VAR_1->codec = get_bits(VAR_0, TAK_ENCODER_CODEC_BITS);
skip_bits(VAR_0, TAK_ENCODER_PROFILE_BITS);
VAR_2 = get_bits(VAR_0, TAK_SIZE_FRAME_DURATION_BITS);
VAR_1->samples = get_bits64... | [
"void FUNC_0(GetBitContext *VAR_0, TAKStreamInfo *VAR_1)\n{",
"uint64_t channel_mask = 0;",
"int VAR_2, VAR_3;",
"VAR_1->codec = get_bits(VAR_0, TAK_ENCODER_CODEC_BITS);",
"skip_bits(VAR_0, TAK_ENCODER_PROFILE_BITS);",
"VAR_2 = get_bits(VAR_0, TAK_SIZE_FRAME_DURATION_BITS);",
"VAR_1->samples = get_bits6... | [
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
],
[
25,
27
],
[
29,
31
],
[
33,
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51,
53
],
[
55... |
25,426 | int show_formats(void *optctx, const char *opt, const char *arg)
{
AVInputFormat *ifmt = NULL;
AVOutputFormat *ofmt = NULL;
const char *last_name;
printf("File formats:\n"
" D. = Demuxing supported\n"
" .E = Muxing supported\n"
" --\n");
last_name = "000"... | false | FFmpeg | f929ab0569ff31ed5a59b0b0adb7ce09df3fca39 | int show_formats(void *optctx, const char *opt, const char *arg)
{
AVInputFormat *ifmt = NULL;
AVOutputFormat *ofmt = NULL;
const char *last_name;
printf("File formats:\n"
" D. = Demuxing supported\n"
" .E = Muxing supported\n"
" --\n");
last_name = "000"... | {
"code": [],
"line_no": []
} | int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2)
{
AVInputFormat *ifmt = NULL;
AVOutputFormat *ofmt = NULL;
const char *VAR_3;
printf("File formats:\n"
" D. = Demuxing supported\n"
" .E = Muxing supported\n"
" --\n");
VAR_3 = "000";
for ... | [
"int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2)\n{",
"AVInputFormat *ifmt = NULL;",
"AVOutputFormat *ofmt = NULL;",
"const char *VAR_3;",
"printf(\"File formats:\\n\"\n\" D. = Demuxing supported\\n\"\n\" .E = Muxing supported\\n\"\n\" --\\n\");",
"VAR_3 = \"000\";",
"for (;;) {",
"int ... | [
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
25,427 | static void SET_TYPE(resample_nearest)(void *dst0, int dst_index, const void *src0, int index)
{
FELEM *dst = dst0;
const FELEM *src = src0;
dst[dst_index] = src[index];
}
| false | FFmpeg | be394968c81019887ef996a78a526bdd85d1e216 | static void SET_TYPE(resample_nearest)(void *dst0, int dst_index, const void *src0, int index)
{
FELEM *dst = dst0;
const FELEM *src = src0;
dst[dst_index] = src[index];
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(resample_nearest)(void *dst0, int dst_index, const void *src0, int index)
{
FELEM *dst = dst0;
const FELEM *VAR_0 = src0;
dst[dst_index] = VAR_0[index];
}
| [
"static void FUNC_0(resample_nearest)(void *dst0, int dst_index, const void *src0, int index)\n{",
"FELEM *dst = dst0;",
"const FELEM *VAR_0 = src0;",
"dst[dst_index] = VAR_0[index];",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
25,428 | static inline void mc_dir_part(H264Context *h, Picture *pic, int n, int square, int chroma_height, int delta, int list,
uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr,
int src_x_offset, int src_y_offset,
qpel_mc_func *qpix_op, h264... | false | FFmpeg | 17779f39b684cd8e545768155c37e97e604489b8 | static inline void mc_dir_part(H264Context *h, Picture *pic, int n, int square, int chroma_height, int delta, int list,
uint8_t *dest_y, uint8_t *dest_cb, uint8_t *dest_cr,
int src_x_offset, int src_y_offset,
qpel_mc_func *qpix_op, h264... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(H264Context *VAR_0, Picture *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6,
uint8_t *VAR_7, uint8_t *VAR_8, uint8_t *VAR_9,
int VAR_10, int VAR_11,
qpel_mc_func *VAR_12, h264_chroma_mc_func VAR_1... | [
"static inline void FUNC_0(H264Context *VAR_0, Picture *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6,\nuint8_t *VAR_7, uint8_t *VAR_8, uint8_t *VAR_9,\nint VAR_10, int VAR_11,\nqpel_mc_func *VAR_12, h264_chroma_mc_func VAR_13){",
"MpegEncContext * const s = &VAR_0->s;",
"const int VAR_14= 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
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37,
39
],
[
43
],
[
45
],
[
49,
51,... |
25,429 | static void rtsp_send_cmd(AVFormatContext *s,
const char *cmd, RTSPMessageHeader *reply,
unsigned char **content_ptr)
{
RTSPState *rt = s->priv_data;
char buf[4096], buf1[1024];
rt->seq++;
av_strlcpy(buf, cmd, sizeof(buf));
snprintf(buf1,... | false | FFmpeg | 57f94f54c449b1d34b0d6ccf82dfdcdc1ce7cd14 | static void rtsp_send_cmd(AVFormatContext *s,
const char *cmd, RTSPMessageHeader *reply,
unsigned char **content_ptr)
{
RTSPState *rt = s->priv_data;
char buf[4096], buf1[1024];
rt->seq++;
av_strlcpy(buf, cmd, sizeof(buf));
snprintf(buf1,... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFormatContext *VAR_0,
const char *VAR_1, RTSPMessageHeader *VAR_2,
unsigned char **VAR_3)
{
RTSPState *rt = VAR_0->priv_data;
char VAR_4[4096], VAR_5[1024];
rt->seq++;
av_strlcpy(VAR_4, VAR_1, sizeof(VAR_4));
snprintf... | [
"static void FUNC_0(AVFormatContext *VAR_0,\nconst char *VAR_1, RTSPMessageHeader *VAR_2,\nunsigned char **VAR_3)\n{",
"RTSPState *rt = VAR_0->priv_data;",
"char VAR_4[4096], VAR_5[1024];",
"rt->seq++;",
"av_strlcpy(VAR_4, VAR_1, sizeof(VAR_4));",
"snprintf(VAR_5, sizeof(VAR_5), \"CSeq: %d\\r\\n\", rt->se... | [
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
],
[
43
],
[
45
]
] |
25,430 | static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const char *vfilters)
{
static const enum PixelFormat pix_fmts[] = { PIX_FMT_YUV420P, PIX_FMT_NONE };
char sws_flags_str[128];
char buffersrc_args[256];
int ret;
AVBufferSinkParams *buffersink_params = av_buffersink_param... | false | FFmpeg | 79a7451d069f17c72e566d8e76a75c15cc25c515 | static int configure_video_filters(AVFilterGraph *graph, VideoState *is, const char *vfilters)
{
static const enum PixelFormat pix_fmts[] = { PIX_FMT_YUV420P, PIX_FMT_NONE };
char sws_flags_str[128];
char buffersrc_args[256];
int ret;
AVBufferSinkParams *buffersink_params = av_buffersink_param... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFilterGraph *VAR_0, VideoState *VAR_1, const char *VAR_2)
{
static const enum PixelFormat VAR_3[] = { PIX_FMT_YUV420P, PIX_FMT_NONE };
char VAR_4[128];
char VAR_5[256];
int VAR_6;
AVBufferSinkParams *buffersink_params = av_buffersink_params_alloc();
AVFilterContext *fi... | [
"static int FUNC_0(AVFilterGraph *VAR_0, VideoState *VAR_1, const char *VAR_2)\n{",
"static const enum PixelFormat VAR_3[] = { PIX_FMT_YUV420P, PIX_FMT_NONE };",
"char VAR_4[128];",
"char VAR_5[256];",
"int VAR_6;",
"AVBufferSinkParams *buffersink_params = av_buffersink_params_alloc();",
"AVFilterContex... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27,
29,
31,
33,
35
],
[
39,
41,
43,
45,
47
],
[
51
],
[
53,
55,
57
],
[
59
... |
25,431 | int dyngen_code(TCGContext *s, uint8_t *gen_code_buf)
{
#ifdef CONFIG_PROFILER
{
extern int64_t dyngen_op_count;
extern int dyngen_op_count_max;
int n;
n = (gen_opc_ptr - gen_opc_buf);
dyngen_op_count += n;
if (n > dyngen_op_count_max)
dyngen_op_... | true | qemu | 2ba1eeb62c29d23238b95dc7e9ade3444b49f0a1 | int dyngen_code(TCGContext *s, uint8_t *gen_code_buf)
{
#ifdef CONFIG_PROFILER
{
extern int64_t dyngen_op_count;
extern int dyngen_op_count_max;
int n;
n = (gen_opc_ptr - gen_opc_buf);
dyngen_op_count += n;
if (n > dyngen_op_count_max)
dyngen_op_... | {
"code": [
" tcg_gen_code_common(s, gen_code_buf, 0, NULL);"
],
"line_no": [
29
]
} | int FUNC_0(TCGContext *VAR_0, uint8_t *VAR_1)
{
#ifdef CONFIG_PROFILER
{
extern int64_t dyngen_op_count;
extern int dyngen_op_count_max;
int n;
n = (gen_opc_ptr - gen_opc_buf);
dyngen_op_count += n;
if (n > dyngen_op_count_max)
dyngen_op_count_ma... | [
"int FUNC_0(TCGContext *VAR_0, uint8_t *VAR_1)\n{",
"#ifdef CONFIG_PROFILER\n{",
"extern int64_t dyngen_op_count;",
"extern int dyngen_op_count_max;",
"int n;",
"n = (gen_opc_ptr - gen_opc_buf);",
"dyngen_op_count += n;",
"if (n > dyngen_op_count_max)\ndyngen_op_count_max = n;",
"}",
"#endif\ntcg_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25,
29
],
[
35,
37
],
[
39
],
[
41
]
] |
25,432 | static int alloc_refcount_block(BlockDriverState *bs,
int64_t cluster_index, void **refcount_block)
{
BDRVQcow2State *s = bs->opaque;
unsigned int refcount_table_index;
int64_t ret;
BLKDBG_EVENT(bs->file, BLKDBG_REFBLOCK_ALLOC);
/* Find the refcount block for the give... | true | qemu | 6bf45d59f98c898b7d7997a333765c8ee41236ea | static int alloc_refcount_block(BlockDriverState *bs,
int64_t cluster_index, void **refcount_block)
{
BDRVQcow2State *s = bs->opaque;
unsigned int refcount_table_index;
int64_t ret;
BLKDBG_EVENT(bs->file, BLKDBG_REFBLOCK_ALLOC);
refcount_table_index = cluster_ind... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0,
int64_t VAR_1, void **VAR_2)
{
BDRVQcow2State *s = VAR_0->opaque;
unsigned int VAR_3;
int64_t ret;
BLKDBG_EVENT(VAR_0->file, BLKDBG_REFBLOCK_ALLOC);
VAR_3 = VAR_1 >> s->refcount_block_bits;
if (VAR_3 < s->refcount_ta... | [
"static int FUNC_0(BlockDriverState *VAR_0,\nint64_t VAR_1, void **VAR_2)\n{",
"BDRVQcow2State *s = VAR_0->opaque;",
"unsigned int VAR_3;",
"int64_t ret;",
"BLKDBG_EVENT(VAR_0->file, BLKDBG_REFBLOCK_ALLOC);",
"VAR_3 = VAR_1 >> s->refcount_block_bits;",
"if (VAR_3 < s->refcount_table_size) {",
"uint64_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
9
],
[
10
],
[
11,
12
],
[
14
],
[
15
],
[
16,
17,
18,
19
],
[
20,
21
],
[
44
],
[
46
],
[
47
],
[
48
],
[
50
]... |
25,433 | static int x8_setup_spatial_predictor(IntraX8Context * const w, const int chroma){
MpegEncContext * const s= w->s;
int range;
int sum;
int quant;
w->dsp.setup_spatial_compensation(s->dest[chroma], s->edge_emu_buffer,
s->current_picture.f.linesize[chroma>... | true | FFmpeg | f6774f905fb3cfdc319523ac640be30b14c1bc55 | static int x8_setup_spatial_predictor(IntraX8Context * const w, const int chroma){
MpegEncContext * const s= w->s;
int range;
int sum;
int quant;
w->dsp.setup_spatial_compensation(s->dest[chroma], s->edge_emu_buffer,
s->current_picture.f.linesize[chroma>... | {
"code": [
" s->current_picture.f.linesize[chroma>0],"
],
"line_no": [
15
]
} | static int FUNC_0(IntraX8Context * const VAR_0, const int VAR_1){
MpegEncContext * const s= VAR_0->s;
int VAR_2;
int VAR_3;
int VAR_4;
VAR_0->dsp.setup_spatial_compensation(s->dest[VAR_1], s->edge_emu_buffer,
s->current_picture.f.linesize[VAR_1>0],
... | [
"static int FUNC_0(IntraX8Context * const VAR_0, const int VAR_1){",
"MpegEncContext * const s= VAR_0->s;",
"int VAR_2;",
"int VAR_3;",
"int VAR_4;",
"VAR_0->dsp.setup_spatial_compensation(s->dest[VAR_1], s->edge_emu_buffer,\ns->current_picture.f.linesize[VAR_1>0],\n&VAR_2, &VAR_3, VAR_0->edges);",
"if(... | [
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
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
13,
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
25,434 | static void vc1_mc_4mv_chroma4(VC1Context *v, int dir, int dir2, int avg)
{
MpegEncContext *s = &v->s;
H264ChromaContext *h264chroma = &v->h264chroma;
uint8_t *srcU, *srcV;
int uvsrc_x, uvsrc_y;
int uvmx_field[4], uvmy_field[4];
int i, off, tx, ty;
int fieldmv = v->blk_mv_type[s->blo... | true | FFmpeg | f6774f905fb3cfdc319523ac640be30b14c1bc55 | static void vc1_mc_4mv_chroma4(VC1Context *v, int dir, int dir2, int avg)
{
MpegEncContext *s = &v->s;
H264ChromaContext *h264chroma = &v->h264chroma;
uint8_t *srcU, *srcV;
int uvsrc_x, uvsrc_y;
int uvmx_field[4], uvmy_field[4];
int i, off, tx, ty;
int fieldmv = v->blk_mv_type[s->blo... | {
"code": [
" srcU = s->next_picture.f.data[1] + uvsrc_y * s->uvlinesize + uvsrc_x;",
" srcV = s->next_picture.f.data[2] + uvsrc_y * s->uvlinesize + uvsrc_x;",
" srcU = s->last_picture.f.data[1] + uvsrc_y * s->uvlinesize + uvsrc_x;",
" srcV = s->last_picture... | static void FUNC_0(VC1Context *VAR_0, int VAR_1, int VAR_2, int VAR_3)
{
MpegEncContext *s = &VAR_0->s;
H264ChromaContext *h264chroma = &VAR_0->h264chroma;
uint8_t *srcU, *srcV;
int VAR_4, VAR_5;
int VAR_6[4], VAR_7[4];
int VAR_18, VAR_9, VAR_10, VAR_11;
int VAR_12 = VAR_0->blk_mv_ty... | [
"static void FUNC_0(VC1Context *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{",
"MpegEncContext *s = &VAR_0->s;",
"H264ChromaContext *h264chroma = &VAR_0->h264chroma;",
"uint8_t *srcU, *srcV;",
"int VAR_4, VAR_5;",
"int VAR_6[4], VAR_7[4];",
"int VAR_18, VAR_9, VAR_10, VAR_11;",
"int VAR_12 = VAR_0->blk_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
25,435 | static void moxie_cpu_initfn(Object *obj)
{
CPUState *cs = CPU(obj);
MoxieCPU *cpu = MOXIE_CPU(obj);
static int inited;
cs->env_ptr = &cpu->env;
cpu_exec_init(cs, &error_abort);
if (tcg_enabled() && !inited) {
inited = 1;
moxie_translate_init();
}
}
| true | qemu | ce5b1bbf624b977a55ff7f85bb3871682d03baff | static void moxie_cpu_initfn(Object *obj)
{
CPUState *cs = CPU(obj);
MoxieCPU *cpu = MOXIE_CPU(obj);
static int inited;
cs->env_ptr = &cpu->env;
cpu_exec_init(cs, &error_abort);
if (tcg_enabled() && !inited) {
inited = 1;
moxie_translate_init();
}
}
| {
"code": [
" cpu_exec_init(cs, &error_abort);",
" cpu_exec_init(cs, &error_abort);",
" cpu_exec_init(cs, &error_abort);",
" cpu_exec_init(cs, &error_abort);",
" cpu_exec_init(cs, &error_abort);",
" cpu_exec_init(cs, &error_abort);",
" cpu_exec_init(cs, &error_abort);"... | static void FUNC_0(Object *VAR_0)
{
CPUState *cs = CPU(VAR_0);
MoxieCPU *cpu = MOXIE_CPU(VAR_0);
static int VAR_1;
cs->env_ptr = &cpu->env;
cpu_exec_init(cs, &error_abort);
if (tcg_enabled() && !VAR_1) {
VAR_1 = 1;
moxie_translate_init();
}
}
| [
"static void FUNC_0(Object *VAR_0)\n{",
"CPUState *cs = CPU(VAR_0);",
"MoxieCPU *cpu = MOXIE_CPU(VAR_0);",
"static int VAR_1;",
"cs->env_ptr = &cpu->env;",
"cpu_exec_init(cs, &error_abort);",
"if (tcg_enabled() && !VAR_1) {",
"VAR_1 = 1;",
"moxie_translate_init();",
"}",
"}"
] | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
25,436 | static int rtp_asf_fix_header(uint8_t *buf, int len)
{
uint8_t *p = buf, *end = buf + len;
if (len < sizeof(ff_asf_guid) * 2 + 22 ||
memcmp(p, ff_asf_header, sizeof(ff_asf_guid))) {
return -1;
}
p += sizeof(ff_asf_guid) + 14;
do {
uint64_t chunksize = AV_RL64(p + s... | true | FFmpeg | 445a02b1ec5ea94d28ea2503a3ae0272fcff0e12 | static int rtp_asf_fix_header(uint8_t *buf, int len)
{
uint8_t *p = buf, *end = buf + len;
if (len < sizeof(ff_asf_guid) * 2 + 22 ||
memcmp(p, ff_asf_header, sizeof(ff_asf_guid))) {
return -1;
}
p += sizeof(ff_asf_guid) + 14;
do {
uint64_t chunksize = AV_RL64(p + s... | {
"code": [
" p += 6 * 8 + 3 * 4 + sizeof(ff_asf_guid) * 2;",
" if (p + 8 <= end && AV_RL32(p) == AV_RL32(p + 4)) {"
],
"line_no": [
39,
41
]
} | static int FUNC_0(uint8_t *VAR_0, int VAR_1)
{
uint8_t *p = VAR_0, *end = VAR_0 + VAR_1;
if (VAR_1 < sizeof(ff_asf_guid) * 2 + 22 ||
memcmp(p, ff_asf_header, sizeof(ff_asf_guid))) {
return -1;
}
p += sizeof(ff_asf_guid) + 14;
do {
uint64_t chunksize = AV_RL64(p + s... | [
"static int FUNC_0(uint8_t *VAR_0, int VAR_1)\n{",
"uint8_t *p = VAR_0, *end = VAR_0 + VAR_1;",
"if (VAR_1 < sizeof(ff_asf_guid) * 2 + 22 ||\nmemcmp(p, ff_asf_header, sizeof(ff_asf_guid))) {",
"return -1;",
"}",
"p += sizeof(ff_asf_guid) + 14;",
"do {",
"uint64_t chunksize = AV_RL64(p + sizeof(ff_asf_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51... |
25,437 | static int vmdk_open(BlockDriverState *bs, const char *filename, int flags)
{
BDRVVmdkState *s = bs->opaque;
uint32_t magic;
int l1_size, i, ret;
if (parent_open)
// Parent must be opened as RO.
flags = BDRV_O_RDONLY;
fprintf(stderr, "(VMDK) image open: flags=0x%x filename=... | true | qemu | b5eff355460643d09e533024360fe0522f368c07 | static int vmdk_open(BlockDriverState *bs, const char *filename, int flags)
{
BDRVVmdkState *s = bs->opaque;
uint32_t magic;
int l1_size, i, ret;
if (parent_open)
flags = BDRV_O_RDONLY;
fprintf(stderr, "(VMDK) image open: flags=0x%x filename=%s\n", flags, bs->filename);
... | {
"code": [
" ret = bdrv_file_open(&s->hd, filename, flags | BDRV_O_AUTOGROW);",
" ret = bdrv_file_open(&s->hd, filename, flags | BDRV_O_AUTOGROW);",
" ret = bdrv_file_open(&s->hd, filename, flags | BDRV_O_AUTOGROW);",
" return 0;",
" return 0;"
],
"line_no": [
23,
23,
... | static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2)
{
BDRVVmdkState *s = VAR_0->opaque;
uint32_t magic;
int VAR_3, VAR_4, VAR_5;
if (parent_open)
VAR_2 = BDRV_O_RDONLY;
fprintf(stderr, "(VMDK) image open: VAR_2=0x%x VAR_1=%s\n", VAR_2, VAR_0->VAR_1);
... | [
"static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2)\n{",
"BDRVVmdkState *s = VAR_0->opaque;",
"uint32_t magic;",
"int VAR_3, VAR_4, VAR_5;",
"if (parent_open)\nVAR_2 = BDRV_O_RDONLY;",
"fprintf(stderr, \"(VMDK) image open: VAR_2=0x%x VAR_1=%s\\n\", VAR_2, VAR_0->VAR_1);",
"VAR_5 = ... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
17
],
[
19
],
[
23
],
[
25,
27
],
[
29,
31
],
[
35
],
[
37
],
[
39
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
... |
25,438 | static SocketAddress *nbd_config(BDRVNBDState *s, QDict *options, Error **errp)
{
SocketAddress *saddr = NULL;
QDict *addr = NULL;
QObject *crumpled_addr = NULL;
Visitor *iv = NULL;
Error *local_err = NULL;
qdict_extract_subqdict(options, &addr, "server.");
if (!qdict_size(addr)) {... | true | qemu | 129c7d1c536d0c67a8781cb09fb5bdb3d0f6a2d0 | static SocketAddress *nbd_config(BDRVNBDState *s, QDict *options, Error **errp)
{
SocketAddress *saddr = NULL;
QDict *addr = NULL;
QObject *crumpled_addr = NULL;
Visitor *iv = NULL;
Error *local_err = NULL;
qdict_extract_subqdict(options, &addr, "server.");
if (!qdict_size(addr)) {... | {
"code": [],
"line_no": []
} | static SocketAddress *FUNC_0(BDRVNBDState *s, QDict *options, Error **errp)
{
SocketAddress *saddr = NULL;
QDict *addr = NULL;
QObject *crumpled_addr = NULL;
Visitor *iv = NULL;
Error *local_err = NULL;
qdict_extract_subqdict(options, &addr, "server.");
if (!qdict_size(addr)) {
... | [
"static SocketAddress *FUNC_0(BDRVNBDState *s, QDict *options, Error **errp)\n{",
"SocketAddress *saddr = NULL;",
"QDict *addr = NULL;",
"QObject *crumpled_addr = NULL;",
"Visitor *iv = NULL;",
"Error *local_err = NULL;",
"qdict_extract_subqdict(options, &addr, \"server.\");",
"if (!qdict_size(addr)) ... | [
0,
0,
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
],
[
29
],
[
31
],
[
33
],
[
35
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
... |
25,439 | static inline void RENAME(uyvyToY)(uint8_t *dst, uint8_t *src, long width)
{
#ifdef HAVE_MMX
asm volatile(
"mov %0, %%"REG_a" \n\t"
"1: \n\t"
"movq (%1, %%"REG_a",2), %%mm0 \n\t"
"movq 8(%1, %%"REG_a",2), %%mm1 \n\t"
"psrlw $8, %%mm0 \n\t"
"psrlw $8, %%mm1 \n\t"
"packuswb %%mm1, %%mm0 \n... | true | FFmpeg | 2da0d70d5eebe42f9fcd27ee554419ebe2a5da06 | static inline void RENAME(uyvyToY)(uint8_t *dst, uint8_t *src, long width)
{
#ifdef HAVE_MMX
asm volatile(
"mov %0, %%"REG_a" \n\t"
"1: \n\t"
"movq (%1, %%"REG_a",2), %%mm0 \n\t"
"movq 8(%1, %%"REG_a",2), %%mm1 \n\t"
"psrlw $8, %%mm0 \n\t"
"psrlw $8, %%mm1 \n\t"
"packuswb %%mm1, %%mm0 \n... | {
"code": [
"\tasm volatile(",
"\t\t: \"%\"REG_a",
"\t);",
"\tint i;",
"#endif",
"#endif",
"#endif",
"#endif",
"#endif",
"\tint i;",
"#endif",
"#endif",
"#endif",
"#endif",
"\tint i;",
"#endif",
"#endif",
"#endif",
"#endif",
"#endif",
... | static inline void FUNC_0(uyvyToY)(uint8_t *dst, uint8_t *src, long width)
{
#ifdef HAVE_MMX
asm volatile(
"mov %0, %%"REG_a" \n\t"
"1: \n\t"
"movq (%1, %%"REG_a",2), %%mm0 \n\t"
"movq 8(%1, %%"REG_a",2), %%mm1 \n\t"
"psrlw $8, %%mm0 \n\t"
"psrlw $8, %%mm1 \n\t"
"packuswb %%mm1, %%mm0 \n... | [
"static inline void FUNC_0(uyvyToY)(uint8_t *dst, uint8_t *src, long width)\n{",
"#ifdef HAVE_MMX\nasm volatile(\n\"mov %0, %%\"REG_a\"\t\t\\n\\t\"\n\"1:\t\t\t\t\\n\\t\"\n\"movq (%1, %%\"REG_a\",2), %%mm0\t\\n\\t\"\n\"movq 8(%1, %%\"REG_a\",2), %%mm1\t\\n\\t\"\n\"psrlw $8, %%mm0\t\t\\n\\t\"\n\"psrlw $8, %%mm1\t\t... | [
0,
1,
1,
1,
1,
1
] | [
[
1,
3
],
[
5,
7,
9,
11,
13,
15,
17,
19,
21,
23,
25,
27,
29,
31,
33
],
[
35,
37
],
[
39
],
[
41
],
[
43,
45
]
] |
25,440 | static int kempf_decode_tile(G2MContext *c, int tile_x, int tile_y,
const uint8_t *src, int src_size)
{
int width, height;
int hdr, zsize, npal, tidx = -1, ret;
int i, j;
const uint8_t *src_end = src + src_size;
uint8_t pal[768], transp[3];
uLongf dlen = (c->... | true | FFmpeg | 6d9dad6a7cb5d544d540abf941fedbd34c14d2bd | static int kempf_decode_tile(G2MContext *c, int tile_x, int tile_y,
const uint8_t *src, int src_size)
{
int width, height;
int hdr, zsize, npal, tidx = -1, ret;
int i, j;
const uint8_t *src_end = src + src_size;
uint8_t pal[768], transp[3];
uLongf dlen = (c->... | {
"code": [],
"line_no": []
} | static int FUNC_0(G2MContext *VAR_0, int VAR_1, int VAR_2,
const uint8_t *VAR_3, int VAR_4)
{
int VAR_5, VAR_6;
int VAR_7, VAR_8, VAR_9, VAR_10 = -1, VAR_11;
int VAR_12, VAR_22;
const uint8_t *VAR_14 = VAR_3 + VAR_4;
uint8_t pal[768], transp[3];
uLongf dlen =... | [
"static int FUNC_0(G2MContext *VAR_0, int VAR_1, int VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6;",
"int VAR_7, VAR_8, VAR_9, VAR_10 = -1, VAR_11;",
"int VAR_12, VAR_22;",
"const uint8_t *VAR_14 = VAR_3 + VAR_4;",
"uint8_t pal[768], transp[3];",
"uLongf dlen = (VAR_0->tile_width + 1)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
31,
36
],
[
38
],
[
42
],
[
44
],
[
46
],
[
48
],
[
50
],
[... |
25,441 | static void interpolate_refplane(DiracContext *s, DiracFrame *ref, int plane, int width, int height)
{
/* chroma allocates an edge of 8 when subsampled
which for 4:2:2 means an h edge of 16 and v edge of 8
just use 8 for everything for the moment */
int i, edge = EDGE_WIDTH/2;
ref->hpe... | true | FFmpeg | 1c5b712c0a643a039d6f34269b4102de313a050a | static void interpolate_refplane(DiracContext *s, DiracFrame *ref, int plane, int width, int height)
{
int i, edge = EDGE_WIDTH/2;
ref->hpel[plane][0] = ref->avframe->data[plane];
s->mpvencdsp.draw_edges(ref->hpel[plane][0], ref->avframe->linesize[plane], width, height, edge, edge, EDGE_TOP ... | {
"code": [
"static void interpolate_refplane(DiracContext *s, DiracFrame *ref, int plane, int width, int height)"
],
"line_no": [
1
]
} | static void FUNC_0(DiracContext *VAR_0, DiracFrame *VAR_1, int VAR_2, int VAR_3, int VAR_4)
{
int VAR_5, VAR_6 = EDGE_WIDTH/2;
VAR_1->hpel[VAR_2][0] = VAR_1->avframe->data[VAR_2];
VAR_0->mpvencdsp.draw_edges(VAR_1->hpel[VAR_2][0], VAR_1->avframe->linesize[VAR_2], VAR_3, VAR_4, VAR_6, VAR_6, ... | [
"static void FUNC_0(DiracContext *VAR_0, DiracFrame *VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6 = EDGE_WIDTH/2;",
"VAR_1->hpel[VAR_2][0] = VAR_1->avframe->data[VAR_2];",
"VAR_0->mpvencdsp.draw_edges(VAR_1->hpel[VAR_2][0], VAR_1->avframe->linesize[VAR_2], VAR_3, VAR_4, VAR_6, VAR_6, EDGE_TO... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
11
],
[
15
],
[
17
],
[
23,
25
],
[
29
],
[
31,
33
],
[
37
],
[
39
],
[
43
],
[
45,
47,
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
]
] |
25,442 | static void scsi_read_complete(void * opaque, int ret)
{
SCSIGenericReq *r = (SCSIGenericReq *)opaque;
int len;
if (ret) {
DPRINTF("IO error ret %d\n", ret);
scsi_command_complete(r, ret);
return;
}
len = r->io_header.dxfer_len - r->io_header.resid;
DPRINTF("D... | true | qemu | 40f16dd1279e7f26357b3c4b3838a89ffc6153da | static void scsi_read_complete(void * opaque, int ret)
{
SCSIGenericReq *r = (SCSIGenericReq *)opaque;
int len;
if (ret) {
DPRINTF("IO error ret %d\n", ret);
scsi_command_complete(r, ret);
return;
}
len = r->io_header.dxfer_len - r->io_header.resid;
DPRINTF("D... | {
"code": [
" r->req.bus->complete(r->req.bus, SCSI_REASON_DATA, r->req.tag, len);",
" if (len == 0)"
],
"line_no": [
29,
31
]
} | static void FUNC_0(void * VAR_0, int VAR_1)
{
SCSIGenericReq *r = (SCSIGenericReq *)VAR_0;
int VAR_2;
if (VAR_1) {
DPRINTF("IO error VAR_1 %d\n", VAR_1);
scsi_command_complete(r, VAR_1);
return;
}
VAR_2 = r->io_header.dxfer_len - r->io_header.resid;
DPRINTF("D... | [
"static void FUNC_0(void * VAR_0, int VAR_1)\n{",
"SCSIGenericReq *r = (SCSIGenericReq *)VAR_0;",
"int VAR_2;",
"if (VAR_1) {",
"DPRINTF(\"IO error VAR_1 %d\\n\", VAR_1);",
"scsi_command_complete(r, VAR_1);",
"return;",
"}",
"VAR_2 = r->io_header.dxfer_len - r->io_header.resid;",
"DPRINTF(\"Data r... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31,
33
],
[
35
]
] |
25,443 | int avfilter_process_command(AVFilterContext *filter, const char *cmd, const char *arg, char *res, int res_len, int flags)
{
if(!strcmp(cmd, "ping")){
av_strlcatf(res, res_len, "pong from:%s %s\n", filter->filter->name, filter->name);
return 0;
}else if(!strcmp(cmd, "enable")) {
return s... | true | FFmpeg | bb23bf8fd7fb4771b0f08a4ee1ba8fe6ca16d14f | int avfilter_process_command(AVFilterContext *filter, const char *cmd, const char *arg, char *res, int res_len, int flags)
{
if(!strcmp(cmd, "ping")){
av_strlcatf(res, res_len, "pong from:%s %s\n", filter->filter->name, filter->name);
return 0;
}else if(!strcmp(cmd, "enable")) {
return s... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFilterContext *VAR_0, const char *VAR_1, const char *VAR_2, char *VAR_3, int VAR_4, int VAR_5)
{
if(!strcmp(VAR_1, "ping")){
av_strlcatf(VAR_3, VAR_4, "pong from:%s %s\n", VAR_0->VAR_0->name, VAR_0->name);
return 0;
}else if(!strcmp(VAR_1, "enable")) {
return set_enable_expr... | [
"int FUNC_0(AVFilterContext *VAR_0, const char *VAR_1, const char *VAR_2, char *VAR_3, int VAR_4, int VAR_5)\n{",
"if(!strcmp(VAR_1, \"ping\")){",
"av_strlcatf(VAR_3, VAR_4, \"pong from:%s %s\\n\", VAR_0->VAR_0->name, VAR_0->name);",
"return 0;",
"}else if(!strcmp(VAR_1, \"enable\")) {",
"return set_enabl... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
]
] |
25,444 | static void decode_clnpass(Jpeg2000DecoderContext *s, Jpeg2000T1Context *t1,
int width, int height, int bpno, int bandno,
int seg_symbols)
{
int mask = 3 << (bpno - 1), y0, x, y, runlen, dec;
for (y0 = 0; y0 < height; y0 += 4)
for (x = 0; x <... | false | FFmpeg | 64f6570c6e2c5a0344383e89c7897809f0c6e1f1 | static void decode_clnpass(Jpeg2000DecoderContext *s, Jpeg2000T1Context *t1,
int width, int height, int bpno, int bandno,
int seg_symbols)
{
int mask = 3 << (bpno - 1), y0, x, y, runlen, dec;
for (y0 = 0; y0 < height; y0 += 4)
for (x = 0; x <... | {
"code": [],
"line_no": []
} | static void FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000T1Context *VAR_1,
int VAR_2, int VAR_3, int VAR_4, int VAR_5,
int VAR_6)
{
int VAR_7 = 3 << (VAR_4 - 1), VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;
for (VAR_8 = 0; VAR_8 < VAR_3; VAR_8 += 4)
... | [
"static void FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000T1Context *VAR_1,\nint VAR_2, int VAR_3, int VAR_4, int VAR_5,\nint VAR_6)\n{",
"int VAR_7 = 3 << (VAR_4 - 1), VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;",
"for (VAR_8 = 0; VAR_8 < VAR_3; VAR_8 += 4)",
"for (VAR_9 = 0; VAR_9 < VAR_2; VAR_9++) {",
"if (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
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
17,
19,
21,
23,
25
],
[
27,
29
],
[
31,
33
],
[
35,
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
... |
25,445 | void ff_put_h264_qpel8_mc03_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_vt_qrt_8w_msa(src - (stride * 2), stride, dst, stride, 8, 1);
}
| false | FFmpeg | 6796a1dd8c14843b77925cb83a3ef88706ae1dd0 | void ff_put_h264_qpel8_mc03_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_vt_qrt_8w_msa(src - (stride * 2), stride, dst, stride, 8, 1);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,
ptrdiff_t VAR_2)
{
avc_luma_vt_qrt_8w_msa(VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2, 8, 1);
}
| [
"void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{",
"avc_luma_vt_qrt_8w_msa(VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2, 8, 1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
25,446 | static av_cold int audio_write_header(AVFormatContext *s1)
{
AlsaData *s = s1->priv_data;
AVStream *st;
unsigned int sample_rate;
enum AVCodecID codec_id;
int res;
st = s1->streams[0];
sample_rate = st->codec->sample_rate;
codec_id = st->codec->codec_id;
res = ff_alsa_... | false | FFmpeg | e56d1a120324fa49a5367cbf22098c5c7eb23f91 | static av_cold int audio_write_header(AVFormatContext *s1)
{
AlsaData *s = s1->priv_data;
AVStream *st;
unsigned int sample_rate;
enum AVCodecID codec_id;
int res;
st = s1->streams[0];
sample_rate = st->codec->sample_rate;
codec_id = st->codec->codec_id;
res = ff_alsa_... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVFormatContext *s1)
{
AlsaData *s = s1->priv_data;
AVStream *st;
unsigned int VAR_0;
enum AVCodecID VAR_1;
int VAR_2;
st = s1->streams[0];
VAR_0 = st->codec->VAR_0;
VAR_1 = st->codec->VAR_1;
VAR_2 = ff_alsa_open(s1, SND_PCM_STREAM_PLAYBACK, &... | [
"static av_cold int FUNC_0(AVFormatContext *s1)\n{",
"AlsaData *s = s1->priv_data;",
"AVStream *st;",
"unsigned int VAR_0;",
"enum AVCodecID VAR_1;",
"int VAR_2;",
"st = s1->streams[0];",
"VAR_0 = st->codec->VAR_0;",
"VAR_1 = st->codec->VAR_1;",
"VAR_2 = ff_alsa_open(s1, SND_PCM_STREAM_PLAYBACK... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29,
31,
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
47,
49
],
[
51
... |
25,447 | int ff_jpegls_decode_lse(MJpegDecodeContext *s)
{
int id;
int tid, wt, maxtab, i, j;
int len = get_bits(&s->gb, 16); /* length: FIXME: verify field validity */
id = get_bits(&s->gb, 8);
switch (id) {
case 1:
s->maxval = get_bits(&s->gb, 16);
s->t1 = get_bits(&s-... | false | FFmpeg | 2773ab36cc6480ce77845df0b1d1e2f790c59cde | int ff_jpegls_decode_lse(MJpegDecodeContext *s)
{
int id;
int tid, wt, maxtab, i, j;
int len = get_bits(&s->gb, 16);
id = get_bits(&s->gb, 8);
switch (id) {
case 1:
s->maxval = get_bits(&s->gb, 16);
s->t1 = get_bits(&s->gb, 16);
s->t2 = get_bits(&s... | {
"code": [],
"line_no": []
} | int FUNC_0(MJpegDecodeContext *VAR_0)
{
int VAR_1;
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;
int VAR_7 = get_bits(&VAR_0->gb, 16);
VAR_1 = get_bits(&VAR_0->gb, 8);
switch (VAR_1) {
case 1:
VAR_0->maxval = get_bits(&VAR_0->gb, 16);
VAR_0->t1 = get_bits(&VAR_0->gb, ... | [
"int FUNC_0(MJpegDecodeContext *VAR_0)\n{",
"int VAR_1;",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;",
"int VAR_7 = get_bits(&VAR_0->gb, 16);",
"VAR_1 = get_bits(&VAR_0->gb, 8);",
"switch (VAR_1) {",
"case 1:\nVAR_0->maxval = get_bits(&VAR_0->gb, 16);",
"VAR_0->t1 = get_bits(&VAR_0->gb, 16);",
"VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
37
],
[
39,
41
],
[
43,
45
],
[
47
],
[
51,
53
],
[
57
],
[
59... |
25,449 | static int mov_read_stss(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
unsigned int i, entries;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams-1];
sc = st->priv_data;
avio_r8(pb); /* version */
avio_r... | false | FFmpeg | 019247bdc326a90bf20d3ce5d2413cc642e8bb08 | static int mov_read_stss(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
unsigned int i, entries;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams-1];
sc = st->priv_data;
avio_r8(pb);
avio_rb24(pb);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)
{
AVStream *st;
MOVStreamContext *sc;
unsigned int VAR_3, VAR_4;
if (VAR_0->fc->nb_streams < 1)
return 0;
st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];
sc = st->priv_data;
avio_r8(VAR_1);
a... | [
"static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{",
"AVStream *st;",
"MOVStreamContext *sc;",
"unsigned int VAR_3, VAR_4;",
"if (VAR_0->fc->nb_streams < 1)\nreturn 0;",
"st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];",
"sc = st->priv_data;",
"avio_r8(VAR_1);",
"avio_rb24... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
33
],
[
37,
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51,
53
],
[
55
... |
25,450 | void swr_compensate(struct SwrContext *s, int sample_delta, int compensation_distance){
ResampleContext *c= s->resample;
// sample_delta += (c->ideal_dst_incr - c->dst_incr)*(int64_t)c->compensation_distance / c->ideal_dst_incr;
c->compensation_distance= compensation_distance;
c->dst_incr = c->ideal_... | false | FFmpeg | 741aca793623afeff1d18816f416cc65104b7ef9 | void swr_compensate(struct SwrContext *s, int sample_delta, int compensation_distance){
ResampleContext *c= s->resample;
c->compensation_distance= compensation_distance;
c->dst_incr = c->ideal_dst_incr - c->ideal_dst_incr * (int64_t)sample_delta / compensation_distance;
}
| {
"code": [],
"line_no": []
} | void FUNC_0(struct SwrContext *VAR_0, int VAR_1, int VAR_2){
ResampleContext *c= VAR_0->resample;
c->VAR_2= VAR_2;
c->dst_incr = c->ideal_dst_incr - c->ideal_dst_incr * (int64_t)VAR_1 / VAR_2;
}
| [
"void FUNC_0(struct SwrContext *VAR_0, int VAR_1, int VAR_2){",
"ResampleContext *c= VAR_0->resample;",
"c->VAR_2= VAR_2;",
"c->dst_incr = c->ideal_dst_incr - c->ideal_dst_incr * (int64_t)VAR_1 / VAR_2;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
7
],
[
9
],
[
11
]
] |
25,451 | int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
{
int i;
Picture *pic;
s->mb_skipped = 0;
assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3);
/* mark&release old frames */
if (s->pict_type != FF_B_TYPE && s->last_picture_ptr &&... | false | FFmpeg | d52b4abe8b7d58b1680b5ae5fccfcbd50ad98ef0 | int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
{
int i;
Picture *pic;
s->mb_skipped = 0;
assert(s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3);
if (s->pict_type != FF_B_TYPE && s->last_picture_ptr && s->last_picture_ptr != s->ne... | {
"code": [],
"line_no": []
} | int FUNC_0(MpegEncContext *VAR_0, AVCodecContext *VAR_1)
{
int VAR_3;
Picture *pic;
VAR_0->mb_skipped = 0;
assert(VAR_0->last_picture_ptr==NULL || VAR_0->out_format != FMT_H264 || VAR_0->codec_id == CODEC_ID_SVQ3);
if (VAR_0->pict_type != FF_B_TYPE && VAR_0->last_picture_ptr && VAR_0... | [
"int FUNC_0(MpegEncContext *VAR_0, AVCodecContext *VAR_1)\n{",
"int VAR_3;",
"Picture *pic;",
"VAR_0->mb_skipped = 0;",
"assert(VAR_0->last_picture_ptr==NULL || VAR_0->out_format != FMT_H264 || VAR_0->codec_id == CODEC_ID_SVQ3);",
"if (VAR_0->pict_type != FF_B_TYPE && VAR_0->last_picture_ptr && VAR_0->las... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
19
],
[
21
],
[
23
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51,
53
],
[... |
25,452 | udp_listen(Slirp *slirp, uint32_t haddr, u_int hport, uint32_t laddr,
u_int lport, int flags)
{
struct sockaddr_in addr;
struct socket *so;
socklen_t addrlen = sizeof(struct sockaddr_in);
so = socreate(slirp);
if (!so) {
so->s = qemu_socket(AF_INET,SOCK_DGRAM,0);
so->so_expire = curti... | true | qemu | 4577b09a278fe9134ecb9192c2ae2ed67a0d0aa7 | udp_listen(Slirp *slirp, uint32_t haddr, u_int hport, uint32_t laddr,
u_int lport, int flags)
{
struct sockaddr_in addr;
struct socket *so;
socklen_t addrlen = sizeof(struct sockaddr_in);
so = socreate(slirp);
if (!so) {
so->s = qemu_socket(AF_INET,SOCK_DGRAM,0);
so->so_expire = curti... | {
"code": [],
"line_no": []
} | FUNC_0(Slirp *VAR_0, uint32_t VAR_1, u_int VAR_2, uint32_t VAR_3,
u_int VAR_4, int VAR_5)
{
struct sockaddr_in VAR_6;
struct socket *VAR_7;
socklen_t addrlen = sizeof(struct sockaddr_in);
VAR_7 = socreate(VAR_0);
if (!VAR_7) {
VAR_7->s = qemu_socket(AF_INET,SOCK_DGRAM,0);
VAR_7->so_ex... | [
"FUNC_0(Slirp *VAR_0, uint32_t VAR_1, u_int VAR_2, uint32_t VAR_3,\nu_int VAR_4, int VAR_5)\n{",
"struct sockaddr_in VAR_6;",
"struct socket *VAR_7;",
"socklen_t addrlen = sizeof(struct sockaddr_in);",
"VAR_7 = socreate(VAR_0);",
"if (!VAR_7) {",
"VAR_7->s = qemu_socket(AF_INET,SOCK_DGRAM,0);",
"VAR_7... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
47
],
[
51
],
[
53
],
[
55
],
[
57
],
[... |
25,453 | static int local_post_create_passthrough(FsContext *fs_ctx, const char *path,
FsCred *credp)
{
if (chmod(rpath(fs_ctx, path), credp->fc_mode & 07777) < 0) {
return -1;
}
if (chown(rpath(fs_ctx, path), credp->fc_uid, credp->fc_gid) < 0) {
return -1;
}
return 0;
}
| true | qemu | 12848bfc5d719bad536c5448205a3226be1fda47 | static int local_post_create_passthrough(FsContext *fs_ctx, const char *path,
FsCred *credp)
{
if (chmod(rpath(fs_ctx, path), credp->fc_mode & 07777) < 0) {
return -1;
}
if (chown(rpath(fs_ctx, path), credp->fc_uid, credp->fc_gid) < 0) {
return -1;
}
return 0;
}
| {
"code": [
" return -1;"
],
"line_no": [
9
]
} | static int FUNC_0(FsContext *VAR_0, const char *VAR_1,
FsCred *VAR_2)
{
if (chmod(rpath(VAR_0, VAR_1), VAR_2->fc_mode & 07777) < 0) {
return -1;
}
if (chown(rpath(VAR_0, VAR_1), VAR_2->fc_uid, VAR_2->fc_gid) < 0) {
return -1;
}
return 0;
}
| [
"static int FUNC_0(FsContext *VAR_0, const char *VAR_1,\nFsCred *VAR_2)\n{",
"if (chmod(rpath(VAR_0, VAR_1), VAR_2->fc_mode & 07777) < 0) {",
"return -1;",
"}",
"if (chown(rpath(VAR_0, VAR_1), VAR_2->fc_uid, VAR_2->fc_gid) < 0) {",
"return -1;",
"}",
"return 0;",
"}"
] | [
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
25,454 | static int piix4_device_hotplug(DeviceState *qdev, PCIDevice *dev,
PCIHotplugState state)
{
int slot = PCI_SLOT(dev->devfn);
PIIX4PMState *s = DO_UPCAST(PIIX4PMState, dev,
PCI_DEVICE(qdev));
/* Don't send event when device is enabled during qemu machine creation:
... | true | qemu | 7faa8075d898ae56d2c533c530569bb25ab86eaf | static int piix4_device_hotplug(DeviceState *qdev, PCIDevice *dev,
PCIHotplugState state)
{
int slot = PCI_SLOT(dev->devfn);
PIIX4PMState *s = DO_UPCAST(PIIX4PMState, dev,
PCI_DEVICE(qdev));
if (state == PCI_COLDPLUG_ENABLED) {
return 0;
}
... | {
"code": [
" s->pci0_status.up = 0;",
" s->pci0_status.down = 0;"
],
"line_no": [
29,
31
]
} | static int FUNC_0(DeviceState *VAR_0, PCIDevice *VAR_1,
PCIHotplugState VAR_2)
{
int VAR_3 = PCI_SLOT(VAR_1->devfn);
PIIX4PMState *s = DO_UPCAST(PIIX4PMState, VAR_1,
PCI_DEVICE(VAR_0));
if (VAR_2 == PCI_COLDPLUG_ENABLED) {
return 0;
}
... | [
"static int FUNC_0(DeviceState *VAR_0, PCIDevice *VAR_1,\nPCIHotplugState VAR_2)\n{",
"int VAR_3 = PCI_SLOT(VAR_1->devfn);",
"PIIX4PMState *s = DO_UPCAST(PIIX4PMState, VAR_1,\nPCI_DEVICE(VAR_0));",
"if (VAR_2 == PCI_COLDPLUG_ENABLED) {",
"return 0;",
"}",
"s->pci0_status.up = 0;",
"s->pci0_status.down... | [
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
49
],
[
51
]
] |
25,455 | static int pcm_dvd_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
AVFrame *frame = data;
const uint8_t *src = avpkt->data;
int buf_size = avpkt->size;
PCMDVDContext *s = avctx->priv_data;
int retval;
int ... | true | FFmpeg | 7c1805869d6f8dd9292977393aa4d97417716852 | static int pcm_dvd_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
AVFrame *frame = data;
const uint8_t *src = avpkt->data;
int buf_size = avpkt->size;
PCMDVDContext *s = avctx->priv_data;
int retval;
int ... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
AVFrame *frame = VAR_1;
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
PCMDVDContext *s = VAR_0->priv_data;
int VAR_6;
int VAR_7;
void *VAR... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"AVFrame *frame = VAR_1;",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"PCMDVDContext *s = VAR_0->priv_data;",
"int VAR_6;",
"int VAR_7;",
"void *VAR_8;",
"if (VAR_5 < 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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
32,
34
],
[
41
],
[
43
],
[
47
],
[
53
],
[
55
],
[
57
],
[
59
... |
25,456 | void qmp_migrate_set_cache_size(int64_t value, Error **errp)
{
MigrationState *s = migrate_get_current();
int64_t new_size;
/* Check for truncation */
if (value != (size_t)value) {
error_set(errp, QERR_INVALID_PARAMETER_VALUE, "cache size",
"exceeding address space");
... | true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | void qmp_migrate_set_cache_size(int64_t value, Error **errp)
{
MigrationState *s = migrate_get_current();
int64_t new_size;
if (value != (size_t)value) {
error_set(errp, QERR_INVALID_PARAMETER_VALUE, "cache size",
"exceeding address space");
return;
}
... | {
"code": [],
"line_no": []
} | void FUNC_0(int64_t VAR_0, Error **VAR_1)
{
MigrationState *s = migrate_get_current();
int64_t new_size;
if (VAR_0 != (size_t)VAR_0) {
error_set(VAR_1, QERR_INVALID_PARAMETER_VALUE, "cache size",
"exceeding address space");
return;
}
if (VAR... | [
"void FUNC_0(int64_t VAR_0, Error **VAR_1)\n{",
"MigrationState *s = migrate_get_current();",
"int64_t new_size;",
"if (VAR_0 != (size_t)VAR_0) {",
"error_set(VAR_1, QERR_INVALID_PARAMETER_VALUE, \"cache size\",\n\"exceeding address space\");",
"return;",
"}",
"if (VAR_0 > ram_bytes_total()) {",
"er... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
53
],
[
55
]
] |
25,457 | static inline void ls_decode_line(JLSState *state, MJpegDecodeContext *s,
void *last, void *dst, int last2, int w,
int stride, int comp, int bits)
{
int i, x = 0;
int Ra, Rb, Rc, Rd;
int D0, D1, D2;
while (x < w) {
int... | true | FFmpeg | 6d3f17838db93647f026338cb63103ce57f5d0e2 | static inline void ls_decode_line(JLSState *state, MJpegDecodeContext *s,
void *last, void *dst, int last2, int w,
int stride, int comp, int bits)
{
int i, x = 0;
int Ra, Rb, Rc, Rd;
int D0, D1, D2;
while (x < w) {
int... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(JLSState *VAR_0, MJpegDecodeContext *VAR_1,
void *VAR_2, void *VAR_3, int VAR_4, int VAR_5,
int VAR_6, int VAR_7, int VAR_8)
{
int VAR_9, VAR_10 = 0;
int VAR_11, VAR_12, VAR_13, VAR_14;
int VAR_15, VAR_16, VA... | [
"static inline void FUNC_0(JLSState *VAR_0, MJpegDecodeContext *VAR_1,\nvoid *VAR_2, void *VAR_3, int VAR_4, int VAR_5,\nint VAR_6, int VAR_7, int VAR_8)\n{",
"int VAR_9, VAR_10 = 0;",
"int VAR_11, VAR_12, VAR_13, VAR_14;",
"int VAR_15, VAR_16, VAR_17;",
"while (VAR_10 < VAR_5) {",
"int VAR_18, VAR_19;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41,
43,
45
],
[
47
],
[
49
],
[
55
],
[
57
... |
25,458 | static void do_video_out(AVFormatContext *s,
OutputStream *ost,
AVFrame *in_picture,
float quality)
{
int ret, format_video_sync;
AVPacket pkt;
AVCodecContext *enc = ost->st->codec;
int nb_frames;
double sync_ipts, d... | false | FFmpeg | dece4f46931cc7870f7ee7022522225b5f49e709 | static void do_video_out(AVFormatContext *s,
OutputStream *ost,
AVFrame *in_picture,
float quality)
{
int ret, format_video_sync;
AVPacket pkt;
AVCodecContext *enc = ost->st->codec;
int nb_frames;
double sync_ipts, d... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFormatContext *VAR_0,
OutputStream *VAR_1,
AVFrame *VAR_2,
float VAR_3)
{
int VAR_4, VAR_5;
AVPacket pkt;
AVCodecContext *enc = VAR_1->st->codec;
int VAR_6;
double VAR_7, VAR_8;
double VAR_9... | [
"static void FUNC_0(AVFormatContext *VAR_0,\nOutputStream *VAR_1,\nAVFrame *VAR_2,\nfloat VAR_3)\n{",
"int VAR_4, VAR_5;",
"AVPacket pkt;",
"AVCodecContext *enc = VAR_1->st->codec;",
"int VAR_6;",
"double VAR_7, VAR_8;",
"double VAR_9 = 0;",
"int VAR_10 = 0;",
"InputStream *ist = NULL;",
"if (VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
35,
37
],
[
41
],
[
43
],
[
49
],
[
53
],
[
55,
57
],
[
61
... |
25,461 | int opt_loglevel(void *optctx, const char *opt, const char *arg)
{
const struct { const char *name; int level; } log_levels[] = {
{ "quiet" , AV_LOG_QUIET },
{ "panic" , AV_LOG_PANIC },
{ "fatal" , AV_LOG_FATAL },
{ "error" , AV_LOG_ERROR },
{ "warning", AV... | true | FFmpeg | 636ced8e1dc8248a1353b416240b93d70ad03edb | int opt_loglevel(void *optctx, const char *opt, const char *arg)
{
const struct { const char *name; int level; } log_levels[] = {
{ "quiet" , AV_LOG_QUIET },
{ "panic" , AV_LOG_PANIC },
{ "fatal" , AV_LOG_FATAL },
{ "error" , AV_LOG_ERROR },
{ "warning", AV... | {
"code": [
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(1);",
" exit(... | int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2)
{
const struct { const char *name; int VAR_5; } VAR_3[] = {
{ "quiet" , AV_LOG_QUIET },
{ "panic" , AV_LOG_PANIC },
{ "fatal" , AV_LOG_FATAL },
{ "error" , AV_LOG_ERROR },
{ "warning", AV_LOG_WAR... | [
"int FUNC_0(void *VAR_0, const char *VAR_1, const char *VAR_2)\n{",
"const struct { const char *name; int VAR_5; } VAR_3[] = {",
"{ \"quiet\" , AV_LOG_QUIET },",
"{ \"panic\" , AV_LOG_PANIC },",
"{ \"fatal\" , AV_LOG_FATAL },",
"{ \"error\" , AV_LOG_ERROR },",
"{ \"warning\", AV_LOG_WARNING ... | [
0,
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
25,462 | static void ram_save_cleanup(void *opaque)
{
RAMState **rsp = opaque;
RAMBlock *block;
/* caller have hold iothread lock or is in a bh, so there is
* no writing race against this migration_bitmap
*/
memory_global_dirty_log_stop();
QLIST_FOREACH_RCU(block, &ram_list.blocks, next... | true | qemu | 84593a0807004d852132eaa56edf24d55793d480 | static void ram_save_cleanup(void *opaque)
{
RAMState **rsp = opaque;
RAMBlock *block;
memory_global_dirty_log_stop();
QLIST_FOREACH_RCU(block, &ram_list.blocks, next) {
g_free(block->bmap);
block->bmap = NULL;
g_free(block->unsentmap);
block->unsen... | {
"code": [
" XBZRLE_cache_lock();",
" if (XBZRLE.cache) {",
" cache_fini(XBZRLE.cache);",
" g_free(XBZRLE.encoded_buf);",
" g_free(XBZRLE.current_buf);",
" g_free(XBZRLE.zero_target_page);",
" XBZRLE.cache = NULL;",
" XBZRLE.encoded_buf ... | static void FUNC_0(void *VAR_0)
{
RAMState **rsp = VAR_0;
RAMBlock *block;
memory_global_dirty_log_stop();
QLIST_FOREACH_RCU(block, &ram_list.blocks, next) {
g_free(block->bmap);
block->bmap = NULL;
g_free(block->unsentmap);
block->unsentmap = NULL;... | [
"static void FUNC_0(void *VAR_0)\n{",
"RAMState **rsp = VAR_0;",
"RAMBlock *block;",
"memory_global_dirty_log_stop();",
"QLIST_FOREACH_RCU(block, &ram_list.blocks, next) {",
"g_free(block->bmap);",
"block->bmap = NULL;",
"g_free(block->unsentmap);",
"block->unsentmap = NULL;",
"}",
"XBZRLE_cache... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53... |
25,463 | const AVOption *av_opt_next(void *obj, const AVOption *last)
{
AVClass *class = *(AVClass**)obj;
if (!last && class->option && class->option[0].name)
return class->option;
if (last && last[1].name)
return ++last;
return NULL;
}
| false | FFmpeg | f98dbc7311a30a30802c71571ff5e3d049ea7556 | const AVOption *av_opt_next(void *obj, const AVOption *last)
{
AVClass *class = *(AVClass**)obj;
if (!last && class->option && class->option[0].name)
return class->option;
if (last && last[1].name)
return ++last;
return NULL;
}
| {
"code": [],
"line_no": []
} | const AVOption *FUNC_0(void *obj, const AVOption *last)
{
AVClass *class = *(AVClass**)obj;
if (!last && class->option && class->option[0].name)
return class->option;
if (last && last[1].name)
return ++last;
return NULL;
}
| [
"const AVOption *FUNC_0(void *obj, const AVOption *last)\n{",
"AVClass *class = *(AVClass**)obj;",
"if (!last && class->option && class->option[0].name)\nreturn class->option;",
"if (last && last[1].name)\nreturn ++last;",
"return NULL;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11,
13
],
[
15
],
[
17
]
] |
25,464 | int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt,
const char *name, const char *args, void *opaque,
AVFilterGraph *graph_ctx)
{
int ret;
*filt_ctx = avfilter_graph_alloc_filter(graph_ctx, filt, name);
if (!*... | false | FFmpeg | 0acf7e268b2f873379cd854b4d5aaba6f9c1f0b5 | int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt,
const char *name, const char *args, void *opaque,
AVFilterGraph *graph_ctx)
{
int ret;
*filt_ctx = avfilter_graph_alloc_filter(graph_ctx, filt, name);
if (!*... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFilterContext **VAR_0, AVFilter *VAR_1,
const char *VAR_2, const char *VAR_3, void *VAR_4,
AVFilterGraph *VAR_5)
{
int VAR_6;
*VAR_0 = avfilter_graph_alloc_filter(VAR_5, VAR_1, VAR_2);
if (!*VAR_0)
return AVERROR... | [
"int FUNC_0(AVFilterContext **VAR_0, AVFilter *VAR_1,\nconst char *VAR_2, const char *VAR_3, void *VAR_4,\nAVFilterGraph *VAR_5)\n{",
"int VAR_6;",
"*VAR_0 = avfilter_graph_alloc_filter(VAR_5, VAR_1, VAR_2);",
"if (!*VAR_0)\nreturn AVERROR(ENOMEM);",
"VAR_6 = avfilter_init_filter(*VAR_0, VAR_3, VAR_4);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15,
17
],
[
21
],
[
23,
25
],
[
29
],
[
33,
35,
37
],
[
39
],
[
41
],
[
43
]
] |
25,465 | static void es1370_class_init (ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS (klass);
PCIDeviceClass *k = PCI_DEVICE_CLASS (klass);
k->realize = es1370_realize;
k->vendor_id = PCI_VENDOR_ID_ENSONIQ;
k->device_id = PCI_DEVICE_ID_ENSONIQ_ES1370;
k->class_id = PCI_CLASS... | true | qemu | 069eb7b2b8fc47c7cb52e5a4af23ea98d939e3da | static void es1370_class_init (ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS (klass);
PCIDeviceClass *k = PCI_DEVICE_CLASS (klass);
k->realize = es1370_realize;
k->vendor_id = PCI_VENDOR_ID_ENSONIQ;
k->device_id = PCI_DEVICE_ID_ENSONIQ_ES1370;
k->class_id = PCI_CLASS... | {
"code": [],
"line_no": []
} | static void FUNC_0 (ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS (VAR_0);
PCIDeviceClass *k = PCI_DEVICE_CLASS (VAR_0);
k->realize = es1370_realize;
k->vendor_id = PCI_VENDOR_ID_ENSONIQ;
k->device_id = PCI_DEVICE_ID_ENSONIQ_ES1370;
k->class_id = PCI_CLASS_MULTIMEDI... | [
"static void FUNC_0 (ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS (VAR_0);",
"PCIDeviceClass *k = PCI_DEVICE_CLASS (VAR_0);",
"k->realize = es1370_realize;",
"k->vendor_id = PCI_VENDOR_ID_ENSONIQ;",
"k->device_id = PCI_DEVICE_ID_ENSONIQ_ES1370;",
"k->class_id = PCI_CLASS_MULTIME... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
14
],
[
16
],
[
18
],
[
20
],
[
22
],
[
24
],
[
26
],
[
28
],
[
30
]
] |
25,467 | static inline int64_t add64(const int64_t a, const int64_t b)
{
return a + b;
}
| true | qemu | 21ce148c7ec71ee32834061355a5ecfd1a11f90f | static inline int64_t add64(const int64_t a, const int64_t b)
{
return a + b;
}
| {
"code": [
"static inline int64_t add64(const int64_t a, const int64_t b)"
],
"line_no": [
1
]
} | static inline int64_t FUNC_0(const int64_t a, const int64_t b)
{
return a + b;
}
| [
"static inline int64_t FUNC_0(const int64_t a, const int64_t b)\n{",
"return a + b;",
"}"
] | [
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
25,469 | static void slavio_timer_init_all(target_phys_addr_t addr, qemu_irq master_irq,
qemu_irq *cpu_irqs, unsigned int num_cpus)
{
DeviceState *dev;
SysBusDevice *s;
unsigned int i;
dev = qdev_create(NULL, "slavio_timer");
qdev_prop_set_uint32(dev, "num_cpus", nu... | true | qemu | e23a1b33b53d25510320b26d9f154e19c6c99725 | static void slavio_timer_init_all(target_phys_addr_t addr, qemu_irq master_irq,
qemu_irq *cpu_irqs, unsigned int num_cpus)
{
DeviceState *dev;
SysBusDevice *s;
unsigned int i;
dev = qdev_create(NULL, "slavio_timer");
qdev_prop_set_uint32(dev, "num_cpus", nu... | {
"code": [
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" ... | static void FUNC_0(target_phys_addr_t VAR_0, qemu_irq VAR_1,
qemu_irq *VAR_2, unsigned int VAR_3)
{
DeviceState *dev;
SysBusDevice *s;
unsigned int VAR_4;
dev = qdev_create(NULL, "slavio_timer");
qdev_prop_set_uint32(dev, "VAR_3", VAR_3);
qdev_init(dev... | [
"static void FUNC_0(target_phys_addr_t VAR_0, qemu_irq VAR_1,\nqemu_irq *VAR_2, unsigned int VAR_3)\n{",
"DeviceState *dev;",
"SysBusDevice *s;",
"unsigned int VAR_4;",
"dev = qdev_create(NULL, \"slavio_timer\");",
"qdev_prop_set_uint32(dev, \"VAR_3\", VAR_3);",
"qdev_init(dev);",
"s = sysbus_from_qde... | [
0,
0,
0,
0,
0,
0,
1,
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
]
] |
25,470 | int ff_pred_weight_table(H264Context *h)
{
int list, i;
int luma_def, chroma_def;
h->use_weight = 0;
h->use_weight_chroma = 0;
h->luma_log2_weight_denom = get_ue_golomb(&h->gb);
if (h->sps.chroma_format_idc)
h->chroma_log2_weight_denom = get_ue_golomb(&h->gb);
luma_d... | true | FFmpeg | 61296d41e2de3b41304339e4631dd44c2e15f805 | int ff_pred_weight_table(H264Context *h)
{
int list, i;
int luma_def, chroma_def;
h->use_weight = 0;
h->use_weight_chroma = 0;
h->luma_log2_weight_denom = get_ue_golomb(&h->gb);
if (h->sps.chroma_format_idc)
h->chroma_log2_weight_denom = get_ue_golomb(&h->gb);
luma_d... | {
"code": [],
"line_no": []
} | int FUNC_0(H264Context *VAR_0)
{
int VAR_1, VAR_2;
int VAR_3, VAR_4;
VAR_0->use_weight = 0;
VAR_0->use_weight_chroma = 0;
VAR_0->luma_log2_weight_denom = get_ue_golomb(&VAR_0->gb);
if (VAR_0->sps.chroma_format_idc)
VAR_0->chroma_log2_weight_denom = get_ue_golomb(&VAR_0->... | [
"int FUNC_0(H264Context *VAR_0)\n{",
"int VAR_1, VAR_2;",
"int VAR_3, VAR_4;",
"VAR_0->use_weight = 0;",
"VAR_0->use_weight_chroma = 0;",
"VAR_0->luma_log2_weight_denom = get_ue_golomb(&VAR_0->gb);",
"if (VAR_0->sps.chroma_format_idc)\nVAR_0->chroma_log2_weight_denom = get_ue_golomb(&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
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8,
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21,
22
],... |
25,471 | static int mpeg_decode_frame(AVCodecContext *avctx, void *data,
int *got_output, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
Mpeg1Context *s = avctx->priv_data;
AVFrame *picture = data;
MpegEncContext *s2 = &s->mpeg_enc_ctx;
... | true | FFmpeg | f6774f905fb3cfdc319523ac640be30b14c1bc55 | static int mpeg_decode_frame(AVCodecContext *avctx, void *data,
int *got_output, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
Mpeg1Context *s = avctx->priv_data;
AVFrame *picture = data;
MpegEncContext *s2 = &s->mpeg_enc_ctx;
... | {
"code": [
" int ret = av_frame_ref(picture, &s2->next_picture_ptr->f);"
],
"line_no": [
27
]
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
Mpeg1Context *s = VAR_0->priv_data;
AVFrame *picture = VAR_1;
MpegEncContext *s2 = &s->mpeg_enc_ctx;
av_dlog(VAR... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"Mpeg1Context *s = VAR_0->priv_data;",
"AVFrame *picture = VAR_1;",
"MpegEncContext *s2 = &s->mpeg_enc_ctx;",
"av_dlog(VAR_0, \"fill_buffer\\n\");... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29,
31
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51,
53
],
[... |
25,473 | static void blur(CoverContext *cover, AVFrame *in, int offx, int offy)
{
int x, y, p;
for (p=0; p<3; p++) {
int ox = offx>>!!p;
int oy = offy>>!!p;
int stride = in->linesize[p];
uint8_t *data = in->data[p] + ox + oy * stride;
int w = FF_CEIL_RSHIFT(cover->width ... | true | FFmpeg | 0d05406482950b7c129eccfefe0daa3d6d47e292 | static void blur(CoverContext *cover, AVFrame *in, int offx, int offy)
{
int x, y, p;
for (p=0; p<3; p++) {
int ox = offx>>!!p;
int oy = offy>>!!p;
int stride = in->linesize[p];
uint8_t *data = in->data[p] + ox + oy * stride;
int w = FF_CEIL_RSHIFT(cover->width ... | {
"code": [
" data[x + y*stride] = (s + (c>>1)) / c;"
],
"line_no": [
75
]
} | static void FUNC_0(CoverContext *VAR_0, AVFrame *VAR_1, int VAR_2, int VAR_3)
{
int VAR_4, VAR_5, VAR_6;
for (VAR_6=0; VAR_6<3; VAR_6++) {
int VAR_7 = VAR_2>>!!VAR_6;
int VAR_8 = VAR_3>>!!VAR_6;
int VAR_9 = VAR_1->linesize[VAR_6];
uint8_t *data = VAR_1->data[VAR_6] + VAR... | [
"static void FUNC_0(CoverContext *VAR_0, AVFrame *VAR_1, int VAR_2, int VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6;",
"for (VAR_6=0; VAR_6<3; VAR_6++) {",
"int VAR_7 = VAR_2>>!!VAR_6;",
"int VAR_8 = VAR_3>>!!VAR_6;",
"int VAR_9 = VAR_1->linesize[VAR_6];",
"uint8_t *data = VAR_1->data[VAR_6] + VAR_7 + VAR_8 * ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43... |
25,474 | static int wav_read_header(AVFormatContext *s)
{
int64_t size, av_uninit(data_size);
int64_t sample_count = 0;
int rf64 = 0;
char start_code[32];
uint32_t tag;
AVIOContext *pb = s->pb;
AVStream *st = NULL;
WAVDemuxContext *wav = s->priv_data;
int ret, got_fmt = 0;
in... | true | FFmpeg | f40ec70478648c1e6cde43b8577c3c29380372ee | static int wav_read_header(AVFormatContext *s)
{
int64_t size, av_uninit(data_size);
int64_t sample_count = 0;
int rf64 = 0;
char start_code[32];
uint32_t tag;
AVIOContext *pb = s->pb;
AVStream *st = NULL;
WAVDemuxContext *wav = s->priv_data;
int ret, got_fmt = 0;
in... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
int64_t size, av_uninit(data_size);
int64_t sample_count = 0;
int VAR_1 = 0;
char VAR_2[32];
uint32_t tag;
AVIOContext *pb = VAR_0->pb;
AVStream *st = NULL;
WAVDemuxContext *wav = VAR_0->priv_data;
int VAR_3, VAR_4 = 0;
int... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"int64_t size, av_uninit(data_size);",
"int64_t sample_count = 0;",
"int VAR_1 = 0;",
"char VAR_2[32];",
"uint32_t tag;",
"AVIOContext *pb = VAR_0->pb;",
"AVStream *st = NULL;",
"WAVDemuxContext *wav = VAR_0->priv_data;",
"int VAR_3, VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
16
],
[
17
],
[
18,
19
],
[
20,
21
],
[
22
],
[
23,
... |
25,475 | static int parse_bsfs(void *log_ctx, const char *bsfs_spec,
AVBitStreamFilterContext **bsfs)
{
char *bsf_name, *buf, *saveptr;
int ret = 0;
if (!(buf = av_strdup(bsfs_spec)))
return AVERROR(ENOMEM);
while (bsf_name = av_strtok(buf, ",", &saveptr)) {
AVBi... | true | FFmpeg | 59f809e9922ad2a8ed5373189e0e2aec0d4dffd7 | static int parse_bsfs(void *log_ctx, const char *bsfs_spec,
AVBitStreamFilterContext **bsfs)
{
char *bsf_name, *buf, *saveptr;
int ret = 0;
if (!(buf = av_strdup(bsfs_spec)))
return AVERROR(ENOMEM);
while (bsf_name = av_strtok(buf, ",", &saveptr)) {
AVBi... | {
"code": [
" char *bsf_name, *buf, *saveptr;",
" if (!(buf = av_strdup(bsfs_spec)))",
" av_free(buf);"
],
"line_no": [
7,
13,
59
]
} | static int FUNC_0(void *VAR_0, const char *VAR_1,
AVBitStreamFilterContext **VAR_2)
{
char *VAR_3, *VAR_4, *VAR_5;
int VAR_6 = 0;
if (!(VAR_4 = av_strdup(VAR_1)))
return AVERROR(ENOMEM);
while (VAR_3 = av_strtok(VAR_4, ",", &VAR_5)) {
AVBitStreamFilterCo... | [
"static int FUNC_0(void *VAR_0, const char *VAR_1,\nAVBitStreamFilterContext **VAR_2)\n{",
"char *VAR_3, *VAR_4, *VAR_5;",
"int VAR_6 = 0;",
"if (!(VAR_4 = av_strdup(VAR_1)))\nreturn AVERROR(ENOMEM);",
"while (VAR_3 = av_strtok(VAR_4, \",\", &VAR_5)) {",
"AVBitStreamFilterContext *bsf = av_bitstream_filte... | [
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13,
15
],
[
19
],
[
21
],
[
25
],
[
27,
29,
31,
33
],
[
35
],
[
37
],
[
39
],
[
45
],
[
47
],
[
51
],
[
53
],
[
57,
59
],
[
61
... |
25,476 | void ff_ivi_output_plane(IVIPlaneDesc *plane, uint8_t *dst, int dst_pitch)
{
int x, y;
const int16_t *src = plane->bands[0].buf;
uint32_t pitch = plane->bands[0].pitch;
for (y = 0; y < plane->height; y++) {
for (x = 0; x < plane->width; x++)
dst[x] = av_clip_uin... | true | FFmpeg | b18a0cc781b791912549504ca8a257f35a151c5e | void ff_ivi_output_plane(IVIPlaneDesc *plane, uint8_t *dst, int dst_pitch)
{
int x, y;
const int16_t *src = plane->bands[0].buf;
uint32_t pitch = plane->bands[0].pitch;
for (y = 0; y < plane->height; y++) {
for (x = 0; x < plane->width; x++)
dst[x] = av_clip_uin... | {
"code": [],
"line_no": []
} | void FUNC_0(IVIPlaneDesc *VAR_0, uint8_t *VAR_1, int VAR_2)
{
int VAR_3, VAR_4;
const int16_t *VAR_5 = VAR_0->bands[0].buf;
uint32_t pitch = VAR_0->bands[0].pitch;
for (VAR_4 = 0; VAR_4 < VAR_0->height; VAR_4++) {
for (VAR_3 = 0; VAR_3 < VAR_0->width; VAR_3++)
V... | [
"void FUNC_0(IVIPlaneDesc *VAR_0, uint8_t *VAR_1, int VAR_2)\n{",
"int VAR_3, VAR_4;",
"const int16_t *VAR_5 = VAR_0->bands[0].buf;",
"uint32_t pitch = VAR_0->bands[0].pitch;",
"for (VAR_4 = 0; VAR_4 < VAR_0->height; VAR_4++) {",
"for (VAR_3 = 0; VAR_3 < VAR_0->width; VAR_3++)",
"V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
]
] |
25,478 | static void secondary_do_checkpoint(BDRVReplicationState *s, Error **errp)
{
Error *local_err = NULL;
int ret;
if (!s->secondary_disk->bs->job) {
error_setg(errp, "Backup job was cancelled unexpectedly");
backup_do_checkpoint(s->secondary_disk->bs->job, &local_err);
if (local_err) {
... | true | qemu | d470ad42acfc73c45d3e8ed5311a491160b4c100 | static void secondary_do_checkpoint(BDRVReplicationState *s, Error **errp)
{
Error *local_err = NULL;
int ret;
if (!s->secondary_disk->bs->job) {
error_setg(errp, "Backup job was cancelled unexpectedly");
backup_do_checkpoint(s->secondary_disk->bs->job, &local_err);
if (local_err) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(BDRVReplicationState *VAR_0, Error **VAR_1)
{
Error *local_err = NULL;
int VAR_2;
if (!VAR_0->secondary_disk->bs->job) {
error_setg(VAR_1, "Backup job was cancelled unexpectedly");
backup_do_checkpoint(VAR_0->secondary_disk->bs->job, &local_err);
if (local_err) {
e... | [
"static void FUNC_0(BDRVReplicationState *VAR_0, Error **VAR_1)\n{",
"Error *local_err = NULL;",
"int VAR_2;",
"if (!VAR_0->secondary_disk->bs->job) {",
"error_setg(VAR_1, \"Backup job was cancelled unexpectedly\");",
"backup_do_checkpoint(VAR_0->secondary_disk->bs->job, &local_err);",
"if (local_err) {... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
]
] |
25,479 | static void vnc_dpy_update(DisplayChangeListener *dcl,
DisplayState *ds,
int x, int y, int w, int h)
{
int i;
VncDisplay *vd = ds->opaque;
struct VncSurface *s = &vd->guest;
int width = ds_get_width(ds);
int height = ds_get_height(ds);
... | true | qemu | 21ef45d71221b4577330fe3aacfb06afad91ad46 | static void vnc_dpy_update(DisplayChangeListener *dcl,
DisplayState *ds,
int x, int y, int w, int h)
{
int i;
VncDisplay *vd = ds->opaque;
struct VncSurface *s = &vd->guest;
int width = ds_get_width(ds);
int height = ds_get_height(ds);
... | {
"code": [
" VncDisplay *vd = ds->opaque;",
" VncDisplay *vd = ds->opaque;",
" VncDisplay *vd = ds->opaque;",
" VncDisplay *vd = ds->opaque;"
],
"line_no": [
11,
11,
11,
11
]
} | static void FUNC_0(DisplayChangeListener *VAR_0,
DisplayState *VAR_1,
int VAR_2, int VAR_3, int VAR_4, int VAR_5)
{
int VAR_6;
VncDisplay *vd = VAR_1->opaque;
struct VncSurface *VAR_7 = &vd->guest;
int VAR_8 = ds_get_width(VAR_1);
int VAR... | [
"static void FUNC_0(DisplayChangeListener *VAR_0,\nDisplayState *VAR_1,\nint VAR_2, int VAR_3, int VAR_4, int VAR_5)\n{",
"int VAR_6;",
"VncDisplay *vd = VAR_1->opaque;",
"struct VncSurface *VAR_7 = &vd->guest;",
"int VAR_8 = ds_get_width(VAR_1);",
"int VAR_9 = ds_get_height(VAR_1);",
"VAR_5 += VAR_3;",... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
]
] |
25,480 | static int aio_read_f(BlockBackend *blk, int argc, char **argv)
{
int nr_iov, c;
struct aio_ctx *ctx = g_new0(struct aio_ctx, 1);
ctx->blk = blk;
while ((c = getopt(argc, argv, "CP:qv")) != -1) {
switch (c) {
case 'C':
ctx->Cflag = 1;
break;
ca... | true | qemu | 556c2b60714e7dae3ed0eb3488910435263dc09f | static int aio_read_f(BlockBackend *blk, int argc, char **argv)
{
int nr_iov, c;
struct aio_ctx *ctx = g_new0(struct aio_ctx, 1);
ctx->blk = blk;
while ((c = getopt(argc, argv, "CP:qv")) != -1) {
switch (c) {
case 'C':
ctx->Cflag = 1;
break;
ca... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockBackend *VAR_0, int VAR_1, char **VAR_2)
{
int VAR_3, VAR_4;
struct aio_ctx *VAR_5 = g_new0(struct aio_ctx, 1);
VAR_5->VAR_0 = VAR_0;
while ((VAR_4 = getopt(VAR_1, VAR_2, "CP:qv")) != -1) {
switch (VAR_4) {
case 'C':
VAR_5->Cflag = 1;
... | [
"static int FUNC_0(BlockBackend *VAR_0, int VAR_1, char **VAR_2)\n{",
"int VAR_3, VAR_4;",
"struct aio_ctx *VAR_5 = g_new0(struct aio_ctx, 1);",
"VAR_5->VAR_0 = VAR_0;",
"while ((VAR_4 = getopt(VAR_1, VAR_2, \"CP:qv\")) != -1) {",
"switch (VAR_4) {",
"case 'C':\nVAR_5->Cflag = 1;",
"break;",
"case '... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... |
25,482 | static int ff_estimate_motion_b(MpegEncContext * s,
int mb_x, int mb_y, int16_t (*mv_table)[2], int ref_index, int f_code)
{
MotionEstContext * const c= &s->me;
int mx, my, dmin;
int P[10][2];
const int shift= 1+s->quarter_sample;
const int mot_stride = s->mb_stride;
... | false | FFmpeg | 155ec6edf82692bcf3a5f87d2bc697404f4e5aaf | static int ff_estimate_motion_b(MpegEncContext * s,
int mb_x, int mb_y, int16_t (*mv_table)[2], int ref_index, int f_code)
{
MotionEstContext * const c= &s->me;
int mx, my, dmin;
int P[10][2];
const int shift= 1+s->quarter_sample;
const int mot_stride = s->mb_stride;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(MpegEncContext * VAR_0,
int VAR_1, int VAR_2, VAR_3 (*mv_table)[2], int VAR_4, int VAR_5)
{
MotionEstContext * const c= &VAR_0->me;
int VAR_6, VAR_7, VAR_8;
int VAR_9[10][2];
const int VAR_10= 1+VAR_0->quarter_sample;
const int VAR_11 = VAR_0->mb_strid... | [
"static int FUNC_0(MpegEncContext * VAR_0,\nint VAR_1, int VAR_2, VAR_3 (*mv_table)[2], int VAR_4, int VAR_5)\n{",
"MotionEstContext * const c= &VAR_0->me;",
"int VAR_6, VAR_7, VAR_8;",
"int VAR_9[10][2];",
"const int VAR_10= 1+VAR_0->quarter_sample;",
"const int VAR_11 = VAR_0->mb_stride;",
"const int ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39
],
[
41,
43,
45
],
[
47
],
[
49
],
[... |
25,483 | static int count_contiguous_clusters(uint64_t nb_clusters, int cluster_size,
uint64_t *l2_table, uint64_t stop_flags)
{
int i;
uint64_t mask = stop_flags | L2E_OFFSET_MASK | QCOW2_CLUSTER_COMPRESSED;
uint64_t first_entry = be64_to_cpu(l2_table[0]);
uint64_t offset = first_entry & mask;
... | true | qemu | 78a52ad5acca7053b774fcc80290e7b7e224c80a | static int count_contiguous_clusters(uint64_t nb_clusters, int cluster_size,
uint64_t *l2_table, uint64_t stop_flags)
{
int i;
uint64_t mask = stop_flags | L2E_OFFSET_MASK | QCOW2_CLUSTER_COMPRESSED;
uint64_t first_entry = be64_to_cpu(l2_table[0]);
uint64_t offset = first_entry & mask;
... | {
"code": [
" uint64_t mask = stop_flags | L2E_OFFSET_MASK | QCOW2_CLUSTER_COMPRESSED;"
],
"line_no": [
9
]
} | static int FUNC_0(uint64_t VAR_0, int VAR_1,
uint64_t *VAR_2, uint64_t VAR_3)
{
int VAR_4;
uint64_t mask = VAR_3 | L2E_OFFSET_MASK | QCOW2_CLUSTER_COMPRESSED;
uint64_t first_entry = be64_to_cpu(VAR_2[0]);
uint64_t offset = first_entry & mask;
if (!offset)
return 0;
a... | [
"static int FUNC_0(uint64_t VAR_0, int VAR_1,\nuint64_t *VAR_2, uint64_t VAR_3)\n{",
"int VAR_4;",
"uint64_t mask = VAR_3 | L2E_OFFSET_MASK | QCOW2_CLUSTER_COMPRESSED;",
"uint64_t first_entry = be64_to_cpu(VAR_2[0]);",
"uint64_t offset = first_entry & mask;",
"if (!offset)\nreturn 0;",
"assert(qcow2_get... | [
0,
0,
1,
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
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
]
] |
25,484 | AddressSpace *pci_device_iommu_address_space(PCIDevice *dev)
{
PCIBus *bus = PCI_BUS(dev->bus);
if (bus->iommu_fn) {
return bus->iommu_fn(bus, bus->iommu_opaque, dev->devfn);
}
if (bus->parent_dev) {
/** We are ignoring the bus master DMA bit of the bridge
* as it w... | true | qemu | 5af2ae2305143f1805a696f9554231e1fc246edc | AddressSpace *pci_device_iommu_address_space(PCIDevice *dev)
{
PCIBus *bus = PCI_BUS(dev->bus);
if (bus->iommu_fn) {
return bus->iommu_fn(bus, bus->iommu_opaque, dev->devfn);
}
if (bus->parent_dev) {
return pci_device_iommu_address_space(bus->parent_dev);
}
... | {
"code": [
" if (bus->iommu_fn) {",
" return bus->iommu_fn(bus, bus->iommu_opaque, dev->devfn);",
" if (bus->parent_dev) {",
" return pci_device_iommu_address_space(bus->parent_dev);"
],
"line_no": [
9,
11,
17,
23
]
} | AddressSpace *FUNC_0(PCIDevice *dev)
{
PCIBus *bus = PCI_BUS(dev->bus);
if (bus->iommu_fn) {
return bus->iommu_fn(bus, bus->iommu_opaque, dev->devfn);
}
if (bus->parent_dev) {
return FUNC_0(bus->parent_dev);
}
return &address_space_memory;
}
| [
"AddressSpace *FUNC_0(PCIDevice *dev)\n{",
"PCIBus *bus = PCI_BUS(dev->bus);",
"if (bus->iommu_fn) {",
"return bus->iommu_fn(bus, bus->iommu_opaque, dev->devfn);",
"}",
"if (bus->parent_dev) {",
"return FUNC_0(bus->parent_dev);",
"}",
"return &address_space_memory;",
"}"
] | [
0,
0,
1,
1,
0,
1,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
23
],
[
25
],
[
29
],
[
31
]
] |
25,485 | static int vc1_decode_b_mb_intfr(VC1Context *v)
{
MpegEncContext *s = &v->s;
GetBitContext *gb = &s->gb;
int i, j;
int mb_pos = s->mb_x + s->mb_y * s->mb_stride;
int cbp = 0; /* cbp decoding stuff */
int mqdiff, mquant; /* MB quantization */
int ttmb = v->ttfrm; /* MB Transform type ... | true | FFmpeg | f4b288a639bbda3ca244072e67b689aa4f40f2c6 | static int vc1_decode_b_mb_intfr(VC1Context *v)
{
MpegEncContext *s = &v->s;
GetBitContext *gb = &s->gb;
int i, j;
int mb_pos = s->mb_x + s->mb_y * s->mb_stride;
int cbp = 0;
int mqdiff, mquant;
int ttmb = v->ttfrm;
int mvsw = 0;
int mb_has_coeffs = 1;
int dmv_x, ... | {
"code": [],
"line_no": []
} | static int FUNC_0(VC1Context *VAR_0)
{
MpegEncContext *s = &VAR_0->s;
GetBitContext *gb = &s->gb;
int VAR_1, VAR_2;
int VAR_3 = s->mb_x + s->mb_y * s->mb_stride;
int VAR_4 = 0;
int VAR_5, VAR_6;
int VAR_7 = VAR_0->ttfrm;
int VAR_8 = 0;
int VAR_9 = 1;
int VAR_10, V... | [
"static int FUNC_0(VC1Context *VAR_0)\n{",
"MpegEncContext *s = &VAR_0->s;",
"GetBitContext *gb = &s->gb;",
"int VAR_1, VAR_2;",
"int VAR_3 = s->mb_x + s->mb_y * s->mb_stride;",
"int VAR_4 = 0;",
"int VAR_5, VAR_6;",
"int VAR_7 = VAR_0->ttfrm;",
"int VAR_8 = 0;",
"int VAR_9 = 1;",
"int VAR_10, V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
... |
25,486 | static void attach(sPAPRDRConnector *drc, DeviceState *d, void *fdt,
int fdt_start_offset, bool coldplug, Error **errp)
{
DPRINTFN("drc: %x, attach", get_index(drc));
if (drc->isolation_state != SPAPR_DR_ISOLATION_STATE_ISOLATED) {
error_setg(errp, "an attached device is still awaitin... | true | qemu | aab99135b63522267c6fdae04712cb2f02c8c7de | static void attach(sPAPRDRConnector *drc, DeviceState *d, void *fdt,
int fdt_start_offset, bool coldplug, Error **errp)
{
DPRINTFN("drc: %x, attach", get_index(drc));
if (drc->isolation_state != SPAPR_DR_ISOLATION_STATE_ISOLATED) {
error_setg(errp, "an attached device is still awaitin... | {
"code": [],
"line_no": []
} | static void FUNC_0(sPAPRDRConnector *VAR_0, DeviceState *VAR_1, void *VAR_2,
int VAR_3, bool VAR_4, Error **VAR_5)
{
DPRINTFN("VAR_0: %x, FUNC_0", get_index(VAR_0));
if (VAR_0->isolation_state != SPAPR_DR_ISOLATION_STATE_ISOLATED) {
error_setg(VAR_5, "an attached device is still await... | [
"static void FUNC_0(sPAPRDRConnector *VAR_0, DeviceState *VAR_1, void *VAR_2,\nint VAR_3, bool VAR_4, Error **VAR_5)\n{",
"DPRINTFN(\"VAR_0: %x, FUNC_0\", get_index(VAR_0));",
"if (VAR_0->isolation_state != SPAPR_DR_ISOLATION_STATE_ISOLATED) {",
"error_setg(VAR_5, \"an attached device is still awaiting releas... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
23
],
[
24
],
[
34,
35
],
[
36,
37,
38,
39
]
] |
25,487 | static void coroutine_fn sd_write_done(SheepdogAIOCB *acb)
{
BDRVSheepdogState *s = acb->common.bs->opaque;
struct iovec iov;
AIOReq *aio_req;
uint32_t offset, data_len, mn, mx;
mn = s->min_dirty_data_idx;
mx = s->max_dirty_data_idx;
if (mn <= mx) {
/* we need to update th... | true | qemu | b544c1aba8681c2fe5d6715fbd37cf6caf1bc7bb | static void coroutine_fn sd_write_done(SheepdogAIOCB *acb)
{
BDRVSheepdogState *s = acb->common.bs->opaque;
struct iovec iov;
AIOReq *aio_req;
uint32_t offset, data_len, mn, mx;
mn = s->min_dirty_data_idx;
mx = s->max_dirty_data_idx;
if (mn <= mx) {
offset = size... | {
"code": [
" add_aio_request(s, aio_req, &iov, 1, false, AIOCB_WRITE_UDATA);",
" data_len, offset, 0, 0, offset);",
" add_aio_request(s, aio_req, &iov, 1, false, AIOCB_WRITE_UDATA);"
],
"line_no": [
47,
43,
47
]
} | static void VAR_0 sd_write_done(SheepdogAIOCB *acb)
{
BDRVSheepdogState *s = acb->common.bs->opaque;
struct iovec iov;
AIOReq *aio_req;
uint32_t offset, data_len, mn, mx;
mn = s->min_dirty_data_idx;
mx = s->max_dirty_data_idx;
if (mn <= mx) {
offset = sizeof(s->i... | [
"static void VAR_0 sd_write_done(SheepdogAIOCB *acb)\n{",
"BDRVSheepdogState *s = acb->common.bs->opaque;",
"struct iovec iov;",
"AIOReq *aio_req;",
"uint32_t offset, data_len, mn, mx;",
"mn = s->min_dirty_data_idx;",
"mx = s->max_dirty_data_idx;",
"if (mn <= mx) {",
"offset = sizeof(s->inode) - siz... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23,
25
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
51
],
[
53
... |
25,488 | static int execute_code(AVCodecContext * avctx, int c)
{
AnsiContext *s = avctx->priv_data;
int ret, i, width, height;
switch(c) {
case 'A': //Cursor Up
s->y = FFMAX(s->y - (s->nb_args > 0 ? s->args[0]*s->font_height : s->font_height), 0);
break;
case 'B': //Cursor Down
... | true | FFmpeg | 3ea5f64ffff0a51f62922efd2e2bc231b13b2179 | static int execute_code(AVCodecContext * avctx, int c)
{
AnsiContext *s = avctx->priv_data;
int ret, i, width, height;
switch(c) {
case 'A':
s->y = FFMAX(s->y - (s->nb_args > 0 ? s->args[0]*s->font_height : s->font_height), 0);
break;
case 'B':
s->y = FFMIN(s->y + ... | {
"code": [
" int ret, i, width, height;",
" if (width != avctx->width || height != avctx->height) {"
],
"line_no": [
7,
125
]
} | static int FUNC_0(AVCodecContext * VAR_0, int VAR_1)
{
AnsiContext *s = VAR_0->priv_data;
int VAR_2, VAR_3, VAR_4, VAR_5;
switch(VAR_1) {
case 'A':
s->y = FFMAX(s->y - (s->nb_args > 0 ? s->args[0]*s->font_height : s->font_height), 0);
break;
case 'B':
s->y = FFMIN(... | [
"static int FUNC_0(AVCodecContext * VAR_0, int VAR_1)\n{",
"AnsiContext *s = VAR_0->priv_data;",
"int VAR_2, VAR_3, VAR_4, VAR_5;",
"switch(VAR_1) {",
"case 'A':\ns->y = FFMAX(s->y - (s->nb_args > 0 ? s->args[0]*s->font_height : s->font_height), 0);",
"break;",
"case 'B':\ns->y = FFMIN(s->y + (s->nb_arg... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13
],
[
15
],
[
17,
19
],
[
21
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33
],
[
35,
37,
39
],
[
41
],
[
43
],
[
45,
47,
49,... |
25,490 | void migration_bitmap_extend(ram_addr_t old, ram_addr_t new)
{
/* called in qemu main thread, so there is
* no writing race against this migration_bitmap
*/
if (migration_bitmap) {
unsigned long *old_bitmap = migration_bitmap, *bitmap;
bitmap = bitmap_new(new);
/* pre... | true | qemu | 60be6340796e66b5ac8aac2d98dde5c79336a89c | void migration_bitmap_extend(ram_addr_t old, ram_addr_t new)
{
if (migration_bitmap) {
unsigned long *old_bitmap = migration_bitmap, *bitmap;
bitmap = bitmap_new(new);
qemu_mutex_lock(&migration_bitmap_mutex);
bitmap_copy(bitmap, old_bitmap, old);
... | {
"code": [
" synchronize_rcu();",
" if (migration_bitmap) {",
" unsigned long *old_bitmap = migration_bitmap, *bitmap;",
" bitmap = bitmap_new(new);",
" bitmap_copy(bitmap, old_bitmap, old);",
" bitmap_set(bitmap, old, new - old);",
" atomic_rc... | void FUNC_0(ram_addr_t VAR_0, ram_addr_t VAR_1)
{
if (migration_bitmap) {
unsigned long *VAR_2 = migration_bitmap, *VAR_3;
VAR_3 = bitmap_new(VAR_1);
qemu_mutex_lock(&migration_bitmap_mutex);
bitmap_copy(VAR_3, VAR_2, VAR_0);
bitmap_set(VA... | [
"void FUNC_0(ram_addr_t VAR_0, ram_addr_t VAR_1)\n{",
"if (migration_bitmap) {",
"unsigned long *VAR_2 = migration_bitmap, *VAR_3;",
"VAR_3 = bitmap_new(VAR_1);",
"qemu_mutex_lock(&migration_bitmap_mutex);",
"bitmap_copy(VAR_3, VAR_2, VAR_0);",
"bitmap_set(VAR_3, VAR_0, VAR_1 - VAR_0);",
"atomic_rcu_s... | [
0,
1,
1,
1,
0,
1,
1,
1,
0,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
11
],
[
13
],
[
15
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
]
] |
25,491 | static void coroutine_fn v9fs_walk(void *opaque)
{
int name_idx;
V9fsQID *qids = NULL;
int i, err = 0;
V9fsPath dpath, path;
uint16_t nwnames;
struct stat stbuf;
size_t offset = 7;
int32_t fid, newfid;
V9fsString *wnames = NULL;
V9fsFidState *fidp;
V9fsFidState *n... | true | qemu | 49dd946bb5419681c8668b09a6d10f42bc707b78 | static void coroutine_fn v9fs_walk(void *opaque)
{
int name_idx;
V9fsQID *qids = NULL;
int i, err = 0;
V9fsPath dpath, path;
uint16_t nwnames;
struct stat stbuf;
size_t offset = 7;
int32_t fid, newfid;
V9fsString *wnames = NULL;
V9fsFidState *fidp;
V9fsFidState *n... | {
"code": [
" BUG_ON(fidp->fid_type != P9_FID_NONE);"
],
"line_no": [
167
]
} | static void VAR_0 v9fs_walk(void *opaque)
{
int name_idx;
V9fsQID *qids = NULL;
int i, err = 0;
V9fsPath dpath, path;
uint16_t nwnames;
struct stat stbuf;
size_t offset = 7;
int32_t fid, newfid;
V9fsString *wnames = NULL;
V9fsFidState *fidp;
V9fsFidState *newfidp ... | [
"static void VAR_0 v9fs_walk(void *opaque)\n{",
"int name_idx;",
"V9fsQID *qids = NULL;",
"int i, err = 0;",
"V9fsPath dpath, path;",
"uint16_t nwnames;",
"struct stat stbuf;",
"size_t offset = 7;",
"int32_t fid, newfid;",
"V9fsString *wnames = NULL;",
"V9fsFidState *fidp;",
"V9fsFidState *new... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
25,493 | int avpicture_layout(const AVPicture* src, int pix_fmt, int width, int height,
unsigned char *dest, int dest_size)
{
PixFmtInfo* pf = &pix_fmt_info[pix_fmt];
int i, j, w, h, data_planes;
const unsigned char* s;
int size = avpicture_get_size(pix_fmt, width, height);
if ... | true | FFmpeg | 0ecca7a49f8e254c12a3a1de048d738bfbb614c6 | int avpicture_layout(const AVPicture* src, int pix_fmt, int width, int height,
unsigned char *dest, int dest_size)
{
PixFmtInfo* pf = &pix_fmt_info[pix_fmt];
int i, j, w, h, data_planes;
const unsigned char* s;
int size = avpicture_get_size(pix_fmt, width, height);
if ... | {
"code": [
" if (size > dest_size)"
],
"line_no": [
17
]
} | int FUNC_0(const AVPicture* VAR_0, int VAR_1, int VAR_2, int VAR_3,
unsigned char *VAR_4, int VAR_5)
{
PixFmtInfo* pf = &pix_fmt_info[VAR_1];
int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;
const unsigned char* VAR_11;
int VAR_12 = avpicture_get_size(VAR_1, VAR_2, VAR_3);
if (... | [
"int FUNC_0(const AVPicture* VAR_0, int VAR_1, int VAR_2, int VAR_3,\nunsigned char *VAR_4, int VAR_5)\n{",
"PixFmtInfo* pf = &pix_fmt_info[VAR_1];",
"int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;",
"const unsigned char* VAR_11;",
"int VAR_12 = avpicture_get_size(VAR_1, VAR_2, VAR_3);",
"if (VAR_12 > VAR_5)\nre... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25,
27,
29,
31,
33
],
[
35,
37
],
[
39,
41
],
[
43,
45
],
[
49
],
[
51
],
[
53
],
[
55
],
[... |
25,495 | static int vnc_update_stats(VncDisplay *vd, struct timeval * tv)
{
int width = pixman_image_get_width(vd->guest.fb);
int height = pixman_image_get_height(vd->guest.fb);
int x, y;
struct timeval res;
int has_dirty = 0;
for (y = 0; y < height; y += VNC_STAT_RECT) {
for (x = 0; x... | true | qemu | eebe0b7905642a986cbce7406d6ab7bf78f3e210 | static int vnc_update_stats(VncDisplay *vd, struct timeval * tv)
{
int width = pixman_image_get_width(vd->guest.fb);
int height = pixman_image_get_height(vd->guest.fb);
int x, y;
struct timeval res;
int has_dirty = 0;
for (y = 0; y < height; y += VNC_STAT_RECT) {
for (x = 0; x... | {
"code": [
" int width = pixman_image_get_width(vd->guest.fb);",
" int height = pixman_image_get_height(vd->guest.fb);"
],
"line_no": [
5,
7
]
} | static int FUNC_0(VncDisplay *VAR_0, struct timeval * VAR_1)
{
int VAR_2 = pixman_image_get_width(VAR_0->guest.fb);
int VAR_3 = pixman_image_get_height(VAR_0->guest.fb);
int VAR_4, VAR_5;
struct timeval VAR_6;
int VAR_7 = 0;
for (VAR_5 = 0; VAR_5 < VAR_3; VAR_5 += VNC_STAT_RECT) {
... | [
"static int FUNC_0(VncDisplay *VAR_0, struct timeval * VAR_1)\n{",
"int VAR_2 = pixman_image_get_width(VAR_0->guest.fb);",
"int VAR_3 = pixman_image_get_height(VAR_0->guest.fb);",
"int VAR_4, VAR_5;",
"struct timeval VAR_6;",
"int VAR_7 = 0;",
"for (VAR_5 = 0; VAR_5 < VAR_3; VAR_5 += VNC_STAT_RECT) {",... | [
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
... |
25,496 | static void iscsi_readcapacity_sync(IscsiLun *iscsilun, Error **errp)
{
struct scsi_task *task = NULL;
struct scsi_readcapacity10 *rc10 = NULL;
struct scsi_readcapacity16 *rc16 = NULL;
int retries = ISCSI_CMD_RETRIES;
do {
if (task != NULL) {
scsi_free_scsi_task(task);... | true | qemu | 6d1f252d8c1ba73bf6ed9af28731a9c9c3d473a2 | static void iscsi_readcapacity_sync(IscsiLun *iscsilun, Error **errp)
{
struct scsi_task *task = NULL;
struct scsi_readcapacity10 *rc10 = NULL;
struct scsi_readcapacity16 *rc16 = NULL;
int retries = ISCSI_CMD_RETRIES;
do {
if (task != NULL) {
scsi_free_scsi_task(task);... | {
"code": [],
"line_no": []
} | static void FUNC_0(IscsiLun *VAR_0, Error **VAR_1)
{
struct scsi_task *VAR_2 = NULL;
struct scsi_readcapacity10 *VAR_3 = NULL;
struct scsi_readcapacity16 *VAR_4 = NULL;
int VAR_5 = ISCSI_CMD_RETRIES;
do {
if (VAR_2 != NULL) {
scsi_free_scsi_task(VAR_2);
VA... | [
"static void FUNC_0(IscsiLun *VAR_0, Error **VAR_1)\n{",
"struct scsi_task *VAR_2 = NULL;",
"struct scsi_readcapacity10 *VAR_3 = NULL;",
"struct scsi_readcapacity16 *VAR_4 = NULL;",
"int VAR_5 = ISCSI_CMD_RETRIES;",
"do {",
"if (VAR_2 != NULL) {",
"scsi_free_scsi_task(VAR_2);",
"VAR_2 = NULL;",
"}... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
25,497 | static int read_access_unit(AVCodecContext *avctx, void* data,
int *got_frame_ptr, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MLPDecodeContext *m = avctx->priv_data;
GetBitContext gb;
unsigned int length, substr;
unsigned int subs... | true | FFmpeg | e3e51f8c14d22ae11684dcfe58df355f0f9e6401 | static int read_access_unit(AVCodecContext *avctx, void* data,
int *got_frame_ptr, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MLPDecodeContext *m = avctx->priv_data;
GetBitContext gb;
unsigned int length, substr;
unsigned int subs... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void* VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
MLPDecodeContext *m = VAR_0->priv_data;
GetBitContext gb;
unsigned int VAR_6, VAR_7;
unsigned int VAR_8;
unsigned int... | [
"static int FUNC_0(AVCodecContext *VAR_0, void* VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"MLPDecodeContext *m = VAR_0->priv_data;",
"GetBitContext gb;",
"unsigned int VAR_6, VAR_7;",
"unsigned int VAR_8;",
"unsigned int VAR_9 = 4;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16,
17
],
[
18
],
[
19,
20
],
[
21
],
[
22
],
[
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.