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
1,835
static int open_url(AVFormatContext *s, AVIOContext **pb, const char *url, AVDictionary *opts, AVDictionary *opts2) { HLSContext *c = s->priv_data; AVDictionary *tmp = NULL; const char *proto_name = avio_find_protocol_name(url); int ret; av_dict_copy(&tmp, opts, 0); ...
false
FFmpeg
eae2d89bf715bc3edff478174b43e1f388e768bf
static int open_url(AVFormatContext *s, AVIOContext **pb, const char *url, AVDictionary *opts, AVDictionary *opts2) { HLSContext *c = s->priv_data; AVDictionary *tmp = NULL; const char *proto_name = avio_find_protocol_name(url); int ret; av_dict_copy(&tmp, opts, 0); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVIOContext **VAR_1, const char *VAR_2, AVDictionary *VAR_3, AVDictionary *VAR_4) { HLSContext *c = VAR_0->priv_data; AVDictionary *tmp = NULL; const char *VAR_5 = avio_find_protocol_name(VAR_2); int VAR_6; av_dict_copy(&tmp, VAR...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVIOContext **VAR_1, const char *VAR_2,\nAVDictionary *VAR_3, AVDictionary *VAR_4)\n{", "HLSContext *c = VAR_0->priv_data;", "AVDictionary *tmp = NULL;", "const char *VAR_5 = avio_find_protocol_name(VAR_2);", "int VAR_6;", "av_dict_copy(&tmp, VAR_3, 0);", "av_d...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 31, 33 ], [ 35, 37 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [...
1,837
static int nvdec_mpeg12_end_frame(AVCodecContext *avctx) { NVDECContext *ctx = avctx->internal->hwaccel_priv_data; int ret = ff_nvdec_end_frame(avctx); ctx->bitstream = NULL; return ret; }
false
FFmpeg
4c7b023d56e09a78a587d036db1b64bf7c493b3d
static int nvdec_mpeg12_end_frame(AVCodecContext *avctx) { NVDECContext *ctx = avctx->internal->hwaccel_priv_data; int ret = ff_nvdec_end_frame(avctx); ctx->bitstream = NULL; return ret; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { NVDECContext *ctx = VAR_0->internal->hwaccel_priv_data; int VAR_1 = ff_nvdec_end_frame(VAR_0); ctx->bitstream = NULL; return VAR_1; }
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "NVDECContext *ctx = VAR_0->internal->hwaccel_priv_data;", "int VAR_1 = ff_nvdec_end_frame(VAR_0);", "ctx->bitstream = NULL;", "return VAR_1;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
1,838
static void setup_rt_frame(int sig, struct target_sigaction *ka, target_siginfo_t *info, target_sigset_t *set, CPUX86State *env) { abi_ulong frame_addr, addr; struct rt_sigframe *frame; int i, err = 0; frame_addr = get_sigframe(ka, env, sizeof(*frame)); if (!lock...
false
qemu
b0fd8d18683f0d77a8e6b482771ebea82234d727
static void setup_rt_frame(int sig, struct target_sigaction *ka, target_siginfo_t *info, target_sigset_t *set, CPUX86State *env) { abi_ulong frame_addr, addr; struct rt_sigframe *frame; int i, err = 0; frame_addr = get_sigframe(ka, env, sizeof(*frame)); if (!lock...
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1, target_siginfo_t *VAR_2, target_sigset_t *VAR_3, CPUX86State *VAR_4) { abi_ulong frame_addr, addr; struct rt_sigframe *VAR_5; int VAR_6, VAR_7 = 0; frame_addr = get_sigframe(VAR_1, VAR_4, sizeof(*VAR_5)); ...
[ "static void FUNC_0(int VAR_0, struct target_sigaction *VAR_1,\ntarget_siginfo_t *VAR_2,\ntarget_sigset_t *VAR_3, CPUX86State *VAR_4)\n{", "abi_ulong frame_addr, addr;", "struct rt_sigframe *VAR_5;", "int VAR_6, VAR_7 = 0;", "frame_addr = get_sigframe(VAR_1, VAR_4, sizeof(*VAR_5));", "if (!lock_user_struc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 47 ], [ 49 ], [ 51 ], [ 53, 55 ], [...
1,839
static void pci_qdev_realize(DeviceState *qdev, Error **errp) { PCIDevice *pci_dev = (PCIDevice *)qdev; PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev); Error *local_err = NULL; PCIBus *bus; bool is_default_rom; /* initialize cap_present for pci_is_express() and pci_config_size() */ ...
false
qemu
fd56e0612b6454a282fa6a953fdb09281a98c589
static void pci_qdev_realize(DeviceState *qdev, Error **errp) { PCIDevice *pci_dev = (PCIDevice *)qdev; PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev); Error *local_err = NULL; PCIBus *bus; bool is_default_rom; if (pc->is_express) { pci_dev->cap_present |= QEMU_PCI_CA...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { PCIDevice *pci_dev = (PCIDevice *)VAR_0; PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev); Error *local_err = NULL; PCIBus *bus; bool is_default_rom; if (pc->is_express) { pci_dev->cap_present |= QEMU_PCI_CAP_EXPRE...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "PCIDevice *pci_dev = (PCIDevice *)VAR_0;", "PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev);", "Error *local_err = NULL;", "PCIBus *bus;", "bool is_default_rom;", "if (pc->is_express) {", "pci_dev->cap_present |= QEMU_PCI_CAP_EXPRESS;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29, 31, 33 ], [ 35, 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [...
1,840
int check_migratable(Object *obj, Error **err) { return 0; }
false
qemu
1bfe5f0586083747f1602931713111673849cd9d
int check_migratable(Object *obj, Error **err) { return 0; }
{ "code": [], "line_no": [] }
int FUNC_0(Object *VAR_0, Error **VAR_1) { return 0; }
[ "int FUNC_0(Object *VAR_0, Error **VAR_1)\n{", "return 0;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
1,841
static av_cold int vp8_free(AVCodecContext *avctx) { VP8Context *ctx = avctx->priv_data; vpx_codec_destroy(&ctx->encoder); av_freep(&ctx->twopass_stats.buf); av_freep(&avctx->coded_frame); av_freep(&avctx->stats_out); free_frame_list(ctx->coded_frame_list); return 0; }
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int vp8_free(AVCodecContext *avctx) { VP8Context *ctx = avctx->priv_data; vpx_codec_destroy(&ctx->encoder); av_freep(&ctx->twopass_stats.buf); av_freep(&avctx->coded_frame); av_freep(&avctx->stats_out); free_frame_list(ctx->coded_frame_list); return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { VP8Context *ctx = avctx->priv_data; vpx_codec_destroy(&ctx->encoder); av_freep(&ctx->twopass_stats.buf); av_freep(&avctx->coded_frame); av_freep(&avctx->stats_out); free_frame_list(ctx->coded_frame_list); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "VP8Context *ctx = avctx->priv_data;", "vpx_codec_destroy(&ctx->encoder);", "av_freep(&ctx->twopass_stats.buf);", "av_freep(&avctx->coded_frame);", "av_freep(&avctx->stats_out);", "free_frame_list(ctx->coded_frame_list);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
1,842
static void exynos4210_fimd_write(void *opaque, target_phys_addr_t offset, uint64_t val, unsigned size) { Exynos4210fimdState *s = (Exynos4210fimdState *)opaque; unsigned w, i; uint32_t old_value; DPRINT_L2("write offset 0x%08x, value=%llu(0x%08llx)\n", offset, ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void exynos4210_fimd_write(void *opaque, target_phys_addr_t offset, uint64_t val, unsigned size) { Exynos4210fimdState *s = (Exynos4210fimdState *)opaque; unsigned w, i; uint32_t old_value; DPRINT_L2("write offset 0x%08x, value=%llu(0x%08llx)\n", offset, ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { Exynos4210fimdState *s = (Exynos4210fimdState *)VAR_0; unsigned VAR_4, VAR_5; uint32_t old_value; DPRINT_L2("write VAR_1 0x%08x, value=%llu(0x%08llx)\n", VAR_1, ...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "Exynos4210fimdState *s = (Exynos4210fimdState *)VAR_0;", "unsigned VAR_4, VAR_5;", "uint32_t old_value;", "DPRINT_L2(\"write VAR_1 0x%08x, value=%llu(0x%08llx)\\n\", VAR_1,\n(long long unsigned int)VAR_2, (long...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 47, 49 ], [ 51 ], [...
1,843
static int usb_wacom_initfn(USBDevice *dev) { USBWacomState *s = DO_UPCAST(USBWacomState, dev, dev); s->dev.speed = USB_SPEED_FULL; s->changed = 1; return 0; }
false
qemu
a980a065fb5e86d6dec337e6cb6ff432f1a143c9
static int usb_wacom_initfn(USBDevice *dev) { USBWacomState *s = DO_UPCAST(USBWacomState, dev, dev); s->dev.speed = USB_SPEED_FULL; s->changed = 1; return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(USBDevice *VAR_0) { USBWacomState *s = DO_UPCAST(USBWacomState, VAR_0, VAR_0); s->VAR_0.speed = USB_SPEED_FULL; s->changed = 1; return 0; }
[ "static int FUNC_0(USBDevice *VAR_0)\n{", "USBWacomState *s = DO_UPCAST(USBWacomState, VAR_0, VAR_0);", "s->VAR_0.speed = USB_SPEED_FULL;", "s->changed = 1;", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
1,844
void bdrv_register(BlockDriver *bdrv) { /* Block drivers without coroutine functions need emulation */ if (!bdrv->bdrv_co_readv) { bdrv->bdrv_co_readv = bdrv_co_readv_em; bdrv->bdrv_co_writev = bdrv_co_writev_em; if (!bdrv->bdrv_aio_readv) { /* add AIO emulation laye...
false
qemu
f8c35c1d59c9fecf79f6d5a02cd09f472a6f411d
void bdrv_register(BlockDriver *bdrv) { if (!bdrv->bdrv_co_readv) { bdrv->bdrv_co_readv = bdrv_co_readv_em; bdrv->bdrv_co_writev = bdrv_co_writev_em; if (!bdrv->bdrv_aio_readv) { bdrv->bdrv_aio_readv = bdrv_aio_readv_em; bdrv->bdrv_aio_wri...
{ "code": [], "line_no": [] }
void FUNC_0(BlockDriver *VAR_0) { if (!VAR_0->bdrv_co_readv) { VAR_0->bdrv_co_readv = bdrv_co_readv_em; VAR_0->bdrv_co_writev = bdrv_co_writev_em; if (!VAR_0->bdrv_aio_readv) { VAR_0->bdrv_aio_readv = bdrv_aio_readv_em; VAR_0->bdrv_aio_wri...
[ "void FUNC_0(BlockDriver *VAR_0)\n{", "if (!VAR_0->bdrv_co_readv) {", "VAR_0->bdrv_co_readv = bdrv_co_readv_em;", "VAR_0->bdrv_co_writev = bdrv_co_writev_em;", "if (!VAR_0->bdrv_aio_readv) {", "VAR_0->bdrv_aio_readv = bdrv_aio_readv_em;", "VAR_0->bdrv_aio_writev = bdrv_aio_writev_em;", "} else if (!VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 43 ], [ 45 ] ]
1,845
void socket_listen_cleanup(int fd, Error **errp) { SocketAddress *addr; addr = socket_local_address(fd, errp); if (addr->type == SOCKET_ADDRESS_KIND_UNIX && addr->u.q_unix.data->path) { if (unlink(addr->u.q_unix.data->path) < 0 && errno != ENOENT) { error_setg_errno(er...
false
qemu
dfd100f242370886bb6732f70f1f7cbd8eb9fedc
void socket_listen_cleanup(int fd, Error **errp) { SocketAddress *addr; addr = socket_local_address(fd, errp); if (addr->type == SOCKET_ADDRESS_KIND_UNIX && addr->u.q_unix.data->path) { if (unlink(addr->u.q_unix.data->path) < 0 && errno != ENOENT) { error_setg_errno(er...
{ "code": [], "line_no": [] }
void FUNC_0(int VAR_0, Error **VAR_1) { SocketAddress *addr; addr = socket_local_address(VAR_0, VAR_1); if (addr->type == SOCKET_ADDRESS_KIND_UNIX && addr->u.q_unix.data->path) { if (unlink(addr->u.q_unix.data->path) < 0 && errno != ENOENT) { error_setg_errno(VAR_1, er...
[ "void FUNC_0(int VAR_0, Error **VAR_1)\n{", "SocketAddress *addr;", "addr = socket_local_address(VAR_0, VAR_1);", "if (addr->type == SOCKET_ADDRESS_KIND_UNIX\n&& addr->u.q_unix.data->path) {", "if (unlink(addr->u.q_unix.data->path) < 0 && errno != ENOENT) {", "error_setg_errno(VAR_1, errno,\n\"Failed to u...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19, 21, 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
1,846
static void test_nested_struct(gconstpointer opaque) { TestArgs *args = (TestArgs *) opaque; const SerializeOps *ops = args->ops; UserDefNested *udnp = nested_struct_create(); UserDefNested *udnp_copy = NULL; Error *err = NULL; void *serialize_data; ops->serialize(udnp, &serial...
false
qemu
b6fcf32d9b851a83dedcb609091236b97cc4a985
static void test_nested_struct(gconstpointer opaque) { TestArgs *args = (TestArgs *) opaque; const SerializeOps *ops = args->ops; UserDefNested *udnp = nested_struct_create(); UserDefNested *udnp_copy = NULL; Error *err = NULL; void *serialize_data; ops->serialize(udnp, &serial...
{ "code": [], "line_no": [] }
static void FUNC_0(gconstpointer VAR_0) { TestArgs *args = (TestArgs *) VAR_0; const SerializeOps *VAR_1 = args->VAR_1; UserDefNested *udnp = nested_struct_create(); UserDefNested *udnp_copy = NULL; Error *err = NULL; void *VAR_2; VAR_1->serialize(udnp, &VAR_2, visit_nested_str...
[ "static void FUNC_0(gconstpointer VAR_0)\n{", "TestArgs *args = (TestArgs *) VAR_0;", "const SerializeOps *VAR_1 = args->VAR_1;", "UserDefNested *udnp = nested_struct_create();", "UserDefNested *udnp_copy = NULL;", "Error *err = NULL;", "void *VAR_2;", "VAR_1->serialize(udnp, &VAR_2, visit_nested_stru...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ] ]
1,847
static int usb_net_initfn(USBDevice *dev) { USBNetState *s = DO_UPCAST(USBNetState, dev, dev); s->dev.speed = USB_SPEED_FULL; s->rndis = 1; s->rndis_state = RNDIS_UNINITIALIZED; QTAILQ_INIT(&s->rndis_resp); s->medium = 0; /* NDIS_MEDIUM_802_3 */ s->speed = 1000000; /* 100MBps,...
false
qemu
a980a065fb5e86d6dec337e6cb6ff432f1a143c9
static int usb_net_initfn(USBDevice *dev) { USBNetState *s = DO_UPCAST(USBNetState, dev, dev); s->dev.speed = USB_SPEED_FULL; s->rndis = 1; s->rndis_state = RNDIS_UNINITIALIZED; QTAILQ_INIT(&s->rndis_resp); s->medium = 0; s->speed = 1000000; s->media_state = 0; ; s...
{ "code": [], "line_no": [] }
static int FUNC_0(USBDevice *VAR_0) { USBNetState *s = DO_UPCAST(USBNetState, VAR_0, VAR_0); s->VAR_0.speed = USB_SPEED_FULL; s->rndis = 1; s->rndis_state = RNDIS_UNINITIALIZED; QTAILQ_INIT(&s->rndis_resp); s->medium = 0; s->speed = 1000000; s->media_state = 0; ; s...
[ "static int FUNC_0(USBDevice *VAR_0)\n{", "USBNetState *s = DO_UPCAST(USBNetState, VAR_0, VAR_0);", "s->VAR_0.speed = USB_SPEED_FULL;", "s->rndis = 1;", "s->rndis_state = RNDIS_UNINITIALIZED;", "QTAILQ_INIT(&s->rndis_resp);", "s->medium = 0;", "s->speed = 1000000;", "s->media_state = 0;\t;", "s->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43, 45, 47, 49, 51, 53, 55 ], [ 57...
1,848
static void curses_setup(void) { int i, colour_default[8] = { COLOR_BLACK, COLOR_BLUE, COLOR_GREEN, COLOR_CYAN, COLOR_RED, COLOR_MAGENTA, COLOR_YELLOW, COLOR_WHITE, }; /* input as raw as possible, let everything be interpreted * by the guest system */ initscr(); noecho(); ...
false
qemu
4083733db5e4120939acee57019ff52db1f45b9d
static void curses_setup(void) { int i, colour_default[8] = { COLOR_BLACK, COLOR_BLUE, COLOR_GREEN, COLOR_CYAN, COLOR_RED, COLOR_MAGENTA, COLOR_YELLOW, COLOR_WHITE, }; initscr(); noecho(); intrflush(stdscr, FALSE); nodelay(stdscr, TRUE); nonl(); keypad(stdscr, TRUE); ...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { int VAR_0, VAR_1[8] = { COLOR_BLACK, COLOR_BLUE, COLOR_GREEN, COLOR_CYAN, COLOR_RED, COLOR_MAGENTA, COLOR_YELLOW, COLOR_WHITE, }; initscr(); noecho(); intrflush(stdscr, FALSE); nodelay(stdscr, TRUE); nonl(); keypad(stdscr, TRUE); start_col...
[ "static void FUNC_0(void)\n{", "int VAR_0, VAR_1[8] = {", "COLOR_BLACK, COLOR_BLUE, COLOR_GREEN, COLOR_CYAN,\nCOLOR_RED, COLOR_MAGENTA, COLOR_YELLOW, COLOR_WHITE,\n};", "initscr(); noecho(); intrflush(stdscr, FALSE);", "nodelay(stdscr, TRUE); nonl(); keypad(stdscr, TRUE);", "start_color(); raw(); scrollok...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 51, 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63, 67 ], [ 69 ...
1,849
static bool send_gradient_rect(VncState *vs, int w, int h) { int stream = 3; int level = tight_conf[vs->tight_compression].gradient_zlib_level; size_t bytes; if (vs->clientds.pf.bytes_per_pixel == 1) return send_full_color_rect(vs, w, h); vnc_write_u8(vs, (stream | VNC_TIGHT_EXPLI...
false
qemu
245f7b51c0ea04fb2224b1127430a096c91aee70
static bool send_gradient_rect(VncState *vs, int w, int h) { int stream = 3; int level = tight_conf[vs->tight_compression].gradient_zlib_level; size_t bytes; if (vs->clientds.pf.bytes_per_pixel == 1) return send_full_color_rect(vs, w, h); vnc_write_u8(vs, (stream | VNC_TIGHT_EXPLI...
{ "code": [], "line_no": [] }
static bool FUNC_0(VncState *vs, int w, int h) { int VAR_0 = 3; int VAR_1 = tight_conf[vs->tight_compression].gradient_zlib_level; size_t bytes; if (vs->clientds.pf.bytes_per_pixel == 1) return send_full_color_rect(vs, w, h); vnc_write_u8(vs, (VAR_0 | VNC_TIGHT_EXPLICIT_FILTER) <<...
[ "static bool FUNC_0(VncState *vs, int w, int h)\n{", "int VAR_0 = 3;", "int VAR_1 = tight_conf[vs->tight_compression].gradient_zlib_level;", "size_t bytes;", "if (vs->clientds.pf.bytes_per_pixel == 1)\nreturn send_full_color_rect(vs, w, h);", "vnc_write_u8(vs, (VAR_0 | VNC_TIGHT_EXPLICIT_FILTER) << 4);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [...
1,850
int bdrv_get_flags(BlockDriverState *bs) { return bs->open_flags; }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
int bdrv_get_flags(BlockDriverState *bs) { return bs->open_flags; }
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0) { return VAR_0->open_flags; }
[ "int FUNC_0(BlockDriverState *VAR_0)\n{", "return VAR_0->open_flags;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
1,852
static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) { AVFilterContext *ctx = inlink->dst; ASNSContext *asns = ctx->priv; AVFilterLink *outlink = ctx->outputs[0]; int ret; int nb_samples = insamples->nb_samples; if (av_audio_fifo_space(asns->fifo) < nb_samples) { a...
false
FFmpeg
000836c2a98e1c6a2867dd9db0371c137609acf0
static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) { AVFilterContext *ctx = inlink->dst; ASNSContext *asns = ctx->priv; AVFilterLink *outlink = ctx->outputs[0]; int ret; int nb_samples = insamples->nb_samples; if (av_audio_fifo_space(asns->fifo) < nb_samples) { a...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1) { AVFilterContext *ctx = VAR_0->dst; ASNSContext *asns = ctx->priv; AVFilterLink *outlink = ctx->outputs[0]; int VAR_2; int VAR_3 = VAR_1->VAR_3; if (av_audio_fifo_space(asns->fifo) < VAR_3) { av_log(ctx, AV_LOG_DEBUG, "No ...
[ "static int FUNC_0(AVFilterLink *VAR_0, AVFrame *VAR_1)\n{", "AVFilterContext *ctx = VAR_0->dst;", "ASNSContext *asns = ctx->priv;", "AVFilterLink *outlink = ctx->outputs[0];", "int VAR_2;", "int VAR_3 = VAR_1->VAR_3;", "if (av_audio_fifo_space(asns->fifo) < VAR_3) {", "av_log(ctx, AV_LOG_DEBUG, \"No ...
[ 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, 39 ], [ 41 ], [ 45, 47 ], [...
1,853
long do_rt_sigreturn(CPUState *env) { struct rt_sigframe *frame; sigset_t host_set; /* * Since we stacked the signal on a 64-bit boundary, * then 'sp' should be word aligned here. If it's * not, then the user is trying to mess with us. */ if (env->regs[13] & 7) goto badframe; frame...
false
qemu
f8b0aa25599782eef91edc00ebf620bd14db720c
long do_rt_sigreturn(CPUState *env) { struct rt_sigframe *frame; sigset_t host_set; if (env->regs[13] & 7) goto badframe; frame = (struct rt_sigframe *)env->regs[13]; #if 0 if (verify_area(VERIFY_READ, frame, sizeof (*frame))) goto badframe; #endif target_to_host_sigs...
{ "code": [], "line_no": [] }
long FUNC_0(CPUState *VAR_0) { struct rt_sigframe *VAR_1; sigset_t host_set; if (VAR_0->regs[13] & 7) goto badframe; VAR_1 = (struct rt_sigframe *)VAR_0->regs[13]; #if 0 if (verify_area(VERIFY_READ, VAR_1, sizeof (*VAR_1))) goto badframe; #endif target_to_host_sigset(...
[ "long FUNC_0(CPUState *VAR_0)\n{", "struct rt_sigframe *VAR_1;", "sigset_t host_set;", "if (VAR_0->regs[13] & 7)\ngoto badframe;", "VAR_1 = (struct rt_sigframe *)VAR_0->regs[13];", "#if 0\nif (verify_area(VERIFY_READ, VAR_1, sizeof (*VAR_1)))\ngoto badframe;", "#endif\ntarget_to_host_sigset(&host_set, &...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 21, 23 ], [ 27 ], [ 31, 33, 35 ], [ 37, 39 ], [ 41 ], [ 45, 47 ], [ 51, 53 ], [ 57, 61, 63 ], [ 65, 67 ], [ 71, 73 ], [ 75 ], [ 77...
1,854
static PCIDevice *find_dev(sPAPREnvironment *spapr, uint64_t buid, uint32_t config_addr) { sPAPRPHBState *sphb = find_phb(spapr, buid); PCIHostState *phb = PCI_HOST_BRIDGE(sphb); int bus_num = (config_addr >> 16) & 0xFF; int devfn = (config_addr >> 8) & 0xFF; if (...
false
qemu
46c5874e9cd752ed8ded31af03472edd8fc3efc1
static PCIDevice *find_dev(sPAPREnvironment *spapr, uint64_t buid, uint32_t config_addr) { sPAPRPHBState *sphb = find_phb(spapr, buid); PCIHostState *phb = PCI_HOST_BRIDGE(sphb); int bus_num = (config_addr >> 16) & 0xFF; int devfn = (config_addr >> 8) & 0xFF; if (...
{ "code": [], "line_no": [] }
static PCIDevice *FUNC_0(sPAPREnvironment *spapr, uint64_t buid, uint32_t config_addr) { sPAPRPHBState *sphb = find_phb(spapr, buid); PCIHostState *phb = PCI_HOST_BRIDGE(sphb); int VAR_0 = (config_addr >> 16) & 0xFF; int VAR_1 = (config_addr >> 8) & 0xFF; if (!phb...
[ "static PCIDevice *FUNC_0(sPAPREnvironment *spapr, uint64_t buid,\nuint32_t config_addr)\n{", "sPAPRPHBState *sphb = find_phb(spapr, buid);", "PCIHostState *phb = PCI_HOST_BRIDGE(sphb);", "int VAR_0 = (config_addr >> 16) & 0xFF;", "int VAR_1 = (config_addr >> 8) & 0xFF;", "if (!phb) {", "return NULL;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
1,855
void *pci_assign_dev_load_option_rom(PCIDevice *dev, struct Object *owner, int *size, unsigned int domain, unsigned int bus, unsigned int slot, unsigned int function) { char name[32], rom_file[64]; ...
false
qemu
9ed2690354e65a87b830f197cac0138e842f989e
void *pci_assign_dev_load_option_rom(PCIDevice *dev, struct Object *owner, int *size, unsigned int domain, unsigned int bus, unsigned int slot, unsigned int function) { char name[32], rom_file[64]; ...
{ "code": [], "line_no": [] }
void *FUNC_0(PCIDevice *VAR_0, struct Object *VAR_1, int *VAR_2, unsigned int VAR_3, unsigned int VAR_4, unsigned int VAR_5, unsigned int VAR_6) { char VAR_7[32], VAR_8[64]; FILE *fp; uint8_...
[ "void *FUNC_0(PCIDevice *VAR_0, struct Object *VAR_1,\nint *VAR_2, unsigned int VAR_3,\nunsigned int VAR_4, unsigned int VAR_5,\nunsigned int VAR_6)\n{", "char VAR_7[32], VAR_8[64];", "FILE *fp;", "uint8_t val;", "struct stat VAR_9;", "void *VAR_10 = NULL;", "if (VAR_0->romfile || !VAR_0->rom_bar) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 33, 35, 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 57 ], [...
1,857
void cpu_unregister_map_client(void *_client) { MapClient *client = (MapClient *)_client; LIST_REMOVE(client, link); qemu_free(client); }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
void cpu_unregister_map_client(void *_client) { MapClient *client = (MapClient *)_client; LIST_REMOVE(client, link); qemu_free(client); }
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0) { MapClient *client = (MapClient *)VAR_0; LIST_REMOVE(client, link); qemu_free(client); }
[ "void FUNC_0(void *VAR_0)\n{", "MapClient *client = (MapClient *)VAR_0;", "LIST_REMOVE(client, link);", "qemu_free(client);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ] ]
1,858
static inline void gen_intermediate_code_internal(PowerPCCPU *cpu, TranslationBlock *tb, bool search_pc) { CPUState *cs = CPU(cpu); CPUPPCState *env = &cpu->env; DisasContext ctx, *ctxp = &ctx; opc...
false
qemu
cd42d5b23691ad73edfd6dbcfc935a960a9c5a65
static inline void gen_intermediate_code_internal(PowerPCCPU *cpu, TranslationBlock *tb, bool search_pc) { CPUState *cs = CPU(cpu); CPUPPCState *env = &cpu->env; DisasContext ctx, *ctxp = &ctx; opc...
{ "code": [], "line_no": [] }
static inline void FUNC_0(PowerPCCPU *VAR_0, TranslationBlock *VAR_1, bool VAR_2) { CPUState *cs = CPU(VAR_0); CPUPPCState *env = &VAR_0->env; DisasContext ctx, *ctxp = &ctx; opc_handler_t **table,...
[ "static inline void FUNC_0(PowerPCCPU *VAR_0,\nTranslationBlock *VAR_1,\nbool VAR_2)\n{", "CPUState *cs = CPU(VAR_0);", "CPUPPCState *env = &VAR_0->env;", "DisasContext ctx, *ctxp = &ctx;", "opc_handler_t **table, *handler;", "target_ulong pc_start;", "uint16_t *gen_opc_end;", "CPUBreakpoint *bp;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
1,859
static void dma_aio_cancel(BlockDriverAIOCB *acb) { DMAAIOCB *dbs = container_of(acb, DMAAIOCB, common); if (dbs->acb) { bdrv_aio_cancel(dbs->acb); } }
true
qemu
c3adb5b9168a57790b5074489b6f0275ac3cc8b5
static void dma_aio_cancel(BlockDriverAIOCB *acb) { DMAAIOCB *dbs = container_of(acb, DMAAIOCB, common); if (dbs->acb) { bdrv_aio_cancel(dbs->acb); } }
{ "code": [ " bdrv_aio_cancel(dbs->acb);" ], "line_no": [ 11 ] }
static void FUNC_0(BlockDriverAIOCB *VAR_0) { DMAAIOCB *dbs = container_of(VAR_0, DMAAIOCB, common); if (dbs->VAR_0) { bdrv_aio_cancel(dbs->VAR_0); } }
[ "static void FUNC_0(BlockDriverAIOCB *VAR_0)\n{", "DMAAIOCB *dbs = container_of(VAR_0, DMAAIOCB, common);", "if (dbs->VAR_0) {", "bdrv_aio_cancel(dbs->VAR_0);", "}", "}" ]
[ 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
1,860
int32_t idiv32(int32_t *q_ptr, int64_t num, int32_t den) { *q_ptr = num / den; return num % den; }
true
qemu
45bbbb466cf4a6280076ea5a51f67ef5bedee345
int32_t idiv32(int32_t *q_ptr, int64_t num, int32_t den) { *q_ptr = num / den; return num % den; }
{ "code": [ "int32_t idiv32(int32_t *q_ptr, int64_t num, int32_t den)" ], "line_no": [ 1 ] }
int32_t FUNC_0(int32_t *q_ptr, int64_t num, int32_t den) { *q_ptr = num / den; return num % den; }
[ "int32_t FUNC_0(int32_t *q_ptr, int64_t num, int32_t den)\n{", "*q_ptr = num / den;", "return num % den;", "}" ]
[ 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
1,861
void qmp_nbd_server_add(const char *device, bool has_writable, bool writable, Error **errp) { BlockDriverState *bs; NBDExport *exp; NBDCloseNotifier *n; if (server_fd == -1) { error_setg(errp, "NBD server not running"); return; } if (nbd_expo...
true
qemu
5839e53bbc0fec56021d758aab7610df421ed8c8
void qmp_nbd_server_add(const char *device, bool has_writable, bool writable, Error **errp) { BlockDriverState *bs; NBDExport *exp; NBDCloseNotifier *n; if (server_fd == -1) { error_setg(errp, "NBD server not running"); return; } if (nbd_expo...
{ "code": [ " n = g_malloc0(sizeof(NBDCloseNotifier));" ], "line_no": [ 77 ] }
void FUNC_0(const char *VAR_0, bool VAR_1, bool VAR_2, Error **VAR_3) { BlockDriverState *bs; NBDExport *exp; NBDCloseNotifier *n; if (server_fd == -1) { error_setg(VAR_3, "NBD server not running"); return; } if (nbd_export_find(VAR_0)) { ...
[ "void FUNC_0(const char *VAR_0, bool VAR_1, bool VAR_2,\nError **VAR_3)\n{", "BlockDriverState *bs;", "NBDExport *exp;", "NBDCloseNotifier *n;", "if (server_fd == -1) {", "error_setg(VAR_3, \"NBD server not running\");", "return;", "}", "if (nbd_export_find(VAR_0)) {", "error_setg(VAR_3, \"NBD ser...
[ 0, 0, 0, 0, 0, 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 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
1,862
static void xbr3x(AVFrame *input, AVFrame *output, const uint32_t *r2y) { const int nl = output->linesize[0]>>2; const int nl1 = nl + nl; uint32_t pprev; uint32_t pprev2; int x,y; for (y = 0; y < input->height; y++) { uint32_t * E = (uint32_t *)(output->data[0] + y * output...
true
FFmpeg
e0704840404381c7b976a35db4004deca4495a22
static void xbr3x(AVFrame *input, AVFrame *output, const uint32_t *r2y) { const int nl = output->linesize[0]>>2; const int nl1 = nl + nl; uint32_t pprev; uint32_t pprev2; int x,y; for (y = 0; y < input->height; y++) { uint32_t * E = (uint32_t *)(output->data[0] + y * output...
{ "code": [ " pprev = pprev2 = 2;", " uint32_t C1 = 0;", " uint32_t PC = 0;", " uint32_t PF = 0;", " uint32_t PI = 0;", " uint32_t I5 = 0;", " uint32_t C4 = 0;", " uint32_t F4 = 0;", " ui...
static void FUNC_0(AVFrame *VAR_0, AVFrame *VAR_1, const uint32_t *VAR_2) { const int VAR_3 = VAR_1->linesize[0]>>2; const int VAR_4 = VAR_3 + VAR_3; uint32_t pprev; uint32_t pprev2; int VAR_5,VAR_6; for (VAR_6 = 0; VAR_6 < VAR_0->height; VAR_6++) { uint32_t * E = (uint32_t...
[ "static void FUNC_0(AVFrame *VAR_0, AVFrame *VAR_1, const uint32_t *VAR_2)\n{", "const int VAR_3 = VAR_1->linesize[0]>>2;", "const int VAR_4 = VAR_3 + VAR_3;", "uint32_t pprev;", "uint32_t pprev2;", "int VAR_5,VAR_6;", "for (VAR_6 = 0; VAR_6 < VAR_0->height; VAR_6++) {", "uint32_t * E = (uint32_t *)(V...
[ 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 23 ], [ 29 ], [ 33 ], [ 37 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 63 ...
1,863
qio_channel_websock_source_prepare(GSource *source, gint *timeout) { QIOChannelWebsockSource *wsource = (QIOChannelWebsockSource *)source; GIOCondition cond = 0; *timeout = -1; if (wsource->wioc->rawinput.offset) { cond |= G_IO_IN; } if (wsou...
true
qemu
eefa3d8ef649f9055611361e2201cca49f8c3433
qio_channel_websock_source_prepare(GSource *source, gint *timeout) { QIOChannelWebsockSource *wsource = (QIOChannelWebsockSource *)source; GIOCondition cond = 0; *timeout = -1; if (wsource->wioc->rawinput.offset) { cond |= G_IO_IN; } if (wsou...
{ "code": [ "qio_channel_websock_source_prepare(GSource *source,", " gint *timeout)", " *timeout = -1;", " if (wsource->wioc->rawinput.offset) {", " QIOChannelWebsockSource *wsource = (QIOChannelWebsockSource *)source;", " GIOCondition cond = 0;", ...
FUNC_0(GSource *VAR_0, gint *VAR_1) { QIOChannelWebsockSource *wsource = (QIOChannelWebsockSource *)VAR_0; GIOCondition cond = 0; *VAR_1 = -1; if (wsource->wioc->rawinput.offset) { cond |= G_IO_IN; } if (wsource->wioc->rawoutput.offset < QIO_...
[ "FUNC_0(GSource *VAR_0,\ngint *VAR_1)\n{", "QIOChannelWebsockSource *wsource = (QIOChannelWebsockSource *)VAR_0;", "GIOCondition cond = 0;", "*VAR_1 = -1;", "if (wsource->wioc->rawinput.offset) {", "cond |= G_IO_IN;", "}", "if (wsource->wioc->rawoutput.offset < QIO_CHANNEL_WEBSOCK_MAX_BUFFER) {", "c...
[ 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ] ]
1,864
static uint_fast8_t vorbis_floor1_decode(vorbis_context *vc, vorbis_floor_data *vfu, float *vec) { vorbis_floor1 *vf = &vfu->t1; GetBitContext *gb = &vc->gb; uint_fast16_t range_v[4] = { 256, 128, 86, 64 }; uint_fast16_t range = range_v[vf->multiplier-1]; ...
true
FFmpeg
3dde66752d59dfdd0f3727efd66e7202b3c75078
static uint_fast8_t vorbis_floor1_decode(vorbis_context *vc, vorbis_floor_data *vfu, float *vec) { vorbis_floor1 *vf = &vfu->t1; GetBitContext *gb = &vc->gb; uint_fast16_t range_v[4] = { 256, 128, 86, 64 }; uint_fast16_t range = range_v[vf->multiplier-1]; ...
{ "code": [ "static uint_fast8_t vorbis_floor1_decode(vorbis_context *vc,", " vorbis_floor_data *vfu, float *vec)", "static uint_fast8_t vorbis_floor1_decode(vorbis_context *vc,", " vorbis_floor_data *vfu, float *vec)" ]...
static uint_fast8_t FUNC_0(vorbis_context *vc, vorbis_floor_data *vfu, float *vec) { vorbis_floor1 *vf = &vfu->t1; GetBitContext *gb = &vc->gb; uint_fast16_t range_v[4] = { 256, 128, 86, 64 }; uint_fast16_t range = range_v[vf->multiplier-1]; uint_fast1...
[ "static uint_fast8_t FUNC_0(vorbis_context *vc,\nvorbis_floor_data *vfu, float *vec)\n{", "vorbis_floor1 *vf = &vfu->t1;", "GetBitContext *gb = &vc->gb;", "uint_fast16_t range_v[4] = { 256, 128, 86, 64 };", "uint_fast16_t range = range_v[vf->multiplier-1];", "uint_fast16_t floor1_Y[258];", "uint_fast16_...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 45, 47 ...
1,865
static void qemu_add_data_dir(const char *path) { int i; if (path == NULL) { return; } if (data_dir_idx == ARRAY_SIZE(data_dir)) { return; } for (i = 0; i < data_dir_idx; i++) { if (strcmp(data_dir[i], path) == 0) { return; /* duplicate */ ...
true
qemu
354711279fcc532cee310ed8098f51403dfef5d9
static void qemu_add_data_dir(const char *path) { int i; if (path == NULL) { return; } if (data_dir_idx == ARRAY_SIZE(data_dir)) { return; } for (i = 0; i < data_dir_idx; i++) { if (strcmp(data_dir[i], path) == 0) { return; } } ...
{ "code": [ " data_dir[data_dir_idx++] = path;" ], "line_no": [ 31 ] }
static void FUNC_0(const char *VAR_0) { int VAR_1; if (VAR_0 == NULL) { return; } if (data_dir_idx == ARRAY_SIZE(data_dir)) { return; } for (VAR_1 = 0; VAR_1 < data_dir_idx; VAR_1++) { if (strcmp(data_dir[VAR_1], VAR_0) == 0) { return; }...
[ "static void FUNC_0(const char *VAR_0)\n{", "int VAR_1;", "if (VAR_0 == NULL) {", "return;", "}", "if (data_dir_idx == ARRAY_SIZE(data_dir)) {", "return;", "}", "for (VAR_1 = 0; VAR_1 < data_dir_idx; VAR_1++) {", "if (strcmp(data_dir[VAR_1], VAR_0) == 0) {", "return;", "}", "}", "data_dir[...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
1,866
void *ff_schro_queue_pop(FFSchroQueue *queue) { FFSchroQueueElement *top = queue->p_head; if (top) { void *data = top->data; queue->p_head = queue->p_head->next; --queue->size; av_freep(&top); return data; } return NULL; }
true
FFmpeg
220b24c7c97dc033ceab1510549f66d0e7b52ef1
void *ff_schro_queue_pop(FFSchroQueue *queue) { FFSchroQueueElement *top = queue->p_head; if (top) { void *data = top->data; queue->p_head = queue->p_head->next; --queue->size; av_freep(&top); return data; } return NULL; }
{ "code": [ "void *ff_schro_queue_pop(FFSchroQueue *queue)", " FFSchroQueueElement *top = queue->p_head;", " if (top) {", " void *data = top->data;", " queue->p_head = queue->p_head->next;", " --queue->size;", " av_freep(&top);", " return data;"...
void *FUNC_0(FFSchroQueue *VAR_0) { FFSchroQueueElement *top = VAR_0->p_head; if (top) { void *VAR_1 = top->VAR_1; VAR_0->p_head = VAR_0->p_head->next; --VAR_0->size; av_freep(&top); return VAR_1; } return NULL; }
[ "void *FUNC_0(FFSchroQueue *VAR_0)\n{", "FFSchroQueueElement *top = VAR_0->p_head;", "if (top) {", "void *VAR_1 = top->VAR_1;", "VAR_0->p_head = VAR_0->p_head->next;", "--VAR_0->size;", "av_freep(&top);", "return VAR_1;", "}", "return NULL;", "}" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
1,867
static void virtio_net_vhost_status(VirtIONet *n, uint8_t status) { VirtIODevice *vdev = VIRTIO_DEVICE(n); NetClientState *nc = qemu_get_queue(n->nic); int queues = n->multiqueue ? n->max_queues : 1; if (!get_vhost_net(nc->peer)) { return; } if ((virtio_net_started(n, status)...
true
qemu
1e7398a140f7a6bd9f5a438e7ad0f1ef50990e25
static void virtio_net_vhost_status(VirtIONet *n, uint8_t status) { VirtIODevice *vdev = VIRTIO_DEVICE(n); NetClientState *nc = qemu_get_queue(n->nic); int queues = n->multiqueue ? n->max_queues : 1; if (!get_vhost_net(nc->peer)) { return; } if ((virtio_net_started(n, status)...
{ "code": [ " if (!vhost_net_query(get_vhost_net(nc->peer), vdev)) {" ], "line_no": [ 35 ] }
static void FUNC_0(VirtIONet *VAR_0, uint8_t VAR_1) { VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0); NetClientState *nc = qemu_get_queue(VAR_0->nic); int VAR_2 = VAR_0->multiqueue ? VAR_0->max_queues : 1; if (!get_vhost_net(nc->peer)) { return; } if ((virtio_net_started(VAR_0, VA...
[ "static void FUNC_0(VirtIONet *VAR_0, uint8_t VAR_1)\n{", "VirtIODevice *vdev = VIRTIO_DEVICE(VAR_0);", "NetClientState *nc = qemu_get_queue(VAR_0->nic);", "int VAR_2 = VAR_0->multiqueue ? VAR_0->max_queues : 1;", "if (!get_vhost_net(nc->peer)) {", "return;", "}", "if ((virtio_net_started(VAR_0, VAR_1...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 49 ], [ 51 ], [ 57 ], [ 59 ], [...
1,868
static int evrc_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; AVFrame *frame = data; EVRCContext *e = avctx->priv_data; int buf_size = avpkt->size; float ilspf[FILTER_ORDER], ...
false
FFmpeg
5ae484e350e4f1b20b31802dac59ca3519627c0a
static int evrc_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; AVFrame *frame = data; EVRCContext *e = avctx->priv_data; int buf_size = avpkt->size; float ilspf[FILTER_ORDER], ...
{ "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; AVFrame *frame = VAR_1; EVRCContext *e = VAR_0->priv_data; int VAR_5 = VAR_3->size; float VAR_6[FILTER_ORDER], ilpc[FILTER_ORDER...
[ "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;", "AVFrame *frame = VAR_1;", "EVRCContext *e = VAR_0->priv_data;", "int VAR_5 = VAR_3->size;", "float VAR_6[FILTER_ORDER], ilpc[FILTER_ORDER], idelay[NB_SUBFRAMES];...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45, 47, 49 ], [...
1,869
static int _do_rematrixing(AC3DecodeContext *ctx, int start, int end) { float tmp0, tmp1; while (start < end) { tmp0 = ctx->samples[start]; tmp1 = (ctx->samples + 256)[start]; ctx->samples[start] = tmp0 + tmp1; (ctx->samples + 256)[start] = tmp0 - tmp1; start++;...
false
FFmpeg
0058584580b87feb47898e60e4b80c7f425882ad
static int _do_rematrixing(AC3DecodeContext *ctx, int start, int end) { float tmp0, tmp1; while (start < end) { tmp0 = ctx->samples[start]; tmp1 = (ctx->samples + 256)[start]; ctx->samples[start] = tmp0 + tmp1; (ctx->samples + 256)[start] = tmp0 - tmp1; start++;...
{ "code": [], "line_no": [] }
static int FUNC_0(AC3DecodeContext *VAR_0, int VAR_1, int VAR_2) { float VAR_3, VAR_4; while (VAR_1 < VAR_2) { VAR_3 = VAR_0->samples[VAR_1]; VAR_4 = (VAR_0->samples + 256)[VAR_1]; VAR_0->samples[VAR_1] = VAR_3 + VAR_4; (VAR_0->samples + 256)[VAR_1] = VAR_3 - VAR_4; ...
[ "static int FUNC_0(AC3DecodeContext *VAR_0, int VAR_1, int VAR_2)\n{", "float VAR_3, VAR_4;", "while (VAR_1 < VAR_2) {", "VAR_3 = VAR_0->samples[VAR_1];", "VAR_4 = (VAR_0->samples + 256)[VAR_1];", "VAR_0->samples[VAR_1] = VAR_3 + VAR_4;", "(VAR_0->samples + 256)[VAR_1] = VAR_3 - VAR_4;", "VAR_1++;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
1,870
const DVprofile* avpriv_dv_frame_profile(const DVprofile *sys, const uint8_t* frame, unsigned buf_size) { int i; int dsf = (frame[3] & 0x80) >> 7; int stype = frame[80*5 + 48 + 3] & 0x1f; /* 576i50 25Mbps 4:1:1 is a special case */ if (dsf == 1 && stype == 0...
false
FFmpeg
e97efecec82ca8458a9bbd75a91ebf556abde362
const DVprofile* avpriv_dv_frame_profile(const DVprofile *sys, const uint8_t* frame, unsigned buf_size) { int i; int dsf = (frame[3] & 0x80) >> 7; int stype = frame[80*5 + 48 + 3] & 0x1f; if (dsf == 1 && stype == 0 && frame[4] & 0x07 ) { return &dv_...
{ "code": [], "line_no": [] }
const DVprofile* FUNC_0(const DVprofile *sys, const uint8_t* frame, unsigned buf_size) { int VAR_0; int VAR_1 = (frame[3] & 0x80) >> 7; int VAR_2 = frame[80*5 + 48 + 3] & 0x1f; if (VAR_1 == 1 && VAR_2 == 0 && frame[4] & 0x07 ) { return &dv_profiles[...
[ "const DVprofile* FUNC_0(const DVprofile *sys,\nconst uint8_t* frame, unsigned buf_size)\n{", "int VAR_0;", "int VAR_1 = (frame[3] & 0x80) >> 7;", "int VAR_2 = frame[80*5 + 48 + 3] & 0x1f;", "if (VAR_1 == 1 && VAR_2 == 0 && frame[4] & 0x07 ) {", "return &dv_profiles[2];", "}", "for (VAR_0=0; VAR_0<FF_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 39, 41 ], [ 45 ], [ 47 ] ]
1,873
static int do_fork(CPUState *env, unsigned int flags, abi_ulong newsp, abi_ulong parent_tidptr, target_ulong newtls, abi_ulong child_tidptr) { int ret; TaskState *ts; uint8_t *new_stack; CPUState *new_env; #if defined(CONFIG_USE_NPTL) unsigned int nptl_...
true
qemu
48e15fc2de29276f0c93482f5175b95e50557fbf
static int do_fork(CPUState *env, unsigned int flags, abi_ulong newsp, abi_ulong parent_tidptr, target_ulong newtls, abi_ulong child_tidptr) { int ret; TaskState *ts; uint8_t *new_stack; CPUState *new_env; #if defined(CONFIG_USE_NPTL) unsigned int nptl_...
{ "code": [ " ts = qemu_mallocz(sizeof(TaskState) + NEW_STACK_SIZE);", " new_stack = ts->stack;", " ret = pthread_attr_setstack(&attr, new_stack, NEW_STACK_SIZE);" ], "line_no": [ 47, 51, 123 ] }
static int FUNC_0(CPUState *VAR_0, unsigned int VAR_1, abi_ulong VAR_2, abi_ulong VAR_3, target_ulong VAR_4, abi_ulong VAR_5) { int VAR_6; TaskState *ts; uint8_t *new_stack; CPUState *new_env; #if defined(CONFIG_USE_NPTL) unsigned int nptl_flags; s...
[ "static int FUNC_0(CPUState *VAR_0, unsigned int VAR_1, abi_ulong VAR_2,\nabi_ulong VAR_3, target_ulong VAR_4,\nabi_ulong VAR_5)\n{", "int VAR_6;", "TaskState *ts;", "uint8_t *new_stack;", "CPUState *new_env;", "#if defined(CONFIG_USE_NPTL)\nunsigned int nptl_flags;", "sigset_t sigmask;", "#endif\nif ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 29, 31 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 55 ], [...
1,874
static inline void decode(DisasContext *dc, uint32_t ir) { if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP | CPU_LOG_TB_OP_OPT))) { tcg_gen_debug_insn_start(dc->pc); } dc->ir = ir; LOG_DIS("%8.8x\t", dc->ir); /* try guessing 'empty' instruction memory, although it may be a valid ...
true
qemu
3604a76fea6ff37738d4a8f596be38407be74a83
static inline void decode(DisasContext *dc, uint32_t ir) { if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP | CPU_LOG_TB_OP_OPT))) { tcg_gen_debug_insn_start(dc->pc); } dc->ir = ir; LOG_DIS("%8.8x\t", dc->ir); if (dc->ir) { dc->nr_nops = 0; } else { LOG...
{ "code": [ " if (dc->ir) {", " dc->nr_nops = 0;", " } else {", " LOG_DIS(\"nr_nops=%d\\t\", dc->nr_nops);", " dc->nr_nops++;", " if (dc->nr_nops > 4) {", " cpu_abort(dc->env, \"fetching nop sequence\\n\");" ], "line_no": [ 23, 25, ...
static inline void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1) { if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP | CPU_LOG_TB_OP_OPT))) { tcg_gen_debug_insn_start(VAR_0->pc); } VAR_0->VAR_1 = VAR_1; LOG_DIS("%8.8x\t", VAR_0->VAR_1); if (VAR_0->VAR_1) { VAR_0->nr_nop...
[ "static inline void FUNC_0(DisasContext *VAR_0, uint32_t VAR_1)\n{", "if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP | CPU_LOG_TB_OP_OPT))) {", "tcg_gen_debug_insn_start(VAR_0->pc);", "}", "VAR_0->VAR_1 = VAR_1;", "LOG_DIS(\"%8.8x\\t\", VAR_0->VAR_1);", "if (VAR_0->VAR_1) {", "VAR_0->nr_nops = 0;", "...
[ 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ...
1,875
static int decode_zbuf(AVBPrint *bp, const uint8_t *data, const uint8_t *data_end) { z_stream zstream; unsigned char *buf; unsigned buf_size; int ret; zstream.zalloc = ff_png_zalloc; zstream.zfree = ff_png_zfree; zstream.opaque = NULL; if (inflateInit(...
true
FFmpeg
e371f031b942d73e02c090170975561fabd5c264
static int decode_zbuf(AVBPrint *bp, const uint8_t *data, const uint8_t *data_end) { z_stream zstream; unsigned char *buf; unsigned buf_size; int ret; zstream.zalloc = ff_png_zalloc; zstream.zfree = ff_png_zfree; zstream.opaque = NULL; if (inflateInit(...
{ "code": [ " av_bprint_get_buffer(bp, 1, &buf, &buf_size);", " if (!buf_size) {", " zstream.avail_out = buf_size;" ], "line_no": [ 37, 39, 49 ] }
static int FUNC_0(AVBPrint *VAR_0, const uint8_t *VAR_1, const uint8_t *VAR_2) { z_stream zstream; unsigned char *VAR_3; unsigned VAR_4; int VAR_5; zstream.zalloc = ff_png_zalloc; zstream.zfree = ff_png_zfree; zstream.opaque = NULL; if (inflateInit(&zs...
[ "static int FUNC_0(AVBPrint *VAR_0, const uint8_t *VAR_1,\nconst uint8_t *VAR_2)\n{", "z_stream zstream;", "unsigned char *VAR_3;", "unsigned VAR_4;", "int VAR_5;", "zstream.zalloc = ff_png_zalloc;", "zstream.zfree = ff_png_zfree;", "zstream.opaque = NULL;", "if (inflateInit(&zstream) != Z_OK)\nret...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
1,876
static int write_extradata(FFV1Context *f) { RangeCoder *const c = &f->c; uint8_t state[CONTEXT_SIZE]; int i, j, k; uint8_t state2[32][CONTEXT_SIZE]; unsigned v; memset(state2, 128, sizeof(state2)); memset(state, 128, sizeof(state)); f->avctx->extradata_size = 10000 + 4 + ...
true
FFmpeg
eeb3fb9e62d4647e1fee5d262be63e793117430d
static int write_extradata(FFV1Context *f) { RangeCoder *const c = &f->c; uint8_t state[CONTEXT_SIZE]; int i, j, k; uint8_t state2[32][CONTEXT_SIZE]; unsigned v; memset(state2, 128, sizeof(state2)); memset(state, 128, sizeof(state)); f->avctx->extradata_size = 10000 + 4 + ...
{ "code": [], "line_no": [] }
static int FUNC_0(FFV1Context *VAR_0) { RangeCoder *const c = &VAR_0->c; uint8_t state[CONTEXT_SIZE]; int VAR_1, VAR_2, VAR_3; uint8_t state2[32][CONTEXT_SIZE]; unsigned VAR_4; memset(state2, 128, sizeof(state2)); memset(state, 128, sizeof(state)); VAR_0->avctx->extradata_si...
[ "static int FUNC_0(FFV1Context *VAR_0)\n{", "RangeCoder *const c = &VAR_0->c;", "uint8_t state[CONTEXT_SIZE];", "int VAR_1, VAR_2, VAR_3;", "uint8_t state2[32][CONTEXT_SIZE];", "unsigned VAR_4;", "memset(state2, 128, sizeof(state2));", "memset(state, 128, sizeof(state));", "VAR_0->avctx->extradata_s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53,...
1,877
int qemu_strtol(const char *nptr, const char **endptr, int base, long *result) { char *p; int err = 0; if (!nptr) { if (endptr) { *endptr = nptr; } err = -EINVAL; } else { errno = 0; *result = strtol(nptr, &p, base); ...
true
qemu
47d4be12c3997343e436c6cca89aefbbbeb70863
int qemu_strtol(const char *nptr, const char **endptr, int base, long *result) { char *p; int err = 0; if (!nptr) { if (endptr) { *endptr = nptr; } err = -EINVAL; } else { errno = 0; *result = strtol(nptr, &p, base); ...
{ "code": [ " err = check_strtox_error(endptr, p, errno);", " err = check_strtox_error(endptr, p, errno);", " err = check_strtox_error(endptr, p, errno);", " err = check_strtox_error(endptr, p, errno);" ], "line_no": [ 27, 27, 27, 27 ] }
int FUNC_0(const char *VAR_0, const char **VAR_1, int VAR_2, long *VAR_3) { char *VAR_4; int VAR_5 = 0; if (!VAR_0) { if (VAR_1) { *VAR_1 = VAR_0; } VAR_5 = -EINVAL; } else { errno = 0; *VAR_3 = strtol(VAR_0, &VAR_4, VAR_2);...
[ "int FUNC_0(const char *VAR_0, const char **VAR_1, int VAR_2,\nlong *VAR_3)\n{", "char *VAR_4;", "int VAR_5 = 0;", "if (!VAR_0) {", "if (VAR_1) {", "*VAR_1 = VAR_0;", "}", "VAR_5 = -EINVAL;", "} else {", "errno = 0;", "*VAR_3 = strtol(VAR_0, &VAR_4, VAR_2);", "VAR_5 = check_strtox_error(VAR_1,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
1,879
static void spapr_set_vsmt_mode(sPAPRMachineState *spapr, Error **errp) { Error *local_err = NULL; bool vsmt_user = !!spapr->vsmt; int kvm_smt = kvmppc_smt_threads(); int ret; if (!kvm_enabled() && (smp_threads > 1)) { error_setg(&local_err, "TCG cannot support more than 1 thread/co...
true
qemu
8904e5a75005fe579c28806003892d8ae4a27dfa
static void spapr_set_vsmt_mode(sPAPRMachineState *spapr, Error **errp) { Error *local_err = NULL; bool vsmt_user = !!spapr->vsmt; int kvm_smt = kvmppc_smt_threads(); int ret; if (!kvm_enabled() && (smp_threads > 1)) { error_setg(&local_err, "TCG cannot support more than 1 thread/co...
{ "code": [ " spapr->vsmt = MAX(kvm_smt, smp_threads);" ], "line_no": [ 61 ] }
static void FUNC_0(sPAPRMachineState *VAR_0, Error **VAR_1) { Error *local_err = NULL; bool vsmt_user = !!VAR_0->vsmt; int VAR_2 = kvmppc_smt_threads(); int VAR_3; if (!kvm_enabled() && (smp_threads > 1)) { error_setg(&local_err, "TCG cannot support more than 1 thread/core " ...
[ "static void FUNC_0(sPAPRMachineState *VAR_0, Error **VAR_1)\n{", "Error *local_err = NULL;", "bool vsmt_user = !!VAR_0->vsmt;", "int VAR_2 = kvmppc_smt_threads();", "int VAR_3;", "if (!kvm_enabled() && (smp_threads > 1)) {", "error_setg(&local_err, \"TCG cannot support more than 1 thread/core \"\n\"on ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 39 ], [ 41 ], [ 43, 45, 47 ], [ 49 ], [ 51 ...
1,880
static void pci_bridge_update_mappings(PCIBridge *br) { /* Make updates atomic to: handle the case of one VCPU updating the bridge * while another accesses an unaffected region. */ memory_region_transaction_begin(); pci_bridge_region_cleanup(br); pci_bridge_region_init(br); memory_region...
true
qemu
b308c82cbda44e138ef990af64d44a5613c16092
static void pci_bridge_update_mappings(PCIBridge *br) { memory_region_transaction_begin(); pci_bridge_region_cleanup(br); pci_bridge_region_init(br); memory_region_transaction_commit(); }
{ "code": [ " pci_bridge_region_cleanup(br);", " pci_bridge_region_init(br);", " pci_bridge_region_init(br);" ], "line_no": [ 11, 13, 13 ] }
static void FUNC_0(PCIBridge *VAR_0) { memory_region_transaction_begin(); pci_bridge_region_cleanup(VAR_0); pci_bridge_region_init(VAR_0); memory_region_transaction_commit(); }
[ "static void FUNC_0(PCIBridge *VAR_0)\n{", "memory_region_transaction_begin();", "pci_bridge_region_cleanup(VAR_0);", "pci_bridge_region_init(VAR_0);", "memory_region_transaction_commit();", "}" ]
[ 0, 0, 1, 1, 0, 0 ]
[ [ 1, 3 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
1,881
static struct omap_sysctl_s *omap_sysctl_init(struct omap_target_agent_s *ta, omap_clk iclk, struct omap_mpu_state_s *mpu) { struct omap_sysctl_s *s = (struct omap_sysctl_s *) g_malloc0(sizeof(struct omap_sysctl_s)); s->mpu = mpu; omap_sysctl_reset(s); memory_regio...
true
qemu
b45c03f585ea9bb1af76c73e82195418c294919d
static struct omap_sysctl_s *omap_sysctl_init(struct omap_target_agent_s *ta, omap_clk iclk, struct omap_mpu_state_s *mpu) { struct omap_sysctl_s *s = (struct omap_sysctl_s *) g_malloc0(sizeof(struct omap_sysctl_s)); s->mpu = mpu; omap_sysctl_reset(s); memory_regio...
{ "code": [ " struct omap_sysctl_s *s = (struct omap_sysctl_s *)", " g_malloc0(sizeof(struct omap_sysctl_s));" ], "line_no": [ 7, 9 ] }
static struct omap_sysctl_s *FUNC_0(struct omap_target_agent_s *VAR_0, omap_clk VAR_1, struct omap_mpu_state_s *VAR_2) { struct omap_sysctl_s *VAR_3 = (struct omap_sysctl_s *) g_malloc0(sizeof(struct omap_sysctl_s)); VAR_3->VAR_2 = VAR_2; omap_sysctl_reset(VAR_3); ...
[ "static struct omap_sysctl_s *FUNC_0(struct omap_target_agent_s *VAR_0,\nomap_clk VAR_1, struct omap_mpu_state_s *VAR_2)\n{", "struct omap_sysctl_s *VAR_3 = (struct omap_sysctl_s *)\ng_malloc0(sizeof(struct omap_sysctl_s));", "VAR_3->VAR_2 = VAR_2;", "omap_sysctl_reset(VAR_3);", "memory_region_init_io(&VAR_...
[ 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23 ], [ 27 ], [ 29 ] ]
1,884
static int mpegts_write_packet_internal(AVFormatContext *s, AVPacket *pkt) { AVStream *st = s->streams[pkt->stream_index]; int size = pkt->size; uint8_t *buf = pkt->data; uint8_t *data = NULL; MpegTSWrite *ts = s->priv_data; MpegTSWriteStream *ts_st = st->priv_data; const int64_t del...
true
FFmpeg
1d5edad8ccfd1843bc8c60260a20ac37b738cb77
static int mpegts_write_packet_internal(AVFormatContext *s, AVPacket *pkt) { AVStream *st = s->streams[pkt->stream_index]; int size = pkt->size; uint8_t *buf = pkt->data; uint8_t *data = NULL; MpegTSWrite *ts = s->priv_data; MpegTSWriteStream *ts_st = st->priv_data; const int64_t del...
{ "code": [ " return AVERROR_INVALIDDATA;" ], "line_no": [ 165 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { AVStream *st = VAR_0->streams[VAR_1->stream_index]; int VAR_2 = VAR_1->VAR_2; uint8_t *buf = VAR_1->data; uint8_t *data = NULL; MpegTSWrite *ts = VAR_0->priv_data; MpegTSWriteStream *ts_st = st->priv_data; const int64_t VAR...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "AVStream *st = VAR_0->streams[VAR_1->stream_index];", "int VAR_2 = VAR_1->VAR_2;", "uint8_t *buf = VAR_1->data;", "uint8_t *data = NULL;", "MpegTSWrite *ts = VAR_0->priv_data;", "MpegTSWriteStream *ts_st = st->priv_data;", "const int64_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [...
1,885
static int mp3_write_packet(AVFormatContext *s, AVPacket *pkt) { MP3Context *mp3 = s->priv_data; if (pkt->stream_index == mp3->audio_stream_idx) { if (mp3->pics_to_write) { /* buffer audio packets until we get all the pictures */ AVPacketList *pktl = av_mallocz(sizeof(*pk...
true
FFmpeg
d003a0cd2e587a47627fd328f9fc5a484adc29f2
static int mp3_write_packet(AVFormatContext *s, AVPacket *pkt) { MP3Context *mp3 = s->priv_data; if (pkt->stream_index == mp3->audio_stream_idx) { if (mp3->pics_to_write) { AVPacketList *pktl = av_mallocz(sizeof(*pktl)); if (!pktl) return AV...
{ "code": [ " pktl->pkt = *pkt;", " pktl->pkt.buf = av_buffer_ref(pkt->buf);", " if (!pktl->pkt.buf) {", " return AVERROR(ENOMEM);" ], "line_no": [ 23, 25, 27, 19 ] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { MP3Context *mp3 = VAR_0->priv_data; if (VAR_1->stream_index == mp3->audio_stream_idx) { if (mp3->pics_to_write) { AVPacketList *pktl = av_mallocz(sizeof(*pktl)); if (!pktl) return ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "MP3Context *mp3 = VAR_0->priv_data;", "if (VAR_1->stream_index == mp3->audio_stream_idx) {", "if (mp3->pics_to_write) {", "AVPacketList *pktl = av_mallocz(sizeof(*pktl));", "if (!pktl)\nreturn AVERROR(ENOMEM);", "pktl->VAR_1 = *VAR_1;...
[ 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37, 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], ...
1,886
static void ioport_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { PCIQXLDevice *d = opaque; uint32_t io_port = addr; qxl_async_io async = QXL_SYNC; uint32_t orig_io_port = io_port; if (d->guest_bug && !io_port == QXL_IO_RESET) { ...
true
qemu
ccc2960d654a233a6ed415b37d8ff41728d817c5
static void ioport_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { PCIQXLDevice *d = opaque; uint32_t io_port = addr; qxl_async_io async = QXL_SYNC; uint32_t orig_io_port = io_port; if (d->guest_bug && !io_port == QXL_IO_RESET) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { PCIQXLDevice *d = VAR_0; uint32_t io_port = VAR_1; qxl_async_io async = QXL_SYNC; uint32_t orig_io_port = io_port; if (d->guest_bug && !io_port == QXL_IO_RESET) { re...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "PCIQXLDevice *d = VAR_0;", "uint32_t io_port = VAR_1;", "qxl_async_io async = QXL_SYNC;", "uint32_t orig_io_port = io_port;", "if (d->guest_bug && !io_port == QXL_IO_RESET) {", "return;", "if (d->revision...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 24, 26 ], [ 28, 30 ], [ 32 ], [ 37 ], [ 39, 41, 43, 45, 47, 49, 51, 53, 55, 58, 60 ], [ 64, 66 ...
1,887
static int decode_frame_byterun1(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { IffContext *s = avctx->priv_data; const uint8_t *buf = avpkt->data; unsigned buf_size = avpkt->size; const uint8_t *buf_end = buf+buf_size...
false
FFmpeg
fe51b5ce504d118757407c0855e957e97ca90f78
static int decode_frame_byterun1(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { IffContext *s = avctx->priv_data; const uint8_t *buf = avpkt->data; unsigned buf_size = avpkt->size; const uint8_t *buf_end = buf+buf_size...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { IffContext *s = VAR_0->priv_data; const uint8_t *VAR_4 = VAR_3->VAR_1; unsigned VAR_5 = VAR_3->size; const uint8_t *VAR_6 = VAR_4+VAR_5; unsigned VAR_7...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "IffContext *s = VAR_0->priv_data;", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "unsigned VAR_5 = VAR_3->size;", "const uint8_t *VAR_6 = VAR_4+VAR_5;", "unsigned VAR_7, VAR_8, VAR_9;", "if (VAR_0->reget_buffer(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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
1,888
static void avc_loopfilter_luma_inter_edge_ver_msa(uint8_t *data, uint8_t bs0, uint8_t bs1, uint8_t bs2, uint8_t bs3, uint8_t tc0, uint8_t tc1, ...
false
FFmpeg
bcd7bf7eeb09a395cc01698842d1b8be9af483fc
static void avc_loopfilter_luma_inter_edge_ver_msa(uint8_t *data, uint8_t bs0, uint8_t bs1, uint8_t bs2, uint8_t bs3, uint8_t tc0, uint8_t tc1, ...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t *VAR_0, uint8_t VAR_1, uint8_t VAR_2, uint8_t VAR_3, uint8_t VAR_4, uint8_t VAR_5, uint8_t VAR_6, ...
[ "static void FUNC_0(uint8_t *VAR_0,\nuint8_t VAR_1, uint8_t VAR_2,\nuint8_t VAR_3, uint8_t VAR_4,\nuint8_t VAR_5, uint8_t VAR_6,\nuint8_t VAR_7, uint8_t VAR_8,\nuint8_t VAR_9,\nuint8_t VAR_10,\nuint32_t VAR_11)\n{", "uint8_t *src;", "v16u8 beta, tmp_vec, bs = { 0 };", "v16u8 tc = { 0 };", "v16u8 is_less_tha...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9, 11, 13, 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
1,889
static void dvbsub_parse_region_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { DVBSubContext *ctx = avctx->priv_data; const uint8_t *buf_end = buf + buf_size; int region_id, object_id; DVBSubRegion *region; DVBSubObject *object; ...
false
FFmpeg
607ad990d31e6be52980970e5ce8cd25ab3de812
static void dvbsub_parse_region_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { DVBSubContext *ctx = avctx->priv_data; const uint8_t *buf_end = buf + buf_size; int region_id, object_id; DVBSubRegion *region; DVBSubObject *object; ...
{ "code": [], "line_no": [] }
static void 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; DVBSubRegion *region; DVBSubObject *object; DVBSubObjectDisplay *display; ...
[ "static void 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;", "DVBSubRegion *region;", "DVBSubObject *object;", "DVBSubObjectDisplay *display;", "int VAR_6;", "if (VAR_2 < 10)\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25, 27 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ], [ 53 ], [ 57 ], [ 61...
1,890
static void sdhci_initfn(Object *obj) { SDHCIState *s = SDHCI(obj); DriveInfo *di; di = drive_get_next(IF_SD); s->card = sd_init(di ? blk_bs(blk_by_legacy_dinfo(di)) : NULL, false); if (s->card == NULL) { exit(1); } s->eject_cb = qemu_allocate_irq(sdhci_insert_eject_cb, s,...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void sdhci_initfn(Object *obj) { SDHCIState *s = SDHCI(obj); DriveInfo *di; di = drive_get_next(IF_SD); s->card = sd_init(di ? blk_bs(blk_by_legacy_dinfo(di)) : NULL, false); if (s->card == NULL) { exit(1); } s->eject_cb = qemu_allocate_irq(sdhci_insert_eject_cb, s,...
{ "code": [], "line_no": [] }
static void FUNC_0(Object *VAR_0) { SDHCIState *s = SDHCI(VAR_0); DriveInfo *di; di = drive_get_next(IF_SD); s->card = sd_init(di ? blk_bs(blk_by_legacy_dinfo(di)) : NULL, false); if (s->card == NULL) { exit(1); } s->eject_cb = qemu_allocate_irq(sdhci_insert_eject_cb, s, 0...
[ "static void FUNC_0(Object *VAR_0)\n{", "SDHCIState *s = SDHCI(VAR_0);", "DriveInfo *di;", "di = drive_get_next(IF_SD);", "s->card = sd_init(di ? blk_bs(blk_by_legacy_dinfo(di)) : NULL, false);", "if (s->card == NULL) {", "exit(1);", "}", "s->eject_cb = qemu_allocate_irq(sdhci_insert_eject_cb, s, 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 ], [ 29 ], [ 31 ], [ 33 ] ]
1,891
static int print_ptr(DeviceState *dev, Property *prop, char *dest, size_t len) { void **ptr = qdev_get_prop_ptr(dev, prop); return snprintf(dest, len, "<%p>", *ptr); }
false
qemu
036f7166c73a9e0cc1b2f10c03763e61894a1033
static int print_ptr(DeviceState *dev, Property *prop, char *dest, size_t len) { void **ptr = qdev_get_prop_ptr(dev, prop); return snprintf(dest, len, "<%p>", *ptr); }
{ "code": [], "line_no": [] }
static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, char *VAR_2, size_t VAR_3) { void **VAR_4 = qdev_get_prop_ptr(VAR_0, VAR_1); return snprintf(VAR_2, VAR_3, "<%p>", *VAR_4); }
[ "static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, char *VAR_2, size_t VAR_3)\n{", "void **VAR_4 = qdev_get_prop_ptr(VAR_0, VAR_1);", "return snprintf(VAR_2, VAR_3, \"<%p>\", *VAR_4);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
1,892
static ssize_t drop_sync(int fd, size_t size) { ssize_t ret, dropped = size; uint8_t *buffer = g_malloc(MIN(65536, size)); while (size > 0) { ret = read_sync(fd, buffer, MIN(65536, size)); if (ret < 0) { g_free(buffer); return ret; } asse...
false
qemu
1a6245a5b0b4e8d822c739b403fc67c8a7bc8d12
static ssize_t drop_sync(int fd, size_t size) { ssize_t ret, dropped = size; uint8_t *buffer = g_malloc(MIN(65536, size)); while (size > 0) { ret = read_sync(fd, buffer, MIN(65536, size)); if (ret < 0) { g_free(buffer); return ret; } asse...
{ "code": [], "line_no": [] }
static ssize_t FUNC_0(int fd, size_t size) { ssize_t ret, dropped = size; uint8_t *buffer = g_malloc(MIN(65536, size)); while (size > 0) { ret = read_sync(fd, buffer, MIN(65536, size)); if (ret < 0) { g_free(buffer); return ret; } assert(...
[ "static ssize_t FUNC_0(int fd, size_t size)\n{", "ssize_t ret, dropped = size;", "uint8_t *buffer = g_malloc(MIN(65536, size));", "while (size > 0) {", "ret = read_sync(fd, buffer, MIN(65536, size));", "if (ret < 0) {", "g_free(buffer);", "return ret;", "}", "assert(ret <= size);", "size -= ret;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ] ]
1,893
static int coroutine_fn iscsi_co_flush(BlockDriverState *bs) { IscsiLun *iscsilun = bs->opaque; struct IscsiTask iTask; if (bs->sg) { return 0; } if (!iscsilun->force_next_flush) { return 0; } iscsilun->force_next_flush = false; iscsi_co_init_iscsitask(is...
false
qemu
b192af8acc597a6e8068873434e56e0c7de1b7d3
static int coroutine_fn iscsi_co_flush(BlockDriverState *bs) { IscsiLun *iscsilun = bs->opaque; struct IscsiTask iTask; if (bs->sg) { return 0; } if (!iscsilun->force_next_flush) { return 0; } iscsilun->force_next_flush = false; iscsi_co_init_iscsitask(is...
{ "code": [], "line_no": [] }
static int VAR_0 iscsi_co_flush(BlockDriverState *bs) { IscsiLun *iscsilun = bs->opaque; struct IscsiTask iTask; if (bs->sg) { return 0; } if (!iscsilun->force_next_flush) { return 0; } iscsilun->force_next_flush = false; iscsi_co_init_iscsitask(iscsilun,...
[ "static int VAR_0 iscsi_co_flush(BlockDriverState *bs)\n{", "IscsiLun *iscsilun = bs->opaque;", "struct IscsiTask iTask;", "if (bs->sg) {", "return 0;", "}", "if (!iscsilun->force_next_flush) {", "return 0;", "}", "iscsilun->force_next_flush = false;", "iscsi_co_init_iscsitask(iscsilun, &iTask);...
[ 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 29 ], [ 31, 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53...
1,895
static void mmio_ide_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { MMIOState *s = opaque; addr >>= s->shift; if (addr & 7) ide_ioport_write(&s->bus, addr, val); else ide_data_writew(&s->bus, 0, val); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void mmio_ide_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { MMIOState *s = opaque; addr >>= s->shift; if (addr & 7) ide_ioport_write(&s->bus, addr, val); else ide_data_writew(&s->bus, 0, val); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { MMIOState *s = VAR_0; VAR_1 >>= s->shift; if (VAR_1 & 7) ide_ioport_write(&s->bus, VAR_1, VAR_2); else ide_data_writew(&s->bus, 0, VAR_2); }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "MMIOState *s = VAR_0;", "VAR_1 >>= s->shift;", "if (VAR_1 & 7)\nide_ioport_write(&s->bus, VAR_1, VAR_2);", "else\nide_data_writew(&s->bus, 0, VAR_2);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ] ]
1,897
static int vmdaudio_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; VmdAudioContext *s = avctx->priv_data; int block_type; unsign...
false
FFmpeg
504dff8e4ec7e282bed5bf1f31d5ede765643d3e
static int vmdaudio_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; VmdAudioContext *s = avctx->priv_data; int block_type; unsign...
{ "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; VmdAudioContext *s = VAR_0->priv_data; int VAR_6; unsigned char *VAR_7 = (unsig...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "VmdAudioContext *s = VAR_0->priv_data;", "int VAR_6;", "unsigned char *VAR_7 = (unsigned char *)VAR_1;", "if (VAR_5 < 16) {", "av_log(VAR_0, A...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
1,898
static int usb_parse(const char *cmdline) { int r; r = usb_device_add(cmdline); if (r < 0) { fprintf(stderr, "qemu: could not add USB device '%s'\n", cmdline); } return r; }
false
qemu
f61eddcb2bb5cbbdd1d911b7e937db9affc29028
static int usb_parse(const char *cmdline) { int r; r = usb_device_add(cmdline); if (r < 0) { fprintf(stderr, "qemu: could not add USB device '%s'\n", cmdline); } return r; }
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0) { int VAR_1; VAR_1 = usb_device_add(VAR_0); if (VAR_1 < 0) { fprintf(stderr, "qemu: could not add USB device '%s'\n", VAR_0); } return VAR_1; }
[ "static int FUNC_0(const char *VAR_0)\n{", "int VAR_1;", "VAR_1 = usb_device_add(VAR_0);", "if (VAR_1 < 0) {", "fprintf(stderr, \"qemu: could not add USB device '%s'\\n\", VAR_0);", "}", "return VAR_1;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
1,899
static int count_contiguous_free_clusters(uint64_t nb_clusters, uint64_t *l2_table) { int i; for (i = 0; i < nb_clusters; i++) { int type = qcow2_get_cluster_type(be64_to_cpu(l2_table[i])); if (type != QCOW2_CLUSTER_UNALLOCATED) { break; } } return i; ...
false
qemu
b6d36def6d9e9fd187327182d0abafc9b7085d8f
static int count_contiguous_free_clusters(uint64_t nb_clusters, uint64_t *l2_table) { int i; for (i = 0; i < nb_clusters; i++) { int type = qcow2_get_cluster_type(be64_to_cpu(l2_table[i])); if (type != QCOW2_CLUSTER_UNALLOCATED) { break; } } return i; ...
{ "code": [], "line_no": [] }
static int FUNC_0(uint64_t VAR_0, uint64_t *VAR_1) { int VAR_2; for (VAR_2 = 0; VAR_2 < VAR_0; VAR_2++) { int type = qcow2_get_cluster_type(be64_to_cpu(VAR_1[VAR_2])); if (type != QCOW2_CLUSTER_UNALLOCATED) { break; } } return VAR_2; }
[ "static int FUNC_0(uint64_t VAR_0, uint64_t *VAR_1)\n{", "int VAR_2;", "for (VAR_2 = 0; VAR_2 < VAR_0; VAR_2++) {", "int type = qcow2_get_cluster_type(be64_to_cpu(VAR_1[VAR_2]));", "if (type != QCOW2_CLUSTER_UNALLOCATED) {", "break;", "}", "}", "return VAR_2;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
1,901
void bdrv_set_geometry_hint(BlockDriverState *bs, int cyls, int heads, int secs) { bs->cyls = cyls; bs->heads = heads; bs->secs = secs; }
false
qemu
2b584959ed300ddff4acba0d7554becad5f274fd
void bdrv_set_geometry_hint(BlockDriverState *bs, int cyls, int heads, int secs) { bs->cyls = cyls; bs->heads = heads; bs->secs = secs; }
{ "code": [], "line_no": [] }
void FUNC_0(BlockDriverState *VAR_0, int VAR_1, int VAR_2, int VAR_3) { VAR_0->VAR_1 = VAR_1; VAR_0->VAR_2 = VAR_2; VAR_0->VAR_3 = VAR_3; }
[ "void FUNC_0(BlockDriverState *VAR_0,\nint VAR_1, int VAR_2, int VAR_3)\n{", "VAR_0->VAR_1 = VAR_1;", "VAR_0->VAR_2 = VAR_2;", "VAR_0->VAR_3 = VAR_3;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
1,903
static BlockDriverState *bdrv_new_open(const char *filename, const char *fmt, int flags) { BlockDriverState *bs; BlockDriver *drv; char password[256]; bs = bdrv_new(""); if (!bs) { error_report("Not enou...
false
qemu
ad7171394f2fe3f9b5fe02f0c62496291a859a92
static BlockDriverState *bdrv_new_open(const char *filename, const char *fmt, int flags) { BlockDriverState *bs; BlockDriver *drv; char password[256]; bs = bdrv_new(""); if (!bs) { error_report("Not enou...
{ "code": [], "line_no": [] }
static BlockDriverState *FUNC_0(const char *filename, const char *fmt, int flags) { BlockDriverState *bs; BlockDriver *drv; char VAR_0[256]; bs = bdrv_new(""); if (!bs) { error_report("Not enough memory"...
[ "static BlockDriverState *FUNC_0(const char *filename,\nconst char *fmt,\nint flags)\n{", "BlockDriverState *bs;", "BlockDriver *drv;", "char VAR_0[256];", "bs = bdrv_new(\"\");", "if (!bs) {", "error_report(\"Not enough memory\");", "goto fail;", "}", "if (fmt) {", "drv = bdrv_find_format(fmt);...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
1,904
static uint32_t bitband_readl(void *opaque, target_phys_addr_t offset) { uint32_t addr; uint32_t mask; uint32_t v; addr = bitband_addr(opaque, offset) & ~3; mask = (1 << ((offset >> 2) & 31)); mask = tswap32(mask); cpu_physical_memory_read(addr, (uint8_t *)&v, 4); return (v & ma...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static uint32_t bitband_readl(void *opaque, target_phys_addr_t offset) { uint32_t addr; uint32_t mask; uint32_t v; addr = bitband_addr(opaque, offset) & ~3; mask = (1 << ((offset >> 2) & 31)); mask = tswap32(mask); cpu_physical_memory_read(addr, (uint8_t *)&v, 4); return (v & ma...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset) { uint32_t addr; uint32_t mask; uint32_t v; addr = bitband_addr(opaque, offset) & ~3; mask = (1 << ((offset >> 2) & 31)); mask = tswap32(mask); cpu_physical_memory_read(addr, (uint8_t *)&v, 4); return (v & mask) != ...
[ "static uint32_t FUNC_0(void *opaque, target_phys_addr_t offset)\n{", "uint32_t addr;", "uint32_t mask;", "uint32_t v;", "addr = bitband_addr(opaque, offset) & ~3;", "mask = (1 << ((offset >> 2) & 31));", "mask = tswap32(mask);", "cpu_physical_memory_read(addr, (uint8_t *)&v, 4);", "return (v & mask...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
1,906
int64_t qemu_strtosz_MiB(const char *nptr, char **end) { return do_strtosz(nptr, end, 'M', 1024); }
false
qemu
f17fd4fdf0df3d2f3444399d04c38d22b9a3e1b7
int64_t qemu_strtosz_MiB(const char *nptr, char **end) { return do_strtosz(nptr, end, 'M', 1024); }
{ "code": [], "line_no": [] }
int64_t FUNC_0(const char *nptr, char **end) { return do_strtosz(nptr, end, 'M', 1024); }
[ "int64_t FUNC_0(const char *nptr, char **end)\n{", "return do_strtosz(nptr, end, 'M', 1024);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
1,907
static void to_json(const QObject *obj, QString *str, int pretty, int indent) { switch (qobject_type(obj)) { case QTYPE_QINT: { QInt *val = qobject_to_qint(obj); char buffer[1024]; snprintf(buffer, sizeof(buffer), "%" PRId64, qint_get_int(val)); qstring_append(str, buffe...
false
qemu
e2ec3f976803b360c70d9ae2ba13852fa5d11665
static void to_json(const QObject *obj, QString *str, int pretty, int indent) { switch (qobject_type(obj)) { case QTYPE_QINT: { QInt *val = qobject_to_qint(obj); char buffer[1024]; snprintf(buffer, sizeof(buffer), "%" PRId64, qint_get_int(val)); qstring_append(str, buffe...
{ "code": [], "line_no": [] }
static void FUNC_0(const QObject *VAR_0, QString *VAR_1, int VAR_2, int VAR_3) { switch (qobject_type(VAR_0)) { case QTYPE_QINT: { QInt *val = qobject_to_qint(VAR_0); char VAR_9[1024]; snprintf(VAR_9, sizeof(VAR_9), "%" PRId64, qint_get_int(val)); qstring_append(VAR_1, V...
[ "static void FUNC_0(const QObject *VAR_0, QString *VAR_1, int VAR_2, int VAR_3)\n{", "switch (qobject_type(VAR_0)) {", "case QTYPE_QINT: {", "QInt *val = qobject_to_qint(VAR_0);", "char VAR_9[1024];", "snprintf(VAR_9, sizeof(VAR_9), \"%\" PRId64, qint_get_int(val));", "qstring_append(VAR_1, 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, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [...
1,908
static int rm_assemble_video_frame(AVFormatContext *s, RMContext *rm, AVPacket *pkt, int len) { ByteIOContext *pb = &s->pb; int hdr, seq, pic_num, len2, pos; int type; int ssize; hdr = get_byte(pb); len--; type = hdr >> 6; switch(type){ case 0: // slice case 2: // last sl...
false
FFmpeg
27a2f87da8012efd31f0df063072c16345fbe115
static int rm_assemble_video_frame(AVFormatContext *s, RMContext *rm, AVPacket *pkt, int len) { ByteIOContext *pb = &s->pb; int hdr, seq, pic_num, len2, pos; int type; int ssize; hdr = get_byte(pb); len--; type = hdr >> 6; switch(type){ case 0: case 2: seq = ge...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, RMContext *VAR_1, AVPacket *VAR_2, int VAR_3) { ByteIOContext *pb = &VAR_0->pb; int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9; int VAR_10; VAR_4 = get_byte(pb); VAR_3--; VAR_9 = VAR_4 >> 6; switch(VAR_9){ case 0: case 2: ...
[ "static int FUNC_0(AVFormatContext *VAR_0, RMContext *VAR_1, AVPacket *VAR_2, int VAR_3)\n{", "ByteIOContext *pb = &VAR_0->pb;", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "int VAR_9;", "int VAR_10;", "VAR_4 = get_byte(pb); VAR_3--;", "VAR_9 = VAR_4 >> 6;", "switch(VAR_9){", "case 0:\ncase 2:\nVAR_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...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41, 43 ], [ 45 ], [ 47 ...
1,910
static int mux_proc_byte(CharDriverState *chr, MuxDriver *d, int ch) { if (d->term_got_escape) { d->term_got_escape = 0; if (ch == term_escape_char) goto send_char; switch(ch) { case '?': case 'h': mux_print_help(chr); break; ...
false
qemu
90f998f5f4267a0c22e983f533d19b9de1849283
static int mux_proc_byte(CharDriverState *chr, MuxDriver *d, int ch) { if (d->term_got_escape) { d->term_got_escape = 0; if (ch == term_escape_char) goto send_char; switch(ch) { case '?': case 'h': mux_print_help(chr); break; ...
{ "code": [], "line_no": [] }
static int FUNC_0(CharDriverState *VAR_0, MuxDriver *VAR_1, int VAR_2) { if (VAR_1->term_got_escape) { VAR_1->term_got_escape = 0; if (VAR_2 == term_escape_char) goto send_char; switch(VAR_2) { case '?': case 'h': mux_print_help(VAR_0); ...
[ "static int FUNC_0(CharDriverState *VAR_0, MuxDriver *VAR_1, int VAR_2)\n{", "if (VAR_1->term_got_escape) {", "VAR_1->term_got_escape = 0;", "if (VAR_2 == term_escape_char)\ngoto send_char;", "switch(VAR_2) {", "case '?':\ncase 'h':\nmux_print_help(VAR_0);", "break;", "case 'x':\n{", "const char *VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15, 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ...
1,911
static void win_chr_readfile(CharDriverState *chr) { WinCharState *s = chr->opaque; int ret, err; uint8_t buf[1024]; DWORD size; ZeroMemory(&s->orecv, sizeof(s->orecv)); s->orecv.hEvent = s->hrecv; ret = ReadFile(s->hcom, buf, s->len, &size, &s->orecv); if (!ret) { er...
false
qemu
9bd7854e1e5d6f4cfe4558090bbd9493c12bf846
static void win_chr_readfile(CharDriverState *chr) { WinCharState *s = chr->opaque; int ret, err; uint8_t buf[1024]; DWORD size; ZeroMemory(&s->orecv, sizeof(s->orecv)); s->orecv.hEvent = s->hrecv; ret = ReadFile(s->hcom, buf, s->len, &size, &s->orecv); if (!ret) { er...
{ "code": [], "line_no": [] }
static void FUNC_0(CharDriverState *VAR_0) { WinCharState *s = VAR_0->opaque; int VAR_1, VAR_2; uint8_t buf[1024]; DWORD size; ZeroMemory(&s->orecv, sizeof(s->orecv)); s->orecv.hEvent = s->hrecv; VAR_1 = ReadFile(s->hcom, buf, s->len, &size, &s->orecv); if (!VAR_1) { ...
[ "static void FUNC_0(CharDriverState *VAR_0)\n{", "WinCharState *s = VAR_0->opaque;", "int VAR_1, VAR_2;", "uint8_t buf[1024];", "DWORD size;", "ZeroMemory(&s->orecv, sizeof(s->orecv));", "s->orecv.hEvent = s->hrecv;", "VAR_1 = ReadFile(s->hcom, buf, s->len, &size, &s->orecv);", "if (!VAR_1) {", "V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
1,912
void mips_r4k_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initrd_filename;...
false
qemu
8297be80f7cf71e09617669a8bd8b2836dcfd4c3
void mips_r4k_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initrd_filename;...
{ "code": [], "line_no": [] }
void FUNC_0(MachineState *VAR_0) { ram_addr_t ram_size = VAR_0->ram_size; const char *VAR_1 = VAR_0->VAR_1; const char *VAR_2 = VAR_0->VAR_2; const char *VAR_3 = VAR_0->VAR_3; const char *VAR_4 = VAR_0->VAR_4; char *VAR_5; MemoryRegion *address_space_mem = get_system_memory(); M...
[ "void FUNC_0(MachineState *VAR_0)\n{", "ram_addr_t ram_size = VAR_0->ram_size;", "const char *VAR_1 = VAR_0->VAR_1;", "const char *VAR_2 = VAR_0->VAR_2;", "const char *VAR_3 = VAR_0->VAR_3;", "const char *VAR_4 = VAR_0->VAR_4;", "char *VAR_5;", "MemoryRegion *address_space_mem = get_system_memory();",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ...
1,913
static int write_note(struct memelfnote *men, int fd) { struct elf_note en; en.n_namesz = men->namesz; en.n_type = men->type; en.n_descsz = men->datasz; bswap_note(&en); if (dump_write(fd, &en, sizeof(en)) != 0) return (-1); if (dump_write(fd, men->name, men->namesz_ro...
false
qemu
80f5ce758ac277e76c016dd7c0b246e40d4fca2d
static int write_note(struct memelfnote *men, int fd) { struct elf_note en; en.n_namesz = men->namesz; en.n_type = men->type; en.n_descsz = men->datasz; bswap_note(&en); if (dump_write(fd, &en, sizeof(en)) != 0) return (-1); if (dump_write(fd, men->name, men->namesz_ro...
{ "code": [], "line_no": [] }
static int FUNC_0(struct memelfnote *VAR_0, int VAR_1) { struct elf_note VAR_2; VAR_2.n_namesz = VAR_0->namesz; VAR_2.n_type = VAR_0->type; VAR_2.n_descsz = VAR_0->datasz; bswap_note(&VAR_2); if (dump_write(VAR_1, &VAR_2, sizeof(VAR_2)) != 0) return (-1); if (dump_writ...
[ "static int FUNC_0(struct memelfnote *VAR_0, int VAR_1)\n{", "struct elf_note VAR_2;", "VAR_2.n_namesz = VAR_0->namesz;", "VAR_2.n_type = VAR_0->type;", "VAR_2.n_descsz = VAR_0->datasz;", "bswap_note(&VAR_2);", "if (dump_write(VAR_1, &VAR_2, sizeof(VAR_2)) != 0)\nreturn (-1);", "if (dump_write(VAR_1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 35 ], [ 37 ] ]
1,916
static int vhost_virtqueue_start(struct vhost_dev *dev, struct VirtIODevice *vdev, struct vhost_virtqueue *vq, unsigned idx) { hwaddr s, l, a; int r; int vhost_vq_index = idx - dev->vq_index; struct v...
false
qemu
95129d6fc9ead97155627a4ca0cfd37282883658
static int vhost_virtqueue_start(struct vhost_dev *dev, struct VirtIODevice *vdev, struct vhost_virtqueue *vq, unsigned idx) { hwaddr s, l, a; int r; int vhost_vq_index = idx - dev->vq_index; struct v...
{ "code": [], "line_no": [] }
static int FUNC_0(struct vhost_dev *VAR_0, struct VirtIODevice *VAR_1, struct vhost_virtqueue *VAR_2, unsigned VAR_3) { hwaddr s, l, a; int VAR_4; int VAR_5 = VAR_3 - VAR_0->vq_index; struct vhost_vri...
[ "static int FUNC_0(struct vhost_dev *VAR_0,\nstruct VirtIODevice *VAR_1,\nstruct vhost_virtqueue *VAR_2,\nunsigned VAR_3)\n{", "hwaddr s, l, a;", "int VAR_4;", "int VAR_5 = VAR_3 - VAR_0->vq_index;", "struct vhost_vring_file VAR_6 = {", ".index = VAR_5\n};", "struct vhost_vring_state VAR_7 = {", ".ind...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [...
1,918
void vnc_client_read(void *opaque) { VncState *vs = opaque; long ret; #ifdef CONFIG_VNC_SASL if (vs->sasl.conn && vs->sasl.runSSF) ret = vnc_client_read_sasl(vs); else #endif /* CONFIG_VNC_SASL */ #ifdef CONFIG_VNC_WS if (vs->encode_ws) { ret = vnc_client_read_ws...
false
qemu
8e9b0d24fb986d4241ae3b77752eca5dab4cb486
void vnc_client_read(void *opaque) { VncState *vs = opaque; long ret; #ifdef CONFIG_VNC_SASL if (vs->sasl.conn && vs->sasl.runSSF) ret = vnc_client_read_sasl(vs); else #endif #ifdef CONFIG_VNC_WS if (vs->encode_ws) { ret = vnc_client_read_ws(vs); if...
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0) { VncState *vs = VAR_0; long VAR_2; #ifdef CONFIG_VNC_SASL if (vs->sasl.conn && vs->sasl.runSSF) VAR_2 = vnc_client_read_sasl(vs); else #endif #ifdef CONFIG_VNC_WS if (vs->encode_ws) { VAR_2 = vnc_client_read_ws(vs); if (VAR...
[ "void FUNC_0(void *VAR_0)\n{", "VncState *vs = VAR_0;", "long VAR_2;", "#ifdef CONFIG_VNC_SASL\nif (vs->sasl.conn && vs->sasl.runSSF)\nVAR_2 = vnc_client_read_sasl(vs);", "else\n#endif\n#ifdef CONFIG_VNC_WS\nif (vs->encode_ws) {", "VAR_2 = vnc_client_read_ws(vs);", "if (VAR_2 == -1) {", "vnc_disconnec...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13, 15 ], [ 17, 19, 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49...
1,919
static void update_sono_yuv(AVFrame *sono, const ColorFloat *c, int idx) { int x, fmt = sono->format, w = sono->width; uint8_t *lpy = sono->data[0] + idx * sono->linesize[0]; uint8_t *lpu = sono->data[1] + idx * sono->linesize[1]; uint8_t *lpv = sono->data[2] + idx * sono->linesize[2]; for (...
false
FFmpeg
6df2c94130b026930d1f7148699925dcaa08759c
static void update_sono_yuv(AVFrame *sono, const ColorFloat *c, int idx) { int x, fmt = sono->format, w = sono->width; uint8_t *lpy = sono->data[0] + idx * sono->linesize[0]; uint8_t *lpu = sono->data[1] + idx * sono->linesize[1]; uint8_t *lpv = sono->data[2] + idx * sono->linesize[2]; for (...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFrame *VAR_0, const ColorFloat *VAR_1, int VAR_2) { int VAR_3, VAR_4 = VAR_0->format, VAR_5 = VAR_0->width; uint8_t *lpy = VAR_0->data[0] + VAR_2 * VAR_0->linesize[0]; uint8_t *lpu = VAR_0->data[1] + VAR_2 * VAR_0->linesize[1]; uint8_t *lpv = VAR_0->data[2] + VAR_2 * VAR_0->lin...
[ "static void FUNC_0(AVFrame *VAR_0, const ColorFloat *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4 = VAR_0->format, VAR_5 = VAR_0->width;", "uint8_t *lpy = VAR_0->data[0] + VAR_2 * VAR_0->linesize[0];", "uint8_t *lpu = VAR_0->data[1] + VAR_2 * VAR_0->linesize[1];", "uint8_t *lpv = VAR_0->data[2] + VAR_2 * VAR_0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
1,920
static int find_pte32(CPUPPCState *env, struct mmu_ctx_hash32 *ctx, target_ulong sr, target_ulong eaddr, int rwx) { hwaddr pteg_off, pte_offset; ppc_hash_pte32_t pte; hwaddr hash; uint32_t vsid, pgidx, ptem; int ret; ret = -1; /* No entry found */ vsid = sr &...
false
qemu
7f3bdc2d8e17999a26ac0f6649caef92fedfc1c0
static int find_pte32(CPUPPCState *env, struct mmu_ctx_hash32 *ctx, target_ulong sr, target_ulong eaddr, int rwx) { hwaddr pteg_off, pte_offset; ppc_hash_pte32_t pte; hwaddr hash; uint32_t vsid, pgidx, ptem; int ret; ret = -1; vsid = sr & SR32_VSID; ctx...
{ "code": [], "line_no": [] }
static int FUNC_0(CPUPPCState *VAR_0, struct mmu_ctx_hash32 *VAR_1, target_ulong VAR_2, target_ulong VAR_3, int VAR_4) { hwaddr pteg_off, pte_offset; ppc_hash_pte32_t pte; hwaddr hash; uint32_t vsid, pgidx, ptem; int VAR_5; VAR_5 = -1; vsid = VAR_2 & SR32_VS...
[ "static int FUNC_0(CPUPPCState *VAR_0, struct mmu_ctx_hash32 *VAR_1,\ntarget_ulong VAR_2, target_ulong VAR_3, int VAR_4)\n{", "hwaddr pteg_off, pte_offset;", "ppc_hash_pte32_t pte;", "hwaddr hash;", "uint32_t vsid, pgidx, ptem;", "int VAR_5;", "VAR_5 = -1;", "vsid = VAR_2 & SR32_VSID;", "VAR_1->key ...
[ 0, 0, 0, 0, 0, 0, 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 ], [ 37, 39, 41 ], [ 47, 49, 51, 53 ], [ 55 ], [ 57 ], [...
1,921
static void csrhci_in_packet_vendor(struct csrhci_s *s, int ocf, uint8_t *data, int len) { int offset; uint8_t *rpkt; switch (ocf) { case OCF_CSR_SEND_FIRMWARE: /* Check if this is the bd_address packet */ if (len >= 18 + 8 && data[12] == 0x01 && data[13] == 0x0...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static void csrhci_in_packet_vendor(struct csrhci_s *s, int ocf, uint8_t *data, int len) { int offset; uint8_t *rpkt; switch (ocf) { case OCF_CSR_SEND_FIRMWARE: if (len >= 18 + 8 && data[12] == 0x01 && data[13] == 0x00) { offset = 18; ...
{ "code": [], "line_no": [] }
static void FUNC_0(struct csrhci_s *VAR_0, int VAR_1, uint8_t *VAR_2, int VAR_3) { int VAR_4; uint8_t *rpkt; switch (VAR_1) { case OCF_CSR_SEND_FIRMWARE: if (VAR_3 >= 18 + 8 && VAR_2[12] == 0x01 && VAR_2[13] == 0x00) { VAR_4 = 18; VAR_...
[ "static void FUNC_0(struct csrhci_s *VAR_0, int VAR_1,\nuint8_t *VAR_2, int VAR_3)\n{", "int VAR_4;", "uint8_t *rpkt;", "switch (VAR_1) {", "case OCF_CSR_SEND_FIRMWARE:\nif (VAR_3 >= 18 + 8 && VAR_2[12] == 0x01 && VAR_2[13] == 0x00) {", "VAR_4 = 18;", "VAR_0->bd_addr.b[0] = VAR_2[VAR_4 + 7];", "VAR_0-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41, 43, 45 ], [ 47 ], [ 51 ], [ 55 ], [...
1,922
static void spapr_cpu_core_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); dc->realize = spapr_cpu_core_realize; }
false
qemu
7ebaf7955603cc50988e0eafd5e6074320fefc70
static void spapr_cpu_core_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); dc->realize = spapr_cpu_core_realize; }
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->realize = spapr_cpu_core_realize; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->realize = spapr_cpu_core_realize;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
1,923
static int vnc_display_listen(VncDisplay *vd, SocketAddressLegacy **saddr, size_t nsaddr, SocketAddressLegacy **wsaddr, size_t nwsaddr, Error **errp) { size_t ...
false
qemu
bd269ebc82fbaa5fe7ce5bc7c1770ac8acecd884
static int vnc_display_listen(VncDisplay *vd, SocketAddressLegacy **saddr, size_t nsaddr, SocketAddressLegacy **wsaddr, size_t nwsaddr, Error **errp) { size_t ...
{ "code": [], "line_no": [] }
static int FUNC_0(VncDisplay *VAR_0, SocketAddressLegacy **VAR_1, size_t VAR_2, SocketAddressLegacy **VAR_3, size_t VAR_4, Error **VAR_5) { size_t i; fo...
[ "static int FUNC_0(VncDisplay *VAR_0,\nSocketAddressLegacy **VAR_1,\nsize_t VAR_2,\nSocketAddressLegacy **VAR_3,\nsize_t VAR_4,\nError **VAR_5)\n{", "size_t i;", "for (i = 0; i < VAR_2; i++) {", "if (vnc_display_listen_addr(VAR_0, VAR_1[i],\n\"vnc-listen\",\n&VAR_0->lsock,\n&VAR_0->lsock_tag,\n&VAR_0->nlsock,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 19 ], [ 21, 23, 25, 27, 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43, 45, 47, 49, 51 ], [ 53 ], [ 55 ], [ 57 ], [...
1,924
static int do_create_others(int type, struct iovec *iovec) { dev_t rdev; int retval = 0; int offset = PROXY_HDR_SZ; V9fsString oldpath, path; int mode, uid, gid, cur_uid, cur_gid; v9fs_string_init(&path); v9fs_string_init(&oldpath); cur_uid = geteuid(); cur_gid = getegid(...
false
qemu
9fd2ecdc8cb2dc1a8a7c57b6c9c60bc9947b6a73
static int do_create_others(int type, struct iovec *iovec) { dev_t rdev; int retval = 0; int offset = PROXY_HDR_SZ; V9fsString oldpath, path; int mode, uid, gid, cur_uid, cur_gid; v9fs_string_init(&path); v9fs_string_init(&oldpath); cur_uid = geteuid(); cur_gid = getegid(...
{ "code": [], "line_no": [] }
static int FUNC_0(int VAR_0, struct VAR_1 *VAR_1) { dev_t rdev; int VAR_2 = 0; int VAR_3 = PROXY_HDR_SZ; V9fsString oldpath, path; int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; v9fs_string_init(&path); v9fs_string_init(&oldpath); VAR_7 = geteuid(); VAR_8 = getegid(); VAR_...
[ "static int FUNC_0(int VAR_0, struct VAR_1 *VAR_1)\n{", "dev_t rdev;", "int VAR_2 = 0;", "int VAR_3 = PROXY_HDR_SZ;", "V9fsString oldpath, path;", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "v9fs_string_init(&path);", "v9fs_string_init(&oldpath);", "VAR_7 = geteuid();", "VAR_8 = getegid();", "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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
1,925
void blockdev_auto_del(BlockDriverState *bs) { DriveInfo *dinfo = drive_get_by_blockdev(bs); if (dinfo->auto_del) { drive_uninit(dinfo); } }
false
qemu
0fc0f1fa7f86e9f1d480c6508191ca90ac10b32c
void blockdev_auto_del(BlockDriverState *bs) { DriveInfo *dinfo = drive_get_by_blockdev(bs); if (dinfo->auto_del) { drive_uninit(dinfo); } }
{ "code": [], "line_no": [] }
void FUNC_0(BlockDriverState *VAR_0) { DriveInfo *dinfo = drive_get_by_blockdev(VAR_0); if (dinfo->auto_del) { drive_uninit(dinfo); } }
[ "void FUNC_0(BlockDriverState *VAR_0)\n{", "DriveInfo *dinfo = drive_get_by_blockdev(VAR_0);", "if (dinfo->auto_del) {", "drive_uninit(dinfo);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
1,926
void helper_lcall_protected_T0_T1(int shift, int next_eip) { int new_cs, new_eip; uint32_t e1, e2, cpl, dpl, rpl, selector, offset, param_count; uint32_t ss, ss_e1, ss_e2, push_size, sp, type, ss_dpl; uint32_t old_ss, old_esp, val, i, limit; uint8_t *ssp, *old_ssp; new_cs = T0; ...
false
qemu
7e84c2498f0ff3999937d18d1e9abaa030400000
void helper_lcall_protected_T0_T1(int shift, int next_eip) { int new_cs, new_eip; uint32_t e1, e2, cpl, dpl, rpl, selector, offset, param_count; uint32_t ss, ss_e1, ss_e2, push_size, sp, type, ss_dpl; uint32_t old_ss, old_esp, val, i, limit; uint8_t *ssp, *old_ssp; new_cs = T0; ...
{ "code": [], "line_no": [] }
void FUNC_0(int VAR_0, int VAR_1) { int VAR_2, VAR_3; uint32_t e1, e2, cpl, dpl, rpl, selector, offset, param_count; uint32_t ss, ss_e1, ss_e2, push_size, sp, type, ss_dpl; uint32_t old_ss, old_esp, val, i, limit; uint8_t *ssp, *old_ssp; VAR_2 = T0; VAR_3 = T1; if ((VAR_2 ...
[ "void FUNC_0(int VAR_0, int VAR_1)\n{", "int VAR_2, VAR_3;", "uint32_t e1, e2, cpl, dpl, rpl, selector, offset, param_count;", "uint32_t ss, ss_e1, ss_e2, push_size, sp, type, ss_dpl;", "uint32_t old_ss, old_esp, val, i, limit;", "uint8_t *ssp, *old_ssp;", "VAR_2 = T0;", "VAR_3 = T1;", "if ((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 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 51 ...
1,927
static void armv7m_nvic_realize(DeviceState *dev, Error **errp) { NVICState *s = NVIC(dev); SysBusDevice *systick_sbd; Error *err = NULL; s->cpu = ARM_CPU(qemu_get_cpu(0)); assert(s->cpu); if (s->num_irq > NVIC_MAX_IRQ) { error_setg(errp, "num-irq %d exceeds NVIC maximum", s-...
false
qemu
f104919d15a3f0be57a70b5499bc9fa5e06224fd
static void armv7m_nvic_realize(DeviceState *dev, Error **errp) { NVICState *s = NVIC(dev); SysBusDevice *systick_sbd; Error *err = NULL; s->cpu = ARM_CPU(qemu_get_cpu(0)); assert(s->cpu); if (s->num_irq > NVIC_MAX_IRQ) { error_setg(errp, "num-irq %d exceeds NVIC maximum", s-...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { NVICState *s = NVIC(VAR_0); SysBusDevice *systick_sbd; Error *err = NULL; s->cpu = ARM_CPU(qemu_get_cpu(0)); assert(s->cpu); if (s->num_irq > NVIC_MAX_IRQ) { error_setg(VAR_1, "num-irq %d exceeds NVIC maximum", s->num_ir...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "NVICState *s = NVIC(VAR_0);", "SysBusDevice *systick_sbd;", "Error *err = NULL;", "s->cpu = ARM_CPU(qemu_get_cpu(0));", "assert(s->cpu);", "if (s->num_irq > NVIC_MAX_IRQ) {", "error_setg(VAR_1, \"num-irq %d exceeds NVIC maximum\", s->num_irq...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51, 53 ], [...
1,928
static int nprobe(AVFormatContext *s, uint8_t *enc_header, const uint8_t *n_val) { OMAContext *oc = s->priv_data; uint32_t pos, taglen, datalen; struct AVDES av_des; if (!enc_header || !n_val) return -1; pos = OMA_ENC_HEADER_SIZE + oc->k_size; if (!memcmp(&enc_header[pos], "E...
true
FFmpeg
72ec043af4510723c53c729a67be482a14b7c7f3
static int nprobe(AVFormatContext *s, uint8_t *enc_header, const uint8_t *n_val) { OMAContext *oc = s->priv_data; uint32_t pos, taglen, datalen; struct AVDES av_des; if (!enc_header || !n_val) return -1; pos = OMA_ENC_HEADER_SIZE + oc->k_size; if (!memcmp(&enc_header[pos], "E...
{ "code": [ "static int nprobe(AVFormatContext *s, uint8_t *enc_header, const uint8_t *n_val)" ], "line_no": [ 1 ] }
static int FUNC_0(AVFormatContext *VAR_0, uint8_t *VAR_1, const uint8_t *VAR_2) { OMAContext *oc = VAR_0->priv_data; uint32_t pos, taglen, datalen; struct AVDES VAR_3; if (!VAR_1 || !VAR_2) return -1; pos = OMA_ENC_HEADER_SIZE + oc->k_size; if (!memcmp(&VAR_1[pos], "EKB ", 4)...
[ "static int FUNC_0(AVFormatContext *VAR_0, uint8_t *VAR_1, const uint8_t *VAR_2)\n{", "OMAContext *oc = VAR_0->priv_data;", "uint32_t pos, taglen, datalen;", "struct AVDES VAR_3;", "if (!VAR_1 || !VAR_2)\nreturn -1;", "pos = OMA_ENC_HEADER_SIZE + oc->k_size;", "if (!memcmp(&VAR_1[pos], \"EKB \", 4))\npo...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21, 23 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51, 53 ], [ 55 ], [ 57 ...
1,929
static gboolean nbd_negotiate_continue(QIOChannel *ioc, GIOCondition condition, void *opaque) { qemu_coroutine_enter(opaque, NULL); return TRUE; }
true
qemu
0b8b8753e4d94901627b3e86431230f2319215c4
static gboolean nbd_negotiate_continue(QIOChannel *ioc, GIOCondition condition, void *opaque) { qemu_coroutine_enter(opaque, NULL); return TRUE; }
{ "code": [ " qemu_coroutine_enter(opaque, NULL);" ], "line_no": [ 9 ] }
static gboolean FUNC_0(QIOChannel *ioc, GIOCondition condition, void *opaque) { qemu_coroutine_enter(opaque, NULL); return TRUE; }
[ "static gboolean FUNC_0(QIOChannel *ioc,\nGIOCondition condition,\nvoid *opaque)\n{", "qemu_coroutine_enter(opaque, NULL);", "return TRUE;", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ] ]
1,930
void object_add(const char *type, const char *id, const QDict *qdict, Visitor *v, Error **errp) { Object *obj; const QDictEntry *e; Error *local_err = NULL; if (!object_class_by_name(type)) { error_setg(errp, "invalid class name"); return; } obj = ob...
true
qemu
c3481247e58ff3f13337ce0a262b058799bd156c
void object_add(const char *type, const char *id, const QDict *qdict, Visitor *v, Error **errp) { Object *obj; const QDictEntry *e; Error *local_err = NULL; if (!object_class_by_name(type)) { error_setg(errp, "invalid class name"); return; } obj = ob...
{ "code": [ " if (!object_class_by_name(type)) {", " if (!object_dynamic_cast(obj, TYPE_USER_CREATABLE)) {", " error_setg(&local_err, \"object type '%s' isn't supported by object-add\",", " type);", " goto out;" ], "line_no": [ 15, 45, 47, ...
void FUNC_0(const char *VAR_0, const char *VAR_1, const QDict *VAR_2, Visitor *VAR_3, Error **VAR_4) { Object *obj; const QDictEntry *VAR_5; Error *local_err = NULL; if (!object_class_by_name(VAR_0)) { error_setg(VAR_4, "invalid class name"); return; } ...
[ "void FUNC_0(const char *VAR_0, const char *VAR_1, const QDict *VAR_2,\nVisitor *VAR_3, Error **VAR_4)\n{", "Object *obj;", "const QDictEntry *VAR_5;", "Error *local_err = NULL;", "if (!object_class_by_name(VAR_0)) {", "error_setg(VAR_4, \"invalid class name\");", "return;", "}", "obj = object_new(V...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49 ...
1,931
static int create_filtergraph(AVFilterContext *ctx, const AVFrame *in, const AVFrame *out) { ColorSpaceContext *s = ctx->priv; const AVPixFmtDescriptor *in_desc = av_pix_fmt_desc_get(in->format); const AVPixFmtDescriptor *out_desc = av_pix_fmt_desc_get(out->format); ...
true
FFmpeg
531ff7161d9d6b0cf8f71125319c1f5df5041637
static int create_filtergraph(AVFilterContext *ctx, const AVFrame *in, const AVFrame *out) { ColorSpaceContext *s = ctx->priv; const AVPixFmtDescriptor *in_desc = av_pix_fmt_desc_get(in->format); const AVPixFmtDescriptor *out_desc = av_pix_fmt_desc_get(out->format); ...
{ "code": [ " sizeof(*s->in_lumacoef));" ], "line_no": [ 363 ] }
static int FUNC_0(AVFilterContext *VAR_0, const AVFrame *VAR_1, const AVFrame *VAR_2) { ColorSpaceContext *s = VAR_0->priv; const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_1->format); const AVPixFmtDescriptor *VAR_4 = av_pix_fmt_desc_get(VAR_2->format); int...
[ "static int FUNC_0(AVFilterContext *VAR_0,\nconst AVFrame *VAR_1, const AVFrame *VAR_2)\n{", "ColorSpaceContext *s = VAR_0->priv;", "const AVPixFmtDescriptor *VAR_3 = av_pix_fmt_desc_get(VAR_1->format);", "const AVPixFmtDescriptor *VAR_4 = av_pix_fmt_desc_get(VAR_2->format);", "int VAR_5 = 0, VAR_6, VAR_7,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 35 ], [ 37, 39, 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51, 53, 55, 57 ], [ 59 ], [...
1,932
AVResampleContext *av_resample_init(int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff){ AVResampleContext *c= av_mallocz(sizeof(AVResampleContext)); double factor= FFMIN(out_rate * cutoff / in_rate, 1.0); int phase_count= 1<<phase_shift; if (!c) return...
true
FFmpeg
a67cb012e6947fb238193afc0f18114f6e20818c
AVResampleContext *av_resample_init(int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff){ AVResampleContext *c= av_mallocz(sizeof(AVResampleContext)); double factor= FFMIN(out_rate * cutoff / in_rate, 1.0); int phase_count= 1<<phase_shift; if (!c) return...
{ "code": [ " c->src_incr= out_rate;", " c->ideal_dst_incr= c->dst_incr= in_rate * phase_count;", " c->src_incr= out_rate;", " c->ideal_dst_incr= c->dst_incr= in_rate * phase_count;" ], "line_no": [ 43, 45, 43, 45 ] }
AVResampleContext *FUNC_0(int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff){ AVResampleContext *c= av_mallocz(sizeof(AVResampleContext)); double VAR_0= FFMIN(out_rate * cutoff / in_rate, 1.0); int VAR_1= 1<<phase_shift; if (!c) return NULL; c->...
[ "AVResampleContext *FUNC_0(int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff){", "AVResampleContext *c= av_mallocz(sizeof(AVResampleContext));", "double VAR_0= FFMIN(out_rate * cutoff / in_rate, 1.0);", "int VAR_1= 1<<phase_shift;", "if (!c)\nreturn NULL;", "c->phase_s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53...
1,933
static int bdrv_open_common(BlockDriverState *bs, BlockDriverState *file, QDict *options, int flags, BlockDriver *drv, Error **errp) { int ret, open_flags; const char *filename; Error *local_err = NULL; assert(drv != NULL); assert(bs->file == NULL); assert(options != NULL && bs->op...
true
qemu
8f94a6e40e46cbc8e8014da825d25824b1803b34
static int bdrv_open_common(BlockDriverState *bs, BlockDriverState *file, QDict *options, int flags, BlockDriver *drv, Error **errp) { int ret, open_flags; const char *filename; Error *local_err = NULL; assert(drv != NULL); assert(bs->file == NULL); assert(options != NULL && bs->op...
{ "code": [ " error_setg(errp, \"Driver '%s' is not whitelisted\", drv->format_name);" ], "line_no": [ 69 ] }
static int FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1, QDict *VAR_2, int VAR_3, BlockDriver *VAR_4, Error **VAR_5) { int VAR_6, VAR_7; const char *VAR_8; Error *local_err = NULL; assert(VAR_4 != NULL); assert(VAR_0->VAR_1 == NULL); assert(VAR_2 != NULL && VAR_0->VAR_2 ...
[ "static int FUNC_0(BlockDriverState *VAR_0, BlockDriverState *VAR_1,\nQDict *VAR_2, int VAR_3, BlockDriver *VAR_4, Error **VAR_5)\n{", "int VAR_6, VAR_7;", "const char *VAR_8;", "Error *local_err = NULL;", "assert(VAR_4 != NULL);", "assert(VAR_0->VAR_1 == NULL);", "assert(VAR_2 != NULL && VAR_0->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, 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...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [...
1,934
static void usage(void) { printf("qemu-" TARGET_ARCH " version " QEMU_VERSION QEMU_PKGVERSION ", Copyright (c) 2003-2008 Fabrice Bellard\n" "usage: qemu-" TARGET_ARCH " [options] program [arguments...]\n" "Linux CPU emulator (compiled for %s emulation)\n" "\n" "Stan...
true
qemu
703e0e89c669a70bbd6bf33c5e75f910d8d8cca3
static void usage(void) { printf("qemu-" TARGET_ARCH " version " QEMU_VERSION QEMU_PKGVERSION ", Copyright (c) 2003-2008 Fabrice Bellard\n" "usage: qemu-" TARGET_ARCH " [options] program [arguments...]\n" "Linux CPU emulator (compiled for %s emulation)\n" "\n" "Stan...
{ "code": [ " x86_stack_size," ], "line_no": [ 77 ] }
static void FUNC_0(void) { printf("qemu-" TARGET_ARCH " version " QEMU_VERSION QEMU_PKGVERSION ", Copyright (c) 2003-2008 Fabrice Bellard\n" "FUNC_0: qemu-" TARGET_ARCH " [options] program [arguments...]\n" "Linux CPU emulator (compiled for %s emulation)\n" "\n" "St...
[ "static void FUNC_0(void)\n{", "printf(\"qemu-\" TARGET_ARCH \" version \" QEMU_VERSION QEMU_PKGVERSION \", Copyright (c) 2003-2008 Fabrice Bellard\\n\"\n\"FUNC_0: qemu-\" TARGET_ARCH \" [options] program [arguments...]\\n\"\n\"Linux CPU emulator (compiled for %s emulation)\\n\"\n\"\\n\"\n\"Standard options:\\n\"...
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, 67, 69, 71, 73, 75, 77,...
1,935
void visit_end_struct(Visitor *v, Error **errp) { assert(!error_is_set(errp)); v->end_struct(v, errp); }
true
qemu
297a3646c2947ee64a6d42ca264039732c6218e0
void visit_end_struct(Visitor *v, Error **errp) { assert(!error_is_set(errp)); v->end_struct(v, errp); }
{ "code": [ " assert(!error_is_set(errp));", " assert(!error_is_set(errp));", " assert(!error_is_set(errp));" ], "line_no": [ 5, 5, 5 ] }
void FUNC_0(Visitor *VAR_0, Error **VAR_1) { assert(!error_is_set(VAR_1)); VAR_0->end_struct(VAR_0, VAR_1); }
[ "void FUNC_0(Visitor *VAR_0, Error **VAR_1)\n{", "assert(!error_is_set(VAR_1));", "VAR_0->end_struct(VAR_0, VAR_1);", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
1,936
static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st, uint8_t *buf, int buf_size) { RTSPState *rt = s->priv_data; RTSPStream *rtsp_st; fd_set rfds; int fd, fd_max, n, i, ret, tcp_fd; struct timeval tv; for(;;) { if (url_interrupt_cb()...
true
FFmpeg
46ff7a5f4ae05e5e4da33b700604dae2c37bebcb
static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st, uint8_t *buf, int buf_size) { RTSPState *rt = s->priv_data; RTSPStream *rtsp_st; fd_set rfds; int fd, fd_max, n, i, ret, tcp_fd; struct timeval tv; for(;;) { if (url_interrupt_cb()...
{ "code": [ " tcp_fd = fd_max = url_get_file_handle(rt->rtsp_hd);", " FD_SET(tcp_fd, &rfds);" ], "line_no": [ 27, 29 ] }
static int FUNC_0(AVFormatContext *VAR_0, RTSPStream **VAR_1, uint8_t *VAR_2, int VAR_3) { RTSPState *rt = VAR_0->priv_data; RTSPStream *rtsp_st; fd_set rfds; int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; struct timeval VAR_10; for(;;) { if (url_inte...
[ "static int FUNC_0(AVFormatContext *VAR_0, RTSPStream **VAR_1,\nuint8_t *VAR_2, int VAR_3)\n{", "RTSPState *rt = VAR_0->priv_data;", "RTSPStream *rtsp_st;", "fd_set rfds;", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "struct timeval VAR_10;", "for(;;) {", "if (url_interrupt_cb())\nreturn AVERROR(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [...
1,938
static float **alloc_audio_arrays(int channels, int frame_size) { float **audio = av_mallocz_array(channels, sizeof(float *)); if (!audio) return NULL; for (int ch = 0; ch < channels; ch++) { audio[ch] = av_mallocz_array(frame_size, sizeof(float)); if (!audio[ch]) { ...
true
FFmpeg
34c52005605d68f7cd1957b169b6732c7d2447d9
static float **alloc_audio_arrays(int channels, int frame_size) { float **audio = av_mallocz_array(channels, sizeof(float *)); if (!audio) return NULL; for (int ch = 0; ch < channels; ch++) { audio[ch] = av_mallocz_array(frame_size, sizeof(float)); if (!audio[ch]) { ...
{ "code": [ "static float **alloc_audio_arrays(int channels, int frame_size)", " float **audio = av_mallocz_array(channels, sizeof(float *));", " if (!audio)", " return NULL;", " for (int ch = 0; ch < channels; ch++) {", " audio[ch] = av_mallocz_array(frame_size, sizeof(...
static float **FUNC_0(int VAR_0, int VAR_1) { float **VAR_2 = av_mallocz_array(VAR_0, sizeof(float *)); if (!VAR_2) return NULL; for (int VAR_3 = 0; VAR_3 < VAR_0; VAR_3++) { VAR_2[VAR_3] = av_mallocz_array(VAR_1, sizeof(float)); if (!VAR_2[VAR_3]) { ...
[ "static float **FUNC_0(int VAR_0, int VAR_1)\n{", "float **VAR_2 = av_mallocz_array(VAR_0, sizeof(float *));", "if (!VAR_2)\nreturn NULL;", "for (int VAR_3 = 0; VAR_3 < VAR_0; VAR_3++) {", "VAR_2[VAR_3] = av_mallocz_array(VAR_1, sizeof(float));", "if (!VAR_2[VAR_3]) {", "for (VAR_3--; VAR_3 >= 0; VAR_3-...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
1,939
static void unterminated_sq_string(void) { QObject *obj = qobject_from_json("'abc", NULL); g_assert(obj == NULL); }
true
qemu
aec4b054ea36c53c8b887da99f20010133b84378
static void unterminated_sq_string(void) { QObject *obj = qobject_from_json("'abc", NULL); g_assert(obj == NULL); }
{ "code": [ " QObject *obj = qobject_from_json(\"'abc\", NULL);" ], "line_no": [ 5 ] }
static void FUNC_0(void) { QObject *obj = qobject_from_json("'abc", NULL); g_assert(obj == NULL); }
[ "static void FUNC_0(void)\n{", "QObject *obj = qobject_from_json(\"'abc\", NULL);", "g_assert(obj == NULL);", "}" ]
[ 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
1,940
static inline bool use_goto_tb(DisasContext *s, int n, uint64_t dest) { /* No direct tb linking with singlestep (either QEMU's or the ARM * debug architecture kind) or deterministic io */ if (s->base.singlestep_enabled || s->ss_active || (s->base.tb->cflags & CF_LAST_IO)) { return false;...
true
qemu
c5a49c63fa26e8825ad101dfe86339ae4c216539
static inline bool use_goto_tb(DisasContext *s, int n, uint64_t dest) { if (s->base.singlestep_enabled || s->ss_active || (s->base.tb->cflags & CF_LAST_IO)) { return false; } #ifndef CONFIG_USER_ONLY if ((s->base.tb->pc & TARGET_PAGE_MASK) != (dest & TARGET_PAGE_MASK)) { ...
{ "code": [ " if (s->base.singlestep_enabled || s->ss_active || (s->base.tb->cflags & CF_LAST_IO)) {" ], "line_no": [ 11 ] }
static inline bool FUNC_0(DisasContext *s, int n, uint64_t dest) { if (s->base.singlestep_enabled || s->ss_active || (s->base.tb->cflags & CF_LAST_IO)) { return false; } #ifndef CONFIG_USER_ONLY if ((s->base.tb->pc & TARGET_PAGE_MASK) != (dest & TARGET_PAGE_MASK)) { ...
[ "static inline bool FUNC_0(DisasContext *s, int n, uint64_t dest)\n{", "if (s->base.singlestep_enabled || s->ss_active || (s->base.tb->cflags & CF_LAST_IO)) {", "return false;", "}", "#ifndef CONFIG_USER_ONLY\nif ((s->base.tb->pc & TARGET_PAGE_MASK) != (dest & TARGET_PAGE_MASK)) {", "return false;", "}"...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 23 ], [ 25 ], [ 27 ], [ 29, 33 ], [ 35 ] ]
1,941
static int common_end(AVCodecContext *avctx){ FFV1Context *s = avctx->priv_data; int i; for(i=0; i<s->plane_count; i++){ PlaneContext *p= &s->plane[i]; av_freep(&p->state); } return 0; }
true
FFmpeg
3caffb7d80f20c66d7d582ca3d23f80ad373ba0a
static int common_end(AVCodecContext *avctx){ FFV1Context *s = avctx->priv_data; int i; for(i=0; i<s->plane_count; i++){ PlaneContext *p= &s->plane[i]; av_freep(&p->state); } return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0){ FFV1Context *s = VAR_0->priv_data; int VAR_1; for(VAR_1=0; VAR_1<s->plane_count; VAR_1++){ PlaneContext *p= &s->plane[VAR_1]; av_freep(&p->state); } return 0; }
[ "static int FUNC_0(AVCodecContext *VAR_0){", "FFV1Context *s = VAR_0->priv_data;", "int VAR_1;", "for(VAR_1=0; VAR_1<s->plane_count; VAR_1++){", "PlaneContext *p= &s->plane[VAR_1];", "av_freep(&p->state);", "}", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 18 ], [ 22 ], [ 24 ] ]
1,942
av_cold void ff_sws_init_input_funcs(SwsContext *c) { enum PixelFormat srcFormat = c->srcFormat; c->chrToYV12 = NULL; switch(srcFormat) { case PIX_FMT_YUYV422 : c->chrToYV12 = yuy2ToUV_c; break; case PIX_FMT_UYVY422 : c->chrToYV12 = uyvyToUV_c; break; case PIX_FMT_NV12 ...
true
FFmpeg
f972193a15026a99eb2b08e7913a03f2123663da
av_cold void ff_sws_init_input_funcs(SwsContext *c) { enum PixelFormat srcFormat = c->srcFormat; c->chrToYV12 = NULL; switch(srcFormat) { case PIX_FMT_YUYV422 : c->chrToYV12 = yuy2ToUV_c; break; case PIX_FMT_UYVY422 : c->chrToYV12 = uyvyToUV_c; break; case PIX_FMT_NV12 ...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(SwsContext *c) { enum PixelFormat VAR_0 = c->VAR_0; c->chrToYV12 = NULL; switch(VAR_0) { case PIX_FMT_YUYV422 : c->chrToYV12 = yuy2ToUV_c; break; case PIX_FMT_UYVY422 : c->chrToYV12 = uyvyToUV_c; break; case PIX_FMT_NV12 : c->chrToYV12 = nv12ToUV_c;...
[ "av_cold void FUNC_0(SwsContext *c)\n{", "enum PixelFormat VAR_0 = c->VAR_0;", "c->chrToYV12 = NULL;", "switch(VAR_0) {", "case PIX_FMT_YUYV422 : c->chrToYV12 = yuy2ToUV_c; break;", "case PIX_FMT_UYVY422 : c->chrToYV12 = uyvyToUV_c; break;", "case PIX_FMT_NV12 : c->chrToYV12 = nv12ToUV_c; break;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23, 25, 27, 29 ], [ 31, 33, 35 ], [ 37, 39, 41 ], [ 43 ], [ 45, 47, 49, 51, 53, 55, 57...
1,943
static uint32_t pcie_mmcfg_data_read(PCIBus *s, uint32_t addr, int len) { PCIDevice *pci_dev = pcie_dev_find_by_mmcfg_addr(s, addr); if (!pci_dev) { return ~0x0; } return pci_host_config_read_common(pci_dev, PCIE_MMCFG_CONFOFFSET(addr), pci_config_...
true
qemu
43e86c8f5b6d9f6279e20dede4e1f7829bdc43b7
static uint32_t pcie_mmcfg_data_read(PCIBus *s, uint32_t addr, int len) { PCIDevice *pci_dev = pcie_dev_find_by_mmcfg_addr(s, addr); if (!pci_dev) { return ~0x0; } return pci_host_config_read_common(pci_dev, PCIE_MMCFG_CONFOFFSET(addr), pci_config_...
{ "code": [ "static uint32_t pcie_mmcfg_data_read(PCIBus *s, uint32_t addr, int len)", " PCIDevice *pci_dev = pcie_dev_find_by_mmcfg_addr(s, addr);", " return pci_host_config_read_common(pci_dev, PCIE_MMCFG_CONFOFFSET(addr),", " pci_config_size(pci_dev), len...
static uint32_t FUNC_0(PCIBus *s, uint32_t addr, int len) { PCIDevice *pci_dev = pcie_dev_find_by_mmcfg_addr(s, addr); if (!pci_dev) { return ~0x0; } return pci_host_config_read_common(pci_dev, PCIE_MMCFG_CONFOFFSET(addr), pci_config_size(pci_dev),...
[ "static uint32_t FUNC_0(PCIBus *s, uint32_t addr, int len)\n{", "PCIDevice *pci_dev = pcie_dev_find_by_mmcfg_addr(s, addr);", "if (!pci_dev) {", "return ~0x0;", "}", "return pci_host_config_read_common(pci_dev, PCIE_MMCFG_CONFOFFSET(addr),\npci_config_size(pci_dev), len);", "}" ]
[ 1, 1, 0, 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ] ]
1,944
int av_stream_add_side_data(AVStream *st, enum AVPacketSideDataType type, uint8_t *data, size_t size) { AVPacketSideData *sd, *tmp; int i; for (i = 0; i < st->nb_side_data; i++) { sd = &st->side_data[i]; if (sd->type == type) { av_freep(&sd...
true
FFmpeg
0ffea3565700c9b3093ead285f729bb319a2163e
int av_stream_add_side_data(AVStream *st, enum AVPacketSideDataType type, uint8_t *data, size_t size) { AVPacketSideData *sd, *tmp; int i; for (i = 0; i < st->nb_side_data; i++) { sd = &st->side_data[i]; if (sd->type == type) { av_freep(&sd...
{ "code": [ " tmp = av_realloc_array(st->side_data, st->nb_side_data + 1, sizeof(*tmp));" ], "line_no": [ 35 ] }
int FUNC_0(AVStream *VAR_0, enum AVPacketSideDataType VAR_1, uint8_t *VAR_2, size_t VAR_3) { AVPacketSideData *sd, *tmp; int VAR_4; for (VAR_4 = 0; VAR_4 < VAR_0->nb_side_data; VAR_4++) { sd = &VAR_0->side_data[VAR_4]; if (sd->VAR_1 == VAR_1) { ...
[ "int FUNC_0(AVStream *VAR_0, enum AVPacketSideDataType VAR_1,\nuint8_t *VAR_2, size_t VAR_3)\n{", "AVPacketSideData *sd, *tmp;", "int VAR_4;", "for (VAR_4 = 0; VAR_4 < VAR_0->nb_side_data; VAR_4++) {", "sd = &VAR_0->side_data[VAR_4];", "if (sd->VAR_1 == VAR_1) {", "av_freep(&sd->VAR_2);", "sd->VAR_2 =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [...
1,947
static void qemu_announce_self_once(void *opaque) { int i, len; VLANState *vlan; VLANClientState *vc; uint8_t buf[256]; static int count = SELF_ANNOUNCE_ROUNDS; QEMUTimer *timer = *(QEMUTimer **)opaque; for (i = 0; i < MAX_NICS; i++) { if (!nd_table[i].used) c...
true
qemu
18995b9808dc48897bda6ed93ce3e978191f7251
static void qemu_announce_self_once(void *opaque) { int i, len; VLANState *vlan; VLANClientState *vc; uint8_t buf[256]; static int count = SELF_ANNOUNCE_ROUNDS; QEMUTimer *timer = *(QEMUTimer **)opaque; for (i = 0; i < MAX_NICS; i++) { if (!nd_table[i].used) c...
{ "code": [ " uint8_t buf[256];", " if (count--) {", "\t qemu_mod_timer(timer, qemu_get_clock(rt_clock) + 100);" ], "line_no": [ 11, 37, 39 ] }
static void FUNC_0(void *VAR_0) { int VAR_1, VAR_2; VLANState *vlan; VLANClientState *vc; uint8_t buf[256]; static int VAR_3 = SELF_ANNOUNCE_ROUNDS; QEMUTimer *timer = *(QEMUTimer **)VAR_0; for (VAR_1 = 0; VAR_1 < MAX_NICS; VAR_1++) { if (!nd_table[VAR_1].used) ...
[ "static void FUNC_0(void *VAR_0)\n{", "int VAR_1, VAR_2;", "VLANState *vlan;", "VLANClientState *vc;", "uint8_t buf[256];", "static int VAR_3 = SELF_ANNOUNCE_ROUNDS;", "QEMUTimer *timer = *(QEMUTimer **)VAR_0;", "for (VAR_1 = 0; VAR_1 < MAX_NICS; VAR_1++) {", "if (!nd_table[VAR_1].used)\ncontinue;",...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 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 ], [...
1,948
static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn) { PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev); PCIConfigReadFunc *config_read = pc->config_read; PCIConfigWriteFunc *config_write = pc->config_write; ...
true
qemu
306077640a652e090779498aadbeb0c605feaacd
static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn) { PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev); PCIConfigReadFunc *config_read = pc->config_read; PCIConfigWriteFunc *config_write = pc->config_write; ...
{ "code": [ " pci_config_free(pci_dev);" ], "line_no": [ 129 ] }
static PCIDevice *FUNC_0(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn) { PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev); PCIConfigReadFunc *config_read = pc->config_read; PCIConfigWriteFunc *config_write = pc->config_write; AddressSpace ...
[ "static PCIDevice *FUNC_0(PCIDevice *pci_dev, PCIBus *bus,\nconst char *name, int devfn)\n{", "PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev);", "PCIConfigReadFunc *config_read = pc->config_read;", "PCIConfigWriteFunc *config_write = pc->config_write;", "AddressSpace *dma_as;", "if (devfn < 0) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 47 ], [...
1,949
static void avc_luma_vt_8w_msa(const uint8_t *src, int32_t src_stride, uint8_t *dst, int32_t dst_stride, int32_t height) { int32_t loop_cnt; int16_t filt_const0 = 0xfb01; int16_t filt_const1 = 0x1414; int16_t filt_const2 = 0x1fb; ...
false
FFmpeg
662234a9a22f1cd0f0ac83b8bb1ffadedca90c0a
static void avc_luma_vt_8w_msa(const uint8_t *src, int32_t src_stride, uint8_t *dst, int32_t dst_stride, int32_t height) { int32_t loop_cnt; int16_t filt_const0 = 0xfb01; int16_t filt_const1 = 0x1414; int16_t filt_const2 = 0x1fb; ...
{ "code": [], "line_no": [] }
static void FUNC_0(const uint8_t *VAR_0, int32_t VAR_1, uint8_t *VAR_2, int32_t VAR_3, int32_t VAR_4) { int32_t loop_cnt; int16_t filt_const0 = 0xfb01; int16_t filt_const1 = 0x1414; int16_t filt_const2 = 0x1fb; v16i8 src0, src1, s...
[ "static void FUNC_0(const uint8_t *VAR_0, int32_t VAR_1,\nuint8_t *VAR_2, int32_t VAR_3,\nint32_t VAR_4)\n{", "int32_t loop_cnt;", "int16_t filt_const0 = 0xfb01;", "int16_t filt_const1 = 0x1414;", "int16_t filt_const2 = 0x1fb;", "v16i8 src0, src1, src2, src3, src4, src7, src8, src9, src10;", "v16i8 src1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49 ], [...
1,950
static bool xhci_er_full(void *opaque, int version_id) { struct XHCIInterrupter *intr = opaque; return intr->er_full; }
true
qemu
898248a32915024a4f01ce4f0c3519509fb703cb
static bool xhci_er_full(void *opaque, int version_id) { struct XHCIInterrupter *intr = opaque; return intr->er_full; }
{ "code": [ " struct XHCIInterrupter *intr = opaque;", " return intr->er_full;" ], "line_no": [ 5, 7 ] }
static bool FUNC_0(void *opaque, int version_id) { struct XHCIInterrupter *VAR_0 = opaque; return VAR_0->er_full; }
[ "static bool FUNC_0(void *opaque, int version_id)\n{", "struct XHCIInterrupter *VAR_0 = opaque;", "return VAR_0->er_full;", "}" ]
[ 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
1,951
bool st_change_trace_event_state(const char *tname, bool tstate) { TraceEvent *tp; tp = find_trace_event_by_name(tname); if (tp) { tp->state = tstate; return true; } return false; }
true
qemu
0b5538c300a56c3cfb33022840fe0b4968147e7a
bool st_change_trace_event_state(const char *tname, bool tstate) { TraceEvent *tp; tp = find_trace_event_by_name(tname); if (tp) { tp->state = tstate; return true; } return false; }
{ "code": [ "bool st_change_trace_event_state(const char *tname, bool tstate)", " TraceEvent *tp;", " tp = find_trace_event_by_name(tname);", " if (tp) {", " tp->state = tstate;", " return true;", " return false;" ], "line_no": [ 1, 5, 9, 11, ...
bool FUNC_0(const char *tname, bool tstate) { TraceEvent *tp; tp = find_trace_event_by_name(tname); if (tp) { tp->state = tstate; return true; } return false; }
[ "bool FUNC_0(const char *tname, bool tstate)\n{", "TraceEvent *tp;", "tp = find_trace_event_by_name(tname);", "if (tp) {", "tp->state = tstate;", "return true;", "}", "return false;", "}" ]
[ 1, 1, 1, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
1,952
aio_read_f(int argc, char **argv) { int nr_iov, c; struct aio_ctx *ctx = calloc(1, sizeof(struct aio_ctx)); BlockDriverAIOCB *acb; while ((c = getopt(argc, argv, "CP:qv")) != EOF) { switch (c) { case 'C': ctx->Cflag = 1; break; case 'P': ctx->Pflag = 1; ctx->pattern = parse_pattern(o...
true
qemu
1afec9138f848cfba517bd2d80167b27216b9df9
aio_read_f(int argc, char **argv) { int nr_iov, c; struct aio_ctx *ctx = calloc(1, sizeof(struct aio_ctx)); BlockDriverAIOCB *acb; while ((c = getopt(argc, argv, "CP:qv")) != EOF) { switch (c) { case 'C': ctx->Cflag = 1; break; case 'P': ctx->Pflag = 1; ctx->pattern = parse_pattern(o...
{ "code": [ "\t\t\tif (ctx->pattern < 0)" ], "line_no": [ 29 ] }
FUNC_0(int VAR_0, char **VAR_1) { int VAR_2, VAR_3; struct aio_ctx *VAR_4 = calloc(1, sizeof(struct aio_ctx)); BlockDriverAIOCB *acb; while ((VAR_3 = getopt(VAR_0, VAR_1, "CP:qv")) != EOF) { switch (VAR_3) { case 'C': VAR_4->Cflag = 1; break; case 'P': VAR_4->Pflag = 1; VAR_4->patter...
[ "FUNC_0(int VAR_0, char **VAR_1)\n{", "int VAR_2, VAR_3;", "struct aio_ctx *VAR_4 = calloc(1, sizeof(struct aio_ctx));", "BlockDriverAIOCB *acb;", "while ((VAR_3 = getopt(VAR_0, VAR_1, \"CP:qv\")) != EOF) {", "switch (VAR_3) {", "case 'C':\nVAR_4->Cflag = 1;", "break;", "case 'P':\nVAR_4->Pflag = 1;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ...
1,953
int ff_eval_refl(int *refl, const int16_t *coefs, AVCodecContext *avctx) { int b, i, j; int buffer1[LPC_ORDER]; int buffer2[LPC_ORDER]; int *bp1 = buffer1; int *bp2 = buffer2; for (i=0; i < LPC_ORDER; i++) buffer2[i] = coefs[i]; refl[LPC_ORDER-1] = bp2[LPC_ORDER-1]; ...
true
FFmpeg
7c845450d2daa0d066045cf94ab51cb496f1b824
int ff_eval_refl(int *refl, const int16_t *coefs, AVCodecContext *avctx) { int b, i, j; int buffer1[LPC_ORDER]; int buffer2[LPC_ORDER]; int *bp1 = buffer1; int *bp2 = buffer2; for (i=0; i < LPC_ORDER; i++) buffer2[i] = coefs[i]; refl[LPC_ORDER-1] = bp2[LPC_ORDER-1]; ...
{ "code": [ " bp1[j] = ((bp2[j] - ((refl[i+1] * bp2[i-j]) >> 12)) * b) >> 12;" ], "line_no": [ 63 ] }
int FUNC_0(int *VAR_0, const int16_t *VAR_1, AVCodecContext *VAR_2) { int VAR_3, VAR_4, VAR_5; int VAR_6[LPC_ORDER]; int VAR_7[LPC_ORDER]; int *VAR_8 = VAR_6; int *VAR_9 = VAR_7; for (VAR_4=0; VAR_4 < LPC_ORDER; VAR_4++) VAR_7[VAR_4] = VAR_1[VAR_4]; VAR_0[LPC_ORDER-1] = ...
[ "int FUNC_0(int *VAR_0, const int16_t *VAR_1, AVCodecContext *VAR_2)\n{", "int VAR_3, VAR_4, VAR_5;", "int VAR_6[LPC_ORDER];", "int VAR_7[LPC_ORDER];", "int *VAR_8 = VAR_6;", "int *VAR_9 = VAR_7;", "for (VAR_4=0; VAR_4 < LPC_ORDER; VAR_4++)", "VAR_7[VAR_4] = VAR_1[VAR_4];", "VAR_0[LPC_ORDER-1] = VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43, 45 ], [ 49 ], [ 51 ], [ 53, 55 ...
1,954
void cpu_loop(CPUAlphaState *env) { int trapnr; target_siginfo_t info; abi_long sysret; while (1) { trapnr = cpu_alpha_exec (env); /* All of the traps imply a transition through PALcode, which implies an REI instruction has been executed. Which means t...
true
qemu
0e141977e690ee6cd06e5a842eae0be291297efa
void cpu_loop(CPUAlphaState *env) { int trapnr; target_siginfo_t info; abi_long sysret; while (1) { trapnr = cpu_alpha_exec (env); env->intr_flag = 0; switch (trapnr) { case EXCP_RESET: fprintf(stderr, "Reset requested. Exit\n"); ...
{ "code": [ " if (env->ir[IR_V0] == 0) {", " env->ir[IR_V0] = sysret;", " } else {", " env->ir[IR_V0] = (sysret < 0 ? -sysret : sysret);", " env->ir[IR_A3] = (sysret < 0);" ], "line_no": [ 199, 201, ...
void FUNC_0(CPUAlphaState *VAR_0) { int VAR_1; target_siginfo_t info; abi_long sysret; while (1) { VAR_1 = cpu_alpha_exec (VAR_0); VAR_0->intr_flag = 0; switch (VAR_1) { case EXCP_RESET: fprintf(stderr, "Reset requested. Exit\n");...
[ "void FUNC_0(CPUAlphaState *VAR_0)\n{", "int VAR_1;", "target_siginfo_t info;", "abi_long sysret;", "while (1) {", "VAR_1 = cpu_alpha_exec (VAR_0);", "VAR_0->intr_flag = 0;", "switch (VAR_1) {", "case EXCP_RESET:\nfprintf(stderr, \"Reset requested. Exit\\n\");", "exit(1);", "break;", "case EXC...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47, 49, 51, 53 ], [ 55 ], [ 57 ], [...