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
24,767
static void pc_init_pci_1_3(QEMUMachineInitArgs *args) { enable_compat_apic_id_mode(); pc_sysfw_flash_vs_rom_bug_compatible = true; has_pvpanic = false; pc_init_pci(args); }
true
qemu
9e1c2ec8fd8d9a9ee299ea86c5f6c986fe25e838
static void pc_init_pci_1_3(QEMUMachineInitArgs *args) { enable_compat_apic_id_mode(); pc_sysfw_flash_vs_rom_bug_compatible = true; has_pvpanic = false; pc_init_pci(args); }
{ "code": [ " pc_sysfw_flash_vs_rom_bug_compatible = true;", " pc_sysfw_flash_vs_rom_bug_compatible = true;", " pc_sysfw_flash_vs_rom_bug_compatible = true;", " pc_sysfw_flash_vs_rom_bug_compatible = true;" ], "line_no": [ 7, 7, 7, 7 ] }
static void FUNC_0(QEMUMachineInitArgs *VAR_0) { enable_compat_apic_id_mode(); pc_sysfw_flash_vs_rom_bug_compatible = true; has_pvpanic = false; pc_init_pci(VAR_0); }
[ "static void FUNC_0(QEMUMachineInitArgs *VAR_0)\n{", "enable_compat_apic_id_mode();", "pc_sysfw_flash_vs_rom_bug_compatible = true;", "has_pvpanic = false;", "pc_init_pci(VAR_0);", "}" ]
[ 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
24,769
static uint8_t get_sot(Jpeg2000DecoderContext *s, int n) { Jpeg2000TilePart *tp; uint16_t Isot; uint32_t Psot; uint8_t TPsot; if (s->buf_end - s->buf < 4) return AVERROR(EINVAL); Isot = bytestream_get_be16(&s->buf); // Isot if (Isot) { av_log(s->avctx, AV...
false
FFmpeg
0b42631641d998e509cde6fa344edc6ab5cb4ac8
static uint8_t get_sot(Jpeg2000DecoderContext *s, int n) { Jpeg2000TilePart *tp; uint16_t Isot; uint32_t Psot; uint8_t TPsot; if (s->buf_end - s->buf < 4) return AVERROR(EINVAL); Isot = bytestream_get_be16(&s->buf); if (Isot) { av_log(s->avctx, AV_LOG_ER...
{ "code": [], "line_no": [] }
static uint8_t FUNC_0(Jpeg2000DecoderContext *s, int n) { Jpeg2000TilePart *tp; uint16_t Isot; uint32_t Psot; uint8_t TPsot; if (s->buf_end - s->buf < 4) return AVERROR(EINVAL); Isot = bytestream_get_be16(&s->buf); if (Isot) { av_log(s->avctx, AV_LOG_ERR...
[ "static uint8_t FUNC_0(Jpeg2000DecoderContext *s, int n)\n{", "Jpeg2000TilePart *tp;", "uint16_t Isot;", "uint32_t Psot;", "uint8_t TPsot;", "if (s->buf_end - s->buf < 4)\nreturn AVERROR(EINVAL);", "Isot = bytestream_get_be16(&s->buf);", "if (Isot) {", "av_log(s->avctx, AV_LOG_ERROR,\n\"Not a DCINEM...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15, 17 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 59,...
24,770
static int xa_probe(AVProbeData *p) { switch(AV_RL32(p->buf)) { case XA00_TAG: case XAI0_TAG: case XAJ0_TAG: return AVPROBE_SCORE_MAX; } return 0; }
true
FFmpeg
ddbb7c9be2f8a006325ec64cd5b90e1ade5bc476
static int xa_probe(AVProbeData *p) { switch(AV_RL32(p->buf)) { case XA00_TAG: case XAI0_TAG: case XAJ0_TAG: return AVPROBE_SCORE_MAX; } return 0; }
{ "code": [ " return AVPROBE_SCORE_MAX;", " return 0;" ], "line_no": [ 13, 17 ] }
static int FUNC_0(AVProbeData *VAR_0) { switch(AV_RL32(VAR_0->buf)) { case XA00_TAG: case XAI0_TAG: case XAJ0_TAG: return AVPROBE_SCORE_MAX; } return 0; }
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "switch(AV_RL32(VAR_0->buf)) {", "case XA00_TAG:\ncase XAI0_TAG:\ncase XAJ0_TAG:\nreturn AVPROBE_SCORE_MAX;", "}", "return 0;", "}" ]
[ 0, 0, 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9, 11, 13 ], [ 15 ], [ 17 ], [ 19 ] ]
24,772
static void qemu_chr_fe_write_log(CharDriverState *s, const uint8_t *buf, size_t len) { size_t done = 0; ssize_t ret; if (s->logfd < 0) { return; } while (done < len) { do { ret = write(s->logfd, buf + done, len - done); ...
true
qemu
53628efbc8aa7a7ab5354d24b971f4d69452151d
static void qemu_chr_fe_write_log(CharDriverState *s, const uint8_t *buf, size_t len) { size_t done = 0; ssize_t ret; if (s->logfd < 0) { return; } while (done < len) { do { ret = write(s->logfd, buf + done, len - done); ...
{ "code": [ " do {", " ret = write(s->logfd, buf + done, len - done);", " if (ret == -1 && errno == EAGAIN) {", " g_usleep(100);", " } while (ret == -1 && errno == EAGAIN);", " do {", " g_usleep(100);", " d...
static void FUNC_0(CharDriverState *VAR_0, const uint8_t *VAR_1, size_t VAR_2) { size_t done = 0; ssize_t ret; if (VAR_0->logfd < 0) { return; } while (done < VAR_2) { do { ret = write(VAR_0->logfd, VAR_1 + done, VAR_2 - don...
[ "static void FUNC_0(CharDriverState *VAR_0,\nconst uint8_t *VAR_1, size_t VAR_2)\n{", "size_t done = 0;", "ssize_t ret;", "if (VAR_0->logfd < 0) {", "return;", "}", "while (done < VAR_2) {", "do {", "ret = write(VAR_0->logfd, VAR_1 + done, VAR_2 - done);", "if (ret == -1 && errno == EAGAIN) {", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ] ]
24,773
void av_vlog(void* avcl, int level, const char *fmt, va_list vl) { if(av_log_callback) av_log_callback(avcl, level, fmt, vl); }
true
FFmpeg
3ed65d98c616d52e2544c8b81aa3997f28bb88f5
void av_vlog(void* avcl, int level, const char *fmt, va_list vl) { if(av_log_callback) av_log_callback(avcl, level, fmt, vl); }
{ "code": [ " if(av_log_callback)", " av_log_callback(avcl, level, fmt, vl);" ], "line_no": [ 5, 7 ] }
void FUNC_0(void* VAR_0, int VAR_1, const char *VAR_2, va_list VAR_3) { if(av_log_callback) av_log_callback(VAR_0, VAR_1, VAR_2, VAR_3); }
[ "void FUNC_0(void* VAR_0, int VAR_1, const char *VAR_2, va_list VAR_3)\n{", "if(av_log_callback)\nav_log_callback(VAR_0, VAR_1, VAR_2, VAR_3);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ] ]
24,774
void kvm_setup_guest_memory(void *start, size_t size) { if (!kvm_has_sync_mmu()) { #ifdef MADV_DONTFORK int ret = madvise(start, size, MADV_DONTFORK); if (ret) { perror("madvice"); exit(1); } #else fprintf(stderr, "Need MADV_DONTFO...
true
qemu
e78815a554adaa551d62a71be10ee2fcf128e473
void kvm_setup_guest_memory(void *start, size_t size) { if (!kvm_has_sync_mmu()) { #ifdef MADV_DONTFORK int ret = madvise(start, size, MADV_DONTFORK); if (ret) { perror("madvice"); exit(1); } #else fprintf(stderr, "Need MADV_DONTFO...
{ "code": [ "#endif", "#endif", "#ifdef MADV_DONTFORK", " int ret = madvise(start, size, MADV_DONTFORK);", " perror(\"madvice\");", "#else", " fprintf(stderr,", " \"Need MADV_DONTFORK in absence of synchronous KVM MMU\\n\");", " exit(1...
void FUNC_0(void *VAR_0, size_t VAR_1) { if (!kvm_has_sync_mmu()) { #ifdef MADV_DONTFORK int ret = madvise(VAR_0, VAR_1, MADV_DONTFORK); if (ret) { perror("madvice"); exit(1); } #else fprintf(stderr, "Need MADV_DONTFORK in absence ...
[ "void FUNC_0(void *VAR_0, size_t VAR_1)\n{", "if (!kvm_has_sync_mmu()) {", "#ifdef MADV_DONTFORK\nint ret = madvise(VAR_0, VAR_1, MADV_DONTFORK);", "if (ret) {", "perror(\"madvice\");", "exit(1);", "}", "#else\nfprintf(stderr,\n\"Need MADV_DONTFORK in absence of synchronous KVM MMU\\n\");", "exit(1)...
[ 0, 0, 1, 0, 1, 0, 0, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23, 25 ], [ 27 ], [ 29, 31 ], [ 33 ] ]
24,775
static int read_packet(AVFormatContext *s, AVPacket *pkt) { ASSContext *ass = s->priv_data; uint8_t *p, *end; if (ass->event_index >= ass->event_count) return AVERROR(EIO); p = ass->event[ass->event_index]; end = strchr(p, '\n'); av_new_packet(pkt, end ? end - p + 1 : strle...
false
FFmpeg
e9ba3098319f78c91470c05da988d865491852c5
static int read_packet(AVFormatContext *s, AVPacket *pkt) { ASSContext *ass = s->priv_data; uint8_t *p, *end; if (ass->event_index >= ass->event_count) return AVERROR(EIO); p = ass->event[ass->event_index]; end = strchr(p, '\n'); av_new_packet(pkt, end ? end - p + 1 : strle...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1) { ASSContext *ass = VAR_0->priv_data; uint8_t *p, *end; if (ass->event_index >= ass->event_count) return AVERROR(EIO); p = ass->event[ass->event_index]; end = strchr(p, '\n'); av_new_packet(VAR_1, end ? end - p + 1 ...
[ "static int FUNC_0(AVFormatContext *VAR_0, AVPacket *VAR_1)\n{", "ASSContext *ass = VAR_0->priv_data;", "uint8_t *p, *end;", "if (ass->event_index >= ass->event_count)\nreturn AVERROR(EIO);", "p = ass->event[ass->event_index];", "end = strchr(p, '\\n');", "av_new_packet(VAR_1, end ? end - p + 1 : strlen...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ] ]
24,776
static av_cold int xwd_encode_close(AVCodecContext *avctx) { av_freep(&avctx->coded_frame); return 0; }
false
FFmpeg
d6604b29ef544793479d7fb4e05ef6622bb3e534
static av_cold int xwd_encode_close(AVCodecContext *avctx) { av_freep(&avctx->coded_frame); return 0; }
{ "code": [], "line_no": [] }
static av_cold int FUNC_0(AVCodecContext *avctx) { av_freep(&avctx->coded_frame); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "av_freep(&avctx->coded_frame);", "return 0;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
24,777
av_cold void ff_idctdsp_init_x86(IDCTDSPContext *c, AVCodecContext *avctx, unsigned high_bit_depth) { int cpu_flags = av_get_cpu_flags(); if (INLINE_MMX(cpu_flags)) { if (!high_bit_depth && avctx->lowres == 0 && (avctx->idct_algo == FF_ID...
true
FFmpeg
7ece8b50b19e140ace13eda6f1a9f45f868c2528
av_cold void ff_idctdsp_init_x86(IDCTDSPContext *c, AVCodecContext *avctx, unsigned high_bit_depth) { int cpu_flags = av_get_cpu_flags(); if (INLINE_MMX(cpu_flags)) { if (!high_bit_depth && avctx->lowres == 0 && (avctx->idct_algo == FF_ID...
{ "code": [ " if (ARCH_X86_64 &&", " avctx->bits_per_raw_sample == 10 && avctx->lowres == 0 &&" ], "line_no": [ 57, 59 ] }
av_cold void FUNC_0(IDCTDSPContext *c, AVCodecContext *avctx, unsigned high_bit_depth) { int VAR_0 = av_get_cpu_flags(); if (INLINE_MMX(VAR_0)) { if (!high_bit_depth && avctx->lowres == 0 && (avctx->idct_algo == FF_IDCT_AUTO || ...
[ "av_cold void FUNC_0(IDCTDSPContext *c, AVCodecContext *avctx,\nunsigned high_bit_depth)\n{", "int VAR_0 = av_get_cpu_flags();", "if (INLINE_MMX(VAR_0)) {", "if (!high_bit_depth &&\navctx->lowres == 0 &&\n(avctx->idct_algo == FF_IDCT_AUTO ||\navctx->idct_algo == FF_IDCT_SIMPLEAUTO ||\navctx->idct_algo == FF_I...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13, 15, 17, 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], ...
24,778
static void send_msg(IPMIBmcSim *ibs, uint8_t *cmd, unsigned int cmd_len, uint8_t *rsp, unsigned int *rsp_len, unsigned int max_rsp_len) { IPMIInterface *s = ibs->parent.intf; IPMIInterfaceClass *k = IPMI_INTERFACE_GET_CLASS(s); IPMIRcvBu...
true
qemu
4f298a4b2957b7833bc607c951ca27c458d98d88
static void send_msg(IPMIBmcSim *ibs, uint8_t *cmd, unsigned int cmd_len, uint8_t *rsp, unsigned int *rsp_len, unsigned int max_rsp_len) { IPMIInterface *s = ibs->parent.intf; IPMIInterfaceClass *k = IPMI_INTERFACE_GET_CLASS(s); IPMIRcvBu...
{ "code": [ " IPMI_CHECK_CMD_LEN(3);", " IPMI_CHECK_CMD_LEN(3);", " IPMI_CHECK_CMD_LEN(3);", " IPMI_CHECK_CMD_LEN(3);", " IPMI_CHECK_CMD_LEN(10);", " IPMI_CHECK_CMD_LEN(3);", " IPMI_CHECK_CMD_LEN(3);", " IPMI_CHECK_CMD_LEN(3);", " IPMI_CHECK_CMD_LEN(3);" ...
static void FUNC_0(IPMIBmcSim *VAR_0, uint8_t *VAR_1, unsigned int VAR_2, uint8_t *VAR_3, unsigned int *VAR_4, unsigned int VAR_5) { IPMIInterface *s = VAR_0->parent.intf; IPMIInterfaceClass *k = IPMI_INTERFACE_GET_CLASS(s); IPMIRcvBufEnt...
[ "static void FUNC_0(IPMIBmcSim *VAR_0,\nuint8_t *VAR_1, unsigned int VAR_2,\nuint8_t *VAR_3, unsigned int *VAR_4,\nunsigned int VAR_5)\n{", "IPMIInterface *s = VAR_0->parent.intf;", "IPMIInterfaceClass *k = IPMI_INTERFACE_GET_CLASS(s);", "IPMIRcvBufEntry *msg;", "uint8_t *buf;", "uint8_t netfn, rqLun, rsL...
[ 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ], [ 55 ], [...
24,779
static void render_slice(Vp3DecodeContext *s, int slice) { int x, y, i, j, fragment; LOCAL_ALIGNED_16(DCTELEM, block, [64]); int motion_x = 0xdeadbeef, motion_y = 0xdeadbeef; int motion_halfpel_index; uint8_t *motion_source; int plane, first_pixel; if (slice >= s->c_superblock_heig...
true
FFmpeg
a2a12e3358c3bbdc0246ffc94973e58eba50ee30
static void render_slice(Vp3DecodeContext *s, int slice) { int x, y, i, j, fragment; LOCAL_ALIGNED_16(DCTELEM, block, [64]); int motion_x = 0xdeadbeef, motion_y = 0xdeadbeef; int motion_halfpel_index; uint8_t *motion_source; int plane, first_pixel; if (slice >= s->c_superblock_heig...
{ "code": [ " int index;", " index = vp3_dequant(s, s->all_fragments + i, plane, 0, block);", " if (index > 63)", " continue;", " int index = vp3_dequant(s, s->all_fragments + i, ...
static void FUNC_0(Vp3DecodeContext *VAR_0, int VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6; LOCAL_ALIGNED_16(DCTELEM, block, [64]); int VAR_7 = 0xdeadbeef, VAR_8 = 0xdeadbeef; int VAR_9; uint8_t *motion_source; int VAR_10, VAR_11; if (VAR_1 >= VAR_0->c_superblock_height) ...
[ "static void FUNC_0(Vp3DecodeContext *VAR_0, int VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6;", "LOCAL_ALIGNED_16(DCTELEM, block, [64]);", "int VAR_7 = 0xdeadbeef, VAR_8 = 0xdeadbeef;", "int VAR_9;", "uint8_t *motion_source;", "int VAR_10, VAR_11;", "if (VAR_1 >= VAR_0->c_superblock_height)\nre...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19, 21 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [...
24,780
static void disas_xtensa_insn(DisasContext *dc) { #define HAS_OPTION(opt) do { \ if (!option_enabled(dc, opt)) { \ qemu_log("Option %d is not enabled %s:%d\n", \ (opt), __FILE__, __LINE__); \ goto invalid_opcode; \ } \ } while (0) #ifdef TARGET_...
true
qemu
91a5bb76d47e1b06f0b7b67cae8497d8efc6ab87
static void disas_xtensa_insn(DisasContext *dc) { #define HAS_OPTION(opt) do { \ if (!option_enabled(dc, opt)) { \ qemu_log("Option %d is not enabled %s:%d\n", \ (opt), __FILE__, __LINE__); \ goto invalid_opcode; \ } \ } while (0) #ifdef TARGET_...
{ "code": [ " case 3:" ], "line_no": [ 321 ] }
static void FUNC_0(DisasContext *VAR_0) { #define HAS_OPTION(opt) do { \ if (!option_enabled(VAR_0, opt)) { \ qemu_log("Option %d is not enabled %s:%d\n", \ (opt), __FILE__, __LINE__); \ goto invalid_opcode; \ } \ } while (0) #ifdef TARGET_WORDS...
[ "static void FUNC_0(DisasContext *VAR_0)\n{", "#define HAS_OPTION(opt) do { \\", "if (!option_enabled(VAR_0, opt)) { \\", "qemu_log(\"Option %d is not enabled %s:%d\\n\", \\\n(opt), __FILE__, __LINE__); \\", "goto invalid_opcode; \\", "} \\", "} while (0)", "#ifdef TARGET_WORDS_BIGENDIAN\n#define OP0 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 53, 55, 57, 61, 63, 65, 67, 69, 73,...
24,781
void bdrv_invalidate_cache(BlockDriverState *bs, Error **errp) { BdrvChild *child; Error *local_err = NULL; int ret; if (!bs->drv) { return; } if (!(bs->open_flags & BDRV_O_INACTIVE)) { return; } bs->open_flags &= ~BDRV_O_INACTIVE; if (bs->drv->bdrv...
true
qemu
16e977d506bcc2d9f7daa4a9f7cc2b48536d9da6
void bdrv_invalidate_cache(BlockDriverState *bs, Error **errp) { BdrvChild *child; Error *local_err = NULL; int ret; if (!bs->drv) { return; } if (!(bs->open_flags & BDRV_O_INACTIVE)) { return; } bs->open_flags &= ~BDRV_O_INACTIVE; if (bs->drv->bdrv...
{ "code": [ " bs->open_flags &= ~BDRV_O_INACTIVE;", " if (bs->drv->bdrv_invalidate_cache) {", " bs->drv->bdrv_invalidate_cache(bs, &local_err);", " bs->open_flags |= BDRV_O_INACTIVE;", " QLIST_FOREACH(child, &bs->children, next) {", " bdrv_invalidate_cache(chi...
void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1) { BdrvChild *child; Error *local_err = NULL; int VAR_2; if (!VAR_0->drv) { return; } if (!(VAR_0->open_flags & BDRV_O_INACTIVE)) { return; } VAR_0->open_flags &= ~BDRV_O_INACTIVE; if (VAR_0->drv->F...
[ "void FUNC_0(BlockDriverState *VAR_0, Error **VAR_1)\n{", "BdrvChild *child;", "Error *local_err = NULL;", "int VAR_2;", "if (!VAR_0->drv) {", "return;", "}", "if (!(VAR_0->open_flags & BDRV_O_INACTIVE)) {", "return;", "}", "VAR_0->open_flags &= ~BDRV_O_INACTIVE;", "if (VAR_0->drv->FUNC_0) {"...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ...
24,782
static int context_init(H264Context *h){ MpegEncContext * const s = &h->s; CHECKED_ALLOCZ(h->top_borders[0], h->s.mb_width * (16+8+8) * sizeof(uint8_t)) CHECKED_ALLOCZ(h->top_borders[1], h->s.mb_width * (16+8+8) * sizeof(uint8_t)) // edge emu needs blocksize + filter length - 1 (=17x17 for halfp...
true
FFmpeg
79db7ac6ef235a06c3049d7792eda39da28ee3fd
static int context_init(H264Context *h){ MpegEncContext * const s = &h->s; CHECKED_ALLOCZ(h->top_borders[0], h->s.mb_width * (16+8+8) * sizeof(uint8_t)) CHECKED_ALLOCZ(h->top_borders[1], h->s.mb_width * (16+8+8) * sizeof(uint8_t)) CHECKED_ALLOCZ(s->allocated_edge_emu_buffer, ...
{ "code": [ " CHECKED_ALLOCZ(s->allocated_edge_emu_buffer,", " s->edge_emu_buffer= s->allocated_edge_emu_buffer + (s->width+64)*2*21;" ], "line_no": [ 15, 19 ] }
static int FUNC_0(H264Context *VAR_0){ MpegEncContext * const s = &VAR_0->s; CHECKED_ALLOCZ(VAR_0->top_borders[0], VAR_0->s.mb_width * (16+8+8) * sizeof(uint8_t)) CHECKED_ALLOCZ(VAR_0->top_borders[1], VAR_0->s.mb_width * (16+8+8) * sizeof(uint8_t)) CHECKED_ALLOCZ(s->allocated_edge_emu_buff...
[ "static int FUNC_0(H264Context *VAR_0){", "MpegEncContext * const s = &VAR_0->s;", "CHECKED_ALLOCZ(VAR_0->top_borders[0], VAR_0->s.mb_width * (16+8+8) * sizeof(uint8_t))\nCHECKED_ALLOCZ(VAR_0->top_borders[1], VAR_0->s.mb_width * (16+8+8) * sizeof(uint8_t))\nCHECKED_ALLOCZ(s->allocated_edge_emu_buffer,\n(s->widt...
[ 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 7, 9, 15, 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ] ]
24,783
int ff_MPV_encode_picture(AVCodecContext *avctx, AVPacket *pkt, AVFrame *pic_arg, int *got_packet) { MpegEncContext *s = avctx->priv_data; int i, stuffing_count, ret; int context_count = s->slice_context_count; s->picture_in_gop_number++; if (load_input_picture(s...
true
FFmpeg
f72e0d9a9f516be77d20c6a37dcd34add8f932e3
int ff_MPV_encode_picture(AVCodecContext *avctx, AVPacket *pkt, AVFrame *pic_arg, int *got_packet) { MpegEncContext *s = avctx->priv_data; int i, stuffing_count, ret; int context_count = s->slice_context_count; s->picture_in_gop_number++; if (load_input_picture(s...
{ "code": [ " assert((put_bits_ptr(&s->pb) == s->pb.buf));" ], "line_no": [ 393 ] }
int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1, AVFrame *VAR_2, int *VAR_3) { MpegEncContext *s = VAR_0->priv_data; int VAR_12, VAR_5, VAR_6; int VAR_7 = s->slice_context_count; s->picture_in_gop_number++; if (load_input_picture(s, VAR_2) < 0) return ...
[ "int FUNC_0(AVCodecContext *VAR_0, AVPacket *VAR_1,\nAVFrame *VAR_2, int *VAR_3)\n{", "MpegEncContext *s = VAR_0->priv_data;", "int VAR_12, VAR_5, VAR_6;", "int VAR_7 = s->slice_context_count;", "s->picture_in_gop_number++;", "if (load_input_picture(s, VAR_2) < 0)\nreturn -1;", "if (select_input_picture...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 29 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45, 47 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [...
24,784
static int check_slice_end(RV34DecContext *r, MpegEncContext *s) { int bits; if(s->mb_y >= s->mb_height) return 1; if(!s->mb_num_left) return 1; if(r->s.mb_skip_run > 1) return 0; bits = get_bits_left(&s->gb); if(bits < 0 || (bits < 8 && !show_bits(&s->gb, bits)...
false
FFmpeg
2d0b4bc4cf92dd961dbafbff3f1f4a9e08a9565b
static int check_slice_end(RV34DecContext *r, MpegEncContext *s) { int bits; if(s->mb_y >= s->mb_height) return 1; if(!s->mb_num_left) return 1; if(r->s.mb_skip_run > 1) return 0; bits = get_bits_left(&s->gb); if(bits < 0 || (bits < 8 && !show_bits(&s->gb, bits)...
{ "code": [], "line_no": [] }
static int FUNC_0(RV34DecContext *VAR_0, MpegEncContext *VAR_1) { int VAR_2; if(VAR_1->mb_y >= VAR_1->mb_height) return 1; if(!VAR_1->mb_num_left) return 1; if(VAR_0->VAR_1.mb_skip_run > 1) return 0; VAR_2 = get_bits_left(&VAR_1->gb); if(VAR_2 < 0 || (VAR_2 < 8 ...
[ "static int FUNC_0(RV34DecContext *VAR_0, MpegEncContext *VAR_1)\n{", "int VAR_2;", "if(VAR_1->mb_y >= VAR_1->mb_height)\nreturn 1;", "if(!VAR_1->mb_num_left)\nreturn 1;", "if(VAR_0->VAR_1.mb_skip_run > 1)\nreturn 0;", "VAR_2 = get_bits_left(&VAR_1->gb);", "if(VAR_2 < 0 || (VAR_2 < 8 && !show_bits(&VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7, 9 ], [ 11, 13 ], [ 15, 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ] ]
24,785
static int alloc_frame_buffer(AVCodecContext *avctx, Picture *pic, MotionEstContext *me, ScratchpadContext *sc, int chroma_x_shift, int chroma_y_shift, int linesize, int uvlinesize) { int edges_needed = av_codec_is_encod...
false
FFmpeg
bb4c9d0a8ead02f7d943c2bae3e36b30e605b30b
static int alloc_frame_buffer(AVCodecContext *avctx, Picture *pic, MotionEstContext *me, ScratchpadContext *sc, int chroma_x_shift, int chroma_y_shift, int linesize, int uvlinesize) { int edges_needed = av_codec_is_encod...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, Picture *VAR_1, MotionEstContext *VAR_2, ScratchpadContext *VAR_3, int VAR_4, int VAR_5, int VAR_6, int VAR_7) { int VAR_8 = av_codec_is_encoder(VAR_0->codec); int VAR_9, VAR...
[ "static int FUNC_0(AVCodecContext *VAR_0, Picture *VAR_1,\nMotionEstContext *VAR_2, ScratchpadContext *VAR_3,\nint VAR_4, int VAR_5,\nint VAR_6, int VAR_7)\n{", "int VAR_8 = av_codec_is_encoder(VAR_0->codec);", "int VAR_9, VAR_10;", "VAR_1->tf.f = VAR_1->f;", "if (VAR_0->codec_id != AV_CODEC_ID_WMV3IMAGE &...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19, 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 53 ...
24,786
void ff_avg_h264_qpel4_mc32_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_midh_qrt_and_aver_dst_4w_msa(src - (2 * stride) - 2, stride, dst, stride, 4, 1); }
false
FFmpeg
72dbc610be3272ba36603f78a39cc2d2d8fe0cc3
void ff_avg_h264_qpel4_mc32_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_midh_qrt_and_aver_dst_4w_msa(src - (2 * stride) - 2, stride, dst, stride, 4, 1); }
{ "code": [], "line_no": [] }
void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1, ptrdiff_t VAR_2) { avc_luma_midh_qrt_and_aver_dst_4w_msa(VAR_1 - (2 * VAR_2) - 2, VAR_2, VAR_0, VAR_2, 4, 1); }
[ "void FUNC_0(uint8_t *VAR_0, const uint8_t *VAR_1,\nptrdiff_t VAR_2)\n{", "avc_luma_midh_qrt_and_aver_dst_4w_msa(VAR_1 - (2 * VAR_2) - 2,\nVAR_2, VAR_0, VAR_2, 4, 1);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7, 9 ], [ 11 ] ]
24,788
static void show_programs(WriterContext *w, AVFormatContext *fmt_ctx) { int i; writer_print_section_header(w, SECTION_ID_PROGRAMS); for (i = 0; i < fmt_ctx->nb_programs; i++) { AVProgram *program = fmt_ctx->programs[i]; if (!program) continue; show_program(w, fm...
false
FFmpeg
e87190f5d20d380608f792ceb14d0def1d80e24b
static void show_programs(WriterContext *w, AVFormatContext *fmt_ctx) { int i; writer_print_section_header(w, SECTION_ID_PROGRAMS); for (i = 0; i < fmt_ctx->nb_programs; i++) { AVProgram *program = fmt_ctx->programs[i]; if (!program) continue; show_program(w, fm...
{ "code": [], "line_no": [] }
static void FUNC_0(WriterContext *VAR_0, AVFormatContext *VAR_1) { int VAR_2; writer_print_section_header(VAR_0, SECTION_ID_PROGRAMS); for (VAR_2 = 0; VAR_2 < VAR_1->nb_programs; VAR_2++) { AVProgram *program = VAR_1->programs[VAR_2]; if (!program) continue; sho...
[ "static void FUNC_0(WriterContext *VAR_0, AVFormatContext *VAR_1)\n{", "int VAR_2;", "writer_print_section_header(VAR_0, SECTION_ID_PROGRAMS);", "for (VAR_2 = 0; VAR_2 < VAR_1->nb_programs; VAR_2++) {", "AVProgram *program = VAR_1->programs[VAR_2];", "if (!program)\ncontinue;", "show_program(VAR_0, VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
24,789
static int put_flac_codecpriv(AVFormatContext *s, AVIOContext *pb, AVCodecContext *codec) { int write_comment = (codec->channel_layout && !(codec->channel_layout & ~0x3ffffULL) && !ff_flac_is_native_layout(codec->channel_layout)); ...
false
FFmpeg
66f26b3e8ec075298e7ba329a55893d085bafe96
static int put_flac_codecpriv(AVFormatContext *s, AVIOContext *pb, AVCodecContext *codec) { int write_comment = (codec->channel_layout && !(codec->channel_layout & ~0x3ffffULL) && !ff_flac_is_native_layout(codec->channel_layout)); ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0, AVIOContext *VAR_1, AVCodecContext *VAR_2) { int VAR_3 = (VAR_2->channel_layout && !(VAR_2->channel_layout & ~0x3ffffULL) && !ff_flac_is_native_layout(VAR_2->channel_layout)); int VAR_...
[ "static int FUNC_0(AVFormatContext *VAR_0,\nAVIOContext *VAR_1, AVCodecContext *VAR_2)\n{", "int VAR_3 = (VAR_2->channel_layout &&\n!(VAR_2->channel_layout & ~0x3ffffULL) &&\n!ff_flac_is_native_layout(VAR_2->channel_layout));", "int VAR_4 = ff_flac_write_header(VAR_1, VAR_2->extradata, VAR_2->extradata_size,\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 ]
[ [ 1, 3, 5 ], [ 7, 9, 11 ], [ 13, 15 ], [ 19, 21 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [ 55 ...
24,791
static uint64_t get_cluster_offset(BlockDriverState *bs, uint64_t offset, int *num) { BDRVQcowState *s = bs->opaque; int l1_index, l2_index; uint64_t l2_offset, *l2_table, cluster_offset; int l1_bits, c; int index_in_cluster, nb_available, nb_needed, nb_clusters; ...
true
qemu
f8de16605cf9864e258d91e95be0ed76bdeac744
static uint64_t get_cluster_offset(BlockDriverState *bs, uint64_t offset, int *num) { BDRVQcowState *s = bs->opaque; int l1_index, l2_index; uint64_t l2_offset, *l2_table, cluster_offset; int l1_bits, c; int index_in_cluster, nb_available, nb_needed, nb_clusters; ...
{ "code": [], "line_no": [] }
static uint64_t FUNC_0(BlockDriverState *bs, uint64_t offset, int *num) { BDRVQcowState *s = bs->opaque; int VAR_0, VAR_1; uint64_t l2_offset, *l2_table, cluster_offset; int VAR_2, VAR_3; int VAR_4, VAR_5, VAR_6, VAR_7; VAR_4 = (offset >> 9) & (s->cluster_secto...
[ "static uint64_t FUNC_0(BlockDriverState *bs,\nuint64_t offset, int *num)\n{", "BDRVQcowState *s = bs->opaque;", "int VAR_0, VAR_1;", "uint64_t l2_offset, *l2_table, cluster_offset;", "int VAR_2, VAR_3;", "int VAR_4, VAR_5, VAR_6, VAR_7;", "VAR_4 = (offset >> 9) & (s->cluster_sectors - 1);", "VAR_6 = ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 15 ], [ 17 ], [ 18 ], [ 20 ], [ 21, 22 ], [ 23 ], [ 25, 26 ], [ 28 ], [ 29 ], [ ...
24,792
static int rscc_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { RsccContext *ctx = avctx->priv_data; GetByteContext *gbc = &ctx->gbc; GetByteContext tiles_gbc; AVFrame *frame = data; const uint8_t *pixels, *raw; uint...
true
FFmpeg
b2244fa0a624f7e38893d58265e9c039bed2e4de
static int rscc_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { RsccContext *ctx = avctx->priv_data; GetByteContext *gbc = &ctx->gbc; GetByteContext tiles_gbc; AVFrame *frame = data; const uint8_t *pixels, *raw; uint...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { RsccContext *ctx = VAR_0->priv_data; GetByteContext *gbc = &ctx->gbc; GetByteContext tiles_gbc; AVFrame *frame = VAR_1; const uint8_t *VAR_4, *raw; uint8_t *inflated_...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "RsccContext *ctx = VAR_0->priv_data;", "GetByteContext *gbc = &ctx->gbc;", "GetByteContext tiles_gbc;", "AVFrame *frame = VAR_1;", "const uint8_t *VAR_4, *raw;", "uint8_t *inflated_tiles = NULL;", "int VAR_5, VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 42 ], [ 44, 46 ], [ 48 ], [ 50 ], [ 56 ], [ 66 ...
24,793
static int64_t wrap_timestamp(AVStream *st, int64_t timestamp) { if (st->pts_wrap_behavior != AV_PTS_WRAP_IGNORE && st->pts_wrap_bits < 64 && st->pts_wrap_reference != AV_NOPTS_VALUE && timestamp != AV_NOPTS_VALUE) { if (st->pts_wrap_behavior == AV_PTS_WRAP_ADD_OFFSET && timestamp <...
true
FFmpeg
1662bd350a470f1cbd5c2cc9a0e1bfaa8543033f
static int64_t wrap_timestamp(AVStream *st, int64_t timestamp) { if (st->pts_wrap_behavior != AV_PTS_WRAP_IGNORE && st->pts_wrap_bits < 64 && st->pts_wrap_reference != AV_NOPTS_VALUE && timestamp != AV_NOPTS_VALUE) { if (st->pts_wrap_behavior == AV_PTS_WRAP_ADD_OFFSET && timestamp <...
{ "code": [ " return timestamp + (1LL<<st->pts_wrap_bits);", " return timestamp - (1LL<<st->pts_wrap_bits);" ], "line_no": [ 13, 19 ] }
static int64_t FUNC_0(AVStream *st, int64_t timestamp) { if (st->pts_wrap_behavior != AV_PTS_WRAP_IGNORE && st->pts_wrap_bits < 64 && st->pts_wrap_reference != AV_NOPTS_VALUE && timestamp != AV_NOPTS_VALUE) { if (st->pts_wrap_behavior == AV_PTS_WRAP_ADD_OFFSET && timestamp < st->pts...
[ "static int64_t FUNC_0(AVStream *st, int64_t timestamp)\n{", "if (st->pts_wrap_behavior != AV_PTS_WRAP_IGNORE && st->pts_wrap_bits < 64 &&\nst->pts_wrap_reference != AV_NOPTS_VALUE && timestamp != AV_NOPTS_VALUE) {", "if (st->pts_wrap_behavior == AV_PTS_WRAP_ADD_OFFSET &&\ntimestamp < st->pts_wrap_reference)\nr...
[ 0, 0, 1, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11, 13 ], [ 15, 17, 19 ], [ 21 ], [ 23 ], [ 25 ] ]
24,795
static void write_section_data(AVFormatContext *s, MpegTSFilter *tss1, const uint8_t *buf, int buf_size, int is_start) { MpegTSContext *ts = s->priv_data; MpegTSSectionFilter *tss = &tss1->u.section_filter; int len; if (is_start) { memcpy(tss->section_buf,...
true
FFmpeg
8635954335061ea4c03d3f492b7bc803ea740d9c
static void write_section_data(AVFormatContext *s, MpegTSFilter *tss1, const uint8_t *buf, int buf_size, int is_start) { MpegTSContext *ts = s->priv_data; MpegTSSectionFilter *tss = &tss1->u.section_filter; int len; if (is_start) { memcpy(tss->section_buf,...
{ "code": [ "static void write_section_data(AVFormatContext *s, MpegTSFilter *tss1,", " MpegTSContext *ts = s->priv_data;" ], "line_no": [ 1, 7 ] }
static void FUNC_0(AVFormatContext *VAR_0, MpegTSFilter *VAR_1, const uint8_t *VAR_2, int VAR_3, int VAR_4) { MpegTSContext *ts = VAR_0->priv_data; MpegTSSectionFilter *tss = &VAR_1->u.section_filter; int VAR_5; if (VAR_4) { memcpy(tss->section_buf, VAR_2,...
[ "static void FUNC_0(AVFormatContext *VAR_0, MpegTSFilter *VAR_1,\nconst uint8_t *VAR_2, int VAR_3, int VAR_4)\n{", "MpegTSContext *ts = VAR_0->priv_data;", "MpegTSSectionFilter *tss = &VAR_1->u.section_filter;", "int VAR_5;", "if (VAR_4) {", "memcpy(tss->section_buf, VAR_2, VAR_3);", "tss->section_index...
[ 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 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39 ], [ 41 ], [ 47 ], [ 49 ], [...
24,796
bool migrate_auto_converge(void) { MigrationState *s; s = migrate_get_current(); return s->enabled_capabilities[MIGRATION_CAPABILITY_AUTO_CONVERGE]; }
true
qemu
60fe637bf0e4d7989e21e50f52526444765c63b4
bool migrate_auto_converge(void) { MigrationState *s; s = migrate_get_current(); return s->enabled_capabilities[MIGRATION_CAPABILITY_AUTO_CONVERGE]; }
{ "code": [], "line_no": [] }
bool FUNC_0(void) { MigrationState *s; s = migrate_get_current(); return s->enabled_capabilities[MIGRATION_CAPABILITY_AUTO_CONVERGE]; }
[ "bool FUNC_0(void)\n{", "MigrationState *s;", "s = migrate_get_current();", "return s->enabled_capabilities[MIGRATION_CAPABILITY_AUTO_CONVERGE];", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 13 ], [ 15 ] ]
24,797
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_end = buf + buf_size; DPCMContext *s = avctx->priv_data; int out = 0, ret; ...
true
FFmpeg
529a25d6e5c3ff889257a57042872d84dc2312d5
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_end = buf + buf_size; DPCMContext *s = avctx->priv_data; int out = 0, ret; ...
{ "code": [ " uint8_t *output_samples_u8 = data;" ], "line_no": [ 237 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; const uint8_t *VAR_6 = VAR_4 + VAR_5; DPCMContext *s = VAR_0->priv_data; int VAR_7 = 0, VAR_8; int VAR_9[2]; ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "const uint8_t *VAR_6 = VAR_4 + VAR_5;", "DPCMContext *s = VAR_0->priv_data;", "int VAR_7 = 0, VAR_8;", "int VAR_9[2];", "int VAR_10 = 0;", "i...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 29 ], [ 31, 33 ], [ 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 49,...
24,798
static int get_cluster_table(BlockDriverState *bs, uint64_t offset, uint64_t **new_l2_table, uint64_t *new_l2_offset, int *new_l2_index) { BDRVQcowState *s = bs->opaque; unsigned int l1_index, l2_index; uint64_t l2...
true
qemu
16fde5f2c2788232b16c06d34d0459a5c1ec1f6c
static int get_cluster_table(BlockDriverState *bs, uint64_t offset, uint64_t **new_l2_table, uint64_t *new_l2_offset, int *new_l2_index) { BDRVQcowState *s = bs->opaque; unsigned int l1_index, l2_index; uint64_t l2...
{ "code": [ " if (l2_offset)", " qcow2_free_clusters(bs, l2_offset, s->l2_size * sizeof(uint64_t));" ], "line_no": [ 67, 69 ] }
static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1, uint64_t **VAR_2, uint64_t *VAR_3, int *VAR_4) { BDRVQcowState *s = VAR_0->opaque; unsigned int VAR_5, VAR_6; uint64_t l2_offset; uint64_t *l2_table =...
[ "static int FUNC_0(BlockDriverState *VAR_0, uint64_t VAR_1,\nuint64_t **VAR_2,\nuint64_t *VAR_3,\nint *VAR_4)\n{", "BDRVQcowState *s = VAR_0->opaque;", "unsigned int VAR_5, VAR_6;", "uint64_t l2_offset;", "uint64_t *l2_table = NULL;", "int VAR_7;", "VAR_5 = VAR_1 >> (s->l2_bits + s->cluster_bits);", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 49 ], [ 53 ], [ 55 ], [ 57 ], [...
24,799
static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height) { const uint8_t *frame_start = frame; const uint8_t *frame_end = frame + width * height; int mask = 0x10000, bitbuf = 0; int i, v, offset, count, segments; segments = bytestream2_get_le16(gb); while (seg...
true
FFmpeg
f52fbf4f3ed02a7d872d8a102006f29b4421f360
static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height) { const uint8_t *frame_start = frame; const uint8_t *frame_end = frame + width * height; int mask = 0x10000, bitbuf = 0; int i, v, offset, count, segments; segments = bytestream2_get_le16(gb); while (seg...
{ "code": [ " if (frame_end - frame < width + 3)" ], "line_no": [ 69 ] }
static int FUNC_0(GetByteContext *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3) { const uint8_t *VAR_4 = VAR_1; const uint8_t *VAR_5 = VAR_1 + VAR_2 * VAR_3; int VAR_6 = 0x10000, VAR_7 = 0; int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12; VAR_12 = bytestream2_get_le16(VAR_0); while (VAR_12--)...
[ "static int FUNC_0(GetByteContext *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3)\n{", "const uint8_t *VAR_4 = VAR_1;", "const uint8_t *VAR_5 = VAR_1 + VAR_2 * VAR_3;", "int VAR_6 = 0x10000, VAR_7 = 0;", "int VAR_8, VAR_9, VAR_10, VAR_11, VAR_12;", "VAR_12 = bytestream2_get_le16(VAR_0);", "while (VAR_12...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19, 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47,...
24,800
int ff_hevc_decode_short_term_rps(GetBitContext *gb, AVCodecContext *avctx, ShortTermRPS *rps, const HEVCSPS *sps, int is_slice_header) { uint8_t rps_predict = 0; int delta_poc; int k0 = 0; int k1 = 0; int k = 0; int i; if (rps != sps->st_rps && ...
true
FFmpeg
2b44dcbc44e99daf9515753e9fd4c2e1ea53a2fa
int ff_hevc_decode_short_term_rps(GetBitContext *gb, AVCodecContext *avctx, ShortTermRPS *rps, const HEVCSPS *sps, int is_slice_header) { uint8_t rps_predict = 0; int delta_poc; int k0 = 0; int k1 = 0; int k = 0; int i; if (rps != sps->st_rps && ...
{ "code": [], "line_no": [] }
int FUNC_0(GetBitContext *VAR_0, AVCodecContext *VAR_1, ShortTermRPS *VAR_2, const HEVCSPS *VAR_3, int VAR_4) { uint8_t rps_predict = 0; int VAR_5; int VAR_6 = 0; int VAR_7 = 0; int VAR_8 = 0; int VAR_9; if (VAR_2 != VAR_3->st_rps && VAR_3->nb_st...
[ "int FUNC_0(GetBitContext *VAR_0, AVCodecContext *VAR_1,\nShortTermRPS *VAR_2, const HEVCSPS *VAR_3, int VAR_4)\n{", "uint8_t rps_predict = 0;", "int VAR_5;", "int VAR_6 = 0;", "int VAR_7 = 0;", "int VAR_8 = 0;", "int VAR_9;", "if (VAR_2 != VAR_3->st_rps && VAR_3->nb_st_rps)\nrps_predict = get_bits1(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 48, 50 ], [...
24,801
static ssize_t nic_receive(VLANClientState *vc, const uint8_t * buf, size_t size) { /* TODO: * - Magic packets should set bit 30 in power management driver register. * - Interesting packets should set bit 29 in power management driver register. */ EEPRO100State *s = vc->opaque; uint16_...
true
qemu
7f1e9d4e138f5baf1e862a1221ba13eee7dcce9e
static ssize_t nic_receive(VLANClientState *vc, const uint8_t * buf, size_t size) { EEPRO100State *s = vc->opaque; uint16_t rfd_status = 0xa000; static const uint8_t broadcast_macaddr[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; assert(!(s->configuration[20] & BIT(6)));...
{ "code": [ " assert(!(s->configuration[20] & BIT(6)));", " assert(!(s->configuration[21] & BIT(3)));", " assert(size <= rfd_size);", " assert(!(s->configuration[18] & 4));", " assert(0);" ], "line_no": [ 25, 83, 143, 167, 187 ] }
static ssize_t FUNC_0(VLANClientState *vc, const uint8_t * buf, size_t size) { EEPRO100State *s = vc->opaque; uint16_t rfd_status = 0xa000; static const uint8_t VAR_0[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; assert(!(s->configuration[20] & BIT(6))); if (s->co...
[ "static ssize_t FUNC_0(VLANClientState *vc, const uint8_t * buf, size_t size)\n{", "EEPRO100State *s = vc->opaque;", "uint16_t rfd_status = 0xa000;", "static const uint8_t VAR_0[6] =\n{ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };", "assert(!(s->configuration[20] & BIT(6)));", "if (s->configuration[8] & 0x80) {"...
[ 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 13 ], [ 15 ], [ 17, 19 ], [ 25 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 43 ], [ 45 ], [ 49 ], [ 55 ], [ 57 ], [ 59 ], [ 65 ], [ 67 ], [ 71 ], [ 73 ], ...
24,802
static BlockAIOCB *read_quorum_children(QuorumAIOCB *acb) { BDRVQuorumState *s = acb->common.bs->opaque; int i; for (i = 0; i < s->num_children; i++) { acb->qcrs[i].buf = qemu_blockalign(s->children[i]->bs, acb->qiov->size); qemu_iovec_init(&acb->qcrs[i].qiov, acb->qiov->niov); ...
true
qemu
b9c600d20716b3d942cb07188ff998fb236a8365
static BlockAIOCB *read_quorum_children(QuorumAIOCB *acb) { BDRVQuorumState *s = acb->common.bs->opaque; int i; for (i = 0; i < s->num_children; i++) { acb->qcrs[i].buf = qemu_blockalign(s->children[i]->bs, acb->qiov->size); qemu_iovec_init(&acb->qcrs[i].qiov, acb->qiov->niov); ...
{ "code": [ " bdrv_aio_readv(s->children[i]->bs, acb->sector_num, &acb->qcrs[i].qiov,", " acb->nb_sectors, quorum_aio_cb, &acb->qcrs[i]);" ], "line_no": [ 25, 27 ] }
static BlockAIOCB *FUNC_0(QuorumAIOCB *acb) { BDRVQuorumState *s = acb->common.bs->opaque; int VAR_0; for (VAR_0 = 0; VAR_0 < s->num_children; VAR_0++) { acb->qcrs[VAR_0].buf = qemu_blockalign(s->children[VAR_0]->bs, acb->qiov->size); qemu_iovec_init(&acb->qcrs[VAR_0].qiov, acb->qiov...
[ "static BlockAIOCB *FUNC_0(QuorumAIOCB *acb)\n{", "BDRVQuorumState *s = acb->common.bs->opaque;", "int VAR_0;", "for (VAR_0 = 0; VAR_0 < s->num_children; VAR_0++) {", "acb->qcrs[VAR_0].buf = qemu_blockalign(s->children[VAR_0]->bs, acb->qiov->size);", "qemu_iovec_init(&acb->qcrs[VAR_0].qiov, acb->qiov->nio...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 33 ], [ 35 ] ]
24,803
static int flac_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { FLACContext *s = avctx->priv_data; int metadata_last, metadata_type, metadata_size; int tmp = 0, i, j = 0, input_buf_size = 0; int1...
true
FFmpeg
09f20d37867baaa0122ffdd75f0481b2b3a08079
static int flac_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { FLACContext *s = avctx->priv_data; int metadata_last, metadata_type, metadata_size; int tmp = 0, i, j = 0, input_buf_size = 0; int1...
{ "code": [ " buf_size= FFMIN(buf_size, s->max_framesize - s->bitstream_size);", " buf= &s->bitstream[s->bitstream_index];", " init_get_bits(&s->gb, buf, buf_size*8);", " skip_bits(&s->gb, bits_count);" ], "line_no": [ 31, ...
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { FLACContext *s = VAR_0->priv_data; int VAR_5, VAR_6, VAR_7; int VAR_8 = 0, VAR_9, VAR_10 = 0, VAR_11 = 0; int16_t *samples = VAR_1; if(s->m...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "FLACContext *s = VAR_0->priv_data;", "int VAR_5, VAR_6, VAR_7;", "int VAR_8 = 0, VAR_9, VAR_10 = 0, VAR_11 = 0;", "int16_t *samples = VAR_1;", "if(s->max_framesize == 0){", "s->max_framesize= 8192;", ...
[ 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, 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...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ...
24,804
static void dump_video_param(AVCodecContext *avctx, QSVEncContext *q, mfxExtBuffer **coding_opts) { mfxInfoMFX *info = &q->param.mfx; mfxExtCodingOption *co = (mfxExtCodingOption*)coding_opts[0]; #if QSV_HAVE_CO2 mfxExtCodingOption2 *co2 = (mfxExtCodingOption2*)coding_...
false
FFmpeg
fc4c27c4edfc6a5f9bc7c696e823652474a65ce8
static void dump_video_param(AVCodecContext *avctx, QSVEncContext *q, mfxExtBuffer **coding_opts) { mfxInfoMFX *info = &q->param.mfx; mfxExtCodingOption *co = (mfxExtCodingOption*)coding_opts[0]; #if QSV_HAVE_CO2 mfxExtCodingOption2 *co2 = (mfxExtCodingOption2*)coding_...
{ "code": [], "line_no": [] }
static void FUNC_0(AVCodecContext *VAR_0, QSVEncContext *VAR_1, mfxExtBuffer **VAR_2) { mfxInfoMFX *info = &VAR_1->param.mfx; mfxExtCodingOption *co = (mfxExtCodingOption*)VAR_2[0]; #if QSV_HAVE_CO2 mfxExtCodingOption2 *co2 = (mfxExtCodingOption2*)VAR_2[1]; #endif #i...
[ "static void FUNC_0(AVCodecContext *VAR_0, QSVEncContext *VAR_1,\nmfxExtBuffer **VAR_2)\n{", "mfxInfoMFX *info = &VAR_1->param.mfx;", "mfxExtCodingOption *co = (mfxExtCodingOption*)VAR_2[0];", "#if QSV_HAVE_CO2\nmfxExtCodingOption2 *co2 = (mfxExtCodingOption2*)VAR_2[1];", "#endif\n#if QSV_HAVE_CO3\nmfxExt...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13, 15 ], [ 17, 19, 21 ], [ 23, 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41, 43 ], [ 45 ], [ 49 ], [ 51 ], [ 55, 57, 59, 61...
24,805
static void *alloc_buffer(FFVAContext *vactx, int type, unsigned int size, uint32_t *buf_id) { void *data = NULL; *buf_id = 0; if (vaCreateBuffer(vactx->display, vactx->context_id, type, size, 1, NULL, buf_id) == VA_STATUS_SUCCESS) vaMapBuffer(vactx->display, *buf_id, ...
false
FFmpeg
8813d55fa5978660d9f4e7dbe1f50da9922be08d
static void *alloc_buffer(FFVAContext *vactx, int type, unsigned int size, uint32_t *buf_id) { void *data = NULL; *buf_id = 0; if (vaCreateBuffer(vactx->display, vactx->context_id, type, size, 1, NULL, buf_id) == VA_STATUS_SUCCESS) vaMapBuffer(vactx->display, *buf_id, ...
{ "code": [], "line_no": [] }
static void *FUNC_0(FFVAContext *VAR_0, int VAR_1, unsigned int VAR_2, uint32_t *VAR_3) { void *VAR_4 = NULL; *VAR_3 = 0; if (vaCreateBuffer(VAR_0->display, VAR_0->context_id, VAR_1, VAR_2, 1, NULL, VAR_3) == VA_STATUS_SUCCESS) vaMapBuffer(VAR_0->display, *VAR_3, &VAR_...
[ "static void *FUNC_0(FFVAContext *VAR_0, int VAR_1, unsigned int VAR_2, uint32_t *VAR_3)\n{", "void *VAR_4 = NULL;", "*VAR_3 = 0;", "if (vaCreateBuffer(VAR_0->display, VAR_0->context_id,\nVAR_1, VAR_2, 1, NULL, VAR_3) == VA_STATUS_SUCCESS)\nvaMapBuffer(VAR_0->display, *VAR_3, &VAR_4);", "return VAR_4;", "...
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11, 13, 15 ], [ 19 ], [ 21 ] ]
24,807
void ff_http_auth_handle_header(HTTPAuthState *state, const char *key, const char *value) { if (!strcmp(key, "WWW-Authenticate") || !strcmp(key, "Proxy-Authenticate")) { const char *p; if (av_stristart(value, "Basic ", &p) && state->auth_type <= HTTP...
false
FFmpeg
8f0bd1d9bad5b8aa42b5b4cec103cc4afed5eab6
void ff_http_auth_handle_header(HTTPAuthState *state, const char *key, const char *value) { if (!strcmp(key, "WWW-Authenticate") || !strcmp(key, "Proxy-Authenticate")) { const char *p; if (av_stristart(value, "Basic ", &p) && state->auth_type <= HTTP...
{ "code": [], "line_no": [] }
void FUNC_0(HTTPAuthState *VAR_0, const char *VAR_1, const char *VAR_2) { if (!strcmp(VAR_1, "WWW-Authenticate") || !strcmp(VAR_1, "Proxy-Authenticate")) { const char *VAR_3; if (av_stristart(VAR_2, "Basic ", &VAR_3) && VAR_0->auth_type <= HTTP_AUTH_...
[ "void FUNC_0(HTTPAuthState *VAR_0, const char *VAR_1,\nconst char *VAR_2)\n{", "if (!strcmp(VAR_1, \"WWW-Authenticate\") || !strcmp(VAR_1, \"Proxy-Authenticate\")) {", "const char *VAR_3;", "if (av_stristart(VAR_2, \"Basic \", &VAR_3) &&\nVAR_0->auth_type <= HTTP_AUTH_BASIC) {", "VAR_0->auth_type = HTTP_AUT...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37, 39 ], [ 41, 43 ], [ 45, 47 ...
24,808
void ff_thread_report_progress(ThreadFrame *f, int n, int field) { PerThreadContext *p; atomic_int *progress = f->progress ? (atomic_int*)f->progress->data : NULL; if (!progress || atomic_load_explicit(&progress[field], memory_order_acquire) >= n) return; p = f->owner->interna...
false
FFmpeg
343e2833994655c252d5236a3394bf6db7a4d8b1
void ff_thread_report_progress(ThreadFrame *f, int n, int field) { PerThreadContext *p; atomic_int *progress = f->progress ? (atomic_int*)f->progress->data : NULL; if (!progress || atomic_load_explicit(&progress[field], memory_order_acquire) >= n) return; p = f->owner->interna...
{ "code": [], "line_no": [] }
void FUNC_0(ThreadFrame *VAR_0, int VAR_1, int VAR_2) { PerThreadContext *p; atomic_int *progress = VAR_0->progress ? (atomic_int*)VAR_0->progress->data : NULL; if (!progress || atomic_load_explicit(&progress[VAR_2], memory_order_acquire) >= VAR_1) return; p = VAR_0->owner->in...
[ "void FUNC_0(ThreadFrame *VAR_0, int VAR_1, int VAR_2)\n{", "PerThreadContext *p;", "atomic_int *progress = VAR_0->progress ? (atomic_int*)VAR_0->progress->data : NULL;", "if (!progress ||\natomic_load_explicit(&progress[VAR_2], memory_order_acquire) >= VAR_1)\nreturn;", "p = VAR_0->owner->internal->thread_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13, 15 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ] ]
24,809
static void mxf_write_system_item(AVFormatContext *s) { MXFContext *mxf = s->priv_data; AVIOContext *pb = s->pb; unsigned frame; uint32_t time_code; frame = mxf->last_indexed_edit_unit + mxf->edit_units_count; // write system metadata pack avio_write(pb, system_metadata_pack_key,...
true
FFmpeg
3896cd11a107f241f06b06a336322aef2f372fdd
static void mxf_write_system_item(AVFormatContext *s) { MXFContext *mxf = s->priv_data; AVIOContext *pb = s->pb; unsigned frame; uint32_t time_code; frame = mxf->last_indexed_edit_unit + mxf->edit_units_count; avio_write(pb, system_metadata_pack_key, 16); klv_encode_ber4_le...
{ "code": [], "line_no": [] }
static void FUNC_0(AVFormatContext *VAR_0) { MXFContext *mxf = VAR_0->priv_data; AVIOContext *pb = VAR_0->pb; unsigned VAR_1; uint32_t time_code; VAR_1 = mxf->last_indexed_edit_unit + mxf->edit_units_count; avio_write(pb, system_metadata_pack_key, 16); klv_encode_ber4_lengt...
[ "static void FUNC_0(AVFormatContext *VAR_0)\n{", "MXFContext *mxf = VAR_0->priv_data;", "AVIOContext *pb = VAR_0->pb;", "unsigned VAR_1;", "uint32_t time_code;", "VAR_1 = mxf->last_indexed_edit_unit + mxf->edit_units_count;", "avio_write(pb, system_metadata_pack_key, 16);", "klv_encode_ber4_length(pb,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [...
24,810
petalogix_ml605_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; MemoryRegion *address_space_mem = get_system_memory(); DeviceState *dev, *dma, *eth0; Object *ds, *cs; MicroBlazeCPU *cpu; SysBusDevice *busdev; DriveInfo *dinfo; int i; MemoryRegion *phy...
true
qemu
f8ed85ac992c48814d916d5df4d44f9a971c5de4
petalogix_ml605_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; MemoryRegion *address_space_mem = get_system_memory(); DeviceState *dev, *dma, *eth0; Object *ds, *cs; MicroBlazeCPU *cpu; SysBusDevice *busdev; DriveInfo *dinfo; int i; MemoryRegion *phy...
{ "code": [ " &error_abort);", " &error_abort);", " &error_abort);", " &error_abort);", " &error_abort);", " &error_abort);", " ...
FUNC_0(MachineState *VAR_0) { ram_addr_t ram_size = VAR_0->ram_size; MemoryRegion *address_space_mem = get_system_memory(); DeviceState *dev, *dma, *eth0; Object *ds, *cs; MicroBlazeCPU *cpu; SysBusDevice *busdev; DriveInfo *dinfo; int VAR_1; MemoryRegion *phys_lmb_bram = g...
[ "FUNC_0(MachineState *VAR_0)\n{", "ram_addr_t ram_size = VAR_0->ram_size;", "MemoryRegion *address_space_mem = get_system_memory();", "DeviceState *dev, *dma, *eth0;", "Object *ds, *cs;", "MicroBlazeCPU *cpu;", "SysBusDevice *busdev;", "DriveInfo *dinfo;", "int VAR_1;", "MemoryRegion *phys_lmb_bra...
[ 0, 0, 0, 0, 0, 0, 0, 0, 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, 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 ], [ 31 ], [ 39 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 53, 55 ], [ 57 ...
24,811
static FILE *probe_splashfile(char *filename, int *file_sizep, int *file_typep) { FILE *fp = NULL; int fop_ret; int file_size; int file_type = -1; unsigned char buf[2] = {0, 0}; unsigned int filehead_value = 0; int bmp_bpp; fp = fopen(filename, "rb"); if (fp == NULL) { ...
true
qemu
257a7375582e4c3b32687c72d0f52279d28b2d85
static FILE *probe_splashfile(char *filename, int *file_sizep, int *file_typep) { FILE *fp = NULL; int fop_ret; int file_size; int file_type = -1; unsigned char buf[2] = {0, 0}; unsigned int filehead_value = 0; int bmp_bpp; fp = fopen(filename, "rb"); if (fp == NULL) { ...
{ "code": [], "line_no": [] }
static FILE *FUNC_0(char *filename, int *file_sizep, int *file_typep) { FILE *fp = NULL; int VAR_0; int VAR_1; int VAR_2 = -1; unsigned char VAR_3[2] = {0, 0}; unsigned int VAR_4 = 0; int VAR_5; fp = fopen(filename, "rb"); if (fp == NULL) { error_report("failed t...
[ "static FILE *FUNC_0(char *filename, int *file_sizep, int *file_typep)\n{", "FILE *fp = NULL;", "int VAR_0;", "int VAR_1;", "int VAR_2 = -1;", "unsigned char VAR_3[2] = {0, 0};", "unsigned int VAR_4 = 0;", "int VAR_5;", "fp = fopen(filename, \"rb\");", "if (fp == NULL) {", "error_report(\"failed...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 45 ], [ 47 ], [ 56 ], [ 58 ], [ 60 ...
24,812
vmxnet3_read_next_rx_descr(VMXNET3State *s, int qidx, int ridx, struct Vmxnet3_RxDesc *dbuf, uint32_t *didx) { Vmxnet3Ring *ring = &s->rxq_descr[qidx].rx_ring[ridx]; *didx = vmxnet3_ring_curr_cell_idx(ring); vmxnet3_ring_read_curr_cell(ring, dbuf); }
true
qemu
c508277335e3b6b20cf18e6ea3a35c1fa835c64a
vmxnet3_read_next_rx_descr(VMXNET3State *s, int qidx, int ridx, struct Vmxnet3_RxDesc *dbuf, uint32_t *didx) { Vmxnet3Ring *ring = &s->rxq_descr[qidx].rx_ring[ridx]; *didx = vmxnet3_ring_curr_cell_idx(ring); vmxnet3_ring_read_curr_cell(ring, dbuf); }
{ "code": [ " vmxnet3_ring_read_curr_cell(ring, dbuf);" ], "line_no": [ 11 ] }
FUNC_0(VMXNET3State *VAR_0, int VAR_1, int VAR_2, struct Vmxnet3_RxDesc *VAR_3, uint32_t *VAR_4) { Vmxnet3Ring *ring = &VAR_0->rxq_descr[VAR_1].rx_ring[VAR_2]; *VAR_4 = vmxnet3_ring_curr_cell_idx(ring); vmxnet3_ring_read_curr_cell(ring, VAR_3); }
[ "FUNC_0(VMXNET3State *VAR_0, int VAR_1, int VAR_2,\nstruct Vmxnet3_RxDesc *VAR_3, uint32_t *VAR_4)\n{", "Vmxnet3Ring *ring = &VAR_0->rxq_descr[VAR_1].rx_ring[VAR_2];", "*VAR_4 = vmxnet3_ring_curr_cell_idx(ring);", "vmxnet3_ring_read_curr_cell(ring, VAR_3);", "}" ]
[ 0, 0, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ] ]
24,814
static av_cold int aac_encode_end(AVCodecContext *avctx) { AACEncContext *s = avctx->priv_data; ff_mdct_end(&s->mdct1024); ff_mdct_end(&s->mdct128); ff_psy_end(&s->psy); ff_psy_preprocess_end(s->psypp); av_freep(&s->samples); av_freep(&s->cpe); return 0; }
true
FFmpeg
17ae608127324cabd083202a32a8dc210d30c3a1
static av_cold int aac_encode_end(AVCodecContext *avctx) { AACEncContext *s = avctx->priv_data; ff_mdct_end(&s->mdct1024); ff_mdct_end(&s->mdct128); ff_psy_end(&s->psy); ff_psy_preprocess_end(s->psypp); av_freep(&s->samples); av_freep(&s->cpe); return 0; }
{ "code": [ "static av_cold int aac_encode_end(AVCodecContext *avctx)", " AACEncContext *s = avctx->priv_data;", " ff_mdct_end(&s->mdct1024);", " ff_mdct_end(&s->mdct128);", " ff_psy_end(&s->psy);", " ff_psy_preprocess_end(s->psypp);", " av_freep(&s->samples);", " ...
static av_cold int FUNC_0(AVCodecContext *avctx) { AACEncContext *s = avctx->priv_data; ff_mdct_end(&s->mdct1024); ff_mdct_end(&s->mdct128); ff_psy_end(&s->psy); ff_psy_preprocess_end(s->psypp); av_freep(&s->samples); av_freep(&s->cpe); return 0; }
[ "static av_cold int FUNC_0(AVCodecContext *avctx)\n{", "AACEncContext *s = avctx->priv_data;", "ff_mdct_end(&s->mdct1024);", "ff_mdct_end(&s->mdct128);", "ff_psy_end(&s->psy);", "ff_psy_preprocess_end(s->psypp);", "av_freep(&s->samples);", "av_freep(&s->cpe);", "return 0;", "}" ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
24,816
static int rice_count_exact(int32_t *res, int n, int k) { int i; int count = 0; for (i = 0; i < n; i++) { int32_t v = -2 * res[i] - 1; v ^= v >> 31; count += (v >> k) + 1 + k; } return count; }
true
FFmpeg
5ff998a233d759d0de83ea6f95c383d03d25d88e
static int rice_count_exact(int32_t *res, int n, int k) { int i; int count = 0; for (i = 0; i < n; i++) { int32_t v = -2 * res[i] - 1; v ^= v >> 31; count += (v >> k) + 1 + k; } return count; }
{ "code": [ "static int rice_count_exact(int32_t *res, int n, int k)", " int count = 0;", " int count = 0;" ], "line_no": [ 1, 7, 7 ] }
static int FUNC_0(int32_t *VAR_0, int VAR_1, int VAR_2) { int VAR_3; int VAR_4 = 0; for (VAR_3 = 0; VAR_3 < VAR_1; VAR_3++) { int32_t v = -2 * VAR_0[VAR_3] - 1; v ^= v >> 31; VAR_4 += (v >> VAR_2) + 1 + VAR_2; } return VAR_4; }
[ "static int FUNC_0(int32_t *VAR_0, int VAR_1, int VAR_2)\n{", "int VAR_3;", "int VAR_4 = 0;", "for (VAR_3 = 0; VAR_3 < VAR_1; VAR_3++) {", "int32_t v = -2 * VAR_0[VAR_3] - 1;", "v ^= v >> 31;", "VAR_4 += (v >> VAR_2) + 1 + VAR_2;", "}", "return VAR_4;", "}" ]
[ 1, 0, 1, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
24,817
static uint64_t boston_lcd_read(void *opaque, hwaddr addr, unsigned size) { BostonState *s = opaque; uint64_t val = 0; switch (size) { case 8: val |= (uint64_t)s->lcd_content[(addr + 7) & 0x7] << 56; val |= (uint64_t)s->lcd_content[(addr + 6) & 0...
true
qemu
2d896b454a0e19ec4c1ddbb0e0b65b7e54fcedf3
static uint64_t boston_lcd_read(void *opaque, hwaddr addr, unsigned size) { BostonState *s = opaque; uint64_t val = 0; switch (size) { case 8: val |= (uint64_t)s->lcd_content[(addr + 7) & 0x7] << 56; val |= (uint64_t)s->lcd_content[(addr + 6) & 0...
{ "code": [ " BostonState *s = opaque;", "static uint64_t boston_lcd_read(void *opaque, hwaddr addr,", " unsigned size)", " BostonState *s = opaque;", " uint64_t val = 0;", " switch (size) {", " case 8:", " val |= (uint64_t)s->lcd_co...
static uint64_t FUNC_0(void *opaque, hwaddr addr, unsigned size) { BostonState *s = opaque; uint64_t val = 0; switch (size) { case 8: val |= (uint64_t)s->lcd_content[(addr + 7) & 0x7] << 56; val |= (uint64_t)s->lcd_content[(addr + 6) & 0x7] << 48...
[ "static uint64_t FUNC_0(void *opaque, hwaddr addr,\nunsigned size)\n{", "BostonState *s = opaque;", "uint64_t val = 0;", "switch (size) {", "case 8:\nval |= (uint64_t)s->lcd_content[(addr + 7) & 0x7] << 56;", "val |= (uint64_t)s->lcd_content[(addr + 6) & 0x7] << 48;", "val |= (uint64_t)s->lcd_content[(a...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27, 29 ], [ 31 ], [ 35, 37 ], [ 41, 43 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ] ]
24,819
static inline int mix_core(uint32_t multbl[][256], int a, int b, int c, int d){ #if CONFIG_SMALL #define ROT(x,s) ((x<<s)|(x>>(32-s))) return multbl[0][a] ^ ROT(multbl[0][b], 8) ^ ROT(multbl[0][c], 16) ^ ROT(multbl[0][d], 24); #else return multbl[0][a] ^ multbl[1][b] ^ multbl[2][c] ^ multbl[3][d]; #endif ...
true
FFmpeg
5d20f19be25c973fe10d0d17db9245002585710d
static inline int mix_core(uint32_t multbl[][256], int a, int b, int c, int d){ #if CONFIG_SMALL #define ROT(x,s) ((x<<s)|(x>>(32-s))) return multbl[0][a] ^ ROT(multbl[0][b], 8) ^ ROT(multbl[0][c], 16) ^ ROT(multbl[0][d], 24); #else return multbl[0][a] ^ multbl[1][b] ^ multbl[2][c] ^ multbl[3][d]; #endif ...
{ "code": [ "#define ROT(x,s) ((x<<s)|(x>>(32-s)))" ], "line_no": [ 5 ] }
static inline int FUNC_0(uint32_t VAR_0[][256], int VAR_1, int VAR_2, int VAR_3, int VAR_4){ #if CONFIG_SMALL #define ROT(x,s) ((x<<s)|(x>>(32-s))) return VAR_0[0][VAR_1] ^ ROT(VAR_0[0][VAR_2], 8) ^ ROT(VAR_0[0][VAR_3], 16) ^ ROT(VAR_0[0][VAR_4], 24); #else return VAR_0[0][VAR_1] ^ VAR_0[1][VAR_2] ^ VAR_0[...
[ "static inline int FUNC_0(uint32_t VAR_0[][256], int VAR_1, int VAR_2, int VAR_3, int VAR_4){", "#if CONFIG_SMALL\n#define ROT(x,s) ((x<<s)|(x>>(32-s)))\nreturn VAR_0[0][VAR_1] ^ ROT(VAR_0[0][VAR_2], 8) ^ ROT(VAR_0[0][VAR_3], 16) ^ ROT(VAR_0[0][VAR_4], 24);", "#else\nreturn VAR_0[0][VAR_1] ^ VAR_0[1][VAR_2] ^ V...
[ 0, 1, 0, 0 ]
[ [ 1 ], [ 3, 5, 7 ], [ 9, 11 ], [ 13, 15 ] ]
24,820
void ff_generate_sliding_window_mmcos(H264Context *h) { MpegEncContext * const s = &h->s; assert(h->long_ref_count + h->short_ref_count <= h->sps.ref_frame_count); h->mmco_index= 0; if(h->short_ref_count && h->long_ref_count + h->short_ref_count == h->sps.ref_frame_count && !(FIELD_PI...
true
FFmpeg
bad446e251405dc250c3cbee199072e083a1e4b9
void ff_generate_sliding_window_mmcos(H264Context *h) { MpegEncContext * const s = &h->s; assert(h->long_ref_count + h->short_ref_count <= h->sps.ref_frame_count); h->mmco_index= 0; if(h->short_ref_count && h->long_ref_count + h->short_ref_count == h->sps.ref_frame_count && !(FIELD_PI...
{ "code": [ "void ff_generate_sliding_window_mmcos(H264Context *h) {", " h->mmco_index= 0;", " if(h->short_ref_count && h->long_ref_count + h->short_ref_count == h->sps.ref_frame_count &&", " !(FIELD_PICTURE && !s->first_field && s->current_picture_ptr->f.reference)) {", " ...
void FUNC_0(H264Context *VAR_0) { MpegEncContext * const s = &VAR_0->s; assert(VAR_0->long_ref_count + VAR_0->short_ref_count <= VAR_0->sps.ref_frame_count); VAR_0->mmco_index= 0; if(VAR_0->short_ref_count && VAR_0->long_ref_count + VAR_0->short_ref_count == VAR_0->sps.ref_frame_count && ...
[ "void FUNC_0(H264Context *VAR_0) {", "MpegEncContext * const s = &VAR_0->s;", "assert(VAR_0->long_ref_count + VAR_0->short_ref_count <= VAR_0->sps.ref_frame_count);", "VAR_0->mmco_index= 0;", "if(VAR_0->short_ref_count && VAR_0->long_ref_count + VAR_0->short_ref_count == VAR_0->sps.ref_frame_count &&\n!(FIE...
[ 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0 ]
[ [ 1 ], [ 3 ], [ 5 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ] ]
24,821
static unsigned long copy_elf_strings(int argc,char ** argv, void **page, unsigned long p) { char *tmp, *tmp1, *pag = NULL; int len, offset = 0; if (!p) { return 0; /* bullet-proofing */ } while (argc-- > 0) { tmp = argv[argc]; ...
true
qemu
4118a97030aa9bd1d520d1d06bbe0655d829df04
static unsigned long copy_elf_strings(int argc,char ** argv, void **page, unsigned long p) { char *tmp, *tmp1, *pag = NULL; int len, offset = 0; if (!p) { return 0; } while (argc-- > 0) { tmp = argv[argc]; if (!tmp) { fp...
{ "code": [ " unsigned long p)" ], "line_no": [ 3 ] }
static unsigned long FUNC_0(int VAR_0,char ** VAR_1, void **VAR_2, unsigned long VAR_3) { char *VAR_4, *VAR_5, *VAR_6 = NULL; int VAR_7, VAR_8 = 0; if (!VAR_3) { return 0; } while (VAR_0-- > 0) { VAR_4 = VAR_1[VAR_0]; if (!VAR...
[ "static unsigned long FUNC_0(int VAR_0,char ** VAR_1, void **VAR_2,\nunsigned long VAR_3)\n{", "char *VAR_4, *VAR_5, *VAR_6 = NULL;", "int VAR_7, VAR_8 = 0;", "if (!VAR_3) {", "return 0;", "}", "while (VAR_0-- > 0) {", "VAR_4 = VAR_1[VAR_0];", "if (!VAR_4) {", "fprintf(stderr, \"VFS: VAR_0 is wron...
[ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [...
24,822
void fork_end(int child) { mmap_fork_end(child); if (child) { CPUState *cpu, *next_cpu; /* Child processes created by fork() only have a single thread. Discard information about the parent threads. */ CPU_FOREACH_SAFE(cpu, next_cpu) { if (cpu != thread_cpu...
true
qemu
06065c451f10c7ef62cfb575a87f323a70ae1c9e
void fork_end(int child) { mmap_fork_end(child); if (child) { CPUState *cpu, *next_cpu; CPU_FOREACH_SAFE(cpu, next_cpu) { if (cpu != thread_cpu) { QTAILQ_REMOVE(&cpus, cpu, node); } } qemu_mutex_init(&tb_ctx.tb_lock); ...
{ "code": [], "line_no": [] }
void FUNC_0(int VAR_0) { mmap_fork_end(VAR_0); if (VAR_0) { CPUState *cpu, *next_cpu; CPU_FOREACH_SAFE(cpu, next_cpu) { if (cpu != thread_cpu) { QTAILQ_REMOVE(&cpus, cpu, node); } } qemu_mutex_init(&tb_ctx.tb_lock); ...
[ "void FUNC_0(int VAR_0)\n{", "mmap_fork_end(VAR_0);", "if (VAR_0) {", "CPUState *cpu, *next_cpu;", "CPU_FOREACH_SAFE(cpu, next_cpu) {", "if (cpu != thread_cpu) {", "QTAILQ_REMOVE(&cpus, cpu, node);", "}", "}", "qemu_mutex_init(&tb_ctx.tb_lock);", "qemu_init_cpu_list();", "gdbserver_fork(thread...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 34 ], [ 36 ], [ 38 ], [ 41 ], [ 43 ] ]
24,823
static int mpc8_probe(AVProbeData *p) { const uint8_t *bs = p->buf + 4; const uint8_t *bs_end = bs + p->buf_size; int64_t size; if (p->buf_size < 16) return 0; if (AV_RL32(p->buf) != TAG_MPCK) return 0; while (bs < bs_end + 3) { int header_found = (bs[0] == 'S...
true
FFmpeg
b737a2c52857b214be246ff615c6293730033cfa
static int mpc8_probe(AVProbeData *p) { const uint8_t *bs = p->buf + 4; const uint8_t *bs_end = bs + p->buf_size; int64_t size; if (p->buf_size < 16) return 0; if (AV_RL32(p->buf) != TAG_MPCK) return 0; while (bs < bs_end + 3) { int header_found = (bs[0] == 'S...
{ "code": [ " if (bs + size - 2 >= bs_end)" ], "line_no": [ 37 ] }
static int FUNC_0(AVProbeData *VAR_0) { const uint8_t *VAR_1 = VAR_0->buf + 4; const uint8_t *VAR_2 = VAR_1 + VAR_0->buf_size; int64_t size; if (VAR_0->buf_size < 16) return 0; if (AV_RL32(VAR_0->buf) != TAG_MPCK) return 0; while (VAR_1 < VAR_2 + 3) { int VAR_...
[ "static int FUNC_0(AVProbeData *VAR_0)\n{", "const uint8_t *VAR_1 = VAR_0->buf + 4;", "const uint8_t *VAR_2 = VAR_1 + VAR_0->buf_size;", "int64_t size;", "if (VAR_0->buf_size < 16)\nreturn 0;", "if (AV_RL32(VAR_0->buf) != TAG_MPCK)\nreturn 0;", "while (VAR_1 < VAR_2 + 3) {", "int VAR_3 = (VAR_1[0] == ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25, 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 47, 49 ], [...
24,825
static TranslationBlock *tb_find_slow(target_ulong pc, target_ulong cs_base, uint64_t flags) { TranslationBlock *tb, **ptb1; int code_gen_size; unsigned int h; target_ulong phys_pc, phys_page1, phys_page2, virt_page2; ...
true
qemu
d07bde88a52bf293c3f8846cfd162e0a57e1557c
static TranslationBlock *tb_find_slow(target_ulong pc, target_ulong cs_base, uint64_t flags) { TranslationBlock *tb, **ptb1; int code_gen_size; unsigned int h; target_ulong phys_pc, phys_page1, phys_page2, virt_page2; ...
{ "code": [ " cpu_gen_code(env, tb, CODE_GEN_MAX_SIZE, &code_gen_size);", " cpu_gen_code(env, tb, CODE_GEN_MAX_SIZE, &code_gen_size);" ], "line_no": [ 117, 117 ] }
static TranslationBlock *FUNC_0(target_ulong pc, target_ulong cs_base, uint64_t flags) { TranslationBlock *tb, **ptb1; int VAR_0; unsigned int VAR_1; target_ulong phys_pc, phys_page1, phys_page2, virt_page2; uint8_t ...
[ "static TranslationBlock *FUNC_0(target_ulong pc,\ntarget_ulong cs_base,\nuint64_t flags)\n{", "TranslationBlock *tb, **ptb1;", "int VAR_0;", "unsigned int VAR_1;", "target_ulong phys_pc, phys_page1, phys_page2, virt_page2;", "uint8_t *tc_ptr;", "spin_lock(&tb_lock);", "tb_invalidated_flag = 0;", "r...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 25 ], [ 29 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49, 51 ], [ 53, 55,...
24,826
static int decode_block(MJpegDecodeContext *s, DCTELEM *block, int component, int dc_index, int ac_index, int16_t *quant_matrix) { int code, i, j, level, val; VLC *ac_vlc; /* DC coef */ val = mjpeg_decode_dc(s, dc_index); if (val == 0xffff) { dprintf("error ...
false
FFmpeg
002a7414b5852418f9a66245fc414c0416c4b4c1
static int decode_block(MJpegDecodeContext *s, DCTELEM *block, int component, int dc_index, int ac_index, int16_t *quant_matrix) { int code, i, j, level, val; VLC *ac_vlc; val = mjpeg_decode_dc(s, dc_index); if (val == 0xffff) { dprintf("error dc\n"); ...
{ "code": [], "line_no": [] }
static int FUNC_0(MJpegDecodeContext *VAR_0, DCTELEM *VAR_1, int VAR_2, int VAR_3, int VAR_4, int16_t *VAR_5) { int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10; VLC *ac_vlc; VAR_10 = mjpeg_decode_dc(VAR_0, VAR_3); if (VAR_10 == 0xffff) { dprintf("error dc\n"); ...
[ "static int FUNC_0(MJpegDecodeContext *VAR_0, DCTELEM *VAR_1,\nint VAR_2, int VAR_3, int VAR_4, int16_t *VAR_5)\n{", "int VAR_6, VAR_7, VAR_8, VAR_9, VAR_10;", "VLC *ac_vlc;", "VAR_10 = mjpeg_decode_dc(VAR_0, VAR_3);", "if (VAR_10 == 0xffff) {", "dprintf(\"error dc\\n\");", "return -1;", "}", "VAR_1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 49, 51 ], [ 53 ], [...
24,828
static int gif_read_image(GifState *s, AVFrame *frame) { int left, top, width, height, bits_per_pixel, code_size, flags; int is_interleaved, has_local_palette, y, pass, y1, linesize, n, i; uint8_t *ptr, *spal, *palette, *ptr1; left = bytestream_get_le16(&s->bytestream); top = bytestream_get_...
false
FFmpeg
c453723ad7d14abc5e82677eebaa6025fa598f08
static int gif_read_image(GifState *s, AVFrame *frame) { int left, top, width, height, bits_per_pixel, code_size, flags; int is_interleaved, has_local_palette, y, pass, y1, linesize, n, i; uint8_t *ptr, *spal, *palette, *ptr1; left = bytestream_get_le16(&s->bytestream); top = bytestream_get_...
{ "code": [], "line_no": [] }
static int FUNC_0(GifState *VAR_0, AVFrame *VAR_1) { int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8; int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16; uint8_t *ptr, *spal, *palette, *ptr1; VAR_2 = bytestream_get_le16(&VAR_0->bytestream); VAR_3 = bytestream_get_le16(&VAR...
[ "static int FUNC_0(GifState *VAR_0, AVFrame *VAR_1)\n{", "int VAR_2, VAR_3, VAR_4, VAR_5, VAR_6, VAR_7, VAR_8;", "int VAR_9, VAR_10, VAR_11, VAR_12, VAR_13, VAR_14, VAR_15, VAR_16;", "uint8_t *ptr, *spal, *palette, *ptr1;", "VAR_2 = bytestream_get_le16(&VAR_0->bytestream);", "VAR_3 = bytestream_get_le16(&...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
24,831
static int oss_poll_in (HWVoiceIn *hw) { OSSVoiceIn *oss = (OSSVoiceIn *) hw; return qemu_set_fd_handler (oss->fd, oss_helper_poll_in, NULL, NULL); }
true
qemu
b027a538c6790bcfc93ef7f4819fe3e581445959
static int oss_poll_in (HWVoiceIn *hw) { OSSVoiceIn *oss = (OSSVoiceIn *) hw; return qemu_set_fd_handler (oss->fd, oss_helper_poll_in, NULL, NULL); }
{ "code": [ "static int oss_poll_in (HWVoiceIn *hw)", " return qemu_set_fd_handler (oss->fd, oss_helper_poll_in, NULL, NULL);" ], "line_no": [ 1, 9 ] }
static int FUNC_0 (HWVoiceIn *VAR_0) { OSSVoiceIn *oss = (OSSVoiceIn *) VAR_0; return qemu_set_fd_handler (oss->fd, oss_helper_poll_in, NULL, NULL); }
[ "static int FUNC_0 (HWVoiceIn *VAR_0)\n{", "OSSVoiceIn *oss = (OSSVoiceIn *) VAR_0;", "return qemu_set_fd_handler (oss->fd, oss_helper_poll_in, NULL, NULL);", "}" ]
[ 1, 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ] ]
24,832
static int parse_fade(struct sbg_parser *p, struct sbg_fade *fr) { struct sbg_fade f; if (lex_char(p, '<')) f.in = SBG_FADE_SILENCE; else if (lex_char(p, '-')) f.in = SBG_FADE_SAME; else if (lex_char(p, '=')) f.in = SBG_FADE_ADAPT; else return 0; if (...
true
FFmpeg
e9b8523d52ca84d5012168db24fec2d50e73cf22
static int parse_fade(struct sbg_parser *p, struct sbg_fade *fr) { struct sbg_fade f; if (lex_char(p, '<')) f.in = SBG_FADE_SILENCE; else if (lex_char(p, '-')) f.in = SBG_FADE_SAME; else if (lex_char(p, '=')) f.in = SBG_FADE_ADAPT; else return 0; if (...
{ "code": [ " struct sbg_fade f;" ], "line_no": [ 5 ] }
static int FUNC_0(struct sbg_parser *VAR_0, struct sbg_fade *VAR_1) { struct sbg_fade VAR_2; if (lex_char(VAR_0, '<')) VAR_2.in = SBG_FADE_SILENCE; else if (lex_char(VAR_0, '-')) VAR_2.in = SBG_FADE_SAME; else if (lex_char(VAR_0, '=')) VAR_2.in = SBG_FADE_ADAPT; el...
[ "static int FUNC_0(struct sbg_parser *VAR_0, struct sbg_fade *VAR_1)\n{", "struct sbg_fade VAR_2;", "if (lex_char(VAR_0, '<'))\nVAR_2.in = SBG_FADE_SILENCE;", "else if (lex_char(VAR_0, '-'))\nVAR_2.in = SBG_FADE_SAME;", "else if (lex_char(VAR_0, '='))\nVAR_2.in = SBG_FADE_ADAPT;", "else\nreturn 0;", "if...
[ 0, 1, 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 ] ]
24,833
void qdev_prop_register_global(GlobalProperty *prop) { QTAILQ_INSERT_TAIL(&global_props, prop, next); }
true
qemu
f9a8b5530d438f836f9697639814f585aaec554d
void qdev_prop_register_global(GlobalProperty *prop) { QTAILQ_INSERT_TAIL(&global_props, prop, next); }
{ "code": [ " QTAILQ_INSERT_TAIL(&global_props, prop, next);" ], "line_no": [ 5 ] }
void FUNC_0(GlobalProperty *VAR_0) { QTAILQ_INSERT_TAIL(&global_props, VAR_0, next); }
[ "void FUNC_0(GlobalProperty *VAR_0)\n{", "QTAILQ_INSERT_TAIL(&global_props, VAR_0, next);", "}" ]
[ 0, 1, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
24,834
int ff_hevc_decode_short_term_rps(HEVCContext *s, ShortTermRPS *rps, const HEVCSPS *sps, int is_slice_header) { HEVCLocalContext *lc = s->HEVClc; uint8_t rps_predict = 0; int delta_poc; int k0 = 0; int k1 = 0; int k = 0; int i; GetBitContext...
true
FFmpeg
d13a731fc149d3fdbe679078479ec1950674e762
int ff_hevc_decode_short_term_rps(HEVCContext *s, ShortTermRPS *rps, const HEVCSPS *sps, int is_slice_header) { HEVCLocalContext *lc = s->HEVClc; uint8_t rps_predict = 0; int delta_poc; int k0 = 0; int k1 = 0; int k = 0; int i; GetBitContext...
{ "code": [ " int delta_rps, abs_delta_rps;" ], "line_no": [ 37 ] }
int FUNC_0(HEVCContext *VAR_0, ShortTermRPS *VAR_1, const HEVCSPS *VAR_2, int VAR_3) { HEVCLocalContext *lc = VAR_0->HEVClc; uint8_t rps_predict = 0; int VAR_4; int VAR_5 = 0; int VAR_6 = 0; int VAR_7 = 0; int VAR_8; GetBitContext *gb = &lc-...
[ "int FUNC_0(HEVCContext *VAR_0, ShortTermRPS *VAR_1,\nconst HEVCSPS *VAR_2, int VAR_3)\n{", "HEVCLocalContext *lc = VAR_0->HEVClc;", "uint8_t rps_predict = 0;", "int VAR_4;", "int VAR_5 = 0;", "int VAR_6 = 0;", "int VAR_7 = 0;", "int VAR_8;", "GetBitContext *gb = &lc->gb;", "if (VAR_1 != VAR_2->s...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 23 ], [ 27, 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [ 51,...
24,835
iscsi_aio_readv(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { IscsiLun *iscsilun = bs->opaque; IscsiAIOCB *acb; acb = qemu_aio_get(&iscsi_aiocb_info, bs, cb, opaque); trace_iscs...
true
qemu
91bea4e2bb1a5f7954a3b3a4f2e28e96bd25c458
iscsi_aio_readv(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { IscsiLun *iscsilun = bs->opaque; IscsiAIOCB *acb; acb = qemu_aio_get(&iscsi_aiocb_info, bs, cb, opaque); trace_iscs...
{ "code": [], "line_no": [] }
FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1, QEMUIOVector *VAR_2, int VAR_3, BlockDriverCompletionFunc *VAR_4, void *VAR_5) { IscsiLun *iscsilun = VAR_0->VAR_5; IscsiAIOCB *acb; acb = qemu_aio_get(&iscsi_aiocb_info, VAR_0, VAR_4, VAR_5); trace_iscsi_aio_...
[ "FUNC_0(BlockDriverState *VAR_0, int64_t VAR_1,\nQEMUIOVector *VAR_2, int VAR_3,\nBlockDriverCompletionFunc *VAR_4,\nvoid *VAR_5)\n{", "IscsiLun *iscsilun = VAR_0->VAR_5;", "IscsiAIOCB *acb;", "acb = qemu_aio_get(&iscsi_aiocb_info, VAR_0, VAR_4, VAR_5);", "trace_iscsi_aio_readv(iscsilun->iscsi, VAR_1, VAR_3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 2, 3, 4, 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [ 11 ], [ 12 ], [ 13 ], [ 14 ], [ 15 ], [ 16 ], [ 17 ], [ 18 ] ]
24,836
static GSList *gd_vc_gfx_init(GtkDisplayState *s, VirtualConsole *vc, QemuConsole *con, int idx, GSList *group, GtkWidget *view_menu) { Error *local_err = NULL; Object *obj; obj = object_property_get_link(OBJECT(con), "device", &local_err);...
true
qemu
8a0f9b5263bb3a96d574ca78ad3b8f1d7bf8b12b
static GSList *gd_vc_gfx_init(GtkDisplayState *s, VirtualConsole *vc, QemuConsole *con, int idx, GSList *group, GtkWidget *view_menu) { Error *local_err = NULL; Object *obj; obj = object_property_get_link(OBJECT(con), "device", &local_err);...
{ "code": [ " Error *local_err = NULL;", " obj = object_property_get_link(OBJECT(con), \"device\", &local_err);" ], "line_no": [ 9, 15 ] }
static GSList *FUNC_0(GtkDisplayState *s, VirtualConsole *vc, QemuConsole *con, int idx, GSList *group, GtkWidget *view_menu) { Error *local_err = NULL; Object *obj; obj = object_property_get_link(OBJECT(con), "device", &local_err); if...
[ "static GSList *FUNC_0(GtkDisplayState *s, VirtualConsole *vc,\nQemuConsole *con, int idx,\nGSList *group, GtkWidget *view_menu)\n{", "Error *local_err = NULL;", "Object *obj;", "obj = object_property_get_link(OBJECT(con), \"device\", &local_err);", "if (obj) {", "vc->label = g_strdup_printf(\"%s\", objec...
[ 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 37 ], [ 39, 41, 43, 45, 47, 49, 51, 53, 55 ], [ 57 ...
24,837
int ff_tls_open_underlying(TLSShared *c, URLContext *parent, const char *uri, AVDictionary **options) { int port; const char *p; char buf[200], opts[50] = ""; struct addrinfo hints = { 0 }, *ai = NULL; const char *proxy_path; int use_proxy; set_options(c, uri); if (c->listen...
true
FFmpeg
6dd5371e34c6602591766f73aa647b369d77853b
int ff_tls_open_underlying(TLSShared *c, URLContext *parent, const char *uri, AVDictionary **options) { int port; const char *p; char buf[200], opts[50] = ""; struct addrinfo hints = { 0 }, *ai = NULL; const char *proxy_path; int use_proxy; set_options(c, uri); if (c->listen...
{ "code": [ " av_url_split(NULL, 0, NULL, 0, c->host, sizeof(c->host), &port, NULL, 0, uri);", " ff_url_join(buf, sizeof(buf), \"tcp\", NULL, c->host, port, \"%s\", p);", " if (!getaddrinfo(c->host, NULL, &hints, &ai)) {", " use_proxy = !ff_http_match_no_proxy(getenv(\"no_proxy\"), c->host...
int FUNC_0(TLSShared *VAR_0, URLContext *VAR_1, const char *VAR_2, AVDictionary **VAR_3) { int VAR_4; const char *VAR_5; char VAR_6[200], VAR_7[50] = ""; struct addrinfo VAR_8 = { 0 }, *VAR_9 = NULL; const char *VAR_10; int VAR_11; set_options(VAR_0, VAR_2); if (VAR_0->liste...
[ "int FUNC_0(TLSShared *VAR_0, URLContext *VAR_1, const char *VAR_2, AVDictionary **VAR_3)\n{", "int VAR_4;", "const char *VAR_5;", "char VAR_6[200], VAR_7[50] = \"\";", "struct addrinfo VAR_8 = { 0 }, *VAR_9 = NULL;", "const char *VAR_10;", "int VAR_11;", "set_options(VAR_0, VAR_2);", "if (VAR_0->li...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 23, 25 ], [ 29 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 43, 45 ], [ 47 ], [ 51 ], [ 55 ], [ 57 ...
24,838
static void x86_cpu_apic_init(X86CPU *cpu, Error **errp) { static int apic_mapped; CPUX86State *env = &cpu->env; APICCommonState *apic; const char *apic_type = "apic"; if (kvm_irqchip_in_kernel()) { apic_type = "kvm-apic"; } else if (xen_enabled()) { apic_type = "xen-a...
true
qemu
d3c64d6a1874f94246af91963927fb4d924332f1
static void x86_cpu_apic_init(X86CPU *cpu, Error **errp) { static int apic_mapped; CPUX86State *env = &cpu->env; APICCommonState *apic; const char *apic_type = "apic"; if (kvm_irqchip_in_kernel()) { apic_type = "kvm-apic"; } else if (xen_enabled()) { apic_type = "xen-a...
{ "code": [ "static void x86_cpu_apic_init(X86CPU *cpu, Error **errp)", " static int apic_mapped;" ], "line_no": [ 1, 5 ] }
static void FUNC_0(X86CPU *VAR_0, Error **VAR_1) { static int VAR_2; CPUX86State *env = &VAR_0->env; APICCommonState *apic; const char *VAR_3 = "apic"; if (kvm_irqchip_in_kernel()) { VAR_3 = "kvm-apic"; } else if (xen_enabled()) { VAR_3 = "xen-apic"; } env-...
[ "static void FUNC_0(X86CPU *VAR_0, Error **VAR_1)\n{", "static int VAR_2;", "CPUX86State *env = &VAR_0->env;", "APICCommonState *apic;", "const char *VAR_3 = \"apic\";", "if (kvm_irqchip_in_kernel()) {", "VAR_3 = \"kvm-apic\";", "} else if (xen_enabled()) {", "VAR_3 = \"xen-apic\";", "}", "env->...
[ 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 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39, 41 ], [ 43 ], [ 47 ], [ 49 ], [...
24,839
static inline int clamp(int value, int min, int max) { if (value < min) return min; else if (value > max) return max; else return value; }
false
FFmpeg
eb5b0422b595d488f5c2f2a37a62cd46dfbb6aa7
static inline int clamp(int value, int min, int max) { if (value < min) return min; else if (value > max) return max; else return value; }
{ "code": [], "line_no": [] }
static inline int FUNC_0(int VAR_0, int VAR_1, int VAR_2) { if (VAR_0 < VAR_1) return VAR_1; else if (VAR_0 > VAR_2) return VAR_2; else return VAR_0; }
[ "static inline int FUNC_0(int VAR_0, int VAR_1, int VAR_2)\n{", "if (VAR_0 < VAR_1)\nreturn VAR_1;", "else if (VAR_0 > VAR_2)\nreturn VAR_2;", "else\nreturn VAR_0;", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9, 11 ], [ 13, 15 ], [ 17 ] ]
24,840
void audio_init(ISABus *isa_bus, PCIBus *pci_bus) { }
false
qemu
ffa48cf5ab719e1e181e51b87bc0f5d397b791fa
void audio_init(ISABus *isa_bus, PCIBus *pci_bus) { }
{ "code": [], "line_no": [] }
void FUNC_0(ISABus *VAR_0, PCIBus *VAR_1) { }
[ "void FUNC_0(ISABus *VAR_0, PCIBus *VAR_1)\n{", "}" ]
[ 0, 0 ]
[ [ 1, 3 ], [ 5 ] ]
24,841
static void nand_command(NANDFlashState *s) { unsigned int offset; switch (s->cmd) { case NAND_CMD_READ0: s->iolen = 0; break; case NAND_CMD_READID: s->ioaddr = s->io; s->iolen = 0; nand_pushio_byte(s, s->manf_id); nand_pushio_byte(s, s->chip_...
false
qemu
a89f364ae8740dfc31b321eed9ee454e996dc3c1
static void nand_command(NANDFlashState *s) { unsigned int offset; switch (s->cmd) { case NAND_CMD_READ0: s->iolen = 0; break; case NAND_CMD_READID: s->ioaddr = s->io; s->iolen = 0; nand_pushio_byte(s, s->manf_id); nand_pushio_byte(s, s->chip_...
{ "code": [], "line_no": [] }
static void FUNC_0(NANDFlashState *VAR_0) { unsigned int VAR_1; switch (VAR_0->cmd) { case NAND_CMD_READ0: VAR_0->iolen = 0; break; case NAND_CMD_READID: VAR_0->ioaddr = VAR_0->io; VAR_0->iolen = 0; nand_pushio_byte(VAR_0, VAR_0->manf_id); nan...
[ "static void FUNC_0(NANDFlashState *VAR_0)\n{", "unsigned int VAR_1;", "switch (VAR_0->cmd) {", "case NAND_CMD_READ0:\nVAR_0->iolen = 0;", "break;", "case NAND_CMD_READID:\nVAR_0->ioaddr = VAR_0->io;", "VAR_0->iolen = 0;", "nand_pushio_byte(VAR_0, VAR_0->manf_id);", "nand_pushio_byte(VAR_0, VAR_0->c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 17, 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49, 51, 53, 55 ], [...
24,843
int64_t qemu_clock_deadline_ns_all(QEMUClockType type) { int64_t deadline = -1; QEMUTimerList *timer_list; QEMUClock *clock = qemu_clock_ptr(type); QLIST_FOREACH(timer_list, &clock->timerlists, list) { deadline = qemu_soonest_timeout(deadline, timer...
false
qemu
c2b38b277a7882a592f4f2ec955084b2b756daaa
int64_t qemu_clock_deadline_ns_all(QEMUClockType type) { int64_t deadline = -1; QEMUTimerList *timer_list; QEMUClock *clock = qemu_clock_ptr(type); QLIST_FOREACH(timer_list, &clock->timerlists, list) { deadline = qemu_soonest_timeout(deadline, timer...
{ "code": [], "line_no": [] }
int64_t FUNC_0(QEMUClockType type) { int64_t deadline = -1; QEMUTimerList *timer_list; QEMUClock *clock = qemu_clock_ptr(type); QLIST_FOREACH(timer_list, &clock->timerlists, list) { deadline = qemu_soonest_timeout(deadline, timerlist_deadline_ns(tim...
[ "int64_t FUNC_0(QEMUClockType type)\n{", "int64_t deadline = -1;", "QEMUTimerList *timer_list;", "QEMUClock *clock = qemu_clock_ptr(type);", "QLIST_FOREACH(timer_list, &clock->timerlists, list) {", "deadline = qemu_soonest_timeout(deadline,\ntimerlist_deadline_ns(timer_list));", "}", "return deadline;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13, 15 ], [ 17 ], [ 19 ], [ 21 ] ]
24,844
UserDefTwo *qmp_user_def_cmd2(UserDefOne *ud1a, bool has_udb1, UserDefOne *ud1b, Error **errp) { UserDefTwo *ret; UserDefOne *ud1c = g_malloc0(sizeof(UserDefOne)); UserDefOne *ud1d = g_malloc0(sizeof(UserDefOne)); ud1c->string = strdup...
false
qemu
ddf21908961073199f3d186204da4810f2ea150b
UserDefTwo *qmp_user_def_cmd2(UserDefOne *ud1a, bool has_udb1, UserDefOne *ud1b, Error **errp) { UserDefTwo *ret; UserDefOne *ud1c = g_malloc0(sizeof(UserDefOne)); UserDefOne *ud1d = g_malloc0(sizeof(UserDefOne)); ud1c->string = strdup...
{ "code": [], "line_no": [] }
UserDefTwo *FUNC_0(UserDefOne *ud1a, bool has_udb1, UserDefOne *ud1b, Error **errp) { UserDefTwo *ret; UserDefOne *ud1c = g_malloc0(sizeof(UserDefOne)); UserDefOne *ud1d = g_malloc0(sizeof(UserDefOne)); ud1c->string = strdup(ud1a->stri...
[ "UserDefTwo *FUNC_0(UserDefOne *ud1a,\nbool has_udb1, UserDefOne *ud1b,\nError **errp)\n{", "UserDefTwo *ret;", "UserDefOne *ud1c = g_malloc0(sizeof(UserDefOne));", "UserDefOne *ud1d = g_malloc0(sizeof(UserDefOne));", "ud1c->string = strdup(ud1a->string);", "ud1c->base = g_new0(UserDefZero, 1);", "ud1c-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ...
24,845
static void vmsa_ttbcr_raw_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { int maskshift = extract32(value, 0, 3); if (arm_feature(env, ARM_FEATURE_LPAE) && (value & (1 << 31))) { value &= ~((7 << 19) | (3 << 14) | (0xf << 3)); } else { ...
false
qemu
8d5c773e323b22402abdd0beef4c7d2fc91dd0eb
static void vmsa_ttbcr_raw_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { int maskshift = extract32(value, 0, 3); if (arm_feature(env, ARM_FEATURE_LPAE) && (value & (1 << 31))) { value &= ~((7 << 19) | (3 << 14) | (0xf << 3)); } else { ...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1, uint64_t VAR_2) { int VAR_3 = extract32(VAR_2, 0, 3); if (arm_feature(VAR_0, ARM_FEATURE_LPAE) && (VAR_2 & (1 << 31))) { VAR_2 &= ~((7 << 19) | (3 << 14) | (0xf << 3)); } else { VAR_2 ...
[ "static void FUNC_0(CPUARMState *VAR_0, const ARMCPRegInfo *VAR_1,\nuint64_t VAR_2)\n{", "int VAR_3 = extract32(VAR_2, 0, 3);", "if (arm_feature(VAR_0, ARM_FEATURE_LPAE) && (VAR_2 & (1 << 31))) {", "VAR_2 &= ~((7 << 19) | (3 << 14) | (0xf << 3));", "} else {", "VAR_2 &= 7;", "}", "VAR_0->cp15.c2_contr...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ] ]
24,846
static uint32_t openpic_cpu_read_internal(void *opaque, hwaddr addr, int idx) { openpic_t *opp = opaque; IRQ_src_t *src; IRQ_dst_t *dst; uint32_t retval; int n_IRQ; DPRINTF("%s: cpu %d addr " TARGET_FMT_plx "\n", __func__, idx, addr); retv...
false
qemu
1945dbc15f0f1ffdc9a10526448e9eba7c599d98
static uint32_t openpic_cpu_read_internal(void *opaque, hwaddr addr, int idx) { openpic_t *opp = opaque; IRQ_src_t *src; IRQ_dst_t *dst; uint32_t retval; int n_IRQ; DPRINTF("%s: cpu %d addr " TARGET_FMT_plx "\n", __func__, idx, addr); retv...
{ "code": [], "line_no": [] }
static uint32_t FUNC_0(void *opaque, hwaddr addr, int idx) { openpic_t *opp = opaque; IRQ_src_t *src; IRQ_dst_t *dst; uint32_t retval; int VAR_0; DPRINTF("%s: cpu %d addr " TARGET_FMT_plx "\n", __func__, idx, addr); retval = 0xFFFFFFFF; ...
[ "static uint32_t FUNC_0(void *opaque, hwaddr addr,\nint idx)\n{", "openpic_t *opp = opaque;", "IRQ_src_t *src;", "IRQ_dst_t *dst;", "uint32_t retval;", "int VAR_0;", "DPRINTF(\"%s: cpu %d addr \" TARGET_FMT_plx \"\\n\", __func__, idx, addr);", "retval = 0xFFFFFFFF;", "if (addr & 0xF)\nreturn retval;...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37 ], [ 39, 41 ], [ 43 ], [ 45, 47 ], [...
24,848
static int faac_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { FAACContext *s = (FAACContext *) avctx->priv_data; #ifndef FAAD2_VERSION unsigned long bytesconsumed; short *sample_buffer = NULL; ...
false
FFmpeg
980bbb13d653561d83619350db32ccb5e5248f95
static int faac_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { FAACContext *s = (FAACContext *) avctx->priv_data; #ifndef FAAD2_VERSION unsigned long bytesconsumed; short *sample_buffer = NULL; ...
{ "code": [], "line_no": [] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, uint8_t *VAR_3, int VAR_4) { FAACContext *s = (FAACContext *) VAR_0->priv_data; #ifndef FAAD2_VERSION unsigned long VAR_5; short *VAR_6 = NULL; unsigned long VAR_7; in...
[ "static int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nuint8_t *VAR_3, int VAR_4)\n{", "FAACContext *s = (FAACContext *) VAR_0->priv_data;", "#ifndef FAAD2_VERSION\nunsigned long VAR_5;", "short *VAR_6 = NULL;", "unsigned long VAR_7;", "int VAR_8;", "#else\nfaacDecFrameInfo frame_info;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11, 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21, 23 ], [ 25 ], [ 27, 29, 31 ], [ 33, 35, 37, 39, 41, 43 ], [ 45 ], [ 47, 49 ], [ 51, 53 ], [...
24,849
void pc_dimm_memory_plug(DeviceState *dev, MemoryHotplugState *hpms, MemoryRegion *mr, uint64_t align, Error **errp) { int slot; MachineState *machine = MACHINE(qdev_get_machine()); PCDIMMDevice *dimm = PC_DIMM(dev); Error *local_err = NULL; uint64_t existing_dimms_ca...
false
qemu
8df1426e44176512be1b6456e90d100d1af907e1
void pc_dimm_memory_plug(DeviceState *dev, MemoryHotplugState *hpms, MemoryRegion *mr, uint64_t align, Error **errp) { int slot; MachineState *machine = MACHINE(qdev_get_machine()); PCDIMMDevice *dimm = PC_DIMM(dev); Error *local_err = NULL; uint64_t existing_dimms_ca...
{ "code": [], "line_no": [] }
void FUNC_0(DeviceState *VAR_0, MemoryHotplugState *VAR_1, MemoryRegion *VAR_2, uint64_t VAR_3, Error **VAR_4) { int VAR_5; MachineState *machine = MACHINE(qdev_get_machine()); PCDIMMDevice *dimm = PC_DIMM(VAR_0); Error *local_err = NULL; uint64_t existing_dimms_capac...
[ "void FUNC_0(DeviceState *VAR_0, MemoryHotplugState *VAR_1,\nMemoryRegion *VAR_2, uint64_t VAR_3, Error **VAR_4)\n{", "int VAR_5;", "MachineState *machine = MACHINE(qdev_get_machine());", "PCDIMMDevice *dimm = PC_DIMM(VAR_0);", "Error *local_err = NULL;", "uint64_t existing_dimms_capacity = 0;", "uint64...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31, 33, 35, 37 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ], [ 51 ...
24,850
static BOOL WINAPI qemu_ctrl_handler(DWORD type) { exit(STATUS_CONTROL_C_EXIT); return TRUE; }
false
qemu
b75a02829dde98723dfe16fa098338cb267b28b9
static BOOL WINAPI qemu_ctrl_handler(DWORD type) { exit(STATUS_CONTROL_C_EXIT); return TRUE; }
{ "code": [], "line_no": [] }
static BOOL VAR_0 qemu_ctrl_handler(DWORD type) { exit(STATUS_CONTROL_C_EXIT); return TRUE; }
[ "static BOOL VAR_0 qemu_ctrl_handler(DWORD type)\n{", "exit(STATUS_CONTROL_C_EXIT);", "return TRUE;", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ] ]
24,851
static int spapr_phb_init(SysBusDevice *s) { sPAPRPHBState *sphb = SPAPR_PCI_HOST_BRIDGE(s); PCIHostState *phb = PCI_HOST_BRIDGE(s); char *namebuf; int i; PCIBus *bus; sphb->dtbusname = g_strdup_printf("pci@%" PRIx64, sphb->buid); namebuf = alloca(strlen(sphb->dtbusname) + 32); ...
false
qemu
a178274efabcbbc5d44805b51def874e47051325
static int spapr_phb_init(SysBusDevice *s) { sPAPRPHBState *sphb = SPAPR_PCI_HOST_BRIDGE(s); PCIHostState *phb = PCI_HOST_BRIDGE(s); char *namebuf; int i; PCIBus *bus; sphb->dtbusname = g_strdup_printf("pci@%" PRIx64, sphb->buid); namebuf = alloca(strlen(sphb->dtbusname) + 32); ...
{ "code": [], "line_no": [] }
static int FUNC_0(SysBusDevice *VAR_0) { sPAPRPHBState *sphb = SPAPR_PCI_HOST_BRIDGE(VAR_0); PCIHostState *phb = PCI_HOST_BRIDGE(VAR_0); char *VAR_1; int VAR_2; PCIBus *bus; sphb->dtbusname = g_strdup_printf("pci@%" PRIx64, sphb->buid); VAR_1 = alloca(strlen(sphb->dtbusname) + 32);...
[ "static int FUNC_0(SysBusDevice *VAR_0)\n{", "sPAPRPHBState *sphb = SPAPR_PCI_HOST_BRIDGE(VAR_0);", "PCIHostState *phb = PCI_HOST_BRIDGE(VAR_0);", "char *VAR_1;", "int VAR_2;", "PCIBus *bus;", "sphb->dtbusname = g_strdup_printf(\"pci@%\" PRIx64, sphb->buid);", "VAR_1 = alloca(strlen(sphb->dtbusname) +...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 ], [ 25 ], [ 27 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 59 ], [ 61 ], [ 65 ], [ 69 ], [ 71, 73 ], [...
24,852
static void imx_epit_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { IMXEPITState *s = IMX_EPIT(opaque); uint32_t reg = offset >> 2; uint64_t oldcr; DPRINTF("(%s, value = 0x%08x)\n", imx_epit_reg_name(reg), (uint32_t)value); switch (reg) { ...
false
qemu
203d65a4706be345c209f3408d3a011a3e48f0c9
static void imx_epit_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { IMXEPITState *s = IMX_EPIT(opaque); uint32_t reg = offset >> 2; uint64_t oldcr; DPRINTF("(%s, value = 0x%08x)\n", imx_epit_reg_name(reg), (uint32_t)value); switch (reg) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2, unsigned VAR_3) { IMXEPITState *s = IMX_EPIT(VAR_0); uint32_t reg = VAR_1 >> 2; uint64_t oldcr; DPRINTF("(%s, VAR_2 = 0x%08x)\n", imx_epit_reg_name(reg), (uint32_t)VAR_2); switch (reg) { case 0: ...
[ "static void FUNC_0(void *VAR_0, hwaddr VAR_1, uint64_t VAR_2,\nunsigned VAR_3)\n{", "IMXEPITState *s = IMX_EPIT(VAR_0);", "uint32_t reg = VAR_1 >> 2;", "uint64_t oldcr;", "DPRINTF(\"(%s, VAR_2 = 0x%08x)\\n\", imx_epit_reg_name(reg), (uint32_t)VAR_2);", "switch (reg) {", "case 0:\noldcr = s->cr;", "s-...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 19 ], [ 21, 25 ], [ 27 ], [ 29 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ...
24,854
uint32_t HELPER(rrbe)(uint32_t r1, uint64_t r2) { if (r2 > ram_size) { return 0; } /* XXX implement */ #if 0 env->storage_keys[r2 / TARGET_PAGE_SIZE] &= ~SK_REFERENCED; #endif /* * cc * * 0 Reference bit zero; change bit zero * 1 Reference bit zero; cha...
false
qemu
17bb18ce16b45e61248c5238074fa9cf8bc547bf
uint32_t HELPER(rrbe)(uint32_t r1, uint64_t r2) { if (r2 > ram_size) { return 0; } #if 0 env->storage_keys[r2 / TARGET_PAGE_SIZE] &= ~SK_REFERENCED; #endif return 0; }
{ "code": [], "line_no": [] }
uint32_t FUNC_0(rrbe)(uint32_t r1, uint64_t r2) { if (r2 > ram_size) { return 0; } #if 0 env->storage_keys[r2 / TARGET_PAGE_SIZE] &= ~SK_REFERENCED; #endif return 0; }
[ "uint32_t FUNC_0(rrbe)(uint32_t r1, uint64_t r2)\n{", "if (r2 > ram_size) {", "return 0;", "}", "#if 0\nenv->storage_keys[r2 / TARGET_PAGE_SIZE] &= ~SK_REFERENCED;", "#endif\nreturn 0;", "}" ]
[ 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 15, 17 ], [ 19, 39 ], [ 41 ] ]
24,856
static void ivshmem_io_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { IVShmemState *s = opaque; uint16_t dest = val >> 16; uint16_t vector = val & 0xff; addr &= 0xfc; IVSHMEM_DPRINTF("writing to addr " TARGET_FMT_plx "\n", addr);...
false
qemu
a8170e5e97ad17ca169c64ba87ae2f53850dab4c
static void ivshmem_io_write(void *opaque, target_phys_addr_t addr, uint64_t val, unsigned size) { IVShmemState *s = opaque; uint16_t dest = val >> 16; uint16_t vector = val & 0xff; addr &= 0xfc; IVSHMEM_DPRINTF("writing to addr " TARGET_FMT_plx "\n", addr);...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { IVShmemState *s = VAR_0; uint16_t dest = VAR_2 >> 16; uint16_t vector = VAR_2 & 0xff; VAR_1 &= 0xfc; IVSHMEM_DPRINTF("writing to VAR_1 " TARGET_FMT_plx "\n", VAR_1); ...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "IVShmemState *s = VAR_0;", "uint16_t dest = VAR_2 >> 16;", "uint16_t vector = VAR_2 & 0xff;", "VAR_1 &= 0xfc;", "IVSHMEM_DPRINTF(\"writing to VAR_1 \" TARGET_FMT_plx \"\\n\", VAR_1);", "switch (VAR_1)\n{", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23, 25 ], [ 27, 29 ], [ 31 ], [ 35, 37 ], [ 39 ], [ 43, 47 ], [ 49 ], [ 51 ], [ 53 ], [ 59 ], [ 61 ], ...
24,857
SpiceInfo *qmp_query_spice(Error **errp) { QemuOpts *opts = QTAILQ_FIRST(&qemu_spice_opts.head); int port, tls_port; const char *addr; SpiceInfo *info; char version_string[20]; /* 12 = |255.255.255\0| is the max */ info = g_malloc0(sizeof(*info)); if (!spice_server || !opts) { ...
false
qemu
6735aa99a43c70c09b53af190b24600a61178b95
SpiceInfo *qmp_query_spice(Error **errp) { QemuOpts *opts = QTAILQ_FIRST(&qemu_spice_opts.head); int port, tls_port; const char *addr; SpiceInfo *info; char version_string[20]; info = g_malloc0(sizeof(*info)); if (!spice_server || !opts) { info->enabled = false; ...
{ "code": [], "line_no": [] }
SpiceInfo *FUNC_0(Error **errp) { QemuOpts *opts = QTAILQ_FIRST(&qemu_spice_opts.head); int VAR_0, VAR_1; const char *VAR_2; SpiceInfo *info; char VAR_3[20]; info = g_malloc0(sizeof(*info)); if (!spice_server || !opts) { info->enabled = false; return info; ...
[ "SpiceInfo *FUNC_0(Error **errp)\n{", "QemuOpts *opts = QTAILQ_FIRST(&qemu_spice_opts.head);", "int VAR_0, VAR_1;", "const char *VAR_2;", "SpiceInfo *info;", "char VAR_3[20];", "info = g_malloc0(sizeof(*info));", "if (!spice_server || !opts) {", "info->enabled = false;", "return info;", "}", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 51 ], [ 53 ...
24,858
void memory_region_init_rom_device(MemoryRegion *mr, const MemoryRegionOps *ops, void *opaque, const char *name, uint64_t size) { memory_region_init(mr, name, size); ...
false
qemu
26a83ad0e793465b74a8b06a65f2f6fdc5615413
void memory_region_init_rom_device(MemoryRegion *mr, const MemoryRegionOps *ops, void *opaque, const char *name, uint64_t size) { memory_region_init(mr, name, size); ...
{ "code": [], "line_no": [] }
void FUNC_0(MemoryRegion *VAR_0, const MemoryRegionOps *VAR_1, void *VAR_2, const char *VAR_3, uint64_t VAR_4) { memory_region_init(VAR_0, VAR_3, VAR_4); VAR_0->VAR_...
[ "void FUNC_0(MemoryRegion *VAR_0,\nconst MemoryRegionOps *VAR_1,\nvoid *VAR_2,\nconst char *VAR_3,\nuint64_t VAR_4)\n{", "memory_region_init(VAR_0, VAR_3, VAR_4);", "VAR_0->VAR_1 = VAR_1;", "VAR_0->VAR_2 = VAR_2;", "VAR_0->terminates = true;", "VAR_0->destructor = memory_region_destructor_rom_device;", ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25, 27, 29 ], [ 31 ], [ 33 ], [ 35 ] ]
24,860
av_cold int ff_rv34_decode_init(AVCodecContext *avctx) { RV34DecContext *r = avctx->priv_data; MpegEncContext *s = &r->s; MPV_decode_defaults(s); s->avctx= avctx; s->out_format = FMT_H263; s->codec_id= avctx->codec_id; s->width = avctx->width; s->height = avctx->height; ...
false
FFmpeg
3df18b3ed1177037892ce5b3db113d52dcdcdbf3
av_cold int ff_rv34_decode_init(AVCodecContext *avctx) { RV34DecContext *r = avctx->priv_data; MpegEncContext *s = &r->s; MPV_decode_defaults(s); s->avctx= avctx; s->out_format = FMT_H263; s->codec_id= avctx->codec_id; s->width = avctx->width; s->height = avctx->height; ...
{ "code": [], "line_no": [] }
av_cold int FUNC_0(AVCodecContext *avctx) { RV34DecContext *r = avctx->priv_data; MpegEncContext *s = &r->s; MPV_decode_defaults(s); s->avctx= avctx; s->out_format = FMT_H263; s->codec_id= avctx->codec_id; s->width = avctx->width; s->height = avctx->height; r->s.avctx...
[ "av_cold int FUNC_0(AVCodecContext *avctx)\n{", "RV34DecContext *r = avctx->priv_data;", "MpegEncContext *s = &r->s;", "MPV_decode_defaults(s);", "s->avctx= avctx;", "s->out_format = FMT_H263;", "s->codec_id= avctx->codec_id;", "s->width = avctx->width;", "s->height = avctx->height;", "r->s.avctx ...
[ 0, 0, 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 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41, 43 ], [ 47 ], [ 51 ], [ 53 ], ...
24,861
static inline void mix_2f_2r_to_stereo(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) { output[1][i] += output[3][i]; output[2][i] += output[4][i]; } memset(output[3], 0, sizeof(output[3])); memset(output...
false
FFmpeg
486637af8ef29ec215e0e0b7ecd3b5470f0e04e5
static inline void mix_2f_2r_to_stereo(AC3DecodeContext *ctx) { int i; float (*output)[256] = ctx->audio_block.block_output; for (i = 0; i < 256; i++) { output[1][i] += output[3][i]; output[2][i] += output[4][i]; } memset(output[3], 0, sizeof(output[3])); memset(output...
{ "code": [], "line_no": [] }
static inline void FUNC_0(AC3DecodeContext *VAR_0) { int VAR_1; float (*VAR_2)[256] = VAR_0->audio_block.block_output; for (VAR_1 = 0; VAR_1 < 256; VAR_1++) { VAR_2[1][VAR_1] += VAR_2[3][VAR_1]; VAR_2[2][VAR_1] += VAR_2[4][VAR_1]; } memset(VAR_2[3], 0, sizeof(VAR_2[3])); ...
[ "static inline void FUNC_0(AC3DecodeContext *VAR_0)\n{", "int VAR_1;", "float (*VAR_2)[256] = VAR_0->audio_block.block_output;", "for (VAR_1 = 0; VAR_1 < 256; VAR_1++) {", "VAR_2[1][VAR_1] += VAR_2[3][VAR_1];", "VAR_2[2][VAR_1] += VAR_2[4][VAR_1];", "}", "memset(VAR_2[3], 0, sizeof(VAR_2[3]));", "me...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ] ]
24,862
void *qemu_vmalloc(size_t size) { void *p; unsigned long addr; mmap_lock(); /* Use map and mark the pages as used. */ p = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); addr = (unsigned long)p; if (addr == (target_ulong) addr) { /* ...
false
qemu
b035ffd11813524d7c0e44354f5c4bdd281f4b37
void *qemu_vmalloc(size_t size) { void *p; unsigned long addr; mmap_lock(); p = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); addr = (unsigned long)p; if (addr == (target_ulong) addr) { page_set_flags(addr & TARGET_PAGE...
{ "code": [], "line_no": [] }
void *FUNC_0(size_t VAR_0) { void *VAR_1; unsigned long VAR_2; mmap_lock(); VAR_1 = mmap(NULL, VAR_0, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); VAR_2 = (unsigned long)VAR_1; if (VAR_2 == (target_ulong) VAR_2) { page_set_flags(VAR_2 ...
[ "void *FUNC_0(size_t VAR_0)\n{", "void *VAR_1;", "unsigned long VAR_2;", "mmap_lock();", "VAR_1 = mmap(NULL, VAR_0, PROT_READ | PROT_WRITE,\nMAP_PRIVATE | MAP_ANON, -1, 0);", "VAR_2 = (unsigned long)VAR_1;", "if (VAR_2 == (target_ulong) VAR_2) {", "page_set_flags(VAR_2 & TARGET_PAGE_MASK, TARGET_PAGE_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19 ], [ 21 ], [ 27, 29 ], [ 31 ], [ 35 ], [ 37 ], [ 39 ] ]
24,864
static void rtas_query_cpu_stopped_state(sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { target_ulong id; CPUState *cpu...
false
qemu
210b580b106fa798149e28aa13c66b325a43204e
static void rtas_query_cpu_stopped_state(sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { target_ulong id; CPUState *cpu...
{ "code": [], "line_no": [] }
static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1, uint32_t VAR_2, target_ulong VAR_3, uint32_t VAR_4, target_ulong VAR_5) { target_ulong id; CPUState *cpu; if (VAR_2 ...
[ "static void FUNC_0(sPAPREnvironment *VAR_0,\nuint32_t VAR_1, uint32_t VAR_2,\ntarget_ulong VAR_3,\nuint32_t VAR_4, target_ulong VAR_5)\n{", "target_ulong id;", "CPUState *cpu;", "if (VAR_2 != 1 || VAR_4 != 2) {", "rtas_st(VAR_5, 0, -3);", "return;", "}", "id = rtas_ld(VAR_3, 0);", "cpu = qemu_get_c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7, 9 ], [ 11 ], [ 13 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 45 ], [ 47 ], [ 49 ], [...
24,866
static void nvic_recompute_state(NVICState *s) { int i; int pend_prio = NVIC_NOEXC_PRIO; int active_prio = NVIC_NOEXC_PRIO; int pend_irq = 0; for (i = 1; i < s->num_irq; i++) { VecInfo *vec = &s->vectors[i]; if (vec->enabled && vec->pending && vec->prio < pend_prio) { ...
false
qemu
5255fcf8e47acd059e2f0d414841c40231c1bd22
static void nvic_recompute_state(NVICState *s) { int i; int pend_prio = NVIC_NOEXC_PRIO; int active_prio = NVIC_NOEXC_PRIO; int pend_irq = 0; for (i = 1; i < s->num_irq; i++) { VecInfo *vec = &s->vectors[i]; if (vec->enabled && vec->pending && vec->prio < pend_prio) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(NVICState *VAR_0) { int VAR_1; int VAR_2 = NVIC_NOEXC_PRIO; int VAR_3 = NVIC_NOEXC_PRIO; int VAR_4 = 0; for (VAR_1 = 1; VAR_1 < VAR_0->num_irq; VAR_1++) { VecInfo *vec = &VAR_0->vectors[VAR_1]; if (vec->enabled && vec->pending && vec->prio < VAR_2) { ...
[ "static void FUNC_0(NVICState *VAR_0)\n{", "int VAR_1;", "int VAR_2 = NVIC_NOEXC_PRIO;", "int VAR_3 = NVIC_NOEXC_PRIO;", "int VAR_4 = 0;", "for (VAR_1 = 1; VAR_1 < VAR_0->num_irq; VAR_1++) {", "VecInfo *vec = &VAR_0->vectors[VAR_1];", "if (vec->enabled && vec->pending && vec->prio < VAR_2) {", "VAR_...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 47 ], [ 49 ...
24,867
static int local_fsync(FsContext *ctx, int fd) { if (0) /* Just to supress the warning. Will be removed in next patch. */ (void)local_set_xattr(NULL, NULL); return fsync(fd); }
false
qemu
e95ead32efc48157de12e0a257ea1c52541a6ce1
static int local_fsync(FsContext *ctx, int fd) { if (0) (void)local_set_xattr(NULL, NULL); return fsync(fd); }
{ "code": [], "line_no": [] }
static int FUNC_0(FsContext *VAR_0, int VAR_1) { if (0) (void)local_set_xattr(NULL, NULL); return fsync(VAR_1); }
[ "static int FUNC_0(FsContext *VAR_0, int VAR_1)\n{", "if (0)\n(void)local_set_xattr(NULL, NULL);", "return fsync(VAR_1);", "}" ]
[ 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5, 7 ], [ 9 ], [ 11 ] ]
24,868
void qmp_blockdev_add(BlockdevOptions *options, Error **errp) { BlockDriverState *bs; QObject *obj; Visitor *v = qmp_output_visitor_new(&obj); QDict *qdict; Error *local_err = NULL; visit_type_BlockdevOptions(v, NULL, &options, &local_err); if (local_err) { error_propagate...
false
qemu
7d5e199ade76c53ec316ab6779800581bb47c50a
void qmp_blockdev_add(BlockdevOptions *options, Error **errp) { BlockDriverState *bs; QObject *obj; Visitor *v = qmp_output_visitor_new(&obj); QDict *qdict; Error *local_err = NULL; visit_type_BlockdevOptions(v, NULL, &options, &local_err); if (local_err) { error_propagate...
{ "code": [], "line_no": [] }
void FUNC_0(BlockdevOptions *VAR_0, Error **VAR_1) { BlockDriverState *bs; QObject *obj; Visitor *v = qmp_output_visitor_new(&obj); QDict *qdict; Error *local_err = NULL; visit_type_BlockdevOptions(v, NULL, &VAR_0, &local_err); if (local_err) { error_propagate(VAR_1, local...
[ "void FUNC_0(BlockdevOptions *VAR_0, Error **VAR_1)\n{", "BlockDriverState *bs;", "QObject *obj;", "Visitor *v = qmp_output_visitor_new(&obj);", "QDict *qdict;", "Error *local_err = NULL;", "visit_type_BlockdevOptions(v, NULL, &VAR_0, &local_err);", "if (local_err) {", "error_propagate(VAR_1, local_...
[ 0, 0, 0, 0, 0, 0, 0, 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 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ...
24,869
static int segment_start(AVFormatContext *s) { SegmentContext *seg = s->priv_data; AVFormatContext *oc = seg->avf; int err = 0; if (seg->wrap) seg->number %= seg->wrap; if (av_get_frame_filename(oc->filename, sizeof(oc->filename), s->filename, seg->n...
false
FFmpeg
d8013f38ab73b15c5041f2489fc0b8bb45512e24
static int segment_start(AVFormatContext *s) { SegmentContext *seg = s->priv_data; AVFormatContext *oc = seg->avf; int err = 0; if (seg->wrap) seg->number %= seg->wrap; if (av_get_frame_filename(oc->filename, sizeof(oc->filename), s->filename, seg->n...
{ "code": [], "line_no": [] }
static int FUNC_0(AVFormatContext *VAR_0) { SegmentContext *seg = VAR_0->priv_data; AVFormatContext *oc = seg->avf; int VAR_1 = 0; if (seg->wrap) seg->number %= seg->wrap; if (av_get_frame_filename(oc->filename, sizeof(oc->filename), VAR_0->filename,...
[ "static int FUNC_0(AVFormatContext *VAR_0)\n{", "SegmentContext *seg = VAR_0->priv_data;", "AVFormatContext *oc = seg->avf;", "int VAR_1 = 0;", "if (seg->wrap)\nseg->number %= seg->wrap;", "if (av_get_frame_filename(oc->filename, sizeof(oc->filename),\nVAR_0->filename, seg->number++) < 0)\nreturn AVERROR(...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13, 15 ], [ 19, 21, 23 ], [ 27, 29, 31 ], [ 35 ], [ 37 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 53 ], [...
24,870
static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts) { mp_image_t *dmpi; if (vf->priv->in.fmt == vf->priv->out.fmt) { //nothing to do dmpi = mpi; } else { int out_off_left, out_off_right; int in_off_left = vf->priv->in.row_left * mpi->stride[0] + ...
false
FFmpeg
708ed15d8ccd5ae3d073cbd4dc69dafccec3fcc7
static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts) { mp_image_t *dmpi; if (vf->priv->in.fmt == vf->priv->out.fmt) { dmpi = mpi; } else { int out_off_left, out_off_right; int in_off_left = vf->priv->in.row_left * mpi->stride[0] + ...
{ "code": [], "line_no": [] }
static int FUNC_0(struct vf_instance *VAR_0, mp_image_t *VAR_1, double VAR_2) { mp_image_t *dmpi; if (VAR_0->priv->in.fmt == VAR_0->priv->out.fmt) { dmpi = VAR_1; } else { int VAR_3, VAR_4; int VAR_5 = VAR_0->priv->in.row_left * VAR_1->stride[0] + ...
[ "static int FUNC_0(struct vf_instance *VAR_0, mp_image_t *VAR_1, double VAR_2)\n{", "mp_image_t *dmpi;", "if (VAR_0->priv->in.fmt == VAR_0->priv->out.fmt) {", "dmpi = VAR_1;", "} else {", "int VAR_3, VAR_4;", "int VAR_5 = VAR_0->priv->in.row_left * VAR_1->stride[0] +\nVAR_0->priv->in.off_left;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15, 17 ], [ 19, 21 ], [ 25, 27, 29 ], [ 31, 33 ], [ 35, 37 ], [ 41 ], [ 43, 45, 47, 49, 51, 53, 55, 57, 59,...
24,871
static void vfio_platform_realize(DeviceState *dev, Error **errp) { VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(dev); SysBusDevice *sbdev = SYS_BUS_DEVICE(dev); VFIODevice *vbasedev = &vdev->vbasedev; int i, ret; vbasedev->type = VFIO_DEVICE_TYPE_PLATFORM; vbasedev->ops = &vfio_plat...
false
qemu
7df9381b7aa56c897e344f3bfe43bf5848bbd3e0
static void vfio_platform_realize(DeviceState *dev, Error **errp) { VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(dev); SysBusDevice *sbdev = SYS_BUS_DEVICE(dev); VFIODevice *vbasedev = &vdev->vbasedev; int i, ret; vbasedev->type = VFIO_DEVICE_TYPE_PLATFORM; vbasedev->ops = &vfio_plat...
{ "code": [], "line_no": [] }
static void FUNC_0(DeviceState *VAR_0, Error **VAR_1) { VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(VAR_0); SysBusDevice *sbdev = SYS_BUS_DEVICE(VAR_0); VFIODevice *vbasedev = &vdev->vbasedev; int VAR_2, VAR_3; vbasedev->type = VFIO_DEVICE_TYPE_PLATFORM; vbasedev->ops = &vfio_platfo...
[ "static void FUNC_0(DeviceState *VAR_0, Error **VAR_1)\n{", "VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(VAR_0);", "SysBusDevice *sbdev = SYS_BUS_DEVICE(VAR_0);", "VFIODevice *vbasedev = &vdev->vbasedev;", "int VAR_2, VAR_3;", "vbasedev->type = VFIO_DEVICE_TYPE_PLATFORM;", "vbasedev->ops = &vfio_pla...
[ 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 ], [ 25 ], [ 27 ], [ 29, 31 ], [ 33 ], [ 35 ], [ 39 ], [ 41 ], [ 43 ], [ 45 ], [ 47 ] ]
24,873
void json_lexer_destroy(JSONLexer *lexer) { QDECREF(lexer->token); }
false
qemu
d2ca7c0b0d876cf0e219ae7a92252626b0913a28
void json_lexer_destroy(JSONLexer *lexer) { QDECREF(lexer->token); }
{ "code": [], "line_no": [] }
void FUNC_0(JSONLexer *VAR_0) { QDECREF(VAR_0->token); }
[ "void FUNC_0(JSONLexer *VAR_0)\n{", "QDECREF(VAR_0->token);", "}" ]
[ 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ] ]
24,874
static void pcnet_ioport_write(void *opaque, target_phys_addr_t addr, uint64_t data, unsigned size) { PCNetState *d = opaque; if (addr < 16 && size == 1) { return pcnet_aprom_writeb(d, addr, data); } else if (addr >= 0x10 && addr < 0x20 && size == 2) { ...
false
qemu
7ba7974197090285fdb413c6e1c41aaacd44b9c4
static void pcnet_ioport_write(void *opaque, target_phys_addr_t addr, uint64_t data, unsigned size) { PCNetState *d = opaque; if (addr < 16 && size == 1) { return pcnet_aprom_writeb(d, addr, data); } else if (addr >= 0x10 && addr < 0x20 && size == 2) { ...
{ "code": [], "line_no": [] }
static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1, uint64_t VAR_2, unsigned VAR_3) { PCNetState *d = VAR_0; if (VAR_1 < 16 && VAR_3 == 1) { return pcnet_aprom_writeb(d, VAR_1, VAR_2); } else if (VAR_1 >= 0x10 && VAR_1 < 0x20 && VAR_3 == 2) { ret...
[ "static void FUNC_0(void *VAR_0, target_phys_addr_t VAR_1,\nuint64_t VAR_2, unsigned VAR_3)\n{", "PCNetState *d = VAR_0;", "if (VAR_1 < 16 && VAR_3 == 1) {", "return pcnet_aprom_writeb(d, VAR_1, VAR_2);", "} else if (VAR_1 >= 0x10 && VAR_1 < 0x20 && VAR_3 == 2) {", "return pcnet_ioport_writew(d, VAR_1, VA...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ] ]
24,875
build_hash_table (const sparc_opcode **opcode_table, sparc_opcode_hash **hash_table, int num_opcodes) { int i; int hash_count[HASH_SIZE]; static sparc_opcode_hash *hash_buf = NULL; /* Start at the end of the table and work backwards so that each chain is sorted...
false
qemu
ef1e1e0782e99c9dcf2b35e5310cdd8ca9211374
build_hash_table (const sparc_opcode **opcode_table, sparc_opcode_hash **hash_table, int num_opcodes) { int i; int hash_count[HASH_SIZE]; static sparc_opcode_hash *hash_buf = NULL; memset (hash_table, 0, HASH_SIZE * sizeof (hash_table[0])); memset (hash_co...
{ "code": [], "line_no": [] }
FUNC_0 (const sparc_opcode **VAR_0, sparc_opcode_hash **VAR_1, int VAR_2) { int VAR_3; int VAR_4[HASH_SIZE]; static sparc_opcode_hash *VAR_5 = NULL; memset (VAR_1, 0, HASH_SIZE * sizeof (VAR_1[0])); memset (VAR_4, 0, HASH_SIZE * sizeof (VAR_4[0])); if (...
[ "FUNC_0 (const sparc_opcode **VAR_0,\nsparc_opcode_hash **VAR_1,\nint VAR_2)\n{", "int VAR_3;", "int VAR_4[HASH_SIZE];", "static sparc_opcode_hash *VAR_5 = NULL;", "memset (VAR_1, 0, HASH_SIZE * sizeof (VAR_1[0]));", "memset (VAR_4, 0, HASH_SIZE * sizeof (VAR_4[0]));", "if (VAR_5 != NULL)\nfree (VAR_5);...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 23 ], [ 25 ], [ 27, 29 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 39 ], [ 43 ], [ 45 ], [ 47 ], [ 49 ], [ 51 ], [ 55, 57 ...
24,876
void nbd_export_close(NBDExport *exp) { NBDClient *client, *next; nbd_export_get(exp); QTAILQ_FOREACH_SAFE(client, &exp->clients, next, next) { nbd_client_close(client); } nbd_export_set_name(exp, NULL); nbd_export_put(exp); if (exp->blk) { blk_remove_aio_context_...
false
qemu
f53a829bb9ef14be800556cbc02d8b20fc1050a7
void nbd_export_close(NBDExport *exp) { NBDClient *client, *next; nbd_export_get(exp); QTAILQ_FOREACH_SAFE(client, &exp->clients, next, next) { nbd_client_close(client); } nbd_export_set_name(exp, NULL); nbd_export_put(exp); if (exp->blk) { blk_remove_aio_context_...
{ "code": [], "line_no": [] }
void FUNC_0(NBDExport *VAR_0) { NBDClient *client, *next; nbd_export_get(VAR_0); QTAILQ_FOREACH_SAFE(client, &VAR_0->clients, next, next) { nbd_client_close(client); } nbd_export_set_name(VAR_0, NULL); nbd_export_put(VAR_0); if (VAR_0->blk) { blk_remove_aio_contex...
[ "void FUNC_0(NBDExport *VAR_0)\n{", "NBDClient *client, *next;", "nbd_export_get(VAR_0);", "QTAILQ_FOREACH_SAFE(client, &VAR_0->clients, next, next) {", "nbd_client_close(client);", "}", "nbd_export_set_name(VAR_0, NULL);", "nbd_export_put(VAR_0);", "if (VAR_0->blk) {", "blk_remove_aio_context_not...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25 ], [ 27 ], [ 29 ], [ 31 ], [ 33 ] ]
24,877
static void gen_spr_power8_book4(CPUPPCState *env) { /* Add a number of P8 book4 registers */ #if !defined(CONFIG_USER_ONLY) spr_register_kvm(env, SPR_ACOP, "ACOP", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, KVM_REG_PP...
false
qemu
31b2b0f8463533c32b5ad76e73668e2e9fca8ae2
static void gen_spr_power8_book4(CPUPPCState *env) { #if !defined(CONFIG_USER_ONLY) spr_register_kvm(env, SPR_ACOP, "ACOP", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, KVM_REG_PPC_ACOP, 0); spr_register_kvm(env, S...
{ "code": [], "line_no": [] }
static void FUNC_0(CPUPPCState *VAR_0) { #if !defined(CONFIG_USER_ONLY) spr_register_kvm(VAR_0, SPR_ACOP, "ACOP", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, KVM_REG_PPC_ACOP, 0); spr_register_kvm(VAR_0, SPR_BOOKS...
[ "static void FUNC_0(CPUPPCState *VAR_0)\n{", "#if !defined(CONFIG_USER_ONLY)\nspr_register_kvm(VAR_0, SPR_ACOP, \"ACOP\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic, &spr_write_generic,\nKVM_REG_PPC_ACOP, 0);", "spr_register_kvm(VAR_0, SPR_BOOKS_PID, \"PID\",\nSPR_NOACCESS, SPR_NOACCESS,\n&spr_read_generic...
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 7, 9, 11, 13, 15 ], [ 17, 19, 21, 23 ], [ 25, 27, 29, 31 ], [ 33, 35 ] ]
24,878
int cpu_m68k_handle_mmu_fault (CPUState *env, target_ulong address, int rw, int mmu_idx, int is_softmmu) { int prot; address &= TARGET_PAGE_MASK; prot = PAGE_READ | PAGE_WRITE; return tlb_set_page(env, address, address, prot, mmu_idx, is_softmmu); }
false
qemu
d4c430a80f000d722bb70287af4d4c184a8d7006
int cpu_m68k_handle_mmu_fault (CPUState *env, target_ulong address, int rw, int mmu_idx, int is_softmmu) { int prot; address &= TARGET_PAGE_MASK; prot = PAGE_READ | PAGE_WRITE; return tlb_set_page(env, address, address, prot, mmu_idx, is_softmmu); }
{ "code": [], "line_no": [] }
int FUNC_0 (CPUState *VAR_0, target_ulong VAR_1, int VAR_2, int VAR_3, int VAR_4) { int VAR_5; VAR_1 &= TARGET_PAGE_MASK; VAR_5 = PAGE_READ | PAGE_WRITE; return tlb_set_page(VAR_0, VAR_1, VAR_1, VAR_5, VAR_3, VAR_4); }
[ "int FUNC_0 (CPUState *VAR_0, target_ulong VAR_1, int VAR_2,\nint VAR_3, int VAR_4)\n{", "int VAR_5;", "VAR_1 &= TARGET_PAGE_MASK;", "VAR_5 = PAGE_READ | PAGE_WRITE;", "return tlb_set_page(VAR_0, VAR_1, VAR_1, VAR_5, VAR_3, VAR_4);", "}" ]
[ 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3, 5 ], [ 7 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ] ]
24,879
void helper_movl_crN_T0(int reg) { env->cr[reg] = T0; switch(reg) { case 0: cpu_x86_update_cr0(env); break; case 3: cpu_x86_update_cr3(env); break; } }
false
qemu
1ac157da77c863b62b1d2f467626a440d57cf17d
void helper_movl_crN_T0(int reg) { env->cr[reg] = T0; switch(reg) { case 0: cpu_x86_update_cr0(env); break; case 3: cpu_x86_update_cr3(env); break; } }
{ "code": [], "line_no": [] }
void FUNC_0(int VAR_0) { env->cr[VAR_0] = T0; switch(VAR_0) { case 0: cpu_x86_update_cr0(env); break; case 3: cpu_x86_update_cr3(env); break; } }
[ "void FUNC_0(int VAR_0)\n{", "env->cr[VAR_0] = T0;", "switch(VAR_0) {", "case 0:\ncpu_x86_update_cr0(env);", "break;", "case 3:\ncpu_x86_update_cr3(env);", "break;", "}", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9, 11 ], [ 13 ], [ 15, 17 ], [ 19 ], [ 21 ], [ 23 ] ]
24,882
static bool pmsav7_needed(void *opaque) { ARMCPU *cpu = opaque; CPUARMState *env = &cpu->env; return arm_feature(env, ARM_FEATURE_PMSA) && arm_feature(env, ARM_FEATURE_V7); }
false
qemu
0e1a46bbd2d6c39614b87f4e88ea305acce8a35f
static bool pmsav7_needed(void *opaque) { ARMCPU *cpu = opaque; CPUARMState *env = &cpu->env; return arm_feature(env, ARM_FEATURE_PMSA) && arm_feature(env, ARM_FEATURE_V7); }
{ "code": [], "line_no": [] }
static bool FUNC_0(void *opaque) { ARMCPU *cpu = opaque; CPUARMState *env = &cpu->env; return arm_feature(env, ARM_FEATURE_PMSA) && arm_feature(env, ARM_FEATURE_V7); }
[ "static bool FUNC_0(void *opaque)\n{", "ARMCPU *cpu = opaque;", "CPUARMState *env = &cpu->env;", "return arm_feature(env, ARM_FEATURE_PMSA) &&\narm_feature(env, ARM_FEATURE_V7);", "}" ]
[ 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 11, 13 ], [ 15 ] ]
24,883
int mmu40x_get_physical_address (CPUState *env, mmu_ctx_t *ctx, target_ulong address, int rw, int access_type) { ppcemb_tlb_t *tlb; target_phys_addr_t raddr; int i, ret, zsel, zpr; ret = -1; raddr = -1; for (i = 0; i < env->nb_tlb; i++) { tlb =...
false
qemu
b227a8e9aa5f27d29f77ba90d5eb9d0662a1175e
int mmu40x_get_physical_address (CPUState *env, mmu_ctx_t *ctx, target_ulong address, int rw, int access_type) { ppcemb_tlb_t *tlb; target_phys_addr_t raddr; int i, ret, zsel, zpr; ret = -1; raddr = -1; for (i = 0; i < env->nb_tlb; i++) { tlb =...
{ "code": [], "line_no": [] }
int FUNC_0 (CPUState *VAR_0, mmu_ctx_t *VAR_1, target_ulong VAR_2, int VAR_3, int VAR_4) { ppcemb_tlb_t *tlb; target_phys_addr_t raddr; int VAR_5, VAR_6, VAR_7, VAR_8; VAR_6 = -1; raddr = -1; for (VAR_5 = 0; VAR_5 < VAR_0->nb_tlb; VAR_5++) { tl...
[ "int FUNC_0 (CPUState *VAR_0, mmu_ctx_t *VAR_1,\ntarget_ulong VAR_2, int VAR_3, int VAR_4)\n{", "ppcemb_tlb_t *tlb;", "target_phys_addr_t raddr;", "int VAR_5, VAR_6, VAR_7, VAR_8;", "VAR_6 = -1;", "raddr = -1;", "for (VAR_5 = 0; VAR_5 < VAR_0->nb_tlb; VAR_5++) {", "tlb = &VAR_0->tlb[VAR_5].tlbe;", "...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23, 25, 27 ], [ 29 ], [ 31 ], [ 33, 35 ], [ 37, 39 ], [ 41 ], [ 43, 45 ], [ 49 ], [ 51,...
24,884
static struct dirent *local_readdir(FsContext *ctx, V9fsFidOpenState *fs) { struct dirent *entry; again: entry = readdir(fs->dir.stream); if (!entry) { return NULL; } if (ctx->export_flags & V9FS_SM_MAPPED) { entry->d_type = DT_UNKNOWN; } else if (ctx->export_flags ...
false
qemu
81ffbf5ab1458e357a761f1272105a55829b351e
static struct dirent *local_readdir(FsContext *ctx, V9fsFidOpenState *fs) { struct dirent *entry; again: entry = readdir(fs->dir.stream); if (!entry) { return NULL; } if (ctx->export_flags & V9FS_SM_MAPPED) { entry->d_type = DT_UNKNOWN; } else if (ctx->export_flags ...
{ "code": [], "line_no": [] }
static struct dirent *FUNC_0(FsContext *VAR_0, V9fsFidOpenState *VAR_1) { struct dirent *VAR_2; again: VAR_2 = readdir(VAR_1->dir.stream); if (!VAR_2) { return NULL; } if (VAR_0->export_flags & V9FS_SM_MAPPED) { VAR_2->d_type = DT_UNKNOWN; } else if (VAR_0->export_f...
[ "static struct dirent *FUNC_0(FsContext *VAR_0, V9fsFidOpenState *VAR_1)\n{", "struct dirent *VAR_2;", "again:\nVAR_2 = readdir(VAR_1->dir.stream);", "if (!VAR_2) {", "return NULL;", "}", "if (VAR_0->export_flags & V9FS_SM_MAPPED) {", "VAR_2->d_type = DT_UNKNOWN;", "} else if (VAR_0->export_flags & ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 31 ], [ 33 ], [ 35 ], [ 37 ], [ 41 ], [ 43 ] ]
24,886
static void tricore_cpu_class_init(ObjectClass *c, void *data) { TriCoreCPUClass *mcc = TRICORE_CPU_CLASS(c); CPUClass *cc = CPU_CLASS(c); DeviceClass *dc = DEVICE_CLASS(c); mcc->parent_realize = dc->realize; dc->realize = tricore_cpu_realizefn; mcc->parent_reset = cc->reset; cc-...
true
qemu
b190f477e29c7cd03a8fee49c96d27f160e3f5b0
static void tricore_cpu_class_init(ObjectClass *c, void *data) { TriCoreCPUClass *mcc = TRICORE_CPU_CLASS(c); CPUClass *cc = CPU_CLASS(c); DeviceClass *dc = DEVICE_CLASS(c); mcc->parent_realize = dc->realize; dc->realize = tricore_cpu_realizefn; mcc->parent_reset = cc->reset; cc-...
{ "code": [], "line_no": [] }
static void FUNC_0(ObjectClass *VAR_0, void *VAR_1) { TriCoreCPUClass *mcc = TRICORE_CPU_CLASS(VAR_0); CPUClass *cc = CPU_CLASS(VAR_0); DeviceClass *dc = DEVICE_CLASS(VAR_0); mcc->parent_realize = dc->realize; dc->realize = tricore_cpu_realizefn; mcc->parent_reset = cc->reset; cc...
[ "static void FUNC_0(ObjectClass *VAR_0, void *VAR_1)\n{", "TriCoreCPUClass *mcc = TRICORE_CPU_CLASS(VAR_0);", "CPUClass *cc = CPU_CLASS(VAR_0);", "DeviceClass *dc = DEVICE_CLASS(VAR_0);", "mcc->parent_realize = dc->realize;", "dc->realize = tricore_cpu_realizefn;", "mcc->parent_reset = cc->reset;", "c...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 33 ], [ 36 ] ]
24,887
static int udp_open(URLContext *h, const char *uri, int flags) { char hostname[1024], localaddr[1024] = ""; int port, udp_fd = -1, tmp, bind_ret = -1; UDPContext *s = h->priv_data; int is_output; const char *p; char buf[256]; struct sockaddr_storage my_addr; int len; int re...
true
FFmpeg
a8d8e868c6154f63a9229f913434aaa21833e488
static int udp_open(URLContext *h, const char *uri, int flags) { char hostname[1024], localaddr[1024] = ""; int port, udp_fd = -1, tmp, bind_ret = -1; UDPContext *s = h->priv_data; int is_output; const char *p; char buf[256]; struct sockaddr_storage my_addr; int len; int re...
{ "code": [], "line_no": [] }
static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2) { char VAR_3[1024], VAR_4[1024] = ""; int VAR_5, VAR_6 = -1, VAR_7, VAR_8 = -1; UDPContext *s = VAR_0->priv_data; int VAR_9; const char *VAR_10; char VAR_11[256]; struct sockaddr_storage VAR_12; int VAR_13; ...
[ "static int FUNC_0(URLContext *VAR_0, const char *VAR_1, int VAR_2)\n{", "char VAR_3[1024], VAR_4[1024] = \"\";", "int VAR_5, VAR_6 = -1, VAR_7, VAR_8 = -1;", "UDPContext *s = VAR_0->priv_data;", "int VAR_9;", "const char *VAR_10;", "char VAR_11[256];", "struct sockaddr_storage VAR_12;", "int VAR_13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3 ], [ 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 29 ], [ 31 ], [ 35 ], [ 39 ], [ 41 ], [ 45 ], [ 49 ], [ 51 ...
24,888
static int vc1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size, n_slices = 0, i; VC1Context *v = avctx->priv_data; MpegEncContext *s = &v->s; AVFrame *pict = data; ...
true
FFmpeg
6f8ef5320f4d435803482ed322f3de45e6ea125c
static int vc1_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size, n_slices = 0, i; VC1Context *v = avctx->priv_data; MpegEncContext *s = &v->s; AVFrame *pict = data; ...
{ "code": [ " return -1;" ], "line_no": [ 319 ] }
static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->VAR_15, VAR_6 = 0, VAR_18; VC1Context *v = VAR_0->priv_data; MpegEncContext *s = &v->s; AVFrame *pict = VAR_1; uint8_t ...
[ "static int FUNC_0(AVCodecContext *VAR_0, void *VAR_1,\nint *VAR_2, AVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->VAR_15, VAR_6 = 0, VAR_18;", "VC1Context *v = VAR_0->priv_data;", "MpegEncContext *s = &v->s;", "AVFrame *pict = VAR_1;", "uint8_t *buf2 = NULL;", "cons...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ [ 1, 3, 5 ], [ 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 19 ], [ 21 ], [ 23 ], [ 25 ], [ 27 ], [ 29 ], [ 31 ], [ 37 ], [ 41 ], [ 43 ], [ 45 ], [ 49 ], [...
24,889
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s = avctx->priv_data; int ret; AVFrame *pict = data; s...
true
FFmpeg
d47e14b53a3908e5bad82e22129bbd175b49e89b
int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; MpegEncContext *s = avctx->priv_data; int ret; AVFrame *pict = data; s...
{ "code": [ " init_get_bits(&s->gb, s->bitstream_buffer, s->bitstream_buffer_size*8);", " init_get_bits(&s->gb, buf, buf_size*8);", " init_get_bits(&gb, s->avctx->extradata, s->avctx->extradata_size*8);", " ret = ff_mpeg4_decode_picture_header(s, &gb);" ], "line...
int FUNC_0(AVCodecContext *VAR_0, void *VAR_1, int *VAR_2, AVPacket *VAR_3) { const uint8_t *VAR_4 = VAR_3->VAR_1; int VAR_5 = VAR_3->size; MpegEncContext *s = VAR_0->priv_data; int VAR_6; AVFrame *pict = VAR_1; s->flags= VAR_0...
[ "int FUNC_0(AVCodecContext *VAR_0,\nvoid *VAR_1, int *VAR_2,\nAVPacket *VAR_3)\n{", "const uint8_t *VAR_4 = VAR_3->VAR_1;", "int VAR_5 = VAR_3->size;", "MpegEncContext *s = VAR_0->priv_data;", "int VAR_6;", "AVFrame *pict = VAR_1;", "s->flags= VAR_0->flags;", "s->flags2= VAR_0->flags2;", "if (VAR_5 ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1...
[ [ 1, 3, 5, 7 ], [ 9 ], [ 11 ], [ 13 ], [ 15 ], [ 17 ], [ 21 ], [ 23 ], [ 29 ], [ 33 ], [ 35, 37 ], [ 39 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 55 ], [ 57 ], [...
24,890
void avcodec_free_context(AVCodecContext **pavctx) { AVCodecContext *avctx = *pavctx; if (!avctx) return; avcodec_close(avctx); av_freep(&avctx->extradata); av_freep(&avctx->subtitle_header); av_freep(pavctx); }
true
FFmpeg
345cfd04d093d9fdec81ea3531e73b1f5c1b6a6c
void avcodec_free_context(AVCodecContext **pavctx) { AVCodecContext *avctx = *pavctx; if (!avctx) return; avcodec_close(avctx); av_freep(&avctx->extradata); av_freep(&avctx->subtitle_header); av_freep(pavctx); }
{ "code": [], "line_no": [] }
void FUNC_0(AVCodecContext **VAR_0) { AVCodecContext *avctx = *VAR_0; if (!avctx) return; avcodec_close(avctx); av_freep(&avctx->extradata); av_freep(&avctx->subtitle_header); av_freep(VAR_0); }
[ "void FUNC_0(AVCodecContext **VAR_0)\n{", "AVCodecContext *avctx = *VAR_0;", "if (!avctx)\nreturn;", "avcodec_close(avctx);", "av_freep(&avctx->extradata);", "av_freep(&avctx->subtitle_header);", "av_freep(VAR_0);", "}" ]
[ 0, 0, 0, 0, 0, 0, 0, 0 ]
[ [ 1, 3 ], [ 5 ], [ 9, 11 ], [ 15 ], [ 19 ], [ 21 ], [ 28 ], [ 30 ] ]