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 |
|---|---|---|---|---|---|---|---|---|---|---|
24,240 | static int lavfi_read_packet(AVFormatContext *avctx, AVPacket *pkt)
{
LavfiContext *lavfi = avctx->priv_data;
double min_pts = DBL_MAX;
int stream_idx, min_pts_sink_idx = 0;
AVFilterBufferRef *ref;
AVPicture pict;
int ret, i;
int size = 0;
/* iterate through all the graph sink... | true | FFmpeg | b90912be6802dc64bcd6cd808961f9e0a0f7f6ed | static int lavfi_read_packet(AVFormatContext *avctx, AVPacket *pkt)
{
LavfiContext *lavfi = avctx->priv_data;
double min_pts = DBL_MAX;
int stream_idx, min_pts_sink_idx = 0;
AVFilterBufferRef *ref;
AVPicture pict;
int ret, i;
int size = 0;
for (i = 0; i < avctx->nb_str... | {
"code": [
" AVFilterBufferRef *ref;",
" ret = av_buffersink_get_buffer_ref(lavfi->sinks[i],",
" &ref, AV_BUFFERSINK_FLAG_PEEK);",
" d = av_rescale_q(ref->pts, tb, AV_TIME_BASE_Q);",
" av_buffersink_get_buffer_ref(lavfi->sinks[min_pts_sink... | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
LavfiContext *lavfi = VAR_0->priv_data;
double VAR_2 = DBL_MAX;
int VAR_3, VAR_4 = 0;
AVFilterBufferRef *ref;
AVPicture pict;
int VAR_5, VAR_6;
int VAR_7 = 0;
for (VAR_6 = 0; VAR_6 < VAR_0->nb_streams; VAR_6+... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"LavfiContext *lavfi = VAR_0->priv_data;",
"double VAR_2 = DBL_MAX;",
"int VAR_3, VAR_4 = 0;",
"AVFilterBufferRef *ref;",
"AVPicture pict;",
"int VAR_5, VAR_6;",
"int VAR_7 = 0;",
"for (VAR_6 = 0; VAR_6 < VAR_0->nb_streams; VAR_6++) {"... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
1,
0,
1,
1,
1,
1,
1,
0,
1,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
24,241 | static inline void qtrle_decode_2n4bpp(QtrleContext *s, int stream_ptr,
int row_ptr, int lines_to_change, int bpp)
{
int rle_code, i;
int pixel_ptr;
int row_inc = s->frame.linesize[0];
unsigned char pi[16]; /* 16 palette indices */
unsigned char *rgb = s->frame.d... | true | FFmpeg | 7fb92be7e50ea4ba5712804326c6814ae02dd190 | static inline void qtrle_decode_2n4bpp(QtrleContext *s, int stream_ptr,
int row_ptr, int lines_to_change, int bpp)
{
int rle_code, i;
int pixel_ptr;
int row_inc = s->frame.linesize[0];
unsigned char pi[16];
unsigned char *rgb = s->frame.data[0];
int pixel_l... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(QtrleContext *VAR_0, int VAR_1,
int VAR_2, int VAR_3, int VAR_4)
{
int VAR_5, VAR_6;
int VAR_7;
int VAR_8 = VAR_0->frame.linesize[0];
unsigned char VAR_9[16];
unsigned char *VAR_10 = VAR_0->frame.data[0];
int VAR_11 = VAR_0->frame.... | [
"static inline void FUNC_0(QtrleContext *VAR_0, int VAR_1,\nint VAR_2, int VAR_3, int VAR_4)\n{",
"int VAR_5, VAR_6;",
"int VAR_7;",
"int VAR_8 = VAR_0->frame.linesize[0];",
"unsigned char VAR_9[16];",
"unsigned char *VAR_10 = VAR_0->frame.data[0];",
"int VAR_11 = VAR_0->frame.linesize[0] * VAR_0->avctx... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
32
],
[
34
],
[
38
],
[
40
],
[
43
],
[
47
],
[
53
],
[
55
],
[... |
24,242 | static void display_picref(AVFilterBufferRef *picref, AVRational time_base)
{
int x, y;
uint8_t *p0, *p;
int64_t delay;
if (picref->pts != AV_NOPTS_VALUE) {
if (last_pts != AV_NOPTS_VALUE) {
/* sleep roughly the right amount of time;
* usleep is in microseconds... | true | FFmpeg | f0da370a523d76fb5f48e58537f26a9d949e9c05 | static void display_picref(AVFilterBufferRef *picref, AVRational time_base)
{
int x, y;
uint8_t *p0, *p;
int64_t delay;
if (picref->pts != AV_NOPTS_VALUE) {
if (last_pts != AV_NOPTS_VALUE) {
delay = av_rescale_q(picref->pts - last_pts,
... | {
"code": [
"static void display_picref(AVFilterBufferRef *picref, AVRational time_base)",
" if (picref->pts != AV_NOPTS_VALUE) {",
" delay = av_rescale_q(picref->pts - last_pts,",
" last_pts = picref->pts;",
" p0 = picref->data[0];",
" for (y = 0; y < picref->video-... | static void FUNC_0(AVFilterBufferRef *VAR_0, AVRational VAR_1)
{
int VAR_2, VAR_3;
uint8_t *p0, *p;
int64_t delay;
if (VAR_0->pts != AV_NOPTS_VALUE) {
if (last_pts != AV_NOPTS_VALUE) {
delay = av_rescale_q(VAR_0->pts - last_pts,
... | [
"static void FUNC_0(AVFilterBufferRef *VAR_0, AVRational VAR_1)\n{",
"int VAR_2, VAR_3;",
"uint8_t *p0, *p;",
"int64_t delay;",
"if (VAR_0->pts != AV_NOPTS_VALUE) {",
"if (last_pts != AV_NOPTS_VALUE) {",
"delay = av_rescale_q(VAR_0->pts - last_pts,\nVAR_1, AV_TIME_BASE_Q);",
"if (delay > 0 && delay < ... | [
1,
0,
0,
0,
1,
0,
1,
0,
0,
1,
0,
1,
0,
1,
0,
1,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
21,
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
24,243 | static int colo_packet_compare_udp(Packet *spkt, Packet *ppkt)
{
int ret;
int network_header_length = ppkt->ip->ip_hl * 4;
trace_colo_compare_main("compare udp");
/*
* Because of ppkt and spkt are both in the same connection,
* The ppkt's src ip, dst ip, src port, dst port, ip_proto... | true | qemu | d87aa138039a4be6d705793fd3e397c69c52405a | static int colo_packet_compare_udp(Packet *spkt, Packet *ppkt)
{
int ret;
int network_header_length = ppkt->ip->ip_hl * 4;
trace_colo_compare_main("compare udp");
ret = colo_packet_compare_common(ppkt, spkt,
network_header_length + E... | {
"code": [
" if (trace_event_get_state(TRACE_COLO_COMPARE_MISCOMPARE)) {",
" if (trace_event_get_state(TRACE_COLO_COMPARE_MISCOMPARE)) {"
],
"line_no": [
47,
47
]
} | static int FUNC_0(Packet *VAR_0, Packet *VAR_1)
{
int VAR_2;
int VAR_3 = VAR_1->ip->ip_hl * 4;
trace_colo_compare_main("compare udp");
VAR_2 = colo_packet_compare_common(VAR_1, VAR_0,
VAR_3 + ETH_HLEN);
if (VAR_2) {
t... | [
"static int FUNC_0(Packet *VAR_0, Packet *VAR_1)\n{",
"int VAR_2;",
"int VAR_3 = VAR_1->ip->ip_hl * 4;",
"trace_colo_compare_main(\"compare udp\");",
"VAR_2 = colo_packet_compare_common(VAR_1, VAR_0,\nVAR_3 + ETH_HLEN);",
"if (VAR_2) {",
"trace_colo_compare_udp_miscompare(\"primary pkt size\", VAR_1->si... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
35,
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49,
51
],
[
53,
55
],
[
57
],
[
59
],
[
63
],
[
65
]
] |
24,245 | void vga_mem_writeb(VGACommonState *s, hwaddr addr, uint32_t val)
{
int memory_map_mode, plane, write_mode, b, func_select, mask;
uint32_t write_mask, bit_mask, set_mask;
#ifdef DEBUG_VGA_MEM
printf("vga: [0x" TARGET_FMT_plx "] = 0x%02x\n", addr, val);
#endif
/* convert to VGA memory offset */
... | true | qemu | 94ef4f337fb614f18b765a8e0e878a4c23cdedcd | void vga_mem_writeb(VGACommonState *s, hwaddr addr, uint32_t val)
{
int memory_map_mode, plane, write_mode, b, func_select, mask;
uint32_t write_mask, bit_mask, set_mask;
#ifdef DEBUG_VGA_MEM
printf("vga: [0x" TARGET_FMT_plx "] = 0x%02x\n", addr, val);
#endif
memory_map_mode = (s->gr[VGA_... | {
"code": [
" if (s->sr[VGA_SEQ_MEMORY_MODE] & VGA_SR04_CHN_4M) {",
" if (s->sr[VGA_SEQ_MEMORY_MODE] & VGA_SR04_CHN_4M) {",
" if (s->sr[VGA_SEQ_PLANE_WRITE] & mask) {",
" if (s->sr[VGA_SEQ_PLANE_WRITE] & mask) {",
" mask = s->sr[VGA_SEQ_PLANE_WRITE];"
],
"line_no": [... | void FUNC_0(VGACommonState *VAR_0, hwaddr VAR_1, uint32_t VAR_2)
{
int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;
uint32_t write_mask, bit_mask, set_mask;
#ifdef DEBUG_VGA_MEM
printf("vga: [0x" TARGET_FMT_plx "] = 0x%02x\n", VAR_1, VAR_2);
#endif
VAR_3 = (VAR_0->gr[VGA_GFX_MISC] >> 2) & 3;... | [
"void FUNC_0(VGACommonState *VAR_0, hwaddr VAR_1, uint32_t VAR_2)\n{",
"int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;",
"uint32_t write_mask, bit_mask, set_mask;",
"#ifdef DEBUG_VGA_MEM\nprintf(\"vga: [0x\" TARGET_FMT_plx \"] = 0x%02x\\n\", VAR_1, VAR_2);",
"#endif\nVAR_3 = (VAR_0->gr[VGA_GFX_MISC] >> 2) & ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
37
],
[
39,
41
],
[
43,
45
],
[
47
],
[
49,
51,
53
],
... |
24,246 | static int read_channel_params(MLPDecodeContext *m, unsigned int substr,
GetBitContext *gbp, unsigned int ch)
{
SubStream *s = &m->substream[substr];
ChannelParams *cp = &s->channel_params[ch];
FilterParams *fir = &cp->filter_params[FIR];
FilterParams *iir = &cp->fil... | true | FFmpeg | 361e0310d95bf2a0377f168518d1135ae15ca3f8 | static int read_channel_params(MLPDecodeContext *m, unsigned int substr,
GetBitContext *gbp, unsigned int ch)
{
SubStream *s = &m->substream[substr];
ChannelParams *cp = &s->channel_params[ch];
FilterParams *fir = &cp->filter_params[FIR];
FilterParams *iir = &cp->fil... | {
"code": [
" cp->sign_huff_offset = calculate_sign_huff(m, substr, ch);",
" int ret;",
" if (get_bits1(gbp))",
" return ret;",
" return 0;"
],
"line_no": [
103,
15,
21,
25,
107
]
} | static int FUNC_0(MLPDecodeContext *VAR_0, unsigned int VAR_1,
GetBitContext *VAR_2, unsigned int VAR_3)
{
SubStream *s = &VAR_0->substream[VAR_1];
ChannelParams *cp = &s->channel_params[VAR_3];
FilterParams *fir = &cp->filter_params[FIR];
FilterParams *iir = &cp->fi... | [
"static int FUNC_0(MLPDecodeContext *VAR_0, unsigned int VAR_1,\nGetBitContext *VAR_2, unsigned int VAR_3)\n{",
"SubStream *s = &VAR_0->substream[VAR_1];",
"ChannelParams *cp = &s->channel_params[VAR_3];",
"FilterParams *fir = &cp->filter_params[FIR];",
"FilterParams *iir = &cp->filter_params[IIR];",
"int... | [
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21,
23,
25
],
[
29,
31,
33,
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49,
51
],
[
53,
55
],
[
57
],
[... |
24,247 | static int wsvqa_read_packet(AVFormatContext *s,
AVPacket *pkt)
{
WsVqaDemuxContext *wsvqa = s->priv_data;
AVIOContext *pb = s->pb;
int ret = -1;
unsigned char preamble[VQA_PREAMBLE_SIZE];
unsigned int chunk_type;
unsigned int chunk_size;
int skip_byte;
... | true | FFmpeg | b2c2589ecf87e6d42d4134e726552a35b2820e09 | static int wsvqa_read_packet(AVFormatContext *s,
AVPacket *pkt)
{
WsVqaDemuxContext *wsvqa = s->priv_data;
AVIOContext *pb = s->pb;
int ret = -1;
unsigned char preamble[VQA_PREAMBLE_SIZE];
unsigned int chunk_type;
unsigned int chunk_size;
int skip_byte;
... | {
"code": [
" pkt->duration = AV_RL16(pkt->data) / wsvqa->channels;"
],
"line_no": [
145
]
} | static int FUNC_0(AVFormatContext *VAR_0,
AVPacket *VAR_1)
{
WsVqaDemuxContext *wsvqa = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
int VAR_2 = -1;
unsigned char VAR_3[VQA_PREAMBLE_SIZE];
unsigned int VAR_4;
unsigned int VAR_5;
int VAR_6;
while... | [
"static int FUNC_0(AVFormatContext *VAR_0,\nAVPacket *VAR_1)\n{",
"WsVqaDemuxContext *wsvqa = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"int VAR_2 = -1;",
"unsigned char VAR_3[VQA_PREAMBLE_SIZE];",
"unsigned int VAR_4;",
"unsigned int VAR_5;",
"int VAR_6;",
"while (avio_read(pb, VAR_3, VQA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
35,
37
],
[
41
],
[
43,
45
],
[
49
],
[
51,
53,
55,
57
... |
24,248 | static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int index,
const char *filt_name, const char *args, void *log_ctx)
{
AVFilter *filt;
char inst_name[30];
char tmp_args[256];
int ret;
snprintf(inst_name, sizeof(inst_name), "Parsed_%s_%d", filt... | false | FFmpeg | 61af627d56c785650ac3d235f6356ee3bc5676ee | static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int index,
const char *filt_name, const char *args, void *log_ctx)
{
AVFilter *filt;
char inst_name[30];
char tmp_args[256];
int ret;
snprintf(inst_name, sizeof(inst_name), "Parsed_%s_%d", filt... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFilterContext **VAR_0, AVFilterGraph *VAR_1, int VAR_2,
const char *VAR_3, const char *VAR_4, void *VAR_5)
{
AVFilter *filt;
char VAR_6[30];
char VAR_7[256];
int VAR_8;
snprintf(VAR_6, sizeof(VAR_6), "Parsed_%s_%d", VAR_3, VAR_2);
filt = a... | [
"static int FUNC_0(AVFilterContext **VAR_0, AVFilterGraph *VAR_1, int VAR_2,\nconst char *VAR_3, const char *VAR_4, void *VAR_5)\n{",
"AVFilter *filt;",
"char VAR_6[30];",
"char VAR_7[256];",
"int VAR_8;",
"snprintf(VAR_6, sizeof(VAR_6), \"Parsed_%s_%d\", VAR_3, VAR_2);",
"filt = avfilter_get_by_name(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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
51,
53
],
[
55,... |
24,249 | static void flush_packet(AVFormatContext *ctx, int stream_index,
int64_t pts, int64_t dts, int64_t scr)
{
MpegMuxContext *s = ctx->priv_data;
StreamInfo *stream = ctx->streams[stream_index]->priv_data;
uint8_t *buf_ptr;
int size, payload_size, startcode, id, stuffing_size... | false | FFmpeg | 224944895efe6ac23e3b8f9d35abfee9f5c6c440 | static void flush_packet(AVFormatContext *ctx, int stream_index,
int64_t pts, int64_t dts, int64_t scr)
{
MpegMuxContext *s = ctx->priv_data;
StreamInfo *stream = ctx->streams[stream_index]->priv_data;
uint8_t *buf_ptr;
int size, payload_size, startcode, id, stuffing_size... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFormatContext *VAR_0, int VAR_1,
int64_t VAR_2, int64_t VAR_3, int64_t VAR_4)
{
MpegMuxContext *s = VAR_0->priv_data;
StreamInfo *stream = VAR_0->streams[VAR_1]->priv_data;
uint8_t *buf_ptr;
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;
... | [
"static void FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nint64_t VAR_2, int64_t VAR_3, int64_t VAR_4)\n{",
"MpegMuxContext *s = VAR_0->priv_data;",
"StreamInfo *stream = VAR_0->streams[VAR_1]->priv_data;",
"uint8_t *buf_ptr;",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11;",
"int VAR_12;",
"uint... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29,
31,
33
],
[
35,
39
],
[
43
],
[
47
],
[
49
],
[
53
],
[
63
],
[
65
... |
24,250 | void ff_xvmc_init_block(MpegEncContext *s)
{
struct xvmc_pix_fmt *render = (struct xvmc_pix_fmt*)s->current_picture.f->data[2];
assert(render && render->xvmc_id == AV_XVMC_ID);
s->block = (int16_t (*)[64])(render->data_blocks + render->next_free_data_block_num * 64);
}
| false | FFmpeg | dcc39ee10e82833ce24aa57926c00ffeb1948198 | void ff_xvmc_init_block(MpegEncContext *s)
{
struct xvmc_pix_fmt *render = (struct xvmc_pix_fmt*)s->current_picture.f->data[2];
assert(render && render->xvmc_id == AV_XVMC_ID);
s->block = (int16_t (*)[64])(render->data_blocks + render->next_free_data_block_num * 64);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(MpegEncContext *VAR_0)
{
struct xvmc_pix_fmt *VAR_1 = (struct xvmc_pix_fmt*)VAR_0->current_picture.f->data[2];
assert(VAR_1 && VAR_1->xvmc_id == AV_XVMC_ID);
VAR_0->block = (int16_t (*)[64])(VAR_1->data_blocks + VAR_1->next_free_data_block_num * 64);
}
| [
"void FUNC_0(MpegEncContext *VAR_0)\n{",
"struct xvmc_pix_fmt *VAR_1 = (struct xvmc_pix_fmt*)VAR_0->current_picture.f->data[2];",
"assert(VAR_1 && VAR_1->xvmc_id == AV_XVMC_ID);",
"VAR_0->block = (int16_t (*)[64])(VAR_1->data_blocks + VAR_1->next_free_data_block_num * 64);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
]
] |
24,252 | static inline void set_p_mv_tables(MpegEncContext * s, int mx, int my)
{
const int xy= s->mb_x + 1 + (s->mb_y + 1)*(s->mb_width + 2);
s->p_mv_table[xy][0] = mx;
s->p_mv_table[xy][1] = my;
/* has allready been set to the 4 MV if 4MV is done */
if(!(s->flags&CODEC_FLAG_4MV)){
in... | false | FFmpeg | 0d21a84605bad4e75dacb8196e5859902ed36f01 | static inline void set_p_mv_tables(MpegEncContext * s, int mx, int my)
{
const int xy= s->mb_x + 1 + (s->mb_y + 1)*(s->mb_width + 2);
s->p_mv_table[xy][0] = mx;
s->p_mv_table[xy][1] = my;
if(!(s->flags&CODEC_FLAG_4MV)){
int mot_xy= s->block_index[0];
s->motion_val[... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2)
{
const int VAR_3= VAR_0->mb_x + 1 + (VAR_0->mb_y + 1)*(VAR_0->mb_width + 2);
VAR_0->p_mv_table[VAR_3][0] = VAR_1;
VAR_0->p_mv_table[VAR_3][1] = VAR_2;
if(!(VAR_0->flags&CODEC_FLAG_4MV)){
int VAR_4= VAR_0... | [
"static inline void FUNC_0(MpegEncContext * VAR_0, int VAR_1, int VAR_2)\n{",
"const int VAR_3= VAR_0->mb_x + 1 + (VAR_0->mb_y + 1)*(VAR_0->mb_width + 2);",
"VAR_0->p_mv_table[VAR_3][0] = VAR_1;",
"VAR_0->p_mv_table[VAR_3][1] = VAR_2;",
"if(!(VAR_0->flags&CODEC_FLAG_4MV)){",
"int VAR_4= VAR_0->block_index... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
]
] |
24,253 | static int hds_flush(AVFormatContext *s, OutputStream *os, int final,
int64_t end_ts)
{
HDSContext *c = s->priv_data;
int i, ret = 0;
char target_filename[1024];
int index = s->streams[os->first_stream]->id;
if (!os->packets_written)
return 0;
avio_flush... | false | FFmpeg | 9f61abc8111c7c43f49ca012e957a108b9cc7610 | static int hds_flush(AVFormatContext *s, OutputStream *os, int final,
int64_t end_ts)
{
HDSContext *c = s->priv_data;
int i, ret = 0;
char target_filename[1024];
int index = s->streams[os->first_stream]->id;
if (!os->packets_written)
return 0;
avio_flush... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, OutputStream *VAR_1, int VAR_2,
int64_t VAR_3)
{
HDSContext *c = VAR_0->priv_data;
int VAR_4, VAR_5 = 0;
char VAR_6[1024];
int VAR_7 = VAR_0->streams[VAR_1->first_stream]->id;
if (!VAR_1->packets_written)
return 0;
... | [
"static int FUNC_0(AVFormatContext *VAR_0, OutputStream *VAR_1, int VAR_2,\nint64_t VAR_3)\n{",
"HDSContext *c = VAR_0->priv_data;",
"int VAR_4, VAR_5 = 0;",
"char VAR_6[1024];",
"int VAR_7 = VAR_0->streams[VAR_1->first_stream]->id;",
"if (!VAR_1->packets_written)\nreturn 0;",
"avio_flush(VAR_1->ctx->pb... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
31,
33
],
[
35
],
[
37,
39
],
[
41
],
[
45
],
[
47
],
[
49,
51
],
[
53
],
[... |
24,254 | build_dsdt(GArray *table_data, GArray *linker,
AcpiPmInfo *pm, AcpiMiscInfo *misc,
PcPciInfo *pci, MachineState *machine)
{
CrsRangeEntry *entry;
Aml *dsdt, *sb_scope, *scope, *dev, *method, *field, *pkg, *crs;
GPtrArray *mem_ranges = g_ptr_array_new_with_free_func(crs_range_free... | true | qemu | 52e38eb0512585a5fadb431a65997b602d44874b | build_dsdt(GArray *table_data, GArray *linker,
AcpiPmInfo *pm, AcpiMiscInfo *misc,
PcPciInfo *pci, MachineState *machine)
{
CrsRangeEntry *entry;
Aml *dsdt, *sb_scope, *scope, *dev, *method, *field, *pkg, *crs;
GPtrArray *mem_ranges = g_ptr_array_new_with_free_func(crs_range_free... | {
"code": [
" aml_append(crs, aml_irq_no_flags(TPM_TIS_IRQ));"
],
"line_no": [
739
]
} | FUNC_0(GArray *VAR_0, GArray *VAR_1,
AcpiPmInfo *VAR_2, AcpiMiscInfo *VAR_3,
PcPciInfo *VAR_4, MachineState *VAR_5)
{
CrsRangeEntry *entry;
Aml *dsdt, *sb_scope, *scope, *dev, *method, *field, *pkg, *crs;
GPtrArray *mem_ranges = g_ptr_array_new_with_free_func(crs_range_free);
... | [
"FUNC_0(GArray *VAR_0, GArray *VAR_1,\nAcpiPmInfo *VAR_2, AcpiMiscInfo *VAR_3,\nPcPciInfo *VAR_4, MachineState *VAR_5)\n{",
"CrsRangeEntry *entry;",
"Aml *dsdt, *sb_scope, *scope, *dev, *method, *field, *pkg, *crs;",
"GPtrArray *mem_ranges = g_ptr_array_new_with_free_func(crs_range_free);",
"GPtrArray *io_r... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
24,255 | static void init_input_filter(FilterGraph *fg, AVFilterInOut *in)
{
InputStream *ist;
enum AVMediaType type = avfilter_pad_get_type(in->filter_ctx->input_pads, in->pad_idx);
int i;
// TODO: support other filter types
if (type != AVMEDIA_TYPE_VIDEO && type != AVMEDIA_TYPE_AUDIO) {
av... | true | FFmpeg | 74853ed3f845212f4092e7b7e89dc2262926f4f5 | static void init_input_filter(FilterGraph *fg, AVFilterInOut *in)
{
InputStream *ist;
enum AVMediaType type = avfilter_pad_get_type(in->filter_ctx->input_pads, in->pad_idx);
int i;
if (type != AVMEDIA_TYPE_VIDEO && type != AVMEDIA_TYPE_AUDIO) {
av_log(NULL, AV_LOG_FATAL, "Only vide... | {
"code": [
" InputStream *ist;"
],
"line_no": [
5
]
} | static void FUNC_0(FilterGraph *VAR_0, AVFilterInOut *VAR_1)
{
InputStream *ist;
enum AVMediaType VAR_2 = avfilter_pad_get_type(VAR_1->filter_ctx->input_pads, VAR_1->pad_idx);
int VAR_3;
if (VAR_2 != AVMEDIA_TYPE_VIDEO && VAR_2 != AVMEDIA_TYPE_AUDIO) {
av_log(NULL, AV_LOG_FATAL, "O... | [
"static void FUNC_0(FilterGraph *VAR_0, AVFilterInOut *VAR_1)\n{",
"InputStream *ist;",
"enum AVMediaType VAR_2 = avfilter_pad_get_type(VAR_1->filter_ctx->input_pads, VAR_1->pad_idx);",
"int VAR_3;",
"if (VAR_2 != AVMEDIA_TYPE_VIDEO && VAR_2 != AVMEDIA_TYPE_AUDIO) {",
"av_log(NULL, AV_LOG_FATAL, \"Only vi... | [
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
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
53
... |
24,256 | static inline void RENAME(yuy2ToY)(uint8_t *dst, uint8_t *src, int width)
{
#ifdef HAVE_MMX
asm volatile(
"movq "MANGLE(bm01010101)", %%mm2\n\t"
"mov %0, %%"REG_a" \n\t"
"1: \n\t"
"movq (%1, %%"REG_a",2), %%mm0 \n\t"
"movq 8(%1, %%"REG_a",2), %%mm1 \n\t"
"pand %%mm2, %%mm0 \n\t"
"pand %%mm... | true | FFmpeg | 7f526efd17973ec6d2204f7a47b6923e2be31363 | static inline void RENAME(yuy2ToY)(uint8_t *dst, uint8_t *src, int width)
{
#ifdef HAVE_MMX
asm volatile(
"movq "MANGLE(bm01010101)", %%mm2\n\t"
"mov %0, %%"REG_a" \n\t"
"1: \n\t"
"movq (%1, %%"REG_a",2), %%mm0 \n\t"
"movq 8(%1, %%"REG_a",2), %%mm1 \n\t"
"pand %%mm2, %%mm0 \n\t"
"pand %%mm... | {
"code": [
"static inline void RENAME(yuy2ToY)(uint8_t *dst, uint8_t *src, int width)",
"\t\t: : \"g\" ((long)-width), \"r\" (src+width*2), \"r\" (dst+width)",
"\t\t: : \"g\" ((long)-width), \"r\" (src+width*2), \"r\" (dst+width)"
],
"line_no": [
1,
31,
31
]
} | static inline void FUNC_0(yuy2ToY)(uint8_t *dst, uint8_t *src, int width)
{
#ifdef HAVE_MMX
asm volatile(
"movq "MANGLE(bm01010101)", %%mm2\n\t"
"mov %0, %%"REG_a" \n\t"
"1: \n\t"
"movq (%1, %%"REG_a",2), %%mm0 \n\t"
"movq 8(%1, %%"REG_a",2), %%mm1 \n\t"
"pand %%mm2, %%mm0 \n\t"
"pand %%mm... | [
"static inline void FUNC_0(yuy2ToY)(uint8_t *dst, uint8_t *src, int width)\n{",
"#ifdef HAVE_MMX\nasm volatile(\n\"movq \"MANGLE(bm01010101)\", %%mm2\\n\\t\"\n\"mov %0, %%\"REG_a\"\t\t\\n\\t\"\n\"1:\t\t\t\t\\n\\t\"\n\"movq (%1, %%\"REG_a\",2), %%mm0\t\\n\\t\"\n\"movq 8(%1, %%\"REG_a\",2), %%mm1\t\\n\\t\"\n\"pand ... | [
1,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9,
11,
13,
15,
17,
19,
21,
23,
25,
27,
29,
31,
33,
35
],
[
37,
39
],
[
41
],
[
43
],
[
45,
47
]
] |
24,257 | static void print_pte(Monitor *mon, uint32_t addr, uint32_t pte, uint32_t mask)
{
monitor_printf(mon, "%08x: %08x %c%c%c%c%c%c%c%c\n",
addr,
pte & mask,
pte & PG_GLOBAL_MASK ? 'G' : '-',
pte & PG_PSE_MASK ? 'P' : '-',
... | true | qemu | d65aaf3773e4be7ae97df9d867cbe9b36e2fb8a1 | static void print_pte(Monitor *mon, uint32_t addr, uint32_t pte, uint32_t mask)
{
monitor_printf(mon, "%08x: %08x %c%c%c%c%c%c%c%c\n",
addr,
pte & mask,
pte & PG_GLOBAL_MASK ? 'G' : '-',
pte & PG_PSE_MASK ? 'P' : '-',
... | {
"code": [
"static void print_pte(Monitor *mon, uint32_t addr, uint32_t pte, uint32_t mask)",
" monitor_printf(mon, \"%08x: %08x %c%c%c%c%c%c%c%c\\n\","
],
"line_no": [
1,
5
]
} | static void FUNC_0(Monitor *VAR_0, uint32_t VAR_1, uint32_t VAR_2, uint32_t VAR_3)
{
monitor_printf(VAR_0, "%08x: %08x %c%c%c%c%c%c%c%c\n",
VAR_1,
VAR_2 & VAR_3,
VAR_2 & PG_GLOBAL_MASK ? 'G' : '-',
VAR_2 & PG_PSE_MASK ? 'P' : '-',
... | [
"static void FUNC_0(Monitor *VAR_0, uint32_t VAR_1, uint32_t VAR_2, uint32_t VAR_3)\n{",
"monitor_printf(VAR_0, \"%08x: %08x %c%c%c%c%c%c%c%c\\n\",\nVAR_1,\nVAR_2 & VAR_3,\nVAR_2 & PG_GLOBAL_MASK ? 'G' : '-',\nVAR_2 & PG_PSE_MASK ? 'P' : '-',\nVAR_2 & PG_DIRTY_MASK ? 'D' : '-',\nVAR_2 & PG_ACCESSED_MASK ? 'A' : '... | [
1,
1,
0
] | [
[
1,
3
],
[
5,
7,
9,
11,
13,
15,
17,
19,
21,
23,
25
],
[
27
]
] |
24,258 | av_cold void ff_msmpeg4_encode_init(MpegEncContext *s)
{
static int init_done=0;
int i;
common_init(s);
if(s->msmpeg4_version>=4){
s->min_qcoeff= -255;
s->max_qcoeff= 255;
}
if (!init_done) {
/* init various encoding tables */
init_done = 1;
... | true | FFmpeg | a1684cf82d1aa35de0ae97724477501f92395c2b | av_cold void ff_msmpeg4_encode_init(MpegEncContext *s)
{
static int init_done=0;
int i;
common_init(s);
if(s->msmpeg4_version>=4){
s->min_qcoeff= -255;
s->max_qcoeff= 255;
}
if (!init_done) {
init_done = 1;
init_mv_table(&mv_tables[0]);
... | {
"code": [
" for(level=0; level<=MAX_LEVEL; level++){"
],
"line_no": [
43
]
} | av_cold void FUNC_0(MpegEncContext *s)
{
static int VAR_0=0;
int VAR_1;
common_init(s);
if(s->msmpeg4_version>=4){
s->min_qcoeff= -255;
s->max_qcoeff= 255;
}
if (!VAR_0) {
VAR_0 = 1;
init_mv_table(&mv_tables[0]);
init_mv_table(&m... | [
"av_cold void FUNC_0(MpegEncContext *s)\n{",
"static int VAR_0=0;",
"int VAR_1;",
"common_init(s);",
"if(s->msmpeg4_version>=4){",
"s->min_qcoeff= -255;",
"s->max_qcoeff= 255;",
"}",
"if (!VAR_0) {",
"VAR_0 = 1;",
"init_mv_table(&mv_tables[0]);",
"init_mv_table(&mv_tables[1]);",
"for(VAR_1=... | [
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
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49... |
24,259 | av_cold void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf,
int buf_size)
{
/* cast to avoid compiler warning */
ff_init_range_encoder(c, (uint8_t *)buf, buf_size);
c->low = AV_RB16(c->bytestream);
c->bytestream += 2;
| true | FFmpeg | 5f928c5201c077b9765610bc5304235c3f1d9bd6 | av_cold void ff_init_range_decoder(RangeCoder *c, const uint8_t *buf,
int buf_size)
{
ff_init_range_encoder(c, (uint8_t *)buf, buf_size);
c->low = AV_RB16(c->bytestream);
c->bytestream += 2;
| {
"code": [],
"line_no": []
} | av_cold void FUNC_0(RangeCoder *c, const uint8_t *buf,
int buf_size)
{
ff_init_range_encoder(c, (uint8_t *)buf, buf_size);
c->low = AV_RB16(c->bytestream);
c->bytestream += 2;
| [
"av_cold void FUNC_0(RangeCoder *c, const uint8_t *buf,\nint buf_size)\n{",
"ff_init_range_encoder(c, (uint8_t *)buf, buf_size);",
"c->low = AV_RB16(c->bytestream);",
"c->bytestream += 2;"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
9
],
[
13
],
[
15
]
] |
24,260 | static void gen_load_exclusive(DisasContext *s, int rt, int rt2,
TCGv addr, int size)
{
TCGv tmp;
switch (size) {
case 0:
tmp = gen_ld8u(addr, IS_USER(s));
break;
case 1:
tmp = gen_ld16u(addr, IS_USER(s));
break;
case 2:
... | true | qemu | 7d1b0095bff7157e856d1d0e6c4295641ced2752 | static void gen_load_exclusive(DisasContext *s, int rt, int rt2,
TCGv addr, int size)
{
TCGv tmp;
switch (size) {
case 0:
tmp = gen_ld8u(addr, IS_USER(s));
break;
case 1:
tmp = gen_ld16u(addr, IS_USER(s));
break;
case 2:
... | {
"code": [
" dead_tmp(tmp2);",
" dead_tmp(tmp2);",
" dead_tmp(tmp2);",
" dead_tmp(tmp2);",
" dead_tmp(tmp2);",
" dead_tmp(tmp2);",
" dead_tmp(tmp2);",
" dead_tmp(tmp2);",
" dead_tmp(tmp2);",
" TCGv tmp2 = ne... | static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2,
TCGv VAR_3, int VAR_4)
{
TCGv tmp;
switch (VAR_4) {
case 0:
tmp = gen_ld8u(VAR_3, IS_USER(VAR_0));
break;
case 1:
tmp = gen_ld16u(VAR_3, IS_USER(VAR_0));
break;
c... | [
"static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2,\nTCGv VAR_3, int VAR_4)\n{",
"TCGv tmp;",
"switch (VAR_4) {",
"case 0:\ntmp = gen_ld8u(VAR_3, IS_USER(VAR_0));",
"break;",
"case 1:\ntmp = gen_ld16u(VAR_3, IS_USER(VAR_0));",
"break;",
"case 2:\ncase 3:\ntmp = gen_ld32(VAR_3, IS_USER(VAR_0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19,
21
],
[
23
],
[
25,
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49... |
24,261 | static int vcr1_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
VCR1Context *const a = avctx->priv_data;
AVFrame *const p = data;
con... | true | FFmpeg | 8aba7968dd604aae91ee42cbce0be3dad7dceb30 | static int vcr1_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
VCR1Context *const a = avctx->priv_data;
AVFrame *const p = data;
con... | {
"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;
VCR1Context *const a = VAR_0->priv_data;
AVFrame *const p = VAR_1;
const uint8_t *V... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"VCR1Context *const a = VAR_0->priv_data;",
"AVFrame *const p = VAR_1;",
"const uint8_t *VAR_6 = VAR_4;",
"int V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
24,262 | static inline void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args,
const int *const_args)
{
int c;
switch (opc) {
case INDEX_op_exit_tb:
tcg_out_movi(s, TCG_TYPE_PTR, TCG_REG_I0, args[0]);
tcg_out32(s, JMPL | INSN_RD(TCG_REG_G0) | INSN_RS1(... | true | qemu | 1fd959466574c3d46f4898f2e27cd3b1060338e4 | static inline void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args,
const int *const_args)
{
int c;
switch (opc) {
case INDEX_op_exit_tb:
tcg_out_movi(s, TCG_TYPE_PTR, TCG_REG_I0, args[0]);
tcg_out32(s, JMPL | INSN_RD(TCG_REG_G0) | INSN_RS1(... | {
"code": [
" goto gen_arith;",
" goto gen_arith;",
" goto gen_arith;",
" goto gen_arith;",
" goto gen_arith;",
" goto gen_arith;"
],
"line_no": [
185,
185,
185,
185,
185,
185
]
} | static inline void FUNC_0(TCGContext *VAR_0, TCGOpcode VAR_1, const TCGArg *VAR_2,
const int *VAR_3)
{
int VAR_4;
switch (VAR_1) {
case INDEX_op_exit_tb:
tcg_out_movi(VAR_0, TCG_TYPE_PTR, TCG_REG_I0, VAR_2[0]);
tcg_out32(VAR_0, JMPL | INSN_RD(TCG_REG_G0... | [
"static inline void FUNC_0(TCGContext *VAR_0, TCGOpcode VAR_1, const TCGArg *VAR_2,\nconst int *VAR_3)\n{",
"int VAR_4;",
"switch (VAR_1) {",
"case INDEX_op_exit_tb:\ntcg_out_movi(VAR_0, TCG_TYPE_PTR, TCG_REG_I0, VAR_2[0]);",
"tcg_out32(VAR_0, JMPL | INSN_RD(TCG_REG_G0) | INSN_RS1(TCG_REG_I7) |\nINSN_IMM13(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13,
15
],
[
17,
19
],
[
21,
23
],
[
25
],
[
27,
29
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
45
],
[
47,
49
],
[
51
],
[
53
],
... |
24,263 | static void sbr_hf_inverse_filter(SBRDSPContext *dsp,
int (*alpha0)[2], int (*alpha1)[2],
const int X_low[32][40][2], int k0)
{
int k;
int shift, round;
for (k = 0; k < k0; k++) {
SoftFloat phi[3][2][2];
SoftFloat ... | true | FFmpeg | 4cc2a357f5dce9bad36b59fb31ba5cf61cc56272 | static void sbr_hf_inverse_filter(SBRDSPContext *dsp,
int (*alpha0)[2], int (*alpha1)[2],
const int X_low[32][40][2], int k0)
{
int k;
int shift, round;
for (k = 0; k < k0; k++) {
SoftFloat phi[3][2][2];
SoftFloat ... | {
"code": [
" a00.mant *= 2;",
" shift = 2-shift;",
" if (shift == 0)",
" alpha0[k][0] = a00.mant;",
" a01.mant *= 2;",
" shift = 2-shift;",
" if (shift == 0)",
" alpha0[k][1] = a01.mant;",
... | static void FUNC_0(SBRDSPContext *VAR_0,
int (*VAR_1)[2], int (*VAR_2)[2],
const int VAR_3[32][40][2], int VAR_4)
{
int VAR_5;
int VAR_6, VAR_7;
for (VAR_5 = 0; VAR_5 < VAR_4; VAR_5++) {
SoftFloat phi[3][2][2];
Sof... | [
"static void FUNC_0(SBRDSPContext *VAR_0,\nint (*VAR_1)[2], int (*VAR_2)[2],\nconst int VAR_3[32][40][2], int VAR_4)\n{",
"int VAR_5;",
"int VAR_6, VAR_7;",
"for (VAR_5 = 0; VAR_5 < VAR_4; VAR_5++) {",
"SoftFloat phi[3][2][2];",
"SoftFloat a00, a01, a10, a11;",
"SoftFloat dk;",
"VAR_0->autocorrelate(V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29,
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
49,
51
],
[
53,
55,
57
... |
24,264 | void nbd_client_session_close(NbdClientSession *client)
{
if (!client->bs) {
return;
}
nbd_teardown_connection(client);
client->bs = NULL;
}
| true | qemu | 4a41a2d68a684241aca96dba066e0699941b730d | void nbd_client_session_close(NbdClientSession *client)
{
if (!client->bs) {
return;
}
nbd_teardown_connection(client);
client->bs = NULL;
}
| {
"code": [
"void nbd_client_session_close(NbdClientSession *client)"
],
"line_no": [
1
]
} | void FUNC_0(NbdClientSession *VAR_0)
{
if (!VAR_0->bs) {
return;
}
nbd_teardown_connection(VAR_0);
VAR_0->bs = NULL;
}
| [
"void FUNC_0(NbdClientSession *VAR_0)\n{",
"if (!VAR_0->bs) {",
"return;",
"}",
"nbd_teardown_connection(VAR_0);",
"VAR_0->bs = NULL;",
"}"
] | [
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
]
] |
24,265 | static void v9fs_rename(void *opaque)
{
int32_t fid;
ssize_t err = 0;
size_t offset = 7;
V9fsString name;
int32_t newdirfid;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
v9fs_string_init(&name);
err = pdu_unmarshal(pdu, offset, "dds", &fid, &newdirfid, &name)... | true | qemu | fff39a7ad09da07ef490de05c92c91f22f8002f2 | static void v9fs_rename(void *opaque)
{
int32_t fid;
ssize_t err = 0;
size_t offset = 7;
V9fsString name;
int32_t newdirfid;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
v9fs_string_init(&name);
err = pdu_unmarshal(pdu, offset, "dds", &fid, &newdirfid, &name)... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
int32_t fid;
ssize_t err = 0;
size_t offset = 7;
V9fsString name;
int32_t newdirfid;
V9fsFidState *fidp;
V9fsPDU *pdu = VAR_0;
V9fsState *s = pdu->s;
v9fs_string_init(&name);
err = pdu_unmarshal(pdu, offset, "dds", &fid, &newdirfid, &name);
i... | [
"static void FUNC_0(void *VAR_0)\n{",
"int32_t fid;",
"ssize_t err = 0;",
"size_t offset = 7;",
"V9fsString name;",
"int32_t newdirfid;",
"V9fsFidState *fidp;",
"V9fsPDU *pdu = VAR_0;",
"V9fsState *s = pdu->s;",
"v9fs_string_init(&name);",
"err = pdu_unmarshal(pdu, offset, \"dds\", &fid, &newdir... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],... |
24,266 | static int open_in(HLSContext *c, AVIOContext **in, const char *url)
{
AVDictionary *tmp = NULL;
int ret;
av_dict_copy(&tmp, c->avio_opts, 0);
ret = avio_open2(in, url, AVIO_FLAG_READ, c->interrupt_callback, &tmp);
av_dict_free(&tmp);
return ret;
}
| false | FFmpeg | 9f61abc8111c7c43f49ca012e957a108b9cc7610 | static int open_in(HLSContext *c, AVIOContext **in, const char *url)
{
AVDictionary *tmp = NULL;
int ret;
av_dict_copy(&tmp, c->avio_opts, 0);
ret = avio_open2(in, url, AVIO_FLAG_READ, c->interrupt_callback, &tmp);
av_dict_free(&tmp);
return ret;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(HLSContext *VAR_0, AVIOContext **VAR_1, const char *VAR_2)
{
AVDictionary *tmp = NULL;
int VAR_3;
av_dict_copy(&tmp, VAR_0->avio_opts, 0);
VAR_3 = avio_open2(VAR_1, VAR_2, AVIO_FLAG_READ, VAR_0->interrupt_callback, &tmp);
av_dict_free(&tmp);
return VAR_3;
}
| [
"static int FUNC_0(HLSContext *VAR_0, AVIOContext **VAR_1, const char *VAR_2)\n{",
"AVDictionary *tmp = NULL;",
"int VAR_3;",
"av_dict_copy(&tmp, VAR_0->avio_opts, 0);",
"VAR_3 = avio_open2(VAR_1, VAR_2, AVIO_FLAG_READ, VAR_0->interrupt_callback, &tmp);",
"av_dict_free(&tmp);",
"return VAR_3;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
]
] |
24,267 | static int mov_write_trak_tag(AVIOContext *pb, MOVMuxContext *mov,
MOVTrack *track, AVStream *st)
{
int64_t pos = avio_tell(pb);
avio_wb32(pb, 0); /* size */
ffio_wfourcc(pb, "trak");
mov_write_tkhd_tag(pb, track, st);
if (supports_edts(mov))
mov_write_e... | false | FFmpeg | af165acefacd89196c003c24802fa3c494d54d3a | static int mov_write_trak_tag(AVIOContext *pb, MOVMuxContext *mov,
MOVTrack *track, AVStream *st)
{
int64_t pos = avio_tell(pb);
avio_wb32(pb, 0);
ffio_wfourcc(pb, "trak");
mov_write_tkhd_tag(pb, track, st);
if (supports_edts(mov))
mov_write_edts_tag(pb... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1,
MOVTrack *VAR_2, AVStream *VAR_3)
{
int64_t pos = avio_tell(VAR_0);
avio_wb32(VAR_0, 0);
ffio_wfourcc(VAR_0, "trak");
mov_write_tkhd_tag(VAR_0, VAR_2, VAR_3);
if (supports_edts(VAR_1))
mov_writ... | [
"static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1,\nMOVTrack *VAR_2, AVStream *VAR_3)\n{",
"int64_t pos = avio_tell(VAR_0);",
"avio_wb32(VAR_0, 0);",
"ffio_wfourcc(VAR_0, \"trak\");",
"mov_write_tkhd_tag(VAR_0, VAR_2, VAR_3);",
"if (supports_edts(VAR_1))\nmov_write_edts_tag(VAR_0, VAR_2);",
"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15,
17
],
[
19,
21
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
24,268 | static int write_extradata(FFV1Context *f)
{
RangeCoder *const c = &f->c;
uint8_t state[CONTEXT_SIZE];
int i, j, k;
uint8_t state2[32][CONTEXT_SIZE];
unsigned v;
memset(state2, 128, sizeof(state2));
memset(state, 128, sizeof(state));
f->avctx->extradata_size = 10000 + 4 +
... | false | FFmpeg | 4bb1070c154e49d35805fbcdac9c9e92f702ef96 | static int write_extradata(FFV1Context *f)
{
RangeCoder *const c = &f->c;
uint8_t state[CONTEXT_SIZE];
int i, j, k;
uint8_t state2[32][CONTEXT_SIZE];
unsigned v;
memset(state2, 128, sizeof(state2));
memset(state, 128, sizeof(state));
f->avctx->extradata_size = 10000 + 4 +
... | {
"code": [],
"line_no": []
} | static int FUNC_0(FFV1Context *VAR_0)
{
RangeCoder *const c = &VAR_0->c;
uint8_t state[CONTEXT_SIZE];
int VAR_1, VAR_2, VAR_3;
uint8_t state2[32][CONTEXT_SIZE];
unsigned VAR_4;
memset(state2, 128, sizeof(state2));
memset(state, 128, sizeof(state));
VAR_0->avctx->extradata_si... | [
"static int FUNC_0(FFV1Context *VAR_0)\n{",
"RangeCoder *const c = &VAR_0->c;",
"uint8_t state[CONTEXT_SIZE];",
"int VAR_1, VAR_2, VAR_3;",
"uint8_t state2[32][CONTEXT_SIZE];",
"unsigned VAR_4;",
"memset(state2, 128, sizeof(state2));",
"memset(state, 128, sizeof(state));",
"VAR_0->avctx->extradata_s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
49
],
[
51,... |
24,270 | static int mpeg4_decode_gop_header(MpegEncContext * s, GetBitContext *gb){
int hours, minutes, seconds;
if(!show_bits(gb, 18)){
av_log(s->avctx, AV_LOG_WARNING, "GOP header invalid\n");
return -1;
}
hours= get_bits(gb, 5);
minutes= get_bits(gb, 6);
skip_bits1(gb);
... | false | FFmpeg | 499c2d41d75fdadbf65daa9eaf743f61632f14f8 | static int mpeg4_decode_gop_header(MpegEncContext * s, GetBitContext *gb){
int hours, minutes, seconds;
if(!show_bits(gb, 18)){
av_log(s->avctx, AV_LOG_WARNING, "GOP header invalid\n");
return -1;
}
hours= get_bits(gb, 5);
minutes= get_bits(gb, 6);
skip_bits1(gb);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(MpegEncContext * VAR_0, GetBitContext *VAR_1){
int VAR_2, VAR_3, VAR_4;
if(!show_bits(VAR_1, 18)){
av_log(VAR_0->avctx, AV_LOG_WARNING, "GOP header invalid\n");
return -1;
}
VAR_2= get_bits(VAR_1, 5);
VAR_3= get_bits(VAR_1, 6);
skip_bits1(VAR_1);
... | [
"static int FUNC_0(MpegEncContext * VAR_0, GetBitContext *VAR_1){",
"int VAR_2, VAR_3, VAR_4;",
"if(!show_bits(VAR_1, 18)){",
"av_log(VAR_0->avctx, AV_LOG_WARNING, \"GOP header invalid\\n\");",
"return -1;",
"}",
"VAR_2= get_bits(VAR_1, 5);",
"VAR_3= get_bits(VAR_1, 6);",
"skip_bits1(VAR_1);",
"VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
]
] |
24,271 | static void init_vlcs(ASV1Context *a){
static int done = 0;
if (!done) {
done = 1;
init_vlc(&ccp_vlc, VLC_BITS, 17,
&ccp_tab[0][1], 2, 1,
&ccp_tab[0][0], 2, 1);
init_vlc(&dc_ccp_vlc, VLC_BITS, 8,
&dc_ccp_tab[0][1], 2, 1,
... | true | FFmpeg | 073c2593c9f0aa4445a6fc1b9b24e6e52a8cc2c1 | static void init_vlcs(ASV1Context *a){
static int done = 0;
if (!done) {
done = 1;
init_vlc(&ccp_vlc, VLC_BITS, 17,
&ccp_tab[0][1], 2, 1,
&ccp_tab[0][0], 2, 1);
init_vlc(&dc_ccp_vlc, VLC_BITS, 8,
&dc_ccp_tab[0][1], 2, 1,
... | {
"code": [
" static int done = 0;",
" if (!done) {",
" done = 1;",
" &ccp_tab[0][0], 2, 1);",
" &dc_ccp_tab[0][0], 2, 1);",
" &ac_ccp_tab[0][0], 2, 1);",
" &level_tab[0][0], 2, 1);",
" &asv2_l... | static void FUNC_0(ASV1Context *VAR_0){
static int VAR_1 = 0;
if (!VAR_1) {
VAR_1 = 1;
init_vlc(&ccp_vlc, VLC_BITS, 17,
&ccp_tab[0][1], 2, 1,
&ccp_tab[0][0], 2, 1);
init_vlc(&dc_ccp_vlc, VLC_BITS, 8,
&dc_ccp_tab[0][1], 2, 1... | [
"static void FUNC_0(ASV1Context *VAR_0){",
"static int VAR_1 = 0;",
"if (!VAR_1) {",
"VAR_1 = 1;",
"init_vlc(&ccp_vlc, VLC_BITS, 17,\n&ccp_tab[0][1], 2, 1,\n&ccp_tab[0][0], 2, 1);",
"init_vlc(&dc_ccp_vlc, VLC_BITS, 8,\n&dc_ccp_tab[0][1], 2, 1,\n&dc_ccp_tab[0][0], 2, 1);",
"init_vlc(&ac_ccp_vlc, VLC_BITS... | [
0,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
[
1
],
[
3
],
[
7
],
[
9
],
[
13,
15,
17
],
[
19,
21,
23
],
[
25,
27,
29
],
[
31,
33,
35
],
[
37,
39,
41
],
[
43
],
[
45
]
] |
24,272 | static int applehttp_close(URLContext *h)
{
AppleHTTPContext *s = h->priv_data;
free_segment_list(s);
free_variant_list(s);
ffurl_close(s->seg_hd);
av_free(s);
return 0;
}
| true | FFmpeg | 1ca87d600bc069fe4cf497c410b4f794e88a122d | static int applehttp_close(URLContext *h)
{
AppleHTTPContext *s = h->priv_data;
free_segment_list(s);
free_variant_list(s);
ffurl_close(s->seg_hd);
av_free(s);
return 0;
}
| {
"code": [
" av_free(s);",
"static int applehttp_close(URLContext *h)",
" AppleHTTPContext *s = h->priv_data;",
" free_segment_list(s);",
" free_variant_list(s);",
" ffurl_close(s->seg_hd);",
" av_free(s);",
" return 0;"
],
"line_no": [
15,
1,
5,
... | static int FUNC_0(URLContext *VAR_0)
{
AppleHTTPContext *s = VAR_0->priv_data;
free_segment_list(s);
free_variant_list(s);
ffurl_close(s->seg_hd);
av_free(s);
return 0;
}
| [
"static int FUNC_0(URLContext *VAR_0)\n{",
"AppleHTTPContext *s = VAR_0->priv_data;",
"free_segment_list(s);",
"free_variant_list(s);",
"ffurl_close(s->seg_hd);",
"av_free(s);",
"return 0;",
"}"
] | [
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
24,273 | int swri_dither_init(SwrContext *s, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt)
{
int i;
double scale = 0;
if (s->dither.method > SWR_DITHER_TRIANGULAR_HIGHPASS && s->dither.method <= SWR_DITHER_NS)
return AVERROR(EINVAL);
out_fmt = av_get_packed_sample_fmt(out_fmt);
... | true | FFmpeg | 55d05286696473487ce51e347985378e28c0713b | int swri_dither_init(SwrContext *s, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt)
{
int i;
double scale = 0;
if (s->dither.method > SWR_DITHER_TRIANGULAR_HIGHPASS && s->dither.method <= SWR_DITHER_NS)
return AVERROR(EINVAL);
out_fmt = av_get_packed_sample_fmt(out_fmt);
... | {
"code": [
" s->dither.ns_scale_1 = 1/scale;"
],
"line_no": [
51
]
} | int FUNC_0(SwrContext *VAR_0, enum AVSampleFormat VAR_1, enum AVSampleFormat VAR_2)
{
int VAR_3;
double VAR_4 = 0;
if (VAR_0->dither.method > SWR_DITHER_TRIANGULAR_HIGHPASS && VAR_0->dither.method <= SWR_DITHER_NS)
return AVERROR(EINVAL);
VAR_1 = av_get_packed_sample_fmt(VAR_1);
V... | [
"int FUNC_0(SwrContext *VAR_0, enum AVSampleFormat VAR_1, enum AVSampleFormat VAR_2)\n{",
"int VAR_3;",
"double VAR_4 = 0;",
"if (VAR_0->dither.method > SWR_DITHER_TRIANGULAR_HIGHPASS && VAR_0->dither.method <= SWR_DITHER_NS)\nreturn AVERROR(EINVAL);",
"VAR_1 = av_get_packed_sample_fmt(VAR_1);",
"VAR_2 =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
... |
24,274 | int qemu_pixman_get_type(int rshift, int gshift, int bshift)
{
int type = PIXMAN_TYPE_OTHER;
if (rshift > gshift && gshift > bshift) {
if (bshift == 0) {
type = PIXMAN_TYPE_ARGB;
} else {
type = PIXMAN_TYPE_RGBA;
}
} else if (rshift < gshift && gs... | true | qemu | 6e72719e721a40fe1224701ca10edc1caf0cd708 | int qemu_pixman_get_type(int rshift, int gshift, int bshift)
{
int type = PIXMAN_TYPE_OTHER;
if (rshift > gshift && gshift > bshift) {
if (bshift == 0) {
type = PIXMAN_TYPE_ARGB;
} else {
type = PIXMAN_TYPE_RGBA;
}
} else if (rshift < gshift && gs... | {
"code": [],
"line_no": []
} | int FUNC_0(int VAR_0, int VAR_1, int VAR_2)
{
int VAR_3 = PIXMAN_TYPE_OTHER;
if (VAR_0 > VAR_1 && VAR_1 > VAR_2) {
if (VAR_2 == 0) {
VAR_3 = PIXMAN_TYPE_ARGB;
} else {
VAR_3 = PIXMAN_TYPE_RGBA;
}
} else if (VAR_0 < VAR_1 && VAR_1 < VAR_2) {
... | [
"int FUNC_0(int VAR_0, int VAR_1, int VAR_2)\n{",
"int VAR_3 = PIXMAN_TYPE_OTHER;",
"if (VAR_0 > VAR_1 && VAR_1 > VAR_2) {",
"if (VAR_2 == 0) {",
"VAR_3 = PIXMAN_TYPE_ARGB;",
"} else {",
"VAR_3 = PIXMAN_TYPE_RGBA;",
"}",
"} else if (VAR_0 < VAR_1 && VAR_1 < VAR_2) {",
"if (VAR_0 == 0) {",
"VAR_3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
18
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
32
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
24,275 | static int prom_init1(SysBusDevice *dev)
{
PROMState *s = OPENPROM(dev);
memory_region_init_ram(&s->prom, OBJECT(s), "sun4m.prom", PROM_SIZE_MAX,
&error_abort);
vmstate_register_ram_global(&s->prom);
memory_region_set_readonly(&s->prom, true);
sysbus_init_mmio(dev... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | static int prom_init1(SysBusDevice *dev)
{
PROMState *s = OPENPROM(dev);
memory_region_init_ram(&s->prom, OBJECT(s), "sun4m.prom", PROM_SIZE_MAX,
&error_abort);
vmstate_register_ram_global(&s->prom);
memory_region_set_readonly(&s->prom, true);
sysbus_init_mmio(dev... | {
"code": [
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" ... | static int FUNC_0(SysBusDevice *VAR_0)
{
PROMState *s = OPENPROM(VAR_0);
memory_region_init_ram(&s->prom, OBJECT(s), "sun4m.prom", PROM_SIZE_MAX,
&error_abort);
vmstate_register_ram_global(&s->prom);
memory_region_set_readonly(&s->prom, true);
sysbus_init_mmio(VAR... | [
"static int FUNC_0(SysBusDevice *VAR_0)\n{",
"PROMState *s = OPENPROM(VAR_0);",
"memory_region_init_ram(&s->prom, OBJECT(s), \"sun4m.prom\", PROM_SIZE_MAX,\n&error_abort);",
"vmstate_register_ram_global(&s->prom);",
"memory_region_set_readonly(&s->prom, true);",
"sysbus_init_mmio(VAR_0, &s->prom);",
"re... | [
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
24,276 | void helper_lswx(CPUPPCState *env, target_ulong addr, uint32_t reg,
uint32_t ra, uint32_t rb)
{
if (likely(xer_bc != 0)) {
if (unlikely((ra != 0 && reg < ra && (reg + xer_bc) > ra) ||
(reg < rb && (reg + xer_bc) > rb))) {
helper_raise_exception_err(env... | true | qemu | 488661ee9dd300110a6612d52fe68e2bb3539a5f | void helper_lswx(CPUPPCState *env, target_ulong addr, uint32_t reg,
uint32_t ra, uint32_t rb)
{
if (likely(xer_bc != 0)) {
if (unlikely((ra != 0 && reg < ra && (reg + xer_bc) > ra) ||
(reg < rb && (reg + xer_bc) > rb))) {
helper_raise_exception_err(env... | {
"code": [
" if (unlikely((ra != 0 && reg < ra && (reg + xer_bc) > ra) ||",
" (reg < rb && (reg + xer_bc) > rb))) {"
],
"line_no": [
9,
11
]
} | void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1, uint32_t VAR_2,
uint32_t VAR_3, uint32_t VAR_4)
{
if (likely(xer_bc != 0)) {
if (unlikely((VAR_3 != 0 && VAR_2 < VAR_3 && (VAR_2 + xer_bc) > VAR_3) ||
(VAR_2 < VAR_4 && (VAR_2 + xer_bc) > VAR_4))) {
h... | [
"void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1, uint32_t VAR_2,\nuint32_t VAR_3, uint32_t VAR_4)\n{",
"if (likely(xer_bc != 0)) {",
"if (unlikely((VAR_3 != 0 && VAR_2 < VAR_3 && (VAR_2 + xer_bc) > VAR_3) ||\n(VAR_2 < VAR_4 && (VAR_2 + xer_bc) > VAR_4))) {",
"helper_raise_exception_err(VAR_0, POWERPC_EXCP... | [
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
13,
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
24,277 | static void h264_v_loop_filter_luma_intra_c(uint8_t *pix, int stride, int alpha, int beta)
{
h264_loop_filter_luma_intra_c(pix, stride, 1, alpha, beta);
}
| false | FFmpeg | dd561441b1e849df7d8681c6f32af82d4088dafd | static void h264_v_loop_filter_luma_intra_c(uint8_t *pix, int stride, int alpha, int beta)
{
h264_loop_filter_luma_intra_c(pix, stride, 1, alpha, beta);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3)
{
h264_loop_filter_luma_intra_c(VAR_0, VAR_1, 1, VAR_2, VAR_3);
}
| [
"static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{",
"h264_loop_filter_luma_intra_c(VAR_0, VAR_1, 1, VAR_2, VAR_3);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
24,278 | mips_mipssim_init(MachineState *machine)
{
ram_addr_t ram_size = machine->ram_size;
const char *cpu_model = machine->cpu_model;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | mips_mipssim_init(MachineState *machine)
{
ram_addr_t ram_size = machine->ram_size;
const char *cpu_model = machine->cpu_model;
const char *kernel_filename = machine->kernel_filename;
const char *kernel_cmdline = machine->kernel_cmdline;
const char *initrd_filename = machine->initrd_filename;
... | {
"code": [
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" ... | FUNC_0(MachineState *VAR_0)
{
ram_addr_t ram_size = VAR_0->ram_size;
const char *VAR_1 = VAR_0->VAR_1;
const char *VAR_2 = VAR_0->VAR_2;
const char *VAR_3 = VAR_0->VAR_3;
const char *VAR_4 = VAR_0->VAR_4;
char *VAR_5;
MemoryRegion *address_space_mem = get_system_memory();
Memory... | [
"FUNC_0(MachineState *VAR_0)\n{",
"ram_addr_t ram_size = VAR_0->ram_size;",
"const char *VAR_1 = VAR_0->VAR_1;",
"const char *VAR_2 = VAR_0->VAR_2;",
"const char *VAR_3 = VAR_0->VAR_3;",
"const char *VAR_4 = VAR_0->VAR_4;",
"char *VAR_5;",
"MemoryRegion *address_space_mem = get_system_memory();",
"M... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
37
],
[
39,
41
],
[
43,
45
],
[
47,... |
24,279 | SDState *sd_init(BlockDriverState *bs, bool is_spi)
{
SDState *sd;
if (bdrv_is_read_only(bs)) {
fprintf(stderr, "sd_init: Cannot use read-only drive\n");
return NULL;
}
sd = (SDState *) g_malloc0(sizeof(SDState));
sd->buf = qemu_blockalign(bs, 512);
sd->spi = is_spi;... | true | qemu | 794cbc26eb94ce13c75d105eea9ff0afff56e2c2 | SDState *sd_init(BlockDriverState *bs, bool is_spi)
{
SDState *sd;
if (bdrv_is_read_only(bs)) {
fprintf(stderr, "sd_init: Cannot use read-only drive\n");
return NULL;
}
sd = (SDState *) g_malloc0(sizeof(SDState));
sd->buf = qemu_blockalign(bs, 512);
sd->spi = is_spi;... | {
"code": [
" if (bdrv_is_read_only(bs)) {"
],
"line_no": [
9
]
} | SDState *FUNC_0(BlockDriverState *bs, bool is_spi)
{
SDState *sd;
if (bdrv_is_read_only(bs)) {
fprintf(stderr, "FUNC_0: Cannot use read-only drive\n");
return NULL;
}
sd = (SDState *) g_malloc0(sizeof(SDState));
sd->buf = qemu_blockalign(bs, 512);
sd->spi = is_spi;
... | [
"SDState *FUNC_0(BlockDriverState *bs, bool is_spi)\n{",
"SDState *sd;",
"if (bdrv_is_read_only(bs)) {",
"fprintf(stderr, \"FUNC_0: Cannot use read-only drive\\n\");",
"return NULL;",
"}",
"sd = (SDState *) g_malloc0(sizeof(SDState));",
"sd->buf = qemu_blockalign(bs, 512);",
"sd->spi = is_spi;",
"... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
24,281 | static coroutine_fn int qcow2_co_preadv(BlockDriverState *bs, uint64_t offset,
uint64_t bytes, QEMUIOVector *qiov,
int flags)
{
BDRVQcow2State *s = bs->opaque;
int offset_in_cluster, n1;
int ret;
unsigned int cur_byte... | true | qemu | 546a7dc40e8b8b6440a052e2b5cdfe9aadcaccf6 | static coroutine_fn int qcow2_co_preadv(BlockDriverState *bs, uint64_t offset,
uint64_t bytes, QEMUIOVector *qiov,
int flags)
{
BDRVQcow2State *s = bs->opaque;
int offset_in_cluster, n1;
int ret;
unsigned int cur_byte... | {
"code": [
" int offset_in_cluster, n1;",
" n1 = qcow2_backing_read1(bs->backing->bs, &hd_qiov,",
" offset, cur_bytes);",
" if (n1 > 0) {",
" QEMUIOVector local_qiov;",
" qemu_iovec_... | static coroutine_fn int FUNC_0(BlockDriverState *bs, uint64_t offset,
uint64_t bytes, QEMUIOVector *qiov,
int flags)
{
BDRVQcow2State *s = bs->opaque;
int VAR_0, VAR_1;
int VAR_2;
unsigned int VAR_3;
uint64_t cl... | [
"static coroutine_fn int FUNC_0(BlockDriverState *bs, uint64_t offset,\nuint64_t bytes, QEMUIOVector *qiov,\nint flags)\n{",
"BDRVQcow2State *s = bs->opaque;",
"int VAR_0, VAR_1;",
"int VAR_2;",
"unsigned int VAR_3;",
"uint64_t cluster_offset = 0;",
"uint64_t bytes_done = 0;",
"QEMUIOVector hd_qiov;",... | [
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
35
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[
53
],
[
55
],
[... |
24,282 | static void gen_div(DisasContext *dc, TCGv dest, TCGv srca, TCGv srcb)
{
TCGv sr_ov = tcg_temp_new();
TCGv t0 = tcg_temp_new();
tcg_gen_setcondi_tl(TCG_COND_EQ, sr_ov, srcb, 0);
/* The result of divide-by-zero is undefined.
Supress the host-side exception by dividing by 1. */
tcg_ge... | true | qemu | 9745807191a81c45970f780166f44a7f93b18653 | static void gen_div(DisasContext *dc, TCGv dest, TCGv srca, TCGv srcb)
{
TCGv sr_ov = tcg_temp_new();
TCGv t0 = tcg_temp_new();
tcg_gen_setcondi_tl(TCG_COND_EQ, sr_ov, srcb, 0);
tcg_gen_or_tl(t0, srcb, sr_ov);
tcg_gen_div_tl(dest, srca, t0);
tcg_temp_free(t0);
tcg_gen_dep... | {
"code": [
" TCGv sr_ov = tcg_temp_new();",
" tcg_gen_deposit_tl(cpu_sr, cpu_sr, sr_ov, ctz32(SR_OV), 1);",
" tcg_temp_free(sr_ov);",
" TCGv sr_ov = tcg_temp_new();",
" tcg_gen_deposit_tl(cpu_sr, cpu_sr, sr_ov, ctz32(SR_OV), 1);",
" tcg_temp_free(sr_ov);",
" TCGv sr_o... | static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2, TCGv VAR_3)
{
TCGv sr_ov = tcg_temp_new();
TCGv t0 = tcg_temp_new();
tcg_gen_setcondi_tl(TCG_COND_EQ, sr_ov, VAR_3, 0);
tcg_gen_or_tl(t0, VAR_3, sr_ov);
tcg_gen_div_tl(VAR_1, VAR_2, t0);
tcg_temp_free(t0);
tc... | [
"static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2, TCGv VAR_3)\n{",
"TCGv sr_ov = tcg_temp_new();",
"TCGv t0 = tcg_temp_new();",
"tcg_gen_setcondi_tl(TCG_COND_EQ, sr_ov, VAR_3, 0);",
"tcg_gen_or_tl(t0, VAR_3, sr_ov);",
"tcg_gen_div_tl(VAR_1, VAR_2, t0);",
"tcg_temp_free(t0);",
"tcg_gen_d... | [
0,
1,
0,
1,
1,
0,
0,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
]
] |
24,284 | static inline void decode_subblock3(DCTELEM *dst, int code, const int is_block2, GetBitContext *gb, VLC *vlc,
int q_dc, int q_ac1, int q_ac2)
{
int coeffs[4];
coeffs[0] = modulo_three_table[code][0];
coeffs[1] = modulo_three_table[code][1];
coeffs[2] = modulo_... | false | FFmpeg | 3faa303a47e0c3b59a53988e0f76018930c6cb1a | static inline void decode_subblock3(DCTELEM *dst, int code, const int is_block2, GetBitContext *gb, VLC *vlc,
int q_dc, int q_ac1, int q_ac2)
{
int coeffs[4];
coeffs[0] = modulo_three_table[code][0];
coeffs[1] = modulo_three_table[code][1];
coeffs[2] = modulo_... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(DCTELEM *VAR_0, int VAR_1, const int VAR_2, GetBitContext *VAR_3, VLC *VAR_4,
int VAR_5, int VAR_6, int VAR_7)
{
int VAR_8[4];
VAR_8[0] = modulo_three_table[VAR_1][0];
VAR_8[1] = modulo_three_table[VAR_1][1];
VAR_8[2] = modulo_three_t... | [
"static inline void FUNC_0(DCTELEM *VAR_0, int VAR_1, const int VAR_2, GetBitContext *VAR_3, VLC *VAR_4,\nint VAR_5, int VAR_6, int VAR_7)\n{",
"int VAR_8[4];",
"VAR_8[0] = modulo_three_table[VAR_1][0];",
"VAR_8[1] = modulo_three_table[VAR_1][1];",
"VAR_8[2] = modulo_three_table[VAR_1][2];",
"VAR_8[3] = m... | [
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
]
] |
24,286 | static int mm_probe(AVProbeData *p)
{
/* the first chunk is always the header */
if (p->buf_size < MM_PREAMBLE_SIZE)
return 0;
if (AV_RL16(&p->buf[0]) != MM_TYPE_HEADER)
return 0;
if (AV_RL32(&p->buf[2]) != MM_HEADER_LEN_V && AV_RL32(&p->buf[2]) != MM_HEADER_LEN_AV)
retur... | false | FFmpeg | 87e8788680e16c51f6048af26f3f7830c35207a5 | static int mm_probe(AVProbeData *p)
{
if (p->buf_size < MM_PREAMBLE_SIZE)
return 0;
if (AV_RL16(&p->buf[0]) != MM_TYPE_HEADER)
return 0;
if (AV_RL32(&p->buf[2]) != MM_HEADER_LEN_V && AV_RL32(&p->buf[2]) != MM_HEADER_LEN_AV)
return 0;
return AVPROBE_SCORE_MAX... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVProbeData *VAR_0)
{
if (VAR_0->buf_size < MM_PREAMBLE_SIZE)
return 0;
if (AV_RL16(&VAR_0->buf[0]) != MM_TYPE_HEADER)
return 0;
if (AV_RL32(&VAR_0->buf[2]) != MM_HEADER_LEN_V && AV_RL32(&VAR_0->buf[2]) != MM_HEADER_LEN_AV)
return 0;
return... | [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"if (VAR_0->buf_size < MM_PREAMBLE_SIZE)\nreturn 0;",
"if (AV_RL16(&VAR_0->buf[0]) != MM_TYPE_HEADER)\nreturn 0;",
"if (AV_RL32(&VAR_0->buf[2]) != MM_HEADER_LEN_V && AV_RL32(&VAR_0->buf[2]) != MM_HEADER_LEN_AV)\nreturn 0;",
"return AVPROBE_SCORE_MAX / 2;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7,
9
],
[
11,
13
],
[
15,
17
],
[
23
],
[
25
]
] |
24,287 | static int tcp_write_packet(AVFormatContext *s, RTSPStream *rtsp_st)
{
RTSPState *rt = s->priv_data;
AVFormatContext *rtpctx = rtsp_st->transport_priv;
uint8_t *buf, *ptr;
int size;
uint8_t *interleave_header, *interleaved_packet;
size = avio_close_dyn_buf(rtpctx->pb, &buf);
ptr = ... | false | FFmpeg | 403ee835e7913eb9536b22c2b22edfdd700166a9 | static int tcp_write_packet(AVFormatContext *s, RTSPStream *rtsp_st)
{
RTSPState *rt = s->priv_data;
AVFormatContext *rtpctx = rtsp_st->transport_priv;
uint8_t *buf, *ptr;
int size;
uint8_t *interleave_header, *interleaved_packet;
size = avio_close_dyn_buf(rtpctx->pb, &buf);
ptr = ... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, RTSPStream *VAR_1)
{
RTSPState *rt = VAR_0->priv_data;
AVFormatContext *rtpctx = VAR_1->transport_priv;
uint8_t *buf, *ptr;
int VAR_2;
uint8_t *interleave_header, *interleaved_packet;
VAR_2 = avio_close_dyn_buf(rtpctx->pb, &buf);
ptr = buf;... | [
"static int FUNC_0(AVFormatContext *VAR_0, RTSPStream *VAR_1)\n{",
"RTSPState *rt = VAR_0->priv_data;",
"AVFormatContext *rtpctx = VAR_1->transport_priv;",
"uint8_t *buf, *ptr;",
"int VAR_2;",
"uint8_t *interleave_header, *interleaved_packet;",
"VAR_2 = avio_close_dyn_buf(rtpctx->pb, &buf);",
"ptr = 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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47,
49
],
[
51,
53
],
[
55
],
[... |
24,288 | static int find_and_decode_index(NUTContext *nut){
AVFormatContext *s= nut->avf;
ByteIOContext *bc = s->pb;
uint64_t tmp, end;
int i, j, syncpoint_count;
int64_t filesize= url_fsize(bc);
int64_t *syncpoints;
int8_t *has_keyframe;
url_fseek(bc, filesize-12, SEEK_SET);
url_f... | false | FFmpeg | b19e3983cfb157751301aec87237ea28676665f0 | static int find_and_decode_index(NUTContext *nut){
AVFormatContext *s= nut->avf;
ByteIOContext *bc = s->pb;
uint64_t tmp, end;
int i, j, syncpoint_count;
int64_t filesize= url_fsize(bc);
int64_t *syncpoints;
int8_t *has_keyframe;
url_fseek(bc, filesize-12, SEEK_SET);
url_f... | {
"code": [],
"line_no": []
} | static int FUNC_0(NUTContext *VAR_0){
AVFormatContext *s= VAR_0->avf;
ByteIOContext *bc = s->pb;
uint64_t tmp, end;
int VAR_1, VAR_2, VAR_3;
int64_t filesize= url_fsize(bc);
int64_t *syncpoints;
int8_t *has_keyframe;
url_fseek(bc, filesize-12, SEEK_SET);
url_fseek(bc, file... | [
"static int FUNC_0(NUTContext *VAR_0){",
"AVFormatContext *s= VAR_0->avf;",
"ByteIOContext *bc = s->pb;",
"uint64_t tmp, end;",
"int VAR_1, VAR_2, VAR_3;",
"int64_t filesize= url_fsize(bc);",
"int64_t *syncpoints;",
"int8_t *has_keyframe;",
"url_fseek(bc, filesize-12, SEEK_SET);",
"url_fseek(bc, f... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
45
],
[
47
... |
24,293 | static int dump_ppc_insns (CPUPPCState *env)
{
opc_handler_t **table, *handler;
uint8_t opc1, opc2, opc3;
printf("Instructions set:\n");
/* opc1 is 6 bits long */
for (opc1 = 0x00; opc1 < 0x40; opc1++) {
table = env->opcodes;
handler = table[opc1];
if (is_indirect_... | true | qemu | 25ba3a681213390e9212dbc987d61843c3b41d5b | static int dump_ppc_insns (CPUPPCState *env)
{
opc_handler_t **table, *handler;
uint8_t opc1, opc2, opc3;
printf("Instructions set:\n");
for (opc1 = 0x00; opc1 < 0x40; opc1++) {
table = env->opcodes;
handler = table[opc1];
if (is_indirect_opcode(handler)) {
... | {
"code": [
"static int dump_ppc_insns (CPUPPCState *env)"
],
"line_no": [
1
]
} | static int FUNC_0 (CPUPPCState *VAR_0)
{
opc_handler_t **table, *handler;
uint8_t opc1, opc2, opc3;
printf("Instructions set:\n");
for (opc1 = 0x00; opc1 < 0x40; opc1++) {
table = VAR_0->opcodes;
handler = table[opc1];
if (is_indirect_opcode(handler)) {
... | [
"static int FUNC_0 (CPUPPCState *VAR_0)\n{",
"opc_handler_t **table, *handler;",
"uint8_t opc1, opc2, opc3;",
"printf(\"Instructions set:\\n\");",
"for (opc1 = 0x00; opc1 < 0x40; opc1++) {",
"table = VAR_0->opcodes;",
"handler = table[opc1];",
"if (is_indirect_opcode(handler)) {",
"for (opc2 = 0; op... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47,
49,
51... |
24,295 | static int get_packet_size(const uint8_t *buf, int size)
{
int score, fec_score, dvhs_score;
if (size < (TS_FEC_PACKET_SIZE * 5 + 1))
return AVERROR_INVALIDDATA;
score = analyze(buf, size, TS_PACKET_SIZE, NULL);
dvhs_score = analyze(buf, size, TS_DVHS_PACKET_SIZE, NULL);
fec_... | true | FFmpeg | 1509c018bd5b054a2354e20021ccbac9c934d213 | static int get_packet_size(const uint8_t *buf, int size)
{
int score, fec_score, dvhs_score;
if (size < (TS_FEC_PACKET_SIZE * 5 + 1))
return AVERROR_INVALIDDATA;
score = analyze(buf, size, TS_PACKET_SIZE, NULL);
dvhs_score = analyze(buf, size, TS_DVHS_PACKET_SIZE, NULL);
fec_... | {
"code": [
" score = analyze(buf, size, TS_PACKET_SIZE, NULL);",
" dvhs_score = analyze(buf, size, TS_DVHS_PACKET_SIZE, NULL);",
" fec_score = analyze(buf, size, TS_FEC_PACKET_SIZE, NULL);"
],
"line_no": [
15,
17,
19
]
} | static int FUNC_0(const uint8_t *VAR_0, int VAR_1)
{
int VAR_2, VAR_3, VAR_4;
if (VAR_1 < (TS_FEC_PACKET_SIZE * 5 + 1))
return AVERROR_INVALIDDATA;
VAR_2 = analyze(VAR_0, VAR_1, TS_PACKET_SIZE, NULL);
VAR_4 = analyze(VAR_0, VAR_1, TS_DVHS_PACKET_SIZE, NULL);
VAR_3 = analyze(... | [
"static int FUNC_0(const uint8_t *VAR_0, int VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4;",
"if (VAR_1 < (TS_FEC_PACKET_SIZE * 5 + 1))\nreturn AVERROR_INVALIDDATA;",
"VAR_2 = analyze(VAR_0, VAR_1, TS_PACKET_SIZE, NULL);",
"VAR_4 = analyze(VAR_0, VAR_1, TS_DVHS_PACKET_SIZE, NULL);",
"VAR_3 = analyze(VAR_0, ... | [
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
27,
29
],
[
31,
33
],
[
35,
37
],
[
39,
41
],
[
43
]
] |
24,296 | static void matroska_execute_seekhead(MatroskaDemuxContext *matroska)
{
EbmlList *seekhead_list = &matroska->seekhead;
MatroskaSeekhead *seekhead = seekhead_list->elem;
int64_t before_pos = avio_tell(matroska->ctx->pb);
int i;
// we should not do any seeking in the streaming case
if (!m... | true | FFmpeg | faaec4676cb4c7a2303d50df66c6290bc96a7657 | static void matroska_execute_seekhead(MatroskaDemuxContext *matroska)
{
EbmlList *seekhead_list = &matroska->seekhead;
MatroskaSeekhead *seekhead = seekhead_list->elem;
int64_t before_pos = avio_tell(matroska->ctx->pb);
int i;
if (!matroska->ctx->pb->seekable ||
(matroska->ctx... | {
"code": [
" MatroskaSeekhead *seekhead = seekhead_list->elem;"
],
"line_no": [
7
]
} | static void FUNC_0(MatroskaDemuxContext *VAR_0)
{
EbmlList *seekhead_list = &VAR_0->seekhead;
MatroskaSeekhead *seekhead = seekhead_list->elem;
int64_t before_pos = avio_tell(VAR_0->ctx->pb);
int VAR_1;
if (!VAR_0->ctx->pb->seekable ||
(VAR_0->ctx->flags & AVFMT_FLAG_IGNIDX))
... | [
"static void FUNC_0(MatroskaDemuxContext *VAR_0)\n{",
"EbmlList *seekhead_list = &VAR_0->seekhead;",
"MatroskaSeekhead *seekhead = seekhead_list->elem;",
"int64_t before_pos = avio_tell(VAR_0->ctx->pb);",
"int VAR_1;",
"if (!VAR_0->ctx->pb->seekable ||\n(VAR_0->ctx->flags & AVFMT_FLAG_IGNIDX))\nreturn;",
... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17,
19,
21
],
[
25
],
[
27,
29
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
[
49
],
[
51
]
] |
24,297 | static inline void do_rfi(CPUPPCState *env, target_ulong nip, target_ulong msr,
target_ulong msrm, int keep_msrh)
{
CPUState *cs = CPU(ppc_env_get_cpu(env));
#if defined(TARGET_PPC64)
if (msr_is_64bit(env, msr)) {
nip = (uint64_t)nip;
msr &= (uint64_t)msrm;
} else {... | true | qemu | cd0c6f473532bfaf20a095bc90a18e45162981b5 | static inline void do_rfi(CPUPPCState *env, target_ulong nip, target_ulong msr,
target_ulong msrm, int keep_msrh)
{
CPUState *cs = CPU(ppc_env_get_cpu(env));
#if defined(TARGET_PPC64)
if (msr_is_64bit(env, msr)) {
nip = (uint64_t)nip;
msr &= (uint64_t)msrm;
} else {... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1, target_ulong VAR_2,
target_ulong VAR_3, int VAR_4)
{
CPUState *cs = CPU(ppc_env_get_cpu(VAR_0));
#if defined(TARGET_PPC64)
if (msr_is_64bit(VAR_0, VAR_2)) {
VAR_1 = (uint64_t)VAR_1;
VAR_2 &= (uint64_t)VAR... | [
"static inline void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1, target_ulong VAR_2,\ntarget_ulong VAR_3, int VAR_4)\n{",
"CPUState *cs = CPU(ppc_env_get_cpu(VAR_0));",
"#if defined(TARGET_PPC64)\nif (msr_is_64bit(VAR_0, VAR_2)) {",
"VAR_1 = (uint64_t)VAR_1;",
"VAR_2 &= (uint64_t)VAR_3;",
"} else {",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5,
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16,
17
],
[
18
],
[
19,
21
],
[
22
],
[
23,
24
],
[
... |
24,298 | static void mmio_interface_realize(DeviceState *dev, Error **errp)
{
MMIOInterface *s = MMIO_INTERFACE(dev);
DPRINTF("realize from 0x%" PRIX64 " to 0x%" PRIX64 " map host pointer"
" %p\n", s->start, s->end, s->host_ptr);
if (!s->host_ptr) {
error_setg(errp, "host_ptr property m... | true | qemu | a808c0865b720e22ca2929ec3d362d4610fbad51 | static void mmio_interface_realize(DeviceState *dev, Error **errp)
{
MMIOInterface *s = MMIO_INTERFACE(dev);
DPRINTF("realize from 0x%" PRIX64 " to 0x%" PRIX64 " map host pointer"
" %p\n", s->start, s->end, s->host_ptr);
if (!s->host_ptr) {
error_setg(errp, "host_ptr property m... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
MMIOInterface *s = MMIO_INTERFACE(VAR_0);
DPRINTF("realize from 0x%" PRIX64 " to 0x%" PRIX64 " map host pointer"
" %p\n", s->start, s->end, s->host_ptr);
if (!s->host_ptr) {
error_setg(VAR_1, "host_ptr property must be set... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"MMIOInterface *s = MMIO_INTERFACE(VAR_0);",
"DPRINTF(\"realize from 0x%\" PRIX64 \" to 0x%\" PRIX64 \" map host pointer\"\n\" %p\\n\", s->start, s->end, s->host_ptr);",
"if (!s->host_ptr) {",
"error_setg(VAR_1, \"host_ptr property must be set\");"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17
],
[
20
],
[
24
],
[
26
],
[
29
],
[
33,
35
],
[
37
],
[
39
],
[
41
]
] |
24,299 | static void load_cursor(VmncContext *c, const uint8_t *src)
{
int i, j, p;
const int bpp = c->bpp2;
uint8_t *dst8 = c->curbits;
uint16_t *dst16 = (uint16_t *)c->curbits;
uint32_t *dst32 = (uint32_t *)c->curbits;
for (j = 0; j < c->cur_h; j++) {
for (i = 0; i < c... | true | FFmpeg | 61cd19b8bc32185c8caf64d89d1b0909877a0707 | static void load_cursor(VmncContext *c, const uint8_t *src)
{
int i, j, p;
const int bpp = c->bpp2;
uint8_t *dst8 = c->curbits;
uint16_t *dst16 = (uint16_t *)c->curbits;
uint32_t *dst32 = (uint32_t *)c->curbits;
for (j = 0; j < c->cur_h; j++) {
for (i = 0; i < c... | {
"code": [
"static void load_cursor(VmncContext *c, const uint8_t *src)",
" p = vmnc_get_pixel(src, bpp, c->bigendian);",
" src += bpp;",
" p = vmnc_get_pixel(src, bpp, c->bigendian);",
" src += bpp;",
" src += bpp;"
],
"line_no": [
... | static void FUNC_0(VmncContext *VAR_0, const uint8_t *VAR_1)
{
int VAR_2, VAR_3, VAR_4;
const int VAR_5 = VAR_0->bpp2;
uint8_t *dst8 = VAR_0->curbits;
uint16_t *dst16 = (uint16_t *)VAR_0->curbits;
uint32_t *dst32 = (uint32_t *)VAR_0->curbits;
for (VAR_3 = 0; VAR_3 < VAR_... | [
"static void FUNC_0(VmncContext *VAR_0, const uint8_t *VAR_1)\n{",
"int VAR_2, VAR_3, VAR_4;",
"const int VAR_5 = VAR_0->bpp2;",
"uint8_t *dst8 = VAR_0->curbits;",
"uint16_t *dst16 = (uint16_t *)VAR_0->curbits;",
"uint32_t *dst32 = (uint32_t *)VAR_0->curbits;",
"for (VAR_3 = 0; VAR_3 < V... | [
1,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29,
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
24,300 | PCIDevice *pci_ne2000_init(PCIBus *bus, NICInfo *nd, int devfn)
{
PCINE2000State *d;
NE2000State *s;
uint8_t *pci_conf;
d = (PCINE2000State *)pci_register_device(bus,
"NE2000", sizeof(PCINE2000State),
de... | true | qemu | b946a1533209f61a93e34898aebb5b43154b99c3 | PCIDevice *pci_ne2000_init(PCIBus *bus, NICInfo *nd, int devfn)
{
PCINE2000State *d;
NE2000State *s;
uint8_t *pci_conf;
d = (PCINE2000State *)pci_register_device(bus,
"NE2000", sizeof(PCINE2000State),
de... | {
"code": [
" ne2000_receive, ne2000_can_receive, s);",
" ne2000_receive, ne2000_can_receive, s);"
],
"line_no": [
51,
51
]
} | PCIDevice *FUNC_0(PCIBus *bus, NICInfo *nd, int devfn)
{
PCINE2000State *d;
NE2000State *s;
uint8_t *pci_conf;
d = (PCINE2000State *)pci_register_device(bus,
"NE2000", sizeof(PCINE2000State),
devfn,
... | [
"PCIDevice *FUNC_0(PCIBus *bus, NICInfo *nd, int devfn)\n{",
"PCINE2000State *d;",
"NE2000State *s;",
"uint8_t *pci_conf;",
"d = (PCINE2000State *)pci_register_device(bus,\n\"NE2000\", sizeof(PCINE2000State),\ndevfn,\nNULL, NULL);",
"pci_conf = d->dev.config;",
"pci_config_set_vendor_id(pci_conf, PCI_VE... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15,
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49,... |
24,301 | av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx)
{
int i, j;
ff_check_alignment();
#if CONFIG_ENCODERS
if (avctx->bits_per_raw_sample == 10) {
c->fdct = ff_jpeg_fdct_islow_10;
c->fdct248 = ff_fdct248_islow_10;
} else {
if(avctx->dct_algo==FF_DCT_... | false | FFmpeg | 28f9ab7029bd1a02f659995919f899f84ee7361b | av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx)
{
int i, j;
ff_check_alignment();
#if CONFIG_ENCODERS
if (avctx->bits_per_raw_sample == 10) {
c->fdct = ff_jpeg_fdct_islow_10;
c->fdct248 = ff_fdct248_islow_10;
} else {
if(avctx->dct_algo==FF_DCT_... | {
"code": [],
"line_no": []
} | av_cold void FUNC_0(DSPContext* c, AVCodecContext *avctx)
{
int VAR_0, VAR_1;
ff_check_alignment();
#if CONFIG_ENCODERS
if (avctx->bits_per_raw_sample == 10) {
c->fdct = ff_jpeg_fdct_islow_10;
c->fdct248 = ff_fdct248_islow_10;
} else {
if(avctx->dct_algo==FF_DCT_F... | [
"av_cold void FUNC_0(DSPContext* c, AVCodecContext *avctx)\n{",
"int VAR_0, VAR_1;",
"ff_check_alignment();",
"#if CONFIG_ENCODERS\nif (avctx->bits_per_raw_sample == 10) {",
"c->fdct = ff_jpeg_fdct_islow_10;",
"c->fdct248 = ff_fdct248_islow_10;",
"} else {",
"if(avctx->dct_algo==FF_DCT_FASTINT) {",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
... |
24,302 | static int dash_flush(AVFormatContext *s, int final, int stream)
{
DASHContext *c = s->priv_data;
int i, ret = 0;
const char *proto = avio_find_protocol_name(s->filename);
int use_rename = proto && !strcmp(proto, "file");
int cur_flush_segment_index = 0;
if (stream >= 0)
cur_... | false | FFmpeg | d24e08e978792e09d212018677d1c0b8208ecef8 | static int dash_flush(AVFormatContext *s, int final, int stream)
{
DASHContext *c = s->priv_data;
int i, ret = 0;
const char *proto = avio_find_protocol_name(s->filename);
int use_rename = proto && !strcmp(proto, "file");
int cur_flush_segment_index = 0;
if (stream >= 0)
cur_... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int VAR_2)
{
DASHContext *c = VAR_0->priv_data;
int VAR_3, VAR_4 = 0;
const char *VAR_5 = avio_find_protocol_name(VAR_0->filename);
int VAR_6 = VAR_5 && !strcmp(VAR_5, "file");
int VAR_7 = 0;
if (VAR_2 >= 0)
VAR_7 = c->stre... | [
"static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int VAR_2)\n{",
"DASHContext *c = VAR_0->priv_data;",
"int VAR_3, VAR_4 = 0;",
"const char *VAR_5 = avio_find_protocol_name(VAR_0->filename);",
"int VAR_6 = VAR_5 && !strcmp(VAR_5, \"file\");",
"int VAR_7 = 0;",
"if (VAR_2 >= 0)\nVAR_7 = c->streams[V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19,
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37,
39
],
[
49
],
[
51,
53
],
[
59,
61
],
[
63
],
[
67... |
24,303 | static int stream_set_speed(BlockJob *job, int64_t value)
{
StreamBlockJob *s = container_of(job, StreamBlockJob, common);
if (value < 0) {
return -EINVAL;
}
ratelimit_set_speed(&s->limit, value / BDRV_SECTOR_SIZE);
return 0;
}
| false | qemu | 9e6636c72d8d6f0605e23ed820c8487686882b12 | static int stream_set_speed(BlockJob *job, int64_t value)
{
StreamBlockJob *s = container_of(job, StreamBlockJob, common);
if (value < 0) {
return -EINVAL;
}
ratelimit_set_speed(&s->limit, value / BDRV_SECTOR_SIZE);
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(BlockJob *VAR_0, int64_t VAR_1)
{
StreamBlockJob *s = container_of(VAR_0, StreamBlockJob, common);
if (VAR_1 < 0) {
return -EINVAL;
}
ratelimit_set_speed(&s->limit, VAR_1 / BDRV_SECTOR_SIZE);
return 0;
}
| [
"static int FUNC_0(BlockJob *VAR_0, int64_t VAR_1)\n{",
"StreamBlockJob *s = container_of(VAR_0, StreamBlockJob, common);",
"if (VAR_1 < 0) {",
"return -EINVAL;",
"}",
"ratelimit_set_speed(&s->limit, VAR_1 / BDRV_SECTOR_SIZE);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
24,304 | static void cirrus_update_memory_access(CirrusVGAState *s)
{
unsigned mode;
if ((s->sr[0x17] & 0x44) == 0x44) {
goto generic_io;
} else if (s->cirrus_srcptr != s->cirrus_srcptr_end) {
goto generic_io;
} else {
if ((s->gr[0x0B] & 0x14) == 0x14) {
goto generic_io;
... | false | qemu | 1dcea8e82b1d7795e6719a8ac8762993fc1ed4b3 | static void cirrus_update_memory_access(CirrusVGAState *s)
{
unsigned mode;
if ((s->sr[0x17] & 0x44) == 0x44) {
goto generic_io;
} else if (s->cirrus_srcptr != s->cirrus_srcptr_end) {
goto generic_io;
} else {
if ((s->gr[0x0B] & 0x14) == 0x14) {
goto generic_io;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(CirrusVGAState *VAR_0)
{
unsigned VAR_1;
if ((VAR_0->sr[0x17] & 0x44) == 0x44) {
goto generic_io;
} else if (VAR_0->cirrus_srcptr != VAR_0->cirrus_srcptr_end) {
goto generic_io;
} else {
if ((VAR_0->gr[0x0B] & 0x14) == 0x14) {
goto generic_io;
... | [
"static void FUNC_0(CirrusVGAState *VAR_0)\n{",
"unsigned VAR_1;",
"if ((VAR_0->sr[0x17] & 0x44) == 0x44) {",
"goto generic_io;",
"} else if (VAR_0->cirrus_srcptr != VAR_0->cirrus_srcptr_end) {",
"goto generic_io;",
"} else {",
"if ((VAR_0->gr[0x0B] & 0x14) == 0x14) {",
"goto generic_io;",
"} else... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45... |
24,305 | void put_pixels16_xy2_altivec(uint8_t * block, const uint8_t * pixels, int line_size, int h)
{
POWERPC_TBL_DECLARE(altivec_put_pixels16_xy2_num, 1);
#ifdef ALTIVEC_USE_REFERENCE_C_CODE
int j;
POWERPC_TBL_START_COUNT(altivec_put_pixels16_xy2_num, 1);
for (j = 0; j < 4; j++) {
int i;
const u... | false | FFmpeg | e45a2872fafe631c14aee9f79d0963d68c4fc1fd | void put_pixels16_xy2_altivec(uint8_t * block, const uint8_t * pixels, int line_size, int h)
{
POWERPC_TBL_DECLARE(altivec_put_pixels16_xy2_num, 1);
#ifdef ALTIVEC_USE_REFERENCE_C_CODE
int j;
POWERPC_TBL_START_COUNT(altivec_put_pixels16_xy2_num, 1);
for (j = 0; j < 4; j++) {
int i;
const u... | {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t * VAR_0, const uint8_t * VAR_1, int VAR_2, int VAR_3)
{
POWERPC_TBL_DECLARE(altivec_put_pixels16_xy2_num, 1);
#ifdef ALTIVEC_USE_REFERENCE_C_CODE
int j;
POWERPC_TBL_START_COUNT(altivec_put_pixels16_xy2_num, 1);
for (j = 0; j < 4; j++) {
int VAR_4;
const uint32_t a = (((... | [
"void FUNC_0(uint8_t * VAR_0, const uint8_t * VAR_1, int VAR_2, int VAR_3)\n{",
"POWERPC_TBL_DECLARE(altivec_put_pixels16_xy2_num, 1);",
"#ifdef ALTIVEC_USE_REFERENCE_C_CODE\nint j;",
"POWERPC_TBL_START_COUNT(altivec_put_pixels16_xy2_num, 1);",
"for (j = 0; j < 4; j++) {",
"int VAR_4;",
"const uint32_t ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23,
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,... |
24,306 | static void omap_lpg_update(struct omap_lpg_s *s)
{
int64_t on, period = 1, ticks = 1000;
static const int per[8] = { 1, 2, 4, 8, 12, 16, 20, 24 };
if (~s->control & (1 << 6)) /* LPGRES */
on = 0;
else if (s->control & (1 << 7)) /* PERM_ON */
on = period;
else {
... | false | qemu | a89f364ae8740dfc31b321eed9ee454e996dc3c1 | static void omap_lpg_update(struct omap_lpg_s *s)
{
int64_t on, period = 1, ticks = 1000;
static const int per[8] = { 1, 2, 4, 8, 12, 16, 20, 24 };
if (~s->control & (1 << 6))
on = 0;
else if (s->control & (1 << 7))
on = period;
else {
period = muldiv64(ti... | {
"code": [],
"line_no": []
} | static void FUNC_0(struct omap_lpg_s *VAR_0)
{
int64_t on, period = 1, ticks = 1000;
static const int VAR_1[8] = { 1, 2, 4, 8, 12, 16, 20, 24 };
if (~VAR_0->control & (1 << 6))
on = 0;
else if (VAR_0->control & (1 << 7))
on = period;
else {
period = muldiv... | [
"static void FUNC_0(struct omap_lpg_s *VAR_0)\n{",
"int64_t on, period = 1, ticks = 1000;",
"static const int VAR_1[8] = { 1, 2, 4, 8, 12, 16, 20, 24 };",
"if (~VAR_0->control & (1 << 6))\non = 0;",
"else if (VAR_0->control & (1 << 7))\non = period;",
"else {",
"period = muldiv64(ticks, VAR_1[VAR_0->con... | [
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
],
[
33
],
[
35,
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51... |
24,307 | START_TEST(vararg_number)
{
QObject *obj;
QInt *qint;
QFloat *qfloat;
int value = 0x2342;
int64_t value64 = 0x2342342343LL;
double valuef = 2.323423423;
obj = qobject_from_jsonf("%d", value);
fail_unless(obj != NULL);
fail_unless(qobject_type(obj) == QTYPE_QINT);
q... | false | qemu | ef76dc59fa5203d146a2acf85a0ad5a5971a4824 | START_TEST(vararg_number)
{
QObject *obj;
QInt *qint;
QFloat *qfloat;
int value = 0x2342;
int64_t value64 = 0x2342342343LL;
double valuef = 2.323423423;
obj = qobject_from_jsonf("%d", value);
fail_unless(obj != NULL);
fail_unless(qobject_type(obj) == QTYPE_QINT);
q... | {
"code": [],
"line_no": []
} | FUNC_0(VAR_0)
{
QObject *obj;
QInt *qint;
QFloat *qfloat;
int VAR_1 = 0x2342;
int64_t value64 = 0x2342342343LL;
double VAR_2 = 2.323423423;
obj = qobject_from_jsonf("%d", VAR_1);
fail_unless(obj != NULL);
fail_unless(qobject_type(obj) == QTYPE_QINT);
qint = qobject... | [
"FUNC_0(VAR_0)\n{",
"QObject *obj;",
"QInt *qint;",
"QFloat *qfloat;",
"int VAR_1 = 0x2342;",
"int64_t value64 = 0x2342342343LL;",
"double VAR_2 = 2.323423423;",
"obj = qobject_from_jsonf(\"%d\", VAR_1);",
"fail_unless(obj != NULL);",
"fail_unless(qobject_type(obj) == QTYPE_QINT);",
"qint = qobj... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
51
],
[
55
... |
24,310 | static int kvm_sclp_service_call(S390CPU *cpu, struct kvm_run *run,
uint16_t ipbh0)
{
CPUS390XState *env = &cpu->env;
uint32_t sccb;
uint64_t code;
int r = 0;
cpu_synchronize_state(CPU(cpu));
if (env->psw.mask & PSW_MASK_PSTATE) {
enter_pgmchec... | false | qemu | a0fa2cb8ccf0b73cfd3ac01d557401a2303c0de4 | static int kvm_sclp_service_call(S390CPU *cpu, struct kvm_run *run,
uint16_t ipbh0)
{
CPUS390XState *env = &cpu->env;
uint32_t sccb;
uint64_t code;
int r = 0;
cpu_synchronize_state(CPU(cpu));
if (env->psw.mask & PSW_MASK_PSTATE) {
enter_pgmchec... | {
"code": [],
"line_no": []
} | static int FUNC_0(S390CPU *VAR_0, struct kvm_run *VAR_1,
uint16_t VAR_2)
{
CPUS390XState *env = &VAR_0->env;
uint32_t sccb;
uint64_t code;
int VAR_3 = 0;
cpu_synchronize_state(CPU(VAR_0));
if (env->psw.mask & PSW_MASK_PSTATE) {
enter_pgmcheck(V... | [
"static int FUNC_0(S390CPU *VAR_0, struct kvm_run *VAR_1,\nuint16_t VAR_2)\n{",
"CPUS390XState *env = &VAR_0->env;",
"uint32_t sccb;",
"uint64_t code;",
"int VAR_3 = 0;",
"cpu_synchronize_state(CPU(VAR_0));",
"if (env->psw.mask & PSW_MASK_PSTATE) {",
"enter_pgmcheck(VAR_0, PGM_PRIVILEGED);",
"return... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
]
] |
24,313 | static int qcow2_check(BlockDriverState *bs, BdrvCheckResult *result)
{
return qcow2_check_refcounts(bs, result);
}
| false | qemu | 4534ff5426afeeae5238ba10a696cafa9a0168ee | static int qcow2_check(BlockDriverState *bs, BdrvCheckResult *result)
{
return qcow2_check_refcounts(bs, result);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1)
{
return qcow2_check_refcounts(VAR_0, VAR_1);
}
| [
"static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1)\n{",
"return qcow2_check_refcounts(VAR_0, VAR_1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
24,314 | static void qemu_tcg_init_vcpu(CPUState *cpu)
{
char thread_name[VCPU_THREAD_NAME_SIZE];
static QemuCond *tcg_halt_cond;
static QemuThread *tcg_cpu_thread;
tcg_cpu_address_space_init(cpu, cpu->as);
/* share a single thread for all cpus with TCG */
if (!tcg_cpu_thread) {
cpu->... | false | qemu | 56943e8cc14b7eeeab67d1942fa5d8bcafe3e53f | static void qemu_tcg_init_vcpu(CPUState *cpu)
{
char thread_name[VCPU_THREAD_NAME_SIZE];
static QemuCond *tcg_halt_cond;
static QemuThread *tcg_cpu_thread;
tcg_cpu_address_space_init(cpu, cpu->as);
if (!tcg_cpu_thread) {
cpu->thread = g_malloc0(sizeof(QemuThread));
... | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUState *VAR_0)
{
char VAR_1[VCPU_THREAD_NAME_SIZE];
static QemuCond *VAR_2;
static QemuThread *VAR_3;
tcg_cpu_address_space_init(VAR_0, VAR_0->as);
if (!VAR_3) {
VAR_0->thread = g_malloc0(sizeof(QemuThread));
VAR_0->halt_cond = g_malloc0(sizeof(... | [
"static void FUNC_0(CPUState *VAR_0)\n{",
"char VAR_1[VCPU_THREAD_NAME_SIZE];",
"static QemuCond *VAR_2;",
"static QemuThread *VAR_3;",
"tcg_cpu_address_space_init(VAR_0, VAR_0->as);",
"if (!VAR_3) {",
"VAR_0->thread = g_malloc0(sizeof(QemuThread));",
"VAR_0->halt_cond = g_malloc0(sizeof(QemuCond));",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33,
35
],
[
37,
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
24,316 | AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base, int64_t start, int64_t end, const char *title)
{
AVChapter *chapter = NULL;
int i;
for(i=0; i<s->nb_chapters; i++)
if(s->chapters[i]->id == id)
chapter = s->chapters[i];
if(!chapter){
chap... | false | FFmpeg | 570745cc5114ea13d0054f73776533f5e6e538f8 | AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base, int64_t start, int64_t end, const char *title)
{
AVChapter *chapter = NULL;
int i;
for(i=0; i<s->nb_chapters; i++)
if(s->chapters[i]->id == id)
chapter = s->chapters[i];
if(!chapter){
chap... | {
"code": [],
"line_no": []
} | AVChapter *FUNC_0(AVFormatContext *s, int id, AVRational time_base, int64_t start, int64_t end, const char *title)
{
AVChapter *chapter = NULL;
int VAR_0;
for(VAR_0=0; VAR_0<s->nb_chapters; VAR_0++)
if(s->chapters[VAR_0]->id == id)
chapter = s->chapters[VAR_0];
if(!chapter... | [
"AVChapter *FUNC_0(AVFormatContext *s, int id, AVRational time_base, int64_t start, int64_t end, const char *title)\n{",
"AVChapter *chapter = NULL;",
"int VAR_0;",
"for(VAR_0=0; VAR_0<s->nb_chapters; VAR_0++)",
"if(s->chapters[VAR_0]->id == id)\nchapter = s->chapters[VAR_0];",
"if(!chapter){",
"chapter... | [
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
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
]
] |
24,317 | int bdrv_pread(BlockDriverState *bs, int64_t offset, void *buf, int bytes)
{
QEMUIOVector qiov;
struct iovec iov = {
.iov_base = (void *)buf,
.iov_len = bytes,
};
int ret;
if (bytes < 0) {
return -EINVAL;
}
qemu_iovec_init_external(&qiov, &iov, 1);
... | false | qemu | 61007b316cd71ee7333ff7a0a749a8949527575f | int bdrv_pread(BlockDriverState *bs, int64_t offset, void *buf, int bytes)
{
QEMUIOVector qiov;
struct iovec iov = {
.iov_base = (void *)buf,
.iov_len = bytes,
};
int ret;
if (bytes < 0) {
return -EINVAL;
}
qemu_iovec_init_external(&qiov, &iov, 1);
... | {
"code": [],
"line_no": []
} | int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, void *VAR_2, int VAR_3)
{
QEMUIOVector qiov;
struct iovec VAR_4 = {
.iov_base = (void *)VAR_2,
.iov_len = VAR_3,
};
int VAR_5;
if (VAR_3 < 0) {
return -EINVAL;
}
qemu_iovec_init_external(&qiov, &VAR_4, ... | [
"int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, void *VAR_2, int VAR_3)\n{",
"QEMUIOVector qiov;",
"struct iovec VAR_4 = {",
".iov_base = (void *)VAR_2,\n.iov_len = VAR_3,\n};",
"int VAR_5;",
"if (VAR_3 < 0) {",
"return -EINVAL;",
"}",
"qemu_iovec_init_external(&qiov, &VAR_4, 1);",
"VAR_5 = bd... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11,
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
]
] |
24,319 | static void gen_dmtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
{
const char *rn = "invalid";
if (sel != 0)
check_insn(ctx, ISA_MIPS64);
if (use_icount)
gen_io_start();
switch (reg) {
case 0:
switch (sel) {
case 0:
gen_helper_mtc0_ind... | false | qemu | 90f12d735d66ac1196d9a2bced039a432eefc03d | static void gen_dmtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
{
const char *rn = "invalid";
if (sel != 0)
check_insn(ctx, ISA_MIPS64);
if (use_icount)
gen_io_start();
switch (reg) {
case 0:
switch (sel) {
case 0:
gen_helper_mtc0_ind... | {
"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);
if (use_icount)
gen_io_start();
switch (VAR_2) {
case 0:
switch (VAR_3) {
case 0:
gen... | [
"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);",
"if (use_icount)\ngen_io_start();",
"switch (VAR_2) {",
"case 0:\nswitch (VAR_3) {",
"case 0:\ngen_helper_mtc0_index(cpu_env, VAR_1);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15,
17
],
[
21
],
[
23,
25
],
[
27,
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
51
],
[
53
],
[
55... |
24,321 | void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi,
ISADevice **rtc_state,
bool create_fdctrl,
bool no_vmport,
uint32 hpet_irqs)
{
int i;
DriveInfo *fd[MAX_FD];
DeviceState *hpet = NULL;
... | false | qemu | 5039d6e23586fe6bbedc5e4fe302b48a66890ade | void pc_basic_device_init(ISABus *isa_bus, qemu_irq *gsi,
ISADevice **rtc_state,
bool create_fdctrl,
bool no_vmport,
uint32 hpet_irqs)
{
int i;
DriveInfo *fd[MAX_FD];
DeviceState *hpet = NULL;
... | {
"code": [],
"line_no": []
} | void FUNC_0(ISABus *VAR_0, qemu_irq *VAR_1,
ISADevice **VAR_2,
bool VAR_3,
bool VAR_4,
uint32 VAR_5)
{
int VAR_6;
DriveInfo *fd[MAX_FD];
DeviceState *hpet = NULL;
int VAR_7 = 0;
qemu_irq... | [
"void FUNC_0(ISABus *VAR_0, qemu_irq *VAR_1,\nISADevice **VAR_2,\nbool VAR_3,\nbool VAR_4,\nuint32 VAR_5)\n{",
"int VAR_6;",
"DriveInfo *fd[MAX_FD];",
"DeviceState *hpet = NULL;",
"int VAR_7 = 0;",
"qemu_irq pit_alt_irq = NULL;",
"qemu_irq rtc_irq = NULL;",
"qemu_irq *a20_line;",
"ISADevice *i8042, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45
],
[
61
],
[
65
... |
24,322 | static int qemu_gluster_parseuri(GlusterConf *gconf, const char *filename)
{
URI *uri;
QueryParams *qp = NULL;
bool is_unix = false;
int ret = 0;
uri = uri_parse(filename);
if (!uri) {
return -EINVAL;
}
/* transport */
if (!strcmp(uri->scheme, "gluster")) {
... | false | qemu | 24897a767bd778fc6a050537d024565f9272cd06 | static int qemu_gluster_parseuri(GlusterConf *gconf, const char *filename)
{
URI *uri;
QueryParams *qp = NULL;
bool is_unix = false;
int ret = 0;
uri = uri_parse(filename);
if (!uri) {
return -EINVAL;
}
if (!strcmp(uri->scheme, "gluster")) {
gconf->tr... | {
"code": [],
"line_no": []
} | static int FUNC_0(GlusterConf *VAR_0, const char *VAR_1)
{
URI *uri;
QueryParams *qp = NULL;
bool is_unix = false;
int VAR_2 = 0;
uri = uri_parse(VAR_1);
if (!uri) {
return -EINVAL;
}
if (!strcmp(uri->scheme, "gluster")) {
VAR_0->transport = g_strdup(... | [
"static int FUNC_0(GlusterConf *VAR_0, const char *VAR_1)\n{",
"URI *uri;",
"QueryParams *qp = NULL;",
"bool is_unix = false;",
"int VAR_2 = 0;",
"uri = uri_parse(VAR_1);",
"if (!uri) {",
"return -EINVAL;",
"}",
"if (!strcmp(uri->scheme, \"gluster\")) {",
"VAR_0->transport = g_strdup(\"tcp\");",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
24,323 | static void omap_prcm_write(void *opaque, hwaddr addr,
uint64_t value, unsigned size)
{
struct omap_prcm_s *s = (struct omap_prcm_s *) opaque;
if (size != 4) {
omap_badwidth_write32(opaque, addr, value);
return;
}
switch (addr) {
case 0x000: /... | false | qemu | a89f364ae8740dfc31b321eed9ee454e996dc3c1 | static void omap_prcm_write(void *opaque, hwaddr addr,
uint64_t value, unsigned size)
{
struct omap_prcm_s *s = (struct omap_prcm_s *) opaque;
if (size != 4) {
omap_badwidth_write32(opaque, addr, value);
return;
}
switch (addr) {
case 0x000:
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, hwaddr VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
struct omap_prcm_s *VAR_4 = (struct omap_prcm_s *) VAR_0;
if (VAR_3 != 4) {
omap_badwidth_write32(VAR_0, VAR_1, VAR_2);
return;
}
switch (VAR_1) {
case 0x000:
... | [
"static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"struct omap_prcm_s *VAR_4 = (struct omap_prcm_s *) VAR_0;",
"if (VAR_3 != 4) {",
"omap_badwidth_write32(VAR_0, VAR_1, VAR_2);",
"return;",
"}",
"switch (VAR_1) {",
"case 0x000:\ncase 0x054:\ncase 0x084:\ncase 0x1e4:\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25,
27,
29,
31,
33,
35,
37,
39,
41,
43,
45,
47,
49,
51,
53
],
[
55
],
[
59,
61
],
[
63
],
... |
24,324 | int kvm_arch_init(KVMState *s, int smp_cpus)
{
int ret;
struct utsname utsname;
uname(&utsname);
lm_capable_kernel = strcmp(utsname.machine, "x86_64") == 0;
/* create vm86 tss. KVM uses vm86 mode to emulate 16-bit code
* directly. In order to use vm86 mode, a TSS is needed. Sinc... | false | qemu | c3a3a7d356c4df2fe145037172ae52cba5f545a5 | int kvm_arch_init(KVMState *s, int smp_cpus)
{
int ret;
struct utsname utsname;
uname(&utsname);
lm_capable_kernel = strcmp(utsname.machine, "x86_64") == 0;
ret = kvm_check_extension(s, KVM_CAP_SET_TSS_ADDR);
if (ret <= 0) {
fprintf(stderr, "kvm does not sup... | {
"code": [],
"line_no": []
} | int FUNC_0(KVMState *VAR_0, int VAR_1)
{
int VAR_2;
struct VAR_3 VAR_3;
uname(&VAR_3);
lm_capable_kernel = strcmp(VAR_3.machine, "x86_64") == 0;
VAR_2 = kvm_check_extension(VAR_0, KVM_CAP_SET_TSS_ADDR);
if (VAR_2 <= 0) {
fprintf(stderr, "kvm does not support... | [
"int FUNC_0(KVMState *VAR_0, int VAR_1)\n{",
"int VAR_2;",
"struct VAR_3 VAR_3;",
"uname(&VAR_3);",
"lm_capable_kernel = strcmp(VAR_3.machine, \"x86_64\") == 0;",
"VAR_2 = kvm_check_extension(VAR_0, KVM_CAP_SET_TSS_ADDR);",
"if (VAR_2 <= 0) {",
"fprintf(stderr, \"kvm does not support KVM_CAP_SET_TSS_A... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
57
],
[
59
],
[
61
],
[
63
],
[
65
],
[
67
],
[
69
],
[
71
],
[
75
],
[
77... |
24,325 | static void bootp_reply(Slirp *slirp, const struct bootp_t *bp)
{
BOOTPClient *bc = NULL;
struct mbuf *m;
struct bootp_t *rbp;
struct sockaddr_in saddr, daddr;
struct in_addr preq_addr;
int dhcp_msg_type, val;
uint8_t *q;
uint8_t client_ethaddr[ETH_ALEN];
/* extract exact... | false | qemu | 5379229a2708df3a1506113315214c3ce5325859 | static void bootp_reply(Slirp *slirp, const struct bootp_t *bp)
{
BOOTPClient *bc = NULL;
struct mbuf *m;
struct bootp_t *rbp;
struct sockaddr_in saddr, daddr;
struct in_addr preq_addr;
int dhcp_msg_type, val;
uint8_t *q;
uint8_t client_ethaddr[ETH_ALEN];
dhcp_decod... | {
"code": [],
"line_no": []
} | static void FUNC_0(Slirp *VAR_0, const struct bootp_t *VAR_1)
{
BOOTPClient *bc = NULL;
struct mbuf *VAR_2;
struct bootp_t *VAR_3;
struct sockaddr_in VAR_4, VAR_5;
struct in_addr VAR_6;
int VAR_7, VAR_8;
uint8_t *q;
uint8_t client_ethaddr[ETH_ALEN];
dhcp_decode(VAR_... | [
"static void FUNC_0(Slirp *VAR_0, const struct bootp_t *VAR_1)\n{",
"BOOTPClient *bc = NULL;",
"struct mbuf *VAR_2;",
"struct bootp_t *VAR_3;",
"struct sockaddr_in VAR_4, VAR_5;",
"struct in_addr VAR_6;",
"int VAR_7, VAR_8;",
"uint8_t *q;",
"uint8_t client_ethaddr[ETH_ALEN];",
"dhcp_decode(VAR_1, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
27
],
[
29,
31
],
[
33,
35
],
[
39,
41
],
[
45,
47,
49
],
[
55
],
[
59
],
[... |
24,327 | static void hmp_logfile(Monitor *mon, const QDict *qdict)
{
qemu_set_log_filename(qdict_get_str(qdict, "filename"));
}
| true | qemu | daa76aa416b1e18ab1fac650ff53d966d8f21f68 | static void hmp_logfile(Monitor *mon, const QDict *qdict)
{
qemu_set_log_filename(qdict_get_str(qdict, "filename"));
}
| {
"code": [
" qemu_set_log_filename(qdict_get_str(qdict, \"filename\"));"
],
"line_no": [
5
]
} | static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
qemu_set_log_filename(qdict_get_str(VAR_1, "filename"));
}
| [
"static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"qemu_set_log_filename(qdict_get_str(VAR_1, \"filename\"));",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
24,329 | iscsi_abort_task_cb(struct iscsi_context *iscsi, int status, void *command_data,
void *private_data)
{
IscsiAIOCB *acb = (IscsiAIOCB *)private_data;
scsi_free_scsi_task(acb->task);
acb->task = NULL;
}
| true | qemu | b20909195745c34a819aed14ae996b60ab0f591f | iscsi_abort_task_cb(struct iscsi_context *iscsi, int status, void *command_data,
void *private_data)
{
IscsiAIOCB *acb = (IscsiAIOCB *)private_data;
scsi_free_scsi_task(acb->task);
acb->task = NULL;
}
| {
"code": [
" IscsiAIOCB *acb = (IscsiAIOCB *)private_data;",
" scsi_free_scsi_task(acb->task);",
" acb->task = NULL;",
" scsi_free_scsi_task(acb->task);",
" acb->task = NULL;"
],
"line_no": [
7,
11,
13,
11,
13
]
} | FUNC_0(struct iscsi_context *VAR_0, int VAR_1, void *VAR_2,
void *VAR_3)
{
IscsiAIOCB *acb = (IscsiAIOCB *)VAR_3;
scsi_free_scsi_task(acb->task);
acb->task = NULL;
}
| [
"FUNC_0(struct iscsi_context *VAR_0, int VAR_1, void *VAR_2,\nvoid *VAR_3)\n{",
"IscsiAIOCB *acb = (IscsiAIOCB *)VAR_3;",
"scsi_free_scsi_task(acb->task);",
"acb->task = NULL;",
"}"
] | [
0,
1,
1,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
]
] |
24,330 | int bdrv_all_delete_snapshot(const char *name, BlockDriverState **first_bad_bs,
Error **err)
{
int ret = 0;
BlockDriverState *bs;
BdrvNextIterator *it = NULL;
QEMUSnapshotInfo sn1, *snapshot = &sn1;
while (ret == 0 && (it = bdrv_next(it, &bs))) {
AioCon... | true | qemu | 88be7b4be4aa17c88247e162bdd7577ea79db94f | int bdrv_all_delete_snapshot(const char *name, BlockDriverState **first_bad_bs,
Error **err)
{
int ret = 0;
BlockDriverState *bs;
BdrvNextIterator *it = NULL;
QEMUSnapshotInfo sn1, *snapshot = &sn1;
while (ret == 0 && (it = bdrv_next(it, &bs))) {
AioCon... | {
"code": [
" BdrvNextIterator *it = NULL;",
" BdrvNextIterator *it = NULL;",
" BdrvNextIterator *it = NULL;",
" BlockDriverState *bs;",
" BdrvNextIterator *it = NULL;",
" BdrvNextIterator *it = NULL;",
" BdrvNextIterator *it = NULL;",
" while (ret == 0 && (it =... | int FUNC_0(const char *VAR_0, BlockDriverState **VAR_1,
Error **VAR_2)
{
int VAR_3 = 0;
BlockDriverState *bs;
BdrvNextIterator *it = NULL;
QEMUSnapshotInfo sn1, *snapshot = &sn1;
while (VAR_3 == 0 && (it = bdrv_next(it, &bs))) {
AioContext *ctx = bdrv_g... | [
"int FUNC_0(const char *VAR_0, BlockDriverState **VAR_1,\nError **VAR_2)\n{",
"int VAR_3 = 0;",
"BlockDriverState *bs;",
"BdrvNextIterator *it = NULL;",
"QEMUSnapshotInfo sn1, *snapshot = &sn1;",
"while (VAR_3 == 0 && (it = bdrv_next(it, &bs))) {",
"AioContext *ctx = bdrv_get_aio_context(bs);",
"aio_c... | [
0,
0,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
]
] |
24,332 | int ff_hevc_split_packet(HEVCContext *s, HEVCPacket *pkt, const uint8_t *buf, int length,
AVCodecContext *avctx, int is_nalff, int nal_length_size)
{
int consumed, ret = 0;
pkt->nb_nals = 0;
while (length >= 4) {
HEVCNAL *nal;
int extract_length = 0;
... | false | FFmpeg | 4791a910c0dc3dd5861d38202457c9fb9bf1154c | int ff_hevc_split_packet(HEVCContext *s, HEVCPacket *pkt, const uint8_t *buf, int length,
AVCodecContext *avctx, int is_nalff, int nal_length_size)
{
int consumed, ret = 0;
pkt->nb_nals = 0;
while (length >= 4) {
HEVCNAL *nal;
int extract_length = 0;
... | {
"code": [],
"line_no": []
} | int FUNC_0(HEVCContext *VAR_0, HEVCPacket *VAR_1, const uint8_t *VAR_2, int VAR_3,
AVCodecContext *VAR_4, int VAR_5, int VAR_6)
{
int VAR_7, VAR_8 = 0;
VAR_1->nb_nals = 0;
while (VAR_3 >= 4) {
HEVCNAL *nal;
int VAR_9 = 0;
if (VAR_5) {
... | [
"int FUNC_0(HEVCContext *VAR_0, HEVCPacket *VAR_1, const uint8_t *VAR_2, int VAR_3,\nAVCodecContext *VAR_4, int VAR_5, int VAR_6)\n{",
"int VAR_7, VAR_8 = 0;",
"VAR_1->nb_nals = 0;",
"while (VAR_3 >= 4) {",
"HEVCNAL *nal;",
"int VAR_9 = 0;",
"if (VAR_5) {",
"int VAR_10;",
"for (VAR_10 = 0; 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
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
... |
24,333 | static int nvme_start_ctrl(NvmeCtrl *n)
{
uint32_t page_bits = NVME_CC_MPS(n->bar.cc) + 12;
uint32_t page_size = 1 << page_bits;
if (n->cq[0] || n->sq[0] || !n->bar.asq || !n->bar.acq ||
n->bar.asq & (page_size - 1) || n->bar.acq & (page_size - 1) ||
NVME_CC_MPS(n->bar.cc) < ... | true | qemu | 1ee24514aed34760fb2863d98bea3a1b705d9c9f | static int nvme_start_ctrl(NvmeCtrl *n)
{
uint32_t page_bits = NVME_CC_MPS(n->bar.cc) + 12;
uint32_t page_size = 1 << page_bits;
if (n->cq[0] || n->sq[0] || !n->bar.asq || !n->bar.acq ||
n->bar.asq & (page_size - 1) || n->bar.acq & (page_size - 1) ||
NVME_CC_MPS(n->bar.cc) < ... | {
"code": [
" if (n->cq[0] || n->sq[0] || !n->bar.asq || !n->bar.acq ||",
" n->bar.asq & (page_size - 1) || n->bar.acq & (page_size - 1) ||",
" NVME_CC_MPS(n->bar.cc) < NVME_CAP_MPSMIN(n->bar.cap) ||",
" NVME_CC_MPS(n->bar.cc) > NVME_CAP_MPSMAX(n->bar.cap) ||",
... | static int FUNC_0(NvmeCtrl *VAR_0)
{
uint32_t page_bits = NVME_CC_MPS(VAR_0->bar.cc) + 12;
uint32_t page_size = 1 << page_bits;
if (VAR_0->cq[0] || VAR_0->sq[0] || !VAR_0->bar.asq || !VAR_0->bar.acq ||
VAR_0->bar.asq & (page_size - 1) || VAR_0->bar.acq & (page_size - 1) ||
NV... | [
"static int FUNC_0(NvmeCtrl *VAR_0)\n{",
"uint32_t page_bits = NVME_CC_MPS(VAR_0->bar.cc) + 12;",
"uint32_t page_size = 1 << page_bits;",
"if (VAR_0->cq[0] || VAR_0->sq[0] || !VAR_0->bar.asq || !VAR_0->bar.acq ||\nVAR_0->bar.asq & (page_size - 1) || VAR_0->bar.acq & (page_size - 1) ||\nNVME_CC_MPS(VAR_0->bar.... | [
0,
0,
0,
1,
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
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
49,
51
],
[
55
],
[
57... |
24,335 | static int mxf_decrypt_triplet(AVFormatContext *s, AVPacket *pkt, KLVPacket *klv)
{
static const uint8_t checkv[16] = {0x43, 0x48, 0x55, 0x4b, 0x43, 0x48, 0x55, 0x4b, 0x43, 0x48, 0x55, 0x4b, 0x43, 0x48, 0x55, 0x4b};
MXFContext *mxf = s->priv_data;
AVIOContext *pb = s->pb;
int64_t end = avio_tell(pb... | true | FFmpeg | 0c46e958d1fd3817b8e9fa048d0450d509c80378 | static int mxf_decrypt_triplet(AVFormatContext *s, AVPacket *pkt, KLVPacket *klv)
{
static const uint8_t checkv[16] = {0x43, 0x48, 0x55, 0x4b, 0x43, 0x48, 0x55, 0x4b, 0x43, 0x48, 0x55, 0x4b, 0x43, 0x48, 0x55, 0x4b};
MXFContext *mxf = s->priv_data;
AVIOContext *pb = s->pb;
int64_t end = avio_tell(pb... | {
"code": [
" av_get_packet(pb, pkt, size);",
" pkt->size = orig_size;"
],
"line_no": [
97,
107
]
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, KLVPacket *VAR_2)
{
static const uint8_t VAR_3[16] = {0x43, 0x48, 0x55, 0x4b, 0x43, 0x48, 0x55, 0x4b, 0x43, 0x48, 0x55, 0x4b, 0x43, 0x48, 0x55, 0x4b};
MXFContext *mxf = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
int64_t end = avio_tell(... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, KLVPacket *VAR_2)\n{",
"static const uint8_t VAR_3[16] = {0x43, 0x48, 0x55, 0x4b, 0x43, 0x48, 0x55, 0x4b, 0x43, 0x48, 0x55, 0x4b, 0x43, 0x48, 0x55, 0x4b};",
"MXFContext *mxf = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"int64_t end = avio_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
],
[... |
24,337 | void qemu_aio_wait_end(void)
{
}
| true | qemu | baf35cb90204d75404892aa4e52628ae7a00669b | void qemu_aio_wait_end(void)
{
}
| {
"code": [
"void qemu_aio_wait_end(void)",
"void qemu_aio_wait_end(void)",
"void qemu_aio_wait_end(void)"
],
"line_no": [
1,
1,
1
]
} | void FUNC_0(void)
{
}
| [
"void FUNC_0(void)\n{",
"}"
] | [
1,
0
] | [
[
1,
3
],
[
5
]
] |
24,338 | void avfilter_register_all(void)
{
static int initialized;
if (initialized)
return;
initialized = 1;
REGISTER_FILTER (ACONVERT, aconvert, af);
REGISTER_FILTER (AFIFO, afifo, af);
REGISTER_FILTER (AFORMAT, aformat, af);
REGISTER_FILTER (AMERGE, ... | true | FFmpeg | e4e02a7d4726e9370127741eb2873d6671d3f0c3 | void avfilter_register_all(void)
{
static int initialized;
if (initialized)
return;
initialized = 1;
REGISTER_FILTER (ACONVERT, aconvert, af);
REGISTER_FILTER (AFIFO, afifo, af);
REGISTER_FILTER (AFORMAT, aformat, af);
REGISTER_FILTER (AMERGE, ... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
static int VAR_0;
if (VAR_0)
return;
VAR_0 = 1;
REGISTER_FILTER (ACONVERT, aconvert, af);
REGISTER_FILTER (AFIFO, afifo, af);
REGISTER_FILTER (AFORMAT, aformat, af);
REGISTER_FILTER (AMERGE, amerge, af);
REGIST... | [
"void FUNC_0(void)\n{",
"static int VAR_0;",
"if (VAR_0)\nreturn;",
"VAR_0 = 1;",
"REGISTER_FILTER (ACONVERT, aconvert, af);",
"REGISTER_FILTER (AFIFO, afifo, af);",
"REGISTER_FILTER (AFORMAT, aformat, af);",
"REGISTER_FILTER (AMERGE, amerge, af);",
"REGISTER_FILT... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
... |
24,341 | void show_banner(void)
{
fprintf(stderr, "%s version " FFMPEG_VERSION ", Copyright (c) %d-%d the FFmpeg developers\n",
program_name, program_birth_year, this_year);
fprintf(stderr, " built on %s %s with %s %s\n",
__DATE__, __TIME__, CC_TYPE, CC_VERSION);
fprintf(stderr, " con... | false | FFmpeg | 29ba091136a5e04574f7bfc1b17536c923958f6f | void show_banner(void)
{
fprintf(stderr, "%s version " FFMPEG_VERSION ", Copyright (c) %d-%d the FFmpeg developers\n",
program_name, program_birth_year, this_year);
fprintf(stderr, " built on %s %s with %s %s\n",
__DATE__, __TIME__, CC_TYPE, CC_VERSION);
fprintf(stderr, " con... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
fprintf(stderr, "%s version " FFMPEG_VERSION ", Copyright (c) %d-%d the FFmpeg developers\n",
program_name, program_birth_year, this_year);
fprintf(stderr, " built on %s %s with %s %s\n",
__DATE__, __TIME__, CC_TYPE, CC_VERSION);
fprintf(stderr, " configur... | [
"void FUNC_0(void)\n{",
"fprintf(stderr, \"%s version \" FFMPEG_VERSION \", Copyright (c) %d-%d the FFmpeg developers\\n\",\nprogram_name, program_birth_year, this_year);",
"fprintf(stderr, \" built on %s %s with %s %s\\n\",\n__DATE__, __TIME__, CC_TYPE, CC_VERSION);",
"fprintf(stderr, \" configuration: \" ... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
24,342 | static int decode_delta_block (bit_buffer_t *bitbuf,
uint8_t *current, uint8_t *previous, int pitch,
svq1_pmv_t *motion, int x, int y) {
uint32_t bit_cache;
uint32_t block_type;
int result = 0;
/* get block type */
bit_cache = get_bit_cache (bitbuf);
bit_cache >>= (32 - 3);
block_typ... | false | FFmpeg | 82dd7d0dec29ee59af91ce18c29eb151b363ff37 | static int decode_delta_block (bit_buffer_t *bitbuf,
uint8_t *current, uint8_t *previous, int pitch,
svq1_pmv_t *motion, int x, int y) {
uint32_t bit_cache;
uint32_t block_type;
int result = 0;
bit_cache = get_bit_cache (bitbuf);
bit_cache >>= (32 - 3);
block_type = block_type_tab... | {
"code": [],
"line_no": []
} | static int FUNC_0 (bit_buffer_t *VAR_0,
uint8_t *VAR_1, uint8_t *VAR_2, int VAR_3,
svq1_pmv_t *VAR_4, int VAR_5, int VAR_6) {
uint32_t bit_cache;
uint32_t block_type;
int VAR_7 = 0;
bit_cache = get_bit_cache (VAR_0);
bit_cache >>= (32 - 3);
block_type = block_type_table[bit_cache]... | [
"static int FUNC_0 (bit_buffer_t *VAR_0,\nuint8_t *VAR_1, uint8_t *VAR_2, int VAR_3,\nsvq1_pmv_t *VAR_4, int VAR_5, int VAR_6) {",
"uint32_t bit_cache;",
"uint32_t block_type;",
"int\t VAR_7 = 0;",
"bit_cache = get_bit_cache (VAR_0);",
"bit_cache\t>>= (32 - 3);",
"block_type\t = block_type_table[bit_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
21
],
[
23
],
[
25
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51,
53
],
[
55
... |
24,343 | static int pci_ich9_uninit(PCIDevice *dev)
{
struct AHCIPCIState *d;
d = DO_UPCAST(struct AHCIPCIState, card, dev);
if (msi_enabled(dev)) {
msi_uninit(dev);
}
qemu_unregister_reset(ahci_reset, d);
ahci_uninit(&d->ahci);
return 0;
}
| true | qemu | 45fe15c25a5c9feea6e0f78434f5e9f632de9d94 | static int pci_ich9_uninit(PCIDevice *dev)
{
struct AHCIPCIState *d;
d = DO_UPCAST(struct AHCIPCIState, card, dev);
if (msi_enabled(dev)) {
msi_uninit(dev);
}
qemu_unregister_reset(ahci_reset, d);
ahci_uninit(&d->ahci);
return 0;
}
| {
"code": [
" if (msi_enabled(dev)) {",
" msi_uninit(dev);"
],
"line_no": [
11,
13
]
} | static int FUNC_0(PCIDevice *VAR_0)
{
struct AHCIPCIState *VAR_1;
VAR_1 = DO_UPCAST(struct AHCIPCIState, card, VAR_0);
if (msi_enabled(VAR_0)) {
msi_uninit(VAR_0);
}
qemu_unregister_reset(ahci_reset, VAR_1);
ahci_uninit(&VAR_1->ahci);
return 0;
}
| [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"struct AHCIPCIState *VAR_1;",
"VAR_1 = DO_UPCAST(struct AHCIPCIState, card, VAR_0);",
"if (msi_enabled(VAR_0)) {",
"msi_uninit(VAR_0);",
"}",
"qemu_unregister_reset(ahci_reset, VAR_1);",
"ahci_uninit(&VAR_1->ahci);",
"return 0;",
"}"
] | [
0,
0,
0,
1,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
]
] |
24,344 | void powerpc_display_perf_report(void)
{
int i;
#ifndef POWERPC_PERF_USE_PMC
fprintf(stderr, "PowerPC performance report\n Values are from the Time Base register, and represent 4 bus cycles.\n");
#else /* POWERPC_PERF_USE_PMC */
fprintf(stderr, "PowerPC performance report\n Values are from the PMC registers... | false | FFmpeg | e45a2872fafe631c14aee9f79d0963d68c4fc1fd | void powerpc_display_perf_report(void)
{
int i;
#ifndef POWERPC_PERF_USE_PMC
fprintf(stderr, "PowerPC performance report\n Values are from the Time Base register, and represent 4 bus cycles.\n");
#else
fprintf(stderr, "PowerPC performance report\n Values are from the PMC registers, and represent whatever t... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
int VAR_0;
#ifndef POWERPC_PERF_USE_PMC
fprintf(stderr, "PowerPC performance report\n Values are from the Time Base register, and represent 4 bus cycles.\n");
#else
fprintf(stderr, "PowerPC performance report\n Values are from the PMC registers, and represent whatever the registers are ... | [
"void FUNC_0(void)\n{",
"int VAR_0;",
"#ifndef POWERPC_PERF_USE_PMC\nfprintf(stderr, \"PowerPC performance report\\n Values are from the Time Base register, and represent 4 bus cycles.\\n\");",
"#else\nfprintf(stderr, \"PowerPC performance report\\n Values are from the PMC registers, and represent whatever th... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11,
13
],
[
15,
17
],
[
19
],
[
21,
23,
25,
27,
29,
31,
33,
35
],
[
37,
39,
41,
43,
45,
47,
49,
51,
53
],
[
55,
57,
59,
61,
63,... |
24,345 | void ccw_dstream_init(CcwDataStream *cds, CCW1 const *ccw, ORB const *orb)
{
/*
* We don't support MIDA (an optional facility) yet and we
* catch this earlier. Just for expressing the precondition.
*/
g_assert(!(orb->ctrl1 & ORB_CTRL1_MASK_MIDAW));
cds->flags = (orb->ctrl0 & ORB_CTRL0_MASK_I2... | true | qemu | 62a2554ec2630896d1299e1a282a64c7f3b00da0 | void ccw_dstream_init(CcwDataStream *cds, CCW1 const *ccw, ORB const *orb)
{
g_assert(!(orb->ctrl1 & ORB_CTRL1_MASK_MIDAW));
cds->flags = (orb->ctrl0 & ORB_CTRL0_MASK_I2K ? CDS_F_I2K : 0) |
(orb->ctrl0 & ORB_CTRL0_MASK_C64 ? CDS_F_C64 : 0) |
(ccw->flags & CCW_FLAG_IDA ?... | {
"code": [],
"line_no": []
} | void FUNC_0(CcwDataStream *VAR_0, CCW1 const *VAR_1, ORB const *VAR_2)
{
g_assert(!(VAR_2->ctrl1 & ORB_CTRL1_MASK_MIDAW));
VAR_0->flags = (VAR_2->ctrl0 & ORB_CTRL0_MASK_I2K ? CDS_F_I2K : 0) |
(VAR_2->ctrl0 & ORB_CTRL0_MASK_C64 ? CDS_F_C64 : 0) |
(VAR_1->flags & CCW_FLAG... | [
"void FUNC_0(CcwDataStream *VAR_0, CCW1 const *VAR_1, ORB const *VAR_2)\n{",
"g_assert(!(VAR_2->ctrl1 & ORB_CTRL1_MASK_MIDAW));",
"VAR_0->flags = (VAR_2->ctrl0 & ORB_CTRL0_MASK_I2K ? CDS_F_I2K : 0) |\n(VAR_2->ctrl0 & ORB_CTRL0_MASK_C64 ? CDS_F_C64 : 0) |\n(VAR_1->flags & CCW_FLAG_IDA ? CDS_F_IDA : 0);",
"VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
7
],
[
8,
9,
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
]
] |
24,346 | static int msrle_decode_pal4(AVCodecContext *avctx, AVPicture *pic,
const uint8_t *data, int data_size)
{
int stream_ptr = 0;
unsigned char rle_code;
unsigned char extra_byte, odd_pixel;
unsigned char stream_byte;
int pixel_ptr = 0;
int row_dec = pic->linesi... | true | FFmpeg | 7d78a964413a50409b1db441d966cd2810eb6c86 | static int msrle_decode_pal4(AVCodecContext *avctx, AVPicture *pic,
const uint8_t *data, int data_size)
{
int stream_ptr = 0;
unsigned char rle_code;
unsigned char extra_byte, odd_pixel;
unsigned char stream_byte;
int pixel_ptr = 0;
int row_dec = pic->linesi... | {
"code": [
" int pixel_ptr = 0;"
],
"line_no": [
15
]
} | static int FUNC_0(AVCodecContext *VAR_0, AVPicture *VAR_1,
const uint8_t *VAR_2, int VAR_3)
{
int VAR_4 = 0;
unsigned char VAR_5;
unsigned char VAR_6, VAR_7;
unsigned char VAR_8;
int VAR_9 = 0;
int VAR_10 = VAR_1->linesize[0];
int VAR_11 = (VAR_0->heigh... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVPicture *VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{",
"int VAR_4 = 0;",
"unsigned char VAR_5;",
"unsigned char VAR_6, VAR_7;",
"unsigned char VAR_8;",
"int VAR_9 = 0;",
"int VAR_10 = VAR_1->linesize[0];",
"int VAR_11 = (VAR_0->height - 1) * VAR_10;",
"int... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[... |
24,347 | static int vnc_update_client(VncState *vs, int has_dirty, bool sync)
{
vs->has_dirty += has_dirty;
if (vs->need_update && vs->ioc != NULL) {
VncDisplay *vd = vs->vd;
VncJob *job;
int y;
int height, width;
int n = 0;
if (vs->output.offset && !vs->audio_c... | true | qemu | 5a693efda84d7df5136cc2bd31c959bb1530b0c9 | static int vnc_update_client(VncState *vs, int has_dirty, bool sync)
{
vs->has_dirty += has_dirty;
if (vs->need_update && vs->ioc != NULL) {
VncDisplay *vd = vs->vd;
VncJob *job;
int y;
int height, width;
int n = 0;
if (vs->output.offset && !vs->audio_c... | {
"code": [
" if (vs->need_update && vs->ioc != NULL) {"
],
"line_no": [
7
]
} | static int FUNC_0(VncState *VAR_0, int VAR_1, bool VAR_2)
{
VAR_0->VAR_1 += VAR_1;
if (VAR_0->need_update && VAR_0->ioc != NULL) {
VncDisplay *vd = VAR_0->vd;
VncJob *job;
int VAR_3;
int VAR_4, VAR_5;
int VAR_6 = 0;
if (VAR_0->output.VAR_10 && !VAR_0->a... | [
"static int FUNC_0(VncState *VAR_0, int VAR_1, bool VAR_2)\n{",
"VAR_0->VAR_1 += VAR_1;",
"if (VAR_0->need_update && VAR_0->ioc != NULL) {",
"VncDisplay *vd = VAR_0->vd;",
"VncJob *job;",
"int VAR_3;",
"int VAR_4, VAR_5;",
"int VAR_6 = 0;",
"if (VAR_0->output.VAR_10 && !VAR_0->audio_cap && !VAR_0->f... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
25
],
[
29,
31
],
[
47
],
[
51
],
[
53
],
[
57
],
[
59
],
[
61
],
[
63
],
[
65,
67,
69
... |
24,348 | static void vc1_mc_4mv_chroma4(VC1Context *v)
{
MpegEncContext *s = &v->s;
DSPContext *dsp = &v->s.dsp;
uint8_t *srcU, *srcV;
int uvsrc_x, uvsrc_y;
int uvmx_field[4], uvmy_field[4];
int i, off, tx, ty;
int fieldmv = v->blk_mv_type[s->block_index[0]];
static const int s_rndtblfie... | true | FFmpeg | bde6f6eadc24b372c12da2894f2ee0b86b5ff6a3 | static void vc1_mc_4mv_chroma4(VC1Context *v)
{
MpegEncContext *s = &v->s;
DSPContext *dsp = &v->s.dsp;
uint8_t *srcU, *srcV;
int uvsrc_x, uvsrc_y;
int uvmx_field[4], uvmy_field[4];
int i, off, tx, ty;
int fieldmv = v->blk_mv_type[s->block_index[0]];
static const int s_rndtblfie... | {
"code": [
" v_edge_pos--;"
],
"line_no": [
83
]
} | static void FUNC_0(VC1Context *VAR_0)
{
MpegEncContext *s = &VAR_0->s;
DSPContext *dsp = &VAR_0->s.dsp;
uint8_t *srcU, *srcV;
int VAR_1, VAR_2;
int VAR_3[4], VAR_4[4];
int VAR_13, VAR_6, VAR_7, VAR_8;
int VAR_9 = VAR_0->blk_mv_type[s->block_index[0]];
static const int VAR_10[16]... | [
"static void FUNC_0(VC1Context *VAR_0)\n{",
"MpegEncContext *s = &VAR_0->s;",
"DSPContext *dsp = &VAR_0->s.dsp;",
"uint8_t *srcU, *srcV;",
"int VAR_1, VAR_2;",
"int VAR_3[4], VAR_4[4];",
"int VAR_13, VAR_6, VAR_7, VAR_8;",
"int VAR_9 = VAR_0->blk_mv_type[s->block_index[0]];",
"static const int VAR_1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[... |
24,349 | static void vga_invalidate_display(void *opaque)
{
VGAState *s = (VGAState *)opaque;
s->last_width = -1;
s->last_height = -1;
}
| true | qemu | 0bd8246bfec1dfb2eb959f52db535572c0260f4c | static void vga_invalidate_display(void *opaque)
{
VGAState *s = (VGAState *)opaque;
s->last_width = -1;
s->last_height = -1;
}
| {
"code": [
" s->last_width = -1;",
" s->last_height = -1;"
],
"line_no": [
9,
11
]
} | static void FUNC_0(void *VAR_0)
{
VGAState *s = (VGAState *)VAR_0;
s->last_width = -1;
s->last_height = -1;
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"VGAState *s = (VGAState *)VAR_0;",
"s->last_width = -1;",
"s->last_height = -1;",
"}"
] | [
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
24,350 | static void virtio_setup(uint64_t dev_info)
{
struct schib schib;
int ssid;
bool found = false;
uint16_t dev_no;
/*
* We unconditionally enable mss support. In every sane configuration,
* this will succeed; and even if it doesn't, stsch_err() can deal
* with the consequence... | true | qemu | c9262e8a84a29f22fbb5edde5d17f4f6166d5ae1 | static void virtio_setup(uint64_t dev_info)
{
struct schib schib;
int ssid;
bool found = false;
uint16_t dev_no;
enable_mss_facility();
if (dev_info != -1) {
dev_no = dev_info & 0xffff;
debug_print_int("device no. ", dev_no);
blk_schid.ssid = (... | {
"code": [
" virtio_panic(\"No virtio-blk device found!\\n\");",
" virtio_panic(\"No valid hard disk detected.\\n\");"
],
"line_no": [
63,
75
]
} | static void FUNC_0(uint64_t VAR_0)
{
struct VAR_1 VAR_1;
int VAR_2;
bool found = false;
uint16_t dev_no;
enable_mss_facility();
if (VAR_0 != -1) {
dev_no = VAR_0 & 0xffff;
debug_print_int("device no. ", dev_no);
blk_schid.VAR_2 = (VAR_0 >> 16) ... | [
"static void FUNC_0(uint64_t VAR_0)\n{",
"struct VAR_1 VAR_1;",
"int VAR_2;",
"bool found = false;",
"uint16_t dev_no;",
"enable_mss_facility();",
"if (VAR_0 != -1) {",
"dev_no = VAR_0 & 0xffff;",
"debug_print_int(\"device no. \", dev_no);",
"blk_schid.VAR_2 = (VAR_0 >> 16) & 0x3;",
"debug_print... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
... |
24,352 | static void qemu_cleanup_net_client(NetClientState *nc)
{
QTAILQ_REMOVE(&net_clients, nc, next);
nc->info->cleanup(nc);
}
| true | qemu | cc2a90432d9cb7546a2c4360ad7200a2fb3af31a | static void qemu_cleanup_net_client(NetClientState *nc)
{
QTAILQ_REMOVE(&net_clients, nc, next);
nc->info->cleanup(nc);
}
| {
"code": [
" nc->info->cleanup(nc);"
],
"line_no": [
9
]
} | static void FUNC_0(NetClientState *VAR_0)
{
QTAILQ_REMOVE(&net_clients, VAR_0, next);
VAR_0->info->cleanup(VAR_0);
}
| [
"static void FUNC_0(NetClientState *VAR_0)\n{",
"QTAILQ_REMOVE(&net_clients, VAR_0, next);",
"VAR_0->info->cleanup(VAR_0);",
"}"
] | [
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
24,353 | static void tcg_out_op (TCGContext *s, int opc, const TCGArg *args,
const int *const_args)
{
int c;
switch (opc) {
case INDEX_op_exit_tb:
tcg_out_movi (s, TCG_TYPE_I64, TCG_REG_R3, args[0]);
tcg_out_b (s, 0, (tcg_target_long) tb_ret_addr);
break;
... | true | qemu | 828808f5ece20fd606218e000139799921c89d93 | static void tcg_out_op (TCGContext *s, int opc, const TCGArg *args,
const int *const_args)
{
int c;
switch (opc) {
case INDEX_op_exit_tb:
tcg_out_movi (s, TCG_TYPE_I64, TCG_REG_R3, args[0]);
tcg_out_b (s, 0, (tcg_target_long) tb_ret_addr);
break;
... | {
"code": [
" tcg_out_ldst (s, args[0], args[1], args[2], LWA, LWAX);",
" tcg_out_ldst (s, args[0], args[1], args[2], LD, LDX);",
" tcg_out_ldst (s, args[0], args[1], args[2], STD, STDX);"
],
"line_no": [
157,
163,
193
]
} | static void FUNC_0 (TCGContext *VAR_0, int VAR_1, const TCGArg *VAR_2,
const int *VAR_3)
{
int VAR_4;
switch (VAR_1) {
case INDEX_op_exit_tb:
tcg_out_movi (VAR_0, TCG_TYPE_I64, TCG_REG_R3, VAR_2[0]);
tcg_out_b (VAR_0, 0, (tcg_target_long) tb_ret_addr);
... | [
"static void FUNC_0 (TCGContext *VAR_0, int VAR_1, const TCGArg *VAR_2,\nconst int *VAR_3)\n{",
"int VAR_4;",
"switch (VAR_1) {",
"case INDEX_op_exit_tb:\ntcg_out_movi (VAR_0, TCG_TYPE_I64, TCG_REG_R3, VAR_2[0]);",
"tcg_out_b (VAR_0, 0, (tcg_target_long) tb_ret_addr);",
"break;",
"case INDEX_op_goto_tb:... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
1,
0... | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21,
23
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[
53... |
24,354 | static int socket_accept(int sock)
{
struct sockaddr_un addr;
socklen_t addrlen;
int ret;
addrlen = sizeof(addr);
do {
ret = accept(sock, (struct sockaddr *)&addr, &addrlen);
} while (ret == -1 && errno == EINTR);
g_assert_no_errno(ret);
close(sock);
return ret... | true | qemu | f8762027a33e2f5d0915c56a904962b1481f75c1 | static int socket_accept(int sock)
{
struct sockaddr_un addr;
socklen_t addrlen;
int ret;
addrlen = sizeof(addr);
do {
ret = accept(sock, (struct sockaddr *)&addr, &addrlen);
} while (ret == -1 && errno == EINTR);
g_assert_no_errno(ret);
close(sock);
return ret... | {
"code": [
" g_assert_no_errno(ret);"
],
"line_no": [
21
]
} | static int FUNC_0(int VAR_0)
{
struct sockaddr_un VAR_1;
socklen_t addrlen;
int VAR_2;
addrlen = sizeof(VAR_1);
do {
VAR_2 = accept(VAR_0, (struct sockaddr *)&VAR_1, &addrlen);
} while (VAR_2 == -1 && errno == EINTR);
g_assert_no_errno(VAR_2);
close(VAR_0);
ret... | [
"static int FUNC_0(int VAR_0)\n{",
"struct sockaddr_un VAR_1;",
"socklen_t addrlen;",
"int VAR_2;",
"addrlen = sizeof(VAR_1);",
"do {",
"VAR_2 = accept(VAR_0, (struct sockaddr *)&VAR_1, &addrlen);",
"} while (VAR_2 == -1 && errno == EINTR);",
"g_assert_no_errno(VAR_2);",
"close(VAR_0);",
"return... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
]
] |
24,355 | ivshmem_server_handle_new_conn(IvshmemServer *server)
{
IvshmemServerPeer *peer, *other_peer;
struct sockaddr_un unaddr;
socklen_t unaddr_len;
int newfd;
unsigned i;
/* accept the incoming connection */
unaddr_len = sizeof(unaddr);
newfd = qemu_accept(server->sock_fd,
... | true | qemu | 258133bda9a6f22ba436ef9b63b7c086cc80190b | ivshmem_server_handle_new_conn(IvshmemServer *server)
{
IvshmemServerPeer *peer, *other_peer;
struct sockaddr_un unaddr;
socklen_t unaddr_len;
int newfd;
unsigned i;
unaddr_len = sizeof(unaddr);
newfd = qemu_accept(server->sock_fd,
(struct sockaddr *)... | {
"code": [
" goto fail;"
],
"line_no": [
73
]
} | FUNC_0(IvshmemServer *VAR_0)
{
IvshmemServerPeer *peer, *other_peer;
struct sockaddr_un VAR_1;
socklen_t unaddr_len;
int VAR_2;
unsigned VAR_3;
unaddr_len = sizeof(VAR_1);
VAR_2 = qemu_accept(VAR_0->sock_fd,
(struct sockaddr *)&VAR_1, &unaddr_len);
... | [
"FUNC_0(IvshmemServer *VAR_0)\n{",
"IvshmemServerPeer *peer, *other_peer;",
"struct sockaddr_un VAR_1;",
"socklen_t unaddr_len;",
"int VAR_2;",
"unsigned VAR_3;",
"unaddr_len = sizeof(VAR_1);",
"VAR_2 = qemu_accept(VAR_0->sock_fd,\n(struct sockaddr *)&VAR_1, &unaddr_len);",
"if (VAR_2 < 0) {",
"IV... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
19
],
[
21,
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
45
],
[
47
],
[
57
],
[
59
],
[
61
],
[... |
24,357 | static int mjpegb_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
UINT8 *buf, int buf_size)
{
MJpegDecodeContext *s = avctx->priv_data;
UINT8 *buf_end, *buf_ptr;
int i;
AVPicture *picture = data;
GetBitContext hgb; ... | false | FFmpeg | 68f593b48433842f3407586679fe07f3e5199ab9 | static int mjpegb_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
UINT8 *buf, int buf_size)
{
MJpegDecodeContext *s = avctx->priv_data;
UINT8 *buf_end, *buf_ptr;
int i;
AVPicture *picture = data;
GetBitContext hgb; ... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
UINT8 *VAR_3, int VAR_4)
{
MJpegDecodeContext *s = VAR_0->priv_data;
UINT8 *buf_end, *buf_ptr;
int VAR_5;
AVPicture *picture = VAR_1;
GetBitContext hgb;
uint32... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nUINT8 *VAR_3, int VAR_4)\n{",
"MJpegDecodeContext *s = VAR_0->priv_data;",
"UINT8 *buf_end, *buf_ptr;",
"int VAR_5;",
"AVPicture *picture = VAR_1;",
"GetBitContext hgb;",
"uint32_t dqt_offs, dht_offs, sof_offs, sos_offs, second_field_o... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31,
33
],
[
37
],
[
39
],
[
43,
47
],
[
51
],
[
55
],
[
59,
61
],
[
63
],
[... |
24,358 | static int idcin_read_seek(AVFormatContext *s, int stream_index,
int64_t timestamp, int flags)
{
IdcinDemuxContext *idcin = s->priv_data;
if (idcin->first_pkt_pos > 0) {
int ret = avio_seek(s->pb, idcin->first_pkt_pos, SEEK_SET);
if (ret < 0)
retur... | true | FFmpeg | d1923d15a3544cbb94563a59e7169291db76b312 | static int idcin_read_seek(AVFormatContext *s, int stream_index,
int64_t timestamp, int flags)
{
IdcinDemuxContext *idcin = s->priv_data;
if (idcin->first_pkt_pos > 0) {
int ret = avio_seek(s->pb, idcin->first_pkt_pos, SEEK_SET);
if (ret < 0)
retur... | {
"code": [
" int ret = avio_seek(s->pb, idcin->first_pkt_pos, SEEK_SET);"
],
"line_no": [
13
]
} | static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,
int64_t VAR_2, int VAR_3)
{
IdcinDemuxContext *idcin = VAR_0->priv_data;
if (idcin->first_pkt_pos > 0) {
int VAR_4 = avio_seek(VAR_0->pb, idcin->first_pkt_pos, SEEK_SET);
if (VAR_4 < 0)
return VA... | [
"static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nint64_t VAR_2, int VAR_3)\n{",
"IdcinDemuxContext *idcin = VAR_0->priv_data;",
"if (idcin->first_pkt_pos > 0) {",
"int VAR_4 = avio_seek(VAR_0->pb, idcin->first_pkt_pos, SEEK_SET);",
"if (VAR_4 < 0)\nreturn VAR_4;",
"ff_update_cur_dts(VAR_0, VAR_0->st... | [
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
]
] |
24,359 | static int multiwrite_req_compare(const void *a, const void *b)
{
return (((BlockRequest*) a)->sector - ((BlockRequest*) b)->sector);
}
| true | qemu | 77be4366baface6613cfc312ba281f8e5860997c | static int multiwrite_req_compare(const void *a, const void *b)
{
return (((BlockRequest*) a)->sector - ((BlockRequest*) b)->sector);
}
| {
"code": [
" return (((BlockRequest*) a)->sector - ((BlockRequest*) b)->sector);"
],
"line_no": [
5
]
} | static int FUNC_0(const void *VAR_0, const void *VAR_1)
{
return (((BlockRequest*) VAR_0)->sector - ((BlockRequest*) VAR_1)->sector);
}
| [
"static int FUNC_0(const void *VAR_0, const void *VAR_1)\n{",
"return (((BlockRequest*) VAR_0)->sector - ((BlockRequest*) VAR_1)->sector);",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
24,360 | static int output_frame(H264Context *h, AVFrame *dst, H264Picture *srcp)
{
AVFrame *src = srcp->f;
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(src->format);
int i;
int ret = av_frame_ref(dst, src);
if (ret < 0)
return ret;
av_dict_set(&dst->metadata, "stereo_mode", ff_h264_sei_s... | true | FFmpeg | 1189af429211ac650aac730368a6cf5b23756605 | static int output_frame(H264Context *h, AVFrame *dst, H264Picture *srcp)
{
AVFrame *src = srcp->f;
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(src->format);
int i;
int ret = av_frame_ref(dst, src);
if (ret < 0)
return ret;
av_dict_set(&dst->metadata, "stereo_mode", ff_h264_sei_s... | {
"code": [],
"line_no": []
} | static int FUNC_0(H264Context *VAR_0, AVFrame *VAR_1, H264Picture *VAR_2)
{
AVFrame *src = VAR_2->f;
const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(src->format);
int VAR_4;
int VAR_5 = av_frame_ref(VAR_1, src);
if (VAR_5 < 0)
return VAR_5;
av_dict_set(&VAR_1->metadata, "stereo_mod... | [
"static int FUNC_0(H264Context *VAR_0, AVFrame *VAR_1, H264Picture *VAR_2)\n{",
"AVFrame *src = VAR_2->f;",
"const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(src->format);",
"int VAR_4;",
"int VAR_5 = av_frame_ref(VAR_1, src);",
"if (VAR_5 < 0)\nreturn VAR_5;",
"av_dict_set(&VAR_1->metadata, \"ster... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7,
8
],
[
9
],
[
10,
11
],
[
12,
13
],
[
14
],
[
15
],
[
16
],
[
17,
18
],
[
19
],
[
20
],
[
21
],
[
22
]
] |
24,361 | int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt)
{
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MJpegDecodeContext *s = avctx->priv_data;
const uint8_t *buf_end, *buf_ptr;
... | true | FFmpeg | 45fa03b1f9b0475df666f7592f250c37763b7d64 | int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt)
{
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MJpegDecodeContext *s = avctx->priv_data;
const uint8_t *buf_end, *buf_ptr;
... | {
"code": [
" for (p = 0; p<4; p++) {",
" for (p = 0; p < 4; p++) {",
" for (index=0; index<4; index++) {"
],
"line_no": [
477,
593,
647
]
} | int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
AVFrame *frame = VAR_1;
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
MJpegDecodeContext *s = VAR_0->priv_data;
const uint8_t *VAR_6, *buf_ptr;
const uint8_t ... | [
"int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"AVFrame *frame = VAR_1;",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"MJpegDecodeContext *s = VAR_0->priv_data;",
"const uint8_t *VAR_6, *buf_ptr;",
"const uint8_t *VAR_7;",
"int VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[... |
24,362 | static void a15_daughterboard_init(const VexpressMachineState *vms,
ram_addr_t ram_size,
const char *cpu_model,
qemu_irq *pic)
{
MemoryRegion *sysmem = get_system_memory();
MemoryRegion *ram = g_new(Me... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | static void a15_daughterboard_init(const VexpressMachineState *vms,
ram_addr_t ram_size,
const char *cpu_model,
qemu_irq *pic)
{
MemoryRegion *sysmem = get_system_memory();
MemoryRegion *ram = g_new(Me... | {
"code": [
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" ... | static void FUNC_0(const VexpressMachineState *VAR_0,
ram_addr_t VAR_1,
const char *VAR_2,
qemu_irq *VAR_3)
{
MemoryRegion *sysmem = get_system_memory();
MemoryRegion *ram = g_new(MemoryRegion, 1);
... | [
"static void FUNC_0(const VexpressMachineState *VAR_0,\nram_addr_t VAR_1,\nconst char *VAR_2,\nqemu_irq *VAR_3)\n{",
"MemoryRegion *sysmem = get_system_memory();",
"MemoryRegion *ram = g_new(MemoryRegion, 1);",
"MemoryRegion *sram = g_new(MemoryRegion, 1);",
"if (!VAR_2) {",
"VAR_2 = \"cortex-a15\";",
"... | [
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
],
[
27
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51,
53
],
[
57
],
[
63
],
[
87,... |
24,363 | static void dec_sl(DisasContext *dc)
{
if (dc->format == OP_FMT_RI) {
LOG_DIS("sli r%d, r%d, %d\n", dc->r1, dc->r0, dc->imm5);
} else {
LOG_DIS("sl r%d, r%d, r%d\n", dc->r2, dc->r0, dc->r1);
}
if (!(dc->env->features & LM32_FEATURE_SHIFT)) {
cpu_abort(dc->env, "hardware... | true | qemu | 3604a76fea6ff37738d4a8f596be38407be74a83 | static void dec_sl(DisasContext *dc)
{
if (dc->format == OP_FMT_RI) {
LOG_DIS("sli r%d, r%d, %d\n", dc->r1, dc->r0, dc->imm5);
} else {
LOG_DIS("sl r%d, r%d, r%d\n", dc->r2, dc->r0, dc->r1);
}
if (!(dc->env->features & LM32_FEATURE_SHIFT)) {
cpu_abort(dc->env, "hardware... | {
"code": [
" cpu_abort(dc->env, \"hardware shifter is not available\\n\");",
" } else {"
],
"line_no": [
19,
9
]
} | static void FUNC_0(DisasContext *VAR_0)
{
if (VAR_0->format == OP_FMT_RI) {
LOG_DIS("sli r%d, r%d, %d\n", VAR_0->r1, VAR_0->r0, VAR_0->imm5);
} else {
LOG_DIS("sl r%d, r%d, r%d\n", VAR_0->r2, VAR_0->r0, VAR_0->r1);
}
if (!(VAR_0->env->features & LM32_FEATURE_SHIFT)) {
c... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"if (VAR_0->format == OP_FMT_RI) {",
"LOG_DIS(\"sli r%d, r%d, %d\\n\", VAR_0->r1, VAR_0->r0, VAR_0->imm5);",
"} else {",
"LOG_DIS(\"sl r%d, r%d, r%d\\n\", VAR_0->r2, VAR_0->r0, VAR_0->r1);",
"}",
"if (!(VAR_0->env->features & LM32_FEATURE_SHIFT)) {",
"cpu_... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
24,365 | void qemu_iovec_init(QEMUIOVector *qiov, int alloc_hint)
{
qiov->iov = g_malloc(alloc_hint * sizeof(struct iovec));
qiov->niov = 0;
qiov->nalloc = alloc_hint;
qiov->size = 0;
}
| true | qemu | e1cf5582644ef63528993fb2b88dd3b43b9914c6 | void qemu_iovec_init(QEMUIOVector *qiov, int alloc_hint)
{
qiov->iov = g_malloc(alloc_hint * sizeof(struct iovec));
qiov->niov = 0;
qiov->nalloc = alloc_hint;
qiov->size = 0;
}
| {
"code": [
" qiov->iov = g_malloc(alloc_hint * sizeof(struct iovec));"
],
"line_no": [
5
]
} | void FUNC_0(QEMUIOVector *VAR_0, int VAR_1)
{
VAR_0->iov = g_malloc(VAR_1 * sizeof(struct iovec));
VAR_0->niov = 0;
VAR_0->nalloc = VAR_1;
VAR_0->size = 0;
}
| [
"void FUNC_0(QEMUIOVector *VAR_0, int VAR_1)\n{",
"VAR_0->iov = g_malloc(VAR_1 * sizeof(struct iovec));",
"VAR_0->niov = 0;",
"VAR_0->nalloc = VAR_1;",
"VAR_0->size = 0;",
"}"
] | [
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
24,366 | static int vp3_update_thread_context(AVCodecContext *dst, const AVCodecContext *src)
{
Vp3DecodeContext *s = dst->priv_data, *s1 = src->priv_data;
int qps_changed = 0, i, err;
#define copy_fields(to, from, start_field, end_field) memcpy(&to->start_field, &from->start_field, (char*)&to->end_field - (char*)... | true | FFmpeg | 247d30a7dba6684ccce4508424f35fd58465e535 | static int vp3_update_thread_context(AVCodecContext *dst, const AVCodecContext *src)
{
Vp3DecodeContext *s = dst->priv_data, *s1 = src->priv_data;
int qps_changed = 0, i, err;
#define copy_fields(to, from, start_field, end_field) memcpy(&to->start_field, &from->start_field, (char*)&to->end_field - (char*)... | {
"code": [
" copy_fields(s, s1, golden_frame, current_frame);"
],
"line_no": [
23
]
} | static int FUNC_0(AVCodecContext *VAR_0, const AVCodecContext *VAR_1)
{
Vp3DecodeContext *s = VAR_0->priv_data, *s1 = VAR_1->priv_data;
int VAR_2 = 0, VAR_3, VAR_4;
#define copy_fields(to, from, start_field, end_field) memcpy(&to->start_field, &from->start_field, (char*)&to->end_field - (char*)&to->start_... | [
"static int FUNC_0(AVCodecContext *VAR_0, const AVCodecContext *VAR_1)\n{",
"Vp3DecodeContext *s = VAR_0->priv_data, *s1 = VAR_1->priv_data;",
"int VAR_2 = 0, VAR_3, VAR_4;",
"#define copy_fields(to, from, start_field, end_field) memcpy(&to->start_field, &from->start_field, (char*)&to->end_field - (char*)&to-... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
15,
17,
19
],
[
21,
23
],
[
25
],
[
27
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[
53
],
... |
24,367 | static int write_reftable_entry(BlockDriverState *bs, int rt_index)
{
BDRVQcowState *s = bs->opaque;
uint64_t buf[RT_ENTRIES_PER_SECTOR];
int rt_start_index;
int i, ret;
rt_start_index = rt_index & ~(RT_ENTRIES_PER_SECTOR - 1);
for (i = 0; i < RT_ENTRIES_PER_SECTOR; i++) {
buf[... | true | qemu | 231bb267644ee3a9ebfd9c7f42d5d41610194b45 | static int write_reftable_entry(BlockDriverState *bs, int rt_index)
{
BDRVQcowState *s = bs->opaque;
uint64_t buf[RT_ENTRIES_PER_SECTOR];
int rt_start_index;
int i, ret;
rt_start_index = rt_index & ~(RT_ENTRIES_PER_SECTOR - 1);
for (i = 0; i < RT_ENTRIES_PER_SECTOR; i++) {
buf[... | {
"code": [
" ret = qcow2_pre_write_overlap_check(bs,",
" ret = qcow2_pre_write_overlap_check(bs,",
" QCOW2_OL_DEFAULT & ~QCOW2_OL_REFCOUNT_TABLE,",
" ret = qcow2_pre_write_overlap_check(bs,"
],
"line_no": [
25,
25,
27,
25
]
} | static int FUNC_0(BlockDriverState *VAR_0, int VAR_1)
{
BDRVQcowState *s = VAR_0->opaque;
uint64_t buf[RT_ENTRIES_PER_SECTOR];
int VAR_2;
int VAR_3, VAR_4;
VAR_2 = VAR_1 & ~(RT_ENTRIES_PER_SECTOR - 1);
for (VAR_3 = 0; VAR_3 < RT_ENTRIES_PER_SECTOR; VAR_3++) {
buf[VAR_3] = cpu_t... | [
"static int FUNC_0(BlockDriverState *VAR_0, int VAR_1)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"uint64_t buf[RT_ENTRIES_PER_SECTOR];",
"int VAR_2;",
"int VAR_3, VAR_4;",
"VAR_2 = VAR_1 & ~(RT_ENTRIES_PER_SECTOR - 1);",
"for (VAR_3 = 0; VAR_3 < RT_ENTRIES_PER_SECTOR; VAR_3++) {",
"buf[VAR_3] = cpu_to... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25,
27,
29,
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.