id
int32
0
27.3k
func
stringlengths
26
142k
target
bool
2 classes
project
stringclasses
2 values
commit_id
stringlengths
40
40
func_clean
stringlengths
26
131k
vul_lines
dict
normalized_func
stringlengths
24
132k
lines
listlengths
1
2.8k
label
listlengths
1
2.8k
line_no
listlengths
1
2.8k
6,582
static int test_vector_fmul_reverse(AVFloatDSPContext *fdsp, AVFloatDSPContext *cdsp, const float *v1, const float *v2) { LOCAL_ALIGNED(32, float, cdst, [LEN]); LOCAL_ALIGNED(32, float, odst, [LEN]); int ret; cdsp->vector_fmul_reverse(cdst, v1, v2, LEN); ...
false
FFmpeg
e53c9065ca08a9153ecc73a6a8940bcc6d667e58
static int test_vector_fmul_reverse(AVFloatDSPContext *fdsp, AVFloatDSPContext *cdsp, const float *v1, const float *v2) { LOCAL_ALIGNED(32, float, cdst, [LEN]); LOCAL_ALIGNED(32, float, odst, [LEN]); int ret; cdsp->vector_fmul_reverse(cdst, v1, v2, LEN); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFloatDSPContext *VAR_0, AVFloatDSPContext *VAR_1, const float *VAR_2, const float *VAR_3) { LOCAL_ALIGNED(32, float, cdst, [LEN]); LOCAL_ALIGNED(32, float, odst, [LEN]); int VAR_4; VAR_1->vector_fmul_reverse(cdst, VAR_2, VAR_3, LEN); V...
[ "static int FUNC_0(AVFloatDSPContext *VAR_0, AVFloatDSPContext *VAR_1,\nconst float *VAR_2, const float *VAR_3)\n{", "LOCAL_ALIGNED(32, float, cdst, [LEN]);", "LOCAL_ALIGNED(32, float, odst, [LEN]);", "int VAR_4;", "VAR_1->vector_fmul_reverse(cdst, VAR_2, VAR_3, LEN);", "VAR_0->vector_fmul_reverse(odst, V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29 ] ]
6,583
static int ipvideo_decode_block_opcode_0x3(IpvideoContext *s) { unsigned char B; int x, y; /* copy 8x8 block from current frame from an up/left block */ /* need 1 more byte for motion */ CHECK_STREAM_PTR(1); B = *s->stream_ptr++; if (B < 56) { x = -(8 + (B % 7)); ...
false
FFmpeg
80ca19f766aea8f4724aac1b3faa772d25163c8a
static int ipvideo_decode_block_opcode_0x3(IpvideoContext *s) { unsigned char B; int x, y; CHECK_STREAM_PTR(1); B = *s->stream_ptr++; if (B < 56) { x = -(8 + (B % 7)); y = -(B / 7); } else { x = -(-14 + ((B - 56) % 29)); y = -( 8 + ((...
{ "code": [], "line_no": [] }
static int FUNC_0(IpvideoContext *VAR_0) { unsigned char VAR_1; int VAR_2, VAR_3; CHECK_STREAM_PTR(1); VAR_1 = *VAR_0->stream_ptr++; if (VAR_1 < 56) { VAR_2 = -(8 + (VAR_1 % 7)); VAR_3 = -(VAR_1 / 7); } else { VAR_2 = -(-14 + ((VAR_1 - 56) % 29...
[ "static int FUNC_0(IpvideoContext *VAR_0)\n{", "unsigned char VAR_1;", "int VAR_2, VAR_3;", "CHECK_STREAM_PTR(1);", "VAR_1 = *VAR_0->stream_ptr++;", "if (VAR_1 < 56) {", "VAR_2 = -(8 + (VAR_1 % 7));", "VAR_3 = -(VAR_1 / 7);", "} else {", "VAR_2 = -(-14 + ((VAR_1 - 56) % 29));", "VAR_3 = -( 8 + ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ] ]
6,584
static int set_params(AVFilterContext *ctx, const char *params) { Frei0rContext *s = ctx->priv; int i; if (!params) return 0; for (i = 0; i < s->plugin_info.num_params; i++) { f0r_param_info_t info; char *param; int ret; s->get_param_info(&info, i)...
false
FFmpeg
02a6ee51685eb74f7a878dd49553ecc1f8da9fb2
static int set_params(AVFilterContext *ctx, const char *params) { Frei0rContext *s = ctx->priv; int i; if (!params) return 0; for (i = 0; i < s->plugin_info.num_params; i++) { f0r_param_info_t info; char *param; int ret; s->get_param_info(&info, i)...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterContext *VAR_0, const char *VAR_1) { Frei0rContext *s = VAR_0->priv; int VAR_2; if (!VAR_1) return 0; for (VAR_2 = 0; VAR_2 < s->plugin_info.num_params; VAR_2++) { f0r_param_info_t info; char *param; int ret; s->get_param_...
[ "static int FUNC_0(AVFilterContext *VAR_0, const char *VAR_1)\n{", "Frei0rContext *s = VAR_0->priv;", "int VAR_2;", "if (!VAR_1)\nreturn 0;", "for (VAR_2 = 0; VAR_2 < s->plugin_info.num_params; VAR_2++) {", "f0r_param_info_t info;", "char *param;", "int ret;", "s->get_param_info(&info, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 51, 53, 55, 57...
6,585
static int ipvideo_decode_block_opcode_0xE(IpvideoContext *s) { int y; unsigned char pix; /* 1-color encoding: the whole block is 1 solid color */ CHECK_STREAM_PTR(1); pix = *s->stream_ptr++; for (y = 0; y < 8; y++) { memset(s->pixel_ptr, pix, 8); s->pixel_ptr += s->...
false
FFmpeg
80ca19f766aea8f4724aac1b3faa772d25163c8a
static int ipvideo_decode_block_opcode_0xE(IpvideoContext *s) { int y; unsigned char pix; CHECK_STREAM_PTR(1); pix = *s->stream_ptr++; for (y = 0; y < 8; y++) { memset(s->pixel_ptr, pix, 8); s->pixel_ptr += s->stride; } return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(IpvideoContext *VAR_0) { int VAR_1; unsigned char VAR_2; CHECK_STREAM_PTR(1); VAR_2 = *VAR_0->stream_ptr++; for (VAR_1 = 0; VAR_1 < 8; VAR_1++) { memset(VAR_0->pixel_ptr, VAR_2, 8); VAR_0->pixel_ptr += VAR_0->stride; } return 0; ...
[ "static int FUNC_0(IpvideoContext *VAR_0)\n{", "int VAR_1;", "unsigned char VAR_2;", "CHECK_STREAM_PTR(1);", "VAR_2 = *VAR_0->stream_ptr++;", "for (VAR_1 = 0; VAR_1 < 8; VAR_1++) {", "memset(VAR_0->pixel_ptr, VAR_2, 8);", "VAR_0->pixel_ptr += VAR_0->stride;", "}", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 31 ], [ 33 ] ]
6,586
static int ra144_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { static const uint8_t sizes[LPC_ORDER] = {64, 32, 32, 16, 16, 8, 8, 8, 8, 4}; static const uint8_t bit_sizes[LPC_ORDER] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2}; RA144...
false
FFmpeg
bcaf64b605442e1622d16da89d4ec0e7730b8a8c
static int ra144_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { static const uint8_t sizes[LPC_ORDER] = {64, 32, 32, 16, 16, 8, 8, 8, 8, 4}; static const uint8_t bit_sizes[LPC_ORDER] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2}; RA144...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, const AVFrame *VAR_2, int *VAR_3) { static const uint8_t VAR_4[LPC_ORDER] = {64, 32, 32, 16, 16, 8, 8, 8, 8, 4}; static const uint8_t VAR_5[LPC_ORDER] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2}; RA144Context *ractx = VAR_0->p...
[ "static int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nconst AVFrame *VAR_2, int *VAR_3)\n{", "static const uint8_t VAR_4[LPC_ORDER] = {64, 32, 32, 16, 16, 8, 8, 8, 8, 4};", "static const uint8_t VAR_5[LPC_ORDER] = {6, 5, 5, 4, 4, 3, 3, 3, 3, 2};", "RA144Context *ractx = VAR_0->priv_data;", "PutBitCont...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 41, 43 ], [ 61 ], [ 63 ], [...
6,587
static off_t read_uint32(int fd, int64_t offset) { uint32_t buffer; if (pread(fd, &buffer, 4, offset) < 4) return 0; return be32_to_cpu(buffer); }
false
qemu
64a31d5c3d73396a88563d7a504654edc85aa854
static off_t read_uint32(int fd, int64_t offset) { uint32_t buffer; if (pread(fd, &buffer, 4, offset) < 4) return 0; return be32_to_cpu(buffer); }
{ "code": [], "line_no": [] }
static off_t FUNC_0(int fd, int64_t offset) { uint32_t buffer; if (pread(fd, &buffer, 4, offset) < 4) return 0; return be32_to_cpu(buffer); }
[ "static off_t FUNC_0(int fd, int64_t offset)\n{", "uint32_t buffer;", "if (pread(fd, &buffer, 4, offset) < 4)\nreturn 0;", "return be32_to_cpu(buffer);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ] ]
6,588
static int tosa_dac_send(I2CSlave *i2c, uint8_t data) { TosaDACState *s = TOSA_DAC(i2c); s->buf[s->len] = data; if (s->len ++ > 2) { #ifdef VERBOSE fprintf(stderr, "%s: message too long (%i bytes)\n", __FUNCTION__, s->len); #endif return 1; } if (s->len == 2) { ...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static int tosa_dac_send(I2CSlave *i2c, uint8_t data) { TosaDACState *s = TOSA_DAC(i2c); s->buf[s->len] = data; if (s->len ++ > 2) { #ifdef VERBOSE fprintf(stderr, "%s: message too long (%i bytes)\n", __FUNCTION__, s->len); #endif return 1; } if (s->len == 2) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(I2CSlave *VAR_0, uint8_t VAR_1) { TosaDACState *s = TOSA_DAC(VAR_0); s->buf[s->len] = VAR_1; if (s->len ++ > 2) { #ifdef VERBOSE fprintf(stderr, "%s: message too long (%i bytes)\n", __FUNCTION__, s->len); #endif return 1; } if (s->len == 2) { ...
[ "static int FUNC_0(I2CSlave *VAR_0, uint8_t VAR_1)\n{", "TosaDACState *s = TOSA_DAC(VAR_0);", "s->buf[s->len] = VAR_1;", "if (s->len ++ > 2) {", "#ifdef VERBOSE\nfprintf(stderr, \"%s: message too long (%i bytes)\\n\", __FUNCTION__, s->len);", "#endif\nreturn 1;", "}", "if (s->len == 2) {", "fprintf(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 37 ] ]
6,589
static void socket_start_incoming_migration(SocketAddress *saddr, Error **errp) { QIOChannelSocket *listen_ioc = qio_channel_socket_new(); qio_channel_set_name(QIO_CHANNEL(listen_ioc), "migration-socket-listener"); if (qio_channe...
false
qemu
dfd100f242370886bb6732f70f1f7cbd8eb9fedc
static void socket_start_incoming_migration(SocketAddress *saddr, Error **errp) { QIOChannelSocket *listen_ioc = qio_channel_socket_new(); qio_channel_set_name(QIO_CHANNEL(listen_ioc), "migration-socket-listener"); if (qio_channe...
{ "code": [], "line_no": [] }
static void FUNC_0(SocketAddress *VAR_0, Error **VAR_1) { QIOChannelSocket *listen_ioc = qio_channel_socket_new(); qio_channel_set_name(QIO_CHANNEL(listen_ioc), "migration-socket-listener"); if (qio_channel_socket_listen_sync(lis...
[ "static void FUNC_0(SocketAddress *VAR_0,\nError **VAR_1)\n{", "QIOChannelSocket *listen_ioc = qio_channel_socket_new();", "qio_channel_set_name(QIO_CHANNEL(listen_ioc),\n\"migration-socket-listener\");", "if (qio_channel_socket_listen_sync(listen_ioc, VAR_0, VAR_1) < 0) {", "object_unref(OBJECT(listen_ioc)...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31, 33, 35, 37 ], [ 39 ], [ 41 ] ]
6,590
static void mpc8544ds_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { ...
false
qemu
04088adbe0c5adca66adb6022723362ad90ed0fc
static void mpc8544ds_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(ram_addr_t VAR_0, const char *VAR_1, const char *VAR_2, const char *VAR_3, const char *VAR_4, const char *VAR_5) { PCIBus *pci_bus; CPUState *env; uint64_t...
[ "static void FUNC_0(ram_addr_t VAR_0,\nconst char *VAR_1,\nconst char *VAR_2,\nconst char *VAR_3,\nconst char *VAR_4,\nconst char *VAR_5)\n{", "PCIBus *pci_bus;", "CPUState *env;", "uint64_t elf_entry;", "uint64_t elf_lowaddr;", "target_phys_addr_t entry=0;", "target_phys_addr_t loadaddr=UIMAGE_LOAD_BAS...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [...
6,591
static void test_visitor_out_native_list_bool(TestOutputVisitorData *data, const void *unused) { test_native_list(data, unused, USER_DEF_NATIVE_LIST_UNION_KIND_BOOLEAN); }
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void test_visitor_out_native_list_bool(TestOutputVisitorData *data, const void *unused) { test_native_list(data, unused, USER_DEF_NATIVE_LIST_UNION_KIND_BOOLEAN); }
{ "code": [], "line_no": [] }
static void FUNC_0(TestOutputVisitorData *VAR_0, const void *VAR_1) { test_native_list(VAR_0, VAR_1, USER_DEF_NATIVE_LIST_UNION_KIND_BOOLEAN); }
[ "static void FUNC_0(TestOutputVisitorData *VAR_0,\nconst void *VAR_1)\n{", "test_native_list(VAR_0, VAR_1, USER_DEF_NATIVE_LIST_UNION_KIND_BOOLEAN);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
6,592
static int virtio_blk_load_device(VirtIODevice *vdev, QEMUFile *f, int version_id) { VirtIOBlock *s = VIRTIO_BLK(vdev); while (qemu_get_sbyte(f)) { unsigned nvqs = s->conf.num_queues; unsigned vq_idx = 0; VirtIOBlockReq *req; if (nvqs...
false
qemu
8607f5c3072caeebbe0217df28651fffd3a79fd9
static int virtio_blk_load_device(VirtIODevice *vdev, QEMUFile *f, int version_id) { VirtIOBlock *s = VIRTIO_BLK(vdev); while (qemu_get_sbyte(f)) { unsigned nvqs = s->conf.num_queues; unsigned vq_idx = 0; VirtIOBlockReq *req; if (nvqs...
{ "code": [], "line_no": [] }
static int FUNC_0(VirtIODevice *VAR_0, QEMUFile *VAR_1, int VAR_2) { VirtIOBlock *s = VIRTIO_BLK(VAR_0); while (qemu_get_sbyte(VAR_1)) { unsigned VAR_3 = s->conf.num_queues; unsigned VAR_4 = 0; VirtIOBlockReq *req; if (VAR_3 > 1) { ...
[ "static int FUNC_0(VirtIODevice *VAR_0, QEMUFile *VAR_1,\nint VAR_2)\n{", "VirtIOBlock *s = VIRTIO_BLK(VAR_0);", "while (qemu_get_sbyte(VAR_1)) {", "unsigned VAR_3 = s->conf.num_queues;", "unsigned VAR_4 = 0;", "VirtIOBlockReq *req;", "if (VAR_3 > 1) {", "VAR_4 = qemu_get_be32(VAR_1);", "if (VAR_4 >...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53...
6,593
void pci_device_hot_add(Monitor *mon, const QDict *qdict, QObject **ret_data) { PCIDevice *dev = NULL; const char *pci_addr = qdict_get_str(qdict, "pci_addr"); const char *type = qdict_get_str(qdict, "type"); const char *opts = qdict_get_try_str(qdict, "opts"); /* strip legacy tag */ if...
false
qemu
ba14414174b72fa231997243a9650feaa520d054
void pci_device_hot_add(Monitor *mon, const QDict *qdict, QObject **ret_data) { PCIDevice *dev = NULL; const char *pci_addr = qdict_get_str(qdict, "pci_addr"); const char *type = qdict_get_str(qdict, "type"); const char *opts = qdict_get_try_str(qdict, "opts"); if (!strncmp(pci_addr, "...
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2) { PCIDevice *dev = NULL; const char *VAR_3 = qdict_get_str(VAR_1, "VAR_3"); const char *VAR_4 = qdict_get_str(VAR_1, "VAR_4"); const char *VAR_5 = qdict_get_try_str(VAR_1, "VAR_5"); if (!strncmp(VAR_3, "VAR_3=", 9)) { ...
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1, QObject **VAR_2)\n{", "PCIDevice *dev = NULL;", "const char *VAR_3 = qdict_get_str(VAR_1, \"VAR_3\");", "const char *VAR_4 = qdict_get_str(VAR_1, \"VAR_4\");", "const char *VAR_5 = qdict_get_try_str(VAR_1, \"VAR_5\");", "if (!strncmp(VAR_3, \"VAR_3=\", 9)) ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 39, 41 ], [ 43, 45 ], [ 47, 49 ], [ 53 ], [ 55, 57 ], [...
6,596
static int tta_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; TTAContext *s = avctx->priv_data; int i, ret; int cur_chan = 0, framelen = s->frame_length; int3...
false
FFmpeg
5778299c7ed3f82c624589bd35c82f597a8e0b64
static int tta_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; TTAContext *s = avctx->priv_data; int i, ret; int cur_chan = 0, framelen = s->frame_length; int3...
{ "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; TTAContext *s = VAR_0->priv_data; int VAR_6, VAR_7; int VAR_8 = 0, VAR_9 = s->frame_length; int32_t *p; if...
[ "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;", "TTAContext *s = VAR_0->priv_data;", "int VAR_6, VAR_7;", "int VAR_8 = 0, VAR_9 = s->frame_length;", "int32_t *p;", "if (VAR_0->err_recognition ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 37 ], [ 39, 41 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
6,597
static bool pmsav7_use_background_region(ARMCPU *cpu, ARMMMUIdx mmu_idx, bool is_user) { /* Return true if we should use the default memory map as a * "background" region if there are no hits against any MPU regions. */ CPUARMState *env = &cpu->env; ...
false
qemu
ecf5e8eae8b0b5fa41f00b53d67747b42fd1b8b9
static bool pmsav7_use_background_region(ARMCPU *cpu, ARMMMUIdx mmu_idx, bool is_user) { CPUARMState *env = &cpu->env; if (is_user) { return false; } if (arm_feature(env, ARM_FEATURE_M)) { return env->v7m.mpu_ctrl & R_V7M_MPU...
{ "code": [], "line_no": [] }
static bool FUNC_0(ARMCPU *cpu, ARMMMUIdx mmu_idx, bool is_user) { CPUARMState *env = &cpu->env; if (is_user) { return false; } if (arm_feature(env, ARM_FEATURE_M)) { return env->v7m.mpu_ctrl & R_V7M_MPU_CTRL_PRIVDEFENA_MASK;...
[ "static bool FUNC_0(ARMCPU *cpu,\nARMMMUIdx mmu_idx, bool is_user)\n{", "CPUARMState *env = &cpu->env;", "if (is_user) {", "return false;", "}", "if (arm_feature(env, ARM_FEATURE_M)) {", "return env->v7m.mpu_ctrl & R_V7M_MPU_CTRL_PRIVDEFENA_MASK;", "} else {", "return regime_sctlr(env, mmu_idx) & SC...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
6,598
static void rtas_system_reboot(sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { if (nargs != 0 || nret != 1) { rtas_st(rets, 0, -3); retu...
false
qemu
210b580b106fa798149e28aa13c66b325a43204e
static void rtas_system_reboot(sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { if (nargs != 0 || nret != 1) { rtas_st(rets, 0, -3); retu...
{ "code": [], "line_no": [] }
static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1, uint32_t VAR_2, target_ulong VAR_3, uint32_t VAR_4, target_ulong VAR_5) { if (VAR_2 != 0 || VAR_4 != 1) { rtas_st(VAR_5, 0, -3); return; ...
[ "static void FUNC_0(sPAPREnvironment *VAR_0,\nuint32_t VAR_1, uint32_t VAR_2,\ntarget_ulong VAR_3,\nuint32_t VAR_4, target_ulong VAR_5)\n{", "if (VAR_2 != 0 || VAR_4 != 1) {", "rtas_st(VAR_5, 0, -3);", "return;", "}", "qemu_system_reset_request();", "rtas_st(VAR_5, 0, 0);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
6,599
static int preallocate(BlockDriverState *bs) { uint64_t nb_sectors; uint64_t offset; uint64_t host_offset = 0; int num; int ret; QCowL2Meta *meta; nb_sectors = bdrv_getlength(bs) >> 9; offset = 0; while (nb_sectors) { num = MIN(nb_sectors, INT_MAX >> 9); ...
false
qemu
7c2bbf4aa66ca5a9fc2ca147e0e6cb6f407a3aa2
static int preallocate(BlockDriverState *bs) { uint64_t nb_sectors; uint64_t offset; uint64_t host_offset = 0; int num; int ret; QCowL2Meta *meta; nb_sectors = bdrv_getlength(bs) >> 9; offset = 0; while (nb_sectors) { num = MIN(nb_sectors, INT_MAX >> 9); ...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0) { uint64_t nb_sectors; uint64_t offset; uint64_t host_offset = 0; int VAR_1; int VAR_2; QCowL2Meta *meta; nb_sectors = bdrv_getlength(VAR_0) >> 9; offset = 0; while (nb_sectors) { VAR_1 = MIN(nb_sectors, INT_MAX >> 9);...
[ "static int FUNC_0(BlockDriverState *VAR_0)\n{", "uint64_t nb_sectors;", "uint64_t offset;", "uint64_t host_offset = 0;", "int VAR_1;", "int VAR_2;", "QCowL2Meta *meta;", "nb_sectors = bdrv_getlength(VAR_0) >> 9;", "offset = 0;", "while (nb_sectors) {", "VAR_1 = MIN(nb_sectors, INT_MAX >> 9);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ...
6,600
static int vfio_msix_vector_do_use(PCIDevice *pdev, unsigned int nr, MSIMessage *msg, IOHandler *handler) { VFIOPCIDevice *vdev = DO_UPCAST(VFIOPCIDevice, pdev, pdev); VFIOMSIVector *vector; int ret; trace_vfio_msix_vector_do_use(vdev->vbasedev.name, nr); ...
false
qemu
46746dbaa8c2c421b9bda78193caad57d7fb1136
static int vfio_msix_vector_do_use(PCIDevice *pdev, unsigned int nr, MSIMessage *msg, IOHandler *handler) { VFIOPCIDevice *vdev = DO_UPCAST(VFIOPCIDevice, pdev, pdev); VFIOMSIVector *vector; int ret; trace_vfio_msix_vector_do_use(vdev->vbasedev.name, nr); ...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0, unsigned int VAR_1, MSIMessage *VAR_2, IOHandler *VAR_3) { VFIOPCIDevice *vdev = DO_UPCAST(VFIOPCIDevice, VAR_0, VAR_0); VFIOMSIVector *vector; int VAR_4; trace_vfio_msix_vector_do_use(vdev->vbasedev.name, VAR_1); vect...
[ "static int FUNC_0(PCIDevice *VAR_0, unsigned int VAR_1,\nMSIMessage *VAR_2, IOHandler *VAR_3)\n{", "VFIOPCIDevice *vdev = DO_UPCAST(VFIOPCIDevice, VAR_0, VAR_0);", "VFIOMSIVector *vector;", "int VAR_4;", "trace_vfio_msix_vector_do_use(vdev->vbasedev.name, VAR_1);", "vector = &vdev->msi_vectors[VAR_1];", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 57 ], [ 59 ], [ 61 ...
6,601
int virtio_load(VirtIODevice *vdev, QEMUFile *f) { int i, ret; int32_t config_len; uint32_t num; uint32_t features; uint32_t supported_features; BusState *qbus = qdev_get_parent_bus(DEVICE(vdev)); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); if (k->load_config) { r...
false
qemu
2f5732e9648fcddc8759a8fd25c0b41a38352be6
int virtio_load(VirtIODevice *vdev, QEMUFile *f) { int i, ret; int32_t config_len; uint32_t num; uint32_t features; uint32_t supported_features; BusState *qbus = qdev_get_parent_bus(DEVICE(vdev)); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); if (k->load_config) { r...
{ "code": [], "line_no": [] }
int FUNC_0(VirtIODevice *VAR_0, QEMUFile *VAR_1) { int VAR_2, VAR_3; int32_t config_len; uint32_t num; uint32_t features; uint32_t supported_features; BusState *qbus = qdev_get_parent_bus(DEVICE(VAR_0)); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); if (k->load_config) { ...
[ "int FUNC_0(VirtIODevice *VAR_0, QEMUFile *VAR_1)\n{", "int VAR_2, VAR_3;", "int32_t config_len;", "uint32_t num;", "uint32_t features;", "uint32_t supported_features;", "BusState *qbus = qdev_get_parent_bus(DEVICE(VAR_0));", "VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);", "if (k->load_config) {"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
6,602
static int pci_vmsvga_initfn(PCIDevice *dev) { struct pci_vmsvga_state_s *s = DO_UPCAST(struct pci_vmsvga_state_s, card, dev); pci_config_set_vendor_id(s->card.config, PCI_VENDOR_ID_VMWARE); pci_config_set_device_id(s->card.config, SVGA_PCI_DEVICE_ID); pci_config_set_class(s->card.config...
false
qemu
310faaede80a2eb270a021a26183d6afbde81180
static int pci_vmsvga_initfn(PCIDevice *dev) { struct pci_vmsvga_state_s *s = DO_UPCAST(struct pci_vmsvga_state_s, card, dev); pci_config_set_vendor_id(s->card.config, PCI_VENDOR_ID_VMWARE); pci_config_set_device_id(s->card.config, SVGA_PCI_DEVICE_ID); pci_config_set_class(s->card.config...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { struct pci_vmsvga_state_s *VAR_1 = DO_UPCAST(struct pci_vmsvga_state_s, card, VAR_0); pci_config_set_vendor_id(VAR_1->card.config, PCI_VENDOR_ID_VMWARE); pci_config_set_device_id(VAR_1->card.config, SVGA_PCI_DEVICE_ID); pci_config_set_class(VAR_1->ca...
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "struct pci_vmsvga_state_s *VAR_1 =\nDO_UPCAST(struct pci_vmsvga_state_s, card, VAR_0);", "pci_config_set_vendor_id(VAR_1->card.config, PCI_VENDOR_ID_VMWARE);", "pci_config_set_device_id(VAR_1->card.config, SVGA_PCI_DEVICE_ID);", "pci_config_set_class(VAR_1->card.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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35 ], [ 37, 39 ], [ 43, 45 ], [ 49 ], [ 53 ], [ 57...
6,603
static int qed_read_table(BDRVQEDState *s, uint64_t offset, QEDTable *table) { QEMUIOVector qiov; int noffsets; int i, ret; struct iovec iov = { .iov_base = table->offsets, .iov_len = s->header.cluster_size * s->header.table_size, }; qemu_iovec_init_external(&qiov, &io...
false
qemu
1f01e50b8330c24714ddca5841fdbb703076b121
static int qed_read_table(BDRVQEDState *s, uint64_t offset, QEDTable *table) { QEMUIOVector qiov; int noffsets; int i, ret; struct iovec iov = { .iov_base = table->offsets, .iov_len = s->header.cluster_size * s->header.table_size, }; qemu_iovec_init_external(&qiov, &io...
{ "code": [], "line_no": [] }
static int FUNC_0(BDRVQEDState *VAR_0, uint64_t VAR_1, QEDTable *VAR_2) { QEMUIOVector qiov; int VAR_3; int VAR_4, VAR_5; struct iovec VAR_6 = { .iov_base = VAR_2->offsets, .iov_len = VAR_0->header.cluster_size * VAR_0->header.table_size, }; qemu_iovec_init_external(&q...
[ "static int FUNC_0(BDRVQEDState *VAR_0, uint64_t VAR_1, QEDTable *VAR_2)\n{", "QEMUIOVector qiov;", "int VAR_3;", "int VAR_4, VAR_5;", "struct iovec VAR_6 = {", ".iov_base = VAR_2->offsets,\n.iov_len = VAR_0->header.cluster_size * VAR_0->header.table_size,\n};", "qemu_iovec_init_external(&qiov, &VAR_6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17, 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ...
6,604
long do_sigreturn(CPUState *env) { struct target_signal_frame *sf; uint32_t up_psr, pc, npc; target_sigset_t set; sigset_t host_set; abi_ulong fpu_save; int err, i; sf = (struct target_signal_frame *)g2h(env->regwptr[UREG_FP]); #if 0 fprintf(stderr, "...
false
qemu
f8b0aa25599782eef91edc00ebf620bd14db720c
long do_sigreturn(CPUState *env) { struct target_signal_frame *sf; uint32_t up_psr, pc, npc; target_sigset_t set; sigset_t host_set; abi_ulong fpu_save; int err, i; sf = (struct target_signal_frame *)g2h(env->regwptr[UREG_FP]); #if 0 fprintf(stderr, "...
{ "code": [], "line_no": [] }
long FUNC_0(CPUState *VAR_0) { struct target_signal_frame *VAR_1; uint32_t up_psr, pc, npc; target_sigset_t set; sigset_t host_set; abi_ulong fpu_save; int VAR_2, VAR_3; VAR_1 = (struct target_signal_frame *)g2h(VAR_0->regwptr[UREG_FP]); #if 0 fprintf...
[ "long FUNC_0(CPUState *VAR_0)\n{", "struct target_signal_frame *VAR_1;", "uint32_t up_psr, pc, npc;", "target_sigset_t set;", "sigset_t host_set;", "abi_ulong fpu_save;", "int VAR_2, VAR_3;", "VAR_1 = (struct target_signal_frame *)g2h(VAR_0->regwptr[UREG_FP]);", "#if 0\nfprintf(stderr, \"sigreturn\\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 35, 37, 39 ], [ 41, 45, 47 ], [ 51 ], [ 53 ], [ 57, 59 ], [ 65 ], [...
6,606
int cpu_exec(CPUState *cpu) { CPUClass *cc = CPU_GET_CLASS(cpu); #ifdef TARGET_I386 X86CPU *x86_cpu = X86_CPU(cpu); CPUArchState *env = &x86_cpu->env; #endif int ret, interrupt_request; TranslationBlock *tb; uint8_t *tc_ptr; uintptr_t next_tb; SyncClocks sc; if (cpu->ha...
false
qemu
56c0269a9ec105d3848d9f900b5e38e6b35e2478
int cpu_exec(CPUState *cpu) { CPUClass *cc = CPU_GET_CLASS(cpu); #ifdef TARGET_I386 X86CPU *x86_cpu = X86_CPU(cpu); CPUArchState *env = &x86_cpu->env; #endif int ret, interrupt_request; TranslationBlock *tb; uint8_t *tc_ptr; uintptr_t next_tb; SyncClocks sc; if (cpu->ha...
{ "code": [], "line_no": [] }
int FUNC_0(CPUState *VAR_0) { CPUClass *cc = CPU_GET_CLASS(VAR_0); #ifdef TARGET_I386 X86CPU *x86_cpu = X86_CPU(VAR_0); CPUArchState *env = &x86_cpu->env; #endif int VAR_1, VAR_2; TranslationBlock *tb; uint8_t *tc_ptr; uintptr_t next_tb; SyncClocks sc; if (VAR_0->halted...
[ "int FUNC_0(CPUState *VAR_0)\n{", "CPUClass *cc = CPU_GET_CLASS(VAR_0);", "#ifdef TARGET_I386\nX86CPU *x86_cpu = X86_CPU(VAR_0);", "CPUArchState *env = &x86_cpu->env;", "#endif\nint VAR_1, VAR_2;", "TranslationBlock *tb;", "uint8_t *tc_ptr;", "uintptr_t next_tb;", "SyncClocks sc;", "if (VAR_0->hal...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 49 ...
6,607
static int dvbsub_parse_clut_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { DVBSubContext *ctx = avctx->priv_data; const uint8_t *buf_end = buf + buf_size; int i, clut_id; int version; DVBSubCLUT *clut; int entry_id, depth , full...
false
FFmpeg
e5774f28d15887d36da25ae1ef2f1b3d7a75f449
static int dvbsub_parse_clut_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { DVBSubContext *ctx = avctx->priv_data; const uint8_t *buf_end = buf + buf_size; int i, clut_id; int version; DVBSubCLUT *clut; int entry_id, depth , full...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { DVBSubContext *ctx = VAR_0->priv_data; const uint8_t *VAR_3 = VAR_1 + VAR_2; int VAR_4, VAR_5; int VAR_6; DVBSubCLUT *clut; int VAR_7, VAR_8 , VAR_9; int VAR_10, VAR_11...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nconst uint8_t *VAR_1, int VAR_2)\n{", "DVBSubContext *ctx = VAR_0->priv_data;", "const uint8_t *VAR_3 = VAR_1 + VAR_2;", "int VAR_4, VAR_5;", "int VAR_6;", "DVBSubCLUT *clut;", "int VAR_7, VAR_8 , VAR_9;", "int VAR_10, VAR_11, VAR_12, VAR_13;", "int 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 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43, 45 ], [ 49 ], [ 51 ], [ 53 ], ...
6,608
static void load_word(DBDMA_channel *ch, int key, uint32_t addr, uint16_t len) { dbdma_cmd *current = &ch->current; uint32_t val; DBDMA_DPRINTF("load_word\n"); /* only implements KEY_SYSTEM */ if (key != KEY_SYSTEM) { printf("DBDMA: LOAD_WORD, unimplemented...
false
qemu
ad674e53b5cce265fadafbde2c6a4f190345cd00
static void load_word(DBDMA_channel *ch, int key, uint32_t addr, uint16_t len) { dbdma_cmd *current = &ch->current; uint32_t val; DBDMA_DPRINTF("load_word\n"); if (key != KEY_SYSTEM) { printf("DBDMA: LOAD_WORD, unimplemented key %x\n", key); kill_...
{ "code": [], "line_no": [] }
static void FUNC_0(DBDMA_channel *VAR_0, int VAR_1, uint32_t VAR_2, uint16_t VAR_3) { dbdma_cmd *current = &VAR_0->current; uint32_t val; DBDMA_DPRINTF("FUNC_0\n"); if (VAR_1 != KEY_SYSTEM) { printf("DBDMA: LOAD_WORD, unimplemented VAR_1 %x\n", VAR_1); ...
[ "static void FUNC_0(DBDMA_channel *VAR_0, int VAR_1, uint32_t VAR_2,\nuint16_t VAR_3)\n{", "dbdma_cmd *current = &VAR_0->current;", "uint32_t val;", "DBDMA_DPRINTF(\"FUNC_0\\n\");", "if (VAR_1 != KEY_SYSTEM) {", "printf(\"DBDMA: LOAD_WORD, unimplemented VAR_1 %x\\n\", VAR_1);", "kill_channel(VAR_0);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37, 39 ], [ 41, 43 ], [ 47 ], [ 51, 53 ], [ 57 ], [ 59 ], [ 61 ], [ 65 ...
6,610
static void nvdimm_dsm_device(NvdimmDsmIn *in, hwaddr dsm_mem_addr) { /* See the comments in nvdimm_dsm_root(). */ if (!in->function) { nvdimm_dsm_function0(0 /* No function supported other than function 0 */, dsm_mem_addr); return; } /* No fun...
false
qemu
5797dcdc7ade30e8c4080d9282cd9e51b3566e14
static void nvdimm_dsm_device(NvdimmDsmIn *in, hwaddr dsm_mem_addr) { if (!in->function) { nvdimm_dsm_function0(0 , dsm_mem_addr); return; } nvdimm_dsm_no_payload(1 , dsm_mem_addr); }
{ "code": [], "line_no": [] }
static void FUNC_0(NvdimmDsmIn *VAR_0, hwaddr VAR_1) { if (!VAR_0->function) { nvdimm_dsm_function0(0 , VAR_1); return; } nvdimm_dsm_no_payload(1 , VAR_1); }
[ "static void FUNC_0(NvdimmDsmIn *VAR_0, hwaddr VAR_1)\n{", "if (!VAR_0->function) {", "nvdimm_dsm_function0(0\n, VAR_1);", "return;", "}", "nvdimm_dsm_no_payload(1 , VAR_1);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ] ]
6,611
static void bdrv_co_em_bh(void *opaque) { BlockAIOCBCoroutine *acb = opaque; acb->common.cb(acb->common.opaque, acb->req.error); qemu_bh_delete(acb->bh); qemu_aio_unref(acb); }
false
qemu
0b5a24454fc551f0294fe93821e8c643214a55f5
static void bdrv_co_em_bh(void *opaque) { BlockAIOCBCoroutine *acb = opaque; acb->common.cb(acb->common.opaque, acb->req.error); qemu_bh_delete(acb->bh); qemu_aio_unref(acb); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { BlockAIOCBCoroutine *acb = VAR_0; acb->common.cb(acb->common.VAR_0, acb->req.error); qemu_bh_delete(acb->bh); qemu_aio_unref(acb); }
[ "static void FUNC_0(void *VAR_0)\n{", "BlockAIOCBCoroutine *acb = VAR_0;", "acb->common.cb(acb->common.VAR_0, acb->req.error);", "qemu_bh_delete(acb->bh);", "qemu_aio_unref(acb);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ] ]
6,613
static int qcow2_change_backing_file(BlockDriverState *bs, const char *backing_file, const char *backing_fmt) { /* Backing file format doesn't make sense without a backing file */ if (backing_fmt && !backing_file) { return -EINVAL; } pstrcpy(bs->backing_file, sizeof(bs->backing_file...
false
qemu
5f3777945d22248d805fb7c134e206c2d943b77b
static int qcow2_change_backing_file(BlockDriverState *bs, const char *backing_file, const char *backing_fmt) { if (backing_fmt && !backing_file) { return -EINVAL; } pstrcpy(bs->backing_file, sizeof(bs->backing_file), backing_file ?: ""); pstrcpy(bs->backing_format, sizeof(bs-...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, const char *VAR_2) { if (VAR_2 && !VAR_1) { return -EINVAL; } pstrcpy(VAR_0->VAR_1, sizeof(VAR_0->VAR_1), VAR_1 ?: ""); pstrcpy(VAR_0->backing_format, sizeof(VAR_0->backing_format), VAR_2 ?: ""); return qcow2...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nconst char *VAR_1, const char *VAR_2)\n{", "if (VAR_2 && !VAR_1) {", "return -EINVAL;", "}", "pstrcpy(VAR_0->VAR_1, sizeof(VAR_0->VAR_1), VAR_1 ?: \"\");", "pstrcpy(VAR_0->backing_format, sizeof(VAR_0->backing_format), VAR_2 ?: \"\");", "return qcow2_update_h...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
6,614
void helper_fcmp_eq_DT(CPUSH4State *env, float64 t0, float64 t1) { int relation; set_float_exception_flags(0, &env->fp_status); relation = float64_compare(t0, t1, &env->fp_status); if (unlikely(relation == float_relation_unordered)) { update_fpscr(env, GETPC()); } else { en...
false
qemu
fea7d77d3ea287d3b1878648f3049fc6bb4fd57b
void helper_fcmp_eq_DT(CPUSH4State *env, float64 t0, float64 t1) { int relation; set_float_exception_flags(0, &env->fp_status); relation = float64_compare(t0, t1, &env->fp_status); if (unlikely(relation == float_relation_unordered)) { update_fpscr(env, GETPC()); } else { en...
{ "code": [], "line_no": [] }
void FUNC_0(CPUSH4State *VAR_0, float64 VAR_1, float64 VAR_2) { int VAR_3; set_float_exception_flags(0, &VAR_0->fp_status); VAR_3 = float64_compare(VAR_1, VAR_2, &VAR_0->fp_status); if (unlikely(VAR_3 == float_relation_unordered)) { update_fpscr(VAR_0, GETPC()); } else { VA...
[ "void FUNC_0(CPUSH4State *VAR_0, float64 VAR_1, float64 VAR_2)\n{", "int VAR_3;", "set_float_exception_flags(0, &VAR_0->fp_status);", "VAR_3 = float64_compare(VAR_1, VAR_2, &VAR_0->fp_status);", "if (unlikely(VAR_3 == float_relation_unordered)) {", "update_fpscr(VAR_0, GETPC());", "} else {", "VAR_0->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
6,615
int qcow2_update_snapshot_refcount(BlockDriverState *bs, int64_t l1_table_offset, int l1_size, int addend) { BDRVQcow2State *s = bs->opaque; uint64_t *l1_table, *l2_table, l2_offset, offset, l1_size2, refcount; bool l1_allocated = false; int64_t old_offset, old_l2_offset; int i, j, l1_mod...
false
qemu
b32cbae11107e9e172e5c58425a2a8362e7382ed
int qcow2_update_snapshot_refcount(BlockDriverState *bs, int64_t l1_table_offset, int l1_size, int addend) { BDRVQcow2State *s = bs->opaque; uint64_t *l1_table, *l2_table, l2_offset, offset, l1_size2, refcount; bool l1_allocated = false; int64_t old_offset, old_l2_offset; int i, j, l1_mod...
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, int VAR_2, int VAR_3) { BDRVQcow2State *s = VAR_0->opaque; uint64_t *l1_table, *l2_table, l2_offset, offset, l1_size2, refcount; bool l1_allocated = false; int64_t old_offset, old_l2_offset; int VAR_4, VAR_5, VAR_6 = 0, VAR_7; int VA...
[ "int FUNC_0(BlockDriverState *VAR_0,\nint64_t VAR_1, int VAR_2, int VAR_3)\n{", "BDRVQcow2State *s = VAR_0->opaque;", "uint64_t *l1_table, *l2_table, l2_offset, offset, l1_size2, refcount;", "bool l1_allocated = false;", "int64_t old_offset, old_l2_offset;", "int VAR_4, VAR_5, VAR_6 = 0, VAR_7;", "int V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [...
6,616
static int enable_write_target(BDRVVVFATState *s, Error **errp) { BlockDriver *bdrv_qcow = NULL; QemuOpts *opts = NULL; int ret; int size = sector2cluster(s, s->sector_count); s->used_clusters = calloc(size, 1); array_init(&(s->commits), sizeof(commit_t)); s->qcow_filename = g_ma...
false
qemu
9a29e18f7dfd5a0e80d1c60fc856ebba18ddb738
static int enable_write_target(BDRVVVFATState *s, Error **errp) { BlockDriver *bdrv_qcow = NULL; QemuOpts *opts = NULL; int ret; int size = sector2cluster(s, s->sector_count); s->used_clusters = calloc(size, 1); array_init(&(s->commits), sizeof(commit_t)); s->qcow_filename = g_ma...
{ "code": [], "line_no": [] }
static int FUNC_0(BDRVVVFATState *VAR_0, Error **VAR_1) { BlockDriver *bdrv_qcow = NULL; QemuOpts *opts = NULL; int VAR_2; int VAR_3 = sector2cluster(VAR_0, VAR_0->sector_count); VAR_0->used_clusters = calloc(VAR_3, 1); array_init(&(VAR_0->commits), sizeof(commit_t)); VAR_0->qcow...
[ "static int FUNC_0(BDRVVVFATState *VAR_0, Error **VAR_1)\n{", "BlockDriver *bdrv_qcow = NULL;", "QemuOpts *opts = NULL;", "int VAR_2;", "int VAR_3 = sector2cluster(VAR_0, VAR_0->sector_count);", "VAR_0->used_clusters = calloc(VAR_3, 1);", "array_init(&(VAR_0->commits), sizeof(commit_t));", "VAR_0->qco...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
6,617
static void dca_init_vlcs(void) { static int vlcs_inited = 0; int i, j; if (vlcs_inited) return; dca_bitalloc_index.offset = 1; dca_bitalloc_index.wrap = 2; for (i = 0; i < 5; i++) init_vlc(&dca_bitalloc_index.vlc[i], bitalloc_12_vlc_bits[i], 12, bi...
false
FFmpeg
5e53486545726987ab4482321d4dcf7e23e7652f
static void dca_init_vlcs(void) { static int vlcs_inited = 0; int i, j; if (vlcs_inited) return; dca_bitalloc_index.offset = 1; dca_bitalloc_index.wrap = 2; for (i = 0; i < 5; i++) init_vlc(&dca_bitalloc_index.vlc[i], bitalloc_12_vlc_bits[i], 12, bi...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { static int VAR_0 = 0; int VAR_1, VAR_2; if (VAR_0) return; dca_bitalloc_index.offset = 1; dca_bitalloc_index.wrap = 2; for (VAR_1 = 0; VAR_1 < 5; VAR_1++) init_vlc(&dca_bitalloc_index.vlc[VAR_1], bitalloc_12_vlc_bits[VAR_1], 12, ...
[ "static void FUNC_0(void)\n{", "static int VAR_0 = 0;", "int VAR_1, VAR_2;", "if (VAR_0)\nreturn;", "dca_bitalloc_index.offset = 1;", "dca_bitalloc_index.wrap = 2;", "for (VAR_1 = 0; VAR_1 < 5; VAR_1++)", "init_vlc(&dca_bitalloc_index.vlc[VAR_1], bitalloc_12_vlc_bits[VAR_1], 12,\nbitalloc_12_bits[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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49, 51 ], ...
6,620
static inline int is_yuv_planar(PixFmtInfo *ps) { return (ps->color_type == FF_COLOR_YUV || ps->color_type == FF_COLOR_YUV_JPEG) && !ps->is_packed; }
false
FFmpeg
7e7e59409294af9caa63808e56c5cc824c98b4fc
static inline int is_yuv_planar(PixFmtInfo *ps) { return (ps->color_type == FF_COLOR_YUV || ps->color_type == FF_COLOR_YUV_JPEG) && !ps->is_packed; }
{ "code": [], "line_no": [] }
static inline int FUNC_0(PixFmtInfo *VAR_0) { return (VAR_0->color_type == FF_COLOR_YUV || VAR_0->color_type == FF_COLOR_YUV_JPEG) && !VAR_0->is_packed; }
[ "static inline int FUNC_0(PixFmtInfo *VAR_0)\n{", "return (VAR_0->color_type == FF_COLOR_YUV ||\nVAR_0->color_type == FF_COLOR_YUV_JPEG) && !VAR_0->is_packed;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
6,621
AVFilter *avfilter_get_by_name(const char *name) { int i; for (i = 0; registered_avfilters[i]; i++) if (!strcmp(registered_avfilters[i]->name, name)) return registered_avfilters[i]; return NULL; }
false
FFmpeg
fa2a34cd40d124161c748bb0f430dc63c94dd0da
AVFilter *avfilter_get_by_name(const char *name) { int i; for (i = 0; registered_avfilters[i]; i++) if (!strcmp(registered_avfilters[i]->name, name)) return registered_avfilters[i]; return NULL; }
{ "code": [], "line_no": [] }
AVFilter *FUNC_0(const char *name) { int VAR_0; for (VAR_0 = 0; registered_avfilters[VAR_0]; VAR_0++) if (!strcmp(registered_avfilters[VAR_0]->name, name)) return registered_avfilters[VAR_0]; return NULL; }
[ "AVFilter *FUNC_0(const char *name)\n{", "int VAR_0;", "for (VAR_0 = 0; registered_avfilters[VAR_0]; VAR_0++)", "if (!strcmp(registered_avfilters[VAR_0]->name, name))\nreturn registered_avfilters[VAR_0];", "return NULL;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 19 ] ]
6,623
static int output_frame(H264Context *h, AVFrame *dst, AVFrame *src) { int i; int ret = av_frame_ref(dst, src); if (ret < 0) return ret; if (!h->sps.crop) return 0; for (i = 0; i < 3; i++) { int hshift = (i > 0) ? h->chroma_x_shift : 0; int vshift = (i > ...
false
FFmpeg
3176217c60ca7828712985092d9102d331ea4f3d
static int output_frame(H264Context *h, AVFrame *dst, AVFrame *src) { int i; int ret = av_frame_ref(dst, src); if (ret < 0) return ret; if (!h->sps.crop) return 0; for (i = 0; i < 3; i++) { int hshift = (i > 0) ? h->chroma_x_shift : 0; int vshift = (i > ...
{ "code": [], "line_no": [] }
static int FUNC_0(H264Context *VAR_0, AVFrame *VAR_1, AVFrame *VAR_2) { int VAR_3; int VAR_4 = av_frame_ref(VAR_1, VAR_2); if (VAR_4 < 0) return VAR_4; if (!VAR_0->sps.crop) return 0; for (VAR_3 = 0; VAR_3 < 3; VAR_3++) { int VAR_5 = (VAR_3 > 0) ? VAR_0->chroma_x...
[ "static int FUNC_0(H264Context *VAR_0, AVFrame *VAR_1, AVFrame *VAR_2)\n{", "int VAR_3;", "int VAR_4 = av_frame_ref(VAR_1, VAR_2);", "if (VAR_4 < 0)\nreturn VAR_4;", "if (!VAR_0->sps.crop)\nreturn 0;", "for (VAR_3 = 0; VAR_3 < 3; VAR_3++) {", "int VAR_5 = (VAR_3 > 0) ? VAR_0->chroma_x_shift : 0;", "in...
[ 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 ] ]
6,624
static inline void futex_wake(QemuEvent *ev, int n) { if (n == 1) { pthread_cond_signal(&ev->cond); } else { pthread_cond_broadcast(&ev->cond); } }
true
qemu
158ef8cbb7e0fe8bb430310924b8bebe5f186e6e
static inline void futex_wake(QemuEvent *ev, int n) { if (n == 1) { pthread_cond_signal(&ev->cond); } else { pthread_cond_broadcast(&ev->cond); } }
{ "code": [], "line_no": [] }
static inline void FUNC_0(QemuEvent *VAR_0, int VAR_1) { if (VAR_1 == 1) { pthread_cond_signal(&VAR_0->cond); } else { pthread_cond_broadcast(&VAR_0->cond); } }
[ "static inline void FUNC_0(QemuEvent *VAR_0, int VAR_1)\n{", "if (VAR_1 == 1) {", "pthread_cond_signal(&VAR_0->cond);", "} else {", "pthread_cond_broadcast(&VAR_0->cond);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 6 ], [ 8 ], [ 10 ], [ 12 ], [ 14 ], [ 17 ] ]
6,625
void vnc_flush(VncState *vs) { if (vs->output.offset) vnc_client_write(vs); }
true
qemu
198a0039c5fca224a77e9761e2350dd9cc102ad0
void vnc_flush(VncState *vs) { if (vs->output.offset) vnc_client_write(vs); }
{ "code": [ " if (vs->output.offset)" ], "line_no": [ 5 ] }
void FUNC_0(VncState *VAR_0) { if (VAR_0->output.offset) vnc_client_write(VAR_0); }
[ "void FUNC_0(VncState *VAR_0)\n{", "if (VAR_0->output.offset)\nvnc_client_write(VAR_0);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
6,629
static void get_private_data(OutputStream *os) { AVCodecContext *codec = os->ctx->streams[0]->codec; uint8_t *ptr = codec->extradata; int size = codec->extradata_size; int i; if (codec->codec_id == AV_CODEC_ID_H264) { ff_avc_write_annexb_extradata(ptr, &ptr, &size); if (!ptr)...
true
FFmpeg
a863c97e99bf30a88baa74f83bab9e3ab25984dc
static void get_private_data(OutputStream *os) { AVCodecContext *codec = os->ctx->streams[0]->codec; uint8_t *ptr = codec->extradata; int size = codec->extradata_size; int i; if (codec->codec_id == AV_CODEC_ID_H264) { ff_avc_write_annexb_extradata(ptr, &ptr, &size); if (!ptr)...
{ "code": [], "line_no": [] }
static void FUNC_0(OutputStream *VAR_0) { AVCodecContext *codec = VAR_0->ctx->streams[0]->codec; uint8_t *ptr = codec->extradata; int VAR_1 = codec->extradata_size; int VAR_2; if (codec->codec_id == AV_CODEC_ID_H264) { ff_avc_write_annexb_extradata(ptr, &ptr, &VAR_1); if (!pt...
[ "static void FUNC_0(OutputStream *VAR_0)\n{", "AVCodecContext *codec = VAR_0->ctx->streams[0]->codec;", "uint8_t *ptr = codec->extradata;", "int VAR_1 = codec->extradata_size;", "int VAR_2;", "if (codec->codec_id == AV_CODEC_ID_H264) {", "ff_avc_write_annexb_extradata(ptr, &ptr, &VAR_1);", "if (!ptr)\...
[ 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 ] ]
6,631
static int bdrv_qed_open(BlockDriverState *bs, int flags) { BDRVQEDState *s = bs->opaque; QEDHeader le_header; int64_t file_size; int ret; s->bs = bs; QSIMPLEQ_INIT(&s->allocating_write_reqs); ret = bdrv_pread(bs->file, 0, &le_header, sizeof(le_header)); if (ret < 0) { ...
true
qemu
6f321e93abb27b4e7ceb228b4204aa304e95daad
static int bdrv_qed_open(BlockDriverState *bs, int flags) { BDRVQEDState *s = bs->opaque; QEDHeader le_header; int64_t file_size; int ret; s->bs = bs; QSIMPLEQ_INIT(&s->allocating_write_reqs); ret = bdrv_pread(bs->file, 0, &le_header, sizeof(le_header)); if (ret < 0) { ...
{ "code": [ " if (!ret && !result.corruptions && !result.check_errors) {" ], "line_no": [ 231 ] }
static int FUNC_0(BlockDriverState *VAR_0, int VAR_1) { BDRVQEDState *s = VAR_0->opaque; QEDHeader le_header; int64_t file_size; int VAR_2; s->VAR_0 = VAR_0; QSIMPLEQ_INIT(&s->allocating_write_reqs); VAR_2 = bdrv_pread(VAR_0->file, 0, &le_header, sizeof(le_header)); if (VAR_...
[ "static int FUNC_0(BlockDriverState *VAR_0, int VAR_1)\n{", "BDRVQEDState *s = VAR_0->opaque;", "QEDHeader le_header;", "int64_t file_size;", "int VAR_2;", "s->VAR_0 = VAR_0;", "QSIMPLEQ_INIT(&s->allocating_write_reqs);", "VAR_2 = bdrv_pread(VAR_0->file, 0, &le_header, sizeof(le_header));", "if (VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49 ], [...
6,633
static void do_key_event(VncState *vs, int down, int keycode, int sym) { /* QEMU console switch */ switch(keycode) { case 0x2a: /* Left Shift */ case 0x36: /* Right Shift */ case 0x1d: /* Left CTRL */ case 0x9d: ...
true
qemu
6b1325029d80455b9da7cd7bd84a88cb915b867c
static void do_key_event(VncState *vs, int down, int keycode, int sym) { switch(keycode) { case 0x2a: case 0x36: case 0x1d: case 0x9d: case 0x38: case 0xb8: ...
{ "code": [], "line_no": [] }
static void FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3) { switch(VAR_2) { case 0x2a: case 0x36: case 0x1d: case 0x9d: case 0x38: case 0xb8: ...
[ "static void FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3)\n{", "switch(VAR_2) {", "case 0x2a:\ncase 0x36:\ncase 0x1d:\ncase 0x9d:\ncase 0x38:\ncase 0xb8:\nif (VAR_1)\nVAR_0->modifiers_state[VAR_2] = 1;", "else\nVAR_0->modifiers_state[VAR_2] = 0;", "break;", "case 0x02 ... 0x0a:\nif (VAR_1 && V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 2 ], [ 4 ], [ 5, 6, 7, 8, 9, 10, 11, 12 ], [ 13, 14 ], [ 15 ], [ 16, 17 ], [ 19 ], [ 20 ], [ 21 ], [ 22 ], [ 23, 24, 25, 26 ], [ 27 ], [ 28 ], [ 46 ]...
6,634
void set_link_completion(ReadLineState *rs, int nb_args, const char *str) { size_t len; len = strlen(str); readline_set_completion_index(rs, len); if (nb_args == 2) { NetClientState *ncs[MAX_QUEUE_NUM]; int count, i; count = qemu_find_net_clients_except(NULL, ncs, ...
true
qemu
bcfa4d60144fb879f0ffef0a6d174faa37b2df82
void set_link_completion(ReadLineState *rs, int nb_args, const char *str) { size_t len; len = strlen(str); readline_set_completion_index(rs, len); if (nb_args == 2) { NetClientState *ncs[MAX_QUEUE_NUM]; int count, i; count = qemu_find_net_clients_except(NULL, ncs, ...
{ "code": [ " for (i = 0; i < count; i++) {", " for (i = 0; i < count; i++) {", " for (i = 0; i < count; i++) {" ], "line_no": [ 25, 25, 25 ] }
void FUNC_0(ReadLineState *VAR_0, int VAR_1, const char *VAR_2) { size_t len; len = strlen(VAR_2); readline_set_completion_index(VAR_0, len); if (VAR_1 == 2) { NetClientState *ncs[MAX_QUEUE_NUM]; int VAR_3, VAR_4; VAR_3 = qemu_find_net_clients_except(NULL, ncs, ...
[ "void FUNC_0(ReadLineState *VAR_0, int VAR_1, const char *VAR_2)\n{", "size_t len;", "len = strlen(VAR_2);", "readline_set_completion_index(VAR_0, len);", "if (VAR_1 == 2) {", "NetClientState *ncs[MAX_QUEUE_NUM];", "int VAR_3, VAR_4;", "VAR_3 = qemu_find_net_clients_except(NULL, ncs,\nNET_CLIENT_OPTIO...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45...
6,636
static void bufp_alloc(USBRedirDevice *dev, uint8_t *data, uint16_t len, uint8_t status, uint8_t ep, void *free_on_destroy) { struct buf_packet *bufp; if (!dev->endpoint[EP2I(ep)].bufpq_dropping_packets && dev->endpoint[EP2I(ep)].bufpq_size > 2 * dev->endpoint[EP2I(ep)].bufpq_tar...
true
qemu
e8ce12d9eaeedeb7f8d9debcd4c9b993903f1abb
static void bufp_alloc(USBRedirDevice *dev, uint8_t *data, uint16_t len, uint8_t status, uint8_t ep, void *free_on_destroy) { struct buf_packet *bufp; if (!dev->endpoint[EP2I(ep)].bufpq_dropping_packets && dev->endpoint[EP2I(ep)].bufpq_size > 2 * dev->endpoint[EP2I(ep)].bufpq_tar...
{ "code": [ "static void bufp_alloc(USBRedirDevice *dev, uint8_t *data, uint16_t len," ], "line_no": [ 1 ] }
static void FUNC_0(USBRedirDevice *VAR_0, uint8_t *VAR_1, uint16_t VAR_2, uint8_t VAR_3, uint8_t VAR_4, void *VAR_5) { struct buf_packet *VAR_6; if (!VAR_0->endpoint[EP2I(VAR_4)].bufpq_dropping_packets && VAR_0->endpoint[EP2I(VAR_4)].bufpq_size > 2 * VAR_0->endpoint[EP2I(VAR_4)]....
[ "static void FUNC_0(USBRedirDevice *VAR_0, uint8_t *VAR_1, uint16_t VAR_2,\nuint8_t VAR_3, uint8_t VAR_4, void *VAR_5)\n{", "struct buf_packet *VAR_6;", "if (!VAR_0->endpoint[EP2I(VAR_4)].bufpq_dropping_packets &&\nVAR_0->endpoint[EP2I(VAR_4)].bufpq_size >\n2 * VAR_0->endpoint[EP2I(VAR_4)].bufpq_target_size) {"...
[ 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 ], [ 11, 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
6,637
static inline void check_hwrena(CPUMIPSState *env, int reg) { if ((env->hflags & MIPS_HFLAG_CP0) || (env->CP0_HWREna & (1 << reg))) { return; } do_raise_exception(env, EXCP_RI, GETPC()); }
true
qemu
d96391c1ffeb30a0afa695c86579517c69d9a889
static inline void check_hwrena(CPUMIPSState *env, int reg) { if ((env->hflags & MIPS_HFLAG_CP0) || (env->CP0_HWREna & (1 << reg))) { return; } do_raise_exception(env, EXCP_RI, GETPC()); }
{ "code": [ "static inline void check_hwrena(CPUMIPSState *env, int reg)", " do_raise_exception(env, EXCP_RI, GETPC());" ], "line_no": [ 1, 11 ] }
static inline void FUNC_0(CPUMIPSState *VAR_0, int VAR_1) { if ((VAR_0->hflags & MIPS_HFLAG_CP0) || (VAR_0->CP0_HWREna & (1 << VAR_1))) { return; } do_raise_exception(VAR_0, EXCP_RI, GETPC()); }
[ "static inline void FUNC_0(CPUMIPSState *VAR_0, int VAR_1)\n{", "if ((VAR_0->hflags & MIPS_HFLAG_CP0) || (VAR_0->CP0_HWREna & (1 << VAR_1))) {", "return;", "}", "do_raise_exception(VAR_0, EXCP_RI, GETPC());", "}" ]
[ 1, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
6,638
static bool xen_host_pci_dev_is_virtfn(XenHostPCIDevice *d) { char path[PATH_MAX]; struct stat buf; if (xen_host_pci_sysfs_path(d, "physfn", path, sizeof (path))) { return false; } return !stat(path, &buf); }
true
qemu
599d0c45615b7d099d256738a586d0f63bc707e6
static bool xen_host_pci_dev_is_virtfn(XenHostPCIDevice *d) { char path[PATH_MAX]; struct stat buf; if (xen_host_pci_sysfs_path(d, "physfn", path, sizeof (path))) { return false; } return !stat(path, &buf); }
{ "code": [ " if (xen_host_pci_sysfs_path(d, \"physfn\", path, sizeof (path))) {", " return false;" ], "line_no": [ 11, 13 ] }
static bool FUNC_0(XenHostPCIDevice *d) { char VAR_0[PATH_MAX]; struct stat VAR_1; if (xen_host_pci_sysfs_path(d, "physfn", VAR_0, sizeof (VAR_0))) { return false; } return !stat(VAR_0, &VAR_1); }
[ "static bool FUNC_0(XenHostPCIDevice *d)\n{", "char VAR_0[PATH_MAX];", "struct stat VAR_1;", "if (xen_host_pci_sysfs_path(d, \"physfn\", VAR_0, sizeof (VAR_0))) {", "return false;", "}", "return !stat(VAR_0, &VAR_1);", "}" ]
[ 0, 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
6,639
static gboolean guest_exec_output_watch(GIOChannel *ch, GIOCondition cond, gpointer p_) { GuestExecIOData *p = (GuestExecIOData *)p_; gsize bytes_read; GIOStatus gstatus; if (cond == G_IO_HUP || cond == G_IO_ERR) { goto close; } if (p->size == p->length) { g...
true
qemu
3005c2c2fa2875a3413af97e9db368856d3330fd
static gboolean guest_exec_output_watch(GIOChannel *ch, GIOCondition cond, gpointer p_) { GuestExecIOData *p = (GuestExecIOData *)p_; gsize bytes_read; GIOStatus gstatus; if (cond == G_IO_HUP || cond == G_IO_ERR) { goto close; } if (p->size == p->length) { g...
{ "code": [], "line_no": [] }
static gboolean FUNC_0(GIOChannel *ch, GIOCondition cond, gpointer p_) { GuestExecIOData *p = (GuestExecIOData *)p_; gsize bytes_read; GIOStatus gstatus; if (cond == G_IO_HUP || cond == G_IO_ERR) { goto close; } if (p->size == p->length) { gpointer t = NULL;...
[ "static gboolean FUNC_0(GIOChannel *ch,\nGIOCondition cond, gpointer p_)\n{", "GuestExecIOData *p = (GuestExecIOData *)p_;", "gsize bytes_read;", "GIOStatus gstatus;", "if (cond == G_IO_HUP || cond == G_IO_ERR) {", "goto close;", "}", "if (p->size == p->length) {", "gpointer t = NULL;", "if (!p->t...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ...
6,640
static int hq_decode_block(HQContext *c, GetBitContext *gb, int16_t block[64], int qsel, int is_chroma, int is_hqa) { const int32_t *q; int val, pos = 1; memset(block, 0, 64 * sizeof(*block)); if (!is_hqa) { block[0] = get_sbits(gb, 9) << 6; q = ff_...
false
FFmpeg
28eddef689f2b4843a84f7d05fd9614246f92cc4
static int hq_decode_block(HQContext *c, GetBitContext *gb, int16_t block[64], int qsel, int is_chroma, int is_hqa) { const int32_t *q; int val, pos = 1; memset(block, 0, 64 * sizeof(*block)); if (!is_hqa) { block[0] = get_sbits(gb, 9) << 6; q = ff_...
{ "code": [], "line_no": [] }
static int FUNC_0(HQContext *VAR_0, GetBitContext *VAR_1, int16_t VAR_2[64], int VAR_3, int VAR_4, int VAR_5) { const int32_t *VAR_6; int VAR_7, VAR_8 = 1; memset(VAR_2, 0, 64 * sizeof(*VAR_2)); if (!VAR_5) { VAR_2[0] = get_sbits(VAR_1, 9) << 6; VAR...
[ "static int FUNC_0(HQContext *VAR_0, GetBitContext *VAR_1, int16_t VAR_2[64],\nint VAR_3, int VAR_4, int VAR_5)\n{", "const int32_t *VAR_6;", "int VAR_7, VAR_8 = 1;", "memset(VAR_2, 0, 64 * sizeof(*VAR_2));", "if (!VAR_5) {", "VAR_2[0] = get_sbits(VAR_1, 9) << 6;", "VAR_6 = ff_hq_quants[VAR_3][VAR_4][ge...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ...
6,642
static void final(const short *i1, const short *i2, void *out, int *statbuf, int len) { int x, i; unsigned short int work[50]; short *ptr = work; memcpy(work, statbuf,20); memcpy(work + 10, i2, len * 2); for (i=0; i<len; i++) { int sum = 0; for(x...
true
FFmpeg
13b6729361d45b9f308d731dd6b82dac01428dc3
static void final(const short *i1, const short *i2, void *out, int *statbuf, int len) { int x, i; unsigned short int work[50]; short *ptr = work; memcpy(work, statbuf,20); memcpy(work + 10, i2, len * 2); for (i=0; i<len; i++) { int sum = 0; for(x...
{ "code": [ " if (ptr[10] - sum < -32768 || ptr[10] - sum > 32767) {", " ptr[10] -= sum;" ], "line_no": [ 37, 49 ] }
static void FUNC_0(const short *VAR_0, const short *VAR_1, void *VAR_2, int *VAR_3, int VAR_4) { int VAR_5, VAR_6; unsigned short int VAR_7[50]; short *VAR_8 = VAR_7; memcpy(VAR_7, VAR_3,20); memcpy(VAR_7 + 10, VAR_1, VAR_4 * 2); for (VAR_6=0; VAR_6<VAR_4; VAR_6++) ...
[ "static void FUNC_0(const short *VAR_0, const short *VAR_1,\nvoid *VAR_2, int *VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6;", "unsigned short int VAR_7[50];", "short *VAR_8 = VAR_7;", "memcpy(VAR_7, VAR_3,20);", "memcpy(VAR_7 + 10, VAR_1, VAR_4 * 2);", "for (VAR_6=0; VAR_6<VAR_4; VAR_6++) {", "int VAR_9 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [...
6,643
static int showspectrumpic_request_frame(AVFilterLink *outlink) { AVFilterContext *ctx = outlink->src; ShowSpectrumContext *s = ctx->priv; AVFilterLink *inlink = ctx->inputs[0]; int ret; ret = ff_request_frame(inlink); if (ret == AVERROR_EOF && s->outpicref) { int samples = av_...
true
FFmpeg
836c8750b31329e71e5ac2a194523172875b77eb
static int showspectrumpic_request_frame(AVFilterLink *outlink) { AVFilterContext *ctx = outlink->src; ShowSpectrumContext *s = ctx->priv; AVFilterLink *inlink = ctx->inputs[0]; int ret; ret = ff_request_frame(inlink); if (ret == AVERROR_EOF && s->outpicref) { int samples = av_...
{ "code": [ " int ret;", " if (ret == AVERROR_EOF && s->outpicref) {", " int samples = av_audio_fifo_size(s->fifo);" ], "line_no": [ 11, 17, 19 ] }
static int FUNC_0(AVFilterLink *VAR_0) { AVFilterContext *ctx = VAR_0->src; ShowSpectrumContext *s = ctx->priv; AVFilterLink *inlink = ctx->inputs[0]; int VAR_1; VAR_1 = ff_request_frame(inlink); if (VAR_1 == AVERROR_EOF && s->outpicref) { int VAR_2 = av_audio_fifo_size(s->fifo...
[ "static int FUNC_0(AVFilterLink *VAR_0)\n{", "AVFilterContext *ctx = VAR_0->src;", "ShowSpectrumContext *s = ctx->priv;", "AVFilterLink *inlink = ctx->inputs[0];", "int VAR_1;", "VAR_1 = ff_request_frame(inlink);", "if (VAR_1 == AVERROR_EOF && s->outpicref) {", "int VAR_2 = av_audio_fifo_size(s->fifo)...
[ 0, 0, 0, 0, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [...
6,645
static int usb_msd_initfn_storage(USBDevice *dev) { MSDState *s = DO_UPCAST(MSDState, dev, dev); BlockDriverState *bs = s->conf.bs; SCSIDevice *scsi_dev; Error *err = NULL; if (!bs) { error_report("drive property not set"); return -1; } blkconf_serial(&s->conf, ...
true
qemu
f0bc7fe3b75d2ae4aedb6da6f68ebb87f77d929b
static int usb_msd_initfn_storage(USBDevice *dev) { MSDState *s = DO_UPCAST(MSDState, dev, dev); BlockDriverState *bs = s->conf.bs; SCSIDevice *scsi_dev; Error *err = NULL; if (!bs) { error_report("drive property not set"); return -1; } blkconf_serial(&s->conf, ...
{ "code": [], "line_no": [] }
static int FUNC_0(USBDevice *VAR_0) { MSDState *s = DO_UPCAST(MSDState, VAR_0, VAR_0); BlockDriverState *bs = s->conf.bs; SCSIDevice *scsi_dev; Error *err = NULL; if (!bs) { error_report("drive property not set"); return -1; } blkconf_serial(&s->conf, &VAR_0->se...
[ "static int FUNC_0(USBDevice *VAR_0)\n{", "MSDState *s = DO_UPCAST(MSDState, VAR_0, VAR_0);", "BlockDriverState *bs = s->conf.bs;", "SCSIDevice *scsi_dev;", "Error *err = NULL;", "if (!bs) {", "error_report(\"drive property not set\");", "return -1;", "}", "blkconf_serial(&s->conf, &VAR_0->serial)...
[ 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [ 57, 59 ], [ 61, 63, 65 ], [ 67 ], [ 71 ], [...
6,647
static gnutls_anon_server_credentials_t vnc_tls_initialize_anon_cred(void) { gnutls_anon_server_credentials_t anon_cred; int ret; if ((ret = gnutls_anon_allocate_server_credentials(&anon_cred)) < 0) { VNC_DEBUG("Cannot allocate credentials %s\n", gnutls_strerror(ret)); return NULL; ...
true
qemu
3e305e4a4752f70c0b5c3cf5b43ec957881714f7
static gnutls_anon_server_credentials_t vnc_tls_initialize_anon_cred(void) { gnutls_anon_server_credentials_t anon_cred; int ret; if ((ret = gnutls_anon_allocate_server_credentials(&anon_cred)) < 0) { VNC_DEBUG("Cannot allocate credentials %s\n", gnutls_strerror(ret)); return NULL; ...
{ "code": [ " int ret;", " int ret;", " int ret;", "static gnutls_anon_server_credentials_t vnc_tls_initialize_anon_cred(void)", " gnutls_anon_server_credentials_t anon_cred;", " int ret;", " if ((ret = gnutls_anon_allocate_server_credentials(&anon_cred)) < 0) {", " ...
static gnutls_anon_server_credentials_t FUNC_0(void) { gnutls_anon_server_credentials_t anon_cred; int VAR_0; if ((VAR_0 = gnutls_anon_allocate_server_credentials(&anon_cred)) < 0) { VNC_DEBUG("Cannot allocate credentials %s\n", gnutls_strerror(VAR_0)); return NULL; } gnu...
[ "static gnutls_anon_server_credentials_t FUNC_0(void)\n{", "gnutls_anon_server_credentials_t anon_cred;", "int VAR_0;", "if ((VAR_0 = gnutls_anon_allocate_server_credentials(&anon_cred)) < 0) {", "VNC_DEBUG(\"Cannot allocate credentials %s\\n\", gnutls_strerror(VAR_0));", "return NULL;", "}", "gnutls_...
[ 1, 1, 1, 1, 1, 1, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27 ] ]
6,648
static void hypercall_init(void) { /* hcall-pft */ spapr_register_hypercall(H_ENTER, h_enter); spapr_register_hypercall(H_REMOVE, h_remove); spapr_register_hypercall(H_PROTECT, h_protect); /* qemu/KVM-PPC specific hcalls */ spapr_register_hypercall(KVMPPC_H_RTAS, h_rtas); }
true
qemu
821303f59b63ab832f0921f070db55e95bb21858
static void hypercall_init(void) { spapr_register_hypercall(H_ENTER, h_enter); spapr_register_hypercall(H_REMOVE, h_remove); spapr_register_hypercall(H_PROTECT, h_protect); spapr_register_hypercall(KVMPPC_H_RTAS, h_rtas); }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { spapr_register_hypercall(H_ENTER, h_enter); spapr_register_hypercall(H_REMOVE, h_remove); spapr_register_hypercall(H_PROTECT, h_protect); spapr_register_hypercall(KVMPPC_H_RTAS, h_rtas); }
[ "static void FUNC_0(void)\n{", "spapr_register_hypercall(H_ENTER, h_enter);", "spapr_register_hypercall(H_REMOVE, h_remove);", "spapr_register_hypercall(H_PROTECT, h_protect);", "spapr_register_hypercall(KVMPPC_H_RTAS, h_rtas);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 4 ], [ 5 ], [ 6 ], [ 8 ], [ 9 ] ]
6,649
static int mig_save_device_bulk(QEMUFile *f, BlkMigDevState *bmds) { int64_t total_sectors = bmds->total_sectors; int64_t cur_sector = bmds->cur_sector; BlockDriverState *bs = bmds->bs; BlkMigBlock *blk; int nr_sectors; if (bmds->shared_base) { qemu_mutex_lock_iothread(); ...
true
qemu
5839e53bbc0fec56021d758aab7610df421ed8c8
static int mig_save_device_bulk(QEMUFile *f, BlkMigDevState *bmds) { int64_t total_sectors = bmds->total_sectors; int64_t cur_sector = bmds->cur_sector; BlockDriverState *bs = bmds->bs; BlkMigBlock *blk; int nr_sectors; if (bmds->shared_base) { qemu_mutex_lock_iothread(); ...
{ "code": [ " blk = g_malloc(sizeof(BlkMigBlock));" ], "line_no": [ 69 ] }
static int FUNC_0(QEMUFile *VAR_0, BlkMigDevState *VAR_1) { int64_t total_sectors = VAR_1->total_sectors; int64_t cur_sector = VAR_1->cur_sector; BlockDriverState *bs = VAR_1->bs; BlkMigBlock *blk; int VAR_2; if (VAR_1->shared_base) { qemu_mutex_lock_iothread(); while ...
[ "static int FUNC_0(QEMUFile *VAR_0, BlkMigDevState *VAR_1)\n{", "int64_t total_sectors = VAR_1->total_sectors;", "int64_t cur_sector = VAR_1->cur_sector;", "BlockDriverState *bs = VAR_1->bs;", "BlkMigBlock *blk;", "int VAR_2;", "if (VAR_1->shared_base) {", "qemu_mutex_lock_iothread();", "while (cur_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 51 ...
6,651
static int make_setup_request(AVFormatContext *s, const char *host, int port, int lower_transport, const char *real_challenge) { RTSPState *rt = s->priv_data; int rtx, j, i, err, interleave = 0; RTSPStream *rtsp_st; RTSPMessageHeader reply1, *reply = &reply1; cha...
true
FFmpeg
8c579c1c604306460436dcf1523117ca3b1aca82
static int make_setup_request(AVFormatContext *s, const char *host, int port, int lower_transport, const char *real_challenge) { RTSPState *rt = s->priv_data; int rtx, j, i, err, interleave = 0; RTSPStream *rtsp_st; RTSPMessageHeader reply1, *reply = &reply1; cha...
{ "code": [ " if (reply->transports[0].lower_transport != RTSP_LOWER_TRANSPORT_UDP &&", " (lower_transport == RTSP_LOWER_TRANSPORT_UDP)) {", " url_close(rtsp_st->rtp_handle);", " rtsp_st->rtp_handle = NULL;" ], "line_no": [ 311, 313, 315, 317...
static int FUNC_0(AVFormatContext *VAR_0, const char *VAR_1, int VAR_2, int VAR_3, const char *VAR_4) { RTSPState *rt = VAR_0->priv_data; int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9 = 0; RTSPStream *rtsp_st; RTSPMessageHeader reply1, *reply = &reply1; char VAR_10[2048]...
[ "static int FUNC_0(AVFormatContext *VAR_0, const char *VAR_1, int VAR_2,\nint VAR_3, const char *VAR_4)\n{", "RTSPState *rt = VAR_0->priv_data;", "int VAR_5, VAR_6, VAR_7, VAR_8, VAR_9 = 0;", "RTSPStream *rtsp_st;", "RTSPMessageHeader reply1, *reply = &reply1;", "char VAR_10[2048];", "const char *VAR_11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25, 27 ], [ 33 ], [ 45 ], [ 47 ], [ 61, 63 ], [ 65 ], [ 69 ], [ 71 ], [ 73, 75, 77,...
6,652
void gic_update(GICState *s) { int best_irq; int best_prio; int irq; int irq_level, fiq_level; int cpu; int cm; for (cpu = 0; cpu < s->num_cpu; cpu++) { cm = 1 << cpu; s->current_pending[cpu] = 1023; if (!(s->ctlr & (GICD_CTLR_EN_GRP0 | GICD_CTLR_EN_GRP1)...
true
qemu
2531088f6c1ce1f620f8d5a545f0af95598e69fc
void gic_update(GICState *s) { int best_irq; int best_prio; int irq; int irq_level, fiq_level; int cpu; int cm; for (cpu = 0; cpu < s->num_cpu; cpu++) { cm = 1 << cpu; s->current_pending[cpu] = 1023; if (!(s->ctlr & (GICD_CTLR_EN_GRP0 | GICD_CTLR_EN_GRP1)...
{ "code": [], "line_no": [] }
void FUNC_0(GICState *VAR_0) { int VAR_1; int VAR_2; int VAR_3; int VAR_4, VAR_5; int VAR_6; int VAR_7; for (VAR_6 = 0; VAR_6 < VAR_0->num_cpu; VAR_6++) { VAR_7 = 1 << VAR_6; VAR_0->current_pending[VAR_6] = 1023; if (!(VAR_0->ctlr & (GICD_CTLR_EN_GRP0 | G...
[ "void FUNC_0(GICState *VAR_0)\n{", "int VAR_1;", "int VAR_2;", "int VAR_3;", "int VAR_4, VAR_5;", "int VAR_6;", "int VAR_7;", "for (VAR_6 = 0; VAR_6 < VAR_0->num_cpu; VAR_6++) {", "VAR_7 = 1 << VAR_6;", "VAR_0->current_pending[VAR_6] = 1023;", "if (!(VAR_0->ctlr & (GICD_CTLR_EN_GRP0 | GICD_CTLR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ...
6,653
static void residual_interp(int16_t *buf, int16_t *out, int lag, int gain, int *rseed) { int i; if (lag) { /* Voiced */ int16_t *vector_ptr = buf + PITCH_MAX; /* Attenuate */ for (i = 0; i < lag; i++) out[i] = vector_ptr[i - lag] * 3 >> 2; ...
true
FFmpeg
f2c539d3501111f10a2b4e9480ea54c0a3190680
static void residual_interp(int16_t *buf, int16_t *out, int lag, int gain, int *rseed) { int i; if (lag) { int16_t *vector_ptr = buf + PITCH_MAX; for (i = 0; i < lag; i++) out[i] = vector_ptr[i - lag] * 3 >> 2; av_memcpy_backptr(...
{ "code": [ " *rseed = *rseed * 521 + 259;" ], "line_no": [ 27 ] }
static void FUNC_0(int16_t *VAR_0, int16_t *VAR_1, int VAR_2, int VAR_3, int *VAR_4) { int VAR_5; if (VAR_2) { int16_t *vector_ptr = VAR_0 + PITCH_MAX; for (VAR_5 = 0; VAR_5 < VAR_2; VAR_5++) VAR_1[VAR_5] = vector_ptr[VAR_5 - VAR_2] * 3 >...
[ "static void FUNC_0(int16_t *VAR_0, int16_t *VAR_1, int VAR_2,\nint VAR_3, int *VAR_4)\n{", "int VAR_5;", "if (VAR_2) {", "int16_t *vector_ptr = VAR_0 + PITCH_MAX;", "for (VAR_5 = 0; VAR_5 < VAR_2; VAR_5++)", "VAR_1[VAR_5] = vector_ptr[VAR_5 - VAR_2] * 3 >> 2;", "av_memcpy_backptr((uint8_t*)(VAR_1 + VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
6,655
static int mpeg2_decode_block_non_intra(MpegEncContext *s, DCTELEM *block, int n) { int level, i, j, run; int code; RLTable *rl = &rl_mpeg1; const UINT8 *scan_table; const UINT16 *matrix; int mismatch; ...
true
FFmpeg
d7e9533aa06f4073a27812349b35ba5fede11ca1
static int mpeg2_decode_block_non_intra(MpegEncContext *s, DCTELEM *block, int n) { int level, i, j, run; int code; RLTable *rl = &rl_mpeg1; const UINT8 *scan_table; const UINT16 *matrix; int mismatch; ...
{ "code": [ " } else {", " i = 0;", " matrix = s->non_intra_matrix;", " matrix = s->chroma_non_intra_matrix;", " } else {", " } else {" ], "line_no": [ 105, 43, 47, 51, 105, 105 ] }
static int FUNC_0(MpegEncContext *VAR_0, DCTELEM *VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6; int VAR_7; RLTable *rl = &rl_mpeg1; const UINT8 *VAR_8; const UINT16 *VAR_9; int VAR_10; if (VAR...
[ "static int FUNC_0(MpegEncContext *VAR_0,\nDCTELEM *VAR_1,\nint VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6;", "int VAR_7;", "RLTable *rl = &rl_mpeg1;", "const UINT8 *VAR_8;", "const UINT16 *VAR_9;", "int VAR_10;", "if (VAR_0->alternate_scan)\nVAR_8 = ff_alternate_vertical_scan;", "else\nVAR_8 = zig...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49, 51 ...
6,656
static int aiff_write_trailer(AVFormatContext *s) { AVIOContext *pb = s->pb; AIFFOutputContext *aiff = s->priv_data; AVCodecParameters *par = s->streams[0]->codecpar; /* Chunks sizes must be even */ int64_t file_size, end_size; end_size = file_size = avio_tell(pb); if (file_size & ...
false
FFmpeg
83548fe894cdb455cc127f754d09905b6d23c173
static int aiff_write_trailer(AVFormatContext *s) { AVIOContext *pb = s->pb; AIFFOutputContext *aiff = s->priv_data; AVCodecParameters *par = s->streams[0]->codecpar; int64_t file_size, end_size; end_size = file_size = avio_tell(pb); if (file_size & 1) { avio_w8(pb, 0); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { AVIOContext *pb = VAR_0->pb; AIFFOutputContext *aiff = VAR_0->priv_data; AVCodecParameters *par = VAR_0->streams[0]->codecpar; int64_t file_size, end_size; end_size = file_size = avio_tell(pb); if (file_size & 1) { avio_w8(pb, 0...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "AVIOContext *pb = VAR_0->pb;", "AIFFOutputContext *aiff = VAR_0->priv_data;", "AVCodecParameters *par = VAR_0->streams[0]->codecpar;", "int64_t file_size, end_size;", "end_size = file_size = avio_tell(pb);", "if (file_size & 1) {", "avio_w8(pb, 0);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 57 ], [ 61 ], [ 63 ...
6,657
static void RENAME(yuv2rgb565_2)(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, ...
false
FFmpeg
13a099799e89a76eb921ca452e1b04a7a28a9855
static void RENAME(yuv2rgb565_2)(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, ...
{ "code": [], "line_no": [] }
static void FUNC_0(yuv2rgb565_2)(SwsContext *c, const uint16_t *buf0, const uint16_t *buf1, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, ...
[ "static void FUNC_0(yuv2rgb565_2)(SwsContext *c, const uint16_t *buf0,\nconst uint16_t *buf1, const uint16_t *ubuf0,\nconst uint16_t *ubuf1, const uint16_t *vbuf0,\nconst uint16_t *vbuf1, const uint16_t *abuf0,\nconst uint16_t *abuf1, uint8_t *dest,\nint dstW, int yalpha, int uvalpha, int y)\n{", "__asm__ volatil...
[ 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 17, 19, 21, 23, 25, 27, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51 ], [ 53 ] ]
6,658
struct AACISError ff_aac_is_encoding_err(AACEncContext *s, ChannelElement *cpe, int start, int w, int g, float ener0, float ener1, float ener01, int use_pcoeffs, int phase) { int i, w2; ...
false
FFmpeg
4dcb69cc12d00d46f93a07178e2087a8d27c8f64
struct AACISError ff_aac_is_encoding_err(AACEncContext *s, ChannelElement *cpe, int start, int w, int g, float ener0, float ener1, float ener01, int use_pcoeffs, int phase) { int i, w2; ...
{ "code": [], "line_no": [] }
struct AACISError FUNC_0(AACEncContext *VAR_0, ChannelElement *VAR_1, int VAR_2, int VAR_3, int VAR_4, float VAR_5, float VAR_6, float VAR_7, int VAR_8, int VAR_9) { int VAR_10, VAR_11; ...
[ "struct AACISError FUNC_0(AACEncContext *VAR_0, ChannelElement *VAR_1,\nint VAR_2, int VAR_3, int VAR_4, float VAR_5,\nfloat VAR_6, float VAR_7,\nint VAR_8, int VAR_9)\n{", "int VAR_10, VAR_11;", "SingleChannelElement *sce0 = &VAR_1->ch[0];", "SingleChannelElement *sce1 = &VAR_1->ch[1];", "float *VAR_12 = V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
6,659
static int hls_write_packet(AVFormatContext *s, AVPacket *pkt) { HLSContext *hls = s->priv_data; AVFormatContext *oc = NULL; AVStream *st = s->streams[pkt->stream_index]; int64_t end_pts = hls->recording_time * hls->number; int is_ref_pkt = 1; int ret, can_split = 1; int stream_index...
false
FFmpeg
d3ce067e7687203cf4a0a475ffd4b733b7c3b4f4
static int hls_write_packet(AVFormatContext *s, AVPacket *pkt) { HLSContext *hls = s->priv_data; AVFormatContext *oc = NULL; AVStream *st = s->streams[pkt->stream_index]; int64_t end_pts = hls->recording_time * hls->number; int is_ref_pkt = 1; int ret, can_split = 1; int stream_index...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { HLSContext *hls = VAR_0->priv_data; AVFormatContext *oc = NULL; AVStream *st = VAR_0->streams[VAR_1->VAR_5]; int64_t end_pts = hls->recording_time * hls->number; int VAR_2 = 1; int VAR_3, VAR_4 = 1; int VAR_5 = 0; if...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "HLSContext *hls = VAR_0->priv_data;", "AVFormatContext *oc = NULL;", "AVStream *st = VAR_0->streams[VAR_1->VAR_5];", "int64_t end_pts = hls->recording_time * hls->number;", "int VAR_2 = 1;", "int VAR_3, VAR_4 = 1;", "int VAR_5 = 0;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
6,660
static void copy_cell(Indeo3DecodeContext *ctx, Plane *plane, Cell *cell) { int h, w, mv_x, mv_y, offset, offset_dst; uint8_t *src, *dst; /* setup output and reference pointers */ offset_dst = (cell->ypos << 2) * plane->pitch + (cell->xpos << 2); dst = plane->pixels[ctx->buf_sel...
true
FFmpeg
e421b79d01a3bf18d1ff8d8c4639669b66d788a5
static void copy_cell(Indeo3DecodeContext *ctx, Plane *plane, Cell *cell) { int h, w, mv_x, mv_y, offset, offset_dst; uint8_t *src, *dst; offset_dst = (cell->ypos << 2) * plane->pitch + (cell->xpos << 2); dst = plane->pixels[ctx->buf_sel] + offset_dst; mv_y = cell-...
{ "code": [], "line_no": [] }
static void FUNC_0(Indeo3DecodeContext *VAR_0, Plane *VAR_1, Cell *VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; uint8_t *src, *dst; VAR_8 = (VAR_2->ypos << 2) * VAR_1->pitch + (VAR_2->xpos << 2); dst = VAR_1->pixels[VAR_0->buf_sel] + VAR_8; VAR_6 = VAR_2-...
[ "static void FUNC_0(Indeo3DecodeContext *VAR_0, Plane *VAR_1, Cell *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "uint8_t *src, *dst;", "VAR_8 = (VAR_2->ypos << 2) * VAR_1->pitch + (VAR_2->xpos << 2);", "dst = VAR_1->pixels[VAR_0->buf_sel] + VAR_8;", "VAR_6 = VAR_2->mv_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 18 ], [ 20 ], [ 24 ], [ 26 ], [ 30 ], [ 34 ], [ 38 ], [ 40 ], [ 42 ], [ 44 ], [ 50 ], [ 52 ], [ 54 ], [ 56 ], [ 58...
6,662
static void h264_h_loop_filter_chroma_c(uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0) { h264_loop_filter_chroma_c(pix, 1, stride, alpha, beta, tc0); }
false
FFmpeg
dd561441b1e849df7d8681c6f32af82d4088dafd
static void h264_h_loop_filter_chroma_c(uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0) { h264_loop_filter_chroma_c(pix, 1, stride, alpha, beta, tc0); }
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int8_t *VAR_4) { h264_loop_filter_chroma_c(VAR_0, 1, VAR_1, VAR_2, VAR_3, VAR_4); }
[ "static void FUNC_0(uint8_t *VAR_0, int VAR_1, int VAR_2, int VAR_3, int8_t *VAR_4)\n{", "h264_loop_filter_chroma_c(VAR_0, 1, VAR_1, VAR_2, VAR_3, VAR_4);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
6,663
static int ram_save_host_page(RAMState *rs, PageSearchStatus *pss, bool last_stage, ram_addr_t dirty_ram_abs) { int tmppages, pages = 0; size_t pagesize = qemu_ram_pagesize(pss->block); do { tmppages = ram_save_target_page(rs, pss,...
true
qemu
06b106889a09277617fc8c542397a9f595ee605a
static int ram_save_host_page(RAMState *rs, PageSearchStatus *pss, bool last_stage, ram_addr_t dirty_ram_abs) { int tmppages, pages = 0; size_t pagesize = qemu_ram_pagesize(pss->block); do { tmppages = ram_save_target_page(rs, pss,...
{ "code": [ " ram_addr_t dirty_ram_abs)", " tmppages = ram_save_target_page(rs, pss, last_stage, dirty_ram_abs);", " dirty_ram_abs += TARGET_PAGE_SIZE;" ], "line_no": [ 5, 17, 31 ] }
static int FUNC_0(RAMState *VAR_0, PageSearchStatus *VAR_1, bool VAR_2, ram_addr_t VAR_3) { int VAR_4, VAR_5 = 0; size_t pagesize = qemu_ram_pagesize(VAR_1->block); do { VAR_4 = ram_save_target_page(VAR_0, VAR_1, VAR_2, VAR_3); ...
[ "static int FUNC_0(RAMState *VAR_0, PageSearchStatus *VAR_1,\nbool VAR_2,\nram_addr_t VAR_3)\n{", "int VAR_4, VAR_5 = 0;", "size_t pagesize = qemu_ram_pagesize(VAR_1->block);", "do {", "VAR_4 = ram_save_target_page(VAR_0, VAR_1, VAR_2, VAR_3);", "if (VAR_4 < 0) {", "return VAR_4;", "}", "VAR_5 += VA...
[ 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39 ], [ 41 ], [ 43 ] ]
6,664
static void gen_check_privilege(DisasContext *dc) { if (dc->cring) { gen_exception_cause(dc, PRIVILEGED_CAUSE); dc->is_jmp = DISAS_UPDATE; } }
true
qemu
97e89ee914411384dcda771d38bf89f13726d71e
static void gen_check_privilege(DisasContext *dc) { if (dc->cring) { gen_exception_cause(dc, PRIVILEGED_CAUSE); dc->is_jmp = DISAS_UPDATE; } }
{ "code": [ "static void gen_check_privilege(DisasContext *dc)" ], "line_no": [ 1 ] }
static void FUNC_0(DisasContext *VAR_0) { if (VAR_0->cring) { gen_exception_cause(VAR_0, PRIVILEGED_CAUSE); VAR_0->is_jmp = DISAS_UPDATE; } }
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "if (VAR_0->cring) {", "gen_exception_cause(VAR_0, PRIVILEGED_CAUSE);", "VAR_0->is_jmp = DISAS_UPDATE;", "}", "}" ]
[ 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
6,665
MigrationState *unix_start_outgoing_migration(Monitor *mon, const char *path, int64_t bandwidth_limit, int detach, int blk, int inc) { FdMigrationState *s; struct sockaddr_un addr; int ret; addr.sun_fam...
true
qemu
40ff6d7e8dceca227e7f8a3e8e0d58b2c66d19b4
MigrationState *unix_start_outgoing_migration(Monitor *mon, const char *path, int64_t bandwidth_limit, int detach, int blk, int inc) { FdMigrationState *s; struct sockaddr_un addr; int ret; addr.sun_fam...
{ "code": [ " s->fd = socket(PF_UNIX, SOCK_STREAM, 0);" ], "line_no": [ 59 ] }
MigrationState *FUNC_0(Monitor *mon, const char *path, int64_t bandwidth_limit, int detach, int blk, int inc) { FdMigrationState *s; struct sockaddr_un VAR_0; int VAR_1; VAR_0.sun_family = AF_UNIX; ...
[ "MigrationState *FUNC_0(Monitor *mon,\nconst char *path,\nint64_t bandwidth_limit,\nint detach,\nint blk,\nint inc)\n{", "FdMigrationState *s;", "struct sockaddr_un VAR_0;", "int VAR_1;", "VAR_0.sun_family = AF_UNIX;", "snprintf(VAR_0.sun_path, sizeof(VAR_0.sun_path), \"%s\", path);", "s = qemu_mallocz(...
[ 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 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [...
6,666
static int fdk_aac_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { FDKAACDecContext *s = avctx->priv_data; AVFrame *frame = data; int ret; AAC_DECODER_ERROR err; UINT valid = avpkt->size; err = aacDecoder_Fill(s->ha...
true
FFmpeg
ca6776a993903dbcfef5ae8a18556c40ecf83e1c
static int fdk_aac_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { FDKAACDecContext *s = avctx->priv_data; AVFrame *frame = data; int ret; AAC_DECODER_ERROR err; UINT valid = avpkt->size; err = aacDecoder_Fill(s->ha...
{ "code": [ " err = aacDecoder_DecodeFrame(s->handle, (INT_PCM *) s->decoder_buffer, s->decoder_buffer_size, 0);" ], "line_no": [ 31 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { FDKAACDecContext *s = VAR_0->priv_data; AVFrame *frame = VAR_1; int VAR_4; AAC_DECODER_ERROR err; UINT valid = VAR_3->size; err = aacDecoder_Fill(s->handle, &VAR_3->VAR_...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "FDKAACDecContext *s = VAR_0->priv_data;", "AVFrame *frame = VAR_1;", "int VAR_4;", "AAC_DECODER_ERROR err;", "UINT valid = VAR_3->size;", "err = aacDecoder_Fill(s->handle, &VAR_3->VAR_1, &VAR_3->size, &valid);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ...
6,667
static void readline_completion(ReadLineState *rs) { Monitor *mon = cur_mon; int len, i, j, max_width, nb_cols, max_prefix; char *cmdline; rs->nb_completions = 0; cmdline = g_malloc(rs->cmd_buf_index + 1); memcpy(cmdline, rs->cmd_buf, rs->cmd_buf_index); cmdline[rs->cmd_buf_index...
true
qemu
fc9fa4bd0a295ac18808c4cd2cfac484bc4649d3
static void readline_completion(ReadLineState *rs) { Monitor *mon = cur_mon; int len, i, j, max_width, nb_cols, max_prefix; char *cmdline; rs->nb_completions = 0; cmdline = g_malloc(rs->cmd_buf_index + 1); memcpy(cmdline, rs->cmd_buf, rs->cmd_buf_index); cmdline[rs->cmd_buf_index...
{ "code": [], "line_no": [] }
static void FUNC_0(ReadLineState *VAR_0) { Monitor *mon = cur_mon; int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6; char *VAR_7; VAR_0->nb_completions = 0; VAR_7 = g_malloc(VAR_0->cmd_buf_index + 1); memcpy(VAR_7, VAR_0->cmd_buf, VAR_0->cmd_buf_index); VAR_7[VAR_0->cmd_buf_index] = ...
[ "static void FUNC_0(ReadLineState *VAR_0)\n{", "Monitor *mon = cur_mon;", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;", "char *VAR_7;", "VAR_0->nb_completions = 0;", "VAR_7 = g_malloc(VAR_0->cmd_buf_index + 1);", "memcpy(VAR_7, VAR_0->cmd_buf, VAR_0->cmd_buf_index);", "VAR_7[VAR_0->cmd_buf_index] =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 46, 48 ], [ 50 ], [ 52 ], [ 54 ...
6,668
static av_cold int png_dec_init(AVCodecContext *avctx) { PNGDecContext *s = avctx->priv_data; s->avctx = avctx; s->previous_picture.f = av_frame_alloc(); s->last_picture.f = av_frame_alloc(); s->picture.f = av_frame_alloc(); if (!s->previous_picture.f || !s->last_picture.f || !s->pictur...
true
FFmpeg
6e9b060e4f0c24d2689bebd7fc03e52d75da25b2
static av_cold int png_dec_init(AVCodecContext *avctx) { PNGDecContext *s = avctx->priv_data; s->avctx = avctx; s->previous_picture.f = av_frame_alloc(); s->last_picture.f = av_frame_alloc(); s->picture.f = av_frame_alloc(); if (!s->previous_picture.f || !s->last_picture.f || !s->pictur...
{ "code": [ " if (!s->previous_picture.f || !s->last_picture.f || !s->picture.f)" ], "line_no": [ 17 ] }
static av_cold int FUNC_0(AVCodecContext *avctx) { PNGDecContext *s = avctx->priv_data; s->avctx = avctx; s->previous_picture.f = av_frame_alloc(); s->last_picture.f = av_frame_alloc(); s->picture.f = av_frame_alloc(); if (!s->previous_picture.f || !s->last_picture.f || !s->picture.f) ...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "PNGDecContext *s = avctx->priv_data;", "s->avctx = avctx;", "s->previous_picture.f = av_frame_alloc();", "s->last_picture.f = av_frame_alloc();", "s->picture.f = av_frame_alloc();", "if (!s->previous_picture.f || !s->last_picture.f || !s->picture.f...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ] ]
6,669
static int tiff_unpack_fax(TiffContext *s, uint8_t *dst, int stride, const uint8_t *src, int size, int width, int lines) { int i, ret = 0; int line; uint8_t *src2 = av_malloc((unsigned)size + AV_INPUT_BUFFER_PADDING_SIZE); if (!src2) { ...
true
FFmpeg
9221445fa001093307864a53f91c1172c239de18
static int tiff_unpack_fax(TiffContext *s, uint8_t *dst, int stride, const uint8_t *src, int size, int width, int lines) { int i, ret = 0; int line; uint8_t *src2 = av_malloc((unsigned)size + AV_INPUT_BUFFER_PADDING_SIZE); if (!src2) { ...
{ "code": [ " uint8_t *src2 = av_malloc((unsigned)size +", " AV_INPUT_BUFFER_PADDING_SIZE);", " av_free(src2);" ], "line_no": [ 11, 13, 57 ] }
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) { int VAR_7, VAR_8 = 0; int VAR_9; uint8_t *src2 = av_malloc((unsigned)VAR_4 + AV_INPUT_BUFFER_PADDING_SIZE); if (!src...
[ "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, int VAR_6)\n{", "int VAR_7, VAR_8 = 0;", "int VAR_9;", "uint8_t *src2 = av_malloc((unsigned)VAR_4 +\nAV_INPUT_BUFFER_PADDING_SIZE);", "if (!src2) {", "av_log(VAR_0->avctx, AV_LOG_ERROR,\n\"Error ...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47, 49 ], [...
6,671
int tlb_set_page_exec(CPUState *env, target_ulong vaddr, target_phys_addr_t paddr, int prot, int is_user, int is_softmmu) { PhysPageDesc *p; unsigned long pd; unsigned int index; target_ulong address; target_phys_addr_t addend; int ret; ...
true
qemu
6658ffb81ee56a510d7d77025872a508a9adce3a
int tlb_set_page_exec(CPUState *env, target_ulong vaddr, target_phys_addr_t paddr, int prot, int is_user, int is_softmmu) { PhysPageDesc *p; unsigned long pd; unsigned int index; target_ulong address; target_phys_addr_t addend; int ret; ...
{ "code": [], "line_no": [] }
int FUNC_0(CPUState *VAR_0, target_ulong VAR_1, target_phys_addr_t VAR_2, int VAR_3, int VAR_4, int VAR_5) { PhysPageDesc *p; unsigned long VAR_6; unsigned int VAR_7; target_ulong address; target_phys_addr_t addend; int VAR_8; CPUTLBEnt...
[ "int FUNC_0(CPUState *VAR_0, target_ulong VAR_1,\ntarget_phys_addr_t VAR_2, int VAR_3,\nint VAR_4, int VAR_5)\n{", "PhysPageDesc *p;", "unsigned long VAR_6;", "unsigned int VAR_7;", "target_ulong address;", "target_phys_addr_t addend;", "int VAR_8;", "CPUTLBEntry *te;", "p = phys_page_find(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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 26 ], [ 28 ], [ 30 ], [ 32 ], [ 34 ], [ 36 ], [ 38, 40, 42 ], [ 44, 48 ], [ 50, 52,...
6,672
static void do_video_out(AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, AVPicture *in_picture, int *frame_size, AVOutputStream *audio_sync) { int nb_frames, i, ret; AVPicture *final_picture...
true
FFmpeg
a686caf03ddd29b32abd1af5c6f887bc09e6d71b
static void do_video_out(AVFormatContext *s, AVOutputStream *ost, AVInputStream *ist, AVPicture *in_picture, int *frame_size, AVOutputStream *audio_sync) { int nb_frames, i, ret; AVPicture *final_picture...
{ "code": [ " if (enc->pix_fmt != dec->pix_fmt) {", " if (img_convert(formatted_picture, enc->pix_fmt, " ], "line_no": [ 159, 181 ] }
static void FUNC_0(AVFormatContext *VAR_0, AVOutputStream *VAR_1, AVInputStream *VAR_2, AVPicture *VAR_3, int *VAR_4, AVOutputStream *VAR_5) { int VAR_6, VAR_7, VAR_8; AVPicture *final_picture, *formatte...
[ "static void FUNC_0(AVFormatContext *VAR_0,\nAVOutputStream *VAR_1,\nAVInputStream *VAR_2,\nAVPicture *VAR_3,\nint *VAR_4, AVOutputStream *VAR_5)\n{", "int VAR_6, VAR_7, VAR_8;", "AVPicture *final_picture, *formatted_picture;", "AVPicture picture_format_temp, picture_crop_temp;", "static uint8_t *VAR_9;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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 ], [ 27, 31 ], [ 33 ], [ 39 ], [ 43 ], [ 53 ], [ 57 ], [ 61, 63 ], [ 67, 69 ], [ 73 ], [...
6,675
static int read_seek(AVFormatContext *s, int stream_index, int64_t pts, int flags) { NUTContext *nut = s->priv_data; AVStream *st = s->streams[stream_index]; Syncpoint dummy = { .ts = pts * av_q2d(st->time_base) * AV_TIME_BASE }; Syncpoint nopts_sp = { .ts = AV_NOP...
true
FFmpeg
60ec3007e69ce8c5ae540c81b0bd21c1ebe1543a
static int read_seek(AVFormatContext *s, int stream_index, int64_t pts, int flags) { NUTContext *nut = s->priv_data; AVStream *st = s->streams[stream_index]; Syncpoint dummy = { .ts = pts * av_q2d(st->time_base) * AV_TIME_BASE }; Syncpoint nopts_sp = { .ts = AV_NOP...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, int64_t VAR_2, int VAR_3) { NUTContext *nut = VAR_0->priv_data; AVStream *st = VAR_0->streams[VAR_1]; Syncpoint dummy = { .ts = VAR_2 * av_q2d(st->time_base) * AV_TIME_BASE }; Syncpoint nopts_sp = { .ts = AV_NOPT...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,\nint64_t VAR_2, int VAR_3)\n{", "NUTContext *nut = VAR_0->priv_data;", "AVStream *st = VAR_0->streams[VAR_1];", "Syncpoint dummy = { .ts = VAR_2 * av_q2d(st->time_base) * AV_TIME_BASE };", "Syncpoint nopts_sp = { .ts = AV_NOPTS_VALUE, .back_p...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [...
6,676
static QList *get_cpus(QDict **resp) { *resp = qmp("{ 'execute': 'query-cpus' }"); g_assert(*resp); g_assert(qdict_haskey(*resp, "return")); return qdict_get_qlist(*resp, "return"); }
true
qemu
5e39d89d20b17cf6fb7f09d181d34f17b2ae2160
static QList *get_cpus(QDict **resp) { *resp = qmp("{ 'execute': 'query-cpus' }"); g_assert(*resp); g_assert(qdict_haskey(*resp, "return")); return qdict_get_qlist(*resp, "return"); }
{ "code": [ " return qdict_get_qlist(*resp, \"return\");" ], "line_no": [ 11 ] }
static QList *FUNC_0(QDict **resp) { *resp = qmp("{ 'execute': 'query-cpus' }"); g_assert(*resp); g_assert(qdict_haskey(*resp, "return")); return qdict_get_qlist(*resp, "return"); }
[ "static QList *FUNC_0(QDict **resp)\n{", "*resp = qmp(\"{ 'execute': 'query-cpus' }\");", "g_assert(*resp);", "g_assert(qdict_haskey(*resp, \"return\"));", "return qdict_get_qlist(*resp, \"return\");", "}" ]
[ 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
6,677
QemuOptsList *qemu_opts_append(QemuOptsList *dst, QemuOptsList *list) { size_t num_opts, num_dst_opts; QemuOptDesc *desc; bool need_init = false; if (!list) { return dst; } /* If dst is NULL, after realloc, some area of dst should be initialize...
true
qemu
a760715095e9cda6eb97486c040aa35f82297945
QemuOptsList *qemu_opts_append(QemuOptsList *dst, QemuOptsList *list) { size_t num_opts, num_dst_opts; QemuOptDesc *desc; bool need_init = false; if (!list) { return dst; } if (!dst) { need_init = true; } num_opts...
{ "code": [ " QTAILQ_INIT(&dst->head);" ], "line_no": [ 53 ] }
QemuOptsList *FUNC_0(QemuOptsList *dst, QemuOptsList *list) { size_t num_opts, num_dst_opts; QemuOptDesc *desc; bool need_init = false; if (!list) { return dst; } if (!dst) { need_init = true; } num_opts = count_o...
[ "QemuOptsList *FUNC_0(QemuOptsList *dst,\nQemuOptsList *list)\n{", "size_t num_opts, num_dst_opts;", "QemuOptDesc *desc;", "bool need_init = false;", "if (!list) {", "return dst;", "}", "if (!dst) {", "need_init = true;", "}", "num_opts = count_opts_list(dst);", "num_dst_opts = num_opts;", "...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
6,678
static void vnc_dpy_setdata(DisplayChangeListener *dcl, DisplayState *ds) { VncDisplay *vd = ds->opaque; qemu_pixman_image_unref(vd->guest.fb); vd->guest.fb = pixman_image_ref(ds->surface->image); vd->guest.format = ds->surface->format; vnc_dpy_update(dcl, ds, 0,...
true
qemu
21ef45d71221b4577330fe3aacfb06afad91ad46
static void vnc_dpy_setdata(DisplayChangeListener *dcl, DisplayState *ds) { VncDisplay *vd = ds->opaque; qemu_pixman_image_unref(vd->guest.fb); vd->guest.fb = pixman_image_ref(ds->surface->image); vd->guest.format = ds->surface->format; vnc_dpy_update(dcl, ds, 0,...
{ "code": [ " VncDisplay *vd = ds->opaque;", " VncDisplay *vd = ds->opaque;", " VncDisplay *vd = ds->opaque;", " VncDisplay *vd = ds->opaque;" ], "line_no": [ 7, 7, 7, 7 ] }
static void FUNC_0(DisplayChangeListener *VAR_0, DisplayState *VAR_1) { VncDisplay *vd = VAR_1->opaque; qemu_pixman_image_unref(vd->guest.fb); vd->guest.fb = pixman_image_ref(VAR_1->surface->image); vd->guest.format = VAR_1->surface->format; vnc_dpy_update(VAR_0,...
[ "static void FUNC_0(DisplayChangeListener *VAR_0,\nDisplayState *VAR_1)\n{", "VncDisplay *vd = VAR_1->opaque;", "qemu_pixman_image_unref(vd->guest.fb);", "vd->guest.fb = pixman_image_ref(VAR_1->surface->image);", "vd->guest.format = VAR_1->surface->format;", "vnc_dpy_update(VAR_0, VAR_1, 0, 0, ds_get_widt...
[ 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
6,680
static inline int cris_addc(int a, const int b) { asm ("addc\t%1, %0\n" : "+r" (a) : "r" (b)); return a; }
true
qemu
21ce148c7ec71ee32834061355a5ecfd1a11f90f
static inline int cris_addc(int a, const int b) { asm ("addc\t%1, %0\n" : "+r" (a) : "r" (b)); return a; }
{ "code": [ "static inline int cris_addc(int a, const int b)" ], "line_no": [ 1 ] }
static inline int FUNC_0(int VAR_0, const int VAR_1) { asm ("addc\t%1, %0\n" : "+r" (VAR_0) : "r" (VAR_1)); return VAR_0; }
[ "static inline int FUNC_0(int VAR_0, const int VAR_1)\n{", "asm (\"addc\\t%1, %0\\n\" : \"+r\" (VAR_0) : \"r\" (VAR_1));", "return VAR_0;", "}" ]
[ 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
6,681
void acpi_setup(PcGuestInfo *guest_info) { AcpiBuildTables tables; AcpiBuildState *build_state; if (!guest_info->fw_cfg) { ACPI_BUILD_DPRINTF("No fw cfg. Bailing out.\n"); return; } if (!guest_info->has_acpi_build) { ACPI_BUILD_DPRINTF("ACPI build disabled. Baili...
true
qemu
d70414a5788c3d51f8ce4d2f437e669e6b99dc59
void acpi_setup(PcGuestInfo *guest_info) { AcpiBuildTables tables; AcpiBuildState *build_state; if (!guest_info->fw_cfg) { ACPI_BUILD_DPRINTF("No fw cfg. Bailing out.\n"); return; } if (!guest_info->has_acpi_build) { ACPI_BUILD_DPRINTF("ACPI build disabled. Baili...
{ "code": [ " fw_cfg_add_file(guest_info->fw_cfg, ACPI_BUILD_RSDP_FILE,", " tables.rsdp->data, acpi_data_len(tables.rsdp));" ], "line_no": [ 91, 93 ] }
void FUNC_0(PcGuestInfo *VAR_0) { AcpiBuildTables tables; AcpiBuildState *build_state; if (!VAR_0->fw_cfg) { ACPI_BUILD_DPRINTF("No fw cfg. Bailing out.\n"); return; } if (!VAR_0->has_acpi_build) { ACPI_BUILD_DPRINTF("ACPI build disabled. Bailing out.\n"); ...
[ "void FUNC_0(PcGuestInfo *VAR_0)\n{", "AcpiBuildTables tables;", "AcpiBuildState *build_state;", "if (!VAR_0->fw_cfg) {", "ACPI_BUILD_DPRINTF(\"No fw cfg. Bailing out.\\n\");", "return;", "}", "if (!VAR_0->has_acpi_build) {", "ACPI_BUILD_DPRINTF(\"ACPI build disabled. Bailing out.\\n\");", "return...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 49 ], [ 53 ], [ 55...
6,683
static void reset_used_window(DisasContext *dc) { dc->used_window = 0; }
true
qemu
2db59a76c421cdd1039d10e32a9798952d3ff5ba
static void reset_used_window(DisasContext *dc) { dc->used_window = 0; }
{ "code": [ "static void reset_used_window(DisasContext *dc)", " dc->used_window = 0;" ], "line_no": [ 1, 5 ] }
static void FUNC_0(DisasContext *VAR_0) { VAR_0->used_window = 0; }
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "VAR_0->used_window = 0;", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
6,684
static int decode_block(MJpegDecodeContext *s, int16_t *block, int component, int dc_index, int ac_index, uint16_t *quant_matrix) { int code, i, j, level, val; /* DC coef */ val = mjpeg_decode_dc(s, dc_index); if (val == 0xfffff) { av_log(s->avctx, AV_LOG_ERROR, ...
true
FFmpeg
c28f648b19dd36ff9bc869ad527a1569a0b623e2
static int decode_block(MJpegDecodeContext *s, int16_t *block, int component, int dc_index, int ac_index, uint16_t *quant_matrix) { int code, i, j, level, val; val = mjpeg_decode_dc(s, dc_index); if (val == 0xfffff) { av_log(s->avctx, AV_LOG_ERROR, "error dc\n")...
{ "code": [ " val = FFMIN(val, 32767);" ], "line_no": [ 25 ] }
static int FUNC_0(MJpegDecodeContext *VAR_0, int16_t *VAR_1, int VAR_2, int VAR_3, int VAR_4, uint16_t *VAR_5) { int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; VAR_10 = mjpeg_decode_dc(VAR_0, VAR_3); if (VAR_10 == 0xfffff) { av_log(VAR_0->avctx, AV_LOG_ERROR, "error dc...
[ "static int FUNC_0(MJpegDecodeContext *VAR_0, int16_t *VAR_1, int VAR_2,\nint VAR_3, int VAR_4, uint16_t *VAR_5)\n{", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "VAR_10 = mjpeg_decode_dc(VAR_0, VAR_3);", "if (VAR_10 == 0xfffff) {", "av_log(VAR_0->avctx, AV_LOG_ERROR, \"error dc\\n\");", "return AVERROR_IN...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], ...
6,687
static int usb_host_scan(void *opaque, USBScanFunc *func) { FILE *f = 0; DIR *dir = 0; int ret = 0; const char *devices = "/devices"; const char *opened = "husb: opened %s%s\n"; const char *fs_type[] = {"unknown", "proc", "dev", "sys"}; char devpath[PATH_MAX]; /* only check th...
true
qemu
f16a0db323e1a8c0044696815cceeb98706f2243
static int usb_host_scan(void *opaque, USBScanFunc *func) { FILE *f = 0; DIR *dir = 0; int ret = 0; const char *devices = "/devices"; const char *opened = "husb: opened %s%s\n"; const char *fs_type[] = {"unknown", "proc", "dev", "sys"}; char devpath[PATH_MAX]; if (!usb_f...
{ "code": [ " if (!usb_fs_type && f) {", " if (!usb_fs_type && dir) {", " goto the_end;", " goto the_end;", " the_end:" ], "line_no": [ 45, 61, 79, 79, 127 ] }
static int FUNC_0(void *VAR_0, USBScanFunc *VAR_1) { FILE *f = 0; DIR *dir = 0; int VAR_2 = 0; const char *VAR_3 = "/VAR_3"; const char *VAR_4 = "husb: VAR_4 %s%s\n"; const char *VAR_5[] = {"unknown", "proc", "dev", "sys"}; char VAR_6[PATH_MAX]; if (!usb_fs_type) { ...
[ "static int FUNC_0(void *VAR_0, USBScanFunc *VAR_1)\n{", "FILE *f = 0;", "DIR *dir = 0;", "int VAR_2 = 0;", "const char *VAR_3 = \"/VAR_3\";", "const char *VAR_4 = \"husb: VAR_4 %s%s\\n\";", "const char *VAR_5[] = {\"unknown\", \"proc\", \"dev\", \"sys\"};", "char VAR_6[PATH_MAX];", "if (!usb_fs_typ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ...
6,688
static void convert_matrix(DSPContext *dsp, int (*qmat)[64], uint16_t (*qmat16)[2][64], const uint16_t *quant_matrix, int bias, int qmin, int qmax, int intra) { int qscale; int shift=0; for(qscale=qmin; qscale<=qmax; qscale++){ int i; if (dsp->fdct == ff_j...
true
FFmpeg
3c9ec07ef2f7a761bf0418b4d806b50ef57c41f3
static void convert_matrix(DSPContext *dsp, int (*qmat)[64], uint16_t (*qmat16)[2][64], const uint16_t *quant_matrix, int bias, int qmin, int qmax, int intra) { int qscale; int shift=0; for(qscale=qmin; qscale<=qmax; qscale++){ int i; if (dsp->fdct == ff_j...
{ "code": [ " while(((8191LL * qmat[qscale][i]) >> shift) > INT_MAX){ " ], "line_no": [ 113 ] }
static void FUNC_0(DSPContext *VAR_0, int (*VAR_1)[64], VAR_2 (*qmat16)[2][64], const VAR_2 *VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { int VAR_8; int VAR_9=0; for(VAR_8=VAR_5; VAR_8<=VAR_6; VAR_8++){ int VAR_10; if (VAR_0->fdct == ff_jpeg_fdct_i...
[ "static void FUNC_0(DSPContext *VAR_0, int (*VAR_1)[64], VAR_2 (*qmat16)[2][64],\nconst VAR_2 *VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7)\n{", "int VAR_8;", "int VAR_9=0;", "for(VAR_8=VAR_5; VAR_8<=VAR_6; VAR_8++){", "int VAR_10;", "if (VAR_0->fdct == ff_jpeg_fdct_islow\n#ifdef FAAN_POSTSCALE\n|| ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19, 21, 23, 25 ], [ 27 ], [ 29 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49, 51, 53, 55 ], [ 57 ], [ 59 ], [ 71, 73 ...
6,689
static int process_frame_obj(SANMVideoContext *ctx) { uint16_t codec, top, left, w, h; codec = bytestream2_get_le16u(&ctx->gb); left = bytestream2_get_le16u(&ctx->gb); top = bytestream2_get_le16u(&ctx->gb); w = bytestream2_get_le16u(&ctx->gb); h = bytestream2_get_le16u(&ctx->gb); ...
true
FFmpeg
9dd04f6d8cdd1c10c28b2cb4252c1a41df581915
static int process_frame_obj(SANMVideoContext *ctx) { uint16_t codec, top, left, w, h; codec = bytestream2_get_le16u(&ctx->gb); left = bytestream2_get_le16u(&ctx->gb); top = bytestream2_get_le16u(&ctx->gb); w = bytestream2_get_le16u(&ctx->gb); h = bytestream2_get_le16u(&ctx->gb); ...
{ "code": [], "line_no": [] }
static int FUNC_0(SANMVideoContext *VAR_0) { uint16_t codec, top, left, w, h; codec = bytestream2_get_le16u(&VAR_0->gb); left = bytestream2_get_le16u(&VAR_0->gb); top = bytestream2_get_le16u(&VAR_0->gb); w = bytestream2_get_le16u(&VAR_0->gb); h = bytestream2_get_le16u(&VAR_0->gb); ...
[ "static int FUNC_0(SANMVideoContext *VAR_0)\n{", "uint16_t codec, top, left, w, h;", "codec = bytestream2_get_le16u(&VAR_0->gb);", "left = bytestream2_get_le16u(&VAR_0->gb);", "top = bytestream2_get_le16u(&VAR_0->gb);", "w = bytestream2_get_le16u(&VAR_0->gb);", "h = bytestream2_get_le16u(&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 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10, 11, 12, 13 ], [ 14, 15 ], [ 16 ], [ 17 ], [ 18 ], [ 19 ], [ 20 ], [ 21 ], [ 22, 23, 24 ],...
6,690
static int tgq_decode_mb(TgqContext *s, AVFrame *frame, int mb_y, int mb_x) { int mode; int i; int8_t dc[6]; mode = bytestream2_get_byte(&s->gb); if (mode > 12) { GetBitContext gb; init_get_bits8(&gb, s->gb.buffer, FFMIN(bytestream2_get_bytes_left(&s->gb), mode)); ...
true
FFmpeg
c447ab0e746c6b4d8d703a55190ae7444199e502
static int tgq_decode_mb(TgqContext *s, AVFrame *frame, int mb_y, int mb_x) { int mode; int i; int8_t dc[6]; mode = bytestream2_get_byte(&s->gb); if (mode > 12) { GetBitContext gb; init_get_bits8(&gb, s->gb.buffer, FFMIN(bytestream2_get_bytes_left(&s->gb), mode)); ...
{ "code": [ " init_get_bits8(&gb, s->gb.buffer, FFMIN(bytestream2_get_bytes_left(&s->gb), mode));" ], "line_no": [ 19 ] }
static int FUNC_0(TgqContext *VAR_0, AVFrame *VAR_1, int VAR_2, int VAR_3) { int VAR_4; int VAR_5; int8_t dc[6]; VAR_4 = bytestream2_get_byte(&VAR_0->gb); if (VAR_4 > 12) { GetBitContext gb; init_get_bits8(&gb, VAR_0->gb.buffer, FFMIN(bytestream2_get_bytes_left(&VAR_0->gb),...
[ "static int FUNC_0(TgqContext *VAR_0, AVFrame *VAR_1, int VAR_2, int VAR_3)\n{", "int VAR_4;", "int VAR_5;", "int8_t dc[6];", "VAR_4 = bytestream2_get_byte(&VAR_0->gb);", "if (VAR_4 > 12) {", "GetBitContext gb;", "init_get_bits8(&gb, VAR_0->gb.buffer, FFMIN(bytestream2_get_bytes_left(&VAR_0->gb), VAR_...
[ 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 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
6,691
static void stream_component_close(VideoState *is, int stream_index) { AVFormatContext *ic = is->ic; AVCodecContext *avctx; if (stream_index < 0 || stream_index >= ic->nb_streams) return; avctx = ic->streams[stream_index]->codec; switch(avctx->codec_type) { case AVMEDIA_TYPE_...
true
FFmpeg
f9324d5adda6147b3faad5970b6d88263397c76b
static void stream_component_close(VideoState *is, int stream_index) { AVFormatContext *ic = is->ic; AVCodecContext *avctx; if (stream_index < 0 || stream_index >= ic->nb_streams) return; avctx = ic->streams[stream_index]->codec; switch(avctx->codec_type) { case AVMEDIA_TYPE_...
{ "code": [], "line_no": [] }
static void FUNC_0(VideoState *VAR_0, int VAR_1) { AVFormatContext *ic = VAR_0->ic; AVCodecContext *avctx; if (VAR_1 < 0 || VAR_1 >= ic->nb_streams) return; avctx = ic->streams[VAR_1]->codec; switch(avctx->codec_type) { case AVMEDIA_TYPE_AUDIO: packet_queue_abort(&VA...
[ "static void FUNC_0(VideoState *VAR_0, int VAR_1)\n{", "AVFormatContext *ic = VAR_0->ic;", "AVCodecContext *avctx;", "if (VAR_1 < 0 || VAR_1 >= ic->nb_streams)\nreturn;", "avctx = ic->streams[VAR_1]->codec;", "switch(avctx->codec_type) {", "case AVMEDIA_TYPE_AUDIO:\npacket_queue_abort(&VAR_0->audioq);",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55, 57...
6,692
void address_space_unmap(AddressSpace *as, void *buffer, hwaddr len, int is_write, hwaddr access_len) { if (buffer != bounce.buffer) { if (is_write) { ram_addr_t addr1 = qemu_ram_addr_from_host_nofail(buffer); while (access_len) { unsig...
true
qemu
7443b43758ba5eeca8f81ca15fe9fced8983be26
void address_space_unmap(AddressSpace *as, void *buffer, hwaddr len, int is_write, hwaddr access_len) { if (buffer != bounce.buffer) { if (is_write) { ram_addr_t addr1 = qemu_ram_addr_from_host_nofail(buffer); while (access_len) { unsig...
{ "code": [ " ram_addr_t addr1 = qemu_ram_addr_from_host_nofail(buffer);" ], "line_no": [ 11 ] }
void FUNC_0(AddressSpace *VAR_0, void *VAR_1, hwaddr VAR_2, int VAR_3, hwaddr VAR_4) { if (VAR_1 != bounce.VAR_1) { if (VAR_3) { ram_addr_t addr1 = qemu_ram_addr_from_host_nofail(VAR_1); while (VAR_4) { unsigned VAR_5; ...
[ "void FUNC_0(AddressSpace *VAR_0, void *VAR_1, hwaddr VAR_2,\nint VAR_3, hwaddr VAR_4)\n{", "if (VAR_1 != bounce.VAR_1) {", "if (VAR_3) {", "ram_addr_t addr1 = qemu_ram_addr_from_host_nofail(VAR_1);", "while (VAR_4) {", "unsigned VAR_5;", "VAR_5 = TARGET_PAGE_SIZE;", "if (VAR_5 > VAR_4)\nVAR_5 = VAR_4...
[ 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ...
6,693
static inline void idct4col_put(uint8_t *dest, int line_size, const int16_t *col) { int c0, c1, c2, c3, a0, a1, a2, a3; a0 = col[8*0]; a1 = col[8*2]; a2 = col[8*4]; a3 = col[8*6]; c0 = ((a0 + a2) << (CN_SHIFT - 1)) + (1 << (C_SHIFT - 1)); c2 = ((a0 - a2) << (CN_SHIFT - 1)) + (1 << ...
true
FFmpeg
28dc6e729137ba7927f46ba15c337417b8708fe8
static inline void idct4col_put(uint8_t *dest, int line_size, const int16_t *col) { int c0, c1, c2, c3, a0, a1, a2, a3; a0 = col[8*0]; a1 = col[8*2]; a2 = col[8*4]; a3 = col[8*6]; c0 = ((a0 + a2) << (CN_SHIFT - 1)) + (1 << (C_SHIFT - 1)); c2 = ((a0 - a2) << (CN_SHIFT - 1)) + (1 << ...
{ "code": [ " c0 = ((a0 + a2) << (CN_SHIFT - 1)) + (1 << (C_SHIFT - 1));", " c2 = ((a0 - a2) << (CN_SHIFT - 1)) + (1 << (C_SHIFT - 1));" ], "line_no": [ 17, 19 ] }
static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, const int16_t *VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; VAR_7 = VAR_2[8*0]; VAR_8 = VAR_2[8*2]; VAR_9 = VAR_2[8*4]; VAR_10 = VAR_2[8*6]; VAR_3 = ((VAR_7 + VAR_9) << (CN_SHIFT - 1)) + (1 << (C_SHIFT - 1)); ...
[ "static inline void FUNC_0(uint8_t *VAR_0, int VAR_1, const int16_t *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "VAR_7 = VAR_2[8*0];", "VAR_8 = VAR_2[8*2];", "VAR_9 = VAR_2[8*4];", "VAR_10 = VAR_2[8*6];", "VAR_3 = ((VAR_7 + VAR_9) << (CN_SHIFT - 1)) + (1 << (C_SHIFT - 1)...
[ 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ] ]
6,694
int mmubooke_get_physical_address (CPUState *env, mmu_ctx_t *ctx, target_ulong address, int rw, int access_type) { ppcemb_tlb_t *tlb; target_phys_addr_t raddr; int i, prot, ret; ret = -1; raddr = -1; for (i = 0; i <...
true
qemu
6f2d8978728c48ca46f5c01835438508aace5c64
int mmubooke_get_physical_address (CPUState *env, mmu_ctx_t *ctx, target_ulong address, int rw, int access_type) { ppcemb_tlb_t *tlb; target_phys_addr_t raddr; int i, prot, ret; ret = -1; raddr = -1; for (i = 0; i <...
{ "code": [ " raddr = -1;", " raddr = -1;" ], "line_no": [ 19, 19 ] }
int FUNC_0 (CPUState *VAR_0, mmu_ctx_t *VAR_1, target_ulong VAR_2, int VAR_3, int VAR_4) { ppcemb_tlb_t *tlb; target_phys_addr_t raddr; int VAR_5, VAR_6, VAR_7; VAR_7 = -1; raddr = -1; for (VAR_5 = 0; VAR_5 < VAR_0-...
[ "int FUNC_0 (CPUState *VAR_0, mmu_ctx_t *VAR_1,\ntarget_ulong VAR_2, int VAR_3,\nint VAR_4)\n{", "ppcemb_tlb_t *tlb;", "target_phys_addr_t raddr;", "int VAR_5, VAR_6, VAR_7;", "VAR_7 = -1;", "raddr = -1;", "for (VAR_5 = 0; VAR_5 < VAR_0->nb_tlb; VAR_5++) {", "tlb = &VAR_0->tlb[VAR_5].tlbe;", "if (pp...
[ 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [...
6,695
void fifo_realloc(FifoBuffer *f, int new_size){ int old_size= f->end - f->buffer; if(old_size < new_size){ uint8_t *old= f->buffer; f->buffer= av_realloc(f->buffer, new_size); f->rptr += f->buffer - old; f->wptr += f->buffer - old; if(f->wptr < f->rptr)...
true
FFmpeg
568e18b15e2ddf494fd8926707d34ca08c8edce5
void fifo_realloc(FifoBuffer *f, int new_size){ int old_size= f->end - f->buffer; if(old_size < new_size){ uint8_t *old= f->buffer; f->buffer= av_realloc(f->buffer, new_size); f->rptr += f->buffer - old; f->wptr += f->buffer - old; if(f->wptr < f->rptr)...
{ "code": [ "void fifo_realloc(FifoBuffer *f, int new_size){", " int old_size= f->end - f->buffer;" ], "line_no": [ 1, 3 ] }
void FUNC_0(FifoBuffer *VAR_0, int VAR_1){ int VAR_2= VAR_0->end - VAR_0->buffer; if(VAR_2 < VAR_1){ uint8_t *old= VAR_0->buffer; VAR_0->buffer= av_realloc(VAR_0->buffer, VAR_1); VAR_0->rptr += VAR_0->buffer - old; VAR_0->wptr += VAR_0->buffer - old; if...
[ "void FUNC_0(FifoBuffer *VAR_0, int VAR_1){", "int VAR_2= VAR_0->end - VAR_0->buffer;", "if(VAR_2 < VAR_1){", "uint8_t *old= VAR_0->buffer;", "VAR_0->buffer= av_realloc(VAR_0->buffer, VAR_1);", "VAR_0->rptr += VAR_0->buffer - old;", "VAR_0->wptr += VAR_0->buffer - old;", "if(VAR_0->wptr < VAR_0->rptr)...
[ 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
6,696
FFAMediaCodec* ff_AMediaCodec_createDecoderByType(const char *mime) { JNIEnv *env = NULL; FFAMediaCodec *codec = NULL; jstring mime_type = NULL; codec = av_mallocz(sizeof(FFAMediaCodec)); if (!codec) { return NULL; } codec->class = &amediacodec_class; env = ff_jni_g...
true
FFmpeg
1795dccde0ad22fc8201142f92fb8d58c234f3e4
FFAMediaCodec* ff_AMediaCodec_createDecoderByType(const char *mime) { JNIEnv *env = NULL; FFAMediaCodec *codec = NULL; jstring mime_type = NULL; codec = av_mallocz(sizeof(FFAMediaCodec)); if (!codec) { return NULL; } codec->class = &amediacodec_class; env = ff_jni_g...
{ "code": [ " codec->object = (*env)->NewGlobalRef(env, codec->object);", " return codec;", " ff_jni_reset_jfields(env, &codec->jfields, jni_amediacodec_mapping, 1, codec);", " av_freep(&codec);", " return NULL;", " codec->object = (*env)->CallStaticObjectMethod(env, codec->j...
FFAMediaCodec* FUNC_0(const char *mime) { JNIEnv *env = NULL; FFAMediaCodec *codec = NULL; jstring mime_type = NULL; codec = av_mallocz(sizeof(FFAMediaCodec)); if (!codec) { return NULL; } codec->class = &amediacodec_class; env = ff_jni_get_env(codec); if (!env...
[ "FFAMediaCodec* FUNC_0(const char *mime)\n{", "JNIEnv *env = NULL;", "FFAMediaCodec *codec = NULL;", "jstring mime_type = NULL;", "codec = av_mallocz(sizeof(FFAMediaCodec));", "if (!codec) {", "return NULL;", "}", "codec->class = &amediacodec_class;", "env = ff_jni_get_env(codec);", "if (!env) {...
[ 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ...
6,698
int vnc_tls_validate_certificate(VncState *vs) { int ret; unsigned int status; const gnutls_datum_t *certs; unsigned int nCerts, i; time_t now; VNC_DEBUG("Validating client certificate\n"); if ((ret = gnutls_certificate_verify_peers2 (vs->tls.session, &status)) < 0) { VNC_...
true
qemu
3e305e4a4752f70c0b5c3cf5b43ec957881714f7
int vnc_tls_validate_certificate(VncState *vs) { int ret; unsigned int status; const gnutls_datum_t *certs; unsigned int nCerts, i; time_t now; VNC_DEBUG("Validating client certificate\n"); if ((ret = gnutls_certificate_verify_peers2 (vs->tls.session, &status)) < 0) { VNC_...
{ "code": [ " int ret;", " return -1;", " int ret;", " return -1;", " int ret;", " return -1;", " int ret;", " int ret;", "int vnc_tls_validate_certificate(VncState *vs)", " int ret;", " unsigned int status;", " const gnu...
int FUNC_0(VncState *VAR_0) { int VAR_1; unsigned int VAR_2; const gnutls_datum_t *VAR_3; unsigned int VAR_4, VAR_5; time_t now; VNC_DEBUG("Validating client certificate\n"); if ((VAR_1 = gnutls_certificate_verify_peers2 (VAR_0->tls.session, &VAR_2)) < 0) { VNC_DEBUG("Veri...
[ "int FUNC_0(VncState *VAR_0)\n{", "int VAR_1;", "unsigned int VAR_2;", "const gnutls_datum_t *VAR_3;", "unsigned int VAR_4, VAR_5;", "time_t now;", "VNC_DEBUG(\"Validating client certificate\\n\");", "if ((VAR_1 = gnutls_certificate_verify_peers2 (VAR_0->tls.session, &VAR_2)) < 0) {", "VNC_DEBUG(\"V...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41 ], [ 45, 47 ], [ 51, 53 ], [...
6,700
static void vc1_interp_mc(VC1Context *v) { MpegEncContext *s = &v->s; H264ChromaContext *h264chroma = &v->h264chroma; uint8_t *srcY, *srcU, *srcV; int dxy, mx, my, uvmx, uvmy, src_x, src_y, uvsrc_x, uvsrc_y; int off, off_uv; int v_edge_pos = s->v_edge_pos >> v->field_mode; int use_ic...
true
FFmpeg
f6774f905fb3cfdc319523ac640be30b14c1bc55
static void vc1_interp_mc(VC1Context *v) { MpegEncContext *s = &v->s; H264ChromaContext *h264chroma = &v->h264chroma; uint8_t *srcY, *srcU, *srcV; int dxy, mx, my, uvmx, uvmy, src_x, src_y, uvsrc_x, uvsrc_y; int off, off_uv; int v_edge_pos = s->v_edge_pos >> v->field_mode; int use_ic...
{ "code": [ " srcY += s->current_picture_ptr->f.linesize[0];", " srcU += s->current_picture_ptr->f.linesize[1];", " srcV += s->current_picture_ptr->f.linesize[2];", " srcY += s->current_picture_ptr->f.linesize[0];", " if (!v->field_mode && !v->s.next_picture.f.data[0...
static void FUNC_0(VC1Context *VAR_0) { MpegEncContext *s = &VAR_0->s; H264ChromaContext *h264chroma = &VAR_0->h264chroma; uint8_t *srcY, *srcU, *srcV; int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; int VAR_10, VAR_11; int VAR_12 = s->VAR_12 >> VAR_0->field_mode; ...
[ "static void FUNC_0(VC1Context *VAR_0)\n{", "MpegEncContext *s = &VAR_0->s;", "H264ChromaContext *h264chroma = &VAR_0->h264chroma;", "uint8_t *srcY, *srcU, *srcV;", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "int VAR_10, VAR_11;", "int VAR_12 = s->VAR_12 >> VAR_0->field_mode;"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
6,701
static int virtio_blk_handle_rw_error(VirtIOBlockReq *req, int error, bool is_read) { BlockErrorAction action = blk_get_error_action(req->dev->blk, is_read, error); VirtIOBlock *s = req->dev; if (action == BLOCK_ERROR_ACTION_STOP) { req...
true
qemu
01762e03222154fef6d98087ce391aed8a157be5
static int virtio_blk_handle_rw_error(VirtIOBlockReq *req, int error, bool is_read) { BlockErrorAction action = blk_get_error_action(req->dev->blk, is_read, error); VirtIOBlock *s = req->dev; if (action == BLOCK_ERROR_ACTION_STOP) { req...
{ "code": [ " block_acct_done(blk_get_stats(s->blk), &req->acct);" ], "line_no": [ 25 ] }
static int FUNC_0(VirtIOBlockReq *VAR_0, int VAR_1, bool VAR_2) { BlockErrorAction action = blk_get_error_action(VAR_0->dev->blk, VAR_2, VAR_1); VirtIOBlock *s = VAR_0->dev; if (action == BLOCK_ERROR_ACTION_STOP) { VAR_0->next = s->rq; ...
[ "static int FUNC_0(VirtIOBlockReq *VAR_0, int VAR_1,\nbool VAR_2)\n{", "BlockErrorAction action = blk_get_error_action(VAR_0->dev->blk,\nVAR_2, VAR_1);", "VirtIOBlock *s = VAR_0->dev;", "if (action == BLOCK_ERROR_ACTION_STOP) {", "VAR_0->next = s->rq;", "s->rq = VAR_0;", "} else if (action == BLOCK_ERRO...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ] ]
6,702
static int dnxhd_decode_header(DNXHDContext *ctx, const uint8_t *buf, int buf_size, int first_field) { static const uint8_t header_prefix[] = { 0x00, 0x00, 0x02, 0x80, 0x01 }; int i, cid; if (buf_size < 0x280) return -1; if (memcmp(buf, header_prefix, 5)) { av_log(ctx->avctx, ...
true
FFmpeg
4a2da83a787b24c4027aa963d9db9b453e91f413
static int dnxhd_decode_header(DNXHDContext *ctx, const uint8_t *buf, int buf_size, int first_field) { static const uint8_t header_prefix[] = { 0x00, 0x00, 0x02, 0x80, 0x01 }; int i, cid; if (buf_size < 0x280) return -1; if (memcmp(buf, header_prefix, 5)) { av_log(ctx->avctx, ...
{ "code": [ " if (buf_size < ctx->mb_scan_index[i] + 0x280) {" ], "line_no": [ 141 ] }
static int FUNC_0(DNXHDContext *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3) { static const uint8_t VAR_4[] = { 0x00, 0x00, 0x02, 0x80, 0x01 }; int VAR_5, VAR_6; if (VAR_2 < 0x280) return -1; if (memcmp(VAR_1, VAR_4, 5)) { av_log(VAR_0->avctx, AV_LOG_ERROR, "error in hea...
[ "static int FUNC_0(DNXHDContext *VAR_0, const uint8_t *VAR_1, int VAR_2, int VAR_3)\n{", "static const uint8_t VAR_4[] = { 0x00, 0x00, 0x02, 0x80, 0x01 };", "int VAR_5, VAR_6;", "if (VAR_2 < 0x280)\nreturn -1;", "if (memcmp(VAR_1, VAR_4, 5)) {", "av_log(VAR_0->avctx, AV_LOG_ERROR, \"error in header\\n\");...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ], ...
6,703
static int ogg_write_trailer(AVFormatContext *s) { int i; /* flush current page */ for (i = 0; i < s->nb_streams; i++) ogg_buffer_page(s, s->streams[i]->priv_data); ogg_write_pages(s, 1); for (i = 0; i < s->nb_streams; i++) { AVStream *st = s->streams[i]; OGGSt...
true
FFmpeg
dacf07661467bc349d17bdab06516daceabffb23
static int ogg_write_trailer(AVFormatContext *s) { int i; for (i = 0; i < s->nb_streams; i++) ogg_buffer_page(s, s->streams[i]->priv_data); ogg_write_pages(s, 1); for (i = 0; i < s->nb_streams; i++) { AVStream *st = s->streams[i]; OGGStreamContext *oggstream =...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { int VAR_1; for (VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++) ogg_buffer_page(VAR_0, VAR_0->streams[VAR_1]->priv_data); ogg_write_pages(VAR_0, 1); for (VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++) { AVStream *st = VAR_0->s...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "int VAR_1;", "for (VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++)", "ogg_buffer_page(VAR_0, VAR_0->streams[VAR_1]->priv_data);", "ogg_write_pages(VAR_0, 1);", "for (VAR_1 = 0; VAR_1 < VAR_0->nb_streams; VAR_1++) {", "AVStream *st = VAR_0->streams[VAR_1];"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 34 ], [ 38 ], [ 40 ], [ 42 ], [ 44 ] ]
6,704
static void do_inject_mce(Monitor *mon, const QDict *qdict) { CPUState *cenv; int cpu_index = qdict_get_int(qdict, "cpu_index"); int bank = qdict_get_int(qdict, "bank"); uint64_t status = qdict_get_int(qdict, "status"); uint64_t mcg_status = qdict_get_int(qdict, "mcg_status"); uint64_t ad...
true
qemu
31ce5e0c49821d92fb30cce2f3055ef33613b287
static void do_inject_mce(Monitor *mon, const QDict *qdict) { CPUState *cenv; int cpu_index = qdict_get_int(qdict, "cpu_index"); int bank = qdict_get_int(qdict, "bank"); uint64_t status = qdict_get_int(qdict, "status"); uint64_t mcg_status = qdict_get_int(qdict, "mcg_status"); uint64_t ad...
{ "code": [ " for (cenv = first_cpu; cenv != NULL; cenv = cenv->next_cpu)", " cpu_inject_x86_mce(cenv, bank, status, mcg_status, addr, misc);" ], "line_no": [ 21, 25 ] }
static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { CPUState *cenv; int VAR_2 = qdict_get_int(VAR_1, "VAR_2"); int VAR_3 = qdict_get_int(VAR_1, "VAR_3"); uint64_t status = qdict_get_int(VAR_1, "status"); uint64_t mcg_status = qdict_get_int(VAR_1, "mcg_status"); uint64_t addr = qdict_...
[ "static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "CPUState *cenv;", "int VAR_2 = qdict_get_int(VAR_1, \"VAR_2\");", "int VAR_3 = qdict_get_int(VAR_1, \"VAR_3\");", "uint64_t status = qdict_get_int(VAR_1, \"status\");", "uint64_t mcg_status = qdict_get_int(VAR_1, \"mcg_status\");", "uint64_t ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
6,705
static int avi_sync(AVFormatContext *s, int exit_early) { AVIContext *avi = s->priv_data; AVIOContext *pb = s->pb; int n; unsigned int d[8]; unsigned int size; int64_t i, sync; start_sync: memset(d, -1, sizeof(d)); for (i = sync = avio_tell(pb); !avio_feof(pb); i++) { ...
false
FFmpeg
511e10f673a69c05744be0355cc9ce5705407bc2
static int avi_sync(AVFormatContext *s, int exit_early) { AVIContext *avi = s->priv_data; AVIOContext *pb = s->pb; int n; unsigned int d[8]; unsigned int size; int64_t i, sync; start_sync: memset(d, -1, sizeof(d)); for (i = sync = avio_tell(pb); !avio_feof(pb); i++) { ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1) { AVIContext *avi = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; int VAR_2; unsigned int VAR_3[8]; unsigned int VAR_4; int64_t i, sync; start_sync: memset(VAR_3, -1, sizeof(VAR_3)); for (i = sync = avio_tell(pb); !avio_fe...
[ "static int FUNC_0(AVFormatContext *VAR_0, int VAR_1)\n{", "AVIContext *avi = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "int VAR_2;", "unsigned int VAR_3[8];", "unsigned int VAR_4;", "int64_t i, sync;", "start_sync:\nmemset(VAR_3, -1, sizeof(VAR_3));", "for (i = sync = avio_tell(pb); !avio...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43, 45 ], [ 47, 49 ], [ 55, 59,...
6,707
static int roq_probe(AVProbeData *p) { if (p->buf_size < 6) return 0; if ((AV_RL16(&p->buf[0]) != RoQ_MAGIC_NUMBER) || (AV_RL32(&p->buf[2]) != 0xFFFFFFFF)) return 0; return AVPROBE_SCORE_MAX; }
false
FFmpeg
87e8788680e16c51f6048af26f3f7830c35207a5
static int roq_probe(AVProbeData *p) { if (p->buf_size < 6) return 0; if ((AV_RL16(&p->buf[0]) != RoQ_MAGIC_NUMBER) || (AV_RL32(&p->buf[2]) != 0xFFFFFFFF)) return 0; return AVPROBE_SCORE_MAX; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVProbeData *VAR_0) { if (VAR_0->buf_size < 6) return 0; if ((AV_RL16(&VAR_0->buf[0]) != RoQ_MAGIC_NUMBER) || (AV_RL32(&VAR_0->buf[2]) != 0xFFFFFFFF)) return 0; return AVPROBE_SCORE_MAX; }
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "if (VAR_0->buf_size < 6)\nreturn 0;", "if ((AV_RL16(&VAR_0->buf[0]) != RoQ_MAGIC_NUMBER) ||\n(AV_RL32(&VAR_0->buf[2]) != 0xFFFFFFFF))\nreturn 0;", "return AVPROBE_SCORE_MAX;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11, 13, 15 ], [ 19 ], [ 21 ] ]
6,709
inline static void RENAME(hcscale)(SwsContext *c, uint16_t *dst, long dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc, const int16_t *hChrFilter, const int16_t *hChrFilterPos, int hChrFilterSize, ...
false
FFmpeg
d1adad3cca407f493c3637e20ecd4f7124e69212
inline static void RENAME(hcscale)(SwsContext *c, uint16_t *dst, long dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc, const int16_t *hChrFilter, const int16_t *hChrFilterPos, int hChrFilterSize, ...
{ "code": [], "line_no": [] }
inline static void FUNC_0(hcscale)(SwsContext *c, uint16_t *dst, long dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc, const int16_t *hChrFilter, const int16_t *hChrFilterPos, int hChrFilterSize, ...
[ "inline static void FUNC_0(hcscale)(SwsContext *c, uint16_t *dst, long dstWidth, const uint8_t *src1, const uint8_t *src2,\nint srcW, int xInc, const int16_t *hChrFilter,\nconst int16_t *hChrFilterPos, int hChrFilterSize,\nuint8_t *formatConvBuffer,\nuint32_t *pal)\n{", "src1 += c->chrSrcOffset;", "src2 += c->c...
[ 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53,...
6,711
static int net_init_nic(QemuOpts *opts, const char *name, VLANState *vlan) { int idx; NICInfo *nd; const char *netdev; idx = nic_get_free_idx(); if (idx == -1 || nb_nics >= MAX_NICS) { error_report("Too Many NICs"); return -1; } nd = &nd_table[idx]; memse...
true
qemu
6687b79d636cd60ed9adb1177d0d946b58fa7717
static int net_init_nic(QemuOpts *opts, const char *name, VLANState *vlan) { int idx; NICInfo *nd; const char *netdev; idx = nic_get_free_idx(); if (idx == -1 || nb_nics >= MAX_NICS) { error_report("Too Many NICs"); return -1; } nd = &nd_table[idx]; memse...
{ "code": [ "static int net_init_nic(QemuOpts *opts, const char *name, VLANState *vlan)", " return -1;", " return -1;", " return -1;" ], "line_no": [ 1, 19, 41, 41 ] }
static int FUNC_0(QemuOpts *VAR_0, const char *VAR_1, VLANState *VAR_2) { int VAR_3; NICInfo *nd; const char *VAR_4; VAR_3 = nic_get_free_idx(); if (VAR_3 == -1 || nb_nics >= MAX_NICS) { error_report("Too Many NICs"); return -1; } nd = &nd_table[VAR_3]; m...
[ "static int FUNC_0(QemuOpts *VAR_0, const char *VAR_1, VLANState *VAR_2)\n{", "int VAR_3;", "NICInfo *nd;", "const char *VAR_4;", "VAR_3 = nic_get_free_idx();", "if (VAR_3 == -1 || nb_nics >= MAX_NICS) {", "error_report(\"Too Many NICs\");", "return -1;", "}", "nd = &nd_table[VAR_3];", "memset(n...
[ 1, 0, 0, 0, 0, 0, 0, 1, 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
6,712
void ff_af_queue_remove(AudioFrameQueue *afq, int nb_samples, int64_t *pts, int *duration) { int64_t out_pts = AV_NOPTS_VALUE; int removed_samples = 0; int i; if (afq->frame_count || afq->frame_alloc) { if (afq->frames->pts != AV_NOPTS_VALUE) out_pts...
true
FFmpeg
3938a0eeae24a335b181d753c464cf5bab33ff01
void ff_af_queue_remove(AudioFrameQueue *afq, int nb_samples, int64_t *pts, int *duration) { int64_t out_pts = AV_NOPTS_VALUE; int removed_samples = 0; int i; if (afq->frame_count || afq->frame_alloc) { if (afq->frames->pts != AV_NOPTS_VALUE) out_pts...
{ "code": [ " if(afq->frames[0].pts != AV_NOPTS_VALUE)" ], "line_no": [ 61 ] }
void FUNC_0(AudioFrameQueue *VAR_0, int VAR_1, int64_t *VAR_2, int *VAR_3) { int64_t out_pts = AV_NOPTS_VALUE; int VAR_4 = 0; int VAR_5; if (VAR_0->frame_count || VAR_0->frame_alloc) { if (VAR_0->frames->VAR_2 != AV_NOPTS_VALUE) out_pts = VAR_0->fram...
[ "void FUNC_0(AudioFrameQueue *VAR_0, int VAR_1, int64_t *VAR_2,\nint *VAR_3)\n{", "int64_t out_pts = AV_NOPTS_VALUE;", "int VAR_4 = 0;", "int VAR_5;", "if (VAR_0->frame_count || VAR_0->frame_alloc) {", "if (VAR_0->frames->VAR_2 != AV_NOPTS_VALUE)\nout_pts = VAR_0->frames->VAR_2;", "}", "if(!VAR_0->fra...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
6,713
static bool qvirtio_pci_get_config_isr_status(QVirtioDevice *d) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d; uint32_t data; if (dev->pdev->msix_enabled) { g_assert_cmpint(dev->config_msix_entry, !=, -1); if (qpci_msix_masked(dev->pdev, dev->config_msix_entry)) { /* N...
true
qemu
1e34cf9681ec549e26f30daaabc1ce58d60446f7
static bool qvirtio_pci_get_config_isr_status(QVirtioDevice *d) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d; uint32_t data; if (dev->pdev->msix_enabled) { g_assert_cmpint(dev->config_msix_entry, !=, -1); if (qpci_msix_masked(dev->pdev, dev->config_msix_entry)) { ...
{ "code": [ " writel(dev->config_msix_addr, 0);", " return data == dev->config_msix_data;" ], "line_no": [ 25, 27 ] }
static bool FUNC_0(QVirtioDevice *d) { QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d; uint32_t data; if (dev->pdev->msix_enabled) { g_assert_cmpint(dev->config_msix_entry, !=, -1); if (qpci_msix_masked(dev->pdev, dev->config_msix_entry)) { return qpci_msix_...
[ "static bool FUNC_0(QVirtioDevice *d)\n{", "QVirtioPCIDevice *dev = (QVirtioPCIDevice *)d;", "uint32_t data;", "if (dev->pdev->msix_enabled) {", "g_assert_cmpint(dev->config_msix_entry, !=, -1);", "if (qpci_msix_masked(dev->pdev, dev->config_msix_entry)) {", "return qpci_msix_pending(dev->pdev, dev->con...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]