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 |
|---|---|---|---|---|---|---|---|---|---|---|
12,962 | static int kvm_sclp_service_call(S390CPU *cpu, struct kvm_run *run,
uint16_t ipbh0)
{
CPUS390XState *env = &cpu->env;
uint64_t sccb;
uint32_t code;
int r = 0;
cpu_synchronize_state(CPU(cpu));
if (env->psw.mask & PSW_MASK_PSTATE) {
enter_pgmchec... | true | qemu | 6e25280216fc23c8387892f76d961559da124528 | static int kvm_sclp_service_call(S390CPU *cpu, struct kvm_run *run,
uint16_t ipbh0)
{
CPUS390XState *env = &cpu->env;
uint64_t sccb;
uint32_t code;
int r = 0;
cpu_synchronize_state(CPU(cpu));
if (env->psw.mask & PSW_MASK_PSTATE) {
enter_pgmchec... | {
"code": [
" if (env->psw.mask & PSW_MASK_PSTATE) {",
" enter_pgmcheck(cpu, PGM_PRIVILEGED);",
" return 0;",
" r = sclp_service_call(sccb, code);"
],
"line_no": [
19,
21,
23,
33
]
} | static int FUNC_0(S390CPU *VAR_0, struct kvm_run *VAR_1,
uint16_t VAR_2)
{
CPUS390XState *env = &VAR_0->env;
uint64_t sccb;
uint32_t code;
int VAR_3 = 0;
cpu_synchronize_state(CPU(VAR_0));
if (env->psw.mask & PSW_MASK_PSTATE) {
enter_pgmcheck(V... | [
"static int FUNC_0(S390CPU *VAR_0, struct kvm_run *VAR_1,\nuint16_t VAR_2)\n{",
"CPUS390XState *env = &VAR_0->env;",
"uint64_t sccb;",
"uint32_t code;",
"int VAR_3 = 0;",
"cpu_synchronize_state(CPU(VAR_0));",
"if (env->psw.mask & PSW_MASK_PSTATE) {",
"enter_pgmcheck(VAR_0, PGM_PRIVILEGED);",
"return... | [
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
]
] |
12,964 | static void libschroedinger_flush(AVCodecContext *avctx)
{
/* Got a seek request. Free the decoded frames queue and then reset
* the decoder */
SchroDecoderParams *p_schro_params = avctx->priv_data;
/* Free data in the output frame queue. */
ff_schro_queue_free(&p_schro_params->dec_frame_qu... | true | FFmpeg | 220b24c7c97dc033ceab1510549f66d0e7b52ef1 | static void libschroedinger_flush(AVCodecContext *avctx)
{
SchroDecoderParams *p_schro_params = avctx->priv_data;
ff_schro_queue_free(&p_schro_params->dec_frame_queue,
libschroedinger_decode_frame_free);
ff_schro_queue_init(&p_schro_params->dec_frame_queue);
... | {
"code": [
" SchroDecoderParams *p_schro_params = avctx->priv_data;",
" ff_schro_queue_init(&p_schro_params->dec_frame_queue);",
" SchroDecoderParams *p_schro_params = avctx->priv_data;",
" SchroDecoderParams *p_schro_params = avctx->priv_data;",
" SchroDecoderParams *p_schro_param... | static void FUNC_0(AVCodecContext *VAR_0)
{
SchroDecoderParams *p_schro_params = VAR_0->priv_data;
ff_schro_queue_free(&p_schro_params->dec_frame_queue,
libschroedinger_decode_frame_free);
ff_schro_queue_init(&p_schro_params->dec_frame_queue);
schro_decode... | [
"static void FUNC_0(AVCodecContext *VAR_0)\n{",
"SchroDecoderParams *p_schro_params = VAR_0->priv_data;",
"ff_schro_queue_free(&p_schro_params->dec_frame_queue,\nlibschroedinger_decode_frame_free);",
"ff_schro_queue_init(&p_schro_params->dec_frame_queue);",
"schro_decoder_reset(p_schro_params->decoder);",
... | [
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
9
],
[
15,
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
12,965 | CFDataRef ff_videotoolbox_hvcc_extradata_create(AVCodecContext *avctx)
{
HEVCContext *h = avctx->priv_data;
const HEVCVPS *vps = (const HEVCVPS *)h->ps.vps_list[0]->data;
const HEVCSPS *sps = (const HEVCSPS *)h->ps.sps_list[0]->data;
int i, num_pps = 0;
const HEVCPPS *pps = h->ps.pps;
PTL... | true | FFmpeg | 05d77587cb7d0a4e349c5320eb7c0b48610cf6bf | CFDataRef ff_videotoolbox_hvcc_extradata_create(AVCodecContext *avctx)
{
HEVCContext *h = avctx->priv_data;
const HEVCVPS *vps = (const HEVCVPS *)h->ps.vps_list[0]->data;
const HEVCSPS *sps = (const HEVCSPS *)h->ps.sps_list[0]->data;
int i, num_pps = 0;
const HEVCPPS *pps = h->ps.pps;
PTL... | {
"code": [
" for (i = 0; i < MAX_PPS_COUNT; i++) {",
" for (i = 0; i < MAX_PPS_COUNT; i++) {"
],
"line_no": [
31,
31
]
} | CFDataRef FUNC_0(AVCodecContext *avctx)
{
HEVCContext *h = avctx->priv_data;
const HEVCVPS *VAR_0 = (const HEVCVPS *)h->ps.vps_list[0]->data;
const HEVCSPS *VAR_1 = (const HEVCSPS *)h->ps.sps_list[0]->data;
int VAR_2, VAR_3 = 0;
const HEVCPPS *VAR_4 = h->ps.VAR_4;
PTLCommon ptlc = VAR_0->... | [
"CFDataRef FUNC_0(AVCodecContext *avctx)\n{",
"HEVCContext *h = avctx->priv_data;",
"const HEVCVPS *VAR_0 = (const HEVCVPS *)h->ps.vps_list[0]->data;",
"const HEVCSPS *VAR_1 = (const HEVCSPS *)h->ps.sps_list[0]->data;",
"int VAR_2, VAR_3 = 0;",
"const HEVCPPS *VAR_4 = h->ps.VAR_4;",
"PTLCommon ptlc = VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
12,967 | static void xhci_kick_epctx(XHCIEPContext *epctx, unsigned int streamid)
{
XHCIState *xhci = epctx->xhci;
XHCIStreamContext *stctx = NULL;
XHCITransfer *xfer;
XHCIRing *ring;
USBEndpoint *ep = NULL;
uint64_t mfindex;
unsigned int count = 0;
int length;
int i;
trace_u... | true | qemu | d54fddea989ba4aa2912d49583d86ce01c0d27ea | static void xhci_kick_epctx(XHCIEPContext *epctx, unsigned int streamid)
{
XHCIState *xhci = epctx->xhci;
XHCIStreamContext *stctx = NULL;
XHCITransfer *xfer;
XHCIRing *ring;
USBEndpoint *ep = NULL;
uint64_t mfindex;
unsigned int count = 0;
int length;
int i;
trace_u... | {
"code": [
" xhci_set_ep_state(xhci, epctx, stctx, epctx->state);"
],
"line_no": [
255
]
} | static void FUNC_0(XHCIEPContext *VAR_0, unsigned int VAR_1)
{
XHCIState *xhci = VAR_0->xhci;
XHCIStreamContext *stctx = NULL;
XHCITransfer *xfer;
XHCIRing *ring;
USBEndpoint *ep = NULL;
uint64_t mfindex;
unsigned int VAR_2 = 0;
int VAR_3;
int VAR_4;
trace_usb_xhci_e... | [
"static void FUNC_0(XHCIEPContext *VAR_0, unsigned int VAR_1)\n{",
"XHCIState *xhci = VAR_0->xhci;",
"XHCIStreamContext *stctx = NULL;",
"XHCITransfer *xfer;",
"XHCIRing *ring;",
"USBEndpoint *ep = NULL;",
"uint64_t mfindex;",
"unsigned int VAR_2 = 0;",
"int VAR_3;",
"int VAR_4;",
"trace_usb_xhc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35,
37,
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
53
],
[
55
... |
12,969 | static int local_symlink(FsContext *fs_ctx, const char *oldpath,
V9fsPath *dir_path, const char *name, FsCred *credp)
{
int err = -1;
int serrno = 0;
char *newpath;
V9fsString fullname;
char *buffer;
v9fs_string_init(&fullname);
v9fs_string_sprintf(&fullna... | true | qemu | 4ed7b2c3a78f785a1bcbe575e08c379b166723e3 | static int local_symlink(FsContext *fs_ctx, const char *oldpath,
V9fsPath *dir_path, const char *name, FsCred *credp)
{
int err = -1;
int serrno = 0;
char *newpath;
V9fsString fullname;
char *buffer;
v9fs_string_init(&fullname);
v9fs_string_sprintf(&fullna... | {
"code": [
" char *buffer;",
" g_free(buffer);",
" g_free(buffer);",
" g_free(buffer);",
" g_free(buffer);",
" char *buffer;",
" g_free(buffer);",
" g_free(buffer);",
" g_free(buffer);",
" g_free(buf... | static int FUNC_0(FsContext *VAR_0, const char *VAR_1,
V9fsPath *VAR_2, const char *VAR_3, FsCred *VAR_4)
{
int VAR_5 = -1;
int VAR_6 = 0;
char *VAR_7;
V9fsString fullname;
char *VAR_8;
v9fs_string_init(&fullname);
v9fs_string_sprintf(&fullname, "%s/%s", V... | [
"static int FUNC_0(FsContext *VAR_0, const char *VAR_1,\nV9fsPath *VAR_2, const char *VAR_3, FsCred *VAR_4)\n{",
"int VAR_5 = -1;",
"int VAR_6 = 0;",
"char *VAR_7;",
"V9fsString fullname;",
"char *VAR_8;",
"v9fs_string_init(&fullname);",
"v9fs_string_sprintf(&fullname, \"%s/%s\", VAR_2->data, VAR_3);"... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
12,970 | void OPPROTO op_405_check_satu (void)
{
if (unlikely(T0 < T2)) {
/* Saturate result */
T0 = -1;
}
RETURN();
}
| true | qemu | 6f2d8978728c48ca46f5c01835438508aace5c64 | void OPPROTO op_405_check_satu (void)
{
if (unlikely(T0 < T2)) {
T0 = -1;
}
RETURN();
}
| {
"code": [
" T0 = -1;"
],
"line_no": [
9
]
} | void VAR_0 op_405_check_satu (void)
{
if (unlikely(T0 < T2)) {
T0 = -1;
}
RETURN();
}
| [
"void VAR_0 op_405_check_satu (void)\n{",
"if (unlikely(T0 < T2)) {",
"T0 = -1;",
"}",
"RETURN();",
"}"
] | [
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
12,971 | static void qemu_gluster_complete_aio(void *opaque)
{
GlusterAIOCB *acb = (GlusterAIOCB *)opaque;
qemu_bh_delete(acb->bh);
acb->bh = NULL;
qemu_coroutine_enter(acb->coroutine, NULL);
}
| true | qemu | 0b8b8753e4d94901627b3e86431230f2319215c4 | static void qemu_gluster_complete_aio(void *opaque)
{
GlusterAIOCB *acb = (GlusterAIOCB *)opaque;
qemu_bh_delete(acb->bh);
acb->bh = NULL;
qemu_coroutine_enter(acb->coroutine, NULL);
}
| {
"code": [
" qemu_coroutine_enter(acb->coroutine, NULL);",
" qemu_coroutine_enter(acb->coroutine, NULL);"
],
"line_no": [
13,
13
]
} | static void FUNC_0(void *VAR_0)
{
GlusterAIOCB *acb = (GlusterAIOCB *)VAR_0;
qemu_bh_delete(acb->bh);
acb->bh = NULL;
qemu_coroutine_enter(acb->coroutine, NULL);
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"GlusterAIOCB *acb = (GlusterAIOCB *)VAR_0;",
"qemu_bh_delete(acb->bh);",
"acb->bh = NULL;",
"qemu_coroutine_enter(acb->coroutine, NULL);",
"}"
] | [
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
12,972 | static void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev,
uint16_t vendor, uint16_t device,
uint16_t class_code, uint8_t pif)
{
uint8_t *config;
uint32_t size;
proxy->vdev = vdev;
config = proxy->pci_dev.config;
pci_con... | true | qemu | e489030df2448d22b3cb92fd5dcb22c6fa0fc9e1 | static void virtio_init_pci(VirtIOPCIProxy *proxy, VirtIODevice *vdev,
uint16_t vendor, uint16_t device,
uint16_t class_code, uint8_t pif)
{
uint8_t *config;
uint32_t size;
proxy->vdev = vdev;
config = proxy->pci_dev.config;
pci_con... | {
"code": [
" qemu_register_reset(virtio_pci_reset, proxy);"
],
"line_no": [
89
]
} | static void FUNC_0(VirtIOPCIProxy *VAR_0, VirtIODevice *VAR_1,
uint16_t VAR_2, uint16_t VAR_3,
uint16_t VAR_4, uint8_t VAR_5)
{
uint8_t *config;
uint32_t size;
VAR_0->VAR_1 = VAR_1;
config = VAR_0->pci_dev.config;
pci_config_set_ven... | [
"static void FUNC_0(VirtIOPCIProxy *VAR_0, VirtIODevice *VAR_1,\nuint16_t VAR_2, uint16_t VAR_3,\nuint16_t VAR_4, uint8_t VAR_5)\n{",
"uint8_t *config;",
"uint32_t size;",
"VAR_0->VAR_1 = VAR_1;",
"config = VAR_0->pci_dev.config;",
"pci_config_set_vendor_id(config, VAR_2);",
"pci_config_set_device_id(co... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
53,
55
],
[
57,
59,... |
12,973 | static void disas_pc_rel_adr(DisasContext *s, uint32_t insn)
{
unsigned int page, rd;
uint64_t base;
int64_t offset;
page = extract32(insn, 31, 1);
/* SignExtend(immhi:immlo) -> offset */
offset = ((int64_t)sextract32(insn, 5, 19) << 2) | extract32(insn, 29, 2);
rd = extract32(insn... | true | qemu | 037e1d009e2fcb80784d37f0e12aa999787d46d4 | static void disas_pc_rel_adr(DisasContext *s, uint32_t insn)
{
unsigned int page, rd;
uint64_t base;
int64_t offset;
page = extract32(insn, 31, 1);
offset = ((int64_t)sextract32(insn, 5, 19) << 2) | extract32(insn, 29, 2);
rd = extract32(insn, 0, 5);
base = s->pc - 4;
... | {
"code": [
" int64_t offset;",
" offset = ((int64_t)sextract32(insn, 5, 19) << 2) | extract32(insn, 29, 2);"
],
"line_no": [
9,
17
]
} | static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)
{
unsigned int VAR_2, VAR_3;
uint64_t base;
int64_t offset;
VAR_2 = extract32(VAR_1, 31, 1);
offset = ((int64_t)sextract32(VAR_1, 5, 19) << 2) | extract32(VAR_1, 29, 2);
VAR_3 = extract32(VAR_1, 0, 5);
base = VAR_0->pc -... | [
"static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)\n{",
"unsigned int VAR_2, VAR_3;",
"uint64_t base;",
"int64_t offset;",
"VAR_2 = extract32(VAR_1, 31, 1);",
"offset = ((int64_t)sextract32(VAR_1, 5, 19) << 2) | extract32(VAR_1, 29, 2);",
"VAR_3 = extract32(VAR_1, 0, 5);",
"base = VAR_0->pc - 4;... | [
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
]
] |
12,974 | ff_voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
{
VocDecContext *voc = s->priv_data;
AVCodecParameters *par = st->codecpar;
AVIOContext *pb = s->pb;
VocType type;
int size, tmp_codec=-1;
int sample_rate = 0;
int channels = 1;
int64_t duration;
... | true | FFmpeg | ad5807f8aa883bee5431186dc1f24c5435d722d3 | ff_voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
{
VocDecContext *voc = s->priv_data;
AVCodecParameters *par = st->codecpar;
AVIOContext *pb = s->pb;
VocType type;
int size, tmp_codec=-1;
int sample_rate = 0;
int channels = 1;
int64_t duration;
... | {
"code": [
" par->bit_rate = par->sample_rate * par->channels * par->bits_per_coded_sample;"
],
"line_no": [
205
]
} | FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, AVStream *VAR_2, int VAR_3)
{
VocDecContext *voc = VAR_0->priv_data;
AVCodecParameters *par = VAR_2->codecpar;
AVIOContext *pb = VAR_0->pb;
VocType type;
int VAR_4, VAR_5=-1;
int VAR_6 = 0;
int VAR_7 = 1;
int64_t duration;
int... | [
"FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, AVStream *VAR_2, int VAR_3)\n{",
"VocDecContext *voc = VAR_0->priv_data;",
"AVCodecParameters *par = VAR_2->codecpar;",
"AVIOContext *pb = VAR_0->pb;",
"VocType type;",
"int VAR_4, VAR_5=-1;",
"int VAR_6 = 0;",
"int VAR_7 = 1;",
"int64_t duration;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25,
27,
29,
31,
33,
35
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51,... |
12,975 | void AcpiCpuHotplug_add(ACPIGPE *gpe, AcpiCpuHotplug *g, CPUState *cpu)
{
CPUClass *k = CPU_GET_CLASS(cpu);
int64_t cpu_id;
*gpe->sts = *gpe->sts | ACPI_CPU_HOTPLUG_STATUS;
cpu_id = k->get_arch_id(CPU(cpu));
g->sts[cpu_id / 8] |= (1 << (cpu_id % 8));
} | true | qemu | 39ee3af3a85fedb55b9eeb1a0bc81a2460eeaa01 | void AcpiCpuHotplug_add(ACPIGPE *gpe, AcpiCpuHotplug *g, CPUState *cpu)
{
CPUClass *k = CPU_GET_CLASS(cpu);
int64_t cpu_id;
*gpe->sts = *gpe->sts | ACPI_CPU_HOTPLUG_STATUS;
cpu_id = k->get_arch_id(CPU(cpu));
g->sts[cpu_id / 8] |= (1 << (cpu_id % 8));
} | {
"code": [],
"line_no": []
} | void FUNC_0(ACPIGPE *VAR_0, AcpiCpuHotplug *VAR_1, CPUState *VAR_2)
{
CPUClass *k = CPU_GET_CLASS(VAR_2);
int64_t cpu_id;
*VAR_0->sts = *VAR_0->sts | ACPI_CPU_HOTPLUG_STATUS;
cpu_id = k->get_arch_id(CPU(VAR_2));
VAR_1->sts[cpu_id / 8] |= (1 << (cpu_id % 8));
} | [
"void FUNC_0(ACPIGPE *VAR_0, AcpiCpuHotplug *VAR_1, CPUState *VAR_2)\n{",
"CPUClass *k = CPU_GET_CLASS(VAR_2);",
"int64_t cpu_id;",
"*VAR_0->sts = *VAR_0->sts | ACPI_CPU_HOTPLUG_STATUS;",
"cpu_id = k->get_arch_id(CPU(VAR_2));",
"VAR_1->sts[cpu_id / 8] |= (1 << (cpu_id % 8));",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
16
],
[
18
]
] |
12,976 | static void fill_coding_method_array (sb_int8_array tone_level_idx, sb_int8_array tone_level_idx_temp,
sb_int8_array coding_method, int nb_channels,
int c, int superblocktype_2_3, int cm_table_select)
{
int ch, sb, j;
int tmp, acc, esp_40, comp;
int add1, add2, add3, ad... | true | FFmpeg | d11f9e1b15e3aac6862bdfe2e5cb212b706e2c2f | static void fill_coding_method_array (sb_int8_array tone_level_idx, sb_int8_array tone_level_idx_temp,
sb_int8_array coding_method, int nb_channels,
int c, int superblocktype_2_3, int cm_table_select)
{
int ch, sb, j;
int tmp, acc, esp_40, comp;
int add1, add2, add3, ad... | {
"code": [
" for (j = 1; j < 64; j++) {"
],
"line_no": [
37
]
} | static void FUNC_0 (sb_int8_array VAR_0, sb_int8_array VAR_1,
sb_int8_array VAR_2, int VAR_3,
int VAR_4, int VAR_5, int VAR_6)
{
int VAR_7, VAR_8, VAR_9;
int VAR_10, VAR_11, VAR_12, VAR_13;
int VAR_14, VAR_15, VAR_16, VAR_17;
int64_t multres;
if (VAR_3... | [
"static void FUNC_0 (sb_int8_array VAR_0, sb_int8_array VAR_1,\nsb_int8_array VAR_2, int VAR_3,\nint VAR_4, int VAR_5, int VAR_6)\n{",
"int VAR_7, VAR_8, VAR_9;",
"int VAR_10, VAR_11, VAR_12, VAR_13;",
"int VAR_14, VAR_15, VAR_16, VAR_17;",
"int64_t multres;",
"if (VAR_3 <= 0)\nreturn;",
"if (!VAR_5) {"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21,
23
],
[
27
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51,
53
],
[
55
... |
12,977 | void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
int linesize_align[AV_NUM_DATA_POINTERS])
{
int i;
int w_align= 1;
int h_align= 1;
switch(s->pix_fmt){
case PIX_FMT_YUV420P:
case PIX_FMT_YUYV422:
case PIX_FMT_UYVY422:
c... | true | FFmpeg | 2d9535ad317733c977a89194975f14e0cc04fb7f | void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height,
int linesize_align[AV_NUM_DATA_POINTERS])
{
int i;
int w_align= 1;
int h_align= 1;
switch(s->pix_fmt){
case PIX_FMT_YUV420P:
case PIX_FMT_YUYV422:
case PIX_FMT_UYVY422:
c... | {
"code": [
" for (i = 0; i < AV_NUM_DATA_POINTERS; i++)",
" for (i = 0; i < AV_NUM_DATA_POINTERS; i++)"
],
"line_no": [
167,
187
]
} | void FUNC_0(AVCodecContext *VAR_0, int *VAR_1, int *VAR_2,
int VAR_3[AV_NUM_DATA_POINTERS])
{
int VAR_4;
int VAR_5= 1;
int VAR_6= 1;
switch(VAR_0->pix_fmt){
case PIX_FMT_YUV420P:
case PIX_FMT_YUYV422:
case PIX_FMT_UYVY422:
case PIX_FMT_YUV422P:
... | [
"void FUNC_0(AVCodecContext *VAR_0, int *VAR_1, int *VAR_2,\nint VAR_3[AV_NUM_DATA_POINTERS])\n{",
"int VAR_4;",
"int VAR_5= 1;",
"int VAR_6= 1;",
"switch(VAR_0->pix_fmt){",
"case PIX_FMT_YUV420P:\ncase PIX_FMT_YUYV422:\ncase PIX_FMT_UYVY422:\ncase PIX_FMT_YUV422P:\ncase PIX_FMT_YUV440P:\ncase PIX_FMT_YUV... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19,
21,
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53,
55,
57,
59,
61,
63,
65,
67,
69,
71,... |
12,978 | PPC_OP(addze)
{
T1 = T0;
T0 += xer_ca;
if (T0 < T1) {
xer_ca = 1;
} else {
xer_ca = 0;
}
RETURN();
}
| true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | PPC_OP(addze)
{
T1 = T0;
T0 += xer_ca;
if (T0 < T1) {
xer_ca = 1;
} else {
xer_ca = 0;
}
RETURN();
}
| {
"code": [
" RETURN();",
" xer_ca = 1;",
" T1 = T0;",
" if (T0 < T1) {",
" } else {",
" xer_ca = 0;",
" T1 = T0;",
"PPC_OP(addze)",
" T1 = T0;",
" if (T0 < T1) {",
" xer_ca = 1;",
" } else {",
" xer_ca = 0;",
... | FUNC_0(VAR_0)
{
T1 = T0;
T0 += xer_ca;
if (T0 < T1) {
xer_ca = 1;
} else {
xer_ca = 0;
}
RETURN();
}
| [
"FUNC_0(VAR_0)\n{",
"T1 = T0;",
"T0 += xer_ca;",
"if (T0 < T1) {",
"xer_ca = 1;",
"} else {",
"xer_ca = 0;",
"}",
"RETURN();",
"}"
] | [
1,
1,
1,
1,
1,
0,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
12,979 | static int get_unused_buffer(QEMUFile *f, void *pv, size_t size)
{
qemu_fseek(f, size, SEEK_CUR);
return 0;
}
| true | qemu | 21174c34b6b9ace9ad82e0deb13be752d28a5907 | static int get_unused_buffer(QEMUFile *f, void *pv, size_t size)
{
qemu_fseek(f, size, SEEK_CUR);
return 0;
}
| {
"code": [
" qemu_fseek(f, size, SEEK_CUR);",
" return 0;",
" qemu_fseek(f, size, SEEK_CUR);"
],
"line_no": [
5,
7,
5
]
} | static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)
{
qemu_fseek(VAR_0, VAR_2, SEEK_CUR);
return 0;
}
| [
"static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{",
"qemu_fseek(VAR_0, VAR_2, SEEK_CUR);",
"return 0;",
"}"
] | [
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
12,980 | void hmp_savevm(Monitor *mon, const QDict *qdict)
{
BlockDriverState *bs, *bs1;
QEMUSnapshotInfo sn1, *sn = &sn1, old_sn1, *old_sn = &old_sn1;
int ret;
QEMUFile *f;
int saved_vm_running;
uint64_t vm_state_size;
qemu_timeval tv;
struct tm tm;
const char *name = qdict_get_try_str(qdict... | true | qemu | 560d027b54067ffa4e79c6f7c0a499abb0d749a3 | void hmp_savevm(Monitor *mon, const QDict *qdict)
{
BlockDriverState *bs, *bs1;
QEMUSnapshotInfo sn1, *sn = &sn1, old_sn1, *old_sn = &old_sn1;
int ret;
QEMUFile *f;
int saved_vm_running;
uint64_t vm_state_size;
qemu_timeval tv;
struct tm tm;
const char *name = qdict_get_try_str(qdict... | {
"code": [],
"line_no": []
} | void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
BlockDriverState *bs, *bs1;
QEMUSnapshotInfo sn1, *sn = &sn1, old_sn1, *old_sn = &old_sn1;
int VAR_2;
QEMUFile *f;
int VAR_3;
uint64_t vm_state_size;
qemu_timeval tv;
struct VAR_4 VAR_4;
const char *VAR_5 = qdict_get_try_str(VAR_1, "V... | [
"void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"BlockDriverState *bs, *bs1;",
"QEMUSnapshotInfo sn1, *sn = &sn1, old_sn1, *old_sn = &old_sn1;",
"int VAR_2;",
"QEMUFile *f;",
"int VAR_3;",
"uint64_t vm_state_size;",
"qemu_timeval tv;",
"struct VAR_4 VAR_4;",
"const char *VAR_5 = qdict_get_tr... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19,
20
],
[
21
],
[
22
],
[
... |
12,981 | static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
{
SWFContext *swf = s->priv_data;
AVIOContext *pb = s->pb;
AVStream *vst = NULL, *ast = NULL, *st = 0;
int tag, len, i, frame, v, res;
#if CONFIG_ZLIB
if (swf->zpb)
pb = swf->zpb;
#endif
for(;;) {
uint64... | true | FFmpeg | f5d039840aca64d0ce79cd08e64423833becf570 | static int swf_read_packet(AVFormatContext *s, AVPacket *pkt)
{
SWFContext *swf = s->priv_data;
AVIOContext *pb = s->pb;
AVStream *vst = NULL, *ast = NULL, *st = 0;
int tag, len, i, frame, v, res;
#if CONFIG_ZLIB
if (swf->zpb)
pb = swf->zpb;
#endif
for(;;) {
uint64... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
SWFContext *swf = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
AVStream *vst = NULL, *ast = NULL, *st = 0;
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;
#if CONFIG_ZLIB
if (swf->zpb)
pb = swf->zpb;
#endif
for(;;... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"SWFContext *swf = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"AVStream *vst = NULL, *ast = NULL, *st = 0;",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;",
"#if CONFIG_ZLIB\nif (swf->zpb)\npb = swf->zpb;",
"#endif\nfor(;;) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
... |
12,982 | static int dvbsub_parse_region_segment(AVCodecContext *avctx,
const uint8_t *buf, int buf_size)
{
DVBSubContext *ctx = avctx->priv_data;
const uint8_t *buf_end = buf + buf_size;
int region_id, object_id;
int av_unused version;
DVBSubRegion *region;
... | true | FFmpeg | e1b0044c234775bf99ab1a5c794240a9a692ad8d | static int dvbsub_parse_region_segment(AVCodecContext *avctx,
const uint8_t *buf, int buf_size)
{
DVBSubContext *ctx = avctx->priv_data;
const uint8_t *buf_end = buf + buf_size;
int region_id, object_id;
int av_unused version;
DVBSubRegion *region;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
const uint8_t *VAR_1, int VAR_2)
{
DVBSubContext *ctx = VAR_0->priv_data;
const uint8_t *VAR_3 = VAR_1 + VAR_2;
int VAR_4, VAR_5;
int VAR_6 version;
DVBSubRegion *region;
DVBSubObject *object;
DVBSubOb... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1, int VAR_2)\n{",
"DVBSubContext *ctx = VAR_0->priv_data;",
"const uint8_t *VAR_3 = VAR_1 + VAR_2;",
"int VAR_4, VAR_5;",
"int VAR_6 version;",
"DVBSubRegion *region;",
"DVBSubObject *object;",
"DVBSubObjectDisplay *display;",
"int VAR_7... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
35
],
[
39
],
[
43
],
[
45
],
[
47,
49
],
[
53
],
[
55
],
... |
12,983 | int attribute_align_arg av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags)
{
BufferSinkContext *buf = ctx->priv;
AVFilterLink *inlink = ctx->inputs[0];
int ret;
AVFrame *cur_frame;
/* no picref available, fetch it from the filterchain */
if (!av_fifo_size(buf... | true | FFmpeg | 5eb273b2e767c86f78cc0e7e1a31bda4fedd2f56 | int attribute_align_arg av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags)
{
BufferSinkContext *buf = ctx->priv;
AVFilterLink *inlink = ctx->inputs[0];
int ret;
AVFrame *cur_frame;
if (!av_fifo_size(buf->fifo)) {
if (flags & AV_BUFFERSINK_FLAG_NO_RE... | {
"code": [],
"line_no": []
} | int VAR_0 av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags)
{
BufferSinkContext *buf = ctx->priv;
AVFilterLink *inlink = ctx->inputs[0];
int ret;
AVFrame *cur_frame;
if (!av_fifo_size(buf->fifo)) {
if (flags & AV_BUFFERSINK_FLAG_NO_REQUEST)
... | [
"int VAR_0 av_buffersink_get_frame_flags(AVFilterContext *ctx, AVFrame *frame, int flags)\n{",
"BufferSinkContext *buf = ctx->priv;",
"AVFilterLink *inlink = ctx->inputs[0];",
"int ret;",
"AVFrame *cur_frame;",
"if (!av_fifo_size(buf->fifo)) {",
"if (flags & AV_BUFFERSINK_FLAG_NO_REQUEST)\nreturn AVERRO... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
12,985 | void hmp_pcie_aer_inject_error(Monitor *mon, const QDict *qdict)
{
QObject *data;
int devfn;
if (do_pcie_aer_inject_error(mon, qdict, &data) < 0) {
return;
}
qdict = qobject_to_qdict(data);
assert(qdict);
devfn = (int)qdict_get_int(qdict, "devfn");
monitor_printf(... | true | qemu | 9edd5338a2404909ac8d373964021e6dbb8f5815 | void hmp_pcie_aer_inject_error(Monitor *mon, const QDict *qdict)
{
QObject *data;
int devfn;
if (do_pcie_aer_inject_error(mon, qdict, &data) < 0) {
return;
}
qdict = qobject_to_qdict(data);
assert(qdict);
devfn = (int)qdict_get_int(qdict, "devfn");
monitor_printf(... | {
"code": [
" QObject *data;",
" int devfn;",
" qdict = qobject_to_qdict(data);",
" assert(qdict);",
" devfn = (int)qdict_get_int(qdict, \"devfn\");",
" qdict_get_str(qdict, \"id\"),",
" qdict_get_str(qdict, \"root_bus\"),",
" ... | void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
QObject *data;
int VAR_2;
if (do_pcie_aer_inject_error(VAR_0, VAR_1, &data) < 0) {
return;
}
VAR_1 = qobject_to_qdict(data);
assert(VAR_1);
VAR_2 = (int)qdict_get_int(VAR_1, "VAR_2");
monitor_printf(VAR_0, "OK id: ... | [
"void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"QObject *data;",
"int VAR_2;",
"if (do_pcie_aer_inject_error(VAR_0, VAR_1, &data) < 0) {",
"return;",
"}",
"VAR_1 = qobject_to_qdict(data);",
"assert(VAR_1);",
"VAR_2 = (int)qdict_get_int(VAR_1, \"VAR_2\");",
"monitor_printf(VAR_0, \"OK id: %s... | [
0,
1,
1,
0,
0,
0,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27,
29,
31,
33,
35
],
[
37
]
] |
12,986 | static int ac3_eac3_probe(AVProbeData *p, enum CodecID expected_codec_id)
{
int max_frames, first_frames = 0, frames;
uint8_t *buf, *buf2, *end;
AC3HeaderInfo hdr;
GetBitContext gbc;
enum CodecID codec_id = CODEC_ID_AC3;
max_frames = 0;
buf = p->buf;
end = buf + p->buf_size;
... | false | FFmpeg | 64bde8056337bb656a11f3c9e2857c10b94e2871 | static int ac3_eac3_probe(AVProbeData *p, enum CodecID expected_codec_id)
{
int max_frames, first_frames = 0, frames;
uint8_t *buf, *buf2, *end;
AC3HeaderInfo hdr;
GetBitContext gbc;
enum CodecID codec_id = CODEC_ID_AC3;
max_frames = 0;
buf = p->buf;
end = buf + p->buf_size;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVProbeData *VAR_0, enum CodecID VAR_1)
{
int VAR_2, VAR_3 = 0, VAR_4;
uint8_t *buf, *buf2, *end;
AC3HeaderInfo hdr;
GetBitContext gbc;
enum CodecID VAR_5 = CODEC_ID_AC3;
VAR_2 = 0;
buf = VAR_0->buf;
end = buf + VAR_0->buf_size;
for(; buf < end; buf++)... | [
"static int FUNC_0(AVProbeData *VAR_0, enum CodecID VAR_1)\n{",
"int VAR_2, VAR_3 = 0, VAR_4;",
"uint8_t *buf, *buf2, *end;",
"AC3HeaderInfo hdr;",
"GetBitContext gbc;",
"enum CodecID VAR_5 = CODEC_ID_AC3;",
"VAR_2 = 0;",
"buf = VAR_0->buf;",
"end = buf + VAR_0->buf_size;",
"for(; buf < end; buf++... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35,
37
],
[
39,
41,
43
],
[
45,
47
],
[
49
],
[
51
... |
12,987 | static int h263_probe(AVProbeData *p)
{
int code;
const uint8_t *d;
if (p->buf_size < 6)
return 0;
d = p->buf;
code = (d[0] << 14) | (d[1] << 6) | (d[2] >> 2);
if (code == 0x20) {
return 50;
}
return 0;
}
| false | FFmpeg | 87e8788680e16c51f6048af26f3f7830c35207a5 | static int h263_probe(AVProbeData *p)
{
int code;
const uint8_t *d;
if (p->buf_size < 6)
return 0;
d = p->buf;
code = (d[0] << 14) | (d[1] << 6) | (d[2] >> 2);
if (code == 0x20) {
return 50;
}
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(AVProbeData *VAR_0)
{
int VAR_1;
const uint8_t *VAR_2;
if (VAR_0->buf_size < 6)
return 0;
VAR_2 = VAR_0->buf;
VAR_1 = (VAR_2[0] << 14) | (VAR_2[1] << 6) | (VAR_2[2] >> 2);
if (VAR_1 == 0x20) {
return 50;
}
return 0;
}
| [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"int VAR_1;",
"const uint8_t *VAR_2;",
"if (VAR_0->buf_size < 6)\nreturn 0;",
"VAR_2 = VAR_0->buf;",
"VAR_1 = (VAR_2[0] << 14) | (VAR_2[1] << 6) | (VAR_2[2] >> 2);",
"if (VAR_1 == 0x20) {",
"return 50;",
"}",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
12,989 | static int cinepak_decode_init(AVCodecContext *avctx)
{
CinepakContext *s = avctx->priv_data;
s->avctx = avctx;
s->width = (avctx->width + 3) & ~3;
s->height = (avctx->height + 3) & ~3;
s->sega_film_skip_bytes = -1; /* uninitialized state */
// check for paletted data
if ((avctx... | false | FFmpeg | 32c3047cac9294bb56d23c89a40a22409db5cc70 | static int cinepak_decode_init(AVCodecContext *avctx)
{
CinepakContext *s = avctx->priv_data;
s->avctx = avctx;
s->width = (avctx->width + 3) & ~3;
s->height = (avctx->height + 3) & ~3;
s->sega_film_skip_bytes = -1;
if ((avctx->palctrl == NULL) || (avctx->bits_per_sample == 40... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0)
{
CinepakContext *s = VAR_0->priv_data;
s->VAR_0 = VAR_0;
s->width = (VAR_0->width + 3) & ~3;
s->height = (VAR_0->height + 3) & ~3;
s->sega_film_skip_bytes = -1;
if ((VAR_0->palctrl == NULL) || (VAR_0->bits_per_sample == 40)) {
... | [
"static int FUNC_0(AVCodecContext *VAR_0)\n{",
"CinepakContext *s = VAR_0->priv_data;",
"s->VAR_0 = VAR_0;",
"s->width = (VAR_0->width + 3) & ~3;",
"s->height = (VAR_0->height + 3) & ~3;",
"s->sega_film_skip_bytes = -1;",
"if ((VAR_0->palctrl == NULL) || (VAR_0->bits_per_sample == 40)) {",
"s->palette... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
41
],
[
45
],
[
47
]
] |
12,990 | static int mpegts_init(AVFormatContext *s)
{
MpegTSWrite *ts = s->priv_data;
MpegTSWriteStream *ts_st;
MpegTSService *service;
AVStream *st, *pcr_st = NULL;
AVDictionaryEntry *title, *provider;
int i, j;
const char *service_name;
const char *provider_name;
int *pids;
i... | true | FFmpeg | a566c952f905639456966413fee0b5701867ddcd | static int mpegts_init(AVFormatContext *s)
{
MpegTSWrite *ts = s->priv_data;
MpegTSWriteStream *ts_st;
MpegTSService *service;
AVStream *st, *pcr_st = NULL;
AVDictionaryEntry *title, *provider;
int i, j;
const char *service_name;
const char *provider_name;
int *pids;
i... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
MpegTSWrite *ts = VAR_0->priv_data;
MpegTSWriteStream *ts_st;
MpegTSService *service;
AVStream *st, *pcr_st = NULL;
AVDictionaryEntry *title, *provider;
int VAR_1, VAR_2;
const char *VAR_3;
const char *VAR_4;
int *VAR_5;
int ... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"MpegTSWrite *ts = VAR_0->priv_data;",
"MpegTSWriteStream *ts_st;",
"MpegTSService *service;",
"AVStream *st, *pcr_st = NULL;",
"AVDictionaryEntry *title, *provider;",
"int VAR_1, VAR_2;",
"const char *VAR_3;",
"const char *VAR_4;",
"int *VAR_5;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49,
51
],
[
53
... |
12,991 | static void rtsp_cmd_setup(HTTPContext *c, const char *url,
RTSPHeader *h)
{
FFStream *stream;
int stream_index, port;
char buf[1024];
char path1[1024];
const char *path;
HTTPContext *rtp_c;
RTSPTransportField *th;
struct sockaddr_in dest_addr;
R... | true | FFmpeg | 25e3e53d4092e7b69a4d681824fa0f7b2731bb1e | static void rtsp_cmd_setup(HTTPContext *c, const char *url,
RTSPHeader *h)
{
FFStream *stream;
int stream_index, port;
char buf[1024];
char path1[1024];
const char *path;
HTTPContext *rtp_c;
RTSPTransportField *th;
struct sockaddr_in dest_addr;
R... | {
"code": [
" if (!stream->is_feed && !strcmp(stream->fmt->name, \"rtp\")) {"
],
"line_no": [
43
]
} | static void FUNC_0(HTTPContext *VAR_0, const char *VAR_1,
RTSPHeader *VAR_2)
{
FFStream *stream;
int VAR_3, VAR_4;
char VAR_5[1024];
char VAR_6[1024];
const char *VAR_7;
HTTPContext *rtp_c;
RTSPTransportField *th;
struct sockaddr_in VAR_8;
RTSPAc... | [
"static void FUNC_0(HTTPContext *VAR_0, const char *VAR_1,\nRTSPHeader *VAR_2)\n{",
"FFStream *stream;",
"int VAR_3, VAR_4;",
"char VAR_5[1024];",
"char VAR_6[1024];",
"const char *VAR_7;",
"HTTPContext *rtp_c;",
"RTSPTransportField *th;",
"struct sockaddr_in VAR_8;",
"RTSPActionServerSetup setup;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
29
],
[
31
],
[
33,
35
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
... |
12,992 | void aio_set_fd_handler(AioContext *ctx,
int fd,
bool is_external,
IOHandler *io_read,
IOHandler *io_write,
AioPollFn *io_poll,
void *opaque)
{
AioHandler *node;
... | true | qemu | f708a5e71cba0d784e307334c07ade5f56f827ab | void aio_set_fd_handler(AioContext *ctx,
int fd,
bool is_external,
IOHandler *io_read,
IOHandler *io_write,
AioPollFn *io_poll,
void *opaque)
{
AioHandler *node;
... | {
"code": [
" g_source_remove_poll(&ctx->source, &node->pfd);"
],
"line_no": [
47
]
} | void FUNC_0(AioContext *VAR_0,
int VAR_1,
bool VAR_2,
IOHandler *VAR_3,
IOHandler *VAR_4,
AioPollFn *VAR_5,
void *VAR_6)
{
AioHandler *node;
bool is_new = fals... | [
"void FUNC_0(AioContext *VAR_0,\nint VAR_1,\nbool VAR_2,\nIOHandler *VAR_3,\nIOHandler *VAR_4,\nAioPollFn *VAR_5,\nvoid *VAR_6)\n{",
"AioHandler *node;",
"bool is_new = false;",
"bool deleted = false;",
"qemu_lockcnt_lock(&VAR_0->list_lock);",
"node = find_aio_handler(VAR_0, VAR_1);",
"if (!VAR_3 && !VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13,
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
53
],
[
55
],
[
57
],
[
59
],
[
69
... |
12,993 | static int check_bits_for_superframe(GetBitContext *orig_gb,
WMAVoiceContext *s)
{
GetBitContext s_gb, *gb = &s_gb;
int n, need_bits, bd_idx;
const struct frame_type_desc *frame_desc;
/* initialize a copy */
init_get_bits(gb, orig_gb->buffer, orig_gb->si... | false | FFmpeg | 3deb4b54a24f8cddce463d9f5751b01efeb976af | static int check_bits_for_superframe(GetBitContext *orig_gb,
WMAVoiceContext *s)
{
GetBitContext s_gb, *gb = &s_gb;
int n, need_bits, bd_idx;
const struct frame_type_desc *frame_desc;
init_get_bits(gb, orig_gb->buffer, orig_gb->size_in_bits);
skip_... | {
"code": [],
"line_no": []
} | static int FUNC_0(GetBitContext *VAR_0,
WMAVoiceContext *VAR_1)
{
GetBitContext s_gb, *gb = &s_gb;
int VAR_2, VAR_3, VAR_4;
const struct frame_type_desc *VAR_5;
init_get_bits(gb, VAR_0->buffer, VAR_0->size_in_bits);
skip_bits_long(gb, get_bits_coun... | [
"static int FUNC_0(GetBitContext *VAR_0,\nWMAVoiceContext *VAR_1)\n{",
"GetBitContext s_gb, *gb = &s_gb;",
"int VAR_2, VAR_3, VAR_4;",
"const struct frame_type_desc *VAR_5;",
"init_get_bits(gb, VAR_0->buffer, VAR_0->size_in_bits);",
"skip_bits_long(gb, get_bits_count(VAR_0));",
"av_assert1(get_bits_left... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
27,
29
],
[
31,
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
51
],
[
53
],
[
57
],
[
59
... |
12,994 | static void h263_v_loop_filter_mmx(uint8_t *src, int stride, int qscale)
{
if (CONFIG_H263_DECODER || CONFIG_H263_ENCODER) {
const int strength = ff_h263_loop_filter_strength[qscale];
__asm__ volatile (
H263_LOOP_FILTER
"movq %%mm3, %1 \n\t"
... | false | FFmpeg | 659d4ba5af5d72716ee370bb367c741bd15e75b4 | static void h263_v_loop_filter_mmx(uint8_t *src, int stride, int qscale)
{
if (CONFIG_H263_DECODER || CONFIG_H263_ENCODER) {
const int strength = ff_h263_loop_filter_strength[qscale];
__asm__ volatile (
H263_LOOP_FILTER
"movq %%mm3, %1 \n\t"
... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2)
{
if (CONFIG_H263_DECODER || CONFIG_H263_ENCODER) {
const int VAR_3 = ff_h263_loop_filter_strength[VAR_2];
__asm__ volatile (
H263_LOOP_FILTER
"movq %%mm3, %1 \n\t"
"movq %%mm4, %2 ... | [
"static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2)\n{",
"if (CONFIG_H263_DECODER || CONFIG_H263_ENCODER) {",
"const int VAR_3 = ff_h263_loop_filter_strength[VAR_2];",
"__asm__ volatile (\nH263_LOOP_FILTER\n\"movq %%mm3, %1 \\n\\t\"\n\"movq %%mm4, %2 \\n\\t\"\n\"movq %%mm5, %0 ... | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13,
17,
19,
21,
23,
25,
27,
29,
31,
33,
35
],
[
37
],
[
39
]
] |
12,995 | static int64_t *concat_channels_lists(const int64_t *layouts, const int *counts)
{
int nb_layouts = 0, nb_counts = 0, i;
int64_t *list;
if (layouts)
for (; layouts[nb_layouts] != -1; nb_layouts++);
if (counts)
for (; counts[nb_counts] != -1; nb_counts++);
if (nb_counts > IN... | false | FFmpeg | e48ded8551172b58a78f30303a81dfce125344e0 | static int64_t *concat_channels_lists(const int64_t *layouts, const int *counts)
{
int nb_layouts = 0, nb_counts = 0, i;
int64_t *list;
if (layouts)
for (; layouts[nb_layouts] != -1; nb_layouts++);
if (counts)
for (; counts[nb_counts] != -1; nb_counts++);
if (nb_counts > IN... | {
"code": [],
"line_no": []
} | static int64_t *FUNC_0(const int64_t *layouts, const int *counts)
{
int VAR_0 = 0, VAR_1 = 0, VAR_2;
int64_t *list;
if (layouts)
for (; layouts[VAR_0] != -1; VAR_0++);
if (counts)
for (; counts[VAR_1] != -1; VAR_1++);
if (VAR_1 > INT_MAX - 1 - VAR_0)
return NULL;
... | [
"static int64_t *FUNC_0(const int64_t *layouts, const int *counts)\n{",
"int VAR_0 = 0, VAR_1 = 0, VAR_2;",
"int64_t *list;",
"if (layouts)\nfor (; layouts[VAR_0] != -1; VAR_0++);",
"if (counts)\nfor (; counts[VAR_1] != -1; VAR_1++);",
"if (VAR_1 > INT_MAX - 1 - VAR_0)\nreturn NULL;",
"if (!(list = av_c... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15,
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
12,996 | static void vnc_qmp_event(VncState *vs, QAPIEvent event)
{
VncServerInfo *si;
if (!vs->info) {
return;
}
g_assert(vs->info->base);
si = vnc_server_info_get(vs->vd);
if (!si) {
return;
}
switch (event) {
case QAPI_EVENT_VNC_CONNECTED:
qapi_ev... | false | qemu | ddf21908961073199f3d186204da4810f2ea150b | static void vnc_qmp_event(VncState *vs, QAPIEvent event)
{
VncServerInfo *si;
if (!vs->info) {
return;
}
g_assert(vs->info->base);
si = vnc_server_info_get(vs->vd);
if (!si) {
return;
}
switch (event) {
case QAPI_EVENT_VNC_CONNECTED:
qapi_ev... | {
"code": [],
"line_no": []
} | static void FUNC_0(VncState *VAR_0, QAPIEvent VAR_1)
{
VncServerInfo *si;
if (!VAR_0->info) {
return;
}
g_assert(VAR_0->info->base);
si = vnc_server_info_get(VAR_0->vd);
if (!si) {
return;
}
switch (VAR_1) {
case QAPI_EVENT_VNC_CONNECTED:
qa... | [
"static void FUNC_0(VncState *VAR_0, QAPIEvent VAR_1)\n{",
"VncServerInfo *si;",
"if (!VAR_0->info) {",
"return;",
"}",
"g_assert(VAR_0->info->base);",
"si = vnc_server_info_get(VAR_0->vd);",
"if (!si) {",
"return;",
"}",
"switch (VAR_1) {",
"case QAPI_EVENT_VNC_CONNECTED:\nqapi_event_send_vnc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31,
33
],
[
35
],
[
37,
39
],
[
41
],
[
43,
45
],
[
47
],
[
49,
51... |
12,997 | void dump_exec_info(FILE *f,
int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
{
int i, target_code_size, max_target_code_size;
int direct_jmp_count, direct_jmp2_count, cross_page;
TranslationBlock *tb;
target_code_size = 0;
max_target_code_size = 0;
cross_page = 0... | false | qemu | 055403b2a72729497fb58e0c6293547e767679d3 | void dump_exec_info(FILE *f,
int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
{
int i, target_code_size, max_target_code_size;
int direct_jmp_count, direct_jmp2_count, cross_page;
TranslationBlock *tb;
target_code_size = 0;
max_target_code_size = 0;
cross_page = 0... | {
"code": [],
"line_no": []
} | void FUNC_0(FILE *VAR_2,
int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...))
{
int VAR_3, VAR_4, VAR_5;
int VAR_6, VAR_7, VAR_8;
TranslationBlock *tb;
VAR_4 = 0;
VAR_5 = 0;
VAR_8 = 0;
VAR_6 = 0;
VAR_7 = 0;
for(VAR_3 = 0; VAR_3 < nb_tbs; VAR_3++) {
... | [
"void FUNC_0(FILE *VAR_2,\nint (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...))\n{",
"int VAR_3, VAR_4, VAR_5;",
"int VAR_6, VAR_7, VAR_8;",
"TranslationBlock *tb;",
"VAR_4 = 0;",
"VAR_5 = 0;",
"VAR_8 = 0;",
"VAR_6 = 0;",
"VAR_7 = 0;",
"for(VAR_3 = 0; VAR_3 < nb_tbs; VAR_3++) {",
"tb = &tbs[VAR_3]... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
12,998 | static void ac3_downmix(AC3DecodeContext *s)
{
int i, j;
float v0, v1;
for(i=0; i<256; i++) {
v0 = v1 = 0.0f;
for(j=0; j<s->fbw_channels; j++) {
v0 += s->output[j][i] * s->downmix_coeffs[j][0];
v1 += s->output[j][i] * s->downmix_coeffs[j][1];
}
... | false | FFmpeg | d8870f120ea5f46940bac63a90424ca6a6000ad9 | static void ac3_downmix(AC3DecodeContext *s)
{
int i, j;
float v0, v1;
for(i=0; i<256; i++) {
v0 = v1 = 0.0f;
for(j=0; j<s->fbw_channels; j++) {
v0 += s->output[j][i] * s->downmix_coeffs[j][0];
v1 += s->output[j][i] * s->downmix_coeffs[j][1];
}
... | {
"code": [],
"line_no": []
} | static void FUNC_0(AC3DecodeContext *VAR_0)
{
int VAR_1, VAR_2;
float VAR_3, VAR_4;
for(VAR_1=0; VAR_1<256; VAR_1++) {
VAR_3 = VAR_4 = 0.0f;
for(VAR_2=0; VAR_2<VAR_0->fbw_channels; VAR_2++) {
VAR_3 += VAR_0->output[VAR_2][VAR_1] * VAR_0->downmix_coeffs[VAR_2][0];
... | [
"static void FUNC_0(AC3DecodeContext *VAR_0)\n{",
"int VAR_1, VAR_2;",
"float VAR_3, VAR_4;",
"for(VAR_1=0; VAR_1<256; VAR_1++) {",
"VAR_3 = VAR_4 = 0.0f;",
"for(VAR_2=0; VAR_2<VAR_0->fbw_channels; VAR_2++) {",
"VAR_3 += VAR_0->output[VAR_2][VAR_1] * VAR_0->downmix_coeffs[VAR_2][0];",
"VAR_4 += VAR_0-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
13,000 | static void virtio_net_set_features(VirtIODevice *vdev, uint64_t features)
{
VirtIONet *n = VIRTIO_NET(vdev);
int i;
virtio_net_set_multiqueue(n,
__virtio_has_feature(features, VIRTIO_NET_F_MQ));
virtio_net_set_mrg_rx_bufs(n,
__virt... | false | qemu | 95129d6fc9ead97155627a4ca0cfd37282883658 | static void virtio_net_set_features(VirtIODevice *vdev, uint64_t features)
{
VirtIONet *n = VIRTIO_NET(vdev);
int i;
virtio_net_set_multiqueue(n,
__virtio_has_feature(features, VIRTIO_NET_F_MQ));
virtio_net_set_mrg_rx_bufs(n,
__virt... | {
"code": [],
"line_no": []
} | static void FUNC_0(VirtIODevice *VAR_0, uint64_t VAR_1)
{
VirtIONet *n = VIRTIO_NET(VAR_0);
int VAR_2;
virtio_net_set_multiqueue(n,
__virtio_has_feature(VAR_1, VIRTIO_NET_F_MQ));
virtio_net_set_mrg_rx_bufs(n,
__virtio_has_feature(VA... | [
"static void FUNC_0(VirtIODevice *VAR_0, uint64_t VAR_1)\n{",
"VirtIONet *n = VIRTIO_NET(VAR_0);",
"int VAR_2;",
"virtio_net_set_multiqueue(n,\n__virtio_has_feature(VAR_1, VIRTIO_NET_F_MQ));",
"virtio_net_set_mrg_rx_bufs(n,\n__virtio_has_feature(VAR_1,\nVIRTIO_NET_F_MRG_RXBUF),\n__virtio_has_feature(VAR_1,\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17,
19,
21,
23,
25
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
59... |
13,003 | int postcopy_ram_enable_notify(MigrationIncomingState *mis)
{
/* Open the fd for the kernel to give us userfaults */
mis->userfault_fd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
if (mis->userfault_fd == -1) {
error_report("%s: Failed to open userfault fd: %s", __func__,
... | false | qemu | d7651f150d61936344c4fab45eaeb0716c606af2 | int postcopy_ram_enable_notify(MigrationIncomingState *mis)
{
mis->userfault_fd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
if (mis->userfault_fd == -1) {
error_report("%s: Failed to open userfault fd: %s", __func__,
strerror(errno));
return -1;
}
... | {
"code": [],
"line_no": []
} | int FUNC_0(MigrationIncomingState *VAR_0)
{
VAR_0->userfault_fd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
if (VAR_0->userfault_fd == -1) {
error_report("%s: Failed to open userfault fd: %s", __func__,
strerror(errno));
return -1;
}
... | [
"int FUNC_0(MigrationIncomingState *VAR_0)\n{",
"VAR_0->userfault_fd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);",
"if (VAR_0->userfault_fd == -1) {",
"error_report(\"%s: Failed to open userfault fd: %s\", __func__,\nstrerror(errno));",
"return -1;",
"}",
"if (!ufd_version_check(VAR_0->userfaul... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
29
],
[
31
],
[
33
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57,
59
],
[
61
],
... |
13,004 | void qio_dns_resolver_lookup_async(QIODNSResolver *resolver,
SocketAddress *addr,
QIOTaskFunc func,
gpointer opaque,
GDestroyNotify notify)
{
QIOTask *task;
struct Q... | false | qemu | dfd100f242370886bb6732f70f1f7cbd8eb9fedc | void qio_dns_resolver_lookup_async(QIODNSResolver *resolver,
SocketAddress *addr,
QIOTaskFunc func,
gpointer opaque,
GDestroyNotify notify)
{
QIOTask *task;
struct Q... | {
"code": [],
"line_no": []
} | void FUNC_0(QIODNSResolver *VAR_0,
SocketAddress *VAR_1,
QIOTaskFunc VAR_2,
gpointer VAR_3,
GDestroyNotify VAR_4)
{
QIOTask *task;
struct QIODNSResolverLookupData *V... | [
"void FUNC_0(QIODNSResolver *VAR_0,\nSocketAddress *VAR_1,\nQIOTaskFunc VAR_2,\ngpointer VAR_3,\nGDestroyNotify VAR_4)\n{",
"QIOTask *task;",
"struct QIODNSResolverLookupData *VAR_5 =\ng_new0(struct QIODNSResolverLookupData, 1);",
"VAR_5->VAR_1 = QAPI_CLONE(SocketAddress, VAR_1);",
"task = qio_task_new(OBJE... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15,
17
],
[
21
],
[
25
],
[
29,
31,
33,
35
],
[
37
]
] |
13,005 | static void vhost_iommu_region_add(MemoryListener *listener,
MemoryRegionSection *section)
{
struct vhost_dev *dev = container_of(listener, struct vhost_dev,
iommu_listener);
struct vhost_iommu *iommu;
if (!memory_region_is_... | false | qemu | 698feb5e13a2d763369909ce33f2bd7a7c1c11c0 | static void vhost_iommu_region_add(MemoryListener *listener,
MemoryRegionSection *section)
{
struct vhost_dev *dev = container_of(listener, struct vhost_dev,
iommu_listener);
struct vhost_iommu *iommu;
if (!memory_region_is_... | {
"code": [],
"line_no": []
} | static void FUNC_0(MemoryListener *VAR_0,
MemoryRegionSection *VAR_1)
{
struct vhost_dev *VAR_2 = container_of(VAR_0, struct vhost_dev,
iommu_listener);
struct vhost_iommu *VAR_3;
if (!memory_region_is_iommu(VAR_1->mr)) {
... | [
"static void FUNC_0(MemoryListener *VAR_0,\nMemoryRegionSection *VAR_1)\n{",
"struct vhost_dev *VAR_2 = container_of(VAR_0, struct vhost_dev,\niommu_listener);",
"struct vhost_iommu *VAR_3;",
"if (!memory_region_is_iommu(VAR_1->mr)) {",
"return;",
"}",
"VAR_3 = g_malloc0(sizeof(*VAR_3));",
"VAR_3->n.n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
43
]
] |
13,006 | static void arm_timer_write(void *opaque, target_phys_addr_t offset,
uint32_t value)
{
arm_timer_state *s = (arm_timer_state *)opaque;
int freq;
switch (offset >> 2) {
case 0: /* TimerLoad */
s->limit = value;
arm_timer_recalibrate(s, 1);
br... | false | qemu | d6759902cb467c002086853d2eb38fb969c29f7f | static void arm_timer_write(void *opaque, target_phys_addr_t offset,
uint32_t value)
{
arm_timer_state *s = (arm_timer_state *)opaque;
int freq;
switch (offset >> 2) {
case 0:
s->limit = value;
arm_timer_recalibrate(s, 1);
break;
case ... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint32_t VAR_2)
{
arm_timer_state *s = (arm_timer_state *)VAR_0;
int VAR_3;
switch (VAR_1 >> 2) {
case 0:
s->limit = VAR_2;
arm_timer_recalibrate(s, 1);
break;
case 1:
... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{",
"arm_timer_state *s = (arm_timer_state *)VAR_0;",
"int VAR_3;",
"switch (VAR_1 >> 2) {",
"case 0:\ns->limit = VAR_2;",
"arm_timer_recalibrate(s, 1);",
"break;",
"case 1:\nbreak;",
"case 2:\nif (s->control & TIMER_CTRL_E... | [
0,
0,
0,
0,
0,
0,
0,
0,
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,
29
],
[
31,
33
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
... |
13,007 | static void qed_plug_allocating_write_reqs(BDRVQEDState *s)
{
assert(!s->allocating_write_reqs_plugged);
s->allocating_write_reqs_plugged = true;
}
| false | qemu | 1f01e50b8330c24714ddca5841fdbb703076b121 | static void qed_plug_allocating_write_reqs(BDRVQEDState *s)
{
assert(!s->allocating_write_reqs_plugged);
s->allocating_write_reqs_plugged = true;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(BDRVQEDState *VAR_0)
{
assert(!VAR_0->allocating_write_reqs_plugged);
VAR_0->allocating_write_reqs_plugged = true;
}
| [
"static void FUNC_0(BDRVQEDState *VAR_0)\n{",
"assert(!VAR_0->allocating_write_reqs_plugged);",
"VAR_0->allocating_write_reqs_plugged = true;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
13,008 | static inline void t_gen_swapr(TCGv d, TCGv s)
{
struct {
int shift; /* LSL when positive, LSR when negative. */
uint32_t mask;
} bitrev [] = {
{7, 0x80808080},
{5, 0x40404040},
{3, 0x20202020},
{1, 0x10101010},
{-1, 0x08080808},
{-3, 0x04040404},
{-5, 0x02020202},
{-7, 0x01010101}
... | false | qemu | a7812ae412311d7d47f8aa85656faadac9d64b56 | static inline void t_gen_swapr(TCGv d, TCGv s)
{
struct {
int shift;
uint32_t mask;
} bitrev [] = {
{7, 0x80808080},
{5, 0x40404040},
{3, 0x20202020},
{1, 0x10101010},
{-1, 0x08080808},
{-3, 0x04040404},
{-5, 0x02020202},
{-7, 0x01010101}
};
int i;
TCGv t, org_s;
t = tcg... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1)
{
struct {
int shift;
uint32_t mask;
} VAR_2 [] = {
{7, 0x80808080},
{5, 0x40404040},
{3, 0x20202020},
{1, 0x10101010},
{-1, 0x08080808},
{-3, 0x04040404},
{-5, 0x02020202},
{-7, 0x01010101}
};
int VAR_3;
TCGv t, org_s;
t... | [
"static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1)\n{",
"struct {",
"int shift;",
"uint32_t mask;",
"} VAR_2 [] = {",
"{7, 0x80808080},",
"{5, 0x40404040},",
"{3, 0x20202020},",
"{1, 0x10101010},",
"{-1, 0x08080808},",
"{-3, 0x04040404},",
"{-5, 0x02020202},",
"{-7, 0x01010101}",
"};",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
39
],
[
41
],
[
43
],
[
47
... |
13,009 | int h263_decode_picture_header(MpegEncContext *s)
{
int format, width, height, i;
uint32_t startcode;
align_get_bits(&s->gb);
startcode= get_bits(&s->gb, 22-8);
for(i= s->gb.size_in_bits - get_bits_count(&s->gb); i>24; i-=8) {
startcode = ((startcode << 8) | get_bits(&s->gb,... | false | FFmpeg | 332f9ac4e31ce5e6d0c42ac9e0229d7d1b2b4d60 | int h263_decode_picture_header(MpegEncContext *s)
{
int format, width, height, i;
uint32_t startcode;
align_get_bits(&s->gb);
startcode= get_bits(&s->gb, 22-8);
for(i= s->gb.size_in_bits - get_bits_count(&s->gb); i>24; i-=8) {
startcode = ((startcode << 8) | get_bits(&s->gb,... | {
"code": [],
"line_no": []
} | int FUNC_0(MpegEncContext *VAR_0)
{
int VAR_1, VAR_2, VAR_3, VAR_6;
uint32_t startcode;
align_get_bits(&VAR_0->gb);
startcode= get_bits(&VAR_0->gb, 22-8);
for(VAR_6= VAR_0->gb.size_in_bits - get_bits_count(&VAR_0->gb); VAR_6>24; VAR_6-=8) {
startcode = ((startcode << 8) | ge... | [
"int FUNC_0(MpegEncContext *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3, VAR_6;",
"uint32_t startcode;",
"align_get_bits(&VAR_0->gb);",
"startcode= get_bits(&VAR_0->gb, 22-8);",
"for(VAR_6= VAR_0->gb.size_in_bits - get_bits_count(&VAR_0->gb); VAR_6>24; VAR_6-=8) {",
"startcode = ((startcode << 8) | get_bits(&V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
19
],
[
21
],
[
25,
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
49
],
[
53
],
[
55
],
[
57
],
[
59
],
... |
13,010 | static X86CPU *pc_new_cpu(const char *cpu_model, int64_t apic_id,
Error **errp)
{
X86CPU *cpu = NULL;
Error *local_err = NULL;
cpu = cpu_x86_create(cpu_model, &local_err);
if (local_err != NULL) {
goto out;
}
object_property_set_int(OBJECT(cpu), api... | false | qemu | 6aff24c6a61c6fec31e555c7748ba6085b7b2c06 | static X86CPU *pc_new_cpu(const char *cpu_model, int64_t apic_id,
Error **errp)
{
X86CPU *cpu = NULL;
Error *local_err = NULL;
cpu = cpu_x86_create(cpu_model, &local_err);
if (local_err != NULL) {
goto out;
}
object_property_set_int(OBJECT(cpu), api... | {
"code": [],
"line_no": []
} | static X86CPU *FUNC_0(const char *cpu_model, int64_t apic_id,
Error **errp)
{
X86CPU *cpu = NULL;
Error *local_err = NULL;
cpu = cpu_x86_create(cpu_model, &local_err);
if (local_err != NULL) {
goto out;
}
object_property_set_int(OBJECT(cpu), apic_id... | [
"static X86CPU *FUNC_0(const char *cpu_model, int64_t apic_id,\nError **errp)\n{",
"X86CPU *cpu = NULL;",
"Error *local_err = NULL;",
"cpu = cpu_x86_create(cpu_model, &local_err);",
"if (local_err != NULL) {",
"goto out;",
"}",
"object_property_set_int(OBJECT(cpu), apic_id, \"apic-id\", &local_err);",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
13,011 | static int find_pte64 (mmu_ctx_t *ctx, int h, int rw)
{
return _find_pte(ctx, 1, h, rw);
}
| false | qemu | b227a8e9aa5f27d29f77ba90d5eb9d0662a1175e | static int find_pte64 (mmu_ctx_t *ctx, int h, int rw)
{
return _find_pte(ctx, 1, h, rw);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0 (mmu_ctx_t *VAR_0, int VAR_1, int VAR_2)
{
return _find_pte(VAR_0, 1, VAR_1, VAR_2);
}
| [
"static int FUNC_0 (mmu_ctx_t *VAR_0, int VAR_1, int VAR_2)\n{",
"return _find_pte(VAR_0, 1, VAR_1, VAR_2);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
13,013 | void pc_basic_device_init(qemu_irq *isa_irq,
ISADevice **rtc_state)
{
int i;
DriveInfo *fd[MAX_FD];
PITState *pit;
qemu_irq rtc_irq = NULL;
qemu_irq *a20_line;
ISADevice *i8042, *port92, *vmmouse;
qemu_irq *cpu_exit_irq;
register_ioport_write(0x80, 1... | false | qemu | 64d7e9a421fea0ac50b44541f5521de455e7cd5d | void pc_basic_device_init(qemu_irq *isa_irq,
ISADevice **rtc_state)
{
int i;
DriveInfo *fd[MAX_FD];
PITState *pit;
qemu_irq rtc_irq = NULL;
qemu_irq *a20_line;
ISADevice *i8042, *port92, *vmmouse;
qemu_irq *cpu_exit_irq;
register_ioport_write(0x80, 1... | {
"code": [],
"line_no": []
} | void FUNC_0(qemu_irq *VAR_0,
ISADevice **VAR_1)
{
int VAR_2;
DriveInfo *fd[MAX_FD];
PITState *pit;
qemu_irq rtc_irq = NULL;
qemu_irq *a20_line;
ISADevice *i8042, *port92, *vmmouse;
qemu_irq *cpu_exit_irq;
register_ioport_write(0x80, 1, 1, ioport80_wr... | [
"void FUNC_0(qemu_irq *VAR_0,\nISADevice **VAR_1)\n{",
"int VAR_2;",
"DriveInfo *fd[MAX_FD];",
"PITState *pit;",
"qemu_irq rtc_irq = NULL;",
"qemu_irq *a20_line;",
"ISADevice *i8042, *port92, *vmmouse;",
"qemu_irq *cpu_exit_irq;",
"register_ioport_write(0x80, 1, 1, ioport80_write, NULL);",
"regist... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
13,014 | static JSONTokenType token_get_type(QObject *obj)
{
return qdict_get_int(qobject_to_qdict(obj), "type");
}
| false | qemu | 9bada8971173345ceb37ed1a47b00a01a4dd48cf | static JSONTokenType token_get_type(QObject *obj)
{
return qdict_get_int(qobject_to_qdict(obj), "type");
}
| {
"code": [],
"line_no": []
} | static JSONTokenType FUNC_0(QObject *obj)
{
return qdict_get_int(qobject_to_qdict(obj), "type");
}
| [
"static JSONTokenType FUNC_0(QObject *obj)\n{",
"return qdict_get_int(qobject_to_qdict(obj), \"type\");",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
13,015 | void pc_cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size,
const char *boot_device,
BusState *idebus0, BusState *idebus1,
ISADevice *s)
{
int val, nb, nb_heads, max_track, last_sect, i;
FDriveType fd_type[2];
DriveInfo *fd[2];
stati... | false | qemu | e14c8062f4c4c336c6e5fa5b51472ffff5f3fe38 | void pc_cmos_init(ram_addr_t ram_size, ram_addr_t above_4g_mem_size,
const char *boot_device,
BusState *idebus0, BusState *idebus1,
ISADevice *s)
{
int val, nb, nb_heads, max_track, last_sect, i;
FDriveType fd_type[2];
DriveInfo *fd[2];
stati... | {
"code": [],
"line_no": []
} | void FUNC_0(ram_addr_t VAR_0, ram_addr_t VAR_1,
const char *VAR_2,
BusState *VAR_3, BusState *VAR_4,
ISADevice *VAR_5)
{
int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;
FDriveType fd_type[2];
DriveInfo *fd[2];
static pc_cmos_init_late_arg VAR... | [
"void FUNC_0(ram_addr_t VAR_0, ram_addr_t VAR_1,\nconst char *VAR_2,\nBusState *VAR_3, BusState *VAR_4,\nISADevice *VAR_5)\n{",
"int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;",
"FDriveType fd_type[2];",
"DriveInfo *fd[2];",
"static pc_cmos_init_late_arg VAR_12;",
"VAR_6 = 640;",
"rtc_set_memory(VAR_5,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
[
57
... |
13,018 | static uint32_t slow_bar_readw(void *opaque, target_phys_addr_t addr)
{
AssignedDevRegion *d = opaque;
uint16_t *in = (uint16_t *)(d->u.r_virtbase + addr);
uint32_t r;
r = *in;
DEBUG("slow_bar_readl addr=0x" TARGET_FMT_plx " val=0x%08x\n", addr, r);
return r;
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint32_t slow_bar_readw(void *opaque, target_phys_addr_t addr)
{
AssignedDevRegion *d = opaque;
uint16_t *in = (uint16_t *)(d->u.r_virtbase + addr);
uint32_t r;
r = *in;
DEBUG("slow_bar_readl addr=0x" TARGET_FMT_plx " val=0x%08x\n", addr, r);
return r;
}
| {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)
{
AssignedDevRegion *d = opaque;
uint16_t *in = (uint16_t *)(d->u.r_virtbase + addr);
uint32_t r;
r = *in;
DEBUG("slow_bar_readl addr=0x" TARGET_FMT_plx " val=0x%08x\n", addr, r);
return r;
}
| [
"static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{",
"AssignedDevRegion *d = opaque;",
"uint16_t *in = (uint16_t *)(d->u.r_virtbase + addr);",
"uint32_t r;",
"r = *in;",
"DEBUG(\"slow_bar_readl addr=0x\" TARGET_FMT_plx \" val=0x%08x\\n\", addr, r);",
"return r;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
]
] |
13,019 | static void simple_dict(void)
{
int i;
struct {
const char *encoded;
LiteralQObject decoded;
} test_cases[] = {
{
.encoded = "{\"foo\": 42, \"bar\": \"hello world\"}",
.decoded = QLIT_QDICT(((LiteralQDictEntry[]){
{ "foo", QLI... | true | qemu | aec4b054ea36c53c8b887da99f20010133b84378 | static void simple_dict(void)
{
int i;
struct {
const char *encoded;
LiteralQObject decoded;
} test_cases[] = {
{
.encoded = "{\"foo\": 42, \"bar\": \"hello world\"}",
.decoded = QLIT_QDICT(((LiteralQDictEntry[]){
{ "foo", QLI... | {
"code": [
" obj = qobject_from_json(test_cases[i].encoded, NULL);",
" obj = qobject_from_json(test_cases[i].encoded, NULL);",
" obj = qobject_from_json(test_cases[i].encoded, NULL);",
" obj = qobject_from_json(test_cases[i].encoded, NULL);",
" obj = qobject_fro... | static void FUNC_0(void)
{
int VAR_0;
struct {
const char *encoded;
LiteralQObject decoded;
} VAR_1[] = {
{
.encoded = "{\"foo\": 42, \"bar\": \"hello world\"}",
.decoded = QLIT_QDICT(((LiteralQDictEntry[]){
{ "foo", QLIT_QINT... | [
"static void FUNC_0(void)\n{",
"int VAR_0;",
"struct {",
"const char *encoded;",
"LiteralQObject decoded;",
"} VAR_1[] = {",
"{",
".encoded = \"{\\\"foo\\\": 42, \\\"bar\\\": \\\"hello world\\\"}\",",
".decoded = QLIT_QDICT(((LiteralQDictEntry[]){",
"{ \"foo\", QLIT_QINT(42) },",
"{ \"bar\", QLI... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
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
... |
13,020 | static av_always_inline void idct(uint8_t *dst, int stride, int16_t *input, int type)
{
int16_t *ip = input;
uint8_t *cm = ff_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 */
for (i = 0; i... | true | FFmpeg | c23acbaed40101c677dfcfbbfe0d2c230a8e8f44 | static av_always_inline void idct(uint8_t *dst, int stride, int16_t *input, int type)
{
int16_t *ip = input;
uint8_t *cm = ff_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++) {
i... | {
"code": [
" uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
" uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
" uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
" uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
" uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;",
" uint8_t *cm = ff_cropTbl + MAX_NEG_CR... | static av_always_inline void FUNC_0(uint8_t *dst, int stride, int16_t *input, int type)
{
int16_t *ip = input;
uint8_t *cm = ff_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;
... | [
"static av_always_inline void FUNC_0(uint8_t *dst, int stride, int16_t *input, int type)\n{",
"int16_t *ip = input;",
"uint8_t *cm = ff_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;"... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
45
],
[
47
],
[
51
],
[
53
],
[
57
],
[
59... |
13,021 | static int decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
const uint8_t *buf_end = avpkt->data + avpkt->size;
int buf_size = avpkt->size;
QdrawContext * const a = avctx->priv_data;
A... | true | FFmpeg | 44e2f0c3cd2df68659e07ed3d5eab4974794eb33 | static int decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
const uint8_t *buf_end = avpkt->data + avpkt->size;
int buf_size = avpkt->size;
QdrawContext * const a = avctx->priv_data;
A... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
const uint8_t *VAR_5 = VAR_3->VAR_1 + VAR_3->size;
int VAR_6 = VAR_3->size;
QdrawContext * const a = VAR_0->priv_data;
AVFrame * c... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"const uint8_t *VAR_5 = VAR_3->VAR_1 + VAR_3->size;",
"int VAR_6 = VAR_3->size;",
"QdrawContext * const a = VAR_0->priv_data;",
"AVFrame * const p= (AVFrame*)&a->pic;",
"uin... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2,
3,
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15,
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
... |
13,022 | static int net_slirp_init(Monitor *mon, VLANState *vlan, const char *model,
const char *name, int restricted,
const char *vnetwork, const char *vhost,
const char *vhostname, const char *tftp_export,
const char *b... | true | qemu | 0752706de257b38763006ff5bb6b39a97e669ba2 | static int net_slirp_init(Monitor *mon, VLANState *vlan, const char *model,
const char *name, int restricted,
const char *vnetwork, const char *vhost,
const char *vhostname, const char *tftp_export,
const char *b... | {
"code": [
" slirp_hostfwd(s, mon, config->str,",
" config->flags & SLIRP_CFG_LEGACY);",
" slirp_guestfwd(s, mon, config->str,",
" config->flags & SLIRP_CFG_LEGACY);",
" slirp_smb(s, mon, smb_export, smbsrv);"
],
... | static int FUNC_0(Monitor *VAR_0, VLANState *VAR_1, const char *VAR_2,
const char *VAR_3, int VAR_4,
const char *VAR_5, const char *VAR_6,
const char *VAR_7, const char *VAR_8,
const char *VAR_9, const char *VAR_... | [
"static int FUNC_0(Monitor *VAR_0, VLANState *VAR_1, const char *VAR_2,\nconst char *VAR_3, int VAR_4,\nconst char *VAR_5, const char *VAR_6,\nconst char *VAR_7, const char *VAR_8,\nconst char *VAR_9, const char *VAR_10,\nconst char *VAR_11, const char *VAR_12,\nconst char *VAR_13)\n{",
"struct in_addr VAR_14 = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
... |
13,023 | void exec_start_outgoing_migration(MigrationState *s, const char *command, Error **errp)
{
QIOChannel *ioc;
const char *argv[] = { "/bin/sh", "-c", command, NULL };
trace_migration_exec_outgoing(command);
ioc = QIO_CHANNEL(qio_channel_command_new_spawn(argv,
... | true | qemu | e122636562218b3d442cd2cd18fbc188dd9ce709 | void exec_start_outgoing_migration(MigrationState *s, const char *command, Error **errp)
{
QIOChannel *ioc;
const char *argv[] = { "/bin/sh", "-c", command, NULL };
trace_migration_exec_outgoing(command);
ioc = QIO_CHANNEL(qio_channel_command_new_spawn(argv,
... | {
"code": [
" migration_set_outgoing_channel(s, ioc);",
" migration_set_outgoing_channel(s, ioc);"
],
"line_no": [
27,
27
]
} | void FUNC_0(MigrationState *VAR_0, const char *VAR_1, Error **VAR_2)
{
QIOChannel *ioc;
const char *VAR_3[] = { "/bin/sh", "-c", VAR_1, NULL };
trace_migration_exec_outgoing(VAR_1);
ioc = QIO_CHANNEL(qio_channel_command_new_spawn(VAR_3,
O_WRONL... | [
"void FUNC_0(MigrationState *VAR_0, const char *VAR_1, Error **VAR_2)\n{",
"QIOChannel *ioc;",
"const char *VAR_3[] = { \"/bin/sh\", \"-c\", VAR_1, NULL };",
"trace_migration_exec_outgoing(VAR_1);",
"ioc = QIO_CHANNEL(qio_channel_command_new_spawn(VAR_3,\nO_WRONLY,\nVAR_2));",
"if (!ioc) {",
"return;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15,
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
]
] |
13,025 | static int nsv_probe(AVProbeData *p)
{
int i;
av_dlog(NULL, "nsv_probe(), buf_size %d\n", p->buf_size);
/* check file header */
/* streamed files might not have any header */
if (p->buf[0] == 'N' && p->buf[1] == 'S' &&
p->buf[2] == 'V' && (p->buf[3] == 'f' || p->buf[3] == 's'))
... | false | FFmpeg | 45faf7fcd335b91e41b0e3ba4e397a9640d8c694 | static int nsv_probe(AVProbeData *p)
{
int i;
av_dlog(NULL, "nsv_probe(), buf_size %d\n", p->buf_size);
if (p->buf[0] == 'N' && p->buf[1] == 'S' &&
p->buf[2] == 'V' && (p->buf[3] == 'f' || p->buf[3] == 's'))
return AVPROBE_SCORE_MAX;
for (i = 1;... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVProbeData *VAR_0)
{
int VAR_1;
av_dlog(NULL, "FUNC_0(), buf_size %d\n", VAR_0->buf_size);
if (VAR_0->buf[0] == 'N' && VAR_0->buf[1] == 'S' &&
VAR_0->buf[2] == 'V' && (VAR_0->buf[3] == 'f' || VAR_0->buf[3] == 's'))
return AVPROBE_SCORE_MAX;
... | [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"int VAR_1;",
"av_dlog(NULL, \"FUNC_0(), buf_size %d\\n\", VAR_0->buf_size);",
"if (VAR_0->buf[0] == 'N' && VAR_0->buf[1] == 'S' &&\nVAR_0->buf[2] == 'V' && (VAR_0->buf[3] == 'f' || VAR_0->buf[3] == 's'))\nreturn AVPROBE_SCORE_MAX;",
"for (VAR_1 = 1; VAR_1 < VAR_0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13,
15,
17
],
[
27
],
[
29,
31,
33
],
[
35
],
[
39,
41
],
[
45
],
[
47
]
] |
13,026 | static int nvdec_hevc_decode_init(AVCodecContext *avctx)
{
const HEVCContext *s = avctx->priv_data;
const HEVCSPS *sps = s->ps.sps;
return ff_nvdec_decode_init(avctx, sps->temporal_layer[sps->max_sub_layers - 1].max_dec_pic_buffering + 1);
}
| false | FFmpeg | 7546964f96168cd6ac819ef4c3212ee586619f1a | static int nvdec_hevc_decode_init(AVCodecContext *avctx)
{
const HEVCContext *s = avctx->priv_data;
const HEVCSPS *sps = s->ps.sps;
return ff_nvdec_decode_init(avctx, sps->temporal_layer[sps->max_sub_layers - 1].max_dec_pic_buffering + 1);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0)
{
const HEVCContext *VAR_1 = VAR_0->priv_data;
const HEVCSPS *VAR_2 = VAR_1->ps.VAR_2;
return ff_nvdec_decode_init(VAR_0, VAR_2->temporal_layer[VAR_2->max_sub_layers - 1].max_dec_pic_buffering + 1);
}
| [
"static int FUNC_0(AVCodecContext *VAR_0)\n{",
"const HEVCContext *VAR_1 = VAR_0->priv_data;",
"const HEVCSPS *VAR_2 = VAR_1->ps.VAR_2;",
"return ff_nvdec_decode_init(VAR_0, VAR_2->temporal_layer[VAR_2->max_sub_layers - 1].max_dec_pic_buffering + 1);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
13,028 | qemu_irq sh7750_irl(SH7750State *s)
{
sh_intc_toggle_source(sh_intc_source(&s->intc, IRL), 1, 0); /* enable */
return qemu_allocate_irqs(sh_intc_set_irl, sh_intc_source(&s->intc, IRL),
1)[0];
}
| true | qemu | f3c7d0389fe8a2792fd4c1cf151b885de03c8f62 | qemu_irq sh7750_irl(SH7750State *s)
{
sh_intc_toggle_source(sh_intc_source(&s->intc, IRL), 1, 0);
return qemu_allocate_irqs(sh_intc_set_irl, sh_intc_source(&s->intc, IRL),
1)[0];
}
| {
"code": [
" return qemu_allocate_irqs(sh_intc_set_irl, sh_intc_source(&s->intc, IRL),",
" 1)[0];"
],
"line_no": [
7,
9
]
} | qemu_irq FUNC_0(SH7750State *s)
{
sh_intc_toggle_source(sh_intc_source(&s->intc, IRL), 1, 0);
return qemu_allocate_irqs(sh_intc_set_irl, sh_intc_source(&s->intc, IRL),
1)[0];
}
| [
"qemu_irq FUNC_0(SH7750State *s)\n{",
"sh_intc_toggle_source(sh_intc_source(&s->intc, IRL), 1, 0);",
"return qemu_allocate_irqs(sh_intc_set_irl, sh_intc_source(&s->intc, IRL),\n1)[0];",
"}"
] | [
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
]
] |
13,029 | static uint64_t ivshmem_io_read(void *opaque, hwaddr addr,
unsigned size)
{
IVShmemState *s = opaque;
uint32_t ret;
switch (addr)
{
case INTRMASK:
ret = ivshmem_IntrMask_read(s);
break;
case INTRSTATUS:
... | true | qemu | f689d2811a36894618087e1e2cc3ade78e758e94 | static uint64_t ivshmem_io_read(void *opaque, hwaddr addr,
unsigned size)
{
IVShmemState *s = opaque;
uint32_t ret;
switch (addr)
{
case INTRMASK:
ret = ivshmem_IntrMask_read(s);
break;
case INTRSTATUS:
... | {
"code": [
" if (s->shm_fd >= 0) {"
],
"line_no": [
39
]
} | static uint64_t FUNC_0(void *opaque, hwaddr addr,
unsigned size)
{
IVShmemState *s = opaque;
uint32_t ret;
switch (addr)
{
case INTRMASK:
ret = ivshmem_IntrMask_read(s);
break;
case INTRSTATUS:
ret = ivs... | [
"static uint64_t FUNC_0(void *opaque, hwaddr addr,\nunsigned size)\n{",
"IVShmemState *s = opaque;",
"uint32_t ret;",
"switch (addr)\n{",
"case INTRMASK:\nret = ivshmem_IntrMask_read(s);",
"break;",
"case INTRSTATUS:\nret = ivshmem_IntrStatus_read(s);",
"break;",
"case IVPOSITION:\nif (s->shm_fd >= ... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
9
],
[
11
],
[
15,
17
],
[
19,
21
],
[
23
],
[
27,
29
],
[
31
],
[
35,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53,
55
],
[
57
],
[
59... |
13,030 | static void mcf_fec_enable_rx(mcf_fec_state *s)
{
mcf_fec_bd bd;
mcf_fec_read_bd(&bd, s->rx_descriptor);
s->rx_enabled = ((bd.flags & FEC_BD_E) != 0);
if (!s->rx_enabled)
DPRINTF("RX buffer full\n");
}
| true | qemu | ff1d2ac949dc94d8a0e71fd46939fb69c2ef075b | static void mcf_fec_enable_rx(mcf_fec_state *s)
{
mcf_fec_bd bd;
mcf_fec_read_bd(&bd, s->rx_descriptor);
s->rx_enabled = ((bd.flags & FEC_BD_E) != 0);
if (!s->rx_enabled)
DPRINTF("RX buffer full\n");
}
| {
"code": [
" if (!s->rx_enabled)",
" DPRINTF(\"RX buffer full\\n\");"
],
"line_no": [
13,
15
]
} | static void FUNC_0(mcf_fec_state *VAR_0)
{
mcf_fec_bd bd;
mcf_fec_read_bd(&bd, VAR_0->rx_descriptor);
VAR_0->rx_enabled = ((bd.flags & FEC_BD_E) != 0);
if (!VAR_0->rx_enabled)
DPRINTF("RX buffer full\n");
}
| [
"static void FUNC_0(mcf_fec_state *VAR_0)\n{",
"mcf_fec_bd bd;",
"mcf_fec_read_bd(&bd, VAR_0->rx_descriptor);",
"VAR_0->rx_enabled = ((bd.flags & FEC_BD_E) != 0);",
"if (!VAR_0->rx_enabled)\nDPRINTF(\"RX buffer full\\n\");",
"}"
] | [
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13,
15
],
[
17
]
] |
13,032 | void usb_packet_setup(USBPacket *p, int pid, USBEndpoint *ep, uint64_t id,
bool short_not_ok, bool int_req)
{
assert(!usb_packet_is_inflight(p));
assert(p->iov.iov != NULL);
p->id = id;
p->pid = pid;
p->ep = ep;
p->result = 0;
p->parameter = 0;
p->short_no... | true | qemu | a552a966f16b7b39c5df16fc17e12d02c4fa5954 | void usb_packet_setup(USBPacket *p, int pid, USBEndpoint *ep, uint64_t id,
bool short_not_ok, bool int_req)
{
assert(!usb_packet_is_inflight(p));
assert(p->iov.iov != NULL);
p->id = id;
p->pid = pid;
p->ep = ep;
p->result = 0;
p->parameter = 0;
p->short_no... | {
"code": [],
"line_no": []
} | void FUNC_0(USBPacket *VAR_0, int VAR_1, USBEndpoint *VAR_2, uint64_t VAR_3,
bool VAR_4, bool VAR_5)
{
assert(!usb_packet_is_inflight(VAR_0));
assert(VAR_0->iov.iov != NULL);
VAR_0->VAR_3 = VAR_3;
VAR_0->VAR_1 = VAR_1;
VAR_0->VAR_2 = VAR_2;
VAR_0->result = 0;
V... | [
"void FUNC_0(USBPacket *VAR_0, int VAR_1, USBEndpoint *VAR_2, uint64_t VAR_3,\nbool VAR_4, bool VAR_5)\n{",
"assert(!usb_packet_is_inflight(VAR_0));",
"assert(VAR_0->iov.iov != NULL);",
"VAR_0->VAR_3 = VAR_3;",
"VAR_0->VAR_1 = VAR_1;",
"VAR_0->VAR_2 = VAR_2;",
"VAR_0->result = 0;",
"VAR_0->parameter =... | [
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
],
[
26
],
[
28
],
[
30
]
] |
13,033 | static void virtio_scsi_device_realize(DeviceState *dev, Error **errp)
{
VirtIODevice *vdev = VIRTIO_DEVICE(dev);
VirtIOSCSI *s = VIRTIO_SCSI(dev);
static int virtio_scsi_id;
Error *err = NULL;
virtio_scsi_common_realize(dev, &err);
if (err != NULL) {
error_propagate(errp, err)... | true | qemu | 91d670fbf9945ca4ecbd123affb36889e7fe8a5d | static void virtio_scsi_device_realize(DeviceState *dev, Error **errp)
{
VirtIODevice *vdev = VIRTIO_DEVICE(dev);
VirtIOSCSI *s = VIRTIO_SCSI(dev);
static int virtio_scsi_id;
Error *err = NULL;
virtio_scsi_common_realize(dev, &err);
if (err != NULL) {
error_propagate(errp, err)... | {
"code": [
" virtio_scsi_common_realize(dev, &err);",
" virtio_scsi_common_realize(dev, &err);"
],
"line_no": [
15,
15
]
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);
VirtIOSCSI *s = VIRTIO_SCSI(VAR_0);
static int VAR_2;
Error *err = NULL;
virtio_scsi_common_realize(VAR_0, &err);
if (err != NULL) {
error_propagate(VAR_1, err);
return;
... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);",
"VirtIOSCSI *s = VIRTIO_SCSI(VAR_0);",
"static int VAR_2;",
"Error *err = NULL;",
"virtio_scsi_common_realize(VAR_0, &err);",
"if (err != NULL) {",
"error_propagate(VAR_1, err);",
"return;",
"... | [
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
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49,
51
... |
13,037 | void qemu_mutex_lock(QemuMutex *mutex)
{
EnterCriticalSection(&mutex->lock);
/* Win32 CRITICAL_SECTIONs are recursive. Assert that we're not
* using them as such.
*/
assert(mutex->owner == 0);
mutex->owner = GetCurrentThreadId();
}
| true | qemu | 12f8def0e02232d7c6416ad9b66640f973c531d1 | void qemu_mutex_lock(QemuMutex *mutex)
{
EnterCriticalSection(&mutex->lock);
assert(mutex->owner == 0);
mutex->owner = GetCurrentThreadId();
}
| {
"code": [
" assert(mutex->owner == 0);",
" EnterCriticalSection(&mutex->lock);",
" assert(mutex->owner == 0);",
" mutex->owner = GetCurrentThreadId();"
],
"line_no": [
15,
5,
15,
17
]
} | void FUNC_0(QemuMutex *VAR_0)
{
EnterCriticalSection(&VAR_0->lock);
assert(VAR_0->owner == 0);
VAR_0->owner = GetCurrentThreadId();
}
| [
"void FUNC_0(QemuMutex *VAR_0)\n{",
"EnterCriticalSection(&VAR_0->lock);",
"assert(VAR_0->owner == 0);",
"VAR_0->owner = GetCurrentThreadId();",
"}"
] | [
0,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
15
],
[
17
],
[
19
]
] |
13,038 | void HELPER(v7m_msr)(CPUARMState *env, uint32_t maskreg, uint32_t val)
{
/* We're passed bits [11..0] of the instruction; extract
* SYSm and the mask bits.
* Invalid combinations of SYSm and mask are UNPREDICTABLE;
* we choose to treat them as if the mask bits were valid.
* NB that the pse... | true | qemu | 792dac309c8660306557ba058b8b5a6a75ab3c1f | void HELPER(v7m_msr)(CPUARMState *env, uint32_t maskreg, uint32_t val)
{
uint32_t mask = extract32(maskreg, 8, 4);
uint32_t reg = extract32(maskreg, 0, 8);
if (arm_current_el(env) == 0 && reg > 7) {
return;
}
switch (reg) {
case 0 ... 7:
... | {
"code": [
" switch_v7m_sp(env, (val & R_V7M_CONTROL_SPSEL_MASK) != 0);",
" env->v7m.control = val & (R_V7M_CONTROL_SPSEL_MASK |",
" R_V7M_CONTROL_NPRIV_MASK);"
],
"line_no": [
139,
141,
143
]
} | void FUNC_0(v7m_msr)(CPUARMState *env, uint32_t maskreg, uint32_t val)
{
uint32_t mask = extract32(maskreg, 8, 4);
uint32_t reg = extract32(maskreg, 0, 8);
if (arm_current_el(env) == 0 && reg > 7) {
return;
}
switch (reg) {
case 0 ... 7:
... | [
"void FUNC_0(v7m_msr)(CPUARMState *env, uint32_t maskreg, uint32_t val)\n{",
"uint32_t mask = extract32(maskreg, 8, 4);",
"uint32_t reg = extract32(maskreg, 0, 8);",
"if (arm_current_el(env) == 0 && reg > 7) {",
"return;",
"}",
"switch (reg) {",
"case 0 ... 7:\nif (!(reg & 4)) {",
"uint32_t apsrmask... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
[
1,
3
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37,
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
],
[
63
],
[
65,
... |
13,041 | static int parse_h264_sdp_line(AVFormatContext *s, int st_index,
PayloadContext *h264_data, const char *line)
{
AVStream *stream;
AVCodecContext *codec;
const char *p = line;
if (st_index < 0)
return 0;
stream = s->streams[st_index];
codec = st... | true | FFmpeg | 5a571d324129ce367584ad9d92aae1d286f389a2 | static int parse_h264_sdp_line(AVFormatContext *s, int st_index,
PayloadContext *h264_data, const char *line)
{
AVStream *stream;
AVCodecContext *codec;
const char *p = line;
if (st_index < 0)
return 0;
stream = s->streams[st_index];
codec = st... | {
"code": [
" assert(h264_data->cookie == MAGIC_COOKIE);"
],
"line_no": [
25
]
} | static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,
PayloadContext *VAR_2, const char *VAR_3)
{
AVStream *stream;
AVCodecContext *codec;
const char *VAR_4 = VAR_3;
if (VAR_1 < 0)
return 0;
stream = VAR_0->streams[VAR_1];
codec = stream->codec;... | [
"static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nPayloadContext *VAR_2, const char *VAR_3)\n{",
"AVStream *stream;",
"AVCodecContext *codec;",
"const char *VAR_4 = VAR_3;",
"if (VAR_1 < 0)\nreturn 0;",
"stream = VAR_0->streams[VAR_1];",
"codec = stream->codec;",
"assert(VAR_2->cookie == MAGIC_CO... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
59
... |
13,042 | PPC_OP(icbi)
{
do_icbi();
RETURN();
}
| true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | PPC_OP(icbi)
{
do_icbi();
RETURN();
}
| {
"code": [
" RETURN();",
"PPC_OP(icbi)",
" RETURN();"
],
"line_no": [
7,
1,
7
]
} | FUNC_0(VAR_0)
{
do_icbi();
RETURN();
}
| [
"FUNC_0(VAR_0)\n{",
"do_icbi();",
"RETURN();",
"}"
] | [
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
13,043 | void ff_vp3_idct_put_c(uint8_t *dest/*align 8*/, int line_size, DCTELEM *block/*align 16*/){
idct(dest, line_size, block, 1);
}
| false | FFmpeg | 28f9ab7029bd1a02f659995919f899f84ee7361b | void ff_vp3_idct_put_c(uint8_t *dest, int line_size, DCTELEM *block){
idct(dest, line_size, block, 1);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2){
idct(VAR_0, VAR_1, VAR_2, 1);
}
| [
"void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2){",
"idct(VAR_0, VAR_1, VAR_2, 1);",
"}"
] | [
0,
0,
0
] | [
[
1
],
[
3
],
[
5
]
] |
13,044 | static bool is_iso_bc_entry_compatible(IsoBcSection *s)
{
return true;
}
| false | qemu | ba21f0cca8165c5b284274edd12dc955cf4fb248 | static bool is_iso_bc_entry_compatible(IsoBcSection *s)
{
return true;
}
| {
"code": [],
"line_no": []
} | static bool FUNC_0(IsoBcSection *s)
{
return true;
}
| [
"static bool FUNC_0(IsoBcSection *s)\n{",
"return true;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
13,045 | int64_t bdrv_get_block_status(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum)
{
return bdrv_get_block_status_above(bs, backing_bs(bs),
sector_num, nb_sectors, pnum);
}
| false | qemu | 67a0fd2a9bca204d2b39f910a97c7137636a0715 | int64_t bdrv_get_block_status(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum)
{
return bdrv_get_block_status_above(bs, backing_bs(bs),
sector_num, nb_sectors, pnum);
}
| {
"code": [],
"line_no": []
} | int64_t FUNC_0(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum)
{
return bdrv_get_block_status_above(bs, backing_bs(bs),
sector_num, nb_sectors, pnum);
}
| [
"int64_t FUNC_0(BlockDriverState *bs,\nint64_t sector_num,\nint nb_sectors, int *pnum)\n{",
"return bdrv_get_block_status_above(bs, backing_bs(bs),\nsector_num, nb_sectors, pnum);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11
],
[
13
]
] |
13,047 | static inline void gen_op_eval_fbe(TCGv dst, TCGv src,
unsigned int fcc_offset)
{
gen_mov_reg_FCC0(dst, src, fcc_offset);
gen_mov_reg_FCC1(cpu_tmp0, src, fcc_offset);
tcg_gen_or_tl(dst, dst, cpu_tmp0);
tcg_gen_xori_tl(dst, dst, 0x1);
}
| false | qemu | de9e9d9f17a36ff76c1a02a5348835e5e0a081b0 | static inline void gen_op_eval_fbe(TCGv dst, TCGv src,
unsigned int fcc_offset)
{
gen_mov_reg_FCC0(dst, src, fcc_offset);
gen_mov_reg_FCC1(cpu_tmp0, src, fcc_offset);
tcg_gen_or_tl(dst, dst, cpu_tmp0);
tcg_gen_xori_tl(dst, dst, 0x1);
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1,
unsigned int VAR_2)
{
gen_mov_reg_FCC0(VAR_0, VAR_1, VAR_2);
gen_mov_reg_FCC1(cpu_tmp0, VAR_1, VAR_2);
tcg_gen_or_tl(VAR_0, VAR_0, cpu_tmp0);
tcg_gen_xori_tl(VAR_0, VAR_0, 0x1);
}
| [
"static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1,\nunsigned int VAR_2)\n{",
"gen_mov_reg_FCC0(VAR_0, VAR_1, VAR_2);",
"gen_mov_reg_FCC1(cpu_tmp0, VAR_1, VAR_2);",
"tcg_gen_or_tl(VAR_0, VAR_0, cpu_tmp0);",
"tcg_gen_xori_tl(VAR_0, VAR_0, 0x1);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
13,048 | static int blk_free(struct XenDevice *xendev)
{
struct XenBlkDev *blkdev = container_of(xendev, struct XenBlkDev, xendev);
struct ioreq *ioreq;
while (!LIST_EMPTY(&blkdev->freelist)) {
ioreq = LIST_FIRST(&blkdev->freelist);
LIST_REMOVE(ioreq, list);
qemu_iovec_destroy(&ioreq->v);
... | false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | static int blk_free(struct XenDevice *xendev)
{
struct XenBlkDev *blkdev = container_of(xendev, struct XenBlkDev, xendev);
struct ioreq *ioreq;
while (!LIST_EMPTY(&blkdev->freelist)) {
ioreq = LIST_FIRST(&blkdev->freelist);
LIST_REMOVE(ioreq, list);
qemu_iovec_destroy(&ioreq->v);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct XenDevice *VAR_0)
{
struct XenBlkDev *VAR_1 = container_of(VAR_0, struct XenBlkDev, VAR_0);
struct VAR_2 *VAR_2;
while (!LIST_EMPTY(&VAR_1->freelist)) {
VAR_2 = LIST_FIRST(&VAR_1->freelist);
LIST_REMOVE(VAR_2, list);
qemu_iovec_destroy(&VAR_2->v);
qemu_fr... | [
"static int FUNC_0(struct XenDevice *VAR_0)\n{",
"struct XenBlkDev *VAR_1 = container_of(VAR_0, struct XenBlkDev, VAR_0);",
"struct VAR_2 *VAR_2;",
"while (!LIST_EMPTY(&VAR_1->freelist)) {",
"VAR_2 = LIST_FIRST(&VAR_1->freelist);",
"LIST_REMOVE(VAR_2, list);",
"qemu_iovec_destroy(&VAR_2->v);",
"qemu_f... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
13,049 | static uint32_t ide_ioport_read(void *opaque, uint32_t addr1)
{
IDEState *ide_if = opaque;
IDEState *s = ide_if->cur_drive;
uint32_t addr;
int ret, hob;
addr = addr1 & 7;
/* FIXME: HOB readback uses bit 7, but it's always set right now */
//hob = s->select & (1 << 7);
hob = 0;... | false | qemu | c45ca54ff98c29551fadf9e8f64eb43d54cdcb0c | static uint32_t ide_ioport_read(void *opaque, uint32_t addr1)
{
IDEState *ide_if = opaque;
IDEState *s = ide_if->cur_drive;
uint32_t addr;
int ret, hob;
addr = addr1 & 7;
hob = 0;
switch(addr) {
case 0:
ret = 0xff;
break;
case 1:
if ... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void *opaque, uint32_t addr1)
{
IDEState *ide_if = opaque;
IDEState *s = ide_if->cur_drive;
uint32_t addr;
int VAR_0, VAR_1;
addr = addr1 & 7;
VAR_1 = 0;
switch(addr) {
case 0:
VAR_0 = 0xff;
break;
case 1:
if (... | [
"static uint32_t FUNC_0(void *opaque, uint32_t addr1)\n{",
"IDEState *ide_if = opaque;",
"IDEState *s = ide_if->cur_drive;",
"uint32_t addr;",
"int VAR_0, VAR_1;",
"addr = addr1 & 7;",
"VAR_1 = 0;",
"switch(addr) {",
"case 0:\nVAR_0 = 0xff;",
"break;",
"case 1:\nif (!ide_if[0].bs && !ide_if[1].b... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31,
33,
35
],
[
37,
39
],
[
41,
43
],
[
45
],
[
47,
49,
51
],
[
53,
55
... |
13,052 | void qmp_block_dirty_bitmap_add(const char *node, const char *name,
bool has_granularity, uint32_t granularity,
Error **errp)
{
AioContext *aio_context;
BlockDriverState *bs;
if (!name || name[0] == '\0') {
error_setg(errp, "Bi... | false | qemu | 2119882c7eb7e2c612b24fc0c8d86f5887d6f1c3 | void qmp_block_dirty_bitmap_add(const char *node, const char *name,
bool has_granularity, uint32_t granularity,
Error **errp)
{
AioContext *aio_context;
BlockDriverState *bs;
if (!name || name[0] == '\0') {
error_setg(errp, "Bi... | {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0, const char *VAR_1,
bool VAR_2, uint32_t VAR_3,
Error **VAR_4)
{
AioContext *aio_context;
BlockDriverState *bs;
if (!VAR_1 || VAR_1[0] == '\0') {
error_setg(VAR_4, "Bitmap VAR_1 cannot be empty");
... | [
"void FUNC_0(const char *VAR_0, const char *VAR_1,\nbool VAR_2, uint32_t VAR_3,\nError **VAR_4)\n{",
"AioContext *aio_context;",
"BlockDriverState *bs;",
"if (!VAR_1 || VAR_1[0] == '\\0') {",
"error_setg(VAR_4, \"Bitmap VAR_1 cannot be empty\");",
"return;",
"}",
"bs = bdrv_lookup_bs(VAR_0, VAR_0, VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[
51
],
[... |
13,053 | static void numa_node_parse(NumaNodeOptions *node, QemuOpts *opts, Error **errp)
{
uint16_t nodenr;
uint16List *cpus = NULL;
if (node->has_nodeid) {
nodenr = node->nodeid;
} else {
nodenr = nb_numa_nodes;
}
if (nodenr >= MAX_NODES) {
error_setg(errp, "Max nu... | false | qemu | 8979c945c1a7ffd20edbd5da2513c04baccfd7de | static void numa_node_parse(NumaNodeOptions *node, QemuOpts *opts, Error **errp)
{
uint16_t nodenr;
uint16List *cpus = NULL;
if (node->has_nodeid) {
nodenr = node->nodeid;
} else {
nodenr = nb_numa_nodes;
}
if (nodenr >= MAX_NODES) {
error_setg(errp, "Max nu... | {
"code": [],
"line_no": []
} | static void FUNC_0(NumaNodeOptions *VAR_0, QemuOpts *VAR_1, Error **VAR_2)
{
uint16_t nodenr;
uint16List *cpus = NULL;
if (VAR_0->has_nodeid) {
nodenr = VAR_0->nodeid;
} else {
nodenr = nb_numa_nodes;
}
if (nodenr >= MAX_NODES) {
error_setg(VAR_2, "Max numbe... | [
"static void FUNC_0(NumaNodeOptions *VAR_0, QemuOpts *VAR_1, Error **VAR_2)\n{",
"uint16_t nodenr;",
"uint16List *cpus = NULL;",
"if (VAR_0->has_nodeid) {",
"nodenr = VAR_0->nodeid;",
"} else {",
"nodenr = nb_numa_nodes;",
"}",
"if (nodenr >= MAX_NODES) {",
"error_setg(VAR_2, \"Max number of NUMA ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49,
51... |
13,054 | static int create_filtergraph(AVFilterContext *ctx,
const AVFrame *in, const AVFrame *out)
{
ColorSpaceContext *s = ctx->priv;
const AVPixFmtDescriptor *in_desc = av_pix_fmt_desc_get(in->format);
const AVPixFmtDescriptor *out_desc = av_pix_fmt_desc_get(out->format);
... | false | FFmpeg | cb78d14cf9b5ab59b4a9177f390f5e1abff58644 | static int create_filtergraph(AVFilterContext *ctx,
const AVFrame *in, const AVFrame *out)
{
ColorSpaceContext *s = ctx->priv;
const AVPixFmtDescriptor *in_desc = av_pix_fmt_desc_get(in->format);
const AVPixFmtDescriptor *out_desc = av_pix_fmt_desc_get(out->format);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFilterContext *VAR_0,
const AVFrame *VAR_1, const AVFrame *VAR_2)
{
ColorSpaceContext *s = VAR_0->priv;
const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_1->format);
const AVPixFmtDescriptor *VAR_4 = av_pix_fmt_desc_get(VAR_2->format);
int... | [
"static int FUNC_0(AVFilterContext *VAR_0,\nconst AVFrame *VAR_1, const AVFrame *VAR_2)\n{",
"ColorSpaceContext *s = VAR_0->priv;",
"const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_1->format);",
"const AVPixFmtDescriptor *VAR_4 = av_pix_fmt_desc_get(VAR_2->format);",
"int VAR_5 = 0, VAR_6, VAR_7,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19,
21,
23,
25,
27,
29,
31,
35
],
[
37,
39,
41,
43
],
[
45
],
[
47
],
[
49
],
[
51,
53,
55,
57
],
[
59
],
[... |
13,055 | static void stream_set_speed(BlockJob *job, int64_t speed, Error **errp)
{
StreamBlockJob *s = container_of(job, StreamBlockJob, common);
if (speed < 0) {
error_set(errp, QERR_INVALID_PARAMETER, "speed");
return;
}
ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE);
}
| false | qemu | 6ef228fc0de1d5fb43ebfef039563d39a3a37067 | static void stream_set_speed(BlockJob *job, int64_t speed, Error **errp)
{
StreamBlockJob *s = container_of(job, StreamBlockJob, common);
if (speed < 0) {
error_set(errp, QERR_INVALID_PARAMETER, "speed");
return;
}
ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(BlockJob *VAR_0, int64_t VAR_1, Error **VAR_2)
{
StreamBlockJob *s = container_of(VAR_0, StreamBlockJob, common);
if (VAR_1 < 0) {
error_set(VAR_2, QERR_INVALID_PARAMETER, "VAR_1");
return;
}
ratelimit_set_speed(&s->limit, VAR_1 / BDRV_SECTOR_SIZE);
}
| [
"static void FUNC_0(BlockJob *VAR_0, int64_t VAR_1, Error **VAR_2)\n{",
"StreamBlockJob *s = container_of(VAR_0, StreamBlockJob, common);",
"if (VAR_1 < 0) {",
"error_set(VAR_2, QERR_INVALID_PARAMETER, \"VAR_1\");",
"return;",
"}",
"ratelimit_set_speed(&s->limit, VAR_1 / BDRV_SECTOR_SIZE);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
13,056 | static Rom *find_rom(target_phys_addr_t addr)
{
Rom *rom;
QTAILQ_FOREACH(rom, &roms, next) {
if (rom->fw_file) {
continue;
}
if (rom->addr > addr) {
continue;
}
if (rom->addr + rom->romsize < addr) {
continue;
}
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static Rom *find_rom(target_phys_addr_t addr)
{
Rom *rom;
QTAILQ_FOREACH(rom, &roms, next) {
if (rom->fw_file) {
continue;
}
if (rom->addr > addr) {
continue;
}
if (rom->addr + rom->romsize < addr) {
continue;
}
... | {
"code": [],
"line_no": []
} | static Rom *FUNC_0(target_phys_addr_t addr)
{
Rom *rom;
QTAILQ_FOREACH(rom, &roms, next) {
if (rom->fw_file) {
continue;
}
if (rom->addr > addr) {
continue;
}
if (rom->addr + rom->romsize < addr) {
continue;
}
... | [
"static Rom *FUNC_0(target_phys_addr_t addr)\n{",
"Rom *rom;",
"QTAILQ_FOREACH(rom, &roms, next) {",
"if (rom->fw_file) {",
"continue;",
"}",
"if (rom->addr > addr) {",
"continue;",
"}",
"if (rom->addr + rom->romsize < addr) {",
"continue;",
"}",
"return rom;",
"}",
"return NULL;",
"}"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
13,057 | iscsi_aio_readv(BlockDriverState *bs, int64_t sector_num,
QEMUIOVector *qiov, int nb_sectors,
BlockDriverCompletionFunc *cb,
void *opaque)
{
IscsiLun *iscsilun = bs->opaque;
struct iscsi_context *iscsi = iscsilun->iscsi;
IscsiAIOCB *acb;
size_t qem... | false | qemu | 1dde716ed6719c341c1bfa427781f0715af90cbc | iscsi_aio_readv(BlockDriverState *bs, int64_t sector_num,
QEMUIOVector *qiov, int nb_sectors,
BlockDriverCompletionFunc *cb,
void *opaque)
{
IscsiLun *iscsilun = bs->opaque;
struct iscsi_context *iscsi = iscsilun->iscsi;
IscsiAIOCB *acb;
size_t qem... | {
"code": [],
"line_no": []
} | FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,
QEMUIOVector *VAR_2, int VAR_3,
BlockDriverCompletionFunc *VAR_4,
void *VAR_5)
{
IscsiLun *iscsilun = VAR_0->VAR_5;
struct iscsi_context *VAR_6 = iscsilun->VAR_6;
IscsiAIOCB *acb;
size_t qemu_read_size... | [
"FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nQEMUIOVector *VAR_2, int VAR_3,\nBlockDriverCompletionFunc *VAR_4,\nvoid *VAR_5)\n{",
"IscsiLun *iscsilun = VAR_0->VAR_5;",
"struct iscsi_context *VAR_6 = iscsilun->VAR_6;",
"IscsiAIOCB *acb;",
"size_t qemu_read_size;",
"#if !defined(LIBISCSI_FEATURE_IOVECT... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
37
],
[
39
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[... |
13,058 | static abi_long lock_iovec(int type, struct iovec *vec, abi_ulong target_addr,
int count, int copy)
{
struct target_iovec *target_vec;
abi_ulong base;
int i;
target_vec = lock_user(VERIFY_READ, target_addr, count * sizeof(struct target_iovec), 1);
if (!target_vec)... | false | qemu | f287b2c2d4d20d35880ab6dca44bda0476e67dce | static abi_long lock_iovec(int type, struct iovec *vec, abi_ulong target_addr,
int count, int copy)
{
struct target_iovec *target_vec;
abi_ulong base;
int i;
target_vec = lock_user(VERIFY_READ, target_addr, count * sizeof(struct target_iovec), 1);
if (!target_vec)... | {
"code": [],
"line_no": []
} | static abi_long FUNC_0(int type, struct iovec *vec, abi_ulong target_addr,
int count, int copy)
{
struct target_iovec *VAR_0;
abi_ulong base;
int VAR_1;
VAR_0 = lock_user(VERIFY_READ, target_addr, count * sizeof(struct target_iovec), 1);
if (!VAR_0)
retur... | [
"static abi_long FUNC_0(int type, struct iovec *vec, abi_ulong target_addr,\nint count, int copy)\n{",
"struct target_iovec *VAR_0;",
"abi_ulong base;",
"int VAR_1;",
"VAR_0 = lock_user(VERIFY_READ, target_addr, count * sizeof(struct target_iovec), 1);",
"if (!VAR_0)\nreturn -TARGET_EFAULT;",
"for(VAR_1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
]
] |
13,059 | S390PCIBusDevice *s390_pci_find_next_avail_dev(S390PCIBusDevice *pbdev)
{
int idx = 0;
S390PCIBusDevice *dev = NULL;
S390pciState *s = s390_get_phb();
if (pbdev) {
idx = (pbdev->fh & FH_MASK_INDEX) + 1;
}
for (; idx < PCI_SLOT_MAX; idx++) {
dev = s->pbdev[idx];
... | false | qemu | e70377dfa4bbc2e101066ca35675bed4129c5a8c | S390PCIBusDevice *s390_pci_find_next_avail_dev(S390PCIBusDevice *pbdev)
{
int idx = 0;
S390PCIBusDevice *dev = NULL;
S390pciState *s = s390_get_phb();
if (pbdev) {
idx = (pbdev->fh & FH_MASK_INDEX) + 1;
}
for (; idx < PCI_SLOT_MAX; idx++) {
dev = s->pbdev[idx];
... | {
"code": [],
"line_no": []
} | S390PCIBusDevice *FUNC_0(S390PCIBusDevice *pbdev)
{
int VAR_0 = 0;
S390PCIBusDevice *dev = NULL;
S390pciState *s = s390_get_phb();
if (pbdev) {
VAR_0 = (pbdev->fh & FH_MASK_INDEX) + 1;
}
for (; VAR_0 < PCI_SLOT_MAX; VAR_0++) {
dev = s->pbdev[VAR_0];
if (dev ... | [
"S390PCIBusDevice *FUNC_0(S390PCIBusDevice *pbdev)\n{",
"int VAR_0 = 0;",
"S390PCIBusDevice *dev = NULL;",
"S390pciState *s = s390_get_phb();",
"if (pbdev) {",
"VAR_0 = (pbdev->fh & FH_MASK_INDEX) + 1;",
"}",
"for (; VAR_0 < PCI_SLOT_MAX; VAR_0++) {",
"dev = s->pbdev[VAR_0];",
"if (dev && dev->sta... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
]
] |
13,061 | static void fw_cfg_ctl_mem_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
fw_cfg_select(opaque, (uint16_t)value);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void fw_cfg_ctl_mem_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
fw_cfg_select(opaque, (uint16_t)value);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
fw_cfg_select(VAR_0, (uint16_t)VAR_2);
}
| [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"fw_cfg_select(VAR_0, (uint16_t)VAR_2);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
13,062 | static int64_t coroutine_fn bdrv_co_get_block_status(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum,
BlockDriverState **file)
{
int... | false | qemu | 298a1665a2800f7264e483c2dd1f551574243a2f | static int64_t coroutine_fn bdrv_co_get_block_status(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum,
BlockDriverState **file)
{
int... | {
"code": [],
"line_no": []
} | static int64_t VAR_0 bdrv_co_get_block_status(BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, int *pnum,
BlockDriverState **file)
{
int64_t to... | [
"static int64_t VAR_0 bdrv_co_get_block_status(BlockDriverState *bs,\nint64_t sector_num,\nint nb_sectors, int *pnum,\nBlockDriverState **file)\n{",
"int64_t total_sectors;",
"int64_t n;",
"int64_t ret, ret2;",
"*file = NULL;",
"total_sectors = bdrv_nb_sectors(bs);",
"if (total_sectors < 0) {",
"retur... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[... |
13,063 | static int dmg_read(BlockDriverState *bs, int64_t sector_num,
uint8_t *buf, int nb_sectors)
{
BDRVDMGState *s = bs->opaque;
int i;
for(i=0;i<nb_sectors;i++) {
uint32_t sector_offset_in_chunk;
if(dmg_read_chunk(bs, sector_num+i) != 0)
return -1;
sector_offset_in_chunk =... | false | qemu | 2c1885adcf0312da80c7317b09f9adad97fa0fc6 | static int dmg_read(BlockDriverState *bs, int64_t sector_num,
uint8_t *buf, int nb_sectors)
{
BDRVDMGState *s = bs->opaque;
int i;
for(i=0;i<nb_sectors;i++) {
uint32_t sector_offset_in_chunk;
if(dmg_read_chunk(bs, sector_num+i) != 0)
return -1;
sector_offset_in_chunk =... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,
uint8_t *VAR_2, int VAR_3)
{
BDRVDMGState *s = VAR_0->opaque;
int VAR_4;
for(VAR_4=0;VAR_4<VAR_3;VAR_4++) {
uint32_t sector_offset_in_chunk;
if(dmg_read_chunk(VAR_0, VAR_1+VAR_4) != 0)
return -1;
sector_offset_i... | [
"static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nuint8_t *VAR_2, int VAR_3)\n{",
"BDRVDMGState *s = VAR_0->opaque;",
"int VAR_4;",
"for(VAR_4=0;VAR_4<VAR_3;VAR_4++) {",
"uint32_t sector_offset_in_chunk;",
"if(dmg_read_chunk(VAR_0, VAR_1+VAR_4) != 0)\nreturn -1;",
"sector_offset_in_chunk = VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
13,064 | static int nbd_can_read(void *opaque)
{
NBDClient *client = opaque;
return client->recv_coroutine || client->nb_requests < MAX_NBD_REQUESTS;
}
| false | qemu | 958c717df97ea9ca47a2253b8371130fe5f22980 | static int nbd_can_read(void *opaque)
{
NBDClient *client = opaque;
return client->recv_coroutine || client->nb_requests < MAX_NBD_REQUESTS;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(void *VAR_0)
{
NBDClient *client = VAR_0;
return client->recv_coroutine || client->nb_requests < MAX_NBD_REQUESTS;
}
| [
"static int FUNC_0(void *VAR_0)\n{",
"NBDClient *client = VAR_0;",
"return client->recv_coroutine || client->nb_requests < MAX_NBD_REQUESTS;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
13,065 | int avpriv_dca_parse_core_frame_header(DCACoreFrameHeader *h, const uint8_t *buf, int size)
{
GetBitContext gb;
if (init_get_bits8(&gb, buf, size) < 0)
return DCA_PARSE_ERROR_INVALIDDATA;
return ff_dca_parse_core_frame_header(h, &gb);
}
| false | FFmpeg | 3df4939988ace682f7ac0366ef8fd700d207e6b6 | int avpriv_dca_parse_core_frame_header(DCACoreFrameHeader *h, const uint8_t *buf, int size)
{
GetBitContext gb;
if (init_get_bits8(&gb, buf, size) < 0)
return DCA_PARSE_ERROR_INVALIDDATA;
return ff_dca_parse_core_frame_header(h, &gb);
}
| {
"code": [],
"line_no": []
} | int FUNC_0(DCACoreFrameHeader *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
GetBitContext gb;
if (init_get_bits8(&gb, VAR_1, VAR_2) < 0)
return DCA_PARSE_ERROR_INVALIDDATA;
return ff_dca_parse_core_frame_header(VAR_0, &gb);
}
| [
"int FUNC_0(DCACoreFrameHeader *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"GetBitContext gb;",
"if (init_get_bits8(&gb, VAR_1, VAR_2) < 0)\nreturn DCA_PARSE_ERROR_INVALIDDATA;",
"return ff_dca_parse_core_frame_header(VAR_0, &gb);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17
]
] |
13,066 | static void sun4m_hw_init(const struct sun4m_hwdef *hwdef,
MachineState *machine)
{
const char *cpu_model = machine->cpu_model;
unsigned int i;
void *iommu, *espdma, *ledma, *nvram;
qemu_irq *cpu_irqs[MAX_CPUS], slavio_irq[32], slavio_cpu_irq[MAX_CPUS],
espdma_ir... | false | qemu | 3a5c76baf312d83cb77c8faa72c5f7a477effed0 | static void sun4m_hw_init(const struct sun4m_hwdef *hwdef,
MachineState *machine)
{
const char *cpu_model = machine->cpu_model;
unsigned int i;
void *iommu, *espdma, *ledma, *nvram;
qemu_irq *cpu_irqs[MAX_CPUS], slavio_irq[32], slavio_cpu_irq[MAX_CPUS],
espdma_ir... | {
"code": [],
"line_no": []
} | static void FUNC_0(const struct sun4m_hwdef *VAR_0,
MachineState *VAR_1)
{
const char *VAR_2 = VAR_1->VAR_2;
unsigned int VAR_3;
void *VAR_4, *VAR_5, *VAR_6, *VAR_7;
qemu_irq *cpu_irqs[MAX_CPUS], slavio_irq[32], slavio_cpu_irq[MAX_CPUS],
espdma_irq, ledma_irq;
... | [
"static void FUNC_0(const struct sun4m_hwdef *VAR_0,\nMachineState *VAR_1)\n{",
"const char *VAR_2 = VAR_1->VAR_2;",
"unsigned int VAR_3;",
"void *VAR_4, *VAR_5, *VAR_6, *VAR_7;",
"qemu_irq *cpu_irqs[MAX_CPUS], slavio_irq[32], slavio_cpu_irq[MAX_CPUS],\nespdma_irq, ledma_irq;",
"qemu_irq esp_reset, dma_en... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35,
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[... |
13,067 | static inline int qemu_rdma_buffer_mergable(RDMAContext *rdma,
uint64_t offset, uint64_t len)
{
RDMALocalBlock *block =
&(rdma->local_ram_blocks.block[rdma->current_index]);
uint8_t *host_addr = block->local_host_addr + (offset - block->offset);
uint8_t *chunk_end = ram_chu... | false | qemu | 44b5949491a47043c4f7c4ff09f0191f82919a82 | static inline int qemu_rdma_buffer_mergable(RDMAContext *rdma,
uint64_t offset, uint64_t len)
{
RDMALocalBlock *block =
&(rdma->local_ram_blocks.block[rdma->current_index]);
uint8_t *host_addr = block->local_host_addr + (offset - block->offset);
uint8_t *chunk_end = ram_chu... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(RDMAContext *VAR_0,
uint64_t VAR_1, uint64_t VAR_2)
{
RDMALocalBlock *block =
&(VAR_0->local_ram_blocks.block[VAR_0->current_index]);
uint8_t *host_addr = block->local_host_addr + (VAR_1 - block->VAR_1);
uint8_t *chunk_end = ram_chunk_end(block, VAR... | [
"static inline int FUNC_0(RDMAContext *VAR_0,\nuint64_t VAR_1, uint64_t VAR_2)\n{",
"RDMALocalBlock *block =\n&(VAR_0->local_ram_blocks.block[VAR_0->current_index]);",
"uint8_t *host_addr = block->local_host_addr + (VAR_1 - block->VAR_1);",
"uint8_t *chunk_end = ram_chunk_end(block, VAR_0->current_chunk);",
... | [
0,
0,
0,
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
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
],
[
59
... |
13,069 | static int ogg_new_buf(struct ogg *ogg, int idx)
{
struct ogg_stream *os = ogg->streams + idx;
uint8_t *nb = av_malloc(os->bufsize);
int size = os->bufpos - os->pstart;
if(os->buf){
memcpy(nb, os->buf + os->pstart, size);
av_free(os->buf);
}
os->buf = nb;
os->bufpos... | true | FFmpeg | ef0d779706c77ca9007527bd8d41e9400682f4e4 | static int ogg_new_buf(struct ogg *ogg, int idx)
{
struct ogg_stream *os = ogg->streams + idx;
uint8_t *nb = av_malloc(os->bufsize);
int size = os->bufpos - os->pstart;
if(os->buf){
memcpy(nb, os->buf + os->pstart, size);
av_free(os->buf);
}
os->buf = nb;
os->bufpos... | {
"code": [
" uint8_t *nb = av_malloc(os->bufsize);"
],
"line_no": [
7
]
} | static int FUNC_0(struct VAR_0 *VAR_0, int VAR_1)
{
struct ogg_stream *VAR_2 = VAR_0->streams + VAR_1;
uint8_t *nb = av_malloc(VAR_2->bufsize);
int VAR_3 = VAR_2->bufpos - VAR_2->pstart;
if(VAR_2->buf){
memcpy(nb, VAR_2->buf + VAR_2->pstart, VAR_3);
av_free(VAR_2->buf);
}
... | [
"static int FUNC_0(struct VAR_0 *VAR_0, int VAR_1)\n{",
"struct ogg_stream *VAR_2 = VAR_0->streams + VAR_1;",
"uint8_t *nb = av_malloc(VAR_2->bufsize);",
"int VAR_3 = VAR_2->bufpos - VAR_2->pstart;",
"if(VAR_2->buf){",
"memcpy(nb, VAR_2->buf + VAR_2->pstart, VAR_3);",
"av_free(VAR_2->buf);",
"}",
"V... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
]
] |
13,070 | void s390_memory_init(ram_addr_t mem_size)
{
MemoryRegion *sysmem = get_system_memory();
MemoryRegion *ram = g_new(MemoryRegion, 1);
/* allocate RAM for core */
memory_region_init_ram(ram, NULL, "s390.ram", mem_size, &error_abort);
vmstate_register_ram_global(ram);
memory_region_add_sub... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | void s390_memory_init(ram_addr_t mem_size)
{
MemoryRegion *sysmem = get_system_memory();
MemoryRegion *ram = g_new(MemoryRegion, 1);
memory_region_init_ram(ram, NULL, "s390.ram", mem_size, &error_abort);
vmstate_register_ram_global(ram);
memory_region_add_subregion(sysmem, 0, ram);
... | {
"code": [
" memory_region_init_ram(ram, NULL, \"s390.ram\", mem_size, &error_abort);"
],
"line_no": [
13
]
} | void FUNC_0(ram_addr_t VAR_0)
{
MemoryRegion *sysmem = get_system_memory();
MemoryRegion *ram = g_new(MemoryRegion, 1);
memory_region_init_ram(ram, NULL, "s390.ram", VAR_0, &error_abort);
vmstate_register_ram_global(ram);
memory_region_add_subregion(sysmem, 0, ram);
s390_s... | [
"void FUNC_0(ram_addr_t VAR_0)\n{",
"MemoryRegion *sysmem = get_system_memory();",
"MemoryRegion *ram = g_new(MemoryRegion, 1);",
"memory_region_init_ram(ram, NULL, \"s390.ram\", VAR_0, &error_abort);",
"vmstate_register_ram_global(ram);",
"memory_region_add_subregion(sysmem, 0, ram);",
"s390_skeys_init... | [
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15
],
[
17
],
[
23
],
[
25
]
] |
13,071 | static void tracked_request_begin(BdrvTrackedRequest *req,
BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, bool is_write)
*req = (BdrvTrackedRequest){
.bs = bs,
.sector_num = sector_num,
... | true | qemu | f4658285f99473367dbbc34ce6970ec4637c2388 | static void tracked_request_begin(BdrvTrackedRequest *req,
BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, bool is_write)
*req = (BdrvTrackedRequest){
.bs = bs,
.sector_num = sector_num,
... | {
"code": [],
"line_no": []
} | static void tracked_request_begin(BdrvTrackedRequest *req,
BlockDriverState *bs,
int64_t sector_num,
int nb_sectors, bool is_write)
*req = (BdrvTrackedRequest){
.bs = bs,
.sector_num = sector_num,
... | [
"static void tracked_request_begin(BdrvTrackedRequest *req,\nBlockDriverState *bs,\nint64_t sector_num,\nint nb_sectors, bool is_write)\n*req = (BdrvTrackedRequest){",
".bs = bs,\n.sector_num = sector_num,\n.nb_sectors = nb_sectors,\n.is_write = is_write,\n};",
"FUNC_0(&bs->tracked_requests, req, list);"
] | [
0,
0,
0
] | [
[
1,
2,
3,
4,
5
],
[
6,
7,
8,
9,
10
],
[
11
]
] |
13,072 | static inline int decode_seq_parameter_set(H264Context *h){
MpegEncContext * const s = &h->s;
int profile_idc, level_idc;
int sps_id, i;
SPS *sps;
profile_idc= get_bits(&s->gb, 8);
get_bits1(&s->gb); //constraint_set0_flag
get_bits1(&s->gb); //constraint_set1_flag
get_bits1... | true | FFmpeg | ac658be5db5baa01546715994fbd193a855cbc73 | static inline int decode_seq_parameter_set(H264Context *h){
MpegEncContext * const s = &h->s;
int profile_idc, level_idc;
int sps_id, i;
SPS *sps;
profile_idc= get_bits(&s->gb, 8);
get_bits1(&s->gb);
get_bits1(&s->gb);
get_bits1(&s->gb);
get_bits1(&s->gb);
... | {
"code": [
" int sps_id, i;",
" av_log(h->s.avctx, AV_LOG_DEBUG, \"sps:%d profile:%d/%d poc:%d ref:%d %dx%d %s %s crop:%d/%d/%d/%d %s\\n\","
],
"line_no": [
7,
191
]
} | static inline int FUNC_0(H264Context *VAR_0){
MpegEncContext * const s = &VAR_0->s;
int VAR_1, VAR_2;
int VAR_3, VAR_4;
SPS *sps;
VAR_1= get_bits(&s->gb, 8);
get_bits1(&s->gb);
get_bits1(&s->gb);
get_bits1(&s->gb);
get_bits1(&s->gb);
get_bits(&s->gb, 4);
... | [
"static inline int FUNC_0(H264Context *VAR_0){",
"MpegEncContext * const s = &VAR_0->s;",
"int VAR_1, VAR_2;",
"int VAR_3, VAR_4;",
"SPS *sps;",
"VAR_1= get_bits(&s->gb, 8);",
"get_bits1(&s->gb);",
"get_bits1(&s->gb);",
"get_bits1(&s->gb);",
"get_bits1(&s->gb);",
"get_bits(&s->gb, 4);",
"VAR_2... | [
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,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
45
],
[
47
... |
13,073 | static int usb_ehci_initfn(PCIDevice *dev)
{
EHCIState *s = DO_UPCAST(EHCIState, dev, dev);
uint8_t *pci_conf = s->dev.config;
int i;
pci_set_byte(&pci_conf[PCI_CLASS_PROG], 0x20);
/* capabilities pointer */
pci_set_byte(&pci_conf[PCI_CAPABILITY_LIST], 0x00);
//pci_set_byte(&pci_... | true | qemu | 3e4f910c8d490a1490409a7e381dbbb229f9d272 | static int usb_ehci_initfn(PCIDevice *dev)
{
EHCIState *s = DO_UPCAST(EHCIState, dev, dev);
uint8_t *pci_conf = s->dev.config;
int i;
pci_set_byte(&pci_conf[PCI_CLASS_PROG], 0x20);
pci_set_byte(&pci_conf[PCI_CAPABILITY_LIST], 0x00);
pci_set_byte(&pci_conf[PCI_INTERRUPT_P... | {
"code": [
" s->mmio[0x00] = (uint8_t) OPREGBASE;",
" s->mmio[0x01] = 0x00;",
" s->mmio[0x02] = 0x00;",
" s->mmio[0x06] = 0x00;",
" s->mmio[0x07] = 0x00;",
" s->mmio[0x0a] = 0x00;",
" s->mmio[0x0b] = 0x00;",
" memory_region_init_io(&s->mem, &ehci_mem_ops, s, \"... | static int FUNC_0(PCIDevice *VAR_0)
{
EHCIState *s = DO_UPCAST(EHCIState, VAR_0, VAR_0);
uint8_t *pci_conf = s->VAR_0.config;
int VAR_1;
pci_set_byte(&pci_conf[PCI_CLASS_PROG], 0x20);
pci_set_byte(&pci_conf[PCI_CAPABILITY_LIST], 0x00);
pci_set_byte(&pci_conf[PCI_INTERRUP... | [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"EHCIState *s = DO_UPCAST(EHCIState, VAR_0, VAR_0);",
"uint8_t *pci_conf = s->VAR_0.config;",
"int VAR_1;",
"pci_set_byte(&pci_conf[PCI_CLASS_PROG], 0x20);",
"pci_set_byte(&pci_conf[PCI_CAPABILITY_LIST], 0x00);",
"pci_set_byte(&pci_conf[PCI_INTERRUPT_PIN], 4);",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
1,
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
19
],
[
25
],
[
27
],
[
29
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
... |
13,074 | static int vnc_refresh_server_surface(VncDisplay *vd)
{
int width = MIN(pixman_image_get_width(vd->guest.fb),
pixman_image_get_width(vd->server));
int height = MIN(pixman_image_get_height(vd->guest.fb),
pixman_image_get_height(vd->server));
int cmp_bytes, serve... | true | qemu | eb8934b0418b3b1d125edddc4fc334a54334a49b | static int vnc_refresh_server_surface(VncDisplay *vd)
{
int width = MIN(pixman_image_get_width(vd->guest.fb),
pixman_image_get_width(vd->server));
int height = MIN(pixman_image_get_height(vd->guest.fb),
pixman_image_get_height(vd->server));
int cmp_bytes, serve... | {
"code": [
" int cmp_bytes, server_stride, min_stride, guest_stride, y = 0;",
" server_stride = guest_stride = pixman_image_get_stride(vd->server);",
" min_stride = MIN(server_stride, guest_stride);",
" if ((x + 1) * cmp_bytes > min_stride) {",
" _cmp_bytes = mi... | static int FUNC_0(VncDisplay *VAR_0)
{
int VAR_10 = MIN(pixman_image_get_width(VAR_0->guest.fb),
pixman_image_get_width(VAR_0->server));
int VAR_2 = MIN(pixman_image_get_height(VAR_0->guest.fb),
pixman_image_get_height(VAR_0->server));
int VAR_3, VAR_4, VAR_5, ... | [
"static int FUNC_0(VncDisplay *VAR_0)\n{",
"int VAR_10 = MIN(pixman_image_get_width(VAR_0->guest.fb),\npixman_image_get_width(VAR_0->server));",
"int VAR_2 = MIN(pixman_image_get_height(VAR_0->guest.fb),\npixman_image_get_height(VAR_0->server));",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7 = 0;",
"uint8_t *gues... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
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
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
49
],
[
51
],
[
53,
55
],
[
57
],
[
59
],
[... |
13,075 | static int smvjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
AVPacket *avpkt)
{
const AVPixFmtDescriptor *desc;
SMVJpegDecodeContext *s = avctx->priv_data;
AVFrame* mjpeg_data = s->picture[0];
int i, cur_frame = 0, ret = 0;
cur_frame = avpkt->pts % s... | true | FFmpeg | 360bc0d90aa66cf21e9f488e77d21db18e01ec9c | static int smvjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
AVPacket *avpkt)
{
const AVPixFmtDescriptor *desc;
SMVJpegDecodeContext *s = avctx->priv_data;
AVFrame* mjpeg_data = s->picture[0];
int i, cur_frame = 0, ret = 0;
cur_frame = avpkt->pts % s... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const AVPixFmtDescriptor *VAR_4;
SMVJpegDecodeContext *s = VAR_0->priv_data;
AVFrame* mjpeg_data = s->picture[0];
int VAR_5, VAR_6 = 0, VAR_7 = 0;
VAR_6 = VAR_3->pts % s->frames_per_jpeg;... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const AVPixFmtDescriptor *VAR_4;",
"SMVJpegDecodeContext *s = VAR_0->priv_data;",
"AVFrame* mjpeg_data = s->picture[0];",
"int VAR_5, VAR_6 = 0, VAR_7 = 0;",
"VAR_6 = VAR_3->pts % s->frames_per_jpeg;",
"if (!VAR_6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
... |
13,076 | static inline uint16_t vring_avail_ring(VirtQueue *vq, int i)
{
VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);
hwaddr pa = offsetof(VRingAvail, ring[i]);
return virtio_lduw_phys_cached(vq->vdev, &caches->avail, pa);
}
| true | qemu | e0e2d644096c79a71099b176d08f465f6803a8b1 | static inline uint16_t vring_avail_ring(VirtQueue *vq, int i)
{
VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);
hwaddr pa = offsetof(VRingAvail, ring[i]);
return virtio_lduw_phys_cached(vq->vdev, &caches->avail, pa);
}
| {
"code": [
" VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);",
" VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);",
" VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);",
" VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq-... | static inline uint16_t FUNC_0(VirtQueue *vq, int i)
{
VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);
hwaddr pa = offsetof(VRingAvail, ring[i]);
return virtio_lduw_phys_cached(vq->vdev, &caches->avail, pa);
}
| [
"static inline uint16_t FUNC_0(VirtQueue *vq, int i)\n{",
"VRingMemoryRegionCaches *caches = atomic_rcu_read(&vq->vring.caches);",
"hwaddr pa = offsetof(VRingAvail, ring[i]);",
"return virtio_lduw_phys_cached(vq->vdev, &caches->avail, pa);",
"}"
] | [
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
13,078 | static int open_f(BlockDriverState *bs, int argc, char **argv)
{
int flags = 0;
int readonly = 0;
int growable = 0;
int c;
QemuOpts *qopts;
QDict *opts;
while ((c = getopt(argc, argv, "snrgo:")) != EOF) {
switch (c) {
case 's':
flags |= BDRV_O_SNAPSHO... | true | qemu | 29f2601aa605f0af0cba8eedcff7812c6c8532e9 | static int open_f(BlockDriverState *bs, int argc, char **argv)
{
int flags = 0;
int readonly = 0;
int growable = 0;
int c;
QemuOpts *qopts;
QDict *opts;
while ((c = getopt(argc, argv, "snrgo:")) != EOF) {
switch (c) {
case 's':
flags |= BDRV_O_SNAPSHO... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, int VAR_1, char **VAR_2)
{
int VAR_3 = 0;
int VAR_4 = 0;
int VAR_5 = 0;
int VAR_6;
QemuOpts *qopts;
QDict *opts;
while ((VAR_6 = getopt(VAR_1, VAR_2, "snrgo:")) != EOF) {
switch (VAR_6) {
case 's':
VAR_3 |= B... | [
"static int FUNC_0(BlockDriverState *VAR_0, int VAR_1, char **VAR_2)\n{",
"int VAR_3 = 0;",
"int VAR_4 = 0;",
"int VAR_5 = 0;",
"int VAR_6;",
"QemuOpts *qopts;",
"QDict *opts;",
"while ((VAR_6 = getopt(VAR_1, VAR_2, \"snrgo:\")) != EOF) {",
"switch (VAR_6) {",
"case 's':\nVAR_3 |= BDRV_O_SNAPSHOT;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
35,
37
],
[
39
],
[
41,
43
],
[
45
],
[
47,... |
13,079 | av_cold int ff_mdct_init(FFTContext *s, int nbits, int inverse, double scale)
{
int n, n4, i;
double alpha, theta;
int tstep;
memset(s, 0, sizeof(*s));
n = 1 << nbits;
s->mdct_bits = nbits;
s->mdct_size = n;
n4 = n >> 2;
s->permutation = FF_MDCT_PERM_NONE;
if (ff_f... | false | FFmpeg | e6b1ed693ae4098e6b9eabf938fc31ec0b09b120 | av_cold int ff_mdct_init(FFTContext *s, int nbits, int inverse, double scale)
{
int n, n4, i;
double alpha, theta;
int tstep;
memset(s, 0, sizeof(*s));
n = 1 << nbits;
s->mdct_bits = nbits;
s->mdct_size = n;
n4 = n >> 2;
s->permutation = FF_MDCT_PERM_NONE;
if (ff_f... | {
"code": [],
"line_no": []
} | av_cold int FUNC_0(FFTContext *s, int nbits, int inverse, double scale)
{
int VAR_0, VAR_1, VAR_2;
double VAR_3, VAR_4;
int VAR_5;
memset(s, 0, sizeof(*s));
VAR_0 = 1 << nbits;
s->mdct_bits = nbits;
s->mdct_size = VAR_0;
VAR_1 = VAR_0 >> 2;
s->permutation = FF_MDCT_PERM_N... | [
"av_cold int FUNC_0(FFTContext *s, int nbits, int inverse, double scale)\n{",
"int VAR_0, VAR_1, VAR_2;",
"double VAR_3, VAR_4;",
"int VAR_5;",
"memset(s, 0, sizeof(*s));",
"VAR_0 = 1 << nbits;",
"s->mdct_bits = nbits;",
"s->mdct_size = VAR_0;",
"VAR_1 = VAR_0 >> 2;",
"s->permutation = FF_MDCT_PER... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51,
53
... |
13,080 | int ff_slice_thread_init(AVCodecContext *avctx)
{
int i;
ThreadContext *c;
int thread_count = avctx->thread_count;
#if HAVE_W32THREADS
w32thread_init();
#endif
if (!thread_count) {
int nb_cpus = av_cpu_count();
av_log(avctx, AV_LOG_DEBUG, "detected %d logical cores\n", ... | false | FFmpeg | daa7a1d4431b6acf1f93c4a98b3de123abf4ca18 | int ff_slice_thread_init(AVCodecContext *avctx)
{
int i;
ThreadContext *c;
int thread_count = avctx->thread_count;
#if HAVE_W32THREADS
w32thread_init();
#endif
if (!thread_count) {
int nb_cpus = av_cpu_count();
av_log(avctx, AV_LOG_DEBUG, "detected %d logical cores\n", ... | {
"code": [],
"line_no": []
} | int FUNC_0(AVCodecContext *VAR_0)
{
int VAR_1;
ThreadContext *c;
int VAR_2 = VAR_0->VAR_2;
#if HAVE_W32THREADS
w32thread_init();
#endif
if (!VAR_2) {
int VAR_3 = av_cpu_count();
av_log(VAR_0, AV_LOG_DEBUG, "detected %d logical cores\n", VAR_3);
if (VA... | [
"int FUNC_0(AVCodecContext *VAR_0)\n{",
"int VAR_1;",
"ThreadContext *c;",
"int VAR_2 = VAR_0->VAR_2;",
"#if HAVE_W32THREADS\nw32thread_init();",
"#endif\nif (!VAR_2) {",
"int VAR_3 = av_cpu_count();",
"av_log(VAR_0, AV_LOG_DEBUG, \"detected %d logical cores\\n\", VAR_3);",
"if (VAR_3 > 1)\nVAR_2 = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17,
21
],
[
23
],
[
25
],
[
29,
31
],
[
33,
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53,
55
],
[... |
13,082 | void ff_avg_h264_qpel4_mc22_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_mid_and_aver_dst_4x4_msa(src - (2 * stride) - 2,
stride, dst, stride);
}
| false | FFmpeg | 1181d93231e9b807965724587d363c1cfd5a1d0d | void ff_avg_h264_qpel4_mc22_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_mid_and_aver_dst_4x4_msa(src - (2 * stride) - 2,
stride, dst, stride);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,
ptrdiff_t VAR_2)
{
avc_luma_mid_and_aver_dst_4x4_msa(VAR_1 - (2 * VAR_2) - 2,
VAR_2, VAR_0, VAR_2);
}
| [
"void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{",
"avc_luma_mid_and_aver_dst_4x4_msa(VAR_1 - (2 * VAR_2) - 2,\nVAR_2, VAR_0, VAR_2);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11
]
] |
13,084 | int qsv_transcode_init(OutputStream *ost)
{
InputStream *ist;
const enum AVPixelFormat *pix_fmt;
AVDictionaryEntry *e;
const AVOption *opt;
int flags = 0;
int err, i;
QSVContext *qsv = NULL;
AVQSVContext *hwctx = NULL;
mfxIMPL impl;
mfxVersion ver = { { 3, 1 } };... | false | FFmpeg | 03cef34aa66662e2ab3681d290e7c5a6634f4058 | int qsv_transcode_init(OutputStream *ost)
{
InputStream *ist;
const enum AVPixelFormat *pix_fmt;
AVDictionaryEntry *e;
const AVOption *opt;
int flags = 0;
int err, i;
QSVContext *qsv = NULL;
AVQSVContext *hwctx = NULL;
mfxIMPL impl;
mfxVersion ver = { { 3, 1 } };... | {
"code": [],
"line_no": []
} | int FUNC_0(OutputStream *VAR_0)
{
InputStream *ist;
const enum AVPixelFormat *VAR_1;
AVDictionaryEntry *e;
const AVOption *VAR_2;
int VAR_3 = 0;
int VAR_4, VAR_5;
QSVContext *qsv = NULL;
AVQSVContext *hwctx = NULL;
mfxIMPL impl;
mfxVersion ver = { { 3, 1 } };
... | [
"int FUNC_0(OutputStream *VAR_0)\n{",
"InputStream *ist;",
"const enum AVPixelFormat *VAR_1;",
"AVDictionaryEntry *e;",
"const AVOption *VAR_2;",
"int VAR_3 = 0;",
"int VAR_4, VAR_5;",
"QSVContext *qsv = NULL;",
"AVQSVContext *hwctx = NULL;",
"mfxIMPL impl;",
"mfxVersion ver = { { 3, 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
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
35,
37
],
[
39
],
[
41,
43
],
[
45,
47
],
[
51,
53
],
[
59
],
[
61... |
13,085 | static int mov_write_ftyp_tag(AVIOContext *pb, AVFormatContext *s)
{
MOVMuxContext *mov = s->priv_data;
int64_t pos = avio_tell(pb);
int has_h264 = 0, has_video = 0;
int minor = 0x200;
int i;
for (i = 0; i < s->nb_streams; i++) {
AVStream *st = s->streams[i];
if (st->c... | false | FFmpeg | 1e9db41e2a2166be5671b088ef4ad06a40af459f | static int mov_write_ftyp_tag(AVIOContext *pb, AVFormatContext *s)
{
MOVMuxContext *mov = s->priv_data;
int64_t pos = avio_tell(pb);
int has_h264 = 0, has_video = 0;
int minor = 0x200;
int i;
for (i = 0; i < s->nb_streams; i++) {
AVStream *st = s->streams[i];
if (st->c... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVIOContext *VAR_0, AVFormatContext *VAR_1)
{
MOVMuxContext *mov = VAR_1->priv_data;
int64_t pos = avio_tell(VAR_0);
int VAR_2 = 0, VAR_3 = 0;
int VAR_4 = 0x200;
int VAR_5;
for (VAR_5 = 0; VAR_5 < VAR_1->nb_streams; VAR_5++) {
AVStream *st = VAR_1->streams[VAR... | [
"static int FUNC_0(AVIOContext *VAR_0, AVFormatContext *VAR_1)\n{",
"MOVMuxContext *mov = VAR_1->priv_data;",
"int64_t pos = avio_tell(VAR_0);",
"int VAR_2 = 0, VAR_3 = 0;",
"int VAR_4 = 0x200;",
"int VAR_5;",
"for (VAR_5 = 0; VAR_5 < VAR_1->nb_streams; VAR_5++) {",
"AVStream *st = VAR_1->streams[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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21,
23
],
[
25,
27
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
13,086 | static av_cold int bktr_init(const char *video_device, int width, int height,
int format, int *video_fd, int *tuner_fd, int idev, double frequency)
{
struct meteor_geomet geo;
int h_max;
long ioctl_frequency;
char *arg;
int c;
struct sigaction act = { 0 }, old;
if (idev < 0 ||... | true | FFmpeg | 4f1d7cc0ed66f4ab390631722a7daa660e55a0f3 | static av_cold int bktr_init(const char *video_device, int width, int height,
int format, int *video_fd, int *tuner_fd, int idev, double frequency)
{
struct meteor_geomet geo;
int h_max;
long ioctl_frequency;
char *arg;
int c;
struct sigaction act = { 0 }, old;
if (idev < 0 ||... | {
"code": [
" struct sigaction act = { 0 }, old;"
],
"line_no": [
17
]
} | static av_cold int FUNC_0(const char *video_device, int width, int height,
int format, int *video_fd, int *tuner_fd, int idev, double frequency)
{
struct meteor_geomet VAR_0;
int VAR_1;
long VAR_2;
char *VAR_3;
int VAR_4;
struct sigaction VAR_5 = { 0 }, VAR_6;
if (idev < 0 || ... | [
"static av_cold int FUNC_0(const char *video_device, int width, int height,\nint format, int *video_fd, int *tuner_fd, int idev, double frequency)\n{",
"struct meteor_geomet VAR_0;",
"int VAR_1;",
"long VAR_2;",
"char *VAR_3;",
"int VAR_4;",
"struct sigaction VAR_5 = { 0 }, VAR_6;",
"if (idev < 0 || i... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
25
],
[
27,
29
],
[
31,
33
],
[
35
],
[
39,
41
],
[
43
],
[
45,
47
],
[
49,
51
],
[... |
13,087 | static inline int wv_unpack_stereo(WavpackFrameContext *s, GetBitContext *gb,
void *dst_l, void *dst_r, const int type)
{
int i, j, count = 0;
int last, t;
int A, B, L, L2, R, R2;
int pos = s->pos;
uint32_t crc = s->sc.crc;
uint32_t c... | true | FFmpeg | 866c44d4b0f90d448cffbe9d4422a2dec7df698b | static inline int wv_unpack_stereo(WavpackFrameContext *s, GetBitContext *gb,
void *dst_l, void *dst_r, const int type)
{
int i, j, count = 0;
int last, t;
int A, B, L, L2, R, R2;
int pos = s->pos;
uint32_t crc = s->sc.crc;
uint32_t c... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(WavpackFrameContext *VAR_0, GetBitContext *VAR_1,
void *VAR_2, void *VAR_3, const int VAR_4)
{
int VAR_5, VAR_6, VAR_7 = 0;
int VAR_8, VAR_9;
int VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15;
int VAR_16 = VAR_0->VAR_16;
ui... | [
"static inline int FUNC_0(WavpackFrameContext *VAR_0, GetBitContext *VAR_1,\nvoid *VAR_2, void *VAR_3, const int VAR_4)\n{",
"int VAR_5, VAR_6, VAR_7 = 0;",
"int VAR_8, VAR_9;",
"int VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15;",
"int VAR_16 = VAR_0->VAR_16;",
"uint32_t crc =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19,
20
],
[
21
],
[
22,
... |
13,088 | static ExitStatus trans_fop_wed_0c(DisasContext *ctx, uint32_t insn,
const DisasInsn *di)
{
unsigned rt = extract32(insn, 0, 5);
unsigned ra = extract32(insn, 21, 5);
return do_fop_wed(ctx, rt, ra, di->f_wed);
}
| true | qemu | eff235eb2bcd7092901f4698a7907e742f3b7f2f | static ExitStatus trans_fop_wed_0c(DisasContext *ctx, uint32_t insn,
const DisasInsn *di)
{
unsigned rt = extract32(insn, 0, 5);
unsigned ra = extract32(insn, 21, 5);
return do_fop_wed(ctx, rt, ra, di->f_wed);
}
| {
"code": [
" return do_fop_wed(ctx, rt, ra, di->f_wed);",
" return do_fop_wed(ctx, rt, ra, di->f_wed);"
],
"line_no": [
11,
11
]
} | static ExitStatus FUNC_0(DisasContext *ctx, uint32_t insn,
const DisasInsn *di)
{
unsigned VAR_0 = extract32(insn, 0, 5);
unsigned VAR_1 = extract32(insn, 21, 5);
return do_fop_wed(ctx, VAR_0, VAR_1, di->f_wed);
}
| [
"static ExitStatus FUNC_0(DisasContext *ctx, uint32_t insn,\nconst DisasInsn *di)\n{",
"unsigned VAR_0 = extract32(insn, 0, 5);",
"unsigned VAR_1 = extract32(insn, 21, 5);",
"return do_fop_wed(ctx, VAR_0, VAR_1, di->f_wed);",
"}"
] | [
0,
0,
0,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.