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 |
|---|---|---|---|---|---|---|---|---|---|---|
15,194 | static void ppc_cpu_unrealizefn(DeviceState *dev, Error **errp)
{
PowerPCCPU *cpu = POWERPC_CPU(dev);
CPUPPCState *env = &cpu->env;
int i;
for (i = 0; i < PPC_CPU_OPCODES_LEN; i++) {
if (env->opcodes[i] != &invalid_handler) {
g_free(env->opcodes[i]);
}
}
}
| false | qemu | 81f194dd69756677cc36ff0827bf970f0f048914 | static void ppc_cpu_unrealizefn(DeviceState *dev, Error **errp)
{
PowerPCCPU *cpu = POWERPC_CPU(dev);
CPUPPCState *env = &cpu->env;
int i;
for (i = 0; i < PPC_CPU_OPCODES_LEN; i++) {
if (env->opcodes[i] != &invalid_handler) {
g_free(env->opcodes[i]);
}
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
PowerPCCPU *cpu = POWERPC_CPU(VAR_0);
CPUPPCState *env = &cpu->env;
int VAR_2;
for (VAR_2 = 0; VAR_2 < PPC_CPU_OPCODES_LEN; VAR_2++) {
if (env->opcodes[VAR_2] != &invalid_handler) {
g_free(env->opcodes[VAR_2]);
... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"PowerPCCPU *cpu = POWERPC_CPU(VAR_0);",
"CPUPPCState *env = &cpu->env;",
"int VAR_2;",
"for (VAR_2 = 0; VAR_2 < PPC_CPU_OPCODES_LEN; VAR_2++) {",
"if (env->opcodes[VAR_2] != &invalid_handler) {",
"g_free(env->opcodes[VAR_2]);",
"}",
"}",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
15,195 | static void xen_exit_notifier(Notifier *n, void *data)
{
XenIOState *state = container_of(n, XenIOState, exit);
xc_evtchn_close(state->xce_handle);
xs_daemon_close(state->xenstore);
}
| false | qemu | a2db2a1edd06a50b8a862c654cf993368cf9f1d9 | static void xen_exit_notifier(Notifier *n, void *data)
{
XenIOState *state = container_of(n, XenIOState, exit);
xc_evtchn_close(state->xce_handle);
xs_daemon_close(state->xenstore);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(Notifier *VAR_0, void *VAR_1)
{
XenIOState *state = container_of(VAR_0, XenIOState, exit);
xc_evtchn_close(state->xce_handle);
xs_daemon_close(state->xenstore);
}
| [
"static void FUNC_0(Notifier *VAR_0, void *VAR_1)\n{",
"XenIOState *state = container_of(VAR_0, XenIOState, exit);",
"xc_evtchn_close(state->xce_handle);",
"xs_daemon_close(state->xenstore);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
15,196 | static void avc_loopfilter_cb_or_cr_inter_edge_ver_msa(uint8_t *data,
uint8_t bs0, uint8_t bs1,
uint8_t bs2, uint8_t bs3,
uint8_t tc0, uint8_t tc1,
... | false | FFmpeg | bcd7bf7eeb09a395cc01698842d1b8be9af483fc | static void avc_loopfilter_cb_or_cr_inter_edge_ver_msa(uint8_t *data,
uint8_t bs0, uint8_t bs1,
uint8_t bs2, uint8_t bs3,
uint8_t tc0, uint8_t tc1,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0,
uint8_t VAR_1, uint8_t VAR_2,
uint8_t VAR_3, uint8_t VAR_4,
uint8_t VAR_5, uint8_t VAR_6,
... | [
"static void FUNC_0(uint8_t *VAR_0,\nuint8_t VAR_1, uint8_t VAR_2,\nuint8_t VAR_3, uint8_t VAR_4,\nuint8_t VAR_5, uint8_t VAR_6,\nuint8_t VAR_7, uint8_t VAR_8,\nuint8_t VAR_9,\nuint8_t VAR_10,\nuint32_t VAR_11)\n{",
"uint8_t *src;",
"uint16_t out0, out1, out2, out3;",
"v16u8 alpha, beta;",
"v16u8 p0_asub_q0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
47
],
[... |
15,197 | static int mov_write_header(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
MOVMuxContext *mov = s->priv_data;
AVDictionaryEntry *t, *global_tcr = av_dict_get(s->metadata, "timecode", NULL, 0);
int i, ret, hint_track = 0, tmcd_track = 0;
mov->fc = s;
/* Default mode == MP4 */
mov-... | false | FFmpeg | f98c3ec5c68d14d7c93c2f9775be4583f7905554 | static int mov_write_header(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
MOVMuxContext *mov = s->priv_data;
AVDictionaryEntry *t, *global_tcr = av_dict_get(s->metadata, "timecode", NULL, 0);
int i, ret, hint_track = 0, tmcd_track = 0;
mov->fc = s;
mov->mode = MODE_MP4;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
AVIOContext *pb = VAR_0->pb;
MOVMuxContext *mov = VAR_0->priv_data;
AVDictionaryEntry *t, *global_tcr = av_dict_get(VAR_0->metadata, "timecode", NULL, 0);
int VAR_1, VAR_2, VAR_3 = 0, VAR_4 = 0;
mov->fc = VAR_0;
mov->mode = MODE_MP4;
... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"AVIOContext *pb = VAR_0->pb;",
"MOVMuxContext *mov = VAR_0->priv_data;",
"AVDictionaryEntry *t, *global_tcr = av_dict_get(VAR_0->metadata, \"timecode\", NULL, 0);",
"int VAR_1, VAR_2, VAR_3 = 0, VAR_4 = 0;",
"mov->fc = VAR_0;",
"mov->mode = MODE_MP4;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
[
51,
53
],
[
61,... |
15,199 | static int read_frame_data(ALSDecContext *ctx, unsigned int ra_frame)
{
ALSSpecificConfig *sconf = &ctx->sconf;
AVCodecContext *avctx = ctx->avctx;
GetBitContext *gb = &ctx->gb;
unsigned int div_blocks[32]; ///< block sizes.
unsigned int c;
unsigned int js_blocks[2];
uint32... | true | FFmpeg | c2657633187e325a439e3297fd9ccd0522ab2e39 | static int read_frame_data(ALSDecContext *ctx, unsigned int ra_frame)
{
ALSSpecificConfig *sconf = &ctx->sconf;
AVCodecContext *avctx = ctx->avctx;
GetBitContext *gb = &ctx->gb;
unsigned int div_blocks[32];
unsigned int c;
unsigned int js_blocks[2];
uint32_t bs_info = 0;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(ALSDecContext *VAR_0, unsigned int VAR_1)
{
ALSSpecificConfig *sconf = &VAR_0->sconf;
AVCodecContext *avctx = VAR_0->avctx;
GetBitContext *gb = &VAR_0->gb;
unsigned int VAR_2[32];
unsigned int VAR_3;
unsigned int VAR_4[2];
uint32_t bs_info = 0;
int VA... | [
"static int FUNC_0(ALSDecContext *VAR_0, unsigned int VAR_1)\n{",
"ALSSpecificConfig *sconf = &VAR_0->sconf;",
"AVCodecContext *avctx = VAR_0->avctx;",
"GetBitContext *gb = &VAR_0->gb;",
"unsigned int VAR_2[32];",
"unsigned int VAR_3;",
"unsigned int VAR_4[2];",
"uint32_t bs_info = 0;",
"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,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
12,
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
... |
15,200 | int swr_resample(AVResampleContext *c, short *dst, const short *src, int *consumed, int src_size, int dst_size, int update_ctx){
int dst_index, i;
int index= c->index;
int frac= c->frac;
int dst_incr_frac= c->dst_incr % c->src_incr;
int dst_incr= c->dst_incr / c->src_incr;
int compens... | true | FFmpeg | 1b9ca38d9d06d319fffd61d27e4eb385d6572ba8 | int swr_resample(AVResampleContext *c, short *dst, const short *src, int *consumed, int src_size, int dst_size, int update_ctx){
int dst_index, i;
int index= c->index;
int frac= c->frac;
int dst_incr_frac= c->dst_incr % c->src_incr;
int dst_incr= c->dst_incr / c->src_incr;
int compens... | {
"code": [
" frac += dst_index * dst_incr_frac;",
" index += frac / c->src_incr;",
" frac %= c->src_incr;",
" frac += dst_index * dst_incr_frac;",
" index += frac / c->src_incr;",
" frac %= c->src_incr;"
],
"line_no": [
35,
39,
41,
... | int FUNC_0(AVResampleContext *VAR_0, short *VAR_1, const short *VAR_2, int *VAR_3, int VAR_4, int VAR_5, int VAR_6){
int VAR_7, VAR_8;
int VAR_9= VAR_0->VAR_9;
int VAR_10= VAR_0->VAR_10;
int VAR_11= VAR_0->VAR_12 % VAR_0->src_incr;
int VAR_12= VAR_0->VAR_12 / VAR_0->src_incr;
int VAR_... | [
"int FUNC_0(AVResampleContext *VAR_0, short *VAR_1, const short *VAR_2, int *VAR_3, int VAR_4, int VAR_5, int VAR_6){",
"int VAR_7, VAR_8;",
"int VAR_9= VAR_0->VAR_9;",
"int VAR_10= VAR_0->VAR_10;",
"int VAR_11= VAR_0->VAR_12 % VAR_0->src_incr;",
"int VAR_12= VAR_0->VAR_12 / VAR_0->src_incr;",
"int... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
15,202 | static void stm32f205_soc_realize(DeviceState *dev_soc, Error **errp)
{
STM32F205State *s = STM32F205_SOC(dev_soc);
DeviceState *syscfgdev, *usartdev, *timerdev;
SysBusDevice *syscfgbusdev, *usartbusdev, *timerbusdev;
qemu_irq *pic;
Error *err = NULL;
int i;
MemoryRegion *system_me... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | static void stm32f205_soc_realize(DeviceState *dev_soc, Error **errp)
{
STM32F205State *s = STM32F205_SOC(dev_soc);
DeviceState *syscfgdev, *usartdev, *timerdev;
SysBusDevice *syscfgbusdev, *usartbusdev, *timerbusdev;
qemu_irq *pic;
Error *err = NULL;
int i;
MemoryRegion *system_me... | {
"code": [
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" ... | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
STM32F205State *s = STM32F205_SOC(VAR_0);
DeviceState *syscfgdev, *usartdev, *timerdev;
SysBusDevice *syscfgbusdev, *usartbusdev, *timerbusdev;
qemu_irq *pic;
Error *err = NULL;
int VAR_2;
MemoryRegion *system_memory = get_sys... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"STM32F205State *s = STM32F205_SOC(VAR_0);",
"DeviceState *syscfgdev, *usartdev, *timerdev;",
"SysBusDevice *syscfgbusdev, *usartbusdev, *timerbusdev;",
"qemu_irq *pic;",
"Error *err = NULL;",
"int VAR_2;",
"MemoryRegion *system_memory = get_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
33,
35
],
[
39
],
[
43
],
[
45
],
[
49
],
[
51
],
[
55,... |
15,203 | static int cmp_int(const void *p1, const void *p2)
{
int left = *(const int *)p1;
int right = *(const int *)p2;
return ((left > right) - (left < right));
}
| true | FFmpeg | 92e483f8ed70d88d4f64337f65bae212502735d4 | static int cmp_int(const void *p1, const void *p2)
{
int left = *(const int *)p1;
int right = *(const int *)p2;
return ((left > right) - (left < right));
}
| {
"code": [
" int left = *(const int *)p1;",
" return ((left > right) - (left < right));"
],
"line_no": [
5,
11
]
} | static int FUNC_0(const void *VAR_0, const void *VAR_1)
{
int VAR_2 = *(const int *)VAR_0;
int VAR_3 = *(const int *)VAR_1;
return ((VAR_2 > VAR_3) - (VAR_2 < VAR_3));
}
| [
"static int FUNC_0(const void *VAR_0, const void *VAR_1)\n{",
"int VAR_2 = *(const int *)VAR_0;",
"int VAR_3 = *(const int *)VAR_1;",
"return ((VAR_2 > VAR_3) - (VAR_2 < VAR_3));",
"}"
] | [
0,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
]
] |
15,205 | static int parse_picture(AVFormatContext *s, uint8_t *buf, int buf_size)
{
const CodecMime *mime = ff_id3v2_mime_tags;
enum CodecID id = CODEC_ID_NONE;
uint8_t mimetype[64], *desc = NULL, *data = NULL;
AVIOContext *pb = NULL;
AVStream *st;
int type, width, height;
int len, ret ... | true | FFmpeg | dba5b06ead6bbec8fd1207d778240188182c8361 | static int parse_picture(AVFormatContext *s, uint8_t *buf, int buf_size)
{
const CodecMime *mime = ff_id3v2_mime_tags;
enum CodecID id = CODEC_ID_NONE;
uint8_t mimetype[64], *desc = NULL, *data = NULL;
AVIOContext *pb = NULL;
AVStream *st;
int type, width, height;
int len, ret ... | {
"code": [
" st = avformat_new_stream(s, NULL);",
" if (!st)",
" return AVERROR(ENOMEM);"
],
"line_no": [
21,
23,
25
]
} | static int FUNC_0(AVFormatContext *VAR_0, uint8_t *VAR_1, int VAR_2)
{
const CodecMime *VAR_3 = ff_id3v2_mime_tags;
enum CodecID VAR_4 = CODEC_ID_NONE;
uint8_t mimetype[64], *desc = NULL, *data = NULL;
AVIOContext *pb = NULL;
AVStream *st;
int VAR_5, VAR_6, VAR_7;
int VAR_8, VA... | [
"static int FUNC_0(AVFormatContext *VAR_0, uint8_t *VAR_1, int VAR_2)\n{",
"const CodecMime *VAR_3 = ff_id3v2_mime_tags;",
"enum CodecID VAR_4 = CODEC_ID_NONE;",
"uint8_t mimetype[64], *desc = NULL, *data = NULL;",
"AVIOContext *pb = NULL;",
"AVStream *st;",
"int VAR_5, VAR_6, VAR_7;",
"int VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
29
],
[
31,
33
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
55
... |
15,207 | void aio_context_set_poll_params(AioContext *ctx, int64_t max_ns, Error **errp)
{
error_setg(errp, "AioContext polling is not implemented on Windows");
}
| true | qemu | 82a41186941c419afde977f477f19c545b40c1c5 | void aio_context_set_poll_params(AioContext *ctx, int64_t max_ns, Error **errp)
{
error_setg(errp, "AioContext polling is not implemented on Windows");
}
| {
"code": [
"void aio_context_set_poll_params(AioContext *ctx, int64_t max_ns, Error **errp)",
"void aio_context_set_poll_params(AioContext *ctx, int64_t max_ns, Error **errp)"
],
"line_no": [
1,
1
]
} | void FUNC_0(AioContext *VAR_0, int64_t VAR_1, Error **VAR_2)
{
error_setg(VAR_2, "AioContext polling is not implemented on Windows");
}
| [
"void FUNC_0(AioContext *VAR_0, int64_t VAR_1, Error **VAR_2)\n{",
"error_setg(VAR_2, \"AioContext polling is not implemented on Windows\");",
"}"
] | [
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
15,208 | static void host_memory_backend_set_prealloc(Object *obj, bool value,
Error **errp)
{
Error *local_err = NULL;
HostMemoryBackend *backend = MEMORY_BACKEND(obj);
if (backend->force_prealloc) {
if (value) {
error_setg(errp,
... | true | qemu | 1e356fc14beaa3ece6c0e961bd479af58be3198b | static void host_memory_backend_set_prealloc(Object *obj, bool value,
Error **errp)
{
Error *local_err = NULL;
HostMemoryBackend *backend = MEMORY_BACKEND(obj);
if (backend->force_prealloc) {
if (value) {
error_setg(errp,
... | {
"code": [
" os_mem_prealloc(fd, ptr, sz, &local_err);"
],
"line_no": [
49
]
} | static void FUNC_0(Object *VAR_0, bool VAR_1,
Error **VAR_2)
{
Error *local_err = NULL;
HostMemoryBackend *backend = MEMORY_BACKEND(VAR_0);
if (backend->force_prealloc) {
if (VAR_1) {
error_setg(VAR_2,
"remove ... | [
"static void FUNC_0(Object *VAR_0, bool VAR_1,\nError **VAR_2)\n{",
"Error *local_err = NULL;",
"HostMemoryBackend *backend = MEMORY_BACKEND(VAR_0);",
"if (backend->force_prealloc) {",
"if (VAR_1) {",
"error_setg(VAR_2,\n\"remove -mem-prealloc to use the prealloc property\");",
"return;",
"}",
"}",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
... |
15,210 | void ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt,
int (*compare)(AVFormatContext *, AVPacket *, AVPacket *))
{
AVPacketList **next_point, *this_pktl;
this_pktl = av_mallocz(sizeof(AVPacketList));
this_pktl->pkt= *pkt;
pkt->destruct= NULL; ... | true | FFmpeg | 4d7c71c36467331f1e0c0f17af9f371d33308a9c | void ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt,
int (*compare)(AVFormatContext *, AVPacket *, AVPacket *))
{
AVPacketList **next_point, *this_pktl;
this_pktl = av_mallocz(sizeof(AVPacketList));
this_pktl->pkt= *pkt;
pkt->destruct= NULL; ... | {
"code": [
"void ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt,",
"void ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt,"
],
"line_no": [
1,
1
]
} | VAR_4voidVAR_4 VAR_4ff_interleave_add_packetVAR_4(VAR_4AVFormatContextVAR_4 *VAR_4VAR_0VAR_4, VAR_4AVPacketVAR_4 *VAR_4VAR_1VAR_4,
VAR_4intVAR_4 (*VAR_4VAR_2VAR_4)(VAR_4AVFormatContextVAR_4 *, VAR_4AVPacketVAR_4 *, VAR_4AVPacketVAR_4 *))
{
VAR_4AVPacketListVAR_4 **VAR_4next_pointVAR... | [
"VAR_4voidVAR_4 VAR_4ff_interleave_add_packetVAR_4(VAR_4AVFormatContextVAR_4 *VAR_4VAR_0VAR_4, VAR_4AVPacketVAR_4 *VAR_4VAR_1VAR_4,\nVAR_4intVAR_4 (*VAR_4VAR_2VAR_4)(VAR_4AVFormatContextVAR_4 *, VAR_4AVPacketVAR_4 *, VAR_4AVPacketVAR_4 *))\n{",
"VAR_4AVPacketListVAR_4 **VAR_4next_pointVAR_4, *VAR_4this_pktlVAR_4;... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
... |
15,211 | static void read_partition(uint8_t *p, struct partition_record *r)
{
r->bootable = p[0];
r->start_head = p[1];
r->start_cylinder = p[3] | ((p[2] << 2) & 0x0300);
r->start_sector = p[2] & 0x3f;
r->system = p[4];
r->end_head = p[5];
r->end_cylinder = p[7] | ((p[6] << 2) & 0x300);
... | true | qemu | ac97393dc7c4761af6104fb8fca5f600899f687b | static void read_partition(uint8_t *p, struct partition_record *r)
{
r->bootable = p[0];
r->start_head = p[1];
r->start_cylinder = p[3] | ((p[2] << 2) & 0x0300);
r->start_sector = p[2] & 0x3f;
r->system = p[4];
r->end_head = p[5];
r->end_cylinder = p[7] | ((p[6] << 2) & 0x300);
... | {
"code": [
" r->start_sector_abs = p[8] | p[9] << 8 | p[10] << 16 | p[11] << 24;",
" r->nb_sectors_abs = p[12] | p[13] << 8 | p[14] << 16 | p[15] << 24;"
],
"line_no": [
21,
23
]
} | static void FUNC_0(uint8_t *VAR_0, struct partition_record *VAR_1)
{
VAR_1->bootable = VAR_0[0];
VAR_1->start_head = VAR_0[1];
VAR_1->start_cylinder = VAR_0[3] | ((VAR_0[2] << 2) & 0x0300);
VAR_1->start_sector = VAR_0[2] & 0x3f;
VAR_1->system = VAR_0[4];
VAR_1->end_head = VAR_0[5];
V... | [
"static void FUNC_0(uint8_t *VAR_0, struct partition_record *VAR_1)\n{",
"VAR_1->bootable = VAR_0[0];",
"VAR_1->start_head = VAR_0[1];",
"VAR_1->start_cylinder = VAR_0[3] | ((VAR_0[2] << 2) & 0x0300);",
"VAR_1->start_sector = VAR_0[2] & 0x3f;",
"VAR_1->system = VAR_0[4];",
"VAR_1->end_head = VAR_0[5];",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
15,212 | static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
{
AVFrame *frame = data;
DxaDecContext * const c = avctx->priv_data;
uint8_t *outptr, *srcptr, *tmpptr;
unsigned long dsize;
int i, j, compr, ret;
int stride;
int pc = 0;
GetByteContext g... | true | FFmpeg | 5a5c1b244281c3edcffca322b0c664ed620b1e24 | static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
{
AVFrame *frame = data;
DxaDecContext * const c = avctx->priv_data;
uint8_t *outptr, *srcptr, *tmpptr;
unsigned long dsize;
int i, j, compr, ret;
int stride;
int pc = 0;
GetByteContext g... | {
"code": [
" decode_13(avctx, c, frame->data[0], frame->linesize[0], srcptr, c->prev->data[0]);"
],
"line_no": [
203
]
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3)
{
AVFrame *frame = VAR_1;
DxaDecContext * const c = VAR_0->priv_data;
uint8_t *outptr, *srcptr, *tmpptr;
unsigned long VAR_4;
int VAR_5, VAR_6, VAR_7, VAR_8;
int VAR_9;
int VAR_10 = 0;
GetByteCont... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3)\n{",
"AVFrame *frame = VAR_1;",
"DxaDecContext * const c = VAR_0->priv_data;",
"uint8_t *outptr, *srcptr, *tmpptr;",
"unsigned long VAR_4;",
"int VAR_5, VAR_6, VAR_7, VAR_8;",
"int VAR_9;",
"int VAR_10 = 0;",
"GetByt... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
[
49
],
[... |
15,213 | static void virtio_gpu_resource_destroy(VirtIOGPU *g,
struct virtio_gpu_simple_resource *res)
{
pixman_image_unref(res->image);
QTAILQ_REMOVE(&g->reslist, res, next);
g->hostmem -= res->hostmem;
g_free(res);
} | true | qemu | b8e23926c568f2e963af39028b71c472e3023793 | static void virtio_gpu_resource_destroy(VirtIOGPU *g,
struct virtio_gpu_simple_resource *res)
{
pixman_image_unref(res->image);
QTAILQ_REMOVE(&g->reslist, res, next);
g->hostmem -= res->hostmem;
g_free(res);
} | {
"code": [],
"line_no": []
} | static void FUNC_0(VirtIOGPU *VAR_0,
struct virtio_gpu_simple_resource *VAR_1)
{
pixman_image_unref(VAR_1->image);
QTAILQ_REMOVE(&VAR_0->reslist, VAR_1, next);
VAR_0->hostmem -= VAR_1->hostmem;
g_free(VAR_1);
} | [
"static void FUNC_0(VirtIOGPU *VAR_0,\nstruct virtio_gpu_simple_resource *VAR_1)\n{",
"pixman_image_unref(VAR_1->image);",
"QTAILQ_REMOVE(&VAR_0->reslist, VAR_1, next);",
"VAR_0->hostmem -= VAR_1->hostmem;",
"g_free(VAR_1);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
10
],
[
12
],
[
14
],
[
16
]
] |
15,214 | void virtio_save(VirtIODevice *vdev, QEMUFile *f)
{
BusState *qbus = qdev_get_parent_bus(DEVICE(vdev));
VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);
VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev);
uint32_t guest_features_lo = (vdev->guest_features & 0xffffffff);
int i;
if (k-... | true | qemu | 874adf45dbfbae2810423527d777ba37bc5ca974 | void virtio_save(VirtIODevice *vdev, QEMUFile *f)
{
BusState *qbus = qdev_get_parent_bus(DEVICE(vdev));
VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);
VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev);
uint32_t guest_features_lo = (vdev->guest_features & 0xffffffff);
int i;
if (k-... | {
"code": [],
"line_no": []
} | void FUNC_0(VirtIODevice *VAR_0, QEMUFile *VAR_1)
{
BusState *qbus = qdev_get_parent_bus(DEVICE(VAR_0));
VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);
VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(VAR_0);
uint32_t guest_features_lo = (VAR_0->guest_features & 0xffffffff);
int VAR_2;
... | [
"void FUNC_0(VirtIODevice *VAR_0, QEMUFile *VAR_1)\n{",
"BusState *qbus = qdev_get_parent_bus(DEVICE(VAR_0));",
"VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);",
"VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(VAR_0);",
"uint32_t guest_features_lo = (VAR_0->guest_features & 0xffffffff);",
"int VAR_2;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
45
],
[
49
],
[... |
15,215 | static void virtio_blk_dma_restart_cb(void *opaque, int running,
RunState state)
{
VirtIOBlock *s = opaque;
if (!running)
return;
if (!s->bh) {
s->bh = qemu_bh_new(virtio_blk_dma_restart_bh, s);
qemu_bh_schedule(s->bh);
}
}
| true | qemu | 392808b49b6aee066d0c1d200e72fc3dc11c9d0f | static void virtio_blk_dma_restart_cb(void *opaque, int running,
RunState state)
{
VirtIOBlock *s = opaque;
if (!running)
return;
if (!s->bh) {
s->bh = qemu_bh_new(virtio_blk_dma_restart_bh, s);
qemu_bh_schedule(s->bh);
}
}
| {
"code": [
" if (!running)"
],
"line_no": [
11
]
} | static void FUNC_0(void *VAR_0, int VAR_1,
RunState VAR_2)
{
VirtIOBlock *s = VAR_0;
if (!VAR_1)
return;
if (!s->bh) {
s->bh = qemu_bh_new(virtio_blk_dma_restart_bh, s);
qemu_bh_schedule(s->bh);
}
}
| [
"static void FUNC_0(void *VAR_0, int VAR_1,\nRunState VAR_2)\n{",
"VirtIOBlock *s = VAR_0;",
"if (!VAR_1)\nreturn;",
"if (!s->bh) {",
"s->bh = qemu_bh_new(virtio_blk_dma_restart_bh, s);",
"qemu_bh_schedule(s->bh);",
"}",
"}"
] | [
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11,
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
15,216 | static char *json_escape_str(const char *s)
{
static const char json_escape[] = {'"', '\\', '\b', '\f', '\n', '\r', '\t', 0};
static const char json_subst[] = {'"', '\\', 'b', 'f', 'n', 'r', 't', 0};
char *ret, *p;
int i, len = 0;
// compute the length of the escaped string
for (i... | true | FFmpeg | 2f3b028c7117e03267ea7f88d0d612e70f1afc06 | static char *json_escape_str(const char *s)
{
static const char json_escape[] = {'"', '\\', '\b', '\f', '\n', '\r', '\t', 0};
static const char json_subst[] = {'"', '\\', 'b', 'f', 'n', 'r', 't', 0};
char *ret, *p;
int i, len = 0;
for (i = 0; s[i]; i++) {
if (strchr(json... | {
"code": [
"static char *json_escape_str(const char *s)",
" char *ret, *p;",
" int i, len = 0;",
" for (i = 0; s[i]; i++) {",
" p = ret = av_malloc(len + 1);",
" if (!p)",
" return NULL;",
" for (i = 0; s[i]; i++) {",
" char *q = strchr(json_escape,... | static char *FUNC_0(const char *VAR_0)
{
static const char VAR_1[] = {'"', '\\', '\b', '\f', '\n', '\r', '\t', 0};
static const char VAR_2[] = {'"', '\\', 'b', 'f', 'n', 'r', 't', 0};
char *VAR_3, *VAR_4;
int VAR_5, VAR_6 = 0;
for (VAR_5 = 0; VAR_0[VAR_5]; VAR_5++) {
if ... | [
"static char *FUNC_0(const char *VAR_0)\n{",
"static const char VAR_1[] = {'\"', '\\\\', '\\b', '\\f', '\\n', '\\r', '\\t', 0};",
"static const char VAR_2[] = {'\"', '\\\\', 'b', 'f', 'n', 'r', 't', 0};",
"char *VAR_3, *VAR_4;",
"int VAR_5, VAR_6 = 0;",
"for (VAR_5 = 0; VAR_0[VAR_5]; VAR_5++) {",
... | [
1,
0,
0,
1,
1,
1,
0,
0,
0,
0,
1,
1,
0,
1,
1,
1,
1,
1,
1,
1,
0,
1,
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
15,218 | static int gif_image_write_header(ByteIOContext *pb,
int width, int height, uint32_t *palette)
{
int i;
unsigned int v;
put_tag(pb, "GIF");
put_tag(pb, "89a");
put_le16(pb, width);
put_le16(pb, height);
put_byte(pb, 0xf7); /* flags: global clut... | false | FFmpeg | 8108551a5c4c4c9696582c73d000f94b12cd95a5 | static int gif_image_write_header(ByteIOContext *pb,
int width, int height, uint32_t *palette)
{
int i;
unsigned int v;
put_tag(pb, "GIF");
put_tag(pb, "89a");
put_le16(pb, width);
put_le16(pb, height);
put_byte(pb, 0xf7);
put_byte(pb, 0x... | {
"code": [],
"line_no": []
} | static int FUNC_0(ByteIOContext *VAR_0,
int VAR_1, int VAR_2, uint32_t *VAR_3)
{
int VAR_4;
unsigned int VAR_5;
put_tag(VAR_0, "GIF");
put_tag(VAR_0, "89a");
put_le16(VAR_0, VAR_1);
put_le16(VAR_0, VAR_2);
put_byte(VAR_0, 0xf7);
put_byte(... | [
"static int FUNC_0(ByteIOContext *VAR_0,\nint VAR_1, int VAR_2, uint32_t *VAR_3)\n{",
"int VAR_4;",
"unsigned int VAR_5;",
"put_tag(VAR_0, \"GIF\");",
"put_tag(VAR_0, \"89a\");",
"put_le16(VAR_0, VAR_1);",
"put_le16(VAR_0, VAR_2);",
"put_byte(VAR_0, 0xf7);",
"put_byte(VAR_0, 0x1f);",
"put_byte(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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
15,220 | static int rscc_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
RsccContext *ctx = avctx->priv_data;
GetByteContext *gbc = &ctx->gbc;
GetByteContext tiles_gbc;
AVFrame *frame = data;
const uint8_t *pixels, *raw;
uint... | false | FFmpeg | 0f64b6cd22411f574cbc75cab3b6db7dba023ed6 | static int rscc_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
RsccContext *ctx = avctx->priv_data;
GetByteContext *gbc = &ctx->gbc;
GetByteContext tiles_gbc;
AVFrame *frame = data;
const uint8_t *pixels, *raw;
uint... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
RsccContext *ctx = VAR_0->priv_data;
GetByteContext *gbc = &ctx->gbc;
GetByteContext tiles_gbc;
AVFrame *frame = VAR_1;
const uint8_t *VAR_4, *raw;
uint8_t *inflated_... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"RsccContext *ctx = VAR_0->priv_data;",
"GetByteContext *gbc = &ctx->gbc;",
"GetByteContext tiles_gbc;",
"AVFrame *frame = VAR_1;",
"const uint8_t *VAR_4, *raw;",
"uint8_t *inflated_tiles = NULL;",
"int VAR_5, VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
31
],
[
33
],
[
35
],
[
37
],
[
43
],
[
45,
47
],
[
49
],
[
51
],
[
53
... |
15,221 | static int parse_frame_header(DCACoreDecoder *s)
{
DCACoreFrameHeader h = { 0 };
int err = avpriv_dca_parse_core_frame_header(&s->gb, &h);
if (err < 0) {
switch (err) {
case DCA_PARSE_ERROR_DEFICIT_SAMPLES:
av_log(s->avctx, AV_LOG_ERROR, "Deficit samples are not supporte... | false | FFmpeg | 7c9d2ad45f4e46ad2c3b2e93051efbe1e0d0529e | static int parse_frame_header(DCACoreDecoder *s)
{
DCACoreFrameHeader h = { 0 };
int err = avpriv_dca_parse_core_frame_header(&s->gb, &h);
if (err < 0) {
switch (err) {
case DCA_PARSE_ERROR_DEFICIT_SAMPLES:
av_log(s->avctx, AV_LOG_ERROR, "Deficit samples are not supporte... | {
"code": [],
"line_no": []
} | static int FUNC_0(DCACoreDecoder *VAR_0)
{
DCACoreFrameHeader h = { 0 };
int VAR_1 = avpriv_dca_parse_core_frame_header(&VAR_0->gb, &h);
if (VAR_1 < 0) {
switch (VAR_1) {
case DCA_PARSE_ERROR_DEFICIT_SAMPLES:
av_log(VAR_0->avctx, AV_LOG_ERROR, "Deficit samples are not su... | [
"static int FUNC_0(DCACoreDecoder *VAR_0)\n{",
"DCACoreFrameHeader h = { 0 };",
"int VAR_1 = avpriv_dca_parse_core_frame_header(&VAR_0->gb, &h);",
"if (VAR_1 < 0) {",
"switch (VAR_1) {",
"case DCA_PARSE_ERROR_DEFICIT_SAMPLES:\nav_log(VAR_0->avctx, AV_LOG_ERROR, \"Deficit samples are not supported\\n\");",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
23,
25
],
[
27
],
[
31,
33
],
[
35
],
[
39,
41
],
[
43
],
[
47,
49
],
[
51
],
[
55,
57
],
[
59... |
15,223 | static int insert_trim(OutputStream *ost, AVFilterContext **last_filter, int *pad_idx)
{
OutputFile *of = output_files[ost->file_index];
AVFilterGraph *graph = (*last_filter)->graph;
AVFilterContext *ctx;
const AVFilter *trim;
const char *name = ost->st->codec->codec_type == AVMEDIA_TYPE_VIDEO... | false | FFmpeg | 56ee3f9de7b9f6090d599a27d33a392890a2f7b8 | static int insert_trim(OutputStream *ost, AVFilterContext **last_filter, int *pad_idx)
{
OutputFile *of = output_files[ost->file_index];
AVFilterGraph *graph = (*last_filter)->graph;
AVFilterContext *ctx;
const AVFilter *trim;
const char *name = ost->st->codec->codec_type == AVMEDIA_TYPE_VIDEO... | {
"code": [],
"line_no": []
} | static int FUNC_0(OutputStream *VAR_0, AVFilterContext **VAR_1, int *VAR_2)
{
OutputFile *of = output_files[VAR_0->file_index];
AVFilterGraph *graph = (*VAR_1)->graph;
AVFilterContext *ctx;
const AVFilter *VAR_3;
const char *VAR_4 = VAR_0->st->codec->codec_type == AVMEDIA_TYPE_VIDEO ? "VAR_3" ... | [
"static int FUNC_0(OutputStream *VAR_0, AVFilterContext **VAR_1, int *VAR_2)\n{",
"OutputFile *of = output_files[VAR_0->file_index];",
"AVFilterGraph *graph = (*VAR_1)->graph;",
"AVFilterContext *ctx;",
"const AVFilter *VAR_3;",
"const char *VAR_4 = VAR_0->st->codec->codec_type == AVMEDIA_TYPE_VIDEO ? \"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,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
41,
43
],
[
45
],
[
47,
49
],
[
53
... |
15,224 | static int add_doubles_metadata(const uint8_t **buf, int count,
const char *name, const char *sep,
TiffContext *s)
{
char *ap;
int i;
double *dp = av_malloc(count * sizeof(double));
if (!dp)
return AVERROR(ENOMEM);
fo... | false | FFmpeg | 1ec83d9a9e472f485897ac92bad9631d551a8c5b | static int add_doubles_metadata(const uint8_t **buf, int count,
const char *name, const char *sep,
TiffContext *s)
{
char *ap;
int i;
double *dp = av_malloc(count * sizeof(double));
if (!dp)
return AVERROR(ENOMEM);
fo... | {
"code": [],
"line_no": []
} | static int FUNC_0(const uint8_t **VAR_0, int VAR_1,
const char *VAR_2, const char *VAR_3,
TiffContext *VAR_4)
{
char *VAR_5;
int VAR_6;
double *VAR_7 = av_malloc(VAR_1 * sizeof(double));
if (!VAR_7)
return AVERROR(ENOMEM);
... | [
"static int FUNC_0(const uint8_t **VAR_0, int VAR_1,\nconst char *VAR_2, const char *VAR_3,\nTiffContext *VAR_4)\n{",
"char *VAR_5;",
"int VAR_6;",
"double *VAR_7 = av_malloc(VAR_1 * sizeof(double));",
"if (!VAR_7)\nreturn AVERROR(ENOMEM);",
"for (VAR_6 = 0; VAR_6 < VAR_1; VAR_6++)",
"VAR_7[VAR_6] = tge... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15,
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
]
] |
15,228 | static inline int onenand_load_spare(OneNANDState *s, int sec, int secn,
void *dest)
{
uint8_t buf[512];
if (s->blk_cur) {
if (blk_read(s->blk_cur, s->secs_cur + (sec >> 5), buf, 1) < 0) {
return 1;
}
memcpy(dest, buf + ((sec & 31) << 4), secn << 4);... | true | qemu | 441692ddd8321d5e0f09b163e86410e578d87236 | static inline int onenand_load_spare(OneNANDState *s, int sec, int secn,
void *dest)
{
uint8_t buf[512];
if (s->blk_cur) {
if (blk_read(s->blk_cur, s->secs_cur + (sec >> 5), buf, 1) < 0) {
return 1;
}
memcpy(dest, buf + ((sec & 31) << 4), secn << 4);... | {
"code": [
" if (blk_read(s->blk_cur, s->secs_cur + (sec >> 5), buf, 1) < 0) {"
],
"line_no": [
13
]
} | static inline int FUNC_0(OneNANDState *VAR_0, int VAR_1, int VAR_2,
void *VAR_3)
{
uint8_t buf[512];
if (VAR_0->blk_cur) {
if (blk_read(VAR_0->blk_cur, VAR_0->secs_cur + (VAR_1 >> 5), buf, 1) < 0) {
return 1;
}
memcpy(VAR_3, buf + ((VAR_1 & 31) << 4)... | [
"static inline int FUNC_0(OneNANDState *VAR_0, int VAR_1, int VAR_2,\nvoid *VAR_3)\n{",
"uint8_t buf[512];",
"if (VAR_0->blk_cur) {",
"if (blk_read(VAR_0->blk_cur, VAR_0->secs_cur + (VAR_1 >> 5), buf, 1) < 0) {",
"return 1;",
"}",
"memcpy(VAR_3, buf + ((VAR_1 & 31) << 4), VAR_2 << 4);",
"} else if (VA... | [
0,
0,
0,
1,
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
]
] |
15,229 | X264_init(AVCodecContext *avctx)
{
X264Context *x4 = avctx->priv_data;
x264_param_default(&x4->params);
x4->params.pf_log = X264_log;
x4->params.p_log_private = avctx;
x4->params.i_keyint_max = avctx->gop_size;
x4->params.rc.i_bitrate = avctx->bit_rate / 1000;
x4->params.rc.i_v... | true | FFmpeg | d4be08e0c9fc9ed2862e952a489ef6a8943b5e5d | X264_init(AVCodecContext *avctx)
{
X264Context *x4 = avctx->priv_data;
x264_param_default(&x4->params);
x4->params.pf_log = X264_log;
x4->params.p_log_private = avctx;
x4->params.i_keyint_max = avctx->gop_size;
x4->params.rc.i_bitrate = avctx->bit_rate / 1000;
x4->params.rc.i_v... | {
"code": [
" x4->params.rc.psz_rc_eq = avctx->rc_eq;"
],
"line_no": [
245
]
} | FUNC_0(AVCodecContext *VAR_0)
{
X264Context *x4 = VAR_0->priv_data;
x264_param_default(&x4->params);
x4->params.pf_log = X264_log;
x4->params.p_log_private = VAR_0;
x4->params.i_keyint_max = VAR_0->gop_size;
x4->params.rc.i_bitrate = VAR_0->bit_rate / 1000;
x4->params.rc.i_vbv_... | [
"FUNC_0(AVCodecContext *VAR_0)\n{",
"X264Context *x4 = VAR_0->priv_data;",
"x264_param_default(&x4->params);",
"x4->params.pf_log = X264_log;",
"x4->params.p_log_private = VAR_0;",
"x4->params.i_keyint_max = VAR_0->gop_size;",
"x4->params.rc.i_bitrate = VAR_0->bit_rate / 1000;",
"x4->params.rc.i_vbv_b... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47... |
15,230 | int configure_filtergraph(FilterGraph *fg)
{
AVFilterInOut *inputs, *outputs, *cur;
int ret, i, simple = !fg->graph_desc;
const char *graph_desc = simple ? fg->outputs[0]->ost->avfilter :
fg->graph_desc;
avfilter_graph_free(&fg->graph);
if (!(fg->graph ... | true | FFmpeg | 8b830ee9a26d47b138f12a82085cdb372f407f1e | int configure_filtergraph(FilterGraph *fg)
{
AVFilterInOut *inputs, *outputs, *cur;
int ret, i, simple = !fg->graph_desc;
const char *graph_desc = simple ? fg->outputs[0]->ost->avfilter :
fg->graph_desc;
avfilter_graph_free(&fg->graph);
if (!(fg->graph ... | {
"code": [
" for (cur = outputs, i = 0; cur; cur = cur->next, i++)",
" configure_output_filter(fg, fg->outputs[i], cur);"
],
"line_no": [
87,
89
]
} | int FUNC_0(FilterGraph *VAR_0)
{
AVFilterInOut *inputs, *outputs, *cur;
int VAR_1, VAR_2, VAR_3 = !VAR_0->VAR_4;
const char *VAR_4 = VAR_3 ? VAR_0->outputs[0]->ost->avfilter :
VAR_0->VAR_4;
avfilter_graph_free(&VAR_0->graph);
if (!(VAR_0->graph = avfilt... | [
"int FUNC_0(FilterGraph *VAR_0)\n{",
"AVFilterInOut *inputs, *outputs, *cur;",
"int VAR_1, VAR_2, VAR_3 = !VAR_0->VAR_4;",
"const char *VAR_4 = VAR_3 ? VAR_0->outputs[0]->ost->avfilter :\nVAR_0->VAR_4;",
"avfilter_graph_free(&VAR_0->graph);",
"if (!(VAR_0->graph = avfilter_graph_alloc()))\nreturn AVERROR(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
15
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49,
51
],
[
53
... |
15,231 | inline static void RENAME(hcscale)(uint16_t *dst, long dstWidth, uint8_t *src1, uint8_t *src2,
int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter,
int16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode,
int srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter,
... | true | FFmpeg | 065ee1ec325ed7d34acf13d0bf319c1c6b457e21 | inline static void RENAME(hcscale)(uint16_t *dst, long dstWidth, uint8_t *src1, uint8_t *src2,
int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter,
int16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode,
int srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter,
... | {
"code": [
"\tint xInc_mask = xInc & 0xffff; "
],
"line_no": [
281
]
} | inline static void FUNC_0(hcscale)(uint16_t *dst, long dstWidth, uint8_t *src1, uint8_t *src2,
int srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter,
int16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode,
int srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter,
... | [
"inline static void FUNC_0(hcscale)(uint16_t *dst, long dstWidth, uint8_t *src1, uint8_t *src2,\nint srcW, int xInc, int flags, int canMMX2BeUsed, int16_t *hChrFilter,\nint16_t *hChrFilterPos, int hChrFilterSize, void *funnyUVCode,\nint srcFormat, uint8_t *formatConvBuffer, int16_t *mmx2Filter,\nint32_t *mmx2Filter... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
15,232 | static int mp_user_setxattr(FsContext *ctx, const char *path, const char *name,
void *value, size_t size, int flags)
{
char *buffer;
int ret;
if (strncmp(name, "user.virtfs.", 12) == 0) {
/*
* Don't allow fetch of user.virtfs namesapce
* in cas... | true | qemu | 3e36aba757f76673007a80b3cd56a4062c2e3462 | static int mp_user_setxattr(FsContext *ctx, const char *path, const char *name,
void *value, size_t size, int flags)
{
char *buffer;
int ret;
if (strncmp(name, "user.virtfs.", 12) == 0) {
errno = EACCES;
return -1;
}
buffer = rpa... | {
"code": [
" char *buffer;",
" int ret;",
" buffer = rpath(ctx, path);",
" g_free(buffer);",
" return ret;",
" char *buffer;",
" int ret;",
" buffer = rpath(ctx, path);",
" g_free(buffer);",
" return ret;",
" char *buffer;",
" int re... | static int FUNC_0(FsContext *VAR_0, const char *VAR_1, const char *VAR_2,
void *VAR_3, size_t VAR_4, int VAR_5)
{
char *VAR_6;
int VAR_7;
if (strncmp(VAR_2, "user.virtfs.", 12) == 0) {
errno = EACCES;
return -1;
}
VAR_6 = rpath(V... | [
"static int FUNC_0(FsContext *VAR_0, const char *VAR_1, const char *VAR_2,\nvoid *VAR_3, size_t VAR_4, int VAR_5)\n{",
"char *VAR_6;",
"int VAR_7;",
"if (strncmp(VAR_2, \"user.virtfs.\", 12) == 0) {",
"errno = EACCES;",
"return -1;",
"}",
"VAR_6 = rpath(VAR_0, VAR_1);",
"VAR_7 = lsetxattr(VAR_6, VAR... | [
0,
1,
1,
0,
0,
0,
0,
1,
1,
1,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
15,233 | static void gen_tlbiva(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
TCGv t0;
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
t0 = tcg_temp_new();
gen_addr_reg_index(ctx, t0... | true | qemu | 9b2fadda3e0196ffd485adde4fe9cdd6fae35300 | static void gen_tlbiva(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
TCGv t0;
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
t0 = tcg_temp_new();
gen_addr_reg_index(ctx, t0... | {
"code": [
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(ctx->pr)) {",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" if (unlikely(... | static void FUNC_0(DisasContext *VAR_0)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
#else
TCGv t0;
if (unlikely(VAR_0->pr)) {
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
return;
}
t0 = tcg_temp_new();
gen_addr_reg_index(VAR... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"#else\nTCGv t0;",
"if (unlikely(VAR_0->pr)) {",
"gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"return;",
"}",
"t0 = tcg_temp_new();",
"gen_addr_reg_index(VAR_0,... | [
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
1
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
]
] |
15,234 | static void hdcd_reset(hdcd_state_t *state, unsigned rate)
{
int i;
state->window = 0;
state->readahead = 32;
state->arg = 0;
state->control = 0;
state->running_gain = 0;
state->sustain = 0;
state->sustain_reset = rate * 10;
state->code_counterA = 0;
state->cod... | false | FFmpeg | d574e22659bd51cdf16723a204fef65a9e783f1d | static void hdcd_reset(hdcd_state_t *state, unsigned rate)
{
int i;
state->window = 0;
state->readahead = 32;
state->arg = 0;
state->control = 0;
state->running_gain = 0;
state->sustain = 0;
state->sustain_reset = rate * 10;
state->code_counterA = 0;
state->cod... | {
"code": [],
"line_no": []
} | static void FUNC_0(hdcd_state_t *VAR_0, unsigned VAR_1)
{
int VAR_2;
VAR_0->window = 0;
VAR_0->readahead = 32;
VAR_0->arg = 0;
VAR_0->control = 0;
VAR_0->running_gain = 0;
VAR_0->sustain = 0;
VAR_0->sustain_reset = VAR_1 * 10;
VAR_0->code_counterA = 0;
VAR_0->c... | [
"static void FUNC_0(hdcd_state_t *VAR_0, unsigned VAR_1)\n{",
"int VAR_2;",
"VAR_0->window = 0;",
"VAR_0->readahead = 32;",
"VAR_0->arg = 0;",
"VAR_0->control = 0;",
"VAR_0->running_gain = 0;",
"VAR_0->sustain = 0;",
"VAR_0->sustain_reset = VAR_1 * 10;",
"VAR_0->code_counterA = 0;",
"VAR_0->code... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53... |
15,235 | static int filter_frame(AVFilterLink *inlink, AVFrame *insamplesref)
{
AResampleContext *aresample = inlink->dst->priv;
const int n_in = insamplesref->nb_samples;
int64_t delay;
int n_out = n_in * aresample->ratio + 32;
AVFilterLink *const outlink = inlink->dst->outputs[0];
AVFrame... | false | FFmpeg | 4982130d5a7babcb4b2e208fca2c745de7e10658 | static int filter_frame(AVFilterLink *inlink, AVFrame *insamplesref)
{
AResampleContext *aresample = inlink->dst->priv;
const int n_in = insamplesref->nb_samples;
int64_t delay;
int n_out = n_in * aresample->ratio + 32;
AVFilterLink *const outlink = inlink->dst->outputs[0];
AVFrame... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1)
{
AResampleContext *aresample = VAR_0->dst->priv;
const int VAR_2 = VAR_1->nb_samples;
int64_t delay;
int VAR_3 = VAR_2 * aresample->ratio + 32;
AVFilterLink *const outlink = VAR_0->dst->outputs[0];
AVFrame *outsamplesref;
... | [
"static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1)\n{",
"AResampleContext *aresample = VAR_0->dst->priv;",
"const int VAR_2 = VAR_1->nb_samples;",
"int64_t delay;",
"int VAR_3 = VAR_2 * aresample->ratio + 32;",
"AVFilterLink *const outlink = VAR_0->dst->outputs[0];",
"AVFrame *outsamplesref;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
29
],
[
33,
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
... |
15,236 | int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt)
{
MOVMuxContext *mov = s->priv_data;
AVIOContext *pb = s->pb;
MOVTrack *trk = &mov->tracks[pkt->stream_index];
AVCodecContext *enc = trk->enc;
unsigned int samples_in_chunk = 0;
int size = pkt->size, ret = 0;
uint8_t *reforma... | false | FFmpeg | 6e249466cc6bd5b17d6e8cbd9a84a636cc92fd60 | int ff_mov_write_packet(AVFormatContext *s, AVPacket *pkt)
{
MOVMuxContext *mov = s->priv_data;
AVIOContext *pb = s->pb;
MOVTrack *trk = &mov->tracks[pkt->stream_index];
AVCodecContext *enc = trk->enc;
unsigned int samples_in_chunk = 0;
int size = pkt->size, ret = 0;
uint8_t *reforma... | {
"code": [],
"line_no": []
} | int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
MOVMuxContext *mov = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
MOVTrack *trk = &mov->tracks[VAR_1->stream_index];
AVCodecContext *enc = trk->enc;
unsigned int VAR_2 = 0;
int VAR_3 = VAR_1->VAR_3, VAR_5 = 0;
uint8_t *reformatt... | [
"int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"MOVMuxContext *mov = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"MOVTrack *trk = &mov->tracks[VAR_1->stream_index];",
"AVCodecContext *enc = trk->enc;",
"unsigned int VAR_2 = 0;",
"int VAR_3 = VAR_1->VAR_3, VAR_5 = 0;",
"uint8_t *refo... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
15,237 | static int decode_cabac_mb_chroma_pre_mode( H264Context *h) {
const int mba_xy = h->left_mb_xy[0];
const int mbb_xy = h->top_mb_xy;
int ctx = 0;
/* No need to test for IS_INTRA4x4 and IS_INTRA16x16, as we set chroma_pred_mode_table to 0 */
if( h->slice_table[mba_xy] == h->slice_num && h->ch... | false | FFmpeg | 851ded8918c977d8160c6617b69604f758cabf50 | static int decode_cabac_mb_chroma_pre_mode( H264Context *h) {
const int mba_xy = h->left_mb_xy[0];
const int mbb_xy = h->top_mb_xy;
int ctx = 0;
if( h->slice_table[mba_xy] == h->slice_num && h->chroma_pred_mode_table[mba_xy] != 0 )
ctx++;
if( h->slice_table[mbb_xy] == h->sl... | {
"code": [],
"line_no": []
} | static int FUNC_0( H264Context *VAR_0) {
const int VAR_1 = VAR_0->left_mb_xy[0];
const int VAR_2 = VAR_0->top_mb_xy;
int VAR_3 = 0;
if( VAR_0->slice_table[VAR_1] == VAR_0->slice_num && VAR_0->chroma_pred_mode_table[VAR_1] != 0 )
VAR_3++;
if( VAR_0->slice_table[VAR_2] == VAR... | [
"static int FUNC_0( H264Context *VAR_0) {",
"const int VAR_1 = VAR_0->left_mb_xy[0];",
"const int VAR_2 = VAR_0->top_mb_xy;",
"int VAR_3 = 0;",
"if( VAR_0->slice_table[VAR_1] == VAR_0->slice_num && VAR_0->chroma_pred_mode_table[VAR_1] != 0 )\nVAR_3++;",
"if( VAR_0->slice_table[VAR_2] == VAR_0->slice_num &... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
9
],
[
15,
17
],
[
21,
23
],
[
27,
29
],
[
33,
35
],
[
37,
39
],
[
41,
43
],
[
45
]
] |
15,238 | static av_cold int psy_3gpp_init(FFPsyContext *ctx) {
AacPsyContext *pctx;
float bark;
int i, j, g, start;
float prev, minscale, minath;
ctx->model_priv_data = av_mallocz(sizeof(AacPsyContext));
pctx = (AacPsyContext*) ctx->model_priv_data;
minath = ath(3410, ATH_ADD);
for (j... | false | FFmpeg | b7c96769c52a312c6f6abe43f5d8c83701118a0b | static av_cold int psy_3gpp_init(FFPsyContext *ctx) {
AacPsyContext *pctx;
float bark;
int i, j, g, start;
float prev, minscale, minath;
ctx->model_priv_data = av_mallocz(sizeof(AacPsyContext));
pctx = (AacPsyContext*) ctx->model_priv_data;
minath = ath(3410, ATH_ADD);
for (j... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(FFPsyContext *ctx) {
AacPsyContext *pctx;
float VAR_0;
int VAR_1, VAR_2, VAR_3, VAR_4;
float VAR_5, VAR_6, VAR_7;
ctx->model_priv_data = av_mallocz(sizeof(AacPsyContext));
pctx = (AacPsyContext*) ctx->model_priv_data;
VAR_7 = ath(3410, ATH_ADD);
for ... | [
"static av_cold int FUNC_0(FFPsyContext *ctx) {",
"AacPsyContext *pctx;",
"float VAR_0;",
"int VAR_1, VAR_2, VAR_3, VAR_4;",
"float VAR_5, VAR_6, VAR_7;",
"ctx->model_priv_data = av_mallocz(sizeof(AacPsyContext));",
"pctx = (AacPsyContext*) ctx->model_priv_data;",
"VAR_7 = ath(3410, ATH_ADD);",
"for... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
15,240 | static void test_tco_second_timeout_reset(void)
{
TestData td;
const uint16_t ticks = TCO_SECS_TO_TICKS(16);
QDict *ad;
td.args = "-watchdog-action reset";
td.noreboot = false;
test_init(&td);
stop_tco(&td);
clear_tco_status(&td);
reset_on_second_timeout(true);
set... | true | qemu | 34779e8c3991f7fcd74b2045478abcef67dbeb15 | static void test_tco_second_timeout_reset(void)
{
TestData td;
const uint16_t ticks = TCO_SECS_TO_TICKS(16);
QDict *ad;
td.args = "-watchdog-action reset";
td.noreboot = false;
test_init(&td);
stop_tco(&td);
clear_tco_status(&td);
reset_on_second_timeout(true);
set... | {
"code": [
" qtest_end();",
" qtest_end();",
" qtest_end();",
" qtest_end();",
" qtest_end();",
" qtest_end();",
" qtest_end();",
" qtest_end();",
" qtest_end();",
" qtest_end();",
" qtest_end();"
],
"line_no": [
45,
45,
45,... | static void FUNC_0(void)
{
TestData td;
const uint16_t VAR_0 = TCO_SECS_TO_TICKS(16);
QDict *ad;
td.args = "-watchdog-action reset";
td.noreboot = false;
test_init(&td);
stop_tco(&td);
clear_tco_status(&td);
reset_on_second_timeout(true);
set_tco_timeout(&td, TCO_S... | [
"static void FUNC_0(void)\n{",
"TestData td;",
"const uint16_t VAR_0 = TCO_SECS_TO_TICKS(16);",
"QDict *ad;",
"td.args = \"-watchdog-action reset\";",
"td.noreboot = false;",
"test_init(&td);",
"stop_tco(&td);",
"clear_tco_status(&td);",
"reset_on_second_timeout(true);",
"set_tco_timeout(&td, TC... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
... |
15,241 | static void e1000e_macreg_write(e1000e_device *d, uint32_t reg, uint32_t val)
{
qpci_io_writel(d->pci_dev, d->mac_regs + reg, val);
}
| true | qemu | b4ba67d9a702507793c2724e56f98e9b0f7be02b | static void e1000e_macreg_write(e1000e_device *d, uint32_t reg, uint32_t val)
{
qpci_io_writel(d->pci_dev, d->mac_regs + reg, val);
}
| {
"code": [
" qpci_io_writel(d->pci_dev, d->mac_regs + reg, val);"
],
"line_no": [
5
]
} | static void FUNC_0(e1000e_device *VAR_0, uint32_t VAR_1, uint32_t VAR_2)
{
qpci_io_writel(VAR_0->pci_dev, VAR_0->mac_regs + VAR_1, VAR_2);
}
| [
"static void FUNC_0(e1000e_device *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{",
"qpci_io_writel(VAR_0->pci_dev, VAR_0->mac_regs + VAR_1, VAR_2);",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
15,242 | static void fdctrl_handle_drive_specification_command(FDCtrl *fdctrl, int direction)
{
FDrive *cur_drv = get_cur_drv(fdctrl);
if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x80) {
/* Command parameters done */
if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x40) {
fdctrl->fifo[0] = fdct... | true | qemu | e907746266721f305d67bc0718795fedee2e824c | static void fdctrl_handle_drive_specification_command(FDCtrl *fdctrl, int direction)
{
FDrive *cur_drv = get_cur_drv(fdctrl);
if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x80) {
if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x40) {
fdctrl->fifo[0] = fdctrl->fifo[1];
fdc... | {
"code": [
" if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x80) {",
" if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x40) {"
],
"line_no": [
9,
13
]
} | static void FUNC_0(FDCtrl *VAR_0, int VAR_1)
{
FDrive *cur_drv = get_cur_drv(VAR_0);
if (VAR_0->fifo[VAR_0->data_pos - 1] & 0x80) {
if (VAR_0->fifo[VAR_0->data_pos - 1] & 0x40) {
VAR_0->fifo[0] = VAR_0->fifo[1];
VAR_0->fifo[2] = 0;
VAR_0->fifo[3] = ... | [
"static void FUNC_0(FDCtrl *VAR_0, int VAR_1)\n{",
"FDrive *cur_drv = get_cur_drv(VAR_0);",
"if (VAR_0->fifo[VAR_0->data_pos - 1] & 0x80) {",
"if (VAR_0->fifo[VAR_0->data_pos - 1] & 0x40) {",
"VAR_0->fifo[0] = VAR_0->fifo[1];",
"VAR_0->fifo[2] = 0;",
"VAR_0->fifo[3] = 0;",
"fdctrl_set_fifo(VAR_0, 4);"... | [
0,
0,
1,
1,
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
],
[
33,
35
],
[
37
],
[
39
],
[
41
]
] |
15,243 | uint64_t helper_addqv(CPUAlphaState *env, uint64_t op1, uint64_t op2)
{
uint64_t tmp = op1;
op1 += op2;
if (unlikely((tmp ^ op2 ^ (-1ULL)) & (tmp ^ op1) & (1ULL << 63))) {
arith_excp(env, GETPC(), EXC_M_IOV, 0);
}
return op1;
}
| true | qemu | 4d1628e832dfc6ec02b0d196f6cc250aaa7bf3b3 | uint64_t helper_addqv(CPUAlphaState *env, uint64_t op1, uint64_t op2)
{
uint64_t tmp = op1;
op1 += op2;
if (unlikely((tmp ^ op2 ^ (-1ULL)) & (tmp ^ op1) & (1ULL << 63))) {
arith_excp(env, GETPC(), EXC_M_IOV, 0);
}
return op1;
}
| {
"code": [
"uint64_t helper_addqv(CPUAlphaState *env, uint64_t op1, uint64_t op2)",
" uint64_t tmp = op1;",
" op1 += op2;",
" if (unlikely((tmp ^ op2 ^ (-1ULL)) & (tmp ^ op1) & (1ULL << 63))) {",
" return op1;",
" uint64_t tmp = op1;",
" arith_excp(env, GETPC(), EXC_... | uint64_t FUNC_0(CPUAlphaState *env, uint64_t op1, uint64_t op2)
{
uint64_t tmp = op1;
op1 += op2;
if (unlikely((tmp ^ op2 ^ (-1ULL)) & (tmp ^ op1) & (1ULL << 63))) {
arith_excp(env, GETPC(), EXC_M_IOV, 0);
}
return op1;
}
| [
"uint64_t FUNC_0(CPUAlphaState *env, uint64_t op1, uint64_t op2)\n{",
"uint64_t tmp = op1;",
"op1 += op2;",
"if (unlikely((tmp ^ op2 ^ (-1ULL)) & (tmp ^ op1) & (1ULL << 63))) {",
"arith_excp(env, GETPC(), EXC_M_IOV, 0);",
"}",
"return op1;",
"}"
] | [
1,
1,
1,
1,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
15,244 | pvscsi_on_cmd_setup_msg_ring(PVSCSIState *s)
{
PVSCSICmdDescSetupMsgRing *rc =
(PVSCSICmdDescSetupMsgRing *) s->curr_cmd_data;
trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_MSG_RING");
if (!s->use_msg) {
return PVSCSI_COMMAND_PROCESSING_FAILED;
}
if (s->rings_info_valid... | true | qemu | 3e831b40e015ba34dfb55ff11f767001839425ff | pvscsi_on_cmd_setup_msg_ring(PVSCSIState *s)
{
PVSCSICmdDescSetupMsgRing *rc =
(PVSCSICmdDescSetupMsgRing *) s->curr_cmd_data;
trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_MSG_RING");
if (!s->use_msg) {
return PVSCSI_COMMAND_PROCESSING_FAILED;
}
if (s->rings_info_valid... | {
"code": [
" pvscsi_ring_init_msg(&s->rings, rc);"
],
"line_no": [
25
]
} | FUNC_0(PVSCSIState *VAR_0)
{
PVSCSICmdDescSetupMsgRing *rc =
(PVSCSICmdDescSetupMsgRing *) VAR_0->curr_cmd_data;
trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_MSG_RING");
if (!VAR_0->use_msg) {
return PVSCSI_COMMAND_PROCESSING_FAILED;
}
if (VAR_0->rings_info_valid) {
... | [
"FUNC_0(PVSCSIState *VAR_0)\n{",
"PVSCSICmdDescSetupMsgRing *rc =\n(PVSCSICmdDescSetupMsgRing *) VAR_0->curr_cmd_data;",
"trace_pvscsi_on_cmd_arrived(\"PVSCSI_CMD_SETUP_MSG_RING\");",
"if (!VAR_0->use_msg) {",
"return PVSCSI_COMMAND_PROCESSING_FAILED;",
"}",
"if (VAR_0->rings_info_valid) {",
"pvscsi_r... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
15,246 | dispatcher_wait(Dispatcher *dispr, uint32_t timeout)
{
struct timeval tv;
tv.tv_sec = timeout / 1000000;
tv.tv_usec = timeout % 1000000;
fd_set fdset = dispr->fdset;
/* wait until some of sockets become readable. */
int rc = select(dispr->max_sock + 1, &fdset, 0, 0, &tv);
if (r... | true | qemu | 6d0b908a628a7086fa855c68b217cc1e2a5c4c19 | dispatcher_wait(Dispatcher *dispr, uint32_t timeout)
{
struct timeval tv;
tv.tv_sec = timeout / 1000000;
tv.tv_usec = timeout % 1000000;
fd_set fdset = dispr->fdset;
int rc = select(dispr->max_sock + 1, &fdset, 0, 0, &tv);
if (rc == -1) {
vubr_die("select");
}
... | {
"code": [
" for (sock = 0; sock < dispr->max_sock + 1; sock++)",
" if (FD_ISSET(sock, &fdset)) {"
],
"line_no": [
47,
49
]
} | FUNC_0(Dispatcher *VAR_0, uint32_t VAR_1)
{
struct timeval VAR_2;
VAR_2.tv_sec = VAR_1 / 1000000;
VAR_2.tv_usec = VAR_1 % 1000000;
fd_set fdset = VAR_0->fdset;
int VAR_3 = select(VAR_0->max_sock + 1, &fdset, 0, 0, &VAR_2);
if (VAR_3 == -1) {
vubr_die("select");
}... | [
"FUNC_0(Dispatcher *VAR_0, uint32_t VAR_1)\n{",
"struct timeval VAR_2;",
"VAR_2.tv_sec = VAR_1 / 1000000;",
"VAR_2.tv_usec = VAR_1 % 1000000;",
"fd_set fdset = VAR_0->fdset;",
"int VAR_3 = select(VAR_0->max_sock + 1, &fdset, 0, 0, &VAR_2);",
"if (VAR_3 == -1) {",
"vubr_die(\"select\");",
"}",
"if ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
19
],
[
23
],
[
25
],
[
27
],
[
33
],
[
35
],
[
37
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
59
],
[
61
... |
15,247 | int bdrv_check(BlockDriverState *bs, BdrvCheckResult *res)
{
if (bs->drv->bdrv_check == NULL) {
return -ENOTSUP;
}
memset(res, 0, sizeof(*res));
res->corruptions = bs->drv->bdrv_check(bs);
return res->corruptions < 0 ? res->corruptions : 0;
}
| true | qemu | 9ac228e02cf16202547e7025ef300369e0db7781 | int bdrv_check(BlockDriverState *bs, BdrvCheckResult *res)
{
if (bs->drv->bdrv_check == NULL) {
return -ENOTSUP;
}
memset(res, 0, sizeof(*res));
res->corruptions = bs->drv->bdrv_check(bs);
return res->corruptions < 0 ? res->corruptions : 0;
}
| {
"code": [
" res->corruptions = bs->drv->bdrv_check(bs);",
" return res->corruptions < 0 ? res->corruptions : 0;"
],
"line_no": [
15,
17
]
} | int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1)
{
if (VAR_0->drv->FUNC_0 == NULL) {
return -ENOTSUP;
}
memset(VAR_1, 0, sizeof(*VAR_1));
VAR_1->corruptions = VAR_0->drv->FUNC_0(VAR_0);
return VAR_1->corruptions < 0 ? VAR_1->corruptions : 0;
}
| [
"int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1)\n{",
"if (VAR_0->drv->FUNC_0 == NULL) {",
"return -ENOTSUP;",
"}",
"memset(VAR_1, 0, sizeof(*VAR_1));",
"VAR_1->corruptions = VAR_0->drv->FUNC_0(VAR_0);",
"return VAR_1->corruptions < 0 ? VAR_1->corruptions : 0;",
"}"
] | [
0,
0,
0,
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
15,248 | static int nsv_parse_NSVf_header(AVFormatContext *s)
{
NSVContext *nsv = s->priv_data;
AVIOContext *pb = s->pb;
unsigned int av_unused file_size;
unsigned int size;
int64_t duration;
int strings_size;
int table_entries;
int table_entries_used;
av_dlog(s, "%s()\n", __FUNCT... | true | FFmpeg | 8fd8a48263ff1437f9d02d7e78dc63efb9b5ed3a | static int nsv_parse_NSVf_header(AVFormatContext *s)
{
NSVContext *nsv = s->priv_data;
AVIOContext *pb = s->pb;
unsigned int av_unused file_size;
unsigned int size;
int64_t duration;
int strings_size;
int table_entries;
int table_entries_used;
av_dlog(s, "%s()\n", __FUNCT... | {
"code": [
" p = strings = av_mallocz(strings_size + 1);"
],
"line_no": [
91
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
NSVContext *nsv = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
unsigned int VAR_1 file_size;
unsigned int VAR_2;
int64_t duration;
int VAR_3;
int VAR_4;
int VAR_5;
av_dlog(VAR_0, "%VAR_0()\n", __FUNCTION__);
nsv->state ... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"NSVContext *nsv = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"unsigned int VAR_1 file_size;",
"unsigned int VAR_2;",
"int64_t duration;",
"int VAR_3;",
"int VAR_4;",
"int VAR_5;",
"av_dlog(VAR_0, \"%VAR_0()\\n\", __FUNCTION__);",
"nsv->st... | [
0,
0,
0,
0,
0,
0,
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... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
31
],
[
33,
35
],
[
37
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[... |
15,250 | static int flac_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
const uint8_t *buf, int buf_size)
{
FLACContext *s = avctx->priv_data;
int tmp = 0, i, j = 0, input_buf_size = 0;
int16_t *samples_16 = data;
int32_t *samples_32... | false | FFmpeg | 55a727383bab266b757b642aabaa2b066c14e7c7 | static int flac_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
const uint8_t *buf, int buf_size)
{
FLACContext *s = avctx->priv_data;
int tmp = 0, i, j = 0, input_buf_size = 0;
int16_t *samples_16 = data;
int32_t *samples_32... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
const uint8_t *VAR_3, int VAR_4)
{
FLACContext *s = VAR_0->priv_data;
int VAR_5 = 0, VAR_6, VAR_7 = 0, VAR_8 = 0;
int16_t *samples_16 = VAR_1;
int32_t *samples_32 = VAR_1;
... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{",
"FLACContext *s = VAR_0->priv_data;",
"int VAR_5 = 0, VAR_6, VAR_7 = 0, VAR_8 = 0;",
"int16_t *samples_16 = VAR_1;",
"int32_t *samples_32 = VAR_1;",
"int VAR_9= *VAR_2;",
"*VAR_2=0;",
"if (s->max... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37,
39
],
[
41
],
[
45,
47
],
[
51,
53
],
[
57
],
[... |
15,251 | static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt)
{
CFHDContext *s = avctx->priv_data;
GetByteContext gb;
ThreadFrame frame = { .f = data };
AVFrame *pic = data;
int ret = 0, i, j, planes, plane, got_buffer = 0;
int16_t *coe... | false | FFmpeg | 47c93657249f1a4bc8a7aaf2f9f3a33510bee38c | static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt)
{
CFHDContext *s = avctx->priv_data;
GetByteContext gb;
ThreadFrame frame = { .f = data };
AVFrame *pic = data;
int ret = 0, i, j, planes, plane, got_buffer = 0;
int16_t *coe... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
CFHDContext *s = VAR_0->priv_data;
GetByteContext gb;
ThreadFrame frame = { .f = VAR_1 };
AVFrame *pic = VAR_1;
int VAR_4 = 0, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9 = 0;
int16_t *coeff... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"CFHDContext *s = VAR_0->priv_data;",
"GetByteContext gb;",
"ThreadFrame frame = { .f = VAR_1 };",
"AVFrame *pic = VAR_1;",
"int VAR_4 = 0, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9 = 0;",
"int16_t *coeff_data;",
"s->cod... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
15,253 | static void vc1_inv_trans_8x8_altivec(DCTELEM block[64])
{
vector signed short src0, src1, src2, src3, src4, src5, src6, src7;
vector signed int s0, s1, s2, s3, s4, s5, s6, s7;
vector signed int s8, s9, sA, sB, sC, sD, sE, sF;
vector signed int t0, t1, t2, t3, t4, t5, t6, t7;
const vector sign... | false | FFmpeg | 6a786b15c34765ec00be3cd808dafbb041fd5881 | static void vc1_inv_trans_8x8_altivec(DCTELEM block[64])
{
vector signed short src0, src1, src2, src3, src4, src5, src6, src7;
vector signed int s0, s1, s2, s3, s4, s5, s6, s7;
vector signed int s8, s9, sA, sB, sC, sD, sE, sF;
vector signed int t0, t1, t2, t3, t4, t5, t6, t7;
const vector sign... | {
"code": [],
"line_no": []
} | static void FUNC_0(DCTELEM VAR_0[64])
{
vector signed short src0, src1, src2, src3, src4, src5, src6, src7;
vector signed int s0, s1, s2, s3, s4, s5, s6, s7;
vector signed int s8, s9, sA, sB, sC, sD, sE, sF;
vector signed int t0, t1, t2, t3, t4, t5, t6, t7;
const vector signed int VAR_1 = vec_... | [
"static void FUNC_0(DCTELEM VAR_0[64])\n{",
"vector signed short src0, src1, src2, src3, src4, src5, src6, src7;",
"vector signed int s0, s1, s2, s3, s4, s5, s6, s7;",
"vector signed int s8, s9, sA, sB, sC, sD, sE, sF;",
"vector signed int t0, t1, t2, t3, t4, t5, t6, t7;",
"const vector signed 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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
15,254 | static int decode_tilehdr(WmallDecodeCtx *s)
{
uint16_t num_samples[WMALL_MAX_CHANNELS] = { 0 }; /* sum of samples for all currently known subframes of a channel */
uint8_t contains_subframe[WMALL_MAX_CHANNELS]; /* flag indicating if a channel contains the current subframe */
int channels_for_cur_sub... | true | FFmpeg | e2742d6ad69595fd2af36adf0883e37701307f52 | static int decode_tilehdr(WmallDecodeCtx *s)
{
uint16_t num_samples[WMALL_MAX_CHANNELS] = { 0 };
uint8_t contains_subframe[WMALL_MAX_CHANNELS];
int channels_for_cur_subframe = s->num_channels;
int fixed_channel_layout = 0;
int min_channel_len = 0; ... | {
"code": [
" contains_subframe[c] = in_use = 1;",
" if (get_bits1(&s->gb))",
" contains_subframe[c] = in_use = 1;"
],
"line_no": [
53,
57,
59
]
} | static int FUNC_0(WmallDecodeCtx *VAR_0)
{
uint16_t num_samples[WMALL_MAX_CHANNELS] = { 0 };
uint8_t contains_subframe[WMALL_MAX_CHANNELS];
int VAR_1 = VAR_0->num_channels;
int VAR_2 = 0;
int VAR_3 = 0;
int VAR_4, VAR_5;
f... | [
"static int FUNC_0(WmallDecodeCtx *VAR_0)\n{",
"uint16_t num_samples[WMALL_MAX_CHANNELS] = { 0 };",
"uint8_t contains_subframe[WMALL_MAX_CHANNELS];",
"int VAR_1 = VAR_0->num_channels;",
"int VAR_2 = 0;",
"int VAR_3 = 0;",
"int VAR_4, VAR_5;",
"for (VAR_4 = 0; VAR_4 < VAR_0->num_channels; VAR_4++)",
... | [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
27
],
[
29,
31
],
[
37
],
[
39
],
[
45
],
[
47
],
[
49,
51
],
[
53
],
[
55
],
[
57,... |
15,255 | uart_write(void *opaque, hwaddr addr,
uint64_t val64, unsigned int size)
{
XilinxUARTLite *s = opaque;
uint32_t value = val64;
unsigned char ch = value;
addr >>= 2;
switch (addr)
{
case R_STATUS:
hw_error("write to UART STATUS?\n");
break;
... | true | qemu | 6ab3fc32ea640026726bc5f9f4db622d0954fb8a | uart_write(void *opaque, hwaddr addr,
uint64_t val64, unsigned int size)
{
XilinxUARTLite *s = opaque;
uint32_t value = val64;
unsigned char ch = value;
addr >>= 2;
switch (addr)
{
case R_STATUS:
hw_error("write to UART STATUS?\n");
break;
... | {
"code": [
" qemu_chr_fe_write(s->chr, &ch, 1);",
" qemu_chr_fe_write(s->chr, &ch, 1);"
],
"line_no": [
49,
49
]
} | FUNC_0(void *VAR_0, hwaddr VAR_1,
uint64_t VAR_2, unsigned int VAR_3)
{
XilinxUARTLite *s = VAR_0;
uint32_t value = VAR_2;
unsigned char VAR_4 = value;
VAR_1 >>= 2;
switch (VAR_1)
{
case R_STATUS:
hw_error("write to UART STATUS?\n");
break;... | [
"FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned int VAR_3)\n{",
"XilinxUARTLite *s = VAR_0;",
"uint32_t value = VAR_2;",
"unsigned char VAR_4 = value;",
"VAR_1 >>= 2;",
"switch (VAR_1)\n{",
"case R_STATUS:\nhw_error(\"write to UART STATUS?\\n\");",
"break;",
"case R_CTRL:\nif (value & C... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21,
23
],
[
25
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45,
47,
49
],
[
53
],
[
59
... |
15,256 | static CharDriverState *net_vhost_parse_chardev(const NetdevVhostUserOptions *opts)
{
CharDriverState *chr = qemu_chr_find(opts->chardev);
VhostUserChardevProps props;
if (chr == NULL) {
error_report("chardev \"%s\" not found", opts->chardev);
return NULL;
}
/* inspect ch... | true | qemu | 8190483196148f765c65785876f7b893d64b6cdd | static CharDriverState *net_vhost_parse_chardev(const NetdevVhostUserOptions *opts)
{
CharDriverState *chr = qemu_chr_find(opts->chardev);
VhostUserChardevProps props;
if (chr == NULL) {
error_report("chardev \"%s\" not found", opts->chardev);
return NULL;
}
memset(... | {
"code": [
"static CharDriverState *net_vhost_parse_chardev(const NetdevVhostUserOptions *opts)",
" error_report(\"chardev \\\"%s\\\" not found\", opts->chardev);",
" if (qemu_opt_foreach(chr->opts, net_vhost_chardev_opts, &props, NULL)) {",
" error_report(\"chardev \\\"%s\\\" is not... | static CharDriverState *FUNC_0(const NetdevVhostUserOptions *opts)
{
CharDriverState *chr = qemu_chr_find(opts->chardev);
VhostUserChardevProps props;
if (chr == NULL) {
error_report("chardev \"%s\" not found", opts->chardev);
return NULL;
}
memset(&props, 0, sizeof... | [
"static CharDriverState *FUNC_0(const NetdevVhostUserOptions *opts)\n{",
"CharDriverState *chr = qemu_chr_find(opts->chardev);",
"VhostUserChardevProps props;",
"if (chr == NULL) {",
"error_report(\"chardev \\\"%s\\\" not found\", opts->chardev);",
"return NULL;",
"}",
"memset(&props, 0, sizeof(props)... | [
1,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
45
],
[
49
],
[
51
]
] |
15,257 | static int mp3_read_packet(AVFormatContext *s, AVPacket *pkt)
{
int ret, size;
// AVStream *st = s->streams[0];
size= MP3_PACKET_SIZE;
ret= av_get_packet(s->pb, pkt, size);
pkt->stream_index = 0;
if (ret <= 0) {
if(ret<0)
return ret;
return AVERROR... | true | FFmpeg | 7effbee66cf457c62f795d9b9ed3a1110b364b89 | static int mp3_read_packet(AVFormatContext *s, AVPacket *pkt)
{
int ret, size;
size= MP3_PACKET_SIZE;
ret= av_get_packet(s->pb, pkt, size);
pkt->stream_index = 0;
if (ret <= 0) {
if(ret<0)
return ret;
return AVERROR_EOF;
}
if (ret > ID3v1... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
int VAR_2, VAR_3;
VAR_3= MP3_PACKET_SIZE;
VAR_2= av_get_packet(VAR_0->pb, VAR_1, VAR_3);
VAR_1->stream_index = 0;
if (VAR_2 <= 0) {
if(VAR_2<0)
return VAR_2;
return AVERROR_EOF;
}
... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"int VAR_2, VAR_3;",
"VAR_3= MP3_PACKET_SIZE;",
"VAR_2= av_get_packet(VAR_0->pb, VAR_1, VAR_3);",
"VAR_1->stream_index = 0;",
"if (VAR_2 <= 0) {",
"if(VAR_2<0)\nreturn VAR_2;",
"return AVERROR_EOF;",
"}",
"if (VAR_2 > ID3v1_TAG_SIZE ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
15
],
[
20
],
[
22
],
[
24,
26
],
[
28
],
[
30
],
[
34,
36,
38
],
[
46
],
[
48
],
[
50
]
] |
15,259 | static int pcx_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
AVFrame *const p = data;
int compressed, xmin, ymin, xmax, ymax;
unsigned int w, h, bits_per_pixe... | true | FFmpeg | 15ee419b7abaf17f8c662c145fe93d3dbf43282b | static int pcx_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
AVFrame *const p = data;
int compressed, xmin, ymin, xmax, ymax;
unsigned int w, h, bits_per_pixe... | {
"code": [
" scanline = av_malloc(bytes_per_scanline);"
],
"line_no": [
157
]
} | 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;
AVFrame *const p = VAR_1;
int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;
unsigned int VAR_11, VAR_12, VAR_13, VAR_14,... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"AVFrame *const p = VAR_1;",
"int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;",
"unsigned int VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
... |
15,261 | static int mkv_write_trailer(AVFormatContext *s)
{
MatroskaMuxContext *mkv = s->priv_data;
AVIOContext *pb = s->pb;
int64_t currentpos, cuespos;
int ret;
// check if we have an audio packet cached
if (mkv->cur_audio_pkt.size > 0) {
ret = mkv_write_packet_internal(s, &mkv->cur_a... | false | FFmpeg | bda5b6627a558cf10c4d09eeff264289a1370cc1 | static int mkv_write_trailer(AVFormatContext *s)
{
MatroskaMuxContext *mkv = s->priv_data;
AVIOContext *pb = s->pb;
int64_t currentpos, cuespos;
int ret;
if (mkv->cur_audio_pkt.size > 0) {
ret = mkv_write_packet_internal(s, &mkv->cur_audio_pkt);
mkv->cur_audio_pkt.siz... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
MatroskaMuxContext *mkv = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
int64_t currentpos, cuespos;
int VAR_1;
if (mkv->cur_audio_pkt.size > 0) {
VAR_1 = mkv_write_packet_internal(VAR_0, &mkv->cur_audio_pkt);
mkv->cur_audi... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"MatroskaMuxContext *mkv = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"int64_t currentpos, cuespos;",
"int VAR_1;",
"if (mkv->cur_audio_pkt.size > 0) {",
"VAR_1 = mkv_write_packet_internal(VAR_0, &mkv->cur_audio_pkt);",
"mkv->cur_audio_pkt.size ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
... |
15,263 | int is_adx(const unsigned char *buf,size_t bufsize)
{
int offset;
if (buf[0]!=0x80) return 0;
offset = (read_long(buf)^0x80000000)+4;
if (bufsize<offset || memcmp(buf+offset-6,"(c)CRI",6)) return 0;
return offset;
}
| true | FFmpeg | f19af812a32c1398d48c3550d11dbc6aafbb2bfc | int is_adx(const unsigned char *buf,size_t bufsize)
{
int offset;
if (buf[0]!=0x80) return 0;
offset = (read_long(buf)^0x80000000)+4;
if (bufsize<offset || memcmp(buf+offset-6,"(c)CRI",6)) return 0;
return offset;
}
| {
"code": [
"\tint\toffset;",
"\tif (buf[0]!=0x80) return 0;",
"\toffset = (read_long(buf)^0x80000000)+4;",
"\tif (bufsize<offset || memcmp(buf+offset-6,\"(c)CRI\",6)) return 0;",
"\treturn offset;",
"\treturn offset;"
],
"line_no": [
5,
9,
11,
13,
15,
15
]
} | int FUNC_0(const unsigned char *VAR_0,size_t VAR_1)
{
int VAR_2;
if (VAR_0[0]!=0x80) return 0;
VAR_2 = (read_long(VAR_0)^0x80000000)+4;
if (VAR_1<VAR_2 || memcmp(VAR_0+VAR_2-6,"(c)CRI",6)) return 0;
return VAR_2;
}
| [
"int FUNC_0(const unsigned char *VAR_0,size_t VAR_1)\n{",
"int\tVAR_2;",
"if (VAR_0[0]!=0x80) return 0;",
"VAR_2 = (read_long(VAR_0)^0x80000000)+4;",
"if (VAR_1<VAR_2 || memcmp(VAR_0+VAR_2-6,\"(c)CRI\",6)) return 0;",
"return VAR_2;",
"}"
] | [
0,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
15,265 | rfc3986_parse_port(URI *uri, const char **str)
{
const char *cur = *str;
if (ISA_DIGIT(cur)) {
if (uri != NULL)
uri->port = 0;
while (ISA_DIGIT(cur)) {
if (uri != NULL)
uri->port = uri->port * 10 + (*cur - '0');
cur++;
}
*str = cur;
return(0);
}
return(1);
}
| true | qemu | 2b21233061696feed434317a70e0a8b74f956ec8 | rfc3986_parse_port(URI *uri, const char **str)
{
const char *cur = *str;
if (ISA_DIGIT(cur)) {
if (uri != NULL)
uri->port = 0;
while (ISA_DIGIT(cur)) {
if (uri != NULL)
uri->port = uri->port * 10 + (*cur - '0');
cur++;
}
*str = cur;
return(0);
}
return(1);
}
| {
"code": [
"\tif (uri != NULL)",
"\t uri->port = 0;",
"\twhile (ISA_DIGIT(cur)) {",
"\t if (uri != NULL)",
"\t\turi->port = uri->port * 10 + (*cur - '0');",
"\t cur++;",
"\t*str = cur;",
"\treturn(0);",
" return(1);"
],
"line_no": [
11,
13,
15,
17,
... | FUNC_0(URI *VAR_0, const char **VAR_1)
{
const char *VAR_2 = *VAR_1;
if (ISA_DIGIT(VAR_2)) {
if (VAR_0 != NULL)
VAR_0->port = 0;
while (ISA_DIGIT(VAR_2)) {
if (VAR_0 != NULL)
VAR_0->port = VAR_0->port * 10 + (*VAR_2 - '0');
VAR_2++;
}
*VAR_1 = VAR_2;
return(0);
}
re... | [
"FUNC_0(URI *VAR_0, const char **VAR_1)\n{",
"const char *VAR_2 = *VAR_1;",
"if (ISA_DIGIT(VAR_2)) {",
"if (VAR_0 != NULL)\nVAR_0->port = 0;",
"while (ISA_DIGIT(VAR_2)) {",
"if (VAR_0 != NULL)\nVAR_0->port = VAR_0->port * 10 + (*VAR_2 - '0');",
"VAR_2++;",
"}",
"*VAR_1 = VAR_2;",
"return(0);",
"... | [
0,
0,
0,
1,
1,
1,
1,
0,
1,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
15,266 | static void encode_422_bitstream(HYuvContext *s, int count){
int i;
count/=2;
if(s->flags&CODEC_FLAG_PASS1){
for(i=0; i<count; i++){
s->stats[0][ s->temp[0][2*i ] ]++;
s->stats[1][ s->temp[1][ i ] ]++;
s->stats[0][ s->temp[0][2*i+1] ]++;
... | true | FFmpeg | 0ecca7a49f8e254c12a3a1de048d738bfbb614c6 | static void encode_422_bitstream(HYuvContext *s, int count){
int i;
count/=2;
if(s->flags&CODEC_FLAG_PASS1){
for(i=0; i<count; i++){
s->stats[0][ s->temp[0][2*i ] ]++;
s->stats[1][ s->temp[1][ i ] ]++;
s->stats[0][ s->temp[0][2*i+1] ]++;
... | {
"code": [
"static void encode_422_bitstream(HYuvContext *s, int count){"
],
"line_no": [
1
]
} | static void FUNC_0(HYuvContext *VAR_0, int VAR_1){
int VAR_2;
VAR_1/=2;
if(VAR_0->flags&CODEC_FLAG_PASS1){
for(VAR_2=0; VAR_2<VAR_1; VAR_2++){
VAR_0->stats[0][ VAR_0->temp[0][2*VAR_2 ] ]++;
VAR_0->stats[1][ VAR_0->temp[1][ VAR_2 ] ]++;
VAR_0->stats... | [
"static void FUNC_0(HYuvContext *VAR_0, int VAR_1){",
"int VAR_2;",
"VAR_1/=2;",
"if(VAR_0->flags&CODEC_FLAG_PASS1){",
"for(VAR_2=0; VAR_2<VAR_1; VAR_2++){",
"VAR_0->stats[0][ VAR_0->temp[0][2*VAR_2 ] ]++;",
"VAR_0->stats[1][ VAR_0->temp[1][ VAR_2 ] ]++;",
"VAR_0->stats[0][ VAR_0->temp[0][2*VAR_2+1... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
... |
15,267 | static int usb_net_handle_dataout(USBNetState *s, USBPacket *p)
{
int ret = p->len;
int sz = sizeof(s->out_buf) - s->out_ptr;
struct rndis_packet_msg_type *msg =
(struct rndis_packet_msg_type *) s->out_buf;
uint32_t len;
#ifdef TRAFFIC_DEBUG
fprintf(stderr, "usbnet: data out le... | true | qemu | 4f4321c11ff6e98583846bfd6f0e81954924b003 | static int usb_net_handle_dataout(USBNetState *s, USBPacket *p)
{
int ret = p->len;
int sz = sizeof(s->out_buf) - s->out_ptr;
struct rndis_packet_msg_type *msg =
(struct rndis_packet_msg_type *) s->out_buf;
uint32_t len;
#ifdef TRAFFIC_DEBUG
fprintf(stderr, "usbnet: data out le... | {
"code": [
" int i;",
" fprintf(stderr, \":\");",
" if (!(i & 15))",
" fprintf(stderr, \"\\n%04x:\", i);",
" fprintf(stderr, \" %02x\", p->data[i]);",
" fprintf(stderr, \"\\n\\n\");",
" int i;",
" fprintf(stderr, ... | static int FUNC_0(USBNetState *VAR_0, USBPacket *VAR_1)
{
int VAR_2 = VAR_1->len;
int VAR_3 = sizeof(VAR_0->out_buf) - VAR_0->out_ptr;
struct rndis_packet_msg_type *VAR_4 =
(struct rndis_packet_msg_type *) VAR_0->out_buf;
uint32_t len;
#ifdef TRAFFIC_DEBUG
fprintf(stderr, "usbn... | [
"static int FUNC_0(USBNetState *VAR_0, USBPacket *VAR_1)\n{",
"int VAR_2 = VAR_1->len;",
"int VAR_3 = sizeof(VAR_0->out_buf) - VAR_0->out_ptr;",
"struct rndis_packet_msg_type *VAR_4 =\n(struct rndis_packet_msg_type *) VAR_0->out_buf;",
"uint32_t len;",
"#ifdef TRAFFIC_DEBUG\nfprintf(stderr, \"usbnet: data... | [
0,
1,
0,
0,
0,
1,
0,
1,
1,
1,
1,
1,
0,
1,
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
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
45,
47
],
[
49
],
[... |
15,268 | static DisasJumpType translate_one(DisasContext *ctx, uint32_t insn)
{
int32_t disp21, disp16, disp12 __attribute__((unused));
uint16_t fn11;
uint8_t opc, ra, rb, rc, fpfn, fn7, lit;
bool islit, real_islit;
TCGv va, vb, vc, tmp, tmp2;
TCGv_i32 t32;
DisasJumpType ret;
/* Decode... | true | qemu | c5a49c63fa26e8825ad101dfe86339ae4c216539 | static DisasJumpType translate_one(DisasContext *ctx, uint32_t insn)
{
int32_t disp21, disp16, disp12 __attribute__((unused));
uint16_t fn11;
uint8_t opc, ra, rb, rc, fpfn, fn7, lit;
bool islit, real_islit;
TCGv va, vb, vc, tmp, tmp2;
TCGv_i32 t32;
DisasJumpType ret;
opc... | {
"code": [
" if (ctx->base.tb->cflags & CF_USE_ICOUNT) {"
],
"line_no": [
1859
]
} | static DisasJumpType FUNC_0(DisasContext *ctx, uint32_t insn)
{
int32_t disp21, disp16, disp12 __attribute__((unused));
uint16_t fn11;
uint8_t opc, ra, rb, rc, fpfn, fn7, lit;
bool islit, real_islit;
TCGv va, vb, vc, tmp, tmp2;
TCGv_i32 t32;
DisasJumpType ret;
opc = extr... | [
"static DisasJumpType FUNC_0(DisasContext *ctx, uint32_t insn)\n{",
"int32_t disp21, disp16, disp12 __attribute__((unused));",
"uint16_t fn11;",
"uint8_t opc, ra, rb, rc, fpfn, fn7, lit;",
"bool islit, real_islit;",
"TCGv va, vb, vc, tmp, tmp2;",
"TCGv_i32 t32;",
"DisasJumpType ret;",
"opc = extract... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
... |
15,269 | static target_ulong h_protect(PowerPCCPU *cpu, sPAPREnvironment *spapr,
target_ulong opcode, target_ulong *args)
{
CPUPPCState *env = &cpu->env;
target_ulong flags = args[0];
target_ulong pte_index = args[1];
target_ulong avpn = args[2];
hwaddr hpte;
target_... | true | qemu | f3c75d42adbba553eaf218a832d4fbea32c8f7b8 | static target_ulong h_protect(PowerPCCPU *cpu, sPAPREnvironment *spapr,
target_ulong opcode, target_ulong *args)
{
CPUPPCState *env = &cpu->env;
target_ulong flags = args[0];
target_ulong pte_index = args[1];
target_ulong avpn = args[2];
hwaddr hpte;
target_... | {
"code": [
" if ((pte_index * HASH_PTE_SIZE_64) & ~env->htab_mask) {",
" if ((pte_index * HASH_PTE_SIZE_64) & ~env->htab_mask) {",
" if ((pte_index * HASH_PTE_SIZE_64) & ~env->htab_mask) {"
],
"line_no": [
21,
21,
21
]
} | static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPREnvironment *spapr,
target_ulong opcode, target_ulong *args)
{
CPUPPCState *env = &cpu->env;
target_ulong flags = args[0];
target_ulong pte_index = args[1];
target_ulong avpn = args[2];
hwaddr hpte;
target_ulo... | [
"static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPREnvironment *spapr,\ntarget_ulong opcode, target_ulong *args)\n{",
"CPUPPCState *env = &cpu->env;",
"target_ulong flags = args[0];",
"target_ulong pte_index = args[1];",
"target_ulong avpn = args[2];",
"hwaddr hpte;",
"target_ulong v, r, rb;",
"if ((pt... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35
],
[
39,
41
],
[
43
],
[
45
],
[
49,
51
],
[
53
],
[... |
15,270 | void do_op_602_mfrom (void)
{
if (likely(T0 < 602)) {
#ifdef USE_MFROM_ROM_TABLE
#include "mfrom_table.c"
T0 = mfrom_ROM_table[T0];
#else
double d;
/* Extremly decomposed:
* -T0 / 256
* T0 = 256 * log10(10 + 1.0) + 0.5
*/
... | true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | void do_op_602_mfrom (void)
{
if (likely(T0 < 602)) {
#ifdef USE_MFROM_ROM_TABLE
#include "mfrom_table.c"
T0 = mfrom_ROM_table[T0];
#else
double d;
d = T0;
d = float64_div(d, 256, &env->fp_status);
d = float64_chs(d);
d = exp10(d);
... | {
"code": [
"#else",
" } else {",
" } else {",
" } else {",
" } else {",
" } else {",
" } else {",
" } else {",
" } else {",
" } else {",
" } else {",
"#endif",
"#ifdef USE_MFROM_ROM_TABLE",
"#else",
"#endif"
],
"line_no": [... | void FUNC_0 (void)
{
if (likely(T0 < 602)) {
#ifdef USE_MFROM_ROM_TABLE
#include "mfrom_table.c"
T0 = mfrom_ROM_table[T0];
#else
double VAR_0;
VAR_0 = T0;
VAR_0 = float64_div(VAR_0, 256, &env->fp_status);
VAR_0 = float64_chs(VAR_0);
VAR_0 = ... | [
"void FUNC_0 (void)\n{",
"if (likely(T0 < 602)) {",
"#ifdef USE_MFROM_ROM_TABLE\n#include \"mfrom_table.c\"\nT0 = mfrom_ROM_table[T0];",
"#else\ndouble VAR_0;",
"VAR_0 = T0;",
"VAR_0 = float64_div(VAR_0, 256, &env->fp_status);",
"VAR_0 = float64_chs(VAR_0);",
"VAR_0 = exp10(VAR_0);",
"VAR_0 = float6... | [
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11
],
[
13,
15
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
]
] |
15,271 | static int mpc8_decode_frame(AVCodecContext * avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MPCContext *c = avctx->priv_data;
GetBitContext gb2, *gb = &gb2;
int i, j,... | true | FFmpeg | 9bd854b1ff342f82efa6d2ad4e8fefddce5fa731 | static int mpc8_decode_frame(AVCodecContext * avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MPCContext *c = avctx->priv_data;
GetBitContext gb2, *gb = &gb2;
int i, j,... | {
"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;
MPCContext *c = VAR_0->priv_data;
GetBitContext gb2, *gb = &gb2;
int VAR_6, VAR_7, VAR_8... | [
"static int FUNC_0(AVCodecContext * VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"MPCContext *c = VAR_0->priv_data;",
"GetBitContext gb2, *gb = &gb2;",
"int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;",
"Band *bands =... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
45
],
[
47
],
[
49
... |
15,272 | static void backup_set_speed(BlockJob *job, int64_t speed, Error **errp)
{
BackupBlockJob *s = container_of(job, BackupBlockJob, common);
if (speed < 0) {
error_setg(errp, QERR_INVALID_PARAMETER, "speed");
return;
}
ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE, SLICE_... | true | qemu | f3e4ce4af336f2ea306fa0f40ec1a5149864ca8c | static void backup_set_speed(BlockJob *job, int64_t speed, Error **errp)
{
BackupBlockJob *s = container_of(job, BackupBlockJob, common);
if (speed < 0) {
error_setg(errp, QERR_INVALID_PARAMETER, "speed");
return;
}
ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE, SLICE_... | {
"code": [
" ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE, SLICE_TIME);",
" ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE, SLICE_TIME);",
" ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE, SLICE_TIME);",
" ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZ... | static void FUNC_0(BlockJob *VAR_0, int64_t VAR_1, Error **VAR_2)
{
BackupBlockJob *s = container_of(VAR_0, BackupBlockJob, common);
if (VAR_1 < 0) {
error_setg(VAR_2, QERR_INVALID_PARAMETER, "VAR_1");
return;
}
ratelimit_set_speed(&s->limit, VAR_1 / BDRV_SECTOR_SIZE, SLICE_TIME... | [
"static void FUNC_0(BlockJob *VAR_0, int64_t VAR_1, Error **VAR_2)\n{",
"BackupBlockJob *s = container_of(VAR_0, BackupBlockJob, common);",
"if (VAR_1 < 0) {",
"error_setg(VAR_2, QERR_INVALID_PARAMETER, \"VAR_1\");",
"return;",
"}",
"ratelimit_set_speed(&s->limit, VAR_1 / BDRV_SECTOR_SIZE, SLICE_TIME);"... | [
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
15,273 | static struct XenDevice *xen_be_get_xendev(const char *type, int dom, int dev,
struct XenDevOps *ops)
{
struct XenDevice *xendev;
char *dom0;
xendev = xen_be_find_xendev(type, dom, dev);
if (xendev) {
return xendev;
}
/* init new xe... | true | qemu | 33876dfad64bc481f59c5e9ccf60db78624c4b93 | static struct XenDevice *xen_be_get_xendev(const char *type, int dom, int dev,
struct XenDevOps *ops)
{
struct XenDevice *xendev;
char *dom0;
xendev = xen_be_find_xendev(type, dom, dev);
if (xendev) {
return xendev;
}
xendev =... | {
"code": [
" char *dom0;",
" dom0 = xs_get_domain_path(xenstore, 0);",
" snprintf(xendev->be, sizeof(xendev->be), \"%s/backend/%s/%d/%d\",",
" dom0, xendev->type, xendev->dom, xendev->dev);",
" free(dom0);",
" dom0 = xs_get_domain_path(xenstore, 0);",
" free(... | static struct XenDevice *FUNC_0(const char *VAR_0, int VAR_1, int VAR_2,
struct XenDevOps *VAR_3)
{
struct XenDevice *VAR_4;
char *VAR_5;
VAR_4 = xen_be_find_xendev(VAR_0, VAR_1, VAR_2);
if (VAR_4) {
return VAR_4;
}
VAR_4 = g_... | [
"static struct XenDevice *FUNC_0(const char *VAR_0, int VAR_1, int VAR_2,\nstruct XenDevOps *VAR_3)\n{",
"struct XenDevice *VAR_4;",
"char *VAR_5;",
"VAR_4 = xen_be_find_xendev(VAR_0, VAR_1, VAR_2);",
"if (VAR_4) {",
"return VAR_4;",
"}",
"VAR_4 = g_malloc0(VAR_3->size);",
"VAR_4->VAR_0 = VAR_0;",
... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39,
41
],
[
43,
45
],
[
47
],
[
51
],
[
53
],
[... |
15,274 | int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
AVPacket *avpkt,
const AVFrame *frame,
int *got_packet_ptr)
{
AVFrame *extended_frame = NULL;
AVFrame *pa... | true | FFmpeg | 0c800b27611cadd64f46fd1bbd9dc8bb87fe168b | int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
AVPacket *avpkt,
const AVFrame *frame,
int *got_packet_ptr)
{
AVFrame *extended_frame = NULL;
AVFrame *pa... | {
"code": [],
"line_no": []
} | int VAR_0 avcodec_encode_audio2(AVCodecContext *avctx,
AVPacket *avpkt,
const AVFrame *frame,
int *got_packet_ptr)
{
AVFrame *extended_frame = NULL;
AVFrame *padded_frame = N... | [
"int VAR_0 avcodec_encode_audio2(AVCodecContext *avctx,\nAVPacket *avpkt,\nconst AVFrame *frame,\nint *got_packet_ptr)\n{",
"AVFrame *extended_frame = NULL;",
"AVFrame *padded_frame = NULL;",
"int ret;",
"AVPacket user_pkt = *avpkt;",
"int needs_realloc = !user_pkt.data;",
"*got_packet_ptr = 0;",
"if ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
23
],
[
24
],
[
25
],... |
15,275 | static int iff_read_packet(AVFormatContext *s,
AVPacket *pkt)
{
IffDemuxContext *iff = s->priv_data;
AVIOContext *pb = s->pb;
AVStream *st = s->streams[0];
int ret;
int64_t pos = avio_tell(pb);
if (pos >= iff->body_end)
return AVERROR_EOF;
if ... | true | FFmpeg | 2b31a9c613f95383d5106f8c1cbcee8eb291090f | static int iff_read_packet(AVFormatContext *s,
AVPacket *pkt)
{
IffDemuxContext *iff = s->priv_data;
AVIOContext *pb = s->pb;
AVStream *st = s->streams[0];
int ret;
int64_t pos = avio_tell(pb);
if (pos >= iff->body_end)
return AVERROR_EOF;
if ... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0,
AVPacket *VAR_1)
{
IffDemuxContext *iff = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
AVStream *st = VAR_0->streams[0];
int VAR_2;
int64_t pos = avio_tell(pb);
if (pos >= iff->body_end)
return AVERROR_EOF;... | [
"static int FUNC_0(AVFormatContext *VAR_0,\nAVPacket *VAR_1)\n{",
"IffDemuxContext *iff = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"AVStream *st = VAR_0->streams[0];",
"int VAR_2;",
"int64_t pos = avio_tell(pb);",
"if (pos >= iff->body_end)\nreturn AVERROR_EOF;",
"if (st->codec->codec_type ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
51
... |
15,276 | static void virtio_blk_save_device(VirtIODevice *vdev, QEMUFile *f)
{
VirtIOBlock *s = VIRTIO_BLK(vdev);
VirtIOBlockReq *req = s->rq;
while (req) {
qemu_put_sbyte(f, 1);
qemu_put_buffer(f, (unsigned char *)req->elem,
sizeof(VirtQueueElement));
req = ... | true | qemu | f897bf751fbd95e4015b95d202c706548586813a | static void virtio_blk_save_device(VirtIODevice *vdev, QEMUFile *f)
{
VirtIOBlock *s = VIRTIO_BLK(vdev);
VirtIOBlockReq *req = s->rq;
while (req) {
qemu_put_sbyte(f, 1);
qemu_put_buffer(f, (unsigned char *)req->elem,
sizeof(VirtQueueElement));
req = ... | {
"code": [
" qemu_put_buffer(f, (unsigned char *)req->elem,"
],
"line_no": [
15
]
} | static void FUNC_0(VirtIODevice *VAR_0, QEMUFile *VAR_1)
{
VirtIOBlock *s = VIRTIO_BLK(VAR_0);
VirtIOBlockReq *req = s->rq;
while (req) {
qemu_put_sbyte(VAR_1, 1);
qemu_put_buffer(VAR_1, (unsigned char *)req->elem,
sizeof(VirtQueueElement));
req = re... | [
"static void FUNC_0(VirtIODevice *VAR_0, QEMUFile *VAR_1)\n{",
"VirtIOBlock *s = VIRTIO_BLK(VAR_0);",
"VirtIOBlockReq *req = s->rq;",
"while (req) {",
"qemu_put_sbyte(VAR_1, 1);",
"qemu_put_buffer(VAR_1, (unsigned char *)req->elem,\nsizeof(VirtQueueElement));",
"req = req->next;",
"}",
"qemu_put_sby... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
15,277 | static inline void RENAME(yuv2packedX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
uint8_t *dest, long dstW, long dstY)
{
#ifdef HAVE_MMX
long dummy=0;
if(c->flags & SWS_ACCURATE_RND){
swit... | true | FFmpeg | 2da0d70d5eebe42f9fcd27ee554419ebe2a5da06 | static inline void RENAME(yuv2packedX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
uint8_t *dest, long dstW, long dstY)
{
#ifdef HAVE_MMX
long dummy=0;
if(c->flags & SWS_ACCURATE_RND){
swit... | {
"code": [
"\t\t\t\t int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,",
"\t\t\t);",
"\t\t\t);",
"\t\t\t\t int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,",
"\t\t\t uint8_t *dest, long dstW, long dstY)",
" if(c->flags & SWS_ACCURATE_RND){",
" swi... | static inline void FUNC_0(yuv2packedX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,
int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,
uint8_t *dest, long dstW, long dstY)
{
#ifdef HAVE_MMX
long dummy=0;
if(c->flags & SWS_ACCURATE_RND){
swit... | [
"static inline void FUNC_0(yuv2packedX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,\nint16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,\nuint8_t *dest, long dstW, long dstY)\n{",
"#ifdef HAVE_MMX\nlong dummy=0;",
"if(c->flags & SWS_ACCURATE_RND){",
"switch(c->dstFormat){",
... | [
1,
0,
1,
1,
1,
1,
0,
1,
1,
1,
0,
0,
1,
1,
1,
0,
1,
1,
1,
0,
0,
1,
1,
0
] | [
[
1,
3,
5,
7
],
[
9,
11
],
[
13
],
[
15
],
[
17,
19,
21,
23,
27,
29
],
[
31,
33,
35,
37,
39,
41,
47,
49,
51,
53,
55
],
[
57
],
[
59,
61,
63,
67,
69,
71,
73,... |
15,278 | static void virtio_net_save(QEMUFile *f, void *opaque)
{
VirtIONet *n = opaque;
virtio_save(&n->vdev, f);
qemu_put_buffer(f, n->mac, ETH_ALEN);
qemu_put_be32(f, n->tx_timer_active);
qemu_put_be32(f, n->mergeable_rx_bufs);
qemu_put_be16(f, n->status);
qemu_put_byte(f, n->promisc);... | true | qemu | 3a330134b3effa3494051763b38f12a24715d53a | static void virtio_net_save(QEMUFile *f, void *opaque)
{
VirtIONet *n = opaque;
virtio_save(&n->vdev, f);
qemu_put_buffer(f, n->mac, ETH_ALEN);
qemu_put_be32(f, n->tx_timer_active);
qemu_put_be32(f, n->mergeable_rx_bufs);
qemu_put_be16(f, n->status);
qemu_put_byte(f, n->promisc);... | {
"code": [],
"line_no": []
} | static void FUNC_0(QEMUFile *VAR_0, void *VAR_1)
{
VirtIONet *n = VAR_1;
virtio_save(&n->vdev, VAR_0);
qemu_put_buffer(VAR_0, n->mac, ETH_ALEN);
qemu_put_be32(VAR_0, n->tx_timer_active);
qemu_put_be32(VAR_0, n->mergeable_rx_bufs);
qemu_put_be16(VAR_0, n->status);
qemu_put_byte(VA... | [
"static void FUNC_0(QEMUFile *VAR_0, void *VAR_1)\n{",
"VirtIONet *n = VAR_1;",
"virtio_save(&n->vdev, VAR_0);",
"qemu_put_buffer(VAR_0, n->mac, ETH_ALEN);",
"qemu_put_be32(VAR_0, n->tx_timer_active);",
"qemu_put_be32(VAR_0, n->mergeable_rx_bufs);",
"qemu_put_be16(VAR_0, n->status);",
"qemu_put_byte(V... | [
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... |
15,280 | static int set_palette(AVFrame * frame, const uint8_t * palette_buffer, int buf_size)
{
uint32_t * palette = (uint32_t *)frame->data[1];
int a;
if (buf_size < 256*3)
return AVERROR_INVALIDDATA;
for(a = 0; a < 256; a++){
palette[a] = AV_RB24(&palette_buffer[a * 3]) * 4;
}
... | true | FFmpeg | 29112db8c0f65886e69cbbd6f4e5c44d2d14d238 | static int set_palette(AVFrame * frame, const uint8_t * palette_buffer, int buf_size)
{
uint32_t * palette = (uint32_t *)frame->data[1];
int a;
if (buf_size < 256*3)
return AVERROR_INVALIDDATA;
for(a = 0; a < 256; a++){
palette[a] = AV_RB24(&palette_buffer[a * 3]) * 4;
}
... | {
"code": [
"static int set_palette(AVFrame * frame, const uint8_t * palette_buffer, int buf_size)",
" uint32_t * palette = (uint32_t *)frame->data[1];",
" if (buf_size < 256*3)",
" palette[a] = AV_RB24(&palette_buffer[a * 3]) * 4;",
" frame->palette_has_changed = 1;"
],
"line_... | static int FUNC_0(AVFrame * VAR_0, const uint8_t * VAR_1, int VAR_2)
{
uint32_t * palette = (uint32_t *)VAR_0->data[1];
int VAR_3;
if (VAR_2 < 256*3)
return AVERROR_INVALIDDATA;
for(VAR_3 = 0; VAR_3 < 256; VAR_3++){
palette[VAR_3] = AV_RB24(&VAR_1[VAR_3 * 3]) * 4;
}
... | [
"static int FUNC_0(AVFrame * VAR_0, const uint8_t * VAR_1, int VAR_2)\n{",
"uint32_t * palette = (uint32_t *)VAR_0->data[1];",
"int VAR_3;",
"if (VAR_2 < 256*3)\nreturn AVERROR_INVALIDDATA;",
"for(VAR_3 = 0; VAR_3 < 256; VAR_3++){",
"palette[VAR_3] = AV_RB24(&VAR_1[VAR_3 * 3]) * 4;",
"}",
"VAR_0->pale... | [
1,
1,
0,
1,
0,
1,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
15,281 | static int build_def_list(Picture *def, Picture **in, int len, int is_long, int sel)
{
int i[2] = { 0 };
int index = 0;
while (i[0] < len || i[1] < len) {
while (i[0] < len && !(in[i[0]] && (in[i[0]]->reference & sel)))
i[0]++;
while (i[1] < len && !(in[i[1]] && (in[i[1... | true | FFmpeg | 4d388c0cd05dd4de545e8ea333ab4de7d67ad12d | static int build_def_list(Picture *def, Picture **in, int len, int is_long, int sel)
{
int i[2] = { 0 };
int index = 0;
while (i[0] < len || i[1] < len) {
while (i[0] < len && !(in[i[0]] && (in[i[0]]->reference & sel)))
i[0]++;
while (i[1] < len && !(in[i[1]] && (in[i[1... | {
"code": [
"static int build_def_list(Picture *def, Picture **in, int len, int is_long, int sel)",
" while (i[0] < len || i[1] < len) {",
" if (i[0] < len) {",
" if (i[1] < len) {"
],
"line_no": [
1,
11,
21,
29
]
} | static int FUNC_0(Picture *VAR_0, Picture **VAR_1, int VAR_2, int VAR_3, int VAR_4)
{
int VAR_5[2] = { 0 };
int VAR_6 = 0;
while (VAR_5[0] < VAR_2 || VAR_5[1] < VAR_2) {
while (VAR_5[0] < VAR_2 && !(VAR_1[VAR_5[0]] && (VAR_1[VAR_5[0]]->reference & VAR_4)))
VAR_5[0]++;
w... | [
"static int FUNC_0(Picture *VAR_0, Picture **VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{",
"int VAR_5[2] = { 0 };",
"int VAR_6 = 0;",
"while (VAR_5[0] < VAR_2 || VAR_5[1] < VAR_2) {",
"while (VAR_5[0] < VAR_2 && !(VAR_1[VAR_5[0]] && (VAR_1[VAR_5[0]]->reference & VAR_4)))\nVAR_5[0]++;",
"while (VAR_5[1] < ... | [
1,
0,
0,
1,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
]
] |
15,282 | static void vnc_init_timer(VncDisplay *vd)
{
vd->timer_interval = VNC_REFRESH_INTERVAL_BASE;
if (vd->timer == NULL && !QTAILQ_EMPTY(&vd->clients)) {
vd->timer = qemu_new_timer_ms(rt_clock, vnc_refresh, vd);
vnc_dpy_resize(dcl, vd->ds);
vnc_refresh(vd);
}
}
| true | qemu | 21ef45d71221b4577330fe3aacfb06afad91ad46 | static void vnc_init_timer(VncDisplay *vd)
{
vd->timer_interval = VNC_REFRESH_INTERVAL_BASE;
if (vd->timer == NULL && !QTAILQ_EMPTY(&vd->clients)) {
vd->timer = qemu_new_timer_ms(rt_clock, vnc_refresh, vd);
vnc_dpy_resize(dcl, vd->ds);
vnc_refresh(vd);
}
}
| {
"code": [
" vnc_dpy_resize(dcl, vd->ds);"
],
"line_no": [
11
]
} | static void FUNC_0(VncDisplay *VAR_0)
{
VAR_0->timer_interval = VNC_REFRESH_INTERVAL_BASE;
if (VAR_0->timer == NULL && !QTAILQ_EMPTY(&VAR_0->clients)) {
VAR_0->timer = qemu_new_timer_ms(rt_clock, vnc_refresh, VAR_0);
vnc_dpy_resize(dcl, VAR_0->ds);
vnc_refresh(VAR_0);
}
}
| [
"static void FUNC_0(VncDisplay *VAR_0)\n{",
"VAR_0->timer_interval = VNC_REFRESH_INTERVAL_BASE;",
"if (VAR_0->timer == NULL && !QTAILQ_EMPTY(&VAR_0->clients)) {",
"VAR_0->timer = qemu_new_timer_ms(rt_clock, vnc_refresh, VAR_0);",
"vnc_dpy_resize(dcl, VAR_0->ds);",
"vnc_refresh(VAR_0);",
"}",
"}"
] | [
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
15,283 | static int adpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr)
{
int n, i, ch, st, pkt_size, ret;
const int16_t *samples;
int16_t **samples_p;
uint8_t *dst;
ADPCMEncodeContext *c = avctx->priv_data;
uint8_t *... | false | FFmpeg | bcaf64b605442e1622d16da89d4ec0e7730b8a8c | static int adpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr)
{
int n, i, ch, st, pkt_size, ret;
const int16_t *samples;
int16_t **samples_p;
uint8_t *dst;
ADPCMEncodeContext *c = avctx->priv_data;
uint8_t *... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,
const AVFrame *VAR_2, int *VAR_3)
{
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
const int16_t *VAR_10;
int16_t **samples_p;
uint8_t *dst;
ADPCMEncodeContext *c = VAR_0->priv_data;
uint8_t *buf;
... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"const int16_t *VAR_10;",
"int16_t **samples_p;",
"uint8_t *dst;",
"ADPCMEncodeContext *c = VAR_0->priv_data;",
"uint8_t *buf;",
"VAR_10 = (const int16_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
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
33,
35
],
[
37,
39
],
[
41
],
[
45
],
[
47,
49
],
[
51
],
[... |
15,284 | static inline void gen_intermediate_code_internal(OpenRISCCPU *cpu,
TranslationBlock *tb,
int search_pc)
{
struct DisasContext ctx, *dc = &ctx;
uint16_t *gen_opc_end;
uint32_t pc_start;
int j, k;
... | true | qemu | 632314c49ce20ee9c974f07544d9125fbbbfbe1b | static inline void gen_intermediate_code_internal(OpenRISCCPU *cpu,
TranslationBlock *tb,
int search_pc)
{
struct DisasContext ctx, *dc = &ctx;
uint16_t *gen_opc_end;
uint32_t pc_start;
int j, k;
... | {
"code": [
" qemu_log_try_set_file(stderr);",
" qemu_log_try_set_file(stderr);",
" qemu_log_try_set_file(stderr);",
" qemu_log_try_set_file(stderr);"
],
"line_no": [
25,
25,
25,
25
]
} | static inline void FUNC_0(OpenRISCCPU *VAR_0,
TranslationBlock *VAR_1,
int VAR_2)
{
struct DisasContext VAR_3, *VAR_4 = &VAR_3;
uint16_t *gen_opc_end;
uint32_t pc_start;
int VAR_5, VAR_6;
uint... | [
"static inline void FUNC_0(OpenRISCCPU *VAR_0,\nTranslationBlock *VAR_1,\nint VAR_2)\n{",
"struct DisasContext VAR_3, *VAR_4 = &VAR_3;",
"uint16_t *gen_opc_end;",
"uint32_t pc_start;",
"int VAR_5, VAR_6;",
"uint32_t next_page_start;",
"int VAR_7;",
"int VAR_8;",
"qemu_log_try_set_file(stderr);",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
15,285 | static int ism_write_header(AVFormatContext *s)
{
SmoothStreamingContext *c = s->priv_data;
int ret = 0, i;
AVOutputFormat *oformat;
mkdir(s->filename, 0777);
oformat = av_guess_format("ismv", NULL, NULL);
if (!oformat) {
ret = AVERROR_MUXER_NOT_FOUND;
goto fail;
... | true | FFmpeg | 803e82276b3716bf6012ec69e8854dae14a4fd2b | static int ism_write_header(AVFormatContext *s)
{
SmoothStreamingContext *c = s->priv_data;
int ret = 0, i;
AVOutputFormat *oformat;
mkdir(s->filename, 0777);
oformat = av_guess_format("ismv", NULL, NULL);
if (!oformat) {
ret = AVERROR_MUXER_NOT_FOUND;
goto fail;
... | {
"code": [
" mkdir(s->filename, 0777);",
" mkdir(s->filename, 0777);",
" mkdir(os->dirname, 0777);"
],
"line_no": [
13,
13,
67
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
SmoothStreamingContext *c = VAR_0->priv_data;
int VAR_1 = 0, VAR_2;
AVOutputFormat *oformat;
mkdir(VAR_0->filename, 0777);
oformat = av_guess_format("ismv", NULL, NULL);
if (!oformat) {
VAR_1 = AVERROR_MUXER_NOT_FOUND;
goto... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"SmoothStreamingContext *c = VAR_0->priv_data;",
"int VAR_1 = 0, VAR_2;",
"AVOutputFormat *oformat;",
"mkdir(VAR_0->filename, 0777);",
"oformat = av_guess_format(\"ismv\", NULL, NULL);",
"if (!oformat) {",
"VAR_1 = AVERROR_MUXER_NOT_FOUND;",
"goto fail... | [
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,
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
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
15,286 | static void gradfun_filter_line_mmxext(uint8_t *dst, uint8_t *src, uint16_t *dc,
int width, int thresh,
const uint16_t *dithers)
{
intptr_t x;
if (width & 3) {
x = width & ~3;
ff_gradfun_filter_line_c(dst + x, s... | true | FFmpeg | 2d66fc543b01995d6146fc132a778d3e722ca665 | static void gradfun_filter_line_mmxext(uint8_t *dst, uint8_t *src, uint16_t *dc,
int width, int thresh,
const uint16_t *dithers)
{
intptr_t x;
if (width & 3) {
x = width & ~3;
ff_gradfun_filter_line_c(dst + x, s... | {
"code": [
" \"pmulhw %%mm2, %%mm1 \\n\""
],
"line_no": [
65
]
} | static void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, uint16_t *VAR_2,
int VAR_3, int VAR_4,
const uint16_t *VAR_5)
{
intptr_t x;
if (VAR_3 & 3) {
x = VAR_3 & ~3;
ff_gradfun_filter_line_c(VAR_0 + x, VAR_1 + x, VAR_... | [
"static void FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, uint16_t *VAR_2,\nint VAR_3, int VAR_4,\nconst uint16_t *VAR_5)\n{",
"intptr_t x;",
"if (VAR_3 & 3) {",
"x = VAR_3 & ~3;",
"ff_gradfun_filter_line_c(VAR_0 + x, VAR_1 + x, VAR_2 + x / 2, VAR_3 - x, VAR_4, VAR_5);",
"VAR_3 = x;",
"}",
"x = -VAR_3;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
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,... |
15,287 | static void bdrv_mirror_top_refresh_filename(BlockDriverState *bs, QDict *opts)
{
bdrv_refresh_filename(bs->backing->bs);
pstrcpy(bs->exact_filename, sizeof(bs->exact_filename),
bs->backing->bs->filename);
| true | qemu | 18775ff32697ab6e1fd47989673bf1de54d0d942 | static void bdrv_mirror_top_refresh_filename(BlockDriverState *bs, QDict *opts)
{
bdrv_refresh_filename(bs->backing->bs);
pstrcpy(bs->exact_filename, sizeof(bs->exact_filename),
bs->backing->bs->filename);
| {
"code": [],
"line_no": []
} | static void FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1)
{
bdrv_refresh_filename(VAR_0->backing->VAR_0);
pstrcpy(VAR_0->exact_filename, sizeof(VAR_0->exact_filename),
VAR_0->backing->VAR_0->filename);
| [
"static void FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1)\n{",
"bdrv_refresh_filename(VAR_0->backing->VAR_0);",
"pstrcpy(VAR_0->exact_filename, sizeof(VAR_0->exact_filename),\nVAR_0->backing->VAR_0->filename);"
] | [
0,
0,
0
] | [
[
1,
3
],
[
10
],
[
12,
14
]
] |
15,289 | static CharDriverState *qemu_chr_open_file_out(QemuOpts *opts)
{
int fd_out;
TFR(fd_out = open(qemu_opt_get(opts, "path"),
O_WRONLY | O_TRUNC | O_CREAT | O_BINARY, 0666));
if (fd_out < 0)
return NULL;
return qemu_chr_open_fd(-1, fd_out);
}
| true | qemu | 40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4 | static CharDriverState *qemu_chr_open_file_out(QemuOpts *opts)
{
int fd_out;
TFR(fd_out = open(qemu_opt_get(opts, "path"),
O_WRONLY | O_TRUNC | O_CREAT | O_BINARY, 0666));
if (fd_out < 0)
return NULL;
return qemu_chr_open_fd(-1, fd_out);
}
| {
"code": [
" TFR(fd_out = open(qemu_opt_get(opts, \"path\"),"
],
"line_no": [
9
]
} | static CharDriverState *FUNC_0(QemuOpts *opts)
{
int VAR_0;
TFR(VAR_0 = open(qemu_opt_get(opts, "path"),
O_WRONLY | O_TRUNC | O_CREAT | O_BINARY, 0666));
if (VAR_0 < 0)
return NULL;
return qemu_chr_open_fd(-1, VAR_0);
}
| [
"static CharDriverState *FUNC_0(QemuOpts *opts)\n{",
"int VAR_0;",
"TFR(VAR_0 = open(qemu_opt_get(opts, \"path\"),\nO_WRONLY | O_TRUNC | O_CREAT | O_BINARY, 0666));",
"if (VAR_0 < 0)\nreturn NULL;",
"return qemu_chr_open_fd(-1, VAR_0);",
"}"
] | [
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13,
15
],
[
17
],
[
19
]
] |
15,291 | static SchroBuffer *find_next_parse_unit(SchroParseUnitContext *parse_ctx)
{
SchroBuffer *enc_buf = NULL;
int next_pu_offset = 0;
unsigned char *in_buf;
if (parse_ctx->buf_size < 13 ||
parse_ctx->buf[0] != 'B' ||
parse_ctx->buf[1] != 'B' ||
parse_ctx->buf[2] != 'C' ||
... | true | FFmpeg | 220b24c7c97dc033ceab1510549f66d0e7b52ef1 | static SchroBuffer *find_next_parse_unit(SchroParseUnitContext *parse_ctx)
{
SchroBuffer *enc_buf = NULL;
int next_pu_offset = 0;
unsigned char *in_buf;
if (parse_ctx->buf_size < 13 ||
parse_ctx->buf[0] != 'B' ||
parse_ctx->buf[1] != 'B' ||
parse_ctx->buf[2] != 'C' ||
... | {
"code": [
" return NULL;",
" return NULL;",
"static SchroBuffer *find_next_parse_unit(SchroParseUnitContext *parse_ctx)",
" SchroBuffer *enc_buf = NULL;",
" int next_pu_offset = 0;",
" unsigned char *in_buf;",
" if (parse_ctx->buf_size < 13 ||",
" par... | static SchroBuffer *FUNC_0(SchroParseUnitContext *parse_ctx)
{
SchroBuffer *enc_buf = NULL;
int VAR_0 = 0;
unsigned char *VAR_1;
if (parse_ctx->buf_size < 13 ||
parse_ctx->buf[0] != 'B' ||
parse_ctx->buf[1] != 'B' ||
parse_ctx->buf[2] != 'C' ||
parse_ctx->buf[3... | [
"static SchroBuffer *FUNC_0(SchroParseUnitContext *parse_ctx)\n{",
"SchroBuffer *enc_buf = NULL;",
"int VAR_0 = 0;",
"unsigned char *VAR_1;",
"if (parse_ctx->buf_size < 13 ||\nparse_ctx->buf[0] != 'B' ||\nparse_ctx->buf[1] != 'B' ||\nparse_ctx->buf[2] != 'C' ||\nparse_ctx->buf[3] != 'D')\nreturn NULL;",
"... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15,
17,
19,
21,
23
],
[
27,
29,
31,
33
],
[
37,
39,
41
],
[
45,
47
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
63
],
[... |
15,292 | static int ljpeg_decode_rgb_scan(MJpegDecodeContext *s, int predictor, int point_transform){
int i, mb_x, mb_y;
uint16_t buffer[2048][4];
int left[3], top[3], topleft[3];
const int linesize= s->linesize[0];
const int mask= (1<<s->bits)-1;
for(i=0; i<3; i++){
buffer[0][i]= 1 ... | true | FFmpeg | 0ecca7a49f8e254c12a3a1de048d738bfbb614c6 | static int ljpeg_decode_rgb_scan(MJpegDecodeContext *s, int predictor, int point_transform){
int i, mb_x, mb_y;
uint16_t buffer[2048][4];
int left[3], top[3], topleft[3];
const int linesize= s->linesize[0];
const int mask= (1<<s->bits)-1;
for(i=0; i<3; i++){
buffer[0][i]= 1 ... | {
"code": [
" uint16_t buffer[2048][4];"
],
"line_no": [
5
]
} | static int FUNC_0(MJpegDecodeContext *VAR_0, int VAR_1, int VAR_2){
int VAR_3, VAR_4, VAR_5;
uint16_t buffer[2048][4];
int VAR_6[3], VAR_7[3], VAR_8[3];
const int VAR_9= VAR_0->VAR_9[0];
const int VAR_10= (1<<VAR_0->bits)-1;
for(VAR_3=0; VAR_3<3; VAR_3++){
buffer[0][VAR_3]= ... | [
"static int FUNC_0(MJpegDecodeContext *VAR_0, int VAR_1, int VAR_2){",
"int VAR_3, VAR_4, VAR_5;",
"uint16_t buffer[2048][4];",
"int VAR_6[3], VAR_7[3], VAR_8[3];",
"const int VAR_9= VAR_0->VAR_9[0];",
"const int VAR_10= (1<<VAR_0->bits)-1;",
"for(VAR_3=0; VAR_3<3; VAR_3++){",
"buffer[0][VAR_3]= 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,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
49
],
[... |
15,293 | static int dnxhd_10bit_dct_quantize(MpegEncContext *ctx, DCTELEM *block,
int n, int qscale, int *overflow)
{
const uint8_t *scantable= ctx->intra_scantable.scantable;
const int *qmat = ctx->q_intra_matrix[qscale];
int last_non_zero = 0;
ctx->dsp.fdct(block);
... | false | FFmpeg | e72f3d10f64f5c65a67aa21dcc79a85ee55e912e | static int dnxhd_10bit_dct_quantize(MpegEncContext *ctx, DCTELEM *block,
int n, int qscale, int *overflow)
{
const uint8_t *scantable= ctx->intra_scantable.scantable;
const int *qmat = ctx->q_intra_matrix[qscale];
int last_non_zero = 0;
ctx->dsp.fdct(block);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(MpegEncContext *VAR_0, DCTELEM *VAR_1,
int VAR_2, int VAR_3, int *VAR_4)
{
const uint8_t *VAR_5= VAR_0->intra_scantable.VAR_5;
const int *VAR_6 = VAR_0->q_intra_matrix[VAR_3];
int VAR_7 = 0;
VAR_0->dsp.fdct(VAR_1);
VAR_1[0] = (VA... | [
"static int FUNC_0(MpegEncContext *VAR_0, DCTELEM *VAR_1,\nint VAR_2, int VAR_3, int *VAR_4)\n{",
"const uint8_t *VAR_5= VAR_0->intra_scantable.VAR_5;",
"const int *VAR_6 = VAR_0->q_intra_matrix[VAR_3];",
"int VAR_7 = 0;",
"VAR_0->dsp.fdct(VAR_1);",
"VAR_1[0] = (VAR_1[0] + 2) >> 2;",
"for (int VAR_8 = 1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
45
],
[
47
]
] |
15,294 | static int estimate_motion_b(MpegEncContext *s, int mb_x, int mb_y,
int16_t (*mv_table)[2], int ref_index, int f_code)
{
MotionEstContext * const c= &s->me;
int mx = 0, my = 0, dmin = 0;
int P[10][2];
const int shift= 1+s->quarter_sample;
const int mot_stride = s-... | false | FFmpeg | 5b4da8a38a5ed211df9504c85ce401c30af86b97 | static int estimate_motion_b(MpegEncContext *s, int mb_x, int mb_y,
int16_t (*mv_table)[2], int ref_index, int f_code)
{
MotionEstContext * const c= &s->me;
int mx = 0, my = 0, dmin = 0;
int P[10][2];
const int shift= 1+s->quarter_sample;
const int mot_stride = s-... | {
"code": [],
"line_no": []
} | static int FUNC_0(MpegEncContext *VAR_0, int VAR_1, int VAR_2,
VAR_3 (*mv_table)[2], int VAR_4, int VAR_5)
{
MotionEstContext * const c= &VAR_0->me;
int VAR_6 = 0, VAR_7 = 0, VAR_8 = 0;
int VAR_9[10][2];
const int VAR_10= 1+VAR_0->quarter_sample;
const int VAR_11 ... | [
"static int FUNC_0(MpegEncContext *VAR_0, int VAR_1, int VAR_2,\nVAR_3 (*mv_table)[2], int VAR_4, int VAR_5)\n{",
"MotionEstContext * const c= &VAR_0->me;",
"int VAR_6 = 0, VAR_7 = 0, VAR_8 = 0;",
"int VAR_9[10][2];",
"const int VAR_10= 1+VAR_0->quarter_sample;",
"const int VAR_11 = VAR_0->mb_stride;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
53
],
[... |
15,295 | static av_cold int XAVS_close(AVCodecContext *avctx)
{
XavsContext *x4 = avctx->priv_data;
av_freep(&avctx->extradata);
av_free(x4->sei);
av_freep(&x4->pts_buffer);
if (x4->enc)
xavs_encoder_close(x4->enc);
av_frame_free(&avctx->coded_frame);
return 0;
}
| false | FFmpeg | d6604b29ef544793479d7fb4e05ef6622bb3e534 | static av_cold int XAVS_close(AVCodecContext *avctx)
{
XavsContext *x4 = avctx->priv_data;
av_freep(&avctx->extradata);
av_free(x4->sei);
av_freep(&x4->pts_buffer);
if (x4->enc)
xavs_encoder_close(x4->enc);
av_frame_free(&avctx->coded_frame);
return 0;
}
| {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
XavsContext *x4 = avctx->priv_data;
av_freep(&avctx->extradata);
av_free(x4->sei);
av_freep(&x4->pts_buffer);
if (x4->enc)
xavs_encoder_close(x4->enc);
av_frame_free(&avctx->coded_frame);
return 0;
}
| [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"XavsContext *x4 = avctx->priv_data;",
"av_freep(&avctx->extradata);",
"av_free(x4->sei);",
"av_freep(&x4->pts_buffer);",
"if (x4->enc)\nxavs_encoder_close(x4->enc);",
"av_frame_free(&avctx->coded_frame);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
27
],
[
29
]
] |
15,297 | int vhdx_parse_log(BlockDriverState *bs, BDRVVHDXState *s, bool *flushed)
{
int ret = 0;
VHDXHeader *hdr;
VHDXLogSequence logs = { 0 };
hdr = s->headers[s->curr_header];
*flushed = false;
/* s->log.hdr is freed in vhdx_close() */
if (s->log.hdr == NULL) {
s->log.hdr = ... | true | qemu | 7e30e6a6746b417c7e0dbc9af009560fbb63f336 | int vhdx_parse_log(BlockDriverState *bs, BDRVVHDXState *s, bool *flushed)
{
int ret = 0;
VHDXHeader *hdr;
VHDXLogSequence logs = { 0 };
hdr = s->headers[s->curr_header];
*flushed = false;
if (s->log.hdr == NULL) {
s->log.hdr = qemu_blockalign(bs, sizeof(VHDXLogEntryHe... | {
"code": [
"int vhdx_parse_log(BlockDriverState *bs, BDRVVHDXState *s, bool *flushed)"
],
"line_no": [
1
]
} | int FUNC_0(BlockDriverState *VAR_0, BDRVVHDXState *VAR_1, bool *VAR_2)
{
int VAR_3 = 0;
VHDXHeader *hdr;
VHDXLogSequence logs = { 0 };
hdr = VAR_1->headers[VAR_1->curr_header];
*VAR_2 = false;
if (VAR_1->log.hdr == NULL) {
VAR_1->log.hdr = qemu_blockalign(VAR_0, sizeo... | [
"int FUNC_0(BlockDriverState *VAR_0, BDRVVHDXState *VAR_1, bool *VAR_2)\n{",
"int VAR_3 = 0;",
"VHDXHeader *hdr;",
"VHDXLogSequence logs = { 0 };",
"hdr = VAR_1->headers[VAR_1->curr_header];",
"*VAR_2 = false;",
"if (VAR_1->log.hdr == NULL) {",
"VAR_1->log.hdr = qemu_blockalign(VAR_0, sizeof(VHDXLogEn... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
51
],
[
53
],
[
55
],
[
57
],
[... |
15,298 | QCryptoCipher *qcrypto_cipher_new(QCryptoCipherAlgorithm alg,
QCryptoCipherMode mode,
const uint8_t *key, size_t nkey,
Error **errp)
{
QCryptoCipher *cipher;
QCryptoCipherNettle *ctx;
uint8_t *rfbkey... | true | qemu | d4c64800bbe1332328695a551b84ae68590c90fd | QCryptoCipher *qcrypto_cipher_new(QCryptoCipherAlgorithm alg,
QCryptoCipherMode mode,
const uint8_t *key, size_t nkey,
Error **errp)
{
QCryptoCipher *cipher;
QCryptoCipherNettle *ctx;
uint8_t *rfbkey... | {
"code": [
" cipher->opaque = ctx;",
" g_free(cipher);",
" g_free(ctx);"
],
"line_no": [
321,
331,
333
]
} | QCryptoCipher *FUNC_0(QCryptoCipherAlgorithm alg,
QCryptoCipherMode mode,
const uint8_t *key, size_t nkey,
Error **errp)
{
QCryptoCipher *cipher;
QCryptoCipherNettle *ctx;
uint8_t *rfbkey;
swi... | [
"QCryptoCipher *FUNC_0(QCryptoCipherAlgorithm alg,\nQCryptoCipherMode mode,\nconst uint8_t *key, size_t nkey,\nError **errp)\n{",
"QCryptoCipher *cipher;",
"QCryptoCipherNettle *ctx;",
"uint8_t *rfbkey;",
"switch (mode) {",
"case QCRYPTO_CIPHER_MODE_ECB:\ncase QCRYPTO_CIPHER_MODE_CBC:\ncase QCRYPTO_CIPHER... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23,
25,
27,
29
],
[
31,
33,
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55
],
[... |
15,299 | static int mov_write_minf_tag(AVIOContext *pb, MOVTrack *track)
{
int64_t pos = avio_tell(pb);
avio_wb32(pb, 0); /* size */
ffio_wfourcc(pb, "minf");
if (track->enc->codec_type == AVMEDIA_TYPE_VIDEO)
mov_write_vmhd_tag(pb);
else if (track->enc->codec_type == AVMEDIA_TYPE_AUDIO)
... | true | FFmpeg | da048c6d24729d3bab6ccb0ac340ea129e3e88d5 | static int mov_write_minf_tag(AVIOContext *pb, MOVTrack *track)
{
int64_t pos = avio_tell(pb);
avio_wb32(pb, 0);
ffio_wfourcc(pb, "minf");
if (track->enc->codec_type == AVMEDIA_TYPE_VIDEO)
mov_write_vmhd_tag(pb);
else if (track->enc->codec_type == AVMEDIA_TYPE_AUDIO)
mov_wri... | {
"code": [
" mov_write_stbl_tag(pb, track);"
],
"line_no": [
47
]
} | static int FUNC_0(AVIOContext *VAR_0, MOVTrack *VAR_1)
{
int64_t pos = avio_tell(VAR_0);
avio_wb32(VAR_0, 0);
ffio_wfourcc(VAR_0, "minf");
if (VAR_1->enc->codec_type == AVMEDIA_TYPE_VIDEO)
mov_write_vmhd_tag(VAR_0);
else if (VAR_1->enc->codec_type == AVMEDIA_TYPE_AUDIO)
mov_... | [
"static int FUNC_0(AVIOContext *VAR_0, MOVTrack *VAR_1)\n{",
"int64_t pos = avio_tell(VAR_0);",
"avio_wb32(VAR_0, 0);",
"ffio_wfourcc(VAR_0, \"minf\");",
"if (VAR_1->enc->codec_type == AVMEDIA_TYPE_VIDEO)\nmov_write_vmhd_tag(VAR_0);",
"else if (VAR_1->enc->codec_type == AVMEDIA_TYPE_AUDIO)\nmov_write_smhd... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[... |
15,300 | static int qsv_decode_init(AVCodecContext *avctx, QSVContext *q)
{
const AVPixFmtDescriptor *desc;
mfxSession session = NULL;
int iopattern = 0;
mfxVideoParam param = { { 0 } };
int frame_width = avctx->coded_width;
int frame_height = avctx->coded_height;
int ret;
desc = av_p... | true | FFmpeg | 76167140a91c081a0cf9d0abcaa4da18d1bacadb | static int qsv_decode_init(AVCodecContext *avctx, QSVContext *q)
{
const AVPixFmtDescriptor *desc;
mfxSession session = NULL;
int iopattern = 0;
mfxVideoParam param = { { 0 } };
int frame_width = avctx->coded_width;
int frame_height = avctx->coded_height;
int ret;
desc = av_p... | {
"code": [
" mfxVideoParam param = { { 0 } };"
],
"line_no": [
11
]
} | static int FUNC_0(AVCodecContext *VAR_0, QSVContext *VAR_1)
{
const AVPixFmtDescriptor *VAR_2;
mfxSession session = NULL;
int VAR_3 = 0;
mfxVideoParam param = { { 0 } };
int VAR_4 = VAR_0->coded_width;
int VAR_5 = VAR_0->coded_height;
int VAR_6;
VAR_2 = av_pix_fmt_desc_get(VA... | [
"static int FUNC_0(AVCodecContext *VAR_0, QSVContext *VAR_1)\n{",
"const AVPixFmtDescriptor *VAR_2;",
"mfxSession session = NULL;",
"int VAR_3 = 0;",
"mfxVideoParam param = { { 0 } };",
"int VAR_4 = VAR_0->coded_width;",
"int VAR_5 = VAR_0->coded_height;",
"int VAR_6;",
"VAR_2 = av_pix_fmt_desc_get... | [
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,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23,
25
],
[
29
],
[
31,
33
],
[
35,
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
15,302 | static void ir2_decode_plane(Ir2Context *ctx, int width, int height, uint8_t *dst, int stride,
const uint8_t *table)
{
int i;
int j;
int out = 0;
int c;
int t;
/* first line contain absolute values, other lines contain deltas */
while (out < width)... | true | FFmpeg | f707a5ebba734597b1ff0810931b55b630077ab3 | static void ir2_decode_plane(Ir2Context *ctx, int width, int height, uint8_t *dst, int stride,
const uint8_t *table)
{
int i;
int j;
int out = 0;
int c;
int t;
while (out < width){
c = ir2_get_code(&ctx->gb);
if(c > 0x80) {
... | {
"code": [
"static void ir2_decode_plane(Ir2Context *ctx, int width, int height, uint8_t *dst, int stride,"
],
"line_no": [
1
]
} | static void FUNC_0(Ir2Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3, int VAR_4,
const uint8_t *VAR_5)
{
int VAR_6;
int VAR_7;
int VAR_8 = 0;
int VAR_9;
int VAR_10;
while (VAR_8 < VAR_1){
VAR_9 = ir2_get_code(&VAR_0->gb);
i... | [
"static void FUNC_0(Ir2Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3, int VAR_4,\nconst uint8_t *VAR_5)\n{",
"int VAR_6;",
"int VAR_7;",
"int VAR_8 = 0;",
"int VAR_9;",
"int VAR_10;",
"while (VAR_8 < VAR_1){",
"VAR_9 = ir2_get_code(&VAR_0->gb);",
"if(VAR_9 > 0x80) {",
"VAR_9 -= 0x80;",
"f... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[... |
15,303 | int kvm_arm_sync_mpstate_to_kvm(ARMCPU *cpu)
{
if (cap_has_mp_state) {
struct kvm_mp_state mp_state = {
.mp_state =
cpu->powered_off ? KVM_MP_STATE_STOPPED : KVM_MP_STATE_RUNNABLE
};
int ret = kvm_vcpu_ioctl(CPU(cpu), KVM_SET_MP_STATE, &mp_state);
if (... | true | qemu | 062ba099e01ff1474be98c0a4f3da351efab5d9d | int kvm_arm_sync_mpstate_to_kvm(ARMCPU *cpu)
{
if (cap_has_mp_state) {
struct kvm_mp_state mp_state = {
.mp_state =
cpu->powered_off ? KVM_MP_STATE_STOPPED : KVM_MP_STATE_RUNNABLE
};
int ret = kvm_vcpu_ioctl(CPU(cpu), KVM_SET_MP_STATE, &mp_state);
if (... | {
"code": [
" .mp_state =",
" cpu->powered_off ? KVM_MP_STATE_STOPPED : KVM_MP_STATE_RUNNABLE"
],
"line_no": [
9,
11
]
} | int FUNC_0(ARMCPU *VAR_0)
{
if (cap_has_mp_state) {
struct kvm_mp_state VAR_1 = {
.VAR_1 =
VAR_0->powered_off ? KVM_MP_STATE_STOPPED : KVM_MP_STATE_RUNNABLE
};
int VAR_2 = kvm_vcpu_ioctl(CPU(VAR_0), KVM_SET_MP_STATE, &VAR_1);
if (VAR_2) {
... | [
"int FUNC_0(ARMCPU *VAR_0)\n{",
"if (cap_has_mp_state) {",
"struct kvm_mp_state VAR_1 = {",
".VAR_1 =\nVAR_0->powered_off ? KVM_MP_STATE_STOPPED : KVM_MP_STATE_RUNNABLE\n};",
"int VAR_2 = kvm_vcpu_ioctl(CPU(VAR_0), KVM_SET_MP_STATE, &VAR_1);",
"if (VAR_2) {",
"fprintf(stderr, \"%s: failed to set MP_STAT... | [
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11,
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
]
] |
15,304 | void virtio_queue_aio_set_host_notifier_handler(VirtQueue *vq, AioContext *ctx,
bool assign, bool set_handler)
{
if (assign && set_handler) {
aio_set_event_notifier(ctx, &vq->host_notifier, true,
virtio_queue_host_notifier_r... | true | qemu | 344dc16fae0cb6a011aa5befffc8e7d520b11d5d | void virtio_queue_aio_set_host_notifier_handler(VirtQueue *vq, AioContext *ctx,
bool assign, bool set_handler)
{
if (assign && set_handler) {
aio_set_event_notifier(ctx, &vq->host_notifier, true,
virtio_queue_host_notifier_r... | {
"code": [
" virtio_queue_host_notifier_read);",
" virtio_queue_host_notifier_read(&vq->host_notifier);"
],
"line_no": [
11,
25
]
} | void FUNC_0(VirtQueue *VAR_0, AioContext *VAR_1,
bool VAR_2, bool VAR_3)
{
if (VAR_2 && VAR_3) {
aio_set_event_notifier(VAR_1, &VAR_0->host_notifier, true,
virtio_queue_host_notifier_read);
} else {
aio_set_eve... | [
"void FUNC_0(VirtQueue *VAR_0, AioContext *VAR_1,\nbool VAR_2, bool VAR_3)\n{",
"if (VAR_2 && VAR_3) {",
"aio_set_event_notifier(VAR_1, &VAR_0->host_notifier, true,\nvirtio_queue_host_notifier_read);",
"} else {",
"aio_set_event_notifier(VAR_1, &VAR_0->host_notifier, true, NULL);",
"}",
"if (!VAR_2) {",... | [
0,
0,
1,
0,
0,
0,
0,
1,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
25
],
[
27
],
[
29
]
] |
15,305 | av_cold int swr_init(struct SwrContext *s){
int ret;
char l1[1024], l2[1024];
clear_context(s);
if(s-> in_sample_fmt >= AV_SAMPLE_FMT_NB){
av_log(s, AV_LOG_ERROR, "Requested input sample format %d is invalid\n", s->in_sample_fmt);
return AVERROR(EINVAL);
}
if(s->out_s... | true | FFmpeg | c3f87f7545d42520921bc448b9fbd7324c574e49 | av_cold int swr_init(struct SwrContext *s){
int ret;
char l1[1024], l2[1024];
clear_context(s);
if(s-> in_sample_fmt >= AV_SAMPLE_FMT_NB){
av_log(s, AV_LOG_ERROR, "Requested input sample format %d is invalid\n", s->in_sample_fmt);
return AVERROR(EINVAL);
}
if(s->out_s... | {
"code": [
" return -1;",
" return -1;",
" return AVERROR(EINVAL);",
" return AVERROR(EINVAL);",
" return -1;",
" if (!s->in_convert || !s->out_convert)",
" return AVERROR(ENOMEM);",
" return ret;",
" if(s->rematrix || s->dith... | av_cold int FUNC_0(struct SwrContext *s){
int VAR_0;
char VAR_1[1024], VAR_2[1024];
clear_context(s);
if(s-> in_sample_fmt >= AV_SAMPLE_FMT_NB){
av_log(s, AV_LOG_ERROR, "Requested input sample format %d is invalid\n", s->in_sample_fmt);
return AVERROR(EINVAL);
}
if(s-... | [
"av_cold int FUNC_0(struct SwrContext *s){",
"int VAR_0;",
"char VAR_1[1024], VAR_2[1024];",
"clear_context(s);",
"if(s-> in_sample_fmt >= AV_SAMPLE_FMT_NB){",
"av_log(s, AV_LOG_ERROR, \"Requested input sample format %d is invalid\\n\", s->in_sample_fmt);",
"return AVERROR(EINVAL);",
"}",
"if(s->out... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
... |
15,306 | static av_always_inline void vc1_apply_p_v_loop_filter(VC1Context *v, int block_num)
{
MpegEncContext *s = &v->s;
int mb_cbp = v->cbp[s->mb_x - s->mb_stride],
block_cbp = mb_cbp >> (block_num * 4), bottom_cbp,
mb_is_intra = v->is_intra[s->mb_x - s->mb_stride],
... | true | FFmpeg | a52f443714b5c2a40ed272d8445f4c39220a4b69 | static av_always_inline void vc1_apply_p_v_loop_filter(VC1Context *v, int block_num)
{
MpegEncContext *s = &v->s;
int mb_cbp = v->cbp[s->mb_x - s->mb_stride],
block_cbp = mb_cbp >> (block_num * 4), bottom_cbp,
mb_is_intra = v->is_intra[s->mb_x - s->mb_stride],
... | {
"code": [
" block_is_intra = mb_is_intra >> (block_num * 4), bottom_is_intra;",
" bottom_is_intra = v->is_intra[s->mb_x] >> (block_num * 4);",
" bottom_is_intra = (block_num < 2) ? (mb_is_intra >> ((block_num + 2) * 4))",
" ... | static av_always_inline void FUNC_0(VC1Context *v, int block_num)
{
MpegEncContext *s = &v->s;
int VAR_0 = v->cbp[s->mb_x - s->mb_stride],
VAR_1 = VAR_0 >> (block_num * 4), VAR_2,
VAR_3 = v->is_intra[s->mb_x - s->mb_stride],
VAR_4 = VAR_3 >> (block_num * 4), V... | [
"static av_always_inline void FUNC_0(VC1Context *v, int block_num)\n{",
"MpegEncContext *s = &v->s;",
"int VAR_0 = v->cbp[s->mb_x - s->mb_stride],\nVAR_1 = VAR_0 >> (block_num * 4), VAR_2,\nVAR_3 = v->is_intra[s->mb_x - s->mb_stride],\nVAR_4 = VAR_3 >> (block_num * 4), VAR_5;",
"int VAR_... | [
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11,
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
15,307 | int main(void)
{
int x = 0;
int i, j;
AVLFG state;
av_lfg_init(&state, 0xdeadbeef);
for (j = 0; j < 10000; j++) {
START_TIMER
for (i = 0; i < 624; i++) {
//av_log(NULL, AV_LOG_ERROR, "%X\n", av_lfg_get(&state));
x += av_lfg_get(&state);
}
... | false | FFmpeg | 0c33ceda91dd646414a2e0ec832bada5acb6b762 | int main(void)
{
int x = 0;
int i, j;
AVLFG state;
av_lfg_init(&state, 0xdeadbeef);
for (j = 0; j < 10000; j++) {
START_TIMER
for (i = 0; i < 624; i++) {
x += av_lfg_get(&state);
}
STOP_TIMER("624 calls of av_lfg_get");
}
... | {
"code": [],
"line_no": []
} | int FUNC_0(void)
{
int VAR_0 = 0;
int VAR_1, VAR_2;
AVLFG state;
av_lfg_init(&state, 0xdeadbeef);
for (VAR_2 = 0; VAR_2 < 10000; VAR_2++) {
START_TIMER
for (VAR_1 = 0; VAR_1 < 624; VAR_1++) {
VAR_0 += av_lfg_get(&state);
}
STOP_T... | [
"int FUNC_0(void)\n{",
"int VAR_0 = 0;",
"int VAR_1, VAR_2;",
"AVLFG state;",
"av_lfg_init(&state, 0xdeadbeef);",
"for (VAR_2 = 0; VAR_2 < 10000; VAR_2++) {",
"START_TIMER\nfor (VAR_1 = 0; VAR_1 < 624; VAR_1++) {",
"VAR_0 += av_lfg_get(&state);",
"}",
"STOP_TIMER(\"624 calls of av_lfg_get\");",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
37
],
[
39
],
[
41
],
[
45
],
[
49
],
[
51
],
[
53
],
[... |
15,308 | enum CodecID codec_get_id(const CodecTag *tags, unsigned int tag)
{
while (tags->id != 0) {
if( toupper((tag >> 0)&0xFF) == toupper((tags->tag >> 0)&0xFF)
&& toupper((tag >> 8)&0xFF) == toupper((tags->tag >> 8)&0xFF)
&& toupper((tag >>16)&0xFF) == toupper((tags->tag >>16)&0xFF)
... | false | FFmpeg | fb7a2bf6956173eda6f9caceef8599fa4f83500d | enum CodecID codec_get_id(const CodecTag *tags, unsigned int tag)
{
while (tags->id != 0) {
if( toupper((tag >> 0)&0xFF) == toupper((tags->tag >> 0)&0xFF)
&& toupper((tag >> 8)&0xFF) == toupper((tags->tag >> 8)&0xFF)
&& toupper((tag >>16)&0xFF) == toupper((tags->tag >>16)&0xFF)
... | {
"code": [],
"line_no": []
} | enum CodecID FUNC_0(const CodecTag *VAR_0, unsigned int VAR_1)
{
while (VAR_0->id != 0) {
if( toupper((VAR_1 >> 0)&0xFF) == toupper((VAR_0->VAR_1 >> 0)&0xFF)
&& toupper((VAR_1 >> 8)&0xFF) == toupper((VAR_0->VAR_1 >> 8)&0xFF)
&& toupper((VAR_1 >>16)&0xFF) == toupper((VAR_0->VAR_1... | [
"enum CodecID FUNC_0(const CodecTag *VAR_0, unsigned int VAR_1)\n{",
"while (VAR_0->id != 0) {",
"if( toupper((VAR_1 >> 0)&0xFF) == toupper((VAR_0->VAR_1 >> 0)&0xFF)\n&& toupper((VAR_1 >> 8)&0xFF) == toupper((VAR_0->VAR_1 >> 8)&0xFF)\n&& toupper((VAR_1 >>16)&0xFF) == toupper((VAR_0->VAR_1 >>16)&0xFF)\n&& toup... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11,
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
15,309 | static void FUNCC(pred4x4_vertical_add)(uint8_t *_pix, const int16_t *_block,
ptrdiff_t stride)
{
int i;
pixel *pix = (pixel*)_pix;
const dctcoef *block = (const dctcoef*)_block;
stride >>= sizeof(pixel)-1;
pix -= stride;
for(i=0; i<4; i++){
... | false | FFmpeg | 1acd7d594c15aa491729c837ad3519d3469e620a | static void FUNCC(pred4x4_vertical_add)(uint8_t *_pix, const int16_t *_block,
ptrdiff_t stride)
{
int i;
pixel *pix = (pixel*)_pix;
const dctcoef *block = (const dctcoef*)_block;
stride >>= sizeof(pixel)-1;
pix -= stride;
for(i=0; i<4; i++){
... | {
"code": [],
"line_no": []
} | static void FUNC_0(pred4x4_vertical_add)(uint8_t *_pix, const int16_t *_block,
ptrdiff_t stride)
{
int VAR_0;
pixel *pix = (pixel*)_pix;
const dctcoef *VAR_1 = (const dctcoef*)_block;
stride >>= sizeof(pixel)-1;
pix -= stride;
for(VAR_0=0; VAR_0<4;... | [
"static void FUNC_0(pred4x4_vertical_add)(uint8_t *_pix, const int16_t *_block,\nptrdiff_t stride)\n{",
"int VAR_0;",
"pixel *pix = (pixel*)_pix;",
"const dctcoef *VAR_1 = (const dctcoef*)_block;",
"stride >>= sizeof(pixel)-1;",
"pix -= stride;",
"for(VAR_0=0; VAR_0<4; VAR_0++){",
"pixel v = pix[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
]
] |
15,310 | static void pci_bridge_cleanup_alias(MemoryRegion *alias,
MemoryRegion *parent_space)
{
memory_region_del_subregion(parent_space, alias);
memory_region_destroy(alias);
}
| true | qemu | 523a59f596a3e62f5a28eb171adba35e71310040 | static void pci_bridge_cleanup_alias(MemoryRegion *alias,
MemoryRegion *parent_space)
{
memory_region_del_subregion(parent_space, alias);
memory_region_destroy(alias);
}
| {
"code": [
"static void pci_bridge_cleanup_alias(MemoryRegion *alias,",
" MemoryRegion *parent_space)",
" memory_region_del_subregion(parent_space, alias);",
" memory_region_destroy(alias);"
],
"line_no": [
1,
3,
7,
9
]
} | static void FUNC_0(MemoryRegion *VAR_0,
MemoryRegion *VAR_1)
{
memory_region_del_subregion(VAR_1, VAR_0);
memory_region_destroy(VAR_0);
}
| [
"static void FUNC_0(MemoryRegion *VAR_0,\nMemoryRegion *VAR_1)\n{",
"memory_region_del_subregion(VAR_1, VAR_0);",
"memory_region_destroy(VAR_0);",
"}"
] | [
1,
1,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
]
] |
15,313 | static int get_buffer_internal(AVCodecContext *avctx, AVFrame *frame, int flags)
{
const AVHWAccel *hwaccel = avctx->hwaccel;
int override_dimensions = 1;
int ret;
if (avctx->codec_type == AVMEDIA_TYPE_VIDEO) {
if ((ret = av_image_check_size2(avctx->width, avctx->height, avctx->max_pixels, AV_PI... | true | FFmpeg | 4776c61424fa32394e251e9769e1ad2c2fa55598 | static int get_buffer_internal(AVCodecContext *avctx, AVFrame *frame, int flags)
{
const AVHWAccel *hwaccel = avctx->hwaccel;
int override_dimensions = 1;
int ret;
if (avctx->codec_type == AVMEDIA_TYPE_VIDEO) {
if ((ret = av_image_check_size2(avctx->width, avctx->height, avctx->max_pixels, AV_PI... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, int VAR_2)
{
const AVHWAccel *VAR_3 = VAR_0->VAR_3;
int VAR_4 = 1;
int VAR_5;
if (VAR_0->codec_type == AVMEDIA_TYPE_VIDEO) {
if ((VAR_5 = av_image_check_size2(VAR_0->width, VAR_0->height, VAR_0->max_pixels, AV_PIX_FMT_NONE, 0, VAR_0)) < 0 ... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1, int VAR_2)\n{",
"const AVHWAccel *VAR_3 = VAR_0->VAR_3;",
"int VAR_4 = 1;",
"int VAR_5;",
"if (VAR_0->codec_type == AVMEDIA_TYPE_VIDEO) {",
"if ((VAR_5 = av_image_check_size2(VAR_0->width, VAR_0->height, VAR_0->max_pixels, AV_PIX_FMT_NONE, 0, VAR_0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],... |
15,314 | void pcie_host_mmcfg_init(PCIExpressHost *e, uint32_t size)
{
assert(!(size & (size - 1))); /* power of 2 */
assert(size >= PCIE_MMCFG_SIZE_MIN);
assert(size <= PCIE_MMCFG_SIZE_MAX);
e->size = size;
memory_region_init_io(&e->mmio, OBJECT(e), &pcie_mmcfg_ops, e,
... | true | qemu | 3a8f2a9ce51036ab2d25bcc31114b5cbb72ab44b | void pcie_host_mmcfg_init(PCIExpressHost *e, uint32_t size)
{
assert(!(size & (size - 1)));
assert(size >= PCIE_MMCFG_SIZE_MIN);
assert(size <= PCIE_MMCFG_SIZE_MAX);
e->size = size;
memory_region_init_io(&e->mmio, OBJECT(e), &pcie_mmcfg_ops, e,
"pcie-mmcfg", e... | {
"code": [
" memory_region_init_io(&e->mmio, OBJECT(e), &pcie_mmcfg_ops, e,",
" \"pcie-mmcfg\", e->size);"
],
"line_no": [
13,
15
]
} | void FUNC_0(PCIExpressHost *VAR_0, uint32_t VAR_1)
{
assert(!(VAR_1 & (VAR_1 - 1)));
assert(VAR_1 >= PCIE_MMCFG_SIZE_MIN);
assert(VAR_1 <= PCIE_MMCFG_SIZE_MAX);
VAR_0->VAR_1 = VAR_1;
memory_region_init_io(&VAR_0->mmio, OBJECT(VAR_0), &pcie_mmcfg_ops, VAR_0,
"p... | [
"void FUNC_0(PCIExpressHost *VAR_0, uint32_t VAR_1)\n{",
"assert(!(VAR_1 & (VAR_1 - 1)));",
"assert(VAR_1 >= PCIE_MMCFG_SIZE_MIN);",
"assert(VAR_1 <= PCIE_MMCFG_SIZE_MAX);",
"VAR_0->VAR_1 = VAR_1;",
"memory_region_init_io(&VAR_0->mmio, OBJECT(VAR_0), &pcie_mmcfg_ops, VAR_0,\n\"pcie-mmcfg\", VAR_0->VAR_1);... | [
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
17
]
] |
15,315 | static void update_sse_status(CPUX86State *env)
{
int rnd_type;
/* set rounding mode */
switch (env->mxcsr & SSE_RC_MASK) {
default:
case SSE_RC_NEAR:
rnd_type = float_round_nearest_even;
break;
case SSE_RC_DOWN:
rnd_type = float_round_down;
break;
... | true | qemu | 4e47e39ab0ded72c0af174131ecf49d588d66c12 | static void update_sse_status(CPUX86State *env)
{
int rnd_type;
switch (env->mxcsr & SSE_RC_MASK) {
default:
case SSE_RC_NEAR:
rnd_type = float_round_nearest_even;
break;
case SSE_RC_DOWN:
rnd_type = float_round_down;
break;
case SSE_RC_UP:
... | {
"code": [
"static void update_sse_status(CPUX86State *env)",
" switch (env->mxcsr & SSE_RC_MASK) {",
" set_flush_inputs_to_zero((env->mxcsr & SSE_DAZ) ? 1 : 0, &env->sse_status);",
" set_flush_to_zero((env->mxcsr & SSE_FZ) ? 1 : 0, &env->fp_status);"
],
"line_no": [
1,
11,
4... | static void FUNC_0(CPUX86State *VAR_0)
{
int VAR_1;
switch (VAR_0->mxcsr & SSE_RC_MASK) {
default:
case SSE_RC_NEAR:
VAR_1 = float_round_nearest_even;
break;
case SSE_RC_DOWN:
VAR_1 = float_round_down;
break;
case SSE_RC_UP:
VAR_1 = flo... | [
"static void FUNC_0(CPUX86State *VAR_0)\n{",
"int VAR_1;",
"switch (VAR_0->mxcsr & SSE_RC_MASK) {",
"default:\ncase SSE_RC_NEAR:\nVAR_1 = float_round_nearest_even;",
"break;",
"case SSE_RC_DOWN:\nVAR_1 = float_round_down;",
"break;",
"case SSE_RC_UP:\nVAR_1 = float_round_up;",
"break;",
"case SSE_... | [
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13,
15,
17
],
[
19
],
[
21,
23
],
[
25
],
[
27,
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
47
],
[
53
],
[
55
]
] |
15,316 | static int adts_aac_probe(AVProbeData *p)
{
int max_frames = 0, first_frames = 0;
int fsize, frames;
uint8_t *buf0 = p->buf;
uint8_t *buf2;
uint8_t *buf;
uint8_t *end = buf0 + p->buf_size - 7;
buf = buf0;
for(; buf < end; buf= buf2+1) {
buf2 = buf;
for(fr... | true | FFmpeg | b39f872a41b92a31589052c8f914c5b52f206fd0 | static int adts_aac_probe(AVProbeData *p)
{
int max_frames = 0, first_frames = 0;
int fsize, frames;
uint8_t *buf0 = p->buf;
uint8_t *buf2;
uint8_t *buf;
uint8_t *end = buf0 + p->buf_size - 7;
buf = buf0;
for(; buf < end; buf= buf2+1) {
buf2 = buf;
for(fr... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVProbeData *VAR_0)
{
int VAR_1 = 0, VAR_2 = 0;
int VAR_3, VAR_4;
uint8_t *buf0 = VAR_0->buf;
uint8_t *buf2;
uint8_t *buf;
uint8_t *end = buf0 + VAR_0->buf_size - 7;
buf = buf0;
for(; buf < end; buf= buf2+1) {
buf2 = buf;
for(VAR_4 = 0; ... | [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"int VAR_1 = 0, VAR_2 = 0;",
"int VAR_3, VAR_4;",
"uint8_t *buf0 = VAR_0->buf;",
"uint8_t *buf2;",
"uint8_t *buf;",
"uint8_t *end = buf0 + VAR_0->buf_size - 7;",
"buf = buf0;",
"for(; buf < end; buf= buf2+1) {",
"buf2 = buf;",
"for(VAR_4 = 0; buf2 < en... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41
],
[
44
],
[
46
],
[
48
],
[
50,... |
15,317 | static int qio_channel_websock_handshake_read(QIOChannelWebsock *ioc,
Error **errp)
{
char *handshake_end;
ssize_t ret;
/* Typical HTTP headers from novnc are 512 bytes, so limiting
* total header size to 4096 is easily enough. */
size_t want = 4... | true | qemu | f69a8bde29354493ff8aea64cc9cb3b531d16337 | static int qio_channel_websock_handshake_read(QIOChannelWebsock *ioc,
Error **errp)
{
char *handshake_end;
ssize_t ret;
size_t want = 4096 - ioc->encinput.offset;
buffer_reserve(&ioc->encinput, want);
ret = qio_channel_read(ioc->master,
... | {
"code": [
" return 0;",
" return 0;",
" return -1;",
" return -1;",
" return -1;",
" return -1;",
" return -1;",
" return -1;",
" return -1;",
" return -1;",
" return -1;",
" r... | static int FUNC_0(QIOChannelWebsock *VAR_0,
Error **VAR_1)
{
char *VAR_2;
ssize_t ret;
size_t want = 4096 - VAR_0->encinput.offset;
buffer_reserve(&VAR_0->encinput, want);
ret = qio_channel_read(VAR_0->master,
(... | [
"static int FUNC_0(QIOChannelWebsock *VAR_0,\nError **VAR_1)\n{",
"char *VAR_2;",
"ssize_t ret;",
"size_t want = 4096 - VAR_0->encinput.offset;",
"buffer_reserve(&VAR_0->encinput, want);",
"ret = qio_channel_read(VAR_0->master,\n(char *)buffer_end(&VAR_0->encinput), want, VAR_1);",
"if (ret < 0) {",
"... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33,
35,
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[... |
15,318 | static int decode_init_mp3on4(AVCodecContext * avctx)
{
MP3On4DecodeContext *s = avctx->priv_data;
MPEG4AudioConfig cfg;
int i;
if ((avctx->extradata_size < 2) || (avctx->extradata == NULL)) {
av_log(avctx, AV_LOG_ERROR, "Codec extradata missing or too short.\n");
return -1;
... | true | FFmpeg | 95891804bf300b266aa5328f1c338c046720e658 | static int decode_init_mp3on4(AVCodecContext * avctx)
{
MP3On4DecodeContext *s = avctx->priv_data;
MPEG4AudioConfig cfg;
int i;
if ((avctx->extradata_size < 2) || (avctx->extradata == NULL)) {
av_log(avctx, AV_LOG_ERROR, "Codec extradata missing or too short.\n");
return -1;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext * VAR_0)
{
MP3On4DecodeContext *s = VAR_0->priv_data;
MPEG4AudioConfig cfg;
int VAR_1;
if ((VAR_0->extradata_size < 2) || (VAR_0->extradata == NULL)) {
av_log(VAR_0, AV_LOG_ERROR, "Codec extradata missing or too short.\n");
return -1;
}
... | [
"static int FUNC_0(AVCodecContext * VAR_0)\n{",
"MP3On4DecodeContext *s = VAR_0->priv_data;",
"MPEG4AudioConfig cfg;",
"int VAR_1;",
"if ((VAR_0->extradata_size < 2) || (VAR_0->extradata == NULL)) {",
"av_log(VAR_0, AV_LOG_ERROR, \"Codec extradata missing or too short.\\n\");",
"return -1;",
"}",
"a... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43,
45
],
[
47,
49
... |
15,320 | void avdevice_register_all(void)
{
static int inited;
if (inited)
return;
inited = 1;
/* devices */
REGISTER_MUXDEMUX (AUDIO_BEOS, audio_beos);
REGISTER_DEMUXER (BKTR, bktr);
REGISTER_DEMUXER (DV1394, dv1394);
REGISTER_MUXDEMUX (OSS, oss);
REGISTER_DEMUXER (... | false | FFmpeg | 5e53486545726987ab4482321d4dcf7e23e7652f | void avdevice_register_all(void)
{
static int inited;
if (inited)
return;
inited = 1;
REGISTER_MUXDEMUX (AUDIO_BEOS, audio_beos);
REGISTER_DEMUXER (BKTR, bktr);
REGISTER_DEMUXER (DV1394, dv1394);
REGISTER_MUXDEMUX (OSS, oss);
REGISTER_DEMUXER (V4L2, v4l2);
... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
static int VAR_0;
if (VAR_0)
return;
VAR_0 = 1;
REGISTER_MUXDEMUX (AUDIO_BEOS, audio_beos);
REGISTER_DEMUXER (BKTR, bktr);
REGISTER_DEMUXER (DV1394, dv1394);
REGISTER_MUXDEMUX (OSS, oss);
REGISTER_DEMUXER (V4L2, v4l2);
REGISTER_DEMU... | [
"void FUNC_0(void)\n{",
"static int VAR_0;",
"if (VAR_0)\nreturn;",
"VAR_0 = 1;",
"REGISTER_MUXDEMUX (AUDIO_BEOS, audio_beos);",
"REGISTER_DEMUXER (BKTR, bktr);",
"REGISTER_DEMUXER (DV1394, dv1394);",
"REGISTER_MUXDEMUX (OSS, oss);",
"REGISTER_DEMUXER (V4L2, v4l2);",
"REGISTER_DEMUXER (V4L, v4... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
37
],
[
39
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.