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 |
|---|---|---|---|---|---|---|---|---|---|---|
17,725 | static inline void xan_wc3_copy_pixel_run(XanContext *s, AVFrame *frame,
int x, int y,
int pixel_count, int motion_x,
int motion_y)
{
int stride;
int line_inc;
int curframe_in... | true | FFmpeg | e8fafef1db43ead4eae5a6301ccc300e73aa47da | static inline void xan_wc3_copy_pixel_run(XanContext *s, AVFrame *frame,
int x, int y,
int pixel_count, int motion_x,
int motion_y)
{
int stride;
int line_inc;
int curframe_in... | {
"code": [
" if (prev_palette_plane == palette_plane && FFABS(curframe_index - prevframe_index) < pixel_count) {"
],
"line_no": [
55
]
} | static inline void FUNC_0(XanContext *VAR_0, AVFrame *VAR_1,
int VAR_2, int VAR_3,
int VAR_4, int VAR_5,
int VAR_6)
{
int VAR_7;
int VAR_8;
int VAR_9, VAR_10;
int VAR_11,... | [
"static inline void FUNC_0(XanContext *VAR_0, AVFrame *VAR_1,\nint VAR_2, int VAR_3,\nint VAR_4, int VAR_5,\nint VAR_6)\n{",
"int VAR_7;",
"int VAR_8;",
"int VAR_9, VAR_10;",
"int VAR_11, VAR_12;",
"int VAR_13 = VAR_0->avctx->VAR_13;",
"uint8_t *palette_plane, *prev_palette_plane;",
"if (VAR_3 + VAR_6... | [
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
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25,
27,
29
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
17,726 | static av_cold int on2avc_decode_init(AVCodecContext *avctx)
{
On2AVCContext *c = avctx->priv_data;
int i;
c->avctx = avctx;
avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
avctx->channel_layout = (avctx->channels == 2) ? AV_CH_LAYOUT_STEREO
: ... | true | FFmpeg | cee4490b521fd0d02476d46aa2598af24fb8d686 | static av_cold int on2avc_decode_init(AVCodecContext *avctx)
{
On2AVCContext *c = avctx->priv_data;
int i;
c->avctx = avctx;
avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
avctx->channel_layout = (avctx->channels == 2) ? AV_CH_LAYOUT_STEREO
: ... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
On2AVCContext *c = avctx->priv_data;
int VAR_0;
c->avctx = avctx;
avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;
avctx->channel_layout = (avctx->channels == 2) ? AV_CH_LAYOUT_STEREO
: AV_CH_LA... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"On2AVCContext *c = avctx->priv_data;",
"int VAR_0;",
"c->avctx = avctx;",
"avctx->sample_fmt = AV_SAMPLE_FMT_FLTP;",
"avctx->channel_layout = (avctx->channels == 2) ? AV_CH_LAYOUT_STEREO\n: AV_CH_LAYOUT_MONO;",
"c->is_av500 = (avctx->codec_tag ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
34,
36,
38
],
[
42
],
[
44
],
[
46
],
[
48
],
[
52,
54,
56
],
[
58,
60... |
17,727 | static uint64_t ahci_alloc(AHCIQState *ahci, size_t bytes)
{
return qmalloc(ahci->parent, bytes);
}
| true | qemu | 9a75b0a037e3a8030992244353f17b62f6daf2ab | static uint64_t ahci_alloc(AHCIQState *ahci, size_t bytes)
{
return qmalloc(ahci->parent, bytes);
}
| {
"code": [
"static uint64_t ahci_alloc(AHCIQState *ahci, size_t bytes)",
" return qmalloc(ahci->parent, bytes);"
],
"line_no": [
1,
5
]
} | static uint64_t FUNC_0(AHCIQState *ahci, size_t bytes)
{
return qmalloc(ahci->parent, bytes);
}
| [
"static uint64_t FUNC_0(AHCIQState *ahci, size_t bytes)\n{",
"return qmalloc(ahci->parent, bytes);",
"}"
] | [
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
17,728 | static int ea_probe(AVProbeData *p)
{
switch (AV_RL32(&p->buf[0])) {
case ISNh_TAG:
case SCHl_TAG:
case SEAD_TAG:
case SHEN_TAG:
case kVGT_TAG:
case MADk_TAG:
case MPCh_TAG:
case MVhd_TAG:
case MVIh_TAG:
break;
default:
return 0;
}
if (... | true | FFmpeg | f9b89b61f819535b4dbe6c3e9f0d6fc8becf64cb | static int ea_probe(AVProbeData *p)
{
switch (AV_RL32(&p->buf[0])) {
case ISNh_TAG:
case SCHl_TAG:
case SEAD_TAG:
case SHEN_TAG:
case kVGT_TAG:
case MADk_TAG:
case MPCh_TAG:
case MVhd_TAG:
case MVIh_TAG:
break;
default:
return 0;
}
if (... | {
"code": [
" if (AV_RL32(&p->buf[4]) > 0xfffff && AV_RB32(&p->buf[4]) > 0xfffff)"
],
"line_no": [
33
]
} | static int FUNC_0(AVProbeData *VAR_0)
{
switch (AV_RL32(&VAR_0->buf[0])) {
case ISNh_TAG:
case SCHl_TAG:
case SEAD_TAG:
case SHEN_TAG:
case kVGT_TAG:
case MADk_TAG:
case MPCh_TAG:
case MVhd_TAG:
case MVIh_TAG:
break;
default:
return 0;
}
... | [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"switch (AV_RL32(&VAR_0->buf[0])) {",
"case ISNh_TAG:\ncase SCHl_TAG:\ncase SEAD_TAG:\ncase SHEN_TAG:\ncase kVGT_TAG:\ncase MADk_TAG:\ncase MPCh_TAG:\ncase MVhd_TAG:\ncase MVIh_TAG:\nbreak;",
"default:\nreturn 0;",
"}",
"if (AV_RL32(&VAR_0->buf[4]) > 0xfffff && ... | [
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
],
[
39
],
[
41
]
] |
17,729 | static int ulti_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
UltimotionDecodeContext *s=avctx->priv_data;
int modifier = 0;
int uniq =... | true | FFmpeg | a99273ebf328658c183c2d267f1c2b8bfac58bb3 | static int ulti_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
UltimotionDecodeContext *s=avctx->priv_data;
int modifier = 0;
int uniq =... | {
"code": [
" if (idx)",
" if(cf)"
],
"line_no": [
147,
161
]
} | 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;
UltimotionDecodeContext *s=VAR_0->priv_data;
int VAR_6 = 0;
int VAR_7 = 0;
int VAR... | [
"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;",
"UltimotionDecodeContext *s=VAR_0->priv_data;",
"int VAR_6 = 0;",
"int VAR_7 = 0;",
"int VAR_8 = 0;",
"int VAR_9 = 0;",
"int VAR_10 = 0;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
1... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
17,730 | int locate_option(int argc, char **argv, const OptionDef *options,
const char *optname)
{
const OptionDef *po;
int i;
for (i = 1; i < argc; i++) {
const char *cur_opt = argv[i];
if (*cur_opt++ != '-')
continue;
po = find_option(options, cu... | false | FFmpeg | 47e3e1097e09da7f973908e09df15e3bb7c5e1f4 | int locate_option(int argc, char **argv, const OptionDef *options,
const char *optname)
{
const OptionDef *po;
int i;
for (i = 1; i < argc; i++) {
const char *cur_opt = argv[i];
if (*cur_opt++ != '-')
continue;
po = find_option(options, cu... | {
"code": [],
"line_no": []
} | int FUNC_0(int VAR_0, char **VAR_1, const OptionDef *VAR_2,
const char *VAR_3)
{
const OptionDef *VAR_4;
int VAR_5;
for (VAR_5 = 1; VAR_5 < VAR_0; VAR_5++) {
const char *VAR_6 = VAR_1[VAR_5];
if (*VAR_6++ != '-')
continue;
VAR_4 = find_opt... | [
"int FUNC_0(int VAR_0, char **VAR_1, const OptionDef *VAR_2,\nconst char *VAR_3)\n{",
"const OptionDef *VAR_4;",
"int VAR_5;",
"for (VAR_5 = 1; VAR_5 < VAR_0; VAR_5++) {",
"const char *VAR_6 = VAR_1[VAR_5];",
"if (*VAR_6++ != '-')\ncontinue;",
"VAR_4 = find_option(VAR_2, VAR_6);",
"if (!VAR_4->name &&... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19,
21
],
[
25
],
[
27,
29
],
[
33,
35,
37
],
[
41,
43
],
[
45
],
[
47
],
[
49
]
] |
17,731 | iscsi_set_events(IscsiLun *iscsilun)
{
struct iscsi_context *iscsi = iscsilun->iscsi;
int ev = iscsi_which_events(iscsi);
if (ev != iscsilun->events) {
aio_set_fd_handler(iscsilun->aio_context,
iscsi_get_fd(iscsi),
(ev & POLLIN) ? iscsi_... | true | qemu | 5dd7a535b71a0f2f8e7af75c5d694174359ce323 | iscsi_set_events(IscsiLun *iscsilun)
{
struct iscsi_context *iscsi = iscsilun->iscsi;
int ev = iscsi_which_events(iscsi);
if (ev != iscsilun->events) {
aio_set_fd_handler(iscsilun->aio_context,
iscsi_get_fd(iscsi),
(ev & POLLIN) ? iscsi_... | {
"code": [
" if (!ev) {",
" timer_mod(iscsilun->event_timer,",
" qemu_clock_get_ms(QEMU_CLOCK_REALTIME) + EVENT_INTERVAL);"
],
"line_no": [
35,
37,
39
]
} | FUNC_0(IscsiLun *VAR_0)
{
struct iscsi_context *VAR_1 = VAR_0->VAR_1;
int VAR_2 = iscsi_which_events(VAR_1);
if (VAR_2 != VAR_0->events) {
aio_set_fd_handler(VAR_0->aio_context,
iscsi_get_fd(VAR_1),
(VAR_2 & POLLIN) ? iscsi_process_read ... | [
"FUNC_0(IscsiLun *VAR_0)\n{",
"struct iscsi_context *VAR_1 = VAR_0->VAR_1;",
"int VAR_2 = iscsi_which_events(VAR_1);",
"if (VAR_2 != VAR_0->events) {",
"aio_set_fd_handler(VAR_0->aio_context,\niscsi_get_fd(VAR_1),\n(VAR_2 & POLLIN) ? iscsi_process_read : NULL,\n(VAR_2 & POLLOUT) ? iscsi_process_write : NULL... | [
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15,
17,
19,
21
],
[
23
],
[
25
],
[
35
],
[
37,
39
],
[
41
],
[
43
]
] |
17,732 | static struct omap_watchdog_timer_s *omap_wd_timer_init(MemoryRegion *memory,
hwaddr base,
qemu_irq irq, omap_clk clk)
{
struct omap_watchdog_timer_s *s = (struct omap_watchdog_timer_s *)
g_malloc0(sizeof(struct omap_watchdog_timer_s));
s->timer.irq = irq;
... | true | qemu | b45c03f585ea9bb1af76c73e82195418c294919d | static struct omap_watchdog_timer_s *omap_wd_timer_init(MemoryRegion *memory,
hwaddr base,
qemu_irq irq, omap_clk clk)
{
struct omap_watchdog_timer_s *s = (struct omap_watchdog_timer_s *)
g_malloc0(sizeof(struct omap_watchdog_timer_s));
s->timer.irq = irq;
... | {
"code": [
" struct omap_watchdog_timer_s *s = (struct omap_watchdog_timer_s *)",
" g_malloc0(sizeof(struct omap_watchdog_timer_s));"
],
"line_no": [
9,
11
]
} | static struct omap_watchdog_timer_s *FUNC_0(MemoryRegion *VAR_0,
hwaddr VAR_1,
qemu_irq VAR_2, omap_clk VAR_3)
{
struct omap_watchdog_timer_s *VAR_4 = (struct omap_watchdog_timer_s *)
g_malloc0(sizeof(struct omap_watchdog_timer_s));
VAR_4->timer.VAR_2 = VAR_2;... | [
"static struct omap_watchdog_timer_s *FUNC_0(MemoryRegion *VAR_0,\nhwaddr VAR_1,\nqemu_irq VAR_2, omap_clk VAR_3)\n{",
"struct omap_watchdog_timer_s *VAR_4 = (struct omap_watchdog_timer_s *)\ng_malloc0(sizeof(struct omap_watchdog_timer_s));",
"VAR_4->timer.VAR_2 = VAR_2;",
"VAR_4->timer.VAR_3 = VAR_3;",
"VA... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
31
],
[
35
],
[
37
]
] |
17,733 | static target_ulong h_enter(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 pteh = args[2];
target_ulong ptel = args[3];
... | true | qemu | f3c75d42adbba553eaf218a832d4fbea32c8f7b8 | static target_ulong h_enter(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 pteh = args[2];
target_ulong ptel = args[3];
... | {
"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": [
103,
103,
103
]
} | 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 pteh = args[2];
target_ulong ptel = args[3];
... | [
"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 pteh = args[2];",
"target_ulong ptel = args[3];",
"target_ulong page_s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
29
],
[
31,
33
],
[
37
],
[
39,
41
],
[
45
],
[
49
],
[
51
],
[
53
],
[... |
17,736 | static inline int asym_quant(int c, int e, int qbits)
{
int m;
c = (((c << e) >> (24 - qbits)) + 1) >> 1;
m = (1 << (qbits-1));
if (c >= m)
c = m - 1;
av_assert2(c >= -m);
return c;
}
| true | FFmpeg | 979572365f2133f969f3f49ec6a99cc8739d2eba | static inline int asym_quant(int c, int e, int qbits)
{
int m;
c = (((c << e) >> (24 - qbits)) + 1) >> 1;
m = (1 << (qbits-1));
if (c >= m)
c = m - 1;
av_assert2(c >= -m);
return c;
}
| {
"code": [
" c = (((c << e) >> (24 - qbits)) + 1) >> 1;"
],
"line_no": [
9
]
} | static inline int FUNC_0(int VAR_0, int VAR_1, int VAR_2)
{
int VAR_3;
VAR_0 = (((VAR_0 << VAR_1) >> (24 - VAR_2)) + 1) >> 1;
VAR_3 = (1 << (VAR_2-1));
if (VAR_0 >= VAR_3)
VAR_0 = VAR_3 - 1;
av_assert2(VAR_0 >= -VAR_3);
return VAR_0;
}
| [
"static inline int FUNC_0(int VAR_0, int VAR_1, int VAR_2)\n{",
"int VAR_3;",
"VAR_0 = (((VAR_0 << VAR_1) >> (24 - VAR_2)) + 1) >> 1;",
"VAR_3 = (1 << (VAR_2-1));",
"if (VAR_0 >= VAR_3)\nVAR_0 = VAR_3 - 1;",
"av_assert2(VAR_0 >= -VAR_3);",
"return VAR_0;",
"}"
] | [
0,
0,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21
]
] |
17,738 | void virtqueue_get_avail_bytes(VirtQueue *vq, unsigned int *in_bytes,
unsigned int *out_bytes,
unsigned max_in_bytes, unsigned max_out_bytes)
{
VirtIODevice *vdev = vq->vdev;
unsigned int max, idx;
unsigned int total_bufs, in_total, out_tot... | true | qemu | e0e2d644096c79a71099b176d08f465f6803a8b1 | void virtqueue_get_avail_bytes(VirtQueue *vq, unsigned int *in_bytes,
unsigned int *out_bytes,
unsigned max_in_bytes, unsigned max_out_bytes)
{
VirtIODevice *vdev = vq->vdev;
unsigned int max, idx;
unsigned int total_bufs, in_total, out_tot... | {
"code": [
" caches = atomic_rcu_read(&vq->vring.caches);",
" caches = atomic_rcu_read(&vq->vring.caches);",
" caches = atomic_rcu_read(&vq->vring.caches);"
],
"line_no": [
55,
55,
55
]
} | void FUNC_0(VirtQueue *VAR_0, unsigned int *VAR_1,
unsigned int *VAR_2,
unsigned VAR_3, unsigned VAR_4)
{
VirtIODevice *vdev = VAR_0->vdev;
unsigned int VAR_5, VAR_6;
unsigned int VAR_7, VAR_8, VAR_9;
VRingMemoryRegionCaches *caches;
... | [
"void FUNC_0(VirtQueue *VAR_0, unsigned int *VAR_1,\nunsigned int *VAR_2,\nunsigned VAR_3, unsigned VAR_4)\n{",
"VirtIODevice *vdev = VAR_0->vdev;",
"unsigned int VAR_5, VAR_6;",
"unsigned int VAR_7, VAR_8, VAR_9;",
"VRingMemoryRegionCaches *caches;",
"MemoryRegionCache indirect_desc_cache = MEMORY_REGION... | [
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,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
... |
17,740 | static inline int compress_coef(int *coefs, int num)
{
int i, res = 0;
for (i = 0; i < num; i++)
res += coef_test_compression(coefs[i]);
return res == num ? 1 : 0;
}
| false | FFmpeg | f20b67173ca6a05b8c3dee02dad3b7243b96292b | static inline int compress_coef(int *coefs, int num)
{
int i, res = 0;
for (i = 0; i < num; i++)
res += coef_test_compression(coefs[i]);
return res == num ? 1 : 0;
}
| {
"code": [],
"line_no": []
} | static inline int FUNC_0(int *VAR_0, int VAR_1)
{
int VAR_2, VAR_3 = 0;
for (VAR_2 = 0; VAR_2 < VAR_1; VAR_2++)
VAR_3 += coef_test_compression(VAR_0[VAR_2]);
return VAR_3 == VAR_1 ? 1 : 0;
}
| [
"static inline int FUNC_0(int *VAR_0, int VAR_1)\n{",
"int VAR_2, VAR_3 = 0;",
"for (VAR_2 = 0; VAR_2 < VAR_1; VAR_2++)",
"VAR_3 += coef_test_compression(VAR_0[VAR_2]);",
"return VAR_3 == VAR_1 ? 1 : 0;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
17,741 | static char *sysbus_get_fw_dev_path(DeviceState *dev)
{
SysBusDevice *s = SYS_BUS_DEVICE(dev);
char path[40];
int off;
off = snprintf(path, sizeof(path), "%s", qdev_fw_name(dev));
if (s->num_mmio) {
snprintf(path + off, sizeof(path) - off, "@"TARGET_FMT_plx,
s->m... | true | qemu | 5ba03e2dd785362026917e4cc8a1fd2c64e8e62c | static char *sysbus_get_fw_dev_path(DeviceState *dev)
{
SysBusDevice *s = SYS_BUS_DEVICE(dev);
char path[40];
int off;
off = snprintf(path, sizeof(path), "%s", qdev_fw_name(dev));
if (s->num_mmio) {
snprintf(path + off, sizeof(path) - off, "@"TARGET_FMT_plx,
s->m... | {
"code": [
" char path[40];",
" int off;",
" off = snprintf(path, sizeof(path), \"%s\", qdev_fw_name(dev));",
" snprintf(path + off, sizeof(path) - off, \"@\"TARGET_FMT_plx,",
" s->mmio[0].addr);",
" } else if (s->num_pio) {",
" snprintf(path + of... | static char *FUNC_0(DeviceState *VAR_0)
{
SysBusDevice *s = SYS_BUS_DEVICE(VAR_0);
char VAR_1[40];
int VAR_2;
VAR_2 = snprintf(VAR_1, sizeof(VAR_1), "%s", qdev_fw_name(VAR_0));
if (s->num_mmio) {
snprintf(VAR_1 + VAR_2, sizeof(VAR_1) - VAR_2, "@"TARGET_FMT_plx,
s... | [
"static char *FUNC_0(DeviceState *VAR_0)\n{",
"SysBusDevice *s = SYS_BUS_DEVICE(VAR_0);",
"char VAR_1[40];",
"int VAR_2;",
"VAR_2 = snprintf(VAR_1, sizeof(VAR_1), \"%s\", qdev_fw_name(VAR_0));",
"if (s->num_mmio) {",
"snprintf(VAR_1 + VAR_2, sizeof(VAR_1) - VAR_2, \"@\"TARGET_FMT_plx,\ns->mmio[0].addr);... | [
0,
0,
1,
1,
1,
0,
1,
1,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
]
] |
17,743 | static void init_pipe_signaling(PCIQXLDevice *d)
{
if (pipe(d->pipe) < 0) {
dprint(d, 1, "%s: pipe creation failed\n", __FUNCTION__);
return;
}
#ifdef CONFIG_IOTHREAD
fcntl(d->pipe[0], F_SETFL, O_NONBLOCK);
#else
fcntl(d->pipe[0], F_SETFL, O_NONBLOCK /* | O_ASYNC */);
#endif
fcnt... | true | qemu | 12d4536f7d911b6d87a766ad7300482ea663cea2 | static void init_pipe_signaling(PCIQXLDevice *d)
{
if (pipe(d->pipe) < 0) {
dprint(d, 1, "%s: pipe creation failed\n", __FUNCTION__);
return;
}
#ifdef CONFIG_IOTHREAD
fcntl(d->pipe[0], F_SETFL, O_NONBLOCK);
#else
fcntl(d->pipe[0], F_SETFL, O_NONBLOCK );
#endif
fcntl(d->pipe[1], F... | {
"code": [
"#ifdef CONFIG_IOTHREAD",
"#endif",
"#ifdef CONFIG_IOTHREAD",
"#endif",
"#endif",
"#ifdef CONFIG_IOTHREAD",
"#else",
"#endif",
"#ifdef CONFIG_IOTHREAD",
"#else",
"#endif",
"#ifdef CONFIG_IOTHREAD",
"#endif",
"#else",
"#endif",
"#endif",
"... | static void FUNC_0(PCIQXLDevice *VAR_0)
{
if (pipe(VAR_0->pipe) < 0) {
dprint(VAR_0, 1, "%s: pipe creation failed\n", __FUNCTION__);
return;
}
#ifdef CONFIG_IOTHREAD
fcntl(VAR_0->pipe[0], F_SETFL, O_NONBLOCK);
#else
fcntl(VAR_0->pipe[0], F_SETFL, O_NONBLOCK );
#endif
fcntl(VAR_0-... | [
"static void FUNC_0(PCIQXLDevice *VAR_0)\n{",
"if (pipe(VAR_0->pipe) < 0) {",
"dprint(VAR_0, 1, \"%s: pipe creation failed\\n\", __FUNCTION__);",
"return;",
"}",
"#ifdef CONFIG_IOTHREAD\nfcntl(VAR_0->pipe[0], F_SETFL, O_NONBLOCK);",
"#else\nfcntl(VAR_0->pipe[0], F_SETFL, O_NONBLOCK );",
"#endif\nfcntl... | [
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
17,
19
],
[
21,
23
],
[
25
],
[
29
],
[
31
],
[
33
]
] |
17,744 | void ff_simple_idct248_put(uint8_t *dest, int line_size, DCTELEM *block)
{
int i;
DCTELEM *ptr;
/* butterfly */
ptr = block;
for(i=0;i<4;i++) {
BF(0);
BF(1);
BF(2);
BF(3);
BF(4);
BF(5);
BF(6);
BF(7);
ptr += 2 * ... | true | FFmpeg | f78cd0c243b9149c7f604ecf1006d78e344aa6ca | void ff_simple_idct248_put(uint8_t *dest, int line_size, DCTELEM *block)
{
int i;
DCTELEM *ptr;
ptr = block;
for(i=0;i<4;i++) {
BF(0);
BF(1);
BF(2);
BF(3);
BF(4);
BF(5);
BF(6);
BF(7);
ptr += 2 * 8;
}
... | {
"code": [
" idctRowCondDC_8(block + i*8);",
" idctRowCondDC_8(block + i*8);"
],
"line_no": [
43,
43
]
} | void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2)
{
int VAR_3;
DCTELEM *ptr;
ptr = VAR_2;
for(VAR_3=0;VAR_3<4;VAR_3++) {
BF(0);
BF(1);
BF(2);
BF(3);
BF(4);
BF(5);
BF(6);
BF(7);
ptr += 2 * 8;
}
... | [
"void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2)\n{",
"int VAR_3;",
"DCTELEM *ptr;",
"ptr = VAR_2;",
"for(VAR_3=0;VAR_3<4;VAR_3++) {",
"BF(0);",
"BF(1);",
"BF(2);",
"BF(3);",
"BF(4);",
"BF(5);",
"BF(6);",
"BF(7);",
"ptr += 2 * 8;",
"}",
"for(VAR_3=0; VAR_3<8; VAR_3++) {",
"idc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
41
],
[
43
],
[
45
],
[
51
],
[
53... |
17,745 | static int vc1_decode_intra_block(VC1Context *v, int16_t block[64], int n,
int coded, int mquant, int codingset)
{
GetBitContext *gb = &v->s.gb;
MpegEncContext *s = &v->s;
int dc_pred_dir = 0; /* Direction of the DC prediction used */
int i;
int16_t *dc_val;
... | true | FFmpeg | 63c61f0be03624fbd9e352d8393122beb3ddcc1a | static int vc1_decode_intra_block(VC1Context *v, int16_t block[64], int n,
int coded, int mquant, int codingset)
{
GetBitContext *gb = &v->s.gb;
MpegEncContext *s = &v->s;
int dc_pred_dir = 0;
int i;
int16_t *dc_val;
int16_t *ac_val, *ac_val2;
int ... | {
"code": [
" int16_t *dc_val;",
" int16_t *dc_val;"
],
"line_no": [
15,
15
]
} | static int FUNC_0(VC1Context *VAR_0, int16_t VAR_1[64], int VAR_2,
int VAR_3, int VAR_4, int VAR_5)
{
GetBitContext *gb = &VAR_0->s.gb;
MpegEncContext *s = &VAR_0->s;
int VAR_6 = 0;
int VAR_7;
int16_t *dc_val;
int16_t *ac_val, *ac_val2;
int VAR_8;
... | [
"static int FUNC_0(VC1Context *VAR_0, int16_t VAR_1[64], int VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{",
"GetBitContext *gb = &VAR_0->s.gb;",
"MpegEncContext *s = &VAR_0->s;",
"int VAR_6 = 0;",
"int VAR_7;",
"int16_t *dc_val;",
"int16_t *ac_val, *ac_val2;",
"int VAR_8;",
"int VAR_9 = s->mb_x + s->... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
39
],
[
45
],
[
47
],
[
53
],
[
55
],
[... |
17,746 | static int64_t coroutine_fn vvfat_co_get_block_status(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *n, BlockDriverState **file)
{
BDRVVVFATState* s = bs->opaque;
*n = s->sector_count - sector_num;
if (*n > nb_sectors) {
*n = nb_sectors;
} else if (*n < 0) {
retu... | true | qemu | 139921aaa77c435104308ad53b631a00c3b65ae8 | static int64_t coroutine_fn vvfat_co_get_block_status(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *n, BlockDriverState **file)
{
BDRVVVFATState* s = bs->opaque;
*n = s->sector_count - sector_num;
if (*n > nb_sectors) {
*n = nb_sectors;
} else if (*n < 0) {
retu... | {
"code": [
" BDRVVVFATState* s = bs->opaque;",
" *n = s->sector_count - sector_num;"
],
"line_no": [
7,
9
]
} | static int64_t VAR_0 vvfat_co_get_block_status(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *n, BlockDriverState **file)
{
BDRVVVFATState* s = bs->opaque;
*n = s->sector_count - sector_num;
if (*n > nb_sectors) {
*n = nb_sectors;
} else if (*n < 0) {
return 0;
... | [
"static int64_t VAR_0 vvfat_co_get_block_status(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors, int *n, BlockDriverState **file)\n{",
"BDRVVVFATState* s = bs->opaque;",
"*n = s->sector_count - sector_num;",
"if (*n > nb_sectors) {",
"*n = nb_sectors;",
"} else if (*n < 0) {",
"return 0;",
"... | [
0,
1,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
17,747 | static void gen_rot_rm_T1(DisasContext *s, int ot, int op1, int is_right)
{
target_ulong mask = (ot == OT_QUAD ? 0x3f : 0x1f);
TCGv_i32 t0, t1;
/* load */
if (op1 == OR_TMP0) {
gen_op_ld_T0_A0(ot + s->mem_index);
} else {
gen_op_mov_TN_reg(ot, 0, op1);
}
tcg_gen... | true | qemu | 089305ac0a273e64c9a5655d26da7fe19ecee66f | static void gen_rot_rm_T1(DisasContext *s, int ot, int op1, int is_right)
{
target_ulong mask = (ot == OT_QUAD ? 0x3f : 0x1f);
TCGv_i32 t0, t1;
if (op1 == OR_TMP0) {
gen_op_ld_T0_A0(ot + s->mem_index);
} else {
gen_op_mov_TN_reg(ot, 0, op1);
}
tcg_gen_andi_tl(c... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)
{
target_ulong mask = (VAR_1 == OT_QUAD ? 0x3f : 0x1f);
TCGv_i32 t0, t1;
if (VAR_2 == OR_TMP0) {
gen_op_ld_T0_A0(VAR_1 + VAR_0->mem_index);
} else {
gen_op_mov_TN_reg(VAR_1, 0, VAR_2);
}
t... | [
"static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{",
"target_ulong mask = (VAR_1 == OT_QUAD ? 0x3f : 0x1f);",
"TCGv_i32 t0, t1;",
"if (VAR_2 == OR_TMP0) {",
"gen_op_ld_T0_A0(VAR_1 + VAR_0->mem_index);",
"} else {",
"gen_op_mov_TN_reg(VAR_1, 0, VAR_2);",
"}",
"tcg_gen_andi_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
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31,
35
],
[
37
],
[
39
],
[
41,
45
],
[
47
],
[
49,
51,
53,
55
],
[
57
],
... |
17,748 | int rtjpeg_decode_frame_yuv420(RTJpegContext *c, AVFrame *f,
const uint8_t *buf, int buf_size) {
GetBitContext gb;
int w = c->w / 16, h = c->h / 16;
int x, y;
uint8_t *y1 = f->data[0], *y2 = f->data[0] + 8 * f->linesize[0];
uint8_t *u = f->data[1], *v = f->data[2... | true | FFmpeg | 4e6413c67d3f80d24db2caa9ce5f030225e67e2f | int rtjpeg_decode_frame_yuv420(RTJpegContext *c, AVFrame *f,
const uint8_t *buf, int buf_size) {
GetBitContext gb;
int w = c->w / 16, h = c->h / 16;
int x, y;
uint8_t *y1 = f->data[0], *y2 = f->data[0] + 8 * f->linesize[0];
uint8_t *u = f->data[1], *v = f->data[2... | {
"code": [
" if (get_block(&gb, block, c->scan, c->lquant) > 0)",
" c->dsp->idct_put(y1, f->linesize[0], block);",
" if (get_block(&gb, block, c->scan, c->lquant) > 0)",
" c->dsp->idct_put(y1, f->linesize[0], block);",
" if (get_block... | int FUNC_0(RTJpegContext *VAR_0, AVFrame *VAR_1,
const uint8_t *VAR_2, int VAR_3) {
GetBitContext gb;
int VAR_4 = VAR_0->VAR_4 / 16, VAR_5 = VAR_0->VAR_5 / 16;
int VAR_6, VAR_7;
uint8_t *y1 = VAR_1->data[0], *y2 = VAR_1->data[0] + 8 * VAR_1->linesize[0];
uint8_t ... | [
"int FUNC_0(RTJpegContext *VAR_0, AVFrame *VAR_1,\nconst uint8_t *VAR_2, int VAR_3) {",
"GetBitContext gb;",
"int VAR_4 = VAR_0->VAR_4 / 16, VAR_5 = VAR_0->VAR_5 / 16;",
"int VAR_6, VAR_7;",
"uint8_t *y1 = VAR_1->data[0], *y2 = VAR_1->data[0] + 8 * VAR_1->linesize[0];",
"uint8_t *u = VAR_1->data[1], *v = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
1,
0,
1,
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
... |
17,750 | static void virgl_resource_attach_backing(VirtIOGPU *g,
struct virtio_gpu_ctrl_command *cmd)
{
struct virtio_gpu_resource_attach_backing att_rb;
struct iovec *res_iovs;
int ret;
VIRTIO_GPU_FILL_CMD(att_rb);
trace_virtio_gpu_cmd_res_back_attach(att_r... | true | qemu | 33243031dad02d161225ba99d782616da133f689 | static void virgl_resource_attach_backing(VirtIOGPU *g,
struct virtio_gpu_ctrl_command *cmd)
{
struct virtio_gpu_resource_attach_backing att_rb;
struct iovec *res_iovs;
int ret;
VIRTIO_GPU_FILL_CMD(att_rb);
trace_virtio_gpu_cmd_res_back_attach(att_r... | {
"code": [
" virgl_renderer_resource_attach_iov(att_rb.resource_id,",
" res_iovs, att_rb.nr_entries);"
],
"line_no": [
33,
35
]
} | static void FUNC_0(VirtIOGPU *VAR_0,
struct virtio_gpu_ctrl_command *VAR_1)
{
struct virtio_gpu_resource_attach_backing VAR_2;
struct iovec *VAR_3;
int VAR_4;
VIRTIO_GPU_FILL_CMD(VAR_2);
trace_virtio_gpu_cmd_res_back_attach(VAR_2.resource_id);
... | [
"static void FUNC_0(VirtIOGPU *VAR_0,\nstruct virtio_gpu_ctrl_command *VAR_1)\n{",
"struct virtio_gpu_resource_attach_backing VAR_2;",
"struct iovec *VAR_3;",
"int VAR_4;",
"VIRTIO_GPU_FILL_CMD(VAR_2);",
"trace_virtio_gpu_cmd_res_back_attach(VAR_2.resource_id);",
"VAR_4 = virtio_gpu_create_mapping_iov(&... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33,
35
],
[
37
]
] |
17,753 | static int dvbsub_probe(AVProbeData *p)
{
int i, j, k;
const uint8_t *end = p->buf + p->buf_size;
int type, len;
int max_score = 0;
for(i=0; i<p->buf_size; i++){
if (p->buf[i] == 0x0f) {
const uint8_t *ptr = p->buf + i;
uint8_t histogram[6] = {0};
... | true | FFmpeg | 2cda1a16d0d34f1e936ed179c6f864bae1026b06 | static int dvbsub_probe(AVProbeData *p)
{
int i, j, k;
const uint8_t *end = p->buf + p->buf_size;
int type, len;
int max_score = 0;
for(i=0; i<p->buf_size; i++){
if (p->buf[i] == 0x0f) {
const uint8_t *ptr = p->buf + i;
uint8_t histogram[6] = {0};
... | {
"code": [
" for(j=0; ptr + 6 < end; j++) {"
],
"line_no": [
25
]
} | static int FUNC_0(AVProbeData *VAR_0)
{
int VAR_1, VAR_2, VAR_3;
const uint8_t *VAR_4 = VAR_0->buf + VAR_0->buf_size;
int VAR_5, VAR_6;
int VAR_7 = 0;
for(VAR_1=0; VAR_1<VAR_0->buf_size; VAR_1++){
if (VAR_0->buf[VAR_1] == 0x0f) {
const uint8_t *ptr = VAR_0->buf + VAR_1;... | [
"static int FUNC_0(AVProbeData *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3;",
"const uint8_t *VAR_4 = VAR_0->buf + VAR_0->buf_size;",
"int VAR_5, VAR_6;",
"int VAR_7 = 0;",
"for(VAR_1=0; VAR_1<VAR_0->buf_size; VAR_1++){",
"if (VAR_0->buf[VAR_1] == 0x0f) {",
"const uint8_t *ptr = VAR_0->buf + VAR_1;",
"uin... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
17,754 | static void gen_hrfid(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
/* Restore CPU state */
if (unlikely(ctx->pr || !ctx->hv)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
gen_helper_hrfid(cpu_env);... | true | qemu | 9b2fadda3e0196ffd485adde4fe9cdd6fae35300 | static void gen_hrfid(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(ctx->pr || !ctx->hv)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
gen_helper_hrfid(cpu_env);
gen_sync_exceptio... | {
"code": [
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);",
" gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OP... | static void FUNC_0(DisasContext *VAR_0)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
#else
if (unlikely(VAR_0->pr || !VAR_0->hv)) {
gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);
return;
}
gen_helper_hrfid(cpu_env);
gen_sync_e... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"#else\nif (unlikely(VAR_0->pr || !VAR_0->hv)) {",
"gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);",
"return;",
"}",
"gen_helper_hrfid(cpu_env);",
"gen_sync_exception(... | [
0,
1,
1,
1,
0,
0,
0,
0,
1
] | [
[
1,
3
],
[
5,
7
],
[
9,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
]
] |
17,755 | static void coroutine_fn v9fs_write(void *opaque)
{
ssize_t err;
int32_t fid;
uint64_t off;
uint32_t count;
int32_t len = 0;
int32_t total = 0;
size_t offset = 7;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
QEMUIOVector qiov_full;
QEMUIO... | true | qemu | fdfcc9aeea1492f4b819a24c94dfb678145b1bf9 | static void coroutine_fn v9fs_write(void *opaque)
{
ssize_t err;
int32_t fid;
uint64_t off;
uint32_t count;
int32_t len = 0;
int32_t total = 0;
size_t offset = 7;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
QEMUIOVector qiov_full;
QEMUIO... | {
"code": [
" goto out;"
],
"line_no": [
81
]
} | static void VAR_0 v9fs_write(void *opaque)
{
ssize_t err;
int32_t fid;
uint64_t off;
uint32_t count;
int32_t len = 0;
int32_t total = 0;
size_t offset = 7;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
QEMUIOVector qiov_full;
QEMUIOVector ... | [
"static void VAR_0 v9fs_write(void *opaque)\n{",
"ssize_t err;",
"int32_t fid;",
"uint64_t off;",
"uint32_t count;",
"int32_t len = 0;",
"int32_t total = 0;",
"size_t offset = 7;",
"V9fsFidState *fidp;",
"V9fsPDU *pdu = opaque;",
"V9fsState *s = pdu->s;",
"QEMUIOVector qiov_full;",
"QEMUIOVe... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
17,756 | Qcow2Cache *qcow2_cache_create(BlockDriverState *bs, int num_tables)
{
BDRVQcowState *s = bs->opaque;
Qcow2Cache *c;
int i;
c = g_malloc0(sizeof(*c));
c->size = num_tables;
c->entries = g_malloc0(sizeof(*c->entries) * num_tables);
for (i = 0; i < c->size; i++) {
c->entri... | true | qemu | 02c4f26b1517d9e403ec10d6f6ca3c0276d19e43 | Qcow2Cache *qcow2_cache_create(BlockDriverState *bs, int num_tables)
{
BDRVQcowState *s = bs->opaque;
Qcow2Cache *c;
int i;
c = g_malloc0(sizeof(*c));
c->size = num_tables;
c->entries = g_malloc0(sizeof(*c->entries) * num_tables);
for (i = 0; i < c->size; i++) {
c->entri... | {
"code": [
" c->entries = g_malloc0(sizeof(*c->entries) * num_tables);"
],
"line_no": [
17
]
} | Qcow2Cache *FUNC_0(BlockDriverState *bs, int num_tables)
{
BDRVQcowState *s = bs->opaque;
Qcow2Cache *c;
int VAR_0;
c = g_malloc0(sizeof(*c));
c->size = num_tables;
c->entries = g_malloc0(sizeof(*c->entries) * num_tables);
for (VAR_0 = 0; VAR_0 < c->size; VAR_0++) {
c->e... | [
"Qcow2Cache *FUNC_0(BlockDriverState *bs, int num_tables)\n{",
"BDRVQcowState *s = bs->opaque;",
"Qcow2Cache *c;",
"int VAR_0;",
"c = g_malloc0(sizeof(*c));",
"c->size = num_tables;",
"c->entries = g_malloc0(sizeof(*c->entries) * num_tables);",
"for (VAR_0 = 0; VAR_0 < c->size; VAR_0++) {",
"c->entr... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
17,757 | int bdrv_commit(BlockDriverState *bs)
{
BlockDriver *drv = bs->drv;
int64_t sector, total_sectors;
int n, ro, open_flags;
int ret = 0;
uint8_t *buf;
char filename[1024];
if (!drv)
return -ENOMEDIUM;
if (!bs->backing_hd) {
return -ENOTSUP;
}
... | true | qemu | c2cba3d9314f972dfaf724d0ec2d018eb54c95f1 | int bdrv_commit(BlockDriverState *bs)
{
BlockDriver *drv = bs->drv;
int64_t sector, total_sectors;
int n, ro, open_flags;
int ret = 0;
uint8_t *buf;
char filename[1024];
if (!drv)
return -ENOMEDIUM;
if (!bs->backing_hd) {
return -ENOTSUP;
}
... | {
"code": [
" char filename[1024];",
" strncpy(filename, bs->backing_hd->filename, sizeof(filename));"
],
"line_no": [
15,
43
]
} | int FUNC_0(BlockDriverState *VAR_0)
{
BlockDriver *drv = VAR_0->drv;
int64_t sector, total_sectors;
int VAR_1, VAR_2, VAR_3;
int VAR_4 = 0;
uint8_t *buf;
char VAR_5[1024];
if (!drv)
return -ENOMEDIUM;
if (!VAR_0->backing_hd) {
return -ENOTSUP;
}
... | [
"int FUNC_0(BlockDriverState *VAR_0)\n{",
"BlockDriver *drv = VAR_0->drv;",
"int64_t sector, total_sectors;",
"int VAR_1, VAR_2, VAR_3;",
"int VAR_4 = 0;",
"uint8_t *buf;",
"char VAR_5[1024];",
"if (!drv)\nreturn -ENOMEDIUM;",
"if (!VAR_0->backing_hd) {",
"return -ENOTSUP;",
"}",
"if (bdrv_in_... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[... |
17,758 | static int cinepak_decode (CinepakContext *s)
{
const uint8_t *eod = (s->data + s->size);
int i, result, strip_size, frame_flags, num_strips;
int y0 = 0;
int encoded_buf_size;
if (s->size < 10)
return -1;
frame_flags = s->data[0];
num_strip... | true | FFmpeg | dc255275f6293a060518271a151e1ce75499e874 | static int cinepak_decode (CinepakContext *s)
{
const uint8_t *eod = (s->data + s->size);
int i, result, strip_size, frame_flags, num_strips;
int y0 = 0;
int encoded_buf_size;
if (s->size < 10)
return -1;
frame_flags = s->data[0];
num_strip... | {
"code": [
" if ((s->data[10] == 0xFE) &&"
],
"line_no": [
45
]
} | static int FUNC_0 (CinepakContext *VAR_0)
{
const uint8_t *VAR_1 = (VAR_0->data + VAR_0->size);
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;
int VAR_7 = 0;
int VAR_8;
if (VAR_0->size < 10)
return -1;
VAR_5 = VAR_0->data[0];
VAR_6 = AV_RB16 (&VAR... | [
"static int FUNC_0 (CinepakContext *VAR_0)\n{",
"const uint8_t *VAR_1 = (VAR_0->data + VAR_0->size);",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;",
"int VAR_7 = 0;",
"int VAR_8;",
"if (VAR_0->size < 10)\nreturn -1;",
"VAR_5 = VAR_0->data[0];",
"VAR_6 = AV_RB16 (&VAR_0->dat... | [
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
21
],
[
23
],
[
25
],
[
31
],
[
33
],
[
45,
47,
49,
51,
53,
55,
57
],
[
59,
61
],
[
63
],
[
65
],
[
67
... |
17,759 | int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size, AVCodecParserContext *s)
{
int i;
uint32_t state = pc->state;
/* EOF considered as end of frame */
if (buf_size == 0)
return 0;
/*
0 frame start -> 1/4
1 first_SEQEXT -> 0/2
2 first... | true | FFmpeg | 69ee915e1c628fdf8b270de8c19ff357333e354a | int ff_mpeg1_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size, AVCodecParserContext *s)
{
int i;
uint32_t state = pc->state;
if (buf_size == 0)
return 0;
for (i = 0; i < buf_size; i++) {
av_assert1(pc->frame_start_found >= 0 && pc->frame_... | {
"code": [
" ff_fetch_timestamp(s, i - 3, 1);"
],
"line_no": [
105
]
} | int FUNC_0(ParseContext *VAR_0, const uint8_t *VAR_1, int VAR_2, AVCodecParserContext *VAR_3)
{
int VAR_4;
uint32_t state = VAR_0->state;
if (VAR_2 == 0)
return 0;
for (VAR_4 = 0; VAR_4 < VAR_2; VAR_4++) {
av_assert1(VAR_0->frame_start_found >= 0 && VAR_0... | [
"int FUNC_0(ParseContext *VAR_0, const uint8_t *VAR_1, int VAR_2, AVCodecParserContext *VAR_3)\n{",
"int VAR_4;",
"uint32_t state = VAR_0->state;",
"if (VAR_2 == 0)\nreturn 0;",
"for (VAR_4 = 0; VAR_4 < VAR_2; VAR_4++) {",
"av_assert1(VAR_0->frame_start_found >= 0 && VAR_0->frame_start_found <= 4);",
"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13,
15
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47,
49
],
[
51,
53
],
[
55
],
[
57
],
[
59
],
[
61
],
[
63
],
[
65
],
[
67... |
17,760 | static void dec_barrel(DisasContext *dc)
{
TCGv t0;
bool s, t;
if ((dc->tb_flags & MSR_EE_FLAG)
&& (dc->cpu->env.pvr.regs[2] & PVR2_ILL_OPCODE_EXC_MASK)
&& !dc->cpu->cfg.use_barrel) {
tcg_gen_movi_tl(cpu_SR[SR_ESR], ESR_EC_ILLEGAL_OP);
t_gen_raise_exception(dc, ... | true | qemu | 5c8f44b7dbdec77eff2ed3e239ea31d649894932 | static void dec_barrel(DisasContext *dc)
{
TCGv t0;
bool s, t;
if ((dc->tb_flags & MSR_EE_FLAG)
&& (dc->cpu->env.pvr.regs[2] & PVR2_ILL_OPCODE_EXC_MASK)
&& !dc->cpu->cfg.use_barrel) {
tcg_gen_movi_tl(cpu_SR[SR_ESR], ESR_EC_ILLEGAL_OP);
t_gen_raise_exception(dc, ... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0)
{
TCGv t0;
bool s, t;
if ((VAR_0->tb_flags & MSR_EE_FLAG)
&& (VAR_0->cpu->env.pvr.regs[2] & PVR2_ILL_OPCODE_EXC_MASK)
&& !VAR_0->cpu->cfg.use_barrel) {
tcg_gen_movi_tl(cpu_SR[SR_ESR], ESR_EC_ILLEGAL_OP);
t_gen_raise_except... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"TCGv t0;",
"bool s, t;",
"if ((VAR_0->tb_flags & MSR_EE_FLAG)\n&& (VAR_0->cpu->env.pvr.regs[2] & PVR2_ILL_OPCODE_EXC_MASK)\n&& !VAR_0->cpu->cfg.use_barrel) {",
"tcg_gen_movi_tl(cpu_SR[SR_ESR], ESR_EC_ILLEGAL_OP);",
"t_gen_raise_exception(VAR_0, EXCP_HW_EXCP);... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33,
35
],
[
39
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
],
... |
17,761 | static int hwmap_config_output(AVFilterLink *outlink)
{
AVFilterContext *avctx = outlink->src;
HWMapContext *ctx = avctx->priv;
AVFilterLink *inlink = avctx->inputs[0];
AVHWFramesContext *hwfc;
AVBufferRef *device;
const AVPixFmtDescriptor *desc;
int err;
av_log(avctx, ... | true | FFmpeg | 81a4cb8e58636d4efd200c2b4fec786a7e948d8b | static int hwmap_config_output(AVFilterLink *outlink)
{
AVFilterContext *avctx = outlink->src;
HWMapContext *ctx = avctx->priv;
AVFilterLink *inlink = avctx->inputs[0];
AVHWFramesContext *hwfc;
AVBufferRef *device;
const AVPixFmtDescriptor *desc;
int err;
av_log(avctx, ... | {
"code": [
" (desc->flags & AV_PIX_FMT_FLAG_HWACCEL)) {",
" \"required to create new frames with backwards \"",
" ctx->map_backwards = 1;",
" \"context for backward mapping: %d.\\n\", err);"
],
"line_no": [
93,
197,
209,
243
... | static int FUNC_0(AVFilterLink *VAR_0)
{
AVFilterContext *avctx = VAR_0->src;
HWMapContext *ctx = avctx->priv;
AVFilterLink *inlink = avctx->inputs[0];
AVHWFramesContext *hwfc;
AVBufferRef *device;
const AVPixFmtDescriptor *VAR_1;
int VAR_2;
av_log(avctx, AV_LOG_DEBUG, ... | [
"static int FUNC_0(AVFilterLink *VAR_0)\n{",
"AVFilterContext *avctx = VAR_0->src;",
"HWMapContext *ctx = avctx->priv;",
"AVFilterLink *inlink = avctx->inputs[0];",
"AVHWFramesContext *hwfc;",
"AVBufferRef *device;",
"const AVPixFmtDescriptor *VAR_1;",
"int VAR_2;",
"av_log(avctx, AV_LOG_DEBU... | [
0,
0,
0,
0,
0,
0,
0,
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,
1,
0,
0,
0,
1,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21,
23,
25
],
[
29
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
55
... |
17,762 | static int ram_find_and_save_block(RAMState *rs, bool last_stage)
{
PageSearchStatus pss;
int pages = 0;
bool again, found;
ram_addr_t dirty_ram_abs; /* Address of the start of the dirty page in
ram_addr_t space */
/* No dirty page as there is zero RAM */
... | true | qemu | 06b106889a09277617fc8c542397a9f595ee605a | static int ram_find_and_save_block(RAMState *rs, bool last_stage)
{
PageSearchStatus pss;
int pages = 0;
bool again, found;
ram_addr_t dirty_ram_abs;
if (!ram_bytes_total()) {
return pages;
}
pss.block = rs->last_seen_block;
pss.offset = rs->last_offset;
... | {
"code": [
" found = get_queued_page(rs, &pss, &dirty_ram_abs);",
" found = find_dirty_block(rs, &pss, &again, &dirty_ram_abs);",
" pages = ram_save_host_page(rs, &pss, last_stage, dirty_ram_abs);"
],
"line_no": [
47,
55,
63
]
} | static int FUNC_0(RAMState *VAR_0, bool VAR_1)
{
PageSearchStatus pss;
int VAR_2 = 0;
bool again, found;
ram_addr_t dirty_ram_abs;
if (!ram_bytes_total()) {
return VAR_2;
}
pss.block = VAR_0->last_seen_block;
pss.offset = VAR_0->last_offset;
pss.comple... | [
"static int FUNC_0(RAMState *VAR_0, bool VAR_1)\n{",
"PageSearchStatus pss;",
"int VAR_2 = 0;",
"bool again, found;",
"ram_addr_t dirty_ram_abs;",
"if (!ram_bytes_total()) {",
"return VAR_2;",
"}",
"pss.block = VAR_0->last_seen_block;",
"pss.offset = VAR_0->last_offset;",
"pss.complete_round = f... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
51
],
[
55
],
[
57
... |
17,763 | int msix_init(struct PCIDevice *dev, unsigned short nentries,
MemoryRegion *table_bar, uint8_t table_bar_nr,
unsigned table_offset, MemoryRegion *pba_bar,
uint8_t pba_bar_nr, unsigned pba_offset, uint8_t cap_pos)
{
int cap;
unsigned table_size, pba_size;
uint... | true | qemu | ee640c625e190a0c0e6b8966adc0e4720fb75200 | int msix_init(struct PCIDevice *dev, unsigned short nentries,
MemoryRegion *table_bar, uint8_t table_bar_nr,
unsigned table_offset, MemoryRegion *pba_bar,
uint8_t pba_bar_nr, unsigned pba_offset, uint8_t cap_pos)
{
int cap;
unsigned table_size, pba_size;
uint... | {
"code": [
" uint8_t pba_bar_nr, unsigned pba_offset, uint8_t cap_pos)",
" cap = pci_add_capability(dev, PCI_CAP_ID_MSIX, cap_pos, MSIX_CAP_LENGTH);"
],
"line_no": [
7,
61
]
} | int FUNC_0(struct PCIDevice *VAR_0, unsigned short VAR_1,
MemoryRegion *VAR_2, uint8_t VAR_3,
unsigned VAR_4, MemoryRegion *VAR_5,
uint8_t VAR_6, unsigned VAR_7, uint8_t VAR_8)
{
int VAR_9;
unsigned VAR_10, VAR_11;
uint8_t *config;
if (!msi_nonbr... | [
"int FUNC_0(struct PCIDevice *VAR_0, unsigned short VAR_1,\nMemoryRegion *VAR_2, uint8_t VAR_3,\nunsigned VAR_4, MemoryRegion *VAR_5,\nuint8_t VAR_6, unsigned VAR_7, uint8_t VAR_8)\n{",
"int VAR_9;",
"unsigned VAR_10, VAR_11;",
"uint8_t *config;",
"if (!msi_nonbroken) {",
"return -ENOTSUP;",
"}",
"if ... | [
1,
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
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
45,
47,
49,
51,
53
],
[
55
],
[
57
],
[
61
],
[... |
17,764 | static bool gen_wsr_ccount(DisasContext *dc, uint32_t sr, TCGv_i32 v)
{
if (dc->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
gen_helper_wsr_ccount(cpu_env, v);
if (dc->tb->cflags & CF_USE_ICOUNT) {
gen_io_end();
gen_jumpi_check_loop_end(dc, 0);
return true;
... | true | qemu | c5a49c63fa26e8825ad101dfe86339ae4c216539 | static bool gen_wsr_ccount(DisasContext *dc, uint32_t sr, TCGv_i32 v)
{
if (dc->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
gen_helper_wsr_ccount(cpu_env, v);
if (dc->tb->cflags & CF_USE_ICOUNT) {
gen_io_end();
gen_jumpi_check_loop_end(dc, 0);
return true;
... | {
"code": [
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if (dc->tb->cflags & CF_USE_ICOUNT) {",
" if ... | static bool FUNC_0(DisasContext *dc, uint32_t sr, TCGv_i32 v)
{
if (dc->tb->cflags & CF_USE_ICOUNT) {
gen_io_start();
}
gen_helper_wsr_ccount(cpu_env, v);
if (dc->tb->cflags & CF_USE_ICOUNT) {
gen_io_end();
gen_jumpi_check_loop_end(dc, 0);
return true;
}
... | [
"static bool FUNC_0(DisasContext *dc, uint32_t sr, TCGv_i32 v)\n{",
"if (dc->tb->cflags & CF_USE_ICOUNT) {",
"gen_io_start();",
"}",
"gen_helper_wsr_ccount(cpu_env, v);",
"if (dc->tb->cflags & CF_USE_ICOUNT) {",
"gen_io_end();",
"gen_jumpi_check_loop_end(dc, 0);",
"return true;",
"}",
"return fa... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
17,769 | static void common_unbind(struct common *c)
{
xen_be_unbind_evtchn(&c->xendev);
if (c->page) {
munmap(c->page, XC_PAGE_SIZE);
c->page = NULL;
}
}
| true | qemu | e0cb42ae4bc4438ba4ec0760df2d830b8759b255 | static void common_unbind(struct common *c)
{
xen_be_unbind_evtchn(&c->xendev);
if (c->page) {
munmap(c->page, XC_PAGE_SIZE);
c->page = NULL;
}
}
| {
"code": [
"\tmunmap(c->page, XC_PAGE_SIZE);"
],
"line_no": [
9
]
} | static void FUNC_0(struct common *VAR_0)
{
xen_be_unbind_evtchn(&VAR_0->xendev);
if (VAR_0->page) {
munmap(VAR_0->page, XC_PAGE_SIZE);
VAR_0->page = NULL;
}
}
| [
"static void FUNC_0(struct common *VAR_0)\n{",
"xen_be_unbind_evtchn(&VAR_0->xendev);",
"if (VAR_0->page) {",
"munmap(VAR_0->page, XC_PAGE_SIZE);",
"VAR_0->page = NULL;",
"}",
"}"
] | [
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
17,770 | static int ape_tag_read_field(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
uint8_t key[1024], *value;
uint32_t size, flags;
int i, c;
size = avio_rl32(pb); /* field size */
flags = avio_rl32(pb); /* field flags */
for (i = 0; i < sizeof(key) - 1; i++) {
c = avio_r8(pb);... | true | FFmpeg | 14c98973f5822f5ada53c4cc40c0bcf71744d812 | static int ape_tag_read_field(AVFormatContext *s)
{
AVIOContext *pb = s->pb;
uint8_t key[1024], *value;
uint32_t size, flags;
int i, c;
size = avio_rl32(pb);
flags = avio_rl32(pb);
for (i = 0; i < sizeof(key) - 1; i++) {
c = avio_r8(pb);
if (c < 0x20 || c > 0x7... | {
"code": [
" if (c < 0)"
],
"line_no": [
89
]
} | static int FUNC_0(AVFormatContext *VAR_0)
{
AVIOContext *pb = VAR_0->pb;
uint8_t key[1024], *value;
uint32_t size, flags;
int VAR_1, VAR_2;
size = avio_rl32(pb);
flags = avio_rl32(pb);
for (VAR_1 = 0; VAR_1 < sizeof(key) - 1; VAR_1++) {
VAR_2 = avio_r8(pb);
if ... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"AVIOContext *pb = VAR_0->pb;",
"uint8_t key[1024], *value;",
"uint32_t size, flags;",
"int VAR_1, VAR_2;",
"size = avio_rl32(pb);",
"flags = avio_rl32(pb);",
"for (VAR_1 = 0; VAR_1 < sizeof(key) - 1; VAR_1++) {",
"VAR_2 = avio_r8(pb);",
"if (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,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[... |
17,771 | static NetSocketState *net_socket_fd_init_stream(VLANState *vlan,
const char *model,
const char *name,
int fd, int is_connected)
{
NetSocketState *s;
s = qemu_... | true | qemu | b946a1533209f61a93e34898aebb5b43154b99c3 | static NetSocketState *net_socket_fd_init_stream(VLANState *vlan,
const char *model,
const char *name,
int fd, int is_connected)
{
NetSocketState *s;
s = qemu_... | {
"code": [
" s->vc = qemu_new_vlan_client(vlan, model, name,",
" net_socket_receive, NULL, s);"
],
"line_no": [
17,
19
]
} | static NetSocketState *FUNC_0(VLANState *vlan,
const char *model,
const char *name,
int fd, int is_connected)
{
NetSocketState *s;
s = qemu_mallocz(sizeof(NetS... | [
"static NetSocketState *FUNC_0(VLANState *vlan,\nconst char *model,\nconst char *name,\nint fd, int is_connected)\n{",
"NetSocketState *s;",
"s = qemu_mallocz(sizeof(NetSocketState));",
"s->fd = fd;",
"s->vc = qemu_new_vlan_client(vlan, model, name,\nnet_socket_receive, NULL, s);",
"snprintf(s->vc->info_s... | [
0,
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
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
17,772 | static void vfio_platform_realize(DeviceState *dev, Error **errp)
{
VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(dev);
SysBusDevice *sbdev = SYS_BUS_DEVICE(dev);
VFIODevice *vbasedev = &vdev->vbasedev;
VFIOINTp *intp;
int i, ret;
vbasedev->type = VFIO_DEVICE_TYPE_PLATFORM;
vbase... | true | qemu | 58892b447f0ffcd0967bc6f1bcb40df288ebeebc | static void vfio_platform_realize(DeviceState *dev, Error **errp)
{
VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(dev);
SysBusDevice *sbdev = SYS_BUS_DEVICE(dev);
VFIODevice *vbasedev = &vdev->vbasedev;
VFIOINTp *intp;
int i, ret;
vbasedev->type = VFIO_DEVICE_TYPE_PLATFORM;
vbase... | {
"code": [
" VFIOINTp *intp;",
" QLIST_FOREACH(intp, &vdev->intp_list, next) {",
" vfio_start_eventfd_injection(intp);"
],
"line_no": [
11,
51,
53
]
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(VAR_0);
SysBusDevice *sbdev = SYS_BUS_DEVICE(VAR_0);
VFIODevice *vbasedev = &vdev->vbasedev;
VFIOINTp *intp;
int VAR_2, VAR_3;
vbasedev->type = VFIO_DEVICE_TYPE_PLATFORM;
vbasede... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(VAR_0);",
"SysBusDevice *sbdev = SYS_BUS_DEVICE(VAR_0);",
"VFIODevice *vbasedev = &vdev->vbasedev;",
"VFIOINTp *intp;",
"int VAR_2, VAR_3;",
"vbasedev->type = VFIO_DEVICE_TYPE_PLATFORM;",
"vbas... | [
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[... |
17,773 | void v_resample16_altivec(uint8_t *dst, int dst_width, const uint8_t *src,
int wrap, int16_t *filter)
{
int sum, i;
const uint8_t *s;
vector unsigned char *tv, tmp, dstv, zero;
vec_ss_t srchv[4], srclv[4], fv[4];
vector signed short zeros, sumhv, sumlv;
s = src;... | false | FFmpeg | 89523beea45e265d985aace8be79b45e94f21e6b | void v_resample16_altivec(uint8_t *dst, int dst_width, const uint8_t *src,
int wrap, int16_t *filter)
{
int sum, i;
const uint8_t *s;
vector unsigned char *tv, tmp, dstv, zero;
vec_ss_t srchv[4], srclv[4], fv[4];
vector signed short zeros, sumhv, sumlv;
s = src;... | {
"code": [],
"line_no": []
} | void FUNC_0(uint8_t *VAR_0, int VAR_1, const uint8_t *VAR_2,
int VAR_3, int16_t *VAR_4)
{
int VAR_5, VAR_6;
const uint8_t *VAR_7;
vector unsigned char *tv, tmp, dstv, zero;
vec_ss_t srchv[4], srclv[4], fv[4];
vector signed short zeros, sumhv, sumlv;
VAR_7 = VAR_... | [
"void FUNC_0(uint8_t *VAR_0, int VAR_1, const uint8_t *VAR_2,\nint VAR_3, int16_t *VAR_4)\n{",
"int VAR_5, VAR_6;",
"const uint8_t *VAR_7;",
"vector unsigned char *tv, tmp, dstv, zero;",
"vec_ss_t srchv[4], srclv[4], fv[4];",
"vector signed short zeros, sumhv, sumlv;",
"VAR_7 = VAR_2;",
"for(VAR_6=0;V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
67
],
[
69
],
[
71,
73,
75,
77
],
[
79
... |
17,774 | static void kmvc_decode_intra_8x8(KmvcContext * ctx, const uint8_t * src, int w, int h)
{
BitBuf bb;
int res, val;
int i, j;
int bx, by;
int l0x, l1x, l0y, l1y;
int mx, my;
kmvc_init_getbits(bb, src);
for (by = 0; by < h; by += 8)
for (bx = 0; bx < w; bx += 8) {
... | true | FFmpeg | ad3161ec1d70291efcf40121d703ef73c0b08e5b | static void kmvc_decode_intra_8x8(KmvcContext * ctx, const uint8_t * src, int w, int h)
{
BitBuf bb;
int res, val;
int i, j;
int bx, by;
int l0x, l1x, l0y, l1y;
int mx, my;
kmvc_init_getbits(bb, src);
for (by = 0; by < h; by += 8)
for (bx = 0; bx < w; bx += 8) {
... | {
"code": [
"static void kmvc_decode_intra_8x8(KmvcContext * ctx, const uint8_t * src, int w, int h)",
" kmvc_getbit(bb, src, res);",
" kmvc_getbit(bb, src, res);",
" kmvc_getbit(bb, src, res);",
" kmvc_getbit(bb, src,... | static void FUNC_0(KmvcContext * VAR_0, const uint8_t * VAR_1, int VAR_2, int VAR_3)
{
BitBuf bb;
int VAR_4, VAR_5;
int VAR_6, VAR_7;
int VAR_8, VAR_9;
int VAR_10, VAR_11, VAR_12, VAR_13;
int VAR_14, VAR_15;
kmvc_init_getbits(bb, VAR_1);
for (VAR_9 = 0; VAR_9 < VAR_3; VAR_9 ... | [
"static void FUNC_0(KmvcContext * VAR_0, const uint8_t * VAR_1, int VAR_2, int VAR_3)\n{",
"BitBuf bb;",
"int VAR_4, VAR_5;",
"int VAR_6, VAR_7;",
"int VAR_8, VAR_9;",
"int VAR_10, VAR_11, VAR_12, VAR_13;",
"int VAR_14, VAR_15;",
"kmvc_init_getbits(bb, VAR_1);",
"for (VAR_9 = 0; VAR_9 < VAR_3; VAR_9... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
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,
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... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
17,775 | static void handle_windowevent(SDL_Event *ev)
{
struct sdl2_console *scon = get_scon_from_window(ev->window.windowID);
switch (ev->window.event) {
case SDL_WINDOWEVENT_RESIZED:
{
QemuUIInfo info;
memset(&info, 0, sizeof(info));
info.width = ev->window.data1;
... | true | qemu | 08d49df0dbaacc220a099dbfb644e1dc0eda57be | static void handle_windowevent(SDL_Event *ev)
{
struct sdl2_console *scon = get_scon_from_window(ev->window.windowID);
switch (ev->window.event) {
case SDL_WINDOWEVENT_RESIZED:
{
QemuUIInfo info;
memset(&info, 0, sizeof(info));
info.width = ev->window.data1;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(SDL_Event *VAR_0)
{
struct sdl2_console *VAR_1 = get_scon_from_window(VAR_0->window.windowID);
switch (VAR_0->window.event) {
case SDL_WINDOWEVENT_RESIZED:
{
QemuUIInfo info;
memset(&info, 0, sizeof(info));
info.width = VAR_0->window.data1;
... | [
"static void FUNC_0(SDL_Event *VAR_0)\n{",
"struct sdl2_console *VAR_1 = get_scon_from_window(VAR_0->window.windowID);",
"switch (VAR_0->window.event) {",
"case SDL_WINDOWEVENT_RESIZED:\n{",
"QemuUIInfo info;",
"memset(&info, 0, sizeof(info));",
"info.width = VAR_0->window.data1;",
"info.height = 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
] | [
[
1,
2
],
[
3
],
[
4
],
[
5,
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14,
15
],
[
16
],
[
17,
18,
19
],
[
20
],
[
21
],
[
22,
23
],
[
... |
17,776 | static int uhci_handle_td(UHCIState *s, UHCIQueue *q,
UHCI_TD *td, uint32_t td_addr, uint32_t *int_mask)
{
UHCIAsync *async;
int len = 0, max_len;
bool spd;
bool queuing = (q != NULL);
uint8_t pid = td->token & 0xff;
/* Is active ? */
if (!(td->ctrl & TD_... | true | qemu | 66a08cbe6ad1aebec8eecf58b3ba042e19dd1649 | static int uhci_handle_td(UHCIState *s, UHCIQueue *q,
UHCI_TD *td, uint32_t td_addr, uint32_t *int_mask)
{
UHCIAsync *async;
int len = 0, max_len;
bool spd;
bool queuing = (q != NULL);
uint8_t pid = td->token & 0xff;
if (!(td->ctrl & TD_CTRL_ACTIVE)) {
... | {
"code": [
"static int uhci_handle_td(UHCIState *s, UHCIQueue *q,",
" q = uhci_queue_get(s, td, ep);"
],
"line_no": [
1,
87
]
} | static int FUNC_0(UHCIState *VAR_0, UHCIQueue *VAR_1,
UHCI_TD *VAR_2, uint32_t VAR_3, uint32_t *VAR_4)
{
UHCIAsync *async;
int VAR_5 = 0, VAR_6;
bool spd;
bool queuing = (VAR_1 != NULL);
uint8_t pid = VAR_2->token & 0xff;
if (!(VAR_2->ctrl & TD_CTRL_ACTI... | [
"static int FUNC_0(UHCIState *VAR_0, UHCIQueue *VAR_1,\nUHCI_TD *VAR_2, uint32_t VAR_3, uint32_t *VAR_4)\n{",
"UHCIAsync *async;",
"int VAR_5 = 0, VAR_6;",
"bool spd;",
"bool queuing = (VAR_1 != NULL);",
"uint8_t pid = VAR_2->token & 0xff;",
"if (!(VAR_2->ctrl & TD_CTRL_ACTIVE)) {",
"if (VAR_2->ctrl &... | [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
49
],
[
53,
55
],
[
57
],
[
65
],
[
67
... |
17,777 | int qtest_init(void)
{
CharDriverState *chr;
g_assert(qtest_chrdev != NULL);
configure_icount("0");
chr = qemu_chr_new("qtest", qtest_chrdev, NULL);
qemu_chr_add_handlers(chr, qtest_can_read, qtest_read, qtest_event, chr);
qemu_chr_fe_set_echo(chr, true);
inbuf = g_string_new... | true | qemu | d4fce24f3a59eda081cdf2e38e7001591b95d173 | int qtest_init(void)
{
CharDriverState *chr;
g_assert(qtest_chrdev != NULL);
configure_icount("0");
chr = qemu_chr_new("qtest", qtest_chrdev, NULL);
qemu_chr_add_handlers(chr, qtest_can_read, qtest_read, qtest_event, chr);
qemu_chr_fe_set_echo(chr, true);
inbuf = g_string_new... | {
"code": [
" return 0;",
"int qtest_init(void)",
" CharDriverState *chr;",
" g_assert(qtest_chrdev != NULL);",
" configure_icount(\"0\");",
" return 0;"
],
"line_no": [
49,
1,
5,
9,
13,
49
]
} | int FUNC_0(void)
{
CharDriverState *chr;
g_assert(qtest_chrdev != NULL);
configure_icount("0");
chr = qemu_chr_new("qtest", qtest_chrdev, NULL);
qemu_chr_add_handlers(chr, qtest_can_read, qtest_read, qtest_event, chr);
qemu_chr_fe_set_echo(chr, true);
inbuf = g_string_new("")... | [
"int FUNC_0(void)\n{",
"CharDriverState *chr;",
"g_assert(qtest_chrdev != NULL);",
"configure_icount(\"0\");",
"chr = qemu_chr_new(\"qtest\", qtest_chrdev, NULL);",
"qemu_chr_add_handlers(chr, qtest_can_read, qtest_read, qtest_event, chr);",
"qemu_chr_fe_set_echo(chr, true);",
"inbuf = g_string_new(\"... | [
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
49
],
[
51
]
] |
17,778 | static av_cold int smvjpeg_decode_end(AVCodecContext *avctx)
{
SMVJpegDecodeContext *s = avctx->priv_data;
MJpegDecodeContext *jpg = &s->jpg;
int ret;
jpg->picture_ptr = NULL;
av_frame_free(&s->picture[0]);
av_frame_free(&s->picture[1]);
ret = avcodec_close(s->avctx);
av_freep... | true | FFmpeg | 02cb7d4c9c3adfae84ef0d5646c2de944176f849 | static av_cold int smvjpeg_decode_end(AVCodecContext *avctx)
{
SMVJpegDecodeContext *s = avctx->priv_data;
MJpegDecodeContext *jpg = &s->jpg;
int ret;
jpg->picture_ptr = NULL;
av_frame_free(&s->picture[0]);
av_frame_free(&s->picture[1]);
ret = avcodec_close(s->avctx);
av_freep... | {
"code": [
"static av_cold int smvjpeg_decode_end(AVCodecContext *avctx)",
" SMVJpegDecodeContext *s = avctx->priv_data;",
" MJpegDecodeContext *jpg = &s->jpg;",
" int ret;",
" jpg->picture_ptr = NULL;",
" av_frame_free(&s->picture[0]);",
" av_frame_free(&s->picture[1]);... | static av_cold int FUNC_0(AVCodecContext *avctx)
{
SMVJpegDecodeContext *s = avctx->priv_data;
MJpegDecodeContext *jpg = &s->jpg;
int VAR_0;
jpg->picture_ptr = NULL;
av_frame_free(&s->picture[0]);
av_frame_free(&s->picture[1]);
VAR_0 = avcodec_close(s->avctx);
av_freep(&s->avc... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"SMVJpegDecodeContext *s = avctx->priv_data;",
"MJpegDecodeContext *jpg = &s->jpg;",
"int VAR_0;",
"jpg->picture_ptr = NULL;",
"av_frame_free(&s->picture[0]);",
"av_frame_free(&s->picture[1]);",
"VAR_0 = avcodec_close(s->avctx);",
"av_freep(&s->... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
17,780 | static void check_native_list(QObject *qobj,
UserDefNativeListUnionKind kind)
{
QDict *qdict;
QList *qlist;
int i;
qdict = qobject_to_qdict(qobj);
g_assert(qdict);
g_assert(qdict_haskey(qdict, "data"));
qlist = qlist_copy(qobject_to_qlist(qdict_get(qd... | true | qemu | 5923f85fb82df7c8c60a89458a5ae856045e5ab1 | static void check_native_list(QObject *qobj,
UserDefNativeListUnionKind kind)
{
QDict *qdict;
QList *qlist;
int i;
qdict = qobject_to_qdict(qobj);
g_assert(qdict);
g_assert(qdict_haskey(qdict, "data"));
qlist = qlist_copy(qobject_to_qlist(qdict_get(qd... | {
"code": [
" case USER_DEF_NATIVE_LIST_UNION_KIND_S8:",
" case USER_DEF_NATIVE_LIST_UNION_KIND_S16:",
" case USER_DEF_NATIVE_LIST_UNION_KIND_S32:",
" case USER_DEF_NATIVE_LIST_UNION_KIND_S64:"
],
"line_no": [
27,
29,
31,
33
]
} | static void FUNC_0(QObject *VAR_0,
UserDefNativeListUnionKind VAR_1)
{
QDict *qdict;
QList *qlist;
int VAR_2;
qdict = qobject_to_qdict(VAR_0);
g_assert(qdict);
g_assert(qdict_haskey(qdict, "data"));
qlist = qlist_copy(qobject_to_qlist(qdict_get(qdict,... | [
"static void FUNC_0(QObject *VAR_0,\nUserDefNativeListUnionKind VAR_1)\n{",
"QDict *qdict;",
"QList *qlist;",
"int VAR_2;",
"qdict = qobject_to_qdict(VAR_0);",
"g_assert(qdict);",
"g_assert(qdict_haskey(qdict, \"data\"));",
"qlist = qlist_copy(qobject_to_qlist(qdict_get(qdict, \"data\")));",
"switch... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27,
29,
31,
33,
35,
37,
39,
41,
53,
55
],
[
57
],
[
59
],
[
61
],
[
65
],
[
67
... |
17,781 | int net_init_vde(QemuOpts *opts, const char *name, VLANState *vlan)
{
const char *sock;
const char *group;
int port, mode;
sock = qemu_opt_get(opts, "sock");
group = qemu_opt_get(opts, "group");
port = qemu_opt_get_number(opts, "port", 0);
mode = qemu_opt_get_number(opts, "mode"... | true | qemu | 6687b79d636cd60ed9adb1177d0d946b58fa7717 | int net_init_vde(QemuOpts *opts, const char *name, VLANState *vlan)
{
const char *sock;
const char *group;
int port, mode;
sock = qemu_opt_get(opts, "sock");
group = qemu_opt_get(opts, "group");
port = qemu_opt_get_number(opts, "port", 0);
mode = qemu_opt_get_number(opts, "mode"... | {
"code": [
" return -1;",
"int net_init_vde(QemuOpts *opts, const char *name, VLANState *vlan)"
],
"line_no": [
27,
1
]
} | int FUNC_0(QemuOpts *VAR_0, const char *VAR_1, VLANState *VAR_2)
{
const char *VAR_3;
const char *VAR_4;
int VAR_5, VAR_6;
VAR_3 = qemu_opt_get(VAR_0, "VAR_3");
VAR_4 = qemu_opt_get(VAR_0, "VAR_4");
VAR_5 = qemu_opt_get_number(VAR_0, "VAR_5", 0);
VAR_6 = qemu_opt_get_number(VAR_... | [
"int FUNC_0(QemuOpts *VAR_0, const char *VAR_1, VLANState *VAR_2)\n{",
"const char *VAR_3;",
"const char *VAR_4;",
"int VAR_5, VAR_6;",
"VAR_3 = qemu_opt_get(VAR_0, \"VAR_3\");",
"VAR_4 = qemu_opt_get(VAR_0, \"VAR_4\");",
"VAR_5 = qemu_opt_get_number(VAR_0, \"VAR_5\", 0);",
"VAR_6 = qemu_opt_get_numb... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
]
] |
17,782 | static void stellaris_enet_unrealize(DeviceState *dev, Error **errp)
{
stellaris_enet_state *s = STELLARIS_ENET(dev);
unregister_savevm(DEVICE(s), "stellaris_enet", s);
memory_region_destroy(&s->mmio);
}
| true | qemu | 2e1198672759eda6e122ff38fcf6df06f27e0fe2 | static void stellaris_enet_unrealize(DeviceState *dev, Error **errp)
{
stellaris_enet_state *s = STELLARIS_ENET(dev);
unregister_savevm(DEVICE(s), "stellaris_enet", s);
memory_region_destroy(&s->mmio);
}
| {
"code": [
" unregister_savevm(DEVICE(s), \"stellaris_enet\", s);"
],
"line_no": [
9
]
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
stellaris_enet_state *s = STELLARIS_ENET(VAR_0);
unregister_savevm(DEVICE(s), "stellaris_enet", s);
memory_region_destroy(&s->mmio);
}
| [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"stellaris_enet_state *s = STELLARIS_ENET(VAR_0);",
"unregister_savevm(DEVICE(s), \"stellaris_enet\", s);",
"memory_region_destroy(&s->mmio);",
"}"
] | [
0,
0,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
]
] |
17,784 | static bool memory_region_dispatch_read(MemoryRegion *mr,
hwaddr addr,
uint64_t *pval,
unsigned size)
{
if (!memory_region_access_valid(mr, addr, size, false)) {
*pval = unassigned_m... | true | qemu | cc05c43ad942165ecc6ffd39e41991bee43af044 | static bool memory_region_dispatch_read(MemoryRegion *mr,
hwaddr addr,
uint64_t *pval,
unsigned size)
{
if (!memory_region_access_valid(mr, addr, size, false)) {
*pval = unassigned_m... | {
"code": [
" hwaddr addr,",
"static bool memory_region_dispatch_read(MemoryRegion *mr,",
" hwaddr addr,",
" uint64_t *pval,",
" unsigned size... | static bool FUNC_0(MemoryRegion *mr,
hwaddr addr,
uint64_t *pval,
unsigned size)
{
if (!memory_region_access_valid(mr, addr, size, false)) {
*pval = unassigned_mem_read(mr, addr, siz... | [
"static bool FUNC_0(MemoryRegion *mr,\nhwaddr addr,\nuint64_t *pval,\nunsigned size)\n{",
"if (!memory_region_access_valid(mr, addr, size, false)) {",
"*pval = unassigned_mem_read(mr, addr, size);",
"return true;",
"}",
"*pval = memory_region_dispatch_read1(mr, addr, size);",
"adjust_endianness(mr, pval... | [
1,
0,
0,
1,
0,
1,
0,
1,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
17,785 | static void merge_context_after_encode(MpegEncContext *dst, MpegEncContext *src){
int i;
MERGE(dct_count[0]); //note, the other dct vars are not part of the context
MERGE(dct_count[1]);
MERGE(mv_bits);
MERGE(i_tex_bits);
MERGE(p_tex_bits);
MERGE(i_count);
MERGE(f_count);
M... | true | FFmpeg | 681868cbbe8a596860c454d34f259941e0c44d73 | static void merge_context_after_encode(MpegEncContext *dst, MpegEncContext *src){
int i;
MERGE(dct_count[0]);
MERGE(dct_count[1]);
MERGE(mv_bits);
MERGE(i_tex_bits);
MERGE(p_tex_bits);
MERGE(i_count);
MERGE(f_count);
MERGE(b_count);
MERGE(skip_count);
MERGE(misc... | {
"code": [
" MERGE(current_picture.f->error[0]);",
" MERGE(current_picture.f->error[1]);",
" MERGE(current_picture.f->error[2]);"
],
"line_no": [
31,
33,
35
]
} | static void FUNC_0(MpegEncContext *VAR_0, MpegEncContext *VAR_1){
int VAR_2;
MERGE(dct_count[0]);
MERGE(dct_count[1]);
MERGE(mv_bits);
MERGE(i_tex_bits);
MERGE(p_tex_bits);
MERGE(i_count);
MERGE(f_count);
MERGE(b_count);
MERGE(skip_count);
MERGE(misc_bits);
... | [
"static void FUNC_0(MpegEncContext *VAR_0, MpegEncContext *VAR_1){",
"int VAR_2;",
"MERGE(dct_count[0]);",
"MERGE(dct_count[1]);",
"MERGE(mv_bits);",
"MERGE(i_tex_bits);",
"MERGE(p_tex_bits);",
"MERGE(i_count);",
"MERGE(f_count);",
"MERGE(b_count);",
"MERGE(skip_count);",
"MERGE(misc_bits);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
... |
17,788 | int ff_h264_decode_seq_parameter_set(H264Context *h)
{
int profile_idc, level_idc, constraint_set_flags = 0;
unsigned int sps_id;
int i, log2_max_frame_num_minus4;
SPS *sps;
profile_idc = get_bits(&h->gb, 8);
constraint_set_flags |= get_bits1(&h->gb) << 0; // constraint_set0... | false | FFmpeg | 3176217c60ca7828712985092d9102d331ea4f3d | int ff_h264_decode_seq_parameter_set(H264Context *h)
{
int profile_idc, level_idc, constraint_set_flags = 0;
unsigned int sps_id;
int i, log2_max_frame_num_minus4;
SPS *sps;
profile_idc = get_bits(&h->gb, 8);
constraint_set_flags |= get_bits1(&h->gb) << 0;
constraint_s... | {
"code": [],
"line_no": []
} | int FUNC_0(H264Context *VAR_0)
{
int VAR_1, VAR_2, VAR_3 = 0;
unsigned int VAR_4;
int VAR_5, VAR_6;
SPS *sps;
VAR_1 = get_bits(&VAR_0->gb, 8);
VAR_3 |= get_bits1(&VAR_0->gb) << 0;
VAR_3 |= get_bits1(&VAR_0->gb) << 1;
VAR_3 |= get_bits1(&VAR_0->gb) << 2;
... | [
"int FUNC_0(H264Context *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3 = 0;",
"unsigned int VAR_4;",
"int VAR_5, VAR_6;",
"SPS *sps;",
"VAR_1 = get_bits(&VAR_0->gb, 8);",
"VAR_3 |= get_bits1(&VAR_0->gb) << 0;",
"VAR_3 |= get_bits1(&VAR_0->gb) << 1;",
"VAR_3 |= get_bits1(&VAR_0->gb) << 2;",
"VAR_3... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
17,789 | static av_cold int nvenc_dyload_nvenc(AVCodecContext *avctx)
{
PNVENCODEAPICREATEINSTANCE nvEncodeAPICreateInstance = 0;
NVENCSTATUS nvstatus;
NvencContext *ctx = avctx->priv_data;
NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
if (!nvenc_check_cuda(avctx))
return 0;
... | false | FFmpeg | 0d021cc8b30a6f81c27fbeca7f99f1ee7a20acf8 | static av_cold int nvenc_dyload_nvenc(AVCodecContext *avctx)
{
PNVENCODEAPICREATEINSTANCE nvEncodeAPICreateInstance = 0;
NVENCSTATUS nvstatus;
NvencContext *ctx = avctx->priv_data;
NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
if (!nvenc_check_cuda(avctx))
return 0;
... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
PNVENCODEAPICREATEINSTANCE nvEncodeAPICreateInstance = 0;
NVENCSTATUS nvstatus;
NvencContext *ctx = avctx->priv_data;
NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;
if (!nvenc_check_cuda(avctx))
return 0;
if (dl_fn... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"PNVENCODEAPICREATEINSTANCE nvEncodeAPICreateInstance = 0;",
"NVENCSTATUS nvstatus;",
"NvencContext *ctx = avctx->priv_data;",
"NvencDynLoadFunctions *dl_fn = &ctx->nvenc_dload_funcs;",
"if (!nvenc_check_cuda(avctx))\nreturn 0;",
"if (dl_fn->nvenc_l... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17,
19
],
[
23,
25
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45,
49
],
[
51
],
[
53
],
[
55
],
... |
17,790 | static inline void h264_loop_filter_chroma_intra_c(uint8_t *pix, int xstride, int ystride, int alpha, int beta)
{
int d;
for( d = 0; d < 8; d++ ) {
const int p0 = pix[-1*xstride];
const int p1 = pix[-2*xstride];
const int q0 = pix[0];
const int q1 = pix[1*xstride];
... | false | FFmpeg | 3f50965b28d0c4ef10dde0bf2f7a9f78fa36b378 | static inline void h264_loop_filter_chroma_intra_c(uint8_t *pix, int xstride, int ystride, int alpha, int beta)
{
int d;
for( d = 0; d < 8; d++ ) {
const int p0 = pix[-1*xstride];
const int p1 = pix[-2*xstride];
const int q0 = pix[0];
const int q1 = pix[1*xstride];
... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)
{
int VAR_5;
for( VAR_5 = 0; VAR_5 < 8; VAR_5++ ) {
const int VAR_6 = VAR_0[-1*VAR_1];
const int VAR_7 = VAR_0[-2*VAR_1];
const int VAR_8 = VAR_0[0];
const int VAR_9 = VAR_0[1*VAR_1];
... | [
"static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{",
"int VAR_5;",
"for( VAR_5 = 0; VAR_5 < 8; VAR_5++ ) {",
"const int VAR_6 = VAR_0[-1*VAR_1];",
"const int VAR_7 = VAR_0[-2*VAR_1];",
"const int VAR_8 = VAR_0[0];",
"const int VAR_9 = VAR_0[1*VAR_1];",
"if( FFABS... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21,
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
17,791 | real_parse_asm_rulebook(AVFormatContext *s, AVStream *orig_st,
const char *p)
{
const char *end;
int n_rules, odd = 0;
AVStream *st;
/**
* The ASMRuleBook contains a list of comma-separated strings per rule,
* and each rule is separated by a ;. The last one al... | false | FFmpeg | dfdb353cd565efbd1f64105ce7519ec809ad338d | real_parse_asm_rulebook(AVFormatContext *s, AVStream *orig_st,
const char *p)
{
const char *end;
int n_rules, odd = 0;
AVStream *st;
if (*p == '\"') p++;
for (n_rules = 0; s->nb_streams < MAX_STREAMS;) {
if (!(end = strchr(p, ... | {
"code": [],
"line_no": []
} | FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1,
const char *VAR_2)
{
const char *VAR_3;
int VAR_4, VAR_5 = 0;
AVStream *st;
if (*VAR_2 == '\"') VAR_2++;
for (VAR_4 = 0; VAR_0->nb_streams < MAX_STREAMS;) {
if (!(VAR_3 = strchr(... | [
"FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1,\nconst char *VAR_2)\n{",
"const char *VAR_3;",
"int VAR_4, VAR_5 = 0;",
"AVStream *st;",
"if (*VAR_2 == '\\\"') VAR_2++;",
"for (VAR_4 = 0; VAR_0->nb_streams < MAX_STREAMS;) {",
"if (!(VAR_3 = strchr(VAR_2, ';')))",
"break;",
"if (!VAR_5 && VAR_3 != V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53,
55
],
[
57,
59
],
[
61
],
[
63
],
[
65
],
[
67
],
[
69
],
[
71
],
[
73
]
] |
17,793 | int ff_get_cpu_flags_ppc(void)
{
#if HAVE_ALTIVEC
#ifdef __AMIGAOS4__
ULONG result = 0;
extern struct ExecIFace *IExec;
IExec->GetCPUInfoTags(GCIT_VectorUnit, &result, TAG_DONE);
if (result == VECTORTYPE_ALTIVEC)
return AV_CPU_FLAG_ALTIVEC;
return 0;
#elif defined(__APPLE__) || d... | false | FFmpeg | 3058872c293e239e3b51e86fe18cfbe720aadff1 | int ff_get_cpu_flags_ppc(void)
{
#if HAVE_ALTIVEC
#ifdef __AMIGAOS4__
ULONG result = 0;
extern struct ExecIFace *IExec;
IExec->GetCPUInfoTags(GCIT_VectorUnit, &result, TAG_DONE);
if (result == VECTORTYPE_ALTIVEC)
return AV_CPU_FLAG_ALTIVEC;
return 0;
#elif defined(__APPLE__) || d... | {
"code": [],
"line_no": []
} | int FUNC_0(void)
{
#if HAVE_ALTIVEC
#ifdef __AMIGAOS4__
ULONG result = 0;
extern struct ExecIFace *IExec;
IExec->GetCPUInfoTags(GCIT_VectorUnit, &result, TAG_DONE);
if (result == VECTORTYPE_ALTIVEC)
return AV_CPU_FLAG_ALTIVEC;
return 0;
#elif defined(__APPLE__) || defined(__OpenB... | [
"int FUNC_0(void)\n{",
"#if HAVE_ALTIVEC\n#ifdef __AMIGAOS4__\nULONG result = 0;",
"extern struct ExecIFace *IExec;",
"IExec->GetCPUInfoTags(GCIT_VectorUnit, &result, TAG_DONE);",
"if (result == VECTORTYPE_ALTIVEC)\nreturn AV_CPU_FLAG_ALTIVEC;",
"return 0;",
"#elif defined(__APPLE__) || defined(__OpenBS... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
23,
25,
27
],
[
29,
31
],
[
33,
35
],
[
37
],
[
39
],
[
43
],
[
47,
49
],
[
51
],
[
53,
59
],
[... |
17,794 | static void decode_delta_j(uint8_t *dst,
const uint8_t *buf, const uint8_t *buf_end,
int w, int h, int bpp, int dst_size)
{
int32_t pitch;
uint8_t *ptr;
uint32_t type, flag, cols, groups, rows, bytes;
uint32_t offset;
int planepitch_byte ... | false | FFmpeg | fcdbbbd85a16ce00198f53a21dbfdeea68412985 | static void decode_delta_j(uint8_t *dst,
const uint8_t *buf, const uint8_t *buf_end,
int w, int h, int bpp, int dst_size)
{
int32_t pitch;
uint8_t *ptr;
uint32_t type, flag, cols, groups, rows, bytes;
uint32_t offset;
int planepitch_byte ... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0,
const uint8_t *VAR_1, const uint8_t *VAR_2,
int VAR_3, int VAR_4, int VAR_5, int VAR_6)
{
int32_t pitch;
uint8_t *ptr;
uint32_t type, flag, cols, groups, rows, bytes;
uint32_t offset;
int VAR_7 = (VAR_3 ... | [
"static void FUNC_0(uint8_t *VAR_0,\nconst uint8_t *VAR_1, const uint8_t *VAR_2,\nint VAR_3, int VAR_4, int VAR_5, int VAR_6)\n{",
"int32_t pitch;",
"uint8_t *ptr;",
"uint32_t type, flag, cols, groups, rows, bytes;",
"uint32_t offset;",
"int VAR_7 = (VAR_3 + 7) / 8;",
"int VAR_8 = ((VAR_3 + 15) / 16) * ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45,
47
],
[
49,
51
],
[
53
... |
17,796 | static int dshow_read_header(AVFormatContext *avctx)
{
struct dshow_ctx *ctx = avctx->priv_data;
IGraphBuilder *graph = NULL;
ICreateDevEnum *devenum = NULL;
IMediaControl *control = NULL;
int ret = AVERROR(EIO);
int r;
if (!ctx->list_devices && !parse_device_name(avctx)) {
... | false | FFmpeg | 190f6135b48a97dadd7586f154640bec6468df1b | static int dshow_read_header(AVFormatContext *avctx)
{
struct dshow_ctx *ctx = avctx->priv_data;
IGraphBuilder *graph = NULL;
ICreateDevEnum *devenum = NULL;
IMediaControl *control = NULL;
int ret = AVERROR(EIO);
int r;
if (!ctx->list_devices && !parse_device_name(avctx)) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
struct dshow_ctx *VAR_1 = VAR_0->priv_data;
IGraphBuilder *graph = NULL;
ICreateDevEnum *devenum = NULL;
IMediaControl *control = NULL;
int VAR_2 = AVERROR(EIO);
int VAR_3;
if (!VAR_1->list_devices && !parse_device_name(VAR_0)) {
... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"struct dshow_ctx *VAR_1 = VAR_0->priv_data;",
"IGraphBuilder *graph = NULL;",
"ICreateDevEnum *devenum = NULL;",
"IMediaControl *control = NULL;",
"int VAR_2 = AVERROR(EIO);",
"int VAR_3;",
"if (!VAR_1->list_devices && !parse_device_name(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,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
33
],
[
35
],
[
37,
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
17,797 | static void init_timetables( FM_OPL *OPL , int ARRATE , int DRRATE )
{
int i;
double rate;
/* make attack rate & decay rate tables */
for (i = 0;i < 4;i++) OPL->AR_TABLE[i] = OPL->DR_TABLE[i] = 0;
for (i = 4;i <= 60;i++){
rate = OPL->freqbase; /* frequency rate */
if( i < 60 ) rate *= 1.0+(i&3)... | true | qemu | 913895ab96507db2bc448d3ae72a409407172d2e | static void init_timetables( FM_OPL *OPL , int ARRATE , int DRRATE )
{
int i;
double rate;
for (i = 0;i < 4;i++) OPL->AR_TABLE[i] = OPL->DR_TABLE[i] = 0;
for (i = 4;i <= 60;i++){
rate = OPL->freqbase;
if( i < 60 ) rate *= 1.0+(i&3)*0.25;
rate *= 1<<((i>>2)-1);
rate *= (double)(E... | {
"code": [
"\tfor (i = 60;i < 76;i++)"
],
"line_no": [
31
]
} | static void FUNC_0( FM_OPL *VAR_0 , int VAR_1 , int VAR_2 )
{
int VAR_3;
double VAR_4;
for (VAR_3 = 0;VAR_3 < 4;VAR_3++) VAR_0->AR_TABLE[VAR_3] = VAR_0->DR_TABLE[VAR_3] = 0;
for (VAR_3 = 4;VAR_3 <= 60;VAR_3++){
VAR_4 = VAR_0->freqbase;
if( VAR_3 < 60 ) VAR_4 *= 1.0+(VAR_3&3)*0.25;
VAR_4 ... | [
"static void FUNC_0( FM_OPL *VAR_0 , int VAR_1 , int VAR_2 )\n{",
"int VAR_3;",
"double VAR_4;",
"for (VAR_3 = 0;VAR_3 < 4;VAR_3++) VAR_0->AR_TABLE[VAR_3] = VAR_0->DR_TABLE[VAR_3] = 0;",
"for (VAR_3 = 4;VAR_3 <= 60;VAR_3++){",
"VAR_4 = VAR_0->freqbase;",
"if( VAR_3 < 60 ) VAR_4 *= 1.0+(VAR_3&3)*0.25;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45,
47... |
17,798 | static void dwt_decode97_float(DWTContext *s, float *t)
{
int lev;
int w = s->linelen[s->ndeclevels - 1][0];
float *line = s->f_linebuf;
float *data = t;
/* position at index O of line range [0-5,w+5] cf. extend function */
line += 5;
for (lev = 0; lev < s->ndeclevels; lev++)... | true | FFmpeg | 4e926fb969acbb27415c2109d7339259875b6909 | static void dwt_decode97_float(DWTContext *s, float *t)
{
int lev;
int w = s->linelen[s->ndeclevels - 1][0];
float *line = s->f_linebuf;
float *data = t;
line += 5;
for (lev = 0; lev < s->ndeclevels; lev++) {
int lh = s->linelen[lev][0],
lv = s->linelen... | {
"code": [
" l[i] = data[w * lp + j] * F_LFTG_K;",
" l[i] = data[w * j + lp] * F_LFTG_K;"
],
"line_no": [
45,
77
]
} | static void FUNC_0(DWTContext *VAR_0, float *VAR_1)
{
int VAR_2;
int VAR_3 = VAR_0->linelen[VAR_0->ndeclevels - 1][0];
float *VAR_4 = VAR_0->f_linebuf;
float *VAR_5 = VAR_1;
VAR_4 += 5;
for (VAR_2 = 0; VAR_2 < VAR_0->ndeclevels; VAR_2++) {
int lh = VAR_0->linelen[VA... | [
"static void FUNC_0(DWTContext *VAR_0, float *VAR_1)\n{",
"int VAR_2;",
"int VAR_3 = VAR_0->linelen[VAR_0->ndeclevels - 1][0];",
"float *VAR_4 = VAR_0->f_linebuf;",
"float *VAR_5 = VAR_1;",
"VAR_4 += 5;",
"for (VAR_2 = 0; VAR_2 < VAR_0->ndeclevels; VAR_2++) {",
"int lh = VAR_0->linelen[VAR_2][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,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21,
23,
25,
27,
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
57
... |
17,799 | void FUNCC(ff_h264_idct8_add)(uint8_t *_dst, int16_t *_block, int stride){
int i;
pixel *dst = (pixel*)_dst;
dctcoef *block = (dctcoef*)_block;
stride >>= sizeof(pixel)-1;
block[0] += 32;
for( i = 0; i < 8; i++ )
{
const int a0 = block[i+0*8] + block[i+4*8];
con... | true | FFmpeg | 0ba22831e1fcc88c755190b08a9cfc235df3a9a9 | void FUNCC(ff_h264_idct8_add)(uint8_t *_dst, int16_t *_block, int stride){
int i;
pixel *dst = (pixel*)_dst;
dctcoef *block = (dctcoef*)_block;
stride >>= sizeof(pixel)-1;
block[0] += 32;
for( i = 0; i < 8; i++ )
{
const int a0 = block[i+0*8] + block[i+4*8];
con... | {
"code": [
" const int a0 = block[0+i*8] + block[4+i*8];",
" const int a2 = block[0+i*8] - block[4+i*8];",
" const int a4 = (block[2+i*8]>>1) - block[6+i*8];",
" const int a6 = (block[6+i*8]>>1) + block[2+i*8];",
" const int b0 = a0 + a6;",
" const ... | void FUNC_0(ff_h264_idct8_add)(uint8_t *_dst, int16_t *_block, int stride){
int VAR_0;
pixel *dst = (pixel*)_dst;
dctcoef *block = (dctcoef*)_block;
stride >>= sizeof(pixel)-1;
block[0] += 32;
for( VAR_0 = 0; VAR_0 < 8; VAR_0++ )
{
const int VAR_17 = block[VAR_0+0*8] + b... | [
"void FUNC_0(ff_h264_idct8_add)(uint8_t *_dst, int16_t *_block, int stride){",
"int VAR_0;",
"pixel *dst = (pixel*)_dst;",
"dctcoef *block = (dctcoef*)_block;",
"stride >>= sizeof(pixel)-1;",
"block[0] += 32;",
"for( VAR_0 = 0; VAR_0 < 8; VAR_0++ )",
"{",
"const int VAR_17 = block[VAR_0+0*8] + bloc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
17,800 | void hmp_info_migrate(Monitor *mon, const QDict *qdict)
{
MigrationInfo *info;
MigrationCapabilityStatusList *caps, *cap;
info = qmp_query_migrate(NULL);
caps = qmp_query_migrate_capabilities(NULL);
/* do not display parameters during setup */
if (info->has_status && caps) {
... | true | qemu | d59ce6f34434bf47a9b26138c908650bf9a24be1 | void hmp_info_migrate(Monitor *mon, const QDict *qdict)
{
MigrationInfo *info;
MigrationCapabilityStatusList *caps, *cap;
info = qmp_query_migrate(NULL);
caps = qmp_query_migrate_capabilities(NULL);
if (info->has_status && caps) {
monitor_printf(mon, "capabilities: ");
... | {
"code": [
" monitor_printf(mon, \"Migration status: %s\\n\","
],
"line_no": [
41
]
} | void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
MigrationInfo *info;
MigrationCapabilityStatusList *caps, *cap;
info = qmp_query_migrate(NULL);
caps = qmp_query_migrate_capabilities(NULL);
if (info->has_status && caps) {
monitor_printf(VAR_0, "capabilities: ");
fo... | [
"void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"MigrationInfo *info;",
"MigrationCapabilityStatusList *caps, *cap;",
"info = qmp_query_migrate(NULL);",
"caps = qmp_query_migrate_capabilities(NULL);",
"if (info->has_status && caps) {",
"monitor_printf(VAR_0, \"capabilities: \");",
"for (cap = ca... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
19
],
[
21
],
[
23
],
[
25,
27,
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
45,
47
],
[
49
],
[
51,
53
],
... |
17,801 | static void quantize_and_encode_band(struct AACEncContext *s, PutBitContext *pb,
const float *in, int size, int scale_idx,
int cb, const float lambda)
{
const float IQ = ff_aac_pow2sf_tab[200 + scale_idx - SCALE_ONE_POS + SCALE_DIV_512];
... | true | FFmpeg | 508f092a783f7d305d1e9938c953e375139e2cba | static void quantize_and_encode_band(struct AACEncContext *s, PutBitContext *pb,
const float *in, int size, int scale_idx,
int cb, const float lambda)
{
const float IQ = ff_aac_pow2sf_tab[200 + scale_idx - SCALE_ONE_POS + SCALE_DIV_512];
... | {
"code": [
"static void quantize_and_encode_band(struct AACEncContext *s, PutBitContext *pb,",
" const float *in, int size, int scale_idx,",
" int cb, const float lambda)",
" const float IQ = ff_aac_pow2sf_tab[200 + scale_idx ... | static void FUNC_0(struct AACEncContext *VAR_0, PutBitContext *VAR_1,
const float *VAR_2, int VAR_3, int VAR_4,
int VAR_5, const float VAR_6)
{
const float VAR_7 = ff_aac_pow2sf_tab[200 + VAR_4 - SCALE_ONE_POS + SCALE_DIV_512];
const... | [
"static void FUNC_0(struct AACEncContext *VAR_0, PutBitContext *VAR_1,\nconst float *VAR_2, int VAR_3, int VAR_4,\nint VAR_5, const float VAR_6)\n{",
"const float VAR_7 = ff_aac_pow2sf_tab[200 + VAR_4 - SCALE_ONE_POS + SCALE_DIV_512];",
"const float VAR_8 = ff_aac_pow2sf_tab[200 - VAR_4 + SCALE_ONE_POS - SCALE... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
1,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
1,
0,
1,
1,
1,
0,
1,
1,
1,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
37,
39
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
17,802 | int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
{
int pqindex, lowquant;
int status;
int mbmodetab, imvtab, icbptab, twomvbptab, fourmvbptab; /* useful only for debugging */
int field_mode, fcm;
v->numref = 0;
v->p_frame_skipped = 0;
if (v->second_field... | true | FFmpeg | f6774f905fb3cfdc319523ac640be30b14c1bc55 | int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
{
int pqindex, lowquant;
int status;
int mbmodetab, imvtab, icbptab, twomvbptab, fourmvbptab;
int field_mode, fcm;
v->numref = 0;
v->p_frame_skipped = 0;
if (v->second_field) {
v->s.pict_type = (... | {
"code": [
" v->s.current_picture_ptr->f.pict_type = v->s.pict_type;"
],
"line_no": [
27
]
} | int FUNC_0(VC1Context *VAR_0, GetBitContext* VAR_1)
{
int VAR_2, VAR_3;
int VAR_4;
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
int VAR_10, VAR_11;
VAR_0->numref = 0;
VAR_0->p_frame_skipped = 0;
if (VAR_0->second_field) {
VAR_0->s.pict_type = (VAR_0->fptype & 1) ? AV_P... | [
"int FUNC_0(VC1Context *VAR_0, GetBitContext* VAR_1)\n{",
"int VAR_2, VAR_3;",
"int VAR_4;",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"int VAR_10, VAR_11;",
"VAR_0->numref = 0;",
"VAR_0->p_frame_skipped = 0;",
"if (VAR_0->second_field) {",
"VAR_0->s.pict_type = (VAR_0->fptype & 1) ? AV_PIC... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
27
],
[
29,
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45,
47
],
[... |
17,804 | static void isa_cirrus_vga_realizefn(DeviceState *dev, Error **errp)
{
ISADevice *isadev = ISA_DEVICE(dev);
ISACirrusVGAState *d = ISA_CIRRUS_VGA(dev);
VGACommonState *s = &d->cirrus_vga.vga;
vga_common_init(s, OBJECT(dev), true);
cirrus_init_common(&d->cirrus_vga, OBJECT(dev), CIRRU... | true | qemu | f61d82c2dfe02a60642a76e8f0034a0244eef2bf | static void isa_cirrus_vga_realizefn(DeviceState *dev, Error **errp)
{
ISADevice *isadev = ISA_DEVICE(dev);
ISACirrusVGAState *d = ISA_CIRRUS_VGA(dev);
VGACommonState *s = &d->cirrus_vga.vga;
vga_common_init(s, OBJECT(dev), true);
cirrus_init_common(&d->cirrus_vga, OBJECT(dev), CIRRU... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)
{
ISADevice *isadev = ISA_DEVICE(VAR_0);
ISACirrusVGAState *d = ISA_CIRRUS_VGA(VAR_0);
VGACommonState *s = &d->cirrus_vga.vga;
vga_common_init(s, OBJECT(VAR_0), true);
cirrus_init_common(&d->cirrus_vga, OBJECT(VAR_0), CIRRUS_ID_CL... | [
"static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{",
"ISADevice *isadev = ISA_DEVICE(VAR_0);",
"ISACirrusVGAState *d = ISA_CIRRUS_VGA(VAR_0);",
"VGACommonState *s = &d->cirrus_vga.vga;",
"vga_common_init(s, OBJECT(VAR_0), true);",
"cirrus_init_common(&d->cirrus_vga, OBJECT(VAR_0), CIRRUS_ID_CLGD543... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
21
],
[
23,
25,
27
],
[
29
],
[
31
]
] |
17,806 | static int decode_dvd_subtitles(DVDSubContext *ctx, AVSubtitle *sub_header,
const uint8_t *buf, int buf_size)
{
int cmd_pos, pos, cmd, x1, y1, x2, y2, offset1, offset2, next_cmd_pos;
int big_offsets, offset_size, is_8bit = 0;
const uint8_t *yuv_palette = NULL;
uint8... | true | FFmpeg | c9151de7c42553bb145be608df8513c1287f1f24 | static int decode_dvd_subtitles(DVDSubContext *ctx, AVSubtitle *sub_header,
const uint8_t *buf, int buf_size)
{
int cmd_pos, pos, cmd, x1, y1, x2, y2, offset1, offset2, next_cmd_pos;
int big_offsets, offset_size, is_8bit = 0;
const uint8_t *yuv_palette = NULL;
uint8... | {
"code": [
" decode_rle(bitmap, w * 2, w, (h + 1) / 2,",
" buf, offset1, buf_size, is_8bit);",
" decode_rle(bitmap + w, w * 2, w, h / 2,",
" buf, offset2, buf_size, is_8bit);"
],
"line_no": [
297,
299,
3... | static int FUNC_0(DVDSubContext *VAR_0, AVSubtitle *VAR_1,
const uint8_t *VAR_2, int VAR_3)
{
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;
int VAR_14, VAR_15, VAR_16 = 0;
const uint8_t *VAR_17 = NULL;
uint8_t *colormap = VAR_0->color... | [
"static int FUNC_0(DVDSubContext *VAR_0, AVSubtitle *VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11, VAR_12, VAR_13;",
"int VAR_14, VAR_15, VAR_16 = 0;",
"const uint8_t *VAR_17 = NULL;",
"uint8_t *colormap = VAR_0->colormap, *alpha = VAR_0->alpha;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23,
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
... |
17,809 | static void encode_rgb_frame(FFV1Context *s, uint8_t *src[3], int w, int h, int stride[3])
{
int x, y, p, i;
const int ring_size = s->avctx->context_model ? 3 : 2;
int16_t *sample[4][3];
int lbd = s->bits_per_raw_sample <= 8;
int bits = s->bits_per_raw_sample > 0 ? s->bits_per_raw_sample ... | false | FFmpeg | 77f521d9e5126575f9bcc21241d81867173c7619 | static void encode_rgb_frame(FFV1Context *s, uint8_t *src[3], int w, int h, int stride[3])
{
int x, y, p, i;
const int ring_size = s->avctx->context_model ? 3 : 2;
int16_t *sample[4][3];
int lbd = s->bits_per_raw_sample <= 8;
int bits = s->bits_per_raw_sample > 0 ? s->bits_per_raw_sample ... | {
"code": [],
"line_no": []
} | static void FUNC_0(FFV1Context *VAR_0, uint8_t *VAR_1[3], int VAR_2, int VAR_3, int VAR_4[3])
{
int VAR_5, VAR_6, VAR_7, VAR_8;
const int VAR_9 = VAR_0->avctx->context_model ? 3 : 2;
int16_t *sample[4][3];
int VAR_10 = VAR_0->bits_per_raw_sample <= 8;
int VAR_11 = VAR_0->bits_per_raw_samp... | [
"static void FUNC_0(FFV1Context *VAR_0, uint8_t *VAR_1[3], int VAR_2, int VAR_3, int VAR_4[3])\n{",
"int VAR_5, VAR_6, VAR_7, VAR_8;",
"const int VAR_9 = VAR_0->avctx->context_model ? 3 : 2;",
"int16_t *sample[4][3];",
"int VAR_10 = VAR_0->bits_per_raw_sample <= 8;",
"int VAR_11 = VAR_0->bits_per_raw... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
17,810 | static DisplayType select_display(const char *p)
{
const char *opts;
DisplayType display = DT_DEFAULT;
if (strstart(p, "sdl", &opts)) {
#ifdef CONFIG_SDL
display = DT_SDL;
while (*opts) {
const char *nextopt;
if (strstart(opts, ",frame=", &nextopt)) {
... | true | qemu | 05175535a3b6c78186ec3538bcd1b01f30ba571e | static DisplayType select_display(const char *p)
{
const char *opts;
DisplayType display = DT_DEFAULT;
if (strstart(p, "sdl", &opts)) {
#ifdef CONFIG_SDL
display = DT_SDL;
while (*opts) {
const char *nextopt;
if (strstart(opts, ",frame=", &nextopt)) {
... | {
"code": [
" goto invalid_display;",
" goto invalid_display;",
" goto invalid_display;",
" goto invalid_display;",
" goto invalid_display;",
" invalid_display:"
],
"line_no": [
37,
37,
... | static DisplayType FUNC_0(const char *p)
{
const char *VAR_0;
DisplayType display = DT_DEFAULT;
if (strstart(p, "sdl", &VAR_0)) {
#ifdef CONFIG_SDL
display = DT_SDL;
while (*VAR_0) {
const char *nextopt;
if (strstart(VAR_0, ",frame=", &nextopt)) {
... | [
"static DisplayType FUNC_0(const char *p)\n{",
"const char *VAR_0;",
"DisplayType display = DT_DEFAULT;",
"if (strstart(p, \"sdl\", &VAR_0)) {",
"#ifdef CONFIG_SDL\ndisplay = DT_SDL;",
"while (*VAR_0) {",
"const char *nextopt;",
"if (strstart(VAR_0, \",frame=\", &nextopt)) {",
"VAR_0 = nextopt;",
... | [
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
... |
17,811 | PPC_OP(subfme)
{
T0 = ~T0 + xer_ca - 1;
if (T0 != -1)
xer_ca = 1;
RETURN();
}
| true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | PPC_OP(subfme)
{
T0 = ~T0 + xer_ca - 1;
if (T0 != -1)
xer_ca = 1;
RETURN();
}
| {
"code": [
" RETURN();",
" xer_ca = 1;",
" xer_ca = 1;",
" xer_ca = 1;",
"PPC_OP(subfme)",
" if (T0 != -1)",
" xer_ca = 1;",
" RETURN();",
" xer_ca = 1;"
],
"line_no": [
13,
11,
11,
11,
1,
9,
11,
13,
... | FUNC_0(VAR_0)
{
T0 = ~T0 + xer_ca - 1;
if (T0 != -1)
xer_ca = 1;
RETURN();
}
| [
"FUNC_0(VAR_0)\n{",
"T0 = ~T0 + xer_ca - 1;",
"if (T0 != -1)\nxer_ca = 1;",
"RETURN();",
"}"
] | [
1,
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
15
]
] |
17,812 | static int bitpacked_decode_yuv422p10(AVCodecContext *avctx, AVFrame *frame,
AVPacket *avpkt)
{
uint64_t frame_size = (uint64_t)avctx->width * (uint64_t)avctx->height * 20;
uint64_t packet_size = avpkt->size * 8;
GetBitContext bc;
uint16_t *y, *u, *v;
int... | true | FFmpeg | c901ae944040855e05b25f8d81be6b6f327ce2a4 | static int bitpacked_decode_yuv422p10(AVCodecContext *avctx, AVFrame *frame,
AVPacket *avpkt)
{
uint64_t frame_size = (uint64_t)avctx->width * (uint64_t)avctx->height * 20;
uint64_t packet_size = avpkt->size * 8;
GetBitContext bc;
uint16_t *y, *u, *v;
int... | {
"code": [
" uint64_t packet_size = avpkt->size * 8;"
],
"line_no": [
9
]
} | static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1,
AVPacket *VAR_2)
{
uint64_t frame_size = (uint64_t)VAR_0->width * (uint64_t)VAR_0->height * 20;
uint64_t packet_size = VAR_2->size * 8;
GetBitContext bc;
uint16_t *y, *u, *v;
int VAR_3, VAR_4;
... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1,\nAVPacket *VAR_2)\n{",
"uint64_t frame_size = (uint64_t)VAR_0->width * (uint64_t)VAR_0->height * 20;",
"uint64_t packet_size = VAR_2->size * 8;",
"GetBitContext bc;",
"uint16_t *y, *u, *v;",
"int VAR_3, VAR_4;",
"VAR_3 = ff_get_buffer(VAR_0, VAR_... | [
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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
27
],
[
29
],
[
31
],
[
35,
37
],
[
41,
43
],
[
47
],
[
49,
51
],
[
55
],
[
57
],
[... |
17,813 | static void qed_read_l2_table_cb(void *opaque, int ret)
{
QEDReadL2TableCB *read_l2_table_cb = opaque;
QEDRequest *request = read_l2_table_cb->request;
BDRVQEDState *s = read_l2_table_cb->s;
CachedL2Table *l2_table = request->l2_table;
if (ret) {
/* can't trust loaded L2 table anymo... | true | qemu | e4fc8781db7c49b0c5ac5d24762e17c59dfe0871 | static void qed_read_l2_table_cb(void *opaque, int ret)
{
QEDReadL2TableCB *read_l2_table_cb = opaque;
QEDRequest *request = read_l2_table_cb->request;
BDRVQEDState *s = read_l2_table_cb->s;
CachedL2Table *l2_table = request->l2_table;
if (ret) {
qed_unref_l2_cache_entry(l... | {
"code": [
" l2_table->offset = read_l2_table_cb->l2_offset;",
" request->l2_table = qed_find_l2_cache_entry(&s->l2_cache,",
" l2_table->offset);",
" l2_table->offset);"
],
"line_no... | static void FUNC_0(void *VAR_0, int VAR_1)
{
QEDReadL2TableCB *read_l2_table_cb = VAR_0;
QEDRequest *request = read_l2_table_cb->request;
BDRVQEDState *s = read_l2_table_cb->s;
CachedL2Table *l2_table = request->l2_table;
if (VAR_1) {
qed_unref_l2_cache_entry(l2_table);
... | [
"static void FUNC_0(void *VAR_0, int VAR_1)\n{",
"QEDReadL2TableCB *read_l2_table_cb = VAR_0;",
"QEDRequest *request = read_l2_table_cb->request;",
"BDRVQEDState *s = read_l2_table_cb->s;",
"CachedL2Table *l2_table = request->l2_table;",
"if (VAR_1) {",
"qed_unref_l2_cache_entry(l2_table);",
"request-... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
39,
41
],
[
43
],
[
45
],
[
49
],
[
51
]
] |
17,814 | void input_type_enum(Visitor *v, int *obj, const char *strings[],
const char *kind, const char *name,
Error **errp)
{
int64_t value = 0;
char *enum_str;
assert(strings);
visit_type_str(v, &enum_str, name, errp);
if (error_is_set(errp)) {
... | true | qemu | 297a3646c2947ee64a6d42ca264039732c6218e0 | void input_type_enum(Visitor *v, int *obj, const char *strings[],
const char *kind, const char *name,
Error **errp)
{
int64_t value = 0;
char *enum_str;
assert(strings);
visit_type_str(v, &enum_str, name, errp);
if (error_is_set(errp)) {
... | {
"code": [
" visit_type_str(v, &enum_str, name, errp);",
" if (error_is_set(errp)) {",
" if (error_is_set(errp)) {",
" break;"
],
"line_no": [
19,
21,
21,
33
]
} | void FUNC_0(Visitor *VAR_0, int *VAR_1, const char *VAR_2[],
const char *VAR_3, const char *VAR_4,
Error **VAR_5)
{
int64_t value = 0;
char *VAR_6;
assert(VAR_2);
visit_type_str(VAR_0, &VAR_6, VAR_4, VAR_5);
if (error_is_set(VAR_5)) {
re... | [
"void FUNC_0(Visitor *VAR_0, int *VAR_1, const char *VAR_2[],\nconst char *VAR_3, const char *VAR_4,\nError **VAR_5)\n{",
"int64_t value = 0;",
"char *VAR_6;",
"assert(VAR_2);",
"visit_type_str(VAR_0, &VAR_6, VAR_4, VAR_5);",
"if (error_is_set(VAR_5)) {",
"return;",
"}",
"while (VAR_2[value] != NULL... | [
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
17,815 | static int update_frame_pool(AVCodecContext *avctx, AVFrame *frame)
{
FramePool *pool = avctx->internal->pool;
int i, ret;
switch (avctx->codec_type) {
case AVMEDIA_TYPE_VIDEO: {
AVPicture picture;
int size[4] = { 0 };
int w = frame->width;
int h = frame->heigh... | true | FFmpeg | 01df2a13c32a28cd5a5b27098aa2b4b32a3d76e4 | static int update_frame_pool(AVCodecContext *avctx, AVFrame *frame)
{
FramePool *pool = avctx->internal->pool;
int i, ret;
switch (avctx->codec_type) {
case AVMEDIA_TYPE_VIDEO: {
AVPicture picture;
int size[4] = { 0 };
int w = frame->width;
int h = frame->heigh... | {
"code": [
" pool->pools[i] = av_buffer_pool_init(size[i] + 16, NULL);"
],
"line_no": [
99
]
} | static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)
{
FramePool *pool = VAR_0->internal->pool;
int VAR_2, VAR_3;
switch (VAR_0->codec_type) {
case AVMEDIA_TYPE_VIDEO: {
AVPicture picture;
int VAR_4[4] = { 0 };
int VAR_5 = VAR_1->width;
int VAR_6 = VAR_1->h... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVFrame *VAR_1)\n{",
"FramePool *pool = VAR_0->internal->pool;",
"int VAR_2, VAR_3;",
"switch (VAR_0->codec_type) {",
"case AVMEDIA_TYPE_VIDEO: {",
"AVPicture picture;",
"int VAR_4[4] = { 0 };",
"int VAR_5 = VAR_1->width;",
"int VAR_6 = VAR_1->height;",
"i... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27,
29,
31
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
55
],
[
59... |
17,816 | static void prom_init(target_phys_addr_t addr, const char *bios_name)
{
DeviceState *dev;
SysBusDevice *s;
char *filename;
int ret;
dev = qdev_create(NULL, "openprom");
qdev_init(dev);
s = sysbus_from_qdev(dev);
sysbus_mmio_map(s, 0, addr);
/* load boot prom */
i... | true | qemu | e23a1b33b53d25510320b26d9f154e19c6c99725 | static void prom_init(target_phys_addr_t addr, const char *bios_name)
{
DeviceState *dev;
SysBusDevice *s;
char *filename;
int ret;
dev = qdev_create(NULL, "openprom");
qdev_init(dev);
s = sysbus_from_qdev(dev);
sysbus_mmio_map(s, 0, addr);
if (bios_name == NULL... | {
"code": [
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" qdev_init(dev);",
" ... | static void FUNC_0(target_phys_addr_t VAR_0, const char *VAR_1)
{
DeviceState *dev;
SysBusDevice *s;
char *VAR_2;
int VAR_3;
dev = qdev_create(NULL, "openprom");
qdev_init(dev);
s = sysbus_from_qdev(dev);
sysbus_mmio_map(s, 0, VAR_0);
if (VAR_1 == NULL) {
... | [
"static void FUNC_0(target_phys_addr_t VAR_0, const char *VAR_1)\n{",
"DeviceState *dev;",
"SysBusDevice *s;",
"char *VAR_2;",
"int VAR_3;",
"dev = qdev_create(NULL, \"openprom\");",
"qdev_init(dev);",
"s = sysbus_from_qdev(dev);",
"sysbus_mmio_map(s, 0, VAR_0);",
"if (VAR_1 == NULL) {",
"VAR_1 ... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
17,817 | static void qemu_rdma_move_header(RDMAContext *rdma, int idx,
RDMAControlHeader *head)
{
rdma->wr_data[idx].control_len = head->len;
rdma->wr_data[idx].control_curr =
rdma->wr_data[idx].control + sizeof(RDMAControlHeader);
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static void qemu_rdma_move_header(RDMAContext *rdma, int idx,
RDMAControlHeader *head)
{
rdma->wr_data[idx].control_len = head->len;
rdma->wr_data[idx].control_curr =
rdma->wr_data[idx].control + sizeof(RDMAControlHeader);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(RDMAContext *VAR_0, int VAR_1,
RDMAControlHeader *VAR_2)
{
VAR_0->wr_data[VAR_1].control_len = VAR_2->len;
VAR_0->wr_data[VAR_1].control_curr =
VAR_0->wr_data[VAR_1].control + sizeof(RDMAControlHeader);
}
| [
"static void FUNC_0(RDMAContext *VAR_0, int VAR_1,\nRDMAControlHeader *VAR_2)\n{",
"VAR_0->wr_data[VAR_1].control_len = VAR_2->len;",
"VAR_0->wr_data[VAR_1].control_curr =\nVAR_0->wr_data[VAR_1].control + sizeof(RDMAControlHeader);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9,
11
],
[
13
]
] |
17,819 | static void v9fs_symlink(void *opaque)
{
V9fsPDU *pdu = opaque;
V9fsString name;
V9fsString symname;
V9fsFidState *dfidp;
V9fsQID qid;
struct stat stbuf;
int32_t dfid;
int err = 0;
gid_t gid;
size_t offset = 7;
v9fs_string_init(&name);
v9fs_string_init(&symname);
err ... | true | qemu | 805b5d98c649d26fc44d2d7755a97f18e62b438a | static void v9fs_symlink(void *opaque)
{
V9fsPDU *pdu = opaque;
V9fsString name;
V9fsString symname;
V9fsFidState *dfidp;
V9fsQID qid;
struct stat stbuf;
int32_t dfid;
int err = 0;
gid_t gid;
size_t offset = 7;
v9fs_string_init(&name);
v9fs_string_init(&symname);
err ... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
V9fsPDU *pdu = VAR_0;
V9fsString name;
V9fsString symname;
V9fsFidState *dfidp;
V9fsQID qid;
struct stat VAR_1;
int32_t dfid;
int VAR_2 = 0;
gid_t gid;
size_t offset = 7;
v9fs_string_init(&name);
v9fs_string_init(&symname);
VAR_2 = pd... | [
"static void FUNC_0(void *VAR_0)\n{",
"V9fsPDU *pdu = VAR_0;",
"V9fsString name;",
"V9fsString symname;",
"V9fsFidState *dfidp;",
"V9fsQID qid;",
"struct stat VAR_1;",
"int32_t dfid;",
"int VAR_2 = 0;",
"gid_t gid;",
"size_t offset = 7;",
"v9fs_string_init(&name);",
"v9fs_string_init(&symnam... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],... |
17,820 | void ff_tls_init(void)
{
avpriv_lock_avformat();
#if CONFIG_OPENSSL
if (!openssl_init) {
SSL_library_init();
SSL_load_error_strings();
#if HAVE_THREADS
if (!CRYPTO_get_locking_callback()) {
int i;
openssl_mutexes = av_malloc_array(sizeof(pthread_mutex_t)... | true | FFmpeg | 7620d48f2eab67812d8c535d12a98eaa754a1177 | void ff_tls_init(void)
{
avpriv_lock_avformat();
#if CONFIG_OPENSSL
if (!openssl_init) {
SSL_library_init();
SSL_load_error_strings();
#if HAVE_THREADS
if (!CRYPTO_get_locking_callback()) {
int i;
openssl_mutexes = av_malloc_array(sizeof(pthread_mutex_t)... | {
"code": [
"void ff_tls_init(void)"
],
"line_no": [
1
]
} | void FUNC_0(void)
{
avpriv_lock_avformat();
#if CONFIG_OPENSSL
if (!openssl_init) {
SSL_library_init();
SSL_load_error_strings();
#if HAVE_THREADS
if (!CRYPTO_get_locking_callback()) {
int i;
openssl_mutexes = av_malloc_array(sizeof(pthread_mutex_t), CRY... | [
"void FUNC_0(void)\n{",
"avpriv_lock_avformat();",
"#if CONFIG_OPENSSL\nif (!openssl_init) {",
"SSL_library_init();",
"SSL_load_error_strings();",
"#if HAVE_THREADS\nif (!CRYPTO_get_locking_callback()) {",
"int i;",
"openssl_mutexes = av_malloc_array(sizeof(pthread_mutex_t), CRYPTO_num_locks());",
"... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33,
35
],
[
37,
39
],
[
41
],
[
43,
45,
47,
49,... |
17,821 | uint64_t helper_cvttq(CPUAlphaState *env, uint64_t a)
{
return inline_cvttq(env, a, FP_STATUS.float_rounding_mode, 1);
}
| true | qemu | c24a8a0b6dad5a33d84f5fb846edb28c43312c71 | uint64_t helper_cvttq(CPUAlphaState *env, uint64_t a)
{
return inline_cvttq(env, a, FP_STATUS.float_rounding_mode, 1);
}
| {
"code": [
" return inline_cvttq(env, a, FP_STATUS.float_rounding_mode, 1);"
],
"line_no": [
5
]
} | uint64_t FUNC_0(CPUAlphaState *env, uint64_t a)
{
return inline_cvttq(env, a, FP_STATUS.float_rounding_mode, 1);
}
| [
"uint64_t FUNC_0(CPUAlphaState *env, uint64_t a)\n{",
"return inline_cvttq(env, a, FP_STATUS.float_rounding_mode, 1);",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
17,822 | void ppc_store_msr_32 (CPUPPCState *env, uint32_t value)
{
do_store_msr(env,
(do_load_msr(env) & ~0xFFFFFFFFULL) | (value & 0xFFFFFFFF));
}
| true | qemu | a97fed52e57385fc749e6f6ef95be7ebdb81ba9b | void ppc_store_msr_32 (CPUPPCState *env, uint32_t value)
{
do_store_msr(env,
(do_load_msr(env) & ~0xFFFFFFFFULL) | (value & 0xFFFFFFFF));
}
| {
"code": [
"void ppc_store_msr_32 (CPUPPCState *env, uint32_t value)",
" do_store_msr(env,",
" (do_load_msr(env) & ~0xFFFFFFFFULL) | (value & 0xFFFFFFFF));"
],
"line_no": [
1,
5,
7
]
} | void FUNC_0 (CPUPPCState *VAR_0, uint32_t VAR_1)
{
do_store_msr(VAR_0,
(do_load_msr(VAR_0) & ~0xFFFFFFFFULL) | (VAR_1 & 0xFFFFFFFF));
}
| [
"void FUNC_0 (CPUPPCState *VAR_0, uint32_t VAR_1)\n{",
"do_store_msr(VAR_0,\n(do_load_msr(VAR_0) & ~0xFFFFFFFFULL) | (VAR_1 & 0xFFFFFFFF));",
"}"
] | [
1,
1,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
]
] |
17,823 | static void usb_serial_read(void *opaque, const uint8_t *buf, int size)
{
USBSerialState *s = opaque;
int first_size = RECV_BUF - s->recv_ptr;
if (first_size > size)
first_size = size;
memcpy(s->recv_buf + s->recv_ptr + s->recv_used, buf, first_size);
if (size > first_size)
m... | true | qemu | 4ab4183d766f10f9fc35cd9ef4acee39f241986f | static void usb_serial_read(void *opaque, const uint8_t *buf, int size)
{
USBSerialState *s = opaque;
int first_size = RECV_BUF - s->recv_ptr;
if (first_size > size)
first_size = size;
memcpy(s->recv_buf + s->recv_ptr + s->recv_used, buf, first_size);
if (size > first_size)
m... | {
"code": [
" int first_size = RECV_BUF - s->recv_ptr;",
" if (first_size > size)",
" first_size = size;",
" memcpy(s->recv_buf + s->recv_ptr + s->recv_used, buf, first_size);",
" if (size > first_size)",
" memcpy(s->recv_buf, buf + first_size, size - first_size);"
... | static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
USBSerialState *s = VAR_0;
int VAR_3 = RECV_BUF - s->recv_ptr;
if (VAR_3 > VAR_2)
VAR_3 = VAR_2;
memcpy(s->recv_buf + s->recv_ptr + s->recv_used, VAR_1, VAR_3);
if (VAR_2 > VAR_3)
memcpy(s->recv_buf, VAR_1 + V... | [
"static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"USBSerialState *s = VAR_0;",
"int VAR_3 = RECV_BUF - s->recv_ptr;",
"if (VAR_3 > VAR_2)\nVAR_3 = VAR_2;",
"memcpy(s->recv_buf + s->recv_ptr + s->recv_used, VAR_1, VAR_3);",
"if (VAR_2 > VAR_3)\nmemcpy(s->recv_buf, VAR_1 + VAR_3, VAR_2... | [
0,
0,
1,
1,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9,
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
]
] |
17,824 | struct omap_mpu_state_s *omap2420_mpu_init(MemoryRegion *sysmem,
unsigned long sdram_size,
const char *core)
{
struct omap_mpu_state_s *s = g_new0(struct omap_mpu_state_s, 1);
qemu_irq dma_irqs[4];
DriveInfo *dinfo;
int i;
SysBusDevice *busdev;
struct oma... | true | qemu | f8ed85ac992c48814d916d5df4d44f9a971c5de4 | struct omap_mpu_state_s *omap2420_mpu_init(MemoryRegion *sysmem,
unsigned long sdram_size,
const char *core)
{
struct omap_mpu_state_s *s = g_new0(struct omap_mpu_state_s, 1);
qemu_irq dma_irqs[4];
DriveInfo *dinfo;
int i;
SysBusDevice *busdev;
struct oma... | {
"code": [
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" &error_abort);",
" ... | struct omap_mpu_state_s *FUNC_0(MemoryRegion *VAR_0,
unsigned long VAR_1,
const char *VAR_2)
{
struct omap_mpu_state_s *VAR_3 = g_new0(struct omap_mpu_state_s, 1);
qemu_irq dma_irqs[4];
DriveInfo *dinfo;
int VAR_4;
SysBusDevice *busdev;
struct omap_target... | [
"struct omap_mpu_state_s *FUNC_0(MemoryRegion *VAR_0,\nunsigned long VAR_1,\nconst char *VAR_2)\n{",
"struct omap_mpu_state_s *VAR_3 = g_new0(struct omap_mpu_state_s, 1);",
"qemu_irq dma_irqs[4];",
"DriveInfo *dinfo;",
"int VAR_4;",
"SysBusDevice *busdev;",
"struct omap_target_agent_s *VAR_5;",
"VAR_3... | [
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
49
],
[
55,
57
],
[... |
17,826 | static void test_dealloc_partial(void)
{
static const char text[] = "don't leak me";
UserDefTwo *ud2 = NULL;
Error *err = NULL;
/* create partial object */
{
QDict *ud2_dict;
QmpInputVisitor *qiv;
ud2_dict = qdict_new();
qdict_put_obj(ud2_dict, "string... | true | qemu | a12a5a1a0132527afe87c079e4aae4aad372bd94 | static void test_dealloc_partial(void)
{
static const char text[] = "don't leak me";
UserDefTwo *ud2 = NULL;
Error *err = NULL;
{
QDict *ud2_dict;
QmpInputVisitor *qiv;
ud2_dict = qdict_new();
qdict_put_obj(ud2_dict, "string0", QOBJECT(qstring_from_st... | {
"code": [
" assert(err != NULL);",
" error_free(err);",
" error_free(err);",
" error_free(err);",
" error_free(err);",
" error_free(err);",
" error_free(err);",
" error_free(err);",
" error_free(err);",
" error_free(err);",
" error_free(er... | static void FUNC_0(void)
{
static const char VAR_0[] = "don't leak me";
UserDefTwo *ud2 = NULL;
Error *err = NULL;
{
QDict *ud2_dict;
QmpInputVisitor *qiv;
ud2_dict = qdict_new();
qdict_put_obj(ud2_dict, "string0", QOBJECT(qstring_from_str(VAR_0)));
... | [
"static void FUNC_0(void)\n{",
"static const char VAR_0[] = \"don't leak me\";",
"UserDefTwo *ud2 = NULL;",
"Error *err = NULL;",
"{",
"QDict *ud2_dict;",
"QmpInputVisitor *qiv;",
"ud2_dict = qdict_new();",
"qdict_put_obj(ud2_dict, \"string0\", QOBJECT(qstring_from_str(VAR_0)));",
"qiv = qmp_input... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
45
],
[
47
],
[
49
],
[
51
],
[
57
],
[
59... |
17,827 | static int bdrv_qed_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVQEDState *s = bs->opaque;
QEDHeader le_header;
int64_t file_size;
int ret;
s->bs = bs;
QSIMPLEQ_INIT(&s->allocating_write_reqs);
ret = bdrv_pread(bs->file, 0, &le_header, si... | true | qemu | 0adfa1ed655904d5bf17fe047635a563f0229789 | static int bdrv_qed_open(BlockDriverState *bs, QDict *options, int flags,
Error **errp)
{
BDRVQEDState *s = bs->opaque;
QEDHeader le_header;
int64_t file_size;
int ret;
s->bs = bs;
QSIMPLEQ_INIT(&s->allocating_write_reqs);
ret = bdrv_pread(bs->file, 0, &le_header, si... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,
Error **VAR_3)
{
BDRVQEDState *s = VAR_0->opaque;
QEDHeader le_header;
int64_t file_size;
int VAR_4;
s->VAR_0 = VAR_0;
QSIMPLEQ_INIT(&s->allocating_write_reqs);
VAR_4 = bdrv_pread(VAR_0->file, 0, &le... | [
"static int FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1, int VAR_2,\nError **VAR_3)\n{",
"BDRVQEDState *s = VAR_0->opaque;",
"QEDHeader le_header;",
"int64_t file_size;",
"int VAR_4;",
"s->VAR_0 = VAR_0;",
"QSIMPLEQ_INIT(&s->allocating_write_reqs);",
"VAR_4 = bdrv_pread(VAR_0->file, 0, &le_header, si... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
... |
17,828 | void gen_intermediate_code(CPUAlphaState *env, struct TranslationBlock *tb)
{
AlphaCPU *cpu = alpha_env_get_cpu(env);
CPUState *cs = CPU(cpu);
DisasContext ctx, *ctxp = &ctx;
target_ulong pc_start;
target_ulong pc_mask;
uint32_t insn;
ExitStatus ret;
int num_insns;
int max_insns;
... | true | qemu | 8aa5c65fd3d4612d8ab690bef0980d26f30f381d | void gen_intermediate_code(CPUAlphaState *env, struct TranslationBlock *tb)
{
AlphaCPU *cpu = alpha_env_get_cpu(env);
CPUState *cs = CPU(cpu);
DisasContext ctx, *ctxp = &ctx;
target_ulong pc_start;
target_ulong pc_mask;
uint32_t insn;
ExitStatus ret;
int num_insns;
int max_insns;
... | {
"code": [],
"line_no": []
} | void FUNC_0(CPUAlphaState *VAR_0, struct TranslationBlock *VAR_1)
{
AlphaCPU *cpu = alpha_env_get_cpu(VAR_0);
CPUState *cs = CPU(cpu);
DisasContext ctx, *ctxp = &ctx;
target_ulong pc_start;
target_ulong pc_mask;
uint32_t insn;
ExitStatus ret;
int VAR_2;
int VAR_3;
pc_start = VAR_... | [
"void FUNC_0(CPUAlphaState *VAR_0, struct TranslationBlock *VAR_1)\n{",
"AlphaCPU *cpu = alpha_env_get_cpu(VAR_0);",
"CPUState *cs = CPU(cpu);",
"DisasContext ctx, *ctxp = &ctx;",
"target_ulong pc_start;",
"target_ulong pc_mask;",
"uint32_t insn;",
"ExitStatus ret;",
"int VAR_2;",
"int VAR_3;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
... |
17,829 | static int vble_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
AVPacket *avpkt)
{
VBLEContext *ctx = avctx->priv_data;
AVFrame *pic = avctx->coded_frame;
GetBitContext gb;
const uint8_t *src = avpkt->data;
int version;
int offset = 0;
int width_u... | true | FFmpeg | 0b28abf903cd1fd61ba4a06009cd2cb7cc40e6e0 | static int vble_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
AVPacket *avpkt)
{
VBLEContext *ctx = avctx->priv_data;
AVFrame *pic = avctx->coded_frame;
GetBitContext gb;
const uint8_t *src = avpkt->data;
int version;
int offset = 0;
int width_u... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
VBLEContext *ctx = VAR_0->priv_data;
AVFrame *pic = VAR_0->coded_frame;
GetBitContext gb;
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5;
int VAR_6 = 0;
int VAR_7 = VAR_0->width ... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"VBLEContext *ctx = VAR_0->priv_data;",
"AVFrame *pic = VAR_0->coded_frame;",
"GetBitContext gb;",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5;",
"int VAR_6 = 0;",
"int VAR_7 = VAR_0->width / 2, VAR_8 = VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
13,
14
],
[
16
],
[
17
],
[
18
],
[
20
],
[
21
],
[
23
],
[
24,
25
],
[
26
],
[
... |
17,830 | static int virtio_balloon_device_exit(DeviceState *qdev)
{
VirtIOBalloon *s = VIRTIO_BALLOON(qdev);
VirtIODevice *vdev = VIRTIO_DEVICE(qdev);
balloon_stats_destroy_timer(s);
qemu_remove_balloon_handler(s);
unregister_savevm(qdev, "virtio-balloon", s);
virtio_cleanup(vdev);
return 0... | true | qemu | baa61b9870dd7e0bb07e0ae61c6ec805db13f699 | static int virtio_balloon_device_exit(DeviceState *qdev)
{
VirtIOBalloon *s = VIRTIO_BALLOON(qdev);
VirtIODevice *vdev = VIRTIO_DEVICE(qdev);
balloon_stats_destroy_timer(s);
qemu_remove_balloon_handler(s);
unregister_savevm(qdev, "virtio-balloon", s);
virtio_cleanup(vdev);
return 0... | {
"code": [
"static int virtio_balloon_device_exit(DeviceState *qdev)",
" VirtIOBalloon *s = VIRTIO_BALLOON(qdev);",
" VirtIODevice *vdev = VIRTIO_DEVICE(qdev);",
" unregister_savevm(qdev, \"virtio-balloon\", s);",
" return 0;"
],
"line_no": [
1,
5,
7,
15,
19
... | static int FUNC_0(DeviceState *VAR_0)
{
VirtIOBalloon *s = VIRTIO_BALLOON(VAR_0);
VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);
balloon_stats_destroy_timer(s);
qemu_remove_balloon_handler(s);
unregister_savevm(VAR_0, "virtio-balloon", s);
virtio_cleanup(vdev);
return 0;
}
| [
"static int FUNC_0(DeviceState *VAR_0)\n{",
"VirtIOBalloon *s = VIRTIO_BALLOON(VAR_0);",
"VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);",
"balloon_stats_destroy_timer(s);",
"qemu_remove_balloon_handler(s);",
"unregister_savevm(VAR_0, \"virtio-balloon\", s);",
"virtio_cleanup(vdev);",
"return 0;",
"}"
] | [
1,
1,
1,
0,
0,
1,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
17,831 | uint8_t* ff_AMediaCodec_getInputBuffer(FFAMediaCodec* codec, size_t idx, size_t *out_size)
{
uint8_t *ret = NULL;
JNIEnv *env = NULL;
jobject buffer = NULL;
JNI_GET_ENV_OR_RETURN(env, codec, NULL);
if (codec->has_get_i_o_buffer) {
buffer = (*env)->CallObjectMethod(env, codec->ob... | true | FFmpeg | 224bb46fb857dab589597bdab302ba8ba012008c | uint8_t* ff_AMediaCodec_getInputBuffer(FFAMediaCodec* codec, size_t idx, size_t *out_size)
{
uint8_t *ret = NULL;
JNIEnv *env = NULL;
jobject buffer = NULL;
JNI_GET_ENV_OR_RETURN(env, codec, NULL);
if (codec->has_get_i_o_buffer) {
buffer = (*env)->CallObjectMethod(env, codec->ob... | {
"code": [
" codec->input_buffers = (*env)->CallObjectMethod(env, codec->object, codec->jfields.get_input_buffers_id);",
" codec->input_buffers = (*env)->NewGlobalRef(env, codec->input_buffers);"
],
"line_no": [
33,
43
]
} | uint8_t* FUNC_0(FFAMediaCodec* codec, size_t idx, size_t *out_size)
{
uint8_t *ret = NULL;
JNIEnv *env = NULL;
jobject buffer = NULL;
JNI_GET_ENV_OR_RETURN(env, codec, NULL);
if (codec->has_get_i_o_buffer) {
buffer = (*env)->CallObjectMethod(env, codec->object, codec->jfields.ge... | [
"uint8_t* FUNC_0(FFAMediaCodec* codec, size_t idx, size_t *out_size)\n{",
"uint8_t *ret = NULL;",
"JNIEnv *env = NULL;",
"jobject buffer = NULL;",
"JNI_GET_ENV_OR_RETURN(env, codec, NULL);",
"if (codec->has_get_i_o_buffer) {",
"buffer = (*env)->CallObjectMethod(env, codec->object, codec->jfields.get_inp... | [
0,
0,
0,
0,
0,
0,
0,
0,
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49... |
17,832 | static int fic_decode_slice(AVCodecContext *avctx, void *tdata)
{
FICContext *ctx = avctx->priv_data;
FICThreadContext *tctx = tdata;
GetBitContext gb;
uint8_t *src = tctx->src;
int slice_h = tctx->slice_h;
int src_size = tctx->src_size;
int y_off = tctx->y_off;
int x... | true | FFmpeg | 73f863d751df84db7a0ca1bd83cdff1b95dc94dd | static int fic_decode_slice(AVCodecContext *avctx, void *tdata)
{
FICContext *ctx = avctx->priv_data;
FICThreadContext *tctx = tdata;
GetBitContext gb;
uint8_t *src = tctx->src;
int slice_h = tctx->slice_h;
int src_size = tctx->src_size;
int y_off = tctx->y_off;
int x... | {
"code": [
" if ((ret = fic_decode_block(ctx, &gb, dst + x, stride, tctx->block)) != 0)"
],
"line_no": [
43
]
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1)
{
FICContext *ctx = VAR_0->priv_data;
FICThreadContext *tctx = VAR_1;
GetBitContext gb;
uint8_t *src = tctx->src;
int VAR_2 = tctx->VAR_2;
int VAR_3 = tctx->VAR_3;
int VAR_4 = tctx->VAR_4;
int VAR_5, VAR_6, VAR_7;
... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1)\n{",
"FICContext *ctx = VAR_0->priv_data;",
"FICThreadContext *tctx = VAR_1;",
"GetBitContext gb;",
"uint8_t *src = tctx->src;",
"int VAR_2 = tctx->VAR_2;",
"int VAR_3 = tctx->VAR_3;",
"int VAR_4 = tctx->VAR_4;",
"int VAR_5, VAR_6, VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43,
45
],
[
47
],
[
51
],
[... |
17,834 | fdctrl_t *sun4m_fdctrl_init (qemu_irq irq, target_phys_addr_t io_base,
DriveInfo **fds, qemu_irq *fdc_tc)
{
DeviceState *dev;
fdctrl_sysbus_t *sys;
fdctrl_t *fdctrl;
dev = qdev_create(NULL, "SUNW,fdtwo");
qdev_prop_set_drive(dev, "drive", fds[0]);
if (qdev_... | true | qemu | e23a1b33b53d25510320b26d9f154e19c6c99725 | fdctrl_t *sun4m_fdctrl_init (qemu_irq irq, target_phys_addr_t io_base,
DriveInfo **fds, qemu_irq *fdc_tc)
{
DeviceState *dev;
fdctrl_sysbus_t *sys;
fdctrl_t *fdctrl;
dev = qdev_create(NULL, "SUNW,fdtwo");
qdev_prop_set_drive(dev, "drive", fds[0]);
if (qdev_... | {
"code": [
" if (qdev_init(dev) != 0)",
" return NULL;",
" if (qdev_init(dev) != 0)",
" return NULL;"
],
"line_no": [
19,
21,
19,
21
]
} | fdctrl_t *FUNC_0 (qemu_irq irq, target_phys_addr_t io_base,
DriveInfo **fds, qemu_irq *fdc_tc)
{
DeviceState *dev;
fdctrl_sysbus_t *sys;
fdctrl_t *fdctrl;
dev = qdev_create(NULL, "SUNW,fdtwo");
qdev_prop_set_drive(dev, "drive", fds[0]);
if (qdev_init(dev) !... | [
"fdctrl_t *FUNC_0 (qemu_irq irq, target_phys_addr_t io_base,\nDriveInfo **fds, qemu_irq *fdc_tc)\n{",
"DeviceState *dev;",
"fdctrl_sysbus_t *sys;",
"fdctrl_t *fdctrl;",
"dev = qdev_create(NULL, \"SUNW,fdtwo\");",
"qdev_prop_set_drive(dev, \"drive\", fds[0]);",
"if (qdev_init(dev) != 0)\nreturn NULL;",
... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
]
] |
17,836 | static av_cold int XAVS_init(AVCodecContext *avctx)
{
XavsContext *x4 = avctx->priv_data;
x4->sei_size = 0;
xavs_param_default(&x4->params);
x4->params.pf_log = XAVS_log;
x4->params.p_log_private = avctx;
x4->params.i_keyint_max = avctx->gop_size;
if ... | true | FFmpeg | 27dfe54eb765793b1f8d8cecaed0ee1e507fcf57 | static av_cold int XAVS_init(AVCodecContext *avctx)
{
XavsContext *x4 = avctx->priv_data;
x4->sei_size = 0;
xavs_param_default(&x4->params);
x4->params.pf_log = XAVS_log;
x4->params.p_log_private = avctx;
x4->params.i_keyint_max = avctx->gop_size;
if ... | {
"code": [
" x4->params.rc.f_rate_tolerance =",
" (float)avctx->bit_rate_tolerance/avctx->bit_rate;"
],
"line_no": [
227,
229
]
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
XavsContext *x4 = avctx->priv_data;
x4->sei_size = 0;
xavs_param_default(&x4->params);
x4->params.pf_log = XAVS_log;
x4->params.p_log_private = avctx;
x4->params.i_keyint_max = avctx->gop_size;
if (av... | [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"XavsContext *x4 = avctx->priv_data;",
"x4->sei_size = 0;",
"xavs_param_default(&x4->params);",
"x4->params.pf_log = XAVS_log;",
"x4->params.p_log_private = avctx;",
"x4->params.i_keyint_max = avctx->gop_size;",
"if (a... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45... |
17,837 | av_cold int ff_huffyuv_alloc_temp(HYuvContext *s)
{
int i;
if (s->bitstream_bpp<24 || s->version > 2) {
for (i=0; i<3; i++) {
s->temp[i]= av_malloc(2*s->width + 16);
if (!s->temp[i])
return AVERROR(ENOMEM);
s->temp16[i] = (uint16_t*)s->temp[i... | true | FFmpeg | 4332b01c30a446e9c177fe44761a612daa0334c7 | av_cold int ff_huffyuv_alloc_temp(HYuvContext *s)
{
int i;
if (s->bitstream_bpp<24 || s->version > 2) {
for (i=0; i<3; i++) {
s->temp[i]= av_malloc(2*s->width + 16);
if (!s->temp[i])
return AVERROR(ENOMEM);
s->temp16[i] = (uint16_t*)s->temp[i... | {
"code": [
" if (s->bitstream_bpp<24 || s->version > 2) {",
" for (i=0; i<3; i++) {",
" s->temp[i]= av_malloc(2*s->width + 16);",
" if (!s->temp[i])",
" return AVERROR(ENOMEM);",
" s->temp16[i] = (uint16_t*)s->temp[i];",
" } els... | av_cold int FUNC_0(HYuvContext *s)
{
int VAR_0;
if (s->bitstream_bpp<24 || s->version > 2) {
for (VAR_0=0; VAR_0<3; VAR_0++) {
s->temp[VAR_0]= av_malloc(2*s->width + 16);
if (!s->temp[VAR_0])
return AVERROR(ENOMEM);
s->temp16[VAR_0] = (uint16... | [
"av_cold int FUNC_0(HYuvContext *s)\n{",
"int VAR_0;",
"if (s->bitstream_bpp<24 || s->version > 2) {",
"for (VAR_0=0; VAR_0<3; VAR_0++) {",
"s->temp[VAR_0]= av_malloc(2*s->width + 16);",
"if (!s->temp[VAR_0])\nreturn AVERROR(ENOMEM);",
"s->temp16[VAR_0] = (uint16_t*)s->temp[VAR_0];",
"}",
"} else {"... | [
0,
0,
1,
1,
1,
1,
1,
0,
0,
1,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
]
] |
17,838 | void dump_mmu(FILE *f, fprintf_function cpu_fprintf, CPUPPCState *env)
{
switch (env->mmu_model) {
case POWERPC_MMU_BOOKE:
mmubooke_dump_mmu(f, cpu_fprintf, env);
break;
case POWERPC_MMU_BOOKE206:
mmubooke206_dump_mmu(f, cpu_fprintf, env);
break;
case POWERPC_MMU... | true | qemu | ba3ecda05e933acf6fff618716b6f6d2ed6a5a07 | void dump_mmu(FILE *f, fprintf_function cpu_fprintf, CPUPPCState *env)
{
switch (env->mmu_model) {
case POWERPC_MMU_BOOKE:
mmubooke_dump_mmu(f, cpu_fprintf, env);
break;
case POWERPC_MMU_BOOKE206:
mmubooke206_dump_mmu(f, cpu_fprintf, env);
break;
case POWERPC_MMU... | {
"code": [],
"line_no": []
} | void FUNC_0(FILE *VAR_0, fprintf_function VAR_1, CPUPPCState *VAR_2)
{
switch (VAR_2->mmu_model) {
case POWERPC_MMU_BOOKE:
mmubooke_dump_mmu(VAR_0, VAR_1, VAR_2);
break;
case POWERPC_MMU_BOOKE206:
mmubooke206_dump_mmu(VAR_0, VAR_1, VAR_2);
break;
case POWERPC_MMU... | [
"void FUNC_0(FILE *VAR_0, fprintf_function VAR_1, CPUPPCState *VAR_2)\n{",
"switch (VAR_2->mmu_model) {",
"case POWERPC_MMU_BOOKE:\nmmubooke_dump_mmu(VAR_0, VAR_1, VAR_2);",
"break;",
"case POWERPC_MMU_BOOKE206:\nmmubooke206_dump_mmu(VAR_0, VAR_1, VAR_2);",
"break;",
"case POWERPC_MMU_SOFT_6xx:\ncase PO... | [
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,
36,
39
],
[
41
],
[
43,
45,
47
],
[
49
],
[
51
]
] |
17,839 | static void monitor_qapi_event_handler(void *opaque)
{
MonitorQAPIEventState *evstate = opaque;
MonitorQAPIEventConf *evconf = &monitor_qapi_event_conf[evstate->event];
trace_monitor_protocol_event_handler(evstate->event, evstate->qdict);
qemu_mutex_lock(&monitor_lock);
if (evstate->qdict)... | true | qemu | dc5999787181f6d090217f45570067e55333835b | static void monitor_qapi_event_handler(void *opaque)
{
MonitorQAPIEventState *evstate = opaque;
MonitorQAPIEventConf *evconf = &monitor_qapi_event_conf[evstate->event];
trace_monitor_protocol_event_handler(evstate->event, evstate->qdict);
qemu_mutex_lock(&monitor_lock);
if (evstate->qdict)... | {
"code": [
" int64_t now = qemu_clock_get_ns(QEMU_CLOCK_REALTIME);"
],
"line_no": [
19
]
} | static void FUNC_0(void *VAR_0)
{
MonitorQAPIEventState *evstate = VAR_0;
MonitorQAPIEventConf *evconf = &monitor_qapi_event_conf[evstate->event];
trace_monitor_protocol_event_handler(evstate->event, evstate->qdict);
qemu_mutex_lock(&monitor_lock);
if (evstate->qdict) {
int64_t no... | [
"static void FUNC_0(void *VAR_0)\n{",
"MonitorQAPIEventState *evstate = VAR_0;",
"MonitorQAPIEventConf *evconf = &monitor_qapi_event_conf[evstate->event];",
"trace_monitor_protocol_event_handler(evstate->event, evstate->qdict);",
"qemu_mutex_lock(&monitor_lock);",
"if (evstate->qdict) {",
"int64_t now =... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
]
] |
17,840 | static void body(uint32_t ABCD[4], uint32_t X[16])
{
int i av_unused;
uint32_t t;
uint32_t a = ABCD[3];
uint32_t b = ABCD[2];
uint32_t c = ABCD[1];
uint32_t d = ABCD[0];
#if HAVE_BIGENDIAN
for (i = 0; i < 16; i++)
X[i] = av_bswap32(X[i]);
#endif
#if CONFIG_SMALL
... | false | FFmpeg | a67304d05f11b2377bf157a356d7ebb00f3e06dd | static void body(uint32_t ABCD[4], uint32_t X[16])
{
int i av_unused;
uint32_t t;
uint32_t a = ABCD[3];
uint32_t b = ABCD[2];
uint32_t c = ABCD[1];
uint32_t d = ABCD[0];
#if HAVE_BIGENDIAN
for (i = 0; i < 16; i++)
X[i] = av_bswap32(X[i]);
#endif
#if CONFIG_SMALL
... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint32_t VAR_0[4], uint32_t VAR_1[16])
{
int VAR_2 av_unused;
uint32_t t;
uint32_t a = VAR_0[3];
uint32_t b = VAR_0[2];
uint32_t c = VAR_0[1];
uint32_t d = VAR_0[0];
#if HAVE_BIGENDIAN
for (VAR_2 = 0; VAR_2 < 16; VAR_2++)
VAR_1[VAR_2] = av_bswap32(VAR_1... | [
"static void FUNC_0(uint32_t VAR_0[4], uint32_t VAR_1[16])\n{",
"int VAR_2 av_unused;",
"uint32_t t;",
"uint32_t a = VAR_0[3];",
"uint32_t b = VAR_0[2];",
"uint32_t c = VAR_0[1];",
"uint32_t d = VAR_0[0];",
"#if HAVE_BIGENDIAN\nfor (VAR_2 = 0; VAR_2 < 16; VAR_2++)",
"VAR_1[VAR_2] = av_bswap32(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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
23
],
[
25,
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,
49,... |
17,841 | static int v210_read_header(AVFormatContext *ctx)
{
V210DemuxerContext *s = ctx->priv_data;
AVStream *st;
st = avformat_new_stream(ctx, NULL);
if (!st)
return AVERROR(ENOMEM);
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
st->codec->codec_id = ctx->iformat->raw_codec_id;
... | false | FFmpeg | 12a419dacb479d663f04e316f9997568ef326965 | static int v210_read_header(AVFormatContext *ctx)
{
V210DemuxerContext *s = ctx->priv_data;
AVStream *st;
st = avformat_new_stream(ctx, NULL);
if (!st)
return AVERROR(ENOMEM);
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
st->codec->codec_id = ctx->iformat->raw_codec_id;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
V210DemuxerContext *s = VAR_0->priv_data;
AVStream *st;
st = avformat_new_stream(VAR_0, NULL);
if (!st)
return AVERROR(ENOMEM);
st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
st->codec->codec_id = VAR_0->iformat->raw_codec_id;
... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"V210DemuxerContext *s = VAR_0->priv_data;",
"AVStream *st;",
"st = avformat_new_stream(VAR_0, NULL);",
"if (!st)\nreturn AVERROR(ENOMEM);",
"st->codec->codec_type = AVMEDIA_TYPE_VIDEO;",
"st->codec->codec_id = VAR_0->iformat->raw_codec_id;",
"avpriv_set... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
19
],
[
23
],
[
27
],
[
31
],
[
33
],
[
35,
37
],
[
39,
41
],
[
45
],
[
47
]
] |
17,843 | int ff_h263_decode_mb(MpegEncContext *s,
int16_t block[6][64])
{
int cbpc, cbpy, i, cbp, pred_x, pred_y, mx, my, dquant;
int16_t *mot_val;
const int xy= s->mb_x + s->mb_y * s->mb_stride;
int cbpb = 0, pb_mv_count = 0;
assert(!s->h263_pred);
if (s->pict_type == A... | true | FFmpeg | 9514440337875e0c63b409abcd616b68c518283f | int ff_h263_decode_mb(MpegEncContext *s,
int16_t block[6][64])
{
int cbpc, cbpy, i, cbp, pred_x, pred_y, mx, my, dquant;
int16_t *mot_val;
const int xy= s->mb_x + s->mb_y * s->mb_stride;
int cbpb = 0, pb_mv_count = 0;
assert(!s->h263_pred);
if (s->pict_type == A... | {
"code": [],
"line_no": []
} | int FUNC_0(MpegEncContext *VAR_0,
int16_t VAR_1[6][64])
{
int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;
int16_t *mot_val;
const int VAR_11= VAR_0->mb_x + VAR_0->mb_y * VAR_0->mb_stride;
int VAR_12 = 0, VAR_13 = 0;
assert(!VAR_0->h263_pred);
... | [
"int FUNC_0(MpegEncContext *VAR_0,\nint16_t VAR_1[6][64])\n{",
"int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;",
"int16_t *mot_val;",
"const int VAR_11= VAR_0->mb_x + VAR_0->mb_y * VAR_0->mb_stride;",
"int VAR_12 = 0, VAR_13 = 0;",
"assert(!VAR_0->h263_pred);",
"if (VAR_0->pict_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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[... |
17,844 | const QEMUSizedBuffer *qemu_buf_get(QEMUFile *f)
{
QEMUBuffer *p;
qemu_fflush(f);
p = f->opaque;
return p->qsb;
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | const QEMUSizedBuffer *qemu_buf_get(QEMUFile *f)
{
QEMUBuffer *p;
qemu_fflush(f);
p = f->opaque;
return p->qsb;
}
| {
"code": [],
"line_no": []
} | const QEMUSizedBuffer *FUNC_0(QEMUFile *f)
{
QEMUBuffer *p;
qemu_fflush(f);
p = f->opaque;
return p->qsb;
}
| [
"const QEMUSizedBuffer *FUNC_0(QEMUFile *f)\n{",
"QEMUBuffer *p;",
"qemu_fflush(f);",
"p = f->opaque;",
"return p->qsb;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
17
],
[
19
]
] |
17,845 | static int vncws_start_tls_handshake(struct VncState *vs)
{
int ret = gnutls_handshake(vs->tls.session);
if (ret < 0) {
if (!gnutls_error_is_fatal(ret)) {
VNC_DEBUG("Handshake interrupted (blocking)\n");
if (!gnutls_record_get_direction(vs->tls.session)) {
qemu_se... | true | qemu | 4a48aaa9f52dbac148be24f591de2f28c58ccb5d | static int vncws_start_tls_handshake(struct VncState *vs)
{
int ret = gnutls_handshake(vs->tls.session);
if (ret < 0) {
if (!gnutls_error_is_fatal(ret)) {
VNC_DEBUG("Handshake interrupted (blocking)\n");
if (!gnutls_record_get_direction(vs->tls.session)) {
qemu_se... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct VncState *VAR_0)
{
int VAR_1 = gnutls_handshake(VAR_0->tls.session);
if (VAR_1 < 0) {
if (!gnutls_error_is_fatal(VAR_1)) {
VNC_DEBUG("Handshake interrupted (blocking)\n");
if (!gnutls_record_get_direction(VAR_0->tls.session)) {
qemu_set_fd... | [
"static int FUNC_0(struct VncState *VAR_0)\n{",
"int VAR_1 = gnutls_handshake(VAR_0->tls.session);",
"if (VAR_1 < 0) {",
"if (!gnutls_error_is_fatal(VAR_1)) {",
"VNC_DEBUG(\"Handshake interrupted (blocking)\\n\");",
"if (!gnutls_record_get_direction(VAR_0->tls.session)) {",
"qemu_set_fd_handler(VAR_0->c... | [
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,846 | static uint8_t *read_huffman_tables(FourXContext *f, uint8_t * const buf){
int frequency[512];
uint8_t flag[512];
int up[512];
uint8_t len_tab[257];
int bits_tab[257];
int start, end;
uint8_t *ptr= buf;
int j;
memset(frequency, 0, sizeof(frequency));
memset(up, -1... | true | FFmpeg | 073c2593c9f0aa4445a6fc1b9b24e6e52a8cc2c1 | static uint8_t *read_huffman_tables(FourXContext *f, uint8_t * const buf){
int frequency[512];
uint8_t flag[512];
int up[512];
uint8_t len_tab[257];
int bits_tab[257];
int start, end;
uint8_t *ptr= buf;
int j;
memset(frequency, 0, sizeof(frequency));
memset(up, -1... | {
"code": [
" bits_tab, 4, 4);"
],
"line_no": [
153
]
} | static uint8_t *FUNC_0(FourXContext *f, uint8_t * const buf){
int VAR_0[512];
uint8_t flag[512];
int VAR_1[512];
uint8_t len_tab[257];
int VAR_2[257];
int VAR_3, VAR_4;
uint8_t *ptr= buf;
int VAR_5;
memset(VAR_0, 0, sizeof(VAR_0));
memset(VAR_1, -1, sizeof(VAR_1))... | [
"static uint8_t *FUNC_0(FourXContext *f, uint8_t * const buf){",
"int VAR_0[512];",
"uint8_t flag[512];",
"int VAR_1[512];",
"uint8_t len_tab[257];",
"int VAR_2[257];",
"int VAR_3, VAR_4;",
"uint8_t *ptr= buf;",
"int VAR_5;",
"memset(VAR_0, 0, sizeof(VAR_0));",
"memset(VAR_1, -1, sizeof(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,
1,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[... |
17,847 | static bool ohci_eof_timer_needed(void *opaque)
{
OHCIState *ohci = opaque;
return ohci->eof_timer != NULL;
}
| true | qemu | fa1298c2d623522eda7b4f1f721fcb935abb7360 | static bool ohci_eof_timer_needed(void *opaque)
{
OHCIState *ohci = opaque;
return ohci->eof_timer != NULL;
}
| {
"code": [
" return ohci->eof_timer != NULL;",
" OHCIState *ohci = opaque;"
],
"line_no": [
9,
5
]
} | static bool FUNC_0(void *opaque)
{
OHCIState *ohci = opaque;
return ohci->eof_timer != NULL;
}
| [
"static bool FUNC_0(void *opaque)\n{",
"OHCIState *ohci = opaque;",
"return ohci->eof_timer != NULL;",
"}"
] | [
0,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
]
] |
17,848 | static int decode_frame_apng(AVCodecContext *avctx,
void *data, int *got_frame,
AVPacket *avpkt)
{
PNGDecContext *const s = avctx->priv_data;
int ret;
AVFrame *p;
ff_thread_release_buffer(avctx, &s->last_picture);
FFSWAP(ThreadFrame, s->pictu... | true | FFmpeg | 16c429166ddf1736972b6ccce84bd3509ec16a34 | static int decode_frame_apng(AVCodecContext *avctx,
void *data, int *got_frame,
AVPacket *avpkt)
{
PNGDecContext *const s = avctx->priv_data;
int ret;
AVFrame *p;
ff_thread_release_buffer(avctx, &s->last_picture);
FFSWAP(ThreadFrame, s->pictu... | {
"code": [
" int side_data_size = 0;",
" uint8_t *side_data = NULL;",
" if (avpkt)",
" side_data = av_packet_get_side_data(avpkt, AV_PKT_DATA_NEW_EXTRADATA, &side_data_size);",
" if (side_data_size) {",
" av_freep(&s->extra_data);",
" ... | static int FUNC_0(AVCodecContext *VAR_0,
void *VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
PNGDecContext *const s = VAR_0->priv_data;
int VAR_4;
AVFrame *p;
ff_thread_release_buffer(VAR_0, &s->last_picture);
FFSWAP(ThreadFrame, s->picture, s->last_... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"PNGDecContext *const s = VAR_0->priv_data;",
"int VAR_4;",
"AVFrame *p;",
"ff_thread_release_buffer(VAR_0, &s->last_picture);",
"FFSWAP(ThreadFrame, s->picture, s->last_picture);",
"p = s->picture.f;",
"if (!(s... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
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,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
],
[
51
... |
17,849 | static abi_ulong mmap_find_vma_reserved(abi_ulong start, abi_ulong size)
{
abi_ulong addr;
abi_ulong end_addr;
int prot;
int looped = 0;
if (size > reserved_va) {
return (abi_ulong)-1;
}
size = HOST_PAGE_ALIGN(size);
end_addr = start + size;
if (end_addr > rese... | true | qemu | 95e6d4305affbbf5258c6a533be9bfd24599da90 | static abi_ulong mmap_find_vma_reserved(abi_ulong start, abi_ulong size)
{
abi_ulong addr;
abi_ulong end_addr;
int prot;
int looped = 0;
if (size > reserved_va) {
return (abi_ulong)-1;
}
size = HOST_PAGE_ALIGN(size);
end_addr = start + size;
if (end_addr > rese... | {
"code": [
" if (addr + size == end_addr) {"
],
"line_no": [
65
]
} | static abi_ulong FUNC_0(abi_ulong start, abi_ulong size)
{
abi_ulong addr;
abi_ulong end_addr;
int VAR_0;
int VAR_1 = 0;
if (size > reserved_va) {
return (abi_ulong)-1;
}
size = HOST_PAGE_ALIGN(size);
end_addr = start + size;
if (end_addr > reserved_va) {
... | [
"static abi_ulong FUNC_0(abi_ulong start, abi_ulong size)\n{",
"abi_ulong addr;",
"abi_ulong end_addr;",
"int VAR_0;",
"int VAR_1 = 0;",
"if (size > reserved_va) {",
"return (abi_ulong)-1;",
"}",
"size = HOST_PAGE_ALIGN(size);",
"end_addr = start + size;",
"if (end_addr > reserved_va) {",
"end... | [
0,
0,
0,
0,
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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
17,850 | static av_always_inline int process_frame(WriterContext *w,
InputFile *ifile,
AVFrame *frame, AVPacket *pkt)
{
AVFormatContext *fmt_ctx = ifile->fmt_ctx;
AVCodecContext *dec_ctx = ifile->streams[pkt->stream_index].dec_ctx;
... | false | FFmpeg | e8373143e11827b668495ff3323c3abedb3dc9da | static av_always_inline int process_frame(WriterContext *w,
InputFile *ifile,
AVFrame *frame, AVPacket *pkt)
{
AVFormatContext *fmt_ctx = ifile->fmt_ctx;
AVCodecContext *dec_ctx = ifile->streams[pkt->stream_index].dec_ctx;
... | {
"code": [],
"line_no": []
} | static av_always_inline int FUNC_0(WriterContext *w,
InputFile *ifile,
AVFrame *frame, AVPacket *pkt)
{
AVFormatContext *fmt_ctx = ifile->fmt_ctx;
AVCodecContext *dec_ctx = ifile->streams[pkt->stream_index].dec_ctx;
AV... | [
"static av_always_inline int FUNC_0(WriterContext *w,\nInputFile *ifile,\nAVFrame *frame, AVPacket *pkt)\n{",
"AVFormatContext *fmt_ctx = ifile->fmt_ctx;",
"AVCodecContext *dec_ctx = ifile->streams[pkt->stream_index].dec_ctx;",
"AVCodecParameters *par = ifile->streams[pkt->stream_index].st->codecpar;",
"AVS... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
33,
35
],
[
37
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
53,
55
... |
17,851 | static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
int ret;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams - 1];
sc = st->priv_data;
avio_r8(pb); /* version */
avio_rb24(pb); /* fl... | false | FFmpeg | 8b43ee4054af799e388d380b379a13a60849c1b5 | static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
{
AVStream *st;
MOVStreamContext *sc;
int ret;
if (c->fc->nb_streams < 1)
return 0;
st = c->fc->streams[c->fc->nb_streams - 1];
sc = st->priv_data;
avio_r8(pb);
avio_rb24(pb);
sc->stsd_cou... | {
"code": [],
"line_no": []
} | static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)
{
AVStream *st;
MOVStreamContext *sc;
int VAR_3;
if (VAR_0->fc->nb_streams < 1)
return 0;
st = VAR_0->fc->streams[VAR_0->fc->nb_streams - 1];
sc = st->priv_data;
avio_r8(VAR_1);
avio_rb24(VAR_1... | [
"static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{",
"AVStream *st;",
"MOVStreamContext *sc;",
"int VAR_3;",
"if (VAR_0->fc->nb_streams < 1)\nreturn 0;",
"st = VAR_0->fc->streams[VAR_0->fc->nb_streams - 1];",
"sc = st->priv_data;",
"avio_r8(VAR_1);",
"avio_rb24(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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
33
],
[
35,
37
],
[
41
],
[
43,
45
],
[
49
],
[
51,
53
],
[
59
],
[
61
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.