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 |
|---|---|---|---|---|---|---|---|---|---|---|
7,708 | static void decode_vui(HEVCContext *s, HEVCSPS *sps)
{
VUI *vui = &sps->vui;
GetBitContext *gb = &s->HEVClc->gb;
int sar_present;
av_log(s->avctx, AV_LOG_DEBUG, "Decoding VUI\n");
sar_present = get_bits1(gb);
if (sar_present) {
uint8_t sar_idx = get_bits(gb, 8);
... | true | FFmpeg | b818637b84948e917d11c987f2270cea5b3fcfea | static void decode_vui(HEVCContext *s, HEVCSPS *sps)
{
VUI *vui = &sps->vui;
GetBitContext *gb = &s->HEVClc->gb;
int sar_present;
av_log(s->avctx, AV_LOG_DEBUG, "Decoding VUI\n");
sar_present = get_bits1(gb);
if (sar_present) {
uint8_t sar_idx = get_bits(gb, 8);
... | {
"code": [
" vui->vui_num_units_in_tick = get_bits(gb, 32);",
" vui->vui_time_scale = get_bits(gb, 32);"
],
"line_no": [
171,
173
]
} | static void FUNC_0(HEVCContext *VAR_0, HEVCSPS *VAR_1)
{
VUI *vui = &VAR_1->vui;
GetBitContext *gb = &VAR_0->HEVClc->gb;
int VAR_2;
av_log(VAR_0->avctx, AV_LOG_DEBUG, "Decoding VUI\n");
VAR_2 = get_bits1(gb);
if (VAR_2) {
uint8_t sar_idx = get_bits(gb, 8);
i... | [
"static void FUNC_0(HEVCContext *VAR_0, HEVCSPS *VAR_1)\n{",
"VUI *vui = &VAR_1->vui;",
"GetBitContext *gb = &VAR_0->HEVClc->gb;",
"int VAR_2;",
"av_log(VAR_0->avctx, AV_LOG_DEBUG, \"Decoding VUI\\n\");",
"VAR_2 = get_bits1(gb);",
"if (VAR_2) {",
"uint8_t sar_idx = get_bits(gb, 8);",
"if (s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
43
],
[
45,
47
],
[
51
],
[... |
7,710 | static EHCIQueue *ehci_state_fetchqh(EHCIState *ehci, int async)
{
EHCIPacket *p;
uint32_t entry, devaddr;
EHCIQueue *q;
entry = ehci_get_fetch_addr(ehci, async);
q = ehci_find_queue_by_qh(ehci, entry, async);
if (NULL == q) {
q = ehci_alloc_queue(ehci, entry, async);
}
... | true | qemu | dafe31fc2a8653b535d58f8c7b250c0827b14420 | static EHCIQueue *ehci_state_fetchqh(EHCIState *ehci, int async)
{
EHCIPacket *p;
uint32_t entry, devaddr;
EHCIQueue *q;
entry = ehci_get_fetch_addr(ehci, async);
q = ehci_find_queue_by_qh(ehci, entry, async);
if (NULL == q) {
q = ehci_alloc_queue(ehci, entry, async);
}
... | {
"code": [
" uint32_t entry, devaddr;",
" (uint32_t *) &q->qh, sizeof(EHCIqh) >> 2);",
" ehci_trace_qh(q, NLPTR_GET(q->qhaddr), &q->qh);",
" devaddr = get_field(q->qh.epchar, QH_EPCHAR_DEVADDR);",
" if (q->dev != NULL && q->dev->addr != devaddr) {",
" if (!QTA... | static EHCIQueue *FUNC_0(EHCIState *ehci, int async)
{
EHCIPacket *p;
uint32_t entry, devaddr;
EHCIQueue *q;
entry = ehci_get_fetch_addr(ehci, async);
q = ehci_find_queue_by_qh(ehci, entry, async);
if (NULL == q) {
q = ehci_alloc_queue(ehci, entry, async);
}
p = QTAIL... | [
"static EHCIQueue *FUNC_0(EHCIState *ehci, int async)\n{",
"EHCIPacket *p;",
"uint32_t entry, devaddr;",
"EHCIQueue *q;",
"entry = ehci_get_fetch_addr(ehci, async);",
"q = ehci_find_queue_by_qh(ehci, entry, async);",
"if (NULL == q) {",
"q = ehci_alloc_queue(ehci, entry, async);",
"}",
"p = QTAILQ... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43,
45
],
[
47
],
[
51
],
[... |
7,711 | static av_cold int aacPlus_encode_init(AVCodecContext *avctx)
{
aacPlusAudioContext *s = avctx->priv_data;
aacplusEncConfiguration *aacplus_cfg;
/* number of channels */
if (avctx->channels < 1 || avctx->channels > 2) {
av_log(avctx, AV_LOG_ERROR, "encoding %d channel(s) is not allowed\n... | true | FFmpeg | 642c49c983df2f56b656ce668f2a0257a1939578 | static av_cold int aacPlus_encode_init(AVCodecContext *avctx)
{
aacPlusAudioContext *s = avctx->priv_data;
aacplusEncConfiguration *aacplus_cfg;
if (avctx->channels < 1 || avctx->channels > 2) {
av_log(avctx, AV_LOG_ERROR, "encoding %d channel(s) is not allowed\n", avctx->channels);
... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
aacPlusAudioContext *s = avctx->priv_data;
aacplusEncConfiguration *aacplus_cfg;
if (avctx->channels < 1 || avctx->channels > 2) {
av_log(avctx, AV_LOG_ERROR, "encoding %d channel(s) is not allowed\n", avctx->channels);
return ... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"aacPlusAudioContext *s = avctx->priv_data;",
"aacplusEncConfiguration *aacplus_cfg;",
"if (avctx->channels < 1 || avctx->channels > 2) {",
"av_log(avctx, AV_LOG_ERROR, \"encoding %d channel(s) is not allowed\\n\", avctx->channels);",
"return AVERROR(... | [
0,
0,
0,
0,
0,
0,
0,
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
],
[
13
],
[
15
],
[
17
],
[
22
],
[
24
],
[
26
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
46
],
[
50
],
[
52
],
[
54
],
[
56
],
[
58
],
... |
7,713 | static void s390_virtio_blk_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
VirtIOS390DeviceClass *k = VIRTIO_S390_DEVICE_CLASS(klass);
k->init = s390_virtio_blk_init;
dc->props = s390_virtio_blk_properties;
}
| true | qemu | caffdac363801cd2cf2bf01ad013a8c1e1e43800 | static void s390_virtio_blk_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
VirtIOS390DeviceClass *k = VIRTIO_S390_DEVICE_CLASS(klass);
k->init = s390_virtio_blk_init;
dc->props = s390_virtio_blk_properties;
}
| {
"code": [
" DeviceClass *dc = DEVICE_CLASS(klass);",
" dc->props = s390_virtio_blk_properties;"
],
"line_no": [
5,
13
]
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
VirtIOS390DeviceClass *k = VIRTIO_S390_DEVICE_CLASS(VAR_0);
k->init = s390_virtio_blk_init;
dc->props = s390_virtio_blk_properties;
}
| [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"VirtIOS390DeviceClass *k = VIRTIO_S390_DEVICE_CLASS(VAR_0);",
"k->init = s390_virtio_blk_init;",
"dc->props = s390_virtio_blk_properties;",
"}"
] | [
0,
1,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
]
] |
7,714 | static int handle_connection(HTTPContext *c)
{
int len, ret;
switch(c->state) {
case HTTPSTATE_WAIT_REQUEST:
case RTSPSTATE_WAIT_REQUEST:
/* timeout ? */
if ((c->timeout - cur_time) < 0)
return -1;
if (c->poll_entry->revents & (POLLERR | POLLHUP))
... | true | FFmpeg | 1bc1cfdddf7ab8ef50d0fc888808d6b609eb5d8d | static int handle_connection(HTTPContext *c)
{
int len, ret;
switch(c->state) {
case HTTPSTATE_WAIT_REQUEST:
case RTSPSTATE_WAIT_REQUEST:
if ((c->timeout - cur_time) < 0)
return -1;
if (c->poll_entry->revents & (POLLERR | POLLHUP))
return ... | {
"code": [
" return 0;"
],
"line_no": [
305
]
} | static int FUNC_0(HTTPContext *VAR_0)
{
int VAR_1, VAR_2;
switch(VAR_0->state) {
case HTTPSTATE_WAIT_REQUEST:
case RTSPSTATE_WAIT_REQUEST:
if ((VAR_0->timeout - cur_time) < 0)
return -1;
if (VAR_0->poll_entry->revents & (POLLERR | POLLHUP))
... | [
"static int FUNC_0(HTTPContext *VAR_0)\n{",
"int VAR_1, VAR_2;",
"switch(VAR_0->state) {",
"case HTTPSTATE_WAIT_REQUEST:\ncase RTSPSTATE_WAIT_REQUEST:\nif ((VAR_0->timeout - cur_time) < 0)\nreturn -1;",
"if (VAR_0->poll_entry->revents & (POLLERR | POLLHUP))\nreturn -1;",
"if (!(VAR_0->poll_entry->revents ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13,
17,
19
],
[
21,
23
],
[
29,
31
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
[
57,
59
],
... |
7,717 | static int disas_coproc_insn(CPUARMState * env, DisasContext *s, uint32_t insn)
{
int cpnum, is64, crn, crm, opc1, opc2, isread, rt, rt2;
const ARMCPRegInfo *ri;
cpnum = (insn >> 8) & 0xf;
if (arm_feature(env, ARM_FEATURE_XSCALE)
&& ((env->cp15.c15_cpar ^ 0x3fff) & (1 << cpnum)))
return 1;
/* ... | true | qemu | f59df3f2354982ee0381b87d1ce561f1eb0ed505 | static int disas_coproc_insn(CPUARMState * env, DisasContext *s, uint32_t insn)
{
int cpnum, is64, crn, crm, opc1, opc2, isread, rt, rt2;
const ARMCPRegInfo *ri;
cpnum = (insn >> 8) & 0xf;
if (arm_feature(env, ARM_FEATURE_XSCALE)
&& ((env->cp15.c15_cpar ^ 0x3fff) & (1 << cpnum)))
return 1;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUARMState * VAR_0, DisasContext *VAR_1, uint32_t VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;
const ARMCPRegInfo *VAR_12;
VAR_3 = (VAR_2 >> 8) & 0xf;
if (arm_feature(VAR_0, ARM_FEATURE_XSCALE)
&& ((VAR_0->cp15.c15_cpar ^ 0x3fff) & (1 << VAR_3)))
... | [
"static int FUNC_0(CPUARMState * VAR_0, DisasContext *VAR_1, uint32_t VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;",
"const ARMCPRegInfo *VAR_12;",
"VAR_3 = (VAR_2 >> 8) & 0xf;",
"if (arm_feature(VAR_0, ARM_FEATURE_XSCALE)\n&& ((VAR_0->cp15.c15_cpar ^ 0x3fff) & (1 << VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
10
],
[
11,
12,
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18,
19
],
[
21
],
[
22
],
[
24
],
[
25
],
[
26
],
[
... |
7,718 | static void mov_parse_stsd_video(MOVContext *c, AVIOContext *pb,
AVStream *st, MOVStreamContext *sc)
{
uint8_t codec_name[32];
int64_t stsd_start;
unsigned int len;
/* The first 16 bytes of the video sample description are already
* read in ff_mov_read_stsd... | true | FFmpeg | 66453b1fba6c68f2f7f5117355d34b5f40910327 | static void mov_parse_stsd_video(MOVContext *c, AVIOContext *pb,
AVStream *st, MOVStreamContext *sc)
{
uint8_t codec_name[32];
int64_t stsd_start;
unsigned int len;
stsd_start = avio_tell(pb) - 16;
avio_rb16(pb);
avio_rb16(pb);
avio_rb3... | {
"code": [
" uint8_t codec_name[32];"
],
"line_no": [
7
]
} | static void FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1,
AVStream *VAR_2, MOVStreamContext *VAR_3)
{
uint8_t codec_name[32];
int64_t stsd_start;
unsigned int VAR_4;
stsd_start = avio_tell(VAR_1) - 16;
avio_rb16(VAR_1);
avio_rb16(VAR_1);
... | [
"static void FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1,\nAVStream *VAR_2, MOVStreamContext *VAR_3)\n{",
"uint8_t codec_name[32];",
"int64_t stsd_start;",
"unsigned int VAR_4;",
"stsd_start = avio_tell(VAR_1) - 16;",
"avio_rb16(VAR_1);",
"avio_rb16(VAR_1);",
"avio_rb32(VAR_1);",
"avio_rb32(VAR_1);... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53,
55
],
[
57
... |
7,720 | static inline void gen_check_tlb_flush(DisasContext *ctx) { }
| true | qemu | e3cffe6fad29e07d401eabb913a6d88501d5c143 | static inline void gen_check_tlb_flush(DisasContext *ctx) { }
| {
"code": [
"static inline void gen_check_tlb_flush(DisasContext *ctx) { }"
],
"line_no": [
1
]
} | static inline void FUNC_0(DisasContext *VAR_0) { }
| [
"static inline void FUNC_0(DisasContext *VAR_0) { }"
] | [
1
] | [
[
1
]
] |
7,721 | static int64_t coroutine_fn qcow_co_get_block_status(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file)
{
BDRVQcowState *s = bs->opaque;
int index_in_cluster, n;
uint64_t cluster_offset;
qemu_co_mutex_lock(&s->lock);
cluster_offset = get_cl... | true | qemu | 56439e9d55626b65ecb887f1ac3714652555312e | static int64_t coroutine_fn qcow_co_get_block_status(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file)
{
BDRVQcowState *s = bs->opaque;
int index_in_cluster, n;
uint64_t cluster_offset;
qemu_co_mutex_lock(&s->lock);
cluster_offset = get_cl... | {
"code": [
" int index_in_cluster, n;",
" cluster_offset = get_cluster_offset(bs, sector_num << 9, 0, 0, 0, 0);"
],
"line_no": [
9,
17
]
} | static int64_t VAR_0 qcow_co_get_block_status(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file)
{
BDRVQcowState *s = bs->opaque;
int index_in_cluster, n;
uint64_t cluster_offset;
qemu_co_mutex_lock(&s->lock);
cluster_offset = get_cluster_o... | [
"static int64_t VAR_0 qcow_co_get_block_status(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file)\n{",
"BDRVQcowState *s = bs->opaque;",
"int index_in_cluster, n;",
"uint64_t cluster_offset;",
"qemu_co_mutex_lock(&s->lock);",
"cluster_offset = get_cluster_offset... | [
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
7,722 | static void H264_CHROMA_MC8_TMPL(uint8_t *dst/*align 8*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y, int rnd)
{
if(y==0 && x==0) {
/* no filter needed */
H264_CHROMA_MC8_MV0(dst, src, stride, h);
return;
}
assert(x<8 && y<8 && x>=0 && y>=0);
if(y==0 || ... | true | FFmpeg | 96275520a383464ce9552ed727bd38dcb91d70fb | static void H264_CHROMA_MC8_TMPL(uint8_t *dst, uint8_t *src, int stride, int h, int x, int y, int rnd)
{
if(y==0 && x==0) {
H264_CHROMA_MC8_MV0(dst, src, stride, h);
return;
}
assert(x<8 && y<8 && x>=0 && y>=0);
if(y==0 || x==0)
{
asm volatile... | {
"code": [
" :: \"r\"(255*(x+y)+8), \"m\"(rnd?ff_pw_4:ff_pw_3));",
" :: \"r\"((x*255+8)*(8-y)), \"r\"((x*255+8)*y), \"m\"(rnd?ff_pw_32:ff_pw_28)"
],
"line_no": [
39,
181
]
} | static void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6)
{
if(VAR_5==0 && VAR_4==0) {
H264_CHROMA_MC8_MV0(VAR_0, VAR_1, VAR_2, VAR_3);
return;
}
assert(VAR_4<8 && VAR_5<8 && VAR_4>=0 && VAR_5>=0);
if(VAR_5==0 || VAR_4=... | [
"static void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6)\n{",
"if(VAR_5==0 && VAR_4==0) {",
"H264_CHROMA_MC8_MV0(VAR_0, VAR_1, VAR_2, VAR_3);",
"return;",
"}",
"assert(VAR_4<8 && VAR_5<8 && VAR_4>=0 && VAR_5>=0);",
"if(VAR_5==0 || VAR_4==0)\n{",
"asm v... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21,
23
],
[
27,
29,
31,
33,
35,
37,
39
],
[
43
],
[
45,
47,
49,
51,
53,
55,
57,
59,
61,
63,
65,
67,
69,
71... |
7,723 | static void vhost_virtqueue_stop(struct vhost_dev *dev,
struct VirtIODevice *vdev,
struct vhost_virtqueue *vq,
unsigned idx)
{
int vhost_vq_index = dev->vhost_ops->vhost_get_vq_index(dev, idx);
stru... | true | qemu | 2ae39a113af311cb56a0c35b7f212dafcef15303 | static void vhost_virtqueue_stop(struct vhost_dev *dev,
struct VirtIODevice *vdev,
struct vhost_virtqueue *vq,
unsigned idx)
{
int vhost_vq_index = dev->vhost_ops->vhost_get_vq_index(dev, idx);
stru... | {
"code": [],
"line_no": []
} | static void FUNC_0(struct vhost_dev *VAR_0,
struct VirtIODevice *VAR_1,
struct vhost_virtqueue *VAR_2,
unsigned VAR_3)
{
int VAR_4 = VAR_0->vhost_ops->vhost_get_vq_index(VAR_0, VAR_3);
struct vhost_... | [
"static void FUNC_0(struct vhost_dev *VAR_0,\nstruct VirtIODevice *VAR_1,\nstruct vhost_virtqueue *VAR_2,\nunsigned VAR_3)\n{",
"int VAR_4 = VAR_0->vhost_ops->vhost_get_vq_index(VAR_0, VAR_3);",
"struct vhost_vring_state VAR_5 = {",
".index = VAR_4,\n};",
"int VAR_6;",
"VAR_6 = VAR_0->vhost_ops->vhost_get... | [
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
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45,
47,
50
],
[
52,
54,
56
],
[
58
... |
7,724 | BlockDeviceInfoList *bdrv_named_nodes_list(void)
{
BlockDeviceInfoList *list, *entry;
BlockDriverState *bs;
list = NULL;
QTAILQ_FOREACH(bs, &graph_bdrv_states, node_list) {
entry = g_malloc0(sizeof(*entry));
entry->value = bdrv_block_device_info(bs);
entry->next = list;... | true | qemu | d5a8ee60a0fbc20a2c2d02f3bda1bb1bd365f1ee | BlockDeviceInfoList *bdrv_named_nodes_list(void)
{
BlockDeviceInfoList *list, *entry;
BlockDriverState *bs;
list = NULL;
QTAILQ_FOREACH(bs, &graph_bdrv_states, node_list) {
entry = g_malloc0(sizeof(*entry));
entry->value = bdrv_block_device_info(bs);
entry->next = list;... | {
"code": [
"BlockDeviceInfoList *bdrv_named_nodes_list(void)",
" entry->value = bdrv_block_device_info(bs);"
],
"line_no": [
1,
17
]
} | BlockDeviceInfoList *FUNC_0(void)
{
BlockDeviceInfoList *list, *entry;
BlockDriverState *bs;
list = NULL;
QTAILQ_FOREACH(bs, &graph_bdrv_states, node_list) {
entry = g_malloc0(sizeof(*entry));
entry->value = bdrv_block_device_info(bs);
entry->next = list;
list ... | [
"BlockDeviceInfoList *FUNC_0(void)\n{",
"BlockDeviceInfoList *list, *entry;",
"BlockDriverState *bs;",
"list = NULL;",
"QTAILQ_FOREACH(bs, &graph_bdrv_states, node_list) {",
"entry = g_malloc0(sizeof(*entry));",
"entry->value = bdrv_block_device_info(bs);",
"entry->next = list;",
"list = entry;",
... | [
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
]
] |
7,725 | void ff_put_h264_qpel16_mc01_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_vt_qrt_16w_msa(src - (stride * 2), stride, dst, stride, 16, 0);
}
| false | FFmpeg | 6796a1dd8c14843b77925cb83a3ef88706ae1dd0 | void ff_put_h264_qpel16_mc01_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_vt_qrt_16w_msa(src - (stride * 2), stride, dst, stride, 16, 0);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,
ptrdiff_t VAR_2)
{
avc_luma_vt_qrt_16w_msa(VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2, 16, 0);
}
| [
"void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{",
"avc_luma_vt_qrt_16w_msa(VAR_1 - (VAR_2 * 2), VAR_2, VAR_0, VAR_2, 16, 0);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
7,726 | int ff_thread_can_start_frame(AVCodecContext *avctx)
{
PerThreadContext *p = avctx->thread_opaque;
if ((avctx->active_thread_type&FF_THREAD_FRAME) && p->state != STATE_SETTING_UP &&
(avctx->codec->update_thread_context || (!avctx->thread_safe_callbacks &&
avctx->get_buffer != avcode... | false | FFmpeg | 97f8c6e14753b94c1f6a96fe354a125bbfdea2cb | int ff_thread_can_start_frame(AVCodecContext *avctx)
{
PerThreadContext *p = avctx->thread_opaque;
if ((avctx->active_thread_type&FF_THREAD_FRAME) && p->state != STATE_SETTING_UP &&
(avctx->codec->update_thread_context || (!avctx->thread_safe_callbacks &&
avctx->get_buffer != avcode... | {
"code": [],
"line_no": []
} | int FUNC_0(AVCodecContext *VAR_0)
{
PerThreadContext *p = VAR_0->thread_opaque;
if ((VAR_0->active_thread_type&FF_THREAD_FRAME) && p->state != STATE_SETTING_UP &&
(VAR_0->codec->update_thread_context || (!VAR_0->thread_safe_callbacks &&
VAR_0->get_buffer != avcodec_default_get_buffe... | [
"int FUNC_0(AVCodecContext *VAR_0)\n{",
"PerThreadContext *p = VAR_0->thread_opaque;",
"if ((VAR_0->active_thread_type&FF_THREAD_FRAME) && p->state != STATE_SETTING_UP &&\n(VAR_0->codec->update_thread_context || (!VAR_0->thread_safe_callbacks &&\nVAR_0->get_buffer != avcodec_default_get_buffer))) {",
"return ... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
7,727 | static int decode_cblk(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *codsty,
Jpeg2000T1Context *t1, Jpeg2000Cblk *cblk,
int width, int height, int bandpos)
{
int passno = cblk->npasses, pass_t = 2, bpno = cblk->nonzerobits - 1, y;
int clnpass_cnt = 0;
in... | false | FFmpeg | eea92133a16e7e0a837ad680afd4a05d08683a61 | static int decode_cblk(Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *codsty,
Jpeg2000T1Context *t1, Jpeg2000Cblk *cblk,
int width, int height, int bandpos)
{
int passno = cblk->npasses, pass_t = 2, bpno = cblk->nonzerobits - 1, y;
int clnpass_cnt = 0;
in... | {
"code": [],
"line_no": []
} | static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000CodingStyle *VAR_1,
Jpeg2000T1Context *VAR_2, Jpeg2000Cblk *VAR_3,
int VAR_4, int VAR_5, int VAR_6)
{
int VAR_7 = VAR_3->npasses, VAR_8 = 2, VAR_9 = VAR_3->nonzerobits - 1, VAR_10;
int VAR_11 = 0;
in... | [
"static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000CodingStyle *VAR_1,\nJpeg2000T1Context *VAR_2, Jpeg2000Cblk *VAR_3,\nint VAR_4, int VAR_5, int VAR_6)\n{",
"int VAR_7 = VAR_3->npasses, VAR_8 = 2, VAR_9 = VAR_3->nonzerobits - 1, VAR_10;",
"int VAR_11 = 0;",
"int VAR_12 = VAR_1->cblk_style & ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
33,
35
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
],
[
57,
59,... |
7,728 | unsigned int av_codec_get_tag(const AVCodecTag *tags[4], enum CodecID id)
{
int i;
for(i=0; i<4 && tags[i]; i++){
int tag= codec_get_tag(tags[i], id);
if(tag) return tag;
}
return 0;
}
| false | FFmpeg | 6c77805fc84a63b74e5025b4d7eeea24c8138cf3 | unsigned int av_codec_get_tag(const AVCodecTag *tags[4], enum CodecID id)
{
int i;
for(i=0; i<4 && tags[i]; i++){
int tag= codec_get_tag(tags[i], id);
if(tag) return tag;
}
return 0;
}
| {
"code": [],
"line_no": []
} | unsigned int FUNC_0(const AVCodecTag *VAR_0[4], enum CodecID VAR_1)
{
int VAR_2;
for(VAR_2=0; VAR_2<4 && VAR_0[VAR_2]; VAR_2++){
int tag= codec_get_tag(VAR_0[VAR_2], VAR_1);
if(tag) return tag;
}
return 0;
}
| [
"unsigned int FUNC_0(const AVCodecTag *VAR_0[4], enum CodecID VAR_1)\n{",
"int VAR_2;",
"for(VAR_2=0; VAR_2<4 && VAR_0[VAR_2]; VAR_2++){",
"int tag= codec_get_tag(VAR_0[VAR_2], VAR_1);",
"if(tag) return tag;",
"}",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
7,730 | const char *avcodec_get_pix_fmt_name(enum PixelFormat pix_fmt)
{
if (pix_fmt < 0 || pix_fmt >= PIX_FMT_NB)
return NULL;
else
return av_pix_fmt_descriptors[pix_fmt].name;
}
| false | FFmpeg | 46db10ed0e04872eb9b003129f8395005c935ca4 | const char *avcodec_get_pix_fmt_name(enum PixelFormat pix_fmt)
{
if (pix_fmt < 0 || pix_fmt >= PIX_FMT_NB)
return NULL;
else
return av_pix_fmt_descriptors[pix_fmt].name;
}
| {
"code": [],
"line_no": []
} | const char *FUNC_0(enum PixelFormat VAR_0)
{
if (VAR_0 < 0 || VAR_0 >= PIX_FMT_NB)
return NULL;
else
return av_pix_fmt_descriptors[VAR_0].name;
}
| [
"const char *FUNC_0(enum PixelFormat VAR_0)\n{",
"if (VAR_0 < 0 || VAR_0 >= PIX_FMT_NB)\nreturn NULL;",
"else\nreturn av_pix_fmt_descriptors[VAR_0].name;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13
]
] |
7,731 | static int decode_residual_block(AVSContext *h, GetBitContext *gb,
const struct dec_2dvlc *r, int esc_golomb_order,
int qp, uint8_t *dst, int stride) {
int i, level_code, esc_code, level, run, mask;
DCTELEM level_buf[65];
uint8_t run_buf... | false | FFmpeg | 6481a36010d8f7d834676f17ba555d0a3815c760 | static int decode_residual_block(AVSContext *h, GetBitContext *gb,
const struct dec_2dvlc *r, int esc_golomb_order,
int qp, uint8_t *dst, int stride) {
int i, level_code, esc_code, level, run, mask;
DCTELEM level_buf[65];
uint8_t run_buf... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVSContext *VAR_0, GetBitContext *VAR_1,
const struct dec_2dvlc *VAR_2, int VAR_3,
int VAR_4, uint8_t *VAR_5, int VAR_6) {
int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;
DCTELEM level_buf[65];
uint8_t run_buf[65];
... | [
"static int FUNC_0(AVSContext *VAR_0, GetBitContext *VAR_1,\nconst struct dec_2dvlc *VAR_2, int VAR_3,\nint VAR_4, uint8_t *VAR_5, int VAR_6) {",
"int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;",
"DCTELEM level_buf[65];",
"uint8_t run_buf[65];",
"DCTELEM *block = VAR_0->block;",
"for(VAR_7=0;VAR_7<65;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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[... |
7,733 | static void free_duplicate_context(MpegEncContext *s){
if(s==NULL) return;
av_freep(&s->allocated_edge_emu_buffer); s->edge_emu_buffer= NULL;
av_freep(&s->me.scratchpad);
s->me.temp=
s->rd_scratchpad=
s->b_scratchpad=
s->obmc_scratchpad= NULL;
av_freep(&s->dct_error_sum);
... | true | FFmpeg | 330deb75923675224fb9aed311d3d6ce3ec52420 | static void free_duplicate_context(MpegEncContext *s){
if(s==NULL) return;
av_freep(&s->allocated_edge_emu_buffer); s->edge_emu_buffer= NULL;
av_freep(&s->me.scratchpad);
s->me.temp=
s->rd_scratchpad=
s->b_scratchpad=
s->obmc_scratchpad= NULL;
av_freep(&s->dct_error_sum);
... | {
"code": [
" av_freep(&s->allocated_edge_emu_buffer); s->edge_emu_buffer= NULL;"
],
"line_no": [
7
]
} | static void FUNC_0(MpegEncContext *VAR_0){
if(VAR_0==NULL) return;
av_freep(&VAR_0->allocated_edge_emu_buffer); VAR_0->edge_emu_buffer= NULL;
av_freep(&VAR_0->me.scratchpad);
VAR_0->me.temp=
VAR_0->rd_scratchpad=
VAR_0->b_scratchpad=
VAR_0->obmc_scratchpad= NULL;
av_freep(&VA... | [
"static void FUNC_0(MpegEncContext *VAR_0){",
"if(VAR_0==NULL) return;",
"av_freep(&VAR_0->allocated_edge_emu_buffer); VAR_0->edge_emu_buffer= NULL;",
"av_freep(&VAR_0->me.scratchpad);",
"VAR_0->me.temp=\nVAR_0->rd_scratchpad=\nVAR_0->b_scratchpad=\nVAR_0->obmc_scratchpad= NULL;",
"av_freep(&VAR_0->dct_er... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
7
],
[
9
],
[
11,
13,
15,
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
7,734 | int cpu_gen_code(CPUState *env, TranslationBlock *tb,
int max_code_size, int *gen_code_size_ptr)
{
uint8_t *gen_code_buf;
int gen_code_size;
if (gen_intermediate_code(env, tb) < 0)
return -1;
/* generate machine code */
tb->tb_next_offset[0] = 0xffff;
tb... | true | qemu | d07bde88a52bf293c3f8846cfd162e0a57e1557c | int cpu_gen_code(CPUState *env, TranslationBlock *tb,
int max_code_size, int *gen_code_size_ptr)
{
uint8_t *gen_code_buf;
int gen_code_size;
if (gen_intermediate_code(env, tb) < 0)
return -1;
tb->tb_next_offset[0] = 0xffff;
tb->tb_next_offset[1] = 0xfff... | {
"code": [
"int cpu_gen_code(CPUState *env, TranslationBlock *tb,",
" int max_code_size, int *gen_code_size_ptr)"
],
"line_no": [
1,
3
]
} | int FUNC_0(CPUState *VAR_0, TranslationBlock *VAR_1,
int VAR_2, int *VAR_3)
{
uint8_t *gen_code_buf;
int VAR_4;
if (gen_intermediate_code(VAR_0, VAR_1) < 0)
return -1;
VAR_1->tb_next_offset[0] = 0xffff;
VAR_1->tb_next_offset[1] = 0xffff;
gen_code_b... | [
"int FUNC_0(CPUState *VAR_0, TranslationBlock *VAR_1,\nint VAR_2, int *VAR_3)\n{",
"uint8_t *gen_code_buf;",
"int VAR_4;",
"if (gen_intermediate_code(VAR_0, VAR_1) < 0)\nreturn -1;",
"VAR_1->tb_next_offset[0] = 0xffff;",
"VAR_1->tb_next_offset[1] = 0xffff;",
"gen_code_buf = VAR_1->tc_ptr;",
"#ifdef US... | [
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
],
[
13,
15
],
[
21
],
[
23
],
[
25
],
[
27,
31
],
[
33
],
[
35,
37
],
[
41,
43,
45,
47,
49,
51,
53
],
[
55
],
[
57,
59
],
[
61
],
[... |
7,736 | vnc_display_setup_auth(VncDisplay *vs,
bool password,
bool sasl,
bool tls,
bool x509,
bool websocket)
{
/*
* We have a choice of 3 authentication options
*
* 1. none
* ... | true | qemu | 3e305e4a4752f70c0b5c3cf5b43ec957881714f7 | vnc_display_setup_auth(VncDisplay *vs,
bool password,
bool sasl,
bool tls,
bool x509,
bool websocket)
{
... | {
"code": [
" } else {",
" } else {",
" } else {",
" } else {",
" } else {",
" } else {",
" } else {",
" bool tls,",
" bool x509,",
" bool websocket)",
" ... | FUNC_0(VncDisplay *VAR_0,
bool VAR_1,
bool VAR_2,
bool VAR_3,
bool VAR_4,
bool VAR_5)
{
if (VAR_... | [
"FUNC_0(VncDisplay *VAR_0,\nbool VAR_1,\nbool VAR_2,\nbool VAR_3,\nbool VAR_4,\nbool VAR_5)\n{",
"if (VAR_1) {",
"if (VAR_3) {",
"VAR_0->auth = VNC_AUTH_VENCRYPT;",
"if (VAR_5) {",
"VAR_0->ws_tls = true;",
"}",
"if (VAR_4) {",
"VNC_DEBUG(\"Initializing VNC server with VAR_4 VAR_1 auth\\n\");",
"VA... | [
1,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11,
13
],
[
109
],
[
111
],
[
113
],
[
115
],
[
117
],
[
119
],
[
121
],
[
123
],
[
125
],
[
127
],
[
129
],
[
131
],
[
133
],
[
135
],
[
137
],
[
... |
7,737 | static av_cold int peak_init_writer(AVFormatContext *s)
{
WAVMuxContext *wav = s->priv_data;
AVCodecContext *enc = s->streams[0]->codec;
if (enc->codec_id != AV_CODEC_ID_PCM_S8 &&
enc->codec_id != AV_CODEC_ID_PCM_S16LE &&
enc->codec_id != AV_CODEC_ID_PCM_U8 &&
enc->codec_id ... | true | FFmpeg | 501158c682ceb7546d71209374dac406a7f43238 | static av_cold int peak_init_writer(AVFormatContext *s)
{
WAVMuxContext *wav = s->priv_data;
AVCodecContext *enc = s->streams[0]->codec;
if (enc->codec_id != AV_CODEC_ID_PCM_S8 &&
enc->codec_id != AV_CODEC_ID_PCM_S16LE &&
enc->codec_id != AV_CODEC_ID_PCM_U8 &&
enc->codec_id ... | {
"code": [
" if (!wav->peak_maxpos)",
" goto nomem;",
" if (!wav->peak_maxneg)",
" goto nomem;",
" if (!wav->peak_output)"
],
"line_no": [
47,
49,
53,
49,
61
]
} | static av_cold int FUNC_0(AVFormatContext *s)
{
WAVMuxContext *wav = s->priv_data;
AVCodecContext *enc = s->streams[0]->codec;
if (enc->codec_id != AV_CODEC_ID_PCM_S8 &&
enc->codec_id != AV_CODEC_ID_PCM_S16LE &&
enc->codec_id != AV_CODEC_ID_PCM_U8 &&
enc->codec_id != AV_CODE... | [
"static av_cold int FUNC_0(AVFormatContext *s)\n{",
"WAVMuxContext *wav = s->priv_data;",
"AVCodecContext *enc = s->streams[0]->codec;",
"if (enc->codec_id != AV_CODEC_ID_PCM_S8 &&\nenc->codec_id != AV_CODEC_ID_PCM_S16LE &&\nenc->codec_id != AV_CODEC_ID_PCM_U8 &&\nenc->codec_id != AV_CODEC_ID_PCM_U16LE) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13,
15,
17
],
[
19,
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
45
],
[
47,
49
],
[
51
],
[
53,
55
],
... |
7,738 | static int grow_refcount_table(BlockDriverState *bs, int min_size)
{
BDRVQcowState *s = bs->opaque;
int new_table_size, new_table_size2, refcount_table_clusters, i, ret;
uint64_t *new_table;
int64_t table_offset;
uint8_t data[12];
int old_table_size;
int64_t old_table_offset;
... | true | qemu | 92dcb59fd4e1491afa0756ee9c2594869b487d23 | static int grow_refcount_table(BlockDriverState *bs, int min_size)
{
BDRVQcowState *s = bs->opaque;
int new_table_size, new_table_size2, refcount_table_clusters, i, ret;
uint64_t *new_table;
int64_t table_offset;
uint8_t data[12];
int old_table_size;
int64_t old_table_offset;
... | {
"code": [
"static int grow_refcount_table(BlockDriverState *bs, int min_size)",
" int new_table_size, new_table_size2, refcount_table_clusters, i, ret;",
" uint64_t *new_table;",
" int64_t table_offset;",
" uint8_t data[12];",
" int old_table_size;",
" int64_t old_table... | static int FUNC_0(BlockDriverState *VAR_0, int VAR_1)
{
BDRVQcowState *s = VAR_0->opaque;
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;
uint64_t *new_table;
int64_t table_offset;
uint8_t data[12];
int VAR_7;
int64_t old_table_offset;
if (VAR_1 <= s->refcount_table_size)
retu... | [
"static int FUNC_0(BlockDriverState *VAR_0, int VAR_1)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;",
"uint64_t *new_table;",
"int64_t table_offset;",
"uint8_t data[12];",
"int VAR_7;",
"int64_t old_table_offset;",
"if (VAR_1 <= s->refcount_table_size)\nreturn 0;... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
0,
1,
0,
1,
1,
1,
0,
0,
0,
1,
1,
0,
1,
0,
1,
0,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
27
],
[
29,
31,
33,
35
],
[
37,
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
53
... |
7,739 | static void vnc_dpy_switch(DisplayChangeListener *dcl,
DisplaySurface *surface)
{
VncDisplay *vd = container_of(dcl, VncDisplay, dcl);
VncState *vs;
vnc_abort_display_jobs(vd);
/* server surface */
qemu_pixman_image_unref(vd->server);
vd->ds = surface;
... | true | qemu | bea60dd7679364493a0d7f5b54316c767cf894ef | static void vnc_dpy_switch(DisplayChangeListener *dcl,
DisplaySurface *surface)
{
VncDisplay *vd = container_of(dcl, VncDisplay, dcl);
VncState *vs;
vnc_abort_display_jobs(vd);
qemu_pixman_image_unref(vd->server);
vd->ds = surface;
vd->server = pixman... | {
"code": [
" VncDisplay *vd = container_of(dcl, VncDisplay, dcl);",
" surface_width(vd->ds),",
" surface_height(vd->ds),",
" NULL, 0);",
" VNC_SET_VISIBLE_PIXELS_DIRTY(... | static void FUNC_0(DisplayChangeListener *VAR_0,
DisplaySurface *VAR_1)
{
VncDisplay *vd = container_of(VAR_0, VncDisplay, VAR_0);
VncState *vs;
vnc_abort_display_jobs(vd);
qemu_pixman_image_unref(vd->server);
vd->ds = VAR_1;
vd->server = pixman_image... | [
"static void FUNC_0(DisplayChangeListener *VAR_0,\nDisplaySurface *VAR_1)\n{",
"VncDisplay *vd = container_of(VAR_0, VncDisplay, VAR_0);",
"VncState *vs;",
"vnc_abort_display_jobs(vd);",
"qemu_pixman_image_unref(vd->server);",
"vd->ds = VAR_1;",
"vd->server = pixman_image_create_bits(VNC_SERVER_FB_FORMA... | [
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
19
],
[
21
],
[
23,
25,
27,
29
],
[
35,
37,
39
],
[
41,
43
],
[
45
],
[
47
],
[
49,
51,
53
],
[
57
],
[
59
],
[
61
],
[... |
7,740 | static int parse_video_var(AVFormatContext *avctx, AVStream *st, const char *name, int size)
{
AVIOContext *pb = avctx->pb;
if (!strcmp(name, "__DIR_COUNT")) {
st->nb_frames = st->duration = var_read_int(pb, size);
} else if (!strcmp(name, "COMPRESSION")) {
char * str = var_read_string... | true | FFmpeg | 4c9f35bb7c94d20455d3fca3a184b892f1a0aa4e | static int parse_video_var(AVFormatContext *avctx, AVStream *st, const char *name, int size)
{
AVIOContext *pb = avctx->pb;
if (!strcmp(name, "__DIR_COUNT")) {
st->nb_frames = st->duration = var_read_int(pb, size);
} else if (!strcmp(name, "COMPRESSION")) {
char * str = var_read_string... | {
"code": [
" st->time_base = av_inv_q(var_read_float(pb, size));"
],
"line_no": [
47
]
} | static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, const char *VAR_2, int VAR_3)
{
AVIOContext *pb = VAR_0->pb;
if (!strcmp(VAR_2, "__DIR_COUNT")) {
VAR_1->nb_frames = VAR_1->duration = var_read_int(pb, VAR_3);
} else if (!strcmp(VAR_2, "COMPRESSION")) {
char * VAR_4 = var_read... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, const char *VAR_2, int VAR_3)\n{",
"AVIOContext *pb = VAR_0->pb;",
"if (!strcmp(VAR_2, \"__DIR_COUNT\")) {",
"VAR_1->nb_frames = VAR_1->duration = var_read_int(pb, VAR_3);",
"} else if (!strcmp(VAR_2, \"COMPRESSION\")) {",
"char * VAR_4 = var_rea... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
... |
7,741 | static int uhci_handle_td(UHCIState *s, UHCIQueue *q, uint32_t qh_addr,
UHCI_TD *td, uint32_t td_addr, uint32_t *int_mask)
{
int ret, max_len;
bool spd;
bool queuing = (q != NULL);
uint8_t pid = td->token & 0xff;
UHCIAsync *async;
switch (pid) {
case USB_... | true | qemu | f419a626c76bcb26697883af702862e8623056f9 | static int uhci_handle_td(UHCIState *s, UHCIQueue *q, uint32_t qh_addr,
UHCI_TD *td, uint32_t td_addr, uint32_t *int_mask)
{
int ret, max_len;
bool spd;
bool queuing = (q != NULL);
uint8_t pid = td->token & 0xff;
UHCIAsync *async;
switch (pid) {
case USB_... | {
"code": [
" switch (pid) {",
" case USB_TOKEN_OUT:",
" case USB_TOKEN_SETUP:",
" case USB_TOKEN_IN:",
" break;",
" default:",
" s->status |= UHCI_STS_HCPERR;",
" s->cmd &= ~UHCI_CMD_RS;",
" uhci_update_irq(s);",
" return TD_RE... | static int FUNC_0(UHCIState *VAR_0, UHCIQueue *VAR_1, uint32_t VAR_2,
UHCI_TD *VAR_3, uint32_t VAR_4, uint32_t *VAR_5)
{
int VAR_6, VAR_7;
bool spd;
bool queuing = (VAR_1 != NULL);
uint8_t pid = VAR_3->token & 0xff;
UHCIAsync *async;
switch (pid) {
case U... | [
"static int FUNC_0(UHCIState *VAR_0, UHCIQueue *VAR_1, uint32_t VAR_2,\nUHCI_TD *VAR_3, uint32_t VAR_4, uint32_t *VAR_5)\n{",
"int VAR_6, VAR_7;",
"bool spd;",
"bool queuing = (VAR_1 != NULL);",
"uint8_t pid = VAR_3->token & 0xff;",
"UHCIAsync *async;",
"switch (pid) {",
"case USB_TOKEN_OUT:\ncase USB... | [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23,
25,
27
],
[
29,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
7,742 | void do_405_check_ov (void)
{
if (likely(((T1 ^ T2) >> 31) || !((T0 ^ T2) >> 31))) {
xer_ov = 0;
} else {
xer_ov = 1;
xer_so = 1;
}
}
| true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | void do_405_check_ov (void)
{
if (likely(((T1 ^ T2) >> 31) || !((T0 ^ T2) >> 31))) {
xer_ov = 0;
} else {
xer_ov = 1;
xer_so = 1;
}
}
| {
"code": [
" } else {",
" } else {",
" } else {",
" xer_ov = 0;",
" } else {",
" xer_so = 1;",
" xer_ov = 1;",
" } else {",
" xer_ov = 0;",
" } else {",
" xer_so = 1;",
" xer_ov = 1;",
" xer_ov = 0;... | void FUNC_0 (void)
{
if (likely(((T1 ^ T2) >> 31) || !((T0 ^ T2) >> 31))) {
xer_ov = 0;
} else {
xer_ov = 1;
xer_so = 1;
}
}
| [
"void FUNC_0 (void)\n{",
"if (likely(((T1 ^ T2) >> 31) || !((T0 ^ T2) >> 31))) {",
"xer_ov = 0;",
"} else {",
"xer_ov = 1;",
"xer_so = 1;",
"}",
"}"
] | [
0,
1,
1,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
7,743 | static int milkymist_minimac2_init(SysBusDevice *sbd)
{
DeviceState *dev = DEVICE(sbd);
MilkymistMinimac2State *s = MILKYMIST_MINIMAC2(dev);
size_t buffers_size = TARGET_PAGE_ALIGN(3 * MINIMAC2_BUFFER_SIZE);
sysbus_init_irq(sbd, &s->rx_irq);
sysbus_init_irq(sbd, &s->tx_irq);
memory_re... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | static int milkymist_minimac2_init(SysBusDevice *sbd)
{
DeviceState *dev = DEVICE(sbd);
MilkymistMinimac2State *s = MILKYMIST_MINIMAC2(dev);
size_t buffers_size = TARGET_PAGE_ALIGN(3 * MINIMAC2_BUFFER_SIZE);
sysbus_init_irq(sbd, &s->rx_irq);
sysbus_init_irq(sbd, &s->tx_irq);
memory_re... | {
"code": [
" buffers_size, &error_abort);"
],
"line_no": [
31
]
} | static int FUNC_0(SysBusDevice *VAR_0)
{
DeviceState *dev = DEVICE(VAR_0);
MilkymistMinimac2State *s = MILKYMIST_MINIMAC2(dev);
size_t buffers_size = TARGET_PAGE_ALIGN(3 * MINIMAC2_BUFFER_SIZE);
sysbus_init_irq(VAR_0, &s->rx_irq);
sysbus_init_irq(VAR_0, &s->tx_irq);
memory_region_init... | [
"static int FUNC_0(SysBusDevice *VAR_0)\n{",
"DeviceState *dev = DEVICE(VAR_0);",
"MilkymistMinimac2State *s = MILKYMIST_MINIMAC2(dev);",
"size_t buffers_size = TARGET_PAGE_ALIGN(3 * MINIMAC2_BUFFER_SIZE);",
"sysbus_init_irq(VAR_0, &s->rx_irq);",
"sysbus_init_irq(VAR_0, &s->tx_irq);",
"memory_region_ini... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19,
21
],
[
23
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
47
],
[
49,
51
],
[
53
],
[
57
],
[... |
7,744 | static void tcg_out_qemu_ld (TCGContext *s, const TCGArg *args, int opc)
{
int addr_reg, data_reg, data_reg2, r0, r1, rbase, bswap;
#ifdef CONFIG_SOFTMMU
int mem_index, s_bits, r2, addr_reg2;
uint8_t *label_ptr;
#endif
data_reg = *args++;
if (opc == 3)
data_reg2 = *args++;
el... | true | qemu | 8f50c841b374dc90ea604888ca92c37f469c428a | static void tcg_out_qemu_ld (TCGContext *s, const TCGArg *args, int opc)
{
int addr_reg, data_reg, data_reg2, r0, r1, rbase, bswap;
#ifdef CONFIG_SOFTMMU
int mem_index, s_bits, r2, addr_reg2;
uint8_t *label_ptr;
#endif
data_reg = *args++;
if (opc == 3)
data_reg2 = *args++;
el... | {
"code": [
" );",
" );",
" );",
"#if TARGET_LONG_BITS == 64",
"#endif",
" );",
" int addr_reg, data_reg, data_reg2, r0, r1, rbase, bswap;",
" int mem_index, s_bits, r2, addr_reg2;",
" data_reg = *args++;",
" if (opc == 3)",
" ... | static void FUNC_0 (TCGContext *VAR_0, const TCGArg *VAR_1, int VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
#ifdef CONFIG_SOFTMMU
int mem_index, s_bits, r2, addr_reg2;
uint8_t *label_ptr;
#endif
VAR_4 = *VAR_1++;
if (VAR_2 == 3)
VAR_5 = *VAR_1++;
else
... | [
"static void FUNC_0 (TCGContext *VAR_0, const TCGArg *VAR_1, int VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"#ifdef CONFIG_SOFTMMU\nint mem_index, s_bits, r2, addr_reg2;",
"uint8_t *label_ptr;",
"#endif\nVAR_4 = *VAR_1++;",
"if (VAR_2 == 3)\nVAR_5 = *VAR_1++;",
"else\nVAR_5 = 0;... | [
0,
1,
1,
0,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
1,
0,
0,
1,
0,
1,
1,
0,
0,
0,
1,
0,
1,
0,
1,
1,
0,
0,
1,
0,
1,
0,
0,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13,
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
31,
33,
35
],
[
37,
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
7,746 | static int url_connect(struct variant *var, AVDictionary *opts)
{
AVDictionary *tmp = NULL;
int ret;
av_dict_copy(&tmp, opts, 0);
av_opt_set_dict(var->input, &tmp);
if ((ret = ffurl_connect(var->input, NULL)) < 0) {
ffurl_close(var->input);
var->input = NULL;
}
... | false | FFmpeg | 74942685cb457c01937686892878403a409baf27 | static int url_connect(struct variant *var, AVDictionary *opts)
{
AVDictionary *tmp = NULL;
int ret;
av_dict_copy(&tmp, opts, 0);
av_opt_set_dict(var->input, &tmp);
if ((ret = ffurl_connect(var->input, NULL)) < 0) {
ffurl_close(var->input);
var->input = NULL;
}
... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct variant *VAR_0, AVDictionary *VAR_1)
{
AVDictionary *tmp = NULL;
int VAR_2;
av_dict_copy(&tmp, VAR_1, 0);
av_opt_set_dict(VAR_0->input, &tmp);
if ((VAR_2 = ffurl_connect(VAR_0->input, NULL)) < 0) {
ffurl_close(VAR_0->input);
VAR_0->input = NULL;... | [
"static int FUNC_0(struct variant *VAR_0, AVDictionary *VAR_1)\n{",
"AVDictionary *tmp = NULL;",
"int VAR_2;",
"av_dict_copy(&tmp, VAR_1, 0);",
"av_opt_set_dict(VAR_0->input, &tmp);",
"if ((VAR_2 = ffurl_connect(VAR_0->input, NULL)) < 0) {",
"ffurl_close(VAR_0->input);",
"VAR_0->input = NULL;",
"}",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
]
] |
7,747 | void test_self_modifying_code(void)
{
int (*func)(void);
func = (void *)code;
printf("self modifying code:\n");
printf("func1 = 0x%x\n", func());
code[1] = 0x2;
printf("func1 = 0x%x\n", func());
}
| false | qemu | d1fe2b245910d42715e556458afe7d975d9417ef | void test_self_modifying_code(void)
{
int (*func)(void);
func = (void *)code;
printf("self modifying code:\n");
printf("func1 = 0x%x\n", func());
code[1] = 0x2;
printf("func1 = 0x%x\n", func());
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
int (*VAR_0)(void);
VAR_0 = (void *)code;
printf("self modifying code:\n");
printf("func1 = 0x%x\n", VAR_0());
code[1] = 0x2;
printf("func1 = 0x%x\n", VAR_0());
}
| [
"void FUNC_0(void)\n{",
"int (*VAR_0)(void);",
"VAR_0 = (void *)code;",
"printf(\"self modifying code:\\n\");",
"printf(\"func1 = 0x%x\\n\", VAR_0());",
"code[1] = 0x2;",
"printf(\"func1 = 0x%x\\n\", VAR_0());",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
7,748 | static void fdt_add_psci_node(const VirtBoardInfo *vbi)
{
void *fdt = vbi->fdt;
ARMCPU *armcpu = ARM_CPU(qemu_get_cpu(0));
/* No PSCI for TCG yet */
if (kvm_enabled()) {
qemu_fdt_add_subnode(fdt, "/psci");
if (armcpu->psci_version == 2) {
const char comp[] = "arm,ps... | false | qemu | 863714ba6cdc09d1a84069815dc67c8da66b0a29 | static void fdt_add_psci_node(const VirtBoardInfo *vbi)
{
void *fdt = vbi->fdt;
ARMCPU *armcpu = ARM_CPU(qemu_get_cpu(0));
if (kvm_enabled()) {
qemu_fdt_add_subnode(fdt, "/psci");
if (armcpu->psci_version == 2) {
const char comp[] = "arm,psci-0.2\0arm,psci";
... | {
"code": [],
"line_no": []
} | static void FUNC_0(const VirtBoardInfo *VAR_0)
{
void *VAR_1 = VAR_0->VAR_1;
ARMCPU *armcpu = ARM_CPU(qemu_get_cpu(0));
if (kvm_enabled()) {
qemu_fdt_add_subnode(VAR_1, "/psci");
if (armcpu->psci_version == 2) {
const char VAR_2[] = "arm,psci-0.2\0arm,psci";
... | [
"static void FUNC_0(const VirtBoardInfo *VAR_0)\n{",
"void *VAR_1 = VAR_0->VAR_1;",
"ARMCPU *armcpu = ARM_CPU(qemu_get_cpu(0));",
"if (kvm_enabled()) {",
"qemu_fdt_add_subnode(VAR_1, \"/psci\");",
"if (armcpu->psci_version == 2) {",
"const char VAR_2[] = \"arm,psci-0.2\\0arm,psci\";",
"qemu_fdt_setpro... | [
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
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
]
] |
7,750 | static uint64_t ppc_radix64_walk_tree(PowerPCCPU *cpu, int rwx, vaddr eaddr,
uint64_t base_addr, uint64_t nls,
hwaddr *raddr, int *psize,
int *fault_cause, int *prot,
... | false | qemu | 6a042827b638dc73da6a72c72596f5be80bd4581 | static uint64_t ppc_radix64_walk_tree(PowerPCCPU *cpu, int rwx, vaddr eaddr,
uint64_t base_addr, uint64_t nls,
hwaddr *raddr, int *psize,
int *fault_cause, int *prot,
... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(PowerPCCPU *cpu, int rwx, vaddr eaddr,
uint64_t base_addr, uint64_t nls,
hwaddr *raddr, int *psize,
int *fault_cause, int *prot,
hwaddr *pte_... | [
"static uint64_t FUNC_0(PowerPCCPU *cpu, int rwx, vaddr eaddr,\nuint64_t base_addr, uint64_t nls,\nhwaddr *raddr, int *psize,\nint *fault_cause, int *prot,\nhwaddr *pte_addr)\n{",
"CPUState *cs = CPU(cpu);",
"uint64_t index, pde;",
"if (nls < 5) {",
"*fault_cause |= DSISR_R_BADCONFIG;",
"return 0;",
"}"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
53
],
[
55
],
[
57
... |
7,751 | static int cpu_mips_register (CPUMIPSState *env, const mips_def_t *def)
{
env->CP0_PRid = def->CP0_PRid;
env->CP0_Config0 = def->CP0_Config0;
#ifdef TARGET_WORDS_BIGENDIAN
env->CP0_Config0 |= (1 << CP0C0_BE);
#endif
env->CP0_Config1 = def->CP0_Config1;
env->CP0_Config2 = def->CP0_Config2;
... | false | qemu | 932e71cd57bab4e6206e1355c6425290721bbe34 | static int cpu_mips_register (CPUMIPSState *env, const mips_def_t *def)
{
env->CP0_PRid = def->CP0_PRid;
env->CP0_Config0 = def->CP0_Config0;
#ifdef TARGET_WORDS_BIGENDIAN
env->CP0_Config0 |= (1 << CP0C0_BE);
#endif
env->CP0_Config1 = def->CP0_Config1;
env->CP0_Config2 = def->CP0_Config2;
... | {
"code": [],
"line_no": []
} | static int FUNC_0 (CPUMIPSState *VAR_0, const mips_def_t *VAR_1)
{
VAR_0->CP0_PRid = VAR_1->CP0_PRid;
VAR_0->CP0_Config0 = VAR_1->CP0_Config0;
#ifdef TARGET_WORDS_BIGENDIAN
VAR_0->CP0_Config0 |= (1 << CP0C0_BE);
#endif
VAR_0->CP0_Config1 = VAR_1->CP0_Config1;
VAR_0->CP0_Config2 = VAR_1->CP0_... | [
"static int FUNC_0 (CPUMIPSState *VAR_0, const mips_def_t *VAR_1)\n{",
"VAR_0->CP0_PRid = VAR_1->CP0_PRid;",
"VAR_0->CP0_Config0 = VAR_1->CP0_Config0;",
"#ifdef TARGET_WORDS_BIGENDIAN\nVAR_0->CP0_Config0 |= (1 << CP0C0_BE);",
"#endif\nVAR_0->CP0_Config1 = VAR_1->CP0_Config1;",
"VAR_0->CP0_Config2 = VAR_1-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[... |
7,752 | static void scsi_write_do_fua(SCSIDiskReq *r)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev);
if (r->req.io_canceled) {
scsi_req_cancel_complete(&r->req);
goto done;
}
if (scsi_is_cmd_fua(&r->req.cmd)) {
block_acct_start(bdrv_get_stats(s->qdev.conf.bs... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static void scsi_write_do_fua(SCSIDiskReq *r)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev);
if (r->req.io_canceled) {
scsi_req_cancel_complete(&r->req);
goto done;
}
if (scsi_is_cmd_fua(&r->req.cmd)) {
block_acct_start(bdrv_get_stats(s->qdev.conf.bs... | {
"code": [],
"line_no": []
} | static void FUNC_0(SCSIDiskReq *VAR_0)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0->req.dev);
if (VAR_0->req.io_canceled) {
scsi_req_cancel_complete(&VAR_0->req);
goto done;
}
if (scsi_is_cmd_fua(&VAR_0->req.cmd)) {
block_acct_start(bdrv_get_stats(s->qde... | [
"static void FUNC_0(SCSIDiskReq *VAR_0)\n{",
"SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, VAR_0->req.dev);",
"if (VAR_0->req.io_canceled) {",
"scsi_req_cancel_complete(&VAR_0->req);",
"goto done;",
"}",
"if (scsi_is_cmd_fua(&VAR_0->req.cmd)) {",
"block_acct_start(bdrv_get_stats(s->qdev.conf.bs),... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
37,
39
],
[
41
]
] |
7,753 | static uint32_t m5206_mbar_readb(void *opaque, target_phys_addr_t offset)
{
m5206_mbar_state *s = (m5206_mbar_state *)opaque;
offset &= 0x3ff;
if (offset >= 0x200) {
hw_error("Bad MBAR read offset 0x%x", (int)offset);
}
if (m5206_mbar_width[offset >> 2] > 1) {
uint16_t val;
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint32_t m5206_mbar_readb(void *opaque, target_phys_addr_t offset)
{
m5206_mbar_state *s = (m5206_mbar_state *)opaque;
offset &= 0x3ff;
if (offset >= 0x200) {
hw_error("Bad MBAR read offset 0x%x", (int)offset);
}
if (m5206_mbar_width[offset >> 2] > 1) {
uint16_t val;
... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset)
{
m5206_mbar_state *s = (m5206_mbar_state *)opaque;
offset &= 0x3ff;
if (offset >= 0x200) {
hw_error("Bad MBAR read offset 0x%x", (int)offset);
}
if (m5206_mbar_width[offset >> 2] > 1) {
uint16_t val;
va... | [
"static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset)\n{",
"m5206_mbar_state *s = (m5206_mbar_state *)opaque;",
"offset &= 0x3ff;",
"if (offset >= 0x200) {",
"hw_error(\"Bad MBAR read offset 0x%x\", (int)offset);",
"}",
"if (m5206_mbar_width[offset >> 2] > 1) {",
"uint16_t val;",
"val = m... | [
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
]
] |
7,755 | void HELPER(mvpg)(CPUS390XState *env, uint64_t r0, uint64_t r1, uint64_t r2)
{
/* XXX missing r0 handling */
env->cc_op = 0;
#ifdef CONFIG_USER_ONLY
memmove(g2h(r1), g2h(r2), TARGET_PAGE_SIZE);
#else
mvc_fast_memmove(env, TARGET_PAGE_SIZE, r1, r2);
#endif
}
| false | qemu | 6da528d14de29138ca5ac43d6d059889dd24f464 | void HELPER(mvpg)(CPUS390XState *env, uint64_t r0, uint64_t r1, uint64_t r2)
{
env->cc_op = 0;
#ifdef CONFIG_USER_ONLY
memmove(g2h(r1), g2h(r2), TARGET_PAGE_SIZE);
#else
mvc_fast_memmove(env, TARGET_PAGE_SIZE, r1, r2);
#endif
}
| {
"code": [],
"line_no": []
} | void FUNC_0(mvpg)(CPUS390XState *env, uint64_t r0, uint64_t r1, uint64_t r2)
{
env->cc_op = 0;
#ifdef CONFIG_USER_ONLY
memmove(g2h(r1), g2h(r2), TARGET_PAGE_SIZE);
#else
mvc_fast_memmove(env, TARGET_PAGE_SIZE, r1, r2);
#endif
}
| [
"void FUNC_0(mvpg)(CPUS390XState *env, uint64_t r0, uint64_t r1, uint64_t r2)\n{",
"env->cc_op = 0;",
"#ifdef CONFIG_USER_ONLY\nmemmove(g2h(r1), g2h(r2), TARGET_PAGE_SIZE);",
"#else\nmvc_fast_memmove(env, TARGET_PAGE_SIZE, r1, r2);",
"#endif\n}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9,
11
],
[
13,
15
],
[
17,
19
]
] |
7,756 | int64_t qmp_guest_fsfreeze_thaw(Error **err)
{
int ret;
GuestFsfreezeMountList mounts;
GuestFsfreezeMount *mount;
int fd, i = 0, logged;
QTAILQ_INIT(&mounts);
ret = guest_fsfreeze_build_mount_list(&mounts);
if (ret) {
error_set(err, QERR_QGA_COMMAND_FAILED,
... | false | qemu | f22d85e9e67262db34504f4079745f9843da6a92 | int64_t qmp_guest_fsfreeze_thaw(Error **err)
{
int ret;
GuestFsfreezeMountList mounts;
GuestFsfreezeMount *mount;
int fd, i = 0, logged;
QTAILQ_INIT(&mounts);
ret = guest_fsfreeze_build_mount_list(&mounts);
if (ret) {
error_set(err, QERR_QGA_COMMAND_FAILED,
... | {
"code": [],
"line_no": []
} | int64_t FUNC_0(Error **err)
{
int VAR_0;
GuestFsfreezeMountList mounts;
GuestFsfreezeMount *mount;
int VAR_1, VAR_2 = 0, VAR_3;
QTAILQ_INIT(&mounts);
VAR_0 = guest_fsfreeze_build_mount_list(&mounts);
if (VAR_0) {
error_set(err, QERR_QGA_COMMAND_FAILED,
"... | [
"int64_t FUNC_0(Error **err)\n{",
"int VAR_0;",
"GuestFsfreezeMountList mounts;",
"GuestFsfreezeMount *mount;",
"int VAR_1, VAR_2 = 0, VAR_3;",
"QTAILQ_INIT(&mounts);",
"VAR_0 = guest_fsfreeze_build_mount_list(&mounts);",
"if (VAR_0) {",
"error_set(err, QERR_QGA_COMMAND_FAILED,\n\"failed to enumerat... | [
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
75
],
[
77
],
[... |
7,757 | static av_cold int xwd_encode_init(AVCodecContext *avctx)
{
avctx->coded_frame = av_frame_alloc();
if (!avctx->coded_frame)
return AVERROR(ENOMEM);
return 0;
}
| false | FFmpeg | d6604b29ef544793479d7fb4e05ef6622bb3e534 | static av_cold int xwd_encode_init(AVCodecContext *avctx)
{
avctx->coded_frame = av_frame_alloc();
if (!avctx->coded_frame)
return AVERROR(ENOMEM);
return 0;
}
| {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
avctx->coded_frame = av_frame_alloc();
if (!avctx->coded_frame)
return AVERROR(ENOMEM);
return 0;
}
| [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"avctx->coded_frame = av_frame_alloc();",
"if (!avctx->coded_frame)\nreturn AVERROR(ENOMEM);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
13
],
[
15
]
] |
7,758 | bool cpu_exec_all(void)
{
int ret = 0;
if (next_cpu == NULL)
next_cpu = first_cpu;
for (; next_cpu != NULL && !exit_request; next_cpu = next_cpu->next_cpu) {
CPUState *env = next_cpu;
qemu_clock_enable(vm_clock,
(env->singlestep_enabled & SSTEP_N... | false | qemu | 3c638d0690a0b21c6acef7ce3132f821d8c1e25d | bool cpu_exec_all(void)
{
int ret = 0;
if (next_cpu == NULL)
next_cpu = first_cpu;
for (; next_cpu != NULL && !exit_request; next_cpu = next_cpu->next_cpu) {
CPUState *env = next_cpu;
qemu_clock_enable(vm_clock,
(env->singlestep_enabled & SSTEP_N... | {
"code": [],
"line_no": []
} | bool FUNC_0(void)
{
int VAR_0 = 0;
if (next_cpu == NULL)
next_cpu = first_cpu;
for (; next_cpu != NULL && !exit_request; next_cpu = next_cpu->next_cpu) {
CPUState *env = next_cpu;
qemu_clock_enable(vm_clock,
(env->singlestep_enabled & SSTEP_NOTIM... | [
"bool FUNC_0(void)\n{",
"int VAR_0 = 0;",
"if (next_cpu == NULL)\nnext_cpu = first_cpu;",
"for (; next_cpu != NULL && !exit_request; next_cpu = next_cpu->next_cpu) {",
"CPUState *env = next_cpu;",
"qemu_clock_enable(vm_clock,\n(env->singlestep_enabled & SSTEP_NOTIMER) == 0);",
"if (qemu_alarm_pending())... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
15
],
[
19,
21
],
[
25,
27
],
[
29,
31
],
[
33,
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
... |
7,759 | static inline void *alloc_code_gen_buffer(void)
{
int flags = MAP_PRIVATE | MAP_ANONYMOUS;
uintptr_t start = 0;
size_t size = tcg_ctx.code_gen_buffer_size;
void *buf;
/* Constrain the position of the buffer based on the host cpu.
Note that these addresses are chosen in concert with t... | false | qemu | 8bdf4997823126a39bd4c99e4b2283b02cc7865f | static inline void *alloc_code_gen_buffer(void)
{
int flags = MAP_PRIVATE | MAP_ANONYMOUS;
uintptr_t start = 0;
size_t size = tcg_ctx.code_gen_buffer_size;
void *buf;
# if defined(__PIE__) || defined(__PIC__)
# elif defined(__x86_64__) && defined(MAP_32BIT)
fl... | {
"code": [],
"line_no": []
} | static inline void *FUNC_0(void)
{
int VAR_0 = MAP_PRIVATE | MAP_ANONYMOUS;
uintptr_t start = 0;
size_t size = tcg_ctx.code_gen_buffer_size;
void *VAR_1;
# if defined(__PIE__) || defined(__PIC__)
# elif defined(__x86_64__) && defined(MAP_32BIT)
VAR_0 |= MAP_32... | [
"static inline void *FUNC_0(void)\n{",
"int VAR_0 = MAP_PRIVATE | MAP_ANONYMOUS;",
"uintptr_t start = 0;",
"size_t size = tcg_ctx.code_gen_buffer_size;",
"void *VAR_1;",
"# if defined(__PIE__) || defined(__PIC__)\n# elif defined(__x86_64__) && defined(MAP_32BIT)\nVAR_0 |= MAP_32BIT;",
"if (size > 800u *... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
21,
31,
37
],
[
41
],
[
43
],
[
45
],
[
47,
49
],
[
51,
53
],
[
55,
57,
59
],
[
61,
63
],
[
65,
67,
71,
73
],
[
75
... |
7,760 | size_t iov_from_buf(struct iovec *iov, unsigned int iov_cnt, size_t iov_off,
const void *buf, size_t size)
{
size_t iovec_off, buf_off;
unsigned int i;
iovec_off = 0;
buf_off = 0;
for (i = 0; i < iov_cnt && size; i++) {
if (iov_off < (iovec_off + iov[i].iov_len)... | false | qemu | 2278a69e7020d86a8c73a28474e7709d3e7d5081 | size_t iov_from_buf(struct iovec *iov, unsigned int iov_cnt, size_t iov_off,
const void *buf, size_t size)
{
size_t iovec_off, buf_off;
unsigned int i;
iovec_off = 0;
buf_off = 0;
for (i = 0; i < iov_cnt && size; i++) {
if (iov_off < (iovec_off + iov[i].iov_len)... | {
"code": [],
"line_no": []
} | size_t FUNC_0(struct iovec *iov, unsigned int iov_cnt, size_t iov_off,
const void *buf, size_t size)
{
size_t iovec_off, buf_off;
unsigned int VAR_0;
iovec_off = 0;
buf_off = 0;
for (VAR_0 = 0; VAR_0 < iov_cnt && size; VAR_0++) {
if (iov_off < (iovec_off + iov[V... | [
"size_t FUNC_0(struct iovec *iov, unsigned int iov_cnt, size_t iov_off,\nconst void *buf, size_t size)\n{",
"size_t iovec_off, buf_off;",
"unsigned int VAR_0;",
"iovec_off = 0;",
"buf_off = 0;",
"for (VAR_0 = 0; VAR_0 < iov_cnt && size; VAR_0++) {",
"if (iov_off < (iovec_off + iov[VAR_0].iov_len)) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
7,763 | static int eth_can_rx(NetClientState *nc)
{
struct xlx_ethlite *s = DO_UPCAST(NICState, nc, nc)->opaque;
int r;
r = !(s->regs[R_RX_CTRL0] & CTRL_S);
return r;
}
| false | qemu | 808fb9f277abda16601e9db938d29aeaf2548585 | static int eth_can_rx(NetClientState *nc)
{
struct xlx_ethlite *s = DO_UPCAST(NICState, nc, nc)->opaque;
int r;
r = !(s->regs[R_RX_CTRL0] & CTRL_S);
return r;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(NetClientState *VAR_0)
{
struct xlx_ethlite *VAR_1 = DO_UPCAST(NICState, VAR_0, VAR_0)->opaque;
int VAR_2;
VAR_2 = !(VAR_1->regs[R_RX_CTRL0] & CTRL_S);
return VAR_2;
}
| [
"static int FUNC_0(NetClientState *VAR_0)\n{",
"struct xlx_ethlite *VAR_1 = DO_UPCAST(NICState, VAR_0, VAR_0)->opaque;",
"int VAR_2;",
"VAR_2 = !(VAR_1->regs[R_RX_CTRL0] & CTRL_S);",
"return VAR_2;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
7,764 | static uint64_t exynos4210_pmu_read(void *opaque, target_phys_addr_t offset,
unsigned size)
{
Exynos4210PmuState *s = (Exynos4210PmuState *)opaque;
unsigned i;
const Exynos4210PmuReg *reg_p = exynos4210_pmu_regs;
for (i = 0; i < PMU_NUM_OF_REGISTERS; i++) {
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t exynos4210_pmu_read(void *opaque, target_phys_addr_t offset,
unsigned size)
{
Exynos4210PmuState *s = (Exynos4210PmuState *)opaque;
unsigned i;
const Exynos4210PmuReg *reg_p = exynos4210_pmu_regs;
for (i = 0; i < PMU_NUM_OF_REGISTERS; i++) {
... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset,
unsigned size)
{
Exynos4210PmuState *s = (Exynos4210PmuState *)opaque;
unsigned VAR_0;
const Exynos4210PmuReg *VAR_1 = exynos4210_pmu_regs;
for (VAR_0 = 0; VAR_0 < PMU_NUM_OF_REGISTERS; VAR_0++) {... | [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset,\nunsigned size)\n{",
"Exynos4210PmuState *s = (Exynos4210PmuState *)opaque;",
"unsigned VAR_0;",
"const Exynos4210PmuReg *VAR_1 = exynos4210_pmu_regs;",
"for (VAR_0 = 0; VAR_0 < PMU_NUM_OF_REGISTERS; VAR_0++) {",
"if (VAR_1->offset == offset... | [
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
]
] |
7,765 | static void simple_number(void)
{
int i;
struct {
const char *encoded;
int64_t decoded;
int skip;
} test_cases[] = {
{ "0", 0 },
{ "1234", 1234 },
{ "1", 1 },
{ "-32", -32 },
{ "-0", 0, .skip = 1 },
{ },
};
for ... | false | qemu | 0abfc4b885566eb41c3a4e1de5e2e105bdc062d9 | static void simple_number(void)
{
int i;
struct {
const char *encoded;
int64_t decoded;
int skip;
} test_cases[] = {
{ "0", 0 },
{ "1234", 1234 },
{ "1", 1 },
{ "-32", -32 },
{ "-0", 0, .skip = 1 },
{ },
};
for ... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
int VAR_0;
struct {
const char *encoded;
int64_t decoded;
int skip;
} VAR_1[] = {
{ "0", 0 },
{ "1234", 1234 },
{ "1", 1 },
{ "-32", -32 },
{ "-0", 0, .skip = 1 },
{ },
};
for (VAR_0 =... | [
"static void FUNC_0(void)\n{",
"int VAR_0;",
"struct {",
"const char *encoded;",
"int64_t decoded;",
"int skip;",
"} VAR_1[] = {",
"{ \"0\", 0 },",
"{ \"1234\", 1234 },",
"{ \"1\", 1 },",
"{ \"-32\", -32 },",
"{ \"-0\", 0, .skip = 1 },",
"{ },",
"};",
"for (VAR_0 = 0; VAR_1[VAR_0].encode... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
... |
7,767 | static int check_exception(int intno, int *error_code)
{
int first_contributory = env->old_exception == 0 ||
(env->old_exception >= 10 &&
env->old_exception <= 13);
int second_contributory = intno == 0 ||
(intno >=... | true | qemu | f55761a0c46583f4faf1d7595f4f41b35b15508b | static int check_exception(int intno, int *error_code)
{
int first_contributory = env->old_exception == 0 ||
(env->old_exception >= 10 &&
env->old_exception <= 13);
int second_contributory = intno == 0 ||
(intno >=... | {
"code": [
" if (env->old_exception == EXCP08_DBLE)",
" cpu_abort(env, \"triple fault\");"
],
"line_no": [
23,
25
]
} | static int FUNC_0(int VAR_0, int *VAR_1)
{
int VAR_2 = env->old_exception == 0 ||
(env->old_exception >= 10 &&
env->old_exception <= 13);
int VAR_3 = VAR_0 == 0 ||
(VAR_0 >= 10 && VAR_0 <= 13);
qemu_log_mask... | [
"static int FUNC_0(int VAR_0, int *VAR_1)\n{",
"int VAR_2 = env->old_exception == 0 ||\n(env->old_exception >= 10 &&\nenv->old_exception <= 13);",
"int VAR_3 = VAR_0 == 0 ||\n(VAR_0 >= 10 && VAR_0 <= 13);",
"qemu_log_mask(CPU_LOG_INT, \"FUNC_0 old: 0x%x new 0x%x\\n\",\nenv->old_exception, VAR_0);",
"if (env... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
11,
13
],
[
17,
19
],
[
23,
25
],
[
29,
31,
33
],
[
35
],
[
37
],
[
39
],
[
43,
45,
47
],
[
51
],
[
53
]
] |
7,768 | yuv2rgb48_1_c_template(SwsContext *c, const int32_t *buf0,
const int32_t *ubuf[2], const int32_t *vbuf[2],
const int32_t *abuf0, uint16_t *dest, int dstW,
int uvalpha, int y, enum PixelFormat target)
{
const int32_t *ubuf0 = ubuf[0], *ubuf1 =... | true | FFmpeg | 1ca7dc60d2f2cac8fce1bdb53d3d5bae195161b0 | yuv2rgb48_1_c_template(SwsContext *c, const int32_t *buf0,
const int32_t *ubuf[2], const int32_t *vbuf[2],
const int32_t *abuf0, uint16_t *dest, int dstW,
int uvalpha, int y, enum PixelFormat target)
{
const int32_t *ubuf0 = ubuf[0], *ubuf1 =... | {
"code": [
" *vbuf0 = vbuf[0], *vbuf1 = vbuf[1];",
" const int32_t *ubuf0 = ubuf[0], *ubuf1 = ubuf[1],",
" *vbuf0 = vbuf[0], *vbuf1 = vbuf[1];",
" *vbuf0 = vbuf[0], *vbuf1 = vbuf[1];"
],
"line_no": [
13,
11,
13,
13
]
} | FUNC_0(SwsContext *VAR_0, const int32_t *VAR_1,
const int32_t *VAR_2[2], const int32_t *VAR_3[2],
const int32_t *VAR_4, uint16_t *VAR_5, int VAR_6,
int VAR_7, int VAR_8, enum PixelFormat VAR_9)
{
const int32_t *VAR_10 = VAR_2[0], *ubuf1 = VAR... | [
"FUNC_0(SwsContext *VAR_0, const int32_t *VAR_1,\nconst int32_t *VAR_2[2], const int32_t *VAR_3[2],\nconst int32_t *VAR_4, uint16_t *VAR_5, int VAR_6,\nint VAR_7, int VAR_8, enum PixelFormat VAR_9)\n{",
"const int32_t *VAR_10 = VAR_2[0], *ubuf1 = VAR_2[1],\n*vbuf0 = VAR_3[0], *vbuf1 = VAR_3[1];",
"int VAR_11;",... | [
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
] | [
[
1,
3,
5,
7,
9
],
[
11,
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
... |
7,769 | static void mxf_read_pixel_layout(AVIOContext *pb, MXFDescriptor *descriptor)
{
int code, value, ofs = 0;
char layout[16] = {0}; /* not for printing, may end up not terminated on purpose */
do {
code = avio_r8(pb);
value = avio_r8(pb);
av_dlog(NULL, "pixel layout: code %#x\n... | true | FFmpeg | 1d22d269f54cc7e44f778bb6ffee96a172eb07a1 | static void mxf_read_pixel_layout(AVIOContext *pb, MXFDescriptor *descriptor)
{
int code, value, ofs = 0;
char layout[16] = {0};
do {
code = avio_r8(pb);
value = avio_r8(pb);
av_dlog(NULL, "pixel layout: code %#x\n", code);
if (ofs <= 14) {
layout[of... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVIOContext *VAR_0, MXFDescriptor *VAR_1)
{
int VAR_2, VAR_3, VAR_4 = 0;
char VAR_5[16] = {0};
do {
VAR_2 = avio_r8(VAR_0);
VAR_3 = avio_r8(VAR_0);
av_dlog(NULL, "pixel VAR_5: VAR_2 %#x\n", VAR_2);
if (VAR_4 <= 14) {
VAR_5[VAR_4++]... | [
"static void FUNC_0(AVIOContext *VAR_0, MXFDescriptor *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4 = 0;",
"char VAR_5[16] = {0};",
"do {",
"VAR_2 = avio_r8(VAR_0);",
"VAR_3 = avio_r8(VAR_0);",
"av_dlog(NULL, \"pixel VAR_5: VAR_2 %#x\\n\", VAR_2);",
"if (VAR_4 <= 14) {",
"VAR_5[VAR_4++] = VAR_2;",
"VAR_5[... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
]
] |
7,771 | static av_always_inline void rv40_weak_loop_filter(uint8_t *src,
const int step,
const ptrdiff_t stride,
const int filter_p1,
... | true | FFmpeg | 956472a3236cc8eaeba5147c55b51bde6005c898 | static av_always_inline void rv40_weak_loop_filter(uint8_t *src,
const int step,
const ptrdiff_t stride,
const int filter_p1,
... | {
"code": [
" t <<= 2;"
],
"line_no": [
57
]
} | static av_always_inline void FUNC_0(uint8_t *src,
const int step,
const ptrdiff_t stride,
const int filter_p1,
c... | [
"static av_always_inline void FUNC_0(uint8_t *src,\nconst int step,\nconst ptrdiff_t stride,\nconst int filter_p1,\nconst int filter_q1,\nconst int alpha,\nconst int beta,\nconst int lim_p0q0,\nconst int lim_q1,\nconst int lim_p1)\n{",
"const uint8_t *VAR_0 = ff_crop_tab + MAX_NEG_CROP;",
"int VAR_1, VAR_2, VAR... | [
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
] | [
[
1,
3,
5,
7,
9,
11,
13,
15,
17,
19,
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43,
45
],
[
49
],
[
51,
53
],
[
57
],
[
59,
61
... |
7,773 | static int tak_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *pkt)
{
TAKDecContext *s = avctx->priv_data;
AVFrame *frame = data;
ThreadFrame tframe = { .f = data };
GetBitContext *gb = &s->gb;
int chan, i, ret, hsize;
if (p... | true | FFmpeg | e4efd41b83e78c7f2ee3e74bee90226110743a8e | static int tak_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame_ptr, AVPacket *pkt)
{
TAKDecContext *s = avctx->priv_data;
AVFrame *frame = data;
ThreadFrame tframe = { .f = data };
GetBitContext *gb = &s->gb;
int chan, i, ret, hsize;
if (p... | {
"code": [
" decoded[i] *= 1 << s->sample_shift[chan];",
" samples[i] *= 1 << 8;"
],
"line_no": [
379,
463
]
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
TAKDecContext *s = VAR_0->priv_data;
AVFrame *frame = VAR_1;
ThreadFrame tframe = { .f = VAR_1 };
GetBitContext *gb = &s->gb;
int VAR_4, VAR_5, VAR_6, VAR_7;
if (VAR_3->... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"TAKDecContext *s = VAR_0->priv_data;",
"AVFrame *frame = VAR_1;",
"ThreadFrame tframe = { .f = VAR_1 };",
"GetBitContext *gb = &s->gb;",
"int VAR_4, VAR_5, VAR_6, VAR_7;",
"if (VAR_3->size < TAK_MIN_FRAME_HEAD... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25,
27
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[
51
],
[
55,
57
... |
7,774 | static int msnwc_tcp_read_packet(AVFormatContext *ctx, AVPacket *pkt)
{
AVIOContext *pb = ctx->pb;
uint16_t keyframe;
uint32_t size, timestamp;
avio_skip(pb, 1); /* one byte has been read ahead */
avio_skip(pb, 2);
avio_skip(pb, 2);
keyframe = avio_rl16(pb);
size = avio_rl32(p... | true | FFmpeg | 4dfbc7a7559ccab666a8fd39de4224eb4b02c768 | static int msnwc_tcp_read_packet(AVFormatContext *ctx, AVPacket *pkt)
{
AVIOContext *pb = ctx->pb;
uint16_t keyframe;
uint32_t size, timestamp;
avio_skip(pb, 1);
avio_skip(pb, 2);
avio_skip(pb, 2);
keyframe = avio_rl16(pb);
size = avio_rl32(pb);
avio_skip(pb, 4);
av... | {
"code": [
" if(!size || av_get_packet(pb, pkt, size) != size)",
" return -1;"
],
"line_no": [
31,
33
]
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
AVIOContext *pb = VAR_0->pb;
uint16_t keyframe;
uint32_t size, timestamp;
avio_skip(pb, 1);
avio_skip(pb, 2);
avio_skip(pb, 2);
keyframe = avio_rl16(pb);
size = avio_rl32(pb);
avio_skip(pb, 4);
avio_skip(p... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"AVIOContext *pb = VAR_0->pb;",
"uint16_t keyframe;",
"uint32_t size, timestamp;",
"avio_skip(pb, 1);",
"avio_skip(pb, 2);",
"avio_skip(pb, 2);",
"keyframe = avio_rl16(pb);",
"size = avio_rl32(pb);",
"avio_skip(pb, 4);",
"avio_skip... | [
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
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31,
33
],
[
37
],
[
41
],
[
43
],
[
45
],
[
53,
55
],
[
59
... |
7,775 | static int zerocodec_decode_frame(AVCodecContext *avctx, void *data,
int *data_size, AVPacket *avpkt)
{
ZeroCodecContext *zc = avctx->priv_data;
AVFrame *pic = avctx->coded_frame;
AVFrame *prev_pic = &zc->previous_frame;
z_stream *zstream = &zc->zstr... | true | FFmpeg | 4b70bba57ec9d61282e8b2b427d738dd44415652 | static int zerocodec_decode_frame(AVCodecContext *avctx, void *data,
int *data_size, AVPacket *avpkt)
{
ZeroCodecContext *zc = avctx->priv_data;
AVFrame *pic = avctx->coded_frame;
AVFrame *prev_pic = &zc->previous_frame;
z_stream *zstream = &zc->zstr... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
ZeroCodecContext *zc = VAR_0->priv_data;
AVFrame *pic = VAR_0->coded_frame;
AVFrame *prev_pic = &zc->previous_frame;
z_stream *zstream = &zc->zstream;
uint8_t *... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"ZeroCodecContext *zc = VAR_0->priv_data;",
"AVFrame *pic = VAR_0->coded_frame;",
"AVFrame *prev_pic = &zc->previous_frame;",
"z_stream *zstream = &zc->zstream;",
"uint8_t *prev, *dst;",
"int VAR_4, 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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
34
],
[
38
],
[
40
],
[
42
],
[
47
],
[
49
],
[
53
],
[
55
],
[... |
7,776 | bool virtio_scsi_handle_cmd_vq(VirtIOSCSI *s, VirtQueue *vq)
{
VirtIOSCSIReq *req, *next;
int ret = 0;
bool progress = false;
QTAILQ_HEAD(, VirtIOSCSIReq) reqs = QTAILQ_HEAD_INITIALIZER(reqs);
virtio_scsi_acquire(s);
do {
virtio_queue_set_notification(vq, 0);
while... | true | qemu | 71407786054cad26de7ef66718b2a57a4bcb49b5 | bool virtio_scsi_handle_cmd_vq(VirtIOSCSI *s, VirtQueue *vq)
{
VirtIOSCSIReq *req, *next;
int ret = 0;
bool progress = false;
QTAILQ_HEAD(, VirtIOSCSIReq) reqs = QTAILQ_HEAD_INITIALIZER(reqs);
virtio_scsi_acquire(s);
do {
virtio_queue_set_notification(vq, 0);
while... | {
"code": [
" virtio_scsi_acquire(s);",
" virtio_scsi_release(s);",
" virtio_scsi_acquire(s);",
" virtio_scsi_release(s);",
" virtio_scsi_acquire(s);",
" virtio_scsi_release(s);",
" virtio_scsi_acquire(s);",
" virtio_scsi_release(s);"
],
"line_no": [
17,... | bool FUNC_0(VirtIOSCSI *s, VirtQueue *vq)
{
VirtIOSCSIReq *req, *next;
int VAR_0 = 0;
bool progress = false;
QTAILQ_HEAD(, VirtIOSCSIReq) reqs = QTAILQ_HEAD_INITIALIZER(reqs);
virtio_scsi_acquire(s);
do {
virtio_queue_set_notification(vq, 0);
while ((req = virtio_s... | [
"bool FUNC_0(VirtIOSCSI *s, VirtQueue *vq)\n{",
"VirtIOSCSIReq *req, *next;",
"int VAR_0 = 0;",
"bool progress = false;",
"QTAILQ_HEAD(, VirtIOSCSIReq) reqs = QTAILQ_HEAD_INITIALIZER(reqs);",
"virtio_scsi_acquire(s);",
"do {",
"virtio_queue_set_notification(vq, 0);",
"while ((req = virtio_scsi_pop_r... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
7,778 | int ff_vda_create_decoder(struct vda_context *vda_ctx,
uint8_t *extradata,
int extradata_size)
{
OSStatus status = kVDADecoderNoErr;
CFNumberRef height;
CFNumberRef width;
CFNumberRef format;
CFDataRef avc_data;
CFMutableDictionaryRef ... | false | FFmpeg | 67afcefb35932b420998f6f3fda46c7c85848a3f | int ff_vda_create_decoder(struct vda_context *vda_ctx,
uint8_t *extradata,
int extradata_size)
{
OSStatus status = kVDADecoderNoErr;
CFNumberRef height;
CFNumberRef width;
CFNumberRef format;
CFDataRef avc_data;
CFMutableDictionaryRef ... | {
"code": [],
"line_no": []
} | int FUNC_0(struct vda_context *VAR_0,
uint8_t *VAR_1,
int VAR_2)
{
OSStatus status = kVDADecoderNoErr;
CFNumberRef height;
CFNumberRef width;
CFNumberRef format;
CFDataRef avc_data;
CFMutableDictionaryRef config_info;
CFMutableDic... | [
"int FUNC_0(struct vda_context *VAR_0,\nuint8_t *VAR_1,\nint VAR_2)\n{",
"OSStatus status = kVDADecoderNoErr;",
"CFNumberRef height;",
"CFNumberRef width;",
"CFNumberRef format;",
"CFDataRef avc_data;",
"CFMutableDictionaryRef config_info;",
"CFMutableDictionaryRef buffer_attributes;",
"CFMutableDic... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
41,
43
],
[
47
],
[
51
],
[
55
],
[
59
],
[
61
],
[... |
7,781 | static int qcow2_check(BlockDriverState *bs, BdrvCheckResult *result,
BdrvCheckMode fix)
{
return qcow2_check_refcounts(bs, result, fix);
}
| false | qemu | acbe59829e448aa63bdccc6ee484b7e1ac605e25 | static int qcow2_check(BlockDriverState *bs, BdrvCheckResult *result,
BdrvCheckMode fix)
{
return qcow2_check_refcounts(bs, result, fix);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1,
BdrvCheckMode VAR_2)
{
return qcow2_check_refcounts(VAR_0, VAR_1, VAR_2);
}
| [
"static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1,\nBdrvCheckMode VAR_2)\n{",
"return qcow2_check_refcounts(VAR_0, VAR_1, VAR_2);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
7,783 | bool memory_region_present(MemoryRegion *parent, hwaddr addr)
{
MemoryRegion *mr = memory_region_find(parent, addr, 1).mr;
if (!mr) {
return false;
}
memory_region_unref(mr);
return true;
}
| false | qemu | 8e46bbf362458fc3e4638a53249248a1ee40b912 | bool memory_region_present(MemoryRegion *parent, hwaddr addr)
{
MemoryRegion *mr = memory_region_find(parent, addr, 1).mr;
if (!mr) {
return false;
}
memory_region_unref(mr);
return true;
}
| {
"code": [],
"line_no": []
} | bool FUNC_0(MemoryRegion *parent, hwaddr addr)
{
MemoryRegion *mr = memory_region_find(parent, addr, 1).mr;
if (!mr) {
return false;
}
memory_region_unref(mr);
return true;
}
| [
"bool FUNC_0(MemoryRegion *parent, hwaddr addr)\n{",
"MemoryRegion *mr = memory_region_find(parent, addr, 1).mr;",
"if (!mr) {",
"return false;",
"}",
"memory_region_unref(mr);",
"return true;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
7,784 | static int nut_probe(AVProbeData *p) {
if (p->buf_size >= ID_LENGTH && !memcmp(p->buf, ID_STRING, ID_LENGTH)) return AVPROBE_SCORE_MAX;
return 0;
}
| false | FFmpeg | 87e8788680e16c51f6048af26f3f7830c35207a5 | static int nut_probe(AVProbeData *p) {
if (p->buf_size >= ID_LENGTH && !memcmp(p->buf, ID_STRING, ID_LENGTH)) return AVPROBE_SCORE_MAX;
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(AVProbeData *VAR_0) {
if (VAR_0->buf_size >= ID_LENGTH && !memcmp(VAR_0->buf, ID_STRING, ID_LENGTH)) return AVPROBE_SCORE_MAX;
return 0;
}
| [
"static int FUNC_0(AVProbeData *VAR_0) {",
"if (VAR_0->buf_size >= ID_LENGTH && !memcmp(VAR_0->buf, ID_STRING, ID_LENGTH)) return AVPROBE_SCORE_MAX;",
"return 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
7
],
[
9
]
] |
7,785 | static void check_native_list(QObject *qobj,
UserDefNativeListUnionKind kind)
{
QDict *qdict;
QList *qlist;
int i;
g_assert(qobj);
g_assert(qobject_type(qobj) == QTYPE_QDICT);
qdict = qobject_to_qdict(qobj);
g_assert(qdict);
g_assert(qdict_haskey... | false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void check_native_list(QObject *qobj,
UserDefNativeListUnionKind kind)
{
QDict *qdict;
QList *qlist;
int i;
g_assert(qobj);
g_assert(qobject_type(qobj) == QTYPE_QDICT);
qdict = qobject_to_qdict(qobj);
g_assert(qdict);
g_assert(qdict_haskey... | {
"code": [],
"line_no": []
} | static void FUNC_0(QObject *VAR_0,
UserDefNativeListUnionKind VAR_1)
{
QDict *qdict;
QList *qlist;
int VAR_2;
g_assert(VAR_0);
g_assert(qobject_type(VAR_0) == QTYPE_QDICT);
qdict = qobject_to_qdict(VAR_0);
g_assert(qdict);
g_assert(qdict_haskey(q... | [
"static void FUNC_0(QObject *VAR_0,\nUserDefNativeListUnionKind VAR_1)\n{",
"QDict *qdict;",
"QList *qlist;",
"int VAR_2;",
"g_assert(VAR_0);",
"g_assert(qobject_type(VAR_0) == QTYPE_QDICT);",
"qdict = qobject_to_qdict(VAR_0);",
"g_assert(qdict);",
"g_assert(qdict_haskey(qdict, \"data\"));",
"qlis... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31,
33,
35,
37,
39,
41,
43,
45,
55,
57
],
[
59
],
[
61
],
[
63
... |
7,787 | static void term_eol(void)
{
term_cmd_buf_index = term_cmd_buf_size;
}
| false | qemu | 7e2515e87c41e2e658aaed466e11cbdf1ea8bcb1 | static void term_eol(void)
{
term_cmd_buf_index = term_cmd_buf_size;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
term_cmd_buf_index = term_cmd_buf_size;
}
| [
"static void FUNC_0(void)\n{",
"term_cmd_buf_index = term_cmd_buf_size;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
7,788 | static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag,
uint32_t lun, void *hba_private)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);
SCSIRequest *req;
SCSIDiskReq *r;
req = scsi_req_alloc(&scsi_disk_reqops, &s->qdev, tag, lun, hba_privat... | false | qemu | 7285477ab11831b1cf56e45878a89170dd06d9b9 | static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag,
uint32_t lun, void *hba_private)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);
SCSIRequest *req;
SCSIDiskReq *r;
req = scsi_req_alloc(&scsi_disk_reqops, &s->qdev, tag, lun, hba_privat... | {
"code": [],
"line_no": []
} | static SCSIRequest *FUNC_0(SCSIDevice *d, uint32_t tag,
uint32_t lun, void *hba_private)
{
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);
SCSIRequest *req;
SCSIDiskReq *r;
req = scsi_req_alloc(&scsi_disk_reqops, &s->qdev, tag, lun, hba_private);
r... | [
"static SCSIRequest *FUNC_0(SCSIDevice *d, uint32_t tag,\nuint32_t lun, void *hba_private)\n{",
"SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);",
"SCSIRequest *req;",
"SCSIDiskReq *r;",
"req = scsi_req_alloc(&scsi_disk_reqops, &s->qdev, tag, lun, hba_private);",
"r = DO_UPCAST(SCSIDiskReq, req, req... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
7,789 | int main_loop_wait(int nonblocking)
{
int ret;
uint32_t timeout = UINT32_MAX;
int64_t timeout_ns;
if (nonblocking) {
timeout = 0;
}
/* poll any events */
g_array_set_size(gpollfds, 0); /* reset for new iteration */
/* XXX: separate device handlers from system ones *... | false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | int main_loop_wait(int nonblocking)
{
int ret;
uint32_t timeout = UINT32_MAX;
int64_t timeout_ns;
if (nonblocking) {
timeout = 0;
}
g_array_set_size(gpollfds, 0);
#ifdef CONFIG_SLIRP
slirp_pollfds_fill(gpollfds, &timeout);
#endif
if (timeout == UINT... | {
"code": [],
"line_no": []
} | int FUNC_0(int VAR_0)
{
int VAR_1;
uint32_t timeout = UINT32_MAX;
int64_t timeout_ns;
if (VAR_0) {
timeout = 0;
}
g_array_set_size(gpollfds, 0);
#ifdef CONFIG_SLIRP
slirp_pollfds_fill(gpollfds, &timeout);
#endif
if (timeout == UINT32_MAX) {
... | [
"int FUNC_0(int VAR_0)\n{",
"int VAR_1;",
"uint32_t timeout = UINT32_MAX;",
"int64_t timeout_ns;",
"if (VAR_0) {",
"timeout = 0;",
"}",
"g_array_set_size(gpollfds, 0);",
"#ifdef CONFIG_SLIRP\nslirp_pollfds_fill(gpollfds, &timeout);",
"#endif\nif (timeout == UINT32_MAX) {",
"timeout_ns = -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
],
[
23
],
[
27,
29
],
[
31,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47,
49,
51
],
[
55
],
[
57,
59
],
[... |
7,790 | int cpu_mips_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
int mmu_idx, int is_softmmu)
{
#if !defined(CONFIG_USER_ONLY)
target_phys_addr_t physical;
int prot;
#endif
int access_type;
int ret = 0;
#if 0
log_cpu_state(env, 0);
#endif
q... | false | qemu | d4c430a80f000d722bb70287af4d4c184a8d7006 | int cpu_mips_handle_mmu_fault (CPUState *env, target_ulong address, int rw,
int mmu_idx, int is_softmmu)
{
#if !defined(CONFIG_USER_ONLY)
target_phys_addr_t physical;
int prot;
#endif
int access_type;
int ret = 0;
#if 0
log_cpu_state(env, 0);
#endif
q... | {
"code": [],
"line_no": []
} | int FUNC_0 (CPUState *VAR_0, target_ulong VAR_1, int VAR_2,
int VAR_3, int VAR_4)
{
#if !defined(CONFIG_USER_ONLY)
target_phys_addr_t physical;
int VAR_5;
#endif
int VAR_6;
int VAR_7 = 0;
#if 0
log_cpu_state(VAR_0, 0);
#endif
qemu_log("%s pc " TARGET_... | [
"int FUNC_0 (CPUState *VAR_0, target_ulong VAR_1, int VAR_2,\nint VAR_3, int VAR_4)\n{",
"#if !defined(CONFIG_USER_ONLY)\ntarget_phys_addr_t physical;",
"int VAR_5;",
"#endif\nint VAR_6;",
"int VAR_7 = 0;",
"#if 0\nlog_cpu_state(VAR_0, 0);",
"#endif\nqemu_log(\"%s pc \" TARGET_FMT_lx \" ad \" TARGET_FMT... | [
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
],
[
43
],
[
45,
47
],
[
49,
51,
53
],
[
55,
57
],
[
59
],
[
61,
63,
65
... |
7,793 | static uint64_t vtd_context_cache_invalidate(IntelIOMMUState *s, uint64_t val)
{
uint64_t caig;
uint64_t type = val & VTD_CCMD_CIRG_MASK;
switch (type) {
case VTD_CCMD_GLOBAL_INVL:
VTD_DPRINTF(INV, "Global invalidation request");
caig = VTD_CCMD_GLOBAL_INVL_A;
break;
... | false | qemu | d92fa2dc6e42e8bd8470e69d85141176f98feaea | static uint64_t vtd_context_cache_invalidate(IntelIOMMUState *s, uint64_t val)
{
uint64_t caig;
uint64_t type = val & VTD_CCMD_CIRG_MASK;
switch (type) {
case VTD_CCMD_GLOBAL_INVL:
VTD_DPRINTF(INV, "Global invalidation request");
caig = VTD_CCMD_GLOBAL_INVL_A;
break;
... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(IntelIOMMUState *s, uint64_t val)
{
uint64_t caig;
uint64_t type = val & VTD_CCMD_CIRG_MASK;
switch (type) {
case VTD_CCMD_GLOBAL_INVL:
VTD_DPRINTF(INV, "Global invalidation request");
caig = VTD_CCMD_GLOBAL_INVL_A;
break;
case VTD_CCMD_DOM... | [
"static uint64_t FUNC_0(IntelIOMMUState *s, uint64_t val)\n{",
"uint64_t caig;",
"uint64_t type = val & VTD_CCMD_CIRG_MASK;",
"switch (type) {",
"case VTD_CCMD_GLOBAL_INVL:\nVTD_DPRINTF(INV, \"Global invalidation request\");",
"caig = VTD_CCMD_GLOBAL_INVL_A;",
"break;",
"case VTD_CCMD_DOMAIN_INVL:\nVT... | [
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
],
[
23,
25
],
[
27
],
[
29
],
[
33,
35
],
[
37
],
[
39
],
[
43,
45,
47
],
[
49
],
[
51
],
[
53
],
... |
7,794 | uint64_t HELPER(paired_cmpxchg64_le)(CPUARMState *env, uint64_t addr,
uint64_t new_lo, uint64_t new_hi)
{
uintptr_t ra = GETPC();
Int128 oldv, cmpv, newv;
bool success;
cmpv = int128_make128(env->exclusive_val, env->exclusive_high);
newv = int128_make128... | false | qemu | 2399d4e7cec22ecf1c51062d2ebfd45220dbaace | uint64_t HELPER(paired_cmpxchg64_le)(CPUARMState *env, uint64_t addr,
uint64_t new_lo, uint64_t new_hi)
{
uintptr_t ra = GETPC();
Int128 oldv, cmpv, newv;
bool success;
cmpv = int128_make128(env->exclusive_val, env->exclusive_high);
newv = int128_make128... | {
"code": [],
"line_no": []
} | uint64_t FUNC_0(paired_cmpxchg64_le)(CPUARMState *env, uint64_t addr,
uint64_t new_lo, uint64_t new_hi)
{
uintptr_t ra = GETPC();
Int128 oldv, cmpv, newv;
bool success;
cmpv = int128_make128(env->exclusive_val, env->exclusive_high);
newv = int128_make128... | [
"uint64_t FUNC_0(paired_cmpxchg64_le)(CPUARMState *env, uint64_t addr,\nuint64_t new_lo, uint64_t new_hi)\n{",
"uintptr_t ra = GETPC();",
"Int128 oldv, cmpv, newv;",
"bool success;",
"cmpv = int128_make128(env->exclusive_val, env->exclusive_high);",
"newv = int128_make128(new_lo, new_hi);",
"if (paralle... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
45,
49
],
[
51
],
[
53
],
[... |
7,795 | static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
AVCodecContext *avctx, const char *args,
uint8_t **poutbuf, int *poutbuf_size,
const uint8_t *buf, int buf_size,
... | false | FFmpeg | 2bb54b82b5094fd906aa28c0443be08c95662a31 | static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
AVCodecContext *avctx, const char *args,
uint8_t **poutbuf, int *poutbuf_size,
const uint8_t *buf, int buf_size,
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVBitStreamFilterContext *VAR_0,
AVCodecContext *VAR_1, const char *VAR_2,
uint8_t **VAR_3, int *VAR_4,
const uint8_t *VAR_5, int VAR_6,
int VAR_7)
{
H2... | [
"static int FUNC_0(AVBitStreamFilterContext *VAR_0,\nAVCodecContext *VAR_1, const char *VAR_2,\nuint8_t **VAR_3, int *VAR_4,\nconst uint8_t *VAR_5, int VAR_6,\nint VAR_7)\n{",
"H264BSFContext *ctx = VAR_0->priv_data;",
"int VAR_8;",
"uint8_t unit_type;",
"int32_t nal_size;",
"uint32_t cumul_size = 0;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
45
],
[
47,
49
],
[
53
],
[
55,
57
... |
7,796 | void qemu_notify_event(void)
{
/* Write 8 bytes to be compatible with eventfd. */
static const uint64_t val = 1;
ssize_t ret;
if (io_thread_fd == -1) {
return;
}
do {
ret = write(io_thread_fd, &val, sizeof(val));
} while (ret < 0 && errno == EINTR);
/* EAG... | false | qemu | 4c8d0d27676778febad3802a95218d5ceaca171e | void qemu_notify_event(void)
{
static const uint64_t val = 1;
ssize_t ret;
if (io_thread_fd == -1) {
return;
}
do {
ret = write(io_thread_fd, &val, sizeof(val));
} while (ret < 0 && errno == EINTR);
if (ret < 0 && errno != EAGAIN) {
fprintf(... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
static const uint64_t VAR_0 = 1;
ssize_t ret;
if (io_thread_fd == -1) {
return;
}
do {
ret = write(io_thread_fd, &VAR_0, sizeof(VAR_0));
} while (ret < 0 && errno == EINTR);
if (ret < 0 && errno != EAGAIN) {
fprintf(stder... | [
"void FUNC_0(void)\n{",
"static const uint64_t VAR_0 = 1;",
"ssize_t ret;",
"if (io_thread_fd == -1) {",
"return;",
"}",
"do {",
"ret = write(io_thread_fd, &VAR_0, sizeof(VAR_0));",
"} while (ret < 0 && errno == EINTR);",
"if (ret < 0 && errno != EAGAIN) {",
"fprintf(stderr, \"FUNC_0: write() fa... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
]
] |
7,798 | uint16_t virtio_get_cylinders(void)
{
return blk_cfg.geometry.cylinders;
}
| false | qemu | f04db28b86654d1c7ff805b40eff27bba6b0f686 | uint16_t virtio_get_cylinders(void)
{
return blk_cfg.geometry.cylinders;
}
| {
"code": [],
"line_no": []
} | uint16_t FUNC_0(void)
{
return blk_cfg.geometry.cylinders;
}
| [
"uint16_t FUNC_0(void)\n{",
"return blk_cfg.geometry.cylinders;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
7,799 | static int32_t scsi_send_command(SCSIRequest *req, uint8_t *buf)
{
SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req);
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);
int32_t len;
uint8_t command;
uint8_t *outbuf;
int rc;
command = buf[0];
outbuf = (uint8_t *)r->io... | false | qemu | fdaef06917100d97782df550c1807a1da054e27e | static int32_t scsi_send_command(SCSIRequest *req, uint8_t *buf)
{
SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req);
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);
int32_t len;
uint8_t command;
uint8_t *outbuf;
int rc;
command = buf[0];
outbuf = (uint8_t *)r->io... | {
"code": [],
"line_no": []
} | static int32_t FUNC_0(SCSIRequest *req, uint8_t *buf)
{
SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req);
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);
int32_t len;
uint8_t command;
uint8_t *outbuf;
int VAR_0;
command = buf[0];
outbuf = (uint8_t *)r->iov.iov_ba... | [
"static int32_t FUNC_0(SCSIRequest *req, uint8_t *buf)\n{",
"SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req);",
"SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);",
"int32_t len;",
"uint8_t command;",
"uint8_t *outbuf;",
"int VAR_0;",
"command = buf[0];",
"outbuf = (uint8_t *)r->iov.iov... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
47
],
[
51
... |
7,800 | static void test_qemu_strtoul_octal(void)
{
const char *str = "0123";
char f = 'X';
const char *endptr = &f;
unsigned long res = 999;
int err;
err = qemu_strtoul(str, &endptr, 8, &res);
g_assert_cmpint(err, ==, 0);
g_assert_cmpint(res, ==, 0123);
g_assert(endptr == str ... | false | qemu | bc7c08a2c375acb7ae4d433054415588b176d34c | static void test_qemu_strtoul_octal(void)
{
const char *str = "0123";
char f = 'X';
const char *endptr = &f;
unsigned long res = 999;
int err;
err = qemu_strtoul(str, &endptr, 8, &res);
g_assert_cmpint(err, ==, 0);
g_assert_cmpint(res, ==, 0123);
g_assert(endptr == str ... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
const char *VAR_0 = "0123";
char VAR_1 = 'X';
const char *VAR_2 = &VAR_1;
unsigned long VAR_3 = 999;
int VAR_4;
VAR_4 = qemu_strtoul(VAR_0, &VAR_2, 8, &VAR_3);
g_assert_cmpint(VAR_4, ==, 0);
g_assert_cmpint(VAR_3, ==, 0123);
g_assert(VAR_2 == ... | [
"static void FUNC_0(void)\n{",
"const char *VAR_0 = \"0123\";",
"char VAR_1 = 'X';",
"const char *VAR_2 = &VAR_1;",
"unsigned long VAR_3 = 999;",
"int VAR_4;",
"VAR_4 = qemu_strtoul(VAR_0, &VAR_2, 8, &VAR_3);",
"g_assert_cmpint(VAR_4, ==, 0);",
"g_assert_cmpint(VAR_3, ==, 0123);",
"g_assert(VAR_2 ... | [
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
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
7,801 | i2c_bus *i2c_init_bus(DeviceState *parent, const char *name)
{
i2c_bus *bus;
bus = FROM_QBUS(i2c_bus, qbus_create(BUS_TYPE_I2C, sizeof(i2c_bus),
parent, name));
register_savevm("i2c_bus", -1, 1, i2c_bus_save, i2c_bus_load, bus);
return bus;
}
| false | qemu | 10c4c98ab7dc18169b37b76f6ea5e60ebe65222b | i2c_bus *i2c_init_bus(DeviceState *parent, const char *name)
{
i2c_bus *bus;
bus = FROM_QBUS(i2c_bus, qbus_create(BUS_TYPE_I2C, sizeof(i2c_bus),
parent, name));
register_savevm("i2c_bus", -1, 1, i2c_bus_save, i2c_bus_load, bus);
return bus;
}
| {
"code": [],
"line_no": []
} | i2c_bus *FUNC_0(DeviceState *parent, const char *name)
{
i2c_bus *bus;
bus = FROM_QBUS(i2c_bus, qbus_create(BUS_TYPE_I2C, sizeof(i2c_bus),
parent, name));
register_savevm("i2c_bus", -1, 1, i2c_bus_save, i2c_bus_load, bus);
return bus;
}
| [
"i2c_bus *FUNC_0(DeviceState *parent, const char *name)\n{",
"i2c_bus *bus;",
"bus = FROM_QBUS(i2c_bus, qbus_create(BUS_TYPE_I2C, sizeof(i2c_bus),\nparent, name));",
"register_savevm(\"i2c_bus\", -1, 1, i2c_bus_save, i2c_bus_load, bus);",
"return bus;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
15
],
[
17
]
] |
7,802 | int msix_uninit(PCIDevice *dev, MemoryRegion *bar)
{
if (!(dev->cap_present & QEMU_PCI_CAP_MSIX))
return 0;
pci_del_capability(dev, PCI_CAP_ID_MSIX, MSIX_CAP_LENGTH);
dev->msix_cap = 0;
msix_free_irq_entries(dev);
dev->msix_entries_nr = 0;
memory_region_del_subregion(bar, &dev->m... | false | qemu | 44701ab71ad854e6be567a6294f4665f36651076 | int msix_uninit(PCIDevice *dev, MemoryRegion *bar)
{
if (!(dev->cap_present & QEMU_PCI_CAP_MSIX))
return 0;
pci_del_capability(dev, PCI_CAP_ID_MSIX, MSIX_CAP_LENGTH);
dev->msix_cap = 0;
msix_free_irq_entries(dev);
dev->msix_entries_nr = 0;
memory_region_del_subregion(bar, &dev->m... | {
"code": [],
"line_no": []
} | int FUNC_0(PCIDevice *VAR_0, MemoryRegion *VAR_1)
{
if (!(VAR_0->cap_present & QEMU_PCI_CAP_MSIX))
return 0;
pci_del_capability(VAR_0, PCI_CAP_ID_MSIX, MSIX_CAP_LENGTH);
VAR_0->msix_cap = 0;
msix_free_irq_entries(VAR_0);
VAR_0->msix_entries_nr = 0;
memory_region_del_subregion(VAR... | [
"int FUNC_0(PCIDevice *VAR_0, MemoryRegion *VAR_1)\n{",
"if (!(VAR_0->cap_present & QEMU_PCI_CAP_MSIX))\nreturn 0;",
"pci_del_capability(VAR_0, PCI_CAP_ID_MSIX, MSIX_CAP_LENGTH);",
"VAR_0->msix_cap = 0;",
"msix_free_irq_entries(VAR_0);",
"VAR_0->msix_entries_nr = 0;",
"memory_region_del_subregion(VAR_1,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
7,803 | static int rtmp_open(URLContext *s, const char *uri, int flags)
{
RTMPContext *rt = s->priv_data;
char proto[8], hostname[256], path[1024], auth[100], *fname;
char *old_app;
uint8_t buf[2048];
int port;
AVDictionary *opts = NULL;
int ret;
if (rt->listen_timeout > 0)
r... | false | FFmpeg | 02ac3398eb52679301028c2fd3ebad1b6261b4da | static int rtmp_open(URLContext *s, const char *uri, int flags)
{
RTMPContext *rt = s->priv_data;
char proto[8], hostname[256], path[1024], auth[100], *fname;
char *old_app;
uint8_t buf[2048];
int port;
AVDictionary *opts = NULL;
int ret;
if (rt->listen_timeout > 0)
r... | {
"code": [],
"line_no": []
} | static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2)
{
RTMPContext *rt = VAR_0->priv_data;
char VAR_3[8], VAR_4[256], VAR_5[1024], VAR_6[100], *VAR_7;
char *VAR_8;
uint8_t buf[2048];
int VAR_9;
AVDictionary *opts = NULL;
int VAR_10;
if (rt->listen_timeout > 0)
... | [
"static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2)\n{",
"RTMPContext *rt = VAR_0->priv_data;",
"char VAR_3[8], VAR_4[256], VAR_5[1024], VAR_6[100], *VAR_7;",
"char *VAR_8;",
"uint8_t buf[2048];",
"int VAR_9;",
"AVDictionary *opts = NULL;",
"int VAR_10;",
"if (rt->listen_timeout > 0)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31,
33,
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
7,804 | static always_inline void idct(uint8_t *dst, int stride, int16_t *input, int type)
{
int16_t *ip = input;
uint8_t *cm = cropTbl + MAX_NEG_CROP;
int A_, B_, C_, D_, _Ad, _Bd, _Cd, _Dd, E_, F_, G_, H_;
int _Ed, _Gd, _Add, _Bdd, _Fd, _Hd;
int i;
/* Inverse DCT on the rows now */
f... | false | FFmpeg | d26a9ea0df8c08faf1ed37041f4bc252db30f047 | static always_inline void idct(uint8_t *dst, int stride, int16_t *input, int type)
{
int16_t *ip = input;
uint8_t *cm = cropTbl + MAX_NEG_CROP;
int A_, B_, C_, D_, _Ad, _Bd, _Cd, _Dd, E_, F_, G_, H_;
int _Ed, _Gd, _Add, _Bdd, _Fd, _Hd;
int i;
for (i = 0; i < 8; i++) {
... | {
"code": [],
"line_no": []
} | static always_inline void FUNC_0(uint8_t *dst, int stride, int16_t *input, int type)
{
int16_t *ip = input;
uint8_t *cm = cropTbl + MAX_NEG_CROP;
int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;
int VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17;
in... | [
"static always_inline void FUNC_0(uint8_t *dst, int stride, int16_t *input, int type)\n{",
"int16_t *ip = input;",
"uint8_t *cm = cropTbl + MAX_NEG_CROP;",
"int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;",
"int VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17;",
"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
45
],
[
47
],
[
51
],
[
53
],
[
57
],
[
59... |
7,805 | static int seek_test(const char *input_filename, const char *start, const char *end)
{
AVCodec *codec = NULL;
AVCodecContext *ctx= NULL;
AVCodecParameters *origin_par = NULL;
AVFrame *fr = NULL;
AVFormatContext *fmt_ctx = NULL;
int video_stream;
int result;
int i, j;
long i... | false | FFmpeg | 7679c38b3b57125007aa67b009665c8d3e8d6bcc | static int seek_test(const char *input_filename, const char *start, const char *end)
{
AVCodec *codec = NULL;
AVCodecContext *ctx= NULL;
AVCodecParameters *origin_par = NULL;
AVFrame *fr = NULL;
AVFormatContext *fmt_ctx = NULL;
int video_stream;
int result;
int i, j;
long i... | {
"code": [],
"line_no": []
} | static int FUNC_0(const char *VAR_0, const char *VAR_1, const char *VAR_2)
{
AVCodec *codec = NULL;
AVCodecContext *ctx= NULL;
AVCodecParameters *origin_par = NULL;
AVFrame *fr = NULL;
AVFormatContext *fmt_ctx = NULL;
int VAR_3;
int VAR_4;
int VAR_5, VAR_6;
long int VAR_7, ... | [
"static int FUNC_0(const char *VAR_0, const char *VAR_1, const char *VAR_2)\n{",
"AVCodec *codec = NULL;",
"AVCodecContext *ctx= NULL;",
"AVCodecParameters *origin_par = NULL;",
"AVFrame *fr = NULL;",
"AVFormatContext *fmt_ctx = NULL;",
"int VAR_3;",
"int VAR_4;",
"int VAR_5, VAR_6;",
"long int 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,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
... |
7,806 | static int decode_gop_header(IVI45DecContext *ctx, AVCodecContext *avctx)
{
int result, i, p, tile_size, pic_size_indx, mb_size, blk_size;
int quant_mat, blk_size_changed = 0;
IVIBandDesc *band, *band1, *band2;
IVIPicConfig pic_conf;
ctx->gop_flags = get_bits(&... | false | FFmpeg | dc79685195a45c9b8b17d7b93d118e0aefa45462 | static int decode_gop_header(IVI45DecContext *ctx, AVCodecContext *avctx)
{
int result, i, p, tile_size, pic_size_indx, mb_size, blk_size;
int quant_mat, blk_size_changed = 0;
IVIBandDesc *band, *band1, *band2;
IVIPicConfig pic_conf;
ctx->gop_flags = get_bits(&... | {
"code": [],
"line_no": []
} | static int FUNC_0(IVI45DecContext *VAR_0, AVCodecContext *VAR_1)
{
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
int VAR_9, VAR_10 = 0;
IVIBandDesc *band, *band1, *band2;
IVIPicConfig pic_conf;
VAR_0->gop_flags = get_bits(&VAR_0->gb, 8);
VAR_0->go... | [
"static int FUNC_0(IVI45DecContext *VAR_0, AVCodecContext *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"int VAR_9, VAR_10 = 0;",
"IVIBandDesc *band, *band1, *band2;",
"IVIPicConfig pic_conf;",
"VAR_0->gop_flags = get_bits(&VAR_0->gb, 8);",
"VAR_0->g... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
23,
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53,
55
],
[
57
... |
7,807 | static int execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){
MpegEncContext * const s = &h->s;
int i, j;
int current_ref_assigned=0;
Picture *pic;
if((s->avctx->debug&FF_DEBUG_MMCO) && mmco_count==0)
av_log(h->s.avctx, AV_LOG_DEBUG, "no mmco here\n");
for(i=... | false | FFmpeg | 9296f5d81acb9b3f8d8870a78ded6e284a1f4f58 | static int execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){
MpegEncContext * const s = &h->s;
int i, j;
int current_ref_assigned=0;
Picture *pic;
if((s->avctx->debug&FF_DEBUG_MMCO) && mmco_count==0)
av_log(h->s.avctx, AV_LOG_DEBUG, "no mmco here\n");
for(i=... | {
"code": [],
"line_no": []
} | static int FUNC_0(H264Context *VAR_0, MMCO *VAR_1, int VAR_2){
MpegEncContext * const s = &VAR_0->s;
int VAR_3, VAR_4;
int VAR_5=0;
Picture *pic;
if((s->avctx->debug&FF_DEBUG_MMCO) && VAR_2==0)
av_log(VAR_0->s.avctx, AV_LOG_DEBUG, "no VAR_1 here\n");
for(VAR_3=0; VAR_3<VAR_2; ... | [
"static int FUNC_0(H264Context *VAR_0, MMCO *VAR_1, int VAR_2){",
"MpegEncContext * const s = &VAR_0->s;",
"int VAR_3, VAR_4;",
"int VAR_5=0;",
"Picture *pic;",
"if((s->avctx->debug&FF_DEBUG_MMCO) && VAR_2==0)\nav_log(VAR_0->s.avctx, AV_LOG_DEBUG, \"no VAR_1 here\\n\");",
"for(VAR_3=0; VAR_3<VAR_2; 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
],
[
13,
15
],
[
19
],
[
21
],
[
23,
25
],
[
29
],
[
31,
33,
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
... |
7,809 | void qmp_input_visitor_cleanup(QmpInputVisitor *v)
{
qobject_decref(v->stack[0].obj);
g_free(v);
}
| false | qemu | ce140b176920b5b65184020735a3c65ed3e9aeda | void qmp_input_visitor_cleanup(QmpInputVisitor *v)
{
qobject_decref(v->stack[0].obj);
g_free(v);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(QmpInputVisitor *VAR_0)
{
qobject_decref(VAR_0->stack[0].obj);
g_free(VAR_0);
}
| [
"void FUNC_0(QmpInputVisitor *VAR_0)\n{",
"qobject_decref(VAR_0->stack[0].obj);",
"g_free(VAR_0);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
7,810 | static void virtio_blk_set_status(VirtIODevice *vdev, uint8_t status)
{
VirtIOBlock *s = VIRTIO_BLK(vdev);
uint32_t features;
if (s->dataplane && !(status & (VIRTIO_CONFIG_S_DRIVER |
VIRTIO_CONFIG_S_DRIVER_OK))) {
virtio_blk_data_plane_stop(s->dataplane);
... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static void virtio_blk_set_status(VirtIODevice *vdev, uint8_t status)
{
VirtIOBlock *s = VIRTIO_BLK(vdev);
uint32_t features;
if (s->dataplane && !(status & (VIRTIO_CONFIG_S_DRIVER |
VIRTIO_CONFIG_S_DRIVER_OK))) {
virtio_blk_data_plane_stop(s->dataplane);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(VirtIODevice *VAR_0, uint8_t VAR_1)
{
VirtIOBlock *s = VIRTIO_BLK(VAR_0);
uint32_t features;
if (s->dataplane && !(VAR_1 & (VIRTIO_CONFIG_S_DRIVER |
VIRTIO_CONFIG_S_DRIVER_OK))) {
virtio_blk_data_plane_stop(s->dataplane);
}
i... | [
"static void FUNC_0(VirtIODevice *VAR_0, uint8_t VAR_1)\n{",
"VirtIOBlock *s = VIRTIO_BLK(VAR_0);",
"uint32_t features;",
"if (s->dataplane && !(VAR_1 & (VIRTIO_CONFIG_S_DRIVER |\nVIRTIO_CONFIG_S_DRIVER_OK))) {",
"virtio_blk_data_plane_stop(s->dataplane);",
"}",
"if (!(VAR_1 & VIRTIO_CONFIG_S_DRIVER_OK)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
63
],
[
65
],
[
67,
69
],
[
71
],
[
73
],
[
75
]
] |
7,811 | static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv,
int i, AVIOContext *pb)
{
AVStream *st = s->streams[i];
AVCodecContext *codec = st->codec;
ebml_master subinfo, track;
int native_id = 0;
int qt_id = 0;
int bit_depth = av_get_bits_per_samp... | false | FFmpeg | 51da7d02748cc54b7d009115e76efa940b99a8ef | static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv,
int i, AVIOContext *pb)
{
AVStream *st = s->streams[i];
AVCodecContext *codec = st->codec;
ebml_master subinfo, track;
int native_id = 0;
int qt_id = 0;
int bit_depth = av_get_bits_per_samp... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, MatroskaMuxContext *VAR_1,
int VAR_2, AVIOContext *VAR_3)
{
AVStream *st = VAR_0->streams[VAR_2];
AVCodecContext *codec = st->codec;
ebml_master subinfo, track;
int VAR_4 = 0;
int VAR_5 = 0;
int VAR_6 = av_get_bits_per_... | [
"static int FUNC_0(AVFormatContext *VAR_0, MatroskaMuxContext *VAR_1,\nint VAR_2, AVIOContext *VAR_3)\n{",
"AVStream *st = VAR_0->streams[VAR_2];",
"AVCodecContext *codec = st->codec;",
"ebml_master subinfo, track;",
"int VAR_4 = 0;",
"int VAR_5 = 0;",
"int VAR_6 = av_get_bits_per_sample(codec->codec_id... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
[
51,
53
],
[... |
7,812 | static int read_frame_data(ALSDecContext *ctx, unsigned int ra_frame)
{
ALSSpecificConfig *sconf = &ctx->sconf;
AVCodecContext *avctx = ctx->avctx;
GetBitContext *gb = &ctx->gb;
unsigned int div_blocks[32]; ///< block sizes.
unsigned int c;
unsigned int js_blocks[2];
... | false | FFmpeg | 7ea948bac31d9d15627466a73a07e96eb6049939 | static int read_frame_data(ALSDecContext *ctx, unsigned int ra_frame)
{
ALSSpecificConfig *sconf = &ctx->sconf;
AVCodecContext *avctx = ctx->avctx;
GetBitContext *gb = &ctx->gb;
unsigned int div_blocks[32];
unsigned int c;
unsigned int js_blocks[2];
uint32_t bs_i... | {
"code": [],
"line_no": []
} | static int FUNC_0(ALSDecContext *VAR_0, unsigned int VAR_1)
{
ALSSpecificConfig *sconf = &VAR_0->sconf;
AVCodecContext *avctx = VAR_0->avctx;
GetBitContext *gb = &VAR_0->gb;
unsigned int VAR_2[32];
unsigned int VAR_3;
unsigned int VAR_4[2];
uint32_t bs_info = 0;
... | [
"static int FUNC_0(ALSDecContext *VAR_0, unsigned int VAR_1)\n{",
"ALSSpecificConfig *sconf = &VAR_0->sconf;",
"AVCodecContext *avctx = VAR_0->avctx;",
"GetBitContext *gb = &VAR_0->gb;",
"unsigned int VAR_2[32];",
"unsigned int VAR_3;",
"unsigned int VAR_4[2];",
"uint32_t bs_info = 0;",
"if (scon... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
25,
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
55
],
[... |
7,813 | static void fw_cfg_bootsplash(FWCfgState *s)
{
int boot_splash_time = -1;
const char *boot_splash_filename = NULL;
char *p;
char *filename, *file_data;
gsize file_size;
int file_type;
const char *temp;
/* get user configuration */
QemuOptsList *plist = qemu_find_opts("boo... | false | qemu | ef1e1e0782e99c9dcf2b35e5310cdd8ca9211374 | static void fw_cfg_bootsplash(FWCfgState *s)
{
int boot_splash_time = -1;
const char *boot_splash_filename = NULL;
char *p;
char *filename, *file_data;
gsize file_size;
int file_type;
const char *temp;
QemuOptsList *plist = qemu_find_opts("boot-opts");
QemuOpts *opt... | {
"code": [],
"line_no": []
} | static void FUNC_0(FWCfgState *VAR_0)
{
int VAR_1 = -1;
const char *VAR_2 = NULL;
char *VAR_3;
char *VAR_4, *VAR_5;
gsize file_size;
int VAR_6;
const char *VAR_7;
QemuOptsList *plist = qemu_find_opts("boot-opts");
QemuOpts *opts = QTAILQ_FIRST(&plist->head);
if... | [
"static void FUNC_0(FWCfgState *VAR_0)\n{",
"int VAR_1 = -1;",
"const char *VAR_2 = NULL;",
"char *VAR_3;",
"char *VAR_4, *VAR_5;",
"gsize file_size;",
"int VAR_6;",
"const char *VAR_7;",
"QemuOptsList *plist = qemu_find_opts(\"boot-opts\");",
"QemuOpts *opts = QTAILQ_FIRST(&plist->head);",
"if ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
7,815 | int omap_validate_tipb_mpui_addr(struct omap_mpu_state_s *s,
target_phys_addr_t addr)
{
return addr >= 0xe1010000 && addr < 0xe1020004;
}
| false | qemu | b854bc196f5c4b4e3299c0b0ee63cf828ece9e77 | int omap_validate_tipb_mpui_addr(struct omap_mpu_state_s *s,
target_phys_addr_t addr)
{
return addr >= 0xe1010000 && addr < 0xe1020004;
}
| {
"code": [],
"line_no": []
} | int FUNC_0(struct omap_mpu_state_s *VAR_0,
target_phys_addr_t VAR_1)
{
return VAR_1 >= 0xe1010000 && VAR_1 < 0xe1020004;
}
| [
"int FUNC_0(struct omap_mpu_state_s *VAR_0,\ntarget_phys_addr_t VAR_1)\n{",
"return VAR_1 >= 0xe1010000 && VAR_1 < 0xe1020004;",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
7,816 | int tap_open(char *ifname, int ifname_size, int *vnet_hdr,
int vnet_hdr_required, int mq_required, Error **errp)
{
struct ifreq ifr;
int fd, ret;
int len = sizeof(struct virtio_net_hdr);
unsigned int features;
TFR(fd = open(PATH_NET_TUN, O_RDWR));
if (fd < 0) {
er... | false | qemu | 3dc6f8693694a649a9c83f1e2746565b47683923 | int tap_open(char *ifname, int ifname_size, int *vnet_hdr,
int vnet_hdr_required, int mq_required, Error **errp)
{
struct ifreq ifr;
int fd, ret;
int len = sizeof(struct virtio_net_hdr);
unsigned int features;
TFR(fd = open(PATH_NET_TUN, O_RDWR));
if (fd < 0) {
er... | {
"code": [],
"line_no": []
} | int FUNC_0(char *VAR_0, int VAR_1, int *VAR_2,
int VAR_3, int VAR_4, Error **VAR_5)
{
struct ifreq VAR_6;
int VAR_7, VAR_8;
int VAR_9 = sizeof(struct virtio_net_hdr);
unsigned int VAR_10;
TFR(VAR_7 = open(PATH_NET_TUN, O_RDWR));
if (VAR_7 < 0) {
error_setg_errno(V... | [
"int FUNC_0(char *VAR_0, int VAR_1, int *VAR_2,\nint VAR_3, int VAR_4, Error **VAR_5)\n{",
"struct ifreq VAR_6;",
"int VAR_7, VAR_8;",
"int VAR_9 = sizeof(struct virtio_net_hdr);",
"unsigned int VAR_10;",
"TFR(VAR_7 = open(PATH_NET_TUN, O_RDWR));",
"if (VAR_7 < 0) {",
"error_setg_errno(VAR_5, errno, \... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[... |
7,818 | static int vnc_refresh_server_surface(VncDisplay *vd)
{
int width = pixman_image_get_width(vd->guest.fb);
int height = pixman_image_get_height(vd->guest.fb);
int y;
uint8_t *guest_row;
uint8_t *server_row;
int cmp_bytes;
VncState *vs;
int has_dirty = 0;
pixman_image_t *tmpb... | false | qemu | bc210eb163b162ff2e94e5c8f4307715731257f8 | static int vnc_refresh_server_surface(VncDisplay *vd)
{
int width = pixman_image_get_width(vd->guest.fb);
int height = pixman_image_get_height(vd->guest.fb);
int y;
uint8_t *guest_row;
uint8_t *server_row;
int cmp_bytes;
VncState *vs;
int has_dirty = 0;
pixman_image_t *tmpb... | {
"code": [],
"line_no": []
} | static int FUNC_0(VncDisplay *VAR_0)
{
int VAR_7 = pixman_image_get_width(VAR_0->guest.fb);
int VAR_2 = pixman_image_get_height(VAR_0->guest.fb);
int VAR_3;
uint8_t *guest_row;
uint8_t *server_row;
int VAR_4;
VncState *vs;
int VAR_5 = 0;
pixman_image_t *tmpbuf = NULL;
... | [
"static int FUNC_0(VncDisplay *VAR_0)\n{",
"int VAR_7 = pixman_image_get_width(VAR_0->guest.fb);",
"int VAR_2 = pixman_image_get_height(VAR_0->guest.fb);",
"int VAR_3;",
"uint8_t *guest_row;",
"uint8_t *server_row;",
"int VAR_4;",
"VncState *vs;",
"int VAR_5 = 0;",
"pixman_image_t *tmpbuf = 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,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
... |
7,820 | QEMUTimer *qemu_new_timer(QEMUClock *clock, QEMUTimerCB *cb, void *opaque)
{
QEMUTimer *ts;
ts = qemu_mallocz(sizeof(QEMUTimer));
ts->clock = clock;
ts->cb = cb;
ts->opaque = opaque;
return ts;
}
| false | qemu | 4a998740b22aa673ea475060c787da7c545588cf | QEMUTimer *qemu_new_timer(QEMUClock *clock, QEMUTimerCB *cb, void *opaque)
{
QEMUTimer *ts;
ts = qemu_mallocz(sizeof(QEMUTimer));
ts->clock = clock;
ts->cb = cb;
ts->opaque = opaque;
return ts;
}
| {
"code": [],
"line_no": []
} | QEMUTimer *FUNC_0(QEMUClock *clock, QEMUTimerCB *cb, void *opaque)
{
QEMUTimer *ts;
ts = qemu_mallocz(sizeof(QEMUTimer));
ts->clock = clock;
ts->cb = cb;
ts->opaque = opaque;
return ts;
}
| [
"QEMUTimer *FUNC_0(QEMUClock *clock, QEMUTimerCB *cb, void *opaque)\n{",
"QEMUTimer *ts;",
"ts = qemu_mallocz(sizeof(QEMUTimer));",
"ts->clock = clock;",
"ts->cb = cb;",
"ts->opaque = opaque;",
"return ts;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
7,821 | static int get_pci_irq_state(QEMUFile *f, void *pv, size_t size)
{
PCIDevice *s = container_of(pv, PCIDevice, config);
uint32_t irq_state[PCI_NUM_PINS];
int i;
for (i = 0; i < PCI_NUM_PINS; ++i) {
irq_state[i] = qemu_get_be32(f);
if (irq_state[i] != 0x1 && irq_state[i] != 0) {
... | false | qemu | c3f8f61157625d0bb5bfc135047573de48fdc675 | static int get_pci_irq_state(QEMUFile *f, void *pv, size_t size)
{
PCIDevice *s = container_of(pv, PCIDevice, config);
uint32_t irq_state[PCI_NUM_PINS];
int i;
for (i = 0; i < PCI_NUM_PINS; ++i) {
irq_state[i] = qemu_get_be32(f);
if (irq_state[i] != 0x1 && irq_state[i] != 0) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)
{
PCIDevice *s = container_of(VAR_1, PCIDevice, config);
uint32_t irq_state[PCI_NUM_PINS];
int VAR_3;
for (VAR_3 = 0; VAR_3 < PCI_NUM_PINS; ++VAR_3) {
irq_state[VAR_3] = qemu_get_be32(VAR_0);
if (irq_state[VAR_3] != 0x1... | [
"static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{",
"PCIDevice *s = container_of(VAR_1, PCIDevice, config);",
"uint32_t irq_state[PCI_NUM_PINS];",
"int VAR_3;",
"for (VAR_3 = 0; VAR_3 < PCI_NUM_PINS; ++VAR_3) {",
"irq_state[VAR_3] = qemu_get_be32(VAR_0);",
"if (irq_state[VAR_3] != 0x1 &&... | [
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
],
[
33
],
[
37
],
[
39
]
] |
7,822 | static void test_visitor_in_native_list_uint32(TestInputVisitorData *data,
const void *unused)
{
test_native_list_integer_helper(data, unused,
USER_DEF_NATIVE_LIST_UNION_KIND_U32);
}
| false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void test_visitor_in_native_list_uint32(TestInputVisitorData *data,
const void *unused)
{
test_native_list_integer_helper(data, unused,
USER_DEF_NATIVE_LIST_UNION_KIND_U32);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(TestInputVisitorData *VAR_0,
const void *VAR_1)
{
test_native_list_integer_helper(VAR_0, VAR_1,
USER_DEF_NATIVE_LIST_UNION_KIND_U32);
}
| [
"static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{",
"test_native_list_integer_helper(VAR_0, VAR_1,\nUSER_DEF_NATIVE_LIST_UNION_KIND_U32);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11
]
] |
7,823 | av_cold void ff_vp8dsp_init_armv6(VP8DSPContext *dsp)
{
dsp->vp8_luma_dc_wht = ff_vp8_luma_dc_wht_armv6;
dsp->vp8_luma_dc_wht_dc = ff_vp8_luma_dc_wht_dc_armv6;
dsp->vp8_idct_add = ff_vp8_idct_add_armv6;
dsp->vp8_idct_dc_add = ff_vp8_idct_dc_add_armv6;
dsp->vp8_idct_dc_add4y = ff... | false | FFmpeg | b8664c929437d6d079e16979c496a2db40cf2324 | av_cold void ff_vp8dsp_init_armv6(VP8DSPContext *dsp)
{
dsp->vp8_luma_dc_wht = ff_vp8_luma_dc_wht_armv6;
dsp->vp8_luma_dc_wht_dc = ff_vp8_luma_dc_wht_dc_armv6;
dsp->vp8_idct_add = ff_vp8_idct_add_armv6;
dsp->vp8_idct_dc_add = ff_vp8_idct_dc_add_armv6;
dsp->vp8_idct_dc_add4y = ff... | {
"code": [],
"line_no": []
} | av_cold void FUNC_0(VP8DSPContext *dsp)
{
dsp->vp8_luma_dc_wht = ff_vp8_luma_dc_wht_armv6;
dsp->vp8_luma_dc_wht_dc = ff_vp8_luma_dc_wht_dc_armv6;
dsp->vp8_idct_add = ff_vp8_idct_add_armv6;
dsp->vp8_idct_dc_add = ff_vp8_idct_dc_add_armv6;
dsp->vp8_idct_dc_add4y = ff_vp8_idct_dc_a... | [
"av_cold void FUNC_0(VP8DSPContext *dsp)\n{",
"dsp->vp8_luma_dc_wht = ff_vp8_luma_dc_wht_armv6;",
"dsp->vp8_luma_dc_wht_dc = ff_vp8_luma_dc_wht_dc_armv6;",
"dsp->vp8_idct_add = ff_vp8_idct_add_armv6;",
"dsp->vp8_idct_dc_add = ff_vp8_idct_dc_add_armv6;",
"dsp->vp8_idct_dc_add4y = ff_vp8_idct_d... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51... |
7,824 | static int nbd_receive_list(QIOChannel *ioc, const char *want, bool *match,
Error **errp)
{
nbd_opt_reply reply;
uint32_t len;
uint32_t namelen;
char name[NBD_MAX_NAME_SIZE + 1];
int error;
if (nbd_receive_option_reply(ioc, NBD_OPT_LIST, &reply, errp) < 0) {... | false | qemu | d1fdf257d52822695f5ace6c586e059aa17d4b79 | static int nbd_receive_list(QIOChannel *ioc, const char *want, bool *match,
Error **errp)
{
nbd_opt_reply reply;
uint32_t len;
uint32_t namelen;
char name[NBD_MAX_NAME_SIZE + 1];
int error;
if (nbd_receive_option_reply(ioc, NBD_OPT_LIST, &reply, errp) < 0) {... | {
"code": [],
"line_no": []
} | static int FUNC_0(QIOChannel *VAR_0, const char *VAR_1, bool *VAR_2,
Error **VAR_3)
{
nbd_opt_reply reply;
uint32_t len;
uint32_t namelen;
char VAR_4[NBD_MAX_NAME_SIZE + 1];
int VAR_5;
if (nbd_receive_option_reply(VAR_0, NBD_OPT_LIST, &reply, VAR_3) < 0) {
... | [
"static int FUNC_0(QIOChannel *VAR_0, const char *VAR_1, bool *VAR_2,\nError **VAR_3)\n{",
"nbd_opt_reply reply;",
"uint32_t len;",
"uint32_t namelen;",
"char VAR_4[NBD_MAX_NAME_SIZE + 1];",
"int VAR_5;",
"if (nbd_receive_option_reply(VAR_0, NBD_OPT_LIST, &reply, VAR_3) < 0) {",
"return -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
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
7,825 | static inline void cris_alu_alloc_temps(DisasContext *dc, int size, TCGv *t)
{
if (size == 4) {
t[0] = cpu_R[dc->op2];
t[1] = cpu_R[dc->op1];
} else {
t[0] = tcg_temp_new(TCG_TYPE_TL);
t[1] = tcg_temp_new(TCG_TYPE_TL);
}
}
| false | qemu | a7812ae412311d7d47f8aa85656faadac9d64b56 | static inline void cris_alu_alloc_temps(DisasContext *dc, int size, TCGv *t)
{
if (size == 4) {
t[0] = cpu_R[dc->op2];
t[1] = cpu_R[dc->op1];
} else {
t[0] = tcg_temp_new(TCG_TYPE_TL);
t[1] = tcg_temp_new(TCG_TYPE_TL);
}
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, TCGv *VAR_2)
{
if (VAR_1 == 4) {
VAR_2[0] = cpu_R[VAR_0->op2];
VAR_2[1] = cpu_R[VAR_0->op1];
} else {
VAR_2[0] = tcg_temp_new(TCG_TYPE_TL);
VAR_2[1] = tcg_temp_new(TCG_TYPE_TL);
}
}
| [
"static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, TCGv *VAR_2)\n{",
"if (VAR_1 == 4) {",
"VAR_2[0] = cpu_R[VAR_0->op2];",
"VAR_2[1] = cpu_R[VAR_0->op1];",
"} else {",
"VAR_2[0] = tcg_temp_new(TCG_TYPE_TL);",
"VAR_2[1] = tcg_temp_new(TCG_TYPE_TL);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
7,827 | START_TEST(simple_varargs)
{
QObject *embedded_obj;
QObject *obj;
LiteralQObject decoded = QLIT_QLIST(((LiteralQObject[]){
QLIT_QINT(1),
QLIT_QINT(2),
QLIT_QLIST(((LiteralQObject[]){
QLIT_QINT(32),
QLIT_QINT(42),
... | false | qemu | ef76dc59fa5203d146a2acf85a0ad5a5971a4824 | START_TEST(simple_varargs)
{
QObject *embedded_obj;
QObject *obj;
LiteralQObject decoded = QLIT_QLIST(((LiteralQObject[]){
QLIT_QINT(1),
QLIT_QINT(2),
QLIT_QLIST(((LiteralQObject[]){
QLIT_QINT(32),
QLIT_QINT(42),
... | {
"code": [],
"line_no": []
} | FUNC_0(VAR_0)
{
QObject *embedded_obj;
QObject *obj;
LiteralQObject decoded = QLIT_QLIST(((LiteralQObject[]){
QLIT_QINT(1),
QLIT_QINT(2),
QLIT_QLIST(((LiteralQObject[]){
QLIT_QINT(32),
QLIT_QINT(42),
... | [
"FUNC_0(VAR_0)\n{",
"QObject *embedded_obj;",
"QObject *obj;",
"LiteralQObject decoded = QLIT_QLIST(((LiteralQObject[]){",
"QLIT_QINT(1),\nQLIT_QINT(2),\nQLIT_QLIST(((LiteralQObject[]){",
"QLIT_QINT(32),\nQLIT_QINT(42),\n{}})),",
"{}}));",
"embedded_obj = qobject_from_json(\"[32, 42]\");",
"fail_unl... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13,
15
],
[
17,
19,
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
39
],
[
43
],
[
45
]
] |
7,829 | int pci_device_load(PCIDevice *s, QEMUFile *f)
{
uint8_t config[PCI_CONFIG_SPACE_SIZE];
uint32_t version_id;
int i;
version_id = qemu_get_be32(f);
if (version_id > 2)
return -EINVAL;
qemu_get_buffer(f, config, sizeof config);
for (i = 0; i < sizeof config; ++i)
if... | false | qemu | 73534f2f682f2957fabb25e3890481098cc5dcee | int pci_device_load(PCIDevice *s, QEMUFile *f)
{
uint8_t config[PCI_CONFIG_SPACE_SIZE];
uint32_t version_id;
int i;
version_id = qemu_get_be32(f);
if (version_id > 2)
return -EINVAL;
qemu_get_buffer(f, config, sizeof config);
for (i = 0; i < sizeof config; ++i)
if... | {
"code": [],
"line_no": []
} | int FUNC_0(PCIDevice *VAR_0, QEMUFile *VAR_1)
{
uint8_t config[PCI_CONFIG_SPACE_SIZE];
uint32_t version_id;
int VAR_2;
version_id = qemu_get_be32(VAR_1);
if (version_id > 2)
return -EINVAL;
qemu_get_buffer(VAR_1, config, sizeof config);
for (VAR_2 = 0; VAR_2 < sizeof confi... | [
"int FUNC_0(PCIDevice *VAR_0, QEMUFile *VAR_1)\n{",
"uint8_t config[PCI_CONFIG_SPACE_SIZE];",
"uint32_t version_id;",
"int VAR_2;",
"version_id = qemu_get_be32(VAR_1);",
"if (version_id > 2)\nreturn -EINVAL;",
"qemu_get_buffer(VAR_1, config, sizeof config);",
"for (VAR_2 = 0; VAR_2 < sizeof config; ++... | [
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
],
[
35,
37
],
[
39
],
[
41
],
[
43
]
] |
7,830 | static int usbredir_handle_interrupt_data(USBRedirDevice *dev,
USBPacket *p, uint8_t ep)
{
if (ep & USB_DIR_IN) {
/* Input interrupt endpoint, buffered packet input */
struct buf_packet *intp;
int status, len;
if (!dev->endpoint[EP2... | false | qemu | 104981d52b63dc3d68f39d4442881c667f44bbb9 | static int usbredir_handle_interrupt_data(USBRedirDevice *dev,
USBPacket *p, uint8_t ep)
{
if (ep & USB_DIR_IN) {
struct buf_packet *intp;
int status, len;
if (!dev->endpoint[EP2I(ep)].interrupt_started &&
!dev->en... | {
"code": [],
"line_no": []
} | static int FUNC_0(USBRedirDevice *VAR_0,
USBPacket *VAR_1, uint8_t VAR_2)
{
if (VAR_2 & USB_DIR_IN) {
struct buf_packet *VAR_3;
int VAR_4, VAR_5;
if (!VAR_0->endpoint[EP2I(VAR_2)].interrupt_started &&
!VAR_0->endpo... | [
"static int FUNC_0(USBRedirDevice *VAR_0,\nUSBPacket *VAR_1, uint8_t VAR_2)\n{",
"if (VAR_2 & USB_DIR_IN) {",
"struct buf_packet *VAR_3;",
"int VAR_4, VAR_5;",
"if (!VAR_0->endpoint[EP2I(VAR_2)].interrupt_started &&\n!VAR_0->endpoint[EP2I(VAR_2)].interrupt_error) {",
"struct usb_redir_start_interrupt_rece... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
[
59... |
7,831 | void x86_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
{
unsigned int i;
for (i = 0; i < ARRAY_SIZE(x86_defs); i++)
(*cpu_fprintf)(f, "x86 %16s\n", x86_defs[i].name);
}
| false | qemu | b5ec5ce0e39d6e7ea707d5604a5f6d567dfd2f48 | void x86_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
{
unsigned int i;
for (i = 0; i < ARRAY_SIZE(x86_defs); i++)
(*cpu_fprintf)(f, "x86 %16s\n", x86_defs[i].name);
}
| {
"code": [],
"line_no": []
} | void FUNC_0 (FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...))
{
unsigned int VAR_3;
for (VAR_3 = 0; VAR_3 < ARRAY_SIZE(x86_defs); VAR_3++)
(*VAR_1)(VAR_2, "x86 %16s\n", x86_defs[VAR_3].name);
}
| [
"void FUNC_0 (FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...))\n{",
"unsigned int VAR_3;",
"for (VAR_3 = 0; VAR_3 < ARRAY_SIZE(x86_defs); VAR_3++)",
"(*VAR_1)(VAR_2, \"x86 %16s\\n\", x86_defs[VAR_3].name);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
7,832 | void qio_dns_resolver_lookup_result(QIODNSResolver *resolver,
QIOTask *task,
size_t *naddrs,
SocketAddress ***addrs)
{
struct QIODNSResolverLookupData *data =
qio_task_get_result_pointer(task);
... | false | qemu | dfd100f242370886bb6732f70f1f7cbd8eb9fedc | void qio_dns_resolver_lookup_result(QIODNSResolver *resolver,
QIOTask *task,
size_t *naddrs,
SocketAddress ***addrs)
{
struct QIODNSResolverLookupData *data =
qio_task_get_result_pointer(task);
... | {
"code": [],
"line_no": []
} | void FUNC_0(QIODNSResolver *VAR_0,
QIOTask *VAR_1,
size_t *VAR_2,
SocketAddress ***VAR_3)
{
struct QIODNSResolverLookupData *VAR_4 =
qio_task_get_result_pointer(VAR_1);
size_t i;
*VA... | [
"void FUNC_0(QIODNSResolver *VAR_0,\nQIOTask *VAR_1,\nsize_t *VAR_2,\nSocketAddress ***VAR_3)\n{",
"struct QIODNSResolverLookupData *VAR_4 =\nqio_task_get_result_pointer(VAR_1);",
"size_t i;",
"*VAR_2 = 0;",
"*VAR_3 = NULL;",
"if (!VAR_4) {",
"return;",
"}",
"*VAR_2 = VAR_4->VAR_2;",
"*VAR_3 = g_n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11,
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
7,833 | void virtio_init_iov_from_pdu(V9fsPDU *pdu, struct iovec **piov,
unsigned int *pniov, bool is_write)
{
V9fsState *s = pdu->s;
V9fsVirtioState *v = container_of(s, V9fsVirtioState, state);
VirtQueueElement *elem = &v->elems[pdu->idx];
if (is_write) {
*piov =... | false | qemu | 51b19ebe4320f3dcd93cea71235c1219318ddfd2 | void virtio_init_iov_from_pdu(V9fsPDU *pdu, struct iovec **piov,
unsigned int *pniov, bool is_write)
{
V9fsState *s = pdu->s;
V9fsVirtioState *v = container_of(s, V9fsVirtioState, state);
VirtQueueElement *elem = &v->elems[pdu->idx];
if (is_write) {
*piov =... | {
"code": [],
"line_no": []
} | void FUNC_0(V9fsPDU *VAR_0, struct iovec **VAR_1,
unsigned int *VAR_2, bool VAR_3)
{
V9fsState *s = VAR_0->s;
V9fsVirtioState *v = container_of(s, V9fsVirtioState, state);
VirtQueueElement *elem = &v->elems[VAR_0->idx];
if (VAR_3) {
*VAR_1 = elem->out_sg;
... | [
"void FUNC_0(V9fsPDU *VAR_0, struct iovec **VAR_1,\nunsigned int *VAR_2, bool VAR_3)\n{",
"V9fsState *s = VAR_0->s;",
"V9fsVirtioState *v = container_of(s, V9fsVirtioState, state);",
"VirtQueueElement *elem = &v->elems[VAR_0->idx];",
"if (VAR_3) {",
"*VAR_1 = elem->out_sg;",
"*VAR_2 = elem->out_num;",
... | [
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
]
] |
7,835 | BlockDriverState *bdrv_next_node(BlockDriverState *bs)
{
if (!bs) {
return QTAILQ_FIRST(&graph_bdrv_states);
}
return QTAILQ_NEXT(bs, node_list);
}
| false | qemu | 61007b316cd71ee7333ff7a0a749a8949527575f | BlockDriverState *bdrv_next_node(BlockDriverState *bs)
{
if (!bs) {
return QTAILQ_FIRST(&graph_bdrv_states);
}
return QTAILQ_NEXT(bs, node_list);
}
| {
"code": [],
"line_no": []
} | BlockDriverState *FUNC_0(BlockDriverState *bs)
{
if (!bs) {
return QTAILQ_FIRST(&graph_bdrv_states);
}
return QTAILQ_NEXT(bs, node_list);
}
| [
"BlockDriverState *FUNC_0(BlockDriverState *bs)\n{",
"if (!bs) {",
"return QTAILQ_FIRST(&graph_bdrv_states);",
"}",
"return QTAILQ_NEXT(bs, node_list);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
7,836 | CPUState *ppc4xx_init (const char *cpu_model,
clk_setup_t *cpu_clk, clk_setup_t *tb_clk,
uint32_t sysclk)
{
CPUState *env;
/* init CPUs */
env = cpu_init(cpu_model);
if (!env) {
fprintf(stderr, "Unable to find PowerPC %s CPU definition\n",
... | false | qemu | d63cb48db9016328a7a69f3a1c2938cd3dfc9d1a | CPUState *ppc4xx_init (const char *cpu_model,
clk_setup_t *cpu_clk, clk_setup_t *tb_clk,
uint32_t sysclk)
{
CPUState *env;
env = cpu_init(cpu_model);
if (!env) {
fprintf(stderr, "Unable to find PowerPC %s CPU definition\n",
... | {
"code": [],
"line_no": []
} | CPUState *FUNC_0 (const char *cpu_model,
clk_setup_t *cpu_clk, clk_setup_t *tb_clk,
uint32_t sysclk)
{
CPUState *env;
env = cpu_init(cpu_model);
if (!env) {
fprintf(stderr, "Unable to find PowerPC %s CPU definition\n",
cpu... | [
"CPUState *FUNC_0 (const char *cpu_model,\nclk_setup_t *cpu_clk, clk_setup_t *tb_clk,\nuint32_t sysclk)\n{",
"CPUState *env;",
"env = cpu_init(cpu_model);",
"if (!env) {",
"fprintf(stderr, \"Unable to find PowerPC %s CPU definition\\n\",\ncpu_model);",
"exit(1);",
"}",
"cpu_clk->cb = NULL;",
"cpu_cl... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
]
] |
7,838 | void qemu_del_vm_change_state_handler(VMChangeStateEntry *e)
{
LIST_REMOVE (e, entries);
qemu_free (e);
}
| false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | void qemu_del_vm_change_state_handler(VMChangeStateEntry *e)
{
LIST_REMOVE (e, entries);
qemu_free (e);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(VMChangeStateEntry *VAR_0)
{
LIST_REMOVE (VAR_0, entries);
qemu_free (VAR_0);
}
| [
"void FUNC_0(VMChangeStateEntry *VAR_0)\n{",
"LIST_REMOVE (VAR_0, entries);",
"qemu_free (VAR_0);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
7,839 | static void ps2_mouse_event(DeviceState *dev, QemuConsole *src,
InputEvent *evt)
{
static const int bmap[INPUT_BUTTON__MAX] = {
[INPUT_BUTTON_LEFT] = MOUSE_EVENT_LBUTTON,
[INPUT_BUTTON_MIDDLE] = MOUSE_EVENT_MBUTTON,
[INPUT_BUTTON_RIGHT] = MOUSE_EVENT_RBUT... | false | qemu | 32bafa8fdd098d52fbf1102d5a5e48d29398c0aa | static void ps2_mouse_event(DeviceState *dev, QemuConsole *src,
InputEvent *evt)
{
static const int bmap[INPUT_BUTTON__MAX] = {
[INPUT_BUTTON_LEFT] = MOUSE_EVENT_LBUTTON,
[INPUT_BUTTON_MIDDLE] = MOUSE_EVENT_MBUTTON,
[INPUT_BUTTON_RIGHT] = MOUSE_EVENT_RBUT... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, QemuConsole *VAR_1,
InputEvent *VAR_2)
{
static const int VAR_3[INPUT_BUTTON__MAX] = {
[INPUT_BUTTON_LEFT] = MOUSE_EVENT_LBUTTON,
[INPUT_BUTTON_MIDDLE] = MOUSE_EVENT_MBUTTON,
[INPUT_BUTTON_RIGHT] = MOUSE_EVENT_RBUTTO... | [
"static void FUNC_0(DeviceState *VAR_0, QemuConsole *VAR_1,\nInputEvent *VAR_2)\n{",
"static const int VAR_3[INPUT_BUTTON__MAX] = {",
"[INPUT_BUTTON_LEFT] = MOUSE_EVENT_LBUTTON,\n[INPUT_BUTTON_MIDDLE] = MOUSE_EVENT_MBUTTON,\n[INPUT_BUTTON_RIGHT] = MOUSE_EVENT_RBUTTON,\n};",
"PS2MouseState *s = (PS2MouseSta... | [
0,
0,
0,
0,
0,
0,
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
],
[
27,
29
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53,
55
],
[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.