id int32 0 27.3k | func stringlengths 26 142k | target bool 2
classes | project stringclasses 2
values | commit_id stringlengths 40 40 | func_clean stringlengths 26 131k | vul_lines dict | normalized_func stringlengths 24 132k | lines listlengths 1 2.8k | label listlengths 1 2.8k | line_no listlengths 1 2.8k |
|---|---|---|---|---|---|---|---|---|---|---|
7,840 | static void gdb_accept(void *opaque)
{
GDBState *s;
struct sockaddr_in sockaddr;
socklen_t len;
int val, fd;
for(;;) {
len = sizeof(sockaddr);
fd = accept(gdbserver_fd, (struct sockaddr *)&sockaddr, &len);
if (fd < 0 && errno != EINTR) {
perror("accept... | false | qemu | 880a7578381d1c7ed4d41c7599ae3cc06567a824 | static void gdb_accept(void *opaque)
{
GDBState *s;
struct sockaddr_in sockaddr;
socklen_t len;
int val, fd;
for(;;) {
len = sizeof(sockaddr);
fd = accept(gdbserver_fd, (struct sockaddr *)&sockaddr, &len);
if (fd < 0 && errno != EINTR) {
perror("accept... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
GDBState *s;
struct sockaddr_in VAR_1;
socklen_t len;
int VAR_2, VAR_3;
for(;;) {
len = sizeof(VAR_1);
VAR_3 = accept(gdbserver_fd, (struct VAR_1 *)&VAR_1, &len);
if (VAR_3 < 0 && errno != EINTR) {
perror("accept");
... | [
"static void FUNC_0(void *VAR_0)\n{",
"GDBState *s;",
"struct sockaddr_in VAR_1;",
"socklen_t len;",
"int VAR_2, VAR_3;",
"for(;;) {",
"len = sizeof(VAR_1);",
"VAR_3 = accept(gdbserver_fd, (struct VAR_1 *)&VAR_1, &len);",
"if (VAR_3 < 0 && errno != EINTR) {",
"perror(\"accept\");",
"return;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
... |
7,841 | bool desc_ring_set_size(DescRing *ring, uint32_t size)
{
int i;
if (size < 2 || size > 0x10000 || (size & (size - 1))) {
DPRINTF("ERROR: ring[%d] size (%d) not a power of 2 "
"or in range [2, 64K]\n", ring->index, size);
return false;
}
for (i = 0; i < ring->s... | false | qemu | ef1e1e0782e99c9dcf2b35e5310cdd8ca9211374 | bool desc_ring_set_size(DescRing *ring, uint32_t size)
{
int i;
if (size < 2 || size > 0x10000 || (size & (size - 1))) {
DPRINTF("ERROR: ring[%d] size (%d) not a power of 2 "
"or in range [2, 64K]\n", ring->index, size);
return false;
}
for (i = 0; i < ring->s... | {
"code": [],
"line_no": []
} | bool FUNC_0(DescRing *ring, uint32_t size)
{
int VAR_0;
if (size < 2 || size > 0x10000 || (size & (size - 1))) {
DPRINTF("ERROR: ring[%d] size (%d) not a power of 2 "
"or in range [2, 64K]\n", ring->index, size);
return false;
}
for (VAR_0 = 0; VAR_0 < ring->s... | [
"bool FUNC_0(DescRing *ring, uint32_t size)\n{",
"int VAR_0;",
"if (size < 2 || size > 0x10000 || (size & (size - 1))) {",
"DPRINTF(\"ERROR: ring[%d] size (%d) not a power of 2 \"\n\"or in range [2, 64K]\\n\", ring->index, size);",
"return false;",
"}",
"for (VAR_0 = 0; VAR_0 < ring->size; 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
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
53
],
... |
7,842 | kern_return_t FindEjectableCDMedia( io_iterator_t *mediaIterator )
{
kern_return_t kernResult;
mach_port_t masterPort;
CFMutableDictionaryRef classesToMatch;
kernResult = IOMasterPort( MACH_PORT_NULL, &masterPort );
if ( KERN_SUCCESS != kernResult ) {
printf( "IOMasterPor... | false | qemu | d0855f1235ed203700a3a24fc7e138490c272117 | kern_return_t FindEjectableCDMedia( io_iterator_t *mediaIterator )
{
kern_return_t kernResult;
mach_port_t masterPort;
CFMutableDictionaryRef classesToMatch;
kernResult = IOMasterPort( MACH_PORT_NULL, &masterPort );
if ( KERN_SUCCESS != kernResult ) {
printf( "IOMasterPor... | {
"code": [],
"line_no": []
} | kern_return_t FUNC_0( io_iterator_t *mediaIterator )
{
kern_return_t kernResult;
mach_port_t masterPort;
CFMutableDictionaryRef classesToMatch;
kernResult = IOMasterPort( MACH_PORT_NULL, &masterPort );
if ( KERN_SUCCESS != kernResult ) {
printf( "IOMasterPort returned %d\... | [
"kern_return_t FUNC_0( io_iterator_t *mediaIterator )\n{",
"kern_return_t kernResult;",
"mach_port_t masterPort;",
"CFMutableDictionaryRef classesToMatch;",
"kernResult = IOMasterPort( MACH_PORT_NULL, &masterPort );",
"if ( KERN_SUCCESS != kernResult ) {",
"printf( \"IOMasterPort returned %d\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
47
],
[... |
7,843 | static void tcg_out_qemu_st(TCGContext *s, const TCGArg *args, bool is64)
{
TCGReg datalo, datahi, addrlo;
TCGReg addrhi __attribute__((unused));
TCGMemOpIdx oi;
TCGMemOp opc;
#if defined(CONFIG_SOFTMMU)
int mem_index;
TCGMemOp s_bits;
tcg_insn_unit *label_ptr[2];
#endif
dat... | false | qemu | 8cc580f6a0d8c0e2f590c1472cf5cd8e51761760 | static void tcg_out_qemu_st(TCGContext *s, const TCGArg *args, bool is64)
{
TCGReg datalo, datahi, addrlo;
TCGReg addrhi __attribute__((unused));
TCGMemOpIdx oi;
TCGMemOp opc;
#if defined(CONFIG_SOFTMMU)
int mem_index;
TCGMemOp s_bits;
tcg_insn_unit *label_ptr[2];
#endif
dat... | {
"code": [],
"line_no": []
} | static void FUNC_0(TCGContext *VAR_0, const TCGArg *VAR_1, bool VAR_2)
{
TCGReg datalo, datahi, addrlo;
TCGReg addrhi __attribute__((unused));
TCGMemOpIdx oi;
TCGMemOp opc;
#if defined(CONFIG_SOFTMMU)
int mem_index;
TCGMemOp s_bits;
tcg_insn_unit *label_ptr[2];
#endif
datalo... | [
"static void FUNC_0(TCGContext *VAR_0, const TCGArg *VAR_1, bool VAR_2)\n{",
"TCGReg datalo, datahi, addrlo;",
"TCGReg addrhi __attribute__((unused));",
"TCGMemOpIdx oi;",
"TCGMemOp opc;",
"#if defined(CONFIG_SOFTMMU)\nint mem_index;",
"TCGMemOp s_bits;",
"tcg_insn_unit *label_ptr[2];",
"#endif\ndat... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
47,
49
],
[
55
... |
7,844 | static int create_header32(DumpState *s)
{
int ret = 0;
DiskDumpHeader32 *dh = NULL;
KdumpSubHeader32 *kh = NULL;
size_t size;
int endian = s->dump_info.d_endian;
uint32_t block_size;
uint32_t sub_hdr_size;
uint32_t bitmap_blocks;
uint32_t status = 0;
uint64_t offset_n... | false | qemu | 2f859f80c2077e00237ea1dfae2523ebd8377f5f | static int create_header32(DumpState *s)
{
int ret = 0;
DiskDumpHeader32 *dh = NULL;
KdumpSubHeader32 *kh = NULL;
size_t size;
int endian = s->dump_info.d_endian;
uint32_t block_size;
uint32_t sub_hdr_size;
uint32_t bitmap_blocks;
uint32_t status = 0;
uint64_t offset_n... | {
"code": [],
"line_no": []
} | static int FUNC_0(DumpState *VAR_0)
{
int VAR_1 = 0;
DiskDumpHeader32 *dh = NULL;
KdumpSubHeader32 *kh = NULL;
size_t size;
int VAR_2 = VAR_0->dump_info.d_endian;
uint32_t block_size;
uint32_t sub_hdr_size;
uint32_t bitmap_blocks;
uint32_t status = 0;
uint64_t offset_n... | [
"static int FUNC_0(DumpState *VAR_0)\n{",
"int VAR_1 = 0;",
"DiskDumpHeader32 *dh = NULL;",
"KdumpSubHeader32 *kh = NULL;",
"size_t size;",
"int VAR_2 = VAR_0->dump_info.d_endian;",
"uint32_t block_size;",
"uint32_t sub_hdr_size;",
"uint32_t bitmap_blocks;",
"uint32_t status = 0;",
"uint64_t off... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
7,845 | static int mov_read_header(AVFormatContext *s)
{
MOVContext *mov = s->priv_data;
AVIOContext *pb = s->pb;
int err;
MOVAtom atom = { AV_RL32("root") };
int i;
mov->fc = s;
/* .mov and .mp4 aren't streamable anyway (only progressive download if moov is before mdat) */
if (pb->se... | false | FFmpeg | 50dbe6b3544fa64d5611e16553bf542fd71276b8 | static int mov_read_header(AVFormatContext *s)
{
MOVContext *mov = s->priv_data;
AVIOContext *pb = s->pb;
int err;
MOVAtom atom = { AV_RL32("root") };
int i;
mov->fc = s;
if (pb->seekable)
atom.size = avio_size(pb);
else
atom.size = INT64_MAX;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
MOVContext *mov = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
int VAR_1;
MOVAtom atom = { AV_RL32("root") };
int VAR_2;
mov->fc = VAR_0;
if (pb->seekable)
atom.size = avio_size(pb);
else
atom.size = INT64_M... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"MOVContext *mov = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"int VAR_1;",
"MOVAtom atom = { AV_RL32(\"root\") };",
"int VAR_2;",
"mov->fc = VAR_0;",
"if (pb->seekable)\natom.size = avio_size(pb);",
"else\natom.size = INT64_MAX;",
"if ((VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21,
23
],
[
25,
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
7,846 | static uint32_t bitband_readb(void *opaque, target_phys_addr_t offset)
{
uint8_t v;
cpu_physical_memory_read(bitband_addr(opaque, offset), &v, 1);
return (v & (1 << ((offset >> 2) & 7))) != 0;
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint32_t bitband_readb(void *opaque, target_phys_addr_t offset)
{
uint8_t v;
cpu_physical_memory_read(bitband_addr(opaque, offset), &v, 1);
return (v & (1 << ((offset >> 2) & 7))) != 0;
}
| {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset)
{
uint8_t v;
cpu_physical_memory_read(bitband_addr(opaque, offset), &v, 1);
return (v & (1 << ((offset >> 2) & 7))) != 0;
}
| [
"static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset)\n{",
"uint8_t v;",
"cpu_physical_memory_read(bitband_addr(opaque, offset), &v, 1);",
"return (v & (1 << ((offset >> 2) & 7))) != 0;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
7,847 | static int imc_decode_frame(AVCodecContext * avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
IMCContext *q = avctx->priv_data;
int stream_format_code;
int imc_hdr, ... | false | FFmpeg | 86962b13f6d26fee398e4f8264e676461da91dfe | static int imc_decode_frame(AVCodecContext * avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
IMCContext *q = avctx->priv_data;
int stream_format_code;
int imc_hdr, ... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext * VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
IMCContext *q = VAR_0->priv_data;
int VAR_6;
int VAR_7, VAR_8, VAR_9;
int VAR_1... | [
"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;",
"int VAR_5 = VAR_3->size;",
"IMCContext *q = VAR_0->priv_data;",
"int VAR_6;",
"int VAR_7, VAR_8, VAR_9;",
"int VAR_10;",
"int VAR_11, VAR_12;",
"int VAR_13, 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
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
47
],
[
49
],
[
55
],
[
57
... |
7,848 | void av_register_all(void)
{
static int initialized;
if (initialized)
return;
initialized = 1;
avcodec_register_all();
/* (de)muxers */
REGISTER_MUXER (A64, a64);
REGISTER_DEMUXER (AAC, aac);
REGISTER_MUXDEMUX (AC3, ac3);
REGISTER_MUXER (ADTS, adts);
... | false | FFmpeg | dcb9f6a20dbddd1f95b6b322fc4c5fd0b5315729 | void av_register_all(void)
{
static int initialized;
if (initialized)
return;
initialized = 1;
avcodec_register_all();
REGISTER_MUXER (A64, a64);
REGISTER_DEMUXER (AAC, aac);
REGISTER_MUXDEMUX (AC3, ac3);
REGISTER_MUXER (ADTS, adts);
REGISTER_DEM... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
static int VAR_0;
if (VAR_0)
return;
VAR_0 = 1;
avcodec_register_all();
REGISTER_MUXER (A64, a64);
REGISTER_DEMUXER (AAC, aac);
REGISTER_MUXDEMUX (AC3, ac3);
REGISTER_MUXER (ADTS, adts);
REGISTER_DEMUXER (AEA, aea);
REGI... | [
"void FUNC_0(void)\n{",
"static int VAR_0;",
"if (VAR_0)\nreturn;",
"VAR_0 = 1;",
"avcodec_register_all();",
"REGISTER_MUXER (A64, a64);",
"REGISTER_DEMUXER (AAC, aac);",
"REGISTER_MUXDEMUX (AC3, ac3);",
"REGISTER_MUXER (ADTS, adts);",
"REGISTER_DEMUXER (AEA, aea);",
"REGISTER_MUXDEMUX (... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
17
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
... |
7,849 | static void av_always_inline filter_mb_mbaff_edgev( H264Context *h, uint8_t *pix, int stride, const int16_t bS[7], int bsi, int qp, int intra ) {
const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8);
int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset;
int alpha = alpha_table[index_a];
in... | false | FFmpeg | f6b7f72461673e4d398b1edf9ed2a7fe70d99c47 | static void av_always_inline filter_mb_mbaff_edgev( H264Context *h, uint8_t *pix, int stride, const int16_t bS[7], int bsi, int qp, int intra ) {
const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8);
int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset;
int alpha = alpha_table[index_a];
in... | {
"code": [],
"line_no": []
} | static void VAR_0 filter_mb_mbaff_edgev( H264Context *h, uint8_t *pix, int stride, const int16_t bS[7], int bsi, int qp, int intra ) {
const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8);
int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset;
int alpha = alpha_table[index_a];
int beta = b... | [
"static void VAR_0 filter_mb_mbaff_edgev( H264Context *h, uint8_t *pix, int stride, const int16_t bS[7], int bsi, int qp, int intra ) {",
"const int qp_bd_offset = 6 * (h->sps.bit_depth_luma - 8);",
"int index_a = qp - qp_bd_offset + h->slice_alpha_c0_offset;",
"int alpha = alpha_table[index_a];",
"int beta... | [
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
]
] |
7,850 | static int config(struct vf_instance *vf,
int width, int height, int d_width, int d_height,
unsigned int flags, unsigned int outfmt){
int i;
AVCodec *enc= avcodec_find_encoder(AV_CODEC_ID_SNOW);
for(i=0; i<3; i++){
int is_chroma= !!i;
int w= ((wid... | false | FFmpeg | 04e140daa21c1e4e7c61009fadd211c19e080863 | static int config(struct vf_instance *vf,
int width, int height, int d_width, int d_height,
unsigned int flags, unsigned int outfmt){
int i;
AVCodec *enc= avcodec_find_encoder(AV_CODEC_ID_SNOW);
for(i=0; i<3; i++){
int is_chroma= !!i;
int w= ((wid... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct vf_instance *VAR_0,
int VAR_1, int VAR_2, int VAR_3, int VAR_4,
unsigned int VAR_5, unsigned int VAR_6){
int VAR_7;
AVCodec *enc= avcodec_find_encoder(AV_CODEC_ID_SNOW);
for(VAR_7=0; VAR_7<3; VAR_7++){
int VAR_8= !!VAR_7;
... | [
"static int FUNC_0(struct vf_instance *VAR_0,\nint VAR_1, int VAR_2, int VAR_3, int VAR_4,\nunsigned int VAR_5, unsigned int VAR_6){",
"int VAR_7;",
"AVCodec *enc= avcodec_find_encoder(AV_CODEC_ID_SNOW);",
"for(VAR_7=0; VAR_7<3; VAR_7++){",
"int VAR_8= !!VAR_7;",
"int VAR_9= ((VAR_1 + 4*BLOCK-1) & (~(2*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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
7,851 | double av_expr_eval(AVExpr *e, const double *const_values, void *opaque)
{
Parser p;
p.const_values = const_values;
p.opaque = opaque;
return eval_expr(&p, e);
}
| false | FFmpeg | 94350ab986dfce1c93fa720baf28b548c60a9879 | double av_expr_eval(AVExpr *e, const double *const_values, void *opaque)
{
Parser p;
p.const_values = const_values;
p.opaque = opaque;
return eval_expr(&p, e);
}
| {
"code": [],
"line_no": []
} | double FUNC_0(AVExpr *VAR_0, const double *VAR_1, void *VAR_2)
{
Parser p;
p.VAR_1 = VAR_1;
p.VAR_2 = VAR_2;
return eval_expr(&p, VAR_0);
}
| [
"double FUNC_0(AVExpr *VAR_0, const double *VAR_1, void *VAR_2)\n{",
"Parser p;",
"p.VAR_1 = VAR_1;",
"p.VAR_2 = VAR_2;",
"return eval_expr(&p, VAR_0);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
7,853 | static void cirrus_bitblt_cputovideo_next(CirrusVGAState * s)
{
int copy_count;
uint8_t *end_ptr;
if (s->cirrus_srccounter > 0) {
if (s->cirrus_blt_mode & CIRRUS_BLTMODE_PATTERNCOPY) {
cirrus_bitblt_common_patterncopy(s, false);
the_end:
s->cirrus_srccounter... | false | qemu | 026aeffcb4752054830ba203020ed6eb05bcaba8 | static void cirrus_bitblt_cputovideo_next(CirrusVGAState * s)
{
int copy_count;
uint8_t *end_ptr;
if (s->cirrus_srccounter > 0) {
if (s->cirrus_blt_mode & CIRRUS_BLTMODE_PATTERNCOPY) {
cirrus_bitblt_common_patterncopy(s, false);
the_end:
s->cirrus_srccounter... | {
"code": [],
"line_no": []
} | static void FUNC_0(CirrusVGAState * VAR_0)
{
int VAR_1;
uint8_t *end_ptr;
if (VAR_0->cirrus_srccounter > 0) {
if (VAR_0->cirrus_blt_mode & CIRRUS_BLTMODE_PATTERNCOPY) {
cirrus_bitblt_common_patterncopy(VAR_0, false);
the_end:
VAR_0->cirrus_srccounter = 0;
... | [
"static void FUNC_0(CirrusVGAState * VAR_0)\n{",
"int VAR_1;",
"uint8_t *end_ptr;",
"if (VAR_0->cirrus_srccounter > 0) {",
"if (VAR_0->cirrus_blt_mode & CIRRUS_BLTMODE_PATTERNCOPY) {",
"cirrus_bitblt_common_patterncopy(VAR_0, false);",
"the_end:\nVAR_0->cirrus_srccounter = 0;",
"cirrus_bitblt_reset(VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
27
],
[
29,
31
],
[
33,
35
],
[
37
],
[
39
],
[
41,
43
],
[
51
],
[
53
],
[
55... |
7,855 | static coroutine_fn int nbd_negotiate(NBDClient *client, Error **errp)
{
char buf[8 + 8 + 8 + 128];
int ret;
const uint16_t myflags = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM |
NBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA |
NBD_FLAG_SEND_WRITE_ZER... | false | qemu | 5f66d060dbc37214c9d70305710c3e34c4531d7c | static coroutine_fn int nbd_negotiate(NBDClient *client, Error **errp)
{
char buf[8 + 8 + 8 + 128];
int ret;
const uint16_t myflags = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM |
NBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA |
NBD_FLAG_SEND_WRITE_ZER... | {
"code": [],
"line_no": []
} | static coroutine_fn int FUNC_0(NBDClient *client, Error **errp)
{
char VAR_0[8 + 8 + 8 + 128];
int VAR_1;
const uint16_t VAR_2 = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM |
NBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA |
NBD_FLAG_SEND_WRITE_ZEROES);... | [
"static coroutine_fn int FUNC_0(NBDClient *client, Error **errp)\n{",
"char VAR_0[8 + 8 + 8 + 128];",
"int VAR_1;",
"const uint16_t VAR_2 = (NBD_FLAG_HAS_FLAGS | NBD_FLAG_SEND_TRIM |\nNBD_FLAG_SEND_FLUSH | NBD_FLAG_SEND_FUA |\nNBD_FLAG_SEND_WRITE_ZEROES);",
"bool oldStyle;",
"qio_channel_set_blocking(clie... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
49
],
[
53
],
[
55
],
[
57
],
[
61
],
[
63
],
[
65,
67
],
[
69
],
[
71
],
[
73
],
[
77
],
[
79
],
[
81
],
[... |
7,856 | static void intel_hda_update_irq(IntelHDAState *d)
{
bool msi = msi_enabled(&d->pci);
int level;
intel_hda_update_int_sts(d);
if (d->int_sts & (1U << 31) && d->int_ctl & (1U << 31)) {
level = 1;
} else {
level = 0;
}
dprint(d, 2, "%s: level %d [%s]\n", __FUNCTION_... | false | qemu | a89f364ae8740dfc31b321eed9ee454e996dc3c1 | static void intel_hda_update_irq(IntelHDAState *d)
{
bool msi = msi_enabled(&d->pci);
int level;
intel_hda_update_int_sts(d);
if (d->int_sts & (1U << 31) && d->int_ctl & (1U << 31)) {
level = 1;
} else {
level = 0;
}
dprint(d, 2, "%s: level %d [%s]\n", __FUNCTION_... | {
"code": [],
"line_no": []
} | static void FUNC_0(IntelHDAState *VAR_0)
{
bool msi = msi_enabled(&VAR_0->pci);
int VAR_1;
intel_hda_update_int_sts(VAR_0);
if (VAR_0->int_sts & (1U << 31) && VAR_0->int_ctl & (1U << 31)) {
VAR_1 = 1;
} else {
VAR_1 = 0;
}
dprint(VAR_0, 2, "%s: VAR_1 %VAR_0 [%s]\n... | [
"static void FUNC_0(IntelHDAState *VAR_0)\n{",
"bool msi = msi_enabled(&VAR_0->pci);",
"int VAR_1;",
"intel_hda_update_int_sts(VAR_0);",
"if (VAR_0->int_sts & (1U << 31) && VAR_0->int_ctl & (1U << 31)) {",
"VAR_1 = 1;",
"} else {",
"VAR_1 = 0;",
"}",
"dprint(VAR_0, 2, \"%s: VAR_1 %VAR_0 [%s]\\n\",... | [
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
]
] |
7,857 | static void tcg_out_ext8s(TCGContext *s, int dest, int src, int rexw)
{
/* movsbl */
assert(src < 4 || TCG_TARGET_REG_BITS == 64);
tcg_out_modrm(s, OPC_MOVSBL + P_REXB_RM + rexw, dest, src);
}
| false | qemu | eabb7b91b36b202b4dac2df2d59d698e3aff197a | static void tcg_out_ext8s(TCGContext *s, int dest, int src, int rexw)
{
assert(src < 4 || TCG_TARGET_REG_BITS == 64);
tcg_out_modrm(s, OPC_MOVSBL + P_REXB_RM + rexw, dest, src);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)
{
assert(VAR_2 < 4 || TCG_TARGET_REG_BITS == 64);
tcg_out_modrm(VAR_0, OPC_MOVSBL + P_REXB_RM + VAR_3, VAR_1, VAR_2);
}
| [
"static void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{",
"assert(VAR_2 < 4 || TCG_TARGET_REG_BITS == 64);",
"tcg_out_modrm(VAR_0, OPC_MOVSBL + P_REXB_RM + VAR_3, VAR_1, VAR_2);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
11
]
] |
7,859 | static void *bamboo_load_device_tree(target_phys_addr_t addr,
uint32_t ramsize,
target_phys_addr_t initrd_base,
target_phys_addr_t initrd_size,
const char *kernel_cmdli... | false | qemu | 04088adbe0c5adca66adb6022723362ad90ed0fc | static void *bamboo_load_device_tree(target_phys_addr_t addr,
uint32_t ramsize,
target_phys_addr_t initrd_base,
target_phys_addr_t initrd_size,
const char *kernel_cmdli... | {
"code": [],
"line_no": []
} | static void *FUNC_0(target_phys_addr_t VAR_0,
uint32_t VAR_1,
target_phys_addr_t VAR_2,
target_phys_addr_t VAR_3,
const char *VAR_4)
{
void *VAR_5 = NULL;
#ifdef... | [
"static void *FUNC_0(target_phys_addr_t VAR_0,\nuint32_t VAR_1,\ntarget_phys_addr_t VAR_2,\ntarget_phys_addr_t VAR_3,\nconst char *VAR_4)\n{",
"void *VAR_5 = NULL;",
"#ifdef CONFIG_FDT\nuint32_t mem_reg_property[] = { 0, 0, VAR_1 };",
"char *filename;",
"int fdt_size;",
"int ret;",
"filename = qemu_find... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
51,
53
],
[
55,... |
7,860 | static uint64_t lan9118_16bit_mode_read(void *opaque, target_phys_addr_t offset,
unsigned size)
{
switch (size) {
case 2:
return lan9118_readw(opaque, offset);
case 4:
return lan9118_readl(opaque, offset, size);
}
hw_error("lan9118_r... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t lan9118_16bit_mode_read(void *opaque, target_phys_addr_t offset,
unsigned size)
{
switch (size) {
case 2:
return lan9118_readw(opaque, offset);
case 4:
return lan9118_readl(opaque, offset, size);
}
hw_error("lan9118_r... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset,
unsigned size)
{
switch (size) {
case 2:
return lan9118_readw(opaque, offset);
case 4:
return lan9118_readl(opaque, offset, size);
}
hw_error("lan9118_read: Bad size 0x%... | [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset,\nunsigned size)\n{",
"switch (size) {",
"case 2:\nreturn lan9118_readw(opaque, offset);",
"case 4:\nreturn lan9118_readl(opaque, offset, size);",
"}",
"hw_error(\"lan9118_read: Bad size 0x%x\\n\", size);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
13,
15
],
[
17
],
[
21
],
[
23
],
[
25
]
] |
7,861 | static int local_lremovexattr(FsContext *ctx,
const char *path, const char *name)
{
if ((ctx->fs_sm == SM_MAPPED) &&
(strncmp(name, "user.virtfs.", 12) == 0)) {
/*
* Don't allow fetch of user.virtfs namesapce
* in case of mapped security
... | false | qemu | fc22118d9bb56ec71655b936a29513c140e6c289 | static int local_lremovexattr(FsContext *ctx,
const char *path, const char *name)
{
if ((ctx->fs_sm == SM_MAPPED) &&
(strncmp(name, "user.virtfs.", 12) == 0)) {
errno = EACCES;
return -1;
}
return lremovexattr(rpath(ctx, path), na... | {
"code": [],
"line_no": []
} | static int FUNC_0(FsContext *VAR_0,
const char *VAR_1, const char *VAR_2)
{
if ((VAR_0->fs_sm == SM_MAPPED) &&
(strncmp(VAR_2, "user.virtfs.", 12) == 0)) {
errno = EACCES;
return -1;
}
return lremovexattr(rpath(VAR_0, VAR_1), VAR_... | [
"static int FUNC_0(FsContext *VAR_0,\nconst char *VAR_1, const char *VAR_2)\n{",
"if ((VAR_0->fs_sm == SM_MAPPED) &&\n(strncmp(VAR_2, \"user.virtfs.\", 12) == 0)) {",
"errno = EACCES;",
"return -1;",
"}",
"return lremovexattr(rpath(VAR_0, VAR_1), VAR_2);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
7,862 | static void nvic_writel(NVICState *s, uint32_t offset, uint32_t value,
MemTxAttrs attrs)
{
ARMCPU *cpu = s->cpu;
switch (offset) {
case 0xd04: /* Interrupt Control State. */
if (value & (1 << 31)) {
armv7m_nvic_set_pending(s, ARMV7M_EXCP_NMI);
}... | false | qemu | 1bc04a8880374407c4b12d82ceb8752e12ff5336 | static void nvic_writel(NVICState *s, uint32_t offset, uint32_t value,
MemTxAttrs attrs)
{
ARMCPU *cpu = s->cpu;
switch (offset) {
case 0xd04:
if (value & (1 << 31)) {
armv7m_nvic_set_pending(s, ARMV7M_EXCP_NMI);
}
if (value & (1 << 28)... | {
"code": [],
"line_no": []
} | static void FUNC_0(NVICState *VAR_0, uint32_t VAR_1, uint32_t VAR_2,
MemTxAttrs VAR_3)
{
ARMCPU *cpu = VAR_0->cpu;
switch (VAR_1) {
case 0xd04:
if (VAR_2 & (1 << 31)) {
armv7m_nvic_set_pending(VAR_0, ARMV7M_EXCP_NMI);
}
if (VAR_2 & (1 <... | [
"static void FUNC_0(NVICState *VAR_0, uint32_t VAR_1, uint32_t VAR_2,\nMemTxAttrs VAR_3)\n{",
"ARMCPU *cpu = VAR_0->cpu;",
"switch (VAR_1) {",
"case 0xd04:\nif (VAR_2 & (1 << 31)) {",
"armv7m_nvic_set_pending(VAR_0, ARMV7M_EXCP_NMI);",
"}",
"if (VAR_2 & (1 << 28)) {",
"armv7m_nvic_set_pending(VAR_0, A... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
... |
7,863 | static int start_auth_vencrypt(VncState *vs)
{
/* Send VeNCrypt version 0.2 */
vnc_write_u8(vs, 0);
vnc_write_u8(vs, 2);
vnc_read_when(vs, protocol_client_vencrypt_init, 2);
return 0;
}
| false | qemu | 5fb6c7a8b26eab1a22207d24b4784bd2b39ab54b | static int start_auth_vencrypt(VncState *vs)
{
vnc_write_u8(vs, 0);
vnc_write_u8(vs, 2);
vnc_read_when(vs, protocol_client_vencrypt_init, 2);
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(VncState *VAR_0)
{
vnc_write_u8(VAR_0, 0);
vnc_write_u8(VAR_0, 2);
vnc_read_when(VAR_0, protocol_client_vencrypt_init, 2);
return 0;
}
| [
"static int FUNC_0(VncState *VAR_0)\n{",
"vnc_write_u8(VAR_0, 0);",
"vnc_write_u8(VAR_0, 2);",
"vnc_read_when(VAR_0, protocol_client_vencrypt_init, 2);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
]
] |
7,864 | static void gen_dmfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
{
const char *rn = "invalid";
if (sel != 0)
check_insn(ctx, ISA_MIPS64);
switch (reg) {
case 0:
switch (sel) {
case 0:
gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Index));
... | false | qemu | bd79255d2571a3c68820117caf94ea9afe1d527e | static void gen_dmfc0(DisasContext *ctx, TCGv arg, int reg, int sel)
{
const char *rn = "invalid";
if (sel != 0)
check_insn(ctx, ISA_MIPS64);
switch (reg) {
case 0:
switch (sel) {
case 0:
gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Index));
... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, int VAR_2, int VAR_3)
{
const char *VAR_4 = "invalid";
if (VAR_3 != 0)
check_insn(VAR_0, ISA_MIPS64);
switch (VAR_2) {
case 0:
switch (VAR_3) {
case 0:
gen_mfc0_load32(VAR_1, offsetof(CPUMIPSState, CP0_I... | [
"static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, int VAR_2, int VAR_3)\n{",
"const char *VAR_4 = \"invalid\";",
"if (VAR_3 != 0)\ncheck_insn(VAR_0, ISA_MIPS64);",
"switch (VAR_2) {",
"case 0:\nswitch (VAR_3) {",
"case 0:\ngen_mfc0_load32(VAR_1, offsetof(CPUMIPSState, CP0_Index));",
"VAR_4 = \"Index\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17,
19
],
[
21,
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49,
51... |
7,865 | static int avi_read_idx1(AVFormatContext *s, int size)
{
AVIContext *avi = s->priv_data;
AVIOContext *pb = s->pb;
int nb_index_entries, i;
AVStream *st;
AVIStream *ast;
unsigned int index, tag, flags, pos, len, first_packet = 1;
unsigned last_pos= -1;
int64_t idx1_pos, first_pac... | false | FFmpeg | 570a4a0189946c2c983da41d37fdd67fa13266e7 | static int avi_read_idx1(AVFormatContext *s, int size)
{
AVIContext *avi = s->priv_data;
AVIOContext *pb = s->pb;
int nb_index_entries, i;
AVStream *st;
AVIStream *ast;
unsigned int index, tag, flags, pos, len, first_packet = 1;
unsigned last_pos= -1;
int64_t idx1_pos, first_pac... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)
{
AVIContext *avi = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
int VAR_2, VAR_3;
AVStream *st;
AVIStream *ast;
unsigned int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9 = 1;
unsigned VAR_10= -1;
int64_t idx1_pos, first_packet_... | [
"static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{",
"AVIContext *avi = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"int VAR_2, VAR_3;",
"AVStream *st;",
"AVIStream *ast;",
"unsigned int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9 = 1;",
"unsigned VAR_10= -1;",
"int64_t idx1_pos, first_pa... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
49
],
[... |
7,867 | nvdimm_build_structure_memdev(GArray *structures, DeviceState *dev)
{
NvdimmNfitMemDev *nfit_memdev;
uint64_t addr = object_property_get_int(OBJECT(dev), PC_DIMM_ADDR_PROP,
NULL);
uint64_t size = object_property_get_int(OBJECT(dev), PC_DIMM_SIZE_PROP,
... | false | qemu | 6ab0c4bd1dc758b8a1f456d7f748ec313b5fde3d | nvdimm_build_structure_memdev(GArray *structures, DeviceState *dev)
{
NvdimmNfitMemDev *nfit_memdev;
uint64_t addr = object_property_get_int(OBJECT(dev), PC_DIMM_ADDR_PROP,
NULL);
uint64_t size = object_property_get_int(OBJECT(dev), PC_DIMM_SIZE_PROP,
... | {
"code": [],
"line_no": []
} | FUNC_0(GArray *VAR_0, DeviceState *VAR_1)
{
NvdimmNfitMemDev *nfit_memdev;
uint64_t addr = object_property_get_int(OBJECT(VAR_1), PC_DIMM_ADDR_PROP,
NULL);
uint64_t size = object_property_get_int(OBJECT(VAR_1), PC_DIMM_SIZE_PROP,
... | [
"FUNC_0(GArray *VAR_0, DeviceState *VAR_1)\n{",
"NvdimmNfitMemDev *nfit_memdev;",
"uint64_t addr = object_property_get_int(OBJECT(VAR_1), PC_DIMM_ADDR_PROP,\nNULL);",
"uint64_t size = object_property_get_int(OBJECT(VAR_1), PC_DIMM_SIZE_PROP,\nNULL);",
"int VAR_2 = object_property_get_int(OBJECT(VAR_1), PC_D... | [
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,
29
],
[
31
],
[
33
],
[
45
],
[
49
],
[
55
],
[
57
],
[
63
],
[
65
]
] |
7,868 | static void apic_reset(void *opaque)
{
APICState *s = opaque;
int bsp = cpu_is_bsp(s->cpu_env);
s->apicbase = 0xfee00000 |
(bsp ? MSR_IA32_APICBASE_BSP : 0) | MSR_IA32_APICBASE_ENABLE;
apic_init_ipi(s);
if (bsp) {
/*
* LINT0 delivery mode on CPU #0 is set to E... | false | qemu | b09ea7d55cfab5a75912bb56ed1fcd757604a759 | static void apic_reset(void *opaque)
{
APICState *s = opaque;
int bsp = cpu_is_bsp(s->cpu_env);
s->apicbase = 0xfee00000 |
(bsp ? MSR_IA32_APICBASE_BSP : 0) | MSR_IA32_APICBASE_ENABLE;
apic_init_ipi(s);
if (bsp) {
s->lvt[APIC_LVT_LINT0] = 0x700;
}... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
APICState *s = VAR_0;
int VAR_1 = cpu_is_bsp(s->cpu_env);
s->apicbase = 0xfee00000 |
(VAR_1 ? MSR_IA32_APICBASE_BSP : 0) | MSR_IA32_APICBASE_ENABLE;
apic_init_ipi(s);
if (VAR_1) {
s->lvt[APIC_LVT_LINT0] = 0x700;
}... | [
"static void FUNC_0(void *VAR_0)\n{",
"APICState *s = VAR_0;",
"int VAR_1 = cpu_is_bsp(s->cpu_env);",
"s->apicbase = 0xfee00000 |\n(VAR_1 ? MSR_IA32_APICBASE_BSP : 0) | MSR_IA32_APICBASE_ENABLE;",
"apic_init_ipi(s);",
"if (VAR_1) {",
"s->lvt[APIC_LVT_LINT0] = 0x700;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
21
],
[
33
],
[
35
],
[
37
]
] |
7,870 | static void mipsnet_cleanup(NetClientState *nc)
{
MIPSnetState *s = qemu_get_nic_opaque(nc);
s->nic = NULL;
}
| false | qemu | 57407ea44cc0a3d630b9b89a2be011f1955ce5c1 | static void mipsnet_cleanup(NetClientState *nc)
{
MIPSnetState *s = qemu_get_nic_opaque(nc);
s->nic = NULL;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(NetClientState *VAR_0)
{
MIPSnetState *s = qemu_get_nic_opaque(VAR_0);
s->nic = NULL;
}
| [
"static void FUNC_0(NetClientState *VAR_0)\n{",
"MIPSnetState *s = qemu_get_nic_opaque(VAR_0);",
"s->nic = NULL;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
7,871 | int virtio_set_status(VirtIODevice *vdev, uint8_t val)
{
VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev);
trace_virtio_set_status(vdev, val);
if (virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) {
if (!(vdev->status & VIRTIO_CONFIG_S_FEATURES_OK) &&
val & VIRTIO_CONFIG_S_FEATUR... | false | qemu | 95129d6fc9ead97155627a4ca0cfd37282883658 | int virtio_set_status(VirtIODevice *vdev, uint8_t val)
{
VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(vdev);
trace_virtio_set_status(vdev, val);
if (virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) {
if (!(vdev->status & VIRTIO_CONFIG_S_FEATURES_OK) &&
val & VIRTIO_CONFIG_S_FEATUR... | {
"code": [],
"line_no": []
} | int FUNC_0(VirtIODevice *VAR_0, uint8_t VAR_1)
{
VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(VAR_0);
trace_virtio_set_status(VAR_0, VAR_1);
if (virtio_has_feature(VAR_0, VIRTIO_F_VERSION_1)) {
if (!(VAR_0->status & VIRTIO_CONFIG_S_FEATURES_OK) &&
VAR_1 & VIRTIO_CONFIG_S_FEATUR... | [
"int FUNC_0(VirtIODevice *VAR_0, uint8_t VAR_1)\n{",
"VirtioDeviceClass *k = VIRTIO_DEVICE_GET_CLASS(VAR_0);",
"trace_virtio_set_status(VAR_0, VAR_1);",
"if (virtio_has_feature(VAR_0, VIRTIO_F_VERSION_1)) {",
"if (!(VAR_0->status & VIRTIO_CONFIG_S_FEATURES_OK) &&\nVAR_1 & VIRTIO_CONFIG_S_FEATURES_OK) {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
7,872 | START_TEST(unterminated_string)
{
QObject *obj = qobject_from_json("\"abc");
fail_unless(obj == NULL);
}
| false | qemu | ef76dc59fa5203d146a2acf85a0ad5a5971a4824 | START_TEST(unterminated_string)
{
QObject *obj = qobject_from_json("\"abc");
fail_unless(obj == NULL);
}
| {
"code": [],
"line_no": []
} | FUNC_0(VAR_0)
{
QObject *obj = qobject_from_json("\"abc");
fail_unless(obj == NULL);
}
| [
"FUNC_0(VAR_0)\n{",
"QObject *obj = qobject_from_json(\"\\\"abc\");",
"fail_unless(obj == NULL);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
7,875 | qio_channel_socket_accept(QIOChannelSocket *ioc,
Error **errp)
{
QIOChannelSocket *cioc;
cioc = QIO_CHANNEL_SOCKET(object_new(TYPE_QIO_CHANNEL_SOCKET));
cioc->fd = -1;
cioc->remoteAddrLen = sizeof(ioc->remoteAddr);
cioc->localAddrLen = sizeof(ioc->localAddr);
#i... | false | qemu | 0e5d6327f3abb8d582cbc2e444a23ef0dc6a64c7 | qio_channel_socket_accept(QIOChannelSocket *ioc,
Error **errp)
{
QIOChannelSocket *cioc;
cioc = QIO_CHANNEL_SOCKET(object_new(TYPE_QIO_CHANNEL_SOCKET));
cioc->fd = -1;
cioc->remoteAddrLen = sizeof(ioc->remoteAddr);
cioc->localAddrLen = sizeof(ioc->localAddr);
#i... | {
"code": [],
"line_no": []
} | FUNC_0(QIOChannelSocket *VAR_0,
Error **VAR_1)
{
QIOChannelSocket *cioc;
cioc = QIO_CHANNEL_SOCKET(object_new(TYPE_QIO_CHANNEL_SOCKET));
cioc->fd = -1;
cioc->remoteAddrLen = sizeof(VAR_0->remoteAddr);
cioc->localAddrLen = sizeof(VAR_0->localAddr);
#ifdef WIN32
... | [
"FUNC_0(QIOChannelSocket *VAR_0,\nError **VAR_1)\n{",
"QIOChannelSocket *cioc;",
"cioc = QIO_CHANNEL_SOCKET(object_new(TYPE_QIO_CHANNEL_SOCKET));",
"cioc->fd = -1;",
"cioc->remoteAddrLen = sizeof(VAR_0->remoteAddr);",
"cioc->localAddrLen = sizeof(VAR_0->localAddr);",
"#ifdef WIN32\nQIO_CHANNEL(cioc)->ev... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
25,
31,
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55,
57... |
7,876 | static av_cold int encode_init_ls(AVCodecContext *ctx)
{
ctx->coded_frame = av_frame_alloc();
if (!ctx->coded_frame)
return AVERROR(ENOMEM);
ctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
ctx->coded_frame->key_frame = 1;
if (ctx->pix_fmt != AV_PIX_FMT_GRAY8 &&
ctx->pix... | false | FFmpeg | d6604b29ef544793479d7fb4e05ef6622bb3e534 | static av_cold int encode_init_ls(AVCodecContext *ctx)
{
ctx->coded_frame = av_frame_alloc();
if (!ctx->coded_frame)
return AVERROR(ENOMEM);
ctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
ctx->coded_frame->key_frame = 1;
if (ctx->pix_fmt != AV_PIX_FMT_GRAY8 &&
ctx->pix... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *ctx)
{
ctx->coded_frame = av_frame_alloc();
if (!ctx->coded_frame)
return AVERROR(ENOMEM);
ctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
ctx->coded_frame->key_frame = 1;
if (ctx->pix_fmt != AV_PIX_FMT_GRAY8 &&
ctx->pix_fmt != ... | [
"static av_cold int FUNC_0(AVCodecContext *ctx)\n{",
"ctx->coded_frame = av_frame_alloc();",
"if (!ctx->coded_frame)\nreturn AVERROR(ENOMEM);",
"ctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;",
"ctx->coded_frame->key_frame = 1;",
"if (ctx->pix_fmt != AV_PIX_FMT_GRAY8 &&\nctx->pix_fmt != AV_PIX_FMT_GRAY... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
13
],
[
15
],
[
19,
21,
23,
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
7,878 | static int mov_flush_fragment(AVFormatContext *s)
{
MOVMuxContext *mov = s->priv_data;
int i, first_track = -1;
int64_t mdat_size = 0;
if (!(mov->flags & FF_MOV_FLAG_FRAGMENT))
return 0;
if (mov->fragments == 0) {
int64_t pos = avio_tell(s->pb);
uint8_t *buf;
... | true | FFmpeg | da048c6d24729d3bab6ccb0ac340ea129e3e88d5 | static int mov_flush_fragment(AVFormatContext *s)
{
MOVMuxContext *mov = s->priv_data;
int i, first_track = -1;
int64_t mdat_size = 0;
if (!(mov->flags & FF_MOV_FLAG_FRAGMENT))
return 0;
if (mov->fragments == 0) {
int64_t pos = avio_tell(s->pb);
uint8_t *buf;
... | {
"code": [
" mov_write_moov_tag(s->pb, mov, s);"
],
"line_no": [
55
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
MOVMuxContext *mov = VAR_0->priv_data;
int VAR_1, VAR_2 = -1;
int64_t mdat_size = 0;
if (!(mov->flags & FF_MOV_FLAG_FRAGMENT))
return 0;
if (mov->fragments == 0) {
int64_t pos = avio_tell(VAR_0->pb);
uint8_t *buf;
... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"MOVMuxContext *mov = VAR_0->priv_data;",
"int VAR_1, VAR_2 = -1;",
"int64_t mdat_size = 0;",
"if (!(mov->flags & FF_MOV_FLAG_FRAGMENT))\nreturn 0;",
"if (mov->fragments == 0) {",
"int64_t pos = avio_tell(VAR_0->pb);",
"uint8_t *buf;",
"int VAR_3, VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31,
33
],
[
37,
39
],
[
43
],
[
45
],
[
47
],
[
51,
53
],
[
55
],
[
59
... |
7,879 | void dsputil_init_mmi(void)
{
clear_blocks = clear_blocks_mmi;
put_pixels_tab[1][0] = put_pixels8_mmi;
put_no_rnd_pixels_tab[1][0] = put_pixels8_mmi;
put_pixels_tab[0][0] = put_pixels16_mmi;
put_no_rnd_pixels_tab[0][0] = put_pixels16_mmi;
get_pixels = get_pixels_mmi;
}
| false | FFmpeg | af19f78f2fe2b969104d4419efd25fdee90a2814 | void dsputil_init_mmi(void)
{
clear_blocks = clear_blocks_mmi;
put_pixels_tab[1][0] = put_pixels8_mmi;
put_no_rnd_pixels_tab[1][0] = put_pixels8_mmi;
put_pixels_tab[0][0] = put_pixels16_mmi;
put_no_rnd_pixels_tab[0][0] = put_pixels16_mmi;
get_pixels = get_pixels_mmi;
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
clear_blocks = clear_blocks_mmi;
put_pixels_tab[1][0] = put_pixels8_mmi;
put_no_rnd_pixels_tab[1][0] = put_pixels8_mmi;
put_pixels_tab[0][0] = put_pixels16_mmi;
put_no_rnd_pixels_tab[0][0] = put_pixels16_mmi;
get_pixels = get_pixels_mmi;
}
| [
"void FUNC_0(void)\n{",
"clear_blocks = clear_blocks_mmi;",
"put_pixels_tab[1][0] = put_pixels8_mmi;",
"put_no_rnd_pixels_tab[1][0] = put_pixels8_mmi;",
"put_pixels_tab[0][0] = put_pixels16_mmi;",
"put_no_rnd_pixels_tab[0][0] = put_pixels16_mmi;",
"get_pixels = get_pixels_mmi;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
]
] |
7,880 | static void usbredir_put_bufpq(QEMUFile *f, void *priv, size_t unused)
{
struct endp_data *endp = priv;
USBRedirDevice *dev = endp->dev;
struct buf_packet *bufp;
int i = 0;
qemu_put_be32(f, endp->bufpq_size);
QTAILQ_FOREACH(bufp, &endp->bufpq, next) {
DPRINTF("put_bufpq %d/%d l... | true | qemu | b2d1fe67d09d2b6c7da647fbcea6ca0148c206d3 | static void usbredir_put_bufpq(QEMUFile *f, void *priv, size_t unused)
{
struct endp_data *endp = priv;
USBRedirDevice *dev = endp->dev;
struct buf_packet *bufp;
int i = 0;
qemu_put_be32(f, endp->bufpq_size);
QTAILQ_FOREACH(bufp, &endp->bufpq, next) {
DPRINTF("put_bufpq %d/%d l... | {
"code": [
" int i = 0;",
" bufp->len, bufp->status);",
" qemu_put_be32(f, bufp->len);",
" qemu_put_buffer(f, bufp->data, bufp->len);"
],
"line_no": [
11,
21,
23,
27
]
} | static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)
{
struct endp_data *VAR_3 = VAR_1;
USBRedirDevice *dev = VAR_3->dev;
struct buf_packet *VAR_4;
int VAR_5 = 0;
qemu_put_be32(VAR_0, VAR_3->bufpq_size);
QTAILQ_FOREACH(VAR_4, &VAR_3->bufpq, next) {
DPRINTF("put_bufpq ... | [
"static void FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{",
"struct endp_data *VAR_3 = VAR_1;",
"USBRedirDevice *dev = VAR_3->dev;",
"struct buf_packet *VAR_4;",
"int VAR_5 = 0;",
"qemu_put_be32(VAR_0, VAR_3->bufpq_size);",
"QTAILQ_FOREACH(VAR_4, &VAR_3->bufpq, next) {",
"DPRINTF(\"put_bufpq ... | [
0,
0,
0,
0,
1,
0,
0,
1,
1,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
7,883 | void palette8tobgr15(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette)
{
long i;
for(i=0; i<num_pixels; i++)
((uint16_t *)dst)[i] = bswap_16(((uint16_t *)palette)[ src[i] ]);
}
| true | FFmpeg | 6e42e6c4b410dbef8b593c2d796a5dad95f89ee4 | void palette8tobgr15(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette)
{
long i;
for(i=0; i<num_pixels; i++)
((uint16_t *)dst)[i] = bswap_16(((uint16_t *)palette)[ src[i] ]);
}
| {
"code": [
"\tlong i;",
"\tfor(i=0; i<num_pixels; i++)",
"\tfor(i=0; i<num_pixels; i++)",
"\tlong i;",
"\tfor(i=0; i<num_pixels; i++)",
"\tlong i;",
"\tfor(i=0; i<num_pixels; i++)",
"\tfor(i=0; i<num_pixels; i++)",
"\tlong i;",
"\tfor(i=0; i<num_pixels; i++)",
"\tfor(i=0; ... | void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, long VAR_2, const uint8_t *VAR_3)
{
long VAR_4;
for(VAR_4=0; VAR_4<VAR_2; VAR_4++)
((uint16_t *)VAR_1)[VAR_4] = bswap_16(((uint16_t *)VAR_3)[ VAR_0[VAR_4] ]);
}
| [
"void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, long VAR_2, const uint8_t *VAR_3)\n{",
"long VAR_4;",
"for(VAR_4=0; VAR_4<VAR_2; VAR_4++)",
"((uint16_t *)VAR_1)[VAR_4] = bswap_16(((uint16_t *)VAR_3)[ VAR_0[VAR_4] ]);",
"}"
] | [
0,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
7,884 | static inline int16_t mipsdsp_sat_add_i16(int16_t a, int16_t b,
CPUMIPSState *env)
{
int16_t tempS;
tempS = a + b;
if (MIPSDSP_OVERFLOW(a, b, tempS, 0x8000)) {
if (a > 0) {
tempS = 0x7FFF;
} else {
tempS = 0x8000;... | true | qemu | 20c334a797bf46a4ee59a6e42be6d5e7c3cda585 | static inline int16_t mipsdsp_sat_add_i16(int16_t a, int16_t b,
CPUMIPSState *env)
{
int16_t tempS;
tempS = a + b;
if (MIPSDSP_OVERFLOW(a, b, tempS, 0x8000)) {
if (a > 0) {
tempS = 0x7FFF;
} else {
tempS = 0x8000;... | {
"code": [
" if (MIPSDSP_OVERFLOW(a, b, tempS, 0x8000)) {",
" if (a > 0) {",
" if (a > 0) {"
],
"line_no": [
15,
17,
17
]
} | static inline int16_t FUNC_0(int16_t a, int16_t b,
CPUMIPSState *env)
{
int16_t tempS;
tempS = a + b;
if (MIPSDSP_OVERFLOW(a, b, tempS, 0x8000)) {
if (a > 0) {
tempS = 0x7FFF;
} else {
tempS = 0x8000;
}
... | [
"static inline int16_t FUNC_0(int16_t a, int16_t b,\nCPUMIPSState *env)\n{",
"int16_t tempS;",
"tempS = a + b;",
"if (MIPSDSP_OVERFLOW(a, b, tempS, 0x8000)) {",
"if (a > 0) {",
"tempS = 0x7FFF;",
"} else {",
"tempS = 0x8000;",
"}",
"set_DSPControl_overflow_flag(1, 20, env);",
"}",
"return temp... | [
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
]
] |
7,886 | static int config(struct vf_instance *vf,
int width, int height, int d_width, int d_height,
unsigned int flags, unsigned int outfmt)
{
/* FIXME - also support UYVY output? */
return ff_vf_next_config(vf, width * vf->priv->scalew,
he... | true | FFmpeg | 2f11aa141a01f97c5d2a015bd9dbdb27314b79c4 | static int config(struct vf_instance *vf,
int width, int height, int d_width, int d_height,
unsigned int flags, unsigned int outfmt)
{
return ff_vf_next_config(vf, width * vf->priv->scalew,
height / vf->priv->scaleh - vf->priv->ski... | {
"code": [
"static int config(struct vf_instance *vf,",
" int width, int height, int d_width, int d_height,",
" unsigned int flags, unsigned int outfmt)",
" return ff_vf_next_config(vf, width * vf->priv->scalew,",
" height / vf... | static int FUNC_0(struct vf_instance *VAR_0,
int VAR_1, int VAR_2, int VAR_3, int VAR_4,
unsigned int VAR_5, unsigned int VAR_6)
{
return ff_vf_next_config(VAR_0, VAR_1 * VAR_0->priv->scalew,
VAR_2 / VAR_0->priv->scaleh - VAR_0->pr... | [
"static int FUNC_0(struct vf_instance *VAR_0,\nint VAR_1, int VAR_2, int VAR_3, int VAR_4,\nunsigned int VAR_5, unsigned int VAR_6)\n{",
"return ff_vf_next_config(VAR_0, VAR_1 * VAR_0->priv->scalew,\nVAR_2 / VAR_0->priv->scaleh - VAR_0->priv->skipline, VAR_3, VAR_4, VAR_5, IMGFMT_YV12);",
"}"
] | [
1,
1,
0
] | [
[
1,
3,
5,
7
],
[
11,
13
],
[
15
]
] |
7,887 | void av_register_input_format(AVInputFormat *format)
{
AVInputFormat **p = last_iformat;
format->next = NULL;
while(*p || avpriv_atomic_ptr_cas((void * volatile *)p, NULL, format))
p = &(*p)->next;
last_iformat = &format->next;
}
| true | FFmpeg | 4cc896ea5f06f8b1ebcde6d876d9c5b59ef9a016 | void av_register_input_format(AVInputFormat *format)
{
AVInputFormat **p = last_iformat;
format->next = NULL;
while(*p || avpriv_atomic_ptr_cas((void * volatile *)p, NULL, format))
p = &(*p)->next;
last_iformat = &format->next;
}
| {
"code": [
" format->next = NULL;",
" while(*p || avpriv_atomic_ptr_cas((void * volatile *)p, NULL, format))",
" last_iformat = &format->next;",
" format->next = NULL;",
" while(*p || avpriv_atomic_ptr_cas((void * volatile *)p, NULL, format))"
],
"line_no": [
9,
11,
... | void FUNC_0(AVInputFormat *VAR_0)
{
AVInputFormat **p = last_iformat;
VAR_0->next = NULL;
while(*p || avpriv_atomic_ptr_cas((void * volatile *)p, NULL, VAR_0))
p = &(*p)->next;
last_iformat = &VAR_0->next;
}
| [
"void FUNC_0(AVInputFormat *VAR_0)\n{",
"AVInputFormat **p = last_iformat;",
"VAR_0->next = NULL;",
"while(*p || avpriv_atomic_ptr_cas((void * volatile *)p, NULL, VAR_0))\np = &(*p)->next;",
"last_iformat = &VAR_0->next;",
"}"
] | [
0,
0,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
17
]
] |
7,888 | static int dnxhd_decode_row(AVCodecContext *avctx, void *data,
int rownb, int threadnb)
{
const DNXHDContext *ctx = avctx->priv_data;
uint32_t offset = ctx->mb_scan_index[rownb];
RowContext *row = ctx->rows + threadnb;
int x;
row->last_dc[0] =
row->last_dc[1... | true | FFmpeg | b8b8e82ea14016b2cb04b49ecea57f836e6ee7f8 | static int dnxhd_decode_row(AVCodecContext *avctx, void *data,
int rownb, int threadnb)
{
const DNXHDContext *ctx = avctx->priv_data;
uint32_t offset = ctx->mb_scan_index[rownb];
RowContext *row = ctx->rows + threadnb;
int x;
row->last_dc[0] =
row->last_dc[1... | {
"code": [
" dnxhd_decode_macroblock(ctx, row, data, x, rownb);"
],
"line_no": [
29
]
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int VAR_2, int VAR_3)
{
const DNXHDContext *VAR_4 = VAR_0->priv_data;
uint32_t offset = VAR_4->mb_scan_index[VAR_2];
RowContext *row = VAR_4->rows + VAR_3;
int VAR_5;
row->last_dc[0] =
row->last_dc[1] =
... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint VAR_2, int VAR_3)\n{",
"const DNXHDContext *VAR_4 = VAR_0->priv_data;",
"uint32_t offset = VAR_4->mb_scan_index[VAR_2];",
"RowContext *row = VAR_4->rows + VAR_3;",
"int VAR_5;",
"row->last_dc[0] =\nrow->last_dc[1] =\nrow->last_dc[2] = 1 << (VAR_4... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19,
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
37
],
[
39
]
] |
7,889 | static inline int onenand_prog_main(OneNANDState *s, int sec, int secn,
void *src)
{
int result = 0;
if (secn > 0) {
uint32_t size = (uint32_t)secn * 512;
const uint8_t *sp = (const uint8_t *)src;
uint8_t *dp = 0;
if (s->blk_cur) {
dp = g_ma... | true | qemu | 441692ddd8321d5e0f09b163e86410e578d87236 | static inline int onenand_prog_main(OneNANDState *s, int sec, int secn,
void *src)
{
int result = 0;
if (secn > 0) {
uint32_t size = (uint32_t)secn * 512;
const uint8_t *sp = (const uint8_t *)src;
uint8_t *dp = 0;
if (s->blk_cur) {
dp = g_ma... | {
"code": [
" uint32_t size = (uint32_t)secn * 512;",
" if (!dp || blk_read(s->blk_cur, sec, dp, secn) < 0) {",
" dp = (uint8_t *)s->current + (sec << 9);",
" result = blk_write(s->blk_cur, sec, dp, secn) < 0;"
],
"line_no": [
13,
23,
37,... | static inline int FUNC_0(OneNANDState *VAR_0, int VAR_1, int VAR_2,
void *VAR_3)
{
int VAR_4 = 0;
if (VAR_2 > 0) {
uint32_t size = (uint32_t)VAR_2 * 512;
const uint8_t *VAR_5 = (const uint8_t *)VAR_3;
uint8_t *dp = 0;
if (VAR_0->blk_cur) {
d... | [
"static inline int FUNC_0(OneNANDState *VAR_0, int VAR_1, int VAR_2,\nvoid *VAR_3)\n{",
"int VAR_4 = 0;",
"if (VAR_2 > 0) {",
"uint32_t size = (uint32_t)VAR_2 * 512;",
"const uint8_t *VAR_5 = (const uint8_t *)VAR_3;",
"uint8_t *dp = 0;",
"if (VAR_0->blk_cur) {",
"dp = g_malloc(size);",
"if (!dp || b... | [
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
... |
7,890 | static gboolean ga_channel_listen_accept(GIOChannel *channel,
GIOCondition condition, gpointer data)
{
GAChannel *c = data;
int ret, client_fd;
bool accepted = false;
struct sockaddr_un addr;
socklen_t addrlen = sizeof(addr);
g_assert(channel !=... | true | qemu | 32c16620dda8ba16f6d6bcd20efefdec8975af77 | static gboolean ga_channel_listen_accept(GIOChannel *channel,
GIOCondition condition, gpointer data)
{
GAChannel *c = data;
int ret, client_fd;
bool accepted = false;
struct sockaddr_un addr;
socklen_t addrlen = sizeof(addr);
g_assert(channel !=... | {
"code": [],
"line_no": []
} | static gboolean FUNC_0(GIOChannel *channel,
GIOCondition condition, gpointer data)
{
GAChannel *c = data;
int VAR_0, VAR_1;
bool accepted = false;
struct sockaddr_un VAR_2;
socklen_t addrlen = sizeof(VAR_2);
g_assert(channel != NULL);
VAR... | [
"static gboolean FUNC_0(GIOChannel *channel,\nGIOCondition condition, gpointer data)\n{",
"GAChannel *c = data;",
"int VAR_0, VAR_1;",
"bool accepted = false;",
"struct sockaddr_un VAR_2;",
"socklen_t addrlen = sizeof(VAR_2);",
"g_assert(channel != NULL);",
"VAR_1 = qemu_accept(g_io_channel_unix_get_f... | [
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
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
44
],
[
46
],
[
48
... |
7,891 | static int decode_simple_internal(AVCodecContext *avctx, AVFrame *frame)
{
AVCodecInternal *avci = avctx->internal;
DecodeSimpleContext *ds = &avci->ds;
AVPacket *pkt = ds->in_pkt;
// copy to ensure we do not change pkt
AVPacket tmp;
int got_frame, actual_got_frame, did_split;... | true | FFmpeg | e813df4fa345684cc5a63da0510c14f197c9b732 | static int decode_simple_internal(AVCodecContext *avctx, AVFrame *frame)
{
AVCodecInternal *avci = avctx->internal;
DecodeSimpleContext *ds = &avci->ds;
AVPacket *pkt = ds->in_pkt;
AVPacket tmp;
int got_frame, actual_got_frame, did_split;
int ret;
if (!pkt->data &... | {
"code": [
" did_split = av_packet_split_side_data(&tmp);"
],
"line_no": [
61
]
} | static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)
{
AVCodecInternal *avci = VAR_0->internal;
DecodeSimpleContext *ds = &avci->ds;
AVPacket *pkt = ds->in_pkt;
AVPacket tmp;
int VAR_2, VAR_3, VAR_4;
int VAR_5;
if (!pkt->data && !avci->draining) {
av_... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)\n{",
"AVCodecInternal *avci = VAR_0->internal;",
"DecodeSimpleContext *ds = &avci->ds;",
"AVPacket *pkt = ds->in_pkt;",
"AVPacket tmp;",
"int VAR_2, VAR_3, VAR_4;",
"int VAR_5;",
"if (!pkt->data && !avci->draining) {",
"av_packet_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
39,
41
],
[
45,
47,
49,
51
],
[
55
],
[
57,
59,
61
],
[... |
7,895 | static void pool_release_buffer(void *opaque, uint8_t *data)
{
BufferPoolEntry *buf = opaque;
AVBufferPool *pool = buf->pool;
add_to_pool(buf);
if (!avpriv_atomic_int_add_and_fetch(&pool->refcount, -1))
buffer_pool_free(pool);
}
| true | FFmpeg | fbd6c97f9ca858140df16dd07200ea0d4bdc1a83 | static void pool_release_buffer(void *opaque, uint8_t *data)
{
BufferPoolEntry *buf = opaque;
AVBufferPool *pool = buf->pool;
add_to_pool(buf);
if (!avpriv_atomic_int_add_and_fetch(&pool->refcount, -1))
buffer_pool_free(pool);
}
| {
"code": [
" add_to_pool(buf);"
],
"line_no": [
9
]
} | static void FUNC_0(void *VAR_0, uint8_t *VAR_1)
{
BufferPoolEntry *buf = VAR_0;
AVBufferPool *pool = buf->pool;
add_to_pool(buf);
if (!avpriv_atomic_int_add_and_fetch(&pool->refcount, -1))
buffer_pool_free(pool);
}
| [
"static void FUNC_0(void *VAR_0, uint8_t *VAR_1)\n{",
"BufferPoolEntry *buf = VAR_0;",
"AVBufferPool *pool = buf->pool;",
"add_to_pool(buf);",
"if (!avpriv_atomic_int_add_and_fetch(&pool->refcount, -1))\nbuffer_pool_free(pool);",
"}"
] | [
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13
],
[
15
]
] |
7,896 | static int nbd_negotiate_options(NBDClient *client)
{
uint32_t flags;
bool fixedNewstyle = false;
/* Client sends:
[ 0 .. 3] client flags
[ 0 .. 7] NBD_OPTS_MAGIC
[ 8 .. 11] NBD option
[12 .. 15] Data length
... Rest of request
... | true | qemu | 63d5ef869e5e57de4875cd64b6f197cbb5763adf | static int nbd_negotiate_options(NBDClient *client)
{
uint32_t flags;
bool fixedNewstyle = false;
if (nbd_negotiate_read(client->ioc, &flags, sizeof(flags)) !=
sizeof(flags)) {
LOG("read failed");
return -EIO;
}
TRACE("Checking clien... | {
"code": [
" nbd_negotiate_send_rep(client->ioc, NBD_REP_ERR_TLS_REQD,",
" clientflags);",
" nbd_negotiate_send_rep(client->ioc, NBD_REP_ERR_INVALID,",
" clientflags);",
" ... | static int FUNC_0(NBDClient *VAR_0)
{
uint32_t flags;
bool fixedNewstyle = false;
if (nbd_negotiate_read(VAR_0->ioc, &flags, sizeof(flags)) !=
sizeof(flags)) {
LOG("read failed");
return -EIO;
}
TRACE("Checking VAR_0 flags");
be... | [
"static int FUNC_0(NBDClient *VAR_0)\n{",
"uint32_t flags;",
"bool fixedNewstyle = false;",
"if (nbd_negotiate_read(VAR_0->ioc, &flags, sizeof(flags)) !=\nsizeof(flags)) {",
"LOG(\"read failed\");",
"return -EIO;",
"}",
"TRACE(\"Checking VAR_0 flags\");",
"be32_to_cpus(&flags);",
"if (flags & NBD_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... | [
[
1,
3
],
[
5
],
[
7
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
],
[
63
],
[
65
],
[
67
],
[
69
],
[
73
],
... |
7,897 | static inline void gen_store(DisasContext *s, int opsize, TCGv addr, TCGv val)
{
int index = IS_USER(s);
s->is_mem = 1;
switch(opsize) {
case OS_BYTE:
tcg_gen_qemu_st8(val, addr, index);
break;
case OS_WORD:
tcg_gen_qemu_st16(val, addr, index);
break;
c... | true | qemu | 7372c2b926200db295412efbb53f93773b7f1754 | static inline void gen_store(DisasContext *s, int opsize, TCGv addr, TCGv val)
{
int index = IS_USER(s);
s->is_mem = 1;
switch(opsize) {
case OS_BYTE:
tcg_gen_qemu_st8(val, addr, index);
break;
case OS_WORD:
tcg_gen_qemu_st16(val, addr, index);
break;
c... | {
"code": [
" qemu_assert(0, \"bad store size\");",
" break;"
],
"line_no": [
33,
15
]
} | static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, TCGv VAR_2, TCGv VAR_3)
{
int VAR_4 = IS_USER(VAR_0);
VAR_0->is_mem = 1;
switch(VAR_1) {
case OS_BYTE:
tcg_gen_qemu_st8(VAR_3, VAR_2, VAR_4);
break;
case OS_WORD:
tcg_gen_qemu_st16(VAR_3, VAR_2, VAR_4);
... | [
"static inline void FUNC_0(DisasContext *VAR_0, int VAR_1, TCGv VAR_2, TCGv VAR_3)\n{",
"int VAR_4 = IS_USER(VAR_0);",
"VAR_0->is_mem = 1;",
"switch(VAR_1) {",
"case OS_BYTE:\ntcg_gen_qemu_st8(VAR_3, VAR_2, VAR_4);",
"break;",
"case OS_WORD:\ntcg_gen_qemu_st16(VAR_3, VAR_2, VAR_4);",
"break;",
"case... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13
],
[
15
],
[
17,
19
],
[
21
],
[
23,
25,
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
]
] |
7,898 | void blk_mig_init(void)
{
QSIMPLEQ_INIT(&block_mig_state.bmds_list);
QSIMPLEQ_INIT(&block_mig_state.blk_list);
qemu_mutex_init(&block_mig_state.lock);
register_savevm_live(NULL, "block", 0, 1, &savevm_block_handlers,
&block_mig_state);
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | void blk_mig_init(void)
{
QSIMPLEQ_INIT(&block_mig_state.bmds_list);
QSIMPLEQ_INIT(&block_mig_state.blk_list);
qemu_mutex_init(&block_mig_state.lock);
register_savevm_live(NULL, "block", 0, 1, &savevm_block_handlers,
&block_mig_state);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
QSIMPLEQ_INIT(&block_mig_state.bmds_list);
QSIMPLEQ_INIT(&block_mig_state.blk_list);
qemu_mutex_init(&block_mig_state.lock);
register_savevm_live(NULL, "block", 0, 1, &savevm_block_handlers,
&block_mig_state);
}
| [
"void FUNC_0(void)\n{",
"QSIMPLEQ_INIT(&block_mig_state.bmds_list);",
"QSIMPLEQ_INIT(&block_mig_state.blk_list);",
"qemu_mutex_init(&block_mig_state.lock);",
"register_savevm_live(NULL, \"block\", 0, 1, &savevm_block_handlers,\n&block_mig_state);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
]
] |
7,899 | qcrypto_tls_session_check_certificate(QCryptoTLSSession *session,
Error **errp)
{
int ret;
unsigned int status;
const gnutls_datum_t *certs;
unsigned int nCerts, i;
time_t now;
gnutls_x509_crt_t cert = NULL;
now = time(NULL);
if (now == (... | true | qemu | 6ef8cd7a4142049707b70b8278aaa9d8ee2bc5f5 | qcrypto_tls_session_check_certificate(QCryptoTLSSession *session,
Error **errp)
{
int ret;
unsigned int status;
const gnutls_datum_t *certs;
unsigned int nCerts, i;
time_t now;
gnutls_x509_crt_t cert = NULL;
now = time(NULL);
if (now == (... | {
"code": [
" error_setg(errp, \"TLS x509 ACL check for %s is %s\",",
" session->peername, allow ? \"allowed\" : \"denied\");"
],
"line_no": [
215,
217
]
} | FUNC_0(QCryptoTLSSession *VAR_0,
Error **VAR_1)
{
int VAR_2;
unsigned int VAR_3;
const gnutls_datum_t *VAR_4;
unsigned int VAR_5, VAR_6;
time_t now;
gnutls_x509_crt_t cert = NULL;
now = time(NULL);
if (now == ((time_t)-1)) {
erro... | [
"FUNC_0(QCryptoTLSSession *VAR_0,\nError **VAR_1)\n{",
"int VAR_2;",
"unsigned int VAR_3;",
"const gnutls_datum_t *VAR_4;",
"unsigned int VAR_5, VAR_6;",
"time_t now;",
"gnutls_x509_crt_t cert = NULL;",
"now = time(NULL);",
"if (now == ((time_t)-1)) {",
"error_setg_errno(VAR_1, errno, \"Cannot get... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[... |
7,900 | static inline int32_t mipsdsp_add_i32(int32_t a, int32_t b, CPUMIPSState *env)
{
int32_t temp;
temp = a + b;
if (MIPSDSP_OVERFLOW(a, b, temp, 0x80000000)) {
set_DSPControl_overflow_flag(1, 20, env);
}
return temp;
}
| true | qemu | 20c334a797bf46a4ee59a6e42be6d5e7c3cda585 | static inline int32_t mipsdsp_add_i32(int32_t a, int32_t b, CPUMIPSState *env)
{
int32_t temp;
temp = a + b;
if (MIPSDSP_OVERFLOW(a, b, temp, 0x80000000)) {
set_DSPControl_overflow_flag(1, 20, env);
}
return temp;
}
| {
"code": [
" if (MIPSDSP_OVERFLOW(a, b, temp, 0x80000000)) {"
],
"line_no": [
13
]
} | static inline int32_t FUNC_0(int32_t a, int32_t b, CPUMIPSState *env)
{
int32_t temp;
temp = a + b;
if (MIPSDSP_OVERFLOW(a, b, temp, 0x80000000)) {
set_DSPControl_overflow_flag(1, 20, env);
}
return temp;
}
| [
"static inline int32_t FUNC_0(int32_t a, int32_t b, CPUMIPSState *env)\n{",
"int32_t temp;",
"temp = a + b;",
"if (MIPSDSP_OVERFLOW(a, b, temp, 0x80000000)) {",
"set_DSPControl_overflow_flag(1, 20, env);",
"}",
"return temp;",
"}"
] | [
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
]
] |
7,901 | static void qtrle_decode_8bpp(QtrleContext *s, int stream_ptr, int row_ptr, int lines_to_change)
{
int rle_code;
int pixel_ptr;
int row_inc = s->frame.linesize[0];
unsigned char pi1, pi2, pi3, pi4; /* 4 palette indexes */
unsigned char *rgb = s->frame.data[0];
int pixel_limit = s->frame.... | true | FFmpeg | 7fb92be7e50ea4ba5712804326c6814ae02dd190 | static void qtrle_decode_8bpp(QtrleContext *s, int stream_ptr, int row_ptr, int lines_to_change)
{
int rle_code;
int pixel_ptr;
int row_inc = s->frame.linesize[0];
unsigned char pi1, pi2, pi3, pi4;
unsigned char *rgb = s->frame.data[0];
int pixel_limit = s->frame.linesize[0] * s->avctx-... | {
"code": [],
"line_no": []
} | static void FUNC_0(QtrleContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)
{
int VAR_4;
int VAR_5;
int VAR_6 = VAR_0->frame.linesize[0];
unsigned char VAR_7, VAR_8, VAR_9, VAR_10;
unsigned char *VAR_11 = VAR_0->frame.data[0];
int VAR_12 = VAR_0->frame.linesize[0] * VAR_0->avctx->height;
... | [
"static void FUNC_0(QtrleContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{",
"int VAR_4;",
"int VAR_5;",
"int VAR_6 = VAR_0->frame.linesize[0];",
"unsigned char VAR_7, VAR_8, VAR_9, VAR_10;",
"unsigned char *VAR_11 = VAR_0->frame.data[0];",
"int VAR_12 = VAR_0->frame.linesize[0] * VAR_0->avctx->height... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
28
],
[
30
],
[
34
],
[
36
],
[
39
],
[
43
],
[
49
],
[
51
],
[
53
],
[
55
... |
7,902 | static inline void libopenjpeg_copyto16(AVFrame *picture, opj_image_t *image) {
int *comp_data;
uint16_t *img_ptr;
int index, x, y;
int adjust[4];
for (x = 0; x < image->numcomps; x++)
adjust[x] = FFMAX(FFMIN(av_pix_fmt_desc_get(picture->format)->comp[x].depth_minus1 + 1 - image->comps... | true | FFmpeg | 26fc6ffec45c954cd8ca46342ac75cd90bcc7e02 | static inline void libopenjpeg_copyto16(AVFrame *picture, opj_image_t *image) {
int *comp_data;
uint16_t *img_ptr;
int index, x, y;
int adjust[4];
for (x = 0; x < image->numcomps; x++)
adjust[x] = FFMAX(FFMIN(av_pix_fmt_desc_get(picture->format)->comp[x].depth_minus1 + 1 - image->comps... | {
"code": [
" *img_ptr = 0x8000 * image->comps[index].sgnd + (*comp_data << adjust[index]);"
],
"line_no": [
27
]
} | static inline void FUNC_0(AVFrame *VAR_0, opj_image_t *VAR_1) {
int *VAR_2;
uint16_t *img_ptr;
int VAR_3, VAR_4, VAR_5;
int VAR_6[4];
for (VAR_4 = 0; VAR_4 < VAR_1->numcomps; VAR_4++)
VAR_6[VAR_4] = FFMAX(FFMIN(av_pix_fmt_desc_get(VAR_0->format)->comp[VAR_4].depth_minus1 + 1 - VAR_1->c... | [
"static inline void FUNC_0(AVFrame *VAR_0, opj_image_t *VAR_1) {",
"int *VAR_2;",
"uint16_t *img_ptr;",
"int VAR_3, VAR_4, VAR_5;",
"int VAR_6[4];",
"for (VAR_4 = 0; VAR_4 < VAR_1->numcomps; VAR_4++)",
"VAR_6[VAR_4] = FFMAX(FFMIN(av_pix_fmt_desc_get(VAR_0->format)->comp[VAR_4].depth_minus1 + 1 - VAR_1->... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
]
] |
7,904 | static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
{
AVFilterContext *ctx = inlink->dst;
VolumeContext *vol = inlink->dst->priv;
AVFilterLink *outlink = inlink->dst->outputs[0];
int nb_samples = buf->nb_samples;
AVFrame *out_buf;
int64_t pos;
AVFrameSideData *sd = ... | true | FFmpeg | c90b88090c260a0af018b6c1e955266e24ebf6f4 | static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
{
AVFilterContext *ctx = inlink->dst;
VolumeContext *vol = inlink->dst->priv;
AVFilterLink *outlink = inlink->dst->outputs[0];
int nb_samples = buf->nb_samples;
AVFrame *out_buf;
int64_t pos;
AVFrameSideData *sd = ... | {
"code": [
" if (!out_buf)"
],
"line_no": [
147
]
} | static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1)
{
AVFilterContext *ctx = VAR_0->dst;
VolumeContext *vol = VAR_0->dst->priv;
AVFilterLink *outlink = VAR_0->dst->outputs[0];
int VAR_2 = VAR_1->VAR_2;
AVFrame *out_buf;
int64_t pos;
AVFrameSideData *sd = av_frame_get_sid... | [
"static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1)\n{",
"AVFilterContext *ctx = VAR_0->dst;",
"VolumeContext *vol = VAR_0->dst->priv;",
"AVFilterLink *outlink = VAR_0->dst->outputs[0];",
"int VAR_2 = VAR_1->VAR_2;",
"AVFrame *out_buf;",
"int64_t pos;",
"AVFrameSideData *sd = av_frame_ge... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37,
39
],
[
41
],
[
45,
47
],
[
49
... |
7,909 | static int hnm_read_packet(AVFormatContext *s, AVPacket *pkt)
{
Hnm4DemuxContext *hnm = s->priv_data;
AVIOContext *pb = s->pb;
int ret = 0;
uint32_t superchunk_size, chunk_size;
uint16_t chunk_id;
if (hnm->currentframe == hnm->frames || pb->eof_reached)
return AVERROR_EOF;
... | false | FFmpeg | 5c4aa72b75c1715d031df38d925445698be67de4 | static int hnm_read_packet(AVFormatContext *s, AVPacket *pkt)
{
Hnm4DemuxContext *hnm = s->priv_data;
AVIOContext *pb = s->pb;
int ret = 0;
uint32_t superchunk_size, chunk_size;
uint16_t chunk_id;
if (hnm->currentframe == hnm->frames || pb->eof_reached)
return AVERROR_EOF;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
Hnm4DemuxContext *hnm = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
int VAR_2 = 0;
uint32_t superchunk_size, chunk_size;
uint16_t chunk_id;
if (hnm->currentframe == hnm->frames || pb->eof_reached)
return AVERROR_... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"Hnm4DemuxContext *hnm = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"int VAR_2 = 0;",
"uint32_t superchunk_size, chunk_size;",
"uint16_t chunk_id;",
"if (hnm->currentframe == hnm->frames || pb->eof_reached)\nreturn AVERROR_EOF;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19,
21
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53,
55
],
[
57
... |
7,910 | static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
{
AVIOContext *pb = s->pb;
AVCodecContext *enc = s->streams[pkt->stream_index]->codec;
FLVContext *flv = s->priv_data;
unsigned ts;
int size= pkt->size;
uint8_t *data= NULL;
int flags, flags_size;
// av_log(s, AV_LO... | false | FFmpeg | 4ee247a2bdf2fbe81026a428d4affc46c81f28db | static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
{
AVIOContext *pb = s->pb;
AVCodecContext *enc = s->streams[pkt->stream_index]->codec;
FLVContext *flv = s->priv_data;
unsigned ts;
int size= pkt->size;
uint8_t *data= NULL;
int flags, flags_size;
if(enc->codec... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
AVIOContext *pb = VAR_0->pb;
AVCodecContext *enc = VAR_0->streams[VAR_1->stream_index]->codec;
FLVContext *flv = VAR_0->priv_data;
unsigned VAR_2;
int VAR_3= VAR_1->VAR_3;
uint8_t *data= NULL;
int VAR_4, VAR_5;
i... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"AVIOContext *pb = VAR_0->pb;",
"AVCodecContext *enc = VAR_0->streams[VAR_1->stream_index]->codec;",
"FLVContext *flv = VAR_0->priv_data;",
"unsigned VAR_2;",
"int VAR_3= VAR_1->VAR_3;",
"uint8_t *data= NULL;",
"int VAR_4, VAR_5;",
"if... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
25,
27,
29
],
[
31,
33
],
[
35,
37
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
... |
7,911 | static int avi_write_idx1(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
AVIContext *avi = s->priv_data;
int64_t idx_chunk;
int i;
char tag[5];
if (pb->seekable) {
AVIStream *avist;
AVIIentry *ie = 0, *tie;
int empty, stream_id = -1;
idx_chunk = ff_... | false | FFmpeg | 83548fe894cdb455cc127f754d09905b6d23c173 | static int avi_write_idx1(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
AVIContext *avi = s->priv_data;
int64_t idx_chunk;
int i;
char tag[5];
if (pb->seekable) {
AVIStream *avist;
AVIIentry *ie = 0, *tie;
int empty, stream_id = -1;
idx_chunk = ff_... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
AVIOContext *pb = VAR_0->pb;
AVIContext *avi = VAR_0->priv_data;
int64_t idx_chunk;
int VAR_1;
char VAR_2[5];
if (pb->seekable) {
AVIStream *avist;
AVIIentry *ie = 0, *tie;
int VAR_3, VAR_4 = -1;
idx_chunk... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"AVIOContext *pb = VAR_0->pb;",
"AVIContext *avi = VAR_0->priv_data;",
"int64_t idx_chunk;",
"int VAR_1;",
"char VAR_2[5];",
"if (pb->seekable) {",
"AVIStream *avist;",
"AVIIentry *ie = 0, *tie;",
"int VAR_3, VAR_4 = -1;",
"idx_chunk = ff_start_tag... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,... |
7,912 | static int vc1_decode_p_mb_intfr(VC1Context *v)
{
MpegEncContext *s = &v->s;
GetBitContext *gb = &s->gb;
int i;
int mb_pos = s->mb_x + s->mb_y * s->mb_stride;
int cbp = 0; /* cbp decoding stuff */
int mqdiff, mquant; /* MB quantization */
int ttmb = v->ttfrm; /* MB Transform type */
... | false | FFmpeg | f6b195cfb9712ae5032881d5dd8c4effb26be0fb | static int vc1_decode_p_mb_intfr(VC1Context *v)
{
MpegEncContext *s = &v->s;
GetBitContext *gb = &s->gb;
int i;
int mb_pos = s->mb_x + s->mb_y * s->mb_stride;
int cbp = 0;
int mqdiff, mquant;
int ttmb = v->ttfrm;
int mb_has_coeffs = 1;
int dmv_x, dmv_y;
int val;... | {
"code": [],
"line_no": []
} | static int FUNC_0(VC1Context *VAR_0)
{
MpegEncContext *s = &VAR_0->s;
GetBitContext *gb = &s->gb;
int VAR_1;
int VAR_2 = s->mb_x + s->mb_y * s->mb_stride;
int VAR_3 = 0;
int VAR_4, VAR_5;
int VAR_6 = VAR_0->ttfrm;
int VAR_7 = 1;
int VAR_8, VAR_9;
int VAR_10;
... | [
"static int FUNC_0(VC1Context *VAR_0)\n{",
"MpegEncContext *s = &VAR_0->s;",
"GetBitContext *gb = &s->gb;",
"int VAR_1;",
"int VAR_2 = s->mb_x + s->mb_y * s->mb_stride;",
"int VAR_3 = 0;",
"int VAR_4, VAR_5;",
"int VAR_6 = VAR_0->ttfrm;",
"int VAR_7 = 1;",
"int VAR_8, VAR_9;",
"int VAR_10;",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45,
47
],
[... |
7,913 | static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
ZmbvContext * const c = avctx->priv_data;
int zret = Z_OK; // Zlib return code
int len = buf_size;
int hi_ver, lo_ver, ret;
if... | false | FFmpeg | 44c23aa1b85d195db6647d24e3b1d3de051790db | static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
ZmbvContext * const c = avctx->priv_data;
int zret = Z_OK;
int len = buf_size;
int hi_ver, lo_ver, ret;
if (c->pic.data[0])
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
ZmbvContext * const c = VAR_0->priv_data;
int VAR_6 = Z_OK;
int VAR_7 = VAR_5;
int VAR_8, VAR_9, VAR_10;
if (c->pic.VAR_1[0])
... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"ZmbvContext * const c = VAR_0->priv_data;",
"int VAR_6 = Z_OK;",
"int VAR_7 = VAR_5;",
"int VAR_8, VAR_9, VAR_10;",
"if (c->pic.VAR_1[0])\nVAR_0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
7,914 | static int idcin_decode_frame(AVCodecContext *avctx,
void *data, int *got_frame,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
IdcinContext *s = avctx->priv_data;
const uint8_t *pal = av_packet_get_side... | false | FFmpeg | a2b8dde65947bfabf42269e124ef83ecf9c5974a | static int idcin_decode_frame(AVCodecContext *avctx,
void *data, int *got_frame,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
IdcinContext *s = avctx->priv_data;
const uint8_t *pal = av_packet_get_side... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
IdcinContext *s = VAR_0->priv_data;
const uint8_t *VAR_6 = av_packet_get_side_data(VAR_3, ... | [
"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;",
"int VAR_5 = VAR_3->size;",
"IdcinContext *s = VAR_0->priv_data;",
"const uint8_t *VAR_6 = av_packet_get_side_data(VAR_3, AV_PKT_DATA_PALETTE, NULL);",
"AVFrame *frame = VAR_1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29,
31
],
[
35,
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
55
],
[
61
... |
7,915 | static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
int *data_size, AVPacket *avpkt) {
const uint8_t *buf = avpkt->data;
SUNRASTContext * const s = avctx->priv_data;
AVFrame *picture = data;
AVFrame * const p = &s->picture;
unsigned int w, h, dept... | true | FFmpeg | 039f3c33fffd2f4ae376b662ea4ec67c1d6a4c04 | static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
int *data_size, AVPacket *avpkt) {
const uint8_t *buf = avpkt->data;
SUNRASTContext * const s = avctx->priv_data;
AVFrame *picture = data;
AVFrame * const p = &s->picture;
unsigned int w, h, dept... | {
"code": [
" while (ptr != end) {"
],
"line_no": [
201
]
} | 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;
SUNRASTContext * const s = VAR_0->priv_data;
AVFrame *picture = VAR_1;
AVFrame * const p = &s->picture;
unsigned int VAR_5, VAR_6, VAR_7, VA... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3) {",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"SUNRASTContext * const s = VAR_0->priv_data;",
"AVFrame *picture = VAR_1;",
"AVFrame * const p = &s->picture;",
"unsigned int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
... |
7,917 | static void nand_command(NANDFlashState *s)
{
unsigned int offset;
switch (s->cmd) {
case NAND_CMD_READ0:
s->iolen = 0;
break;
case NAND_CMD_READID:
s->ioaddr = s->io;
s->iolen = 0;
nand_pushio_byte(s, s->manf_id);
nand_pushio_byte(s, s->chip_... | true | qemu | 1984745ea8ad309a06690a83e91d031d21d709ff | static void nand_command(NANDFlashState *s)
{
unsigned int offset;
switch (s->cmd) {
case NAND_CMD_READ0:
s->iolen = 0;
break;
case NAND_CMD_READID:
s->ioaddr = s->io;
s->iolen = 0;
nand_pushio_byte(s, s->manf_id);
nand_pushio_byte(s, s->chip_... | {
"code": [
" if (nand_flash_ids[s->chip_id].options & NAND_SAMSUNG_LP)",
" s->addr <<= 16;",
" s->addr <<= 8;"
],
"line_no": [
113,
115,
119
]
} | static void FUNC_0(NANDFlashState *VAR_0)
{
unsigned int VAR_1;
switch (VAR_0->cmd) {
case NAND_CMD_READ0:
VAR_0->iolen = 0;
break;
case NAND_CMD_READID:
VAR_0->ioaddr = VAR_0->io;
VAR_0->iolen = 0;
nand_pushio_byte(VAR_0, VAR_0->manf_id);
nan... | [
"static void FUNC_0(NANDFlashState *VAR_0)\n{",
"unsigned int VAR_1;",
"switch (VAR_0->cmd) {",
"case NAND_CMD_READ0:\nVAR_0->iolen = 0;",
"break;",
"case NAND_CMD_READID:\nVAR_0->ioaddr = VAR_0->io;",
"VAR_0->iolen = 0;",
"nand_pushio_byte(VAR_0, VAR_0->manf_id);",
"nand_pushio_byte(VAR_0, VAR_0->c... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49,
51,
53,
55
],
[... |
7,918 | static void readline_hist_add(ReadLineState *rs, const char *cmdline)
{
char *hist_entry, *new_entry;
int idx;
if (cmdline[0] == '\0')
return;
new_entry = NULL;
if (rs->hist_entry != -1) {
/* We were editing an existing history entry: replace it */
hist_entry = rs->history[rs->hist_ent... | true | qemu | 8af42882a51c632a14d77277df0740f1aa8c958a | static void readline_hist_add(ReadLineState *rs, const char *cmdline)
{
char *hist_entry, *new_entry;
int idx;
if (cmdline[0] == '\0')
return;
new_entry = NULL;
if (rs->hist_entry != -1) {
hist_entry = rs->history[rs->hist_entry];
idx = rs->hist_entry;
if (strcmp(hist_entry, cmdli... | {
"code": [
"\t\t (READLINE_MAX_CMDS - idx + 1) * sizeof(char *));"
],
"line_no": [
53
]
} | static void FUNC_0(ReadLineState *VAR_0, const char *VAR_1)
{
char *VAR_2, *VAR_3;
int VAR_4;
if (VAR_1[0] == '\0')
return;
VAR_3 = NULL;
if (VAR_0->VAR_2 != -1) {
VAR_2 = VAR_0->history[VAR_0->VAR_2];
VAR_4 = VAR_0->VAR_2;
if (strcmp(VAR_2, VAR_1) == 0) {
goto same_entry;
... | [
"static void FUNC_0(ReadLineState *VAR_0, const char *VAR_1)\n{",
"char *VAR_2, *VAR_3;",
"int VAR_4;",
"if (VAR_1[0] == '\\0')\nreturn;",
"VAR_3 = NULL;",
"if (VAR_0->VAR_2 != -1) {",
"VAR_2 = VAR_0->history[VAR_0->VAR_2];",
"VAR_4 = VAR_0->VAR_2;",
"if (strcmp(VAR_2, VAR_1) == 0) {",
"goto same_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
51,
53... |
7,919 | static int flush_blks(QEMUFile *f)
{
BlkMigBlock *blk;
int ret = 0;
DPRINTF("%s Enter submitted %d read_done %d transferred %d\n",
__FUNCTION__, block_mig_state.submitted, block_mig_state.read_done,
block_mig_state.transferred);
blk_mig_lock();
while ((blk = QSIMP... | true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static int flush_blks(QEMUFile *f)
{
BlkMigBlock *blk;
int ret = 0;
DPRINTF("%s Enter submitted %d read_done %d transferred %d\n",
__FUNCTION__, block_mig_state.submitted, block_mig_state.read_done,
block_mig_state.transferred);
blk_mig_lock();
while ((blk = QSIMP... | {
"code": [],
"line_no": []
} | static int FUNC_0(QEMUFile *VAR_0)
{
BlkMigBlock *blk;
int VAR_1 = 0;
DPRINTF("%s Enter submitted %d read_done %d transferred %d\n",
__FUNCTION__, block_mig_state.submitted, block_mig_state.read_done,
block_mig_state.transferred);
blk_mig_lock();
while ((blk = QSI... | [
"static int FUNC_0(QEMUFile *VAR_0)\n{",
"BlkMigBlock *blk;",
"int VAR_1 = 0;",
"DPRINTF(\"%s Enter submitted %d read_done %d transferred %d\\n\",\n__FUNCTION__, block_mig_state.submitted, block_mig_state.read_done,\nblock_mig_state.transferred);",
"blk_mig_lock();",
"while ((blk = QSIMPLEQ_FIRST(&block_m... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13,
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51... |
7,920 | static int bitplane_decoding(BitPlane *bp, VC9Context *v)
{
GetBitContext *gb = &v->s.gb;
int imode, x, y, code, use_vertical_tile, tile_w, tile_h;
uint8_t invert, *planep = bp->data;
invert = get_bits(gb, 1);
imode = get_vlc2(gb, vc9_imode_vlc.table, VC9_IMODE_VLC_BITS, 2);
bp->is_... | true | FFmpeg | 7cc84d241ba6ef8e27e4d057176a4ad385ad3d59 | static int bitplane_decoding(BitPlane *bp, VC9Context *v)
{
GetBitContext *gb = &v->s.gb;
int imode, x, y, code, use_vertical_tile, tile_w, tile_h;
uint8_t invert, *planep = bp->data;
invert = get_bits(gb, 1);
imode = get_vlc2(gb, vc9_imode_vlc.table, VC9_IMODE_VLC_BITS, 2);
bp->is_... | {
"code": [
"#if VLC_NORM6_METH0D == 1",
"#endif",
"#endif",
"#if VLC_NORM6_METH0D == 1",
"# endif",
"#if VLC_NORM6_METH0D == 1",
"#endif",
"#endif",
" GetBitContext *gb = &v->s.gb;",
" GetBitContext *gb = &v->s.gb;",
" int imode, x, y, code, use_vertical_tile, ti... | static int FUNC_0(BitPlane *VAR_0, VC9Context *VAR_1)
{
GetBitContext *gb = &VAR_1->s.gb;
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
uint8_t invert, *planep = VAR_0->data;
invert = get_bits(gb, 1);
VAR_2 = get_vlc2(gb, vc9_imode_vlc.table, VC9_IMODE_VLC_BITS, 2);
VAR_0->is... | [
"static int FUNC_0(BitPlane *VAR_0, VC9Context *VAR_1)\n{",
"GetBitContext *gb = &VAR_1->s.gb;",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"uint8_t invert, *planep = VAR_0->data;",
"invert = get_bits(gb, 1);",
"VAR_2 = get_vlc2(gb, vc9_imode_vlc.table, VC9_IMODE_VLC_BITS, 2);",
"VAR_0->is_... | [
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
27,
31
],
[
33
],
[
35,
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55... |
7,921 | static void sx1_init(MachineState *machine, const int version)
{
struct omap_mpu_state_s *mpu;
MemoryRegion *address_space = get_system_memory();
MemoryRegion *flash = g_new(MemoryRegion, 1);
MemoryRegion *flash_1 = g_new(MemoryRegion, 1);
MemoryRegion *cs = g_new(MemoryRegion, 4);
static... | true | qemu | 9f9b026dc60398224fb035eb27ae0ed083d2d66f | static void sx1_init(MachineState *machine, const int version)
{
struct omap_mpu_state_s *mpu;
MemoryRegion *address_space = get_system_memory();
MemoryRegion *flash = g_new(MemoryRegion, 1);
MemoryRegion *flash_1 = g_new(MemoryRegion, 1);
MemoryRegion *cs = g_new(MemoryRegion, 4);
static... | {
"code": [
" MemoryRegion *flash_1 = g_new(MemoryRegion, 1);"
],
"line_no": [
11
]
} | static void FUNC_0(MachineState *VAR_0, const int VAR_1)
{
struct omap_mpu_state_s *VAR_2;
MemoryRegion *address_space = get_system_memory();
MemoryRegion *flash = g_new(MemoryRegion, 1);
MemoryRegion *flash_1 = g_new(MemoryRegion, 1);
MemoryRegion *cs = g_new(MemoryRegion, 4);
static uin... | [
"static void FUNC_0(MachineState *VAR_0, const int VAR_1)\n{",
"struct omap_mpu_state_s *VAR_2;",
"MemoryRegion *address_space = get_system_memory();",
"MemoryRegion *flash = g_new(MemoryRegion, 1);",
"MemoryRegion *flash_1 = g_new(MemoryRegion, 1);",
"MemoryRegion *cs = g_new(MemoryRegion, 4);",
"stati... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41,
43
],
[
49,
51
... |
7,922 | static void avc_luma_mid_16w_msa(const uint8_t *src, int32_t src_stride,
uint8_t *dst, int32_t dst_stride,
int32_t height)
{
uint32_t multiple8_cnt;
for (multiple8_cnt = 2; multiple8_cnt--;) {
avc_luma_mid_8w_msa(src, src_stride, ... | false | FFmpeg | e549933a270dd2cfc36f2cf9bb6b29acf3dc6d08 | static void avc_luma_mid_16w_msa(const uint8_t *src, int32_t src_stride,
uint8_t *dst, int32_t dst_stride,
int32_t height)
{
uint32_t multiple8_cnt;
for (multiple8_cnt = 2; multiple8_cnt--;) {
avc_luma_mid_8w_msa(src, src_stride, ... | {
"code": [],
"line_no": []
} | static void FUNC_0(const uint8_t *VAR_0, int32_t VAR_1,
uint8_t *VAR_2, int32_t VAR_3,
int32_t VAR_4)
{
uint32_t multiple8_cnt;
for (multiple8_cnt = 2; multiple8_cnt--;) {
avc_luma_mid_8w_msa(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4);
... | [
"static void FUNC_0(const uint8_t *VAR_0, int32_t VAR_1,\nuint8_t *VAR_2, int32_t VAR_3,\nint32_t VAR_4)\n{",
"uint32_t multiple8_cnt;",
"for (multiple8_cnt = 2; multiple8_cnt--;) {",
"avc_luma_mid_8w_msa(VAR_0, VAR_1, VAR_2, VAR_3, VAR_4);",
"VAR_0 += 8;",
"VAR_2 += 8;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
7,923 | static int mpeg_decode_mb(MpegEncContext *s, DCTELEM block[12][64])
{
int i, j, k, cbp, val, mb_type, motion_type;
const int mb_block_count = 4 + (1 << s->chroma_format);
av_dlog(s->avctx, "decode_mb: x=%d y=%d\n", s->mb_x, s->mb_y);
assert(s->mb_skipped == 0);
if (s->mb_skip_run-- != 0)... | false | FFmpeg | f0ff822ccb9b2bd46063e35fcb1681cd0affecac | static int mpeg_decode_mb(MpegEncContext *s, DCTELEM block[12][64])
{
int i, j, k, cbp, val, mb_type, motion_type;
const int mb_block_count = 4 + (1 << s->chroma_format);
av_dlog(s->avctx, "decode_mb: x=%d y=%d\n", s->mb_x, s->mb_y);
assert(s->mb_skipped == 0);
if (s->mb_skip_run-- != 0)... | {
"code": [],
"line_no": []
} | static int FUNC_0(MpegEncContext *VAR_0, DCTELEM VAR_1[12][64])
{
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_10, VAR_8;
const int VAR_9 = 4 + (1 << VAR_0->chroma_format);
av_dlog(VAR_0->avctx, "decode_mb: x=%d y=%d\n", VAR_0->mb_x, VAR_0->mb_y);
assert(VAR_0->mb_skipped == 0);
if (VAR_0-... | [
"static int FUNC_0(MpegEncContext *VAR_0, DCTELEM VAR_1[12][64])\n{",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_10, VAR_8;",
"const int VAR_9 = 4 + (1 << VAR_0->chroma_format);",
"av_dlog(VAR_0->avctx, \"decode_mb: x=%d y=%d\\n\", VAR_0->mb_x, VAR_0->mb_y);",
"assert(VAR_0->mb_skipped == 0);",
"if (VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33,
35
],
[
37,
39
],
[
41,
43
],
[
45,
47
],
[
53,
55
],
[
57
],
... |
7,924 | AVFilterBufferRef *avfilter_get_audio_buffer(AVFilterLink *link, int perms,
enum AVSampleFormat sample_fmt, int size,
int64_t channel_layout, int planar)
{
AVFilterBufferRef *ret = NULL;
if (link->dstpad->get_audio_... | false | FFmpeg | cc276c85d15272df6e44fb3252657a43cbd49555 | AVFilterBufferRef *avfilter_get_audio_buffer(AVFilterLink *link, int perms,
enum AVSampleFormat sample_fmt, int size,
int64_t channel_layout, int planar)
{
AVFilterBufferRef *ret = NULL;
if (link->dstpad->get_audio_... | {
"code": [],
"line_no": []
} | AVFilterBufferRef *FUNC_0(AVFilterLink *link, int perms,
enum AVSampleFormat sample_fmt, int size,
int64_t channel_layout, int planar)
{
AVFilterBufferRef *ret = NULL;
if (link->dstpad->get_audio_buffer)
re... | [
"AVFilterBufferRef *FUNC_0(AVFilterLink *link, int perms,\nenum AVSampleFormat sample_fmt, int size,\nint64_t channel_layout, int planar)\n{",
"AVFilterBufferRef *ret = NULL;",
"if (link->dstpad->get_audio_buffer)\nret = link->dstpad->get_audio_buffer(link, perms, sample_fmt, size, channel_layout, planar);",
... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13,
15
],
[
19,
21
],
[
25,
27
],
[
31
],
[
33
]
] |
7,927 | bool qemu_log_in_addr_range(uint64_t addr)
{
if (debug_regions) {
int i = 0;
for (i = 0; i < debug_regions->len; i++) {
Range *range = &g_array_index(debug_regions, Range, i);
if (addr >= range->begin && addr <= range->end - 1) {
return true;
... | false | qemu | a0efbf16604770b9d805bcf210ec29942321134f | bool qemu_log_in_addr_range(uint64_t addr)
{
if (debug_regions) {
int i = 0;
for (i = 0; i < debug_regions->len; i++) {
Range *range = &g_array_index(debug_regions, Range, i);
if (addr >= range->begin && addr <= range->end - 1) {
return true;
... | {
"code": [],
"line_no": []
} | bool FUNC_0(uint64_t addr)
{
if (debug_regions) {
int VAR_0 = 0;
for (VAR_0 = 0; VAR_0 < debug_regions->len; VAR_0++) {
Range *range = &g_array_index(debug_regions, Range, VAR_0);
if (addr >= range->begin && addr <= range->end - 1) {
return true;
... | [
"bool FUNC_0(uint64_t addr)\n{",
"if (debug_regions) {",
"int VAR_0 = 0;",
"for (VAR_0 = 0; VAR_0 < debug_regions->len; VAR_0++) {",
"Range *range = &g_array_index(debug_regions, Range, VAR_0);",
"if (addr >= range->begin && addr <= range->end - 1) {",
"return true;",
"}",
"}",
"return false;",
... | [
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
]
] |
7,928 | static void pxa2xx_rtc_swupdate(PXA2xxRTCState *s)
{
int64_t rt = qemu_get_clock(rt_clock);
if (s->rtsr & (1 << 12))
s->last_swcr += (rt - s->last_sw) / 10;
s->last_sw = rt;
}
| false | qemu | 7bd427d801e1e3293a634d3c83beadaa90ffb911 | static void pxa2xx_rtc_swupdate(PXA2xxRTCState *s)
{
int64_t rt = qemu_get_clock(rt_clock);
if (s->rtsr & (1 << 12))
s->last_swcr += (rt - s->last_sw) / 10;
s->last_sw = rt;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(PXA2xxRTCState *VAR_0)
{
int64_t rt = qemu_get_clock(rt_clock);
if (VAR_0->rtsr & (1 << 12))
VAR_0->last_swcr += (rt - VAR_0->last_sw) / 10;
VAR_0->last_sw = rt;
}
| [
"static void FUNC_0(PXA2xxRTCState *VAR_0)\n{",
"int64_t rt = qemu_get_clock(rt_clock);",
"if (VAR_0->rtsr & (1 << 12))\nVAR_0->last_swcr += (rt - VAR_0->last_sw) / 10;",
"VAR_0->last_sw = rt;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13
]
] |
7,930 | static int net_socket_connect_init(NetClientState *peer,
const char *model,
const char *name,
const char *host_str)
{
socket_connect_data *c = g_new0(socket_connect_data, 1);
int fd = -1;
Error *l... | false | qemu | 6701e5514beab7b781a10424a94e9850c707287c | static int net_socket_connect_init(NetClientState *peer,
const char *model,
const char *name,
const char *host_str)
{
socket_connect_data *c = g_new0(socket_connect_data, 1);
int fd = -1;
Error *l... | {
"code": [],
"line_no": []
} | static int FUNC_0(NetClientState *VAR_0,
const char *VAR_1,
const char *VAR_2,
const char *VAR_3)
{
socket_connect_data *c = g_new0(socket_connect_data, 1);
int VAR_4 = -1;
Error *local_error = NU... | [
"static int FUNC_0(NetClientState *VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3)\n{",
"socket_connect_data *c = g_new0(socket_connect_data, 1);",
"int VAR_4 = -1;",
"Error *local_error = NULL;",
"c->VAR_0 = VAR_0;",
"c->VAR_1 = g_strdup(VAR_1);",
"c->VAR_2 = g_strdup(VAR_2);",
"c-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
49,
51
],
[
53
... |
7,931 | int css_do_hsch(SubchDev *sch)
{
SCSW *s = &sch->curr_status.scsw;
PMCW *p = &sch->curr_status.pmcw;
int ret;
if (!(p->flags & (PMCW_FLAGS_MASK_DNV | PMCW_FLAGS_MASK_ENA))) {
ret = -ENODEV;
goto out;
}
if (((s->ctrl & SCSW_CTRL_MASK_STCTL) == SCSW_STCTL_STATUS_PEND) ... | false | qemu | c679e74d2e29fa08ede9121d59aee4e9675611d7 | int css_do_hsch(SubchDev *sch)
{
SCSW *s = &sch->curr_status.scsw;
PMCW *p = &sch->curr_status.pmcw;
int ret;
if (!(p->flags & (PMCW_FLAGS_MASK_DNV | PMCW_FLAGS_MASK_ENA))) {
ret = -ENODEV;
goto out;
}
if (((s->ctrl & SCSW_CTRL_MASK_STCTL) == SCSW_STCTL_STATUS_PEND) ... | {
"code": [],
"line_no": []
} | int FUNC_0(SubchDev *VAR_0)
{
SCSW *s = &VAR_0->curr_status.scsw;
PMCW *p = &VAR_0->curr_status.pmcw;
int VAR_1;
if (!(p->flags & (PMCW_FLAGS_MASK_DNV | PMCW_FLAGS_MASK_ENA))) {
VAR_1 = -ENODEV;
goto out;
}
if (((s->ctrl & SCSW_CTRL_MASK_STCTL) == SCSW_STCTL_STATUS_P... | [
"int FUNC_0(SubchDev *VAR_0)\n{",
"SCSW *s = &VAR_0->curr_status.scsw;",
"PMCW *p = &VAR_0->curr_status.pmcw;",
"int VAR_1;",
"if (!(p->flags & (PMCW_FLAGS_MASK_DNV | PMCW_FLAGS_MASK_ENA))) {",
"VAR_1 = -ENODEV;",
"goto out;",
"}",
"if (((s->ctrl & SCSW_CTRL_MASK_STCTL) == SCSW_STCTL_STATUS_PEND) ||... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23,
25,
27,
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
51
],
[
53
],
[... |
7,932 | static void xilinx_spips_flush_txfifo(XilinxSPIPS *s)
{
for (;;) {
int i;
uint8_t rx;
uint8_t tx = 0;
for (i = 0; i < num_effective_busses(s); ++i) {
if (!i || s->snoop_state == SNOOP_STRIPING) {
if (fifo8_is_empty(&s->tx_fifo)) {
... | false | qemu | 08a9635b68757e18a6a8bf8569353b40bb6c1fd1 | static void xilinx_spips_flush_txfifo(XilinxSPIPS *s)
{
for (;;) {
int i;
uint8_t rx;
uint8_t tx = 0;
for (i = 0; i < num_effective_busses(s); ++i) {
if (!i || s->snoop_state == SNOOP_STRIPING) {
if (fifo8_is_empty(&s->tx_fifo)) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(XilinxSPIPS *VAR_0)
{
for (;;) {
int VAR_1;
uint8_t rx;
uint8_t tx = 0;
for (VAR_1 = 0; VAR_1 < num_effective_busses(VAR_0); ++VAR_1) {
if (!VAR_1 || VAR_0->snoop_state == SNOOP_STRIPING) {
if (fifo8_is_empty(&VAR_0->tx_fifo)) ... | [
"static void FUNC_0(XilinxSPIPS *VAR_0)\n{",
"for (;;) {",
"int VAR_1;",
"uint8_t rx;",
"uint8_t tx = 0;",
"for (VAR_1 = 0; VAR_1 < num_effective_busses(VAR_0); ++VAR_1) {",
"if (!VAR_1 || VAR_0->snoop_state == SNOOP_STRIPING) {",
"if (fifo8_is_empty(&VAR_0->tx_fifo)) {",
"VAR_0->regs[R_INTR_STATUS]... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
... |
7,933 | void memory_region_set_skip_dump(MemoryRegion *mr)
{
mr->skip_dump = true;
}
| false | qemu | 21e00fa55f3fdfcbb20da7c6876c91ef3609b387 | void memory_region_set_skip_dump(MemoryRegion *mr)
{
mr->skip_dump = true;
}
| {
"code": [],
"line_no": []
} | void FUNC_0(MemoryRegion *VAR_0)
{
VAR_0->skip_dump = true;
}
| [
"void FUNC_0(MemoryRegion *VAR_0)\n{",
"VAR_0->skip_dump = true;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
7,934 | static int no_init_out (HWVoiceOut *hw, audsettings_t *as)
{
audio_pcm_init_info (&hw->info, as);
hw->samples = 1024;
return 0;
}
| false | qemu | 1ea879e5580f63414693655fcf0328559cdce138 | static int no_init_out (HWVoiceOut *hw, audsettings_t *as)
{
audio_pcm_init_info (&hw->info, as);
hw->samples = 1024;
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0 (HWVoiceOut *VAR_0, audsettings_t *VAR_1)
{
audio_pcm_init_info (&VAR_0->info, VAR_1);
VAR_0->samples = 1024;
return 0;
}
| [
"static int FUNC_0 (HWVoiceOut *VAR_0, audsettings_t *VAR_1)\n{",
"audio_pcm_init_info (&VAR_0->info, VAR_1);",
"VAR_0->samples = 1024;",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
7,935 | static void __attribute__((constructor)) init_cpuid_cache(void)
{
int max = __get_cpuid_max(0, NULL);
int a, b, c, d;
unsigned cache = 0;
if (max >= 1) {
__cpuid(1, a, b, c, d);
if (d & bit_SSE2) {
cache |= CACHE_SSE2;
}
#ifdef CONFIG_AVX2_OPT
if ... | false | qemu | d9911d14e01f5e97c6ac1fe681ef15334250d149 | static void __attribute__((constructor)) init_cpuid_cache(void)
{
int max = __get_cpuid_max(0, NULL);
int a, b, c, d;
unsigned cache = 0;
if (max >= 1) {
__cpuid(1, a, b, c, d);
if (d & bit_SSE2) {
cache |= CACHE_SSE2;
}
#ifdef CONFIG_AVX2_OPT
if ... | {
"code": [],
"line_no": []
} | static void __attribute__((constructor)) FUNC_0(void)
{
int VAR_0 = __get_cpuid_max(0, NULL);
int VAR_1, VAR_2, VAR_3, VAR_4;
unsigned VAR_5 = 0;
if (VAR_0 >= 1) {
__cpuid(1, VAR_1, VAR_2, VAR_3, VAR_4);
if (VAR_4 & bit_SSE2) {
VAR_5 |= CACHE_SSE2;
}
#ifde... | [
"static void __attribute__((constructor)) FUNC_0(void)\n{",
"int VAR_0 = __get_cpuid_max(0, NULL);",
"int VAR_1, VAR_2, VAR_3, VAR_4;",
"unsigned VAR_5 = 0;",
"if (VAR_0 >= 1) {",
"__cpuid(1, VAR_1, VAR_2, VAR_3, VAR_4);",
"if (VAR_4 & bit_SSE2) {",
"VAR_5 |= CACHE_SSE2;",
"}",
"#ifdef CONFIG_AVX2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
7,937 | static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size,
int parse_extradata)
{
MpegEncContext *const s = &h->s;
AVCodecContext *const avctx = s->avctx;
H264Context *hx; ///< thread context
int buf_index;
int context_count;
int next_av... | false | FFmpeg | 99321d1b03b1724011101bf3c1d12beeb406b375 | static int decode_nal_units(H264Context *h, const uint8_t *buf, int buf_size,
int parse_extradata)
{
MpegEncContext *const s = &h->s;
AVCodecContext *const avctx = s->avctx;
H264Context *hx;
int buf_index;
int context_count;
int next_avc;
int pass = ... | {
"code": [],
"line_no": []
} | static int FUNC_0(H264Context *VAR_0, const uint8_t *VAR_1, int VAR_2,
int VAR_3)
{
MpegEncContext *const s = &VAR_0->s;
AVCodecContext *const avctx = s->avctx;
H264Context *hx;
int VAR_4;
int VAR_5;
int VAR_6;
int VAR_7 = !(avctx->active_thread_type... | [
"static int FUNC_0(H264Context *VAR_0, const uint8_t *VAR_1, int VAR_2,\nint VAR_3)\n{",
"MpegEncContext *const s = &VAR_0->s;",
"AVCodecContext *const avctx = s->avctx;",
"H264Context *hx;",
"int VAR_4;",
"int VAR_5;",
"int VAR_6;",
"int VAR_7 = !(avctx->active_thread_type & FF_THREAD_FRAME);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[... |
7,938 | static void gen_exception_return(DisasContext *s, TCGv_i32 pc)
{
TCGv_i32 tmp;
store_reg(s, 15, pc);
tmp = load_cpu_field(spsr);
gen_set_cpsr(tmp, CPSR_ERET_MASK);
tcg_temp_free_i32(tmp);
s->is_jmp = DISAS_JUMP;
}
| false | qemu | 235ea1f5c89abf30e452539b973b0dbe43d3fe2b | static void gen_exception_return(DisasContext *s, TCGv_i32 pc)
{
TCGv_i32 tmp;
store_reg(s, 15, pc);
tmp = load_cpu_field(spsr);
gen_set_cpsr(tmp, CPSR_ERET_MASK);
tcg_temp_free_i32(tmp);
s->is_jmp = DISAS_JUMP;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0, TCGv_i32 VAR_1)
{
TCGv_i32 tmp;
store_reg(VAR_0, 15, VAR_1);
tmp = load_cpu_field(spsr);
gen_set_cpsr(tmp, CPSR_ERET_MASK);
tcg_temp_free_i32(tmp);
VAR_0->is_jmp = DISAS_JUMP;
}
| [
"static void FUNC_0(DisasContext *VAR_0, TCGv_i32 VAR_1)\n{",
"TCGv_i32 tmp;",
"store_reg(VAR_0, 15, VAR_1);",
"tmp = load_cpu_field(spsr);",
"gen_set_cpsr(tmp, CPSR_ERET_MASK);",
"tcg_temp_free_i32(tmp);",
"VAR_0->is_jmp = DISAS_JUMP;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
7,939 | void object_property_add_link(Object *obj, const char *name,
const char *type, Object **child,
void (*check)(Object *, const char *,
Object *, Error **),
ObjectPropertyLinkFlags flag... | false | qemu | 64607d088132abdb25bf30d93e97d0c8df7b364c | void object_property_add_link(Object *obj, const char *name,
const char *type, Object **child,
void (*check)(Object *, const char *,
Object *, Error **),
ObjectPropertyLinkFlags flag... | {
"code": [],
"line_no": []
} | VAR_6voidVAR_6 VAR_6object_property_add_linkVAR_6(VAR_6ObjectVAR_6 *VAR_6VAR_0VAR_6, VAR_6constVAR_6 VAR_6charVAR_6 *VAR_6VAR_1VAR_6,
VAR_6constVAR_6 VAR_6charVAR_6 *VAR_6VAR_2VAR_6, VAR_6ObjectVAR_6 **VAR_6VAR_3VAR_6,
VAR_6voidVAR_6 (*VAR_6VAR_4VAR_6)(VAR_6... | [
"VAR_6voidVAR_6 VAR_6object_property_add_linkVAR_6(VAR_6ObjectVAR_6 *VAR_6VAR_0VAR_6, VAR_6constVAR_6 VAR_6charVAR_6 *VAR_6VAR_1VAR_6,\nVAR_6constVAR_6 VAR_6charVAR_6 *VAR_6VAR_2VAR_6, VAR_6ObjectVAR_6 **VAR_6VAR_3VAR_6,\nVAR_6voidVAR_6 (*VAR_6VAR_4VAR_6)(VAR_6ObjectVAR_6 *, VAR_6constVAR_6 VAR_6charVAR_6 *,\nVAR_6... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35,
37,
39,
41,
43,
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
57
],
[
59
... |
7,940 | void ioinst_handle_csch(S390CPU *cpu, uint64_t reg1)
{
int cssid, ssid, schid, m;
SubchDev *sch;
int ret = -ENODEV;
int cc;
if (ioinst_disassemble_sch_ident(reg1, &m, &cssid, &ssid, &schid)) {
program_interrupt(&cpu->env, PGM_OPERAND, 2);
return;
}
trace_ioinst_sc... | false | qemu | 7e01376daea75e888c370aab521a7d4aeaf2ffd1 | void ioinst_handle_csch(S390CPU *cpu, uint64_t reg1)
{
int cssid, ssid, schid, m;
SubchDev *sch;
int ret = -ENODEV;
int cc;
if (ioinst_disassemble_sch_ident(reg1, &m, &cssid, &ssid, &schid)) {
program_interrupt(&cpu->env, PGM_OPERAND, 2);
return;
}
trace_ioinst_sc... | {
"code": [],
"line_no": []
} | void FUNC_0(S390CPU *VAR_0, uint64_t VAR_1)
{
int VAR_2, VAR_3, VAR_4, VAR_5;
SubchDev *sch;
int VAR_6 = -ENODEV;
int VAR_7;
if (ioinst_disassemble_sch_ident(VAR_1, &VAR_5, &VAR_2, &VAR_3, &VAR_4)) {
program_interrupt(&VAR_0->env, PGM_OPERAND, 2);
return;
}
trace_... | [
"void FUNC_0(S390CPU *VAR_0, uint64_t VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4, VAR_5;",
"SubchDev *sch;",
"int VAR_6 = -ENODEV;",
"int VAR_7;",
"if (ioinst_disassemble_sch_ident(VAR_1, &VAR_5, &VAR_2, &VAR_3, &VAR_4)) {",
"program_interrupt(&VAR_0->env, PGM_OPERAND, 2);",
"return;",
"}",
"trace_ioins... | [
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
... |
7,941 | static void curl_multi_read(BDRVCURLState *s)
{
int msgs_in_queue;
/* Try to find done transfers, so we can free the easy
* handle again. */
do {
CURLMsg *msg;
msg = curl_multi_info_read(s->multi, &msgs_in_queue);
if (!msg)
break;
if (msg->msg =... | false | qemu | 838ef602498b8d1985a231a06f5e328e2946a81d | static void curl_multi_read(BDRVCURLState *s)
{
int msgs_in_queue;
do {
CURLMsg *msg;
msg = curl_multi_info_read(s->multi, &msgs_in_queue);
if (!msg)
break;
if (msg->msg == CURLMSG_NONE)
break;
switch (msg->msg) {
... | {
"code": [],
"line_no": []
} | static void FUNC_0(BDRVCURLState *VAR_0)
{
int VAR_1;
do {
CURLMsg *msg;
msg = curl_multi_info_read(VAR_0->multi, &VAR_1);
if (!msg)
break;
if (msg->msg == CURLMSG_NONE)
break;
switch (msg->msg) {
case CURLMSG_D... | [
"static void FUNC_0(BDRVCURLState *VAR_0)\n{",
"int VAR_1;",
"do {",
"CURLMsg *msg;",
"msg = curl_multi_info_read(VAR_0->multi, &VAR_1);",
"if (!msg)\nbreak;",
"if (msg->msg == CURLMSG_NONE)\nbreak;",
"switch (msg->msg) {",
"case CURLMSG_DONE:\n{",
"CURLState *state = NULL;",
"curl_easy_getinfo(... | [
0,
0,
0,
0,
0,
0,
0,
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
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
25,
27
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41
],
[
47
],
[
49
],
[
51
],
[
53
],
[
57
],
[
59
],
[
6... |
7,942 | static void init_blk_migration(Monitor *mon, QEMUFile *f)
{
BlkMigDevState *bmds;
BlockDriverState *bs;
int64_t sectors;
block_mig_state.submitted = 0;
block_mig_state.read_done = 0;
block_mig_state.transferred = 0;
block_mig_state.total_sector_sum = 0;
block_mig_state.prev_pr... | false | qemu | b66460e4e938910b0e5495e6d3d7b2d5b3cf9c99 | static void init_blk_migration(Monitor *mon, QEMUFile *f)
{
BlkMigDevState *bmds;
BlockDriverState *bs;
int64_t sectors;
block_mig_state.submitted = 0;
block_mig_state.read_done = 0;
block_mig_state.transferred = 0;
block_mig_state.total_sector_sum = 0;
block_mig_state.prev_pr... | {
"code": [],
"line_no": []
} | static void FUNC_0(Monitor *VAR_0, QEMUFile *VAR_1)
{
BlkMigDevState *bmds;
BlockDriverState *bs;
int64_t sectors;
block_mig_state.submitted = 0;
block_mig_state.read_done = 0;
block_mig_state.transferred = 0;
block_mig_state.total_sector_sum = 0;
block_mig_state.prev_progress... | [
"static void FUNC_0(Monitor *VAR_0, QEMUFile *VAR_1)\n{",
"BlkMigDevState *bmds;",
"BlockDriverState *bs;",
"int64_t sectors;",
"block_mig_state.submitted = 0;",
"block_mig_state.read_done = 0;",
"block_mig_state.transferred = 0;",
"block_mig_state.total_sector_sum = 0;",
"block_mig_state.prev_progr... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
... |
7,943 | static void init_proc_970MP (CPUPPCState *env)
{
gen_spr_ne_601(env);
gen_spr_7xx(env);
/* Time base */
gen_tbl(env);
/* Hardware implementation registers */
/* XXX : not implemented */
spr_register(env, SPR_HID0, "HID0",
SPR_NOACCESS, SPR_NOACCESS,
... | false | qemu | bbc01ca7f265f2c5be8aee7c9ce1d10aa26063f5 | static void init_proc_970MP (CPUPPCState *env)
{
gen_spr_ne_601(env);
gen_spr_7xx(env);
gen_tbl(env);
spr_register(env, SPR_HID0, "HID0",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_clear,
0x60000000);
... | {
"code": [],
"line_no": []
} | static void FUNC_0 (CPUPPCState *VAR_0)
{
gen_spr_ne_601(VAR_0);
gen_spr_7xx(VAR_0);
gen_tbl(VAR_0);
spr_register(VAR_0, SPR_HID0, "HID0",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_clear,
0x60000000);
... | [
"static void FUNC_0 (CPUPPCState *VAR_0)\n{",
"gen_spr_ne_601(VAR_0);",
"gen_spr_7xx(VAR_0);",
"gen_tbl(VAR_0);",
"spr_register(VAR_0, SPR_HID0, \"HID0\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_clear,\n0x60000000);",
"spr_register(VAR_0, SPR_HID1, \"HID1\",\nSPR_NOACCESS, SPR_NOACCESS... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
17,
19,
21,
23
],
[
27,
29,
31,
33
],
[
37,
39,
41,
43
],
[
51
],
[
53,
55,
57,
59
],
[
63,
65,
67,
69
],
[
71,
73
],
[
75... |
7,944 | static void platform_mmio_write(ReadWriteHandler *handler, pcibus_t addr,
uint32_t val, int len)
{
DPRINTF("Warning: attempted write of 0x%x to physical "
"address 0x" TARGET_FMT_plx " in xen platform mmio space\n",
val, addr);
}
| false | qemu | de00982e9e14e2d6ba3d148f02c5a1e94deaa985 | static void platform_mmio_write(ReadWriteHandler *handler, pcibus_t addr,
uint32_t val, int len)
{
DPRINTF("Warning: attempted write of 0x%x to physical "
"address 0x" TARGET_FMT_plx " in xen platform mmio space\n",
val, addr);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(ReadWriteHandler *VAR_0, pcibus_t VAR_1,
uint32_t VAR_2, int VAR_3)
{
DPRINTF("Warning: attempted write of 0x%x to physical "
"address 0x" TARGET_FMT_plx " in xen platform mmio space\n",
VAR_2, VAR_1);
}
| [
"static void FUNC_0(ReadWriteHandler *VAR_0, pcibus_t VAR_1,\nuint32_t VAR_2, int VAR_3)\n{",
"DPRINTF(\"Warning: attempted write of 0x%x to physical \"\n\"address 0x\" TARGET_FMT_plx \" in xen platform mmio space\\n\",\nVAR_2, VAR_1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9,
11
],
[
13
]
] |
7,945 | int pci_piix3_xen_ide_unplug(DeviceState *dev)
{
PCIIDEState *pci_ide;
DriveInfo *di;
int i;
IDEDevice *idedev;
pci_ide = PCI_IDE(dev);
for (i = 0; i < 4; i++) {
di = drive_get_by_index(IF_IDE, i);
if (di != NULL && !di->media_cd) {
BlockBackend *blk = b... | false | qemu | ae4d2eb273b167dad748ea4249720319240b1ac2 | int pci_piix3_xen_ide_unplug(DeviceState *dev)
{
PCIIDEState *pci_ide;
DriveInfo *di;
int i;
IDEDevice *idedev;
pci_ide = PCI_IDE(dev);
for (i = 0; i < 4; i++) {
di = drive_get_by_index(IF_IDE, i);
if (di != NULL && !di->media_cd) {
BlockBackend *blk = b... | {
"code": [],
"line_no": []
} | int FUNC_0(DeviceState *VAR_0)
{
PCIIDEState *pci_ide;
DriveInfo *di;
int VAR_1;
IDEDevice *idedev;
pci_ide = PCI_IDE(VAR_0);
for (VAR_1 = 0; VAR_1 < 4; VAR_1++) {
di = drive_get_by_index(IF_IDE, VAR_1);
if (di != NULL && !di->media_cd) {
BlockBackend *b... | [
"int FUNC_0(DeviceState *VAR_0)\n{",
"PCIIDEState *pci_ide;",
"DriveInfo *di;",
"int VAR_1;",
"IDEDevice *idedev;",
"pci_ide = PCI_IDE(VAR_0);",
"for (VAR_1 = 0; VAR_1 < 4; VAR_1++) {",
"di = drive_get_by_index(IF_IDE, VAR_1);",
"if (di != NULL && !di->media_cd) {",
"BlockBackend *blk = blk_by_leg... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
7,946 | static void shift_history(DCAEncContext *c, const int32_t *input)
{
int k, ch;
for (k = 0; k < 512; k++)
for (ch = 0; ch < c->channels; ch++) {
const int chi = c->channel_order_tab[ch];
c->history[k][ch] = input[k * c->channels + chi];
}
}
| false | FFmpeg | a6191d098a03f94685ae4c072bfdf10afcd86223 | static void shift_history(DCAEncContext *c, const int32_t *input)
{
int k, ch;
for (k = 0; k < 512; k++)
for (ch = 0; ch < c->channels; ch++) {
const int chi = c->channel_order_tab[ch];
c->history[k][ch] = input[k * c->channels + chi];
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(DCAEncContext *VAR_0, const int32_t *VAR_1)
{
int VAR_2, VAR_3;
for (VAR_2 = 0; VAR_2 < 512; VAR_2++)
for (VAR_3 = 0; VAR_3 < VAR_0->channels; VAR_3++) {
const int chi = VAR_0->channel_order_tab[VAR_3];
VAR_0->history[VAR_2][VAR_3] = VAR_1[VAR_2 * VAR... | [
"static void FUNC_0(DCAEncContext *VAR_0, const int32_t *VAR_1)\n{",
"int VAR_2, VAR_3;",
"for (VAR_2 = 0; VAR_2 < 512; VAR_2++)",
"for (VAR_3 = 0; VAR_3 < VAR_0->channels; VAR_3++) {",
"const int chi = VAR_0->channel_order_tab[VAR_3];",
"VAR_0->history[VAR_2][VAR_3] = VAR_1[VAR_2 * VAR_0->channels + chi]... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
]
] |
7,947 | static void init_vlcs()
{
static int done = 0;
if (!done) {
done = 1;
init_vlc(&dc_lum_vlc, DC_VLC_BITS, 12,
vlc_dc_lum_bits, 1, 1,
vlc_dc_lum_code, 2, 2);
init_vlc(&dc_chroma_vlc, DC_VLC_BITS, 12,
vlc_dc_chroma_bits, 1, ... | false | FFmpeg | 461cd5bfb5c38e48a81b4a9a5912dfd65da1ba3d | static void init_vlcs()
{
static int done = 0;
if (!done) {
done = 1;
init_vlc(&dc_lum_vlc, DC_VLC_BITS, 12,
vlc_dc_lum_bits, 1, 1,
vlc_dc_lum_code, 2, 2);
init_vlc(&dc_chroma_vlc, DC_VLC_BITS, 12,
vlc_dc_chroma_bits, 1, ... | {
"code": [],
"line_no": []
} | static void FUNC_0()
{
static int VAR_0 = 0;
if (!VAR_0) {
VAR_0 = 1;
init_vlc(&dc_lum_vlc, DC_VLC_BITS, 12,
vlc_dc_lum_bits, 1, 1,
vlc_dc_lum_code, 2, 2);
init_vlc(&dc_chroma_vlc, DC_VLC_BITS, 12,
vlc_dc_chroma_bits, 1, ... | [
"static void FUNC_0()\n{",
"static int VAR_0 = 0;",
"if (!VAR_0) {",
"VAR_0 = 1;",
"init_vlc(&dc_lum_vlc, DC_VLC_BITS, 12,\nvlc_dc_lum_bits, 1, 1,\nvlc_dc_lum_code, 2, 2);",
"init_vlc(&dc_chroma_vlc, DC_VLC_BITS, 12,\nvlc_dc_chroma_bits, 1, 1,\nvlc_dc_chroma_code, 2, 2);",
"init_vlc(&mv_vlc, MV_VLC_BIT... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15,
17,
19
],
[
21,
23,
25
],
[
27,
29,
31
],
[
33,
35,
37
],
[
39,
41,
43
],
[
47,
49,
51
],
[
53,
55,
57
],
[
59
],
[
61... |
7,948 | static void png_filter_row(PNGDSPContext *dsp, uint8_t *dst, int filter_type,
uint8_t *src, uint8_t *last, int size, int bpp)
{
int i, p, r, g, b, a;
switch (filter_type) {
case PNG_FILTER_VALUE_NONE:
memcpy(dst, src, size);
break;
case PNG_FILTER_VAL... | false | FFmpeg | 9a53707e86eb066e1c77460215c716f7962c71e7 | static void png_filter_row(PNGDSPContext *dsp, uint8_t *dst, int filter_type,
uint8_t *src, uint8_t *last, int size, int bpp)
{
int i, p, r, g, b, a;
switch (filter_type) {
case PNG_FILTER_VALUE_NONE:
memcpy(dst, src, size);
break;
case PNG_FILTER_VAL... | {
"code": [],
"line_no": []
} | static void FUNC_0(PNGDSPContext *VAR_0, uint8_t *VAR_1, int VAR_2,
uint8_t *VAR_3, uint8_t *VAR_4, int VAR_5, int VAR_6)
{
int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;
switch (VAR_2) {
case PNG_FILTER_VALUE_NONE:
memcpy(VAR_1, VAR_3, VAR_5);
break;
... | [
"static void FUNC_0(PNGDSPContext *VAR_0, uint8_t *VAR_1, int VAR_2,\nuint8_t *VAR_3, uint8_t *VAR_4, int VAR_5, int VAR_6)\n{",
"int VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;",
"switch (VAR_2) {",
"case PNG_FILTER_VALUE_NONE:\nmemcpy(VAR_1, VAR_3, VAR_5);",
"break;",
"case PNG_FILTER_VALUE_SUB:\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
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47... |
7,950 | av_cold int ff_mpv_common_init(MpegEncContext *s)
{
int i;
int nb_slices = (HAVE_THREADS &&
s->avctx->active_thread_type & FF_THREAD_SLICE) ?
s->avctx->thread_count : 1;
if (s->encoding && s->avctx->slices)
nb_slices = s->avctx->slices;
if (s-... | true | FFmpeg | b160fc290cf49b516c5b6ee0730fd9da7fc623b1 | av_cold int ff_mpv_common_init(MpegEncContext *s)
{
int i;
int nb_slices = (HAVE_THREADS &&
s->avctx->active_thread_type & FF_THREAD_SLICE) ?
s->avctx->thread_count : 1;
if (s->encoding && s->avctx->slices)
nb_slices = s->avctx->slices;
if (s-... | {
"code": [
" memset(&s->next_picture, 0, sizeof(s->next_picture));",
" memset(&s->last_picture, 0, sizeof(s->last_picture));",
" memset(&s->current_picture, 0, sizeof(s->current_picture));",
" memset(&s->new_picture, 0, sizeof(s->new_picture));"
],
"line_no": [
103,
105,
1... | av_cold int FUNC_0(MpegEncContext *s)
{
int VAR_0;
int VAR_1 = (HAVE_THREADS &&
s->avctx->active_thread_type & FF_THREAD_SLICE) ?
s->avctx->thread_count : 1;
if (s->encoding && s->avctx->slices)
VAR_1 = s->avctx->slices;
if (s->codec_id == AV_... | [
"av_cold int FUNC_0(MpegEncContext *s)\n{",
"int VAR_0;",
"int VAR_1 = (HAVE_THREADS &&\ns->avctx->active_thread_type & FF_THREAD_SLICE) ?\ns->avctx->thread_count : 1;",
"if (s->encoding && s->avctx->slices)\nVAR_1 = s->avctx->slices;",
"if (s->codec_id == AV_CODEC_ID_MPEG2VIDEO && !s->progressive_sequence)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11
],
[
15,
17
],
[
21,
23
],
[
25,
27
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47,
49
],
[
51,
53
],
[
55,
57
],
[... |
7,951 | int ff_socket(int af, int type, int proto)
{
int fd;
#ifdef SOCK_CLOEXEC
fd = socket(af, type | SOCK_CLOEXEC, proto);
if (fd == -1 && errno == EINVAL)
#endif
{
fd = socket(af, type, proto);
#if HAVE_FCNTL
if (fd != -1)
fcntl(fd, F_SETFD, FD_CLOEXEC);
#endif
... | true | FFmpeg | baab248c499a7689aefb5f2e9c004338deb08d74 | int ff_socket(int af, int type, int proto)
{
int fd;
#ifdef SOCK_CLOEXEC
fd = socket(af, type | SOCK_CLOEXEC, proto);
if (fd == -1 && errno == EINVAL)
#endif
{
fd = socket(af, type, proto);
#if HAVE_FCNTL
if (fd != -1)
fcntl(fd, F_SETFD, FD_CLOEXEC);
#endif
... | {
"code": [
" if (fd != -1)",
" fcntl(fd, F_SETFD, FD_CLOEXEC);"
],
"line_no": [
23,
25
]
} | int FUNC_0(int VAR_0, int VAR_1, int VAR_2)
{
int VAR_3;
#ifdef SOCK_CLOEXEC
VAR_3 = socket(VAR_0, VAR_1 | SOCK_CLOEXEC, VAR_2);
if (VAR_3 == -1 && errno == EINVAL)
#endif
{
VAR_3 = socket(VAR_0, VAR_1, VAR_2);
#if HAVE_FCNTL
if (VAR_3 != -1)
fcntl(VAR_3, F_SETFD... | [
"int FUNC_0(int VAR_0, int VAR_1, int VAR_2)\n{",
"int VAR_3;",
"#ifdef SOCK_CLOEXEC\nVAR_3 = socket(VAR_0, VAR_1 | SOCK_CLOEXEC, VAR_2);",
"if (VAR_3 == -1 && errno == EINVAL)\n#endif\n{",
"VAR_3 = socket(VAR_0, VAR_1, VAR_2);",
"#if HAVE_FCNTL\nif (VAR_3 != -1)\nfcntl(VAR_3, F_SETFD, FD_CLOEXEC);",
"#... | [
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13,
15,
17
],
[
19
],
[
21,
23,
25
],
[
27,
29
],
[
31
],
[
33
]
] |
7,952 | static int nuv_header(AVFormatContext *s)
{
NUVContext *ctx = s->priv_data;
AVIOContext *pb = s->pb;
char id_string[12];
double aspect, fps;
int is_mythtv, width, height, v_packs, a_packs;
AVStream *vst = NULL, *ast = NULL;
avio_read(pb, id_string, 12);
is_mythtv = !memcmp(id_... | true | FFmpeg | ab87d9b6677c5757d467f532e681b056d3e77e6b | static int nuv_header(AVFormatContext *s)
{
NUVContext *ctx = s->priv_data;
AVIOContext *pb = s->pb;
char id_string[12];
double aspect, fps;
int is_mythtv, width, height, v_packs, a_packs;
AVStream *vst = NULL, *ast = NULL;
avio_read(pb, id_string, 12);
is_mythtv = !memcmp(id_... | {
"code": [
" int is_mythtv, width, height, v_packs, a_packs;",
" get_codec_data(pb, vst, ast, is_mythtv);"
],
"line_no": [
13,
141
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
NUVContext *ctx = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
char VAR_1[12];
double VAR_2, VAR_3;
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
AVStream *vst = NULL, *ast = NULL;
avio_read(pb, VAR_1, 12);
VAR_4 = !memcmp(VAR_1, "MythTVV... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"NUVContext *ctx = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"char VAR_1[12];",
"double VAR_2, VAR_3;",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"AVStream *vst = NULL, *ast = NULL;",
"avio_read(pb, VAR_1, 12);",
"VAR_4 = !memcmp(VAR_1, \"Myt... | [
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,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[... |
7,953 | static int qcow2_update_ext_header(BlockDriverState *bs,
const char *backing_file, const char *backing_fmt)
{
size_t backing_file_len = 0;
size_t backing_fmt_len = 0;
BDRVQcowState *s = bs->opaque;
QCowExtension ext_backing_fmt = {0, 0};
int ret;
/* Backing file format doesn't make... | true | qemu | 8b3b720620a1137a1b794fc3ed64734236f94e06 | static int qcow2_update_ext_header(BlockDriverState *bs,
const char *backing_file, const char *backing_fmt)
{
size_t backing_file_len = 0;
size_t backing_fmt_len = 0;
BDRVQcowState *s = bs->opaque;
QCowExtension ext_backing_fmt = {0, 0};
int ret;
if (backing_fmt && !backing_f... | {
"code": [
" ret = bdrv_pwrite(bs->file, sizeof(QCowHeader), buf, ext_size);",
" ret = bdrv_pwrite(bs->file, offsetof(QCowHeader, backing_file_offset),",
" ret = bdrv_pwrite(bs->file, offsetof(QCowHeader, backing_file_size),"
],
"line_no": [
119,
137,
149
]
} | static int FUNC_0(BlockDriverState *VAR_0,
const char *VAR_1, const char *VAR_2)
{
size_t backing_file_len = 0;
size_t backing_fmt_len = 0;
BDRVQcowState *s = VAR_0->opaque;
QCowExtension ext_backing_fmt = {0, 0};
int VAR_3;
if (VAR_2 && !VAR_1) {
return -EINVAL;
... | [
"static int FUNC_0(BlockDriverState *VAR_0,\nconst char *VAR_1, const char *VAR_2)\n{",
"size_t backing_file_len = 0;",
"size_t backing_fmt_len = 0;",
"BDRVQcowState *s = VAR_0->opaque;",
"QCowExtension ext_backing_fmt = {0, 0};",
"int VAR_3;",
"if (VAR_2 && !VAR_1) {",
"return -EINVAL;",
"}",
"if... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
25
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
47
],
[
49
],
[
51
],
[
55,
57
],
[... |
7,954 | static int img_dd(int argc, char **argv)
{
int ret = 0;
char *arg = NULL;
char *tmp;
BlockDriver *drv = NULL, *proto_drv = NULL;
BlockBackend *blk1 = NULL, *blk2 = NULL;
QemuOpts *opts = NULL;
QemuOptsList *create_opts = NULL;
Error *local_err = NULL;
bool image_opts = fals... | true | qemu | c919297379e9980c2bcc4d2053addbc1fd6d762b | static int img_dd(int argc, char **argv)
{
int ret = 0;
char *arg = NULL;
char *tmp;
BlockDriver *drv = NULL, *proto_drv = NULL;
BlockBackend *blk1 = NULL, *blk2 = NULL;
QemuOpts *opts = NULL;
QemuOptsList *create_opts = NULL;
Error *local_err = NULL;
bool image_opts = fals... | {
"code": [
" case 'h':",
" case 'h':",
" while ((c = getopt_long(argc, argv, \"hf:O:\", long_options, NULL))) {",
" error_report(\"Try 'qemu-img --help' for more information.\");",
" ret = -1;",
" goto out;",
" case 'h':"
],
"li... | static int FUNC_0(int VAR_0, char **VAR_1)
{
int VAR_2 = 0;
char *VAR_3 = NULL;
char *VAR_4;
BlockDriver *drv = NULL, *proto_drv = NULL;
BlockBackend *blk1 = NULL, *blk2 = NULL;
QemuOpts *opts = NULL;
QemuOptsList *create_opts = NULL;
Error *local_err = NULL;
bool image_opt... | [
"static int FUNC_0(int VAR_0, char **VAR_1)\n{",
"int VAR_2 = 0;",
"char *VAR_3 = NULL;",
"char *VAR_4;",
"BlockDriver *drv = NULL, *proto_drv = NULL;",
"BlockBackend *blk1 = NULL, *blk2 = NULL;",
"QemuOpts *opts = NULL;",
"QemuOptsList *create_opts = NULL;",
"Error *local_err = NULL;",
"bool imag... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35,
37,
39
],
[
41
],
[
43,... |
7,956 | static int imx_eth_can_receive(NetClientState *nc)
{
IMXFECState *s = IMX_FEC(qemu_get_nic_opaque(nc));
FEC_PRINTF("\n");
return s->regs[ENET_RDAR] ? 1 : 0;
}
| true | qemu | b2b012afdd9c03ba8a1619f45301d34f358d367b | static int imx_eth_can_receive(NetClientState *nc)
{
IMXFECState *s = IMX_FEC(qemu_get_nic_opaque(nc));
FEC_PRINTF("\n");
return s->regs[ENET_RDAR] ? 1 : 0;
}
| {
"code": [
" return s->regs[ENET_RDAR] ? 1 : 0;"
],
"line_no": [
13
]
} | static int FUNC_0(NetClientState *VAR_0)
{
IMXFECState *s = IMX_FEC(qemu_get_nic_opaque(VAR_0));
FEC_PRINTF("\n");
return s->regs[ENET_RDAR] ? 1 : 0;
}
| [
"static int FUNC_0(NetClientState *VAR_0)\n{",
"IMXFECState *s = IMX_FEC(qemu_get_nic_opaque(VAR_0));",
"FEC_PRINTF(\"\\n\");",
"return s->regs[ENET_RDAR] ? 1 : 0;",
"}"
] | [
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
]
] |
7,957 | static int dfa_probe(AVProbeData *p)
{
if (p->buf_size < 4 || AV_RL32(p->buf) != MKTAG('D', 'F', 'I', 'A'))
return 0;
return AVPROBE_SCORE_MAX;
} | true | FFmpeg | bdab2421a540efc0593c87e6d247427a0a6e16bc | static int dfa_probe(AVProbeData *p)
{
if (p->buf_size < 4 || AV_RL32(p->buf) != MKTAG('D', 'F', 'I', 'A'))
return 0;
return AVPROBE_SCORE_MAX;
} | {
"code": [],
"line_no": []
} | static int FUNC_0(AVProbeData *VAR_0)
{
if (VAR_0->buf_size < 4 || AV_RL32(VAR_0->buf) != MKTAG('D', 'F', 'I', 'A'))
return 0;
return AVPROBE_SCORE_MAX;
} | [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"if (VAR_0->buf_size < 4 || AV_RL32(VAR_0->buf) != MKTAG('D', 'F', 'I', 'A'))\nreturn 0;",
"return AVPROBE_SCORE_MAX;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
2
],
[
3,
4
],
[
5
],
[
6
]
] |
7,958 | static void ohci_sof(OHCIState *ohci)
{
ohci->sof_time = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL);
timer_mod(ohci->eof_timer, ohci->sof_time + usb_frame_time);
ohci_set_interrupt(ohci, OHCI_INTR_SF);
}
| false | qemu | fd0a10cd20a1c5ae829be32f3364dae88f435c4e | static void ohci_sof(OHCIState *ohci)
{
ohci->sof_time = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL);
timer_mod(ohci->eof_timer, ohci->sof_time + usb_frame_time);
ohci_set_interrupt(ohci, OHCI_INTR_SF);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(OHCIState *VAR_0)
{
VAR_0->sof_time = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL);
timer_mod(VAR_0->eof_timer, VAR_0->sof_time + usb_frame_time);
ohci_set_interrupt(VAR_0, OHCI_INTR_SF);
}
| [
"static void FUNC_0(OHCIState *VAR_0)\n{",
"VAR_0->sof_time = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL);",
"timer_mod(VAR_0->eof_timer, VAR_0->sof_time + usb_frame_time);",
"ohci_set_interrupt(VAR_0, OHCI_INTR_SF);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
7,959 | static CPAccessResult pmreg_access(CPUARMState *env, const ARMCPRegInfo *ri,
bool isread)
{
/* Performance monitor registers user accessibility is controlled
* by PMUSERENR.
*/
if (arm_current_el(env) == 0 && !env->cp15.c9_pmuserenr) {
return CP_ACCESS... | false | qemu | 1fce1ba985d9c5c96e5b9709e1356d1814b8fa9e | static CPAccessResult pmreg_access(CPUARMState *env, const ARMCPRegInfo *ri,
bool isread)
{
if (arm_current_el(env) == 0 && !env->cp15.c9_pmuserenr) {
return CP_ACCESS_TRAP;
}
return CP_ACCESS_OK;
}
| {
"code": [],
"line_no": []
} | static CPAccessResult FUNC_0(CPUARMState *env, const ARMCPRegInfo *ri,
bool isread)
{
if (arm_current_el(env) == 0 && !env->cp15.c9_pmuserenr) {
return CP_ACCESS_TRAP;
}
return CP_ACCESS_OK;
}
| [
"static CPAccessResult FUNC_0(CPUARMState *env, const ARMCPRegInfo *ri,\nbool isread)\n{",
"if (arm_current_el(env) == 0 && !env->cp15.c9_pmuserenr) {",
"return CP_ACCESS_TRAP;",
"}",
"return CP_ACCESS_OK;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
7,961 | static target_ulong h_enter(PowerPCCPU *cpu, sPAPRMachineState *spapr,
target_ulong opcode, target_ulong *args)
{
CPUPPCState *env = &cpu->env;
target_ulong flags = args[0];
target_ulong pte_index = args[1];
target_ulong pteh = args[2];
target_ulong ptel = args[3];... | false | qemu | c18ad9a54b75495ce61e8b28d353f8eec51768fc | static target_ulong h_enter(PowerPCCPU *cpu, sPAPRMachineState *spapr,
target_ulong opcode, target_ulong *args)
{
CPUPPCState *env = &cpu->env;
target_ulong flags = args[0];
target_ulong pte_index = args[1];
target_ulong pteh = args[2];
target_ulong ptel = args[3];... | {
"code": [],
"line_no": []
} | static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPRMachineState *spapr,
target_ulong opcode, target_ulong *args)
{
CPUPPCState *env = &cpu->env;
target_ulong flags = args[0];
target_ulong pte_index = args[1];
target_ulong pteh = args[2];
target_ulong ptel = args[3];
... | [
"static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPRMachineState *spapr,\ntarget_ulong opcode, target_ulong *args)\n{",
"CPUPPCState *env = &cpu->env;",
"target_ulong flags = args[0];",
"target_ulong pte_index = args[1];",
"target_ulong pteh = args[2];",
"target_ulong ptel = args[3];",
"unsigned VAR_0, VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
39
],
[
43
],
[
47
],
[
49
],
[
51
],
[... |
7,962 | static void init_excp_602 (CPUPPCState *env)
{
#if !defined(CONFIG_USER_ONLY)
env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
... | false | qemu | 082c6681b6c4af0035d9dad34a4a784be8c21dbe | static void init_excp_602 (CPUPPCState *env)
{
#if !defined(CONFIG_USER_ONLY)
env->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
env->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
env->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
env->excp_vectors[POWERPC_EXCP_ISI] = 0x00000400;
... | {
"code": [],
"line_no": []
} | static void FUNC_0 (CPUPPCState *VAR_0)
{
#if !defined(CONFIG_USER_ONLY)
VAR_0->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;
VAR_0->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;
VAR_0->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;
VAR_0->excp_vectors[POWERPC_EXCP_ISI] = 0x0000040... | [
"static void FUNC_0 (CPUPPCState *VAR_0)\n{",
"#if !defined(CONFIG_USER_ONLY)\nVAR_0->excp_vectors[POWERPC_EXCP_RESET] = 0x00000100;",
"VAR_0->excp_vectors[POWERPC_EXCP_MCHECK] = 0x00000200;",
"VAR_0->excp_vectors[POWERPC_EXCP_DSI] = 0x00000300;",
"VAR_0->excp_vectors[POWERPC_EXCP_ISI] = 0x00... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[... |
7,964 | static void unplug_nic(PCIBus *b, PCIDevice *d)
{
if (pci_get_word(d->config + PCI_CLASS_DEVICE) ==
PCI_CLASS_NETWORK_ETHERNET) {
qdev_unplug(&(d->qdev), NULL);
}
}
| false | qemu | 4accd107d0fd4a6fd7d2ad4f3365c67623834262 | static void unplug_nic(PCIBus *b, PCIDevice *d)
{
if (pci_get_word(d->config + PCI_CLASS_DEVICE) ==
PCI_CLASS_NETWORK_ETHERNET) {
qdev_unplug(&(d->qdev), NULL);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(PCIBus *VAR_0, PCIDevice *VAR_1)
{
if (pci_get_word(VAR_1->config + PCI_CLASS_DEVICE) ==
PCI_CLASS_NETWORK_ETHERNET) {
qdev_unplug(&(VAR_1->qdev), NULL);
}
}
| [
"static void FUNC_0(PCIBus *VAR_0, PCIDevice *VAR_1)\n{",
"if (pci_get_word(VAR_1->config + PCI_CLASS_DEVICE) ==\nPCI_CLASS_NETWORK_ETHERNET) {",
"qdev_unplug(&(VAR_1->qdev), NULL);",
"}",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
],
[
11
],
[
13
]
] |
7,965 | static inline int handle_cpu_signal(uintptr_t pc, unsigned long address,
int is_write, sigset_t *old_set,
void *puc)
{
TranslationBlock *tb;
int ret;
if (cpu_single_env) {
env = cpu_single_env; /* XXX: find a correct so... | false | qemu | c5954819b6ee601024c081635be0336ce0cb1115 | static inline int handle_cpu_signal(uintptr_t pc, unsigned long address,
int is_write, sigset_t *old_set,
void *puc)
{
TranslationBlock *tb;
int ret;
if (cpu_single_env) {
env = cpu_single_env;
}
#if defined(DEBU... | {
"code": [],
"line_no": []
} | static inline int FUNC_0(uintptr_t VAR_0, unsigned long VAR_1,
int VAR_2, sigset_t *VAR_3,
void *VAR_4)
{
TranslationBlock *tb;
int VAR_5;
if (cpu_single_env) {
env = cpu_single_env;
}
#if defined(DEBUG_SIGNAL)
... | [
"static inline int FUNC_0(uintptr_t VAR_0, unsigned long VAR_1,\nint VAR_2, sigset_t *VAR_3,\nvoid *VAR_4)\n{",
"TranslationBlock *tb;",
"int VAR_5;",
"if (cpu_single_env) {",
"env = cpu_single_env;",
"}",
"#if defined(DEBUG_SIGNAL)\nqemu_printf(\"qemu: SIGSEGV VAR_0=0x%08lx VAR_1=%08lx w=%d oldset=0x%0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21,
23,
25
],
[
27,
31
],
[
33
],
[
35
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[... |
7,966 | static char *qemu_rbd_parse_clientname(const char *conf, char *clientname)
{
const char *p = conf;
while (*p) {
int len;
const char *end = strchr(p, ':');
if (end) {
len = end - p;
} else {
len = strlen(p);
}
if (strncmp(p,... | false | qemu | c7cacb3e7a2e9fdf929c993b98268e4179147cbb | static char *qemu_rbd_parse_clientname(const char *conf, char *clientname)
{
const char *p = conf;
while (*p) {
int len;
const char *end = strchr(p, ':');
if (end) {
len = end - p;
} else {
len = strlen(p);
}
if (strncmp(p,... | {
"code": [],
"line_no": []
} | static char *FUNC_0(const char *VAR_0, char *VAR_1)
{
const char *VAR_2 = VAR_0;
while (*VAR_2) {
int VAR_3;
const char *VAR_4 = strchr(VAR_2, ':');
if (VAR_4) {
VAR_3 = VAR_4 - VAR_2;
} else {
VAR_3 = strlen(VAR_2);
}
if (... | [
"static char *FUNC_0(const char *VAR_0, char *VAR_1)\n{",
"const char *VAR_2 = VAR_0;",
"while (*VAR_2) {",
"int VAR_3;",
"const char *VAR_4 = strchr(VAR_2, ':');",
"if (VAR_4) {",
"VAR_3 = VAR_4 - VAR_2;",
"} else {",
"VAR_3 = strlen(VAR_2);",
"}",
"if (strncmp(VAR_2, \"id=\", 3) == 0) {",
"V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47... |
7,968 | int float64_le_quiet( float64 a, float64 b STATUS_PARAM )
{
flag aSign, bSign;
if ( ( ( extractFloat64Exp( a ) == 0x7FF ) && extractFloat64Frac( a ) )
|| ( ( extractFloat64Exp( b ) == 0x7FF ) && extractFloat64Frac( b ) )
) {
if ( float64_is_signaling_nan( a ) || float64_is_sig... | false | qemu | f090c9d4ad5812fb92843d6470a1111c15190c4c | int float64_le_quiet( float64 a, float64 b STATUS_PARAM )
{
flag aSign, bSign;
if ( ( ( extractFloat64Exp( a ) == 0x7FF ) && extractFloat64Frac( a ) )
|| ( ( extractFloat64Exp( b ) == 0x7FF ) && extractFloat64Frac( b ) )
) {
if ( float64_is_signaling_nan( a ) || float64_is_sig... | {
"code": [],
"line_no": []
} | int FUNC_0( float64 VAR_0, float64 VAR_1 STATUS_PARAM )
{
flag aSign, bSign;
if ( ( ( extractFloat64Exp( VAR_0 ) == 0x7FF ) && extractFloat64Frac( VAR_0 ) )
|| ( ( extractFloat64Exp( VAR_1 ) == 0x7FF ) && extractFloat64Frac( VAR_1 ) )
) {
if ( float64_is_signaling_nan( VAR_0 )... | [
"int FUNC_0( float64 VAR_0, float64 VAR_1 STATUS_PARAM )\n{",
"flag aSign, bSign;",
"if ( ( ( extractFloat64Exp( VAR_0 ) == 0x7FF ) && extractFloat64Frac( VAR_0 ) )\n|| ( ( extractFloat64Exp( VAR_1 ) == 0x7FF ) && extractFloat64Frac( VAR_1 ) )\n) {",
"if ( float64_is_signaling_nan( VAR_0 ) || float64_is_si... | [
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
],
[
35
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.