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 |
|---|---|---|---|---|---|---|---|---|---|---|
14,810 | block_crypto_open_opts_init(QCryptoBlockFormat format,
QemuOpts *opts,
Error **errp)
{
Visitor *v;
QCryptoBlockOpenOptions *ret = NULL;
Error *local_err = NULL;
ret = g_new0(QCryptoBlockOpenOptions, 1);
ret->format = format;
v ... | false | qemu | 306a06e5f766acaf26b71397a5692c65b65a61c7 | block_crypto_open_opts_init(QCryptoBlockFormat format,
QemuOpts *opts,
Error **errp)
{
Visitor *v;
QCryptoBlockOpenOptions *ret = NULL;
Error *local_err = NULL;
ret = g_new0(QCryptoBlockOpenOptions, 1);
ret->format = format;
v ... | {
"code": [],
"line_no": []
} | FUNC_0(QCryptoBlockFormat VAR_0,
QemuOpts *VAR_1,
Error **VAR_2)
{
Visitor *v;
QCryptoBlockOpenOptions *ret = NULL;
Error *local_err = NULL;
ret = g_new0(QCryptoBlockOpenOptions, 1);
ret->VAR_0 = VAR_0;
v = opts_visitor_new(VAR... | [
"FUNC_0(QCryptoBlockFormat VAR_0,\nQemuOpts *VAR_1,\nError **VAR_2)\n{",
"Visitor *v;",
"QCryptoBlockOpenOptions *ret = NULL;",
"Error *local_err = NULL;",
"ret = g_new0(QCryptoBlockOpenOptions, 1);",
"ret->VAR_0 = VAR_0;",
"v = opts_visitor_new(VAR_1);",
"visit_start_struct(v, NULL, NULL, 0, &local_e... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39,
41,
43
],
[
45
],
[
49,
51
],
[
53
],
[
55
],
[... |
14,811 | gen_intermediate_code_internal(CRISCPU *cpu, TranslationBlock *tb,
bool search_pc)
{
CPUState *cs = CPU(cpu);
CPUCRISState *env = &cpu->env;
uint32_t pc_start;
unsigned int insn_len;
int j, lj;
struct DisasContext ctx;
struct DisasContext *dc = &ctx;
... | false | qemu | 42a268c241183877192c376d03bd9b6d527407c7 | gen_intermediate_code_internal(CRISCPU *cpu, TranslationBlock *tb,
bool search_pc)
{
CPUState *cs = CPU(cpu);
CPUCRISState *env = &cpu->env;
uint32_t pc_start;
unsigned int insn_len;
int j, lj;
struct DisasContext ctx;
struct DisasContext *dc = &ctx;
... | {
"code": [],
"line_no": []
} | FUNC_0(CRISCPU *VAR_0, TranslationBlock *VAR_1,
bool VAR_2)
{
CPUState *cs = CPU(VAR_0);
CPUCRISState *env = &VAR_0->env;
uint32_t pc_start;
unsigned int VAR_3;
int VAR_4, VAR_5;
struct DisasContext VAR_6;
struct DisasContext *VAR_7 = &VAR_6;
uint... | [
"FUNC_0(CRISCPU *VAR_0, TranslationBlock *VAR_1,\nbool VAR_2)\n{",
"CPUState *cs = CPU(VAR_0);",
"CPUCRISState *env = &VAR_0->env;",
"uint32_t pc_start;",
"unsigned int VAR_3;",
"int VAR_4, VAR_5;",
"struct DisasContext VAR_6;",
"struct DisasContext *VAR_7 = &VAR_6;",
"uint32_t next_page_start;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
14,812 | uint64_t float64_to_uint64_round_to_zero (float64 a STATUS_PARAM)
{
int64_t v;
v = int64_to_float64(INT64_MIN STATUS_VAR);
v = float64_to_int64_round_to_zero((a + v) STATUS_VAR);
return v - INT64_MIN;
}
| false | qemu | f090c9d4ad5812fb92843d6470a1111c15190c4c | uint64_t float64_to_uint64_round_to_zero (float64 a STATUS_PARAM)
{
int64_t v;
v = int64_to_float64(INT64_MIN STATUS_VAR);
v = float64_to_int64_round_to_zero((a + v) STATUS_VAR);
return v - INT64_MIN;
}
| {
"code": [],
"line_no": []
} | uint64_t FUNC_0 (float64 a STATUS_PARAM)
{
int64_t v;
v = int64_to_float64(INT64_MIN STATUS_VAR);
v = float64_to_int64_round_to_zero((a + v) STATUS_VAR);
return v - INT64_MIN;
}
| [
"uint64_t FUNC_0 (float64 a STATUS_PARAM)\n{",
"int64_t v;",
"v = int64_to_float64(INT64_MIN STATUS_VAR);",
"v = float64_to_int64_round_to_zero((a + v) STATUS_VAR);",
"return v - INT64_MIN;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
]
] |
14,815 | static AHCIQState *ahci_boot(void)
{
AHCIQState *s;
const char *cli;
s = g_malloc0(sizeof(AHCIQState));
cli = "-drive if=none,id=drive0,file=%s,cache=writeback,serial=%s"
",format=raw"
" -M q35 "
"-device ide-hd,drive=drive0 "
"-global ide-hd.ver=%s";
s-... | true | qemu | 259342d34dbdfb304374f569feec26317edd97c9 | static AHCIQState *ahci_boot(void)
{
AHCIQState *s;
const char *cli;
s = g_malloc0(sizeof(AHCIQState));
cli = "-drive if=none,id=drive0,file=%s,cache=writeback,serial=%s"
",format=raw"
" -M q35 "
"-device ide-hd,drive=drive0 "
"-global ide-hd.ver=%s";
s-... | {
"code": [],
"line_no": []
} | static AHCIQState *FUNC_0(void)
{
AHCIQState *s;
const char *VAR_0;
s = g_malloc0(sizeof(AHCIQState));
VAR_0 = "-drive if=none,id=drive0,file=%s,cache=writeback,serial=%s"
",format=raw"
" -M q35 "
"-device ide-hd,drive=drive0 "
"-global ide-hd.ver=%s";
s... | [
"static AHCIQState *FUNC_0(void)\n{",
"AHCIQState *s;",
"const char *VAR_0;",
"s = g_malloc0(sizeof(AHCIQState));",
"VAR_0 = \"-drive if=none,id=drive0,file=%s,cache=writeback,serial=%s\"\n\",format=raw\"\n\" -M q35 \"\n\"-device ide-hd,drive=drive0 \"\n\"-global ide-hd.ver=%s\";",
"s->parent = qtest_pc_b... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15,
17,
19,
21,
23
],
[
25
],
[
32
],
[
36
],
[
38
]
] |
14,817 | static inline int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf,
int buf_size, AVCodecContext *avctx)
{
HEVCParserContext *ctx = s->priv_data;
HEVCContext *h = &ctx->h;
GetBitContext *gb;
SliceHeader *sh = &h->sh;
HEVCParamSets *ps ... | true | FFmpeg | bd6610c3b39e24ff3c3745cdfc5c69450bc7b0e5 | static inline int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf,
int buf_size, AVCodecContext *avctx)
{
HEVCParserContext *ctx = s->priv_data;
HEVCContext *h = &ctx->h;
GetBitContext *gb;
SliceHeader *sh = &h->sh;
HEVCParamSets *ps ... | {
"code": [
" init_get_bits8(gb, nal->data + 2, nal->size);"
],
"line_no": [
123
]
} | static inline int FUNC_0(AVCodecParserContext *VAR_0, const uint8_t *VAR_1,
int VAR_2, AVCodecContext *VAR_3)
{
HEVCParserContext *ctx = VAR_0->priv_data;
HEVCContext *h = &ctx->h;
GetBitContext *gb;
SliceHeader *sh = &h->sh;
HEVCParamSets *ps = ... | [
"static inline int FUNC_0(AVCodecParserContext *VAR_0, const uint8_t *VAR_1,\nint VAR_2, AVCodecContext *VAR_3)\n{",
"HEVCParserContext *ctx = VAR_0->priv_data;",
"HEVCContext *h = &ctx->h;",
"GetBitContext *gb;",
"SliceHeader *sh = &h->sh;",
"HEVCParamSets *ps = &h->ps;",
"HEVCPacke... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
33,
35
],
[
39
],
[
45
],
[
47
],
[
49
],
[
53
],
[... |
14,820 | static void decode_colskip(uint8_t* plane, int width, int height, int stride, VC9Context *v){
int x, y;
GetBitContext *gb = &v->s.gb;
for (x=0; x<width; x++){
if (!get_bits(gb, 1)) //colskip
for (y=0; y<height; y++)
plane[y*stride] = 0;
else
... | true | FFmpeg | 7cc84d241ba6ef8e27e4d057176a4ad385ad3d59 | static void decode_colskip(uint8_t* plane, int width, int height, int stride, VC9Context *v){
int x, y;
GetBitContext *gb = &v->s.gb;
for (x=0; x<width; x++){
if (!get_bits(gb, 1))
for (y=0; y<height; y++)
plane[y*stride] = 0;
else
for (y=0;... | {
"code": [
" GetBitContext *gb = &v->s.gb;",
"static void decode_colskip(uint8_t* plane, int width, int height, int stride, VC9Context *v){",
" GetBitContext *gb = &v->s.gb;"
],
"line_no": [
5,
1,
5
]
} | static void FUNC_0(uint8_t* VAR_0, int VAR_1, int VAR_2, int VAR_3, VC9Context *VAR_4){
int VAR_5, VAR_6;
GetBitContext *gb = &VAR_4->s.gb;
for (VAR_5=0; VAR_5<VAR_1; VAR_5++){
if (!get_bits(gb, 1))
for (VAR_6=0; VAR_6<VAR_2; VAR_6++)
VAR_0[VAR_6*VAR_3] = 0;
... | [
"static void FUNC_0(uint8_t* VAR_0, int VAR_1, int VAR_2, int VAR_3, VC9Context *VAR_4){",
"int VAR_5, VAR_6;",
"GetBitContext *gb = &VAR_4->s.gb;",
"for (VAR_5=0; VAR_5<VAR_1; VAR_5++){",
"if (!get_bits(gb, 1))\nfor (VAR_6=0; VAR_6<VAR_2; VAR_6++)",
"VAR_0[VAR_6*VAR_3] = 0;",
"else\nfor (VAR_6=0; VAR_6... | [
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1
],
[
3
],
[
5
],
[
9
],
[
11,
13
],
[
15
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
14,821 | gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb,
int search_pc)
{
DisasContext ctx;
target_ulong pc_start;
uint16_t *gen_opc_end;
int j, lj = -1;
if (search_pc && loglevel)
fprintf (logfile, "search pc %d\n", search_pc);
pc... | true | qemu | faf7aaa9183d5f2029ada291837a8716e9be127b | gen_intermediate_code_internal (CPUState *env, TranslationBlock *tb,
int search_pc)
{
DisasContext ctx;
target_ulong pc_start;
uint16_t *gen_opc_end;
int j, lj = -1;
if (search_pc && loglevel)
fprintf (logfile, "search pc %d\n", search_pc);
pc... | {
"code": [
" gen_opc_end = gen_opc_buf + OPC_MAX_SIZE;",
" while (ctx.bstate == BS_NONE && gen_opc_ptr < gen_opc_end) {"
],
"line_no": [
25,
75
]
} | FUNC_0 (CPUState *VAR_0, TranslationBlock *VAR_1,
int VAR_2)
{
DisasContext ctx;
target_ulong pc_start;
uint16_t *gen_opc_end;
int VAR_3, VAR_4 = -1;
if (VAR_2 && loglevel)
fprintf (logfile, "search pc %d\n", VAR_2);
pc_start = VAR_1->pc;
... | [
"FUNC_0 (CPUState *VAR_0, TranslationBlock *VAR_1,\nint VAR_2)\n{",
"DisasContext ctx;",
"target_ulong pc_start;",
"uint16_t *gen_opc_end;",
"int VAR_3, VAR_4 = -1;",
"if (VAR_2 && loglevel)\nfprintf (logfile, \"search pc %d\\n\", VAR_2);",
"pc_start = VAR_1->pc;",
"gen_opc_end = gen_opc_buf + OPC_MAX... | [
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17,
19
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41,
43
],
[
45,
47
],
[
49,
51,
53
... |
14,824 | e1000_autoneg_timer(void *opaque)
{
E1000State *s = opaque;
qemu_get_queue(s->nic)->link_down = false;
e1000_link_up(s);
s->phy_reg[PHY_STATUS] |= MII_SR_AUTONEG_COMPLETE;
DBGOUT(PHY, "Auto negotiation is completed\n");
}
| true | qemu | ddcb73b7782cb6104479503faea04cc224f982b5 | e1000_autoneg_timer(void *opaque)
{
E1000State *s = opaque;
qemu_get_queue(s->nic)->link_down = false;
e1000_link_up(s);
s->phy_reg[PHY_STATUS] |= MII_SR_AUTONEG_COMPLETE;
DBGOUT(PHY, "Auto negotiation is completed\n");
}
| {
"code": [
" qemu_get_queue(s->nic)->link_down = false;",
" e1000_link_up(s);"
],
"line_no": [
7,
9
]
} | FUNC_0(void *VAR_0)
{
E1000State *s = VAR_0;
qemu_get_queue(s->nic)->link_down = false;
e1000_link_up(s);
s->phy_reg[PHY_STATUS] |= MII_SR_AUTONEG_COMPLETE;
DBGOUT(PHY, "Auto negotiation is completed\n");
}
| [
"FUNC_0(void *VAR_0)\n{",
"E1000State *s = VAR_0;",
"qemu_get_queue(s->nic)->link_down = false;",
"e1000_link_up(s);",
"s->phy_reg[PHY_STATUS] |= MII_SR_AUTONEG_COMPLETE;",
"DBGOUT(PHY, \"Auto negotiation is completed\\n\");",
"}"
] | [
0,
0,
1,
1,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
14,825 | blkdebug_co_pwritev(BlockDriverState *bs, uint64_t offset, uint64_t bytes,
QEMUIOVector *qiov, int flags)
{
BDRVBlkdebugState *s = bs->opaque;
BlkdebugRule *rule = NULL;
QSIMPLEQ_FOREACH(rule, &s->active_rules, active_next) {
uint64_t inject_offset = rule->options.inject.offset;
... | true | qemu | e0ef439588ce1ede747f82b77d893190c1cc9f4d | blkdebug_co_pwritev(BlockDriverState *bs, uint64_t offset, uint64_t bytes,
QEMUIOVector *qiov, int flags)
{
BDRVBlkdebugState *s = bs->opaque;
BlkdebugRule *rule = NULL;
QSIMPLEQ_FOREACH(rule, &s->active_rules, active_next) {
uint64_t inject_offset = rule->options.inject.offset;
... | {
"code": [],
"line_no": []
} | FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t VAR_2,
QEMUIOVector *VAR_3, int VAR_4)
{
BDRVBlkdebugState *s = VAR_0->opaque;
BlkdebugRule *rule = NULL;
QSIMPLEQ_FOREACH(rule, &s->active_rules, active_next) {
uint64_t inject_offset = rule->options.inject.VAR_1;
... | [
"FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t VAR_2,\nQEMUIOVector *VAR_3, int VAR_4)\n{",
"BDRVBlkdebugState *s = VAR_0->opaque;",
"BlkdebugRule *rule = NULL;",
"QSIMPLEQ_FOREACH(rule, &s->active_rules, active_next) {",
"uint64_t inject_offset = rule->options.inject.VAR_1;",
"if (inject_offse... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8,
9,
10
],
[
11
],
[
12
],
[
13
],
[
14
]
] |
14,826 | static void vc1_h_overlap_c(uint8_t* src, int stride)
{
int i;
int a, b, c, d;
int d1, d2;
int rnd = 1;
for(i = 0; i < 8; i++) {
a = src[-2];
b = src[-1];
c = src[0];
d = src[1];
d1 = (a - d + 3 + rnd) >> 3;
d2 = (a - d + b - c + 4 - rnd) >... | true | FFmpeg | 5a446bc88e49cc6400d0c646ca1eb540a727c9de | static void vc1_h_overlap_c(uint8_t* src, int stride)
{
int i;
int a, b, c, d;
int d1, d2;
int rnd = 1;
for(i = 0; i < 8; i++) {
a = src[-2];
b = src[-1];
c = src[0];
d = src[1];
d1 = (a - d + 3 + rnd) >> 3;
d2 = (a - d + b - c + 4 - rnd) >... | {
"code": [
" src[0] = c + d2;",
" src[-1] = b - d2;",
" src[0] = c + d2;"
],
"line_no": [
33,
31,
33
]
} | static void FUNC_0(uint8_t* VAR_0, int VAR_1)
{
int VAR_2;
int VAR_3, VAR_4, VAR_5, VAR_6;
int VAR_7, VAR_8;
int VAR_9 = 1;
for(VAR_2 = 0; VAR_2 < 8; VAR_2++) {
VAR_3 = VAR_0[-2];
VAR_4 = VAR_0[-1];
VAR_5 = VAR_0[0];
VAR_6 = VAR_0[1];
VAR_7 = (VAR_3... | [
"static void FUNC_0(uint8_t* VAR_0, int VAR_1)\n{",
"int VAR_2;",
"int VAR_3, VAR_4, VAR_5, VAR_6;",
"int VAR_7, VAR_8;",
"int VAR_9 = 1;",
"for(VAR_2 = 0; VAR_2 < 8; VAR_2++) {",
"VAR_3 = VAR_0[-2];",
"VAR_4 = VAR_0[-1];",
"VAR_5 = VAR_0[0];",
"VAR_6 = VAR_0[1];",
"VAR_7 = (VAR_3 - VAR_6 + 3 + ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
1,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
14,827 | int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block,
int n, int coded, const uint8_t *scan_table)
{
int level, i, last, run, run_diff;
int av_uninit(dc_pred_dir);
RLTable *rl;
RL_VLC_ELEM *rl_vlc;
int qmul, qadd;
if (s->mb_intra) {
qmu... | true | FFmpeg | b4eb06d32535958d71568503cf886f448a5164ed | int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block,
int n, int coded, const uint8_t *scan_table)
{
int level, i, last, run, run_diff;
int av_uninit(dc_pred_dir);
RLTable *rl;
RL_VLC_ELEM *rl_vlc;
int qmul, qadd;
if (s->mb_intra) {
qmu... | {
"code": [
" else return -1;"
],
"line_no": [
39
]
} | int FUNC_0(MpegEncContext * VAR_0, int16_t * VAR_1,
int VAR_2, int VAR_3, const uint8_t *VAR_4)
{
int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;
int FUNC_1(dc_pred_dir);
RLTable *rl;
RL_VLC_ELEM *rl_vlc;
int VAR_10, VAR_11;
if (VAR_0->mb_intra) {
VAR_10=1... | [
"int FUNC_0(MpegEncContext * VAR_0, int16_t * VAR_1,\nint VAR_2, int VAR_3, const uint8_t *VAR_4)\n{",
"int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;",
"int FUNC_1(dc_pred_dir);",
"RLTable *rl;",
"RL_VLC_ELEM *rl_vlc;",
"int VAR_10, VAR_11;",
"if (VAR_0->mb_intra) {",
"VAR_10=1;",
"VAR_11=0;",
"VAR_5 = m... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
29
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49,
51
],
[... |
14,828 | static int svq1_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
SVQ1Context *s = avctx->priv_data;
AVFrame *cur = data;
uint8_t *current;
int resu... | true | FFmpeg | 7b588bb691644e1b3c168b99accf74248a24e3cf | static int svq1_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
SVQ1Context *s = avctx->priv_data;
AVFrame *cur = data;
uint8_t *current;
int resu... | {
"code": [
" uint32_t *src = (uint32_t *)(buf + 4);"
],
"line_no": [
45
]
} | static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
SVQ1Context *s = VAR_0->priv_data;
AVFrame *cur = VAR_1;
uint8_t *current;
int VAR_6, VAR_7, VAR... | [
"static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"SVQ1Context *s = VAR_0->priv_data;",
"AVFrame *cur = VAR_1;",
"uint8_t *current;",
"int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_1... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
25
],
[
31
],
[
35,
37
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
57
],
[
61
],
[
63
... |
14,830 | static void pci_get_node_name(char *nodename, int len, PCIDevice *dev)
{
int slot = PCI_SLOT(dev->devfn);
int func = PCI_FUNC(dev->devfn);
uint32_t ccode = pci_default_read_config(dev, PCI_CLASS_PROG, 3);
const char *name;
name = pci_find_device_name((ccode >> 16) & 0xff, (ccode >> 8) & 0xff... | false | qemu | 549ce59e2b9ed7f41d2f88524bd5e01b0d7db2e9 | static void pci_get_node_name(char *nodename, int len, PCIDevice *dev)
{
int slot = PCI_SLOT(dev->devfn);
int func = PCI_FUNC(dev->devfn);
uint32_t ccode = pci_default_read_config(dev, PCI_CLASS_PROG, 3);
const char *name;
name = pci_find_device_name((ccode >> 16) & 0xff, (ccode >> 8) & 0xff... | {
"code": [],
"line_no": []
} | static void FUNC_0(char *VAR_0, int VAR_1, PCIDevice *VAR_2)
{
int VAR_3 = PCI_SLOT(VAR_2->devfn);
int VAR_4 = PCI_FUNC(VAR_2->devfn);
uint32_t ccode = pci_default_read_config(VAR_2, PCI_CLASS_PROG, 3);
const char *VAR_5;
VAR_5 = pci_find_device_name((ccode >> 16) & 0xff, (ccode >> 8) & 0xff... | [
"static void FUNC_0(char *VAR_0, int VAR_1, PCIDevice *VAR_2)\n{",
"int VAR_3 = PCI_SLOT(VAR_2->devfn);",
"int VAR_4 = PCI_FUNC(VAR_2->devfn);",
"uint32_t ccode = pci_default_read_config(VAR_2, PCI_CLASS_PROG, 3);",
"const char *VAR_5;",
"VAR_5 = pci_find_device_name((ccode >> 16) & 0xff, (ccode >> 8) & 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
]
] |
14,831 | void kqemu_flush_page(CPUState *env, target_ulong addr)
{
LOG_INT("kqemu_flush_page: addr=" TARGET_FMT_lx "\n", addr);
if (nb_pages_to_flush >= KQEMU_MAX_PAGES_TO_FLUSH)
nb_pages_to_flush = KQEMU_FLUSH_ALL;
else
pages_to_flush[nb_pages_to_flush++] = addr;
}
| false | qemu | 4a1418e07bdcfaa3177739e04707ecaec75d89e1 | void kqemu_flush_page(CPUState *env, target_ulong addr)
{
LOG_INT("kqemu_flush_page: addr=" TARGET_FMT_lx "\n", addr);
if (nb_pages_to_flush >= KQEMU_MAX_PAGES_TO_FLUSH)
nb_pages_to_flush = KQEMU_FLUSH_ALL;
else
pages_to_flush[nb_pages_to_flush++] = addr;
}
| {
"code": [],
"line_no": []
} | void FUNC_0(CPUState *VAR_0, target_ulong VAR_1)
{
LOG_INT("FUNC_0: VAR_1=" TARGET_FMT_lx "\n", VAR_1);
if (nb_pages_to_flush >= KQEMU_MAX_PAGES_TO_FLUSH)
nb_pages_to_flush = KQEMU_FLUSH_ALL;
else
pages_to_flush[nb_pages_to_flush++] = VAR_1;
}
| [
"void FUNC_0(CPUState *VAR_0, target_ulong VAR_1)\n{",
"LOG_INT(\"FUNC_0: VAR_1=\" TARGET_FMT_lx \"\\n\", VAR_1);",
"if (nb_pages_to_flush >= KQEMU_MAX_PAGES_TO_FLUSH)\nnb_pages_to_flush = KQEMU_FLUSH_ALL;",
"else\npages_to_flush[nb_pages_to_flush++] = VAR_1;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11,
13
],
[
15
]
] |
14,832 | void helper_lcall_real_T0_T1(int shift, int next_eip)
{
int new_cs, new_eip;
uint32_t esp, esp_mask;
uint8_t *ssp;
new_cs = T0;
new_eip = T1;
esp = env->regs[R_ESP];
esp_mask = 0xffffffff;
if (!(env->segs[R_SS].flags & DESC_B_MASK))
esp_mask = 0xffff;
ssp = env->... | false | qemu | 3b22c4707decb706b10ce023534f8b79413ff9fe | void helper_lcall_real_T0_T1(int shift, int next_eip)
{
int new_cs, new_eip;
uint32_t esp, esp_mask;
uint8_t *ssp;
new_cs = T0;
new_eip = T1;
esp = env->regs[R_ESP];
esp_mask = 0xffffffff;
if (!(env->segs[R_SS].flags & DESC_B_MASK))
esp_mask = 0xffff;
ssp = env->... | {
"code": [],
"line_no": []
} | void FUNC_0(int VAR_0, int VAR_1)
{
int VAR_2, VAR_3;
uint32_t esp, esp_mask;
uint8_t *ssp;
VAR_2 = T0;
VAR_3 = T1;
esp = env->regs[R_ESP];
esp_mask = 0xffffffff;
if (!(env->segs[R_SS].flags & DESC_B_MASK))
esp_mask = 0xffff;
ssp = env->segs[R_SS].base;
if (... | [
"void FUNC_0(int VAR_0, int VAR_1)\n{",
"int VAR_2, VAR_3;",
"uint32_t esp, esp_mask;",
"uint8_t *ssp;",
"VAR_2 = T0;",
"VAR_3 = T1;",
"esp = env->regs[R_ESP];",
"esp_mask = 0xffffffff;",
"if (!(env->segs[R_SS].flags & DESC_B_MASK))\nesp_mask = 0xffff;",
"ssp = env->segs[R_SS].base;",
"if (VAR_0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
14,833 | static void handle_port_owner_write(EHCIState *s, int port, uint32_t owner)
{
USBDevice *dev = s->ports[port].dev;
uint32_t *portsc = &s->portsc[port];
uint32_t orig;
if (s->companion_ports[port] == NULL)
return;
owner = owner & PORTSC_POWNER;
orig = *portsc & PORTSC_POWNER;... | false | qemu | 891fb2cd4592b6fe76106a69e0ca40efbf82726a | static void handle_port_owner_write(EHCIState *s, int port, uint32_t owner)
{
USBDevice *dev = s->ports[port].dev;
uint32_t *portsc = &s->portsc[port];
uint32_t orig;
if (s->companion_ports[port] == NULL)
return;
owner = owner & PORTSC_POWNER;
orig = *portsc & PORTSC_POWNER;... | {
"code": [],
"line_no": []
} | static void FUNC_0(EHCIState *VAR_0, int VAR_1, uint32_t VAR_2)
{
USBDevice *dev = VAR_0->ports[VAR_1].dev;
uint32_t *portsc = &VAR_0->portsc[VAR_1];
uint32_t orig;
if (VAR_0->companion_ports[VAR_1] == NULL)
return;
VAR_2 = VAR_2 & PORTSC_POWNER;
orig = *portsc & PORTSC_POWN... | [
"static void FUNC_0(EHCIState *VAR_0, int VAR_1, uint32_t VAR_2)\n{",
"USBDevice *dev = VAR_0->ports[VAR_1].dev;",
"uint32_t *portsc = &VAR_0->portsc[VAR_1];",
"uint32_t orig;",
"if (VAR_0->companion_ports[VAR_1] == NULL)\nreturn;",
"VAR_2 = VAR_2 & PORTSC_POWNER;",
"orig = *portsc & PORTSC_POWNER;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13,
15
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51
],
[
53
]
] |
14,834 | static void test_visitor_out_native_list_str(TestOutputVisitorData *data,
const void *unused)
{
test_native_list(data, unused, USER_DEF_NATIVE_LIST_UNION_KIND_STRING);
}
| false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void test_visitor_out_native_list_str(TestOutputVisitorData *data,
const void *unused)
{
test_native_list(data, unused, USER_DEF_NATIVE_LIST_UNION_KIND_STRING);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(TestOutputVisitorData *VAR_0,
const void *VAR_1)
{
test_native_list(VAR_0, VAR_1, USER_DEF_NATIVE_LIST_UNION_KIND_STRING);
}
| [
"static void FUNC_0(TestOutputVisitorData *VAR_0,\nconst void *VAR_1)\n{",
"test_native_list(VAR_0, VAR_1, USER_DEF_NATIVE_LIST_UNION_KIND_STRING);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
14,835 | PCIBus *i440fx_init(const char *host_type, const char *pci_type,
PCII440FXState **pi440fx_state,
int *piix3_devfn,
ISABus **isa_bus, qemu_irq *pic,
MemoryRegion *address_space_mem,
MemoryRegion *address_space_io,
... | false | qemu | a0efbf16604770b9d805bcf210ec29942321134f | PCIBus *i440fx_init(const char *host_type, const char *pci_type,
PCII440FXState **pi440fx_state,
int *piix3_devfn,
ISABus **isa_bus, qemu_irq *pic,
MemoryRegion *address_space_mem,
MemoryRegion *address_space_io,
... | {
"code": [],
"line_no": []
} | PCIBus *FUNC_0(const char *host_type, const char *pci_type,
PCII440FXState **pi440fx_state,
int *piix3_devfn,
ISABus **isa_bus, qemu_irq *pic,
MemoryRegion *address_space_mem,
MemoryRegion *address_space_io,
... | [
"PCIBus *FUNC_0(const char *host_type, const char *pci_type,\nPCII440FXState **pi440fx_state,\nint *piix3_devfn,\nISABus **isa_bus, qemu_irq *pic,\nMemoryRegion *address_space_mem,\nMemoryRegion *address_space_io,\nram_addr_t ram_size,\nram_addr_t below_4g_mem_size,\nram_addr_t above_4g_mem_size,\nMemoryRegion *pci... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
43
],
[
45
],
[
47,
49
],
[
51
],
[
53
],
[... |
14,836 | void qio_channel_socket_connect_async(QIOChannelSocket *ioc,
SocketAddressLegacy *addr,
QIOTaskFunc callback,
gpointer opaque,
GDestroyNotify destroy)
{
QIOTa... | false | qemu | bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884 | void qio_channel_socket_connect_async(QIOChannelSocket *ioc,
SocketAddressLegacy *addr,
QIOTaskFunc callback,
gpointer opaque,
GDestroyNotify destroy)
{
QIOTa... | {
"code": [],
"line_no": []
} | void FUNC_0(QIOChannelSocket *VAR_0,
SocketAddressLegacy *VAR_1,
QIOTaskFunc VAR_2,
gpointer VAR_3,
GDestroyNotify VAR_4)
{
QIOTask *task = qio_task_new(
... | [
"void FUNC_0(QIOChannelSocket *VAR_0,\nSocketAddressLegacy *VAR_1,\nQIOTaskFunc VAR_2,\ngpointer VAR_3,\nGDestroyNotify VAR_4)\n{",
"QIOTask *task = qio_task_new(\nOBJECT(VAR_0), VAR_2, VAR_3, VAR_4);",
"SocketAddressLegacy *addrCopy;",
"addrCopy = QAPI_CLONE(SocketAddressLegacy, VAR_1);",
"trace_qio_channe... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13,
15
],
[
17
],
[
21
],
[
29
],
[
31,
33,
35,
37
],
[
39
]
] |
14,837 | static av_cold int targa_encode_close(AVCodecContext *avctx)
{
av_frame_free(&avctx->coded_frame);
return 0;
}
| false | FFmpeg | d6604b29ef544793479d7fb4e05ef6622bb3e534 | static av_cold int targa_encode_close(AVCodecContext *avctx)
{
av_frame_free(&avctx->coded_frame);
return 0;
}
| {
"code": [],
"line_no": []
} | static av_cold int FUNC_0(AVCodecContext *avctx)
{
av_frame_free(&avctx->coded_frame);
return 0;
}
| [
"static av_cold int FUNC_0(AVCodecContext *avctx)\n{",
"av_frame_free(&avctx->coded_frame);",
"return 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
14,838 | static int vnc_set_x509_credential_dir(VncDisplay *vs,
const char *certdir)
{
if (vnc_set_x509_credential(vs, certdir, X509_CA_CERT_FILE, &vs->x509cacert, 0) < 0)
goto cleanup;
if (vnc_set_x509_credential(vs, certdir, X509_CA_CRL_FILE, &vs->x509cacrl, 1) < 0)
goto cleanup;
if (vnc_set_x5... | false | qemu | 5fb6c7a8b26eab1a22207d24b4784bd2b39ab54b | static int vnc_set_x509_credential_dir(VncDisplay *vs,
const char *certdir)
{
if (vnc_set_x509_credential(vs, certdir, X509_CA_CERT_FILE, &vs->x509cacert, 0) < 0)
goto cleanup;
if (vnc_set_x509_credential(vs, certdir, X509_CA_CRL_FILE, &vs->x509cacrl, 1) < 0)
goto cleanup;
if (vnc_set_x5... | {
"code": [],
"line_no": []
} | static int FUNC_0(VncDisplay *VAR_0,
const char *VAR_1)
{
if (vnc_set_x509_credential(VAR_0, VAR_1, X509_CA_CERT_FILE, &VAR_0->x509cacert, 0) < 0)
goto cleanup;
if (vnc_set_x509_credential(VAR_0, VAR_1, X509_CA_CRL_FILE, &VAR_0->x509cacrl, 1) < 0)
goto cleanup;
if (vnc_set_x509_credentia... | [
"static int FUNC_0(VncDisplay *VAR_0,\nconst char *VAR_1)\n{",
"if (vnc_set_x509_credential(VAR_0, VAR_1, X509_CA_CERT_FILE, &VAR_0->x509cacert, 0) < 0)\ngoto cleanup;",
"if (vnc_set_x509_credential(VAR_0, VAR_1, X509_CA_CRL_FILE, &VAR_0->x509cacrl, 1) < 0)\ngoto cleanup;",
"if (vnc_set_x509_credential(VAR_0,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11,
13
],
[
15,
17
],
[
19,
21
],
[
25
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
]
] |
14,839 | static inline uint32_t xen_vcpu_eport(shared_iopage_t *shared_page, int i)
{
return shared_page->vcpu_iodata[i].vp_eport;
}
| false | qemu | 47d3df2387ed6927732584ffa4159c26d9f4dee8 | static inline uint32_t xen_vcpu_eport(shared_iopage_t *shared_page, int i)
{
return shared_page->vcpu_iodata[i].vp_eport;
}
| {
"code": [],
"line_no": []
} | static inline uint32_t FUNC_0(shared_iopage_t *shared_page, int i)
{
return shared_page->vcpu_iodata[i].vp_eport;
}
| [
"static inline uint32_t FUNC_0(shared_iopage_t *shared_page, int i)\n{",
"return shared_page->vcpu_iodata[i].vp_eport;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
14,841 | int bdrv_flush_all(void)
{
BlockDriverState *bs = NULL;
int result = 0;
while ((bs = bdrv_next(bs))) {
AioContext *aio_context = bdrv_get_aio_context(bs);
int ret;
aio_context_acquire(aio_context);
ret = bdrv_flush(bs);
if (ret < 0 && !result) {
... | false | qemu | 61007b316cd71ee7333ff7a0a749a8949527575f | int bdrv_flush_all(void)
{
BlockDriverState *bs = NULL;
int result = 0;
while ((bs = bdrv_next(bs))) {
AioContext *aio_context = bdrv_get_aio_context(bs);
int ret;
aio_context_acquire(aio_context);
ret = bdrv_flush(bs);
if (ret < 0 && !result) {
... | {
"code": [],
"line_no": []
} | int FUNC_0(void)
{
BlockDriverState *bs = NULL;
int VAR_0 = 0;
while ((bs = bdrv_next(bs))) {
AioContext *aio_context = bdrv_get_aio_context(bs);
int VAR_1;
aio_context_acquire(aio_context);
VAR_1 = bdrv_flush(bs);
if (VAR_1 < 0 && !VAR_0) {
... | [
"int FUNC_0(void)\n{",
"BlockDriverState *bs = NULL;",
"int VAR_0 = 0;",
"while ((bs = bdrv_next(bs))) {",
"AioContext *aio_context = bdrv_get_aio_context(bs);",
"int VAR_1;",
"aio_context_acquire(aio_context);",
"VAR_1 = bdrv_flush(bs);",
"if (VAR_1 < 0 && !VAR_0) {",
"VAR_0 = VAR_1;",
"}",
"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
]
] |
14,843 | static inline void gen_movcf_s (int fs, int fd, int cc, int tf)
{
uint32_t ccbit;
int cond;
TCGv r_tmp1 = tcg_temp_local_new(TCG_TYPE_I32);
TCGv fp0 = tcg_temp_local_new(TCG_TYPE_I32);
TCGv fp1 = tcg_temp_local_new(TCG_TYPE_I32);
int l1 = gen_new_label();
if (cc)
ccbit = 1... | false | qemu | 9bf3eb2ca542dd9306cb2e72fc68e02ba3e56e2e | static inline void gen_movcf_s (int fs, int fd, int cc, int tf)
{
uint32_t ccbit;
int cond;
TCGv r_tmp1 = tcg_temp_local_new(TCG_TYPE_I32);
TCGv fp0 = tcg_temp_local_new(TCG_TYPE_I32);
TCGv fp1 = tcg_temp_local_new(TCG_TYPE_I32);
int l1 = gen_new_label();
if (cc)
ccbit = 1... | {
"code": [],
"line_no": []
} | static inline void FUNC_0 (int VAR_0, int VAR_1, int VAR_2, int VAR_3)
{
uint32_t ccbit;
int VAR_4;
TCGv r_tmp1 = tcg_temp_local_new(TCG_TYPE_I32);
TCGv fp0 = tcg_temp_local_new(TCG_TYPE_I32);
TCGv fp1 = tcg_temp_local_new(TCG_TYPE_I32);
int VAR_5 = gen_new_label();
if (VAR_2)
... | [
"static inline void FUNC_0 (int VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{",
"uint32_t ccbit;",
"int VAR_4;",
"TCGv r_tmp1 = tcg_temp_local_new(TCG_TYPE_I32);",
"TCGv fp0 = tcg_temp_local_new(TCG_TYPE_I32);",
"TCGv fp1 = tcg_temp_local_new(TCG_TYPE_I32);",
"int VAR_5 = gen_new_label();",
"if (VAR_2)\n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
23,
25
],
[
29,
31
],
[
33,
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
14,844 | static void notdirty_mem_writel(void *opaque, target_phys_addr_t ram_addr,
uint32_t val)
{
int dirty_flags;
dirty_flags = phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS];
if (!(dirty_flags & CODE_DIRTY_FLAG)) {
#if !defined(CONFIG_USER_ONLY)
tb_invalidate_phys_pag... | false | qemu | f7c11b535040df31cc8bc3b1f0c33f546073ee62 | static void notdirty_mem_writel(void *opaque, target_phys_addr_t ram_addr,
uint32_t val)
{
int dirty_flags;
dirty_flags = phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS];
if (!(dirty_flags & CODE_DIRTY_FLAG)) {
#if !defined(CONFIG_USER_ONLY)
tb_invalidate_phys_pag... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint32_t VAR_2)
{
int VAR_3;
VAR_3 = phys_ram_dirty[VAR_1 >> TARGET_PAGE_BITS];
if (!(VAR_3 & CODE_DIRTY_FLAG)) {
#if !defined(CONFIG_USER_ONLY)
tb_invalidate_phys_page_fast(VAR_1, 4);
VAR_3 = p... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{",
"int VAR_3;",
"VAR_3 = phys_ram_dirty[VAR_1 >> TARGET_PAGE_BITS];",
"if (!(VAR_3 & CODE_DIRTY_FLAG)) {",
"#if !defined(CONFIG_USER_ONLY)\ntb_invalidate_phys_page_fast(VAR_1, 4);",
"VAR_3 = phys_ram_dirty[VAR_1 >> TARGET_PAGE_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
],
[
27
],
[
33,
35
],
[
37
]
] |
14,845 | static void qcow2_invalidate_cache(BlockDriverState *bs, Error **errp)
{
BDRVQcow2State *s = bs->opaque;
int flags = s->flags;
QCryptoCipher *cipher = NULL;
QDict *options;
Error *local_err = NULL;
int ret;
/*
* Backing files are read-only which makes all of their metadata im... | false | qemu | c9e9e9c66cee9932fb28a41a4659aa421a7a3f78 | static void qcow2_invalidate_cache(BlockDriverState *bs, Error **errp)
{
BDRVQcow2State *s = bs->opaque;
int flags = s->flags;
QCryptoCipher *cipher = NULL;
QDict *options;
Error *local_err = NULL;
int ret;
cipher = s->cipher;
s->cipher = NULL;
qcow2_close... | {
"code": [],
"line_no": []
} | static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1)
{
BDRVQcow2State *s = VAR_0->opaque;
int VAR_2 = s->VAR_2;
QCryptoCipher *cipher = NULL;
QDict *options;
Error *local_err = NULL;
int VAR_3;
cipher = s->cipher;
s->cipher = NULL;
qcow2_close(VAR_0)... | [
"static void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1)\n{",
"BDRVQcow2State *s = VAR_0->opaque;",
"int VAR_2 = s->VAR_2;",
"QCryptoCipher *cipher = NULL;",
"QDict *options;",
"Error *local_err = NULL;",
"int VAR_3;",
"cipher = s->cipher;",
"s->cipher = NULL;",
"qcow2_close(VAR_0);",
"bdrv_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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
29
],
[
31
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
],
[
55
],
[
59
],
[
61
... |
14,847 | static inline void gen_evmwumiaa(DisasContext *ctx)
{
TCGv_i64 acc;
TCGv_i64 tmp;
if (unlikely(!ctx->spe_enabled)) {
gen_exception(ctx, POWERPC_EXCP_APU);
return;
}
gen_evmwumi(ctx); /* rD := rA * rB */
acc = tcg_temp_new_i64();
tmp = tcg_temp_new_i6... | false | qemu | 27a69bb088bee6d4efea254659422fb9c751b3c7 | static inline void gen_evmwumiaa(DisasContext *ctx)
{
TCGv_i64 acc;
TCGv_i64 tmp;
if (unlikely(!ctx->spe_enabled)) {
gen_exception(ctx, POWERPC_EXCP_APU);
return;
}
gen_evmwumi(ctx);
acc = tcg_temp_new_i64();
tmp = tcg_temp_new_i64();
g... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(DisasContext *VAR_0)
{
TCGv_i64 acc;
TCGv_i64 tmp;
if (unlikely(!VAR_0->spe_enabled)) {
gen_exception(VAR_0, POWERPC_EXCP_APU);
return;
}
gen_evmwumi(VAR_0);
acc = tcg_temp_new_i64();
tmp = tcg_temp_new_i64();
... | [
"static inline void FUNC_0(DisasContext *VAR_0)\n{",
"TCGv_i64 acc;",
"TCGv_i64 tmp;",
"if (unlikely(!VAR_0->spe_enabled)) {",
"gen_exception(VAR_0, POWERPC_EXCP_APU);",
"return;",
"}",
"gen_evmwumi(VAR_0);",
"acc = tcg_temp_new_i64();",
"tmp = tcg_temp_new_i64();",
"gen_load_gpr64(tmp, rD(VAR_0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
33
],
[
39
],
[
45
],
[
51
],
[
57
],
[
61
],
[
63
],
[
65
]
] |
14,849 | void qemu_system_reset(void)
{
QEMUResetEntry *re, *nre;
/* reset all devices */
TAILQ_FOREACH_SAFE(re, &reset_handlers, entry, nre) {
re->func(re->opaque);
}
}
| false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | void qemu_system_reset(void)
{
QEMUResetEntry *re, *nre;
TAILQ_FOREACH_SAFE(re, &reset_handlers, entry, nre) {
re->func(re->opaque);
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
QEMUResetEntry *re, *nre;
TAILQ_FOREACH_SAFE(re, &reset_handlers, entry, nre) {
re->func(re->opaque);
}
}
| [
"void FUNC_0(void)\n{",
"QEMUResetEntry *re, *nre;",
"TAILQ_FOREACH_SAFE(re, &reset_handlers, entry, nre) {",
"re->func(re->opaque);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
14,851 | static int cpu_can_run(CPUState *env)
{
if (env->stop)
return 0;
if (env->stopped)
return 0;
if (!vm_running)
return 0;
return 1;
}
| false | qemu | 55274a30522d0f542c1659386f01096b78669455 | static int cpu_can_run(CPUState *env)
{
if (env->stop)
return 0;
if (env->stopped)
return 0;
if (!vm_running)
return 0;
return 1;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(CPUState *VAR_0)
{
if (VAR_0->stop)
return 0;
if (VAR_0->stopped)
return 0;
if (!vm_running)
return 0;
return 1;
}
| [
"static int FUNC_0(CPUState *VAR_0)\n{",
"if (VAR_0->stop)\nreturn 0;",
"if (VAR_0->stopped)\nreturn 0;",
"if (!vm_running)\nreturn 0;",
"return 1;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13,
15
],
[
17
],
[
19
]
] |
14,852 | static void cpu_common_parse_features(const char *typename, char *features,
Error **errp)
{
char *featurestr; /* Single "key=value" string being parsed */
char *val;
static bool cpu_globals_initialized;
/* TODO: all callers of ->parse_features() need to be c... | false | qemu | 6aff24c6a61c6fec31e555c7748ba6085b7b2c06 | static void cpu_common_parse_features(const char *typename, char *features,
Error **errp)
{
char *featurestr;
char *val;
static bool cpu_globals_initialized;
if (cpu_globals_initialized) {
return;
}
cpu_globals_initializ... | {
"code": [],
"line_no": []
} | static void FUNC_0(const char *VAR_0, char *VAR_1,
Error **VAR_2)
{
char *VAR_3;
char *VAR_4;
static bool VAR_5;
if (VAR_5) {
return;
}
VAR_5 = true;
VAR_3 = VAR_1 ? strtok(VAR_1, ",") : NULL;
while (VAR_3)... | [
"static void FUNC_0(const char *VAR_0, char *VAR_1,\nError **VAR_2)\n{",
"char *VAR_3;",
"char *VAR_4;",
"static bool VAR_5;",
"if (VAR_5) {",
"return;",
"}",
"VAR_5 = true;",
"VAR_3 = VAR_1 ? strtok(VAR_1, \",\") : NULL;",
"while (VAR_3) {",
"VAR_4 = strchr(VAR_3, '=');",
"if (VAR_4) {",
"G... | [
0,
0,
0,
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
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
[
59
],
[
61
],
[... |
14,853 | static void ich9_lpc_update_apic(ICH9LPCState *lpc, int gsi)
{
int level = 0;
assert(gsi >= ICH9_LPC_PIC_NUM_PINS);
level |= pci_bus_get_irq_level(lpc->d.bus, ich9_gsi_to_pirq(gsi));
if (gsi == lpc->sci_gsi) {
level |= lpc->sci_level;
}
qemu_set_irq(lpc->gsi[gsi], level);
... | false | qemu | fd56e0612b6454a282fa6a953fdb09281a98c589 | static void ich9_lpc_update_apic(ICH9LPCState *lpc, int gsi)
{
int level = 0;
assert(gsi >= ICH9_LPC_PIC_NUM_PINS);
level |= pci_bus_get_irq_level(lpc->d.bus, ich9_gsi_to_pirq(gsi));
if (gsi == lpc->sci_gsi) {
level |= lpc->sci_level;
}
qemu_set_irq(lpc->gsi[gsi], level);
... | {
"code": [],
"line_no": []
} | static void FUNC_0(ICH9LPCState *VAR_0, int VAR_1)
{
int VAR_2 = 0;
assert(VAR_1 >= ICH9_LPC_PIC_NUM_PINS);
VAR_2 |= pci_bus_get_irq_level(VAR_0->d.bus, ich9_gsi_to_pirq(VAR_1));
if (VAR_1 == VAR_0->sci_gsi) {
VAR_2 |= VAR_0->sci_level;
}
qemu_set_irq(VAR_0->VAR_1[VAR_1], V... | [
"static void FUNC_0(ICH9LPCState *VAR_0, int VAR_1)\n{",
"int VAR_2 = 0;",
"assert(VAR_1 >= ICH9_LPC_PIC_NUM_PINS);",
"VAR_2 |= pci_bus_get_irq_level(VAR_0->d.bus, ich9_gsi_to_pirq(VAR_1));",
"if (VAR_1 == VAR_0->sci_gsi) {",
"VAR_2 |= VAR_0->sci_level;",
"}",
"qemu_set_irq(VAR_0->VAR_1[VAR_1], VAR_2)... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
]
] |
14,855 | static int32_t scsi_disk_emulate_command(SCSIRequest *req, uint8_t *buf)
{
SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req);
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);
uint64_t nb_sectors;
uint8_t *outbuf;
int buflen;
switch (req->cmd.buf[0]) {
case INQUIRY:
... | false | qemu | 380feaffb0fcc8e5f615ed8e86d2e93717a6f2c6 | static int32_t scsi_disk_emulate_command(SCSIRequest *req, uint8_t *buf)
{
SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req);
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);
uint64_t nb_sectors;
uint8_t *outbuf;
int buflen;
switch (req->cmd.buf[0]) {
case INQUIRY:
... | {
"code": [],
"line_no": []
} | static int32_t FUNC_0(SCSIRequest *req, uint8_t *buf)
{
SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req);
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);
uint64_t nb_sectors;
uint8_t *outbuf;
int VAR_0;
switch (req->cmd.buf[0]) {
case INQUIRY:
case MODE_SENSE:
... | [
"static int32_t FUNC_0(SCSIRequest *req, uint8_t *buf)\n{",
"SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req);",
"SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);",
"uint64_t nb_sectors;",
"uint8_t *outbuf;",
"int VAR_0;",
"switch (req->cmd.buf[0]) {",
"case INQUIRY:\ncase MODE_SENSE:\nca... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
45
],
[
49,
51
],
[
53
],
[
55
],
[
57
],
[
59
... |
14,856 | static void qmp_input_start_list(Visitor *v, const char *name,
GenericList **list, size_t size, Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QObject *qobj = qmp_input_get_object(qiv, name, true, errp);
const QListEntry *entry;
if (!qobj) {
return;
... | false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void qmp_input_start_list(Visitor *v, const char *name,
GenericList **list, size_t size, Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QObject *qobj = qmp_input_get_object(qiv, name, true, errp);
const QListEntry *entry;
if (!qobj) {
return;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(Visitor *VAR_0, const char *VAR_1,
GenericList **VAR_2, size_t VAR_3, Error **VAR_4)
{
QmpInputVisitor *qiv = to_qiv(VAR_0);
QObject *qobj = qmp_input_get_object(qiv, VAR_1, true, VAR_4);
const QListEntry *VAR_5;
if (!qobj) {
return;
... | [
"static void FUNC_0(Visitor *VAR_0, const char *VAR_1,\nGenericList **VAR_2, size_t VAR_3, Error **VAR_4)\n{",
"QmpInputVisitor *qiv = to_qiv(VAR_0);",
"QObject *qobj = qmp_input_get_object(qiv, VAR_1, true, VAR_4);",
"const QListEntry *VAR_5;",
"if (!qobj) {",
"return;",
"}",
"if (qobject_type(qobj) ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
14,857 | static int pci_e1000_init(PCIDevice *pci_dev)
{
E1000State *d = DO_UPCAST(E1000State, dev, pci_dev);
uint8_t *pci_conf;
uint16_t checksum = 0;
int i;
uint8_t *macaddr;
pci_conf = d->dev.config;
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);
pci_config_set_device_id... | false | qemu | 04095e5ff305fc25a214b52e005153af9d009d66 | static int pci_e1000_init(PCIDevice *pci_dev)
{
E1000State *d = DO_UPCAST(E1000State, dev, pci_dev);
uint8_t *pci_conf;
uint16_t checksum = 0;
int i;
uint8_t *macaddr;
pci_conf = d->dev.config;
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);
pci_config_set_device_id... | {
"code": [],
"line_no": []
} | static int FUNC_0(PCIDevice *VAR_0)
{
E1000State *d = DO_UPCAST(E1000State, dev, VAR_0);
uint8_t *pci_conf;
uint16_t checksum = 0;
int VAR_1;
uint8_t *macaddr;
pci_conf = d->dev.config;
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);
pci_config_set_device_id(pci_con... | [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"E1000State *d = DO_UPCAST(E1000State, dev, VAR_0);",
"uint8_t *pci_conf;",
"uint16_t checksum = 0;",
"int VAR_1;",
"uint8_t *macaddr;",
"pci_conf = d->dev.config;",
"pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);",
"pci_config_set_device_id(pci_co... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
41,
43
],
[
47,
49
],
[
53,
55
],
[... |
14,858 | void qemu_clock_notify(QEMUClockType type)
{
QEMUTimerList *timer_list;
QEMUClock *clock = qemu_clock_ptr(type);
QLIST_FOREACH(timer_list, &clock->timerlists, list) {
timerlist_notify(timer_list);
}
}
| false | qemu | c2b38b277a7882a592f4f2ec955084b2b756daaa | void qemu_clock_notify(QEMUClockType type)
{
QEMUTimerList *timer_list;
QEMUClock *clock = qemu_clock_ptr(type);
QLIST_FOREACH(timer_list, &clock->timerlists, list) {
timerlist_notify(timer_list);
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(QEMUClockType VAR_0)
{
QEMUTimerList *timer_list;
QEMUClock *clock = qemu_clock_ptr(VAR_0);
QLIST_FOREACH(timer_list, &clock->timerlists, list) {
timerlist_notify(timer_list);
}
}
| [
"void FUNC_0(QEMUClockType VAR_0)\n{",
"QEMUTimerList *timer_list;",
"QEMUClock *clock = qemu_clock_ptr(VAR_0);",
"QLIST_FOREACH(timer_list, &clock->timerlists, list) {",
"timerlist_notify(timer_list);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
14,859 | static void backward_filter(RA288Context *ractx)
{
float temp1[37]; // RTMP in the spec
float temp2[11]; // GPTPMP in the spec
do_hybrid_window(36, 40, 35, ractx->sp_block, temp1, ractx->sp_hist,
ractx->sp_rec, syn_window);
if (!eval_lpc_coeffs(temp1, ractx->sp_lpc, 36))
... | false | FFmpeg | e3751aa6ec8147ab7ca2649d4daadf8d4dce27d5 | static void backward_filter(RA288Context *ractx)
{
float temp1[37];
float temp2[11];
do_hybrid_window(36, 40, 35, ractx->sp_block, temp1, ractx->sp_hist,
ractx->sp_rec, syn_window);
if (!eval_lpc_coeffs(temp1, ractx->sp_lpc, 36))
colmult(ractx->sp_lpc, ractx->sp... | {
"code": [],
"line_no": []
} | static void FUNC_0(RA288Context *VAR_0)
{
float VAR_1[37];
float VAR_2[11];
do_hybrid_window(36, 40, 35, VAR_0->sp_block, VAR_1, VAR_0->sp_hist,
VAR_0->sp_rec, syn_window);
if (!eval_lpc_coeffs(VAR_1, VAR_0->sp_lpc, 36))
colmult(VAR_0->sp_lpc, VAR_0->sp_lpc, syn... | [
"static void FUNC_0(RA288Context *VAR_0)\n{",
"float VAR_1[37];",
"float VAR_2[11];",
"do_hybrid_window(36, 40, 35, VAR_0->sp_block, VAR_1, VAR_0->sp_hist,\nVAR_0->sp_rec, syn_window);",
"if (!eval_lpc_coeffs(VAR_1, VAR_0->sp_lpc, 36))\ncolmult(VAR_0->sp_lpc, VAR_0->sp_lpc, syn_bw_tab, 36);",
"do_hybrid_w... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13
],
[
17,
19
],
[
23,
25
],
[
29,
31
],
[
33
]
] |
14,860 | int target_mprotect(abi_ulong start, abi_ulong len, int prot)
{
abi_ulong end, host_start, host_end, addr;
int prot1, ret;
#ifdef DEBUG_MMAP
printf("mprotect: start=0x" TARGET_FMT_lx
"len=0x" TARGET_FMT_lx " prot=%c%c%c\n", start, len,
prot & PROT_READ ? 'r' : '-',
... | false | qemu | 171cd1cdfff32a99855ec80ca8cab43384fe0600 | int target_mprotect(abi_ulong start, abi_ulong len, int prot)
{
abi_ulong end, host_start, host_end, addr;
int prot1, ret;
#ifdef DEBUG_MMAP
printf("mprotect: start=0x" TARGET_FMT_lx
"len=0x" TARGET_FMT_lx " prot=%c%c%c\n", start, len,
prot & PROT_READ ? 'r' : '-',
... | {
"code": [],
"line_no": []
} | int FUNC_0(abi_ulong VAR_0, abi_ulong VAR_1, int VAR_2)
{
abi_ulong end, host_start, host_end, addr;
int VAR_3, VAR_4;
#ifdef DEBUG_MMAP
printf("mprotect: VAR_0=0x" TARGET_FMT_lx
"VAR_1=0x" TARGET_FMT_lx " VAR_2=%c%c%c\n", VAR_0, VAR_1,
VAR_2 & PROT_READ ? 'r' : '-',
... | [
"int FUNC_0(abi_ulong VAR_0, abi_ulong VAR_1, int VAR_2)\n{",
"abi_ulong end, host_start, host_end, addr;",
"int VAR_3, VAR_4;",
"#ifdef DEBUG_MMAP\nprintf(\"mprotect: VAR_0=0x\" TARGET_FMT_lx\n\"VAR_1=0x\" TARGET_FMT_lx \" VAR_2=%c%c%c\\n\", VAR_0, VAR_1,\nVAR_2 & PROT_READ ? 'r' : '-',\nVAR_2 & PROT_WRITE ?... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11,
13,
15,
17,
19,
21
],
[
23,
27,
29
],
[
31
],
[
33
],
[
35,
37
],
[
39,
41
],
[
43,
45
],
[
49
],
[
51
],
[
53
],
[
57
],
[
59... |
14,861 | static int local_open(FsContext *ctx, V9fsPath *fs_path,
int flags, V9fsFidOpenState *fs)
{
char buffer[PATH_MAX];
char *path = fs_path->data;
fs->fd = open(rpath(ctx, path, buffer), flags | O_NOFOLLOW);
return fs->fd;
}
| false | qemu | 4fa4ce7107c6ec432f185307158c5df91ce54308 | static int local_open(FsContext *ctx, V9fsPath *fs_path,
int flags, V9fsFidOpenState *fs)
{
char buffer[PATH_MAX];
char *path = fs_path->data;
fs->fd = open(rpath(ctx, path, buffer), flags | O_NOFOLLOW);
return fs->fd;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,
int VAR_2, V9fsFidOpenState *VAR_3)
{
char VAR_4[PATH_MAX];
char *VAR_5 = VAR_1->data;
VAR_3->fd = open(rpath(VAR_0, VAR_5, VAR_4), VAR_2 | O_NOFOLLOW);
return VAR_3->fd;
}
| [
"static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1,\nint VAR_2, V9fsFidOpenState *VAR_3)\n{",
"char VAR_4[PATH_MAX];",
"char *VAR_5 = VAR_1->data;",
"VAR_3->fd = open(rpath(VAR_0, VAR_5, VAR_4), VAR_2 | O_NOFOLLOW);",
"return VAR_3->fd;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
]
] |
14,862 | void qmp_block_commit(const char *device,
bool has_base, const char *base,
bool has_top, const char *top,
bool has_backing_file, const char *backing_file,
bool has_speed, int64_t speed,
Error **errp)
{
... | false | qemu | 9e85cd5ce0d3fc99d910428c9fd9d267764d341b | void qmp_block_commit(const char *device,
bool has_base, const char *base,
bool has_top, const char *top,
bool has_backing_file, const char *backing_file,
bool has_speed, int64_t speed,
Error **errp)
{
... | {
"code": [],
"line_no": []
} | void FUNC_0(const char *VAR_0,
bool VAR_1, const char *VAR_2,
bool VAR_3, const char *VAR_4,
bool VAR_5, const char *VAR_6,
bool VAR_7, int64_t VAR_8,
Error **VAR_9)
{
BlockDriverState *bs;
Bloc... | [
"void FUNC_0(const char *VAR_0,\nbool VAR_1, const char *VAR_2,\nbool VAR_3, const char *VAR_4,\nbool VAR_5, const char *VAR_6,\nbool VAR_7, int64_t VAR_8,\nError **VAR_9)\n{",
"BlockDriverState *bs;",
"BlockDriverState *base_bs, *top_bs;",
"Error *local_err = NULL;",
"BlockdevOnError on_error = BLOCKDEV_ON... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
27
],
[
31
],
[
33
],
[
35
],
[
41
],
[
55
],
[
57
],
[
59
],
[
61
],
[
63
],
[
67
],
[
69
],
[
71
],
[... |
14,863 | void do_commit(Monitor *mon, const QDict *qdict)
{
const char *device = qdict_get_str(qdict, "device");
BlockDriverState *bs;
if (!strcmp(device, "all")) {
bdrv_commit_all();
} else {
bs = bdrv_find(device);
if (!bs) {
qerror_report(QERR_DEVICE_NOT_FOUND, d... | false | qemu | 2d3735d3bf61d5c8e154a197a11535cc65044334 | void do_commit(Monitor *mon, const QDict *qdict)
{
const char *device = qdict_get_str(qdict, "device");
BlockDriverState *bs;
if (!strcmp(device, "all")) {
bdrv_commit_all();
} else {
bs = bdrv_find(device);
if (!bs) {
qerror_report(QERR_DEVICE_NOT_FOUND, d... | {
"code": [],
"line_no": []
} | void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{
const char *VAR_2 = qdict_get_str(VAR_1, "VAR_2");
BlockDriverState *bs;
if (!strcmp(VAR_2, "all")) {
bdrv_commit_all();
} else {
bs = bdrv_find(VAR_2);
if (!bs) {
qerror_report(QERR_DEVICE_NOT_FOUND, VAR_2)... | [
"void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{",
"const char *VAR_2 = qdict_get_str(VAR_1, \"VAR_2\");",
"BlockDriverState *bs;",
"if (!strcmp(VAR_2, \"all\")) {",
"bdrv_commit_all();",
"} else {",
"bs = bdrv_find(VAR_2);",
"if (!bs) {",
"qerror_report(QERR_DEVICE_NOT_FOUND, VAR_2);",
"return... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
14,864 | static QmpOutputVisitor *to_qov(Visitor *v)
{
return container_of(v, QmpOutputVisitor, visitor);
}
| false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static QmpOutputVisitor *to_qov(Visitor *v)
{
return container_of(v, QmpOutputVisitor, visitor);
}
| {
"code": [],
"line_no": []
} | static QmpOutputVisitor *FUNC_0(Visitor *v)
{
return container_of(v, QmpOutputVisitor, visitor);
}
| [
"static QmpOutputVisitor *FUNC_0(Visitor *v)\n{",
"return container_of(v, QmpOutputVisitor, visitor);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
14,866 | static void vc1_inv_trans_8x8_c(DCTELEM block[64])
{
int i;
register int t1,t2,t3,t4,t5,t6,t7,t8;
DCTELEM *src, *dst, temp[64];
src = block;
dst = temp;
for(i = 0; i < 8; i++){
t1 = 12 * (src[ 0] + src[32]) + 4;
t2 = 12 * (src[ 0] - src[32]) + 4;
t3 = 16 * src... | false | FFmpeg | 6a786b15c34765ec00be3cd808dafbb041fd5881 | static void vc1_inv_trans_8x8_c(DCTELEM block[64])
{
int i;
register int t1,t2,t3,t4,t5,t6,t7,t8;
DCTELEM *src, *dst, temp[64];
src = block;
dst = temp;
for(i = 0; i < 8; i++){
t1 = 12 * (src[ 0] + src[32]) + 4;
t2 = 12 * (src[ 0] - src[32]) + 4;
t3 = 16 * src... | {
"code": [],
"line_no": []
} | static void FUNC_0(DCTELEM VAR_0[64])
{
int VAR_1;
register int VAR_2,VAR_3,VAR_4,VAR_5,VAR_6,VAR_7,VAR_8,VAR_9;
DCTELEM *src, *dst, temp[64];
src = VAR_0;
dst = temp;
for(VAR_1 = 0; VAR_1 < 8; VAR_1++){
VAR_2 = 12 * (src[ 0] + src[32]) + 4;
VAR_3 = 12 * (src[ 0] - src... | [
"static void FUNC_0(DCTELEM VAR_0[64])\n{",
"int VAR_1;",
"register int VAR_2,VAR_3,VAR_4,VAR_5,VAR_6,VAR_7,VAR_8,VAR_9;",
"DCTELEM *src, *dst, temp[64];",
"src = VAR_0;",
"dst = temp;",
"for(VAR_1 = 0; VAR_1 < 8; VAR_1++){",
"VAR_2 = 12 * (src[ 0] + src[32]) + 4;",
"VAR_3 = 12 * (src[ 0] - src[32])... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
... |
14,867 | static void avc_loopfilter_luma_intra_edge_ver_msa(uint8_t *data,
uint8_t alpha_in,
uint8_t beta_in,
uint32_t img_width)
{
uint8_t *src;
v16u8 alpha, bet... | false | FFmpeg | bcd7bf7eeb09a395cc01698842d1b8be9af483fc | static void avc_loopfilter_luma_intra_edge_ver_msa(uint8_t *data,
uint8_t alpha_in,
uint8_t beta_in,
uint32_t img_width)
{
uint8_t *src;
v16u8 alpha, bet... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0,
uint8_t VAR_1,
uint8_t VAR_2,
uint32_t VAR_3)
{
uint8_t *src;
v16u8 alpha, beta, p0_asub_q0;
v16u8 is_less_than_a... | [
"static void FUNC_0(uint8_t *VAR_0,\nuint8_t VAR_1,\nuint8_t VAR_2,\nuint32_t VAR_3)\n{",
"uint8_t *src;",
"v16u8 alpha, beta, p0_asub_q0;",
"v16u8 is_less_than_alpha, is_less_than;",
"v16u8 is_less_than_beta, negate_is_less_than_beta;",
"v8i16 p2_r = { 0 };",
"v8i16 p1_r = { 0 };",
"v8i16 p0_r = { 0 ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[... |
14,868 | static int dshow_read_packet(AVFormatContext *s, AVPacket *pkt)
{
struct dshow_ctx *ctx = s->priv_data;
AVPacketList *pktl = NULL;
while (!pktl) {
WaitForSingleObject(ctx->mutex, INFINITE);
pktl = ctx->pktl;
if (pktl) {
*pkt = pktl->pkt;
ctx->pktl =... | false | FFmpeg | 190f6135b48a97dadd7586f154640bec6468df1b | static int dshow_read_packet(AVFormatContext *s, AVPacket *pkt)
{
struct dshow_ctx *ctx = s->priv_data;
AVPacketList *pktl = NULL;
while (!pktl) {
WaitForSingleObject(ctx->mutex, INFINITE);
pktl = ctx->pktl;
if (pktl) {
*pkt = pktl->pkt;
ctx->pktl =... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
struct dshow_ctx *VAR_2 = VAR_0->priv_data;
AVPacketList *pktl = NULL;
while (!pktl) {
WaitForSingleObject(VAR_2->mutex, INFINITE);
pktl = VAR_2->pktl;
if (pktl) {
*VAR_1 = pktl->VAR_1;
VA... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"struct dshow_ctx *VAR_2 = VAR_0->priv_data;",
"AVPacketList *pktl = NULL;",
"while (!pktl) {",
"WaitForSingleObject(VAR_2->mutex, INFINITE);",
"pktl = VAR_2->pktl;",
"if (pktl) {",
"*VAR_1 = pktl->VAR_1;",
"VAR_2->pktl = VAR_2->pktl->... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43... |
14,869 | static void blend_image(AVFilterContext *ctx,
AVFilterBufferRef *dst, AVFilterBufferRef *src,
int x, int y)
{
OverlayContext *over = ctx->priv;
int i, j, k;
int width = src->video->w;
int height = src->video->h;
if (over->main_is_packed_rg... | false | FFmpeg | f164228fd793766187ed3e68cb6d6e2fe3e77c04 | static void blend_image(AVFilterContext *ctx,
AVFilterBufferRef *dst, AVFilterBufferRef *src,
int x, int y)
{
OverlayContext *over = ctx->priv;
int i, j, k;
int width = src->video->w;
int height = src->video->h;
if (over->main_is_packed_rg... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFilterContext *VAR_0,
AVFilterBufferRef *VAR_1, AVFilterBufferRef *VAR_2,
int VAR_3, int VAR_4)
{
OverlayContext *over = VAR_0->priv;
int VAR_5, VAR_6, VAR_7;
int VAR_8 = VAR_2->video->w;
int VAR_9 = VAR_2->video->h;
i... | [
"static void FUNC_0(AVFilterContext *VAR_0,\nAVFilterBufferRef *VAR_1, AVFilterBufferRef *VAR_2,\nint VAR_3, int VAR_4)\n{",
"OverlayContext *over = VAR_0->priv;",
"int VAR_5, VAR_6, VAR_7;",
"int VAR_8 = VAR_2->video->w;",
"int VAR_9 = VAR_2->video->h;",
"if (over->main_is_packed_rgb) {",
"uint8_t *... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
14,871 | static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize, int64_t pts)
{
MBContext *mb = ctx->priv;
int x,y,i, in_cidx=0, next_cidx=0, tmp_cidx;
double scale= mb->start_scale*pow(mb->end_scale/mb->start_scale, pts/mb->end_pts);
int use_zyklus=0;
fill_from_cache(ctx, NULL... | false | FFmpeg | 56fc4cf04f9ed878cf8e159981f5d136af807973 | static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize, int64_t pts)
{
MBContext *mb = ctx->priv;
int x,y,i, in_cidx=0, next_cidx=0, tmp_cidx;
double scale= mb->start_scale*pow(mb->end_scale/mb->start_scale, pts/mb->end_pts);
int use_zyklus=0;
fill_from_cache(ctx, NULL... | {
"code": [],
"line_no": []
} | static void FUNC_0(AVFilterContext *VAR_0, uint32_t *VAR_1, int VAR_2, int64_t VAR_3)
{
MBContext *mb = VAR_0->priv;
int VAR_4,VAR_5,VAR_6, VAR_7=0, VAR_8=0, VAR_9;
double VAR_10= mb->start_scale*pow(mb->end_scale/mb->start_scale, VAR_3/mb->end_pts);
int VAR_11=0;
fill_from_cache(VAR_0, NULL, ... | [
"static void FUNC_0(AVFilterContext *VAR_0, uint32_t *VAR_1, int VAR_2, int64_t VAR_3)\n{",
"MBContext *mb = VAR_0->priv;",
"int VAR_4,VAR_5,VAR_6, VAR_7=0, VAR_8=0, VAR_9;",
"double VAR_10= mb->start_scale*pow(mb->end_scale/mb->start_scale, VAR_3/mb->end_pts);",
"int VAR_11=0;",
"fill_from_cache(VAR_0, 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,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45,... |
14,873 | static void opt_mb_qmax(const char *arg)
{
video_mb_qmax = atoi(arg);
if (video_mb_qmax < 0 ||
video_mb_qmax > 31) {
fprintf(stderr, "qmax must be >= 1 and <= 31\n");
exit(1);
}
}
| false | FFmpeg | 6e0d8c06c7af61859e8d7bc2351a607d8abeab75 | static void opt_mb_qmax(const char *arg)
{
video_mb_qmax = atoi(arg);
if (video_mb_qmax < 0 ||
video_mb_qmax > 31) {
fprintf(stderr, "qmax must be >= 1 and <= 31\n");
exit(1);
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(const char *VAR_0)
{
video_mb_qmax = atoi(VAR_0);
if (video_mb_qmax < 0 ||
video_mb_qmax > 31) {
fprintf(stderr, "qmax must be >= 1 and <= 31\n");
exit(1);
}
}
| [
"static void FUNC_0(const char *VAR_0)\n{",
"video_mb_qmax = atoi(VAR_0);",
"if (video_mb_qmax < 0 ||\nvideo_mb_qmax > 31) {",
"fprintf(stderr, \"qmax must be >= 1 and <= 31\\n\");",
"exit(1);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
14,874 | static void create_vorbis_context(venc_context_t * venc, AVCodecContext * avccontext) {
codebook_t * cb;
floor_t * fc;
residue_t * rc;
mapping_t * mc;
int i, book;
venc->channels = avccontext->channels;
venc->sample_rate = avccontext->sample_rate;
venc->blocksize[0] = venc->blo... | false | FFmpeg | 39d0567737cbce35239dddeabe35ae037cecf362 | static void create_vorbis_context(venc_context_t * venc, AVCodecContext * avccontext) {
codebook_t * cb;
floor_t * fc;
residue_t * rc;
mapping_t * mc;
int i, book;
venc->channels = avccontext->channels;
venc->sample_rate = avccontext->sample_rate;
venc->blocksize[0] = venc->blo... | {
"code": [],
"line_no": []
} | static void FUNC_0(venc_context_t * VAR_0, AVCodecContext * VAR_1) {
codebook_t * cb;
floor_t * fc;
residue_t * rc;
mapping_t * mc;
int VAR_2, VAR_3;
VAR_0->channels = VAR_1->channels;
VAR_0->sample_rate = VAR_1->sample_rate;
VAR_0->blocksize[0] = VAR_0->blocksize[1] = 11;
... | [
"static void FUNC_0(venc_context_t * VAR_0, AVCodecContext * VAR_1) {",
"codebook_t * cb;",
"floor_t * fc;",
"residue_t * rc;",
"mapping_t * mc;",
"int VAR_2, VAR_3;",
"VAR_0->channels = VAR_1->channels;",
"VAR_0->sample_rate = VAR_1->sample_rate;",
"VAR_0->blocksize[0] = VAR_0->blocksize[1] = 11;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1
],
[
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[... |
14,875 | static RawAIOCB *raw_aio_setup(BlockDriverState *bs,
int64_t sector_num, uint8_t *buf, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque)
{
BDRVRawState *s = bs->opaque;
RawAIOCB *acb;
if (fd_open(bs) < 0)
return NULL;
acb = qemu_aio_get(bs, cb, opaque);
... | false | qemu | 3c529d935923a70519557d420db1d5a09a65086a | static RawAIOCB *raw_aio_setup(BlockDriverState *bs,
int64_t sector_num, uint8_t *buf, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque)
{
BDRVRawState *s = bs->opaque;
RawAIOCB *acb;
if (fd_open(bs) < 0)
return NULL;
acb = qemu_aio_get(bs, cb, opaque);
... | {
"code": [],
"line_no": []
} | static RawAIOCB *FUNC_0(BlockDriverState *bs,
int64_t sector_num, uint8_t *buf, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque)
{
BDRVRawState *s = bs->opaque;
RawAIOCB *acb;
if (fd_open(bs) < 0)
return NULL;
acb = qemu_aio_get(bs, cb, opaque);
if (!... | [
"static RawAIOCB *FUNC_0(BlockDriverState *bs,\nint64_t sector_num, uint8_t *buf, int nb_sectors,\nBlockDriverCompletionFunc *cb, void *opaque)\n{",
"BDRVRawState *s = bs->opaque;",
"RawAIOCB *acb;",
"if (fd_open(bs) < 0)\nreturn NULL;",
"acb = qemu_aio_get(bs, cb, opaque);",
"if (!acb)\nreturn NULL;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15,
17
],
[
21
],
[
23,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37,
39
],
[
41,
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
14,876 | static uint32_t tpm_tis_data_read(TPMState *s, uint8_t locty)
{
TPMTISEmuState *tis = &s->s.tis;
uint32_t ret = TPM_TIS_NO_DATA_BYTE;
uint16_t len;
if ((tis->loc[locty].sts & TPM_TIS_STS_DATA_AVAILABLE)) {
len = tpm_tis_get_size_from_buffer(&tis->loc[locty].r_buffer);
ret = ti... | false | qemu | fd859081453f94c3cbd6527289e41b7fddbf645f | static uint32_t tpm_tis_data_read(TPMState *s, uint8_t locty)
{
TPMTISEmuState *tis = &s->s.tis;
uint32_t ret = TPM_TIS_NO_DATA_BYTE;
uint16_t len;
if ((tis->loc[locty].sts & TPM_TIS_STS_DATA_AVAILABLE)) {
len = tpm_tis_get_size_from_buffer(&tis->loc[locty].r_buffer);
ret = ti... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(TPMState *s, uint8_t locty)
{
TPMTISEmuState *tis = &s->s.tis;
uint32_t ret = TPM_TIS_NO_DATA_BYTE;
uint16_t len;
if ((tis->loc[locty].sts & TPM_TIS_STS_DATA_AVAILABLE)) {
len = tpm_tis_get_size_from_buffer(&tis->loc[locty].r_buffer);
ret = tis->loc[loct... | [
"static uint32_t FUNC_0(TPMState *s, uint8_t locty)\n{",
"TPMTISEmuState *tis = &s->s.tis;",
"uint32_t ret = TPM_TIS_NO_DATA_BYTE;",
"uint16_t len;",
"if ((tis->loc[locty].sts & TPM_TIS_STS_DATA_AVAILABLE)) {",
"len = tpm_tis_get_size_from_buffer(&tis->loc[locty].r_buffer);",
"ret = tis->loc[locty].r_bu... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
19
],
[
21
],
[
25
],
[
27,
29
],
[
31,
33
],
[
35,
37
],
[
39
],
[
43
],
[
45
]
] |
14,877 | cpu_x86_dump_seg_cache(CPUState *env, FILE *f,
int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
const char *name, struct SegmentCache *sc)
{
#ifdef TARGET_X86_64
if (env->hflags & HF_CS64_MASK) {
cpu_fprintf(f, "%-3s=%04x %016" PRIx64 " %08x %08x", name,... | false | qemu | 9a78eead0c74333a394c0f7bbfc4423ac746fcd5 | cpu_x86_dump_seg_cache(CPUState *env, FILE *f,
int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
const char *name, struct SegmentCache *sc)
{
#ifdef TARGET_X86_64
if (env->hflags & HF_CS64_MASK) {
cpu_fprintf(f, "%-3s=%04x %016" PRIx64 " %08x %08x", name,... | {
"code": [],
"line_no": []
} | FUNC_0(CPUState *VAR_0, FILE *VAR_3,
int (*VAR_2)(FILE *VAR_3, const char *VAR_3, ...),
const char *VAR_4, struct SegmentCache *VAR_5)
{
#ifdef TARGET_X86_64
if (VAR_0->hflags & HF_CS64_MASK) {
VAR_2(VAR_3, "%-3s=%04x %016" PRIx64 " %08x %08x", VAR_4,
... | [
"FUNC_0(CPUState *VAR_0, FILE *VAR_3,\nint (*VAR_2)(FILE *VAR_3, const char *VAR_3, ...),\nconst char *VAR_4, struct SegmentCache *VAR_5)\n{",
"#ifdef TARGET_X86_64\nif (VAR_0->hflags & HF_CS64_MASK) {",
"VAR_2(VAR_3, \"%-3s=%04x %016\" PRIx64 \" %08x %08x\", VAR_4,\nVAR_5->selector, VAR_5->base, VAR_5->limit, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9,
11
],
[
13,
15
],
[
17
],
[
19,
21
],
[
23,
25
],
[
27
],
[
31,
33
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47,
49
],
[
51
],
[
53
],
[... |
14,878 | static int qemu_gluster_parse_uri(BlockdevOptionsGluster *gconf,
const char *filename)
{
SocketAddress *gsconf;
URI *uri;
QueryParams *qp = NULL;
bool is_unix = false;
int ret = 0;
uri = uri_parse(filename);
if (!uri) {
return -EINVAL;
... | false | qemu | 3dc6f8693694a649a9c83f1e2746565b47683923 | static int qemu_gluster_parse_uri(BlockdevOptionsGluster *gconf,
const char *filename)
{
SocketAddress *gsconf;
URI *uri;
QueryParams *qp = NULL;
bool is_unix = false;
int ret = 0;
uri = uri_parse(filename);
if (!uri) {
return -EINVAL;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockdevOptionsGluster *VAR_0,
const char *VAR_1)
{
SocketAddress *gsconf;
URI *uri;
QueryParams *qp = NULL;
bool is_unix = false;
int VAR_2 = 0;
uri = uri_parse(VAR_1);
if (!uri) {
return -EINVAL;
}
VAR_0->s... | [
"static int FUNC_0(BlockdevOptionsGluster *VAR_0,\nconst char *VAR_1)\n{",
"SocketAddress *gsconf;",
"URI *uri;",
"QueryParams *qp = NULL;",
"bool is_unix = false;",
"int VAR_2 = 0;",
"uri = uri_parse(VAR_1);",
"if (!uri) {",
"return -EINVAL;",
"}",
"VAR_0->server = g_new0(SocketAddressList, 1);... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
14,879 | static BlockDriverAIOCB *paio_submit(BlockDriverState *bs, HANDLE hfile,
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque, int type)
{
RawWin32AIOData *acb = g_slice_new(RawWin32AIOData);
acb->bs = bs;
acb->hfile = hfile;
acb->a... | false | qemu | c4d9d19645a484298a67e9021060bc7c2b081d0f | static BlockDriverAIOCB *paio_submit(BlockDriverState *bs, HANDLE hfile,
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque, int type)
{
RawWin32AIOData *acb = g_slice_new(RawWin32AIOData);
acb->bs = bs;
acb->hfile = hfile;
acb->a... | {
"code": [],
"line_no": []
} | static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, HANDLE hfile,
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
BlockDriverCompletionFunc *cb, void *opaque, int type)
{
RawWin32AIOData *acb = g_slice_new(RawWin32AIOData);
acb->bs = bs;
acb->hfile = hfile;
acb->aio_ty... | [
"static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, HANDLE hfile,\nint64_t sector_num, QEMUIOVector *qiov, int nb_sectors,\nBlockDriverCompletionFunc *cb, void *opaque, int type)\n{",
"RawWin32AIOData *acb = g_slice_new(RawWin32AIOData);",
"acb->bs = bs;",
"acb->hfile = hfile;",
"acb->aio_type = type;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
]
] |
14,880 | static void special_write(void *opaque, target_phys_addr_t addr,
uint64_t val, unsigned size)
{
qemu_log("pci: special write cycle");
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void special_write(void *opaque, target_phys_addr_t addr,
uint64_t val, unsigned size)
{
qemu_log("pci: special write cycle");
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
qemu_log("pci: special write cycle");
}
| [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"qemu_log(\"pci: special write cycle\");",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
14,881 | MemoryRegionSection *phys_page_find(AddressSpaceDispatch *d, hwaddr index)
{
PhysPageEntry lp = d->phys_map;
PhysPageEntry *p;
int i;
for (i = P_L2_LEVELS - 1; i >= 0 && !lp.is_leaf; i--) {
if (lp.ptr == PHYS_MAP_NODE_NIL) {
return &phys_sections[phys_section_unassigned];
... | false | qemu | 149f54b53b7666a3facd45e86eece60ce7d3b114 | MemoryRegionSection *phys_page_find(AddressSpaceDispatch *d, hwaddr index)
{
PhysPageEntry lp = d->phys_map;
PhysPageEntry *p;
int i;
for (i = P_L2_LEVELS - 1; i >= 0 && !lp.is_leaf; i--) {
if (lp.ptr == PHYS_MAP_NODE_NIL) {
return &phys_sections[phys_section_unassigned];
... | {
"code": [],
"line_no": []
} | MemoryRegionSection *FUNC_0(AddressSpaceDispatch *d, hwaddr index)
{
PhysPageEntry lp = d->phys_map;
PhysPageEntry *p;
int VAR_0;
for (VAR_0 = P_L2_LEVELS - 1; VAR_0 >= 0 && !lp.is_leaf; VAR_0--) {
if (lp.ptr == PHYS_MAP_NODE_NIL) {
return &phys_sections[phys_section_unassig... | [
"MemoryRegionSection *FUNC_0(AddressSpaceDispatch *d, hwaddr index)\n{",
"PhysPageEntry lp = d->phys_map;",
"PhysPageEntry *p;",
"int VAR_0;",
"for (VAR_0 = P_L2_LEVELS - 1; VAR_0 >= 0 && !lp.is_leaf; VAR_0--) {",
"if (lp.ptr == PHYS_MAP_NODE_NIL) {",
"return &phys_sections[phys_section_unassigned];",
... | [
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
]
] |
14,882 | static inline int qemu_gluster_zerofill(struct glfs_fd *fd, int64_t offset,
int64_t size)
{
return glfs_zerofill(fd, offset, size);
}
| false | qemu | df3a429ae82c0f45becdfab105617701d75e0f05 | static inline int qemu_gluster_zerofill(struct glfs_fd *fd, int64_t offset,
int64_t size)
{
return glfs_zerofill(fd, offset, size);
}
| {
"code": [],
"line_no": []
} | static inline int FUNC_0(struct glfs_fd *VAR_0, int64_t VAR_1,
int64_t VAR_2)
{
return glfs_zerofill(VAR_0, VAR_1, VAR_2);
}
| [
"static inline int FUNC_0(struct glfs_fd *VAR_0, int64_t VAR_1,\nint64_t VAR_2)\n{",
"return glfs_zerofill(VAR_0, VAR_1, VAR_2);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
14,883 | static void write_cont (void *opaque, uint32_t nport, uint32_t data)
{
struct dma_cont *d = opaque;
int iport, ichan;
iport = (nport >> d->dshift) & 0x0f;
switch (iport) {
case 8: /* command */
if (data && (data | CMD_NOT_SUPPORTED)) {
log ("command ... | false | qemu | df475d18d890572b8456ebff327bb9debee6289a | static void write_cont (void *opaque, uint32_t nport, uint32_t data)
{
struct dma_cont *d = opaque;
int iport, ichan;
iport = (nport >> d->dshift) & 0x0f;
switch (iport) {
case 8:
if (data && (data | CMD_NOT_SUPPORTED)) {
log ("command %#x not suppo... | {
"code": [],
"line_no": []
} | static void FUNC_0 (void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)
{
struct dma_cont *VAR_3 = VAR_0;
int VAR_4, VAR_5;
VAR_4 = (VAR_1 >> VAR_3->dshift) & 0x0f;
switch (VAR_4) {
case 8:
if (VAR_2 && (VAR_2 | CMD_NOT_SUPPORTED)) {
log ("command %#x not ... | [
"static void FUNC_0 (void *VAR_0, uint32_t VAR_1, uint32_t VAR_2)\n{",
"struct dma_cont *VAR_3 = VAR_0;",
"int VAR_4, VAR_5;",
"VAR_4 = (VAR_1 >> VAR_3->dshift) & 0x0f;",
"switch (VAR_4) {",
"case 8:\nif (VAR_2 && (VAR_2 | CMD_NOT_SUPPORTED)) {",
"log (\"command %#x not supported\\n\", VAR_2);",
"goto... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15,
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47... |
14,885 | static void test_visitor_in_fail_list(TestInputVisitorData *data,
const void *unused)
{
int64_t i64 = -1;
Visitor *v;
/* Unvisited list tail */
v = visitor_input_test_init(data, "[ 1, 2, 3 ]");
visit_start_list(v, NULL, NULL, 0, &error_abort);
... | false | qemu | a4a1c70dc759e5b81627e96564f344ab43ea86eb | static void test_visitor_in_fail_list(TestInputVisitorData *data,
const void *unused)
{
int64_t i64 = -1;
Visitor *v;
v = visitor_input_test_init(data, "[ 1, 2, 3 ]");
visit_start_list(v, NULL, NULL, 0, &error_abort);
visit_type_int(v, NULL, &... | {
"code": [],
"line_no": []
} | static void FUNC_0(TestInputVisitorData *VAR_0,
const void *VAR_1)
{
int64_t i64 = -1;
Visitor *v;
v = visitor_input_test_init(VAR_0, "[ 1, 2, 3 ]");
visit_start_list(v, NULL, NULL, 0, &error_abort);
visit_type_int(v, NULL, &i64, &error_abort)... | [
"static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{",
"int64_t i64 = -1;",
"Visitor *v;",
"v = visitor_input_test_init(VAR_0, \"[ 1, 2, 3 ]\");",
"visit_start_list(v, NULL, NULL, 0, &error_abort);",
"visit_type_int(v, NULL, &i64, &error_abort);",
"g_assert_cmpint(i64, ==, 1);",
"vi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
]
] |
14,886 | void qemu_console_copy(QEMUConsole *console, int src_x, int src_y,
int dst_x, int dst_y, int w, int h) {
if (active_console == console) {
if (console->ds->dpy_copy)
console->ds->dpy_copy(console->ds,
src_x, src_y, dst_x, dst_y, w, h);
els... | false | qemu | c21bbcfa3ff4f6dc49fb01080ef598851aa424dd | void qemu_console_copy(QEMUConsole *console, int src_x, int src_y,
int dst_x, int dst_y, int w, int h) {
if (active_console == console) {
if (console->ds->dpy_copy)
console->ds->dpy_copy(console->ds,
src_x, src_y, dst_x, dst_y, w, h);
els... | {
"code": [],
"line_no": []
} | void FUNC_0(QEMUConsole *VAR_0, int VAR_1, int VAR_2,
int VAR_3, int VAR_4, int VAR_5, int VAR_6) {
if (active_console == VAR_0) {
if (VAR_0->ds->dpy_copy)
VAR_0->ds->dpy_copy(VAR_0->ds,
VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6);
else {
... | [
"void FUNC_0(QEMUConsole *VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4, int VAR_5, int VAR_6) {",
"if (active_console == VAR_0) {",
"if (VAR_0->ds->dpy_copy)\nVAR_0->ds->dpy_copy(VAR_0->ds,\nVAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6);",
"else {",
"VAR_0->ds->dpy_update(VAR_0->ds, VAR_3, VAR_4, VAR_5, V... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9,
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
14,888 | static inline void tcg_out_ldst(TCGContext *s, int ret, int addr, int offset, int op)
{
if (offset == (offset & 0xfff))
tcg_out32(s, op | INSN_RD(ret) | INSN_RS1(addr) |
INSN_IMM13(offset));
else
fprintf(stderr, "unimplemented %s with offset %d\n", __func__, offset);
}
| false | qemu | f02ca5cbeaf86038834c1953247a1579d7921927 | static inline void tcg_out_ldst(TCGContext *s, int ret, int addr, int offset, int op)
{
if (offset == (offset & 0xfff))
tcg_out32(s, op | INSN_RD(ret) | INSN_RS1(addr) |
INSN_IMM13(offset));
else
fprintf(stderr, "unimplemented %s with offset %d\n", __func__, offset);
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)
{
if (VAR_3 == (VAR_3 & 0xfff))
tcg_out32(VAR_0, VAR_4 | INSN_RD(VAR_1) | INSN_RS1(VAR_2) |
INSN_IMM13(VAR_3));
else
fprintf(stderr, "unimplemented %VAR_0 with VAR_3 %d\n", __func__, ... | [
"static inline void FUNC_0(TCGContext *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{",
"if (VAR_3 == (VAR_3 & 0xfff))\ntcg_out32(VAR_0, VAR_4 | INSN_RD(VAR_1) | INSN_RS1(VAR_2) |\nINSN_IMM13(VAR_3));",
"else\nfprintf(stderr, \"unimplemented %VAR_0 with VAR_3 %d\\n\", __func__, VAR_3);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
11,
13
],
[
15
]
] |
14,889 | static int i440fx_initfn(PCIDevice *dev)
{
PCII440FXState *d = DO_UPCAST(PCII440FXState, dev, dev);
pci_config_set_vendor_id(d->dev.config, PCI_VENDOR_ID_INTEL);
pci_config_set_device_id(d->dev.config, PCI_DEVICE_ID_INTEL_82441);
d->dev.config[0x08] = 0x02; // revision
pci_config_set_class(d... | false | qemu | 3a9d85491ed2be8158fe93041dcbb34c13dfdb05 | static int i440fx_initfn(PCIDevice *dev)
{
PCII440FXState *d = DO_UPCAST(PCII440FXState, dev, dev);
pci_config_set_vendor_id(d->dev.config, PCI_VENDOR_ID_INTEL);
pci_config_set_device_id(d->dev.config, PCI_DEVICE_ID_INTEL_82441);
d->dev.config[0x08] = 0x02;
pci_config_set_class(d->dev.confi... | {
"code": [],
"line_no": []
} | static int FUNC_0(PCIDevice *VAR_0)
{
PCII440FXState *d = DO_UPCAST(PCII440FXState, VAR_0, VAR_0);
pci_config_set_vendor_id(d->VAR_0.config, PCI_VENDOR_ID_INTEL);
pci_config_set_device_id(d->VAR_0.config, PCI_DEVICE_ID_INTEL_82441);
d->VAR_0.config[0x08] = 0x02;
pci_config_set_class(d->VAR_... | [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"PCII440FXState *d = DO_UPCAST(PCII440FXState, VAR_0, VAR_0);",
"pci_config_set_vendor_id(d->VAR_0.config, PCI_VENDOR_ID_INTEL);",
"pci_config_set_device_id(d->VAR_0.config, PCI_DEVICE_ID_INTEL_82441);",
"d->VAR_0.config[0x08] = 0x02;",
"pci_config_set_class(d->VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
23
],
[
25
],
[
27
]
] |
14,891 | void cpu_register_physical_memory_log(MemoryRegionSection *section,
bool readonly)
{
MemoryRegionSection now = *section, remain = *section;
if ((now.offset_within_address_space & ~TARGET_PAGE_MASK)
|| (now.size < TARGET_PAGE_SIZE)) {
now.size = MIN(T... | false | qemu | ac1970fbe8ad5a70174f462109ac0f6c7bf1bc43 | void cpu_register_physical_memory_log(MemoryRegionSection *section,
bool readonly)
{
MemoryRegionSection now = *section, remain = *section;
if ((now.offset_within_address_space & ~TARGET_PAGE_MASK)
|| (now.size < TARGET_PAGE_SIZE)) {
now.size = MIN(T... | {
"code": [],
"line_no": []
} | void FUNC_0(MemoryRegionSection *VAR_0,
bool VAR_1)
{
MemoryRegionSection now = *VAR_0, remain = *VAR_0;
if ((now.offset_within_address_space & ~TARGET_PAGE_MASK)
|| (now.size < TARGET_PAGE_SIZE)) {
now.size = MIN(TARGET_PAGE_ALIGN(now.offset_within_... | [
"void FUNC_0(MemoryRegionSection *VAR_0,\nbool VAR_1)\n{",
"MemoryRegionSection now = *VAR_0, remain = *VAR_0;",
"if ((now.offset_within_address_space & ~TARGET_PAGE_MASK)\n|| (now.size < TARGET_PAGE_SIZE)) {",
"now.size = MIN(TARGET_PAGE_ALIGN(now.offset_within_address_space)\n- now.offset_within_address_spa... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11,
13
],
[
15,
17,
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47... |
14,892 | static void virtio_blk_handle_flush(BlockRequest *blkreq, int *num_writes,
VirtIOBlockReq *req)
{
BlockDriverAIOCB *acb;
/*
* Make sure all outstanding writes are posted to the backing device.
*/
if (*num_writes > 0) {
do_multiwrite(req->dev->bs, blkreq, *num_writes);
}
... | false | qemu | c20fd872257fb9abd2ce99741937c0f65aa162b7 | static void virtio_blk_handle_flush(BlockRequest *blkreq, int *num_writes,
VirtIOBlockReq *req)
{
BlockDriverAIOCB *acb;
if (*num_writes > 0) {
do_multiwrite(req->dev->bs, blkreq, *num_writes);
}
*num_writes = 0;
acb = bdrv_aio_flush(req->dev->bs, virtio_blk_flush_c... | {
"code": [],
"line_no": []
} | static void FUNC_0(BlockRequest *VAR_0, int *VAR_1,
VirtIOBlockReq *VAR_2)
{
BlockDriverAIOCB *acb;
if (*VAR_1 > 0) {
do_multiwrite(VAR_2->dev->bs, VAR_0, *VAR_1);
}
*VAR_1 = 0;
acb = bdrv_aio_flush(VAR_2->dev->bs, virtio_blk_flush_complete, VAR_2);
if (!acb) {... | [
"static void FUNC_0(BlockRequest *VAR_0, int *VAR_1,\nVirtIOBlockReq *VAR_2)\n{",
"BlockDriverAIOCB *acb;",
"if (*VAR_1 > 0) {",
"do_multiwrite(VAR_2->dev->bs, VAR_0, *VAR_1);",
"}",
"*VAR_1 = 0;",
"acb = bdrv_aio_flush(VAR_2->dev->bs, virtio_blk_flush_complete, VAR_2);",
"if (!acb) {",
"virtio_blk_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
]
] |
14,893 | static void gd_update_cursor(VirtualConsole *vc)
{
GtkDisplayState *s = vc->s;
GdkWindow *window;
if (vc->type != GD_VC_GFX) {
return;
}
window = gtk_widget_get_window(GTK_WIDGET(vc->gfx.drawing_area));
if (s->full_screen || qemu_input_is_absolute() || gd_is_grab_active(s)) {... | false | qemu | 2884cf5b934808f547b5268a51be631805c25857 | static void gd_update_cursor(VirtualConsole *vc)
{
GtkDisplayState *s = vc->s;
GdkWindow *window;
if (vc->type != GD_VC_GFX) {
return;
}
window = gtk_widget_get_window(GTK_WIDGET(vc->gfx.drawing_area));
if (s->full_screen || qemu_input_is_absolute() || gd_is_grab_active(s)) {... | {
"code": [],
"line_no": []
} | static void FUNC_0(VirtualConsole *VAR_0)
{
GtkDisplayState *s = VAR_0->s;
GdkWindow *window;
if (VAR_0->type != GD_VC_GFX) {
return;
}
window = gtk_widget_get_window(GTK_WIDGET(VAR_0->gfx.drawing_area));
if (s->full_screen || qemu_input_is_absolute() || gd_is_grab_active(s))... | [
"static void FUNC_0(VirtualConsole *VAR_0)\n{",
"GtkDisplayState *s = VAR_0->s;",
"GdkWindow *window;",
"if (VAR_0->type != GD_VC_GFX) {",
"return;",
"}",
"window = gtk_widget_get_window(GTK_WIDGET(VAR_0->gfx.drawing_area));",
"if (s->full_screen || qemu_input_is_absolute() || gd_is_grab_active(s)) {"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
14,894 | static void sdhci_sdma_transfer_multi_blocks(SDHCIState *s)
{
bool page_aligned = false;
unsigned int n, begin;
const uint16_t block_size = s->blksize & 0x0fff;
uint32_t boundary_chk = 1 << (((s->blksize & 0xf000) >> 12) + 12);
uint32_t boundary_count = boundary_chk - (s->sdmasysad % boundary_... | false | qemu | 42922105beb14c2fc58185ea022b9f72fb5465e9 | static void sdhci_sdma_transfer_multi_blocks(SDHCIState *s)
{
bool page_aligned = false;
unsigned int n, begin;
const uint16_t block_size = s->blksize & 0x0fff;
uint32_t boundary_chk = 1 << (((s->blksize & 0xf000) >> 12) + 12);
uint32_t boundary_count = boundary_chk - (s->sdmasysad % boundary_... | {
"code": [],
"line_no": []
} | static void FUNC_0(SDHCIState *VAR_0)
{
bool page_aligned = false;
unsigned int VAR_1, VAR_2;
const uint16_t VAR_3 = VAR_0->blksize & 0x0fff;
uint32_t boundary_chk = 1 << (((VAR_0->blksize & 0xf000) >> 12) + 12);
uint32_t boundary_count = boundary_chk - (VAR_0->sdmasysad % boundary_chk);
... | [
"static void FUNC_0(SDHCIState *VAR_0)\n{",
"bool page_aligned = false;",
"unsigned int VAR_1, VAR_2;",
"const uint16_t VAR_3 = VAR_0->blksize & 0x0fff;",
"uint32_t boundary_chk = 1 << (((VAR_0->blksize & 0xf000) >> 12) + 12);",
"uint32_t boundary_count = boundary_chk - (VAR_0->sdmasysad % boundary_chk);"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
23
],
[
25
],
[
27
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[... |
14,895 | static int read_access_unit(AVCodecContext *avctx, void* data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MLPDecodeContext *m = avctx->priv_data;
GetBitContext gb;
unsigned int length, substr;
unsigned int ... | false | FFmpeg | 5d9e4eaa6d991718b24c7ce24318ee91419f593a | static int read_access_unit(AVCodecContext *avctx, void* data, int *data_size,
AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MLPDecodeContext *m = avctx->priv_data;
GetBitContext gb;
unsigned int length, substr;
unsigned int ... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0, void* VAR_1, int *VAR_2,
AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
MLPDecodeContext *m = VAR_0->priv_data;
GetBitContext gb;
unsigned int VAR_6, VAR_7;
unsigned int VAR_8;
uns... | [
"static int FUNC_0(AVCodecContext *VAR_0, void* VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{",
"const uint8_t *VAR_4 = VAR_3->VAR_1;",
"int VAR_5 = VAR_3->size;",
"MLPDecodeContext *m = VAR_0->priv_data;",
"GetBitContext gb;",
"unsigned int VAR_6, VAR_7;",
"unsigned int VAR_8;",
"unsigned int VAR_9 = 4;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
31,
33
],
[
37
],
[
41,
43
],
[
47
],
[
51
],
[
53
],
[... |
14,896 | static int coroutine_fn blkreplay_co_preadv(BlockDriverState *bs,
uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags)
{
uint64_t reqid = request_id++;
int ret = bdrv_co_preadv(bs->file->bs, offset, bytes, qiov, flags);
block_request_create(reqid, bs, qemu_coroutine_self());
qemu_co... | false | qemu | a03ef88f77af045a2eb9629b5ce774a3fb973c5e | static int coroutine_fn blkreplay_co_preadv(BlockDriverState *bs,
uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags)
{
uint64_t reqid = request_id++;
int ret = bdrv_co_preadv(bs->file->bs, offset, bytes, qiov, flags);
block_request_create(reqid, bs, qemu_coroutine_self());
qemu_co... | {
"code": [],
"line_no": []
} | static int VAR_0 blkreplay_co_preadv(BlockDriverState *bs,
uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags)
{
uint64_t reqid = request_id++;
int ret = bdrv_co_preadv(bs->file->bs, offset, bytes, qiov, flags);
block_request_create(reqid, bs, qemu_coroutine_self());
qemu_coroutine... | [
"static int VAR_0 blkreplay_co_preadv(BlockDriverState *bs,\nuint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags)\n{",
"uint64_t reqid = request_id++;",
"int ret = bdrv_co_preadv(bs->file->bs, offset, bytes, qiov, flags);",
"block_request_create(reqid, bs, qemu_coroutine_self());",
"qemu_coroutin... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
]
] |
14,897 | void s390x_tod_timer(void *opaque)
{
S390CPU *cpu = opaque;
CPUS390XState *env = &cpu->env;
env->pending_int |= INTERRUPT_TOD;
cpu_interrupt(CPU(cpu), CPU_INTERRUPT_HARD);
}
| false | qemu | 6482b0ffd12ce83810c10b1a3884a75eba2ade1a | void s390x_tod_timer(void *opaque)
{
S390CPU *cpu = opaque;
CPUS390XState *env = &cpu->env;
env->pending_int |= INTERRUPT_TOD;
cpu_interrupt(CPU(cpu), CPU_INTERRUPT_HARD);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void *VAR_0)
{
S390CPU *cpu = VAR_0;
CPUS390XState *env = &cpu->env;
env->pending_int |= INTERRUPT_TOD;
cpu_interrupt(CPU(cpu), CPU_INTERRUPT_HARD);
}
| [
"void FUNC_0(void *VAR_0)\n{",
"S390CPU *cpu = VAR_0;",
"CPUS390XState *env = &cpu->env;",
"env->pending_int |= INTERRUPT_TOD;",
"cpu_interrupt(CPU(cpu), CPU_INTERRUPT_HARD);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
]
] |
14,898 | static uint8_t qpci_spapr_io_readb(QPCIBus *bus, void *addr)
{
QPCIBusSPAPR *s = container_of(bus, QPCIBusSPAPR, bus);
uint64_t port = (uintptr_t)addr;
uint8_t v;
if (port < s->pio.size) {
v = readb(s->pio_cpu_base + port);
} else {
v = readb(s->mmio_cpu_base + port);
}
... | false | qemu | 8360544a6d3a54df1fce80f55ba4ad075a8ded54 | static uint8_t qpci_spapr_io_readb(QPCIBus *bus, void *addr)
{
QPCIBusSPAPR *s = container_of(bus, QPCIBusSPAPR, bus);
uint64_t port = (uintptr_t)addr;
uint8_t v;
if (port < s->pio.size) {
v = readb(s->pio_cpu_base + port);
} else {
v = readb(s->mmio_cpu_base + port);
}
... | {
"code": [],
"line_no": []
} | static uint8_t FUNC_0(QPCIBus *bus, void *addr)
{
QPCIBusSPAPR *s = container_of(bus, QPCIBusSPAPR, bus);
uint64_t port = (uintptr_t)addr;
uint8_t v;
if (port < s->pio.size) {
v = readb(s->pio_cpu_base + port);
} else {
v = readb(s->mmio_cpu_base + port);
}
return v... | [
"static uint8_t FUNC_0(QPCIBus *bus, void *addr)\n{",
"QPCIBusSPAPR *s = container_of(bus, QPCIBusSPAPR, bus);",
"uint64_t port = (uintptr_t)addr;",
"uint8_t v;",
"if (port < s->pio.size) {",
"v = readb(s->pio_cpu_base + port);",
"} else {",
"v = readb(s->mmio_cpu_base + port);",
"}",
"return v;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
]
] |
14,899 | static void bench_cb(void *opaque, int ret)
{
BenchData *b = opaque;
BlockAIOCB *acb;
if (ret < 0) {
error_report("Failed request: %s\n", strerror(-ret));
exit(EXIT_FAILURE);
}
if (b->in_flush) {
/* Just finished a flush with drained queue: Start next requests */... | false | qemu | df3c286c53ac51e7267f2761c7a0c62e11b6e815 | static void bench_cb(void *opaque, int ret)
{
BenchData *b = opaque;
BlockAIOCB *acb;
if (ret < 0) {
error_report("Failed request: %s\n", strerror(-ret));
exit(EXIT_FAILURE);
}
if (b->in_flush) {
assert(b->in_flight == 0);
b->in_flush = false;
... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, int VAR_1)
{
BenchData *b = VAR_0;
BlockAIOCB *acb;
if (VAR_1 < 0) {
error_report("Failed request: %s\n", strerror(-VAR_1));
exit(EXIT_FAILURE);
}
if (b->in_flush) {
assert(b->in_flight == 0);
b->in_flush = false... | [
"static void FUNC_0(void *VAR_0, int VAR_1)\n{",
"BenchData *b = VAR_0;",
"BlockAIOCB *acb;",
"if (VAR_1 < 0) {",
"error_report(\"Failed request: %s\\n\", strerror(-VAR_1));",
"exit(EXIT_FAILURE);",
"}",
"if (b->in_flush) {",
"assert(b->in_flight == 0);",
"b->in_flush = false;",
"} else if (b->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
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
],
[
55... |
14,900 | static int QEMU_WARN_UNUSED_RESULT update_refcount(BlockDriverState *bs,
int64_t offset,
int64_t length,
uint64_t addend,
... | false | qemu | a3f1afb43a09e4577571c044c48f2ba9e6e4ad06 | static int QEMU_WARN_UNUSED_RESULT update_refcount(BlockDriverState *bs,
int64_t offset,
int64_t length,
uint64_t addend,
... | {
"code": [],
"line_no": []
} | static int VAR_0 update_refcount(BlockDriverState *bs,
int64_t offset,
int64_t length,
uint64_t addend,
bool dec... | [
"static int VAR_0 update_refcount(BlockDriverState *bs,\nint64_t offset,\nint64_t length,\nuint64_t addend,\nbool decrease,\nenum qcow2_discard_type type)\n{",
"BDRVQcowState *s = bs->opaque;",
"int64_t start, last, cluster_offset;",
"void *refcount_block = NULL;",
"int64_t old_table_index = -1;",
"int re... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27,
29,
31,
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51,
53
],
[
55
... |
14,901 | static void virtio_scsi_clear_aio(VirtIOSCSI *s)
{
VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(s);
int i;
if (s->ctrl_vring) {
aio_set_event_notifier(s->ctx, &s->ctrl_vring->host_notifier,
false, NULL);
}
if (s->event_vring) {
aio_set_event_not... | false | qemu | 3a1e8074d74ad2acbcedf28d35aebedc3573f19e | static void virtio_scsi_clear_aio(VirtIOSCSI *s)
{
VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(s);
int i;
if (s->ctrl_vring) {
aio_set_event_notifier(s->ctx, &s->ctrl_vring->host_notifier,
false, NULL);
}
if (s->event_vring) {
aio_set_event_not... | {
"code": [],
"line_no": []
} | static void FUNC_0(VirtIOSCSI *VAR_0)
{
VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(VAR_0);
int VAR_1;
if (VAR_0->ctrl_vring) {
aio_set_event_notifier(VAR_0->ctx, &VAR_0->ctrl_vring->host_notifier,
false, NULL);
}
if (VAR_0->event_vring) {
aio_... | [
"static void FUNC_0(VirtIOSCSI *VAR_0)\n{",
"VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(VAR_0);",
"int VAR_1;",
"if (VAR_0->ctrl_vring) {",
"aio_set_event_notifier(VAR_0->ctx, &VAR_0->ctrl_vring->host_notifier,\nfalse, NULL);",
"}",
"if (VAR_0->event_vring) {",
"aio_set_event_notifier(VAR_0->ctx, &VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13,
15
],
[
17
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
37
],
[
39
]
] |
14,903 | create_iovec(BlockBackend *blk, QEMUIOVector *qiov, char **argv, int nr_iov,
int pattern)
{
size_t *sizes = g_new0(size_t, nr_iov);
size_t count = 0;
void *buf = NULL;
void *p;
int i;
for (i = 0; i < nr_iov; i++) {
char *arg = argv[i];
int64_t len;
... | false | qemu | a367467995d0528fe591d87ca2e437c7b7d7951b | create_iovec(BlockBackend *blk, QEMUIOVector *qiov, char **argv, int nr_iov,
int pattern)
{
size_t *sizes = g_new0(size_t, nr_iov);
size_t count = 0;
void *buf = NULL;
void *p;
int i;
for (i = 0; i < nr_iov; i++) {
char *arg = argv[i];
int64_t len;
... | {
"code": [],
"line_no": []
} | FUNC_0(BlockBackend *VAR_0, QEMUIOVector *VAR_1, char **VAR_2, int VAR_3,
int VAR_4)
{
size_t *sizes = g_new0(size_t, VAR_3);
size_t count = 0;
void *VAR_5 = NULL;
void *VAR_6;
int VAR_7;
for (VAR_7 = 0; VAR_7 < VAR_3; VAR_7++) {
char *VAR_8 = VAR_2[VAR_7];
... | [
"FUNC_0(BlockBackend *VAR_0, QEMUIOVector *VAR_1, char **VAR_2, int VAR_3,\nint VAR_4)\n{",
"size_t *sizes = g_new0(size_t, VAR_3);",
"size_t count = 0;",
"void *VAR_5 = NULL;",
"void *VAR_6;",
"int VAR_7;",
"for (VAR_7 = 0; VAR_7 < VAR_3; VAR_7++) {",
"char *VAR_8 = VAR_2[VAR_7];",
"int64_t len;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[... |
14,905 | static void pflash_update(pflash_t *pfl, int offset,
int size)
{
int offset_end;
if (pfl->bs) {
offset_end = offset + size;
/* round to sectors */
offset = offset >> 9;
offset_end = (offset_end + 511) >> 9;
bdrv_write(pfl->bs, offset, pf... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static void pflash_update(pflash_t *pfl, int offset,
int size)
{
int offset_end;
if (pfl->bs) {
offset_end = offset + size;
offset = offset >> 9;
offset_end = (offset_end + 511) >> 9;
bdrv_write(pfl->bs, offset, pfl->storage + (offset <... | {
"code": [],
"line_no": []
} | static void FUNC_0(pflash_t *VAR_0, int VAR_1,
int VAR_2)
{
int VAR_3;
if (VAR_0->bs) {
VAR_3 = VAR_1 + VAR_2;
VAR_1 = VAR_1 >> 9;
VAR_3 = (VAR_3 + 511) >> 9;
bdrv_write(VAR_0->bs, VAR_1, VAR_0->storage + (VAR_1 << 9),
... | [
"static void FUNC_0(pflash_t *VAR_0, int VAR_1,\nint VAR_2)\n{",
"int VAR_3;",
"if (VAR_0->bs) {",
"VAR_3 = VAR_1 + VAR_2;",
"VAR_1 = VAR_1 >> 9;",
"VAR_3 = (VAR_3 + 511) >> 9;",
"bdrv_write(VAR_0->bs, VAR_1, VAR_0->storage + (VAR_1 << 9),\nVAR_3 - VAR_1);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19,
21
],
[
23
],
[
25
]
] |
14,906 | static int piix4_initfn(PCIDevice *d)
{
uint8_t *pci_conf;
isa_bus_new(&d->qdev);
register_savevm("PIIX4", 0, 2, piix_save, piix_load, d);
pci_conf = d->config;
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);
pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82371AB_0); ... | false | qemu | c169998802505c244b8bcad562633f29de7d74a4 | static int piix4_initfn(PCIDevice *d)
{
uint8_t *pci_conf;
isa_bus_new(&d->qdev);
register_savevm("PIIX4", 0, 2, piix_save, piix_load, d);
pci_conf = d->config;
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);
pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82371AB_0); ... | {
"code": [],
"line_no": []
} | static int FUNC_0(PCIDevice *VAR_0)
{
uint8_t *pci_conf;
isa_bus_new(&VAR_0->qdev);
register_savevm("PIIX4", 0, 2, piix_save, piix_load, VAR_0);
pci_conf = VAR_0->config;
pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);
pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82... | [
"static int FUNC_0(PCIDevice *VAR_0)\n{",
"uint8_t *pci_conf;",
"isa_bus_new(&VAR_0->qdev);",
"register_savevm(\"PIIX4\", 0, 2, piix_save, piix_load, VAR_0);",
"pci_conf = VAR_0->config;",
"pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);",
"pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23,
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
14,907 | void nbd_client_session_detach_aio_context(NbdClientSession *client)
{
aio_set_fd_handler(bdrv_get_aio_context(client->bs), client->sock,
NULL, NULL, NULL);
}
| false | qemu | f53a829bb9ef14be800556cbc02d8b20fc1050a7 | void nbd_client_session_detach_aio_context(NbdClientSession *client)
{
aio_set_fd_handler(bdrv_get_aio_context(client->bs), client->sock,
NULL, NULL, NULL);
}
| {
"code": [],
"line_no": []
} | void FUNC_0(NbdClientSession *VAR_0)
{
aio_set_fd_handler(bdrv_get_aio_context(VAR_0->bs), VAR_0->sock,
NULL, NULL, NULL);
}
| [
"void FUNC_0(NbdClientSession *VAR_0)\n{",
"aio_set_fd_handler(bdrv_get_aio_context(VAR_0->bs), VAR_0->sock,\nNULL, NULL, NULL);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9
]
] |
14,908 | static void fd_put_notify(void *opaque)
{
QEMUFileFD *s = opaque;
/* Remove writable callback and do a put notify */
qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);
qemu_file_put_notify(s->file);
}
| false | qemu | 871d2f079661323a7645b388eb5ae8d7eeb3117c | static void fd_put_notify(void *opaque)
{
QEMUFileFD *s = opaque;
qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);
qemu_file_put_notify(s->file);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
QEMUFileFD *s = VAR_0;
qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);
qemu_file_put_notify(s->file);
}
| [
"static void FUNC_0(void *VAR_0)\n{",
"QEMUFileFD *s = VAR_0;",
"qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL);",
"qemu_file_put_notify(s->file);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13
],
[
15
]
] |
14,909 | int qemu_savevm_state_iterate(Monitor *mon, QEMUFile *f)
{
SaveStateEntry *se;
int ret = 1;
QTAILQ_FOREACH(se, &savevm_handlers, entry) {
if (se->save_live_state == NULL)
continue;
/* Section type */
qemu_put_byte(f, QEMU_VM_SECTION_PART);
qemu_put_be... | false | qemu | 2975725f6b3d634dbe924ea9d9f4d86b8a5b217d | int qemu_savevm_state_iterate(Monitor *mon, QEMUFile *f)
{
SaveStateEntry *se;
int ret = 1;
QTAILQ_FOREACH(se, &savevm_handlers, entry) {
if (se->save_live_state == NULL)
continue;
qemu_put_byte(f, QEMU_VM_SECTION_PART);
qemu_put_be32(f, se->section_... | {
"code": [],
"line_no": []
} | int FUNC_0(Monitor *VAR_0, QEMUFile *VAR_1)
{
SaveStateEntry *se;
int VAR_2 = 1;
QTAILQ_FOREACH(se, &savevm_handlers, entry) {
if (se->save_live_state == NULL)
continue;
qemu_put_byte(VAR_1, QEMU_VM_SECTION_PART);
qemu_put_be32(VAR_1, se->section_id)... | [
"int FUNC_0(Monitor *VAR_0, QEMUFile *VAR_1)\n{",
"SaveStateEntry *se;",
"int VAR_2 = 1;",
"QTAILQ_FOREACH(se, &savevm_handlers, entry) {",
"if (se->save_live_state == NULL)\ncontinue;",
"qemu_put_byte(VAR_1, QEMU_VM_SECTION_PART);",
"qemu_put_be32(VAR_1, se->section_id);",
"VAR_2 = se->save_live_stat... | [
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
],
[
21
],
[
23
],
[
27
],
[
29
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
],
... |
14,910 | int qcow2_alloc_cluster_offset(BlockDriverState *bs, uint64_t offset,
int n_start, int n_end, int *num, uint64_t *host_offset, QCowL2Meta **m)
{
BDRVQcowState *s = bs->opaque;
uint64_t start, remaining;
uint64_t cluster_offset;
uint64_t cur_bytes;
int ret;
trace_qcow2_alloc_cluster... | false | qemu | 2c3b32d25620c26e26fd590c198ec6d9cf91da57 | int qcow2_alloc_cluster_offset(BlockDriverState *bs, uint64_t offset,
int n_start, int n_end, int *num, uint64_t *host_offset, QCowL2Meta **m)
{
BDRVQcowState *s = bs->opaque;
uint64_t start, remaining;
uint64_t cluster_offset;
uint64_t cur_bytes;
int ret;
trace_qcow2_alloc_cluster... | {
"code": [],
"line_no": []
} | int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,
int VAR_2, int VAR_3, int *VAR_4, uint64_t *VAR_5, QCowL2Meta **VAR_6)
{
BDRVQcowState *s = VAR_0->opaque;
uint64_t start, remaining;
uint64_t cluster_offset;
uint64_t cur_bytes;
int VAR_7;
trace_qcow2_alloc_clusters_offset(qemu_c... | [
"int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nint VAR_2, int VAR_3, int *VAR_4, uint64_t *VAR_5, QCowL2Meta **VAR_6)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"uint64_t start, remaining;",
"uint64_t cluster_offset;",
"uint64_t cur_bytes;",
"int VAR_7;",
"trace_qcow2_alloc_clusters_offset(qemu_co... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19,
21
],
[
25
],
[
27
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
77
],
[
79
],
[
81
],
[
83
],
[
85
],
[... |
14,912 | QemuConsole *graphic_console_init(DeviceState *dev, uint32_t head,
const GraphicHwOps *hw_ops,
void *opaque)
{
int width = 640;
int height = 480;
QemuConsole *s;
DisplayState *ds;
ds = get_alloc_displaystate();
trace_... | false | qemu | 521a580d2352ad30086babcabb91e6338e47cf62 | QemuConsole *graphic_console_init(DeviceState *dev, uint32_t head,
const GraphicHwOps *hw_ops,
void *opaque)
{
int width = 640;
int height = 480;
QemuConsole *s;
DisplayState *ds;
ds = get_alloc_displaystate();
trace_... | {
"code": [],
"line_no": []
} | QemuConsole *FUNC_0(DeviceState *dev, uint32_t head,
const GraphicHwOps *hw_ops,
void *opaque)
{
int VAR_0 = 640;
int VAR_1 = 480;
QemuConsole *s;
DisplayState *ds;
ds = get_alloc_displaystate();
trace_console_gfx_new... | [
"QemuConsole *FUNC_0(DeviceState *dev, uint32_t head,\nconst GraphicHwOps *hw_ops,\nvoid *opaque)\n{",
"int VAR_0 = 640;",
"int VAR_1 = 480;",
"QemuConsole *s;",
"DisplayState *ds;",
"ds = get_alloc_displaystate();",
"trace_console_gfx_new();",
"s = new_console(ds, GRAPHIC_CONSOLE, head);",
"s->hw_o... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31,
33
],
[
35
],
[
39
],
[
41
],
[
43
]
] |
14,914 | static inline void stw_phys_internal(target_phys_addr_t addr, uint32_t val,
enum device_endian endian)
{
uint8_t *ptr;
MemoryRegionSection *section;
section = phys_page_find(addr >> TARGET_PAGE_BITS);
if (!memory_region_is_ram(section->mr) || section->reado... | false | qemu | ac1970fbe8ad5a70174f462109ac0f6c7bf1bc43 | static inline void stw_phys_internal(target_phys_addr_t addr, uint32_t val,
enum device_endian endian)
{
uint8_t *ptr;
MemoryRegionSection *section;
section = phys_page_find(addr >> TARGET_PAGE_BITS);
if (!memory_region_is_ram(section->mr) || section->reado... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(target_phys_addr_t VAR_0, uint32_t VAR_1,
enum device_endian VAR_2)
{
uint8_t *ptr;
MemoryRegionSection *section;
section = phys_page_find(VAR_0 >> TARGET_PAGE_BITS);
if (!memory_region_is_ram(section->mr) || section->readonly) {
... | [
"static inline void FUNC_0(target_phys_addr_t VAR_0, uint32_t VAR_1,\nenum device_endian VAR_2)\n{",
"uint8_t *ptr;",
"MemoryRegionSection *section;",
"section = phys_page_find(VAR_0 >> TARGET_PAGE_BITS);",
"if (!memory_region_is_ram(section->mr) || section->readonly) {",
"VAR_0 = memory_region_section_ad... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
... |
14,915 | bool virtio_disk_is_eckd(void)
{
if (guessed_disk_nature) {
return (blk_cfg.blk_size == 4096);
}
return (blk_cfg.geometry.heads == 15)
&& (blk_cfg.geometry.sectors == 12)
&& (blk_cfg.blk_size == 4096);
}
| false | qemu | 92cb05574b7bd489be81f9c58497dc7dfe5d8859 | bool virtio_disk_is_eckd(void)
{
if (guessed_disk_nature) {
return (blk_cfg.blk_size == 4096);
}
return (blk_cfg.geometry.heads == 15)
&& (blk_cfg.geometry.sectors == 12)
&& (blk_cfg.blk_size == 4096);
}
| {
"code": [],
"line_no": []
} | bool FUNC_0(void)
{
if (guessed_disk_nature) {
return (blk_cfg.blk_size == 4096);
}
return (blk_cfg.geometry.heads == 15)
&& (blk_cfg.geometry.sectors == 12)
&& (blk_cfg.blk_size == 4096);
}
| [
"bool FUNC_0(void)\n{",
"if (guessed_disk_nature) {",
"return (blk_cfg.blk_size == 4096);",
"}",
"return (blk_cfg.geometry.heads == 15)\n&& (blk_cfg.geometry.sectors == 12)\n&& (blk_cfg.blk_size == 4096);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11,
13,
15
],
[
17
]
] |
14,916 | static int nbd_send_option_request(QIOChannel *ioc, uint32_t opt,
uint32_t len, const char *data,
Error **errp)
{
nbd_option req;
QEMU_BUILD_BUG_ON(sizeof(req) != 16);
if (len == -1) {
req.length = len = strlen(data);
... | false | qemu | d1fdf257d52822695f5ace6c586e059aa17d4b79 | static int nbd_send_option_request(QIOChannel *ioc, uint32_t opt,
uint32_t len, const char *data,
Error **errp)
{
nbd_option req;
QEMU_BUILD_BUG_ON(sizeof(req) != 16);
if (len == -1) {
req.length = len = strlen(data);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(QIOChannel *VAR_0, uint32_t VAR_1,
uint32_t VAR_2, const char *VAR_3,
Error **VAR_4)
{
nbd_option req;
QEMU_BUILD_BUG_ON(sizeof(req) != 16);
if (VAR_2 == -1) {
req.length = VAR_2 = strlen(VAR_3);
}
... | [
"static int FUNC_0(QIOChannel *VAR_0, uint32_t VAR_1,\nuint32_t VAR_2, const char *VAR_3,\nError **VAR_4)\n{",
"nbd_option req;",
"QEMU_BUILD_BUG_ON(sizeof(req) != 16);",
"if (VAR_2 == -1) {",
"req.length = VAR_2 = strlen(VAR_3);",
"}",
"TRACE(\"Sending option request %\" PRIu32\", VAR_2 %\" PRIu32, VAR... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
53
... |
14,917 | static void rtas_ibm_write_pci_config(sPAPREnvironment *spapr,
uint32_t token, uint32_t nargs,
target_ulong args,
uint32_t nret, target_ulong rets)
{
uint32_t val, size, addr;
uint64_t buid = ... | false | qemu | 88045ac55592cacc92567aa46cb6917854bf7241 | static void rtas_ibm_write_pci_config(sPAPREnvironment *spapr,
uint32_t token, uint32_t nargs,
target_ulong args,
uint32_t nret, target_ulong rets)
{
uint32_t val, size, addr;
uint64_t buid = ... | {
"code": [],
"line_no": []
} | static void FUNC_0(sPAPREnvironment *VAR_0,
uint32_t VAR_1, uint32_t VAR_2,
target_ulong VAR_3,
uint32_t VAR_4, target_ulong VAR_5)
{
uint32_t val, size, addr;
uint64_t buid = ((uint64_t)rtas_... | [
"static void FUNC_0(sPAPREnvironment *VAR_0,\nuint32_t VAR_1, uint32_t VAR_2,\ntarget_ulong VAR_3,\nuint32_t VAR_4, target_ulong VAR_5)\n{",
"uint32_t val, size, addr;",
"uint64_t buid = ((uint64_t)rtas_ld(VAR_3, 1) << 32) | rtas_ld(VAR_3, 2);",
"PCIDevice *dev = find_dev(VAR_0, buid, rtas_ld(VAR_3, 0));",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
14,919 | static void *show_parts(void *arg)
{
char *device = arg;
int nbd;
/* linux just needs an open() to trigger
* the partition table update
* but remember to load the module with max_part != 0 :
* modprobe nbd max_part=63
*/
nbd = open(device, O_RDWR);
if (nbd != -1) ... | false | qemu | fc19f8a02e45c4d8ad24dd7eb374330b03dfc28e | static void *show_parts(void *arg)
{
char *device = arg;
int nbd;
nbd = open(device, O_RDWR);
if (nbd != -1) {
close(nbd);
}
return NULL;
}
| {
"code": [],
"line_no": []
} | static void *FUNC_0(void *VAR_0)
{
char *VAR_1 = VAR_0;
int VAR_2;
VAR_2 = open(VAR_1, O_RDWR);
if (VAR_2 != -1) {
close(VAR_2);
}
return NULL;
}
| [
"static void *FUNC_0(void *VAR_0)\n{",
"char *VAR_1 = VAR_0;",
"int VAR_2;",
"VAR_2 = open(VAR_1, O_RDWR);",
"if (VAR_2 != -1) {",
"close(VAR_2);",
"}",
"return NULL;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
14,920 | static TCGArg *tcg_constant_folding(TCGContext *s, uint16_t *tcg_opc_ptr,
TCGArg *args, TCGOpDef *tcg_op_defs)
{
int i, nb_ops, op_index, nb_temps, nb_globals, nb_call_args;
TCGOpcode op;
const TCGOpDef *def;
TCGArg *gen_args;
TCGArg tmp;
TCGCond cond;... | false | qemu | b80bb016d8c8e9d74345a90ab6dac1cb547904e0 | static TCGArg *tcg_constant_folding(TCGContext *s, uint16_t *tcg_opc_ptr,
TCGArg *args, TCGOpDef *tcg_op_defs)
{
int i, nb_ops, op_index, nb_temps, nb_globals, nb_call_args;
TCGOpcode op;
const TCGOpDef *def;
TCGArg *gen_args;
TCGArg tmp;
TCGCond cond;... | {
"code": [],
"line_no": []
} | static TCGArg *FUNC_0(TCGContext *s, uint16_t *tcg_opc_ptr,
TCGArg *args, TCGOpDef *tcg_op_defs)
{
int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;
TCGOpcode op;
const TCGOpDef *VAR_6;
TCGArg *gen_args;
TCGArg tmp;
TCGCond cond;
V... | [
"static TCGArg *FUNC_0(TCGContext *s, uint16_t *tcg_opc_ptr,\nTCGArg *args, TCGOpDef *tcg_op_defs)\n{",
"int VAR_0, VAR_1, VAR_2, VAR_3, VAR_4, VAR_5;",
"TCGOpcode op;",
"const TCGOpDef *VAR_6;",
"TCGArg *gen_args;",
"TCGArg tmp;",
"TCGCond cond;",
"VAR_3 = s->VAR_3;",
"VAR_4 = s->VAR_4;",
"memset... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55
],
[
57
],
[
59
],
[
61
],
[... |
14,921 | static inline void tcg_out_sety(TCGContext *s, tcg_target_long val)
{
if (val == 0 || val == -1)
tcg_out32(s, WRY | INSN_IMM13(val));
else
fprintf(stderr, "unimplemented sety %ld\n", (long)val);
}
| false | qemu | 583d121520a81d07bacee7ebe9366d107c8b18b6 | static inline void tcg_out_sety(TCGContext *s, tcg_target_long val)
{
if (val == 0 || val == -1)
tcg_out32(s, WRY | INSN_IMM13(val));
else
fprintf(stderr, "unimplemented sety %ld\n", (long)val);
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(TCGContext *VAR_0, tcg_target_long VAR_1)
{
if (VAR_1 == 0 || VAR_1 == -1)
tcg_out32(VAR_0, WRY | INSN_IMM13(VAR_1));
else
fprintf(stderr, "unimplemented sety %ld\n", (long)VAR_1);
}
| [
"static inline void FUNC_0(TCGContext *VAR_0, tcg_target_long VAR_1)\n{",
"if (VAR_1 == 0 || VAR_1 == -1)\ntcg_out32(VAR_0, WRY | INSN_IMM13(VAR_1));",
"else\nfprintf(stderr, \"unimplemented sety %ld\\n\", (long)VAR_1);",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
9,
11
],
[
13
]
] |
14,922 | static void test_hba_spec(void)
{
AHCIQState *ahci;
ahci = ahci_boot();
ahci_pci_enable(ahci);
ahci_test_hba_spec(ahci);
ahci_shutdown(ahci);
}
| false | qemu | debaaa114a8877a939533ba846e64168fb287b7b | static void test_hba_spec(void)
{
AHCIQState *ahci;
ahci = ahci_boot();
ahci_pci_enable(ahci);
ahci_test_hba_spec(ahci);
ahci_shutdown(ahci);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
AHCIQState *ahci;
ahci = ahci_boot();
ahci_pci_enable(ahci);
ahci_test_hba_spec(ahci);
ahci_shutdown(ahci);
}
| [
"static void FUNC_0(void)\n{",
"AHCIQState *ahci;",
"ahci = ahci_boot();",
"ahci_pci_enable(ahci);",
"ahci_test_hba_spec(ahci);",
"ahci_shutdown(ahci);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
]
] |
14,923 | void pdu_free(V9fsPDU *pdu)
{
if (pdu) {
V9fsState *s = pdu->s;
/*
* Cancelled pdu are added back to the freelist
* by flush request .
*/
if (!pdu->cancelled) {
QLIST_REMOVE(pdu, next);
QLIST_INSERT_HEAD(&s->free_list, pdu, next);
... | false | qemu | 6868a420c519d74926ea814d48f6ce9beda35b98 | void pdu_free(V9fsPDU *pdu)
{
if (pdu) {
V9fsState *s = pdu->s;
if (!pdu->cancelled) {
QLIST_REMOVE(pdu, next);
QLIST_INSERT_HEAD(&s->free_list, pdu, next);
}
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0(V9fsPDU *VAR_0)
{
if (VAR_0) {
V9fsState *s = VAR_0->s;
if (!VAR_0->cancelled) {
QLIST_REMOVE(VAR_0, next);
QLIST_INSERT_HEAD(&s->free_list, VAR_0, next);
}
}
}
| [
"void FUNC_0(V9fsPDU *VAR_0)\n{",
"if (VAR_0) {",
"V9fsState *s = VAR_0->s;",
"if (!VAR_0->cancelled) {",
"QLIST_REMOVE(VAR_0, next);",
"QLIST_INSERT_HEAD(&s->free_list, VAR_0, next);",
"}",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
]
] |
14,924 | static av_noinline void emulated_edge_mc_mmxext(uint8_t *buf, const uint8_t *src,
ptrdiff_t buf_stride,
ptrdiff_t src_stride,
int block_w, int block_h,
... | false | FFmpeg | 5bca5f87d1a32669e0357790e0d0ad8a5c9c998b | static av_noinline void emulated_edge_mc_mmxext(uint8_t *buf, const uint8_t *src,
ptrdiff_t buf_stride,
ptrdiff_t src_stride,
int block_w, int block_h,
... | {
"code": [],
"line_no": []
} | static av_noinline void FUNC_0(uint8_t *buf, const uint8_t *src,
ptrdiff_t buf_stride,
ptrdiff_t src_stride,
int block_w, int block_h,
... | [
"static av_noinline void FUNC_0(uint8_t *buf, const uint8_t *src,\nptrdiff_t buf_stride,\nptrdiff_t src_stride,\nint block_w, int block_h,\nint src_x, int src_y, int w, int h)\n{",
"emulated_edge_mc(buf, src, buf_stride, src_stride, block_w, block_h,\nsrc_x, src_y, w, h, vfixtbl_mmx, &ff_emu_edge_vvar_mmx,\nhfixt... | [
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11
],
[
13,
15,
17
],
[
19
]
] |
14,925 | static int token_is_operator(QObject *obj, char op)
{
const char *val;
if (token_get_type(obj) != JSON_OPERATOR) {
return 0;
}
val = token_get_value(obj);
return (val[0] == op) && (val[1] == 0);
}
| false | qemu | c54616608af442edf4cfb7397a1909c2653efba0 | static int token_is_operator(QObject *obj, char op)
{
const char *val;
if (token_get_type(obj) != JSON_OPERATOR) {
return 0;
}
val = token_get_value(obj);
return (val[0] == op) && (val[1] == 0);
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(QObject *VAR_0, char VAR_1)
{
const char *VAR_2;
if (token_get_type(VAR_0) != JSON_OPERATOR) {
return 0;
}
VAR_2 = token_get_value(VAR_0);
return (VAR_2[0] == VAR_1) && (VAR_2[1] == 0);
}
| [
"static int FUNC_0(QObject *VAR_0, char VAR_1)\n{",
"const char *VAR_2;",
"if (token_get_type(VAR_0) != JSON_OPERATOR) {",
"return 0;",
"}",
"VAR_2 = token_get_value(VAR_0);",
"return (VAR_2[0] == VAR_1) && (VAR_2[1] == 0);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
17
],
[
21
],
[
23
]
] |
14,926 | static void mirror_start_job(BlockDriverState *bs, BlockDriverState *target,
const char *replaces,
int64_t speed, int64_t granularity,
int64_t buf_size,
BlockdevOnError on_source_error,
... | false | qemu | 0db6e54a8a2c6e16780356422da671b71f862341 | static void mirror_start_job(BlockDriverState *bs, BlockDriverState *target,
const char *replaces,
int64_t speed, int64_t granularity,
int64_t buf_size,
BlockdevOnError on_source_error,
... | {
"code": [],
"line_no": []
} | static void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1,
const char *VAR_2,
int64_t VAR_3, int64_t VAR_4,
int64_t VAR_5,
BlockdevOnError VAR_6,
BlockdevOnErro... | [
"static void FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1,\nconst char *VAR_2,\nint64_t VAR_3, int64_t VAR_4,\nint64_t VAR_5,\nBlockdevOnError VAR_6,\nBlockdevOnError VAR_7,\nBlockCompletionFunc *VAR_8,\nvoid *VAR_9, Error **VAR_10,\nconst BlockJobDriver *VAR_11,\nbool VAR_12, BlockDriverState *VAR_13)\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
] | [
[
1,
3,
5,
7,
9,
11,
13,
15,
17,
19,
21
],
[
23
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
55,
57,
59
],
[
61
],
[... |
14,927 | static void vnc_connect(VncDisplay *vd, QIOChannelSocket *sioc,
bool skipauth, bool websocket)
{
VncState *vs = g_new0(VncState, 1);
int i;
vs->sioc = sioc;
object_ref(OBJECT(vs->sioc));
vs->ioc = QIO_CHANNEL(sioc);
object_ref(OBJECT(vs->ioc));
vs->vd = vd;... | false | qemu | 38e5756a614e9a492d1bb181166cd031bc87e159 | static void vnc_connect(VncDisplay *vd, QIOChannelSocket *sioc,
bool skipauth, bool websocket)
{
VncState *vs = g_new0(VncState, 1);
int i;
vs->sioc = sioc;
object_ref(OBJECT(vs->sioc));
vs->ioc = QIO_CHANNEL(sioc);
object_ref(OBJECT(vs->ioc));
vs->vd = vd;... | {
"code": [],
"line_no": []
} | static void FUNC_0(VncDisplay *VAR_0, QIOChannelSocket *VAR_1,
bool VAR_2, bool VAR_3)
{
VncState *vs = g_new0(VncState, 1);
int VAR_4;
vs->VAR_1 = VAR_1;
object_ref(OBJECT(vs->VAR_1));
vs->ioc = QIO_CHANNEL(VAR_1);
object_ref(OBJECT(vs->ioc));
vs->VAR_0 = ... | [
"static void FUNC_0(VncDisplay *VAR_0, QIOChannelSocket *VAR_1,\nbool VAR_2, bool VAR_3)\n{",
"VncState *vs = g_new0(VncState, 1);",
"int VAR_4;",
"vs->VAR_1 = VAR_1;",
"object_ref(OBJECT(vs->VAR_1));",
"vs->ioc = QIO_CHANNEL(VAR_1);",
"object_ref(OBJECT(vs->ioc));",
"vs->VAR_0 = VAR_0;",
"buffer_in... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43,
45,
47
],
[
49,
51
],
[... |
14,928 | static inline void tlb_reset_dirty_range(CPUTLBEntry *tlb_entry,
unsigned long start, unsigned long length)
{
unsigned long addr;
if ((tlb_entry->addr_write & ~TARGET_PAGE_MASK) == io_mem_ram.ram_addr) {
addr = (tlb_entry->addr_write & TARGET_PAGE_MASK) + tl... | false | qemu | 7859cc6e39bf86f890bb1c72fd9ba41deb6ce2e7 | static inline void tlb_reset_dirty_range(CPUTLBEntry *tlb_entry,
unsigned long start, unsigned long length)
{
unsigned long addr;
if ((tlb_entry->addr_write & ~TARGET_PAGE_MASK) == io_mem_ram.ram_addr) {
addr = (tlb_entry->addr_write & TARGET_PAGE_MASK) + tl... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(CPUTLBEntry *VAR_0,
unsigned long VAR_1, unsigned long VAR_2)
{
unsigned long VAR_3;
if ((VAR_0->addr_write & ~TARGET_PAGE_MASK) == io_mem_ram.ram_addr) {
VAR_3 = (VAR_0->addr_write & TARGET_PAGE_MASK) + VAR_0->addend;
if (... | [
"static inline void FUNC_0(CPUTLBEntry *VAR_0,\nunsigned long VAR_1, unsigned long VAR_2)\n{",
"unsigned long VAR_3;",
"if ((VAR_0->addr_write & ~TARGET_PAGE_MASK) == io_mem_ram.ram_addr) {",
"VAR_3 = (VAR_0->addr_write & TARGET_PAGE_MASK) + VAR_0->addend;",
"if ((VAR_3 - VAR_1) < VAR_2) {",
"VAR_0->addr_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
14,929 | static inline void gen_evmergehi(DisasContext *ctx)
{
if (unlikely(!ctx->spe_enabled)) {
gen_exception(ctx, POWERPC_EXCP_APU);
return;
}
#if defined(TARGET_PPC64)
TCGv t0 = tcg_temp_new();
TCGv t1 = tcg_temp_new();
tcg_gen_shri_tl(t0, cpu_gpr[rB(ctx->opcode)], 32);
tcg_... | false | qemu | 27a69bb088bee6d4efea254659422fb9c751b3c7 | static inline void gen_evmergehi(DisasContext *ctx)
{
if (unlikely(!ctx->spe_enabled)) {
gen_exception(ctx, POWERPC_EXCP_APU);
return;
}
#if defined(TARGET_PPC64)
TCGv t0 = tcg_temp_new();
TCGv t1 = tcg_temp_new();
tcg_gen_shri_tl(t0, cpu_gpr[rB(ctx->opcode)], 32);
tcg_... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(DisasContext *VAR_0)
{
if (unlikely(!VAR_0->spe_enabled)) {
gen_exception(VAR_0, POWERPC_EXCP_APU);
return;
}
#if defined(TARGET_PPC64)
TCGv t0 = tcg_temp_new();
TCGv t1 = tcg_temp_new();
tcg_gen_shri_tl(t0, cpu_gpr[rB(VAR_0->opcode)], 32);
tcg... | [
"static inline void FUNC_0(DisasContext *VAR_0)\n{",
"if (unlikely(!VAR_0->spe_enabled)) {",
"gen_exception(VAR_0, POWERPC_EXCP_APU);",
"return;",
"}",
"#if defined(TARGET_PPC64)\nTCGv t0 = tcg_temp_new();",
"TCGv t1 = tcg_temp_new();",
"tcg_gen_shri_tl(t0, cpu_gpr[rB(VAR_0->opcode)], 32);",
"tcg_ge... | [
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
]
] |
14,930 | static void simple_dict(void)
{
int i;
struct {
const char *encoded;
LiteralQObject decoded;
} test_cases[] = {
{
.encoded = "{\"foo\": 42, \"bar\": \"hello world\"}",
.decoded = QLIT_QDICT(((LiteralQDictEntry[]){
{ "foo", QLI... | false | qemu | 9eaaf971683c99ed197fa1b7d1a3ca9baabfb3ee | static void simple_dict(void)
{
int i;
struct {
const char *encoded;
LiteralQObject decoded;
} test_cases[] = {
{
.encoded = "{\"foo\": 42, \"bar\": \"hello world\"}",
.decoded = QLIT_QDICT(((LiteralQDictEntry[]){
{ "foo", QLI... | {
"code": [],
"line_no": []
} | static void FUNC_0(void)
{
int VAR_0;
struct {
const char *encoded;
LiteralQObject decoded;
} VAR_1[] = {
{
.encoded = "{\"foo\": 42, \"bar\": \"hello world\"}",
.decoded = QLIT_QDICT(((LiteralQDictEntry[]){
{ "foo", QLIT_QINT... | [
"static void FUNC_0(void)\n{",
"int VAR_0;",
"struct {",
"const char *encoded;",
"LiteralQObject decoded;",
"} VAR_1[] = {",
"{",
".encoded = \"{\\\"foo\\\": 42, \\\"bar\\\": \\\"hello world\\\"}\",",
".decoded = QLIT_QDICT(((LiteralQDictEntry[]){",
"{ \"foo\", QLIT_QINT(42) },",
"{ \"bar\", QLI... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
... |
14,931 | static int local_open2(FsContext *fs_ctx, V9fsPath *dir_path, const char *name,
int flags, FsCred *credp)
{
char *path;
int fd = -1;
int err = -1;
int serrno = 0;
V9fsString fullname;
char buffer[PATH_MAX];
v9fs_string_init(&fullname);
v9fs_string_sprin... | false | qemu | b97400caef60ccfb0bc81c59f8bd824c43a0d6c8 | static int local_open2(FsContext *fs_ctx, V9fsPath *dir_path, const char *name,
int flags, FsCred *credp)
{
char *path;
int fd = -1;
int err = -1;
int serrno = 0;
V9fsString fullname;
char buffer[PATH_MAX];
v9fs_string_init(&fullname);
v9fs_string_sprin... | {
"code": [],
"line_no": []
} | static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, const char *VAR_2,
int VAR_3, FsCred *VAR_4)
{
char *VAR_5;
int VAR_6 = -1;
int VAR_7 = -1;
int VAR_8 = 0;
V9fsString fullname;
char VAR_9[PATH_MAX];
v9fs_string_init(&fullname);
v9fs_string_sprintf(&... | [
"static int FUNC_0(FsContext *VAR_0, V9fsPath *VAR_1, const char *VAR_2,\nint VAR_3, FsCred *VAR_4)\n{",
"char *VAR_5;",
"int VAR_6 = -1;",
"int VAR_7 = -1;",
"int VAR_8 = 0;",
"V9fsString fullname;",
"char VAR_9[PATH_MAX];",
"v9fs_string_init(&fullname);",
"v9fs_string_sprintf(&fullname, \"%s/%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
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[... |
14,932 | static void do_savevm(int argc, const char **argv)
{
if (argc != 2) {
help_cmd(argv[0]);
return;
}
if (qemu_savevm(argv[1]) < 0)
term_printf("I/O error when saving VM to '%s'\n", argv[1]);
}
| false | qemu | 9307c4c1d93939db9b04117b654253af5113dc21 | static void do_savevm(int argc, const char **argv)
{
if (argc != 2) {
help_cmd(argv[0]);
return;
}
if (qemu_savevm(argv[1]) < 0)
term_printf("I/O error when saving VM to '%s'\n", argv[1]);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(int VAR_0, const char **VAR_1)
{
if (VAR_0 != 2) {
help_cmd(VAR_1[0]);
return;
}
if (qemu_savevm(VAR_1[1]) < 0)
term_printf("I/O error when saving VM to '%s'\n", VAR_1[1]);
}
| [
"static void FUNC_0(int VAR_0, const char **VAR_1)\n{",
"if (VAR_0 != 2) {",
"help_cmd(VAR_1[0]);",
"return;",
"}",
"if (qemu_savevm(VAR_1[1]) < 0)\nterm_printf(\"I/O error when saving VM to '%s'\\n\", VAR_1[1]);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13,
15
],
[
17
]
] |
14,934 | static void evaluate_flags_writeback(uint32_t flags)
{
int x;
/* Extended arithmetics, leave the z flag alone. */
x = env->cc_x;
if ((x || env->cc_op == CC_OP_ADDC)
&& flags & Z_FLAG)
env->cc_mask &= ~Z_FLAG;
/* all insn clear the x-flag except setf or clrf. */
env->pregs[PR_CCS] &= ~(env->c... | false | qemu | a8cf66bb393ff420d40ae172a4c817bf2752918a | static void evaluate_flags_writeback(uint32_t flags)
{
int x;
x = env->cc_x;
if ((x || env->cc_op == CC_OP_ADDC)
&& flags & Z_FLAG)
env->cc_mask &= ~Z_FLAG;
env->pregs[PR_CCS] &= ~(env->cc_mask | X_FLAG);
flags &= env->cc_mask;
env->pregs[PR_CCS] |= flags;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(uint32_t VAR_0)
{
int VAR_1;
VAR_1 = env->cc_x;
if ((VAR_1 || env->cc_op == CC_OP_ADDC)
&& VAR_0 & Z_FLAG)
env->cc_mask &= ~Z_FLAG;
env->pregs[PR_CCS] &= ~(env->cc_mask | X_FLAG);
VAR_0 &= env->cc_mask;
env->pregs[PR_CCS] |= VAR_0;
}
| [
"static void FUNC_0(uint32_t VAR_0)\n{",
"int VAR_1;",
"VAR_1 = env->cc_x;",
"if ((VAR_1 || env->cc_op == CC_OP_ADDC)\n&& VAR_0 & Z_FLAG)\nenv->cc_mask &= ~Z_FLAG;",
"env->pregs[PR_CCS] &= ~(env->cc_mask | X_FLAG);",
"VAR_0 &= env->cc_mask;",
"env->pregs[PR_CCS] |= VAR_0;",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
11
],
[
13,
15,
17
],
[
23
],
[
25
],
[
27
],
[
29
]
] |
14,935 | static int epzs_motion_search(MpegEncContext * s,
int *mx_ptr, int *my_ptr,
int P[5][2], int pred_x, int pred_y,
int xmin, int ymin, int xmax, int ymax, uint8_t * ref_picture)
{
int best[2]={0, 0};
int d, dmin;
UI... | false | FFmpeg | 0d21a84605bad4e75dacb8196e5859902ed36f01 | static int epzs_motion_search(MpegEncContext * s,
int *mx_ptr, int *my_ptr,
int P[5][2], int pred_x, int pred_y,
int xmin, int ymin, int xmax, int ymax, uint8_t * ref_picture)
{
int best[2]={0, 0};
int d, dmin;
UI... | {
"code": [],
"line_no": []
} | static int FUNC_0(MpegEncContext * VAR_0,
int *VAR_1, int *VAR_2,
int VAR_3[5][2], int VAR_4, int VAR_5,
int VAR_6, int VAR_7, int VAR_8, int VAR_9, uint8_t * VAR_10)
{
int VAR_11[2]={0, 0};
int VAR_12, VAR_13;
UI... | [
"static int FUNC_0(MpegEncContext * VAR_0,\nint *VAR_1, int *VAR_2,\nint VAR_3[5][2], int VAR_4, int VAR_5,\nint VAR_6, int VAR_7, int VAR_8, int VAR_9, uint8_t * VAR_10)\n{",
"int VAR_11[2]={0, 0};",
"int VAR_12, VAR_13;",
"UINT8 *new_pic, *old_pic;",
"const int VAR_14= VAR_0->linesize;",
"const int VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
53
],
[... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.