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 |
|---|---|---|---|---|---|---|---|---|---|---|
26,125 | static av_always_inline void h264_filter_mb_fast_internal(H264Context *h,
H264SliceContext *sl,
int mb_x, int mb_y,
uint8_t *img_y,
... | false | FFmpeg | e6c90ce94f1b07f50cea2babf7471af455cca0ff | static av_always_inline void h264_filter_mb_fast_internal(H264Context *h,
H264SliceContext *sl,
int mb_x, int mb_y,
uint8_t *img_y,
... | {
"code": [],
"line_no": []
} | static av_always_inline void FUNC_0(H264Context *h,
H264SliceContext *sl,
int mb_x, int mb_y,
uint8_t *img_y,
... | [
"static av_always_inline void FUNC_0(H264Context *h,\nH264SliceContext *sl,\nint mb_x, int mb_y,\nuint8_t *img_y,\nuint8_t *img_cb,\nuint8_t *img_cr,\nunsigned int linesize,\nunsigned int uvlinesize,\nint pixel_shift)\n{",
"int VAR_0 = !(CONFIG_GRAY && (h->flags&CODEC_FLAG_GRAY));",
"int VAR_1 = CHROMA444(h);",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47
],
[
49
],
[
51
],
[
53
],
[
55
... |
26,126 | static void pxb_pcie_dev_realize(PCIDevice *dev, Error **errp)
{
if (!pci_bus_is_express(dev->bus)) {
error_setg(errp, "pxb-pcie devices cannot reside on a PCI bus");
return;
}
pxb_dev_realize_common(dev, true, errp);
}
| false | qemu | fd56e0612b6454a282fa6a953fdb09281a98c589 | static void pxb_pcie_dev_realize(PCIDevice *dev, Error **errp)
{
if (!pci_bus_is_express(dev->bus)) {
error_setg(errp, "pxb-pcie devices cannot reside on a PCI bus");
return;
}
pxb_dev_realize_common(dev, true, errp);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)
{
if (!pci_bus_is_express(VAR_0->bus)) {
error_setg(VAR_1, "pxb-pcie devices cannot reside on a PCI bus");
return;
}
pxb_dev_realize_common(VAR_0, true, VAR_1);
}
| [
"static void FUNC_0(PCIDevice *VAR_0, Error **VAR_1)\n{",
"if (!pci_bus_is_express(VAR_0->bus)) {",
"error_setg(VAR_1, \"pxb-pcie devices cannot reside on a PCI bus\");",
"return;",
"}",
"pxb_dev_realize_common(VAR_0, true, VAR_1);",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
]
] |
26,127 | static int float64_is_unordered(int sig, float64 a, float64 b STATUS_PARAM)
{
if (float64_is_signaling_nan(a) ||
float64_is_signaling_nan(b) ||
(sig && (float64_is_nan(a) || float64_is_nan(b)))) {
float_raise(float_flag_invalid, status);
return 1;
} else if (float64_is_nan... | false | qemu | 185698715dfb18c82ad2a5dbc169908602d43e81 | static int float64_is_unordered(int sig, float64 a, float64 b STATUS_PARAM)
{
if (float64_is_signaling_nan(a) ||
float64_is_signaling_nan(b) ||
(sig && (float64_is_nan(a) || float64_is_nan(b)))) {
float_raise(float_flag_invalid, status);
return 1;
} else if (float64_is_nan... | {
"code": [],
"line_no": []
} | static int FUNC_0(int VAR_0, float64 VAR_1, float64 VAR_2 STATUS_PARAM)
{
if (float64_is_signaling_nan(VAR_1) ||
float64_is_signaling_nan(VAR_2) ||
(VAR_0 && (float64_is_nan(VAR_1) || float64_is_nan(VAR_2)))) {
float_raise(float_flag_invalid, status);
return 1;
} else if (... | [
"static int FUNC_0(int VAR_0, float64 VAR_1, float64 VAR_2 STATUS_PARAM)\n{",
"if (float64_is_signaling_nan(VAR_1) ||\nfloat64_is_signaling_nan(VAR_2) ||\n(VAR_0 && (float64_is_nan(VAR_1) || float64_is_nan(VAR_2)))) {",
"float_raise(float_flag_invalid, status);",
"return 1;",
"} else if (float64_is_nan(VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
]
] |
26,128 | static void qmp_input_type_str(Visitor *v, const char *name, char **obj,
Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QObject *qobj = qmp_input_get_object(qiv, name, true, errp);
QString *qstr;
*obj = NULL;
if (!qobj) {
return;
}
qstr =... | false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void qmp_input_type_str(Visitor *v, const char *name, char **obj,
Error **errp)
{
QmpInputVisitor *qiv = to_qiv(v);
QObject *qobj = qmp_input_get_object(qiv, name, true, errp);
QString *qstr;
*obj = NULL;
if (!qobj) {
return;
}
qstr =... | {
"code": [],
"line_no": []
} | static void FUNC_0(Visitor *VAR_0, const char *VAR_1, char **VAR_2,
Error **VAR_3)
{
QmpInputVisitor *qiv = to_qiv(VAR_0);
QObject *qobj = qmp_input_get_object(qiv, VAR_1, true, VAR_3);
QString *qstr;
*VAR_2 = NULL;
if (!qobj) {
return;
}
qs... | [
"static void FUNC_0(Visitor *VAR_0, const char *VAR_1, char **VAR_2,\nError **VAR_3)\n{",
"QmpInputVisitor *qiv = to_qiv(VAR_0);",
"QObject *qobj = qmp_input_get_object(qiv, VAR_1, true, VAR_3);",
"QString *qstr;",
"*VAR_2 = NULL;",
"if (!qobj) {",
"return;",
"}",
"qstr = qobject_to_qstring(qobj);",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
37
],
[
39
]
] |
26,129 | static int curl_open(BlockDriverState *bs, const char *filename, int flags)
{
BDRVCURLState *s = bs->opaque;
CURLState *state = NULL;
double d;
#define RA_OPTSTR ":readahead="
char *file;
char *ra;
const char *ra_val;
int parse_state = 0;
static int inited = 0;
f... | false | qemu | 48a402e693cbea9582472159931aa6799a6c80c7 | static int curl_open(BlockDriverState *bs, const char *filename, int flags)
{
BDRVCURLState *s = bs->opaque;
CURLState *state = NULL;
double d;
#define RA_OPTSTR ":readahead="
char *file;
char *ra;
const char *ra_val;
int parse_state = 0;
static int inited = 0;
f... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2)
{
BDRVCURLState *s = VAR_0->opaque;
CURLState *state = NULL;
double VAR_3;
#define RA_OPTSTR ":readahead="
char *VAR_4;
char *VAR_5;
const char *VAR_6;
int VAR_7 = 0;
static int VAR_8 = 0;
V... | [
"static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2)\n{",
"BDRVCURLState *s = VAR_0->opaque;",
"CURLState *state = NULL;",
"double VAR_3;",
"#define RA_OPTSTR \":readahead=\"\nchar *VAR_4;",
"char *VAR_5;",
"const char *VAR_6;",
"int VAR_7 = 0;",
"static int VAR_8 = 0;",
"VAR_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31
],
[
37
],
[
39
],
[
41
],
[
43,
45
],
[
47,
49
],
[
51
],
[
53
],
[... |
26,130 | static void gen_ldarx(DisasContext *ctx)
{
TCGv t0;
gen_set_access_type(ctx, ACCESS_RES);
t0 = tcg_temp_local_new();
gen_addr_reg_index(ctx, t0);
gen_check_align(ctx, t0, 0x07);
gen_qemu_ld64(ctx, cpu_gpr[rD(ctx->opcode)], t0);
tcg_gen_mov_tl(cpu_reserve, t0);
tcg_temp_free(t0);... | false | qemu | 18b21a2f83a26c3d6a9e7f0bdc4e8eb2b177e8f6 | static void gen_ldarx(DisasContext *ctx)
{
TCGv t0;
gen_set_access_type(ctx, ACCESS_RES);
t0 = tcg_temp_local_new();
gen_addr_reg_index(ctx, t0);
gen_check_align(ctx, t0, 0x07);
gen_qemu_ld64(ctx, cpu_gpr[rD(ctx->opcode)], t0);
tcg_gen_mov_tl(cpu_reserve, t0);
tcg_temp_free(t0);... | {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0)
{
TCGv t0;
gen_set_access_type(VAR_0, ACCESS_RES);
t0 = tcg_temp_local_new();
gen_addr_reg_index(VAR_0, t0);
gen_check_align(VAR_0, t0, 0x07);
gen_qemu_ld64(VAR_0, cpu_gpr[rD(VAR_0->opcode)], t0);
tcg_gen_mov_tl(cpu_reserve, t0);
tcg_temp_... | [
"static void FUNC_0(DisasContext *VAR_0)\n{",
"TCGv t0;",
"gen_set_access_type(VAR_0, ACCESS_RES);",
"t0 = tcg_temp_local_new();",
"gen_addr_reg_index(VAR_0, t0);",
"gen_check_align(VAR_0, t0, 0x07);",
"gen_qemu_ld64(VAR_0, cpu_gpr[rD(VAR_0->opcode)], t0);",
"tcg_gen_mov_tl(cpu_reserve, t0);",
"tcg_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
26,131 | static void virtio_scsi_handle_ctrl(VirtIODevice *vdev, VirtQueue *vq)
{
VirtIOSCSI *s = (VirtIOSCSI *)vdev;
VirtIOSCSIReq *req;
while ((req = virtio_scsi_pop_req(s, vq))) {
int type;
if (iov_to_buf(req->elem.out_sg, req->elem.out_num, 0,
&type, sizeof(type)... | false | qemu | 3eff1f46f08a360a4ae9f834ce9fef4c45bf6f0f | static void virtio_scsi_handle_ctrl(VirtIODevice *vdev, VirtQueue *vq)
{
VirtIOSCSI *s = (VirtIOSCSI *)vdev;
VirtIOSCSIReq *req;
while ((req = virtio_scsi_pop_req(s, vq))) {
int type;
if (iov_to_buf(req->elem.out_sg, req->elem.out_num, 0,
&type, sizeof(type)... | {
"code": [],
"line_no": []
} | static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)
{
VirtIOSCSI *s = (VirtIOSCSI *)VAR_0;
VirtIOSCSIReq *req;
while ((req = virtio_scsi_pop_req(s, VAR_1))) {
int VAR_2;
if (iov_to_buf(req->elem.out_sg, req->elem.out_num, 0,
&VAR_2, sizeof(VAR_2)) < si... | [
"static void FUNC_0(VirtIODevice *VAR_0, VirtQueue *VAR_1)\n{",
"VirtIOSCSI *s = (VirtIOSCSI *)VAR_0;",
"VirtIOSCSIReq *req;",
"while ((req = virtio_scsi_pop_req(s, VAR_1))) {",
"int VAR_2;",
"if (iov_to_buf(req->elem.out_sg, req->elem.out_num, 0,\n&VAR_2, sizeof(VAR_2)) < sizeof(VAR_2)) {",
"virtio_scs... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
17,
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51... |
26,132 | void arm_cpu_realize(ARMCPU *cpu)
{
/* This function is called by cpu_arm_init() because it
* needs to do common actions based on feature bits, etc
* that have been set by the subclass init functions.
* When we have QOM realize support it should become
* a true realize function instead.
... | true | qemu | de9b05b807918d40db9e26ddd6a54ad2978ac5b7 | void arm_cpu_realize(ARMCPU *cpu)
{
CPUARMState *env = &cpu->env;
if (arm_feature(env, ARM_FEATURE_V7)) {
set_feature(env, ARM_FEATURE_VAPA);
set_feature(env, ARM_FEATURE_THUMB2);
set_feature(env, ARM_FEATURE_MPIDR);
if (!arm_feature(env, ARM_FEATURE_... | {
"code": [],
"line_no": []
} | void FUNC_0(ARMCPU *VAR_0)
{
CPUARMState *env = &VAR_0->env;
if (arm_feature(env, ARM_FEATURE_V7)) {
set_feature(env, ARM_FEATURE_VAPA);
set_feature(env, ARM_FEATURE_THUMB2);
set_feature(env, ARM_FEATURE_MPIDR);
if (!arm_feature(env, ARM_FEATURE_M)) {... | [
"void FUNC_0(ARMCPU *VAR_0)\n{",
"CPUARMState *env = &VAR_0->env;",
"if (arm_feature(env, ARM_FEATURE_V7)) {",
"set_feature(env, ARM_FEATURE_VAPA);",
"set_feature(env, ARM_FEATURE_THUMB2);",
"set_feature(env, ARM_FEATURE_MPIDR);",
"if (!arm_feature(env, ARM_FEATURE_M)) {",
"set_feature(env, ARM_FEATUR... | [
0,
0,
0,
0,
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
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41
],
[
43
],
[
46
],
[
48
],
[
50
],
[
52
],
[
56
],
[
58
],
[
... |
26,133 | static int mpc7_decode_frame(AVCodecContext * avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MPCContext *c = avctx->priv_data;
GetBitContext gb;
uint8_t *bits;
int i, ch;
int mb = -... | true | FFmpeg | 3c4add27f7513f435e9daa03643fd992d5f6bcee | static int mpc7_decode_frame(AVCodecContext * avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MPCContext *c = avctx->priv_data;
GetBitContext gb;
uint8_t *bits;
int i, ch;
int mb = -... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext * VAR_0, void *VAR_1,
int *VAR_2, AVPacket *VAR_3)
{
const uint8_t *VAR_4 = VAR_3->VAR_1;
int VAR_5 = VAR_3->size;
MPCContext *c = VAR_0->priv_data;
GetBitContext gb;
uint8_t *bits;
int VAR_6, VAR_7;
int VAR_8 = -1;
... | [
"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;",
"MPCContext *c = VAR_0->priv_data;",
"GetBitContext gb;",
"uint8_t *bits;",
"int VAR_6, VAR_7;",
"int VAR_8 = -1;",
"Band *bands = c->bands;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
43
],
[
45
],
[
47
],
[... |
26,134 | static void replication_start(ReplicationState *rs, ReplicationMode mode,
Error **errp)
{
BlockDriverState *bs = rs->opaque;
BDRVReplicationState *s;
BlockDriverState *top_bs;
int64_t active_length, hidden_length, disk_length;
AioContext *aio_context;
Error *local_e... | true | qemu | d470ad42acfc73c45d3e8ed5311a491160b4c100 | static void replication_start(ReplicationState *rs, ReplicationMode mode,
Error **errp)
{
BlockDriverState *bs = rs->opaque;
BDRVReplicationState *s;
BlockDriverState *top_bs;
int64_t active_length, hidden_length, disk_length;
AioContext *aio_context;
Error *local_e... | {
"code": [],
"line_no": []
} | static void FUNC_0(ReplicationState *VAR_0, ReplicationMode VAR_1,
Error **VAR_2)
{
BlockDriverState *bs = VAR_0->opaque;
BDRVReplicationState *s;
BlockDriverState *top_bs;
int64_t active_length, hidden_length, disk_length;
AioContext *aio_context;
Error *local_err ... | [
"static void FUNC_0(ReplicationState *VAR_0, ReplicationMode VAR_1,\nError **VAR_2)\n{",
"BlockDriverState *bs = VAR_0->opaque;",
"BDRVReplicationState *s;",
"BlockDriverState *top_bs;",
"int64_t active_length, hidden_length, disk_length;",
"AioContext *aio_context;",
"Error *local_err = NULL;",
"Bloc... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20,
21
],
[
22
],... |
26,135 | uint8_t* ff_AMediaCodec_getOutputBuffer(FFAMediaCodec* codec, size_t idx, size_t *out_size)
{
uint8_t *ret = NULL;
JNIEnv *env = NULL;
jobject buffer = NULL;
JNI_GET_ENV_OR_RETURN(env, codec, NULL);
if (codec->has_get_i_o_buffer) {
buffer = (*env)->CallObjectMethod(env, codec->o... | true | FFmpeg | 224bb46fb857dab589597bdab302ba8ba012008c | uint8_t* ff_AMediaCodec_getOutputBuffer(FFAMediaCodec* codec, size_t idx, size_t *out_size)
{
uint8_t *ret = NULL;
JNIEnv *env = NULL;
jobject buffer = NULL;
JNI_GET_ENV_OR_RETURN(env, codec, NULL);
if (codec->has_get_i_o_buffer) {
buffer = (*env)->CallObjectMethod(env, codec->o... | {
"code": [
" codec->output_buffers = (*env)->CallObjectMethod(env, codec->object, codec->jfields.get_output_buffers_id);",
" codec->output_buffers = (*env)->NewGlobalRef(env, codec->output_buffers);"
],
"line_no": [
33,
43
]
} | uint8_t* FUNC_0(FFAMediaCodec* codec, size_t idx, size_t *out_size)
{
uint8_t *ret = NULL;
JNIEnv *env = NULL;
jobject buffer = NULL;
JNI_GET_ENV_OR_RETURN(env, codec, NULL);
if (codec->has_get_i_o_buffer) {
buffer = (*env)->CallObjectMethod(env, codec->object, codec->jfields.ge... | [
"uint8_t* FUNC_0(FFAMediaCodec* codec, size_t idx, size_t *out_size)\n{",
"uint8_t *ret = NULL;",
"JNIEnv *env = NULL;",
"jobject buffer = NULL;",
"JNI_GET_ENV_OR_RETURN(env, codec, NULL);",
"if (codec->has_get_i_o_buffer) {",
"buffer = (*env)->CallObjectMethod(env, codec->object, codec->jfields.get_out... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49... |
26,137 | int cpu_get_dump_info(ArchDumpInfo *info,
const struct GuestPhysBlockList *guest_phys_blocks)
{
PowerPCCPU *cpu = POWERPC_CPU(first_cpu);
PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu);
info->d_machine = EM_PPC64;
info->d_class = ELFCLASS64;
if ((*pcc->interrupts_bi... | true | qemu | 760d88d1d0c409f1afe6f1c91539487413e8b2a9 | int cpu_get_dump_info(ArchDumpInfo *info,
const struct GuestPhysBlockList *guest_phys_blocks)
{
PowerPCCPU *cpu = POWERPC_CPU(first_cpu);
PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu);
info->d_machine = EM_PPC64;
info->d_class = ELFCLASS64;
if ((*pcc->interrupts_bi... | {
"code": [],
"line_no": []
} | int FUNC_0(ArchDumpInfo *VAR_0,
const struct GuestPhysBlockList *VAR_1)
{
PowerPCCPU *cpu = POWERPC_CPU(first_cpu);
PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu);
VAR_0->d_machine = EM_PPC64;
VAR_0->d_class = ELFCLASS64;
if ((*pcc->interrupts_big_endian)(cpu)) {
... | [
"int FUNC_0(ArchDumpInfo *VAR_0,\nconst struct GuestPhysBlockList *VAR_1)\n{",
"PowerPCCPU *cpu = POWERPC_CPU(first_cpu);",
"PowerPCCPUClass *pcc = POWERPC_CPU_GET_CLASS(cpu);",
"VAR_0->d_machine = EM_PPC64;",
"VAR_0->d_class = ELFCLASS64;",
"if ((*pcc->interrupts_big_endian)(cpu)) {",
"VAR_0->d_endian ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
33
]
] |
26,138 | static int try_decode_video_frame(AVCodecContext *codec_ctx, AVPacket *pkt, int decode)
{
int ret = 0;
int got_frame = 0;
AVFrame *frame = NULL;
int skip_frame = codec_ctx->skip_frame;
if (!avcodec_is_open(codec_ctx)) {
const AVCodec *codec = avcodec_find_decoder(codec_ctx->codec_id... | true | FFmpeg | dfbb5de172b3a0373cbead8a966c41f5ba1ae08b | static int try_decode_video_frame(AVCodecContext *codec_ctx, AVPacket *pkt, int decode)
{
int ret = 0;
int got_frame = 0;
AVFrame *frame = NULL;
int skip_frame = codec_ctx->skip_frame;
if (!avcodec_is_open(codec_ctx)) {
const AVCodec *codec = avcodec_find_decoder(codec_ctx->codec_id... | {
"code": [
" if (!decode && codec_ctx->codec->caps_internal & FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM) {"
],
"line_no": [
47
]
} | static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, int VAR_2)
{
int VAR_3 = 0;
int VAR_4 = 0;
AVFrame *frame = NULL;
int VAR_5 = VAR_0->VAR_5;
if (!avcodec_is_open(VAR_0)) {
const AVCodec *VAR_6 = avcodec_find_decoder(VAR_0->codec_id);
VAR_3 = avcodec_open2(VAR_0, ... | [
"static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, int VAR_2)\n{",
"int VAR_3 = 0;",
"int VAR_4 = 0;",
"AVFrame *frame = NULL;",
"int VAR_5 = VAR_0->VAR_5;",
"if (!avcodec_is_open(VAR_0)) {",
"const AVCodec *VAR_6 = avcodec_find_decoder(VAR_0->codec_id);",
"VAR_3 = avcodec_open2(VAR_0, VAR_6, ... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
... |
26,139 | static int tiff_decode_tag(TiffContext *s, AVFrame *frame)
{
unsigned tag, type, count, off, value = 0, value2 = 0;
int i, start;
int pos;
int ret;
double *dp;
ret = ff_tread_tag(&s->gb, s->le, &tag, &type, &count, &start);
if (ret < 0) {
goto end;
}
off = byte... | false | FFmpeg | e1c0cfaa419aa5d320540d5a1b3f8fd9b82ab7e5 | static int tiff_decode_tag(TiffContext *s, AVFrame *frame)
{
unsigned tag, type, count, off, value = 0, value2 = 0;
int i, start;
int pos;
int ret;
double *dp;
ret = ff_tread_tag(&s->gb, s->le, &tag, &type, &count, &start);
if (ret < 0) {
goto end;
}
off = byte... | {
"code": [],
"line_no": []
} | static int FUNC_0(TiffContext *VAR_0, AVFrame *VAR_1)
{
unsigned VAR_2, VAR_3, VAR_4, VAR_5, VAR_6 = 0, VAR_7 = 0;
int VAR_8, VAR_9;
int VAR_10;
int VAR_11;
double *VAR_12;
VAR_11 = ff_tread_tag(&VAR_0->gb, VAR_0->le, &VAR_2, &VAR_3, &VAR_4, &VAR_9);
if (VAR_11 < 0) {
goto... | [
"static int FUNC_0(TiffContext *VAR_0, AVFrame *VAR_1)\n{",
"unsigned VAR_2, VAR_3, VAR_4, VAR_5, VAR_6 = 0, VAR_7 = 0;",
"int VAR_8, VAR_9;",
"int VAR_10;",
"int VAR_11;",
"double *VAR_12;",
"VAR_11 = ff_tread_tag(&VAR_0->gb, VAR_0->le, &VAR_2, &VAR_3, &VAR_4, &VAR_9);",
"if (VAR_11 < 0) {",
"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,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
31
],
[
33,
35,
37,
39
],
[
41
],
[
43,
45
],
[
47
],
[
49
... |
26,140 | static int reap_filters(void)
{
AVFilterBufferRef *picref;
AVFrame *filtered_frame = NULL;
int i;
int64_t frame_pts;
/* Reap all buffers present in the buffer sinks */
for (i = 0; i < nb_output_streams; i++) {
OutputStream *ost = output_streams[i];
OutputFile *of = ... | true | FFmpeg | c3fb20bab4f00621733809fb35ee39a5ae11e598 | static int reap_filters(void)
{
AVFilterBufferRef *picref;
AVFrame *filtered_frame = NULL;
int i;
int64_t frame_pts;
for (i = 0; i < nb_output_streams; i++) {
OutputStream *ost = output_streams[i];
OutputFile *of = output_files[ost->file_index];
int ret = ... | {
"code": [],
"line_no": []
} | static int FUNC_0(void)
{
AVFilterBufferRef *picref;
AVFrame *filtered_frame = NULL;
int VAR_0;
int64_t frame_pts;
for (VAR_0 = 0; VAR_0 < nb_output_streams; VAR_0++) {
OutputStream *ost = output_streams[VAR_0];
OutputFile *of = output_files[ost->file_index];
... | [
"static int FUNC_0(void)\n{",
"AVFilterBufferRef *picref;",
"AVFrame *filtered_frame = NULL;",
"int VAR_0;",
"int64_t frame_pts;",
"for (VAR_0 = 0; VAR_0 < nb_output_streams; VAR_0++) {",
"OutputStream *ost = output_streams[VAR_0];",
"OutputFile *of = output_files[ost->file_index];",
"int ret = 0... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27,
29
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
45
],
[
47,
49
],
[
51
],
[
53
... |
26,142 | static av_always_inline void hl_decode_mb_predict_luma(H264Context *h, int mb_type, int is_h264, int simple, int transform_bypass,
int pixel_shift, int *block_offset, int linesize, uint8_t *dest_y, int p)
{
MpegEncContext * const s = &h->s;
void (*idct_... | true | FFmpeg | 4d1418cd4f620b382106542d0f33d96e33a0fdae | static av_always_inline void hl_decode_mb_predict_luma(H264Context *h, int mb_type, int is_h264, int simple, int transform_bypass,
int pixel_shift, int *block_offset, int linesize, uint8_t *dest_y, int p)
{
MpegEncContext * const s = &h->s;
void (*idct_... | {
"code": [
" tr= ptr[3 - linesize]*0x01010101;"
],
"line_no": [
125
]
} | static av_always_inline void FUNC_0(H264Context *h, int mb_type, int is_h264, int simple, int transform_bypass,
int pixel_shift, int *block_offset, int linesize, uint8_t *dest_y, int p)
{
MpegEncContext * const s = &h->s;
void (*VAR_0)(uint8_t *VAR_5, D... | [
"static av_always_inline void FUNC_0(H264Context *h, int mb_type, int is_h264, int simple, int transform_bypass,\nint pixel_shift, int *block_offset, int linesize, uint8_t *dest_y, int p)\n{",
"MpegEncContext * const s = &h->s;",
"void (*VAR_0)(uint8_t *VAR_5, DCTELEM *VAR_5, int VAR_5);",
"void (*VAR_4)(uint... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27,
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
26,143 | static int adx_read_packet(AVFormatContext *s, AVPacket *pkt)
{
ADXDemuxerContext *c = s->priv_data;
AVCodecContext *avctx = s->streams[0]->codec;
int ret, size;
size = BLOCK_SIZE * avctx->channels;
pkt->pos = avio_tell(s->pb);
pkt->stream_index = 0;
ret = av_get_packet(s->pb, pkt, size);
... | true | FFmpeg | 7faa40af982960608b117e20fec999b48011e5e0 | static int adx_read_packet(AVFormatContext *s, AVPacket *pkt)
{
ADXDemuxerContext *c = s->priv_data;
AVCodecContext *avctx = s->streams[0]->codec;
int ret, size;
size = BLOCK_SIZE * avctx->channels;
pkt->pos = avio_tell(s->pb);
pkt->stream_index = 0;
ret = av_get_packet(s->pb, pkt, size);
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)
{
ADXDemuxerContext *c = VAR_0->priv_data;
AVCodecContext *avctx = VAR_0->streams[0]->codec;
int VAR_2, VAR_3;
VAR_3 = BLOCK_SIZE * avctx->channels;
VAR_1->pos = avio_tell(VAR_0->pb);
VAR_1->stream_index = 0;
VAR_2 = av_get_packet(VA... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{",
"ADXDemuxerContext *c = VAR_0->priv_data;",
"AVCodecContext *avctx = VAR_0->streams[0]->codec;",
"int VAR_2, VAR_3;",
"VAR_3 = BLOCK_SIZE * avctx->channels;",
"VAR_1->pos = avio_tell(VAR_0->pb);",
"VAR_1->stream_index = 0;",
"VAR_2 = av_... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
]
] |
26,144 | static int execute_command(BlockDriverState *bdrv,
SCSIGenericReq *r, int direction,
BlockDriverCompletionFunc *complete)
{
SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, r->req.dev);
r->io_header.interface_id = 'S';
r->io_header.dxfer_direction = direction;... | true | qemu | a1f0cce2ac0243572ff72aa561da67fe3766a395 | static int execute_command(BlockDriverState *bdrv,
SCSIGenericReq *r, int direction,
BlockDriverCompletionFunc *complete)
{
SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, r->req.dev);
r->io_header.interface_id = 'S';
r->io_header.dxfer_direction = direction;... | {
"code": [
" return -1;"
],
"line_no": [
43
]
} | static int FUNC_0(BlockDriverState *VAR_0,
SCSIGenericReq *VAR_1, int VAR_2,
BlockDriverCompletionFunc *VAR_3)
{
SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, VAR_1->req.dev);
VAR_1->io_header.interface_id = 'S';
VAR_1->io_header.dxfer_direction = VAR_2;
... | [
"static int FUNC_0(BlockDriverState *VAR_0,\nSCSIGenericReq *VAR_1, int VAR_2,\nBlockDriverCompletionFunc *VAR_3)\n{",
"SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, VAR_1->req.dev);",
"VAR_1->io_header.interface_id = 'S';",
"VAR_1->io_header.dxfer_direction = VAR_2;",
"VAR_1->io_header.dxferp = V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
49
... |
26,145 | static int get_int8(QEMUFile *f, void *pv, size_t size)
{
int8_t *v = pv;
qemu_get_s8s(f, v);
return 0;
}
| true | qemu | 60fe637bf0e4d7989e21e50f52526444765c63b4 | static int get_int8(QEMUFile *f, void *pv, size_t size)
{
int8_t *v = pv;
qemu_get_s8s(f, v);
return 0;
}
| {
"code": [],
"line_no": []
} | static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)
{
int8_t *v = VAR_1;
qemu_get_s8s(VAR_0, v);
return 0;
}
| [
"static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{",
"int8_t *v = VAR_1;",
"qemu_get_s8s(VAR_0, v);",
"return 0;",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
26,146 | static void handle_msr(DisasContext *s, uint32_t insn, unsigned int op0,
unsigned int op1, unsigned int op2,
unsigned int crn, unsigned int crm, unsigned int rt)
{
unsupported_encoding(s, insn);
}
| false | qemu | fea505221eaf87889000378d4d33ad0dfd5f4d9d | static void handle_msr(DisasContext *s, uint32_t insn, unsigned int op0,
unsigned int op1, unsigned int op2,
unsigned int crn, unsigned int crm, unsigned int rt)
{
unsupported_encoding(s, insn);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, unsigned int VAR_2,
unsigned int VAR_3, unsigned int VAR_4,
unsigned int VAR_5, unsigned int VAR_6, unsigned int VAR_7)
{
unsupported_encoding(VAR_0, VAR_1);
}
| [
"static void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1, unsigned int VAR_2,\nunsigned int VAR_3, unsigned int VAR_4,\nunsigned int VAR_5, unsigned int VAR_6, unsigned int VAR_7)\n{",
"unsupported_encoding(VAR_0, VAR_1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
9
],
[
11
]
] |
26,147 | static void validate_teardown(TestInputVisitorData *data,
const void *unused)
{
qobject_decref(data->obj);
data->obj = NULL;
if (data->qiv) {
visit_free(data->qiv);
data->qiv = NULL;
}
}
| false | qemu | b3db211f3c80bb996a704d665fe275619f728bd4 | static void validate_teardown(TestInputVisitorData *data,
const void *unused)
{
qobject_decref(data->obj);
data->obj = NULL;
if (data->qiv) {
visit_free(data->qiv);
data->qiv = NULL;
}
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(TestInputVisitorData *VAR_0,
const void *VAR_1)
{
qobject_decref(VAR_0->obj);
VAR_0->obj = NULL;
if (VAR_0->qiv) {
visit_free(VAR_0->qiv);
VAR_0->qiv = NULL;
}
}
| [
"static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{",
"qobject_decref(VAR_0->obj);",
"VAR_0->obj = NULL;",
"if (VAR_0->qiv) {",
"visit_free(VAR_0->qiv);",
"VAR_0->qiv = NULL;",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
26,148 | int kvm_arch_remove_hw_breakpoint(target_ulong addr,
target_ulong len, int type)
{
int n;
n = find_hw_breakpoint(addr, (type == GDB_BREAKPOINT_HW) ? 1 : len, type);
if (n < 0)
return -ENOENT;
nb_hw_breakpoint--;
hw_breakpoint[n] = hw_breakpoint[n... | false | qemu | b9bec74bcb16519a876ec21cd5277c526a9b512d | int kvm_arch_remove_hw_breakpoint(target_ulong addr,
target_ulong len, int type)
{
int n;
n = find_hw_breakpoint(addr, (type == GDB_BREAKPOINT_HW) ? 1 : len, type);
if (n < 0)
return -ENOENT;
nb_hw_breakpoint--;
hw_breakpoint[n] = hw_breakpoint[n... | {
"code": [],
"line_no": []
} | int FUNC_0(target_ulong VAR_0,
target_ulong VAR_1, int VAR_2)
{
int VAR_3;
VAR_3 = find_hw_breakpoint(VAR_0, (VAR_2 == GDB_BREAKPOINT_HW) ? 1 : VAR_1, VAR_2);
if (VAR_3 < 0)
return -ENOENT;
nb_hw_breakpoint--;
hw_breakpoint[VAR_3] = hw_breakpoint... | [
"int FUNC_0(target_ulong VAR_0,\ntarget_ulong VAR_1, int VAR_2)\n{",
"int VAR_3;",
"VAR_3 = find_hw_breakpoint(VAR_0, (VAR_2 == GDB_BREAKPOINT_HW) ? 1 : VAR_1, VAR_2);",
"if (VAR_3 < 0)\nreturn -ENOENT;",
"nb_hw_breakpoint--;",
"hw_breakpoint[VAR_3] = hw_breakpoint[nb_hw_breakpoint];",
"return 0;",
"}... | [
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13,
15
],
[
19
],
[
21
],
[
25
],
[
27
]
] |
26,150 | void HELPER(cas2l)(CPUM68KState *env, uint32_t regs, uint32_t a1, uint32_t a2)
{
uint32_t Dc1 = extract32(regs, 9, 3);
uint32_t Dc2 = extract32(regs, 6, 3);
uint32_t Du1 = extract32(regs, 3, 3);
uint32_t Du2 = extract32(regs, 0, 3);
uint32_t c1 = env->dregs[Dc1];
uint32_t c2 = env->dregs[... | false | qemu | f0ddf11b23260f0af84fb529486a8f9ba2d19401 | void HELPER(cas2l)(CPUM68KState *env, uint32_t regs, uint32_t a1, uint32_t a2)
{
uint32_t Dc1 = extract32(regs, 9, 3);
uint32_t Dc2 = extract32(regs, 6, 3);
uint32_t Du1 = extract32(regs, 3, 3);
uint32_t Du2 = extract32(regs, 0, 3);
uint32_t c1 = env->dregs[Dc1];
uint32_t c2 = env->dregs[... | {
"code": [],
"line_no": []
} | void FUNC_0(cas2l)(CPUM68KState *env, uint32_t regs, uint32_t a1, uint32_t a2)
{
uint32_t Dc1 = extract32(regs, 9, 3);
uint32_t Dc2 = extract32(regs, 6, 3);
uint32_t Du1 = extract32(regs, 3, 3);
uint32_t Du2 = extract32(regs, 0, 3);
uint32_t c1 = env->dregs[Dc1];
uint32_t c2 = env->dregs[... | [
"void FUNC_0(cas2l)(CPUM68KState *env, uint32_t regs, uint32_t a1, uint32_t a2)\n{",
"uint32_t Dc1 = extract32(regs, 9, 3);",
"uint32_t Dc2 = extract32(regs, 6, 3);",
"uint32_t Du1 = extract32(regs, 3, 3);",
"uint32_t Du2 = extract32(regs, 0, 3);",
"uint32_t c1 = env->dregs[Dc1];",
"uint32_t c2 = env->d... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
35
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[... |
26,151 | static inline hwaddr booke206_page_size_to_tlb(uint64_t size)
{
return (ffs(size >> 10) - 1) >> 1;
}
| false | qemu | 786a4ea82ec9c87e3a895cf41081029b285a5fe5 | static inline hwaddr booke206_page_size_to_tlb(uint64_t size)
{
return (ffs(size >> 10) - 1) >> 1;
}
| {
"code": [],
"line_no": []
} | static inline hwaddr FUNC_0(uint64_t size)
{
return (ffs(size >> 10) - 1) >> 1;
}
| [
"static inline hwaddr FUNC_0(uint64_t size)\n{",
"return (ffs(size >> 10) - 1) >> 1;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
26,153 | sofcantrcvmore(struct socket *so)
{
if ((so->so_state & SS_NOFDREF) == 0) {
shutdown(so->s,0);
if(global_writefds) {
FD_CLR(so->s,global_writefds);
}
}
so->so_state &= ~(SS_ISFCONNECTING);
if (so->so_state & SS_FCANTSENDMORE) {
so->so_state &= SS_PERSISTENT_MASK;
so->so_state |= SS_NOFD... | false | qemu | 8917c3bdba37d6fe4393db0fad3fabbde9530d6b | sofcantrcvmore(struct socket *so)
{
if ((so->so_state & SS_NOFDREF) == 0) {
shutdown(so->s,0);
if(global_writefds) {
FD_CLR(so->s,global_writefds);
}
}
so->so_state &= ~(SS_ISFCONNECTING);
if (so->so_state & SS_FCANTSENDMORE) {
so->so_state &= SS_PERSISTENT_MASK;
so->so_state |= SS_NOFD... | {
"code": [],
"line_no": []
} | FUNC_0(struct socket *VAR_0)
{
if ((VAR_0->so_state & SS_NOFDREF) == 0) {
shutdown(VAR_0->s,0);
if(global_writefds) {
FD_CLR(VAR_0->s,global_writefds);
}
}
VAR_0->so_state &= ~(SS_ISFCONNECTING);
if (VAR_0->so_state & SS_FCANTSENDMORE) {
VAR_0->so_state &= SS_PERSISTENT_MASK;
VAR_0->so_... | [
"FUNC_0(struct socket *VAR_0)\n{",
"if ((VAR_0->so_state & SS_NOFDREF) == 0) {",
"shutdown(VAR_0->s,0);",
"if(global_writefds) {",
"FD_CLR(VAR_0->s,global_writefds);",
"}",
"}",
"VAR_0->so_state &= ~(SS_ISFCONNECTING);",
"if (VAR_0->so_state & SS_FCANTSENDMORE) {",
"VAR_0->so_state &= SS_PERSISTEN... | [
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
]
] |
26,155 | void cpu_breakpoint_remove_all(CPUState *env, int mask)
{
#if defined(TARGET_HAS_ICE)
CPUBreakpoint *bp, *next;
TAILQ_FOREACH_SAFE(bp, &env->breakpoints, entry, next) {
if (bp->flags & mask)
cpu_breakpoint_remove_by_ref(env, bp);
}
#endif
}
| false | qemu | 72cf2d4f0e181d0d3a3122e04129c58a95da713e | void cpu_breakpoint_remove_all(CPUState *env, int mask)
{
#if defined(TARGET_HAS_ICE)
CPUBreakpoint *bp, *next;
TAILQ_FOREACH_SAFE(bp, &env->breakpoints, entry, next) {
if (bp->flags & mask)
cpu_breakpoint_remove_by_ref(env, bp);
}
#endif
}
| {
"code": [],
"line_no": []
} | void FUNC_0(CPUState *VAR_0, int VAR_1)
{
#if defined(TARGET_HAS_ICE)
CPUBreakpoint *bp, *next;
TAILQ_FOREACH_SAFE(bp, &VAR_0->breakpoints, entry, next) {
if (bp->flags & VAR_1)
cpu_breakpoint_remove_by_ref(VAR_0, bp);
}
#endif
}
| [
"void FUNC_0(CPUState *VAR_0, int VAR_1)\n{",
"#if defined(TARGET_HAS_ICE)\nCPUBreakpoint *bp, *next;",
"TAILQ_FOREACH_SAFE(bp, &VAR_0->breakpoints, entry, next) {",
"if (bp->flags & VAR_1)\ncpu_breakpoint_remove_by_ref(VAR_0, bp);",
"}",
"#endif\n}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
13,
15
],
[
17
],
[
19,
21
]
] |
26,157 | static void scsi_destroy(SCSIDevice *d)
{
SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, d);
SCSIGenericReq *r;
while (!QTAILQ_EMPTY(&s->qdev.requests)) {
r = DO_UPCAST(SCSIGenericReq, req, QTAILQ_FIRST(&s->qdev.requests));
scsi_remove_request(r);
}
blockdev_mark_a... | false | qemu | f8b6cc0070aab8b75bd082582c829be1353f395f | static void scsi_destroy(SCSIDevice *d)
{
SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, d);
SCSIGenericReq *r;
while (!QTAILQ_EMPTY(&s->qdev.requests)) {
r = DO_UPCAST(SCSIGenericReq, req, QTAILQ_FIRST(&s->qdev.requests));
scsi_remove_request(r);
}
blockdev_mark_a... | {
"code": [],
"line_no": []
} | static void FUNC_0(SCSIDevice *VAR_0)
{
SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, VAR_0);
SCSIGenericReq *r;
while (!QTAILQ_EMPTY(&s->qdev.requests)) {
r = DO_UPCAST(SCSIGenericReq, req, QTAILQ_FIRST(&s->qdev.requests));
scsi_remove_request(r);
}
blockdev_mark... | [
"static void FUNC_0(SCSIDevice *VAR_0)\n{",
"SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, VAR_0);",
"SCSIGenericReq *r;",
"while (!QTAILQ_EMPTY(&s->qdev.requests)) {",
"r = DO_UPCAST(SCSIGenericReq, req, QTAILQ_FIRST(&s->qdev.requests));",
"scsi_remove_request(r);",
"}",
"blockdev_mark_auto... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
26,159 | static inline void kqemu_save_seg(SegmentCache *sc,
const struct kqemu_segment_cache *ksc)
{
sc->selector = ksc->selector;
sc->flags = ksc->flags;
sc->limit = ksc->limit;
sc->base = ksc->base;
}
| false | qemu | 4a1418e07bdcfaa3177739e04707ecaec75d89e1 | static inline void kqemu_save_seg(SegmentCache *sc,
const struct kqemu_segment_cache *ksc)
{
sc->selector = ksc->selector;
sc->flags = ksc->flags;
sc->limit = ksc->limit;
sc->base = ksc->base;
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(SegmentCache *VAR_0,
const struct kqemu_segment_cache *VAR_1)
{
VAR_0->selector = VAR_1->selector;
VAR_0->flags = VAR_1->flags;
VAR_0->limit = VAR_1->limit;
VAR_0->base = VAR_1->base;
}
| [
"static inline void FUNC_0(SegmentCache *VAR_0,\nconst struct kqemu_segment_cache *VAR_1)\n{",
"VAR_0->selector = VAR_1->selector;",
"VAR_0->flags = VAR_1->flags;",
"VAR_0->limit = VAR_1->limit;",
"VAR_0->base = VAR_1->base;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
26,161 | static void omap_mpu_timer_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
struct omap_mpu_timer_s *s = (struct omap_mpu_timer_s *) opaque;
if (size != 4) {
return omap_badwidth_write32(opaque, addr, value);
}
switch (addr... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void omap_mpu_timer_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
struct omap_mpu_timer_s *s = (struct omap_mpu_timer_s *) opaque;
if (size != 4) {
return omap_badwidth_write32(opaque, addr, value);
}
switch (addr... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
struct omap_mpu_timer_s *VAR_4 = (struct omap_mpu_timer_s *) VAR_0;
if (VAR_3 != 4) {
return omap_badwidth_write32(VAR_0, VAR_1, VAR_2);
}
switch (VAR_1) {
... | [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"struct omap_mpu_timer_s *VAR_4 = (struct omap_mpu_timer_s *) VAR_0;",
"if (VAR_3 != 4) {",
"return omap_badwidth_write32(VAR_0, VAR_1, VAR_2);",
"}",
"switch (VAR_1) {",
"case 0x00:\nomap_timer_sync(VAR_4);... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39,
41
],
[
43
],
[
47,
49
],
[
51
],
[
55... |
26,162 | bool qemu_peer_has_vnet_hdr(NetClientState *nc)
{
if (!nc->peer || !nc->peer->info->has_vnet_hdr) {
return false;
}
return nc->peer->info->has_vnet_hdr(nc->peer);
}
| false | qemu | d6085e3ace20bc9b0fa625d8d79b22668710e217 | bool qemu_peer_has_vnet_hdr(NetClientState *nc)
{
if (!nc->peer || !nc->peer->info->has_vnet_hdr) {
return false;
}
return nc->peer->info->has_vnet_hdr(nc->peer);
}
| {
"code": [],
"line_no": []
} | bool FUNC_0(NetClientState *nc)
{
if (!nc->peer || !nc->peer->info->has_vnet_hdr) {
return false;
}
return nc->peer->info->has_vnet_hdr(nc->peer);
}
| [
"bool FUNC_0(NetClientState *nc)\n{",
"if (!nc->peer || !nc->peer->info->has_vnet_hdr) {",
"return false;",
"}",
"return nc->peer->info->has_vnet_hdr(nc->peer);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
]
] |
26,163 | static void vmxnet3_cleanup(NetClientState *nc)
{
VMXNET3State *s = qemu_get_nic_opaque(nc);
s->nic = NULL;
}
| false | qemu | 57407ea44cc0a3d630b9b89a2be011f1955ce5c1 | static void vmxnet3_cleanup(NetClientState *nc)
{
VMXNET3State *s = qemu_get_nic_opaque(nc);
s->nic = NULL;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(NetClientState *VAR_0)
{
VMXNET3State *s = qemu_get_nic_opaque(VAR_0);
s->nic = NULL;
}
| [
"static void FUNC_0(NetClientState *VAR_0)\n{",
"VMXNET3State *s = qemu_get_nic_opaque(VAR_0);",
"s->nic = NULL;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
26,164 | void op_cp1_enabled(void)
{
if (!(env->CP0_Status & (1 << CP0St_CU1))) {
CALL_FROM_TB2(do_raise_exception_err, EXCP_CpU, 1);
}
RETURN();
}
| false | qemu | 5e755519ac9d867f7da13f58a9d0c262db82e14c | void op_cp1_enabled(void)
{
if (!(env->CP0_Status & (1 << CP0St_CU1))) {
CALL_FROM_TB2(do_raise_exception_err, EXCP_CpU, 1);
}
RETURN();
}
| {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
if (!(env->CP0_Status & (1 << CP0St_CU1))) {
CALL_FROM_TB2(do_raise_exception_err, EXCP_CpU, 1);
}
RETURN();
}
| [
"void FUNC_0(void)\n{",
"if (!(env->CP0_Status & (1 << CP0St_CU1))) {",
"CALL_FROM_TB2(do_raise_exception_err, EXCP_CpU, 1);",
"}",
"RETURN();",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
]
] |
26,165 | static int put_flac_codecpriv(AVFormatContext *s, ByteIOContext *pb, AVCodecContext *codec)
{
// if the extradata_size is greater than FLAC_STREAMINFO_SIZE,
// assume that it's in Matroska format already
if (codec->extradata_size < FLAC_STREAMINFO_SIZE) {
av_log(s, AV_LOG_ERROR, "Invalid FLAC e... | false | FFmpeg | 59c6178a54c414fd19e064f0077d00b82a1eb812 | static int put_flac_codecpriv(AVFormatContext *s, ByteIOContext *pb, AVCodecContext *codec)
{
if (codec->extradata_size < FLAC_STREAMINFO_SIZE) {
av_log(s, AV_LOG_ERROR, "Invalid FLAC extradata\n");
return -1;
} else if (codec->extradata_size == FLAC_STREAMINFO_SIZE) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVFormatContext *VAR_0, ByteIOContext *VAR_1, AVCodecContext *VAR_2)
{
if (VAR_2->extradata_size < FLAC_STREAMINFO_SIZE) {
av_log(VAR_0, AV_LOG_ERROR, "Invalid FLAC extradata\n");
return -1;
} else if (VAR_2->extradata_size == FLAC_STREAMINFO_SIZE) {
... | [
"static int FUNC_0(AVFormatContext *VAR_0, ByteIOContext *VAR_1, AVCodecContext *VAR_2)\n{",
"if (VAR_2->extradata_size < FLAC_STREAMINFO_SIZE) {",
"av_log(VAR_0, AV_LOG_ERROR, \"Invalid FLAC extradata\\n\");",
"return -1;",
"} else if (VAR_2->extradata_size == FLAC_STREAMINFO_SIZE) {",
"put_buffer(VAR_1,... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
]
] |
26,166 | static void core_region_add(MemoryListener *listener,
MemoryRegionSection *section)
{
cpu_register_physical_memory_log(section, section->readonly);
}
| false | qemu | ac1970fbe8ad5a70174f462109ac0f6c7bf1bc43 | static void core_region_add(MemoryListener *listener,
MemoryRegionSection *section)
{
cpu_register_physical_memory_log(section, section->readonly);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(MemoryListener *VAR_0,
MemoryRegionSection *VAR_1)
{
cpu_register_physical_memory_log(VAR_1, VAR_1->readonly);
}
| [
"static void FUNC_0(MemoryListener *VAR_0,\nMemoryRegionSection *VAR_1)\n{",
"cpu_register_physical_memory_log(VAR_1, VAR_1->readonly);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
]
] |
26,167 | static void kvm_mce_inj_srao_memscrub(CPUState *env, target_phys_addr_t paddr)
{
struct kvm_x86_mce mce = {
.bank = 9,
.status = MCI_STATUS_VAL | MCI_STATUS_UC | MCI_STATUS_EN
| MCI_STATUS_MISCV | MCI_STATUS_ADDRV | MCI_STATUS_S
| 0xc0,
.mcg_status ... | false | qemu | c34d440a728fd3b5099d11dec122d440ef092c23 | static void kvm_mce_inj_srao_memscrub(CPUState *env, target_phys_addr_t paddr)
{
struct kvm_x86_mce mce = {
.bank = 9,
.status = MCI_STATUS_VAL | MCI_STATUS_UC | MCI_STATUS_EN
| MCI_STATUS_MISCV | MCI_STATUS_ADDRV | MCI_STATUS_S
| 0xc0,
.mcg_status ... | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUState *VAR_0, target_phys_addr_t VAR_1)
{
struct kvm_x86_mce VAR_2 = {
.bank = 9,
.status = MCI_STATUS_VAL | MCI_STATUS_UC | MCI_STATUS_EN
| MCI_STATUS_MISCV | MCI_STATUS_ADDRV | MCI_STATUS_S
| 0xc0,
.mcg_status = MCG_STATUS_MC... | [
"static void FUNC_0(CPUState *VAR_0, target_phys_addr_t VAR_1)\n{",
"struct kvm_x86_mce VAR_2 = {",
".bank = 9,\n.status = MCI_STATUS_VAL | MCI_STATUS_UC | MCI_STATUS_EN\n| MCI_STATUS_MISCV | MCI_STATUS_ADDRV | MCI_STATUS_S\n| 0xc0,\n.mcg_status = MCG_STATUS_MCIP | MCG_STATUS_RIPV,\n.addr = VAR_1,\n.misc = (MCM... | [
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
]
] |
26,168 | int avcodec_open(AVCodecContext *avctx, AVCodec *codec)
{
int ret;
if(avctx->codec)
return -1;
avctx->codec = codec;
avctx->codec_id = codec->id;
avctx->frame_number = 0;
if (codec->priv_data_size > 0) {
avctx->priv_data = av_mallocz(codec->priv_data_size);
... | false | FFmpeg | ddebfb15dc8ee01f7f8ff4e15e80b9843e550f00 | int avcodec_open(AVCodecContext *avctx, AVCodec *codec)
{
int ret;
if(avctx->codec)
return -1;
avctx->codec = codec;
avctx->codec_id = codec->id;
avctx->frame_number = 0;
if (codec->priv_data_size > 0) {
avctx->priv_data = av_mallocz(codec->priv_data_size);
... | {
"code": [],
"line_no": []
} | int FUNC_0(AVCodecContext *VAR_0, AVCodec *VAR_1)
{
int VAR_2;
if(VAR_0->VAR_1)
return -1;
VAR_0->VAR_1 = VAR_1;
VAR_0->codec_id = VAR_1->id;
VAR_0->frame_number = 0;
if (VAR_1->priv_data_size > 0) {
VAR_0->priv_data = av_mallocz(VAR_1->priv_data_size);
if (... | [
"int FUNC_0(AVCodecContext *VAR_0, AVCodec *VAR_1)\n{",
"int VAR_2;",
"if(VAR_0->VAR_1)\nreturn -1;",
"VAR_0->VAR_1 = VAR_1;",
"VAR_0->codec_id = VAR_1->id;",
"VAR_0->frame_number = 0;",
"if (VAR_1->priv_data_size > 0) {",
"VAR_0->priv_data = av_mallocz(VAR_1->priv_data_size);",
"if (!VAR_0->priv_da... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
37,
39
],
[
41,
43
],
[
47
],
[
49
],
[
51
],
[
53... |
26,169 | static inline void RENAME(yv12touyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
long width, long height,
long lumStride, long chromStride, long dstStride)
{
//FIXME interpolate chroma
RENAME(yuvPl... | false | FFmpeg | d1adad3cca407f493c3637e20ecd4f7124e69212 | static inline void RENAME(yv12touyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
long width, long height,
long lumStride, long chromStride, long dstStride)
{
RENAME(yuvPlanartouyvy)(ysrc, usrc, vs... | {
"code": [],
"line_no": []
} | static inline void FUNC_0(yv12touyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
long width, long height,
long lumStride, long chromStride, long dstStride)
{
FUNC_0(yuvPlanartouyvy)(ysrc, usrc, vs... | [
"static inline void FUNC_0(yv12touyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,\nlong width, long height,\nlong lumStride, long chromStride, long dstStride)\n{",
"FUNC_0(yuvPlanartouyvy)(ysrc, usrc, vsrc, dst, width, height, lumStride, chromStride, dstStride, 2);",
"}"
] | [
0,
0,
0
] | [
[
1,
3,
5,
7
],
[
11
],
[
13
]
] |
26,170 | static int decode_block_coeffs_internal(VP56RangeCoder *r, int16_t block[16],
uint8_t probs[16][3][NUM_DCT_TOKENS - 1],
int i, uint8_t *token_prob,
int16_t qmul[2])
{
VP56RangeCoder c = *r;
... | true | FFmpeg | ac4b32df71bd932838043a4838b86d11e169707f | static int decode_block_coeffs_internal(VP56RangeCoder *r, int16_t block[16],
uint8_t probs[16][3][NUM_DCT_TOKENS - 1],
int i, uint8_t *token_prob,
int16_t qmul[2])
{
VP56RangeCoder c = *r;
... | {
"code": [
"static int decode_block_coeffs_internal(VP56RangeCoder *r, int16_t block[16],",
" uint8_t probs[16][3][NUM_DCT_TOKENS - 1],",
" int i, uint8_t *token_prob,",
" int16_t qmul... | static int FUNC_0(VP56RangeCoder *VAR_0, int16_t VAR_1[16],
uint8_t VAR_2[16][3][NUM_DCT_TOKENS - 1],
int VAR_3, uint8_t *VAR_4,
int16_t VAR_5[2])
{
VP56RangeCoder c = *VAR_0;
goto skip_... | [
"static int FUNC_0(VP56RangeCoder *VAR_0, int16_t VAR_1[16],\nuint8_t VAR_2[16][3][NUM_DCT_TOKENS - 1],\nint VAR_3, uint8_t *VAR_4,\nint16_t VAR_5[2])\n{",
"VP56RangeCoder c = *VAR_0;",
"goto skip_eob;",
"do {",
"int VAR_6;",
"if (!vp56_rac_get_prob_branchy(&c, VAR_4[0]))\nbreak;",
"skip_eob:\nif (!vp56... | [
1,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19,
21
],
[
25,
27
],
[
29,
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
... |
26,171 | static int img_check(int argc, char **argv)
{
int c, ret;
OutputFormat output_format = OFORMAT_HUMAN;
const char *filename, *fmt, *output, *cache;
BlockBackend *blk;
BlockDriverState *bs;
int fix = 0;
int flags = BDRV_O_FLAGS | BDRV_O_CHECK;
ImageCheck *check;
bool quiet = ... | true | qemu | 832390a5ed11e6c516db0986bf302d098e3ae36c | static int img_check(int argc, char **argv)
{
int c, ret;
OutputFormat output_format = OFORMAT_HUMAN;
const char *filename, *fmt, *output, *cache;
BlockBackend *blk;
BlockDriverState *bs;
int fix = 0;
int flags = BDRV_O_FLAGS | BDRV_O_CHECK;
ImageCheck *check;
bool quiet = ... | {
"code": [
" switch (output_format) {",
" case OFORMAT_HUMAN:",
" dump_human_image_check(check, quiet);",
" break;",
" case OFORMAT_JSON:",
" dump_json_image_check(check, quiet);",
" break;"
],
"line_no": [
235,
237,
239,
241,
2... | static int FUNC_0(int VAR_0, char **VAR_1)
{
int VAR_2, VAR_3;
OutputFormat output_format = OFORMAT_HUMAN;
const char *VAR_4, *VAR_5, *VAR_6, *VAR_7;
BlockBackend *blk;
BlockDriverState *bs;
int VAR_8 = 0;
int VAR_9 = BDRV_O_FLAGS | BDRV_O_CHECK;
ImageCheck *check;
bool qui... | [
"static int FUNC_0(int VAR_0, char **VAR_1)\n{",
"int VAR_2, VAR_3;",
"OutputFormat output_format = OFORMAT_HUMAN;",
"const char *VAR_4, *VAR_5, *VAR_6, *VAR_7;",
"BlockBackend *blk;",
"BlockDriverState *bs;",
"int VAR_8 = 0;",
"int VAR_9 = BDRV_O_FLAGS | BDRV_O_CHECK;",
"ImageCheck *check;",
"boo... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
26,172 | static void imdct12(INTFLOAT *out, INTFLOAT *in)
{
INTFLOAT in0, in1, in2, in3, in4, in5, t1, t2;
in0 = in[0*3];
in1 = in[1*3] + in[0*3];
in2 = in[2*3] + in[1*3];
in3 = in[3*3] + in[2*3];
in4 = in[4*3] + in[3*3];
in5 = in[5*3] + in[4*3];
in5 += in3;
in3 += in1;
... | true | FFmpeg | 5a8fec1b33f2c9da89fe565516fff24b09988dc9 | static void imdct12(INTFLOAT *out, INTFLOAT *in)
{
INTFLOAT in0, in1, in2, in3, in4, in5, t1, t2;
in0 = in[0*3];
in1 = in[1*3] + in[0*3];
in2 = in[2*3] + in[1*3];
in3 = in[3*3] + in[2*3];
in4 = in[4*3] + in[3*3];
in5 = in[5*3] + in[4*3];
in5 += in3;
in3 += in1;
... | {
"code": [
" INTFLOAT in0, in1, in2, in3, in4, in5, t1, t2;"
],
"line_no": [
5
]
} | static void FUNC_0(INTFLOAT *VAR_0, INTFLOAT *VAR_1)
{
INTFLOAT in0, in1, in2, in3, in4, in5, t1, t2;
in0 = VAR_1[0*3];
in1 = VAR_1[1*3] + VAR_1[0*3];
in2 = VAR_1[2*3] + VAR_1[1*3];
in3 = VAR_1[3*3] + VAR_1[2*3];
in4 = VAR_1[4*3] + VAR_1[3*3];
in5 = VAR_1[5*3] + VAR_1[4*3];
... | [
"static void FUNC_0(INTFLOAT *VAR_0, INTFLOAT *VAR_1)\n{",
"INTFLOAT in0, in1, in2, in3, in4, in5, t1, t2;",
"in0 = VAR_1[0*3];",
"in1 = VAR_1[1*3] + VAR_1[0*3];",
"in2 = VAR_1[2*3] + VAR_1[1*3];",
"in3 = VAR_1[3*3] + VAR_1[2*3];",
"in4 = VAR_1[4*3] + VAR_1[3*3];",
"in5 = VAR_1[5*3] + VAR_1[4*3]... | [
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
29
],
[
33
],
[
35
],
[
39,
41
],
[
43,
45
],
[
49
],
[
51
],
[
53... |
26,176 | int qcow2_snapshot_load_tmp(BlockDriverState *bs,
const char *snapshot_id,
const char *name,
Error **errp)
{
int i, snapshot_index;
BDRVQcowState *s = bs->opaque;
QCowSnapshot *sn;
uint64_t *new_l1_table;
in... | true | qemu | de82815db1c89da058b7fb941dab137d6d9ab738 | int qcow2_snapshot_load_tmp(BlockDriverState *bs,
const char *snapshot_id,
const char *name,
Error **errp)
{
int i, snapshot_index;
BDRVQcowState *s = bs->opaque;
QCowSnapshot *sn;
uint64_t *new_l1_table;
in... | {
"code": [
" g_free(new_l1_table);",
" g_free(s->l1_table);",
" new_l1_table = g_malloc0(align_offset(new_l1_bytes, 512));",
" g_free(new_l1_table);",
" g_free(s->l1_table);",
" g_free(s->l1_table);",
" g_free(s->l1_table);"
],
"line_no": [
69,
79,... | int FUNC_0(BlockDriverState *VAR_0,
const char *VAR_1,
const char *VAR_2,
Error **VAR_3)
{
int VAR_4, VAR_5;
BDRVQcowState *s = VAR_0->opaque;
QCowSnapshot *sn;
uint64_t *new_l1_table;
int VAR_6;
int VA... | [
"int FUNC_0(BlockDriverState *VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nError **VAR_3)\n{",
"int VAR_4, VAR_5;",
"BDRVQcowState *s = VAR_0->opaque;",
"QCowSnapshot *sn;",
"uint64_t *new_l1_table;",
"int VAR_6;",
"int VAR_7;",
"assert(VAR_0->read_only);",
"VAR_5 = find_snapshot_by_id_and_name(V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
49
],
[
51
],
[
53
],
[
55
... |
26,177 | static int vdi_create(const char *filename, QEMUOptionParameter *options,
Error **errp)
{
int fd;
int result = 0;
uint64_t bytes = 0;
uint32_t blocks;
size_t block_size = DEFAULT_CLUSTER_SIZE;
uint32_t image_type = VDI_TYPE_DYNAMIC;
VdiHeader header;
size_... | true | qemu | 63fa06dc978f3669dbfd9443b33cde9e2a7f4b41 | static int vdi_create(const char *filename, QEMUOptionParameter *options,
Error **errp)
{
int fd;
int result = 0;
uint64_t bytes = 0;
uint32_t blocks;
size_t block_size = DEFAULT_CLUSTER_SIZE;
uint32_t image_type = VDI_TYPE_DYNAMIC;
VdiHeader header;
size_... | {
"code": [
" return -errno;"
],
"line_no": [
81
]
} | static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1,
Error **VAR_2)
{
int VAR_3;
int VAR_4 = 0;
uint64_t bytes = 0;
uint32_t blocks;
size_t block_size = DEFAULT_CLUSTER_SIZE;
uint32_t image_type = VDI_TYPE_DYNAMIC;
VdiHeader header;
size_t i;
... | [
"static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1,\nError **VAR_2)\n{",
"int VAR_3;",
"int VAR_4 = 0;",
"uint64_t bytes = 0;",
"uint32_t blocks;",
"size_t block_size = DEFAULT_CLUSTER_SIZE;",
"uint32_t image_type = VDI_TYPE_DYNAMIC;",
"VdiHeader header;",
"size_t i;",
"size_t bmap_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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
27
],
[
33
],
[
35
],
[
37
],
[
39,
41
],
[
43
],
[
47
],
[
49
],
[
51,... |
26,178 | static int dxa_read_header(AVFormatContext *s, AVFormatParameters *ap)
{
AVIOContext *pb = s->pb;
DXAContext *c = s->priv_data;
AVStream *st, *ast;
uint32_t tag;
int32_t fps;
int w, h;
int num, den;
int flags;
tag = avio_rl32(pb);
if (tag != MKTAG('D', 'E', 'X', 'A')... | true | FFmpeg | ca402f32e392590a81a1381dab41c4f9c2c2f98a | static int dxa_read_header(AVFormatContext *s, AVFormatParameters *ap)
{
AVIOContext *pb = s->pb;
DXAContext *c = s->priv_data;
AVStream *st, *ast;
uint32_t tag;
int32_t fps;
int w, h;
int num, den;
int flags;
tag = avio_rl32(pb);
if (tag != MKTAG('D', 'E', 'X', 'A')... | {
"code": [
" ff_get_wav_header(pb, ast->codec, fsize);"
],
"line_no": [
105
]
} | static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)
{
AVIOContext *pb = VAR_0->pb;
DXAContext *c = VAR_0->priv_data;
AVStream *st, *ast;
uint32_t tag;
int32_t fps;
int VAR_2, VAR_3;
int VAR_4, VAR_5;
int VAR_6;
tag = avio_rl32(pb);
if (tag != MKTAG('... | [
"static int FUNC_0(AVFormatContext *VAR_0, AVFormatParameters *VAR_1)\n{",
"AVIOContext *pb = VAR_0->pb;",
"DXAContext *c = VAR_0->priv_data;",
"AVStream *st, *ast;",
"uint32_t tag;",
"int32_t fps;",
"int VAR_2, VAR_3;",
"int VAR_4, VAR_5;",
"int VAR_6;",
"tag = avio_rl32(pb);",
"if (tag != MKTA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[... |
26,179 | static int get_cv_color_primaries(AVCodecContext *avctx,
CFStringRef *primaries)
{
enum AVColorPrimaries pri = avctx->color_primaries;
switch (pri) {
case AVCOL_PRI_UNSPECIFIED:
*primaries = NULL;
break;
case AVCOL_PRI_BT709:
... | false | FFmpeg | dcd3418a35aab7ef283b68ed9997ce4ac204094e | static int get_cv_color_primaries(AVCodecContext *avctx,
CFStringRef *primaries)
{
enum AVColorPrimaries pri = avctx->color_primaries;
switch (pri) {
case AVCOL_PRI_UNSPECIFIED:
*primaries = NULL;
break;
case AVCOL_PRI_BT709:
... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVCodecContext *VAR_0,
CFStringRef *VAR_1)
{
enum AVColorPrimaries VAR_2 = VAR_0->color_primaries;
switch (VAR_2) {
case AVCOL_PRI_UNSPECIFIED:
*VAR_1 = NULL;
break;
case AVCOL_PRI_BT709:
*VAR_1 = ... | [
"static int FUNC_0(AVCodecContext *VAR_0,\nCFStringRef *VAR_1)\n{",
"enum AVColorPrimaries VAR_2 = VAR_0->color_primaries;",
"switch (VAR_2) {",
"case AVCOL_PRI_UNSPECIFIED:\n*VAR_1 = NULL;",
"break;",
"case AVCOL_PRI_BT709:\n*VAR_1 = kCVImageBufferColorPrimaries_ITU_R_709_2;",
"break;",
"case AVCOL_P... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11,
13
],
[
15
],
[
19,
21
],
[
23
],
[
27,
29
],
[
31
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
]
] |
26,181 | static void avc_wgt_4x4multiple_msa(uint8_t *data,
int32_t stride,
int32_t height,
int32_t log2_denom,
int32_t src_weight,
int32_t offs... | false | FFmpeg | bcd7bf7eeb09a395cc01698842d1b8be9af483fc | static void avc_wgt_4x4multiple_msa(uint8_t *data,
int32_t stride,
int32_t height,
int32_t log2_denom,
int32_t src_weight,
int32_t offs... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0,
int32_t VAR_1,
int32_t VAR_2,
int32_t VAR_3,
int32_t VAR_4,
int32_t VAR_5)
{
uint8_t cnt;
... | [
"static void FUNC_0(uint8_t *VAR_0,\nint32_t VAR_1,\nint32_t VAR_2,\nint32_t VAR_3,\nint32_t VAR_4,\nint32_t VAR_5)\n{",
"uint8_t cnt;",
"uint32_t data0, data1, data2, data3;",
"v16u8 zero = { 0 };",
"v16u8 src0, src1, src2, src3;",
"v8u16 temp0, temp1, temp2, temp3;",
"v8i16 wgt, denom, offset;",
"VA... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
55
],
[... |
26,182 | static void FUNC(flac_decorrelate_indep_c)(uint8_t **out, int32_t **in,
int channels, int len, int shift)
{
sample *samples = (sample *) OUT(out);
int i, j;
for (j = 0; j < len; j++)
for (i = 0; i < channels; i++)
S(samples, i, j) = in[... | false | FFmpeg | acc163c6ab52d2235767852262c64c7f6b273d1c | static void FUNC(flac_decorrelate_indep_c)(uint8_t **out, int32_t **in,
int channels, int len, int shift)
{
sample *samples = (sample *) OUT(out);
int i, j;
for (j = 0; j < len; j++)
for (i = 0; i < channels; i++)
S(samples, i, j) = in[... | {
"code": [],
"line_no": []
} | static void FUNC_0(flac_decorrelate_indep_c)(uint8_t **out, int32_t **in,
int channels, int len, int shift)
{
sample *samples = (sample *) OUT(out);
int VAR_0, VAR_1;
for (VAR_1 = 0; VAR_1 < len; VAR_1++)
for (VAR_0 = 0; VAR_0 < channels; VAR_0++)
... | [
"static void FUNC_0(flac_decorrelate_indep_c)(uint8_t **out, int32_t **in,\nint channels, int len, int shift)\n{",
"sample *samples = (sample *) OUT(out);",
"int VAR_0, VAR_1;",
"for (VAR_1 = 0; VAR_1 < len; VAR_1++)",
"for (VAR_0 = 0; VAR_0 < channels; VAR_0++)",
"S(samples, VAR_0, VAR_1) = in[VAR_0][VAR... | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
]
] |
26,184 | void object_property_add_link(Object *obj, const char *name,
const char *type, Object **child,
void (*check)(Object *, const char *,
Object *, Error **),
ObjectPropertyLinkFlags flag... | true | qemu | 8f5d58ef2c92d7b82d9a6eeefd7c8854a183ba4a | void object_property_add_link(Object *obj, const char *name,
const char *type, Object **child,
void (*check)(Object *, const char *,
Object *, Error **),
ObjectPropertyLinkFlags flag... | {
"code": [
" void (*check)(Object *, const char *,"
],
"line_no": [
5
]
} | VAR_6voidVAR_6 VAR_6object_property_add_linkVAR_6(VAR_6ObjectVAR_6 *VAR_6VAR_0VAR_6, VAR_6constVAR_6 VAR_6charVAR_6 *VAR_6VAR_1VAR_6,
VAR_6constVAR_6 VAR_6charVAR_6 *VAR_6VAR_2VAR_6, VAR_6ObjectVAR_6 **VAR_6VAR_3VAR_6,
VAR_6voidVAR_6 (*VAR_6VAR_4VAR_6)(VAR_6... | [
"VAR_6voidVAR_6 VAR_6object_property_add_linkVAR_6(VAR_6ObjectVAR_6 *VAR_6VAR_0VAR_6, VAR_6constVAR_6 VAR_6charVAR_6 *VAR_6VAR_1VAR_6,\nVAR_6constVAR_6 VAR_6charVAR_6 *VAR_6VAR_2VAR_6, VAR_6ObjectVAR_6 **VAR_6VAR_3VAR_6,\nVAR_6voidVAR_6 (*VAR_6VAR_4VAR_6)(VAR_6ObjectVAR_6 *, VAR_6constVAR_6 VAR_6charVAR_6 *,\nVAR_6... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25
],
[
27
],
[
29
],
[
33
],
[
37,
39,
41,
43,
45,
47
],
[
49
],
[
51
],
[
53
],
[
55
],
[
57
... |
26,185 | static int alloc_refcount_block(BlockDriverState *bs,
int64_t cluster_index, uint16_t **refcount_block)
{
BDRVQcowState *s = bs->opaque;
unsigned int refcount_table_index;
int ret;
BLKDBG_EVENT(bs->file, BLKDBG_REFBLOCK_ALLOC);
/* Find the refcount block for the given cluster */
refcount_tab... | true | qemu | 2b5d5953eec0cc541857c3df812bdf8421596ab2 | static int alloc_refcount_block(BlockDriverState *bs,
int64_t cluster_index, uint16_t **refcount_block)
{
BDRVQcowState *s = bs->opaque;
unsigned int refcount_table_index;
int ret;
BLKDBG_EVENT(bs->file, BLKDBG_REFBLOCK_ALLOC);
refcount_table_index = cluster_index >> (s->cluster_bits - REFC... | {
"code": [],
"line_no": []
} | static int FUNC_0(BlockDriverState *VAR_0,
int64_t VAR_1, uint16_t **VAR_2)
{
BDRVQcowState *s = VAR_0->opaque;
unsigned int VAR_3;
int VAR_4;
BLKDBG_EVENT(VAR_0->file, BLKDBG_REFBLOCK_ALLOC);
VAR_3 = VAR_1 >> (s->cluster_bits - REFCOUNT_SHIFT);
if (VAR_3 < s->refcount_table_size) {
... | [
"static int FUNC_0(BlockDriverState *VAR_0,\nint64_t VAR_1, uint16_t **VAR_2)\n{",
"BDRVQcowState *s = VAR_0->opaque;",
"unsigned int VAR_3;",
"int VAR_4;",
"BLKDBG_EVENT(VAR_0->file, BLKDBG_REFBLOCK_ALLOC);",
"VAR_3 = VAR_1 >> (s->cluster_bits - REFCOUNT_SHIFT);",
"if (VAR_3 < s->refcount_table_size) {... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2,
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
9
],
[
10
],
[
11,
12
],
[
14
],
[
15,
16
],
[
39
],
[
41
],
[
42
],
[
43
],
[
45
],
[
46
],
[
47
],
[
48,
49,
... |
26,186 | PPC_OP(test_ctrz)
{
T0 = (regs->ctr == 0);
RETURN();
}
| true | qemu | d9bce9d99f4656ae0b0127f7472db9067b8f84ab | PPC_OP(test_ctrz)
{
T0 = (regs->ctr == 0);
RETURN();
}
| {
"code": [
"PPC_OP(test_ctrz)",
" T0 = (regs->ctr == 0);",
" RETURN();",
" RETURN();"
],
"line_no": [
1,
5,
7,
7
]
} | FUNC_0(VAR_0)
{
T0 = (regs->ctr == 0);
RETURN();
}
| [
"FUNC_0(VAR_0)\n{",
"T0 = (regs->ctr == 0);",
"RETURN();",
"}"
] | [
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
]
] |
26,187 | static void usb_net_handle_dataout(USBNetState *s, USBPacket *p)
{
int sz = sizeof(s->out_buf) - s->out_ptr;
struct rndis_packet_msg_type *msg =
(struct rndis_packet_msg_type *) s->out_buf;
uint32_t len;
#ifdef TRAFFIC_DEBUG
fprintf(stderr, "usbnet: data out len %zu\n", p->iov.size)... | true | qemu | fe3c546c5ff2a6210f9a4d8561cc64051ca8603e | static void usb_net_handle_dataout(USBNetState *s, USBPacket *p)
{
int sz = sizeof(s->out_buf) - s->out_ptr;
struct rndis_packet_msg_type *msg =
(struct rndis_packet_msg_type *) s->out_buf;
uint32_t len;
#ifdef TRAFFIC_DEBUG
fprintf(stderr, "usbnet: data out len %zu\n", p->iov.size)... | {
"code": [
" if (offs + size <= len)"
],
"line_no": [
65
]
} | static void FUNC_0(USBNetState *VAR_0, USBPacket *VAR_1)
{
int VAR_2 = sizeof(VAR_0->out_buf) - VAR_0->out_ptr;
struct rndis_packet_msg_type *VAR_3 =
(struct rndis_packet_msg_type *) VAR_0->out_buf;
uint32_t len;
#ifdef TRAFFIC_DEBUG
fprintf(stderr, "usbnet: data out len %zu\n", VAR... | [
"static void FUNC_0(USBNetState *VAR_0, USBPacket *VAR_1)\n{",
"int VAR_2 = sizeof(VAR_0->out_buf) - VAR_0->out_ptr;",
"struct rndis_packet_msg_type *VAR_3 =\n(struct rndis_packet_msg_type *) VAR_0->out_buf;",
"uint32_t len;",
"#ifdef TRAFFIC_DEBUG\nfprintf(stderr, \"usbnet: data out len %zu\\n\", VAR_1->io... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7,
9
],
[
11
],
[
15,
17
],
[
19
],
[
21,
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
26,188 | static void quiesce_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
SCLPEventClass *k = SCLP_EVENT_CLASS(klass);
dc->reset = quiesce_reset;
dc->vmsd = &vmstate_sclpquiesce;
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
k->init = quiesce_init;
... | true | qemu | b923ab3112ed5ab47c2ff35776f17ab54c60d651 | static void quiesce_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
SCLPEventClass *k = SCLP_EVENT_CLASS(klass);
dc->reset = quiesce_reset;
dc->vmsd = &vmstate_sclpquiesce;
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
k->init = quiesce_init;
... | {
"code": [
" k->init = quiesce_init;"
],
"line_no": [
17
]
} | static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)
{
DeviceClass *dc = DEVICE_CLASS(VAR_0);
SCLPEventClass *k = SCLP_EVENT_CLASS(VAR_0);
dc->reset = quiesce_reset;
dc->vmsd = &vmstate_sclpquiesce;
set_bit(DEVICE_CATEGORY_MISC, dc->categories);
k->init = quiesce_init;
k->get_send... | [
"static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{",
"DeviceClass *dc = DEVICE_CLASS(VAR_0);",
"SCLPEventClass *k = SCLP_EVENT_CLASS(VAR_0);",
"dc->reset = quiesce_reset;",
"dc->vmsd = &vmstate_sclpquiesce;",
"set_bit(DEVICE_CATEGORY_MISC, dc->categories);",
"k->init = quiesce_init;",
"k->get_sen... | [
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
26,189 | static int mov_open_dref(MOVContext *c, AVIOContext **pb, const char *src, MOVDref *ref,
AVIOInterruptCB *int_cb)
{
AVOpenCallback open_func = c->fc->open_cb;
if (!open_func)
open_func = ffio_open2_wrapper;
/* try relative path, we do not try the absolute because i... | false | FFmpeg | c9c7263e5820c957598643216c42be9b1c4f2d2b | static int mov_open_dref(MOVContext *c, AVIOContext **pb, const char *src, MOVDref *ref,
AVIOInterruptCB *int_cb)
{
AVOpenCallback open_func = c->fc->open_cb;
if (!open_func)
open_func = ffio_open2_wrapper;
if (ref->nlvl_to > 0 && ref->nlvl_from > 0 && ref-... | {
"code": [],
"line_no": []
} | static int FUNC_0(MOVContext *VAR_0, AVIOContext **VAR_1, const char *VAR_2, MOVDref *VAR_3,
AVIOInterruptCB *VAR_4)
{
AVOpenCallback open_func = VAR_0->fc->open_cb;
if (!open_func)
open_func = ffio_open2_wrapper;
if (VAR_3->nlvl_to > 0 && VAR_3->nlvl_from ... | [
"static int FUNC_0(MOVContext *VAR_0, AVIOContext **VAR_1, const char *VAR_2, MOVDref *VAR_3,\nAVIOInterruptCB *VAR_4)\n{",
"AVOpenCallback open_func = VAR_0->fc->open_cb;",
"if (!open_func)\nopen_func = ffio_open2_wrapper;",
"if (VAR_3->nlvl_to > 0 && VAR_3->nlvl_from > 0 && VAR_3->path[0] != '/') {",
"cha... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
21
],
[
23
],
[
25
],
[
27
],
[
33
],
[
35,
37
],
[
39,
41
],
[
47
],
[
49
],
[
51,
53
],
[
55,
57
],
[
59
],
[
65
],
[
67... |
26,190 | static void filter_mb_edgev( H264Context *h, uint8_t *pix, int stride, int16_t bS[4], int qp ) {
int i, d;
const int index_a = qp + h->slice_alpha_c0_offset;
const int alpha = (alpha_table+52)[index_a];
const int beta = (beta_table+52)[qp + h->slice_beta_offset];
if( bS[0] < 4 ) {
i... | false | FFmpeg | aac8b76983e340bc744d3542d676f72efa3b474f | static void filter_mb_edgev( H264Context *h, uint8_t *pix, int stride, int16_t bS[4], int qp ) {
int i, d;
const int index_a = qp + h->slice_alpha_c0_offset;
const int alpha = (alpha_table+52)[index_a];
const int beta = (beta_table+52)[qp + h->slice_beta_offset];
if( bS[0] < 4 ) {
i... | {
"code": [],
"line_no": []
} | static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[4], int VAR_4 ) {
int VAR_5, VAR_6;
const int VAR_7 = VAR_4 + VAR_0->slice_alpha_c0_offset;
const int VAR_8 = (alpha_table+52)[VAR_7];
const int VAR_9 = (beta_table+52)[VAR_4 + VAR_0->slice_beta_offset];
if( VAR... | [
"static void FUNC_0( H264Context *VAR_0, uint8_t *VAR_1, int VAR_2, int16_t VAR_3[4], int VAR_4 ) {",
"int VAR_5, VAR_6;",
"const int VAR_7 = VAR_4 + VAR_0->slice_alpha_c0_offset;",
"const int VAR_8 = (alpha_table+52)[VAR_7];",
"const int VAR_9 = (beta_table+52)[VAR_4 + VAR_0->slice_beta_offset];",
"if( ... | [
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
]
] |
26,192 | int qemu_file_rate_limit(QEMUFile *f)
{
if (f->ops->rate_limit)
return f->ops->rate_limit(f->opaque);
return 0;
}
| false | qemu | 1964a397063967acc5ce71a2a24ed26e74824ee1 | int qemu_file_rate_limit(QEMUFile *f)
{
if (f->ops->rate_limit)
return f->ops->rate_limit(f->opaque);
return 0;
}
| {
"code": [],
"line_no": []
} | int FUNC_0(QEMUFile *VAR_0)
{
if (VAR_0->ops->rate_limit)
return VAR_0->ops->rate_limit(VAR_0->opaque);
return 0;
}
| [
"int FUNC_0(QEMUFile *VAR_0)\n{",
"if (VAR_0->ops->rate_limit)\nreturn VAR_0->ops->rate_limit(VAR_0->opaque);",
"return 0;",
"}"
] | [
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11
],
[
13
]
] |
26,193 | qcrypto_block_luks_create(QCryptoBlock *block,
QCryptoBlockCreateOptions *options,
const char *optprefix,
QCryptoBlockInitFunc initfunc,
QCryptoBlockWriteFunc writefunc,
void *opaque,
... | false | qemu | 850f49de9b57511dcaf2cd7e45059f8f38fadf3b | qcrypto_block_luks_create(QCryptoBlock *block,
QCryptoBlockCreateOptions *options,
const char *optprefix,
QCryptoBlockInitFunc initfunc,
QCryptoBlockWriteFunc writefunc,
void *opaque,
... | {
"code": [],
"line_no": []
} | FUNC_0(QCryptoBlock *VAR_0,
QCryptoBlockCreateOptions *VAR_1,
const char *VAR_2,
QCryptoBlockInitFunc VAR_3,
QCryptoBlockWriteFunc VAR_4,
void *VAR_5,
Error *... | [
"FUNC_0(QCryptoBlock *VAR_0,\nQCryptoBlockCreateOptions *VAR_1,\nconst char *VAR_2,\nQCryptoBlockInitFunc VAR_3,\nQCryptoBlockWriteFunc VAR_4,\nvoid *VAR_5,\nError **VAR_6)\n{",
"QCryptoBlockLUKS *luks;",
"QCryptoBlockCreateOptionsLUKS luks_opts;",
"Error *local_err = NULL;",
"uint8_t *masterkey = NULL;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11,
13,
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
26,194 | static void pc_cmos_init_late(void *opaque)
{
pc_cmos_init_late_arg *arg = opaque;
ISADevice *s = arg->rtc_state;
int16_t cylinders;
int8_t heads, sectors;
int val;
int i, trans;
Object *container;
CheckFdcState state = { 0 };
val = 0;
if (ide_get_geometry(arg->idebu... | false | qemu | 424e4a87d20027acf52e65f322a2100460162a49 | static void pc_cmos_init_late(void *opaque)
{
pc_cmos_init_late_arg *arg = opaque;
ISADevice *s = arg->rtc_state;
int16_t cylinders;
int8_t heads, sectors;
int val;
int i, trans;
Object *container;
CheckFdcState state = { 0 };
val = 0;
if (ide_get_geometry(arg->idebu... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
pc_cmos_init_late_arg *arg = VAR_0;
ISADevice *s = arg->rtc_state;
int16_t cylinders;
int8_t heads, sectors;
int VAR_1;
int VAR_2, VAR_3;
Object *container;
CheckFdcState state = { 0 };
VAR_1 = 0;
if (ide_get_geometry(arg->idebus[0],... | [
"static void FUNC_0(void *VAR_0)\n{",
"pc_cmos_init_late_arg *arg = VAR_0;",
"ISADevice *s = arg->rtc_state;",
"int16_t cylinders;",
"int8_t heads, sectors;",
"int VAR_1;",
"int VAR_2, VAR_3;",
"Object *container;",
"CheckFdcState state = { 0 };",
"VAR_1 = 0;",
"if (ide_get_geometry(arg->idebus[... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
23
],
[
25,
27
],
[
29
],
[
31
],
[
33
],
[
35,
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
26,195 | static void kvm_mce_broadcast_rest(CPUState *env)
{
CPUState *cenv;
int family, model, cpuver = env->cpuid_version;
family = (cpuver >> 8) & 0xf;
model = ((cpuver >> 12) & 0xf0) + ((cpuver >> 4) & 0xf);
/* Broadcast MCA signal for processor version 06H_EH and above */
if ((family == 6... | false | qemu | 2bd3e04c3b3c76d573435a299a4d85bad0021a90 | static void kvm_mce_broadcast_rest(CPUState *env)
{
CPUState *cenv;
int family, model, cpuver = env->cpuid_version;
family = (cpuver >> 8) & 0xf;
model = ((cpuver >> 12) & 0xf0) + ((cpuver >> 4) & 0xf);
if ((family == 6 && model >= 14) || family > 6) {
for (cenv = first_cpu;... | {
"code": [],
"line_no": []
} | static void FUNC_0(CPUState *VAR_0)
{
CPUState *cenv;
int VAR_1, VAR_2, VAR_3 = VAR_0->cpuid_version;
VAR_1 = (VAR_3 >> 8) & 0xf;
VAR_2 = ((VAR_3 >> 12) & 0xf0) + ((VAR_3 >> 4) & 0xf);
if ((VAR_1 == 6 && VAR_2 >= 14) || VAR_1 > 6) {
for (cenv = first_cpu; cenv != NULL; cenv ... | [
"static void FUNC_0(CPUState *VAR_0)\n{",
"CPUState *cenv;",
"int VAR_1, VAR_2, VAR_3 = VAR_0->cpuid_version;",
"VAR_1 = (VAR_3 >> 8) & 0xf;",
"VAR_2 = ((VAR_3 >> 12) & 0xf0) + ((VAR_3 >> 4) & 0xf);",
"if ((VAR_1 == 6 && VAR_2 >= 14) || VAR_1 > 6) {",
"for (cenv = first_cpu; cenv != NULL; cenv = cenv->n... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31,
33
],
[
35
],
[
37
],
[
39
]
] |
26,196 | static struct omap_lpg_s *omap_lpg_init(MemoryRegion *system_memory,
target_phys_addr_t base, omap_clk clk)
{
struct omap_lpg_s *s = (struct omap_lpg_s *)
g_malloc0(sizeof(struct omap_lpg_s));
s->tm = qemu_new_timer_ms(vm_clock, omap_lpg_tick, s);
... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static struct omap_lpg_s *omap_lpg_init(MemoryRegion *system_memory,
target_phys_addr_t base, omap_clk clk)
{
struct omap_lpg_s *s = (struct omap_lpg_s *)
g_malloc0(sizeof(struct omap_lpg_s));
s->tm = qemu_new_timer_ms(vm_clock, omap_lpg_tick, s);
... | {
"code": [],
"line_no": []
} | static struct omap_lpg_s *FUNC_0(MemoryRegion *VAR_0,
target_phys_addr_t VAR_1, omap_clk VAR_2)
{
struct omap_lpg_s *VAR_3 = (struct omap_lpg_s *)
g_malloc0(sizeof(struct omap_lpg_s));
VAR_3->tm = qemu_new_timer_ms(vm_clock, omap_lpg_tick, VAR_3);
... | [
"static struct omap_lpg_s *FUNC_0(MemoryRegion *VAR_0,\ntarget_phys_addr_t VAR_1, omap_clk VAR_2)\n{",
"struct omap_lpg_s *VAR_3 = (struct omap_lpg_s *)\ng_malloc0(sizeof(struct omap_lpg_s));",
"VAR_3->tm = qemu_new_timer_ms(vm_clock, omap_lpg_tick, VAR_3);",
"omap_lpg_reset(VAR_3);",
"memory_region_init_io... | [
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
13
],
[
17
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33
]
] |
26,197 | static int vapic_enable(VAPICROMState *s, CPUX86State *env)
{
int cpu_number = get_kpcr_number(env);
target_phys_addr_t vapic_paddr;
static const uint8_t enabled = 1;
if (cpu_number < 0) {
return -1;
}
vapic_paddr = s->vapic_paddr +
(((target_phys_addr_t)cpu_number) <<... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static int vapic_enable(VAPICROMState *s, CPUX86State *env)
{
int cpu_number = get_kpcr_number(env);
target_phys_addr_t vapic_paddr;
static const uint8_t enabled = 1;
if (cpu_number < 0) {
return -1;
}
vapic_paddr = s->vapic_paddr +
(((target_phys_addr_t)cpu_number) <<... | {
"code": [],
"line_no": []
} | static int FUNC_0(VAPICROMState *VAR_0, CPUX86State *VAR_1)
{
int VAR_2 = get_kpcr_number(VAR_1);
target_phys_addr_t vapic_paddr;
static const uint8_t VAR_3 = 1;
if (VAR_2 < 0) {
return -1;
}
vapic_paddr = VAR_0->vapic_paddr +
(((target_phys_addr_t)VAR_2) << VAPIC_CPU_... | [
"static int FUNC_0(VAPICROMState *VAR_0, CPUX86State *VAR_1)\n{",
"int VAR_2 = get_kpcr_number(VAR_1);",
"target_phys_addr_t vapic_paddr;",
"static const uint8_t VAR_3 = 1;",
"if (VAR_2 < 0) {",
"return -1;",
"}",
"vapic_paddr = VAR_0->vapic_paddr +\n(((target_phys_addr_t)VAR_2) << VAPIC_CPU_SHIFT);",... | [
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
],
[
31
],
[
35
],
[
37
]
] |
26,198 | static void omap_id_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
if (size != 4) {
return omap_badwidth_write32(opaque, addr, value);
}
OMAP_BAD_REG(addr);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void omap_id_write(void *opaque, target_phys_addr_t addr,
uint64_t value, unsigned size)
{
if (size != 4) {
return omap_badwidth_write32(opaque, addr, value);
}
OMAP_BAD_REG(addr);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned VAR_3)
{
if (VAR_3 != 4) {
return omap_badwidth_write32(VAR_0, VAR_1, VAR_2);
}
OMAP_BAD_REG(VAR_1);
}
| [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{",
"if (VAR_3 != 4) {",
"return omap_badwidth_write32(VAR_0, VAR_1, VAR_2);",
"}",
"OMAP_BAD_REG(VAR_1);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
15
],
[
17
]
] |
26,200 | static void scsi_unmap_complete(void *opaque, int ret)
{
UnmapCBData *data = opaque;
SCSIDiskReq *r = data->r;
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev);
uint64_t sector_num;
uint32_t nb_sectors;
r->req.aiocb = NULL;
if (r->req.io_canceled) {
scsi_req_c... | false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | static void scsi_unmap_complete(void *opaque, int ret)
{
UnmapCBData *data = opaque;
SCSIDiskReq *r = data->r;
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev);
uint64_t sector_num;
uint32_t nb_sectors;
r->req.aiocb = NULL;
if (r->req.io_canceled) {
scsi_req_c... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, int VAR_1)
{
UnmapCBData *data = VAR_0;
SCSIDiskReq *r = data->r;
SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev);
uint64_t sector_num;
uint32_t nb_sectors;
r->req.aiocb = NULL;
if (r->req.io_canceled) {
scsi_req_cancel_complet... | [
"static void FUNC_0(void *VAR_0, int VAR_1)\n{",
"UnmapCBData *data = VAR_0;",
"SCSIDiskReq *r = data->r;",
"SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev);",
"uint64_t sector_num;",
"uint32_t nb_sectors;",
"r->req.aiocb = NULL;",
"if (r->req.io_canceled) {",
"scsi_req_cancel_complete... | [
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
47
... |
26,201 | static void selfTest(uint8_t *src[4], int stride[4], int w, int h){
enum PixelFormat srcFormat, dstFormat;
int srcW, srcH, dstW, dstH;
int flags;
for (srcFormat = 0; srcFormat < PIX_FMT_NB; srcFormat++) {
for (dstFormat = 0; dstFormat < PIX_FMT_NB; dstFormat++) {
printf("%s -... | false | FFmpeg | e55ed689a264c78f332745598ea8c58a3422ee13 | static void selfTest(uint8_t *src[4], int stride[4], int w, int h){
enum PixelFormat srcFormat, dstFormat;
int srcW, srcH, dstW, dstH;
int flags;
for (srcFormat = 0; srcFormat < PIX_FMT_NB; srcFormat++) {
for (dstFormat = 0; dstFormat < PIX_FMT_NB; dstFormat++) {
printf("%s -... | {
"code": [],
"line_no": []
} | static void FUNC_0(uint8_t *VAR_0[4], int VAR_1[4], int VAR_2, int VAR_3){
enum PixelFormat VAR_4, VAR_5;
int VAR_6, VAR_7, VAR_8, VAR_9;
int VAR_10;
for (VAR_4 = 0; VAR_4 < PIX_FMT_NB; VAR_4++) {
for (VAR_5 = 0; VAR_5 < PIX_FMT_NB; VAR_5++) {
printf("%s -> %s\n",
... | [
"static void FUNC_0(uint8_t *VAR_0[4], int VAR_1[4], int VAR_2, int VAR_3){",
"enum PixelFormat VAR_4, VAR_5;",
"int VAR_6, VAR_7, VAR_8, VAR_9;",
"int VAR_10;",
"for (VAR_4 = 0; VAR_4 < PIX_FMT_NB; VAR_4++) {",
"for (VAR_5 = 0; VAR_5 < PIX_FMT_NB; VAR_5++) {",
"printf(\"%s -> %s\\n\",\nsws_format_name(... | [
0,
0,
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
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39,
41
],
[
43
],
[
45
],
[
47
],
[
49... |
26,204 | int qemu_strtoi64(const char *nptr, const char **endptr, int base,
int64_t *result)
{
char *ep;
int err = 0;
if (!nptr) {
if (endptr) {
*endptr = nptr;
}
err = -EINVAL;
} else {
errno = 0;
/* FIXME This assumes int64_t is l... | false | qemu | 4baef2679e029c76707be1e2ed54bf3dd21693fe | int qemu_strtoi64(const char *nptr, const char **endptr, int base,
int64_t *result)
{
char *ep;
int err = 0;
if (!nptr) {
if (endptr) {
*endptr = nptr;
}
err = -EINVAL;
} else {
errno = 0;
*result = strtoll(nptr, ... | {
"code": [],
"line_no": []
} | int FUNC_0(const char *VAR_0, const char **VAR_1, int VAR_2,
int64_t *VAR_3)
{
char *VAR_4;
int VAR_5 = 0;
if (!VAR_0) {
if (VAR_1) {
*VAR_1 = VAR_0;
}
VAR_5 = -EINVAL;
} else {
errno = 0;
*VAR_3 = strtoll(VAR_0, ... | [
"int FUNC_0(const char *VAR_0, const char **VAR_1, int VAR_2,\nint64_t *VAR_3)\n{",
"char *VAR_4;",
"int VAR_5 = 0;",
"if (!VAR_0) {",
"if (VAR_1) {",
"*VAR_1 = VAR_0;",
"}",
"VAR_5 = -EINVAL;",
"} else {",
"errno = 0;",
"*VAR_3 = strtoll(VAR_0, &VAR_4, VAR_2);",
"VAR_5 = check_strtox_error(VA... | [
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
]
] |
26,205 | static int qemu_rdma_exchange_get_response(RDMAContext *rdma,
RDMAControlHeader *head, int expecting, int idx)
{
int ret = qemu_rdma_block_for_wrid(rdma, RDMA_WRID_RECV_CONTROL + idx);
if (ret < 0) {
fprintf(stderr, "rdma migration: recv polling control error!\n");
return... | false | qemu | 88571882516a7cb4291a329c537eb79fd126e1f2 | static int qemu_rdma_exchange_get_response(RDMAContext *rdma,
RDMAControlHeader *head, int expecting, int idx)
{
int ret = qemu_rdma_block_for_wrid(rdma, RDMA_WRID_RECV_CONTROL + idx);
if (ret < 0) {
fprintf(stderr, "rdma migration: recv polling control error!\n");
return... | {
"code": [],
"line_no": []
} | static int FUNC_0(RDMAContext *VAR_0,
RDMAControlHeader *VAR_1, int VAR_2, int VAR_3)
{
int VAR_4 = qemu_rdma_block_for_wrid(VAR_0, RDMA_WRID_RECV_CONTROL + VAR_3);
if (VAR_4 < 0) {
fprintf(stderr, "VAR_0 migration: recv polling control error!\n");
return VAR_4;
}
... | [
"static int FUNC_0(RDMAContext *VAR_0,\nRDMAControlHeader *VAR_1, int VAR_2, int VAR_3)\n{",
"int VAR_4 = qemu_rdma_block_for_wrid(VAR_0, RDMA_WRID_RECV_CONTROL + VAR_3);",
"if (VAR_4 < 0) {",
"fprintf(stderr, \"VAR_0 migration: recv polling control error!\\n\");",
"return VAR_4;",
"}",
"network_to_cont... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33,
35
],
[
37
],
[
39,
41,
43,
45
],
[
47
],
[
49
],
[
51
],
[
53
],
... |
26,206 | static void omap_tcmi_init(MemoryRegion *memory, target_phys_addr_t base,
struct omap_mpu_state_s *mpu)
{
memory_region_init_io(&mpu->tcmi_iomem, &omap_tcmi_ops, mpu,
"omap-tcmi", 0x100);
memory_region_add_subregion(memory, base, &mpu->tcmi_iomem);
omap_tcmi_r... | false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void omap_tcmi_init(MemoryRegion *memory, target_phys_addr_t base,
struct omap_mpu_state_s *mpu)
{
memory_region_init_io(&mpu->tcmi_iomem, &omap_tcmi_ops, mpu,
"omap-tcmi", 0x100);
memory_region_add_subregion(memory, base, &mpu->tcmi_iomem);
omap_tcmi_r... | {
"code": [],
"line_no": []
} | static void FUNC_0(MemoryRegion *VAR_0, target_phys_addr_t VAR_1,
struct omap_mpu_state_s *VAR_2)
{
memory_region_init_io(&VAR_2->tcmi_iomem, &omap_tcmi_ops, VAR_2,
"omap-tcmi", 0x100);
memory_region_add_subregion(VAR_0, VAR_1, &VAR_2->tcmi_iomem);
omap_tcmi_r... | [
"static void FUNC_0(MemoryRegion *VAR_0, target_phys_addr_t VAR_1,\nstruct omap_mpu_state_s *VAR_2)\n{",
"memory_region_init_io(&VAR_2->tcmi_iomem, &omap_tcmi_ops, VAR_2,\n\"omap-tcmi\", 0x100);",
"memory_region_add_subregion(VAR_0, VAR_1, &VAR_2->tcmi_iomem);",
"omap_tcmi_reset(VAR_2);",
"}"
] | [
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11
],
[
13
],
[
15
]
] |
26,207 | static void spapr_machine_2_5_class_options(MachineClass *mc)
{
sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(mc);
mc->alias = "pseries";
mc->is_default = 1;
smc->dr_lmb_enabled = true;
}
| false | qemu | fc9f38c3c0f42b7e98957b646976ee5b63f23806 | static void spapr_machine_2_5_class_options(MachineClass *mc)
{
sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(mc);
mc->alias = "pseries";
mc->is_default = 1;
smc->dr_lmb_enabled = true;
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(MachineClass *VAR_0)
{
sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(VAR_0);
VAR_0->alias = "pseries";
VAR_0->is_default = 1;
smc->dr_lmb_enabled = true;
}
| [
"static void FUNC_0(MachineClass *VAR_0)\n{",
"sPAPRMachineClass *smc = SPAPR_MACHINE_CLASS(VAR_0);",
"VAR_0->alias = \"pseries\";",
"VAR_0->is_default = 1;",
"smc->dr_lmb_enabled = true;",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
]
] |
26,208 | static int disas_thumb2_insn(CPUState *env, DisasContext *s, uint16_t insn_hw1)
{
uint32_t insn, imm, shift, offset;
uint32_t rd, rn, rm, rs;
TCGv tmp;
TCGv tmp2;
TCGv tmp3;
TCGv addr;
TCGv_i64 tmp64;
int op;
int shiftop;
int conds;
int logic_cc;
if (!(arm_... | true | qemu | e1d177b922f52569e900e96d611caa09655bdec9 | static int disas_thumb2_insn(CPUState *env, DisasContext *s, uint16_t insn_hw1)
{
uint32_t insn, imm, shift, offset;
uint32_t rd, rn, rm, rs;
TCGv tmp;
TCGv tmp2;
TCGv tmp3;
TCGv addr;
TCGv_i64 tmp64;
int op;
int shiftop;
int conds;
int logic_cc;
if (!(arm_... | {
"code": [
" tcg_gen_add_i32(tmp, tmp, tmp2);"
],
"line_no": [
709
]
} | static int FUNC_0(CPUState *VAR_0, DisasContext *VAR_1, uint16_t VAR_2)
{
uint32_t insn, imm, shift, offset;
uint32_t rd, rn, rm, rs;
TCGv tmp;
TCGv tmp2;
TCGv tmp3;
TCGv addr;
TCGv_i64 tmp64;
int VAR_3;
int VAR_4;
int VAR_5;
int VAR_6;
if (!(arm_feature(VA... | [
"static int FUNC_0(CPUState *VAR_0, DisasContext *VAR_1, uint16_t VAR_2)\n{",
"uint32_t insn, imm, shift, offset;",
"uint32_t rd, rn, rm, rs;",
"TCGv tmp;",
"TCGv tmp2;",
"TCGv tmp3;",
"TCGv addr;",
"TCGv_i64 tmp64;",
"int VAR_3;",
"int VAR_4;",
"int VAR_5;",
"int VAR_6;",
"if (!(arm_feature... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29,
31
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[... |
26,209 | static void kvm_set_phys_mem(target_phys_addr_t start_addr, ram_addr_t size,
ram_addr_t phys_offset, bool log_dirty)
{
KVMState *s = kvm_state;
ram_addr_t flags = phys_offset & ~TARGET_PAGE_MASK;
KVMSlot *mem, old;
int err;
void *ram = NULL;
/* kvm works in... | true | qemu | a01672d3968cf91208666d371784110bfde9d4f8 | static void kvm_set_phys_mem(target_phys_addr_t start_addr, ram_addr_t size,
ram_addr_t phys_offset, bool log_dirty)
{
KVMState *s = kvm_state;
ram_addr_t flags = phys_offset & ~TARGET_PAGE_MASK;
KVMSlot *mem, old;
int err;
void *ram = NULL;
size = ... | {
"code": [
"static void kvm_set_phys_mem(target_phys_addr_t start_addr, ram_addr_t size,",
" ram_addr_t phys_offset, bool log_dirty)",
" ram_addr_t flags = phys_offset & ~TARGET_PAGE_MASK;",
" phys_offset &= ~IO_MEM_ROM;",
" if ((phys_offset & ~TARGET_PAGE_MAS... | static void FUNC_0(target_phys_addr_t VAR_0, ram_addr_t VAR_1,
ram_addr_t VAR_2, bool VAR_3)
{
KVMState *s = kvm_state;
ram_addr_t flags = VAR_2 & ~TARGET_PAGE_MASK;
KVMSlot *mem, old;
int VAR_4;
void *VAR_5 = NULL;
VAR_1 = TARGET_PAGE_ALIGN(VAR_1);... | [
"static void FUNC_0(target_phys_addr_t VAR_0, ram_addr_t VAR_1,\nram_addr_t VAR_2, bool VAR_3)\n{",
"KVMState *s = kvm_state;",
"ram_addr_t flags = VAR_2 & ~TARGET_PAGE_MASK;",
"KVMSlot *mem, old;",
"int VAR_4;",
"void *VAR_5 = NULL;",
"VAR_1 = TARGET_PAGE_ALIGN(VAR_1);",
"VAR_0 = TARGET_PAGE_ALIGN(VA... | [
1,
0,
1,
0,
0,
0,
0,
0,
1,
1,
1,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
23
],
[
25
],
[
31
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45
],
[
47
],
[
49
],
[
51
],
[
55,
57,
59
],
[... |
26,210 | static void v9fs_xattrwalk(void *opaque)
{
int64_t size;
V9fsString name;
ssize_t err = 0;
size_t offset = 7;
int32_t fid, newfid;
V9fsFidState *file_fidp;
V9fsFidState *xattr_fidp = NULL;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
pdu_unmarshal(pdu, offset, "dds", &fid, &newf... | true | qemu | c572f23a3e7180dbeab5e86583e43ea2afed6271 | static void v9fs_xattrwalk(void *opaque)
{
int64_t size;
V9fsString name;
ssize_t err = 0;
size_t offset = 7;
int32_t fid, newfid;
V9fsFidState *file_fidp;
V9fsFidState *xattr_fidp = NULL;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
pdu_unmarshal(pdu, offset, "dds", &fid, &newf... | {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0)
{
int64_t size;
V9fsString name;
ssize_t err = 0;
size_t offset = 7;
int32_t fid, newfid;
V9fsFidState *file_fidp;
V9fsFidState *xattr_fidp = NULL;
V9fsPDU *pdu = VAR_0;
V9fsState *s = pdu->s;
pdu_unmarshal(pdu, offset, "dds", &fid, &newfid, &name)... | [
"static void FUNC_0(void *VAR_0)\n{",
"int64_t size;",
"V9fsString name;",
"ssize_t err = 0;",
"size_t offset = 7;",
"int32_t fid, newfid;",
"V9fsFidState *file_fidp;",
"V9fsFidState *xattr_fidp = NULL;",
"V9fsPDU *pdu = VAR_0;",
"V9fsState *s = pdu->s;",
"pdu_unmarshal(pdu, offset, \"dds\", &fi... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
2
],
[
3
],
[
4
],
[
5
],
[
6
],
[
7
],
[
8
],
[
9
],
[
10
],
[
11
],
[
12
],
[
13
],
[
14
],
[
15
],
[
16
],
[
17
],
[
18
],
[
19
],
[
20
],
[
21
],... |
26,211 | void ff_eac3_apply_spectral_extension(AC3DecodeContext *s)
{
int bin, bnd, ch, i;
uint8_t wrapflag[SPX_MAX_BANDS]={1,0,}, num_copy_sections, copy_sizes[SPX_MAX_BANDS];
float rms_energy[SPX_MAX_BANDS];
/* Set copy index mapping table. Set wrap flags to apply a notch filter at
wrap points l... | true | FFmpeg | 7b05b5093ea67a3397b0c37cf398bab471e1ce2b | void ff_eac3_apply_spectral_extension(AC3DecodeContext *s)
{
int bin, bnd, ch, i;
uint8_t wrapflag[SPX_MAX_BANDS]={1,0,}, num_copy_sections, copy_sizes[SPX_MAX_BANDS];
float rms_energy[SPX_MAX_BANDS];
bin = s->spx_dst_start_freq;
num_copy_sections = 0;
for (bnd = 0; bnd < s->num... | {
"code": [
"void ff_eac3_apply_spectral_extension(AC3DecodeContext *s)",
" copy_sizes[i]*sizeof(float));",
" float *coeffs = &s->transform_coeffs[ch][bin];"
],
"line_no": [
1,
77,
123
]
} | void FUNC_0(AC3DecodeContext *VAR_0)
{
int VAR_1, VAR_2, VAR_3, VAR_4;
uint8_t wrapflag[SPX_MAX_BANDS]={1,0,}, num_copy_sections, copy_sizes[SPX_MAX_BANDS];
float VAR_5[SPX_MAX_BANDS];
VAR_1 = VAR_0->spx_dst_start_freq;
num_copy_sections = 0;
for (VAR_2 = 0; VAR_2 < VAR_0->num_s... | [
"void FUNC_0(AC3DecodeContext *VAR_0)\n{",
"int VAR_1, VAR_2, VAR_3, VAR_4;",
"uint8_t wrapflag[SPX_MAX_BANDS]={1,0,}, num_copy_sections, copy_sizes[SPX_MAX_BANDS];",
"float VAR_5[SPX_MAX_BANDS];",
"VAR_1 = VAR_0->spx_dst_start_freq;",
"num_copy_sections = 0;",
"for (VAR_2 = 0; VAR_2 < VAR_0->num_spx_ba... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
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... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
... |
26,212 | static int add_crc_to_array(uint32_t crc, int64_t pts)
{
if (size_of_array <= number_of_elements) {
if (size_of_array == 0)
size_of_array = 10;
size_of_array *= 2;
crc_array = av_realloc(crc_array, size_of_array * sizeof(uint32_t));
pts_array = av_realloc(pts_array... | true | FFmpeg | ff17c76e92cd9a9072a8771cad73c96cd620040b | static int add_crc_to_array(uint32_t crc, int64_t pts)
{
if (size_of_array <= number_of_elements) {
if (size_of_array == 0)
size_of_array = 10;
size_of_array *= 2;
crc_array = av_realloc(crc_array, size_of_array * sizeof(uint32_t));
pts_array = av_realloc(pts_array... | {
"code": [
" crc_array = av_realloc(crc_array, size_of_array * sizeof(uint32_t));",
" pts_array = av_realloc(pts_array, size_of_array * sizeof(int64_t));"
],
"line_no": [
13,
15
]
} | static int FUNC_0(uint32_t VAR_0, int64_t VAR_1)
{
if (size_of_array <= number_of_elements) {
if (size_of_array == 0)
size_of_array = 10;
size_of_array *= 2;
crc_array = av_realloc(crc_array, size_of_array * sizeof(uint32_t));
pts_array = av_realloc(pts_array, size... | [
"static int FUNC_0(uint32_t VAR_0, int64_t VAR_1)\n{",
"if (size_of_array <= number_of_elements) {",
"if (size_of_array == 0)\nsize_of_array = 10;",
"size_of_array *= 2;",
"crc_array = av_realloc(crc_array, size_of_array * sizeof(uint32_t));",
"pts_array = av_realloc(pts_array, size_of_array * sizeof(int6... | [
0,
0,
0,
0,
1,
1,
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
]
] |
26,213 | static void vfio_listener_region_del(MemoryListener *listener,
MemoryRegionSection *section)
{
VFIOContainer *container = container_of(listener, VFIOContainer,
iommu_data.listener);
hwaddr iova, end;
int ret;
if (v... | true | qemu | 1d5bf692e55ae22b59083741d521e27db704846d | static void vfio_listener_region_del(MemoryListener *listener,
MemoryRegionSection *section)
{
VFIOContainer *container = container_of(listener, VFIOContainer,
iommu_data.listener);
hwaddr iova, end;
int ret;
if (v... | {
"code": [
" section->offset_within_address_space + section->size - 1);",
" section->offset_within_address_space + section->size - 1);"
],
"line_no": [
23,
23
]
} | static void FUNC_0(MemoryListener *VAR_0,
MemoryRegionSection *VAR_1)
{
VFIOContainer *container = container_of(VAR_0, VFIOContainer,
iommu_data.VAR_0);
hwaddr iova, end;
int VAR_2;
if (vfio_listener_skipped_sectio... | [
"static void FUNC_0(MemoryListener *VAR_0,\nMemoryRegionSection *VAR_1)\n{",
"VFIOContainer *container = container_of(VAR_0, VFIOContainer,\niommu_data.VAR_0);",
"hwaddr iova, end;",
"int VAR_2;",
"if (vfio_listener_skipped_section(VAR_1)) {",
"DPRINTF(\"SKIPPING region_del %\"HWADDR_PRIx\" - %\"PRIx64\"\... | [
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7,
9
],
[
11
],
[
13
],
[
17
],
[
19,
21,
23
],
[
25
],
[
27
],
[
31,
33
],
[
35
],
[
37
],
[
39
],
[
43
],
[
45,
47
],
[
51
],
[
53
],
[
55
... |
26,214 | static av_cold void init_mv_penalty_and_fcode(MpegEncContext *s)
{
int f_code;
int mv;
for(f_code=1; f_code<=MAX_FCODE; f_code++){
for(mv=-MAX_MV; mv<=MAX_MV; mv++){
int len;
if(mv==0) len= ff_mvtab[0][1];
else{
int val, bit_size, code... | false | FFmpeg | 5b4da8a38a5ed211df9504c85ce401c30af86b97 | static av_cold void init_mv_penalty_and_fcode(MpegEncContext *s)
{
int f_code;
int mv;
for(f_code=1; f_code<=MAX_FCODE; f_code++){
for(mv=-MAX_MV; mv<=MAX_MV; mv++){
int len;
if(mv==0) len= ff_mvtab[0][1];
else{
int val, bit_size, code... | {
"code": [],
"line_no": []
} | static av_cold void FUNC_0(MpegEncContext *s)
{
int VAR_0;
int VAR_1;
for(VAR_0=1; VAR_0<=MAX_FCODE; VAR_0++){
for(VAR_1=-MAX_MV; VAR_1<=MAX_MV; VAR_1++){
int len;
if(VAR_1==0) len= ff_mvtab[0][1];
else{
int val, bit_size, code;
... | [
"static av_cold void FUNC_0(MpegEncContext *s)\n{",
"int VAR_0;",
"int VAR_1;",
"for(VAR_0=1; VAR_0<=MAX_FCODE; VAR_0++){",
"for(VAR_1=-MAX_MV; VAR_1<=MAX_MV; VAR_1++){",
"int len;",
"if(VAR_1==0) len= ff_mvtab[0][1];",
"else{",
"int val, bit_size, code;",
"bit_size = VAR_0 - 1;",
"val=VAR_1;",
... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
27
],
[
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
49
],
... |
26,215 | static av_always_inline int setup_classifs(vorbis_context *vc,
vorbis_residue *vr,
uint8_t *do_not_decode,
unsigned ch_used,
int partition_count... | false | FFmpeg | ddf1b4a2f8a680126eb611428e4f47e6e5b8c6c0 | static av_always_inline int setup_classifs(vorbis_context *vc,
vorbis_residue *vr,
uint8_t *do_not_decode,
unsigned ch_used,
int partition_count... | {
"code": [],
"line_no": []
} | static av_always_inline int FUNC_0(vorbis_context *vc,
vorbis_residue *vr,
uint8_t *do_not_decode,
unsigned ch_used,
int partition_count)
{
... | [
"static av_always_inline int FUNC_0(vorbis_context *vc,\nvorbis_residue *vr,\nuint8_t *do_not_decode,\nunsigned ch_used,\nint partition_count)\n{",
"int VAR_0, VAR_1, VAR_2;",
"unsigned VAR_3 = vc->codebooks[vr->classbook].dimensions;",
"unsigned VAR_4 = ff_inverse[vr->classifications];",
"unsigned ... | [
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
],
[
35
],
[
39
],
[
41
],
[
43,
45,
47
],
[
49
],
[
51
],
[
53
],
[... |
26,216 | static int qemu_laio_process_requests(void *opaque)
{
struct qemu_laio_state *s = opaque;
struct qemu_laiocb *laiocb, *next;
int res = 0;
QLIST_FOREACH_SAFE (laiocb, &s->completed_reqs, node, next) {
if (laiocb->async_context_id == get_async_context_id()) {
qemu_laio_process... | false | qemu | 384acbf46b70edf0d2c1648aa1a92a90bcf7057d | static int qemu_laio_process_requests(void *opaque)
{
struct qemu_laio_state *s = opaque;
struct qemu_laiocb *laiocb, *next;
int res = 0;
QLIST_FOREACH_SAFE (laiocb, &s->completed_reqs, node, next) {
if (laiocb->async_context_id == get_async_context_id()) {
qemu_laio_process... | {
"code": [],
"line_no": []
} | static int FUNC_0(void *VAR_0)
{
struct qemu_laio_state *VAR_1 = VAR_0;
struct qemu_laiocb *VAR_2, *VAR_3;
int VAR_4 = 0;
QLIST_FOREACH_SAFE (VAR_2, &VAR_1->completed_reqs, node, VAR_3) {
if (VAR_2->async_context_id == get_async_context_id()) {
qemu_laio_process_completion(V... | [
"static int FUNC_0(void *VAR_0)\n{",
"struct qemu_laio_state *VAR_1 = VAR_0;",
"struct qemu_laiocb *VAR_2, *VAR_3;",
"int VAR_4 = 0;",
"QLIST_FOREACH_SAFE (VAR_2, &VAR_1->completed_reqs, node, VAR_3) {",
"if (VAR_2->async_context_id == get_async_context_id()) {",
"qemu_laio_process_completion(VAR_1, VAR... | [
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
]
] |
26,217 | static void event_scan(PowerPCCPU *cpu, sPAPRMachineState *spapr,
uint32_t token, uint32_t nargs,
target_ulong args,
uint32_t nret, target_ulong rets)
{
uint32_t mask, buf, len, event_len;
sPAPREventLogEntry *event;
struct rtas_erro... | false | qemu | bff3063837a76b37a4bbbfe614324ca38e859f2b | static void event_scan(PowerPCCPU *cpu, sPAPRMachineState *spapr,
uint32_t token, uint32_t nargs,
target_ulong args,
uint32_t nret, target_ulong rets)
{
uint32_t mask, buf, len, event_len;
sPAPREventLogEntry *event;
struct rtas_erro... | {
"code": [],
"line_no": []
} | static void FUNC_0(PowerPCCPU *VAR_0, sPAPRMachineState *VAR_1,
uint32_t VAR_2, uint32_t VAR_3,
target_ulong VAR_4,
uint32_t VAR_5, target_ulong VAR_6)
{
uint32_t mask, buf, len, event_len;
sPAPREventLogEntry *event;
struct rtas_err... | [
"static void FUNC_0(PowerPCCPU *VAR_0, sPAPRMachineState *VAR_1,\nuint32_t VAR_2, uint32_t VAR_3,\ntarget_ulong VAR_4,\nuint32_t VAR_5, target_ulong VAR_6)\n{",
"uint32_t mask, buf, len, event_len;",
"sPAPREventLogEntry *event;",
"struct rtas_error_log *VAR_7;",
"if (VAR_3 != 4 || VAR_5 != 1) {",
"rtas_st... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
29
],
[
31
],
[
33
],
[
37
],
[
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
53
],
[... |
26,218 | static void sysbus_esp_mem_write(void *opaque, target_phys_addr_t addr,
uint64_t val, unsigned int size)
{
SysBusESPState *sysbus = opaque;
uint32_t saddr;
saddr = addr >> sysbus->it_shift;
esp_reg_write(&sysbus->esp, saddr, val);
}
| false | qemu | a8170e5e97ad17ca169c64ba87ae2f53850dab4c | static void sysbus_esp_mem_write(void *opaque, target_phys_addr_t addr,
uint64_t val, unsigned int size)
{
SysBusESPState *sysbus = opaque;
uint32_t saddr;
saddr = addr >> sysbus->it_shift;
esp_reg_write(&sysbus->esp, saddr, val);
}
| {
"code": [],
"line_no": []
} | static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,
uint64_t VAR_2, unsigned int VAR_3)
{
SysBusESPState *sysbus = VAR_0;
uint32_t saddr;
saddr = VAR_1 >> sysbus->it_shift;
esp_reg_write(&sysbus->esp, saddr, VAR_2);
}
| [
"static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned int VAR_3)\n{",
"SysBusESPState *sysbus = VAR_0;",
"uint32_t saddr;",
"saddr = VAR_1 >> sysbus->it_shift;",
"esp_reg_write(&sysbus->esp, saddr, VAR_2);",
"}"
] | [
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
]
] |
26,219 | static uint32_t adler32(uint32_t adler, const uint8_t *buf, unsigned int len)
{
unsigned long s1 = adler & 0xffff;
unsigned long s2 = (adler >> 16) & 0xffff;
int k;
if (buf == NULL) return 1L;
while (len > 0) {
k = len < NMAX ? len : NMAX;
len -= k;
while (k >= 1... | false | FFmpeg | ee9f36a88eb3e2706ea659acb0ca80c414fa5d8a | static uint32_t adler32(uint32_t adler, const uint8_t *buf, unsigned int len)
{
unsigned long s1 = adler & 0xffff;
unsigned long s2 = (adler >> 16) & 0xffff;
int k;
if (buf == NULL) return 1L;
while (len > 0) {
k = len < NMAX ? len : NMAX;
len -= k;
while (k >= 1... | {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(uint32_t adler, const uint8_t *buf, unsigned int len)
{
unsigned long VAR_0 = adler & 0xffff;
unsigned long VAR_1 = (adler >> 16) & 0xffff;
int VAR_2;
if (buf == NULL) return 1L;
while (len > 0) {
VAR_2 = len < NMAX ? len : NMAX;
len -= VAR_2;
... | [
"static uint32_t FUNC_0(uint32_t adler, const uint8_t *buf, unsigned int len)\n{",
"unsigned long VAR_0 = adler & 0xffff;",
"unsigned long VAR_1 = (adler >> 16) & 0xffff;",
"int VAR_2;",
"if (buf == NULL) return 1L;",
"while (len > 0) {",
"VAR_2 = len < NMAX ? len : NMAX;",
"len -= VAR_2;",
"while (... | [
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
... |
26,220 | static int wm8750_tx(I2CSlave *i2c, uint8_t data)
{
WM8750State *s = WM8750(i2c);
uint8_t cmd;
uint16_t value;
if (s->i2c_len >= 2) {
#ifdef VERBOSE
printf("%s: long message (%i bytes)\n", __func__, s->i2c_len);
#endif
return 1;
}
s->i2c_data[s->i2c_len ++] = data;
... | false | qemu | a89f364ae8740dfc31b321eed9ee454e996dc3c1 | static int wm8750_tx(I2CSlave *i2c, uint8_t data)
{
WM8750State *s = WM8750(i2c);
uint8_t cmd;
uint16_t value;
if (s->i2c_len >= 2) {
#ifdef VERBOSE
printf("%s: long message (%i bytes)\n", __func__, s->i2c_len);
#endif
return 1;
}
s->i2c_data[s->i2c_len ++] = data;
... | {
"code": [],
"line_no": []
} | static int FUNC_0(I2CSlave *VAR_0, uint8_t VAR_1)
{
WM8750State *s = WM8750(VAR_0);
uint8_t cmd;
uint16_t value;
if (s->i2c_len >= 2) {
#ifdef VERBOSE
printf("%s: long message (%i bytes)\n", __func__, s->i2c_len);
#endif
return 1;
}
s->i2c_data[s->i2c_len ++] = VAR_1... | [
"static int FUNC_0(I2CSlave *VAR_0, uint8_t VAR_1)\n{",
"WM8750State *s = WM8750(VAR_0);",
"uint8_t cmd;",
"uint16_t value;",
"if (s->i2c_len >= 2) {",
"#ifdef VERBOSE\nprintf(\"%s: long message (%i bytes)\\n\", __func__, s->i2c_len);",
"#endif\nreturn 1;",
"}",
"s->i2c_data[s->i2c_len ++] = VAR_1;"... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15,
17
],
[
19,
21
],
[
23
],
[
25
],
[
27,
29
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
45,
47
],
[
49,
51
],
[
53
... |
26,221 | static int protocol_client_msg(VncState *vs, uint8_t *data, size_t len)
{
int i;
uint16_t limit;
VncDisplay *vd = vs->vd;
if (data[0] > 3) {
vd->timer_interval = VNC_REFRESH_INTERVAL_BASE;
if (!qemu_timer_expired(vd->timer, qemu_get_clock(rt_clock) + vd->timer_interval))
... | false | qemu | 7bd427d801e1e3293a634d3c83beadaa90ffb911 | static int protocol_client_msg(VncState *vs, uint8_t *data, size_t len)
{
int i;
uint16_t limit;
VncDisplay *vd = vs->vd;
if (data[0] > 3) {
vd->timer_interval = VNC_REFRESH_INTERVAL_BASE;
if (!qemu_timer_expired(vd->timer, qemu_get_clock(rt_clock) + vd->timer_interval))
... | {
"code": [],
"line_no": []
} | static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2)
{
int VAR_3;
uint16_t limit;
VncDisplay *vd = VAR_0->vd;
if (VAR_1[0] > 3) {
vd->timer_interval = VNC_REFRESH_INTERVAL_BASE;
if (!qemu_timer_expired(vd->timer, qemu_get_clock(rt_clock) + vd->timer_interval))
... | [
"static int FUNC_0(VncState *VAR_0, uint8_t *VAR_1, size_t VAR_2)\n{",
"int VAR_3;",
"uint16_t limit;",
"VncDisplay *vd = VAR_0->vd;",
"if (VAR_1[0] > 3) {",
"vd->timer_interval = VNC_REFRESH_INTERVAL_BASE;",
"if (!qemu_timer_expired(vd->timer, qemu_get_clock(rt_clock) + vd->timer_interval))\nqemu_mod_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
],
[
13
],
[
15
],
[
17,
19
],
[
21
],
[
25
],
[
27,
29,
31
],
[
35,
37,
39,
41,
43
],
[
45
],
[
47,
49,
51
],
[
55
],
[
57
],
[... |
26,222 | void ppc_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
{
int i, max;
max = ARRAY_SIZE(ppc_defs);
for (i = 0; i < max; i++) {
(*cpu_fprintf)(f, "PowerPC %-16s PVR %08x\n",
ppc_defs[i].name, ppc_defs[i].pvr);
}
}
| false | qemu | 9a78eead0c74333a394c0f7bbfc4423ac746fcd5 | void ppc_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
{
int i, max;
max = ARRAY_SIZE(ppc_defs);
for (i = 0; i < max; i++) {
(*cpu_fprintf)(f, "PowerPC %-16s PVR %08x\n",
ppc_defs[i].name, ppc_defs[i].pvr);
}
}
| {
"code": [],
"line_no": []
} | void FUNC_0 (FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...))
{
int VAR_3, VAR_4;
VAR_4 = ARRAY_SIZE(ppc_defs);
for (VAR_3 = 0; VAR_3 < VAR_4; VAR_3++) {
(*VAR_1)(VAR_2, "PowerPC %-16s PVR %08x\n",
ppc_defs[VAR_3].name, ppc_defs[VAR_3].pvr);
}
}
| [
"void FUNC_0 (FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...))\n{",
"int VAR_3, VAR_4;",
"VAR_4 = ARRAY_SIZE(ppc_defs);",
"for (VAR_3 = 0; VAR_3 < VAR_4; VAR_3++) {",
"(*VAR_1)(VAR_2, \"PowerPC %-16s PVR %08x\\n\",\nppc_defs[VAR_3].name, ppc_defs[VAR_3].pvr);",
"}",
"}"
] | [
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13,
15
],
[
17
],
[
19
]
] |
26,224 | static void gic_update(gic_state *s)
{
int best_irq;
int best_prio;
int irq;
int level;
int cpu;
int cm;
for (cpu = 0; cpu < NUM_CPU(s); cpu++) {
cm = 1 << cpu;
s->current_pending[cpu] = 1023;
if (!s->enabled || !s->cpu_enabled[cpu]) {
qemu_irq_lowe... | false | qemu | 41bf234d8e35e9273290df278e2aeb88c0c50a4f | static void gic_update(gic_state *s)
{
int best_irq;
int best_prio;
int irq;
int level;
int cpu;
int cm;
for (cpu = 0; cpu < NUM_CPU(s); cpu++) {
cm = 1 << cpu;
s->current_pending[cpu] = 1023;
if (!s->enabled || !s->cpu_enabled[cpu]) {
qemu_irq_lowe... | {
"code": [],
"line_no": []
} | static void FUNC_0(gic_state *VAR_0)
{
int VAR_1;
int VAR_2;
int VAR_3;
int VAR_4;
int VAR_5;
int VAR_6;
for (VAR_5 = 0; VAR_5 < NUM_CPU(VAR_0); VAR_5++) {
VAR_6 = 1 << VAR_5;
VAR_0->current_pending[VAR_5] = 1023;
if (!VAR_0->enabled || !VAR_0->cpu_enable... | [
"static void FUNC_0(gic_state *VAR_0)\n{",
"int VAR_1;",
"int VAR_2;",
"int VAR_3;",
"int VAR_4;",
"int VAR_5;",
"int VAR_6;",
"for (VAR_5 = 0; VAR_5 < NUM_CPU(VAR_0); VAR_5++) {",
"VAR_6 = 1 << VAR_5;",
"VAR_0->current_pending[VAR_5] = 1023;",
"if (!VAR_0->enabled || !VAR_0->cpu_enabled[VAR_5])... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
... |
26,228 | static void *kqemu_vmalloc(size_t size)
{
static int phys_ram_fd = -1;
static int phys_ram_size = 0;
void *ptr;
/* no need (?) for a dummy file on OpenBSD/FreeBSD */
#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
int map_anon = MAP_ANON;
#else
int map_anon = 0;... | false | qemu | 4a1418e07bdcfaa3177739e04707ecaec75d89e1 | static void *kqemu_vmalloc(size_t size)
{
static int phys_ram_fd = -1;
static int phys_ram_size = 0;
void *ptr;
#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
int map_anon = MAP_ANON;
#else
int map_anon = 0;
const char *tmpdir;
char phys_ram_file[102... | {
"code": [],
"line_no": []
} | static void *FUNC_0(size_t VAR_0)
{
static int VAR_1 = -1;
static int VAR_2 = 0;
void *VAR_3;
#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
int VAR_4 = MAP_ANON;
#else
int VAR_4 = 0;
const char *VAR_5;
char VAR_6[1024];
#ifdef CONFIG_SOLARIS
s... | [
"static void *FUNC_0(size_t VAR_0)\n{",
"static int VAR_1 = -1;",
"static int VAR_2 = 0;",
"void *VAR_3;",
"#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)\nint VAR_4 = MAP_ANON;",
"#else\nint VAR_4 = 0;",
"const char *VAR_5;",
"char VAR_6[1024];",
"#ifdef CONFIG_SOLARIS\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
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
15,
17
],
[
19,
21
],
[
23
],
[
25
],
[
27,
29
],
[
31,
33
],
[
35,
39
],
[
41
],
[
43
],
[
47
],
[
49
],
[
51,
53,
55
],
[... |
26,229 | static uint32_t virtio_console_get_features(VirtIODevice *vdev)
{
return 0;
}
| false | qemu | 8172539d21a03e982aa7f139ddc1607dc1422045 | static uint32_t virtio_console_get_features(VirtIODevice *vdev)
{
return 0;
}
| {
"code": [],
"line_no": []
} | static uint32_t FUNC_0(VirtIODevice *vdev)
{
return 0;
}
| [
"static uint32_t FUNC_0(VirtIODevice *vdev)\n{",
"return 0;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
26,231 | void event_loop(void)
{
SDL_Event event;
double incr, pos, frac;
for(;;) {
SDL_WaitEvent(&event);
switch(event.type) {
case SDL_KEYDOWN:
switch(event.key.keysym.sym) {
case SDLK_ESCAPE:
case SDLK_q:
do_exit();
... | false | FFmpeg | 041086191fc08ab162ad6117b07a5f39639d5d9d | void event_loop(void)
{
SDL_Event event;
double incr, pos, frac;
for(;;) {
SDL_WaitEvent(&event);
switch(event.type) {
case SDL_KEYDOWN:
switch(event.key.keysym.sym) {
case SDLK_ESCAPE:
case SDLK_q:
do_exit();
... | {
"code": [],
"line_no": []
} | void FUNC_0(void)
{
SDL_Event event;
double VAR_0, VAR_1, VAR_2;
for(;;) {
SDL_WaitEvent(&event);
switch(event.type) {
case SDL_KEYDOWN:
switch(event.key.keysym.sym) {
case SDLK_ESCAPE:
case SDLK_q:
do_exit();
... | [
"void FUNC_0(void)\n{",
"SDL_Event event;",
"double VAR_0, VAR_1, VAR_2;",
"for(;;) {",
"SDL_WaitEvent(&event);",
"switch(event.type) {",
"case SDL_KEYDOWN:\nswitch(event.key.keysym.sym) {",
"case SDLK_ESCAPE:\ncase SDLK_q:\ndo_exit();",
"break;",
"case SDLK_f:\ntoggle_full_screen();",
"break;",... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
49,
51... |
26,232 | static inline void IRQ_setbit(IRQQueue *q, int n_IRQ)
{
set_bit(q->queue, n_IRQ);
}
| false | qemu | e69a17f65e9f12f33c48b04a789e49d40a8993f5 | static inline void IRQ_setbit(IRQQueue *q, int n_IRQ)
{
set_bit(q->queue, n_IRQ);
}
| {
"code": [],
"line_no": []
} | static inline void FUNC_0(IRQQueue *VAR_0, int VAR_1)
{
set_bit(VAR_0->queue, VAR_1);
}
| [
"static inline void FUNC_0(IRQQueue *VAR_0, int VAR_1)\n{",
"set_bit(VAR_0->queue, VAR_1);",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
26,233 | static void sdl_callback (void *opaque, Uint8 *buf, int len)
{
SDLVoiceOut *sdl = opaque;
SDLAudioState *s = &glob_sdl;
HWVoiceOut *hw = &sdl->hw;
int samples = len >> hw->info.shift;
if (s->exit) {
return;
}
while (samples) {
int to_mix, decr;
/* dol... | false | qemu | 1ea879e5580f63414693655fcf0328559cdce138 | static void sdl_callback (void *opaque, Uint8 *buf, int len)
{
SDLVoiceOut *sdl = opaque;
SDLAudioState *s = &glob_sdl;
HWVoiceOut *hw = &sdl->hw;
int samples = len >> hw->info.shift;
if (s->exit) {
return;
}
while (samples) {
int to_mix, decr;
... | {
"code": [],
"line_no": []
} | static void FUNC_0 (void *VAR_0, Uint8 *VAR_1, int VAR_2)
{
SDLVoiceOut *sdl = VAR_0;
SDLAudioState *s = &glob_sdl;
HWVoiceOut *hw = &sdl->hw;
int VAR_3 = VAR_2 >> hw->info.shift;
if (s->exit) {
return;
}
while (VAR_3) {
int VAR_4, VAR_5;
sd... | [
"static void FUNC_0 (void *VAR_0, Uint8 *VAR_1, int VAR_2)\n{",
"SDLVoiceOut *sdl = VAR_0;",
"SDLAudioState *s = &glob_sdl;",
"HWVoiceOut *hw = &sdl->hw;",
"int VAR_3 = VAR_2 >> hw->info.shift;",
"if (s->exit) {",
"return;",
"}",
"while (VAR_3) {",
"int VAR_4, VAR_5;",
"sdl_wait (s, \"FUNC_0\");... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
],
[
31
],
[
33
],
[
35
],
[
37
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51,
53
],
[... |
26,235 | static int mov_write_ilst_tag(AVIOContext *pb, MOVMuxContext *mov,
AVFormatContext *s)
{
int64_t pos = avio_tell(pb);
avio_wb32(pb, 0); /* size */
ffio_wfourcc(pb, "ilst");
mov_write_string_metadata(s, pb, "\251nam", "title" , 1);
mov_write_string_metadata(s, ... | false | FFmpeg | 565e0c6d866ce08d4b06427456d3d1f4fd856e9c | static int mov_write_ilst_tag(AVIOContext *pb, MOVMuxContext *mov,
AVFormatContext *s)
{
int64_t pos = avio_tell(pb);
avio_wb32(pb, 0);
ffio_wfourcc(pb, "ilst");
mov_write_string_metadata(s, pb, "\251nam", "title" , 1);
mov_write_string_metadata(s, pb, "\251A... | {
"code": [],
"line_no": []
} | static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1,
AVFormatContext *VAR_2)
{
int64_t pos = avio_tell(VAR_0);
avio_wb32(VAR_0, 0);
ffio_wfourcc(VAR_0, "ilst");
mov_write_string_metadata(VAR_2, VAR_0, "\251nam", "title" , 1);
mov_write_string_metadata(... | [
"static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1,\nAVFormatContext *VAR_2)\n{",
"int64_t pos = avio_tell(VAR_0);",
"avio_wb32(VAR_0, 0);",
"ffio_wfourcc(VAR_0, \"ilst\");",
"mov_write_string_metadata(VAR_2, VAR_0, \"\\251nam\", \"title\" , 1);",
"mov_write_string_metadata(VAR_2, VAR_0, \"\\2... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[... |
26,236 | static int gif_read_close(AVFormatContext *s1)
{
GifState *s = s1->priv_data;
av_free(s->image_buf);
return 0;
}
| true | FFmpeg | 0b54f3c0878a3acaa9142e4f24942e762d97e350 | static int gif_read_close(AVFormatContext *s1)
{
GifState *s = s1->priv_data;
av_free(s->image_buf);
return 0;
}
| {
"code": [
" return 0;",
" return 0;",
" return 0;",
" return 0;",
" GifState *s = s1->priv_data;",
" return 0;",
" GifState *s = s1->priv_data;",
" return 0;",
"static int gif_read_close(AVFormatContext *s1)",
" GifState *s = s1->priv_data;",
" ... | static int FUNC_0(AVFormatContext *VAR_0)
{
GifState *s = VAR_0->priv_data;
av_free(s->image_buf);
return 0;
}
| [
"static int FUNC_0(AVFormatContext *VAR_0)\n{",
"GifState *s = VAR_0->priv_data;",
"av_free(s->image_buf);",
"return 0;",
"}"
] | [
1,
1,
1,
1,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
11
]
] |
26,238 | void qemu_thread_get_self(QemuThread *thread)
{
if (!thread->thread) {
/* In the main thread of the process. Initialize the QemuThread
pointer in TLS, and use the dummy GetCurrentThread handle as
the identifier for qemu_thread_is_self. */
qemu_thread_init();
Tl... | true | qemu | 403e633126b7a781ecd48a29e3355770d46bbf1a | void qemu_thread_get_self(QemuThread *thread)
{
if (!thread->thread) {
qemu_thread_init();
TlsSetValue(qemu_thread_tls_index, thread);
thread->thread = GetCurrentThread();
}
}
| {
"code": [
" if (!thread->thread) {",
" qemu_thread_init();",
" TlsSetValue(qemu_thread_tls_index, thread);",
" thread->thread = GetCurrentThread();"
],
"line_no": [
5,
13,
15,
17
]
} | void FUNC_0(QemuThread *VAR_0)
{
if (!VAR_0->VAR_0) {
qemu_thread_init();
TlsSetValue(qemu_thread_tls_index, VAR_0);
VAR_0->VAR_0 = GetCurrentThread();
}
}
| [
"void FUNC_0(QemuThread *VAR_0)\n{",
"if (!VAR_0->VAR_0) {",
"qemu_thread_init();",
"TlsSetValue(qemu_thread_tls_index, VAR_0);",
"VAR_0->VAR_0 = GetCurrentThread();",
"}",
"}"
] | [
0,
1,
1,
1,
1,
0,
0
] | [
[
1,
3
],
[
5
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
]
] |
26,239 | static void coroutine_fn qemu_co_mutex_lock_slowpath(CoMutex *mutex)
{
Coroutine *self = qemu_coroutine_self();
CoWaitRecord w;
unsigned old_handoff;
trace_qemu_co_mutex_lock_entry(mutex, self);
w.co = self;
push_waiter(mutex, &w);
/* This is the "Responsibility Hand-Off" protoco... | true | qemu | 480cff632221dc4d4889bf72dd0f09cd35096bc1 | static void coroutine_fn qemu_co_mutex_lock_slowpath(CoMutex *mutex)
{
Coroutine *self = qemu_coroutine_self();
CoWaitRecord w;
unsigned old_handoff;
trace_qemu_co_mutex_lock_entry(mutex, self);
w.co = self;
push_waiter(mutex, &w);
old_handoff = atomic_mb_read(&mutex->h... | {
"code": [
"static void coroutine_fn qemu_co_mutex_lock_slowpath(CoMutex *mutex)",
" aio_co_wake(co);"
],
"line_no": [
1,
57
]
} | static void VAR_0 qemu_co_mutex_lock_slowpath(CoMutex *mutex)
{
Coroutine *self = qemu_coroutine_self();
CoWaitRecord w;
unsigned old_handoff;
trace_qemu_co_mutex_lock_entry(mutex, self);
w.co = self;
push_waiter(mutex, &w);
old_handoff = atomic_mb_read(&mutex->handoff)... | [
"static void VAR_0 qemu_co_mutex_lock_slowpath(CoMutex *mutex)\n{",
"Coroutine *self = qemu_coroutine_self();",
"CoWaitRecord w;",
"unsigned old_handoff;",
"trace_qemu_co_mutex_lock_entry(mutex, self);",
"w.co = self;",
"push_waiter(mutex, &w);",
"old_handoff = atomic_mb_read(&mutex->handoff);",
"if... | [
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
],
[
9
],
[
13
],
[
15
],
[
17
],
[
27
],
[
29,
31,
33
],
[
41
],
[
43
],
[
45
],
[
49
],
[
51
],
[
53
],
[
57
],
[
59
],
[
63
],
[
65
... |
26,240 | static int pnm_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
PNMContext * const s = avctx->priv_data;
AVFrame * const p = data;
int i, j, n, linesize, h,... | true | FFmpeg | 2c046c718aefbc9f8223e22f85bb119da4fea04d | static int pnm_decode_frame(AVCodecContext *avctx, void *data,
int *got_frame, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
PNMContext * const s = avctx->priv_data;
AVFrame * const p = data;
int i, j, n, linesize, h,... | {
"code": [
" unsigned int maskval = 0;",
" if (s->maxval < 255) {",
" maskval = (2 << av_log2(s->maxval)) - 1;",
" if (s->maxval < 65535) {",
" maskval = (2 << av_log2(s->maxval)) - 1;",
" ptr[j] = ((s->bytestream[j] & maskval) * f + 6... | 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;
PNMContext * const s = VAR_0->priv_data;
AVFrame * const p = VAR_1;
int VAR_6, VAR_21, VAR_8, VAR_9, 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;",
"PNMContext * const s = VAR_0->priv_data;",
"AVFrame * const p = VAR_1;",
"int VAR_6, VAR_21, VAR_8, VAR_9, VAR_10, VAR_11 = 0, VAR_12 ... | [
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5
],
[
7
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
25,
27
],
[
29
],
[
33,
35
],
[
39,
41
],
[
43
],
[
45
],
[
49
],
[
51,
53
],
[... |
26,241 | static ssize_t block_crypto_write_func(QCryptoBlock *block,
void *opaque,
size_t offset,
const uint8_t *buf,
size_t buflen,
... | false | qemu | e4a3507e86a1ef1453d603031bca27d5ac4cff3c | static ssize_t block_crypto_write_func(QCryptoBlock *block,
void *opaque,
size_t offset,
const uint8_t *buf,
size_t buflen,
... | {
"code": [],
"line_no": []
} | static ssize_t FUNC_0(QCryptoBlock *block,
void *opaque,
size_t offset,
const uint8_t *buf,
size_t buflen,
Error **errp)... | [
"static ssize_t FUNC_0(QCryptoBlock *block,\nvoid *opaque,\nsize_t offset,\nconst uint8_t *buf,\nsize_t buflen,\nError **errp)\n{",
"struct BlockCryptoCreateData *VAR_0 = opaque;",
"ssize_t ret;",
"ret = blk_pwrite(VAR_0->blk, offset, buf, buflen, 0);",
"if (ret < 0) {",
"error_setg_errno(errp, -ret, \"Co... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3,
5,
7,
9,
11,
13
],
[
15
],
[
17
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
]
] |
26,244 | static int qemu_calculate_timeout(void)
{
#ifndef CONFIG_IOTHREAD
int timeout;
if (!vm_running)
timeout = 5000;
else if (tcg_has_work())
timeout = 0;
else {
/* XXX: use timeout computed from timers */
int64_t add;
int64_t delta;
/* Advance virtu... | false | qemu | d6f4ade214a9f74dca9495b83a24ff9c113e4f9a | static int qemu_calculate_timeout(void)
{
#ifndef CONFIG_IOTHREAD
int timeout;
if (!vm_running)
timeout = 5000;
else if (tcg_has_work())
timeout = 0;
else {
int64_t add;
int64_t delta;
delta = qemu_icount_delta();
if (delta > 0) {
... | {
"code": [],
"line_no": []
} | static int FUNC_0(void)
{
#ifndef CONFIG_IOTHREAD
int VAR_0;
if (!vm_running)
VAR_0 = 5000;
else if (tcg_has_work())
VAR_0 = 0;
else {
int64_t add;
int64_t delta;
delta = qemu_icount_delta();
if (delta > 0) {
... | [
"static int FUNC_0(void)\n{",
"#ifndef CONFIG_IOTHREAD\nint VAR_0;",
"if (!vm_running)\nVAR_0 = 5000;",
"else if (tcg_has_work())\nVAR_0 = 0;",
"else {",
"int64_t add;",
"int64_t delta;",
"delta = qemu_icount_delta();",
"if (delta > 0) {",
"VAR_0 = (delta + 999999) / 1000000;",
"} else {",
"ad... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5,
7
],
[
11,
13
],
[
15,
17
],
[
19
],
[
23
],
[
25
],
[
29
],
[
31
],
[
37
],
[
39
],
[
45
],
[
53,
55
],
[
57
],
[
59
],
[
61
],
[
63,
65
],
... |
26,246 | static int spice_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
{
SpiceCharDriver *s = chr->opaque;
vmc_register_interface(s);
assert(s->datalen == 0);
if (s->bufsize < len) {
s->bufsize = len;
s->buffer = g_realloc(s->buffer, s->bufsize);
}
memcpy(s->buf... | false | qemu | e280ff5e9159ed227a117339c1157143627cab96 | static int spice_chr_write(CharDriverState *chr, const uint8_t *buf, int len)
{
SpiceCharDriver *s = chr->opaque;
vmc_register_interface(s);
assert(s->datalen == 0);
if (s->bufsize < len) {
s->bufsize = len;
s->buffer = g_realloc(s->buffer, s->bufsize);
}
memcpy(s->buf... | {
"code": [],
"line_no": []
} | static int FUNC_0(CharDriverState *VAR_0, const uint8_t *VAR_1, int VAR_2)
{
SpiceCharDriver *s = VAR_0->opaque;
vmc_register_interface(s);
assert(s->datalen == 0);
if (s->bufsize < VAR_2) {
s->bufsize = VAR_2;
s->buffer = g_realloc(s->buffer, s->bufsize);
}
memcpy(s->... | [
"static int FUNC_0(CharDriverState *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{",
"SpiceCharDriver *s = VAR_0->opaque;",
"vmc_register_interface(s);",
"assert(s->datalen == 0);",
"if (s->bufsize < VAR_2) {",
"s->bufsize = VAR_2;",
"s->buffer = g_realloc(s->buffer, s->bufsize);",
"}",
"memcpy(s->buffe... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
]
] |
26,247 | static int net_slirp_init(NetClientState *peer, const char *model,
const char *name, int restricted,
const char *vnetwork, const char *vhost,
const char *vhostname, const char *tftp_export,
const char *bootfile, ... | false | qemu | 68756ba8be2127b6ea30a466af9f78a5c97bc15f | static int net_slirp_init(NetClientState *peer, const char *model,
const char *name, int restricted,
const char *vnetwork, const char *vhost,
const char *vhostname, const char *tftp_export,
const char *bootfile, ... | {
"code": [],
"line_no": []
} | static int FUNC_0(NetClientState *VAR_0, const char *VAR_1,
const char *VAR_2, int VAR_3,
const char *VAR_4, const char *VAR_5,
const char *VAR_6, const char *VAR_7,
const char *VAR_8, const char *VAR_9,
... | [
"static int FUNC_0(NetClientState *VAR_0, const char *VAR_1,\nconst char *VAR_2, int VAR_3,\nconst char *VAR_4, const char *VAR_5,\nconst char *VAR_6, const char *VAR_7,\nconst char *VAR_8, const char *VAR_9,\nconst char *VAR_10, const char *VAR_11,\nconst char *VAR_12, const char **VAR_13)\n{",
"struct in_addr V... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11,
13,
15
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29,
31
],
[
33,
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
],
[
47
],
[
51
],
[
53
... |
26,248 | static int ppce500_load_device_tree(CPUPPCState *env,
PPCE500Params *params,
hwaddr addr,
hwaddr initrd_base,
hwaddr initrd_size)
{
int ret = -1;
uint64_t mem_re... | false | qemu | 492ec48dc2d99ca13b24d554e1970af7e2581e23 | static int ppce500_load_device_tree(CPUPPCState *env,
PPCE500Params *params,
hwaddr addr,
hwaddr initrd_base,
hwaddr initrd_size)
{
int ret = -1;
uint64_t mem_re... | {
"code": [],
"line_no": []
} | static int FUNC_0(CPUPPCState *VAR_0,
PPCE500Params *VAR_1,
hwaddr VAR_2,
hwaddr VAR_3,
hwaddr VAR_4)
{
int VAR_5 = -1;
uint64_t mem_reg_property[] = { 0, cpu_to... | [
"static int FUNC_0(CPUPPCState *VAR_0,\nPPCE500Params *VAR_1,\nhwaddr VAR_2,\nhwaddr VAR_3,\nhwaddr VAR_4)\n{",
"int VAR_5 = -1;",
"uint64_t mem_reg_property[] = { 0, cpu_to_be64(VAR_1->ram_size) };",
"int VAR_6;",
"void *VAR_7;",
"uint8_t hypercall[16];",
"uint32_t clock_freq = 400000000;",
"uint32_t... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
[
1,
3,
5,
7,
9,
11
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45
... |
26,249 | int ff_audio_mix_get_matrix(AudioMix *am, double *matrix, int stride)
{
int i, o;
if ( am->in_channels <= 0 || am->in_channels > AVRESAMPLE_MAX_CHANNELS ||
am->out_channels <= 0 || am->out_channels > AVRESAMPLE_MAX_CHANNELS) {
av_log(am, AV_LOG_ERROR, "Invalid channel counts\n");
... | false | FFmpeg | 0cf3505930913d3584b215f6912de04ff41366e0 | int ff_audio_mix_get_matrix(AudioMix *am, double *matrix, int stride)
{
int i, o;
if ( am->in_channels <= 0 || am->in_channels > AVRESAMPLE_MAX_CHANNELS ||
am->out_channels <= 0 || am->out_channels > AVRESAMPLE_MAX_CHANNELS) {
av_log(am, AV_LOG_ERROR, "Invalid channel counts\n");
... | {
"code": [],
"line_no": []
} | int FUNC_0(AudioMix *VAR_0, double *VAR_1, int VAR_2)
{
int VAR_3, VAR_4;
if ( VAR_0->in_channels <= 0 || VAR_0->in_channels > AVRESAMPLE_MAX_CHANNELS ||
VAR_0->out_channels <= 0 || VAR_0->out_channels > AVRESAMPLE_MAX_CHANNELS) {
av_log(VAR_0, AV_LOG_ERROR, "Invalid channel counts\n");
... | [
"int FUNC_0(AudioMix *VAR_0, double *VAR_1, int VAR_2)\n{",
"int VAR_3, VAR_4;",
"if ( VAR_0->in_channels <= 0 || VAR_0->in_channels > AVRESAMPLE_MAX_CHANNELS ||\nVAR_0->out_channels <= 0 || VAR_0->out_channels > AVRESAMPLE_MAX_CHANNELS) {",
"av_log(VAR_0, AV_LOG_ERROR, \"Invalid channel counts\\n\");",
"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
] | [
[
1,
3
],
[
5
],
[
9,
11
],
[
13
],
[
15
],
[
17
],
[
21,
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
39
],
[
41,
43
],
[
45
],
[
47,
49
],
[
51... |
26,250 | DriveInfo *drive_get_by_blockdev(BlockDriverState *bs)
{
return bs->blk ? blk_legacy_dinfo(bs->blk) : NULL;
}
| false | qemu | 4be746345f13e99e468c60acbd3a355e8183e3ce | DriveInfo *drive_get_by_blockdev(BlockDriverState *bs)
{
return bs->blk ? blk_legacy_dinfo(bs->blk) : NULL;
}
| {
"code": [],
"line_no": []
} | DriveInfo *FUNC_0(BlockDriverState *bs)
{
return bs->blk ? blk_legacy_dinfo(bs->blk) : NULL;
}
| [
"DriveInfo *FUNC_0(BlockDriverState *bs)\n{",
"return bs->blk ? blk_legacy_dinfo(bs->blk) : NULL;",
"}"
] | [
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
7
]
] |
26,252 | int kvm_arch_put_registers(CPUState *env, int level)
{
int ret;
assert(cpu_is_stopped(env) || qemu_cpu_self(env));
ret = kvm_getput_regs(env, 1);
if (ret < 0) {
return ret;
}
ret = kvm_put_xsave(env);
if (ret < 0) {
return ret;
}
ret = kvm_put_xcrs(env... | false | qemu | b7680cb6078bd7294a3dd86473d3f2fdee991dd0 | int kvm_arch_put_registers(CPUState *env, int level)
{
int ret;
assert(cpu_is_stopped(env) || qemu_cpu_self(env));
ret = kvm_getput_regs(env, 1);
if (ret < 0) {
return ret;
}
ret = kvm_put_xsave(env);
if (ret < 0) {
return ret;
}
ret = kvm_put_xcrs(env... | {
"code": [],
"line_no": []
} | int FUNC_0(CPUState *VAR_0, int VAR_1)
{
int VAR_2;
assert(cpu_is_stopped(VAR_0) || qemu_cpu_self(VAR_0));
VAR_2 = kvm_getput_regs(VAR_0, 1);
if (VAR_2 < 0) {
return VAR_2;
}
VAR_2 = kvm_put_xsave(VAR_0);
if (VAR_2 < 0) {
return VAR_2;
}
VAR_2 = kvm_pu... | [
"int FUNC_0(CPUState *VAR_0, int VAR_1)\n{",
"int VAR_2;",
"assert(cpu_is_stopped(VAR_0) || qemu_cpu_self(VAR_0));",
"VAR_2 = kvm_getput_regs(VAR_0, 1);",
"if (VAR_2 < 0) {",
"return VAR_2;",
"}",
"VAR_2 = kvm_put_xsave(VAR_0);",
"if (VAR_2 < 0) {",
"return VAR_2;",
"}",
"VAR_2 = kvm_put_xcrs(... | [
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
[
1,
3
],
[
5
],
[
9
],
[
13
],
[
15
],
[
17
],
[
19
],
[
21
],
[
23
],
[
25
],
[
27
],
[
29
],
[
31
],
[
33
],
[
35
],
[
37
],
[
39
],
[
41
],
[
43
],
[
45... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.