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
5,447
static void ff_h264_idct_add8_sse2(uint8_t **dest, const int *block_offset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]){ int i; for(i=16; i<16+8; i+=2){ if(nnzc[ scan8[i+0] ]|nnzc[ scan8[i+1] ]) ff_x264_add8x4_idct_sse2 (dest[(i&4)>>2] + block_offset[i], block + i*16, stride); ...
false
FFmpeg
1d16a1cf99488f16492b1bb48e023f4da8377e07
static void ff_h264_idct_add8_sse2(uint8_t **dest, const int *block_offset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]){ int i; for(i=16; i<16+8; i+=2){ if(nnzc[ scan8[i+0] ]|nnzc[ scan8[i+1] ]) ff_x264_add8x4_idct_sse2 (dest[(i&4)>>2] + block_offset[i], block + i*16, stride); ...
{ "code": [], "line_no": [] }
static void FUNC_0(uint8_t **VAR_0, const int *VAR_1, DCTELEM *VAR_2, int VAR_3, const uint8_t VAR_4[6*8]){ int VAR_5; for(VAR_5=16; VAR_5<16+8; VAR_5+=2){ if(VAR_4[ scan8[VAR_5+0] ]|VAR_4[ scan8[VAR_5+1] ]) ff_x264_add8x4_idct_sse2 (VAR_0[(VAR_5&4)>>2] + VAR_1[VAR_5], VAR_2 + VAR_5*16, ...
[ "static void FUNC_0(uint8_t **VAR_0, const int *VAR_1, DCTELEM *VAR_2, int VAR_3, const uint8_t VAR_4[6*8]){", "int VAR_5;", "for(VAR_5=16; VAR_5<16+8; VAR_5+=2){", "if(VAR_4[ scan8[VAR_5+0] ]|VAR_4[ scan8[VAR_5+1] ])\nff_x264_add8x4_idct_sse2 (VAR_0[(VAR_5&4)>>2] + VAR_1[VAR_5], VAR_2 + VAR_5*16, VAR_3);", ...
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 7, 9 ], [ 11, 13 ], [ 15 ], [ 17 ] ]
5,448
static int mov_read_dref(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; int entries, i, j; get_be32(pb); // version + flags entries = get_be32(pb); if (entries >= UINT_MAX / sizeof(*sc->drefs)) ...
false
FFmpeg
6a63ff19b6a7fe3bc32c7fb4a62fca8f65786432
static int mov_read_dref(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; int entries, i, j; get_be32(pb); entries = get_be32(pb); if (entries >= UINT_MAX / sizeof(*sc->drefs)) return -1...
{ "code": [], "line_no": [] }
static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2) { AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; int VAR_3, VAR_4, VAR_5; get_be32(VAR_1); VAR_3 = get_be32(VAR_1); if (VAR_3 >= UINT_MAX / sizeof(*sc->drefs)) ...
[ "static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOVAtom VAR_2)\n{", "AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];", "MOVStreamContext *sc = st->priv_data;", "int VAR_3, VAR_4, VAR_5;", "get_be32(VAR_1);", "VAR_3 = get_be32(VAR_1);", "if (VAR_3 >= UINT_MAX / sizeof(*sc->drefs))...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 53 ...
5,449
void yuv2rgb_altivec_init_tables (SwsContext *c, const int inv_table[4]) { vector signed short CY, CRV, CBU, CGU, CGV, OY, Y0; int64_t crv __attribute__ ((aligned(16))) = inv_table[0]; int64_t cbu __attribute__ ((aligned(16))) = inv_table[1]; int64_t cgu __attribute__ ((aligned(16))) = inv_table[2]; int...
false
FFmpeg
582552fb56ba6559cb1d094a7e7ae5dde3073c5c
void yuv2rgb_altivec_init_tables (SwsContext *c, const int inv_table[4]) { vector signed short CY, CRV, CBU, CGU, CGV, OY, Y0; int64_t crv __attribute__ ((aligned(16))) = inv_table[0]; int64_t cbu __attribute__ ((aligned(16))) = inv_table[1]; int64_t cgu __attribute__ ((aligned(16))) = inv_table[2]; int...
{ "code": [], "line_no": [] }
void FUNC_0 (SwsContext *VAR_0, const int VAR_1[4]) { vector signed short CY, CRV, CBU, CGU, CGV, OY, Y0; int64_t crv __attribute__ ((aligned(16))) = VAR_1[0]; int64_t cbu __attribute__ ((aligned(16))) = VAR_1[1]; int64_t cgu __attribute__ ((aligned(16))) = VAR_1[2]; int64_t cgv __attribute__ ((aligned(...
[ "void FUNC_0 (SwsContext *VAR_0, const int VAR_1[4])\n{", "vector signed short CY, CRV, CBU, CGU, CGV, OY, Y0;", "int64_t crv __attribute__ ((aligned(16))) = VAR_1[0];", "int64_t cbu __attribute__ ((aligned(16))) = VAR_1[1];", "int64_t cgu __attribute__ ((aligned(16))) = VAR_1[2];", "int64_t cgv __attribu...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [...
5,450
void mipsnet_init (int base, qemu_irq irq, NICInfo *nd) { MIPSnetState *s; qemu_check_nic_model(nd, "mipsnet"); s = qemu_mallocz(sizeof(MIPSnetState)); register_ioport_write(base, 36, 1, mipsnet_ioport_write, s); register_ioport_read(base, 36, 1, mipsnet_ioport_read, s); register_io...
true
qemu
ae50b2747f77944faa79eb914272b54eb30b63b3
void mipsnet_init (int base, qemu_irq irq, NICInfo *nd) { MIPSnetState *s; qemu_check_nic_model(nd, "mipsnet"); s = qemu_mallocz(sizeof(MIPSnetState)); register_ioport_write(base, 36, 1, mipsnet_ioport_write, s); register_ioport_read(base, 36, 1, mipsnet_ioport_read, s); register_io...
{ "code": [ " s->vc = qemu_new_vlan_client(nd->vlan, nd->model, nd->name,", " mipsnet_can_receive, mipsnet_receive, NULL,", " mipsnet_cleanup, s);" ], "line_no": [ 37, 39, 41 ] }
void FUNC_0 (int VAR_0, qemu_irq VAR_1, NICInfo *VAR_2) { MIPSnetState *s; qemu_check_nic_model(VAR_2, "mipsnet"); s = qemu_mallocz(sizeof(MIPSnetState)); register_ioport_write(VAR_0, 36, 1, mipsnet_ioport_write, s); register_ioport_read(VAR_0, 36, 1, mipsnet_ioport_read, s); regist...
[ "void FUNC_0 (int VAR_0, qemu_irq VAR_1, NICInfo *VAR_2)\n{", "MIPSnetState *s;", "qemu_check_nic_model(VAR_2, \"mipsnet\");", "s = qemu_mallocz(sizeof(MIPSnetState));", "register_ioport_write(VAR_0, 36, 1, mipsnet_ioport_write, s);", "register_ioport_read(VAR_0, 36, 1, mipsnet_ioport_read, s);", "regis...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 55...
5,451
static inline void hcscale_fast_c(SwsContext *c, int16_t *dst1, int16_t *dst2, int dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc) { int i; unsigned int xpos=0; for (i=0;i<dstWidth;i++) { register unsi...
true
FFmpeg
877f76ad33bb9b0b0d09565dd9ec1cf8e91096f1
static inline void hcscale_fast_c(SwsContext *c, int16_t *dst1, int16_t *dst2, int dstWidth, const uint8_t *src1, const uint8_t *src2, int srcW, int xInc) { int i; unsigned int xpos=0; for (i=0;i<dstWidth;i++) { register unsi...
{ "code": [], "line_no": [] }
static inline void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1, int16_t *VAR_2, int VAR_3, const uint8_t *VAR_4, const uint8_t *VAR_5, int VAR_6, int VAR_7) { int VAR_8; unsigned int VAR_9=0; for (VAR_8=0;VAR_8<VAR_3;VAR_8++) { ...
[ "static inline void FUNC_0(SwsContext *VAR_0, int16_t *VAR_1, int16_t *VAR_2,\nint VAR_3, const uint8_t *VAR_4,\nconst uint8_t *VAR_5, int VAR_6, int VAR_7)\n{", "int VAR_8;", "unsigned int VAR_9=0;", "for (VAR_8=0;VAR_8<VAR_3;VAR_8++) {", "register unsigned int VAR_10=VAR_9>>16;", "register unsigned int ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
5,453
static void apply_window_and_mdct(AACEncContext *s, SingleChannelElement *sce, float *audio) { int i; float *output = sce->ret_buf; apply_window[sce->ics.window_sequence[0]](s->fdsp, sce, audio); if (sce->ics.window_sequence[0] != EIGHT_SHORT_SEQUENCE) ...
true
FFmpeg
32be264cea542b4dc721b10092bf1dfe511a28ee
static void apply_window_and_mdct(AACEncContext *s, SingleChannelElement *sce, float *audio) { int i; float *output = sce->ret_buf; apply_window[sce->ics.window_sequence[0]](s->fdsp, sce, audio); if (sce->ics.window_sequence[0] != EIGHT_SHORT_SEQUENCE) ...
{ "code": [ " s->mdct128.mdct_calc(&s->mdct128, sce->coeffs + i, output + i*2);" ], "line_no": [ 25 ] }
static void FUNC_0(AACEncContext *VAR_0, SingleChannelElement *VAR_1, float *VAR_2) { int VAR_3; float *VAR_4 = VAR_1->ret_buf; apply_window[VAR_1->ics.window_sequence[0]](VAR_0->fdsp, VAR_1, VAR_2); if (VAR_1->ics.window_sequence[0] != EIGHT_SHORT_SEQUENCE) ...
[ "static void FUNC_0(AACEncContext *VAR_0, SingleChannelElement *VAR_1,\nfloat *VAR_2)\n{", "int VAR_3;", "float *VAR_4 = VAR_1->ret_buf;", "apply_window[VAR_1->ics.window_sequence[0]](VAR_0->fdsp, VAR_1, VAR_2);", "if (VAR_1->ics.window_sequence[0] != EIGHT_SHORT_SEQUENCE)\nVAR_0->mdct1024.mdct_calc(&VAR_0-...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17, 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
5,454
TPMVersion tpm_tis_get_tpm_version(Object *obj) { TPMState *s = TPM(obj); return tpm_backend_get_tpm_version(s->be_driver);
true
qemu
ad4aca69bbd40663ca93a3eb1d8042c023b9b407
TPMVersion tpm_tis_get_tpm_version(Object *obj) { TPMState *s = TPM(obj); return tpm_backend_get_tpm_version(s->be_driver);
{ "code": [], "line_no": [] }
TPMVersion FUNC_0(Object *obj) { TPMState *s = TPM(obj); return tpm_backend_get_tpm_version(s->be_driver);
[ "TPMVersion FUNC_0(Object *obj)\n{", "TPMState *s = TPM(obj);", "return tpm_backend_get_tpm_version(s->be_driver);" ]
[ 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ] ]
5,455
vmxnet3_indicate_packet(VMXNET3State *s) { struct Vmxnet3_RxDesc rxd; bool is_head = true; uint32_t rxd_idx; uint32_t rx_ridx; struct Vmxnet3_RxCompDesc rxcd; uint32_t new_rxcd_gen = VMXNET3_INIT_GEN; hwaddr new_rxcd_pa = 0; hwaddr ready_rxcd_pa = 0; struct iovec *data = ...
true
qemu
c707582b78d01d81fe4e470fd812334be145882d
vmxnet3_indicate_packet(VMXNET3State *s) { struct Vmxnet3_RxDesc rxd; bool is_head = true; uint32_t rxd_idx; uint32_t rx_ridx; struct Vmxnet3_RxCompDesc rxcd; uint32_t new_rxcd_gen = VMXNET3_INIT_GEN; hwaddr new_rxcd_pa = 0; hwaddr ready_rxcd_pa = 0; struct iovec *data = ...
{ "code": [ " uint32_t rx_ridx;" ], "line_no": [ 11 ] }
FUNC_0(VMXNET3State *VAR_0) { struct Vmxnet3_RxDesc VAR_1; bool is_head = true; uint32_t rxd_idx; uint32_t rx_ridx; struct Vmxnet3_RxCompDesc VAR_2; uint32_t new_rxcd_gen = VMXNET3_INIT_GEN; hwaddr new_rxcd_pa = 0; hwaddr ready_rxcd_pa = 0; struct iovec *VAR_3 = vmxnet_rx...
[ "FUNC_0(VMXNET3State *VAR_0)\n{", "struct Vmxnet3_RxDesc VAR_1;", "bool is_head = true;", "uint32_t rxd_idx;", "uint32_t rx_ridx;", "struct Vmxnet3_RxCompDesc VAR_2;", "uint32_t new_rxcd_gen = VMXNET3_INIT_GEN;", "hwaddr new_rxcd_pa = 0;", "hwaddr ready_rxcd_pa = 0;", "struct iovec *VAR_3 = vmxnet...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ...
5,456
static void sp804_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { sp804_state *s = (sp804_state *)opaque; if (offset < 0x20) { arm_timer_write(s->timer[0], offset, value); return; } if (offset < 0x40) { arm_time...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void sp804_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { sp804_state *s = (sp804_state *)opaque; if (offset < 0x20) { arm_timer_write(s->timer[0], offset, value); return; } if (offset < 0x40) { arm_time...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { sp804_state *s = (sp804_state *)VAR_0; if (VAR_1 < 0x20) { arm_timer_write(s->timer[0], VAR_1, VAR_2); return; } if (VAR_1 < 0x40) { arm_timer_write(s-...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "sp804_state *s = (sp804_state *)VAR_0;", "if (VAR_1 < 0x20) {", "arm_timer_write(s->timer[0], VAR_1, VAR_2);", "return;", "}", "if (VAR_1 < 0x40) {", "arm_timer_write(s->timer[1], VAR_1 - 0x20, VAR_2);", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 33 ], [ 35 ] ]
5,458
static void cmd_start_stop_unit(IDEState *s, uint8_t* buf) { int sense; bool start = buf[4] & 1; bool loej = buf[4] & 2; /* load on start, eject on !start */ int pwrcnd = buf[4] & 0xf0; if (pwrcnd) { /* eject/load only happens for power condition == 0 */ return; } ...
false
qemu
4be746345f13e99e468c60acbd3a355e8183e3ce
static void cmd_start_stop_unit(IDEState *s, uint8_t* buf) { int sense; bool start = buf[4] & 1; bool loej = buf[4] & 2; int pwrcnd = buf[4] & 0xf0; if (pwrcnd) { return; } if (loej) { if (!start && !s->tray_open && s->tray_locked) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(IDEState *VAR_0, uint8_t* VAR_1) { int VAR_2; bool start = VAR_1[4] & 1; bool loej = VAR_1[4] & 2; int VAR_3 = VAR_1[4] & 0xf0; if (VAR_3) { return; } if (loej) { if (!start && !VAR_0->tray_open && VAR_0->tray_locked) { ...
[ "static void FUNC_0(IDEState *VAR_0, uint8_t* VAR_1)\n{", "int VAR_2;", "bool start = VAR_1[4] & 1;", "bool loej = VAR_1[4] & 2;", "int VAR_3 = VAR_1[4] & 0xf0;", "if (VAR_3) {", "return;", "}", "if (loej) {", "if (!start && !VAR_0->tray_open && VAR_0->tray_locked) {", "VAR_2 = bdrv_is_inserted(...
[ 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 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [...
5,461
void migration_tls_channel_connect(MigrationState *s, QIOChannel *ioc, const char *hostname, Error **errp) { QCryptoTLSCreds *creds; QIOChannelTLS *tioc; creds = migration_tls_get_creds( ...
false
qemu
4af245dc3e6e5c96405b3edb9d75657504256469
void migration_tls_channel_connect(MigrationState *s, QIOChannel *ioc, const char *hostname, Error **errp) { QCryptoTLSCreds *creds; QIOChannelTLS *tioc; creds = migration_tls_get_creds( ...
{ "code": [], "line_no": [] }
void FUNC_0(MigrationState *VAR_0, QIOChannel *VAR_1, const char *VAR_2, Error **VAR_3) { QCryptoTLSCreds *creds; QIOChannelTLS *tioc; creds = migration_tls_get_creds( VAR_0, QCRYPTO_TL...
[ "void FUNC_0(MigrationState *VAR_0,\nQIOChannel *VAR_1,\nconst char *VAR_2,\nError **VAR_3)\n{", "QCryptoTLSCreds *creds;", "QIOChannelTLS *tioc;", "creds = migration_tls_get_creds(\nVAR_0, QCRYPTO_TLS_CREDS_ENDPOINT_CLIENT, VAR_3);", "if (!creds) {", "return;", "}", "if (VAR_0->parameters.tls_hostnam...
[ 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45, 47 ], [ 49 ], [ 51 ], [...
5,462
void bdrv_add_before_write_notifier(BlockDriverState *bs, NotifierWithReturn *notifier) { notifier_with_return_list_add(&bs->before_write_notifiers, notifier); }
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
void bdrv_add_before_write_notifier(BlockDriverState *bs, NotifierWithReturn *notifier) { notifier_with_return_list_add(&bs->before_write_notifiers, notifier); }
{ "code": [], "line_no": [] }
void FUNC_0(BlockDriverState *VAR_0, NotifierWithReturn *VAR_1) { notifier_with_return_list_add(&VAR_0->before_write_notifiers, VAR_1); }
[ "void FUNC_0(BlockDriverState *VAR_0,\nNotifierWithReturn *VAR_1)\n{", "notifier_with_return_list_add(&VAR_0->before_write_notifiers, VAR_1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ] ]
5,463
static int qemu_savevm_state(Monitor *mon, QEMUFile *f) { int ret; if (qemu_savevm_state_blocked(mon)) { ret = -EINVAL; goto out; } ret = qemu_savevm_state_begin(f, 0, 0); if (ret < 0) goto out; do { ret = qemu_savevm_state_iterate(f); if...
false
qemu
e1c37d0e94048502f9874e6356ce7136d4b05bdb
static int qemu_savevm_state(Monitor *mon, QEMUFile *f) { int ret; if (qemu_savevm_state_blocked(mon)) { ret = -EINVAL; goto out; } ret = qemu_savevm_state_begin(f, 0, 0); if (ret < 0) goto out; do { ret = qemu_savevm_state_iterate(f); if...
{ "code": [], "line_no": [] }
static int FUNC_0(Monitor *VAR_0, QEMUFile *VAR_1) { int VAR_2; if (qemu_savevm_state_blocked(VAR_0)) { VAR_2 = -EINVAL; goto out; } VAR_2 = qemu_savevm_state_begin(VAR_1, 0, 0); if (VAR_2 < 0) goto out; do { VAR_2 = qemu_savevm_state_iterate(VAR_...
[ "static int FUNC_0(Monitor *VAR_0, QEMUFile *VAR_1)\n{", "int VAR_2;", "if (qemu_savevm_state_blocked(VAR_0)) {", "VAR_2 = -EINVAL;", "goto out;", "}", "VAR_2 = qemu_savevm_state_begin(VAR_1, 0, 0);", "if (VAR_2 < 0)\ngoto out;", "do {", "VAR_2 = qemu_savevm_state_iterate(VAR_1);", "if (VAR_2 < ...
[ 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 ], [ 27 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 39 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ] ]
5,465
static void s390_virtio_net_realize(VirtIOS390Device *s390_dev, Error **errp) { DeviceState *qdev = DEVICE(s390_dev); VirtIONetS390 *dev = VIRTIO_NET_S390(s390_dev); DeviceState *vdev = DEVICE(&dev->vdev); Error *err = NULL; virtio_net_set_config_size(&dev->vdev, s390_dev->host_features); ...
false
qemu
da3e8a23492dbc13c4b70d90b6ae42970624e63a
static void s390_virtio_net_realize(VirtIOS390Device *s390_dev, Error **errp) { DeviceState *qdev = DEVICE(s390_dev); VirtIONetS390 *dev = VIRTIO_NET_S390(s390_dev); DeviceState *vdev = DEVICE(&dev->vdev); Error *err = NULL; virtio_net_set_config_size(&dev->vdev, s390_dev->host_features); ...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIOS390Device *VAR_0, Error **VAR_1) { DeviceState *qdev = DEVICE(VAR_0); VirtIONetS390 *dev = VIRTIO_NET_S390(VAR_0); DeviceState *vdev = DEVICE(&dev->vdev); Error *err = NULL; virtio_net_set_config_size(&dev->vdev, VAR_0->host_features); virtio_net_set_netclient_...
[ "static void FUNC_0(VirtIOS390Device *VAR_0, Error **VAR_1)\n{", "DeviceState *qdev = DEVICE(VAR_0);", "VirtIONetS390 *dev = VIRTIO_NET_S390(VAR_0);", "DeviceState *vdev = DEVICE(&dev->vdev);", "Error *err = NULL;", "virtio_net_set_config_size(&dev->vdev, VAR_0->host_features);", "virtio_net_set_netclie...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ] ]
5,466
static void nvdimm_build_ssdt(GSList *device_list, GArray *table_offsets, GArray *table_data, BIOSLinker *linker, GArray *dsm_dma_arrea) { Aml *ssdt, *sb_scope, *dev; int mem_addr_offset, nvdimm_ssdt; acpi_add_table(table_offsets, table_dat...
false
qemu
bdfd065b1f75cacca21af0b8d4811c64cc48d04c
static void nvdimm_build_ssdt(GSList *device_list, GArray *table_offsets, GArray *table_data, BIOSLinker *linker, GArray *dsm_dma_arrea) { Aml *ssdt, *sb_scope, *dev; int mem_addr_offset, nvdimm_ssdt; acpi_add_table(table_offsets, table_dat...
{ "code": [], "line_no": [] }
static void FUNC_0(GSList *VAR_0, GArray *VAR_1, GArray *VAR_2, BIOSLinker *VAR_3, GArray *VAR_4) { Aml *ssdt, *sb_scope, *dev; int VAR_5, VAR_6; acpi_add_table(VAR_1, VAR_2); ssdt = init_aml_allocator(); acpi_data_push(ssdt->bu...
[ "static void FUNC_0(GSList *VAR_0, GArray *VAR_1,\nGArray *VAR_2, BIOSLinker *VAR_3,\nGArray *VAR_4)\n{", "Aml *ssdt, *sb_scope, *dev;", "int VAR_5, VAR_6;", "acpi_add_table(VAR_1, VAR_2);", "ssdt = init_aml_allocator();", "acpi_data_push(ssdt->buf, sizeof(AcpiTableHeader));", "sb_scope = aml_scope(\"\\...
[ 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 ], [ 25 ], [ 29 ], [ 55 ], [ 59 ], [ 65 ], [ 69 ], [ 73 ], [ 75 ], [ 79 ], [ 85 ], [ 87, 89 ], [ 93, 95,...
5,468
static av_cold int eightsvx_decode_init(AVCodecContext *avctx) { EightSvxContext *esc = avctx->priv_data; if (avctx->channels < 1 || avctx->channels > 2) { av_log(avctx, AV_LOG_ERROR, "8SVX does not support more than 2 channels\n"); return AVERROR_INVALIDDATA; } switch (avctx-...
false
FFmpeg
da8242e2d6f85d95239082efd0e5e2345e685a2c
static av_cold int eightsvx_decode_init(AVCodecContext *avctx) { EightSvxContext *esc = avctx->priv_data; if (avctx->channels < 1 || avctx->channels > 2) { av_log(avctx, AV_LOG_ERROR, "8SVX does not support more than 2 channels\n"); return AVERROR_INVALIDDATA; } switch (avctx-...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { EightSvxContext *esc = avctx->priv_data; if (avctx->channels < 1 || avctx->channels > 2) { av_log(avctx, AV_LOG_ERROR, "8SVX does not support more than 2 channels\n"); return AVERROR_INVALIDDATA; } switch (avctx->codec->id) { ...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "EightSvxContext *esc = avctx->priv_data;", "if (avctx->channels < 1 || avctx->channels > 2) {", "av_log(avctx, AV_LOG_ERROR, \"8SVX does not support more than 2 channels\\n\");", "return AVERROR_INVALIDDATA;", "}", "switch (avctx->codec->id) {", ...
[ 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 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ] ]
5,469
static av_cold int opus_encode_init(AVCodecContext *avctx) { int i, ch, ret; OpusEncContext *s = avctx->priv_data; s->avctx = avctx; s->channels = avctx->channels; /* Opus allows us to change the framesize on each packet (and each packet may * have multiple frames in it) but we can't...
false
FFmpeg
e6ec482b429b241de0fb3088d87e28777d70ded5
static av_cold int opus_encode_init(AVCodecContext *avctx) { int i, ch, ret; OpusEncContext *s = avctx->priv_data; s->avctx = avctx; s->channels = avctx->channels; avctx->frame_size = 120; avctx->initial_padding = 120; avctx->cutoff = !avctx->cutoff ? 20000 ...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { int VAR_0, VAR_1, VAR_2; OpusEncContext *s = avctx->priv_data; s->avctx = avctx; s->channels = avctx->channels; avctx->frame_size = 120; avctx->initial_padding = 120; avctx->cutoff = !avctx->cutoff ? 20000 :...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "int VAR_0, VAR_1, VAR_2;", "OpusEncContext *s = avctx->priv_data;", "s->avctx = avctx;", "s->channels = avctx->channels;", "avctx->frame_size = 120;", "avctx->initial_padding = 120;", "avctx->cutoff = !avctx->cutoff ? 20000 : avctx->cutoff;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 53 ], [ 55 ], [ 61 ], [ 63, 65 ], [ 67...
5,471
static void scsi_destroy(SCSIDevice *s) { scsi_device_purge_requests(s, SENSE_CODE(NO_SENSE)); blockdev_mark_auto_del(s->conf.bs); }
false
qemu
a818a4b69d47ca3826dee36878074395aeac2083
static void scsi_destroy(SCSIDevice *s) { scsi_device_purge_requests(s, SENSE_CODE(NO_SENSE)); blockdev_mark_auto_del(s->conf.bs); }
{ "code": [], "line_no": [] }
static void FUNC_0(SCSIDevice *VAR_0) { scsi_device_purge_requests(VAR_0, SENSE_CODE(NO_SENSE)); blockdev_mark_auto_del(VAR_0->conf.bs); }
[ "static void FUNC_0(SCSIDevice *VAR_0)\n{", "scsi_device_purge_requests(VAR_0, SENSE_CODE(NO_SENSE));", "blockdev_mark_auto_del(VAR_0->conf.bs);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
5,472
static void init_event_facility_class(ObjectClass *klass, void *data) { SysBusDeviceClass *sbdc = SYS_BUS_DEVICE_CLASS(klass); DeviceClass *dc = DEVICE_CLASS(sbdc); SCLPEventFacilityClass *k = EVENT_FACILITY_CLASS(dc); dc->reset = reset_event_facility; dc->vmsd = &vmstate_event_facility; ...
false
qemu
f6102c329c43d7d5e0bee1fc2fe4043e05f9810c
static void init_event_facility_class(ObjectClass *klass, void *data) { SysBusDeviceClass *sbdc = SYS_BUS_DEVICE_CLASS(klass); DeviceClass *dc = DEVICE_CLASS(sbdc); SCLPEventFacilityClass *k = EVENT_FACILITY_CLASS(dc); dc->reset = reset_event_facility; dc->vmsd = &vmstate_event_facility; ...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { SysBusDeviceClass *sbdc = SYS_BUS_DEVICE_CLASS(VAR_0); DeviceClass *dc = DEVICE_CLASS(sbdc); SCLPEventFacilityClass *k = EVENT_FACILITY_CLASS(dc); dc->reset = reset_event_facility; dc->vmsd = &vmstate_event_facility; set_bit(DEVICE_C...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "SysBusDeviceClass *sbdc = SYS_BUS_DEVICE_CLASS(VAR_0);", "DeviceClass *dc = DEVICE_CLASS(sbdc);", "SCLPEventFacilityClass *k = EVENT_FACILITY_CLASS(dc);", "dc->reset = reset_event_facility;", "dc->vmsd = &vmstate_event_facility;", "set_bit(DEVIC...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
5,473
static void set_pixel_format(VncState *vs, int bits_per_pixel, int depth, int big_endian_flag, int true_color_flag, int red_max, int green_max, int blue_max, int red_shift, int green_shift, int blue_shift) { int host_big_endian_flag; #ifdef WORDS_BIGENDIAN host_big_endi...
false
qemu
8bba5c81b1febeb20cdd60f1c18eb0e695cad6d6
static void set_pixel_format(VncState *vs, int bits_per_pixel, int depth, int big_endian_flag, int true_color_flag, int red_max, int green_max, int blue_max, int red_shift, int green_shift, int blue_shift) { int host_big_endian_flag; #ifdef WORDS_BIGENDIAN host_big_endi...
{ "code": [], "line_no": [] }
static void FUNC_0(VncState *VAR_0, int VAR_1, int VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10) { int VAR_11; #ifdef WORDS_BIGENDIAN VAR_11 = 1; #else VAR_11 = 0; #endif if (!VAR_4) { fail: vnc_client...
[ "static void FUNC_0(VncState *VAR_0,\nint VAR_1, int VAR_2,\nint VAR_3, int VAR_4,\nint VAR_5, int VAR_6, int VAR_7,\nint VAR_8, int VAR_9, int VAR_10)\n{", "int VAR_11;", "#ifdef WORDS_BIGENDIAN\nVAR_11 = 1;", "#else\nVAR_11 = 0;", "#endif\nif (!VAR_4) {", "fail:\nvnc_client_error(VAR_0);", "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, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 17, 19 ], [ 21, 23 ], [ 25, 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 37, 39, 41, 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53, 55,...
5,474
void do_info_vnc(Monitor *mon) { if (vnc_display == NULL || vnc_display->display == NULL) monitor_printf(mon, "VNC server disabled\n"); else { monitor_printf(mon, "VNC server active on: "); monitor_print_filename(mon, vnc_display->display); monitor_printf(mon, "\n"); i...
false
qemu
1ff7df1a848044f58d0f3540f1447db4bb1d2d20
void do_info_vnc(Monitor *mon) { if (vnc_display == NULL || vnc_display->display == NULL) monitor_printf(mon, "VNC server disabled\n"); else { monitor_printf(mon, "VNC server active on: "); monitor_print_filename(mon, vnc_display->display); monitor_printf(mon, "\n"); i...
{ "code": [], "line_no": [] }
void FUNC_0(Monitor *VAR_0) { if (vnc_display == NULL || vnc_display->display == NULL) monitor_printf(VAR_0, "VNC server disabled\n"); else { monitor_printf(VAR_0, "VNC server active on: "); monitor_print_filename(VAR_0, vnc_display->display); monitor_printf(VAR_0, "\n"); ...
[ "void FUNC_0(Monitor *VAR_0)\n{", "if (vnc_display == NULL || vnc_display->display == NULL)\nmonitor_printf(VAR_0, \"VNC server disabled\\n\");", "else {", "monitor_printf(VAR_0, \"VNC server active on: \");", "monitor_print_filename(VAR_0, vnc_display->display);", "monitor_printf(VAR_0, \"\\n\");", "if...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 23, 25 ], [ 27 ], [ 29 ] ]
5,475
void qemu_chr_generic_open(CharDriverState *s) { if (s->open_timer == NULL) { s->open_timer = qemu_new_timer_ms(rt_clock, qemu_chr_fire_open_event, s); qemu_mod_timer(s->open_timer, qemu_get_clock_ms(rt_clock) - 1); } }
false
qemu
9f939df955a4152aad69a19a77e0898631bb2c18
void qemu_chr_generic_open(CharDriverState *s) { if (s->open_timer == NULL) { s->open_timer = qemu_new_timer_ms(rt_clock, qemu_chr_fire_open_event, s); qemu_mod_timer(s->open_timer, qemu_get_clock_ms(rt_clock) - 1); } }
{ "code": [], "line_no": [] }
void FUNC_0(CharDriverState *VAR_0) { if (VAR_0->open_timer == NULL) { VAR_0->open_timer = qemu_new_timer_ms(rt_clock, qemu_chr_fire_open_event, VAR_0); qemu_mod_timer(VAR_0->open_timer, qemu_get_clock_ms(rt_clock) - 1); } }
[ "void FUNC_0(CharDriverState *VAR_0)\n{", "if (VAR_0->open_timer == NULL) {", "VAR_0->open_timer = qemu_new_timer_ms(rt_clock,\nqemu_chr_fire_open_event, VAR_0);", "qemu_mod_timer(VAR_0->open_timer, qemu_get_clock_ms(rt_clock) - 1);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ] ]
5,476
static int pci_piix4_ide_initfn(PCIDevice *dev) { PCIIDEState *d = DO_UPCAST(PCIIDEState, dev, dev); pci_config_set_vendor_id(d->dev.config, PCI_VENDOR_ID_INTEL); pci_config_set_device_id(d->dev.config, PCI_DEVICE_ID_INTEL_82371AB); return pci_piix_ide_initfn(d); }
false
qemu
25f8e2f512d87f0a77fc5c0b367dd200a7834d21
static int pci_piix4_ide_initfn(PCIDevice *dev) { PCIIDEState *d = DO_UPCAST(PCIIDEState, dev, dev); pci_config_set_vendor_id(d->dev.config, PCI_VENDOR_ID_INTEL); pci_config_set_device_id(d->dev.config, PCI_DEVICE_ID_INTEL_82371AB); return pci_piix_ide_initfn(d); }
{ "code": [], "line_no": [] }
static int FUNC_0(PCIDevice *VAR_0) { PCIIDEState *d = DO_UPCAST(PCIIDEState, VAR_0, VAR_0); pci_config_set_vendor_id(d->VAR_0.config, PCI_VENDOR_ID_INTEL); pci_config_set_device_id(d->VAR_0.config, PCI_DEVICE_ID_INTEL_82371AB); return pci_piix_ide_initfn(d); }
[ "static int FUNC_0(PCIDevice *VAR_0)\n{", "PCIIDEState *d = DO_UPCAST(PCIIDEState, VAR_0, VAR_0);", "pci_config_set_vendor_id(d->VAR_0.config, PCI_VENDOR_ID_INTEL);", "pci_config_set_device_id(d->VAR_0.config, PCI_DEVICE_ID_INTEL_82371AB);", "return pci_piix_ide_initfn(d);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
5,477
static void block_job_defer_to_main_loop_bh(void *opaque) { BlockJobDeferToMainLoopData *data = opaque; AioContext *aio_context; /* Prevent race with block_job_defer_to_main_loop() */ aio_context_acquire(data->aio_context); /* Fetch BDS AioContext again, in case it has changed */ aio_...
false
qemu
eb05e011e248c6fb6baee295e14fd206e136028c
static void block_job_defer_to_main_loop_bh(void *opaque) { BlockJobDeferToMainLoopData *data = opaque; AioContext *aio_context; aio_context_acquire(data->aio_context); aio_context = blk_get_aio_context(data->job->blk); if (aio_context != data->aio_context) { aio_conte...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { BlockJobDeferToMainLoopData *data = VAR_0; AioContext *aio_context; aio_context_acquire(data->aio_context); aio_context = blk_get_aio_context(data->job->blk); if (aio_context != data->aio_context) { aio_context_acquire(aio_context); ...
[ "static void FUNC_0(void *VAR_0)\n{", "BlockJobDeferToMainLoopData *data = VAR_0;", "AioContext *aio_context;", "aio_context_acquire(data->aio_context);", "aio_context = blk_get_aio_context(data->job->blk);", "if (aio_context != data->aio_context) {", "aio_context_acquire(aio_context);", "}", "data-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 47 ], [ 49 ] ]
5,478
static void virtio_blk_handle_read(VirtIOBlockReq *req) { uint64_t sector; sector = virtio_ldq_p(VIRTIO_DEVICE(req->dev), &req->out.sector); bdrv_acct_start(req->dev->bs, &req->acct, req->qiov.size, BDRV_ACCT_READ); trace_virtio_blk_handle_read(req, sector, req->qiov.size / 512); if (s...
false
qemu
d0e14376eefc40b07c8fb42c132c2202c66dcb0b
static void virtio_blk_handle_read(VirtIOBlockReq *req) { uint64_t sector; sector = virtio_ldq_p(VIRTIO_DEVICE(req->dev), &req->out.sector); bdrv_acct_start(req->dev->bs, &req->acct, req->qiov.size, BDRV_ACCT_READ); trace_virtio_blk_handle_read(req, sector, req->qiov.size / 512); if (s...
{ "code": [], "line_no": [] }
static void FUNC_0(VirtIOBlockReq *VAR_0) { uint64_t sector; sector = virtio_ldq_p(VIRTIO_DEVICE(VAR_0->dev), &VAR_0->out.sector); bdrv_acct_start(VAR_0->dev->bs, &VAR_0->acct, VAR_0->qiov.size, BDRV_ACCT_READ); trace_virtio_blk_handle_read(VAR_0, sector, VAR_0->qiov.size / 512); if (s...
[ "static void FUNC_0(VirtIOBlockReq *VAR_0)\n{", "uint64_t sector;", "sector = virtio_ldq_p(VIRTIO_DEVICE(VAR_0->dev), &VAR_0->out.sector);", "bdrv_acct_start(VAR_0->dev->bs, &VAR_0->acct, VAR_0->qiov.size, BDRV_ACCT_READ);", "trace_virtio_blk_handle_read(VAR_0, sector, VAR_0->qiov.size / 512);", "if (sect...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39, 41 ], [ 43 ] ]
5,479
envlist_unsetenv(envlist_t *envlist, const char *env) { struct envlist_entry *entry; size_t envname_len; if ((envlist == NULL) || (env == NULL)) return (EINVAL); /* env is not allowed to contain '=' */ if (strchr(env, '=') != NULL) return (EINVAL); /* * Find out the requested entry and remov...
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
envlist_unsetenv(envlist_t *envlist, const char *env) { struct envlist_entry *entry; size_t envname_len; if ((envlist == NULL) || (env == NULL)) return (EINVAL); if (strchr(env, '=') != NULL) return (EINVAL); envname_len = strlen(env); for (entry = envlist->el_entries.lh_first; entr...
{ "code": [], "line_no": [] }
FUNC_0(envlist_t *VAR_0, const char *VAR_1) { struct envlist_entry *VAR_2; size_t envname_len; if ((VAR_0 == NULL) || (VAR_1 == NULL)) return (EINVAL); if (strchr(VAR_1, '=') != NULL) return (EINVAL); envname_len = strlen(VAR_1); for (VAR_2 = VAR_0->el_entries.lh_first; VAR_2 != NUL...
[ "FUNC_0(envlist_t *VAR_0, const char *VAR_1)\n{", "struct envlist_entry *VAR_2;", "size_t envname_len;", "if ((VAR_0 == NULL) || (VAR_1 == NULL))\nreturn (EINVAL);", "if (strchr(VAR_1, '=') != NULL)\nreturn (EINVAL);", "envname_len = strlen(VAR_1);", "for (VAR_2 = VAR_0->el_entries.lh_first; VAR_2 != NU...
[ 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 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [ 59 ], [ 61 ] ]
5,480
static int ehci_state_fetchitd(EHCIState *ehci, int async) { uint32_t entry; EHCIitd itd; assert(!async); entry = ehci_get_fetch_addr(ehci, async); get_dwords(NLPTR_GET(entry),(uint32_t *) &itd, sizeof(EHCIitd) >> 2); ehci_trace_itd(ehci, entry, &itd); if (ehci_...
false
qemu
68d553587c0aa271c3eb2902921b503740d775b6
static int ehci_state_fetchitd(EHCIState *ehci, int async) { uint32_t entry; EHCIitd itd; assert(!async); entry = ehci_get_fetch_addr(ehci, async); get_dwords(NLPTR_GET(entry),(uint32_t *) &itd, sizeof(EHCIitd) >> 2); ehci_trace_itd(ehci, entry, &itd); if (ehci_...
{ "code": [], "line_no": [] }
static int FUNC_0(EHCIState *VAR_0, int VAR_1) { uint32_t entry; EHCIitd itd; assert(!VAR_1); entry = ehci_get_fetch_addr(VAR_0, VAR_1); get_dwords(NLPTR_GET(entry),(uint32_t *) &itd, sizeof(EHCIitd) >> 2); ehci_trace_itd(VAR_0, entry, &itd); if (ehci_process_it...
[ "static int FUNC_0(EHCIState *VAR_0, int VAR_1)\n{", "uint32_t entry;", "EHCIitd itd;", "assert(!VAR_1);", "entry = ehci_get_fetch_addr(VAR_0, VAR_1);", "get_dwords(NLPTR_GET(entry),(uint32_t *) &itd,\nsizeof(EHCIitd) >> 2);", "ehci_trace_itd(VAR_0, entry, &itd);", "if (ehci_process_itd(VAR_0, &itd) !...
[ 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 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ] ]
5,481
static int decode_b_mbs(VC9Context *v) { int x, y, current_mb = 0 , last_mb = v->height_mb*v->width_mb, i /* MB / B postion information */; int direct_b_bit = 0, skip_mb_bit = 0; int ac_pred; int b_mv1 = 0, b_mv2 = 0, b_mv_type = 0; int mquant, mqdiff; /* MB quant stuff */ int tt...
false
FFmpeg
e5540b3fd30367ce3cc33b2f34a04b660dbc4b38
static int decode_b_mbs(VC9Context *v) { int x, y, current_mb = 0 , last_mb = v->height_mb*v->width_mb, i ; int direct_b_bit = 0, skip_mb_bit = 0; int ac_pred; int b_mv1 = 0, b_mv2 = 0, b_mv_type = 0; int mquant, mqdiff; int tt_block; for (y=0; y<v->height_mb; y++) ...
{ "code": [], "line_no": [] }
static int FUNC_0(VC9Context *VAR_0) { int VAR_1, VAR_2, VAR_3 = 0 , VAR_4 = VAR_0->height_mb*VAR_0->width_mb, VAR_5 ; int VAR_6 = 0, VAR_7 = 0; int VAR_8; int VAR_9 = 0, VAR_10 = 0, VAR_11 = 0; int VAR_12, VAR_13; int VAR_14; for (VAR_2=0; VAR_2<VAR_0->height_mb; VA...
[ "static int FUNC_0(VC9Context *VAR_0)\n{", "int VAR_1, VAR_2, VAR_3 = 0 , VAR_4 = VAR_0->height_mb*VAR_0->width_mb,\nVAR_5 ;", "int VAR_6 = 0, VAR_7 = 0;", "int VAR_8;", "int VAR_9 = 0, VAR_10 = 0, VAR_11 = 0;", "int VAR_12, VAR_13;", "int VAR_14;", "for (VAR_2=0; VAR_2<VAR_0->height_mb; VAR_2++)", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33, 35 ], [ 39, 41 ], [ 43, 45 ], [ 47, 49 ], [ 51,...
5,483
static int ram_save_iterate(QEMUFile *f, void *opaque) { int ret; int i; int64_t t0; int total_sent = 0; qemu_mutex_lock_ramlist(); if (ram_list.version != last_version) { reset_ram_globals(); } ram_control_before_iterate(f, RAM_CONTROL_ROUND); t0 = qemu_cl...
false
qemu
6cd0beda2c3c21fd7575e944764f392be7ef50c1
static int ram_save_iterate(QEMUFile *f, void *opaque) { int ret; int i; int64_t t0; int total_sent = 0; qemu_mutex_lock_ramlist(); if (ram_list.version != last_version) { reset_ram_globals(); } ram_control_before_iterate(f, RAM_CONTROL_ROUND); t0 = qemu_cl...
{ "code": [], "line_no": [] }
static int FUNC_0(QEMUFile *VAR_0, void *VAR_1) { int VAR_2; int VAR_3; int64_t t0; int VAR_4 = 0; qemu_mutex_lock_ramlist(); if (ram_list.version != last_version) { reset_ram_globals(); } ram_control_before_iterate(VAR_0, RAM_CONTROL_ROUND); t0 = qemu_cloc...
[ "static int FUNC_0(QEMUFile *VAR_0, void *VAR_1)\n{", "int VAR_2;", "int VAR_3;", "int64_t t0;", "int VAR_4 = 0;", "qemu_mutex_lock_ramlist();", "if (ram_list.version != last_version) {", "reset_ram_globals();", "}", "ram_control_before_iterate(VAR_0, RAM_CONTROL_ROUND);", "t0 = qemu_clock_get_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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
5,485
static void *file_ram_alloc(RAMBlock *block, ram_addr_t memory, const char *path, Error **errp) { char *filename; char *sanitized_name; char *c; void *area; int fd; uint64_t hpagesize; Error *local...
false
qemu
8d31d6b65a7448582c7bd320fd1b8cfc6cca2720
static void *file_ram_alloc(RAMBlock *block, ram_addr_t memory, const char *path, Error **errp) { char *filename; char *sanitized_name; char *c; void *area; int fd; uint64_t hpagesize; Error *local...
{ "code": [], "line_no": [] }
static void *FUNC_0(RAMBlock *VAR_0, ram_addr_t VAR_1, const char *VAR_2, Error **VAR_3) { char *VAR_4; char *VAR_5; char *VAR_6; void *VAR_7; int VAR_8; uint64_t hpagesize; Error *local_err = NULL...
[ "static void *FUNC_0(RAMBlock *VAR_0,\nram_addr_t VAR_1,\nconst char *VAR_2,\nError **VAR_3)\n{", "char *VAR_4;", "char *VAR_5;", "char *VAR_6;", "void *VAR_7;", "int VAR_8;", "uint64_t hpagesize;", "Error *local_err = NULL;", "hpagesize = gethugepagesize(VAR_2, &local_err);", "if (local_err) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43, 45, 47 ], [ 49 ], [...
5,486
static BlockDriverAIOCB *raw_aio_readv(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { RawAIOCB *acb; acb = raw_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque); if (!acb) return NULL; i...
false
qemu
9ef91a677110ec200d7b2904fc4bcae5a77329ad
static BlockDriverAIOCB *raw_aio_readv(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { RawAIOCB *acb; acb = raw_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque); if (!acb) return NULL; i...
{ "code": [], "line_no": [] }
static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { RawAIOCB *acb; acb = raw_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque); if (!acb) return NULL; if (qemu...
[ "static BlockDriverAIOCB *FUNC_0(BlockDriverState *bs,\nint64_t sector_num, QEMUIOVector *qiov, int nb_sectors,\nBlockDriverCompletionFunc *cb, void *opaque)\n{", "RawAIOCB *acb;", "acb = raw_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque);", "if (!acb)\nreturn NULL;", "if (qemu_paio_read(&acb->aioc...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
5,488
void ff_ivi_inverse_haar_8x8(const int32_t *in, int16_t *out, ptrdiff_t pitch, const uint8_t *flags) { int i, shift, sp1, sp2, sp3, sp4; const int32_t *src; int32_t *dst; int tmp[64]; int t0, t1, t2, t3, t4, t5, t6, t7, t8; /* apply the InvHaar8...
true
FFmpeg
9e88cc94e58e9e4d1293f9f56c973510e30495fd
void ff_ivi_inverse_haar_8x8(const int32_t *in, int16_t *out, ptrdiff_t pitch, const uint8_t *flags) { int i, shift, sp1, sp2, sp3, sp4; const int32_t *src; int32_t *dst; int tmp[64]; int t0, t1, t2, t3, t4, t5, t6, t7, t8; #define COMPENSATE(...
{ "code": [ " sp1 = src[ 0] << shift;", " sp2 = src[ 8] << shift;", " sp3 = src[16] << shift;", " sp4 = src[24] << shift;" ], "line_no": [ 35, 37, 39, 41 ] }
void FUNC_0(const int32_t *VAR_0, int16_t *VAR_1, ptrdiff_t VAR_2, const uint8_t *VAR_3) { int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9; const int32_t *VAR_10; int32_t *dst; int VAR_11[64]; int VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17, VAR_18, VA...
[ "void FUNC_0(const int32_t *VAR_0, int16_t *VAR_1, ptrdiff_t VAR_2,\nconst uint8_t *VAR_3)\n{", "int VAR_4, VAR_5, VAR_6, VAR_7, VAR_8, VAR_9;", "const int32_t *VAR_10;", "int32_t *dst;", "int VAR_11[64];", "int VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17, VAR_18, VAR_19, VAR_20;", "#defi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45, 47, 49, 51 ], [ 53 ...
5,489
av_cold void ff_flacdsp_init_x86(FLACDSPContext *c, enum AVSampleFormat fmt, int bps) { #if HAVE_YASM int cpu_flags = av_get_cpu_flags(); if (EXTERNAL_SSE4(cpu_flags)) { if (bps > 16 && CONFIG_FLAC_DECODER) c->lpc = ff_flac_lpc_32_sse4; } i...
false
FFmpeg
ec482e738ddcb90b156cf306eb1911f7038efa19
av_cold void ff_flacdsp_init_x86(FLACDSPContext *c, enum AVSampleFormat fmt, int bps) { #if HAVE_YASM int cpu_flags = av_get_cpu_flags(); if (EXTERNAL_SSE4(cpu_flags)) { if (bps > 16 && CONFIG_FLAC_DECODER) c->lpc = ff_flac_lpc_32_sse4; } i...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(FLACDSPContext *c, enum AVSampleFormat fmt, int bps) { #if HAVE_YASM int cpu_flags = av_get_cpu_flags(); if (EXTERNAL_SSE4(cpu_flags)) { if (bps > 16 && CONFIG_FLAC_DECODER) c->lpc = ff_flac_lpc_32_sse4; } if (EXTERNAL_X...
[ "av_cold void FUNC_0(FLACDSPContext *c, enum AVSampleFormat fmt,\nint bps)\n{", "#if HAVE_YASM\nint cpu_flags = av_get_cpu_flags();", "if (EXTERNAL_SSE4(cpu_flags)) {", "if (bps > 16 && CONFIG_FLAC_DECODER)\nc->lpc = ff_flac_lpc_32_sse4;", "}", "if (EXTERNAL_XOP(cpu_flags)) {", "if (bps > 16)\nc->lpc = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29, 31 ] ]
5,491
static void up_heap(uint32_t val, uint32_t *heap, uint32_t *weights) { uint32_t initial_val = heap[val]; while (weights[initial_val] < weights[heap[val >> 1]]) { heap[val] = heap[val >> 1]; val >>= 1; } heap[val] = initial_val; }
true
FFmpeg
f92f4935acd7d974adfd1deebdf1bb06cbe107ca
static void up_heap(uint32_t val, uint32_t *heap, uint32_t *weights) { uint32_t initial_val = heap[val]; while (weights[initial_val] < weights[heap[val >> 1]]) { heap[val] = heap[val >> 1]; val >>= 1; } heap[val] = initial_val; }
{ "code": [ "static void up_heap(uint32_t val, uint32_t *heap, uint32_t *weights)", " uint32_t initial_val = heap[val];", " while (weights[initial_val] < weights[heap[val >> 1]]) {", " heap[val] = heap[val >> 1];", " val >>= 1;", " heap[val] = initial_val;", " ...
static void FUNC_0(uint32_t VAR_0, uint32_t *VAR_1, uint32_t *VAR_2) { uint32_t initial_val = VAR_1[VAR_0]; while (VAR_2[initial_val] < VAR_2[VAR_1[VAR_0 >> 1]]) { VAR_1[VAR_0] = VAR_1[VAR_0 >> 1]; VAR_0 >>= 1; } VAR_1[VAR_0] = initial_val; }
[ "static void FUNC_0(uint32_t VAR_0, uint32_t *VAR_1, uint32_t *VAR_2)\n{", "uint32_t initial_val = VAR_1[VAR_0];", "while (VAR_2[initial_val] < VAR_2[VAR_1[VAR_0 >> 1]]) {", "VAR_1[VAR_0] = VAR_1[VAR_0 >> 1];", "VAR_0 >>= 1;", "}", "VAR_1[VAR_0] = initial_val;", "}" ]
[ 1, 1, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ] ]
5,492
static int vmstate_size(void *opaque, VMStateField *field) { int size = field->size; if (field->flags & VMS_VBUFFER) { size = *(int32_t *)(opaque+field->size_offset); if (field->flags & VMS_MULTIPLY) { size *= field->size; } } return size; }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
static int vmstate_size(void *opaque, VMStateField *field) { int size = field->size; if (field->flags & VMS_VBUFFER) { size = *(int32_t *)(opaque+field->size_offset); if (field->flags & VMS_MULTIPLY) { size *= field->size; } } return size; }
{ "code": [], "line_no": [] }
static int FUNC_0(void *VAR_0, VMStateField *VAR_1) { int VAR_2 = VAR_1->VAR_2; if (VAR_1->flags & VMS_VBUFFER) { VAR_2 = *(int32_t *)(VAR_0+VAR_1->size_offset); if (VAR_1->flags & VMS_MULTIPLY) { VAR_2 *= VAR_1->VAR_2; } } return VAR_2; }
[ "static int FUNC_0(void *VAR_0, VMStateField *VAR_1)\n{", "int VAR_2 = VAR_1->VAR_2;", "if (VAR_1->flags & VMS_VBUFFER) {", "VAR_2 = *(int32_t *)(VAR_0+VAR_1->size_offset);", "if (VAR_1->flags & VMS_MULTIPLY) {", "VAR_2 *= VAR_1->VAR_2;", "}", "}", "return VAR_2;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
5,493
void ff_simple_idct84_add(uint8_t *dest, int line_size, DCTELEM *block) { int i; /* IDCT8 on each line */ for(i=0; i<4; i++) { idctRowCondDC_8(block + i*8); } /* IDCT4 and store */ for(i=0;i<8;i++) { idct4col_add(dest + i, line_size, block + i); } }
true
FFmpeg
f78cd0c243b9149c7f604ecf1006d78e344aa6ca
void ff_simple_idct84_add(uint8_t *dest, int line_size, DCTELEM *block) { int i; for(i=0; i<4; i++) { idctRowCondDC_8(block + i*8); } for(i=0;i<8;i++) { idct4col_add(dest + i, line_size, block + i); } }
{ "code": [ " idctRowCondDC_8(block + i*8);", " idctRowCondDC_8(block + i*8);" ], "line_no": [ 13, 13 ] }
void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2) { int VAR_3; for(VAR_3=0; VAR_3<4; VAR_3++) { idctRowCondDC_8(VAR_2 + VAR_3*8); } for(VAR_3=0;VAR_3<8;VAR_3++) { idct4col_add(VAR_0 + VAR_3, VAR_1, VAR_2 + VAR_3); } }
[ "void FUNC_0(uint8_t *VAR_0, int VAR_1, DCTELEM *VAR_2)\n{", "int VAR_3;", "for(VAR_3=0; VAR_3<4; VAR_3++) {", "idctRowCondDC_8(VAR_2 + VAR_3*8);", "}", "for(VAR_3=0;VAR_3<8;VAR_3++) {", "idct4col_add(VAR_0 + VAR_3, VAR_1, VAR_2 + VAR_3);", "}", "}" ]
[ 0, 0, 0, 1, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ] ]
5,494
int net_handle_fd_param(Monitor *mon, const char *param) { if (!qemu_isdigit(param[0])) { int fd; fd = monitor_get_fd(mon, param); if (fd == -1) { error_report("No file descriptor named %s found", param); return -1; } return fd; } els...
true
qemu
f7c31d6381f2cbac03e82fc23133f6863606edd8
int net_handle_fd_param(Monitor *mon, const char *param) { if (!qemu_isdigit(param[0])) { int fd; fd = monitor_get_fd(mon, param); if (fd == -1) { error_report("No file descriptor named %s found", param); return -1; } return fd; } els...
{ "code": [ " if (!qemu_isdigit(param[0])) {", " int fd;", " return fd;", " return strtol(param, NULL, 0);" ], "line_no": [ 5, 7, 23, 27 ] }
int FUNC_0(Monitor *VAR_0, const char *VAR_1) { if (!qemu_isdigit(VAR_1[0])) { int VAR_2; VAR_2 = monitor_get_fd(VAR_0, VAR_1); if (VAR_2 == -1) { error_report("No file descriptor named %s found", VAR_1); return -1; } return VAR_2; } ...
[ "int FUNC_0(Monitor *VAR_0, const char *VAR_1)\n{", "if (!qemu_isdigit(VAR_1[0])) {", "int VAR_2;", "VAR_2 = monitor_get_fd(VAR_0, VAR_1);", "if (VAR_2 == -1) {", "error_report(\"No file descriptor named %s found\", VAR_1);", "return -1;", "}", "return VAR_2;", "} else {", "return strtol(VAR_1, ...
[ 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ] ]
5,495
static int tee_write_trailer(AVFormatContext *avf) { TeeContext *tee = avf->priv_data; AVFormatContext *avf2; int ret_all = 0, ret; unsigned i; for (i = 0; i < tee->nb_slaves; i++) { avf2 = tee->slaves[i].avf; if ((ret = av_write_trailer(avf2)) < 0) if (!ret_al...
true
FFmpeg
f9d7e9feec2a0fd7f7930d01876a70a9b8a4a3b9
static int tee_write_trailer(AVFormatContext *avf) { TeeContext *tee = avf->priv_data; AVFormatContext *avf2; int ret_all = 0, ret; unsigned i; for (i = 0; i < tee->nb_slaves; i++) { avf2 = tee->slaves[i].avf; if ((ret = av_write_trailer(avf2)) < 0) if (!ret_al...
{ "code": [ " AVFormatContext *avf2;", " avf2 = tee->slaves[i].avf;", " if ((ret = av_write_trailer(avf2)) < 0)", " if (!(avf2->oformat->flags & AVFMT_NOFILE))", " ff_format_io_close(avf2, &avf2->pb);", " close_slaves(avf);" ], "line_no": [ 7, ...
static int FUNC_0(AVFormatContext *VAR_0) { TeeContext *tee = VAR_0->priv_data; AVFormatContext *avf2; int VAR_1 = 0, VAR_2; unsigned VAR_3; for (VAR_3 = 0; VAR_3 < tee->nb_slaves; VAR_3++) { avf2 = tee->slaves[VAR_3].VAR_0; if ((VAR_2 = av_write_trailer(avf2)) < 0) ...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "TeeContext *tee = VAR_0->priv_data;", "AVFormatContext *avf2;", "int VAR_1 = 0, VAR_2;", "unsigned VAR_3;", "for (VAR_3 = 0; VAR_3 < tee->nb_slaves; VAR_3++) {", "avf2 = tee->slaves[VAR_3].VAR_0;", "if ((VAR_2 = av_write_trailer(avf2)) < 0)\nif (!VAR_1)...
[ 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21, 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
5,496
static int write_trailer(AVFormatContext *s){ NUTContext *nut= s->priv_data; AVIOContext *bc= s->pb; while(nut->header_count<3) write_headers(s, bc); avio_flush(bc); ff_nut_free_sp(nut); av_freep(&nut->stream); av_freep(&nut->time_base); return 0; }
true
FFmpeg
2cface71ca58b1ab811efae7d22f3264f362f672
static int write_trailer(AVFormatContext *s){ NUTContext *nut= s->priv_data; AVIOContext *bc= s->pb; while(nut->header_count<3) write_headers(s, bc); avio_flush(bc); ff_nut_free_sp(nut); av_freep(&nut->stream); av_freep(&nut->time_base); return 0; }
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0){ NUTContext *nut= VAR_0->priv_data; AVIOContext *bc= VAR_0->pb; while(nut->header_count<3) write_headers(VAR_0, bc); avio_flush(bc); ff_nut_free_sp(nut); av_freep(&nut->stream); av_freep(&nut->time_base); return 0; }
[ "static int FUNC_0(AVFormatContext *VAR_0){", "NUTContext *nut= VAR_0->priv_data;", "AVIOContext *bc= VAR_0->pb;", "while(nut->header_count<3)\nwrite_headers(VAR_0, bc);", "avio_flush(bc);", "ff_nut_free_sp(nut);", "av_freep(&nut->stream);", "av_freep(&nut->time_base);", "return 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 20 ], [ 24 ], [ 26 ] ]
5,497
static void vmgenid_set_guid_test(void) { QemuUUID expected, measured; gchar *cmd; g_assert(qemu_uuid_parse(VGID_GUID, &expected) == 0); cmd = g_strdup_printf("-machine accel=tcg -device vmgenid,id=testvgid," "guid=%s", VGID_GUID); qtest_start(cmd); /* Rea...
true
qemu
4871b51b9241b10f4fd8e04bbb21577886795e25
static void vmgenid_set_guid_test(void) { QemuUUID expected, measured; gchar *cmd; g_assert(qemu_uuid_parse(VGID_GUID, &expected) == 0); cmd = g_strdup_printf("-machine accel=tcg -device vmgenid,id=testvgid," "guid=%s", VGID_GUID); qtest_start(cmd); ...
{ "code": [ " cmd = g_strdup_printf(\"-machine accel=tcg -device vmgenid,id=testvgid,\"", " \"guid=%s\", VGID_GUID);", " cmd = g_strdup_printf(\"-machine accel=tcg -device vmgenid,id=testvgid,\"", " \"guid=%s\", VGID_GUID);" ], "line_no": [ ...
static void FUNC_0(void) { QemuUUID expected, measured; gchar *cmd; g_assert(qemu_uuid_parse(VGID_GUID, &expected) == 0); cmd = g_strdup_printf("-machine accel=tcg -device vmgenid,id=testvgid," "guid=%s", VGID_GUID); qtest_start(cmd); read_guid_from_...
[ "static void FUNC_0(void)\n{", "QemuUUID expected, measured;", "gchar *cmd;", "g_assert(qemu_uuid_parse(VGID_GUID, &expected) == 0);", "cmd = g_strdup_printf(\"-machine accel=tcg -device vmgenid,id=testvgid,\"\n\"guid=%s\", VGID_GUID);", "qtest_start(cmd);", "read_guid_from_memory(&measured);", "g_ass...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 15, 17 ], [ 19 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ] ]
5,498
static int rtp_write(URLContext *h, const uint8_t *buf, int size) { RTPContext *s = h->priv_data; int ret; URLContext *hd; if (RTP_PT_IS_RTCP(buf[1])) { /* RTCP payload type */ hd = s->rtcp_hd; } else { /* RTP payload type */ hd = s->rtp_hd; } ret = ffurl_writ...
true
FFmpeg
1851e1d05d06f6ef3436c667e4354da0f407b226
static int rtp_write(URLContext *h, const uint8_t *buf, int size) { RTPContext *s = h->priv_data; int ret; URLContext *hd; if (RTP_PT_IS_RTCP(buf[1])) { hd = s->rtcp_hd; } else { hd = s->rtp_hd; } ret = ffurl_write(hd, buf, size); return ret; }
{ "code": [], "line_no": [] }
static int FUNC_0(URLContext *VAR_0, const uint8_t *VAR_1, int VAR_2) { RTPContext *s = VAR_0->priv_data; int VAR_3; URLContext *hd; if (RTP_PT_IS_RTCP(VAR_1[1])) { hd = s->rtcp_hd; } else { hd = s->rtp_hd; } VAR_3 = ffurl_write(hd, VAR_1, VAR_2); return...
[ "static int FUNC_0(URLContext *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "RTPContext *s = VAR_0->priv_data;", "int VAR_3;", "URLContext *hd;", "if (RTP_PT_IS_RTCP(VAR_1[1])) {", "hd = s->rtcp_hd;", "} else {", "hd = s->rtp_hd;", "}", "VAR_3 = ffurl_write(hd, VAR_1, VAR_2);", "return VAR_3;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 8 ], [ 9 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ] ]
5,499
static unsigned int dec_addi_acr(DisasContext *dc) { TCGv t0; DIS(fprintf (logfile, "addi.%c $r%u, $r%u, $acr\n", memsize_char(memsize_zz(dc)), dc->op2, dc->op1)); cris_cc_mask(dc, 0); t0 = tcg_temp_new(TCG_TYPE_TL); tcg_gen_shl_tl(t0, cpu_R[dc->op2], tcg_const_tl(dc->zzsize)); tcg_gen_add_tl(cpu_R[R_...
true
qemu
f4b147f6701f6f5127b70b82f41757a52dfa4aae
static unsigned int dec_addi_acr(DisasContext *dc) { TCGv t0; DIS(fprintf (logfile, "addi.%c $r%u, $r%u, $acr\n", memsize_char(memsize_zz(dc)), dc->op2, dc->op1)); cris_cc_mask(dc, 0); t0 = tcg_temp_new(TCG_TYPE_TL); tcg_gen_shl_tl(t0, cpu_R[dc->op2], tcg_const_tl(dc->zzsize)); tcg_gen_add_tl(cpu_R[R_...
{ "code": [], "line_no": [] }
static unsigned int FUNC_0(DisasContext *VAR_0) { TCGv t0; DIS(fprintf (logfile, "addi.%c $r%u, $r%u, $acr\n", memsize_char(memsize_zz(VAR_0)), VAR_0->op2, VAR_0->op1)); cris_cc_mask(VAR_0, 0); t0 = tcg_temp_new(TCG_TYPE_TL); tcg_gen_shl_tl(t0, cpu_R[VAR_0->op2], tcg_const_tl(VAR_0->zzsize)); tcg_gen_...
[ "static unsigned int FUNC_0(DisasContext *VAR_0)\n{", "TCGv t0;", "DIS(fprintf (logfile, \"addi.%c $r%u, $r%u, $acr\\n\",\nmemsize_char(memsize_zz(VAR_0)), VAR_0->op2, VAR_0->op1));", "cris_cc_mask(VAR_0, 0);", "t0 = tcg_temp_new(TCG_TYPE_TL);", "tcg_gen_shl_tl(t0, cpu_R[VAR_0->op2], tcg_const_tl(VAR_0->z...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ] ]
5,501
int ff_insert_pad(unsigned idx, unsigned *count, size_t padidx_off, AVFilterPad **pads, AVFilterLink ***links, AVFilterPad *newpad) { AVFilterLink **newlinks; AVFilterPad *newpads; unsigned i; idx = FFMIN(idx, *count); newpads = av_realloc_array(*pa...
true
FFmpeg
ab2bfb85d49b2f8aa505816f93e75fd18ad0a361
int ff_insert_pad(unsigned idx, unsigned *count, size_t padidx_off, AVFilterPad **pads, AVFilterLink ***links, AVFilterPad *newpad) { AVFilterLink **newlinks; AVFilterPad *newpads; unsigned i; idx = FFMIN(idx, *count); newpads = av_realloc_array(*pa...
{ "code": [ " if (*links[i])", " (*(unsigned *)((uint8_t *) *links[i] + padidx_off))++;" ], "line_no": [ 53, 55 ] }
int FUNC_0(unsigned VAR_0, unsigned *VAR_1, size_t VAR_2, AVFilterPad **VAR_3, AVFilterLink ***VAR_4, AVFilterPad *VAR_5) { AVFilterLink **newlinks; AVFilterPad *newpads; unsigned VAR_6; VAR_0 = FFMIN(VAR_0, *VAR_1); newpads = av_realloc_array(*VAR_...
[ "int FUNC_0(unsigned VAR_0, unsigned *VAR_1, size_t VAR_2,\nAVFilterPad **VAR_3, AVFilterLink ***VAR_4,\nAVFilterPad *VAR_5)\n{", "AVFilterLink **newlinks;", "AVFilterPad *newpads;", "unsigned VAR_6;", "VAR_0 = FFMIN(VAR_0, *VAR_1);", "newpads = av_realloc_array(*VAR_3, *VAR_1 + 1, sizeof(AVFilterPad));...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29, 31 ], [ 33, 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 53, 55 ...
5,502
sbappend(struct socket *so, struct mbuf *m) { int ret = 0; DEBUG_CALL("sbappend"); DEBUG_ARG("so = %p", so); DEBUG_ARG("m = %p", m); DEBUG_ARG("m->m_len = %d", m->m_len); /* Shouldn't happen, but... e.g. foreign host closes connection */ if (m->m_len <= 0) { m_free(m); return; } /* * ...
true
qemu
75cb298d905030fca897ea1d80e409c7f7e3e5ea
sbappend(struct socket *so, struct mbuf *m) { int ret = 0; DEBUG_CALL("sbappend"); DEBUG_ARG("so = %p", so); DEBUG_ARG("m = %p", m); DEBUG_ARG("m->m_len = %d", m->m_len); if (m->m_len <= 0) { m_free(m); return; } if (so->so_urgc) { sbappendsb(&so->so_rcv, m); m_free(m); ...
{ "code": [ "\t\tsosendoob(so);", "\t\tsosendoob(so);" ], "line_no": [ 47, 47 ] }
FUNC_0(struct socket *VAR_0, struct mbuf *VAR_1) { int VAR_2 = 0; DEBUG_CALL("FUNC_0"); DEBUG_ARG("VAR_0 = %p", VAR_0); DEBUG_ARG("VAR_1 = %p", VAR_1); DEBUG_ARG("VAR_1->m_len = %d", VAR_1->m_len); if (VAR_1->m_len <= 0) { m_free(VAR_1); return; } if (VAR_0->so_urgc) { sbap...
[ "FUNC_0(struct socket *VAR_0, struct mbuf *VAR_1)\n{", "int VAR_2 = 0;", "DEBUG_CALL(\"FUNC_0\");", "DEBUG_ARG(\"VAR_0 = %p\", VAR_0);", "DEBUG_ARG(\"VAR_1 = %p\", VAR_1);", "DEBUG_ARG(\"VAR_1->m_len = %d\", VAR_1->m_len);", "if (VAR_1->m_len <= 0) {", "m_free(VAR_1);", "return;", "}", "if (VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 63, 65 ], [ 69 ], [ 83 ], ...
5,504
static int xan_decode_chroma(AVCodecContext *avctx, unsigned chroma_off) { XanContext *s = avctx->priv_data; uint8_t *U, *V; int val, uval, vval; int i, j; const uint8_t *src, *src_end; const uint8_t *table; int mode, offset, dec_size; if (!chroma_off) return 0; ...
true
FFmpeg
f77bfa837636a99a4034d31916a76f7d1688cf5a
static int xan_decode_chroma(AVCodecContext *avctx, unsigned chroma_off) { XanContext *s = avctx->priv_data; uint8_t *U, *V; int val, uval, vval; int i, j; const uint8_t *src, *src_end; const uint8_t *table; int mode, offset, dec_size; if (!chroma_off) return 0; ...
{ "code": [ " int mode, offset, dec_size;", " mode = bytestream2_get_le16(&s->gb);", " table = s->gb.buffer;", " offset = bytestream2_get_le16(&s->gb) * 2;", " if (val) {", " if (val) {" ], "line_no": [ 17, 35, 37, 39, 85, ...
static int FUNC_0(AVCodecContext *VAR_0, unsigned VAR_1) { XanContext *s = VAR_0->priv_data; uint8_t *U, *V; int VAR_2, VAR_3, VAR_4; int VAR_5, VAR_6; const uint8_t *VAR_7, *src_end; const uint8_t *VAR_8; int VAR_9, VAR_10, VAR_11; if (!VAR_1) return 0; if (VAR_...
[ "static int FUNC_0(AVCodecContext *VAR_0, unsigned VAR_1)\n{", "XanContext *s = VAR_0->priv_data;", "uint8_t *U, *V;", "int VAR_2, VAR_3, VAR_4;", "int VAR_5, VAR_6;", "const uint8_t *VAR_7, *src_end;", "const uint8_t *VAR_8;", "int VAR_9, VAR_10, VAR_11;", "if (!VAR_1)\nreturn 0;", "if (VAR_1 + 4...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [...
5,505
void filter_mb(VP8Context *s, uint8_t *dst[3], VP8FilterStrength *f, int mb_x, int mb_y) { int mbedge_lim, bedge_lim, hev_thresh; int filter_level = f->filter_level; int inner_limit = f->inner_limit; int inner_filter = f->inner_filter; int linesize = s->linesize; int uvlin...
true
FFmpeg
ac4b32df71bd932838043a4838b86d11e169707f
void filter_mb(VP8Context *s, uint8_t *dst[3], VP8FilterStrength *f, int mb_x, int mb_y) { int mbedge_lim, bedge_lim, hev_thresh; int filter_level = f->filter_level; int inner_limit = f->inner_limit; int inner_filter = f->inner_filter; int linesize = s->linesize; int uvlin...
{ "code": [ " int mb_x, int mb_y)", " int mbedge_lim, bedge_lim, hev_thresh;", " bedge_lim = 2 * filter_level + inner_limit;", " mbedge_lim = bedge_lim + 4;", " if (inner_filter) {", " s->vp8dsp.vp8_h_loop_filter16y_inner(dst[0] + 4, linesize, bedge_lim,", ...
void FUNC_0(VP8Context *VAR_0, uint8_t *VAR_1[3], VP8FilterStrength *VAR_2, int VAR_3, int VAR_4) { int VAR_5, VAR_6, VAR_7; int VAR_8 = VAR_2->VAR_8; int VAR_9 = VAR_2->VAR_9; int VAR_10 = VAR_2->VAR_10; int VAR_11 = VAR_0->VAR_11; int VAR_12 = VAR_0->VAR_12; static ...
[ "void FUNC_0(VP8Context *VAR_0, uint8_t *VAR_1[3], VP8FilterStrength *VAR_2,\nint VAR_3, int VAR_4)\n{", "int VAR_5, VAR_6, VAR_7;", "int VAR_8 = VAR_2->VAR_8;", "int VAR_9 = VAR_2->VAR_9;", "int VAR_10 = VAR_2->VAR_10;", "int VAR_11 = VAR_0->VAR_11;", "int VAR_12 = VAR_0->VAR_12;", "static const uint...
[ 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 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 ], [ 41, 43 ], [ 47 ], [ 49 ], [ 53 ...
5,506
static void migrate_check_parameter(QTestState *who, const char *parameter, const char *value) { QDict *rsp, *rsp_return; const char *result; rsp = wait_command(who, "{ 'execute': 'query-migrate-parameters' }"); rsp_return = qdict_get_qdict(rsp, "return"); ...
true
qemu
890241ab6942a0186eaf485dabf266a5a7aac428
static void migrate_check_parameter(QTestState *who, const char *parameter, const char *value) { QDict *rsp, *rsp_return; const char *result; rsp = wait_command(who, "{ 'execute': 'query-migrate-parameters' }"); rsp_return = qdict_get_qdict(rsp, "return"); ...
{ "code": [ " const char *result;" ], "line_no": [ 9 ] }
static void FUNC_0(QTestState *VAR_0, const char *VAR_1, const char *VAR_2) { QDict *rsp, *rsp_return; const char *VAR_3; rsp = wait_command(VAR_0, "{ 'execute': 'query-migrate-parameters' }"); rsp_return = qdict_get_qdict(rsp, "return"); VAR_3 = g_strdup...
[ "static void FUNC_0(QTestState *VAR_0, const char *VAR_1,\nconst char *VAR_2)\n{", "QDict *rsp, *rsp_return;", "const char *VAR_3;", "rsp = wait_command(VAR_0, \"{ 'execute': 'query-migrate-parameters' }\");", "rsp_return = qdict_get_qdict(rsp, \"return\");", "VAR_3 = g_strdup_printf(\"%\" PRId64,\nqdict_...
[ 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ] ]
5,507
int ff_h264_decode_extradata(H264Context *h, const uint8_t *buf, int size) { AVCodecContext *avctx = h->s.avctx; if (!buf || size <= 0) return -1; if (buf[0] == 1) { int i, cnt, nalsize; const unsigned char *p = buf; h->is_avc = 1; if (size < 7) { ...
true
FFmpeg
4fecc3cf0998927456a9f8d8334587dd64154ec5
int ff_h264_decode_extradata(H264Context *h, const uint8_t *buf, int size) { AVCodecContext *avctx = h->s.avctx; if (!buf || size <= 0) return -1; if (buf[0] == 1) { int i, cnt, nalsize; const unsigned char *p = buf; h->is_avc = 1; if (size < 7) { ...
{ "code": [ "int ff_h264_decode_extradata(H264Context *h, const uint8_t *buf, int size)" ], "line_no": [ 1 ] }
int FUNC_0(H264Context *VAR_0, const uint8_t *VAR_1, int VAR_2) { AVCodecContext *avctx = VAR_0->s.avctx; if (!VAR_1 || VAR_2 <= 0) return -1; if (VAR_1[0] == 1) { int VAR_3, VAR_4, VAR_5; const unsigned char *VAR_6 = VAR_1; VAR_0->is_avc = 1; if (VAR...
[ "int FUNC_0(H264Context *VAR_0, const uint8_t *VAR_1, int VAR_2)\n{", "AVCodecContext *avctx = VAR_0->s.avctx;", "if (!VAR_1 || VAR_2 <= 0)\nreturn -1;", "if (VAR_1[0] == 1) {", "int VAR_3, VAR_4, VAR_5;", "const unsigned char *VAR_6 = VAR_1;", "VAR_0->is_avc = 1;", "if (VAR_2 < 7) {", "av_log(avctx...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51, 53 ], [ 55 ], [ 57...
5,511
static void spr_write_hdecr(DisasContext *ctx, int sprn, int gprn) { if (ctx->tb->cflags & CF_USE_ICOUNT) { gen_io_start(); } gen_helper_store_hdecr(cpu_env, cpu_gpr[gprn]); if (ctx->tb->cflags & CF_USE_ICOUNT) { gen_io_end(); gen_stop_exception(ctx); } }
true
qemu
c5a49c63fa26e8825ad101dfe86339ae4c216539
static void spr_write_hdecr(DisasContext *ctx, int sprn, int gprn) { if (ctx->tb->cflags & CF_USE_ICOUNT) { gen_io_start(); } gen_helper_store_hdecr(cpu_env, cpu_gpr[gprn]); if (ctx->tb->cflags & CF_USE_ICOUNT) { gen_io_end(); gen_stop_exception(ctx); } }
{ "code": [ " if (ctx->tb->cflags & CF_USE_ICOUNT) {", " if (ctx->tb->cflags & CF_USE_ICOUNT) {", " if (ctx->tb->cflags & CF_USE_ICOUNT) {", " if (ctx->tb->cflags & CF_USE_ICOUNT) {", " if (ctx->tb->cflags & CF_USE_ICOUNT) {", " if (ctx->tb->cflags & CF_USE_ICOUNT) {", " ...
static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2) { if (VAR_0->tb->cflags & CF_USE_ICOUNT) { gen_io_start(); } gen_helper_store_hdecr(cpu_env, cpu_gpr[VAR_2]); if (VAR_0->tb->cflags & CF_USE_ICOUNT) { gen_io_end(); gen_stop_exception(VAR_0); } }
[ "static void FUNC_0(DisasContext *VAR_0, int VAR_1, int VAR_2)\n{", "if (VAR_0->tb->cflags & CF_USE_ICOUNT) {", "gen_io_start();", "}", "gen_helper_store_hdecr(cpu_env, cpu_gpr[VAR_2]);", "if (VAR_0->tb->cflags & CF_USE_ICOUNT) {", "gen_io_end();", "gen_stop_exception(VAR_0);", "}", "}" ]
[ 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
5,512
static int ioreq_parse(struct ioreq *ioreq) { struct XenBlkDev *blkdev = ioreq->blkdev; uintptr_t mem; size_t len; int i; xen_be_printf(&blkdev->xendev, 3, "op %d, nr %d, handle %d, id %" PRId64 ", sector %" PRId64 "\n", ioreq->req.operation, ioreq->req.nr_segments, ioreq->req...
true
qemu
908c7b9f788b6faed2fbfdf19920770614f8e853
static int ioreq_parse(struct ioreq *ioreq) { struct XenBlkDev *blkdev = ioreq->blkdev; uintptr_t mem; size_t len; int i; xen_be_printf(&blkdev->xendev, 3, "op %d, nr %d, handle %d, id %" PRId64 ", sector %" PRId64 "\n", ioreq->req.operation, ioreq->req.nr_segments, ioreq->req...
{ "code": [ " if (ioreq->req.operation != BLKIF_OP_READ && blkdev->mode[0] != 'w') {", "\t xen_be_printf(&blkdev->xendev, 0, \"error: write req for ro device\\n\");", "\t goto err;" ], "line_no": [ 29, 31, 33 ] }
static int FUNC_0(struct VAR_0 *VAR_0) { struct XenBlkDev *VAR_1 = VAR_0->VAR_1; uintptr_t mem; size_t len; int VAR_2; xen_be_printf(&VAR_1->xendev, 3, "op %d, nr %d, handle %d, id %" PRId64 ", sector %" PRId64 "\n", VAR_0->req.operation, VAR_0->req.nr_segments, VAR_0->req.han...
[ "static int FUNC_0(struct VAR_0 *VAR_0)\n{", "struct XenBlkDev *VAR_1 = VAR_0->VAR_1;", "uintptr_t mem;", "size_t len;", "int VAR_2;", "xen_be_printf(&VAR_1->xendev, 3,\n\"op %d, nr %d, handle %d, id %\" PRId64 \", sector %\" PRId64 \"\\n\",\nVAR_0->req.operation, VAR_0->req.nr_segments,\nVAR_0->req.handl...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17, 19, 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41, 43 ], [ 47, 49 ], [ 51, 53 ...
5,513
static void test_qemu_strtoul_full_empty(void) { const char *str = ""; unsigned long res = 999; int err; err = qemu_strtoul(str, NULL, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, 0); }
true
qemu
47d4be12c3997343e436c6cca89aefbbbeb70863
static void test_qemu_strtoul_full_empty(void) { const char *str = ""; unsigned long res = 999; int err; err = qemu_strtoul(str, NULL, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, 0); }
{ "code": [ " g_assert_cmpint(err, ==, 0);", " g_assert_cmpint(res, ==, 0);", " g_assert_cmpint(err, ==, 0);", " g_assert_cmpint(res, ==, 0);", " g_assert_cmpint(err, ==, 0);", " g_assert_cmpint(res, ==, 0);", " g_assert_cmpint(err, ==, 0);", " g_assert_cmpint(r...
static void FUNC_0(void) { const char *VAR_0 = ""; unsigned long VAR_1 = 999; int VAR_2; VAR_2 = qemu_strtoul(VAR_0, NULL, 0, &VAR_1); g_assert_cmpint(VAR_2, ==, 0); g_assert_cmpint(VAR_1, ==, 0); }
[ "static void FUNC_0(void)\n{", "const char *VAR_0 = \"\";", "unsigned long VAR_1 = 999;", "int VAR_2;", "VAR_2 = qemu_strtoul(VAR_0, NULL, 0, &VAR_1);", "g_assert_cmpint(VAR_2, ==, 0);", "g_assert_cmpint(VAR_1, ==, 0);", "}" ]
[ 0, 0, 0, 0, 0, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ] ]
5,514
static void xen_sysdev_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); k->init = xen_sysdev_init; dc->props = xen_sysdev_properties; dc->bus_type = TYPE_XENSYSBUS; }
true
qemu
e4f4fb1eca795e36f363b4647724221e774523c1
static void xen_sysdev_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); k->init = xen_sysdev_init; dc->props = xen_sysdev_properties; dc->bus_type = TYPE_XENSYSBUS; }
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dc = DEVICE_CLASS(VAR_0); SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(VAR_0); k->init = xen_sysdev_init; dc->props = xen_sysdev_properties; dc->bus_type = TYPE_XENSYSBUS; }
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(VAR_0);", "k->init = xen_sysdev_init;", "dc->props = xen_sysdev_properties;", "dc->bus_type = TYPE_XENSYSBUS;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 22 ] ]
5,515
static int vqf_read_header(AVFormatContext *s) { VqfContext *c = s->priv_data; AVStream *st = avformat_new_stream(s, NULL); int chunk_tag; int rate_flag = -1; int header_size; int read_bitrate = 0; int size; uint8_t comm_chunk[12]; if (!st) return AVERROR(ENOMEM...
true
FFmpeg
e481ba2ed79421d82ed631d187c05c03260c6561
static int vqf_read_header(AVFormatContext *s) { VqfContext *c = s->priv_data; AVStream *st = avformat_new_stream(s, NULL); int chunk_tag; int rate_flag = -1; int header_size; int read_bitrate = 0; int size; uint8_t comm_chunk[12]; if (!st) return AVERROR(ENOMEM...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { VqfContext *c = VAR_0->priv_data; AVStream *st = avformat_new_stream(VAR_0, NULL); int VAR_1; int VAR_2 = -1; int VAR_3; int VAR_4 = 0; int VAR_5; uint8_t comm_chunk[12]; if (!st) return AVERROR(ENOMEM); avio_sk...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "VqfContext *c = VAR_0->priv_data;", "AVStream *st = avformat_new_stream(VAR_0, NULL);", "int VAR_1;", "int VAR_2 = -1;", "int VAR_3;", "int VAR_4 = 0;", "int VAR_5;", "uint8_t comm_chunk[12];", "if (!st)\nreturn AVERROR(ENOMEM);", "avio_skip(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 ], [ 23, 25 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 53, 55 ...
5,516
int qemu_sendv(int sockfd, struct iovec *iov, int len, int iov_offset) { return do_sendv_recvv(sockfd, iov, len, iov_offset, 1); }
true
qemu
3e80bf9351f8fec9085c46df6da075efd5e71003
int qemu_sendv(int sockfd, struct iovec *iov, int len, int iov_offset) { return do_sendv_recvv(sockfd, iov, len, iov_offset, 1); }
{ "code": [ "int qemu_sendv(int sockfd, struct iovec *iov, int len, int iov_offset)", " return do_sendv_recvv(sockfd, iov, len, iov_offset, 1);" ], "line_no": [ 1, 5 ] }
int FUNC_0(int VAR_0, struct iovec *VAR_1, int VAR_2, int VAR_3) { return do_sendv_recvv(VAR_0, VAR_1, VAR_2, VAR_3, 1); }
[ "int FUNC_0(int VAR_0, struct iovec *VAR_1, int VAR_2, int VAR_3)\n{", "return do_sendv_recvv(VAR_0, VAR_1, VAR_2, VAR_3, 1);", "}" ]
[ 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
5,518
static int gdb_handle_vcont(GDBState *s, const char *p) { int res, idx, signal = 0; char cur_action; char *newstates; unsigned long tmp; CPUState *cpu; #ifdef CONFIG_USER_ONLY int max_cpus = 1; /* global variable max_cpus exists only in system mode */ CPU_FOREACH(cpu) { m...
true
qemu
95a5befc2f8b359e72926f89cd661d063c2cf06c
static int gdb_handle_vcont(GDBState *s, const char *p) { int res, idx, signal = 0; char cur_action; char *newstates; unsigned long tmp; CPUState *cpu; #ifdef CONFIG_USER_ONLY int max_cpus = 1; CPU_FOREACH(cpu) { max_cpus = max_cpus <= cpu->cpu_index ? cpu->cpu_index + 1...
{ "code": [ " cur_action = tolower(cur_action);" ], "line_no": [ 75 ] }
static int FUNC_0(GDBState *VAR_0, const char *VAR_1) { int VAR_2, VAR_3, VAR_4 = 0; char VAR_5; char *VAR_6; unsigned long VAR_7; CPUState *cpu; #ifdef CONFIG_USER_ONLY int max_cpus = 1; CPU_FOREACH(cpu) { max_cpus = max_cpus <= cpu->cpu_index ? cpu->cpu_index + 1 : max...
[ "static int FUNC_0(GDBState *VAR_0, const char *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4 = 0;", "char VAR_5;", "char *VAR_6;", "unsigned long VAR_7;", "CPUState *cpu;", "#ifdef CONFIG_USER_ONLY\nint max_cpus = 1;", "CPU_FOREACH(cpu) {", "max_cpus = max_cpus <= cpu->cpu_index ? cpu->cpu_index + 1 : max_c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 31 ], [ 37 ], [ 39 ], [ 41 ], [ 57 ], [ 59 ], [ 61 ], [ 63 ], [ 65 ...
5,519
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost) { AVFormatContext *s = of->ctx; AVStream *st = ost->st; int ret; if (!of->header_written) { AVPacket tmp_pkt; /* the muxer is not initialized yet, buffer the packet */ if (!av_fifo_space(ost->mux...
true
FFmpeg
33580a8625c77591919b6155a48da04dccc8d398
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost) { AVFormatContext *s = of->ctx; AVStream *st = ost->st; int ret; if (!of->header_written) { AVPacket tmp_pkt; if (!av_fifo_space(ost->muxing_queue)) { int new_size = FFMIN(2 * av_fi...
{ "code": [ " AVPacket tmp_pkt;", " av_packet_move_ref(&tmp_pkt, pkt);" ], "line_no": [ 15, 45 ] }
static void FUNC_0(OutputFile *VAR_0, AVPacket *VAR_1, OutputStream *VAR_2) { AVFormatContext *s = VAR_0->ctx; AVStream *st = VAR_2->st; int VAR_3; if (!VAR_0->header_written) { AVPacket tmp_pkt; if (!av_fifo_space(VAR_2->muxing_queue)) { int VAR_4 = FFMIN...
[ "static void FUNC_0(OutputFile *VAR_0, AVPacket *VAR_1, OutputStream *VAR_2)\n{", "AVFormatContext *s = VAR_0->ctx;", "AVStream *st = VAR_2->st;", "int VAR_3;", "if (!VAR_0->header_written) {", "AVPacket tmp_pkt;", "if (!av_fifo_space(VAR_2->muxing_queue)) {", "int VAR_4 = FFMIN(2 * av_fifo_size(VAR_2...
[ 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29, 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
5,520
void bdrv_commit_all(void) { BlockDriverState *bs; QTAILQ_FOREACH(bs, &bdrv_states, list) { bdrv_commit(bs); } }
true
qemu
e88774971c33671477c9eb4a4cf1e65a047c9838
void bdrv_commit_all(void) { BlockDriverState *bs; QTAILQ_FOREACH(bs, &bdrv_states, list) { bdrv_commit(bs); } }
{ "code": [ "void bdrv_commit_all(void)", " bdrv_commit(bs);" ], "line_no": [ 1, 11 ] }
void FUNC_0(void) { BlockDriverState *bs; QTAILQ_FOREACH(bs, &bdrv_states, list) { bdrv_commit(bs); } }
[ "void FUNC_0(void)\n{", "BlockDriverState *bs;", "QTAILQ_FOREACH(bs, &bdrv_states, list) {", "bdrv_commit(bs);", "}", "}" ]
[ 1, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ] ]
5,522
static int event_qdev_exit(DeviceState *qdev) { SCLPEvent *event = DO_UPCAST(SCLPEvent, qdev, qdev); SCLPEventClass *child = SCLP_EVENT_GET_CLASS(event); if (child->exit) { child->exit(event); } return 0; }
true
qemu
c804c2a71752dd1e150cde768d8c54b02fa8bad9
static int event_qdev_exit(DeviceState *qdev) { SCLPEvent *event = DO_UPCAST(SCLPEvent, qdev, qdev); SCLPEventClass *child = SCLP_EVENT_GET_CLASS(event); if (child->exit) { child->exit(event); } return 0; }
{ "code": [ " SCLPEvent *event = DO_UPCAST(SCLPEvent, qdev, qdev);", "static int event_qdev_exit(DeviceState *qdev)", " SCLPEvent *event = DO_UPCAST(SCLPEvent, qdev, qdev);", " child->exit(event);", " return 0;" ], "line_no": [ 5, 1, 5, 11, 15 ] }
static int FUNC_0(DeviceState *VAR_0) { SCLPEvent *event = DO_UPCAST(SCLPEvent, VAR_0, VAR_0); SCLPEventClass *child = SCLP_EVENT_GET_CLASS(event); if (child->exit) { child->exit(event); } return 0; }
[ "static int FUNC_0(DeviceState *VAR_0)\n{", "SCLPEvent *event = DO_UPCAST(SCLPEvent, VAR_0, VAR_0);", "SCLPEventClass *child = SCLP_EVENT_GET_CLASS(event);", "if (child->exit) {", "child->exit(event);", "}", "return 0;", "}" ]
[ 1, 1, 0, 0, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
5,524
static av_cold int amr_wb_encode_init(AVCodecContext *avctx) { AMRWBContext *s = avctx->priv_data; if (avctx->sample_rate != 16000) { av_log(avctx, AV_LOG_ERROR, "Only 16000Hz sample rate supported\n"); return AVERROR(ENOSYS); } if (avctx->channels != 1) { av_log(avct...
false
FFmpeg
2df0c32ea12ddfa72ba88309812bfb13b674130f
static av_cold int amr_wb_encode_init(AVCodecContext *avctx) { AMRWBContext *s = avctx->priv_data; if (avctx->sample_rate != 16000) { av_log(avctx, AV_LOG_ERROR, "Only 16000Hz sample rate supported\n"); return AVERROR(ENOSYS); } if (avctx->channels != 1) { av_log(avct...
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { AMRWBContext *s = avctx->priv_data; if (avctx->sample_rate != 16000) { av_log(avctx, AV_LOG_ERROR, "Only 16000Hz sample rate supported\n"); return AVERROR(ENOSYS); } if (avctx->channels != 1) { av_log(avctx, AV_LOG_ER...
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "AMRWBContext *s = avctx->priv_data;", "if (avctx->sample_rate != 16000) {", "av_log(avctx, AV_LOG_ERROR, \"Only 16000Hz sample rate supported\\n\");", "return AVERROR(ENOSYS);", "}", "if (avctx->channels != 1) {", "av_log(avctx, AV_LOG_ERROR, \"O...
[ 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 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 41 ], [ 45 ], [ 47 ] ]
5,525
static void filter_mb_fast( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize) { MpegEncContext * const s = &h->s; int mb_y_firstrow = s->picture_structure == PICT_BOTTOM_FIELD; int mb_xy, mb_type; int qp, qp0, qp1, q...
false
FFmpeg
082cf97106e2e94a969877d4f8c05c1e526acf54
static void filter_mb_fast( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize) { MpegEncContext * const s = &h->s; int mb_y_firstrow = s->picture_structure == PICT_BOTTOM_FIELD; int mb_xy, mb_type; int qp, qp0, qp1, q...
{ "code": [], "line_no": [] }
static void FUNC_0( H264Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3, uint8_t *VAR_4, uint8_t *VAR_5, unsigned int VAR_6, unsigned int VAR_7) { MpegEncContext * const s = &VAR_0->s; int VAR_8 = s->picture_structure == PICT_BOTTOM_FIELD; int VAR_9, VAR_10; int VAR_11, VAR_12, VAR_13, VAR_14, ...
[ "static void FUNC_0( H264Context *VAR_0, int VAR_1, int VAR_2, uint8_t *VAR_3, uint8_t *VAR_4, uint8_t *VAR_5, unsigned int VAR_6, unsigned int VAR_7) {", "MpegEncContext * const s = &VAR_0->s;", "int VAR_8 = s->picture_structure == PICT_BOTTOM_FIELD;", "int VAR_9, VAR_10;", "int VAR_11, VAR_12, VAR_13, 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 ], [ 13 ], [ 17, 19, 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ...
5,527
static int read_ffserver_streams(OptionsContext *o, AVFormatContext *s, const char *filename) { int i, err; AVFormatContext *ic = avformat_alloc_context(); ic->interrupt_callback = int_cb; err = avformat_open_input(&ic, filename, NULL, NULL); if (err < 0) return err; /* copy ...
true
FFmpeg
2ba6d7cb8278970bb9971448706c1e44ba043a81
static int read_ffserver_streams(OptionsContext *o, AVFormatContext *s, const char *filename) { int i, err; AVFormatContext *ic = avformat_alloc_context(); ic->interrupt_callback = int_cb; err = avformat_open_input(&ic, filename, NULL, NULL); if (err < 0) return err; fo...
{ "code": [], "line_no": [] }
static int FUNC_0(OptionsContext *VAR_0, AVFormatContext *VAR_1, const char *VAR_2) { int VAR_3, VAR_4; AVFormatContext *ic = avformat_alloc_context(); ic->interrupt_callback = int_cb; VAR_4 = avformat_open_input(&ic, VAR_2, NULL, NULL); if (VAR_4 < 0) return VAR_4; for...
[ "static int FUNC_0(OptionsContext *VAR_0, AVFormatContext *VAR_1, const char *VAR_2)\n{", "int VAR_3, VAR_4;", "AVFormatContext *ic = avformat_alloc_context();", "ic->interrupt_callback = int_cb;", "VAR_4 = avformat_open_input(&ic, VAR_2, NULL, NULL);", "if (VAR_4 < 0)\nreturn VAR_4;", "for(VAR_3=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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49, 51 ], ...
5,528
VirtIODevice *virtio_balloon_init(DeviceState *dev) { VirtIOBalloon *s; s = (VirtIOBalloon *)virtio_common_init("virtio-balloon", VIRTIO_ID_BALLOON, 8, sizeof(VirtIOBalloon)); s->vdev.get_config = virtio_balloo...
true
qemu
30fb2ca603e8b8d0f02630ef18bc0d0637a88ffa
VirtIODevice *virtio_balloon_init(DeviceState *dev) { VirtIOBalloon *s; s = (VirtIOBalloon *)virtio_common_init("virtio-balloon", VIRTIO_ID_BALLOON, 8, sizeof(VirtIOBalloon)); s->vdev.get_config = virtio_balloo...
{ "code": [ " qemu_add_balloon_handler(virtio_balloon_to_target, s);" ], "line_no": [ 35 ] }
VirtIODevice *FUNC_0(DeviceState *dev) { VirtIOBalloon *s; s = (VirtIOBalloon *)virtio_common_init("virtio-balloon", VIRTIO_ID_BALLOON, 8, sizeof(VirtIOBalloon)); s->vdev.get_config = virtio_balloon_get_config;...
[ "VirtIODevice *FUNC_0(DeviceState *dev)\n{", "VirtIOBalloon *s;", "s = (VirtIOBalloon *)virtio_common_init(\"virtio-balloon\",\nVIRTIO_ID_BALLOON,\n8, sizeof(VirtIOBalloon));", "s->vdev.get_config = virtio_balloon_get_config;", "s->vdev.set_config = virtio_balloon_set_config;", "s->vdev.get_features = vir...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13 ], [ 17 ], [ 19 ], [ 21 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 45 ], [ 47 ] ]
5,530
static int decode_audio(InputStream *ist, AVPacket *pkt, int *got_output) { AVFrame *decoded_frame, *f; AVCodecContext *avctx = ist->dec_ctx; int i, ret, err = 0; if (!ist->decoded_frame && !(ist->decoded_frame = av_frame_alloc())) return AVERROR(ENOMEM); if (!ist->filter_frame && !...
true
FFmpeg
27085d1b47c3741cc0fac284c916127c4066d049
static int decode_audio(InputStream *ist, AVPacket *pkt, int *got_output) { AVFrame *decoded_frame, *f; AVCodecContext *avctx = ist->dec_ctx; int i, ret, err = 0; if (!ist->decoded_frame && !(ist->decoded_frame = av_frame_alloc())) return AVERROR(ENOMEM); if (!ist->filter_frame && !...
{ "code": [ "static int decode_audio(InputStream *ist, AVPacket *pkt, int *got_output)" ], "line_no": [ 1 ] }
static int FUNC_0(InputStream *VAR_0, AVPacket *VAR_1, int *VAR_2) { AVFrame *decoded_frame, *f; AVCodecContext *avctx = VAR_0->dec_ctx; int VAR_3, VAR_4, VAR_5 = 0; if (!VAR_0->decoded_frame && !(VAR_0->decoded_frame = av_frame_alloc())) return AVERROR(ENOMEM); if (!VAR_0->filter_f...
[ "static int FUNC_0(InputStream *VAR_0, AVPacket *VAR_1, int *VAR_2)\n{", "AVFrame *decoded_frame, *f;", "AVCodecContext *avctx = VAR_0->dec_ctx;", "int VAR_3, VAR_4, VAR_5 = 0;", "if (!VAR_0->decoded_frame && !(VAR_0->decoded_frame = av_frame_alloc()))\nreturn AVERROR(ENOMEM);", "if (!VAR_0->filter_frame ...
[ 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 ], [ 9 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 25 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 43, 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55, 57, 59, 61 ], [...
5,531
static void test_port(int port) { struct qhc uhci; g_assert(port > 0); qusb_pci_init_one(qs->pcibus, &uhci, QPCI_DEVFN(0x1d, 0), 4); uhci_port_test(&uhci, port - 1, UHCI_PORT_CCS); }
true
qemu
62030ed135e4cfb960cb626510cbb3ea77bb9ef9
static void test_port(int port) { struct qhc uhci; g_assert(port > 0); qusb_pci_init_one(qs->pcibus, &uhci, QPCI_DEVFN(0x1d, 0), 4); uhci_port_test(&uhci, port - 1, UHCI_PORT_CCS); }
{ "code": [], "line_no": [] }
static void FUNC_0(int VAR_0) { struct qhc VAR_1; g_assert(VAR_0 > 0); qusb_pci_init_one(qs->pcibus, &VAR_1, QPCI_DEVFN(0x1d, 0), 4); uhci_port_test(&VAR_1, VAR_0 - 1, UHCI_PORT_CCS); }
[ "static void FUNC_0(int VAR_0)\n{", "struct qhc VAR_1;", "g_assert(VAR_0 > 0);", "qusb_pci_init_one(qs->pcibus, &VAR_1, QPCI_DEVFN(0x1d, 0), 4);", "uhci_port_test(&VAR_1, VAR_0 - 1, UHCI_PORT_CCS);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 16 ] ]
5,532
rgb16_32ToUV_c_template(uint8_t *dstU, uint8_t *dstV, const uint8_t *src, int width, enum PixelFormat origin, int shr, int shg, int shb, int shp, int maskr, int maskg, int maskb, int rsh, i...
true
FFmpeg
4391805916a1557278351f25428d0145b1073520
rgb16_32ToUV_c_template(uint8_t *dstU, uint8_t *dstV, const uint8_t *src, int width, enum PixelFormat origin, int shr, int shg, int shb, int shp, int maskr, int maskg, int maskb, int rsh, i...
{ "code": [ " rv = RV << rsh, gv = GV << gsh, bv = BV << bsh,", " rnd = 257 << (S - 1);" ], "line_no": [ 17, 19 ] }
FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1, const uint8_t *VAR_2, int VAR_3, enum PixelFormat VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8, int VAR_9, int VAR_10, int VAR_11, int VAR_12, in...
[ "FUNC_0(uint8_t *VAR_0, uint8_t *VAR_1,\nconst uint8_t *VAR_2, int VAR_3,\nenum PixelFormat VAR_4,\nint VAR_5, int VAR_6, int VAR_7, int VAR_8,\nint VAR_9, int VAR_10, int VAR_11,\nint VAR_12, int VAR_13, int VAR_14, int VAR_15)\n{", "const int VAR_16 = RU << VAR_12, VAR_17 = GU << VAR_13, VAR_18 = BU << ...
[ 0, 1, 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 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ] ]
5,533
void hmp_block_set_io_throttle(Monitor *mon, const QDict *qdict) { Error *err = NULL; qmp_block_set_io_throttle(qdict_get_str(qdict, "device"), qdict_get_int(qdict, "bps"), qdict_get_int(qdict, "bps_rd"), qdict_get...
true
qemu
3e9fab690d59ac15956c3733fe0794ce1ae4c4af
void hmp_block_set_io_throttle(Monitor *mon, const QDict *qdict) { Error *err = NULL; qmp_block_set_io_throttle(qdict_get_str(qdict, "device"), qdict_get_int(qdict, "bps"), qdict_get_int(qdict, "bps_rd"), qdict_get...
{ "code": [ " qdict_get_int(qdict, \"iops_wr\"), &err);" ], "line_no": [ 21 ] }
void FUNC_0(Monitor *VAR_0, const QDict *VAR_1) { Error *err = NULL; qmp_block_set_io_throttle(qdict_get_str(VAR_1, "device"), qdict_get_int(VAR_1, "bps"), qdict_get_int(VAR_1, "bps_rd"), qdict_get_int(VAR_1, "bps_...
[ "void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)\n{", "Error *err = NULL;", "qmp_block_set_io_throttle(qdict_get_str(VAR_1, \"device\"),\nqdict_get_int(VAR_1, \"bps\"),\nqdict_get_int(VAR_1, \"bps_rd\"),\nqdict_get_int(VAR_1, \"bps_wr\"),\nqdict_get_int(VAR_1, \"iops\"),\nqdict_get_int(VAR_1, \"iops_rd\"),\nqdi...
[ 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13, 15, 17, 19, 21 ], [ 23 ], [ 25 ] ]
5,534
void qemu_system_shutdown_request(void) { trace_qemu_system_shutdown_request(); replay_shutdown_request(); shutdown_requested = 1; qemu_notify_event(); }
true
qemu
aedbe19297907143f17b733a7ff0e0534377bed1
void qemu_system_shutdown_request(void) { trace_qemu_system_shutdown_request(); replay_shutdown_request(); shutdown_requested = 1; qemu_notify_event(); }
{ "code": [ " shutdown_requested = 1;", " shutdown_requested = 1;" ], "line_no": [ 9, 9 ] }
void FUNC_0(void) { trace_qemu_system_shutdown_request(); replay_shutdown_request(); shutdown_requested = 1; qemu_notify_event(); }
[ "void FUNC_0(void)\n{", "trace_qemu_system_shutdown_request();", "replay_shutdown_request();", "shutdown_requested = 1;", "qemu_notify_event();", "}" ]
[ 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
5,535
size_t mptsas_config_ioc_0(MPTSASState *s, uint8_t **data, int address) { PCIDeviceClass *pcic = PCI_DEVICE_GET_CLASS(s); return MPTSAS_CONFIG_PACK(0, MPI_CONFIG_PAGETYPE_IOC, 0x01, "*l*lwwb*b*b*blww", pcic->vendor_id, pcic->device_id, pcic->rev...
true
qemu
65a8e1f6413a0f6f79894da710b5d6d43361d27d
size_t mptsas_config_ioc_0(MPTSASState *s, uint8_t **data, int address) { PCIDeviceClass *pcic = PCI_DEVICE_GET_CLASS(s); return MPTSAS_CONFIG_PACK(0, MPI_CONFIG_PAGETYPE_IOC, 0x01, "*l*lwwb*b*b*blww", pcic->vendor_id, pcic->device_id, pcic->rev...
{ "code": [ " pcic->subsystem_vendor_id," ], "line_no": [ 15 ] }
size_t FUNC_0(MPTSASState *s, uint8_t **data, int address) { PCIDeviceClass *pcic = PCI_DEVICE_GET_CLASS(s); return MPTSAS_CONFIG_PACK(0, MPI_CONFIG_PAGETYPE_IOC, 0x01, "*l*lwwb*b*b*blww", pcic->vendor_id, pcic->device_id, pcic->revision, ...
[ "size_t FUNC_0(MPTSASState *s, uint8_t **data, int address)\n{", "PCIDeviceClass *pcic = PCI_DEVICE_GET_CLASS(s);", "return MPTSAS_CONFIG_PACK(0, MPI_CONFIG_PAGETYPE_IOC, 0x01,\n\"*l*lwwb*b*b*blww\",\npcic->vendor_id, pcic->device_id, pcic->revision,\npcic->subsystem_vendor_id,\npcic->subsystem_id);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13, 15, 17 ], [ 19 ] ]
5,536
static uint32_t sh_serial_ioport_read(void *opaque, uint32_t offs) { sh_serial_state *s = opaque; uint32_t ret = ~0; #if 0 switch(offs) { case 0x00: ret = s->smr; break; case 0x04: ret = s->brr; break; case 0x08: ret = s->scr; break; ...
true
qemu
d1f193b0edb919ab109f88c53469ec9073f2e142
static uint32_t sh_serial_ioport_read(void *opaque, uint32_t offs) { sh_serial_state *s = opaque; uint32_t ret = ~0; #if 0 switch(offs) { case 0x00: ret = s->smr; break; case 0x04: ret = s->brr; break; case 0x08: ret = s->scr; break; ...
{ "code": [ "#if 0", " ret = s->sptr;", " break;", "#endif", "#if 0", "#endif" ], "line_no": [ 11, 131, 51, 41, 11, 41 ] }
static uint32_t FUNC_0(void *opaque, uint32_t offs) { sh_serial_state *s = opaque; uint32_t ret = ~0; #if 0 switch(offs) { case 0x00: ret = s->smr; break; case 0x04: ret = s->brr; break; case 0x08: ret = s->scr; break; case 0x14: ...
[ "static uint32_t FUNC_0(void *opaque, uint32_t offs)\n{", "sh_serial_state *s = opaque;", "uint32_t ret = ~0;", "#if 0\nswitch(offs) {", "case 0x00:\nret = s->smr;", "break;", "case 0x04:\nret = s->brr;", "break;", "case 0x08:\nret = s->scr;", "break;", "case 0x14:\nret = 0;", "break;", "}",...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47, 49 ], ...
5,537
void ide_dma_cb(void *opaque, int ret) { IDEState *s = opaque; int n; int64_t sector_num; bool stay_active = false; if (ret < 0) { int op = BM_STATUS_DMA_RETRY; if (s->dma_cmd == IDE_DMA_READ) op |= BM_STATUS_RETRY_READ; else if (s->dma_cmd == IDE_DM...
true
qemu
038268e2e8087ee2fd8987a77ba580e15f14c147
void ide_dma_cb(void *opaque, int ret) { IDEState *s = opaque; int n; int64_t sector_num; bool stay_active = false; if (ret < 0) { int op = BM_STATUS_DMA_RETRY; if (s->dma_cmd == IDE_DMA_READ) op |= BM_STATUS_RETRY_READ; else if (s->dma_cmd == IDE_DM...
{ "code": [], "line_no": [] }
void FUNC_0(void *VAR_0, int VAR_1) { IDEState *s = VAR_0; int VAR_2; int64_t sector_num; bool stay_active = false; if (VAR_1 < 0) { int VAR_3 = BM_STATUS_DMA_RETRY; if (s->dma_cmd == IDE_DMA_READ) VAR_3 |= BM_STATUS_RETRY_READ; else if (s->dma_cmd =...
[ "void FUNC_0(void *VAR_0, int VAR_1)\n{", "IDEState *s = VAR_0;", "int VAR_2;", "int64_t sector_num;", "bool stay_active = false;", "if (VAR_1 < 0) {", "int VAR_3 = BM_STATUS_DMA_RETRY;", "if (s->dma_cmd == IDE_DMA_READ)\nVAR_3 |= BM_STATUS_RETRY_READ;", "else if (s->dma_cmd == IDE_DMA_TRIM)\nVAR_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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21, 23 ], [ 25, 27 ], [ 31 ], [ 33 ], [ 39 ], [ 41 ], [ 49 ], [ 51 ], [ 56 ], [ 58 ], [ 60 ], [ 62 ...
5,538
static void icp_realize(DeviceState *dev, Error **errp) { ICPState *icp = ICP(dev); ICPStateClass *icpc = ICP_GET_CLASS(dev); PowerPCCPU *cpu; CPUPPCState *env; Object *obj; Error *err = NULL; obj = object_property_get_link(OBJECT(dev), ICP_PROP_XICS, &err); if (!obj) { ...
true
qemu
a1a6bbde4f6a29368f8f605cea2e73630ec1bc7c
static void icp_realize(DeviceState *dev, Error **errp) { ICPState *icp = ICP(dev); ICPStateClass *icpc = ICP_GET_CLASS(dev); PowerPCCPU *cpu; CPUPPCState *env; Object *obj; Error *err = NULL; obj = object_property_get_link(OBJECT(dev), ICP_PROP_XICS, &err); if (!obj) { ...
{ "code": [ " error_setg(errp, \"%s: required link '\" ICP_PROP_XICS \"' not found: %s\",", " __func__, error_get_pretty(err));", " error_setg(errp, \"%s: required link '\" ICP_PROP_CPU \"' not found: %s\",", " __func__, error_get_pretty(err));", "...
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { ICPState *icp = ICP(VAR_0); ICPStateClass *icpc = ICP_GET_CLASS(VAR_0); PowerPCCPU *cpu; CPUPPCState *env; Object *obj; Error *err = NULL; obj = object_property_get_link(OBJECT(VAR_0), ICP_PROP_XICS, &err); if (!obj) { ...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "ICPState *icp = ICP(VAR_0);", "ICPStateClass *icpc = ICP_GET_CLASS(VAR_0);", "PowerPCCPU *cpu;", "CPUPPCState *env;", "Object *obj;", "Error *err = NULL;", "obj = object_property_get_link(OBJECT(VAR_0), ICP_PROP_XICS, &err);", "if (!obj) {...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 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 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51 ...
5,540
static inline void gen_st8(TCGv val, TCGv addr, int index) { tcg_gen_qemu_st8(val, addr, index); dead_tmp(val); }
true
qemu
7d1b0095bff7157e856d1d0e6c4295641ced2752
static inline void gen_st8(TCGv val, TCGv addr, int index) { tcg_gen_qemu_st8(val, addr, index); dead_tmp(val); }
{ "code": [ " dead_tmp(val);", " dead_tmp(val);", " dead_tmp(val);" ], "line_no": [ 7, 7, 7 ] }
static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1, int VAR_2) { tcg_gen_qemu_st8(VAR_0, VAR_1, VAR_2); dead_tmp(VAR_0); }
[ "static inline void FUNC_0(TCGv VAR_0, TCGv VAR_1, int VAR_2)\n{", "tcg_gen_qemu_st8(VAR_0, VAR_1, VAR_2);", "dead_tmp(VAR_0);", "}" ]
[ 0, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
5,541
static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_idx, InputStream *ist, int in_program) { AVStream *stream = ist->st; AVCodecParameters *par; AVCodecContext *dec_ctx; char val_str[128]; const char *s; AVRational sar, dar; AVBPrint pbuf; const AVCodec...
false
FFmpeg
9cb1ed5735ec03f6331f9777e25aa2f736a9d60f
static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_idx, InputStream *ist, int in_program) { AVStream *stream = ist->st; AVCodecParameters *par; AVCodecContext *dec_ctx; char val_str[128]; const char *s; AVRational sar, dar; AVBPrint pbuf; const AVCodec...
{ "code": [], "line_no": [] }
static int FUNC_0(WriterContext *VAR_0, AVFormatContext *VAR_1, int VAR_2, InputStream *VAR_3, int VAR_4) { AVStream *stream = VAR_3->st; AVCodecParameters *par; AVCodecContext *dec_ctx; char VAR_5[128]; const char *VAR_6; AVRational sar, dar; AVBPrint pbuf; const AVCodecDescrip...
[ "static int FUNC_0(WriterContext *VAR_0, AVFormatContext *VAR_1, int VAR_2, InputStream *VAR_3, int VAR_4)\n{", "AVStream *stream = VAR_3->st;", "AVCodecParameters *par;", "AVCodecContext *dec_ctx;", "char VAR_5[128];", "const char *VAR_6;", "AVRational sar, dar;", "AVBPrint pbuf;", "const AVCodecDe...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49,...
5,542
static int build_filter(ResampleContext *c, void *filter, double factor, int tap_count, int alloc, int phase_count, int scale, int filter_type, int kaiser_beta){ int ph, i; double x, y, w; double *tab = av_malloc_array(tap_count+1, sizeof(*tab)); const int center= (tap_coun...
false
FFmpeg
c8780822bacc38a8d84c882d564b07dd152366ed
static int build_filter(ResampleContext *c, void *filter, double factor, int tap_count, int alloc, int phase_count, int scale, int filter_type, int kaiser_beta){ int ph, i; double x, y, w; double *tab = av_malloc_array(tap_count+1, sizeof(*tab)); const int center= (tap_coun...
{ "code": [], "line_no": [] }
static int FUNC_0(ResampleContext *VAR_0, void *VAR_1, double VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8){ int VAR_9, VAR_10; double VAR_11, VAR_12, VAR_13; double *VAR_14 = av_malloc_array(VAR_3+1, sizeof(*VAR_14)); const int VAR_15= (VAR_3-1)/...
[ "static int FUNC_0(ResampleContext *VAR_0, void *VAR_1, double VAR_2, int VAR_3, int VAR_4, int VAR_5, int VAR_6,\nint VAR_7, int VAR_8){", "int VAR_9, VAR_10;", "double VAR_11, VAR_12, VAR_13;", "double *VAR_14 = av_malloc_array(VAR_3+1, sizeof(*VAR_14));", "const int VAR_15= (VAR_3-1)/2;", "if (!VAR_14...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
5,543
e1000e_write_ps_rx_descr(E1000ECore *core, uint8_t *desc, struct NetRxPkt *pkt, const E1000E_RSSInfo *rss_info, size_t ps_hdr_len, uint16_t(*written)[MAX_PS_BUFFERS]) { int i; union e1000_rx_desc_packet_sp...
true
qemu
c89d416a2b0fb6a21224186b10af4c4a3feee31b
e1000e_write_ps_rx_descr(E1000ECore *core, uint8_t *desc, struct NetRxPkt *pkt, const E1000E_RSSInfo *rss_info, size_t ps_hdr_len, uint16_t(*written)[MAX_PS_BUFFERS]) { int i; union e1000_rx_desc_packet_sp...
{ "code": [ " memset(d, 0, sizeof(*d));", " memset(d, 0, sizeof(*d));", " memset(d, 0, sizeof(*d));" ], "line_no": [ 21, 21, 21 ] }
FUNC_0(E1000ECore *VAR_0, uint8_t *VAR_1, struct NetRxPkt *VAR_2, const E1000E_RSSInfo *VAR_3, size_t VAR_4, VAR_5(*written)[MAX_PS_BUFFERS]) { int VAR_6; union e1000_rx_desc_packet_split *VAR_7 = ...
[ "FUNC_0(E1000ECore *VAR_0, uint8_t *VAR_1,\nstruct NetRxPkt *VAR_2,\nconst E1000E_RSSInfo *VAR_3,\nsize_t VAR_4,\nVAR_5(*written)[MAX_PS_BUFFERS])\n{", "int VAR_6;", "union e1000_rx_desc_packet_split *VAR_7 =\n(union e1000_rx_desc_packet_split *) VAR_1;", "memset(VAR_7, 0, sizeof(*VAR_7));", "VAR_7->wb.midd...
[ 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15, 17 ], [ 21 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37, 39, 41, 43, 45, 47, 49 ], [ 53, 55 ], [ 59, 61 ], [ 63 ] ]
5,544
static void print_track_chunks(FILE *out, struct Tracks *tracks, int main, const char *type) { int i, j; struct Track *track = tracks->tracks[main]; for (i = 0; i < track->chunks; i++) { for (j = main + 1; j < tracks->nb_tracks; j++) { if (tracks->tr...
true
FFmpeg
a4435f9235eefac8a25f1cda471486e2c37b21b5
static void print_track_chunks(FILE *out, struct Tracks *tracks, int main, const char *type) { int i, j; struct Track *track = tracks->tracks[main]; for (i = 0; i < track->chunks; i++) { for (j = main + 1; j < tracks->nb_tracks; j++) { if (tracks->tr...
{ "code": [ " fprintf(out, \"\\t\\t<c n=\\\"%d\\\" d=\\\"%d\\\" />\\n\"," ], "line_no": [ 25 ] }
static void FUNC_0(FILE *VAR_0, struct Tracks *VAR_1, int VAR_2, const char *VAR_3) { int VAR_4, VAR_5; struct Track *VAR_6 = VAR_1->VAR_1[VAR_2]; for (VAR_4 = 0; VAR_4 < VAR_6->chunks; VAR_4++) { for (VAR_5 = VAR_2 + 1; VAR_5 < VAR_1->nb_tracks; VAR_5++) { ...
[ "static void FUNC_0(FILE *VAR_0, struct Tracks *VAR_1, int VAR_2,\nconst char *VAR_3)\n{", "int VAR_4, VAR_5;", "struct Track *VAR_6 = VAR_1->VAR_1[VAR_2];", "for (VAR_4 = 0; VAR_4 < VAR_6->chunks; VAR_4++) {", "for (VAR_5 = VAR_2 + 1; VAR_5 < VAR_1->nb_tracks; VAR_5++) {", "if (VAR_1->VAR_1[VAR_5]->is_au...
[ 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17, 19, 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ] ]
5,545
void vncws_handshake_read(void *opaque) { VncState *vs = opaque; uint8_t *handshake_end; long ret; buffer_reserve(&vs->ws_input, 4096); ret = vnc_client_read_buf(vs, buffer_end(&vs->ws_input), 4096); if (!ret) { if (vs->csock == -1) { vnc_disconnect_finish(vs); ...
true
qemu
2cdb5e142fb93e875fa53c52864ef5eb8d5d8b41
void vncws_handshake_read(void *opaque) { VncState *vs = opaque; uint8_t *handshake_end; long ret; buffer_reserve(&vs->ws_input, 4096); ret = vnc_client_read_buf(vs, buffer_end(&vs->ws_input), 4096); if (!ret) { if (vs->csock == -1) { vnc_disconnect_finish(vs); ...
{ "code": [ " buffer_reserve(&vs->ws_input, 4096);", " ret = vnc_client_read_buf(vs, buffer_end(&vs->ws_input), 4096);" ], "line_no": [ 11, 13 ] }
void FUNC_0(void *VAR_0) { VncState *vs = VAR_0; uint8_t *handshake_end; long VAR_1; buffer_reserve(&vs->ws_input, 4096); VAR_1 = vnc_client_read_buf(vs, buffer_end(&vs->ws_input), 4096); if (!VAR_1) { if (vs->csock == -1) { vnc_disconnect_finish(vs); } ...
[ "void FUNC_0(void *VAR_0)\n{", "VncState *vs = VAR_0;", "uint8_t *handshake_end;", "long VAR_1;", "buffer_reserve(&vs->ws_input, 4096);", "VAR_1 = vnc_client_read_buf(vs, buffer_end(&vs->ws_input), 4096);", "if (!VAR_1) {", "if (vs->csock == -1) {", "vnc_disconnect_finish(vs);", "}", "return;", ...
[ 0, 0, 0, 0, 1, 1, 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 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ...
5,546
void helper_rfmci(CPUPPCState *env) { do_rfi(env, env->spr[SPR_BOOKE_MCSRR0], SPR_BOOKE_MCSRR1, ~((target_ulong)0x3FFF0000), 0); }
true
qemu
a1bb73849fbd7d992b6ac2cf30c034244fb2299d
void helper_rfmci(CPUPPCState *env) { do_rfi(env, env->spr[SPR_BOOKE_MCSRR0], SPR_BOOKE_MCSRR1, ~((target_ulong)0x3FFF0000), 0); }
{ "code": [ " ~((target_ulong)0x3FFF0000), 0);", " ~((target_ulong)0x3FFF0000), 0);", " do_rfi(env, env->spr[SPR_BOOKE_MCSRR0], SPR_BOOKE_MCSRR1,", " ~((target_ulong)0x3FFF0000), 0);" ], "line_no": [ 7, 7, 5, 7 ] }
void FUNC_0(CPUPPCState *VAR_0) { do_rfi(VAR_0, VAR_0->spr[SPR_BOOKE_MCSRR0], SPR_BOOKE_MCSRR1, ~((target_ulong)0x3FFF0000), 0); }
[ "void FUNC_0(CPUPPCState *VAR_0)\n{", "do_rfi(VAR_0, VAR_0->spr[SPR_BOOKE_MCSRR0], SPR_BOOKE_MCSRR1,\n~((target_ulong)0x3FFF0000), 0);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
5,547
static int get_phys_addr_lpae(CPUARMState *env, target_ulong address, int access_type, int is_user, hwaddr *phys_ptr, int *prot, target_ulong *page_size_ptr) { CPUState *cs = CPU(arm_env_get_cpu(env)); /* Read an LPA...
true
qemu
d615efac7c4dc0984de31791c5c7d6b06408aadb
static int get_phys_addr_lpae(CPUARMState *env, target_ulong address, int access_type, int is_user, hwaddr *phys_ptr, int *prot, target_ulong *page_size_ptr) { CPUState *cs = CPU(arm_env_get_cpu(env)); MMUFault...
{ "code": [ " if (arm_feature(env, ARM_FEATURE_V8)) {", " attrs = extract64(descriptor, 2, 10)", " | (extract64(descriptor, 53, 11) << 10);", " } else {", " attrs = extract64(descriptor, 2, 10)", " | (extract64(descriptor, 52, 1...
static int FUNC_0(CPUARMState *VAR_0, target_ulong VAR_1, int VAR_2, int VAR_3, hwaddr *VAR_4, int *VAR_5, target_ulong *VAR_6) { CPUState *cs = CPU(arm_env_get_cpu(VAR_0)); MMUFaultType fault_type = translatio...
[ "static int FUNC_0(CPUARMState *VAR_0, target_ulong VAR_1,\nint VAR_2, int VAR_3,\nhwaddr *VAR_4, int *VAR_5,\ntarget_ulong *VAR_6)\n{", "CPUState *cs = CPU(arm_env_get_cpu(VAR_0));", "MMUFaultType fault_type = translation_fault;", "uint32_t level = 1;", "uint32_t epd;", "int32_t tsz;", "uint32_t tg;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [...
5,548
av_cold void ff_diracdsp_init(DiracDSPContext *c) { c->dirac_hpel_filter = dirac_hpel_filter; c->add_rect_clamped = add_rect_clamped_c; c->put_signed_rect_clamped[0] = put_signed_rect_clamped_8bit_c; c->put_signed_rect_clamped[1] = put_signed_rect_clamped_10bit_c; c->add_dirac_obmc[0] = add...
true
FFmpeg
8248b51e0b94f0151b6a2057ee639d6e0db29f5f
av_cold void ff_diracdsp_init(DiracDSPContext *c) { c->dirac_hpel_filter = dirac_hpel_filter; c->add_rect_clamped = add_rect_clamped_c; c->put_signed_rect_clamped[0] = put_signed_rect_clamped_8bit_c; c->put_signed_rect_clamped[1] = put_signed_rect_clamped_10bit_c; c->add_dirac_obmc[0] = add...
{ "code": [], "line_no": [] }
av_cold void FUNC_0(DiracDSPContext *c) { c->dirac_hpel_filter = dirac_hpel_filter; c->add_rect_clamped = add_rect_clamped_c; c->put_signed_rect_clamped[0] = put_signed_rect_clamped_8bit_c; c->put_signed_rect_clamped[1] = put_signed_rect_clamped_10bit_c; c->add_dirac_obmc[0] = add_obmc8_c; ...
[ "av_cold void FUNC_0(DiracDSPContext *c)\n{", "c->dirac_hpel_filter = dirac_hpel_filter;", "c->add_rect_clamped = add_rect_clamped_c;", "c->put_signed_rect_clamped[0] = put_signed_rect_clamped_8bit_c;", "c->put_signed_rect_clamped[1] = put_signed_rect_clamped_10bit_c;", "c->add_dirac_obmc[0] = add_obmc8_c...
[ 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 ], [ 16 ], [ 18 ], [ 20 ], [ 24 ], [ 26 ], [ 28 ], [ 30 ], [ 32 ], [ 34 ], [ 38 ], [ 40 ], [ 42 ], [ 44 ], [ 46 ], [ 48 ...
5,549
static int encode_block(SVQ1Context *s, uint8_t *src, uint8_t *ref, uint8_t *decoded, int stride, int level, int threshold, int lambda, int intra){ int count, y, x, i, j, split, best_mean, best_score, best_count; int best_vector[6]; int block_sum[7]= {0, 0, 0, 0, 0, 0}; int w= 2<<((level+2)>>1); ...
true
FFmpeg
f7f892e4d5bded48b08e7b776a5fb7c350496f2b
static int encode_block(SVQ1Context *s, uint8_t *src, uint8_t *ref, uint8_t *decoded, int stride, int level, int threshold, int lambda, int intra){ int count, y, x, i, j, split, best_mean, best_score, best_count; int best_vector[6]; int block_sum[7]= {0, 0, 0, 0, 0, 0}; int w= 2<<((level+2)>>1); ...
{ "code": [ " best_score -= ((block_sum[0]*block_sum[0])>>(level+3));" ], "line_no": [ 87 ] }
static int FUNC_0(SVQ1Context *VAR_0, FUNC_2 *VAR_1, FUNC_2 *VAR_2, FUNC_2 *VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8){ int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17; int VAR_18[6]; int VAR_19[7]= {0, 0, 0, 0, 0, 0}; int VAR_20= 2<<((VAR_5+2)>>1); ...
[ "static int FUNC_0(SVQ1Context *VAR_0, FUNC_2 *VAR_1, FUNC_2 *VAR_2, FUNC_2 *VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7, int VAR_8){", "int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16, VAR_17;", "int VAR_18[6];", "int VAR_19[7]= {0, 0, 0, 0, 0, 0};", "int VAR_20= 2<<((VAR_5+2)>>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, 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 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
5,550
void object_property_set_link(Object *obj, Object *value, const char *name, Error **errp) { object_property_set_str(obj, object_get_canonical_path(value), name, errp); }
true
qemu
2d3aa28cc2cf382aa04cd577e0be542175eea9bd
void object_property_set_link(Object *obj, Object *value, const char *name, Error **errp) { object_property_set_str(obj, object_get_canonical_path(value), name, errp); }
{ "code": [ " object_property_set_str(obj, object_get_canonical_path(value),", " name, errp);" ], "line_no": [ 7, 9 ] }
void FUNC_0(Object *VAR_0, Object *VAR_1, const char *VAR_2, Error **VAR_3) { object_property_set_str(VAR_0, object_get_canonical_path(VAR_1), VAR_2, VAR_3); }
[ "void FUNC_0(Object *VAR_0, Object *VAR_1,\nconst char *VAR_2, Error **VAR_3)\n{", "object_property_set_str(VAR_0, object_get_canonical_path(VAR_1),\nVAR_2, VAR_3);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ] ]
5,551
static int qcow2_cache_entry_flush(BlockDriverState *bs, Qcow2Cache *c, int i) { BDRVQcowState *s = bs->opaque; int ret = 0; if (!c->entries[i].dirty || !c->entries[i].offset) { return 0; } trace_qcow2_cache_entry_flush(qemu_coroutine_self(), c =...
true
qemu
231bb267644ee3a9ebfd9c7f42d5d41610194b45
static int qcow2_cache_entry_flush(BlockDriverState *bs, Qcow2Cache *c, int i) { BDRVQcowState *s = bs->opaque; int ret = 0; if (!c->entries[i].dirty || !c->entries[i].offset) { return 0; } trace_qcow2_cache_entry_flush(qemu_coroutine_self(), c =...
{ "code": [ " ret = qcow2_pre_write_overlap_check(bs,", " QCOW2_OL_DEFAULT & ~QCOW2_OL_REFCOUNT_BLOCK,", " ret = qcow2_pre_write_overlap_check(bs,", " QCOW2_OL_DEFAULT & ~QCOW2_OL_ACTIVE_L2,", " ret = qcow2_pre_write_overlap_check(bs, QCOW2_OL_DEF...
static int FUNC_0(BlockDriverState *VAR_0, Qcow2Cache *VAR_1, int VAR_2) { BDRVQcowState *s = VAR_0->opaque; int VAR_3 = 0; if (!VAR_1->entries[VAR_2].dirty || !VAR_1->entries[VAR_2].offset) { return 0; } trace_qcow2_cache_entry_flush(qemu_coroutine_self(), ...
[ "static int FUNC_0(BlockDriverState *VAR_0, Qcow2Cache *VAR_1, int VAR_2)\n{", "BDRVQcowState *s = VAR_0->opaque;", "int VAR_3 = 0;", "if (!VAR_1->entries[VAR_2].dirty || !VAR_1->entries[VAR_2].offset) {", "return 0;", "}", "trace_qcow2_cache_entry_flush(qemu_coroutine_self(),\nVAR_1 == s->l2_table_cach...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], ...
5,552
USBBus *usb_bus_new(DeviceState *host) { USBBus *bus; bus = FROM_QBUS(USBBus, qbus_create(&usb_bus_info, host, NULL)); bus->busnr = next_usb_bus++; TAILQ_INIT(&bus->free); TAILQ_INIT(&bus->used); TAILQ_INSERT_TAIL(&busses, bus, next); return bus; }
false
qemu
72cf2d4f0e181d0d3a3122e04129c58a95da713e
USBBus *usb_bus_new(DeviceState *host) { USBBus *bus; bus = FROM_QBUS(USBBus, qbus_create(&usb_bus_info, host, NULL)); bus->busnr = next_usb_bus++; TAILQ_INIT(&bus->free); TAILQ_INIT(&bus->used); TAILQ_INSERT_TAIL(&busses, bus, next); return bus; }
{ "code": [], "line_no": [] }
USBBus *FUNC_0(DeviceState *host) { USBBus *bus; bus = FROM_QBUS(USBBus, qbus_create(&usb_bus_info, host, NULL)); bus->busnr = next_usb_bus++; TAILQ_INIT(&bus->free); TAILQ_INIT(&bus->used); TAILQ_INSERT_TAIL(&busses, bus, next); return bus; }
[ "USBBus *FUNC_0(DeviceState *host)\n{", "USBBus *bus;", "bus = FROM_QBUS(USBBus, qbus_create(&usb_bus_info, host, NULL));", "bus->busnr = next_usb_bus++;", "TAILQ_INIT(&bus->free);", "TAILQ_INIT(&bus->used);", "TAILQ_INSERT_TAIL(&busses, bus, next);", "return bus;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ] ]
5,553
sPAPRTCETable *spapr_tce_new_table(DeviceState *owner, uint32_t liobn) { sPAPRTCETable *tcet; char tmp[32]; if (spapr_tce_find_by_liobn(liobn)) { error_report("Attempted to create TCE table with duplicate" " LIOBN 0x%x", liobn); return NULL; } tcet = SPAP...
false
qemu
a205a053dcfd89c7ab57aef48d26cd9349388933
sPAPRTCETable *spapr_tce_new_table(DeviceState *owner, uint32_t liobn) { sPAPRTCETable *tcet; char tmp[32]; if (spapr_tce_find_by_liobn(liobn)) { error_report("Attempted to create TCE table with duplicate" " LIOBN 0x%x", liobn); return NULL; } tcet = SPAP...
{ "code": [], "line_no": [] }
sPAPRTCETable *FUNC_0(DeviceState *owner, uint32_t liobn) { sPAPRTCETable *tcet; char VAR_0[32]; if (spapr_tce_find_by_liobn(liobn)) { error_report("Attempted to create TCE table with duplicate" " LIOBN 0x%x", liobn); return NULL; } tcet = SPAPR_TCE_TABLE...
[ "sPAPRTCETable *FUNC_0(DeviceState *owner, uint32_t liobn)\n{", "sPAPRTCETable *tcet;", "char VAR_0[32];", "if (spapr_tce_find_by_liobn(liobn)) {", "error_report(\"Attempted to create TCE table with duplicate\"\n\" LIOBN 0x%x\", liobn);", "return NULL;", "}", "tcet = SPAPR_TCE_TABLE(object_new(TYPE_SP...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ] ]
5,554
bool arm_regime_using_lpae_format(CPUARMState *env, ARMMMUIdx mmu_idx) { return regime_using_lpae_format(env, mmu_idx); }
false
qemu
deb2db996cbb9470b39ae1e383791ef34c4eb3c2
bool arm_regime_using_lpae_format(CPUARMState *env, ARMMMUIdx mmu_idx) { return regime_using_lpae_format(env, mmu_idx); }
{ "code": [], "line_no": [] }
bool FUNC_0(CPUARMState *env, ARMMMUIdx mmu_idx) { return regime_using_lpae_format(env, mmu_idx); }
[ "bool FUNC_0(CPUARMState *env, ARMMMUIdx mmu_idx)\n{", "return regime_using_lpae_format(env, mmu_idx);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
5,555
static int usb_hub_initfn(USBDevice *dev) { USBHubState *s = DO_UPCAST(USBHubState, dev, dev); USBHubPort *port; int i; s->dev.speed = USB_SPEED_FULL; for (i = 0; i < NUM_PORTS; i++) { port = &s->ports[i]; usb_register_port(usb_bus_from_device(dev), ...
false
qemu
a980a065fb5e86d6dec337e6cb6ff432f1a143c9
static int usb_hub_initfn(USBDevice *dev) { USBHubState *s = DO_UPCAST(USBHubState, dev, dev); USBHubPort *port; int i; s->dev.speed = USB_SPEED_FULL; for (i = 0; i < NUM_PORTS; i++) { port = &s->ports[i]; usb_register_port(usb_bus_from_device(dev), ...
{ "code": [], "line_no": [] }
static int FUNC_0(USBDevice *VAR_0) { USBHubState *s = DO_UPCAST(USBHubState, VAR_0, VAR_0); USBHubPort *port; int VAR_1; s->VAR_0.speed = USB_SPEED_FULL; for (VAR_1 = 0; VAR_1 < NUM_PORTS; VAR_1++) { port = &s->ports[VAR_1]; usb_register_port(usb_bus_from_device(VAR_0), ...
[ "static int FUNC_0(USBDevice *VAR_0)\n{", "USBHubState *s = DO_UPCAST(USBHubState, VAR_0, VAR_0);", "USBHubPort *port;", "int VAR_1;", "s->VAR_0.speed = USB_SPEED_FULL;", "for (VAR_1 = 0; VAR_1 < NUM_PORTS; VAR_1++) {", "port = &s->ports[VAR_1];", "usb_register_port(usb_bus_from_device(VAR_0),\n&port-...
[ 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 ] ]
5,556
static void horizontal_filter(unsigned char *first_pixel, int stride, int *bounding_values) { unsigned char *end; int filter_value; for (end= first_pixel + 8*stride; first_pixel < end; first_pixel += stride) { filter_value = (first_pixel[-2] - first_pixel[ 1]) +3*(...
false
FFmpeg
1af5f60f6aafa5f2653e7ea7cd054b0a4f31c103
static void horizontal_filter(unsigned char *first_pixel, int stride, int *bounding_values) { unsigned char *end; int filter_value; for (end= first_pixel + 8*stride; first_pixel < end; first_pixel += stride) { filter_value = (first_pixel[-2] - first_pixel[ 1]) +3*(...
{ "code": [], "line_no": [] }
static void FUNC_0(unsigned char *VAR_0, int VAR_1, int *VAR_2) { unsigned char *VAR_3; int VAR_4; for (VAR_3= VAR_0 + 8*VAR_1; VAR_0 < VAR_3; VAR_0 += VAR_1) { VAR_4 = (VAR_0[-2] - VAR_0[ 1]) +3*(VAR_0[ 0] - VAR_0[-1]); VAR_4 = VAR_2[(VAR_4 + 4) >> 3]; ...
[ "static void FUNC_0(unsigned char *VAR_0, int VAR_1,\nint *VAR_2)\n{", "unsigned char *VAR_3;", "int VAR_4;", "for (VAR_3= VAR_0 + 8*VAR_1; VAR_0 < VAR_3; VAR_0 += VAR_1) {", "VAR_4 =\n(VAR_0[-2] - VAR_0[ 1])\n+3*(VAR_0[ 0] - VAR_0[-1]);", "VAR_4 = VAR_2[(VAR_4 + 4) >> 3];", "VAR_0[-1] = clip_uint8(VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ] ]
5,557
build_dmar_q35(GArray *table_data, BIOSLinker *linker) { int dmar_start = table_data->len; AcpiTableDmar *dmar; AcpiDmarHardwareUnit *drhd; AcpiDmarRootPortATS *atsr; uint8_t dmar_flags = 0; X86IOMMUState *iommu = x86_iommu_get_default(); AcpiDmarDeviceScope *scope = NULL; /* ...
false
qemu
37f51384ae05bd50f83308339dbffa3e78404874
build_dmar_q35(GArray *table_data, BIOSLinker *linker) { int dmar_start = table_data->len; AcpiTableDmar *dmar; AcpiDmarHardwareUnit *drhd; AcpiDmarRootPortATS *atsr; uint8_t dmar_flags = 0; X86IOMMUState *iommu = x86_iommu_get_default(); AcpiDmarDeviceScope *scope = NULL; ...
{ "code": [], "line_no": [] }
FUNC_0(GArray *VAR_0, BIOSLinker *VAR_1) { int VAR_2 = VAR_0->len; AcpiTableDmar *dmar; AcpiDmarHardwareUnit *drhd; AcpiDmarRootPortATS *atsr; uint8_t dmar_flags = 0; X86IOMMUState *iommu = x86_iommu_get_default(); AcpiDmarDeviceScope *scope = NULL; size_t ioapic_scope_s...
[ "FUNC_0(GArray *VAR_0, BIOSLinker *VAR_1)\n{", "int VAR_2 = VAR_0->len;", "AcpiTableDmar *dmar;", "AcpiDmarHardwareUnit *drhd;", "AcpiDmarRootPortATS *atsr;", "uint8_t dmar_flags = 0;", "X86IOMMUState *iommu = x86_iommu_get_default();", "AcpiDmarDeviceScope *scope = NULL;", "size_t ioapic_scope_size...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [ 51 ], [ 53...
5,558
static void spapr_dr_connector_class_init(ObjectClass *k, void *data) { DeviceClass *dk = DEVICE_CLASS(k); sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_CLASS(k); dk->reset = reset; dk->realize = realize; dk->unrealize = unrealize; drck->set_isolation_state = set_isolation_state; ...
false
qemu
307b7715d0256c95444cada36a02882e46bada2f
static void spapr_dr_connector_class_init(ObjectClass *k, void *data) { DeviceClass *dk = DEVICE_CLASS(k); sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_CLASS(k); dk->reset = reset; dk->realize = realize; dk->unrealize = unrealize; drck->set_isolation_state = set_isolation_state; ...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { DeviceClass *dk = DEVICE_CLASS(VAR_0); sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_CLASS(VAR_0); dk->reset = reset; dk->realize = realize; dk->unrealize = unrealize; drck->set_isolation_state = set_isolation_state; drck->se...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "DeviceClass *dk = DEVICE_CLASS(VAR_0);", "sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_CLASS(VAR_0);", "dk->reset = reset;", "dk->realize = realize;", "dk->unrealize = unrealize;", "drck->set_isolation_state = set_isolation_state;", "drck-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 31 ], [ 33 ] ]
5,559
static void smbios_validate_table(void) { if (smbios_type4_count && smbios_type4_count != smp_cpus) { fprintf(stderr, "Number of SMBIOS Type 4 tables must match cpu count.\n"); exit(1); } }
false
qemu
5bb95e41868b461f37159efb48908828ebd7ab36
static void smbios_validate_table(void) { if (smbios_type4_count && smbios_type4_count != smp_cpus) { fprintf(stderr, "Number of SMBIOS Type 4 tables must match cpu count.\n"); exit(1); } }
{ "code": [], "line_no": [] }
static void FUNC_0(void) { if (smbios_type4_count && smbios_type4_count != smp_cpus) { fprintf(stderr, "Number of SMBIOS Type 4 tables must match cpu count.\n"); exit(1); } }
[ "static void FUNC_0(void)\n{", "if (smbios_type4_count && smbios_type4_count != smp_cpus) {", "fprintf(stderr,\n\"Number of SMBIOS Type 4 tables must match cpu count.\\n\");", "exit(1);", "}", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11 ], [ 13 ], [ 15 ] ]
5,560
static int xen_pt_bar_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint32_t *val, uint32_t dev_value, uint32_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; XenPTRegion *base = NULL; PCIDevice *d = &s->dev; const PCI...
false
qemu
e2779de053b64f023de382fd87b3596613d47d1e
static int xen_pt_bar_reg_write(XenPCIPassthroughState *s, XenPTReg *cfg_entry, uint32_t *val, uint32_t dev_value, uint32_t valid_mask) { XenPTRegInfo *reg = cfg_entry->reg; XenPTRegion *base = NULL; PCIDevice *d = &s->dev; const PCI...
{ "code": [], "line_no": [] }
static int FUNC_0(XenPCIPassthroughState *VAR_0, XenPTReg *VAR_1, uint32_t *VAR_2, uint32_t VAR_3, uint32_t VAR_4) { XenPTRegInfo *reg = VAR_1->reg; XenPTRegion *base = NULL; PCIDevice *d = &VAR_0->dev; const PCIIORegion *VAR_5; ...
[ "static int FUNC_0(XenPCIPassthroughState *VAR_0, XenPTReg *VAR_1,\nuint32_t *VAR_2, uint32_t VAR_3,\nuint32_t VAR_4)\n{", "XenPTRegInfo *reg = VAR_1->reg;", "XenPTRegion *base = NULL;", "PCIDevice *d = &VAR_0->dev;", "const PCIIORegion *VAR_5;", "uint32_t writable_mask = 0;", "uint32_t bar_emu_mask = 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ...
5,561
static void v9fs_write(void *opaque) { ssize_t err; int32_t fid; uint64_t off; uint32_t count; int32_t len = 0; int32_t total = 0; size_t offset = 7; V9fsFidState *fidp; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; QEMUIOVector qiov_full; QEMUIOVector qiov; ...
false
qemu
ddca7f86ac022289840e0200fd4050b2b58e9176
static void v9fs_write(void *opaque) { ssize_t err; int32_t fid; uint64_t off; uint32_t count; int32_t len = 0; int32_t total = 0; size_t offset = 7; V9fsFidState *fidp; V9fsPDU *pdu = opaque; V9fsState *s = pdu->s; QEMUIOVector qiov_full; QEMUIOVector qiov; ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0) { ssize_t err; int32_t fid; uint64_t off; uint32_t count; int32_t len = 0; int32_t total = 0; size_t offset = 7; V9fsFidState *fidp; V9fsPDU *pdu = VAR_0; V9fsState *s = pdu->s; QEMUIOVector qiov_full; QEMUIOVector qiov; ...
[ "static void FUNC_0(void *VAR_0)\n{", "ssize_t err;", "int32_t fid;", "uint64_t off;", "uint32_t count;", "int32_t len = 0;", "int32_t total = 0;", "size_t offset = 7;", "V9fsFidState *fidp;", "V9fsPDU *pdu = VAR_0;", "V9fsState *s = pdu->s;", "QEMUIOVector qiov_full;", "QEMUIOVector qiov;",...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ...
5,562
void machine_register_compat_props(MachineState *machine) { MachineClass *mc = MACHINE_GET_CLASS(machine); int i; GlobalProperty *p; if (!mc->compat_props) { return; } for (i = 0; i < mc->compat_props->len; i++) { p = g_array_index(mc->compat_props, GlobalProperty *,...
false
qemu
0bcba41fe379e4c6834adcf1456d9099db31a5b2
void machine_register_compat_props(MachineState *machine) { MachineClass *mc = MACHINE_GET_CLASS(machine); int i; GlobalProperty *p; if (!mc->compat_props) { return; } for (i = 0; i < mc->compat_props->len; i++) { p = g_array_index(mc->compat_props, GlobalProperty *,...
{ "code": [], "line_no": [] }
void FUNC_0(MachineState *VAR_0) { MachineClass *mc = MACHINE_GET_CLASS(VAR_0); int VAR_1; GlobalProperty *p; if (!mc->compat_props) { return; } for (VAR_1 = 0; VAR_1 < mc->compat_props->len; VAR_1++) { p = g_array_index(mc->compat_props, GlobalProperty *, VAR_1); ...
[ "void FUNC_0(MachineState *VAR_0)\n{", "MachineClass *mc = MACHINE_GET_CLASS(VAR_0);", "int VAR_1;", "GlobalProperty *p;", "if (!mc->compat_props) {", "return;", "}", "for (VAR_1 = 0; VAR_1 < mc->compat_props->len; VAR_1++) {", "p = g_array_index(mc->compat_props, GlobalProperty *, VAR_1);", "p->e...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
5,563
static int win_chr_pipe_init(CharDriverState *chr, const char *filename, Error **errp) { WinCharState *s = chr->opaque; OVERLAPPED ov; int ret; DWORD size; char openname[CHR_MAX_FILENAME_SIZE]; s->fpipe = TRUE; s->hsend = CreateEvent(NULL, TRUE, FALS...
false
qemu
0ff0fad23d3693ecf7a0c462cdb48f0e60f93808
static int win_chr_pipe_init(CharDriverState *chr, const char *filename, Error **errp) { WinCharState *s = chr->opaque; OVERLAPPED ov; int ret; DWORD size; char openname[CHR_MAX_FILENAME_SIZE]; s->fpipe = TRUE; s->hsend = CreateEvent(NULL, TRUE, FALS...
{ "code": [], "line_no": [] }
static int FUNC_0(CharDriverState *VAR_0, const char *VAR_1, Error **VAR_2) { WinCharState *s = VAR_0->opaque; OVERLAPPED ov; int VAR_3; DWORD size; char VAR_4[CHR_MAX_FILENAME_SIZE]; s->fpipe = TRUE; s->hsend = CreateEvent(NULL, TRUE, FALSE, NULL); ...
[ "static int FUNC_0(CharDriverState *VAR_0, const char *VAR_1,\nError **VAR_2)\n{", "WinCharState *s = VAR_0->opaque;", "OVERLAPPED ov;", "int VAR_3;", "DWORD size;", "char VAR_4[CHR_MAX_FILENAME_SIZE];", "s->fpipe = TRUE;", "s->hsend = CreateEvent(NULL, TRUE, FALSE, NULL);", "if (!s->hsend) {", "e...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47, 49,...
5,564
static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn, Error **errp) { PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev); PCIConfigReadFunc *config_read = pc->config_read; ...
false
qemu
9b717a3a1318455afce761301fec114982ccbf1f
static PCIDevice *do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn, Error **errp) { PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev); PCIConfigReadFunc *config_read = pc->config_read; ...
{ "code": [], "line_no": [] }
static PCIDevice *FUNC_0(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn, Error **errp) { PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev); PCIConfigReadFunc *config_read = pc->config_read; PCIConfigWriteF...
[ "static PCIDevice *FUNC_0(PCIDevice *pci_dev, PCIBus *bus,\nconst char *name, int devfn,\nError **errp)\n{", "PCIDeviceClass *pc = PCI_DEVICE_GET_CLASS(pci_dev);", "PCIConfigReadFunc *config_read = pc->config_read;", "PCIConfigWriteFunc *config_write = pc->config_write;", "Error *local_err = NULL;", "Devi...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 27, 29, 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45, 47 ], [ 49 ], [ 51, 53 ...
5,565
int floatx80_lt(floatx80 a, floatx80 b, float_status *status) { flag aSign, bSign; if ( ( ( extractFloatx80Exp( a ) == 0x7FFF ) && (uint64_t) ( extractFloatx80Frac( a )<<1 ) ) || ( ( extractFloatx80Exp( b ) == 0x7FFF ) && (uint64_t) ( extractFloatx80Frac( b ...
false
qemu
d1eb8f2acba579830cf3798c3c15ce51be852c56
int floatx80_lt(floatx80 a, floatx80 b, float_status *status) { flag aSign, bSign; if ( ( ( extractFloatx80Exp( a ) == 0x7FFF ) && (uint64_t) ( extractFloatx80Frac( a )<<1 ) ) || ( ( extractFloatx80Exp( b ) == 0x7FFF ) && (uint64_t) ( extractFloatx80Frac( b ...
{ "code": [], "line_no": [] }
int FUNC_0(floatx80 VAR_0, floatx80 VAR_1, float_status *VAR_2) { flag aSign, bSign; if ( ( ( extractFloatx80Exp( VAR_0 ) == 0x7FFF ) && (uint64_t) ( extractFloatx80Frac( VAR_0 )<<1 ) ) || ( ( extractFloatx80Exp( VAR_1 ) == 0x7FFF ) && (uint64_t) ( extractFl...
[ "int FUNC_0(floatx80 VAR_0, floatx80 VAR_1, float_status *VAR_2)\n{", "flag aSign, bSign;", "if ( ( ( extractFloatx80Exp( VAR_0 ) == 0x7FFF )\n&& (uint64_t) ( extractFloatx80Frac( VAR_0 )<<1 ) )\n|| ( ( extractFloatx80Exp( VAR_1 ) == 0x7FFF )\n&& (uint64_t) ( extractFloatx80Frac( VAR_1 )<<1 ) )\n) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11, 13, 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31, 33, 35, 37 ], [ 39 ], [ 41, 43, 45 ], [ 49 ] ]
5,568
int bdrv_debug_breakpoint(BlockDriverState *bs, const char *event, const char *tag) { while (bs && bs->drv && !bs->drv->bdrv_debug_breakpoint) { bs = bs->file; } if (bs && bs->drv && bs->drv->bdrv_debug_breakpoint) { return bs->drv->bdrv_debug_breakpoint(bs...
false
qemu
61007b316cd71ee7333ff7a0a749a8949527575f
int bdrv_debug_breakpoint(BlockDriverState *bs, const char *event, const char *tag) { while (bs && bs->drv && !bs->drv->bdrv_debug_breakpoint) { bs = bs->file; } if (bs && bs->drv && bs->drv->bdrv_debug_breakpoint) { return bs->drv->bdrv_debug_breakpoint(bs...
{ "code": [], "line_no": [] }
int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1, const char *VAR_2) { while (VAR_0 && VAR_0->drv && !VAR_0->drv->FUNC_0) { VAR_0 = VAR_0->file; } if (VAR_0 && VAR_0->drv && VAR_0->drv->FUNC_0) { return VAR_0->drv->FUNC_0(VAR_0, VAR_1, VAR_2); } ...
[ "int FUNC_0(BlockDriverState *VAR_0, const char *VAR_1,\nconst char *VAR_2)\n{", "while (VAR_0 && VAR_0->drv && !VAR_0->drv->FUNC_0) {", "VAR_0 = VAR_0->file;", "}", "if (VAR_0 && VAR_0->drv && VAR_0->drv->FUNC_0) {", "return VAR_0->drv->FUNC_0(VAR_0, VAR_1, VAR_2);", "}", "return -ENOTSUP;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ] ]
5,569
static target_ulong h_add_logical_lan_buffer(PowerPCCPU *cpu, sPAPRMachineState *spapr, target_ulong opcode, target_ulong *args) { target_ulong reg = args[0]; target_ulong...
false
qemu
831e8822530bb511a24329494f9121ad1f8b94ab
static target_ulong h_add_logical_lan_buffer(PowerPCCPU *cpu, sPAPRMachineState *spapr, target_ulong opcode, target_ulong *args) { target_ulong reg = args[0]; target_ulong...
{ "code": [], "line_no": [] }
static target_ulong FUNC_0(PowerPCCPU *cpu, sPAPRMachineState *spapr, target_ulong opcode, target_ulong *args) { target_ulong reg = args[0]; target_ulong buf = args[1]; ...
[ "static target_ulong FUNC_0(PowerPCCPU *cpu,\nsPAPRMachineState *spapr,\ntarget_ulong opcode,\ntarget_ulong *args)\n{", "target_ulong reg = args[0];", "target_ulong buf = args[1];", "VIOsPAPRDevice *sdev = spapr_vio_find_by_reg(spapr->vio_bus, reg);", "VIOsPAPRVLANDevice *dev = VIO_SPAPR_VLAN_DEVICE(sdev);"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ], [...
5,571
static void openrisc_pic_cpu_handler(void *opaque, int irq, int level) { OpenRISCCPU *cpu = (OpenRISCCPU *)opaque; CPUState *cs = CPU(cpu); int i; uint32_t irq_bit = 1 << irq; if (irq > 31 || irq < 0) { return; } if (level) { cpu->env.picsr |= irq_bit; } el...
false
qemu
ed396e2b2d256c1628de7c11841b509455a76c03
static void openrisc_pic_cpu_handler(void *opaque, int irq, int level) { OpenRISCCPU *cpu = (OpenRISCCPU *)opaque; CPUState *cs = CPU(cpu); int i; uint32_t irq_bit = 1 << irq; if (irq > 31 || irq < 0) { return; } if (level) { cpu->env.picsr |= irq_bit; } el...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2) { OpenRISCCPU *cpu = (OpenRISCCPU *)VAR_0; CPUState *cs = CPU(cpu); int VAR_3; uint32_t irq_bit = 1 << VAR_1; if (VAR_1 > 31 || VAR_1 < 0) { return; } if (VAR_2) { cpu->env.picsr |= irq_bit; } else { ...
[ "static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)\n{", "OpenRISCCPU *cpu = (OpenRISCCPU *)VAR_0;", "CPUState *cs = CPU(cpu);", "int VAR_3;", "uint32_t irq_bit = 1 << VAR_1;", "if (VAR_1 > 31 || VAR_1 < 0) {", "return;", "}", "if (VAR_2) {", "cpu->env.picsr |= irq_bit;", "} else {", "cpu->...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...