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
13,216
static int dnxhd_init_vlc(DNXHDContext *ctx, int cid) { if (cid != ctx->cid) { int index; if ((index = ff_dnxhd_get_cid_table(cid)) < 0) { av_log(ctx->avctx, AV_LOG_ERROR, "unsupported cid %d\n", cid); return -1; } if (ff_dnxhd_cid_table[index].bit_d...
true
FFmpeg
a99c273a3f91c3fd616b718c34a5848411ce0258
static int dnxhd_init_vlc(DNXHDContext *ctx, int cid) { if (cid != ctx->cid) { int index; if ((index = ff_dnxhd_get_cid_table(cid)) < 0) { av_log(ctx->avctx, AV_LOG_ERROR, "unsupported cid %d\n", cid); return -1; } if (ff_dnxhd_cid_table[index].bit_d...
{ "code": [ "static int dnxhd_init_vlc(DNXHDContext *ctx, int cid)" ], "line_no": [ 1 ] }
static int FUNC_0(DNXHDContext *VAR_0, int VAR_1) { if (VAR_1 != VAR_0->VAR_1) { int VAR_2; if ((VAR_2 = ff_dnxhd_get_cid_table(VAR_1)) < 0) { av_log(VAR_0->avctx, AV_LOG_ERROR, "unsupported VAR_1 %d\n", VAR_1); return -1; } if (ff_dnxhd_cid_table[VA...
[ "static int FUNC_0(DNXHDContext *VAR_0, int VAR_1)\n{", "if (VAR_1 != VAR_0->VAR_1) {", "int VAR_2;", "if ((VAR_2 = ff_dnxhd_get_cid_table(VAR_1)) < 0) {", "av_log(VAR_0->avctx, AV_LOG_ERROR, \"unsupported VAR_1 %d\\n\", VAR_1);", "return -1;", "}", "if (ff_dnxhd_cid_table[VAR_2].bit_depth != VAR_0->b...
[ 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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41, 43 ], [ 45, 47, 49 ], [ 51...
13,217
static int flv_set_video_codec(AVFormatContext *s, AVStream *vstream, int flv_codecid) { AVCodecContext *vcodec = vstream->codec; switch(flv_codecid) { case FLV_CODECID_H263 : vcodec->codec_id = CODEC_ID_FLV1 ; break; case FLV_CODECID_REALH263: vcodec->codec_id = CODEC_ID_H263 ; break; //...
true
FFmpeg
c4ce8709676a6f0b41761093b0da08de72799ba9
static int flv_set_video_codec(AVFormatContext *s, AVStream *vstream, int flv_codecid) { AVCodecContext *vcodec = vstream->codec; switch(flv_codecid) { case FLV_CODECID_H263 : vcodec->codec_id = CODEC_ID_FLV1 ; break; case FLV_CODECID_REALH263: vcodec->codec_id = CODEC_ID_H263 ; break; ...
{ "code": [ " vcodec->extradata = av_malloc(1);" ], "line_no": [ 27 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, int VAR_2) { AVCodecContext *vcodec = VAR_1->codec; switch(VAR_2) { case FLV_CODECID_H263 : vcodec->codec_id = CODEC_ID_FLV1 ; break; case FLV_CODECID_REALH263: vcodec->codec_id = CODEC_ID_H263 ; break; case FLV_CODECID_...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, int VAR_2) {", "AVCodecContext *vcodec = VAR_1->codec;", "switch(VAR_2) {", "case FLV_CODECID_H263 : vcodec->codec_id = CODEC_ID_FLV1 ; break;", "case FLV_CODECID_REALH263: vcodec->codec_id = CODEC_ID_H263 ; break;", "case FLV_CODECID_SCREEN: ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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 ], [...
13,218
static void vc1_mspel_mc(uint8_t *dst, const uint8_t *src, int stride, int mode, int rnd) { int i, j; uint8_t tmp[8*11], *tptr; int m, r; m = (mode & 3); r = rnd; src -= stride; tptr = tmp; for(j = 0; j < 11; j++) { for(i = 0; i < 8; i++) tptr[i] = vc1_ms...
true
FFmpeg
a70c27e813346a11e5fff3d329ecba82fb76826a
static void vc1_mspel_mc(uint8_t *dst, const uint8_t *src, int stride, int mode, int rnd) { int i, j; uint8_t tmp[8*11], *tptr; int m, r; m = (mode & 3); r = rnd; src -= stride; tptr = tmp; for(j = 0; j < 11; j++) { for(i = 0; i < 8; i++) tptr[i] = vc1_ms...
{ "code": [ " tptr[i] = vc1_mspel_filter(src + i, 1, m, r);", " dst[i] = vc1_mspel_filter(tptr + i, 8, m, r);" ], "line_no": [ 25, 45 ] }
static void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5, VAR_6; uint8_t tmp[8*11], *tptr; int VAR_7, VAR_8; VAR_7 = (VAR_3 & 3); VAR_8 = VAR_4; VAR_1 -= VAR_2; tptr = tmp; for(VAR_6 = 0; VAR_6 < 11; VAR_6++) { for(VAR_5 = ...
[ "static void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6;", "uint8_t tmp[8*11], *tptr;", "int VAR_7, VAR_8;", "VAR_7 = (VAR_3 & 3);", "VAR_8 = VAR_4;", "VAR_1 -= VAR_2;", "tptr = tmp;", "for(VAR_6 = 0; VAR_6 < 11; VAR_6++) {", "for(VAR_5 = 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
13,219
static av_cold int bfi_decode_init(AVCodecContext *avctx) { BFIContext *bfi = avctx->priv_data; avctx->pix_fmt = AV_PIX_FMT_PAL8; bfi->dst = av_mallocz(avctx->width * avctx->height); return 0; }
true
FFmpeg
1a3d142f1f1e65f554cba84d8a515684ecb390d0
static av_cold int bfi_decode_init(AVCodecContext *avctx) { BFIContext *bfi = avctx->priv_data; avctx->pix_fmt = AV_PIX_FMT_PAL8; bfi->dst = av_mallocz(avctx->width * avctx->height); return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { BFIContext *bfi = avctx->priv_data; avctx->pix_fmt = AV_PIX_FMT_PAL8; bfi->dst = av_mallocz(avctx->width * avctx->height); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "BFIContext *bfi = avctx->priv_data;", "avctx->pix_fmt = AV_PIX_FMT_PAL8;", "bfi->dst = av_mallocz(avctx->width * avctx->height);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ] ]
13,220
static void vmxnet3_set_events(VMXNET3State *s, uint32_t val) { uint32_t events; VMW_CBPRN("Setting events: 0x%x", val); events = VMXNET3_READ_DRV_SHARED32(s->drv_shmem, ecr) | val; VMXNET3_WRITE_DRV_SHARED32(s->drv_shmem, ecr, events); }
true
qemu
c508277335e3b6b20cf18e6ea3a35c1fa835c64a
static void vmxnet3_set_events(VMXNET3State *s, uint32_t val) { uint32_t events; VMW_CBPRN("Setting events: 0x%x", val); events = VMXNET3_READ_DRV_SHARED32(s->drv_shmem, ecr) | val; VMXNET3_WRITE_DRV_SHARED32(s->drv_shmem, ecr, events); }
{ "code": [ " events = VMXNET3_READ_DRV_SHARED32(s->drv_shmem, ecr) | val;", " VMXNET3_WRITE_DRV_SHARED32(s->drv_shmem, ecr, events);", " VMXNET3_WRITE_DRV_SHARED32(s->drv_shmem, ecr, events);" ], "line_no": [ 11, 13, 13 ] }
static void FUNC_0(VMXNET3State *VAR_0, uint32_t VAR_1) { uint32_t events; VMW_CBPRN("Setting events: 0x%x", VAR_1); events = VMXNET3_READ_DRV_SHARED32(VAR_0->drv_shmem, ecr) | VAR_1; VMXNET3_WRITE_DRV_SHARED32(VAR_0->drv_shmem, ecr, events); }
[ "static void FUNC_0(VMXNET3State *VAR_0, uint32_t VAR_1)\n{", "uint32_t events;", "VMW_CBPRN(\"Setting events: 0x%x\", VAR_1);", "events = VMXNET3_READ_DRV_SHARED32(VAR_0->drv_shmem, ecr) | VAR_1;", "VMXNET3_WRITE_DRV_SHARED32(VAR_0->drv_shmem, ecr, events);", "}" ]
[ 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
13,221
static int qemu_rbd_send_pipe(BDRVRBDState *s, RADOSCB *rcb) { int ret = 0; while (1) { fd_set wfd; int fd = s->fds[RBD_FD_WRITE]; /* send the op pointer to the qemu thread that is responsible for the aio/op completion. Must do it in a qemu thread context */ ...
true
qemu
e04fb07fd1676e9facd7f3f878c1bbe03bccd26b
static int qemu_rbd_send_pipe(BDRVRBDState *s, RADOSCB *rcb) { int ret = 0; while (1) { fd_set wfd; int fd = s->fds[RBD_FD_WRITE]; ret = write(fd, (void *)&rcb, sizeof(rcb)); if (ret >= 0) { break; } if (errno == EINTR) { ...
{ "code": [ "static int qemu_rbd_send_pipe(BDRVRBDState *s, RADOSCB *rcb)", " int ret = 0;", " while (1) {", " fd_set wfd;", " int fd = s->fds[RBD_FD_WRITE];", " ret = write(fd, (void *)&rcb, sizeof(rcb));", " if (ret >= 0) {", " break;", ...
static int FUNC_0(BDRVRBDState *VAR_0, RADOSCB *VAR_1) { int VAR_2 = 0; while (1) { fd_set wfd; int VAR_3 = VAR_0->fds[RBD_FD_WRITE]; VAR_2 = write(VAR_3, (void *)&VAR_1, sizeof(VAR_1)); if (VAR_2 >= 0) { break; } if (errno == E...
[ "static int FUNC_0(BDRVRBDState *VAR_0, RADOSCB *VAR_1)\n{", "int VAR_2 = 0;", "while (1) {", "fd_set wfd;", "int VAR_3 = VAR_0->fds[RBD_FD_WRITE];", "VAR_2 = write(VAR_3, (void *)&VAR_1, sizeof(VAR_1));", "if (VAR_2 >= 0) {", "break;", "}", "if (errno == EINTR) {", "continue;", "}", "if (er...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
13,222
static void tcx_init(target_phys_addr_t addr, int vram_size, int width, int height, int depth) { DeviceState *dev; SysBusDevice *s; dev = qdev_create(NULL, "SUNW,tcx"); qdev_prop_set_taddr(dev, "addr", addr); qdev_prop_set_uint32(dev, "vram_size", vram_size); qdev_...
true
qemu
e23a1b33b53d25510320b26d9f154e19c6c99725
static void tcx_init(target_phys_addr_t addr, int vram_size, int width, int height, int depth) { DeviceState *dev; SysBusDevice *s; dev = qdev_create(NULL, "SUNW,tcx"); qdev_prop_set_taddr(dev, "addr", addr); qdev_prop_set_uint32(dev, "vram_size", vram_size); qdev_...
{ "code": [ " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " ...
static void FUNC_0(target_phys_addr_t VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4) { DeviceState *dev; SysBusDevice *s; dev = qdev_create(NULL, "SUNW,tcx"); qdev_prop_set_taddr(dev, "VAR_0", VAR_0); qdev_prop_set_uint32(dev, "VAR_1", VAR_1); qdev_prop_set_uin...
[ "static void FUNC_0(target_phys_addr_t VAR_0, int VAR_1, int VAR_2,\nint VAR_3, int VAR_4)\n{", "DeviceState *dev;", "SysBusDevice *s;", "dev = qdev_create(NULL, \"SUNW,tcx\");", "qdev_prop_set_taddr(dev, \"VAR_0\", VAR_0);", "qdev_prop_set_uint32(dev, \"VAR_1\", VAR_1);", "qdev_prop_set_uint16(dev, \"V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 53 ], [ 55 ], [...
13,224
int kvm_init_vcpu(CPUState *env) { KVMState *s = kvm_state; long mmap_size; int ret; DPRINTF("kvm_init_vcpu\n"); ret = kvm_vm_ioctl(s, KVM_CREATE_VCPU, env->cpu_index); if (ret < 0) { DPRINTF("kvm_create_vcpu failed\n"); goto err; } env->kvm_fd = ret; ...
true
qemu
94a8d39afd8ccfdbf578af04c3385fdb5f545af1
int kvm_init_vcpu(CPUState *env) { KVMState *s = kvm_state; long mmap_size; int ret; DPRINTF("kvm_init_vcpu\n"); ret = kvm_vm_ioctl(s, KVM_CREATE_VCPU, env->cpu_index); if (ret < 0) { DPRINTF("kvm_create_vcpu failed\n"); goto err; } env->kvm_fd = ret; ...
{ "code": [ "#endif", "#endif", "#endif", "#ifdef KVM_CAP_COALESCED_MMIO", "#endif", "#ifdef KVM_CAP_COALESCED_MMIO", "#endif", "#ifdef KVM_CAP_COALESCED_MMIO", "#endif", "#ifdef KVM_CAP_COALESCED_MMIO", "#endif", " goto err;", "#ifdef KVM_CAP_COALESCED_MMIO"...
int FUNC_0(CPUState *VAR_0) { KVMState *s = kvm_state; long VAR_1; int VAR_2; DPRINTF("FUNC_0\n"); VAR_2 = kvm_vm_ioctl(s, KVM_CREATE_VCPU, VAR_0->cpu_index); if (VAR_2 < 0) { DPRINTF("kvm_create_vcpu failed\n"); goto err; } VAR_0->kvm_fd = VAR_2; VA...
[ "int FUNC_0(CPUState *VAR_0)\n{", "KVMState *s = kvm_state;", "long VAR_1;", "int VAR_2;", "DPRINTF(\"FUNC_0\\n\");", "VAR_2 = kvm_vm_ioctl(s, KVM_CREATE_VCPU, VAR_0->cpu_index);", "if (VAR_2 < 0) {", "DPRINTF(\"kvm_create_vcpu failed\\n\");", "goto err;", "}", "VAR_0->kvm_fd = VAR_2;", "VAR_0...
[ 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47, 49 ], [ 51 ], [...
13,226
static inline void RENAME(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX assert(src1==src2); RENAME(bgr24ToUV_mmx)(dstU, dstV, src1, width, PIX_FMT_RGB24); #else int i; assert(src1==src2); for (i=0; i...
true
FFmpeg
c3ab0004ae4dffc32494ae84dd15cfaa909a7884
static inline void RENAME(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX assert(src1==src2); RENAME(bgr24ToUV_mmx)(dstU, dstV, src1, width, PIX_FMT_RGB24); #else int i; assert(src1==src2); for (i=0; i...
{ "code": [ "static inline void RENAME(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused)" ], "line_no": [ 1 ] }
static inline void FUNC_0(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused) { #if COMPILE_TEMPLATE_MMX assert(src1==src2); FUNC_0(bgr24ToUV_mmx)(dstU, dstV, src1, width, PIX_FMT_RGB24); #else int VAR_0; assert(src1==src2); for (VA...
[ "static inline void FUNC_0(rgb24ToUV)(uint8_t *dstU, uint8_t *dstV, const uint8_t *src1, const uint8_t *src2, int width, uint32_t *unused)\n{", "#if COMPILE_TEMPLATE_MMX\nassert(src1==src2);", "FUNC_0(bgr24ToUV_mmx)(dstU, dstV, src1, width, PIX_FMT_RGB24);", "#else\nint VAR_0;", "assert(src1==src2);", "fo...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ] ]
13,227
int net_init_tap(const NetClientOptions *opts, const char *name, NetClientState *peer) { const NetdevTapOptions *tap; int fd, vnet_hdr = 0, i = 0, queues; /* for the no-fd, no-helper case */ const char *script = NULL; /* suppress wrong "uninit'd use" gcc warning */ const char...
true
qemu
c87826a878be05208c3906eb9d5e1f37cff5e98e
int net_init_tap(const NetClientOptions *opts, const char *name, NetClientState *peer) { const NetdevTapOptions *tap; int fd, vnet_hdr = 0, i = 0, queues; const char *script = NULL; const char *downscript = NULL; const char *vhostfdname; char ifname[128]; a...
{ "code": [ " tap->has_fds) {", " \"helper=, queues=, and fds= are invalid with fd=\");", " tap->has_fd) {", " \"helper=, queues=, and fd= are invalid with fds=\");", " tap->has_vnet_hdr || tap->has_queues || tap->has...
int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1, NetClientState *VAR_2) { const NetdevTapOptions *VAR_3; int VAR_4, VAR_5 = 0, VAR_6 = 0, VAR_7; const char *VAR_8 = NULL; const char *VAR_9 = NULL; const char *VAR_10; char VAR_11[128]; assert(VAR...
[ "int FUNC_0(const NetClientOptions *VAR_0, const char *VAR_1,\nNetClientState *VAR_2)\n{", "const NetdevTapOptions *VAR_3;", "int VAR_4, VAR_5 = 0, VAR_6 = 0, VAR_7;", "const char *VAR_8 = NULL;", "const char *VAR_9 = NULL;", "const char *VAR_10;", "char VAR_11[128];", "assert(VAR_0->kind == NET_CLIEN...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49, 51, 53 ], [ 55, 57 ...
13,228
static void spr_read_decr(DisasContext *ctx, int gprn, int sprn) { if (ctx->tb->cflags & CF_USE_ICOUNT) { gen_io_start(); } gen_helper_load_decr(cpu_gpr[gprn], cpu_env); if (ctx->tb->cflags & CF_USE_ICOUNT) { gen_io_end(); gen_stop_exception(ctx); } }
true
qemu
c5a49c63fa26e8825ad101dfe86339ae4c216539
static void spr_read_decr(DisasContext *ctx, int gprn, int sprn) { if (ctx->tb->cflags & CF_USE_ICOUNT) { gen_io_start(); } gen_helper_load_decr(cpu_gpr[gprn], cpu_env); if (ctx->tb->cflags & CF_USE_ICOUNT) { gen_io_end(); gen_stop_exception(ctx); } }
{ "code": [ " if (ctx->tb->cflags & CF_USE_ICOUNT) {", " if (ctx->tb->cflags & CF_USE_ICOUNT) {", " if (ctx->tb->cflags & CF_USE_ICOUNT) {", " if (ctx->tb->cflags & CF_USE_ICOUNT) {", " if (ctx->tb->cflags & CF_USE_ICOUNT) {", " if (ctx->tb->cflags & CF_USE_ICOUNT) {", " ...
static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2) { if (VAR_0->tb->cflags & CF_USE_ICOUNT) { gen_io_start(); } gen_helper_load_decr(cpu_gpr[VAR_1], cpu_env); if (VAR_0->tb->cflags & CF_USE_ICOUNT) { gen_io_end(); gen_stop_exception(VAR_0); } }
[ "static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2)\n{", "if (VAR_0->tb->cflags & CF_USE_ICOUNT) {", "gen_io_start();", "}", "gen_helper_load_decr(cpu_gpr[VAR_1], cpu_env);", "if (VAR_0->tb->cflags & CF_USE_ICOUNT) {", "gen_io_end();", "gen_stop_exception(VAR_0);", "}", "}" ]
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
13,229
static double get_scene_score(AVFilterContext *ctx, AVFilterBufferRef *picref) { double ret = 0; SelectContext *select = ctx->priv; AVFilterBufferRef *prev_picref = select->prev_picref; if (prev_picref && picref->video->h == prev_picref->video->h && picref->video->w == pre...
true
FFmpeg
0852648301ad968bc7d79d000400e2b973bbb59a
static double get_scene_score(AVFilterContext *ctx, AVFilterBufferRef *picref) { double ret = 0; SelectContext *select = ctx->priv; AVFilterBufferRef *prev_picref = select->prev_picref; if (prev_picref && picref->video->h == prev_picref->video->h && picref->video->w == pre...
{ "code": [ " int x, y;", " for (y = 0; y < picref->video->h; y += 8)", " for (x = 0; x < linesize; x += 8)", " mafd = sad / (picref->video->h * picref->video->w * 3);" ], "line_no": [ 21, 35, 37, 49 ] }
static double FUNC_0(AVFilterContext *VAR_0, AVFilterBufferRef *VAR_1) { double VAR_2 = 0; SelectContext *select = VAR_0->priv; AVFilterBufferRef *prev_picref = select->prev_picref; if (prev_picref && VAR_1->video->h == prev_picref->video->h && VAR_1->video->w == prev_picr...
[ "static double FUNC_0(AVFilterContext *VAR_0, AVFilterBufferRef *VAR_1)\n{", "double VAR_2 = 0;", "SelectContext *select = VAR_0->priv;", "AVFilterBufferRef *prev_picref = select->prev_picref;", "if (prev_picref &&\nVAR_1->video->h == prev_picref->video->h &&\nVAR_1->video->w == prev_picref->video->w ...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39, 41, 43, 45 ], [ 47 ], [ 49 ], [ 51 ...
13,231
static int do_req(int sockfd, AioContext *aio_context, SheepdogReq *hdr, void *data, unsigned int *wlen, unsigned int *rlen) { Coroutine *co; SheepdogReqCo srco = { .sockfd = sockfd, .aio_context = aio_context, .hdr = hdr, .data = data, .wlen = ...
true
qemu
0b8b8753e4d94901627b3e86431230f2319215c4
static int do_req(int sockfd, AioContext *aio_context, SheepdogReq *hdr, void *data, unsigned int *wlen, unsigned int *rlen) { Coroutine *co; SheepdogReqCo srco = { .sockfd = sockfd, .aio_context = aio_context, .hdr = hdr, .data = data, .wlen = ...
{ "code": [ " co = qemu_coroutine_create(do_co_req);", " qemu_coroutine_enter(co, &srco);" ], "line_no": [ 37, 39 ] }
static int FUNC_0(int VAR_0, AioContext *VAR_1, SheepdogReq *VAR_2, void *VAR_3, unsigned int *VAR_4, unsigned int *VAR_5) { Coroutine *co; SheepdogReqCo srco = { .VAR_0 = VAR_0, .VAR_1 = VAR_1, .VAR_2 = VAR_2, .VAR_3 = VAR_3, .VAR_4 = VAR_4, ...
[ "static int FUNC_0(int VAR_0, AioContext *VAR_1, SheepdogReq *VAR_2,\nvoid *VAR_3, unsigned int *VAR_4, unsigned int *VAR_5)\n{", "Coroutine *co;", "SheepdogReqCo srco = {", ".VAR_0 = VAR_0,\n.VAR_1 = VAR_1,\n.VAR_2 = VAR_2,\n.VAR_3 = VAR_3,\n.VAR_4 = VAR_4,\n.VAR_5 = VAR_5,\n.ret = 0,\n.finished = false,\n};...
[ 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13, 15, 17, 19, 21, 23, 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ] ]
13,232
static void gen_mtsrin(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else TCGv t0; if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); return; } t0 = tcg_temp_new(); tcg_gen_shri_tl(t0, cpu_gp...
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_mtsrin(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else TCGv t0; if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); return; } t0 = tcg_temp_new(); tcg_gen_shri_tl(t0, cpu_gp...
{ "code": [ " if (unlikely(ctx->pr)) {", " if (unlikely(ctx->pr)) {", "#if defined(CONFIG_USER_ONLY)", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);", "#else", " if (unlikely(ctx->pr)) {", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);", "#endif", "#if d...
static void FUNC_0(DisasContext *VAR_0) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); #else TCGv t0; if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); return; } t0 = tcg_temp_new(); tcg_gen_shri_tl(t0, cp...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "#else\nTCGv t0;", "if (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "return;", "}", "t0 = tcg_temp_new();", "tcg_gen_shri_tl(t0, cpu_g...
[ 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ] ]
13,233
void s390_pci_iommu_enable(S390PCIBusDevice *pbdev) { uint64_t size = pbdev->pal - pbdev->pba + 1; memory_region_init_iommu(&pbdev->iommu_mr, OBJECT(&pbdev->mr), &s390_iommu_ops, "iommu-s390", size); memory_region_add_subregion(&pbdev->mr, pbdev->pba, &pbdev->iommu_mr); ...
true
qemu
f7c40aa1e7feb50bc4d4bc171fa811bdd9a93e51
void s390_pci_iommu_enable(S390PCIBusDevice *pbdev) { uint64_t size = pbdev->pal - pbdev->pba + 1; memory_region_init_iommu(&pbdev->iommu_mr, OBJECT(&pbdev->mr), &s390_iommu_ops, "iommu-s390", size); memory_region_add_subregion(&pbdev->mr, pbdev->pba, &pbdev->iommu_mr); ...
{ "code": [ " uint64_t size = pbdev->pal - pbdev->pba + 1;", " &s390_iommu_ops, \"iommu-s390\", size);", " memory_region_add_subregion(&pbdev->mr, pbdev->pba, &pbdev->iommu_mr);" ], "line_no": [ 5, 11, 13 ] }
void FUNC_0(S390PCIBusDevice *VAR_0) { uint64_t size = VAR_0->pal - VAR_0->pba + 1; memory_region_init_iommu(&VAR_0->iommu_mr, OBJECT(&VAR_0->mr), &s390_iommu_ops, "iommu-s390", size); memory_region_add_subregion(&VAR_0->mr, VAR_0->pba, &VAR_0->iommu_mr); VAR_0->iomm...
[ "void FUNC_0(S390PCIBusDevice *VAR_0)\n{", "uint64_t size = VAR_0->pal - VAR_0->pba + 1;", "memory_region_init_iommu(&VAR_0->iommu_mr, OBJECT(&VAR_0->mr),\n&s390_iommu_ops, \"iommu-s390\", size);", "memory_region_add_subregion(&VAR_0->mr, VAR_0->pba, &VAR_0->iommu_mr);", "VAR_0->iommu_enabled = true;", "}...
[ 0, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ] ]
13,234
strdup(str) const char *str; { char *bptr; bptr = (char *)malloc(strlen(str)+1); strcpy(bptr, str); return bptr; }
true
qemu
2fd5d864099dd38b43b595e9e3375dad2f76049b
strdup(str) const char *str; { char *bptr; bptr = (char *)malloc(strlen(str)+1); strcpy(bptr, str); return bptr; }
{ "code": [ "strdup(str)", "\tconst char *str;", "\tchar *bptr;", "\tbptr = (char *)malloc(strlen(str)+1);", "\tstrcpy(bptr, str);", "\treturn bptr;" ], "line_no": [ 1, 3, 7, 11, 13, 17 ] }
FUNC_0(VAR_0) const char *VAR_0; { char *VAR_1; VAR_1 = (char *)malloc(strlen(VAR_0)+1); strcpy(VAR_1, VAR_0); return VAR_1; }
[ "FUNC_0(VAR_0)\nconst char *VAR_0;", "{", "char *VAR_1;", "VAR_1 = (char *)malloc(strlen(VAR_0)+1);", "strcpy(VAR_1, VAR_0);", "return VAR_1;", "}" ]
[ 1, 0, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ] ]
13,235
static void gen_tlbli_6xx(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_6xx_tlbi(cpu_env, cpu_gpr[rB(ctx->opcode)]); #endif...
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_tlbli_6xx(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_6xx_tlbi(cpu_env, cpu_gpr[rB(ctx->opcode)]); #endif...
{ "code": [ " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(ctx->pr)) {", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);", " if (unlikely(...
static void FUNC_0(DisasContext *VAR_0) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_6xx_tlbi(cpu_env, cpu_gpr[rB(VAR_0->opcode)]); #en...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "#else\nif (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_OPC);", "return;", "}", "gen_helper_6xx_tlbi(cpu_env, cpu_gpr[rB(VAR_0->opcode)]);", "#e...
[ 0, 1, 1, 1, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ] ]
13,237
QemuOpts *qemu_opts_parse(QemuOptsList *list, const char *params, int permit_abbrev) { const char *firstname; char value[1024], *id = NULL; const char *p; QemuOpts *opts; assert(!permit_abbrev || list->implied_opt_name); firstname = permit_abbrev ? list->impli...
true
qemu
d510c5cf343eabd4d3a301f5730af724747b7055
QemuOpts *qemu_opts_parse(QemuOptsList *list, const char *params, int permit_abbrev) { const char *firstname; char value[1024], *id = NULL; const char *p; QemuOpts *opts; assert(!permit_abbrev || list->implied_opt_name); firstname = permit_abbrev ? list->impli...
{ "code": [ " id = qemu_strdup(value);", " id = qemu_strdup(value);" ], "line_no": [ 27, 27 ] }
QemuOpts *FUNC_0(QemuOptsList *list, const char *params, int permit_abbrev) { const char *VAR_0; char VAR_1[1024], *VAR_2 = NULL; const char *VAR_3; QemuOpts *opts; assert(!permit_abbrev || list->implied_opt_name); VAR_0 = permit_abbrev ? list->implied_opt_nam...
[ "QemuOpts *FUNC_0(QemuOptsList *list, const char *params,\nint permit_abbrev)\n{", "const char *VAR_0;", "char VAR_1[1024], *VAR_2 = NULL;", "const char *VAR_3;", "QemuOpts *opts;", "assert(!permit_abbrev || list->implied_opt_name);", "VAR_0 = permit_abbrev ? list->implied_opt_name : NULL;", "if (strn...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ...
13,238
static always_inline int get_segment (CPUState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw, int type) { target_phys_addr_t sdr, hash, mask, sdr_mask, htab_mask; target_ulong sr, vsid, vsid_mask, pgidx, page_mask; #if defined(TARGET_PPC64) int attr; #endif ...
true
qemu
6f2d8978728c48ca46f5c01835438508aace5c64
static always_inline int get_segment (CPUState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw, int type) { target_phys_addr_t sdr, hash, mask, sdr_mask, htab_mask; target_ulong sr, vsid, vsid_mask, pgidx, page_mask; #if defined(TARGET_PPC64) int attr; #endif ...
{ "code": [ " ctx->raddr = (target_ulong)-1;" ], "line_no": [ 217 ] }
static always_inline int FUNC_0 (CPUState *env, mmu_ctx_t *ctx, target_ulong eaddr, int rw, int type) { target_phys_addr_t sdr, hash, mask, sdr_mask, htab_mask; target_ulong sr, vsid, vsid_mask, pgidx, page_mask; #if defined(TARGET_PPC64) int attr; #endif in...
[ "static always_inline int FUNC_0 (CPUState *env, mmu_ctx_t *ctx,\ntarget_ulong eaddr, int rw, int type)\n{", "target_phys_addr_t sdr, hash, mask, sdr_mask, htab_mask;", "target_ulong sr, vsid, vsid_mask, pgidx, page_mask;", "#if defined(TARGET_PPC64)\nint attr;", "#endif\nint VAR_0, VAR_1, VAR_2, VAR_3;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41, 43 ], [ 45, 47 ], [ 49 ], [ 51 ...
13,239
AVFilterBufferRef *avfilter_get_audio_buffer_ref_from_frame(const AVFrame *frame, int perms) { AVFilterBufferRef *samplesref = avfilter_get_audio_buffer_ref_from_arrays((uint8_t **)frame->data, frame->linesize[0], perms, ...
true
FFmpeg
5a4eb6aa275e4c1b80e1e125a7901903e35219f2
AVFilterBufferRef *avfilter_get_audio_buffer_ref_from_frame(const AVFrame *frame, int perms) { AVFilterBufferRef *samplesref = avfilter_get_audio_buffer_ref_from_arrays((uint8_t **)frame->data, frame->linesize[0], perms, ...
{ "code": [ " AVFilterBufferRef *samplesref =", " avfilter_get_audio_buffer_ref_from_arrays((uint8_t **)frame->data, frame->linesize[0], perms," ], "line_no": [ 7, 9 ] }
AVFilterBufferRef *FUNC_0(const AVFrame *frame, int perms) { AVFilterBufferRef *samplesref = avfilter_get_audio_buffer_ref_from_arrays((uint8_t **)frame->data, frame->linesize[0], perms, frame-...
[ "AVFilterBufferRef *FUNC_0(const AVFrame *frame,\nint perms)\n{", "AVFilterBufferRef *samplesref =\navfilter_get_audio_buffer_ref_from_arrays((uint8_t **)frame->data, frame->linesize[0], perms,\nframe->nb_samples, frame->format,\nav_frame_get_channel_layout(frame));", "if (!samplesref)\nreturn NULL;", "if (av...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9, 11, 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
13,240
int ff_wmv2_decode_secondary_picture_header(MpegEncContext *s) { Wmv2Context *const w = (Wmv2Context *) s; if (s->pict_type == AV_PICTURE_TYPE_I) { if (w->j_type_bit) w->j_type = get_bits1(&s->gb); else w->j_type = 0; // FIXME check if (!w->j_type) { ...
true
FFmpeg
65e0a7c473f23f1833538ffecf53c81fe500b5e4
int ff_wmv2_decode_secondary_picture_header(MpegEncContext *s) { Wmv2Context *const w = (Wmv2Context *) s; if (s->pict_type == AV_PICTURE_TYPE_I) { if (w->j_type_bit) w->j_type = get_bits1(&s->gb); else w->j_type = 0; if (!w->j_type) { if...
{ "code": [ " parse_mb_skip(w);" ], "line_no": [ 71 ] }
int FUNC_0(MpegEncContext *VAR_0) { Wmv2Context *const w = (Wmv2Context *) VAR_0; if (VAR_0->pict_type == AV_PICTURE_TYPE_I) { if (w->j_type_bit) w->j_type = get_bits1(&VAR_0->gb); else w->j_type = 0; if (!w->j_type) { if (w->per_mb_rl_bi...
[ "int FUNC_0(MpegEncContext *VAR_0)\n{", "Wmv2Context *const w = (Wmv2Context *) VAR_0;", "if (VAR_0->pict_type == AV_PICTURE_TYPE_I) {", "if (w->j_type_bit)\nw->j_type = get_bits1(&VAR_0->gb);", "else\nw->j_type = 0;", "if (!w->j_type) {", "if (w->per_mb_rl_bit)\nVAR_0->per_mb_rl_table = get_bits1(&VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
13,241
static void vp8_decode_flush_impl(AVCodecContext *avctx, int force, int is_close) { VP8Context *s = avctx->priv_data; int i; if (!avctx->is_copy || force) { for (i = 0; i < 5; i++) if (s->frames[i].data[0]) vp8_release_frame(s, &s->frames[i], is_close); } ...
true
FFmpeg
bfa0f96586fe2c257cfa574ffb991da493a54da1
static void vp8_decode_flush_impl(AVCodecContext *avctx, int force, int is_close) { VP8Context *s = avctx->priv_data; int i; if (!avctx->is_copy || force) { for (i = 0; i < 5; i++) if (s->frames[i].data[0]) vp8_release_frame(s, &s->frames[i], is_close); } ...
{ "code": [ "static void vp8_decode_flush_impl(AVCodecContext *avctx, int force, int is_close)", " if (!avctx->is_copy || force) {", " vp8_release_frame(s, &s->frames[i], is_close);", " free_buffers(s);", " s->maps_are_invalid = 1;" ], "line_no": [ 1, 11, 17...
static void FUNC_0(AVCodecContext *VAR_0, int VAR_1, int VAR_2) { VP8Context *s = VAR_0->priv_data; int VAR_3; if (!VAR_0->is_copy || VAR_1) { for (VAR_3 = 0; VAR_3 < 5; VAR_3++) if (s->frames[VAR_3].data[0]) vp8_release_frame(s, &s->frames[VAR_3], VAR_2); }...
[ "static void FUNC_0(AVCodecContext *VAR_0, int VAR_1, int VAR_2)\n{", "VP8Context *s = VAR_0->priv_data;", "int VAR_3;", "if (!VAR_0->is_copy || VAR_1) {", "for (VAR_3 = 0; VAR_3 < 5; VAR_3++)", "if (s->frames[VAR_3].data[0])\nvp8_release_frame(s, &s->frames[VAR_3], VAR_2);", "}", "memset(s->framep, 0...
[ 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ] ]
13,242
static CharDriverState *qemu_chr_open_stdio(QemuOpts *opts) { CharDriverState *chr; if (stdio_nb_clients >= STDIO_MAX_CLIENTS) { if (stdio_nb_clients == 0) { old_fd0_flags = fcntl(0, F_GETFL); tcgetattr (0, &oldtty); fcntl(0, F_SETFL, O_NONBLOCK); atexit(term_...
true
qemu
ab51b1d568e02c80b1abf9016bda3a86dc1db389
static CharDriverState *qemu_chr_open_stdio(QemuOpts *opts) { CharDriverState *chr; if (stdio_nb_clients >= STDIO_MAX_CLIENTS) { if (stdio_nb_clients == 0) { old_fd0_flags = fcntl(0, F_GETFL); tcgetattr (0, &oldtty); fcntl(0, F_SETFL, O_NONBLOCK); atexit(term_...
{ "code": [], "line_no": [] }
static CharDriverState *FUNC_0(QemuOpts *opts) { CharDriverState *chr; if (stdio_nb_clients >= STDIO_MAX_CLIENTS) { if (stdio_nb_clients == 0) { old_fd0_flags = fcntl(0, F_GETFL); tcgetattr (0, &oldtty); fcntl(0, F_SETFL, O_NONBLOCK); atexit(term_exit); ...
[ "static CharDriverState *FUNC_0(QemuOpts *opts)\n{", "CharDriverState *chr;", "if (stdio_nb_clients >= STDIO_MAX_CLIENTS) {", "if (stdio_nb_clients == 0) {", "old_fd0_flags = fcntl(0, F_GETFL);", "tcgetattr (0, &oldtty);", "fcntl(0, F_SETFL, O_NONBLOCK);", "atexit(term_exit);", "chr = qemu_chr_open_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 30 ], [ 32 ], [ 34 ], [ 36 ], [ 38 ], [ 40, 42 ], [ 44 ], [ 48 ] ]
13,243
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { LclContext * const c = (LclContext *)avctx->priv_data; unsigned char *encoded = (unsigned char *)buf; int pixel_ptr; int row, col; unsigned char *outptr; unsigned int width = avctx->width; /...
true
FFmpeg
c31b81216619e6b3d986ce63c82357993e10e8e9
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { LclContext * const c = (LclContext *)avctx->priv_data; unsigned char *encoded = (unsigned char *)buf; int pixel_ptr; int row, col; unsigned char *outptr; unsigned int width = avctx->width; ...
{ "code": [ " int pixel_ptr;", " int len = buf_size;", " mszh_dlen = mszh_decomp(encoded + 8, mthread_inlen, c->decomp_buf);", " c->decomp_buf + mthread_outlen);", " if ((c->decomp_size - mthread_out...
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { LclContext * const c = (LclContext *)VAR_0->priv_data; unsigned char *VAR_5 = (unsigned char *)VAR_3; int VAR_6; int VAR_7, VAR_8; unsigned char *VAR_9; unsigned int VAR_10 = VAR_0->VAR_10; unsi...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4)\n{", "LclContext * const c = (LclContext *)VAR_0->priv_data;", "unsigned char *VAR_5 = (unsigned char *)VAR_3;", "int VAR_6;", "int VAR_7, VAR_8;", "unsigned char *VAR_9;", "unsigned int VAR_10 = VAR_0->VAR_10;...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31, 33 ], [ 39, 41 ], [ 45, 47 ], [ 51 ], [ 53 ...
13,244
static int ram_save_host_page(RAMState *rs, PageSearchStatus *pss, bool last_stage) { int tmppages, pages = 0; size_t pagesize_bits = qemu_ram_pagesize(pss->block) >> TARGET_PAGE_BITS; do { tmppages = ram_save_target_page(rs, pss, last_stage); ...
true
qemu
1eb3fc0a0b61b5d22adee2a9add3162a6c03a47e
static int ram_save_host_page(RAMState *rs, PageSearchStatus *pss, bool last_stage) { int tmppages, pages = 0; size_t pagesize_bits = qemu_ram_pagesize(pss->block) >> TARGET_PAGE_BITS; do { tmppages = ram_save_target_page(rs, pss, last_stage); ...
{ "code": [ " } while (pss->page & (pagesize_bits - 1));" ], "line_no": [ 31 ] }
static int FUNC_0(RAMState *VAR_0, PageSearchStatus *VAR_1, bool VAR_2) { int VAR_3, VAR_4 = 0; size_t pagesize_bits = qemu_ram_pagesize(VAR_1->block) >> TARGET_PAGE_BITS; do { VAR_3 = ram_save_target_page(VAR_0, VAR_1, VAR_2); if (VAR_3 < 0) {...
[ "static int FUNC_0(RAMState *VAR_0, PageSearchStatus *VAR_1,\nbool VAR_2)\n{", "int VAR_3, VAR_4 = 0;", "size_t pagesize_bits =\nqemu_ram_pagesize(VAR_1->block) >> TARGET_PAGE_BITS;", "do {", "VAR_3 = ram_save_target_page(VAR_0, VAR_1, VAR_2);", "if (VAR_3 < 0) {", "return VAR_3;", "}", "VAR_4 += VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ] ]
13,245
static int qemu_rdma_exchange_recv(RDMAContext *rdma, RDMAControlHeader *head, int expecting) { RDMAControlHeader ready = { .len = 0, .type = RDMA_CONTROL_READY, .repeat = 1, ...
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static int qemu_rdma_exchange_recv(RDMAContext *rdma, RDMAControlHeader *head, int expecting) { RDMAControlHeader ready = { .len = 0, .type = RDMA_CONTROL_READY, .repeat = 1, ...
{ "code": [], "line_no": [] }
static int FUNC_0(RDMAContext *VAR_0, RDMAControlHeader *VAR_1, int VAR_2) { RDMAControlHeader ready = { .len = 0, .type = RDMA_CONTROL_READY, .repeat = 1, ...
[ "static int FUNC_0(RDMAContext *VAR_0, RDMAControlHeader *VAR_1,\nint VAR_2)\n{", "RDMAControlHeader ready = {", ".len = 0,\n.type = RDMA_CONTROL_READY,\n.repeat = 1,\n};", "int VAR_3;", "VAR_3 = qemu_rdma_post_send_control(VAR_0, NULL, &ready);", "if (VAR_3 < 0) {", "fprintf(stderr, \"Failed to send co...
[ 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 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 47, 49 ], [ 53 ], [ 55 ], [ 57 ], [ 61 ], [ 71 ], [ 73 ], [ 75 ], [...
13,246
static int qxl_track_command(PCIQXLDevice *qxl, struct QXLCommandExt *ext) { switch (le32_to_cpu(ext->cmd.type)) { case QXL_CMD_SURFACE: { QXLSurfaceCmd *cmd = qxl_phys2virt(qxl, ext->cmd.data, ext->group_id); if (!cmd) { uint32_t id = le32_to_cpu(cmd->surface_id); ...
true
qemu
48f4ba671bbb3dd212002d57b72a23375f51619b
static int qxl_track_command(PCIQXLDevice *qxl, struct QXLCommandExt *ext) { switch (le32_to_cpu(ext->cmd.type)) { case QXL_CMD_SURFACE: { QXLSurfaceCmd *cmd = qxl_phys2virt(qxl, ext->cmd.data, ext->group_id); if (!cmd) { uint32_t id = le32_to_cpu(cmd->surface_id); ...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIQXLDevice *VAR_0, struct QXLCommandExt *VAR_1) { switch (le32_to_cpu(VAR_1->cmd.type)) { case QXL_CMD_SURFACE: { QXLSurfaceCmd *cmd = qxl_phys2virt(VAR_0, VAR_1->cmd.data, VAR_1->group_id); if (!cmd) { uint32_t id = le32_to_cpu(cmd->surface_id); ...
[ "static int FUNC_0(PCIQXLDevice *VAR_0, struct QXLCommandExt *VAR_1)\n{", "switch (le32_to_cpu(VAR_1->cmd.type)) {", "case QXL_CMD_SURFACE:\n{", "QXLSurfaceCmd *cmd = qxl_phys2virt(VAR_0, VAR_1->cmd.data, VAR_1->group_id);", "if (!cmd) {", "uint32_t id = le32_to_cpu(cmd->surface_id);", "if (id >= VAR_0-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 15 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 50 ], [ 52 ], [ 54 ], [ 57 ], [ 59 ], [...
13,247
int tcp_fconnect(struct socket *so) { Slirp *slirp = so->slirp; int ret=0; DEBUG_CALL("tcp_fconnect"); DEBUG_ARG("so = %lx", (long )so); if( (ret=so->s=socket(AF_INET,SOCK_STREAM,0)) >= 0) { int opt, s=so->s; struct sockaddr_in addr; fd_nonblock(s); opt = 1; setsockopt(s,S...
true
qemu
40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4
int tcp_fconnect(struct socket *so) { Slirp *slirp = so->slirp; int ret=0; DEBUG_CALL("tcp_fconnect"); DEBUG_ARG("so = %lx", (long )so); if( (ret=so->s=socket(AF_INET,SOCK_STREAM,0)) >= 0) { int opt, s=so->s; struct sockaddr_in addr; fd_nonblock(s); opt = 1; setsockopt(s,S...
{ "code": [ " if( (ret=so->s=socket(AF_INET,SOCK_STREAM,0)) >= 0) {" ], "line_no": [ 17 ] }
int FUNC_0(struct socket *VAR_0) { Slirp *slirp = VAR_0->slirp; int VAR_1=0; DEBUG_CALL("FUNC_0"); DEBUG_ARG("VAR_0 = %lx", (long )VAR_0); if( (VAR_1=VAR_0->VAR_3=socket(AF_INET,SOCK_STREAM,0)) >= 0) { int VAR_2, VAR_3=VAR_0->VAR_3; struct sockaddr_in VAR_4; fd_nonblock(VAR_3); ...
[ "int FUNC_0(struct socket *VAR_0)\n{", "Slirp *slirp = VAR_0->slirp;", "int VAR_1=0;", "DEBUG_CALL(\"FUNC_0\");", "DEBUG_ARG(\"VAR_0 = %lx\", (long )VAR_0);", "if( (VAR_1=VAR_0->VAR_3=socket(AF_INET,SOCK_STREAM,0)) >= 0) {", "int VAR_2, VAR_3=VAR_0->VAR_3;", "struct sockaddr_in VAR_4;", "fd_nonblock...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 45 ], [ 47, 49 ], [ 51 ], [ 53...
13,249
static void cloop_close(BlockDriverState *bs) { BDRVCloopState *s = bs->opaque; if (s->n_blocks > 0) { g_free(s->offsets); } g_free(s->compressed_block); g_free(s->uncompressed_block); inflateEnd(&s->zstream); }
true
qemu
42d43d35d907579179a39c924d169da924786f65
static void cloop_close(BlockDriverState *bs) { BDRVCloopState *s = bs->opaque; if (s->n_blocks > 0) { g_free(s->offsets); } g_free(s->compressed_block); g_free(s->uncompressed_block); inflateEnd(&s->zstream); }
{ "code": [ " if (s->n_blocks > 0) {", " g_free(s->offsets);" ], "line_no": [ 7, 9 ] }
static void FUNC_0(BlockDriverState *VAR_0) { BDRVCloopState *s = VAR_0->opaque; if (s->n_blocks > 0) { g_free(s->offsets); } g_free(s->compressed_block); g_free(s->uncompressed_block); inflateEnd(&s->zstream); }
[ "static void FUNC_0(BlockDriverState *VAR_0)\n{", "BDRVCloopState *s = VAR_0->opaque;", "if (s->n_blocks > 0) {", "g_free(s->offsets);", "}", "g_free(s->compressed_block);", "g_free(s->uncompressed_block);", "inflateEnd(&s->zstream);", "}" ]
[ 0, 0, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
13,251
PROTO4(_pack_2ch_) PROTO4(_pack_6ch_) PROTO4(_pack_8ch_) PROTO4(_unpack_2ch_) PROTO4(_unpack_6ch_) av_cold void swri_audio_convert_init_x86(struct AudioConvert *ac, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, ...
false
FFmpeg
c16e99e3b3c02edcf33245468731d414eab97dac
PROTO4(_pack_2ch_) PROTO4(_pack_6ch_) PROTO4(_pack_8ch_) PROTO4(_unpack_2ch_) PROTO4(_unpack_6ch_) av_cold void swri_audio_convert_init_x86(struct AudioConvert *ac, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, ...
{ "code": [], "line_no": [] }
PROTO4(_pack_2ch_) PROTO4(_pack_6ch_) PROTO4(_pack_8ch_) PROTO4(_unpack_2ch_) PROTO4(_unpack_6ch_) av_cold void swri_audio_convert_init_x86(struct AudioConvert *ac, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, ...
[ "PROTO4(_pack_2ch_)\nPROTO4(_pack_6ch_)\nPROTO4(_pack_8ch_)\nPROTO4(_unpack_2ch_)\nPROTO4(_unpack_6ch_)\nav_cold void swri_audio_convert_init_x86(struct AudioConvert *ac,\nenum AVSampleFormat out_fmt,\nenum AVSampleFormat in_fmt,\nint channels){", "int mm_flags = av_get_cpu_flags();", "ac->simd_f= NULL;", "#d...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 13, 15, 17, 19 ], [ 21 ], [ 25 ], [ 33, 35 ], [ 37, 39 ], [ 41, 43 ], [ 45 ], [ 49, 51, 55 ], [ 57 ], [ 59, 61 ], [ 63 ], [ 65 ], [ 67 ], [...
13,252
int ff_unlock_avcodec(const AVCodec *codec) { _Bool exp = 1; if (codec->caps_internal & FF_CODEC_CAP_INIT_THREADSAFE || !codec->init) return 0; av_assert0(atomic_compare_exchange_strong(&ff_avcodec_locked, &exp, 0)); atomic_fetch_add(&entangled_thread_counter, -1); if (lockmgr_cb) {...
false
FFmpeg
fd542b6f2026f1aa163882ee0283958598a97c31
int ff_unlock_avcodec(const AVCodec *codec) { _Bool exp = 1; if (codec->caps_internal & FF_CODEC_CAP_INIT_THREADSAFE || !codec->init) return 0; av_assert0(atomic_compare_exchange_strong(&ff_avcodec_locked, &exp, 0)); atomic_fetch_add(&entangled_thread_counter, -1); if (lockmgr_cb) {...
{ "code": [], "line_no": [] }
int FUNC_0(const AVCodec *VAR_0) { _Bool VAR_1 = 1; if (VAR_0->caps_internal & FF_CODEC_CAP_INIT_THREADSAFE || !VAR_0->init) return 0; av_assert0(atomic_compare_exchange_strong(&ff_avcodec_locked, &VAR_1, 0)); atomic_fetch_add(&entangled_thread_counter, -1); if (lockmgr_cb) { ...
[ "int FUNC_0(const AVCodec *VAR_0)\n{", "_Bool VAR_1 = 1;", "if (VAR_0->caps_internal & FF_CODEC_CAP_INIT_THREADSAFE || !VAR_0->init)\nreturn 0;", "av_assert0(atomic_compare_exchange_strong(&ff_avcodec_locked, &VAR_1, 0));", "atomic_fetch_add(&entangled_thread_counter, -1);", "if (lockmgr_cb) {", "if ((*...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 27 ], [ 29 ] ]
13,253
static int ivi_decode_coded_blocks(GetBitContext *gb, IVIBandDesc *band, ivi_mc_func mc, int mv_x, int mv_y, int *prev_dc, int is_intra, int mc_type, uint32_t quant, int offs, ...
false
FFmpeg
25a6666f6c07c6ac8449a63d7fbce0dfd29c54cd
static int ivi_decode_coded_blocks(GetBitContext *gb, IVIBandDesc *band, ivi_mc_func mc, int mv_x, int mv_y, int *prev_dc, int is_intra, int mc_type, uint32_t quant, int offs, ...
{ "code": [], "line_no": [] }
static int FUNC_0(GetBitContext *VAR_0, IVIBandDesc *VAR_1, ivi_mc_func VAR_2, int VAR_3, int VAR_4, int *VAR_5, int VAR_6, int VAR_7, uint32_t VAR_8, int VAR_9, AVCodecContext...
[ "static int FUNC_0(GetBitContext *VAR_0, IVIBandDesc *VAR_1,\nivi_mc_func VAR_2, int VAR_3, int VAR_4,\nint *VAR_5, int VAR_6, int VAR_7,\nuint32_t VAR_8, int VAR_9,\nAVCodecContext *VAR_10)\n{", "const uint16_t *VAR_11 = VAR_6 ? VAR_1->intra_base : VAR_1->inter_base;", "RVMapDesc *rvmap = VAR_1->rv_map;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 41, 43 ], [ 47 ], [ 49 ], [ 51 ...
13,254
static void continue_send(IPMIBmcExtern *ibe) { if (ibe->outlen == 0) { goto check_reset; } send: ibe->outpos += qemu_chr_fe_write(ibe->chr, ibe->outbuf + ibe->outpos, ibe->outlen - ibe->outpos); if (ibe->outpos < ibe->outlen) { /* Not fully...
true
qemu
b72981b910097b31f4d0b9c111a2d2cfd9ee585b
static void continue_send(IPMIBmcExtern *ibe) { if (ibe->outlen == 0) { goto check_reset; } send: ibe->outpos += qemu_chr_fe_write(ibe->chr, ibe->outbuf + ibe->outpos, ibe->outlen - ibe->outpos); if (ibe->outpos < ibe->outlen) { ti...
{ "code": [ " ibe->outpos += qemu_chr_fe_write(ibe->chr, ibe->outbuf + ibe->outpos,", " ibe->outlen - ibe->outpos);" ], "line_no": [ 13, 15 ] }
static void FUNC_0(IPMIBmcExtern *VAR_0) { if (VAR_0->outlen == 0) { goto check_reset; } send: VAR_0->outpos += qemu_chr_fe_write(VAR_0->chr, VAR_0->outbuf + VAR_0->outpos, VAR_0->outlen - VAR_0->outpos); if (VAR_0->outpos < VAR_0->outlen) { ...
[ "static void FUNC_0(IPMIBmcExtern *VAR_0)\n{", "if (VAR_0->outlen == 0) {", "goto check_reset;", "}", "send:\nVAR_0->outpos += qemu_chr_fe_write(VAR_0->chr, VAR_0->outbuf + VAR_0->outpos,\nVAR_0->outlen - VAR_0->outpos);", "if (VAR_0->outpos < VAR_0->outlen) {", "timer_mod_ns(VAR_0->extern_timer,\nqemu_...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11, 13, 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 49 ], [ 51 ...
13,255
static void sdhci_do_adma(SDHCIState *s) { unsigned int n, begin, length; const uint16_t block_size = s->blksize & 0x0fff; ADMADescr dscr; int i; for (i = 0; i < SDHC_ADMA_DESCS_PER_DELAY; ++i) { s->admaerr &= ~SDHC_ADMAERR_LENGTH_MISMATCH; get_adma_description(s, &dscr);...
true
qemu
8be487d8f184f2f721cabeac559fb7a6cba18c95
static void sdhci_do_adma(SDHCIState *s) { unsigned int n, begin, length; const uint16_t block_size = s->blksize & 0x0fff; ADMADescr dscr; int i; for (i = 0; i < SDHC_ADMA_DESCS_PER_DELAY; ++i) { s->admaerr &= ~SDHC_ADMAERR_LENGTH_MISMATCH; get_adma_description(s, &dscr);...
{ "code": [ " ADMADescr dscr;", " DPRINT_L2(\"ADMA loop: addr=\" TARGET_FMT_plx \", len=%d, attr=%x\\n\",", " dscr.addr, dscr.length, dscr.attr);", " DPRINT_L1(\"ADMA link: admasysaddr=0x%\" PRIx64 \"\\n\",", " s->admasysaddr);", " ...
static void FUNC_0(SDHCIState *VAR_0) { unsigned int VAR_1, VAR_2, VAR_3; const uint16_t VAR_4 = VAR_0->blksize & 0x0fff; ADMADescr dscr; int VAR_5; for (VAR_5 = 0; VAR_5 < SDHC_ADMA_DESCS_PER_DELAY; ++VAR_5) { VAR_0->admaerr &= ~SDHC_ADMAERR_LENGTH_MISMATCH; get_adma_des...
[ "static void FUNC_0(SDHCIState *VAR_0)\n{", "unsigned int VAR_1, VAR_2, VAR_3;", "const uint16_t VAR_4 = VAR_0->blksize & 0x0fff;", "ADMADescr dscr;", "int VAR_5;", "for (VAR_5 = 0; VAR_5 < SDHC_ADMA_DESCS_PER_DELAY; ++VAR_5) {", "VAR_0->admaerr &= ~SDHC_ADMAERR_LENGTH_MISMATCH;", "get_adma_descriptio...
[ 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 29 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [...
13,256
static int copy_sectors(BlockDriverState *bs, uint64_t start_sect, uint64_t cluster_offset, int n_start, int n_end) { BDRVQcowState *s = bs->opaque; int n, ret; void *buf; /* * If this is the last cluster and it is only partially used, we must only * copy unti...
true
qemu
aef4acb6616ab7fb5c105660aa8a2cee4e250e75
static int copy_sectors(BlockDriverState *bs, uint64_t start_sect, uint64_t cluster_offset, int n_start, int n_end) { BDRVQcowState *s = bs->opaque; int n, ret; void *buf; if (start_sect + n_end > bs->total_sectors) { n_end = bs->total_sectors - sta...
{ "code": [ "static int copy_sectors(BlockDriverState *bs, uint64_t start_sect,", " uint64_t cluster_offset, int n_start, int n_end)", " void *buf;", " buf = qemu_blockalign(bs, n * BDRV_SECTOR_SIZE);", " ret = bdrv_read(bs, start_sect + n_start, buf, n);", " ...
static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t VAR_2, int VAR_3, int VAR_4) { BDRVQcowState *s = VAR_0->opaque; int VAR_5, VAR_6; void *VAR_7; if (VAR_1 + VAR_4 > VAR_0->total_sectors) { VAR_4 = VAR_0->total_sectors - VAR_1; ...
[ "static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nuint64_t VAR_2, int VAR_3, int VAR_4)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int VAR_5, VAR_6;", "void *VAR_7;", "if (VAR_1 + VAR_4 > VAR_0->total_sectors) {", "VAR_4 = VAR_0->total_sectors - VAR_1;", "}", "VAR_5 = VAR_4 - VAR_3;", "if...
[ 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], [ 61, 63,...
13,257
void arm_cpu_do_transaction_failed(CPUState *cs, hwaddr physaddr, vaddr addr, unsigned size, MMUAccessType access_type, int mmu_idx, MemTxAttrs attrs, MemTxResult response, uin...
true
qemu
3b39d734141a71296d08af3d4c32f872fafd782e
void arm_cpu_do_transaction_failed(CPUState *cs, hwaddr physaddr, vaddr addr, unsigned size, MMUAccessType access_type, int mmu_idx, MemTxAttrs attrs, MemTxResult response, uin...
{ "code": [ " fi.ea = (response != MEMTX_DECODE_ERROR);" ], "line_no": [ 35 ] }
void FUNC_0(CPUState *VAR_0, hwaddr VAR_1, vaddr VAR_2, unsigned VAR_3, MMUAccessType VAR_4, int VAR_5, MemTxAttrs VAR_6, MemTxResult VAR_7, uintptr_t VAR_8) { ARMCPU *cp...
[ "void FUNC_0(CPUState *VAR_0, hwaddr VAR_1,\nvaddr VAR_2, unsigned VAR_3,\nMMUAccessType VAR_4,\nint VAR_5, MemTxAttrs VAR_6,\nMemTxResult VAR_7, uintptr_t VAR_8)\n{", "ARMCPU *cpu = ARM_CPU(VAR_0);", "ARMMMUFaultInfo fi = {};", "cpu_restore_state(VAR_0, VAR_8);", "fi.ea = (VAR_7 != MEMTX_DECODE_ERROR);", ...
[ 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 21 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
13,258
static int truemotion1_decode_header(TrueMotion1Context *s) { int i, ret; int width_shift = 0; int new_pix_fmt; struct frame_header header; uint8_t header_buffer[128] = { 0 }; /* logical maximum size of the header */ const uint8_t *sel_vector_table; header.header_size = ((s->buf[0] >> 5) | ...
true
FFmpeg
2240e2078d53d3cfce8ff1dda64e58fa72038602
static int truemotion1_decode_header(TrueMotion1Context *s) { int i, ret; int width_shift = 0; int new_pix_fmt; struct frame_header header; uint8_t header_buffer[128] = { 0 }; const uint8_t *sel_vector_table; header.header_size = ((s->buf[0] >> 5) | (s->buf[0] << 3)) & 0x7f; if (s->buf...
{ "code": [], "line_no": [] }
static int FUNC_0(TrueMotion1Context *VAR_0) { int VAR_1, VAR_2; int VAR_3 = 0; int VAR_4; struct frame_header VAR_5; uint8_t header_buffer[128] = { 0 }; const uint8_t *VAR_6; VAR_5.header_size = ((VAR_0->buf[0] >> 5) | (VAR_0->buf[0] << 3)) & 0x7f; if (VAR_0->buf[0] < 0x10) { ...
[ "static int FUNC_0(TrueMotion1Context *VAR_0)\n{", "int VAR_1, VAR_2;", "int VAR_3 = 0;", "int VAR_4;", "struct frame_header VAR_5;", "uint8_t header_buffer[128] = { 0 };", "const uint8_t *VAR_6;", "VAR_5.header_size = ((VAR_0->buf[0] >> 5) | (VAR_0->buf[0] << 3)) & 0x7f;", "if (VAR_0->buf[0] < 0x10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10, 11 ], [ 12 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ], [ ...
13,259
static av_always_inline void RENAME(decode_line)(FFV1Context *s, int w, TYPE *sample[2], int plane_index, int bits) { PlaneContext *const p = &s->plane[plane_index]; RangeCoder *const c = &s->c; int x; ...
true
FFmpeg
4de4308d2aa3bfaa286ab566caf087d523cf9a85
static av_always_inline void RENAME(decode_line)(FFV1Context *s, int w, TYPE *sample[2], int plane_index, int bits) { PlaneContext *const p = &s->plane[plane_index]; RangeCoder *const c = &s->c; int x; ...
{ "code": [ " diff = -diff;" ], "line_no": [ 153 ] }
static av_always_inline void FUNC_0(decode_line)(FFV1Context *s, int w, TYPE *sample[2], int plane_index, int bits) { PlaneContext *const p = &s->plane[plane_index]; RangeCoder *const c = &s->c; int VAR...
[ "static av_always_inline void FUNC_0(decode_line)(FFV1Context *s, int w,\nTYPE *sample[2],\nint plane_index, int bits)\n{", "PlaneContext *const p = &s->plane[plane_index];", "RangeCoder *const c = &s->c;", "int VAR_0;", "int VAR_1 = 0;", "int VAR_2 = 0;", "int VAR_3 = s->VAR_3;", "if (s->slice_cod...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
13,260
static int bochs_open(BlockDriverState *bs, int flags) { BDRVBochsState *s = bs->opaque; int i; struct bochs_header bochs; struct bochs_header_v1 header_v1; bs->read_only = 1; // no write support yet if (bdrv_pread(bs->file, 0, &bochs, sizeof(bochs)) != sizeof(bochs)) { goto ...
true
qemu
5b7d7dfd198f06ec5edd0c857291c5035c5c060f
static int bochs_open(BlockDriverState *bs, int flags) { BDRVBochsState *s = bs->opaque; int i; struct bochs_header bochs; struct bochs_header_v1 header_v1; bs->read_only = 1; if (bdrv_pread(bs->file, 0, &bochs, sizeof(bochs)) != sizeof(bochs)) { goto fail; } if ...
{ "code": [ " if (bdrv_pread(bs->file, 0, &bochs, sizeof(bochs)) != sizeof(bochs)) {", " goto fail;", " if (bdrv_pread(bs->file, le32_to_cpu(bochs.header), s->catalog_bitmap,", " s->catalog_size * 4) != s->catalog_size * 4)", "\tgoto fail;", " fail:", " re...
static int FUNC_0(BlockDriverState *VAR_0, int VAR_1) { BDRVBochsState *s = VAR_0->opaque; int VAR_2; struct bochs_header VAR_3; struct bochs_header_v1 VAR_4; VAR_0->read_only = 1; if (bdrv_pread(VAR_0->file, 0, &VAR_3, sizeof(VAR_3)) != sizeof(VAR_3)) { goto fail; } ...
[ "static int FUNC_0(BlockDriverState *VAR_0, int VAR_1)\n{", "BDRVBochsState *s = VAR_0->opaque;", "int VAR_2;", "struct bochs_header VAR_3;", "struct bochs_header_v1 VAR_4;", "VAR_0->read_only = 1;", "if (bdrv_pread(VAR_0->file, 0, &VAR_3, sizeof(VAR_3)) != sizeof(VAR_3)) {", "goto fail;", "}", "i...
[ 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29, 31, 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
13,261
static void set_alarm (m48t59_t *NVRAM, struct tm *tm) { NVRAM->alarm = mktime(tm); if (NVRAM->alrm_timer != NULL) { qemu_del_timer(NVRAM->alrm_timer); NVRAM->alrm_timer = NULL; } if (NVRAM->alarm - time(NULL) > 0) qemu_mod_timer(NVRAM->alrm_timer, NVRAM->alarm * 1000); }
true
qemu
868d585aced5457218b3443398d08594d9c3ba6d
static void set_alarm (m48t59_t *NVRAM, struct tm *tm) { NVRAM->alarm = mktime(tm); if (NVRAM->alrm_timer != NULL) { qemu_del_timer(NVRAM->alrm_timer); NVRAM->alrm_timer = NULL; } if (NVRAM->alarm - time(NULL) > 0) qemu_mod_timer(NVRAM->alrm_timer, NVRAM->alarm * 1000); }
{ "code": [ "\tNVRAM->alrm_timer = NULL;", " if (NVRAM->alarm - time(NULL) > 0)", "\tqemu_mod_timer(NVRAM->alrm_timer, NVRAM->alarm * 1000);" ], "line_no": [ 11, 15, 17 ] }
static void FUNC_0 (m48t59_t *VAR_0, struct VAR_1 *VAR_1) { VAR_0->alarm = mktime(VAR_1); if (VAR_0->alrm_timer != NULL) { qemu_del_timer(VAR_0->alrm_timer); VAR_0->alrm_timer = NULL; } if (VAR_0->alarm - time(NULL) > 0) qemu_mod_timer(VAR_0->alrm_timer, VAR_0->alarm * 1000); }
[ "static void FUNC_0 (m48t59_t *VAR_0, struct VAR_1 *VAR_1)\n{", "VAR_0->alarm = mktime(VAR_1);", "if (VAR_0->alrm_timer != NULL) {", "qemu_del_timer(VAR_0->alrm_timer);", "VAR_0->alrm_timer = NULL;", "}", "if (VAR_0->alarm - time(NULL) > 0)\nqemu_mod_timer(VAR_0->alrm_timer, VAR_0->alarm * 1000);", "}...
[ 0, 0, 0, 0, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ] ]
13,262
static void i440fx_pcihost_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(klass); hc->root_bus_path = i440fx_pcihost_root_bus_path; dc->realize = i440fx_pcihost_realize; dc->fw_name = "pci"; dc->props = ...
true
qemu
bf8d492405feaee2c1685b3b9d5e03228ed3e47f
static void i440fx_pcihost_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(klass); hc->root_bus_path = i440fx_pcihost_root_bus_path; dc->realize = i440fx_pcihost_realize; dc->fw_name = "pci"; dc->props = ...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(VAR_0); hc->root_bus_path = i440fx_pcihost_root_bus_path; dc->realize = i440fx_pcihost_realize; dc->fw_name = "pci"; dc->props = i440fx_props; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "PCIHostBridgeClass *hc = PCI_HOST_BRIDGE_CLASS(VAR_0);", "hc->root_bus_path = i440fx_pcihost_root_bus_path;", "dc->realize = i440fx_pcihost_realize;", "dc->fw_name = \"pci\";", "dc->props = i440fx_props;...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ] ]
13,263
static void init_parse_context(OptionParseContext *octx, const OptionGroupDef *groups, int nb_groups) { static const OptionGroupDef global_group = { "global" }; int i; memset(octx, 0, sizeof(*octx)); octx->nb_groups = nb_groups; octx->groups = av_mallocz(...
true
FFmpeg
636ced8e1dc8248a1353b416240b93d70ad03edb
static void init_parse_context(OptionParseContext *octx, const OptionGroupDef *groups, int nb_groups) { static const OptionGroupDef global_group = { "global" }; int i; memset(octx, 0, sizeof(*octx)); octx->nb_groups = nb_groups; octx->groups = av_mallocz(...
{ "code": [ " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(1);", " exit(...
static void FUNC_0(OptionParseContext *VAR_0, const OptionGroupDef *VAR_1, int VAR_2) { static const OptionGroupDef VAR_3 = { "global" }; int VAR_4; memset(VAR_0, 0, sizeof(*VAR_0)); VAR_0->VAR_2 = VAR_2; VAR_0->VAR_1 = av_mallocz(sizeof(*VAR_0->VAR_1) * ...
[ "static void FUNC_0(OptionParseContext *VAR_0,\nconst OptionGroupDef *VAR_1, int VAR_2)\n{", "static const OptionGroupDef VAR_3 = { \"global\" };", "int VAR_4;", "memset(VAR_0, 0, sizeof(*VAR_0));", "VAR_0->VAR_2 = VAR_2;", "VAR_0->VAR_1 = av_mallocz(sizeof(*VAR_0->VAR_1) * VAR_0->VAR_2);", "if (!VAR...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ] ]
13,264
int ff_mov_read_chan(AVFormatContext *s, AVStream *st, int64_t size) { AVIOContext *pb = s->pb; uint32_t layout_tag, bitmap, num_descr, label_mask; int i; if (size < 12) return AVERROR_INVALIDDATA; layout_tag = avio_rb32(pb); bitmap = avio_rb32(pb); num_descr = avio...
true
FFmpeg
9afb7061f938831248942050cfdb449e014ed427
int ff_mov_read_chan(AVFormatContext *s, AVStream *st, int64_t size) { AVIOContext *pb = s->pb; uint32_t layout_tag, bitmap, num_descr, label_mask; int i; if (size < 12) return AVERROR_INVALIDDATA; layout_tag = avio_rb32(pb); bitmap = avio_rb32(pb); num_descr = avio...
{ "code": [ "int ff_mov_read_chan(AVFormatContext *s, AVStream *st, int64_t size)", " AVIOContext *pb = s->pb;" ], "line_no": [ 1, 5 ] }
int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, int64_t VAR_2) { AVIOContext *pb = VAR_0->pb; uint32_t layout_tag, bitmap, num_descr, label_mask; int VAR_3; if (VAR_2 < 12) return AVERROR_INVALIDDATA; layout_tag = avio_rb32(pb); bitmap = avio_rb32(pb); num_descr ...
[ "int FUNC_0(AVFormatContext *VAR_0, AVStream *VAR_1, int64_t VAR_2)\n{", "AVIOContext *pb = VAR_0->pb;", "uint32_t layout_tag, bitmap, num_descr, label_mask;", "int VAR_3;", "if (VAR_2 < 12)\nreturn AVERROR_INVALIDDATA;", "layout_tag = avio_rb32(pb);", "bitmap = avio_rb32(pb);", "num_descr = avio...
[ 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
13,265
void microblaze_load_kernel(MicroBlazeCPU *cpu, hwaddr ddr_base, uint32_t ramsize, const char *initrd_filename, const char *dtb_filename, void (*machine_cpu_reset)(MicroBlazeCPU *)) { QemuOpts *mach...
true
qemu
e5bfd64050e81774b6bf71ab5dd064f7bcef0c4c
void microblaze_load_kernel(MicroBlazeCPU *cpu, hwaddr ddr_base, uint32_t ramsize, const char *initrd_filename, const char *dtb_filename, void (*machine_cpu_reset)(MicroBlazeCPU *)) { QemuOpts *mach...
{ "code": [ " boot_info.bootstrap_pc = ddr_base + (entry & 0x0fffffff);" ], "line_no": [ 91 ] }
VAR_6voidVAR_6 VAR_6microblaze_load_kernelVAR_6(VAR_6MicroBlazeCPUVAR_6 *VAR_6VAR_0VAR_6, VAR_6hwaddrVAR_6 VAR_6VAR_1VAR_6, VAR_6uint32_tVAR_6 VAR_6VAR_2VAR_6, VAR_6constVAR_6 VAR_6charVAR_6 *VAR_6VAR_3VAR_6, VAR_6constVAR_6 VAR_6cha...
[ "VAR_6voidVAR_6 VAR_6microblaze_load_kernelVAR_6(VAR_6MicroBlazeCPUVAR_6 *VAR_6VAR_0VAR_6, VAR_6hwaddrVAR_6 VAR_6VAR_1VAR_6,\nVAR_6uint32_tVAR_6 VAR_6VAR_2VAR_6,\nVAR_6constVAR_6 VAR_6charVAR_6 *VAR_6VAR_3VAR_6,\nVAR_6constVAR_6 VAR_6charVAR_6 *VAR_6VAR_4VAR_6,\nVAR_6voidVAR_6 (*VAR_6VAR_5VAR_6)(VAR_6MicroBlazeCPUV...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ...
13,266
static int kvm_ppc_register_host_cpu_type(void) { TypeInfo type_info = { .name = TYPE_HOST_POWERPC_CPU, .class_init = kvmppc_host_cpu_class_init, }; PowerPCCPUClass *pvr_pcc; DeviceClass *dc; int i; pvr_pcc = kvm_ppc_get_host_cpu_class(); if (pvr_pcc == NULL) { ...
true
qemu
92e926e1e37aea7e1632535b6611ed4f62414af1
static int kvm_ppc_register_host_cpu_type(void) { TypeInfo type_info = { .name = TYPE_HOST_POWERPC_CPU, .class_init = kvmppc_host_cpu_class_init, }; PowerPCCPUClass *pvr_pcc; DeviceClass *dc; int i; pvr_pcc = kvm_ppc_get_host_cpu_class(); if (pvr_pcc == NULL) { ...
{ "code": [ " ObjectClass *oc = OBJECT_CLASS(pvr_pcc);" ], "line_no": [ 73 ] }
static int FUNC_0(void) { TypeInfo type_info = { .name = TYPE_HOST_POWERPC_CPU, .class_init = kvmppc_host_cpu_class_init, }; PowerPCCPUClass *pvr_pcc; DeviceClass *dc; int VAR_0; pvr_pcc = kvm_ppc_get_host_cpu_class(); if (pvr_pcc == NULL) { return -1; ...
[ "static int FUNC_0(void)\n{", "TypeInfo type_info = {", ".name = TYPE_HOST_POWERPC_CPU,\n.class_init = kvmppc_host_cpu_class_init,\n};", "PowerPCCPUClass *pvr_pcc;", "DeviceClass *dc;", "int VAR_0;", "pvr_pcc = kvm_ppc_get_host_cpu_class();", "if (pvr_pcc == NULL) {", "return -1;", "}", "type_in...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
13,267
static int av_encode(AVFormatContext **output_files, int nb_output_files, AVFormatContext **input_files, int nb_input_files, AVStreamMap *stream_maps, int nb_stream_maps) { int ret, i, j, k, n, nb_istreams = 0, nb_ostreams = 0, pts_...
true
FFmpeg
bd0739804640939fea4fb6f1f625b82432d46947
static int av_encode(AVFormatContext **output_files, int nb_output_files, AVFormatContext **input_files, int nb_input_files, AVStreamMap *stream_maps, int nb_stream_maps) { int ret, i, j, k, n, nb_istreams = 0, nb_ostreams = 0, pts_...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext **VAR_0, int VAR_1, AVFormatContext **VAR_2, int VAR_3, AVStreamMap *VAR_4, int VAR_5) { int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11 = 0, VAR_12 = 0, VAR_13; AVFormatContext *is, *os; AVC...
[ "static int FUNC_0(AVFormatContext **VAR_0,\nint VAR_1,\nAVFormatContext **VAR_2,\nint VAR_3,\nAVStreamMap *VAR_4, int VAR_5)\n{", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10, VAR_11 = 0, VAR_12 = 0, VAR_13;", "AVFormatContext *is, *os;", "AVCodecContext *codec, *icodec;", "AVOutputStream *ost, **ost_table = NU...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2, 3, 4, 5, 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16, 17 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ], [ 23 ], [ 24 ], [ ...
13,269
static void RENAME(mix8to2)(SAMPLE **out, const SAMPLE **in, COEFF *coeffp, integer len){ int i; for(i=0; i<len; i++) { INTER t = in[2][i]*coeffp[0*8+2] + in[3][i]*coeffp[0*8+3]; out[0][i] = R(t + in[0][i]*(INTER)coeffp[0*8+0] + in[4][i]*(INTER)coeffp[0*8+4] + in[6][i]*(INTER)coeffp[0*8+6]...
true
FFmpeg
d62030ffcaf14dd801918fe26e670d68fdc21984
static void RENAME(mix8to2)(SAMPLE **out, const SAMPLE **in, COEFF *coeffp, integer len){ int i; for(i=0; i<len; i++) { INTER t = in[2][i]*coeffp[0*8+2] + in[3][i]*coeffp[0*8+3]; out[0][i] = R(t + in[0][i]*(INTER)coeffp[0*8+0] + in[4][i]*(INTER)coeffp[0*8+4] + in[6][i]*(INTER)coeffp[0*8+6]...
{ "code": [ " INTER t = in[2][i]*coeffp[0*8+2] + in[3][i]*coeffp[0*8+3];" ], "line_no": [ 9 ] }
static void FUNC_0(mix8to2)(SAMPLE **out, const SAMPLE **in, COEFF *coeffp, integer len){ int VAR_0; for(VAR_0=0; VAR_0<len; VAR_0++) { INTER t = in[2][VAR_0]*coeffp[0*8+2] + in[3][VAR_0]*coeffp[0*8+3]; out[0][VAR_0] = R(t + in[0][VAR_0]*(INTER)coeffp[0*8+0] + in[4][VAR_0]*(INTER)coeffp[0*...
[ "static void FUNC_0(mix8to2)(SAMPLE **out, const SAMPLE **in, COEFF *coeffp, integer len){", "int VAR_0;", "for(VAR_0=0; VAR_0<len; VAR_0++) {", "INTER t = in[2][VAR_0]*coeffp[0*8+2] + in[3][VAR_0]*coeffp[0*8+3];", "out[0][VAR_0] = R(t + in[0][VAR_0]*(INTER)coeffp[0*8+0] + in[4][VAR_0]*(INTER)coeffp[0*8+4] ...
[ 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
13,271
static CharDriverState *qemu_chr_open_pp_fd(int fd, ChardevCommon *backend, Error **errp) { CharDriverState *chr; ParallelCharDriver *drv; if (ioctl(fd, PPCLAIM) < 0) { error_setg_errno(errp, errno, "not...
true
qemu
27ef9cb0e77eda46618ea084adffa63ebde5be80
static CharDriverState *qemu_chr_open_pp_fd(int fd, ChardevCommon *backend, Error **errp) { CharDriverState *chr; ParallelCharDriver *drv; if (ioctl(fd, PPCLAIM) < 0) { error_setg_errno(errp, errno, "not...
{ "code": [ " drv = g_new0(ParallelCharDriver, 1);", " drv->fd = fd;", " drv->mode = IEEE1284_MODE_COMPAT;", " chr->opaque = drv;" ], "line_no": [ 27, 29, 31, 49 ] }
static CharDriverState *FUNC_0(int fd, ChardevCommon *backend, Error **errp) { CharDriverState *chr; ParallelCharDriver *drv; if (ioctl(fd, PPCLAIM) < 0) { error_setg_errno(errp, errno, "not a parallel p...
[ "static CharDriverState *FUNC_0(int fd,\nChardevCommon *backend,\nError **errp)\n{", "CharDriverState *chr;", "ParallelCharDriver *drv;", "if (ioctl(fd, PPCLAIM) < 0) {", "error_setg_errno(errp, errno, \"not a parallel port\");", "close(fd);", "return NULL;", "}", "drv = g_new0(ParallelCharDriver, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
13,272
static void pprint_data(V9fsPDU *pdu, int rx, size_t *offsetp, const char *name) { struct iovec *sg = get_sg(pdu, rx); size_t offset = *offsetp; unsigned int count; int32_t size; int total, i, j; ssize_t len; if (rx) { count = pdu->elem.in_num; } else count =...
true
qemu
069d89b8a8dc5a9af4733bca14763b45bbb2546f
static void pprint_data(V9fsPDU *pdu, int rx, size_t *offsetp, const char *name) { struct iovec *sg = get_sg(pdu, rx); size_t offset = *offsetp; unsigned int count; int32_t size; int total, i, j; ssize_t len; if (rx) { count = pdu->elem.in_num; } else count =...
{ "code": [ " } else" ], "line_no": [ 23 ] }
static void FUNC_0(V9fsPDU *VAR_0, int VAR_1, size_t *VAR_2, const char *VAR_3) { struct iovec *VAR_4 = get_sg(VAR_0, VAR_1); size_t offset = *VAR_2; unsigned int VAR_5; int32_t size; int VAR_6, VAR_7, VAR_8; ssize_t len; if (VAR_1) { VAR_5 = VAR_0->elem.in_num; } els...
[ "static void FUNC_0(V9fsPDU *VAR_0, int VAR_1, size_t *VAR_2, const char *VAR_3)\n{", "struct iovec *VAR_4 = get_sg(VAR_0, VAR_1);", "size_t offset = *VAR_2;", "unsigned int VAR_5;", "int32_t size;", "int VAR_6, VAR_7, VAR_8;", "ssize_t len;", "if (VAR_1) {", "VAR_5 = VAR_0->elem.in_num;", "} else...
[ 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 ] ]
13,274
static void put_audio_specific_config(AVCodecContext *avctx) { PutBitContext pb; AACEncContext *s = avctx->priv_data; init_put_bits(&pb, avctx->extradata, avctx->extradata_size*8); put_bits(&pb, 5, 2); //object type - AAC-LC put_bits(&pb, 4, s->samplerate_index); //sample rate index put...
true
FFmpeg
50833c9f7b4e1922197a8955669f8ab3589c8cef
static void put_audio_specific_config(AVCodecContext *avctx) { PutBitContext pb; AACEncContext *s = avctx->priv_data; init_put_bits(&pb, avctx->extradata, avctx->extradata_size*8); put_bits(&pb, 5, 2); put_bits(&pb, 4, s->samplerate_index); put_bits(&pb, 4, s->channels); pu...
{ "code": [ " init_put_bits(&pb, avctx->extradata, avctx->extradata_size*8);" ], "line_no": [ 11 ] }
static void FUNC_0(AVCodecContext *VAR_0) { PutBitContext pb; AACEncContext *s = VAR_0->priv_data; init_put_bits(&pb, VAR_0->extradata, VAR_0->extradata_size*8); put_bits(&pb, 5, 2); put_bits(&pb, 4, s->samplerate_index); put_bits(&pb, 4, s->channels); put_bits(&pb, 1, 0); ...
[ "static void FUNC_0(AVCodecContext *VAR_0)\n{", "PutBitContext pb;", "AACEncContext *s = VAR_0->priv_data;", "init_put_bits(&pb, VAR_0->extradata, VAR_0->extradata_size*8);", "put_bits(&pb, 5, 2);", "put_bits(&pb, 4, s->samplerate_index);", "put_bits(&pb, 4, s->channels);", "put_bits(&pb, 1, 0);", "...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
13,275
static void error_setv(Error **errp, ErrorClass err_class, const char *fmt, va_list ap) { Error *err; int saved_errno = errno; if (errp == NULL) { return; } assert(*errp == NULL); err = g_malloc0(sizeof(*err)); err->msg = g_strdup_vprintf(fmt, ap)...
true
qemu
1e9b65bb1bad51735cab6c861c29b592dccabf0e
static void error_setv(Error **errp, ErrorClass err_class, const char *fmt, va_list ap) { Error *err; int saved_errno = errno; if (errp == NULL) { return; } assert(*errp == NULL); err = g_malloc0(sizeof(*err)); err->msg = g_strdup_vprintf(fmt, ap)...
{ "code": [ "static void error_setv(Error **errp, ErrorClass err_class,", " const char *fmt, va_list ap)", " error_report_err(err);", " abort();", " abort();" ], "line_no": [ 1, 3, 33, 35, 35 ] }
static void FUNC_0(Error **VAR_0, ErrorClass VAR_1, const char *VAR_2, va_list VAR_3) { Error *err; int VAR_4 = errno; if (VAR_0 == NULL) { return; } assert(*VAR_0 == NULL); err = g_malloc0(sizeof(*err)); err->msg = g_strdup_vprintf(VAR_2, VAR_3);...
[ "static void FUNC_0(Error **VAR_0, ErrorClass VAR_1,\nconst char *VAR_2, va_list VAR_3)\n{", "Error *err;", "int VAR_4 = errno;", "if (VAR_0 == NULL) {", "return;", "}", "assert(*VAR_0 == NULL);", "err = g_malloc0(sizeof(*err));", "err->msg = g_strdup_vprintf(VAR_2, VAR_3);", "err->VAR_1 = VAR_1;"...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ] ]
13,276
static QObject *qdict_get_obj(const QDict *qdict, const char *key, QType type) { QObject *obj; obj = qdict_get(qdict, key); assert(obj != NULL); assert(qobject_type(obj) == type); return obj; }
true
qemu
b25f23e7dbc6bc0dcda010222a4f178669d1aedc
static QObject *qdict_get_obj(const QDict *qdict, const char *key, QType type) { QObject *obj; obj = qdict_get(qdict, key); assert(obj != NULL); assert(qobject_type(obj) == type); return obj; }
{ "code": [ "static QObject *qdict_get_obj(const QDict *qdict, const char *key, QType type)", " QObject *obj;", " obj = qdict_get(qdict, key);", " assert(obj != NULL);", " assert(qobject_type(obj) == type);", " return obj;" ], "line_no": [ 1, 5, 9, 11, 13...
static QObject *FUNC_0(const QDict *qdict, const char *key, QType type) { QObject *obj; obj = qdict_get(qdict, key); assert(obj != NULL); assert(qobject_type(obj) == type); return obj; }
[ "static QObject *FUNC_0(const QDict *qdict, const char *key, QType type)\n{", "QObject *obj;", "obj = qdict_get(qdict, key);", "assert(obj != NULL);", "assert(qobject_type(obj) == type);", "return obj;", "}" ]
[ 1, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ] ]
13,277
static av_cold int libschroedinger_encode_init(AVCodecContext *avctx) { SchroEncoderParams *p_schro_params = avctx->priv_data; SchroVideoFormatEnum preset; /* Initialize the libraries that libschroedinger depends on. */ schro_init(); /* Create an encoder object. */ p_schro_params->enc...
true
FFmpeg
220b24c7c97dc033ceab1510549f66d0e7b52ef1
static av_cold int libschroedinger_encode_init(AVCodecContext *avctx) { SchroEncoderParams *p_schro_params = avctx->priv_data; SchroVideoFormatEnum preset; schro_init(); p_schro_params->encoder = schro_encoder_new(); if (!p_schro_params->encoder) { av_log(avctx, AV_L...
{ "code": [ " return -1;", " return 0;", " schro_init();", " schro_debug_set_level(avctx->debug);", " return -1;", " return 0;", " if (ff_get_schro_frame_format(p_schro_params->format->chroma_format,", " &p_schro_params->fra...
static av_cold int FUNC_0(AVCodecContext *avctx) { SchroEncoderParams *p_schro_params = avctx->priv_data; SchroVideoFormatEnum preset; schro_init(); p_schro_params->encoder = schro_encoder_new(); if (!p_schro_params->encoder) { av_log(avctx, AV_LOG_ERROR, ...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "SchroEncoderParams *p_schro_params = avctx->priv_data;", "SchroVideoFormatEnum preset;", "schro_init();", "p_schro_params->encoder = schro_encoder_new();", "if (!p_schro_params->encoder) {", "av_log(avctx, AV_LOG_ERROR,\n\"Unrecoverable Error: schr...
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51, 53 ], [ 57 ], [ 59 ], [ 61 ], ...
13,279
static int dca_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int channel_mask; int channel_layout; int lfe_samples; int num_core_channels = 0; int i, re...
true
FFmpeg
02d6d053396626ff5b3390e48a9933e0d4164b28
static int dca_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; int channel_mask; int channel_layout; int lfe_samples; int num_core_channels = 0; int i, re...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; int VAR_6; int VAR_7; int VAR_8; int VAR_9 = 0; int VAR_10, VAR_11; float **VAR_12; float *VAR_13;...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "int VAR_6;", "int VAR_7;", "int VAR_8;", "int VAR_9 = 0;", "int VAR_10, VAR_11;", "float **VAR_12;", "float *VAR_13;", "float *VAR_14;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [...
13,280
static int tiff_unpack_strip(TiffContext *s, uint8_t *dst, int stride, const uint8_t *src, int size, int lines) { int c, line, pixels, code, ret; const uint8_t *ssrc = src; int width = ((s->width * s->bpp) + 7) >> 3; if (size <= 0) return AVERROR_I...
true
FFmpeg
9c2216976907336dfae0e8e38a4d70ca2465a92c
static int tiff_unpack_strip(TiffContext *s, uint8_t *dst, int stride, const uint8_t *src, int size, int lines) { int c, line, pixels, code, ret; const uint8_t *ssrc = src; int width = ((s->width * s->bpp) + 7) >> 3; if (size <= 0) return AVERROR_I...
{ "code": [ " if (pixels + code > width) {" ], "line_no": [ 109 ] }
static int FUNC_0(TiffContext *VAR_0, uint8_t *VAR_1, int VAR_2, const uint8_t *VAR_3, int VAR_4, int VAR_5) { int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; const uint8_t *VAR_11 = VAR_3; int VAR_12 = ((VAR_0->VAR_12 * VAR_0->bpp) + 7) >> 3; if (VAR_4 <= 0) ...
[ "static int FUNC_0(TiffContext *VAR_0, uint8_t *VAR_1, int VAR_2,\nconst uint8_t *VAR_3, int VAR_4, int VAR_5)\n{", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "const uint8_t *VAR_11 = VAR_3;", "int VAR_12 = ((VAR_0->VAR_12 * VAR_0->bpp) + 7) >> 3;", "if (VAR_4 <= 0)\nreturn AVERROR_INVALIDDATA;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23, 25 ], [ 27, 29, 31, 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
13,281
AVBitStreamFilterContext *av_bitstream_filter_init(const char *name){ AVBitStreamFilter *bsf= first_bitstream_filter; while(bsf){ if(!strcmp(name, bsf->name)){ AVBitStreamFilterContext *bsfc= av_mallocz(sizeof(AVBitStreamFilterContext)); bsfc->filter= bsf; bsf...
true
FFmpeg
e7d4a2a721ae863488f6a3814f9dcdbc6e8f5166
AVBitStreamFilterContext *av_bitstream_filter_init(const char *name){ AVBitStreamFilter *bsf= first_bitstream_filter; while(bsf){ if(!strcmp(name, bsf->name)){ AVBitStreamFilterContext *bsfc= av_mallocz(sizeof(AVBitStreamFilterContext)); bsfc->filter= bsf; bsf...
{ "code": [ " bsfc->priv_data= av_mallocz(bsf->priv_data_size);" ], "line_no": [ 15 ] }
AVBitStreamFilterContext *FUNC_0(const char *name){ AVBitStreamFilter *bsf= first_bitstream_filter; while(bsf){ if(!strcmp(name, bsf->name)){ AVBitStreamFilterContext *bsfc= av_mallocz(sizeof(AVBitStreamFilterContext)); bsfc->filter= bsf; bsfc->priv_data= av_m...
[ "AVBitStreamFilterContext *FUNC_0(const char *name){", "AVBitStreamFilter *bsf= first_bitstream_filter;", "while(bsf){", "if(!strcmp(name, bsf->name)){", "AVBitStreamFilterContext *bsfc= av_mallocz(sizeof(AVBitStreamFilterContext));", "bsfc->filter= bsf;", "bsfc->priv_data= av_mallocz(bsf->priv_data_siz...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
13,283
void ff_avg_h264_qpel8_mc22_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_mid_and_aver_dst_8w_msa(src - (2 * stride) - 2, stride, dst, stride, 8); }
false
FFmpeg
1181d93231e9b807965724587d363c1cfd5a1d0d
void ff_avg_h264_qpel8_mc22_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_mid_and_aver_dst_8w_msa(src - (2 * stride) - 2, stride, dst, stride, 8); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_mid_and_aver_dst_8w_msa(VAR_1 - (2 * VAR_2) - 2, VAR_2, VAR_0, VAR_2, 8); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_mid_and_aver_dst_8w_msa(VAR_1 - (2 * VAR_2) - 2,\nVAR_2, VAR_0, VAR_2, 8);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ] ]
13,284
static int ac3_decode_init(AVCodecContext *avctx) { AC3DecodeContext *ctx = avctx->priv_data; ac3_common_init(); ff_mdct_init(&ctx->imdct_ctx_256, 8, 1); ff_mdct_init(&ctx->imdct_ctx_512, 9, 1); ctx->samples = av_mallocz(6 * 256 * sizeof (float)); if (!ctx->samples) { av_log(...
false
FFmpeg
0058584580b87feb47898e60e4b80c7f425882ad
static int ac3_decode_init(AVCodecContext *avctx) { AC3DecodeContext *ctx = avctx->priv_data; ac3_common_init(); ff_mdct_init(&ctx->imdct_ctx_256, 8, 1); ff_mdct_init(&ctx->imdct_ctx_512, 9, 1); ctx->samples = av_mallocz(6 * 256 * sizeof (float)); if (!ctx->samples) { av_log(...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { AC3DecodeContext *ctx = VAR_0->priv_data; ac3_common_init(); ff_mdct_init(&ctx->imdct_ctx_256, 8, 1); ff_mdct_init(&ctx->imdct_ctx_512, 9, 1); ctx->samples = av_mallocz(6 * 256 * sizeof (float)); if (!ctx->samples) { av_log(VAR_0, AV...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "AC3DecodeContext *ctx = VAR_0->priv_data;", "ac3_common_init();", "ff_mdct_init(&ctx->imdct_ctx_256, 8, 1);", "ff_mdct_init(&ctx->imdct_ctx_512, 9, 1);", "ctx->samples = av_mallocz(6 * 256 * sizeof (float));", "if (!ctx->samples) {", "av_log(VAR_0, AV_LO...
[ 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 ], [ 31 ], [ 33 ] ]
13,285
static av_cold int flashsv_encode_init(AVCodecContext *avctx) { FlashSVContext *s = avctx->priv_data; s->avctx = avctx; if (avctx->width > 4095 || avctx->height > 4095) { av_log(avctx, AV_LOG_ERROR, "Input dimensions too large, input must be max 4096x4096 !\n"); ret...
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int flashsv_encode_init(AVCodecContext *avctx) { FlashSVContext *s = avctx->priv_data; s->avctx = avctx; if (avctx->width > 4095 || avctx->height > 4095) { av_log(avctx, AV_LOG_ERROR, "Input dimensions too large, input must be max 4096x4096 !\n"); ret...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { FlashSVContext *s = avctx->priv_data; s->avctx = avctx; if (avctx->width > 4095 || avctx->height > 4095) { av_log(avctx, AV_LOG_ERROR, "Input dimensions too large, input must be max 4096x4096 !\n"); return AVERROR_I...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "FlashSVContext *s = avctx->priv_data;", "s->avctx = avctx;", "if (avctx->width > 4095 || avctx->height > 4095) {", "av_log(avctx, AV_LOG_ERROR,\n\"Input dimensions too large, input must be max 4096x4096 !\\n\");", "return AVERROR_INVALIDDATA;", "}"...
[ 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 ], [ 27 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [ 59 ], ...
13,286
static int subtitle_thread(void *arg) { VideoState *is = arg; Frame *sp; int got_subtitle; double pts; int i; for (;;) { if (!(sp = frame_queue_peek_writable(&is->subpq))) return 0; if ((got_subtitle = decoder_decode_frame(&is->subdec, NULL, &sp->sub)) <...
false
FFmpeg
03037a4aad8b92c00ef2f115605ad20fc4410fe5
static int subtitle_thread(void *arg) { VideoState *is = arg; Frame *sp; int got_subtitle; double pts; int i; for (;;) { if (!(sp = frame_queue_peek_writable(&is->subpq))) return 0; if ((got_subtitle = decoder_decode_frame(&is->subdec, NULL, &sp->sub)) <...
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0) { VideoState *is = VAR_0; Frame *sp; int VAR_1; double VAR_2; int VAR_3; for (;;) { if (!(sp = frame_queue_peek_writable(&is->subpq))) return 0; if ((VAR_1 = decoder_decode_frame(&is->subdec, NULL, &sp->sub)) < 0) ...
[ "static int FUNC_0(void *VAR_0)\n{", "VideoState *is = VAR_0;", "Frame *sp;", "int VAR_1;", "double VAR_2;", "int VAR_3;", "for (;;) {", "if (!(sp = frame_queue_peek_writable(&is->subpq)))\nreturn 0;", "if ((VAR_1 = decoder_decode_frame(&is->subdec, NULL, &sp->sub)) < 0)\nbreak;", "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, 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 ], [ 31 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
13,287
static int vb_decode_framedata(VBDecContext *c, const uint8_t *buf, int offset) { uint8_t *prev, *cur; int blk, blocks, t, blk2; int blocktypes = 0; int x, y, a, b; int pattype, pattern; const int width = c->avctx->width; uint8_t *pstart = c->prev_frame; uint8_t *pend = c->prev_...
false
FFmpeg
57835fc1aeaf0b3bbc0816b123a931ea39de758b
static int vb_decode_framedata(VBDecContext *c, const uint8_t *buf, int offset) { uint8_t *prev, *cur; int blk, blocks, t, blk2; int blocktypes = 0; int x, y, a, b; int pattype, pattern; const int width = c->avctx->width; uint8_t *pstart = c->prev_frame; uint8_t *pend = c->prev_...
{ "code": [], "line_no": [] }
static int FUNC_0(VBDecContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { uint8_t *prev, *cur; int VAR_3, VAR_4, VAR_5, VAR_6; int VAR_7 = 0; int VAR_8, VAR_9, VAR_10, VAR_11; int VAR_12, VAR_13; const int VAR_14 = VAR_0->avctx->VAR_14; uint8_t *pstart = VAR_0->prev_frame; uint8...
[ "static int FUNC_0(VBDecContext *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "uint8_t *prev, *cur;", "int VAR_3, VAR_4, VAR_5, VAR_6;", "int VAR_7 = 0;", "int VAR_8, VAR_9, VAR_10, VAR_11;", "int VAR_12, VAR_13;", "const int VAR_14 = VAR_0->avctx->VAR_14;", "uint8_t *pstart = VAR_0->prev_frame;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45, 47 ], [...
13,288
static void pre_calc_cosmod(DCAContext * s) { int i, j, k; static int cosmod_inited = 0; if(cosmod_inited) return; for (j = 0, k = 0; k < 16; k++) for (i = 0; i < 16; i++) cos_mod[j++] = cos((2 * i + 1) * (2 * k + 1) * M_PI / 64); for (k = 0; k < 16; k++) for...
false
FFmpeg
5e53486545726987ab4482321d4dcf7e23e7652f
static void pre_calc_cosmod(DCAContext * s) { int i, j, k; static int cosmod_inited = 0; if(cosmod_inited) return; for (j = 0, k = 0; k < 16; k++) for (i = 0; i < 16; i++) cos_mod[j++] = cos((2 * i + 1) * (2 * k + 1) * M_PI / 64); for (k = 0; k < 16; k++) for...
{ "code": [], "line_no": [] }
static void FUNC_0(DCAContext * VAR_0) { int VAR_1, VAR_2, VAR_3; static int VAR_4 = 0; if(VAR_4) return; for (VAR_2 = 0, VAR_3 = 0; VAR_3 < 16; VAR_3++) for (VAR_1 = 0; VAR_1 < 16; VAR_1++) cos_mod[VAR_2++] = cos((2 * VAR_1 + 1) * (2 * VAR_3 + 1) * M_PI / 64); for (V...
[ "static void FUNC_0(DCAContext * VAR_0)\n{", "int VAR_1, VAR_2, VAR_3;", "static int VAR_4 = 0;", "if(VAR_4) return;", "for (VAR_2 = 0, VAR_3 = 0; VAR_3 < 16; VAR_3++)", "for (VAR_1 = 0; VAR_1 < 16; VAR_1++)", "cos_mod[VAR_2++] = cos((2 * VAR_1 + 1) * (2 * VAR_3 + 1) * M_PI / 64);", "for (VAR_3 = 0; V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ] ]
13,289
static int RENAME(dct_quantize)(MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow) { int level=0, last_non_zero_p1, q; //=0 is cuz gcc says uninitalized ... const uint16_t *qmat, *bias; static __align8 int16_t temp_block[64]; ...
false
FFmpeg
d04fdff1617dd2bc1e24b940b6ed590d3188522b
static int RENAME(dct_quantize)(MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow) { int level=0, last_non_zero_p1, q; const uint16_t *qmat, *bias; static __align8 int16_t temp_block[64]; ff_fdct_mmx (block); ...
{ "code": [], "line_no": [] }
static int FUNC_0(dct_quantize)(MpegEncContext *s, DCTELEM *block, int n, int qscale, int *overflow) { int VAR_0=0, VAR_1, VAR_2; const uint16_t *VAR_3, *bias; static __align8 VAR_4 temp_block[64]; ff_fdct_mmx (block); if (s...
[ "static int FUNC_0(dct_quantize)(MpegEncContext *s,\nDCTELEM *block, int n,\nint qscale, int *overflow)\n{", "int VAR_0=0, VAR_1, VAR_2;", "const uint16_t *VAR_3, *bias;", "static __align8 VAR_4 temp_block[64];", "ff_fdct_mmx (block);", "if (s->mb_intra) {", "int VAR_5;", "if (n < 4)\nVAR_2 = s->y_dc_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31, 33 ], [ 37 ], [ 39, 41, 43, 45, 47, 49 ], [ 51, 53, 55, 57, 59, 61, 63, 65,...
13,290
void ff_put_pixels_clamped_c(const DCTELEM *block, uint8_t *restrict pixels, int line_size) { int i; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; /* read the pixels */ for(i=0;i<8;i++) { pixels[0] = cm[block[0]]; pixels[1] = cm[block[1]]; pixel...
true
FFmpeg
c23acbaed40101c677dfcfbbfe0d2c230a8e8f44
void ff_put_pixels_clamped_c(const DCTELEM *block, uint8_t *restrict pixels, int line_size) { int i; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; for(i=0;i<8;i++) { pixels[0] = cm[block[0]]; pixels[1] = cm[block[1]]; pixels[2] = cm[block[2]]; ...
{ "code": [ " uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", " pixels[0] = cm[block[0]];", " pixels[1] = cm[block[1]];", " pixels[2] = cm[block[2]];", " pixels[3] = cm[block[3]];", " pixels[4] = cm[block[4]];", " pixels[5] = cm[block[5]];", " ...
void FUNC_0(const DCTELEM *VAR_0, uint8_t *restrict VAR_1, int VAR_2) { int VAR_3; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; for(VAR_3=0;VAR_3<8;VAR_3++) { VAR_1[0] = cm[VAR_0[0]]; VAR_1[1] = cm[VAR_0[1]]; VAR_1[2] = cm[VAR_0[2]]; ...
[ "void FUNC_0(const DCTELEM *VAR_0, uint8_t *restrict VAR_1,\nint VAR_2)\n{", "int VAR_3;", "uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;", "for(VAR_3=0;VAR_3<8;VAR_3++) {", "VAR_1[0] = cm[VAR_0[0]];", "VAR_1[1] = cm[VAR_0[1]];", "VAR_1[2] = cm[VAR_0[2]];", "VAR_1[3] = cm[VAR_0[3]];", "VAR_1[4] = cm[VAR_...
[ 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
13,292
int has_altivec(void) { #ifdef __AMIGAOS4__ ULONG result = 0; extern struct ExecIFace *IExec; IExec->GetCPUInfoTags(GCIT_VectorUnit, &result, TAG_DONE); if (result == VECTORTYPE_ALTIVEC) return 1; #elif __APPLE__ int sels[2] = {CTL_HW, HW_VECTORUNIT}; int has_vu = 0; size_t len ...
true
FFmpeg
b8659d94b76c9b90c0aff3c5c01bfd2be6324e93
int has_altivec(void) { #ifdef __AMIGAOS4__ ULONG result = 0; extern struct ExecIFace *IExec; IExec->GetCPUInfoTags(GCIT_VectorUnit, &result, TAG_DONE); if (result == VECTORTYPE_ALTIVEC) return 1; #elif __APPLE__ int sels[2] = {CTL_HW, HW_VECTORUNIT}; int has_vu = 0; size_t len ...
{ "code": [], "line_no": [] }
int FUNC_0(void) { #ifdef __AMIGAOS4__ ULONG result = 0; extern struct ExecIFace *IExec; IExec->GetCPUInfoTags(GCIT_VectorUnit, &result, TAG_DONE); if (result == VECTORTYPE_ALTIVEC) return 1; #elif __APPLE__ int VAR_0[2] = {CTL_HW, HW_VECTORUNIT}; int VAR_1 = 0; size_t len = siz...
[ "int FUNC_0(void)\n{", "#ifdef __AMIGAOS4__\nULONG result = 0;", "extern struct ExecIFace *IExec;", "IExec->GetCPUInfoTags(GCIT_VectorUnit, &result, TAG_DONE);", "if (result == VECTORTYPE_ALTIVEC) return 1;", "#elif __APPLE__\nint VAR_0[2] = {CTL_HW, HW_VECTORUNIT};", "int VAR_1 = 0;", "size_t len = s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 13 ], [ 15 ], [ 18, 20 ], [ 22 ], [ 24 ], [ 26 ], [ 30 ], [ 34 ], [ 49, 56, 58 ] ]
13,294
static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int k...
true
FFmpeg
889afca369ef3a939c68592ef2b1a1756667ce21
static int aac_adtstoasc_filter(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int k...
{ "code": [], "line_no": [] }
static int FUNC_0(AVBitStreamFilterContext *VAR_0, AVCodecContext *VAR_1, const char *VAR_2, uint8_t **VAR_3, int *VAR_4, const uint8_t *VAR_5, int VAR_6, int VAR_7) { GetBitCo...
[ "static int FUNC_0(AVBitStreamFilterContext *VAR_0,\nAVCodecContext *VAR_1, const char *VAR_2,\nuint8_t **VAR_3, int *VAR_4,\nconst uint8_t *VAR_5, int VAR_6,\nint VAR_7)\n{", "GetBitContext gb;", "PutBitContext pb;", "AACADTSHeaderInfo hdr;", "AACBSFContext *ctx = VAR_0->priv_data;", "init_get_bits...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 35, 37, 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55, 57 ], [ 59 ], [...
13,295
static int tgv_decode_inter(TgvContext * s, const uint8_t *buf, const uint8_t *buf_end){ unsigned char *frame0_end = s->last_frame.data[0] + s->avctx->width*s->last_frame.linesize[0]; int num_mvs; int num_blocks_raw; int num_blocks_packed; int vector_bits; int i,j,x,y; GetBitContext g...
true
FFmpeg
09302a897d1990b1338f049fcd29638d736b8823
static int tgv_decode_inter(TgvContext * s, const uint8_t *buf, const uint8_t *buf_end){ unsigned char *frame0_end = s->last_frame.data[0] + s->avctx->width*s->last_frame.linesize[0]; int num_mvs; int num_blocks_raw; int num_blocks_packed; int vector_bits; int i,j,x,y; GetBitContext g...
{ "code": [ " unsigned char *frame0_end = s->last_frame.data[0] + s->avctx->width*s->last_frame.linesize[0];", " if (src+3*src_stride+3>=frame0_end)" ], "line_no": [ 3, 149 ] }
static int FUNC_0(TgvContext * VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2){ unsigned char *VAR_3 = VAR_0->last_frame.data[0] + VAR_0->avctx->width*VAR_0->last_frame.linesize[0]; int VAR_4; int VAR_5; int VAR_6; int VAR_7; int VAR_8,VAR_9,VAR_10,VAR_11; GetBitContext gb; in...
[ "static int FUNC_0(TgvContext * VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2){", "unsigned char *VAR_3 = VAR_0->last_frame.data[0] + VAR_0->avctx->width*VAR_0->last_frame.linesize[0];", "int VAR_4;", "int VAR_5;", "int VAR_6;", "int VAR_7;", "int VAR_8,VAR_9,VAR_10,VAR_11;", "GetBitContext gb;", ...
[ 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
13,296
static void generic_loader_realize(DeviceState *dev, Error **errp) { GenericLoaderState *s = GENERIC_LOADER(dev); hwaddr entry; int big_endian; int size = 0; s->set_pc = false; /* Perform some error checking on the user's options */ if (s->data || s->data_len || s->data_be) { ...
true
qemu
6516367fc0803d079384e0ad370856ac328bef30
static void generic_loader_realize(DeviceState *dev, Error **errp) { GenericLoaderState *s = GENERIC_LOADER(dev); hwaddr entry; int big_endian; int size = 0; s->set_pc = false; if (s->data || s->data_len || s->data_be) { if (s->file) { error_setg...
{ "code": [ " big_endian, 0, 0, 0, s->cpu->as);", " s->cpu->as);", " size = load_image_targphys_as(s->file, s->addr, ram_size,", " s->cpu->as);" ], "line_no": [ 163, 171, ...
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { GenericLoaderState *s = GENERIC_LOADER(VAR_0); hwaddr entry; int VAR_2; int VAR_3 = 0; s->set_pc = false; if (s->data || s->data_len || s->data_be) { if (s->file) { error_setg(VAR_1, "Specif...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "GenericLoaderState *s = GENERIC_LOADER(VAR_0);", "hwaddr entry;", "int VAR_2;", "int VAR_3 = 0;", "s->set_pc = false;", "if (s->data || s->data_len || s->data_be) {", "if (s->file) {", "error_setg(VAR_1, \"Specifying a file is not support...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
13,297
static inline void RENAME(nvXXtoUV)(uint8_t *dst1, uint8_t *dst2, const uint8_t *src, long width) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "movq "MANGLE(bm01010101)", %%mm4 \n\t" "mov %0, %%"REG_a" \n\t" "1: ...
false
FFmpeg
d1adad3cca407f493c3637e20ecd4f7124e69212
static inline void RENAME(nvXXtoUV)(uint8_t *dst1, uint8_t *dst2, const uint8_t *src, long width) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "movq "MANGLE(bm01010101)", %%mm4 \n\t" "mov %0, %%"REG_a" \n\t" "1: ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(nvXXtoUV)(uint8_t *dst1, uint8_t *dst2, const uint8_t *src, long width) { #if COMPILE_TEMPLATE_MMX __asm__ volatile( "movq "MANGLE(bm01010101)", %%mm4 \n\t" "mov %0, %%"REG_a" \n\t" "1: ...
[ "static inline void FUNC_0(nvXXtoUV)(uint8_t *dst1, uint8_t *dst2,\nconst uint8_t *src, long width)\n{", "#if COMPILE_TEMPLATE_MMX\n__asm__ volatile(\n\"movq \"MANGLE(bm01010101)\", %%mm4 \\n\\t\"\n\"mov %0, %%\"REG_a\" \\n\\t\"\n\"1: \\n\...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49 ], [ 51, 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63, 65 ...
13,298
static int mpc7_decode_init(AVCodecContext * avctx) { int i, j; MPCContext *c = avctx->priv_data; GetBitContext gb; uint8_t buf[16]; static int vlc_inited = 0; if(avctx->extradata_size < 16){ av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size)...
false
FFmpeg
5e53486545726987ab4482321d4dcf7e23e7652f
static int mpc7_decode_init(AVCodecContext * avctx) { int i, j; MPCContext *c = avctx->priv_data; GetBitContext gb; uint8_t buf[16]; static int vlc_inited = 0; if(avctx->extradata_size < 16){ av_log(avctx, AV_LOG_ERROR, "Too small extradata size (%i)!\n", avctx->extradata_size)...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext * VAR_0) { int VAR_1, VAR_2; MPCContext *c = VAR_0->priv_data; GetBitContext gb; uint8_t buf[16]; static int VAR_3 = 0; if(VAR_0->extradata_size < 16){ av_log(VAR_0, AV_LOG_ERROR, "Too small extradata size (%VAR_1)!\n", VAR_0->extradata_size); ...
[ "static int FUNC_0(AVCodecContext * VAR_0)\n{", "int VAR_1, VAR_2;", "MPCContext *c = VAR_0->priv_data;", "GetBitContext gb;", "uint8_t buf[16];", "static int VAR_3 = 0;", "if(VAR_0->extradata_size < 16){", "av_log(VAR_0, AV_LOG_ERROR, \"Too small extradata size (%VAR_1)!\\n\", VAR_0->extradata_size);...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
13,299
void ff_vp3_idct_altivec(DCTELEM block[64]) { IDCT_START IDCT_1D(NOP, NOP) TRANSPOSE8(b0, b1, b2, b3, b4, b5, b6, b7); IDCT_1D(ADD8, SHIFT4) vec_st(b0, 0x00, block); vec_st(b1, 0x10, block); vec_st(b2, 0x20, block); vec_st(b3, 0x30, block); vec_st(b4, 0x40, block); ...
false
FFmpeg
28f9ab7029bd1a02f659995919f899f84ee7361b
void ff_vp3_idct_altivec(DCTELEM block[64]) { IDCT_START IDCT_1D(NOP, NOP) TRANSPOSE8(b0, b1, b2, b3, b4, b5, b6, b7); IDCT_1D(ADD8, SHIFT4) vec_st(b0, 0x00, block); vec_st(b1, 0x10, block); vec_st(b2, 0x20, block); vec_st(b3, 0x30, block); vec_st(b4, 0x40, block); ...
{ "code": [], "line_no": [] }
void FUNC_0(DCTELEM VAR_0[64]) { IDCT_START IDCT_1D(NOP, NOP) TRANSPOSE8(b0, b1, b2, b3, b4, b5, b6, b7); IDCT_1D(ADD8, SHIFT4) vec_st(b0, 0x00, VAR_0); vec_st(b1, 0x10, VAR_0); vec_st(b2, 0x20, VAR_0); vec_st(b3, 0x30, VAR_0); vec_st(b4, 0x40, VAR_0); vec_st(b5, 0...
[ "void FUNC_0(DCTELEM VAR_0[64])\n{", "IDCT_START\nIDCT_1D(NOP, NOP)\nTRANSPOSE8(b0, b1, b2, b3, b4, b5, b6, b7);", "IDCT_1D(ADD8, SHIFT4)\nvec_st(b0, 0x00, VAR_0);", "vec_st(b1, 0x10, VAR_0);", "vec_st(b2, 0x20, VAR_0);", "vec_st(b3, 0x30, VAR_0);", "vec_st(b4, 0x40, VAR_0);", "vec_st(b5, 0x50, VAR_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 ], [ 31 ], [ 33 ] ]
13,300
static int mov_read_ctts(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; MOVStreamContext *sc; unsigned int i, j, entries, ctts_count = 0; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; sc = st->priv_data; avio_r8(pb); /* ver...
false
FFmpeg
2d015d3bf9fed59c65a3819a35fedbb8b7dde623
static int mov_read_ctts(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; MOVStreamContext *sc; unsigned int i, j, entries, ctts_count = 0; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams-1]; sc = st->priv_data; avio_r8(pb); ...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2) { AVStream *st; MOVStreamContext *sc; unsigned int VAR_3, VAR_4, VAR_5, VAR_6 = 0; if (VAR_0->fc->nb_streams < 1) return 0; st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; sc = st->priv_data; avio_...
[ "static int FUNC_0(MOVContext *VAR_0, AVIOContext *VAR_1, MOVAtom VAR_2)\n{", "AVStream *st;", "MOVStreamContext *sc;", "unsigned int VAR_3, VAR_4, VAR_5, VAR_6 = 0;", "if (VAR_0->fc->nb_streams < 1)\nreturn 0;", "st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "sc = st->priv_data;", "avio_r8(VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 35, 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47, 49 ], [ 53 ], [ 55 ...
13,301
static void gen_mfsrin(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else TCGv t0; if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); return; } t0 = tcg_temp_new(); tcg_gen_shri_tl(t0, cpu_gp...
true
qemu
9b2fadda3e0196ffd485adde4fe9cdd6fae35300
static void gen_mfsrin(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); #else TCGv t0; if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); return; } t0 = tcg_temp_new(); tcg_gen_shri_tl(t0, cpu_gp...
{ "code": [ " if (unlikely(ctx->pr)) {", " if (unlikely(ctx->pr)) {", "#if defined(CONFIG_USER_ONLY)", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);", "#else", " if (unlikely(ctx->pr)) {", " gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);", "#endif", "#if d...
static void FUNC_0(DisasContext *VAR_0) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); #else TCGv t0; if (unlikely(VAR_0->pr)) { gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG); return; } t0 = tcg_temp_new(); tcg_gen_shri_tl(t0, cp...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#if defined(CONFIG_USER_ONLY)\ngen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "#else\nTCGv t0;", "if (unlikely(VAR_0->pr)) {", "gen_inval_exception(VAR_0, POWERPC_EXCP_PRIV_REG);", "return;", "}", "t0 = tcg_temp_new();", "tcg_gen_shri_tl(t0, cpu_g...
[ 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33 ] ]
13,304
void qemu_sem_wait(QemuSemaphore *sem) { #if defined(__APPLE__) || defined(__NetBSD__) pthread_mutex_lock(&sem->lock); --sem->count; while (sem->count < 0) { pthread_cond_wait(&sem->cond, &sem->lock); } pthread_mutex_unlock(&sem->lock); #else int rc; do { rc = s...
true
qemu
79761c6681f0d1cc1c027116fcb4382d41ed3ece
void qemu_sem_wait(QemuSemaphore *sem) { #if defined(__APPLE__) || defined(__NetBSD__) pthread_mutex_lock(&sem->lock); --sem->count; while (sem->count < 0) { pthread_cond_wait(&sem->cond, &sem->lock); } pthread_mutex_unlock(&sem->lock); #else int rc; do { rc = s...
{ "code": [ " --sem->count;", " while (sem->count < 0) {", " --sem->count;", " while (sem->count < 0) {", " pthread_cond_wait(&sem->cond, &sem->lock);", " int rc;" ], "line_no": [ 9, 11, 9, 11, 13, 21 ] }
void FUNC_0(QemuSemaphore *VAR_0) { #if defined(__APPLE__) || defined(__NetBSD__) pthread_mutex_lock(&VAR_0->lock); --VAR_0->count; while (VAR_0->count < 0) { pthread_cond_wait(&VAR_0->cond, &VAR_0->lock); } pthread_mutex_unlock(&VAR_0->lock); #else int rc; do { ...
[ "void FUNC_0(QemuSemaphore *VAR_0)\n{", "#if defined(__APPLE__) || defined(__NetBSD__)\npthread_mutex_lock(&VAR_0->lock);", "--VAR_0->count;", "while (VAR_0->count < 0) {", "pthread_cond_wait(&VAR_0->cond, &VAR_0->lock);", "}", "pthread_mutex_unlock(&VAR_0->lock);", "#else\nint rc;", "do {", "rc =...
[ 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ] ]
13,305
static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags) { int isv34, tlen, unsync; char tag[5]; int64_t next, end = avio_tell(s->pb) + len; int taghdrlen; const char *reason = NULL; AVIOContext pb; unsigned char *buffer = NULL; int buffer_size = 0...
false
FFmpeg
c5f4c0fd5c791ba97eb266cc30ae2172c10feb20
static void ff_id3v2_parse(AVFormatContext *s, int len, uint8_t version, uint8_t flags) { int isv34, tlen, unsync; char tag[5]; int64_t next, end = avio_tell(s->pb) + len; int taghdrlen; const char *reason = NULL; AVIOContext pb; unsigned char *buffer = NULL; int buffer_size = 0...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0, int VAR_1, uint8_t VAR_2, uint8_t VAR_3) { int VAR_4, VAR_5, VAR_6; char VAR_7[5]; int64_t next, end = avio_tell(VAR_0->pb) + VAR_1; int VAR_8; const char *VAR_9 = NULL; AVIOContext pb; unsigned char *VAR_10 = NULL; int VAR_11 = 0; ...
[ "static void FUNC_0(AVFormatContext *VAR_0, int VAR_1, uint8_t VAR_2, uint8_t VAR_3)\n{", "int VAR_4, VAR_5, VAR_6;", "char VAR_7[5];", "int64_t next, end = avio_tell(VAR_0->pb) + VAR_1;", "int VAR_8;", "const char *VAR_9 = NULL;", "AVIOContext pb;", "unsigned char *VAR_10 = NULL;", "int 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, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45, 47 ], [...
13,306
void palette8torgb24(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette) { long i; /* writes 1 byte o much and might cause alignment issues on some architectures? for(i=0; i<num_pixels; i++) ((unsigned *)(&dst[i*3])) = ((unsigned *)palette)[ src[i] ]; */ for(i=0; i<num_pixels; i++) ...
true
FFmpeg
6e42e6c4b410dbef8b593c2d796a5dad95f89ee4
void palette8torgb24(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette) { long i; for(i=0; i<num_pixels; i++) { dst[0]= palette[ src[i]*4+2 ]; dst[1]= palette[ src[i]*4+1 ]; dst[2]= palette[ src[i]*4+0 ]; dst+= 3; } }
{ "code": [ "\tlong i;", "\tfor(i=0; i<num_pixels; i++)", "\tfor(i=0; i<num_pixels; i++)", "\tlong i;", "\tfor(i=0; i<num_pixels; i++)", "\tlong i;", "\tfor(i=0; i<num_pixels; i++)", "\tfor(i=0; i<num_pixels; i++)", "\t\tdst[0]= palette[ src[i]*4+2 ];", "\t\tdst[1]= palette[ sr...
void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, long VAR_2, const uint8_t *VAR_3) { long VAR_4; for(VAR_4=0; VAR_4<VAR_2; VAR_4++) { VAR_1[0]= VAR_3[ VAR_0[VAR_4]*4+2 ]; VAR_1[1]= VAR_3[ VAR_0[VAR_4]*4+1 ]; VAR_1[2]= VAR_3[ VAR_0[VAR_4]*4+0 ]; VAR_1+= 3; } }
[ "void FUNC_0(const uint8_t *VAR_0, uint8_t *VAR_1, long VAR_2, const uint8_t *VAR_3)\n{", "long VAR_4;", "for(VAR_4=0; VAR_4<VAR_2; VAR_4++)", "{", "VAR_1[0]= VAR_3[ VAR_0[VAR_4]*4+2 ];", "VAR_1[1]= VAR_3[ VAR_0[VAR_4]*4+1 ];", "VAR_1[2]= VAR_3[ VAR_0[VAR_4]*4+0 ];", "VAR_1+= 3;", "}", "}" ]
[ 0, 1, 1, 0, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
13,308
static int m25p80_init(SSISlave *ss) { DriveInfo *dinfo; Flash *s = M25P80(ss); M25P80Class *mc = M25P80_GET_CLASS(s); s->pi = mc->pi; s->size = s->pi->sector_size * s->pi->n_sectors; s->dirty_page = -1; s->storage = blk_blockalign(s->blk, s->size); /* FIXME use a qdev dri...
true
qemu
c485cf9c9277ca9b3d5227c99a13c374e812f42b
static int m25p80_init(SSISlave *ss) { DriveInfo *dinfo; Flash *s = M25P80(ss); M25P80Class *mc = M25P80_GET_CLASS(s); s->pi = mc->pi; s->size = s->pi->sector_size * s->pi->n_sectors; s->dirty_page = -1; s->storage = blk_blockalign(s->blk, s->size); dinfo = drive_get...
{ "code": [ " s->storage = blk_blockalign(s->blk, s->size);" ], "line_no": [ 21 ] }
static int FUNC_0(SSISlave *VAR_0) { DriveInfo *dinfo; Flash *s = M25P80(VAR_0); M25P80Class *mc = M25P80_GET_CLASS(s); s->pi = mc->pi; s->size = s->pi->sector_size * s->pi->n_sectors; s->dirty_page = -1; s->storage = blk_blockalign(s->blk, s->size); dinfo = drive_ge...
[ "static int FUNC_0(SSISlave *VAR_0)\n{", "DriveInfo *dinfo;", "Flash *s = M25P80(VAR_0);", "M25P80Class *mc = M25P80_GET_CLASS(s);", "s->pi = mc->pi;", "s->size = s->pi->sector_size * s->pi->n_sectors;", "s->dirty_page = -1;", "s->storage = blk_blockalign(s->blk, s->size);", "dinfo = drive_get_next(...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
13,309
void visit_start_list(Visitor *v, const char *name, GenericList **list, size_t size, Error **errp) { Error *err = NULL; assert(!list || size >= sizeof(GenericList)); v->start_list(v, name, list, size, &err); if (list && v->type == VISITOR_INPUT) { assert(!(err && *...
true
qemu
a15fcc3cf69ee3d408f60d6cc316488d2b0249b4
void visit_start_list(Visitor *v, const char *name, GenericList **list, size_t size, Error **errp) { Error *err = NULL; assert(!list || size >= sizeof(GenericList)); v->start_list(v, name, list, size, &err); if (list && v->type == VISITOR_INPUT) { assert(!(err && *...
{ "code": [ " if (list && v->type == VISITOR_INPUT) {" ], "line_no": [ 15 ] }
void FUNC_0(Visitor *VAR_0, const char *VAR_1, GenericList **VAR_2, size_t VAR_3, Error **VAR_4) { Error *err = NULL; assert(!VAR_2 || VAR_3 >= sizeof(GenericList)); VAR_0->start_list(VAR_0, VAR_1, VAR_2, VAR_3, &err); if (VAR_2 && VAR_0->type == VISITOR_INPUT) { a...
[ "void FUNC_0(Visitor *VAR_0, const char *VAR_1, GenericList **VAR_2,\nsize_t VAR_3, Error **VAR_4)\n{", "Error *err = NULL;", "assert(!VAR_2 || VAR_3 >= sizeof(GenericList));", "VAR_0->start_list(VAR_0, VAR_1, VAR_2, VAR_3, &err);", "if (VAR_2 && VAR_0->type == VISITOR_INPUT) {", "assert(!(err && *VAR_2))...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
13,310
static unsigned __stdcall win32_start_routine(void *arg) { struct QemuThreadData data = *(struct QemuThreadData *) arg; QemuThread *thread = data.thread; free(arg); TlsSetValue(qemu_thread_tls_index, thread); /* * Use DuplicateHandle instead of assigning thread->thread in the *...
true
qemu
403e633126b7a781ecd48a29e3355770d46bbf1a
static unsigned __stdcall win32_start_routine(void *arg) { struct QemuThreadData data = *(struct QemuThreadData *) arg; QemuThread *thread = data.thread; free(arg); TlsSetValue(qemu_thread_tls_index, thread); DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), ...
{ "code": [ " struct QemuThreadData data = *(struct QemuThreadData *) arg;", " QemuThread *thread = data.thread;", " free(arg);", " TlsSetValue(qemu_thread_tls_index, thread);", " DuplicateHandle(GetCurrentProcess(), GetCurrentThread(),", " GetCurrentProcess()...
static unsigned __stdcall FUNC_0(void *VAR_0) { struct QemuThreadData VAR_1 = *(struct QemuThreadData *) VAR_0; QemuThread *thread = VAR_1.thread; free(VAR_0); TlsSetValue(qemu_thread_tls_index, thread); DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), ...
[ "static unsigned __stdcall FUNC_0(void *VAR_0)\n{", "struct QemuThreadData VAR_1 = *(struct QemuThreadData *) VAR_0;", "QemuThread *thread = VAR_1.thread;", "free(VAR_0);", "TlsSetValue(qemu_thread_tls_index, thread);", "DuplicateHandle(GetCurrentProcess(), GetCurrentThread(),\nGetCurrentProcess(), &threa...
[ 0, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 27, 29, 31 ], [ 35 ], [ 37 ], [ 39 ] ]
13,312
static int mov_read_stss(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; unsigned int i, entries; get_byte(pb); /* version */ get_be24(pb); /* flags */ entries = get_be32(pb); dprintf(c-...
false
FFmpeg
6a63ff19b6a7fe3bc32c7fb4a62fca8f65786432
static int mov_read_stss(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; unsigned int i, entries; get_byte(pb); get_be24(pb); entries = get_be32(pb); dprintf(c->fc, "keyframe_count = %...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2) { AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; unsigned int VAR_3, VAR_4; get_byte(VAR_1); get_be24(VAR_1); VAR_4 = get_be32(VAR_1); dprintf(VAR_0->f...
[ "static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2)\n{", "AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "MOVStreamContext *sc = st->priv_data;", "unsigned int VAR_3, VAR_4;", "get_byte(VAR_1);", "get_be24(VAR_1);", "VAR_4 = get_be32(VAR_1);", "dprintf(VAR_0->fc, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ] ]
13,313
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],...
true
FFmpeg
6e0723470bea258ceb72ee4c4916cf8f80337f92
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": [ " err_y += (Y[i] - Y_orig[i])*(Y[i] - Y_orig[i]);" ], "line_no": [ 75 ] }
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, 1, 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 ...
13,314
static int r3d_seek(AVFormatContext *s, int stream_index, int64_t sample_time, int flags) { AVStream *st = s->streams[0]; // video stream R3DContext *r3d = s->priv_data; int frame_num; if (!st->codec->time_base.num || !st->time_base.den) return -1; frame_num = sample_time*st->code...
true
FFmpeg
c7b08bc0a71f9e54e0d5036a8195648b41bd3933
static int r3d_seek(AVFormatContext *s, int stream_index, int64_t sample_time, int flags) { AVStream *st = s->streams[0]; R3DContext *r3d = s->priv_data; int frame_num; if (!st->codec->time_base.num || !st->time_base.den) return -1; frame_num = sample_time*st->codec->time_base.de...
{ "code": [ " avio_seek(s->pb, r3d->video_offsets_count, SEEK_SET);" ], "line_no": [ 31 ] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3) { AVStream *st = VAR_0->streams[0]; R3DContext *r3d = VAR_0->priv_data; int VAR_4; if (!st->codec->time_base.num || !st->time_base.den) return -1; VAR_4 = VAR_2*st->codec->time_base.den/ ((int...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3)\n{", "AVStream *st = VAR_0->streams[0];", "R3DContext *r3d = VAR_0->priv_data;", "int VAR_4;", "if (!st->codec->time_base.num || !st->time_base.den)\nreturn -1;", "VAR_4 = VAR_2*st->codec->time_base.den/\n((int64_t)st->codec->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19, 21 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ] ]
13,315
m48t59_t *m48t59_init (qemu_irq IRQ, target_phys_addr_t mem_base, uint32_t io_base, uint16_t size, int type) { DeviceState *dev; SysBusDevice *s; M48t59SysBusState *d; dev = qdev_create(NULL, "m48t59"); qdev_prop_set_uint32(dev, "type", type); ...
true
qemu
e23a1b33b53d25510320b26d9f154e19c6c99725
m48t59_t *m48t59_init (qemu_irq IRQ, target_phys_addr_t mem_base, uint32_t io_base, uint16_t size, int type) { DeviceState *dev; SysBusDevice *s; M48t59SysBusState *d; dev = qdev_create(NULL, "m48t59"); qdev_prop_set_uint32(dev, "type", type); ...
{ "code": [ " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " qdev_init(dev);", " ...
m48t59_t *FUNC_0 (qemu_irq IRQ, target_phys_addr_t mem_base, uint32_t io_base, uint16_t size, int type) { DeviceState *dev; SysBusDevice *s; M48t59SysBusState *d; dev = qdev_create(NULL, "m48t59"); qdev_prop_set_uint32(dev, "type", type); ...
[ "m48t59_t *FUNC_0 (qemu_irq IRQ, target_phys_addr_t mem_base,\nuint32_t io_base, uint16_t size,\nint type)\n{", "DeviceState *dev;", "SysBusDevice *s;", "M48t59SysBusState *d;", "dev = qdev_create(NULL, \"m48t59\");", "qdev_prop_set_uint32(dev, \"type\", type);", "qdev_prop_set_uint32(dev, \"size\", siz...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 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 ], [ 47 ...
13,317
static int decode_frame_header(ProresContext *ctx, const uint8_t *buf, const int data_size, AVCodecContext *avctx) { int hdr_size, width, height, flags; int version; const uint8_t *ptr; hdr_size = AV_RB16(buf); av_dlog(avctx, "header size %d\n", hdr_size); ...
true
FFmpeg
c871244306f92fecaaed8a97f47ba54d46eb0cd5
static int decode_frame_header(ProresContext *ctx, const uint8_t *buf, const int data_size, AVCodecContext *avctx) { int hdr_size, width, height, flags; int version; const uint8_t *ptr; hdr_size = AV_RB16(buf); av_dlog(avctx, "header size %d\n", hdr_size); ...
{ "code": [], "line_no": [] }
static int FUNC_0(ProresContext *VAR_0, const uint8_t *VAR_1, const int VAR_2, AVCodecContext *VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8; const uint8_t *VAR_9; VAR_4 = AV_RB16(VAR_1); av_dlog(VAR_3, "header size %d\n", VAR_4); if (VAR_4 > VAR_2) ...
[ "static int FUNC_0(ProresContext *VAR_0, const uint8_t *VAR_1,\nconst int VAR_2, AVCodecContext *VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8;", "const uint8_t *VAR_9;", "VAR_4 = AV_RB16(VAR_1);", "av_dlog(VAR_3, \"header size %d\\n\", VAR_4);", "if (VAR_4 > VAR_2) {", "av_log(VAR_3, AV_L...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 53 ], [ 57 ], [ 61 ...
13,318
static inline int GetCode(GifState * s) { int c, sizbuf; uint8_t *ptr; while (s->bbits < s->cursize) { ptr = s->pbuf; if (ptr >= s->ebuf) { if (!s->eob_reached) { sizbuf = get_byte(s->f); s->ebuf = s->buf + sizbuf; s->pb...
true
FFmpeg
0b54f3c0878a3acaa9142e4f24942e762d97e350
static inline int GetCode(GifState * s) { int c, sizbuf; uint8_t *ptr; while (s->bbits < s->cursize) { ptr = s->pbuf; if (ptr >= s->ebuf) { if (!s->eob_reached) { sizbuf = get_byte(s->f); s->ebuf = s->buf + sizbuf; s->pb...
{ "code": [ "static inline int GetCode(GifState * s)", " int c, sizbuf;", " uint8_t *ptr;", " while (s->bbits < s->cursize) {", " ptr = s->pbuf;", " if (ptr >= s->ebuf) {", " if (!s->eob_reached) {", " sizbuf = get_byte(s->f);", " ...
static inline int FUNC_0(GifState * VAR_0) { int VAR_1, VAR_2; uint8_t *ptr; while (VAR_0->bbits < VAR_0->cursize) { ptr = VAR_0->pbuf; if (ptr >= VAR_0->ebuf) { if (!VAR_0->eob_reached) { VAR_2 = get_byte(VAR_0->f); VAR_0->ebuf = VAR_0-...
[ "static inline int FUNC_0(GifState * VAR_0)\n{", "int VAR_1, VAR_2;", "uint8_t *ptr;", "while (VAR_0->bbits < VAR_0->cursize) {", "ptr = VAR_0->pbuf;", "if (ptr >= VAR_0->ebuf) {", "if (!VAR_0->eob_reached) {", "VAR_2 = get_byte(VAR_0->f);", "VAR_0->ebuf = VAR_0->buf + VAR_2;", "VAR_0->pbuf = VAR_...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43...
13,319
static void filter(SPPContext *p, uint8_t *dst, uint8_t *src, int dst_linesize, int src_linesize, int width, int height, const uint8_t *qp_table, int qp_stride, int is_luma, int sample_bytes) { int x, y, i; const int count = 1 << p->log2_count; const int linesize ...
true
FFmpeg
1ac5abb1d062b6ca983d494068bb9fd30390a941
static void filter(SPPContext *p, uint8_t *dst, uint8_t *src, int dst_linesize, int src_linesize, int width, int height, const uint8_t *qp_table, int qp_stride, int is_luma, int sample_bytes) { int x, y, i; const int count = 1 << p->log2_count; const int linesize ...
{ "code": [ " const uint8_t *qp_table, int qp_stride, int is_luma, int sample_bytes)", " ldither);" ], "line_no": [ 5, 131 ] }
static void FUNC_0(SPPContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, const uint8_t *VAR_7, int VAR_8, int VAR_9, int VAR_10) { int VAR_11, VAR_12, VAR_13; const int VAR_14 = 1 << VAR_0->log2_count; const int VAR_15 = VA...
[ "static void FUNC_0(SPPContext *VAR_0, uint8_t *VAR_1, uint8_t *VAR_2,\nint VAR_3, int VAR_4, int VAR_5, int VAR_6,\nconst uint8_t *VAR_7, int VAR_8, int VAR_9, int VAR_10)\n{", "int VAR_11, VAR_12, VAR_13;", "const int VAR_14 = 1 << VAR_0->log2_count;", "const int VAR_15 = VAR_9 ? VAR_0->temp_linesize : FFAL...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
13,320
static int vp8_alloc_frame(VP8Context *s, AVFrame *f) { int ret; if ((ret = ff_thread_get_buffer(s->avctx, f)) < 0) return ret; if (!s->maps_are_invalid && s->num_maps_to_be_freed) { f->ref_index[0] = s->segmentation_maps[--s->num_maps_to_be_freed]; } else if (!(f->ref_index[0] = ...
true
FFmpeg
bfa0f96586fe2c257cfa574ffb991da493a54da1
static int vp8_alloc_frame(VP8Context *s, AVFrame *f) { int ret; if ((ret = ff_thread_get_buffer(s->avctx, f)) < 0) return ret; if (!s->maps_are_invalid && s->num_maps_to_be_freed) { f->ref_index[0] = s->segmentation_maps[--s->num_maps_to_be_freed]; } else if (!(f->ref_index[0] = ...
{ "code": [ " if (!s->maps_are_invalid && s->num_maps_to_be_freed) {" ], "line_no": [ 11 ] }
static int FUNC_0(VP8Context *VAR_0, AVFrame *VAR_1) { int VAR_2; if ((VAR_2 = ff_thread_get_buffer(VAR_0->avctx, VAR_1)) < 0) return VAR_2; if (!VAR_0->maps_are_invalid && VAR_0->num_maps_to_be_freed) { VAR_1->ref_index[0] = VAR_0->segmentation_maps[--VAR_0->num_maps_to_be_freed]; ...
[ "static int FUNC_0(VP8Context *VAR_0, AVFrame *VAR_1)\n{", "int VAR_2;", "if ((VAR_2 = ff_thread_get_buffer(VAR_0->avctx, VAR_1)) < 0)\nreturn VAR_2;", "if (!VAR_0->maps_are_invalid && VAR_0->num_maps_to_be_freed) {", "VAR_1->ref_index[0] = VAR_0->segmentation_maps[--VAR_0->num_maps_to_be_freed];", "} els...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
13,321
static int64_t read_ts(const char *s) { int hh, mm, ss, ms; if (sscanf(s, "%u:%u:%u.%u", &hh, &mm, &ss, &ms) == 4) return (hh*3600 + mm*60 + ss) * 1000 + ms; if (sscanf(s, "%u:%u.%u", &mm, &ss, &ms) == 3) return ( mm*60 + ss) * 1000 + ms; return AV_NOPTS_VALUE; }
true
FFmpeg
99a520000d376d60cd30fae97bfaaf13d50ee26c
static int64_t read_ts(const char *s) { int hh, mm, ss, ms; if (sscanf(s, "%u:%u:%u.%u", &hh, &mm, &ss, &ms) == 4) return (hh*3600 + mm*60 + ss) * 1000 + ms; if (sscanf(s, "%u:%u.%u", &mm, &ss, &ms) == 3) return ( mm*60 + ss) * 1000 + ms; return AV_NOPTS_VALUE; }
{ "code": [ " if (sscanf(s, \"%u:%u:%u.%u\", &hh, &mm, &ss, &ms) == 4) return (hh*3600 + mm*60 + ss) * 1000 + ms;", " if (sscanf(s, \"%u:%u.%u\", &mm, &ss, &ms) == 3) return ( mm*60 + ss) * 1000 + ms;" ], "line_no": [ 7, 9 ] }
static int64_t FUNC_0(const char *s) { int VAR_0, VAR_1, VAR_2, VAR_3; if (sscanf(s, "%u:%u:%u.%u", &VAR_0, &VAR_1, &VAR_2, &VAR_3) == 4) return (VAR_0*3600 + VAR_1*60 + VAR_2) * 1000 + VAR_3; if (sscanf(s, "%u:%u.%u", &VAR_1, &VAR_2, &VAR_3) == 3) return ( VAR_1*60 + VAR_2) * 1000 + VA...
[ "static int64_t FUNC_0(const char *s)\n{", "int VAR_0, VAR_1, VAR_2, VAR_3;", "if (sscanf(s, \"%u:%u:%u.%u\", &VAR_0, &VAR_1, &VAR_2, &VAR_3) == 4) return (VAR_0*3600 + VAR_1*60 + VAR_2) * 1000 + VAR_3;", "if (sscanf(s, \"%u:%u.%u\", &VAR_1, &VAR_2, &VAR_3) == 3) return ( VAR_1*60 + VAR_2) * ...
[ 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
13,322
static void i82374_init(I82374State *s) { DMA_init(1, NULL); memset(s->commands, 0, sizeof(s->commands)); }
true
qemu
049a9f7b946fe1d3ff97127f8905881dbb78cb00
static void i82374_init(I82374State *s) { DMA_init(1, NULL); memset(s->commands, 0, sizeof(s->commands)); }
{ "code": [ " DMA_init(1, NULL);" ], "line_no": [ 5 ] }
static void FUNC_0(I82374State *VAR_0) { DMA_init(1, NULL); memset(VAR_0->commands, 0, sizeof(VAR_0->commands)); }
[ "static void FUNC_0(I82374State *VAR_0)\n{", "DMA_init(1, NULL);", "memset(VAR_0->commands, 0, sizeof(VAR_0->commands));", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
13,323
static void qxl_destroy_primary(PCIQXLDevice *d) { if (d->mode == QXL_MODE_UNDEFINED) { return; } dprint(d, 1, "%s\n", __FUNCTION__); d->mode = QXL_MODE_UNDEFINED; d->ssd.worker->destroy_primary_surface(d->ssd.worker, 0); }
true
qemu
17268d54be2e15b0d8ccfc4102bc48c84299b027
static void qxl_destroy_primary(PCIQXLDevice *d) { if (d->mode == QXL_MODE_UNDEFINED) { return; } dprint(d, 1, "%s\n", __FUNCTION__); d->mode = QXL_MODE_UNDEFINED; d->ssd.worker->destroy_primary_surface(d->ssd.worker, 0); }
{ "code": [], "line_no": [] }
static void FUNC_0(PCIQXLDevice *VAR_0) { if (VAR_0->mode == QXL_MODE_UNDEFINED) { return; } dprint(VAR_0, 1, "%s\n", __FUNCTION__); VAR_0->mode = QXL_MODE_UNDEFINED; VAR_0->ssd.worker->destroy_primary_surface(VAR_0->ssd.worker, 0); }
[ "static void FUNC_0(PCIQXLDevice *VAR_0)\n{", "if (VAR_0->mode == QXL_MODE_UNDEFINED) {", "return;", "}", "dprint(VAR_0, 1, \"%s\\n\", __FUNCTION__);", "VAR_0->mode = QXL_MODE_UNDEFINED;", "VAR_0->ssd.worker->destroy_primary_surface(VAR_0->ssd.worker, 0);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 20 ], [ 23 ] ]
13,325
void isa_ne2000_init(int base, int irq, NICInfo *nd) { ISADevice *dev; qemu_check_nic_model(nd, "ne2k_isa"); dev = isa_create("ne2k_isa"); dev->qdev.nd = nd; /* hack alert */ qdev_prop_set_uint32(&dev->qdev, "iobase", base); qdev_prop_set_uint32(&dev->qdev, "irq", irq); qdev_i...
true
qemu
e23a1b33b53d25510320b26d9f154e19c6c99725
void isa_ne2000_init(int base, int irq, NICInfo *nd) { ISADevice *dev; qemu_check_nic_model(nd, "ne2k_isa"); dev = isa_create("ne2k_isa"); dev->qdev.nd = nd; qdev_prop_set_uint32(&dev->qdev, "iobase", base); qdev_prop_set_uint32(&dev->qdev, "irq", irq); qdev_init(&dev->qdev);...
{ "code": [ " qdev_init(&dev->qdev);", " qdev_init(&dev->qdev);", " qdev_init(&dev->qdev);", " qdev_init(&dev->qdev);", " qdev_init(&dev->qdev);", " qdev_init(&dev->qdev);", " qdev_init(&dev->qdev);", " qdev_init(&dev->qdev);" ], "line_no": [ 21, 21,...
void FUNC_0(int VAR_0, int VAR_1, NICInfo *VAR_2) { ISADevice *dev; qemu_check_nic_model(VAR_2, "ne2k_isa"); dev = isa_create("ne2k_isa"); dev->qdev.VAR_2 = VAR_2; qdev_prop_set_uint32(&dev->qdev, "iobase", VAR_0); qdev_prop_set_uint32(&dev->qdev, "VAR_1", VAR_1); qdev_init(&...
[ "void FUNC_0(int VAR_0, int VAR_1, NICInfo *VAR_2)\n{", "ISADevice *dev;", "qemu_check_nic_model(VAR_2, \"ne2k_isa\");", "dev = isa_create(\"ne2k_isa\");", "dev->qdev.VAR_2 = VAR_2;", "qdev_prop_set_uint32(&dev->qdev, \"iobase\", VAR_0);", "qdev_prop_set_uint32(&dev->qdev, \"VAR_1\", VAR_1);", "qde...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
13,326
static int allocate_buffers(ShortenContext *s) { int i, chan, err; for (chan = 0; chan < s->channels; chan++) { if (FFMAX(1, s->nmean) >= UINT_MAX / sizeof(int32_t)) { av_log(s->avctx, AV_LOG_ERROR, "nmean too large\n"); return AVERROR_INVALIDDATA; } if ...
true
FFmpeg
2d15588124ab1d4c0612cab66f02a716f1509211
static int allocate_buffers(ShortenContext *s) { int i, chan, err; for (chan = 0; chan < s->channels; chan++) { if (FFMAX(1, s->nmean) >= UINT_MAX / sizeof(int32_t)) { av_log(s->avctx, AV_LOG_ERROR, "nmean too large\n"); return AVERROR_INVALIDDATA; } if ...
{ "code": [ " if (s->blocksize + s->nwrap >= UINT_MAX / sizeof(int32_t) ||", " s->blocksize + s->nwrap <= (unsigned)s->nwrap) {" ], "line_no": [ 19, 21 ] }
static int FUNC_0(ShortenContext *VAR_0) { int VAR_1, VAR_2, VAR_3; for (VAR_2 = 0; VAR_2 < VAR_0->channels; VAR_2++) { if (FFMAX(1, VAR_0->nmean) >= UINT_MAX / sizeof(int32_t)) { av_log(VAR_0->avctx, AV_LOG_ERROR, "nmean too large\n"); return AVERROR_INVALIDDATA; ...
[ "static int FUNC_0(ShortenContext *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3;", "for (VAR_2 = 0; VAR_2 < VAR_0->channels; VAR_2++) {", "if (FFMAX(1, VAR_0->nmean) >= UINT_MAX / sizeof(int32_t)) {", "av_log(VAR_0->avctx, AV_LOG_ERROR, \"nmean too large\\n\");", "return AVERROR_INVALIDDATA;", "}", "if (VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 33, 35, 37, 39 ], [ 43, 45, 47 ], [ 49 ], [ 51 ], [ 53 ], ...
13,327
static av_always_inline int rv40_loop_filter_strength(uint8_t *src, int step, int stride, int beta, int beta2, int edge, ...
true
FFmpeg
3ab9a2a5577d445252724af4067d2a7c8a378efa
static av_always_inline int rv40_loop_filter_strength(uint8_t *src, int step, int stride, int beta, int beta2, int edge, ...
{ "code": [ " int step, int stride," ], "line_no": [ 3 ] }
static av_always_inline int FUNC_0(uint8_t *src, int step, int stride, int beta, int beta2, int edge, ...
[ "static av_always_inline int FUNC_0(uint8_t *src,\nint step, int stride,\nint beta, int beta2,\nint edge,\nint *p1, int *q1)\n{", "int VAR_0 = 0, VAR_1 = 0, VAR_2 = 0, VAR_3 = 0;", "int VAR_4 = 0, VAR_5 = 0;", "uint8_t *ptr;", "int VAR_6;", "for (VAR_6 = 0, ptr = src; VAR_6 < 4; VAR_6++, ptr += stride) {"...
[ 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 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 45, 47 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ...
13,328
static void encode_window_bands_info(AACEncContext *s, SingleChannelElement *sce, int win, int group_len, const float lambda) { BandCodingPath path[120][CB_TOT_ALL]; int w, swb, cb, start, size; int i, j; const int max_sfb = sce->ics.max_sfb; const int ru...
true
FFmpeg
32be264cea542b4dc721b10092bf1dfe511a28ee
static void encode_window_bands_info(AACEncContext *s, SingleChannelElement *sce, int win, int group_len, const float lambda) { BandCodingPath path[120][CB_TOT_ALL]; int w, swb, cb, start, size; int i, j; const int max_sfb = sce->ics.max_sfb; const int ru...
{ "code": [ " rd += quantize_band_cost(s, sce->coeffs + start + w*128,", " s->scoefs + start + w*128, size," ], "line_no": [ 93, 95 ] }
static void FUNC_0(AACEncContext *VAR_0, SingleChannelElement *VAR_1, int VAR_2, int VAR_3, const float VAR_4) { BandCodingPath path[120][CB_TOT_ALL]; int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10, VAR_11; const int VAR_12 = VAR_1->ics.VAR_12; const i...
[ "static void FUNC_0(AACEncContext *VAR_0, SingleChannelElement *VAR_1,\nint VAR_2, int VAR_3, const float VAR_4)\n{", "BandCodingPath path[120][CB_TOT_ALL];", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10, VAR_11;", "const int VAR_12 = VAR_1->ics.VAR_12;", "const int VAR_13 = VAR_1->ics.num_windo...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
13,329
callback(void *priv_data, int index, uint8_t *buf, int buf_size, int64_t time) { AVFormatContext *s = priv_data; struct dshow_ctx *ctx = s->priv_data; AVPacketList **ppktl, *pktl_next; // dump_videohdr(s, vdhdr); WaitForSingleObject(ctx->mutex, INFINITE); if(shall_we_drop(s, index)) ...
true
FFmpeg
773eb74babe07bc5c97c32aa564efc40e2d4b00c
callback(void *priv_data, int index, uint8_t *buf, int buf_size, int64_t time) { AVFormatContext *s = priv_data; struct dshow_ctx *ctx = s->priv_data; AVPacketList **ppktl, *pktl_next; WaitForSingleObject(ctx->mutex, INFINITE); if(shall_we_drop(s, index)) goto fail; pkt...
{ "code": [ "callback(void *priv_data, int index, uint8_t *buf, int buf_size, int64_t time)", " if(shall_we_drop(s, index))" ], "line_no": [ 1, 21 ] }
FUNC_0(void *VAR_0, int VAR_1, uint8_t *VAR_2, int VAR_3, int64_t VAR_4) { AVFormatContext *s = VAR_0; struct dshow_ctx *VAR_5 = s->VAR_0; AVPacketList **ppktl, *pktl_next; WaitForSingleObject(VAR_5->mutex, INFINITE); if(shall_we_drop(s, VAR_1)) goto fail; pktl_next = a...
[ "FUNC_0(void *VAR_0, int VAR_1, uint8_t *VAR_2, int VAR_3, int64_t VAR_4)\n{", "AVFormatContext *s = VAR_0;", "struct dshow_ctx *VAR_5 = s->VAR_0;", "AVPacketList **ppktl, *pktl_next;", "WaitForSingleObject(VAR_5->mutex, INFINITE);", "if(shall_we_drop(s, VAR_1))\ngoto fail;", "pktl_next = av_mallocz(siz...
[ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [ 61 ...
13,330
void fw_cfg_add_string(FWCfgState *s, uint16_t key, const char *value) { size_t sz = strlen(value) + 1; return fw_cfg_add_bytes(s, key, (uint8_t *)g_memdup(value, sz), sz); }
true
qemu
089da572b956ef0f8f5b8d5917358e07892a77c2
void fw_cfg_add_string(FWCfgState *s, uint16_t key, const char *value) { size_t sz = strlen(value) + 1; return fw_cfg_add_bytes(s, key, (uint8_t *)g_memdup(value, sz), sz); }
{ "code": [ " return fw_cfg_add_bytes(s, key, (uint8_t *)g_memdup(value, sz), sz);" ], "line_no": [ 9 ] }
void FUNC_0(FWCfgState *VAR_0, uint16_t VAR_1, const char *VAR_2) { size_t sz = strlen(VAR_2) + 1; return fw_cfg_add_bytes(VAR_0, VAR_1, (uint8_t *)g_memdup(VAR_2, sz), sz); }
[ "void FUNC_0(FWCfgState *VAR_0, uint16_t VAR_1, const char *VAR_2)\n{", "size_t sz = strlen(VAR_2) + 1;", "return fw_cfg_add_bytes(VAR_0, VAR_1, (uint8_t *)g_memdup(VAR_2, sz), sz);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
13,331
static void ide_flush_cache(IDEState *s) { if (s->blk == NULL) { ide_flush_cb(s, 0); return; } s->status |= BUSY_STAT; ide_set_retry(s); block_acct_start(blk_get_stats(s->blk), &s->acct, 0, BLOCK_ACCT_FLUSH); s->pio_aiocb = blk_aio_flush(s->blk, ide_flush_cb, s); }
true
qemu
4da97120d51a4383aa96d741a2b837f8c4bbcd0b
static void ide_flush_cache(IDEState *s) { if (s->blk == NULL) { ide_flush_cb(s, 0); return; } s->status |= BUSY_STAT; ide_set_retry(s); block_acct_start(blk_get_stats(s->blk), &s->acct, 0, BLOCK_ACCT_FLUSH); s->pio_aiocb = blk_aio_flush(s->blk, ide_flush_cb, s); }
{ "code": [ " s->pio_aiocb = blk_aio_flush(s->blk, ide_flush_cb, s);" ], "line_no": [ 21 ] }
static void FUNC_0(IDEState *VAR_0) { if (VAR_0->blk == NULL) { ide_flush_cb(VAR_0, 0); return; } VAR_0->status |= BUSY_STAT; ide_set_retry(VAR_0); block_acct_start(blk_get_stats(VAR_0->blk), &VAR_0->acct, 0, BLOCK_ACCT_FLUSH); VAR_0->pio_aiocb = blk_aio_flush(VAR_0->b...
[ "static void FUNC_0(IDEState *VAR_0)\n{", "if (VAR_0->blk == NULL) {", "ide_flush_cb(VAR_0, 0);", "return;", "}", "VAR_0->status |= BUSY_STAT;", "ide_set_retry(VAR_0);", "block_acct_start(blk_get_stats(VAR_0->blk), &VAR_0->acct, 0, BLOCK_ACCT_FLUSH);", "VAR_0->pio_aiocb = blk_aio_flush(VAR_0->blk, i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
13,332
void helper_st_asi(target_ulong addr, target_ulong val, int asi, int size) { #ifdef DEBUG_ASI dump_asi("write", addr, asi, size, val); #endif asi &= 0xff; if ((asi < 0x80 && (env->pstate & PS_PRIV) == 0) || ((env->def->features & CPU_FEATURE_HYPV) && asi >= 0x30 && asi < 0x80...
true
qemu
2aae2b8e0abd58e76d616bcbe93c6966d06d0188
void helper_st_asi(target_ulong addr, target_ulong val, int asi, int size) { #ifdef DEBUG_ASI dump_asi("write", addr, asi, size, val); #endif asi &= 0xff; if ((asi < 0x80 && (env->pstate & PS_PRIV) == 0) || ((env->def->features & CPU_FEATURE_HYPV) && asi >= 0x30 && asi < 0x80...
{ "code": [ "#endif", "#endif", "#endif", " || ((env->def->features & CPU_FEATURE_HYPV)", " if ((env->def->features & CPU_FEATURE_HYPV)", " && env->hpstate & HS_PRIV) {", " || ((env->def->features & CPU_FEATURE_HYPV)", " if ((env->def-...
void FUNC_0(target_ulong VAR_0, target_ulong VAR_1, int VAR_2, int VAR_3) { #ifdef DEBUG_ASI dump_asi("write", VAR_0, VAR_2, VAR_3, VAR_1); #endif VAR_2 &= 0xff; if ((VAR_2 < 0x80 && (env->pstate & PS_PRIV) == 0) || ((env->def->features & CPU_FEATURE_HYPV) && VAR_2 >= 0x30 &&...
[ "void FUNC_0(target_ulong VAR_0, target_ulong VAR_1, int VAR_2, int VAR_3)\n{", "#ifdef DEBUG_ASI\ndump_asi(\"write\", VAR_0, VAR_2, VAR_3, VAR_1);", "#endif\nVAR_2 &= 0xff;", "if ((VAR_2 < 0x80 && (env->pstate & PS_PRIV) == 0)\n|| ((env->def->features & CPU_FEATURE_HYPV)\n&& VAR_2 >= 0x30 && VAR_2 < 0x80\n&&...
[ 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5, 7 ], [ 9, 13 ], [ 17, 19, 21, 23, 25 ], [ 29 ], [ 33 ], [ 35, 37, 39, 41, 43, 45, 47, 49 ], [ 51, 53 ], [ 55 ], [ 57, 59 ], [ 61 ], [ 63, 65 ...
13,333
static int xan_decode_frame_type0(AVCodecContext *avctx, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; XanContext *s = avctx->priv_data; uint8_t *ybuf, *prev_buf, *src = s->scratch_buffer; unsigned chroma_off, corr_off; int cur, last, size; int i, j; int ret; corr_off ...
true
FFmpeg
55188278169c3a1838334d7aa47a1f7a40741690
static int xan_decode_frame_type0(AVCodecContext *avctx, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; XanContext *s = avctx->priv_data; uint8_t *ybuf, *prev_buf, *src = s->scratch_buffer; unsigned chroma_off, corr_off; int cur, last, size; int i, j; int ret; corr_off ...
{ "code": [ " const uint8_t *buf = avpkt->data;", " chroma_off = AV_RL32(buf + 4);", "static int xan_decode_frame_type0(AVCodecContext *avctx, AVPacket *avpkt)", " const uint8_t *buf = avpkt->data;", " int cur, last, size;", " corr_off = AV_RL32(buf + 8);", " chroma_off...
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1) { const uint8_t *VAR_2 = VAR_1->data; XanContext *s = VAR_0->priv_data; uint8_t *ybuf, *prev_buf, *src = s->scratch_buffer; unsigned VAR_3, VAR_4; int VAR_5, VAR_6, VAR_7; int VAR_8, VAR_9; int VAR_10; VAR_4 = AV_RL3...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1)\n{", "const uint8_t *VAR_2 = VAR_1->data;", "XanContext *s = VAR_0->priv_data;", "uint8_t *ybuf, *prev_buf, *src = s->scratch_buffer;", "unsigned VAR_3, VAR_4;", "int VAR_5, VAR_6, VAR_7;", "int VAR_8, VAR_9;", "int VAR_10;", "VAR_4 = AV_...
[ 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47, 49 ], [...
13,335
static void set_chr(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { DeviceState *dev = DEVICE(obj); Error *local_err = NULL; Property *prop = opaque; CharBackend *be = qdev_get_prop_ptr(dev, prop); CharDriverState *s; char *str; if (dev...
true
qemu
2209401fa73e176ed093167b8f60aba797f25d49
static void set_chr(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { DeviceState *dev = DEVICE(obj); Error *local_err = NULL; Property *prop = opaque; CharBackend *be = qdev_get_prop_ptr(dev, prop); CharDriverState *s; char *str; if (dev...
{ "code": [ " g_free(str);", " if (!qemu_chr_fe_init(be, s, errp)) {" ], "line_no": [ 57, 71 ] }
static void FUNC_0(Object *VAR_0, Visitor *VAR_1, const char *VAR_2, void *VAR_3, Error **VAR_4) { DeviceState *dev = DEVICE(VAR_0); Error *local_err = NULL; Property *prop = VAR_3; CharBackend *be = qdev_get_prop_ptr(dev, prop); CharDriverState *s; char *VAR_5; ...
[ "static void FUNC_0(Object *VAR_0, Visitor *VAR_1, const char *VAR_2, void *VAR_3,\nError **VAR_4)\n{", "DeviceState *dev = DEVICE(VAR_0);", "Error *local_err = NULL;", "Property *prop = VAR_3;", "CharBackend *be = qdev_get_prop_ptr(dev, prop);", "CharDriverState *s;", "char *VAR_5;", "if (dev->realiz...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [...