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
6,216
static av_cold int fdk_aac_decode_init(AVCodecContext *avctx) { FDKAACDecContext *s = avctx->priv_data; AAC_DECODER_ERROR err; int ret; s->handle = aacDecoder_Open(avctx->extradata_size ? TT_MP4_RAW : TT_MP4_ADTS, 1); if (!s->handle) { av_log(avctx, AV_LOG_ERROR, "Error opening deco...
true
FFmpeg
f34b152eb7b7e8d2aee57c710a072cf74173fbe1
static av_cold int fdk_aac_decode_init(AVCodecContext *avctx) { FDKAACDecContext *s = avctx->priv_data; AAC_DECODER_ERROR err; int ret; s->handle = aacDecoder_Open(avctx->extradata_size ? TT_MP4_RAW : TT_MP4_ADTS, 1); if (!s->handle) { av_log(avctx, AV_LOG_ERROR, "Error opening deco...
{ "code": [ " ret = AVERROR(ENOMEM);", " goto fail;", " ret = AVERROR_UNKNOWN;", " goto fail;", " if (!s->decoder_buffer) {", " ret = AVERROR(ENOMEM);", " goto fail;", "fail:", " fdk_aac_dec...
static av_cold int FUNC_0(AVCodecContext *avctx) { FDKAACDecContext *s = avctx->priv_data; AAC_DECODER_ERROR err; int VAR_0; s->handle = aacDecoder_Open(avctx->extradata_size ? TT_MP4_RAW : TT_MP4_ADTS, 1); if (!s->handle) { av_log(avctx, AV_LOG_ERROR, "Error opening decoder\n"); ...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "FDKAACDecContext *s = avctx->priv_data;", "AAC_DECODER_ERROR err;", "int VAR_0;", "s->handle = aacDecoder_Open(avctx->extradata_size ? TT_MP4_RAW : TT_MP4_ADTS, 1);", "if (!s->handle) {", "av_log(avctx, AV_LOG_ERROR, \"Error opening decoder\\n\");"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ...
6,218
int ff_hevc_decode_extradata(const uint8_t *data, int size, HEVCParamSets *ps, int *is_nalff, int *nal_length_size, int err_recognition, void *logctx) { int ret = 0; GetByteContext gb; bytestream2_init(&gb, data, size); if (size > 3 &&...
true
FFmpeg
159ab4625bd3641e79b564335be8069dca881978
int ff_hevc_decode_extradata(const uint8_t *data, int size, HEVCParamSets *ps, int *is_nalff, int *nal_length_size, int err_recognition, void *logctx) { int ret = 0; GetByteContext gb; bytestream2_init(&gb, data, size); if (size > 3 &&...
{ "code": [ " return ret;", " ret = hevc_decode_nal_units(gb.buffer, nalsize, ps, *is_nalff, *nal_length_size, logctx);", " ret = hevc_decode_nal_units(data, size, ps, *is_nalff, *nal_length_size, logctx);" ], "line_no": [ 123, 81, 113 ] }
int FUNC_0(const uint8_t *VAR_0, int VAR_1, HEVCParamSets *VAR_2, int *VAR_3, int *VAR_4, int VAR_5, void *VAR_6) { int VAR_7 = 0; GetByteContext gb; bytestream2_init(&gb, VAR_0, VAR_1); if (VAR_1 > 3 && (VAR_0[0] || VAR_0[1] || VAR_0[...
[ "int FUNC_0(const uint8_t *VAR_0, int VAR_1, HEVCParamSets *VAR_2,\nint *VAR_3, int *VAR_4,\nint VAR_5, void *VAR_6)\n{", "int VAR_7 = 0;", "GetByteContext gb;", "bytestream2_init(&gb, VAR_0, VAR_1);", "if (VAR_1 > 3 && (VAR_0[0] || VAR_0[1] || VAR_0[2] > 1)) {", "int VAR_8, VAR_9, VAR_10, VAR_11;", "*V...
[ 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, 1, 0, 0, 1, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 49 ], [ 55 ], [ 57 ], [ 59 ], [ 63 ], [ 67 ], [ 69 ], [ 71, 73 ], [...
6,219
static void frame_thread_free(AVCodecContext *avctx, int thread_count) { FrameThreadContext *fctx = avctx->thread_opaque; AVCodec *codec = avctx->codec; int i; park_frame_worker_threads(fctx, thread_count); if (fctx->prev_thread && fctx->prev_thread != fctx->threads) update_contex...
true
FFmpeg
26ae9a5d7c448a3eb42641b546ee8d585ab716e6
static void frame_thread_free(AVCodecContext *avctx, int thread_count) { FrameThreadContext *fctx = avctx->thread_opaque; AVCodec *codec = avctx->codec; int i; park_frame_worker_threads(fctx, thread_count); if (fctx->prev_thread && fctx->prev_thread != fctx->threads) update_contex...
{ "code": [ " avctx->has_b_frames -= avctx->thread_count - 1;" ], "line_no": [ 103 ] }
static void FUNC_0(AVCodecContext *VAR_0, int VAR_1) { FrameThreadContext *fctx = VAR_0->thread_opaque; AVCodec *codec = VAR_0->codec; int VAR_2; park_frame_worker_threads(fctx, VAR_1); if (fctx->prev_thread && fctx->prev_thread != fctx->threads) update_context_from_thread(fctx->t...
[ "static void FUNC_0(AVCodecContext *VAR_0, int VAR_1)\n{", "FrameThreadContext *fctx = VAR_0->thread_opaque;", "AVCodec *codec = VAR_0->codec;", "int VAR_2;", "park_frame_worker_threads(fctx, VAR_1);", "if (fctx->prev_thread && fctx->prev_thread != fctx->threads)\nupdate_context_from_thread(fctx->threads-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17, 19 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45, 47 ], [ 51 ], [ 55 ], [ 57 ], [ 61 ], [ 63 ...
6,220
int qio_dns_resolver_lookup_sync(QIODNSResolver *resolver, SocketAddress *addr, size_t *naddrs, SocketAddress ***addrs, Error **errp) { switch (addr->type) { case SOCKET_ADD...
false
qemu
dfd100f242370886bb6732f70f1f7cbd8eb9fedc
int qio_dns_resolver_lookup_sync(QIODNSResolver *resolver, SocketAddress *addr, size_t *naddrs, SocketAddress ***addrs, Error **errp) { switch (addr->type) { case SOCKET_ADD...
{ "code": [], "line_no": [] }
int FUNC_0(QIODNSResolver *VAR_0, SocketAddress *VAR_1, size_t *VAR_2, SocketAddress ***VAR_3, Error **VAR_4) { switch (VAR_1->type) { case SOCKET_ADDRESS_KIND_INET: ...
[ "int FUNC_0(QIODNSResolver *VAR_0,\nSocketAddress *VAR_1,\nsize_t *VAR_2,\nSocketAddress ***VAR_3,\nError **VAR_4)\n{", "switch (VAR_1->type) {", "case SOCKET_ADDRESS_KIND_INET:\nreturn qio_dns_resolver_lookup_sync_inet(VAR_0,\nVAR_1,\nVAR_2,\nVAR_3,\nVAR_4);", "case SOCKET_ADDRESS_KIND_UNIX:\ncase SOCKET_ADD...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15, 17, 19, 21, 23, 25 ], [ 29, 31, 33, 35, 37, 39, 41, 43 ], [ 47, 49 ], [ 51 ], [ 53 ] ]
6,221
int fw_cfg_add_file(FWCfgState *s, const char *dir, const char *filename, uint8_t *data, uint32_t len) { const char *basename; int index; if (!s->files) { int dsize = sizeof(uint32_t) + sizeof(FWCfgFile) * FW_CFG_FILE_SLOTS; s->files = qemu_mallocz(dsize); ...
false
qemu
de9352bcaed2452af1d2b06b829748676c691794
int fw_cfg_add_file(FWCfgState *s, const char *dir, const char *filename, uint8_t *data, uint32_t len) { const char *basename; int index; if (!s->files) { int dsize = sizeof(uint32_t) + sizeof(FWCfgFile) * FW_CFG_FILE_SLOTS; s->files = qemu_mallocz(dsize); ...
{ "code": [], "line_no": [] }
int FUNC_0(FWCfgState *VAR_0, const char *VAR_1, const char *VAR_2, uint8_t *VAR_3, uint32_t VAR_4) { const char *VAR_5; int VAR_6; if (!VAR_0->files) { int VAR_7 = sizeof(uint32_t) + sizeof(FWCfgFile) * FW_CFG_FILE_SLOTS; VAR_0->files = qemu_mallocz(VAR_7); ...
[ "int FUNC_0(FWCfgState *VAR_0, const char *VAR_1, const char *VAR_2,\nuint8_t *VAR_3, uint32_t VAR_4)\n{", "const char *VAR_5;", "int VAR_6;", "if (!VAR_0->files) {", "int VAR_7 = sizeof(uint32_t) + sizeof(FWCfgFile) * FW_CFG_FILE_SLOTS;", "VAR_0->files = qemu_mallocz(VAR_7);", "fw_cfg_add_bytes(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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
6,222
static void mov_text_text_cb(void *priv, const char *text, int len) { MovTextContext *s = priv; av_strlcpy(s->ptr, text, FFMIN(s->end - s->ptr, len + 1)); s->ptr += len; }
false
FFmpeg
b0635e2fcf80717dd618ef75d3317d62ed85c300
static void mov_text_text_cb(void *priv, const char *text, int len) { MovTextContext *s = priv; av_strlcpy(s->ptr, text, FFMIN(s->end - s->ptr, len + 1)); s->ptr += len; }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, const char *VAR_1, int VAR_2) { MovTextContext *s = VAR_0; av_strlcpy(s->ptr, VAR_1, FFMIN(s->end - s->ptr, VAR_2 + 1)); s->ptr += VAR_2; }
[ "static void FUNC_0(void *VAR_0, const char *VAR_1, int VAR_2)\n{", "MovTextContext *s = VAR_0;", "av_strlcpy(s->ptr, VAR_1, FFMIN(s->end - s->ptr, VAR_2 + 1));", "s->ptr += VAR_2;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
6,223
void qmp_balloon(int64_t value, Error **errp) { if (kvm_enabled() && !kvm_has_sync_mmu()) { error_set(errp, QERR_KVM_MISSING_CAP, "synchronous MMU", "balloon"); return; } if (value <= 0) { error_set(errp, QERR_INVALID_PARAMETER_VALUE, "target", "a size"); return; ...
false
qemu
6502a14734e71b2f6dd079b0a1e546e6aa2d2f8d
void qmp_balloon(int64_t value, Error **errp) { if (kvm_enabled() && !kvm_has_sync_mmu()) { error_set(errp, QERR_KVM_MISSING_CAP, "synchronous MMU", "balloon"); return; } if (value <= 0) { error_set(errp, QERR_INVALID_PARAMETER_VALUE, "target", "a size"); return; ...
{ "code": [], "line_no": [] }
void FUNC_0(int64_t VAR_0, Error **VAR_1) { if (kvm_enabled() && !kvm_has_sync_mmu()) { error_set(VAR_1, QERR_KVM_MISSING_CAP, "synchronous MMU", "balloon"); return; } if (VAR_0 <= 0) { error_set(VAR_1, QERR_INVALID_PARAMETER_VALUE, "target", "a size"); return; ...
[ "void FUNC_0(int64_t VAR_0, Error **VAR_1)\n{", "if (kvm_enabled() && !kvm_has_sync_mmu()) {", "error_set(VAR_1, QERR_KVM_MISSING_CAP, \"synchronous MMU\", \"balloon\");", "return;", "}", "if (VAR_0 <= 0) {", "error_set(VAR_1, QERR_INVALID_PARAMETER_VALUE, \"target\", \"a size\");", "return;", "}", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
6,224
struct GuestFileSeek *qmp_guest_file_seek(int64_t handle, int64_t offset, int64_t whence, Error **errp) { GuestFileHandle *gfh = guest_file_handle_find(handle, errp); GuestFileSeek *seek_data = NULL; FILE *fh; int ret; if (!gfh) { return NU...
false
qemu
0a982b1bf3953dc8640c4d6e619fb1132ebbebc3
struct GuestFileSeek *qmp_guest_file_seek(int64_t handle, int64_t offset, int64_t whence, Error **errp) { GuestFileHandle *gfh = guest_file_handle_find(handle, errp); GuestFileSeek *seek_data = NULL; FILE *fh; int ret; if (!gfh) { return NU...
{ "code": [], "line_no": [] }
struct GuestFileSeek *FUNC_0(int64_t VAR_0, int64_t VAR_1, int64_t VAR_2, Error **VAR_3) { GuestFileHandle *gfh = guest_file_handle_find(VAR_0, VAR_3); GuestFileSeek *VAR_4 = NULL; FILE *fh; int VAR_5; if (!gfh) { return NULL; } ...
[ "struct GuestFileSeek *FUNC_0(int64_t VAR_0, int64_t VAR_1,\nint64_t VAR_2, Error **VAR_3)\n{", "GuestFileHandle *gfh = guest_file_handle_find(VAR_0, VAR_3);", "GuestFileSeek *VAR_4 = NULL;", "FILE *fh;", "int VAR_5;", "if (!gfh) {", "return NULL;", "}", "fh = gfh->fh;", "VAR_5 = fseek(fh, 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
6,225
static bool virtio_device_endian_needed(void *opaque) { VirtIODevice *vdev = opaque; assert(vdev->device_endian != VIRTIO_DEVICE_ENDIAN_UNKNOWN); if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) { return vdev->device_endian != virtio_default_endian(); } /* Devices conforming to VI...
false
qemu
95129d6fc9ead97155627a4ca0cfd37282883658
static bool virtio_device_endian_needed(void *opaque) { VirtIODevice *vdev = opaque; assert(vdev->device_endian != VIRTIO_DEVICE_ENDIAN_UNKNOWN); if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) { return vdev->device_endian != virtio_default_endian(); } return vdev->device_e...
{ "code": [], "line_no": [] }
static bool FUNC_0(void *opaque) { VirtIODevice *vdev = opaque; assert(vdev->device_endian != VIRTIO_DEVICE_ENDIAN_UNKNOWN); if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) { return vdev->device_endian != virtio_default_endian(); } return vdev->device_endian != VIRTIO_DEVIC...
[ "static bool FUNC_0(void *opaque)\n{", "VirtIODevice *vdev = opaque;", "assert(vdev->device_endian != VIRTIO_DEVICE_ENDIAN_UNKNOWN);", "if (!virtio_has_feature(vdev, VIRTIO_F_VERSION_1)) {", "return vdev->device_endian != virtio_default_endian();", "}", "return vdev->device_endian != VIRTIO_DEVICE_ENDIA...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ] ]
6,226
static int uhci_handle_td(UHCIState *s, uint32_t addr, UHCI_TD *td, uint32_t *int_mask) { UHCIAsync *async; int len = 0, max_len; uint8_t pid; /* Is active ? */ if (!(td->ctrl & TD_CTRL_ACTIVE)) return 1; async = uhci_async_find_td(s, addr, td->token); if (async) { ...
false
qemu
8e65b7c04965c8355e4ce43211582b6b83054e3d
static int uhci_handle_td(UHCIState *s, uint32_t addr, UHCI_TD *td, uint32_t *int_mask) { UHCIAsync *async; int len = 0, max_len; uint8_t pid; if (!(td->ctrl & TD_CTRL_ACTIVE)) return 1; async = uhci_async_find_td(s, addr, td->token); if (async) { asy...
{ "code": [], "line_no": [] }
static int FUNC_0(UHCIState *VAR_0, uint32_t VAR_1, UHCI_TD *VAR_2, uint32_t *VAR_3) { UHCIAsync *async; int VAR_4 = 0, VAR_5; uint8_t pid; if (!(VAR_2->ctrl & TD_CTRL_ACTIVE)) return 1; async = uhci_async_find_td(VAR_0, VAR_1, VAR_2->token); if (async) { ...
[ "static int FUNC_0(UHCIState *VAR_0, uint32_t VAR_1, UHCI_TD *VAR_2, uint32_t *VAR_3)\n{", "UHCIAsync *async;", "int VAR_4 = 0, VAR_5;", "uint8_t pid;", "if (!(VAR_2->ctrl & TD_CTRL_ACTIVE))\nreturn 1;", "async = uhci_async_find_td(VAR_0, VAR_1, VAR_2->token);", "if (async) {", "async->valid = 32;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 27 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49, 51 ], [ 55 ], [ 57 ], [ 59 ], [ 63 ], [...
6,227
static void omap_pwt_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { struct omap_pwt_s *s = (struct omap_pwt_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; if (size != 1) { omap_badwidth_write8(opaque, addr, value); return; } ...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static void omap_pwt_write(void *opaque, hwaddr addr, uint64_t value, unsigned size) { struct omap_pwt_s *s = (struct omap_pwt_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; if (size != 1) { omap_badwidth_write8(opaque, addr, value); return; } ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { struct omap_pwt_s *VAR_4 = (struct omap_pwt_s *) VAR_0; int VAR_5 = VAR_1 & OMAP_MPUI_REG_MASK; if (VAR_3 != 1) { omap_badwidth_write8(VAR_0, VAR_1, VAR_2); return; } ...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "struct omap_pwt_s *VAR_4 = (struct omap_pwt_s *) VAR_0;", "int VAR_5 = VAR_1 & OMAP_MPUI_REG_MASK;", "if (VAR_3 != 1) {", "omap_badwidth_write8(VAR_0, VAR_1, VAR_2);", "return;", "}", "switch (VAR_5) {", "case 0x00...
[ 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, 41, 45, 49, 53, 57, 61, 65, 67 ], [ 69, 71 ], [...
6,228
START_TEST(unterminated_array_comma) { QObject *obj = qobject_from_json("[32,"); fail_unless(obj == NULL); }
false
qemu
ef76dc59fa5203d146a2acf85a0ad5a5971a4824
START_TEST(unterminated_array_comma) { QObject *obj = qobject_from_json("[32,"); fail_unless(obj == NULL); }
{ "code": [], "line_no": [] }
FUNC_0(VAR_0) { QObject *obj = qobject_from_json("[32,"); fail_unless(obj == NULL); }
[ "FUNC_0(VAR_0)\n{", "QObject *obj = qobject_from_json(\"[32,\");", "fail_unless(obj == NULL);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
6,229
uint64_t ppc_hash64_start_access(PowerPCCPU *cpu, target_ulong pte_index) { uint64_t token = 0; hwaddr pte_offset; pte_offset = pte_index * HASH_PTE_SIZE_64; if (cpu->env.external_htab == MMU_HASH64_KVM_MANAGED_HPT) { /* * HTAB is controlled by KVM. Fetch the PTEG into a new bu...
false
qemu
1ad9f0a464fe78d30ee60b3629f7a825cf2fab13
uint64_t ppc_hash64_start_access(PowerPCCPU *cpu, target_ulong pte_index) { uint64_t token = 0; hwaddr pte_offset; pte_offset = pte_index * HASH_PTE_SIZE_64; if (cpu->env.external_htab == MMU_HASH64_KVM_MANAGED_HPT) { token = kvmppc_hash64_read_pteg(cpu, pte_index); } ...
{ "code": [], "line_no": [] }
uint64_t FUNC_0(PowerPCCPU *cpu, target_ulong pte_index) { uint64_t token = 0; hwaddr pte_offset; pte_offset = pte_index * HASH_PTE_SIZE_64; if (cpu->env.external_htab == MMU_HASH64_KVM_MANAGED_HPT) { token = kvmppc_hash64_read_pteg(cpu, pte_index); } else if (cpu->env...
[ "uint64_t FUNC_0(PowerPCCPU *cpu, target_ulong pte_index)\n{", "uint64_t token = 0;", "hwaddr pte_offset;", "pte_offset = pte_index * HASH_PTE_SIZE_64;", "if (cpu->env.external_htab == MMU_HASH64_KVM_MANAGED_HPT) {", "token = kvmppc_hash64_read_pteg(cpu, pte_index);", "} else if (cpu->env.external_htab)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 21 ], [ 23 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
6,230
static inline void gen_neon_negl(TCGv var, int size) { switch (size) { case 0: gen_helper_neon_negl_u16(var, var); break; case 1: gen_helper_neon_negl_u32(var, var); break; case 2: gen_helper_neon_negl_u64(var, var); break; default: abort(); } }
false
qemu
a7812ae412311d7d47f8aa85656faadac9d64b56
static inline void gen_neon_negl(TCGv var, int size) { switch (size) { case 0: gen_helper_neon_negl_u16(var, var); break; case 1: gen_helper_neon_negl_u32(var, var); break; case 2: gen_helper_neon_negl_u64(var, var); break; default: abort(); } }
{ "code": [], "line_no": [] }
static inline void FUNC_0(TCGv VAR_0, int VAR_1) { switch (VAR_1) { case 0: gen_helper_neon_negl_u16(VAR_0, VAR_0); break; case 1: gen_helper_neon_negl_u32(VAR_0, VAR_0); break; case 2: gen_helper_neon_negl_u64(VAR_0, VAR_0); break; default: abort(); } }
[ "static inline void FUNC_0(TCGv VAR_0, int VAR_1)\n{", "switch (VAR_1) {", "case 0: gen_helper_neon_negl_u16(VAR_0, VAR_0); break;", "case 1: gen_helper_neon_negl_u32(VAR_0, VAR_0); break;", "case 2: gen_helper_neon_negl_u64(VAR_0, VAR_0); break;", "default: abort();", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
6,231
void curses_display_init(DisplayState *ds, int full_screen) { #ifndef _WIN32 if (!isatty(1)) { fprintf(stderr, "We need a terminal output\n"); exit(1); } #endif curses_setup(); curses_keyboard_setup(); atexit(curses_atexit); #ifndef _WIN32 signal(SIGINT, SIG_DFL);...
false
qemu
5b08fc106d3146ddc1447d82d4770fc402fc363b
void curses_display_init(DisplayState *ds, int full_screen) { #ifndef _WIN32 if (!isatty(1)) { fprintf(stderr, "We need a terminal output\n"); exit(1); } #endif curses_setup(); curses_keyboard_setup(); atexit(curses_atexit); #ifndef _WIN32 signal(SIGINT, SIG_DFL);...
{ "code": [], "line_no": [] }
void FUNC_0(DisplayState *VAR_0, int VAR_1) { #ifndef _WIN32 if (!isatty(1)) { fprintf(stderr, "We need a terminal output\n"); exit(1); } #endif curses_setup(); curses_keyboard_setup(); atexit(curses_atexit); #ifndef _WIN32 signal(SIGINT, SIG_DFL); signal(SIG...
[ "void FUNC_0(DisplayState *VAR_0, int VAR_1)\n{", "#ifndef _WIN32\nif (!isatty(1)) {", "fprintf(stderr, \"We need a terminal output\\n\");", "exit(1);", "}", "#endif\ncurses_setup();", "curses_keyboard_setup();", "atexit(curses_atexit);", "#ifndef _WIN32\nsignal(SIGINT, SIG_DFL);", "signal(SIGQUIT...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 33, 39 ], [ 41, 43, 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ...
6,232
void qio_channel_socket_dgram_async(QIOChannelSocket *ioc, SocketAddress *localAddr, SocketAddress *remoteAddr, QIOTaskFunc callback, gpointer opaque, ...
false
qemu
dfd100f242370886bb6732f70f1f7cbd8eb9fedc
void qio_channel_socket_dgram_async(QIOChannelSocket *ioc, SocketAddress *localAddr, SocketAddress *remoteAddr, QIOTaskFunc callback, gpointer opaque, ...
{ "code": [], "line_no": [] }
void FUNC_0(QIOChannelSocket *VAR_0, SocketAddress *VAR_1, SocketAddress *VAR_2, QIOTaskFunc VAR_3, gpointer VAR_4, GDestroyNotify VAR_...
[ "void FUNC_0(QIOChannelSocket *VAR_0,\nSocketAddress *VAR_1,\nSocketAddress *VAR_2,\nQIOTaskFunc VAR_3,\ngpointer VAR_4,\nGDestroyNotify VAR_5)\n{", "QIOTask *task = qio_task_new(\nOBJECT(VAR_0), VAR_3, VAR_4, VAR_5);", "struct QIOChannelSocketDGramWorkerData *VAR_6 = g_new0(\nstruct QIOChannelSocketDGramWorker...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15, 17 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35, 37, 39 ], [ 41 ] ]
6,233
static av_cold int libx265_encode_init(AVCodecContext *avctx) { libx265Context *ctx = avctx->priv_data; ctx->api = x265_api_get(av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth_minus1 + 1); if (!ctx->api) ctx->api = x265_api_get(0); if (avctx->strict_std_compliance > FF_COMPLIANCE_EX...
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int libx265_encode_init(AVCodecContext *avctx) { libx265Context *ctx = avctx->priv_data; ctx->api = x265_api_get(av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth_minus1 + 1); if (!ctx->api) ctx->api = x265_api_get(0); if (avctx->strict_std_compliance > FF_COMPLIANCE_EX...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { libx265Context *ctx = avctx->priv_data; ctx->api = x265_api_get(av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth_minus1 + 1); if (!ctx->api) ctx->api = x265_api_get(0); if (avctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL &&...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "libx265Context *ctx = avctx->priv_data;", "ctx->api = x265_api_get(av_pix_fmt_desc_get(avctx->pix_fmt)->comp[0].depth_minus1 + 1);", "if (!ctx->api)\nctx->api = x265_api_get(0);", "if (avctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL &&\n!av_p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 17, 19 ], [ 21, 23, 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
6,234
static uint32_t set_allocation_state(sPAPRDRConnector *drc, sPAPRDRAllocationState state) { sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc); trace_spapr_drc_set_allocation_state(get_index(drc), state); if (state == SPAPR_DR_ALLOCATION_STATE_USABL...
false
qemu
318347234d7069b62d38391dd27e269a3107d668
static uint32_t set_allocation_state(sPAPRDRConnector *drc, sPAPRDRAllocationState state) { sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc); trace_spapr_drc_set_allocation_state(get_index(drc), state); if (state == SPAPR_DR_ALLOCATION_STATE_USABL...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(sPAPRDRConnector *drc, sPAPRDRAllocationState state) { sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc); trace_spapr_drc_set_allocation_state(get_index(drc), state); if (state == SPAPR_DR_ALLOCATION_STATE_USABLE) { ...
[ "static uint32_t FUNC_0(sPAPRDRConnector *drc,\nsPAPRDRAllocationState state)\n{", "sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_GET_CLASS(drc);", "trace_spapr_drc_set_allocation_state(get_index(drc), state);", "if (state == SPAPR_DR_ALLOCATION_STATE_USABLE) {", "if (!drc->dev) {", "return RTAS_OUT_NO...
[ 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 ], [ 15 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], [ 61 ], [ 63, 65 ], [ 67 ], [ 69, 71 ], [ 73 ], ...
6,235
static void vfio_pci_reset_handler(void *opaque) { VFIOGroup *group; VFIOPCIDevice *vdev; QLIST_FOREACH(group, &group_list, next) { QLIST_FOREACH(vdev, &group->device_list, next) { if (!vdev->reset_works || (!vdev->has_flr && vdev->has_pm_reset)) { vdev->needs_re...
false
qemu
b47d8efa9f430c332bf96ce6eede169eb48422ad
static void vfio_pci_reset_handler(void *opaque) { VFIOGroup *group; VFIOPCIDevice *vdev; QLIST_FOREACH(group, &group_list, next) { QLIST_FOREACH(vdev, &group->device_list, next) { if (!vdev->reset_works || (!vdev->has_flr && vdev->has_pm_reset)) { vdev->needs_re...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { VFIOGroup *group; VFIOPCIDevice *vdev; QLIST_FOREACH(group, &group_list, next) { QLIST_FOREACH(vdev, &group->device_list, next) { if (!vdev->reset_works || (!vdev->has_flr && vdev->has_pm_reset)) { vdev->needs_reset = true; ...
[ "static void FUNC_0(void *VAR_0)\n{", "VFIOGroup *group;", "VFIOPCIDevice *vdev;", "QLIST_FOREACH(group, &group_list, next) {", "QLIST_FOREACH(vdev, &group->device_list, next) {", "if (!vdev->reset_works || (!vdev->has_flr && vdev->has_pm_reset)) {", "vdev->needs_reset = true;", "}", "}", "}", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
6,236
static void virt_machine_class_init(ObjectClass *oc, void *data) { MachineClass *mc = MACHINE_CLASS(oc); mc->init = machvirt_init; /* Start max_cpus at the maximum QEMU supports. We'll further restrict * it later in machvirt_init, where we have more information about the * configuration of...
false
qemu
079019f2e319bd1279681b6c1d7dde785d09e69e
static void virt_machine_class_init(ObjectClass *oc, void *data) { MachineClass *mc = MACHINE_CLASS(oc); mc->init = machvirt_init; mc->max_cpus = MAX_CPUMASK_BITS; mc->has_dynamic_sysbus = true; mc->block_default_type = IF_VIRTIO; mc->no_cdrom = 1; mc->pci_allow_0_addre...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { MachineClass *mc = MACHINE_CLASS(VAR_0); mc->init = machvirt_init; mc->max_cpus = MAX_CPUMASK_BITS; mc->has_dynamic_sysbus = true; mc->block_default_type = IF_VIRTIO; mc->no_cdrom = 1; mc->pci_allow_0_address = true;...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "MachineClass *mc = MACHINE_CLASS(VAR_0);", "mc->init = machvirt_init;", "mc->max_cpus = MAX_CPUMASK_BITS;", "mc->has_dynamic_sysbus = true;", "mc->block_default_type = IF_VIRTIO;", "mc->no_cdrom = 1;", "mc->pci_allow_0_address = true;", "}" ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
6,237
static void xtensa_lx60_init(MachineState *machine) { static const LxBoardDesc lx60_board = { .flash_base = 0xf8000000, .flash_size = 0x00400000, .flash_sector_size = 0x10000, .sram_size = 0x20000, }; lx_init(&lx60_board, machine); }
false
qemu
68931a4082812f56657b39168e815c48f0ab0a8c
static void xtensa_lx60_init(MachineState *machine) { static const LxBoardDesc lx60_board = { .flash_base = 0xf8000000, .flash_size = 0x00400000, .flash_sector_size = 0x10000, .sram_size = 0x20000, }; lx_init(&lx60_board, machine); }
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0) { static const LxBoardDesc VAR_1 = { .flash_base = 0xf8000000, .flash_size = 0x00400000, .flash_sector_size = 0x10000, .sram_size = 0x20000, }; lx_init(&VAR_1, VAR_0); }
[ "static void FUNC_0(MachineState *VAR_0)\n{", "static const LxBoardDesc VAR_1 = {", ".flash_base = 0xf8000000,\n.flash_size = 0x00400000,\n.flash_sector_size = 0x10000,\n.sram_size = 0x20000,\n};", "lx_init(&VAR_1, VAR_0);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11, 13, 15 ], [ 17 ], [ 19 ] ]
6,238
int udp_output2(struct socket *so, struct mbuf *m, struct sockaddr_in *saddr, struct sockaddr_in *daddr, int iptos) { register struct udpiphdr *ui; int error = 0; DEBUG_CALL("udp_output"); DEBUG_ARG("so = %p", so); DEBUG_ARG("m = %p", m); DEBUG_ARG("saddr = %lx", (long)s...
false
qemu
5379229a2708df3a1506113315214c3ce5325859
int udp_output2(struct socket *so, struct mbuf *m, struct sockaddr_in *saddr, struct sockaddr_in *daddr, int iptos) { register struct udpiphdr *ui; int error = 0; DEBUG_CALL("udp_output"); DEBUG_ARG("so = %p", so); DEBUG_ARG("m = %p", m); DEBUG_ARG("saddr = %lx", (long)s...
{ "code": [], "line_no": [] }
int FUNC_0(struct socket *VAR_0, struct mbuf *VAR_1, struct sockaddr_in *VAR_2, struct sockaddr_in *VAR_3, int VAR_4) { register struct udpiphdr *VAR_5; int VAR_6 = 0; DEBUG_CALL("udp_output"); DEBUG_ARG("VAR_0 = %p", VAR_0); DEBUG_ARG("VAR_1 = %p", VAR_1); DEBUG_ARG("VA...
[ "int FUNC_0(struct socket *VAR_0, struct mbuf *VAR_1,\nstruct sockaddr_in *VAR_2, struct sockaddr_in *VAR_3,\nint VAR_4)\n{", "register struct udpiphdr *VAR_5;", "int VAR_6 = 0;", "DEBUG_CALL(\"udp_output\");", "DEBUG_ARG(\"VAR_0 = %p\", VAR_0);", "DEBUG_ARG(\"VAR_1 = %p\", VAR_1);", "DEBUG_ARG(\"VAR_2 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 33 ], [ 35 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ...
6,239
static void sigp_initial_cpu_reset(CPUState *cs, run_on_cpu_data arg) { S390CPU *cpu = S390_CPU(cs); S390CPUClass *scc = S390_CPU_GET_CLASS(cpu); SigpInfo *si = arg.host_ptr; cpu_synchronize_state(cs); scc->initial_cpu_reset(cs); cpu_synchronize_post_reset(cs); si->cc = SIGP_CC_ORD...
false
qemu
74b4c74d5efb0a489bdf0acc5b5d0197167e7649
static void sigp_initial_cpu_reset(CPUState *cs, run_on_cpu_data arg) { S390CPU *cpu = S390_CPU(cs); S390CPUClass *scc = S390_CPU_GET_CLASS(cpu); SigpInfo *si = arg.host_ptr; cpu_synchronize_state(cs); scc->initial_cpu_reset(cs); cpu_synchronize_post_reset(cs); si->cc = SIGP_CC_ORD...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUState *VAR_0, run_on_cpu_data VAR_1) { S390CPU *cpu = S390_CPU(VAR_0); S390CPUClass *scc = S390_CPU_GET_CLASS(cpu); SigpInfo *si = VAR_1.host_ptr; cpu_synchronize_state(VAR_0); scc->initial_cpu_reset(VAR_0); cpu_synchronize_post_reset(VAR_0); si->cc = SIGP_CC_...
[ "static void FUNC_0(CPUState *VAR_0, run_on_cpu_data VAR_1)\n{", "S390CPU *cpu = S390_CPU(VAR_0);", "S390CPUClass *scc = S390_CPU_GET_CLASS(cpu);", "SigpInfo *si = VAR_1.host_ptr;", "cpu_synchronize_state(VAR_0);", "scc->initial_cpu_reset(VAR_0);", "cpu_synchronize_post_reset(VAR_0);", "si->cc = SIGP_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
6,240
void cris_cpu_list(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) { unsigned int i; (*cpu_fprintf)(f, "Available CPUs:\n"); for (i = 0; i < ARRAY_SIZE(cris_cores); i++) { (*cpu_fprintf)(f, " %s\n", cris_cores[i].name); } }
false
qemu
9a78eead0c74333a394c0f7bbfc4423ac746fcd5
void cris_cpu_list(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) { unsigned int i; (*cpu_fprintf)(f, "Available CPUs:\n"); for (i = 0; i < ARRAY_SIZE(cris_cores); i++) { (*cpu_fprintf)(f, " %s\n", cris_cores[i].name); } }
{ "code": [], "line_no": [] }
void FUNC_0(FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...)) { unsigned int VAR_3; (*VAR_1)(VAR_2, "Available CPUs:\n"); for (VAR_3 = 0; VAR_3 < ARRAY_SIZE(cris_cores); VAR_3++) { (*VAR_1)(VAR_2, " %s\n", cris_cores[VAR_3].name); } }
[ "void FUNC_0(FILE *VAR_2, int (*VAR_1)(FILE *VAR_2, const char *VAR_2, ...))\n{", "unsigned int VAR_3;", "(*VAR_1)(VAR_2, \"Available CPUs:\\n\");", "for (VAR_3 = 0; VAR_3 < ARRAY_SIZE(cris_cores); VAR_3++) {", "(*VAR_1)(VAR_2, \" %s\\n\", cris_cores[VAR_3].name);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
6,242
void GCC_FMT_ATTR(2, 3) virtio_error(VirtIODevice *vdev, const char *fmt, ...) { va_list ap; va_start(ap, fmt); error_vreport(fmt, ap); va_end(ap); vdev->broken = true; if (virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1)) { virtio_set_status(vdev, vdev->status | VIRTIO_CO...
false
qemu
66453cff9e5e75344c601cd7674c8ef5fefee8a6
void GCC_FMT_ATTR(2, 3) virtio_error(VirtIODevice *vdev, const char *fmt, ...) { va_list ap; va_start(ap, fmt); error_vreport(fmt, ap); va_end(ap); vdev->broken = true; if (virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1)) { virtio_set_status(vdev, vdev->status | VIRTIO_CO...
{ "code": [], "line_no": [] }
void GCC_FMT_ATTR(2, 3) virtio_error(VirtIODevice *vdev, const char *fmt, ...) { va_list ap; va_start(ap, fmt); error_vreport(fmt, ap); va_end(ap); vdev->broken = true; if (virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1)) { virtio_set_status(vdev, vdev->status | VIRTIO_CO...
[ "void GCC_FMT_ATTR(2, 3) virtio_error(VirtIODevice *vdev, const char *fmt, ...)\n{", "va_list ap;", "va_start(ap, fmt);", "error_vreport(fmt, ap);", "va_end(ap);", "vdev->broken = true;", "if (virtio_vdev_has_feature(vdev, VIRTIO_F_VERSION_1)) {", "virtio_set_status(vdev, vdev->status | VIRTIO_CONFIG_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
6,244
const char *avcodec_configuration(void) { return FFMPEG_CONFIGURATION; }
false
FFmpeg
29ba091136a5e04574f7bfc1b17536c923958f6f
const char *avcodec_configuration(void) { return FFMPEG_CONFIGURATION; }
{ "code": [], "line_no": [] }
const char *FUNC_0(void) { return FFMPEG_CONFIGURATION; }
[ "const char *FUNC_0(void)\n{", "return FFMPEG_CONFIGURATION;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
6,245
av_cold void ff_ps_ctx_init(PSContext *ps) { ipdopd_reset(ps->ipd_hist, ps->opd_hist); }
false
FFmpeg
e90e1f558a194ef75e396ac9ae5128be03e66362
av_cold void ff_ps_ctx_init(PSContext *ps) { ipdopd_reset(ps->ipd_hist, ps->opd_hist); }
{ "code": [], "line_no": [] }
av_cold void FUNC_0(PSContext *ps) { ipdopd_reset(ps->ipd_hist, ps->opd_hist); }
[ "av_cold void FUNC_0(PSContext *ps)\n{", "ipdopd_reset(ps->ipd_hist, ps->opd_hist);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
6,246
void omap_mpuio_key(struct omap_mpuio_s *s, int row, int col, int down) { if (row >= 5 || row < 0) hw_error("%s: No key %i-%i\n", __FUNCTION__, col, row); if (down) s->buttons[row] |= 1 << col; else s->buttons[row] &= ~(1 << col); omap_mpuio_kbd_update(s); }
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
void omap_mpuio_key(struct omap_mpuio_s *s, int row, int col, int down) { if (row >= 5 || row < 0) hw_error("%s: No key %i-%i\n", __FUNCTION__, col, row); if (down) s->buttons[row] |= 1 << col; else s->buttons[row] &= ~(1 << col); omap_mpuio_kbd_update(s); }
{ "code": [], "line_no": [] }
void FUNC_0(struct omap_mpuio_s *VAR_0, int VAR_1, int VAR_2, int VAR_3) { if (VAR_1 >= 5 || VAR_1 < 0) hw_error("%VAR_0: No key %i-%i\n", __FUNCTION__, VAR_2, VAR_1); if (VAR_3) VAR_0->buttons[VAR_1] |= 1 << VAR_2; else VAR_0->buttons[VAR_1] &= ~(1 << VAR_2); omap_mp...
[ "void FUNC_0(struct omap_mpuio_s *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "if (VAR_1 >= 5 || VAR_1 < 0)\nhw_error(\"%VAR_0: No key %i-%i\\n\", __FUNCTION__, VAR_2, VAR_1);", "if (VAR_3)\nVAR_0->buttons[VAR_1] |= 1 << VAR_2;", "else\nVAR_0->buttons[VAR_1] &= ~(1 << VAR_2);", "omap_mpuio_kbd_update(VAR_0...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11, 13 ], [ 15, 17 ], [ 21 ], [ 23 ] ]
6,247
int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc) { int bps, blkalign, bytespersec; int hdrsize = 18; int waveformatextensible; uint8_t temp[256]; uint8_t *riff_extradata= temp; uint8_t *riff_extradata_start= temp; if(!enc->codec_tag || enc->codec_tag > 0xffff) r...
false
FFmpeg
2c4e08d89327595f7f4be57dda4b3775e1198d5e
int ff_put_wav_header(AVIOContext *pb, AVCodecContext *enc) { int bps, blkalign, bytespersec; int hdrsize = 18; int waveformatextensible; uint8_t temp[256]; uint8_t *riff_extradata= temp; uint8_t *riff_extradata_start= temp; if(!enc->codec_tag || enc->codec_tag > 0xffff) r...
{ "code": [], "line_no": [] }
int FUNC_0(AVIOContext *VAR_0, AVCodecContext *VAR_1) { int VAR_2, VAR_3, VAR_4; int VAR_5 = 18; int VAR_6; uint8_t temp[256]; uint8_t *riff_extradata= temp; uint8_t *riff_extradata_start= temp; if(!VAR_1->codec_tag || VAR_1->codec_tag > 0xffff) return -1; VAR_6 = (...
[ "int FUNC_0(AVIOContext *VAR_0, AVCodecContext *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "int VAR_5 = 18;", "int VAR_6;", "uint8_t temp[256];", "uint8_t *riff_extradata= temp;", "uint8_t *riff_extradata_start= temp;", "if(!VAR_1->codec_tag || VAR_1->codec_tag > 0xffff)\nreturn -1;", "VAR_6 = (VAR_1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23, 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
6,248
static void check_watchpoint(int offset, int len, MemTxAttrs attrs, int flags) { CPUState *cpu = current_cpu; CPUClass *cc = CPU_GET_CLASS(cpu); CPUArchState *env = cpu->env_ptr; target_ulong pc, cs_base; target_ulong vaddr; CPUWatchpoint *wp; uint32_t cpu_flags; assert(tcg_en...
false
qemu
9b990ee5a3cc6aa38f81266fb0c6ef37a36c45b9
static void check_watchpoint(int offset, int len, MemTxAttrs attrs, int flags) { CPUState *cpu = current_cpu; CPUClass *cc = CPU_GET_CLASS(cpu); CPUArchState *env = cpu->env_ptr; target_ulong pc, cs_base; target_ulong vaddr; CPUWatchpoint *wp; uint32_t cpu_flags; assert(tcg_en...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, int VAR_1, MemTxAttrs VAR_2, int VAR_3) { CPUState *cpu = current_cpu; CPUClass *cc = CPU_GET_CLASS(cpu); CPUArchState *env = cpu->env_ptr; target_ulong pc, cs_base; target_ulong vaddr; CPUWatchpoint *wp; uint32_t cpu_flags; assert(tcg_enabled());...
[ "static void FUNC_0(int VAR_0, int VAR_1, MemTxAttrs VAR_2, int VAR_3)\n{", "CPUState *cpu = current_cpu;", "CPUClass *cc = CPU_GET_CLASS(cpu);", "CPUArchState *env = cpu->env_ptr;", "target_ulong pc, cs_base;", "target_ulong vaddr;", "CPUWatchpoint *wp;", "uint32_t cpu_flags;", "assert(tcg_enabled(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
6,249
dbdma_control_write(DBDMA_channel *ch) { uint16_t mask, value; uint32_t status; mask = (ch->regs[DBDMA_CONTROL] >> 16) & 0xffff; value = ch->regs[DBDMA_CONTROL] & 0xffff; value &= (RUN | PAUSE | FLUSH | WAKE | DEVSTAT); status = ch->regs[DBDMA_STATUS]; status = (value & mask)...
false
qemu
a9ceb76d55abfed9426a819024aa3a4b87266c9f
dbdma_control_write(DBDMA_channel *ch) { uint16_t mask, value; uint32_t status; mask = (ch->regs[DBDMA_CONTROL] >> 16) & 0xffff; value = ch->regs[DBDMA_CONTROL] & 0xffff; value &= (RUN | PAUSE | FLUSH | WAKE | DEVSTAT); status = ch->regs[DBDMA_STATUS]; status = (value & mask)...
{ "code": [], "line_no": [] }
FUNC_0(DBDMA_channel *VAR_0) { uint16_t mask, value; uint32_t status; mask = (VAR_0->regs[DBDMA_CONTROL] >> 16) & 0xffff; value = VAR_0->regs[DBDMA_CONTROL] & 0xffff; value &= (RUN | PAUSE | FLUSH | WAKE | DEVSTAT); status = VAR_0->regs[DBDMA_STATUS]; status = (value & mask) ...
[ "FUNC_0(DBDMA_channel *VAR_0)\n{", "uint16_t mask, value;", "uint32_t status;", "mask = (VAR_0->regs[DBDMA_CONTROL] >> 16) & 0xffff;", "value = VAR_0->regs[DBDMA_CONTROL] & 0xffff;", "value &= (RUN | PAUSE | FLUSH | WAKE | DEVSTAT);", "status = VAR_0->regs[DBDMA_STATUS];", "status = (value & mask) | (...
[ 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 ], [ 21 ], [ 25 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 49 ], [ 51 ], [ 55 ], [ 59...
6,250
static bool get_phys_addr_lpae(CPUARMState *env, target_ulong address, int access_type, ARMMMUIdx mmu_idx, hwaddr *phys_ptr, MemTxAttrs *txattrs, int *prot, target_ulong *page_size_ptr, uint32_t *fsr, ...
false
qemu
6e99f762612827afeff54add2e4fc2c3b2657fed
static bool get_phys_addr_lpae(CPUARMState *env, target_ulong address, int access_type, ARMMMUIdx mmu_idx, hwaddr *phys_ptr, MemTxAttrs *txattrs, int *prot, target_ulong *page_size_ptr, uint32_t *fsr, ...
{ "code": [], "line_no": [] }
static bool FUNC_0(CPUARMState *env, target_ulong address, int access_type, ARMMMUIdx mmu_idx, hwaddr *phys_ptr, MemTxAttrs *txattrs, int *prot, target_ulong *page_size_ptr, uint32_t *fsr, ARM...
[ "static bool FUNC_0(CPUARMState *env, target_ulong address,\nint access_type, ARMMMUIdx mmu_idx,\nhwaddr *phys_ptr, MemTxAttrs *txattrs, int *prot,\ntarget_ulong *page_size_ptr, uint32_t *fsr,\nARMMMUFaultInfo *fi)\n{", "ARMCPU *cpu = arm_env_get_cpu(env);", "CPUState *cs = CPU(cpu);", "MMUFaultType fault_typ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
6,252
static void monitor_parse(const char *optarg, const char *mode, bool pretty) { static int monitor_device_index = 0; Error *local_err = NULL; QemuOpts *opts; const char *p; char label[32]; int def = 0; if (strstart(optarg, "chardev:", &p)) { snprintf(label, sizeof(label), "...
false
qemu
f61eddcb2bb5cbbdd1d911b7e937db9affc29028
static void monitor_parse(const char *optarg, const char *mode, bool pretty) { static int monitor_device_index = 0; Error *local_err = NULL; QemuOpts *opts; const char *p; char label[32]; int def = 0; if (strstart(optarg, "chardev:", &p)) { snprintf(label, sizeof(label), "...
{ "code": [], "line_no": [] }
static void FUNC_0(const char *VAR_0, const char *VAR_1, bool VAR_2) { static int VAR_3 = 0; Error *local_err = NULL; QemuOpts *opts; const char *VAR_4; char VAR_5[32]; int VAR_6 = 0; if (strstart(VAR_0, "chardev:", &VAR_4)) { snprintf(VAR_5, sizeof(VAR_5), "%s", VAR_4); ...
[ "static void FUNC_0(const char *VAR_0, const char *VAR_1, bool VAR_2)\n{", "static int VAR_3 = 0;", "Error *local_err = NULL;", "QemuOpts *opts;", "const char *VAR_4;", "char VAR_5[32];", "int VAR_6 = 0;", "if (strstart(VAR_0, \"chardev:\", &VAR_4)) {", "snprintf(VAR_5, sizeof(VAR_5), \"%s\", VAR_4)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
6,253
void drive_hot_add(Monitor *mon, const QDict *qdict) { int dom, pci_bus; unsigned slot; int type, bus; int success = 0; PCIDevice *dev; DriveInfo *dinfo; const char *pci_addr = qdict_get_str(qdict, "pci_addr"); const char *opts = qdict_get_str(qdict, "opts"); BusState *scsi...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
void drive_hot_add(Monitor *mon, const QDict *qdict) { int dom, pci_bus; unsigned slot; int type, bus; int success = 0; PCIDevice *dev; DriveInfo *dinfo; const char *pci_addr = qdict_get_str(qdict, "pci_addr"); const char *opts = qdict_get_str(qdict, "opts"); BusState *scsi...
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { int VAR_2, VAR_3; unsigned VAR_4; int VAR_5, VAR_6; int VAR_7 = 0; PCIDevice *dev; DriveInfo *dinfo; const char *VAR_8 = qdict_get_str(VAR_1, "VAR_8"); const char *VAR_9 = qdict_get_str(VAR_1, "VAR_9"); BusState *scsibus; ...
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "int VAR_2, VAR_3;", "unsigned VAR_4;", "int VAR_5, VAR_6;", "int VAR_7 = 0;", "PCIDevice *dev;", "DriveInfo *dinfo;", "const char *VAR_8 = qdict_get_str(VAR_1, \"VAR_8\");", "const char *VAR_9 = qdict_get_str(VAR_1, \"VAR_9\");", "BusState *sc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47,...
6,254
build_append_notify(GArray *device, const char *name, const char *format, int skip, int count) { int i; GArray *method = build_alloc_array(); uint8_t op = 0x14; /* MethodOp */ build_append_nameseg(method, "%s", name); build_append_byte(method, 0x02); /* MethodFlags: ArgC...
false
qemu
99fd437dee468609de8218f0eb3b16621fb6a9c9
build_append_notify(GArray *device, const char *name, const char *format, int skip, int count) { int i; GArray *method = build_alloc_array(); uint8_t op = 0x14; build_append_nameseg(method, "%s", name); build_append_byte(method, 0x02); for (i = skip; i < count; i+...
{ "code": [], "line_no": [] }
FUNC_0(GArray *VAR_0, const char *VAR_1, const char *VAR_2, int VAR_3, int VAR_4) { int VAR_5; GArray *method = build_alloc_array(); uint8_t op = 0x14; build_append_nameseg(method, "%s", VAR_1); build_append_byte(method, 0x02); for (VAR_5 = VAR_3; VAR_5 < VAR_4; V...
[ "FUNC_0(GArray *VAR_0, const char *VAR_1,\nconst char *VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5;", "GArray *method = build_alloc_array();", "uint8_t op = 0x14;", "build_append_nameseg(method, \"%s\", VAR_1);", "build_append_byte(method, 0x02);", "for (VAR_5 = VAR_3; VAR_5 < VAR_4; VAR_5++) {", "GA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ] ]
6,255
void virtio_input_send(VirtIOInput *vinput, virtio_input_event *event) { VirtQueueElement *elem; unsigned have, need; int i, len; if (!vinput->active) { return; } /* queue up events ... */ if (vinput->qindex == vinput->qsize) { vinput->qsize++; vinput->...
false
qemu
57094547dfea4ce784923b8abb53ac3ab4e3961a
void virtio_input_send(VirtIOInput *vinput, virtio_input_event *event) { VirtQueueElement *elem; unsigned have, need; int i, len; if (!vinput->active) { return; } if (vinput->qindex == vinput->qsize) { vinput->qsize++; vinput->queue = g_realloc(vinput-...
{ "code": [], "line_no": [] }
void FUNC_0(VirtIOInput *VAR_0, virtio_input_event *VAR_1) { VirtQueueElement *elem; unsigned VAR_2, VAR_3; int VAR_4, VAR_5; if (!VAR_0->active) { return; } if (VAR_0->qindex == VAR_0->qsize) { VAR_0->qsize++; VAR_0->queue = g_realloc(VAR_0->queue, VA...
[ "void FUNC_0(VirtIOInput *VAR_0, virtio_input_event *VAR_1)\n{", "VirtQueueElement *elem;", "unsigned VAR_2, VAR_3;", "int VAR_4, VAR_5;", "if (!VAR_0->active) {", "return;", "}", "if (VAR_0->qindex == VAR_0->qsize) {", "VAR_0->qsize++;", "VAR_0->queue = g_realloc(VAR_0->queue, VAR_0->qsize *\nsiz...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ...
6,256
int bdrv_aio_multiwrite(BlockDriverState *bs, BlockRequest *reqs, int num_reqs) { MultiwriteCB *mcb; int i; /* don't submit writes if we don't have a medium */ if (bs->drv == NULL) { for (i = 0; i < num_reqs; i++) { reqs[i].error = -ENOMEDIUM; } return -1; ...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
int bdrv_aio_multiwrite(BlockDriverState *bs, BlockRequest *reqs, int num_reqs) { MultiwriteCB *mcb; int i; if (bs->drv == NULL) { for (i = 0; i < num_reqs; i++) { reqs[i].error = -ENOMEDIUM; } return -1; } if (num_reqs == 0) { return ...
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, BlockRequest *VAR_1, int VAR_2) { MultiwriteCB *mcb; int VAR_3; if (VAR_0->drv == NULL) { for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) { VAR_1[VAR_3].error = -ENOMEDIUM; } return -1; } if (VAR_2 == 0) { r...
[ "int FUNC_0(BlockDriverState *VAR_0, BlockRequest *VAR_1, int VAR_2)\n{", "MultiwriteCB *mcb;", "int VAR_3;", "if (VAR_0->drv == NULL) {", "for (VAR_3 = 0; VAR_3 < VAR_2; VAR_3++) {", "VAR_1[VAR_3].error = -ENOMEDIUM;", "}", "return -1;", "}", "if (VAR_2 == 0) {", "return 0;", "}", "mcb = g_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 57...
6,257
static void omap_sti_fifo_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_sti_s *s = (struct omap_sti_s *) opaque; int ch = addr >> 6; uint8_t byte = value; if (size != 1) { return omap_badwidth_write8(opaque, add...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void omap_sti_fifo_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_sti_s *s = (struct omap_sti_s *) opaque; int ch = addr >> 6; uint8_t byte = value; if (size != 1) { return omap_badwidth_write8(opaque, add...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { struct omap_sti_s *VAR_4 = (struct omap_sti_s *) VAR_0; int VAR_5 = VAR_1 >> 6; uint8_t byte = VAR_2; if (VAR_3 != 1) { return omap_badwidth_write8(VAR_0, VAR_1, V...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "struct omap_sti_s *VAR_4 = (struct omap_sti_s *) VAR_0;", "int VAR_5 = VAR_1 >> 6;", "uint8_t byte = VAR_2;", "if (VAR_3 != 1) {", "return omap_badwidth_write8(VAR_0, VAR_1, VAR_3);", "}", "if (VAR_5 == S...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ] ]
6,258
static void active_parameter_sets(HEVCContext *s) { GetBitContext *gb = &s->HEVClc->gb; int num_sps_ids_minus1; int i; get_bits(gb, 4); // active_video_parameter_set_id get_bits(gb, 1); // self_contained_cvs_flag get_bits(gb, 1); // num_sps_ids_minus1 num_sps_ids_minus1 = get_ue_go...
false
FFmpeg
63a37d0e1ec59377af9fb7973ffc847f928ba851
static void active_parameter_sets(HEVCContext *s) { GetBitContext *gb = &s->HEVClc->gb; int num_sps_ids_minus1; int i; get_bits(gb, 4); get_bits(gb, 1); get_bits(gb, 1); num_sps_ids_minus1 = get_ue_golomb_long(gb); s->active_seq_parameter_set_id = get_ue_golomb_long(gb);...
{ "code": [], "line_no": [] }
static void FUNC_0(HEVCContext *VAR_0) { GetBitContext *gb = &VAR_0->HEVClc->gb; int VAR_1; int VAR_2; get_bits(gb, 4); get_bits(gb, 1); get_bits(gb, 1); VAR_1 = get_ue_golomb_long(gb); VAR_0->active_seq_parameter_set_id = get_ue_golomb_long(gb); for (VAR_2 = 1; V...
[ "static void FUNC_0(HEVCContext *VAR_0)\n{", "GetBitContext *gb = &VAR_0->HEVClc->gb;", "int VAR_1;", "int VAR_2;", "get_bits(gb, 4);", "get_bits(gb, 1);", "get_bits(gb, 1);", "VAR_1 = get_ue_golomb_long(gb);", "VAR_0->active_seq_parameter_set_id = get_ue_golomb_long(gb);", "for (VAR_2 = 1; VAR_2 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ] ]
6,259
static void term_backward_char(void) { if (term_cmd_buf_index > 0) { term_cmd_buf_index--; } }
false
qemu
7e2515e87c41e2e658aaed466e11cbdf1ea8bcb1
static void term_backward_char(void) { if (term_cmd_buf_index > 0) { term_cmd_buf_index--; } }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { if (term_cmd_buf_index > 0) { term_cmd_buf_index--; } }
[ "static void FUNC_0(void)\n{", "if (term_cmd_buf_index > 0) {", "term_cmd_buf_index--;", "}", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ] ]
6,260
static int omap_validate_tipb_mpui_addr(struct omap_mpu_state_s *s, target_phys_addr_t addr) { return range_covers_byte(0xe1010000, 0xe1020004 - 0xe1010000, addr); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static int omap_validate_tipb_mpui_addr(struct omap_mpu_state_s *s, target_phys_addr_t addr) { return range_covers_byte(0xe1010000, 0xe1020004 - 0xe1010000, addr); }
{ "code": [], "line_no": [] }
static int FUNC_0(struct omap_mpu_state_s *VAR_0, target_phys_addr_t VAR_1) { return range_covers_byte(0xe1010000, 0xe1020004 - 0xe1010000, VAR_1); }
[ "static int FUNC_0(struct omap_mpu_state_s *VAR_0,\ntarget_phys_addr_t VAR_1)\n{", "return range_covers_byte(0xe1010000, 0xe1020004 - 0xe1010000, VAR_1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
6,261
static void notdirty_mem_writeb(void *opaque, target_phys_addr_t ram_addr, uint32_t val) { int dirty_flags; dirty_flags = phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS]; if (!(dirty_flags & CODE_DIRTY_FLAG)) { #if !defined(CONFIG_USER_ONLY) tb_invalidate_phys_pag...
false
qemu
4a1418e07bdcfaa3177739e04707ecaec75d89e1
static void notdirty_mem_writeb(void *opaque, target_phys_addr_t ram_addr, uint32_t val) { int dirty_flags; dirty_flags = phys_ram_dirty[ram_addr >> TARGET_PAGE_BITS]; if (!(dirty_flags & CODE_DIRTY_FLAG)) { #if !defined(CONFIG_USER_ONLY) tb_invalidate_phys_pag...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { int VAR_3; VAR_3 = phys_ram_dirty[VAR_1 >> TARGET_PAGE_BITS]; if (!(VAR_3 & CODE_DIRTY_FLAG)) { #if !defined(CONFIG_USER_ONLY) tb_invalidate_phys_page_fast(VAR_1, 1); VAR_3 = p...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint32_t VAR_2)\n{", "int VAR_3;", "VAR_3 = phys_ram_dirty[VAR_1 >> TARGET_PAGE_BITS];", "if (!(VAR_3 & CODE_DIRTY_FLAG)) {", "#if !defined(CONFIG_USER_ONLY)\ntb_invalidate_phys_page_fast(VAR_1, 1);", "VAR_3 = phys_ram_dirty[VAR_1 >> TARGET_PAGE_...
[ 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 ], [ 43, 45 ], [ 47 ] ]
6,262
BlockJob *backup_job_create(const char *job_id, BlockDriverState *bs, BlockDriverState *target, int64_t speed, MirrorSyncMode sync_mode, BdrvDirtyBitmap *sync_bitmap, bool compress, BlockdevOnError on_source_error, BlockdevOn...
false
qemu
3dc6f8693694a649a9c83f1e2746565b47683923
BlockJob *backup_job_create(const char *job_id, BlockDriverState *bs, BlockDriverState *target, int64_t speed, MirrorSyncMode sync_mode, BdrvDirtyBitmap *sync_bitmap, bool compress, BlockdevOnError on_source_error, BlockdevOn...
{ "code": [], "line_no": [] }
BlockJob *FUNC_0(const char *job_id, BlockDriverState *bs, BlockDriverState *target, int64_t speed, MirrorSyncMode sync_mode, BdrvDirtyBitmap *sync_bitmap, bool compress, BlockdevOnError on_source_error, BlockdevOnError on_ta...
[ "BlockJob *FUNC_0(const char *job_id, BlockDriverState *bs,\nBlockDriverState *target, int64_t speed,\nMirrorSyncMode sync_mode, BdrvDirtyBitmap *sync_bitmap,\nbool compress,\nBlockdevOnError on_source_error,\nBlockdevOnError on_target_error,\nint creation_flags,\nBlockCompletionFunc *cb, void *opaque,\nBlockJobTxn...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 51 ], [ 53 ], [ 55 ], [...
6,263
void helper_vmrun(CPUX86State *env, int aflag, int next_eip_addend) { CPUState *cs = CPU(x86_env_get_cpu(env)); target_ulong addr; uint32_t event_inj; uint32_t int_ctl; cpu_svm_check_intercept_param(env, SVM_EXIT_VMRUN, 0); if (aflag == 2) { addr = env->regs[R_EAX]; } el...
false
qemu
7848c8d19f8556666df25044bbd5d8b29439c368
void helper_vmrun(CPUX86State *env, int aflag, int next_eip_addend) { CPUState *cs = CPU(x86_env_get_cpu(env)); target_ulong addr; uint32_t event_inj; uint32_t int_ctl; cpu_svm_check_intercept_param(env, SVM_EXIT_VMRUN, 0); if (aflag == 2) { addr = env->regs[R_EAX]; } el...
{ "code": [], "line_no": [] }
void FUNC_0(CPUX86State *VAR_0, int VAR_1, int VAR_2) { CPUState *cs = CPU(x86_env_get_cpu(VAR_0)); target_ulong addr; uint32_t event_inj; uint32_t int_ctl; cpu_svm_check_intercept_param(VAR_0, SVM_EXIT_VMRUN, 0); if (VAR_1 == 2) { addr = VAR_0->regs[R_EAX]; } else { ...
[ "void FUNC_0(CPUX86State *VAR_0, int VAR_1, int VAR_2)\n{", "CPUState *cs = CPU(x86_env_get_cpu(VAR_0));", "target_ulong addr;", "uint32_t event_inj;", "uint32_t int_ctl;", "cpu_svm_check_intercept_param(VAR_0, SVM_EXIT_VMRUN, 0);", "if (VAR_1 == 2) {", "addr = VAR_0->regs[R_EAX];", "} else {", "a...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 41, 43 ], [ 45, 47 ], [ 51, 53 ], [ 55, 57 ], [ 61,...
6,264
static void spr_write_ibatu (void *opaque, int sprn) { DisasContext *ctx = opaque; gen_op_store_ibatu((sprn - SPR_IBAT0U) / 2); RET_STOP(ctx); }
false
qemu
e1833e1f96456fd8fc17463246fe0b2050e68efb
static void spr_write_ibatu (void *opaque, int sprn) { DisasContext *ctx = opaque; gen_op_store_ibatu((sprn - SPR_IBAT0U) / 2); RET_STOP(ctx); }
{ "code": [], "line_no": [] }
static void FUNC_0 (void *VAR_0, int VAR_1) { DisasContext *ctx = VAR_0; gen_op_store_ibatu((VAR_1 - SPR_IBAT0U) / 2); RET_STOP(ctx); }
[ "static void FUNC_0 (void *VAR_0, int VAR_1)\n{", "DisasContext *ctx = VAR_0;", "gen_op_store_ibatu((VAR_1 - SPR_IBAT0U) / 2);", "RET_STOP(ctx);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
6,265
static void machine_numa_validate(MachineState *machine) { int i; GString *s = g_string_new(NULL); MachineClass *mc = MACHINE_GET_CLASS(machine); const CPUArchIdList *possible_cpus = mc->possible_cpu_arch_ids(machine); assert(nb_numa_nodes); for (i = 0; i < possible_cpus->len; i++) { ...
false
qemu
c6ff347c8078bb86f75d38955641cb73e9d5b309
static void machine_numa_validate(MachineState *machine) { int i; GString *s = g_string_new(NULL); MachineClass *mc = MACHINE_GET_CLASS(machine); const CPUArchIdList *possible_cpus = mc->possible_cpu_arch_ids(machine); assert(nb_numa_nodes); for (i = 0; i < possible_cpus->len; i++) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(MachineState *VAR_0) { int VAR_1; GString *s = g_string_new(NULL); MachineClass *mc = MACHINE_GET_CLASS(VAR_0); const CPUArchIdList *VAR_2 = mc->possible_cpu_arch_ids(VAR_0); assert(nb_numa_nodes); for (VAR_1 = 0; VAR_1 < VAR_2->len; VAR_1++) { const CPUArchI...
[ "static void FUNC_0(MachineState *VAR_0)\n{", "int VAR_1;", "GString *s = g_string_new(NULL);", "MachineClass *mc = MACHINE_GET_CLASS(VAR_0);", "const CPUArchIdList *VAR_2 = mc->possible_cpu_arch_ids(VAR_0);", "assert(nb_numa_nodes);", "for (VAR_1 = 0; VAR_1 < VAR_2->len; VAR_1++) {", "const CPUArchId...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51, 53, 55 ], [ 57 ...
6,266
int qcow2_refcount_init(BlockDriverState *bs) { BDRVQcowState *s = bs->opaque; unsigned int refcount_table_size2, i; int ret; assert(s->refcount_table_size <= INT_MAX / sizeof(uint64_t)); refcount_table_size2 = s->refcount_table_size * sizeof(uint64_t); s->refcount_table = g_try_malloc(...
true
qemu
8fcffa9853473ab148d36858f15c5531161a1824
int qcow2_refcount_init(BlockDriverState *bs) { BDRVQcowState *s = bs->opaque; unsigned int refcount_table_size2, i; int ret; assert(s->refcount_table_size <= INT_MAX / sizeof(uint64_t)); refcount_table_size2 = s->refcount_table_size * sizeof(uint64_t); s->refcount_table = g_try_malloc(...
{ "code": [ " if (ret != refcount_table_size2)", " return -ENOMEM;" ], "line_no": [ 35, 49 ] }
int FUNC_0(BlockDriverState *VAR_0) { BDRVQcowState *s = VAR_0->opaque; unsigned int VAR_1, VAR_2; int VAR_3; assert(s->refcount_table_size <= INT_MAX / sizeof(uint64_t)); VAR_1 = s->refcount_table_size * sizeof(uint64_t); s->refcount_table = g_try_malloc(VAR_1); if (s->refcount_...
[ "int FUNC_0(BlockDriverState *VAR_0)\n{", "BDRVQcowState *s = VAR_0->opaque;", "unsigned int VAR_1, VAR_2;", "int VAR_3;", "assert(s->refcount_table_size <= INT_MAX / sizeof(uint64_t));", "VAR_1 = s->refcount_table_size * sizeof(uint64_t);", "s->refcount_table = g_try_malloc(VAR_1);", "if (s->refcount...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47,...
6,267
static int unpack_vectors(Vp3DecodeContext *s, GetBitContext *gb) { int j, k, l, sb_x, sb_y; int coding_mode; int motion_x[6]; int motion_y[6]; int last_motion_x = 0; int last_motion_y = 0; int prior_last_motion_x = 0; int prior_last_motion_y = 0; int current_macroblock; ...
false
FFmpeg
eb691ef219860fa6432d460cdd8edc9dff4886db
static int unpack_vectors(Vp3DecodeContext *s, GetBitContext *gb) { int j, k, l, sb_x, sb_y; int coding_mode; int motion_x[6]; int motion_y[6]; int last_motion_x = 0; int last_motion_y = 0; int prior_last_motion_x = 0; int prior_last_motion_y = 0; int current_macroblock; ...
{ "code": [], "line_no": [] }
static int FUNC_0(Vp3DecodeContext *VAR_0, GetBitContext *VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6; int VAR_7; int VAR_8[6]; int VAR_9[6]; int VAR_10 = 0; int VAR_11 = 0; int VAR_12 = 0; int VAR_13 = 0; int VAR_14; int VAR_15; if (VAR_0->keyframe) ...
[ "static int FUNC_0(Vp3DecodeContext *VAR_0, GetBitContext *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;", "int VAR_7;", "int VAR_8[6];", "int VAR_9[6];", "int VAR_10 = 0;", "int VAR_11 = 0;", "int VAR_12 = 0;", "int VAR_13 = 0;", "int VAR_14;", "int VAR_15;", "if (VAR_0->keyframe)\nretu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 41 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [...
6,268
void visit_type_int32(Visitor *v, int32_t *obj, const char *name, Error **errp) { int64_t value; if (!error_is_set(errp)) { if (v->type_int32) { v->type_int32(v, obj, name, errp); } else { value = *obj; v->type_int(v, &value, name, errp); ...
true
qemu
297a3646c2947ee64a6d42ca264039732c6218e0
void visit_type_int32(Visitor *v, int32_t *obj, const char *name, Error **errp) { int64_t value; if (!error_is_set(errp)) { if (v->type_int32) { v->type_int32(v, obj, name, errp); } else { value = *obj; v->type_int(v, &value, name, errp); ...
{ "code": [ " if (!error_is_set(errp)) {", " if (!error_is_set(errp)) {", " if (!error_is_set(errp)) {", " if (!error_is_set(errp)) {", " if (!error_is_set(errp)) {", " if (!error_is_set(errp)) {", " } else {", " value = *obj;", " v->t...
void FUNC_0(Visitor *VAR_0, int32_t *VAR_1, const char *VAR_2, Error **VAR_3) { int64_t value; if (!error_is_set(VAR_3)) { if (VAR_0->type_int32) { VAR_0->type_int32(VAR_0, VAR_1, VAR_2, VAR_3); } else { value = *VAR_1; VAR_0->type_int(VAR_0, &value, V...
[ "void FUNC_0(Visitor *VAR_0, int32_t *VAR_1, const char *VAR_2, Error **VAR_3)\n{", "int64_t value;", "if (!error_is_set(VAR_3)) {", "if (VAR_0->type_int32) {", "VAR_0->type_int32(VAR_0, VAR_1, VAR_2, VAR_3);", "} else {", "value = *VAR_1;", "VAR_0->type_int(VAR_0, &value, VAR_2, VAR_3);", "if (valu...
[ 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
6,270
static inline void gen_bx_im(DisasContext *s, uint32_t addr) { TCGv tmp; s->is_jmp = DISAS_UPDATE; if (s->thumb != (addr & 1)) { tmp = new_tmp(); tcg_gen_movi_i32(tmp, addr & 1); tcg_gen_st_i32(tmp, cpu_env, offsetof(CPUState, thumb)); dead_tmp(tmp); } tcg...
true
qemu
7d1b0095bff7157e856d1d0e6c4295641ced2752
static inline void gen_bx_im(DisasContext *s, uint32_t addr) { TCGv tmp; s->is_jmp = DISAS_UPDATE; if (s->thumb != (addr & 1)) { tmp = new_tmp(); tcg_gen_movi_i32(tmp, addr & 1); tcg_gen_st_i32(tmp, cpu_env, offsetof(CPUState, thumb)); dead_tmp(tmp); } tcg...
{ "code": [ " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " dead_tmp(tmp);", " tmp = new_tmp();", " dead_tmp(tmp);", " tmp = new_tmp();", " dead_tmp(tmp);", " dead_tmp(tmp);", " tmp = new_tmp();", ...
static inline void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1) { TCGv tmp; VAR_0->is_jmp = DISAS_UPDATE; if (VAR_0->thumb != (VAR_1 & 1)) { tmp = new_tmp(); tcg_gen_movi_i32(tmp, VAR_1 & 1); tcg_gen_st_i32(tmp, cpu_env, offsetof(CPUState, thumb)); dead_tmp(tmp); ...
[ "static inline void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)\n{", "TCGv tmp;", "VAR_0->is_jmp = DISAS_UPDATE;", "if (VAR_0->thumb != (VAR_1 & 1)) {", "tmp = new_tmp();", "tcg_gen_movi_i32(tmp, VAR_1 & 1);", "tcg_gen_st_i32(tmp, cpu_env, offsetof(CPUState, thumb));", "dead_tmp(tmp);", "}", "tcg_...
[ 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
6,271
int qemu_get_buffer(QEMUFile *f, uint8_t *buf, int size) { int pending = size; int done = 0; while (pending > 0) { int res; res = qemu_peek_buffer(f, buf, pending, 0); if (res == 0) { return done; } qemu_file_skip(f, res); buf += res...
true
qemu
548f52ea06951c20f0b91cae6cde0512ec073c83
int qemu_get_buffer(QEMUFile *f, uint8_t *buf, int size) { int pending = size; int done = 0; while (pending > 0) { int res; res = qemu_peek_buffer(f, buf, pending, 0); if (res == 0) { return done; } qemu_file_skip(f, res); buf += res...
{ "code": [ " res = qemu_peek_buffer(f, buf, pending, 0);" ], "line_no": [ 17 ] }
int FUNC_0(QEMUFile *VAR_0, uint8_t *VAR_1, int VAR_2) { int VAR_3 = VAR_2; int VAR_4 = 0; while (VAR_3 > 0) { int VAR_5; VAR_5 = qemu_peek_buffer(VAR_0, VAR_1, VAR_3, 0); if (VAR_5 == 0) { return VAR_4; } qemu_file_skip(VAR_0, VAR_5); ...
[ "int FUNC_0(QEMUFile *VAR_0, uint8_t *VAR_1, int VAR_2)\n{", "int VAR_3 = VAR_2;", "int VAR_4 = 0;", "while (VAR_3 > 0) {", "int VAR_5;", "VAR_5 = qemu_peek_buffer(VAR_0, VAR_1, VAR_3, 0);", "if (VAR_5 == 0) {", "return VAR_4;", "}", "qemu_file_skip(VAR_0, VAR_5);", "VAR_1 += VAR_5;", "VAR_3 -...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
6,273
static void buffer_append(Buffer *buffer, const void *data, size_t len) { memcpy(buffer->buffer + buffer->offset, data, len); buffer->offset += len; }
true
qemu
2f9606b3736c3be4dbd606c46525c7b770ced119
static void buffer_append(Buffer *buffer, const void *data, size_t len) { memcpy(buffer->buffer + buffer->offset, data, len); buffer->offset += len; }
{ "code": [ "static void buffer_append(Buffer *buffer, const void *data, size_t len)" ], "line_no": [ 1 ] }
static void FUNC_0(Buffer *VAR_0, const void *VAR_1, size_t VAR_2) { memcpy(VAR_0->VAR_0 + VAR_0->offset, VAR_1, VAR_2); VAR_0->offset += VAR_2; }
[ "static void FUNC_0(Buffer *VAR_0, const void *VAR_1, size_t VAR_2)\n{", "memcpy(VAR_0->VAR_0 + VAR_0->offset, VAR_1, VAR_2);", "VAR_0->offset += VAR_2;", "}" ]
[ 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
6,276
void av_dump_format(AVFormatContext *ic, int index, const char *url, int is_output) { int i; uint8_t *printed = av_mallocz(ic->nb_streams); if (ic->nb_streams && !printed) return; av_log(NULL, AV_LOG_INFO, "%s #%d, %s, %s '%s...
true
FFmpeg
e81e5e8ad2bb5746df0c343c396019aca165cf66
void av_dump_format(AVFormatContext *ic, int index, const char *url, int is_output) { int i; uint8_t *printed = av_mallocz(ic->nb_streams); if (ic->nb_streams && !printed) return; av_log(NULL, AV_LOG_INFO, "%s #%d, %s, %s '%s...
{ "code": [ " uint8_t *printed = av_mallocz(ic->nb_streams);" ], "line_no": [ 13 ] }
void FUNC_0(AVFormatContext *VAR_0, int VAR_1, const char *VAR_2, int VAR_3) { int VAR_4; uint8_t *printed = av_mallocz(VAR_0->nb_streams); if (VAR_0->nb_streams && !printed) return; av_log(NULL, AV_LOG_INFO, "%s #%d, %s, %s ...
[ "void FUNC_0(AVFormatContext *VAR_0,\nint VAR_1,\nconst char *VAR_2,\nint VAR_3)\n{", "int VAR_4;", "uint8_t *printed = av_mallocz(VAR_0->nb_streams);", "if (VAR_0->nb_streams && !printed)\nreturn;", "av_log(NULL, AV_LOG_INFO, \"%s #%d, %s, %s '%s':\\n\",\nVAR_3 ? \"Output\" : \"Input\",\nVAR_1,\nVAR_3 ? VA...
[ 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 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 21, 23, 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
6,278
static int r3d_read_redv(AVFormatContext *s, AVPacket *pkt, Atom *atom) { AVStream *st = s->streams[0]; int tmp; int av_unused tmp2; uint64_t pos = avio_tell(s->pb); unsigned dts; int ret; dts = avio_rb32(s->pb); tmp = avio_rb32(s->pb); av_dlog(s, "frame num %d\n", tmp)...
false
FFmpeg
898276c16b1683ac77723e97574a3bfdb29507fd
static int r3d_read_redv(AVFormatContext *s, AVPacket *pkt, Atom *atom) { AVStream *st = s->streams[0]; int tmp; int av_unused tmp2; uint64_t pos = avio_tell(s->pb); unsigned dts; int ret; dts = avio_rb32(s->pb); tmp = avio_rb32(s->pb); av_dlog(s, "frame num %d\n", tmp)...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, Atom *VAR_2) { AVStream *st = VAR_0->streams[0]; int VAR_3; int VAR_4 tmp2; uint64_t pos = avio_tell(VAR_0->pb); unsigned VAR_5; int VAR_6; VAR_5 = avio_rb32(VAR_0->pb); VAR_3 = avio_rb32(VAR_0->pb); av_dlog(VAR...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1, Atom *VAR_2)\n{", "AVStream *st = VAR_0->streams[0];", "int VAR_3;", "int VAR_4 tmp2;", "uint64_t pos = avio_tell(VAR_0->pb);", "unsigned VAR_5;", "int VAR_6;", "VAR_5 = avio_rb32(VAR_0->pb);", "VAR_3 = avio_rb32(VAR_0->pb);", "av_dlog(VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ...
6,279
void vnc_sent_lossy_rect(VncState *vs, int x, int y, int w, int h) { int i, j; w = (x + w) / VNC_STAT_RECT; h = (y + h) / VNC_STAT_RECT; x /= VNC_STAT_RECT; y /= VNC_STAT_RECT; for (j = y; j <= y + h; j++) { for (i = x; i <= x + w; i++) { vs->lossy_rect[j][i] = 1...
false
qemu
207f328afc2137d422f59293ba37b8be5d3e1617
void vnc_sent_lossy_rect(VncState *vs, int x, int y, int w, int h) { int i, j; w = (x + w) / VNC_STAT_RECT; h = (y + h) / VNC_STAT_RECT; x /= VNC_STAT_RECT; y /= VNC_STAT_RECT; for (j = y; j <= y + h; j++) { for (i = x; i <= x + w; i++) { vs->lossy_rect[j][i] = 1...
{ "code": [], "line_no": [] }
void FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5, VAR_6; VAR_3 = (VAR_1 + VAR_3) / VNC_STAT_RECT; VAR_4 = (VAR_2 + VAR_4) / VNC_STAT_RECT; VAR_1 /= VNC_STAT_RECT; VAR_2 /= VNC_STAT_RECT; for (VAR_6 = VAR_2; VAR_6 <= VAR_2 + VAR_4; VAR_6++) { ...
[ "void FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6;", "VAR_3 = (VAR_1 + VAR_3) / VNC_STAT_RECT;", "VAR_4 = (VAR_2 + VAR_4) / VNC_STAT_RECT;", "VAR_1 /= VNC_STAT_RECT;", "VAR_2 /= VNC_STAT_RECT;", "for (VAR_6 = VAR_2; VAR_6 <= VAR_2 + VAR_4; VAR_6++) {", "f...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
6,280
static void slow_bar_writeb(void *opaque, target_phys_addr_t addr, uint32_t val) { AssignedDevRegion *d = opaque; uint8_t *out = d->u.r_virtbase + addr; DEBUG("slow_bar_writeb addr=0x" TARGET_FMT_plx " val=0x%02x\n", addr, val); *out = val; }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void slow_bar_writeb(void *opaque, target_phys_addr_t addr, uint32_t val) { AssignedDevRegion *d = opaque; uint8_t *out = d->u.r_virtbase + addr; DEBUG("slow_bar_writeb addr=0x" TARGET_FMT_plx " val=0x%02x\n", addr, val); *out = val; }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { AssignedDevRegion *d = VAR_0; uint8_t *out = d->u.r_virtbase + VAR_1; DEBUG("FUNC_0 VAR_1=0x" TARGET_FMT_plx " VAR_2=0x%02x\n", VAR_1, VAR_2); *out = VAR_2; }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)\n{", "AssignedDevRegion *d = VAR_0;", "uint8_t *out = d->u.r_virtbase + VAR_1;", "DEBUG(\"FUNC_0 VAR_1=0x\" TARGET_FMT_plx \" VAR_2=0x%02x\\n\", VAR_1, VAR_2);", "*out = VAR_2;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ] ]
6,281
static void exynos4210_i2c_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { Exynos4210I2CState *s = (Exynos4210I2CState *)opaque; uint8_t v = value & 0xff; DPRINT("write %s [0x%02x] <- 0x%02x\n", exynos4_i2c_get_regname(offset), ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void exynos4210_i2c_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { Exynos4210I2CState *s = (Exynos4210I2CState *)opaque; uint8_t v = value & 0xff; DPRINT("write %s [0x%02x] <- 0x%02x\n", exynos4_i2c_get_regname(offset), ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { Exynos4210I2CState *s = (Exynos4210I2CState *)VAR_0; uint8_t v = VAR_2 & 0xff; DPRINT("write %s [0x%02x] <- 0x%02x\n", exynos4_i2c_get_regname(VAR_1), (unsigned int)V...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "Exynos4210I2CState *s = (Exynos4210I2CState *)VAR_0;", "uint8_t v = VAR_2 & 0xff;", "DPRINT(\"write %s [0x%02x] <- 0x%02x\\n\", exynos4_i2c_get_regname(VAR_1),\n(unsigned int)VAR_1, v);", "switch (VAR_1) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
6,283
static void virtio_net_apply_guest_offloads(VirtIONet *n) { qemu_peer_set_offload(qemu_get_subqueue(n->nic, 0), !!(n->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_CSUM)), !!(n->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_TSO4)), !!(n->curr_guest_offloads & (1ULL <...
false
qemu
d6085e3ace20bc9b0fa625d8d79b22668710e217
static void virtio_net_apply_guest_offloads(VirtIONet *n) { qemu_peer_set_offload(qemu_get_subqueue(n->nic, 0), !!(n->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_CSUM)), !!(n->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_TSO4)), !!(n->curr_guest_offloads & (1ULL <...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIONet *VAR_0) { qemu_peer_set_offload(qemu_get_subqueue(VAR_0->nic, 0), !!(VAR_0->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_CSUM)), !!(VAR_0->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_TSO4)), !!(VAR_0->curr_guest_offloads & (1ULL << VIR...
[ "static void FUNC_0(VirtIONet *VAR_0)\n{", "qemu_peer_set_offload(qemu_get_subqueue(VAR_0->nic, 0),\n!!(VAR_0->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_CSUM)),\n!!(VAR_0->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_TSO4)),\n!!(VAR_0->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_TSO6)),\n!!(VAR...
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13, 15 ], [ 17 ] ]
6,284
static int xen_pt_msixctrl_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint16_t *val, uint16_t dev_value, uint16_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; uint16_t writable_mask = 0; uint16_t throughable_...
false
qemu
e2779de053b64f023de382fd87b3596613d47d1e
static int xen_pt_msixctrl_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint16_t *val, uint16_t dev_value, uint16_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; uint16_t writable_mask = 0; uint16_t throughable_...
{ "code": [], "line_no": [] }
static int FUNC_0(XenPCIPassthroughState *VAR_0, XenPTReg *VAR_1, uint16_t *VAR_2, uint16_t VAR_3, uint16_t VAR_4) { XenPTRegInfo *reg = VAR_1->reg; uint16_t writable_mask = 0; uint16_t throughable_mask = get_throughable_mask(VA...
[ "static int FUNC_0(XenPCIPassthroughState *VAR_0,\nXenPTReg *VAR_1, uint16_t *VAR_2,\nuint16_t VAR_3, uint16_t VAR_4)\n{", "XenPTRegInfo *reg = VAR_1->reg;", "uint16_t writable_mask = 0;", "uint16_t throughable_mask = get_throughable_mask(VAR_0, reg, VAR_4);", "int VAR_5;", "writable_mask = reg->emu_mask ...
[ 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 ], [ 29 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55, 57 ], [ 59 ...
6,285
int v9fs_co_mknod(V9fsState *s, V9fsString *path, uid_t uid, gid_t gid, dev_t dev, mode_t mode) { int err; FsCred cred; cred_init(&cred); cred.fc_uid = uid; cred.fc_gid = gid; cred.fc_mode = mode; cred.fc_rdev = dev; v9fs_co_run_in_worker( { ...
false
qemu
02cb7f3a256517cbf3136caff2863fbafc57b540
int v9fs_co_mknod(V9fsState *s, V9fsString *path, uid_t uid, gid_t gid, dev_t dev, mode_t mode) { int err; FsCred cred; cred_init(&cred); cred.fc_uid = uid; cred.fc_gid = gid; cred.fc_mode = mode; cred.fc_rdev = dev; v9fs_co_run_in_worker( { ...
{ "code": [], "line_no": [] }
int FUNC_0(V9fsState *VAR_0, V9fsString *VAR_1, uid_t VAR_2, gid_t VAR_3, dev_t VAR_4, mode_t VAR_5) { int VAR_6; FsCred cred; cred_init(&cred); cred.fc_uid = VAR_2; cred.fc_gid = VAR_3; cred.fc_mode = VAR_5; cred.fc_rdev = VAR_4; v9fs_co_run_in_worker( ...
[ "int FUNC_0(V9fsState *VAR_0, V9fsString *VAR_1, uid_t VAR_2,\ngid_t VAR_3, dev_t VAR_4, mode_t VAR_5)\n{", "int VAR_6;", "FsCred cred;", "cred_init(&cred);", "cred.fc_uid = VAR_2;", "cred.fc_gid = VAR_3;", "cred.fc_mode = VAR_5;", "cred.fc_rdev = VAR_4;", "v9fs_co_run_in_worker(\n{", "VAR_6 = V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
6,288
static uint64_t icp_control_read(void *opaque, target_phys_addr_t offset, unsigned size) { switch (offset >> 2) { case 0: /* CP_IDFIELD */ return 0x41034003; case 1: /* CP_FLASHPROG */ return 0; case 2: /* CP_INTREG */ return 0; case...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint64_t icp_control_read(void *opaque, target_phys_addr_t offset, unsigned size) { switch (offset >> 2) { case 0: return 0x41034003; case 1: return 0; case 2: return 0; case 3: return 0x11; default: ...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset, unsigned size) { switch (offset >> 2) { case 0: return 0x41034003; case 1: return 0; case 2: return 0; case 3: return 0x11; default: hw_error(...
[ "static uint64_t FUNC_0(void *opaque, target_phys_addr_t offset,\nunsigned size)\n{", "switch (offset >> 2) {", "case 0:\nreturn 0x41034003;", "case 1:\nreturn 0;", "case 2:\nreturn 0;", "case 3:\nreturn 0x11;", "default:\nhw_error(\"FUNC_0: Bad offset %x\\n\", (int)offset);", "return 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 ] ]
6,289
int64_t bdrv_get_block_status_above(BlockDriverState *bs, BlockDriverState *base, int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file) { Coroutine ...
false
qemu
88b062c2036cfd05b5111147736a08ba05ea05a9
int64_t bdrv_get_block_status_above(BlockDriverState *bs, BlockDriverState *base, int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file) { Coroutine ...
{ "code": [], "line_no": [] }
int64_t FUNC_0(BlockDriverState *bs, BlockDriverState *base, int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file) { Coroutine *co; BdrvCoGetBl...
[ "int64_t FUNC_0(BlockDriverState *bs,\nBlockDriverState *base,\nint64_t sector_num,\nint nb_sectors, int *pnum,\nBlockDriverState **file)\n{", "Coroutine *co;", "BdrvCoGetBlockStatusData data = {", ".bs = bs,\n.base = base,\n.file = file,\n.sector_num = sector_num,\n.nb_sectors = nb_sectors,\n.pnum = pnum,\n....
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17, 19, 21, 23, 25, 27, 29, 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ...
6,290
static int block_save_complete(QEMUFile *f, void *opaque) { int ret; DPRINTF("Enter save live complete submitted %d transferred %d\n", block_mig_state.submitted, block_mig_state.transferred); ret = flush_blks(f); if (ret) { blk_mig_cleanup(); return ret; } ...
false
qemu
9ee0cb201e6bfe03549a649fd165a85cfed34d05
static int block_save_complete(QEMUFile *f, void *opaque) { int ret; DPRINTF("Enter save live complete submitted %d transferred %d\n", block_mig_state.submitted, block_mig_state.transferred); ret = flush_blks(f); if (ret) { blk_mig_cleanup(); return ret; } ...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1) { int VAR_2; DPRINTF("Enter save live complete submitted %d transferred %d\n", block_mig_state.submitted, block_mig_state.transferred); VAR_2 = flush_blks(VAR_0); if (VAR_2) { blk_mig_cleanup(); return VAR_2; } ...
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1)\n{", "int VAR_2;", "DPRINTF(\"Enter save live complete submitted %d transferred %d\\n\",\nblock_mig_state.submitted, block_mig_state.transferred);", "VAR_2 = flush_blks(VAR_0);", "if (VAR_2) {", "blk_mig_cleanup();", "return VAR_2;", "}", "blk_mig_res...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [ 61 ], ...
6,291
static void omap_pwl_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_pwl_s *s = (struct omap_pwl_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; if (size != 1) { return omap_badwidth_write8(opaque, addr, value); }...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void omap_pwl_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_pwl_s *s = (struct omap_pwl_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; if (size != 1) { return omap_badwidth_write8(opaque, addr, value); }...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { struct omap_pwl_s *VAR_4 = (struct omap_pwl_s *) VAR_0; int VAR_5 = VAR_1 & OMAP_MPUI_REG_MASK; if (VAR_3 != 1) { return omap_badwidth_write8(VAR_0, VAR_1, VAR_2); } ...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "struct omap_pwl_s *VAR_4 = (struct omap_pwl_s *) VAR_0;", "int VAR_5 = VAR_1 & OMAP_MPUI_REG_MASK;", "if (VAR_3 != 1) {", "return omap_badwidth_write8(VAR_0, VAR_1, VAR_2);", "}", "switch (VAR_5) {", "cas...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ] ]
6,292
static int id_wellformed(const char *id) { int i; if (!qemu_isalpha(id[0])) { return 0; } for (i = 1; id[i]; i++) { if (!qemu_isalnum(id[i]) && !strchr("-._", id[i])) { return 0; } } return 1; }
false
qemu
9aebf3b89281a173d2dfeee379b800be5e3f363e
static int id_wellformed(const char *id) { int i; if (!qemu_isalpha(id[0])) { return 0; } for (i = 1; id[i]; i++) { if (!qemu_isalnum(id[i]) && !strchr("-._", id[i])) { return 0; } } return 1; }
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0) { int VAR_1; if (!qemu_isalpha(VAR_0[0])) { return 0; } for (VAR_1 = 1; VAR_0[VAR_1]; VAR_1++) { if (!qemu_isalnum(VAR_0[VAR_1]) && !strchr("-._", VAR_0[VAR_1])) { return 0; } } return 1; }
[ "static int FUNC_0(const char *VAR_0)\n{", "int VAR_1;", "if (!qemu_isalpha(VAR_0[0])) {", "return 0;", "}", "for (VAR_1 = 1; VAR_0[VAR_1]; VAR_1++) {", "if (!qemu_isalnum(VAR_0[VAR_1]) && !strchr(\"-._\", VAR_0[VAR_1])) {", "return 0;", "}", "}", "return 1;", "}" ]
[ 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 ] ]
6,294
static void memory_region_iorange_destructor(IORange *iorange) { g_free(container_of(iorange, MemoryRegionIORange, iorange)); }
false
qemu
b40acf99bef69fa8ab0f9092ff162fde945eec12
static void memory_region_iorange_destructor(IORange *iorange) { g_free(container_of(iorange, MemoryRegionIORange, iorange)); }
{ "code": [], "line_no": [] }
static void FUNC_0(IORange *VAR_0) { g_free(container_of(VAR_0, MemoryRegionIORange, VAR_0)); }
[ "static void FUNC_0(IORange *VAR_0)\n{", "g_free(container_of(VAR_0, MemoryRegionIORange, VAR_0));", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
6,295
static int qemu_rbd_open(BlockDriverState *bs, const char *filename, int flags) { BDRVRBDState *s = bs->opaque; char pool[RBD_MAX_POOL_NAME_SIZE]; char snap_buf[RBD_MAX_SNAP_NAME_SIZE]; char conf[RBD_MAX_CONF_SIZE]; int r; if (qemu_rbd_parsename(filename, pool, sizeof(pool), ...
false
qemu
7c7e9df0232a1ce5c411f0f348038d2e72097ae1
static int qemu_rbd_open(BlockDriverState *bs, const char *filename, int flags) { BDRVRBDState *s = bs->opaque; char pool[RBD_MAX_POOL_NAME_SIZE]; char snap_buf[RBD_MAX_SNAP_NAME_SIZE]; char conf[RBD_MAX_CONF_SIZE]; int r; if (qemu_rbd_parsename(filename, pool, sizeof(pool), ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2) { BDRVRBDState *s = VAR_0->opaque; char VAR_3[RBD_MAX_POOL_NAME_SIZE]; char VAR_4[RBD_MAX_SNAP_NAME_SIZE]; char VAR_5[RBD_MAX_CONF_SIZE]; int VAR_6; if (qemu_rbd_parsename(VAR_1, VAR_3, sizeof(VAR_3), ...
[ "static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2)\n{", "BDRVRBDState *s = VAR_0->opaque;", "char VAR_3[RBD_MAX_POOL_NAME_SIZE];", "char VAR_4[RBD_MAX_SNAP_NAME_SIZE];", "char VAR_5[RBD_MAX_CONF_SIZE];", "int VAR_6;", "if (qemu_rbd_parsename(VAR_1, VAR_3, sizeof(VAR_3),\nVAR_4, si...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19, 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
6,296
static void net_socket_receive_dgram(void *opaque, const uint8_t *buf, size_t size) { NetSocketState *s = opaque; sendto(s->fd, buf, size, 0, (struct sockaddr *)&s->dgram_dst, sizeof(s->dgram_dst)); }
false
qemu
e3f5ec2b5e92706e3b807059f79b1fb5d936e567
static void net_socket_receive_dgram(void *opaque, const uint8_t *buf, size_t size) { NetSocketState *s = opaque; sendto(s->fd, buf, size, 0, (struct sockaddr *)&s->dgram_dst, sizeof(s->dgram_dst)); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2) { NetSocketState *s = VAR_0; sendto(s->fd, VAR_1, VAR_2, 0, (struct sockaddr *)&s->dgram_dst, sizeof(s->dgram_dst)); }
[ "static void FUNC_0(void *VAR_0, const uint8_t *VAR_1, size_t VAR_2)\n{", "NetSocketState *s = VAR_0;", "sendto(s->fd, VAR_1, VAR_2, 0,\n(struct sockaddr *)&s->dgram_dst, sizeof(s->dgram_dst));", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ] ]
6,297
int cpu_ppc_register (CPUPPCState *env, ppc_def_t *def) { env->msr_mask = def->msr_mask; env->mmu_model = def->mmu_model; env->excp_model = def->excp_model; env->bus_model = def->bus_model; env->bfd_mach = def->bfd_mach; if (create_ppc_opcodes(env, def) < 0) return -1; init_...
false
qemu
00af685fc974e4941ef2d309a2e8818d311a370c
int cpu_ppc_register (CPUPPCState *env, ppc_def_t *def) { env->msr_mask = def->msr_mask; env->mmu_model = def->mmu_model; env->excp_model = def->excp_model; env->bus_model = def->bus_model; env->bfd_mach = def->bfd_mach; if (create_ppc_opcodes(env, def) < 0) return -1; init_...
{ "code": [], "line_no": [] }
int FUNC_0 (CPUPPCState *VAR_0, ppc_def_t *VAR_1) { VAR_0->msr_mask = VAR_1->msr_mask; VAR_0->mmu_model = VAR_1->mmu_model; VAR_0->excp_model = VAR_1->excp_model; VAR_0->bus_model = VAR_1->bus_model; VAR_0->bfd_mach = VAR_1->bfd_mach; if (create_ppc_opcodes(VAR_0, VAR_1) < 0) ret...
[ "int FUNC_0 (CPUPPCState *VAR_0, ppc_def_t *VAR_1)\n{", "VAR_0->msr_mask = VAR_1->msr_mask;", "VAR_0->mmu_model = VAR_1->mmu_model;", "VAR_0->excp_model = VAR_1->excp_model;", "VAR_0->bus_model = VAR_1->bus_model;", "VAR_0->bfd_mach = VAR_1->bfd_mach;", "if (create_ppc_opcodes(VAR_0, VAR_1) < 0)\nreturn...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [...
6,298
static char *get_human_readable_size(char *buf, int buf_size, int64_t size) { static const char suffixes[NB_SUFFIXES] = "KMGT"; int64_t base; int i; if (size <= 999) { snprintf(buf, buf_size, "%" PRId64, size); } else { base = 1024; for (i = 0; i < NB_SUFFIXES; i++...
false
qemu
2c20fa2cc26fd203a1260bb5251a523320faa905
static char *get_human_readable_size(char *buf, int buf_size, int64_t size) { static const char suffixes[NB_SUFFIXES] = "KMGT"; int64_t base; int i; if (size <= 999) { snprintf(buf, buf_size, "%" PRId64, size); } else { base = 1024; for (i = 0; i < NB_SUFFIXES; i++...
{ "code": [], "line_no": [] }
static char *FUNC_0(char *VAR_0, int VAR_1, int64_t VAR_2) { static const char VAR_3[NB_SUFFIXES] = "KMGT"; int64_t base; int VAR_4; if (VAR_2 <= 999) { snprintf(VAR_0, VAR_1, "%" PRId64, VAR_2); } else { base = 1024; for (VAR_4 = 0; VAR_4 < NB_SUFFIXES; VAR_4++) {...
[ "static char *FUNC_0(char *VAR_0, int VAR_1, int64_t VAR_2)\n{", "static const char VAR_3[NB_SUFFIXES] = \"KMGT\";", "int64_t base;", "int VAR_4;", "if (VAR_2 <= 999) {", "snprintf(VAR_0, VAR_1, \"%\" PRId64, VAR_2);", "} else {", "base = 1024;", "for (VAR_4 = 0; VAR_4 < NB_SUFFIXES; VAR_4++) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27, 29 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
6,299
static coroutine_fn int cloop_co_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { int ret; BDRVCloopState *s = bs->opaque; qemu_co_mutex_lock(&s->lock); ret = cloop_read(bs, sector_num, buf, nb_sectors); qemu_co_mutex_unlock(...
false
qemu
5cd230819ec26caf199bf73d38cf2407344e4443
static coroutine_fn int cloop_co_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { int ret; BDRVCloopState *s = bs->opaque; qemu_co_mutex_lock(&s->lock); ret = cloop_read(bs, sector_num, buf, nb_sectors); qemu_co_mutex_unlock(...
{ "code": [], "line_no": [] }
static coroutine_fn int FUNC_0(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { int VAR_0; BDRVCloopState *s = bs->opaque; qemu_co_mutex_lock(&s->lock); VAR_0 = cloop_read(bs, sector_num, buf, nb_sectors); qemu_co_mutex_unlock(&s-...
[ "static coroutine_fn int FUNC_0(BlockDriverState *bs, int64_t sector_num,\nuint8_t *buf, int nb_sectors)\n{", "int VAR_0;", "BDRVCloopState *s = bs->opaque;", "qemu_co_mutex_lock(&s->lock);", "VAR_0 = cloop_read(bs, sector_num, buf, nb_sectors);", "qemu_co_mutex_unlock(&s->lock);", "return VAR_0;", "}...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
6,300
static void disas_sparc_insn(DisasContext * dc, unsigned int insn) { unsigned int opc, rs1, rs2, rd; TCGv cpu_src1, cpu_src2; TCGv_i32 cpu_src1_32, cpu_src2_32, cpu_dst_32; TCGv_i64 cpu_src1_64, cpu_src2_64, cpu_dst_64; target_long simm; if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP | C...
false
qemu
5793f2a47e201d251856c7956d6f7907ec0d9f1f
static void disas_sparc_insn(DisasContext * dc, unsigned int insn) { unsigned int opc, rs1, rs2, rd; TCGv cpu_src1, cpu_src2; TCGv_i32 cpu_src1_32, cpu_src2_32, cpu_dst_32; TCGv_i64 cpu_src1_64, cpu_src2_64, cpu_dst_64; target_long simm; if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP | C...
{ "code": [], "line_no": [] }
static void FUNC_0(DisasContext * VAR_0, unsigned int VAR_1) { unsigned int VAR_2, VAR_3, VAR_4, VAR_5; TCGv cpu_src1, cpu_src2; TCGv_i32 cpu_src1_32, cpu_src2_32, cpu_dst_32; TCGv_i64 cpu_src1_64, cpu_src2_64, cpu_dst_64; target_long simm; if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP ...
[ "static void FUNC_0(DisasContext * VAR_0, unsigned int VAR_1)\n{", "unsigned int VAR_2, VAR_3, VAR_4, VAR_5;", "TCGv cpu_src1, cpu_src2;", "TCGv_i32 cpu_src1_32, cpu_src2_32, cpu_dst_32;", "TCGv_i64 cpu_src1_64, cpu_src2_64, cpu_dst_64;", "target_long simm;", "if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47, 49 ], [ 51 ], [...
6,301
int use_gdb_syscalls(void) { if (gdb_syscall_mode == GDB_SYS_UNKNOWN) { gdb_syscall_mode = (gdb_syscall_state ? GDB_SYS_ENABLED : GDB_SYS_DISABLED); } return gdb_syscall_mode == GDB_SYS_ENABLED; }
false
qemu
880a7578381d1c7ed4d41c7599ae3cc06567a824
int use_gdb_syscalls(void) { if (gdb_syscall_mode == GDB_SYS_UNKNOWN) { gdb_syscall_mode = (gdb_syscall_state ? GDB_SYS_ENABLED : GDB_SYS_DISABLED); } return gdb_syscall_mode == GDB_SYS_ENABLED; }
{ "code": [], "line_no": [] }
int FUNC_0(void) { if (gdb_syscall_mode == GDB_SYS_UNKNOWN) { gdb_syscall_mode = (gdb_syscall_state ? GDB_SYS_ENABLED : GDB_SYS_DISABLED); } return gdb_syscall_mode == GDB_SYS_ENABLED; }
[ "int FUNC_0(void)\n{", "if (gdb_syscall_mode == GDB_SYS_UNKNOWN) {", "gdb_syscall_mode = (gdb_syscall_state ? GDB_SYS_ENABLED\n: GDB_SYS_DISABLED);", "}", "return gdb_syscall_mode == GDB_SYS_ENABLED;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ] ]
6,302
static void s390_hot_add_cpu(const int64_t id, Error **errp) { MachineState *machine = MACHINE(qdev_get_machine()); s390x_new_cpu(machine->cpu_model, id, errp); }
false
qemu
524d18d8bd463431b120eeb5f9f3d1064a1c19e4
static void s390_hot_add_cpu(const int64_t id, Error **errp) { MachineState *machine = MACHINE(qdev_get_machine()); s390x_new_cpu(machine->cpu_model, id, errp); }
{ "code": [], "line_no": [] }
static void FUNC_0(const int64_t VAR_0, Error **VAR_1) { MachineState *machine = MACHINE(qdev_get_machine()); s390x_new_cpu(machine->cpu_model, VAR_0, VAR_1); }
[ "static void FUNC_0(const int64_t VAR_0, Error **VAR_1)\n{", "MachineState *machine = MACHINE(qdev_get_machine());", "s390x_new_cpu(machine->cpu_model, VAR_0, VAR_1);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
6,303
static bool virtio_pci_modern_state_needed(void *opaque) { VirtIOPCIProxy *proxy = opaque; return !(proxy->flags & VIRTIO_PCI_FLAG_DISABLE_MODERN); }
false
qemu
9a4c0e220d8a4f82b5665d0ee95ef94d8e1509d5
static bool virtio_pci_modern_state_needed(void *opaque) { VirtIOPCIProxy *proxy = opaque; return !(proxy->flags & VIRTIO_PCI_FLAG_DISABLE_MODERN); }
{ "code": [], "line_no": [] }
static bool FUNC_0(void *opaque) { VirtIOPCIProxy *proxy = opaque; return !(proxy->flags & VIRTIO_PCI_FLAG_DISABLE_MODERN); }
[ "static bool FUNC_0(void *opaque)\n{", "VirtIOPCIProxy *proxy = opaque;", "return !(proxy->flags & VIRTIO_PCI_FLAG_DISABLE_MODERN);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
6,304
static int on2avc_decode_band_types(On2AVCContext *c, GetBitContext *gb) { int bits_per_sect = c->is_long ? 5 : 3; int esc_val = (1 << bits_per_sect) - 1; int num_bands = c->num_bands * c->num_windows; int band = 0, i, band_type, run_len, run; while (band < num_bands) { band_type = ...
false
FFmpeg
22f15f5735389e992ec9aed43b0680e75746b3a1
static int on2avc_decode_band_types(On2AVCContext *c, GetBitContext *gb) { int bits_per_sect = c->is_long ? 5 : 3; int esc_val = (1 << bits_per_sect) - 1; int num_bands = c->num_bands * c->num_windows; int band = 0, i, band_type, run_len, run; while (band < num_bands) { band_type = ...
{ "code": [], "line_no": [] }
static int FUNC_0(On2AVCContext *VAR_0, GetBitContext *VAR_1) { int VAR_2 = VAR_0->is_long ? 5 : 3; int VAR_3 = (1 << VAR_2) - 1; int VAR_4 = VAR_0->VAR_4 * VAR_0->num_windows; int VAR_5 = 0, VAR_6, VAR_7, VAR_8, VAR_9; while (VAR_5 < VAR_4) { VAR_7 = get_bits(VAR_1, 4); VA...
[ "static int FUNC_0(On2AVCContext *VAR_0, GetBitContext *VAR_1)\n{", "int VAR_2 = VAR_0->is_long ? 5 : 3;", "int VAR_3 = (1 << VAR_2) - 1;", "int VAR_4 = VAR_0->VAR_4 * VAR_0->num_windows;", "int VAR_5 = 0, VAR_6, VAR_7, VAR_8, VAR_9;", "while (VAR_5 < VAR_4) {", "VAR_7 = get_bits(VAR_1, 4);", "VAR_8 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
6,305
static float pvq_band_cost(CeltPVQ *pvq, CeltFrame *f, OpusRangeCoder *rc, int band, float *bits, float lambda) { int i, b = 0; uint32_t cm[2] = { (1 << f->blocks) - 1, (1 << f->blocks) - 1 }; const int band_size = ff_celt_freq_range[band] << f->size; float buf[176 * 2],...
false
FFmpeg
7b46add7257628bffac96d3002308d1f9e1ed172
static float pvq_band_cost(CeltPVQ *pvq, CeltFrame *f, OpusRangeCoder *rc, int band, float *bits, float lambda) { int i, b = 0; uint32_t cm[2] = { (1 << f->blocks) - 1, (1 << f->blocks) - 1 }; const int band_size = ff_celt_freq_range[band] << f->size; float buf[176 * 2],...
{ "code": [], "line_no": [] }
static float FUNC_0(CeltPVQ *VAR_0, CeltFrame *VAR_1, OpusRangeCoder *VAR_2, int VAR_3, float *VAR_4, float VAR_5) { int VAR_6, VAR_7 = 0; uint32_t cm[2] = { (1 << VAR_1->blocks) - 1, (1 << VAR_1->blocks) - 1 }; const int VAR_8 = ff_celt_freq_range[VAR_3] << VAR_1->size; ...
[ "static float FUNC_0(CeltPVQ *VAR_0, CeltFrame *VAR_1, OpusRangeCoder *VAR_2, int VAR_3,\nfloat *VAR_4, float VAR_5)\n{", "int VAR_6, VAR_7 = 0;", "uint32_t cm[2] = { (1 << VAR_1->blocks) - 1, (1 << VAR_1->blocks) - 1 };", "const int VAR_8 = ff_celt_freq_range[VAR_3] << VAR_1->size;", "float VAR_9[176 * 2],...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
6,306
static int mpegts_read_header(AVFormatContext *s) { MpegTSContext *ts = s->priv_data; AVIOContext *pb = s->pb; uint8_t buf[8 * 1024] = {0}; int len; int64_t pos, probesize = #if AV_HAVE_INCOMPATIBLE_LIBAV_ABI s->probesize ? s->probesize : s->probesize2; #else ...
false
FFmpeg
655b6dcb34b25d591e15ede17673ea6cb8074711
static int mpegts_read_header(AVFormatContext *s) { MpegTSContext *ts = s->priv_data; AVIOContext *pb = s->pb; uint8_t buf[8 * 1024] = {0}; int len; int64_t pos, probesize = #if AV_HAVE_INCOMPATIBLE_LIBAV_ABI s->probesize ? s->probesize : s->probesize2; #else ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { MpegTSContext *ts = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; uint8_t buf[8 * 1024] = {0}; int VAR_1; int64_t pos, probesize = #if AV_HAVE_INCOMPATIBLE_LIBAV_ABI VAR_0->probesize ? VAR_0->probesize : VAR_0->probe...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "MpegTSContext *ts = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "uint8_t buf[8 * 1024] = {0};", "int VAR_1;", "int64_t pos, probesize =\n#if AV_HAVE_INCOMPATIBLE_LIBAV_ABI\nVAR_0->probesize ? VAR_0->probesize : VAR_0->probesize2;", "#else\nVAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15, 17 ], [ 19, 21 ], [ 23, 27, 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
6,309
static void apply_tns(float coef[1024], TemporalNoiseShaping *tns, IndividualChannelStream *ics, int decode) { const int mmm = FFMIN(ics->tns_max_bands, ics->max_sfb); int w, filt, m, i; int bottom, top, order, start, end, size, inc; float lpc[TNS_MAX_ORDER]; float tmp[T...
true
FFmpeg
6d5b0092678b2a95dfe209a207550bd2fe9ef646
static void apply_tns(float coef[1024], TemporalNoiseShaping *tns, IndividualChannelStream *ics, int decode) { const int mmm = FFMIN(ics->tns_max_bands, ics->max_sfb); int w, filt, m, i; int bottom, top, order, start, end, size, inc; float lpc[TNS_MAX_ORDER]; float tmp[T...
{ "code": [ " float tmp[TNS_MAX_ORDER];" ], "line_no": [ 15 ] }
static void FUNC_0(float VAR_0[1024], TemporalNoiseShaping *VAR_1, IndividualChannelStream *VAR_2, int VAR_3) { const int VAR_4 = FFMIN(VAR_2->tns_max_bands, VAR_2->max_sfb); int VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15; float VAR_...
[ "static void FUNC_0(float VAR_0[1024], TemporalNoiseShaping *VAR_1,\nIndividualChannelStream *VAR_2, int VAR_3)\n{", "const int VAR_4 = FFMIN(VAR_2->tns_max_bands, VAR_2->max_sfb);", "int VAR_5, VAR_6, VAR_7, VAR_8;", "int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15;", "float VAR_16[TNS_MAX_ORDER]...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 39 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 51 ], [...
6,310
void do_info_snapshots(Monitor *mon) { DriveInfo *dinfo; BlockDriverState *bs, *bs1; QEMUSnapshotInfo *sn_tab, *sn; int nb_sns, i; char buf[256]; bs = get_bs_snapshots(); if (!bs) { monitor_printf(mon, "No available block device supports snapshots\n"); return; ...
true
qemu
feeee5aca765606818e00f5a19d19f141f4ae365
void do_info_snapshots(Monitor *mon) { DriveInfo *dinfo; BlockDriverState *bs, *bs1; QEMUSnapshotInfo *sn_tab, *sn; int nb_sns, i; char buf[256]; bs = get_bs_snapshots(); if (!bs) { monitor_printf(mon, "No available block device supports snapshots\n"); return; ...
{ "code": [ " if (bdrv_has_snapshot(bs1)) {", " if (bdrv_has_snapshot(bs1)) {", " if (bdrv_has_snapshot(bs1)) {", " if (bdrv_has_snapshot(bs1)) {" ], "line_no": [ 33, 33, 33, 33 ] }
void FUNC_0(Monitor *VAR_0) { DriveInfo *dinfo; BlockDriverState *bs, *bs1; QEMUSnapshotInfo *sn_tab, *sn; int VAR_1, VAR_2; char VAR_3[256]; bs = get_bs_snapshots(); if (!bs) { monitor_printf(VAR_0, "No available block device supports snapshots\n"); return; ...
[ "void FUNC_0(Monitor *VAR_0)\n{", "DriveInfo *dinfo;", "BlockDriverState *bs, *bs1;", "QEMUSnapshotInfo *sn_tab, *sn;", "int VAR_1, VAR_2;", "char VAR_3[256];", "bs = get_bs_snapshots();", "if (!bs) {", "monitor_printf(VAR_0, \"No available block device supports snapshots\\n\");", "return;", "}"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [...
6,311
static int activate(AVFilterContext *ctx) { PreMultiplyContext *s = ctx->priv; if (s->inplace) { AVFrame *frame = NULL; AVFrame *out = NULL; int ret, status; int64_t pts; if ((ret = ff_inlink_consume_frame(ctx->inputs[0], &frame)) > 0) { if ((ret ...
true
FFmpeg
c7ded42d5dfc0124008b5b9b13a1a342324885ed
static int activate(AVFilterContext *ctx) { PreMultiplyContext *s = ctx->priv; if (s->inplace) { AVFrame *frame = NULL; AVFrame *out = NULL; int ret, status; int64_t pts; if ((ret = ff_inlink_consume_frame(ctx->inputs[0], &frame)) > 0) { if ((ret ...
{ "code": [ " if ((ret = filter_frame(ctx, &out, frame, frame)) < 0)", " return ret;" ], "line_no": [ 23, 25 ] }
static int FUNC_0(AVFilterContext *VAR_0) { PreMultiplyContext *s = VAR_0->priv; if (s->inplace) { AVFrame *frame = NULL; AVFrame *out = NULL; int VAR_1, VAR_2; int64_t pts; if ((VAR_1 = ff_inlink_consume_frame(VAR_0->inputs[0], &frame)) > 0) { if...
[ "static int FUNC_0(AVFilterContext *VAR_0)\n{", "PreMultiplyContext *s = VAR_0->priv;", "if (s->inplace) {", "AVFrame *frame = NULL;", "AVFrame *out = NULL;", "int VAR_1, VAR_2;", "int64_t pts;", "if ((VAR_1 = ff_inlink_consume_frame(VAR_0->inputs[0], &frame)) > 0) {", "if ((VAR_1 = filter_frame(VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47...
6,312
int kvm_arch_remove_sw_breakpoint(CPUState *cpu, struct kvm_sw_breakpoint *bp) { return -EINVAL; }
true
qemu
8a0548f94edecb96acb9b7fb9106ccc821c4996f
int kvm_arch_remove_sw_breakpoint(CPUState *cpu, struct kvm_sw_breakpoint *bp) { return -EINVAL; }
{ "code": [ " return -EINVAL;", "int kvm_arch_remove_sw_breakpoint(CPUState *cpu, struct kvm_sw_breakpoint *bp)", " return -EINVAL;" ], "line_no": [ 5, 1, 5 ] }
int FUNC_0(CPUState *VAR_0, struct kvm_sw_breakpoint *VAR_1) { return -EINVAL; }
[ "int FUNC_0(CPUState *VAR_0, struct kvm_sw_breakpoint *VAR_1)\n{", "return -EINVAL;", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
6,313
static int unix_open(URLContext *h, const char *filename, int flags) { UnixContext *s = h->priv_data; int fd, ret; av_strstart(filename, "unix:", &filename); s->addr.sun_family = AF_UNIX; av_strlcpy(s->addr.sun_path, filename, sizeof(s->addr.sun_path)); if ((fd = ff_socket(AF_UNIX, s-...
true
FFmpeg
27852f2f1dec3749ea79883b70484c841169f747
static int unix_open(URLContext *h, const char *filename, int flags) { UnixContext *s = h->priv_data; int fd, ret; av_strstart(filename, "unix:", &filename); s->addr.sun_family = AF_UNIX; av_strlcpy(s->addr.sun_path, filename, sizeof(s->addr.sun_path)); if ((fd = ff_socket(AF_UNIX, s-...
{ "code": [ " ret = fd;", " fd = ff_listen_bind(fd, (struct sockaddr *)&s->addr,", " sizeof(s->addr), s->timeout, h);", " if (fd < 0) {", " ret = fd;" ], "line_no": [ 33, 27, 29, 31, 33 ] }
static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2) { UnixContext *s = VAR_0->priv_data; int VAR_3, VAR_4; av_strstart(VAR_1, "unix:", &VAR_1); s->addr.sun_family = AF_UNIX; av_strlcpy(s->addr.sun_path, VAR_1, sizeof(s->addr.sun_path)); if ((VAR_3 = ff_socket(AF_UNIX, s...
[ "static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2)\n{", "UnixContext *s = VAR_0->priv_data;", "int VAR_3, VAR_4;", "av_strstart(VAR_1, \"unix:\", &VAR_1);", "s->addr.sun_family = AF_UNIX;", "av_strlcpy(s->addr.sun_path, VAR_1, sizeof(s->addr.sun_path));", "if ((VAR_3 = ff_socket(AF_UNIX...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45, 47 ], [ 49 ], [ 53...
6,315
static void gen_rfe(DisasContext *s, TCGv pc, TCGv cpsr) { gen_set_cpsr(cpsr, 0xffffffff); dead_tmp(cpsr); store_reg(s, 15, pc); s->is_jmp = DISAS_UPDATE; }
true
qemu
7d1b0095bff7157e856d1d0e6c4295641ced2752
static void gen_rfe(DisasContext *s, TCGv pc, TCGv cpsr) { gen_set_cpsr(cpsr, 0xffffffff); dead_tmp(cpsr); store_reg(s, 15, pc); s->is_jmp = DISAS_UPDATE; }
{ "code": [ " dead_tmp(cpsr);" ], "line_no": [ 7 ] }
static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2) { gen_set_cpsr(VAR_2, 0xffffffff); dead_tmp(VAR_2); store_reg(VAR_0, 15, VAR_1); VAR_0->is_jmp = DISAS_UPDATE; }
[ "static void FUNC_0(DisasContext *VAR_0, TCGv VAR_1, TCGv VAR_2)\n{", "gen_set_cpsr(VAR_2, 0xffffffff);", "dead_tmp(VAR_2);", "store_reg(VAR_0, 15, VAR_1);", "VAR_0->is_jmp = DISAS_UPDATE;", "}" ]
[ 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
6,316
static inline void RENAME(rgb16ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { int i; assert(src1 == src2); for(i=0; i<width; i++) { int d0= ((uint32_t*)src1)[i]; int dl= (d0&0x07E0F81F); int dh= ((d0>>5)&0x07C0F83F); int dh2= (dh>>11) + (dh<<21); int d=...
true
FFmpeg
2da0d70d5eebe42f9fcd27ee554419ebe2a5da06
static inline void RENAME(rgb16ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { int i; assert(src1 == src2); for(i=0; i<width; i++) { int d0= ((uint32_t*)src1)[i]; int dl= (d0&0x07E0F81F); int dh= ((d0>>5)&0x07C0F83F); int dh2= (dh>>11) + (dh<<21); int d=...
{ "code": [ "\tint i;", "\tint i;", "\tint i;", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", " assert(src1 == src2);", "\tint i;", "\tfor(i=0; i<width; i++)", "\tint i;", "\tfor(i=0; i<width; i++)", " assert(src1 == s...
static inline void FUNC_0(rgb16ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width) { int VAR_0; assert(src1 == src2); for(VAR_0=0; VAR_0<width; VAR_0++) { int d0= ((uint32_t*)src1)[VAR_0]; int dl= (d0&0x07E0F81F); int dh= ((d0>>5)&0x07C0F83F); int dh2= (dh>>11) +...
[ "static inline void FUNC_0(rgb16ToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width)\n{", "int VAR_0;", "assert(src1 == src2);", "for(VAR_0=0; VAR_0<width; VAR_0++)", "{", "int d0= ((uint32_t*)src1)[VAR_0];", "int dl= (d0&0x07E0F81F);", "int dh= ((d0>>5)&0x07C0F83F);", "int d...
[ 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
6,317
static int rtl8139_cplus_transmit_one(RTL8139State *s) { if (!rtl8139_transmitter_enabled(s)) { DPRINTF("+++ C+ mode: transmitter disabled\n"); return 0; } if (!rtl8139_cp_transmitter_enabled(s)) { DPRINTF("+++ C+ mode: C+ transmitter disabled\n"); return ...
true
qemu
cde31a0e3dc0e4ac83e454d6096350cec584adf1
static int rtl8139_cplus_transmit_one(RTL8139State *s) { if (!rtl8139_transmitter_enabled(s)) { DPRINTF("+++ C+ mode: transmitter disabled\n"); return 0; } if (!rtl8139_cp_transmitter_enabled(s)) { DPRINTF("+++ C+ mode: C+ transmitter disabled\n"); return ...
{ "code": [ " while (s->cplus_txbuffer && s->cplus_txbuffer_offset + txsize >= s->cplus_txbuffer_len)", " s->cplus_txbuffer_len += CP_TX_BUFFER_SIZE;", " s->cplus_txbuffer = g_realloc(s->cplus_txbuffer, s->cplus_txbuffer_len);", " DPRINTF(\"+++ C+ mode transmission buffer space...
static int FUNC_0(RTL8139State *VAR_0) { if (!rtl8139_transmitter_enabled(VAR_0)) { DPRINTF("+++ C+ mode: transmitter disabled\n"); return 0; } if (!rtl8139_cp_transmitter_enabled(VAR_0)) { DPRINTF("+++ C+ mode: C+ transmitter disabled\n"); return 0 ; ...
[ "static int FUNC_0(RTL8139State *VAR_0)\n{", "if (!rtl8139_transmitter_enabled(VAR_0))\n{", "DPRINTF(\"+++ C+ mode: transmitter disabled\\n\");", "return 0;", "}", "if (!rtl8139_cp_transmitter_enabled(VAR_0))\n{", "DPRINTF(\"+++ C+ mode: C+ transmitter disabled\\n\");", "return 0 ;", "}", "int VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 39 ], [ 43, 45, 47 ], [ 51 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ...
6,318
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ADPCMDecodeContext *c = avctx->priv_data; ADPCMChannelStatus *cs; int n, m...
true
FFmpeg
346876ec168affe7c21be88d8f1acf1a75cc8409
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ADPCMDecodeContext *c = avctx->priv_data; ADPCMChannelStatus *cs; int n, m...
{ "code": [ " case CODEC_ID_ADPCM_IMA_EA_EACS:", " if (samples_in_chunk > buf_size-4-(8<<st)) {" ], "line_no": [ 629, 635 ] }
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->VAR_33; ADPCMDecodeContext *c = VAR_0->priv_data; ADPCMChannelStatus *cs; int VAR_6, VAR_7, VAR...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->VAR_33;", "ADPCMDecodeContext *c = VAR_0->priv_data;", "ADPCMChannelStatus *cs;", "int VAR_6, VAR_7, VAR_24, VAR_9;", "int VAR_10[2];", "short *VAR_11;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
6,319
int DCT_common_init(MpegEncContext *s) { int i; ff_put_pixels_clamped = s->dsp.put_pixels_clamped; ff_add_pixels_clamped = s->dsp.add_pixels_clamped; s->dct_unquantize_h263 = dct_unquantize_h263_c; s->dct_unquantize_mpeg1 = dct_unquantize_mpeg1_c; s->dct_unquantize_mpeg2 = dct_unquant...
false
FFmpeg
83f238cbf0c038245d2b2dffa5beb0916e7c36d2
int DCT_common_init(MpegEncContext *s) { int i; ff_put_pixels_clamped = s->dsp.put_pixels_clamped; ff_add_pixels_clamped = s->dsp.add_pixels_clamped; s->dct_unquantize_h263 = dct_unquantize_h263_c; s->dct_unquantize_mpeg1 = dct_unquantize_mpeg1_c; s->dct_unquantize_mpeg2 = dct_unquant...
{ "code": [], "line_no": [] }
int FUNC_0(MpegEncContext *VAR_0) { int VAR_1; ff_put_pixels_clamped = VAR_0->dsp.put_pixels_clamped; ff_add_pixels_clamped = VAR_0->dsp.add_pixels_clamped; VAR_0->dct_unquantize_h263 = dct_unquantize_h263_c; VAR_0->dct_unquantize_mpeg1 = dct_unquantize_mpeg1_c; VAR_0->dct_unquantize_...
[ "int FUNC_0(MpegEncContext *VAR_0)\n{", "int VAR_1;", "ff_put_pixels_clamped = VAR_0->dsp.put_pixels_clamped;", "ff_add_pixels_clamped = VAR_0->dsp.add_pixels_clamped;", "VAR_0->dct_unquantize_h263 = dct_unquantize_h263_c;", "VAR_0->dct_unquantize_mpeg1 = dct_unquantize_mpeg1_c;", "VAR_0->dct_unquantize...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51...
6,320
static void yuv2yuvX_c(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc...
false
FFmpeg
13a099799e89a76eb921ca452e1b04a7a28a9855
static void yuv2yuvX_c(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, int chrFilterSize, const int16_t **alpSrc...
{ "code": [], "line_no": [] }
static void FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1, const int16_t **VAR_2, int VAR_3, const int16_t *VAR_4, const int16_t **VAR_5, const int16_t **VAR_6, int VAR_7, const int16_t **VAR_8, uint...
[ "static void FUNC_0(SwsContext *VAR_0, const int16_t *VAR_1,\nconst int16_t **VAR_2, int VAR_3,\nconst int16_t *VAR_4, const int16_t **VAR_5,\nconst int16_t **VAR_6,\nint VAR_7, const int16_t **VAR_8,\nuint8_t *VAR_9, uint8_t *VAR_10, uint8_t *VAR_11,\nuint8_t *VAR_12, int VAR_13, int VAR_14)\n{", "int VAR_15;", ...
[ 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
6,321
static int dxva2_mpeg2_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) { const struct MpegEncContext *s = avctx->priv_data; AVDXVAContext *ctx = avctx->hwaccel_context; struct dxva2_pictu...
false
FFmpeg
ab28108a361196134704071b7b34c42fc7d747c7
static int dxva2_mpeg2_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) { const struct MpegEncContext *s = avctx->priv_data; AVDXVAContext *ctx = avctx->hwaccel_context; struct dxva2_pictu...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, av_unused const VAR_1 *buffer, av_unused uint32_t size) { const struct MpegEncContext *VAR_2 = VAR_0->priv_data; AVDXVAContext *ctx = VAR_0->hwaccel_context; struct dxva2_picture_context *VAR...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nav_unused const VAR_1 *buffer,\nav_unused uint32_t size)\n{", "const struct MpegEncContext *VAR_2 = VAR_0->priv_data;", "AVDXVAContext *ctx = VAR_0->hwaccel_context;", "struct dxva2_picture_context *VAR_3 =\nVAR_2->current_picture_ptr->hwaccel_picture_private;", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 19, 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
6,323
static void avc_luma_vt_and_aver_dst_4x4_msa(const uint8_t *src, int32_t src_stride, uint8_t *dst, int32_t dst_stride) { int16_t filt_const0 = 0xfb01; int16_t filt_const1 = 0x1414; int16_t filt_const2 = 0x1fb; ...
false
FFmpeg
72dbc610be3272ba36603f78a39cc2d2d8fe0cc3
static void avc_luma_vt_and_aver_dst_4x4_msa(const uint8_t *src, int32_t src_stride, uint8_t *dst, int32_t dst_stride) { int16_t filt_const0 = 0xfb01; int16_t filt_const1 = 0x1414; int16_t filt_const2 = 0x1fb; ...
{ "code": [], "line_no": [] }
static void FUNC_0(const uint8_t *VAR_0, int32_t VAR_1, uint8_t *VAR_2, int32_t VAR_3) { int16_t filt_const0 = 0xfb01; int16_t filt_const1 = 0x1414; int16_t filt_const2 = 0x1fb; v16u8 dst0, dst1, dst2, dst3;...
[ "static void FUNC_0(const uint8_t *VAR_0,\nint32_t VAR_1,\nuint8_t *VAR_2, int32_t VAR_3)\n{", "int16_t filt_const0 = 0xfb01;", "int16_t filt_const1 = 0x1414;", "int16_t filt_const2 = 0x1fb;", "v16u8 dst0, dst1, dst2, dst3;", "v16i8 src0, src1, src2, src3, src4, src5, src6, src7, src8;", "v16i8 src10_r,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [...
6,324
static int decode_frame_mp3on4(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MP3On4DecodeContext *s = avctx->priv_data; MPADeco...
false
FFmpeg
955aec3c7c7be39b659197e1ec379a09f2b7c41c
static int decode_frame_mp3on4(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MP3On4DecodeContext *s = avctx->priv_data; MPADeco...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { AVFrame *frame = VAR_1; const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; MP3On4DecodeContext *s = VAR_0->priv_data; MPADecodeContext *m; ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "AVFrame *frame = VAR_1;", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "MP3On4DecodeContext *s = VAR_0->priv_data;", "MPADecodeContext *m;", "int VAR_6, VAR_7 = VAR_5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47, 49 ], [ 53 ...
6,325
static int dxva2_h264_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) { const H264Context *h = avctx->priv_data; AVDXVAContext *ctx = avctx->hwaccel_context; struct dxva2_picture_context *c...
false
FFmpeg
0ac2d86c4758e1419934905b6c092910296aa16a
static int dxva2_h264_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) { const H264Context *h = avctx->priv_data; AVDXVAContext *ctx = avctx->hwaccel_context; struct dxva2_picture_context *c...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, av_unused const VAR_1 *buffer, av_unused uint32_t size) { const H264Context *VAR_2 = VAR_0->priv_data; AVDXVAContext *ctx = VAR_0->hwaccel_context; struct dxva2_picture_context *VAR_3 = VAR_2->...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nav_unused const VAR_1 *buffer,\nav_unused uint32_t size)\n{", "const H264Context *VAR_2 = VAR_0->priv_data;", "AVDXVAContext *ctx = VAR_0->hwaccel_context;", "struct dxva2_picture_context *VAR_3 = VAR_2->cur_pic_ptr->hwaccel_picture_private;", "if (DXVA_CONTEXT_DEC...
[ 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 ], [ 31 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ] ]
6,326
static inline void RENAME(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, uint8_t *uDest, uint8_t *vDest, long dstW, long chrDstW) { #ifdef HAVE_MMX if(uDest != NULL) { asm volatile( ...
false
FFmpeg
bca11e75fbc6b922438670733c6cb418c70433b4
static inline void RENAME(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, uint8_t *uDest, uint8_t *vDest, long dstW, long chrDstW) { #ifdef HAVE_MMX if(uDest != NULL) { asm volatile( ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, uint8_t *uDest, uint8_t *vDest, long dstW, long chrDstW) { #ifdef HAVE_MMX if(uDest != NULL) { asm volatile( ...
[ "static inline void FUNC_0(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize,\nint16_t *chrFilter, int16_t **chrSrc, int chrFilterSize,\nuint8_t *dest, uint8_t *uDest, uint8_t *vDest, long dstW, long chrDstW)\n{", "#ifdef HAVE_MMX\nif(uDest != NULL)\n{", "asm volatile(\nYSCALEYUV2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9, 11, 13 ], [ 15, 17, 19, 21, 23, 25 ], [ 29, 31, 33, 35, 37, 39 ], [ 41 ], [ 45, 47, 49, 51, 53, 55 ], [ 57, 59, 61, 63, 65 ], [ 67, 69,...
6,327
static inline void dv_encode_video_segment(DVVideoContext *s, uint8_t *dif, const uint16_t *mb_pos_ptr) { int mb_index, i, j, v; int mb_x, mb_y, c_offset, linesize; uint8_t* y_ptr; uint8_t* data; uint8...
false
FFmpeg
c619ff6daf93a8f3c03decf2d3345d2474c3db91
static inline void dv_encode_video_segment(DVVideoContext *s, uint8_t *dif, const uint16_t *mb_pos_ptr) { int mb_index, i, j, v; int mb_x, mb_y, c_offset, linesize; uint8_t* y_ptr; uint8_t* data; uint8...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DVVideoContext *VAR_0, uint8_t *VAR_1, const uint16_t *VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6; int VAR_7, VAR_8, VAR_9, VAR_10; uint8_t* y_ptr; uint8_t* data; uint8_t* ptr; ...
[ "static inline void FUNC_0(DVVideoContext *VAR_0,\nuint8_t *VAR_1,\nconst uint16_t *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6;", "int VAR_7, VAR_8, VAR_9, VAR_10;", "uint8_t* y_ptr;", "uint8_t* data;", "uint8_t* ptr;", "int VAR_11;", "DCTELEM block[64] __align8;", "DCTELEM sblock[5*6]...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
6,328
static double fade_gain(int curve, int64_t index, int range) { double gain; gain = av_clipd(1.0 * index / range, 0, 1.0); switch (curve) { case QSIN: gain = sin(gain * M_PI / 2.0); break; case IQSIN: gain = 0.636943 * asin(gain); break; case ESIN: ...
false
FFmpeg
9ee1feaa7c2822240b93d4640ec6e8d3e5b6139b
static double fade_gain(int curve, int64_t index, int range) { double gain; gain = av_clipd(1.0 * index / range, 0, 1.0); switch (curve) { case QSIN: gain = sin(gain * M_PI / 2.0); break; case IQSIN: gain = 0.636943 * asin(gain); break; case ESIN: ...
{ "code": [], "line_no": [] }
static double FUNC_0(int VAR_0, int64_t VAR_1, int VAR_2) { double VAR_3; VAR_3 = av_clipd(1.0 * VAR_1 / VAR_2, 0, 1.0); switch (VAR_0) { case QSIN: VAR_3 = sin(VAR_3 * M_PI / 2.0); break; case IQSIN: VAR_3 = 0.636943 * asin(VAR_3); break; case ESIN...
[ "static double FUNC_0(int VAR_0, int64_t VAR_1, int VAR_2)\n{", "double VAR_3;", "VAR_3 = av_clipd(1.0 * VAR_1 / VAR_2, 0, 1.0);", "switch (VAR_0) {", "case QSIN:\nVAR_3 = sin(VAR_3 * M_PI / 2.0);", "break;", "case IQSIN:\nVAR_3 = 0.636943 * asin(VAR_3);", "break;", "case ESIN:\nVAR_3 = 1.0 - cos(M_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51...
6,329
static int get_cv_ycbcr_matrix(AVCodecContext *avctx, CFStringRef *matrix) { switch(avctx->colorspace) { case AVCOL_SPC_BT709: *matrix = kCVImageBufferYCbCrMatrix_ITU_R_709_2; break; case AVCOL_SPC_UNSPECIFIED: *matrix = NULL; break; ...
false
FFmpeg
dcd3418a35aab7ef283b68ed9997ce4ac204094e
static int get_cv_ycbcr_matrix(AVCodecContext *avctx, CFStringRef *matrix) { switch(avctx->colorspace) { case AVCOL_SPC_BT709: *matrix = kCVImageBufferYCbCrMatrix_ITU_R_709_2; break; case AVCOL_SPC_UNSPECIFIED: *matrix = NULL; break; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, CFStringRef *VAR_1) { switch(VAR_0->colorspace) { case AVCOL_SPC_BT709: *VAR_1 = kCVImageBufferYCbCrMatrix_ITU_R_709_2; break; case AVCOL_SPC_UNSPECIFIED: *VAR_1 = NULL; break; case AVCOL_SPC...
[ "static int FUNC_0(AVCodecContext *VAR_0, CFStringRef *VAR_1) {", "switch(VAR_0->colorspace) {", "case AVCOL_SPC_BT709:\n*VAR_1 = kCVImageBufferYCbCrMatrix_ITU_R_709_2;", "break;", "case AVCOL_SPC_UNSPECIFIED:\n*VAR_1 = NULL;", "break;", "case AVCOL_SPC_BT470BG:\ncase AVCOL_SPC_SMPTE170M:\n*VAR_1 = kCVI...
[ 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 ], [ 39, 41 ], [ 43 ], [ 47, 49 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ...
6,330
static AVStream *add_av_stream1(FFStream *stream, AVCodecContext *codec, int copy) { AVStream *fst; fst = av_mallocz(sizeof(AVStream)); if (!fst) return NULL; if (copy) { fst->codec= avcodec_alloc_context(); memcpy(fst->codec, codec, sizeof(AVCodecContext)); if...
false
FFmpeg
34c340d49f2e6ca5190f16ced82da32561a7bef2
static AVStream *add_av_stream1(FFStream *stream, AVCodecContext *codec, int copy) { AVStream *fst; fst = av_mallocz(sizeof(AVStream)); if (!fst) return NULL; if (copy) { fst->codec= avcodec_alloc_context(); memcpy(fst->codec, codec, sizeof(AVCodecContext)); if...
{ "code": [], "line_no": [] }
static AVStream *FUNC_0(FFStream *stream, AVCodecContext *codec, int copy) { AVStream *fst; fst = av_mallocz(sizeof(AVStream)); if (!fst) return NULL; if (copy) { fst->codec= avcodec_alloc_context(); memcpy(fst->codec, codec, sizeof(AVCodecContext)); if (codec-...
[ "static AVStream *FUNC_0(FFStream *stream, AVCodecContext *codec, int copy)\n{", "AVStream *fst;", "fst = av_mallocz(sizeof(AVStream));", "if (!fst)\nreturn NULL;", "if (copy) {", "fst->codec= avcodec_alloc_context();", "memcpy(fst->codec, codec, sizeof(AVCodecContext));", "if (codec->extradata_size) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51...
6,331
static void buffer_reserve(Buffer *buffer, size_t len) { if ((buffer->capacity - buffer->offset) < len) { buffer->capacity += (len + 1024); buffer->buffer = qemu_realloc(buffer->buffer, buffer->capacity); if (buffer->buffer == NULL) { fprintf(stderr, "vnc: out of memory\n"); exit(1); } } ...
true
qemu
2f9606b3736c3be4dbd606c46525c7b770ced119
static void buffer_reserve(Buffer *buffer, size_t len) { if ((buffer->capacity - buffer->offset) < len) { buffer->capacity += (len + 1024); buffer->buffer = qemu_realloc(buffer->buffer, buffer->capacity); if (buffer->buffer == NULL) { fprintf(stderr, "vnc: out of memory\n"); exit(1); } } ...
{ "code": [ "static void buffer_reserve(Buffer *buffer, size_t len)" ], "line_no": [ 1 ] }
static void FUNC_0(Buffer *VAR_0, size_t VAR_1) { if ((VAR_0->capacity - VAR_0->offset) < VAR_1) { VAR_0->capacity += (VAR_1 + 1024); VAR_0->VAR_0 = qemu_realloc(VAR_0->VAR_0, VAR_0->capacity); if (VAR_0->VAR_0 == NULL) { fprintf(stderr, "vnc: out of memory\n"); exit(1); } } }
[ "static void FUNC_0(Buffer *VAR_0, size_t VAR_1)\n{", "if ((VAR_0->capacity - VAR_0->offset) < VAR_1) {", "VAR_0->capacity += (VAR_1 + 1024);", "VAR_0->VAR_0 = qemu_realloc(VAR_0->VAR_0, VAR_0->capacity);", "if (VAR_0->VAR_0 == NULL) {", "fprintf(stderr, \"vnc: out of memory\\n\");", "exit(1);", "}", ...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
6,332
static void qmp_input_end_struct(Visitor *v, Error **errp) { QmpInputVisitor *qiv = to_qiv(v); qmp_input_pop(qiv, errp); }
true
qemu
15c2f669e3fb2bc97f7b42d1871f595c0ac24af8
static void qmp_input_end_struct(Visitor *v, Error **errp) { QmpInputVisitor *qiv = to_qiv(v); qmp_input_pop(qiv, errp); }
{ "code": [ "static void qmp_input_end_struct(Visitor *v, Error **errp)", " QmpInputVisitor *qiv = to_qiv(v);", " qmp_input_pop(qiv, errp);", " QmpInputVisitor *qiv = to_qiv(v);" ], "line_no": [ 1, 5, 9, 5 ] }
static void FUNC_0(Visitor *VAR_0, Error **VAR_1) { QmpInputVisitor *qiv = to_qiv(VAR_0); qmp_input_pop(qiv, VAR_1); }
[ "static void FUNC_0(Visitor *VAR_0, Error **VAR_1)\n{", "QmpInputVisitor *qiv = to_qiv(VAR_0);", "qmp_input_pop(qiv, VAR_1);", "}" ]
[ 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]