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
0
static av_cold int vdadec_init(AVCodecContext *avctx) { VDADecoderContext *ctx = avctx->priv_data; struct vda_context *vda_ctx = &ctx->vda_ctx; OSStatus status; int ret; ctx->h264_initialized = 0; /* init pix_fmts of codec */ if (!ff_h264_vda_decoder.pix_fmts) { if (kCFC...
false
FFmpeg
973b1a6b9070e2bf17d17568cbaf4043ce931f51
static av_cold int vdadec_init(AVCodecContext *avctx) { VDADecoderContext *ctx = avctx->priv_data; struct vda_context *vda_ctx = &ctx->vda_ctx; OSStatus status; int ret; ctx->h264_initialized = 0; if (!ff_h264_vda_decoder.pix_fmts) { if (kCFCoreFoundationVersionNumber <...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { VDADecoderContext *ctx = avctx->priv_data; struct vda_context *VAR_0 = &ctx->VAR_0; OSStatus status; int VAR_1; ctx->h264_initialized = 0; if (!ff_h264_vda_decoder.pix_fmts) { if (kCFCoreFoundationVersionNumber < kCFCor...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "VDADecoderContext *ctx = avctx->priv_data;", "struct vda_context *VAR_0 = &ctx->VAR_0;", "OSStatus status;", "int VAR_1;", "ctx->h264_initialized = 0;", "if (!ff_h264_vda_decoder.pix_fmts) {", "if (kCFCoreFoundationVersionNumber < kCFCoreFoundati...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53,...
1
static int transcode(AVFormatContext **output_files, int nb_output_files, InputFile *input_files, int nb_input_files, StreamMap *stream_maps, int nb_stream_maps) { int ret = 0, i, j, k, n, nb_ostreams = 0, step; AVForma...
false
FFmpeg
321b2a9ded0468670b7678b7c098886930ae16b2
static int transcode(AVFormatContext **output_files, int nb_output_files, InputFile *input_files, int nb_input_files, StreamMap *stream_maps, int nb_stream_maps) { int ret = 0, i, j, k, n, nb_ostreams = 0, step; AVForma...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext **VAR_0, int VAR_1, InputFile *VAR_2, int VAR_3, StreamMap *VAR_4, int VAR_5) { int VAR_6 = 0, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11 = 0, VAR_12; AVFormatContext *is, *os; AVCodecCon...
[ "static int FUNC_0(AVFormatContext **VAR_0,\nint VAR_1,\nInputFile *VAR_2,\nint VAR_3,\nStreamMap *VAR_4, int VAR_5)\n{", "int VAR_6 = 0, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11 = 0, VAR_12;", "AVFormatContext *is, *os;", "AVCodecContext *codec, *icodec;", "OutputStream *ost, **ost_table = NULL;", "InputStrea...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ], [ 51 ], [ 53 ], [...
2
static void v4l2_free_buffer(void *opaque, uint8_t *unused) { V4L2Buffer* avbuf = opaque; V4L2m2mContext *s = buf_to_m2mctx(avbuf); if (atomic_fetch_sub(&avbuf->context_refcount, 1) == 1) { atomic_fetch_sub_explicit(&s->refcount, 1, memory_order_acq_rel); if (s->reinit) { ...
false
FFmpeg
5d5de3eba4c7890c2e8077f5b4ae569671d11cf8
static void v4l2_free_buffer(void *opaque, uint8_t *unused) { V4L2Buffer* avbuf = opaque; V4L2m2mContext *s = buf_to_m2mctx(avbuf); if (atomic_fetch_sub(&avbuf->context_refcount, 1) == 1) { atomic_fetch_sub_explicit(&s->refcount, 1, memory_order_acq_rel); if (s->reinit) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, uint8_t *VAR_1) { V4L2Buffer* avbuf = VAR_0; V4L2m2mContext *s = buf_to_m2mctx(avbuf); if (atomic_fetch_sub(&avbuf->context_refcount, 1) == 1) { atomic_fetch_sub_explicit(&s->refcount, 1, memory_order_acq_rel); if (s->reinit) { if (!atom...
[ "static void FUNC_0(void *VAR_0, uint8_t *VAR_1)\n{", "V4L2Buffer* avbuf = VAR_0;", "V4L2m2mContext *s = buf_to_m2mctx(avbuf);", "if (atomic_fetch_sub(&avbuf->context_refcount, 1) == 1) {", "atomic_fetch_sub_explicit(&s->refcount, 1, memory_order_acq_rel);", "if (s->reinit) {", "if (!atomic_load(&s->ref...
[ 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 ] ]
4
int av_opencl_buffer_write(cl_mem dst_cl_buf, uint8_t *src_buf, size_t buf_size) { cl_int status; void *mapped = clEnqueueMapBuffer(gpu_env.command_queue, dst_cl_buf, CL_TRUE,CL_MAP_WRITE, 0, sizeof(uint8_t) * buf_size, 0, NULL, NU...
false
FFmpeg
57d77b3963ce1023eaf5ada8cba58b9379405cc8
int av_opencl_buffer_write(cl_mem dst_cl_buf, uint8_t *src_buf, size_t buf_size) { cl_int status; void *mapped = clEnqueueMapBuffer(gpu_env.command_queue, dst_cl_buf, CL_TRUE,CL_MAP_WRITE, 0, sizeof(uint8_t) * buf_size, 0, NULL, NU...
{ "code": [], "line_no": [] }
int FUNC_0(cl_mem VAR_0, uint8_t *VAR_1, size_t VAR_2) { cl_int status; void *VAR_3 = clEnqueueMapBuffer(gpu_env.command_queue, VAR_0, CL_TRUE,CL_MAP_WRITE, 0, sizeof(uint8_t) * VAR_2, 0, NULL, NULL, &status); if (status != ...
[ "int FUNC_0(cl_mem VAR_0, uint8_t *VAR_1, size_t VAR_2)\n{", "cl_int status;", "void *VAR_3 = clEnqueueMapBuffer(gpu_env.command_queue, VAR_0,\nCL_TRUE,CL_MAP_WRITE, 0, sizeof(uint8_t) * VAR_2,\n0, NULL, NULL, &status);", "if (status != CL_SUCCESS) {", "av_log(&openclutils, AV_LOG_ERROR, \"Could not map Ope...
[ 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
5
static int r3d_read_rdvo(AVFormatContext *s, Atom *atom) { R3DContext *r3d = s->priv_data; AVStream *st = s->streams[0]; int i; r3d->video_offsets_count = (atom->size - 8) / 4; r3d->video_offsets = av_malloc(atom->size); if (!r3d->video_offsets) return AVERROR(ENOMEM); f...
true
FFmpeg
aba232cfa9b193604ed98f3fa505378d006b1b3b
static int r3d_read_rdvo(AVFormatContext *s, Atom *atom) { R3DContext *r3d = s->priv_data; AVStream *st = s->streams[0]; int i; r3d->video_offsets_count = (atom->size - 8) / 4; r3d->video_offsets = av_malloc(atom->size); if (!r3d->video_offsets) return AVERROR(ENOMEM); f...
{ "code": [ " if (st->r_frame_rate.num)", " (AVRational){st->r_frame_rate.den,", " st->r_frame_rate.num},", " if (st->r_frame_rate.num)" ], "line_no": [ 41, 45, 47, 41 ] }
static int FUNC_0(AVFormatContext *VAR_0, Atom *VAR_1) { R3DContext *r3d = VAR_0->priv_data; AVStream *st = VAR_0->streams[0]; int VAR_2; r3d->video_offsets_count = (VAR_1->size - 8) / 4; r3d->video_offsets = av_malloc(VAR_1->size); if (!r3d->video_offsets) return AVERROR(ENOME...
[ "static int FUNC_0(AVFormatContext *VAR_0, Atom *VAR_1)\n{", "R3DContext *r3d = VAR_0->priv_data;", "AVStream *st = VAR_0->streams[0];", "int VAR_2;", "r3d->video_offsets_count = (VAR_1->size - 8) / 4;", "r3d->video_offsets = av_malloc(VAR_1->size);", "if (!r3d->video_offsets)\nreturn AVERROR(ENOMEM);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43, 45 ], [ 47 ], [ 49 ], [...
6
static int dds_decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { DDSContext *ctx = avctx->priv_data; GetByteContext *gbc = &ctx->gbc; AVFrame *frame = data; int mipmap; int ret; ff_texturedsp_init(&ctx->texdsp); bytestream2_init(gbc...
true
FFmpeg
afb4632cc30e83287338690c785ebac180436a59
static int dds_decode(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { DDSContext *ctx = avctx->priv_data; GetByteContext *gbc = &ctx->gbc; AVFrame *frame = data; int mipmap; int ret; ff_texturedsp_init(&ctx->texdsp); bytestream2_init(gbc...
{ "code": [ " (frame->data[1][3+i*4]<<24)" ], "line_no": [ 227 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { DDSContext *ctx = VAR_0->priv_data; GetByteContext *gbc = &ctx->gbc; AVFrame *frame = VAR_1; int VAR_4; int VAR_5; ff_texturedsp_init(&ctx->texdsp); bytestream2_init(gbc, VAR...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "DDSContext *ctx = VAR_0->priv_data;", "GetByteContext *gbc = &ctx->gbc;", "AVFrame *frame = VAR_1;", "int VAR_4;", "int VAR_5;", "ff_texturedsp_init(&ctx->texdsp);", "bytestream2_init(gbc, VAR_3->VAR_1, VAR_3->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 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 53 ], [...
7
static void check_lowpass_line(int depth){ LOCAL_ALIGNED_32(uint8_t, src, [SRC_SIZE]); LOCAL_ALIGNED_32(uint8_t, dst_ref, [WIDTH_PADDED]); LOCAL_ALIGNED_32(uint8_t, dst_new, [WIDTH_PADDED]); int w = WIDTH; int mref = WIDTH_PADDED * -1; int pref = WIDTH_PADDED; int i, depth_byte; ...
true
FFmpeg
da032427786d9db4ab21014998cb1245083d6c85
static void check_lowpass_line(int depth){ LOCAL_ALIGNED_32(uint8_t, src, [SRC_SIZE]); LOCAL_ALIGNED_32(uint8_t, dst_ref, [WIDTH_PADDED]); LOCAL_ALIGNED_32(uint8_t, dst_new, [WIDTH_PADDED]); int w = WIDTH; int mref = WIDTH_PADDED * -1; int pref = WIDTH_PADDED; int i, depth_byte; ...
{ "code": [ "static void check_lowpass_line(int depth){", " LOCAL_ALIGNED_32(uint8_t, src, [SRC_SIZE]);", " LOCAL_ALIGNED_32(uint8_t, dst_ref, [WIDTH_PADDED]);", " LOCAL_ALIGNED_32(uint8_t, dst_new, [WIDTH_PADDED]);", " int w = WIDTH;", " int mref = WIDTH_PADDED * -1;", ...
static void FUNC_0(int VAR_0){ LOCAL_ALIGNED_32(uint8_t, src, [SRC_SIZE]); LOCAL_ALIGNED_32(uint8_t, dst_ref, [WIDTH_PADDED]); LOCAL_ALIGNED_32(uint8_t, dst_new, [WIDTH_PADDED]); int VAR_1 = WIDTH; int VAR_2 = WIDTH_PADDED * -1; int VAR_3 = WIDTH_PADDED; int VAR_4, VAR_5; Int...
[ "static void FUNC_0(int VAR_0){", "LOCAL_ALIGNED_32(uint8_t, src, [SRC_SIZE]);", "LOCAL_ALIGNED_32(uint8_t, dst_ref, [WIDTH_PADDED]);", "LOCAL_ALIGNED_32(uint8_t, dst_new, [WIDTH_PADDED]);", "int VAR_1 = WIDTH;", "int VAR_2 = WIDTH_PADDED * -1;", "int VAR_3 = WIDTH_PADDED;", "int VAR_4, VAR_5;", ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 51 ...
9
static void test_init(TestData *d) { QPCIBus *bus; QTestState *qs; char *s; s = g_strdup_printf("-machine q35 %s %s", d->noreboot ? "" : "-global ICH9-LPC.noreboot=false", !d->args ? "" : d->args); qs = qtest_start(s); qtest_irq_intercep...
true
qemu
b4ba67d9a702507793c2724e56f98e9b0f7be02b
static void test_init(TestData *d) { QPCIBus *bus; QTestState *qs; char *s; s = g_strdup_printf("-machine q35 %s %s", d->noreboot ? "" : "-global ICH9-LPC.noreboot=false", !d->args ? "" : d->args); qs = qtest_start(s); qtest_irq_intercep...
{ "code": [ " d->tco_io_base = qpci_legacy_iomap(d->dev, PM_IO_BASE_ADDR + 0x60);" ], "line_no": [ 53 ] }
static void FUNC_0(TestData *VAR_0) { QPCIBus *bus; QTestState *qs; char *VAR_1; VAR_1 = g_strdup_printf("-machine q35 %VAR_1 %VAR_1", VAR_0->noreboot ? "" : "-global ICH9-LPC.noreboot=false", !VAR_0->args ? "" : VAR_0->args); qs = qtest_star...
[ "static void FUNC_0(TestData *VAR_0)\n{", "QPCIBus *bus;", "QTestState *qs;", "char *VAR_1;", "VAR_1 = g_strdup_printf(\"-machine q35 %VAR_1 %VAR_1\",\nVAR_0->noreboot ? \"\" : \"-global ICH9-LPC.noreboot=false\",\n!VAR_0->args ? \"\" : VAR_0->args);", "qs = qtest_start(VAR_1);", "qtest_irq_intercept_in...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 41 ], [ 45 ], [ 49 ], [ 53 ], [ 55 ] ]
11
void assert_avoptions(AVDictionary *m) { AVDictionaryEntry *t; if ((t = av_dict_get(m, "", NULL, AV_DICT_IGNORE_SUFFIX))) { av_log(NULL, AV_LOG_FATAL, "Option %s not found.\n", t->key); exit(1); } }
true
FFmpeg
636ced8e1dc8248a1353b416240b93d70ad03edb
void assert_avoptions(AVDictionary *m) { AVDictionaryEntry *t; if ((t = av_dict_get(m, "", NULL, AV_DICT_IGNORE_SUFFIX))) { av_log(NULL, AV_LOG_FATAL, "Option %s not found.\n", t->key); exit(1); } }
{ "code": [ " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(...
void FUNC_0(AVDictionary *VAR_0) { AVDictionaryEntry *t; if ((t = av_dict_get(VAR_0, "", NULL, AV_DICT_IGNORE_SUFFIX))) { av_log(NULL, AV_LOG_FATAL, "Option %s not found.\n", t->key); exit(1); } }
[ "void FUNC_0(AVDictionary *VAR_0)\n{", "AVDictionaryEntry *t;", "if ((t = av_dict_get(VAR_0, \"\", NULL, AV_DICT_IGNORE_SUFFIX))) {", "av_log(NULL, AV_LOG_FATAL, \"Option %s not found.\\n\", t->key);", "exit(1);", "}", "}" ]
[ 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
13
static void nbd_refresh_filename(BlockDriverState *bs, QDict *options) { BDRVNBDState *s = bs->opaque; QDict *opts = qdict_new(); QObject *saddr_qdict; Visitor *ov; const char *host = NULL, *port = NULL, *path = NULL; if (s->saddr->type == SOCKET_ADDRESS_KIND_INET) { const Inet...
true
qemu
a1d4e38a8b01a6699355c31867d524f8d4cd480e
static void nbd_refresh_filename(BlockDriverState *bs, QDict *options) { BDRVNBDState *s = bs->opaque; QDict *opts = qdict_new(); QObject *saddr_qdict; Visitor *ov; const char *host = NULL, *port = NULL, *path = NULL; if (s->saddr->type == SOCKET_ADDRESS_KIND_INET) { const Inet...
{ "code": [], "line_no": [] }
static void FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1) { BDRVNBDState *s = VAR_0->opaque; QDict *opts = qdict_new(); QObject *saddr_qdict; Visitor *ov; const char *VAR_2 = NULL, *VAR_3 = NULL, *VAR_4 = NULL; if (s->saddr->type == SOCKET_ADDRESS_KIND_INET) { const InetSocketA...
[ "static void FUNC_0(BlockDriverState *VAR_0, QDict *VAR_1)\n{", "BDRVNBDState *s = VAR_0->opaque;", "QDict *opts = qdict_new();", "QObject *saddr_qdict;", "Visitor *ov;", "const char *VAR_2 = NULL, *VAR_3 = NULL, *VAR_4 = NULL;", "if (s->saddr->type == SOCKET_ADDRESS_KIND_INET) {", "const InetSocketAd...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43, 45, 47 ], [ 49,...
14
int net_init_tap(QemuOpts *opts, const char *name, VLANState *vlan) { const char *ifname; ifname = qemu_opt_get(opts, "ifname"); if (!ifname) { error_report("tap: no interface name"); return -1; } if (tap_win32_init(vlan, "tap", name, ifname) == -1) { return -1...
true
qemu
6687b79d636cd60ed9adb1177d0d946b58fa7717
int net_init_tap(QemuOpts *opts, const char *name, VLANState *vlan) { const char *ifname; ifname = qemu_opt_get(opts, "ifname"); if (!ifname) { error_report("tap: no interface name"); return -1; } if (tap_win32_init(vlan, "tap", name, ifname) == -1) { return -1...
{ "code": [ " return -1;", "int net_init_tap(QemuOpts *opts, const char *name, VLANState *vlan)", "int net_init_tap(QemuOpts *opts, const char *name, VLANState *vlan)" ], "line_no": [ 17, 1, 1 ] }
int FUNC_0(QemuOpts *VAR_0, const char *VAR_1, VLANState *VAR_2) { const char *VAR_3; VAR_3 = qemu_opt_get(VAR_0, "VAR_3"); if (!VAR_3) { error_report("tap: no interface VAR_1"); return -1; } if (tap_win32_init(VAR_2, "tap", VAR_1, VAR_3) == -1) { return -1; ...
[ "int FUNC_0(QemuOpts *VAR_0, const char *VAR_1, VLANState *VAR_2)\n{", "const char *VAR_3;", "VAR_3 = qemu_opt_get(VAR_0, \"VAR_3\");", "if (!VAR_3) {", "error_report(\"tap: no interface VAR_1\");", "return -1;", "}", "if (tap_win32_init(VAR_2, \"tap\", VAR_1, VAR_3) == -1) {", "return -1;", "}", ...
[ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
16
print_insn (bfd_vma pc, disassemble_info *info) { const struct dis386 *dp; int i; char *op_txt[MAX_OPERANDS]; int needcomma; unsigned char uses_DATA_prefix, uses_LOCK_prefix; unsigned char uses_REPNZ_prefix, uses_REPZ_prefix; int sizeflag; const char *p; struct dis_private priv; unsigned ...
true
qemu
3f168b5d353fa68baab55ea0c6ba791f0df027dc
print_insn (bfd_vma pc, disassemble_info *info) { const struct dis386 *dp; int i; char *op_txt[MAX_OPERANDS]; int needcomma; unsigned char uses_DATA_prefix, uses_LOCK_prefix; unsigned char uses_REPNZ_prefix, uses_REPZ_prefix; int sizeflag; const char *p; struct dis_private priv; unsigned ...
{ "code": [ " if (putop (dp->name, sizeflag) == 0)" ], "line_no": [ 711 ] }
FUNC_0 (bfd_vma VAR_0, disassemble_info *VAR_1) { const struct dis386 *VAR_2; int VAR_3; char *VAR_4[MAX_OPERANDS]; int VAR_5; unsigned char VAR_6, VAR_7; unsigned char VAR_8, VAR_9; int VAR_10; const char *VAR_11; struct dis_private VAR_12; unsigned char VAR_13; unsigned char VAR_14; ...
[ "FUNC_0 (bfd_vma VAR_0, disassemble_info *VAR_1)\n{", "const struct dis386 *VAR_2;", "int VAR_3;", "char *VAR_4[MAX_OPERANDS];", "int VAR_5;", "unsigned char VAR_6, VAR_7;", "unsigned char VAR_8, VAR_9;", "int VAR_10;", "const char *VAR_11;", "struct dis_private VAR_12;", "unsigned char VAR_13;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31, 33 ], [ 35, 37 ], [ 41, 43, 45 ], [ 49, 51, 53, 55,...
17
static void vp6_parse_coeff_huffman(VP56Context *s) { VP56Model *model = s->modelp; uint8_t *permute = s->scantable.permutated; VLC *vlc_coeff; int coeff, sign, coeff_idx; int b, cg, idx; int pt = 0; /* plane type (0 for Y, 1 for U or V) */ for (b=0; b<6; b++) { int ct ...
true
FFmpeg
2a6eb06254df79e96b3d791b6b89b2534ced3119
static void vp6_parse_coeff_huffman(VP56Context *s) { VP56Model *model = s->modelp; uint8_t *permute = s->scantable.permutated; VLC *vlc_coeff; int coeff, sign, coeff_idx; int b, cg, idx; int pt = 0; for (b=0; b<6; b++) { int ct = 0; if (b > 3) pt = 1; ...
{ "code": [ " for (coeff_idx=0; coeff_idx<64; ) {" ], "line_no": [ 29 ] }
static void FUNC_0(VP56Context *VAR_0) { VP56Model *model = VAR_0->modelp; uint8_t *permute = VAR_0->scantable.permutated; VLC *vlc_coeff; int VAR_1, VAR_2, VAR_3; int VAR_4, VAR_5, VAR_6; int VAR_10 = 0; for (VAR_4=0; VAR_4<6; VAR_4++) { int VAR_8 = 0; if...
[ "static void FUNC_0(VP56Context *VAR_0)\n{", "VP56Model *model = VAR_0->modelp;", "uint8_t *permute = VAR_0->scantable.permutated;", "VLC *vlc_coeff;", "int VAR_1, VAR_2, VAR_3;", "int VAR_4, VAR_5, VAR_6;", "int VAR_10 = 0;", "for (VAR_4=0; VAR_4<6; VAR_4++) {", "int VAR_8 = 0;", "if (VAR_4 > 3) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ...
18
static int vncws_start_tls_handshake(VncState *vs) { int ret = gnutls_handshake(vs->tls.session); if (ret < 0) { if (!gnutls_error_is_fatal(ret)) { VNC_DEBUG("Handshake interrupted (blocking)\n"); if (!gnutls_record_get_direction(vs->tls.session)) { qemu_...
true
qemu
3e305e4a4752f70c0b5c3cf5b43ec957881714f7
static int vncws_start_tls_handshake(VncState *vs) { int ret = gnutls_handshake(vs->tls.session); if (ret < 0) { if (!gnutls_error_is_fatal(ret)) { VNC_DEBUG("Handshake interrupted (blocking)\n"); if (!gnutls_record_get_direction(vs->tls.session)) { qemu_...
{ "code": [ " if (vs->vd->tls.x509verify) {", " if (vnc_tls_validate_certificate(vs) < 0) {", " VNC_DEBUG(\"Client verification failed\\n\");", " vnc_client_error(vs);", " return -1;", " } else {", " VNC_DEBUG(\"Client verificati...
static int FUNC_0(VncState *VAR_0) { int VAR_1 = gnutls_handshake(VAR_0->tls.session); if (VAR_1 < 0) { if (!gnutls_error_is_fatal(VAR_1)) { VNC_DEBUG("Handshake interrupted (blocking)\n"); if (!gnutls_record_get_direction(VAR_0->tls.session)) { qemu_set_...
[ "static int FUNC_0(VncState *VAR_0)\n{", "int VAR_1 = gnutls_handshake(VAR_0->tls.session);", "if (VAR_1 < 0) {", "if (!gnutls_error_is_fatal(VAR_1)) {", "VNC_DEBUG(\"Handshake interrupted (blocking)\\n\");", "if (!gnutls_record_get_direction(VAR_0->tls.session)) {", "qemu_set_fd_handler(VAR_0->csock, v...
[ 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47...
19
av_cold void ff_af_queue_init(AVCodecContext *avctx, AudioFrameQueue *afq) { afq->avctx = avctx; afq->next_pts = AV_NOPTS_VALUE; afq->remaining_delay = avctx->delay; afq->remaining_samples = avctx->delay; afq->frame_queue = NULL; }
false
FFmpeg
2df0c32ea12ddfa72ba88309812bfb13b674130f
av_cold void ff_af_queue_init(AVCodecContext *avctx, AudioFrameQueue *afq) { afq->avctx = avctx; afq->next_pts = AV_NOPTS_VALUE; afq->remaining_delay = avctx->delay; afq->remaining_samples = avctx->delay; afq->frame_queue = NULL; }
{ "code": [], "line_no": [] }
av_cold void FUNC_0(AVCodecContext *avctx, AudioFrameQueue *afq) { afq->avctx = avctx; afq->next_pts = AV_NOPTS_VALUE; afq->remaining_delay = avctx->delay; afq->remaining_samples = avctx->delay; afq->frame_queue = NULL; }
[ "av_cold void FUNC_0(AVCodecContext *avctx, AudioFrameQueue *afq)\n{", "afq->avctx = avctx;", "afq->next_pts = AV_NOPTS_VALUE;", "afq->remaining_delay = avctx->delay;", "afq->remaining_samples = avctx->delay;", "afq->frame_queue = NULL;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
20
static int qcow2_create(const char *filename, QemuOpts *opts, Error **errp) { char *backing_file = NULL; char *backing_fmt = NULL; char *buf = NULL; uint64_t size = 0; int flags = 0; size_t cluster_size = DEFAULT_CLUSTER_SIZE; PreallocMode prealloc; int version; uint64_t re...
true
qemu
0696ae2c9236a3589f5eaf5b00c12868b6f30a17
static int qcow2_create(const char *filename, QemuOpts *opts, Error **errp) { char *backing_file = NULL; char *backing_fmt = NULL; char *buf = NULL; uint64_t size = 0; int flags = 0; size_t cluster_size = DEFAULT_CLUSTER_SIZE; PreallocMode prealloc; int version; uint64_t re...
{ "code": [ " const char *encryptfmt = NULL;", " encryptfmt = \"aes\";", " const char *encryptfmt = NULL;", " if (qemu_opt_get_del(opts, BLOCK_OPT_ENCRYPT)) {", " encryptfmt = \"aes\";" ], "line_no": [ 25, 61, 25, 47, 61 ] }
static int FUNC_0(const char *VAR_0, QemuOpts *VAR_1, Error **VAR_2) { char *VAR_3 = NULL; char *VAR_4 = NULL; char *VAR_5 = NULL; uint64_t size = 0; int VAR_6 = 0; size_t cluster_size = DEFAULT_CLUSTER_SIZE; PreallocMode prealloc; int VAR_7; uint64_t refcount_bits; in...
[ "static int FUNC_0(const char *VAR_0, QemuOpts *VAR_1, Error **VAR_2)\n{", "char *VAR_3 = NULL;", "char *VAR_4 = NULL;", "char *VAR_5 = NULL;", "uint64_t size = 0;", "int VAR_6 = 0;", "size_t cluster_size = DEFAULT_CLUSTER_SIZE;", "PreallocMode prealloc;", "int VAR_7;", "uint64_t refcount_bits;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
21
static void quantize_mantissas(AC3EncodeContext *s) { int blk, ch; for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) { AC3Block *block = &s->blocks[blk]; s->mant1_cnt = s->mant2_cnt = s->mant4_cnt = 0; s->qmant1_ptr = s->qmant2_ptr = s->qmant4_ptr = NULL; for (ch = 0; ch...
true
FFmpeg
323e6fead07c75f418e4b60704a4f437bb3483b2
static void quantize_mantissas(AC3EncodeContext *s) { int blk, ch; for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) { AC3Block *block = &s->blocks[blk]; s->mant1_cnt = s->mant2_cnt = s->mant4_cnt = 0; s->qmant1_ptr = s->qmant2_ptr = s->qmant4_ptr = NULL; for (ch = 0; ch...
{ "code": [ " quantize_mantissas_blk_ch(s, block->fixed_coef[ch], block->exp_shift[ch]," ], "line_no": [ 23 ] }
static void FUNC_0(AC3EncodeContext *VAR_0) { int VAR_1, VAR_2; for (VAR_1 = 0; VAR_1 < AC3_MAX_BLOCKS; VAR_1++) { AC3Block *block = &VAR_0->blocks[VAR_1]; VAR_0->mant1_cnt = VAR_0->mant2_cnt = VAR_0->mant4_cnt = 0; VAR_0->qmant1_ptr = VAR_0->qmant2_ptr = VAR_0->qmant4_ptr =...
[ "static void FUNC_0(AC3EncodeContext *VAR_0)\n{", "int VAR_1, VAR_2;", "for (VAR_1 = 0; VAR_1 < AC3_MAX_BLOCKS; VAR_1++) {", "AC3Block *block = &VAR_0->blocks[VAR_1];", "VAR_0->mant1_cnt = VAR_0->mant2_cnt = VAR_0->mant4_cnt = 0;", "VAR_0->qmant1_ptr = VAR_0->qmant2_ptr = VAR_0->qmant4_ptr = NULL;", ...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ] ]
23
static void dma_blk_cb(void *opaque, int ret) { DMAAIOCB *dbs = (DMAAIOCB *)opaque; dma_addr_t cur_addr, cur_len; void *mem; trace_dma_blk_cb(dbs, ret); dbs->acb = NULL; dbs->sector_num += dbs->iov.size / 512; if (dbs->sg_cur_index == dbs->sg->nsg || ret < 0) { dma_com...
true
qemu
e95205e1f9cd2c4262b7a7b1c992a94512c86d0e
static void dma_blk_cb(void *opaque, int ret) { DMAAIOCB *dbs = (DMAAIOCB *)opaque; dma_addr_t cur_addr, cur_len; void *mem; trace_dma_blk_cb(dbs, ret); dbs->acb = NULL; dbs->sector_num += dbs->iov.size / 512; if (dbs->sg_cur_index == dbs->sg->nsg || ret < 0) { dma_com...
{ "code": [ " DMAAIOCB *dbs = (DMAAIOCB *)opaque;", " cpu_register_map_client(dbs, continue_after_map_failure);" ], "line_no": [ 5, 67 ] }
static void FUNC_0(void *VAR_0, int VAR_1) { DMAAIOCB *dbs = (DMAAIOCB *)VAR_0; dma_addr_t cur_addr, cur_len; void *VAR_2; trace_dma_blk_cb(dbs, VAR_1); dbs->acb = NULL; dbs->sector_num += dbs->iov.size / 512; if (dbs->sg_cur_index == dbs->sg->nsg || VAR_1 < 0) { dma_c...
[ "static void FUNC_0(void *VAR_0, int VAR_1)\n{", "DMAAIOCB *dbs = (DMAAIOCB *)VAR_0;", "dma_addr_t cur_addr, cur_len;", "void *VAR_2;", "trace_dma_blk_cb(dbs, VAR_1);", "dbs->acb = NULL;", "dbs->sector_num += dbs->iov.size / 512;", "if (dbs->sg_cur_index == dbs->sg->nsg || VAR_1 < 0) {", "dma_comple...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
24
long do_sigreturn(CPUPPCState *env) { struct target_sigcontext *sc = NULL; struct target_mcontext *sr = NULL; target_ulong sr_addr = 0, sc_addr; sigset_t blocked; target_sigset_t set; sc_addr = env->gpr[1] + SIGNAL_FRAMESIZE; if (!lock_user_struct(VERIFY_READ, sc, sc_addr, 1)) ...
true
qemu
c599d4d6d6e9bfdb64e54c33a22cb26e3496b96d
long do_sigreturn(CPUPPCState *env) { struct target_sigcontext *sc = NULL; struct target_mcontext *sr = NULL; target_ulong sr_addr = 0, sc_addr; sigset_t blocked; target_sigset_t set; sc_addr = env->gpr[1] + SIGNAL_FRAMESIZE; if (!lock_user_struct(VERIFY_READ, sc, sc_addr, 1)) ...
{ "code": [ " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " return 0;", " ret...
long FUNC_0(CPUPPCState *VAR_0) { struct target_sigcontext *VAR_1 = NULL; struct target_mcontext *VAR_2 = NULL; target_ulong sr_addr = 0, sc_addr; sigset_t blocked; target_sigset_t set; sc_addr = VAR_0->gpr[1] + SIGNAL_FRAMESIZE; if (!lock_user_struct(VERIFY_READ, VAR_1, sc_addr, 1...
[ "long FUNC_0(CPUPPCState *VAR_0)\n{", "struct target_sigcontext *VAR_1 = NULL;", "struct target_mcontext *VAR_2 = NULL;", "target_ulong sr_addr = 0, sc_addr;", "sigset_t blocked;", "target_sigset_t set;", "sc_addr = VAR_0->gpr[1] + SIGNAL_FRAMESIZE;", "if (!lock_user_struct(VERIFY_READ, VAR_1, sc_addr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 53 ], [...
25
static int virtio_gpu_load(QEMUFile *f, void *opaque, size_t size) { VirtIOGPU *g = opaque; struct virtio_gpu_simple_resource *res; struct virtio_gpu_scanout *scanout; uint32_t resource_id, pformat; int i; g->hostmem = 0; resource_id = qemu_get_be32(f); while (resource_id !=...
true
qemu
c84f0f25db2eaab101665ddb60c1ddf1decce76a
static int virtio_gpu_load(QEMUFile *f, void *opaque, size_t size) { VirtIOGPU *g = opaque; struct virtio_gpu_simple_resource *res; struct virtio_gpu_scanout *scanout; uint32_t resource_id, pformat; int i; g->hostmem = 0; resource_id = qemu_get_be32(f); while (resource_id !=...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2) { VirtIOGPU *g = VAR_1; struct virtio_gpu_simple_resource *VAR_3; struct virtio_gpu_scanout *VAR_4; uint32_t resource_id, pformat; int VAR_5; g->hostmem = 0; resource_id = qemu_get_be32(VAR_0); while (resource_id ...
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2)\n{", "VirtIOGPU *g = VAR_1;", "struct virtio_gpu_simple_resource *VAR_3;", "struct virtio_gpu_scanout *VAR_4;", "uint32_t resource_id, pformat;", "int VAR_5;", "g->hostmem = 0;", "resource_id = qemu_get_be32(VAR_0);", "while (resource_id...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 46 ], [ 49, 51, 53 ...
26
static av_cold int iv_alloc_frames(Indeo3DecodeContext *s) { int luma_width = (s->width + 3) & ~3, luma_height = (s->height + 3) & ~3, chroma_width = ((luma_width >> 2) + 3) & ~3, chroma_height = ((luma_height >> 2) + 3) & ~3, luma_pixels = luma_widt...
true
FFmpeg
16c831851384ab59e73579fdd9913fbff3c0284a
static av_cold int iv_alloc_frames(Indeo3DecodeContext *s) { int luma_width = (s->width + 3) & ~3, luma_height = (s->height + 3) & ~3, chroma_width = ((luma_width >> 2) + 3) & ~3, chroma_height = ((luma_height >> 2) + 3) & ~3, luma_pixels = luma_widt...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(Indeo3DecodeContext *s) { int VAR_0 = (s->width + 3) & ~3, VAR_1 = (s->height + 3) & ~3, VAR_2 = ((VAR_0 >> 2) + 3) & ~3, VAR_3 = ((VAR_1 >> 2) + 3) & ~3, VAR_4 = VAR_0 * VAR_1, VAR_5 = VAR_2 * VAR_3, VAR...
[ "static av_cold int FUNC_0(Indeo3DecodeContext *s)\n{", "int VAR_0 = (s->width + 3) & ~3,\nVAR_1 = (s->height + 3) & ~3,\nVAR_2 = ((VAR_0 >> 2) + 3) & ~3,\nVAR_3 = ((VAR_1 >> 2) + 3) & ~3,\nVAR_4 = VAR_0 * VAR_1,\nVAR_5 = VAR_2 * VAR_3,\nVAR_6;", "unsigned int VAR_7 = VAR_4 * 2 + 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 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13, 15, 17 ], [ 19, 21 ], [ 26, 28 ], [ 30 ], [ 32 ], [ 34 ], [ 36 ], [ 40 ], [ 42 ], [ 44 ], [ 46 ], [ 48 ], [ 50 ], [ 52 ], [ 54 ...
27
static int mov_write_minf_tag(AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track) { int64_t pos = avio_tell(pb); int ret; avio_wb32(pb, 0); /* size */ ffio_wfourcc(pb, "minf"); if (track->enc->codec_type == AVMEDIA_TYPE_VIDEO) mov_write_vmhd_tag(pb); else if (track->enc->code...
false
FFmpeg
b4dcd351ec50caaa484bc5c66b4a8d5557a0f1ea
static int mov_write_minf_tag(AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track) { int64_t pos = avio_tell(pb); int ret; avio_wb32(pb, 0); ffio_wfourcc(pb, "minf"); if (track->enc->codec_type == AVMEDIA_TYPE_VIDEO) mov_write_vmhd_tag(pb); else if (track->enc->codec_type == ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1, MOVTrack *VAR_2) { int64_t pos = avio_tell(VAR_0); int VAR_3; avio_wb32(VAR_0, 0); ffio_wfourcc(VAR_0, "minf"); if (VAR_2->enc->codec_type == AVMEDIA_TYPE_VIDEO) mov_write_vmhd_tag(VAR_0); else if (VAR_2->enc->codec_t...
[ "static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1, MOVTrack *VAR_2)\n{", "int64_t pos = avio_tell(VAR_0);", "int VAR_3;", "avio_wb32(VAR_0, 0);", "ffio_wfourcc(VAR_0, \"minf\");", "if (VAR_2->enc->codec_type == AVMEDIA_TYPE_VIDEO)\nmov_write_vmhd_tag(VAR_0);", "else if (VAR_2->enc->codec_type ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
28
int av_packet_ref(AVPacket *dst, AVPacket *src) { int ret; ret = av_packet_copy_props(dst, src); if (ret < 0) return ret; if (!src->buf) { ret = packet_alloc(&dst->buf, src->size); if (ret < 0) goto fail; memcpy(dst->buf->data, src->data, src->si...
false
FFmpeg
fe0f4e56577a2dbd373bb50b0ae2d49e69d822fc
int av_packet_ref(AVPacket *dst, AVPacket *src) { int ret; ret = av_packet_copy_props(dst, src); if (ret < 0) return ret; if (!src->buf) { ret = packet_alloc(&dst->buf, src->size); if (ret < 0) goto fail; memcpy(dst->buf->data, src->data, src->si...
{ "code": [], "line_no": [] }
int FUNC_0(AVPacket *VAR_0, AVPacket *VAR_1) { int VAR_2; VAR_2 = av_packet_copy_props(VAR_0, VAR_1); if (VAR_2 < 0) return VAR_2; if (!VAR_1->buf) { VAR_2 = packet_alloc(&VAR_0->buf, VAR_1->size); if (VAR_2 < 0) goto fail; memcpy(VAR_0->buf->dat...
[ "int FUNC_0(AVPacket *VAR_0, AVPacket *VAR_1)\n{", "int VAR_2;", "VAR_2 = av_packet_copy_props(VAR_0, VAR_1);", "if (VAR_2 < 0)\nreturn VAR_2;", "if (!VAR_1->buf) {", "VAR_2 = packet_alloc(&VAR_0->buf, VAR_1->size);", "if (VAR_2 < 0)\ngoto fail;", "memcpy(VAR_0->buf->data, VAR_1->data, VAR_1->size);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ] ]
29
av_cold void ff_float_dsp_init_ppc(AVFloatDSPContext *fdsp, int bit_exact) { #if HAVE_ALTIVEC if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC)) return; fdsp->vector_fmul = ff_vector_fmul_altivec; fdsp->vector_fmul_add = ff_vector_fmul_add_altivec; fdsp->vector_fmul_reverse = ff_vector_fm...
false
FFmpeg
f61bece684d9685b07895508e6c1c733b5564ccf
av_cold void ff_float_dsp_init_ppc(AVFloatDSPContext *fdsp, int bit_exact) { #if HAVE_ALTIVEC if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC)) return; fdsp->vector_fmul = ff_vector_fmul_altivec; fdsp->vector_fmul_add = ff_vector_fmul_add_altivec; fdsp->vector_fmul_reverse = ff_vector_fm...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(AVFloatDSPContext *fdsp, int bit_exact) { #if HAVE_ALTIVEC if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC)) return; fdsp->vector_fmul = ff_vector_fmul_altivec; fdsp->vector_fmul_add = ff_vector_fmul_add_altivec; fdsp->vector_fmul_reverse = ff_vector_fmul_reverse_alti...
[ "av_cold void FUNC_0(AVFloatDSPContext *fdsp, int bit_exact)\n{", "#if HAVE_ALTIVEC\nif (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))\nreturn;", "fdsp->vector_fmul = ff_vector_fmul_altivec;", "fdsp->vector_fmul_add = ff_vector_fmul_add_altivec;", "fdsp->vector_fmul_reverse = ff_vector_fmul_reverse_altivec;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ] ]
30
static int config_props(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; LutContext *lut = ctx->priv; const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[inlink->format]; int min[4], max[4]; int val, comp, ret; lut->hsub = desc->log2_chroma_w; lut->vsub = desc->log2...
false
FFmpeg
38477e1981a7729b02d9a2f45142c53dc78625fe
static int config_props(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; LutContext *lut = ctx->priv; const AVPixFmtDescriptor *desc = &av_pix_fmt_descriptors[inlink->format]; int min[4], max[4]; int val, comp, ret; lut->hsub = desc->log2_chroma_w; lut->vsub = desc->log2...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0) { AVFilterContext *ctx = VAR_0->dst; LutContext *lut = ctx->priv; const AVPixFmtDescriptor *VAR_1 = &av_pix_fmt_descriptors[VAR_0->format]; int VAR_2[4], VAR_3[4]; int VAR_4, VAR_5, VAR_6; lut->hsub = VAR_1->log2_chroma_w; lut->vsub = VAR_1->l...
[ "static int FUNC_0(AVFilterLink *VAR_0)\n{", "AVFilterContext *ctx = VAR_0->dst;", "LutContext *lut = ctx->priv;", "const AVPixFmtDescriptor *VAR_1 = &av_pix_fmt_descriptors[VAR_0->format];", "int VAR_2[4], VAR_3[4];", "int VAR_4, VAR_5, VAR_6;", "lut->hsub = VAR_1->log2_chroma_w;", "lut->vsub = 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33, 35, 37, 39, 41, 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
31
static av_cold int rpza_decode_init(AVCodecContext *avctx) { RpzaContext *s = avctx->priv_data; s->avctx = avctx; avctx->pix_fmt = AV_PIX_FMT_RGB555; s->frame.data[0] = NULL; return 0; }
false
FFmpeg
3b199d29cd597a3518136d78860e172060b9e83d
static av_cold int rpza_decode_init(AVCodecContext *avctx) { RpzaContext *s = avctx->priv_data; s->avctx = avctx; avctx->pix_fmt = AV_PIX_FMT_RGB555; s->frame.data[0] = NULL; return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { RpzaContext *s = avctx->priv_data; s->avctx = avctx; avctx->pix_fmt = AV_PIX_FMT_RGB555; s->frame.data[0] = NULL; return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "RpzaContext *s = avctx->priv_data;", "s->avctx = avctx;", "avctx->pix_fmt = AV_PIX_FMT_RGB555;", "s->frame.data[0] = NULL;", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ] ]
32
static int huffman_decode(MPADecodeContext *s, GranuleDef *g, int16_t *exponents, int end_pos2) { int s_index; int i; int last_pos, bits_left; VLC *vlc; int end_pos = FFMIN(end_pos2, s->gb.size_in_bits); /* low frequencies (called big values) */ s_index =...
true
FFmpeg
74b1bf632f125a795e66e5fd0a060b9c7c55b7a3
static int huffman_decode(MPADecodeContext *s, GranuleDef *g, int16_t *exponents, int end_pos2) { int s_index; int i; int last_pos, bits_left; VLC *vlc; int end_pos = FFMIN(end_pos2, s->gb.size_in_bits); s_index = 0; for (i = 0; i < 3; i++) { ...
{ "code": [ " int end_pos = FFMIN(end_pos2, s->gb.size_in_bits);" ], "line_no": [ 15 ] }
static int FUNC_0(MPADecodeContext *VAR_0, GranuleDef *VAR_1, int16_t *VAR_2, int VAR_3) { int VAR_4; int VAR_5; int VAR_6, VAR_7; VLC *vlc; int VAR_8 = FFMIN(VAR_3, VAR_0->gb.size_in_bits); VAR_4 = 0; for (VAR_5 = 0; VAR_5 < 3; VAR_5++) { ...
[ "static int FUNC_0(MPADecodeContext *VAR_0, GranuleDef *VAR_1,\nint16_t *VAR_2, int VAR_3)\n{", "int VAR_4;", "int VAR_5;", "int VAR_6, VAR_7;", "VLC *vlc;", "int VAR_8 = FFMIN(VAR_3, VAR_0->gb.size_in_bits);", "VAR_4 = 0;", "for (VAR_5 = 0; VAR_5 < 3; VAR_5++) {", "int VAR_9, VAR_10, VAR_11, VAR_12...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
33
void helper_slbie(CPUPPCState *env, target_ulong addr) { PowerPCCPU *cpu = ppc_env_get_cpu(env); ppc_slb_t *slb; slb = slb_lookup(cpu, addr); if (!slb) { return; } if (slb->esid & SLB_ESID_V) { slb->esid &= ~SLB_ESID_V; /* XXX: given the fact that segment ...
true
qemu
cd0c6f473532bfaf20a095bc90a18e45162981b5
void helper_slbie(CPUPPCState *env, target_ulong addr) { PowerPCCPU *cpu = ppc_env_get_cpu(env); ppc_slb_t *slb; slb = slb_lookup(cpu, addr); if (!slb) { return; } if (slb->esid & SLB_ESID_V) { slb->esid &= ~SLB_ESID_V; tlb_flush(CPU(cpu), ...
{ "code": [ " PowerPCCPU *cpu = ppc_env_get_cpu(env);", " tlb_flush(CPU(cpu), 1);", " tlb_flush(CPU(cpu), 1);", " tlb_flush(CPU(cpu), 1);" ], "line_no": [ 5, 35, 35, 35 ] }
void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1) { PowerPCCPU *cpu = ppc_env_get_cpu(VAR_0); ppc_slb_t *slb; slb = slb_lookup(cpu, VAR_1); if (!slb) { return; } if (slb->esid & SLB_ESID_V) { slb->esid &= ~SLB_ESID_V; tlb_flush(CPU(cpu), ...
[ "void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1)\n{", "PowerPCCPU *cpu = ppc_env_get_cpu(VAR_0);", "ppc_slb_t *slb;", "slb = slb_lookup(cpu, VAR_1);", "if (!slb) {", "return;", "}", "if (slb->esid & SLB_ESID_V) {", "slb->esid &= ~SLB_ESID_V;", "tlb_flush(CPU(cpu), 1);", "}", "}" ]
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 35 ], [ 37 ], [ 39 ] ]
34
static inline void do_rfi(CPUPPCState *env, target_ulong nip, target_ulong msr) { CPUState *cs = CPU(ppc_env_get_cpu(env)); /* MSR:POW cannot be set by any form of rfi */ msr &= ~(1ULL << MSR_POW); #if defined(TARGET_PPC64) /* Switching to 32-bit ? Crop the nip */ if (!msr_is_64bit(env, m...
true
qemu
e3cffe6fad29e07d401eabb913a6d88501d5c143
static inline void do_rfi(CPUPPCState *env, target_ulong nip, target_ulong msr) { CPUState *cs = CPU(ppc_env_get_cpu(env)); msr &= ~(1ULL << MSR_POW); #if defined(TARGET_PPC64) if (!msr_is_64bit(env, msr)) { nip = (uint32_t)nip; } #else nip = (uint32_t)nip; #endif ...
{ "code": [ " check_tlb_flush(env);", " check_tlb_flush(env);", " check_tlb_flush(env);", " check_tlb_flush(env);" ], "line_no": [ 55, 55, 55, 55 ] }
static inline void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1, target_ulong VAR_2) { CPUState *cs = CPU(ppc_env_get_cpu(VAR_0)); VAR_2 &= ~(1ULL << MSR_POW); #if defined(TARGET_PPC64) if (!msr_is_64bit(VAR_0, VAR_2)) { VAR_1 = (uint32_t)VAR_1; } #else VAR_1 = (uin...
[ "static inline void FUNC_0(CPUPPCState *VAR_0, target_ulong VAR_1, target_ulong VAR_2)\n{", "CPUState *cs = CPU(ppc_env_get_cpu(VAR_0));", "VAR_2 &= ~(1ULL << MSR_POW);", "#if defined(TARGET_PPC64)\nif (!msr_is_64bit(VAR_0, VAR_2)) {", "VAR_1 = (uint32_t)VAR_1;", "}", "#else\nVAR_1 = (uint32_t)VAR_1;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 15, 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29, 33 ], [ 35 ], [ 37, 39 ], [ 41, 49 ], [ 55 ], [ 57 ] ]
36
static void d3d11va_device_uninit(AVHWDeviceContext *hwdev) { AVD3D11VADeviceContext *device_hwctx = hwdev->hwctx; if (device_hwctx->device) ID3D11Device_Release(device_hwctx->device); if (device_hwctx->device_context) ID3D11DeviceContext_Release(device_hwctx->device_context); ...
true
FFmpeg
f6d49a0dc84aade2adf150c25afb66cbda1d5528
static void d3d11va_device_uninit(AVHWDeviceContext *hwdev) { AVD3D11VADeviceContext *device_hwctx = hwdev->hwctx; if (device_hwctx->device) ID3D11Device_Release(device_hwctx->device); if (device_hwctx->device_context) ID3D11DeviceContext_Release(device_hwctx->device_context); ...
{ "code": [ " if (device_hwctx->device)", " if (device_hwctx->device_context)", " if (device_hwctx->video_device)", " if (device_hwctx->video_context)", " if (device_hwctx->lock == d3d11va_default_lock)" ], "line_no": [ 9, 15, 21, 27, 33 ] }
static void FUNC_0(AVHWDeviceContext *VAR_0) { AVD3D11VADeviceContext *device_hwctx = VAR_0->hwctx; if (device_hwctx->device) ID3D11Device_Release(device_hwctx->device); if (device_hwctx->device_context) ID3D11DeviceContext_Release(device_hwctx->device_context); if (device_h...
[ "static void FUNC_0(AVHWDeviceContext *VAR_0)\n{", "AVD3D11VADeviceContext *device_hwctx = VAR_0->hwctx;", "if (device_hwctx->device)\nID3D11Device_Release(device_hwctx->device);", "if (device_hwctx->device_context)\nID3D11DeviceContext_Release(device_hwctx->device_context);", "if (device_hwctx->video_devic...
[ 0, 0, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15, 17 ], [ 21, 23 ], [ 27, 29 ], [ 33, 35 ], [ 37 ] ]
37
int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, AVCodecContext *codec, int size, int big_endian) { int id; uint64_t bitrate; if (size < 14) { avpriv_request_sample(codec, "wav header size < 14"); return AVERROR_INVALIDDATA; } codec->codec...
true
FFmpeg
839d6bc192f7ef94343872ff039799501af38855
int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, AVCodecContext *codec, int size, int big_endian) { int id; uint64_t bitrate; if (size < 14) { avpriv_request_sample(codec, "wav header size < 14"); return AVERROR_INVALIDDATA; } codec->codec...
{ "code": [ " bitrate = avio_rl32(pb) * 8;", " bitrate = avio_rb32(pb) * 8;" ], "line_no": [ 33, 45 ] }
int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1, AVCodecContext *VAR_2, int VAR_3, int VAR_4) { int VAR_5; uint64_t bitrate; if (VAR_3 < 14) { avpriv_request_sample(VAR_2, "wav header VAR_3 < 14"); return AVERROR_INVALIDDATA; } VAR_2->codec_ty...
[ "int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1,\nAVCodecContext *VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5;", "uint64_t bitrate;", "if (VAR_3 < 14) {", "avpriv_request_sample(VAR_2, \"wav header VAR_3 < 14\");", "return AVERROR_INVALIDDATA;", "}", "VAR_2->codec_type = AVMEDIA_TYPE_AUDIO;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
38
static void test_acpi_asl(test_data *data) { int i; AcpiSdtTable *sdt, *exp_sdt; test_data exp_data; gboolean exp_err, err; memset(&exp_data, 0, sizeof(exp_data)); exp_data.tables = load_expected_aml(data); dump_aml_files(data, false); for (i = 0; i < data->tables->len; ++i) {...
true
qemu
dac23a6c05e543590508b48b8ed31d89b0c99c61
static void test_acpi_asl(test_data *data) { int i; AcpiSdtTable *sdt, *exp_sdt; test_data exp_data; gboolean exp_err, err; memset(&exp_data, 0, sizeof(exp_data)); exp_data.tables = load_expected_aml(data); dump_aml_files(data, false); for (i = 0; i < data->tables->len; ++i) {...
{ "code": [ " uint32_t signature = cpu_to_le32(exp_sdt->header.signature);", " sdt->tmp_files_retain = true;", " exp_sdt->tmp_files_retain = true;", " fprintf(stderr,", " \"acpi-test: Warning! %.4s mismatch. \"", " ...
static void FUNC_0(test_data *VAR_0) { int VAR_1; AcpiSdtTable *sdt, *exp_sdt; test_data exp_data; gboolean exp_err, err; memset(&exp_data, 0, sizeof(exp_data)); exp_data.tables = load_expected_aml(VAR_0); dump_aml_files(VAR_0, false); for (VAR_1 = 0; VAR_1 < VAR_0->tables->le...
[ "static void FUNC_0(test_data *VAR_0)\n{", "int VAR_1;", "AcpiSdtTable *sdt, *exp_sdt;", "test_data exp_data;", "gboolean exp_err, err;", "memset(&exp_data, 0, sizeof(exp_data));", "exp_data.tables = load_expected_aml(VAR_0);", "dump_aml_files(VAR_0, false);", "for (VAR_1 = 0; VAR_1 < VAR_0->tables-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ...
39
static int matroska_parse_laces(MatroskaDemuxContext *matroska, uint8_t **buf, int size, int type, uint32_t **lace_buf, int *laces) { int res = 0, n; uint8_t *data = *buf; uint32_t *lace_size; if (!type) { *laces = 1; ...
true
FFmpeg
87b017a298c12b9a2451276649f3932358b943fc
static int matroska_parse_laces(MatroskaDemuxContext *matroska, uint8_t **buf, int size, int type, uint32_t **lace_buf, int *laces) { int res = 0, n; uint8_t *data = *buf; uint32_t *lace_size; if (!type) { *laces = 1; ...
{ "code": [ " if (size != (size / *laces) * size) {" ], "line_no": [ 111 ] }
static int FUNC_0(MatroskaDemuxContext *VAR_0, uint8_t **VAR_1, int VAR_2, int VAR_3, uint32_t **VAR_4, int *VAR_5) { int VAR_6 = 0, VAR_7; uint8_t *data = *VAR_1; uint32_t *lace_size; if (!VAR_3) { *VAR_5 = 1; *V...
[ "static int FUNC_0(MatroskaDemuxContext *VAR_0, uint8_t **VAR_1,\nint VAR_2, int VAR_3,\nuint32_t **VAR_4, int *VAR_5)\n{", "int VAR_6 = 0, VAR_7;", "uint8_t *data = *VAR_1;", "uint32_t *lace_size;", "if (!VAR_3) {", "*VAR_5 = 1;", "*VAR_4 = av_mallocz(sizeof(int));", "if (!*VAR_4)\nreturn AVERROR(ENO...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 53 ...
40
static int parse_picture_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { PGSSubContext *ctx = avctx->priv_data; uint8_t sequence_desc; unsigned int rle_bitmap_len, width, height; if (buf_size <= 4) return -1; buf_size -= 4; ...
false
FFmpeg
d150a147dac67faeaf6b1f25a523ae330168ee1e
static int parse_picture_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { PGSSubContext *ctx = avctx->priv_data; uint8_t sequence_desc; unsigned int rle_bitmap_len, width, height; if (buf_size <= 4) return -1; buf_size -= 4; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { PGSSubContext *ctx = VAR_0->priv_data; uint8_t sequence_desc; unsigned int VAR_3, VAR_4, VAR_5; if (VAR_2 <= 4) return -1; VAR_2 -= 4; VAR_1 += 3; ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1, int VAR_2)\n{", "PGSSubContext *ctx = VAR_0->priv_data;", "uint8_t sequence_desc;", "unsigned int VAR_3, VAR_4, VAR_5;", "if (VAR_2 <= 4)\nreturn -1;", "VAR_2 -= 4;", "VAR_1 += 3;", "sequence_desc = bytestream_get_byte(&VAR_1);", "if (...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 27 ], [ 33 ], [ 37 ], [ 41, 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [ 61, 63 ], [ 65 ], [ 71...
41
void hmp_info_io_apic(Monitor *mon, const QDict *qdict) { if (kvm_irqchip_in_kernel()) { kvm_ioapic_dump_state(mon, qdict); } else { ioapic_dump_state(mon, qdict); } }
true
qemu
456d97d364e34adc4e68cbd51c2ad6ecd548492d
void hmp_info_io_apic(Monitor *mon, const QDict *qdict) { if (kvm_irqchip_in_kernel()) { kvm_ioapic_dump_state(mon, qdict); } else { ioapic_dump_state(mon, qdict); } }
{ "code": [ " if (kvm_irqchip_in_kernel()) {" ], "line_no": [ 5 ] }
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { if (kvm_irqchip_in_kernel()) { kvm_ioapic_dump_state(VAR_0, VAR_1); } else { ioapic_dump_state(VAR_0, VAR_1); } }
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "if (kvm_irqchip_in_kernel()) {", "kvm_ioapic_dump_state(VAR_0, VAR_1);", "} else {", "ioapic_dump_state(VAR_0, VAR_1);", "}", "}" ]
[ 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
42
static av_cold int split_init(AVFilterContext *ctx) { SplitContext *s = ctx->priv; int i; for (i = 0; i < s->nb_outputs; i++) { char name[32]; AVFilterPad pad = { 0 }; snprintf(name, sizeof(name), "output%d", i); pad.type = ctx->filter->inputs[0].type; pa...
true
FFmpeg
5e706a2afb09009bad49c4b12aaa997acf4491b1
static av_cold int split_init(AVFilterContext *ctx) { SplitContext *s = ctx->priv; int i; for (i = 0; i < s->nb_outputs; i++) { char name[32]; AVFilterPad pad = { 0 }; snprintf(name, sizeof(name), "output%d", i); pad.type = ctx->filter->inputs[0].type; pa...
{ "code": [ " int i;", " ff_insert_outpad(ctx, i, &pad);" ], "line_no": [ 7, 31 ] }
static av_cold int FUNC_0(AVFilterContext *ctx) { SplitContext *s = ctx->priv; int VAR_0; for (VAR_0 = 0; VAR_0 < s->nb_outputs; VAR_0++) { char name[32]; AVFilterPad pad = { 0 }; snprintf(name, sizeof(name), "output%d", VAR_0); pad.type = ctx->filter->inputs[0].t...
[ "static av_cold int FUNC_0(AVFilterContext *ctx)\n{", "SplitContext *s = ctx->priv;", "int VAR_0;", "for (VAR_0 = 0; VAR_0 < s->nb_outputs; VAR_0++) {", "char name[32];", "AVFilterPad pad = { 0 };", "snprintf(name, sizeof(name), \"output%d\", VAR_0);", "pad.type = ctx->filter->inputs[0].type;", "pad...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ] ]
44
static void ide_set_signature(IDEState *s) { s->select &= 0xf0; /* clear head */ /* put signature */ s->nsector = 1; s->sector = 1; if (s->drive_kind == IDE_CD) { s->lcyl = 0x14; s->hcyl = 0xeb; } else if (s->bs) { s->lcyl = 0; s->hcyl = 0; } else ...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void ide_set_signature(IDEState *s) { s->select &= 0xf0; s->nsector = 1; s->sector = 1; if (s->drive_kind == IDE_CD) { s->lcyl = 0x14; s->hcyl = 0xeb; } else if (s->bs) { s->lcyl = 0; s->hcyl = 0; } else { s->lcyl = 0xff; ...
{ "code": [], "line_no": [] }
static void FUNC_0(IDEState *VAR_0) { VAR_0->select &= 0xf0; VAR_0->nsector = 1; VAR_0->sector = 1; if (VAR_0->drive_kind == IDE_CD) { VAR_0->lcyl = 0x14; VAR_0->hcyl = 0xeb; } else if (VAR_0->bs) { VAR_0->lcyl = 0; VAR_0->hcyl = 0; } else { ...
[ "static void FUNC_0(IDEState *VAR_0)\n{", "VAR_0->select &= 0xf0;", "VAR_0->nsector = 1;", "VAR_0->sector = 1;", "if (VAR_0->drive_kind == IDE_CD) {", "VAR_0->lcyl = 0x14;", "VAR_0->hcyl = 0xeb;", "} else if (VAR_0->bs) {", "VAR_0->lcyl = 0;", "VAR_0->hcyl = 0;", "} else {", "VAR_0->lcyl = 0xf...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
45
void isa_mmio_init(target_phys_addr_t base, target_phys_addr_t size) { MemoryRegion *mr = g_malloc(sizeof(*mr)); isa_mmio_setup(mr, size); memory_region_add_subregion(get_system_memory(), base, mr); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
void isa_mmio_init(target_phys_addr_t base, target_phys_addr_t size) { MemoryRegion *mr = g_malloc(sizeof(*mr)); isa_mmio_setup(mr, size); memory_region_add_subregion(get_system_memory(), base, mr); }
{ "code": [], "line_no": [] }
void FUNC_0(target_phys_addr_t VAR_0, target_phys_addr_t VAR_1) { MemoryRegion *mr = g_malloc(sizeof(*mr)); isa_mmio_setup(mr, VAR_1); memory_region_add_subregion(get_system_memory(), VAR_0, mr); }
[ "void FUNC_0(target_phys_addr_t VAR_0, target_phys_addr_t VAR_1)\n{", "MemoryRegion *mr = g_malloc(sizeof(*mr));", "isa_mmio_setup(mr, VAR_1);", "memory_region_add_subregion(get_system_memory(), VAR_0, mr);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
46
static int find_allocation(BlockDriverState *bs, off_t start, off_t *data, off_t *hole) { BDRVGlusterState *s = bs->opaque; off_t offs; if (!s->supports_seek_data) { return -ENOTSUP; } /* * SEEK_DATA cases: * D1. offs == start: start is in d...
false
qemu
d9b789745b88df367674e45c55df29e9c7de8d8a
static int find_allocation(BlockDriverState *bs, off_t start, off_t *data, off_t *hole) { BDRVGlusterState *s = bs->opaque; off_t offs; if (!s->supports_seek_data) { return -ENOTSUP; } offs = glfs_lseek(s->fd, start, SEEK_DATA)...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, off_t VAR_1, off_t *VAR_2, off_t *VAR_3) { BDRVGlusterState *s = VAR_0->opaque; off_t offs; if (!s->supports_seek_data) { return -ENOTSUP; } offs = glfs_lseek(s->fd, VAR_1, SEEK_DATA);...
[ "static int FUNC_0(BlockDriverState *VAR_0, off_t VAR_1,\noff_t *VAR_2, off_t *VAR_3)\n{", "BDRVGlusterState *s = VAR_0->opaque;", "off_t offs;", "if (!s->supports_seek_data) {", "return -ENOTSUP;", "}", "offs = glfs_lseek(s->fd, VAR_1, SEEK_DATA);", "if (offs < 0) {", "return -errno;", "}", "as...
[ 0, 0, 0, 0, 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 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ], [ 107 ], [ 109 ], [ 111 ], ...
47
static void test_validate_struct_nested(TestInputVisitorData *data, const void *unused) { UserDefTwo *udp = NULL; Visitor *v; v = validate_test_init(data, "{ 'string0': 'string0', " "'dict1': { 'string1': 'string1', " ...
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void test_validate_struct_nested(TestInputVisitorData *data, const void *unused) { UserDefTwo *udp = NULL; Visitor *v; v = validate_test_init(data, "{ 'string0': 'string0', " "'dict1': { 'string1': 'string1', " ...
{ "code": [], "line_no": [] }
static void FUNC_0(TestInputVisitorData *VAR_0, const void *VAR_1) { UserDefTwo *udp = NULL; Visitor *v; v = validate_test_init(VAR_0, "{ 'string0': 'string0', " "'dict1': { 'string1': 'string1', " "'dict...
[ "static void FUNC_0(TestInputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "UserDefTwo *udp = NULL;", "Visitor *v;", "v = validate_test_init(VAR_0, \"{ 'string0': 'string0', \"", "\"'dict1': { 'string1': 'string1', \"", "\"'dict2': { 'userdef': { 'integer': 42, \"", "\"'string': 'string' }, 'string': 'st...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ] ]
48
void v9fs_device_unrealize_common(V9fsState *s, Error **errp) { g_free(s->ctx.fs_root); g_free(s->tag); }
false
qemu
4774718e5c194026ba5ee7a28d9be49be3080e42
void v9fs_device_unrealize_common(V9fsState *s, Error **errp) { g_free(s->ctx.fs_root); g_free(s->tag); }
{ "code": [], "line_no": [] }
void FUNC_0(V9fsState *VAR_0, Error **VAR_1) { g_free(VAR_0->ctx.fs_root); g_free(VAR_0->tag); }
[ "void FUNC_0(V9fsState *VAR_0, Error **VAR_1)\n{", "g_free(VAR_0->ctx.fs_root);", "g_free(VAR_0->tag);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
49
static int copy_moof(AVFormatContext *s, const char* infile, const char *outfile, int64_t size) { AVIOContext *in, *out; int ret = 0; if ((ret = avio_open2(&in, infile, AVIO_FLAG_READ, &s->interrupt_callback, NULL)) < 0) return ret; if ((ret = avio_open2(&out, outfile, AVIO_FLAG_WRITE, &s-...
false
FFmpeg
9f61abc8111c7c43f49ca012e957a108b9cc7610
static int copy_moof(AVFormatContext *s, const char* infile, const char *outfile, int64_t size) { AVIOContext *in, *out; int ret = 0; if ((ret = avio_open2(&in, infile, AVIO_FLAG_READ, &s->interrupt_callback, NULL)) < 0) return ret; if ((ret = avio_open2(&out, outfile, AVIO_FLAG_WRITE, &s-...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, const char* VAR_1, const char *VAR_2, int64_t VAR_3) { AVIOContext *in, *out; int VAR_4 = 0; if ((VAR_4 = avio_open2(&in, VAR_1, AVIO_FLAG_READ, &VAR_0->interrupt_callback, NULL)) < 0) return VAR_4; if ((VAR_4 = avio_open2(&out, VAR_2, AVIO_FLAG_WR...
[ "static int FUNC_0(AVFormatContext *VAR_0, const char* VAR_1, const char *VAR_2, int64_t VAR_3)\n{", "AVIOContext *in, *out;", "int VAR_4 = 0;", "if ((VAR_4 = avio_open2(&in, VAR_1, AVIO_FLAG_READ, &VAR_0->interrupt_callback, NULL)) < 0)\nreturn VAR_4;", "if ((VAR_4 = avio_open2(&out, VAR_2, AVIO_FLAG_WRITE...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [...
50
static int get_uint64_as_uint32(QEMUFile *f, void *pv, size_t size, VMStateField *field) { uint64_t *v = pv; *v = qemu_get_be32(f); return 0; }
false
qemu
08b277ac46da8b02e50cec455eca7cb2d12ffcf0
static int get_uint64_as_uint32(QEMUFile *f, void *pv, size_t size, VMStateField *field) { uint64_t *v = pv; *v = qemu_get_be32(f); return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2, VMStateField *VAR_3) { uint64_t *v = VAR_1; *v = qemu_get_be32(VAR_0); return 0; }
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1, size_t VAR_2,\nVMStateField *VAR_3)\n{", "uint64_t *v = VAR_1;", "*v = qemu_get_be32(VAR_0);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
52
void acpi_memory_plug_cb(HotplugHandler *hotplug_dev, MemHotplugState *mem_st, DeviceState *dev, Error **errp) { MemStatus *mdev; DeviceClass *dc = DEVICE_GET_CLASS(dev); if (!dc->hotpluggable) { return; } mdev = acpi_memory_slot_status(mem_st, dev, errp)...
false
qemu
b097cc52fc9126bd1a71dae8302b8536d28104dd
void acpi_memory_plug_cb(HotplugHandler *hotplug_dev, MemHotplugState *mem_st, DeviceState *dev, Error **errp) { MemStatus *mdev; DeviceClass *dc = DEVICE_GET_CLASS(dev); if (!dc->hotpluggable) { return; } mdev = acpi_memory_slot_status(mem_st, dev, errp)...
{ "code": [], "line_no": [] }
void FUNC_0(HotplugHandler *VAR_0, MemHotplugState *VAR_1, DeviceState *VAR_2, Error **VAR_3) { MemStatus *mdev; DeviceClass *dc = DEVICE_GET_CLASS(VAR_2); if (!dc->hotpluggable) { return; } mdev = acpi_memory_slot_status(VAR_1, VAR_2, VAR_3); if (!m...
[ "void FUNC_0(HotplugHandler *VAR_0, MemHotplugState *VAR_1,\nDeviceState *VAR_2, Error **VAR_3)\n{", "MemStatus *mdev;", "DeviceClass *dc = DEVICE_GET_CLASS(VAR_2);", "if (!dc->hotpluggable) {", "return;", "}", "mdev = acpi_memory_slot_status(VAR_1, VAR_2, VAR_3);", "if (!mdev) {", "return;", "}",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
53
uint8_t *xen_map_cache(hwaddr phys_addr, hwaddr size, uint8_t lock) { MapCacheEntry *entry, *pentry = NULL; hwaddr address_index; hwaddr address_offset; hwaddr cache_size = size; hwaddr test_bit_size; bool translated = false; tryagain: address_index = phys...
false
qemu
86a6a9bf551ffa183880480b37c5836d3916687a
uint8_t *xen_map_cache(hwaddr phys_addr, hwaddr size, uint8_t lock) { MapCacheEntry *entry, *pentry = NULL; hwaddr address_index; hwaddr address_offset; hwaddr cache_size = size; hwaddr test_bit_size; bool translated = false; tryagain: address_index = phys...
{ "code": [], "line_no": [] }
uint8_t *FUNC_0(hwaddr phys_addr, hwaddr size, uint8_t lock) { MapCacheEntry *entry, *pentry = NULL; hwaddr address_index; hwaddr address_offset; hwaddr cache_size = size; hwaddr test_bit_size; bool translated = false; tryagain: address_index = phys_addr >...
[ "uint8_t *FUNC_0(hwaddr phys_addr, hwaddr size,\nuint8_t lock)\n{", "MapCacheEntry *entry, *pentry = NULL;", "hwaddr address_index;", "hwaddr address_offset;", "hwaddr cache_size = size;", "hwaddr test_bit_size;", "bool translated = false;", "tryagain:\naddress_index = phys_addr >> MCACHE_BUCKET_SHIF...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 29 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55,...
54
static void usb_hid_changed(HIDState *hs) { USBHIDState *us = container_of(hs, USBHIDState, hid); us->changed = 1; if (us->datain) { us->datain(us->datain_opaque); } usb_wakeup(&us->dev); }
false
qemu
38931fa8cfb074a08ce65fd1982bd4a5bef9d6fb
static void usb_hid_changed(HIDState *hs) { USBHIDState *us = container_of(hs, USBHIDState, hid); us->changed = 1; if (us->datain) { us->datain(us->datain_opaque); } usb_wakeup(&us->dev); }
{ "code": [], "line_no": [] }
static void FUNC_0(HIDState *VAR_0) { USBHIDState *us = container_of(VAR_0, USBHIDState, hid); us->changed = 1; if (us->datain) { us->datain(us->datain_opaque); } usb_wakeup(&us->dev); }
[ "static void FUNC_0(HIDState *VAR_0)\n{", "USBHIDState *us = container_of(VAR_0, USBHIDState, hid);", "us->changed = 1;", "if (us->datain) {", "us->datain(us->datain_opaque);", "}", "usb_wakeup(&us->dev);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
55
static int nbd_errno_to_system_errno(int err) { switch (err) { case NBD_SUCCESS: return 0; case NBD_EPERM: return EPERM; case NBD_EIO: return EIO; case NBD_ENOMEM: return ENOMEM; case NBD_ENOSPC: return ENOSPC; default: TRACE("Squ...
false
qemu
8b34a9dbc3f2c0afe3450cb20b94cc30f450e77b
static int nbd_errno_to_system_errno(int err) { switch (err) { case NBD_SUCCESS: return 0; case NBD_EPERM: return EPERM; case NBD_EIO: return EIO; case NBD_ENOMEM: return ENOMEM; case NBD_ENOSPC: return ENOSPC; default: TRACE("Squ...
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0) { switch (VAR_0) { case NBD_SUCCESS: return 0; case NBD_EPERM: return EPERM; case NBD_EIO: return EIO; case NBD_ENOMEM: return ENOMEM; case NBD_ENOSPC: return ENOSPC; default: TRACE("Squashing unexpect...
[ "static int FUNC_0(int VAR_0)\n{", "switch (VAR_0) {", "case NBD_SUCCESS:\nreturn 0;", "case NBD_EPERM:\nreturn EPERM;", "case NBD_EIO:\nreturn EIO;", "case NBD_ENOMEM:\nreturn ENOMEM;", "case NBD_ENOSPC:\nreturn ENOSPC;", "default:\nTRACE(\"Squashing unexpected error %d to EINVAL\", VAR_0);", "case...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 13 ], [ 15, 17 ], [ 19, 21 ], [ 23, 25 ], [ 27, 29 ], [ 33, 35 ], [ 37 ], [ 39 ] ]
56
static int calculate_refcounts(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix, uint16_t **refcount_table, int64_t *nb_clusters) { BDRVQcowState *s = bs->opaque; int64_t i; QCowSnapshot *sn; int ret; *refcount_tabl...
false
qemu
641bb63cd6b003ab0ca2e312a014449037d71647
static int calculate_refcounts(BlockDriverState *bs, BdrvCheckResult *res, BdrvCheckMode fix, uint16_t **refcount_table, int64_t *nb_clusters) { BDRVQcowState *s = bs->opaque; int64_t i; QCowSnapshot *sn; int ret; *refcount_tabl...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1, BdrvCheckMode VAR_2, uint16_t **VAR_3, int64_t *VAR_4) { BDRVQcowState *s = VAR_0->opaque; int64_t i; QCowSnapshot *sn; int VAR_5; *VAR_3 = g_try_new0(uint16_t, ...
[ "static int FUNC_0(BlockDriverState *VAR_0, BdrvCheckResult *VAR_1,\nBdrvCheckMode VAR_2, uint16_t **VAR_3,\nint64_t *VAR_4)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int64_t i;", "QCowSnapshot *sn;", "int VAR_5;", "*VAR_3 = g_try_new0(uint16_t, *VAR_4);", "if (*VAR_4 && *VAR_3 == NULL) {", "VAR_1->c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55 ...
57
void aio_context_setup(AioContext *ctx) { }
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
void aio_context_setup(AioContext *ctx) { }
{ "code": [], "line_no": [] }
void FUNC_0(AioContext *VAR_0) { }
[ "void FUNC_0(AioContext *VAR_0)\n{", "}" ]
[ 0, 0 ]
[ [ 1, 3 ], [ 5 ] ]
58
static uint64_t timer_read(void *opaque, target_phys_addr_t addr, unsigned size) { LM32TimerState *s = opaque; uint32_t r = 0; addr >>= 2; switch (addr) { case R_SR: case R_CR: case R_PERIOD: r = s->regs[addr]; break; case R_SNAPSHOT: r = (uint32_t)p...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t timer_read(void *opaque, target_phys_addr_t addr, unsigned size) { LM32TimerState *s = opaque; uint32_t r = 0; addr >>= 2; switch (addr) { case R_SR: case R_CR: case R_PERIOD: r = s->regs[addr]; break; case R_SNAPSHOT: r = (uint32_t)p...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size) { LM32TimerState *s = opaque; uint32_t r = 0; addr >>= 2; switch (addr) { case R_SR: case R_CR: case R_PERIOD: r = s->regs[addr]; break; case R_SNAPSHOT: r = (uint32_t)ptime...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t addr, unsigned size)\n{", "LM32TimerState *s = opaque;", "uint32_t r = 0;", "addr >>= 2;", "switch (addr) {", "case R_SR:\ncase R_CR:\ncase R_PERIOD:\nr = s->regs[addr];", "break;", "case R_SNAPSHOT:\nr = (uint32_t)ptimer_get_count(s->ptimer);",...
[ 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 ], [ 43 ], [ 45 ], [ 47 ] ]
59
void virtio_scsi_handle_cmd_req_submit(VirtIOSCSI *s, VirtIOSCSIReq *req) { SCSIRequest *sreq = req->sreq; if (scsi_req_enqueue(sreq)) { scsi_req_continue(sreq); } bdrv_io_unplug(sreq->dev->conf.bs); scsi_req_unref(sreq); }
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
void virtio_scsi_handle_cmd_req_submit(VirtIOSCSI *s, VirtIOSCSIReq *req) { SCSIRequest *sreq = req->sreq; if (scsi_req_enqueue(sreq)) { scsi_req_continue(sreq); } bdrv_io_unplug(sreq->dev->conf.bs); scsi_req_unref(sreq); }
{ "code": [], "line_no": [] }
void FUNC_0(VirtIOSCSI *VAR_0, VirtIOSCSIReq *VAR_1) { SCSIRequest *sreq = VAR_1->sreq; if (scsi_req_enqueue(sreq)) { scsi_req_continue(sreq); } bdrv_io_unplug(sreq->dev->conf.bs); scsi_req_unref(sreq); }
[ "void FUNC_0(VirtIOSCSI *VAR_0, VirtIOSCSIReq *VAR_1)\n{", "SCSIRequest *sreq = VAR_1->sreq;", "if (scsi_req_enqueue(sreq)) {", "scsi_req_continue(sreq);", "}", "bdrv_io_unplug(sreq->dev->conf.bs);", "scsi_req_unref(sreq);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
61
static int truespeech_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; TSContext *c = avctx->priv_data; int i, j; short *samples = data; int consumed = 0; ...
false
FFmpeg
595cf1a1aa09f6214eed57bd9eb6493456918efe
static int truespeech_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; TSContext *c = avctx->priv_data; int i, j; short *samples = data; int consumed = 0; ...
{ "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; TSContext *c = VAR_0->priv_data; int VAR_6, VAR_7; short *VAR_8 = VAR_1; int VAR_9 = 0; int16_t out_b...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "TSContext *c = VAR_0->priv_data;", "int VAR_6, VAR_7;", "short *VAR_8 = VAR_1;", "int VAR_9 = 0;", "int16_t out_buf[240];", "int VAR_10;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
63
static int cirrus_bitblt_common_patterncopy(CirrusVGAState * s, const uint8_t * src) { uint8_t *dst; dst = s->vga.vram_ptr + (s->cirrus_blt_dstaddr & s->cirrus_addr_mask); if (blit_is_unsafe(s, false)) return 0; (*s->cirrus_rop) (s, dst, src, s->cirru...
false
qemu
5858dd1801883309bdd208d72ddb81c4e9fee30c
static int cirrus_bitblt_common_patterncopy(CirrusVGAState * s, const uint8_t * src) { uint8_t *dst; dst = s->vga.vram_ptr + (s->cirrus_blt_dstaddr & s->cirrus_addr_mask); if (blit_is_unsafe(s, false)) return 0; (*s->cirrus_rop) (s, dst, src, s->cirru...
{ "code": [], "line_no": [] }
static int FUNC_0(CirrusVGAState * VAR_0, const uint8_t * VAR_1) { uint8_t *dst; dst = VAR_0->vga.vram_ptr + (VAR_0->cirrus_blt_dstaddr & VAR_0->cirrus_addr_mask); if (blit_is_unsafe(VAR_0, false)) return 0; (*VAR_0->cirrus_rop) (VAR_0, dst, VAR_1, VA...
[ "static int FUNC_0(CirrusVGAState * VAR_0,\nconst uint8_t * VAR_1)\n{", "uint8_t *dst;", "dst = VAR_0->vga.vram_ptr + (VAR_0->cirrus_blt_dstaddr & VAR_0->cirrus_addr_mask);", "if (blit_is_unsafe(VAR_0, false))\nreturn 0;", "(*VAR_0->cirrus_rop) (VAR_0, dst, VAR_1,\nVAR_0->cirrus_blt_dstpitch, 0,\nVAR_0->cir...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15, 17 ], [ 21, 23, 25 ], [ 27, 29, 31 ], [ 33 ], [ 35 ] ]
64
static int qcow2_read_extensions(BlockDriverState *bs, uint64_t start_offset, uint64_t end_offset, void **p_feature_table, int flags, Error **errp) { BDRVQcow2State *s = bs->opaque; QCowExtension ext; uint64_t offset; int ret; #...
false
qemu
88ddffae8fc1e30cc907c2dbb989b7eba9e62319
static int qcow2_read_extensions(BlockDriverState *bs, uint64_t start_offset, uint64_t end_offset, void **p_feature_table, int flags, Error **errp) { BDRVQcow2State *s = bs->opaque; QCowExtension ext; uint64_t offset; int ret; #...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t VAR_2, void **VAR_3, int VAR_4, Error **VAR_5) { BDRVQcow2State *s = VAR_0->opaque; QCowExtension ext; uint64_t offset; int VAR_6; #ifdef DEBUG_EXT printf(...
[ "static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nuint64_t VAR_2, void **VAR_3,\nint VAR_4, Error **VAR_5)\n{", "BDRVQcow2State *s = VAR_0->opaque;", "QCowExtension ext;", "uint64_t offset;", "int VAR_6;", "#ifdef DEBUG_EXT\nprintf(\"FUNC_0: start=%ld end=%ld\\n\", VAR_1, VAR_2);", "#endif\no...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31, 35, 37 ], [ 41 ], [ 43, 47 ], [ 49 ], [ 51, 53 ], [ 55 ], [ 57 ], [ 59 ...
65
static void listener_add_address_space(MemoryListener *listener, AddressSpace *as) { FlatView *view; FlatRange *fr; if (listener->address_space_filter && listener->address_space_filter != as) { return; } if (global_dirty_log) { ...
false
qemu
856d72454f03aea26fd61c728762ef9cd1d71512
static void listener_add_address_space(MemoryListener *listener, AddressSpace *as) { FlatView *view; FlatRange *fr; if (listener->address_space_filter && listener->address_space_filter != as) { return; } if (global_dirty_log) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(MemoryListener *VAR_0, AddressSpace *VAR_1) { FlatView *view; FlatRange *fr; if (VAR_0->address_space_filter && VAR_0->address_space_filter != VAR_1) { return; } if (global_dirty_log) { if (VAR_0->log_glo...
[ "static void FUNC_0(MemoryListener *VAR_0,\nAddressSpace *VAR_1)\n{", "FlatView *view;", "FlatRange *fr;", "if (VAR_0->address_space_filter\n&& VAR_0->address_space_filter != VAR_1) {", "return;", "}", "if (global_dirty_log) {", "if (VAR_0->log_global_start) {", "VAR_0->log_global_start(VAR_0);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43, 45, 47, 49, 51, 53 ], [ 55 ...
66
long do_sigreturn(CPUM68KState *env) { struct target_sigframe *frame; abi_ulong frame_addr = env->aregs[7] - 4; target_sigset_t target_set; sigset_t set; int d0, i; if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) goto badframe; /* set blocked signals */ ...
false
qemu
1c275925bfbbc2de84a8f0e09d1dd70bbefb6da3
long do_sigreturn(CPUM68KState *env) { struct target_sigframe *frame; abi_ulong frame_addr = env->aregs[7] - 4; target_sigset_t target_set; sigset_t set; int d0, i; if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) goto badframe; if (__get_user(target_set...
{ "code": [], "line_no": [] }
long FUNC_0(CPUM68KState *VAR_0) { struct target_sigframe *VAR_1; abi_ulong frame_addr = VAR_0->aregs[7] - 4; target_sigset_t target_set; sigset_t set; int VAR_2, VAR_3; if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1)) goto badframe; if (__get_user(targe...
[ "long FUNC_0(CPUM68KState *VAR_0)\n{", "struct target_sigframe *VAR_1;", "abi_ulong frame_addr = VAR_0->aregs[7] - 4;", "target_sigset_t target_set;", "sigset_t set;", "int VAR_2, VAR_3;", "if (!lock_user_struct(VERIFY_READ, VAR_1, frame_addr, 1))\ngoto badframe;", "if (__get_user(target_set.sig[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 ], [ 27, 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45 ], [ 53, 55 ], [ 59 ], [ 61 ], [ 65, 67 ], [...
67
static int tcg_match_cmpi(TCGType type, tcg_target_long val) { if (facilities & FACILITY_EXT_IMM) { /* The COMPARE IMMEDIATE instruction is available. */ if (type == TCG_TYPE_I32) { /* We have a 32-bit immediate and can compare against anything. */ return 1; ...
false
qemu
b2c98d9d392c87c9b9e975d30f79924719d9cbbe
static int tcg_match_cmpi(TCGType type, tcg_target_long val) { if (facilities & FACILITY_EXT_IMM) { if (type == TCG_TYPE_I32) { return 1; } else { return val >= 0 && val <= 0x7fffffff; } ...
{ "code": [], "line_no": [] }
static int FUNC_0(TCGType VAR_0, tcg_target_long VAR_1) { if (facilities & FACILITY_EXT_IMM) { if (VAR_0 == TCG_TYPE_I32) { return 1; } else { return VAR_1 >= 0 && VAR_1 <= 0x7fffffff; } ...
[ "static int FUNC_0(TCGType VAR_0, tcg_target_long VAR_1)\n{", "if (facilities & FACILITY_EXT_IMM) {", "if (VAR_0 == TCG_TYPE_I32) {", "return 1;", "} else {", "return VAR_1 >= 0 && VAR_1 <= 0x7fffffff;", "}", "} else {", "return VAR_1 == 0;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ] ]
68
static inline bool vhost_needs_vring_endian(VirtIODevice *vdev) { if (virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1)) { return false; } #ifdef TARGET_IS_BIENDIAN #ifdef HOST_WORDS_BIGENDIAN return !virtio_is_big_endian(vdev); #else return virtio_is_big_endian(vdev); #endif #else ...
false
qemu
46f70ff148ae01e2dc96e64c393e295a0092555d
static inline bool vhost_needs_vring_endian(VirtIODevice *vdev) { if (virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1)) { return false; } #ifdef TARGET_IS_BIENDIAN #ifdef HOST_WORDS_BIGENDIAN return !virtio_is_big_endian(vdev); #else return virtio_is_big_endian(vdev); #endif #else ...
{ "code": [], "line_no": [] }
static inline bool FUNC_0(VirtIODevice *vdev) { if (virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1)) { return false; } #ifdef TARGET_IS_BIENDIAN #ifdef HOST_WORDS_BIGENDIAN return !virtio_is_big_endian(vdev); #else return virtio_is_big_endian(vdev); #endif #else return false; ...
[ "static inline bool FUNC_0(VirtIODevice *vdev)\n{", "if (virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1)) {", "return false;", "}", "#ifdef TARGET_IS_BIENDIAN\n#ifdef HOST_WORDS_BIGENDIAN\nreturn !virtio_is_big_endian(vdev);", "#else\nreturn virtio_is_big_endian(vdev);", "#endif\n#else\nreturn false;"...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13, 15 ], [ 17, 19 ], [ 21, 23, 25 ], [ 27, 29 ] ]
69
int qxl_render_cursor(PCIQXLDevice *qxl, QXLCommandExt *ext) { QXLCursorCmd *cmd = qxl_phys2virt(qxl, ext->cmd.data, ext->group_id); QXLCursor *cursor; QEMUCursor *c; if (!cmd) { return 1; } if (!dpy_cursor_define_supported(qxl->vga.con)) { return 0; } if...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
int qxl_render_cursor(PCIQXLDevice *qxl, QXLCommandExt *ext) { QXLCursorCmd *cmd = qxl_phys2virt(qxl, ext->cmd.data, ext->group_id); QXLCursor *cursor; QEMUCursor *c; if (!cmd) { return 1; } if (!dpy_cursor_define_supported(qxl->vga.con)) { return 0; } if...
{ "code": [], "line_no": [] }
int FUNC_0(PCIQXLDevice *VAR_0, QXLCommandExt *VAR_1) { QXLCursorCmd *cmd = qxl_phys2virt(VAR_0, VAR_1->cmd.data, VAR_1->group_id); QXLCursor *cursor; QEMUCursor *c; if (!cmd) { return 1; } if (!dpy_cursor_define_supported(VAR_0->vga.con)) { return 0; } i...
[ "int FUNC_0(PCIQXLDevice *VAR_0, QXLCommandExt *VAR_1)\n{", "QXLCursorCmd *cmd = qxl_phys2virt(VAR_0, VAR_1->cmd.data, VAR_1->group_id);", "QXLCursor *cursor;", "QEMUCursor *c;", "if (!cmd) {", "return 1;", "}", "if (!dpy_cursor_define_supported(VAR_0->vga.con)) {", "return 0;", "}", "if (VAR_0-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [...
72
static int decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile) { int compno, reslevelno, bandno; int x, y, *src[4]; uint8_t *line; Jpeg2000T1Context t1; /* Loop on tile components */ for (compno = 0; compno < s->ncomponents; compno++) { Jpeg2000Component *comp = tile...
false
FFmpeg
83fd377c94d8fbffdb3e69fb3efe1976ff897a88
static int decode_tile(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile) { int compno, reslevelno, bandno; int x, y, *src[4]; uint8_t *line; Jpeg2000T1Context t1; for (compno = 0; compno < s->ncomponents; compno++) { Jpeg2000Component *comp = tile->comp + compno; Jpe...
{ "code": [], "line_no": [] }
static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000Tile *VAR_1) { int VAR_2, VAR_3, VAR_4; int VAR_5, VAR_6, *VAR_7[4]; uint8_t *line; Jpeg2000T1Context t1; for (VAR_2 = 0; VAR_2 < VAR_0->ncomponents; VAR_2++) { Jpeg2000Component *comp = VAR_1->comp + VAR_2; ...
[ "static int FUNC_0(Jpeg2000DecoderContext *VAR_0, Jpeg2000Tile *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "int VAR_5, VAR_6, *VAR_7[4];", "uint8_t *line;", "Jpeg2000T1Context t1;", "for (VAR_2 = 0; VAR_2 < VAR_0->ncomponents; VAR_2++) {", "Jpeg2000Component *comp = VAR_1->comp + VAR_2;", "Jpeg2000Co...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47, 49 ], [ 53 ], [ 57 ], [ 59 ], [...
73
static void omap_pwl_init(target_phys_addr_t base, struct omap_mpu_state_s *s, omap_clk clk) { int iomemtype; s->pwl.base = base; omap_pwl_reset(s); iomemtype = cpu_register_io_memory(0, omap_pwl_readfn, omap_pwl_writefn, s); cpu_register_physical_memo...
false
qemu
b854bc196f5c4b4e3299c0b0ee63cf828ece9e77
static void omap_pwl_init(target_phys_addr_t base, struct omap_mpu_state_s *s, omap_clk clk) { int iomemtype; s->pwl.base = base; omap_pwl_reset(s); iomemtype = cpu_register_io_memory(0, omap_pwl_readfn, omap_pwl_writefn, s); cpu_register_physical_memo...
{ "code": [], "line_no": [] }
static void FUNC_0(target_phys_addr_t VAR_0, struct omap_mpu_state_s *VAR_1, omap_clk VAR_2) { int VAR_3; VAR_1->pwl.VAR_0 = VAR_0; omap_pwl_reset(VAR_1); VAR_3 = cpu_register_io_memory(0, omap_pwl_readfn, omap_pwl_writefn, VAR_1); cpu_register_physica...
[ "static void FUNC_0(target_phys_addr_t VAR_0, struct omap_mpu_state_s *VAR_1,\nomap_clk VAR_2)\n{", "int VAR_3;", "VAR_1->pwl.VAR_0 = VAR_0;", "omap_pwl_reset(VAR_1);", "VAR_3 = cpu_register_io_memory(0, omap_pwl_readfn,\nomap_pwl_writefn, VAR_1);", "cpu_register_physical_memory(VAR_1->pwl.VAR_0, 0x800, V...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 27 ] ]
74
static void virt_acpi_build_update(void *build_opaque) { AcpiBuildState *build_state = build_opaque; AcpiBuildTables tables; /* No state to update or already patched? Nothing to do. */ if (!build_state || build_state->patched) { return; } build_state->patched = true; acp...
false
qemu
0e9b9edae7bebfd31fdbead4ccbbce03876a7edd
static void virt_acpi_build_update(void *build_opaque) { AcpiBuildState *build_state = build_opaque; AcpiBuildTables tables; if (!build_state || build_state->patched) { return; } build_state->patched = true; acpi_build_tables_init(&tables); virt_acpi_build(build_...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { AcpiBuildState *build_state = VAR_0; AcpiBuildTables tables; if (!build_state || build_state->patched) { return; } build_state->patched = true; acpi_build_tables_init(&tables); virt_acpi_build(build_state->guest_info, &tables); ...
[ "static void FUNC_0(void *VAR_0)\n{", "AcpiBuildState *build_state = VAR_0;", "AcpiBuildTables tables;", "if (!build_state || build_state->patched) {", "return;", "}", "build_state->patched = true;", "acpi_build_tables_init(&tables);", "virt_acpi_build(build_state->guest_info, &tables);", "acpi_ra...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ] ]
76
static void uart_rx_reset(UartState *s) { s->rx_wpos = 0; s->rx_count = 0; qemu_chr_accept_input(s->chr); s->r[R_SR] |= UART_SR_INTR_REMPTY; s->r[R_SR] &= ~UART_SR_INTR_RFUL; }
false
qemu
9121d02cb33c96b444a3973579f5edc119597e81
static void uart_rx_reset(UartState *s) { s->rx_wpos = 0; s->rx_count = 0; qemu_chr_accept_input(s->chr); s->r[R_SR] |= UART_SR_INTR_REMPTY; s->r[R_SR] &= ~UART_SR_INTR_RFUL; }
{ "code": [], "line_no": [] }
static void FUNC_0(UartState *VAR_0) { VAR_0->rx_wpos = 0; VAR_0->rx_count = 0; qemu_chr_accept_input(VAR_0->chr); VAR_0->r[R_SR] |= UART_SR_INTR_REMPTY; VAR_0->r[R_SR] &= ~UART_SR_INTR_RFUL; }
[ "static void FUNC_0(UartState *VAR_0)\n{", "VAR_0->rx_wpos = 0;", "VAR_0->rx_count = 0;", "qemu_chr_accept_input(VAR_0->chr);", "VAR_0->r[R_SR] |= UART_SR_INTR_REMPTY;", "VAR_0->r[R_SR] &= ~UART_SR_INTR_RFUL;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ] ]
77
static int rndis_set_response(USBNetState *s, rndis_set_msg_type *buf, unsigned int length) { rndis_set_cmplt_type *resp = rndis_queue_response(s, sizeof(rndis_set_cmplt_type)); uint32_t bufoffs, buflen; int ret; if (!resp) return USB_RET_STALL; bufof...
true
qemu
fe3c546c5ff2a6210f9a4d8561cc64051ca8603e
static int rndis_set_response(USBNetState *s, rndis_set_msg_type *buf, unsigned int length) { rndis_set_cmplt_type *resp = rndis_queue_response(s, sizeof(rndis_set_cmplt_type)); uint32_t bufoffs, buflen; int ret; if (!resp) return USB_RET_STALL; bufof...
{ "code": [ " if (bufoffs + buflen > length)", " if (bufoffs + buflen > length)" ], "line_no": [ 27, 27 ] }
static int FUNC_0(USBNetState *VAR_0, rndis_set_msg_type *VAR_1, unsigned int VAR_2) { rndis_set_cmplt_type *resp = rndis_queue_response(VAR_0, sizeof(rndis_set_cmplt_type)); uint32_t bufoffs, buflen; int VAR_3; if (!resp) return USB_RET_STALL; bufoff...
[ "static int FUNC_0(USBNetState *VAR_0,\nrndis_set_msg_type *VAR_1, unsigned int VAR_2)\n{", "rndis_set_cmplt_type *resp =\nrndis_queue_response(VAR_0, sizeof(rndis_set_cmplt_type));", "uint32_t bufoffs, buflen;", "int VAR_3;", "if (!resp)\nreturn USB_RET_STALL;", "bufoffs = le32_to_cpu(VAR_1->InformationB...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
78
SwsContext *sws_alloc_context(void) { SwsContext *c = av_mallocz(sizeof(SwsContext)); c->av_class = &sws_context_class; av_opt_set_defaults(c); return c; }
true
FFmpeg
f73f76fd202b310e8e1d0215b2e0cf038cd18c4a
SwsContext *sws_alloc_context(void) { SwsContext *c = av_mallocz(sizeof(SwsContext)); c->av_class = &sws_context_class; av_opt_set_defaults(c); return c; }
{ "code": [ " c->av_class = &sws_context_class;", " av_opt_set_defaults(c);" ], "line_no": [ 9, 11 ] }
SwsContext *FUNC_0(void) { SwsContext *c = av_mallocz(sizeof(SwsContext)); c->av_class = &sws_context_class; av_opt_set_defaults(c); return c; }
[ "SwsContext *FUNC_0(void)\n{", "SwsContext *c = av_mallocz(sizeof(SwsContext));", "c->av_class = &sws_context_class;", "av_opt_set_defaults(c);", "return c;", "}" ]
[ 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ] ]
79
static i2c_interface *musicpal_audio_init(qemu_irq irq) { AudioState *audio; musicpal_audio_state *s; i2c_interface *i2c; int iomemtype; audio = AUD_init(); if (!audio) { AUD_log(audio_name, "No audio state\n"); return NULL; } s = qemu_mallocz(sizeof(musicp...
true
qemu
0d9acba8fddbf970c7353083e6a60b47017ce3e4
static i2c_interface *musicpal_audio_init(qemu_irq irq) { AudioState *audio; musicpal_audio_state *s; i2c_interface *i2c; int iomemtype; audio = AUD_init(); if (!audio) { AUD_log(audio_name, "No audio state\n"); return NULL; } s = qemu_mallocz(sizeof(musicp...
{ "code": [ " return NULL;", " return NULL;", " if (!audio) {", " AUD_log(audio_name, \"No audio state\\n\");", " return NULL;" ], "line_no": [ 21, 21, 17, 19, 21 ] }
static i2c_interface *FUNC_0(qemu_irq irq) { AudioState *audio; musicpal_audio_state *s; i2c_interface *i2c; int VAR_0; audio = AUD_init(); if (!audio) { AUD_log(audio_name, "No audio state\n"); return NULL; } s = qemu_mallocz(sizeof(musicpal_audio_state));...
[ "static i2c_interface *FUNC_0(qemu_irq irq)\n{", "AudioState *audio;", "musicpal_audio_state *s;", "i2c_interface *i2c;", "int VAR_0;", "audio = AUD_init();", "if (!audio) {", "AUD_log(audio_name, \"No audio state\\n\");", "return NULL;", "}", "s = qemu_mallocz(sizeof(musicpal_audio_state));", ...
[ 0, 0, 0, 0, 0, 0, 1, 1, 1, 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 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
80
void bdrv_error_action(BlockDriverState *bs, BlockErrorAction action, bool is_read, int error) { assert(error >= 0); bdrv_emit_qmp_error_event(bs, QEVENT_BLOCK_IO_ERROR, action, is_read); if (action == BDRV_ACTION_STOP) { vm_stop(RUN_STATE_IO_ERROR); bdrv_iostat...
true
qemu
2bd3bce8efebe86b031beab5c0e3b9bbaec0b502
void bdrv_error_action(BlockDriverState *bs, BlockErrorAction action, bool is_read, int error) { assert(error >= 0); bdrv_emit_qmp_error_event(bs, QEVENT_BLOCK_IO_ERROR, action, is_read); if (action == BDRV_ACTION_STOP) { vm_stop(RUN_STATE_IO_ERROR); bdrv_iostat...
{ "code": [ " bdrv_emit_qmp_error_event(bs, QEVENT_BLOCK_IO_ERROR, action, is_read);", " vm_stop(RUN_STATE_IO_ERROR);" ], "line_no": [ 9, 13 ] }
void FUNC_0(BlockDriverState *VAR_0, BlockErrorAction VAR_1, bool VAR_2, int VAR_3) { assert(VAR_3 >= 0); bdrv_emit_qmp_error_event(VAR_0, QEVENT_BLOCK_IO_ERROR, VAR_1, VAR_2); if (VAR_1 == BDRV_ACTION_STOP) { vm_stop(RUN_STATE_IO_ERROR); bdrv_iostatus_set_err(V...
[ "void FUNC_0(BlockDriverState *VAR_0, BlockErrorAction VAR_1,\nbool VAR_2, int VAR_3)\n{", "assert(VAR_3 >= 0);", "bdrv_emit_qmp_error_event(VAR_0, QEVENT_BLOCK_IO_ERROR, VAR_1, VAR_2);", "if (VAR_1 == BDRV_ACTION_STOP) {", "vm_stop(RUN_STATE_IO_ERROR);", "bdrv_iostatus_set_err(VAR_0, VAR_3);", "}", "...
[ 0, 0, 1, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
81
static void ram_init(target_phys_addr_t addr, ram_addr_t RAM_size, uint64_t max_mem) { DeviceState *dev; SysBusDevice *s; RamDevice *d; /* allocate RAM */ if ((uint64_t)RAM_size > max_mem) { fprintf(stderr, "qemu: Too much memory for this machi...
true
qemu
e23a1b33b53d25510320b26d9f154e19c6c99725
static void ram_init(target_phys_addr_t addr, ram_addr_t RAM_size, uint64_t max_mem) { DeviceState *dev; SysBusDevice *s; RamDevice *d; if ((uint64_t)RAM_size > max_mem) { fprintf(stderr, "qemu: Too much memory for this machine: %d, maximum %d...
{ "code": [ " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " ...
static void FUNC_0(target_phys_addr_t VAR_0, ram_addr_t VAR_1, uint64_t VAR_2) { DeviceState *dev; SysBusDevice *s; RamDevice *d; if ((uint64_t)VAR_1 > VAR_2) { fprintf(stderr, "qemu: Too much memory for this machine: %d, maximum %d\n", ...
[ "static void FUNC_0(target_phys_addr_t VAR_0, ram_addr_t VAR_1,\nuint64_t VAR_2)\n{", "DeviceState *dev;", "SysBusDevice *s;", "RamDevice *d;", "if ((uint64_t)VAR_1 > VAR_2) {", "fprintf(stderr,\n\"qemu: Too much memory for this machine: %d, maximum %d\\n\",\n(unsigned int)(VAR_1 / (1024 * 1024)),\n(unsig...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19, 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ] ]
82
int xics_alloc_block(XICSState *icp, int src, int num, bool lsi, bool align) { int i, first = -1; ICSState *ics = &icp->ics[src]; assert(src == 0); /* * MSIMesage::data is used for storing VIRQ so * it has to be aligned to num to support multiple * MSI vectors. MSI-X is not affe...
true
qemu
a005b3ef50439b5bc6b2eb0b5bda8e8c7c2368bf
int xics_alloc_block(XICSState *icp, int src, int num, bool lsi, bool align) { int i, first = -1; ICSState *ics = &icp->ics[src]; assert(src == 0); if (align) { assert((num == 1) || (num == 2) || (num == 4) || (num == 8) || (num == 16) || (num == 32)); ...
{ "code": [ "int xics_alloc_block(XICSState *icp, int src, int num, bool lsi, bool align)" ], "line_no": [ 1 ] }
int FUNC_0(XICSState *VAR_0, int VAR_1, int VAR_2, bool VAR_3, bool VAR_4) { int VAR_5, VAR_6 = -1; ICSState *ics = &VAR_0->ics[VAR_1]; assert(VAR_1 == 0); if (VAR_4) { assert((VAR_2 == 1) || (VAR_2 == 2) || (VAR_2 == 4) || (VAR_2 == 8) || (VAR_2 == 16) ...
[ "int FUNC_0(XICSState *VAR_0, int VAR_1, int VAR_2, bool VAR_3, bool VAR_4)\n{", "int VAR_5, VAR_6 = -1;", "ICSState *ics = &VAR_0->ics[VAR_1];", "assert(VAR_1 == 0);", "if (VAR_4) {", "assert((VAR_2 == 1) || (VAR_2 == 2) || (VAR_2 == 4) ||\n(VAR_2 == 8) || (VAR_2 == 16) || (VAR_2 == 32));", "VAR_6 = ic...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [ 61 ], [ 63 ] ]
85
void object_property_get_uint16List(Object *obj, const char *name, uint16List **list, Error **errp) { StringOutputVisitor *ov; StringInputVisitor *iv; ov = string_output_visitor_new(false); object_property_get(obj, string_output_get_visitor(ov), ...
true
qemu
976620ac4018db142d82cd42bb7774f40290ce7e
void object_property_get_uint16List(Object *obj, const char *name, uint16List **list, Error **errp) { StringOutputVisitor *ov; StringInputVisitor *iv; ov = string_output_visitor_new(false); object_property_get(obj, string_output_get_visitor(ov), ...
{ "code": [ " iv = string_input_visitor_new(string_output_get_string(ov));" ], "line_no": [ 19 ] }
void FUNC_0(Object *VAR_0, const char *VAR_1, uint16List **VAR_2, Error **VAR_3) { StringOutputVisitor *ov; StringInputVisitor *iv; ov = string_output_visitor_new(false); object_property_get(VAR_0, string_output_get_visitor(ov), VAR_1,...
[ "void FUNC_0(Object *VAR_0, const char *VAR_1,\nuint16List **VAR_2, Error **VAR_3)\n{", "StringOutputVisitor *ov;", "StringInputVisitor *iv;", "ov = string_output_visitor_new(false);", "object_property_get(VAR_0, string_output_get_visitor(ov),\nVAR_1, VAR_3);", "iv = string_input_visitor_new(string_output...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ] ]
86
static int raw_create(const char *filename, QEMUOptionParameter *options) { int fd; int64_t total_size = 0; /* Read out options */ while (options && options->name) { if (!strcmp(options->name, BLOCK_OPT_SIZE)) { total_size = options->value.n / 512; } option...
true
qemu
1e37d05904e300a0bfc8e3240e24ecc83d54c2e3
static int raw_create(const char *filename, QEMUOptionParameter *options) { int fd; int64_t total_size = 0; while (options && options->name) { if (!strcmp(options->name, BLOCK_OPT_SIZE)) { total_size = options->value.n / 512; } options++; } fd ...
{ "code": [ " if (fd < 0)", " return -EIO;", " ftruncate(fd, total_size * 512);", " close(fd);", " return 0;" ], "line_no": [ 31, 33, 35, 37, 39 ] }
static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1) { int VAR_2; int64_t total_size = 0; while (VAR_1 && VAR_1->name) { if (!strcmp(VAR_1->name, BLOCK_OPT_SIZE)) { total_size = VAR_1->value.n / 512; } VAR_1++; } VAR_2 = open(VAR_0,...
[ "static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1)\n{", "int VAR_2;", "int64_t total_size = 0;", "while (VAR_1 && VAR_1->name) {", "if (!strcmp(VAR_1->name, BLOCK_OPT_SIZE)) {", "total_size = VAR_1->value.n / 512;", "}", "VAR_1++;", "}", "VAR_2 = open(VAR_0, O_WRONLY | O_CREAT | O_T...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
87
static inline void RENAME(rgb24ToUV_half)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused) { int i; assert(src1==src2); for (i=0; i<width; i++) { int r= src1[6*i + 0] + src1[6*i + 3]; int g= src1[6*i + 1] + src1[6*i + 4]; int...
true
FFmpeg
c3ab0004ae4dffc32494ae84dd15cfaa909a7884
static inline void RENAME(rgb24ToUV_half)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused) { int i; assert(src1==src2); for (i=0; i<width; i++) { int r= src1[6*i + 0] + src1[6*i + 3]; int g= src1[6*i + 1] + src1[6*i + 4]; int...
{ "code": [ "static inline void RENAME(rgb24ToUV_half)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused)" ], "line_no": [ 1 ] }
static inline void FUNC_0(rgb24ToUV_half)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused) { int VAR_0; assert(src1==src2); for (VAR_0=0; VAR_0<width; VAR_0++) { int r= src1[6*VAR_0 + 0] + src1[6*VAR_0 + 3]; int g= src1[6*VAR_0 + 1] +...
[ "static inline void FUNC_0(rgb24ToUV_half)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused)\n{", "int VAR_0;", "assert(src1==src2);", "for (VAR_0=0; VAR_0<width; VAR_0++) {", "int r= src1[6*VAR_0 + 0] + src1[6*VAR_0 + 3];", "int g= src1[6*VAR_0 + 1] + sr...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
89
uint64_t qcow2_alloc_cluster_offset(BlockDriverState *bs, uint64_t offset, int n_start, int n_end, int *num, QCowL2Meta *m) { BDRVQcowState *s = bs->opaque; int l2_index, ret; uint64_t l2_offse...
true
qemu
80ee15a6b274dfcedb0ad7db8c9e7d392210d6a1
uint64_t qcow2_alloc_cluster_offset(BlockDriverState *bs, uint64_t offset, int n_start, int n_end, int *num, QCowL2Meta *m) { BDRVQcowState *s = bs->opaque; int l2_index, ret; uint64_t l2_offse...
{ "code": [ " int nb_clusters, i = 0;" ], "line_no": [ 17 ] }
uint64_t FUNC_0(BlockDriverState *bs, uint64_t offset, int n_start, int n_end, int *num, QCowL2Meta *m) { BDRVQcowState *s = bs->opaque; int VAR_0, VAR_1; uint64_t l2_offset, *l2_table, cluster...
[ "uint64_t FUNC_0(BlockDriverState *bs,\nuint64_t offset,\nint n_start, int n_end,\nint *num, QCowL2Meta *m)\n{", "BDRVQcowState *s = bs->opaque;", "int VAR_0, VAR_1;", "uint64_t l2_offset, *l2_table, cluster_offset;", "int VAR_2, VAR_3 = 0;", "QCowL2Meta *old_alloc;", "VAR_1 = get_cluster_table(bs, offs...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 31 ], [ 35 ], [ 39 ], [ 47 ], [ 49, 51 ], [ 55 ], [ 57 ], [ 61 ], [ 63 ], [...
90
void ff_xvmc_init_block(MpegEncContext *s) { struct xvmc_render_state *render = (struct xvmc_render_state*)s->current_picture.data[2]; assert(render); if (!render || render->magic != AV_XVMC_RENDER_MAGIC) { assert(0); return; // make sure that this is a render packet } s->blo...
true
FFmpeg
967d2ae616a1fc6ffc2c00810e09c232dfdb7911
void ff_xvmc_init_block(MpegEncContext *s) { struct xvmc_render_state *render = (struct xvmc_render_state*)s->current_picture.data[2]; assert(render); if (!render || render->magic != AV_XVMC_RENDER_MAGIC) { assert(0); return; } s->block = (DCTELEM *)(render->data_blocks + re...
{ "code": [ " assert(render);" ], "line_no": [ 7 ] }
void FUNC_0(MpegEncContext *VAR_0) { struct xvmc_render_state *VAR_1 = (struct xvmc_render_state*)VAR_0->current_picture.data[2]; assert(VAR_1); if (!VAR_1 || VAR_1->magic != AV_XVMC_RENDER_MAGIC) { assert(0); return; } VAR_0->block = (DCTELEM *)(VAR_1->data_blocks + VAR_1->...
[ "void FUNC_0(MpegEncContext *VAR_0)\n{", "struct xvmc_render_state *VAR_1 = (struct xvmc_render_state*)VAR_0->current_picture.data[2];", "assert(VAR_1);", "if (!VAR_1 || VAR_1->magic != AV_XVMC_RENDER_MAGIC) {", "assert(0);", "return;", "}", "VAR_0->block = (DCTELEM *)(VAR_1->data_blocks + VAR_1->next...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
91
void do_adde (void) { T2 = T0; T0 += T1 + xer_ca; if (likely(!(T0 < T2 || (xer_ca == 1 && T0 == T2)))) { xer_ca = 0; } else { xer_ca = 1; } }
true
qemu
d9bce9d99f4656ae0b0127f7472db9067b8f84ab
void do_adde (void) { T2 = T0; T0 += T1 + xer_ca; if (likely(!(T0 < T2 || (xer_ca == 1 && T0 == T2)))) { xer_ca = 0; } else { xer_ca = 1; } }
{ "code": [ " T2 = T0;", " xer_ca = 1;", " } else {", " xer_ca = 0;", " xer_ca = 1;", " } else {", " xer_ca = 0;", " xer_ca = 1;", " } else {", " T2 = T0;", " } else {", " T2 = T0;", " xer_ca = 0;", ...
void FUNC_0 (void) { T2 = T0; T0 += T1 + xer_ca; if (likely(!(T0 < T2 || (xer_ca == 1 && T0 == T2)))) { xer_ca = 0; } else { xer_ca = 1; } }
[ "void FUNC_0 (void)\n{", "T2 = T0;", "T0 += T1 + xer_ca;", "if (likely(!(T0 < T2 || (xer_ca == 1 && T0 == T2)))) {", "xer_ca = 0;", "} else {", "xer_ca = 1;", "}", "}" ]
[ 0, 1, 0, 1, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
92
static uint32_t ecc_mem_readl(void *opaque, target_phys_addr_t addr) { ECCState *s = opaque; uint32_t ret = 0; switch (addr & ECC_ADDR_MASK) { case ECC_MER: ret = s->regs[0]; DPRINTF("Read memory enable %08x\n", ret); break; case ECC_MDR: ret = s->regs[1];...
true
qemu
8f2ad0a3fc5e3569183d44bf1c7fcb95294be4c0
static uint32_t ecc_mem_readl(void *opaque, target_phys_addr_t addr) { ECCState *s = opaque; uint32_t ret = 0; switch (addr & ECC_ADDR_MASK) { case ECC_MER: ret = s->regs[0]; DPRINTF("Read memory enable %08x\n", ret); break; case ECC_MDR: ret = s->regs[1];...
{ "code": [ " switch (addr & ECC_ADDR_MASK) {", " switch (addr & ECC_ADDR_MASK) {", " ret = s->regs[0];", " ret = s->regs[1];", " ret = s->regs[2];", " ret = s->regs[3];", " ret = s->regs[4];", " ret = s->regs[5];", " ret = s->...
static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr) { ECCState *s = opaque; uint32_t ret = 0; switch (addr & ECC_ADDR_MASK) { case ECC_MER: ret = s->regs[0]; DPRINTF("Read memory enable %08x\n", ret); break; case ECC_MDR: ret = s->regs[1]; ...
[ "static uint32_t FUNC_0(void *opaque, target_phys_addr_t addr)\n{", "ECCState *s = opaque;", "uint32_t ret = 0;", "switch (addr & ECC_ADDR_MASK) {", "case ECC_MER:\nret = s->regs[0];", "DPRINTF(\"Read memory enable %08x\\n\", ret);", "break;", "case ECC_MDR:\nret = s->regs[1];", "DPRINTF(\"Read memo...
[ 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 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 ], ...
93
int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, AVPacket *avpkt) { int i, ret = 0; if (!avpkt->data && avpkt->size) { av_log(avctx, AV_LOG_ERROR, "invalid packet: NULL data, size != 0\n"); return AVE...
true
FFmpeg
01923bab98506b1e98b4cbf08419364ce6ffea6d
int avcodec_decode_subtitle2(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, AVPacket *avpkt) { int i, ret = 0; if (!avpkt->data && avpkt->size) { av_log(avctx, AV_LOG_ERROR, "invalid packet: NULL data, size != 0\n"); return AVE...
{ "code": [], "line_no": [] }
int FUNC_0(AVCodecContext *VAR_0, AVSubtitle *VAR_1, int *VAR_2, AVPacket *VAR_3) { int VAR_4, VAR_5 = 0; if (!VAR_3->data && VAR_3->size) { av_log(VAR_0, AV_LOG_ERROR, "invalid packet: NULL data, size != 0\n"); return AVERROR(EINVAL); ...
[ "int FUNC_0(AVCodecContext *VAR_0, AVSubtitle *VAR_1,\nint *VAR_2,\nAVPacket *VAR_3)\n{", "int VAR_4, VAR_5 = 0;", "if (!VAR_3->data && VAR_3->size) {", "av_log(VAR_0, AV_LOG_ERROR, \"invalid packet: NULL data, size != 0\\n\");", "return AVERROR(EINVAL);", "if (!VAR_0->codec)\nreturn AVERROR(EINVAL);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 22 ], [ 23 ], [ ...
94
static int mp_decode_frame(MPADecodeContext *s, short *samples) { int i, nb_frames, ch; short *samples_ptr; init_get_bits(&s->gb, s->inbuf + HEADER_SIZE, s->inbuf_ptr - s->inbuf - HEADER_SIZE); /* skip error protection field */ if (s->er...
false
FFmpeg
68f593b48433842f3407586679fe07f3e5199ab9
static int mp_decode_frame(MPADecodeContext *s, short *samples) { int i, nb_frames, ch; short *samples_ptr; init_get_bits(&s->gb, s->inbuf + HEADER_SIZE, s->inbuf_ptr - s->inbuf - HEADER_SIZE); if (s->error_protection) get_bits...
{ "code": [], "line_no": [] }
static int FUNC_0(MPADecodeContext *VAR_0, short *VAR_1) { int VAR_2, VAR_3, VAR_4; short *VAR_5; init_get_bits(&VAR_0->gb, VAR_0->inbuf + HEADER_SIZE, VAR_0->inbuf_ptr - VAR_0->inbuf - HEADER_SIZE); if (VAR_0->error_protection) ...
[ "static int FUNC_0(MPADecodeContext *VAR_0,\nshort *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "short *VAR_5;", "init_get_bits(&VAR_0->gb, VAR_0->inbuf + HEADER_SIZE,\nVAR_0->inbuf_ptr - VAR_0->inbuf - HEADER_SIZE);", "if (VAR_0->error_protection)\nget_bits(&VAR_0->gb, 16);", "dprintf(\"frame %d:\\n\", 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45, 47 ], [ 49 ], [ 51 ], [ 53, 55 ], [ 57 ...
95
static int pcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { PCMDecode *s = avctx->priv_data; int sample_size, c, n; short *samples; const uint8_t *src, *src8, *src2[MAX_CHANNELS]; u...
false
FFmpeg
469f5f251dc3acbb4c4fd12c597d57768119af4a
static int pcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { PCMDecode *s = avctx->priv_data; int sample_size, c, n; short *samples; const uint8_t *src, *src8, *src2[MAX_CHANNELS]; u...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, const uint8_t *VAR_3, int VAR_4) { PCMDecode *s = VAR_0->priv_data; int VAR_5, VAR_6, VAR_7; short *VAR_8; const uint8_t *VAR_9, *src8, *src2[MAX_CHANNELS]; uint8_t *dstu...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nconst uint8_t *VAR_3, int VAR_4)\n{", "PCMDecode *s = VAR_0->priv_data;", "int VAR_5, VAR_6, VAR_7;", "short *VAR_8;", "const uint8_t *VAR_9, *src8, *src2[MAX_CHANNELS];", "uint8_t *dstu8;", "int16_t *dst_int16_t;", "int32_t *dst_int...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ...
96
static int write_trailer(AVFormatContext *s) { WVMuxContext *wc = s->priv_data; AVIOContext *pb = s->pb; ff_ape_write(s); if (pb->seekable) { avio_seek(pb, 12, SEEK_SET); avio_wl32(pb, wc->duration); avio_flush(pb); } return 0; }
false
FFmpeg
269fc8e04906ffd965aa19425ca90980b23c6508
static int write_trailer(AVFormatContext *s) { WVMuxContext *wc = s->priv_data; AVIOContext *pb = s->pb; ff_ape_write(s); if (pb->seekable) { avio_seek(pb, 12, SEEK_SET); avio_wl32(pb, wc->duration); avio_flush(pb); } return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { WVMuxContext *wc = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; ff_ape_write(VAR_0); if (pb->seekable) { avio_seek(pb, 12, SEEK_SET); avio_wl32(pb, wc->duration); avio_flush(pb); } return 0; }
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "WVMuxContext *wc = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "ff_ape_write(VAR_0);", "if (pb->seekable) {", "avio_seek(pb, 12, SEEK_SET);", "avio_wl32(pb, wc->duration);", "avio_flush(pb);", "}", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ] ]
97
void virtio_queue_set_align(VirtIODevice *vdev, int n, int align) { BusState *qbus = qdev_get_parent_bus(DEVICE(vdev)); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); /* virtio-1 compliant devices cannot change the alignment */ if (virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) { error_r...
false
qemu
95129d6fc9ead97155627a4ca0cfd37282883658
void virtio_queue_set_align(VirtIODevice *vdev, int n, int align) { BusState *qbus = qdev_get_parent_bus(DEVICE(vdev)); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); if (virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) { error_report("tried to modify queue alignment for virtio-1 device")...
{ "code": [], "line_no": [] }
void FUNC_0(VirtIODevice *VAR_0, int VAR_1, int VAR_2) { BusState *qbus = qdev_get_parent_bus(DEVICE(VAR_0)); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); if (virtio_has_feature(VAR_0, VIRTIO_F_VERSION_1)) { error_report("tried to modify queue alignment for virtio-1 device"); ...
[ "void FUNC_0(VirtIODevice *VAR_0, int VAR_1, int VAR_2)\n{", "BusState *qbus = qdev_get_parent_bus(DEVICE(VAR_0));", "VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);", "if (virtio_has_feature(VAR_0, VIRTIO_F_VERSION_1)) {", "error_report(\"tried to modify queue alignment for virtio-1 device\");", "return;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ] ]
98
static inline void RENAME(yuvPlanartouyvy)(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, long vertLumPerChroma) { long y...
false
FFmpeg
d1adad3cca407f493c3637e20ecd4f7124e69212
static inline void RENAME(yuvPlanartouyvy)(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, long vertLumPerChroma) { long y...
{ "code": [], "line_no": [] }
static inline void FUNC_0(yuvPlanartouyvy)(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, long vertLumPerChroma) { long V...
[ "static inline void FUNC_0(yuvPlanartouyvy)(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, long vertLumPerChroma)\n{", "long VAR_0;", "const x86_reg VAR_1= width>>1;", "for (VAR_0=0; VAR_0<height; VAR_0+...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 45, 47, 49, 51, 53, 55, 57, 59, 63, 65, 67, 69, 73, 75, 77, 79,...
99
int qcrypto_init(Error **errp) { int ret; ret = gnutls_global_init(); if (ret < 0) { error_setg(errp, "Unable to initialize GNUTLS library: %s", gnutls_strerror(ret)); return -1; } #ifdef DEBUG_GNUTLS gnutls_global_set_log_level(10); ...
false
qemu
91bfcdb01d4869aa8f4cb67007827de63b8c2217
int qcrypto_init(Error **errp) { int ret; ret = gnutls_global_init(); if (ret < 0) { error_setg(errp, "Unable to initialize GNUTLS library: %s", gnutls_strerror(ret)); return -1; } #ifdef DEBUG_GNUTLS gnutls_global_set_log_level(10); ...
{ "code": [], "line_no": [] }
int FUNC_0(Error **VAR_0) { int VAR_1; VAR_1 = gnutls_global_init(); if (VAR_1 < 0) { error_setg(VAR_0, "Unable to initialize GNUTLS library: %s", gnutls_strerror(VAR_1)); return -1; } #ifdef DEBUG_GNUTLS gnutls_global_set_log_level(10...
[ "int FUNC_0(Error **VAR_0)\n{", "int VAR_1;", "VAR_1 = gnutls_global_init();", "if (VAR_1 < 0) {", "error_setg(VAR_0,\n\"Unable to initialize GNUTLS library: %s\",\ngnutls_strerror(VAR_1));", "return -1;", "}", "#ifdef DEBUG_GNUTLS\ngnutls_global_set_log_level(10);", "gnutls_global_set_log_function(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13, 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45, 47 ], [ 49, 53 ...
100
static void read_vec_element_i32(DisasContext *s, TCGv_i32 tcg_dest, int srcidx, int element, TCGMemOp memop) { int vect_off = vec_reg_offset(srcidx, element, memop & MO_SIZE); switch (memop) { case MO_8: tcg_gen_ld8u_i32(tcg_dest, cpu_env, vect_off); ...
false
qemu
90e496386fe7fd32c189561f846b7913f95b8cf4
static void read_vec_element_i32(DisasContext *s, TCGv_i32 tcg_dest, int srcidx, int element, TCGMemOp memop) { int vect_off = vec_reg_offset(srcidx, element, memop & MO_SIZE); switch (memop) { case MO_8: tcg_gen_ld8u_i32(tcg_dest, cpu_env, vect_off); ...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext *VAR_0, TCGv_i32 VAR_1, int VAR_2, int VAR_3, TCGMemOp VAR_4) { int VAR_5 = vec_reg_offset(VAR_2, VAR_3, VAR_4 & MO_SIZE); switch (VAR_4) { case MO_8: tcg_gen_ld8u_i32(VAR_1, cpu_env, VAR_5); break; case MO_16: ...
[ "static void FUNC_0(DisasContext *VAR_0, TCGv_i32 VAR_1, int VAR_2,\nint VAR_3, TCGMemOp VAR_4)\n{", "int VAR_5 = vec_reg_offset(VAR_2, VAR_3, VAR_4 & MO_SIZE);", "switch (VAR_4) {", "case MO_8:\ntcg_gen_ld8u_i32(VAR_1, cpu_env, VAR_5);", "break;", "case MO_16:\ntcg_gen_ld16u_i32(VAR_1, cpu_env, VAR_5);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ...
101
static void vring_desc_read(VirtIODevice *vdev, VRingDesc *desc, hwaddr desc_pa, int i) { address_space_read(&address_space_memory, desc_pa + i * sizeof(VRingDesc), MEMTXATTRS_UNSPECIFIED, (void *)desc, sizeof(VRingDesc)); virtio_tswap64s(vdev, &desc->addr...
false
qemu
8607f5c3072caeebbe0217df28651fffd3a79fd9
static void vring_desc_read(VirtIODevice *vdev, VRingDesc *desc, hwaddr desc_pa, int i) { address_space_read(&address_space_memory, desc_pa + i * sizeof(VRingDesc), MEMTXATTRS_UNSPECIFIED, (void *)desc, sizeof(VRingDesc)); virtio_tswap64s(vdev, &desc->addr...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIODevice *VAR_0, VRingDesc *VAR_1, hwaddr VAR_2, int VAR_3) { address_space_read(&address_space_memory, VAR_2 + VAR_3 * sizeof(VRingDesc), MEMTXATTRS_UNSPECIFIED, (void *)VAR_1, sizeof(VRingDesc)); virtio_tswap64s(VAR_0, &VAR_1->addr...
[ "static void FUNC_0(VirtIODevice *VAR_0, VRingDesc *VAR_1,\nhwaddr VAR_2, int VAR_3)\n{", "address_space_read(&address_space_memory, VAR_2 + VAR_3 * sizeof(VRingDesc),\nMEMTXATTRS_UNSPECIFIED, (void *)VAR_1, sizeof(VRingDesc));", "virtio_tswap64s(VAR_0, &VAR_1->addr);", "virtio_tswap32s(VAR_0, &VAR_1->len);",...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
102
static AddressSpace *q35_host_dma_iommu(PCIBus *bus, void *opaque, int devfn) { IntelIOMMUState *s = opaque; VTDAddressSpace **pvtd_as; int bus_num = pci_bus_num(bus); assert(0 <= bus_num && bus_num <= VTD_PCI_BUS_MAX); assert(0 <= devfn && devfn <= VTD_PCI_DEVFN_MAX); pvtd_as = s->ad...
false
qemu
7df953bd456da45f761064974820ab5c3fd7b2aa
static AddressSpace *q35_host_dma_iommu(PCIBus *bus, void *opaque, int devfn) { IntelIOMMUState *s = opaque; VTDAddressSpace **pvtd_as; int bus_num = pci_bus_num(bus); assert(0 <= bus_num && bus_num <= VTD_PCI_BUS_MAX); assert(0 <= devfn && devfn <= VTD_PCI_DEVFN_MAX); pvtd_as = s->ad...
{ "code": [], "line_no": [] }
static AddressSpace *FUNC_0(PCIBus *bus, void *opaque, int devfn) { IntelIOMMUState *s = opaque; VTDAddressSpace **pvtd_as; int VAR_0 = pci_bus_num(bus); assert(0 <= VAR_0 && VAR_0 <= VTD_PCI_BUS_MAX); assert(0 <= devfn && devfn <= VTD_PCI_DEVFN_MAX); pvtd_as = s->address_spaces[VAR_0...
[ "static AddressSpace *FUNC_0(PCIBus *bus, void *opaque, int devfn)\n{", "IntelIOMMUState *s = opaque;", "VTDAddressSpace **pvtd_as;", "int VAR_0 = pci_bus_num(bus);", "assert(0 <= VAR_0 && VAR_0 <= VTD_PCI_BUS_MAX);", "assert(0 <= devfn && devfn <= VTD_PCI_DEVFN_MAX);", "pvtd_as = s->address_spaces[VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49, 51 ...
103
static inline uint64_t vmdk_find_offset_in_cluster(VmdkExtent *extent, int64_t offset) { uint64_t offset_in_cluster, extent_begin_offset, extent_relative_offset; uint64_t cluster_size = extent->cluster_sectors * BDRV_SECTOR_SIZE; extent_begin_offset ...
false
qemu
9be385980d37e8f4fd33f605f5fb1c3d144170a8
static inline uint64_t vmdk_find_offset_in_cluster(VmdkExtent *extent, int64_t offset) { uint64_t offset_in_cluster, extent_begin_offset, extent_relative_offset; uint64_t cluster_size = extent->cluster_sectors * BDRV_SECTOR_SIZE; extent_begin_offset ...
{ "code": [], "line_no": [] }
static inline uint64_t FUNC_0(VmdkExtent *extent, int64_t offset) { uint64_t offset_in_cluster, extent_begin_offset, extent_relative_offset; uint64_t cluster_size = extent->cluster_sectors * BDRV_SECTOR_SIZE; extent_begin_offset = (extent->e...
[ "static inline uint64_t FUNC_0(VmdkExtent *extent,\nint64_t offset)\n{", "uint64_t offset_in_cluster, extent_begin_offset, extent_relative_offset;", "uint64_t cluster_size = extent->cluster_sectors * BDRV_SECTOR_SIZE;", "extent_begin_offset =\n(extent->end_sector - extent->sectors) * BDRV_SECTOR_SIZE;", "ex...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
104
static unsigned int dec_move_pr(DisasContext *dc) { TCGv t0; DIS(fprintf (logfile, "move $p%u, $r%u\n", dc->op1, dc->op2)); cris_cc_mask(dc, 0); if (dc->op2 == PR_CCS) cris_evaluate_flags(dc); t0 = tcg_temp_new(TCG_TYPE_TL); t_gen_mov_TN_preg(t0, dc->op2); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op...
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static unsigned int dec_move_pr(DisasContext *dc) { TCGv t0; DIS(fprintf (logfile, "move $p%u, $r%u\n", dc->op1, dc->op2)); cris_cc_mask(dc, 0); if (dc->op2 == PR_CCS) cris_evaluate_flags(dc); t0 = tcg_temp_new(TCG_TYPE_TL); t_gen_mov_TN_preg(t0, dc->op2); cris_alu(dc, CC_OP_MOVE, cpu_R[dc->op...
{ "code": [], "line_no": [] }
static unsigned int FUNC_0(DisasContext *VAR_0) { TCGv t0; DIS(fprintf (logfile, "move $p%u, $r%u\n", VAR_0->op1, VAR_0->op2)); cris_cc_mask(VAR_0, 0); if (VAR_0->op2 == PR_CCS) cris_evaluate_flags(VAR_0); t0 = tcg_temp_new(TCG_TYPE_TL); t_gen_mov_TN_preg(t0, VAR_0->op2); cris_alu(VAR_0, CC_OP_MOV...
[ "static unsigned int FUNC_0(DisasContext *VAR_0)\n{", "TCGv t0;", "DIS(fprintf (logfile, \"move $p%u, $r%u\\n\", VAR_0->op1, VAR_0->op2));", "cris_cc_mask(VAR_0, 0);", "if (VAR_0->op2 == PR_CCS)\ncris_evaluate_flags(VAR_0);", "t0 = tcg_temp_new(TCG_TYPE_TL);", "t_gen_mov_TN_preg(t0, VAR_0->op2);", "cr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ] ]
105
static void virtio_balloon_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->init = virtio_balloon_init_pci; k->exit = virtio_balloon_exit_pci; k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET; k->device_id = ...
false
qemu
6acbe4c6f18e7de00481ff30574262b58526de45
static void virtio_balloon_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->init = virtio_balloon_init_pci; k->exit = virtio_balloon_exit_pci; k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET; k->device_id = ...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0); k->init = virtio_balloon_init_pci; k->exit = virtio_balloon_exit_pci; k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET; k->device_id = PCI_DEVICE_ID_VIRT...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "PCIDeviceClass *k = PCI_DEVICE_CLASS(VAR_0);", "k->init = virtio_balloon_init_pci;", "k->exit = virtio_balloon_exit_pci;", "k->vendor_id = PCI_VENDOR_ID_REDHAT_QUMRANET;", "k->device_id = PCI_DEVICE_ID_V...
[ 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 ] ]
106
static int fetch_active_ports_list(QEMUFile *f, VirtIOSerial *s, uint32_t nr_active_ports) { uint32_t i; s->post_load = g_malloc0(sizeof(*s->post_load)); s->post_load->nr_active_ports = nr_active_ports; s->post_load->connected = g_malloc0(sizeof(*s->po...
false
qemu
8607f5c3072caeebbe0217df28651fffd3a79fd9
static int fetch_active_ports_list(QEMUFile *f, VirtIOSerial *s, uint32_t nr_active_ports) { uint32_t i; s->post_load = g_malloc0(sizeof(*s->post_load)); s->post_load->nr_active_ports = nr_active_ports; s->post_load->connected = g_malloc0(sizeof(*s->po...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, VirtIOSerial *VAR_1, uint32_t VAR_2) { uint32_t i; VAR_1->post_load = g_malloc0(sizeof(*VAR_1->post_load)); VAR_1->post_load->VAR_2 = VAR_2; VAR_1->post_load->connected = g_malloc0(sizeof(*VAR_1->post_load->connected)...
[ "static int FUNC_0(QEMUFile *VAR_0,\nVirtIOSerial *VAR_1, uint32_t VAR_2)\n{", "uint32_t i;", "VAR_1->post_load = g_malloc0(sizeof(*VAR_1->post_load));", "VAR_1->post_load->VAR_2 = VAR_2;", "VAR_1->post_load->connected =\ng_malloc0(sizeof(*VAR_1->post_load->connected) * VAR_2);", "VAR_1->post_load->timer ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 21, 23, 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57...
107
void HELPER(ucf64_cmps)(float32 a, float32 b, uint32_t c, CPUUniCore32State *env) { int flag; flag = float32_compare_quiet(a, b, &env->ucf64.fp_status); env->CF = 0; switch (c & 0x7) { case 0: /* F */ break; case 1: /* UN */ if (flag == 2) { env->CF = 1; ...
false
qemu
e8ede0a8bb5298a6979bcf7ed84ef64a64a4e3fe
void HELPER(ucf64_cmps)(float32 a, float32 b, uint32_t c, CPUUniCore32State *env) { int flag; flag = float32_compare_quiet(a, b, &env->ucf64.fp_status); env->CF = 0; switch (c & 0x7) { case 0: break; case 1: if (flag == 2) { env->CF = 1; } ...
{ "code": [], "line_no": [] }
void FUNC_0(ucf64_cmps)(float32 a, float32 b, uint32_t c, CPUUniCore32State *env) { int VAR_0; VAR_0 = float32_compare_quiet(a, b, &env->ucf64.fp_status); env->CF = 0; switch (c & 0x7) { case 0: break; case 1: if (VAR_0 == 2) { env->CF = 1; } ...
[ "void FUNC_0(ucf64_cmps)(float32 a, float32 b, uint32_t c, CPUUniCore32State *env)\n{", "int VAR_0;", "VAR_0 = float32_compare_quiet(a, b, &env->ucf64.fp_status);", "env->CF = 0;", "switch (c & 0x7) {", "case 0:\nbreak;", "case 1:\nif (VAR_0 == 2) {", "env->CF = 1;", "}", "break;", "case 2:\nif ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ...
109
static void RENAME(yuv2yuyv422_2)(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, ...
false
FFmpeg
13a099799e89a76eb921ca452e1b04a7a28a9855
static void RENAME(yuv2yuyv422_2)(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, ...
{ "code": [], "line_no": [] }
static void FUNC_0(yuv2yuyv422_2)(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, ...
[ "static void FUNC_0(yuv2yuyv422_2)(SwsContext *c, const uint16_t *buf0,\nconst uint16_t *buf1, const uint16_t *ubuf0,\nconst uint16_t *ubuf1, const uint16_t *vbuf0,\nconst uint16_t *vbuf1, const uint16_t *abuf0,\nconst uint16_t *abuf1, uint8_t *dest,\nint dstW, int yalpha, int uvalpha, int y)\n{", "__asm__ volati...
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37 ], [ 39 ] ]
110
static int scsi_disk_emulate_start_stop(SCSIDiskReq *r) { SCSIRequest *req = &r->req; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); bool start = req->cmd.buf[4] & 1; bool loej = req->cmd.buf[4] & 2; /* load on start, eject on !start */ if (s->qdev.type == TYPE_ROM && loej) { ...
false
qemu
b456a71c4a1eb5704d135fd08da9a0de8fd81231
static int scsi_disk_emulate_start_stop(SCSIDiskReq *r) { SCSIRequest *req = &r->req; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); bool start = req->cmd.buf[4] & 1; bool loej = req->cmd.buf[4] & 2; if (s->qdev.type == TYPE_ROM && loej) { if (!start && !s->tray_open ...
{ "code": [], "line_no": [] }
static int FUNC_0(SCSIDiskReq *VAR_0) { SCSIRequest *req = &VAR_0->req; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); bool start = req->cmd.buf[4] & 1; bool loej = req->cmd.buf[4] & 2; if (s->qdev.type == TYPE_ROM && loej) { if (!start && !s->tray_open && s->tray_loc...
[ "static int FUNC_0(SCSIDiskReq *VAR_0)\n{", "SCSIRequest *req = &VAR_0->req;", "SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev);", "bool start = req->cmd.buf[4] & 1;", "bool loej = req->cmd.buf[4] & 2;", "if (s->qdev.type == TYPE_ROM && loej) {", "if (!start && !s->tray_open && s->tray_locke...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21, 23, 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ] ]
111
static void ecc_mem_writew(void *opaque, target_phys_addr_t addr, uint32_t val) { printf("ECC: Unsupported write 0x" TARGET_FMT_plx " %04x\n", addr, val & 0xffff); }
false
qemu
7c560456707bfe53eb1728fcde759be7d9418b62
static void ecc_mem_writew(void *opaque, target_phys_addr_t addr, uint32_t val) { printf("ECC: Unsupported write 0x" TARGET_FMT_plx " %04x\n", addr, val & 0xffff); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { printf("ECC: Unsupported write 0x" TARGET_FMT_plx " %04x\n", VAR_1, VAR_2 & 0xffff); }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)\n{", "printf(\"ECC: Unsupported write 0x\" TARGET_FMT_plx \" %04x\\n\",\nVAR_1, VAR_2 & 0xffff);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
112
int kvm_arch_debug(struct kvm_debug_exit_arch *arch_info) { int handle = 0; int n; if (arch_info->exception == 1) { if (arch_info->dr6 & (1 << 14)) { if (cpu_single_env->singlestep_enabled) handle = 1; } else { for (n = 0; n < 4; n++) ...
false
qemu
b9bec74bcb16519a876ec21cd5277c526a9b512d
int kvm_arch_debug(struct kvm_debug_exit_arch *arch_info) { int handle = 0; int n; if (arch_info->exception == 1) { if (arch_info->dr6 & (1 << 14)) { if (cpu_single_env->singlestep_enabled) handle = 1; } else { for (n = 0; n < 4; n++) ...
{ "code": [], "line_no": [] }
int FUNC_0(struct kvm_debug_exit_arch *VAR_0) { int VAR_1 = 0; int VAR_2; if (VAR_0->exception == 1) { if (VAR_0->dr6 & (1 << 14)) { if (cpu_single_env->singlestep_enabled) VAR_1 = 1; } else { for (VAR_2 = 0; VAR_2 < 4; VAR_2++) ...
[ "int FUNC_0(struct kvm_debug_exit_arch *VAR_0)\n{", "int VAR_1 = 0;", "int VAR_2;", "if (VAR_0->exception == 1) {", "if (VAR_0->dr6 & (1 << 14)) {", "if (cpu_single_env->singlestep_enabled)\nVAR_1 = 1;", "} else {", "for (VAR_2 = 0; VAR_2 < 4; VAR_2++)", "if (VAR_0->dr6 & (1 << VAR_2))\nswitch ((VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], ...
113
static void qemu_chr_parse_stdio(QemuOpts *opts, ChardevBackend *backend, Error **errp) { ChardevStdio *stdio; stdio = backend->u.stdio = g_new0(ChardevStdio, 1); qemu_chr_parse_common(opts, qapi_ChardevStdio_base(stdio)); stdio->has_signal = true; stdio->si...
false
qemu
32bafa8fdd098d52fbf1102d5a5e48d29398c0aa
static void qemu_chr_parse_stdio(QemuOpts *opts, ChardevBackend *backend, Error **errp) { ChardevStdio *stdio; stdio = backend->u.stdio = g_new0(ChardevStdio, 1); qemu_chr_parse_common(opts, qapi_ChardevStdio_base(stdio)); stdio->has_signal = true; stdio->si...
{ "code": [], "line_no": [] }
static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1, Error **VAR_2) { ChardevStdio *stdio; stdio = VAR_1->u.stdio = g_new0(ChardevStdio, 1); qemu_chr_parse_common(VAR_0, qapi_ChardevStdio_base(stdio)); stdio->has_signal = true; stdio->signal = qemu_opt...
[ "static void FUNC_0(QemuOpts *VAR_0, ChardevBackend *VAR_1,\nError **VAR_2)\n{", "ChardevStdio *stdio;", "stdio = VAR_1->u.stdio = g_new0(ChardevStdio, 1);", "qemu_chr_parse_common(VAR_0, qapi_ChardevStdio_base(stdio));", "stdio->has_signal = true;", "stdio->signal = qemu_opt_get_bool(VAR_0, \"signal\", t...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
114
static void mirror_complete(BlockJob *job, Error **errp) { MirrorBlockJob *s = container_of(job, MirrorBlockJob, common); Error *local_err = NULL; int ret; ret = bdrv_open_backing_file(s->target, NULL, &local_err); if (ret < 0) { error_propagate(errp, local_err); return; ...
false
qemu
e12f3784097a26a1ba51be420f41038b4c0ae5d1
static void mirror_complete(BlockJob *job, Error **errp) { MirrorBlockJob *s = container_of(job, MirrorBlockJob, common); Error *local_err = NULL; int ret; ret = bdrv_open_backing_file(s->target, NULL, &local_err); if (ret < 0) { error_propagate(errp, local_err); return; ...
{ "code": [], "line_no": [] }
static void FUNC_0(BlockJob *VAR_0, Error **VAR_1) { MirrorBlockJob *s = container_of(VAR_0, MirrorBlockJob, common); Error *local_err = NULL; int VAR_2; VAR_2 = bdrv_open_backing_file(s->target, NULL, &local_err); if (VAR_2 < 0) { error_propagate(VAR_1, local_err); return;...
[ "static void FUNC_0(BlockJob *VAR_0, Error **VAR_1)\n{", "MirrorBlockJob *s = container_of(VAR_0, MirrorBlockJob, common);", "Error *local_err = NULL;", "int VAR_2;", "VAR_2 = bdrv_open_backing_file(s->target, NULL, &local_err);", "if (VAR_2 < 0) {", "error_propagate(VAR_1, local_err);", "return;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
115
static bool scsi_target_emulate_inquiry(SCSITargetReq *r) { assert(r->req.dev->lun != r->req.lun); scsi_target_alloc_buf(&r->req, SCSI_INQUIRY_LEN); if (r->req.cmd.buf[1] & 0x2) { /* Command support data - optional, not implemented */ return false; } if (r->req.cmd.buf[...
false
qemu
35c2c8dc8c0899882a8e0d349d93bd657772f1e7
static bool scsi_target_emulate_inquiry(SCSITargetReq *r) { assert(r->req.dev->lun != r->req.lun); scsi_target_alloc_buf(&r->req, SCSI_INQUIRY_LEN); if (r->req.cmd.buf[1] & 0x2) { return false; } if (r->req.cmd.buf[1] & 0x1) { uint8_t page_code = r->...
{ "code": [], "line_no": [] }
static bool FUNC_0(SCSITargetReq *r) { assert(r->req.dev->lun != r->req.lun); scsi_target_alloc_buf(&r->req, SCSI_INQUIRY_LEN); if (r->req.cmd.buf[1] & 0x2) { return false; } if (r->req.cmd.buf[1] & 0x1) { uint8_t page_code = r->req.cmd.buf[2]; ...
[ "static bool FUNC_0(SCSITargetReq *r)\n{", "assert(r->req.dev->lun != r->req.lun);", "scsi_target_alloc_buf(&r->req, SCSI_INQUIRY_LEN);", "if (r->req.cmd.buf[1] & 0x2) {", "return false;", "}", "if (r->req.cmd.buf[1] & 0x1) {", "uint8_t page_code = r->req.cmd.buf[2];", "r->buf[r->len++] = page_code ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53, 55...
116
void OPPROTO op_movl_npc_T0(void) { env->npc = T0; }
false
qemu
d2889a3efc3851e62de69cb9d88fb784c28e0ed8
void OPPROTO op_movl_npc_T0(void) { env->npc = T0; }
{ "code": [], "line_no": [] }
void VAR_0 op_movl_npc_T0(void) { env->npc = T0; }
[ "void VAR_0 op_movl_npc_T0(void)\n{", "env->npc = T0;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
117
void ff_aac_search_for_tns(AACEncContext *s, SingleChannelElement *sce) { TemporalNoiseShaping *tns = &sce->tns; int w, g, order, sfb_start, sfb_len, coef_start, shift[MAX_LPC_ORDER], count = 0; const int is8 = sce->ics.window_sequence[0] == EIGHT_SHORT_SEQUENCE; const int tns_max_order = is8 ? 7 :...
false
FFmpeg
f20b67173ca6a05b8c3dee02dad3b7243b96292b
void ff_aac_search_for_tns(AACEncContext *s, SingleChannelElement *sce) { TemporalNoiseShaping *tns = &sce->tns; int w, g, order, sfb_start, sfb_len, coef_start, shift[MAX_LPC_ORDER], count = 0; const int is8 = sce->ics.window_sequence[0] == EIGHT_SHORT_SEQUENCE; const int tns_max_order = is8 ? 7 :...
{ "code": [], "line_no": [] }
void FUNC_0(AACEncContext *VAR_0, SingleChannelElement *VAR_1) { TemporalNoiseShaping *tns = &VAR_1->tns; int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, shift[MAX_LPC_ORDER], count = 0; const int VAR_8 = VAR_1->ics.window_sequence[0] == EIGHT_SHORT_SEQUENCE; const int VAR_9 = VAR_8 ? 7 : VAR_0->prof...
[ "void FUNC_0(AACEncContext *VAR_0, SingleChannelElement *VAR_1)\n{", "TemporalNoiseShaping *tns = &VAR_1->tns;", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, shift[MAX_LPC_ORDER], count = 0;", "const int VAR_8 = VAR_1->ics.window_sequence[0] == EIGHT_SHORT_SEQUENCE;", "const int VAR_9 = VAR_8 ? 7 : 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...