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 |
|---|---|---|---|---|---|---|---|---|---|---|
22,118 | static BlockStats *bdrv_query_stats(BlockBackend *blk,
const BlockDriverState *bs,
bool query_backing)
{
BlockStats *s;
s = bdrv_query_bds_stats(bs, query_backing);
if (blk) {
s->has_device = true;
s->device ... | false | qemu | a6baa60807f88ba7d97b1787797fb58882ccbfb9 | static BlockStats *bdrv_query_stats(BlockBackend *blk,
const BlockDriverState *bs,
bool query_backing)
{
BlockStats *s;
s = bdrv_query_bds_stats(bs, query_backing);
if (blk) {
s->has_device = true;
s->device ... | {
"code": [],
"line_no": []
} | static BlockStats *FUNC_0(BlockBackend *blk,
const BlockDriverState *bs,
bool query_backing)
{
BlockStats *s;
s = bdrv_query_bds_stats(bs, query_backing);
if (blk) {
s->has_device = true;
s->device = g_strdup... | [
"static BlockStats *FUNC_0(BlockBackend *blk,\nconst BlockDriverState *bs,\nbool query_backing)\n{",
"BlockStats *s;",
"s = bdrv_query_bds_stats(bs, query_backing);",
"if (blk) {",
"s->has_device = true;",
"s->device = g_strdup(blk_name(blk));",
"bdrv_query_blk_stats(s->stats, blk);",
"}",
"return s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
]
] |
22,120 | ip_init(void)
{
ipq.ip_link.next = ipq.ip_link.prev = &ipq.ip_link;
ip_id = tt.tv_sec & 0xffff;
udp_init();
tcp_init();
}
| false | qemu | 285f7a62e464eac97e472ba6803ddede1e6c459e | ip_init(void)
{
ipq.ip_link.next = ipq.ip_link.prev = &ipq.ip_link;
ip_id = tt.tv_sec & 0xffff;
udp_init();
tcp_init();
}
| {
"code": [],
"line_no": []
} | FUNC_0(void)
{
ipq.ip_link.next = ipq.ip_link.prev = &ipq.ip_link;
ip_id = tt.tv_sec & 0xffff;
udp_init();
tcp_init();
}
| [
"FUNC_0(void)\n{",
"ipq.ip_link.next = ipq.ip_link.prev = &ipq.ip_link;",
"ip_id = tt.tv_sec & 0xffff;",
"udp_init();",
"tcp_init();",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
22,121 | static IOMMUTLBEntry typhoon_translate_iommu(MemoryRegion *iommu, hwaddr addr,
bool is_write)
{
TyphoonPchip *pchip = container_of(iommu, TyphoonPchip, iommu);
IOMMUTLBEntry ret;
int i;
if (addr <= 0xffffffffu) {
/* Single-address cycle. */
... | false | qemu | bf55b7afce53718ef96f4e6616da62c0ccac37dd | static IOMMUTLBEntry typhoon_translate_iommu(MemoryRegion *iommu, hwaddr addr,
bool is_write)
{
TyphoonPchip *pchip = container_of(iommu, TyphoonPchip, iommu);
IOMMUTLBEntry ret;
int i;
if (addr <= 0xffffffffu) {
if ((pc... | {
"code": [],
"line_no": []
} | static IOMMUTLBEntry FUNC_0(MemoryRegion *iommu, hwaddr addr,
bool is_write)
{
TyphoonPchip *pchip = container_of(iommu, TyphoonPchip, iommu);
IOMMUTLBEntry ret;
int VAR_0;
if (addr <= 0xffffffffu) {
if ((pchip->ctl & 0x... | [
"static IOMMUTLBEntry FUNC_0(MemoryRegion *iommu, hwaddr addr,\nbool is_write)\n{",
"TyphoonPchip *pchip = container_of(iommu, TyphoonPchip, iommu);",
"IOMMUTLBEntry ret;",
"int VAR_0;",
"if (addr <= 0xffffffffu) {",
"if ((pchip->ctl & 0x20)\n&& addr >= 0x80000\n&& addr <= 0xfffff) {",
"goto failure;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
23,
25,
27
],
[
29
],
[
31
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
51,
53
],
[
55
],
[
57
],
[
59
],
[
65
... |
22,122 | void json_prop_str(QJSON *json, const char *name, const char *str)
{
json_emit_element(json, name);
qstring_append_chr(json->str, '"');
qstring_append(json->str, str);
qstring_append_chr(json->str, '"');
}
| false | qemu | 17b74b98676aee5bc470b173b1e528d2fce2cf18 | void json_prop_str(QJSON *json, const char *name, const char *str)
{
json_emit_element(json, name);
qstring_append_chr(json->str, '"');
qstring_append(json->str, str);
qstring_append_chr(json->str, '"');
}
| {
"code": [],
"line_no": []
} | void FUNC_0(QJSON *VAR_0, const char *VAR_1, const char *VAR_2)
{
json_emit_element(VAR_0, VAR_1);
qstring_append_chr(VAR_0->VAR_2, '"');
qstring_append(VAR_0->VAR_2, VAR_2);
qstring_append_chr(VAR_0->VAR_2, '"');
}
| [
"void FUNC_0(QJSON *VAR_0, const char *VAR_1, const char *VAR_2)\n{",
"json_emit_element(VAR_0, VAR_1);",
"qstring_append_chr(VAR_0->VAR_2, '\"');",
"qstring_append(VAR_0->VAR_2, VAR_2);",
"qstring_append_chr(VAR_0->VAR_2, '\"');",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
22,123 | static void encode_signal_range(VC2EncContext *s)
{
int idx;
AVCodecContext *avctx = s->avctx;
const AVPixFmtDescriptor *fmt = av_pix_fmt_desc_get(avctx->pix_fmt);
const int depth = fmt->comp[0].depth;
if (depth == 8 && avctx->color_range == AVCOL_RANGE_JPEG) {
idx = 1;
s->bp... | true | FFmpeg | b88be742fac7a77a8095e8155ba8790db4b77568 | static void encode_signal_range(VC2EncContext *s)
{
int idx;
AVCodecContext *avctx = s->avctx;
const AVPixFmtDescriptor *fmt = av_pix_fmt_desc_get(avctx->pix_fmt);
const int depth = fmt->comp[0].depth;
if (depth == 8 && avctx->color_range == AVCOL_RANGE_JPEG) {
idx = 1;
s->bp... | {
"code": [
" int idx;",
" AVCodecContext *avctx = s->avctx;",
" const AVPixFmtDescriptor *fmt = av_pix_fmt_desc_get(avctx->pix_fmt);",
" const int depth = fmt->comp[0].depth;",
" if (depth == 8 && avctx->color_range == AVCOL_RANGE_JPEG) {",
" idx = 1;",
" s->b... | static void FUNC_0(VC2EncContext *VAR_0)
{
int VAR_1;
AVCodecContext *avctx = VAR_0->avctx;
const AVPixFmtDescriptor *VAR_2 = av_pix_fmt_desc_get(avctx->pix_fmt);
const int VAR_3 = VAR_2->comp[0].VAR_3;
if (VAR_3 == 8 && avctx->color_range == AVCOL_RANGE_JPEG) {
VAR_1 = 1;
VA... | [
"static void FUNC_0(VC2EncContext *VAR_0)\n{",
"int VAR_1;",
"AVCodecContext *avctx = VAR_0->avctx;",
"const AVPixFmtDescriptor *VAR_2 = av_pix_fmt_desc_get(avctx->pix_fmt);",
"const int VAR_3 = VAR_2->comp[0].VAR_3;",
"if (VAR_3 == 8 && avctx->color_range == AVCOL_RANGE_JPEG) {",
"VAR_1 = 1;",
"VAR_0... | [
0,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
1,
1,
1,
1,
0,
1,
0,
1,
0,
0,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
... |
22,125 | static av_cold int tta_decode_init(AVCodecContext * avctx)
{
TTAContext *s = avctx->priv_data;
int i;
s->avctx = avctx;
// 30bytes includes a seektable with one frame
if (avctx->extradata_size < 30)
return -1;
init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size * 8);
if (sh... | true | FFmpeg | 8bd1f1a4c8e591e92e7f4933a89fe5de72e5563f | static av_cold int tta_decode_init(AVCodecContext * avctx)
{
TTAContext *s = avctx->priv_data;
int i;
s->avctx = avctx;
if (avctx->extradata_size < 30)
return -1;
init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size * 8);
if (show_bits_long(&s->gb, 32) == AV_RL32("TTA1"))
... | {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext * avctx)
{
TTAContext *s = avctx->priv_data;
int VAR_0;
s->avctx = avctx;
if (avctx->extradata_size < 30)
return -1;
init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size * 8);
if (show_bits_long(&s->gb, 32) == AV_RL32("TTA1"))
{
... | [
"static av_cold int FUNC_0(AVCodecContext * avctx)\n{",
"TTAContext *s = avctx->priv_data;",
"int VAR_0;",
"s->avctx = avctx;",
"if (avctx->extradata_size < 30)\nreturn -1;",
"init_get_bits(&s->gb, avctx->extradata, avctx->extradata_size * 8);",
"if (show_bits_long(&s->gb, 32) == AV_RL32(\"TTA1\"))\n{",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
7,
8
],
[
9
],
[
10,
11
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],
[
22
],
[
23
],
[
24
]... |
22,126 | static void memory_region_write_accessor(MemoryRegion *mr,
hwaddr addr,
uint64_t *value,
unsigned size,
unsigned shift,
... | true | qemu | cc05c43ad942165ecc6ffd39e41991bee43af044 | static void memory_region_write_accessor(MemoryRegion *mr,
hwaddr addr,
uint64_t *value,
unsigned size,
unsigned shift,
... | {
"code": [
" uint64_t tmp;",
"static void memory_region_write_accessor(MemoryRegion *mr,",
" hwaddr addr,",
" uint64_t *value,",
" unsigned size,",
" ... | static void FUNC_0(MemoryRegion *VAR_0,
hwaddr VAR_1,
uint64_t *VAR_2,
unsigned VAR_3,
unsigned VAR_4,
uint64_... | [
"static void FUNC_0(MemoryRegion *VAR_0,\nhwaddr VAR_1,\nuint64_t *VAR_2,\nunsigned VAR_3,\nunsigned VAR_4,\nuint64_t VAR_5)\n{",
"uint64_t tmp;",
"if (VAR_0->flush_coalesced_mmio) {",
"qemu_flush_coalesced_mmio_buffer();",
"}",
"tmp = (*VAR_2 >> VAR_4) & VAR_5;",
"trace_memory_region_ops_write(VAR_0, V... | [
1,
1,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
22,127 | static void kvm_ioapic_class_init(ObjectClass *klass, void *data)
{
IOAPICCommonClass *k = IOAPIC_COMMON_CLASS(klass);
DeviceClass *dc = DEVICE_CLASS(klass);
k->realize = kvm_ioapic_realize;
k->pre_save = kvm_ioapic_get;
k->post_load = kvm_ioapic_put;
dc->reset = kvm_ioapic_reset;... | true | qemu | e4f4fb1eca795e36f363b4647724221e774523c1 | static void kvm_ioapic_class_init(ObjectClass *klass, void *data)
{
IOAPICCommonClass *k = IOAPIC_COMMON_CLASS(klass);
DeviceClass *dc = DEVICE_CLASS(klass);
k->realize = kvm_ioapic_realize;
k->pre_save = kvm_ioapic_get;
k->post_load = kvm_ioapic_put;
dc->reset = kvm_ioapic_reset;... | {
"code": [],
"line_no": []
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
IOAPICCommonClass *k = IOAPIC_COMMON_CLASS(VAR_0);
DeviceClass *dc = DEVICE_CLASS(VAR_0);
k->realize = kvm_ioapic_realize;
k->pre_save = kvm_ioapic_get;
k->post_load = kvm_ioapic_put;
dc->reset = kvm_ioapic_reset;
dc->prop... | [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"IOAPICCommonClass *k = IOAPIC_COMMON_CLASS(VAR_0);",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"k->realize = kvm_ioapic_realize;",
"k->pre_save = kvm_ioapic_get;",
"k->post_load = kvm_ioapic_put;",
"dc->reset = kvm_ioapic_reset;",
"dc->p... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
26
]
] |
22,128 | void qemu_bh_cancel(QEMUBH *bh)
{
QEMUBH **pbh;
if (bh->scheduled) {
pbh = &first_bh;
while (*pbh != bh)
pbh = &(*pbh)->next;
*pbh = bh->next;
bh->scheduled = 0;
}
}
| true | qemu | 1b435b10324fe9937f254bb00718f78d5e50837a | void qemu_bh_cancel(QEMUBH *bh)
{
QEMUBH **pbh;
if (bh->scheduled) {
pbh = &first_bh;
while (*pbh != bh)
pbh = &(*pbh)->next;
*pbh = bh->next;
bh->scheduled = 0;
}
}
| {
"code": [
" pbh = &first_bh;",
" *pbh = bh->next;",
" bh->scheduled = 0;",
" QEMUBH **pbh;",
" if (bh->scheduled) {",
" pbh = &first_bh;",
" while (*pbh != bh)",
" pbh = &(*pbh)->next;",
" *pbh = bh->next;",
" ... | void FUNC_0(QEMUBH *VAR_0)
{
QEMUBH **pbh;
if (VAR_0->scheduled) {
pbh = &first_bh;
while (*pbh != VAR_0)
pbh = &(*pbh)->next;
*pbh = VAR_0->next;
VAR_0->scheduled = 0;
}
}
| [
"void FUNC_0(QEMUBH *VAR_0)\n{",
"QEMUBH **pbh;",
"if (VAR_0->scheduled) {",
"pbh = &first_bh;",
"while (*pbh != VAR_0)\npbh = &(*pbh)->next;",
"*pbh = VAR_0->next;",
"VAR_0->scheduled = 0;",
"}",
"}"
] | [
0,
1,
1,
1,
1,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
22,129 | static int parse_ffconfig(const char *filename)
{
FILE *f;
char line[1024];
char cmd[64];
char arg[1024];
const char *p;
int val, errors, line_num;
FFStream **last_stream, *stream, *redirect;
FFStream **last_feed, *feed, *s;
AVCodecContext audio_enc, video_enc;
enum AV... | true | FFmpeg | 7cbbc4f7e7ffdb874a25e269ac92f7bb161c5b83 | static int parse_ffconfig(const char *filename)
{
FILE *f;
char line[1024];
char cmd[64];
char arg[1024];
const char *p;
int val, errors, line_num;
FFStream **last_stream, *stream, *redirect;
FFStream **last_feed, *feed, *s;
AVCodecContext audio_enc, video_enc;
enum AV... | {
"code": [
" perror(filename);",
" return -1;",
" (my_http_addr.sin_addr.s_addr == INADDR_ANY) ? \"127.0.0.1\" :",
" inet_ntoa(my_http_addr.sin_addr),",
" ntohs(my_http_addr.sin_port), feed->filename);",
" ... | static int FUNC_0(const char *VAR_0)
{
FILE *f;
char VAR_1[1024];
char VAR_2[64];
char VAR_3[1024];
const char *VAR_4;
int VAR_5, VAR_6, VAR_7;
FFStream **last_stream, *stream, *redirect;
FFStream **last_feed, *feed, *s;
AVCodecContext audio_enc, video_enc;
enum AVCode... | [
"static int FUNC_0(const char *VAR_0)\n{",
"FILE *f;",
"char VAR_1[1024];",
"char VAR_2[64];",
"char VAR_3[1024];",
"const char *VAR_4;",
"int VAR_5, VAR_6, VAR_7;",
"FFStream **last_stream, *stream, *redirect;",
"FFStream **last_feed, *feed, *s;",
"AVCodecContext audio_enc, video_enc;",
"enum A... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
... |
22,130 | static void updateMMXDitherTables(SwsContext *c, int dstY, int lumBufIndex, int chrBufIndex,
int lastInLumBuf, int lastInChrBuf)
{
const int dstH= c->dstH;
const int flags= c->flags;
int16_t **lumPixBuf= c->lumPixBuf;
int16_t **chrUPixBuf= c->chrUPixBuf;
int1... | true | FFmpeg | 39d607e5bbc25ad9629683702b510e865434ef21 | static void updateMMXDitherTables(SwsContext *c, int dstY, int lumBufIndex, int chrBufIndex,
int lastInLumBuf, int lastInChrBuf)
{
const int dstH= c->dstH;
const int flags= c->flags;
int16_t **lumPixBuf= c->lumPixBuf;
int16_t **chrUPixBuf= c->chrUPixBuf;
int1... | {
"code": [
" int16_t **chrVPixBuf= c->chrVPixBuf;",
" const int16_t **chrVSrcPtr= (const int16_t **) chrVPixBuf + chrBufIndex + firstChrSrcY - lastInChrBuf + vChrBufSize;"
],
"line_no": [
15,
67
]
} | static void FUNC_0(SwsContext *VAR_0, int VAR_1, int VAR_2, int VAR_3,
int VAR_4, int VAR_5)
{
const int VAR_6= VAR_0->VAR_6;
const int VAR_7= VAR_0->VAR_7;
int16_t **lumPixBuf= VAR_0->lumPixBuf;
int16_t **chrUPixBuf= VAR_0->chrUPixBuf;
int16_t **chrVPixBuf= ... | [
"static void FUNC_0(SwsContext *VAR_0, int VAR_1, int VAR_2, int VAR_3,\nint VAR_4, int VAR_5)\n{",
"const int VAR_6= VAR_0->VAR_6;",
"const int VAR_7= VAR_0->VAR_7;",
"int16_t **lumPixBuf= VAR_0->lumPixBuf;",
"int16_t **chrUPixBuf= VAR_0->chrUPixBuf;",
"int16_t **chrVPixBuf= VAR_0->chrVPixBuf;",
"int16... | [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[... |
22,131 | static inline int decode_alpha_block(const SHQContext *s, GetBitContext *gb, uint8_t last_alpha[16], uint8_t *dest, int linesize)
{
uint8_t block[128];
int i = 0, x, y;
memset(block, 0, sizeof(block));
{
OPEN_READER(re, gb);
for ( ;; ) {
int run, level;
... | true | FFmpeg | 08b098169be079c4f124a351fda6764fbcd10e79 | static inline int decode_alpha_block(const SHQContext *s, GetBitContext *gb, uint8_t last_alpha[16], uint8_t *dest, int linesize)
{
uint8_t block[128];
int i = 0, x, y;
memset(block, 0, sizeof(block));
{
OPEN_READER(re, gb);
for ( ;; ) {
int run, level;
... | {
"code": [
" if (run == 128) break;"
],
"line_no": [
33
]
} | static inline int FUNC_0(const SHQContext *VAR_0, GetBitContext *VAR_1, uint8_t VAR_2[16], uint8_t *VAR_3, int VAR_4)
{
uint8_t block[128];
int VAR_5 = 0, VAR_6, VAR_7;
memset(block, 0, sizeof(block));
{
OPEN_READER(re, VAR_1);
for ( ;; ) {
int VAR_8, VAR_9;
... | [
"static inline int FUNC_0(const SHQContext *VAR_0, GetBitContext *VAR_1, uint8_t VAR_2[16], uint8_t *VAR_3, int VAR_4)\n{",
"uint8_t block[128];",
"int VAR_5 = 0, VAR_6, VAR_7;",
"memset(block, 0, sizeof(block));",
"{",
"OPEN_READER(re, VAR_1);",
"for ( ;; ) {",
"int VAR_8, VAR_9;",
"UPDATE_CACHE_LE... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37,
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
],
... |
22,133 | static int dvbsub_read_4bit_string(uint8_t *destbuf, int dbuf_len,
const uint8_t **srcbuf, int buf_size,
int non_mod, uint8_t *map_table)
{
GetBitContext gb;
int bits;
int run_length;
int pixels_read = 0;
init_get_bits... | false | FFmpeg | eea064aea610ea41b5bda0b62dac56be536af9aa | static int dvbsub_read_4bit_string(uint8_t *destbuf, int dbuf_len,
const uint8_t **srcbuf, int buf_size,
int non_mod, uint8_t *map_table)
{
GetBitContext gb;
int bits;
int run_length;
int pixels_read = 0;
init_get_bits... | {
"code": [],
"line_no": []
} | static int FUNC_0(uint8_t *VAR_0, int VAR_1,
const uint8_t **VAR_2, int VAR_3,
int VAR_4, uint8_t *VAR_5)
{
GetBitContext gb;
int VAR_6;
int VAR_7;
int VAR_8 = 0;
init_get_bits(&gb, *VAR_2, VAR_3 << 3);
while (g... | [
"static int FUNC_0(uint8_t *VAR_0, int VAR_1,\nconst uint8_t **VAR_2, int VAR_3,\nint VAR_4, uint8_t *VAR_5)\n{",
"GetBitContext gb;",
"int VAR_6;",
"int VAR_7;",
"int VAR_8 = 0;",
"init_get_bits(&gb, *VAR_2, VAR_3 << 3);",
"while (get_bits_count(&gb) < VAR_3 << 3 && VAR_8 < VAR_1) {",
"VAR_6 = get_bi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35,
37
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
... |
22,134 | static void copy_block(uint16_t *pdest, uint16_t *psrc, int block_size, int pitch)
{
int y;
for (y = 0; y != block_size; y++, pdest += pitch, psrc += pitch)
memcpy(pdest, psrc, block_size * sizeof(pdest[0]));
}
| false | FFmpeg | 3b9dd906d18f4cd801ceedd20d800a7e53074be9 | static void copy_block(uint16_t *pdest, uint16_t *psrc, int block_size, int pitch)
{
int y;
for (y = 0; y != block_size; y++, pdest += pitch, psrc += pitch)
memcpy(pdest, psrc, block_size * sizeof(pdest[0]));
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(uint16_t *VAR_0, uint16_t *VAR_1, int VAR_2, int VAR_3)
{
int VAR_4;
for (VAR_4 = 0; VAR_4 != VAR_2; VAR_4++, VAR_0 += VAR_3, VAR_1 += VAR_3)
memcpy(VAR_0, VAR_1, VAR_2 * sizeof(VAR_0[0]));
}
| [
"static void FUNC_0(uint16_t *VAR_0, uint16_t *VAR_1, int VAR_2, int VAR_3)\n{",
"int VAR_4;",
"for (VAR_4 = 0; VAR_4 != VAR_2; VAR_4++, VAR_0 += VAR_3, VAR_1 += VAR_3)",
"memcpy(VAR_0, VAR_1, VAR_2 * sizeof(VAR_0[0]));",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
]
] |
22,135 | static int ffm2_read_header(AVFormatContext *s)
{
FFMContext *ffm = s->priv_data;
AVStream *st;
AVIOContext *pb = s->pb;
AVCodecContext *codec, *dummy_codec = NULL;
AVCodecParameters *codecpar;
const AVCodecDescriptor *codec_desc;
int ret;
int f_main = 0, f_cprv = -1, f_stvi = -... | false | FFmpeg | e706e2e775730db5dfa9103628cd70704dd13cef | static int ffm2_read_header(AVFormatContext *s)
{
FFMContext *ffm = s->priv_data;
AVStream *st;
AVIOContext *pb = s->pb;
AVCodecContext *codec, *dummy_codec = NULL;
AVCodecParameters *codecpar;
const AVCodecDescriptor *codec_desc;
int ret;
int f_main = 0, f_cprv = -1, f_stvi = -... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0)
{
FFMContext *ffm = VAR_0->priv_data;
AVStream *st;
AVIOContext *pb = VAR_0->pb;
AVCodecContext *codec, *dummy_codec = NULL;
AVCodecParameters *codecpar;
const AVCodecDescriptor *VAR_1;
int VAR_2;
int VAR_3 = 0, VAR_4 = -1, VAR_5 = -1, V... | [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"FFMContext *ffm = VAR_0->priv_data;",
"AVStream *st;",
"AVIOContext *pb = VAR_0->pb;",
"AVCodecContext *codec, *dummy_codec = NULL;",
"AVCodecParameters *codecpar;",
"const AVCodecDescriptor *VAR_1;",
"int VAR_2;",
"int VAR_3 = 0, VAR_4 = -1, VAR_5 = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
47
],
[... |
22,136 | static double get_audio_clock(VideoState *is)
{
double pts;
int hw_buf_size, bytes_per_sec;
pts = is->audio_clock;
hw_buf_size = audio_write_get_buf_size(is);
bytes_per_sec = 0;
if (is->audio_st) {
bytes_per_sec = is->audio_st->codec->sample_rate *
2 * is... | false | FFmpeg | f1ffb01ee9fd3a15c395c3cf6ff362ac5cd668d0 | static double get_audio_clock(VideoState *is)
{
double pts;
int hw_buf_size, bytes_per_sec;
pts = is->audio_clock;
hw_buf_size = audio_write_get_buf_size(is);
bytes_per_sec = 0;
if (is->audio_st) {
bytes_per_sec = is->audio_st->codec->sample_rate *
2 * is... | {
"code": [],
"line_no": []
} | static double FUNC_0(VideoState *VAR_0)
{
double VAR_1;
int VAR_2, VAR_3;
VAR_1 = VAR_0->audio_clock;
VAR_2 = audio_write_get_buf_size(VAR_0);
VAR_3 = 0;
if (VAR_0->audio_st) {
VAR_3 = VAR_0->audio_st->codec->sample_rate *
2 * VAR_0->audio_st->codec->chan... | [
"static double FUNC_0(VideoState *VAR_0)\n{",
"double VAR_1;",
"int VAR_2, VAR_3;",
"VAR_1 = VAR_0->audio_clock;",
"VAR_2 = audio_write_get_buf_size(VAR_0);",
"VAR_3 = 0;",
"if (VAR_0->audio_st) {",
"VAR_3 = VAR_0->audio_st->codec->sample_rate *\n2 * VAR_0->audio_st->codec->channels;",
"}",
"if (V... | [
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
]
] |
22,138 | uint8_t *ff_stream_new_side_data(AVStream *st, enum AVPacketSideDataType type,
int size)
{
AVPacketSideData *sd, *tmp;
int i;
uint8_t *data = av_malloc(size);
if (!data)
return NULL;
for (i = 0; i < st->nb_side_data; i++) {
sd = &st->side... | false | FFmpeg | 7f4ec4364bc4a73036660c1c6a3c4801db524e9e | uint8_t *ff_stream_new_side_data(AVStream *st, enum AVPacketSideDataType type,
int size)
{
AVPacketSideData *sd, *tmp;
int i;
uint8_t *data = av_malloc(size);
if (!data)
return NULL;
for (i = 0; i < st->nb_side_data; i++) {
sd = &st->side... | {
"code": [],
"line_no": []
} | uint8_t *FUNC_0(AVStream *st, enum AVPacketSideDataType type,
int size)
{
AVPacketSideData *sd, *tmp;
int VAR_0;
uint8_t *data = av_malloc(size);
if (!data)
return NULL;
for (VAR_0 = 0; VAR_0 < st->nb_side_data; VAR_0++) {
sd = &st->side_... | [
"uint8_t *FUNC_0(AVStream *st, enum AVPacketSideDataType type,\nint size)\n{",
"AVPacketSideData *sd, *tmp;",
"int VAR_0;",
"uint8_t *data = av_malloc(size);",
"if (!data)\nreturn NULL;",
"for (VAR_0 = 0; VAR_0 < st->nb_side_data; VAR_0++) {",
"sd = &st->side_data[VAR_0];",
"if (sd->type == 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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15,
17
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
22,139 | static void tcg_out_movcond32(TCGContext *s, TCGCond cond, TCGArg dest,
TCGArg c1, TCGArg c2, int const_c2,
TCGArg v1)
{
tcg_out_cmp(s, c1, c2, const_c2, 0);
if (have_cmov) {
tcg_out_modrm(s, OPC_CMOVCC | tcg_cond_to_jcc[cond], dest, v1);... | false | qemu | 42a268c241183877192c376d03bd9b6d527407c7 | static void tcg_out_movcond32(TCGContext *s, TCGCond cond, TCGArg dest,
TCGArg c1, TCGArg c2, int const_c2,
TCGArg v1)
{
tcg_out_cmp(s, c1, c2, const_c2, 0);
if (have_cmov) {
tcg_out_modrm(s, OPC_CMOVCC | tcg_cond_to_jcc[cond], dest, v1);... | {
"code": [],
"line_no": []
} | static void FUNC_0(TCGContext *VAR_0, TCGCond VAR_1, TCGArg VAR_2,
TCGArg VAR_3, TCGArg VAR_4, int VAR_5,
TCGArg VAR_6)
{
tcg_out_cmp(VAR_0, VAR_3, VAR_4, VAR_5, 0);
if (have_cmov) {
tcg_out_modrm(VAR_0, OPC_CMOVCC | tcg_cond_to_jcc[VAR_1... | [
"static void FUNC_0(TCGContext *VAR_0, TCGCond VAR_1, TCGArg VAR_2,\nTCGArg VAR_3, TCGArg VAR_4, int VAR_5,\nTCGArg VAR_6)\n{",
"tcg_out_cmp(VAR_0, VAR_3, VAR_4, VAR_5, 0);",
"if (have_cmov) {",
"tcg_out_modrm(VAR_0, OPC_CMOVCC | tcg_cond_to_jcc[VAR_1], VAR_2, VAR_6);",
"} else {",
"int VAR_7 = gen_new_la... | [
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
]
] |
22,141 | qcrypto_block_luks_open(QCryptoBlock *block,
QCryptoBlockOpenOptions *options,
const char *optprefix,
QCryptoBlockReadFunc readfunc,
void *opaque,
unsigned int flags,
Err... | false | qemu | 850f49de9b57511dcaf2cd7e45059f8f38fadf3b | qcrypto_block_luks_open(QCryptoBlock *block,
QCryptoBlockOpenOptions *options,
const char *optprefix,
QCryptoBlockReadFunc readfunc,
void *opaque,
unsigned int flags,
Err... | {
"code": [],
"line_no": []
} | FUNC_0(QCryptoBlock *VAR_0,
QCryptoBlockOpenOptions *VAR_1,
const char *VAR_2,
QCryptoBlockReadFunc VAR_3,
void *VAR_4,
unsigned int VAR_5,
Error **VAR_6)
{
QCrypto... | [
"FUNC_0(QCryptoBlock *VAR_0,\nQCryptoBlockOpenOptions *VAR_1,\nconst char *VAR_2,\nQCryptoBlockReadFunc VAR_3,\nvoid *VAR_4,\nunsigned int VAR_5,\nError **VAR_6)\n{",
"QCryptoBlockLUKS *luks;",
"Error *local_err = NULL;",
"int VAR_7 = 0;",
"size_t i;",
"ssize_t rv;",
"uint8_t *masterkey = NULL;",
"siz... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11,
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
... |
22,144 | static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, bool is64)
{
TCGReg datalo, datahi, addrlo;
TCGReg addrhi __attribute__((unused));
TCGMemOpIdx oi;
TCGMemOp opc;
#if defined(CONFIG_SOFTMMU)
int mem_index;
TCGMemOp s_bits;
tcg_insn_unit *label_ptr[2];
#endif
dat... | false | qemu | 8cc580f6a0d8c0e2f590c1472cf5cd8e51761760 | static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, bool is64)
{
TCGReg datalo, datahi, addrlo;
TCGReg addrhi __attribute__((unused));
TCGMemOpIdx oi;
TCGMemOp opc;
#if defined(CONFIG_SOFTMMU)
int mem_index;
TCGMemOp s_bits;
tcg_insn_unit *label_ptr[2];
#endif
dat... | {
"code": [],
"line_no": []
} | static void FUNC_0(TCGContext *VAR_0, const TCGArg *VAR_1, bool VAR_2)
{
TCGReg datalo, datahi, addrlo;
TCGReg addrhi __attribute__((unused));
TCGMemOpIdx oi;
TCGMemOp opc;
#if defined(CONFIG_SOFTMMU)
int mem_index;
TCGMemOp s_bits;
tcg_insn_unit *label_ptr[2];
#endif
datalo... | [
"static void FUNC_0(TCGContext *VAR_0, const TCGArg *VAR_1, bool VAR_2)\n{",
"TCGReg datalo, datahi, addrlo;",
"TCGReg addrhi __attribute__((unused));",
"TCGMemOpIdx oi;",
"TCGMemOp opc;",
"#if defined(CONFIG_SOFTMMU)\nint mem_index;",
"TCGMemOp s_bits;",
"tcg_insn_unit *label_ptr[2];",
"#endif\ndat... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39,
41
],
[
43
],
[
47,
49
],
[
55
... |
22,145 | void memory_region_init_io(MemoryRegion *mr,
const MemoryRegionOps *ops,
void *opaque,
const char *name,
uint64_t size)
{
memory_region_init(mr, name, size);
mr->ops = ops;
mr->opaque = opaque... | false | qemu | 26a83ad0e793465b74a8b06a65f2f6fdc5615413 | void memory_region_init_io(MemoryRegion *mr,
const MemoryRegionOps *ops,
void *opaque,
const char *name,
uint64_t size)
{
memory_region_init(mr, name, size);
mr->ops = ops;
mr->opaque = opaque... | {
"code": [],
"line_no": []
} | void FUNC_0(MemoryRegion *VAR_0,
const MemoryRegionOps *VAR_1,
void *VAR_2,
const char *VAR_3,
uint64_t VAR_4)
{
memory_region_init(VAR_0, VAR_3, VAR_4);
VAR_0->VAR_1 = VAR_1;
VAR_0->VAR_2 = V... | [
"void FUNC_0(MemoryRegion *VAR_0,\nconst MemoryRegionOps *VAR_1,\nvoid *VAR_2,\nconst char *VAR_3,\nuint64_t VAR_4)\n{",
"memory_region_init(VAR_0, VAR_3, VAR_4);",
"VAR_0->VAR_1 = VAR_1;",
"VAR_0->VAR_2 = VAR_2;",
"VAR_0->terminates = true;",
"VAR_0->backend_registered = false;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
22,146 | static uint32_t bonito_spciconf_readw(void *opaque, target_phys_addr_t addr)
{
PCIBonitoState *s = opaque;
uint32_t pciaddr;
uint16_t status;
DPRINTF("bonito_spciconf_readw "TARGET_FMT_plx" \n", addr);
assert((addr&0x1)==0);
pciaddr = bonito_sbridge_pciaddr(s, addr);
if (pciad... | false | qemu | b2bedb214469af55179d907a60cd67fed6b0779e | static uint32_t bonito_spciconf_readw(void *opaque, target_phys_addr_t addr)
{
PCIBonitoState *s = opaque;
uint32_t pciaddr;
uint16_t status;
DPRINTF("bonito_spciconf_readw "TARGET_FMT_plx" \n", addr);
assert((addr&0x1)==0);
pciaddr = bonito_sbridge_pciaddr(s, addr);
if (pciad... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)
{
PCIBonitoState *s = opaque;
uint32_t pciaddr;
uint16_t status;
DPRINTF("FUNC_0 "TARGET_FMT_plx" \n", addr);
assert((addr&0x1)==0);
pciaddr = bonito_sbridge_pciaddr(s, addr);
if (pciaddr == 0xffffffff) {
r... | [
"static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{",
"PCIBonitoState *s = opaque;",
"uint32_t pciaddr;",
"uint16_t status;",
"DPRINTF(\"FUNC_0 \"TARGET_FMT_plx\" \\n\", addr);",
"assert((addr&0x1)==0);",
"pciaddr = bonito_sbridge_pciaddr(s, addr);",
"if (pciaddr == 0xffffffff) {",
"r... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
],
[
33
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
]
] |
22,147 | static uint64_t uart_read(void *opaque, target_phys_addr_t offset,
unsigned size)
{
UartState *s = (UartState *)opaque;
uint32_t c = 0;
offset >>= 2;
if (offset >= R_MAX) {
return 0;
} else if (offset == R_TX_RX) {
uart_read_rx_fifo(s, &c);
return c;
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static uint64_t uart_read(void *opaque, target_phys_addr_t offset,
unsigned size)
{
UartState *s = (UartState *)opaque;
uint32_t c = 0;
offset >>= 2;
if (offset >= R_MAX) {
return 0;
} else if (offset == R_TX_RX) {
uart_read_rx_fifo(s, &c);
return c;
... | {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset,
unsigned size)
{
UartState *s = (UartState *)opaque;
uint32_t c = 0;
offset >>= 2;
if (offset >= R_MAX) {
return 0;
} else if (offset == R_TX_RX) {
uart_read_rx_fifo(s, &c);
return c;
}
... | [
"static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset,\nunsigned size)\n{",
"UartState *s = (UartState *)opaque;",
"uint32_t c = 0;",
"offset >>= 2;",
"if (offset >= R_MAX) {",
"return 0;",
"} else if (offset == R_TX_RX) {",
"uart_read_rx_fifo(s, &c);",
"return c;",
"}",
"return s->r[o... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
22,148 | static int adts_write_packet(AVFormatContext *s, AVPacket *pkt)
{
ADTSContext *adts = s->priv_data;
AVIOContext *pb = s->pb;
uint8_t buf[ADTS_HEADER_SIZE];
if (!pkt->size)
return 0;
if (adts->write_adts) {
ff_adts_write_frame_header(adts, buf, pkt->size, adts->pce_size);
... | false | FFmpeg | ac47e014bbaf5163871a8beb7522015e0bc27615 | static int adts_write_packet(AVFormatContext *s, AVPacket *pkt)
{
ADTSContext *adts = s->priv_data;
AVIOContext *pb = s->pb;
uint8_t buf[ADTS_HEADER_SIZE];
if (!pkt->size)
return 0;
if (adts->write_adts) {
ff_adts_write_frame_header(adts, buf, pkt->size, adts->pce_size);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
ADTSContext *adts = VAR_0->priv_data;
AVIOContext *pb = VAR_0->pb;
uint8_t buf[ADTS_HEADER_SIZE];
if (!VAR_1->size)
return 0;
if (adts->write_adts) {
ff_adts_write_frame_header(adts, buf, VAR_1->size, adts->pce_si... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"ADTSContext *adts = VAR_0->priv_data;",
"AVIOContext *pb = VAR_0->pb;",
"uint8_t buf[ADTS_HEADER_SIZE];",
"if (!VAR_1->size)\nreturn 0;",
"if (adts->write_adts) {",
"ff_adts_write_frame_header(adts, buf, VAR_1->size, adts->pce_size);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
]
] |
22,149 | static int check_opts(QemuOptsList *opts_list, QDict *args)
{
assert(!opts_list->desc->name);
return 0;
}
| false | qemu | f6b4fc8b23b1154577c72937b70e565716bb0a60 | static int check_opts(QemuOptsList *opts_list, QDict *args)
{
assert(!opts_list->desc->name);
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(QemuOptsList *VAR_0, QDict *VAR_1)
{
assert(!VAR_0->desc->name);
return 0;
}
| [
"static int FUNC_0(QemuOptsList *VAR_0, QDict *VAR_1)\n{",
"assert(!VAR_0->desc->name);",
"return 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
22,150 | static int qdev_add_one_global(QemuOpts *opts, void *opaque)
{
GlobalProperty *g;
ObjectClass *oc;
g = g_malloc0(sizeof(*g));
g->driver = qemu_opt_get(opts, "driver");
g->property = qemu_opt_get(opts, "property");
g->value = qemu_opt_get(opts, "value");
oc = object_class_dynam... | false | qemu | b3ce84fea466f3bca2ff85d158744f00c0f429bd | static int qdev_add_one_global(QemuOpts *opts, void *opaque)
{
GlobalProperty *g;
ObjectClass *oc;
g = g_malloc0(sizeof(*g));
g->driver = qemu_opt_get(opts, "driver");
g->property = qemu_opt_get(opts, "property");
g->value = qemu_opt_get(opts, "value");
oc = object_class_dynam... | {
"code": [],
"line_no": []
} | static int FUNC_0(QemuOpts *VAR_0, void *VAR_1)
{
GlobalProperty *g;
ObjectClass *oc;
g = g_malloc0(sizeof(*g));
g->driver = qemu_opt_get(VAR_0, "driver");
g->property = qemu_opt_get(VAR_0, "property");
g->value = qemu_opt_get(VAR_0, "value");
oc = object_class_dynamic_cast(ob... | [
"static int FUNC_0(QemuOpts *VAR_0, void *VAR_1)\n{",
"GlobalProperty *g;",
"ObjectClass *oc;",
"g = g_malloc0(sizeof(*g));",
"g->driver = qemu_opt_get(VAR_0, \"driver\");",
"g->property = qemu_opt_get(VAR_0, \"property\");",
"g->value = qemu_opt_get(VAR_0, \"value\");",
"oc = object_class_dynami... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
... |
22,152 | static QObject *parse_array(JSONParserContext *ctxt, QList **tokens, va_list *ap)
{
QList *list = NULL;
QObject *token, *peek;
QList *working = qlist_copy(*tokens);
token = qlist_pop(working);
if (token == NULL) {
goto out;
}
if (!token_is_operator(token, '[')) {
... | false | qemu | 65c0f1e9558c7c762cdb333406243fff1d687117 | static QObject *parse_array(JSONParserContext *ctxt, QList **tokens, va_list *ap)
{
QList *list = NULL;
QObject *token, *peek;
QList *working = qlist_copy(*tokens);
token = qlist_pop(working);
if (token == NULL) {
goto out;
}
if (!token_is_operator(token, '[')) {
... | {
"code": [],
"line_no": []
} | static QObject *FUNC_0(JSONParserContext *ctxt, QList **tokens, va_list *ap)
{
QList *list = NULL;
QObject *token, *peek;
QList *working = qlist_copy(*tokens);
token = qlist_pop(working);
if (token == NULL) {
goto out;
}
if (!token_is_operator(token, '[')) {
got... | [
"static QObject *FUNC_0(JSONParserContext *ctxt, QList **tokens, va_list *ap)\n{",
"QList *list = NULL;",
"QObject *token, *peek;",
"QList *working = qlist_copy(*tokens);",
"token = qlist_pop(working);",
"if (token == NULL) {",
"goto out;",
"}",
"if (!token_is_operator(token, '[')) {",
"goto out;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
... |
22,153 | static int scsi_disk_emulate_command(SCSIDiskReq *r)
{
SCSIRequest *req = &r->req;
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);
uint64_t nb_sectors;
uint8_t *outbuf;
int buflen = 0;
if (!r->iov.iov_base) {
/*
* FIXME: we shouldn't return anything bigge... | false | qemu | b08d0ea0446aa91f373c9df4254ba3bc4ee84098 | static int scsi_disk_emulate_command(SCSIDiskReq *r)
{
SCSIRequest *req = &r->req;
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);
uint64_t nb_sectors;
uint8_t *outbuf;
int buflen = 0;
if (!r->iov.iov_base) {
if (req->cmd.xfer > 65536) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(SCSIDiskReq *VAR_0)
{
SCSIRequest *req = &VAR_0->req;
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);
uint64_t nb_sectors;
uint8_t *outbuf;
int VAR_1 = 0;
if (!VAR_0->iov.iov_base) {
if (req->cmd.xfer > 65536) {
... | [
"static int FUNC_0(SCSIDiskReq *VAR_0)\n{",
"SCSIRequest *req = &VAR_0->req;",
"SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);",
"uint64_t nb_sectors;",
"uint8_t *outbuf;",
"int VAR_1 = 0;",
"if (!VAR_0->iov.iov_base) {",
"if (req->cmd.xfer > 65536) {",
"goto illegal_request;",
"}",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53,
55
],
[
57
],
[
59,
61
],
[
63
... |
22,154 | void qbus_create_inplace(BusState *bus, BusInfo *info,
DeviceState *parent, const char *name)
{
char *buf;
int i,len;
bus->info = info;
bus->parent = parent;
if (name) {
/* use supplied name */
bus->name = qemu_strdup(name);
} else if (paren... | false | qemu | 80376c3fc2c38fdd45354e4b0eb45031f35587ed | void qbus_create_inplace(BusState *bus, BusInfo *info,
DeviceState *parent, const char *name)
{
char *buf;
int i,len;
bus->info = info;
bus->parent = parent;
if (name) {
bus->name = qemu_strdup(name);
} else if (parent && parent->id) {
... | {
"code": [],
"line_no": []
} | void FUNC_0(BusState *VAR_0, BusInfo *VAR_1,
DeviceState *VAR_2, const char *VAR_3)
{
char *VAR_4;
int VAR_5,VAR_6;
VAR_0->VAR_1 = VAR_1;
VAR_0->VAR_2 = VAR_2;
if (VAR_3) {
VAR_0->VAR_3 = qemu_strdup(VAR_3);
} else if (VAR_2 && VAR_2->id) {... | [
"void FUNC_0(BusState *VAR_0, BusInfo *VAR_1,\nDeviceState *VAR_2, const char *VAR_3)\n{",
"char *VAR_4;",
"int VAR_5,VAR_6;",
"VAR_0->VAR_1 = VAR_1;",
"VAR_0->VAR_2 = VAR_2;",
"if (VAR_3) {",
"VAR_0->VAR_3 = qemu_strdup(VAR_3);",
"} else if (VAR_2 && VAR_2->id) {",
"VAR_6 = strlen(VAR_2->id) + 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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45,
47
],
[
49
],
[
51
],
[
53
... |
22,156 | int qcow2_cache_put(BlockDriverState *bs, Qcow2Cache *c, void **table)
{
int i = qcow2_cache_get_table_idx(bs, c, *table);
if (c->entries[i].offset == 0) {
return -ENOENT;
}
c->entries[i].ref--;
*table = NULL;
if (c->entries[i].ref == 0) {
c->entries[i].lru_counter... | false | qemu | a3f1afb43a09e4577571c044c48f2ba9e6e4ad06 | int qcow2_cache_put(BlockDriverState *bs, Qcow2Cache *c, void **table)
{
int i = qcow2_cache_get_table_idx(bs, c, *table);
if (c->entries[i].offset == 0) {
return -ENOENT;
}
c->entries[i].ref--;
*table = NULL;
if (c->entries[i].ref == 0) {
c->entries[i].lru_counter... | {
"code": [],
"line_no": []
} | int FUNC_0(BlockDriverState *VAR_0, Qcow2Cache *VAR_1, void **VAR_2)
{
int VAR_3 = qcow2_cache_get_table_idx(VAR_0, VAR_1, *VAR_2);
if (VAR_1->entries[VAR_3].offset == 0) {
return -ENOENT;
}
VAR_1->entries[VAR_3].ref--;
*VAR_2 = NULL;
if (VAR_1->entries[VAR_3].ref == 0) {
... | [
"int FUNC_0(BlockDriverState *VAR_0, Qcow2Cache *VAR_1, void **VAR_2)\n{",
"int VAR_3 = qcow2_cache_get_table_idx(VAR_0, VAR_1, *VAR_2);",
"if (VAR_1->entries[VAR_3].offset == 0) {",
"return -ENOENT;",
"}",
"VAR_1->entries[VAR_3].ref--;",
"*VAR_2 = NULL;",
"if (VAR_1->entries[VAR_3].ref == 0) {",
"V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
]
] |
22,157 | void gen_intermediate_code_internal(LM32CPU *cpu,
TranslationBlock *tb, bool search_pc)
{
CPUState *cs = CPU(cpu);
CPULM32State *env = &cpu->env;
struct DisasContext ctx, *dc = &ctx;
uint16_t *gen_opc_end;
uint32_t pc_start;
int j, lj;
uint32_t ne... | false | qemu | cd42d5b23691ad73edfd6dbcfc935a960a9c5a65 | void gen_intermediate_code_internal(LM32CPU *cpu,
TranslationBlock *tb, bool search_pc)
{
CPUState *cs = CPU(cpu);
CPULM32State *env = &cpu->env;
struct DisasContext ctx, *dc = &ctx;
uint16_t *gen_opc_end;
uint32_t pc_start;
int j, lj;
uint32_t ne... | {
"code": [],
"line_no": []
} | void FUNC_0(LM32CPU *VAR_0,
TranslationBlock *VAR_1, bool VAR_2)
{
CPUState *cs = CPU(VAR_0);
CPULM32State *env = &VAR_0->env;
struct DisasContext VAR_3, *VAR_4 = &VAR_3;
uint16_t *gen_opc_end;
uint32_t pc_start;
int VAR_5, VAR_6;
uint32_t next_pa... | [
"void FUNC_0(LM32CPU *VAR_0,\nTranslationBlock *VAR_1, bool VAR_2)\n{",
"CPUState *cs = CPU(VAR_0);",
"CPULM32State *env = &VAR_0->env;",
"struct DisasContext VAR_3, *VAR_4 = &VAR_3;",
"uint16_t *gen_opc_end;",
"uint32_t pc_start;",
"int VAR_5, VAR_6;",
"uint32_t next_page_start;",
"int VAR_7;",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
43
],
[
45
],
[
47
],
[... |
22,158 | void helper_lsl(void)
{
unsigned int selector, limit;
uint32_t e1, e2;
CC_SRC = cc_table[CC_OP].compute_all() & ~CC_Z;
selector = T0 & 0xffff;
if (load_segment(&e1, &e2, selector) != 0)
return;
limit = (e1 & 0xffff) | (e2 & 0x000f0000);
if (e2 & (1 << 23))
limit =... | false | qemu | 3ab493de4c524926bb75b04765b644f9189ccf01 | void helper_lsl(void)
{
unsigned int selector, limit;
uint32_t e1, e2;
CC_SRC = cc_table[CC_OP].compute_all() & ~CC_Z;
selector = T0 & 0xffff;
if (load_segment(&e1, &e2, selector) != 0)
return;
limit = (e1 & 0xffff) | (e2 & 0x000f0000);
if (e2 & (1 << 23))
limit =... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
unsigned int VAR_0, VAR_1;
uint32_t e1, e2;
CC_SRC = cc_table[CC_OP].compute_all() & ~CC_Z;
VAR_0 = T0 & 0xffff;
if (load_segment(&e1, &e2, VAR_0) != 0)
return;
VAR_1 = (e1 & 0xffff) | (e2 & 0x000f0000);
if (e2 & (1 << 23))
VAR_1 = (VAR_1 << 12... | [
"void FUNC_0(void)\n{",
"unsigned int VAR_0, VAR_1;",
"uint32_t e1, e2;",
"CC_SRC = cc_table[CC_OP].compute_all() & ~CC_Z;",
"VAR_0 = T0 & 0xffff;",
"if (load_segment(&e1, &e2, VAR_0) != 0)\nreturn;",
"VAR_1 = (e1 & 0xffff) | (e2 & 0x000f0000);",
"if (e2 & (1 << 23))\nVAR_1 = (VAR_1 << 12) | 0xfff;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
]
] |
22,159 | static int parse_optional_info(DCACoreDecoder *s)
{
DCAContext *dca = s->avctx->priv_data;
int ret = -1;
// Time code stamp
if (s->ts_present)
skip_bits_long(&s->gb, 32);
// Auxiliary data
if (s->aux_present && (ret = parse_aux_data(s)) < 0
&& (s->avctx->err_recognit... | false | FFmpeg | ce2f9fdb0a92956aedfa2c564d1374a2f1eebfbd | static int parse_optional_info(DCACoreDecoder *s)
{
DCAContext *dca = s->avctx->priv_data;
int ret = -1;
if (s->ts_present)
skip_bits_long(&s->gb, 32);
if (s->aux_present && (ret = parse_aux_data(s)) < 0
&& (s->avctx->err_recognition & AV_EF_EXPLODE))
retu... | {
"code": [],
"line_no": []
} | static int FUNC_0(DCACoreDecoder *VAR_0)
{
DCAContext *dca = VAR_0->avctx->priv_data;
int VAR_1 = -1;
if (VAR_0->ts_present)
skip_bits_long(&VAR_0->gb, 32);
if (VAR_0->aux_present && (VAR_1 = parse_aux_data(VAR_0)) < 0
&& (VAR_0->avctx->err_recognition & AV_EF_EXPL... | [
"static int FUNC_0(DCACoreDecoder *VAR_0)\n{",
"DCAContext *dca = VAR_0->avctx->priv_data;",
"int VAR_1 = -1;",
"if (VAR_0->ts_present)\nskip_bits_long(&VAR_0->gb, 32);",
"if (VAR_0->aux_present && (VAR_1 = parse_aux_data(VAR_0)) < 0\n&& (VAR_0->avctx->err_recognition & AV_EF_EXPLODE))\nreturn VAR_1;",
"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,
0,
0,
0,
0,
0,
0,
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
],
[
21,
23,
25
],
[
29,
31
],
[
37
],
[
39
],
[
41
],
[
43
],
[
53
],
[
55,
57,
59
],
[
73
],
[
75
],
[
77
],
[
79
],
[
81... |
22,160 | static void apic_reset_common(DeviceState *d)
{
APICCommonState *s = DO_UPCAST(APICCommonState, busdev.qdev, d);
APICCommonClass *info = APIC_COMMON_GET_CLASS(s);
bool bsp;
bsp = cpu_is_bsp(s->cpu_env);
s->apicbase = 0xfee00000 |
(bsp ? MSR_IA32_APICBASE_BSP : 0) | MSR_IA32_APICBASE... | false | qemu | dd673288a8ff73ad77fcc1c255486d2466a772e1 | static void apic_reset_common(DeviceState *d)
{
APICCommonState *s = DO_UPCAST(APICCommonState, busdev.qdev, d);
APICCommonClass *info = APIC_COMMON_GET_CLASS(s);
bool bsp;
bsp = cpu_is_bsp(s->cpu_env);
s->apicbase = 0xfee00000 |
(bsp ? MSR_IA32_APICBASE_BSP : 0) | MSR_IA32_APICBASE... | {
"code": [],
"line_no": []
} | static void FUNC_0(DeviceState *VAR_0)
{
APICCommonState *s = DO_UPCAST(APICCommonState, busdev.qdev, VAR_0);
APICCommonClass *info = APIC_COMMON_GET_CLASS(s);
bool bsp;
bsp = cpu_is_bsp(s->cpu_env);
s->apicbase = 0xfee00000 |
(bsp ? MSR_IA32_APICBASE_BSP : 0) | MSR_IA32_APICBASE_EN... | [
"static void FUNC_0(DeviceState *VAR_0)\n{",
"APICCommonState *s = DO_UPCAST(APICCommonState, busdev.qdev, VAR_0);",
"APICCommonClass *info = APIC_COMMON_GET_CLASS(s);",
"bool bsp;",
"bsp = cpu_is_bsp(s->cpu_env);",
"s->apicbase = 0xfee00000 |\n(bsp ? MSR_IA32_APICBASE_BSP : 0) | MSR_IA32_APICBASE_ENABLE;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
21
],
[
23
],
[
27
],
[
31
],
[
43
],
[
45
],
[
47
]
] |
22,161 | uint32_t HELPER(neon_max_f32)(uint32_t a, uint32_t b)
{
float32 f0 = make_float32(a);
float32 f1 = make_float32(b);
return (float32_compare_quiet(f0, f1, NFS) == 1) ? a : b;
}
| false | qemu | 4a9f9cb24de52e93aae7539a004dd20314ca1c0c | uint32_t HELPER(neon_max_f32)(uint32_t a, uint32_t b)
{
float32 f0 = make_float32(a);
float32 f1 = make_float32(b);
return (float32_compare_quiet(f0, f1, NFS) == 1) ? a : b;
}
| {
"code": [],
"line_no": []
} | uint32_t FUNC_0(neon_max_f32)(uint32_t a, uint32_t b)
{
float32 f0 = make_float32(a);
float32 f1 = make_float32(b);
return (float32_compare_quiet(f0, f1, NFS) == 1) ? a : b;
}
| [
"uint32_t FUNC_0(neon_max_f32)(uint32_t a, uint32_t b)\n{",
"float32 f0 = make_float32(a);",
"float32 f1 = make_float32(b);",
"return (float32_compare_quiet(f0, f1, NFS) == 1) ? a : b;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
22,162 | static void virtqueue_map_desc(unsigned int *p_num_sg, hwaddr *addr, struct iovec *iov,
unsigned int max_num_sg, bool is_write,
hwaddr pa, size_t sz)
{
unsigned num_sg = *p_num_sg;
assert(num_sg <= max_num_sg);
if (!sz) {
error_report("vi... | true | qemu | 973e7170dddefb491a48df5cba33b2ae151013a0 | static void virtqueue_map_desc(unsigned int *p_num_sg, hwaddr *addr, struct iovec *iov,
unsigned int max_num_sg, bool is_write,
hwaddr pa, size_t sz)
{
unsigned num_sg = *p_num_sg;
assert(num_sg <= max_num_sg);
if (!sz) {
error_report("vi... | {
"code": [],
"line_no": []
} | static void FUNC_0(unsigned int *VAR_0, hwaddr *VAR_1, struct iovec *VAR_2,
unsigned int VAR_3, bool VAR_4,
hwaddr VAR_5, size_t VAR_6)
{
unsigned VAR_7 = *VAR_0;
assert(VAR_7 <= VAR_3);
if (!VAR_6) {
error_report("virtio: zero sized buff... | [
"static void FUNC_0(unsigned int *VAR_0, hwaddr *VAR_1, struct iovec *VAR_2,\nunsigned int VAR_3, bool VAR_4,\nhwaddr VAR_5, size_t VAR_6)\n{",
"unsigned VAR_7 = *VAR_0;",
"assert(VAR_7 <= VAR_3);",
"if (!VAR_6) {",
"error_report(\"virtio: zero sized buffers are not allowed\");",
"while (VAR_6) {",
"hwa... | [
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
]
] |
22,163 | void tcp_start_outgoing_migration(MigrationState *s, const char *host_port, Error **errp)
{
inet_nonblocking_connect(host_port, tcp_wait_for_connect, s, errp);
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | void tcp_start_outgoing_migration(MigrationState *s, const char *host_port, Error **errp)
{
inet_nonblocking_connect(host_port, tcp_wait_for_connect, s, errp);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(MigrationState *VAR_0, const char *VAR_1, Error **VAR_2)
{
inet_nonblocking_connect(VAR_1, tcp_wait_for_connect, VAR_0, VAR_2);
}
| [
"void FUNC_0(MigrationState *VAR_0, const char *VAR_1, Error **VAR_2)\n{",
"inet_nonblocking_connect(VAR_1, tcp_wait_for_connect, VAR_0, VAR_2);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
22,164 | static void generate_silence(uint8_t* buf, enum AVSampleFormat sample_fmt, size_t size)
{
int fill_char = 0x00;
if (sample_fmt == AV_SAMPLE_FMT_U8)
fill_char = 0x80;
memset(buf, fill_char, size);
}
| true | FFmpeg | 369cb092ecbbaff20bb0a2a1d60536c3bc04a8f0 | static void generate_silence(uint8_t* buf, enum AVSampleFormat sample_fmt, size_t size)
{
int fill_char = 0x00;
if (sample_fmt == AV_SAMPLE_FMT_U8)
fill_char = 0x80;
memset(buf, fill_char, size);
}
| {
"code": [
"static void generate_silence(uint8_t* buf, enum AVSampleFormat sample_fmt, size_t size)",
" int fill_char = 0x00;",
" if (sample_fmt == AV_SAMPLE_FMT_U8)",
" fill_char = 0x80;",
" memset(buf, fill_char, size);"
],
"line_no": [
1,
5,
7,
9,
11
]... | static void FUNC_0(uint8_t* VAR_0, enum AVSampleFormat VAR_1, size_t VAR_2)
{
int VAR_3 = 0x00;
if (VAR_1 == AV_SAMPLE_FMT_U8)
VAR_3 = 0x80;
memset(VAR_0, VAR_3, VAR_2);
}
| [
"static void FUNC_0(uint8_t* VAR_0, enum AVSampleFormat VAR_1, size_t VAR_2)\n{",
"int VAR_3 = 0x00;",
"if (VAR_1 == AV_SAMPLE_FMT_U8)\nVAR_3 = 0x80;",
"memset(VAR_0, VAR_3, VAR_2);",
"}"
] | [
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13
]
] |
22,165 | static void gen_check_sr(DisasContext *dc, uint32_t sr)
{
if (!xtensa_option_bits_enabled(dc->config, sregnames[sr].opt_bits)) {
if (sregnames[sr].name) {
qemu_log("SR %s is not configured\n", sregnames[sr].name);
} else {
qemu_log("SR %d is not implemented\n", sr);
... | true | qemu | 53593e90d13264dc88b3281ddf75ceaa641df05a | static void gen_check_sr(DisasContext *dc, uint32_t sr)
{
if (!xtensa_option_bits_enabled(dc->config, sregnames[sr].opt_bits)) {
if (sregnames[sr].name) {
qemu_log("SR %s is not configured\n", sregnames[sr].name);
} else {
qemu_log("SR %d is not implemented\n", sr);
... | {
"code": [
"static void gen_check_sr(DisasContext *dc, uint32_t sr)"
],
"line_no": [
1
]
} | static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)
{
if (!xtensa_option_bits_enabled(VAR_0->config, sregnames[VAR_1].opt_bits)) {
if (sregnames[VAR_1].name) {
qemu_log("SR %s is not configured\n", sregnames[VAR_1].name);
} else {
qemu_log("SR %d is not implemented\... | [
"static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)\n{",
"if (!xtensa_option_bits_enabled(VAR_0->config, sregnames[VAR_1].opt_bits)) {",
"if (sregnames[VAR_1].name) {",
"qemu_log(\"SR %s is not configured\\n\", sregnames[VAR_1].name);",
"} else {",
"qemu_log(\"SR %d is not implemented\\n\", VAR_1);",... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
22,166 | static int bt_hid_out(struct bt_hid_device_s *s)
{
USBPacket p;
if (s->data_type == BT_DATA_OUTPUT) {
p.pid = USB_TOKEN_OUT;
p.devep = 1;
p.data = s->dataout.buffer;
p.len = s->dataout.len;
s->dataout.len = s->usbdev->info->handle_data(s->usbdev, &p);
... | true | qemu | 4f4321c11ff6e98583846bfd6f0e81954924b003 | static int bt_hid_out(struct bt_hid_device_s *s)
{
USBPacket p;
if (s->data_type == BT_DATA_OUTPUT) {
p.pid = USB_TOKEN_OUT;
p.devep = 1;
p.data = s->dataout.buffer;
p.len = s->dataout.len;
s->dataout.len = s->usbdev->info->handle_data(s->usbdev, &p);
... | {
"code": [
" p.pid = USB_TOKEN_OUT;",
" p.devep = 1;",
" p.data = s->dataout.buffer;",
" p.len = s->dataout.len;"
],
"line_no": [
11,
13,
15,
17
]
} | static int FUNC_0(struct bt_hid_device_s *VAR_0)
{
USBPacket p;
if (VAR_0->data_type == BT_DATA_OUTPUT) {
p.pid = USB_TOKEN_OUT;
p.devep = 1;
p.data = VAR_0->dataout.buffer;
p.len = VAR_0->dataout.len;
VAR_0->dataout.len = VAR_0->usbdev->info->handle_data(VAR_0-... | [
"static int FUNC_0(struct bt_hid_device_s *VAR_0)\n{",
"USBPacket p;",
"if (VAR_0->data_type == BT_DATA_OUTPUT) {",
"p.pid = USB_TOKEN_OUT;",
"p.devep = 1;",
"p.data = VAR_0->dataout.buffer;",
"p.len = VAR_0->dataout.len;",
"VAR_0->dataout.len = VAR_0->usbdev->info->handle_data(VAR_0->usbdev, &p);",
... | [
0,
0,
0,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
37
],
[
39
],
[
43
],
[
45
]
] |
22,168 | size_t mptsas_config_manufacturing_1(MPTSASState *s, uint8_t **data, int address)
{
/* VPD - all zeros */
return MPTSAS_CONFIG_PACK(1, MPI_CONFIG_PAGETYPE_MANUFACTURING, 0x00,
"s256");
}
| true | qemu | 65a8e1f6413a0f6f79894da710b5d6d43361d27d | size_t mptsas_config_manufacturing_1(MPTSASState *s, uint8_t **data, int address)
{
return MPTSAS_CONFIG_PACK(1, MPI_CONFIG_PAGETYPE_MANUFACTURING, 0x00,
"s256");
}
| {
"code": [
" \"s256\");"
],
"line_no": [
9
]
} | size_t FUNC_0(MPTSASState *s, uint8_t **data, int address)
{
return MPTSAS_CONFIG_PACK(1, MPI_CONFIG_PAGETYPE_MANUFACTURING, 0x00,
"s256");
}
| [
"size_t FUNC_0(MPTSASState *s, uint8_t **data, int address)\n{",
"return MPTSAS_CONFIG_PACK(1, MPI_CONFIG_PAGETYPE_MANUFACTURING, 0x00,\n\"s256\");",
"}"
] | [
0,
1,
0
] | [
[
1,
3
],
[
7,
9
],
[
11
]
] |
22,169 | static void init_proc_620 (CPUPPCState *env)
{
gen_spr_ne_601(env);
gen_spr_620(env);
/* Time base */
gen_tbl(env);
/* Hardware implementation registers */
/* XXX : not implemented */
spr_register(env, SPR_HID0, "HID0",
SPR_NOACCESS, SPR_NOACCESS,
... | false | qemu | 082c6681b6c4af0035d9dad34a4a784be8c21dbe | static void init_proc_620 (CPUPPCState *env)
{
gen_spr_ne_601(env);
gen_spr_620(env);
gen_tbl(env);
spr_register(env, SPR_HID0, "HID0",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
0x00000000);
... | {
"code": [],
"line_no": []
} | static void FUNC_0 (CPUPPCState *VAR_0)
{
gen_spr_ne_601(VAR_0);
gen_spr_620(VAR_0);
gen_tbl(VAR_0);
spr_register(VAR_0, SPR_HID0, "HID0",
SPR_NOACCESS, SPR_NOACCESS,
&spr_read_generic, &spr_write_generic,
0x00000000);
... | [
"static void FUNC_0 (CPUPPCState *VAR_0)\n{",
"gen_spr_ne_601(VAR_0);",
"gen_spr_620(VAR_0);",
"gen_tbl(VAR_0);",
"spr_register(VAR_0, SPR_HID0, \"HID0\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_generic,\n0x00000000);",
"gen_low_BATs(VAR_0);",
"gen_high_BATs(VAR_0);",
"init_excp_62... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
17,
19,
21,
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
]
] |
22,170 | static void kvm_set_phys_mem(MemoryRegionSection *section, bool add)
{
KVMState *s = kvm_state;
KVMSlot *mem, old;
int err;
MemoryRegion *mr = section->mr;
bool log_dirty = memory_region_is_logging(mr);
bool writeable = !mr->readonly && !mr->rom_device;
bool readonly_flag = mr->reado... | false | qemu | 2d1a35bef0ed96b3f23535e459c552414ccdbafd | static void kvm_set_phys_mem(MemoryRegionSection *section, bool add)
{
KVMState *s = kvm_state;
KVMSlot *mem, old;
int err;
MemoryRegion *mr = section->mr;
bool log_dirty = memory_region_is_logging(mr);
bool writeable = !mr->readonly && !mr->rom_device;
bool readonly_flag = mr->reado... | {
"code": [],
"line_no": []
} | static void FUNC_0(MemoryRegionSection *VAR_0, bool VAR_1)
{
KVMState *s = kvm_state;
KVMSlot *mem, old;
int VAR_2;
MemoryRegion *mr = VAR_0->mr;
bool log_dirty = memory_region_is_logging(mr);
bool writeable = !mr->readonly && !mr->rom_device;
bool readonly_flag = mr->readonly || mem... | [
"static void FUNC_0(MemoryRegionSection *VAR_0, bool VAR_1)\n{",
"KVMState *s = kvm_state;",
"KVMSlot *mem, old;",
"int VAR_2;",
"MemoryRegion *mr = VAR_0->mr;",
"bool log_dirty = memory_region_is_logging(mr);",
"bool writeable = !mr->readonly && !mr->rom_device;",
"bool readonly_flag = mr->readonly |... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
... |
22,171 | void ff_ac3_bit_alloc_calc_psd(int8_t *exp, int start, int end, int16_t *psd,
int16_t *band_psd)
{
int bin, j, k, end1, v;
/* exponent mapping to PSD */
for(bin=start;bin<end;bin++) {
psd[bin]=(3072 - (exp[bin] << 7));
}
/* PSD integration */
j... | false | FFmpeg | a7e7417c41c2c85495b74074b96989c5d68bae22 | void ff_ac3_bit_alloc_calc_psd(int8_t *exp, int start, int end, int16_t *psd,
int16_t *band_psd)
{
int bin, j, k, end1, v;
for(bin=start;bin<end;bin++) {
psd[bin]=(3072 - (exp[bin] << 7));
}
j=start;
k=bin_to_band_tab[start];
do {
... | {
"code": [],
"line_no": []
} | void FUNC_0(int8_t *VAR_0, int VAR_1, int VAR_2, int16_t *VAR_3,
int16_t *VAR_4)
{
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
for(VAR_5=VAR_1;VAR_5<VAR_2;VAR_5++) {
VAR_3[VAR_5]=(3072 - (VAR_0[VAR_5] << 7));
}
VAR_6=VAR_1;
VAR_7=bin_to_band_... | [
"void FUNC_0(int8_t *VAR_0, int VAR_1, int VAR_2, int16_t *VAR_3,\nint16_t *VAR_4)\n{",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"for(VAR_5=VAR_1;VAR_5<VAR_2;VAR_5++) {",
"VAR_3[VAR_5]=(3072 - (VAR_0[VAR_5] << 7));",
"}",
"VAR_6=VAR_1;",
"VAR_7=bin_to_band_tab[VAR_1];",
"do {",
"VAR_9 = VAR_3[VAR_6... | [
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
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
]
] |
22,172 | static void gen_flt3_ldst (DisasContext *ctx, uint32_t opc, int fd,
int fs, int base, int index)
{
const char *opn = "extended float load/store";
int store = 0;
/* All of those work only on 64bit FPUs. */
gen_op_cp1_64bitmode();
if (base == 0) {
if (index... | false | qemu | 5e755519ac9d867f7da13f58a9d0c262db82e14c | static void gen_flt3_ldst (DisasContext *ctx, uint32_t opc, int fd,
int fs, int base, int index)
{
const char *opn = "extended float load/store";
int store = 0;
gen_op_cp1_64bitmode();
if (base == 0) {
if (index == 0)
gen_op_reset_T0();
... | {
"code": [],
"line_no": []
} | static void FUNC_0 (DisasContext *VAR_0, uint32_t VAR_1, int VAR_2,
int VAR_3, int VAR_4, int VAR_5)
{
const char *VAR_6 = "extended float load/VAR_7";
int VAR_7 = 0;
gen_op_cp1_64bitmode();
if (VAR_4 == 0) {
if (VAR_5 == 0)
gen_op_reset_T0(... | [
"static void FUNC_0 (DisasContext *VAR_0, uint32_t VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5)\n{",
"const char *VAR_6 = \"extended float load/VAR_7\";",
"int VAR_7 = 0;",
"gen_op_cp1_64bitmode();",
"if (VAR_4 == 0) {",
"if (VAR_5 == 0)\ngen_op_reset_T0();",
"else\nGEN_LOAD_REG_TN(T0, VAR_5);",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
15
],
[
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
47
],
[
49,
51
],
[
53
],
[
55
... |
22,173 | static DeviceState *apic_init(void *env, uint8_t apic_id)
{
DeviceState *dev;
SysBusDevice *d;
static int apic_mapped;
dev = qdev_create(NULL, "apic");
qdev_prop_set_uint8(dev, "id", apic_id);
qdev_prop_set_ptr(dev, "cpu_env", env);
qdev_init_nofail(dev);
d = sysbus_from_qdev(... | false | qemu | 680c1c6fd73c0cb3971938944936f18bbb7bad1b | static DeviceState *apic_init(void *env, uint8_t apic_id)
{
DeviceState *dev;
SysBusDevice *d;
static int apic_mapped;
dev = qdev_create(NULL, "apic");
qdev_prop_set_uint8(dev, "id", apic_id);
qdev_prop_set_ptr(dev, "cpu_env", env);
qdev_init_nofail(dev);
d = sysbus_from_qdev(... | {
"code": [],
"line_no": []
} | static DeviceState *FUNC_0(void *env, uint8_t apic_id)
{
DeviceState *dev;
SysBusDevice *d;
static int VAR_0;
dev = qdev_create(NULL, "apic");
qdev_prop_set_uint8(dev, "id", apic_id);
qdev_prop_set_ptr(dev, "cpu_env", env);
qdev_init_nofail(dev);
d = sysbus_from_qdev(dev);
... | [
"static DeviceState *FUNC_0(void *env, uint8_t apic_id)\n{",
"DeviceState *dev;",
"SysBusDevice *d;",
"static int VAR_0;",
"dev = qdev_create(NULL, \"apic\");",
"qdev_prop_set_uint8(dev, \"id\", apic_id);",
"qdev_prop_set_ptr(dev, \"cpu_env\", env);",
"qdev_init_nofail(dev);",
"d = sysbus_from_qdev(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
27
],
[
35
],
[
37
],
[
39
],
[
43
],
[
47
],
[
49
]
] |
22,174 | abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
abi_long arg2, abi_long arg3, abi_long arg4,
abi_long arg5, abi_long arg6, abi_long arg7,
abi_long arg8)
{
abi_long ret;
struct stat st;
struct statfs stfs;
void *p;
#ifdef D... | false | qemu | f287b2c2d4d20d35880ab6dca44bda0476e67dce | abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
abi_long arg2, abi_long arg3, abi_long arg4,
abi_long arg5, abi_long arg6, abi_long arg7,
abi_long arg8)
{
abi_long ret;
struct stat st;
struct statfs stfs;
void *p;
#ifdef D... | {
"code": [],
"line_no": []
} | abi_long FUNC_0(void *cpu_env, int num, abi_long arg1,
abi_long arg2, abi_long arg3, abi_long arg4,
abi_long arg5, abi_long arg6, abi_long arg7,
abi_long arg8)
{
abi_long ret;
struct stat VAR_0;
struct statfs VAR_1;
void *VAR_2;
#ifd... | [
"abi_long FUNC_0(void *cpu_env, int num, abi_long arg1,\nabi_long arg2, abi_long arg3, abi_long arg4,\nabi_long arg5, abi_long arg6, abi_long arg7,\nabi_long arg8)\n{",
"abi_long ret;",
"struct stat VAR_0;",
"struct statfs VAR_1;",
"void *VAR_2;",
"#ifdef DEBUG\ngemu_log(\"syscall %d\", num);",
"#endif\... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
51
],
[
53
],
[
55
],
[
57
],
[
61
],
[
63
],
[
65
],
[
67
... |
22,175 | static int64_t coroutine_fn vmdk_co_get_block_status(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *pnum)
{
BDRVVmdkState *s = bs->opaque;
int64_t index_in_cluster, n, ret;
uint64_t offset;
VmdkExtent *extent;
extent = find_extent(s, sector_num, NULL);
if (!exte... | false | qemu | 67a0fd2a9bca204d2b39f910a97c7137636a0715 | static int64_t coroutine_fn vmdk_co_get_block_status(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *pnum)
{
BDRVVmdkState *s = bs->opaque;
int64_t index_in_cluster, n, ret;
uint64_t offset;
VmdkExtent *extent;
extent = find_extent(s, sector_num, NULL);
if (!exte... | {
"code": [],
"line_no": []
} | static int64_t VAR_0 vmdk_co_get_block_status(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *pnum)
{
BDRVVmdkState *s = bs->opaque;
int64_t index_in_cluster, n, ret;
uint64_t offset;
VmdkExtent *extent;
extent = find_extent(s, sector_num, NULL);
if (!extent) {
... | [
"static int64_t VAR_0 vmdk_co_get_block_status(BlockDriverState *bs,\nint64_t sector_num, int nb_sectors, int *pnum)\n{",
"BDRVVmdkState *s = bs->opaque;",
"int64_t index_in_cluster, n, ret;",
"uint64_t offset;",
"VmdkExtent *extent;",
"extent = find_extent(s, sector_num, NULL);",
"if (!extent) {",
"r... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29,
31
],
[
33
],
[
37
],
[
39,
41
],
[
43
],
[
45,
47
],
[
49
],
[... |
22,176 | static void vfio_listener_region_add(MemoryListener *listener,
MemoryRegionSection *section)
{
VFIOContainer *container = container_of(listener, VFIOContainer, listener);
hwaddr iova, end;
Int128 llend, llsize;
void *vaddr;
int ret;
VFIOHostDMAWindow ... | false | qemu | 698feb5e13a2d763369909ce33f2bd7a7c1c11c0 | static void vfio_listener_region_add(MemoryListener *listener,
MemoryRegionSection *section)
{
VFIOContainer *container = container_of(listener, VFIOContainer, listener);
hwaddr iova, end;
Int128 llend, llsize;
void *vaddr;
int ret;
VFIOHostDMAWindow ... | {
"code": [],
"line_no": []
} | static void FUNC_0(MemoryListener *VAR_0,
MemoryRegionSection *VAR_1)
{
VFIOContainer *container = container_of(VAR_0, VFIOContainer, VAR_0);
hwaddr iova, end;
Int128 llend, llsize;
void *VAR_2;
int VAR_3;
VFIOHostDMAWindow *hostwin;
bool hostwin... | [
"static void FUNC_0(MemoryListener *VAR_0,\nMemoryRegionSection *VAR_1)\n{",
"VFIOContainer *container = container_of(VAR_0, VFIOContainer, VAR_0);",
"hwaddr iova, end;",
"Int128 llend, llsize;",
"void *VAR_2;",
"int VAR_3;",
"VFIOHostDMAWindow *hostwin;",
"bool hostwin_found;",
"if (vfio_listener_s... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27,
29,
31
],
[
33
],
[
35
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[... |
22,177 | static void niagara_init(MachineState *machine)
{
NiagaraBoardState *s = g_new(NiagaraBoardState, 1);
DriveInfo *dinfo = drive_get_next(IF_PFLASH);
MemoryRegion *sysmem = get_system_memory();
/* init CPUs */
sparc64_cpu_devinit(machine->cpu_model, "Sun UltraSparc T1",
... | false | qemu | a5a08302d44a8b1a8c5819b1411002f85bb5f847 | static void niagara_init(MachineState *machine)
{
NiagaraBoardState *s = g_new(NiagaraBoardState, 1);
DriveInfo *dinfo = drive_get_next(IF_PFLASH);
MemoryRegion *sysmem = get_system_memory();
sparc64_cpu_devinit(machine->cpu_model, "Sun UltraSparc T1",
NIAGARA_PROM_... | {
"code": [],
"line_no": []
} | static void FUNC_0(MachineState *VAR_0)
{
NiagaraBoardState *s = g_new(NiagaraBoardState, 1);
DriveInfo *dinfo = drive_get_next(IF_PFLASH);
MemoryRegion *sysmem = get_system_memory();
sparc64_cpu_devinit(VAR_0->cpu_model, "Sun UltraSparc T1",
NIAGARA_PROM_BASE);
... | [
"static void FUNC_0(MachineState *VAR_0)\n{",
"NiagaraBoardState *s = g_new(NiagaraBoardState, 1);",
"DriveInfo *dinfo = drive_get_next(IF_PFLASH);",
"MemoryRegion *sysmem = get_system_memory();",
"sparc64_cpu_devinit(VAR_0->cpu_model, \"Sun UltraSparc T1\",\nNIAGARA_PROM_BASE);",
"memory_region_allocate_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15,
17
],
[
21,
23
],
[
25
],
[
29,
31,
33
],
[
35,
37
],
[
41,
43
],
[
45
],
[
47,
49
],
[
51
],
[
53,
55
],
[
57
],
[
59,... |
22,178 | static int virtqueue_num_heads(VirtQueue *vq, unsigned int idx)
{
uint16_t num_heads = vring_avail_idx(vq) - idx;
/* Check it isn't doing very strange things with descriptor numbers. */
if (num_heads > vq->vring.num) {
error_report("Guest moved used index from %u to %u",
... | false | qemu | be1fea9bc286f64c6c995bb0d7145a0b738aeddb | static int virtqueue_num_heads(VirtQueue *vq, unsigned int idx)
{
uint16_t num_heads = vring_avail_idx(vq) - idx;
if (num_heads > vq->vring.num) {
error_report("Guest moved used index from %u to %u",
idx, vring_avail_idx(vq));
exit(1);
}
if (n... | {
"code": [],
"line_no": []
} | static int FUNC_0(VirtQueue *VAR_0, unsigned int VAR_1)
{
uint16_t num_heads = vring_avail_idx(VAR_0) - VAR_1;
if (num_heads > VAR_0->vring.num) {
error_report("Guest moved used index from %u to %u",
VAR_1, vring_avail_idx(VAR_0));
exit(1);
}
... | [
"static int FUNC_0(VirtQueue *VAR_0, unsigned int VAR_1)\n{",
"uint16_t num_heads = vring_avail_idx(VAR_0) - VAR_1;",
"if (num_heads > VAR_0->vring.num) {",
"error_report(\"Guest moved used index from %u to %u\",\nVAR_1, vring_avail_idx(VAR_0));",
"exit(1);",
"}",
"if (num_heads) {",
"smp_rmb();",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
]
] |
22,179 | static void load_linux(void *fw_cfg,
target_phys_addr_t option_rom,
const char *kernel_filename,
const char *initrd_filename,
const char *kernel_cmdline,
target_phys_addr_t max_ram_size)
{
uint16_t protocol;
uint32_t gpr[8];
... | false | qemu | 45a50b1668822c23afc2a89f724654e176518bc4 | static void load_linux(void *fw_cfg,
target_phys_addr_t option_rom,
const char *kernel_filename,
const char *initrd_filename,
const char *kernel_cmdline,
target_phys_addr_t max_ram_size)
{
uint16_t protocol;
uint32_t gpr[8];
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0,
target_phys_addr_t VAR_1,
const char *VAR_2,
const char *VAR_3,
const char *VAR_4,
target_phys_addr_t VAR_5)
{
uint16_t protocol;
uint32_t gpr[8];
uint16_t seg[6];
uint16_t real_seg;
... | [
"static void FUNC_0(void *VAR_0,\ntarget_phys_addr_t VAR_1,\nconst char *VAR_2,\nconst char *VAR_3,\nconst char *VAR_4,\ntarget_phys_addr_t VAR_5)\n{",
"uint16_t protocol;",
"uint32_t gpr[8];",
"uint16_t seg[6];",
"uint16_t real_seg;",
"int VAR_6, VAR_7, VAR_8 = 0, VAR_9;",
"uint32_t initrd_max;",
"ui... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
39
],
[
45
],
[
47,
49,
51
],
[
53,
55
],
[
57
... |
22,180 | void qemu_boot_set(const char *boot_order, Error **errp)
{
Error *local_err = NULL;
if (!boot_set_handler) {
error_setg(errp, "no function defined to set boot device list for"
" this architecture");
return;
}
validate_bootdevices(boot_order, &local_er... | false | qemu | ddcd55316fb2851e144e719171621ad2816487dc | void qemu_boot_set(const char *boot_order, Error **errp)
{
Error *local_err = NULL;
if (!boot_set_handler) {
error_setg(errp, "no function defined to set boot device list for"
" this architecture");
return;
}
validate_bootdevices(boot_order, &local_er... | {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0, Error **VAR_1)
{
Error *local_err = NULL;
if (!boot_set_handler) {
error_setg(VAR_1, "no function defined to set boot device list for"
" this architecture");
return;
}
validate_bootdevices(VAR_0, &local_err);
if (lo... | [
"void FUNC_0(const char *VAR_0, Error **VAR_1)\n{",
"Error *local_err = NULL;",
"if (!boot_set_handler) {",
"error_setg(VAR_1, \"no function defined to set boot device list for\"\n\" this architecture\");",
"return;",
"}",
"validate_bootdevices(VAR_0, &local_err);",
"if (local_err) {",
"error_propag... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
]
] |
22,181 | START_TEST(qdict_get_test)
{
QInt *qi;
QObject *obj;
const int value = -42;
const char *key = "test";
qdict_put(tests_dict, key, qint_from_int(value));
obj = qdict_get(tests_dict, key);
fail_unless(obj != NULL);
qi = qobject_to_qint(obj);
fail_unless(qint_get_int(qi) ... | false | qemu | ac531cb6e542b1e61d668604adf9dc5306a948c0 | START_TEST(qdict_get_test)
{
QInt *qi;
QObject *obj;
const int value = -42;
const char *key = "test";
qdict_put(tests_dict, key, qint_from_int(value));
obj = qdict_get(tests_dict, key);
fail_unless(obj != NULL);
qi = qobject_to_qint(obj);
fail_unless(qint_get_int(qi) ... | {
"code": [],
"line_no": []
} | FUNC_0(VAR_0)
{
QInt *qi;
QObject *obj;
const int VAR_1 = -42;
const char *VAR_2 = "test";
qdict_put(tests_dict, VAR_2, qint_from_int(VAR_1));
obj = qdict_get(tests_dict, VAR_2);
fail_unless(obj != NULL);
qi = qobject_to_qint(obj);
fail_unless(qint_get_int(qi) == VAR_... | [
"FUNC_0(VAR_0)\n{",
"QInt *qi;",
"QObject *obj;",
"const int VAR_1 = -42;",
"const char *VAR_2 = \"test\";",
"qdict_put(tests_dict, VAR_2, qint_from_int(VAR_1));",
"obj = qdict_get(tests_dict, VAR_2);",
"fail_unless(obj != NULL);",
"qi = qobject_to_qint(obj);",
"fail_unless(qint_get_int(qi) == VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
]
] |
22,182 | static void rv40_h_loop_filter(uint8_t *src, int stride, int dmode,
int lim_q1, int lim_p1,
int alpha, int beta, int beta2, int chroma, int edge){
rv40_adaptive_loop_filter(src, stride, 1, dmode, lim_q1, lim_p1,
alpha, b... | false | FFmpeg | d8edf1b515ae9fbcea2103305241d130c16e1003 | static void rv40_h_loop_filter(uint8_t *src, int stride, int dmode,
int lim_q1, int lim_p1,
int alpha, int beta, int beta2, int chroma, int edge){
rv40_adaptive_loop_filter(src, stride, 1, dmode, lim_q1, lim_p1,
alpha, b... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0, int 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){
rv40_adaptive_loop_filter(VAR_0, VAR_1, 1, VAR_2, VAR_3, VAR_4,
VAR_5, VAR_6, VAR_7, ... | [
"static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4,\nint VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9){",
"rv40_adaptive_loop_filter(VAR_0, VAR_1, 1, VAR_2, VAR_3, VAR_4,\nVAR_5, VAR_6, VAR_7, VAR_8, VAR_9);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11
]
] |
22,183 | static int qio_dns_resolver_lookup_sync_nop(QIODNSResolver *resolver,
SocketAddressLegacy *addr,
size_t *naddrs,
SocketAddressLegacy ***addrs,
... | false | qemu | bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884 | static int qio_dns_resolver_lookup_sync_nop(QIODNSResolver *resolver,
SocketAddressLegacy *addr,
size_t *naddrs,
SocketAddressLegacy ***addrs,
... | {
"code": [],
"line_no": []
} | static int FUNC_0(QIODNSResolver *VAR_0,
SocketAddressLegacy *VAR_1,
size_t *VAR_2,
SocketAddressLegacy ***VAR_3,
Error **VAR_4)
{
*VA... | [
"static int FUNC_0(QIODNSResolver *VAR_0,\nSocketAddressLegacy *VAR_1,\nsize_t *VAR_2,\nSocketAddressLegacy ***VAR_3,\nError **VAR_4)\n{",
"*VAR_2 = 1;",
"*VAR_3 = g_new0(SocketAddressLegacy *, 1);",
"(*VAR_3)[0] = QAPI_CLONE(SocketAddressLegacy, VAR_1);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
]
] |
22,185 | static uint64_t ehci_opreg_read(void *ptr, hwaddr addr,
unsigned size)
{
EHCIState *s = ptr;
uint32_t val;
val = s->opreg[addr >> 2];
trace_usb_ehci_opreg_read(addr + s->opregbase, addr2str(addr), val);
return val;
}
| false | qemu | 9359a58b122187964d7465d48165680eadbf69d3 | static uint64_t ehci_opreg_read(void *ptr, hwaddr addr,
unsigned size)
{
EHCIState *s = ptr;
uint32_t val;
val = s->opreg[addr >> 2];
trace_usb_ehci_opreg_read(addr + s->opregbase, addr2str(addr), val);
return val;
}
| {
"code": [],
"line_no": []
} | static uint64_t FUNC_0(void *ptr, hwaddr addr,
unsigned size)
{
EHCIState *s = ptr;
uint32_t val;
val = s->opreg[addr >> 2];
trace_usb_ehci_opreg_read(addr + s->opregbase, addr2str(addr), val);
return val;
}
| [
"static uint64_t FUNC_0(void *ptr, hwaddr addr,\nunsigned size)\n{",
"EHCIState *s = ptr;",
"uint32_t val;",
"val = s->opreg[addr >> 2];",
"trace_usb_ehci_opreg_read(addr + s->opregbase, addr2str(addr), val);",
"return val;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
22,186 | static void qemu_fflush(QEMUFile *f)
{
int ret = 0;
if (!f->ops->put_buffer) {
return;
}
if (f->is_write && f->buf_index > 0) {
ret = f->ops->put_buffer(f->opaque, f->buf, f->buf_offset, f->buf_index);
if (ret >= 0) {
f->buf_offset += f->buf_index;
... | false | qemu | 4eb938102b3d533e142de23e255e46da1326fc5a | static void qemu_fflush(QEMUFile *f)
{
int ret = 0;
if (!f->ops->put_buffer) {
return;
}
if (f->is_write && f->buf_index > 0) {
ret = f->ops->put_buffer(f->opaque, f->buf, f->buf_offset, f->buf_index);
if (ret >= 0) {
f->buf_offset += f->buf_index;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(QEMUFile *VAR_0)
{
int VAR_1 = 0;
if (!VAR_0->ops->put_buffer) {
return;
}
if (VAR_0->is_write && VAR_0->buf_index > 0) {
VAR_1 = VAR_0->ops->put_buffer(VAR_0->opaque, VAR_0->buf, VAR_0->buf_offset, VAR_0->buf_index);
if (VAR_1 >= 0) {
VA... | [
"static void FUNC_0(QEMUFile *VAR_0)\n{",
"int VAR_1 = 0;",
"if (!VAR_0->ops->put_buffer) {",
"return;",
"}",
"if (VAR_0->is_write && VAR_0->buf_index > 0) {",
"VAR_1 = VAR_0->ops->put_buffer(VAR_0->opaque, VAR_0->buf, VAR_0->buf_offset, VAR_0->buf_index);",
"if (VAR_1 >= 0) {",
"VAR_0->buf_offset +... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
22,188 | static void omap_mpui_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) opaque;
if (size != 4) {
return omap_badwidth_write32(opaque, addr, value);
}
switch (addr) {
c... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void omap_mpui_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) opaque;
if (size != 4) {
return omap_badwidth_write32(opaque, addr, value);
}
switch (addr) {
c... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
struct omap_mpu_state_s *VAR_4 = (struct omap_mpu_state_s *) VAR_0;
if (VAR_3 != 4) {
return omap_badwidth_write32(VAR_0, VAR_1, VAR_2);
}
switch (VAR_1) {
case... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"struct omap_mpu_state_s *VAR_4 = (struct omap_mpu_state_s *) VAR_0;",
"if (VAR_3 != 4) {",
"return omap_badwidth_write32(VAR_0, VAR_1, VAR_2);",
"}",
"switch (VAR_1) {",
"case 0x00:\nVAR_4->mpui_ctrl = VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
29,
31,
33,
35,
39,
41
],
[
43,
45,
47
],
[
51,
53
],
[
55
],
[
57
]
] |
22,191 | static void sdl_mouse_mode_change(Notifier *notify, void *data)
{
if (kbd_mouse_is_absolute()) {
if (!absolute_enabled) {
sdl_hide_cursor();
if (gui_grab) {
sdl_grab_end();
}
absolute_enabled = 1;
}
} else if (absolute_ena... | false | qemu | 35b0f237205dc6a5c9aa3eae14f19ef4d37dafcd | static void sdl_mouse_mode_change(Notifier *notify, void *data)
{
if (kbd_mouse_is_absolute()) {
if (!absolute_enabled) {
sdl_hide_cursor();
if (gui_grab) {
sdl_grab_end();
}
absolute_enabled = 1;
}
} else if (absolute_ena... | {
"code": [],
"line_no": []
} | static void FUNC_0(Notifier *VAR_0, void *VAR_1)
{
if (kbd_mouse_is_absolute()) {
if (!absolute_enabled) {
sdl_hide_cursor();
if (gui_grab) {
sdl_grab_end();
}
absolute_enabled = 1;
}
} else if (absolute_enabled) {
sdl_s... | [
"static void FUNC_0(Notifier *VAR_0, void *VAR_1)\n{",
"if (kbd_mouse_is_absolute()) {",
"if (!absolute_enabled) {",
"sdl_hide_cursor();",
"if (gui_grab) {",
"sdl_grab_end();",
"}",
"absolute_enabled = 1;",
"}",
"} else if (absolute_enabled) {",
"sdl_show_cursor();",
"absolute_enabled = 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
]
] |
22,193 | static int mono_decode(COOKContext *q, COOKSubpacket *p, float *mlt_buffer)
{
int category_index[128];
int quant_index_table[102];
int category[128];
int ret;
memset(&category, 0, sizeof(category));
memset(&category_index, 0, sizeof(category_index));
if ((ret = decode_envel... | false | FFmpeg | d629f3edaa39b48ac92ac5e5ae8440e35805b792 | static int mono_decode(COOKContext *q, COOKSubpacket *p, float *mlt_buffer)
{
int category_index[128];
int quant_index_table[102];
int category[128];
int ret;
memset(&category, 0, sizeof(category));
memset(&category_index, 0, sizeof(category_index));
if ((ret = decode_envel... | {
"code": [],
"line_no": []
} | static int FUNC_0(COOKContext *VAR_0, COOKSubpacket *VAR_1, float *VAR_2)
{
int VAR_3[128];
int VAR_4[102];
int VAR_5[128];
int VAR_6;
memset(&VAR_5, 0, sizeof(VAR_5));
memset(&VAR_3, 0, sizeof(VAR_3));
if ((VAR_6 = decode_envelope(VAR_0, VAR_1, VAR_4)) < 0)
return... | [
"static int FUNC_0(COOKContext *VAR_0, COOKSubpacket *VAR_1, float *VAR_2)\n{",
"int VAR_3[128];",
"int VAR_4[102];",
"int VAR_5[128];",
"int VAR_6;",
"memset(&VAR_5, 0, sizeof(VAR_5));",
"memset(&VAR_3, 0, sizeof(VAR_3));",
"if ((VAR_6 = decode_envelope(VAR_0, VAR_1, VAR_4)) < 0)\nreturn VAR_6;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
]
] |
22,194 | static void omap_clkm_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) opaque;
uint16_t diff;
omap_clk clk;
static const char *clkschemename[8] = {
"fully synchronous", "fully... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void omap_clkm_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
struct omap_mpu_state_s *s = (struct omap_mpu_state_s *) opaque;
uint16_t diff;
omap_clk clk;
static const char *clkschemename[8] = {
"fully synchronous", "fully... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
struct omap_mpu_state_s *VAR_4 = (struct omap_mpu_state_s *) VAR_0;
uint16_t diff;
omap_clk clk;
static const char *VAR_5[8] = {
"fully synchronous", "fully asynchronous... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"struct omap_mpu_state_s *VAR_4 = (struct omap_mpu_state_s *) VAR_0;",
"uint16_t diff;",
"omap_clk clk;",
"static const char *VAR_5[8] = {",
"\"fully synchronous\", \"fully asynchronous\", \"synchronous scalab... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15,
17,
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
45,
47
],
[
49
],
[
51
],
[... |
22,195 | static int cuvid_test_dummy_decoder(AVCodecContext *avctx,
const CUVIDPARSERPARAMS *cuparseinfo,
int probed_width,
int probed_height)
{
CuvidContext *ctx = avctx->priv_data;
CUVIDDECODECREATEINFO cu... | false | FFmpeg | fea471347218be0b8d1313b8f14ea9512e555d76 | static int cuvid_test_dummy_decoder(AVCodecContext *avctx,
const CUVIDPARSERPARAMS *cuparseinfo,
int probed_width,
int probed_height)
{
CuvidContext *ctx = avctx->priv_data;
CUVIDDECODECREATEINFO cu... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
const CUVIDPARSERPARAMS *VAR_1,
int VAR_2,
int VAR_3)
{
CuvidContext *ctx = VAR_0->priv_data;
CUVIDDECODECREATEINFO cuinfo;
CUvideodecoder cudec = 0;
... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nconst CUVIDPARSERPARAMS *VAR_1,\nint VAR_2,\nint VAR_3)\n{",
"CuvidContext *ctx = VAR_0->priv_data;",
"CUVIDDECODECREATEINFO cuinfo;",
"CUvideodecoder cudec = 0;",
"int VAR_4 = 0;",
"memset(&cuinfo, 0, sizeof(cuinfo));",
"cuinfo.CodecType = VAR_1->CodecType;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[... |
22,196 | static void vfio_intp_inject_pending_lockheld(VFIOINTp *intp)
{
trace_vfio_platform_intp_inject_pending_lockheld(intp->pin,
event_notifier_get_fd(&intp->interrupt));
intp->state = VFIO_IRQ_ACTIVE;
/* trigger the virtual IRQ */
qemu_set_irq(intp->qemuirq, 1);
}
| false | qemu | a22313deca720e038ebc5805cf451b3a685d29ce | static void vfio_intp_inject_pending_lockheld(VFIOINTp *intp)
{
trace_vfio_platform_intp_inject_pending_lockheld(intp->pin,
event_notifier_get_fd(&intp->interrupt));
intp->state = VFIO_IRQ_ACTIVE;
qemu_set_irq(intp->qemuirq, 1);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(VFIOINTp *VAR_0)
{
trace_vfio_platform_intp_inject_pending_lockheld(VAR_0->pin,
event_notifier_get_fd(&VAR_0->interrupt));
VAR_0->state = VFIO_IRQ_ACTIVE;
qemu_set_irq(VAR_0->qemuirq, 1);
}
| [
"static void FUNC_0(VFIOINTp *VAR_0)\n{",
"trace_vfio_platform_intp_inject_pending_lockheld(VAR_0->pin,\nevent_notifier_get_fd(&VAR_0->interrupt));",
"VAR_0->state = VFIO_IRQ_ACTIVE;",
"qemu_set_irq(VAR_0->qemuirq, 1);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
17
],
[
19
]
] |
22,197 | void qemu_spice_display_resize(SimpleSpiceDisplay *ssd)
{
dprint(1, "%s:\n", __FUNCTION__);
pthread_mutex_lock(&ssd->lock);
memset(&ssd->dirty, 0, sizeof(ssd->dirty));
qemu_pf_conv_put(ssd->conv);
ssd->conv = NULL;
pthread_mutex_unlock(&ssd->lock);
qemu_spice_destroy_host_primary... | false | qemu | 7466bc49107fbd84336ba680f860d5eadd6def13 | void qemu_spice_display_resize(SimpleSpiceDisplay *ssd)
{
dprint(1, "%s:\n", __FUNCTION__);
pthread_mutex_lock(&ssd->lock);
memset(&ssd->dirty, 0, sizeof(ssd->dirty));
qemu_pf_conv_put(ssd->conv);
ssd->conv = NULL;
pthread_mutex_unlock(&ssd->lock);
qemu_spice_destroy_host_primary... | {
"code": [],
"line_no": []
} | void FUNC_0(SimpleSpiceDisplay *VAR_0)
{
dprint(1, "%s:\n", __FUNCTION__);
pthread_mutex_lock(&VAR_0->lock);
memset(&VAR_0->dirty, 0, sizeof(VAR_0->dirty));
qemu_pf_conv_put(VAR_0->conv);
VAR_0->conv = NULL;
pthread_mutex_unlock(&VAR_0->lock);
qemu_spice_destroy_host_primary(VAR_... | [
"void FUNC_0(SimpleSpiceDisplay *VAR_0)\n{",
"dprint(1, \"%s:\\n\", __FUNCTION__);",
"pthread_mutex_lock(&VAR_0->lock);",
"memset(&VAR_0->dirty, 0, sizeof(VAR_0->dirty));",
"qemu_pf_conv_put(VAR_0->conv);",
"VAR_0->conv = NULL;",
"pthread_mutex_unlock(&VAR_0->lock);",
"qemu_spice_destroy_host_primary(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
22,198 | void qemu_savevm_state_cancel(Monitor *mon, QEMUFile *f)
{
SaveStateEntry *se;
QTAILQ_FOREACH(se, &savevm_handlers, entry) {
if (se->save_live_state) {
se->save_live_state(mon, f, -1, se->opaque);
}
}
}
| false | qemu | 539de1246d355d3b8aa33fb7cde732352d8827c7 | void qemu_savevm_state_cancel(Monitor *mon, QEMUFile *f)
{
SaveStateEntry *se;
QTAILQ_FOREACH(se, &savevm_handlers, entry) {
if (se->save_live_state) {
se->save_live_state(mon, f, -1, se->opaque);
}
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(Monitor *VAR_0, QEMUFile *VAR_1)
{
SaveStateEntry *se;
QTAILQ_FOREACH(se, &savevm_handlers, entry) {
if (se->save_live_state) {
se->save_live_state(VAR_0, VAR_1, -1, se->opaque);
}
}
}
| [
"void FUNC_0(Monitor *VAR_0, QEMUFile *VAR_1)\n{",
"SaveStateEntry *se;",
"QTAILQ_FOREACH(se, &savevm_handlers, entry) {",
"if (se->save_live_state) {",
"se->save_live_state(VAR_0, VAR_1, -1, se->opaque);",
"}",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
22,199 | VLANState *qemu_find_vlan(int id, int allocate)
{
VLANState **pvlan, *vlan;
for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {
if (vlan->id == id)
return vlan;
}
if (!allocate) {
return NULL;
}
vlan = qemu_mallocz(sizeof(VLANState));
vlan->id = i... | false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | VLANState *qemu_find_vlan(int id, int allocate)
{
VLANState **pvlan, *vlan;
for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {
if (vlan->id == id)
return vlan;
}
if (!allocate) {
return NULL;
}
vlan = qemu_mallocz(sizeof(VLANState));
vlan->id = i... | {
"code": [],
"line_no": []
} | VLANState *FUNC_0(int id, int allocate)
{
VLANState **pvlan, *vlan;
for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {
if (vlan->id == id)
return vlan;
}
if (!allocate) {
return NULL;
}
vlan = qemu_mallocz(sizeof(VLANState));
vlan->id = id;
... | [
"VLANState *FUNC_0(int id, int allocate)\n{",
"VLANState **pvlan, *vlan;",
"for(vlan = first_vlan; vlan != NULL; vlan = vlan->next) {",
"if (vlan->id == id)\nreturn vlan;",
"}",
"if (!allocate) {",
"return NULL;",
"}",
"vlan = qemu_mallocz(sizeof(VLANState));",
"vlan->id = id;",
"TAILQ_INIT(&vla... | [
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
]
] |
22,200 | static int qcow2_amend_options(BlockDriverState *bs, QemuOpts *opts,
BlockDriverAmendStatusCB *status_cb)
{
BDRVQcowState *s = bs->opaque;
int old_version = s->qcow_version, new_version = old_version;
uint64_t new_size = 0;
const char *backing_file = NULL, *backing_f... | false | qemu | e4603fe139e2161464d7e75faa3a650e31f057fc | static int qcow2_amend_options(BlockDriverState *bs, QemuOpts *opts,
BlockDriverAmendStatusCB *status_cb)
{
BDRVQcowState *s = bs->opaque;
int old_version = s->qcow_version, new_version = old_version;
uint64_t new_size = 0;
const char *backing_file = NULL, *backing_f... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, QemuOpts *VAR_1,
BlockDriverAmendStatusCB *VAR_2)
{
BDRVQcowState *s = VAR_0->opaque;
int VAR_3 = s->qcow_version, VAR_4 = VAR_3;
uint64_t new_size = 0;
const char *VAR_5 = NULL, *VAR_6 = NULL;
bool lazy_refcounts = s->... | [
"static int FUNC_0(BlockDriverState *VAR_0, QemuOpts *VAR_1,\nBlockDriverAmendStatusCB *VAR_2)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"int VAR_3 = s->qcow_version, VAR_4 = VAR_3;",
"uint64_t new_size = 0;",
"const char *VAR_5 = NULL, *VAR_6 = NULL;",
"bool lazy_refcounts = s->use_lazy_refcounts;",
"c... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[... |
22,202 | void aio_set_event_notifier(AioContext *ctx,
EventNotifier *e,
bool is_external,
EventNotifierHandler *io_notify,
AioPollFn *io_poll)
{
AioHandler *node;
qemu_lockcnt_lock(&ctx->list_lock);
... | false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | void aio_set_event_notifier(AioContext *ctx,
EventNotifier *e,
bool is_external,
EventNotifierHandler *io_notify,
AioPollFn *io_poll)
{
AioHandler *node;
qemu_lockcnt_lock(&ctx->list_lock);
... | {
"code": [],
"line_no": []
} | void FUNC_0(AioContext *VAR_0,
EventNotifier *VAR_1,
bool VAR_2,
EventNotifierHandler *VAR_3,
AioPollFn *VAR_4)
{
AioHandler *node;
qemu_lockcnt_lock(&VAR_0->list_lock);
QLIST_FOREACH(no... | [
"void FUNC_0(AioContext *VAR_0,\nEventNotifier *VAR_1,\nbool VAR_2,\nEventNotifierHandler *VAR_3,\nAioPollFn *VAR_4)\n{",
"AioHandler *node;",
"qemu_lockcnt_lock(&VAR_0->list_lock);",
"QLIST_FOREACH(node, &VAR_0->aio_handlers, node) {",
"if (node->VAR_1 == VAR_1 && !node->deleted) {",
"break;",
"}",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
33
],
[
35
],
[
37
],
[
43
],
[
45
],
[
47
],
[
49
],
[
59
],
[
61
],
[
63
... |
22,203 | static int ehci_state_fetchqtd(EHCIQueue *q)
{
EHCIqtd qtd;
EHCIPacket *p;
int again = 0;
get_dwords(q->ehci, NLPTR_GET(q->qtdaddr), (uint32_t *) &qtd,
sizeof(EHCIqtd) >> 2);
ehci_trace_qtd(q, NLPTR_GET(q->qtdaddr), &qtd);
p = QTAILQ_FIRST(&q->packets);
if (p != N... | false | qemu | b4ea86649915eca5551a5166f76e7a9d9032de50 | static int ehci_state_fetchqtd(EHCIQueue *q)
{
EHCIqtd qtd;
EHCIPacket *p;
int again = 0;
get_dwords(q->ehci, NLPTR_GET(q->qtdaddr), (uint32_t *) &qtd,
sizeof(EHCIqtd) >> 2);
ehci_trace_qtd(q, NLPTR_GET(q->qtdaddr), &qtd);
p = QTAILQ_FIRST(&q->packets);
if (p != N... | {
"code": [],
"line_no": []
} | static int FUNC_0(EHCIQueue *VAR_0)
{
EHCIqtd qtd;
EHCIPacket *p;
int VAR_1 = 0;
get_dwords(VAR_0->ehci, NLPTR_GET(VAR_0->qtdaddr), (uint32_t *) &qtd,
sizeof(EHCIqtd) >> 2);
ehci_trace_qtd(VAR_0, NLPTR_GET(VAR_0->qtdaddr), &qtd);
p = QTAILQ_FIRST(&VAR_0->packets);
... | [
"static int FUNC_0(EHCIQueue *VAR_0)\n{",
"EHCIqtd qtd;",
"EHCIPacket *p;",
"int VAR_1 = 0;",
"get_dwords(VAR_0->ehci, NLPTR_GET(VAR_0->qtdaddr), (uint32_t *) &qtd,\nsizeof(EHCIqtd) >> 2);",
"ehci_trace_qtd(VAR_0, NLPTR_GET(VAR_0->qtdaddr), &qtd);",
"p = QTAILQ_FIRST(&VAR_0->packets);",
"if (p != NULL... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
17
],
[
21
],
[
23
],
[
25,
27,
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
... |
22,204 | int net_init_hubport(const NetClientOptions *opts, const char *name,
NetClientState *peer)
{
const NetdevHubPortOptions *hubport;
assert(opts->kind == NET_CLIENT_OPTIONS_KIND_HUBPORT);
hubport = opts->hubport;
if (peer) {
return -EINVAL;
}
net_hub_add_... | false | qemu | ca7eb1848bb06d9b75784d7760b83c7b0beb1102 | int net_init_hubport(const NetClientOptions *opts, const char *name,
NetClientState *peer)
{
const NetdevHubPortOptions *hubport;
assert(opts->kind == NET_CLIENT_OPTIONS_KIND_HUBPORT);
hubport = opts->hubport;
if (peer) {
return -EINVAL;
}
net_hub_add_... | {
"code": [],
"line_no": []
} | int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,
NetClientState *VAR_2)
{
const NetdevHubPortOptions *VAR_3;
assert(VAR_0->kind == NET_CLIENT_OPTIONS_KIND_HUBPORT);
VAR_3 = VAR_0->VAR_3;
if (VAR_2) {
return -EINVAL;
}
net_hub_add_port(VAR_3... | [
"int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,\nNetClientState *VAR_2)\n{",
"const NetdevHubPortOptions *VAR_3;",
"assert(VAR_0->kind == NET_CLIENT_OPTIONS_KIND_HUBPORT);",
"VAR_3 = VAR_0->VAR_3;",
"if (VAR_2) {",
"return -EINVAL;",
"}",
"net_hub_add_port(VAR_3->hubid, VAR_1);",
"retu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
]
] |
22,205 | int cpu_breakpoint_remove(CPUState *env, target_ulong pc, int flags)
{
#if defined(TARGET_HAS_ICE)
CPUBreakpoint *bp;
TAILQ_FOREACH(bp, &env->breakpoints, entry) {
if (bp->pc == pc && bp->flags == flags) {
cpu_breakpoint_remove_by_ref(env, bp);
return 0;
}
... | false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | int cpu_breakpoint_remove(CPUState *env, target_ulong pc, int flags)
{
#if defined(TARGET_HAS_ICE)
CPUBreakpoint *bp;
TAILQ_FOREACH(bp, &env->breakpoints, entry) {
if (bp->pc == pc && bp->flags == flags) {
cpu_breakpoint_remove_by_ref(env, bp);
return 0;
}
... | {
"code": [],
"line_no": []
} | int FUNC_0(CPUState *VAR_0, target_ulong VAR_1, int VAR_2)
{
#if defined(TARGET_HAS_ICE)
CPUBreakpoint *bp;
TAILQ_FOREACH(bp, &VAR_0->breakpoints, entry) {
if (bp->VAR_1 == VAR_1 && bp->VAR_2 == VAR_2) {
cpu_breakpoint_remove_by_ref(VAR_0, bp);
return 0;
}
... | [
"int FUNC_0(CPUState *VAR_0, target_ulong VAR_1, int VAR_2)\n{",
"#if defined(TARGET_HAS_ICE)\nCPUBreakpoint *bp;",
"TAILQ_FOREACH(bp, &VAR_0->breakpoints, entry) {",
"if (bp->VAR_1 == VAR_1 && bp->VAR_2 == VAR_2) {",
"cpu_breakpoint_remove_by_ref(VAR_0, bp);",
"return 0;",
"}",
"}",
"return -ENOENT... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29,
31
]
] |
22,206 | static void mm_decode_inter(MmContext * s, int half_horiz, int half_vert, const uint8_t *buf, int buf_size)
{
const int data_ptr = 2 + AV_RL16(&buf[0]);
int d, r, y;
d = data_ptr; r = 2; y = 0;
while(r < data_ptr) {
int i, j;
int length = buf[r] & 0x7f;
int x = buf[r+1]... | false | FFmpeg | 091bc6ca8c643bfece2c70ff2404c7b31574e1f1 | static void mm_decode_inter(MmContext * s, int half_horiz, int half_vert, const uint8_t *buf, int buf_size)
{
const int data_ptr = 2 + AV_RL16(&buf[0]);
int d, r, y;
d = data_ptr; r = 2; y = 0;
while(r < data_ptr) {
int i, j;
int length = buf[r] & 0x7f;
int x = buf[r+1]... | {
"code": [],
"line_no": []
} | static void FUNC_0(MmContext * VAR_0, int VAR_1, int VAR_2, const uint8_t *VAR_3, int VAR_4)
{
const int VAR_5 = 2 + AV_RL16(&VAR_3[0]);
int VAR_6, VAR_7, VAR_8;
VAR_6 = VAR_5; VAR_7 = 2; VAR_8 = 0;
while(VAR_7 < VAR_5) {
int VAR_9, VAR_10;
int VAR_11 = VAR_3[VAR_7] & 0x7f;
... | [
"static void FUNC_0(MmContext * VAR_0, int VAR_1, int VAR_2, const uint8_t *VAR_3, int VAR_4)\n{",
"const int VAR_5 = 2 + AV_RL16(&VAR_3[0]);",
"int VAR_6, VAR_7, VAR_8;",
"VAR_6 = VAR_5; VAR_7 = 2; VAR_8 = 0;",
"while(VAR_7 < VAR_5) {",
"int VAR_9, VAR_10;",
"int VAR_11 = VAR_3[VAR_7] & 0x7f;",
"int ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47,... |
22,207 | static void pxa2xx_ssp_fifo_update(PXA2xxSSPState *s)
{
s->sssr &= ~(0xf << 12); /* Clear RFL */
s->sssr &= ~(0xf << 8); /* Clear TFL */
s->sssr &= ~SSSR_TNF;
if (s->enable) {
s->sssr |= ((s->rx_level - 1) & 0xf) << 12;
if (s->rx_level >= SSCR1_RFT(s->sscr[1]))
s->sss... | false | qemu | 7d1476898fd58d6ae5c054e6afddf18c335d9d89 | static void pxa2xx_ssp_fifo_update(PXA2xxSSPState *s)
{
s->sssr &= ~(0xf << 12);
s->sssr &= ~(0xf << 8);
s->sssr &= ~SSSR_TNF;
if (s->enable) {
s->sssr |= ((s->rx_level - 1) & 0xf) << 12;
if (s->rx_level >= SSCR1_RFT(s->sscr[1]))
s->sssr |= SSSR_RFS;
else
... | {
"code": [],
"line_no": []
} | static void FUNC_0(PXA2xxSSPState *VAR_0)
{
VAR_0->sssr &= ~(0xf << 12);
VAR_0->sssr &= ~(0xf << 8);
VAR_0->sssr &= ~SSSR_TNF;
if (VAR_0->enable) {
VAR_0->sssr |= ((VAR_0->rx_level - 1) & 0xf) << 12;
if (VAR_0->rx_level >= SSCR1_RFT(VAR_0->sscr[1]))
VAR_0->sssr |= S... | [
"static void FUNC_0(PXA2xxSSPState *VAR_0)\n{",
"VAR_0->sssr &= ~(0xf << 12);",
"VAR_0->sssr &= ~(0xf << 8);",
"VAR_0->sssr &= ~SSSR_TNF;",
"if (VAR_0->enable) {",
"VAR_0->sssr |= ((VAR_0->rx_level - 1) & 0xf) << 12;",
"if (VAR_0->rx_level >= SSCR1_RFT(VAR_0->sscr[1]))\nVAR_0->sssr |= SSSR_RFS;",
"els... | [
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
],
[
45
],
[
47
]
] |
22,208 | static void grlib_apbuart_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
UART *uart = opaque;
unsigned char c = 0;
addr &= 0xff;
/* Unit registers */
switch (addr) {
case DATA_OFFSET:
case DATA_OFFSET + ... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void grlib_apbuart_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
UART *uart = opaque;
unsigned char c = 0;
addr &= 0xff;
switch (addr) {
case DATA_OFFSET:
case DATA_OFFSET + 3:
c... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
UART *uart = VAR_0;
unsigned char VAR_4 = 0;
VAR_1 &= 0xff;
switch (VAR_1) {
case DATA_OFFSET:
case DATA_OFFSET + 3:
VAR_4 = ... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"UART *uart = VAR_0;",
"unsigned char VAR_4 = 0;",
"VAR_1 &= 0xff;",
"switch (VAR_1) {",
"case DATA_OFFSET:\ncase DATA_OFFSET + 3:\nVAR_4 = VAR_2 & 0xFF;",
"qemu_chr_fe_write(uart->chr, &VAR_4, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
19
],
[
21,
23,
25
],
[
27
],
[
29
],
[
33,
37
],
[
41,
43
],
[
45
],
[
49,
53
],
[
57,
59
],
[
61
],
[
65
],
[
67
]
] |
22,209 | int cpu_x86_handle_mmu_fault(CPUX86State *env, uint32_t addr,
int is_write, int is_user, int is_softmmu)
{
uint8_t *pde_ptr, *pte_ptr;
uint32_t pde, pte, virt_addr, ptep;
int error_code, is_dirty, prot, page_size, ret;
unsigned long paddr, vaddr, page_offset;
#... | false | qemu | 1ac157da77c863b62b1d2f467626a440d57cf17d | int cpu_x86_handle_mmu_fault(CPUX86State *env, uint32_t addr,
int is_write, int is_user, int is_softmmu)
{
uint8_t *pde_ptr, *pte_ptr;
uint32_t pde, pte, virt_addr, ptep;
int error_code, is_dirty, prot, page_size, ret;
unsigned long paddr, vaddr, page_offset;
#... | {
"code": [],
"line_no": []
} | int FUNC_0(CPUX86State *VAR_0, uint32_t VAR_1,
int VAR_2, int VAR_3, int VAR_4)
{
uint8_t *pde_ptr, *pte_ptr;
uint32_t pde, pte, virt_addr, ptep;
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
unsigned long VAR_10, VAR_11, VAR_12;
#if defined(DEBUG_MMU)
printf("MM... | [
"int FUNC_0(CPUX86State *VAR_0, uint32_t VAR_1,\nint VAR_2, int VAR_3, int VAR_4)\n{",
"uint8_t *pde_ptr, *pte_ptr;",
"uint32_t pde, pte, virt_addr, ptep;",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"unsigned long VAR_10, VAR_11, VAR_12;",
"#if defined(DEBUG_MMU)\nprintf(\"MMU fault: VAR_1=0x%08x w=%d u=%... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19,
21
],
[
23,
27
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
57,... |
22,210 | static void term_delete_char(void)
{
if (term_cmd_buf_index < term_cmd_buf_size) {
memmove(term_cmd_buf + term_cmd_buf_index,
term_cmd_buf + term_cmd_buf_index + 1,
term_cmd_buf_size - term_cmd_buf_index - 1);
term_cmd_buf_size--;
}
}
| false | qemu | 7e2515e87c41e2e658aaed466e11cbdf1ea8bcb1 | static void term_delete_char(void)
{
if (term_cmd_buf_index < term_cmd_buf_size) {
memmove(term_cmd_buf + term_cmd_buf_index,
term_cmd_buf + term_cmd_buf_index + 1,
term_cmd_buf_size - term_cmd_buf_index - 1);
term_cmd_buf_size--;
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
if (term_cmd_buf_index < term_cmd_buf_size) {
memmove(term_cmd_buf + term_cmd_buf_index,
term_cmd_buf + term_cmd_buf_index + 1,
term_cmd_buf_size - term_cmd_buf_index - 1);
term_cmd_buf_size--;
}
}
| [
"static void FUNC_0(void)\n{",
"if (term_cmd_buf_index < term_cmd_buf_size) {",
"memmove(term_cmd_buf + term_cmd_buf_index,\nterm_cmd_buf + term_cmd_buf_index + 1,\nterm_cmd_buf_size - term_cmd_buf_index - 1);",
"term_cmd_buf_size--;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11
],
[
13
],
[
15
],
[
17
]
] |
22,211 | static void sch_handle_start_func(SubchDev *sch, ORB *orb)
{
PMCW *p = &sch->curr_status.pmcw;
SCSW *s = &sch->curr_status.scsw;
int path;
int ret;
bool suspend_allowed;
/* Path management: In our simple css, we always choose the only path. */
path = 0x80;
if (!(s->ctrl & ... | false | qemu | bab482d7405f9fe3cac9c213d60f9ca9442c047b | static void sch_handle_start_func(SubchDev *sch, ORB *orb)
{
PMCW *p = &sch->curr_status.pmcw;
SCSW *s = &sch->curr_status.scsw;
int path;
int ret;
bool suspend_allowed;
path = 0x80;
if (!(s->ctrl & SCSW_ACTL_SUSP)) {
s->cstat = 0;
s->dstat = 0... | {
"code": [],
"line_no": []
} | static void FUNC_0(SubchDev *VAR_0, ORB *VAR_1)
{
PMCW *p = &VAR_0->curr_status.pmcw;
SCSW *s = &VAR_0->curr_status.scsw;
int VAR_2;
int VAR_3;
bool suspend_allowed;
VAR_2 = 0x80;
if (!(s->ctrl & SCSW_ACTL_SUSP)) {
s->cstat = 0;
s->dstat = 0;
... | [
"static void FUNC_0(SubchDev *VAR_0, ORB *VAR_1)\n{",
"PMCW *p = &VAR_0->curr_status.pmcw;",
"SCSW *s = &VAR_0->curr_status.scsw;",
"int VAR_2;",
"int VAR_3;",
"bool suspend_allowed;",
"VAR_2 = 0x80;",
"if (!(s->ctrl & SCSW_ACTL_SUSP)) {",
"s->cstat = 0;",
"s->dstat = 0;",
"assert(VAR_1 != NULL)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
21
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55... |
22,212 | QEMUFile *qemu_fopen_ops_buffered(MigrationState *migration_state)
{
QEMUFileBuffered *s;
s = g_malloc0(sizeof(*s));
s->migration_state = migration_state;
s->xfer_limit = migration_state->bandwidth_limit / 10;
s->file = qemu_fopen_ops(s, &buffered_file_ops);
s->timer = qemu_new_ti... | false | qemu | c09f4cb2b3243085a86aee3c7ed4f31c77e4db87 | QEMUFile *qemu_fopen_ops_buffered(MigrationState *migration_state)
{
QEMUFileBuffered *s;
s = g_malloc0(sizeof(*s));
s->migration_state = migration_state;
s->xfer_limit = migration_state->bandwidth_limit / 10;
s->file = qemu_fopen_ops(s, &buffered_file_ops);
s->timer = qemu_new_ti... | {
"code": [],
"line_no": []
} | QEMUFile *FUNC_0(MigrationState *migration_state)
{
QEMUFileBuffered *s;
s = g_malloc0(sizeof(*s));
s->migration_state = migration_state;
s->xfer_limit = migration_state->bandwidth_limit / 10;
s->file = qemu_fopen_ops(s, &buffered_file_ops);
s->timer = qemu_new_timer_ms(rt_clock, ... | [
"QEMUFile *FUNC_0(MigrationState *migration_state)\n{",
"QEMUFileBuffered *s;",
"s = g_malloc0(sizeof(*s));",
"s->migration_state = migration_state;",
"s->xfer_limit = migration_state->bandwidth_limit / 10;",
"s->file = qemu_fopen_ops(s, &buffered_file_ops);",
"s->timer = qemu_new_timer_ms(rt_clock, buf... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
19
],
[
23
],
[
27
],
[
31
],
[
33
]
] |
22,214 | static int walk_memory_regions_1(struct walk_memory_regions_data *data,
abi_ulong base, int level, void **lp)
{
abi_ulong pa;
int i, rc;
if (*lp == NULL) {
return walk_memory_regions_end(data, base, 0);
}
if (level == 0) {
PageDesc *pd = ... | false | qemu | 03f4995781a64e106e6f73864a1e9c4163dac53b | static int walk_memory_regions_1(struct walk_memory_regions_data *data,
abi_ulong base, int level, void **lp)
{
abi_ulong pa;
int i, rc;
if (*lp == NULL) {
return walk_memory_regions_end(data, base, 0);
}
if (level == 0) {
PageDesc *pd = ... | {
"code": [],
"line_no": []
} | static int FUNC_0(struct walk_memory_regions_data *VAR_0,
abi_ulong VAR_1, int VAR_2, void **VAR_3)
{
abi_ulong pa;
int VAR_4, VAR_5;
if (*VAR_3 == NULL) {
return walk_memory_regions_end(VAR_0, VAR_1, 0);
}
if (VAR_2 == 0) {
PageDesc *pd ... | [
"static int FUNC_0(struct walk_memory_regions_data *VAR_0,\nabi_ulong VAR_1, int VAR_2, void **VAR_3)\n{",
"abi_ulong pa;",
"int VAR_4, VAR_5;",
"if (*VAR_3 == NULL) {",
"return walk_memory_regions_end(VAR_0, VAR_1, 0);",
"}",
"if (VAR_2 == 0) {",
"PageDesc *pd = *VAR_3;",
"for (VAR_4 = 0; VAR_4 < 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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
22,215 | void helper_ldq_data(uint64_t t0, uint64_t t1)
{
ldq_data(t1, t0);
}
| false | qemu | 2374e73edafff0586cbfb67c333c5a7588f81fd5 | void helper_ldq_data(uint64_t t0, uint64_t t1)
{
ldq_data(t1, t0);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(uint64_t VAR_0, uint64_t VAR_1)
{
ldq_data(VAR_1, VAR_0);
}
| [
"void FUNC_0(uint64_t VAR_0, uint64_t VAR_1)\n{",
"ldq_data(VAR_1, VAR_0);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
22,216 | static int v9fs_do_open2(V9fsState *s, V9fsCreateState *vs)
{
FsCred cred;
int flags;
cred_init(&cred);
cred.fc_uid = vs->fidp->uid;
cred.fc_mode = vs->perm & 0777;
flags = omode_to_uflags(vs->mode) | O_CREAT;
return s->ops->open2(&s->ctx, vs->fullname.data, flags, &cred);
}
| false | qemu | c1568af597d71b2171c9b2ffffb336c2fdee205e | static int v9fs_do_open2(V9fsState *s, V9fsCreateState *vs)
{
FsCred cred;
int flags;
cred_init(&cred);
cred.fc_uid = vs->fidp->uid;
cred.fc_mode = vs->perm & 0777;
flags = omode_to_uflags(vs->mode) | O_CREAT;
return s->ops->open2(&s->ctx, vs->fullname.data, flags, &cred);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(V9fsState *VAR_0, V9fsCreateState *VAR_1)
{
FsCred cred;
int VAR_2;
cred_init(&cred);
cred.fc_uid = VAR_1->fidp->uid;
cred.fc_mode = VAR_1->perm & 0777;
VAR_2 = omode_to_uflags(VAR_1->mode) | O_CREAT;
return VAR_0->ops->open2(&VAR_0->ctx, VAR_1->fullname.data, V... | [
"static int FUNC_0(V9fsState *VAR_0, V9fsCreateState *VAR_1)\n{",
"FsCred cred;",
"int VAR_2;",
"cred_init(&cred);",
"cred.fc_uid = VAR_1->fidp->uid;",
"cred.fc_mode = VAR_1->perm & 0777;",
"VAR_2 = omode_to_uflags(VAR_1->mode) | O_CREAT;",
"return VAR_0->ops->open2(&VAR_0->ctx, VAR_1->fullname.data, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
]
] |
22,217 | static inline void RENAME(vu9_to_vu12)(const uint8_t *src1, const uint8_t *src2,
uint8_t *dst1, uint8_t *dst2,
long width, long height,
long srcStride1, long srcStride2,
... | false | FFmpeg | d1adad3cca407f493c3637e20ecd4f7124e69212 | static inline void RENAME(vu9_to_vu12)(const uint8_t *src1, const uint8_t *src2,
uint8_t *dst1, uint8_t *dst2,
long width, long height,
long srcStride1, long srcStride2,
... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(vu9_to_vu12)(const uint8_t *src1, const uint8_t *src2,
uint8_t *dst1, uint8_t *dst2,
long width, long height,
long srcStride1, long srcStride2,
... | [
"static inline void FUNC_0(vu9_to_vu12)(const uint8_t *src1, const uint8_t *src2,\nuint8_t *dst1, uint8_t *dst2,\nlong width, long height,\nlong srcStride1, long srcStride2,\nlong dstStride1, long dstStride2)\n{",
"x86_reg y;",
"long VAR_0,VAR_1,VAR_2;",
"VAR_1=width/2; VAR_2=height/2;",
"#if COMPILE_TEMPLA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19,
21,
23,
25,
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43,
45,
47,
49,
51,
53,
55,
57,
59,... |
22,218 | static TranslationBlock *tb_find_slow(target_ulong pc,
target_ulong cs_base,
uint64_t flags)
{
TranslationBlock *tb, **ptb1;
unsigned int h;
tb_page_addr_t phys_pc, phys_page1, phys_page2;
target_ulong virt_page2;
... | false | qemu | cea5f9a28faa528b6b1b117c9ab2d8828f473fef | static TranslationBlock *tb_find_slow(target_ulong pc,
target_ulong cs_base,
uint64_t flags)
{
TranslationBlock *tb, **ptb1;
unsigned int h;
tb_page_addr_t phys_pc, phys_page1, phys_page2;
target_ulong virt_page2;
... | {
"code": [],
"line_no": []
} | static TranslationBlock *FUNC_0(target_ulong pc,
target_ulong cs_base,
uint64_t flags)
{
TranslationBlock *tb, **ptb1;
unsigned int VAR_0;
tb_page_addr_t phys_pc, phys_page1, phys_page2;
target_ulong virt_page2;
tb... | [
"static TranslationBlock *FUNC_0(target_ulong pc,\ntarget_ulong cs_base,\nuint64_t flags)\n{",
"TranslationBlock *tb, **ptb1;",
"unsigned int VAR_0;",
"tb_page_addr_t phys_pc, phys_page1, phys_page2;",
"target_ulong virt_page2;",
"tb_invalidated_flag = 0;",
"phys_pc = get_page_addr_code(env, pc);",
"p... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43,
45,
47,
49
],
[
53
],
[
55,... |
22,219 | static int megasas_init_firmware(MegasasState *s, MegasasCmd *cmd)
{
uint32_t pa_hi, pa_lo;
target_phys_addr_t iq_pa, initq_size;
struct mfi_init_qinfo *initq;
uint32_t flags;
int ret = MFI_STAT_OK;
pa_lo = le32_to_cpu(cmd->frame->init.qinfo_new_addr_lo);
pa_hi = le32_to_cpu(cmd->f... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static int megasas_init_firmware(MegasasState *s, MegasasCmd *cmd)
{
uint32_t pa_hi, pa_lo;
target_phys_addr_t iq_pa, initq_size;
struct mfi_init_qinfo *initq;
uint32_t flags;
int ret = MFI_STAT_OK;
pa_lo = le32_to_cpu(cmd->frame->init.qinfo_new_addr_lo);
pa_hi = le32_to_cpu(cmd->f... | {
"code": [],
"line_no": []
} | static int FUNC_0(MegasasState *VAR_0, MegasasCmd *VAR_1)
{
uint32_t pa_hi, pa_lo;
target_phys_addr_t iq_pa, initq_size;
struct mfi_init_qinfo *VAR_2;
uint32_t flags;
int VAR_3 = MFI_STAT_OK;
pa_lo = le32_to_cpu(VAR_1->frame->init.qinfo_new_addr_lo);
pa_hi = le32_to_cpu(VAR_1->fram... | [
"static int FUNC_0(MegasasState *VAR_0, MegasasCmd *VAR_1)\n{",
"uint32_t pa_hi, pa_lo;",
"target_phys_addr_t iq_pa, initq_size;",
"struct mfi_init_qinfo *VAR_2;",
"uint32_t flags;",
"int VAR_3 = MFI_STAT_OK;",
"pa_lo = le32_to_cpu(VAR_1->frame->init.qinfo_new_addr_lo);",
"pa_hi = le32_to_cpu(VAR_1->f... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
22,220 | static void pmac_ide_writel (void *opaque,
target_phys_addr_t addr, uint32_t val)
{
MACIOIDEState *d = opaque;
addr = (addr & 0xFFF) >> 4;
val = bswap32(val);
if (addr == 0) {
ide_data_writel(&d->bus, 0, val);
}
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void pmac_ide_writel (void *opaque,
target_phys_addr_t addr, uint32_t val)
{
MACIOIDEState *d = opaque;
addr = (addr & 0xFFF) >> 4;
val = bswap32(val);
if (addr == 0) {
ide_data_writel(&d->bus, 0, val);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0 (void *VAR_0,
target_phys_addr_t VAR_1, uint32_t VAR_2)
{
MACIOIDEState *d = VAR_0;
VAR_1 = (VAR_1 & 0xFFF) >> 4;
VAR_2 = bswap32(VAR_2);
if (VAR_1 == 0) {
ide_data_writel(&d->bus, 0, VAR_2);
}
}
| [
"static void FUNC_0 (void *VAR_0,\ntarget_phys_addr_t VAR_1, uint32_t VAR_2)\n{",
"MACIOIDEState *d = VAR_0;",
"VAR_1 = (VAR_1 & 0xFFF) >> 4;",
"VAR_2 = bswap32(VAR_2);",
"if (VAR_1 == 0) {",
"ide_data_writel(&d->bus, 0, VAR_2);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
22,221 | static void control_out(VirtIODevice *vdev, VirtQueue *vq)
{
VirtQueueElement elem;
VirtIOSerial *vser;
uint8_t *buf;
size_t len;
vser = VIRTIO_SERIAL(vdev);
len = 0;
buf = NULL;
while (virtqueue_pop(vq, &elem)) {
size_t cur_len;
cur_len = iov_size(elem.o... | false | qemu | 51b19ebe4320f3dcd93cea71235c1219318ddfd2 | static void control_out(VirtIODevice *vdev, VirtQueue *vq)
{
VirtQueueElement elem;
VirtIOSerial *vser;
uint8_t *buf;
size_t len;
vser = VIRTIO_SERIAL(vdev);
len = 0;
buf = NULL;
while (virtqueue_pop(vq, &elem)) {
size_t cur_len;
cur_len = iov_size(elem.o... | {
"code": [],
"line_no": []
} | static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)
{
VirtQueueElement elem;
VirtIOSerial *vser;
uint8_t *buf;
size_t len;
vser = VIRTIO_SERIAL(VAR_0);
len = 0;
buf = NULL;
while (virtqueue_pop(VAR_1, &elem)) {
size_t cur_len;
cur_len = iov_size(ele... | [
"static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)\n{",
"VirtQueueElement elem;",
"VirtIOSerial *vser;",
"uint8_t *buf;",
"size_t len;",
"vser = VIRTIO_SERIAL(VAR_0);",
"len = 0;",
"buf = NULL;",
"while (virtqueue_pop(VAR_1, &elem)) {",
"size_t cur_len;",
"cur_len = iov_size(elem.out_sg,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
],
[
59
... |
22,224 | static int disas_thumb2_insn(CPUARMState *env, DisasContext *s, uint16_t insn_hw1)
{
uint32_t insn, imm, shift, offset;
uint32_t rd, rn, rm, rs;
TCGv_i32 tmp;
TCGv_i32 tmp2;
TCGv_i32 tmp3;
TCGv_i32 addr;
TCGv_i64 tmp64;
int op;
int shiftop;
int conds;
int logic_cc... | true | qemu | e0c270d946dc8efd723129b6a9d956b3084b55b1 | static int disas_thumb2_insn(CPUARMState *env, DisasContext *s, uint16_t insn_hw1)
{
uint32_t insn, imm, shift, offset;
uint32_t rd, rn, rm, rs;
TCGv_i32 tmp;
TCGv_i32 tmp2;
TCGv_i32 tmp3;
TCGv_i32 addr;
TCGv_i64 tmp64;
int op;
int shiftop;
int conds;
int logic_cc... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUARMState *VAR_0, DisasContext *VAR_1, uint16_t VAR_2)
{
uint32_t insn, imm, shift, offset;
uint32_t rd, rn, rm, rs;
TCGv_i32 tmp;
TCGv_i32 tmp2;
TCGv_i32 tmp3;
TCGv_i32 addr;
TCGv_i64 tmp64;
int VAR_3;
int VAR_4;
int VAR_5;
int VAR_6;
i... | [
"static int FUNC_0(CPUARMState *VAR_0, DisasContext *VAR_1, uint16_t VAR_2)\n{",
"uint32_t insn, imm, shift, offset;",
"uint32_t rd, rn, rm, rs;",
"TCGv_i32 tmp;",
"TCGv_i32 tmp2;",
"TCGv_i32 tmp3;",
"TCGv_i32 addr;",
"TCGv_i64 tmp64;",
"int VAR_3;",
"int VAR_4;",
"int VAR_5;",
"int VAR_6;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[... |
22,225 | static int hevc_decode_nal_units(const uint8_t *buf, int buf_size, HEVCParamSets *ps,
int is_nalff, int nal_length_size, void *logctx)
{
int i;
int ret = 0;
H2645Packet pkt = { 0 };
ret = ff_h2645_packet_split(&pkt, buf, buf_size, logctx, is_nalff, nal_length_siz... | true | FFmpeg | 159ab4625bd3641e79b564335be8069dca881978 | static int hevc_decode_nal_units(const uint8_t *buf, int buf_size, HEVCParamSets *ps,
int is_nalff, int nal_length_size, void *logctx)
{
int i;
int ret = 0;
H2645Packet pkt = { 0 };
ret = ff_h2645_packet_split(&pkt, buf, buf_size, logctx, is_nalff, nal_length_siz... | {
"code": [
" int is_nalff, int nal_length_size, void *logctx)",
" case HEVC_NAL_VPS: ff_hevc_decode_nal_vps(&nal->gb, logctx, ps); break;",
" case HEVC_NAL_SPS: ff_hevc_decode_nal_sps(&nal->gb, logctx, ps, 1); break;",
" case HEVC_NAL_PPS: ff_he... | static int FUNC_0(const uint8_t *VAR_0, int VAR_1, HEVCParamSets *VAR_2,
int VAR_3, int VAR_4, void *VAR_5)
{
int VAR_6;
int VAR_7 = 0;
H2645Packet pkt = { 0 };
VAR_7 = ff_h2645_packet_split(&pkt, VAR_0, VAR_1, VAR_5, VAR_3, VAR_4, AV_CODEC_ID_HEVC, 1);
if (... | [
"static int FUNC_0(const uint8_t *VAR_0, int VAR_1, HEVCParamSets *VAR_2,\nint VAR_3, int VAR_4, void *VAR_5)\n{",
"int VAR_6;",
"int VAR_7 = 0;",
"H2645Packet pkt = { 0 };",
"VAR_7 = ff_h2645_packet_split(&pkt, VAR_0, VAR_1, VAR_5, VAR_3, VAR_4, AV_CODEC_ID_HEVC, 1);",
"if (VAR_7 < 0) {",
"goto done;",... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
53,... |
22,227 | static void test_qemu_strtoll_full_max(void)
{
const char *str = g_strdup_printf("%lld", LLONG_MAX);
int64_t res;
int err;
err = qemu_strtoll(str, NULL, 0, &res);
g_assert_cmpint(err, ==, 0);
g_assert_cmpint(res, ==, LLONG_MAX);
}
| true | qemu | d6f723b513a0c3c4e58343b7c52a2f9850861fa0 | static void test_qemu_strtoll_full_max(void)
{
const char *str = g_strdup_printf("%lld", LLONG_MAX);
int64_t res;
int err;
err = qemu_strtoll(str, NULL, 0, &res);
g_assert_cmpint(err, ==, 0);
g_assert_cmpint(res, ==, LLONG_MAX);
}
| {
"code": [
" const char *str = g_strdup_printf(\"%lld\", LLONG_MAX);",
" const char *str = g_strdup_printf(\"%lld\", LLONG_MAX);"
],
"line_no": [
7,
7
]
} | static void FUNC_0(void)
{
const char *VAR_0 = g_strdup_printf("%lld", LLONG_MAX);
int64_t res;
int VAR_1;
VAR_1 = qemu_strtoll(VAR_0, NULL, 0, &res);
g_assert_cmpint(VAR_1, ==, 0);
g_assert_cmpint(res, ==, LLONG_MAX);
}
| [
"static void FUNC_0(void)\n{",
"const char *VAR_0 = g_strdup_printf(\"%lld\", LLONG_MAX);",
"int64_t res;",
"int VAR_1;",
"VAR_1 = qemu_strtoll(VAR_0, NULL, 0, &res);",
"g_assert_cmpint(VAR_1, ==, 0);",
"g_assert_cmpint(res, ==, LLONG_MAX);",
"}"
] | [
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
7
],
[
9
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
]
] |
22,228 | static int dump_init(DumpState *s, int fd, bool paging, bool has_filter,
int64_t begin, int64_t length, Error **errp)
{
CPUState *cpu;
int nr_cpus;
Error *err = NULL;
int ret;
if (runstate_is_running()) {
vm_stop(RUN_STATE_SAVE_VM);
s->resume = true;
... | true | qemu | b53ccc30c40df52d192e469a86c188a8649c6df3 | static int dump_init(DumpState *s, int fd, bool paging, bool has_filter,
int64_t begin, int64_t length, Error **errp)
{
CPUState *cpu;
int nr_cpus;
Error *err = NULL;
int ret;
if (runstate_is_running()) {
vm_stop(RUN_STATE_SAVE_VM);
s->resume = true;
... | {
"code": [
"static int dump_init(DumpState *s, int fd, bool paging, bool has_filter,"
],
"line_no": [
1
]
} | static int FUNC_0(DumpState *VAR_0, int VAR_1, bool VAR_2, bool VAR_3,
int64_t VAR_4, int64_t VAR_5, Error **VAR_6)
{
CPUState *cpu;
int VAR_7;
Error *err = NULL;
int VAR_8;
if (runstate_is_running()) {
vm_stop(RUN_STATE_SAVE_VM);
VAR_0->resume = true;... | [
"static int FUNC_0(DumpState *VAR_0, int VAR_1, bool VAR_2, bool VAR_3,\nint64_t VAR_4, int64_t VAR_5, Error **VAR_6)\n{",
"CPUState *cpu;",
"int VAR_7;",
"Error *err = NULL;",
"int VAR_8;",
"if (runstate_is_running()) {",
"vm_stop(RUN_STATE_SAVE_VM);",
"VAR_0->resume = true;",
"} else {",
"VAR_0-... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[... |
22,229 | static void crs_replace_with_free_ranges(GPtrArray *ranges,
uint64_t start, uint64_t end)
{
GPtrArray *free_ranges = g_ptr_array_new_with_free_func(crs_range_free);
uint64_t free_base = start;
int i;
g_ptr_array_sort(ranges, crs_range_compare);
for (... | true | qemu | 354fb471bd5faf527f3fa25388b8cffa6bd937d0 | static void crs_replace_with_free_ranges(GPtrArray *ranges,
uint64_t start, uint64_t end)
{
GPtrArray *free_ranges = g_ptr_array_new_with_free_func(crs_range_free);
uint64_t free_base = start;
int i;
g_ptr_array_sort(ranges, crs_range_compare);
for (... | {
"code": [
" GPtrArray *free_ranges = g_ptr_array_new_with_free_func(crs_range_free);",
" g_ptr_array_free(free_ranges, false);"
],
"line_no": [
7,
55
]
} | static void FUNC_0(GPtrArray *VAR_0,
uint64_t VAR_1, uint64_t VAR_2)
{
GPtrArray *free_ranges = g_ptr_array_new_with_free_func(crs_range_free);
uint64_t free_base = VAR_1;
int VAR_3;
g_ptr_array_sort(VAR_0, crs_range_compare);
for (VAR_3 = 0; VAR_3 <... | [
"static void FUNC_0(GPtrArray *VAR_0,\nuint64_t VAR_1, uint64_t VAR_2)\n{",
"GPtrArray *free_ranges = g_ptr_array_new_with_free_func(crs_range_free);",
"uint64_t free_base = VAR_1;",
"int VAR_3;",
"g_ptr_array_sort(VAR_0, crs_range_compare);",
"for (VAR_3 = 0; VAR_3 < VAR_0->len; VAR_3++) {",
"CrsRangeE... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
22,230 | static ssize_t qio_channel_websock_decode_payload(QIOChannelWebsock *ioc,
Error **errp)
{
size_t i;
size_t payload_len;
uint32_t *payload32;
if (!ioc->payload_remain) {
error_setg(errp,
"Decoding payload but no bytes ... | true | qemu | eefa3d8ef649f9055611361e2201cca49f8c3433 | static ssize_t qio_channel_websock_decode_payload(QIOChannelWebsock *ioc,
Error **errp)
{
size_t i;
size_t payload_len;
uint32_t *payload32;
if (!ioc->payload_remain) {
error_setg(errp,
"Decoding payload but no bytes ... | {
"code": [
"static ssize_t qio_channel_websock_decode_payload(QIOChannelWebsock *ioc,",
" Error **errp)",
" return payload_len;"
],
"line_no": [
1,
3,
85
]
} | static ssize_t FUNC_0(QIOChannelWebsock *ioc,
Error **errp)
{
size_t i;
size_t payload_len;
uint32_t *payload32;
if (!ioc->payload_remain) {
error_setg(errp,
"Decoding payload but no bytes of payload remain");
... | [
"static ssize_t FUNC_0(QIOChannelWebsock *ioc,\nError **errp)\n{",
"size_t i;",
"size_t payload_len;",
"uint32_t *payload32;",
"if (!ioc->payload_remain) {",
"error_setg(errp,\n\"Decoding payload but no bytes of payload remain\");",
"return -1;",
"}",
"if (ioc->encinput.offset < ioc->payload_remain)... | [
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,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
61
],
[
63
... |
22,231 | static int load_sofa(AVFilterContext *ctx, char *filename, int *samplingrate)
{
struct SOFAlizerContext *s = ctx->priv;
/* variables associated with content of SOFA file: */
int ncid, n_dims, n_vars, n_gatts, n_unlim_dim_id, status;
char data_delay_dim_name[NC_MAX_NAME];
float *sp_a, *sp_e, *s... | true | FFmpeg | 21234c835d2d003d390d462b6e1b2622e7b02c39 | static int load_sofa(AVFilterContext *ctx, char *filename, int *samplingrate)
{
struct SOFAlizerContext *s = ctx->priv;
int ncid, n_dims, n_vars, n_gatts, n_unlim_dim_id, status;
char data_delay_dim_name[NC_MAX_NAME];
float *sp_a, *sp_e, *sp_r, *data_ir;
char *sofa_conventions;
char... | {
"code": [
" data_ir = s->sofa.data_ir = av_malloc_array(m_dim * n_samples, sizeof(float) * 2);"
],
"line_no": [
323
]
} | static int FUNC_0(AVFilterContext *VAR_0, char *VAR_1, int *VAR_2)
{
struct SOFAlizerContext *VAR_3 = VAR_0->priv;
int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
char VAR_10[NC_MAX_NAME];
float *VAR_11, *VAR_12, *VAR_13, *VAR_14;
char *VAR_15;
char VAR_16[NC_MAX_NAME];
size_t... | [
"static int FUNC_0(AVFilterContext *VAR_0, char *VAR_1, int *VAR_2)\n{",
"struct SOFAlizerContext *VAR_3 = VAR_0->priv;",
"int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"char VAR_10[NC_MAX_NAME];",
"float *VAR_11, *VAR_12, *VAR_13, *VAR_14;",
"char *VAR_15;",
"char VAR_16[NC_MAX_NAME];",
"size_t *di... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43... |
22,232 | static void create_flash(const VirtBoardInfo *vbi)
{
/* Create two flash devices to fill the VIRT_FLASH space in the memmap.
* Any file passed via -bios goes in the first of these.
*/
hwaddr flashsize = vbi->memmap[VIRT_FLASH].size / 2;
hwaddr flashbase = vbi->memmap[VIRT_FLASH].base;
c... | true | qemu | c408d27a42318227092128b04cca555f78cf703d | static void create_flash(const VirtBoardInfo *vbi)
{
hwaddr flashsize = vbi->memmap[VIRT_FLASH].size / 2;
hwaddr flashbase = vbi->memmap[VIRT_FLASH].base;
char *nodename;
if (bios_name) {
char *fn;
int image_size;
if (drive_get(IF_PFLASH, 0, 0)) {
... | {
"code": [
" g_free(fn);"
],
"line_no": [
51
]
} | static void FUNC_0(const VirtBoardInfo *VAR_0)
{
hwaddr flashsize = VAR_0->memmap[VIRT_FLASH].size / 2;
hwaddr flashbase = VAR_0->memmap[VIRT_FLASH].base;
char *VAR_1;
if (bios_name) {
char *VAR_2;
int VAR_3;
if (drive_get(IF_PFLASH, 0, 0)) {
er... | [
"static void FUNC_0(const VirtBoardInfo *VAR_0)\n{",
"hwaddr flashsize = VAR_0->memmap[VIRT_FLASH].size / 2;",
"hwaddr flashbase = VAR_0->memmap[VIRT_FLASH].base;",
"char *VAR_1;",
"if (bios_name) {",
"char *VAR_2;",
"int VAR_3;",
"if (drive_get(IF_PFLASH, 0, 0)) {",
"error_report(\"The contents of ... | [
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
] | [
[
1,
3
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29,
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
... |
22,233 | void mips_malta_init(QEMUMachineInitArgs *args)
{
ram_addr_t ram_size = args->ram_size;
const char *cpu_model = args->cpu_model;
const char *kernel_filename = args->kernel_filename;
const char *kernel_cmdline = args->kernel_cmdline;
const char *initrd_filename = args->initrd_filename;
char *file... | true | qemu | cc413a39355ed910f22f8f0be5e233c08a0773a0 | void mips_malta_init(QEMUMachineInitArgs *args)
{
ram_addr_t ram_size = args->ram_size;
const char *cpu_model = args->cpu_model;
const char *kernel_filename = args->kernel_filename;
const char *kernel_cmdline = args->kernel_cmdline;
const char *initrd_filename = args->initrd_filename;
char *file... | {
"code": [],
"line_no": []
} | void FUNC_0(QEMUMachineInitArgs *VAR_0)
{
ram_addr_t ram_size = VAR_0->ram_size;
const char *VAR_1 = VAR_0->VAR_1;
const char *VAR_2 = VAR_0->VAR_2;
const char *VAR_3 = VAR_0->VAR_3;
const char *VAR_4 = VAR_0->VAR_4;
char *VAR_5;
pflash_t *fl;
MemoryRegion *system_memory = get_system_mem... | [
"void FUNC_0(QEMUMachineInitArgs *VAR_0)\n{",
"ram_addr_t ram_size = VAR_0->ram_size;",
"const char *VAR_1 = VAR_0->VAR_1;",
"const char *VAR_2 = VAR_0->VAR_2;",
"const char *VAR_3 = VAR_0->VAR_3;",
"const char *VAR_4 = VAR_0->VAR_4;",
"char *VAR_5;",
"pflash_t *fl;",
"MemoryRegion *system_memory = ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,234 | static qemu_irq *ppce500_init_mpic(PPCE500Params *params, MemoryRegion *ccsr,
qemu_irq **irqs)
{
QemuOptsList *list;
qemu_irq *mpic;
DeviceState *dev = NULL;
SysBusDevice *s;
int i;
mpic = g_new(qemu_irq, 256);
if (kvm_enabled()) {
boo... | true | qemu | 36ad0e948e15d8d86c8dec1c17a8588d87b0107d | static qemu_irq *ppce500_init_mpic(PPCE500Params *params, MemoryRegion *ccsr,
qemu_irq **irqs)
{
QemuOptsList *list;
qemu_irq *mpic;
DeviceState *dev = NULL;
SysBusDevice *s;
int i;
mpic = g_new(qemu_irq, 256);
if (kvm_enabled()) {
boo... | {
"code": [
" QemuOptsList *list;",
" bool irqchip_allowed = true, irqchip_required = false;",
" list = qemu_find_opts(\"machine\");",
" if (!QTAILQ_EMPTY(&list->head)) {",
" irqchip_allowed = qemu_opt_get_bool(QTAILQ_FIRST(&list->head),",
" irqchi... | static qemu_irq *FUNC_0(PPCE500Params *params, MemoryRegion *ccsr,
qemu_irq **irqs)
{
QemuOptsList *list;
qemu_irq *mpic;
DeviceState *dev = NULL;
SysBusDevice *s;
int VAR_0;
mpic = g_new(qemu_irq, 256);
if (kvm_enabled()) {
bool irqch... | [
"static qemu_irq *FUNC_0(PPCE500Params *params, MemoryRegion *ccsr,\nqemu_irq **irqs)\n{",
"QemuOptsList *list;",
"qemu_irq *mpic;",
"DeviceState *dev = NULL;",
"SysBusDevice *s;",
"int VAR_0;",
"mpic = g_new(qemu_irq, 256);",
"if (kvm_enabled()) {",
"bool irqchip_allowed = true, irqchip_required = ... | [
0,
1,
0,
0,
0,
0,
0,
0,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33,
35
],
[
37,
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
53
],
[... |
22,235 | static char *spapr_get_fw_dev_path(FWPathProvider *p, BusState *bus,
DeviceState *dev)
{
#define CAST(type, obj, name) \
((type *)object_dynamic_cast(OBJECT(obj), (name)))
SCSIDevice *d = CAST(SCSIDevice, dev, TYPE_SCSI_DEVICE);
sPAPRPHBState *phb = CAST(sPAPRPHBSta... | true | qemu | bac658d1a4dc9dd637b2eb5006abda137071f17f | static char *spapr_get_fw_dev_path(FWPathProvider *p, BusState *bus,
DeviceState *dev)
{
#define CAST(type, obj, name) \
((type *)object_dynamic_cast(OBJECT(obj), (name)))
SCSIDevice *d = CAST(SCSIDevice, dev, TYPE_SCSI_DEVICE);
sPAPRPHBState *phb = CAST(sPAPRPHBSta... | {
"code": [],
"line_no": []
} | static char *FUNC_0(FWPathProvider *VAR_0, BusState *VAR_1,
DeviceState *VAR_2)
{
#define CAST(type, obj, name) \
((type *)object_dynamic_cast(OBJECT(obj), (name)))
SCSIDevice *d = CAST(SCSIDevice, VAR_2, TYPE_SCSI_DEVICE);
sPAPRPHBState *phb = CAST(sPAPRPHBState, V... | [
"static char *FUNC_0(FWPathProvider *VAR_0, BusState *VAR_1,\nDeviceState *VAR_2)\n{",
"#define CAST(type, obj, name) \\\n((type *)object_dynamic_cast(OBJECT(obj), (name)))\nSCSIDevice *d = CAST(SCSIDevice, VAR_2, TYPE_SCSI_DEVICE);",
"sPAPRPHBState *phb = CAST(sPAPRPHBState, VAR_2, TYPE_SPAPR_PCI_HOST_BRIDGE)... | [
0,
0,
0,
0,
0,
0,
0,
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
],
[
41
],
[
43,
45
],
[
47
],
[
63
],
[
69,
71
],
[
73
],
[
83
],
[
85
],
[... |
22,237 | static int qemu_rdma_alloc_qp(RDMAContext *rdma)
{
struct ibv_qp_init_attr attr = { 0 };
int ret;
attr.cap.max_send_wr = RDMA_SIGNALED_SEND_MAX;
attr.cap.max_recv_wr = 3;
attr.cap.max_send_sge = 1;
attr.cap.max_recv_sge = 1;
attr.send_cq = rdma->cq;
attr.recv_cq = rdma->cq;
... | true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static int qemu_rdma_alloc_qp(RDMAContext *rdma)
{
struct ibv_qp_init_attr attr = { 0 };
int ret;
attr.cap.max_send_wr = RDMA_SIGNALED_SEND_MAX;
attr.cap.max_recv_wr = 3;
attr.cap.max_send_sge = 1;
attr.cap.max_recv_sge = 1;
attr.send_cq = rdma->cq;
attr.recv_cq = rdma->cq;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(RDMAContext *VAR_0)
{
struct ibv_qp_init_attr VAR_1 = { 0 };
int VAR_2;
VAR_1.cap.max_send_wr = RDMA_SIGNALED_SEND_MAX;
VAR_1.cap.max_recv_wr = 3;
VAR_1.cap.max_send_sge = 1;
VAR_1.cap.max_recv_sge = 1;
VAR_1.send_cq = VAR_0->cq;
VAR_1.recv_cq = VAR_0->cq;
... | [
"static int FUNC_0(RDMAContext *VAR_0)\n{",
"struct ibv_qp_init_attr VAR_1 = { 0 };",
"int VAR_2;",
"VAR_1.cap.max_send_wr = RDMA_SIGNALED_SEND_MAX;",
"VAR_1.cap.max_recv_wr = 3;",
"VAR_1.cap.max_send_sge = 1;",
"VAR_1.cap.max_recv_sge = 1;",
"VAR_1.send_cq = VAR_0->cq;",
"VAR_1.recv_cq = VAR_0->cq;... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
]
] |
22,238 | static void qio_channel_websock_handshake_process(QIOChannelWebsock *ioc,
char *buffer,
Error **errp)
{
QIOChannelWebsockHTTPHeader hdrs[32];
size_t nhdrs = G_N_ELEMENTS(hdrs);
const char *protocols = N... | true | qemu | 6d5d23b00709510d55711661c7ca41408fd9934e | static void qio_channel_websock_handshake_process(QIOChannelWebsock *ioc,
char *buffer,
Error **errp)
{
QIOChannelWebsockHTTPHeader hdrs[32];
size_t nhdrs = G_N_ELEMENTS(hdrs);
const char *protocols = N... | {
"code": [
" if (strcasecmp(connection, QIO_CHANNEL_WEBSOCK_CONNECTION_UPGRADE) != 0) {"
],
"line_no": [
149
]
} | static void FUNC_0(QIOChannelWebsock *VAR_0,
char *VAR_1,
Error **VAR_2)
{
QIOChannelWebsockHTTPHeader hdrs[32];
size_t nhdrs = G_N_ELEMENTS(hdrs);
const char *VAR_3 = NULL, *VAR_4 = NULL, *VAR_5 = NULL... | [
"static void FUNC_0(QIOChannelWebsock *VAR_0,\nchar *VAR_1,\nError **VAR_2)\n{",
"QIOChannelWebsockHTTPHeader hdrs[32];",
"size_t nhdrs = G_N_ELEMENTS(hdrs);",
"const char *VAR_3 = NULL, *VAR_4 = NULL, *VAR_5 = NULL,\n*VAR_6 = NULL, *VAR_7 = NULL, *VAR_8 = NULL;",
"nhdrs = qio_channel_websock_extract_header... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13,
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43,
45
],
[
47
],
[
49
],
[
51
],
[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.