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
865
static int rtp_parse_one_packet(RTPDemuxContext *s, AVPacket *pkt, uint8_t **bufptr, int len) { uint8_t *buf = bufptr ? *bufptr : NULL; int flags = 0; uint32_t timestamp; int rv = 0; if (!buf) { /* If parsing of the previous packet actually returned ...
true
FFmpeg
22cc57da64bfd73f2206969486b0aa183ee76479
static int rtp_parse_one_packet(RTPDemuxContext *s, AVPacket *pkt, uint8_t **bufptr, int len) { uint8_t *buf = bufptr ? *bufptr : NULL; int flags = 0; uint32_t timestamp; int rv = 0; if (!buf) { if (s->prev_ret <= 0) return...
{ "code": [ " enqueue_packet(s, buf, len);" ], "line_no": [ 127 ] }
static int FUNC_0(RTPDemuxContext *VAR_0, AVPacket *VAR_1, uint8_t **VAR_2, int VAR_3) { uint8_t *buf = VAR_2 ? *VAR_2 : NULL; int VAR_4 = 0; uint32_t timestamp; int VAR_5 = 0; if (!buf) { if (VAR_0->prev_ret <= 0) return r...
[ "static int FUNC_0(RTPDemuxContext *VAR_0, AVPacket *VAR_1,\nuint8_t **VAR_2, int VAR_3)\n{", "uint8_t *buf = VAR_2 ? *VAR_2 : NULL;", "int VAR_4 = 0;", "uint32_t timestamp;", "int VAR_5 = 0;", "if (!buf) {", "if (VAR_0->prev_ret <= 0)\nreturn rtp_parse_queued_packet(VAR_0, VAR_1);", "if (VAR_0->handl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 25, 27 ], [ 31 ], [ 37 ], [ 39, 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55, 57 ], [ 61, 63 ], [ 65 ...
866
static inline void RENAME(rgb16to15)(const uint8_t *src,uint8_t *dst,long src_size) { register const uint8_t* s=src; register uint8_t* d=dst; register const uint8_t *end; const uint8_t *mm_end; end = s + src_size; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::"m"(*s)); __asm __volatile("movq %0...
true
FFmpeg
6e42e6c4b410dbef8b593c2d796a5dad95f89ee4
static inline void RENAME(rgb16to15)(const uint8_t *src,uint8_t *dst,long src_size) { register const uint8_t* s=src; register uint8_t* d=dst; register const uint8_t *end; const uint8_t *mm_end; end = s + src_size; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::"m"(*s)); __asm __volatile("movq %0...
{ "code": [ "#ifdef HAVE_MMX", " const uint8_t *mm_end;", "#endif", " end = s + src_size;", "#ifdef HAVE_MMX", " __asm __volatile(SFENCE:::\"memory\");", " __asm __volatile(EMMS:::\"memory\");", "#endif", "#endif", " const uint8_t *mm_end;", " end = s + src_size;", ...
static inline void FUNC_0(rgb16to15)(const uint8_t *src,uint8_t *dst,long src_size) { register const uint8_t* VAR_0=src; register uint8_t* VAR_1=dst; register const uint8_t *VAR_2; const uint8_t *VAR_3; VAR_2 = VAR_0 + src_size; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::"m"(*VAR_0)); __asm ...
[ "static inline void FUNC_0(rgb16to15)(const uint8_t *src,uint8_t *dst,long src_size)\n{", "register const uint8_t* VAR_0=src;", "register uint8_t* VAR_1=dst;", "register const uint8_t *VAR_2;", "const uint8_t *VAR_3;", "VAR_2 = VAR_0 + src_size;", "#ifdef HAVE_MMX\n__asm __volatile(PREFETCH\"\t%0\"::\"m...
[ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 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,...
868
static void xics_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); dc->realize = xics_realize; dc->props = xics_properties; dc->reset = xics_reset; }
false
qemu
5a3d7b23ba41b4884b43b6bc936ea18f999d5c6b
static void xics_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); dc->realize = xics_realize; dc->props = xics_properties; dc->reset = xics_reset; }
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); dc->realize = xics_realize; dc->props = xics_properties; dc->reset = xics_reset; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "dc->realize = xics_realize;", "dc->props = xics_properties;", "dc->reset = xics_reset;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
869
void acpi_memory_hotplug_init(MemoryRegion *as, Object *owner, MemHotplugState *state) { MachineState *machine = MACHINE(qdev_get_machine()); state->dev_count = machine->ram_slots; if (!state->dev_count) { return; } state->devs = g_malloc0(sizeof(*st...
false
qemu
80db0e7822962554c91bef05d784c898e8ab1c3c
void acpi_memory_hotplug_init(MemoryRegion *as, Object *owner, MemHotplugState *state) { MachineState *machine = MACHINE(qdev_get_machine()); state->dev_count = machine->ram_slots; if (!state->dev_count) { return; } state->devs = g_malloc0(sizeof(*st...
{ "code": [], "line_no": [] }
void FUNC_0(MemoryRegion *VAR_0, Object *VAR_1, MemHotplugState *VAR_2) { MachineState *machine = MACHINE(qdev_get_machine()); VAR_2->dev_count = machine->ram_slots; if (!VAR_2->dev_count) { return; } VAR_2->devs = g_malloc0(sizeof(*VAR_2->devs) * VA...
[ "void FUNC_0(MemoryRegion *VAR_0, Object *VAR_1,\nMemHotplugState *VAR_2)\n{", "MachineState *machine = MACHINE(qdev_get_machine());", "VAR_2->dev_count = machine->ram_slots;", "if (!VAR_2->dev_count) {", "return;", "}", "VAR_2->devs = g_malloc0(sizeof(*VAR_2->devs) * VAR_2->dev_count);", "memory_regi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ] ]
870
static void test_qemu_strtoul_correct(void) { const char *str = "12345 foo"; char f = 'X'; const char *endptr = &f; unsigned long res = 999; int err; err = qemu_strtoul(str, &endptr, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, 12345); g_assert(endptr...
false
qemu
bc7c08a2c375acb7ae4d433054415588b176d34c
static void test_qemu_strtoul_correct(void) { const char *str = "12345 foo"; char f = 'X'; const char *endptr = &f; unsigned long res = 999; int err; err = qemu_strtoul(str, &endptr, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, 12345); g_assert(endptr...
{ "code": [], "line_no": [] }
static void FUNC_0(void) { const char *VAR_0 = "12345 foo"; char VAR_1 = 'X'; const char *VAR_2 = &VAR_1; unsigned long VAR_3 = 999; int VAR_4; VAR_4 = qemu_strtoul(VAR_0, &VAR_2, 0, &VAR_3); g_assert_cmpint(VAR_4, ==, 0); g_assert_cmpint(VAR_3, ==, 12345); g_assert(VAR...
[ "static void FUNC_0(void)\n{", "const char *VAR_0 = \"12345 foo\";", "char VAR_1 = 'X';", "const char *VAR_2 = &VAR_1;", "unsigned long VAR_3 = 999;", "int VAR_4;", "VAR_4 = qemu_strtoul(VAR_0, &VAR_2, 0, &VAR_3);", "g_assert_cmpint(VAR_4, ==, 0);", "g_assert_cmpint(VAR_3, ==, 12345);", "g_assert(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
871
Aml *aml_shiftleft(Aml *arg1, Aml *count) { Aml *var = aml_opcode(0x79 /* ShiftLeftOp */); aml_append(var, arg1); aml_append(var, count); build_append_byte(var->buf, 0x00); /* NullNameOp */ return var; }
false
qemu
439e2a6e10ed7f5da819bf7dcaa54b8cfdbeab0d
Aml *aml_shiftleft(Aml *arg1, Aml *count) { Aml *var = aml_opcode(0x79 ); aml_append(var, arg1); aml_append(var, count); build_append_byte(var->buf, 0x00); return var; }
{ "code": [], "line_no": [] }
Aml *FUNC_0(Aml *arg1, Aml *count) { Aml *var = aml_opcode(0x79 ); aml_append(var, arg1); aml_append(var, count); build_append_byte(var->buf, 0x00); return var; }
[ "Aml *FUNC_0(Aml *arg1, Aml *count)\n{", "Aml *var = aml_opcode(0x79 );", "aml_append(var, arg1);", "aml_append(var, count);", "build_append_byte(var->buf, 0x00);", "return var;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
872
static void nfs_process_write(void *arg) { NFSClient *client = arg; aio_context_acquire(client->aio_context); nfs_service(client->context, POLLOUT); nfs_set_events(client); aio_context_release(client->aio_context); }
false
qemu
37d1e4d9bfac846a1331375aab3d13b54a048c01
static void nfs_process_write(void *arg) { NFSClient *client = arg; aio_context_acquire(client->aio_context); nfs_service(client->context, POLLOUT); nfs_set_events(client); aio_context_release(client->aio_context); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { NFSClient *client = VAR_0; aio_context_acquire(client->aio_context); nfs_service(client->context, POLLOUT); nfs_set_events(client); aio_context_release(client->aio_context); }
[ "static void FUNC_0(void *VAR_0)\n{", "NFSClient *client = VAR_0;", "aio_context_acquire(client->aio_context);", "nfs_service(client->context, POLLOUT);", "nfs_set_events(client);", "aio_context_release(client->aio_context);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
873
static inline void cpu_loop_exec_tb(CPUState *cpu, TranslationBlock *tb, TranslationBlock **last_tb, int *tb_exit) { uintptr_t ret; int32_t insns_left; if (unlikely(atomic_read(&cpu->exit_request))) { return; } trace_exec_tb(tb, tb->pc); r...
false
qemu
55ac0a9bf4e1b1adfc7d73586a7aa085f58c9851
static inline void cpu_loop_exec_tb(CPUState *cpu, TranslationBlock *tb, TranslationBlock **last_tb, int *tb_exit) { uintptr_t ret; int32_t insns_left; if (unlikely(atomic_read(&cpu->exit_request))) { return; } trace_exec_tb(tb, tb->pc); r...
{ "code": [], "line_no": [] }
static inline void FUNC_0(CPUState *VAR_0, TranslationBlock *VAR_1, TranslationBlock **VAR_2, int *VAR_3) { uintptr_t ret; int32_t insns_left; if (unlikely(atomic_read(&VAR_0->exit_request))) { return; } trace_exec_tb(VAR_1, VAR_1->pc); re...
[ "static inline void FUNC_0(CPUState *VAR_0, TranslationBlock *VAR_1,\nTranslationBlock **VAR_2, int *VAR_3)\n{", "uintptr_t ret;", "int32_t insns_left;", "if (unlikely(atomic_read(&VAR_0->exit_request))) {", "return;", "}", "trace_exec_tb(VAR_1, VAR_1->pc);", "ret = cpu_tb_exec(VAR_0, VAR_1);", "VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 67 ], [...
874
static int xen_pt_byte_reg_read(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint8_t *value, uint8_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; uint8_t valid_emu_mask = 0; /* emulate byte register */ valid_emu_mask = reg->emu_mask & valid_mask; *val...
false
qemu
e2779de053b64f023de382fd87b3596613d47d1e
static int xen_pt_byte_reg_read(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint8_t *value, uint8_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; uint8_t valid_emu_mask = 0; valid_emu_mask = reg->emu_mask & valid_mask; *value = XEN_PT_MERGE_VALUE(*va...
{ "code": [], "line_no": [] }
static int FUNC_0(XenPCIPassthroughState *VAR_0, XenPTReg *VAR_1, uint8_t *VAR_2, uint8_t VAR_3) { XenPTRegInfo *reg = VAR_1->reg; uint8_t valid_emu_mask = 0; valid_emu_mask = reg->emu_mask & VAR_3; *VAR_2 = XEN_PT_MERGE_VALUE(*VAR_2, VAR_1->data, ~valid_emu...
[ "static int FUNC_0(XenPCIPassthroughState *VAR_0, XenPTReg *VAR_1,\nuint8_t *VAR_2, uint8_t VAR_3)\n{", "XenPTRegInfo *reg = VAR_1->reg;", "uint8_t valid_emu_mask = 0;", "valid_emu_mask = reg->emu_mask & VAR_3;", "*VAR_2 = XEN_PT_MERGE_VALUE(*VAR_2, VAR_1->data, ~valid_emu_mask);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
875
static int vfio_setup_pcie_cap(VFIOPCIDevice *vdev, int pos, uint8_t size) { uint16_t flags; uint8_t type; flags = pci_get_word(vdev->pdev.config + pos + PCI_CAP_FLAGS); type = (flags & PCI_EXP_FLAGS_TYPE) >> 4; if (type != PCI_EXP_TYPE_ENDPOINT && type != PCI_EXP_TYPE_LEG_END && ...
false
qemu
0282abf078c3353a178ab77a115828ce333181dd
static int vfio_setup_pcie_cap(VFIOPCIDevice *vdev, int pos, uint8_t size) { uint16_t flags; uint8_t type; flags = pci_get_word(vdev->pdev.config + pos + PCI_CAP_FLAGS); type = (flags & PCI_EXP_FLAGS_TYPE) >> 4; if (type != PCI_EXP_TYPE_ENDPOINT && type != PCI_EXP_TYPE_LEG_END && ...
{ "code": [], "line_no": [] }
static int FUNC_0(VFIOPCIDevice *VAR_0, int VAR_1, uint8_t VAR_2) { uint16_t flags; uint8_t type; flags = pci_get_word(VAR_0->pdev.config + VAR_1 + PCI_CAP_FLAGS); type = (flags & PCI_EXP_FLAGS_TYPE) >> 4; if (type != PCI_EXP_TYPE_ENDPOINT && type != PCI_EXP_TYPE_LEG_END && ...
[ "static int FUNC_0(VFIOPCIDevice *VAR_0, int VAR_1, uint8_t VAR_2)\n{", "uint16_t flags;", "uint8_t type;", "flags = pci_get_word(VAR_0->pdev.config + VAR_1 + PCI_CAP_FLAGS);", "type = (flags & PCI_EXP_FLAGS_TYPE) >> 4;", "if (type != PCI_EXP_TYPE_ENDPOINT &&\ntype != PCI_EXP_TYPE_LEG_END &&\ntype != PCI_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17, 19, 21 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 35 ], [ 51 ], [ 61 ], [ 63, 65, 67 ], [ 73 ], [ 75 ], [ 77 ], [ 79 ], ...
876
static UserDefNested *nested_struct_create(void) { UserDefNested *udnp = g_malloc0(sizeof(*udnp)); udnp->string0 = strdup("test_string0"); udnp->dict1.string1 = strdup("test_string1"); udnp->dict1.dict2.userdef1 = g_malloc0(sizeof(UserDefOne)); udnp->dict1.dict2.userdef1->base = g_new0(UserDef...
false
qemu
b6fcf32d9b851a83dedcb609091236b97cc4a985
static UserDefNested *nested_struct_create(void) { UserDefNested *udnp = g_malloc0(sizeof(*udnp)); udnp->string0 = strdup("test_string0"); udnp->dict1.string1 = strdup("test_string1"); udnp->dict1.dict2.userdef1 = g_malloc0(sizeof(UserDefOne)); udnp->dict1.dict2.userdef1->base = g_new0(UserDef...
{ "code": [], "line_no": [] }
static UserDefNested *FUNC_0(void) { UserDefNested *udnp = g_malloc0(sizeof(*udnp)); udnp->string0 = strdup("test_string0"); udnp->dict1.string1 = strdup("test_string1"); udnp->dict1.dict2.userdef1 = g_malloc0(sizeof(UserDefOne)); udnp->dict1.dict2.userdef1->base = g_new0(UserDefZero, 1); ...
[ "static UserDefNested *FUNC_0(void)\n{", "UserDefNested *udnp = g_malloc0(sizeof(*udnp));", "udnp->string0 = strdup(\"test_string0\");", "udnp->dict1.string1 = strdup(\"test_string1\");", "udnp->dict1.dict2.userdef1 = g_malloc0(sizeof(UserDefOne));", "udnp->dict1.dict2.userdef1->base = g_new0(UserDefZero,...
[ 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 ] ]
877
static int qcow2_create(const char *filename, QEMUOptionParameter *options) { const char *backing_file = NULL; const char *backing_fmt = NULL; uint64_t sectors = 0; int flags = 0; size_t cluster_size = DEFAULT_CLUSTER_SIZE; int prealloc = 0; /* Read out options */ while (optio...
false
qemu
6744cbab8cd63b7ce72b3eee4f0055007acf0798
static int qcow2_create(const char *filename, QEMUOptionParameter *options) { const char *backing_file = NULL; const char *backing_fmt = NULL; uint64_t sectors = 0; int flags = 0; size_t cluster_size = DEFAULT_CLUSTER_SIZE; int prealloc = 0; while (options && options->name) {...
{ "code": [], "line_no": [] }
static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1) { const char *VAR_2 = NULL; const char *VAR_3 = NULL; uint64_t sectors = 0; int VAR_4 = 0; size_t cluster_size = DEFAULT_CLUSTER_SIZE; int VAR_5 = 0; while (VAR_1 && VAR_1->name) { if (!strcmp(VAR_1->na...
[ "static int FUNC_0(const char *VAR_0, QEMUOptionParameter *VAR_1)\n{", "const char *VAR_2 = NULL;", "const char *VAR_3 = NULL;", "uint64_t sectors = 0;", "int VAR_4 = 0;", "size_t cluster_size = DEFAULT_CLUSTER_SIZE;", "int VAR_5 = 0;", "while (VAR_1 && VAR_1->name) {", "if (!strcmp(VAR_1->name, BLO...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
878
static int rpza_decode_init(AVCodecContext *avctx) { RpzaContext *s = avctx->priv_data; s->avctx = avctx; avctx->pix_fmt = PIX_FMT_RGB555; dsputil_init(&s->dsp, avctx); s->frame.data[0] = NULL; return 0; }
false
FFmpeg
32c3047cac9294bb56d23c89a40a22409db5cc70
static int rpza_decode_init(AVCodecContext *avctx) { RpzaContext *s = avctx->priv_data; s->avctx = avctx; avctx->pix_fmt = PIX_FMT_RGB555; dsputil_init(&s->dsp, avctx); s->frame.data[0] = NULL; return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0) { RpzaContext *s = VAR_0->priv_data; s->VAR_0 = VAR_0; VAR_0->pix_fmt = PIX_FMT_RGB555; dsputil_init(&s->dsp, VAR_0); s->frame.data[0] = NULL; return 0; }
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "RpzaContext *s = VAR_0->priv_data;", "s->VAR_0 = VAR_0;", "VAR_0->pix_fmt = PIX_FMT_RGB555;", "dsputil_init(&s->dsp, VAR_0);", "s->frame.data[0] = NULL;", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ] ]
879
static void qmp_output_type_str(Visitor *v, const char *name, char **obj, Error **errp) { QmpOutputVisitor *qov = to_qov(v); if (*obj) { qmp_output_add(qov, name, qstring_from_str(*obj)); } else { qmp_output_add(qov, name, qstring_from_str("")); } ...
false
qemu
b3db211f3c80bb996a704d665fe275619f728bd4
static void qmp_output_type_str(Visitor *v, const char *name, char **obj, Error **errp) { QmpOutputVisitor *qov = to_qov(v); if (*obj) { qmp_output_add(qov, name, qstring_from_str(*obj)); } else { qmp_output_add(qov, name, qstring_from_str("")); } ...
{ "code": [], "line_no": [] }
static void FUNC_0(Visitor *VAR_0, const char *VAR_1, char **VAR_2, Error **VAR_3) { QmpOutputVisitor *qov = to_qov(VAR_0); if (*VAR_2) { qmp_output_add(qov, VAR_1, qstring_from_str(*VAR_2)); } else { qmp_output_add(qov, VAR_1, qstring_from_str("")); ...
[ "static void FUNC_0(Visitor *VAR_0, const char *VAR_1, char **VAR_2,\nError **VAR_3)\n{", "QmpOutputVisitor *qov = to_qov(VAR_0);", "if (*VAR_2) {", "qmp_output_add(qov, VAR_1, qstring_from_str(*VAR_2));", "} else {", "qmp_output_add(qov, VAR_1, qstring_from_str(\"\"));", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
880
static void v9fs_open_post_lstat(V9fsState *s, V9fsOpenState *vs, int err) { int flags; if (err) { err = -errno; goto out; } stat_to_qid(&vs->stbuf, &vs->qid); if (S_ISDIR(vs->stbuf.st_mode)) { vs->fidp->fs.dir = v9fs_do_opendir(s, &vs->fidp->path); v9...
false
qemu
630c26893d6dc7713c0fcfc3c09d6bfe536a6ce3
static void v9fs_open_post_lstat(V9fsState *s, V9fsOpenState *vs, int err) { int flags; if (err) { err = -errno; goto out; } stat_to_qid(&vs->stbuf, &vs->qid); if (S_ISDIR(vs->stbuf.st_mode)) { vs->fidp->fs.dir = v9fs_do_opendir(s, &vs->fidp->path); v9...
{ "code": [], "line_no": [] }
static void FUNC_0(V9fsState *VAR_0, V9fsOpenState *VAR_1, int VAR_2) { int VAR_3; if (VAR_2) { VAR_2 = -errno; goto out; } stat_to_qid(&VAR_1->stbuf, &VAR_1->qid); if (S_ISDIR(VAR_1->stbuf.st_mode)) { VAR_1->fidp->fs.dir = v9fs_do_opendir(VAR_0, &VAR_1->fidp->...
[ "static void FUNC_0(V9fsState *VAR_0, V9fsOpenState *VAR_1, int VAR_2)\n{", "int VAR_3;", "if (VAR_2) {", "VAR_2 = -errno;", "goto out;", "}", "stat_to_qid(&VAR_1->stbuf, &VAR_1->qid);", "if (S_ISDIR(VAR_1->stbuf.st_mode)) {", "VAR_1->fidp->fs.dir = v9fs_do_opendir(VAR_0, &VAR_1->fidp->path);", "v...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47...
881
static void spapr_cpu_core_unrealizefn(DeviceState *dev, Error **errp) { sPAPRCPUCore *sc = SPAPR_CPU_CORE(OBJECT(dev)); sPAPRCPUCoreClass *scc = SPAPR_CPU_CORE_GET_CLASS(OBJECT(dev)); size_t size = object_type_get_instance_size(scc->cpu_type); CPUCore *cc = CPU_CORE(dev); int i; for (i...
false
qemu
94ad93bd976841c26af75322301f5aad925114d6
static void spapr_cpu_core_unrealizefn(DeviceState *dev, Error **errp) { sPAPRCPUCore *sc = SPAPR_CPU_CORE(OBJECT(dev)); sPAPRCPUCoreClass *scc = SPAPR_CPU_CORE_GET_CLASS(OBJECT(dev)); size_t size = object_type_get_instance_size(scc->cpu_type); CPUCore *cc = CPU_CORE(dev); int i; for (i...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { sPAPRCPUCore *sc = SPAPR_CPU_CORE(OBJECT(VAR_0)); sPAPRCPUCoreClass *scc = SPAPR_CPU_CORE_GET_CLASS(OBJECT(VAR_0)); size_t size = object_type_get_instance_size(scc->cpu_type); CPUCore *cc = CPU_CORE(VAR_0); int VAR_2; for (VAR_2 = ...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "sPAPRCPUCore *sc = SPAPR_CPU_CORE(OBJECT(VAR_0));", "sPAPRCPUCoreClass *scc = SPAPR_CPU_CORE_GET_CLASS(OBJECT(VAR_0));", "size_t size = object_type_get_instance_size(scc->cpu_type);", "CPUCore *cc = CPU_CORE(VAR_0);", "int VAR_2;", "for (VAR_2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ] ]
884
static uint32_t taihu_cpld_readw (void *opaque, hwaddr addr) { uint32_t ret; ret = taihu_cpld_readb(opaque, addr) << 8; ret |= taihu_cpld_readb(opaque, addr + 1); return ret; }
false
qemu
e2a176dfda32f5cf80703c2921a19fe75850c38c
static uint32_t taihu_cpld_readw (void *opaque, hwaddr addr) { uint32_t ret; ret = taihu_cpld_readb(opaque, addr) << 8; ret |= taihu_cpld_readb(opaque, addr + 1); return ret; }
{ "code": [], "line_no": [] }
static uint32_t FUNC_0 (void *opaque, hwaddr addr) { uint32_t ret; ret = taihu_cpld_readb(opaque, addr) << 8; ret |= taihu_cpld_readb(opaque, addr + 1); return ret; }
[ "static uint32_t FUNC_0 (void *opaque, hwaddr addr)\n{", "uint32_t ret;", "ret = taihu_cpld_readb(opaque, addr) << 8;", "ret |= taihu_cpld_readb(opaque, addr + 1);", "return ret;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ] ]
885
int vfio_container_ioctl(AddressSpace *as, int32_t groupid, int req, void *param) { /* We allow only certain ioctls to the container */ switch (req) { case VFIO_CHECK_EXTENSION: case VFIO_IOMMU_SPAPR_TCE_GET_INFO: case VFIO_EEH_PE_OP: break; default: ...
false
qemu
3356128cd13d7ec7689b7cddd3efbfbc5339a262
int vfio_container_ioctl(AddressSpace *as, int32_t groupid, int req, void *param) { switch (req) { case VFIO_CHECK_EXTENSION: case VFIO_IOMMU_SPAPR_TCE_GET_INFO: case VFIO_EEH_PE_OP: break; default: error_report("vfio: unsupported ioc...
{ "code": [], "line_no": [] }
int FUNC_0(AddressSpace *VAR_0, int32_t VAR_1, int VAR_2, void *VAR_3) { switch (VAR_2) { case VFIO_CHECK_EXTENSION: case VFIO_IOMMU_SPAPR_TCE_GET_INFO: case VFIO_EEH_PE_OP: break; default: error_report("vfio: unsupported ioctl %X", V...
[ "int FUNC_0(AddressSpace *VAR_0, int32_t VAR_1,\nint VAR_2, void *VAR_3)\n{", "switch (VAR_2) {", "case VFIO_CHECK_EXTENSION:\ncase VFIO_IOMMU_SPAPR_TCE_GET_INFO:\ncase VFIO_EEH_PE_OP:\nbreak;", "default:\nerror_report(\"vfio: unsupported ioctl %X\", VAR_2);", "return -1;", "}", "return vfio_container_d...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 9 ], [ 11, 13, 15, 17 ], [ 19, 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ] ]
887
static void vtd_do_iommu_translate(VTDAddressSpace *vtd_as, PCIBus *bus, uint8_t devfn, hwaddr addr, bool is_write, IOMMUTLBEntry *entry) { IntelIOMMUState *s = vtd_as->iommu_state; VTDContextEntry ce; uint8_t bus_num = pci_bus_num(...
false
qemu
d66b969b0d9c8eefdcbff4b48535b0fe1501d139
static void vtd_do_iommu_translate(VTDAddressSpace *vtd_as, PCIBus *bus, uint8_t devfn, hwaddr addr, bool is_write, IOMMUTLBEntry *entry) { IntelIOMMUState *s = vtd_as->iommu_state; VTDContextEntry ce; uint8_t bus_num = pci_bus_num(...
{ "code": [], "line_no": [] }
static void FUNC_0(VTDAddressSpace *VAR_0, PCIBus *VAR_1, uint8_t VAR_2, hwaddr VAR_3, bool VAR_4, IOMMUTLBEntry *VAR_5) { IntelIOMMUState *s = VAR_0->iommu_state; VTDContextEntry ce; uint8_t bus_num = pci_bus_num(VAR_1); VTDCo...
[ "static void FUNC_0(VTDAddressSpace *VAR_0, PCIBus *VAR_1,\nuint8_t VAR_2, hwaddr VAR_3, bool VAR_4,\nIOMMUTLBEntry *VAR_5)\n{", "IntelIOMMUState *s = VAR_0->iommu_state;", "VTDContextEntry ce;", "uint8_t bus_num = pci_bus_num(VAR_1);", "VTDContextCacheEntry *cc_entry = &VAR_0->context_cache_entry;", "uin...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39 ], [ 51, 53 ], [ 55 ], [ 57 ], [...
888
void call_pal (CPUState *env, int palcode) { target_ulong ret; if (logfile != NULL) fprintf(logfile, "%s: palcode %02x\n", __func__, palcode); switch (palcode) { case 0x83: /* CALLSYS */ if (logfile != NULL) fprintf(logfile, "CALLSYS n " TARGET_FMT_ld "\n",...
false
qemu
d9e147ad1050f58d0fdcf2d2d53aa8d57dd7b0e2
void call_pal (CPUState *env, int palcode) { target_ulong ret; if (logfile != NULL) fprintf(logfile, "%s: palcode %02x\n", __func__, palcode); switch (palcode) { case 0x83: if (logfile != NULL) fprintf(logfile, "CALLSYS n " TARGET_FMT_ld "\n", env->ir[0]);...
{ "code": [], "line_no": [] }
void FUNC_0 (CPUState *VAR_0, int VAR_1) { target_ulong ret; if (logfile != NULL) fprintf(logfile, "%s: VAR_1 %02x\n", __func__, VAR_1); switch (VAR_1) { case 0x83: if (logfile != NULL) fprintf(logfile, "CALLSYS n " TARGET_FMT_ld "\n", VAR_0->ir[0]); ...
[ "void FUNC_0 (CPUState *VAR_0, int VAR_1)\n{", "target_ulong ret;", "if (logfile != NULL)\nfprintf(logfile, \"%s: VAR_1 %02x\\n\", __func__, VAR_1);", "switch (VAR_1) {", "case 0x83:\nif (logfile != NULL)\nfprintf(logfile, \"CALLSYS n \" TARGET_FMT_ld \"\\n\", VAR_0->ir[0]);", "ret = do_syscall(VAR_0, VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15, 19, 21 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 49 ], [ 51, 53 ], ...
889
static void RENAME(yuv2yuyv422_1)(SwsContext *c, const uint16_t *buf0, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, uint8_t *dest, ...
false
FFmpeg
13a099799e89a76eb921ca452e1b04a7a28a9855
static void RENAME(yuv2yuyv422_1)(SwsContext *c, const uint16_t *buf0, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, uint8_t *dest, ...
{ "code": [], "line_no": [] }
static void FUNC_0(yuv2yuyv422_1)(SwsContext *c, const uint16_t *buf0, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, uint8_t *dest, ...
[ "static void FUNC_0(yuv2yuyv422_1)(SwsContext *c, const uint16_t *buf0,\nconst uint16_t *ubuf0, const uint16_t *ubuf1,\nconst uint16_t *vbuf0, const uint16_t *vbuf1,\nconst uint16_t *abuf0, uint8_t *dest,\nint dstW, int uvalpha, enum PixelFormat dstFormat,\nint flags, int y)\n{", "const uint16_t *VAR_0= buf0;", ...
[ 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, 59, 61, 63, 65 ], [ 67 ], [...
890
yuv2gray16_1_c_template(SwsContext *c, const uint16_t *buf0, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, enum P...
false
FFmpeg
13a099799e89a76eb921ca452e1b04a7a28a9855
yuv2gray16_1_c_template(SwsContext *c, const uint16_t *buf0, const uint16_t *ubuf0, const uint16_t *ubuf1, const uint16_t *vbuf0, const uint16_t *vbuf1, const uint16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, enum P...
{ "code": [], "line_no": [] }
FUNC_0(SwsContext *VAR_0, const uint16_t *VAR_1, const uint16_t *VAR_2, const uint16_t *VAR_3, const uint16_t *VAR_4, const uint16_t *VAR_5, const uint16_t *VAR_6, uint8_t *VAR_7, int VAR_8, int VAR_9, enum PixelFormat V...
[ "FUNC_0(SwsContext *VAR_0, const uint16_t *VAR_1,\nconst uint16_t *VAR_2, const uint16_t *VAR_3,\nconst uint16_t *VAR_4, const uint16_t *VAR_5,\nconst uint16_t *VAR_6, uint8_t *VAR_7, int VAR_8,\nint VAR_9, enum PixelFormat VAR_10,\nint VAR_11, int VAR_12, enum PixelFormat VAR_13)\n{", "int VAR_14;", "for (VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11, 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
891
uint32_t helper_efdctuiz (uint64_t val) { CPU_DoubleU u; u.ll = val; /* NaN are not treated the same way IEEE 754 does */ if (unlikely(float64_is_nan(u.d))) return 0; return float64_to_uint32_round_to_zero(u.d, &env->vec_status); }
false
qemu
185698715dfb18c82ad2a5dbc169908602d43e81
uint32_t helper_efdctuiz (uint64_t val) { CPU_DoubleU u; u.ll = val; if (unlikely(float64_is_nan(u.d))) return 0; return float64_to_uint32_round_to_zero(u.d, &env->vec_status); }
{ "code": [], "line_no": [] }
uint32_t FUNC_0 (uint64_t val) { CPU_DoubleU u; u.ll = val; if (unlikely(float64_is_nan(u.d))) return 0; return float64_to_uint32_round_to_zero(u.d, &env->vec_status); }
[ "uint32_t FUNC_0 (uint64_t val)\n{", "CPU_DoubleU u;", "u.ll = val;", "if (unlikely(float64_is_nan(u.d)))\nreturn 0;", "return float64_to_uint32_round_to_zero(u.d, &env->vec_status);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ] ]
892
int qcow2_zero_clusters(BlockDriverState *bs, uint64_t offset, int nb_sectors) { BDRVQcow2State *s = bs->opaque; unsigned int nb_clusters; int ret; /* The zero flag is only supported by version 3 and newer */ if (s->qcow_version < 3) { return -ENOTSUP; } /* Each L2 table...
false
qemu
b6d36def6d9e9fd187327182d0abafc9b7085d8f
int qcow2_zero_clusters(BlockDriverState *bs, uint64_t offset, int nb_sectors) { BDRVQcow2State *s = bs->opaque; unsigned int nb_clusters; int ret; if (s->qcow_version < 3) { return -ENOTSUP; } nb_clusters = size_to_clusters(s, nb_sectors << BDRV_SECTOR_BITS); ...
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, int VAR_2) { BDRVQcow2State *s = VAR_0->opaque; unsigned int VAR_3; int VAR_4; if (s->qcow_version < 3) { return -ENOTSUP; } VAR_3 = size_to_clusters(s, VAR_2 << BDRV_SECTOR_BITS); s->cache_discards = true...
[ "int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, int VAR_2)\n{", "BDRVQcow2State *s = VAR_0->opaque;", "unsigned int VAR_3;", "int VAR_4;", "if (s->qcow_version < 3) {", "return -ENOTSUP;", "}", "VAR_3 = size_to_clusters(s, VAR_2 << BDRV_SECTOR_BITS);", "s->cache_discards = true;", "while (VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55, 57 ], [...
893
void async_context_push(void) { struct AsyncContext *new = qemu_mallocz(sizeof(*new)); new->parent = async_context; new->id = async_context->id + 1; async_context = new; }
false
qemu
384acbf46b70edf0d2c1648aa1a92a90bcf7057d
void async_context_push(void) { struct AsyncContext *new = qemu_mallocz(sizeof(*new)); new->parent = async_context; new->id = async_context->id + 1; async_context = new; }
{ "code": [], "line_no": [] }
void FUNC_0(void) { struct AsyncContext *VAR_0 = qemu_mallocz(sizeof(*VAR_0)); VAR_0->parent = async_context; VAR_0->id = async_context->id + 1; async_context = VAR_0; }
[ "void FUNC_0(void)\n{", "struct AsyncContext *VAR_0 = qemu_mallocz(sizeof(*VAR_0));", "VAR_0->parent = async_context;", "VAR_0->id = async_context->id + 1;", "async_context = VAR_0;", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
894
static int h264_extradata_to_annexb(AVCodecContext *avctx, const int padding) { uint16_t unit_size; uint64_t total_size = 0; uint8_t *out = NULL, unit_nb, sps_done = 0, sps_seen = 0, pps_seen = 0; const uint8_t *extradata ...
false
FFmpeg
53c853e0491691d4ee6f33e6348da2ffc7d345d8
static int h264_extradata_to_annexb(AVCodecContext *avctx, const int padding) { uint16_t unit_size; uint64_t total_size = 0; uint8_t *out = NULL, unit_nb, sps_done = 0, sps_seen = 0, pps_seen = 0; const uint8_t *extradata ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, const int VAR_1) { uint16_t unit_size; uint64_t total_size = 0; uint8_t *out = NULL, unit_nb, sps_done = 0, sps_seen = 0, pps_seen = 0; const uint8_t *VAR_2 = VAR_0->VAR_2 + 4;...
[ "static int FUNC_0(AVCodecContext *VAR_0, const int VAR_1)\n{", "uint16_t unit_size;", "uint64_t total_size = 0;", "uint8_t *out = NULL, unit_nb, sps_done = 0,\nsps_seen = 0, pps_seen = 0;", "const uint8_t *VAR_2 = VAR_0->VAR_2 + 4;", "st...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47, 49, 51 ], [...
895
static inline void stl_phys_internal(hwaddr addr, uint32_t val, enum device_endian endian) { uint8_t *ptr; MemoryRegionSection *section; hwaddr l = 4; hwaddr addr1; section = address_space_translate(&address_space_memory, addr, &addr1, &l, ...
false
qemu
d17d45e95f497e67aa48ff9e49a4ad62bb1e17df
static inline void stl_phys_internal(hwaddr addr, uint32_t val, enum device_endian endian) { uint8_t *ptr; MemoryRegionSection *section; hwaddr l = 4; hwaddr addr1; section = address_space_translate(&address_space_memory, addr, &addr1, &l, ...
{ "code": [], "line_no": [] }
static inline void FUNC_0(hwaddr VAR_0, uint32_t VAR_1, enum device_endian VAR_2) { uint8_t *ptr; MemoryRegionSection *section; hwaddr l = 4; hwaddr addr1; section = address_space_translate(&address_space_memory, VAR_0, &addr1, &l, ...
[ "static inline void FUNC_0(hwaddr VAR_0, uint32_t VAR_1,\nenum device_endian VAR_2)\n{", "uint8_t *ptr;", "MemoryRegionSection *section;", "hwaddr l = 4;", "hwaddr addr1;", "section = address_space_translate(&address_space_memory, VAR_0, &addr1, &l,\ntrue);", "if (l < 4 || !memory_region_is_ram(section-...
[ 0, 0, 0, 0, 0, 0, 0, 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, 47 ], [...
896
static int vmdk_write(BlockDriverState *bs, int64_t sector_num, const uint8_t *buf, int nb_sectors) { BDRVVmdkState *s = bs->opaque; VmdkExtent *extent = NULL; int n; int64_t index_in_cluster; uint64_t cluster_offset; VmdkMetaData m_data; if (sector_num > bs->...
false
qemu
91b85bd388c3767e6b63aaf33851dbfe87ea24d1
static int vmdk_write(BlockDriverState *bs, int64_t sector_num, const uint8_t *buf, int nb_sectors) { BDRVVmdkState *s = bs->opaque; VmdkExtent *extent = NULL; int n; int64_t index_in_cluster; uint64_t cluster_offset; VmdkMetaData m_data; if (sector_num > bs->...
{ "code": [], "line_no": [] }
static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, const uint8_t *VAR_2, int VAR_3) { BDRVVmdkState *s = VAR_0->opaque; VmdkExtent *extent = NULL; int VAR_4; int64_t index_in_cluster; uint64_t cluster_offset; VmdkMetaData m_data; if (VAR_1 > VAR_0->tota...
[ "static int FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nconst uint8_t *VAR_2, int VAR_3)\n{", "BDRVVmdkState *s = VAR_0->opaque;", "VmdkExtent *extent = NULL;", "int VAR_4;", "int64_t index_in_cluster;", "uint64_t cluster_offset;", "VmdkMetaData m_data;", "if (VAR_1 > VAR_0->total_sectors) {", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25, 27, 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49, 51,...
897
static inline void gen_evfsabs(DisasContext *ctx) { if (unlikely(!ctx->spe_enabled)) { gen_exception(ctx, POWERPC_EXCP_APU); return; } #if defined(TARGET_PPC64) tcg_gen_andi_tl(cpu_gpr[rD(ctx->opcode)], cpu_gpr[rA(ctx->opcode)], ~0x8000000080000000LL); #else tcg_gen_andi_tl(cpu_...
false
qemu
27a69bb088bee6d4efea254659422fb9c751b3c7
static inline void gen_evfsabs(DisasContext *ctx) { if (unlikely(!ctx->spe_enabled)) { gen_exception(ctx, POWERPC_EXCP_APU); return; } #if defined(TARGET_PPC64) tcg_gen_andi_tl(cpu_gpr[rD(ctx->opcode)], cpu_gpr[rA(ctx->opcode)], ~0x8000000080000000LL); #else tcg_gen_andi_tl(cpu_...
{ "code": [], "line_no": [] }
static inline void FUNC_0(DisasContext *VAR_0) { if (unlikely(!VAR_0->spe_enabled)) { gen_exception(VAR_0, POWERPC_EXCP_APU); return; } #if defined(TARGET_PPC64) tcg_gen_andi_tl(cpu_gpr[rD(VAR_0->opcode)], cpu_gpr[rA(VAR_0->opcode)], ~0x8000000080000000LL); #else tcg_gen_andi_tl...
[ "static inline void FUNC_0(DisasContext *VAR_0)\n{", "if (unlikely(!VAR_0->spe_enabled)) {", "gen_exception(VAR_0, POWERPC_EXCP_APU);", "return;", "}", "#if defined(TARGET_PPC64)\ntcg_gen_andi_tl(cpu_gpr[rD(VAR_0->opcode)], cpu_gpr[rA(VAR_0->opcode)], ~0x8000000080000000LL);", "#else\ntcg_gen_andi_tl(cp...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 23, 25 ] ]
898
void usb_ep_reset(USBDevice *dev) { int ep; dev->ep_ctl.nr = 0; dev->ep_ctl.type = USB_ENDPOINT_XFER_CONTROL; dev->ep_ctl.ifnum = 0; dev->ep_ctl.dev = dev; dev->ep_ctl.pipeline = false; for (ep = 0; ep < USB_MAX_ENDPOINTS; ep++) { dev->ep_in[ep].nr = ep + 1; dev->...
false
qemu
7c37e6a4c4972ad3cdb2478a0249757ee3a1bf70
void usb_ep_reset(USBDevice *dev) { int ep; dev->ep_ctl.nr = 0; dev->ep_ctl.type = USB_ENDPOINT_XFER_CONTROL; dev->ep_ctl.ifnum = 0; dev->ep_ctl.dev = dev; dev->ep_ctl.pipeline = false; for (ep = 0; ep < USB_MAX_ENDPOINTS; ep++) { dev->ep_in[ep].nr = ep + 1; dev->...
{ "code": [], "line_no": [] }
void FUNC_0(USBDevice *VAR_0) { int VAR_1; VAR_0->ep_ctl.nr = 0; VAR_0->ep_ctl.type = USB_ENDPOINT_XFER_CONTROL; VAR_0->ep_ctl.ifnum = 0; VAR_0->ep_ctl.VAR_0 = VAR_0; VAR_0->ep_ctl.pipeline = false; for (VAR_1 = 0; VAR_1 < USB_MAX_ENDPOINTS; VAR_1++) { VAR_0->ep_in[VAR_1]....
[ "void FUNC_0(USBDevice *VAR_0)\n{", "int VAR_1;", "VAR_0->ep_ctl.nr = 0;", "VAR_0->ep_ctl.type = USB_ENDPOINT_XFER_CONTROL;", "VAR_0->ep_ctl.ifnum = 0;", "VAR_0->ep_ctl.VAR_0 = VAR_0;", "VAR_0->ep_ctl.pipeline = false;", "for (VAR_1 = 0; VAR_1 < USB_MAX_ENDPOINTS; VAR_1++) {", "VAR_0->ep_in[VAR_1].n...
[ 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...
900
int qemu_v9fs_synth_mkdir(V9fsSynthNode *parent, int mode, const char *name, V9fsSynthNode **result) { int ret; V9fsSynthNode *node, *tmp; if (!v9fs_synth_fs) { return EAGAIN; } if (!name || (strlen(name) >= NAME_MAX)) { return EINVAL; } ...
false
qemu
364031f17932814484657e5551ba12957d993d7e
int qemu_v9fs_synth_mkdir(V9fsSynthNode *parent, int mode, const char *name, V9fsSynthNode **result) { int ret; V9fsSynthNode *node, *tmp; if (!v9fs_synth_fs) { return EAGAIN; } if (!name || (strlen(name) >= NAME_MAX)) { return EINVAL; } ...
{ "code": [], "line_no": [] }
int FUNC_0(V9fsSynthNode *VAR_0, int VAR_1, const char *VAR_2, V9fsSynthNode **VAR_3) { int VAR_4; V9fsSynthNode *node, *tmp; if (!v9fs_synth_fs) { return EAGAIN; } if (!VAR_2 || (strlen(VAR_2) >= NAME_MAX)) { return EINVAL; } if (!VAR_0...
[ "int FUNC_0(V9fsSynthNode *VAR_0, int VAR_1,\nconst char *VAR_2, V9fsSynthNode **VAR_3)\n{", "int VAR_4;", "V9fsSynthNode *node, *tmp;", "if (!v9fs_synth_fs) {", "return EAGAIN;", "}", "if (!VAR_2 || (strlen(VAR_2) >= NAME_MAX)) {", "return EINVAL;", "}", "if (!VAR_0) {", "VAR_0 = &v9fs_synth_ro...
[ 0, 0, 0, 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 ], [...
901
static void megasas_handle_frame(MegasasState *s, uint64_t frame_addr, uint32_t frame_count) { uint8_t frame_status = MFI_STAT_INVALID_CMD; uint64_t frame_context; MegasasCmd *cmd; /* * Always read 64bit context, top bits will be * masked out if requi...
false
qemu
8cc46787b5b58f01a11c919c7ff939ed009e27fc
static void megasas_handle_frame(MegasasState *s, uint64_t frame_addr, uint32_t frame_count) { uint8_t frame_status = MFI_STAT_INVALID_CMD; uint64_t frame_context; MegasasCmd *cmd; frame_context = megasas_frame_get_context(s, frame_addr); cmd =...
{ "code": [], "line_no": [] }
static void FUNC_0(MegasasState *VAR_0, uint64_t VAR_1, uint32_t VAR_2) { uint8_t frame_status = MFI_STAT_INVALID_CMD; uint64_t frame_context; MegasasCmd *cmd; frame_context = megasas_frame_get_context(VAR_0, VAR_1); cmd = megasas_enqueue_frame...
[ "static void FUNC_0(MegasasState *VAR_0, uint64_t VAR_1,\nuint32_t VAR_2)\n{", "uint8_t frame_status = MFI_STAT_INVALID_CMD;", "uint64_t frame_context;", "MegasasCmd *cmd;", "frame_context = megasas_frame_get_context(VAR_0, VAR_1);", "cmd = megasas_enqueue_frame(VAR_0, VAR_1, frame_context, VAR_2);", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 23 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 55, 57 ], [...
902
static void intel_hda_mmio_writew(void *opaque, target_phys_addr_t addr, uint32_t val) { IntelHDAState *d = opaque; const IntelHDAReg *reg = intel_hda_reg_find(d, addr); intel_hda_reg_write(d, reg, val, 0xffff); }
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void intel_hda_mmio_writew(void *opaque, target_phys_addr_t addr, uint32_t val) { IntelHDAState *d = opaque; const IntelHDAReg *reg = intel_hda_reg_find(d, addr); intel_hda_reg_write(d, reg, val, 0xffff); }
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2) { IntelHDAState *d = VAR_0; const IntelHDAReg *VAR_3 = intel_hda_reg_find(d, VAR_1); intel_hda_reg_write(d, VAR_3, VAR_2, 0xffff); }
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)\n{", "IntelHDAState *d = VAR_0;", "const IntelHDAReg *VAR_3 = intel_hda_reg_find(d, VAR_1);", "intel_hda_reg_write(d, VAR_3, VAR_2, 0xffff);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ] ]
903
void pcnet_common_cleanup(PCNetState *d) { d->nic = NULL; }
false
qemu
57407ea44cc0a3d630b9b89a2be011f1955ce5c1
void pcnet_common_cleanup(PCNetState *d) { d->nic = NULL; }
{ "code": [], "line_no": [] }
void FUNC_0(PCNetState *VAR_0) { VAR_0->nic = NULL; }
[ "void FUNC_0(PCNetState *VAR_0)\n{", "VAR_0->nic = NULL;", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
904
static void lan9118_16bit_mode_write(void *opaque, target_phys_addr_t offset, uint64_t val, unsigned size) { switch (size) { case 2: lan9118_writew(opaque, offset, (uint32_t)val); return; case 4: lan9118_writel(opaque, offset, val, size); ...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void lan9118_16bit_mode_write(void *opaque, target_phys_addr_t offset, uint64_t val, unsigned size) { switch (size) { case 2: lan9118_writew(opaque, offset, (uint32_t)val); return; case 4: lan9118_writel(opaque, offset, val, size); ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { switch (VAR_3) { case 2: lan9118_writew(VAR_0, VAR_1, (uint32_t)VAR_2); return; case 4: lan9118_writel(VAR_0, VAR_1, VAR_2, VAR_3); return...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "switch (VAR_3) {", "case 2:\nlan9118_writew(VAR_0, VAR_1, (uint32_t)VAR_2);", "return;", "case 4:\nlan9118_writel(VAR_0, VAR_1, VAR_2, VAR_3);", "return;", "}", "hw_error(\"lan9118_write: Bad VAR_3 0x%x\\...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
905
av_cold int ff_h264_decode_init(AVCodecContext *avctx) { H264Context *h = avctx->priv_data; int ret; ret = h264_init_context(avctx, h); if (ret < 0) return ret; memset(h->pps.scaling_matrix4, 16, 6 * 16 * sizeof(uint8_t)); memset(h->pps.scaling_matrix8, 16, 2 * 64 * sizeof(ui...
false
FFmpeg
65afa65e7393e7745427e267d6c6ca814c7c8b45
av_cold int ff_h264_decode_init(AVCodecContext *avctx) { H264Context *h = avctx->priv_data; int ret; ret = h264_init_context(avctx, h); if (ret < 0) return ret; memset(h->pps.scaling_matrix4, 16, 6 * 16 * sizeof(uint8_t)); memset(h->pps.scaling_matrix8, 16, 2 * 64 * sizeof(ui...
{ "code": [], "line_no": [] }
av_cold int FUNC_0(AVCodecContext *avctx) { H264Context *h = avctx->priv_data; int VAR_0; VAR_0 = h264_init_context(avctx, h); if (VAR_0 < 0) return VAR_0; memset(h->pps.scaling_matrix4, 16, 6 * 16 * sizeof(uint8_t)); memset(h->pps.scaling_matrix8, 16, 2 * 64 * sizeof(uint8_t...
[ "av_cold int FUNC_0(AVCodecContext *avctx)\n{", "H264Context *h = avctx->priv_data;", "int VAR_0;", "VAR_0 = h264_init_context(avctx, h);", "if (VAR_0 < 0)\nreturn VAR_0;", "memset(h->pps.scaling_matrix4, 16, 6 * 16 * sizeof(uint8_t));", "memset(h->pps.scaling_matrix8, 16, 2 * 64 * sizeof(uint8_t));", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 29, 31 ], [ 35 ], [ 39 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], ...
907
static void stream_desc_load(struct Stream *s, hwaddr addr) { struct SDesc *d = &s->desc; int i; cpu_physical_memory_read(addr, (void *) d, sizeof *d); /* Convert from LE into host endianness. */ d->buffer_address = le64_to_cpu(d->buffer_address); d->nxtdesc = le64_to_cpu(d->nxtdesc)...
false
qemu
42bb9c9178ae7ac4c439172b1ae99cc29188a5c6
static void stream_desc_load(struct Stream *s, hwaddr addr) { struct SDesc *d = &s->desc; int i; cpu_physical_memory_read(addr, (void *) d, sizeof *d); d->buffer_address = le64_to_cpu(d->buffer_address); d->nxtdesc = le64_to_cpu(d->nxtdesc); d->control = le32_to_cpu(d->control);...
{ "code": [], "line_no": [] }
static void FUNC_0(struct Stream *VAR_0, hwaddr VAR_1) { struct SDesc *VAR_2 = &VAR_0->desc; int VAR_3; cpu_physical_memory_read(VAR_1, (void *) VAR_2, sizeof *VAR_2); VAR_2->buffer_address = le64_to_cpu(VAR_2->buffer_address); VAR_2->nxtdesc = le64_to_cpu(VAR_2->nxtdesc); VAR_2...
[ "static void FUNC_0(struct Stream *VAR_0, hwaddr VAR_1)\n{", "struct SDesc *VAR_2 = &VAR_0->desc;", "int VAR_3;", "cpu_physical_memory_read(VAR_1, (void *) VAR_2, sizeof *VAR_2);", "VAR_2->buffer_address = le64_to_cpu(VAR_2->buffer_address);", "VAR_2->nxtdesc = le64_to_cpu(VAR_2->nxtdesc);", "VAR_2->con...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
908
static CharDriverState *qemu_chr_open_win_file(HANDLE fd_out) { CharDriverState *chr; WinCharState *s; chr = g_malloc0(sizeof(CharDriverState)); s = g_malloc0(sizeof(WinCharState)); s->hcom = fd_out; chr->opaque = s; chr->chr_write = win_chr_write; return chr; }
false
qemu
db39fcf1f690b02d612e2bfc00980700887abe03
static CharDriverState *qemu_chr_open_win_file(HANDLE fd_out) { CharDriverState *chr; WinCharState *s; chr = g_malloc0(sizeof(CharDriverState)); s = g_malloc0(sizeof(WinCharState)); s->hcom = fd_out; chr->opaque = s; chr->chr_write = win_chr_write; return chr; }
{ "code": [], "line_no": [] }
static CharDriverState *FUNC_0(HANDLE fd_out) { CharDriverState *chr; WinCharState *s; chr = g_malloc0(sizeof(CharDriverState)); s = g_malloc0(sizeof(WinCharState)); s->hcom = fd_out; chr->opaque = s; chr->chr_write = win_chr_write; return chr; }
[ "static CharDriverState *FUNC_0(HANDLE fd_out)\n{", "CharDriverState *chr;", "WinCharState *s;", "chr = g_malloc0(sizeof(CharDriverState));", "s = g_malloc0(sizeof(WinCharState));", "s->hcom = fd_out;", "chr->opaque = s;", "chr->chr_write = win_chr_write;", "return chr;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
909
void gdb_exit(CPUState *env, int code) { GDBState *s; char buf[4]; s = &gdbserver_state; if (gdbserver_fd < 0 || s->fd < 0) return; snprintf(buf, sizeof(buf), "W%02x", code); put_packet(s, buf); }
false
qemu
880a7578381d1c7ed4d41c7599ae3cc06567a824
void gdb_exit(CPUState *env, int code) { GDBState *s; char buf[4]; s = &gdbserver_state; if (gdbserver_fd < 0 || s->fd < 0) return; snprintf(buf, sizeof(buf), "W%02x", code); put_packet(s, buf); }
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0, int VAR_1) { GDBState *s; char VAR_2[4]; s = &gdbserver_state; if (gdbserver_fd < 0 || s->fd < 0) return; snprintf(VAR_2, sizeof(VAR_2), "W%02x", VAR_1); put_packet(s, VAR_2); }
[ "void FUNC_0(CPUState *VAR_0, int VAR_1)\n{", "GDBState *s;", "char VAR_2[4];", "s = &gdbserver_state;", "if (gdbserver_fd < 0 || s->fd < 0)\nreturn;", "snprintf(VAR_2, sizeof(VAR_2), \"W%02x\", VAR_1);", "put_packet(s, VAR_2);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23 ] ]
910
static int usb_uhci_piix4_initfn(PCIDevice *dev) { UHCIState *s = DO_UPCAST(UHCIState, dev, dev); uint8_t *pci_conf = s->dev.config; pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL); pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82371AB_2); return usb_uhci_common_initfn(s); ...
false
qemu
dc638fadb54c911019227ae37656560c49a209b9
static int usb_uhci_piix4_initfn(PCIDevice *dev) { UHCIState *s = DO_UPCAST(UHCIState, dev, dev); uint8_t *pci_conf = s->dev.config; pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL); pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82371AB_2); return usb_uhci_common_initfn(s); ...
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { UHCIState *s = DO_UPCAST(UHCIState, VAR_0, VAR_0); uint8_t *pci_conf = s->VAR_0.config; pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL); pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82371AB_2); return usb_uhci_common_initfn(s); }
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "UHCIState *s = DO_UPCAST(UHCIState, VAR_0, VAR_0);", "uint8_t *pci_conf = s->VAR_0.config;", "pci_config_set_vendor_id(pci_conf, PCI_VENDOR_ID_INTEL);", "pci_config_set_device_id(pci_conf, PCI_DEVICE_ID_INTEL_82371AB_2);", "return usb_uhci_common_initfn(s);", "...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
911
static void pxa2xx_gpio_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { PXA2xxGPIOInfo *s = (PXA2xxGPIOInfo *) opaque; int bank; if (offset >= 0x200) return; bank = pxa2xx_gpio_regs[offset].bank; switch (pxa2xx_gpio_regs[offset].reg...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static void pxa2xx_gpio_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { PXA2xxGPIOInfo *s = (PXA2xxGPIOInfo *) opaque; int bank; if (offset >= 0x200) return; bank = pxa2xx_gpio_regs[offset].bank; switch (pxa2xx_gpio_regs[offset].reg...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { PXA2xxGPIOInfo *s = (PXA2xxGPIOInfo *) VAR_0; int VAR_4; if (VAR_1 >= 0x200) return; VAR_4 = pxa2xx_gpio_regs[VAR_1].VAR_4; switch (pxa2xx_gpio_regs[VAR_1].reg) { case...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "PXA2xxGPIOInfo *s = (PXA2xxGPIOInfo *) VAR_0;", "int VAR_4;", "if (VAR_1 >= 0x200)\nreturn;", "VAR_4 = pxa2xx_gpio_regs[VAR_1].VAR_4;", "switch (pxa2xx_gpio_regs[VAR_1].reg) {", "case GPDR:\ns->dir[VAR_4] = 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 31, 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51, 53 ], [ 55 ...
912
int cpu_signal_handler(int host_signum, void *pinfo, void *puc) { siginfo_t *info = pinfo; ucontext_t *uc = puc; unsigned long ip; int is_write = 0; ip = uc->uc_mcontext.sc_ip; switch (host_signum) { case SIGILL: case SIGFPE: case SIGSEGV: case SIGBUS: case SIGT...
false
qemu
a78b1299f1bbb9608e3e3a36a7f16cf700a2789d
int cpu_signal_handler(int host_signum, void *pinfo, void *puc) { siginfo_t *info = pinfo; ucontext_t *uc = puc; unsigned long ip; int is_write = 0; ip = uc->uc_mcontext.sc_ip; switch (host_signum) { case SIGILL: case SIGFPE: case SIGSEGV: case SIGBUS: case SIGT...
{ "code": [], "line_no": [] }
int FUNC_0(int VAR_0, void *VAR_1, void *VAR_2) { siginfo_t *info = VAR_1; ucontext_t *uc = VAR_2; unsigned long VAR_3; int VAR_4 = 0; VAR_3 = uc->uc_mcontext.sc_ip; switch (VAR_0) { case SIGILL: case SIGFPE: case SIGSEGV: case SIGBUS: case SIGTRAP: if ...
[ "int FUNC_0(int VAR_0, void *VAR_1, void *VAR_2)\n{", "siginfo_t *info = VAR_1;", "ucontext_t *uc = VAR_2;", "unsigned long VAR_3;", "int VAR_4 = 0;", "VAR_3 = uc->uc_mcontext.sc_ip;", "switch (VAR_0) {", "case SIGILL:\ncase SIGFPE:\ncase SIGSEGV:\ncase SIGBUS:\ncase SIGTRAP:\nif (info->si_code && (in...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21, 23, 25, 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 45 ], [ 47, 49, 51 ], [ 53 ] ]
915
void virtio_blk_data_plane_start(VirtIOBlockDataPlane *s) { BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(s->vdev))); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); VirtIOBlock *vblk = VIRTIO_BLK(s->vdev); VirtQueue *vq; int r; if (s->started || s->disabled) { return; }...
false
qemu
2906cddfecff21af20eedab43288b485a679f9ac
void virtio_blk_data_plane_start(VirtIOBlockDataPlane *s) { BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(s->vdev))); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); VirtIOBlock *vblk = VIRTIO_BLK(s->vdev); VirtQueue *vq; int r; if (s->started || s->disabled) { return; }...
{ "code": [], "line_no": [] }
void FUNC_0(VirtIOBlockDataPlane *VAR_0) { BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(VAR_0->vdev))); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); VirtIOBlock *vblk = VIRTIO_BLK(VAR_0->vdev); VirtQueue *vq; int VAR_1; if (VAR_0->started || VAR_0->disabled) { return; ...
[ "void FUNC_0(VirtIOBlockDataPlane *VAR_0)\n{", "BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(VAR_0->vdev)));", "VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus);", "VirtIOBlock *vblk = VIRTIO_BLK(VAR_0->vdev);", "VirtQueue *vq;", "int VAR_1;", "if (VAR_0->started || VAR_0->disabled) {", "return;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 49 ], [ 51 ], [ 53,...
916
static void qdm2_decode_fft_packets (QDM2Context *q) { int i, j, min, max, value, type, unknown_flag; GetBitContext gb; if (q->sub_packet_list_B[0].packet == NULL) return; /* reset minimum indices for FFT coefficients */ q->fft_coefs_index = 0; for (i=0; i < 5; i++) ...
false
FFmpeg
3bbe7f5d6b8215ed2dcce0c50e93137919f3d384
static void qdm2_decode_fft_packets (QDM2Context *q) { int i, j, min, max, value, type, unknown_flag; GetBitContext gb; if (q->sub_packet_list_B[0].packet == NULL) return; q->fft_coefs_index = 0; for (i=0; i < 5; i++) q->fft_coefs_min_index[i] = -1; for...
{ "code": [], "line_no": [] }
static void FUNC_0 (QDM2Context *VAR_0) { int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; GetBitContext gb; if (VAR_0->sub_packet_list_B[0].packet == NULL) return; VAR_0->fft_coefs_index = 0; for (VAR_1=0; VAR_1 < 5; VAR_1++) VAR_0->fft_coefs_min_index[VAR_1] =...
[ "static void FUNC_0 (QDM2Context *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "GetBitContext gb;", "if (VAR_0->sub_packet_list_B[0].packet == NULL)\nreturn;", "VAR_0->fft_coefs_index = 0;", "for (VAR_1=0; VAR_1 < 5; VAR_1++)", "VAR_0->fft_coefs_min_index[VAR_1] = -1;", "for (VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 59, 61 ], [ 67...
917
void avcodec_get_channel_layout_string(char *buf, int buf_size, int nb_channels, int64_t channel_layout) { int i; if (channel_layout==0) channel_layout = avcodec_guess_channel_layout(nb_channels, CODEC_ID_NONE, NULL); for (i=0; channel_layout_map[i].name; i++) if (nb_channels ==...
false
FFmpeg
862c1d2f0573c81ed0929b685c55959906b4300c
void avcodec_get_channel_layout_string(char *buf, int buf_size, int nb_channels, int64_t channel_layout) { int i; if (channel_layout==0) channel_layout = avcodec_guess_channel_layout(nb_channels, CODEC_ID_NONE, NULL); for (i=0; channel_layout_map[i].name; i++) if (nb_channels ==...
{ "code": [], "line_no": [] }
void FUNC_0(char *VAR_0, int VAR_1, int VAR_2, int64_t VAR_3) { int VAR_5; if (VAR_3==0) VAR_3 = avcodec_guess_channel_layout(VAR_2, CODEC_ID_NONE, NULL); for (VAR_5=0; channel_layout_map[VAR_5].VAR_6; VAR_5++) if (VAR_2 == channel_layout_map[VAR_5].VAR_2 && VAR_3 =...
[ "void FUNC_0(char *VAR_0, int VAR_1, int VAR_2, int64_t VAR_3)\n{", "int VAR_5;", "if (VAR_3==0)\nVAR_3 = avcodec_guess_channel_layout(VAR_2, CODEC_ID_NONE, NULL);", "for (VAR_5=0; channel_layout_map[VAR_5].VAR_6; VAR_5++)", "if (VAR_2 == channel_layout_map[VAR_5].VAR_2 &&\nVAR_3 == channel_layout_map[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 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49...
918
int ff_h264_decode_ref_pic_list_reordering(H264Context *h, H264SliceContext *sl) { int list, index, pic_structure; print_short_term(h); print_long_term(h); for (list = 0; list < sl->list_count; list++) { memcpy(sl->ref_list[list], h->default_ref_list[list], sl->ref_count[list] * sizeof...
false
FFmpeg
aa427537b529cd584cd73222980286d36a00fe28
int ff_h264_decode_ref_pic_list_reordering(H264Context *h, H264SliceContext *sl) { int list, index, pic_structure; print_short_term(h); print_long_term(h); for (list = 0; list < sl->list_count; list++) { memcpy(sl->ref_list[list], h->default_ref_list[list], sl->ref_count[list] * sizeof...
{ "code": [], "line_no": [] }
int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1) { int VAR_2, VAR_3, VAR_4; print_short_term(VAR_0); print_long_term(VAR_0); for (VAR_2 = 0; VAR_2 < VAR_1->list_count; VAR_2++) { memcpy(VAR_1->ref_list[VAR_2], VAR_0->default_ref_list[VAR_2], VAR_1->ref_count[VAR_2] * sizeof(VAR_...
[ "int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "print_short_term(VAR_0);", "print_long_term(VAR_0);", "for (VAR_2 = 0; VAR_2 < VAR_1->list_count; VAR_2++) {", "memcpy(VAR_1->ref_list[VAR_2], VAR_0->default_ref_list[VAR_2], VAR_1->ref_count[VAR_2] * sizeof(VAR_1->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], ...
919
void FUNCC(ff_h264_chroma422_dc_dequant_idct)(int16_t *_block, int qmul){ const int stride= 16*2; const int xStride= 16; int i; int temp[8]; static const uint8_t x_offset[2]={0, 16}; dctcoef *block = (dctcoef*)_block; for(i=0; i<4; i++){ temp[2*i+0] = block[stride*i + xStri...
true
FFmpeg
ec849f637e8548ec6c9b6329334944c7c81df443
void FUNCC(ff_h264_chroma422_dc_dequant_idct)(int16_t *_block, int qmul){ const int stride= 16*2; const int xStride= 16; int i; int temp[8]; static const uint8_t x_offset[2]={0, 16}; dctcoef *block = (dctcoef*)_block; for(i=0; i<4; i++){ temp[2*i+0] = block[stride*i + xStri...
{ "code": [ " const int z0= temp[2*0+i] + temp[2*2+i];", " const int z1= temp[2*0+i] - temp[2*2+i];", " const int z2= temp[2*1+i] - temp[2*3+i];", " const int z3= temp[2*1+i] + temp[2*3+i];", " block[stride*0+offset]= ((z0 + z3)*qmul + 128) >> 8;", " b...
void FUNC_0(ff_h264_chroma422_dc_dequant_idct)(int16_t *_block, int qmul){ const int VAR_0= 16*2; const int VAR_1= 16; int VAR_2; int VAR_3[8]; static const uint8_t VAR_4[2]={0, 16}; dctcoef *block = (dctcoef*)_block; for(VAR_2=0; VAR_2<4; VAR_2++){ VAR_3[2*VAR_2+0] = block...
[ "void FUNC_0(ff_h264_chroma422_dc_dequant_idct)(int16_t *_block, int qmul){", "const int VAR_0= 16*2;", "const int VAR_1= 16;", "int VAR_2;", "int VAR_3[8];", "static const uint8_t VAR_4[2]={0, 16};", "dctcoef *block = (dctcoef*)_block;", "for(VAR_2=0; VAR_2<4; VAR_2++){", "VAR_3[2*VAR_2+0] = block[...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [...
920
static int curl_open(BlockDriverState *bs, const char *filename, int flags) { BDRVCURLState *s = bs->opaque; CURLState *state = NULL; double d; #define RA_OPTSTR ":readahead=" char *file; char *ra; const char *ra_val; int parse_state = 0; static int inited = 0; f...
true
qemu
6265eb26a375179f193f792e4f0d49036d2cf052
static int curl_open(BlockDriverState *bs, const char *filename, int flags) { BDRVCURLState *s = bs->opaque; CURLState *state = NULL; double d; #define RA_OPTSTR ":readahead=" char *file; char *ra; const char *ra_val; int parse_state = 0; static int inited = 0; f...
{ "code": [ " file = strdup(filename);" ], "line_no": [ 29 ] }
static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2) { BDRVCURLState *s = VAR_0->opaque; CURLState *state = NULL; double VAR_3; #define RA_OPTSTR ":readahead=" char *VAR_4; char *VAR_5; const char *VAR_6; int VAR_7 = 0; static int VAR_8 = 0; V...
[ "static int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, int VAR_2)\n{", "BDRVCURLState *s = VAR_0->opaque;", "CURLState *state = NULL;", "double VAR_3;", "#define RA_OPTSTR \":readahead=\"\nchar *VAR_4;", "char *VAR_5;", "const char *VAR_6;", "int VAR_7 = 0;", "static int VAR_8 = 0;", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47, 49 ], [ 51 ], [ 53 ], [...
922
static void cin_decode_rle(const unsigned char *src, int src_size, unsigned char *dst, int dst_size) { int len, code; unsigned char *dst_end = dst + dst_size; const unsigned char *src_end = src + src_size; while (src < src_end && dst < dst_end) { code = *src++; if (code & 0x80) ...
true
FFmpeg
47f0beadba9003391d8bfef59b15aa21a5b2d293
static void cin_decode_rle(const unsigned char *src, int src_size, unsigned char *dst, int dst_size) { int len, code; unsigned char *dst_end = dst + dst_size; const unsigned char *src_end = src + src_size; while (src < src_end && dst < dst_end) { code = *src++; if (code & 0x80) ...
{ "code": [ "static void cin_decode_rle(const unsigned char *src, int src_size, unsigned char *dst, int dst_size)", " while (src < src_end && dst < dst_end) {" ], "line_no": [ 1, 13 ] }
static void FUNC_0(const unsigned char *VAR_0, int VAR_1, unsigned char *VAR_2, int VAR_3) { int VAR_4, VAR_5; unsigned char *VAR_6 = VAR_2 + VAR_3; const unsigned char *VAR_7 = VAR_0 + VAR_1; while (VAR_0 < VAR_7 && VAR_2 < VAR_6) { VAR_5 = *VAR_0++; if (VAR_5 & 0x80) { ...
[ "static void FUNC_0(const unsigned char *VAR_0, int VAR_1, unsigned char *VAR_2, int VAR_3)\n{", "int VAR_4, VAR_5;", "unsigned char *VAR_6 = VAR_2 + VAR_3;", "const unsigned char *VAR_7 = VAR_0 + VAR_1;", "while (VAR_0 < VAR_7 && VAR_2 < VAR_6) {", "VAR_5 = *VAR_0++;", "if (VAR_5 & 0x80) {", "VAR_4 =...
[ 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
923
static int64_t coroutine_fn iscsi_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file) { IscsiLun *i...
true
qemu
79f9c75e1707082e56723787e6b3610a46843e20
static int64_t coroutine_fn iscsi_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file) { IscsiLun *i...
{ "code": [ " iscsi_co_init_iscsitask(iscsilun, &iTask);" ], "line_no": [ 59 ] }
static int64_t VAR_0 iscsi_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file) { IscsiLun *iscsilun...
[ "static int64_t VAR_0 iscsi_co_get_block_status(BlockDriverState *bs,\nint64_t sector_num,\nint nb_sectors, int *pnum,\nBlockDriverState **file)\n{", "IscsiLun *iscsilun = bs->opaque;", "struct scsi_get_lba_status *lbas = NULL;", "struct scsi_lba_status_descriptor *lbasd = NULL;", "struct IscsiTask iTask;",...
[ 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, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [...
925
static int dvvideo_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { uint8_t *buf = avpkt->data; int buf_size = avpkt->size; DVVideoContext *s = avctx->priv_data; const uint8_t *vsc_pack; int apt, is16_9, ret; const AVDVPro...
false
FFmpeg
74d7db586a2e9aeb107e357739c7e4dde0b6991c
static int dvvideo_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { uint8_t *buf = avpkt->data; int buf_size = avpkt->size; DVVideoContext *s = avctx->priv_data; const uint8_t *vsc_pack; int apt, is16_9, ret; const AVDVPro...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { uint8_t *buf = VAR_3->VAR_1; int VAR_4 = VAR_3->size; DVVideoContext *s = VAR_0->priv_data; const uint8_t *VAR_5; int VAR_6, VAR_7, VAR_8; const AVDVProfile *VAR_9; ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "uint8_t *buf = VAR_3->VAR_1;", "int VAR_4 = VAR_3->size;", "DVVideoContext *s = VAR_0->priv_data;", "const uint8_t *VAR_5;", "int VAR_6, VAR_7, VAR_8;", "const AVDVProfile *VAR_9;", "VAR_9 = av_dv_frame_profile(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [...
926
static int inc_refcounts(BlockDriverState *bs, uint16_t *refcount_table, int refcount_table_size, int64_t offset, int64_t size) { BDRVQcowState *s = bs->opaque; int64_t start, last, cluster_offset; int k; int errors = ...
true
qemu
9ac228e02cf16202547e7025ef300369e0db7781
static int inc_refcounts(BlockDriverState *bs, uint16_t *refcount_table, int refcount_table_size, int64_t offset, int64_t size) { BDRVQcowState *s = bs->opaque; int64_t start, last, cluster_offset; int k; int errors = ...
{ "code": [ "static int inc_refcounts(BlockDriverState *bs,", " int errors = 0;", " return 0;", " if (k < 0 || k >= refcount_table_size) {", " errors++;", " errors++;", " return errors;", " int errors = 0;", " return errors;", ...
static int FUNC_0(BlockDriverState *VAR_0, uint16_t *VAR_1, int VAR_2, int64_t VAR_3, int64_t VAR_4) { BDRVQcowState *s = VAR_0->opaque; int64_t start, last, cluster_offset; int VAR_5; int VAR_6 = 0; if (VAR_4 <...
[ "static int FUNC_0(BlockDriverState *VAR_0,\nuint16_t *VAR_1,\nint VAR_2,\nint64_t VAR_3, int64_t VAR_4)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int64_t start, last, cluster_offset;", "int VAR_5;", "int VAR_6 = 0;", "if (VAR_4 <= 0)\nreturn 0;", "start = VAR_3 & ~(s->cluster_size - 1);", "last = (V...
[ 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ...
927
static void arm_tr_tb_stop(DisasContextBase *dcbase, CPUState *cpu) { DisasContext *dc = container_of(dcbase, DisasContext, base); if (dc->base.tb->cflags & CF_LAST_IO && dc->condjmp) { /* FIXME: This can theoretically happen with self-modifying code. */ cpu_abort(cpu, "IO on conditional ...
true
qemu
c5a49c63fa26e8825ad101dfe86339ae4c216539
static void arm_tr_tb_stop(DisasContextBase *dcbase, CPUState *cpu) { DisasContext *dc = container_of(dcbase, DisasContext, base); if (dc->base.tb->cflags & CF_LAST_IO && dc->condjmp) { cpu_abort(cpu, "IO on conditional branch instruction"); } gen_set_condexec(dc); ...
{ "code": [ " if (dc->base.tb->cflags & CF_LAST_IO && dc->condjmp) {" ], "line_no": [ 9 ] }
static void FUNC_0(DisasContextBase *VAR_0, CPUState *VAR_1) { DisasContext *dc = container_of(VAR_0, DisasContext, base); if (dc->base.tb->cflags & CF_LAST_IO && dc->condjmp) { cpu_abort(VAR_1, "IO on conditional branch instruction"); } gen_set_condexec(dc); i...
[ "static void FUNC_0(DisasContextBase *VAR_0, CPUState *VAR_1)\n{", "DisasContext *dc = container_of(VAR_0, DisasContext, base);", "if (dc->base.tb->cflags & CF_LAST_IO && dc->condjmp) {", "cpu_abort(VAR_1, \"IO on conditional branch instruction\");", "}", "gen_set_condexec(dc);", "if (dc->base.is_jmp ==...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ], [ 25 ], [ 27 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49 ], [ 51, 53 ], [ 55 ], [ 57, 59 ], [ 61 ], [ 63 ], [ 65, 67 ], [ 69...
928
void pcmcia_info(Monitor *mon, const QDict *qdict) { struct pcmcia_socket_entry_s *iter; if (!pcmcia_sockets) monitor_printf(mon, "No PCMCIA sockets\n"); for (iter = pcmcia_sockets; iter; iter = iter->next) monitor_printf(mon, "%s: %s\n", iter->socket->slot_string, ...
true
qemu
7797a73947d5c0e63dd5552b348cf66c384b4555
void pcmcia_info(Monitor *mon, const QDict *qdict) { struct pcmcia_socket_entry_s *iter; if (!pcmcia_sockets) monitor_printf(mon, "No PCMCIA sockets\n"); for (iter = pcmcia_sockets; iter; iter = iter->next) monitor_printf(mon, "%s: %s\n", iter->socket->slot_string, ...
{ "code": [ "void pcmcia_info(Monitor *mon, const QDict *qdict)", " struct pcmcia_socket_entry_s *iter;", " if (!pcmcia_sockets)", " monitor_printf(mon, \"No PCMCIA sockets\\n\");", " for (iter = pcmcia_sockets; iter; iter = iter->next)", " monitor_printf(mon, \"%s: %s\\...
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { struct pcmcia_socket_entry_s *VAR_2; if (!pcmcia_sockets) monitor_printf(VAR_0, "No PCMCIA sockets\n"); for (VAR_2 = pcmcia_sockets; VAR_2; VAR_2 = VAR_2->next) monitor_printf(VAR_0, "%s: %s\n", VAR_2->socket->slot_string, ...
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "struct pcmcia_socket_entry_s *VAR_2;", "if (!pcmcia_sockets)\nmonitor_printf(VAR_0, \"No PCMCIA sockets\\n\");", "for (VAR_2 = pcmcia_sockets; VAR_2; VAR_2 = VAR_2->next)", "monitor_printf(VAR_0, \"%s: %s\\n\", VAR_2->socket->slot_string,\nVAR_2->socket...
[ 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17, 19, 21 ], [ 23 ] ]
929
static void ahci_reg_init(AHCIState *s) { int i; s->control_regs.cap = (s->ports - 1) | (AHCI_NUM_COMMAND_SLOTS << 8) | (AHCI_SUPPORTED_SPEED_GEN1 << AHCI_SUPPORTED_SPEED) | HOST_CAP_NCQ | HOST_CAP_AHCI; s->control_regs...
true
qemu
98cb5dccb192b0082626080890dac413473573c6
static void ahci_reg_init(AHCIState *s) { int i; s->control_regs.cap = (s->ports - 1) | (AHCI_NUM_COMMAND_SLOTS << 8) | (AHCI_SUPPORTED_SPEED_GEN1 << AHCI_SUPPORTED_SPEED) | HOST_CAP_NCQ | HOST_CAP_AHCI; s->control_regs...
{ "code": [ " HOST_CAP_NCQ | HOST_CAP_AHCI;" ], "line_no": [ 15 ] }
static void FUNC_0(AHCIState *VAR_0) { int VAR_1; VAR_0->control_regs.cap = (VAR_0->ports - 1) | (AHCI_NUM_COMMAND_SLOTS << 8) | (AHCI_SUPPORTED_SPEED_GEN1 << AHCI_SUPPORTED_SPEED) | HOST_CAP_NCQ | HOST_CAP_AHCI; VAR_0-...
[ "static void FUNC_0(AHCIState *VAR_0)\n{", "int VAR_1;", "VAR_0->control_regs.cap = (VAR_0->ports - 1) |\n(AHCI_NUM_COMMAND_SLOTS << 8) |\n(AHCI_SUPPORTED_SPEED_GEN1 << AHCI_SUPPORTED_SPEED) |\nHOST_CAP_NCQ | HOST_CAP_AHCI;", "VAR_0->control_regs.impl = (1 << VAR_0->ports) - 1;", "VAR_0->control_regs.versio...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13, 15 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
930
static void virtio_crypto_get_config(VirtIODevice *vdev, uint8_t *config) { VirtIOCrypto *c = VIRTIO_CRYPTO(vdev); struct virtio_crypto_config crypto_cfg; /* * Virtio-crypto device conforms to VIRTIO 1.0 which is always LE, * so we can use LE accessors directly. */ stl_le_p(&cry...
true
qemu
9730280d54634caa5d63f0d8fcd85da8311d2ebf
static void virtio_crypto_get_config(VirtIODevice *vdev, uint8_t *config) { VirtIOCrypto *c = VIRTIO_CRYPTO(vdev); struct virtio_crypto_config crypto_cfg; stl_le_p(&crypto_cfg.status, c->status); stl_le_p(&crypto_cfg.max_dataqueues, c->max_queues); stl_le_p(&crypto_cfg.crypto_ser...
{ "code": [ " struct virtio_crypto_config crypto_cfg;" ], "line_no": [ 7 ] }
static void FUNC_0(VirtIODevice *VAR_0, uint8_t *VAR_1) { VirtIOCrypto *c = VIRTIO_CRYPTO(VAR_0); struct virtio_crypto_config VAR_2; stl_le_p(&VAR_2.status, c->status); stl_le_p(&VAR_2.max_dataqueues, c->max_queues); stl_le_p(&VAR_2.crypto_services, c->conf.crypto_services); ...
[ "static void FUNC_0(VirtIODevice *VAR_0, uint8_t *VAR_1)\n{", "VirtIOCrypto *c = VIRTIO_CRYPTO(VAR_0);", "struct virtio_crypto_config VAR_2;", "stl_le_p(&VAR_2.status, c->status);", "stl_le_p(&VAR_2.max_dataqueues, c->max_queues);", "stl_le_p(&VAR_2.crypto_services, c->conf.crypto_services);", "stl_le_p...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ] ]
931
static int flac_probe(AVProbeData *p) { uint8_t *bufptr = p->buf; uint8_t *end = p->buf + p->buf_size; if(bufptr > end-4 || memcmp(bufptr, "fLaC", 4)) return 0; else return AVPROBE_SCORE_MAX/2; }
true
FFmpeg
8425d693eefbedbb41f91735614d41067695aa37
static int flac_probe(AVProbeData *p) { uint8_t *bufptr = p->buf; uint8_t *end = p->buf + p->buf_size; if(bufptr > end-4 || memcmp(bufptr, "fLaC", 4)) return 0; else return AVPROBE_SCORE_MAX/2; }
{ "code": [ " uint8_t *bufptr = p->buf;", " uint8_t *end = p->buf + p->buf_size;", " if(bufptr > end-4 || memcmp(bufptr, \"fLaC\", 4)) return 0;", " else return AVPROBE_SCORE_MAX/2;" ], "line_no": [ 5, 7, 11, 13 ] }
static int FUNC_0(AVProbeData *VAR_0) { uint8_t *bufptr = VAR_0->buf; uint8_t *end = VAR_0->buf + VAR_0->buf_size; if(bufptr > end-4 || memcmp(bufptr, "fLaC", 4)) return 0; else return AVPROBE_SCORE_MAX/2; }
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "uint8_t *bufptr = VAR_0->buf;", "uint8_t *end = VAR_0->buf + VAR_0->buf_size;", "if(bufptr > end-4 || memcmp(bufptr, \"fLaC\", 4)) return 0;", "else return AVPROBE_SCORE_MAX/2;", "}" ]
[ 0, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ] ]
932
static int get_qcd(Jpeg2000DecoderContext *s, int n, Jpeg2000QuantStyle *q, uint8_t *properties) { Jpeg2000QuantStyle tmp; int compno, ret; if ((ret = get_qcx(s, n, &tmp)) < 0) return ret; for (compno = 0; compno < s->ncomponents; compno++) if (!(properties[compno] & H...
true
FFmpeg
55fa898969d10e2d47bba0613175bf57a86c5a41
static int get_qcd(Jpeg2000DecoderContext *s, int n, Jpeg2000QuantStyle *q, uint8_t *properties) { Jpeg2000QuantStyle tmp; int compno, ret; if ((ret = get_qcx(s, n, &tmp)) < 0) return ret; for (compno = 0; compno < s->ncomponents; compno++) if (!(properties[compno] & H...
{ "code": [], "line_no": [] }
static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1, Jpeg2000QuantStyle *VAR_2, uint8_t *VAR_3) { Jpeg2000QuantStyle tmp; int VAR_4, VAR_5; if ((VAR_5 = get_qcx(VAR_0, VAR_1, &tmp)) < 0) return VAR_5; for (VAR_4 = 0; VAR_4 < VAR_0->ncomponents; VAR_4++) if (!(VA...
[ "static int FUNC_0(Jpeg2000DecoderContext *VAR_0, int VAR_1, Jpeg2000QuantStyle *VAR_2,\nuint8_t *VAR_3)\n{", "Jpeg2000QuantStyle tmp;", "int VAR_4, VAR_5;", "if ((VAR_5 = get_qcx(VAR_0, VAR_1, &tmp)) < 0)\nreturn VAR_5;", "for (VAR_4 = 0; VAR_4 < VAR_0->ncomponents; VAR_4++)", "if (!(VAR_3[VAR_4] & HAD_Q...
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6, 7 ], [ 8 ], [ 9, 10 ], [ 11 ], [ 12 ] ]
933
void slirp_init(int restricted, struct in_addr vnetwork, struct in_addr vnetmask, struct in_addr vhost, const char *vhostname, const char *tftp_path, const char *bootfile, struct in_addr vdhcp_start, struct in_addr vnameserver) { #ifdef _WIN32 W...
true
qemu
df46189412567906312684eb72ba87c6a86a4cdb
void slirp_init(int restricted, struct in_addr vnetwork, struct in_addr vnetmask, struct in_addr vhost, const char *vhostname, const char *tftp_path, const char *bootfile, struct in_addr vdhcp_start, struct in_addr vnameserver) { #ifdef _WIN32 W...
{ "code": [ "#ifdef _WIN32", "#ifdef _WIN32", " WSADATA Data;", " WSAStartup(MAKEWORD(2,0), &Data);", " atexit(slirp_cleanup);", "#endif", " inet_aton(\"127.0.0.1\", &loopback_addr);", " if (get_dns_addr(&dns_addr) < 0) {", " dns_addr = loopback_addr;", " ...
void FUNC_0(int VAR_0, struct in_addr VAR_1, struct in_addr VAR_2, struct in_addr VAR_3, const char *VAR_4, const char *VAR_5, const char *VAR_6, struct in_addr VAR_7, struct in_addr VAR_8) { #ifdef _WIN32 WSADATA Data; WSAStartup(MAKEWOR...
[ "void FUNC_0(int VAR_0, struct in_addr VAR_1,\nstruct in_addr VAR_2, struct in_addr VAR_3,\nconst char *VAR_4, const char *VAR_5,\nconst char *VAR_6, struct in_addr VAR_7,\nstruct in_addr VAR_8)\n{", "#ifdef _WIN32\nWSADATA Data;", "WSAStartup(MAKEWORD(2,0), &Data);", "atexit(slirp_cleanup);", "#endif\nlink...
[ 0, 1, 1, 1, 1, 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, 1, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 23, 27 ], [ 29 ], [ 33 ], [ 35 ], [ 41 ], [ 47 ], [ 51 ], [ 53 ], [ 55 ], [ 57 ], [ 61 ], [ 63 ], [ 65 ...
934
void virtio_net_set_config_size(VirtIONet *n, uint32_t host_features) { int i, config_size = 0; for (i = 0; feature_sizes[i].flags != 0; i++) { if (host_features & feature_sizes[i].flags) { config_size = MAX(feature_sizes[i].end, config_size); } } n->config_size = co...
true
qemu
e9016ee2bda1b7757072b856b2196f691aee3388
void virtio_net_set_config_size(VirtIONet *n, uint32_t host_features) { int i, config_size = 0; for (i = 0; feature_sizes[i].flags != 0; i++) { if (host_features & feature_sizes[i].flags) { config_size = MAX(feature_sizes[i].end, config_size); } } n->config_size = co...
{ "code": [], "line_no": [] }
void FUNC_0(VirtIONet *VAR_0, uint32_t VAR_1) { int VAR_2, VAR_3 = 0; for (VAR_2 = 0; feature_sizes[VAR_2].flags != 0; VAR_2++) { if (VAR_1 & feature_sizes[VAR_2].flags) { VAR_3 = MAX(feature_sizes[VAR_2].end, VAR_3); } } VAR_0->VAR_3 = VAR_3; }
[ "void FUNC_0(VirtIONet *VAR_0, uint32_t VAR_1)\n{", "int VAR_2, VAR_3 = 0;", "for (VAR_2 = 0; feature_sizes[VAR_2].flags != 0; VAR_2++) {", "if (VAR_1 & feature_sizes[VAR_2].flags) {", "VAR_3 = MAX(feature_sizes[VAR_2].end, VAR_3);", "}", "}", "VAR_0->VAR_3 = VAR_3;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 8 ], [ 10 ], [ 12 ], [ 14 ], [ 16 ], [ 18 ], [ 20 ] ]
935
qemu_irq *openpic_init (PCIBus *bus, int *pmem_index, int nb_cpus, qemu_irq **irqs, qemu_irq irq_out) { openpic_t *opp; uint8_t *pci_conf; int i, m; /* XXX: for now, only one CPU is supported */ if (nb_cpus != 1) return NULL; if (bus) { opp = (...
true
qemu
c364c974d9ab90e25e7887f516da65d2811ba5e3
qemu_irq *openpic_init (PCIBus *bus, int *pmem_index, int nb_cpus, qemu_irq **irqs, qemu_irq irq_out) { openpic_t *opp; uint8_t *pci_conf; int i, m; if (nb_cpus != 1) return NULL; if (bus) { opp = (openpic_t *)pci_register_device(bus, "OpenPIC...
{ "code": [ " if (opp == NULL)", " return NULL;", " return NULL;", " return NULL;" ], "line_no": [ 27, 29, 19, 19 ] }
qemu_irq *FUNC_0 (PCIBus *bus, int *pmem_index, int nb_cpus, qemu_irq **irqs, qemu_irq irq_out) { openpic_t *opp; uint8_t *pci_conf; int VAR_0, VAR_1; if (nb_cpus != 1) return NULL; if (bus) { opp = (openpic_t *)pci_register_device(bus, "OpenP...
[ "qemu_irq *FUNC_0 (PCIBus *bus, int *pmem_index, int nb_cpus,\nqemu_irq **irqs, qemu_irq irq_out)\n{", "openpic_t *opp;", "uint8_t *pci_conf;", "int VAR_0, VAR_1;", "if (nb_cpus != 1)\nreturn NULL;", "if (bus) {", "opp = (openpic_t *)pci_register_device(bus, \"OpenPIC\", sizeof(openpic_t),\n-1, NULL, NU...
[ 0, 0, 0, 0, 1, 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 ], [ 17, 19 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47, 49 ], [ 51 ], [ 53 ], [...
936
static int decode_fctl_chunk(AVCodecContext *avctx, PNGDecContext *s, uint32_t length) { uint32_t sequence_number; if (length != 26) return AVERROR_INVALIDDATA; if (!(s->state & PNG_IHDR)) { av_log(avctx, AV_LOG_ERROR, "fctl before IHDR\n"); r...
false
FFmpeg
b54ac8403bfea4e7fab0799ccfe728ba76959a38
static int decode_fctl_chunk(AVCodecContext *avctx, PNGDecContext *s, uint32_t length) { uint32_t sequence_number; if (length != 26) return AVERROR_INVALIDDATA; if (!(s->state & PNG_IHDR)) { av_log(avctx, AV_LOG_ERROR, "fctl before IHDR\n"); r...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, PNGDecContext *VAR_1, uint32_t VAR_2) { uint32_t sequence_number; if (VAR_2 != 26) return AVERROR_INVALIDDATA; if (!(VAR_1->state & PNG_IHDR)) { av_log(VAR_0, AV_LOG_ERROR, "fctl before IHDR\n"); return...
[ "static int FUNC_0(AVCodecContext *VAR_0, PNGDecContext *VAR_1,\nuint32_t VAR_2)\n{", "uint32_t sequence_number;", "if (VAR_2 != 26)\nreturn AVERROR_INVALIDDATA;", "if (!(VAR_1->state & PNG_IHDR)) {", "av_log(VAR_0, AV_LOG_ERROR, \"fctl before IHDR\\n\");", "return AVERROR_INVALIDDATA;", "}", "VAR_1->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51...
938
int ff_h264_build_ref_list(H264Context *h, H264SliceContext *sl) { int list, index, pic_structure; print_short_term(h); print_long_term(h); h264_initialise_ref_list(h, sl); for (list = 0; list < sl->list_count; list++) { int pred = sl->curr_pic_num; for (index = 0; in...
true
FFmpeg
5bbffe3412c1c34873d83d3fb80b379bb6e53d3f
int ff_h264_build_ref_list(H264Context *h, H264SliceContext *sl) { int list, index, pic_structure; print_short_term(h); print_long_term(h); h264_initialise_ref_list(h, sl); for (list = 0; list < sl->list_count; list++) { int pred = sl->curr_pic_num; for (index = 0; in...
{ "code": [ " av_assert1(0);" ], "line_no": [ 149 ] }
int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1) { int VAR_2, VAR_3, VAR_4; print_short_term(VAR_0); print_long_term(VAR_0); h264_initialise_ref_list(VAR_0, VAR_1); for (VAR_2 = 0; VAR_2 < VAR_1->list_count; VAR_2++) { int pred = VAR_1->curr_pic_num; for (VAR_3...
[ "int FUNC_0(H264Context *VAR_0, H264SliceContext *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4;", "print_short_term(VAR_0);", "print_long_term(VAR_0);", "h264_initialise_ref_list(VAR_0, VAR_1);", "for (VAR_2 = 0; VAR_2 < VAR_1->list_count; VAR_2++) {", "int pred = VAR_1->curr_pic_num;", "for (VAR_3 = 0; VAR_3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53, 55...
939
int check_hw_breakpoints(CPUX86State *env, int force_dr6_update) { target_ulong dr6; int reg, type; int hit_enabled = 0; dr6 = env->dr[6] & ~0xf; for (reg = 0; reg < DR7_MAX_BP; reg++) { type = hw_breakpoint_type(env->dr[7], reg); if ((type == 0 && env->dr[reg] == env->eip)...
true
qemu
e175bce587936bf479889881488821ea8d61c89c
int check_hw_breakpoints(CPUX86State *env, int force_dr6_update) { target_ulong dr6; int reg, type; int hit_enabled = 0; dr6 = env->dr[6] & ~0xf; for (reg = 0; reg < DR7_MAX_BP; reg++) { type = hw_breakpoint_type(env->dr[7], reg); if ((type == 0 && env->dr[reg] == env->eip)...
{ "code": [ "int check_hw_breakpoints(CPUX86State *env, int force_dr6_update)", " int reg, type;", " int hit_enabled = 0;", " type = hw_breakpoint_type(env->dr[7], reg);", " if ((type == 0 && env->dr[reg] == env->eip) ||", " ((type & 1) && env->cpu_watchpoint[reg...
int FUNC_0(CPUX86State *VAR_0, int VAR_1) { target_ulong dr6; int VAR_2, VAR_3; int VAR_4 = 0; dr6 = VAR_0->dr[6] & ~0xf; for (VAR_2 = 0; VAR_2 < DR7_MAX_BP; VAR_2++) { VAR_3 = hw_breakpoint_type(VAR_0->dr[7], VAR_2); if ((VAR_3 == 0 && VAR_0->dr[VAR_2] == VAR_0->eip) || ...
[ "int FUNC_0(CPUX86State *VAR_0, int VAR_1)\n{", "target_ulong dr6;", "int VAR_2, VAR_3;", "int VAR_4 = 0;", "dr6 = VAR_0->dr[6] & ~0xf;", "for (VAR_2 = 0; VAR_2 < DR7_MAX_BP; VAR_2++) {", "VAR_3 = hw_breakpoint_type(VAR_0->dr[7], VAR_2);", "if ((VAR_3 == 0 && VAR_0->dr[VAR_2] == VAR_0->eip) ||\n((VAR_...
[ 1, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19, 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ] ]
940
void ff_dv_offset_reset(DVDemuxContext *c, int64_t frame_offset) { c->frames= frame_offset; if (c->ach) c->abytes= av_rescale_q(c->frames, c->sys->time_base, (AVRational){8, c->ast[0]->codec->bit_rate}); c->audio_pkt[0].size = c->audio_pkt[1].size = 0; c->a...
true
FFmpeg
a39c5c4c6baafcef0c6ec7c6f59bc3fee81b2599
void ff_dv_offset_reset(DVDemuxContext *c, int64_t frame_offset) { c->frames= frame_offset; if (c->ach) c->abytes= av_rescale_q(c->frames, c->sys->time_base, (AVRational){8, c->ast[0]->codec->bit_rate}); c->audio_pkt[0].size = c->audio_pkt[1].size = 0; c->a...
{ "code": [ " if (c->ach)" ], "line_no": [ 7 ] }
void FUNC_0(DVDemuxContext *VAR_0, int64_t VAR_1) { VAR_0->frames= VAR_1; if (VAR_0->ach) VAR_0->abytes= av_rescale_q(VAR_0->frames, VAR_0->sys->time_base, (AVRational){8, VAR_0->ast[0]->codec->bit_rate}); VAR_0->audio_pkt[0].size = VAR_0->audio_pkt[1].size = 0;...
[ "void FUNC_0(DVDemuxContext *VAR_0, int64_t VAR_1)\n{", "VAR_0->frames= VAR_1;", "if (VAR_0->ach)\nVAR_0->abytes= av_rescale_q(VAR_0->frames, VAR_0->sys->time_base,\n(AVRational){8, VAR_0->ast[0]->codec->bit_rate});", "VAR_0->audio_pkt[0].size = VAR_0->audio_pkt[1].size = 0;", "VAR_0->audio_pkt[2].size = VA...
[ 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ] ]
942
static int process_ipmovie_chunk(IPMVEContext *s, ByteIOContext *pb, AVPacket *pkt) { unsigned char chunk_preamble[CHUNK_PREAMBLE_SIZE]; int chunk_type; int chunk_size; unsigned char opcode_preamble[OPCODE_PREAMBLE_SIZE]; unsigned char opcode_type; unsigned char opcode_version; ...
true
FFmpeg
49c8132b17ec26666d71ee94a50f421b84feeb35
static int process_ipmovie_chunk(IPMVEContext *s, ByteIOContext *pb, AVPacket *pkt) { unsigned char chunk_preamble[CHUNK_PREAMBLE_SIZE]; int chunk_type; int chunk_size; unsigned char opcode_preamble[OPCODE_PREAMBLE_SIZE]; unsigned char opcode_type; unsigned char opcode_version; ...
{ "code": [ " if ((chunk_type == CHUNK_VIDEO) && (chunk_type != CHUNK_DONE))" ], "line_no": [ 37 ] }
static int FUNC_0(IPMVEContext *VAR_0, ByteIOContext *VAR_1, AVPacket *VAR_2) { unsigned char VAR_3[CHUNK_PREAMBLE_SIZE]; int VAR_4; int VAR_5; unsigned char VAR_6[OPCODE_PREAMBLE_SIZE]; unsigned char VAR_7; unsigned char VAR_8; int VAR_9; unsigned char VAR_10[1024]; i...
[ "static int FUNC_0(IPMVEContext *VAR_0, ByteIOContext *VAR_1,\nAVPacket *VAR_2)\n{", "unsigned char VAR_3[CHUNK_PREAMBLE_SIZE];", "int VAR_4;", "int VAR_5;", "unsigned char VAR_6[OPCODE_PREAMBLE_SIZE];", "unsigned char VAR_7;", "unsigned char VAR_8;", "int VAR_9;", "unsigned char VAR_10[1024];", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37, 39 ], [ 45, 47 ], [ 49, 51, 53 ], [...
943
static int save_xbzrle_page(RAMState *rs, uint8_t **current_data, ram_addr_t current_addr, RAMBlock *block, ram_addr_t offset, bool last_stage) { int encoded_len = 0, bytes_xbzrle; uint8_t *prev_cached_page; if (!cache_is_cached(XBZRLE.cache, c...
true
qemu
2bf3aa85f08186b8162b76e7e8efe5b5a44306a6
static int save_xbzrle_page(RAMState *rs, uint8_t **current_data, ram_addr_t current_addr, RAMBlock *block, ram_addr_t offset, bool last_stage) { int encoded_len = 0, bytes_xbzrle; uint8_t *prev_cached_page; if (!cache_is_cached(XBZRLE.cache, c...
{ "code": [ " bytes_xbzrle = save_page_header(rs, block," ], "line_no": [ 103 ] }
static int FUNC_0(RAMState *VAR_0, uint8_t **VAR_1, ram_addr_t VAR_2, RAMBlock *VAR_3, ram_addr_t VAR_4, bool VAR_5) { int VAR_6 = 0, VAR_7; uint8_t *prev_cached_page; if (!cache_is_cached(XBZRLE.cache, VAR_2, VAR_0->bitmap_sync_count)) { ...
[ "static int FUNC_0(RAMState *VAR_0, uint8_t **VAR_1,\nram_addr_t VAR_2, RAMBlock *VAR_3,\nram_addr_t VAR_4, bool VAR_5)\n{", "int VAR_6 = 0, VAR_7;", "uint8_t *prev_cached_page;", "if (!cache_is_cached(XBZRLE.cache, VAR_2, VAR_0->bitmap_sync_count)) {", "VAR_0->xbzrle_cache_miss++;", "if (!VAR_5) {", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 51 ], [ 57, 59, 61 ], [...
945
static void dump_qobject(fprintf_function func_fprintf, void *f, int comp_indent, QObject *obj) { switch (qobject_type(obj)) { case QTYPE_QINT: { QInt *value = qobject_to_qint(obj); func_fprintf(f, "%" PRId64, qint_get_int(value)); break; ...
true
qemu
f25391c2a6ef1674384204265429520ea50e82bc
static void dump_qobject(fprintf_function func_fprintf, void *f, int comp_indent, QObject *obj) { switch (qobject_type(obj)) { case QTYPE_QINT: { QInt *value = qobject_to_qint(obj); func_fprintf(f, "%" PRId64, qint_get_int(value)); break; ...
{ "code": [], "line_no": [] }
static void FUNC_0(fprintf_function VAR_0, void *VAR_1, int VAR_2, QObject *VAR_3) { switch (qobject_type(VAR_3)) { case QTYPE_QINT: { QInt *value = qobject_to_qint(VAR_3); VAR_0(VAR_1, "%" PRId64, qint_get_int(value)); break; } ...
[ "static void FUNC_0(fprintf_function VAR_0, void *VAR_1,\nint VAR_2, QObject *VAR_3)\n{", "switch (qobject_type(VAR_3)) {", "case QTYPE_QINT: {", "QInt *value = qobject_to_qint(VAR_3);", "VAR_0(VAR_1, \"%\" PRId64, qint_get_int(value));", "break;", "}", "case QTYPE_QSTRING: {", "QString *value = qob...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [...
947
int sws_getColorspaceDetails(SwsContext *c, int **inv_table, int *srcRange, int **table, int *dstRange, int *brightness, int *contrast, int *saturation) { if (isYUV(c->dstFormat) || isGray(c->dstFormat)) return -1; *inv_table = c->srcColorspaceTable; *table = c->dstColorspaceTable; *srcRange ...
true
FFmpeg
364889cf9c1f3c5e816a30d30d714a84765cfc29
int sws_getColorspaceDetails(SwsContext *c, int **inv_table, int *srcRange, int **table, int *dstRange, int *brightness, int *contrast, int *saturation) { if (isYUV(c->dstFormat) || isGray(c->dstFormat)) return -1; *inv_table = c->srcColorspaceTable; *table = c->dstColorspaceTable; *srcRange ...
{ "code": [ " if (isYUV(c->dstFormat) || isGray(c->dstFormat)) return -1;" ], "line_no": [ 5 ] }
int FUNC_0(SwsContext *VAR_0, int **VAR_1, int *VAR_2, int **VAR_3, int *VAR_4, int *VAR_5, int *VAR_6, int *VAR_7) { if (isYUV(VAR_0->dstFormat) || isGray(VAR_0->dstFormat)) return -1; *VAR_1 = VAR_0->srcColorspaceTable; *VAR_3 = VAR_0->dstColorspaceTable; *VAR_2 = VAR_0->VAR_2; *VAR_4...
[ "int FUNC_0(SwsContext *VAR_0, int **VAR_1, int *VAR_2, int **VAR_3, int *VAR_4, int *VAR_5, int *VAR_6, int *VAR_7)\n{", "if (isYUV(VAR_0->dstFormat) || isGray(VAR_0->dstFormat)) return -1;", "*VAR_1 = VAR_0->srcColorspaceTable;", "*VAR_3 = VAR_0->dstColorspaceTable;", "*VAR_2 = VAR_0->VAR_2;", "*VA...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ] ]
948
static int mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, UINT8 *buf, int buf_size) { MJpegDecodeContext *s = avctx->priv_data; UINT8 *buf_end, *buf_ptr; int i, start_code; AVPicture *picture = data; *data_...
false
FFmpeg
68f593b48433842f3407586679fe07f3e5199ab9
static int mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *data_size, UINT8 *buf, int buf_size) { MJpegDecodeContext *s = avctx->priv_data; UINT8 *buf_end, *buf_ptr; int i, start_code; AVPicture *picture = data; *data_...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, UINT8 *VAR_3, int VAR_4) { MJpegDecodeContext *s = VAR_0->priv_data; UINT8 *buf_end, *buf_ptr; int VAR_5, VAR_6; AVPicture *picture = VAR_1; *VAR_2 = 0; ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nUINT8 *VAR_3, int VAR_4)\n{", "MJpegDecodeContext *s = VAR_0->priv_data;", "UINT8 *buf_end, *buf_ptr;", "int VAR_5, VAR_6;", "AVPicture *picture = VAR_1;", "*VAR_2 = 0;", "if (VAR_4 == 0)\nreturn 0;", "buf_ptr = VAR_3;", "buf_end =...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55, 57 ], [ 59 ...
949
static int draw_text(AVFilterContext *ctx, AVFrame *frame, int width, int height) { DrawTextContext *s = ctx->priv; AVFilterLink *inlink = ctx->inputs[0]; uint32_t code = 0, prev_code = 0; int x = 0, y = 0, i = 0, ret; int max_text_line_w = 0, len; int box_w, box_h...
false
FFmpeg
2e67a99fbc6b99315925de40fc6fa7161576be10
static int draw_text(AVFilterContext *ctx, AVFrame *frame, int width, int height) { DrawTextContext *s = ctx->priv; AVFilterLink *inlink = ctx->inputs[0]; uint32_t code = 0, prev_code = 0; int x = 0, y = 0, i = 0, ret; int max_text_line_w = 0, len; int box_w, box_h...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1, int VAR_2, int VAR_3) { DrawTextContext *s = VAR_0->priv; AVFilterLink *inlink = VAR_0->inputs[0]; uint32_t code = 0, prev_code = 0; int VAR_4 = 0, VAR_5 = 0, VAR_6 = 0, VAR_7; int VAR_8 = 0, VAR_9; int VAR_...
[ "static int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1,\nint VAR_2, int VAR_3)\n{", "DrawTextContext *s = VAR_0->priv;", "AVFilterLink *inlink = VAR_0->inputs[0];", "uint32_t code = 0, prev_code = 0;", "int VAR_4 = 0, VAR_5 = 0, VAR_6 = 0, VAR_7;", "int VAR_8 = 0, VAR_9;", "int VAR_10, VAR_11;", "c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
950
static int planarCopyWrapper(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[]) { const AVPixFmtDescriptor *desc_src = av_pix_fmt_desc_get(c->srcFormat); const AVPixFmtDescriptor *des...
false
FFmpeg
33c827f632f95ffe3399b695a5a0d47b366b6e20
static int planarCopyWrapper(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[]) { const AVPixFmtDescriptor *desc_src = av_pix_fmt_desc_get(c->srcFormat); const AVPixFmtDescriptor *des...
{ "code": [], "line_no": [] }
static int FUNC_0(SwsContext *VAR_0, const uint8_t *VAR_1[], int VAR_2[], int VAR_3, int VAR_4, uint8_t *VAR_5[], int VAR_6[]) { const AVPixFmtDescriptor *VAR_7 = av_pix_fmt_desc_get(VAR_0->srcFormat); const AVPixFmtDescriptor *VAR_8 = av_pix_fmt_de...
[ "static int FUNC_0(SwsContext *VAR_0, const uint8_t *VAR_1[],\nint VAR_2[], int VAR_3, int VAR_4,\nuint8_t *VAR_5[], int VAR_6[])\n{", "const AVPixFmtDescriptor *VAR_7 = av_pix_fmt_desc_get(VAR_0->srcFormat);", "const AVPixFmtDescriptor *VAR_8 = av_pix_fmt_desc_get(VAR_0->dstFormat);", "int VAR_9, VAR_10, VAR...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49, 51,...
951
static uint64_t pci_read(void *opaque, hwaddr addr, unsigned int size) { AcpiPciHpState *s = opaque; uint32_t val = 0; int bsel = s->hotplug_select; if (bsel < 0 || bsel > ACPI_PCIHP_MAX_HOTPLUG_BUS) { return 0; } switch (addr) { case PCI_UP_BASE: val = s->acpi_...
true
qemu
fa365d7cd11185237471823a5a33d36765454e16
static uint64_t pci_read(void *opaque, hwaddr addr, unsigned int size) { AcpiPciHpState *s = opaque; uint32_t val = 0; int bsel = s->hotplug_select; if (bsel < 0 || bsel > ACPI_PCIHP_MAX_HOTPLUG_BUS) { return 0; } switch (addr) { case PCI_UP_BASE: val = s->acpi_...
{ "code": [ " if (bsel < 0 || bsel > ACPI_PCIHP_MAX_HOTPLUG_BUS) {" ], "line_no": [ 13 ] }
static uint64_t FUNC_0(void *opaque, hwaddr addr, unsigned int size) { AcpiPciHpState *s = opaque; uint32_t val = 0; int VAR_0 = s->hotplug_select; if (VAR_0 < 0 || VAR_0 > ACPI_PCIHP_MAX_HOTPLUG_BUS) { return 0; } switch (addr) { case PCI_UP_BASE: val = s->acpi...
[ "static uint64_t FUNC_0(void *opaque, hwaddr addr, unsigned int size)\n{", "AcpiPciHpState *s = opaque;", "uint32_t val = 0;", "int VAR_0 = s->hotplug_select;", "if (VAR_0 < 0 || VAR_0 > ACPI_PCIHP_MAX_HOTPLUG_BUS) {", "return 0;", "}", "switch (addr) {", "case PCI_UP_BASE:\nval = s->acpi_pcihp_pci_...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45, 49 ], [...
952
static void free_field_queue(PullupField *head, PullupField **last) { PullupField *f = head; while (f) { av_free(f->diffs); av_free(f->combs); av_free(f->vars); if (f == *last) { av_freep(last); break; } f = f->next; av_...
true
FFmpeg
5b0ce5d4e3660fb0fc86779cbd027b47b1758c9f
static void free_field_queue(PullupField *head, PullupField **last) { PullupField *f = head; while (f) { av_free(f->diffs); av_free(f->combs); av_free(f->vars); if (f == *last) { av_freep(last); break; } f = f->next; av_...
{ "code": [ "static void free_field_queue(PullupField *head, PullupField **last)", " while (f) {", " if (f == *last) {", " av_freep(last);", " break;", " f = f->next;", " av_freep(&f->prev);", " };" ], "line_no": [ 1, 7, ...
static void FUNC_0(PullupField *VAR_0, PullupField **VAR_1) { PullupField *f = VAR_0; while (f) { av_free(f->diffs); av_free(f->combs); av_free(f->vars); if (f == *VAR_1) { av_freep(VAR_1); break; } f = f->next; av_freep...
[ "static void FUNC_0(PullupField *VAR_0, PullupField **VAR_1)\n{", "PullupField *f = VAR_0;", "while (f) {", "av_free(f->diffs);", "av_free(f->combs);", "av_free(f->vars);", "if (f == *VAR_1) {", "av_freep(VAR_1);", "break;", "}", "f = f->next;", "av_freep(&f->prev);", "};", "}" ]
[ 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
953
static void notify_guest_bh(void *opaque) { VirtIOBlockDataPlane *s = opaque; unsigned nvqs = s->conf->num_queues; unsigned long bitmap[BITS_TO_LONGS(nvqs)]; unsigned j; memcpy(bitmap, s->batch_notify_vqs, sizeof(bitmap)); memset(s->batch_notify_vqs, 0, sizeof(bitmap)); for (j = ...
true
qemu
83d768b5640946b7da55ce8335509df297e2c7cd
static void notify_guest_bh(void *opaque) { VirtIOBlockDataPlane *s = opaque; unsigned nvqs = s->conf->num_queues; unsigned long bitmap[BITS_TO_LONGS(nvqs)]; unsigned j; memcpy(bitmap, s->batch_notify_vqs, sizeof(bitmap)); memset(s->batch_notify_vqs, 0, sizeof(bitmap)); for (j = ...
{ "code": [ " if (virtio_should_notify(s->vdev, vq)) {", " event_notifier_set(virtio_queue_get_guest_notifier(vq));" ], "line_no": [ 35, 37 ] }
static void FUNC_0(void *VAR_0) { VirtIOBlockDataPlane *s = VAR_0; unsigned VAR_1 = s->conf->num_queues; unsigned long VAR_2[BITS_TO_LONGS(VAR_1)]; unsigned VAR_3; memcpy(VAR_2, s->batch_notify_vqs, sizeof(VAR_2)); memset(s->batch_notify_vqs, 0, sizeof(VAR_2)); for (VAR_3 = 0; VA...
[ "static void FUNC_0(void *VAR_0)\n{", "VirtIOBlockDataPlane *s = VAR_0;", "unsigned VAR_1 = s->conf->num_queues;", "unsigned long VAR_2[BITS_TO_LONGS(VAR_1)];", "unsigned VAR_3;", "memcpy(VAR_2, s->batch_notify_vqs, sizeof(VAR_2));", "memset(s->batch_notify_vqs, 0, sizeof(VAR_2));", "for (VAR_3 = 0; V...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ] ]
954
static char *doubles2str(double *dp, int count, const char *sep) { int i; char *ap, *ap0; int component_len = 15 + strlen(sep); if (!sep) sep = ", "; ap = av_malloc(component_len * count); if (!ap) return NULL; ap0 = ap; ap[0] = '\0'; for (i = 0; i < count; i++) ...
true
FFmpeg
4b20b21b8dabc74d676404dea94d43569a54a6b1
static char *doubles2str(double *dp, int count, const char *sep) { int i; char *ap, *ap0; int component_len = 15 + strlen(sep); if (!sep) sep = ", "; ap = av_malloc(component_len * count); if (!ap) return NULL; ap0 = ap; ap[0] = '\0'; for (i = 0; i < count; i++) ...
{ "code": [ " if(l >= component_len)" ], "line_no": [ 27 ] }
static char *FUNC_0(double *VAR_0, int VAR_1, const char *VAR_2) { int VAR_3; char *VAR_4, *VAR_5; int VAR_6 = 15 + strlen(VAR_2); if (!VAR_2) VAR_2 = ", "; VAR_4 = av_malloc(VAR_6 * VAR_1); if (!VAR_4) return NULL; VAR_5 = VAR_4; VAR_4[0] = '\0'; for (VAR_3 = 0;...
[ "static char *FUNC_0(double *VAR_0, int VAR_1, const char *VAR_2)\n{", "int VAR_3;", "char *VAR_4, *VAR_5;", "int VAR_6 = 15 + strlen(VAR_2);", "if (!VAR_2) VAR_2 = \", \";", "VAR_4 = av_malloc(VAR_6 * VAR_1);", "if (!VAR_4)\nreturn NULL;", "VAR_5 = VAR_4;", "VAR_4[0] = '\\0';", "for (VAR_3 = 0;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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 ] ]
955
static uint32_t arm_v7m_load_vector(ARMCPU *cpu) { CPUState *cs = CPU(cpu); CPUARMState *env = &cpu->env; MemTxResult result; hwaddr vec = env->v7m.vecbase + env->v7m.exception * 4; uint32_t addr; addr = address_space_ldl(cs->as, vec, MEMTXATTRS_UNSPECIFI...
true
qemu
39ae2474e337247e5930e8be783b689adc9f6215
static uint32_t arm_v7m_load_vector(ARMCPU *cpu) { CPUState *cs = CPU(cpu); CPUARMState *env = &cpu->env; MemTxResult result; hwaddr vec = env->v7m.vecbase + env->v7m.exception * 4; uint32_t addr; addr = address_space_ldl(cs->as, vec, MEMTXATTRS_UNSPECIFI...
{ "code": [ "static uint32_t arm_v7m_load_vector(ARMCPU *cpu)", " CPUState *cs = CPU(cpu);", " CPUARMState *env = &cpu->env;", " MemTxResult result;", " hwaddr vec = env->v7m.vecbase + env->v7m.exception * 4;", " uint32_t addr;", " addr = address_space_ldl(cs->as, vec,", ...
static uint32_t FUNC_0(ARMCPU *cpu) { CPUState *cs = CPU(cpu); CPUARMState *env = &cpu->env; MemTxResult result; hwaddr vec = env->v7m.vecbase + env->v7m.exception * 4; uint32_t addr; addr = address_space_ldl(cs->as, vec, MEMTXATTRS_UNSPECIFIED, &result);...
[ "static uint32_t FUNC_0(ARMCPU *cpu)\n{", "CPUState *cs = CPU(cpu);", "CPUARMState *env = &cpu->env;", "MemTxResult result;", "hwaddr vec = env->v7m.vecbase + env->v7m.exception * 4;", "uint32_t addr;", "addr = address_space_ldl(cs->as, vec,\nMEMTXATTRS_UNSPECIFIED, &result);", "if (result != MEMTX_OK...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ] ]
956
static void htab_save_first_pass(QEMUFile *f, sPAPREnvironment *spapr, int64_t max_ns) { int htabslots = HTAB_SIZE(spapr) / HASH_PTE_SIZE_64; int index = spapr->htab_save_index; int64_t starttime = qemu_clock_get_ns(QEMU_CLOCK_REALTIME); assert(spapr->htab_first_...
true
qemu
338c25b6929b5436a42aaa106c7e9136cf1ff4dc
static void htab_save_first_pass(QEMUFile *f, sPAPREnvironment *spapr, int64_t max_ns) { int htabslots = HTAB_SIZE(spapr) / HASH_PTE_SIZE_64; int index = spapr->htab_save_index; int64_t starttime = qemu_clock_get_ns(QEMU_CLOCK_REALTIME); assert(spapr->htab_first_...
{ "code": [ " while ((index < htabslots)", " while ((index < htabslots)", " while ((index < htabslots)" ], "line_no": [ 27, 27, 27 ] }
static void FUNC_0(QEMUFile *VAR_0, sPAPREnvironment *VAR_1, int64_t VAR_2) { int VAR_3 = HTAB_SIZE(VAR_1) / HASH_PTE_SIZE_64; int VAR_4 = VAR_1->htab_save_index; int64_t starttime = qemu_clock_get_ns(QEMU_CLOCK_REALTIME); assert(VAR_1->htab_first_pass); d...
[ "static void FUNC_0(QEMUFile *VAR_0, sPAPREnvironment *VAR_1,\nint64_t VAR_2)\n{", "int VAR_3 = HTAB_SIZE(VAR_1) / HASH_PTE_SIZE_64;", "int VAR_4 = VAR_1->htab_save_index;", "int64_t starttime = qemu_clock_get_ns(QEMU_CLOCK_REALTIME);", "assert(VAR_1->htab_first_pass);", "do {", "int VAR_5;", "while (...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [...
957
build_dsdt(GArray *table_data, BIOSLinker *linker, AcpiPmInfo *pm, AcpiMiscInfo *misc, Range *pci_hole, Range *pci_hole64, MachineState *machine) { CrsRangeEntry *entry; Aml *dsdt, *sb_scope, *scope, *dev, *method, *field, *pkg, *crs; CrsRangeSet crs_range_set; PCMachineStat...
true
qemu
ff5ce21e1b959206f257967d6de2efa6f4e3d188
build_dsdt(GArray *table_data, BIOSLinker *linker, AcpiPmInfo *pm, AcpiMiscInfo *misc, Range *pci_hole, Range *pci_hole64, MachineState *machine) { CrsRangeEntry *entry; Aml *dsdt, *sb_scope, *scope, *dev, *method, *field, *pkg, *crs; CrsRangeSet crs_range_set; PCMachineStat...
{ "code": [ " if (misc->tpm_version != TPM_VERSION_UNSPEC) {", " if (misc->tpm_version != TPM_VERSION_UNSPEC) {" ], "line_no": [ 357, 689 ] }
FUNC_0(GArray *VAR_0, BIOSLinker *VAR_1, AcpiPmInfo *VAR_2, AcpiMiscInfo *VAR_3, Range *VAR_4, Range *VAR_5, MachineState *VAR_6) { CrsRangeEntry *entry; Aml *dsdt, *sb_scope, *scope, *dev, *method, *field, *pkg, *crs; CrsRangeSet crs_range_set; PCMachineState *pcms = PC_MAC...
[ "FUNC_0(GArray *VAR_0, BIOSLinker *VAR_1,\nAcpiPmInfo *VAR_2, AcpiMiscInfo *VAR_3,\nRange *VAR_4, Range *VAR_5, MachineState *VAR_6)\n{", "CrsRangeEntry *entry;", "Aml *dsdt, *sb_scope, *scope, *dev, *method, *field, *pkg, *crs;", "CrsRangeSet crs_range_set;", "PCMachineState *pcms = PC_MACHINE(VAR_6);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
958
int64_t cpu_get_clock(void) { int64_t ti; if (!timers_state.cpu_ticks_enabled) { return timers_state.cpu_clock_offset; } else { ti = get_clock(); return ti + timers_state.cpu_clock_offset; } }
true
qemu
cb365646a942ed58aae053064b2048a415337ba2
int64_t cpu_get_clock(void) { int64_t ti; if (!timers_state.cpu_ticks_enabled) { return timers_state.cpu_clock_offset; } else { ti = get_clock(); return ti + timers_state.cpu_clock_offset; } }
{ "code": [ "int64_t cpu_get_clock(void)", " return timers_state.cpu_clock_offset;", " return ti + timers_state.cpu_clock_offset;" ], "line_no": [ 1, 9, 15 ] }
int64_t FUNC_0(void) { int64_t ti; if (!timers_state.cpu_ticks_enabled) { return timers_state.cpu_clock_offset; } else { ti = get_clock(); return ti + timers_state.cpu_clock_offset; } }
[ "int64_t FUNC_0(void)\n{", "int64_t ti;", "if (!timers_state.cpu_ticks_enabled) {", "return timers_state.cpu_clock_offset;", "} else {", "ti = get_clock();", "return ti + timers_state.cpu_clock_offset;", "}", "}" ]
[ 1, 0, 0, 1, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
959
static inline int mpeg2_fast_decode_block_intra(MpegEncContext *s, int16_t *block, int n) { int level, dc, diff, j, run; int component; RLTable *rl; uint8_t * scantable = s->intra_scantable.permutated; const uint16_t *quant_matrix; const int qscale = s->qscale; /* DC coefficient */...
true
FFmpeg
6d93307f8df81808f0dcdbc064b848054a6e83b3
static inline int mpeg2_fast_decode_block_intra(MpegEncContext *s, int16_t *block, int n) { int level, dc, diff, j, run; int component; RLTable *rl; uint8_t * scantable = s->intra_scantable.permutated; const uint16_t *quant_matrix; const int qscale = s->qscale; if (n < 4) { ...
{ "code": [ " int level, dc, diff, j, run;", " uint8_t * scantable = s->intra_scantable.permutated;", " scantable += run;", " j = *scantable;", " scantable += run;", " j = *scantable;", " s->block_last_index[n] = scantabl...
static inline int FUNC_0(MpegEncContext *VAR_0, int16_t *VAR_1, int VAR_2) { int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7; int VAR_8; RLTable *rl; uint8_t * scantable = VAR_0->intra_scantable.permutated; const uint16_t *VAR_9; const int VAR_10 = VAR_0->VAR_10; if (VAR_2 < 4) { ...
[ "static inline int FUNC_0(MpegEncContext *VAR_0, int16_t *VAR_1, int VAR_2)\n{", "int VAR_3, VAR_4, VAR_5, VAR_6, VAR_7;", "int VAR_8;", "RLTable *rl;", "uint8_t * scantable = VAR_0->intra_scantable.permutated;", "const uint16_t *VAR_9;", "const int VAR_10 = VAR_0->VAR_10;", "if (VAR_2 < 4) {", "VAR...
[ 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [...
960
abi_long do_syscall(void *cpu_env, int num, abi_long arg1, abi_long arg2, abi_long arg3, abi_long arg4, abi_long arg5, abi_long arg6, abi_long arg7, abi_long arg8) { CPUState *cpu = ENV_GET_CPU(cpu_env); abi_long ret; struct stat st; st...
true
qemu
3b899ea7d405dc7634ac629aa7b0e7639d506d9f
abi_long do_syscall(void *cpu_env, int num, abi_long arg1, abi_long arg2, abi_long arg3, abi_long arg4, abi_long arg5, abi_long arg6, abi_long arg7, abi_long arg8) { CPUState *cpu = ENV_GET_CPU(cpu_env); abi_long ret; struct stat st; st...
{ "code": [], "line_no": [] }
abi_long FUNC_0(void *cpu_env, int num, abi_long arg1, abi_long arg2, abi_long arg3, abi_long arg4, abi_long arg5, abi_long arg6, abi_long arg7, abi_long arg8) { CPUState *cpu = ENV_GET_CPU(cpu_env); abi_long ret; struct stat VAR_0; str...
[ "abi_long FUNC_0(void *cpu_env, int num, abi_long arg1,\nabi_long arg2, abi_long arg3, abi_long arg4,\nabi_long arg5, abi_long arg6, abi_long arg7,\nabi_long arg8)\n{", "CPUState *cpu = ENV_GET_CPU(cpu_env);", "abi_long ret;", "struct stat VAR_0;", "struct statfs VAR_1;", "void *VAR_2;", "#ifdef DEBUG\n...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 27, 29, 31 ], [ 35 ], [ 37, 51 ], [ 53 ], [ 57 ], [ 61 ], [ 63 ], [ 65 ], [ 67 ], [...
962
static int dxv_decompress_dxt1(AVCodecContext *avctx) { DXVContext *ctx = avctx->priv_data; GetByteContext *gbc = &ctx->gbc; uint32_t value, prev, op; int idx = 0, state = 0; int pos = 2; /* Copy the first two elements */ AV_WL32(ctx->tex_data, bytestream2_get_le32(gbc)); AV_W...
true
FFmpeg
7ebdffc353f3f0827864e8e3461fdc00cc243b14
static int dxv_decompress_dxt1(AVCodecContext *avctx) { DXVContext *ctx = avctx->priv_data; GetByteContext *gbc = &ctx->gbc; uint32_t value, prev, op; int idx = 0, state = 0; int pos = 2; AV_WL32(ctx->tex_data, bytestream2_get_le32(gbc)); AV_WL32(ctx->tex_data + 4, bytestream...
{ "code": [ " while (pos < ctx->tex_size / 4) {", " while (pos < ctx->tex_size / 4) {" ], "line_no": [ 27, 27 ] }
static int FUNC_0(AVCodecContext *VAR_0) { DXVContext *ctx = VAR_0->priv_data; GetByteContext *gbc = &ctx->gbc; uint32_t value, prev, op; int VAR_1 = 0, VAR_2 = 0; int VAR_3 = 2; AV_WL32(ctx->tex_data, bytestream2_get_le32(gbc)); AV_WL32(ctx->tex_data + 4, bytestream2_get_le3...
[ "static int FUNC_0(AVCodecContext *VAR_0)\n{", "DXVContext *ctx = VAR_0->priv_data;", "GetByteContext *gbc = &ctx->gbc;", "uint32_t value, prev, op;", "int VAR_1 = 0, VAR_2 = 0;", "int VAR_3 = 2;", "AV_WL32(ctx->tex_data, bytestream2_get_le32(gbc));", "AV_WL32(ctx->tex_data + 4, bytestream2_get_le32(g...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 19 ], [ 21 ], [ 27 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 57,...
964
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { JvContext *s = avctx->priv_data; const uint8_t *buf = avpkt->data; const uint8_t *buf_end = buf + avpkt->size; int video_size, video_type, i,...
false
FFmpeg
5d171b1f4718ae2916dfddc35299ccdef1e3001c
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { JvContext *s = avctx->priv_data; const uint8_t *buf = avpkt->data; const uint8_t *buf_end = buf + avpkt->size; int video_size, video_type, i,...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { JvContext *s = VAR_0->priv_data; const uint8_t *VAR_4 = VAR_3->VAR_1; const uint8_t *VAR_5 = VAR_4 + VAR_3->size; int VAR_6, VAR_7, VAR_8, VAR_9; ...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "JvContext *s = VAR_0->priv_data;", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "const uint8_t *VAR_5 = VAR_4 + VAR_3->size;", "int VAR_6, VAR_7, VAR_8, VAR_9;", "VAR_6 = AV_RL32(VAR_4);", "VAR_7 = VAR_4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ...
965
static av_cold int asv_encode_close(AVCodecContext *avctx) { av_frame_free(&avctx->coded_frame); return 0; }
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int asv_encode_close(AVCodecContext *avctx) { av_frame_free(&avctx->coded_frame); return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { av_frame_free(&avctx->coded_frame); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "av_frame_free(&avctx->coded_frame);", "return 0;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
966
static void megasas_reset_frames(MegasasState *s) { PCIDevice *pcid = PCI_DEVICE(s); int i; MegasasCmd *cmd; for (i = 0; i < s->fw_cmds; i++) { cmd = &s->frames[i]; if (cmd->pa) { pci_dma_unmap(pcid, cmd->frame, cmd->pa_size, 0, 0); cmd->frame = NULL; ...
true
qemu
6df5718bd3ec56225c44cf96440c723c1b611b87
static void megasas_reset_frames(MegasasState *s) { PCIDevice *pcid = PCI_DEVICE(s); int i; MegasasCmd *cmd; for (i = 0; i < s->fw_cmds; i++) { cmd = &s->frames[i]; if (cmd->pa) { pci_dma_unmap(pcid, cmd->frame, cmd->pa_size, 0, 0); cmd->frame = NULL; ...
{ "code": [ " PCIDevice *pcid = PCI_DEVICE(s);", " pci_dma_unmap(pcid, cmd->frame, cmd->pa_size, 0, 0);", " cmd->frame = NULL;", " cmd->pa = 0;" ], "line_no": [ 5, 19, 21, 23 ] }
static void FUNC_0(MegasasState *VAR_0) { PCIDevice *pcid = PCI_DEVICE(VAR_0); int VAR_1; MegasasCmd *cmd; for (VAR_1 = 0; VAR_1 < VAR_0->fw_cmds; VAR_1++) { cmd = &VAR_0->frames[VAR_1]; if (cmd->pa) { pci_dma_unmap(pcid, cmd->frame, cmd->pa_size, 0, 0); ...
[ "static void FUNC_0(MegasasState *VAR_0)\n{", "PCIDevice *pcid = PCI_DEVICE(VAR_0);", "int VAR_1;", "MegasasCmd *cmd;", "for (VAR_1 = 0; VAR_1 < VAR_0->fw_cmds; VAR_1++) {", "cmd = &VAR_0->frames[VAR_1];", "if (cmd->pa) {", "pci_dma_unmap(pcid, cmd->frame, cmd->pa_size, 0, 0);", "cmd->frame = NULL;"...
[ 0, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
967
void aio_set_fd_handler(AioContext *ctx, int fd, bool is_external, IOHandler *io_read, IOHandler *io_write, void *opaque) { AioHandler *node; bool is_new = false; node = find_ai...
true
qemu
0ed39f3df2d3cf7f0fc3468b057f952a3b251ad9
void aio_set_fd_handler(AioContext *ctx, int fd, bool is_external, IOHandler *io_read, IOHandler *io_write, void *opaque) { AioHandler *node; bool is_new = false; node = find_ai...
{ "code": [ " g_free(node);" ], "line_no": [ 55 ] }
void FUNC_0(AioContext *VAR_0, int VAR_1, bool VAR_2, IOHandler *VAR_3, IOHandler *VAR_4, void *VAR_5) { AioHandler *node; bool is_new = false; node = find_aio_handler(VAR_0, VA...
[ "void FUNC_0(AioContext *VAR_0,\nint VAR_1,\nbool VAR_2,\nIOHandler *VAR_3,\nIOHandler *VAR_4,\nvoid *VAR_5)\n{", "AioHandler *node;", "bool is_new = false;", "node = find_aio_handler(VAR_0, VAR_1);", "if (!VAR_3 && !VAR_4) {", "if (node) {", "g_source_remove_poll(&VAR_0->source, &node->pfd);", "if (V...
[ 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, 13 ], [ 15 ], [ 17 ], [ 21 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 53 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ], [...
968
unsigned long hbitmap_iter_skip_words(HBitmapIter *hbi) { size_t pos = hbi->pos; const HBitmap *hb = hbi->hb; unsigned i = HBITMAP_LEVELS - 1; unsigned long cur; do { cur = hbi->cur[--i]; pos >>= BITS_PER_LEVEL; } while (cur == 0); /* Check for end of iteration....
true
qemu
fbeadf50f2f965741def823036b086bbc2999b1f
unsigned long hbitmap_iter_skip_words(HBitmapIter *hbi) { size_t pos = hbi->pos; const HBitmap *hb = hbi->hb; unsigned i = HBITMAP_LEVELS - 1; unsigned long cur; do { cur = hbi->cur[--i]; pos >>= BITS_PER_LEVEL; } while (cur == 0); if (i == 0 && ...
{ "code": [ " return 0;", " pos = (pos << BITS_PER_LEVEL) + ffsl(cur) - 1;" ], "line_no": [ 39, 53 ] }
unsigned long FUNC_0(HBitmapIter *VAR_0) { size_t pos = VAR_0->pos; const HBitmap *VAR_1 = VAR_0->VAR_1; unsigned VAR_2 = HBITMAP_LEVELS - 1; unsigned long VAR_3; do { VAR_3 = VAR_0->VAR_3[--VAR_2]; pos >>= BITS_PER_LEVEL; } while (VAR_3 == 0); i...
[ "unsigned long FUNC_0(HBitmapIter *VAR_0)\n{", "size_t pos = VAR_0->pos;", "const HBitmap *VAR_1 = VAR_0->VAR_1;", "unsigned VAR_2 = HBITMAP_LEVELS - 1;", "unsigned long VAR_3;", "do {", "VAR_3 = VAR_0->VAR_3[--VAR_2];", "pos >>= BITS_PER_LEVEL;", "} while (VAR_3 == 0);", "if (VAR_2 == 0 && VAR_3 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 53 ], [ 55 ], [ 61 ], [ 63 ], [ 67 ], [ 69 ], [ 73 ...
969
static int intel_hda_exit(PCIDevice *pci) { IntelHDAState *d = DO_UPCAST(IntelHDAState, pci, pci); if (d->msi) { msi_uninit(&d->pci); } cpu_unregister_io_memory(d->mmio_addr); return 0; }
true
qemu
45fe15c25a5c9feea6e0f78434f5e9f632de9d94
static int intel_hda_exit(PCIDevice *pci) { IntelHDAState *d = DO_UPCAST(IntelHDAState, pci, pci); if (d->msi) { msi_uninit(&d->pci); } cpu_unregister_io_memory(d->mmio_addr); return 0; }
{ "code": [ " if (d->msi) {", " msi_uninit(&d->pci);" ], "line_no": [ 9, 11 ] }
static int FUNC_0(PCIDevice *VAR_0) { IntelHDAState *d = DO_UPCAST(IntelHDAState, VAR_0, VAR_0); if (d->msi) { msi_uninit(&d->VAR_0); } cpu_unregister_io_memory(d->mmio_addr); return 0; }
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "IntelHDAState *d = DO_UPCAST(IntelHDAState, VAR_0, VAR_0);", "if (d->msi) {", "msi_uninit(&d->VAR_0);", "}", "cpu_unregister_io_memory(d->mmio_addr);", "return 0;", "}" ]
[ 0, 0, 1, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ] ]
970
static int compand_nodelay(AVFilterContext *ctx, AVFrame *frame) { CompandContext *s = ctx->priv; AVFilterLink *inlink = ctx->inputs[0]; const int channels = inlink->channels; const int nb_samples = frame->nb_samples; AVFrame *out_frame; int chan, i; if (av_frame_is_writable(frame)...
true
FFmpeg
709746b6affb5c87aee0c3b8ddb0a078453c6162
static int compand_nodelay(AVFilterContext *ctx, AVFrame *frame) { CompandContext *s = ctx->priv; AVFilterLink *inlink = ctx->inputs[0]; const int channels = inlink->channels; const int nb_samples = frame->nb_samples; AVFrame *out_frame; int chan, i; if (av_frame_is_writable(frame)...
{ "code": [ " if (!out_frame)" ], "line_no": [ 27 ] }
static int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1) { CompandContext *s = VAR_0->priv; AVFilterLink *inlink = VAR_0->inputs[0]; const int VAR_2 = inlink->VAR_2; const int VAR_3 = VAR_1->VAR_3; AVFrame *out_frame; int VAR_4, VAR_5; if (av_frame_is_writable(VAR_1)) { o...
[ "static int FUNC_0(AVFilterContext *VAR_0, AVFrame *VAR_1)\n{", "CompandContext *s = VAR_0->priv;", "AVFilterLink *inlink = VAR_0->inputs[0];", "const int VAR_2 = inlink->VAR_2;", "const int VAR_3 = VAR_1->VAR_3;", "AVFrame *out_frame;", "int VAR_4, VAR_5;", "if (av_frame_is_writable(VAR_1)) {", "ou...
[ 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, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [...
972
static void pfpu_start(MilkymistPFPUState *s) { int x, y; int i; for (y = 0; y <= s->regs[R_VMESHLAST]; y++) { for (x = 0; x <= s->regs[R_HMESHLAST]; x++) { D_EXEC(qemu_log("\nprocessing x=%d y=%d\n", x, y)); /* set current position */ s->gp_regs[GPR_X...
true
qemu
c6dc3dd72b747a057770087998a1f9ef0b3f1882
static void pfpu_start(MilkymistPFPUState *s) { int x, y; int i; for (y = 0; y <= s->regs[R_VMESHLAST]; y++) { for (x = 0; x <= s->regs[R_HMESHLAST]; x++) { D_EXEC(qemu_log("\nprocessing x=%d y=%d\n", x, y)); s->gp_regs[GPR_X] = x; s->gp_...
{ "code": [ " if (i++ >= MICROCODE_WORDS) {" ], "line_no": [ 35 ] }
static void FUNC_0(MilkymistPFPUState *VAR_0) { int VAR_1, VAR_2; int VAR_3; for (VAR_2 = 0; VAR_2 <= VAR_0->regs[R_VMESHLAST]; VAR_2++) { for (VAR_1 = 0; VAR_1 <= VAR_0->regs[R_HMESHLAST]; VAR_1++) { D_EXEC(qemu_log("\nprocessing VAR_1=%d VAR_2=%d\n", VAR_1, VAR_2)); ...
[ "static void FUNC_0(MilkymistPFPUState *VAR_0)\n{", "int VAR_1, VAR_2;", "int VAR_3;", "for (VAR_2 = 0; VAR_2 <= VAR_0->regs[R_VMESHLAST]; VAR_2++) {", "for (VAR_1 = 0; VAR_1 <= VAR_0->regs[R_HMESHLAST]; VAR_1++) {", "D_EXEC(qemu_log(\"\\nprocessing VAR_1=%d VAR_2=%d\\n\", VAR_1, VAR_2));", "VAR_0->gp_r...
[ 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 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 29 ], [ 31 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ], [ 53 ], [ 55 ], [ 59 ], ...
973
av_cold void ff_vp9dsp_init(VP9DSPContext *dsp, int bpp) { if (bpp == 8) { ff_vp9dsp_init_8(dsp); } else if (bpp == 10) { ff_vp9dsp_init_10(dsp); } else { av_assert0(bpp == 12); ff_vp9dsp_init_12(dsp); } if (ARCH_X86) ff_vp9dsp_init_x86(dsp, bpp); if ...
true
FFmpeg
fd8b90f5f63de12c1ee1ec1cbe99791c5629c582
av_cold void ff_vp9dsp_init(VP9DSPContext *dsp, int bpp) { if (bpp == 8) { ff_vp9dsp_init_8(dsp); } else if (bpp == 10) { ff_vp9dsp_init_10(dsp); } else { av_assert0(bpp == 12); ff_vp9dsp_init_12(dsp); } if (ARCH_X86) ff_vp9dsp_init_x86(dsp, bpp); if ...
{ "code": [ "av_cold void ff_vp9dsp_init(VP9DSPContext *dsp, int bpp)", " if (ARCH_X86) ff_vp9dsp_init_x86(dsp, bpp);" ], "line_no": [ 1, 23 ] }
av_cold void FUNC_0(VP9DSPContext *dsp, int bpp) { if (bpp == 8) { ff_vp9dsp_init_8(dsp); } else if (bpp == 10) { ff_vp9dsp_init_10(dsp); } else { av_assert0(bpp == 12); ff_vp9dsp_init_12(dsp); } if (ARCH_X86) ff_vp9dsp_init_x86(dsp, bpp); if (ARCH_MI...
[ "av_cold void FUNC_0(VP9DSPContext *dsp, int bpp)\n{", "if (bpp == 8) {", "ff_vp9dsp_init_8(dsp);", "} else if (bpp == 10) {", "ff_vp9dsp_init_10(dsp);", "} else {", "av_assert0(bpp == 12);", "ff_vp9dsp_init_12(dsp);", "}", "if (ARCH_X86) ff_vp9dsp_init_x86(dsp, bpp);", "if (ARCH_MIPS) ff_vp9dsp...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ] ]
974
static int mov_read_mdhd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; print_atom("mdhd", atom); get_byte(pb); /* version */ get_byte(pb); get_byte(pb); get_byte(pb); /* flags */ get_be32(pb); /* creation time */ get_...
true
FFmpeg
fd6e513ee1dc13174256de8adaeeb2c2691eee95
static int mov_read_mdhd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; print_atom("mdhd", atom); get_byte(pb); get_byte(pb); get_byte(pb); get_byte(pb); get_be32(pb); get_be32(pb); c->streams[c->total_strea...
{ "code": [ " AVStream *st = c->fc->streams[c->fc->nb_streams-1];" ], "line_no": [ 5 ] }
static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2) { AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; print_atom("mdhd", VAR_2); get_byte(VAR_1); get_byte(VAR_1); get_byte(VAR_1); get_byte(VAR_1); get_be32(VAR_1); get_be32(VAR_1); ...
[ "static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2)\n{", "AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "print_atom(\"mdhd\", VAR_2);", "get_byte(VAR_1);", "get_byte(VAR_1); get_byte(VAR_1);", "get_byte(VAR_1);", "get_be32(VAR_1);", "get_be32(VAR_1);", "VAR_...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 33, 35 ], [ 37, 39 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ] ]
975
static int svq1_encode_plane(SVQ1Context *s, int plane, unsigned char *src_plane, unsigned char *ref_plane, unsigned char *decoded_plane, int width, int height, int src_stride, int stride) { int x, y; int i; int block_width, block_height; int level; int threshold[6]; const int lambda...
true
FFmpeg
a7494872d5a673f064b0570f4359c8d1a3ea1051
static int svq1_encode_plane(SVQ1Context *s, int plane, unsigned char *src_plane, unsigned char *ref_plane, unsigned char *decoded_plane, int width, int height, int src_stride, int stride) { int x, y; int i; int block_width, block_height; int level; int threshold[6]; const int lambda...
{ "code": [ " uint8_t src[stride*16];", " uint8_t src[stride*16];" ], "line_no": [ 133, 191 ] }
static int FUNC_0(SVQ1Context *VAR_0, int VAR_1, unsigned char *VAR_2, unsigned char *VAR_3, unsigned char *VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8) { int VAR_9, VAR_10; int VAR_11; int VAR_12, VAR_13; int VAR_14; int VAR_15[6]; const int VAR_16= (VAR_0->picture.quality*VAR...
[ "static int FUNC_0(SVQ1Context *VAR_0, int VAR_1, unsigned char *VAR_2, unsigned char *VAR_3, unsigned char *VAR_4,\nint VAR_5, int VAR_6, int VAR_7, int VAR_8)\n{", "int VAR_9, VAR_10;", "int VAR_11;", "int VAR_12, VAR_13;", "int VAR_14;", "int VAR_15[6];", "const int VAR_16= (VAR_0->picture.quality*VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47, 49, 51, 53 ...
976
static int commit_direntries(BDRVVVFATState* s, int dir_index, int parent_mapping_index) { direntry_t* direntry = array_get(&(s->directory), dir_index); uint32_t first_cluster = dir_index == 0 ? 0 : begin_of_direntry(direntry); mapping_t* mapping = find_mapping_for_cluster(s, first_cluster); in...
true
qemu
ebb72c9f066e5f85259e1541a6d3fb5bfd6e73ff
static int commit_direntries(BDRVVVFATState* s, int dir_index, int parent_mapping_index) { direntry_t* direntry = array_get(&(s->directory), dir_index); uint32_t first_cluster = dir_index == 0 ? 0 : begin_of_direntry(direntry); mapping_t* mapping = find_mapping_for_cluster(s, first_cluster); in...
{ "code": [ "\tassert(!strncmp(s->directory.pointer, \"QEMU\", 4));" ], "line_no": [ 109 ] }
static int FUNC_0(BDRVVVFATState* VAR_0, int VAR_1, int VAR_2) { direntry_t* direntry = array_get(&(VAR_0->directory), VAR_1); uint32_t first_cluster = VAR_1 == 0 ? 0 : begin_of_direntry(direntry); mapping_t* mapping = find_mapping_for_cluster(VAR_0, first_cluster); int VAR_3 = 0x10 * VAR_0->se...
[ "static int FUNC_0(BDRVVVFATState* VAR_0,\nint VAR_1, int VAR_2)\n{", "direntry_t* direntry = array_get(&(VAR_0->directory), VAR_1);", "uint32_t first_cluster = VAR_1 == 0 ? 0 : begin_of_direntry(direntry);", "mapping_t* mapping = find_mapping_for_cluster(VAR_0, first_cluster);", "int VAR_3 = 0x10 * 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 51 ], [...
977
void vfio_put_group(VFIOGroup *group) { if (!QLIST_EMPTY(&group->device_list)) { return; } vfio_kvm_device_del_group(group); vfio_disconnect_container(group); QLIST_REMOVE(group, next); trace_vfio_put_group(group->fd); close(group->fd); g_free(group); if (QLIST...
true
qemu
77a10d04d033484a913a5ee76eed31a9acc57bae
void vfio_put_group(VFIOGroup *group) { if (!QLIST_EMPTY(&group->device_list)) { return; } vfio_kvm_device_del_group(group); vfio_disconnect_container(group); QLIST_REMOVE(group, next); trace_vfio_put_group(group->fd); close(group->fd); g_free(group); if (QLIST...
{ "code": [ " if (!QLIST_EMPTY(&group->device_list)) {" ], "line_no": [ 5 ] }
void FUNC_0(VFIOGroup *VAR_0) { if (!QLIST_EMPTY(&VAR_0->device_list)) { return; } vfio_kvm_device_del_group(VAR_0); vfio_disconnect_container(VAR_0); QLIST_REMOVE(VAR_0, next); trace_vfio_put_group(VAR_0->fd); close(VAR_0->fd); g_free(VAR_0); if (QLIST_EMPTY(&...
[ "void FUNC_0(VFIOGroup *VAR_0)\n{", "if (!QLIST_EMPTY(&VAR_0->device_list)) {", "return;", "}", "vfio_kvm_device_del_group(VAR_0);", "vfio_disconnect_container(VAR_0);", "QLIST_REMOVE(VAR_0, next);", "trace_vfio_put_group(VAR_0->fd);", "close(VAR_0->fd);", "g_free(VAR_0);", "if (QLIST_EMPTY(&vfi...
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
978
void do_POWER_div (void) { uint64_t tmp; if (((int32_t)T0 == INT32_MIN && (int32_t)T1 == -1) || (int32_t)T1 == 0) { T0 = (long)((-1) * (T0 >> 31)); env->spr[SPR_MQ] = 0; } else { tmp = ((uint64_t)T0 << 32) | env->spr[SPR_MQ]; env->spr[SPR_MQ] = tmp % T1; T0...
true
qemu
6f2d8978728c48ca46f5c01835438508aace5c64
void do_POWER_div (void) { uint64_t tmp; if (((int32_t)T0 == INT32_MIN && (int32_t)T1 == -1) || (int32_t)T1 == 0) { T0 = (long)((-1) * (T0 >> 31)); env->spr[SPR_MQ] = 0; } else { tmp = ((uint64_t)T0 << 32) | env->spr[SPR_MQ]; env->spr[SPR_MQ] = tmp % T1; T0...
{ "code": [ " if (((int32_t)T0 == INT32_MIN && (int32_t)T1 == -1) || (int32_t)T1 == 0) {", " T0 = (long)((-1) * (T0 >> 31));", " if (((int32_t)T0 == INT32_MIN && (int32_t)T1 == -1) || (int32_t)T1 == 0) {", " T0 = (long)((-1) * (T0 >> 31));", " if (((int32_t)T0 == INT32_MIN &...
void FUNC_0 (void) { uint64_t tmp; if (((int32_t)T0 == INT32_MIN && (int32_t)T1 == -1) || (int32_t)T1 == 0) { T0 = (long)((-1) * (T0 >> 31)); env->spr[SPR_MQ] = 0; } else { tmp = ((uint64_t)T0 << 32) | env->spr[SPR_MQ]; env->spr[SPR_MQ] = tmp % T1; T0 = tmp...
[ "void FUNC_0 (void)\n{", "uint64_t tmp;", "if (((int32_t)T0 == INT32_MIN && (int32_t)T1 == -1) || (int32_t)T1 == 0) {", "T0 = (long)((-1) * (T0 >> 31));", "env->spr[SPR_MQ] = 0;", "} else {", "tmp = ((uint64_t)T0 << 32) | env->spr[SPR_MQ];", "env->spr[SPR_MQ] = tmp % T1;", "T0 = tmp / (int32_t)T1;",...
[ 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
980
void qemu_chr_info(Monitor *mon) { CharDriverState *chr; TAILQ_FOREACH(chr, &chardevs, next) { monitor_printf(mon, "%s: filename=%s\n", chr->label, chr->filename); } }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
void qemu_chr_info(Monitor *mon) { CharDriverState *chr; TAILQ_FOREACH(chr, &chardevs, next) { monitor_printf(mon, "%s: filename=%s\n", chr->label, chr->filename); } }
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0) { CharDriverState *chr; TAILQ_FOREACH(chr, &chardevs, next) { monitor_printf(VAR_0, "%s: filename=%s\n", chr->label, chr->filename); } }
[ "void FUNC_0(Monitor *VAR_0)\n{", "CharDriverState *chr;", "TAILQ_FOREACH(chr, &chardevs, next) {", "monitor_printf(VAR_0, \"%s: filename=%s\\n\", chr->label, chr->filename);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
981
void lm32_debug_excp_handler(CPUState *cs) { LM32CPU *cpu = LM32_CPU(cs); CPULM32State *env = &cpu->env; CPUBreakpoint *bp; if (cs->watchpoint_hit) { if (cs->watchpoint_hit->flags & BP_CPU) { cs->watchpoint_hit = NULL; if (check_watchpoints(env)) { ...
false
qemu
6886b98036a8f8f5bce8b10756ce080084cef11b
void lm32_debug_excp_handler(CPUState *cs) { LM32CPU *cpu = LM32_CPU(cs); CPULM32State *env = &cpu->env; CPUBreakpoint *bp; if (cs->watchpoint_hit) { if (cs->watchpoint_hit->flags & BP_CPU) { cs->watchpoint_hit = NULL; if (check_watchpoints(env)) { ...
{ "code": [], "line_no": [] }
void FUNC_0(CPUState *VAR_0) { LM32CPU *cpu = LM32_CPU(VAR_0); CPULM32State *env = &cpu->env; CPUBreakpoint *bp; if (VAR_0->watchpoint_hit) { if (VAR_0->watchpoint_hit->flags & BP_CPU) { VAR_0->watchpoint_hit = NULL; if (check_watchpoints(env)) { ...
[ "void FUNC_0(CPUState *VAR_0)\n{", "LM32CPU *cpu = LM32_CPU(VAR_0);", "CPULM32State *env = &cpu->env;", "CPUBreakpoint *bp;", "if (VAR_0->watchpoint_hit) {", "if (VAR_0->watchpoint_hit->flags & BP_CPU) {", "VAR_0->watchpoint_hit = NULL;", "if (check_watchpoints(env)) {", "raise_exception(env, EXCP_W...
[ 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 ...
983
int qemu_get_byte(QEMUFile *f) { if (f->is_write) abort(); if (f->buf_index >= f->buf_size) { qemu_fill_buffer(f); if (f->buf_index >= f->buf_size) return 0; } return f->buf[f->buf_index++]; }
false
qemu
b9ce1454e14ec918acb90d899ce7724f69682f45
int qemu_get_byte(QEMUFile *f) { if (f->is_write) abort(); if (f->buf_index >= f->buf_size) { qemu_fill_buffer(f); if (f->buf_index >= f->buf_size) return 0; } return f->buf[f->buf_index++]; }
{ "code": [], "line_no": [] }
int FUNC_0(QEMUFile *VAR_0) { if (VAR_0->is_write) abort(); if (VAR_0->buf_index >= VAR_0->buf_size) { qemu_fill_buffer(VAR_0); if (VAR_0->buf_index >= VAR_0->buf_size) return 0; } return VAR_0->buf[VAR_0->buf_index++]; }
[ "int FUNC_0(QEMUFile *VAR_0)\n{", "if (VAR_0->is_write)\nabort();", "if (VAR_0->buf_index >= VAR_0->buf_size) {", "qemu_fill_buffer(VAR_0);", "if (VAR_0->buf_index >= VAR_0->buf_size)\nreturn 0;", "}", "return VAR_0->buf[VAR_0->buf_index++];", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ] ]